@atlaskit/side-navigation 1.6.2 → 1.6.4
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 +12 -0
- package/dist/cjs/components/Item/custom-item.js +3 -0
- package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +1 -1
- package/dist/cjs/components/NestingItem/index.js +3 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Item/custom-item.js +3 -0
- package/dist/es2019/components/NestingItem/index.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Item/custom-item.js +3 -0
- package/dist/esm/components/NestingItem/index.js +3 -0
- package/dist/esm/version.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -13,8 +13,11 @@ var _menu = require("@atlaskit/menu");
|
|
|
13
13
|
var _styles = require("../../common/styles");
|
|
14
14
|
var _context = require("../NestableNavigationContent/context");
|
|
15
15
|
var _excluded = ["cssFn"];
|
|
16
|
+
/* eslint-disable @repo/internal/react/no-unsafe-overrides */
|
|
16
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
// Dirty hack to get generics working with forward ref [1/2]
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Used to support any custom items needed by products alongside the Header and Footer patterns.
|
|
20
23
|
* Specific implementation of headers and footers are provided in the examples folder.
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _motion = require("@atlaskit/motion");
|
|
11
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
@@ -23,10 +23,13 @@ var _context = require("../NestableNavigationContent/context");
|
|
|
23
23
|
var _hooks = require("../utils/hooks");
|
|
24
24
|
var _styles2 = require("./styles");
|
|
25
25
|
var _excluded = ["children", "iconAfter", "title", "onClick", "cssFn", "isSelected", "id", "component", "testId"];
|
|
26
|
+
/** @jsx jsx */
|
|
26
27
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
28
29
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
|
+
// Doesn't extend from ButtonItemProps because it blows ERT up.
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* NestingItem will render itself differently depending in what context it is rendered in.
|
|
32
35
|
* When not open - it will render itself as an item.
|
package/dist/cjs/version.json
CHANGED
|
@@ -4,6 +4,9 @@ import React, { forwardRef } from 'react';
|
|
|
4
4
|
import { CustomItem as Custom } from '@atlaskit/menu';
|
|
5
5
|
import { baseSideNavItemStyle, overrideStyleFunction } from '../../common/styles';
|
|
6
6
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
7
|
+
|
|
8
|
+
// Dirty hack to get generics working with forward ref [1/2]
|
|
9
|
+
|
|
7
10
|
/**
|
|
8
11
|
* Used to support any custom items needed by products alongside the Header and Footer patterns.
|
|
9
12
|
* Specific implementation of headers and footers are provided in the examples folder.
|
|
@@ -11,6 +11,9 @@ import { ROOT_ID } from '../NestableNavigationContent';
|
|
|
11
11
|
import { NestedContext, useNestedContext } from '../NestableNavigationContent/context';
|
|
12
12
|
import { useChildIdsEffect } from '../utils/hooks';
|
|
13
13
|
import { nestingItemStyle } from './styles';
|
|
14
|
+
|
|
15
|
+
// Doesn't extend from ButtonItemProps because it blows ERT up.
|
|
16
|
+
|
|
14
17
|
/**
|
|
15
18
|
* NestingItem will render itself differently depending in what context it is rendered in.
|
|
16
19
|
* When not open - it will render itself as an item.
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,6 +6,9 @@ import React, { forwardRef } from 'react';
|
|
|
6
6
|
import { CustomItem as Custom } from '@atlaskit/menu';
|
|
7
7
|
import { baseSideNavItemStyle, overrideStyleFunction } from '../../common/styles';
|
|
8
8
|
import { useShouldNestedElementRender } from '../NestableNavigationContent/context';
|
|
9
|
+
|
|
10
|
+
// Dirty hack to get generics working with forward ref [1/2]
|
|
11
|
+
|
|
9
12
|
/**
|
|
10
13
|
* Used to support any custom items needed by products alongside the Header and Footer patterns.
|
|
11
14
|
* Specific implementation of headers and footers are provided in the examples folder.
|
|
@@ -18,6 +18,9 @@ import { ROOT_ID } from '../NestableNavigationContent';
|
|
|
18
18
|
import { NestedContext, useNestedContext } from '../NestableNavigationContent/context';
|
|
19
19
|
import { useChildIdsEffect } from '../utils/hooks';
|
|
20
20
|
import { nestingItemStyle } from './styles';
|
|
21
|
+
|
|
22
|
+
// Doesn't extend from ButtonItemProps because it blows ERT up.
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
25
|
* NestingItem will render itself differently depending in what context it is rendered in.
|
|
23
26
|
* When not open - it will render itself as an item.
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-navigation",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "A highly composable side navigation component that supports nested views.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/icon": "^21.11.0",
|
|
30
30
|
"@atlaskit/menu": "^1.5.0",
|
|
31
31
|
"@atlaskit/motion": "^1.3.0",
|
|
32
|
-
"@atlaskit/primitives": "^0.
|
|
32
|
+
"@atlaskit/primitives": "^0.7.0",
|
|
33
33
|
"@atlaskit/theme": "^12.3.0",
|
|
34
34
|
"@atlaskit/tokens": "^1.2.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/atlassian-navigation": "^2.4.0",
|
|
43
43
|
"@atlaskit/button": "^16.6.0",
|
|
44
44
|
"@atlaskit/docs": "*",
|
|
45
|
-
"@atlaskit/logo": "^13.
|
|
45
|
+
"@atlaskit/logo": "^13.12.0",
|
|
46
46
|
"@atlaskit/onboarding": "^10.7.0",
|
|
47
47
|
"@atlaskit/section-message": "^6.3.0",
|
|
48
48
|
"@atlaskit/select": "^16.1.0",
|