@atlaskit/select 17.11.7 → 17.11.8

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/CountrySelect.js +1 -1
  3. package/dist/cjs/PopupSelect/PopupSelect.js +12 -15
  4. package/dist/cjs/PopupSelect/components.js +1 -1
  5. package/dist/cjs/Select.js +1 -1
  6. package/dist/cjs/components/index.js +1 -1
  7. package/dist/cjs/components/indicators.js +2 -1
  8. package/dist/cjs/components/input-options.js +2 -1
  9. package/dist/es2019/CountrySelect.js +1 -1
  10. package/dist/es2019/PopupSelect/PopupSelect.js +12 -15
  11. package/dist/es2019/PopupSelect/components.js +1 -1
  12. package/dist/es2019/Select.js +1 -1
  13. package/dist/es2019/components/index.js +1 -1
  14. package/dist/es2019/components/indicators.js +1 -1
  15. package/dist/es2019/components/input-options.js +1 -1
  16. package/dist/esm/CountrySelect.js +1 -1
  17. package/dist/esm/PopupSelect/PopupSelect.js +12 -15
  18. package/dist/esm/PopupSelect/components.js +1 -1
  19. package/dist/esm/Select.js +1 -1
  20. package/dist/esm/components/index.js +1 -1
  21. package/dist/esm/components/indicators.js +1 -1
  22. package/dist/esm/components/input-options.js +1 -1
  23. package/dist/types/PopupSelect/PopupSelect.d.ts +2 -2
  24. package/dist/types/PopupSelect/components.d.ts +1 -1
  25. package/dist/types/components/index.d.ts +1 -1
  26. package/dist/types/components/indicators.d.ts +1 -1
  27. package/dist/types/components/input-options.d.ts +1 -1
  28. package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +2 -2
  29. package/dist/types-ts4.5/PopupSelect/components.d.ts +1 -1
  30. package/dist/types-ts4.5/components/index.d.ts +1 -1
  31. package/dist/types-ts4.5/components/indicators.d.ts +1 -1
  32. package/dist/types-ts4.5/components/input-options.d.ts +1 -1
  33. package/package.json +3 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 17.11.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#123484](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123484)
8
+ [`e241c04ab92d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e241c04ab92d5) -
9
+ Remove abandoned feature flag usage
10
+
3
11
  ## 17.11.7
4
12
 
5
13
  ### Patch Changes
@@ -11,8 +11,8 @@ var _countries = require("./data/countries");
11
11
  var _Select = _interopRequireDefault(require("./Select"));
12
12
  /**
13
13
  * @jsxRuntime classic
14
+ * @jsx jsx
14
15
  */
15
- /** @jsx jsx */
16
16
 
17
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
18
 
@@ -16,19 +16,19 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
16
16
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
18
  var _react = _interopRequireWildcard(require("react"));
19
+ var _bindEventListener = require("bind-event-listener");
19
20
  var _reactDom = require("react-dom");
20
21
  var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
22
+ var _reactNodeResolver = _interopRequireDefault(require("react-node-resolver"));
23
+ var _reactPopper = require("react-popper");
21
24
  var _reactSelect = _interopRequireWildcard(require("react-select"));
22
25
  var _reactUid = require("react-uid");
23
- var _reactPopper = require("react-popper");
24
- var _reactNodeResolver = _interopRequireDefault(require("react-node-resolver"));
25
26
  var _shallowEqual = require("shallow-equal");
26
- var _Select = _interopRequireDefault(require("../Select"));
27
- var _colors = require("@atlaskit/theme/colors");
28
27
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
29
- var _components = require("./components");
28
+ var _colors = require("@atlaskit/theme/colors");
29
+ var _Select = _interopRequireDefault(require("../Select"));
30
30
  var _styles = _interopRequireDefault(require("../styles"));
31
- var _bindEventListener = require("bind-event-listener");
31
+ var _components = require("./components");
32
32
  var _excluded = ["footer", "label", "maxMenuWidth", "minMenuWidth", "placeholder", "target", "testId"];
33
33
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
34
34
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -36,7 +36,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
36
36
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
37
37
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
38
38
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
39
- /** Are we rendering on the client or server? */
39
+ /**
40
+ * Are we rendering on the client or server?
41
+ */
40
42
  var canUseDOM = function canUseDOM() {
41
43
  return Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
42
44
  };
@@ -188,7 +190,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
188
190
  });
189
191
  if (_this.selectRef) {
190
192
  var _this$selectRef$selec;
191
- (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec = _this.selectRef.select) === null || _this$selectRef$selec === void 0 ? void 0 : _this$selectRef$selec.openMenu('first') : _this.selectRef.openMenu('first');
193
+ (0, _platformFeatureFlags.fg)('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec = _this.selectRef.select) === null || _this$selectRef$selec === void 0 ? void 0 : _this$selectRef$selec.openMenu('first') : _this.selectRef.openMenu('first');
192
194
  }
193
195
  if (typeof window === 'undefined') {
194
196
  return;
@@ -286,7 +288,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
286
288
 
287
289
  // subtract the control height to maintain consistency
288
290
  var showSearchControl = _this.showSearchControl();
289
- var controlRef = (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec2 = _this.selectRef.select) === null || _this$selectRef$selec2 === void 0 ? void 0 : _this$selectRef$selec2.controlRef : _this.selectRef.controlRef;
291
+ var controlRef = (0, _platformFeatureFlags.fg)('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec2 = _this.selectRef.select) === null || _this$selectRef$selec2 === void 0 ? void 0 : _this$selectRef$selec2.controlRef : _this.selectRef.controlRef;
290
292
  var offsetHeight = showSearchControl && controlRef ? controlRef.offsetHeight : 0;
291
293
  var maxHeight = maxMenuHeight - offsetHeight;
292
294
  return maxHeight;
@@ -330,7 +332,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
330
332
  return placeholder;
331
333
  }
332
334
  };
333
- var InternalSelect = (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? _Select.default : _reactSelect.default;
335
+ var InternalSelect = (0, _platformFeatureFlags.fg)('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? _Select.default : _reactSelect.default;
334
336
  var popper = /*#__PURE__*/_react.default.createElement(_reactPopper.Popper, (0, _extends2.default)({}, mergedPopperProps, {
335
337
  onFirstUpdate: function onFirstUpdate(state) {
336
338
  var _mergedPopperProps$on;
@@ -365,11 +367,6 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
365
367
  placeholder: placeholder,
366
368
  ref: _this.getSelectRef
367
369
  }, props, {
368
- onMenuClose: function onMenuClose() {
369
- var _props$onMenuClose;
370
- (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.popup-select-close_8h15h') && _this.close();
371
- (_props$onMenuClose = props.onMenuClose) === null || _props$onMenuClose === void 0 || _props$onMenuClose.call(props);
372
- },
373
370
  isSearchable: showSearchControl
374
371
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
375
372
  ,
@@ -16,8 +16,8 @@ var _colors = require("@atlaskit/theme/colors");
16
16
  var _excluded = ["innerRef", "innerProps"];
17
17
  /**
18
18
  * @jsxRuntime classic
19
+ * @jsx jsx
19
20
  */
20
- /** @jsx jsx */
21
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  // ==============================
23
23
  // Styled Components
@@ -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.11.7";
12
+ var packageVersion = "17.11.8";
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)({
@@ -30,8 +30,8 @@ var _reactSelect = require("react-select");
30
30
  var _indicators = require("./indicators");
31
31
  /**
32
32
  * @jsxRuntime classic
33
+ * @jsx jsx
33
34
  */
34
- /** @jsx jsx */
35
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
36
36
 
37
37
  var disabledStyles = (0, _react.css)({
@@ -16,7 +16,8 @@ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
18
18
  * @jsxRuntime classic
19
- */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+ * @jsx jsx
20
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
21
  var iconContainerStyles = (0, _primitives.xcss)({
21
22
  all: 'unset',
22
23
  outline: 'revert',
@@ -26,7 +26,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
26
26
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27
27
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
28
28
  * @jsxRuntime classic
29
- */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
+ * @jsx jsx
30
+ */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
30
31
  var getPrimitiveStyles = function getPrimitiveStyles(props) {
31
32
  var cx = props.cx,
32
33
  className = props.className,
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx, css } from '@emotion/react';
@@ -1,20 +1,22 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React, { PureComponent } from 'react';
4
+ import { bind } from 'bind-event-listener';
4
5
  import { createPortal } from 'react-dom';
5
6
  import FocusLock from 'react-focus-lock';
7
+ import NodeResolver from 'react-node-resolver';
8
+ import { Manager, Popper, Reference } from 'react-popper';
6
9
  import Select, { mergeStyles } from 'react-select';
7
10
  import { uid } from 'react-uid';
8
- import { Manager, Reference, Popper } from 'react-popper';
9
- import NodeResolver from 'react-node-resolver';
10
11
  import { shallowEqualObjects } from 'shallow-equal';
11
- import DefaultSelect from '../Select';
12
+ import { fg } from '@atlaskit/platform-feature-flags';
12
13
  import { N80 } from '@atlaskit/theme/colors';
13
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
14
- import { MenuDialog, DummyControl, defaultComponents } from './components';
14
+ import DefaultSelect from '../Select';
15
15
  import baseStyles from '../styles';
16
- import { bind } from 'bind-event-listener';
17
- /** Are we rendering on the client or server? */
16
+ import { defaultComponents, DummyControl, MenuDialog } from './components';
17
+ /**
18
+ * Are we rendering on the client or server?
19
+ */
18
20
  const canUseDOM = () => Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
19
21
 
20
22
  // ==============================
@@ -160,7 +162,7 @@ export default class PopupSelect extends PureComponent {
160
162
  });
161
163
  if (this.selectRef) {
162
164
  var _this$selectRef$selec;
163
- getBooleanFF('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec = this.selectRef.select) === null || _this$selectRef$selec === void 0 ? void 0 : _this$selectRef$selec.openMenu('first') : this.selectRef.openMenu('first');
165
+ fg('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec = this.selectRef.select) === null || _this$selectRef$selec === void 0 ? void 0 : _this$selectRef$selec.openMenu('first') : this.selectRef.openMenu('first');
164
166
  }
165
167
  if (typeof window === 'undefined') {
166
168
  return;
@@ -258,7 +260,7 @@ export default class PopupSelect extends PureComponent {
258
260
 
259
261
  // subtract the control height to maintain consistency
260
262
  const showSearchControl = this.showSearchControl();
261
- let controlRef = getBooleanFF('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec2 = this.selectRef.select) === null || _this$selectRef$selec2 === void 0 ? void 0 : _this$selectRef$selec2.controlRef : this.selectRef.controlRef;
263
+ let controlRef = fg('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec2 = this.selectRef.select) === null || _this$selectRef$selec2 === void 0 ? void 0 : _this$selectRef$selec2.controlRef : this.selectRef.controlRef;
262
264
  const offsetHeight = showSearchControl && controlRef ? controlRef.offsetHeight : 0;
263
265
  const maxHeight = maxMenuHeight - offsetHeight;
264
266
  return maxHeight;
@@ -306,7 +308,7 @@ export default class PopupSelect extends PureComponent {
306
308
  return placeholder;
307
309
  }
308
310
  };
309
- const InternalSelect = getBooleanFF('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? DefaultSelect : Select;
311
+ const InternalSelect = fg('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? DefaultSelect : Select;
310
312
  const popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
311
313
  onFirstUpdate: state => {
312
314
  var _mergedPopperProps$on;
@@ -341,11 +343,6 @@ export default class PopupSelect extends PureComponent {
341
343
  placeholder: placeholder,
342
344
  ref: this.getSelectRef
343
345
  }, props, {
344
- onMenuClose: () => {
345
- var _props$onMenuClose;
346
- getBooleanFF('platform.design-system-team.popup-select-close_8h15h') && this.close();
347
- (_props$onMenuClose = props.onMenuClose) === null || _props$onMenuClose === void 0 ? void 0 : _props$onMenuClose.call(props);
348
- },
349
346
  isSearchable: showSearchControl
350
347
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
351
348
  ,
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  import { components } from 'react-select';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -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.11.7";
5
+ const packageVersion = "17.11.8";
6
6
  export const SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  const Select = withAnalyticsContext({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { jsx, css } from '@emotion/react';
7
7
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx, css } from '@emotion/react';
8
8
  import { components } from 'react-select';
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  /**
4
4
  * @jsxRuntime classic
5
+ * @jsx jsx
5
6
  */
6
- /** @jsx jsx */
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { Component } from 'react';
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx, css } from '@emotion/react';
@@ -13,20 +13,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
15
  import React, { PureComponent } from 'react';
16
+ import { bind } from 'bind-event-listener';
16
17
  import { createPortal } from 'react-dom';
17
18
  import FocusLock from 'react-focus-lock';
19
+ import NodeResolver from 'react-node-resolver';
20
+ import { Manager, Popper, Reference } from 'react-popper';
18
21
  import Select, { mergeStyles } from 'react-select';
19
22
  import { uid } from 'react-uid';
20
- import { Manager, Reference, Popper } from 'react-popper';
21
- import NodeResolver from 'react-node-resolver';
22
23
  import { shallowEqualObjects } from 'shallow-equal';
23
- import DefaultSelect from '../Select';
24
+ import { fg } from '@atlaskit/platform-feature-flags';
24
25
  import { N80 } from '@atlaskit/theme/colors';
25
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
26
- import { MenuDialog, DummyControl, defaultComponents } from './components';
26
+ import DefaultSelect from '../Select';
27
27
  import baseStyles from '../styles';
28
- import { bind } from 'bind-event-listener';
29
- /** Are we rendering on the client or server? */
28
+ import { defaultComponents, DummyControl, MenuDialog } from './components';
29
+ /**
30
+ * Are we rendering on the client or server?
31
+ */
30
32
  var canUseDOM = function canUseDOM() {
31
33
  return Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
32
34
  };
@@ -178,7 +180,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
178
180
  });
179
181
  if (_this.selectRef) {
180
182
  var _this$selectRef$selec;
181
- getBooleanFF('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec = _this.selectRef.select) === null || _this$selectRef$selec === void 0 ? void 0 : _this$selectRef$selec.openMenu('first') : _this.selectRef.openMenu('first');
183
+ fg('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec = _this.selectRef.select) === null || _this$selectRef$selec === void 0 ? void 0 : _this$selectRef$selec.openMenu('first') : _this.selectRef.openMenu('first');
182
184
  }
183
185
  if (typeof window === 'undefined') {
184
186
  return;
@@ -276,7 +278,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
276
278
 
277
279
  // subtract the control height to maintain consistency
278
280
  var showSearchControl = _this.showSearchControl();
279
- var controlRef = getBooleanFF('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec2 = _this.selectRef.select) === null || _this$selectRef$selec2 === void 0 ? void 0 : _this$selectRef$selec2.controlRef : _this.selectRef.controlRef;
281
+ var controlRef = fg('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? (_this$selectRef$selec2 = _this.selectRef.select) === null || _this$selectRef$selec2 === void 0 ? void 0 : _this$selectRef$selec2.controlRef : _this.selectRef.controlRef;
280
282
  var offsetHeight = showSearchControl && controlRef ? controlRef.offsetHeight : 0;
281
283
  var maxHeight = maxMenuHeight - offsetHeight;
282
284
  return maxHeight;
@@ -320,7 +322,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
320
322
  return placeholder;
321
323
  }
322
324
  };
323
- var InternalSelect = getBooleanFF('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? DefaultSelect : Select;
325
+ var InternalSelect = fg('platform.design-system-team.use-default-select-in-popup-select_46rmj') ? DefaultSelect : Select;
324
326
  var popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
325
327
  onFirstUpdate: function onFirstUpdate(state) {
326
328
  var _mergedPopperProps$on;
@@ -355,11 +357,6 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
355
357
  placeholder: placeholder,
356
358
  ref: _this.getSelectRef
357
359
  }, props, {
358
- onMenuClose: function onMenuClose() {
359
- var _props$onMenuClose;
360
- getBooleanFF('platform.design-system-team.popup-select-close_8h15h') && _this.close();
361
- (_props$onMenuClose = props.onMenuClose) === null || _props$onMenuClose === void 0 || _props$onMenuClose.call(props);
362
- },
363
360
  isSearchable: showSearchControl
364
361
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
365
362
  ,
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["innerRef", "innerProps"];
4
4
  /**
5
5
  * @jsxRuntime classic
6
+ * @jsx jsx
6
7
  */
7
- /** @jsx jsx */
8
8
 
9
9
  import { components } from 'react-select';
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -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.11.7";
5
+ var packageVersion = "17.11.8";
6
6
  export var SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  var Select = withAnalyticsContext({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { jsx, css } from '@emotion/react';
7
7
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
@@ -4,8 +4,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  /**
6
6
  * @jsxRuntime classic
7
+ * @jsx jsx
7
8
  */
8
- /** @jsx jsx */
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { jsx, css } from '@emotion/react';
11
11
  import { components } from 'react-select';
@@ -15,8 +15,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
15
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
16
  /**
17
17
  * @jsxRuntime classic
18
+ * @jsx jsx
18
19
  */
19
- /** @jsx jsx */
20
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
21
  import { css, jsx } from '@emotion/react';
22
22
  import { Component } from 'react';
@@ -1,7 +1,7 @@
1
1
  import React, { type KeyboardEventHandler, PureComponent, type ReactNode } from 'react';
2
- import { type PopperProps } from 'react-popper';
3
- import { type OptionType, type ActionMeta, type ReactSelectProps, type StylesConfig, type ValueType, type ValidationState, type AtlaskitSelectRefType } from '../types';
4
2
  import { type UnbindFn } from 'bind-event-listener';
3
+ import { type PopperProps } from 'react-popper';
4
+ import { type ActionMeta, type AtlaskitSelectRefType, type OptionType, type ReactSelectProps, type StylesConfig, type ValidationState, type ValueType } from '../types';
5
5
  type defaultModifiers = 'offset' | 'preventOverflow';
6
6
  type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
7
7
  interface PopupSelectTriggerProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode, type CSSProperties } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type ControlProps, type MenuProps, type OptionType } from '../types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type MultiValueRemoveProps } from '../types';
7
7
  export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type ClearIndicatorProps, type DropdownIndicatorProps, type LoadingIndicatorProps } from '../types';
7
7
  export declare const ClearIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: ClearIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type OptionProps, type OptionType } from '../types';
8
8
  export declare const CheckboxOption: <OptionT extends OptionType>(props: OptionProps<OptionT, true>) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { type KeyboardEventHandler, PureComponent, type ReactNode } from 'react';
2
- import { type PopperProps } from 'react-popper';
3
- import { type OptionType, type ActionMeta, type ReactSelectProps, type StylesConfig, type ValueType, type ValidationState, type AtlaskitSelectRefType } from '../types';
4
2
  import { type UnbindFn } from 'bind-event-listener';
3
+ import { type PopperProps } from 'react-popper';
4
+ import { type ActionMeta, type AtlaskitSelectRefType, type OptionType, type ReactSelectProps, type StylesConfig, type ValidationState, type ValueType } from '../types';
5
5
  type defaultModifiers = 'offset' | 'preventOverflow';
6
6
  type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
7
7
  interface PopupSelectTriggerProps {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { type FC, type ReactNode, type CSSProperties } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type ControlProps, type MenuProps, type OptionType } from '../types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type MultiValueRemoveProps } from '../types';
7
7
  export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type ClearIndicatorProps, type DropdownIndicatorProps, type LoadingIndicatorProps } from '../types';
7
7
  export declare const ClearIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: ClearIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { jsx } from '@emotion/react';
7
7
  import { type OptionProps, type OptionType } from '../types';
8
8
  export declare const CheckboxOption: <OptionT extends OptionType>(props: OptionProps<OptionT, true>) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "17.11.7",
3
+ "version": "17.11.8",
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,12 +43,12 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
- "@atlaskit/icon": "^22.6.0",
46
+ "@atlaskit/icon": "^22.7.0",
47
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
48
48
  "@atlaskit/primitives": "^11.0.0",
49
49
  "@atlaskit/spinner": "^16.2.0",
50
50
  "@atlaskit/theme": "^12.11.0",
51
- "@atlaskit/tokens": "^1.54.0",
51
+ "@atlaskit/tokens": "^1.56.0",
52
52
  "@atlaskit/visually-hidden": "^1.4.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
@@ -104,9 +104,6 @@
104
104
  }
105
105
  },
106
106
  "platform-feature-flags": {
107
- "platform.design-system-team.popup-select-close_8h15h": {
108
- "type": "boolean"
109
- },
110
107
  "platform.design-system-team.use-default-select-in-popup-select_46rmj": {
111
108
  "type": "boolean"
112
109
  },