@atlaskit/navigation-system 5.3.4 → 5.4.0
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 +15 -0
- package/dist/cjs/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -3
- package/dist/es2019/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -3
- package/dist/esm/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -3
- package/dist/types/ui/page-layout/root.d.ts +1 -2
- package/dist/types-ts4.5/ui/page-layout/root.d.ts +1 -2
- package/package.json +5 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`05dd9b7db95b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05dd9b7db95b7) -
|
|
8
|
+
The built-in keyboard shortcut for toggling the side nav will check if there are any open modals
|
|
9
|
+
and ignore the shortcut if there are.
|
|
10
|
+
|
|
11
|
+
This check was previously behind the feature gate `platform-dst-open-layer-observer-layer-type`,
|
|
12
|
+
which has now been removed.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 5.3.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -45,10 +45,8 @@ function useSideNavToggleKeyboardShortcut(_ref) {
|
|
|
45
45
|
}
|
|
46
46
|
if (openLayerObserver.getCount({
|
|
47
47
|
type: 'modal'
|
|
48
|
-
}) > 0
|
|
48
|
+
}) > 0) {
|
|
49
49
|
// Return early if there are any open modals
|
|
50
|
-
// This check is behind the layer type FG, as `getCount` will return the count of all layers when
|
|
51
|
-
// the FG is disabled - meaning we would ignore the shortcut if there is any open layer (not just modals).
|
|
52
50
|
return;
|
|
53
51
|
}
|
|
54
52
|
toggleVisibilityByShortcut();
|
|
@@ -40,10 +40,8 @@ export function useSideNavToggleKeyboardShortcut({
|
|
|
40
40
|
}
|
|
41
41
|
if (openLayerObserver.getCount({
|
|
42
42
|
type: 'modal'
|
|
43
|
-
}) > 0
|
|
43
|
+
}) > 0) {
|
|
44
44
|
// Return early if there are any open modals
|
|
45
|
-
// This check is behind the layer type FG, as `getCount` will return the count of all layers when
|
|
46
|
-
// the FG is disabled - meaning we would ignore the shortcut if there is any open layer (not just modals).
|
|
47
45
|
return;
|
|
48
46
|
}
|
|
49
47
|
toggleVisibilityByShortcut();
|
|
@@ -39,10 +39,8 @@ export function useSideNavToggleKeyboardShortcut(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
if (openLayerObserver.getCount({
|
|
41
41
|
type: 'modal'
|
|
42
|
-
}) > 0
|
|
42
|
+
}) > 0) {
|
|
43
43
|
// Return early if there are any open modals
|
|
44
|
-
// This check is behind the layer type FG, as `getCount` will return the count of all layers when
|
|
45
|
-
// the FG is disabled - meaning we would ignore the shortcut if there is any open layer (not just modals).
|
|
46
44
|
return;
|
|
47
45
|
}
|
|
48
46
|
toggleVisibilityByShortcut();
|
|
@@ -55,8 +55,7 @@ export declare function Root({ children, xcss, UNSAFE_dangerouslyHoistSlotSizes,
|
|
|
55
55
|
*
|
|
56
56
|
* The shortcut is not enabled by default.
|
|
57
57
|
*
|
|
58
|
-
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
59
|
-
* the `platform-dst-open-layer-observer-layer-type` feature flag.
|
|
58
|
+
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
60
59
|
*
|
|
61
60
|
* `SideNav` has another prop `canToggleWithShortcut()` that can be used to run additional checks after the shortcut
|
|
62
61
|
* is pressed, before the SideNav is toggled. You can use this to conditionally disable the shortcut based on your
|
|
@@ -55,8 +55,7 @@ export declare function Root({ children, xcss, UNSAFE_dangerouslyHoistSlotSizes,
|
|
|
55
55
|
*
|
|
56
56
|
* The shortcut is not enabled by default.
|
|
57
57
|
*
|
|
58
|
-
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
59
|
-
* the `platform-dst-open-layer-observer-layer-type` feature flag.
|
|
58
|
+
* The shortcut will also be ignored if there are any open ADS modal dialogs (`@atlaskit/modal-dialog`).
|
|
60
59
|
*
|
|
61
60
|
* `SideNav` has another prop `canToggleWithShortcut()` that can be used to run additional checks after the shortcut
|
|
62
61
|
* is pressed, before the SideNav is toggled. You can use this to conditionally disable the shortcut based on your
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/css": "^0.15.0",
|
|
73
73
|
"@atlaskit/ds-lib": "^5.2.0",
|
|
74
74
|
"@atlaskit/icon": "^29.0.0",
|
|
75
|
-
"@atlaskit/layering": "^3.
|
|
75
|
+
"@atlaskit/layering": "^3.3.0",
|
|
76
76
|
"@atlaskit/logo": "^19.9.0",
|
|
77
77
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
78
78
|
"@atlaskit/popup": "^4.6.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/link": "^3.2.0",
|
|
108
108
|
"@atlaskit/lozenge": "^13.1.0",
|
|
109
109
|
"@atlaskit/menu": "^8.4.0",
|
|
110
|
-
"@atlaskit/modal-dialog": "^14.
|
|
110
|
+
"@atlaskit/modal-dialog": "^14.7.0",
|
|
111
111
|
"@atlaskit/onboarding": "^14.4.0",
|
|
112
112
|
"@atlaskit/page-header": "^12.1.0",
|
|
113
113
|
"@atlaskit/page-layout": "^4.2.0",
|
|
@@ -117,8 +117,9 @@
|
|
|
117
117
|
"@atlaskit/textfield": "^8.0.0",
|
|
118
118
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
119
119
|
"@atlassian/gemini": "^1.20.0",
|
|
120
|
-
"@atlassian/search-dialog": "^9.
|
|
120
|
+
"@atlassian/search-dialog": "^9.9.0",
|
|
121
121
|
"@atlassian/ssr-tests": "workspace:^",
|
|
122
|
+
"@atlassian/test-utils": "^1.0.0",
|
|
122
123
|
"@atlassian/testing-library": "^0.4.0",
|
|
123
124
|
"@axe-core/playwright": "^4.8.0",
|
|
124
125
|
"@testing-library/react": "^13.4.0",
|
|
@@ -184,9 +185,6 @@
|
|
|
184
185
|
"platform_dst_side_nav_remove_custom_tooltip": {
|
|
185
186
|
"type": "boolean"
|
|
186
187
|
},
|
|
187
|
-
"platform-dst-open-layer-observer-layer-type": {
|
|
188
|
-
"type": "boolean"
|
|
189
|
-
},
|
|
190
188
|
"platform_themed_button_use_icon_renderer": {
|
|
191
189
|
"type": "boolean"
|
|
192
190
|
},
|