@atlaskit/select 21.3.7 → 21.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 21.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e02c11e7be73c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e02c11e7be73c) -
8
+ types made more explicit
9
+ - Updated dependencies
10
+
3
11
  ## 21.3.7
4
12
 
5
13
  ### Patch Changes
@@ -73,19 +73,15 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
73
73
  var CountrySelect = function CountrySelect(props) {
74
74
  var options = props.options;
75
75
  var countryOptions = options || _countries.groupedCountries;
76
- return (
77
- /*#__PURE__*/
78
- // @ts-ignore - TS2322: Complex generic type causing issues for help-center local consumption with TS 5.9.2
79
- React.createElement(_Select.default, (0, _extends2.default)({
80
- isClearable: false,
81
- formatOptionLabel: formatOptionLabel,
82
- getOptionLabel: getOptionLabel,
83
- getOptionValue: getOptionValue,
84
- isMulti: false,
85
- options: countryOptions
86
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
87
- }, props))
88
- );
76
+ return /*#__PURE__*/React.createElement(_Select.default, (0, _extends2.default)({
77
+ isClearable: false,
78
+ formatOptionLabel: formatOptionLabel,
79
+ getOptionLabel: getOptionLabel,
80
+ getOptionValue: getOptionValue,
81
+ isMulti: false,
82
+ options: countryOptions
83
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
84
+ }, props));
89
85
  };
90
86
 
91
87
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -386,6 +386,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
386
386
  } else if (typeof placeholder === 'string') {
387
387
  return placeholder;
388
388
  }
389
+ return undefined;
389
390
  };
390
391
  var popper = /*#__PURE__*/_react.default.createElement(_reactPopper.Popper, (0, _extends2.default)({}, mergedPopperProps, {
391
392
  onFirstUpdate: function onFirstUpdate(state) {
@@ -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 = "0.0.0-development";
14
+ var packageVersion = "21.3.8";
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)({
@@ -59,19 +59,15 @@ const CountrySelect = props => {
59
59
  options
60
60
  } = props;
61
61
  const countryOptions = options || groupedCountries;
62
- return (
63
- /*#__PURE__*/
64
- // @ts-ignore - TS2322: Complex generic type causing issues for help-center local consumption with TS 5.9.2
65
- React.createElement(Select, _extends({
66
- isClearable: false,
67
- formatOptionLabel: formatOptionLabel,
68
- getOptionLabel: getOptionLabel,
69
- getOptionValue: getOptionValue,
70
- isMulti: false,
71
- options: countryOptions
72
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
73
- }, props))
74
- );
62
+ return /*#__PURE__*/React.createElement(Select, _extends({
63
+ isClearable: false,
64
+ formatOptionLabel: formatOptionLabel,
65
+ getOptionLabel: getOptionLabel,
66
+ getOptionValue: getOptionValue,
67
+ isMulti: false,
68
+ options: countryOptions
69
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
70
+ }, props));
75
71
  };
76
72
 
77
73
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -365,6 +365,7 @@ export default class PopupSelect extends PureComponent {
365
365
  } else if (typeof placeholder === 'string') {
366
366
  return placeholder;
367
367
  }
368
+ return undefined;
368
369
  };
369
370
  const popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
370
371
  onFirstUpdate: state => {
@@ -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 = "0.0.0-development";
6
+ const packageVersion = "21.3.8";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -65,19 +65,15 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
65
65
  var CountrySelect = function CountrySelect(props) {
66
66
  var options = props.options;
67
67
  var countryOptions = options || groupedCountries;
68
- return (
69
- /*#__PURE__*/
70
- // @ts-ignore - TS2322: Complex generic type causing issues for help-center local consumption with TS 5.9.2
71
- React.createElement(Select, _extends({
72
- isClearable: false,
73
- formatOptionLabel: formatOptionLabel,
74
- getOptionLabel: getOptionLabel,
75
- getOptionValue: getOptionValue,
76
- isMulti: false,
77
- options: countryOptions
78
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
79
- }, props))
80
- );
68
+ return /*#__PURE__*/React.createElement(Select, _extends({
69
+ isClearable: false,
70
+ formatOptionLabel: formatOptionLabel,
71
+ getOptionLabel: getOptionLabel,
72
+ getOptionValue: getOptionValue,
73
+ isMulti: false,
74
+ options: countryOptions
75
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
76
+ }, props));
81
77
  };
82
78
 
83
79
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -378,6 +378,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
378
378
  } else if (typeof placeholder === 'string') {
379
379
  return placeholder;
380
380
  }
381
+ return undefined;
381
382
  };
382
383
  var popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
383
384
  onFirstUpdate: function onFirstUpdate(state) {
@@ -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 = "0.0.0-development";
6
+ var packageVersion = "21.3.8";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -19,7 +19,7 @@ export declare const MenuDialog: React.ForwardRefExoticComponent<React.PropsWith
19
19
  * __Dummy control__
20
20
  * Overrides the default DummyControl component in Select.
21
21
  */
22
- export declare const DummyControl: FC<ControlProps<OptionType, boolean>>;
22
+ export declare const DummyControl: (props: ControlProps<OptionType, boolean>) => JSX.Element;
23
23
  export declare const defaultComponents: {
24
24
  Control: FC<ControlProps<OptionType, boolean>>;
25
25
  DropdownIndicator: () => JSX.Element;
@@ -19,7 +19,7 @@ export declare const MenuDialog: React.ForwardRefExoticComponent<React.PropsWith
19
19
  * __Dummy control__
20
20
  * Overrides the default DummyControl component in Select.
21
21
  */
22
- export declare const DummyControl: FC<ControlProps<OptionType, boolean>>;
22
+ export declare const DummyControl: (props: ControlProps<OptionType, boolean>) => JSX.Element;
23
23
  export declare const defaultComponents: {
24
24
  Control: FC<ControlProps<OptionType, boolean>>;
25
25
  DropdownIndicator: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "21.3.7",
3
+ "version": "21.3.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/"