@atlaskit/side-navigation 3.6.0 → 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 CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 3.6.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
  ## 3.6.0
4
20
 
5
21
  ### Minor Changes
@@ -29,6 +29,9 @@
29
29
  {
30
30
  "path": "../../motion/afm-jira/tsconfig.json"
31
31
  },
32
+ {
33
+ "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
34
+ },
32
35
  {
33
36
  "path": "../../primitives/afm-jira/tsconfig.json"
34
37
  },
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__side-navigation/app",
6
+ "outDir": "../../../../../post-office/tsDist/@atlaskit__side-navigation/app",
7
7
  "rootDir": "../",
8
8
  "composite": true
9
9
  },
@@ -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));
@@ -18,6 +18,10 @@ export interface SideNavigationProps {
18
18
  * serving as a hook for automated tests.
19
19
  */
20
20
  testId?: string;
21
+ /**
22
+ * Whether nav is rendered on the server.
23
+ */
24
+ isServer?: boolean;
21
25
  }
22
26
  /**
23
27
  * __Side navigation__
@@ -18,6 +18,10 @@ export interface SideNavigationProps {
18
18
  * serving as a hook for automated tests.
19
19
  */
20
20
  testId?: string;
21
+ /**
22
+ * Whether nav is rendered on the server.
23
+ */
24
+ isServer?: boolean;
21
25
  }
22
26
  /**
23
27
  * __Side navigation__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "3.6.0",
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/"
@@ -12,7 +12,9 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "**/*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.tsx",
17
19
  "af:exports": {
18
20
  ".": "./src/index.tsx"
@@ -21,19 +23,23 @@
21
23
  "team": "Design System Team",
22
24
  "website": {
23
25
  "name": "Side navigation",
24
- "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
+ }
25
31
  },
26
32
  "runReact18": true
27
33
  },
28
34
  "dependencies": {
29
- "@atlaskit/ds-lib": "^3.1.0",
30
- "@atlaskit/icon": "^22.24.0",
35
+ "@atlaskit/ds-lib": "^3.2.0",
36
+ "@atlaskit/icon": "^22.25.0",
31
37
  "@atlaskit/menu": "^2.13.0",
32
38
  "@atlaskit/motion": "^1.9.0",
33
39
  "@atlaskit/platform-feature-flags": "^0.3.0",
34
- "@atlaskit/primitives": "^13.0.0",
40
+ "@atlaskit/primitives": "^13.2.0",
35
41
  "@atlaskit/theme": "^14.0.0",
36
- "@atlaskit/tokens": "^2.2.0",
42
+ "@atlaskit/tokens": "^2.3.0",
37
43
  "@babel/runtime": "^7.0.0",
38
44
  "@emotion/react": "^11.7.1"
39
45
  },