@atlaskit/navigation-system 11.2.0 → 11.2.2

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,22 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 11.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`13952a4f4a1a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/13952a4f4a1a0) -
8
+ Cleanup `feature_gate` `platform-dst-motion-uplift-button`. The motion uplift for buttons and
9
+ other interactive surfaces (button, lozenge dropdown trigger, inline edit read view, page layout
10
+ resize control grab area, and top nav themed anchors/pressables) is now always on.
11
+ - Updated dependencies
12
+
13
+ ## 11.2.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [`6af127aa0b583`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6af127aa0b583) -
18
+ Consolidate the open-layer observer providers in `TopNavEnd`.
19
+
3
20
  ## 11.2.0
4
21
 
5
22
  ### Minor Changes
@@ -18,7 +18,7 @@ var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/sh
18
18
  var _openLayerObserverNamespaceProvider = require("@atlaskit/layering/open-layer-observer-namespace-provider");
19
19
  var _fg = require("@atlaskit/platform-feature-flags/fg");
20
20
  var _popup = require("@atlaskit/popup/popup");
21
- var _compiled = require("@atlaskit/primitives/compiled");
21
+ var _index = require("@atlaskit/primitives/compiled/responsive/index");
22
22
  var _list = require("../../../components/list");
23
23
  var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
24
24
  var _hasCustomThemeContext = require("../../top-nav-items/themed/has-custom-theme-context");
@@ -63,7 +63,7 @@ function TopNavEnd(_ref) {
63
63
  isMobile = _useState4[0],
64
64
  setIsMobile = _useState4[1];
65
65
  // Note: `query` is a stable value between renders
66
- var query = (0, _compiled.UNSAFE_useMediaQuery)('below.sm', function onChange(event) {
66
+ var query = (0, _index.UNSAFE_useMediaQuery)('below.sm', function onChange(event) {
67
67
  setIsMobile(event.matches);
68
68
  // Any time we shift between mobile and desktop
69
69
  // We always close the popup
@@ -75,14 +75,24 @@ function TopNavEnd(_ref) {
75
75
  // Mobile will flip from `false` to `true`.
76
76
  setIsMobile((_query$matches = query === null || query === void 0 ? void 0 : query.matches) !== null && _query$matches !== void 0 ? _query$matches : false);
77
77
  }, [query]);
78
- return /*#__PURE__*/_react.default.createElement("nav", {
78
+
79
+ // The shared provider also covers the mobile overflow popup itself. Keep the
80
+ // previous content-only namespace coverage when the layout gate is disabled.
81
+ var actions = (0, _fg.fg)('platform-dst-chat-panel-layout') ? children : /*#__PURE__*/_react.default.createElement(_openLayerObserverNamespaceProvider.OpenLayerObserverNamespaceProvider, {
82
+ namespace: _constants.openLayerObserverTopNavEndNamespace
83
+ }, children);
84
+ var content = /*#__PURE__*/_react.default.createElement("nav", {
79
85
  "aria-label": label,
80
86
  className: (0, _runtime.ax)([containerStyles.root, hasPersistentItems && containerStyles.withPersistentItems, isFhsEnabled && containerStyles.fullHeightSidebar])
81
87
  }, isMobile ? /*#__PURE__*/_react.default.createElement(_popup.Popup, {
82
88
  isOpen: isOpen,
83
89
  onClose: function onClose() {
84
90
  return setIsOpen(false);
85
- },
91
+ }
92
+ // Top-layer popups need a role to register as a popup with the layer observer.
93
+ ,
94
+ role: (0, _fg.fg)('platform-dst-chat-panel-layout') ? 'dialog' : undefined,
95
+ label: (0, _fg.fg)('platform-dst-chat-panel-layout') ? label : undefined,
86
96
  placement: "bottom-start",
87
97
  shouldRenderToParent: true,
88
98
  content: function content() {
@@ -90,9 +100,7 @@ function TopNavEnd(_ref) {
90
100
  value: false
91
101
  }, /*#__PURE__*/_react.default.createElement(_list.List, {
92
102
  xcss: (0, _react2.cx)(listStyles.root, listStyles.popupContainer)
93
- }, /*#__PURE__*/_react.default.createElement(_openLayerObserverNamespaceProvider.OpenLayerObserverNamespaceProvider, {
94
- namespace: _constants.openLayerObserverTopNavEndNamespace
95
- }, children)));
103
+ }, actions));
96
104
  },
97
105
  trigger: function trigger(triggerProps) {
98
106
  return /*#__PURE__*/_react.default.createElement(_iconButton.IconButton, (0, _extends2.default)({}, triggerProps, {
@@ -107,9 +115,8 @@ function TopNavEnd(_ref) {
107
115
  }
108
116
  }) : /*#__PURE__*/_react.default.createElement(_list.List, {
109
117
  xcss: (0, _react2.cx)(listStyles.root, listStyles.hideOnSmallViewport)
110
- }, /*#__PURE__*/_react.default.createElement(_openLayerObserverNamespaceProvider.OpenLayerObserverNamespaceProvider, {
111
- namespace: _constants.openLayerObserverTopNavEndNamespace
112
- }, children)), hasPersistentItems && /*#__PURE__*/_react.default.createElement(_openLayerObserverNamespaceProvider.OpenLayerObserverNamespaceProvider, {
118
+ }, actions), hasPersistentItems && persistentItems);
119
+ return (0, _fg.fg)('platform-dst-chat-panel-layout') ? /*#__PURE__*/_react.default.createElement(_openLayerObserverNamespaceProvider.OpenLayerObserverNamespaceProvider, {
113
120
  namespace: _constants.openLayerObserverTopNavEndNamespace
114
- }, persistentItems));
121
+ }, content) : content;
115
122
  }
@@ -6,7 +6,6 @@
6
6
  ._14mj1kw7:after{border-radius:inherit}
7
7
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
8
8
  ._9v7aze3t:after{inset:var(--ds-space-0,0)}
9
- ._v5649dqc{transition:background .1s ease-out}
10
9
  ._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
11
10
  ._zulp12x7{gap:var(--ds-space-075,6px)}
12
11
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
@@ -13,13 +13,11 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _react2 = require("@compiled/react");
15
15
  var _forwardRefWithGeneric = _interopRequireDefault(require("@atlaskit/ds-lib/forward-ref-with-generic"));
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _compiled = require("@atlaskit/primitives/compiled");
18
17
  var _getPrimitivesSpreadProps = require("./get-primitives-spread-props");
19
18
  var _excluded = ["appearance", "shape", "isSelected", "isDisabled"];
20
19
  var styles = {
21
- root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
22
- interactiveMotion: "_v564k6bl _1ggl5xtf",
20
+ root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
23
21
  border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
24
22
  selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
25
23
  disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
@@ -60,7 +58,7 @@ function ThemedAnchorFn(_ref, ref) {
60
58
  // @ts-expect-error
61
59
  // eslint-disable-next-line @compiled/no-suppress-xcss
62
60
  ,
63
- xcss: (0, _react2.cx)(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, (0, _fg.fg)('platform-dst-motion-uplift-button') && styles.interactiveMotion)
61
+ xcss: (0, _react2.cx)(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled)
64
62
  }));
65
63
  }
66
64
 
@@ -6,7 +6,6 @@
6
6
  ._14mj1kw7:after{border-radius:inherit}
7
7
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
8
8
  ._9v7aze3t:after{inset:var(--ds-space-0,0)}
9
- ._v5649dqc{transition:background .1s ease-out}
10
9
  ._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
11
10
  ._zulp12x7{gap:var(--ds-space-075,6px)}
12
11
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
@@ -13,14 +13,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _react2 = require("@compiled/react");
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _compiled = require("@atlaskit/primitives/compiled");
18
17
  var _getPrimitivesSpreadProps = require("./get-primitives-spread-props");
19
18
  var _excluded = ["appearance", "shape", "isSelected", "isDisabled"];
20
19
  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); }
21
20
  var styles = {
22
- root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
23
- interactiveMotion: "_v564k6bl _1ggl5xtf",
21
+ root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
24
22
  border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
25
23
  selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
26
24
  disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
@@ -58,7 +56,7 @@ var ThemedPressable = exports.ThemedPressable = /*#__PURE__*/(0, _react.forwardR
58
56
  // @ts-expect-error
59
57
  // eslint-disable-next-line @compiled/no-suppress-xcss
60
58
  ,
61
- xcss: (0, _react2.cx)(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, (0, _fg.fg)('platform-dst-motion-uplift-button') && styles.interactiveMotion),
59
+ xcss: (0, _react2.cx)(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled),
62
60
  isDisabled: isDisabled
63
61
  }));
64
62
  });
@@ -9,7 +9,7 @@ import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
9
9
  import { OpenLayerObserverNamespaceProvider } from '@atlaskit/layering/open-layer-observer-namespace-provider';
10
10
  import { fg } from '@atlaskit/platform-feature-flags/fg';
11
11
  import { Popup } from '@atlaskit/popup/popup';
12
- import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/compiled';
12
+ import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/compiled/responsive/index';
13
13
  import { List } from '../../../components/list';
14
14
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
15
15
  import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-theme-context';
@@ -58,21 +58,29 @@ export function TopNavEnd({
58
58
  // Mobile will flip from `false` to `true`.
59
59
  setIsMobile((_query$matches = query === null || query === void 0 ? void 0 : query.matches) !== null && _query$matches !== void 0 ? _query$matches : false);
60
60
  }, [query]);
61
- return /*#__PURE__*/React.createElement("nav", {
61
+
62
+ // The shared provider also covers the mobile overflow popup itself. Keep the
63
+ // previous content-only namespace coverage when the layout gate is disabled.
64
+ const actions = fg('platform-dst-chat-panel-layout') ? children : /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
65
+ namespace: openLayerObserverTopNavEndNamespace
66
+ }, children);
67
+ const content = /*#__PURE__*/React.createElement("nav", {
62
68
  "aria-label": label,
63
69
  className: ax([containerStyles.root, hasPersistentItems && containerStyles.withPersistentItems, isFhsEnabled && containerStyles.fullHeightSidebar])
64
70
  }, isMobile ? /*#__PURE__*/React.createElement(Popup, {
65
71
  isOpen: isOpen,
66
- onClose: () => setIsOpen(false),
72
+ onClose: () => setIsOpen(false)
73
+ // Top-layer popups need a role to register as a popup with the layer observer.
74
+ ,
75
+ role: fg('platform-dst-chat-panel-layout') ? 'dialog' : undefined,
76
+ label: fg('platform-dst-chat-panel-layout') ? label : undefined,
67
77
  placement: "bottom-start",
68
78
  shouldRenderToParent: true,
69
79
  content: () => /*#__PURE__*/React.createElement(HasCustomThemeContext.Provider, {
70
80
  value: false
71
81
  }, /*#__PURE__*/React.createElement(List, {
72
82
  xcss: cx(listStyles.root, listStyles.popupContainer)
73
- }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
74
- namespace: openLayerObserverTopNavEndNamespace
75
- }, children))),
83
+ }, actions)),
76
84
  trigger: triggerProps => /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
77
85
  label: showMoreButtonLabel,
78
86
  isSelected: isOpen,
@@ -82,9 +90,8 @@ export function TopNavEnd({
82
90
  }))
83
91
  }) : /*#__PURE__*/React.createElement(List, {
84
92
  xcss: cx(listStyles.root, listStyles.hideOnSmallViewport)
85
- }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
86
- namespace: openLayerObserverTopNavEndNamespace
87
- }, children)), hasPersistentItems && /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
93
+ }, actions), hasPersistentItems && persistentItems);
94
+ return fg('platform-dst-chat-panel-layout') ? /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
88
95
  namespace: openLayerObserverTopNavEndNamespace
89
- }, persistentItems));
96
+ }, content) : content;
90
97
  }
@@ -6,7 +6,6 @@
6
6
  ._14mj1kw7:after{border-radius:inherit}
7
7
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
8
8
  ._9v7aze3t:after{inset:var(--ds-space-0,0)}
9
- ._v5649dqc{transition:background .1s ease-out}
10
9
  ._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
11
10
  ._zulp12x7{gap:var(--ds-space-075,6px)}
12
11
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
@@ -5,12 +5,10 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { cx } from '@compiled/react';
7
7
  import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
8
- import { fg } from '@atlaskit/platform-feature-flags/fg';
9
8
  import { Anchor } from '@atlaskit/primitives/compiled';
10
9
  import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
11
10
  const styles = {
12
- root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
13
- interactiveMotion: "_v564k6bl _1ggl5xtf",
11
+ root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
14
12
  border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
15
13
  selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
16
14
  disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
@@ -50,7 +48,7 @@ function ThemedAnchorFn({
50
48
  // @ts-expect-error
51
49
  // eslint-disable-next-line @compiled/no-suppress-xcss
52
50
  ,
53
- xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion)
51
+ xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled)
54
52
  }));
55
53
  }
56
54
 
@@ -6,7 +6,6 @@
6
6
  ._14mj1kw7:after{border-radius:inherit}
7
7
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
8
8
  ._9v7aze3t:after{inset:var(--ds-space-0,0)}
9
- ._v5649dqc{transition:background .1s ease-out}
10
9
  ._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
11
10
  ._zulp12x7{gap:var(--ds-space-075,6px)}
12
11
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
@@ -4,12 +4,10 @@ import "./themed-pressable.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { forwardRef } from 'react';
6
6
  import { cx } from '@compiled/react';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { Pressable } from '@atlaskit/primitives/compiled';
9
8
  import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
10
9
  const styles = {
11
- root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
12
- interactiveMotion: "_v564k6bl _1ggl5xtf",
10
+ root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
13
11
  border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
14
12
  selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
15
13
  disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
@@ -46,7 +44,7 @@ export const ThemedPressable = /*#__PURE__*/forwardRef(({
46
44
  // @ts-expect-error
47
45
  // eslint-disable-next-line @compiled/no-suppress-xcss
48
46
  ,
49
- xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion),
47
+ xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled),
50
48
  isDisabled: isDisabled
51
49
  }));
52
50
  });
@@ -10,7 +10,7 @@ import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
10
10
  import { OpenLayerObserverNamespaceProvider } from '@atlaskit/layering/open-layer-observer-namespace-provider';
11
11
  import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { Popup } from '@atlaskit/popup/popup';
13
- import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/compiled';
13
+ import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/compiled/responsive/index';
14
14
  import { List } from '../../../components/list';
15
15
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
16
16
  import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-theme-context';
@@ -66,14 +66,24 @@ export function TopNavEnd(_ref) {
66
66
  // Mobile will flip from `false` to `true`.
67
67
  setIsMobile((_query$matches = query === null || query === void 0 ? void 0 : query.matches) !== null && _query$matches !== void 0 ? _query$matches : false);
68
68
  }, [query]);
69
- return /*#__PURE__*/React.createElement("nav", {
69
+
70
+ // The shared provider also covers the mobile overflow popup itself. Keep the
71
+ // previous content-only namespace coverage when the layout gate is disabled.
72
+ var actions = fg('platform-dst-chat-panel-layout') ? children : /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
73
+ namespace: openLayerObserverTopNavEndNamespace
74
+ }, children);
75
+ var content = /*#__PURE__*/React.createElement("nav", {
70
76
  "aria-label": label,
71
77
  className: ax([containerStyles.root, hasPersistentItems && containerStyles.withPersistentItems, isFhsEnabled && containerStyles.fullHeightSidebar])
72
78
  }, isMobile ? /*#__PURE__*/React.createElement(Popup, {
73
79
  isOpen: isOpen,
74
80
  onClose: function onClose() {
75
81
  return setIsOpen(false);
76
- },
82
+ }
83
+ // Top-layer popups need a role to register as a popup with the layer observer.
84
+ ,
85
+ role: fg('platform-dst-chat-panel-layout') ? 'dialog' : undefined,
86
+ label: fg('platform-dst-chat-panel-layout') ? label : undefined,
77
87
  placement: "bottom-start",
78
88
  shouldRenderToParent: true,
79
89
  content: function content() {
@@ -81,9 +91,7 @@ export function TopNavEnd(_ref) {
81
91
  value: false
82
92
  }, /*#__PURE__*/React.createElement(List, {
83
93
  xcss: cx(listStyles.root, listStyles.popupContainer)
84
- }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
85
- namespace: openLayerObserverTopNavEndNamespace
86
- }, children)));
94
+ }, actions));
87
95
  },
88
96
  trigger: function trigger(triggerProps) {
89
97
  return /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
@@ -98,9 +106,8 @@ export function TopNavEnd(_ref) {
98
106
  }
99
107
  }) : /*#__PURE__*/React.createElement(List, {
100
108
  xcss: cx(listStyles.root, listStyles.hideOnSmallViewport)
101
- }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
102
- namespace: openLayerObserverTopNavEndNamespace
103
- }, children)), hasPersistentItems && /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
109
+ }, actions), hasPersistentItems && persistentItems);
110
+ return fg('platform-dst-chat-panel-layout') ? /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
104
111
  namespace: openLayerObserverTopNavEndNamespace
105
- }, persistentItems));
112
+ }, content) : content;
106
113
  }
@@ -6,7 +6,6 @@
6
6
  ._14mj1kw7:after{border-radius:inherit}
7
7
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
8
8
  ._9v7aze3t:after{inset:var(--ds-space-0,0)}
9
- ._v5649dqc{transition:background .1s ease-out}
10
9
  ._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
11
10
  ._zulp12x7{gap:var(--ds-space-075,6px)}
12
11
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
@@ -7,12 +7,10 @@ import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
8
  import { cx } from '@compiled/react';
9
9
  import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
10
- import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  import { Anchor } from '@atlaskit/primitives/compiled';
12
11
  import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
13
12
  var styles = {
14
- root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
15
- interactiveMotion: "_v564k6bl _1ggl5xtf",
13
+ root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
16
14
  border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
17
15
  selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
18
16
  disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
@@ -53,7 +51,7 @@ function ThemedAnchorFn(_ref, ref) {
53
51
  // @ts-expect-error
54
52
  // eslint-disable-next-line @compiled/no-suppress-xcss
55
53
  ,
56
- xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion)
54
+ xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled)
57
55
  }));
58
56
  }
59
57
 
@@ -6,7 +6,6 @@
6
6
  ._14mj1kw7:after{border-radius:inherit}
7
7
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
8
8
  ._9v7aze3t:after{inset:var(--ds-space-0,0)}
9
- ._v5649dqc{transition:background .1s ease-out}
10
9
  ._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
11
10
  ._zulp12x7{gap:var(--ds-space-075,6px)}
12
11
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
@@ -6,12 +6,10 @@ import "./themed-pressable.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React, { forwardRef } from 'react';
8
8
  import { cx } from '@compiled/react';
9
- import { fg } from '@atlaskit/platform-feature-flags/fg';
10
9
  import { Pressable } from '@atlaskit/primitives/compiled';
11
10
  import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
12
11
  var styles = {
13
- root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
14
- interactiveMotion: "_v564k6bl _1ggl5xtf",
12
+ root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
15
13
  border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
16
14
  selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
17
15
  disabled: "_11q71c9b _syaz1i3i _8l3m1j28 _f8pj1i3i _10531i3i _19lc1c9b _30l31i3i _j6xt1c9b _9h8h1i3i"
@@ -49,7 +47,7 @@ export var ThemedPressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
49
47
  // @ts-expect-error
50
48
  // eslint-disable-next-line @compiled/no-suppress-xcss
51
49
  ,
52
- xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion),
50
+ xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled),
53
51
  isDisabled: isDisabled
54
52
  }));
55
53
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "11.2.0",
3
+ "version": "11.2.2",
4
4
  "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "license": "Apache-2.0",
@@ -57,8 +57,8 @@
57
57
  }
58
58
  },
59
59
  "dependencies": {
60
- "@atlaskit/analytics-next": "^12.5.0",
61
- "@atlaskit/app-provider": "^8.0.0",
60
+ "@atlaskit/analytics-next": "^12.6.0",
61
+ "@atlaskit/app-provider": "^8.1.0",
62
62
  "@atlaskit/avatar": "^30.0.0",
63
63
  "@atlaskit/button": "^25.4.0",
64
64
  "@atlaskit/css": "^1.1.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/primitives": "^22.5.0",
75
75
  "@atlaskit/react-compiler-gating": "^0.2.0",
76
76
  "@atlaskit/side-nav-items": "^2.5.0",
77
- "@atlaskit/tokens": "^20.3.0",
77
+ "@atlaskit/tokens": "^20.4.0",
78
78
  "@atlaskit/tooltip": "^24.4.0",
79
79
  "@atlaskit/visually-hidden": "^4.4.0",
80
80
  "@babel/runtime": "^7.0.0",
@@ -96,7 +96,7 @@
96
96
  "@atlaskit/breadcrumbs": "^17.8.0",
97
97
  "@atlaskit/dropdown-menu": "^21.0.0",
98
98
  "@atlaskit/flag": "^19.0.0",
99
- "@atlaskit/form": "^18.1.0",
99
+ "@atlaskit/form": "^18.2.0",
100
100
  "@atlaskit/heading": "^8.0.0",
101
101
  "@atlaskit/image": "^5.2.0",
102
102
  "@atlaskit/inline-dialog": "^20.3.0",
@@ -164,10 +164,6 @@
164
164
  "platform-dst-motion-uplift-sidenav": {
165
165
  "type": "boolean"
166
166
  },
167
- "platform-dst-motion-uplift-button": {
168
- "type": "boolean",
169
- "referenceOnly": true
170
- },
171
167
  "platform-dst-motion-uplift-panel": {
172
168
  "type": "boolean",
173
169
  "referenceOnly": true