@atlaskit/select 17.3.3 → 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,11 @@
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
+
3
9
  ## 17.3.3
4
10
 
5
11
  ### Patch Changes
@@ -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.3.3";
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
15
  var Select = (0, _analyticsNext.withAnalyticsContext)({
@@ -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) {
@@ -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.3.3";
5
+ const packageVersion = "17.3.4";
6
6
  export const SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  const Select = withAnalyticsContext({
@@ -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
  });
@@ -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.3.3";
5
+ var packageVersion = "17.3.4";
6
6
  export var SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  var Select = withAnalyticsContext({
@@ -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,7 +37,7 @@ 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
  };
@@ -81,7 +81,7 @@ declare const Select: {
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
  };
@@ -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,7 +37,7 @@ 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
  };
@@ -81,7 +81,7 @@ declare const Select: {
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
  };
@@ -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.3",
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/"