-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1764 from michaelmaillot/feat/peoplepicker-contex…
…t-optimization [PeoplePicker] Context optimization - Adds a specific interface for the control which requires less props than the `BaseComponentContext` one - Moves states interface into the component to avoid useless export - Reflect optimization in the control's doc and the test webpart - Fixes MSGraph required permissions to use the control
- Loading branch information
Showing
10 changed files
with
104 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const version: string = "3.18.0"; | ||
export const version: string = "3.18.0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { MSGraphClientFactory, SPHttpClient } from "@microsoft/sp-http"; | ||
|
||
/** | ||
* Context for the PeoplePicker control | ||
*/ | ||
export interface IPeoplePickerContext { | ||
/** | ||
* Current `SPWeb` absolute URL. | ||
*/ | ||
absoluteUrl: string; | ||
/** | ||
* Instance of MSGraphClientFactory used for querying Microsoft Graph REST API. | ||
*/ | ||
msGraphClientFactory: MSGraphClientFactory; | ||
/** | ||
* Instance of SPHttpClient used for querying SharePoint REST API. | ||
*/ | ||
spHttpClient: SPHttpClient; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './IPeoplePicker'; | ||
export * from './IPeoplePickerContext'; | ||
export * from './PeoplePickerComponent'; | ||
export * from './PrincipalType'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.