@atlaskit/select 21.3.6 → 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,21 @@
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
+
11
+ ## 21.3.7
12
+
13
+ ### Patch Changes
14
+
15
+ - [`2c386d1fc1477`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c386d1fc1477) -
16
+ ts-ignore added as a workaround for help-center local consumption
17
+ - Updated dependencies
18
+
3
19
  ## 21.3.6
4
20
 
5
21
  ### Patch Changes
@@ -378,12 +378,15 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
378
378
  var selectComponents = _objectSpread(_objectSpread({}, mergedComponents), {}, {
379
379
  Control: showSearchControl ? mergedComponents.Control : _components.DummyControl
380
380
  });
381
+
382
+ // @ts-ignore - TS7030: Not all code paths return a value - causing issues for help-center local consumption with TS 5.9.2
381
383
  var getLabel = function getLabel() {
382
384
  if (label) {
383
385
  return label;
384
386
  } else if (typeof placeholder === 'string') {
385
387
  return placeholder;
386
388
  }
389
+ return undefined;
387
390
  };
388
391
  var popper = /*#__PURE__*/_react.default.createElement(_reactPopper.Popper, (0, _extends2.default)({}, mergedPopperProps, {
389
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 = "21.3.5";
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)({
@@ -1256,11 +1256,13 @@ var allCountries = [{
1256
1256
 
1257
1257
  // separate countries into groups
1258
1258
  var groupedCountries = exports.groupedCountries = [{
1259
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
1259
1260
  label: 'Suggested',
1260
1261
  options: allCountries.filter(function (c) {
1261
1262
  return c.suggested;
1262
1263
  })
1263
1264
  }, {
1265
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
1264
1266
  label: 'All Countries',
1265
1267
  options: allCountries.filter(function (c) {
1266
1268
  return !c.suggested;
@@ -357,12 +357,15 @@ export default class PopupSelect extends PureComponent {
357
357
  ...mergedComponents,
358
358
  Control: showSearchControl ? mergedComponents.Control : DummyControl
359
359
  };
360
+
361
+ // @ts-ignore - TS7030: Not all code paths return a value - causing issues for help-center local consumption with TS 5.9.2
360
362
  const getLabel = () => {
361
363
  if (label) {
362
364
  return label;
363
365
  } else if (typeof placeholder === 'string') {
364
366
  return placeholder;
365
367
  }
368
+ return undefined;
366
369
  };
367
370
  const popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
368
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 = "21.3.5";
6
+ const packageVersion = "21.3.8";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -1250,9 +1250,11 @@ const allCountries = [{
1250
1250
 
1251
1251
  // separate countries into groups
1252
1252
  export const groupedCountries = [{
1253
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
1253
1254
  label: 'Suggested',
1254
1255
  options: allCountries.filter(c => c.suggested)
1255
1256
  }, {
1257
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
1256
1258
  label: 'All Countries',
1257
1259
  options: allCountries.filter(c => !c.suggested)
1258
1260
  }];
@@ -370,12 +370,15 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
370
370
  var selectComponents = _objectSpread(_objectSpread({}, mergedComponents), {}, {
371
371
  Control: showSearchControl ? mergedComponents.Control : DummyControl
372
372
  });
373
+
374
+ // @ts-ignore - TS7030: Not all code paths return a value - causing issues for help-center local consumption with TS 5.9.2
373
375
  var getLabel = function getLabel() {
374
376
  if (label) {
375
377
  return label;
376
378
  } else if (typeof placeholder === 'string') {
377
379
  return placeholder;
378
380
  }
381
+ return undefined;
379
382
  };
380
383
  var popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
381
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 = "21.3.5";
6
+ var packageVersion = "21.3.8";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -1250,11 +1250,13 @@ var allCountries = [{
1250
1250
 
1251
1251
  // separate countries into groups
1252
1252
  export var groupedCountries = [{
1253
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
1253
1254
  label: 'Suggested',
1254
1255
  options: allCountries.filter(function (c) {
1255
1256
  return c.suggested;
1256
1257
  })
1257
1258
  }, {
1259
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
1258
1260
  label: 'All Countries',
1259
1261
  options: allCountries.filter(function (c) {
1260
1262
  return !c.suggested;
@@ -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.6",
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/"
@@ -65,9 +65,9 @@
65
65
  "@atlaskit/form": "^14.2.0",
66
66
  "@atlaskit/link": "^3.2.0",
67
67
  "@atlaskit/logo": "^19.9.0",
68
- "@atlaskit/modal-dialog": "^14.5.0",
68
+ "@atlaskit/modal-dialog": "^14.6.0",
69
69
  "@atlaskit/radio": "^8.3.0",
70
- "@atlaskit/section-message": "^8.7.0",
70
+ "@atlaskit/section-message": "^8.8.0",
71
71
  "@atlassian/ssr-tests": "^0.3.0",
72
72
  "@testing-library/react": "^13.4.0",
73
73
  "@testing-library/user-event": "^14.4.3",