@atlaskit/side-nav-items 1.13.6 → 1.13.8
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 +14 -0
- package/dist/cjs/entry-points/drag-and-drop/drag-handle.js +2 -9
- package/dist/cjs/ui/menu-item/drag-handle/drag-handle.js +1 -5
- package/dist/cjs/ui/menu-item/menu-item.js +2 -7
- package/dist/es2019/entry-points/drag-and-drop/drag-handle.js +1 -6
- package/dist/es2019/ui/menu-item/drag-handle/drag-handle.js +1 -6
- package/dist/es2019/ui/menu-item/menu-item.js +2 -7
- package/dist/esm/entry-points/drag-and-drop/drag-handle.js +1 -6
- package/dist/esm/ui/menu-item/drag-handle/drag-handle.js +1 -6
- package/dist/esm/ui/menu-item/menu-item.js +2 -7
- package/dist/types/entry-points/drag-and-drop/drag-handle.d.ts +1 -2
- package/dist/types/ui/menu-item/drag-handle/drag-handle.d.ts +1 -2
- package/dist/types-ts4.5/entry-points/drag-and-drop/drag-handle.d.ts +1 -2
- package/dist/types-ts4.5/ui/menu-item/drag-handle/drag-handle.d.ts +1 -2
- package/package.json +4 -4
- package/dist/cjs/ui/menu-item/drag-handle/drag-handle-new.compiled.css +0 -9
- package/dist/cjs/ui/menu-item/drag-handle/drag-handle-new.js +0 -28
- package/dist/cjs/ui/menu-item/drag-handle/lazy-drag-handle.js +0 -56
- package/dist/es2019/ui/menu-item/drag-handle/drag-handle-new.compiled.css +0 -9
- package/dist/es2019/ui/menu-item/drag-handle/drag-handle-new.js +0 -19
- package/dist/es2019/ui/menu-item/drag-handle/lazy-drag-handle.js +0 -40
- package/dist/esm/ui/menu-item/drag-handle/drag-handle-new.compiled.css +0 -9
- package/dist/esm/ui/menu-item/drag-handle/drag-handle-new.js +0 -19
- package/dist/esm/ui/menu-item/drag-handle/lazy-drag-handle.js +0 -46
- package/dist/types/ui/menu-item/drag-handle/drag-handle-new.d.ts +0 -6
- package/dist/types/ui/menu-item/drag-handle/lazy-drag-handle.d.ts +0 -21
- package/dist/types-ts4.5/ui/menu-item/drag-handle/drag-handle-new.d.ts +0 -6
- package/dist/types-ts4.5/ui/menu-item/drag-handle/lazy-drag-handle.d.ts +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/side-nav-items
|
|
2
2
|
|
|
3
|
+
## 1.13.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.13.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a28ad903422df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a28ad903422df) -
|
|
14
|
+
Cleanup of feature gate navx-4718-inline-drag-handle (true)
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.13.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,14 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "DragHandle", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _dragHandle.DragHandle;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _lazyDragHandle.LazyDragHandle;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _lazyDragHandle = require("../../ui/menu-item/drag-handle/lazy-drag-handle");
|
|
19
|
-
var _dragHandleNew = require("../../ui/menu-item/drag-handle/drag-handle-new");
|
|
12
|
+
var _dragHandle = require("../../ui/menu-item/drag-handle/drag-handle");
|
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.DragHandle = DragHandle;
|
|
10
10
|
require("./drag-handle.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
@@ -15,10 +15,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
15
15
|
var styles = {
|
|
16
16
|
root: "_syazazsu _1e0c1i3c _2lx21bp4 _1bah1h6o _kqswstnw _152tidpf _u7coidpf _1e02idpf _ahbqxmi2"
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
// Using default export to play well with React.lazy
|
|
20
|
-
|
|
21
|
-
// Remove the "default" when "navx-4718-inline-drag-handle" is cleaned up
|
|
22
18
|
function DragHandle() {
|
|
23
19
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
20
|
"aria-hidden": "true",
|
|
@@ -17,12 +17,10 @@ var _avatar = require("@atlaskit/avatar");
|
|
|
17
17
|
var _forwardRefWithGeneric = _interopRequireDefault(require("@atlaskit/ds-lib/forward-ref-with-generic"));
|
|
18
18
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
|
-
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
21
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
21
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
23
22
|
var _constants = require("./constants");
|
|
24
|
-
var
|
|
25
|
-
var _lazyDragHandle = require("./drag-handle/lazy-drag-handle");
|
|
23
|
+
var _dragHandle = require("./drag-handle/drag-handle");
|
|
26
24
|
var _expandableMenuItemContext = require("./expandable-menu-item/expandable-menu-item-context");
|
|
27
25
|
var _flyoutMenuItemContext = require("./flyout-menu-item/flyout-menu-item-context");
|
|
28
26
|
var _menuItemSignals = require("./menu-item-signals");
|
|
@@ -305,7 +303,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
|
|
|
305
303
|
size: "small",
|
|
306
304
|
maxLines: 1,
|
|
307
305
|
ref: descriptionRef
|
|
308
|
-
}, description)), hasDragIndicator ? /*#__PURE__*/_react.default.createElement(
|
|
306
|
+
}, description)), hasDragIndicator ? /*#__PURE__*/_react.default.createElement(_dragHandle.DragHandle, null) : null, dropIndicator);
|
|
309
307
|
|
|
310
308
|
/**
|
|
311
309
|
* If the [expandable] menu item is expanded, show hover actions even when *not* hovered.
|
|
@@ -398,9 +396,6 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
|
|
|
398
396
|
}, actions)));
|
|
399
397
|
};
|
|
400
398
|
|
|
401
|
-
// Remove this when FG is cleaned up
|
|
402
|
-
var TemporaryDragHandle = (0, _platformFeatureFlagsReact.componentWithFG)('navx-4718-inline-drag-handle', _dragHandleNew.DragHandleNew, _lazyDragHandle.LazyDragHandle);
|
|
403
|
-
|
|
404
399
|
/**
|
|
405
400
|
* __MenuItemBase__
|
|
406
401
|
*
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { LazyDragHandle } from '../../ui/menu-item/drag-handle/lazy-drag-handle';
|
|
3
|
-
|
|
4
|
-
// By exporting DragHandle, we are effectively breaking the bundling that the lazy-drag-handle was using.
|
|
5
|
-
// We can't use importCond in platform packages, so we don't have a choice.
|
|
6
|
-
export { DragHandleNew as DragHandle } from '../../ui/menu-item/drag-handle/drag-handle-new';
|
|
1
|
+
export { DragHandle } from '../../ui/menu-item/drag-handle/drag-handle';
|
|
@@ -6,12 +6,7 @@ import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
|
6
6
|
const styles = {
|
|
7
7
|
root: "_syazazsu _1e0c1i3c _2lx21bp4 _1bah1h6o _kqswstnw _152tidpf _u7coidpf _1e02idpf _ahbqxmi2"
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
// Using default export to play well with React.lazy
|
|
11
|
-
export { DragHandle };
|
|
12
|
-
|
|
13
|
-
// Remove the "default" when "navx-4718-inline-drag-handle" is cleaned up
|
|
14
|
-
export default function DragHandle() {
|
|
9
|
+
export function DragHandle() {
|
|
15
10
|
return /*#__PURE__*/React.createElement("div", {
|
|
16
11
|
"aria-hidden": "true",
|
|
17
12
|
className: ax([styles.root])
|
|
@@ -8,12 +8,10 @@ import { AvatarContext } from '@atlaskit/avatar';
|
|
|
8
8
|
import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
|
|
9
9
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
12
11
|
import { Anchor, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
13
|
import { expandableMenuItemIndentation } from './constants';
|
|
15
|
-
import {
|
|
16
|
-
import { LazyDragHandle } from './drag-handle/lazy-drag-handle';
|
|
14
|
+
import { DragHandle } from './drag-handle/drag-handle';
|
|
17
15
|
import { useLevel } from './expandable-menu-item/expandable-menu-item-context';
|
|
18
16
|
import { useFlyoutMenuOpen, useSetFlyoutMenuOpen } from './flyout-menu-item/flyout-menu-item-context';
|
|
19
17
|
import { COLLAPSE_ELEM_BEFORE } from './menu-item-signals';
|
|
@@ -295,7 +293,7 @@ const MenuItemBaseNoRef = ({
|
|
|
295
293
|
size: "small",
|
|
296
294
|
maxLines: 1,
|
|
297
295
|
ref: descriptionRef
|
|
298
|
-
}, description)), hasDragIndicator ? /*#__PURE__*/React.createElement(
|
|
296
|
+
}, description)), hasDragIndicator ? /*#__PURE__*/React.createElement(DragHandle, null) : null, dropIndicator);
|
|
299
297
|
|
|
300
298
|
/**
|
|
301
299
|
* If the [expandable] menu item is expanded, show hover actions even when *not* hovered.
|
|
@@ -387,9 +385,6 @@ const MenuItemBaseNoRef = ({
|
|
|
387
385
|
}, actions)));
|
|
388
386
|
};
|
|
389
387
|
|
|
390
|
-
// Remove this when FG is cleaned up
|
|
391
|
-
const TemporaryDragHandle = componentWithFG('navx-4718-inline-drag-handle', DragHandleNew, LazyDragHandle);
|
|
392
|
-
|
|
393
388
|
/**
|
|
394
389
|
* __MenuItemBase__
|
|
395
390
|
*
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { LazyDragHandle } from '../../ui/menu-item/drag-handle/lazy-drag-handle';
|
|
3
|
-
|
|
4
|
-
// By exporting DragHandle, we are effectively breaking the bundling that the lazy-drag-handle was using.
|
|
5
|
-
// We can't use importCond in platform packages, so we don't have a choice.
|
|
6
|
-
export { DragHandleNew as DragHandle } from '../../ui/menu-item/drag-handle/drag-handle-new';
|
|
1
|
+
export { DragHandle } from '../../ui/menu-item/drag-handle/drag-handle';
|
|
@@ -6,12 +6,7 @@ import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
|
6
6
|
var styles = {
|
|
7
7
|
root: "_syazazsu _1e0c1i3c _2lx21bp4 _1bah1h6o _kqswstnw _152tidpf _u7coidpf _1e02idpf _ahbqxmi2"
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
// Using default export to play well with React.lazy
|
|
11
|
-
export { DragHandle };
|
|
12
|
-
|
|
13
|
-
// Remove the "default" when "navx-4718-inline-drag-handle" is cleaned up
|
|
14
|
-
export default function DragHandle() {
|
|
9
|
+
export function DragHandle() {
|
|
15
10
|
return /*#__PURE__*/React.createElement("div", {
|
|
16
11
|
"aria-hidden": "true",
|
|
17
12
|
className: ax([styles.root])
|
|
@@ -11,12 +11,10 @@ import { AvatarContext } from '@atlaskit/avatar';
|
|
|
11
11
|
import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
|
|
12
12
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
-
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
15
14
|
import { Anchor, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
16
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
16
|
import { expandableMenuItemIndentation } from './constants';
|
|
18
|
-
import {
|
|
19
|
-
import { LazyDragHandle } from './drag-handle/lazy-drag-handle';
|
|
17
|
+
import { DragHandle } from './drag-handle/drag-handle';
|
|
20
18
|
import { useLevel } from './expandable-menu-item/expandable-menu-item-context';
|
|
21
19
|
import { useFlyoutMenuOpen, useSetFlyoutMenuOpen } from './flyout-menu-item/flyout-menu-item-context';
|
|
22
20
|
import { COLLAPSE_ELEM_BEFORE } from './menu-item-signals';
|
|
@@ -296,7 +294,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
|
|
|
296
294
|
size: "small",
|
|
297
295
|
maxLines: 1,
|
|
298
296
|
ref: descriptionRef
|
|
299
|
-
}, description)), hasDragIndicator ? /*#__PURE__*/React.createElement(
|
|
297
|
+
}, description)), hasDragIndicator ? /*#__PURE__*/React.createElement(DragHandle, null) : null, dropIndicator);
|
|
300
298
|
|
|
301
299
|
/**
|
|
302
300
|
* If the [expandable] menu item is expanded, show hover actions even when *not* hovered.
|
|
@@ -389,9 +387,6 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
|
|
|
389
387
|
}, actions)));
|
|
390
388
|
};
|
|
391
389
|
|
|
392
|
-
// Remove this when FG is cleaned up
|
|
393
|
-
var TemporaryDragHandle = componentWithFG('navx-4718-inline-drag-handle', DragHandleNew, LazyDragHandle);
|
|
394
|
-
|
|
395
390
|
/**
|
|
396
391
|
* __MenuItemBase__
|
|
397
392
|
*
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { DragHandleNew as DragHandle } from '../../ui/menu-item/drag-handle/drag-handle-new';
|
|
1
|
+
export { DragHandle } from '../../ui/menu-item/drag-handle/drag-handle';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { DragHandleNew as DragHandle } from '../../ui/menu-item/drag-handle/drag-handle-new';
|
|
1
|
+
export { DragHandle } from '../../ui/menu-item/drag-handle/drag-handle';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-nav-items",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.8",
|
|
4
4
|
"description": "Menu items and elements for the side nav area.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/css": "^0.19.0",
|
|
43
43
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
44
44
|
"@atlaskit/heading": "^5.4.0",
|
|
45
|
-
"@atlaskit/icon": "^
|
|
45
|
+
"@atlaskit/icon": "^35.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
48
48
|
"@atlaskit/popup": "^4.19.0",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"@af/visual-regression": "workspace:^",
|
|
67
67
|
"@atlaskit/app-provider": "^4.3.0",
|
|
68
68
|
"@atlaskit/lozenge": "^13.8.0",
|
|
69
|
-
"@atlaskit/navigation-system": "^9.
|
|
69
|
+
"@atlaskit/navigation-system": "^9.4.0",
|
|
70
70
|
"@atlaskit/ssr": "workspace:^",
|
|
71
71
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
72
72
|
"@atlassian/a11y-playwright-testing": "^0.9.0",
|
|
73
73
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
74
74
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
75
|
-
"@atlassian/testing-library": "^0.
|
|
75
|
+
"@atlassian/testing-library": "^0.6.0",
|
|
76
76
|
"@testing-library/react": "^16.3.0",
|
|
77
77
|
"bind-event-listener": "^3.0.0",
|
|
78
78
|
"react-dom": "^18.2.0"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
._152tidpf{inset-block-start:0}
|
|
2
|
-
._1bah1h6o{justify-content:center}
|
|
3
|
-
._1e02idpf{inset-inline-start:0}
|
|
4
|
-
._1e0c1i3c{display:var(--drag-handle-display,none)}
|
|
5
|
-
._2lx21bp4{flex-direction:column}
|
|
6
|
-
._ahbqxmi2{margin-inline-start:var(--ds-space-negative-150,-9pt)}
|
|
7
|
-
._kqswstnw{position:absolute}
|
|
8
|
-
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
9
|
-
._u7coidpf{inset-block-end:0}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* drag-handle-new.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7
|
-
value: true
|
|
8
|
-
});
|
|
9
|
-
exports.DragHandleNew = DragHandleNew;
|
|
10
|
-
require("./drag-handle-new.compiled.css");
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var _dragHandleVertical = _interopRequireDefault(require("@atlaskit/icon/core/drag-handle-vertical"));
|
|
14
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
-
var styles = {
|
|
16
|
-
root: "_syazazsu _1e0c1i3c _2lx21bp4 _1bah1h6o _kqswstnw _152tidpf _u7coidpf _1e02idpf _ahbqxmi2"
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// Remove the "default" when "navx-4718-inline-drag-handle" is cleaned up
|
|
20
|
-
function DragHandleNew() {
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
"aria-hidden": "true",
|
|
23
|
-
className: (0, _runtime.ax)([styles.root])
|
|
24
|
-
}, /*#__PURE__*/React.createElement(_dragHandleVertical.default, {
|
|
25
|
-
label: "",
|
|
26
|
-
size: "small"
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.LazyDragHandle = LazyDragHandle;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
-
// Remove LazyDragHandle when "navx-4718-inline-drag-handle" is cleaned up.
|
|
13
|
-
/**
|
|
14
|
-
* A wrapper around `React.lazy` that defers rendering until after the component has mounted.
|
|
15
|
-
*
|
|
16
|
-
* We think this avoids hydration errors because:
|
|
17
|
-
* - On the server: `Component` is `null`, so nothing is rendered.
|
|
18
|
-
* - On the first client render (hydration): `Component` is still `null`, matching the server HTML.
|
|
19
|
-
* - After mount: `useEffect` fires, sets the lazy component, and triggers a re-render
|
|
20
|
-
* that is scoped to this component only.
|
|
21
|
-
*
|
|
22
|
-
* This is preferable to using `<Suspense>` around `React.lazy` directly in the parent,
|
|
23
|
-
* because `<Suspense fallback={null}>` on the server renders nothing, but after hydration
|
|
24
|
-
* the lazy component will resolve and produce DOM that doesn't match the server HTML.
|
|
25
|
-
*
|
|
26
|
-
* By deferring to after mount, both server and initial client render agree on `null`,
|
|
27
|
-
* and the lazy import + Suspense only kicks in after hydration is complete.
|
|
28
|
-
*
|
|
29
|
-
* @private
|
|
30
|
-
* @deprecated - use DragHandle instead.
|
|
31
|
-
*/
|
|
32
|
-
function LazyDragHandle() {
|
|
33
|
-
var _useState = (0, _react.useState)(null),
|
|
34
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
35
|
-
Component = _useState2[0],
|
|
36
|
-
setComponent = _useState2[1];
|
|
37
|
-
(0, _react.useEffect)(function () {
|
|
38
|
-
// Using a function updater to store the component reference itself
|
|
39
|
-
// (not the result of calling it)
|
|
40
|
-
setComponent(function () {
|
|
41
|
-
return LazyDragHandleComponent;
|
|
42
|
-
});
|
|
43
|
-
}, []);
|
|
44
|
-
if (!Component) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
48
|
-
fallback: null
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(Component, null));
|
|
50
|
-
}
|
|
51
|
-
var LazyDragHandleComponent = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
52
|
-
return Promise.resolve().then(function () {
|
|
53
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_nav4-menu-item-drag-handle" */
|
|
54
|
-
'./drag-handle'));
|
|
55
|
-
});
|
|
56
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
._152tidpf{inset-block-start:0}
|
|
2
|
-
._1bah1h6o{justify-content:center}
|
|
3
|
-
._1e02idpf{inset-inline-start:0}
|
|
4
|
-
._1e0c1i3c{display:var(--drag-handle-display,none)}
|
|
5
|
-
._2lx21bp4{flex-direction:column}
|
|
6
|
-
._ahbqxmi2{margin-inline-start:var(--ds-space-negative-150,-9pt)}
|
|
7
|
-
._kqswstnw{position:absolute}
|
|
8
|
-
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
9
|
-
._u7coidpf{inset-block-end:0}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* drag-handle-new.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
-
import "./drag-handle-new.compiled.css";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
6
|
-
const styles = {
|
|
7
|
-
root: "_syazazsu _1e0c1i3c _2lx21bp4 _1bah1h6o _kqswstnw _152tidpf _u7coidpf _1e02idpf _ahbqxmi2"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// Remove the "default" when "navx-4718-inline-drag-handle" is cleaned up
|
|
11
|
-
export function DragHandleNew() {
|
|
12
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
-
"aria-hidden": "true",
|
|
14
|
-
className: ax([styles.root])
|
|
15
|
-
}, /*#__PURE__*/React.createElement(DragHandleVerticalIcon, {
|
|
16
|
-
label: "",
|
|
17
|
-
size: "small"
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { lazy, Suspense, useEffect, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
// Remove LazyDragHandle when "navx-4718-inline-drag-handle" is cleaned up.
|
|
4
|
-
/**
|
|
5
|
-
* A wrapper around `React.lazy` that defers rendering until after the component has mounted.
|
|
6
|
-
*
|
|
7
|
-
* We think this avoids hydration errors because:
|
|
8
|
-
* - On the server: `Component` is `null`, so nothing is rendered.
|
|
9
|
-
* - On the first client render (hydration): `Component` is still `null`, matching the server HTML.
|
|
10
|
-
* - After mount: `useEffect` fires, sets the lazy component, and triggers a re-render
|
|
11
|
-
* that is scoped to this component only.
|
|
12
|
-
*
|
|
13
|
-
* This is preferable to using `<Suspense>` around `React.lazy` directly in the parent,
|
|
14
|
-
* because `<Suspense fallback={null}>` on the server renders nothing, but after hydration
|
|
15
|
-
* the lazy component will resolve and produce DOM that doesn't match the server HTML.
|
|
16
|
-
*
|
|
17
|
-
* By deferring to after mount, both server and initial client render agree on `null`,
|
|
18
|
-
* and the lazy import + Suspense only kicks in after hydration is complete.
|
|
19
|
-
*
|
|
20
|
-
* @private
|
|
21
|
-
* @deprecated - use DragHandle instead.
|
|
22
|
-
*/
|
|
23
|
-
export function LazyDragHandle() {
|
|
24
|
-
const [Component, setComponent] = useState(null);
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
// Using a function updater to store the component reference itself
|
|
27
|
-
// (not the result of calling it)
|
|
28
|
-
setComponent(() => LazyDragHandleComponent);
|
|
29
|
-
}, []);
|
|
30
|
-
if (!Component) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return /*#__PURE__*/React.createElement(Suspense, {
|
|
34
|
-
fallback: null
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Component, null));
|
|
36
|
-
}
|
|
37
|
-
const LazyDragHandleComponent = /*#__PURE__*/lazy(() => {
|
|
38
|
-
return import( /* webpackChunkName: "@atlaskit-internal_nav4-menu-item-drag-handle" */
|
|
39
|
-
'./drag-handle');
|
|
40
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
._152tidpf{inset-block-start:0}
|
|
2
|
-
._1bah1h6o{justify-content:center}
|
|
3
|
-
._1e02idpf{inset-inline-start:0}
|
|
4
|
-
._1e0c1i3c{display:var(--drag-handle-display,none)}
|
|
5
|
-
._2lx21bp4{flex-direction:column}
|
|
6
|
-
._ahbqxmi2{margin-inline-start:var(--ds-space-negative-150,-9pt)}
|
|
7
|
-
._kqswstnw{position:absolute}
|
|
8
|
-
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
9
|
-
._u7coidpf{inset-block-end:0}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* drag-handle-new.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
-
import "./drag-handle-new.compiled.css";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
|
|
6
|
-
var styles = {
|
|
7
|
-
root: "_syazazsu _1e0c1i3c _2lx21bp4 _1bah1h6o _kqswstnw _152tidpf _u7coidpf _1e02idpf _ahbqxmi2"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// Remove the "default" when "navx-4718-inline-drag-handle" is cleaned up
|
|
11
|
-
export function DragHandleNew() {
|
|
12
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
-
"aria-hidden": "true",
|
|
14
|
-
className: ax([styles.root])
|
|
15
|
-
}, /*#__PURE__*/React.createElement(DragHandleVerticalIcon, {
|
|
16
|
-
label: "",
|
|
17
|
-
size: "small"
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { lazy, Suspense, useEffect, useState } from 'react';
|
|
3
|
-
|
|
4
|
-
// Remove LazyDragHandle when "navx-4718-inline-drag-handle" is cleaned up.
|
|
5
|
-
/**
|
|
6
|
-
* A wrapper around `React.lazy` that defers rendering until after the component has mounted.
|
|
7
|
-
*
|
|
8
|
-
* We think this avoids hydration errors because:
|
|
9
|
-
* - On the server: `Component` is `null`, so nothing is rendered.
|
|
10
|
-
* - On the first client render (hydration): `Component` is still `null`, matching the server HTML.
|
|
11
|
-
* - After mount: `useEffect` fires, sets the lazy component, and triggers a re-render
|
|
12
|
-
* that is scoped to this component only.
|
|
13
|
-
*
|
|
14
|
-
* This is preferable to using `<Suspense>` around `React.lazy` directly in the parent,
|
|
15
|
-
* because `<Suspense fallback={null}>` on the server renders nothing, but after hydration
|
|
16
|
-
* the lazy component will resolve and produce DOM that doesn't match the server HTML.
|
|
17
|
-
*
|
|
18
|
-
* By deferring to after mount, both server and initial client render agree on `null`,
|
|
19
|
-
* and the lazy import + Suspense only kicks in after hydration is complete.
|
|
20
|
-
*
|
|
21
|
-
* @private
|
|
22
|
-
* @deprecated - use DragHandle instead.
|
|
23
|
-
*/
|
|
24
|
-
export function LazyDragHandle() {
|
|
25
|
-
var _useState = useState(null),
|
|
26
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
-
Component = _useState2[0],
|
|
28
|
-
setComponent = _useState2[1];
|
|
29
|
-
useEffect(function () {
|
|
30
|
-
// Using a function updater to store the component reference itself
|
|
31
|
-
// (not the result of calling it)
|
|
32
|
-
setComponent(function () {
|
|
33
|
-
return LazyDragHandleComponent;
|
|
34
|
-
});
|
|
35
|
-
}, []);
|
|
36
|
-
if (!Component) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return /*#__PURE__*/React.createElement(Suspense, {
|
|
40
|
-
fallback: null
|
|
41
|
-
}, /*#__PURE__*/React.createElement(Component, null));
|
|
42
|
-
}
|
|
43
|
-
var LazyDragHandleComponent = /*#__PURE__*/lazy(function () {
|
|
44
|
-
return import( /* webpackChunkName: "@atlaskit-internal_nav4-menu-item-drag-handle" */
|
|
45
|
-
'./drag-handle');
|
|
46
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* A wrapper around `React.lazy` that defers rendering until after the component has mounted.
|
|
4
|
-
*
|
|
5
|
-
* We think this avoids hydration errors because:
|
|
6
|
-
* - On the server: `Component` is `null`, so nothing is rendered.
|
|
7
|
-
* - On the first client render (hydration): `Component` is still `null`, matching the server HTML.
|
|
8
|
-
* - After mount: `useEffect` fires, sets the lazy component, and triggers a re-render
|
|
9
|
-
* that is scoped to this component only.
|
|
10
|
-
*
|
|
11
|
-
* This is preferable to using `<Suspense>` around `React.lazy` directly in the parent,
|
|
12
|
-
* because `<Suspense fallback={null}>` on the server renders nothing, but after hydration
|
|
13
|
-
* the lazy component will resolve and produce DOM that doesn't match the server HTML.
|
|
14
|
-
*
|
|
15
|
-
* By deferring to after mount, both server and initial client render agree on `null`,
|
|
16
|
-
* and the lazy import + Suspense only kicks in after hydration is complete.
|
|
17
|
-
*
|
|
18
|
-
* @private
|
|
19
|
-
* @deprecated - use DragHandle instead.
|
|
20
|
-
*/
|
|
21
|
-
export declare function LazyDragHandle(): React.JSX.Element | null;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* A wrapper around `React.lazy` that defers rendering until after the component has mounted.
|
|
4
|
-
*
|
|
5
|
-
* We think this avoids hydration errors because:
|
|
6
|
-
* - On the server: `Component` is `null`, so nothing is rendered.
|
|
7
|
-
* - On the first client render (hydration): `Component` is still `null`, matching the server HTML.
|
|
8
|
-
* - After mount: `useEffect` fires, sets the lazy component, and triggers a re-render
|
|
9
|
-
* that is scoped to this component only.
|
|
10
|
-
*
|
|
11
|
-
* This is preferable to using `<Suspense>` around `React.lazy` directly in the parent,
|
|
12
|
-
* because `<Suspense fallback={null}>` on the server renders nothing, but after hydration
|
|
13
|
-
* the lazy component will resolve and produce DOM that doesn't match the server HTML.
|
|
14
|
-
*
|
|
15
|
-
* By deferring to after mount, both server and initial client render agree on `null`,
|
|
16
|
-
* and the lazy import + Suspense only kicks in after hydration is complete.
|
|
17
|
-
*
|
|
18
|
-
* @private
|
|
19
|
-
* @deprecated - use DragHandle instead.
|
|
20
|
-
*/
|
|
21
|
-
export declare function LazyDragHandle(): React.JSX.Element | null;
|