@atlaskit/navigation-system 11.7.2 → 11.7.3

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,13 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 11.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e101697538934`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e101697538934) -
8
+ Show the TopNav skip link with the Global navigation fallback label when
9
+ platform_dst_nav4_skip_link_a11y_1 is enabled.
10
+
3
11
  ## 11.7.2
4
12
 
5
13
  ### Patch Changes
@@ -11,12 +11,11 @@ import Link from '@atlaskit/link';
11
11
  import { Code } from '@atlaskit/code';
12
12
 
13
13
  <SectionMessage title="Further guidance for Atlassians">
14
- This page covers the Design System visual primitives. For guidance on the broader platform
15
- components — such as the customisation modal, app switcher data, and user personalisation — see{' '}
16
- <Link href="https://hello.atlassian.net/wiki/spaces/navx/pages/5104144812">
17
- navigation resources (Atlassians only)
18
- </Link>
19
- .
14
+
15
+ This page covers the Design System visual primitives. For guidance on the broader platform
16
+ components — such as the customisation modal, app switcher data, and user personalisation — see
17
+ [navigation resources (Atlassians only)](https://hello.atlassian.net/wiki/spaces/navx/pages/5104144812).
18
+
20
19
  </SectionMessage>
21
20
 
22
21
  This guide covers migration from the old [page layout](/components/page-layout),
@@ -134,7 +133,7 @@ This guide covers migration from the old [page layout](/components/page-layout),
134
133
  <td>
135
134
  <Code>useSkipLink</Code> — see{' '}
136
135
  <Link href="/components/navigation-system/layout/examples#custom-skip-links">
137
- custom skip links
136
+ {'custom skip links'}
138
137
  </Link>
139
138
  </td>
140
139
  </tr>
@@ -273,9 +272,10 @@ home and app switcher, previously also in this area, now live in `TopNavStart`.
273
272
  </td>
274
273
  <td>
275
274
  <Link href="/components/navigation-system/top-nav-items/code#createbutton">
276
- CreateButton
277
- </Link>{' '}
278
- inside <Code>&lt;TopNavMiddle&gt;</Code>
275
+ {'CreateButton'}
276
+ </Link>
277
+ {' inside '}
278
+ <Code>&lt;TopNavMiddle&gt;</Code>
279
279
  </td>
280
280
  </tr>
281
281
  <tr>
@@ -293,9 +293,10 @@ home and app switcher, previously also in this area, now live in `TopNavStart`.
293
293
  </td>
294
294
  <td>
295
295
  <Link href="/components/navigation-system/top-nav-items/code#notifications">
296
- Notifications
297
- </Link>{' '}
298
- inside <Code>&lt;TopNavEnd&gt;</Code>
296
+ {'Notifications'}
297
+ </Link>
298
+ {' inside '}
299
+ <Code>&lt;TopNavEnd&gt;</Code>
299
300
  </td>
300
301
  </tr>
301
302
  <tr>
@@ -445,7 +446,7 @@ Side nav items are in the separate
445
446
  </td>
446
447
  <td>
447
448
  <Link href="https://atlaskit.atlassian.com/packages/navigation/side-nav-items#link-menu-item">
448
- LinkMenuItem
449
+ {'LinkMenuItem'}
449
450
  </Link>
450
451
  </td>
451
452
  </tr>
@@ -455,7 +456,7 @@ Side nav items are in the separate
455
456
  </td>
456
457
  <td>
457
458
  <Link href="https://atlaskit.atlassian.com/packages/navigation/side-nav-items#button-menu-item">
458
- ButtonMenuItem
459
+ {'ButtonMenuItem'}
459
460
  </Link>
460
461
  </td>
461
462
  </tr>
@@ -474,7 +475,7 @@ Side nav items are in the separate
474
475
  </td>
475
476
  <td>
476
477
  <Link href="https://atlaskit.atlassian.com/packages/navigation/side-nav-items#menu-section-and-menu-section-heading">
477
- MenuSection
478
+ {'MenuSection'}
478
479
  </Link>
479
480
  </td>
480
481
  </tr>
@@ -484,7 +485,7 @@ Side nav items are in the separate
484
485
  </td>
485
486
  <td>
486
487
  <Link href="https://atlaskit.atlassian.com/packages/navigation/side-nav-items#menu-section-and-menu-section-heading">
487
- MenuSectionHeading
488
+ {'MenuSectionHeading'}
488
489
  </Link>
489
490
  </td>
490
491
  </tr>
@@ -495,7 +496,7 @@ Side nav items are in the separate
495
496
  <td>
496
497
  See{' '}
497
498
  <Link href="https://atlaskit.atlassian.com/packages/navigation/side-nav-items#loading-states">
498
- loading states
499
+ {'loading states'}
499
500
  </Link>
500
501
  </td>
501
502
  </tr>
@@ -50,7 +50,7 @@ function TopNavOld(_ref) {
50
50
  xcss = _ref.xcss,
51
51
  heightProp = _ref.height,
52
52
  _ref$skipLinkLabel = _ref.skipLinkLabel,
53
- skipLinkLabel = _ref$skipLinkLabel === void 0 ? 'Top Bar' : _ref$skipLinkLabel,
53
+ skipLinkLabel = _ref$skipLinkLabel === void 0 ? (0, _fg.fg)('platform_dst_nav4_skip_link_a11y_1') ? 'Global navigation' : 'Top Bar' : _ref$skipLinkLabel,
54
54
  testId = _ref.testId,
55
55
  providedId = _ref.id,
56
56
  customThemeConfig = _ref.customTheme;
@@ -81,8 +81,7 @@ function TopNavOld(_ref) {
81
81
  });
82
82
  (0, _useSkipLinkInternal.useSkipLinkInternal)({
83
83
  id: id,
84
- label: skipLinkLabel,
85
- isHidden: (0, _fg.fg)('platform_dst_nav4_skip_link_a11y_1')
84
+ label: skipLinkLabel
86
85
  });
87
86
  var height = heightProp !== null && heightProp !== void 0 ? heightProp : (0, _fg.fg)('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
88
87
  var customTheme = (0, _useCustomTheme.useCustomTheme)(customThemeConfig);
@@ -129,7 +128,7 @@ function TopNavNew(_ref2) {
129
128
  xcss = _ref2.xcss,
130
129
  heightProp = _ref2.height,
131
130
  _ref2$skipLinkLabel = _ref2.skipLinkLabel,
132
- skipLinkLabel = _ref2$skipLinkLabel === void 0 ? 'Top Bar' : _ref2$skipLinkLabel,
131
+ skipLinkLabel = _ref2$skipLinkLabel === void 0 ? (0, _fg.fg)('platform_dst_nav4_skip_link_a11y_1') ? 'Global navigation' : 'Top Bar' : _ref2$skipLinkLabel,
133
132
  testId = _ref2.testId,
134
133
  providedId = _ref2.id,
135
134
  customThemeConfig = _ref2.customTheme;
@@ -160,8 +159,7 @@ function TopNavNew(_ref2) {
160
159
  });
161
160
  (0, _useSkipLinkInternal.useSkipLinkInternal)({
162
161
  id: id,
163
- label: skipLinkLabel,
164
- isHidden: (0, _fg.fg)('platform_dst_nav4_skip_link_a11y_1')
162
+ label: skipLinkLabel
165
163
  });
166
164
  var height = heightProp !== null && heightProp !== void 0 ? heightProp : (0, _fg.fg)('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
167
165
  var customTheme = (0, _useCustomThemeNew.useCustomThemeNew)(customThemeConfig);
@@ -40,7 +40,7 @@ function TopNavOld({
40
40
  children,
41
41
  xcss,
42
42
  height: heightProp,
43
- skipLinkLabel = 'Top Bar',
43
+ skipLinkLabel = fg('platform_dst_nav4_skip_link_a11y_1') ? 'Global navigation' : 'Top Bar',
44
44
  testId,
45
45
  id: providedId,
46
46
  customTheme: customThemeConfig
@@ -62,8 +62,7 @@ function TopNavOld({
62
62
  });
63
63
  useSkipLinkInternal({
64
64
  id,
65
- label: skipLinkLabel,
66
- isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
65
+ label: skipLinkLabel
67
66
  });
68
67
  const height = heightProp !== null && heightProp !== void 0 ? heightProp : fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
69
68
  const customTheme = useCustomTheme(customThemeConfig);
@@ -109,7 +108,7 @@ function TopNavNew({
109
108
  children,
110
109
  xcss,
111
110
  height: heightProp,
112
- skipLinkLabel = 'Top Bar',
111
+ skipLinkLabel = fg('platform_dst_nav4_skip_link_a11y_1') ? 'Global navigation' : 'Top Bar',
113
112
  testId,
114
113
  id: providedId,
115
114
  customTheme: customThemeConfig
@@ -131,8 +130,7 @@ function TopNavNew({
131
130
  });
132
131
  useSkipLinkInternal({
133
132
  id,
134
- label: skipLinkLabel,
135
- isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
133
+ label: skipLinkLabel
136
134
  });
137
135
  const height = heightProp !== null && heightProp !== void 0 ? heightProp : fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
138
136
  const customTheme = useCustomThemeNew(customThemeConfig);
@@ -42,7 +42,7 @@ function TopNavOld(_ref) {
42
42
  xcss = _ref.xcss,
43
43
  heightProp = _ref.height,
44
44
  _ref$skipLinkLabel = _ref.skipLinkLabel,
45
- skipLinkLabel = _ref$skipLinkLabel === void 0 ? 'Top Bar' : _ref$skipLinkLabel,
45
+ skipLinkLabel = _ref$skipLinkLabel === void 0 ? fg('platform_dst_nav4_skip_link_a11y_1') ? 'Global navigation' : 'Top Bar' : _ref$skipLinkLabel,
46
46
  testId = _ref.testId,
47
47
  providedId = _ref.id,
48
48
  customThemeConfig = _ref.customTheme;
@@ -73,8 +73,7 @@ function TopNavOld(_ref) {
73
73
  });
74
74
  useSkipLinkInternal({
75
75
  id: id,
76
- label: skipLinkLabel,
77
- isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
76
+ label: skipLinkLabel
78
77
  });
79
78
  var height = heightProp !== null && heightProp !== void 0 ? heightProp : fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
80
79
  var customTheme = useCustomTheme(customThemeConfig);
@@ -121,7 +120,7 @@ function TopNavNew(_ref2) {
121
120
  xcss = _ref2.xcss,
122
121
  heightProp = _ref2.height,
123
122
  _ref2$skipLinkLabel = _ref2.skipLinkLabel,
124
- skipLinkLabel = _ref2$skipLinkLabel === void 0 ? 'Top Bar' : _ref2$skipLinkLabel,
123
+ skipLinkLabel = _ref2$skipLinkLabel === void 0 ? fg('platform_dst_nav4_skip_link_a11y_1') ? 'Global navigation' : 'Top Bar' : _ref2$skipLinkLabel,
125
124
  testId = _ref2.testId,
126
125
  providedId = _ref2.id,
127
126
  customThemeConfig = _ref2.customTheme;
@@ -152,8 +151,7 @@ function TopNavNew(_ref2) {
152
151
  });
153
152
  useSkipLinkInternal({
154
153
  id: id,
155
- label: skipLinkLabel,
156
- isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
154
+ label: skipLinkLabel
157
155
  });
158
156
  var height = heightProp !== null && heightProp !== void 0 ? heightProp : fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
159
157
  var customTheme = useCustomThemeNew(customThemeConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "11.7.2",
3
+ "version": "11.7.3",
4
4
  "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "license": "Apache-2.0",
@@ -97,7 +97,7 @@
97
97
  "@atlaskit/banner": "^15.3.0",
98
98
  "@atlaskit/breadcrumbs": "^17.8.0",
99
99
  "@atlaskit/docs": "^12.3.0",
100
- "@atlaskit/dropdown-menu": "^21.2.0",
100
+ "@atlaskit/dropdown-menu": "^21.3.0",
101
101
  "@atlaskit/flag": "^19.0.0",
102
102
  "@atlaskit/form": "^18.3.0",
103
103
  "@atlaskit/heading": "^8.0.0",
@@ -117,7 +117,7 @@
117
117
  "@atlaskit/pragmatic-drag-and-drop-live-region": "^2.1.0",
118
118
  "@atlaskit/radio": "^10.2.0",
119
119
  "@atlaskit/section-message": "^10.2.0",
120
- "@atlaskit/select": "^23.1.0",
120
+ "@atlaskit/select": "^23.2.0",
121
121
  "@atlaskit/skeleton": "^4.4.0",
122
122
  "@atlaskit/spotlight": "^4.2.0",
123
123
  "@atlaskit/tabs": "^21.3.0",