@atlaskit/side-nav-items 1.13.5 → 1.13.7

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/entry-points/drag-and-drop/drag-handle.js +2 -9
  3. package/dist/cjs/ui/menu-item/drag-handle/drag-handle.js +1 -5
  4. package/dist/cjs/ui/menu-item/menu-item.js +2 -7
  5. package/dist/es2019/entry-points/drag-and-drop/drag-handle.js +1 -6
  6. package/dist/es2019/ui/menu-item/drag-handle/drag-handle.js +1 -6
  7. package/dist/es2019/ui/menu-item/menu-item.js +2 -7
  8. package/dist/esm/entry-points/drag-and-drop/drag-handle.js +1 -6
  9. package/dist/esm/ui/menu-item/drag-handle/drag-handle.js +1 -6
  10. package/dist/esm/ui/menu-item/menu-item.js +2 -7
  11. package/dist/types/entry-points/drag-and-drop/drag-handle.d.ts +1 -2
  12. package/dist/types/ui/menu-item/button-menu-item.d.ts +2 -2
  13. package/dist/types/ui/menu-item/drag-handle/drag-handle.d.ts +1 -2
  14. package/dist/types/ui/menu-item/menu-item.d.ts +2 -2
  15. package/dist/types/ui/menu-item/types.d.ts +2 -0
  16. package/dist/types-ts4.5/entry-points/drag-and-drop/drag-handle.d.ts +1 -2
  17. package/dist/types-ts4.5/ui/menu-item/button-menu-item.d.ts +2 -2
  18. package/dist/types-ts4.5/ui/menu-item/drag-handle/drag-handle.d.ts +1 -2
  19. package/dist/types-ts4.5/ui/menu-item/menu-item.d.ts +2 -2
  20. package/dist/types-ts4.5/ui/menu-item/types.d.ts +2 -0
  21. package/package.json +7 -7
  22. package/dist/cjs/ui/menu-item/drag-handle/drag-handle-new.compiled.css +0 -9
  23. package/dist/cjs/ui/menu-item/drag-handle/drag-handle-new.js +0 -28
  24. package/dist/cjs/ui/menu-item/drag-handle/lazy-drag-handle.js +0 -56
  25. package/dist/es2019/ui/menu-item/drag-handle/drag-handle-new.compiled.css +0 -9
  26. package/dist/es2019/ui/menu-item/drag-handle/drag-handle-new.js +0 -19
  27. package/dist/es2019/ui/menu-item/drag-handle/lazy-drag-handle.js +0 -40
  28. package/dist/esm/ui/menu-item/drag-handle/drag-handle-new.compiled.css +0 -9
  29. package/dist/esm/ui/menu-item/drag-handle/drag-handle-new.js +0 -19
  30. package/dist/esm/ui/menu-item/drag-handle/lazy-drag-handle.js +0 -46
  31. package/dist/types/ui/menu-item/drag-handle/drag-handle-new.d.ts +0 -6
  32. package/dist/types/ui/menu-item/drag-handle/lazy-drag-handle.d.ts +0 -21
  33. package/dist/types-ts4.5/ui/menu-item/drag-handle/drag-handle-new.d.ts +0 -6
  34. 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.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a28ad903422df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a28ad903422df) -
8
+ Cleanup of feature gate navx-4718-inline-drag-handle (true)
9
+ - Updated dependencies
10
+
11
+ ## 1.13.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.13.5
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 _dragHandleNew.DragHandleNew;
9
+ return _dragHandle.DragHandle;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "LazyDragHandle", {
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.default = exports.DragHandle = DragHandle;
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 _dragHandleNew = require("./drag-handle/drag-handle-new");
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(TemporaryDragHandle, null) : null, dropIndicator);
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
- // Remove LazyDragHandle when "navx-4718-inline-drag-handle" is cleaned up.
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 { DragHandleNew } from './drag-handle/drag-handle-new';
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(TemporaryDragHandle, null) : null, dropIndicator);
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
- // Remove LazyDragHandle when "navx-4718-inline-drag-handle" is cleaned up.
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 { DragHandleNew } from './drag-handle/drag-handle-new';
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(TemporaryDragHandle, null) : null, dropIndicator);
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 { LazyDragHandle } from '../../ui/menu-item/drag-handle/lazy-drag-handle';
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,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
2
+ import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
3
3
  export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
4
4
  /**
5
5
  * Identifies the popup element that this element controls when it is used as a popup trigger.
@@ -14,7 +14,7 @@ export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
14
14
  /**
15
15
  * Informs assistive technology that this element triggers a popup.
16
16
  */
17
- 'aria-haspopup'?: boolean | 'dialog';
17
+ 'aria-haspopup'?: MenuItemAriaHasPopup;
18
18
  /**
19
19
  * We are not using a discriminated union to enforce that the `actions` and `actionsOnHover`
20
20
  * props are not used when `isDisabled` is true due to ergonomic type issues with `boolean`
@@ -3,5 +3,4 @@
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- export { DragHandle };
7
- export default function DragHandle(): JSX.Element;
6
+ export declare function DragHandle(): JSX.Element;
@@ -4,7 +4,7 @@
4
4
  * @jsx jsx
5
5
  */
6
6
  import React from 'react';
7
- import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
7
+ import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
8
8
  /**
9
9
  * This is being _internally_ exported so it can be used in other menu item wrapper components, like
10
10
  * ExpandableMenuItemTrigger.
@@ -29,7 +29,7 @@ export declare const nestedOpenPopupCSSSelectorNew = "&:has([aria-expanded=\"tru
29
29
  type MenuItemBaseProps<T extends HTMLAnchorElement | HTMLButtonElement> = MenuItemLinkOrButtonCommonProps & {
30
30
  ariaControls?: string;
31
31
  ariaExpanded?: boolean;
32
- ariaHasPopup?: boolean | 'dialog';
32
+ ariaHasPopup?: MenuItemAriaHasPopup;
33
33
  href?: string | Record<string, any>;
34
34
  /**
35
35
  * ID attribute, passed to the interactive element (anchor/button). This is not publicly exposed, and is currently only
@@ -1,5 +1,7 @@
1
1
  import type React from 'react';
2
2
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ /** `aria-haspopup` values used by popup triggers and menu item buttons (see ARIA spec). */
4
+ export type MenuItemAriaHasPopup = boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid';
3
5
  import { type COLLAPSE_ELEM_BEFORE_TYPE } from './menu-item-signals';
4
6
  export type MenuItemOnClick<T extends HTMLAnchorElement | HTMLButtonElement> = (event: React.MouseEvent<T>, analyticsEvent: UIAnalyticsEvent) => void;
5
7
  /**
@@ -1,2 +1 @@
1
- export { LazyDragHandle } from '../../ui/menu-item/drag-handle/lazy-drag-handle';
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,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
2
+ import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
3
3
  export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
4
4
  /**
5
5
  * Identifies the popup element that this element controls when it is used as a popup trigger.
@@ -14,7 +14,7 @@ export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
14
14
  /**
15
15
  * Informs assistive technology that this element triggers a popup.
16
16
  */
17
- 'aria-haspopup'?: boolean | 'dialog';
17
+ 'aria-haspopup'?: MenuItemAriaHasPopup;
18
18
  /**
19
19
  * We are not using a discriminated union to enforce that the `actions` and `actionsOnHover`
20
20
  * props are not used when `isDisabled` is true due to ergonomic type issues with `boolean`
@@ -3,5 +3,4 @@
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- export { DragHandle };
7
- export default function DragHandle(): JSX.Element;
6
+ export declare function DragHandle(): JSX.Element;
@@ -4,7 +4,7 @@
4
4
  * @jsx jsx
5
5
  */
6
6
  import React from 'react';
7
- import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
7
+ import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
8
8
  /**
9
9
  * This is being _internally_ exported so it can be used in other menu item wrapper components, like
10
10
  * ExpandableMenuItemTrigger.
@@ -29,7 +29,7 @@ export declare const nestedOpenPopupCSSSelectorNew = "&:has([aria-expanded=\"tru
29
29
  type MenuItemBaseProps<T extends HTMLAnchorElement | HTMLButtonElement> = MenuItemLinkOrButtonCommonProps & {
30
30
  ariaControls?: string;
31
31
  ariaExpanded?: boolean;
32
- ariaHasPopup?: boolean | 'dialog';
32
+ ariaHasPopup?: MenuItemAriaHasPopup;
33
33
  href?: string | Record<string, any>;
34
34
  /**
35
35
  * ID attribute, passed to the interactive element (anchor/button). This is not publicly exposed, and is currently only
@@ -1,5 +1,7 @@
1
1
  import type React from 'react';
2
2
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ /** `aria-haspopup` values used by popup triggers and menu item buttons (see ARIA spec). */
4
+ export type MenuItemAriaHasPopup = boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid';
3
5
  import { type COLLAPSE_ELEM_BEFORE_TYPE } from './menu-item-signals';
4
6
  export type MenuItemOnClick<T extends HTMLAnchorElement | HTMLButtonElement> = (event: React.MouseEvent<T>, analyticsEvent: UIAnalyticsEvent) => void;
5
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-nav-items",
3
- "version": "1.13.5",
3
+ "version": "1.13.7",
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,16 +42,16 @@
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": "^34.3.0",
45
+ "@atlaskit/icon": "^34.5.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/platform-feature-flags-react": "^0.4.0",
48
- "@atlaskit/popup": "^4.17.0",
47
+ "@atlaskit/platform-feature-flags-react": "^0.5.0",
48
+ "@atlaskit/popup": "^4.19.0",
49
49
  "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
50
50
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
51
51
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
52
52
  "@atlaskit/primitives": "^19.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
- "@atlaskit/tooltip": "^22.0.0",
54
+ "@atlaskit/tooltip": "^22.2.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@compiled/react": "^0.20.0",
57
57
  "tiny-invariant": "^1.2.0"
@@ -66,11 +66,11 @@
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.1.0",
69
+ "@atlaskit/navigation-system": "^9.3.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
- "@atlassian/feature-flags-test-utils": "^1.0.0",
73
+ "@atlassian/feature-flags-test-utils": "^1.1.0",
74
74
  "@atlassian/react-compiler-gating": "workspace:^",
75
75
  "@atlassian/testing-library": "^0.5.0",
76
76
  "@testing-library/react": "^16.3.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,6 +0,0 @@
1
- /**
2
- * @jsxFrag
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- export declare function DragHandleNew(): JSX.Element;
@@ -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,6 +0,0 @@
1
- /**
2
- * @jsxFrag
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- export declare function DragHandleNew(): JSX.Element;
@@ -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;