@atlaskit/navigation-system 10.9.2 → 10.10.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,16 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 10.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b7302e44fd76d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7302e44fd76d) -
8
+ [ux] Adjusts TopNav header height. Gated by the fg: platform_dst_ads_appswitcher_improvements
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 10.9.2
4
15
 
5
16
  ### Patch Changes
@@ -61,7 +61,7 @@ function TopNavOld(_ref) {
61
61
  label: skipLinkLabel,
62
62
  isHidden: (0, _platformFeatureFlags.fg)('platform_dst_nav4_skip_link_a11y_1')
63
63
  });
64
- var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled ? 56 : 48;
64
+ var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled || (0, _platformFeatureFlags.fg)('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
65
65
  var customTheme = (0, _useCustomTheme.useCustomTheme)(customThemeConfig);
66
66
  var _useSideNavVisibility = (0, _useSideNavVisibility3.useSideNavVisibility)(),
67
67
  isExpandedOnDesktop = _useSideNavVisibility.isExpandedOnDesktop;
@@ -113,7 +113,7 @@ function TopNavNew(_ref2) {
113
113
  label: skipLinkLabel,
114
114
  isHidden: (0, _platformFeatureFlags.fg)('platform_dst_nav4_skip_link_a11y_1')
115
115
  });
116
- var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled ? 56 : 48;
116
+ var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled || (0, _platformFeatureFlags.fg)('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
117
117
  var customTheme = (0, _useCustomThemeNew.useCustomThemeNew)(customThemeConfig);
118
118
  var hasDefaultBackground = customTheme.isEnabled ? customTheme.hasDefaultBackground : true;
119
119
  var _useSideNavVisibility2 = (0, _useSideNavVisibility3.useSideNavVisibility)(),
@@ -54,7 +54,7 @@ function TopNavOld({
54
54
  label: skipLinkLabel,
55
55
  isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
56
56
  });
57
- const height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled ? 56 : 48;
57
+ const height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled || fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
58
58
  const customTheme = useCustomTheme(customThemeConfig);
59
59
  const {
60
60
  isExpandedOnDesktop
@@ -107,7 +107,7 @@ function TopNavNew({
107
107
  label: skipLinkLabel,
108
108
  isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
109
109
  });
110
- const height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled ? 56 : 48;
110
+ const height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled || fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
111
111
  const customTheme = useCustomThemeNew(customThemeConfig);
112
112
  const hasDefaultBackground = customTheme.isEnabled ? customTheme.hasDefaultBackground : true;
113
113
  const {
@@ -54,7 +54,7 @@ function TopNavOld(_ref) {
54
54
  label: skipLinkLabel,
55
55
  isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
56
56
  });
57
- var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled ? 56 : 48;
57
+ var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled || fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
58
58
  var customTheme = useCustomTheme(customThemeConfig);
59
59
  var _useSideNavVisibility = useSideNavVisibility(),
60
60
  isExpandedOnDesktop = _useSideNavVisibility.isExpandedOnDesktop;
@@ -106,7 +106,7 @@ function TopNavNew(_ref2) {
106
106
  label: skipLinkLabel,
107
107
  isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
108
108
  });
109
- var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled ? 56 : 48;
109
+ var height = heightProp !== null && heightProp !== void 0 ? heightProp : isFhsEnabled || fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
110
110
  var customTheme = useCustomThemeNew(customThemeConfig);
111
111
  var hasDefaultBackground = customTheme.isEnabled ? customTheme.hasDefaultBackground : true;
112
112
  var _useSideNavVisibility2 = useSideNavVisibility(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "10.9.2",
3
+ "version": "10.10.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",