@atlaskit/navigation-system 10.5.3 → 10.5.4
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 +8 -0
- package/dist/cjs/components/skip-links/focus-element.js +1 -1
- package/dist/cjs/ui/top-nav-items/themed/use-custom-theme-new.js +2 -2
- package/dist/es2019/components/skip-links/focus-element.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/use-custom-theme-new.js +1 -1
- package/dist/esm/components/skip-links/focus-element.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/use-custom-theme-new.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`88a1176b97a25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88a1176b97a25) -
|
|
8
|
+
Internal TypeScript typecheck fixes for ts7 (tsgo) adoption. No functional or API changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 10.5.3
|
|
4
12
|
|
|
5
13
|
### 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-
|
|
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
|
|
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,
|
|
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-
|
|
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-
|
|
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
|
+
"version": "10.5.4",
|
|
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",
|
|
@@ -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.
|
|
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",
|