@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,509 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Panel, Position } from "../../xyflow/react.js";
3
- import { useMemo } from "react";
4
- import { useCanvasStory, withCanvasProviders } from "../../storybook-utils/index.js";
5
- import { DefaultCanvasTranslations } from "../../types.js";
6
- import { BaseCanvas } from "../BaseCanvas/index.js";
7
- import { CanvasPositionControls } from "../CanvasPositionControls.js";
8
- import { StickyNoteNode } from "./StickyNoteNode.js";
9
- const meta = {
10
- title: 'Canvas/StickyNoteNode',
11
- parameters: {
12
- layout: 'fullscreen'
13
- },
14
- decorators: [
15
- withCanvasProviders()
16
- ]
17
- };
18
- const StickyNoteNode_stories = meta;
19
- const StickyNoteWithCallbacks = (props)=>{
20
- const handleContentChange = (content)=>{
21
- console.log('📝 Content changed:', {
22
- nodeId: props.id,
23
- content,
24
- timestamp: new Date().toISOString()
25
- });
26
- };
27
- const handleColorChange = (color)=>{
28
- console.log('🎨 Color changed:', {
29
- nodeId: props.id,
30
- color,
31
- timestamp: new Date().toISOString()
32
- });
33
- };
34
- const handleResize = (width, height)=>{
35
- console.log('📏 Resized:', {
36
- nodeId: props.id,
37
- width,
38
- height,
39
- timestamp: new Date().toISOString()
40
- });
41
- };
42
- return /*#__PURE__*/ jsx(StickyNoteNode, {
43
- ...props,
44
- onContentChange: handleContentChange,
45
- onColorChange: handleColorChange,
46
- onResize: handleResize
47
- });
48
- };
49
- const nodeTypes = {
50
- stickyNote: StickyNoteNode
51
- };
52
- const nodeTypesWithCallbacks = {
53
- stickyNote: StickyNoteWithCallbacks
54
- };
55
- function createStickyNote(id, color, content, position, size = {
56
- width: 250,
57
- height: 150
58
- }, zIndex) {
59
- return {
60
- id,
61
- type: 'stickyNote',
62
- position,
63
- data: {
64
- color,
65
- content
66
- },
67
- width: size.width,
68
- height: size.height,
69
- ...void 0 !== zIndex && {
70
- zIndex
71
- }
72
- };
73
- }
74
- function DefaultStory() {
75
- const initialNodes = useMemo(()=>[
76
- createStickyNote('sticky-yellow-note', 'yellow', '**Markdown Support!**\n\nDouble-click to edit with *markdown*\n- Drag to move\n- Resize from corners', {
77
- x: 50,
78
- y: 50
79
- }),
80
- createStickyNote('sticky-pink-note', 'pink', '## Important\n\n~~Strikethrough~~ and `inline code` work too!', {
81
- x: 350,
82
- y: 50
83
- }),
84
- createStickyNote('sticky-blue-note', 'blue', '**Lists:**\n\n1. First item\n2. Second item\n3. Third item', {
85
- x: 350,
86
- y: 250
87
- }),
88
- createStickyNote('sticky-green-note', 'green', 'Green note for positive feedback', {
89
- x: 50,
90
- y: 250
91
- }),
92
- createStickyNote('sticky-white-note', 'white', 'White note for general notes', {
93
- x: 50,
94
- y: 450
95
- }),
96
- createStickyNote('sticky-long-note', 'yellow', 'This is a longer sticky note with lots of content to demonstrate scrolling.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\nDouble-click to edit, then use mouse wheel to scroll through the content.', {
97
- x: 350,
98
- y: 450
99
- }, {
100
- width: 280,
101
- height: 200
102
- })
103
- ], []);
104
- const { canvasProps } = useCanvasStory({
105
- initialNodes,
106
- additionalNodeTypes: nodeTypes
107
- });
108
- return /*#__PURE__*/ jsx(BaseCanvas, {
109
- ...canvasProps,
110
- mode: "design",
111
- children: /*#__PURE__*/ jsx(Panel, {
112
- position: "bottom-right",
113
- children: /*#__PURE__*/ jsx(CanvasPositionControls, {
114
- translations: DefaultCanvasTranslations
115
- })
116
- })
117
- });
118
- }
119
- function createBaseNode(id, iconName, label, subLabel, position, handleConfigurations) {
120
- return {
121
- id,
122
- type: 'uipath.blank-node',
123
- position,
124
- data: {
125
- display: {
126
- icon: iconName,
127
- label,
128
- subLabel
129
- },
130
- handleConfigurations
131
- },
132
- zIndex: 0
133
- };
134
- }
135
- function createPipelineNodes() {
136
- return [
137
- createStickyNote('sticky-ingestion', 'blue', '## Data Ingestion\nCollect and validate incoming data', {
138
- x: 48,
139
- y: 48
140
- }, {
141
- width: 608,
142
- height: 512
143
- }, -10),
144
- createBaseNode('node-source', 'cloud-upload', 'Data Source', 'Input Stream', {
145
- x: 128,
146
- y: 224
147
- }, [
148
- {
149
- position: Position.Right,
150
- handles: [
151
- {
152
- id: 'output',
153
- type: 'source',
154
- handleType: 'output',
155
- label: 'Output'
156
- }
157
- ]
158
- }
159
- ]),
160
- createBaseNode('node-filter', 'filter', 'Filter', 'Validation Rules', {
161
- x: 416,
162
- y: 224
163
- }, [
164
- {
165
- position: Position.Left,
166
- handles: [
167
- {
168
- id: 'input',
169
- type: 'target',
170
- handleType: 'input',
171
- label: 'Input'
172
- }
173
- ]
174
- },
175
- {
176
- position: Position.Right,
177
- handles: [
178
- {
179
- id: 'transform',
180
- type: 'source',
181
- handleType: 'output',
182
- label: 'Transform'
183
- },
184
- {
185
- id: 'enrich',
186
- type: 'source',
187
- handleType: 'output',
188
- label: 'Enrich'
189
- }
190
- ]
191
- }
192
- ]),
193
- createStickyNote('sticky-processing', 'yellow', '## Data Processing\nTransform and combine data streams', {
194
- x: 720,
195
- y: 48
196
- }, {
197
- width: 800,
198
- height: 512
199
- }, -10),
200
- createBaseNode('node-transform', 'settings', 'Transform', 'Data Processing', {
201
- x: 800,
202
- y: 144
203
- }, [
204
- {
205
- position: Position.Left,
206
- handles: [
207
- {
208
- id: 'input',
209
- type: 'target',
210
- handleType: 'input',
211
- label: 'Input'
212
- }
213
- ]
214
- },
215
- {
216
- position: Position.Right,
217
- handles: [
218
- {
219
- id: 'output',
220
- type: 'source',
221
- handleType: 'output',
222
- label: 'Output'
223
- }
224
- ]
225
- }
226
- ]),
227
- createBaseNode('node-enrich', 'plus-circle', 'Enrich', 'Add Metadata', {
228
- x: 800,
229
- y: 304
230
- }, [
231
- {
232
- position: Position.Left,
233
- handles: [
234
- {
235
- id: 'input',
236
- type: 'target',
237
- handleType: 'input',
238
- label: 'Input'
239
- }
240
- ]
241
- },
242
- {
243
- position: Position.Right,
244
- handles: [
245
- {
246
- id: 'output',
247
- type: 'source',
248
- handleType: 'output',
249
- label: 'Output'
250
- }
251
- ]
252
- }
253
- ]),
254
- createBaseNode('node-merge', 'git-merge', 'Merge', 'Combine Streams', {
255
- x: 1216,
256
- y: 224
257
- }, [
258
- {
259
- position: Position.Left,
260
- handles: [
261
- {
262
- id: 'input1',
263
- type: 'target',
264
- handleType: 'input',
265
- label: 'Stream 1'
266
- },
267
- {
268
- id: 'input2',
269
- type: 'target',
270
- handleType: 'input',
271
- label: 'Stream 2'
272
- }
273
- ]
274
- },
275
- {
276
- position: Position.Right,
277
- handles: [
278
- {
279
- id: 'output',
280
- type: 'source',
281
- handleType: 'output',
282
- label: 'Merged'
283
- }
284
- ]
285
- }
286
- ]),
287
- createStickyNote('sticky-storage', 'green', '## Storage & Analytics\nPersist and analyze processed data', {
288
- x: 1584,
289
- y: 48
290
- }, {
291
- width: 800,
292
- height: 512
293
- }, -10),
294
- createBaseNode('node-storage', 'database', 'Storage', 'Database', {
295
- x: 1664,
296
- y: 144
297
- }, [
298
- {
299
- position: Position.Left,
300
- handles: [
301
- {
302
- id: 'input',
303
- type: 'target',
304
- handleType: 'input',
305
- label: 'Input'
306
- }
307
- ]
308
- },
309
- {
310
- position: Position.Right,
311
- handles: [
312
- {
313
- id: 'output',
314
- type: 'source',
315
- handleType: 'output',
316
- label: 'Logs'
317
- }
318
- ]
319
- }
320
- ]),
321
- createBaseNode('node-index', 'search', 'Index', 'Search Engine', {
322
- x: 1664,
323
- y: 304
324
- }, [
325
- {
326
- position: Position.Left,
327
- handles: [
328
- {
329
- id: 'input',
330
- type: 'target',
331
- handleType: 'input',
332
- label: 'Input'
333
- }
334
- ]
335
- },
336
- {
337
- position: Position.Right,
338
- handles: [
339
- {
340
- id: 'output',
341
- type: 'source',
342
- handleType: 'output',
343
- label: 'Events'
344
- }
345
- ]
346
- }
347
- ]),
348
- createBaseNode('node-monitor', 'bar-chart', 'Monitor', 'Analytics', {
349
- x: 2080,
350
- y: 224
351
- }, [
352
- {
353
- position: Position.Left,
354
- handles: [
355
- {
356
- id: 'logs',
357
- type: 'target',
358
- handleType: 'input',
359
- label: 'Logs'
360
- },
361
- {
362
- id: 'events',
363
- type: 'target',
364
- handleType: 'input',
365
- label: 'Events'
366
- }
367
- ]
368
- }
369
- ]),
370
- createStickyNote('sticky-annotation', 'pink', '**Data Pipeline Pattern**\n\nThis workflow demonstrates using sticky notes as visual containers to organize and document sections of a data processing pipeline. Each colored section groups related operations while nodes and edges remain fully interactive on top.', {
371
- x: 48,
372
- y: 608
373
- }, {
374
- width: 1024,
375
- height: 176
376
- }, -10)
377
- ];
378
- }
379
- function createPipelineEdges() {
380
- return [
381
- {
382
- id: 'e-source-filter',
383
- source: 'node-source',
384
- sourceHandle: 'output',
385
- target: 'node-filter',
386
- targetHandle: 'input',
387
- type: 'smoothstep'
388
- },
389
- {
390
- id: 'e-filter-transform',
391
- source: 'node-filter',
392
- sourceHandle: 'transform',
393
- target: 'node-transform',
394
- targetHandle: 'input',
395
- type: 'smoothstep'
396
- },
397
- {
398
- id: 'e-filter-enrich',
399
- source: 'node-filter',
400
- sourceHandle: 'enrich',
401
- target: 'node-enrich',
402
- targetHandle: 'input',
403
- type: 'smoothstep'
404
- },
405
- {
406
- id: 'e-transform-merge',
407
- source: 'node-transform',
408
- sourceHandle: 'output',
409
- target: 'node-merge',
410
- targetHandle: 'input1',
411
- type: 'smoothstep'
412
- },
413
- {
414
- id: 'e-enrich-merge',
415
- source: 'node-enrich',
416
- sourceHandle: 'output',
417
- target: 'node-merge',
418
- targetHandle: 'input2',
419
- type: 'smoothstep'
420
- },
421
- {
422
- id: 'e-merge-storage',
423
- source: 'node-merge',
424
- sourceHandle: 'output',
425
- target: 'node-storage',
426
- targetHandle: 'input',
427
- type: 'smoothstep'
428
- },
429
- {
430
- id: 'e-merge-index',
431
- source: 'node-merge',
432
- sourceHandle: 'output',
433
- target: 'node-index',
434
- targetHandle: 'input',
435
- type: 'smoothstep'
436
- },
437
- {
438
- id: 'e-storage-monitor',
439
- source: 'node-storage',
440
- sourceHandle: 'output',
441
- target: 'node-monitor',
442
- targetHandle: 'logs',
443
- type: 'smoothstep'
444
- },
445
- {
446
- id: 'e-index-monitor',
447
- source: 'node-index',
448
- sourceHandle: 'output',
449
- target: 'node-monitor',
450
- targetHandle: 'events',
451
- type: 'smoothstep'
452
- }
453
- ];
454
- }
455
- function WithBaseNodesStory() {
456
- const initialNodes = useMemo(()=>createPipelineNodes(), []);
457
- const initialEdges = useMemo(()=>createPipelineEdges(), []);
458
- const { canvasProps } = useCanvasStory({
459
- initialNodes,
460
- initialEdges,
461
- additionalNodeTypes: nodeTypes
462
- });
463
- return /*#__PURE__*/ jsx(BaseCanvas, {
464
- ...canvasProps,
465
- mode: "design",
466
- elevateNodesOnSelect: true,
467
- children: /*#__PURE__*/ jsx(Panel, {
468
- position: "bottom-right",
469
- children: /*#__PURE__*/ jsx(CanvasPositionControls, {
470
- translations: DefaultCanvasTranslations
471
- })
472
- })
473
- });
474
- }
475
- function WithCallbacksStory() {
476
- const initialNodes = useMemo(()=>[
477
- createStickyNote('sticky-test-1', 'yellow', '**Test Callbacks!**\n\n1. Double-click to edit content\n2. Click the color button to change color\n3. Drag corners to resize\n\nOpen the browser console to see logs! 🔍', {
478
- x: 480,
479
- y: 480
480
- }, {
481
- width: 320,
482
- height: 320
483
- })
484
- ], []);
485
- const { canvasProps } = useCanvasStory({
486
- initialNodes,
487
- additionalNodeTypes: nodeTypesWithCallbacks
488
- });
489
- return /*#__PURE__*/ jsx(BaseCanvas, {
490
- ...canvasProps,
491
- mode: "design",
492
- children: /*#__PURE__*/ jsx(Panel, {
493
- position: "bottom-right",
494
- children: /*#__PURE__*/ jsx(CanvasPositionControls, {
495
- translations: DefaultCanvasTranslations
496
- })
497
- })
498
- });
499
- }
500
- const Default = {
501
- render: ()=>/*#__PURE__*/ jsx(DefaultStory, {})
502
- };
503
- const WithBaseNodes = {
504
- render: ()=>/*#__PURE__*/ jsx(WithBaseNodesStory, {})
505
- };
506
- const WithCallbacks = {
507
- render: ()=>/*#__PURE__*/ jsx(WithCallbacksStory, {})
508
- };
509
- export { Default, WithBaseNodes, WithCallbacks, StickyNoteNode_stories as default };
@@ -1,109 +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: ()=>TaskIcon_stories,
28
- Default: ()=>Default
29
- });
30
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const index_cjs_namespaceObject = require("../../layouts/index.cjs");
32
- const external_TaskIcon_cjs_namespaceObject = require("./TaskIcon.cjs");
33
- const external_TaskIcon_types_cjs_namespaceObject = require("./TaskIcon.types.cjs");
34
- const TaskIcon_stories = {
35
- title: 'Canvas/TaskIcon',
36
- parameters: {
37
- layout: 'fullscreen'
38
- }
39
- };
40
- const SIZES = [
41
- 'sm',
42
- 'md',
43
- 'lg'
44
- ];
45
- const Default = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
46
- p: 40,
47
- gap: 24,
48
- minH: "100vh",
49
- style: {
50
- background: 'var(--uix-canvas-background)',
51
- color: 'var(--uix-canvas-foreground)'
52
- },
53
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
54
- gap: 36,
55
- children: [
56
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
57
- gap: 36,
58
- children: [
59
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
60
- w: 140
61
- }),
62
- SIZES.map((size)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
63
- w: 72,
64
- align: "center",
65
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
66
- style: {
67
- fontSize: '14px'
68
- },
69
- children: size
70
- })
71
- }, size))
72
- ]
73
- }),
74
- Object.values(external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues).map((type)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
75
- gap: 36,
76
- align: "center",
77
- children: [
78
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
79
- w: 140,
80
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
81
- style: {
82
- fontSize: '14px',
83
- fontWeight: 500
84
- },
85
- children: type
86
- })
87
- }),
88
- SIZES.map((size)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
89
- w: 72,
90
- align: "center",
91
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_TaskIcon_cjs_namespaceObject.TaskIcon, {
92
- type: type,
93
- size: size
94
- })
95
- }, size))
96
- ]
97
- }, type))
98
- ]
99
- })
100
- });
101
- exports.Default = __webpack_exports__.Default;
102
- exports["default"] = __webpack_exports__["default"];
103
- for(var __rspack_i in __webpack_exports__)if (-1 === [
104
- "Default",
105
- "default"
106
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
107
- Object.defineProperty(exports, '__esModule', {
108
- value: true
109
- });
@@ -1,10 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- declare const _default: {
3
- title: string;
4
- parameters: {
5
- layout: string;
6
- };
7
- };
8
- export default _default;
9
- export declare const Default: StoryFn;
10
- //# sourceMappingURL=TaskIcon.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskIcon.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;;;;;;AAMtD,wBAKiB;AAIjB,eAAO,MAAM,OAAO,EAAE,OAgCrB,CAAC"}
@@ -1,72 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Column, Row } from "../../layouts/index.js";
3
- import { TaskIcon } from "./TaskIcon.js";
4
- import { TaskItemTypeValues } from "./TaskIcon.types.js";
5
- const TaskIcon_stories = {
6
- title: 'Canvas/TaskIcon',
7
- parameters: {
8
- layout: 'fullscreen'
9
- }
10
- };
11
- const SIZES = [
12
- 'sm',
13
- 'md',
14
- 'lg'
15
- ];
16
- const Default = ()=>/*#__PURE__*/ jsx(Column, {
17
- p: 40,
18
- gap: 24,
19
- minH: "100vh",
20
- style: {
21
- background: 'var(--uix-canvas-background)',
22
- color: 'var(--uix-canvas-foreground)'
23
- },
24
- children: /*#__PURE__*/ jsxs(Column, {
25
- gap: 36,
26
- children: [
27
- /*#__PURE__*/ jsxs(Row, {
28
- gap: 36,
29
- children: [
30
- /*#__PURE__*/ jsx(Column, {
31
- w: 140
32
- }),
33
- SIZES.map((size)=>/*#__PURE__*/ jsx(Column, {
34
- w: 72,
35
- align: "center",
36
- children: /*#__PURE__*/ jsx("span", {
37
- style: {
38
- fontSize: '14px'
39
- },
40
- children: size
41
- })
42
- }, size))
43
- ]
44
- }),
45
- Object.values(TaskItemTypeValues).map((type)=>/*#__PURE__*/ jsxs(Row, {
46
- gap: 36,
47
- align: "center",
48
- children: [
49
- /*#__PURE__*/ jsx(Column, {
50
- w: 140,
51
- children: /*#__PURE__*/ jsx("span", {
52
- style: {
53
- fontSize: '14px',
54
- fontWeight: 500
55
- },
56
- children: type
57
- })
58
- }),
59
- SIZES.map((size)=>/*#__PURE__*/ jsx(Column, {
60
- w: 72,
61
- align: "center",
62
- children: /*#__PURE__*/ jsx(TaskIcon, {
63
- type: type,
64
- size: size
65
- })
66
- }, size))
67
- ]
68
- }, type))
69
- ]
70
- })
71
- });
72
- export { Default, TaskIcon_stories as default };