@atlaskit/navigation-system 11.7.3 → 11.7.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/components/badge-container.js +1 -1
  3. package/dist/cjs/components/list-item.js +1 -1
  4. package/dist/cjs/components/list.js +1 -1
  5. package/dist/cjs/components/skip-links/skip-link.js +1 -1
  6. package/dist/cjs/components/skip-links/skip-links-container.js +1 -1
  7. package/dist/cjs/components/skip-links/skip-links-popup.js +1 -1
  8. package/dist/cjs/ui/page-layout/aside.js +1 -1
  9. package/dist/cjs/ui/page-layout/banner.js +1 -1
  10. package/dist/cjs/ui/page-layout/calculate-layout-area-states.js +3 -3
  11. package/dist/cjs/ui/page-layout/chat-panel.compiled.css +1 -0
  12. package/dist/cjs/ui/page-layout/chat-panel.js +20 -10
  13. package/dist/cjs/ui/page-layout/layout-area-sizing-runtime.js +11 -1
  14. package/dist/cjs/ui/page-layout/local-panel-surface.js +1 -1
  15. package/dist/cjs/ui/page-layout/main/main-sticky-header.js +1 -1
  16. package/dist/cjs/ui/page-layout/main/main.js +1 -1
  17. package/dist/cjs/ui/page-layout/panel-layout-shell.js +1 -1
  18. package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +3 -2
  19. package/dist/cjs/ui/page-layout/panel.js +1 -1
  20. package/dist/cjs/ui/page-layout/ribbon.js +1 -1
  21. package/dist/cjs/ui/page-layout/root.js +1 -1
  22. package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +1 -1
  23. package/dist/cjs/ui/page-layout/side-nav/side-nav-footer.js +1 -1
  24. package/dist/cjs/ui/page-layout/side-nav/side-nav-header.js +1 -1
  25. package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -1
  26. package/dist/cjs/ui/page-layout/side-nav/toggle-button.js +1 -1
  27. package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +1 -1
  28. package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.js +1 -1
  29. package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +1 -1
  30. package/dist/cjs/ui/page-layout/top-nav/top-nav.js +1 -1
  31. package/dist/cjs/ui/top-nav-items/custom-title.js +1 -1
  32. package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +1 -1
  33. package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.js +1 -1
  34. package/dist/cjs/ui/top-nav-items/nav-logo/logo-renderer.js +1 -1
  35. package/dist/cjs/ui/top-nav-items/search.js +1 -1
  36. package/dist/cjs/ui/top-nav-items/themed/responsive-icon-button.js +1 -1
  37. package/dist/cjs/ui/top-nav-items/themed/themed-anchor.js +1 -1
  38. package/dist/cjs/ui/top-nav-items/themed/themed-button.js +1 -1
  39. package/dist/cjs/ui/top-nav-items/themed/themed-icon-button.js +1 -1
  40. package/dist/cjs/ui/top-nav-items/themed/themed-link-button.js +1 -1
  41. package/dist/cjs/ui/top-nav-items/themed/themed-pressable.js +1 -1
  42. package/dist/es2019/components/badge-container.js +1 -1
  43. package/dist/es2019/components/list-item.js +1 -1
  44. package/dist/es2019/components/list.js +1 -1
  45. package/dist/es2019/components/skip-links/skip-link.js +1 -1
  46. package/dist/es2019/components/skip-links/skip-links-container.js +1 -1
  47. package/dist/es2019/components/skip-links/skip-links-popup.js +1 -1
  48. package/dist/es2019/ui/page-layout/aside.js +1 -1
  49. package/dist/es2019/ui/page-layout/banner.js +1 -1
  50. package/dist/es2019/ui/page-layout/calculate-layout-area-states.js +3 -3
  51. package/dist/es2019/ui/page-layout/chat-panel.compiled.css +1 -0
  52. package/dist/es2019/ui/page-layout/chat-panel.js +15 -6
  53. package/dist/es2019/ui/page-layout/layout-area-sizing-runtime.js +15 -1
  54. package/dist/es2019/ui/page-layout/local-panel-surface.js +1 -1
  55. package/dist/es2019/ui/page-layout/main/main-sticky-header.js +1 -1
  56. package/dist/es2019/ui/page-layout/main/main.js +1 -1
  57. package/dist/es2019/ui/page-layout/panel-layout-shell.js +1 -1
  58. package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +3 -2
  59. package/dist/es2019/ui/page-layout/panel.js +1 -1
  60. package/dist/es2019/ui/page-layout/ribbon.js +1 -1
  61. package/dist/es2019/ui/page-layout/root.js +1 -1
  62. package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +1 -1
  63. package/dist/es2019/ui/page-layout/side-nav/side-nav-footer.js +1 -1
  64. package/dist/es2019/ui/page-layout/side-nav/side-nav-header.js +1 -1
  65. package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -1
  66. package/dist/es2019/ui/page-layout/side-nav/toggle-button.js +1 -1
  67. package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +1 -1
  68. package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.js +1 -1
  69. package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +1 -1
  70. package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -1
  71. package/dist/es2019/ui/top-nav-items/custom-title.js +1 -1
  72. package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +1 -1
  73. package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.js +1 -1
  74. package/dist/es2019/ui/top-nav-items/nav-logo/logo-renderer.js +1 -1
  75. package/dist/es2019/ui/top-nav-items/search.js +1 -1
  76. package/dist/es2019/ui/top-nav-items/themed/responsive-icon-button.js +1 -1
  77. package/dist/es2019/ui/top-nav-items/themed/themed-anchor.js +1 -1
  78. package/dist/es2019/ui/top-nav-items/themed/themed-button.js +1 -1
  79. package/dist/es2019/ui/top-nav-items/themed/themed-icon-button.js +1 -1
  80. package/dist/es2019/ui/top-nav-items/themed/themed-link-button.js +1 -1
  81. package/dist/es2019/ui/top-nav-items/themed/themed-pressable.js +1 -1
  82. package/dist/esm/components/badge-container.js +1 -1
  83. package/dist/esm/components/list-item.js +1 -1
  84. package/dist/esm/components/list.js +1 -1
  85. package/dist/esm/components/skip-links/skip-link.js +1 -1
  86. package/dist/esm/components/skip-links/skip-links-container.js +1 -1
  87. package/dist/esm/components/skip-links/skip-links-popup.js +1 -1
  88. package/dist/esm/ui/page-layout/aside.js +1 -1
  89. package/dist/esm/ui/page-layout/banner.js +1 -1
  90. package/dist/esm/ui/page-layout/calculate-layout-area-states.js +3 -3
  91. package/dist/esm/ui/page-layout/chat-panel.compiled.css +1 -0
  92. package/dist/esm/ui/page-layout/chat-panel.js +20 -10
  93. package/dist/esm/ui/page-layout/layout-area-sizing-runtime.js +11 -1
  94. package/dist/esm/ui/page-layout/local-panel-surface.js +1 -1
  95. package/dist/esm/ui/page-layout/main/main-sticky-header.js +1 -1
  96. package/dist/esm/ui/page-layout/main/main.js +1 -1
  97. package/dist/esm/ui/page-layout/panel-layout-shell.js +1 -1
  98. package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +3 -2
  99. package/dist/esm/ui/page-layout/panel.js +1 -1
  100. package/dist/esm/ui/page-layout/ribbon.js +1 -1
  101. package/dist/esm/ui/page-layout/root.js +1 -1
  102. package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +1 -1
  103. package/dist/esm/ui/page-layout/side-nav/side-nav-footer.js +1 -1
  104. package/dist/esm/ui/page-layout/side-nav/side-nav-header.js +1 -1
  105. package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -1
  106. package/dist/esm/ui/page-layout/side-nav/toggle-button.js +1 -1
  107. package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +1 -1
  108. package/dist/esm/ui/page-layout/top-nav/top-nav-middle.js +1 -1
  109. package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +1 -1
  110. package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -1
  111. package/dist/esm/ui/top-nav-items/custom-title.js +1 -1
  112. package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +1 -1
  113. package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.js +1 -1
  114. package/dist/esm/ui/top-nav-items/nav-logo/logo-renderer.js +1 -1
  115. package/dist/esm/ui/top-nav-items/search.js +1 -1
  116. package/dist/esm/ui/top-nav-items/themed/responsive-icon-button.js +1 -1
  117. package/dist/esm/ui/top-nav-items/themed/themed-anchor.js +1 -1
  118. package/dist/esm/ui/top-nav-items/themed/themed-button.js +1 -1
  119. package/dist/esm/ui/top-nav-items/themed/themed-icon-button.js +1 -1
  120. package/dist/esm/ui/top-nav-items/themed/themed-link-button.js +1 -1
  121. package/dist/esm/ui/top-nav-items/themed/themed-pressable.js +1 -1
  122. package/dist/types/ui/page-layout/chat-panel.d.ts +2 -0
  123. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 11.7.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`57d9afc065559`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57d9afc065559) -
8
+ Retain ChatPanel resize preferences across close and reopen, preserve compact overlay minimums,
9
+ and enable local and chat resize handles at small viewports behind platform-dst-chat-panel-layout.
10
+
11
+ ## 11.7.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 11.7.3
4
18
 
5
19
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /* badge-container.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* badge-container.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* list-item.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* list-item.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* list.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* list.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* skip-link.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* skip-link.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* aside.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* aside.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* banner.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* banner.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -233,9 +233,9 @@ function calculateLayoutAreaStates(_ref4) {
233
233
  // Occupied tracks and inline chat are not part of that covered region.
234
234
  var layoutMax = (_areaName2 === 'chat-panel' ? layoutWidth : mainAreaWidth) * 0.9;
235
235
  var defaultWidth = isSideNavOverlay ? (_area$compactDefaultW3 = _area.compactDefaultWidth) !== null && _area$compactDefaultW3 !== void 0 ? _area$compactDefaultW3 : _area.defaultWidth : _area.defaultWidth;
236
- var overlayMax = isRefinedLayout && _areaName2 === 'panel' ? hasPanelClearance ? Math.min(availableWidth - sideNavMinWidth - inlineChatPanelWidth - 32, Math.max(defaultWidth, (availableWidth - sideNavMinWidth - inlineChatPanelWidth) * 0.9)) : Math.min(mainAreaWidth, Math.max(defaultWidth, layoutMax)) : layoutMax;
237
- var _max = isRefinedLayout && _areaName2 === 'panel' ? Math.max(_min2, Math.min(configuredMax, overlayMax)) : Math.max(0, Math.min(configuredMax, overlayMax));
238
- var effectiveMin = isRefinedLayout && _areaName2 === 'panel' ? _min2 : Math.min(_min2, _max);
236
+ var overlayMax = isRefinedLayout && _areaName2 === 'panel' ? hasPanelClearance ? Math.min(availableWidth - sideNavMinWidth - inlineChatPanelWidth - 32, Math.max(defaultWidth, (availableWidth - sideNavMinWidth - inlineChatPanelWidth) * 0.9)) : Math.min(mainAreaWidth, Math.max(defaultWidth, layoutMax)) : isRefinedLayout && _areaName2 === 'chat-panel' ? Math.min(layoutWidth, Math.max(defaultWidth, layoutMax)) : layoutMax;
237
+ var _max = isRefinedLayout && (_areaName2 === 'panel' || _areaName2 === 'chat-panel') ? Math.max(_min2, Math.min(configuredMax, overlayMax)) : Math.max(0, Math.min(configuredMax, overlayMax));
238
+ var effectiveMin = isRefinedLayout && (_areaName2 === 'panel' || _areaName2 === 'chat-panel') ? _min2 : Math.min(_min2, _max);
239
239
  var _target = getOverlayTargetWidth(_area, isSideNavOverlay, _areaName2);
240
240
  var _width2 = clampTargetWidth({
241
241
  target: _target,
@@ -17,6 +17,7 @@
17
17
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
18
18
  ._kqsw1if8{position:sticky}
19
19
  ._p12f1osq{max-width:100%}
20
+ ._p12fglyw{max-width:none}
20
21
  ._qo371wug._qo371wug{z-index:auto}
21
22
  ._qo37qfx8._qo37qfx8{z-index:5}
22
23
  ._so1e130s._so1e130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
@@ -1,4 +1,4 @@
1
- /* chat-panel.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* chat-panel.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -40,6 +40,7 @@ function getPixelCustomProperty(element, propertyName, fallback) {
40
40
  }
41
41
  var styles = {
42
42
  root: "_nd5lquub _10fph9n0 _vchhusvi _p12f1osq _1pbyqfx8 _4t3i56xv _kqsw1if8 _152t1nws _bfhk1bhr _1bsb1ky5 _qhdr1ym0 _m5h51wug _1ttbvuon _1mxh8rg1",
43
+ refinedOverlay: "_p12fglyw",
43
44
  managedInline: "_12xt1ym0 _qo371wug _16hgvuon _w1ap8rg1",
44
45
  managedOverlay: "_12xtquub _qo37qfx8 _16hg1bhr _w1ap1ky5",
45
46
  scrollContainer: "_1reo1wug _18m91wug _4t3i1osq",
@@ -55,6 +56,8 @@ var styles = {
55
56
  * full-height column in the page layout grid.
56
57
  *
57
58
  * You can optionally render a `PanelSplitter` as a child to make the chat panel resizable.
59
+ * With chat layout enabled, Root retains separate inline and overlay resize preferences
60
+ * when ChatPanel is closed and remounted during the same layout session.
58
61
  */
59
62
  function ChatPanel(_ref) {
60
63
  var _managedSizing$mode, _managedSizing$width;
@@ -102,14 +105,18 @@ function ChatPanel(_ref) {
102
105
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
103
106
  hasInlinePreference = _useState4[0],
104
107
  setHasInlinePreference = _useState4[1];
105
- var _useState5 = (0, _react.useState)(compactDefaultWidth),
108
+ var _useState5 = (0, _react.useState)(false),
106
109
  _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
107
- overlayWidth = _useState6[0],
108
- setOverlayWidth = _useState6[1];
109
- var _useState7 = (0, _react.useState)(false),
110
+ hasOverlayPreference = _useState6[0],
111
+ setHasOverlayPreference = _useState6[1];
112
+ var _useState7 = (0, _react.useState)(compactDefaultWidth),
110
113
  _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
111
- isInline = _useState8[0],
112
- setIsInline = _useState8[1];
114
+ overlayWidth = _useState8[0],
115
+ setOverlayWidth = _useState8[1];
116
+ var _useState9 = (0, _react.useState)(false),
117
+ _useState0 = (0, _slicedToArray2.default)(_useState9, 2),
118
+ isInline = _useState0[0],
119
+ setIsInline = _useState0[1];
113
120
  var _useLayoutAreaSizing = (0, _useLayoutAreaSizing2.useLayoutAreaSizing)({
114
121
  area: 'chat-panel',
115
122
  config: {
@@ -183,13 +190,16 @@ function ChatPanel(_ref) {
183
190
  }, [getManagedResizeBounds, maxWidth, minWidth]);
184
191
  var configuredMaxWidth = maxWidth !== null && maxWidth !== void 0 ? maxWidth : '100vw';
185
192
  var chatPanelVariableWidth = managedSizing ? "".concat(renderedWidth, "px") : "clamp(".concat(minWidth, ", ").concat(inlineWidth, "px, ").concat(configuredMaxWidth, ")");
186
- var chatPanelOverlayVariableWidth = managedSizing ? "".concat(renderedWidth, "px") : "clamp(".concat(minWidth, ", ").concat(overlayWidth, "px, min(90vw, ").concat(configuredMaxWidth, "))");
193
+ var overlayDefault = "var(--n_chatDefaultW, ".concat(compactDefaultWidth, "px)");
194
+ var overlayMaximum = "max(".concat(minWidth, ", min(").concat(configuredMaxWidth, ", var(--n_layoutW, 100vw), max(").concat(overlayDefault, ", calc(var(--n_layoutW, 100vw) * 0.9))))");
195
+ var chatPanelOverlayVariableWidth = managedSizing ? "".concat(renderedWidth, "px") : (0, _fg.fg)('platform-dst-chat-panel-layout') ? "clamp(".concat(minWidth, ", ").concat(hasOverlayPreference ? "".concat(overlayWidth, "px") : overlayDefault, ", ").concat(overlayMaximum, ")") : "clamp(".concat(minWidth, ", ").concat(overlayWidth, "px, min(90vw, ").concat(configuredMaxWidth, "))");
187
196
  var onCompleteResize = (0, _react.useCallback)(function (finalWidth) {
188
197
  if (mode === 'inline') {
189
198
  setInlineWidth(finalWidth);
190
199
  setHasInlinePreference(true);
191
200
  } else {
192
201
  setOverlayWidth(finalWidth);
202
+ setHasOverlayPreference(true);
193
203
  }
194
204
  completeResize(mode, finalWidth);
195
205
  }, [completeResize, mode]);
@@ -203,7 +213,7 @@ function ChatPanel(_ref) {
203
213
  id: id,
204
214
  "data-layout-slot": true,
205
215
  "aria-label": label,
206
- className: (0, _runtime.ax)([styles.root, hasBorder && styles.border, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInline, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlay, hasBorder && (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInlineBorder, hasBorder && (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlayBorder, xcss]),
216
+ className: (0, _runtime.ax)([styles.root, hasBorder && styles.border, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInline, (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlay, (0, _fg.fg)('platform-dst-chat-panel-layout') && (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.refinedOverlay, hasBorder && (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'inline' && styles.managedInlineBorder, hasBorder && (managedSizing === null || managedSizing === void 0 ? void 0 : managedSizing.mode) === 'overlay' && styles.managedOverlayBorder, xcss]),
207
217
  style: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.chatPanelVar, chatPanelVariableWidth), chatPanelOverlayWidthVar, chatPanelOverlayVariableWidth),
208
218
  "data-testid": testId,
209
219
  "data-layout-chat-panel": "",
@@ -213,7 +223,7 @@ function ChatPanel(_ref) {
213
223
  // Hoist the committed or actively resizing inline width so SideNav can yield
214
224
  // space to ChatPanel without allowing the page layout to overflow.
215
225
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
216
- React.createElement("style", null, managedSizing ? "\n#".concat(_root.gridRootId, " { --n_chatTrack: ").concat(mode === 'inline' ? "".concat(renderedWidth, "px") : '0px', "; ").concat(_constants.chatPanelLiveWidthVar, ": var(--n_chatTrack); }\n") : "\n#".concat(_root.gridRootFitId, " { --n_chatPreferredW: ").concat((0, _fg.fg)('platform-dst-chat-panel-layout') && !hasInlinePreference ? "clamp(".concat(minWidth, ", ").concat(compactDefaultWidth, "px, ").concat(configuredMaxWidth, ")") : chatPanelVariableWidth, "; --n_clearanceChatMin: ").concat(minWidth, "; --n_clearanceChatTarget: var(--n_chatPreferredW); }\n@media (min-width: 64rem) {\n #").concat(_root.gridRootFitId, " { --n_chatPreferredW: ").concat(chatPanelVariableWidth, "; }\n}\n#").concat(_root.gridRootId, " { --n_chatTrack: 0px; ").concat(_constants.chatPanelLiveWidthVar, ": 0px; }\n#").concat(_root.gridRootId, " [data-layout-chat-panel] {\n grid-area: 2 / 1 / -1 / -1;\n width: min(calc(var(--n_layoutW) * 0.9), ").concat(chatPanelOverlayVariableWidth, ");\n z-index: ").concat(_constants.localSlotLayers.chatPanelOverlay, ";\n background-color: ", "var(--ds-surface-overlay, #FFFFFF)", ";\n ").concat(hasBorder ? "box-shadow: ".concat("var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", "; border-inline-start: none;") : '', "\n}\n@media (min-width: 40rem) {\n @container navigation-chat-space (min-width: ").concat(minWidth, ") {\n #").concat(_root.gridRootId, " { --n_chatTrack: min(100cqw, var(").concat(panelSplitterResizingVar, ", var(--n_chatPreferredW))); ").concat(_constants.chatPanelLiveWidthVar, ": var(--n_chatTrack); }\n #").concat(_root.gridRootId, " [data-layout-chat-panel] {\n grid-area: chat-panel;\n width: min(100cqw, var(").concat(panelSplitterResizingVar, ", var(--n_chatPreferredW)));\n z-index: auto;\n background-color: ", "var(--ds-surface, #FFFFFF)", ";\n ").concat(hasBorder ? "box-shadow: initial; border-inline-start: ".concat("var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #0B120E24)", ";") : '', "\n }\n }\n}\n")), /*#__PURE__*/React.createElement(_provider.PanelSplitterProvider, {
226
+ React.createElement("style", null, managedSizing ? "\n#".concat(_root.gridRootId, " { --n_chatTrack: ").concat(mode === 'inline' ? "".concat(renderedWidth, "px") : '0px', "; ").concat(_constants.chatPanelLiveWidthVar, ": var(--n_chatTrack); }\n") : "\n#".concat(_root.gridRootFitId, " { --n_chatDefaultW: ").concat(compactDefaultWidth, "px; --n_chatPreferredW: ").concat((0, _fg.fg)('platform-dst-chat-panel-layout') && !hasInlinePreference ? "clamp(".concat(minWidth, ", ").concat(compactDefaultWidth, "px, ").concat(configuredMaxWidth, ")") : chatPanelVariableWidth, "; --n_clearanceChatMin: ").concat(minWidth, "; --n_clearanceChatTarget: var(--n_chatPreferredW); }\n@media (min-width: 64rem) {\n #").concat(_root.gridRootFitId, " { --n_chatDefaultW: ").concat(defaultWidth, "px; --n_chatPreferredW: ").concat(chatPanelVariableWidth, "; }\n}\n#").concat(_root.gridRootId, " { --n_chatTrack: 0px; ").concat(_constants.chatPanelLiveWidthVar, ": 0px; }\n#").concat(_root.gridRootId, " [data-layout-chat-panel] {\n grid-area: 2 / 1 / -1 / -1;\n width: ").concat((0, _fg.fg)('platform-dst-chat-panel-layout') ? chatPanelOverlayVariableWidth : "min(calc(var(--n_layoutW) * 0.9), ".concat(chatPanelOverlayVariableWidth, ")"), ";\n ").concat((0, _fg.fg)('platform-dst-chat-panel-layout') ? 'max-width: none;' : '', "\n z-index: ").concat(_constants.localSlotLayers.chatPanelOverlay, ";\n background-color: ", "var(--ds-surface-overlay, #FFFFFF)", ";\n ").concat(hasBorder ? "box-shadow: ".concat("var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", "; border-inline-start: none;") : '', "\n}\n@media (min-width: 40rem) {\n @container navigation-chat-space (min-width: ").concat(minWidth, ") {\n #").concat(_root.gridRootId, " { --n_chatTrack: min(100cqw, var(").concat(panelSplitterResizingVar, ", var(--n_chatPreferredW))); ").concat(_constants.chatPanelLiveWidthVar, ": var(--n_chatTrack); }\n #").concat(_root.gridRootId, " [data-layout-chat-panel] {\n grid-area: chat-panel;\n width: min(100cqw, var(").concat(panelSplitterResizingVar, ", var(--n_chatPreferredW)));\n max-width: 100%;\n z-index: auto;\n background-color: ", "var(--ds-surface, #FFFFFF)", ";\n ").concat(hasBorder ? "box-shadow: initial; border-inline-start: ".concat("var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #0B120E24)", ";") : '', "\n }\n }\n}\n")), /*#__PURE__*/React.createElement(_provider.PanelSplitterProvider, {
217
227
  panelId: chatPanelPanelSplitterId,
218
228
  panelRef: ref,
219
229
  panelWidth: renderedWidth,
@@ -10,6 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _bindEventListener = require("bind-event-listener");
13
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
13
14
  var _calculateLayoutAreaStates = require("./calculate-layout-area-states");
14
15
  var _constants = require("./constants");
15
16
  var _layoutAreaSizingContext = require("./layout-area-sizing-context");
@@ -189,8 +190,17 @@ function LayoutAreaSizingRuntime(_ref2) {
189
190
  if (!current[area]) {
190
191
  return current;
191
192
  }
193
+ if (area === 'chat-panel' && (0, _fg.fg)('platform-dst-chat-panel-layout')) {
194
+ // Chat's public close contract unmounts the slot. Keep preferences in Root,
195
+ // but release its allocation, in-progress resize and dismissal callback.
196
+ return _objectSpread(_objectSpread({}, current), {}, (0, _defineProperty2.default)({}, area, _objectSpread(_objectSpread({}, current[area]), {}, {
197
+ isOpen: false,
198
+ liveResize: undefined,
199
+ onRequestClose: undefined
200
+ })));
201
+ }
192
202
  // Closing uses isOpen: false and retains preferences. Unregistering means
193
- // the owning component unmounted; a replacement must start with its own defaults.
203
+ // the owning component unmounted. Only Chat retains preferences across this close path.
194
204
  var next = _objectSpread({}, current);
195
205
  delete next[area];
196
206
  return next;
@@ -1,4 +1,4 @@
1
- /* local-panel-surface.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* local-panel-surface.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* main-sticky-header.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* main-sticky-header.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* main.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* panel-layout-shell.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* panel-layout-shell.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* panel-splitter.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* panel-splitter.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -54,6 +54,7 @@ function signPanelSplitterDragData(data) {
54
54
  }
55
55
  var containerStyles = {
56
56
  root: "_12ji1r31 _1qu2glyw _12y31o36 _1e0cglyw _kqswstnw _u7coidpf _152tidpf _1pbykb7n _181n1ule",
57
+ visibleOnSmallScreens: "_1e0c1ule",
57
58
  positionEnd: "_rjxpftgi",
58
59
  positionStart: "_1e02zeo2"
59
60
  };
@@ -632,7 +633,7 @@ var PortaledPanelSplitter = function PortaledPanelSplitter(_ref3) {
632
633
  }, [rangeInputValue, rangeInputBounds]);
633
634
  return /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/React.createElement("div", {
634
635
  "data-testid": testId ? "".concat(testId, "-container") : undefined,
635
- className: (0, _runtime.ax)([containerStyles.root, position === 'start' && containerStyles.positionStart, position === 'end' && containerStyles.positionEnd])
636
+ className: (0, _runtime.ax)([containerStyles.root, (0, _fg.fg)('platform-dst-chat-panel-layout') && onResizeInternal && position === 'start' && containerStyles.visibleOnSmallScreens, position === 'start' && containerStyles.positionStart, position === 'end' && containerStyles.positionEnd])
636
637
  }, /*#__PURE__*/React.createElement(MaybeTooltip, {
637
638
  tooltipContent: tooltipContent,
638
639
  shortcut: shortcut,
@@ -1,4 +1,4 @@
1
- /* panel.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* panel.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ribbon.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* ribbon.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* root.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* root.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* side-nav-content.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* side-nav-content.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* side-nav-footer.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* side-nav-footer.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* side-nav-header.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* side-nav-header.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* side-nav.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* side-nav.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* toggle-button.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* toggle-button.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* top-nav-end.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* top-nav-end.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* top-nav-middle.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* top-nav-middle.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* top-nav-start.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* top-nav-start.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* top-nav.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* top-nav.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* custom-title.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* custom-title.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* app-logo.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* app-logo.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* custom-logo.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* custom-logo.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* search.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* search.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* responsive-icon-button.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* responsive-icon-button.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* themed-button.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* themed-button.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* badge-container.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* badge-container.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import "./badge-container.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* list-item.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* list-item.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* list.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* list.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* skip-link.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* skip-link.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import "./skip-link.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import "./skip-links-container.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./skip-links-popup.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* aside.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* aside.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import "./aside.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* banner.tsx generated by @compiled/babel-plugin v3.0.2 */
1
+ /* banner.tsx generated by @compiled/babel-plugin v3.0.4 */
2
2
  import "./banner.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -177,9 +177,9 @@ export function calculateLayoutAreaStates({
177
177
  // Occupied tracks and inline chat are not part of that covered region.
178
178
  const layoutMax = (areaName === 'chat-panel' ? layoutWidth : mainAreaWidth) * 0.9;
179
179
  const defaultWidth = isSideNavOverlay ? (_area$compactDefaultW3 = area.compactDefaultWidth) !== null && _area$compactDefaultW3 !== void 0 ? _area$compactDefaultW3 : area.defaultWidth : area.defaultWidth;
180
- const overlayMax = isRefinedLayout && areaName === 'panel' ? hasPanelClearance ? Math.min(availableWidth - sideNavMinWidth - inlineChatPanelWidth - 32, Math.max(defaultWidth, (availableWidth - sideNavMinWidth - inlineChatPanelWidth) * 0.9)) : Math.min(mainAreaWidth, Math.max(defaultWidth, layoutMax)) : layoutMax;
181
- const max = isRefinedLayout && areaName === 'panel' ? Math.max(min, Math.min(configuredMax, overlayMax)) : Math.max(0, Math.min(configuredMax, overlayMax));
182
- const effectiveMin = isRefinedLayout && areaName === 'panel' ? min : Math.min(min, max);
180
+ const overlayMax = isRefinedLayout && areaName === 'panel' ? hasPanelClearance ? Math.min(availableWidth - sideNavMinWidth - inlineChatPanelWidth - 32, Math.max(defaultWidth, (availableWidth - sideNavMinWidth - inlineChatPanelWidth) * 0.9)) : Math.min(mainAreaWidth, Math.max(defaultWidth, layoutMax)) : isRefinedLayout && areaName === 'chat-panel' ? Math.min(layoutWidth, Math.max(defaultWidth, layoutMax)) : layoutMax;
181
+ const max = isRefinedLayout && (areaName === 'panel' || areaName === 'chat-panel') ? Math.max(min, Math.min(configuredMax, overlayMax)) : Math.max(0, Math.min(configuredMax, overlayMax));
182
+ const effectiveMin = isRefinedLayout && (areaName === 'panel' || areaName === 'chat-panel') ? min : Math.min(min, max);
183
183
  const target = getOverlayTargetWidth(area, isSideNavOverlay, areaName);
184
184
  const width = clampTargetWidth({
185
185
  target,
@@ -17,6 +17,7 @@
17
17
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
18
18
  ._kqsw1if8{position:sticky}
19
19
  ._p12f1osq{max-width:100%}
20
+ ._p12fglyw{max-width:none}
20
21
  ._qo371wug._qo371wug{z-index:auto}
21
22
  ._qo37qfx8._qo37qfx8{z-index:5}
22
23
  ._so1e130s._so1e130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}