@atlaskit/user-picker 11.25.10 → 12.0.1

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 (64) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/BaseUserPicker.js +3 -3
  4. package/dist/cjs/components/EmailOption/main.js +2 -2
  5. package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +4 -4
  6. package/dist/cjs/components/GroupOption/main.js +3 -3
  7. package/dist/cjs/components/MessagesIntlProvider.js +3 -3
  8. package/dist/cjs/components/MultiValue.js +3 -3
  9. package/dist/cjs/components/MultiValueContainer.js +2 -2
  10. package/dist/cjs/components/SingleValue.js +2 -2
  11. package/dist/cjs/components/TeamOption/main.js +9 -9
  12. package/dist/cjs/components/UserOption.js +1 -1
  13. package/dist/cjs/components/i18n.js +2 -2
  14. package/dist/cjs/util/group-options-by-type/index.js +7 -7
  15. package/dist/es2019/analytics.js +1 -1
  16. package/dist/es2019/components/BaseUserPicker.js +1 -1
  17. package/dist/es2019/components/EmailOption/main.js +1 -1
  18. package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
  19. package/dist/es2019/components/GroupOption/main.js +1 -1
  20. package/dist/es2019/components/MessagesIntlProvider.js +1 -1
  21. package/dist/es2019/components/MultiValue.js +1 -1
  22. package/dist/es2019/components/MultiValueContainer.js +1 -1
  23. package/dist/es2019/components/SingleValue.js +1 -1
  24. package/dist/es2019/components/TeamOption/main.js +1 -1
  25. package/dist/es2019/components/UserOption.js +1 -1
  26. package/dist/es2019/components/i18n.js +1 -1
  27. package/dist/es2019/util/group-options-by-type/index.js +1 -1
  28. package/dist/esm/analytics.js +1 -1
  29. package/dist/esm/components/BaseUserPicker.js +1 -1
  30. package/dist/esm/components/EmailOption/main.js +1 -1
  31. package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
  32. package/dist/esm/components/GroupOption/main.js +1 -1
  33. package/dist/esm/components/MessagesIntlProvider.js +1 -1
  34. package/dist/esm/components/MultiValue.js +1 -1
  35. package/dist/esm/components/MultiValueContainer.js +1 -1
  36. package/dist/esm/components/SingleValue.js +1 -1
  37. package/dist/esm/components/TeamOption/main.js +1 -1
  38. package/dist/esm/components/UserOption.js +1 -1
  39. package/dist/esm/components/i18n.js +1 -1
  40. package/dist/esm/util/group-options-by-type/index.js +1 -1
  41. package/dist/types/components/CustomOption/index.d.ts +2 -1
  42. package/dist/types/components/EmailOption/index.d.ts +2 -1
  43. package/dist/types/components/GroupOption/index.d.ts +2 -1
  44. package/dist/types/components/TeamOption/index.d.ts +2 -1
  45. package/dist/types/components/UserPicker.d.ts +30 -23
  46. package/dist/types/components/creatable.d.ts +2 -2
  47. package/dist/types/components/creatableEmailSuggestion.d.ts +7 -6
  48. package/dist/types/components/i18n.d.ts +82 -82
  49. package/dist/types/components/styles.d.ts +3 -2
  50. package/dist/types/components/utils.d.ts +2 -1
  51. package/dist/types/util/group-options-by-type/index.d.ts +2 -1
  52. package/dist/types-ts4.5/components/CustomOption/index.d.ts +2 -1
  53. package/dist/types-ts4.5/components/EmailOption/index.d.ts +2 -1
  54. package/dist/types-ts4.5/components/GroupOption/index.d.ts +2 -1
  55. package/dist/types-ts4.5/components/TeamOption/index.d.ts +2 -1
  56. package/dist/types-ts4.5/components/UserPicker.d.ts +30 -23
  57. package/dist/types-ts4.5/components/creatable.d.ts +2 -2
  58. package/dist/types-ts4.5/components/creatableEmailSuggestion.d.ts +7 -6
  59. package/dist/types-ts4.5/components/i18n.d.ts +82 -82
  60. package/dist/types-ts4.5/components/styles.d.ts +3 -2
  61. package/dist/types-ts4.5/components/utils.d.ts +2 -1
  62. package/dist/types-ts4.5/util/group-options-by-type/index.d.ts +2 -1
  63. package/package.json +9 -9
  64. package/report.api.md +1 -1
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncCustomOption: React.LazyExoticComponent<typeof import("./main").CustomOption>;
2
+ import type { CustomOptionProps } from './main';
3
+ declare const AsyncCustomOption: React.LazyExoticComponent<React.ComponentType<CustomOptionProps>>;
3
4
  export default AsyncCustomOption;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncEmailOption: React.LazyExoticComponent<typeof import("./main").EmailOption>;
2
+ import type { EmailOptionProps } from './main';
3
+ declare const AsyncEmailOption: React.LazyExoticComponent<React.ComponentType<EmailOptionProps>>;
3
4
  export default AsyncEmailOption;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncGroupOption: React.LazyExoticComponent<typeof import("./main").GroupOption>;
2
+ import type { GroupOptionProps } from './main';
3
+ declare const AsyncGroupOption: React.LazyExoticComponent<React.ComponentType<GroupOptionProps>>;
3
4
  export default AsyncGroupOption;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncTeamOption: React.LazyExoticComponent<typeof import("./main").TeamOption>;
2
+ import type { TeamOptionProps } from './main';
3
+ declare const AsyncTeamOption: React.LazyExoticComponent<React.ComponentType<TeamOptionProps>>;
3
4
  export default AsyncTeamOption;
@@ -1,5 +1,12 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
+ import { type PopupSelectProps, type SelectComponentsConfig, type StylesConfig } from '@atlaskit/select';
1
7
  import React from 'react';
2
- import { type UserPickerProps } from '../types';
8
+ import { type Appearance, type DefaultValue, type LoadOptions, type LoadUserSource, type OnChange, type OnInputChange, type OnOption, type OnPicker, type OptionData, type UserPickerProps, type UserPickerRef, type Value } from '../types';
9
+ import type { EmailValidator } from './emailValidation';
3
10
  export declare class UserPickerWithoutAnalytics extends React.Component<UserPickerProps> {
4
11
  ufoId: string;
5
12
  constructor(props: UserPickerProps);
@@ -14,7 +21,7 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
14
21
  addMoreMessage?: string;
15
22
  allowEmail?: boolean;
16
23
  anchor?: React.ComponentType<any>;
17
- appearance?: import("..").Appearance;
24
+ appearance?: Appearance;
18
25
  ariaDescribedBy?: string;
19
26
  ariaLabel?: string;
20
27
  ariaLabelledBy?: string;
@@ -23,15 +30,15 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
23
30
  captureMenuScroll?: boolean;
24
31
  clearValueLabel?: string;
25
32
  closeMenuOnScroll?: boolean | EventListener;
26
- components?: import("@atlaskit/select").SelectComponentsConfig<import("..").OptionData, boolean>;
27
- defaultValue?: import("..").DefaultValue;
33
+ components?: SelectComponentsConfig<OptionData, boolean>;
34
+ customGroupLabels?: Partial<Record<NonNullable<OptionData["type"]>, React.ReactNode>>;
35
+ defaultValue?: DefaultValue;
28
36
  disableInput?: boolean;
29
37
  emailLabel?: string;
30
38
  fieldId: string | null;
31
39
  footer?: React.ReactNode;
32
- forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef>;
33
- groupByTypeOrder?: NonNullable<import("..").OptionData["type"]>[];
34
- customGroupLabels?: Partial<Record<NonNullable<import("..").OptionData["type"]>, React.ReactNode>>;
40
+ forwardedRef?: React.ForwardedRef<UserPickerRef>;
41
+ groupByTypeOrder?: NonNullable<OptionData["type"]>[];
35
42
  header?: React.ReactNode;
36
43
  height?: number | string;
37
44
  includeTeamsUpdates?: boolean;
@@ -43,12 +50,12 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
43
50
  isInvalid?: boolean;
44
51
  isLoading?: boolean;
45
52
  isMulti?: boolean;
46
- isValidEmail?: import("./emailValidation").EmailValidator;
47
- loadOptions?: import("..").LoadOptions;
53
+ isValidEmail?: EmailValidator;
54
+ loadOptions?: LoadOptions;
48
55
  loadOptionsErrorMessage?: (value: {
49
56
  inputValue: string;
50
57
  }) => React.ReactNode;
51
- loadUserSource?: import("../types").LoadUserSource;
58
+ loadUserSource?: LoadUserSource;
52
59
  maxOptions?: number;
53
60
  maxPickerHeight?: number;
54
61
  menuIsOpen?: boolean;
@@ -62,36 +69,36 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
62
69
  noOptionsMessage?: ((value: {
63
70
  inputValue: string;
64
71
  }) => string | null | React.ReactNode) | null | React.ReactNode;
65
- onBlur?: import("..").OnPicker;
66
- onChange?: import("..").OnChange;
67
- onClear?: import("..").OnPicker;
68
- onClose?: import("..").OnPicker;
69
- onFocus?: import("..").OnPicker;
70
- onInputChange?: import("..").OnInputChange;
72
+ onBlur?: OnPicker;
73
+ onChange?: OnChange;
74
+ onClear?: OnPicker;
75
+ onClose?: OnPicker;
76
+ onFocus?: OnPicker;
77
+ onInputChange?: OnInputChange;
71
78
  onKeyDown?: (event: React.KeyboardEvent) => void;
72
- onOpen?: import("..").OnPicker;
73
- onSelection?: import("..").OnOption;
79
+ onOpen?: OnPicker;
80
+ onSelection?: OnOption;
74
81
  open?: boolean;
75
82
  openMenuOnClick?: boolean;
76
83
  openMenuOnFocus?: boolean;
77
- options?: import("..").OptionData[];
84
+ options?: OptionData[];
78
85
  placeholder?: React.ReactNode;
79
86
  placeholderAvatar?: "person" | "team";
80
- popupSelectProps?: import("@atlaskit/select").PopupSelectProps<import("..").OptionData>;
87
+ popupSelectProps?: PopupSelectProps<OptionData>;
81
88
  required?: boolean;
82
89
  search?: string;
83
90
  setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
84
91
  setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
85
92
  showClearIndicator?: boolean;
86
93
  strategy?: "fixed" | "absolute";
87
- styles?: import("@atlaskit/select").StylesConfig;
94
+ styles?: StylesConfig;
88
95
  subtle?: boolean;
89
96
  suggestEmailsForDomain?: string;
90
97
  textFieldBackgroundColor?: boolean;
91
98
  UNSAFE_hasDraggableParentComponent?: boolean;
92
- value?: import("..").Value;
99
+ value?: Value;
93
100
  width?: number | string;
94
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnFocus" | "openMenuOnClick" | "options" | "styles" | "required" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "customGroupLabels" | "header" | "height" | "includeTeamsUpdates" | "isFooterFocused" | "isHeaderFocused" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "minHeight" | "noBorder" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "setIsFooterFocused" | "setIsHeaderFocused" | "showClearIndicator" | "strategy" | "subtle" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
101
+ }, keyof WithAnalyticsEventsProps>, "search" | "appearance" | "height" | "minHeight" | "open" | "isDisabled" | "options" | "anchor" | "footer" | "header" | "subtle" | "value" | "placeholderAvatar" | "noOptionsMessage" | "placeholder" | "defaultValue" | "autoFocus" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "name" | "emailLabel" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "captureMenuScroll" | "clearValueLabel" | "closeMenuOnScroll" | "components" | "disableInput" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "customGroupLabels" | "includeTeamsUpdates" | "inputId" | "isClearable" | "isFooterFocused" | "isHeaderFocused" | "isInvalid" | "isLoading" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuIsOpen" | "menuMinWidth" | "menuPortalTarget" | "menuPosition" | "menuShouldBlockScroll" | "noBorder" | "onClear" | "onClose" | "onInputChange" | "onOpen" | "onSelection" | "openMenuOnClick" | "openMenuOnFocus" | "popupSelectProps" | "required" | "setIsFooterFocused" | "setIsHeaderFocused" | "showClearIndicator" | "strategy" | "styles" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
95
102
  isMulti?: boolean | undefined;
96
103
  width?: number | string | undefined;
97
104
  } & {} & React.RefAttributes<any>>;
@@ -3,10 +3,10 @@ import { type EmailValidator } from './emailValidation';
3
3
  declare function creatableProps(isValidEmail?: EmailValidator): {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
6
- isValidNewOption: (inputValue?: string) => boolean | "" | undefined;
7
- getNewOptionData: (inputValue: string) => Option;
8
6
  formatCreateLabel: (inputText?: string) => string;
7
+ getNewOptionData: (inputValue: string) => Option;
9
8
  isOptionDisabled: (option: Option) => boolean;
9
+ isValidNewOption: (inputValue?: string) => boolean | "" | undefined;
10
10
  };
11
11
  export declare const getCreatableProps: typeof creatableProps;
12
12
  export {};
@@ -1,19 +1,20 @@
1
+ import { type MemoizedFn } from 'memoize-one';
1
2
  import { type Option } from '../types';
2
3
  import { type EmailValidator } from './emailValidation';
3
- export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator) => {
4
+ export declare const getCreatableSuggestedEmailProps: MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator) => {
4
5
  allowCreateWhileLoading: boolean;
5
6
  createOptionPosition: string;
6
- isValidNewOption: (inputValue?: string) => boolean | "" | undefined;
7
+ formatCreateLabel: (inputText?: string) => string;
7
8
  getNewOptionData: (inputValue?: string) => {
8
- label: string;
9
- value: string;
10
9
  data: {
11
10
  id: string;
12
11
  name: string;
13
- type: string;
14
12
  suggestion: boolean;
13
+ type: string;
15
14
  };
15
+ label: string;
16
+ value: string;
16
17
  } | null;
17
- formatCreateLabel: (inputText?: string) => string;
18
18
  isOptionDisabled: (option: Option) => boolean;
19
+ isValidNewOption: (inputValue?: string) => boolean | "" | undefined;
19
20
  }>;
@@ -1,212 +1,212 @@
1
1
  export declare const messages: {
2
- placeholder: {
3
- id: string;
2
+ addEmail: {
4
3
  defaultMessage: string;
5
4
  description: string;
5
+ id: string;
6
6
  };
7
7
  addMore: {
8
- id: string;
9
8
  defaultMessage: string;
10
9
  description: string;
11
- };
12
- remove: {
13
10
  id: string;
11
+ };
12
+ adminManagedGroupByline: {
14
13
  defaultMessage: string;
15
14
  description: string;
16
- };
17
- clear: {
18
15
  id: string;
16
+ };
17
+ archivedLozenge: {
19
18
  defaultMessage: string;
20
19
  description: string;
21
- };
22
- errorMessage: {
23
20
  id: string;
21
+ };
22
+ clear: {
24
23
  defaultMessage: string;
25
24
  description: string;
26
- };
27
- teamByline: {
28
25
  id: string;
26
+ };
27
+ confluenceSource: {
29
28
  defaultMessage: string;
30
29
  description: string;
31
- };
32
- officialTeamByline: {
33
30
  id: string;
31
+ };
32
+ continueToAddEmail: {
34
33
  defaultMessage: string;
35
34
  description: string;
36
- };
37
- officialMemberCountWithoutYou: {
38
35
  id: string;
36
+ };
37
+ customTypeLabel: {
39
38
  defaultMessage: string;
40
39
  description: string;
41
- };
42
- officialMemberCountWithYou: {
43
40
  id: string;
41
+ };
42
+ emailTypeLabel: {
44
43
  defaultMessage: string;
45
44
  description: string;
46
- };
47
- memberCountWithoutYou: {
48
45
  id: string;
46
+ };
47
+ errorMessage: {
49
48
  defaultMessage: string;
50
49
  description: string;
51
- };
52
- memberCountWithYou: {
53
50
  id: string;
51
+ };
52
+ externalUserSourcesError: {
54
53
  defaultMessage: string;
55
54
  description: string;
56
- };
57
- officialPlus50MembersWithoutYou: {
58
55
  id: string;
56
+ };
57
+ externalUserSourcesHeading: {
59
58
  defaultMessage: string;
60
59
  description: string;
61
- };
62
- officialPlus50MembersWithYou: {
63
60
  id: string;
61
+ };
62
+ externalUserTypeLabel: {
64
63
  defaultMessage: string;
65
64
  description: string;
66
- };
67
- plus50MembersWithoutYou: {
68
65
  id: string;
66
+ };
67
+ gitHubProvider: {
69
68
  defaultMessage: string;
70
69
  description: string;
71
- };
72
- plus50MembersWithYou: {
73
70
  id: string;
71
+ };
72
+ googleProvider: {
74
73
  defaultMessage: string;
75
74
  description: string;
76
- };
77
- addEmail: {
78
75
  id: string;
76
+ };
77
+ groupByline: {
79
78
  defaultMessage: string;
80
79
  description: string;
81
- };
82
- selectToAddEmail: {
83
80
  id: string;
81
+ };
82
+ groupTypeLabel: {
84
83
  defaultMessage: string;
85
84
  description: string;
86
- };
87
- continueToAddEmail: {
88
85
  id: string;
86
+ };
87
+ guestGroupLozengeTooltip: {
89
88
  defaultMessage: string;
90
89
  description: string;
91
- };
92
- adminManagedGroupByline: {
93
90
  id: string;
91
+ };
92
+ guestLozengeText: {
94
93
  defaultMessage: string;
95
94
  description: string;
96
- };
97
- groupByline: {
98
95
  id: string;
96
+ };
97
+ guestUserLozengeTooltip: {
99
98
  defaultMessage: string;
100
99
  description: string;
101
- };
102
- externalUserSourcesHeading: {
103
100
  id: string;
101
+ };
102
+ jiraSource: {
104
103
  defaultMessage: string;
105
104
  description: string;
106
- };
107
- externalUserSourcesError: {
108
105
  id: string;
106
+ };
107
+ memberCountWithoutYou: {
109
108
  defaultMessage: string;
110
109
  description: string;
111
- };
112
- slackProvider: {
113
110
  id: string;
111
+ };
112
+ memberCountWithYou: {
114
113
  defaultMessage: string;
115
114
  description: string;
116
- };
117
- googleProvider: {
118
115
  id: string;
116
+ };
117
+ memberLozengeText: {
119
118
  defaultMessage: string;
120
119
  description: string;
120
+ id: string;
121
121
  };
122
122
  microsoftProvider: {
123
- id: string;
124
123
  defaultMessage: string;
125
124
  description: string;
126
- };
127
- gitHubProvider: {
128
125
  id: string;
126
+ };
127
+ officialMemberCountWithoutYou: {
129
128
  defaultMessage: string;
130
129
  description: string;
131
- };
132
- jiraSource: {
133
130
  id: string;
131
+ };
132
+ officialMemberCountWithYou: {
134
133
  defaultMessage: string;
135
134
  description: string;
136
- };
137
- confluenceSource: {
138
135
  id: string;
136
+ };
137
+ officialPlus50MembersWithoutYou: {
139
138
  defaultMessage: string;
140
139
  description: string;
141
- };
142
- otherAtlassianSource: {
143
140
  id: string;
141
+ };
142
+ officialPlus50MembersWithYou: {
144
143
  defaultMessage: string;
145
144
  description: string;
146
- };
147
- otherAtlassianSourceAppify: {
148
145
  id: string;
146
+ };
147
+ officialTeamByline: {
149
148
  defaultMessage: string;
150
149
  description: string;
151
- };
152
- memberLozengeText: {
153
150
  id: string;
151
+ };
152
+ otherAtlassianSource: {
154
153
  defaultMessage: string;
155
154
  description: string;
156
- };
157
- guestLozengeText: {
158
155
  id: string;
156
+ };
157
+ otherAtlassianSourceAppify: {
159
158
  defaultMessage: string;
160
159
  description: string;
161
- };
162
- guestUserLozengeTooltip: {
163
160
  id: string;
161
+ };
162
+ otherTypeLabel: {
164
163
  defaultMessage: string;
165
164
  description: string;
166
- };
167
- guestGroupLozengeTooltip: {
168
165
  id: string;
166
+ };
167
+ placeholder: {
169
168
  defaultMessage: string;
170
169
  description: string;
171
- };
172
- archivedLozenge: {
173
170
  id: string;
171
+ };
172
+ plus50MembersWithoutYou: {
174
173
  defaultMessage: string;
175
174
  description: string;
176
- };
177
- userTypeLabel: {
178
175
  id: string;
176
+ };
177
+ plus50MembersWithYou: {
179
178
  defaultMessage: string;
180
179
  description: string;
181
- };
182
- teamTypeLabel: {
183
180
  id: string;
181
+ };
182
+ remove: {
184
183
  defaultMessage: string;
185
184
  description: string;
186
- };
187
- emailTypeLabel: {
188
185
  id: string;
186
+ };
187
+ selectToAddEmail: {
189
188
  defaultMessage: string;
190
189
  description: string;
191
- };
192
- groupTypeLabel: {
193
190
  id: string;
191
+ };
192
+ slackProvider: {
194
193
  defaultMessage: string;
195
194
  description: string;
196
- };
197
- externalUserTypeLabel: {
198
195
  id: string;
196
+ };
197
+ teamByline: {
199
198
  defaultMessage: string;
200
199
  description: string;
201
- };
202
- customTypeLabel: {
203
200
  id: string;
201
+ };
202
+ teamTypeLabel: {
204
203
  defaultMessage: string;
205
204
  description: string;
206
- };
207
- otherTypeLabel: {
208
205
  id: string;
206
+ };
207
+ userTypeLabel: {
209
208
  defaultMessage: string;
210
209
  description: string;
210
+ id: string;
211
211
  };
212
212
  };
@@ -1,6 +1,7 @@
1
1
  import { type StylesConfig } from '@atlaskit/select';
2
+ import { type MemoizedFn } from 'memoize-one';
2
3
  export declare const BORDER_PADDING: "var(--ds-space-075)";
3
4
  export declare const AVATAR_PADDING = 6;
4
5
  export declare const INDICATOR_WIDTH = 39;
5
- export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, isCompact?: boolean, overrideStyles?: StylesConfig, isVisualRefresh?: boolean, isPopupStyles?: boolean, height?: number | string, minHeight?: number | string) => StylesConfig>;
6
- export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig, isVisualRefresh?: boolean) => StylesConfig>;
6
+ export declare const getStyles: MemoizedFn<(width: string | number, isMulti?: boolean, isCompact?: boolean, overrideStyles?: StylesConfig, isVisualRefresh?: boolean, isPopupStyles?: boolean, height?: number | string, minHeight?: number | string) => StylesConfig>;
7
+ export declare const getPopupStyles: MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig, isVisualRefresh?: boolean) => StylesConfig>;
@@ -1,3 +1,4 @@
1
+ import { type MemoizedFn } from 'memoize-one';
1
2
  import { type ReactChild, type ReactElement, type ReactNode } from 'react';
2
3
  import { type AtlaskitSelectValue, type ExternalUser, type Custom, type Email, type Option, type OptionData, type Promisable, type Team, type Group, type User, type OptionIdentifier, type DefaultValue, type LozengeProps } from '../types';
3
4
  export declare const isExternalUser: (option: OptionData) => option is ExternalUser;
@@ -10,7 +11,7 @@ export declare const isDefaultValuePopulated: (value?: DefaultValue) => boolean;
10
11
  export declare const optionToSelectableOption: (option: OptionData | OptionIdentifier) => Option;
11
12
  export declare const extractOptionValue: (value: AtlaskitSelectValue) => OptionData | OptionData[] | undefined;
12
13
  export declare const isIterable: (a: any) => a is Iterable<Promisable<OptionData | OptionData[]>>;
13
- export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option[]>;
14
+ export declare const getOptions: MemoizedFn<(options: OptionData[]) => Option[]>;
14
15
  export interface OptionToSelectableOptions {
15
16
  (defaultValue: OptionData): Option;
16
17
  (defaultValue: OptionData[]): Option[];
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
+ import { type MemoizedFn } from 'memoize-one';
2
3
  import type { OptionData, Option, GroupedOptions } from '../../types';
3
- export declare const groupOptionsByType: import("memoize-one").MemoizedFn<(options: Option[], groupByTypeOrder: NonNullable<OptionData["type"]>[], customGroupLabels?: Partial<Record<NonNullable<OptionData["type"]>, React.ReactNode>>) => Option[] | GroupedOptions[]>;
4
+ export declare const groupOptionsByType: MemoizedFn<(options: Option[], groupByTypeOrder: NonNullable<OptionData["type"]>[], customGroupLabels?: Partial<Record<NonNullable<OptionData["type"]>, React.ReactNode>>) => Option[] | GroupedOptions[]>;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncCustomOption: React.LazyExoticComponent<typeof import("./main").CustomOption>;
2
+ import type { CustomOptionProps } from './main';
3
+ declare const AsyncCustomOption: React.LazyExoticComponent<React.ComponentType<CustomOptionProps>>;
3
4
  export default AsyncCustomOption;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncEmailOption: React.LazyExoticComponent<typeof import("./main").EmailOption>;
2
+ import type { EmailOptionProps } from './main';
3
+ declare const AsyncEmailOption: React.LazyExoticComponent<React.ComponentType<EmailOptionProps>>;
3
4
  export default AsyncEmailOption;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncGroupOption: React.LazyExoticComponent<typeof import("./main").GroupOption>;
2
+ import type { GroupOptionProps } from './main';
3
+ declare const AsyncGroupOption: React.LazyExoticComponent<React.ComponentType<GroupOptionProps>>;
3
4
  export default AsyncGroupOption;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const AsyncTeamOption: React.LazyExoticComponent<typeof import("./main").TeamOption>;
2
+ import type { TeamOptionProps } from './main';
3
+ declare const AsyncTeamOption: React.LazyExoticComponent<React.ComponentType<TeamOptionProps>>;
3
4
  export default AsyncTeamOption;
@@ -1,5 +1,12 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
+ import { type PopupSelectProps, type SelectComponentsConfig, type StylesConfig } from '@atlaskit/select';
1
7
  import React from 'react';
2
- import { type UserPickerProps } from '../types';
8
+ import { type Appearance, type DefaultValue, type LoadOptions, type LoadUserSource, type OnChange, type OnInputChange, type OnOption, type OnPicker, type OptionData, type UserPickerProps, type UserPickerRef, type Value } from '../types';
9
+ import type { EmailValidator } from './emailValidation';
3
10
  export declare class UserPickerWithoutAnalytics extends React.Component<UserPickerProps> {
4
11
  ufoId: string;
5
12
  constructor(props: UserPickerProps);
@@ -14,7 +21,7 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
14
21
  addMoreMessage?: string;
15
22
  allowEmail?: boolean;
16
23
  anchor?: React.ComponentType<any>;
17
- appearance?: import("..").Appearance;
24
+ appearance?: Appearance;
18
25
  ariaDescribedBy?: string;
19
26
  ariaLabel?: string;
20
27
  ariaLabelledBy?: string;
@@ -23,15 +30,15 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
23
30
  captureMenuScroll?: boolean;
24
31
  clearValueLabel?: string;
25
32
  closeMenuOnScroll?: boolean | EventListener;
26
- components?: import("@atlaskit/select").SelectComponentsConfig<import("..").OptionData, boolean>;
27
- defaultValue?: import("..").DefaultValue;
33
+ components?: SelectComponentsConfig<OptionData, boolean>;
34
+ customGroupLabels?: Partial<Record<NonNullable<OptionData["type"]>, React.ReactNode>>;
35
+ defaultValue?: DefaultValue;
28
36
  disableInput?: boolean;
29
37
  emailLabel?: string;
30
38
  fieldId: string | null;
31
39
  footer?: React.ReactNode;
32
- forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef>;
33
- groupByTypeOrder?: NonNullable<import("..").OptionData["type"]>[];
34
- customGroupLabels?: Partial<Record<NonNullable<import("..").OptionData["type"]>, React.ReactNode>>;
40
+ forwardedRef?: React.ForwardedRef<UserPickerRef>;
41
+ groupByTypeOrder?: NonNullable<OptionData["type"]>[];
35
42
  header?: React.ReactNode;
36
43
  height?: number | string;
37
44
  includeTeamsUpdates?: boolean;
@@ -43,12 +50,12 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
43
50
  isInvalid?: boolean;
44
51
  isLoading?: boolean;
45
52
  isMulti?: boolean;
46
- isValidEmail?: import("./emailValidation").EmailValidator;
47
- loadOptions?: import("..").LoadOptions;
53
+ isValidEmail?: EmailValidator;
54
+ loadOptions?: LoadOptions;
48
55
  loadOptionsErrorMessage?: (value: {
49
56
  inputValue: string;
50
57
  }) => React.ReactNode;
51
- loadUserSource?: import("../types").LoadUserSource;
58
+ loadUserSource?: LoadUserSource;
52
59
  maxOptions?: number;
53
60
  maxPickerHeight?: number;
54
61
  menuIsOpen?: boolean;
@@ -62,36 +69,36 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
62
69
  noOptionsMessage?: ((value: {
63
70
  inputValue: string;
64
71
  }) => string | null | React.ReactNode) | null | React.ReactNode;
65
- onBlur?: import("..").OnPicker;
66
- onChange?: import("..").OnChange;
67
- onClear?: import("..").OnPicker;
68
- onClose?: import("..").OnPicker;
69
- onFocus?: import("..").OnPicker;
70
- onInputChange?: import("..").OnInputChange;
72
+ onBlur?: OnPicker;
73
+ onChange?: OnChange;
74
+ onClear?: OnPicker;
75
+ onClose?: OnPicker;
76
+ onFocus?: OnPicker;
77
+ onInputChange?: OnInputChange;
71
78
  onKeyDown?: (event: React.KeyboardEvent) => void;
72
- onOpen?: import("..").OnPicker;
73
- onSelection?: import("..").OnOption;
79
+ onOpen?: OnPicker;
80
+ onSelection?: OnOption;
74
81
  open?: boolean;
75
82
  openMenuOnClick?: boolean;
76
83
  openMenuOnFocus?: boolean;
77
- options?: import("..").OptionData[];
84
+ options?: OptionData[];
78
85
  placeholder?: React.ReactNode;
79
86
  placeholderAvatar?: "person" | "team";
80
- popupSelectProps?: import("@atlaskit/select").PopupSelectProps<import("..").OptionData>;
87
+ popupSelectProps?: PopupSelectProps<OptionData>;
81
88
  required?: boolean;
82
89
  search?: string;
83
90
  setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
84
91
  setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
85
92
  showClearIndicator?: boolean;
86
93
  strategy?: "fixed" | "absolute";
87
- styles?: import("@atlaskit/select").StylesConfig;
94
+ styles?: StylesConfig;
88
95
  subtle?: boolean;
89
96
  suggestEmailsForDomain?: string;
90
97
  textFieldBackgroundColor?: boolean;
91
98
  UNSAFE_hasDraggableParentComponent?: boolean;
92
- value?: import("..").Value;
99
+ value?: Value;
93
100
  width?: number | string;
94
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnFocus" | "openMenuOnClick" | "options" | "styles" | "required" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "customGroupLabels" | "header" | "height" | "includeTeamsUpdates" | "isFooterFocused" | "isHeaderFocused" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "minHeight" | "noBorder" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "setIsFooterFocused" | "setIsHeaderFocused" | "showClearIndicator" | "strategy" | "subtle" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
101
+ }, keyof WithAnalyticsEventsProps>, "search" | "appearance" | "height" | "minHeight" | "open" | "isDisabled" | "options" | "anchor" | "footer" | "header" | "subtle" | "value" | "placeholderAvatar" | "noOptionsMessage" | "placeholder" | "defaultValue" | "autoFocus" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "name" | "emailLabel" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "captureMenuScroll" | "clearValueLabel" | "closeMenuOnScroll" | "components" | "disableInput" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "customGroupLabels" | "includeTeamsUpdates" | "inputId" | "isClearable" | "isFooterFocused" | "isHeaderFocused" | "isInvalid" | "isLoading" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuIsOpen" | "menuMinWidth" | "menuPortalTarget" | "menuPosition" | "menuShouldBlockScroll" | "noBorder" | "onClear" | "onClose" | "onInputChange" | "onOpen" | "onSelection" | "openMenuOnClick" | "openMenuOnFocus" | "popupSelectProps" | "required" | "setIsFooterFocused" | "setIsHeaderFocused" | "showClearIndicator" | "strategy" | "styles" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
95
102
  isMulti?: boolean | undefined;
96
103
  width?: number | string | undefined;
97
104
  } & {} & React.RefAttributes<any>>;