@atlaskit/drawer 9.2.3 → 9.2.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 +8 -0
- package/dist/cjs/components/index.js +3 -3
- package/dist/cjs/components/primitives/focus-lock.js +1 -5
- package/dist/es2019/components/index.js +3 -3
- package/dist/es2019/components/primitives/focus-lock.js +1 -5
- package/dist/esm/components/index.js +3 -3
- package/dist/esm/components/primitives/focus-lock.js +1 -5
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/drawer
|
|
2
2
|
|
|
3
|
+
## 9.2.4
|
|
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
|
+
|
|
3
11
|
## 9.2.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -72,7 +72,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
72
72
|
action: 'dismissed',
|
|
73
73
|
componentName: 'drawer',
|
|
74
74
|
packageName: "@atlaskit/drawer",
|
|
75
|
-
packageVersion: "9.2.
|
|
75
|
+
packageVersion: "9.2.4",
|
|
76
76
|
analyticsData: {
|
|
77
77
|
trigger: 'escKey'
|
|
78
78
|
}
|
|
@@ -95,7 +95,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
95
95
|
action: 'dismissed',
|
|
96
96
|
componentName: 'drawer',
|
|
97
97
|
packageName: "@atlaskit/drawer",
|
|
98
|
-
packageVersion: "9.2.
|
|
98
|
+
packageVersion: "9.2.4",
|
|
99
99
|
analyticsData: {
|
|
100
100
|
trigger: 'blanket'
|
|
101
101
|
}
|
|
@@ -107,7 +107,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
107
107
|
action: 'dismissed',
|
|
108
108
|
componentName: 'drawer',
|
|
109
109
|
packageName: "@atlaskit/drawer",
|
|
110
|
-
packageVersion: "9.2.
|
|
110
|
+
packageVersion: "9.2.4",
|
|
111
111
|
analyticsData: {
|
|
112
112
|
trigger: 'backButton'
|
|
113
113
|
}
|
|
@@ -8,14 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
11
|
-
var _reactFocusLockNext = _interopRequireDefault(require("react-focus-lock-next"));
|
|
12
11
|
var _reactScrolllock = _interopRequireDefault(require("react-scrolllock"));
|
|
13
12
|
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
var ReactFocusLock = (0, _platformFeatureFlags.fg)('platform_dst_drawer-bump-react-focus-lock') ? _reactFocusLockNext.default : _reactFocusLock.default;
|
|
18
|
-
|
|
19
15
|
/**
|
|
20
16
|
* __Focus lock__
|
|
21
17
|
*
|
|
@@ -55,7 +51,7 @@ var FocusLock = function FocusLock(_ref) {
|
|
|
55
51
|
}, 0);
|
|
56
52
|
}
|
|
57
53
|
};
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_reactFocusLock.default, {
|
|
59
55
|
disabled: !isFocusLockEnabled,
|
|
60
56
|
autoFocus: !!autoFocusFirstElem,
|
|
61
57
|
returnFocus: getFocusTarget(),
|
|
@@ -57,7 +57,7 @@ export const Drawer = ({
|
|
|
57
57
|
action: 'dismissed',
|
|
58
58
|
componentName: 'drawer',
|
|
59
59
|
packageName: "@atlaskit/drawer",
|
|
60
|
-
packageVersion: "9.2.
|
|
60
|
+
packageVersion: "9.2.4",
|
|
61
61
|
analyticsData: {
|
|
62
62
|
trigger: 'escKey'
|
|
63
63
|
}
|
|
@@ -78,7 +78,7 @@ export const Drawer = ({
|
|
|
78
78
|
action: 'dismissed',
|
|
79
79
|
componentName: 'drawer',
|
|
80
80
|
packageName: "@atlaskit/drawer",
|
|
81
|
-
packageVersion: "9.2.
|
|
81
|
+
packageVersion: "9.2.4",
|
|
82
82
|
analyticsData: {
|
|
83
83
|
trigger: 'blanket'
|
|
84
84
|
}
|
|
@@ -88,7 +88,7 @@ export const Drawer = ({
|
|
|
88
88
|
action: 'dismissed',
|
|
89
89
|
componentName: 'drawer',
|
|
90
90
|
packageName: "@atlaskit/drawer",
|
|
91
|
-
packageVersion: "9.2.
|
|
91
|
+
packageVersion: "9.2.4",
|
|
92
92
|
analyticsData: {
|
|
93
93
|
trigger: 'backButton'
|
|
94
94
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import ReactFocusLockNext from 'react-focus-lock-next';
|
|
2
|
+
import ReactFocusLock from 'react-focus-lock';
|
|
4
3
|
import ScrollLock from 'react-scrolllock';
|
|
5
4
|
import invariant from 'tiny-invariant';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
const ReactFocusLock = fg('platform_dst_drawer-bump-react-focus-lock') ? ReactFocusLockNext : ReactFocusLockOld;
|
|
8
|
-
|
|
9
5
|
/**
|
|
10
6
|
* __Focus lock__
|
|
11
7
|
*
|
|
@@ -61,7 +61,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
61
61
|
action: 'dismissed',
|
|
62
62
|
componentName: 'drawer',
|
|
63
63
|
packageName: "@atlaskit/drawer",
|
|
64
|
-
packageVersion: "9.2.
|
|
64
|
+
packageVersion: "9.2.4",
|
|
65
65
|
analyticsData: {
|
|
66
66
|
trigger: 'escKey'
|
|
67
67
|
}
|
|
@@ -84,7 +84,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
84
84
|
action: 'dismissed',
|
|
85
85
|
componentName: 'drawer',
|
|
86
86
|
packageName: "@atlaskit/drawer",
|
|
87
|
-
packageVersion: "9.2.
|
|
87
|
+
packageVersion: "9.2.4",
|
|
88
88
|
analyticsData: {
|
|
89
89
|
trigger: 'blanket'
|
|
90
90
|
}
|
|
@@ -96,7 +96,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
96
96
|
action: 'dismissed',
|
|
97
97
|
componentName: 'drawer',
|
|
98
98
|
packageName: "@atlaskit/drawer",
|
|
99
|
-
packageVersion: "9.2.
|
|
99
|
+
packageVersion: "9.2.4",
|
|
100
100
|
analyticsData: {
|
|
101
101
|
trigger: 'backButton'
|
|
102
102
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import ReactFocusLockNext from 'react-focus-lock-next';
|
|
2
|
+
import ReactFocusLock from 'react-focus-lock';
|
|
4
3
|
import ScrollLock from 'react-scrolllock';
|
|
5
4
|
import invariant from 'tiny-invariant';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
var ReactFocusLock = fg('platform_dst_drawer-bump-react-focus-lock') ? ReactFocusLockNext : ReactFocusLockOld;
|
|
8
|
-
|
|
9
5
|
/**
|
|
10
6
|
* __Focus lock__
|
|
11
7
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.4",
|
|
4
4
|
"description": "A drawer is a panel that slides in from the left side of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,13 +47,12 @@
|
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
48
48
|
"@atlaskit/portal": "^4.9.0",
|
|
49
49
|
"@atlaskit/theme": "^14.0.0",
|
|
50
|
-
"@atlaskit/tokens": "^2.
|
|
50
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
53
53
|
"bind-event-listener": "^3.0.0",
|
|
54
54
|
"exenv": "^1.2.2",
|
|
55
55
|
"react-focus-lock": "^2.9.5",
|
|
56
|
-
"react-focus-lock-next": "npm:react-focus-lock@^2.13.2",
|
|
57
56
|
"react-scrolllock": "^5.0.1",
|
|
58
57
|
"tiny-invariant": "^1.2.0",
|
|
59
58
|
"use-callback-ref": "^1.2.3"
|
|
@@ -78,9 +77,6 @@
|
|
|
78
77
|
"wait-for-expect": "^1.2.0"
|
|
79
78
|
},
|
|
80
79
|
"platform-feature-flags": {
|
|
81
|
-
"platform_dst_drawer-bump-react-focus-lock": {
|
|
82
|
-
"type": "boolean"
|
|
83
|
-
},
|
|
84
80
|
"platform-visual-refresh-icon-ads-migration": {
|
|
85
81
|
"type": "boolean"
|
|
86
82
|
}
|