@atlaskit/select 17.19.2 → 17.19.3
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 +8 -0
- package/dist/cjs/PopupSelect/PopupSelect.js +6 -6
- package/dist/cjs/Select.js +1 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +6 -6
- package/dist/es2019/Select.js +1 -1
- package/dist/esm/PopupSelect/PopupSelect.js +6 -6
- package/dist/esm/Select.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 17.19.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146891](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146891)
|
|
8
|
+
[`1946e3bf8c6c9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1946e3bf8c6c9) -
|
|
9
|
+
Internal change only: update feature flag names.
|
|
10
|
+
|
|
3
11
|
## 17.19.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -200,7 +200,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
200
200
|
if (onOpen) {
|
|
201
201
|
onOpen();
|
|
202
202
|
}
|
|
203
|
-
if (onMenuOpen && (0, _platformFeatureFlags.fg)('
|
|
203
|
+
if (onMenuOpen && (0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver')) {
|
|
204
204
|
onMenuOpen();
|
|
205
205
|
}
|
|
206
206
|
_this.setState({
|
|
@@ -239,7 +239,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
239
239
|
if (onClose) {
|
|
240
240
|
onClose();
|
|
241
241
|
}
|
|
242
|
-
if (onMenuClose && (0, _platformFeatureFlags.fg)('
|
|
242
|
+
if (onMenuClose && (0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver')) {
|
|
243
243
|
onMenuClose();
|
|
244
244
|
}
|
|
245
245
|
_this.setState({
|
|
@@ -338,7 +338,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
338
338
|
onMenuOpen = _this$props5.onMenuOpen,
|
|
339
339
|
onMenuClose = _this$props5.onMenuClose,
|
|
340
340
|
props = (0, _objectWithoutProperties2.default)(_this$props5, _excluded);
|
|
341
|
-
var menuHandlers = !(0, _platformFeatureFlags.fg)('
|
|
341
|
+
var menuHandlers = !(0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver') ? {
|
|
342
342
|
onMenuOpen: onMenuOpen,
|
|
343
343
|
onMenuClose: onMenuClose
|
|
344
344
|
} : {};
|
|
@@ -420,10 +420,10 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
420
420
|
style = _ref2.style;
|
|
421
421
|
return (
|
|
422
422
|
/*#__PURE__*/
|
|
423
|
-
// When the feature flag '
|
|
423
|
+
// When the feature flag 'platform_design_system_team_select_node_resolver' is enabled,
|
|
424
424
|
// we directly pass the ref to MenuDialog instead of wrapping it with NodeResolver.
|
|
425
425
|
_react.default.createElement(ConditionalNodeResolverWrapper, {
|
|
426
|
-
hasNodeResolver: !(0, _platformFeatureFlags.fg)('
|
|
426
|
+
hasNodeResolver: !(0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver'),
|
|
427
427
|
innerRef: _this.resolveMenuRef(ref)
|
|
428
428
|
}, /*#__PURE__*/_react.default.createElement(_components.MenuDialog
|
|
429
429
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -434,7 +434,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
434
434
|
maxWidth: maxMenuWidth,
|
|
435
435
|
id: _this.popperWrapperId,
|
|
436
436
|
testId: testId,
|
|
437
|
-
ref: !(0, _platformFeatureFlags.fg)('
|
|
437
|
+
ref: !(0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver') ? null : _this.resolveMenuRef(ref)
|
|
438
438
|
}, /*#__PURE__*/_react.default.createElement(FocusLock, {
|
|
439
439
|
disabled: !focusLockEnabled,
|
|
440
440
|
returnFocus: true
|
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 = "17.19.
|
|
12
|
+
var packageVersion = "17.19.3";
|
|
13
13
|
var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
15
15
|
var Select = (0, _analyticsNext.withAnalyticsContext)({
|
|
@@ -172,7 +172,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
172
172
|
if (onOpen) {
|
|
173
173
|
onOpen();
|
|
174
174
|
}
|
|
175
|
-
if (onMenuOpen && fg('
|
|
175
|
+
if (onMenuOpen && fg('platform_design_system_team_select_node_resolver')) {
|
|
176
176
|
onMenuOpen();
|
|
177
177
|
}
|
|
178
178
|
this.setState({
|
|
@@ -212,7 +212,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
212
212
|
if (onClose) {
|
|
213
213
|
onClose();
|
|
214
214
|
}
|
|
215
|
-
if (onMenuClose && fg('
|
|
215
|
+
if (onMenuClose && fg('platform_design_system_team_select_node_resolver')) {
|
|
216
216
|
onMenuClose();
|
|
217
217
|
}
|
|
218
218
|
this.setState({
|
|
@@ -311,7 +311,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
311
311
|
onMenuClose,
|
|
312
312
|
...props
|
|
313
313
|
} = this.props;
|
|
314
|
-
const menuHandlers = !fg('
|
|
314
|
+
const menuHandlers = !fg('platform_design_system_team_select_node_resolver') ? {
|
|
315
315
|
onMenuOpen,
|
|
316
316
|
onMenuClose
|
|
317
317
|
} : {};
|
|
@@ -398,10 +398,10 @@ export default class PopupSelect extends PureComponent {
|
|
|
398
398
|
style
|
|
399
399
|
}) =>
|
|
400
400
|
/*#__PURE__*/
|
|
401
|
-
// When the feature flag '
|
|
401
|
+
// When the feature flag 'platform_design_system_team_select_node_resolver' is enabled,
|
|
402
402
|
// we directly pass the ref to MenuDialog instead of wrapping it with NodeResolver.
|
|
403
403
|
React.createElement(ConditionalNodeResolverWrapper, {
|
|
404
|
-
hasNodeResolver: !fg('
|
|
404
|
+
hasNodeResolver: !fg('platform_design_system_team_select_node_resolver'),
|
|
405
405
|
innerRef: this.resolveMenuRef(ref)
|
|
406
406
|
}, /*#__PURE__*/React.createElement(MenuDialog
|
|
407
407
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -412,7 +412,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
412
412
|
maxWidth: maxMenuWidth,
|
|
413
413
|
id: this.popperWrapperId,
|
|
414
414
|
testId: testId,
|
|
415
|
-
ref: !fg('
|
|
415
|
+
ref: !fg('platform_design_system_team_select_node_resolver') ? null : this.resolveMenuRef(ref)
|
|
416
416
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
417
417
|
disabled: !focusLockEnabled,
|
|
418
418
|
returnFocus: true
|
package/dist/es2019/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import ReactSelect 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 = "17.19.
|
|
5
|
+
const packageVersion = "17.19.3";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
const Select = withAnalyticsContext({
|
|
@@ -191,7 +191,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
191
191
|
if (onOpen) {
|
|
192
192
|
onOpen();
|
|
193
193
|
}
|
|
194
|
-
if (onMenuOpen && fg('
|
|
194
|
+
if (onMenuOpen && fg('platform_design_system_team_select_node_resolver')) {
|
|
195
195
|
onMenuOpen();
|
|
196
196
|
}
|
|
197
197
|
_this.setState({
|
|
@@ -230,7 +230,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
230
230
|
if (onClose) {
|
|
231
231
|
onClose();
|
|
232
232
|
}
|
|
233
|
-
if (onMenuClose && fg('
|
|
233
|
+
if (onMenuClose && fg('platform_design_system_team_select_node_resolver')) {
|
|
234
234
|
onMenuClose();
|
|
235
235
|
}
|
|
236
236
|
_this.setState({
|
|
@@ -329,7 +329,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
329
329
|
onMenuOpen = _this$props5.onMenuOpen,
|
|
330
330
|
onMenuClose = _this$props5.onMenuClose,
|
|
331
331
|
props = _objectWithoutProperties(_this$props5, _excluded);
|
|
332
|
-
var menuHandlers = !fg('
|
|
332
|
+
var menuHandlers = !fg('platform_design_system_team_select_node_resolver') ? {
|
|
333
333
|
onMenuOpen: onMenuOpen,
|
|
334
334
|
onMenuClose: onMenuClose
|
|
335
335
|
} : {};
|
|
@@ -411,10 +411,10 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
411
411
|
style = _ref2.style;
|
|
412
412
|
return (
|
|
413
413
|
/*#__PURE__*/
|
|
414
|
-
// When the feature flag '
|
|
414
|
+
// When the feature flag 'platform_design_system_team_select_node_resolver' is enabled,
|
|
415
415
|
// we directly pass the ref to MenuDialog instead of wrapping it with NodeResolver.
|
|
416
416
|
React.createElement(ConditionalNodeResolverWrapper, {
|
|
417
|
-
hasNodeResolver: !fg('
|
|
417
|
+
hasNodeResolver: !fg('platform_design_system_team_select_node_resolver'),
|
|
418
418
|
innerRef: _this.resolveMenuRef(ref)
|
|
419
419
|
}, /*#__PURE__*/React.createElement(MenuDialog
|
|
420
420
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -425,7 +425,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
425
425
|
maxWidth: maxMenuWidth,
|
|
426
426
|
id: _this.popperWrapperId,
|
|
427
427
|
testId: testId,
|
|
428
|
-
ref: !fg('
|
|
428
|
+
ref: !fg('platform_design_system_team_select_node_resolver') ? null : _this.resolveMenuRef(ref)
|
|
429
429
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
430
430
|
disabled: !focusLockEnabled,
|
|
431
431
|
returnFocus: true
|
package/dist/esm/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import ReactSelect 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 = "17.19.
|
|
5
|
+
var packageVersion = "17.19.3";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
var Select = withAnalyticsContext({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "17.19.
|
|
3
|
+
"version": "17.19.3",
|
|
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/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.20.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
44
|
"@atlaskit/primitives": "^12.2.0",
|
|
45
45
|
"@atlaskit/spinner": "^16.3.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"platform-feature-flags": {
|
|
103
|
-
"
|
|
103
|
+
"platform_design_system_team_select_node_resolver": {
|
|
104
104
|
"type": "boolean"
|
|
105
105
|
},
|
|
106
106
|
"platform-component-visual-refresh": {
|