@atlaskit/navigation-system 10.17.4 → 10.17.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 +9 -0
- package/dist/cjs/ui/page-layout/aside.js +1 -2
- package/dist/cjs/ui/page-layout/panel.js +1 -2
- package/dist/cjs/ui/page-layout/ribbon.js +1 -3
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -2
- package/dist/es2019/ui/page-layout/aside.js +2 -2
- package/dist/es2019/ui/page-layout/panel.js +2 -2
- package/dist/es2019/ui/page-layout/ribbon.js +1 -3
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +2 -2
- package/dist/esm/ui/page-layout/aside.js +2 -2
- package/dist/esm/ui/page-layout/panel.js +2 -2
- package/dist/esm/ui/page-layout/ribbon.js +1 -3
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.17.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1715d48a722a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1715d48a722a2) -
|
|
8
|
+
Migrate responsive styling to typed canonical CSS media-query keys. Allow those keys in the UI
|
|
9
|
+
Styling Standard and report non-canonical queries used with `satisfies`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.17.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _usePreviousValue = _interopRequireDefault(require("@atlaskit/ds-lib/use-previous-value"));
|
|
17
17
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
|
-
var _responsive = require("@atlaskit/primitives/responsive");
|
|
19
18
|
var _useSkipLinkInternal = require("../../context/skip-links/use-skip-link-internal");
|
|
20
19
|
var _constants = require("./constants");
|
|
21
20
|
var _dangerouslyHoistCssVarToDocumentRoot = require("./dangerously-hoist-css-var-to-document-root");
|
|
@@ -149,7 +148,7 @@ function Aside(_ref) {
|
|
|
149
148
|
React.createElement(_dangerouslyHoistCssVarToDocumentRoot.DangerouslyHoistCssVarToDocumentRoot, {
|
|
150
149
|
variableName: _constants.UNSAFE_asideLayoutVar,
|
|
151
150
|
value: "0px",
|
|
152
|
-
mediaQuery:
|
|
151
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
153
152
|
responsiveValue: "var(".concat(panelSplitterResizingVar, ", ").concat(asideVariableWidth, ")")
|
|
154
153
|
})
|
|
155
154
|
// ------ END UNSAFE STYLES ------
|
|
@@ -18,7 +18,6 @@ var _useMotion3 = require("@atlaskit/motion/entering/use-motion");
|
|
|
18
18
|
var _exitingPersistence = _interopRequireDefault(require("@atlaskit/motion/exiting-persistence"));
|
|
19
19
|
var _reanimate = require("@atlaskit/motion/reanimate");
|
|
20
20
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
|
-
var _responsive = require("@atlaskit/primitives/responsive");
|
|
22
21
|
var _useSkipLinkInternal = require("../../context/skip-links/use-skip-link-internal");
|
|
23
22
|
var _constants = require("./constants");
|
|
24
23
|
var _dangerouslyHoistCssVarToDocumentRoot = require("./dangerously-hoist-css-var-to-document-root");
|
|
@@ -225,7 +224,7 @@ function Panel(_ref2) {
|
|
|
225
224
|
React.createElement(_dangerouslyHoistCssVarToDocumentRoot.DangerouslyHoistCssVarToDocumentRoot, {
|
|
226
225
|
variableName: _constants.UNSAFE_panelLayoutVar,
|
|
227
226
|
value: "0px",
|
|
228
|
-
mediaQuery:
|
|
227
|
+
mediaQuery: '@media (min-width: 90rem)',
|
|
229
228
|
responsiveValue: "var(".concat(panelSplitterResizingVar, ", ").concat(panelVariableWidth, ")")
|
|
230
229
|
})
|
|
231
230
|
// ------ END UNSAFE STYLES ------
|
|
@@ -10,13 +10,11 @@ require("./ribbon.compiled.css");
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var React = _react;
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var _responsive = require("@atlaskit/primitives/responsive");
|
|
14
13
|
var _constants = require("./constants");
|
|
15
14
|
var _dangerouslyHoistCssVarToDocumentRoot = require("./dangerously-hoist-css-var-to-document-root");
|
|
16
15
|
var _hoistSlotSizesContext = require("./hoist-slot-sizes-context");
|
|
17
16
|
var _useLayoutId = require("./use-layout-id");
|
|
18
17
|
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); }
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
20
18
|
var localSlotLayersStatic = {
|
|
21
19
|
ribbon: 4,
|
|
22
20
|
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
@@ -59,7 +57,7 @@ function UNSAFE_Ribbon(_ref) {
|
|
|
59
57
|
// But also for the panel resizing constraint to work correctly.
|
|
60
58
|
React.createElement(_dangerouslyHoistCssVarToDocumentRoot.DangerouslyHoistCssVarToDocumentRoot, {
|
|
61
59
|
variableName: _constants.UNSAFE_ribbonVar,
|
|
62
|
-
mediaQuery:
|
|
60
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
63
61
|
value: "0px",
|
|
64
62
|
responsiveValue: width
|
|
65
63
|
})
|
|
@@ -23,7 +23,6 @@ var _openLayerObserverNamespaceProvider = require("@atlaskit/layering/open-layer
|
|
|
23
23
|
var _useOpenLayerObserver = require("@atlaskit/layering/use-open-layer-observer");
|
|
24
24
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
25
25
|
var _elementAdapter = require("@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter");
|
|
26
|
-
var _responsive = require("@atlaskit/primitives/responsive");
|
|
27
26
|
var _useSkipLinkInternal = require("../../../context/skip-links/use-skip-link-internal");
|
|
28
27
|
var _topNavStartElement = require("../../../context/top-nav-start/top-nav-start-element");
|
|
29
28
|
var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
|
|
@@ -791,7 +790,7 @@ function SideNavInternal(_ref) {
|
|
|
791
790
|
}), /*#__PURE__*/_react.default.createElement(_dangerouslyHoistCssVarToDocumentRoot.DangerouslyHoistCssVarToDocumentRoot, {
|
|
792
791
|
variableName: _constants.sideNavLiveWidthVar,
|
|
793
792
|
value: "0px",
|
|
794
|
-
mediaQuery:
|
|
793
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
795
794
|
responsiveValue: isExpandedOnDesktop ? "var(".concat(panelSplitterResizingVar, ", ").concat(clampedWidth, ")") : 0
|
|
796
795
|
}), dangerouslyHoistSlotSizes &&
|
|
797
796
|
/*#__PURE__*/
|
|
@@ -6,7 +6,7 @@ import { useContext, useEffect, useRef, useState } from 'react';
|
|
|
6
6
|
import usePreviousValue from '@atlaskit/ds-lib/use-previous-value';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
11
11
|
import { UNSAFE_asideLayoutVar, asidePanelSplitterId, asideVar } from './constants';
|
|
12
12
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
@@ -135,7 +135,7 @@ export function Aside({
|
|
|
135
135
|
React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
136
136
|
variableName: UNSAFE_asideLayoutVar,
|
|
137
137
|
value: "0px",
|
|
138
|
-
mediaQuery: media
|
|
138
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
139
139
|
responsiveValue: `var(${panelSplitterResizingVar}, ${asideVariableWidth})`
|
|
140
140
|
})
|
|
141
141
|
// ------ END UNSAFE STYLES ------
|
|
@@ -9,7 +9,7 @@ import ExitingPersistence from '@atlaskit/motion/exiting-persistence';
|
|
|
9
9
|
import { Reanimate } from '@atlaskit/motion/reanimate';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
14
14
|
import { UNSAFE_panelLayoutVar, panelPanelSplitterId, panelVar, sideNavLiveWidthVar } from './constants';
|
|
15
15
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
@@ -213,7 +213,7 @@ export function Panel({
|
|
|
213
213
|
React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
214
214
|
variableName: UNSAFE_panelLayoutVar,
|
|
215
215
|
value: "0px",
|
|
216
|
-
mediaQuery: media
|
|
216
|
+
mediaQuery: '@media (min-width: 90rem)',
|
|
217
217
|
responsiveValue: `var(${panelSplitterResizingVar}, ${panelVariableWidth})`
|
|
218
218
|
})
|
|
219
219
|
// ------ END UNSAFE STYLES ------
|
|
@@ -3,8 +3,6 @@ import "./ribbon.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useContext } from 'react';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
|
-
import { media } from '@atlaskit/primitives/responsive';
|
|
8
6
|
import { UNSAFE_ribbonVar } from './constants';
|
|
9
7
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
10
8
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
@@ -51,7 +49,7 @@ export function UNSAFE_Ribbon({
|
|
|
51
49
|
// But also for the panel resizing constraint to work correctly.
|
|
52
50
|
React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
53
51
|
variableName: UNSAFE_ribbonVar,
|
|
54
|
-
mediaQuery: media
|
|
52
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
55
53
|
value: "0px",
|
|
56
54
|
responsiveValue: width
|
|
57
55
|
})
|
|
@@ -13,7 +13,7 @@ import { useOpenLayerObserver } from '@atlaskit/layering/use-open-layer-observer
|
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
import { useSkipLinkInternal } from '../../../context/skip-links/use-skip-link-internal';
|
|
18
18
|
import { TopNavStartElement } from '../../../context/top-nav-start/top-nav-start-element';
|
|
19
19
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
@@ -782,7 +782,7 @@ function SideNavInternal({
|
|
|
782
782
|
}), /*#__PURE__*/React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
783
783
|
variableName: sideNavLiveWidthVar,
|
|
784
784
|
value: "0px",
|
|
785
|
-
mediaQuery: media
|
|
785
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
786
786
|
responsiveValue: isExpandedOnDesktop ? `var(${panelSplitterResizingVar}, ${clampedWidth})` : 0
|
|
787
787
|
}), dangerouslyHoistSlotSizes &&
|
|
788
788
|
/*#__PURE__*/
|
|
@@ -8,7 +8,7 @@ import { useContext, useEffect, useRef, useState } from 'react';
|
|
|
8
8
|
import usePreviousValue from '@atlaskit/ds-lib/use-previous-value';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
13
13
|
import { UNSAFE_asideLayoutVar, asidePanelSplitterId, asideVar } from './constants';
|
|
14
14
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
@@ -140,7 +140,7 @@ export function Aside(_ref) {
|
|
|
140
140
|
React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
141
141
|
variableName: UNSAFE_asideLayoutVar,
|
|
142
142
|
value: "0px",
|
|
143
|
-
mediaQuery: media
|
|
143
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
144
144
|
responsiveValue: "var(".concat(panelSplitterResizingVar, ", ").concat(asideVariableWidth, ")")
|
|
145
145
|
})
|
|
146
146
|
// ------ END UNSAFE STYLES ------
|
|
@@ -11,7 +11,7 @@ import ExitingPersistence from '@atlaskit/motion/exiting-persistence';
|
|
|
11
11
|
import { Reanimate } from '@atlaskit/motion/reanimate';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
16
16
|
import { UNSAFE_panelLayoutVar, panelPanelSplitterId, panelVar, sideNavLiveWidthVar } from './constants';
|
|
17
17
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
@@ -216,7 +216,7 @@ export function Panel(_ref2) {
|
|
|
216
216
|
React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
217
217
|
variableName: UNSAFE_panelLayoutVar,
|
|
218
218
|
value: "0px",
|
|
219
|
-
mediaQuery: media
|
|
219
|
+
mediaQuery: '@media (min-width: 90rem)',
|
|
220
220
|
responsiveValue: "var(".concat(panelSplitterResizingVar, ", ").concat(panelVariableWidth, ")")
|
|
221
221
|
})
|
|
222
222
|
// ------ END UNSAFE STYLES ------
|
|
@@ -3,8 +3,6 @@ import "./ribbon.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useContext } from 'react';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
|
-
import { media } from '@atlaskit/primitives/responsive';
|
|
8
6
|
import { UNSAFE_ribbonVar } from './constants';
|
|
9
7
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
10
8
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
@@ -51,7 +49,7 @@ export function UNSAFE_Ribbon(_ref) {
|
|
|
51
49
|
// But also for the panel resizing constraint to work correctly.
|
|
52
50
|
React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
53
51
|
variableName: UNSAFE_ribbonVar,
|
|
54
|
-
mediaQuery: media
|
|
52
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
55
53
|
value: "0px",
|
|
56
54
|
responsiveValue: width
|
|
57
55
|
})
|
|
@@ -17,7 +17,7 @@ import { useOpenLayerObserver } from '@atlaskit/layering/use-open-layer-observer
|
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
import { useSkipLinkInternal } from '../../../context/skip-links/use-skip-link-internal';
|
|
22
22
|
import { TopNavStartElement } from '../../../context/top-nav-start/top-nav-start-element';
|
|
23
23
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
@@ -782,7 +782,7 @@ function SideNavInternal(_ref) {
|
|
|
782
782
|
}), /*#__PURE__*/React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
783
783
|
variableName: sideNavLiveWidthVar,
|
|
784
784
|
value: "0px",
|
|
785
|
-
mediaQuery: media
|
|
785
|
+
mediaQuery: '@media (min-width: 64rem)',
|
|
786
786
|
responsiveValue: isExpandedOnDesktop ? "var(".concat(panelSplitterResizingVar, ", ").concat(clampedWidth, ")") : 0
|
|
787
787
|
}), dangerouslyHoistSlotSizes &&
|
|
788
788
|
/*#__PURE__*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.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",
|