@atlaskit/select 17.19.1 → 17.19.2
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 +8 -0
- package/dist/cjs/PopupSelect/PopupSelect.js +3 -1
- package/dist/cjs/Select.js +1 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +3 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/esm/PopupSelect/PopupSelect.js +3 -1
- package/dist/esm/Select.js +1 -1
- package/dist/types/PopupSelect/PopupSelect.d.ts +1 -4
- package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +1 -4
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 17.19.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#147255](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147255)
|
|
8
|
+
[`f344b9735b94a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f344b9735b94a) -
|
|
9
|
+
Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 17.19.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -19,6 +19,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
19
19
|
var _bindEventListener = require("bind-event-listener");
|
|
20
20
|
var _reactDom = require("react-dom");
|
|
21
21
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
22
|
+
var _reactFocusLockNext = _interopRequireDefault(require("react-focus-lock-next"));
|
|
22
23
|
var _reactNodeResolver = _interopRequireDefault(require("react-node-resolver"));
|
|
23
24
|
var _reactPopper = require("react-popper");
|
|
24
25
|
var _reactSelect = require("react-select");
|
|
@@ -52,6 +53,7 @@ var canUseDOM = function canUseDOM() {
|
|
|
52
53
|
// Class
|
|
53
54
|
// ==============================
|
|
54
55
|
|
|
56
|
+
var FocusLock = (0, _platformFeatureFlags.fg)('platform_dst_select-bump-react-focus-lock') ? _reactFocusLockNext.default : _reactFocusLock.default;
|
|
55
57
|
var modifiers = [{
|
|
56
58
|
name: 'offset',
|
|
57
59
|
options: {
|
|
@@ -433,7 +435,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
433
435
|
id: _this.popperWrapperId,
|
|
434
436
|
testId: testId,
|
|
435
437
|
ref: !(0, _platformFeatureFlags.fg)('platform-design-system-dsp-19701-no-node-resolver') ? null : _this.resolveMenuRef(ref)
|
|
436
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
438
|
+
}, /*#__PURE__*/_react.default.createElement(FocusLock, {
|
|
437
439
|
disabled: !focusLockEnabled,
|
|
438
440
|
returnFocus: true
|
|
439
441
|
}, /*#__PURE__*/_react.default.createElement(_Select.default, (0, _extends2.default)({
|
package/dist/cjs/Select.js
CHANGED
|
@@ -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.19.
|
|
12
|
+
var packageVersion = "17.19.2";
|
|
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,7 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
5
|
import { bind } from 'bind-event-listener';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
|
-
import
|
|
7
|
+
import FocusLockOld from 'react-focus-lock';
|
|
8
|
+
import FocusLockNext from 'react-focus-lock-next';
|
|
8
9
|
import NodeResolver from 'react-node-resolver';
|
|
9
10
|
import { Manager, Popper, Reference } from 'react-popper';
|
|
10
11
|
import { mergeStyles } from 'react-select';
|
|
@@ -29,6 +30,7 @@ const canUseDOM = () => Boolean(typeof window !== 'undefined' && window.document
|
|
|
29
30
|
// Class
|
|
30
31
|
// ==============================
|
|
31
32
|
|
|
33
|
+
const FocusLock = fg('platform_dst_select-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
|
|
32
34
|
const modifiers = [{
|
|
33
35
|
name: 'offset',
|
|
34
36
|
options: {
|
package/dist/es2019/Select.js
CHANGED
|
@@ -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.19.
|
|
5
|
+
const packageVersion = "17.19.2";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
const Select = withAnalyticsContext({
|
|
@@ -16,7 +16,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
16
16
|
import React, { PureComponent } from 'react';
|
|
17
17
|
import { bind } from 'bind-event-listener';
|
|
18
18
|
import { createPortal } from 'react-dom';
|
|
19
|
-
import
|
|
19
|
+
import FocusLockOld from 'react-focus-lock';
|
|
20
|
+
import FocusLockNext from 'react-focus-lock-next';
|
|
20
21
|
import NodeResolver from 'react-node-resolver';
|
|
21
22
|
import { Manager, Popper, Reference } from 'react-popper';
|
|
22
23
|
import { mergeStyles } from 'react-select';
|
|
@@ -43,6 +44,7 @@ var canUseDOM = function canUseDOM() {
|
|
|
43
44
|
// Class
|
|
44
45
|
// ==============================
|
|
45
46
|
|
|
47
|
+
var FocusLock = fg('platform_dst_select-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
|
|
46
48
|
var modifiers = [{
|
|
47
49
|
name: 'offset',
|
|
48
50
|
options: {
|
package/dist/esm/Select.js
CHANGED
|
@@ -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.19.
|
|
5
|
+
var packageVersion = "17.19.2";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
var Select = withAnalyticsContext({
|
|
@@ -110,10 +110,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
110
110
|
focusLockEnabled: boolean;
|
|
111
111
|
isOpen: boolean;
|
|
112
112
|
mergedComponents: {
|
|
113
|
-
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
114
|
-
* The maximum width for the popup menu. Can be a number, representing the width in pixels,
|
|
115
|
-
* or a string containing a CSS length datatype.
|
|
116
|
-
*/
|
|
113
|
+
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
117
114
|
DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
|
|
118
115
|
Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
|
|
119
116
|
IndicatorSeparator: (props: import("react-select").IndicatorSeparatorProps<unknown, boolean, GroupBase<unknown>>) => import("@emotion/react").jsx.JSX.Element;
|
|
@@ -110,10 +110,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
110
110
|
focusLockEnabled: boolean;
|
|
111
111
|
isOpen: boolean;
|
|
112
112
|
mergedComponents: {
|
|
113
|
-
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
114
|
-
* The maximum width for the popup menu. Can be a number, representing the width in pixels,
|
|
115
|
-
* or a string containing a CSS length datatype.
|
|
116
|
-
*/
|
|
113
|
+
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
117
114
|
DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
|
|
118
115
|
Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
|
|
119
116
|
IndicatorSeparator: (props: import("react-select").IndicatorSeparatorProps<unknown, boolean, GroupBase<unknown>>) => import("@emotion/react").jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "17.19.
|
|
3
|
+
"version": "17.19.2",
|
|
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/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.19.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
44
|
"@atlaskit/primitives": "^12.2.0",
|
|
45
45
|
"@atlaskit/spinner": "^16.3.0",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@popperjs/core": "^2.11.8",
|
|
52
52
|
"bind-event-listener": "^3.0.0",
|
|
53
53
|
"react-focus-lock": "^2.9.5",
|
|
54
|
+
"react-focus-lock-next": "npm:react-focus-lock@^2.13.2",
|
|
54
55
|
"react-node-resolver": "^1.0.1",
|
|
55
56
|
"react-popper": "^2.3.0",
|
|
56
57
|
"react-select": "^5.4.0",
|
|
@@ -113,6 +114,9 @@
|
|
|
113
114
|
},
|
|
114
115
|
"platform_design_system_team_select_typography": {
|
|
115
116
|
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
"platform_dst_select-bump-react-focus-lock": {
|
|
119
|
+
"type": "boolean"
|
|
116
120
|
}
|
|
117
121
|
},
|
|
118
122
|
"homepage": "https://atlassian.design/components/select/"
|