@uipath/apollo-react 3.47.2 → 3.48.1-test-cristi
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/core/CategoryTree.cjs +4 -4
- package/dist/canvas/core/CategoryTree.js +4 -4
- package/dist/canvas/storybook-utils/manifests/node-definitions.cjs +2 -2
- package/dist/canvas/storybook-utils/manifests/node-definitions.js +2 -2
- package/dist/canvas/styles/variables.css +1 -1
- package/dist/canvas/utils/NodeUtils.cjs +7 -4
- package/dist/canvas/utils/NodeUtils.d.ts +4 -1
- package/dist/canvas/utils/NodeUtils.d.ts.map +1 -1
- package/dist/canvas/utils/NodeUtils.js +7 -4
- package/dist/canvas/utils/createPreviewNode.cjs +21 -18
- package/dist/canvas/utils/createPreviewNode.d.ts.map +1 -1
- package/dist/canvas/utils/createPreviewNode.js +21 -18
- package/dist/icons/index.cjs +17 -17
- package/package.json +1 -1
|
@@ -38,13 +38,13 @@ class CategoryTree {
|
|
|
38
38
|
}
|
|
39
39
|
static buildMap(tree) {
|
|
40
40
|
const newCategoryMap = new Map();
|
|
41
|
-
const
|
|
42
|
-
for (const tNode of
|
|
41
|
+
const addCategoriesToMap = (categories)=>{
|
|
42
|
+
for (const tNode of categories){
|
|
43
43
|
newCategoryMap.set(tNode.id, tNode);
|
|
44
|
-
|
|
44
|
+
addCategoriesToMap(tNode.nestedCategories);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
addCategoriesToMap(tree);
|
|
48
48
|
return newCategoryMap;
|
|
49
49
|
}
|
|
50
50
|
static fromPrebuilt(rootCategories, rootNodes) {
|
|
@@ -10,13 +10,13 @@ class CategoryTree {
|
|
|
10
10
|
}
|
|
11
11
|
static buildMap(tree) {
|
|
12
12
|
const newCategoryMap = new Map();
|
|
13
|
-
const
|
|
14
|
-
for (const tNode of
|
|
13
|
+
const addCategoriesToMap = (categories)=>{
|
|
14
|
+
for (const tNode of categories){
|
|
15
15
|
newCategoryMap.set(tNode.id, tNode);
|
|
16
|
-
|
|
16
|
+
addCategoriesToMap(tNode.nestedCategories);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
addCategoriesToMap(tree);
|
|
20
20
|
return newCategoryMap;
|
|
21
21
|
}
|
|
22
22
|
static fromPrebuilt(rootCategories, rootNodes) {
|
|
@@ -637,7 +637,7 @@ const allNodeManifests = [
|
|
|
637
637
|
},
|
|
638
638
|
handleConfiguration: [
|
|
639
639
|
{
|
|
640
|
-
position: '
|
|
640
|
+
position: 'bottom',
|
|
641
641
|
handles: [
|
|
642
642
|
{
|
|
643
643
|
id: 'input',
|
|
@@ -674,7 +674,7 @@ const allNodeManifests = [
|
|
|
674
674
|
},
|
|
675
675
|
handleConfiguration: [
|
|
676
676
|
{
|
|
677
|
-
position: '
|
|
677
|
+
position: 'bottom',
|
|
678
678
|
handles: [
|
|
679
679
|
{
|
|
680
680
|
id: 'input',
|
|
@@ -609,7 +609,7 @@ const allNodeManifests = [
|
|
|
609
609
|
},
|
|
610
610
|
handleConfiguration: [
|
|
611
611
|
{
|
|
612
|
-
position: '
|
|
612
|
+
position: 'bottom',
|
|
613
613
|
handles: [
|
|
614
614
|
{
|
|
615
615
|
id: 'input',
|
|
@@ -646,7 +646,7 @@ const allNodeManifests = [
|
|
|
646
646
|
},
|
|
647
647
|
handleConfiguration: [
|
|
648
648
|
{
|
|
649
|
-
position: '
|
|
649
|
+
position: 'bottom',
|
|
650
650
|
handles: [
|
|
651
651
|
{
|
|
652
652
|
id: 'input',
|
|
@@ -48,12 +48,15 @@ const getAbsolutePosition = (node, nodes)=>{
|
|
|
48
48
|
y
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
function getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset = 2 * external_constants_cjs_namespaceObject.GRID_SPACING, ignoredNodeTypes = []
|
|
51
|
+
function getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset = 2 * external_constants_cjs_namespaceObject.GRID_SPACING, ignoredNodeTypes = [], overflowDirection = {
|
|
52
|
+
x: 'right',
|
|
53
|
+
y: 'down'
|
|
54
|
+
}) {
|
|
52
55
|
const isOverlapping = nodes.some((node)=>node.id !== external_constants_cjs_namespaceObject.PREVIEW_NODE_ID && !ignoredNodeTypes.includes(node.type ?? '') && node.position.x < newNodePosition.x + newNodeStyle.width && node.position.x + (node.measured?.width ?? 0) > newNodePosition.x && node.position.y < newNodePosition.y + newNodeStyle.height && node.position.y + (node.measured?.height ?? 0) > newNodePosition.y);
|
|
53
56
|
if (isOverlapping) {
|
|
54
|
-
if ('left' === direction || 'right' === direction) newNodePosition.y += offset;
|
|
55
|
-
else newNodePosition.x += offset;
|
|
56
|
-
return getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset, ignoredNodeTypes);
|
|
57
|
+
if ('left' === direction || 'right' === direction) newNodePosition.y += 'down' === overflowDirection.y ? offset : -offset;
|
|
58
|
+
else newNodePosition.x += 'right' === overflowDirection.x ? offset : -offset;
|
|
59
|
+
return getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset, ignoredNodeTypes, overflowDirection);
|
|
57
60
|
}
|
|
58
61
|
return newNodePosition;
|
|
59
62
|
}
|
|
@@ -6,7 +6,10 @@ export declare const getAbsolutePosition: (node: Node, nodes: Node[]) => {
|
|
|
6
6
|
export declare function getNonOverlappingPositionForDirection(nodes: Node[], newNodePosition: XYPosition, newNodeStyle: {
|
|
7
7
|
width: number;
|
|
8
8
|
height: number;
|
|
9
|
-
}, direction: 'left' | 'right' | 'top' | 'bottom', offset?: number, ignoredNodeTypes?: string[]
|
|
9
|
+
}, direction: 'left' | 'right' | 'top' | 'bottom', offset?: number, ignoredNodeTypes?: string[], overflowDirection?: {
|
|
10
|
+
x: 'left' | 'right';
|
|
11
|
+
y: 'up' | 'down';
|
|
12
|
+
}): XYPosition;
|
|
10
13
|
export declare const snapToGrid: (value: number) => number;
|
|
11
14
|
export type CollisionAlgorithmOptions = {
|
|
12
15
|
maxIterations?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeUtils.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/NodeUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,IAAI,EACT,QAAQ,EACR,KAAK,UAAU,EAChB,MAAM,0CAA0C,CAAC;AAUlD,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,EAAE,OAAO,IAAI,EAAE,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAWrF,CAAC;
|
|
1
|
+
{"version":3,"file":"NodeUtils.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/NodeUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,IAAI,EACT,QAAQ,EACR,KAAK,UAAU,EAChB,MAAM,0CAA0C,CAAC;AAUlD,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,EAAE,OAAO,IAAI,EAAE,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAWrF,CAAC;AAeF,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,IAAI,EAAE,EACb,eAAe,EAAE,UAAU,EAC3B,YAAY,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC/C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,EAC9C,MAAM,SAAmB,EACzB,gBAAgB,GAAE,MAAM,EAAO,EAC/B,iBAAiB,GAAE;IAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAA8B,GACvF,UAAU,CAgCZ;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAE1C,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,EAAE,yBAAyB,KAAK,IAAI,EAAE,CAAC;AA6BhG,eAAO,MAAM,iBAAiB,EAAE,kBAwE/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAMF,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,QAAQ,GACvB,aAAa,GAAG,SAAS,CAgB3B;AAWD,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,MAAM,EAAE,GACnB,MAAM,GAAG,IAAI,CAQf"}
|
|
@@ -15,12 +15,15 @@ const getAbsolutePosition = (node, nodes)=>{
|
|
|
15
15
|
y
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
function getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset = 2 * GRID_SPACING, ignoredNodeTypes = []
|
|
18
|
+
function getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset = 2 * GRID_SPACING, ignoredNodeTypes = [], overflowDirection = {
|
|
19
|
+
x: 'right',
|
|
20
|
+
y: 'down'
|
|
21
|
+
}) {
|
|
19
22
|
const isOverlapping = nodes.some((node)=>node.id !== PREVIEW_NODE_ID && !ignoredNodeTypes.includes(node.type ?? '') && node.position.x < newNodePosition.x + newNodeStyle.width && node.position.x + (node.measured?.width ?? 0) > newNodePosition.x && node.position.y < newNodePosition.y + newNodeStyle.height && node.position.y + (node.measured?.height ?? 0) > newNodePosition.y);
|
|
20
23
|
if (isOverlapping) {
|
|
21
|
-
if ('left' === direction || 'right' === direction) newNodePosition.y += offset;
|
|
22
|
-
else newNodePosition.x += offset;
|
|
23
|
-
return getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset, ignoredNodeTypes);
|
|
24
|
+
if ('left' === direction || 'right' === direction) newNodePosition.y += 'down' === overflowDirection.y ? offset : -offset;
|
|
25
|
+
else newNodePosition.x += 'right' === overflowDirection.x ? offset : -offset;
|
|
26
|
+
return getNonOverlappingPositionForDirection(nodes, newNodePosition, newNodeStyle, direction, offset, ignoredNodeTypes, overflowDirection);
|
|
24
27
|
}
|
|
25
28
|
return newNodePosition;
|
|
26
29
|
}
|
|
@@ -74,6 +74,14 @@ function calculatePositionFromDrop(dropPosition, handlePosition, previewNodeSize
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
function computeSpreadOffset(handle, size) {
|
|
78
|
+
const index = handle?.index ?? null;
|
|
79
|
+
const count = handle?.count ?? 1;
|
|
80
|
+
if (null === index || count <= 1) return 0;
|
|
81
|
+
if (index < Math.floor(count / 2)) return -size;
|
|
82
|
+
if (index >= Math.ceil(count / 2)) return size;
|
|
83
|
+
return 0;
|
|
84
|
+
}
|
|
77
85
|
function calculateAutoPosition(sourceNode, handlePosition, previewNodeSize, existingNodes, offset = 5 * external_constants_cjs_namespaceObject.GRID_SPACING, ignoredNodeTypes = [], handle) {
|
|
78
86
|
const sourceAbsolutePosition = sourceNode.parentId ? (0, external_NodeUtils_cjs_namespaceObject.getAbsolutePosition)(sourceNode, existingNodes) : sourceNode.position;
|
|
79
87
|
const sourceWidth = sourceNode.measured?.width ?? 0;
|
|
@@ -95,31 +103,22 @@ function calculateAutoPosition(sourceNode, handlePosition, previewNodeSize, exis
|
|
|
95
103
|
direction = 'left';
|
|
96
104
|
break;
|
|
97
105
|
case react_cjs_namespaceObject.Position.Right:
|
|
98
|
-
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
else if (handleIndex >= Math.ceil(handleCount / 2)) yOffset = previewNodeSize.height;
|
|
105
|
-
}
|
|
106
|
-
initialPosition = {
|
|
107
|
-
x: sourceAbsolutePosition.x + sourceWidth + offset,
|
|
108
|
-
y: anchorY - previewNodeSize.height / 2 + yOffset
|
|
109
|
-
};
|
|
110
|
-
direction = 'right';
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
106
|
+
initialPosition = {
|
|
107
|
+
x: sourceAbsolutePosition.x + sourceWidth + offset,
|
|
108
|
+
y: anchorY - previewNodeSize.height / 2 + computeSpreadOffset(handle, previewNodeSize.height)
|
|
109
|
+
};
|
|
110
|
+
direction = 'right';
|
|
111
|
+
break;
|
|
113
112
|
case react_cjs_namespaceObject.Position.Top:
|
|
114
113
|
initialPosition = {
|
|
115
|
-
x: anchorX - previewNodeSize.width / 2,
|
|
114
|
+
x: anchorX - previewNodeSize.width / 2 + computeSpreadOffset(handle, previewNodeSize.width / 2),
|
|
116
115
|
y: sourceAbsolutePosition.y - previewNodeSize.height - offset
|
|
117
116
|
};
|
|
118
117
|
direction = 'top';
|
|
119
118
|
break;
|
|
120
119
|
case react_cjs_namespaceObject.Position.Bottom:
|
|
121
120
|
initialPosition = {
|
|
122
|
-
x: anchorX - previewNodeSize.width / 2,
|
|
121
|
+
x: anchorX - previewNodeSize.width / 2 + computeSpreadOffset(handle, previewNodeSize.width / 2),
|
|
123
122
|
y: sourceAbsolutePosition.y + sourceHeight + offset
|
|
124
123
|
};
|
|
125
124
|
direction = 'bottom';
|
|
@@ -131,7 +130,11 @@ function calculateAutoPosition(sourceNode, handlePosition, previewNodeSize, exis
|
|
|
131
130
|
};
|
|
132
131
|
direction = 'right';
|
|
133
132
|
}
|
|
134
|
-
|
|
133
|
+
const overflowDirection = {
|
|
134
|
+
x: anchorX >= sourceAbsolutePosition.x + sourceWidth / 2 ? 'right' : 'left',
|
|
135
|
+
y: anchorY >= sourceAbsolutePosition.y + sourceHeight / 2 ? 'down' : 'up'
|
|
136
|
+
};
|
|
137
|
+
return (0, external_NodeUtils_cjs_namespaceObject.getNonOverlappingPositionForDirection)(nodesWithAbsolutePositions, initialPosition, previewNodeSize, direction, offset, ignoredNodeTypes, overflowDirection);
|
|
135
138
|
}
|
|
136
139
|
function createPreviewNode(sourceNodeId, sourceHandleId, reactFlowInstance, position, data, sourceHandleType = 'source', previewNodeSize = {
|
|
137
140
|
width: external_constants_cjs_namespaceObject.DEFAULT_NODE_SIZE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPreviewNode.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/createPreviewNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,IAAI,EACT,QAAQ,EACR,KAAK,iBAAiB,EACvB,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"createPreviewNode.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/createPreviewNode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,IAAI,EACT,QAAQ,EACR,KAAK,iBAAiB,EACvB,MAAM,0CAA0C,CAAC;AAiMlD,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,CAAC,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EACnC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,gBAAgB,GAAE,QAAQ,GAAG,QAAmB,EAChD,eAAe,GAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAG/C,EACD,cAAc,GAAE,QAAyB,EACzC,gBAAgB,GAAE,MAAM,EAAO,GAC9B;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CA2FnC;AAMD,wBAAgB,uBAAuB,CACrC,OAAO,EAAE;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,EACnC,iBAAiB,EAAE,iBAAiB,GACnC,IAAI,CAcN;AAKD,wBAAgB,0BAA0B,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAGrF"}
|
|
@@ -44,6 +44,14 @@ function calculatePositionFromDrop(dropPosition, handlePosition, previewNodeSize
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
function computeSpreadOffset(handle, size) {
|
|
48
|
+
const index = handle?.index ?? null;
|
|
49
|
+
const count = handle?.count ?? 1;
|
|
50
|
+
if (null === index || count <= 1) return 0;
|
|
51
|
+
if (index < Math.floor(count / 2)) return -size;
|
|
52
|
+
if (index >= Math.ceil(count / 2)) return size;
|
|
53
|
+
return 0;
|
|
54
|
+
}
|
|
47
55
|
function calculateAutoPosition(sourceNode, handlePosition, previewNodeSize, existingNodes, offset = 5 * GRID_SPACING, ignoredNodeTypes = [], handle) {
|
|
48
56
|
const sourceAbsolutePosition = sourceNode.parentId ? getAbsolutePosition(sourceNode, existingNodes) : sourceNode.position;
|
|
49
57
|
const sourceWidth = sourceNode.measured?.width ?? 0;
|
|
@@ -65,31 +73,22 @@ function calculateAutoPosition(sourceNode, handlePosition, previewNodeSize, exis
|
|
|
65
73
|
direction = 'left';
|
|
66
74
|
break;
|
|
67
75
|
case Position.Right:
|
|
68
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
else if (handleIndex >= Math.ceil(handleCount / 2)) yOffset = previewNodeSize.height;
|
|
75
|
-
}
|
|
76
|
-
initialPosition = {
|
|
77
|
-
x: sourceAbsolutePosition.x + sourceWidth + offset,
|
|
78
|
-
y: anchorY - previewNodeSize.height / 2 + yOffset
|
|
79
|
-
};
|
|
80
|
-
direction = 'right';
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
76
|
+
initialPosition = {
|
|
77
|
+
x: sourceAbsolutePosition.x + sourceWidth + offset,
|
|
78
|
+
y: anchorY - previewNodeSize.height / 2 + computeSpreadOffset(handle, previewNodeSize.height)
|
|
79
|
+
};
|
|
80
|
+
direction = 'right';
|
|
81
|
+
break;
|
|
83
82
|
case Position.Top:
|
|
84
83
|
initialPosition = {
|
|
85
|
-
x: anchorX - previewNodeSize.width / 2,
|
|
84
|
+
x: anchorX - previewNodeSize.width / 2 + computeSpreadOffset(handle, previewNodeSize.width / 2),
|
|
86
85
|
y: sourceAbsolutePosition.y - previewNodeSize.height - offset
|
|
87
86
|
};
|
|
88
87
|
direction = 'top';
|
|
89
88
|
break;
|
|
90
89
|
case Position.Bottom:
|
|
91
90
|
initialPosition = {
|
|
92
|
-
x: anchorX - previewNodeSize.width / 2,
|
|
91
|
+
x: anchorX - previewNodeSize.width / 2 + computeSpreadOffset(handle, previewNodeSize.width / 2),
|
|
93
92
|
y: sourceAbsolutePosition.y + sourceHeight + offset
|
|
94
93
|
};
|
|
95
94
|
direction = 'bottom';
|
|
@@ -101,7 +100,11 @@ function calculateAutoPosition(sourceNode, handlePosition, previewNodeSize, exis
|
|
|
101
100
|
};
|
|
102
101
|
direction = 'right';
|
|
103
102
|
}
|
|
104
|
-
|
|
103
|
+
const overflowDirection = {
|
|
104
|
+
x: anchorX >= sourceAbsolutePosition.x + sourceWidth / 2 ? 'right' : 'left',
|
|
105
|
+
y: anchorY >= sourceAbsolutePosition.y + sourceHeight / 2 ? 'down' : 'up'
|
|
106
|
+
};
|
|
107
|
+
return getNonOverlappingPositionForDirection(nodesWithAbsolutePositions, initialPosition, previewNodeSize, direction, offset, ignoredNodeTypes, overflowDirection);
|
|
105
108
|
}
|
|
106
109
|
function createPreviewNode(sourceNodeId, sourceHandleId, reactFlowInstance, position, data, sourceHandleType = 'source', previewNodeSize = {
|
|
107
110
|
width: DEFAULT_NODE_SIZE,
|
package/dist/icons/index.cjs
CHANGED
|
@@ -370,12 +370,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
370
370
|
TerminateWorkflow: ()=>external_TerminateWorkflow_cjs_namespaceObject.TerminateWorkflow,
|
|
371
371
|
DocumentationIcon: ()=>external_Documentation_cjs_default(),
|
|
372
372
|
FetchBatchFromStreamIcon: ()=>external_FetchBatchFromStream_cjs_default(),
|
|
373
|
-
TypeDurationIcon: ()=>external_TypeDuration_cjs_default(),
|
|
374
|
-
ZoomOff: ()=>external_ZoomOff_cjs_namespaceObject.ZoomOff,
|
|
375
373
|
OrchestratorGetCredentials: ()=>external_OrchestratorGetCredentials_cjs_namespaceObject.OrchestratorGetCredentials,
|
|
376
374
|
Form: ()=>external_Form_cjs_namespaceObject.Form,
|
|
377
375
|
ActivityPOP3: ()=>external_ActivityPOP3_cjs_namespaceObject.ActivityPOP3,
|
|
378
376
|
AzureVirtualDesktopScope: ()=>external_AzureVirtualDesktopScope_cjs_namespaceObject.AzureVirtualDesktopScope,
|
|
377
|
+
ZoomOff: ()=>external_ZoomOff_cjs_namespaceObject.ZoomOff,
|
|
379
378
|
ArrowDropRightIcon: ()=>external_ArrowDropRight_cjs_default(),
|
|
380
379
|
AgentsEscalationsIcon: ()=>external_AgentsEscalations_cjs_default(),
|
|
381
380
|
Control1RemoveDataRow: ()=>external_Control1RemoveDataRow_cjs_namespaceObject.Control1RemoveDataRow,
|
|
@@ -395,6 +394,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
395
394
|
AmazonWebServicesWorkspacesIcon: ()=>external_AmazonWebServicesWorkspaces_cjs_default(),
|
|
396
395
|
AttachIcon: ()=>external_Attach_cjs_default(),
|
|
397
396
|
Control1RemoveDuplicateRows: ()=>external_Control1RemoveDuplicateRows_cjs_namespaceObject.Control1RemoveDuplicateRows,
|
|
397
|
+
TypeDurationIcon: ()=>external_TypeDuration_cjs_default(),
|
|
398
398
|
AddLogFieldsIcon: ()=>external_AddLogFields_cjs_default(),
|
|
399
399
|
Minimize: ()=>external_Minimize_cjs_namespaceObject.Minimize,
|
|
400
400
|
FormatAlignJustifyIcon: ()=>external_FormatAlignJustify_cjs_default(),
|
|
@@ -720,16 +720,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
720
720
|
BackstagePublishHistoryIcon: ()=>external_BackstagePublishHistory_cjs_default(),
|
|
721
721
|
AzureVirtualDesktopGetWorkspace: ()=>external_AzureVirtualDesktopGetWorkspace_cjs_namespaceObject.AzureVirtualDesktopGetWorkspace,
|
|
722
722
|
Commit: ()=>external_Commit_cjs_namespaceObject.Commit,
|
|
723
|
-
IfSplitIcon: ()=>external_IfSplit_cjs_default(),
|
|
724
723
|
ItAutomationAmazonWebServicesWorkspacesIcon: ()=>external_ItAutomationAmazonWebServicesWorkspaces_cjs_default(),
|
|
724
|
+
IfSplitIcon: ()=>external_IfSplit_cjs_default(),
|
|
725
725
|
GenericActivityIconsListAll: ()=>external_GenericActivityIconsListAll_cjs_namespaceObject.GenericActivityIconsListAll,
|
|
726
726
|
TriggerWebhook: ()=>external_TriggerWebhook_cjs_namespaceObject.TriggerWebhook,
|
|
727
727
|
Cropp: ()=>external_Cropp_cjs_namespaceObject.Cropp,
|
|
728
728
|
ArchiveIcon: ()=>external_Archive_cjs_default(),
|
|
729
729
|
FTPFTPConnectionIcon: ()=>external_FTPFTPConnection_cjs_default(),
|
|
730
730
|
GoogleCloudPlatformGetIamPolicyIcon: ()=>external_GoogleCloudPlatformGetIamPolicy_cjs_default(),
|
|
731
|
-
LayoutStretchVerticalIcon: ()=>external_LayoutStretchVertical_cjs_default(),
|
|
732
731
|
NetiqEdirectory: ()=>external_NetiqEdirectory_cjs_namespaceObject.NetiqEdirectory,
|
|
732
|
+
LayoutStretchVerticalIcon: ()=>external_LayoutStretchVertical_cjs_default(),
|
|
733
733
|
RunProgramInVmIcon: ()=>external_RunProgramInVm_cjs_default(),
|
|
734
734
|
ScreenShareIcon: ()=>external_ScreenShare_cjs_default(),
|
|
735
735
|
SentimentVeryDissatisfied: ()=>external_SentimentVeryDissatisfied_cjs_namespaceObject.SentimentVeryDissatisfied,
|
|
@@ -859,11 +859,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
859
859
|
EntityIcon: ()=>external_Entity_cjs_default(),
|
|
860
860
|
Atlassian: ()=>external_Atlassian_cjs_namespaceObject.Atlassian,
|
|
861
861
|
ImageIcon: ()=>external_Image_cjs_default(),
|
|
862
|
-
WorkdayIcon: ()=>external_Workday_cjs_default(),
|
|
863
862
|
EntitiesDeleteRecordIcon: ()=>external_EntitiesDeleteRecord_cjs_default(),
|
|
864
863
|
GoogleAds: ()=>external_GoogleAds_cjs_namespaceObject.GoogleAds,
|
|
865
864
|
Box: ()=>external_Box_cjs_namespaceObject.Box,
|
|
866
865
|
YahooIcon: ()=>external_Yahoo_cjs_default(),
|
|
866
|
+
WorkdayIcon: ()=>external_Workday_cjs_default(),
|
|
867
867
|
ReadGetOutputDataTable: ()=>external_ReadGetOutputDataTable_cjs_namespaceObject.ReadGetOutputDataTable,
|
|
868
868
|
Stripe: ()=>external_Stripe_cjs_namespaceObject.Stripe,
|
|
869
869
|
AgentsRunHistory: ()=>external_AgentsRunHistory_cjs_namespaceObject.AgentsRunHistory,
|
|
@@ -984,11 +984,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
984
984
|
FTPGetFiles: ()=>external_FTPGetFiles_cjs_namespaceObject.FTPGetFiles,
|
|
985
985
|
Control1ClearDataTableIcon: ()=>external_Control1ClearDataTable_cjs_default(),
|
|
986
986
|
UserFromDirectoryIcon: ()=>external_UserFromDirectory_cjs_default(),
|
|
987
|
-
|
|
987
|
+
WebAPIDeserializeJSONIcon: ()=>external_WebAPIDeserializeJSON_cjs_default(),
|
|
988
988
|
DataTypesBooleanIcon: ()=>external_DataTypesBoolean_cjs_default(),
|
|
989
989
|
DatabaseConnectIcon: ()=>external_DatabaseConnect_cjs_default(),
|
|
990
990
|
TableRow: ()=>external_TableRow_cjs_namespaceObject.TableRow,
|
|
991
|
-
|
|
991
|
+
Watch: ()=>external_Watch_cjs_namespaceObject.Watch,
|
|
992
992
|
MicIcon: ()=>external_Mic_cjs_default(),
|
|
993
993
|
GoogleCloud: ()=>external_GoogleCloud_cjs_namespaceObject.GoogleCloud,
|
|
994
994
|
GlobalHandlerIcon: ()=>external_GlobalHandler_cjs_default(),
|
|
@@ -996,7 +996,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
996
996
|
WebhookIcon: ()=>external_Webhook_cjs_default(),
|
|
997
997
|
BpmnToolbarChangeElementIcon: ()=>external_BpmnToolbarChangeElement_cjs_default(),
|
|
998
998
|
SentimentNeutralIcon: ()=>external_SentimentNeutral_cjs_default(),
|
|
999
|
-
|
|
999
|
+
Zuora: ()=>external_Zuora_cjs_namespaceObject.Zuora,
|
|
1000
1000
|
AgentTraceConversationCitationIcon: ()=>external_AgentTraceConversationCitation_cjs_default(),
|
|
1001
1001
|
OrchestratorHTTPRequestIcon: ()=>external_OrchestratorHTTPRequest_cjs_default(),
|
|
1002
1002
|
InvokeWorkflowFileIcon: ()=>external_InvokeWorkflowFile_cjs_default(),
|
|
@@ -1005,6 +1005,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1005
1005
|
UIPathIcon: ()=>external_UIPath_cjs_default(),
|
|
1006
1006
|
CreateIcon: ()=>external_Create_cjs_default(),
|
|
1007
1007
|
InsightsIcon: ()=>external_Insights_cjs_default(),
|
|
1008
|
+
WriteStorageText: ()=>external_WriteStorageText_cjs_namespaceObject.WriteStorageText,
|
|
1008
1009
|
VmwareGetVm: ()=>external_VmwareGetVm_cjs_namespaceObject.VmwareGetVm,
|
|
1009
1010
|
BuildCollection: ()=>external_BuildCollection_cjs_namespaceObject.BuildCollection,
|
|
1010
1011
|
ProcessesIcon: ()=>external_Processes_cjs_default(),
|
|
@@ -1017,7 +1018,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1017
1018
|
TypeObject: ()=>external_TypeObject_cjs_namespaceObject.TypeObject,
|
|
1018
1019
|
FileExistsIcon: ()=>external_FileExists_cjs_default(),
|
|
1019
1020
|
AlertErrorIcon: ()=>external_AlertError_cjs_default(),
|
|
1020
|
-
Zuora: ()=>external_Zuora_cjs_namespaceObject.Zuora,
|
|
1021
1021
|
ReportStatus: ()=>external_ReportStatus_cjs_namespaceObject.ReportStatus,
|
|
1022
1022
|
DebugHistoryIcon: ()=>external_DebugHistory_cjs_default(),
|
|
1023
1023
|
TypeDictionary: ()=>external_TypeDictionary_cjs_namespaceObject.TypeDictionary,
|
|
@@ -1330,8 +1330,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1330
1330
|
WorkdayBg: ()=>external_WorkdayBg_cjs_namespaceObject.WorkdayBg,
|
|
1331
1331
|
ArrowDropRight: ()=>external_ArrowDropRight_cjs_namespaceObject.ArrowDropRight,
|
|
1332
1332
|
BpmnBoundaryEventCondition: ()=>external_BpmnBoundaryEventCondition_cjs_namespaceObject.BpmnBoundaryEventCondition,
|
|
1333
|
-
CryptographyDecryptTextIcon: ()=>external_CryptographyDecryptText_cjs_default(),
|
|
1334
1333
|
KeyReturnIcon: ()=>external_KeyReturn_cjs_default(),
|
|
1334
|
+
CryptographyDecryptTextIcon: ()=>external_CryptographyDecryptText_cjs_default(),
|
|
1335
1335
|
PriorityMediumHigh: ()=>external_PriorityMediumHigh_cjs_namespaceObject.PriorityMediumHigh,
|
|
1336
1336
|
AgentDesktopLogoBg: ()=>external_AgentDesktopLogoBg_cjs_namespaceObject.AgentDesktopLogoBg,
|
|
1337
1337
|
Citrix: ()=>external_Citrix_cjs_namespaceObject.Citrix,
|
|
@@ -1432,9 +1432,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1432
1432
|
PanelsOutputPanelNewIcon: ()=>external_PanelsOutputPanelNew_cjs_default(),
|
|
1433
1433
|
Smartsheet: ()=>external_Smartsheet_cjs_namespaceObject.Smartsheet,
|
|
1434
1434
|
DataTypesListIcon: ()=>external_DataTypesList_cjs_default(),
|
|
1435
|
-
UserGroupIcon: ()=>external_UserGroup_cjs_default(),
|
|
1436
1435
|
MergeIcon: ()=>external_Merge_cjs_default(),
|
|
1437
1436
|
ClickIcon: ()=>external_Click_cjs_default(),
|
|
1437
|
+
UserGroupIcon: ()=>external_UserGroup_cjs_default(),
|
|
1438
1438
|
VmwareRunProgramInVm: ()=>external_VmwareRunProgramInVm_cjs_namespaceObject.VmwareRunProgramInVm,
|
|
1439
1439
|
UserAddIcon: ()=>external_UserAdd_cjs_default(),
|
|
1440
1440
|
DataTypesDataTableIcon: ()=>external_DataTypesDataTable_cjs_default(),
|
|
@@ -1845,10 +1845,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1845
1845
|
EcryptTextIcon: ()=>external_EcryptText_cjs_default(),
|
|
1846
1846
|
ComponentAPIWorkflowIcon: ()=>external_ComponentAPIWorkflow_cjs_default(),
|
|
1847
1847
|
Control2TerminateWorkflow: ()=>external_Control2TerminateWorkflow_cjs_namespaceObject.Control2TerminateWorkflow,
|
|
1848
|
-
|
|
1848
|
+
EntitiesQueryRecords: ()=>external_EntitiesQueryRecords_cjs_namespaceObject.EntitiesQueryRecords,
|
|
1849
1849
|
Control1RemoveLogFields: ()=>external_Control1RemoveLogFields_cjs_namespaceObject.Control1RemoveLogFields,
|
|
1850
1850
|
Control1GenerateDataTableIcon: ()=>external_Control1GenerateDataTable_cjs_default(),
|
|
1851
|
-
|
|
1851
|
+
EntitiesEntityIcon: ()=>external_EntitiesEntity_cjs_default(),
|
|
1852
1852
|
MicrosoftOneDrive: ()=>external_MicrosoftOneDrive_cjs_namespaceObject.MicrosoftOneDrive,
|
|
1853
1853
|
GoToURLIcon: ()=>external_GoToURL_cjs_default(),
|
|
1854
1854
|
AddCanvas: ()=>external_AddCanvas_cjs_namespaceObject.AddCanvas,
|
|
@@ -1867,11 +1867,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1867
1867
|
SlackDownloadFileIcon: ()=>external_SlackDownloadFile_cjs_default(),
|
|
1868
1868
|
SlackInvokeSlackAdminOperationIcon: ()=>external_SlackInvokeSlackAdminOperation_cjs_default(),
|
|
1869
1869
|
StudioIconsPlaceholderIcon: ()=>external_StudioIconsPlaceholder_cjs_default(),
|
|
1870
|
-
|
|
1870
|
+
TypeDoubleIcon: ()=>external_TypeDouble_cjs_default(),
|
|
1871
1871
|
Expensify: ()=>external_Expensify_cjs_namespaceObject.Expensify,
|
|
1872
1872
|
Issues: ()=>external_Issues_cjs_namespaceObject.Issues,
|
|
1873
1873
|
ComponentTestAutomation: ()=>external_ComponentTestAutomation_cjs_namespaceObject.ComponentTestAutomation,
|
|
1874
|
-
|
|
1874
|
+
TypeCurrency: ()=>external_TypeCurrency_cjs_namespaceObject.TypeCurrency,
|
|
1875
1875
|
UITriggersScheduledIcon: ()=>external_UITriggersScheduled_cjs_default(),
|
|
1876
1876
|
VisibilityOff: ()=>external_VisibilityOff_cjs_namespaceObject.VisibilityOff,
|
|
1877
1877
|
WaitForDownload: ()=>external_WaitForDownload_cjs_namespaceObject.WaitForDownload,
|
|
@@ -2027,13 +2027,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2027
2027
|
ChecklistIcon: ()=>external_Checklist_cjs_default(),
|
|
2028
2028
|
GsuiteGsuite: ()=>external_GsuiteGsuite_cjs_namespaceObject.GsuiteGsuite,
|
|
2029
2029
|
ExtractFiles: ()=>external_ExtractFiles_cjs_namespaceObject.ExtractFiles,
|
|
2030
|
-
UIDataExtractionExtractURL: ()=>external_UIDataExtractionExtractURL_cjs_namespaceObject.UIDataExtractionExtractURL,
|
|
2031
2030
|
VolumeUpIcon: ()=>external_VolumeUp_cjs_default(),
|
|
2032
2031
|
BpmnBoundaryLinkThrow: ()=>external_BpmnBoundaryLinkThrow_cjs_namespaceObject.BpmnBoundaryLinkThrow,
|
|
2033
2032
|
BpmnBoundaryTimer: ()=>external_BpmnBoundaryTimer_cjs_namespaceObject.BpmnBoundaryTimer,
|
|
2034
2033
|
ComponentBusinessRule: ()=>external_ComponentBusinessRule_cjs_namespaceObject.ComponentBusinessRule,
|
|
2035
2034
|
Output: ()=>external_Output_cjs_namespaceObject.Output,
|
|
2036
2035
|
OrchestratorReadStorageText: ()=>external_OrchestratorReadStorageText_cjs_namespaceObject.OrchestratorReadStorageText,
|
|
2036
|
+
UIDataExtractionExtractURL: ()=>external_UIDataExtractionExtractURL_cjs_namespaceObject.UIDataExtractionExtractURL,
|
|
2037
2037
|
BpmnBoundaryEventDefaultIcon: ()=>external_BpmnBoundaryEventDefault_cjs_default(),
|
|
2038
2038
|
Document: ()=>external_Document_cjs_namespaceObject.Document,
|
|
2039
2039
|
UIAutomationSemanticFillForm: ()=>external_UIAutomationSemanticFillForm_cjs_namespaceObject.UIAutomationSemanticFillForm,
|
|
@@ -2644,9 +2644,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2644
2644
|
BorderOuterIcon: ()=>external_BorderOuter_cjs_default(),
|
|
2645
2645
|
DiffAcceptAllIcon: ()=>external_DiffAcceptAll_cjs_default(),
|
|
2646
2646
|
DiffRejectIcon: ()=>external_DiffReject_cjs_default(),
|
|
2647
|
+
ItAutomationGoogleCloudIcon: ()=>external_ItAutomationGoogleCloud_cjs_default(),
|
|
2647
2648
|
ForEachRowInDataTableIcon: ()=>external_ForEachRowInDataTable_cjs_default(),
|
|
2648
2649
|
GetFolderIcon: ()=>external_GetFolder_cjs_default(),
|
|
2649
|
-
ItAutomationGoogleCloudIcon: ()=>external_ItAutomationGoogleCloud_cjs_default(),
|
|
2650
2650
|
Search: ()=>external_Search_cjs_namespaceObject.Search,
|
|
2651
2651
|
SentimentDissatisfied: ()=>external_SentimentDissatisfied_cjs_namespaceObject.SentimentDissatisfied,
|
|
2652
2652
|
SuspendVm: ()=>external_SuspendVm_cjs_namespaceObject.SuspendVm,
|