@atlaskit/user-picker 8.6.1 → 8.6.2

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 (26) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/smart-user-picker/components/index.js +1 -1
  3. package/dist/cjs/components/smart-user-picker/config/index.js +3 -3
  4. package/dist/cjs/components/smart-user-picker/service/UsersClient.js +1 -1
  5. package/dist/cjs/components/smart-user-picker/service/recommendationClient.js +1 -1
  6. package/dist/cjs/components/smart-user-picker/service/users-transformer.js +1 -1
  7. package/dist/cjs/version.json +1 -1
  8. package/dist/es2019/components/smart-user-picker/components/index.js +1 -1
  9. package/dist/es2019/components/smart-user-picker/config/index.js +3 -3
  10. package/dist/es2019/components/smart-user-picker/service/UsersClient.js +2 -2
  11. package/dist/es2019/components/smart-user-picker/service/recommendationClient.js +1 -1
  12. package/dist/es2019/components/smart-user-picker/service/users-transformer.js +1 -1
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/esm/components/smart-user-picker/components/index.js +1 -1
  15. package/dist/esm/components/smart-user-picker/config/index.js +3 -3
  16. package/dist/esm/components/smart-user-picker/service/UsersClient.js +2 -2
  17. package/dist/esm/components/smart-user-picker/service/recommendationClient.js +1 -1
  18. package/dist/esm/components/smart-user-picker/service/users-transformer.js +1 -1
  19. package/dist/esm/version.json +1 -1
  20. package/dist/types/components/smart-user-picker/components/index.d.ts +9 -9
  21. package/dist/types/components/smart-user-picker/config/index.d.ts +3 -3
  22. package/dist/types/components/smart-user-picker/service/UsersClient.d.ts +2 -2
  23. package/dist/types/components/smart-user-picker/service/recommendationClient.d.ts +2 -2
  24. package/dist/types/components/smart-user-picker/service/users-transformer.d.ts +1 -1
  25. package/docs/1-smart-user-picker.tsx +3 -2
  26. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 8.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5df1ae17438`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5df1ae17438) - @atlassian/smart-user-picker will now be made public and renamed @atlaskit/smart-user-picker to provide a 1-1 replacement for @atlaskit/user-picker/smart-user-picker (UR-3417).
8
+
3
9
  ## 8.6.1
4
10
 
5
11
  ### Patch Changes
@@ -110,7 +110,7 @@ function isOptionData(option) {
110
110
  return option.name !== undefined;
111
111
  }
112
112
  /**
113
- * @deprecated Please use @atlassian/smart-user-picker
113
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
114
114
  */
115
115
 
116
116
 
@@ -24,14 +24,14 @@ var PRD_CONFIG = {
24
24
  }
25
25
  };
26
26
  /**
27
- * @deprecated Please use @atlassian/smart-user-picker
27
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
28
28
  */
29
29
 
30
30
  var setSmartUserPickerEnv = function setSmartUserPickerEnv(newEnv) {
31
31
  return env = newEnv;
32
32
  };
33
33
  /**
34
- * @deprecated Please use @atlassian/smart-user-picker
34
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
35
35
  */
36
36
 
37
37
 
@@ -41,7 +41,7 @@ var getConfig = function getConfig() {
41
41
  return env === 'local' ? LOCAL_CONFIG : PRD_CONFIG;
42
42
  };
43
43
  /**
44
- * @deprecated Please use @atlassian/smart-user-picker
44
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
45
45
  */
46
46
 
47
47
 
@@ -77,7 +77,7 @@ var transformConfluenceUser = function transformConfluenceUser(item) {
77
77
  };
78
78
  };
79
79
  /**
80
- * @deprecated Please use @atlassian/smart-user-picker
80
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
81
81
  */
82
82
 
83
83
 
@@ -67,7 +67,7 @@ var getUserRecommendations = function getUserRecommendations(request, intl) {
67
67
  });
68
68
  };
69
69
  /**
70
- * @deprecated Please use @atlassian/smart-user-picker
70
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
71
71
  */
72
72
 
73
73
 
@@ -81,7 +81,7 @@ var transformUser = function transformUser(item, intl) {
81
81
  return;
82
82
  };
83
83
  /**
84
- * @deprecated Please use @atlassian/smart-user-picker
84
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
85
85
  */
86
86
 
87
87
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.6.1",
3
+ "version": "8.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -56,7 +56,7 @@ function isOptionData(option) {
56
56
  return option.name !== undefined;
57
57
  }
58
58
  /**
59
- * @deprecated Please use @atlassian/smart-user-picker
59
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
60
60
  */
61
61
 
62
62
 
@@ -21,17 +21,17 @@ const PRD_CONFIG = {
21
21
 
22
22
  };
23
23
  /**
24
- * @deprecated Please use @atlassian/smart-user-picker
24
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
25
25
  */
26
26
 
27
27
  export const setSmartUserPickerEnv = newEnv => env = newEnv;
28
28
  /**
29
- * @deprecated Please use @atlassian/smart-user-picker
29
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
30
30
  */
31
31
 
32
32
  export const getConfig = () => env === 'local' ? LOCAL_CONFIG : PRD_CONFIG;
33
33
  /**
34
- * @deprecated Please use @atlassian/smart-user-picker
34
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
35
35
  */
36
36
 
37
37
  export const JDOG_CLOUD_ID = '49d8b9d6-ee7d-4931-a0ca-7fcae7d1c3b5';
@@ -1,7 +1,7 @@
1
1
  import { getConfig } from '../config';
2
2
  import { UserType } from '../../../types';
3
3
  /**
4
- * @deprecated Please use @atlassian/smart-user-picker
4
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
5
5
  */
6
6
 
7
7
  const getUsersById = request => {
@@ -58,7 +58,7 @@ const transformConfluenceUser = item => {
58
58
  };
59
59
  };
60
60
  /**
61
- * @deprecated Please use @atlassian/smart-user-picker
61
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
62
62
  */
63
63
 
64
64
 
@@ -49,7 +49,7 @@ const getUserRecommendations = (request, intl) => {
49
49
  }).then(response => transformUsers(response, intl));
50
50
  };
51
51
  /**
52
- * @deprecated Please use @atlassian/smart-user-picker
52
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
53
53
  */
54
54
 
55
55
 
@@ -70,7 +70,7 @@ const transformUser = (item, intl) => {
70
70
  return;
71
71
  };
72
72
  /**
73
- * @deprecated Please use @atlassian/smart-user-picker
73
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
74
74
  */
75
75
 
76
76
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.6.1",
3
+ "version": "8.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -80,7 +80,7 @@ function isOptionData(option) {
80
80
  return option.name !== undefined;
81
81
  }
82
82
  /**
83
- * @deprecated Please use @atlassian/smart-user-picker
83
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
84
84
  */
85
85
 
86
86
 
@@ -18,21 +18,21 @@ var PRD_CONFIG = {
18
18
  }
19
19
  };
20
20
  /**
21
- * @deprecated Please use @atlassian/smart-user-picker
21
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
22
22
  */
23
23
 
24
24
  export var setSmartUserPickerEnv = function setSmartUserPickerEnv(newEnv) {
25
25
  return env = newEnv;
26
26
  };
27
27
  /**
28
- * @deprecated Please use @atlassian/smart-user-picker
28
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
29
29
  */
30
30
 
31
31
  export var getConfig = function getConfig() {
32
32
  return env === 'local' ? LOCAL_CONFIG : PRD_CONFIG;
33
33
  };
34
34
  /**
35
- * @deprecated Please use @atlassian/smart-user-picker
35
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
36
36
  */
37
37
 
38
38
  export var JDOG_CLOUD_ID = '49d8b9d6-ee7d-4931-a0ca-7fcae7d1c3b5';
@@ -1,7 +1,7 @@
1
1
  import { getConfig } from '../config';
2
2
  import { UserType } from '../../../types';
3
3
  /**
4
- * @deprecated Please use @atlassian/smart-user-picker
4
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
5
5
  */
6
6
 
7
7
  var getUsersById = function getUsersById(request) {
@@ -72,7 +72,7 @@ var transformConfluenceUser = function transformConfluenceUser(item) {
72
72
  };
73
73
  };
74
74
  /**
75
- * @deprecated Please use @atlassian/smart-user-picker
75
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
76
76
  */
77
77
 
78
78
 
@@ -57,7 +57,7 @@ var getUserRecommendations = function getUserRecommendations(request, intl) {
57
57
  });
58
58
  };
59
59
  /**
60
- * @deprecated Please use @atlassian/smart-user-picker
60
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
61
61
  */
62
62
 
63
63
 
@@ -72,7 +72,7 @@ var transformUser = function transformUser(item, intl) {
72
72
  return;
73
73
  };
74
74
  /**
75
- * @deprecated Please use @atlassian/smart-user-picker
75
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
76
76
  */
77
77
 
78
78
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.6.1",
3
+ "version": "8.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -6,16 +6,16 @@ declare type OnError = (error: any, request: RecommendationRequest) => Promise<O
6
6
  declare type OnValueError = (error: any, defaultValue: DefaultValue) => Promise<OptionData[]> | void;
7
7
  declare type OnEmpty = (query: string) => Promise<OptionData[]>;
8
8
  /**
9
- * @deprecated Please use @atlassian/smart-user-picker
9
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
10
10
  */
11
11
  export declare type SupportedProduct = 'jira' | 'confluence' | 'people' | 'bitbucket' | 'compass';
12
12
  /**
13
- * @deprecated Please use @atlassian/smart-user-picker
13
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
14
14
  */
15
15
  export declare type ProductAttributes = BitbucketAttributes | ConfluenceAttributes;
16
16
  declare type FilterOptions = (options: OptionData[], query: string) => OptionData[];
17
17
  /**
18
- * @deprecated Please use @atlassian/smart-user-picker
18
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
19
19
  */
20
20
  export interface BitbucketAttributes {
21
21
  /**
@@ -32,7 +32,7 @@ export interface BitbucketAttributes {
32
32
  emailDomain?: string;
33
33
  }
34
34
  /**
35
- * @deprecated Please use @atlassian/smart-user-picker
35
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
36
36
  */
37
37
  export interface ConfluenceAttributes {
38
38
  /**
@@ -41,7 +41,7 @@ export interface ConfluenceAttributes {
41
41
  isEntitledConfluenceExternalCollaborator?: boolean;
42
42
  }
43
43
  /**
44
- * @deprecated Please use @atlassian/smart-user-picker
44
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
45
45
  */
46
46
  export interface SmartProps {
47
47
  /**
@@ -96,7 +96,7 @@ export interface SmartProps {
96
96
  orgId?: string;
97
97
  }
98
98
  /**
99
- * @deprecated Please use @atlassian/smart-user-picker
99
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
100
100
  */
101
101
  export interface Props extends SmartProps, UserPickerProps, WithAnalyticsEventsProps {
102
102
  /**
@@ -156,7 +156,7 @@ export interface Props extends SmartProps, UserPickerProps, WithAnalyticsEventsP
156
156
  searchQueryFilter?: string;
157
157
  }
158
158
  /**
159
- * @deprecated Please use @atlassian/smart-user-picker
159
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
160
160
  */
161
161
  export interface State {
162
162
  users: OptionData[];
@@ -169,7 +169,7 @@ export interface State {
169
169
  bootstrapOptions: OptionData[];
170
170
  }
171
171
  /**
172
- * @deprecated Please use @atlassian/smart-user-picker
172
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
173
173
  */
174
174
  export interface RecommendationRequest {
175
175
  baseUrl?: string;
@@ -182,7 +182,7 @@ export interface RecommendationRequest {
182
182
  includeTeams?: boolean;
183
183
  }
184
184
  /**
185
- * @deprecated Please use @atlassian/smart-user-picker
185
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
186
186
  */
187
187
  export declare function hydrateDefaultValues(value: DefaultValue, productKey: SupportedProduct, baseUrl?: string): Promise<User[]>;
188
188
  /**
@@ -3,15 +3,15 @@ interface Config {
3
3
  getUsersServiceUrl(productKey: string, baseUrl?: string): string;
4
4
  }
5
5
  /**
6
- * @deprecated Please use @atlassian/smart-user-picker
6
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
7
7
  */
8
8
  export declare const setSmartUserPickerEnv: (newEnv: 'prod' | 'local') => "prod" | "local";
9
9
  /**
10
- * @deprecated Please use @atlassian/smart-user-picker
10
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
11
11
  */
12
12
  export declare const getConfig: () => Config;
13
13
  /**
14
- * @deprecated Please use @atlassian/smart-user-picker
14
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
15
15
  */
16
16
  export declare const JDOG_CLOUD_ID = "49d8b9d6-ee7d-4931-a0ca-7fcae7d1c3b5";
17
17
  export {};
@@ -1,6 +1,6 @@
1
1
  import { User } from '../../../types';
2
2
  /**
3
- * @deprecated Please use @atlassian/smart-user-picker
3
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
4
4
  */
5
5
  export interface UsersRequest {
6
6
  accountIds: string[];
@@ -9,6 +9,6 @@ export interface UsersRequest {
9
9
  }
10
10
  declare const getUsersById: (request: UsersRequest) => Promise<User[]>;
11
11
  /**
12
- * @deprecated Please use @atlassian/smart-user-picker
12
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
13
13
  */
14
14
  export default getUsersById;
@@ -2,7 +2,7 @@ import { OptionData } from '../../../types';
2
2
  import { ProductAttributes, RecommendationRequest } from '../components';
3
3
  import { IntlShape } from 'react-intl-next';
4
4
  /**
5
- * @deprecated Please use @atlassian/smart-user-picker
5
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
6
6
  */
7
7
  export interface Context {
8
8
  containerId?: string;
@@ -18,6 +18,6 @@ export interface Context {
18
18
  }
19
19
  declare const getUserRecommendations: (request: RecommendationRequest, intl: IntlShape) => Promise<OptionData[]>;
20
20
  /**
21
- * @deprecated Please use @atlassian/smart-user-picker
21
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
22
22
  */
23
23
  export default getUserRecommendations;
@@ -19,7 +19,7 @@ declare enum EntityType {
19
19
  GROUP = "GROUP"
20
20
  }
21
21
  /**
22
- * @deprecated Please use @atlassian/smart-user-picker
22
+ * @deprecated Please use @atlaskit/smart-user-picker. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact #help-smart-experiences for further details.
23
23
  */
24
24
  export declare const transformUsers: (serverResponse: ServerResponse, intl: IntlShape) => OptionData[];
25
25
  export {};
@@ -10,9 +10,10 @@ export default md`
10
10
  >
11
11
  Please use{' '}
12
12
  <a href="https://statlas.prod.atl-paas.net/atlassian-frontend/master#packages/smart-experiences/smart-user-picker">
13
- @atlassian/smart-user-picker
13
+ @atlaskit/smart-user-picker
14
14
  </a>{' '}
15
- instead.
15
+ instead. Alternatively, @atlaskit/smart-hooks will be ready by end of
16
+ FY22Q4. Contact #help-smart-experiences for further details.
16
17
  </SectionMessage>
17
18
  )}
18
19
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "8.6.1",
3
+ "version": "8.6.2",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"