@atlaskit/smart-user-picker 6.0.6 → 6.1.0

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.
Files changed (125) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/components/SmartUserPicker.js +178 -175
  3. package/dist/cjs/i18n/cs.js +3 -2
  4. package/dist/cjs/i18n/da.js +3 -2
  5. package/dist/cjs/i18n/de.js +3 -2
  6. package/dist/cjs/i18n/en.js +17 -5
  7. package/dist/cjs/i18n/en_GB.js +17 -5
  8. package/dist/cjs/i18n/en_ZZ.js +3 -2
  9. package/dist/cjs/i18n/es.js +3 -2
  10. package/dist/cjs/i18n/fi.js +3 -2
  11. package/dist/cjs/i18n/fr.js +3 -2
  12. package/dist/cjs/i18n/hu.js +3 -2
  13. package/dist/cjs/i18n/it.js +3 -2
  14. package/dist/cjs/i18n/ja.js +3 -2
  15. package/dist/cjs/i18n/ko.js +3 -2
  16. package/dist/cjs/i18n/nb.js +3 -2
  17. package/dist/cjs/i18n/nl.js +3 -2
  18. package/dist/cjs/i18n/pl.js +3 -2
  19. package/dist/cjs/i18n/pt_BR.js +3 -2
  20. package/dist/cjs/i18n/ru.js +3 -2
  21. package/dist/cjs/i18n/sv.js +3 -2
  22. package/dist/cjs/i18n/th.js +3 -2
  23. package/dist/cjs/i18n/tr.js +3 -2
  24. package/dist/cjs/i18n/uk.js +3 -2
  25. package/dist/cjs/i18n/vi.js +3 -2
  26. package/dist/cjs/i18n/zh.js +3 -2
  27. package/dist/cjs/i18n/zh_TW.js +3 -2
  28. package/dist/cjs/service/default-value-hydration-client.js +91 -97
  29. package/dist/cjs/service/recommendation-client.js +2 -1
  30. package/dist/cjs/service/users-client.js +10 -12
  31. package/dist/cjs/service/users-transformer.js +3 -3
  32. package/dist/cjs/types.js +4 -4
  33. package/dist/cjs/util/i18n-util.js +194 -196
  34. package/dist/cjs/version.json +1 -1
  35. package/dist/es2019/components/SmartUserPicker.js +8 -3
  36. package/dist/es2019/i18n/cs.js +3 -2
  37. package/dist/es2019/i18n/da.js +3 -2
  38. package/dist/es2019/i18n/de.js +3 -2
  39. package/dist/es2019/i18n/en.js +17 -5
  40. package/dist/es2019/i18n/en_GB.js +17 -5
  41. package/dist/es2019/i18n/en_ZZ.js +3 -2
  42. package/dist/es2019/i18n/es.js +3 -2
  43. package/dist/es2019/i18n/fi.js +3 -2
  44. package/dist/es2019/i18n/fr.js +3 -2
  45. package/dist/es2019/i18n/hu.js +3 -2
  46. package/dist/es2019/i18n/it.js +3 -2
  47. package/dist/es2019/i18n/ja.js +3 -2
  48. package/dist/es2019/i18n/ko.js +3 -2
  49. package/dist/es2019/i18n/nb.js +3 -2
  50. package/dist/es2019/i18n/nl.js +3 -2
  51. package/dist/es2019/i18n/pl.js +3 -2
  52. package/dist/es2019/i18n/pt_BR.js +3 -2
  53. package/dist/es2019/i18n/ru.js +3 -2
  54. package/dist/es2019/i18n/sv.js +3 -2
  55. package/dist/es2019/i18n/th.js +3 -2
  56. package/dist/es2019/i18n/tr.js +3 -2
  57. package/dist/es2019/i18n/uk.js +3 -2
  58. package/dist/es2019/i18n/vi.js +3 -2
  59. package/dist/es2019/i18n/zh.js +3 -2
  60. package/dist/es2019/i18n/zh_TW.js +3 -2
  61. package/dist/es2019/service/recommendation-client.js +2 -1
  62. package/dist/es2019/service/users-transformer.js +3 -3
  63. package/dist/es2019/types.js +5 -3
  64. package/dist/es2019/version.json +1 -1
  65. package/dist/esm/components/SmartUserPicker.js +178 -175
  66. package/dist/esm/i18n/cs.js +3 -2
  67. package/dist/esm/i18n/da.js +3 -2
  68. package/dist/esm/i18n/de.js +3 -2
  69. package/dist/esm/i18n/en.js +17 -5
  70. package/dist/esm/i18n/en_GB.js +17 -5
  71. package/dist/esm/i18n/en_ZZ.js +3 -2
  72. package/dist/esm/i18n/es.js +3 -2
  73. package/dist/esm/i18n/fi.js +3 -2
  74. package/dist/esm/i18n/fr.js +3 -2
  75. package/dist/esm/i18n/hu.js +3 -2
  76. package/dist/esm/i18n/it.js +3 -2
  77. package/dist/esm/i18n/ja.js +3 -2
  78. package/dist/esm/i18n/ko.js +3 -2
  79. package/dist/esm/i18n/nb.js +3 -2
  80. package/dist/esm/i18n/nl.js +3 -2
  81. package/dist/esm/i18n/pl.js +3 -2
  82. package/dist/esm/i18n/pt_BR.js +3 -2
  83. package/dist/esm/i18n/ru.js +3 -2
  84. package/dist/esm/i18n/sv.js +3 -2
  85. package/dist/esm/i18n/th.js +3 -2
  86. package/dist/esm/i18n/tr.js +3 -2
  87. package/dist/esm/i18n/uk.js +3 -2
  88. package/dist/esm/i18n/vi.js +3 -2
  89. package/dist/esm/i18n/zh.js +3 -2
  90. package/dist/esm/i18n/zh_TW.js +3 -2
  91. package/dist/esm/service/default-value-hydration-client.js +91 -97
  92. package/dist/esm/service/recommendation-client.js +2 -1
  93. package/dist/esm/service/users-client.js +10 -12
  94. package/dist/esm/service/users-transformer.js +3 -3
  95. package/dist/esm/types.js +5 -3
  96. package/dist/esm/util/i18n-util.js +134 -136
  97. package/dist/esm/version.json +1 -1
  98. package/dist/types/i18n/cs.d.ts +1 -1
  99. package/dist/types/i18n/da.d.ts +1 -1
  100. package/dist/types/i18n/de.d.ts +1 -1
  101. package/dist/types/i18n/en.d.ts +15 -4
  102. package/dist/types/i18n/en_GB.d.ts +15 -4
  103. package/dist/types/i18n/en_ZZ.d.ts +1 -1
  104. package/dist/types/i18n/es.d.ts +1 -1
  105. package/dist/types/i18n/fi.d.ts +1 -1
  106. package/dist/types/i18n/fr.d.ts +1 -1
  107. package/dist/types/i18n/hu.d.ts +1 -1
  108. package/dist/types/i18n/it.d.ts +1 -1
  109. package/dist/types/i18n/ja.d.ts +1 -1
  110. package/dist/types/i18n/ko.d.ts +1 -1
  111. package/dist/types/i18n/nb.d.ts +1 -1
  112. package/dist/types/i18n/nl.d.ts +1 -1
  113. package/dist/types/i18n/pl.d.ts +1 -1
  114. package/dist/types/i18n/pt_BR.d.ts +1 -1
  115. package/dist/types/i18n/ru.d.ts +1 -1
  116. package/dist/types/i18n/sv.d.ts +1 -1
  117. package/dist/types/i18n/th.d.ts +1 -1
  118. package/dist/types/i18n/tr.d.ts +1 -1
  119. package/dist/types/i18n/uk.d.ts +1 -1
  120. package/dist/types/i18n/vi.d.ts +1 -1
  121. package/dist/types/i18n/zh.d.ts +1 -1
  122. package/dist/types/i18n/zh_TW.d.ts +1 -1
  123. package/dist/types/service/recommendation-client.d.ts +4 -0
  124. package/package.json +11 -11
  125. package/tmp/api-report-tmp.d.ts +0 -268
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "6.0.6",
3
+ "version": "6.1.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -17,14 +17,14 @@
17
17
  ".": "./src/index.ts"
18
18
  },
19
19
  "atlassian": {
20
- "team": "Search & Smarts: Smart Experience",
20
+ "team": "Search Platform: Search Experience",
21
21
  "inPublicMirror": false,
22
22
  "releaseModel": "continuous"
23
23
  },
24
24
  "dependencies": {
25
- "@atlaskit/analytics-next": "^9.0.0",
26
- "@atlaskit/ufo": "^0.1.0",
27
- "@atlaskit/user-picker": "^10.1.0",
25
+ "@atlaskit/analytics-next": "^9.1.0",
26
+ "@atlaskit/ufo": "^0.2.0",
27
+ "@atlaskit/user-picker": "^10.2.0",
28
28
  "@babel/runtime": "^7.0.0",
29
29
  "lodash": "^4.17.21",
30
30
  "memoize-one": "^6.0.0",
@@ -36,14 +36,14 @@
36
36
  "react-dom": "^16.8.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@atlaskit/button": "^16.5.0",
39
+ "@atlaskit/button": "^16.7.0",
40
40
  "@atlaskit/docs": "*",
41
41
  "@atlaskit/elements-test-helpers": "^0.7.0",
42
- "@atlaskit/modal-dialog": "^12.4.0",
43
- "@atlaskit/select": "^16.1.0",
44
- "@atlaskit/textfield": "^5.3.0",
45
- "@atlaskit/theme": "^12.2.0",
46
- "@atlaskit/util-data-test": "^17.6.0",
42
+ "@atlaskit/modal-dialog": "^12.5.0",
43
+ "@atlaskit/select": "^16.2.0",
44
+ "@atlaskit/textfield": "^5.4.0",
45
+ "@atlaskit/theme": "^12.5.0",
46
+ "@atlaskit/util-data-test": "^17.8.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",
@@ -1,268 +0,0 @@
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
- ```