@atlaskit/navigation-system 10.17.2 → 10.17.3
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/main/main.js +2 -1
- package/dist/cjs/ui/page-layout/ribbon.js +14 -0
- package/dist/es2019/ui/page-layout/aside.js +1 -1
- package/dist/es2019/ui/page-layout/banner.js +1 -1
- package/dist/es2019/ui/page-layout/main/main.js +2 -1
- package/dist/es2019/ui/page-layout/panel.js +1 -1
- package/dist/es2019/ui/page-layout/ribbon.js +15 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/esm/ui/page-layout/aside.js +1 -1
- package/dist/esm/ui/page-layout/banner.js +1 -1
- package/dist/esm/ui/page-layout/main/main.js +2 -1
- package/dist/esm/ui/page-layout/panel.js +1 -1
- package/dist/esm/ui/page-layout/ribbon.js +15 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.17.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`14307d3138fd3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14307d3138fd3) -
|
|
8
|
+
Refactor styles to use statically analyzable values and type-checked inline constants for Compiled
|
|
9
|
+
and Atlaspack incremental builds, preserving existing styling behavior.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.17.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -12,9 +12,10 @@ var React = _react;
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _useSkipLink = require("../../../context/skip-links/use-skip-link");
|
|
15
|
-
var _constants = require("../constants");
|
|
16
15
|
var _useLayoutId = require("../use-layout-id");
|
|
17
16
|
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); }
|
|
17
|
+
var contentInsetBlockStartStatic = "calc(var(--n_bnrM, 0px) + var(--n_tNvM, 0px))";
|
|
18
|
+
var contentHeightWhenFixedStatic = "calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))";
|
|
18
19
|
var mainElementStyles = {
|
|
19
20
|
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _4t3ieqxy _qwfh1wug _13wn1if8",
|
|
20
21
|
print: "_8rrs1wug"
|
|
@@ -17,6 +17,20 @@ var _hoistSlotSizesContext = require("./hoist-slot-sizes-context");
|
|
|
17
17
|
var _useLayoutId = require("./use-layout-id");
|
|
18
18
|
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
19
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
20
|
+
var localSlotLayersStatic = {
|
|
21
|
+
ribbon: 4,
|
|
22
|
+
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
23
|
+
// It has the same z-index value, but is rendered after the top nav in the DOM so is stacked above.
|
|
24
|
+
sideNavPanelSplitterFHS: 4,
|
|
25
|
+
topBar: 4,
|
|
26
|
+
banner: 4,
|
|
27
|
+
// When FHS is enabled, the side nav is layered below the top nav,
|
|
28
|
+
// but above the panel
|
|
29
|
+
bannerFHS: 3,
|
|
30
|
+
topNavFHS: 3,
|
|
31
|
+
sideNav: 2,
|
|
32
|
+
panelSmallViewports: 1
|
|
33
|
+
};
|
|
20
34
|
var styles = {
|
|
21
35
|
root: "_nd5l1c99 _1reo15vq _18m915vq _4t3i1osq _152tidpf _kqsw1if8 _vchhusvi _1pbyegat _1e0cglyw _dm2518uv"
|
|
22
36
|
};
|
|
@@ -8,7 +8,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
|
import { media } from '@atlaskit/primitives/responsive';
|
|
10
10
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
11
|
-
import { asidePanelSplitterId, asideVar
|
|
11
|
+
import { UNSAFE_asideLayoutVar, asidePanelSplitterId, asideVar } from './constants';
|
|
12
12
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
13
13
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
14
14
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
@@ -6,7 +6,7 @@ import { useContext } from 'react';
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
8
8
|
import { useIsFhsEnabled } from '../fhs-rollout/use-is-fhs-enabled';
|
|
9
|
-
import { bannerMountedVar,
|
|
9
|
+
import { bannerMountedVar, UNSAFE_bannerVar } from './constants';
|
|
10
10
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
11
11
|
import { HoistCssVarToLocalGrid } from './hoist-css-var-to-local-grid';
|
|
12
12
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
@@ -5,8 +5,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { useSkipLink } from '../../../context/skip-links/use-skip-link';
|
|
8
|
-
import { contentHeightWhenFixed, contentInsetBlockStart } from '../constants';
|
|
9
8
|
import { useLayoutId } from '../use-layout-id';
|
|
9
|
+
const contentInsetBlockStartStatic = `calc(var(--n_bnrM, 0px) + var(--n_tNvM, 0px))`;
|
|
10
|
+
const contentHeightWhenFixedStatic = `calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))`;
|
|
10
11
|
const mainElementStyles = {
|
|
11
12
|
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _4t3ieqxy _qwfh1wug _13wn1if8",
|
|
12
13
|
print: "_8rrs1wug"
|
|
@@ -11,7 +11,7 @@ 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
|
import { media } from '@atlaskit/primitives/responsive';
|
|
13
13
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
14
|
-
import {
|
|
14
|
+
import { UNSAFE_panelLayoutVar, panelPanelSplitterId, panelVar, sideNavLiveWidthVar } from './constants';
|
|
15
15
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
16
16
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
17
17
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
@@ -5,10 +5,24 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
7
|
import { media } from '@atlaskit/primitives/responsive';
|
|
8
|
-
import {
|
|
8
|
+
import { UNSAFE_ribbonVar } from './constants';
|
|
9
9
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
10
10
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
11
11
|
import { useLayoutId } from './use-layout-id';
|
|
12
|
+
const localSlotLayersStatic = {
|
|
13
|
+
ribbon: 4,
|
|
14
|
+
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
15
|
+
// It has the same z-index value, but is rendered after the top nav in the DOM so is stacked above.
|
|
16
|
+
sideNavPanelSplitterFHS: 4,
|
|
17
|
+
topBar: 4,
|
|
18
|
+
banner: 4,
|
|
19
|
+
// When FHS is enabled, the side nav is layered below the top nav,
|
|
20
|
+
// but above the panel
|
|
21
|
+
bannerFHS: 3,
|
|
22
|
+
topNavFHS: 3,
|
|
23
|
+
sideNav: 2,
|
|
24
|
+
panelSmallViewports: 1
|
|
25
|
+
};
|
|
12
26
|
const styles = {
|
|
13
27
|
root: "_nd5l1c99 _1reo15vq _18m915vq _4t3i1osq _152tidpf _kqsw1if8 _vchhusvi _1pbyegat _1e0cglyw _dm2518uv"
|
|
14
28
|
};
|
|
@@ -17,7 +17,7 @@ import { media } from '@atlaskit/primitives/responsive';
|
|
|
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';
|
|
20
|
-
import {
|
|
20
|
+
import { UNSAFE_sideNavLayoutVar, openLayerObserverSideNavNamespace, openLayerObserverTopNavStartNamespace, sideNavLiveWidthVar, sideNavPanelSplitterId, sideNavVar } from '../constants';
|
|
21
21
|
import { DangerouslyHoistCssVarToDocumentRoot } from '../dangerously-hoist-css-var-to-document-root';
|
|
22
22
|
import { DangerouslyHoistSlotSizes } from '../hoist-slot-sizes-context';
|
|
23
23
|
import { PanelSplitterProvider } from '../panel-splitter/provider';
|
|
@@ -11,7 +11,7 @@ import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-the
|
|
|
11
11
|
import { HasDefaultBackgroundColorContext } from '../../top-nav-items/themed/has-default-background-color-context';
|
|
12
12
|
import { useCustomTheme } from '../../top-nav-items/themed/use-custom-theme';
|
|
13
13
|
import { useCustomThemeNew } from '../../top-nav-items/themed/use-custom-theme-new';
|
|
14
|
-
import {
|
|
14
|
+
import { UNSAFE_topNavVar, topNavMountedVar } from '../constants';
|
|
15
15
|
import { DangerouslyHoistCssVarToDocumentRoot } from '../dangerously-hoist-css-var-to-document-root';
|
|
16
16
|
import { HoistCssVarToLocalGrid } from '../hoist-css-var-to-local-grid';
|
|
17
17
|
import { DangerouslyHoistSlotSizes } from '../hoist-slot-sizes-context';
|
|
@@ -10,7 +10,7 @@ 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
|
import { media } from '@atlaskit/primitives/responsive';
|
|
12
12
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
13
|
-
import { asidePanelSplitterId, asideVar
|
|
13
|
+
import { UNSAFE_asideLayoutVar, asidePanelSplitterId, asideVar } from './constants';
|
|
14
14
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
15
15
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
16
16
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
@@ -6,7 +6,7 @@ import { useContext } from 'react';
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
8
8
|
import { useIsFhsEnabled } from '../fhs-rollout/use-is-fhs-enabled';
|
|
9
|
-
import { bannerMountedVar,
|
|
9
|
+
import { bannerMountedVar, UNSAFE_bannerVar } from './constants';
|
|
10
10
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
11
11
|
import { HoistCssVarToLocalGrid } from './hoist-css-var-to-local-grid';
|
|
12
12
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
@@ -5,8 +5,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { useSkipLink } from '../../../context/skip-links/use-skip-link';
|
|
8
|
-
import { contentHeightWhenFixed, contentInsetBlockStart } from '../constants';
|
|
9
8
|
import { useLayoutId } from '../use-layout-id';
|
|
9
|
+
var contentInsetBlockStartStatic = "calc(var(--n_bnrM, 0px) + var(--n_tNvM, 0px))";
|
|
10
|
+
var contentHeightWhenFixedStatic = "calc(100vh - var(--n_bnrM, 0px) - var(--n_tNvM, 0px))";
|
|
10
11
|
var mainElementStyles = {
|
|
11
12
|
root: "_nd5l1gzg _1reo1wug _18m91wug _19121cl4 _152timx3 _4t3ieqxy _qwfh1wug _13wn1if8",
|
|
12
13
|
print: "_8rrs1wug"
|
|
@@ -13,7 +13,7 @@ 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
|
import { media } from '@atlaskit/primitives/responsive';
|
|
15
15
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
16
|
-
import {
|
|
16
|
+
import { UNSAFE_panelLayoutVar, panelPanelSplitterId, panelVar, sideNavLiveWidthVar } from './constants';
|
|
17
17
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
18
18
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
19
19
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
@@ -5,10 +5,24 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
7
|
import { media } from '@atlaskit/primitives/responsive';
|
|
8
|
-
import {
|
|
8
|
+
import { UNSAFE_ribbonVar } from './constants';
|
|
9
9
|
import { DangerouslyHoistCssVarToDocumentRoot } from './dangerously-hoist-css-var-to-document-root';
|
|
10
10
|
import { DangerouslyHoistSlotSizes } from './hoist-slot-sizes-context';
|
|
11
11
|
import { useLayoutId } from './use-layout-id';
|
|
12
|
+
var localSlotLayersStatic = {
|
|
13
|
+
ribbon: 4,
|
|
14
|
+
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
15
|
+
// It has the same z-index value, but is rendered after the top nav in the DOM so is stacked above.
|
|
16
|
+
sideNavPanelSplitterFHS: 4,
|
|
17
|
+
topBar: 4,
|
|
18
|
+
banner: 4,
|
|
19
|
+
// When FHS is enabled, the side nav is layered below the top nav,
|
|
20
|
+
// but above the panel
|
|
21
|
+
bannerFHS: 3,
|
|
22
|
+
topNavFHS: 3,
|
|
23
|
+
sideNav: 2,
|
|
24
|
+
panelSmallViewports: 1
|
|
25
|
+
};
|
|
12
26
|
var styles = {
|
|
13
27
|
root: "_nd5l1c99 _1reo15vq _18m915vq _4t3i1osq _152tidpf _kqsw1if8 _vchhusvi _1pbyegat _1e0cglyw _dm2518uv"
|
|
14
28
|
};
|
|
@@ -21,7 +21,7 @@ import { media } from '@atlaskit/primitives/responsive';
|
|
|
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';
|
|
24
|
-
import {
|
|
24
|
+
import { UNSAFE_sideNavLayoutVar, openLayerObserverSideNavNamespace, openLayerObserverTopNavStartNamespace, sideNavLiveWidthVar, sideNavPanelSplitterId, sideNavVar } from '../constants';
|
|
25
25
|
import { DangerouslyHoistCssVarToDocumentRoot } from '../dangerously-hoist-css-var-to-document-root';
|
|
26
26
|
import { DangerouslyHoistSlotSizes } from '../hoist-slot-sizes-context';
|
|
27
27
|
import { PanelSplitterProvider } from '../panel-splitter/provider';
|
|
@@ -11,7 +11,7 @@ import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-the
|
|
|
11
11
|
import { HasDefaultBackgroundColorContext } from '../../top-nav-items/themed/has-default-background-color-context';
|
|
12
12
|
import { useCustomTheme } from '../../top-nav-items/themed/use-custom-theme';
|
|
13
13
|
import { useCustomThemeNew } from '../../top-nav-items/themed/use-custom-theme-new';
|
|
14
|
-
import {
|
|
14
|
+
import { UNSAFE_topNavVar, topNavMountedVar } from '../constants';
|
|
15
15
|
import { DangerouslyHoistCssVarToDocumentRoot } from '../dangerously-hoist-css-var-to-document-root';
|
|
16
16
|
import { HoistCssVarToLocalGrid } from '../hoist-css-var-to-local-grid';
|
|
17
17
|
import { DangerouslyHoistSlotSizes } from '../hoist-slot-sizes-context';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.3",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
65
65
|
"@atlaskit/icon": "^37.7.0",
|
|
66
66
|
"@atlaskit/layering": "^5.2.0",
|
|
67
|
-
"@atlaskit/logo": "^23.
|
|
67
|
+
"@atlaskit/logo": "^23.1.0",
|
|
68
68
|
"@atlaskit/motion": "^8.8.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|