@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 +12 -0
- package/dist/cjs/Select.js +4 -3
- package/dist/cjs/components/input-aria-describedby.js +3 -3
- package/dist/cjs/createSelect.js +2 -1
- package/dist/es2019/Select.js +6 -5
- package/dist/es2019/components/input-aria-describedby.js +2 -2
- package/dist/es2019/createSelect.js +1 -0
- package/dist/esm/Select.js +6 -5
- package/dist/esm/components/input-aria-describedby.js +2 -2
- package/dist/esm/createSelect.js +2 -1
- package/dist/types/AsyncCreatableSelect.d.ts +1 -1
- package/dist/types/AsyncSelect.d.ts +1 -1
- package/dist/types/CreatableSelect.d.ts +1 -1
- package/dist/types/Select.d.ts +4 -4
- package/dist/types/components/input-aria-describedby.d.ts +2 -1
- package/dist/types/createSelect.d.ts +2 -1
- package/dist/types-ts4.5/AsyncCreatableSelect.d.ts +1 -1
- package/dist/types-ts4.5/AsyncSelect.d.ts +1 -1
- package/dist/types-ts4.5/CreatableSelect.d.ts +1 -1
- package/dist/types-ts4.5/Select.d.ts +4 -4
- package/dist/types-ts4.5/components/input-aria-describedby.d.ts +2 -1
- package/dist/types-ts4.5/createSelect.d.ts +2 -1
- package/package.json +1 -1
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
|
package/dist/cjs/Select.js
CHANGED
|
@@ -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.
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
+
}
|
package/dist/cjs/createSelect.js
CHANGED
|
@@ -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) {
|
package/dist/es2019/Select.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
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.
|
|
6
|
-
export const SelectWithoutAnalytics = createSelect(
|
|
5
|
+
const packageVersion = "17.3.4";
|
|
6
|
+
export const SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
|
-
|
|
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
|
|
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
|
+
}
|
package/dist/esm/Select.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
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.
|
|
6
|
-
export var SelectWithoutAnalytics = createSelect(
|
|
5
|
+
var packageVersion = "17.3.4";
|
|
6
|
+
export var SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
|
-
|
|
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
|
|
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
|
+
}
|
package/dist/esm/createSelect.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
40
|
+
Input: typeof import("./components/input-aria-describedby").Input;
|
|
41
41
|
};
|
|
42
42
|
styles: {};
|
|
43
43
|
};
|
package/dist/types/Select.d.ts
CHANGED
|
@@ -37,13 +37,13 @@ export declare const SelectWithoutAnalytics: {
|
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
39
|
components: {
|
|
40
|
-
Input:
|
|
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
|
|
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:
|
|
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
|
|
90
|
+
export default Select;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps } from 'react-select';
|
|
3
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
90
|
+
export default Select;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps } from 'react-select';
|
|
3
|
-
|
|
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:
|
|
44
|
+
Input: typeof Input;
|
|
44
45
|
};
|
|
45
46
|
styles: {};
|
|
46
47
|
};
|
package/package.json
CHANGED