@atlaskit/navigation-system 5.9.0 → 5.9.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 5.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.9.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8ced6a00eae26`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8ced6a00eae26) -
14
+ Improving internal types of menu item component.
15
+
16
+ Enhanced ref handling in MenuItemBase to work better with the updated mergeRefs utility, providing
17
+ improved TypeScript compatibility.
18
+
19
+ - [`ab9386b25161d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab9386b25161d) -
20
+ Fixed bug where toggle button click was still using the old full height sidebar feature gate to
21
+ close layers
22
+ - Updated dependencies
23
+
3
24
  ## 5.9.0
4
25
 
5
26
  ### Minor Changes
@@ -119,10 +119,10 @@ var SideNavToggleButton = exports.SideNavToggleButton = function SideNavToggleBu
119
119
  isSideNavVisible: isSideNavExpanded
120
120
  });
121
121
  toggleVisibility();
122
- if ((0, _platformFeatureFlags.fg)('navx-full-height-sidebar')) {
122
+ if (isFhsEnabled) {
123
123
  openLayerObserver === null || openLayerObserver === void 0 || openLayerObserver.closeLayers();
124
124
  }
125
- }, [onClick, isSideNavExpanded, toggleVisibility, openLayerObserver]);
125
+ }, [isFhsEnabled, isSideNavExpanded, onClick, openLayerObserver, toggleVisibility]);
126
126
  var handlePointerEnter = (0, _react.useCallback)(function () {
127
127
  if (!(0, _platformFeatureFlags.fg)('platform_dst_nav4_fhs_instrumentation_1')) {
128
128
  return;
@@ -103,10 +103,10 @@ export const SideNavToggleButton = ({
103
103
  isSideNavVisible: isSideNavExpanded
104
104
  });
105
105
  toggleVisibility();
106
- if (fg('navx-full-height-sidebar')) {
106
+ if (isFhsEnabled) {
107
107
  openLayerObserver === null || openLayerObserver === void 0 ? void 0 : openLayerObserver.closeLayers();
108
108
  }
109
- }, [onClick, isSideNavExpanded, toggleVisibility, openLayerObserver]);
109
+ }, [isFhsEnabled, isSideNavExpanded, onClick, openLayerObserver, toggleVisibility]);
110
110
  const handlePointerEnter = useCallback(() => {
111
111
  if (!fg('platform_dst_nav4_fhs_instrumentation_1')) {
112
112
  return;
@@ -110,10 +110,10 @@ export var SideNavToggleButton = function SideNavToggleButton(_ref) {
110
110
  isSideNavVisible: isSideNavExpanded
111
111
  });
112
112
  toggleVisibility();
113
- if (fg('navx-full-height-sidebar')) {
113
+ if (isFhsEnabled) {
114
114
  openLayerObserver === null || openLayerObserver === void 0 || openLayerObserver.closeLayers();
115
115
  }
116
- }, [onClick, isSideNavExpanded, toggleVisibility, openLayerObserver]);
116
+ }, [isFhsEnabled, isSideNavExpanded, onClick, openLayerObserver, toggleVisibility]);
117
117
  var handlePointerEnter = useCallback(function () {
118
118
  if (!fg('platform_dst_nav4_fhs_instrumentation_1')) {
119
119
  return;
@@ -12,6 +12,6 @@ import React from 'react';
12
12
  * State is required as opposed to just a ref so that the effects in the side nav can react to the element actually being mounted,
13
13
  * as ref values cannot be added as effect dependencies.
14
14
  */
15
- export declare const TopNavStartProvider: ({ children }: {
15
+ export declare const TopNavStartProvider: ({ children, }: {
16
16
  children: React.ReactNode;
17
17
  }) => React.JSX.Element;
@@ -4,7 +4,7 @@ import React, { type PropsWithChildren } from 'react';
4
4
  *
5
5
  * Used to provide a custom value for is FHS enabled.
6
6
  */
7
- export declare const IsFhsEnabledProvider: ({ children, value }: IsFhsEnabledProviderProps) => React.JSX.Element;
7
+ export declare const IsFhsEnabledProvider: ({ children, value, }: IsFhsEnabledProviderProps) => React.JSX.Element;
8
8
  export type IsFhsEnabledProviderProps = PropsWithChildren<{
9
9
  value: boolean;
10
10
  }>;
@@ -12,6 +12,6 @@ import React from 'react';
12
12
  * State is required as opposed to just a ref so that the effects in the side nav can react the element actually being mounted,
13
13
  * as ref values cannot be added as effect dependencies.
14
14
  */
15
- export declare const SideNavToggleButtonProvider: ({ children }: {
15
+ export declare const SideNavToggleButtonProvider: ({ children, }: {
16
16
  children: React.ReactNode;
17
17
  }) => React.JSX.Element;
@@ -12,6 +12,6 @@ import React from 'react';
12
12
  * State is required as opposed to just a ref so that the effects in the side nav can react to the element actually being mounted,
13
13
  * as ref values cannot be added as effect dependencies.
14
14
  */
15
- export declare const TopNavStartProvider: ({ children }: {
15
+ export declare const TopNavStartProvider: ({ children, }: {
16
16
  children: React.ReactNode;
17
17
  }) => React.JSX.Element;
@@ -4,7 +4,7 @@ import React, { type PropsWithChildren } from 'react';
4
4
  *
5
5
  * Used to provide a custom value for is FHS enabled.
6
6
  */
7
- export declare const IsFhsEnabledProvider: ({ children, value }: IsFhsEnabledProviderProps) => React.JSX.Element;
7
+ export declare const IsFhsEnabledProvider: ({ children, value, }: IsFhsEnabledProviderProps) => React.JSX.Element;
8
8
  export type IsFhsEnabledProviderProps = PropsWithChildren<{
9
9
  value: boolean;
10
10
  }>;
@@ -12,6 +12,6 @@ import React from 'react';
12
12
  * State is required as opposed to just a ref so that the effects in the side nav can react the element actually being mounted,
13
13
  * as ref values cannot be added as effect dependencies.
14
14
  */
15
- export declare const SideNavToggleButtonProvider: ({ children }: {
15
+ export declare const SideNavToggleButtonProvider: ({ children, }: {
16
16
  children: React.ReactNode;
17
17
  }) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "5.9.0",
3
+ "version": "5.9.2",
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",
@@ -69,8 +69,8 @@
69
69
  "@atlaskit/analytics-next": "^11.1.0",
70
70
  "@atlaskit/avatar": "^25.5.0",
71
71
  "@atlaskit/button": "^23.6.0",
72
- "@atlaskit/css": "^0.16.0",
73
- "@atlaskit/ds-lib": "^5.2.0",
72
+ "@atlaskit/css": "^0.17.0",
73
+ "@atlaskit/ds-lib": "^5.3.0",
74
74
  "@atlaskit/icon": "^29.0.0",
75
75
  "@atlaskit/layering": "^3.4.0",
76
76
  "@atlaskit/logo": "^19.9.0",
@@ -79,8 +79,8 @@
79
79
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
80
80
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
81
81
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
82
- "@atlaskit/primitives": "^16.2.0",
83
- "@atlaskit/tokens": "^8.1.0",
82
+ "@atlaskit/primitives": "^16.3.0",
83
+ "@atlaskit/tokens": "^8.3.0",
84
84
  "@atlaskit/tooltip": "^20.10.0",
85
85
  "@atlaskit/visually-hidden": "^3.0.0",
86
86
  "@babel/runtime": "^7.0.0",
@@ -102,7 +102,7 @@
102
102
  "@atlaskit/banner": "^14.0.0",
103
103
  "@atlaskit/breadcrumbs": "^15.3.0",
104
104
  "@atlaskit/dropdown-menu": "^16.3.0",
105
- "@atlaskit/form": "^14.2.0",
105
+ "@atlaskit/form": "^14.3.0",
106
106
  "@atlaskit/heading": "^5.2.0",
107
107
  "@atlaskit/link": "^3.2.0",
108
108
  "@atlaskit/lozenge": "^13.1.0",