@atlaskit/select 18.5.1 → 18.5.3
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/AsyncCreatableSelect/package.json +3 -1
- package/AsyncSelect/package.json +3 -1
- package/CHANGELOG.md +17 -0
- package/CreatableSelect/package.json +3 -1
- package/Select/package.json +3 -1
- package/dist/cjs/PopupSelect/PopupSelect.js +1 -4
- package/dist/cjs/Select.js +1 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +1 -4
- package/dist/es2019/Select.js +1 -1
- package/dist/esm/PopupSelect/PopupSelect.js +1 -4
- package/dist/esm/Select.js +1 -1
- package/dist/types/PopupSelect/PopupSelect.d.ts +0 -4
- package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +0 -4
- package/package.json +6 -8
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/entry-points/async-creatable-select.js",
|
|
4
4
|
"module": "../dist/esm/entry-points/async-creatable-select.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/async-creatable-select.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/entry-points/async-creatable-select.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/AsyncSelect/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/entry-points/async-select.js",
|
|
4
4
|
"module": "../dist/esm/entry-points/async-select.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/async-select.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/entry-points/async-select.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 18.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167181](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167181)
|
|
8
|
+
[`5bc9dc0796474`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5bc9dc0796474) -
|
|
9
|
+
Remove `react-focus-lock-next` dependency
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 18.5.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#165531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165531)
|
|
17
|
+
[`57f451bda8919`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f451bda8919) -
|
|
18
|
+
Adds side-effect config to support Compiled css extraction in third-party apps
|
|
19
|
+
|
|
3
20
|
## 18.5.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/entry-points/creatable-select.js",
|
|
4
4
|
"module": "../dist/esm/entry-points/creatable-select.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/creatable-select.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/entry-points/creatable-select.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/Select/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/entry-points/select.js",
|
|
4
4
|
"module": "../dist/esm/entry-points/select.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/select.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/entry-points/select.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -19,11 +19,9 @@ 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"));
|
|
23
22
|
var _reactPopper = require("react-popper");
|
|
24
23
|
var _shallowEqual = require("shallow-equal");
|
|
25
24
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
26
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
25
|
var _reactSelect = require("@atlaskit/react-select");
|
|
28
26
|
var _colors = require("@atlaskit/theme/colors");
|
|
29
27
|
var _Select = _interopRequireDefault(require("../Select"));
|
|
@@ -52,7 +50,6 @@ var canUseDOM = function canUseDOM() {
|
|
|
52
50
|
// Class
|
|
53
51
|
// ==============================
|
|
54
52
|
|
|
55
|
-
var FocusLock = (0, _platformFeatureFlags.fg)('platform_dst_select-bump-react-focus-lock') ? _reactFocusLockNext.default : _reactFocusLock.default;
|
|
56
53
|
var modifiers = [{
|
|
57
54
|
name: 'offset',
|
|
58
55
|
options: {
|
|
@@ -419,7 +416,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
419
416
|
id: id,
|
|
420
417
|
testId: testId,
|
|
421
418
|
ref: _this.resolveMenuRef(ref)
|
|
422
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
419
|
+
}, /*#__PURE__*/_react.default.createElement(_reactFocusLock.default, {
|
|
423
420
|
disabled: !focusLockEnabled,
|
|
424
421
|
returnFocus: true
|
|
425
422
|
}, /*#__PURE__*/_react.default.createElement(_Select.default, (0, _extends2.default)({
|
package/dist/cjs/Select.js
CHANGED
|
@@ -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 = "18.5.
|
|
14
|
+
var packageVersion = "18.5.3";
|
|
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)({
|
|
@@ -4,12 +4,10 @@ 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
|
|
8
|
-
import FocusLockNext from 'react-focus-lock-next';
|
|
7
|
+
import FocusLock from 'react-focus-lock';
|
|
9
8
|
import { Manager, Popper, Reference } from 'react-popper';
|
|
10
9
|
import { shallowEqualObjects } from 'shallow-equal';
|
|
11
10
|
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
import { mergeStyles } from '@atlaskit/react-select';
|
|
14
12
|
import { N80 } from '@atlaskit/theme/colors';
|
|
15
13
|
import Select from '../Select';
|
|
@@ -29,7 +27,6 @@ const canUseDOM = () => Boolean(typeof window !== 'undefined' && window.document
|
|
|
29
27
|
// Class
|
|
30
28
|
// ==============================
|
|
31
29
|
|
|
32
|
-
const FocusLock = fg('platform_dst_select-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
|
|
33
30
|
const modifiers = [{
|
|
34
31
|
name: 'offset',
|
|
35
32
|
options: {
|
package/dist/es2019/Select.js
CHANGED
|
@@ -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 = "18.5.
|
|
6
|
+
const packageVersion = "18.5.3";
|
|
7
7
|
export const SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
const Select = withAnalyticsContext({
|
|
@@ -16,12 +16,10 @@ 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
|
|
20
|
-
import FocusLockNext from 'react-focus-lock-next';
|
|
19
|
+
import FocusLock from 'react-focus-lock';
|
|
21
20
|
import { Manager, Popper, Reference } from 'react-popper';
|
|
22
21
|
import { shallowEqualObjects } from 'shallow-equal';
|
|
23
22
|
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
24
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
23
|
import { mergeStyles } from '@atlaskit/react-select';
|
|
26
24
|
import { N80 } from '@atlaskit/theme/colors';
|
|
27
25
|
import Select from '../Select';
|
|
@@ -43,7 +41,6 @@ var canUseDOM = function canUseDOM() {
|
|
|
43
41
|
// Class
|
|
44
42
|
// ==============================
|
|
45
43
|
|
|
46
|
-
var FocusLock = fg('platform_dst_select-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
|
|
47
44
|
var modifiers = [{
|
|
48
45
|
name: 'offset',
|
|
49
46
|
options: {
|
package/dist/esm/Select.js
CHANGED
|
@@ -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 = "18.5.
|
|
6
|
+
var packageVersion = "18.5.3";
|
|
7
7
|
export var SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
var Select = withAnalyticsContext({
|
|
@@ -110,10 +110,6 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
110
110
|
focusLockEnabled: boolean;
|
|
111
111
|
isOpen: boolean;
|
|
112
112
|
mergedComponents: {
|
|
113
|
-
/**
|
|
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
|
-
*/
|
|
117
113
|
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
118
114
|
DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
|
|
119
115
|
Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
|
|
@@ -110,10 +110,6 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
110
110
|
focusLockEnabled: boolean;
|
|
111
111
|
isOpen: boolean;
|
|
112
112
|
mergedComponents: {
|
|
113
|
-
/**
|
|
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
|
-
*/
|
|
117
113
|
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
118
114
|
DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
|
|
119
115
|
Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "18.5.
|
|
3
|
+
"version": "18.5.3",
|
|
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/"
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"sideEffects":
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.compiled.css"
|
|
25
|
+
],
|
|
24
26
|
"atlaskit:src": "src/index.tsx",
|
|
25
27
|
"atlassian": {
|
|
26
28
|
"team": "Design System Team",
|
|
@@ -43,17 +45,16 @@
|
|
|
43
45
|
"@atlaskit/icon": "^22.24.0",
|
|
44
46
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
47
|
"@atlaskit/primitives": "^13.2.0",
|
|
46
|
-
"@atlaskit/react-select": "^1.
|
|
48
|
+
"@atlaskit/react-select": "^1.4.0",
|
|
47
49
|
"@atlaskit/spinner": "^16.3.0",
|
|
48
50
|
"@atlaskit/theme": "^14.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^2.
|
|
51
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
50
52
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
51
53
|
"@babel/runtime": "^7.0.0",
|
|
52
54
|
"@emotion/react": "^11.7.1",
|
|
53
55
|
"@popperjs/core": "^2.11.8",
|
|
54
56
|
"bind-event-listener": "^3.0.0",
|
|
55
57
|
"react-focus-lock": "^2.9.5",
|
|
56
|
-
"react-focus-lock-next": "npm:react-focus-lock@^2.13.2",
|
|
57
58
|
"react-node-resolver": "^1.0.1",
|
|
58
59
|
"react-popper": "^2.3.0",
|
|
59
60
|
"shallow-equal": "^3.1.0"
|
|
@@ -104,9 +105,6 @@
|
|
|
104
105
|
"platform-visual-refresh-icons-legacy-facade": {
|
|
105
106
|
"type": "boolean"
|
|
106
107
|
},
|
|
107
|
-
"platform_dst_select-bump-react-focus-lock": {
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
},
|
|
110
108
|
"design_system_select-a11y-improvement": {
|
|
111
109
|
"type": "boolean",
|
|
112
110
|
"referenceOnly": true
|