@atlaskit/side-navigation 9.1.0 → 9.2.0
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 +18 -0
- package/dist/cjs/components/Section/section.js +2 -9
- package/dist/es2019/components/Section/section.js +2 -9
- package/dist/esm/components/Section/section.js +2 -9
- package/dist/types/components/NestingItem/index.d.ts +2 -2
- package/dist/types-ts4.5/components/NestingItem/index.d.ts +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 9.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#148607](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148607)
|
|
8
|
+
[`96c3ed72d55bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96c3ed72d55bf) -
|
|
9
|
+
Internal change to Section component to remove deprecated APIs.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 9.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 9.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -9,7 +9,6 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _menu = require("@atlaskit/menu");
|
|
12
|
-
var _styles = require("../../common/styles");
|
|
13
12
|
var _context = require("../NestableNavigationContent/context");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -30,14 +29,8 @@ var Section = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
30
29
|
return props.children;
|
|
31
30
|
}
|
|
32
31
|
return /*#__PURE__*/_react.default.createElement(_menu.Section, (0, _extends2.default)({}, props, {
|
|
33
|
-
ref: ref
|
|
34
|
-
|
|
35
|
-
,
|
|
36
|
-
overrides: {
|
|
37
|
-
HeadingItem: {
|
|
38
|
-
cssFn: _styles.sectionHeaderSpacingStyles
|
|
39
|
-
}
|
|
40
|
-
}
|
|
32
|
+
ref: ref,
|
|
33
|
+
isSideNavSection: true
|
|
41
34
|
}));
|
|
42
35
|
});
|
|
43
36
|
var _default = exports.default = Section;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Section as MenuSection } from '@atlaskit/menu';
|
|
4
|
-
import { sectionHeaderSpacingStyles } from '../../common/styles';
|
|
5
4
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
6
5
|
// Type needed on props to extract types with extract react types.
|
|
7
6
|
/**
|
|
@@ -21,14 +20,8 @@ const Section = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
21
20
|
return props.children;
|
|
22
21
|
}
|
|
23
22
|
return /*#__PURE__*/React.createElement(MenuSection, _extends({}, props, {
|
|
24
|
-
ref: ref
|
|
25
|
-
|
|
26
|
-
,
|
|
27
|
-
overrides: {
|
|
28
|
-
HeadingItem: {
|
|
29
|
-
cssFn: sectionHeaderSpacingStyles
|
|
30
|
-
}
|
|
31
|
-
}
|
|
23
|
+
ref: ref,
|
|
24
|
+
isSideNavSection: true
|
|
32
25
|
}));
|
|
33
26
|
});
|
|
34
27
|
export default Section;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Section as MenuSection } from '@atlaskit/menu';
|
|
4
|
-
import { sectionHeaderSpacingStyles } from '../../common/styles';
|
|
5
4
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
6
5
|
// Type needed on props to extract types with extract react types.
|
|
7
6
|
/**
|
|
@@ -20,14 +19,8 @@ var Section = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
20
19
|
return props.children;
|
|
21
20
|
}
|
|
22
21
|
return /*#__PURE__*/React.createElement(MenuSection, _extends({}, props, {
|
|
23
|
-
ref: ref
|
|
24
|
-
|
|
25
|
-
,
|
|
26
|
-
overrides: {
|
|
27
|
-
HeadingItem: {
|
|
28
|
-
cssFn: sectionHeaderSpacingStyles
|
|
29
|
-
}
|
|
30
|
-
}
|
|
22
|
+
ref: ref,
|
|
23
|
+
isSideNavSection: true
|
|
31
24
|
}));
|
|
32
25
|
});
|
|
33
26
|
export default Section;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { type CustomItemComponentProps
|
|
7
|
-
interface NestingItemOverrides
|
|
6
|
+
import { type CustomItemComponentProps } from '@atlaskit/menu';
|
|
7
|
+
interface NestingItemOverrides {
|
|
8
8
|
/**
|
|
9
9
|
* Use this to override the back button displayed when navigation is nested.
|
|
10
10
|
* You'll want to import the [go back item](/packages/navigation/side-navigation/docs/go-back-item) component and use it here.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { type CustomItemComponentProps
|
|
7
|
-
interface NestingItemOverrides
|
|
6
|
+
import { type CustomItemComponentProps } from '@atlaskit/menu';
|
|
7
|
+
interface NestingItemOverrides {
|
|
8
8
|
/**
|
|
9
9
|
* Use this to override the back button displayed when navigation is nested.
|
|
10
10
|
* You'll want to import the [go back item](/packages/navigation/side-navigation/docs/go-back-item) component and use it here.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"category": "Navigation",
|
|
27
27
|
"status": {
|
|
28
28
|
"type": "intent-to-deprecate",
|
|
29
|
-
"description": "We are in the process of building a new side navigation component: [@atlassian/navigation-system](
|
|
29
|
+
"description": "We are in the process of building a new side navigation component: [@atlassian/navigation-system](/components/navigation-system/side-navigation/examples) (For Atlassian employees only at this stage)"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"runReact18": true
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/css": "^0.10.0",
|
|
36
36
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
37
|
-
"@atlaskit/icon": "^
|
|
38
|
-
"@atlaskit/menu": "^
|
|
37
|
+
"@atlaskit/icon": "^26.0.0",
|
|
38
|
+
"@atlaskit/menu": "^6.0.0",
|
|
39
39
|
"@atlaskit/motion": "^5.1.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/primitives": "^14.
|
|
41
|
+
"@atlaskit/primitives": "^14.7.0",
|
|
42
42
|
"@atlaskit/theme": "^18.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^4.8.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"@atlaskit/atlassian-navigation": "^5.1.0",
|
|
55
55
|
"@atlaskit/button": "^23.0.0",
|
|
56
56
|
"@atlaskit/docs": "^10.0.0",
|
|
57
|
-
"@atlaskit/dropdown-menu": "^
|
|
57
|
+
"@atlaskit/dropdown-menu": "^15.0.0",
|
|
58
58
|
"@atlaskit/form": "^12.0.0",
|
|
59
59
|
"@atlaskit/image": "^3.0.0",
|
|
60
60
|
"@atlaskit/link": "^3.1.0",
|
|
61
|
-
"@atlaskit/logo": "^
|
|
62
|
-
"@atlaskit/onboarding": "^14.
|
|
61
|
+
"@atlaskit/logo": "^18.0.0",
|
|
62
|
+
"@atlaskit/onboarding": "^14.1.0",
|
|
63
63
|
"@atlaskit/pragmatic-drag-and-drop": "^1.6.0",
|
|
64
64
|
"@atlaskit/pragmatic-drag-and-drop-live-region": "^1.3.0",
|
|
65
65
|
"@atlaskit/pragmatic-drag-and-drop-react-accessibility": "^2.0.0",
|
|
66
|
-
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.
|
|
66
|
+
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
67
67
|
"@atlaskit/section-message": "^8.2.0",
|
|
68
68
|
"@atlaskit/select": "^20.4.0",
|
|
69
69
|
"@atlaskit/visual-regression": "workspace:^",
|