@atlaskit/smart-user-picker 6.0.2 → 6.0.4
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/CHANGELOG.md +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +8 -8
- package/report.api.md +97 -151
- package/tmp/api-report-tmp.d.ts +268 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlassian/smart-user-picker
|
|
2
2
|
|
|
3
|
+
## 6.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
14
|
+
|
|
3
15
|
## 6.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-user-picker",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
26
26
|
"@atlaskit/ufo": "^0.1.0",
|
|
27
|
-
"@atlaskit/user-picker": "^
|
|
27
|
+
"@atlaskit/user-picker": "^10.0.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"memoize-one": "^6.0.0",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"react-dom": "^16.8.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@atlaskit/button": "^16.
|
|
39
|
+
"@atlaskit/button": "^16.5.0",
|
|
40
40
|
"@atlaskit/docs": "*",
|
|
41
41
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
43
|
-
"@atlaskit/select": "^
|
|
44
|
-
"@atlaskit/textfield": "^5.
|
|
42
|
+
"@atlaskit/modal-dialog": "^12.4.0",
|
|
43
|
+
"@atlaskit/select": "^16.1.0",
|
|
44
|
+
"@atlaskit/textfield": "^5.3.0",
|
|
45
45
|
"@atlaskit/theme": "^12.2.0",
|
|
46
|
-
"@atlaskit/util-data-test": "^17.
|
|
46
|
+
"@atlaskit/util-data-test": "^17.6.0",
|
|
47
47
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
48
48
|
"enzyme": "^3.10.0",
|
|
49
49
|
"enzyme-react-intl": "^2.0.6",
|
|
50
50
|
"fetch-mock": "^8.0.0",
|
|
51
51
|
"graphql-tag": "^2.10.1",
|
|
52
52
|
"mock-apollo-client": "^0.1.0",
|
|
53
|
-
"typescript": "4.
|
|
53
|
+
"typescript": "4.5.5"
|
|
54
54
|
},
|
|
55
55
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
56
56
|
}
|
package/report.api.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- API Report Version: 2.3 -->
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## API Report File for "@atlaskit/smart-user-picker"
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
12
|
+
|
|
13
|
+
### Main Entry Types
|
|
14
|
+
|
|
15
|
+
<!--SECTION START: Main Entry Types-->
|
|
6
16
|
|
|
7
17
|
```ts
|
|
8
18
|
import { ActionTypes } from '@atlaskit/user-picker';
|
|
@@ -59,39 +69,40 @@ export { AtlasKitSelectChange };
|
|
|
59
69
|
|
|
60
70
|
export { AtlaskitSelectValue };
|
|
61
71
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*/
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
interface BitbucketAttributes {
|
|
74
|
+
emailDomain?: string;
|
|
66
75
|
isPublicRepo?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* A list of bitbucket workspace Ids used within container result set and noted in analytics.
|
|
69
|
-
*/
|
|
70
76
|
workspaceIds?: string[];
|
|
71
|
-
/**
|
|
72
|
-
* The users current email domain which may be used to boost the results for relevant users.
|
|
73
|
-
*/
|
|
74
|
-
emailDomain?: string;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* Identifies whether this user is a confluence guest
|
|
80
|
-
*/
|
|
79
|
+
// @public (undocumented)
|
|
80
|
+
interface ConfluenceAttributes {
|
|
81
81
|
isEntitledConfluenceExternalCollaborator?: boolean;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
// @public (undocumented)
|
|
85
|
+
interface Context {
|
|
86
|
+
// (undocumented)
|
|
87
|
+
childObjectId?: string;
|
|
88
|
+
// (undocumented)
|
|
85
89
|
containerId?: string;
|
|
90
|
+
// (undocumented)
|
|
86
91
|
contextType: string;
|
|
92
|
+
// (undocumented)
|
|
87
93
|
objectId?: string;
|
|
88
|
-
|
|
94
|
+
// (undocumented)
|
|
95
|
+
organizationId?: string;
|
|
96
|
+
// (undocumented)
|
|
89
97
|
principalId?: string;
|
|
90
|
-
|
|
98
|
+
// (undocumented)
|
|
99
|
+
productAttributes?: ProductAttributes;
|
|
100
|
+
// (undocumented)
|
|
91
101
|
productKey: string;
|
|
102
|
+
// (undocumented)
|
|
103
|
+
sessionId?: string;
|
|
104
|
+
// (undocumented)
|
|
92
105
|
siteId: string;
|
|
93
|
-
organizationId?: string;
|
|
94
|
-
productAttributes?: ProductAttributes;
|
|
95
106
|
}
|
|
96
107
|
|
|
97
108
|
export { DefaultValue };
|
|
@@ -106,12 +117,11 @@ export { EmailValidator };
|
|
|
106
117
|
|
|
107
118
|
export { ExternalUser };
|
|
108
119
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
query: string,
|
|
112
|
-
) => OptionData[];
|
|
120
|
+
// @public (undocumented)
|
|
121
|
+
type FilterOptions = (options: OptionData[], query: string) => OptionData[];
|
|
113
122
|
|
|
114
|
-
|
|
123
|
+
// @public (undocumented)
|
|
124
|
+
export const getUserRecommendations: (
|
|
115
125
|
request: RecommendationRequest,
|
|
116
126
|
intl: IntlShape,
|
|
117
127
|
) => Promise<OptionData[]>;
|
|
@@ -124,7 +134,8 @@ export { GroupType };
|
|
|
124
134
|
|
|
125
135
|
export { HighlightRange };
|
|
126
136
|
|
|
127
|
-
|
|
137
|
+
// @public (undocumented)
|
|
138
|
+
export function hydrateDefaultValues(
|
|
128
139
|
baseUrl: string | undefined,
|
|
129
140
|
value: DefaultValue,
|
|
130
141
|
productKey: string,
|
|
@@ -146,9 +157,11 @@ export { LozengeProps };
|
|
|
146
157
|
|
|
147
158
|
export { OnChange };
|
|
148
159
|
|
|
149
|
-
|
|
160
|
+
// @public (undocumented)
|
|
161
|
+
type OnEmpty = (query: string) => Promise<OptionData[]>;
|
|
150
162
|
|
|
151
|
-
|
|
163
|
+
// @public (undocumented)
|
|
164
|
+
type OnError = (
|
|
152
165
|
error: any,
|
|
153
166
|
request: RecommendationRequest,
|
|
154
167
|
) => Promise<OptionData[]> | void;
|
|
@@ -159,7 +172,8 @@ export { OnOption };
|
|
|
159
172
|
|
|
160
173
|
export { OnPicker };
|
|
161
174
|
|
|
162
|
-
|
|
175
|
+
// @public (undocumented)
|
|
176
|
+
type OnValueError = (
|
|
163
177
|
error: any,
|
|
164
178
|
defaultValue: DefaultValue,
|
|
165
179
|
) => Promise<OptionData[]> | void;
|
|
@@ -172,167 +186,84 @@ export { OptionIdentifier };
|
|
|
172
186
|
|
|
173
187
|
export { PopupUserPickerProps };
|
|
174
188
|
|
|
175
|
-
|
|
189
|
+
// @public (undocumented)
|
|
190
|
+
type ProductAttributes = BitbucketAttributes | ConfluenceAttributes;
|
|
176
191
|
|
|
177
192
|
export { Promisable };
|
|
178
193
|
|
|
179
|
-
|
|
194
|
+
// @public (undocumented)
|
|
195
|
+
export interface Props
|
|
180
196
|
extends SmartProps,
|
|
181
197
|
UserPickerProps,
|
|
182
198
|
WithAnalyticsEventsProps {
|
|
183
|
-
/**
|
|
184
|
-
* The pre-selected values for the smart user picker. Supports only Users and Teams default value hydration.
|
|
185
|
-
* If the `DefaultValue` contains only an `id` and `type` (it conforms to an `OptionIdentifier`)
|
|
186
|
-
* then the values will be automatically hydrated.
|
|
187
|
-
* If the value has a `name` then it is considered hydrated and will be ignored.
|
|
188
|
-
* Uses Confluence and Jira if called from there, else uses Identity or Legion for teams. If a value could not be found, or there was
|
|
189
|
-
* a network failure during the hydration, the value will be rendered with the label 'Unknown'. Else, if there were any other error
|
|
190
|
-
* during default value hydration, no default values will be rendered, use `onValueError` to handle this.
|
|
191
|
-
* `defaultValue` differs from `value` in that it sets the initial value then leaves the component 'uncontrolled'
|
|
192
|
-
* whereas setting the `value` prop delegates responsibility for maintaining the value to the caller
|
|
193
|
-
* (i.e. listen to `onChange`)
|
|
194
|
-
*/
|
|
195
199
|
defaultValue?: DefaultValue;
|
|
196
|
-
/**
|
|
197
|
-
* Identifier for informing the server on where the user picker has been mounted.
|
|
198
|
-
* Unlike User Picker, the fieldId in Smart User Picker is mandatory.
|
|
199
|
-
* The server uses the fieldId to determine which model to utilize when
|
|
200
|
-
* generating suggestions.
|
|
201
|
-
* All fieldId's will be bucketed into a model that provides generic smart results,
|
|
202
|
-
* except "assignee", "mentions" which are specifically trained for Jira Assignee and
|
|
203
|
-
* @Mentions. For specifically trained models, please contact #help-smart-experiences.
|
|
204
|
-
*/
|
|
205
200
|
fieldId: string;
|
|
206
201
|
}
|
|
207
202
|
|
|
208
|
-
|
|
203
|
+
// @public (undocumented)
|
|
204
|
+
export interface RecommendationRequest {
|
|
205
|
+
// (undocumented)
|
|
209
206
|
baseUrl?: string;
|
|
207
|
+
// (undocumented)
|
|
210
208
|
context: Context;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
includeGroups?: boolean;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
includeTeams?: boolean;
|
|
213
|
+
// (undocumented)
|
|
214
|
+
includeUsers?: boolean;
|
|
215
|
+
// (undocumented)
|
|
211
216
|
maxNumberOfResults: number;
|
|
217
|
+
// (undocumented)
|
|
212
218
|
query?: string;
|
|
219
|
+
// (undocumented)
|
|
213
220
|
searchQueryFilter?: string;
|
|
214
|
-
includeUsers?: boolean;
|
|
215
|
-
includeGroups?: boolean;
|
|
216
|
-
includeTeams?: boolean;
|
|
217
221
|
}
|
|
218
222
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
* The base URL of the site eg: hello.atlassian.net
|
|
222
|
-
*/
|
|
223
|
+
// @public (undocumented)
|
|
224
|
+
interface SmartProps {
|
|
223
225
|
baseUrl?: string;
|
|
224
|
-
/**
|
|
225
|
-
* Hydrated user suggestions to show when the query is blank. If not provided, smart user picker
|
|
226
|
-
* will still provide a smart-ranked list of suggestions for blank queries. Please refer to @atlaskit/user-picker
|
|
227
|
-
* for OptionData type.
|
|
228
|
-
*/
|
|
229
226
|
bootstrapOptions?: OptionData[];
|
|
230
|
-
/**
|
|
231
|
-
* Context information for analytics. Eg: if a user picker was put inside a comment, the childObjectId would be
|
|
232
|
-
* the ID of the comment. Optional, but please provide if available.
|
|
233
|
-
*/
|
|
234
227
|
childObjectId?: string;
|
|
235
|
-
/**
|
|
236
|
-
* The container Id to identify context.
|
|
237
|
-
*
|
|
238
|
-
* e.g. Jira: projectId. Confluence: spaceId. Bitbucket: repositoryId.
|
|
239
|
-
*/
|
|
240
228
|
containerId?: string;
|
|
241
|
-
/**
|
|
242
|
-
* Time to debounce the suggestions fetching (in milliseconds). Defaults to 150ms.
|
|
243
|
-
*/
|
|
244
229
|
debounceTime?: number;
|
|
245
|
-
/**
|
|
246
|
-
* Function to transform options suggested by the server before showing to the user. Can be used to filter out suggestions.
|
|
247
|
-
* The results of filterOptions are the results displayed in the suggestions UI.
|
|
248
|
-
*/
|
|
249
230
|
filterOptions?: FilterOptions;
|
|
250
|
-
/**
|
|
251
|
-
* Whether to include groups in the resultset. Only supported for Confluence. @default false
|
|
252
|
-
*/
|
|
253
231
|
includeGroups?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* Whether to include teams in the resultset. @default false
|
|
256
|
-
*/
|
|
257
232
|
includeTeams?: boolean;
|
|
258
|
-
/**
|
|
259
|
-
* Whether to include users in the resultset. @default true
|
|
260
|
-
*/
|
|
261
233
|
includeUsers?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* An identifier of the closest context object, e.g. issueId, pageId, pullRequestId.
|
|
264
|
-
* Used for analytics. Optional, but please include if available.
|
|
265
|
-
*/
|
|
266
234
|
objectId?: string;
|
|
267
|
-
/**
|
|
268
|
-
* Custom handler to give opportunity for caller to return list of options when server returns empty list.
|
|
269
|
-
* this is called if server returns empty list. This will NOT be called if props.filterOptions returns empty list.
|
|
270
|
-
*/
|
|
271
235
|
onEmpty?: OnEmpty;
|
|
272
|
-
/**
|
|
273
|
-
* Error handler for when the server fails to suggest users and returns with an error response.
|
|
274
|
-
* `error`: the error.
|
|
275
|
-
* `RecommendationRequest`: the original recommendationRequest containing the query and other search parameters.
|
|
276
|
-
* This may be used to provide a fail over search direct to the product backend.
|
|
277
|
-
* Helper fail over clients exist under /helpers.
|
|
278
|
-
* Note that OnError results are filtered.
|
|
279
|
-
*/
|
|
280
236
|
onError?: OnError;
|
|
281
|
-
/**
|
|
282
|
-
* Error handler used to provide OptionData[] values when the server fails to hydrate the `defaultValue` prop's values.
|
|
283
|
-
*/
|
|
284
237
|
onValueError?: OnValueError;
|
|
285
|
-
|
|
286
|
-
* Prefetch the list of suggested assignees before the user picker is focused.
|
|
287
|
-
* WARNING: please consider carefully before deciding to prefetch your suggestions
|
|
288
|
-
* as this will increase the load on the recommendations services (has caused HOTs).
|
|
289
|
-
* Please give #help-smart-experiences a ballpark on the expected request volume.
|
|
290
|
-
*/
|
|
238
|
+
orgId?: string;
|
|
291
239
|
prefetch?: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* Id of the user interacting with the component.
|
|
294
|
-
* If principalId is not provided, server will extract principalId from the context header, assuming that the user is logged in
|
|
295
|
-
* when making the request. @default “context”
|
|
296
|
-
*/
|
|
297
240
|
principalId?: string;
|
|
298
|
-
/**
|
|
299
|
-
* Product-specific Attributes - you should pass in the attribute type that matches your current SupportedProduct.
|
|
300
|
-
* Currently we support additional attributes (BitbucketAttributes) for bitbucket and (ConfluenceAttributes) for Confluence.
|
|
301
|
-
*/
|
|
302
241
|
productAttributes?: ProductAttributes;
|
|
303
|
-
/**
|
|
304
|
-
* Product identifier. If you are an NPF, please ensure your product has been onboarded with
|
|
305
|
-
* Cross-product user-search @see https://developer.atlassian.com/cloud/cross-product-user-search/
|
|
306
|
-
* If you are still waiting for CPUS, you can use the `people` productKey in the interim.
|
|
307
|
-
*/
|
|
308
242
|
productKey: string;
|
|
309
|
-
/**
|
|
310
|
-
* Filter to be applied to the eventual query to CPUS for user suggestions.
|
|
311
|
-
* Example:`account_status:"active" AND (NOT email_domain:"connect.atlassian.com")`
|
|
312
|
-
* will remove inactive users from the list of suggestions.
|
|
313
|
-
*/
|
|
314
243
|
searchQueryFilter?: string;
|
|
315
|
-
/**
|
|
316
|
-
* Identifier for the product's tenant, also known as tenantId or cloudId
|
|
317
|
-
*/
|
|
318
244
|
siteId: string;
|
|
319
|
-
/**
|
|
320
|
-
* Identifier for the organization in which to search for teams.
|
|
321
|
-
*/
|
|
322
|
-
orgId?: string;
|
|
323
245
|
}
|
|
324
246
|
|
|
325
|
-
|
|
247
|
+
// @public (undocumented)
|
|
248
|
+
const SmartUserPickerWithIntlProvider: React_2.FunctionComponent<Props>;
|
|
326
249
|
export default SmartUserPickerWithIntlProvider;
|
|
327
250
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
251
|
+
// @public (undocumented)
|
|
252
|
+
export interface State {
|
|
253
|
+
// (undocumented)
|
|
254
|
+
bootstrapOptions: OptionData[];
|
|
255
|
+
// (undocumented)
|
|
331
256
|
closed: boolean;
|
|
257
|
+
// (undocumented)
|
|
258
|
+
defaultValue?: DefaultValue;
|
|
259
|
+
// (undocumented)
|
|
260
|
+
loading: boolean;
|
|
261
|
+
// (undocumented)
|
|
332
262
|
query: string;
|
|
263
|
+
// (undocumented)
|
|
333
264
|
sessionId?: string;
|
|
334
|
-
|
|
335
|
-
|
|
265
|
+
// (undocumented)
|
|
266
|
+
users: OptionData[];
|
|
336
267
|
}
|
|
337
268
|
|
|
338
269
|
export { Target };
|
|
@@ -359,5 +290,20 @@ export { UserType };
|
|
|
359
290
|
|
|
360
291
|
export { Value };
|
|
361
292
|
|
|
362
|
-
|
|
293
|
+
// (No @packageDocumentation comment for this package)
|
|
363
294
|
```
|
|
295
|
+
|
|
296
|
+
<!--SECTION END: Main Entry Types-->
|
|
297
|
+
|
|
298
|
+
### Peer Dependencies
|
|
299
|
+
|
|
300
|
+
<!--SECTION START: Peer Dependencies-->
|
|
301
|
+
|
|
302
|
+
```json
|
|
303
|
+
{
|
|
304
|
+
"react": "^16.8.0",
|
|
305
|
+
"react-dom": "^16.8.0"
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
<!--SECTION END: Peer Dependencies-->
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/smart-user-picker"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ActionTypes } from '@atlaskit/user-picker';
|
|
8
|
+
import { Appearance } from '@atlaskit/user-picker';
|
|
9
|
+
import { AtlasKitSelectChange } from '@atlaskit/user-picker';
|
|
10
|
+
import { AtlaskitSelectValue } from '@atlaskit/user-picker';
|
|
11
|
+
import { DefaultValue } from '@atlaskit/user-picker';
|
|
12
|
+
import { Email } from '@atlaskit/user-picker';
|
|
13
|
+
import { EmailType } from '@atlaskit/user-picker';
|
|
14
|
+
import { EmailValidationResponse } from '@atlaskit/user-picker';
|
|
15
|
+
import { EmailValidator } from '@atlaskit/user-picker';
|
|
16
|
+
import { ExternalUser } from '@atlaskit/user-picker';
|
|
17
|
+
import { Group } from '@atlaskit/user-picker';
|
|
18
|
+
import { GroupHighlight } from '@atlaskit/user-picker';
|
|
19
|
+
import { GroupType } from '@atlaskit/user-picker';
|
|
20
|
+
import { HighlightRange } from '@atlaskit/user-picker';
|
|
21
|
+
import { InputActionTypes } from '@atlaskit/user-picker';
|
|
22
|
+
import { IntlShape } from 'react-intl-next';
|
|
23
|
+
import { isEmail } from '@atlaskit/user-picker';
|
|
24
|
+
import { isTeam } from '@atlaskit/user-picker';
|
|
25
|
+
import { isUser } from '@atlaskit/user-picker';
|
|
26
|
+
import { isValidEmail } from '@atlaskit/user-picker';
|
|
27
|
+
import { LoadOptions } from '@atlaskit/user-picker';
|
|
28
|
+
import { LozengeProps } from '@atlaskit/user-picker';
|
|
29
|
+
import { OnChange } from '@atlaskit/user-picker';
|
|
30
|
+
import { OnInputChange } from '@atlaskit/user-picker';
|
|
31
|
+
import { OnOption } from '@atlaskit/user-picker';
|
|
32
|
+
import { OnPicker } from '@atlaskit/user-picker';
|
|
33
|
+
import { Option as Option_2 } from '@atlaskit/user-picker';
|
|
34
|
+
import { OptionData } from '@atlaskit/user-picker';
|
|
35
|
+
import { OptionIdentifier } from '@atlaskit/user-picker';
|
|
36
|
+
import { PopupUserPickerProps } from '@atlaskit/user-picker';
|
|
37
|
+
import { Promisable } from '@atlaskit/user-picker';
|
|
38
|
+
import { default as React_2 } from 'react';
|
|
39
|
+
import { Target } from '@atlaskit/user-picker';
|
|
40
|
+
import { Team } from '@atlaskit/user-picker';
|
|
41
|
+
import { TeamHighlight } from '@atlaskit/user-picker';
|
|
42
|
+
import { TeamMember } from '@atlaskit/user-picker';
|
|
43
|
+
import { TeamType } from '@atlaskit/user-picker';
|
|
44
|
+
import { User } from '@atlaskit/user-picker';
|
|
45
|
+
import { UserHighlight } from '@atlaskit/user-picker';
|
|
46
|
+
import { UserPickerProps } from '@atlaskit/user-picker';
|
|
47
|
+
import { UserPickerState } from '@atlaskit/user-picker';
|
|
48
|
+
import { UserSource } from '@atlaskit/user-picker';
|
|
49
|
+
import { UserType } from '@atlaskit/user-picker';
|
|
50
|
+
import { Value } from '@atlaskit/user-picker';
|
|
51
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
52
|
+
|
|
53
|
+
export { ActionTypes }
|
|
54
|
+
|
|
55
|
+
export { Appearance }
|
|
56
|
+
|
|
57
|
+
export { AtlasKitSelectChange }
|
|
58
|
+
|
|
59
|
+
export { AtlaskitSelectValue }
|
|
60
|
+
|
|
61
|
+
// @public (undocumented)
|
|
62
|
+
interface BitbucketAttributes {
|
|
63
|
+
emailDomain?: string;
|
|
64
|
+
isPublicRepo?: boolean;
|
|
65
|
+
workspaceIds?: string[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// @public (undocumented)
|
|
69
|
+
interface ConfluenceAttributes {
|
|
70
|
+
isEntitledConfluenceExternalCollaborator?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// @public (undocumented)
|
|
74
|
+
interface Context {
|
|
75
|
+
// (undocumented)
|
|
76
|
+
childObjectId?: string;
|
|
77
|
+
// (undocumented)
|
|
78
|
+
containerId?: string;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
contextType: string;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
objectId?: string;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
organizationId?: string;
|
|
85
|
+
// (undocumented)
|
|
86
|
+
principalId?: string;
|
|
87
|
+
// (undocumented)
|
|
88
|
+
productAttributes?: ProductAttributes;
|
|
89
|
+
// (undocumented)
|
|
90
|
+
productKey: string;
|
|
91
|
+
// (undocumented)
|
|
92
|
+
sessionId?: string;
|
|
93
|
+
// (undocumented)
|
|
94
|
+
siteId: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { DefaultValue }
|
|
98
|
+
|
|
99
|
+
export { Email }
|
|
100
|
+
|
|
101
|
+
export { EmailType }
|
|
102
|
+
|
|
103
|
+
export { EmailValidationResponse }
|
|
104
|
+
|
|
105
|
+
export { EmailValidator }
|
|
106
|
+
|
|
107
|
+
export { ExternalUser }
|
|
108
|
+
|
|
109
|
+
// @public (undocumented)
|
|
110
|
+
type FilterOptions = (options: OptionData[], query: string) => OptionData[];
|
|
111
|
+
|
|
112
|
+
// @public (undocumented)
|
|
113
|
+
export const getUserRecommendations: (request: RecommendationRequest, intl: IntlShape) => Promise<OptionData[]>;
|
|
114
|
+
|
|
115
|
+
export { Group }
|
|
116
|
+
|
|
117
|
+
export { GroupHighlight }
|
|
118
|
+
|
|
119
|
+
export { GroupType }
|
|
120
|
+
|
|
121
|
+
export { HighlightRange }
|
|
122
|
+
|
|
123
|
+
// @public (undocumented)
|
|
124
|
+
export function hydrateDefaultValues(baseUrl: string | undefined, value: DefaultValue, productKey: string): Promise<DefaultValue>;
|
|
125
|
+
|
|
126
|
+
export { InputActionTypes }
|
|
127
|
+
|
|
128
|
+
export { isEmail }
|
|
129
|
+
|
|
130
|
+
export { isTeam }
|
|
131
|
+
|
|
132
|
+
export { isUser }
|
|
133
|
+
|
|
134
|
+
export { isValidEmail }
|
|
135
|
+
|
|
136
|
+
export { LoadOptions }
|
|
137
|
+
|
|
138
|
+
export { LozengeProps }
|
|
139
|
+
|
|
140
|
+
export { OnChange }
|
|
141
|
+
|
|
142
|
+
// @public (undocumented)
|
|
143
|
+
type OnEmpty = (query: string) => Promise<OptionData[]>;
|
|
144
|
+
|
|
145
|
+
// @public (undocumented)
|
|
146
|
+
type OnError = (error: any, request: RecommendationRequest) => Promise<OptionData[]> | void;
|
|
147
|
+
|
|
148
|
+
export { OnInputChange }
|
|
149
|
+
|
|
150
|
+
export { OnOption }
|
|
151
|
+
|
|
152
|
+
export { OnPicker }
|
|
153
|
+
|
|
154
|
+
// @public (undocumented)
|
|
155
|
+
type OnValueError = (error: any, defaultValue: DefaultValue) => Promise<OptionData[]> | void;
|
|
156
|
+
|
|
157
|
+
export { Option_2 as Option }
|
|
158
|
+
|
|
159
|
+
export { OptionData }
|
|
160
|
+
|
|
161
|
+
export { OptionIdentifier }
|
|
162
|
+
|
|
163
|
+
export { PopupUserPickerProps }
|
|
164
|
+
|
|
165
|
+
// @public (undocumented)
|
|
166
|
+
type ProductAttributes = BitbucketAttributes | ConfluenceAttributes;
|
|
167
|
+
|
|
168
|
+
export { Promisable }
|
|
169
|
+
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export interface Props extends SmartProps, UserPickerProps, WithAnalyticsEventsProps {
|
|
172
|
+
defaultValue?: DefaultValue;
|
|
173
|
+
fieldId: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// @public (undocumented)
|
|
177
|
+
export interface RecommendationRequest {
|
|
178
|
+
// (undocumented)
|
|
179
|
+
baseUrl?: string;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
context: Context;
|
|
182
|
+
// (undocumented)
|
|
183
|
+
includeGroups?: boolean;
|
|
184
|
+
// (undocumented)
|
|
185
|
+
includeTeams?: boolean;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
includeUsers?: boolean;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
maxNumberOfResults: number;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
query?: string;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
searchQueryFilter?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// @public (undocumented)
|
|
197
|
+
interface SmartProps {
|
|
198
|
+
baseUrl?: string;
|
|
199
|
+
bootstrapOptions?: OptionData[];
|
|
200
|
+
childObjectId?: string;
|
|
201
|
+
containerId?: string;
|
|
202
|
+
debounceTime?: number;
|
|
203
|
+
filterOptions?: FilterOptions;
|
|
204
|
+
includeGroups?: boolean;
|
|
205
|
+
includeTeams?: boolean;
|
|
206
|
+
includeUsers?: boolean;
|
|
207
|
+
objectId?: string;
|
|
208
|
+
onEmpty?: OnEmpty;
|
|
209
|
+
onError?: OnError;
|
|
210
|
+
onValueError?: OnValueError;
|
|
211
|
+
orgId?: string;
|
|
212
|
+
prefetch?: boolean;
|
|
213
|
+
principalId?: string;
|
|
214
|
+
productAttributes?: ProductAttributes;
|
|
215
|
+
productKey: string;
|
|
216
|
+
searchQueryFilter?: string;
|
|
217
|
+
siteId: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// @public (undocumented)
|
|
221
|
+
const SmartUserPickerWithIntlProvider: React_2.FunctionComponent<Props>;
|
|
222
|
+
export default SmartUserPickerWithIntlProvider;
|
|
223
|
+
|
|
224
|
+
// @public (undocumented)
|
|
225
|
+
export interface State {
|
|
226
|
+
// (undocumented)
|
|
227
|
+
bootstrapOptions: OptionData[];
|
|
228
|
+
// (undocumented)
|
|
229
|
+
closed: boolean;
|
|
230
|
+
// (undocumented)
|
|
231
|
+
defaultValue?: DefaultValue;
|
|
232
|
+
// (undocumented)
|
|
233
|
+
loading: boolean;
|
|
234
|
+
// (undocumented)
|
|
235
|
+
query: string;
|
|
236
|
+
// (undocumented)
|
|
237
|
+
sessionId?: string;
|
|
238
|
+
// (undocumented)
|
|
239
|
+
users: OptionData[];
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export { Target }
|
|
243
|
+
|
|
244
|
+
export { Team }
|
|
245
|
+
|
|
246
|
+
export { TeamHighlight }
|
|
247
|
+
|
|
248
|
+
export { TeamMember }
|
|
249
|
+
|
|
250
|
+
export { TeamType }
|
|
251
|
+
|
|
252
|
+
export { User }
|
|
253
|
+
|
|
254
|
+
export { UserHighlight }
|
|
255
|
+
|
|
256
|
+
export { UserPickerProps }
|
|
257
|
+
|
|
258
|
+
export { UserPickerState }
|
|
259
|
+
|
|
260
|
+
export { UserSource }
|
|
261
|
+
|
|
262
|
+
export { UserType }
|
|
263
|
+
|
|
264
|
+
export { Value }
|
|
265
|
+
|
|
266
|
+
// (No @packageDocumentation comment for this package)
|
|
267
|
+
|
|
268
|
+
```
|