@atlaskit/atlassian-navigation 4.9.0 → 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 +16 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +4 -2
- package/dist/es2019/components/AtlassianNavigation/index.js +3 -2
- package/dist/esm/components/AtlassianNavigation/index.js +4 -2
- package/dist/types/components/AtlassianNavigation/types.d.ts +4 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +4 -0
- package/package.json +11 -5
- package/skeleton/package.json +3 -1
- package/skeleton-help-button/package.json +3 -1
- package/skeleton-notification-button/package.json +3 -1
- package/skeleton-settings-button/package.json +3 -1
- package/skeleton-switcher-button/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
11
|
+
## 4.9.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#165531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165531)
|
|
16
|
+
[`57f451bda8919`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f451bda8919) -
|
|
17
|
+
Adds side-effect config to support Compiled css extraction in third-party apps
|
|
18
|
+
|
|
3
19
|
## 4.9.0
|
|
4
20
|
|
|
5
21
|
### Minor 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":
|
|
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.
|
|
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/"
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"sideEffects":
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.compiled.css"
|
|
25
|
+
],
|
|
24
26
|
"atlaskit:src": "src/index.tsx",
|
|
25
27
|
"af:exports": {
|
|
26
28
|
".": "./src/index.tsx",
|
|
@@ -34,7 +36,11 @@
|
|
|
34
36
|
"team": "Design System Team",
|
|
35
37
|
"website": {
|
|
36
38
|
"name": "Atlassian navigation",
|
|
37
|
-
"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
|
+
}
|
|
38
44
|
},
|
|
39
45
|
"runReact18": true
|
|
40
46
|
},
|
|
@@ -42,13 +48,13 @@
|
|
|
42
48
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
43
49
|
"@atlaskit/button": "^20.3.0",
|
|
44
50
|
"@atlaskit/ds-lib": "^3.2.0",
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
51
|
+
"@atlaskit/icon": "^22.25.0",
|
|
46
52
|
"@atlaskit/logo": "*",
|
|
47
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
48
54
|
"@atlaskit/popup": "^1.29.0",
|
|
49
55
|
"@atlaskit/primitives": "^13.2.0",
|
|
50
56
|
"@atlaskit/theme": "^14.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^2.
|
|
57
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
52
58
|
"@atlaskit/tooltip": "^18.9.0",
|
|
53
59
|
"@atlaskit/width-detector": "^4.3.0",
|
|
54
60
|
"@babel/runtime": "^7.0.0",
|
package/skeleton/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/skeleton.js",
|
|
4
4
|
"module": "../dist/esm/skeleton.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/skeleton.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/skeleton.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/skeleton-help-button.js",
|
|
4
4
|
"module": "../dist/esm/skeleton-help-button.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/skeleton-help-button.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/skeleton-help-button.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/skeleton-notification-button.js",
|
|
4
4
|
"module": "../dist/esm/skeleton-notification-button.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/skeleton-notification-button.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/skeleton-notification-button.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/skeleton-settings-button.js",
|
|
4
4
|
"module": "../dist/esm/skeleton-settings-button.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/skeleton-settings-button.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/skeleton-settings-button.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/skeleton-switcher-button.js",
|
|
4
4
|
"module": "../dist/esm/skeleton-switcher-button.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/skeleton-switcher-button.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/skeleton-switcher-button.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|