@uipath/apollo-react 4.32.1 → 4.32.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/dist/canvas/components/AddNodePanel/AddNodeManager.cjs +1 -0
- package/dist/canvas/components/AddNodePanel/AddNodeManager.d.ts.map +1 -1
- package/dist/canvas/components/AddNodePanel/AddNodeManager.js +1 -0
- package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.cjs +21 -2
- package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.d.ts +2 -1
- package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.d.ts.map +1 -1
- package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.js +21 -2
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.cjs +4 -2
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.d.ts +2 -1
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.d.ts.map +1 -1
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.js +4 -2
- package/dist/canvas/components/FloatingCanvasPanel/useFloatingPosition.cjs +18 -0
- package/dist/canvas/components/FloatingCanvasPanel/useFloatingPosition.d.ts +1 -0
- package/dist/canvas/components/FloatingCanvasPanel/useFloatingPosition.d.ts.map +1 -1
- package/dist/canvas/components/FloatingCanvasPanel/useFloatingPosition.js +20 -2
- package/dist/canvas/components/Toolbox/Toolbox.cjs +15 -0
- package/dist/canvas/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/Toolbox.js +15 -0
- package/dist/canvas/components/Toolbox/Toolbox.styles.cjs +2 -2
- package/dist/canvas/components/Toolbox/Toolbox.styles.js +2 -2
- package/package.json +1 -1
|
@@ -184,6 +184,7 @@ const AddNodeManager = ({ initializing, customPanel: CustomPanel, createNodeData
|
|
|
184
184
|
nodeId: external_constants_cjs_namespaceObject.PREVIEW_NODE_ID,
|
|
185
185
|
placement: "right-start",
|
|
186
186
|
offset: external_constants_cjs_namespaceObject.FLOATING_CANVAS_PANEL_OFFSET,
|
|
187
|
+
scrollableContent: !!CustomPanel,
|
|
187
188
|
children: CustomPanel ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CustomPanel, {
|
|
188
189
|
onNodeSelect: (item)=>handleNodeSelect(item),
|
|
189
190
|
onClose: handleClose
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddNodeManager.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AddNodePanel/AddNodeManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAKlC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;IAI7E,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAK7F,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,KAAK,YAAY,CAAC;IAOtE,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK;QAAE,OAAO,EAAE,IAAI,CAAC;QAAC,QAAQ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AC;QAAC,QAAQ,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC;IAK7F,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,KAAK,IAAI,CAAC;IAMpF,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AASD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8NxD,CAAC"}
|
|
@@ -156,6 +156,7 @@ const AddNodeManager = ({ initializing, customPanel: CustomPanel, createNodeData
|
|
|
156
156
|
nodeId: PREVIEW_NODE_ID,
|
|
157
157
|
placement: "right-start",
|
|
158
158
|
offset: FLOATING_CANVAS_PANEL_OFFSET,
|
|
159
|
+
scrollableContent: !!CustomPanel,
|
|
159
160
|
children: CustomPanel ? /*#__PURE__*/ jsx(CustomPanel, {
|
|
160
161
|
onNodeSelect: (item)=>handleNodeSelect(item),
|
|
161
162
|
onClose: handleClose
|
|
@@ -35,10 +35,12 @@ const external_CanvasPortal_cjs_namespaceObject = require("./CanvasPortal.cjs");
|
|
|
35
35
|
const external_PanelChrome_cjs_namespaceObject = require("./PanelChrome.cjs");
|
|
36
36
|
const external_useFloatingPosition_cjs_namespaceObject = require("./useFloatingPosition.cjs");
|
|
37
37
|
const PANEL_BASE_CLASS = 'text-(--canvas-foreground) bg-(--canvas-background-raised) border border-(--canvas-border-de-emp) text-sm flex flex-col transition-opacity duration-200 ease-in-out';
|
|
38
|
+
const PANEL_FLOATING_MAX_HEIGHT = 600;
|
|
39
|
+
const PANEL_FLOATING_MIN_HEIGHT = 100;
|
|
38
40
|
const PANEL_FLOATING_CLASS = 'rounded-lg shadow-[0_4px_16px_rgba(0,0,0,0.12)] w-auto min-w-[280px] max-w-none h-auto max-h-[600px]';
|
|
39
41
|
const PANEL_PINNED_CLASS = 'rounded-none shadow-none w-[320px] min-w-[320px] max-w-[320px] h-screen max-h-screen';
|
|
40
|
-
function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'right-start', offset = 20, fallbackPlacement, isPinned = false, useFixedPosition = false, portalToBody = false, title, header, headerActions, children, onClose, scrollKey, onMouseEnter, onMouseLeave }) {
|
|
41
|
-
const { computedAnchor, floatingStyles, refs, mergedReferenceRef } = (0, external_useFloatingPosition_cjs_namespaceObject.useFloatingPosition)({
|
|
42
|
+
function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'right-start', offset = 20, fallbackPlacement, isPinned = false, useFixedPosition = false, portalToBody = false, title, header, headerActions, children, onClose, scrollKey, scrollableContent = true, onMouseEnter, onMouseLeave }) {
|
|
43
|
+
const { computedAnchor, floatingStyles, availableHeight, refs, mergedReferenceRef } = (0, external_useFloatingPosition_cjs_namespaceObject.useFloatingPosition)({
|
|
42
44
|
open,
|
|
43
45
|
nodeId,
|
|
44
46
|
anchorRect,
|
|
@@ -49,6 +51,19 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
49
51
|
const panelClassName = (0, external_react_namespaceObject.useMemo)(()=>(0, apollo_wind_namespaceObject.cn)(PANEL_BASE_CLASS, isPinned ? PANEL_PINNED_CLASS : PANEL_FLOATING_CLASS), [
|
|
50
52
|
isPinned
|
|
51
53
|
]);
|
|
54
|
+
const sizingStyle = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
55
|
+
if (isPinned || null == availableHeight) return {};
|
|
56
|
+
const maxHeight = Math.min(PANEL_FLOATING_MAX_HEIGHT, availableHeight);
|
|
57
|
+
const occupiedHeight = Math.max(PANEL_FLOATING_MIN_HEIGHT, maxHeight);
|
|
58
|
+
return {
|
|
59
|
+
maxHeight: `${maxHeight}px`,
|
|
60
|
+
minHeight: `${PANEL_FLOATING_MIN_HEIGHT}px`,
|
|
61
|
+
['--floating-available-height']: `${occupiedHeight}px`
|
|
62
|
+
};
|
|
63
|
+
}, [
|
|
64
|
+
isPinned,
|
|
65
|
+
availableHeight
|
|
66
|
+
]);
|
|
52
67
|
if (!open || !computedAnchor) return null;
|
|
53
68
|
if (useFixedPosition && anchorRect) {
|
|
54
69
|
const getScreenSpacePosition = ()=>{
|
|
@@ -100,6 +115,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
100
115
|
style: {
|
|
101
116
|
position: 'fixed',
|
|
102
117
|
...screenPosition,
|
|
118
|
+
...sizingStyle,
|
|
103
119
|
zIndex: 1100,
|
|
104
120
|
pointerEvents: 'auto'
|
|
105
121
|
},
|
|
@@ -109,6 +125,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
109
125
|
headerActions: headerActions,
|
|
110
126
|
onClose: onClose,
|
|
111
127
|
scrollKey: scrollKey,
|
|
128
|
+
scrollableContent: scrollableContent,
|
|
112
129
|
children: children
|
|
113
130
|
})
|
|
114
131
|
});
|
|
@@ -123,6 +140,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
123
140
|
onPointerLeave: onMouseLeave,
|
|
124
141
|
style: {
|
|
125
142
|
...isPinned ? {} : floatingStyles,
|
|
143
|
+
...sizingStyle,
|
|
126
144
|
position: isPinned ? 'fixed' : 'absolute',
|
|
127
145
|
right: isPinned ? 0 : void 0,
|
|
128
146
|
top: isPinned ? 0 : void 0,
|
|
@@ -135,6 +153,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
135
153
|
headerActions: headerActions,
|
|
136
154
|
onClose: onClose,
|
|
137
155
|
scrollKey: scrollKey,
|
|
156
|
+
scrollableContent: scrollableContent,
|
|
138
157
|
children: children
|
|
139
158
|
})
|
|
140
159
|
});
|
|
@@ -17,8 +17,9 @@ export type FloatingCanvasPanelProps = {
|
|
|
17
17
|
children?: ReactNode;
|
|
18
18
|
onClose?: () => void;
|
|
19
19
|
scrollKey?: string;
|
|
20
|
+
scrollableContent?: boolean;
|
|
20
21
|
onMouseEnter?: () => void;
|
|
21
22
|
onMouseLeave?: () => void;
|
|
22
23
|
};
|
|
23
|
-
export declare function FloatingCanvasPanel({ open, nodeId, anchorRect, placement, offset, fallbackPlacement, isPinned, useFixedPosition, portalToBody, title, header, headerActions, children, onClose, scrollKey, onMouseEnter, onMouseLeave, }: FloatingCanvasPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export declare function FloatingCanvasPanel({ open, nodeId, anchorRect, placement, offset, fallbackPlacement, isPinned, useFixedPosition, portalToBody, title, header, headerActions, children, onClose, scrollKey, scrollableContent, onMouseEnter, onMouseLeave, }: FloatingCanvasPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
25
|
//# sourceMappingURL=FloatingCanvasPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingCanvasPanel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FloatingCanvasPanel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,uBAAuB,CAAC;AA4B7E,MAAM,MAAM,wBAAwB,GAAG;IAErC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAShB,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAOnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAG5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAClC,IAAW,EACX,MAAM,EACN,UAAU,EACV,SAAyB,EACzB,MAAW,EACX,iBAAiB,EACjB,QAAgB,EAChB,gBAAwB,EACxB,YAAoB,EACpB,KAAK,EACL,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,iBAAwB,EACxB,YAAY,EACZ,YAAY,GACb,EAAE,wBAAwB,kDAmK1B"}
|
|
@@ -7,10 +7,12 @@ import { CanvasPortal } from "./CanvasPortal.js";
|
|
|
7
7
|
import { PanelChrome } from "./PanelChrome.js";
|
|
8
8
|
import { useFloatingPosition } from "./useFloatingPosition.js";
|
|
9
9
|
const PANEL_BASE_CLASS = 'text-(--canvas-foreground) bg-(--canvas-background-raised) border border-(--canvas-border-de-emp) text-sm flex flex-col transition-opacity duration-200 ease-in-out';
|
|
10
|
+
const PANEL_FLOATING_MAX_HEIGHT = 600;
|
|
11
|
+
const PANEL_FLOATING_MIN_HEIGHT = 100;
|
|
10
12
|
const PANEL_FLOATING_CLASS = 'rounded-lg shadow-[0_4px_16px_rgba(0,0,0,0.12)] w-auto min-w-[280px] max-w-none h-auto max-h-[600px]';
|
|
11
13
|
const PANEL_PINNED_CLASS = 'rounded-none shadow-none w-[320px] min-w-[320px] max-w-[320px] h-screen max-h-screen';
|
|
12
|
-
function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'right-start', offset = 20, fallbackPlacement, isPinned = false, useFixedPosition = false, portalToBody = false, title, header, headerActions, children, onClose, scrollKey, onMouseEnter, onMouseLeave }) {
|
|
13
|
-
const { computedAnchor, floatingStyles, refs, mergedReferenceRef } = useFloatingPosition({
|
|
14
|
+
function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'right-start', offset = 20, fallbackPlacement, isPinned = false, useFixedPosition = false, portalToBody = false, title, header, headerActions, children, onClose, scrollKey, scrollableContent = true, onMouseEnter, onMouseLeave }) {
|
|
15
|
+
const { computedAnchor, floatingStyles, availableHeight, refs, mergedReferenceRef } = useFloatingPosition({
|
|
14
16
|
open,
|
|
15
17
|
nodeId,
|
|
16
18
|
anchorRect,
|
|
@@ -21,6 +23,19 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
21
23
|
const panelClassName = useMemo(()=>cn(PANEL_BASE_CLASS, isPinned ? PANEL_PINNED_CLASS : PANEL_FLOATING_CLASS), [
|
|
22
24
|
isPinned
|
|
23
25
|
]);
|
|
26
|
+
const sizingStyle = useMemo(()=>{
|
|
27
|
+
if (isPinned || null == availableHeight) return {};
|
|
28
|
+
const maxHeight = Math.min(PANEL_FLOATING_MAX_HEIGHT, availableHeight);
|
|
29
|
+
const occupiedHeight = Math.max(PANEL_FLOATING_MIN_HEIGHT, maxHeight);
|
|
30
|
+
return {
|
|
31
|
+
maxHeight: `${maxHeight}px`,
|
|
32
|
+
minHeight: `${PANEL_FLOATING_MIN_HEIGHT}px`,
|
|
33
|
+
['--floating-available-height']: `${occupiedHeight}px`
|
|
34
|
+
};
|
|
35
|
+
}, [
|
|
36
|
+
isPinned,
|
|
37
|
+
availableHeight
|
|
38
|
+
]);
|
|
24
39
|
if (!open || !computedAnchor) return null;
|
|
25
40
|
if (useFixedPosition && anchorRect) {
|
|
26
41
|
const getScreenSpacePosition = ()=>{
|
|
@@ -72,6 +87,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
72
87
|
style: {
|
|
73
88
|
position: 'fixed',
|
|
74
89
|
...screenPosition,
|
|
90
|
+
...sizingStyle,
|
|
75
91
|
zIndex: 1100,
|
|
76
92
|
pointerEvents: 'auto'
|
|
77
93
|
},
|
|
@@ -81,6 +97,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
81
97
|
headerActions: headerActions,
|
|
82
98
|
onClose: onClose,
|
|
83
99
|
scrollKey: scrollKey,
|
|
100
|
+
scrollableContent: scrollableContent,
|
|
84
101
|
children: children
|
|
85
102
|
})
|
|
86
103
|
});
|
|
@@ -95,6 +112,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
95
112
|
onPointerLeave: onMouseLeave,
|
|
96
113
|
style: {
|
|
97
114
|
...isPinned ? {} : floatingStyles,
|
|
115
|
+
...sizingStyle,
|
|
98
116
|
position: isPinned ? 'fixed' : 'absolute',
|
|
99
117
|
right: isPinned ? 0 : void 0,
|
|
100
118
|
top: isPinned ? 0 : void 0,
|
|
@@ -107,6 +125,7 @@ function FloatingCanvasPanel({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
107
125
|
headerActions: headerActions,
|
|
108
126
|
onClose: onClose,
|
|
109
127
|
scrollKey: scrollKey,
|
|
128
|
+
scrollableContent: scrollableContent,
|
|
110
129
|
children: children
|
|
111
130
|
})
|
|
112
131
|
});
|
|
@@ -51,7 +51,8 @@ const PanelHeader = styled_default().div`
|
|
|
51
51
|
`;
|
|
52
52
|
const PanelContent = styled_default().div`
|
|
53
53
|
flex: 1;
|
|
54
|
-
|
|
54
|
+
min-height: 0;
|
|
55
|
+
overflow-y: ${(props)=>false === props.scrollable ? 'hidden' : 'auto'};
|
|
55
56
|
overflow-x: hidden;
|
|
56
57
|
|
|
57
58
|
&::-webkit-scrollbar {
|
|
@@ -72,7 +73,7 @@ const PanelContent = styled_default().div`
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
`;
|
|
75
|
-
function PanelChrome({ title, header, headerActions, children, onClose, scrollKey }) {
|
|
76
|
+
function PanelChrome({ title, header, headerActions, children, onClose, scrollKey, scrollableContent = true }) {
|
|
76
77
|
const contentRef = (0, external_react_namespaceObject.useRef)(null);
|
|
77
78
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
78
79
|
if (contentRef.current && scrollKey) contentRef.current.scrollTop = 0;
|
|
@@ -114,6 +115,7 @@ function PanelChrome({ title, header, headerActions, children, onClose, scrollKe
|
|
|
114
115
|
}),
|
|
115
116
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PanelContent, {
|
|
116
117
|
ref: contentRef,
|
|
118
|
+
scrollable: scrollableContent,
|
|
117
119
|
children: children
|
|
118
120
|
})
|
|
119
121
|
]
|
|
@@ -6,6 +6,7 @@ export interface PanelChromeProps {
|
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
onClose?: () => void;
|
|
8
8
|
scrollKey?: string;
|
|
9
|
+
scrollableContent?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare function PanelChrome({ title, header, headerActions, children, onClose, scrollKey, }: PanelChromeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function PanelChrome({ title, header, headerActions, children, onClose, scrollKey, scrollableContent, }: PanelChromeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
//# sourceMappingURL=PanelChrome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelChrome.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/PanelChrome.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PanelChrome.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/PanelChrome.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsCvC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,iBAAwB,GACzB,EAAE,gBAAgB,2CAuClB"}
|
|
@@ -13,7 +13,8 @@ const PanelHeader = styled.div`
|
|
|
13
13
|
`;
|
|
14
14
|
const PanelContent = styled.div`
|
|
15
15
|
flex: 1;
|
|
16
|
-
|
|
16
|
+
min-height: 0;
|
|
17
|
+
overflow-y: ${(props)=>false === props.scrollable ? 'hidden' : 'auto'};
|
|
17
18
|
overflow-x: hidden;
|
|
18
19
|
|
|
19
20
|
&::-webkit-scrollbar {
|
|
@@ -34,7 +35,7 @@ const PanelContent = styled.div`
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
`;
|
|
37
|
-
function PanelChrome({ title, header, headerActions, children, onClose, scrollKey }) {
|
|
38
|
+
function PanelChrome({ title, header, headerActions, children, onClose, scrollKey, scrollableContent = true }) {
|
|
38
39
|
const contentRef = useRef(null);
|
|
39
40
|
useEffect(()=>{
|
|
40
41
|
if (contentRef.current && scrollKey) contentRef.current.scrollTop = 0;
|
|
@@ -76,6 +77,7 @@ function PanelChrome({ title, header, headerActions, children, onClose, scrollKe
|
|
|
76
77
|
}),
|
|
77
78
|
/*#__PURE__*/ jsx(PanelContent, {
|
|
78
79
|
ref: contentRef,
|
|
80
|
+
scrollable: scrollableContent,
|
|
79
81
|
children: children
|
|
80
82
|
})
|
|
81
83
|
]
|
|
@@ -29,9 +29,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const react_namespaceObject = require("@floating-ui/react");
|
|
30
30
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
+
const VIEWPORT_PADDING = 8;
|
|
32
33
|
function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'right-start', offset: offsetValue = 20, fallbackPlacement = 'none' }) {
|
|
33
34
|
const referenceRef = (0, external_react_namespaceObject.useRef)(null);
|
|
34
35
|
const internalNode = (0, react_cjs_namespaceObject.useInternalNode)(nodeId || '');
|
|
36
|
+
const [availableHeight, setAvailableHeight] = (0, external_react_namespaceObject.useState)(null);
|
|
35
37
|
const computedAnchor = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
36
38
|
if (anchorRect) return anchorRect;
|
|
37
39
|
if (!internalNode) return null;
|
|
@@ -58,6 +60,16 @@ function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
58
60
|
(0, react_namespaceObject.offset)(offsetValue),
|
|
59
61
|
(0, react_namespaceObject.flip)({
|
|
60
62
|
fallbackAxisSideDirection: fallbackPlacement
|
|
63
|
+
}),
|
|
64
|
+
(0, react_namespaceObject.shift)({
|
|
65
|
+
padding: VIEWPORT_PADDING
|
|
66
|
+
}),
|
|
67
|
+
(0, react_namespaceObject.size)({
|
|
68
|
+
padding: VIEWPORT_PADDING,
|
|
69
|
+
apply ({ availableHeight: ah }) {
|
|
70
|
+
const next = Math.max(0, Math.floor(ah));
|
|
71
|
+
setAvailableHeight((prev)=>prev === next ? prev : next);
|
|
72
|
+
}
|
|
61
73
|
})
|
|
62
74
|
],
|
|
63
75
|
whileElementsMounted: react_namespaceObject.autoUpdate
|
|
@@ -66,6 +78,11 @@ function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
66
78
|
refs.setReference,
|
|
67
79
|
referenceRef
|
|
68
80
|
]);
|
|
81
|
+
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
82
|
+
if (!open) setAvailableHeight(null);
|
|
83
|
+
}, [
|
|
84
|
+
open
|
|
85
|
+
]);
|
|
69
86
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
70
87
|
if (open) update();
|
|
71
88
|
}, [
|
|
@@ -79,6 +96,7 @@ function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
79
96
|
return {
|
|
80
97
|
computedAnchor,
|
|
81
98
|
floatingStyles,
|
|
99
|
+
availableHeight,
|
|
82
100
|
refs,
|
|
83
101
|
mergedReferenceRef
|
|
84
102
|
};
|
|
@@ -17,6 +17,7 @@ export interface UseFloatingPositionOptions {
|
|
|
17
17
|
export interface UseFloatingPositionReturn {
|
|
18
18
|
computedAnchor: AnchorRect | null;
|
|
19
19
|
floatingStyles: CSSProperties;
|
|
20
|
+
availableHeight: number | null;
|
|
20
21
|
refs: {
|
|
21
22
|
setReference: RefCallback<Element>;
|
|
22
23
|
setFloating: RefCallback<HTMLElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingPosition.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/useFloatingPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"useFloatingPosition.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/useFloatingPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EAKf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAwC,MAAM,OAAO,CAAC;AAEnG,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AASjF,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;CAC9C;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,aAAa,CAAC;IAC9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,IAAI,EAAE;QACJ,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;KACvC,CAAC;IACF,kBAAkB,EAAE,CAAC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CACjE;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAW,EACX,MAAM,EACN,UAAU,EACV,SAAyB,EACzB,MAAM,EAAE,WAAgB,EACxB,iBAA0B,GAC3B,EAAE,0BAA0B,GAAG,yBAAyB,CAmExD"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { autoUpdate, flip, offset, useFloating, useMergeRefs } from "@floating-ui/react";
|
|
1
|
+
import { autoUpdate, flip, offset, shift, size, useFloating, useMergeRefs } from "@floating-ui/react";
|
|
2
2
|
import { useInternalNode } from "../../xyflow/react.js";
|
|
3
|
-
import { useEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
const VIEWPORT_PADDING = 8;
|
|
4
5
|
function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'right-start', offset: offsetValue = 20, fallbackPlacement = 'none' }) {
|
|
5
6
|
const referenceRef = useRef(null);
|
|
6
7
|
const internalNode = useInternalNode(nodeId || '');
|
|
8
|
+
const [availableHeight, setAvailableHeight] = useState(null);
|
|
7
9
|
const computedAnchor = useMemo(()=>{
|
|
8
10
|
if (anchorRect) return anchorRect;
|
|
9
11
|
if (!internalNode) return null;
|
|
@@ -30,6 +32,16 @@ function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
30
32
|
offset(offsetValue),
|
|
31
33
|
flip({
|
|
32
34
|
fallbackAxisSideDirection: fallbackPlacement
|
|
35
|
+
}),
|
|
36
|
+
shift({
|
|
37
|
+
padding: VIEWPORT_PADDING
|
|
38
|
+
}),
|
|
39
|
+
size({
|
|
40
|
+
padding: VIEWPORT_PADDING,
|
|
41
|
+
apply ({ availableHeight: ah }) {
|
|
42
|
+
const next = Math.max(0, Math.floor(ah));
|
|
43
|
+
setAvailableHeight((prev)=>prev === next ? prev : next);
|
|
44
|
+
}
|
|
33
45
|
})
|
|
34
46
|
],
|
|
35
47
|
whileElementsMounted: autoUpdate
|
|
@@ -38,6 +50,11 @@ function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
38
50
|
refs.setReference,
|
|
39
51
|
referenceRef
|
|
40
52
|
]);
|
|
53
|
+
useEffect(()=>{
|
|
54
|
+
if (!open) setAvailableHeight(null);
|
|
55
|
+
}, [
|
|
56
|
+
open
|
|
57
|
+
]);
|
|
41
58
|
useEffect(()=>{
|
|
42
59
|
if (open) update();
|
|
43
60
|
}, [
|
|
@@ -51,6 +68,7 @@ function useFloatingPosition({ open = true, nodeId, anchorRect, placement = 'rig
|
|
|
51
68
|
return {
|
|
52
69
|
computedAnchor,
|
|
53
70
|
floatingStyles,
|
|
71
|
+
availableHeight,
|
|
54
72
|
refs,
|
|
55
73
|
mergedReferenceRef
|
|
56
74
|
};
|
|
@@ -428,15 +428,30 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
428
428
|
startTransition,
|
|
429
429
|
handleBackTransition
|
|
430
430
|
]);
|
|
431
|
+
const responsiveStyle = (0, external_react_namespaceObject.useMemo)(()=>fullHeight ? {
|
|
432
|
+
boxSizing: 'border-box',
|
|
433
|
+
overflow: 'hidden'
|
|
434
|
+
} : {
|
|
435
|
+
boxSizing: 'border-box',
|
|
436
|
+
overflow: 'hidden',
|
|
437
|
+
maxHeight: `min(${external_constants_cjs_namespaceObject.TOOLBOX_HEIGHT}px, var(--floating-available-height, ${external_constants_cjs_namespaceObject.TOOLBOX_HEIGHT}px))`
|
|
438
|
+
}, [
|
|
439
|
+
fullHeight
|
|
440
|
+
]);
|
|
431
441
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
432
442
|
ref: containerRef,
|
|
433
443
|
"data-testid": "toolbox-container",
|
|
444
|
+
style: {
|
|
445
|
+
maxHeight: '100%',
|
|
446
|
+
overflow: 'hidden'
|
|
447
|
+
},
|
|
434
448
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_layouts_index_cjs_namespaceObject.Column, {
|
|
435
449
|
px: external_constants_cjs_namespaceObject.TOOLBOX_PADDING_X,
|
|
436
450
|
py: external_constants_cjs_namespaceObject.TOOLBOX_PADDING_Y,
|
|
437
451
|
gap: external_constants_cjs_namespaceObject.TOOLBOX_GAP,
|
|
438
452
|
w: fullWidth ? '100%' : external_constants_cjs_namespaceObject.TOOLBOX_WIDTH,
|
|
439
453
|
h: fullHeight ? '100%' : external_constants_cjs_namespaceObject.TOOLBOX_HEIGHT,
|
|
454
|
+
style: responsiveStyle,
|
|
440
455
|
children: [
|
|
441
456
|
quickActions && quickActions.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_QuickActionsRow_cjs_namespaceObject.QuickActionsRow, {
|
|
442
457
|
actions: quickActions
|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AC,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAOnC,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAOpC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;CACjD;AAgDD,wBAAgB,OAAO,CAAC,CAAC,EAAE,EACzB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,OAAO,EACP,SAAiB,EACjB,UAAkB,EAClB,YAAY,EACZ,gBAAgB,GACjB,EAAE,YAAY,CAAC,CAAC,CAAC,2CAkiBjB"}
|
|
@@ -400,15 +400,30 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
400
400
|
startTransition,
|
|
401
401
|
handleBackTransition
|
|
402
402
|
]);
|
|
403
|
+
const responsiveStyle = useMemo(()=>fullHeight ? {
|
|
404
|
+
boxSizing: 'border-box',
|
|
405
|
+
overflow: 'hidden'
|
|
406
|
+
} : {
|
|
407
|
+
boxSizing: 'border-box',
|
|
408
|
+
overflow: 'hidden',
|
|
409
|
+
maxHeight: `min(${TOOLBOX_HEIGHT}px, var(--floating-available-height, ${TOOLBOX_HEIGHT}px))`
|
|
410
|
+
}, [
|
|
411
|
+
fullHeight
|
|
412
|
+
]);
|
|
403
413
|
return /*#__PURE__*/ jsx("div", {
|
|
404
414
|
ref: containerRef,
|
|
405
415
|
"data-testid": "toolbox-container",
|
|
416
|
+
style: {
|
|
417
|
+
maxHeight: '100%',
|
|
418
|
+
overflow: 'hidden'
|
|
419
|
+
},
|
|
406
420
|
children: /*#__PURE__*/ jsxs(Column, {
|
|
407
421
|
px: TOOLBOX_PADDING_X,
|
|
408
422
|
py: TOOLBOX_PADDING_Y,
|
|
409
423
|
gap: TOOLBOX_GAP,
|
|
410
424
|
w: fullWidth ? '100%' : TOOLBOX_WIDTH,
|
|
411
425
|
h: fullHeight ? '100%' : TOOLBOX_HEIGHT,
|
|
426
|
+
style: responsiveStyle,
|
|
412
427
|
children: [
|
|
413
428
|
quickActions && quickActions.length > 0 && /*#__PURE__*/ jsx(QuickActionsRow, {
|
|
414
429
|
actions: quickActions
|
|
@@ -71,14 +71,14 @@ const AnimatedContainer = styled_default().div`
|
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
overflow: hidden;
|
|
74
|
-
min-height:
|
|
74
|
+
min-height: 50px;
|
|
75
75
|
`;
|
|
76
76
|
const AnimatedContent = styled_default().div`
|
|
77
77
|
flex: 1;
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
animation: ${(props)=>props.entering ? `slideIn-${props.direction}` : 'none'} 0.15s ease-out;
|
|
81
|
-
min-height:
|
|
81
|
+
min-height: 50px;
|
|
82
82
|
|
|
83
83
|
@keyframes slideIn-forward {
|
|
84
84
|
from {
|
|
@@ -31,14 +31,14 @@ const AnimatedContainer = styled.div`
|
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
overflow: hidden;
|
|
34
|
-
min-height:
|
|
34
|
+
min-height: 50px;
|
|
35
35
|
`;
|
|
36
36
|
const AnimatedContent = styled.div`
|
|
37
37
|
flex: 1;
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
animation: ${(props)=>props.entering ? `slideIn-${props.direction}` : 'none'} 0.15s ease-out;
|
|
41
|
-
min-height:
|
|
41
|
+
min-height: 50px;
|
|
42
42
|
|
|
43
43
|
@keyframes slideIn-forward {
|
|
44
44
|
from {
|