@atlaskit/popup 9.0.0 → 9.0.1
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,14 @@
|
|
|
1
1
|
# @atlaskit/popup
|
|
2
2
|
|
|
3
|
+
## 9.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`edd874d160803`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/edd874d160803) -
|
|
8
|
+
Updated popup's focus trap fix made behind "platform_dst-popup-trigger-initial-focus-ref" to be
|
|
9
|
+
behind a second "platform-dst-popup-trigger-focus-fix" feature gate to coordinate rollout to all
|
|
10
|
+
consumers.
|
|
11
|
+
|
|
3
12
|
## 9.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
|
@@ -61,7 +61,7 @@ var useFocusManager = exports.useFocusManager = function useFocusManager(_ref) {
|
|
|
61
61
|
return function () {
|
|
62
62
|
cancelAllFrames();
|
|
63
63
|
focusTrap.deactivate();
|
|
64
|
-
if ((0, _fg.fg)('platform_dst-popup-trigger-initial-focus-ref') && shouldReturnFocus) {
|
|
64
|
+
if (((0, _fg.fg)('platform-dst-popup-trigger-focus-fix') || (0, _fg.fg)('platform_dst-popup-trigger-initial-focus-ref')) && shouldReturnFocus) {
|
|
65
65
|
requestFrame(function () {
|
|
66
66
|
if (triggerRef !== null && triggerRef !== void 0 && triggerRef.isConnected && (document.activeElement === document.body || document.activeElement === document.documentElement || !document.activeElement)) {
|
|
67
67
|
triggerRef.focus();
|
|
@@ -57,7 +57,7 @@ export const useFocusManager = ({
|
|
|
57
57
|
return () => {
|
|
58
58
|
cancelAllFrames();
|
|
59
59
|
focusTrap.deactivate();
|
|
60
|
-
if (fg('platform_dst-popup-trigger-initial-focus-ref') && shouldReturnFocus) {
|
|
60
|
+
if ((fg('platform-dst-popup-trigger-focus-fix') || fg('platform_dst-popup-trigger-initial-focus-ref')) && shouldReturnFocus) {
|
|
61
61
|
requestFrame(() => {
|
|
62
62
|
if (triggerRef !== null && triggerRef !== void 0 && triggerRef.isConnected && (document.activeElement === document.body || document.activeElement === document.documentElement || !document.activeElement)) {
|
|
63
63
|
triggerRef.focus();
|
|
@@ -54,7 +54,7 @@ export var useFocusManager = function useFocusManager(_ref) {
|
|
|
54
54
|
return function () {
|
|
55
55
|
cancelAllFrames();
|
|
56
56
|
focusTrap.deactivate();
|
|
57
|
-
if (fg('platform_dst-popup-trigger-initial-focus-ref') && shouldReturnFocus) {
|
|
57
|
+
if ((fg('platform-dst-popup-trigger-focus-fix') || fg('platform_dst-popup-trigger-initial-focus-ref')) && shouldReturnFocus) {
|
|
58
58
|
requestFrame(function () {
|
|
59
59
|
if (triggerRef !== null && triggerRef !== void 0 && triggerRef.isConnected && (document.activeElement === document.body || document.activeElement === document.documentElement || !document.activeElement)) {
|
|
60
60
|
triggerRef.focus();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "A popup displays brief content in an overlay.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@atlaskit/css": "^1.1.0",
|
|
38
38
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
39
39
|
"@atlaskit/layering": "^6.0.0",
|
|
40
|
-
"@atlaskit/motion": "^9.
|
|
40
|
+
"@atlaskit/motion": "^9.3.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
42
42
|
"@atlaskit/popper": "^9.4.0",
|
|
43
43
|
"@atlaskit/portal": "^7.0.0",
|
|
44
44
|
"@atlaskit/primitives": "^22.5.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^20.
|
|
47
|
-
"@atlaskit/top-layer": "^6.
|
|
46
|
+
"@atlaskit/tokens": "^20.3.0",
|
|
47
|
+
"@atlaskit/top-layer": "^6.2.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@compiled/react": "^1.0.2",
|
|
50
50
|
"bind-event-listener": "^3.0.0",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"@atlaskit/banner": "^15.3.0",
|
|
64
64
|
"@atlaskit/button": "^25.4.0",
|
|
65
65
|
"@atlaskit/code": "^20.0.0",
|
|
66
|
-
"@atlaskit/datetime-picker": "^19.
|
|
66
|
+
"@atlaskit/datetime-picker": "^19.3.0",
|
|
67
67
|
"@atlaskit/docs": "^12.3.0",
|
|
68
68
|
"@atlaskit/dropdown-menu": "^21.0.0",
|
|
69
|
-
"@atlaskit/form": "^18.
|
|
69
|
+
"@atlaskit/form": "^18.2.0",
|
|
70
70
|
"@atlaskit/heading": "^8.0.0",
|
|
71
71
|
"@atlaskit/icon": "^38.0.0",
|
|
72
72
|
"@atlaskit/link": "^5.1.0",
|
|
@@ -122,6 +122,9 @@
|
|
|
122
122
|
"platform_dst-popup-trigger-initial-focus-ref": {
|
|
123
123
|
"type": "boolean"
|
|
124
124
|
},
|
|
125
|
+
"platform-dst-popup-trigger-focus-fix": {
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
125
128
|
"platform_dst_popup_media_query_perf_fix": {
|
|
126
129
|
"type": "boolean"
|
|
127
130
|
}
|