@atlaskit/atlassian-navigation 4.9.2 → 4.9.3
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,13 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 4.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#168160](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168160)
|
|
8
|
+
[`5c96046203b6f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c96046203b6f) -
|
|
9
|
+
Tag top and side navigation components for SSR placeholder replacement
|
|
10
|
+
|
|
3
11
|
## 4.9.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = exports.AtlassianNavigation = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
9
|
var _react = require("@emotion/react");
|
|
8
10
|
var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
13
|
var _constants = require("../../common/constants");
|
|
11
14
|
var _theme = require("../../theme");
|
|
@@ -92,14 +95,18 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
|
|
|
92
95
|
value: theme
|
|
93
96
|
}, (0, _react.jsx)(_analyticsNamespacedContext.NavigationAnalyticsContext, {
|
|
94
97
|
data: analyticsData
|
|
95
|
-
}, (0, _react.jsx)("header", {
|
|
98
|
+
}, (0, _react.jsx)("header", (0, _extends2.default)({
|
|
96
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
97
100
|
style: theme.mode.navigation,
|
|
98
101
|
css: containerStyles,
|
|
99
102
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
100
103
|
role: "banner",
|
|
101
104
|
"data-vc": "atlassian-navigation".concat(isServer ? '-ssr' : '')
|
|
102
|
-
}, (0,
|
|
105
|
+
}, isServer && (0, _platformFeatureFlags.fg)('add_ssr_placeholder_replacements_to_nin_and_nav') && {
|
|
106
|
+
'data-ssr-placeholder': 'atlassian-navigation-placeholder'
|
|
107
|
+
}, !isServer && (0, _platformFeatureFlags.fg)('add_ssr_placeholder_replacements_to_nin_and_nav') && {
|
|
108
|
+
'data-ssr-placeholder-replace': 'atlassian-navigation-placeholder'
|
|
109
|
+
}), (0, _react.jsx)("nav", {
|
|
103
110
|
css: leftStyles,
|
|
104
111
|
"aria-label": label
|
|
105
112
|
}, AppSwitcher && (0, _react.jsx)(AppSwitcher, null), ProductHome && (0, _react.jsx)(ProductHome, null), (0, _react.jsx)(_PrimaryItemsContainer.PrimaryItemsContainer, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
@@ -5,6 +6,7 @@
|
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
7
|
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { N30 } from '@atlaskit/theme/colors';
|
|
9
11
|
import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
10
12
|
import { defaultTheme, ThemeProvider } from '../../theme';
|
|
@@ -83,14 +85,18 @@ export const AtlassianNavigation = props => {
|
|
|
83
85
|
value: theme
|
|
84
86
|
}, jsx(NavigationAnalyticsContext, {
|
|
85
87
|
data: analyticsData
|
|
86
|
-
}, jsx("header", {
|
|
88
|
+
}, jsx("header", _extends({
|
|
87
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
88
90
|
style: theme.mode.navigation,
|
|
89
91
|
css: containerStyles,
|
|
90
92
|
"data-testid": testId && `${testId}-header`,
|
|
91
93
|
role: "banner",
|
|
92
94
|
"data-vc": `atlassian-navigation${isServer ? '-ssr' : ''}`
|
|
93
|
-
},
|
|
95
|
+
}, isServer && fg('add_ssr_placeholder_replacements_to_nin_and_nav') && {
|
|
96
|
+
'data-ssr-placeholder': 'atlassian-navigation-placeholder'
|
|
97
|
+
}, !isServer && fg('add_ssr_placeholder_replacements_to_nin_and_nav') && {
|
|
98
|
+
'data-ssr-placeholder-replace': 'atlassian-navigation-placeholder'
|
|
99
|
+
}), jsx("nav", {
|
|
94
100
|
css: leftStyles,
|
|
95
101
|
"aria-label": label
|
|
96
102
|
}, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), jsx(PrimaryItemsContainer, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
@@ -5,6 +6,7 @@
|
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
7
|
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { N30 } from '@atlaskit/theme/colors';
|
|
9
11
|
import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
10
12
|
import { defaultTheme, ThemeProvider } from '../../theme';
|
|
@@ -85,14 +87,18 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
|
|
|
85
87
|
value: theme
|
|
86
88
|
}, jsx(NavigationAnalyticsContext, {
|
|
87
89
|
data: analyticsData
|
|
88
|
-
}, jsx("header", {
|
|
90
|
+
}, jsx("header", _extends({
|
|
89
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
90
92
|
style: theme.mode.navigation,
|
|
91
93
|
css: containerStyles,
|
|
92
94
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
93
95
|
role: "banner",
|
|
94
96
|
"data-vc": "atlassian-navigation".concat(isServer ? '-ssr' : '')
|
|
95
|
-
},
|
|
97
|
+
}, isServer && fg('add_ssr_placeholder_replacements_to_nin_and_nav') && {
|
|
98
|
+
'data-ssr-placeholder': 'atlassian-navigation-placeholder'
|
|
99
|
+
}, !isServer && fg('add_ssr_placeholder_replacements_to_nin_and_nav') && {
|
|
100
|
+
'data-ssr-placeholder-replace': 'atlassian-navigation-placeholder'
|
|
101
|
+
}), jsx("nav", {
|
|
96
102
|
css: leftStyles,
|
|
97
103
|
"aria-label": label
|
|
98
104
|
}, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), jsx(PrimaryItemsContainer, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.3",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"team": "Design System Team",
|
|
37
37
|
"website": {
|
|
38
38
|
"name": "Atlassian navigation",
|
|
39
|
-
"category": "
|
|
39
|
+
"category": "Navigation",
|
|
40
40
|
"status": {
|
|
41
41
|
"type": "intent-to-deprecate",
|
|
42
42
|
"description": "We are in the process of building a new top navigation component: [@atlassian/navigation-system](https://staging.atlassian.design/components/navigation-system/top-navigation/examples) (For Atlassian employees only at this stage)"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
49
49
|
"@atlaskit/button": "^20.3.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^3.2.0",
|
|
51
|
-
"@atlaskit/icon": "^22.
|
|
51
|
+
"@atlaskit/icon": "^22.26.0",
|
|
52
52
|
"@atlaskit/logo": "*",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
54
54
|
"@atlaskit/popup": "^1.29.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@af/accessibility-testing": "*",
|
|
70
70
|
"@af/visual-regression": "*",
|
|
71
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
71
|
+
"@atlaskit/dropdown-menu": "^12.23.0",
|
|
72
72
|
"@atlaskit/notification-indicator": "*",
|
|
73
73
|
"@atlaskit/notification-log-client": "*",
|
|
74
74
|
"@atlaskit/visual-regression": "*",
|
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
"platform-feature-flags": {
|
|
107
107
|
"platform-component-visual-refresh": {
|
|
108
108
|
"type": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"add_ssr_placeholder_replacements_to_nin_and_nav": {
|
|
111
|
+
"type": "boolean"
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
}
|