@atlaskit/side-navigation 3.6.1 → 3.6.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 +8 -0
- package/dist/cjs/components/SideNavigation/index.js +5 -2
- package/dist/es2019/components/SideNavigation/index.js +4 -2
- package/dist/esm/components/SideNavigation/index.js +5 -2
- package/dist/types/components/SideNavigation/index.d.ts +4 -0
- package/dist/types-ts4.5/components/SideNavigation/index.d.ts +4 -0
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 3.6.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
|
## 3.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -40,12 +40,15 @@ var sideNavStyles = (0, _react2.css)({
|
|
|
40
40
|
var SideNavigation = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
41
41
|
var children = props.children,
|
|
42
42
|
testId = props.testId,
|
|
43
|
-
label = props.label
|
|
43
|
+
label = props.label,
|
|
44
|
+
_props$isServer = props.isServer,
|
|
45
|
+
isServer = _props$isServer === void 0 ? false : _props$isServer;
|
|
44
46
|
return (0, _react2.jsx)("nav", {
|
|
45
47
|
ref: ref,
|
|
46
48
|
"data-testid": testId,
|
|
47
49
|
"aria-label": label,
|
|
48
|
-
css: sideNavStyles
|
|
50
|
+
css: sideNavStyles,
|
|
51
|
+
"data-vc": "side-navigation".concat(isServer ? '-ssr' : '')
|
|
49
52
|
}, (0, _react2.jsx)(_menu.SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
50
53
|
value: "notch"
|
|
51
54
|
}, children));
|
|
@@ -34,13 +34,15 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
34
34
|
const {
|
|
35
35
|
children,
|
|
36
36
|
testId,
|
|
37
|
-
label
|
|
37
|
+
label,
|
|
38
|
+
isServer = false
|
|
38
39
|
} = props;
|
|
39
40
|
return jsx("nav", {
|
|
40
41
|
ref: ref,
|
|
41
42
|
"data-testid": testId,
|
|
42
43
|
"aria-label": label,
|
|
43
|
-
css: sideNavStyles
|
|
44
|
+
css: sideNavStyles,
|
|
45
|
+
"data-vc": `side-navigation${isServer ? '-ssr' : ''}`
|
|
44
46
|
}, jsx(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
45
47
|
value: "notch"
|
|
46
48
|
}, children));
|
|
@@ -33,12 +33,15 @@ var sideNavStyles = css({
|
|
|
33
33
|
var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
34
34
|
var children = props.children,
|
|
35
35
|
testId = props.testId,
|
|
36
|
-
label = props.label
|
|
36
|
+
label = props.label,
|
|
37
|
+
_props$isServer = props.isServer,
|
|
38
|
+
isServer = _props$isServer === void 0 ? false : _props$isServer;
|
|
37
39
|
return jsx("nav", {
|
|
38
40
|
ref: ref,
|
|
39
41
|
"data-testid": testId,
|
|
40
42
|
"aria-label": label,
|
|
41
|
-
css: sideNavStyles
|
|
43
|
+
css: sideNavStyles,
|
|
44
|
+
"data-vc": "side-navigation".concat(isServer ? '-ssr' : '')
|
|
42
45
|
}, jsx(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
43
46
|
value: "notch"
|
|
44
47
|
}, children));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,19 +23,23 @@
|
|
|
23
23
|
"team": "Design System Team",
|
|
24
24
|
"website": {
|
|
25
25
|
"name": "Side navigation",
|
|
26
|
-
"category": "Components"
|
|
26
|
+
"category": "Components",
|
|
27
|
+
"status": {
|
|
28
|
+
"type": "intent-to-deprecate",
|
|
29
|
+
"description": "We are in the process of building a new side navigation component: [@atlassian/navigation-system](https://staging.atlassian.design/components/navigation-system/side-navigation/examples) (For Atlassian employees only at this stage)"
|
|
30
|
+
}
|
|
27
31
|
},
|
|
28
32
|
"runReact18": true
|
|
29
33
|
},
|
|
30
34
|
"dependencies": {
|
|
31
35
|
"@atlaskit/ds-lib": "^3.2.0",
|
|
32
|
-
"@atlaskit/icon": "^22.
|
|
36
|
+
"@atlaskit/icon": "^22.25.0",
|
|
33
37
|
"@atlaskit/menu": "^2.13.0",
|
|
34
38
|
"@atlaskit/motion": "^1.9.0",
|
|
35
39
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
36
40
|
"@atlaskit/primitives": "^13.2.0",
|
|
37
41
|
"@atlaskit/theme": "^14.0.0",
|
|
38
|
-
"@atlaskit/tokens": "^2.
|
|
42
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
39
43
|
"@babel/runtime": "^7.0.0",
|
|
40
44
|
"@emotion/react": "^11.7.1"
|
|
41
45
|
},
|