@atlaskit/navigation-system 10.5.3 → 10.5.5

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,19 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 10.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.5.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`88a1176b97a25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88a1176b97a25) -
14
+ Internal TypeScript typecheck fixes for ts7 (tsgo) adoption. No functional or API changes.
15
+ - Updated dependencies
16
+
3
17
  ## 10.5.3
4
18
 
5
19
  ### Patch Changes
@@ -48,7 +48,7 @@ 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-expect-error - new and not in types yet
51
+ // @ts-ignore - new and not in types yet. Can be removed once we adopt ts7.
52
52
  focusVisible: true
53
53
  });
54
54
  }
@@ -8,7 +8,7 @@ exports.useCustomThemeNew = useCustomThemeNew;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("react");
10
10
  var _appProvider = require("@atlaskit/app-provider");
11
- var _tokens = require("@atlaskit/tokens");
11
+ var _getTokenValue = require("@atlaskit/tokens/get-token-value");
12
12
  var _hex = require("./color-utils/formats/hex");
13
13
  var _useCustomTheme = require("./use-custom-theme");
14
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -41,7 +41,7 @@ function useCustomThemeNew(theme) {
41
41
  if (!value.isEnabled) {
42
42
  return true;
43
43
  }
44
- var defaultBackground = (0, _hex.parseHex)((0, _tokens.getTokenValue)('elevation.surface', colorMode === 'light' ? '#FFFFFF' : '#1F1F21'));
44
+ var defaultBackground = (0, _hex.parseHex)((0, _getTokenValue.getTokenValue)('elevation.surface', colorMode === 'light' ? '#FFFFFF' : '#1F1F21'));
45
45
  return defaultBackground ? value.style.backgroundColor === toRGBString(defaultBackground) : true;
46
46
  }, [value, colorMode]);
47
47
  if (value.isEnabled) {
@@ -43,7 +43,7 @@ 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-expect-error - new and not in types yet
46
+ // @ts-ignore - new and not in types yet. Can be removed once we adopt ts7.
47
47
  focusVisible: true
48
48
  });
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from 'react';
2
2
  import { useColorMode } from '@atlaskit/app-provider';
3
- import { getTokenValue } from '@atlaskit/tokens';
3
+ import { getTokenValue } from '@atlaskit/tokens/get-token-value';
4
4
  import { parseHex } from './color-utils/formats/hex';
5
5
  import { useCustomTheme } from './use-custom-theme';
6
6
  function toRGBString({
@@ -43,7 +43,7 @@ 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-expect-error - new and not in types yet
46
+ // @ts-ignore - new and not in types yet. Can be removed once we adopt ts7.
47
47
  focusVisible: true
48
48
  });
49
49
  }
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { useMemo } from 'react';
5
5
  import { useColorMode } from '@atlaskit/app-provider';
6
- import { getTokenValue } from '@atlaskit/tokens';
6
+ import { getTokenValue } from '@atlaskit/tokens/get-token-value';
7
7
  import { parseHex } from './color-utils/formats/hex';
8
8
  import { useCustomTheme } from './use-custom-theme';
9
9
  function toRGBString(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "10.5.3",
3
+ "version": "10.5.5",
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",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
67
67
  "@atlaskit/popup": "^5.1.0",
68
68
  "@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
69
- "@atlaskit/primitives": "^20.6.0",
69
+ "@atlaskit/primitives": "^21.0.0",
70
70
  "@atlaskit/react-compiler-gating": "^0.2.0",
71
71
  "@atlaskit/side-nav-items": "^2.2.0",
72
72
  "@atlaskit/tokens": "^15.8.0",
@@ -90,7 +90,7 @@
90
90
  "@atlaskit/banner": "^15.1.0",
91
91
  "@atlaskit/breadcrumbs": "^17.5.0",
92
92
  "@atlaskit/dropdown-menu": "^17.1.0",
93
- "@atlaskit/flag": "^18.1.0",
93
+ "@atlaskit/flag": "^18.2.0",
94
94
  "@atlaskit/form": "^16.1.0",
95
95
  "@atlaskit/heading": "^6.2.0",
96
96
  "@atlaskit/inline-dialog": "^19.1.0",
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/skeleton": "^4.2.0",
108
108
  "@atlaskit/spotlight": "^3.0.0",
109
109
  "@atlaskit/textfield": "^9.1.0",
110
- "@atlaskit/top-layer": "^1.6.0",
110
+ "@atlaskit/top-layer": "^1.8.0",
111
111
  "@atlassian/feature-flags-test-utils": "^1.2.0",
112
112
  "@atlassian/gemini": "^1.49.0",
113
113
  "@atlassian/search-dialog": "^10.5.0",