@atlaskit/navigation-system 11.7.5 → 11.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/ui/page-layout/chat-panel.js +3 -3
- package/dist/cjs/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.js +7 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.compiled.css +1 -0
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +4 -2
- package/dist/es2019/ui/page-layout/chat-panel.js +1 -1
- package/dist/es2019/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.js +1 -0
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.compiled.css +1 -0
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +4 -2
- package/dist/esm/ui/page-layout/chat-panel.js +1 -1
- package/dist/esm/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.js +1 -0
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.compiled.css +1 -0
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +4 -2
- package/dist/types/ui/page-layout/panel-splitter/chat-panel-panel-splitter-id.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 11.7.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0194dc608ff8e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0194dc608ff8e) -
|
|
8
|
+
Keep the full ChatPanel resize line inside its boundary so adjacent TopNav content cannot obscure
|
|
9
|
+
it. The styling is internal to ChatPanel and does not change the drag target or the public
|
|
10
|
+
splitter API.
|
|
11
|
+
|
|
3
12
|
## 11.7.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -17,6 +17,7 @@ var _bindEventListener = require("bind-event-listener");
|
|
|
17
17
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _useSkipLinkInternal = require("../../context/skip-links/use-skip-link-internal");
|
|
19
19
|
var _constants = require("./constants");
|
|
20
|
+
var _chatPanelPanelSplitterId = require("./panel-splitter/chat-panel-panel-splitter-id");
|
|
20
21
|
var _convertResizeBoundToPixels = require("./panel-splitter/convert-resize-bound-to-pixels");
|
|
21
22
|
var _provider = require("./panel-splitter/provider");
|
|
22
23
|
var _resolveLayoutWidth = require("./resolve-layout-width");
|
|
@@ -26,7 +27,6 @@ var _useLayoutId = require("./use-layout-id");
|
|
|
26
27
|
var _useResizingWidthCssVarOnRootElement = require("./use-resizing-width-css-var-on-root-element");
|
|
27
28
|
var _useSafeDefaultWidth = require("./use-safe-default-width");
|
|
28
29
|
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); }
|
|
29
|
-
var chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
30
30
|
var panelSplitterResizingVar = '--n_cPnlRsz';
|
|
31
31
|
var chatPanelOverlayWidthVar = '--n_cPnlOverlayW';
|
|
32
32
|
var fallbackDefaultWidth = 400;
|
|
@@ -151,7 +151,7 @@ function ChatPanel(_ref) {
|
|
|
151
151
|
(0, _useResizingWidthCssVarOnRootElement.useResizingWidthCssVarOnRootElement)({
|
|
152
152
|
isEnabled: !managedSizing,
|
|
153
153
|
cssVar: panelSplitterResizingVar,
|
|
154
|
-
panelId: chatPanelPanelSplitterId
|
|
154
|
+
panelId: _chatPanelPanelSplitterId.chatPanelPanelSplitterId
|
|
155
155
|
});
|
|
156
156
|
var getResizeBounds = (0, _react.useCallback)(function () {
|
|
157
157
|
var managedBounds = getManagedResizeBounds();
|
|
@@ -224,7 +224,7 @@ function ChatPanel(_ref) {
|
|
|
224
224
|
// space to ChatPanel without allowing the page layout to overflow.
|
|
225
225
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
|
|
226
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, {
|
|
227
|
-
panelId: chatPanelPanelSplitterId,
|
|
227
|
+
panelId: _chatPanelPanelSplitterId.chatPanelPanelSplitterId,
|
|
228
228
|
panelRef: ref,
|
|
229
229
|
panelWidth: renderedWidth,
|
|
230
230
|
onCompleteResize: onCompleteResize,
|
|
@@ -35,6 +35,7 @@ var _requestClosePopovers = require("@atlaskit/top-layer/page-surface/request-cl
|
|
|
35
35
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
36
36
|
var _constants = require("../constants");
|
|
37
37
|
var _layoutAreaSizingContext = require("../layout-area-sizing-context");
|
|
38
|
+
var _chatPanelPanelSplitterId = require("./chat-panel-panel-splitter-id");
|
|
38
39
|
var _convertResizeBoundToPixels = require("./convert-resize-bound-to-pixels");
|
|
39
40
|
var _getPanelGrowthSide = require("./get-panel-growth-side");
|
|
40
41
|
var _getPercentageWithinPixelBounds = require("./get-percentage-within-pixel-bounds");
|
|
@@ -63,7 +64,8 @@ var grabAreaStyles = {
|
|
|
63
64
|
rootFinesse: "_vp7g1ihb _30l31ihb _9h8hq98m"
|
|
64
65
|
};
|
|
65
66
|
var lineStyles = {
|
|
66
|
-
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
|
|
67
|
+
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z",
|
|
68
|
+
chatPanel: "_1e02rdoj"
|
|
67
69
|
};
|
|
68
70
|
var tooltipStyles = {
|
|
69
71
|
root: "_ahbq196n _1bsb1ris",
|
|
@@ -660,7 +662,7 @@ var PortaledPanelSplitter = function PortaledPanelSplitter(_ref3) {
|
|
|
660
662
|
}), /*#__PURE__*/React.createElement("span", {
|
|
661
663
|
id: labelId
|
|
662
664
|
}, label)), /*#__PURE__*/React.createElement("span", {
|
|
663
|
-
className: (0, _runtime.ax)([lineStyles.root])
|
|
665
|
+
className: (0, _runtime.ax)([lineStyles.root, panelId === _chatPanelPanelSplitterId.chatPanelPanelSplitterId && lineStyles.chatPanel])
|
|
664
666
|
})))), portal);
|
|
665
667
|
};
|
|
666
668
|
/**
|
|
@@ -7,6 +7,7 @@ import { bind } from 'bind-event-listener';
|
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
9
9
|
import { chatPanelLiveWidthVar, chatPanelVar, defaultMainMinWidth, localSlotLayers, mainMinimumWidthVar } from './constants';
|
|
10
|
+
import { chatPanelPanelSplitterId } from './panel-splitter/chat-panel-panel-splitter-id';
|
|
10
11
|
import { convertResizeBoundToPixels } from './panel-splitter/convert-resize-bound-to-pixels';
|
|
11
12
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
12
13
|
import { resolveLayoutWidth } from './resolve-layout-width';
|
|
@@ -15,7 +16,6 @@ import { useLayoutAreaSizing } from './use-layout-area-sizing';
|
|
|
15
16
|
import { useLayoutId } from './use-layout-id';
|
|
16
17
|
import { useResizingWidthCssVarOnRootElement } from './use-resizing-width-css-var-on-root-element';
|
|
17
18
|
import { useSafeDefaultWidth } from './use-safe-default-width';
|
|
18
|
-
const chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
19
19
|
const panelSplitterResizingVar = '--n_cPnlRsz';
|
|
20
20
|
const chatPanelOverlayWidthVar = '--n_cPnlOverlayW';
|
|
21
21
|
const fallbackDefaultWidth = 400;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
@@ -22,6 +22,7 @@ import { requestClosePopovers } from '@atlaskit/top-layer/page-surface/request-c
|
|
|
22
22
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
23
23
|
import { contentInsetBlockStart } from '../constants';
|
|
24
24
|
import { LayoutAreaSizingContext } from '../layout-area-sizing-context';
|
|
25
|
+
import { chatPanelPanelSplitterId } from './chat-panel-panel-splitter-id';
|
|
25
26
|
import { convertResizeBoundToPixels } from './convert-resize-bound-to-pixels';
|
|
26
27
|
import { getPanelGrowthSide } from './get-panel-growth-side';
|
|
27
28
|
import { getPercentageWithinPixelBounds } from './get-percentage-within-pixel-bounds';
|
|
@@ -49,7 +50,8 @@ const grabAreaStyles = {
|
|
|
49
50
|
rootFinesse: "_vp7g1ihb _30l31ihb _9h8hq98m"
|
|
50
51
|
};
|
|
51
52
|
const lineStyles = {
|
|
52
|
-
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
|
|
53
|
+
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z",
|
|
54
|
+
chatPanel: "_1e02rdoj"
|
|
53
55
|
};
|
|
54
56
|
const tooltipStyles = {
|
|
55
57
|
root: "_ahbq196n _1bsb1ris",
|
|
@@ -539,7 +541,7 @@ const PortaledPanelSplitter = ({
|
|
|
539
541
|
}), /*#__PURE__*/React.createElement("span", {
|
|
540
542
|
id: labelId
|
|
541
543
|
}, label)), /*#__PURE__*/React.createElement("span", {
|
|
542
|
-
className: ax([lineStyles.root])
|
|
544
|
+
className: ax([lineStyles.root, panelId === chatPanelPanelSplitterId && lineStyles.chatPanel])
|
|
543
545
|
})))), portal);
|
|
544
546
|
};
|
|
545
547
|
/**
|
|
@@ -9,6 +9,7 @@ import { bind } from 'bind-event-listener';
|
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { useSkipLinkInternal } from '../../context/skip-links/use-skip-link-internal';
|
|
11
11
|
import { chatPanelLiveWidthVar, chatPanelVar, defaultMainMinWidth, localSlotLayers, mainMinimumWidthVar } from './constants';
|
|
12
|
+
import { chatPanelPanelSplitterId } from './panel-splitter/chat-panel-panel-splitter-id';
|
|
12
13
|
import { convertResizeBoundToPixels } from './panel-splitter/convert-resize-bound-to-pixels';
|
|
13
14
|
import { PanelSplitterProvider } from './panel-splitter/provider';
|
|
14
15
|
import { resolveLayoutWidth } from './resolve-layout-width';
|
|
@@ -17,7 +18,6 @@ import { useLayoutAreaSizing } from './use-layout-area-sizing';
|
|
|
17
18
|
import { useLayoutId } from './use-layout-id';
|
|
18
19
|
import { useResizingWidthCssVarOnRootElement } from './use-resizing-width-css-var-on-root-element';
|
|
19
20
|
import { useSafeDefaultWidth } from './use-safe-default-width';
|
|
20
|
-
var chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
21
21
|
var panelSplitterResizingVar = '--n_cPnlRsz';
|
|
22
22
|
var chatPanelOverlayWidthVar = '--n_cPnlOverlayW';
|
|
23
23
|
var fallbackDefaultWidth = 400;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var chatPanelPanelSplitterId = Symbol('ChatPanel PanelSplitter');
|
|
@@ -30,6 +30,7 @@ import { requestClosePopovers } from '@atlaskit/top-layer/page-surface/request-c
|
|
|
30
30
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
31
31
|
import { contentInsetBlockStart } from '../constants';
|
|
32
32
|
import { LayoutAreaSizingContext } from '../layout-area-sizing-context';
|
|
33
|
+
import { chatPanelPanelSplitterId } from './chat-panel-panel-splitter-id';
|
|
33
34
|
import { convertResizeBoundToPixels } from './convert-resize-bound-to-pixels';
|
|
34
35
|
import { getPanelGrowthSide } from './get-panel-growth-side';
|
|
35
36
|
import { getPercentageWithinPixelBounds } from './get-percentage-within-pixel-bounds';
|
|
@@ -54,7 +55,8 @@ var grabAreaStyles = {
|
|
|
54
55
|
rootFinesse: "_vp7g1ihb _30l31ihb _9h8hq98m"
|
|
55
56
|
};
|
|
56
57
|
var lineStyles = {
|
|
57
|
-
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
|
|
58
|
+
root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z",
|
|
59
|
+
chatPanel: "_1e02rdoj"
|
|
58
60
|
};
|
|
59
61
|
var tooltipStyles = {
|
|
60
62
|
root: "_ahbq196n _1bsb1ris",
|
|
@@ -651,7 +653,7 @@ var PortaledPanelSplitter = function PortaledPanelSplitter(_ref3) {
|
|
|
651
653
|
}), /*#__PURE__*/React.createElement("span", {
|
|
652
654
|
id: labelId
|
|
653
655
|
}, label)), /*#__PURE__*/React.createElement("span", {
|
|
654
|
-
className: ax([lineStyles.root])
|
|
656
|
+
className: ax([lineStyles.root, panelId === chatPanelPanelSplitterId && lineStyles.chatPanel])
|
|
655
657
|
})))), portal);
|
|
656
658
|
};
|
|
657
659
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chatPanelPanelSplitterId: symbol;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.6",
|
|
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",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@atlassian/panel-system": "^2.0.0",
|
|
130
130
|
"@atlassian/react-async": "^0.23.0",
|
|
131
131
|
"@atlassian/react-entrypoint": "^1.1.0",
|
|
132
|
-
"@atlassian/search-dialog": "^10.
|
|
132
|
+
"@atlassian/search-dialog": "^10.34.0",
|
|
133
133
|
"@atlassian/ssr-tests": "workspace:^",
|
|
134
134
|
"@atlassian/test-utils": "^1.1.0",
|
|
135
135
|
"@atlassian/testing-library": "^0.12.0",
|