@atlaskit/navigation-system 6.2.0 → 6.3.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 6.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1db8c4b3de440`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1db8c4b3de440) -
|
|
8
|
+
Allows an optional sideNavContentRef to be passed into GSN from the usage parent.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 6.2.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`394b61e0b5b80`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/394b61e0b5b80) -
|
|
19
|
+
delay browser detection to when component is actually rendered
|
|
20
|
+
|
|
3
21
|
## 6.2.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -162,6 +162,9 @@ function TopNavStart(_ref3) {
|
|
|
162
162
|
var children = _ref3.children,
|
|
163
163
|
testId = _ref3.testId,
|
|
164
164
|
sideNavToggleButton = _ref3.sideNavToggleButton;
|
|
165
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_topnavstart_delay_browser_check')) {
|
|
166
|
+
isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
167
|
+
}
|
|
165
168
|
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
166
169
|
var ref = (0, _react.useContext)(_topNavStartContext.TopNavStartAttachRef);
|
|
167
170
|
var elementRef = (0, _react.useRef)(null);
|
|
@@ -19,7 +19,7 @@ import { SideNavVisibilityState } from '../side-nav/visibility-context';
|
|
|
19
19
|
* CSS at-rules when at-rules are nested: https://github.com/atlassian-labs/compiled/blob/e04a325915e1d13010205089e4915de0e53bc2d4/packages/css/src/plugins/merge-duplicate-at-rules.ts#L5
|
|
20
20
|
* Avoiding nesting the `@supports` at-rule inside of `@media` means Compiled can remove duplicate styles from the generated CSS.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
let isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
23
23
|
|
|
24
24
|
// Placed in a variable, as the value is used in the translateX value for the children wrapper animation.
|
|
25
25
|
const flexGap = "var(--ds-space-050, 4px)";
|
|
@@ -157,6 +157,9 @@ export function TopNavStart({
|
|
|
157
157
|
testId,
|
|
158
158
|
sideNavToggleButton
|
|
159
159
|
}) {
|
|
160
|
+
if (fg('platform_editor_topnavstart_delay_browser_check')) {
|
|
161
|
+
isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
162
|
+
}
|
|
160
163
|
const isFhsEnabled = useIsFhsEnabled();
|
|
161
164
|
const ref = useContext(TopNavStartAttachRef);
|
|
162
165
|
const elementRef = useRef(null);
|
|
@@ -154,6 +154,9 @@ export function TopNavStart(_ref3) {
|
|
|
154
154
|
var children = _ref3.children,
|
|
155
155
|
testId = _ref3.testId,
|
|
156
156
|
sideNavToggleButton = _ref3.sideNavToggleButton;
|
|
157
|
+
if (fg('platform_editor_topnavstart_delay_browser_check')) {
|
|
158
|
+
isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
159
|
+
}
|
|
157
160
|
var isFhsEnabled = useIsFhsEnabled();
|
|
158
161
|
var ref = useContext(TopNavStartAttachRef);
|
|
159
162
|
var elementRef = useRef(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.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",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/button": "^23.10.0",
|
|
69
69
|
"@atlaskit/css": "^0.19.0",
|
|
70
70
|
"@atlaskit/ds-lib": "^6.0.0",
|
|
71
|
-
"@atlaskit/icon": "^32.
|
|
71
|
+
"@atlaskit/icon": "^32.1.0",
|
|
72
72
|
"@atlaskit/layering": "^3.6.0",
|
|
73
73
|
"@atlaskit/logo": "^19.10.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@atlaskit/badge": "^18.4.0",
|
|
98
98
|
"@atlaskit/banner": "^14.0.0",
|
|
99
99
|
"@atlaskit/breadcrumbs": "^15.3.0",
|
|
100
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
100
|
+
"@atlaskit/dropdown-menu": "^16.7.0",
|
|
101
101
|
"@atlaskit/form": "^15.4.0",
|
|
102
102
|
"@atlaskit/heading": "^5.3.0",
|
|
103
103
|
"@atlaskit/link": "^3.3.0",
|
|
@@ -180,6 +180,9 @@
|
|
|
180
180
|
},
|
|
181
181
|
"platform_dst_nav4_flyout_menu_slots_close_button": {
|
|
182
182
|
"type": "boolean"
|
|
183
|
+
},
|
|
184
|
+
"platform_editor_topnavstart_delay_browser_check": {
|
|
185
|
+
"type": "boolean"
|
|
183
186
|
}
|
|
184
187
|
},
|
|
185
188
|
"homepage": "https://atlassian.design/components/navigation-system"
|