@atlaskit/select 18.5.0 → 18.5.2

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.
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/async-creatable-select.js",
4
4
  "module": "../dist/esm/entry-points/async-creatable-select.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/async-creatable-select.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/async-creatable-select.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/async-select.js",
4
4
  "module": "../dist/esm/entry-points/async-select.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/async-select.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/async-select.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 18.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165531)
8
+ [`57f451bda8919`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f451bda8919) -
9
+ Adds side-effect config to support Compiled css extraction in third-party apps
10
+
11
+ ## 18.5.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#165031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165031)
16
+ [`380a955e9f249`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/380a955e9f249) -
17
+ Internal change only -- remove usages of react-node-resolver as it is incompatible with React 18.
18
+
3
19
  ## 18.5.0
4
20
 
5
21
  ### Minor Changes
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/creatable-select.js",
4
4
  "module": "../dist/esm/entry-points/creatable-select.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/creatable-select.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/creatable-select.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/select.js",
4
4
  "module": "../dist/esm/entry-points/select.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/select.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/select.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -20,7 +20,6 @@ var _bindEventListener = require("bind-event-listener");
20
20
  var _reactDom = require("react-dom");
21
21
  var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
22
22
  var _reactFocusLockNext = _interopRequireDefault(require("react-focus-lock-next"));
23
- var _reactNodeResolver = _interopRequireDefault(require("react-node-resolver"));
24
23
  var _reactPopper = require("react-popper");
25
24
  var _shallowEqual = require("shallow-equal");
26
25
  var _useId = require("@atlaskit/ds-lib/use-id");
@@ -195,7 +194,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
195
194
  if (onOpen) {
196
195
  onOpen();
197
196
  }
198
- if (onMenuOpen && (0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver')) {
197
+ if (onMenuOpen) {
199
198
  onMenuOpen();
200
199
  }
201
200
  _this.setState({
@@ -235,7 +234,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
235
234
  if (onClose) {
236
235
  onClose();
237
236
  }
238
- if (onMenuClose && (0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver')) {
237
+ if (onMenuClose) {
239
238
  onMenuClose();
240
239
  }
241
240
  _this.setState({
@@ -334,10 +333,6 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
334
333
  onMenuOpen = _this$props5.onMenuOpen,
335
334
  onMenuClose = _this$props5.onMenuClose,
336
335
  props = (0, _objectWithoutProperties2.default)(_this$props5, _excluded);
337
- var menuHandlers = !(0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver') ? {
338
- onMenuOpen: onMenuOpen,
339
- onMenuClose: onMenuClose
340
- } : {};
341
336
  var _this$state = _this.state,
342
337
  focusLockEnabled = _this$state.focusLockEnabled,
343
338
  isOpen = _this$state.isOpen,
@@ -414,49 +409,41 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
414
409
  var placement = _ref2.placement,
415
410
  ref = _ref2.ref,
416
411
  style = _ref2.style;
417
- return (
418
- /*#__PURE__*/
419
- // When the feature flag 'platform_design_system_team_select_node_resolver' is enabled,
420
- // we directly pass the ref to MenuDialog instead of wrapping it with NodeResolver.
421
- _react.default.createElement(ConditionalNodeResolverWrapper, {
422
- hasNodeResolver: !(0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver'),
423
- innerRef: _this.resolveMenuRef(ref)
424
- }, /*#__PURE__*/_react.default.createElement(_components.MenuDialog
425
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
426
- , {
427
- style: style,
428
- "data-placement": placement,
429
- minWidth: minMenuWidth,
430
- maxWidth: maxMenuWidth,
431
- id: id,
432
- testId: testId,
433
- ref: !(0, _platformFeatureFlags.fg)('platform_design_system_team_select_node_resolver') ? null : _this.resolveMenuRef(ref)
434
- }, /*#__PURE__*/_react.default.createElement(FocusLock, {
435
- disabled: !focusLockEnabled,
436
- returnFocus: true
437
- }, /*#__PURE__*/_react.default.createElement(_Select.default, (0, _extends2.default)({
438
- "aria-label": providedAriaLabel,
439
- backspaceRemovesValue: false,
440
- controlShouldRenderValue: false,
441
- isClearable: false,
442
- tabSelectsValue: false,
443
- menuIsOpen: true,
444
- placeholder: placeholder,
445
- ref: _this.getSelectRef
446
- }, props, menuHandlers, {
447
- isSearchable: showSearchControl
448
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
449
- ,
450
- styles: (0, _reactSelect.mergeStyles)(_this.defaultStyles, props.styles || {}),
451
- maxMenuHeight: _this.getMaxHeight(),
452
- components: selectComponents,
453
- onChange: _this.handleSelectChange,
454
- ariaLiveMessages: !showSearchControl ? _objectSpread({
455
- // Overwriting ariaLiveMessages builtin onFocus method to announce selected option when popup has been opened
456
- onFocus: onReactSelectFocus
457
- }, props.ariaLiveMessages) : props.ariaLiveMessages
458
- })), footer)))
459
- );
412
+ return /*#__PURE__*/_react.default.createElement(_components.MenuDialog
413
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
414
+ , {
415
+ style: style,
416
+ "data-placement": placement,
417
+ minWidth: minMenuWidth,
418
+ maxWidth: maxMenuWidth,
419
+ id: id,
420
+ testId: testId,
421
+ ref: _this.resolveMenuRef(ref)
422
+ }, /*#__PURE__*/_react.default.createElement(FocusLock, {
423
+ disabled: !focusLockEnabled,
424
+ returnFocus: true
425
+ }, /*#__PURE__*/_react.default.createElement(_Select.default, (0, _extends2.default)({
426
+ "aria-label": providedAriaLabel,
427
+ backspaceRemovesValue: false,
428
+ controlShouldRenderValue: false,
429
+ isClearable: false,
430
+ tabSelectsValue: false,
431
+ menuIsOpen: true,
432
+ placeholder: placeholder,
433
+ ref: _this.getSelectRef
434
+ }, props, {
435
+ isSearchable: showSearchControl
436
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
437
+ ,
438
+ styles: (0, _reactSelect.mergeStyles)(_this.defaultStyles, props.styles || {}),
439
+ maxMenuHeight: _this.getMaxHeight(),
440
+ components: selectComponents,
441
+ onChange: _this.handleSelectChange,
442
+ ariaLiveMessages: !showSearchControl ? _objectSpread({
443
+ // Overwriting ariaLiveMessages builtin onFocus method to announce selected option when popup has been opened
444
+ onFocus: onReactSelectFocus
445
+ }, props.ariaLiveMessages) : props.ariaLiveMessages
446
+ })), footer));
460
447
  });
461
448
  return mergedPopperProps.strategy === 'fixed' ? popper : /*#__PURE__*/(0, _reactDom.createPortal)(popper, portalDestination);
462
449
  });
@@ -563,25 +550,4 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
563
550
  searchThreshold: 5,
564
551
  styles: {},
565
552
  options: []
566
- });
567
- /**
568
- * A wrapper component that conditionally applies a NodeResolver to its children.
569
- *
570
- * Note: NodeResolver should not be used in React 18 concurrent mode. This component
571
- * is intended to be removed once the feature flag is removed.
572
- * @param {boolean} props.hasNodeResolver - Determines whether to apply the NodeResolver.
573
- * @param {ReactElement} props.children - The child elements to be wrapped.
574
- * @param {(instance: HTMLDivElement) => void} props.innerRef - A ref callback to get the instance of the HTMLDivElement.
575
- * @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, otherwise just the children.
576
- */
577
- var ConditionalNodeResolverWrapper = function ConditionalNodeResolverWrapper(_ref5) {
578
- var hasNodeResolver = _ref5.hasNodeResolver,
579
- children = _ref5.children,
580
- innerRef = _ref5.innerRef;
581
- if (hasNodeResolver) {
582
- return /*#__PURE__*/_react.default.createElement(_reactNodeResolver.default, {
583
- innerRef: innerRef
584
- }, children);
585
- }
586
- return children;
587
- };
553
+ });
@@ -11,7 +11,7 @@ var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  /* eslint-disable @repo/internal/react/require-jsdoc */
12
12
 
13
13
  var packageName = "@atlaskit/select";
14
- var packageVersion = "18.5.0";
14
+ var packageVersion = "18.5.2";
15
15
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_async.default);
16
16
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
17
17
  var Select = (0, _analyticsNext.withAnalyticsContext)({
@@ -6,7 +6,6 @@ import { bind } from 'bind-event-listener';
6
6
  import { createPortal } from 'react-dom';
7
7
  import FocusLockOld from 'react-focus-lock';
8
8
  import FocusLockNext from 'react-focus-lock-next';
9
- import NodeResolver from 'react-node-resolver';
10
9
  import { Manager, Popper, Reference } from 'react-popper';
11
10
  import { shallowEqualObjects } from 'shallow-equal';
12
11
  import { IdProvider } from '@atlaskit/ds-lib/use-id';
@@ -167,7 +166,7 @@ export default class PopupSelect extends PureComponent {
167
166
  if (onOpen) {
168
167
  onOpen();
169
168
  }
170
- if (onMenuOpen && fg('platform_design_system_team_select_node_resolver')) {
169
+ if (onMenuOpen) {
171
170
  onMenuOpen();
172
171
  }
173
172
  this.setState({
@@ -208,7 +207,7 @@ export default class PopupSelect extends PureComponent {
208
207
  if (onClose) {
209
208
  onClose();
210
209
  }
211
- if (onMenuClose && fg('platform_design_system_team_select_node_resolver')) {
210
+ if (onMenuClose) {
212
211
  onMenuClose();
213
212
  }
214
213
  this.setState({
@@ -307,10 +306,6 @@ export default class PopupSelect extends PureComponent {
307
306
  onMenuClose,
308
307
  ...props
309
308
  } = this.props;
310
- const menuHandlers = !fg('platform_design_system_team_select_node_resolver') ? {
311
- onMenuOpen,
312
- onMenuClose
313
- } : {};
314
309
  const {
315
310
  focusLockEnabled,
316
311
  isOpen,
@@ -392,14 +387,7 @@ export default class PopupSelect extends PureComponent {
392
387
  placement,
393
388
  ref,
394
389
  style
395
- }) =>
396
- /*#__PURE__*/
397
- // When the feature flag 'platform_design_system_team_select_node_resolver' is enabled,
398
- // we directly pass the ref to MenuDialog instead of wrapping it with NodeResolver.
399
- React.createElement(ConditionalNodeResolverWrapper, {
400
- hasNodeResolver: !fg('platform_design_system_team_select_node_resolver'),
401
- innerRef: this.resolveMenuRef(ref)
402
- }, /*#__PURE__*/React.createElement(MenuDialog
390
+ }) => /*#__PURE__*/React.createElement(MenuDialog
403
391
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
404
392
  , {
405
393
  style: style,
@@ -408,7 +396,7 @@ export default class PopupSelect extends PureComponent {
408
396
  maxWidth: maxMenuWidth,
409
397
  id: id,
410
398
  testId: testId,
411
- ref: !fg('platform_design_system_team_select_node_resolver') ? null : this.resolveMenuRef(ref)
399
+ ref: this.resolveMenuRef(ref)
412
400
  }, /*#__PURE__*/React.createElement(FocusLock, {
413
401
  disabled: !focusLockEnabled,
414
402
  returnFocus: true
@@ -421,7 +409,7 @@ export default class PopupSelect extends PureComponent {
421
409
  menuIsOpen: true,
422
410
  placeholder: placeholder,
423
411
  ref: this.getSelectRef
424
- }, props, menuHandlers, {
412
+ }, props, {
425
413
  isSearchable: showSearchControl
426
414
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
427
415
  ,
@@ -434,7 +422,7 @@ export default class PopupSelect extends PureComponent {
434
422
  onFocus: onReactSelectFocus,
435
423
  ...props.ariaLiveMessages // priority to use user handlers if provided
436
424
  } : props.ariaLiveMessages
437
- })), footer))));
425
+ })), footer)));
438
426
  return mergedPopperProps.strategy === 'fixed' ? popper : /*#__PURE__*/createPortal(popper, portalDestination);
439
427
  });
440
428
  }
@@ -536,26 +524,4 @@ _defineProperty(PopupSelect, "defaultProps", {
536
524
  searchThreshold: 5,
537
525
  styles: {},
538
526
  options: []
539
- });
540
- /**
541
- * A wrapper component that conditionally applies a NodeResolver to its children.
542
- *
543
- * Note: NodeResolver should not be used in React 18 concurrent mode. This component
544
- * is intended to be removed once the feature flag is removed.
545
- * @param {boolean} props.hasNodeResolver - Determines whether to apply the NodeResolver.
546
- * @param {ReactElement} props.children - The child elements to be wrapped.
547
- * @param {(instance: HTMLDivElement) => void} props.innerRef - A ref callback to get the instance of the HTMLDivElement.
548
- * @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, otherwise just the children.
549
- */
550
- const ConditionalNodeResolverWrapper = ({
551
- hasNodeResolver,
552
- children,
553
- innerRef
554
- }) => {
555
- if (hasNodeResolver) {
556
- return /*#__PURE__*/React.createElement(NodeResolver, {
557
- innerRef: innerRef
558
- }, children);
559
- }
560
- return children;
561
- };
527
+ });
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  const packageName = "@atlaskit/select";
6
- const packageVersion = "18.5.0";
6
+ const packageVersion = "18.5.2";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -18,7 +18,6 @@ import { bind } from 'bind-event-listener';
18
18
  import { createPortal } from 'react-dom';
19
19
  import FocusLockOld from 'react-focus-lock';
20
20
  import FocusLockNext from 'react-focus-lock-next';
21
- import NodeResolver from 'react-node-resolver';
22
21
  import { Manager, Popper, Reference } from 'react-popper';
23
22
  import { shallowEqualObjects } from 'shallow-equal';
24
23
  import { IdProvider } from '@atlaskit/ds-lib/use-id';
@@ -186,7 +185,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
186
185
  if (onOpen) {
187
186
  onOpen();
188
187
  }
189
- if (onMenuOpen && fg('platform_design_system_team_select_node_resolver')) {
188
+ if (onMenuOpen) {
190
189
  onMenuOpen();
191
190
  }
192
191
  _this.setState({
@@ -226,7 +225,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
226
225
  if (onClose) {
227
226
  onClose();
228
227
  }
229
- if (onMenuClose && fg('platform_design_system_team_select_node_resolver')) {
228
+ if (onMenuClose) {
230
229
  onMenuClose();
231
230
  }
232
231
  _this.setState({
@@ -325,10 +324,6 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
325
324
  onMenuOpen = _this$props5.onMenuOpen,
326
325
  onMenuClose = _this$props5.onMenuClose,
327
326
  props = _objectWithoutProperties(_this$props5, _excluded);
328
- var menuHandlers = !fg('platform_design_system_team_select_node_resolver') ? {
329
- onMenuOpen: onMenuOpen,
330
- onMenuClose: onMenuClose
331
- } : {};
332
327
  var _this$state = _this.state,
333
328
  focusLockEnabled = _this$state.focusLockEnabled,
334
329
  isOpen = _this$state.isOpen,
@@ -405,49 +400,41 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
405
400
  var placement = _ref2.placement,
406
401
  ref = _ref2.ref,
407
402
  style = _ref2.style;
408
- return (
409
- /*#__PURE__*/
410
- // When the feature flag 'platform_design_system_team_select_node_resolver' is enabled,
411
- // we directly pass the ref to MenuDialog instead of wrapping it with NodeResolver.
412
- React.createElement(ConditionalNodeResolverWrapper, {
413
- hasNodeResolver: !fg('platform_design_system_team_select_node_resolver'),
414
- innerRef: _this.resolveMenuRef(ref)
415
- }, /*#__PURE__*/React.createElement(MenuDialog
416
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
417
- , {
418
- style: style,
419
- "data-placement": placement,
420
- minWidth: minMenuWidth,
421
- maxWidth: maxMenuWidth,
422
- id: id,
423
- testId: testId,
424
- ref: !fg('platform_design_system_team_select_node_resolver') ? null : _this.resolveMenuRef(ref)
425
- }, /*#__PURE__*/React.createElement(FocusLock, {
426
- disabled: !focusLockEnabled,
427
- returnFocus: true
428
- }, /*#__PURE__*/React.createElement(Select, _extends({
429
- "aria-label": providedAriaLabel,
430
- backspaceRemovesValue: false,
431
- controlShouldRenderValue: false,
432
- isClearable: false,
433
- tabSelectsValue: false,
434
- menuIsOpen: true,
435
- placeholder: placeholder,
436
- ref: _this.getSelectRef
437
- }, props, menuHandlers, {
438
- isSearchable: showSearchControl
439
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
440
- ,
441
- styles: mergeStyles(_this.defaultStyles, props.styles || {}),
442
- maxMenuHeight: _this.getMaxHeight(),
443
- components: selectComponents,
444
- onChange: _this.handleSelectChange,
445
- ariaLiveMessages: !showSearchControl ? _objectSpread({
446
- // Overwriting ariaLiveMessages builtin onFocus method to announce selected option when popup has been opened
447
- onFocus: onReactSelectFocus
448
- }, props.ariaLiveMessages) : props.ariaLiveMessages
449
- })), footer)))
450
- );
403
+ return /*#__PURE__*/React.createElement(MenuDialog
404
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
405
+ , {
406
+ style: style,
407
+ "data-placement": placement,
408
+ minWidth: minMenuWidth,
409
+ maxWidth: maxMenuWidth,
410
+ id: id,
411
+ testId: testId,
412
+ ref: _this.resolveMenuRef(ref)
413
+ }, /*#__PURE__*/React.createElement(FocusLock, {
414
+ disabled: !focusLockEnabled,
415
+ returnFocus: true
416
+ }, /*#__PURE__*/React.createElement(Select, _extends({
417
+ "aria-label": providedAriaLabel,
418
+ backspaceRemovesValue: false,
419
+ controlShouldRenderValue: false,
420
+ isClearable: false,
421
+ tabSelectsValue: false,
422
+ menuIsOpen: true,
423
+ placeholder: placeholder,
424
+ ref: _this.getSelectRef
425
+ }, props, {
426
+ isSearchable: showSearchControl
427
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
428
+ ,
429
+ styles: mergeStyles(_this.defaultStyles, props.styles || {}),
430
+ maxMenuHeight: _this.getMaxHeight(),
431
+ components: selectComponents,
432
+ onChange: _this.handleSelectChange,
433
+ ariaLiveMessages: !showSearchControl ? _objectSpread({
434
+ // Overwriting ariaLiveMessages builtin onFocus method to announce selected option when popup has been opened
435
+ onFocus: onReactSelectFocus
436
+ }, props.ariaLiveMessages) : props.ariaLiveMessages
437
+ })), footer));
451
438
  });
452
439
  return mergedPopperProps.strategy === 'fixed' ? popper : /*#__PURE__*/createPortal(popper, portalDestination);
453
440
  });
@@ -555,25 +542,4 @@ _defineProperty(PopupSelect, "defaultProps", {
555
542
  styles: {},
556
543
  options: []
557
544
  });
558
- export { PopupSelect as default };
559
- /**
560
- * A wrapper component that conditionally applies a NodeResolver to its children.
561
- *
562
- * Note: NodeResolver should not be used in React 18 concurrent mode. This component
563
- * is intended to be removed once the feature flag is removed.
564
- * @param {boolean} props.hasNodeResolver - Determines whether to apply the NodeResolver.
565
- * @param {ReactElement} props.children - The child elements to be wrapped.
566
- * @param {(instance: HTMLDivElement) => void} props.innerRef - A ref callback to get the instance of the HTMLDivElement.
567
- * @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, otherwise just the children.
568
- */
569
- var ConditionalNodeResolverWrapper = function ConditionalNodeResolverWrapper(_ref5) {
570
- var hasNodeResolver = _ref5.hasNodeResolver,
571
- children = _ref5.children,
572
- innerRef = _ref5.innerRef;
573
- if (hasNodeResolver) {
574
- return /*#__PURE__*/React.createElement(NodeResolver, {
575
- innerRef: innerRef
576
- }, children);
577
- }
578
- return children;
579
- };
545
+ export { PopupSelect as default };
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  var packageName = "@atlaskit/select";
6
- var packageVersion = "18.5.0";
6
+ var packageVersion = "18.5.2";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -110,6 +110,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
110
110
  focusLockEnabled: boolean;
111
111
  isOpen: boolean;
112
112
  mergedComponents: {
113
+ /**
114
+ * The maximum width for the popup menu. Can be a number, representing the width in pixels,
115
+ * or a string containing a CSS length datatype.
116
+ */
113
117
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
114
118
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
115
119
  Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
@@ -110,6 +110,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
110
110
  focusLockEnabled: boolean;
111
111
  isOpen: boolean;
112
112
  mergedComponents: {
113
+ /**
114
+ * The maximum width for the popup menu. Can be a number, representing the width in pixels,
115
+ * or a string containing a CSS length datatype.
116
+ */
113
117
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
114
118
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
115
119
  Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "18.5.0",
3
+ "version": "18.5.2",
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/"
@@ -20,7 +20,9 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "**/*.compiled.css"
25
+ ],
24
26
  "atlaskit:src": "src/index.tsx",
25
27
  "atlassian": {
26
28
  "team": "Design System Team",
@@ -39,10 +41,10 @@
39
41
  },
40
42
  "dependencies": {
41
43
  "@atlaskit/analytics-next": "^10.1.0",
42
- "@atlaskit/ds-lib": "^3.1.0",
44
+ "@atlaskit/ds-lib": "^3.2.0",
43
45
  "@atlaskit/icon": "^22.24.0",
44
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
45
- "@atlaskit/primitives": "^13.0.0",
47
+ "@atlaskit/primitives": "^13.2.0",
46
48
  "@atlaskit/react-select": "^1.3.0",
47
49
  "@atlaskit/spinner": "^16.3.0",
48
50
  "@atlaskit/theme": "^14.0.0",
@@ -75,7 +77,6 @@
75
77
  "@emotion/styled": "^11.0.0",
76
78
  "@testing-library/react": "^12.1.5",
77
79
  "@testing-library/user-event": "^14.4.3",
78
- "@types/react-node-resolver": "^2.0.0",
79
80
  "ast-types": "^0.13.3",
80
81
  "jscodeshift": "^0.13.0",
81
82
  "react-dom": "^16.8.0",
@@ -99,9 +100,6 @@
99
100
  }
100
101
  },
101
102
  "platform-feature-flags": {
102
- "platform_design_system_team_select_node_resolver": {
103
- "type": "boolean"
104
- },
105
103
  "platform-component-visual-refresh": {
106
104
  "type": "boolean"
107
105
  },