@uipath/apollo-react 3.53.0 → 3.54.0-pr354.029fc6a

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 (46) hide show
  1. package/dist/canvas/components/AddNodePanel/AddNodePanel.cjs +21 -8
  2. package/dist/canvas/components/AddNodePanel/AddNodePanel.d.ts.map +1 -1
  3. package/dist/canvas/components/AddNodePanel/AddNodePanel.js +11 -8
  4. package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +4 -52
  5. package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +1 -1
  6. package/dist/canvas/components/BaseNode/BaseNode.styles.js +2 -50
  7. package/dist/canvas/components/GroupNode/GroupNode.cjs +147 -75
  8. package/dist/canvas/components/GroupNode/GroupNode.d.ts.map +1 -1
  9. package/dist/canvas/components/GroupNode/GroupNode.js +147 -75
  10. package/dist/canvas/components/GroupNode/GroupNode.stories.cjs +610 -13
  11. package/dist/canvas/components/GroupNode/GroupNode.stories.d.ts +5 -0
  12. package/dist/canvas/components/GroupNode/GroupNode.stories.d.ts.map +1 -1
  13. package/dist/canvas/components/GroupNode/GroupNode.stories.js +589 -7
  14. package/dist/canvas/components/GroupNode/GroupNode.styles.cjs +6 -2
  15. package/dist/canvas/components/GroupNode/GroupNode.styles.d.ts +1 -0
  16. package/dist/canvas/components/GroupNode/GroupNode.styles.d.ts.map +1 -1
  17. package/dist/canvas/components/GroupNode/GroupNode.styles.js +6 -2
  18. package/dist/canvas/components/GroupNode/GroupNode.types.d.ts +1 -0
  19. package/dist/canvas/components/GroupNode/GroupNode.types.d.ts.map +1 -1
  20. package/dist/canvas/components/GroupNode/GroupNodeConfigContext.cjs +45 -0
  21. package/dist/canvas/components/GroupNode/GroupNodeConfigContext.d.ts +11 -0
  22. package/dist/canvas/components/GroupNode/GroupNodeConfigContext.d.ts.map +1 -0
  23. package/dist/canvas/components/GroupNode/GroupNodeConfigContext.js +8 -0
  24. package/dist/canvas/components/GroupNode/index.cjs +9 -2
  25. package/dist/canvas/components/GroupNode/index.d.ts +2 -0
  26. package/dist/canvas/components/GroupNode/index.d.ts.map +1 -1
  27. package/dist/canvas/components/GroupNode/index.js +2 -1
  28. package/dist/canvas/components/Toolbox/ListView.cjs +45 -34
  29. package/dist/canvas/components/Toolbox/ListView.d.ts +7 -2
  30. package/dist/canvas/components/Toolbox/ListView.d.ts.map +1 -1
  31. package/dist/canvas/components/Toolbox/ListView.js +41 -33
  32. package/dist/canvas/components/Toolbox/ListView.styles.cjs +7 -1
  33. package/dist/canvas/components/Toolbox/ListView.styles.d.ts.map +1 -1
  34. package/dist/canvas/components/Toolbox/ListView.styles.js +7 -1
  35. package/dist/canvas/components/Toolbox/SearchBox.cjs +8 -4
  36. package/dist/canvas/components/Toolbox/SearchBox.d.ts +2 -0
  37. package/dist/canvas/components/Toolbox/SearchBox.d.ts.map +1 -1
  38. package/dist/canvas/components/Toolbox/SearchBox.js +8 -4
  39. package/dist/canvas/components/Toolbox/Toolbox.cjs +140 -2
  40. package/dist/canvas/components/Toolbox/Toolbox.d.ts.map +1 -1
  41. package/dist/canvas/components/Toolbox/Toolbox.js +141 -3
  42. package/dist/canvas/styles/execution-status.cjs +88 -0
  43. package/dist/canvas/styles/execution-status.d.ts +8 -0
  44. package/dist/canvas/styles/execution-status.d.ts.map +1 -0
  45. package/dist/canvas/styles/execution-status.js +51 -0
  46. package/package.json +2 -2
@@ -26,30 +26,39 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  EmptyGroup: ()=>EmptyGroup,
28
28
  default: ()=>GroupNode_stories,
29
- Default: ()=>Default
29
+ WithHeaderActions: ()=>WithHeaderActions,
30
+ MinimalWithExecutionStatus: ()=>MinimalWithExecutionStatus,
31
+ WithExecutionStatus: ()=>WithExecutionStatus,
32
+ WithoutCollapse: ()=>WithoutCollapse,
33
+ Default: ()=>Default,
34
+ Minimal: ()=>Minimal
30
35
  });
31
36
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
37
  const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
38
+ const index_cjs_namespaceObject = require("../../../material/components/index.cjs");
33
39
  const external_react_namespaceObject = require("react");
34
- const index_cjs_namespaceObject = require("../../storybook-utils/index.cjs");
40
+ const external_storybook_utils_index_cjs_namespaceObject = require("../../storybook-utils/index.cjs");
35
41
  const external_types_cjs_namespaceObject = require("../../types.cjs");
36
42
  const external_BaseCanvas_index_cjs_namespaceObject = require("../BaseCanvas/index.cjs");
37
43
  const external_BaseNode_index_cjs_namespaceObject = require("../BaseNode/index.cjs");
38
44
  const external_CanvasPositionControls_cjs_namespaceObject = require("../CanvasPositionControls.cjs");
45
+ const external_ExecutionStatusIcon_index_cjs_namespaceObject = require("../ExecutionStatusIcon/index.cjs");
39
46
  const external_GroupNode_cjs_namespaceObject = require("./GroupNode.cjs");
47
+ const external_GroupNodeConfigContext_cjs_namespaceObject = require("./GroupNodeConfigContext.cjs");
40
48
  const meta = {
41
49
  title: 'Canvas/GroupNode',
42
50
  parameters: {
43
51
  layout: 'fullscreen'
44
52
  },
45
53
  decorators: [
46
- (0, index_cjs_namespaceObject.withCanvasProviders)()
54
+ (0, external_storybook_utils_index_cjs_namespaceObject.withCanvasProviders)()
47
55
  ]
48
56
  };
49
57
  const GroupNode_stories = meta;
58
+ const CHILD_NODE_TYPE = 'uipath.timer-activity';
50
59
  const nodeTypes = {
51
60
  group: external_GroupNode_cjs_namespaceObject.GroupNode,
52
- base: external_BaseNode_index_cjs_namespaceObject.BaseNode
61
+ [CHILD_NODE_TYPE]: external_BaseNode_index_cjs_namespaceObject.BaseNode
53
62
  };
54
63
  function createGroupNode(id, title, iconName, position, size, backgroundColor) {
55
64
  return {
@@ -58,7 +67,9 @@ function createGroupNode(id, title, iconName, position, size, backgroundColor) {
58
67
  position,
59
68
  data: {
60
69
  title,
61
- iconName,
70
+ ...iconName && {
71
+ iconName
72
+ },
62
73
  backgroundColor
63
74
  },
64
75
  style: {
@@ -73,12 +84,11 @@ function createGroupNode(id, title, iconName, position, size, backgroundColor) {
73
84
  function createChildNode(id, label, position, parentId) {
74
85
  return {
75
86
  id,
76
- type: 'base',
87
+ type: CHILD_NODE_TYPE,
77
88
  position,
78
89
  data: {
79
90
  display: {
80
- label,
81
- shape: 'square'
91
+ label
82
92
  }
83
93
  },
84
94
  parentId,
@@ -106,7 +116,7 @@ function createDefaultNodes() {
106
116
  x: 370,
107
117
  y: 60
108
118
  }, 'group-1'),
109
- createGroupNode('group-2', 'Classification agent', 'magic_button', {
119
+ createGroupNode('group-2', 'Classification agent', void 0, {
110
120
  x: 750,
111
121
  y: 100
112
122
  }, {
@@ -168,7 +178,7 @@ function createDefaultEdges() {
168
178
  function DefaultStory() {
169
179
  const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>createDefaultNodes(), []);
170
180
  const initialEdges = (0, external_react_namespaceObject.useMemo)(()=>createDefaultEdges(), []);
171
- const { canvasProps } = (0, index_cjs_namespaceObject.useCanvasStory)({
181
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
172
182
  initialNodes,
173
183
  initialEdges
174
184
  });
@@ -177,7 +187,7 @@ function DefaultStory() {
177
187
  nodeTypes: nodeTypes,
178
188
  mode: "design",
179
189
  children: [
180
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.StoryInfoPanel, {
190
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
181
191
  title: "Group Nodes",
182
192
  description: "Drag groups to move all child nodes together"
183
193
  }),
@@ -203,7 +213,7 @@ function EmptyGroupStory() {
203
213
  height: 300
204
214
  })
205
215
  ], []);
206
- const { canvasProps } = (0, index_cjs_namespaceObject.useCanvasStory)({
216
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
207
217
  initialNodes
208
218
  });
209
219
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
@@ -211,7 +221,7 @@ function EmptyGroupStory() {
211
221
  nodeTypes: nodeTypes,
212
222
  mode: "design",
213
223
  children: [
214
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.StoryInfoPanel, {
224
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
215
225
  title: "Empty Group",
216
226
  description: "A group node with no children"
217
227
  }),
@@ -227,12 +237,599 @@ function EmptyGroupStory() {
227
237
  const EmptyGroup = {
228
238
  render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EmptyGroupStory, {})
229
239
  };
240
+ function GroupNodeWithActions(props) {
241
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNodeConfigContext_cjs_namespaceObject.GroupNodeConfigProvider, {
242
+ value: {
243
+ headerActions: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
244
+ style: {
245
+ fontSize: '10px',
246
+ padding: '2px 6px',
247
+ borderRadius: '4px',
248
+ backgroundColor: 'var(--uix-canvas-success-background)',
249
+ color: 'var(--uix-canvas-success-icon)',
250
+ whiteSpace: 'nowrap'
251
+ },
252
+ children: "Active"
253
+ })
254
+ },
255
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_cjs_namespaceObject.GroupNode, {
256
+ ...props
257
+ })
258
+ });
259
+ }
260
+ function WithHeaderActionsStory() {
261
+ const nodeTypesWithActions = (0, external_react_namespaceObject.useMemo)(()=>({
262
+ group: GroupNodeWithActions,
263
+ [CHILD_NODE_TYPE]: external_BaseNode_index_cjs_namespaceObject.BaseNode
264
+ }), []);
265
+ const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
266
+ createGroupNode('group-1', 'Agent Workflow', 'smart_toy', {
267
+ x: 50,
268
+ y: 100
269
+ }, {
270
+ width: 600,
271
+ height: 250
272
+ }),
273
+ createChildNode('node-1', 'Classifier', {
274
+ x: 30,
275
+ y: 60
276
+ }, 'group-1'),
277
+ createChildNode('node-2', 'Extractor', {
278
+ x: 200,
279
+ y: 60
280
+ }, 'group-1')
281
+ ], []);
282
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
283
+ initialNodes
284
+ });
285
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
286
+ ...canvasProps,
287
+ nodeTypes: nodeTypesWithActions,
288
+ mode: "design",
289
+ children: [
290
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
291
+ title: "With Header Actions",
292
+ description: "Group node with custom actions in the header via context"
293
+ }),
294
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
295
+ position: "bottom-right",
296
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
297
+ translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
298
+ })
299
+ })
300
+ ]
301
+ });
302
+ }
303
+ const WithHeaderActions = {
304
+ render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(WithHeaderActionsStory, {})
305
+ };
306
+ function GroupNodeWithStatus({ status, message }) {
307
+ return function(props) {
308
+ const tooltipContent = message || status;
309
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNodeConfigContext_cjs_namespaceObject.GroupNodeConfigProvider, {
310
+ value: {
311
+ executionStatus: status,
312
+ executionMessage: message,
313
+ headerActions: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApTooltip, {
314
+ content: tooltipContent,
315
+ placement: "top",
316
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
317
+ style: {
318
+ display: 'inline-flex',
319
+ alignItems: 'center',
320
+ justifyContent: 'center',
321
+ width: 24,
322
+ height: 24
323
+ },
324
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ExecutionStatusIcon_index_cjs_namespaceObject.ExecutionStatusIcon, {
325
+ status: status,
326
+ size: 16
327
+ })
328
+ })
329
+ })
330
+ },
331
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_cjs_namespaceObject.GroupNode, {
332
+ ...props
333
+ })
334
+ });
335
+ };
336
+ }
337
+ function WithExecutionStatusStory() {
338
+ const CompletedGroupNode = (0, external_react_namespaceObject.useMemo)(()=>GroupNodeWithStatus({
339
+ status: 'Completed'
340
+ }), []);
341
+ const InProgressGroupNode = (0, external_react_namespaceObject.useMemo)(()=>GroupNodeWithStatus({
342
+ status: 'InProgress'
343
+ }), []);
344
+ const FailedGroupNode = (0, external_react_namespaceObject.useMemo)(()=>GroupNodeWithStatus({
345
+ status: 'Failed',
346
+ message: 'SMTP connection refused: unable to reach mail server at port 587'
347
+ }), []);
348
+ const PausedGroupNode = (0, external_react_namespaceObject.useMemo)(()=>GroupNodeWithStatus({
349
+ status: 'Paused',
350
+ message: 'Waiting for manual approval from admin'
351
+ }), []);
352
+ const nodeTypesMap = (0, external_react_namespaceObject.useMemo)(()=>({
353
+ 'group-completed': CompletedGroupNode,
354
+ 'group-in-progress': InProgressGroupNode,
355
+ 'group-failed': FailedGroupNode,
356
+ 'group-paused': PausedGroupNode,
357
+ [CHILD_NODE_TYPE]: external_BaseNode_index_cjs_namespaceObject.BaseNode
358
+ }), [
359
+ CompletedGroupNode,
360
+ InProgressGroupNode,
361
+ FailedGroupNode,
362
+ PausedGroupNode
363
+ ]);
364
+ const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
365
+ {
366
+ ...createGroupNode('group-completed', 'Data Pipeline', 'account_tree', {
367
+ x: 50,
368
+ y: 50
369
+ }, {
370
+ width: 500,
371
+ height: 220
372
+ }),
373
+ type: 'group-completed'
374
+ },
375
+ createChildNode('n-c-1', 'Validate', {
376
+ x: 30,
377
+ y: 60
378
+ }, 'group-completed'),
379
+ createChildNode('n-c-2', 'Transform', {
380
+ x: 200,
381
+ y: 60
382
+ }, 'group-completed'),
383
+ createChildNode('n-c-3', 'Store', {
384
+ x: 370,
385
+ y: 60
386
+ }, 'group-completed'),
387
+ {
388
+ ...createGroupNode('group-in-progress', 'ML Training', 'model_training', {
389
+ x: 620,
390
+ y: 50
391
+ }, {
392
+ width: 400,
393
+ height: 220
394
+ }),
395
+ type: 'group-in-progress'
396
+ },
397
+ createChildNode('n-ip-1', 'Preprocess', {
398
+ x: 30,
399
+ y: 60
400
+ }, 'group-in-progress'),
401
+ createChildNode('n-ip-2', 'Train', {
402
+ x: 200,
403
+ y: 60
404
+ }, 'group-in-progress'),
405
+ {
406
+ ...createGroupNode('group-failed', 'Email Sender', 'mail', {
407
+ x: 50,
408
+ y: 340
409
+ }, {
410
+ width: 400,
411
+ height: 220
412
+ }),
413
+ type: 'group-failed'
414
+ },
415
+ createChildNode('n-f-1', 'Template', {
416
+ x: 30,
417
+ y: 60
418
+ }, 'group-failed'),
419
+ createChildNode('n-f-2', 'Send', {
420
+ x: 200,
421
+ y: 60
422
+ }, 'group-failed'),
423
+ {
424
+ ...createGroupNode('group-paused', 'Approval Flow', 'approval', {
425
+ x: 520,
426
+ y: 340
427
+ }, {
428
+ width: 500,
429
+ height: 220
430
+ }),
431
+ type: 'group-paused'
432
+ },
433
+ createChildNode('n-p-1', 'Request', {
434
+ x: 30,
435
+ y: 60
436
+ }, 'group-paused'),
437
+ createChildNode('n-p-2', 'Review', {
438
+ x: 200,
439
+ y: 60
440
+ }, 'group-paused'),
441
+ createChildNode('n-p-3', 'Approve', {
442
+ x: 370,
443
+ y: 60
444
+ }, 'group-paused')
445
+ ], []);
446
+ const initialEdges = (0, external_react_namespaceObject.useMemo)(()=>[
447
+ {
448
+ id: 'e-c-1-2',
449
+ source: 'n-c-1',
450
+ target: 'n-c-2',
451
+ type: 'smoothstep'
452
+ },
453
+ {
454
+ id: 'e-c-2-3',
455
+ source: 'n-c-2',
456
+ target: 'n-c-3',
457
+ type: 'smoothstep'
458
+ },
459
+ {
460
+ id: 'e-ip-1-2',
461
+ source: 'n-ip-1',
462
+ target: 'n-ip-2',
463
+ type: 'smoothstep'
464
+ },
465
+ {
466
+ id: 'e-f-1-2',
467
+ source: 'n-f-1',
468
+ target: 'n-f-2',
469
+ type: 'smoothstep'
470
+ },
471
+ {
472
+ id: 'e-p-1-2',
473
+ source: 'n-p-1',
474
+ target: 'n-p-2',
475
+ type: 'smoothstep'
476
+ },
477
+ {
478
+ id: 'e-p-2-3',
479
+ source: 'n-p-2',
480
+ target: 'n-p-3',
481
+ type: 'smoothstep'
482
+ }
483
+ ], []);
484
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
485
+ initialNodes,
486
+ initialEdges
487
+ });
488
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
489
+ ...canvasProps,
490
+ nodeTypes: nodeTypesMap,
491
+ mode: "design",
492
+ children: [
493
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
494
+ title: "With Execution Status",
495
+ description: "Group nodes showing different execution statuses (Completed, In Progress, Failed, Paused)"
496
+ }),
497
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
498
+ position: "bottom-right",
499
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
500
+ translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
501
+ })
502
+ })
503
+ ]
504
+ });
505
+ }
506
+ const WithExecutionStatus = {
507
+ render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(WithExecutionStatusStory, {})
508
+ };
509
+ function GroupNodeNoCollapse(props) {
510
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNodeConfigContext_cjs_namespaceObject.GroupNodeConfigProvider, {
511
+ value: {
512
+ hideCollapseButton: true
513
+ },
514
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_cjs_namespaceObject.GroupNode, {
515
+ ...props
516
+ })
517
+ });
518
+ }
519
+ function WithoutCollapseStory() {
520
+ const nodeTypesNoCollapse = (0, external_react_namespaceObject.useMemo)(()=>({
521
+ group: GroupNodeNoCollapse,
522
+ [CHILD_NODE_TYPE]: external_BaseNode_index_cjs_namespaceObject.BaseNode
523
+ }), []);
524
+ const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
525
+ createGroupNode('group-1', 'Static Group', 'lock', {
526
+ x: 50,
527
+ y: 100
528
+ }, {
529
+ width: 600,
530
+ height: 250
531
+ }),
532
+ createChildNode('node-1', 'Step A', {
533
+ x: 30,
534
+ y: 60
535
+ }, 'group-1'),
536
+ createChildNode('node-2', 'Step B', {
537
+ x: 200,
538
+ y: 60
539
+ }, 'group-1'),
540
+ createChildNode('node-3', 'Step C', {
541
+ x: 370,
542
+ y: 60
543
+ }, 'group-1')
544
+ ], []);
545
+ const initialEdges = (0, external_react_namespaceObject.useMemo)(()=>[
546
+ {
547
+ id: 'e-1-2',
548
+ source: 'node-1',
549
+ target: 'node-2',
550
+ type: 'smoothstep'
551
+ },
552
+ {
553
+ id: 'e-2-3',
554
+ source: 'node-2',
555
+ target: 'node-3',
556
+ type: 'smoothstep'
557
+ }
558
+ ], []);
559
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
560
+ initialNodes,
561
+ initialEdges
562
+ });
563
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
564
+ ...canvasProps,
565
+ nodeTypes: nodeTypesNoCollapse,
566
+ mode: "design",
567
+ children: [
568
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
569
+ title: "Without Collapse",
570
+ description: "Group node with the collapse/expand button hidden via hideCollapseButton"
571
+ }),
572
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
573
+ position: "bottom-right",
574
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
575
+ translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
576
+ })
577
+ })
578
+ ]
579
+ });
580
+ }
581
+ const WithoutCollapse = {
582
+ render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(WithoutCollapseStory, {})
583
+ };
584
+ function GroupNodeMinimalWithStatus({ status, message }) {
585
+ return function(props) {
586
+ const tooltipContent = message || status;
587
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNodeConfigContext_cjs_namespaceObject.GroupNodeConfigProvider, {
588
+ value: {
589
+ executionStatus: status,
590
+ executionMessage: message,
591
+ hideCollapseButton: true,
592
+ hideMoreOptions: true,
593
+ headerActions: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApTooltip, {
594
+ content: tooltipContent,
595
+ placement: "top",
596
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
597
+ style: {
598
+ display: 'inline-flex',
599
+ alignItems: 'center',
600
+ justifyContent: 'center',
601
+ width: 24,
602
+ height: 24
603
+ },
604
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ExecutionStatusIcon_index_cjs_namespaceObject.ExecutionStatusIcon, {
605
+ status: status,
606
+ size: 16
607
+ })
608
+ })
609
+ })
610
+ },
611
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_cjs_namespaceObject.GroupNode, {
612
+ ...props
613
+ })
614
+ });
615
+ };
616
+ }
617
+ function MinimalWithExecutionStatusStory() {
618
+ const CompletedNode = (0, external_react_namespaceObject.useMemo)(()=>GroupNodeMinimalWithStatus({
619
+ status: 'Completed'
620
+ }), []);
621
+ const FailedNode = (0, external_react_namespaceObject.useMemo)(()=>GroupNodeMinimalWithStatus({
622
+ status: 'Failed',
623
+ message: 'Timeout after 30s'
624
+ }), []);
625
+ const nodeTypesMap = (0, external_react_namespaceObject.useMemo)(()=>({
626
+ 'group-completed': CompletedNode,
627
+ 'group-failed': FailedNode,
628
+ [CHILD_NODE_TYPE]: external_BaseNode_index_cjs_namespaceObject.BaseNode
629
+ }), [
630
+ CompletedNode,
631
+ FailedNode
632
+ ]);
633
+ const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
634
+ {
635
+ ...createGroupNode('group-completed', 'ETL Pipeline', 'account_tree', {
636
+ x: 50,
637
+ y: 100
638
+ }, {
639
+ width: 500,
640
+ height: 220
641
+ }),
642
+ type: 'group-completed'
643
+ },
644
+ createChildNode('n-c-1', 'Extract', {
645
+ x: 30,
646
+ y: 60
647
+ }, 'group-completed'),
648
+ createChildNode('n-c-2', 'Load', {
649
+ x: 200,
650
+ y: 60
651
+ }, 'group-completed'),
652
+ createChildNode('n-c-3', 'Transform', {
653
+ x: 370,
654
+ y: 60
655
+ }, 'group-completed'),
656
+ {
657
+ ...createGroupNode('group-failed', 'Notification Service', 'mail', {
658
+ x: 620,
659
+ y: 100
660
+ }, {
661
+ width: 400,
662
+ height: 220
663
+ }),
664
+ type: 'group-failed'
665
+ },
666
+ createChildNode('n-f-1', 'Template', {
667
+ x: 30,
668
+ y: 60
669
+ }, 'group-failed'),
670
+ createChildNode('n-f-2', 'Send', {
671
+ x: 200,
672
+ y: 60
673
+ }, 'group-failed')
674
+ ], []);
675
+ const initialEdges = (0, external_react_namespaceObject.useMemo)(()=>[
676
+ {
677
+ id: 'e-c-1-2',
678
+ source: 'n-c-1',
679
+ target: 'n-c-2',
680
+ type: 'smoothstep'
681
+ },
682
+ {
683
+ id: 'e-c-2-3',
684
+ source: 'n-c-2',
685
+ target: 'n-c-3',
686
+ type: 'smoothstep'
687
+ },
688
+ {
689
+ id: 'e-f-1-2',
690
+ source: 'n-f-1',
691
+ target: 'n-f-2',
692
+ type: 'smoothstep'
693
+ }
694
+ ], []);
695
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
696
+ initialNodes,
697
+ initialEdges
698
+ });
699
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
700
+ ...canvasProps,
701
+ nodeTypes: nodeTypesMap,
702
+ mode: "design",
703
+ children: [
704
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
705
+ title: "Minimal with Execution Status",
706
+ description: "Execution status borders and icons, no collapse button, no 3-dot menu"
707
+ }),
708
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
709
+ position: "bottom-right",
710
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
711
+ translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
712
+ })
713
+ })
714
+ ]
715
+ });
716
+ }
717
+ const MinimalWithExecutionStatus = {
718
+ render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(MinimalWithExecutionStatusStory, {})
719
+ };
720
+ function GroupNodeMinimal(props) {
721
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNodeConfigContext_cjs_namespaceObject.GroupNodeConfigProvider, {
722
+ value: {
723
+ hideCollapseButton: true,
724
+ hideMoreOptions: true
725
+ },
726
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_cjs_namespaceObject.GroupNode, {
727
+ ...props
728
+ })
729
+ });
730
+ }
731
+ function MinimalStory() {
732
+ const nodeTypesMinimal = (0, external_react_namespaceObject.useMemo)(()=>({
733
+ group: GroupNodeMinimal,
734
+ [CHILD_NODE_TYPE]: external_BaseNode_index_cjs_namespaceObject.BaseNode
735
+ }), []);
736
+ const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
737
+ createGroupNode('group-1', 'Simple Group', 'folder', {
738
+ x: 50,
739
+ y: 100
740
+ }, {
741
+ width: 600,
742
+ height: 250
743
+ }),
744
+ createChildNode('node-1', 'Step A', {
745
+ x: 30,
746
+ y: 60
747
+ }, 'group-1'),
748
+ createChildNode('node-2', 'Step B', {
749
+ x: 200,
750
+ y: 60
751
+ }, 'group-1'),
752
+ createChildNode('node-3', 'Step C', {
753
+ x: 370,
754
+ y: 60
755
+ }, 'group-1'),
756
+ createGroupNode('group-2', 'No Icon Group', void 0, {
757
+ x: 750,
758
+ y: 100
759
+ }, {
760
+ width: 400,
761
+ height: 250
762
+ }),
763
+ createChildNode('node-4', 'Task 1', {
764
+ x: 30,
765
+ y: 60
766
+ }, 'group-2'),
767
+ createChildNode('node-5', 'Task 2', {
768
+ x: 200,
769
+ y: 60
770
+ }, 'group-2')
771
+ ], []);
772
+ const initialEdges = (0, external_react_namespaceObject.useMemo)(()=>[
773
+ {
774
+ id: 'e-1-2',
775
+ source: 'node-1',
776
+ target: 'node-2',
777
+ type: 'smoothstep'
778
+ },
779
+ {
780
+ id: 'e-2-3',
781
+ source: 'node-2',
782
+ target: 'node-3',
783
+ type: 'smoothstep'
784
+ },
785
+ {
786
+ id: 'e-4-5',
787
+ source: 'node-4',
788
+ target: 'node-5',
789
+ type: 'smoothstep'
790
+ }
791
+ ], []);
792
+ const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
793
+ initialNodes,
794
+ initialEdges
795
+ });
796
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
797
+ ...canvasProps,
798
+ nodeTypes: nodeTypesMinimal,
799
+ mode: "design",
800
+ children: [
801
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
802
+ title: "Minimal",
803
+ description: "Group node with no collapse, no 3-dot menu, and no execution status — title only"
804
+ }),
805
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
806
+ position: "bottom-right",
807
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
808
+ translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
809
+ })
810
+ })
811
+ ]
812
+ });
813
+ }
814
+ const Minimal = {
815
+ render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(MinimalStory, {})
816
+ };
230
817
  exports.Default = __webpack_exports__.Default;
231
818
  exports.EmptyGroup = __webpack_exports__.EmptyGroup;
819
+ exports.Minimal = __webpack_exports__.Minimal;
820
+ exports.MinimalWithExecutionStatus = __webpack_exports__.MinimalWithExecutionStatus;
821
+ exports.WithExecutionStatus = __webpack_exports__.WithExecutionStatus;
822
+ exports.WithHeaderActions = __webpack_exports__.WithHeaderActions;
823
+ exports.WithoutCollapse = __webpack_exports__.WithoutCollapse;
232
824
  exports["default"] = __webpack_exports__["default"];
233
825
  for(var __rspack_i in __webpack_exports__)if (-1 === [
234
826
  "Default",
235
827
  "EmptyGroup",
828
+ "Minimal",
829
+ "MinimalWithExecutionStatus",
830
+ "WithExecutionStatus",
831
+ "WithHeaderActions",
832
+ "WithoutCollapse",
236
833
  "default"
237
834
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
238
835
  Object.defineProperty(exports, '__esModule', {