@uipath/apollo-react 3.70.2 → 3.70.3-pr482.0415bcf
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/AddNodePreview.cjs +9 -9
- package/dist/canvas/components/AddNodePanel/AddNodePreview.d.ts.map +1 -1
- package/dist/canvas/components/AddNodePanel/AddNodePreview.js +9 -9
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.cjs +40 -39
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.js +41 -40
- package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.cjs +13 -9
- package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.js +14 -10
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +5 -5
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +5 -5
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +22 -26
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +22 -26
- package/dist/canvas/components/BaseCanvas/CanvasProviders.cjs +15 -7
- package/dist/canvas/components/BaseCanvas/CanvasProviders.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/CanvasProviders.js +15 -7
- package/dist/canvas/components/BaseNode/BaseNode.cjs +5 -6
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +6 -7
- package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +12 -7
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.js +12 -7
- package/dist/canvas/components/BaseNode/NodeLabel.cjs +2 -2
- package/dist/canvas/components/BaseNode/NodeLabel.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/NodeLabel.js +2 -2
- package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.cjs +6 -6
- package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.js +4 -4
- package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +9 -11
- package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/ButtonHandle.js +9 -11
- package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +6 -9
- package/dist/canvas/components/ButtonHandle/SmartHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/SmartHandle.js +6 -9
- package/dist/canvas/components/CanvasPositionControls.cjs +33 -34
- package/dist/canvas/components/CanvasPositionControls.d.ts.map +1 -1
- package/dist/canvas/components/CanvasPositionControls.js +33 -24
- package/dist/canvas/components/CanvasTooltip.cjs +138 -0
- package/dist/canvas/components/CanvasTooltip.d.ts +14 -0
- package/dist/canvas/components/CanvasTooltip.d.ts.map +1 -0
- package/dist/canvas/components/CanvasTooltip.js +91 -0
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +41 -48
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.d.ts.map +1 -1
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +42 -49
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.cjs +35 -32
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.d.ts.map +1 -1
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.js +35 -32
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.cjs +12 -9
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.d.ts.map +1 -1
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.js +12 -9
- package/dist/canvas/components/GroupNode/GroupNode.cjs +10 -12
- package/dist/canvas/components/GroupNode/GroupNode.d.ts.map +1 -1
- package/dist/canvas/components/GroupNode/GroupNode.js +10 -12
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +11 -8
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.d.ts.map +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +9 -6
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +79 -66
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.d.ts.map +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +77 -64
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.cjs +14 -82
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.d.ts +1 -2
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.d.ts.map +1 -1
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.js +16 -84
- package/dist/canvas/components/NodeInspector.cjs +64 -68
- package/dist/canvas/components/NodeInspector.d.ts.map +1 -1
- package/dist/canvas/components/NodeInspector.js +64 -68
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.cjs +9 -5
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.js +9 -5
- package/dist/canvas/components/StageNode/AdhocTask.cjs +1 -9
- package/dist/canvas/components/StageNode/AdhocTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/AdhocTask.js +2 -10
- package/dist/canvas/components/StageNode/DraggableTask.cjs +5 -13
- package/dist/canvas/components/StageNode/DraggableTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/DraggableTask.js +4 -12
- package/dist/canvas/components/StageNode/StageNode.cjs +42 -41
- package/dist/canvas/components/StageNode/StageNode.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.js +43 -42
- package/dist/canvas/components/StageNode/StageNode.stories.utils.cjs +13 -1
- package/dist/canvas/components/StageNode/StageNode.stories.utils.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.stories.utils.js +13 -1
- package/dist/canvas/components/StageNode/TaskContent.cjs +36 -35
- package/dist/canvas/components/StageNode/TaskContent.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskContent.js +37 -36
- package/dist/canvas/components/StageNode/TaskMenu.cjs +19 -99
- package/dist/canvas/components/StageNode/TaskMenu.d.ts +0 -2
- package/dist/canvas/components/StageNode/TaskMenu.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskMenu.js +21 -91
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.cjs +17 -17
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.js +12 -12
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +2 -2
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +3 -3
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.cjs +16 -14
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.js +13 -11
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.cjs +6 -6
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.js +6 -6
- package/dist/canvas/components/Toolbox/Header.cjs +11 -10
- package/dist/canvas/components/Toolbox/Header.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/Header.js +11 -10
- package/dist/canvas/components/Toolbox/ListView.cjs +22 -34
- package/dist/canvas/components/Toolbox/ListView.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/ListView.js +23 -35
- package/dist/canvas/components/Toolbox/SearchBox.cjs +7 -7
- package/dist/canvas/components/Toolbox/SearchBox.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/SearchBox.js +7 -7
- package/dist/canvas/components/TriggerNode/TriggerNode.cjs +5 -10
- package/dist/canvas/components/TriggerNode/TriggerNode.d.ts.map +1 -1
- package/dist/canvas/components/TriggerNode/TriggerNode.js +5 -10
- package/dist/canvas/components/shared/CanvasDropdownMenu.cjs +80 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.d.ts +13 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.d.ts.map +1 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.js +46 -0
- package/dist/canvas/constants.cjs +4 -0
- package/dist/canvas/constants.d.ts +1 -0
- package/dist/canvas/constants.d.ts.map +1 -1
- package/dist/canvas/constants.js +2 -1
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.cjs +12 -23
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.js +9 -20
- package/dist/canvas/index.cjs +39 -35
- package/dist/canvas/index.d.ts +1 -0
- package/dist/canvas/index.d.ts.map +1 -1
- package/dist/canvas/index.js +1 -0
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.cjs +13 -11
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.js +13 -11
- package/dist/canvas/storybook-utils/decorators.cjs +7 -1
- package/dist/canvas/storybook-utils/decorators.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/decorators.js +7 -1
- package/dist/canvas/styles/tailwind.canvas.css +2 -0
- package/dist/canvas/utils/adornment-resolver.cjs +11 -12
- package/dist/canvas/utils/adornment-resolver.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.js +12 -13
- package/dist/canvas/utils/icon-registry.cjs +6 -2
- package/dist/canvas/utils/icon-registry.d.ts +3 -2
- package/dist/canvas/utils/icon-registry.d.ts.map +1 -1
- package/dist/canvas/utils/icon-registry.js +3 -2
- package/package.json +6 -4
|
@@ -28,10 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const index_cjs_namespaceObject = require("../../../icons/index.cjs");
|
|
31
|
-
const external_utils_index_cjs_namespaceObject = require("../../../utils/index.cjs");
|
|
32
31
|
const external_layouts_index_cjs_namespaceObject = require("../../../layouts/index.cjs");
|
|
32
|
+
const external_utils_index_cjs_namespaceObject = require("../../../utils/index.cjs");
|
|
33
33
|
const react_cjs_namespaceObject = require("../../../xyflow/react.cjs");
|
|
34
|
-
const components_index_cjs_namespaceObject = require("../../../../material/components/index.cjs");
|
|
35
34
|
const external_react_namespaceObject = require("react");
|
|
36
35
|
const external_types_cjs_namespaceObject = require("../../../types.cjs");
|
|
37
36
|
const BaseNode_cjs_namespaceObject = require("../../BaseNode/BaseNode.cjs");
|
|
@@ -135,15 +134,15 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
135
134
|
let icon;
|
|
136
135
|
switch(data.type){
|
|
137
136
|
case 'context':
|
|
138
|
-
icon = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
139
|
-
|
|
140
|
-
size:
|
|
137
|
+
icon = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
138
|
+
icon: "file-text",
|
|
139
|
+
size: 40
|
|
141
140
|
});
|
|
142
141
|
break;
|
|
143
142
|
case 'escalation':
|
|
144
|
-
icon = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
145
|
-
|
|
146
|
-
size:
|
|
143
|
+
icon = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
144
|
+
icon: "user",
|
|
145
|
+
size: 40
|
|
147
146
|
});
|
|
148
147
|
break;
|
|
149
148
|
case 'memorySpace':
|
|
@@ -189,7 +188,7 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
189
188
|
if ('0.0.1' === suggestionGroupVersion) return null;
|
|
190
189
|
const rejectAction = {
|
|
191
190
|
id: 'reject-suggestion',
|
|
192
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.
|
|
191
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
193
192
|
icon: "X",
|
|
194
193
|
size: 14
|
|
195
194
|
}),
|
|
@@ -199,7 +198,7 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
199
198
|
};
|
|
200
199
|
const acceptAction = {
|
|
201
200
|
id: 'accept-suggestion',
|
|
202
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.
|
|
201
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
203
202
|
icon: "check",
|
|
204
203
|
size: 14
|
|
205
204
|
}),
|
|
@@ -241,7 +240,7 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
241
240
|
};
|
|
242
241
|
const removeAction = {
|
|
243
242
|
id: 'remove',
|
|
244
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.
|
|
243
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
245
244
|
icon: "trash",
|
|
246
245
|
size: 14
|
|
247
246
|
}),
|
|
@@ -366,10 +365,9 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
366
365
|
], []);
|
|
367
366
|
const breakpointAdornment = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
368
367
|
if (!hasBreakpoint) return;
|
|
369
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
size: "14px",
|
|
368
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
369
|
+
icon: "circle",
|
|
370
|
+
size: 14,
|
|
373
371
|
color: "#cc3d45"
|
|
374
372
|
});
|
|
375
373
|
}, [
|
|
@@ -383,10 +381,9 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
383
381
|
]);
|
|
384
382
|
const guardrailsAdornment = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
385
383
|
if (!hasGuardrails) return;
|
|
386
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
size: "18px",
|
|
384
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
385
|
+
icon: "shield-check",
|
|
386
|
+
size: 18,
|
|
390
387
|
color: "var(--uix-canvas-icon-default)"
|
|
391
388
|
});
|
|
392
389
|
}, [
|
|
@@ -394,19 +391,18 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
394
391
|
]);
|
|
395
392
|
const suggestionAdornment = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
396
393
|
if (!isSuggestion) return;
|
|
397
|
-
let iconName = '
|
|
394
|
+
let iconName = 'arrow-left-right';
|
|
398
395
|
let color = 'var(--uix-canvas-warning-icon)';
|
|
399
396
|
if ('add' === suggestionType) {
|
|
400
|
-
iconName = '
|
|
397
|
+
iconName = 'circle-plus';
|
|
401
398
|
color = 'var(--uix-canvas-success-icon)';
|
|
402
399
|
} else if ('delete' === suggestionType) {
|
|
403
|
-
iconName = '
|
|
400
|
+
iconName = 'circle-minus';
|
|
404
401
|
color = 'var(--uix-canvas-error-icon)';
|
|
405
402
|
}
|
|
406
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
size: "18px",
|
|
403
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_utils_index_cjs_namespaceObject.CanvasIcon, {
|
|
404
|
+
icon: iconName,
|
|
405
|
+
size: 18,
|
|
410
406
|
color: color
|
|
411
407
|
});
|
|
412
408
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceNode.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/AgentCanvas/nodes/ResourceNode.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,0CAA0C,CAAC;AAGpF,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceNode.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/AgentCanvas/nodes/ResourceNode.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,0CAA0C,CAAC;AAGpF,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAcxB,UAAU,iBAAkB,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IAClE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7E,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC9E,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACpF,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACvF,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACnF,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACjF,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAClF,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrF,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACvF,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,0RAoBpB,iBAAiB,6CAkcrB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { A2aIcon, McpIcon, MemoryIcon } from "../../../icons/index.js";
|
|
3
|
-
import { NodeIcon } from "../../../utils/index.js";
|
|
4
3
|
import { Row } from "../../../layouts/index.js";
|
|
4
|
+
import { CanvasIcon } from "../../../utils/index.js";
|
|
5
5
|
import { Position } from "../../../xyflow/react.js";
|
|
6
|
-
import { ApIcon } from "../../../../material/components/index.js";
|
|
7
6
|
import { memo, useCallback, useMemo } from "react";
|
|
8
7
|
import { DefaultSuggestionTranslations } from "../../../types.js";
|
|
9
8
|
import { BaseNode } from "../../BaseNode/BaseNode.js";
|
|
@@ -107,15 +106,15 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
107
106
|
let icon;
|
|
108
107
|
switch(data.type){
|
|
109
108
|
case 'context':
|
|
110
|
-
icon = /*#__PURE__*/ jsx(
|
|
111
|
-
|
|
112
|
-
size:
|
|
109
|
+
icon = /*#__PURE__*/ jsx(CanvasIcon, {
|
|
110
|
+
icon: "file-text",
|
|
111
|
+
size: 40
|
|
113
112
|
});
|
|
114
113
|
break;
|
|
115
114
|
case 'escalation':
|
|
116
|
-
icon = /*#__PURE__*/ jsx(
|
|
117
|
-
|
|
118
|
-
size:
|
|
115
|
+
icon = /*#__PURE__*/ jsx(CanvasIcon, {
|
|
116
|
+
icon: "user",
|
|
117
|
+
size: 40
|
|
119
118
|
});
|
|
120
119
|
break;
|
|
121
120
|
case 'memorySpace':
|
|
@@ -161,7 +160,7 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
161
160
|
if ('0.0.1' === suggestionGroupVersion) return null;
|
|
162
161
|
const rejectAction = {
|
|
163
162
|
id: 'reject-suggestion',
|
|
164
|
-
icon: /*#__PURE__*/ jsx(
|
|
163
|
+
icon: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
165
164
|
icon: "X",
|
|
166
165
|
size: 14
|
|
167
166
|
}),
|
|
@@ -171,7 +170,7 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
171
170
|
};
|
|
172
171
|
const acceptAction = {
|
|
173
172
|
id: 'accept-suggestion',
|
|
174
|
-
icon: /*#__PURE__*/ jsx(
|
|
173
|
+
icon: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
175
174
|
icon: "check",
|
|
176
175
|
size: 14
|
|
177
176
|
}),
|
|
@@ -213,7 +212,7 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
213
212
|
};
|
|
214
213
|
const removeAction = {
|
|
215
214
|
id: 'remove',
|
|
216
|
-
icon: /*#__PURE__*/ jsx(
|
|
215
|
+
icon: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
217
216
|
icon: "trash",
|
|
218
217
|
size: 14
|
|
219
218
|
}),
|
|
@@ -338,10 +337,9 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
338
337
|
], []);
|
|
339
338
|
const breakpointAdornment = useMemo(()=>{
|
|
340
339
|
if (!hasBreakpoint) return;
|
|
341
|
-
return /*#__PURE__*/ jsx(
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
size: "14px",
|
|
340
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
341
|
+
icon: "circle",
|
|
342
|
+
size: 14,
|
|
345
343
|
color: "#cc3d45"
|
|
346
344
|
});
|
|
347
345
|
}, [
|
|
@@ -355,10 +353,9 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
355
353
|
]);
|
|
356
354
|
const guardrailsAdornment = useMemo(()=>{
|
|
357
355
|
if (!hasGuardrails) return;
|
|
358
|
-
return /*#__PURE__*/ jsx(
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
size: "18px",
|
|
356
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
357
|
+
icon: "shield-check",
|
|
358
|
+
size: 18,
|
|
362
359
|
color: "var(--uix-canvas-icon-default)"
|
|
363
360
|
});
|
|
364
361
|
}, [
|
|
@@ -366,19 +363,18 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
366
363
|
]);
|
|
367
364
|
const suggestionAdornment = useMemo(()=>{
|
|
368
365
|
if (!isSuggestion) return;
|
|
369
|
-
let iconName = '
|
|
366
|
+
let iconName = 'arrow-left-right';
|
|
370
367
|
let color = 'var(--uix-canvas-warning-icon)';
|
|
371
368
|
if ('add' === suggestionType) {
|
|
372
|
-
iconName = '
|
|
369
|
+
iconName = 'circle-plus';
|
|
373
370
|
color = 'var(--uix-canvas-success-icon)';
|
|
374
371
|
} else if ('delete' === suggestionType) {
|
|
375
|
-
iconName = '
|
|
372
|
+
iconName = 'circle-minus';
|
|
376
373
|
color = 'var(--uix-canvas-error-icon)';
|
|
377
374
|
}
|
|
378
|
-
return /*#__PURE__*/ jsx(
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
size: "18px",
|
|
375
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
376
|
+
icon: iconName,
|
|
377
|
+
size: 18,
|
|
382
378
|
color: color
|
|
383
379
|
});
|
|
384
380
|
}, [
|
|
@@ -27,6 +27,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
CanvasProviders: ()=>CanvasProviders
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const tooltip_namespaceObject = require("@uipath/apollo-wind/components/ui/tooltip");
|
|
31
|
+
const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
|
|
30
32
|
const external_BaseCanvasModeProvider_cjs_namespaceObject = require("./BaseCanvasModeProvider.cjs");
|
|
31
33
|
const external_CanvasThemeContext_cjs_namespaceObject = require("./CanvasThemeContext.cjs");
|
|
32
34
|
const external_ConnectedHandlesContext_cjs_namespaceObject = require("./ConnectedHandlesContext.cjs");
|
|
@@ -34,13 +36,19 @@ const external_SelectionStateContext_cjs_namespaceObject = require("./SelectionS
|
|
|
34
36
|
function CanvasProviders({ nodes, edges, mode, isDarkMode, children }) {
|
|
35
37
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasThemeContext_cjs_namespaceObject.CanvasThemeProvider, {
|
|
36
38
|
isDarkMode: isDarkMode,
|
|
37
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
42
|
-
|
|
43
|
-
children:
|
|
39
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_namespaceObject.TooltipProvider, {
|
|
40
|
+
delayDuration: 200,
|
|
41
|
+
skipDelayDuration: 100,
|
|
42
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltipProviderMarker, {
|
|
43
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ConnectedHandlesContext_cjs_namespaceObject.ConnectedHandlesProvider, {
|
|
44
|
+
edges: edges,
|
|
45
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BaseCanvasModeProvider_cjs_namespaceObject.BaseCanvasModeProvider, {
|
|
46
|
+
mode: mode,
|
|
47
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_SelectionStateContext_cjs_namespaceObject.SelectionStateProvider, {
|
|
48
|
+
nodes: nodes,
|
|
49
|
+
children: children
|
|
50
|
+
})
|
|
51
|
+
})
|
|
44
52
|
})
|
|
45
53
|
})
|
|
46
54
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasProviders.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseCanvas/CanvasProviders.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasProviders.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseCanvas/CanvasProviders.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAM1D,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAQD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,EAAE,oBAAoB,2CActB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TooltipProvider } from "@uipath/apollo-wind/components/ui/tooltip";
|
|
3
|
+
import { CanvasTooltipProviderMarker } from "../CanvasTooltip.js";
|
|
2
4
|
import { BaseCanvasModeProvider } from "./BaseCanvasModeProvider.js";
|
|
3
5
|
import { CanvasThemeProvider } from "./CanvasThemeContext.js";
|
|
4
6
|
import { ConnectedHandlesProvider } from "./ConnectedHandlesContext.js";
|
|
@@ -6,13 +8,19 @@ import { SelectionStateProvider } from "./SelectionStateContext.js";
|
|
|
6
8
|
function CanvasProviders({ nodes, edges, mode, isDarkMode, children }) {
|
|
7
9
|
return /*#__PURE__*/ jsx(CanvasThemeProvider, {
|
|
8
10
|
isDarkMode: isDarkMode,
|
|
9
|
-
children: /*#__PURE__*/ jsx(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children: /*#__PURE__*/ jsx(
|
|
14
|
-
|
|
15
|
-
children:
|
|
11
|
+
children: /*#__PURE__*/ jsx(TooltipProvider, {
|
|
12
|
+
delayDuration: 200,
|
|
13
|
+
skipDelayDuration: 100,
|
|
14
|
+
children: /*#__PURE__*/ jsx(CanvasTooltipProviderMarker, {
|
|
15
|
+
children: /*#__PURE__*/ jsx(ConnectedHandlesProvider, {
|
|
16
|
+
edges: edges,
|
|
17
|
+
children: /*#__PURE__*/ jsx(BaseCanvasModeProvider, {
|
|
18
|
+
mode: mode,
|
|
19
|
+
children: /*#__PURE__*/ jsx(SelectionStateProvider, {
|
|
20
|
+
nodes: nodes,
|
|
21
|
+
children: children
|
|
22
|
+
})
|
|
23
|
+
})
|
|
16
24
|
})
|
|
17
25
|
})
|
|
18
26
|
})
|
|
@@ -29,7 +29,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const index_cjs_namespaceObject = require("../../utils/index.cjs");
|
|
31
31
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
32
|
-
const components_index_cjs_namespaceObject = require("../../../material/components/index.cjs");
|
|
33
32
|
const external_react_namespaceObject = require("react");
|
|
34
33
|
const external_constants_cjs_namespaceObject = require("../../constants.cjs");
|
|
35
34
|
const external_core_index_cjs_namespaceObject = require("../../core/index.cjs");
|
|
@@ -343,10 +342,10 @@ const BaseNodeComponent = (props)=>{
|
|
|
343
342
|
shape: "square",
|
|
344
343
|
height: height,
|
|
345
344
|
width: width ?? height,
|
|
346
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
345
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
346
|
+
icon: "circle-alert",
|
|
347
|
+
size: 32,
|
|
348
|
+
color: "var(--uix-canvas-error-icon)"
|
|
350
349
|
})
|
|
351
350
|
}),
|
|
352
351
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseNode_styles_cjs_namespaceObject.BaseTextContainer, {
|
|
@@ -394,7 +393,7 @@ const BaseNodeComponent = (props)=>{
|
|
|
394
393
|
"aria-busy": data.loading || void 0,
|
|
395
394
|
children: [
|
|
396
395
|
data.loading ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BaseNode_styles_cjs_namespaceObject.BaseSkeletonIcon, {
|
|
397
|
-
|
|
396
|
+
"data-testid": "skeleton-icon",
|
|
398
397
|
shape: displayShape,
|
|
399
398
|
nodeHeight: displayFooter ? void 0 : height,
|
|
400
399
|
nodeWidth: displayFooter ? void 0 : width ?? height
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAkB,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAkB,MAAM,0CAA0C,CAAC;AAkChG,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;AA+hB1B,eAAO,MAAM,QAAQ,8CAzhBa,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,6CAyhBhB,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cx } from "../../utils/index.js";
|
|
3
3
|
import { Position, useReactFlow, useStore, useUpdateNodeInternals } from "../../xyflow/react.js";
|
|
4
|
-
import { ApIcon } from "../../../material/components/index.js";
|
|
5
4
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
6
5
|
import { DEFAULT_NODE_SIZE } from "../../constants.js";
|
|
7
6
|
import { useNodeTypeRegistry } from "../../core/index.js";
|
|
8
7
|
import { useElementValidationStatus, useNodeExecutionState } from "../../hooks/index.js";
|
|
9
8
|
import { resolveAdornments } from "../../utils/adornment-resolver.js";
|
|
10
|
-
import { getIcon } from "../../utils/icon-registry.js";
|
|
9
|
+
import { CanvasIcon, getIcon } from "../../utils/icon-registry.js";
|
|
11
10
|
import { resolveDisplay, resolveHandles } from "../../utils/manifest-resolver.js";
|
|
12
11
|
import { resolveToolbar } from "../../utils/toolbar-resolver.js";
|
|
13
12
|
import { useBaseCanvasMode } from "../BaseCanvas/BaseCanvasModeProvider.js";
|
|
@@ -315,10 +314,10 @@ const BaseNodeComponent = (props)=>{
|
|
|
315
314
|
shape: "square",
|
|
316
315
|
height: height,
|
|
317
316
|
width: width ?? height,
|
|
318
|
-
children: /*#__PURE__*/ jsx(
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
317
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
318
|
+
icon: "circle-alert",
|
|
319
|
+
size: 32,
|
|
320
|
+
color: "var(--uix-canvas-error-icon)"
|
|
322
321
|
})
|
|
323
322
|
}),
|
|
324
323
|
/*#__PURE__*/ jsxs(BaseTextContainer, {
|
|
@@ -366,7 +365,7 @@ const BaseNodeComponent = (props)=>{
|
|
|
366
365
|
"aria-busy": data.loading || void 0,
|
|
367
366
|
children: [
|
|
368
367
|
data.loading ? /*#__PURE__*/ jsx(BaseSkeletonIcon, {
|
|
369
|
-
|
|
368
|
+
"data-testid": "skeleton-icon",
|
|
370
369
|
shape: displayShape,
|
|
371
370
|
nodeHeight: displayFooter ? void 0 : height,
|
|
372
371
|
nodeWidth: displayFooter ? void 0 : width ?? height
|
|
@@ -46,7 +46,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
46
46
|
const react_namespaceObject = require("@emotion/react");
|
|
47
47
|
const styled_namespaceObject = require("@emotion/styled");
|
|
48
48
|
var styled_default = /*#__PURE__*/ __webpack_require__.n(styled_namespaceObject);
|
|
49
|
-
const
|
|
49
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
50
50
|
const execution_status_cjs_namespaceObject = require("../../styles/execution-status.cjs");
|
|
51
51
|
const GRID_UNIT = 16;
|
|
52
52
|
const NODE_HEIGHT_DEFAULT = 6 * GRID_UNIT;
|
|
@@ -277,13 +277,16 @@ const BaseHeader = styled_default().div`
|
|
|
277
277
|
`}
|
|
278
278
|
line-height: 1.4;
|
|
279
279
|
margin-bottom: 2px;
|
|
280
|
+
overflow: hidden;
|
|
280
281
|
${({ shape })=>'rectangle' === shape ? (0, react_namespaceObject.css)`
|
|
281
282
|
width: 100%;
|
|
282
283
|
white-space: nowrap;
|
|
283
|
-
overflow: hidden;
|
|
284
284
|
text-overflow: ellipsis;
|
|
285
285
|
` : (0, react_namespaceObject.css)`
|
|
286
286
|
word-break: break-word;
|
|
287
|
+
display: -webkit-box;
|
|
288
|
+
-webkit-box-orient: vertical;
|
|
289
|
+
-webkit-line-clamp: 3;
|
|
287
290
|
`}
|
|
288
291
|
`;
|
|
289
292
|
const BaseSubHeader = styled_default().div`
|
|
@@ -291,13 +294,15 @@ const BaseSubHeader = styled_default().div`
|
|
|
291
294
|
color: var(--uix-canvas-foreground-de-emp);
|
|
292
295
|
line-height: 1.3;
|
|
293
296
|
word-break: break-word;
|
|
297
|
+
overflow: hidden;
|
|
298
|
+
display: -webkit-box;
|
|
299
|
+
-webkit-box-orient: vertical;
|
|
294
300
|
${({ shape })=>'rectangle' === shape ? (0, react_namespaceObject.css)`
|
|
295
301
|
width: 100%;
|
|
296
|
-
display: -webkit-box;
|
|
297
|
-
-webkit-box-orient: vertical;
|
|
298
302
|
-webkit-line-clamp: 2;
|
|
299
|
-
|
|
300
|
-
|
|
303
|
+
` : (0, react_namespaceObject.css)`
|
|
304
|
+
-webkit-line-clamp: 5;
|
|
305
|
+
`}
|
|
301
306
|
`;
|
|
302
307
|
const EditableLabel = styled_default().textarea`
|
|
303
308
|
resize: none;
|
|
@@ -365,7 +370,7 @@ const BaseBadgeSlot = styled_default().div`
|
|
|
365
370
|
}
|
|
366
371
|
}}
|
|
367
372
|
`;
|
|
368
|
-
const BaseSkeletonIcon = styled_default()(
|
|
373
|
+
const BaseSkeletonIcon = styled_default()(apollo_wind_namespaceObject.Skeleton, {
|
|
369
374
|
shouldForwardProp: (prop)=>'shape' !== prop && 'nodeHeight' !== prop && 'nodeWidth' !== prop
|
|
370
375
|
})`
|
|
371
376
|
flex-grow: 0;
|
|
@@ -65,7 +65,7 @@ export declare const BaseBadgeSlot: import("@emotion/styled").StyledComponent<{
|
|
|
65
65
|
position: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
66
66
|
shape?: NodeShape;
|
|
67
67
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
68
|
-
export declare const BaseSkeletonIcon: import("@emotion/styled").StyledComponent<import("
|
|
68
|
+
export declare const BaseSkeletonIcon: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
69
69
|
theme?: import("@emotion/react").Theme;
|
|
70
70
|
} & {
|
|
71
71
|
shape?: NodeShape;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA4GtD,eAAO,MAAM,aAAa;;;;eACb,OAAO;sBACA,MAAM;YAChB,SAAS;sBACC,MAAM;uBACL,MAAM;uBACN,MAAM;qBACR,MAAM;YACf,MAAM;aACL,MAAM;gBACH,OAAO;oBACH,aAAa;yGAuE9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;YAClB,MAAM;sBACI,MAAM;YAChB,SAAS;aACR,MAAM;YACP,MAAM;yGA0Cf,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;uBAAmC,OAAO;YAAU,SAAS;yGAiC1F,CAAC;AAEF,eAAO,MAAM,UAAU;;;;YAAwB,SAAS;sBAAoB,MAAM;
|
|
1
|
+
{"version":3,"file":"BaseNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA4GtD,eAAO,MAAM,aAAa;;;;eACb,OAAO;sBACA,MAAM;YAChB,SAAS;sBACC,MAAM;uBACL,MAAM;uBACN,MAAM;qBACR,MAAM;YACf,MAAM;aACL,MAAM;gBACH,OAAO;oBACH,aAAa;yGAuE9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;YAClB,MAAM;sBACI,MAAM;YAChB,SAAS;aACR,MAAM;YACP,MAAM;yGA0Cf,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;uBAAmC,OAAO;YAAU,SAAS;yGAiC1F,CAAC;AAEF,eAAO,MAAM,UAAU;;;;YAAwB,SAAS;sBAAoB,MAAM;yGA2BjF,CAAC;AAEF,eAAO,MAAM,aAAa;;;;YAAwB,SAAS;yGAiB1D,CAAC;AAEF,eAAO,MAAM,aAAa;;;;YAChB,SAAS;sBACC,MAAM;aACf,QAAQ,GAAG,SAAS;2HA+B9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;yGAkBjC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;cACd,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc;YAC3D,SAAS;yGAsBlB,CAAC;AAKF,eAAO,MAAM,gBAAgB;;;YAGnB,SAAS;iBACJ,MAAM;gBACP,MAAM;UAcnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
import {
|
|
3
|
+
import { Skeleton } from "@uipath/apollo-wind";
|
|
4
4
|
import { getExecutionStatusBorder, pulseAnimation } from "../../styles/execution-status.js";
|
|
5
5
|
const GRID_UNIT = 16;
|
|
6
6
|
const NODE_HEIGHT_DEFAULT = 6 * GRID_UNIT;
|
|
@@ -231,13 +231,16 @@ const BaseHeader = styled.div`
|
|
|
231
231
|
`}
|
|
232
232
|
line-height: 1.4;
|
|
233
233
|
margin-bottom: 2px;
|
|
234
|
+
overflow: hidden;
|
|
234
235
|
${({ shape })=>'rectangle' === shape ? css`
|
|
235
236
|
width: 100%;
|
|
236
237
|
white-space: nowrap;
|
|
237
|
-
overflow: hidden;
|
|
238
238
|
text-overflow: ellipsis;
|
|
239
239
|
` : css`
|
|
240
240
|
word-break: break-word;
|
|
241
|
+
display: -webkit-box;
|
|
242
|
+
-webkit-box-orient: vertical;
|
|
243
|
+
-webkit-line-clamp: 3;
|
|
241
244
|
`}
|
|
242
245
|
`;
|
|
243
246
|
const BaseSubHeader = styled.div`
|
|
@@ -245,13 +248,15 @@ const BaseSubHeader = styled.div`
|
|
|
245
248
|
color: var(--uix-canvas-foreground-de-emp);
|
|
246
249
|
line-height: 1.3;
|
|
247
250
|
word-break: break-word;
|
|
251
|
+
overflow: hidden;
|
|
252
|
+
display: -webkit-box;
|
|
253
|
+
-webkit-box-orient: vertical;
|
|
248
254
|
${({ shape })=>'rectangle' === shape ? css`
|
|
249
255
|
width: 100%;
|
|
250
|
-
display: -webkit-box;
|
|
251
|
-
-webkit-box-orient: vertical;
|
|
252
256
|
-webkit-line-clamp: 2;
|
|
253
|
-
|
|
254
|
-
|
|
257
|
+
` : css`
|
|
258
|
+
-webkit-line-clamp: 5;
|
|
259
|
+
`}
|
|
255
260
|
`;
|
|
256
261
|
const EditableLabel = styled.textarea`
|
|
257
262
|
resize: none;
|
|
@@ -319,7 +324,7 @@ const BaseBadgeSlot = styled.div`
|
|
|
319
324
|
}
|
|
320
325
|
}}
|
|
321
326
|
`;
|
|
322
|
-
const BaseSkeletonIcon = styled(
|
|
327
|
+
const BaseSkeletonIcon = styled(Skeleton, {
|
|
323
328
|
shouldForwardProp: (prop)=>'shape' !== prop && 'nodeHeight' !== prop && 'nodeWidth' !== prop
|
|
324
329
|
})`
|
|
325
330
|
flex-grow: 0;
|
|
@@ -27,12 +27,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
NodeLabel: ()=>NodeLabel
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const index_cjs_namespaceObject = require("../../../material/components/index.cjs");
|
|
31
30
|
const external_react_namespaceObject = require("react");
|
|
31
|
+
const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
|
|
32
32
|
const external_BaseNode_styles_cjs_namespaceObject = require("./BaseNode.styles.cjs");
|
|
33
33
|
const ConditionalTooltip = ({ content, children })=>{
|
|
34
34
|
if (!content) return children;
|
|
35
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
35
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
36
36
|
delay: true,
|
|
37
37
|
placement: "top",
|
|
38
38
|
content: content,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeLabel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/NodeLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NodeLabel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/NodeLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAU9C,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACjE;AAwMD,eAAO,MAAM,SAAS,mLAzKnB,cAAc,6CAyK+B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ApTooltip } from "../../../material/components/index.js";
|
|
3
2
|
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
import { CanvasTooltip } from "../CanvasTooltip.js";
|
|
4
4
|
import { BaseHeader, BaseSubHeader, BaseTextContainer, EditableLabel, EmptyLabelPlaceholder } from "./BaseNode.styles.js";
|
|
5
5
|
const ConditionalTooltip = ({ content, children })=>{
|
|
6
6
|
if (!content) return children;
|
|
7
|
-
return /*#__PURE__*/ jsx(
|
|
7
|
+
return /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
8
8
|
delay: true,
|
|
9
9
|
placement: "top",
|
|
10
10
|
content: content,
|
|
@@ -28,10 +28,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
31
|
-
const index_cjs_namespaceObject = require("../../../material/components/index.cjs");
|
|
32
31
|
const external_react_namespaceObject = require("react");
|
|
33
32
|
const canvasStore_cjs_namespaceObject = require("../../stores/canvasStore.cjs");
|
|
34
|
-
const
|
|
33
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
34
|
+
const index_cjs_namespaceObject = require("../AddNodePanel/index.cjs");
|
|
35
35
|
const external_FloatingCanvasPanel_index_cjs_namespaceObject = require("../FloatingCanvasPanel/index.cjs");
|
|
36
36
|
const external_BlankCanvasNode_styles_cjs_namespaceObject = require("./BlankCanvasNode.styles.cjs");
|
|
37
37
|
const BlankCanvasNode = (props)=>{
|
|
@@ -66,9 +66,9 @@ const BlankCanvasNode = (props)=>{
|
|
|
66
66
|
selected: selected,
|
|
67
67
|
ref: nodeRef,
|
|
68
68
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BlankCanvasNode_styles_cjs_namespaceObject.IconWrapper, {
|
|
69
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
70
|
-
|
|
71
|
-
size:
|
|
69
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
70
|
+
icon: "plus",
|
|
71
|
+
size: 48,
|
|
72
72
|
color: "var(--uix-canvas-foreground-de-emp)"
|
|
73
73
|
})
|
|
74
74
|
})
|
|
@@ -83,7 +83,7 @@ const BlankCanvasNode = (props)=>{
|
|
|
83
83
|
nodeId: id,
|
|
84
84
|
placement: "right-start",
|
|
85
85
|
offset: 20,
|
|
86
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
86
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.AddNodePanel, {
|
|
87
87
|
onNodeSelect: (item)=>handleNodeSelect(item.data),
|
|
88
88
|
onClose: handleClosePanel
|
|
89
89
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useStoreApi } from "../../xyflow/react.js";
|
|
3
|
-
import { ApIcon } from "../../../material/components/index.js";
|
|
4
3
|
import { useCallback, useRef } from "react";
|
|
5
4
|
import { selectAddNode, selectRemoveNode, useCanvasStore } from "../../stores/canvasStore.js";
|
|
5
|
+
import { CanvasIcon } from "../../utils/icon-registry.js";
|
|
6
6
|
import { AddNodePanel } from "../AddNodePanel/index.js";
|
|
7
7
|
import { FloatingCanvasPanel } from "../FloatingCanvasPanel/index.js";
|
|
8
8
|
import { Header, IconWrapper, NodeContainer, TextContainer } from "./BlankCanvasNode.styles.js";
|
|
@@ -38,9 +38,9 @@ const BlankCanvasNode = (props)=>{
|
|
|
38
38
|
selected: selected,
|
|
39
39
|
ref: nodeRef,
|
|
40
40
|
children: /*#__PURE__*/ jsx(IconWrapper, {
|
|
41
|
-
children: /*#__PURE__*/ jsx(
|
|
42
|
-
|
|
43
|
-
size:
|
|
41
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
42
|
+
icon: "plus",
|
|
43
|
+
size: 48,
|
|
44
44
|
color: "var(--uix-canvas-foreground-de-emp)"
|
|
45
45
|
})
|
|
46
46
|
})
|