@atlaskit/atlassian-navigation 4.9.1 → 4.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,13 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 4.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167483](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167483)
8
+ [`2dd22b00bedaa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2dd22b00bedaa) -
9
+ Add props for handling server rendered components and data-vc
10
+
3
11
  ## 4.9.1
4
12
 
5
13
  ### Patch Changes
@@ -85,7 +85,9 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
85
85
  moreLabel = _props$moreLabel === void 0 ? '…' : _props$moreLabel,
86
86
  _props$theme = props.theme,
87
87
  theme = _props$theme === void 0 ? _theme.defaultTheme : _props$theme,
88
- testId = props.testId;
88
+ testId = props.testId,
89
+ _props$isServer = props.isServer,
90
+ isServer = _props$isServer === void 0 ? false : _props$isServer;
89
91
  return (0, _react.jsx)(_theme.ThemeProvider, {
90
92
  value: theme
91
93
  }, (0, _react.jsx)(_analyticsNamespacedContext.NavigationAnalyticsContext, {
@@ -96,7 +98,7 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
96
98
  css: containerStyles,
97
99
  "data-testid": testId && "".concat(testId, "-header"),
98
100
  role: "banner",
99
- "data-vc": "atlassian-navigation"
101
+ "data-vc": "atlassian-navigation".concat(isServer ? '-ssr' : '')
100
102
  }, (0, _react.jsx)("nav", {
101
103
  css: leftStyles,
102
104
  "aria-label": label
@@ -76,7 +76,8 @@ export const AtlassianNavigation = props => {
76
76
  renderSettings: Settings,
77
77
  moreLabel = '…',
78
78
  theme = defaultTheme,
79
- testId
79
+ testId,
80
+ isServer = false
80
81
  } = props;
81
82
  return jsx(ThemeProvider, {
82
83
  value: theme
@@ -88,7 +89,7 @@ export const AtlassianNavigation = props => {
88
89
  css: containerStyles,
89
90
  "data-testid": testId && `${testId}-header`,
90
91
  role: "banner",
91
- "data-vc": "atlassian-navigation"
92
+ "data-vc": `atlassian-navigation${isServer ? '-ssr' : ''}`
92
93
  }, jsx("nav", {
93
94
  css: leftStyles,
94
95
  "aria-label": label
@@ -78,7 +78,9 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
78
78
  moreLabel = _props$moreLabel === void 0 ? '…' : _props$moreLabel,
79
79
  _props$theme = props.theme,
80
80
  theme = _props$theme === void 0 ? defaultTheme : _props$theme,
81
- testId = props.testId;
81
+ testId = props.testId,
82
+ _props$isServer = props.isServer,
83
+ isServer = _props$isServer === void 0 ? false : _props$isServer;
82
84
  return jsx(ThemeProvider, {
83
85
  value: theme
84
86
  }, jsx(NavigationAnalyticsContext, {
@@ -89,7 +91,7 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
89
91
  css: containerStyles,
90
92
  "data-testid": testId && "".concat(testId, "-header"),
91
93
  role: "banner",
92
- "data-vc": "atlassian-navigation"
94
+ "data-vc": "atlassian-navigation".concat(isServer ? '-ssr' : '')
93
95
  }, jsx("nav", {
94
96
  css: leftStyles,
95
97
  "aria-label": label
@@ -68,6 +68,10 @@ export interface AtlassianNavigationProps {
68
68
  - Overflow menu button - `{testId}-overflow-menu-trigger`
69
69
  */
70
70
  testId?: string;
71
+ /**
72
+ * Whether nav is rendered on the server.
73
+ */
74
+ isServer?: boolean;
71
75
  }
72
76
  export interface NavigationSkeletonProps {
73
77
  /**
@@ -68,6 +68,10 @@ export interface AtlassianNavigationProps {
68
68
  - Overflow menu button - `{testId}-overflow-menu-trigger`
69
69
  */
70
70
  testId?: string;
71
+ /**
72
+ * Whether nav is rendered on the server.
73
+ */
74
+ isServer?: boolean;
71
75
  }
72
76
  export interface NavigationSkeletonProps {
73
77
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,11 @@
36
36
  "team": "Design System Team",
37
37
  "website": {
38
38
  "name": "Atlassian navigation",
39
- "category": "Components"
39
+ "category": "Components",
40
+ "status": {
41
+ "type": "intent-to-deprecate",
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)"
43
+ }
40
44
  },
41
45
  "runReact18": true
42
46
  },
@@ -44,13 +48,13 @@
44
48
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
45
49
  "@atlaskit/button": "^20.3.0",
46
50
  "@atlaskit/ds-lib": "^3.2.0",
47
- "@atlaskit/icon": "^22.24.0",
51
+ "@atlaskit/icon": "^22.25.0",
48
52
  "@atlaskit/logo": "*",
49
53
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
54
  "@atlaskit/popup": "^1.29.0",
51
55
  "@atlaskit/primitives": "^13.2.0",
52
56
  "@atlaskit/theme": "^14.0.0",
53
- "@atlaskit/tokens": "^2.2.0",
57
+ "@atlaskit/tokens": "^2.3.0",
54
58
  "@atlaskit/tooltip": "^18.9.0",
55
59
  "@atlaskit/width-detector": "^4.3.0",
56
60
  "@babel/runtime": "^7.0.0",