@atlaskit/select 16.7.4 → 16.7.5
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/PopupSelect/PopupSelect.js +3 -3
- package/dist/cjs/Select.js +1 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +1 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/esm/PopupSelect/PopupSelect.js +1 -1
- package/dist/esm/Select.js +1 -1
- package/dist/types/PopupSelect/PopupSelect.d.ts +15 -6
- package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +15 -6
- package/package.json +2 -2
- package/report.api.md +3 -6
- package/tmp/api-report-tmp.d.ts +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 16.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42429](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42429) [`1cc562c4005`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1cc562c4005) - upgrade shallow-equal version to 3.1.0
|
|
8
|
+
|
|
3
9
|
## 16.7.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var _reactSelect = _interopRequireWildcard(require("react-select"));
|
|
|
22
22
|
var _reactUid = require("react-uid");
|
|
23
23
|
var _reactPopper = require("react-popper");
|
|
24
24
|
var _reactNodeResolver = _interopRequireDefault(require("react-node-resolver"));
|
|
25
|
-
var
|
|
25
|
+
var _shallowEqual = require("shallow-equal");
|
|
26
26
|
var _colors = require("@atlaskit/theme/colors");
|
|
27
27
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
28
28
|
var _components = require("./components");
|
|
@@ -484,13 +484,13 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
484
484
|
|
|
485
485
|
// Merge consumer and default popper props
|
|
486
486
|
var mergedPopperProps = _objectSpread(_objectSpread({}, defaultPopperProps), props.popperProps);
|
|
487
|
-
if (!(0,
|
|
487
|
+
if (!(0, _shallowEqual.shallowEqualObjects)(mergedPopperProps, state.mergedPopperProps)) {
|
|
488
488
|
newState.mergedPopperProps = mergedPopperProps;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
// Merge consumer and default components
|
|
492
492
|
var mergedComponents = _objectSpread(_objectSpread({}, _components.defaultComponents), props.components);
|
|
493
|
-
if (!(0,
|
|
493
|
+
if (!(0, _shallowEqual.shallowEqualObjects)(mergedComponents, state.mergedComponents)) {
|
|
494
494
|
newState.mergedComponents = mergedComponents;
|
|
495
495
|
}
|
|
496
496
|
if (!isEmpty(newState)) {
|
package/dist/cjs/Select.js
CHANGED
|
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
10
|
var _createSelect = _interopRequireDefault(require("./createSelect"));
|
|
11
11
|
var packageName = "@atlaskit/select";
|
|
12
|
-
var packageVersion = "16.7.
|
|
12
|
+
var packageVersion = "16.7.5";
|
|
13
13
|
var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
15
15
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
@@ -7,7 +7,7 @@ import Select, { mergeStyles } from 'react-select';
|
|
|
7
7
|
import { uid } from 'react-uid';
|
|
8
8
|
import { Manager, Reference, Popper } from 'react-popper';
|
|
9
9
|
import NodeResolver from 'react-node-resolver';
|
|
10
|
-
import shallowEqualObjects from 'shallow-equal
|
|
10
|
+
import { shallowEqualObjects } from 'shallow-equal';
|
|
11
11
|
import { N80 } from '@atlaskit/theme/colors';
|
|
12
12
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { MenuDialog, DummyControl, defaultComponents } from './components';
|
package/dist/es2019/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import Select from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
const packageName = "@atlaskit/select";
|
|
5
|
-
const packageVersion = "16.7.
|
|
5
|
+
const packageVersion = "16.7.5";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -19,7 +19,7 @@ import Select, { mergeStyles } from 'react-select';
|
|
|
19
19
|
import { uid } from 'react-uid';
|
|
20
20
|
import { Manager, Reference, Popper } from 'react-popper';
|
|
21
21
|
import NodeResolver from 'react-node-resolver';
|
|
22
|
-
import shallowEqualObjects from 'shallow-equal
|
|
22
|
+
import { shallowEqualObjects } from 'shallow-equal';
|
|
23
23
|
import { N80 } from '@atlaskit/theme/colors';
|
|
24
24
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
25
25
|
import { MenuDialog, DummyControl, defaultComponents } from './components';
|
package/dist/esm/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import Select from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
var packageName = "@atlaskit/select";
|
|
5
|
-
var packageVersion = "16.7.
|
|
5
|
+
var packageVersion = "16.7.5";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -173,15 +173,11 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
173
173
|
loadingMessage?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").NoticeProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
174
174
|
menu?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MenuProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
175
175
|
menuList?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MenuListProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
176
|
-
menuPortal?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select/dist/declarations/src/components/Menu").PortalStyleArgs> | undefined;
|
|
176
|
+
menuPortal?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select/dist/declarations/src/components/Menu").PortalStyleArgs> | undefined; /** @deprecated Use isInvalid instead. The state of validation if used in a form */
|
|
177
177
|
multiValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MultiValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
178
178
|
multiValueLabel?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MultiValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
179
179
|
multiValueRemove?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MultiValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
180
|
-
noOptionsMessage?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").NoticeProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
181
|
-
* TODO: This type should be cleaned up with `platform.design-system-team.popup-select-render-perf_i0s6m`.
|
|
182
|
-
* - If discarded, revert to `focusLockEnabled: boolean`
|
|
183
|
-
* - If kept, delete this type.
|
|
184
|
-
*/
|
|
180
|
+
noOptionsMessage?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").NoticeProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
185
181
|
option?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").OptionProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
186
182
|
placeholder?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").PlaceholderProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
187
183
|
singleValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").SingleValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
@@ -191,6 +187,19 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
191
187
|
ClearIndicator: <Option_1, IsMulti_1 extends boolean, Group extends GroupBase<Option_1>>(props: import("react-select").ClearIndicatorProps<Option_1, IsMulti_1, Group>) => import("@emotion/react").jsx.JSX.Element;
|
|
192
188
|
Control: <Option_1, IsMulti_1 extends boolean, Group_1 extends GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element;
|
|
193
189
|
DropdownIndicator: <Option_2, IsMulti_2 extends boolean, Group_2 extends GroupBase<Option_2>>(props: import("react-select").DropdownIndicatorProps<Option_2, IsMulti_2, Group_2>) => import("@emotion/react").jsx.JSX.Element;
|
|
190
|
+
/**
|
|
191
|
+
Render props used to anchor the popup to your content.
|
|
192
|
+
|
|
193
|
+
Make this an interactive element, such as an @atlaskit/button component.
|
|
194
|
+
|
|
195
|
+
The provided render props in `options` are detailed below:
|
|
196
|
+
- `isOpen`: The current state of the popup.
|
|
197
|
+
Use this to change the appearance of your target based on the state of your component
|
|
198
|
+
- `ref`: Pass this ref to the element the Popup should be attached to
|
|
199
|
+
- `onKeyDown`: Pass this keydown handler to the element to allow keyboard users to access the element.
|
|
200
|
+
- `aria-haspopup`, `aria-expanded`, `aria-controls`: Spread these onto a target element to
|
|
201
|
+
ensure your experience is accessible
|
|
202
|
+
*/
|
|
194
203
|
DownChevron: (props: import("react-select/dist/declarations/src/components/indicators").DownChevronProps) => import("@emotion/react").jsx.JSX.Element;
|
|
195
204
|
CrossIcon: (props: import("react-select/dist/declarations/src/components/indicators").CrossIconProps) => import("@emotion/react").jsx.JSX.Element;
|
|
196
205
|
Group: <Option_3, IsMulti_3 extends boolean, Group_3 extends GroupBase<Option_3>>(props: import("react-select").GroupProps<Option_3, IsMulti_3, Group_3>) => import("@emotion/react").jsx.JSX.Element;
|
|
@@ -173,15 +173,11 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
173
173
|
loadingMessage?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").NoticeProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
174
174
|
menu?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MenuProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
175
175
|
menuList?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MenuListProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
176
|
-
menuPortal?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select/dist/declarations/src/components/Menu").PortalStyleArgs> | undefined;
|
|
176
|
+
menuPortal?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select/dist/declarations/src/components/Menu").PortalStyleArgs> | undefined; /** @deprecated Use isInvalid instead. The state of validation if used in a form */
|
|
177
177
|
multiValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MultiValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
178
178
|
multiValueLabel?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MultiValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
179
179
|
multiValueRemove?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").MultiValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
180
|
-
noOptionsMessage?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").NoticeProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
181
|
-
* TODO: This type should be cleaned up with `platform.design-system-team.popup-select-render-perf_i0s6m`.
|
|
182
|
-
* - If discarded, revert to `focusLockEnabled: boolean`
|
|
183
|
-
* - If kept, delete this type.
|
|
184
|
-
*/
|
|
180
|
+
noOptionsMessage?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").NoticeProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
185
181
|
option?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").OptionProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
186
182
|
placeholder?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").PlaceholderProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
187
183
|
singleValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").SingleValueProps<Option, IsMulti, GroupBase<Option>>> | undefined;
|
|
@@ -191,6 +187,19 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
191
187
|
ClearIndicator: <Option_1, IsMulti_1 extends boolean, Group extends GroupBase<Option_1>>(props: import("react-select").ClearIndicatorProps<Option_1, IsMulti_1, Group>) => import("@emotion/react").jsx.JSX.Element;
|
|
192
188
|
Control: <Option_1, IsMulti_1 extends boolean, Group_1 extends GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element;
|
|
193
189
|
DropdownIndicator: <Option_2, IsMulti_2 extends boolean, Group_2 extends GroupBase<Option_2>>(props: import("react-select").DropdownIndicatorProps<Option_2, IsMulti_2, Group_2>) => import("@emotion/react").jsx.JSX.Element;
|
|
190
|
+
/**
|
|
191
|
+
Render props used to anchor the popup to your content.
|
|
192
|
+
|
|
193
|
+
Make this an interactive element, such as an @atlaskit/button component.
|
|
194
|
+
|
|
195
|
+
The provided render props in `options` are detailed below:
|
|
196
|
+
- `isOpen`: The current state of the popup.
|
|
197
|
+
Use this to change the appearance of your target based on the state of your component
|
|
198
|
+
- `ref`: Pass this ref to the element the Popup should be attached to
|
|
199
|
+
- `onKeyDown`: Pass this keydown handler to the element to allow keyboard users to access the element.
|
|
200
|
+
- `aria-haspopup`, `aria-expanded`, `aria-controls`: Spread these onto a target element to
|
|
201
|
+
ensure your experience is accessible
|
|
202
|
+
*/
|
|
194
203
|
DownChevron: (props: import("react-select/dist/declarations/src/components/indicators").DownChevronProps) => import("@emotion/react").jsx.JSX.Element;
|
|
195
204
|
CrossIcon: (props: import("react-select/dist/declarations/src/components/indicators").CrossIconProps) => import("@emotion/react").jsx.JSX.Element;
|
|
196
205
|
Group: <Option_3, IsMulti_3 extends boolean, Group_3 extends GroupBase<Option_3>>(props: import("react-select").GroupProps<Option_3, IsMulti_3, Group_3>) => import("@emotion/react").jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.5",
|
|
4
4
|
"description": "Select allows users to make a single selection or multiple selections from a list of options.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-popper": "^2.2.3",
|
|
57
57
|
"react-select": "^5.4.0",
|
|
58
58
|
"react-uid": "^2.2.0",
|
|
59
|
-
"shallow-equal": "^1.0
|
|
59
|
+
"shallow-equal": "^3.1.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": "^16.8.0",
|
package/report.api.md
CHANGED
|
@@ -1028,7 +1028,9 @@ export class PopupSelect<
|
|
|
1028
1028
|
MenuListProps<Option, IsMulti, GroupType<Option>>
|
|
1029
1029
|
>
|
|
1030
1030
|
| undefined;
|
|
1031
|
-
menuPortal?:
|
|
1031
|
+
menuPortal?:
|
|
1032
|
+
| StylesConfigFunction<PortalStyleArgs>
|
|
1033
|
+
| undefined /** @deprecated Use isInvalid instead. The state of validation if used in a form */;
|
|
1032
1034
|
multiValue?:
|
|
1033
1035
|
| StylesConfigFunction<
|
|
1034
1036
|
MultiValueProps<Option, IsMulti, GroupType<Option>>
|
|
@@ -1047,11 +1049,6 @@ export class PopupSelect<
|
|
|
1047
1049
|
noOptionsMessage?:
|
|
1048
1050
|
| StylesConfigFunction<NoticeProps<Option, IsMulti, GroupType<Option>>>
|
|
1049
1051
|
| undefined;
|
|
1050
|
-
/**
|
|
1051
|
-
* TODO: This type should be cleaned up with `platform.design-system-team.popup-select-render-perf_i0s6m`.
|
|
1052
|
-
* - If discarded, revert to `focusLockEnabled: boolean`
|
|
1053
|
-
* - If kept, delete this type.
|
|
1054
|
-
*/
|
|
1055
1052
|
option?:
|
|
1056
1053
|
| StylesConfigFunction<
|
|
1057
1054
|
OptionProps_2<Option, IsMulti, GroupType<Option>>
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -496,15 +496,11 @@ export class PopupSelect<Option = OptionType, IsMulti extends boolean = false, M
|
|
|
496
496
|
loadingMessage?: StylesConfigFunction<NoticeProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
497
497
|
menu?: StylesConfigFunction<MenuProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
498
498
|
menuList?: StylesConfigFunction<MenuListProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
499
|
-
menuPortal?: StylesConfigFunction<PortalStyleArgs> | undefined;
|
|
499
|
+
menuPortal?: StylesConfigFunction<PortalStyleArgs> | undefined; /** @deprecated Use isInvalid instead. The state of validation if used in a form */
|
|
500
500
|
multiValue?: StylesConfigFunction<MultiValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
501
501
|
multiValueLabel?: StylesConfigFunction<MultiValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
502
502
|
multiValueRemove?: StylesConfigFunction<MultiValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
503
|
-
noOptionsMessage?: StylesConfigFunction<NoticeProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
504
|
-
* TODO: This type should be cleaned up with `platform.design-system-team.popup-select-render-perf_i0s6m`.
|
|
505
|
-
* - If discarded, revert to `focusLockEnabled: boolean`
|
|
506
|
-
* - If kept, delete this type.
|
|
507
|
-
*/
|
|
503
|
+
noOptionsMessage?: StylesConfigFunction<NoticeProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
508
504
|
option?: StylesConfigFunction<OptionProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
509
505
|
placeholder?: StylesConfigFunction<PlaceholderProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
510
506
|
singleValue?: StylesConfigFunction<SingleValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|