@atlaskit/navigation-system 5.9.1 → 5.9.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 +14 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +2 -7
- package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +1 -4
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -3
- package/dist/cjs/ui/page-layout/side-nav/toggle-button.js +1 -3
- package/dist/cjs/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -4
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +1 -3
- package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.js +1 -4
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +1 -3
- package/dist/cjs/ui/page-layout/top-nav/top-nav.js +1 -4
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +1 -4
- package/dist/cjs/ui/top-nav-items/search.js +1 -4
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +2 -7
- package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +1 -4
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -3
- package/dist/es2019/ui/page-layout/side-nav/toggle-button.js +1 -3
- package/dist/es2019/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -4
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +1 -3
- package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.js +1 -4
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +1 -3
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -4
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +1 -4
- package/dist/es2019/ui/top-nav-items/search.js +1 -4
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +2 -7
- package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +1 -4
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -3
- package/dist/esm/ui/page-layout/side-nav/toggle-button.js +1 -3
- package/dist/esm/ui/page-layout/side-nav/use-side-nav-toggle-keyboard-shortcut.js +1 -4
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +1 -3
- package/dist/esm/ui/page-layout/top-nav/top-nav-middle.js +1 -4
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +1 -3
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -4
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +1 -4
- package/dist/esm/ui/top-nav-items/search.js +1 -4
- package/dist/types/context/top-nav-start/top-nav-start-context-provider.d.ts +1 -1
- package/dist/types/ui/page-layout/side-nav/toggle-button-provider.d.ts +1 -1
- package/dist/types-ts4.5/context/top-nav-start/top-nav-start-context-provider.d.ts +1 -1
- package/dist/types-ts4.5/ui/page-layout/side-nav/toggle-button-provider.d.ts +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 5.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c17bb4f3e9cb0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c17bb4f3e9cb0) -
|
|
8
|
+
A feature gate has been removed. The FHS rollout has fully transitioned from a feature gate to a
|
|
9
|
+
context value instead.
|
|
10
|
+
|
|
11
|
+
## 5.9.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 5.9.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -20,7 +20,6 @@ var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
|
20
20
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
21
21
|
var _useStableRef = _interopRequireDefault(require("@atlaskit/ds-lib/use-stable-ref"));
|
|
22
22
|
var _openLayerObserver = require("@atlaskit/layering/experimental/open-layer-observer");
|
|
23
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
23
|
var _combine = require("@atlaskit/pragmatic-drag-and-drop/combine");
|
|
25
24
|
var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
|
|
26
25
|
var _blockDraggingToIframes = require("@atlaskit/pragmatic-drag-and-drop/element/block-dragging-to-iframes");
|
|
@@ -60,9 +59,7 @@ var MaybeTooltip = function MaybeTooltip(_ref) {
|
|
|
60
59
|
var tooltipContent = _ref.tooltipContent,
|
|
61
60
|
shortcut = _ref.shortcut,
|
|
62
61
|
children = _ref.children;
|
|
63
|
-
var isFhsEnabled = (0,
|
|
64
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
65
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
62
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
66
63
|
if (tooltipContent && isFhsEnabled) {
|
|
67
64
|
return /*#__PURE__*/React.createElement(_tooltip.default, {
|
|
68
65
|
content: tooltipContent,
|
|
@@ -97,9 +94,7 @@ var PortaledPanelSplitter = function PortaledPanelSplitter(_ref2) {
|
|
|
97
94
|
position = _ref2.position,
|
|
98
95
|
tooltipContent = _ref2.tooltipContent,
|
|
99
96
|
shortcut = _ref2.shortcut;
|
|
100
|
-
var isFhsEnabled = (0,
|
|
101
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
102
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
97
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
103
98
|
var splitterRef = (0, _react.useRef)(null);
|
|
104
99
|
var labelId = (0, _useId.useId)();
|
|
105
100
|
// Separate state used for the input range width to remove the UI's dependency on the "persisted" layout state value being updated
|
|
@@ -11,7 +11,6 @@ require("./side-nav-content.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
|
|
16
15
|
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
16
|
/**
|
|
@@ -45,9 +44,7 @@ var fullHeightSidebarStyles = {
|
|
|
45
44
|
function _SideNavContent(_ref, forwardedRef) {
|
|
46
45
|
var children = _ref.children,
|
|
47
46
|
testId = _ref.testId;
|
|
48
|
-
var isFhsEnabled = (0,
|
|
49
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
50
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
47
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
51
48
|
var internalRef = (0, _react.useRef)(null);
|
|
52
49
|
var mergedRef = (0, _react.useMemo)(function () {
|
|
53
50
|
return (0, _mergeRefs.default)([internalRef, forwardedRef]);
|
|
@@ -107,9 +107,7 @@ function SideNavInternal(_ref) {
|
|
|
107
107
|
onPeekEnd = _ref.onPeekEnd,
|
|
108
108
|
providedId = _ref.id,
|
|
109
109
|
canToggleWithShortcut = _ref.canToggleWithShortcut;
|
|
110
|
-
var isFhsEnabled = (0,
|
|
111
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
112
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
110
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
113
111
|
var id = (0, _idUtils.useLayoutId)({
|
|
114
112
|
providedId: providedId
|
|
115
113
|
});
|
|
@@ -51,9 +51,7 @@ var SideNavToggleButton = exports.SideNavToggleButton = function SideNavToggleBu
|
|
|
51
51
|
testId = _ref.testId,
|
|
52
52
|
interactionName = _ref.interactionName,
|
|
53
53
|
onClick = _ref.onClick;
|
|
54
|
-
var isFhsEnabled = (0,
|
|
55
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
56
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
54
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
57
55
|
var _useSideNavVisibility = (0, _useSideNavVisibility2.useSideNavVisibility)({
|
|
58
56
|
defaultCollapsed: defaultCollapsed
|
|
59
57
|
}),
|
|
@@ -9,7 +9,6 @@ var _react = require("react");
|
|
|
9
9
|
var _bindEventListener = require("bind-event-listener");
|
|
10
10
|
var _useStableRef = _interopRequireDefault(require("@atlaskit/ds-lib/use-stable-ref"));
|
|
11
11
|
var _openLayerObserver = require("@atlaskit/layering/experimental/open-layer-observer");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
|
|
14
13
|
var _isSideNavShortcutEnabledContext = require("./is-side-nav-shortcut-enabled-context");
|
|
15
14
|
var _useToggleSideNav = require("./use-toggle-side-nav");
|
|
@@ -18,9 +17,7 @@ var _useToggleSideNav = require("./use-toggle-side-nav");
|
|
|
18
17
|
*/
|
|
19
18
|
function useSideNavToggleKeyboardShortcut(_ref) {
|
|
20
19
|
var canToggleWithShortcut = _ref.canToggleWithShortcut;
|
|
21
|
-
var isFhsEnabled = (0,
|
|
22
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
23
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
20
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
24
21
|
var openLayerObserver = (0, _openLayerObserver.useOpenLayerObserver)();
|
|
25
22
|
var toggleVisibilityByShortcut = (0, _useToggleSideNav.useToggleSideNav)({
|
|
26
23
|
trigger: 'keyboard'
|
|
@@ -48,9 +48,7 @@ function TopNavEnd(_ref) {
|
|
|
48
48
|
label = _ref$label === void 0 ? 'Actions' : _ref$label,
|
|
49
49
|
_ref$showMoreButtonLa = _ref.showMoreButtonLabel,
|
|
50
50
|
showMoreButtonLabel = _ref$showMoreButtonLa === void 0 ? 'Show more' : _ref$showMoreButtonLa;
|
|
51
|
-
var isFhsEnabled = (0,
|
|
52
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
53
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
51
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
54
52
|
var _useState = (0, _react.useState)(false),
|
|
55
53
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
56
54
|
isOpen = _useState2[0],
|
|
@@ -9,7 +9,6 @@ exports.TopNavMiddle = TopNavMiddle;
|
|
|
9
9
|
require("./top-nav-middle.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
|
|
14
13
|
var styles = {
|
|
15
14
|
root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0 _181n11p5 _1j8b15b0 _lagd1bp4 _1t4c1ris _12e8h9n0",
|
|
@@ -26,9 +25,7 @@ var styles = {
|
|
|
26
25
|
*/
|
|
27
26
|
function TopNavMiddle(_ref) {
|
|
28
27
|
var children = _ref.children;
|
|
29
|
-
var isFhsEnabled = (0,
|
|
30
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
31
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
28
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
32
29
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
30
|
className: (0, _runtime.ax)([styles.root, isFhsEnabled && styles.fullHeightSidebar])
|
|
34
31
|
}, children);
|
|
@@ -138,9 +138,7 @@ function TopNavStart(_ref3) {
|
|
|
138
138
|
var children = _ref3.children,
|
|
139
139
|
testId = _ref3.testId,
|
|
140
140
|
sideNavToggleButton = _ref3.sideNavToggleButton;
|
|
141
|
-
var isFhsEnabled = (0,
|
|
142
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
143
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
141
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
144
142
|
var ref = (0, _react.useContext)(_topNavStartContext.TopNavStartAttachRef);
|
|
145
143
|
var elementRef = (0, _react.useRef)(null);
|
|
146
144
|
|
|
@@ -12,7 +12,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _skipLinksContext = require("../../../context/skip-links/skip-links-context");
|
|
17
16
|
var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
|
|
18
17
|
var _hasCustomThemeContext = require("../../top-nav-items/themed/has-custom-theme-context");
|
|
@@ -61,9 +60,7 @@ function TopNav(_ref) {
|
|
|
61
60
|
testId = _ref.testId,
|
|
62
61
|
providedId = _ref.id,
|
|
63
62
|
UNSAFE_theme = _ref.UNSAFE_theme;
|
|
64
|
-
var isFhsEnabled = (0,
|
|
65
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
66
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
63
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
67
64
|
var dangerouslyHoistSlotSizes = (0, _react.useContext)(_hoistSlotSizesContext.DangerouslyHoistSlotSizes);
|
|
68
65
|
var id = (0, _idUtils.useLayoutId)({
|
|
69
66
|
providedId: providedId
|
|
@@ -11,7 +11,6 @@ require("./app-logo.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@compiled/react");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
17
16
|
var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
|
|
@@ -54,9 +53,7 @@ var AppLogo = exports.AppLogo = function AppLogo(_ref) {
|
|
|
54
53
|
href = _ref.href,
|
|
55
54
|
icon = _ref.icon,
|
|
56
55
|
onClick = _ref.onClick;
|
|
57
|
-
var isFhsEnabled = (0,
|
|
58
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
56
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
60
57
|
var ref = (0, _react.useRef)(null);
|
|
61
58
|
var nameRef = (0, _react.useRef)(null);
|
|
62
59
|
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
@@ -12,7 +12,6 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _css = require("@atlaskit/css");
|
|
14
14
|
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
16
|
var _useIsFhsEnabled = require("../fhs-rollout/use-is-fhs-enabled");
|
|
18
17
|
var _migration = require("./themed/migration");
|
|
@@ -38,9 +37,7 @@ var Search = exports.Search = function Search(_ref) {
|
|
|
38
37
|
elemAfter = _ref.elemAfter,
|
|
39
38
|
interactionName = _ref.interactionName,
|
|
40
39
|
ariaHaspopup = _ref['aria-haspopup'];
|
|
41
|
-
var isFhsEnabled = (0,
|
|
42
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
43
|
-
(0, _useIsFhsEnabled.useIsFhsEnabled)() : (0, _platformFeatureFlags.fg)('navx-full-height-sidebar');
|
|
40
|
+
var isFhsEnabled = (0, _useIsFhsEnabled.useIsFhsEnabled)();
|
|
44
41
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
45
42
|
style: {
|
|
46
43
|
// To win the specificity war against Emotion we move this into inline styles
|
|
@@ -9,7 +9,6 @@ import invariant from 'tiny-invariant';
|
|
|
9
9
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
10
10
|
import useStableRef from '@atlaskit/ds-lib/use-stable-ref';
|
|
11
11
|
import { useOpenLayerObserver } from '@atlaskit/layering/experimental/open-layer-observer';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
14
13
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
15
14
|
import { blockDraggingToIFrames } from '@atlaskit/pragmatic-drag-and-drop/element/block-dragging-to-iframes';
|
|
@@ -50,9 +49,7 @@ const MaybeTooltip = ({
|
|
|
50
49
|
shortcut,
|
|
51
50
|
children
|
|
52
51
|
}) => {
|
|
53
|
-
const isFhsEnabled =
|
|
54
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
55
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
52
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
56
53
|
if (tooltipContent && isFhsEnabled) {
|
|
57
54
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
58
55
|
content: tooltipContent,
|
|
@@ -89,9 +86,7 @@ const PortaledPanelSplitter = ({
|
|
|
89
86
|
tooltipContent,
|
|
90
87
|
shortcut
|
|
91
88
|
}) => {
|
|
92
|
-
const isFhsEnabled =
|
|
93
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
94
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
89
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
95
90
|
const splitterRef = useRef(null);
|
|
96
91
|
const labelId = useId();
|
|
97
92
|
// Separate state used for the input range width to remove the UI's dependency on the "persisted" layout state value being updated
|
|
@@ -3,7 +3,6 @@ import "./side-nav-content.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useMemo, useRef } from 'react';
|
|
5
5
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -38,9 +37,7 @@ function _SideNavContent({
|
|
|
38
37
|
children,
|
|
39
38
|
testId
|
|
40
39
|
}, forwardedRef) {
|
|
41
|
-
const isFhsEnabled =
|
|
42
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
43
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
40
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
44
41
|
const internalRef = useRef(null);
|
|
45
42
|
const mergedRef = useMemo(() => mergeRefs([internalRef, forwardedRef]), [forwardedRef]);
|
|
46
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -91,9 +91,7 @@ function SideNavInternal({
|
|
|
91
91
|
canToggleWithShortcut
|
|
92
92
|
}) {
|
|
93
93
|
var _sideNavState$lastTri;
|
|
94
|
-
const isFhsEnabled =
|
|
95
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
96
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
94
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
97
95
|
const id = useLayoutId({
|
|
98
96
|
providedId
|
|
99
97
|
});
|
|
@@ -38,9 +38,7 @@ export const SideNavToggleButton = ({
|
|
|
38
38
|
interactionName,
|
|
39
39
|
onClick
|
|
40
40
|
}) => {
|
|
41
|
-
const isFhsEnabled =
|
|
42
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
43
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
41
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
44
42
|
const {
|
|
45
43
|
isExpandedOnDesktop: isSideNavExpandedOnDesktop,
|
|
46
44
|
isExpandedOnMobile: isSideNavExpandedOnMobile
|
|
@@ -2,7 +2,6 @@ import { useEffect } from 'react';
|
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
3
|
import useStableRef from '@atlaskit/ds-lib/use-stable-ref';
|
|
4
4
|
import { useOpenLayerObserver } from '@atlaskit/layering/experimental/open-layer-observer';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
7
6
|
import { useIsSideNavShortcutEnabled } from './is-side-nav-shortcut-enabled-context';
|
|
8
7
|
import { useToggleSideNav } from './use-toggle-side-nav';
|
|
@@ -13,9 +12,7 @@ import { useToggleSideNav } from './use-toggle-side-nav';
|
|
|
13
12
|
export function useSideNavToggleKeyboardShortcut({
|
|
14
13
|
canToggleWithShortcut
|
|
15
14
|
}) {
|
|
16
|
-
const isFhsEnabled =
|
|
17
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
18
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
15
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
19
16
|
const openLayerObserver = useOpenLayerObserver();
|
|
20
17
|
const toggleVisibilityByShortcut = useToggleSideNav({
|
|
21
18
|
trigger: 'keyboard'
|
|
@@ -37,9 +37,7 @@ export function TopNavEnd({
|
|
|
37
37
|
label = 'Actions',
|
|
38
38
|
showMoreButtonLabel = 'Show more'
|
|
39
39
|
}) {
|
|
40
|
-
const isFhsEnabled =
|
|
41
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
42
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
40
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
43
41
|
const [isOpen, setIsOpen] = useState(false);
|
|
44
42
|
// Always setting to `false` for the initial render (will flip in an effect for mobile)
|
|
45
43
|
const [isMobile, setIsMobile] = useState(false);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./top-nav-middle.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
7
6
|
const styles = {
|
|
8
7
|
root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0 _181n11p5 _1j8b15b0 _lagd1bp4 _1t4c1ris _12e8h9n0",
|
|
@@ -20,9 +19,7 @@ const styles = {
|
|
|
20
19
|
export function TopNavMiddle({
|
|
21
20
|
children
|
|
22
21
|
}) {
|
|
23
|
-
const isFhsEnabled =
|
|
24
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
25
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
22
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
26
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
24
|
className: ax([styles.root, isFhsEnabled && styles.fullHeightSidebar])
|
|
28
25
|
}, children);
|
|
@@ -133,9 +133,7 @@ export function TopNavStart({
|
|
|
133
133
|
testId,
|
|
134
134
|
sideNavToggleButton
|
|
135
135
|
}) {
|
|
136
|
-
const isFhsEnabled =
|
|
137
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
138
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
136
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
139
137
|
const ref = useContext(TopNavStartAttachRef);
|
|
140
138
|
const elementRef = useRef(null);
|
|
141
139
|
|
|
@@ -3,7 +3,6 @@ import "./top-nav.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useContext, useMemo } from 'react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { useSkipLink } from '../../../context/skip-links/skip-links-context';
|
|
8
7
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
9
8
|
import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-theme-context';
|
|
@@ -49,9 +48,7 @@ export function TopNav({
|
|
|
49
48
|
id: providedId,
|
|
50
49
|
UNSAFE_theme
|
|
51
50
|
}) {
|
|
52
|
-
const isFhsEnabled =
|
|
53
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
54
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
51
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
55
52
|
const dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
|
|
56
53
|
const id = useLayoutId({
|
|
57
54
|
providedId
|
|
@@ -3,7 +3,6 @@ import "./app-logo.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { Anchor, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
8
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
8
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
@@ -46,9 +45,7 @@ export const AppLogo = ({
|
|
|
46
45
|
icon,
|
|
47
46
|
onClick
|
|
48
47
|
}) => {
|
|
49
|
-
const isFhsEnabled =
|
|
50
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
51
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
48
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
52
49
|
const ref = useRef(null);
|
|
53
50
|
const nameRef = useRef(null);
|
|
54
51
|
const hasCustomTheme = useHasCustomTheme();
|
|
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Pressable, Show, Text } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import { useIsFhsEnabled } from '../fhs-rollout/use-is-fhs-enabled';
|
|
10
9
|
import { IconButton } from './themed/migration';
|
|
@@ -29,9 +28,7 @@ export const Search = ({
|
|
|
29
28
|
interactionName,
|
|
30
29
|
'aria-haspopup': ariaHaspopup
|
|
31
30
|
}) => {
|
|
32
|
-
const isFhsEnabled =
|
|
33
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
34
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
31
|
+
const isFhsEnabled = useIsFhsEnabled();
|
|
35
32
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
36
33
|
style: {
|
|
37
34
|
// To win the specificity war against Emotion we move this into inline styles
|
|
@@ -13,7 +13,6 @@ import invariant from 'tiny-invariant';
|
|
|
13
13
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
14
14
|
import useStableRef from '@atlaskit/ds-lib/use-stable-ref';
|
|
15
15
|
import { useOpenLayerObserver } from '@atlaskit/layering/experimental/open-layer-observer';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
18
17
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
19
18
|
import { blockDraggingToIFrames } from '@atlaskit/pragmatic-drag-and-drop/element/block-dragging-to-iframes';
|
|
@@ -50,9 +49,7 @@ var MaybeTooltip = function MaybeTooltip(_ref) {
|
|
|
50
49
|
var tooltipContent = _ref.tooltipContent,
|
|
51
50
|
shortcut = _ref.shortcut,
|
|
52
51
|
children = _ref.children;
|
|
53
|
-
var isFhsEnabled =
|
|
54
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
55
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
52
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
56
53
|
if (tooltipContent && isFhsEnabled) {
|
|
57
54
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
58
55
|
content: tooltipContent,
|
|
@@ -87,9 +84,7 @@ var PortaledPanelSplitter = function PortaledPanelSplitter(_ref2) {
|
|
|
87
84
|
position = _ref2.position,
|
|
88
85
|
tooltipContent = _ref2.tooltipContent,
|
|
89
86
|
shortcut = _ref2.shortcut;
|
|
90
|
-
var isFhsEnabled =
|
|
91
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
92
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
87
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
93
88
|
var splitterRef = useRef(null);
|
|
94
89
|
var labelId = useId();
|
|
95
90
|
// Separate state used for the input range width to remove the UI's dependency on the "persisted" layout state value being updated
|
|
@@ -3,7 +3,6 @@ import "./side-nav-content.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useMemo, useRef } from 'react';
|
|
5
5
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -37,9 +36,7 @@ var fullHeightSidebarStyles = {
|
|
|
37
36
|
function _SideNavContent(_ref, forwardedRef) {
|
|
38
37
|
var children = _ref.children,
|
|
39
38
|
testId = _ref.testId;
|
|
40
|
-
var isFhsEnabled =
|
|
41
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
42
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
39
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
43
40
|
var internalRef = useRef(null);
|
|
44
41
|
var mergedRef = useMemo(function () {
|
|
45
42
|
return mergeRefs([internalRef, forwardedRef]);
|
|
@@ -97,9 +97,7 @@ function SideNavInternal(_ref) {
|
|
|
97
97
|
onPeekEnd = _ref.onPeekEnd,
|
|
98
98
|
providedId = _ref.id,
|
|
99
99
|
canToggleWithShortcut = _ref.canToggleWithShortcut;
|
|
100
|
-
var isFhsEnabled =
|
|
101
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
102
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
100
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
103
101
|
var id = useLayoutId({
|
|
104
102
|
providedId: providedId
|
|
105
103
|
});
|
|
@@ -42,9 +42,7 @@ export var SideNavToggleButton = function SideNavToggleButton(_ref) {
|
|
|
42
42
|
testId = _ref.testId,
|
|
43
43
|
interactionName = _ref.interactionName,
|
|
44
44
|
onClick = _ref.onClick;
|
|
45
|
-
var isFhsEnabled =
|
|
46
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
47
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
45
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
48
46
|
var _useSideNavVisibility = useSideNavVisibility({
|
|
49
47
|
defaultCollapsed: defaultCollapsed
|
|
50
48
|
}),
|
|
@@ -2,7 +2,6 @@ import { useEffect } from 'react';
|
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
3
|
import useStableRef from '@atlaskit/ds-lib/use-stable-ref';
|
|
4
4
|
import { useOpenLayerObserver } from '@atlaskit/layering/experimental/open-layer-observer';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
7
6
|
import { useIsSideNavShortcutEnabled } from './is-side-nav-shortcut-enabled-context';
|
|
8
7
|
import { useToggleSideNav } from './use-toggle-side-nav';
|
|
@@ -12,9 +11,7 @@ import { useToggleSideNav } from './use-toggle-side-nav';
|
|
|
12
11
|
*/
|
|
13
12
|
export function useSideNavToggleKeyboardShortcut(_ref) {
|
|
14
13
|
var canToggleWithShortcut = _ref.canToggleWithShortcut;
|
|
15
|
-
var isFhsEnabled =
|
|
16
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
17
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
14
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
18
15
|
var openLayerObserver = useOpenLayerObserver();
|
|
19
16
|
var toggleVisibilityByShortcut = useToggleSideNav({
|
|
20
17
|
trigger: 'keyboard'
|
|
@@ -39,9 +39,7 @@ export function TopNavEnd(_ref) {
|
|
|
39
39
|
label = _ref$label === void 0 ? 'Actions' : _ref$label,
|
|
40
40
|
_ref$showMoreButtonLa = _ref.showMoreButtonLabel,
|
|
41
41
|
showMoreButtonLabel = _ref$showMoreButtonLa === void 0 ? 'Show more' : _ref$showMoreButtonLa;
|
|
42
|
-
var isFhsEnabled =
|
|
43
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
44
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
42
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
45
43
|
var _useState = useState(false),
|
|
46
44
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47
45
|
isOpen = _useState2[0],
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./top-nav-middle.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
7
6
|
var styles = {
|
|
8
7
|
root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0 _181n11p5 _1j8b15b0 _lagd1bp4 _1t4c1ris _12e8h9n0",
|
|
@@ -19,9 +18,7 @@ var styles = {
|
|
|
19
18
|
*/
|
|
20
19
|
export function TopNavMiddle(_ref) {
|
|
21
20
|
var children = _ref.children;
|
|
22
|
-
var isFhsEnabled =
|
|
23
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
24
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
21
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
25
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
23
|
className: ax([styles.root, isFhsEnabled && styles.fullHeightSidebar])
|
|
27
24
|
}, children);
|
|
@@ -130,9 +130,7 @@ export function TopNavStart(_ref3) {
|
|
|
130
130
|
var children = _ref3.children,
|
|
131
131
|
testId = _ref3.testId,
|
|
132
132
|
sideNavToggleButton = _ref3.sideNavToggleButton;
|
|
133
|
-
var isFhsEnabled =
|
|
134
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
135
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
133
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
136
134
|
var ref = useContext(TopNavStartAttachRef);
|
|
137
135
|
var elementRef = useRef(null);
|
|
138
136
|
|
|
@@ -5,7 +5,6 @@ import "./top-nav.compiled.css";
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useContext, useMemo } from 'react';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { useSkipLink } from '../../../context/skip-links/skip-links-context';
|
|
10
9
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
11
10
|
import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-theme-context';
|
|
@@ -52,9 +51,7 @@ export function TopNav(_ref) {
|
|
|
52
51
|
testId = _ref.testId,
|
|
53
52
|
providedId = _ref.id,
|
|
54
53
|
UNSAFE_theme = _ref.UNSAFE_theme;
|
|
55
|
-
var isFhsEnabled =
|
|
56
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
57
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
54
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
58
55
|
var dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
|
|
59
56
|
var id = useLayoutId({
|
|
60
57
|
providedId: providedId
|
|
@@ -3,7 +3,6 @@ import "./app-logo.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { Anchor, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
8
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
8
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
@@ -45,9 +44,7 @@ export var AppLogo = function AppLogo(_ref) {
|
|
|
45
44
|
href = _ref.href,
|
|
46
45
|
icon = _ref.icon,
|
|
47
46
|
onClick = _ref.onClick;
|
|
48
|
-
var isFhsEnabled =
|
|
49
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
50
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
47
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
51
48
|
var ref = useRef(null);
|
|
52
49
|
var nameRef = useRef(null);
|
|
53
50
|
var hasCustomTheme = useHasCustomTheme();
|
|
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Pressable, Show, Text } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import { useIsFhsEnabled } from '../fhs-rollout/use-is-fhs-enabled';
|
|
10
9
|
import { IconButton } from './themed/migration';
|
|
@@ -29,9 +28,7 @@ export var Search = function Search(_ref) {
|
|
|
29
28
|
elemAfter = _ref.elemAfter,
|
|
30
29
|
interactionName = _ref.interactionName,
|
|
31
30
|
ariaHaspopup = _ref['aria-haspopup'];
|
|
32
|
-
var isFhsEnabled =
|
|
33
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
34
|
-
useIsFhsEnabled() : fg('navx-full-height-sidebar');
|
|
31
|
+
var isFhsEnabled = useIsFhsEnabled();
|
|
35
32
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
36
33
|
style: {
|
|
37
34
|
// To win the specificity war against Emotion we move this into inline styles
|
|
@@ -12,6 +12,6 @@ import React from 'react';
|
|
|
12
12
|
* State is required as opposed to just a ref so that the effects in the side nav can react to the element actually being mounted,
|
|
13
13
|
* as ref values cannot be added as effect dependencies.
|
|
14
14
|
*/
|
|
15
|
-
export declare const TopNavStartProvider: ({ children }: {
|
|
15
|
+
export declare const TopNavStartProvider: ({ children, }: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}) => React.JSX.Element;
|
|
@@ -12,6 +12,6 @@ import React from 'react';
|
|
|
12
12
|
* State is required as opposed to just a ref so that the effects in the side nav can react the element actually being mounted,
|
|
13
13
|
* as ref values cannot be added as effect dependencies.
|
|
14
14
|
*/
|
|
15
|
-
export declare const SideNavToggleButtonProvider: ({ children }: {
|
|
15
|
+
export declare const SideNavToggleButtonProvider: ({ children, }: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}) => React.JSX.Element;
|
|
@@ -12,6 +12,6 @@ import React from 'react';
|
|
|
12
12
|
* State is required as opposed to just a ref so that the effects in the side nav can react to the element actually being mounted,
|
|
13
13
|
* as ref values cannot be added as effect dependencies.
|
|
14
14
|
*/
|
|
15
|
-
export declare const TopNavStartProvider: ({ children }: {
|
|
15
|
+
export declare const TopNavStartProvider: ({ children, }: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}) => React.JSX.Element;
|
|
@@ -12,6 +12,6 @@ import React from 'react';
|
|
|
12
12
|
* State is required as opposed to just a ref so that the effects in the side nav can react the element actually being mounted,
|
|
13
13
|
* as ref values cannot be added as effect dependencies.
|
|
14
14
|
*/
|
|
15
|
-
export declare const SideNavToggleButtonProvider: ({ children }: {
|
|
15
|
+
export declare const SideNavToggleButtonProvider: ({ children, }: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.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",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
70
70
|
"@atlaskit/avatar": "^25.5.0",
|
|
71
71
|
"@atlaskit/button": "^23.6.0",
|
|
72
|
-
"@atlaskit/css": "^0.
|
|
72
|
+
"@atlaskit/css": "^0.17.0",
|
|
73
73
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
74
74
|
"@atlaskit/icon": "^29.0.0",
|
|
75
75
|
"@atlaskit/layering": "^3.4.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
80
80
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
81
81
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
82
|
-
"@atlaskit/primitives": "^16.
|
|
83
|
-
"@atlaskit/tokens": "^8.
|
|
82
|
+
"@atlaskit/primitives": "^16.3.0",
|
|
83
|
+
"@atlaskit/tokens": "^8.3.0",
|
|
84
84
|
"@atlaskit/tooltip": "^20.10.0",
|
|
85
85
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
86
86
|
"@babel/runtime": "^7.0.0",
|
|
@@ -176,9 +176,6 @@
|
|
|
176
176
|
"navx-full-height-sidebar": {
|
|
177
177
|
"type": "boolean"
|
|
178
178
|
},
|
|
179
|
-
"navx-2566-implement-fhs-rollout": {
|
|
180
|
-
"type": "boolean"
|
|
181
|
-
},
|
|
182
179
|
"team25-eu-jira-logo-updates-csm-jsm": {
|
|
183
180
|
"type": "boolean"
|
|
184
181
|
},
|