@atlaskit/atlassian-navigation 5.7.4 → 6.0.1

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 (201) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-products/tsconfig.json +3 -0
  4. package/app-switcher/package.json +1 -8
  5. package/app-switcher/types/package.json +1 -8
  6. package/atlassian-navigation/package.json +1 -8
  7. package/constants/package.json +1 -8
  8. package/create/package.json +1 -8
  9. package/create/types/package.json +1 -8
  10. package/custom-product-home/package.json +1 -8
  11. package/dist/cjs/components/AppSwitcher/index.js +1 -0
  12. package/dist/cjs/components/ProductHome/product-home.js +0 -1
  13. package/dist/cjs/components/Profile/index.js +1 -0
  14. package/dist/cjs/controllers/overflow/index.js +4 -0
  15. package/dist/cjs/theme/theme-helpers.js +6 -0
  16. package/dist/es2019/components/AppSwitcher/index.js +1 -0
  17. package/dist/es2019/components/ProductHome/product-home.js +0 -3
  18. package/dist/es2019/components/Profile/index.js +1 -0
  19. package/dist/es2019/controllers/overflow/index.js +4 -0
  20. package/dist/es2019/theme/theme-helpers.js +6 -0
  21. package/dist/esm/components/AppSwitcher/index.js +1 -0
  22. package/dist/esm/components/ProductHome/product-home.js +0 -3
  23. package/dist/esm/components/Profile/index.js +1 -0
  24. package/dist/esm/controllers/overflow/index.js +4 -0
  25. package/dist/esm/theme/theme-helpers.js +6 -0
  26. package/help/package.json +1 -8
  27. package/help/types/package.json +1 -8
  28. package/icon-button/package.json +1 -8
  29. package/icon-button/types/package.json +1 -8
  30. package/notifications/package.json +1 -8
  31. package/notifications/types/package.json +1 -8
  32. package/overflow/package.json +1 -8
  33. package/package.json +29 -37
  34. package/primary-button/package.json +1 -8
  35. package/primary-button/types/package.json +1 -8
  36. package/primary-dropdown-button/package.json +1 -8
  37. package/primary-dropdown-button/types/package.json +1 -8
  38. package/product-home/package.json +1 -8
  39. package/product-home/types/package.json +1 -8
  40. package/profile/package.json +1 -8
  41. package/profile/types/package.json +1 -8
  42. package/search/package.json +1 -8
  43. package/search/types/package.json +1 -8
  44. package/settings/package.json +1 -8
  45. package/settings/types/package.json +1 -8
  46. package/sign-in/package.json +1 -8
  47. package/sign-in/types/package.json +1 -8
  48. package/skeleton/package.json +1 -8
  49. package/skeleton-base/package.json +1 -8
  50. package/skeleton-base/types/package.json +1 -8
  51. package/skeleton-create-button/package.json +1 -8
  52. package/skeleton-create-button/types/package.json +1 -8
  53. package/skeleton-help-button/package.json +1 -8
  54. package/skeleton-icon-button/package.json +1 -8
  55. package/skeleton-icon-button/types/package.json +1 -8
  56. package/skeleton-notification-button/package.json +1 -8
  57. package/skeleton-primary-button/package.json +1 -8
  58. package/skeleton-primary-button/types/package.json +1 -8
  59. package/skeleton-settings-button/package.json +1 -8
  60. package/skeleton-switcher-button/package.json +1 -8
  61. package/theme/types/package.json +1 -8
  62. package/theme-generator/package.json +1 -8
  63. package/theme-provider/package.json +1 -8
  64. package/themes/package.json +1 -8
  65. package/types/package.json +1 -8
  66. package/dist/types-ts4.5/common/action-section-desktop-css.d.ts +0 -5
  67. package/dist/types-ts4.5/common/action-section-mobile-css.d.ts +0 -5
  68. package/dist/types-ts4.5/common/constants.d.ts +0 -11
  69. package/dist/types-ts4.5/common/styles.d.ts +0 -2
  70. package/dist/types-ts4.5/components/AppSwitcher/app-switcher-nav4.d.ts +0 -6
  71. package/dist/types-ts4.5/components/AppSwitcher/app-switcher.d.ts +0 -14
  72. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -3
  73. package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +0 -5
  74. package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +0 -17
  75. package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +0 -22
  76. package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +0 -121
  77. package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +0 -7
  78. package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +0 -10
  79. package/dist/types-ts4.5/components/Create/index.d.ts +0 -18
  80. package/dist/types-ts4.5/components/Create/styles.d.ts +0 -3
  81. package/dist/types-ts4.5/components/Create/types.d.ts +0 -39
  82. package/dist/types-ts4.5/components/Help/index.d.ts +0 -13
  83. package/dist/types-ts4.5/components/Help/types.d.ts +0 -9
  84. package/dist/types-ts4.5/components/IconButton/index.d.ts +0 -13
  85. package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +0 -7
  86. package/dist/types-ts4.5/components/IconButton/styles.d.ts +0 -3
  87. package/dist/types-ts4.5/components/IconButton/types.d.ts +0 -104
  88. package/dist/types-ts4.5/components/Notifications/index.d.ts +0 -14
  89. package/dist/types-ts4.5/components/Notifications/types.d.ts +0 -9
  90. package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +0 -13
  91. package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +0 -7
  92. package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +0 -3
  93. package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +0 -51
  94. package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +0 -13
  95. package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +0 -17
  96. package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +0 -10
  97. package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +0 -7
  98. package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +0 -10
  99. package/dist/types-ts4.5/components/ProductHome/app-home.d.ts +0 -20
  100. package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +0 -18
  101. package/dist/types-ts4.5/components/ProductHome/index.d.ts +0 -2
  102. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +0 -22
  103. package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +0 -8
  104. package/dist/types-ts4.5/components/ProductHome/types.d.ts +0 -154
  105. package/dist/types-ts4.5/components/ProductHome/utils.d.ts +0 -1
  106. package/dist/types-ts4.5/components/Profile/index.d.ts +0 -16
  107. package/dist/types-ts4.5/components/Profile/profile.d.ts +0 -14
  108. package/dist/types-ts4.5/components/Profile/skeleton.d.ts +0 -2
  109. package/dist/types-ts4.5/components/Profile/types.d.ts +0 -5
  110. package/dist/types-ts4.5/components/Search/index.d.ts +0 -17
  111. package/dist/types-ts4.5/components/Search/skeleton.d.ts +0 -6
  112. package/dist/types-ts4.5/components/Search/types.d.ts +0 -19
  113. package/dist/types-ts4.5/components/Settings/index.d.ts +0 -13
  114. package/dist/types-ts4.5/components/Settings/types.d.ts +0 -5
  115. package/dist/types-ts4.5/components/SignIn/index.d.ts +0 -13
  116. package/dist/types-ts4.5/components/SignIn/skeleton.d.ts +0 -2
  117. package/dist/types-ts4.5/components/SignIn/types.d.ts +0 -5
  118. package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +0 -17
  119. package/dist/types-ts4.5/components/SkeletonCreateButton/types.d.ts +0 -15
  120. package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +0 -17
  121. package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +0 -21
  122. package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +0 -17
  123. package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +0 -28
  124. package/dist/types-ts4.5/controllers/overflow/index.d.ts +0 -37
  125. package/dist/types-ts4.5/controllers/overflow/overflow-context.d.ts +0 -17
  126. package/dist/types-ts4.5/controllers/overflow/overflow-provider.d.ts +0 -3
  127. package/dist/types-ts4.5/controllers/overflow/types.d.ts +0 -7
  128. package/dist/types-ts4.5/controllers/overflow/use-overflow-controller.d.ts +0 -7
  129. package/dist/types-ts4.5/controllers/overflow/use-overflow-status.d.ts +0 -11
  130. package/dist/types-ts4.5/entry-points/app-switcher-types.d.ts +0 -1
  131. package/dist/types-ts4.5/entry-points/app-switcher.d.ts +0 -2
  132. package/dist/types-ts4.5/entry-points/atlassian-navigation.d.ts +0 -1
  133. package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
  134. package/dist/types-ts4.5/entry-points/create-types.d.ts +0 -1
  135. package/dist/types-ts4.5/entry-points/create.d.ts +0 -1
  136. package/dist/types-ts4.5/entry-points/custom-product-home.d.ts +0 -1
  137. package/dist/types-ts4.5/entry-points/help-types.d.ts +0 -1
  138. package/dist/types-ts4.5/entry-points/help.d.ts +0 -1
  139. package/dist/types-ts4.5/entry-points/icon-button-types.d.ts +0 -1
  140. package/dist/types-ts4.5/entry-points/icon-button.d.ts +0 -1
  141. package/dist/types-ts4.5/entry-points/notifications-types.d.ts +0 -1
  142. package/dist/types-ts4.5/entry-points/notifications.d.ts +0 -1
  143. package/dist/types-ts4.5/entry-points/overflow.d.ts +0 -1
  144. package/dist/types-ts4.5/entry-points/primary-button-types.d.ts +0 -1
  145. package/dist/types-ts4.5/entry-points/primary-button.d.ts +0 -1
  146. package/dist/types-ts4.5/entry-points/primary-dropdown-button-types.d.ts +0 -1
  147. package/dist/types-ts4.5/entry-points/primary-dropdown-button.d.ts +0 -1
  148. package/dist/types-ts4.5/entry-points/product-home-types.d.ts +0 -1
  149. package/dist/types-ts4.5/entry-points/product-home.d.ts +0 -1
  150. package/dist/types-ts4.5/entry-points/profile-types.d.ts +0 -1
  151. package/dist/types-ts4.5/entry-points/profile.d.ts +0 -1
  152. package/dist/types-ts4.5/entry-points/search-types.d.ts +0 -1
  153. package/dist/types-ts4.5/entry-points/search.d.ts +0 -1
  154. package/dist/types-ts4.5/entry-points/settings-types.d.ts +0 -1
  155. package/dist/types-ts4.5/entry-points/settings.d.ts +0 -1
  156. package/dist/types-ts4.5/entry-points/sign-in-types.d.ts +0 -1
  157. package/dist/types-ts4.5/entry-points/sign-in.d.ts +0 -1
  158. package/dist/types-ts4.5/entry-points/skeleton-base-types.d.ts +0 -1
  159. package/dist/types-ts4.5/entry-points/skeleton-base.d.ts +0 -1
  160. package/dist/types-ts4.5/entry-points/skeleton-create-button-types.d.ts +0 -1
  161. package/dist/types-ts4.5/entry-points/skeleton-create-button.d.ts +0 -1
  162. package/dist/types-ts4.5/entry-points/skeleton-help-button.d.ts +0 -3
  163. package/dist/types-ts4.5/entry-points/skeleton-icon-button-types.d.ts +0 -1
  164. package/dist/types-ts4.5/entry-points/skeleton-icon-button.d.ts +0 -1
  165. package/dist/types-ts4.5/entry-points/skeleton-notification-button.d.ts +0 -2
  166. package/dist/types-ts4.5/entry-points/skeleton-primary-button-types.d.ts +0 -1
  167. package/dist/types-ts4.5/entry-points/skeleton-primary-button.d.ts +0 -1
  168. package/dist/types-ts4.5/entry-points/skeleton-settings-button.d.ts +0 -2
  169. package/dist/types-ts4.5/entry-points/skeleton-switcher-button.d.ts +0 -2
  170. package/dist/types-ts4.5/entry-points/theme-generator.d.ts +0 -1
  171. package/dist/types-ts4.5/entry-points/theme-provider.d.ts +0 -1
  172. package/dist/types-ts4.5/entry-points/theme-types.d.ts +0 -1
  173. package/dist/types-ts4.5/entry-points/themes.d.ts +0 -1
  174. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  175. package/dist/types-ts4.5/index.d.ts +0 -36
  176. package/dist/types-ts4.5/nav4-skeleton-help-button.d.ts +0 -8
  177. package/dist/types-ts4.5/nav4-skeleton-notification-button.d.ts +0 -9
  178. package/dist/types-ts4.5/nav4-skeleton-settings-button.d.ts +0 -8
  179. package/dist/types-ts4.5/nav4-skeleton-switcher-button.d.ts +0 -8
  180. package/dist/types-ts4.5/skeleton-help-button.d.ts +0 -19
  181. package/dist/types-ts4.5/skeleton-notification-button.d.ts +0 -20
  182. package/dist/types-ts4.5/skeleton-settings-button.d.ts +0 -20
  183. package/dist/types-ts4.5/skeleton-switcher-button.d.ts +0 -35
  184. package/dist/types-ts4.5/skeleton.d.ts +0 -5
  185. package/dist/types-ts4.5/theme/atlassian-theme.d.ts +0 -5
  186. package/dist/types-ts4.5/theme/convert-hex-shorthand.d.ts +0 -1
  187. package/dist/types-ts4.5/theme/default-theme-brand-refresh.d.ts +0 -1
  188. package/dist/types-ts4.5/theme/default-theme.d.ts +0 -6
  189. package/dist/types-ts4.5/theme/generate-text-color.d.ts +0 -1
  190. package/dist/types-ts4.5/theme/get-box-shadow.d.ts +0 -1
  191. package/dist/types-ts4.5/theme/get-contrast-color.d.ts +0 -1
  192. package/dist/types-ts4.5/theme/hex-to-rgba.d.ts +0 -1
  193. package/dist/types-ts4.5/theme/index.d.ts +0 -6
  194. package/dist/types-ts4.5/theme/theme-context.d.ts +0 -3
  195. package/dist/types-ts4.5/theme/theme-generator.d.ts +0 -7
  196. package/dist/types-ts4.5/theme/theme-helpers.d.ts +0 -5
  197. package/dist/types-ts4.5/theme/theme-provider.d.ts +0 -11
  198. package/dist/types-ts4.5/theme/themes.d.ts +0 -6
  199. package/dist/types-ts4.5/theme/types.d.ts +0 -97
  200. package/dist/types-ts4.5/theme/use-theme.d.ts +0 -2
  201. package/dist/types-ts4.5/utils.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
+ gating.
10
+ - Updated dependencies
11
+
12
+ ## 6.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
17
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
18
+
19
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
20
+
21
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
22
+
23
+ ```diff
24
+ - "typesVersions": {
25
+ - ">=4.5 <4.9": {
26
+ - "*": [
27
+ - "dist/types-ts4.5/*",
28
+ - "dist/types-ts4.5/index.d.ts"
29
+ - ]
30
+ - }
31
+ - },
32
+ ```
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+
3
38
  ## 5.7.4
4
39
 
5
40
  ### Patch Changes
@@ -54,6 +54,9 @@
54
54
  },
55
55
  {
56
56
  "path": "../../width-detector/afm-cc/tsconfig.json"
57
+ },
58
+ {
59
+ "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
57
60
  }
58
61
  ]
59
62
  }
@@ -54,6 +54,9 @@
54
54
  },
55
55
  {
56
56
  "path": "../../width-detector/afm-products/tsconfig.json"
57
+ },
58
+ {
59
+ "path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
57
60
  }
58
61
  ]
59
62
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/app-switcher.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/app-switcher.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/app-switcher.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/app-switcher-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/app-switcher-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/app-switcher-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/atlassian-navigation.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/atlassian-navigation.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/atlassian-navigation.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/constants.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/constants.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/constants.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/create.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/create.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/create.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/create-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/create-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/create-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/custom-product-home.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/custom-product-home.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/custom-product-home.d.ts"
17
10
  }
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  // exists only to extract props
8
8
  // eslint-disable-next-line import/no-anonymous-default-export
9
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
10
  var _default = exports.default = function _default(_props) {};
@@ -28,7 +28,6 @@ var _excluded = ["aria-label", "href", "icon", "logo", "logoMaxWidth", "onClick"
28
28
  * @jsx jsx
29
29
  */
30
30
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
31
- // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
32
31
  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); }
33
32
  var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
34
33
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
@@ -75,4 +75,5 @@ var Profile = exports.Profile = /*#__PURE__*/(0, _react.forwardRef)(function (pr
75
75
 
76
76
  // This exists only to extract props.
77
77
  // eslint-disable-next-line import/no-anonymous-default-export
78
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
78
79
  var _default = exports.default = function _default(_props) {};
@@ -59,9 +59,12 @@ var OverflowProvider = exports.OverflowProvider = function OverflowProvider(_ref
59
59
  *
60
60
  * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
61
61
  */
62
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
62
63
  var useOverflowStatus = exports.useOverflowStatus = function useOverflowStatus() {
63
64
  return (0, _react.useContext)(OverflowContext);
64
65
  };
66
+
67
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
65
68
  var useOverflowController = exports.useOverflowController = function useOverflowController(nodes) {
66
69
  var items = _react.default.Children.toArray(nodes);
67
70
  var _useState = (0, _react.useState)(9999),
@@ -153,4 +156,5 @@ var useOverflowController = exports.useOverflowController = function useOverflow
153
156
 
154
157
  // Used to extract props for useOverflowStatus();
155
158
  // eslint-disable-next-line import/no-anonymous-default-export
159
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
156
160
  var _default = exports.default = function _default(_props) {};
@@ -47,6 +47,8 @@ var completeTriplet = function completeTriplet(colors) {
47
47
  var isTriplet = function isTriplet(colors) {
48
48
  return colors[0] === colors[1] && colors[1] === colors[2];
49
49
  };
50
+
51
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
50
52
  var convertHexShorthand = exports.convertHexShorthand = function convertHexShorthand(color) {
51
53
  if (isShortHexColor(color)) {
52
54
  // when color = '#ccc', matches is structured as ['#ccc', 'c', 'c', 'c', ...]
@@ -64,10 +66,14 @@ var convertHexShorthand = exports.convertHexShorthand = function convertHexShort
64
66
  // return the color as is when it's not hex color shorthand
65
67
  return color;
66
68
  };
69
+
70
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
67
71
  var generateTextColor = exports.generateTextColor = function generateTextColor(color) {
68
72
  var converted = convertHexShorthand(color);
69
73
  return _chromatism.default.contrastRatio(converted).hex;
70
74
  };
75
+
76
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
71
77
  var getContrastColor = exports.getContrastColor = function getContrastColor(contrastValue, opacityValue, color) {
72
78
  return hexToRGBA(_chromatism.default.contrast(contrastValue, color).hex, opacityValue);
73
79
  };
@@ -1,3 +1,4 @@
1
1
  // exists only to extract props
2
2
  // eslint-disable-next-line import/no-anonymous-default-export
3
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
4
  export default (_props => {});
@@ -7,9 +7,6 @@ import React, { Fragment } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
-
11
- // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
12
-
13
10
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
14
11
  import { useTheme } from '../../theme';
15
12
  import { stripEmptyProperties } from '../../utils';
@@ -66,4 +66,5 @@ export const Profile = /*#__PURE__*/forwardRef((props, ref) => {
66
66
 
67
67
  // This exists only to extract props.
68
68
  // eslint-disable-next-line import/no-anonymous-default-export
69
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
69
70
  export default (_props => {});
@@ -49,7 +49,10 @@ export const OverflowProvider = ({
49
49
  *
50
50
  * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
51
51
  */
52
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
52
53
  export const useOverflowStatus = () => useContext(OverflowContext);
54
+
55
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
53
56
  export const useOverflowController = nodes => {
54
57
  const items = React.Children.toArray(nodes);
55
58
  const [width, setWidth] = useState(9999);
@@ -130,4 +133,5 @@ export const useOverflowController = nodes => {
130
133
 
131
134
  // Used to extract props for useOverflowStatus();
132
135
  // eslint-disable-next-line import/no-anonymous-default-export
136
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
133
137
  export default (_props => {});
@@ -16,6 +16,8 @@ const completeHexColor = colors => {
16
16
  };
17
17
  const completeTriplet = colors => `#${repeat(colors[1], 6)}`;
18
18
  const isTriplet = colors => colors[0] === colors[1] && colors[1] === colors[2];
19
+
20
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
19
21
  export const convertHexShorthand = color => {
20
22
  if (isShortHexColor(color)) {
21
23
  // when color = '#ccc', matches is structured as ['#ccc', 'c', 'c', 'c', ...]
@@ -33,9 +35,13 @@ export const convertHexShorthand = color => {
33
35
  // return the color as is when it's not hex color shorthand
34
36
  return color;
35
37
  };
38
+
39
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
36
40
  export const generateTextColor = color => {
37
41
  const converted = convertHexShorthand(color);
38
42
  return chromatism.contrastRatio(converted).hex;
39
43
  };
44
+
45
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
40
46
  export const getContrastColor = (contrastValue, opacityValue, color) => hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
41
47
  export { getBoxShadow } from './get-box-shadow';
@@ -1,3 +1,4 @@
1
1
  // exists only to extract props
2
2
  // eslint-disable-next-line import/no-anonymous-default-export
3
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
4
  export default (function (_props) {});
@@ -10,9 +10,6 @@ import React, { Fragment } from 'react';
10
10
 
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { css, jsx } from '@emotion/react';
13
-
14
- // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
15
-
16
13
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
17
14
  import { useTheme } from '../../theme';
18
15
  import { stripEmptyProperties } from '../../utils';
@@ -66,4 +66,5 @@ export var Profile = /*#__PURE__*/forwardRef(function (props, ref) {
66
66
 
67
67
  // This exists only to extract props.
68
68
  // eslint-disable-next-line import/no-anonymous-default-export
69
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
69
70
  export default (function (_props) {});
@@ -51,9 +51,12 @@ export var OverflowProvider = function OverflowProvider(_ref) {
51
51
  *
52
52
  * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
53
53
  */
54
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
54
55
  export var useOverflowStatus = function useOverflowStatus() {
55
56
  return useContext(OverflowContext);
56
57
  };
58
+
59
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
57
60
  export var useOverflowController = function useOverflowController(nodes) {
58
61
  var items = React.Children.toArray(nodes);
59
62
  var _useState = useState(9999),
@@ -145,4 +148,5 @@ export var useOverflowController = function useOverflowController(nodes) {
145
148
 
146
149
  // Used to extract props for useOverflowStatus();
147
150
  // eslint-disable-next-line import/no-anonymous-default-export
151
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
148
152
  export default (function (_props) {});
@@ -32,6 +32,8 @@ var completeTriplet = function completeTriplet(colors) {
32
32
  var isTriplet = function isTriplet(colors) {
33
33
  return colors[0] === colors[1] && colors[1] === colors[2];
34
34
  };
35
+
36
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
35
37
  export var convertHexShorthand = function convertHexShorthand(color) {
36
38
  if (isShortHexColor(color)) {
37
39
  // when color = '#ccc', matches is structured as ['#ccc', 'c', 'c', 'c', ...]
@@ -49,10 +51,14 @@ export var convertHexShorthand = function convertHexShorthand(color) {
49
51
  // return the color as is when it's not hex color shorthand
50
52
  return color;
51
53
  };
54
+
55
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
52
56
  export var generateTextColor = function generateTextColor(color) {
53
57
  var converted = convertHexShorthand(color);
54
58
  return chromatism.contrastRatio(converted).hex;
55
59
  };
60
+
61
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
56
62
  export var getContrastColor = function getContrastColor(contrastValue, opacityValue, color) {
57
63
  return hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
58
64
  };
package/help/package.json CHANGED
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/help.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/help.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/help.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/help-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/help-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/help-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/icon-button.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/icon-button.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/icon-button.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/icon-button-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/icon-button-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/icon-button-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/notifications.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/notifications.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/notifications.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/notifications-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/notifications-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/notifications-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/overflow.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/overflow.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/overflow.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "5.7.4",
3
+ "version": "6.0.1",
4
4
  "description": "A horizontal navigation component for Atlassian apps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,14 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": [
24
16
  "**/*.compiled.css"
25
17
  ],
@@ -43,17 +35,18 @@
43
35
  }
44
36
  },
45
37
  "dependencies": {
46
- "@atlaskit/analytics-namespaced-context": "^7.3.0",
47
- "@atlaskit/button": "^23.11.0",
48
- "@atlaskit/css": "0.19.4",
49
- "@atlaskit/ds-lib": "^7.0.0",
50
- "@atlaskit/icon": "^35.0.0",
51
- "@atlaskit/logo": "^20.1.0",
52
- "@atlaskit/popup": "^4.19.0",
53
- "@atlaskit/primitives": "^19.0.0",
54
- "@atlaskit/tokens": "^13.0.0",
55
- "@atlaskit/tooltip": "^22.2.0",
56
- "@atlaskit/width-detector": "^5.1.0",
38
+ "@atlaskit/analytics-namespaced-context": "^8.0.0",
39
+ "@atlaskit/button": "^24.1.0",
40
+ "@atlaskit/css": "1.0.1",
41
+ "@atlaskit/ds-lib": "^8.0.0",
42
+ "@atlaskit/icon": "^36.0.0",
43
+ "@atlaskit/logo": "^21.1.0",
44
+ "@atlaskit/popup": "^5.0.0",
45
+ "@atlaskit/primitives": "^20.0.0",
46
+ "@atlaskit/tokens": "^15.0.0",
47
+ "@atlaskit/tooltip": "^23.0.0",
48
+ "@atlaskit/width-detector": "^6.0.0",
49
+ "@atlassian/react-compiler-gating": "^0.2.0",
57
50
  "@babel/runtime": "^7.0.0",
58
51
  "@emotion/react": "^11.7.1",
59
52
  "chromatism": "^2.6.0",
@@ -66,29 +59,28 @@
66
59
  "@af/accessibility-testing": "workspace:^",
67
60
  "@af/integration-testing": "workspace:^",
68
61
  "@af/visual-regression": "workspace:^",
69
- "@atlaskit/analytics-next": "^11.2.0",
70
- "@atlaskit/atlassian-notifications": "^0.8.0",
71
- "@atlaskit/avatar": "^25.14.0",
72
- "@atlaskit/badge": "^18.6.0",
73
- "@atlaskit/docs": "^11.8.0",
74
- "@atlaskit/drawer": "^12.1.0",
75
- "@atlaskit/dropdown-menu": "^16.8.0",
76
- "@atlaskit/form": "^15.5.0",
77
- "@atlaskit/menu": "^8.5.0",
78
- "@atlaskit/notification-indicator": "^10.1.0",
79
- "@atlaskit/notification-log-client": "^8.1.0",
80
- "@atlaskit/section-message": "^8.12.0",
81
- "@atlaskit/spinner": "^19.1.0",
82
- "@atlaskit/textfield": "^8.3.0",
83
- "@atlassian/react-compiler-gating": "workspace:^",
84
- "@atlassian/switcher": "^48.1.0",
62
+ "@atlaskit/analytics-next": "^12.0.0",
63
+ "@atlaskit/atlassian-notifications": "^1.0.0",
64
+ "@atlaskit/avatar": "^26.0.0",
65
+ "@atlaskit/badge": "^19.0.0",
66
+ "@atlaskit/docs": "^12.0.0",
67
+ "@atlaskit/drawer": "^13.0.0",
68
+ "@atlaskit/dropdown-menu": "^17.0.0",
69
+ "@atlaskit/form": "^16.0.0",
70
+ "@atlaskit/menu": "^9.0.0",
71
+ "@atlaskit/notification-indicator": "^11.0.0",
72
+ "@atlaskit/notification-log-client": "^9.0.0",
73
+ "@atlaskit/section-message": "^9.1.0",
74
+ "@atlaskit/spinner": "^20.0.0",
75
+ "@atlaskit/textfield": "^9.0.0",
76
+ "@atlassian/switcher": "^48.5.0",
85
77
  "@atlassian/switcher-test-utils": "^8.5.0",
86
78
  "@testing-library/react": "^16.3.0",
87
79
  "@testing-library/user-event": "^14.4.3",
88
80
  "jest-emotion": "^10.0.32",
89
81
  "react": "^18.2.0",
90
82
  "react-dom": "^18.2.0",
91
- "react-intl": "^6.6.2"
83
+ "react-intl": "^7.0.0"
92
84
  },
93
85
  "techstack": {
94
86
  "@atlassian/frontend": {
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/primary-button.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/primary-button.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/primary-button.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/primary-button-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/primary-button-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/primary-button-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/primary-dropdown-button.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/primary-dropdown-button.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/primary-dropdown-button.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/primary-dropdown-button-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/primary-dropdown-button-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/primary-dropdown-button-types.d.ts"
17
10
  }