@atlaskit/select 16.7.2 → 16.7.4
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 +12 -0
- package/dist/cjs/PopupSelect/PopupSelect.js +5 -0
- package/dist/cjs/Select.js +1 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +5 -0
- package/dist/es2019/Select.js +1 -1
- package/dist/esm/PopupSelect/PopupSelect.js +5 -0
- package/dist/esm/Select.js +1 -1
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 16.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41990](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41990) [`7a88114cef7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a88114cef7) - added type dependency for @types/react-node-resolver
|
|
8
|
+
|
|
9
|
+
## 16.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41553](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41553) [`89f1ebf3c96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89f1ebf3c96) - Fix popup select close issue when pressing escape
|
|
14
|
+
|
|
3
15
|
## 16.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -401,6 +401,11 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
401
401
|
placeholder: placeholder,
|
|
402
402
|
ref: _this.getSelectRef
|
|
403
403
|
}, props, {
|
|
404
|
+
onMenuClose: function onMenuClose() {
|
|
405
|
+
var _props$onMenuClose;
|
|
406
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.popup-select-close_8h15h') && _this.close();
|
|
407
|
+
(_props$onMenuClose = props.onMenuClose) === null || _props$onMenuClose === void 0 || _props$onMenuClose.call(props);
|
|
408
|
+
},
|
|
404
409
|
isSearchable: showSearchControl,
|
|
405
410
|
styles: selectStyles,
|
|
406
411
|
maxMenuHeight: _this.getMaxHeight(),
|
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.4";
|
|
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)({
|
|
@@ -381,6 +381,11 @@ export default class PopupSelect extends PureComponent {
|
|
|
381
381
|
placeholder: placeholder,
|
|
382
382
|
ref: this.getSelectRef
|
|
383
383
|
}, props, {
|
|
384
|
+
onMenuClose: () => {
|
|
385
|
+
var _props$onMenuClose;
|
|
386
|
+
getBooleanFF('platform.design-system-team.popup-select-close_8h15h') && this.close();
|
|
387
|
+
(_props$onMenuClose = props.onMenuClose) === null || _props$onMenuClose === void 0 ? void 0 : _props$onMenuClose.call(props);
|
|
388
|
+
},
|
|
384
389
|
isSearchable: showSearchControl,
|
|
385
390
|
styles: selectStyles,
|
|
386
391
|
maxMenuHeight: this.getMaxHeight(),
|
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.4";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -391,6 +391,11 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
391
391
|
placeholder: placeholder,
|
|
392
392
|
ref: _this.getSelectRef
|
|
393
393
|
}, props, {
|
|
394
|
+
onMenuClose: function onMenuClose() {
|
|
395
|
+
var _props$onMenuClose;
|
|
396
|
+
getBooleanFF('platform.design-system-team.popup-select-close_8h15h') && _this.close();
|
|
397
|
+
(_props$onMenuClose = props.onMenuClose) === null || _props$onMenuClose === void 0 || _props$onMenuClose.call(props);
|
|
398
|
+
},
|
|
394
399
|
isSearchable: showSearchControl,
|
|
395
400
|
styles: selectStyles,
|
|
396
401
|
maxMenuHeight: _this.getMaxHeight(),
|
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.4";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.4",
|
|
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/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
44
44
|
"@atlaskit/spinner": "^15.6.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@emotion/styled": "^11.0.0",
|
|
74
74
|
"@testing-library/react": "^12.1.5",
|
|
75
75
|
"@testing-library/user-event": "^14.4.3",
|
|
76
|
+
"@types/react-node-resolver": "^2.0.0",
|
|
76
77
|
"ast-types": "^0.13.3",
|
|
77
78
|
"jscodeshift": "^0.13.0",
|
|
78
79
|
"react-dom": "^16.8.0",
|
|
@@ -100,6 +101,9 @@
|
|
|
100
101
|
},
|
|
101
102
|
"platform.design-system-team.popup-select-render-perf_i0s6m": {
|
|
102
103
|
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"platform.design-system-team.popup-select-close_8h15h": {
|
|
106
|
+
"type": "boolean"
|
|
103
107
|
}
|
|
104
108
|
},
|
|
105
109
|
"homepage": "https://atlassian.design/components/select/",
|