@uipath/apollo-react 4.0.0 → 4.1.1

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.
Files changed (247) hide show
  1. package/dist/canvas/components/AddNodePanel/AddNodePreview.cjs +4 -4
  2. package/dist/canvas/components/AddNodePanel/AddNodePreview.js +4 -4
  3. package/dist/canvas/components/AgentCanvas/AgentFlow.cjs +4 -4
  4. package/dist/canvas/components/AgentCanvas/AgentFlow.js +4 -4
  5. package/dist/canvas/components/AgentCanvas/components/PaneContextMenu.cjs +3 -3
  6. package/dist/canvas/components/AgentCanvas/components/PaneContextMenu.js +3 -3
  7. package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.cjs +6 -6
  8. package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.d.ts.map +1 -1
  9. package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.js +6 -6
  10. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.cjs +14 -14
  11. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.js +14 -14
  12. package/dist/canvas/components/AgentCanvas/edges/StaticEdge.cjs +8 -8
  13. package/dist/canvas/components/AgentCanvas/edges/StaticEdge.js +8 -8
  14. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +12 -12
  15. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +12 -12
  16. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.styles.cjs +18 -18
  17. package/dist/canvas/components/AgentCanvas/nodes/AgentNode.styles.js +18 -18
  18. package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +12 -12
  19. package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
  20. package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +12 -12
  21. package/dist/canvas/components/BaseCanvas/BaseCanvas.constants.cjs +2 -2
  22. package/dist/canvas/components/BaseCanvas/BaseCanvas.constants.d.ts +2 -2
  23. package/dist/canvas/components/BaseCanvas/BaseCanvas.constants.js +2 -2
  24. package/dist/canvas/components/BaseCanvas/PanShortcutTeachingUI.cjs +2 -2
  25. package/dist/canvas/components/BaseCanvas/PanShortcutTeachingUI.js +2 -2
  26. package/dist/canvas/components/BaseNode/BaseNode.cjs +2 -2
  27. package/dist/canvas/components/BaseNode/BaseNode.js +2 -2
  28. package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +24 -24
  29. package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +1 -1
  30. package/dist/canvas/components/BaseNode/BaseNode.styles.js +24 -24
  31. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.cjs +1 -1
  32. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.js +1 -1
  33. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.styles.cjs +6 -6
  34. package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.styles.js +6 -6
  35. package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +1 -1
  36. package/dist/canvas/components/ButtonHandle/ButtonHandle.js +1 -1
  37. package/dist/canvas/components/ButtonHandle/ButtonHandle.styles.cjs +11 -11
  38. package/dist/canvas/components/ButtonHandle/ButtonHandle.styles.js +11 -11
  39. package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +1 -1
  40. package/dist/canvas/components/ButtonHandle/SmartHandle.d.ts.map +1 -1
  41. package/dist/canvas/components/ButtonHandle/SmartHandle.js +1 -1
  42. package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +6 -6
  43. package/dist/canvas/components/CodedAgent/CodedAgentFlow.d.ts.map +1 -1
  44. package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +6 -6
  45. package/dist/canvas/components/Edges/EdgeUtils.cjs +14 -14
  46. package/dist/canvas/components/Edges/EdgeUtils.js +14 -14
  47. package/dist/canvas/components/Edges/SequenceEdge.cjs +11 -11
  48. package/dist/canvas/components/Edges/SequenceEdge.js +11 -11
  49. package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.cjs +4 -4
  50. package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.d.ts.map +1 -1
  51. package/dist/canvas/components/FloatingCanvasPanel/FloatingCanvasPanel.js +4 -4
  52. package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.cjs +5 -5
  53. package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.js +5 -5
  54. package/dist/canvas/components/GroupNode/GroupNode.styles.cjs +19 -19
  55. package/dist/canvas/components/GroupNode/GroupNode.styles.js +19 -19
  56. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +2 -2
  57. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +2 -2
  58. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +3 -3
  59. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +3 -3
  60. package/dist/canvas/components/MiniCanvasNavigator/MiniCanvasNavigator.cjs +2 -2
  61. package/dist/canvas/components/MiniCanvasNavigator/MiniCanvasNavigator.js +2 -2
  62. package/dist/canvas/components/NodeInspector.cjs +4 -4
  63. package/dist/canvas/components/NodeInspector.js +4 -4
  64. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.cjs +30 -30
  65. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.js +30 -30
  66. package/dist/canvas/components/StageNode/StageConnectionEdge.cjs +1 -1
  67. package/dist/canvas/components/StageNode/StageConnectionEdge.js +1 -1
  68. package/dist/canvas/components/StageNode/StageEdge.cjs +7 -7
  69. package/dist/canvas/components/StageNode/StageEdge.js +7 -7
  70. package/dist/canvas/components/StageNode/StageNode.styles.cjs +34 -34
  71. package/dist/canvas/components/StageNode/StageNode.styles.js +34 -34
  72. package/dist/canvas/components/StageNode/TaskContent.cjs +1 -1
  73. package/dist/canvas/components/StageNode/TaskContent.js +1 -1
  74. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.styles.cjs +20 -20
  75. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.styles.d.ts.map +1 -1
  76. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.styles.js +20 -20
  77. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.types.cjs +1 -1
  78. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.types.d.ts +1 -1
  79. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.types.js +1 -1
  80. package/dist/canvas/components/TaskIcon/TaskIcon.styles.cjs +1 -1
  81. package/dist/canvas/components/TaskIcon/TaskIcon.styles.js +1 -1
  82. package/dist/canvas/components/Toolbar/EdgeToolbar/EdgeToolbar.styles.cjs +2 -2
  83. package/dist/canvas/components/Toolbar/EdgeToolbar/EdgeToolbar.styles.js +2 -2
  84. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.styles.cjs +9 -9
  85. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.styles.js +9 -9
  86. package/dist/canvas/components/Toolbar/shared/ToolbarButton.styles.cjs +3 -3
  87. package/dist/canvas/components/Toolbar/shared/ToolbarButton.styles.js +3 -3
  88. package/dist/canvas/components/Toolbox/ListView.cjs +3 -3
  89. package/dist/canvas/components/Toolbox/ListView.js +3 -3
  90. package/dist/canvas/components/Toolbox/ListView.styles.cjs +7 -7
  91. package/dist/canvas/components/Toolbox/ListView.styles.js +7 -7
  92. package/dist/canvas/components/Toolbox/SearchBox.styles.cjs +8 -8
  93. package/dist/canvas/components/Toolbox/SearchBox.styles.js +8 -8
  94. package/dist/canvas/components/Toolbox/Toolbox.styles.cjs +2 -2
  95. package/dist/canvas/components/Toolbox/Toolbox.styles.js +2 -2
  96. package/dist/canvas/components/TriggerNode/TriggerNode.styles.cjs +15 -15
  97. package/dist/canvas/components/TriggerNode/TriggerNode.styles.js +15 -15
  98. package/dist/canvas/styles/execution-status.cjs +10 -10
  99. package/dist/canvas/styles/execution-status.js +10 -10
  100. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  101. package/dist/canvas/styles/variables.css +67 -32
  102. package/dist/canvas/utils/adornment-resolver.cjs +2 -2
  103. package/dist/canvas/utils/adornment-resolver.js +2 -2
  104. package/dist/canvas/utils/coded-agents/mermaid-parser.cjs +1 -1
  105. package/dist/canvas/utils/coded-agents/mermaid-parser.js +1 -1
  106. package/dist/canvas/utils/createPreviewNode.cjs +1 -1
  107. package/dist/canvas/utils/createPreviewNode.js +1 -1
  108. package/dist/canvas/utils/export-canvas.cjs +1 -1
  109. package/dist/canvas/utils/export-canvas.d.ts.map +1 -1
  110. package/dist/canvas/utils/export-canvas.js +1 -1
  111. package/package.json +2 -2
  112. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.cjs +0 -429
  113. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.d.ts +0 -11
  114. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.d.ts.map +0 -1
  115. package/dist/canvas/components/AddNodePanel/AddNodePanel.stories.js +0 -380
  116. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.cjs +0 -2209
  117. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.d.ts +0 -11
  118. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.d.ts.map +0 -1
  119. package/dist/canvas/components/AgentCanvas/AgentFlow.stories.js +0 -2160
  120. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.cjs +0 -246
  121. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.d.ts +0 -10
  122. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.d.ts.map +0 -1
  123. package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.stories.js +0 -200
  124. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.cjs +0 -981
  125. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.d.ts +0 -12
  126. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.d.ts.map +0 -1
  127. package/dist/canvas/components/BaseCanvas/BaseCanvas.stories.js +0 -929
  128. package/dist/canvas/components/BaseNode/BaseNode.stories.cjs +0 -1150
  129. package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts +0 -11
  130. package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts.map +0 -1
  131. package/dist/canvas/components/BaseNode/BaseNode.stories.js +0 -1101
  132. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.cjs +0 -969
  133. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.d.ts +0 -9
  134. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.d.ts.map +0 -1
  135. package/dist/canvas/components/ButtonHandle/ButtonHandle.stories.js +0 -926
  136. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.cjs +0 -608
  137. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.d.ts +0 -8
  138. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.d.ts.map +0 -1
  139. package/dist/canvas/components/ButtonHandle/SmartHandle.stories.js +0 -568
  140. package/dist/canvas/components/CanvasPerformance.stories.cjs +0 -349
  141. package/dist/canvas/components/CanvasPerformance.stories.d.ts +0 -6
  142. package/dist/canvas/components/CanvasPerformance.stories.d.ts.map +0 -1
  143. package/dist/canvas/components/CanvasPerformance.stories.js +0 -312
  144. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.cjs +0 -119
  145. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.d.ts +0 -10
  146. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.d.ts.map +0 -1
  147. package/dist/canvas/components/CodedAgent/CodedAgentFlow.stories.js +0 -73
  148. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.cjs +0 -518
  149. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.d.ts +0 -6
  150. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.d.ts.map +0 -1
  151. package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.js +0 -481
  152. package/dist/canvas/components/Edges/SequenceEdge.stories.cjs +0 -1073
  153. package/dist/canvas/components/Edges/SequenceEdge.stories.d.ts +0 -10
  154. package/dist/canvas/components/Edges/SequenceEdge.stories.d.ts.map +0 -1
  155. package/dist/canvas/components/Edges/SequenceEdge.stories.js +0 -1024
  156. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.cjs +0 -796
  157. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.d.ts +0 -7
  158. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.d.ts.map +0 -1
  159. package/dist/canvas/components/Edges/XyFlowEdgeComparison.stories.js +0 -756
  160. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.cjs +0 -245
  161. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.d.ts +0 -30
  162. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.d.ts.map +0 -1
  163. package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.stories.js +0 -208
  164. package/dist/canvas/components/Flow.stories.cjs +0 -778
  165. package/dist/canvas/components/Flow.stories.d.ts +0 -11
  166. package/dist/canvas/components/Flow.stories.d.ts.map +0 -1
  167. package/dist/canvas/components/Flow.stories.js +0 -725
  168. package/dist/canvas/components/GroupNode/GroupNode.stories.cjs +0 -837
  169. package/dist/canvas/components/GroupNode/GroupNode.stories.d.ts +0 -12
  170. package/dist/canvas/components/GroupNode/GroupNode.stories.d.ts.map +0 -1
  171. package/dist/canvas/components/GroupNode/GroupNode.stories.js +0 -782
  172. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.cjs +0 -88
  173. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.d.ts +0 -7
  174. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.d.ts.map +0 -1
  175. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.stories.js +0 -51
  176. package/dist/canvas/components/NodeInspector.stories.cjs +0 -229
  177. package/dist/canvas/components/NodeInspector.stories.d.ts +0 -20
  178. package/dist/canvas/components/NodeInspector.stories.d.ts.map +0 -1
  179. package/dist/canvas/components/NodeInspector.stories.js +0 -192
  180. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.cjs +0 -122
  181. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.d.ts +0 -7
  182. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.d.ts.map +0 -1
  183. package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.js +0 -85
  184. package/dist/canvas/components/StageNode/StageNode.stories.cjs +0 -2690
  185. package/dist/canvas/components/StageNode/StageNode.stories.d.ts +0 -17
  186. package/dist/canvas/components/StageNode/StageNode.stories.d.ts.map +0 -1
  187. package/dist/canvas/components/StageNode/StageNode.stories.js +0 -2623
  188. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.cjs +0 -552
  189. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.d.ts +0 -8
  190. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.d.ts.map +0 -1
  191. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.stories.js +0 -509
  192. package/dist/canvas/components/TaskIcon/TaskIcon.stories.cjs +0 -109
  193. package/dist/canvas/components/TaskIcon/TaskIcon.stories.d.ts +0 -10
  194. package/dist/canvas/components/TaskIcon/TaskIcon.stories.d.ts.map +0 -1
  195. package/dist/canvas/components/TaskIcon/TaskIcon.stories.js +0 -72
  196. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.cjs +0 -283
  197. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.d.ts +0 -7
  198. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.d.ts.map +0 -1
  199. package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.stories.js +0 -243
  200. package/dist/canvas/components/TriggerNode/TriggerNode.stories.cjs +0 -270
  201. package/dist/canvas/components/TriggerNode/TriggerNode.stories.d.ts +0 -16
  202. package/dist/canvas/components/TriggerNode/TriggerNode.stories.d.ts.map +0 -1
  203. package/dist/canvas/components/TriggerNode/TriggerNode.stories.js +0 -233
  204. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.cjs +0 -76
  205. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.d.ts +0 -7
  206. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
  207. package/dist/canvas/controls/Breadcrumb/Breadcrumb.stories.js +0 -39
  208. package/dist/canvas/icons/Icons.stories.cjs +0 -207
  209. package/dist/canvas/icons/Icons.stories.d.ts +0 -6
  210. package/dist/canvas/icons/Icons.stories.d.ts.map +0 -1
  211. package/dist/canvas/icons/Icons.stories.js +0 -167
  212. package/dist/canvas/layouts/Column.stories.cjs +0 -716
  213. package/dist/canvas/layouts/Column.stories.d.ts +0 -14
  214. package/dist/canvas/layouts/Column.stories.d.ts.map +0 -1
  215. package/dist/canvas/layouts/Column.stories.js +0 -658
  216. package/dist/canvas/layouts/Grid.stories.cjs +0 -1033
  217. package/dist/canvas/layouts/Grid.stories.d.ts +0 -19
  218. package/dist/canvas/layouts/Grid.stories.d.ts.map +0 -1
  219. package/dist/canvas/layouts/Grid.stories.js +0 -960
  220. package/dist/canvas/layouts/Row.stories.cjs +0 -687
  221. package/dist/canvas/layouts/Row.stories.d.ts +0 -14
  222. package/dist/canvas/layouts/Row.stories.d.ts.map +0 -1
  223. package/dist/canvas/layouts/Row.stories.js +0 -629
  224. package/dist/canvas/storybook-utils/components/StoryInfoPanel.cjs +0 -100
  225. package/dist/canvas/storybook-utils/components/StoryInfoPanel.js +0 -66
  226. package/dist/canvas/storybook-utils/components/index.cjs +0 -58
  227. package/dist/canvas/storybook-utils/components/index.js +0 -1
  228. package/dist/canvas/storybook-utils/decorators.cjs +0 -101
  229. package/dist/canvas/storybook-utils/decorators.js +0 -64
  230. package/dist/canvas/storybook-utils/hooks/index.cjs +0 -58
  231. package/dist/canvas/storybook-utils/hooks/index.js +0 -1
  232. package/dist/canvas/storybook-utils/hooks/useCanvasStory.cjs +0 -118
  233. package/dist/canvas/storybook-utils/hooks/useCanvasStory.js +0 -81
  234. package/dist/canvas/storybook-utils/index.cjs +0 -86
  235. package/dist/canvas/storybook-utils/index.js +0 -5
  236. package/dist/canvas/storybook-utils/manifests/category-definitions.cjs +0 -220
  237. package/dist/canvas/storybook-utils/manifests/category-definitions.js +0 -186
  238. package/dist/canvas/storybook-utils/manifests/index.cjs +0 -82
  239. package/dist/canvas/storybook-utils/manifests/index.js +0 -10
  240. package/dist/canvas/storybook-utils/manifests/node-definitions.cjs +0 -1133
  241. package/dist/canvas/storybook-utils/manifests/node-definitions.js +0 -1099
  242. package/dist/canvas/storybook-utils/mocks/index.cjs +0 -65
  243. package/dist/canvas/storybook-utils/mocks/index.js +0 -2
  244. package/dist/canvas/storybook-utils/mocks/nodes.cjs +0 -237
  245. package/dist/canvas/storybook-utils/mocks/nodes.js +0 -191
  246. package/dist/canvas/storybook-utils/mocks/resources.cjs +0 -296
  247. package/dist/canvas/storybook-utils/mocks/resources.js +0 -238
@@ -1,969 +0,0 @@
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
- default: ()=>ButtonHandle_stories,
28
- HandleConfiguration: ()=>HandleConfiguration,
29
- LogicFlow: ()=>LogicFlow,
30
- Default: ()=>Default
31
- });
32
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
- const material_namespaceObject = require("@mui/material");
34
- const apollo_core_namespaceObject = require("@uipath/apollo-core");
35
- const index_cjs_namespaceObject = require("../../layouts/index.cjs");
36
- const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
37
- const external_material_index_cjs_namespaceObject = require("../../../material/index.cjs");
38
- const external_react_namespaceObject = require("react");
39
- const external_storybook_utils_index_cjs_namespaceObject = require("../../storybook-utils/index.cjs");
40
- const external_types_cjs_namespaceObject = require("../../types.cjs");
41
- const BaseCanvas_cjs_namespaceObject = require("../BaseCanvas/BaseCanvas.cjs");
42
- const external_CanvasPositionControls_cjs_namespaceObject = require("../CanvasPositionControls.cjs");
43
- const external_ButtonHandle_cjs_namespaceObject = require("./ButtonHandle.cjs");
44
- const meta = {
45
- title: 'Canvas/ButtonHandles',
46
- component: external_ButtonHandle_cjs_namespaceObject.ButtonHandles,
47
- parameters: {
48
- layout: 'fullscreen'
49
- },
50
- decorators: [
51
- (0, external_storybook_utils_index_cjs_namespaceObject.withCanvasProviders)()
52
- ]
53
- };
54
- const ButtonHandle_stories = meta;
55
- function SimpleNode({ id, data, selected }) {
56
- const topHandles = [
57
- {
58
- id: 'top',
59
- type: 'source',
60
- handleType: 'artifact',
61
- label: 'Escalations',
62
- showButton: true,
63
- onAction: (event)=>{
64
- console.log('Escalations clicked', event);
65
- alert('Escalations clicked!');
66
- }
67
- }
68
- ];
69
- const bottomHandles = [
70
- {
71
- id: 'bottom-memory',
72
- type: 'source',
73
- handleType: 'artifact',
74
- label: 'Memory',
75
- showButton: true,
76
- onAction: (event)=>{
77
- console.log('Memory clicked', event);
78
- alert('Memory clicked!');
79
- }
80
- },
81
- {
82
- id: 'bottom-context',
83
- type: 'source',
84
- handleType: 'artifact',
85
- label: 'Context',
86
- showButton: true,
87
- onAction: (event)=>{
88
- console.log('Context clicked', event);
89
- alert('Context clicked!');
90
- }
91
- }
92
- ];
93
- const leftHandles = [
94
- {
95
- id: 'left',
96
- type: 'target',
97
- handleType: 'input'
98
- }
99
- ];
100
- const rightHandles = [
101
- {
102
- id: 'right',
103
- type: 'source',
104
- handleType: 'output',
105
- showButton: true,
106
- onAction: (event)=>{
107
- console.log('Output clicked', event);
108
- alert('Output clicked!');
109
- }
110
- }
111
- ];
112
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
113
- style: {
114
- width: 240,
115
- height: 70,
116
- borderRadius: 8,
117
- backgroundColor: 'var(--uix-canvas-background)',
118
- border: selected ? '1px solid var(--uix-canvas-selection-indicator)' : '1px solid var(--uix-canvas-border)',
119
- display: 'flex',
120
- alignItems: 'center',
121
- justifyContent: 'center',
122
- position: 'relative',
123
- padding: 16
124
- },
125
- children: [
126
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
127
- w: "100%",
128
- gap: 12,
129
- align: "center",
130
- children: [
131
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIcon, {
132
- name: "smart_toy",
133
- size: "32px",
134
- color: "var(--uix-canvas-foreground-de-emp)"
135
- }),
136
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
137
- children: [
138
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
139
- variant: apollo_core_namespaceObject.FontVariantToken.fontSizeSBold,
140
- color: "var(--uix-canvas-foreground-de-emp)",
141
- children: data.label
142
- }),
143
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
144
- variant: apollo_core_namespaceObject.FontVariantToken.fontSizeS,
145
- color: "var(--uix-canvas-foreground-de-emp)",
146
- children: data.subLabel
147
- })
148
- ]
149
- })
150
- ]
151
- }),
152
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
153
- nodeId: id,
154
- handles: topHandles,
155
- position: react_cjs_namespaceObject.Position.Top,
156
- selected: selected
157
- }),
158
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
159
- nodeId: id,
160
- handles: bottomHandles,
161
- position: react_cjs_namespaceObject.Position.Bottom,
162
- selected: selected
163
- }),
164
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
165
- nodeId: id,
166
- handles: leftHandles,
167
- position: react_cjs_namespaceObject.Position.Left,
168
- selected: selected
169
- }),
170
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
171
- nodeId: id,
172
- handles: rightHandles,
173
- position: react_cjs_namespaceObject.Position.Right,
174
- selected: selected
175
- })
176
- ]
177
- });
178
- }
179
- function ConfigurableNode({ id, data, selected }) {
180
- const { handleConfig } = data;
181
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
182
- style: {
183
- width: 300,
184
- height: 150,
185
- borderRadius: 8,
186
- backgroundColor: 'var(--uix-canvas-background)',
187
- border: selected ? '1px solid var(--uix-canvas-selection-indicator)' : '1px solid var(--uix-canvas-foreground-de-emp)',
188
- display: 'flex',
189
- alignItems: 'center',
190
- justifyContent: 'center',
191
- position: 'relative'
192
- },
193
- children: [
194
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
195
- style: {
196
- fontSize: 16,
197
- fontWeight: 500,
198
- color: 'var(--uix-canvas-foreground)'
199
- },
200
- children: data.label
201
- }),
202
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
203
- nodeId: id,
204
- handles: handleConfig.top,
205
- position: react_cjs_namespaceObject.Position.Top,
206
- selected: selected
207
- }),
208
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
209
- nodeId: id,
210
- handles: handleConfig.bottom,
211
- position: react_cjs_namespaceObject.Position.Bottom,
212
- selected: selected
213
- }),
214
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
215
- nodeId: id,
216
- handles: handleConfig.left,
217
- position: react_cjs_namespaceObject.Position.Left,
218
- selected: selected
219
- }),
220
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ButtonHandle_cjs_namespaceObject.ButtonHandles, {
221
- nodeId: id,
222
- handles: handleConfig.right,
223
- position: react_cjs_namespaceObject.Position.Right,
224
- selected: selected
225
- })
226
- ]
227
- });
228
- }
229
- function DefaultStory() {
230
- const nodeTypes = (0, external_react_namespaceObject.useMemo)(()=>({
231
- simpleNode: SimpleNode
232
- }), []);
233
- const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
234
- initialNodes: [
235
- {
236
- id: '1',
237
- type: 'simpleNode',
238
- position: {
239
- x: 250,
240
- y: 150
241
- },
242
- data: {
243
- label: 'Screener agent',
244
- subLabel: 'Agent'
245
- }
246
- }
247
- ]
248
- });
249
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseCanvas_cjs_namespaceObject.BaseCanvas, {
250
- ...canvasProps,
251
- nodeTypes: nodeTypes,
252
- mode: "design",
253
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
254
- title: "ButtonHandles",
255
- description: "Click + buttons on handles to trigger actions"
256
- })
257
- });
258
- }
259
- const handleAction = (event)=>console.log('Handle action:', event);
260
- const DEFAULT_HANDLE_CONFIG = {
261
- top: [
262
- {
263
- id: 'out1',
264
- type: 'source',
265
- handleType: 'output',
266
- label: 'Output 1',
267
- showButton: true,
268
- onAction: handleAction
269
- },
270
- {
271
- id: 'out2',
272
- type: 'source',
273
- handleType: 'output',
274
- label: 'Output 2',
275
- showButton: true,
276
- onAction: handleAction
277
- }
278
- ],
279
- bottom: [
280
- {
281
- id: 'in1',
282
- type: 'target',
283
- handleType: 'input',
284
- label: 'Input 1'
285
- },
286
- {
287
- id: 'in2',
288
- type: 'target',
289
- handleType: 'input',
290
- label: 'Input 2'
291
- }
292
- ],
293
- left: [
294
- {
295
- id: 'config',
296
- type: 'target',
297
- handleType: 'artifact',
298
- label: 'Config'
299
- }
300
- ],
301
- right: [
302
- {
303
- id: 'success',
304
- type: 'source',
305
- handleType: 'output',
306
- label: 'Success',
307
- color: 'var(--uix-canvas-success-icon)',
308
- showButton: true,
309
- onAction: handleAction
310
- },
311
- {
312
- id: 'error',
313
- type: 'source',
314
- handleType: 'output',
315
- label: 'Error',
316
- color: 'var(--uix-canvas-error-icon)',
317
- showButton: true,
318
- onAction: handleAction
319
- }
320
- ]
321
- };
322
- const HANDLE_TYPE_CONFIG = {
323
- input: {
324
- type: 'target',
325
- label: 'In'
326
- },
327
- output: {
328
- type: 'source',
329
- label: 'Out'
330
- },
331
- artifact: {
332
- type: 'source',
333
- label: 'Art'
334
- }
335
- };
336
- function HandleConfigurationStory() {
337
- const [handleConfig, setHandleConfig] = (0, external_react_namespaceObject.useState)(DEFAULT_HANDLE_CONFIG);
338
- const [showButtons, setShowButtons] = (0, external_react_namespaceObject.useState)(true);
339
- const [handleTypes, setHandleTypes] = (0, external_react_namespaceObject.useState)({
340
- top: 'output',
341
- right: 'output',
342
- bottom: 'input',
343
- left: 'input'
344
- });
345
- const updateHandleCount = (0, external_react_namespaceObject.useCallback)((position, delta)=>{
346
- setHandleConfig((prev)=>{
347
- const handles = [
348
- ...prev[position]
349
- ];
350
- if (delta > 0) {
351
- const handleType = handleTypes[position];
352
- const config = HANDLE_TYPE_CONFIG[handleType];
353
- const isSource = 'source' === config.type;
354
- const newHandle = {
355
- id: `${position}-${Date.now()}`,
356
- type: config.type,
357
- handleType,
358
- label: `${config.label} ${handles.length + 1}`,
359
- showButton: isSource ? showButtons : void 0,
360
- onAction: isSource ? handleAction : void 0
361
- };
362
- return {
363
- ...prev,
364
- [position]: [
365
- ...handles,
366
- newHandle
367
- ]
368
- };
369
- }
370
- if (handles.length > 0) return {
371
- ...prev,
372
- [position]: handles.slice(0, -1)
373
- };
374
- return prev;
375
- });
376
- }, [
377
- showButtons,
378
- handleTypes
379
- ]);
380
- (0, external_react_namespaceObject.useEffect)(()=>{
381
- setHandleConfig((prev)=>({
382
- top: prev.top.map((h)=>'source' === h.type ? {
383
- ...h,
384
- showButton: showButtons
385
- } : h),
386
- bottom: prev.bottom.map((h)=>'source' === h.type ? {
387
- ...h,
388
- showButton: showButtons
389
- } : h),
390
- left: prev.left.map((h)=>'source' === h.type ? {
391
- ...h,
392
- showButton: showButtons
393
- } : h),
394
- right: prev.right.map((h)=>'source' === h.type ? {
395
- ...h,
396
- showButton: showButtons
397
- } : h)
398
- }));
399
- }, [
400
- showButtons
401
- ]);
402
- const resetConfig = (0, external_react_namespaceObject.useCallback)(()=>{
403
- setHandleConfig(DEFAULT_HANDLE_CONFIG);
404
- setShowButtons(true);
405
- setHandleTypes({
406
- top: 'output',
407
- right: 'output',
408
- bottom: 'input',
409
- left: 'input'
410
- });
411
- }, []);
412
- const nodeTypes = (0, external_react_namespaceObject.useMemo)(()=>({
413
- configurableNode: ConfigurableNode
414
- }), []);
415
- const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
416
- {
417
- id: '1',
418
- type: 'configurableNode',
419
- position: {
420
- x: 350,
421
- y: 400
422
- },
423
- data: {
424
- label: 'Configurable Node',
425
- handleConfig: DEFAULT_HANDLE_CONFIG
426
- }
427
- }
428
- ], []);
429
- const { canvasProps, setNodes } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
430
- initialNodes
431
- });
432
- (0, external_react_namespaceObject.useEffect)(()=>{
433
- setNodes((nodes)=>nodes.map((node)=>'1' === node.id ? {
434
- ...node,
435
- data: {
436
- ...node.data,
437
- handleConfig
438
- }
439
- } : node));
440
- }, [
441
- handleConfig,
442
- setNodes
443
- ]);
444
- const positions = [
445
- {
446
- key: 'top',
447
- label: 'Top',
448
- icon: 'arrow_upward'
449
- },
450
- {
451
- key: 'right',
452
- label: 'Right',
453
- icon: 'arrow_forward'
454
- },
455
- {
456
- key: 'bottom',
457
- label: 'Bottom',
458
- icon: 'arrow_downward'
459
- },
460
- {
461
- key: 'left',
462
- label: 'Left',
463
- icon: 'arrow_back'
464
- }
465
- ];
466
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseCanvas_cjs_namespaceObject.BaseCanvas, {
467
- ...canvasProps,
468
- nodeTypes: nodeTypes,
469
- mode: "design",
470
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
471
- title: "Handle configuration",
472
- collapsible: true,
473
- defaultCollapsed: true,
474
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
475
- align: "start",
476
- gap: 16,
477
- style: {
478
- marginTop: 12
479
- },
480
- children: [
481
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
482
- gap: 8,
483
- children: [
484
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
485
- variant: apollo_core_namespaceObject.FontVariantToken.fontSizeSBold,
486
- children: "Handles"
487
- }),
488
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Row, {
489
- gap: 16,
490
- style: {
491
- flexWrap: 'wrap'
492
- },
493
- children: positions.map(({ key, label, icon })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
494
- gap: 6,
495
- align: "center",
496
- children: [
497
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
498
- gap: 4,
499
- align: "center",
500
- children: [
501
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIcon, {
502
- name: icon,
503
- size: "14px"
504
- }),
505
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
506
- variant: apollo_core_namespaceObject.FontVariantToken.fontSizeXs,
507
- children: label
508
- })
509
- ]
510
- }),
511
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.FormControl, {
512
- size: "small",
513
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Select, {
514
- value: handleTypes[key],
515
- onChange: (e)=>setHandleTypes((prev)=>({
516
- ...prev,
517
- [key]: e.target.value
518
- })),
519
- children: [
520
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.MenuItem, {
521
- value: "input",
522
- children: "Input"
523
- }),
524
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.MenuItem, {
525
- value: "output",
526
- children: "Output"
527
- }),
528
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.MenuItem, {
529
- value: "artifact",
530
- children: "Artifact"
531
- })
532
- ]
533
- })
534
- }),
535
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
536
- gap: 2,
537
- align: "center",
538
- children: [
539
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIconButton, {
540
- onClick: ()=>updateHandleCount(key, -1),
541
- disabled: 0 === handleConfig[key].length,
542
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIcon, {
543
- name: "remove"
544
- })
545
- }),
546
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
547
- variant: apollo_core_namespaceObject.FontVariantToken.fontSizeMBold,
548
- style: {
549
- minWidth: 24,
550
- textAlign: 'center'
551
- },
552
- children: handleConfig[key].length
553
- }),
554
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIconButton, {
555
- onClick: ()=>updateHandleCount(key, 1),
556
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIcon, {
557
- name: "add"
558
- })
559
- })
560
- ]
561
- })
562
- ]
563
- }, key))
564
- })
565
- ]
566
- }),
567
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.FormControlLabel, {
568
- control: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Checkbox, {
569
- checked: showButtons,
570
- onChange: (e)=>setShowButtons(e.target.checked)
571
- }),
572
- label: "Show + buttons on outputs"
573
- }),
574
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApButton, {
575
- size: "small",
576
- variant: "secondary",
577
- label: "Reset",
578
- onClick: resetConfig
579
- })
580
- ]
581
- })
582
- })
583
- });
584
- }
585
- function LogicFlowStory() {
586
- const logicNodes = (0, external_react_namespaceObject.useMemo)(()=>[
587
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
588
- id: 'if-node',
589
- type: 'uipath.control-flow.decision',
590
- position: {
591
- x: 300,
592
- y: 200
593
- },
594
- display: {
595
- label: 'If',
596
- subLabel: 'Decision'
597
- },
598
- handleConfigurations: [
599
- {
600
- position: react_cjs_namespaceObject.Position.Left,
601
- handles: [
602
- {
603
- id: 'input',
604
- type: 'target',
605
- handleType: 'input'
606
- }
607
- ]
608
- },
609
- {
610
- position: react_cjs_namespaceObject.Position.Right,
611
- handles: [
612
- {
613
- id: 'then',
614
- type: 'source',
615
- handleType: 'output',
616
- label: 'Then',
617
- showButton: true
618
- },
619
- {
620
- id: 'else',
621
- type: 'source',
622
- handleType: 'output',
623
- label: 'Else',
624
- showButton: true
625
- }
626
- ]
627
- }
628
- ]
629
- }),
630
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
631
- id: 'switch-node',
632
- type: 'uipath.control-flow.switch',
633
- position: {
634
- x: 300,
635
- y: 650
636
- },
637
- display: {
638
- label: 'Switch',
639
- subLabel: 'Multi-way'
640
- },
641
- handleConfigurations: [
642
- {
643
- position: react_cjs_namespaceObject.Position.Left,
644
- handles: [
645
- {
646
- id: 'input',
647
- type: 'target',
648
- handleType: 'input'
649
- }
650
- ]
651
- },
652
- {
653
- position: react_cjs_namespaceObject.Position.Right,
654
- handles: [
655
- {
656
- id: 'default',
657
- type: 'source',
658
- handleType: 'output',
659
- label: 'Default',
660
- showButton: true
661
- },
662
- {
663
- id: 'case-0',
664
- type: 'source',
665
- handleType: 'output',
666
- label: '0',
667
- showButton: true
668
- },
669
- {
670
- id: 'case-1',
671
- type: 'source',
672
- handleType: 'output',
673
- label: '1',
674
- showButton: true
675
- }
676
- ]
677
- }
678
- ]
679
- }),
680
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
681
- id: 'condition-input',
682
- type: 'uipath.blank-node',
683
- position: {
684
- x: 50,
685
- y: 200
686
- },
687
- display: {
688
- label: 'Condition',
689
- subLabel: 'Boolean'
690
- },
691
- handleConfigurations: [
692
- {
693
- position: react_cjs_namespaceObject.Position.Right,
694
- handles: [
695
- {
696
- id: 'output',
697
- type: 'source',
698
- handleType: 'output'
699
- }
700
- ]
701
- }
702
- ]
703
- }),
704
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
705
- id: 'value-input',
706
- type: 'uipath.blank-node',
707
- position: {
708
- x: 50,
709
- y: 650
710
- },
711
- display: {
712
- label: 'Value',
713
- subLabel: 'Integer'
714
- },
715
- handleConfigurations: [
716
- {
717
- position: react_cjs_namespaceObject.Position.Right,
718
- handles: [
719
- {
720
- id: 'output',
721
- type: 'source',
722
- handleType: 'output'
723
- }
724
- ]
725
- }
726
- ]
727
- }),
728
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
729
- id: 'then-action',
730
- type: 'uipath.blank-node',
731
- position: {
732
- x: 600,
733
- y: 100
734
- },
735
- display: {
736
- label: 'Then Action',
737
- subLabel: 'Execute if true',
738
- color: 'green'
739
- },
740
- handleConfigurations: [
741
- {
742
- position: react_cjs_namespaceObject.Position.Left,
743
- handles: [
744
- {
745
- id: 'input',
746
- type: 'target',
747
- handleType: 'input'
748
- }
749
- ]
750
- }
751
- ]
752
- }),
753
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
754
- id: 'else-action',
755
- type: 'uipath.blank-node',
756
- position: {
757
- x: 600,
758
- y: 300
759
- },
760
- display: {
761
- label: 'Else Action',
762
- subLabel: 'Execute if false',
763
- color: 'red'
764
- },
765
- handleConfigurations: [
766
- {
767
- position: react_cjs_namespaceObject.Position.Left,
768
- handles: [
769
- {
770
- id: 'input',
771
- type: 'target',
772
- handleType: 'input'
773
- }
774
- ]
775
- }
776
- ]
777
- }),
778
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
779
- id: 'default-action',
780
- type: 'uipath.blank-node',
781
- position: {
782
- x: 600,
783
- y: 500
784
- },
785
- display: {
786
- label: 'Default Case',
787
- subLabel: 'No match'
788
- },
789
- handleConfigurations: [
790
- {
791
- position: react_cjs_namespaceObject.Position.Left,
792
- handles: [
793
- {
794
- id: 'input',
795
- type: 'target',
796
- handleType: 'input'
797
- }
798
- ]
799
- }
800
- ]
801
- }),
802
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
803
- id: 'case-0-action',
804
- type: 'uipath.blank-node',
805
- position: {
806
- x: 600,
807
- y: 700
808
- },
809
- display: {
810
- label: 'Case 0',
811
- subLabel: 'Value = 0'
812
- },
813
- handleConfigurations: [
814
- {
815
- position: react_cjs_namespaceObject.Position.Left,
816
- handles: [
817
- {
818
- id: 'input',
819
- type: 'target',
820
- handleType: 'input'
821
- }
822
- ]
823
- }
824
- ]
825
- }),
826
- (0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
827
- id: 'case-1-action',
828
- type: 'uipath.blank-node',
829
- position: {
830
- x: 600,
831
- y: 900
832
- },
833
- display: {
834
- label: 'Case 1',
835
- subLabel: 'Value = 1'
836
- },
837
- handleConfigurations: [
838
- {
839
- position: react_cjs_namespaceObject.Position.Left,
840
- handles: [
841
- {
842
- id: 'input',
843
- type: 'target',
844
- handleType: 'input'
845
- }
846
- ]
847
- }
848
- ]
849
- })
850
- ], []);
851
- const logicEdges = (0, external_react_namespaceObject.useMemo)(()=>[
852
- {
853
- id: 'condition-to-if',
854
- source: 'condition-input',
855
- sourceHandle: 'output',
856
- target: 'if-node',
857
- targetHandle: 'input',
858
- animated: true
859
- },
860
- {
861
- id: 'if-to-then',
862
- source: 'if-node',
863
- sourceHandle: 'then',
864
- target: 'then-action',
865
- targetHandle: 'input',
866
- style: {
867
- stroke: 'green'
868
- }
869
- },
870
- {
871
- id: 'if-to-else',
872
- source: 'if-node',
873
- sourceHandle: 'else',
874
- target: 'else-action',
875
- targetHandle: 'input',
876
- style: {
877
- stroke: 'orange'
878
- }
879
- },
880
- {
881
- id: 'value-to-switch',
882
- source: 'value-input',
883
- sourceHandle: 'output',
884
- target: 'switch-node',
885
- targetHandle: 'input',
886
- animated: true
887
- },
888
- {
889
- id: 'switch-to-default',
890
- source: 'switch-node',
891
- sourceHandle: 'default',
892
- target: 'default-action',
893
- targetHandle: 'input'
894
- },
895
- {
896
- id: 'switch-to-0',
897
- source: 'switch-node',
898
- sourceHandle: 'case-0',
899
- target: 'case-0-action',
900
- targetHandle: 'input',
901
- style: {
902
- stroke: 'blue'
903
- }
904
- },
905
- {
906
- id: 'switch-to-1',
907
- source: 'switch-node',
908
- sourceHandle: 'case-1',
909
- target: 'case-1-action',
910
- targetHandle: 'input',
911
- style: {
912
- stroke: 'purple'
913
- }
914
- }
915
- ], []);
916
- const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
917
- initialNodes: logicNodes,
918
- initialEdges: logicEdges
919
- });
920
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(BaseCanvas_cjs_namespaceObject.BaseCanvas, {
921
- ...canvasProps,
922
- mode: "design",
923
- children: [
924
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
925
- title: "Logic Flow Examples",
926
- description: "IF and SWITCH nodes with ButtonHandles"
927
- }),
928
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
929
- position: "bottom-right",
930
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
931
- translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
932
- })
933
- })
934
- ]
935
- });
936
- }
937
- const Default = {
938
- name: 'Default',
939
- args: {
940
- handles: [],
941
- position: react_cjs_namespaceObject.Position.Top
942
- },
943
- render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DefaultStory, {})
944
- };
945
- const HandleConfiguration = {
946
- name: 'Handle configuration',
947
- args: {
948
- handles: [],
949
- position: react_cjs_namespaceObject.Position.Top
950
- },
951
- render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HandleConfigurationStory, {})
952
- };
953
- const LogicFlow = {
954
- name: 'Logic flow',
955
- render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(LogicFlowStory, {})
956
- };
957
- exports.Default = __webpack_exports__.Default;
958
- exports.HandleConfiguration = __webpack_exports__.HandleConfiguration;
959
- exports.LogicFlow = __webpack_exports__.LogicFlow;
960
- exports["default"] = __webpack_exports__["default"];
961
- for(var __rspack_i in __webpack_exports__)if (-1 === [
962
- "Default",
963
- "HandleConfiguration",
964
- "LogicFlow",
965
- "default"
966
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
967
- Object.defineProperty(exports, '__esModule', {
968
- value: true
969
- });