@atlaskit/select 21.3.6 → 21.3.7

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.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2c386d1fc1477`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c386d1fc1477) -
8
+ ts-ignore added as a workaround for help-center local consumption
9
+ - Updated dependencies
10
+
3
11
  ## 21.3.6
4
12
 
5
13
  ### Patch Changes
@@ -73,15 +73,19 @@ 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 /*#__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));
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
+ );
85
89
  };
86
90
 
87
91
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -378,6 +378,8 @@ 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;
@@ -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 = "0.0.0-development";
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;
@@ -59,15 +59,19 @@ const CountrySelect = props => {
59
59
  options
60
60
  } = props;
61
61
  const countryOptions = options || groupedCountries;
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));
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
+ );
71
75
  };
72
76
 
73
77
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -357,6 +357,8 @@ 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;
@@ -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 = "0.0.0-development";
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
  }];
@@ -65,15 +65,19 @@ 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 /*#__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));
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
+ );
77
81
  };
78
82
 
79
83
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -370,6 +370,8 @@ 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;
@@ -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 = "0.0.0-development";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "21.3.6",
3
+ "version": "21.3.7",
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",