@devsym/graph-toolkit-react 1.0.0-next.7 → 1.0.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -79,6 +79,8 @@ export function App() {
79
79
  }
80
80
  ```
81
81
 
82
+ The provider uses redirect flow. Set the redirect URI to your app's origin and register it as a **Single-page application (SPA)** in Azure AD.
83
+
82
84
  ### 3) Teams-hosted app (`TeamsHostedProvider`)
83
85
 
84
86
  ```tsx
@@ -0,0 +1,24 @@
1
+ /**
2
+ * PeoplePicker component - Select one or more people using Microsoft Graph search
3
+ */
4
+ import React from 'react';
5
+ import { PeoplePickerProps } from './PeoplePicker.types';
6
+ /**
7
+ * PeoplePicker — a tag-picker backed by Microsoft Graph people search.
8
+ *
9
+ * In controlled mode supply `selectedPeople` + `onSelectionChange`.
10
+ * In uncontrolled mode supply `defaultSelectedPeople` or leave both props unset.
11
+ *
12
+ * The component automatically uses {@link MockProvider} mock data when no real
13
+ * Graph provider is available, making it easy to prototype UIs without auth.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * <PeoplePicker
18
+ * placeholder="Search for people..."
19
+ * onSelectionChange={(people) => console.log(people)}
20
+ * />
21
+ * ```
22
+ */
23
+ export declare const PeoplePicker: React.FC<PeoplePickerProps>;
24
+ //# sourceMappingURL=PeoplePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeoplePicker.d.ts","sourceRoot":"","sources":["../../../src/components/PeoplePicker/PeoplePicker.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAiB9D,OAAO,EAAsB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAoB7E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqJpD,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * PeoplePicker component types
3
+ */
4
+ import type { TagPickerProps } from '@fluentui/react-components';
5
+ import type { PeopleSearchResult } from '../../providers/IPersonDataProvider';
6
+ /**
7
+ * A person entry used in the PeoplePicker component.
8
+ *
9
+ * This is an alias for {@link PeopleSearchResult} — both types share the same shape
10
+ * so they can be used interchangeably.
11
+ */
12
+ export type PeoplePickerPerson = PeopleSearchResult;
13
+ /**
14
+ * Props for the {@link PeoplePicker} component.
15
+ */
16
+ export interface PeoplePickerProps extends Pick<TagPickerProps, 'appearance' | 'size' | 'disabled'> {
17
+ /**
18
+ * Currently selected people (controlled mode).
19
+ * When provided, the component operates in controlled mode and does not manage its own selection state.
20
+ */
21
+ selectedPeople?: PeoplePickerPerson[];
22
+ /**
23
+ * Initial selected people (uncontrolled mode).
24
+ * Ignored when {@link selectedPeople} is provided.
25
+ */
26
+ defaultSelectedPeople?: PeoplePickerPerson[];
27
+ /**
28
+ * Called when the selection changes.
29
+ * @param people - The new array of selected people
30
+ */
31
+ onSelectionChange?: (people: PeoplePickerPerson[]) => void;
32
+ /**
33
+ * Placeholder text shown in the search input when nothing is typed
34
+ */
35
+ placeholder?: string;
36
+ /**
37
+ * Maximum number of people that can be selected.
38
+ * When reached the search input is hidden.
39
+ */
40
+ maxPeople?: number;
41
+ /**
42
+ * Minimum number of characters required before a search is triggered (default: 1)
43
+ */
44
+ searchMinChars?: number;
45
+ /**
46
+ * Maximum number of search results to show in the dropdown (default: 10)
47
+ */
48
+ maxSearchResults?: number;
49
+ /**
50
+ * User IDs to exclude from search results.
51
+ * When provided, these IDs will be filtered out of the dropdown suggestions.
52
+ * The search will fetch extra results to compensate so that the dropdown still
53
+ * shows up to {@link maxSearchResults} items after exclusion.
54
+ */
55
+ excludeUserIds?: string[];
56
+ }
57
+ //# sourceMappingURL=PeoplePicker.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeoplePicker.types.d.ts","sourceRoot":"","sources":["../../../src/components/PeoplePicker/PeoplePicker.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC;IAChE;;;OAGG;IACH,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAEtC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAE7C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * PeoplePicker component exports
3
+ */
4
+ export { PeoplePicker } from './PeoplePicker';
5
+ export type { PeoplePickerProps, PeoplePickerPerson } from './PeoplePicker.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PeoplePicker/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Person.d.ts","sourceRoot":"","sources":["../../../src/components/Person/Person.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAwB7C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkFxC,CAAC"}
1
+ {"version":3,"file":"Person.d.ts","sourceRoot":"","sources":["../../../src/components/Person/Person.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAA8D,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAsHrH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyHxC,CAAC"}
@@ -2,16 +2,90 @@
2
2
  * Person component types
3
3
  */
4
4
  import type { PersonaProps } from '@fluentui/react-components';
5
+ import type { ReactElement } from 'react';
5
6
  export type PersonView = 'avatar' | 'oneline' | 'twolines' | 'threelines' | 'fourlines';
7
+ /**
8
+ * Normalized details about a person used by the {@link Person} component.
9
+ *
10
+ * This interface typically comes from Microsoft Graph or an application-specific user store
11
+ * and is used as the backing data for line mappings and custom renderers.
12
+ */
6
13
  export interface PersonDetails {
7
- displayName?: string;
8
- mail?: string;
9
- jobTitle?: string;
10
- department?: string;
11
- officeLocation?: string;
12
- id?: string;
13
- userPrincipalName?: string;
14
+ /**
15
+ * The person's display name.
16
+ */
17
+ displayName?: string | null;
18
+ /**
19
+ * The person's primary mail address (as returned by some Microsoft Graph shapes).
20
+ */
21
+ mail?: string | null;
22
+ /**
23
+ * The person's job title.
24
+ */
25
+ jobTitle?: string | null;
26
+ /**
27
+ * The department the person belongs to.
28
+ */
29
+ department?: string | null;
30
+ /**
31
+ * The person's office location.
32
+ */
33
+ officeLocation?: string | null;
34
+ /**
35
+ * The unique identifier for the person.
36
+ */
37
+ id?: string | null;
38
+ /**
39
+ * The person's user principal name (UPN).
40
+ */
41
+ userPrincipalName?: string | null;
42
+ /**
43
+ * The person's email address (alias for some data sources).
44
+ */
45
+ email?: string | null;
46
+ /**
47
+ * Current presence activity (for example, "InAMeeting" or "Presenting"), when available.
48
+ */
49
+ presenceActivity?: string | null;
50
+ /**
51
+ * Current presence availability (for example, "Available", "Busy", "Away"), when available.
52
+ */
53
+ presenceAvailability?: string | null;
54
+ /**
55
+ * Additional custom fields for the person.
56
+ *
57
+ * These fields can also be referenced from `lineXProperty` mappings when supported by the implementation.
58
+ */
59
+ [key: string]: unknown;
60
+ }
61
+ /**
62
+ * Context passed to a {@link PersonLineRenderer} when rendering a line of text.
63
+ */
64
+ export interface PersonLineRenderContext {
65
+ /**
66
+ * The logical line number being rendered (1–4).
67
+ */
68
+ line: 1 | 2 | 3 | 4;
69
+ /**
70
+ * The resolved person details used for this line.
71
+ */
72
+ person: PersonDetails;
73
+ /**
74
+ * The default text that would be rendered for this line based on the `lineXProperty` mapping,
75
+ * if any. This can be used as a fallback or starting point when customizing rendering.
76
+ */
77
+ text?: string;
14
78
  }
79
+ /**
80
+ * Function used to customize rendering of a single line of person information.
81
+ *
82
+ * The renderer can either return a `ReactElement` for full control over layout and styling,
83
+ * a plain `string` to be rendered as simple text, or `null` to suppress rendering of the line.
84
+ *
85
+ * @param context - Information about the line being rendered and its resolved data.
86
+ * @returns A React element, plain string, or `null` to skip the line.
87
+ */
88
+ export type PersonLineRenderer = (context: PersonLineRenderContext) => ReactElement | string | null;
15
89
  export interface PersonProps extends PersonaProps {
16
90
  userId?: string;
17
91
  userPrincipalName?: string;
@@ -19,6 +93,70 @@ export interface PersonProps extends PersonaProps {
19
93
  personDetails?: PersonDetails;
20
94
  view?: PersonView;
21
95
  showPresence?: boolean;
96
+ /**
97
+ * Mapping for the first text line.
98
+ *
99
+ * This is the name of a field on {@link PersonDetails} (for example, `"displayName"`), or a
100
+ * comma-separated list of field names to use as fallbacks in order (for example,
101
+ * `"displayName,mail,email"`).
102
+ *
103
+ * Implementations may also support pseudo-fields for derived values such as presence in
104
+ * addition to literal `PersonDetails` keys.
105
+ */
106
+ line1Property?: string;
107
+ /**
108
+ * Mapping for the second text line.
109
+ *
110
+ * Accepts a single {@link PersonDetails} field name or a comma-separated list of field names
111
+ * to be used as fallbacks, in the same way as {@link PersonProps.line1Property}.
112
+ */
113
+ line2Property?: string;
114
+ /**
115
+ * Mapping for the third text line.
116
+ *
117
+ * Accepts a single {@link PersonDetails} field name or a comma-separated list of field names
118
+ * to be used as fallbacks, in the same way as {@link PersonProps.line1Property}.
119
+ */
120
+ line3Property?: string;
121
+ /**
122
+ * Mapping for the fourth text line.
123
+ *
124
+ * Accepts a single {@link PersonDetails} field name or a comma-separated list of field names
125
+ * to be used as fallbacks, in the same way as {@link PersonProps.line1Property}.
126
+ */
127
+ line4Property?: string;
128
+ /**
129
+ * Custom renderer for the first text line.
130
+ *
131
+ * When provided, this overrides the default rendering for line 1 and is called with a
132
+ * {@link PersonLineRenderContext}. The `text` property in the context contains the value that
133
+ * would have been shown based on `line1Property`, if any.
134
+ */
135
+ renderLine1?: PersonLineRenderer;
136
+ /**
137
+ * Custom renderer for the second text line.
138
+ *
139
+ * When provided, this overrides the default rendering for line 2 and is called with a
140
+ * {@link PersonLineRenderContext}. The `text` property in the context contains the value that
141
+ * would have been shown based on `line2Property`, if any.
142
+ */
143
+ renderLine2?: PersonLineRenderer;
144
+ /**
145
+ * Custom renderer for the third text line.
146
+ *
147
+ * When provided, this overrides the default rendering for line 3 and is called with a
148
+ * {@link PersonLineRenderContext}. The `text` property in the context contains the value that
149
+ * would have been shown based on `line3Property`, if any.
150
+ */
151
+ renderLine3?: PersonLineRenderer;
152
+ /**
153
+ * Custom renderer for the fourth text line.
154
+ *
155
+ * When provided, this overrides the default rendering for line 4 and is called with a
156
+ * {@link PersonLineRenderContext}. The `text` property in the context contains the value that
157
+ * would have been shown based on `line4Property`, if any.
158
+ */
159
+ renderLine4?: PersonLineRenderer;
22
160
  fetchImage?: boolean;
23
161
  }
24
162
  //# sourceMappingURL=Person.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Person.types.d.ts","sourceRoot":"","sources":["../../../src/components/Person/Person.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,CAAC;AAExF,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,WAAY,SAAQ,YAAY;IAE/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"Person.types.d.ts","sourceRoot":"","sources":["../../../src/components/Person/Person.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,CAAC;AAExF;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;;;OAIG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,uBAAuB,KAAK,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpG,MAAM,WAAW,WAAY,SAAQ,YAAY;IAE/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAGjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -2,5 +2,5 @@
2
2
  * Person component exports
3
3
  */
4
4
  export { Person } from './Person';
5
- export type { PersonProps } from './Person.types';
5
+ export type { PersonLineRenderContext, PersonLineRenderer, PersonProps, } from './Person.types';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Person/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Person/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,uBAAuB,EACvB,kBAAkB,EAClB,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Hook to search for people using Microsoft Graph or a mock provider
3
+ */
4
+ import { PeopleSearchResult } from '../providers/IPersonDataProvider';
5
+ export interface UsePeopleSearchOptions {
6
+ /**
7
+ * Minimum number of characters required before searching (default: 1)
8
+ */
9
+ minChars?: number;
10
+ /**
11
+ * Maximum number of results to return (default: 10)
12
+ */
13
+ maxResults?: number;
14
+ }
15
+ export interface UsePeopleSearchResult {
16
+ /**
17
+ * The list of matching people
18
+ */
19
+ results: PeopleSearchResult[];
20
+ /**
21
+ * Whether a search is in progress
22
+ */
23
+ loading: boolean;
24
+ }
25
+ /**
26
+ * Hook to search for people by name, email, or UPN.
27
+ *
28
+ * When used with a {@link MockProvider} the search is performed locally against mock data.
29
+ * With a real provider the hook queries the Microsoft Graph `/users` endpoint using
30
+ * `$search` with `ConsistencyLevel: eventual`.
31
+ *
32
+ * @param query - The search query string
33
+ * @param options - Optional configuration
34
+ * @returns An object with the search results and a loading flag
35
+ */
36
+ export declare const usePeopleSearch: (query: string, options?: UsePeopleSearchOptions) => UsePeopleSearchResult;
37
+ //# sourceMappingURL=usePeopleSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePeopleSearch.d.ts","sourceRoot":"","sources":["../../src/hooks/usePeopleSearch.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAA0B,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE9F,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAKD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EACb,UAAU,sBAAsB,KAC/B,qBAkEF,CAAC"}
@@ -14,6 +14,7 @@ export interface UsePersonDataOptions {
14
14
  userPrincipalName?: string;
15
15
  fetchPresence?: boolean;
16
16
  fetchPhoto?: boolean;
17
+ selectFields?: string[];
17
18
  }
18
19
  /**
19
20
  * Fetch person data from Microsoft Graph
@@ -1 +1 @@
1
- {"version":3,"file":"usePersonData.d.ts","sourceRoot":"","sources":["../../src/hooks/usePersonData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAYlE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA8BD;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB,KAAG,UA4N7D,CAAC"}
1
+ {"version":3,"file":"usePersonData.d.ts","sourceRoot":"","sources":["../../src/hooks/usePersonData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAYlE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAwCD;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB,KAAG,UA2O7D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  * React components for Microsoft Graph powered by Fluent UI
5
5
  */
6
6
  export * from './components/Person';
7
+ export * from './components/PeoplePicker';
7
8
  export * from './providers/IProvider';
8
9
  export * from './providers/IPersonDataProvider';
9
10
  export * from './providers/ProviderContext';
@@ -12,4 +13,5 @@ export * from './providers/MsalBrowserProvider';
12
13
  export * from './providers/TeamsHostedProvider';
13
14
  export * from './hooks/useGraphClient';
14
15
  export * from './hooks/usePersonData';
16
+ export * from './hooks/usePeopleSearch';
15
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,qBAAqB,CAAC;AAGpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAGhD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAGhD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}