@atlaskit/select 17.3.2 → 17.3.4

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,17 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 17.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83706](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83706) [`2c6f01982c94`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c6f01982c94) - Fixed aria-describedby attribute being incorrect when components prop is passed
8
+
9
+ ## 17.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#83130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83130) [`4efd62cdc533`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4efd62cdc533) - SHPLVIII-481: Assign name to default export components to fix quick-fix imports
14
+
3
15
  ## 17.3.2
4
16
 
5
17
  ### Patch Changes
@@ -9,10 +9,10 @@ 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.3.2";
12
+ var packageVersion = "17.3.4";
13
13
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
15
- var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
15
+ var Select = (0, _analyticsNext.withAnalyticsContext)({
16
16
  componentName: 'select',
17
17
  packageName: packageName,
18
18
  packageVersion: packageVersion
@@ -26,4 +26,5 @@ var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
26
26
  packageVersion: packageVersion
27
27
  }
28
28
  })
29
- })(SelectWithoutAnalytics));
29
+ })(SelectWithoutAnalytics));
30
+ var _default = exports.default = Select;
@@ -4,11 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.Input = void 0;
7
+ exports.Input = Input;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _reactSelect = require("react-select");
11
- var Input = exports.Input = function Input(props) {
11
+ function Input(props) {
12
12
  var ariaDescribedByAttribute;
13
13
  var passed_describedby = props.selectProps['aria-describedby'];
14
14
  if (props['aria-describedby'] && passed_describedby) {
@@ -19,4 +19,4 @@ var Input = exports.Input = function Input(props) {
19
19
  return /*#__PURE__*/_react.default.createElement(_reactSelect.components.Input, (0, _extends2.default)({}, props, {
20
20
  "aria-describedby": ariaDescribedByAttribute
21
21
  }));
22
- };
22
+ }
@@ -47,7 +47,8 @@ function createSelect(WrappedComponent) {
47
47
  DropdownIndicator: _components.DropdownIndicator,
48
48
  LoadingIndicator: _components.LoadingIndicator,
49
49
  MultiValueRemove: _components.MultiValueRemove,
50
- IndicatorSeparator: _components.IndicatorSeparator
50
+ IndicatorSeparator: _components.IndicatorSeparator,
51
+ Input: _inputAriaDescribedby.Input
51
52
  }, components);
52
53
  });
53
54
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onSelectRef", function (ref) {
@@ -1,11 +1,11 @@
1
- import Select from 'react-select';
1
+ 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.3.2";
6
- export const SelectWithoutAnalytics = createSelect(Select);
5
+ const packageVersion = "17.3.4";
6
+ export const SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
- export default withAnalyticsContext({
8
+ const Select = withAnalyticsContext({
9
9
  componentName: 'select',
10
10
  packageName,
11
11
  packageVersion
@@ -19,4 +19,5 @@ export default withAnalyticsContext({
19
19
  packageVersion
20
20
  }
21
21
  })
22
- })(SelectWithoutAnalytics));
22
+ })(SelectWithoutAnalytics));
23
+ export default Select;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { components } from 'react-select';
4
- export const Input = props => {
4
+ export function Input(props) {
5
5
  let ariaDescribedByAttribute;
6
6
  const passed_describedby = props.selectProps['aria-describedby'];
7
7
  if (props['aria-describedby'] && passed_describedby) {
@@ -12,4 +12,4 @@ export const Input = props => {
12
12
  return /*#__PURE__*/React.createElement(components.Input, _extends({}, props, {
13
13
  "aria-describedby": ariaDescribedByAttribute
14
14
  }));
15
- };
15
+ }
@@ -22,6 +22,7 @@ export default function createSelect(WrappedComponent) {
22
22
  LoadingIndicator,
23
23
  MultiValueRemove,
24
24
  IndicatorSeparator,
25
+ Input: Input,
25
26
  ...components
26
27
  };
27
28
  });
@@ -1,11 +1,11 @@
1
- import Select from 'react-select';
1
+ 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.3.2";
6
- export var SelectWithoutAnalytics = createSelect(Select);
5
+ var packageVersion = "17.3.4";
6
+ export var SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
- export default withAnalyticsContext({
8
+ var Select = withAnalyticsContext({
9
9
  componentName: 'select',
10
10
  packageName: packageName,
11
11
  packageVersion: packageVersion
@@ -19,4 +19,5 @@ export default withAnalyticsContext({
19
19
  packageVersion: packageVersion
20
20
  }
21
21
  })
22
- })(SelectWithoutAnalytics));
22
+ })(SelectWithoutAnalytics));
23
+ export default Select;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { components } from 'react-select';
4
- export var Input = function Input(props) {
4
+ export function Input(props) {
5
5
  var ariaDescribedByAttribute;
6
6
  var passed_describedby = props.selectProps['aria-describedby'];
7
7
  if (props['aria-describedby'] && passed_describedby) {
@@ -12,4 +12,4 @@ export var Input = function Input(props) {
12
12
  return /*#__PURE__*/React.createElement(components.Input, _extends({}, props, {
13
13
  "aria-describedby": ariaDescribedByAttribute
14
14
  }));
15
- };
15
+ }
@@ -37,7 +37,8 @@ export default function createSelect(WrappedComponent) {
37
37
  DropdownIndicator: DropdownIndicator,
38
38
  LoadingIndicator: LoadingIndicator,
39
39
  MultiValueRemove: MultiValueRemove,
40
- IndicatorSeparator: IndicatorSeparator
40
+ IndicatorSeparator: IndicatorSeparator,
41
+ Input: Input
41
42
  }, components);
42
43
  });
43
44
  _defineProperty(_assertThisInitialized(_this), "onSelectRef", function (ref) {
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
@@ -37,13 +37,13 @@ export declare const SelectWithoutAnalytics: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
44
44
  contextType?: import("react").Context<any> | undefined;
45
45
  };
46
- declare const _default: {
46
+ declare const Select: {
47
47
  new <Option = import("./types").OptionType, IsMulti extends boolean = false>(props: import("./types").SelectProps<Option, IsMulti>): {
48
48
  components: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, import("react-select").GroupBase<Option>>>;
49
49
  select: import("react-select/base").default<unknown, false, import("react-select").GroupBase<unknown>> | null;
@@ -81,10 +81,10 @@ declare const _default: {
81
81
  onClickPreventDefault: boolean;
82
82
  tabSelectsValue: boolean;
83
83
  components: {
84
- Input: (props: import("react-select").InputProps) => JSX.Element;
84
+ Input: typeof import("./components/input-aria-describedby").Input;
85
85
  };
86
86
  styles: {};
87
87
  };
88
88
  contextType?: import("react").Context<any> | undefined;
89
89
  };
90
- export default _default;
90
+ export default Select;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { InputProps } from 'react-select';
3
- export declare const Input: (props: InputProps) => JSX.Element;
3
+ import type { OptionType } from '../types';
4
+ export declare function Input<Option = OptionType, IsMulti extends boolean = false>(props: InputProps<Option, IsMulti>): JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React, { ComponentType } from 'react';
2
2
  import { type GroupBase } from 'react-select';
3
3
  import BaseSelect from 'react-select/base';
4
+ import { Input } from './components/input-aria-describedby';
4
5
  import { SelectProps, OptionType, AsyncSelectProps, CreatableSelectProps } from './types';
5
6
  export default function createSelect(WrappedComponent: ComponentType<any>): {
6
7
  new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
@@ -40,7 +41,7 @@ export default function createSelect(WrappedComponent: ComponentType<any>): {
40
41
  onClickPreventDefault: boolean;
41
42
  tabSelectsValue: boolean;
42
43
  components: {
43
- Input: (props: import("react-select").InputProps) => JSX.Element;
44
+ Input: typeof Input;
44
45
  };
45
46
  styles: {};
46
47
  };
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
@@ -37,13 +37,13 @@ export declare const SelectWithoutAnalytics: {
37
37
  onClickPreventDefault: boolean;
38
38
  tabSelectsValue: boolean;
39
39
  components: {
40
- Input: (props: import("react-select").InputProps) => JSX.Element;
40
+ Input: typeof import("./components/input-aria-describedby").Input;
41
41
  };
42
42
  styles: {};
43
43
  };
44
44
  contextType?: import("react").Context<any> | undefined;
45
45
  };
46
- declare const _default: {
46
+ declare const Select: {
47
47
  new <Option = import("./types").OptionType, IsMulti extends boolean = false>(props: import("./types").SelectProps<Option, IsMulti>): {
48
48
  components: Partial<import("react-select/dist/declarations/src/components").SelectComponents<Option, IsMulti, import("react-select").GroupBase<Option>>>;
49
49
  select: import("react-select/base").default<unknown, false, import("react-select").GroupBase<unknown>> | null;
@@ -81,10 +81,10 @@ declare const _default: {
81
81
  onClickPreventDefault: boolean;
82
82
  tabSelectsValue: boolean;
83
83
  components: {
84
- Input: (props: import("react-select").InputProps) => JSX.Element;
84
+ Input: typeof import("./components/input-aria-describedby").Input;
85
85
  };
86
86
  styles: {};
87
87
  };
88
88
  contextType?: import("react").Context<any> | undefined;
89
89
  };
90
- export default _default;
90
+ export default Select;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { InputProps } from 'react-select';
3
- export declare const Input: (props: InputProps) => JSX.Element;
3
+ import type { OptionType } from '../types';
4
+ export declare function Input<Option = OptionType, IsMulti extends boolean = false>(props: InputProps<Option, IsMulti>): JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React, { ComponentType } from 'react';
2
2
  import { type GroupBase } from 'react-select';
3
3
  import BaseSelect from 'react-select/base';
4
+ import { Input } from './components/input-aria-describedby';
4
5
  import { SelectProps, OptionType, AsyncSelectProps, CreatableSelectProps } from './types';
5
6
  export default function createSelect(WrappedComponent: ComponentType<any>): {
6
7
  new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
@@ -40,7 +41,7 @@ export default function createSelect(WrappedComponent: ComponentType<any>): {
40
41
  onClickPreventDefault: boolean;
41
42
  tabSelectsValue: boolean;
42
43
  components: {
43
- Input: (props: import("react-select").InputProps) => JSX.Element;
44
+ Input: typeof Input;
44
45
  };
45
46
  styles: {};
46
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "17.3.2",
3
+ "version": "17.3.4",
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/"