@uipath/apollo-react 6.68.0 → 6.70.0
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/createAddNodePreview.cjs +2 -2
- package/dist/canvas/components/AddNodePanel/createAddNodePreview.d.ts +1 -1
- package/dist/canvas/components/AddNodePanel/createAddNodePreview.d.ts.map +1 -1
- package/dist/canvas/components/AddNodePanel/createAddNodePreview.js +1 -1
- package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts +11 -0
- package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/NodeLabel.cjs +4 -85
- package/dist/canvas/components/BaseNode/NodeLabel.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/NodeLabel.js +5 -86
- package/dist/canvas/components/BaseNode/useInlineLabelEditing.cjs +141 -0
- package/dist/canvas/components/BaseNode/useInlineLabelEditing.d.ts +28 -0
- package/dist/canvas/components/BaseNode/useInlineLabelEditing.d.ts.map +1 -0
- package/dist/canvas/components/BaseNode/useInlineLabelEditing.js +107 -0
- package/dist/canvas/components/CaseFlow/case-flow.manifest.d.ts +11 -0
- package/dist/canvas/components/CaseFlow/case-flow.manifest.d.ts.map +1 -1
- package/dist/canvas/components/ContainerNode/ContainerBadge.cjs +45 -0
- package/dist/canvas/components/ContainerNode/ContainerBadge.d.ts +6 -0
- package/dist/canvas/components/ContainerNode/ContainerBadge.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerBadge.js +11 -0
- package/dist/canvas/components/ContainerNode/ContainerCanvasNode.cjs +83 -0
- package/dist/canvas/components/ContainerNode/ContainerCanvasNode.d.ts +6 -0
- package/dist/canvas/components/ContainerNode/ContainerCanvasNode.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerCanvasNode.js +49 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.cjs +375 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.config.cjs +65 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.config.d.ts +20 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.config.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.config.js +28 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.constants.cjs +173 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.constants.d.ts +50 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.constants.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.constants.js +100 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.d.ts +5 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.helpers.cjs +183 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.helpers.d.ts +34 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.helpers.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.helpers.js +137 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.cjs +100 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.d.ts +9 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.js +54 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.js +341 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.types.cjs +18 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.types.d.ts +69 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.types.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNode.types.js +0 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeHeader.cjs +144 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeHeader.d.ts +32 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeHeader.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeHeader.js +110 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeParts.cjs +167 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeParts.d.ts +51 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeParts.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/ContainerNodeParts.js +118 -0
- package/dist/canvas/components/{LoopNode/LoopNodePreview.cjs → ContainerNode/ContainerNodePreview.cjs} +4 -4
- package/dist/canvas/components/{LoopNode/LoopNodePreview.d.ts → ContainerNode/ContainerNodePreview.d.ts} +2 -2
- package/dist/canvas/components/ContainerNode/ContainerNodePreview.d.ts.map +1 -0
- package/dist/canvas/components/{LoopNode/LoopNodePreview.js → ContainerNode/ContainerNodePreview.js} +3 -3
- package/dist/canvas/components/ContainerNode/index.cjs +86 -0
- package/dist/canvas/components/ContainerNode/index.d.ts +6 -0
- package/dist/canvas/components/ContainerNode/index.d.ts.map +1 -0
- package/dist/canvas/components/ContainerNode/index.js +5 -0
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +2 -2
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +2 -2
- package/dist/canvas/components/LoopNode/LoopCanvasNode.cjs +2 -41
- package/dist/canvas/components/LoopNode/LoopCanvasNode.d.ts +1 -5
- package/dist/canvas/components/LoopNode/LoopCanvasNode.d.ts.map +1 -1
- package/dist/canvas/components/LoopNode/LoopCanvasNode.js +2 -41
- package/dist/canvas/components/LoopNode/LoopNode.cjs +49 -525
- package/dist/canvas/components/LoopNode/LoopNode.d.ts +5 -1
- package/dist/canvas/components/LoopNode/LoopNode.d.ts.map +1 -1
- package/dist/canvas/components/LoopNode/LoopNode.helpers.cjs +32 -155
- package/dist/canvas/components/LoopNode/LoopNode.helpers.d.ts +1 -33
- package/dist/canvas/components/LoopNode/LoopNode.helpers.d.ts.map +1 -1
- package/dist/canvas/components/LoopNode/LoopNode.helpers.js +1 -135
- package/dist/canvas/components/LoopNode/LoopNode.js +50 -529
- package/dist/canvas/components/LoopNode/LoopNode.types.d.ts +3 -12
- package/dist/canvas/components/LoopNode/LoopNode.types.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.cjs +2 -2
- package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.js +1 -1
- package/dist/canvas/components/index.cjs +51 -44
- package/dist/canvas/components/index.d.ts +1 -0
- package/dist/canvas/components/index.d.ts.map +1 -1
- package/dist/canvas/components/index.js +1 -0
- package/dist/canvas/hooks/useAddNodeOnConnectEnd.cjs +2 -2
- package/dist/canvas/hooks/useAddNodeOnConnectEnd.js +1 -1
- package/dist/canvas/locales/en.cjs +1 -1
- package/dist/canvas/locales/en.d.ts.map +1 -1
- package/dist/canvas/locales/en.js +1 -1
- package/dist/canvas/schema/node-definition/index.cjs +3 -0
- package/dist/canvas/schema/node-definition/index.d.ts +2 -2
- package/dist/canvas/schema/node-definition/index.d.ts.map +1 -1
- package/dist/canvas/schema/node-definition/index.js +2 -2
- package/dist/canvas/schema/node-definition/node-manifest.cjs +37 -2
- package/dist/canvas/schema/node-definition/node-manifest.d.ts +85 -0
- package/dist/canvas/schema/node-definition/node-manifest.d.ts.map +1 -1
- package/dist/canvas/schema/node-definition/node-manifest.js +34 -2
- package/dist/canvas/storybook-utils/hooks/useCanvasStory.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/manifests/index.d.ts +11 -0
- package/dist/canvas/storybook-utils/manifests/index.d.ts.map +1 -1
- package/dist/canvas/styles/reactflow-reset.css +2 -2
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/package.json +3 -3
- package/dist/canvas/components/LoopNode/LoopNodePreview.d.ts.map +0 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
BODY_FRAME_CLASSES: ()=>BODY_FRAME_CLASSES,
|
|
28
|
+
DEFAULT_RESIZE_MINIMUMS: ()=>DEFAULT_RESIZE_MINIMUMS,
|
|
29
|
+
RADIUS_CLASSES: ()=>RADIUS_CLASSES,
|
|
30
|
+
ACCENT_ICON_CLASSES: ()=>ACCENT_ICON_CLASSES,
|
|
31
|
+
ACCENT_BORDER_CLASSES: ()=>ACCENT_BORDER_CLASSES,
|
|
32
|
+
EMPTY_DATA: ()=>EMPTY_DATA,
|
|
33
|
+
RESIZE_CONTROLS: ()=>RESIZE_CONTROLS,
|
|
34
|
+
ADORNMENT_SLOT_POSITIONS: ()=>ADORNMENT_SLOT_POSITIONS,
|
|
35
|
+
LOOP_KIND: ()=>LOOP_KIND,
|
|
36
|
+
DEFAULT_CONTAINER_ICON: ()=>DEFAULT_CONTAINER_ICON,
|
|
37
|
+
HEADER_ADORNMENT_PADDING: ()=>HEADER_ADORNMENT_PADDING,
|
|
38
|
+
RESIZE_CONTROL_STYLE: ()=>RESIZE_CONTROL_STYLE,
|
|
39
|
+
ADORNMENT_SLOT_SHAPES: ()=>ADORNMENT_SLOT_SHAPES,
|
|
40
|
+
HEADER_ADORNMENT_GAP: ()=>HEADER_ADORNMENT_GAP
|
|
41
|
+
});
|
|
42
|
+
const external_constants_cjs_namespaceObject = require("../../constants.cjs");
|
|
43
|
+
const container_cjs_namespaceObject = require("../../utils/container.cjs");
|
|
44
|
+
const DEFAULT_CONTAINER_ICON = 'box';
|
|
45
|
+
const LOOP_KIND = 'loop';
|
|
46
|
+
const EMPTY_DATA = {};
|
|
47
|
+
const HEADER_ADORNMENT_GAP = 8;
|
|
48
|
+
const HEADER_ADORNMENT_PADDING = external_constants_cjs_namespaceObject.NODE_BADGE_INSET_SQUARE + external_constants_cjs_namespaceObject.NODE_BADGE_SIZE + HEADER_ADORNMENT_GAP;
|
|
49
|
+
const RADIUS_CLASSES = {
|
|
50
|
+
default: {
|
|
51
|
+
root: 'rounded-[20px]',
|
|
52
|
+
clip: 'rounded-[19px]',
|
|
53
|
+
header: 'rounded-t-[18px]',
|
|
54
|
+
body: 'rounded-xl'
|
|
55
|
+
},
|
|
56
|
+
xl: {
|
|
57
|
+
root: 'rounded-xl',
|
|
58
|
+
clip: 'rounded-[11px]',
|
|
59
|
+
header: 'rounded-t-[10px]',
|
|
60
|
+
body: 'rounded'
|
|
61
|
+
},
|
|
62
|
+
lg: {
|
|
63
|
+
root: 'rounded-lg',
|
|
64
|
+
clip: 'rounded-[7px]',
|
|
65
|
+
header: 'rounded-t-[6px]',
|
|
66
|
+
body: 'rounded-sm'
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const ACCENT_BORDER_CLASSES = {
|
|
70
|
+
default: 'border-border',
|
|
71
|
+
info: 'border-info',
|
|
72
|
+
warning: 'border-warning',
|
|
73
|
+
error: 'border-error',
|
|
74
|
+
success: 'border-success'
|
|
75
|
+
};
|
|
76
|
+
const ACCENT_ICON_CLASSES = {
|
|
77
|
+
default: 'text-foreground',
|
|
78
|
+
info: 'text-info',
|
|
79
|
+
warning: 'text-warning',
|
|
80
|
+
error: 'text-error',
|
|
81
|
+
success: 'text-success'
|
|
82
|
+
};
|
|
83
|
+
const BODY_FRAME_CLASSES = {
|
|
84
|
+
dashed: 'border-[1.5px] border-dashed border-border',
|
|
85
|
+
solid: 'border-[1.5px] border-solid border-border',
|
|
86
|
+
none: 'border-[1.5px] border-transparent'
|
|
87
|
+
};
|
|
88
|
+
const RESIZE_CONTROLS = [
|
|
89
|
+
{
|
|
90
|
+
position: 'top-left',
|
|
91
|
+
widthSide: 'left',
|
|
92
|
+
heightSide: 'top',
|
|
93
|
+
cursor: 'nwse-resize',
|
|
94
|
+
indicatorClassName: 'top-[-4px] left-[-4px]'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
position: 'top-right',
|
|
98
|
+
widthSide: 'right',
|
|
99
|
+
heightSide: 'top',
|
|
100
|
+
cursor: 'nesw-resize',
|
|
101
|
+
indicatorClassName: 'top-[-4px] right-[-4px]'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
position: 'bottom-left',
|
|
105
|
+
widthSide: 'left',
|
|
106
|
+
heightSide: 'bottom',
|
|
107
|
+
cursor: 'nesw-resize',
|
|
108
|
+
indicatorClassName: 'bottom-[-4px] left-[-4px]'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
position: 'bottom-right',
|
|
112
|
+
widthSide: 'right',
|
|
113
|
+
heightSide: 'bottom',
|
|
114
|
+
cursor: 'nwse-resize',
|
|
115
|
+
indicatorClassName: 'bottom-[-4px] right-[-4px]'
|
|
116
|
+
}
|
|
117
|
+
];
|
|
118
|
+
const RESIZE_CONTROL_STYLE = {
|
|
119
|
+
background: 'transparent',
|
|
120
|
+
border: 'none',
|
|
121
|
+
zIndex: 100
|
|
122
|
+
};
|
|
123
|
+
const DEFAULT_RESIZE_MINIMUMS = {
|
|
124
|
+
left: container_cjs_namespaceObject.DEFAULT_CONTAINER_MIN_WIDTH,
|
|
125
|
+
right: container_cjs_namespaceObject.DEFAULT_CONTAINER_MIN_WIDTH,
|
|
126
|
+
top: container_cjs_namespaceObject.DEFAULT_CONTAINER_MIN_HEIGHT,
|
|
127
|
+
bottom: container_cjs_namespaceObject.DEFAULT_CONTAINER_MIN_HEIGHT
|
|
128
|
+
};
|
|
129
|
+
const ADORNMENT_SLOT_POSITIONS = [
|
|
130
|
+
'topLeft',
|
|
131
|
+
'topRight',
|
|
132
|
+
'bottomLeft',
|
|
133
|
+
'bottomRight'
|
|
134
|
+
];
|
|
135
|
+
const ADORNMENT_SLOT_SHAPES = {
|
|
136
|
+
topLeft: 'top-left',
|
|
137
|
+
topRight: 'top-right',
|
|
138
|
+
bottomLeft: 'bottom-left',
|
|
139
|
+
bottomRight: 'bottom-right'
|
|
140
|
+
};
|
|
141
|
+
exports.ACCENT_BORDER_CLASSES = __webpack_exports__.ACCENT_BORDER_CLASSES;
|
|
142
|
+
exports.ACCENT_ICON_CLASSES = __webpack_exports__.ACCENT_ICON_CLASSES;
|
|
143
|
+
exports.ADORNMENT_SLOT_POSITIONS = __webpack_exports__.ADORNMENT_SLOT_POSITIONS;
|
|
144
|
+
exports.ADORNMENT_SLOT_SHAPES = __webpack_exports__.ADORNMENT_SLOT_SHAPES;
|
|
145
|
+
exports.BODY_FRAME_CLASSES = __webpack_exports__.BODY_FRAME_CLASSES;
|
|
146
|
+
exports.DEFAULT_CONTAINER_ICON = __webpack_exports__.DEFAULT_CONTAINER_ICON;
|
|
147
|
+
exports.DEFAULT_RESIZE_MINIMUMS = __webpack_exports__.DEFAULT_RESIZE_MINIMUMS;
|
|
148
|
+
exports.EMPTY_DATA = __webpack_exports__.EMPTY_DATA;
|
|
149
|
+
exports.HEADER_ADORNMENT_GAP = __webpack_exports__.HEADER_ADORNMENT_GAP;
|
|
150
|
+
exports.HEADER_ADORNMENT_PADDING = __webpack_exports__.HEADER_ADORNMENT_PADDING;
|
|
151
|
+
exports.LOOP_KIND = __webpack_exports__.LOOP_KIND;
|
|
152
|
+
exports.RADIUS_CLASSES = __webpack_exports__.RADIUS_CLASSES;
|
|
153
|
+
exports.RESIZE_CONTROLS = __webpack_exports__.RESIZE_CONTROLS;
|
|
154
|
+
exports.RESIZE_CONTROL_STYLE = __webpack_exports__.RESIZE_CONTROL_STYLE;
|
|
155
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
156
|
+
"ACCENT_BORDER_CLASSES",
|
|
157
|
+
"ACCENT_ICON_CLASSES",
|
|
158
|
+
"ADORNMENT_SLOT_POSITIONS",
|
|
159
|
+
"ADORNMENT_SLOT_SHAPES",
|
|
160
|
+
"BODY_FRAME_CLASSES",
|
|
161
|
+
"DEFAULT_CONTAINER_ICON",
|
|
162
|
+
"DEFAULT_RESIZE_MINIMUMS",
|
|
163
|
+
"EMPTY_DATA",
|
|
164
|
+
"HEADER_ADORNMENT_GAP",
|
|
165
|
+
"HEADER_ADORNMENT_PADDING",
|
|
166
|
+
"LOOP_KIND",
|
|
167
|
+
"RADIUS_CLASSES",
|
|
168
|
+
"RESIZE_CONTROLS",
|
|
169
|
+
"RESIZE_CONTROL_STYLE"
|
|
170
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
171
|
+
Object.defineProperty(exports, '__esModule', {
|
|
172
|
+
value: true
|
|
173
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ContainerResizeMinimums } from '../../utils/container';
|
|
2
|
+
import type { ContainerAccent, ContainerBodyFrame, ContainerRadius } from './ContainerNode.types';
|
|
3
|
+
export declare const DEFAULT_CONTAINER_ICON = "box";
|
|
4
|
+
export declare const LOOP_KIND = "loop";
|
|
5
|
+
export declare const EMPTY_DATA: Record<string, unknown>;
|
|
6
|
+
export declare const HEADER_ADORNMENT_GAP = 8;
|
|
7
|
+
export declare const HEADER_ADORNMENT_PADDING: number;
|
|
8
|
+
export declare const RADIUS_CLASSES: Record<ContainerRadius, {
|
|
9
|
+
root: string;
|
|
10
|
+
clip: string;
|
|
11
|
+
header: string;
|
|
12
|
+
body: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const ACCENT_BORDER_CLASSES: Record<ContainerAccent, string>;
|
|
15
|
+
export declare const ACCENT_ICON_CLASSES: Record<ContainerAccent, string>;
|
|
16
|
+
export declare const BODY_FRAME_CLASSES: Record<ContainerBodyFrame, string>;
|
|
17
|
+
export declare const RESIZE_CONTROLS: readonly [{
|
|
18
|
+
readonly position: "top-left";
|
|
19
|
+
readonly widthSide: "left";
|
|
20
|
+
readonly heightSide: "top";
|
|
21
|
+
readonly cursor: "nwse-resize";
|
|
22
|
+
readonly indicatorClassName: "top-[-4px] left-[-4px]";
|
|
23
|
+
}, {
|
|
24
|
+
readonly position: "top-right";
|
|
25
|
+
readonly widthSide: "right";
|
|
26
|
+
readonly heightSide: "top";
|
|
27
|
+
readonly cursor: "nesw-resize";
|
|
28
|
+
readonly indicatorClassName: "top-[-4px] right-[-4px]";
|
|
29
|
+
}, {
|
|
30
|
+
readonly position: "bottom-left";
|
|
31
|
+
readonly widthSide: "left";
|
|
32
|
+
readonly heightSide: "bottom";
|
|
33
|
+
readonly cursor: "nesw-resize";
|
|
34
|
+
readonly indicatorClassName: "bottom-[-4px] left-[-4px]";
|
|
35
|
+
}, {
|
|
36
|
+
readonly position: "bottom-right";
|
|
37
|
+
readonly widthSide: "right";
|
|
38
|
+
readonly heightSide: "bottom";
|
|
39
|
+
readonly cursor: "nwse-resize";
|
|
40
|
+
readonly indicatorClassName: "bottom-[-4px] right-[-4px]";
|
|
41
|
+
}];
|
|
42
|
+
export declare const RESIZE_CONTROL_STYLE: {
|
|
43
|
+
readonly background: "transparent";
|
|
44
|
+
readonly border: "none";
|
|
45
|
+
readonly zIndex: 100;
|
|
46
|
+
};
|
|
47
|
+
export declare const DEFAULT_RESIZE_MINIMUMS: ContainerResizeMinimums;
|
|
48
|
+
export declare const ADORNMENT_SLOT_POSITIONS: readonly ["topLeft", "topRight", "bottomLeft", "bottomRight"];
|
|
49
|
+
export declare const ADORNMENT_SLOT_SHAPES: Record<(typeof ADORNMENT_SLOT_POSITIONS)[number], 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'>;
|
|
50
|
+
//# sourceMappingURL=ContainerNode.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerNode.constants.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ContainerNode/ContainerNode.constants.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,uBAAuB,EAG7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElG,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAC5C,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,CAAC;AACtD,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,wBAAwB,QAC6B,CAAC;AAInE,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,eAAe,EACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAU7D,CAAC;AACF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAMjE,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAM/D,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAIjE,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EA6BlB,CAAC;AACX,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,eAAO,MAAM,uBAAuB,EAAE,uBAKrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,+DAK3B,CAAC;AACX,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,EACzC,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAM1D,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { NODE_BADGE_INSET_SQUARE, NODE_BADGE_SIZE } from "../../constants.js";
|
|
2
|
+
import { DEFAULT_CONTAINER_MIN_HEIGHT, DEFAULT_CONTAINER_MIN_WIDTH } from "../../utils/container.js";
|
|
3
|
+
const DEFAULT_CONTAINER_ICON = 'box';
|
|
4
|
+
const LOOP_KIND = 'loop';
|
|
5
|
+
const EMPTY_DATA = {};
|
|
6
|
+
const HEADER_ADORNMENT_GAP = 8;
|
|
7
|
+
const HEADER_ADORNMENT_PADDING = NODE_BADGE_INSET_SQUARE + NODE_BADGE_SIZE + HEADER_ADORNMENT_GAP;
|
|
8
|
+
const RADIUS_CLASSES = {
|
|
9
|
+
default: {
|
|
10
|
+
root: 'rounded-[20px]',
|
|
11
|
+
clip: 'rounded-[19px]',
|
|
12
|
+
header: 'rounded-t-[18px]',
|
|
13
|
+
body: 'rounded-xl'
|
|
14
|
+
},
|
|
15
|
+
xl: {
|
|
16
|
+
root: 'rounded-xl',
|
|
17
|
+
clip: 'rounded-[11px]',
|
|
18
|
+
header: 'rounded-t-[10px]',
|
|
19
|
+
body: 'rounded'
|
|
20
|
+
},
|
|
21
|
+
lg: {
|
|
22
|
+
root: 'rounded-lg',
|
|
23
|
+
clip: 'rounded-[7px]',
|
|
24
|
+
header: 'rounded-t-[6px]',
|
|
25
|
+
body: 'rounded-sm'
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const ACCENT_BORDER_CLASSES = {
|
|
29
|
+
default: 'border-border',
|
|
30
|
+
info: 'border-info',
|
|
31
|
+
warning: 'border-warning',
|
|
32
|
+
error: 'border-error',
|
|
33
|
+
success: 'border-success'
|
|
34
|
+
};
|
|
35
|
+
const ACCENT_ICON_CLASSES = {
|
|
36
|
+
default: 'text-foreground',
|
|
37
|
+
info: 'text-info',
|
|
38
|
+
warning: 'text-warning',
|
|
39
|
+
error: 'text-error',
|
|
40
|
+
success: 'text-success'
|
|
41
|
+
};
|
|
42
|
+
const BODY_FRAME_CLASSES = {
|
|
43
|
+
dashed: 'border-[1.5px] border-dashed border-border',
|
|
44
|
+
solid: 'border-[1.5px] border-solid border-border',
|
|
45
|
+
none: 'border-[1.5px] border-transparent'
|
|
46
|
+
};
|
|
47
|
+
const RESIZE_CONTROLS = [
|
|
48
|
+
{
|
|
49
|
+
position: 'top-left',
|
|
50
|
+
widthSide: 'left',
|
|
51
|
+
heightSide: 'top',
|
|
52
|
+
cursor: 'nwse-resize',
|
|
53
|
+
indicatorClassName: 'top-[-4px] left-[-4px]'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
position: 'top-right',
|
|
57
|
+
widthSide: 'right',
|
|
58
|
+
heightSide: 'top',
|
|
59
|
+
cursor: 'nesw-resize',
|
|
60
|
+
indicatorClassName: 'top-[-4px] right-[-4px]'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
position: 'bottom-left',
|
|
64
|
+
widthSide: 'left',
|
|
65
|
+
heightSide: 'bottom',
|
|
66
|
+
cursor: 'nesw-resize',
|
|
67
|
+
indicatorClassName: 'bottom-[-4px] left-[-4px]'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
position: 'bottom-right',
|
|
71
|
+
widthSide: 'right',
|
|
72
|
+
heightSide: 'bottom',
|
|
73
|
+
cursor: 'nwse-resize',
|
|
74
|
+
indicatorClassName: 'bottom-[-4px] right-[-4px]'
|
|
75
|
+
}
|
|
76
|
+
];
|
|
77
|
+
const RESIZE_CONTROL_STYLE = {
|
|
78
|
+
background: 'transparent',
|
|
79
|
+
border: 'none',
|
|
80
|
+
zIndex: 100
|
|
81
|
+
};
|
|
82
|
+
const DEFAULT_RESIZE_MINIMUMS = {
|
|
83
|
+
left: DEFAULT_CONTAINER_MIN_WIDTH,
|
|
84
|
+
right: DEFAULT_CONTAINER_MIN_WIDTH,
|
|
85
|
+
top: DEFAULT_CONTAINER_MIN_HEIGHT,
|
|
86
|
+
bottom: DEFAULT_CONTAINER_MIN_HEIGHT
|
|
87
|
+
};
|
|
88
|
+
const ADORNMENT_SLOT_POSITIONS = [
|
|
89
|
+
'topLeft',
|
|
90
|
+
'topRight',
|
|
91
|
+
'bottomLeft',
|
|
92
|
+
'bottomRight'
|
|
93
|
+
];
|
|
94
|
+
const ADORNMENT_SLOT_SHAPES = {
|
|
95
|
+
topLeft: 'top-left',
|
|
96
|
+
topRight: 'top-right',
|
|
97
|
+
bottomLeft: 'bottom-left',
|
|
98
|
+
bottomRight: 'bottom-right'
|
|
99
|
+
};
|
|
100
|
+
export { ACCENT_BORDER_CLASSES, ACCENT_ICON_CLASSES, ADORNMENT_SLOT_POSITIONS, ADORNMENT_SLOT_SHAPES, BODY_FRAME_CLASSES, DEFAULT_CONTAINER_ICON, DEFAULT_RESIZE_MINIMUMS, EMPTY_DATA, HEADER_ADORNMENT_GAP, HEADER_ADORNMENT_PADDING, LOOP_KIND, RADIUS_CLASSES, RESIZE_CONTROLS, RESIZE_CONTROL_STYLE };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ContainerNodeProps } from './ContainerNode.types';
|
|
2
|
+
declare function ContainerNodeComponent(props: ContainerNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ContainerNode: import("react").MemoExoticComponent<typeof ContainerNodeComponent>;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=ContainerNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ContainerNode/ContainerNode.tsx"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAWhE,iBAAS,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,2CAsXxD;AAOD,eAAO,MAAM,aAAa,oEAAkE,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
resolveContainerHandleGroups: ()=>resolveContainerHandleGroups,
|
|
28
|
+
getInnerHandleContainerId: ()=>getInnerHandleContainerId,
|
|
29
|
+
resolveContainerPreviewConnectionHandles: ()=>resolveContainerPreviewConnectionHandles,
|
|
30
|
+
getContainerRelativeBodyCenter: ()=>getContainerRelativeBodyCenter,
|
|
31
|
+
resolveContainerAddNodePreview: ()=>resolveContainerAddNodePreview
|
|
32
|
+
});
|
|
33
|
+
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
34
|
+
const container_cjs_namespaceObject = require("../../utils/container.cjs");
|
|
35
|
+
const createPreviewNode_cjs_namespaceObject = require("../../utils/createPreviewNode.cjs");
|
|
36
|
+
const manifest_resolver_cjs_namespaceObject = require("../../utils/manifest-resolver.cjs");
|
|
37
|
+
const NodeUtils_cjs_namespaceObject = require("../../utils/NodeUtils.cjs");
|
|
38
|
+
function resolveContainerHandleGroups(groups) {
|
|
39
|
+
return groups.map((group)=>{
|
|
40
|
+
const boundary = group.boundary ?? 'outer';
|
|
41
|
+
const position = group.position;
|
|
42
|
+
return {
|
|
43
|
+
...group,
|
|
44
|
+
boundary,
|
|
45
|
+
connectionPosition: 'inner' === boundary ? (0, createPreviewNode_cjs_namespaceObject.getOppositePosition)(position) : position,
|
|
46
|
+
customPositionAndOffsets: 'inner' === boundary ? insetInnerGroup(group) : group.customPositionAndOffsets
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function getContainerRelativeBodyCenter(containerNode) {
|
|
51
|
+
const safeArea = (0, container_cjs_namespaceObject.getContainerSafeArea)(containerNode);
|
|
52
|
+
return {
|
|
53
|
+
x: (0, NodeUtils_cjs_namespaceObject.snapToGrid)(safeArea.x + safeArea.width / 2),
|
|
54
|
+
y: (0, NodeUtils_cjs_namespaceObject.snapToGrid)(safeArea.y + safeArea.height / 2)
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function insetInnerGroup(group) {
|
|
58
|
+
const offsets = group.customPositionAndOffsets ?? {};
|
|
59
|
+
switch(group.position){
|
|
60
|
+
case react_cjs_namespaceObject.Position.Left:
|
|
61
|
+
return {
|
|
62
|
+
...offsets,
|
|
63
|
+
left: (offsets.left ?? 0) + container_cjs_namespaceObject.CONTAINER_FRAME_INSET_PX
|
|
64
|
+
};
|
|
65
|
+
case react_cjs_namespaceObject.Position.Right:
|
|
66
|
+
return {
|
|
67
|
+
...offsets,
|
|
68
|
+
right: (offsets.right ?? 0) + container_cjs_namespaceObject.CONTAINER_FRAME_INSET_PX
|
|
69
|
+
};
|
|
70
|
+
case react_cjs_namespaceObject.Position.Top:
|
|
71
|
+
return {
|
|
72
|
+
...offsets,
|
|
73
|
+
top: (offsets.top ?? 0) + container_cjs_namespaceObject.CONTAINER_FRAME_INSET_PX
|
|
74
|
+
};
|
|
75
|
+
case react_cjs_namespaceObject.Position.Bottom:
|
|
76
|
+
return {
|
|
77
|
+
...offsets,
|
|
78
|
+
bottom: (offsets.bottom ?? 0) + container_cjs_namespaceObject.CONTAINER_FRAME_INSET_PX
|
|
79
|
+
};
|
|
80
|
+
default:
|
|
81
|
+
return offsets;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function resolveContainerPreviewConnectionHandles(manifest, context) {
|
|
85
|
+
if (!manifest) return null;
|
|
86
|
+
const innerGroups = (0, manifest_resolver_cjs_namespaceObject.resolveHandles)(manifest.handleConfiguration, context).filter((group)=>'inner' === group.boundary && (group.visible ?? true));
|
|
87
|
+
const sourceHandle = pickPreferredInnerHandle(innerGroups, 'source');
|
|
88
|
+
const targetHandle = pickPreferredInnerHandle(innerGroups, 'target');
|
|
89
|
+
if (!sourceHandle) return null;
|
|
90
|
+
return {
|
|
91
|
+
sourceHandleId: sourceHandle.handle.id,
|
|
92
|
+
sourceHandlePosition: (0, createPreviewNode_cjs_namespaceObject.getOppositePosition)(sourceHandle.group.position),
|
|
93
|
+
...targetHandle ? {
|
|
94
|
+
targetHandleId: targetHandle.handle.id
|
|
95
|
+
} : {}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function pickPreferredInnerHandle(groups, type) {
|
|
99
|
+
for (const group of groups){
|
|
100
|
+
const handle = group.handles.find((candidate)=>candidate.type === type && candidate.visible);
|
|
101
|
+
if (handle) return {
|
|
102
|
+
group,
|
|
103
|
+
handle
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
function resolveClickedHandle({ source, reactFlowInstance, getManifestForNode }) {
|
|
109
|
+
if (!source.handleId) return;
|
|
110
|
+
const sourceNode = reactFlowInstance.getNode(source.nodeId);
|
|
111
|
+
if (!sourceNode) return;
|
|
112
|
+
const sourceManifest = getManifestForNode(sourceNode);
|
|
113
|
+
const dataHandleConfiguration = sourceNode.data?.handleConfigurations;
|
|
114
|
+
const handleConfiguration = Array.isArray(dataHandleConfiguration) ? dataHandleConfiguration : sourceManifest?.handleConfiguration;
|
|
115
|
+
if (!handleConfiguration) return;
|
|
116
|
+
const sourceHandles = (0, manifest_resolver_cjs_namespaceObject.resolveHandles)(handleConfiguration, {
|
|
117
|
+
...sourceNode.data,
|
|
118
|
+
nodeId: sourceNode.id
|
|
119
|
+
});
|
|
120
|
+
for (const group of sourceHandles){
|
|
121
|
+
const handle = group.handles.find((candidate)=>candidate.id === source.handleId);
|
|
122
|
+
if (handle) return {
|
|
123
|
+
boundary: group.boundary ?? 'outer',
|
|
124
|
+
handleType: handle.handleType
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function resolveContainerAddNodePreview({ source, sourceHandleType, reactFlowInstance, getManifestForNode, replacedEdge }) {
|
|
129
|
+
const clickedHandle = resolveClickedHandle({
|
|
130
|
+
source,
|
|
131
|
+
reactFlowInstance,
|
|
132
|
+
getManifestForNode
|
|
133
|
+
});
|
|
134
|
+
if (clickedHandle?.handleType !== 'output') return null;
|
|
135
|
+
const sourceNode = reactFlowInstance.getNode(source.nodeId);
|
|
136
|
+
const sourceIsContainer = void 0 !== sourceNode && (0, container_cjs_namespaceObject.isContainerNodeManifest)(getManifestForNode(sourceNode));
|
|
137
|
+
const allowedContainerId = sourceIsContainer && 'inner' !== clickedHandle.boundary ? sourceNode?.parentId : void 0;
|
|
138
|
+
if (sourceIsContainer && 'inner' !== clickedHandle.boundary && !allowedContainerId) return null;
|
|
139
|
+
return (0, container_cjs_namespaceObject.resolveContainerPreview)({
|
|
140
|
+
source,
|
|
141
|
+
sourceHandleType,
|
|
142
|
+
reactFlowInstance,
|
|
143
|
+
replacedEdge,
|
|
144
|
+
allowedContainerId,
|
|
145
|
+
isContainerNode: (node)=>(0, container_cjs_namespaceObject.isContainerNodeManifest)(getManifestForNode(node)),
|
|
146
|
+
getContainerSafeArea: container_cjs_namespaceObject.getContainerSafeArea,
|
|
147
|
+
getContainerContinuationTarget: ({ containerNode })=>{
|
|
148
|
+
const previewHandles = resolveContainerPreviewConnectionHandles(getManifestForNode(containerNode), {
|
|
149
|
+
...containerNode.data,
|
|
150
|
+
nodeId: containerNode.id
|
|
151
|
+
});
|
|
152
|
+
return previewHandles?.targetHandleId ? {
|
|
153
|
+
nodeId: containerNode.id,
|
|
154
|
+
handleId: previewHandles.targetHandleId
|
|
155
|
+
} : null;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function getInnerHandleContainerId({ source, reactFlowInstance, getManifestForNode }) {
|
|
160
|
+
const sourceNode = reactFlowInstance.getNode(source.nodeId);
|
|
161
|
+
if (!sourceNode || !(0, container_cjs_namespaceObject.isContainerNodeManifest)(getManifestForNode(sourceNode))) return;
|
|
162
|
+
const clickedHandle = resolveClickedHandle({
|
|
163
|
+
source,
|
|
164
|
+
reactFlowInstance,
|
|
165
|
+
getManifestForNode
|
|
166
|
+
});
|
|
167
|
+
return clickedHandle?.boundary === 'inner' ? sourceNode.id : void 0;
|
|
168
|
+
}
|
|
169
|
+
exports.getContainerRelativeBodyCenter = __webpack_exports__.getContainerRelativeBodyCenter;
|
|
170
|
+
exports.getInnerHandleContainerId = __webpack_exports__.getInnerHandleContainerId;
|
|
171
|
+
exports.resolveContainerAddNodePreview = __webpack_exports__.resolveContainerAddNodePreview;
|
|
172
|
+
exports.resolveContainerHandleGroups = __webpack_exports__.resolveContainerHandleGroups;
|
|
173
|
+
exports.resolveContainerPreviewConnectionHandles = __webpack_exports__.resolveContainerPreviewConnectionHandles;
|
|
174
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
175
|
+
"getContainerRelativeBodyCenter",
|
|
176
|
+
"getInnerHandleContainerId",
|
|
177
|
+
"resolveContainerAddNodePreview",
|
|
178
|
+
"resolveContainerHandleGroups",
|
|
179
|
+
"resolveContainerPreviewConnectionHandles"
|
|
180
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
181
|
+
Object.defineProperty(exports, '__esModule', {
|
|
182
|
+
value: true
|
|
183
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Edge, type Node, Position, type ReactFlowInstance } from '../../xyflow/react.ts';
|
|
2
|
+
import type { NodeManifest } from '../../schema/node-definition';
|
|
3
|
+
import type { PreviewEndpoint, PreviewGraphOverrides } from '../../utils/createPreviewGraph';
|
|
4
|
+
import type { ResolutionContext, ResolvedHandleGroup } from '../../utils/manifest-resolver';
|
|
5
|
+
export type ContainerHandleBoundary = 'outer' | 'inner';
|
|
6
|
+
export type ContainerHandleGroup = ResolvedHandleGroup & {
|
|
7
|
+
boundary: ContainerHandleBoundary;
|
|
8
|
+
connectionPosition: Position;
|
|
9
|
+
};
|
|
10
|
+
export interface ContainerPreviewConnectionHandles {
|
|
11
|
+
sourceHandleId: string;
|
|
12
|
+
sourceHandlePosition: Position;
|
|
13
|
+
targetHandleId?: string;
|
|
14
|
+
}
|
|
15
|
+
export type ContainerPreviewManifestResolver = (node: Node) => Pick<NodeManifest, 'display' | 'handleConfiguration'> | undefined;
|
|
16
|
+
export declare function resolveContainerHandleGroups(groups: ResolvedHandleGroup[]): ContainerHandleGroup[];
|
|
17
|
+
export declare function getContainerRelativeBodyCenter(containerNode: Pick<Node, 'width' | 'height' | 'measured' | 'style'>): {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
export declare function resolveContainerPreviewConnectionHandles(manifest: Pick<NodeManifest, 'handleConfiguration'> | undefined, context: ResolutionContext): ContainerPreviewConnectionHandles | null;
|
|
22
|
+
export declare function resolveContainerAddNodePreview({ source, sourceHandleType, reactFlowInstance, getManifestForNode, replacedEdge, }: {
|
|
23
|
+
source: PreviewEndpoint;
|
|
24
|
+
sourceHandleType: 'source' | 'target';
|
|
25
|
+
reactFlowInstance: ReactFlowInstance;
|
|
26
|
+
getManifestForNode: ContainerPreviewManifestResolver;
|
|
27
|
+
replacedEdge?: Edge;
|
|
28
|
+
}): PreviewGraphOverrides | null;
|
|
29
|
+
export declare function getInnerHandleContainerId({ source, reactFlowInstance, getManifestForNode, }: {
|
|
30
|
+
source: PreviewEndpoint;
|
|
31
|
+
reactFlowInstance: ReactFlowInstance;
|
|
32
|
+
getManifestForNode: ContainerPreviewManifestResolver;
|
|
33
|
+
}): string | undefined;
|
|
34
|
+
//# sourceMappingURL=ContainerNode.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerNode.helpers.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ContainerNode/ContainerNode.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,IAAI,EACT,QAAQ,EACR,KAAK,iBAAiB,EACvB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAuB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOtF,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAI5F,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,OAAO,CAAC;AACxD,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IACvD,QAAQ,EAAE,uBAAuB,CAAC;IAClC,kBAAkB,EAAE,QAAQ,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,iCAAiC;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,QAAQ,CAAC;IAE/B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,gCAAgC,GAAG,CAC7C,IAAI,EAAE,IAAI,KACP,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG,SAAS,CAAC;AAOvE,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,mBAAmB,EAAE,GAC5B,oBAAoB,EAAE,CAaxB;AAMD,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;;;EAQrE;AAyBD,wBAAgB,wCAAwC,CACtD,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,qBAAqB,CAAC,GAAG,SAAS,EAC/D,OAAO,EAAE,iBAAiB,GACzB,iCAAiC,GAAG,IAAI,CAgB1C;AA4DD,wBAAgB,8BAA8B,CAAC,EAC7C,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GACb,EAAE;IACD,MAAM,EAAE,eAAe,CAAC;IACxB,gBAAgB,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACtC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,kBAAkB,EAAE,gCAAgC,CAAC;IACrD,YAAY,CAAC,EAAE,IAAI,CAAC;CACrB,GAAG,qBAAqB,GAAG,IAAI,CAmD/B;AAMD,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,iBAAiB,EACjB,kBAAkB,GACnB,EAAE;IACD,MAAM,EAAE,eAAe,CAAC;IACxB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,kBAAkB,EAAE,gCAAgC,CAAC;CACtD,GAAG,MAAM,GAAG,SAAS,CAarB"}
|