@atlaskit/navigation-system 10.14.0 → 10.15.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 10.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0075efb228821`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0075efb228821) -
8
+ Autofix: barrel removal (imports + exports)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 10.14.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 10.14.0
4
21
 
5
22
  ### Minor Changes
@@ -218,7 +218,9 @@ expand to fill available space.
218
218
 
219
219
  ### Panel
220
220
 
221
- The panel area is rendered to the right of the main area.
221
+ The panel area is rendered to the right of the main area. Wrap `Panel` in `ExitingPersistence` from
222
+ `@atlaskit/motion/exiting-persistence`. This keeps the panel in the DOM until its exit animation
223
+ completes when you conditionally render it.
222
224
 
223
225
  - The default width of the panel is 365px, which can be modified using the `defaultWidth` prop.
224
226
  - The panel is
@@ -73,7 +73,9 @@ When applying components to the navigational areas,
73
73
  </li>
74
74
  <li>
75
75
  <strong>Panel:</strong> Optional. Use to display supporting or supplementary content. Is
76
- resizable and collapsible.
76
+ resizable and collapsible. Wrap `Panel` in `ExitingPersistence` from
77
+ `@atlaskit/motion/exiting-persistence` so it stays in the DOM until its exit animation
78
+ completes.
77
79
  </li>
78
80
  </ol>
79
81
 
@@ -48,7 +48,6 @@ function focusElement(element) {
48
48
  element.focus({
49
49
  // Forces the focus ring to appear after moving focus to the slot
50
50
  // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#focusvisible
51
- // @ts-ignore - new and not in types yet. Can be removed once we adopt ts7.
52
51
  focusVisible: true
53
52
  });
54
53
  }
@@ -15,7 +15,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
16
  var _react2 = require("@compiled/react");
17
17
  var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
18
- var _useMotion2 = require("@atlaskit/motion/use-motion");
18
+ var _useMotion2 = require("@atlaskit/motion/entering/use-motion");
19
+ var _reanimate = require("@atlaskit/motion/reanimate");
19
20
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
21
  var _responsive = require("@atlaskit/primitives/responsive");
21
22
  var _useSkipLinkInternal = require("../../context/skip-links/use-skip-link-internal");
@@ -136,12 +137,12 @@ function Panel(_ref) {
136
137
  }
137
138
  if (isMotionUpliftEnabled) {
138
139
  if (defaultWidth === 0) {
139
- reanimate(_useMotion2.Reanimate.exit);
140
+ reanimate(_reanimate.Reanimate.exit);
140
141
  defaultWidthRef.current = defaultWidth;
141
142
  // Set width to 0 once the exit animation is complete
142
143
  return;
143
144
  } else if (defaultWidthRef.current === 0) {
144
- reanimate(_useMotion2.Reanimate.enter);
145
+ reanimate(_reanimate.Reanimate.enter);
145
146
  }
146
147
  }
147
148
  defaultWidthRef.current = defaultWidth;
@@ -43,7 +43,6 @@ export function focusElement(element) {
43
43
  element.focus({
44
44
  // Forces the focus ring to appear after moving focus to the slot
45
45
  // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#focusvisible
46
- // @ts-ignore - new and not in types yet. Can be removed once we adopt ts7.
47
46
  focusVisible: true
48
47
  });
49
48
  }
@@ -5,7 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
6
6
  import { cx } from '@compiled/react';
7
7
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
8
- import { useMotion, Reanimate } from '@atlaskit/motion/use-motion';
8
+ import { useMotion } from '@atlaskit/motion/entering/use-motion';
9
+ import { Reanimate } from '@atlaskit/motion/reanimate';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
10
11
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
11
12
  import { media } from '@atlaskit/primitives/responsive';
@@ -43,7 +43,6 @@ export function focusElement(element) {
43
43
  element.focus({
44
44
  // Forces the focus ring to appear after moving focus to the slot
45
45
  // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#focusvisible
46
- // @ts-ignore - new and not in types yet. Can be removed once we adopt ts7.
47
46
  focusVisible: true
48
47
  });
49
48
  }
@@ -7,7 +7,8 @@ import { ax, ix } from "@compiled/react/runtime";
7
7
  import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
8
8
  import { cx } from '@compiled/react';
9
9
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
10
- import { useMotion, Reanimate } from '@atlaskit/motion/use-motion';
10
+ import { useMotion } from '@atlaskit/motion/entering/use-motion';
11
+ import { Reanimate } from '@atlaskit/motion/reanimate';
11
12
  import { fg } from '@atlaskit/platform-feature-flags';
12
13
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
13
14
  import { media } from '@atlaskit/primitives/responsive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "10.14.0",
3
+ "version": "10.15.0",
4
4
  "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "author": "Atlassian Pty Ltd",
@@ -56,22 +56,22 @@
56
56
  "@atlaskit/analytics-next": "^12.3.0",
57
57
  "@atlaskit/app-provider": "^5.3.0",
58
58
  "@atlaskit/avatar": "^27.0.0",
59
- "@atlaskit/button": "^25.0.0",
59
+ "@atlaskit/button": "^25.1.0",
60
60
  "@atlaskit/css": "^1.0.0",
61
61
  "@atlaskit/ds-lib": "^8.0.0",
62
- "@atlaskit/icon": "^37.3.0",
62
+ "@atlaskit/icon": "^37.4.0",
63
63
  "@atlaskit/layering": "^5.0.0",
64
64
  "@atlaskit/logo": "^21.4.0",
65
- "@atlaskit/motion": "^8.0.0",
65
+ "@atlaskit/motion": "^8.2.0",
66
66
  "@atlaskit/platform-feature-flags": "^2.1.0",
67
67
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
68
- "@atlaskit/popup": "^6.0.0",
69
- "@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
70
- "@atlaskit/primitives": "^22.2.0",
68
+ "@atlaskit/popup": "^6.1.0",
69
+ "@atlaskit/pragmatic-drag-and-drop": "^3.0.0",
70
+ "@atlaskit/primitives": "^22.3.0",
71
71
  "@atlaskit/react-compiler-gating": "^0.2.0",
72
72
  "@atlaskit/side-nav-items": "^2.3.0",
73
73
  "@atlaskit/tokens": "^16.7.0",
74
- "@atlaskit/tooltip": "^24.0.0",
74
+ "@atlaskit/tooltip": "^24.1.0",
75
75
  "@atlaskit/visually-hidden": "^4.2.0",
76
76
  "@babel/runtime": "^7.0.0",
77
77
  "@compiled/react": "^1.0.2",
@@ -90,27 +90,27 @@
90
90
  "@atlaskit/badge": "^21.0.0",
91
91
  "@atlaskit/banner": "^15.1.0",
92
92
  "@atlaskit/breadcrumbs": "^17.5.0",
93
- "@atlaskit/dropdown-menu": "^18.0.0",
94
- "@atlaskit/flag": "^18.2.0",
93
+ "@atlaskit/dropdown-menu": "^18.1.0",
94
+ "@atlaskit/flag": "^18.3.0",
95
95
  "@atlaskit/form": "^17.0.0",
96
96
  "@atlaskit/heading": "^7.0.0",
97
- "@atlaskit/inline-dialog": "^20.0.0",
97
+ "@atlaskit/inline-dialog": "^20.1.0",
98
98
  "@atlaskit/link": "^5.0.0",
99
- "@atlaskit/lozenge": "^15.0.0",
99
+ "@atlaskit/lozenge": "^15.2.0",
100
100
  "@atlaskit/menu": "^10.0.0",
101
- "@atlaskit/modal-dialog": "^16.3.0",
102
- "@atlaskit/onboarding": "^15.1.0",
101
+ "@atlaskit/modal-dialog": "^16.4.0",
102
+ "@atlaskit/onboarding": "^15.2.0",
103
103
  "@atlaskit/page-header": "^13.1.0",
104
- "@atlaskit/page-layout": "^5.2.0",
105
- "@atlaskit/popper": "^9.1.0",
106
- "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
107
- "@atlaskit/select": "^22.6.0",
104
+ "@atlaskit/page-layout": "^5.3.0",
105
+ "@atlaskit/popper": "^9.2.0",
106
+ "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.1.0",
107
+ "@atlaskit/select": "^22.7.0",
108
108
  "@atlaskit/skeleton": "^4.2.0",
109
- "@atlaskit/spotlight": "^4.0.0",
109
+ "@atlaskit/spotlight": "^4.1.0",
110
110
  "@atlaskit/textfield": "^10.0.0",
111
- "@atlaskit/top-layer": "^3.2.0",
111
+ "@atlaskit/top-layer": "^4.3.0",
112
112
  "@atlassian/feature-flags-test-utils": "^1.2.0",
113
- "@atlassian/gemini": "^1.51.0",
113
+ "@atlassian/gemini": "^1.52.0",
114
114
  "@atlassian/search-dialog": "^10.9.0",
115
115
  "@atlassian/ssr-tests": "workspace:^",
116
116
  "@atlassian/test-utils": "^1.1.0",
@@ -1,49 +0,0 @@
1
- /**
2
- * Structured MCP docs for `@atlaskit/navigation-system`.
3
- */
4
-
5
- import path from 'path';
6
-
7
- import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
8
-
9
- import packageJson from './package.json';
10
-
11
- const packagePath = path.resolve(__dirname);
12
-
13
- const documentation: StructuredContentSource = {
14
- package: {
15
- package: '@atlaskit/navigation-system',
16
- packagePath,
17
- packageJson,
18
- overview:
19
- 'The latest navigation system for Atlassian apps. It provides a flexible layout system for top and side navigation, including components for product logos, search, and global actions.',
20
- },
21
- components: [
22
- {
23
- name: 'TopNav',
24
- description: 'The horizontal top navigation bar component.',
25
- status: 'general-availability',
26
- import: {
27
- name: 'TopNav',
28
- package: '@atlaskit/navigation-system/layout/top-nav',
29
- type: 'named',
30
- packagePath,
31
- packageJson,
32
- },
33
- usageGuidelines: [
34
- 'Render `TopNav` within the `Root` component to provide global navigation and actions.',
35
- ],
36
- keywords: ['navigation', 'top-nav', 'header'],
37
- categories: ['navigation'],
38
- examples: [
39
- {
40
- name: 'Top navigation',
41
- description: 'Basic usage of the top navigation bar.',
42
- source: path.resolve(packagePath, './examples/top-navigation.vr.ap.tsx'),
43
- },
44
- ],
45
- },
46
- ],
47
- };
48
-
49
- export default documentation;