@atlaskit/user-picker 9.7.4 → 10.0.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/components/BaseUserPicker.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/BaseUserPicker.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/BaseUserPicker.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +2 -1
- package/report.api.md +1 -4
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`ed632fa5f70`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed632fa5f70) - Changing the typing for noOptionsMessage to accept either functions/null. No strings accepted; previously, due to a downstream change, providing strings did not work. Also fixed onClose behavior, previously did not work. Converted some tests to react testing library.
|
|
8
|
+
|
|
3
9
|
## 9.7.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -569,7 +569,7 @@ var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
|
569
569
|
onChange: this.handleChange,
|
|
570
570
|
onFocus: this.handleFocus,
|
|
571
571
|
onBlur: this.handleBlur,
|
|
572
|
-
|
|
572
|
+
onMenuClose: this.handleClose,
|
|
573
573
|
onInputChange: this.handleInputChange,
|
|
574
574
|
onClearIndicatorHover: this.handleClearIndicatorHover,
|
|
575
575
|
onKeyDown: this.handleKeyDown,
|
package/dist/cjs/version.json
CHANGED
|
@@ -530,7 +530,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
|
|
|
530
530
|
onChange: this.handleChange,
|
|
531
531
|
onFocus: this.handleFocus,
|
|
532
532
|
onBlur: this.handleBlur,
|
|
533
|
-
|
|
533
|
+
onMenuClose: this.handleClose,
|
|
534
534
|
onInputChange: this.handleInputChange,
|
|
535
535
|
onClearIndicatorHover: this.handleClearIndicatorHover,
|
|
536
536
|
onKeyDown: this.handleKeyDown,
|
package/dist/es2019/version.json
CHANGED
|
@@ -571,7 +571,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
571
571
|
onChange: this.handleChange,
|
|
572
572
|
onFocus: this.handleFocus,
|
|
573
573
|
onBlur: this.handleBlur,
|
|
574
|
-
|
|
574
|
+
onMenuClose: this.handleClose,
|
|
575
575
|
onInputChange: this.handleInputChange,
|
|
576
576
|
onClearIndicatorHover: this.handleClearIndicatorHover,
|
|
577
577
|
onKeyDown: this.handleKeyDown,
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export declare type UserPickerProps = WithAnalyticsEventsProps & {
|
|
|
97
97
|
*/
|
|
98
98
|
noOptionsMessage?: ((value: {
|
|
99
99
|
inputValue: string;
|
|
100
|
-
}) => string | null) |
|
|
100
|
+
}) => string | null) | null;
|
|
101
101
|
/** Controls if the user picker has a value or not. If not provided, UserPicker will control the value internally. */
|
|
102
102
|
value?: Value;
|
|
103
103
|
/** Disable all interactions with the picker, putting it in a read-only state. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"enzyme-react-intl": "^2.0.6",
|
|
74
74
|
"mock-apollo-client": "^0.1.0",
|
|
75
75
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
76
|
+
"react-select-event": "^5.5.0",
|
|
76
77
|
"typescript": "4.5.5"
|
|
77
78
|
},
|
|
78
79
|
"techstack": {
|
package/report.api.md
CHANGED
|
@@ -495,10 +495,7 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
|
|
|
495
495
|
defaultValue?: DefaultValue;
|
|
496
496
|
placeholder?: React_2.ReactNode;
|
|
497
497
|
addMoreMessage?: string;
|
|
498
|
-
noOptionsMessage?:
|
|
499
|
-
| ((value: { inputValue: string }) => null | string)
|
|
500
|
-
| null
|
|
501
|
-
| string;
|
|
498
|
+
noOptionsMessage?: ((value: { inputValue: string }) => null | string) | null;
|
|
502
499
|
value?: Value;
|
|
503
500
|
isDisabled?: boolean;
|
|
504
501
|
isClearable?: boolean;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -333,7 +333,7 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
|
|
|
333
333
|
addMoreMessage?: string;
|
|
334
334
|
noOptionsMessage?: ((value: {
|
|
335
335
|
inputValue: string;
|
|
336
|
-
}) => null | string) | null
|
|
336
|
+
}) => null | string) | null;
|
|
337
337
|
value?: Value;
|
|
338
338
|
isDisabled?: boolean;
|
|
339
339
|
isClearable?: boolean;
|