@uipath/apollo-react 4.38.0 → 4.39.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 (32) hide show
  1. package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts +2 -0
  2. package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts.map +1 -1
  3. package/dist/canvas/components/BaseNode/BaseNode.cjs +2 -0
  4. package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
  5. package/dist/canvas/components/BaseNode/BaseNode.js +2 -0
  6. package/dist/canvas/components/BaseNode/BaseNodeContainer.cjs +4 -3
  7. package/dist/canvas/components/BaseNode/BaseNodeContainer.d.ts +2 -1
  8. package/dist/canvas/components/BaseNode/BaseNodeContainer.d.ts.map +1 -1
  9. package/dist/canvas/components/BaseNode/BaseNodeContainer.js +4 -3
  10. package/dist/canvas/components/CaseFlow/case-flow.manifest.cjs +12 -3
  11. package/dist/canvas/components/CaseFlow/case-flow.manifest.d.ts +2 -0
  12. package/dist/canvas/components/CaseFlow/case-flow.manifest.d.ts.map +1 -1
  13. package/dist/canvas/components/CaseFlow/case-flow.manifest.js +12 -3
  14. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +33 -5
  15. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.d.ts.map +1 -1
  16. package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +33 -5
  17. package/dist/canvas/schema/node-definition/node-manifest.cjs +3 -1
  18. package/dist/canvas/schema/node-definition/node-manifest.d.ts +3 -0
  19. package/dist/canvas/schema/node-definition/node-manifest.d.ts.map +1 -1
  20. package/dist/canvas/schema/node-definition/node-manifest.js +3 -1
  21. package/dist/canvas/schema/node-instance/base.cjs +2 -1
  22. package/dist/canvas/schema/node-instance/base.d.ts +1 -0
  23. package/dist/canvas/schema/node-instance/base.d.ts.map +1 -1
  24. package/dist/canvas/schema/node-instance/base.js +2 -1
  25. package/dist/canvas/schema/node-instance/node.d.ts +1 -0
  26. package/dist/canvas/schema/node-instance/node.d.ts.map +1 -1
  27. package/dist/canvas/storybook-utils/manifests/index.d.ts +2 -0
  28. package/dist/canvas/storybook-utils/manifests/index.d.ts.map +1 -1
  29. package/dist/canvas/utils/toolbar-resolver.cjs +7 -2
  30. package/dist/canvas/utils/toolbar-resolver.d.ts.map +1 -1
  31. package/dist/canvas/utils/toolbar-resolver.js +7 -2
  32. package/package.json +3 -3
@@ -36,6 +36,7 @@ export declare const agentFlowManifest: {
36
36
  iconBackground?: string | undefined;
37
37
  iconBackgroundDark?: string | undefined;
38
38
  iconColor?: string | undefined;
39
+ shadow?: boolean | undefined;
39
40
  };
40
41
  handleConfiguration: {
41
42
  position: "top" | "right" | "bottom" | "left";
@@ -123,6 +124,7 @@ export declare const agentFlowManifest: {
123
124
  } | undefined;
124
125
  }[] | undefined;
125
126
  }> | undefined;
127
+ suppressDefaultToolbarActions?: Record<string, string[]> | undefined;
126
128
  inputDefaults?: Record<string, unknown> | undefined;
127
129
  inputDefinition?: Record<string, any> | undefined;
128
130
  outputDefinition?: Record<string, any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-flow.manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/agent-flow.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMnF,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAmBjD,CAAC;AAMF,eAAO,MAAM,2BAA2B,EAAE,YAsDzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAqDrC,CAAC;AAMF,eAAO,MAAM,uBAAuB,EAAE,YAwBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAwBlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAwBxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAwBpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC;AAMF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC"}
1
+ {"version":3,"file":"agent-flow.manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/agent-flow.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMnF,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAmBjD,CAAC;AAMF,eAAO,MAAM,2BAA2B,EAAE,YAsDzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAqDrC,CAAC;AAMF,eAAO,MAAM,uBAAuB,EAAE,YAwBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAwBlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAwBxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAwBpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC;AAMF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC"}
@@ -226,6 +226,7 @@ const BaseNodeComponent = (props)=>{
226
226
  const displayShape = display.shape ?? 'square';
227
227
  const displayBackground = display.background;
228
228
  const displayColor = display.color;
229
+ const displayShadow = display.shadow ?? true;
229
230
  const displayIconBackground = isDarkMode ? display.iconBackgroundDark ?? display.iconBackground : display.iconBackground;
230
231
  const displayLabelTooltip = labelTooltip;
231
232
  const displayLabelBackgroundColor = labelBackgroundColor;
@@ -432,6 +433,7 @@ const BaseNodeComponent = (props)=>{
432
433
  hasFooter: hasFooter,
433
434
  background: displayBackground,
434
435
  loading: data.loading,
436
+ shadow: displayShadow,
435
437
  children: [
436
438
  (Icon || data.loading) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BaseNodeInnerShape_cjs_namespaceObject.BaseInnerShape, {
437
439
  color: displayColor,
@@ -1 +1 @@
1
- {"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AA2ChF,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;AAqpB1B,eAAO,MAAM,QAAQ,8CA/mBa,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,6CA+mBhB,CAAC"}
1
+ {"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AA2ChF,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;AAupB1B,eAAO,MAAM,QAAQ,8CAjnBa,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,6CAinBhB,CAAC"}
@@ -198,6 +198,7 @@ const BaseNodeComponent = (props)=>{
198
198
  const displayShape = display.shape ?? 'square';
199
199
  const displayBackground = display.background;
200
200
  const displayColor = display.color;
201
+ const displayShadow = display.shadow ?? true;
201
202
  const displayIconBackground = isDarkMode ? display.iconBackgroundDark ?? display.iconBackground : display.iconBackground;
202
203
  const displayLabelTooltip = labelTooltip;
203
204
  const displayLabelBackgroundColor = labelBackgroundColor;
@@ -404,6 +405,7 @@ const BaseNodeComponent = (props)=>{
404
405
  hasFooter: hasFooter,
405
406
  background: displayBackground,
406
407
  loading: data.loading,
408
+ shadow: displayShadow,
407
409
  children: [
408
410
  (Icon || data.loading) && /*#__PURE__*/ jsx(BaseInnerShape, {
409
411
  color: displayColor,
@@ -54,12 +54,12 @@ const getStatusBorder = (status)=>{
54
54
  return '';
55
55
  }
56
56
  };
57
- const BaseContainer = ({ isSelected, isHovered, isStacked, shape, interactionState, executionStatus, validationStatus, suggestionType, hasFooter, background, loading, children })=>{
57
+ const BaseContainer = ({ isSelected, isHovered, isStacked, shape, interactionState, executionStatus, validationStatus, suggestionType, hasFooter, background, loading, shadow = true, children })=>{
58
58
  const activeStatus = suggestionType ?? validationStatus ?? executionStatus;
59
59
  const className = (0, external_react_namespaceObject.useMemo)(()=>{
60
60
  const statusBorder = getStatusBorder(activeStatus);
61
61
  const hasStatusBorder = statusBorder.length > 0;
62
- return (0, apollo_wind_namespaceObject.cn)('relative flex items-center cursor-pointer bg-surface-overlay border border-border', 'w-(--node-w) h-(--node-h) rounded-(--node-radius)', 'shadow-(--canvas-node-shadow-rest) outline-offset-0 transition-[box-shadow,border-color] duration-150', 'rectangle' === shape ? 'flex-row justify-start gap-3 p-(--node-gap)' : 'flex-col justify-center', hasFooter && 'flex-wrap', statusBorder, isHovered && 'shadow-(--canvas-node-shadow-hover)', isHovered && !hasStatusBorder && 'border-border-hover', isSelected && 'outline outline-2 outline-foreground-accent-muted', 'disabled' === interactionState && 'opacity-50 cursor-not-allowed', 'drag' === interactionState && 'cursor-grabbing shadow-(--canvas-node-shadow-lifted)', isStacked && 'before:content-[""] before:absolute before:inset-x-0 before:top-0 before:h-full before:rounded-[inherit] before:bg-surface-overlay before:border before:border-brand before:translate-y-[6px] before:-z-10 before:pointer-events-none');
62
+ return (0, apollo_wind_namespaceObject.cn)('relative flex items-center cursor-pointer bg-surface-overlay border border-border', 'w-(--node-w) h-(--node-h) rounded-(--node-radius)', 'outline-offset-0 transition-[box-shadow,border-color] duration-150', shadow && 'shadow-(--canvas-node-shadow-rest)', 'rectangle' === shape ? 'flex-row justify-start gap-3 p-(--node-gap)' : 'flex-col justify-center', hasFooter && 'flex-wrap', statusBorder, shadow && isHovered && 'shadow-(--canvas-node-shadow-hover)', isHovered && !hasStatusBorder && 'border-border-hover', isSelected && 'outline outline-2 outline-foreground-accent-muted', 'disabled' === interactionState && 'opacity-50 cursor-not-allowed', 'drag' === interactionState && (0, apollo_wind_namespaceObject.cn)('cursor-grabbing', shadow && 'shadow-(--canvas-node-shadow-lifted)'), isStacked && 'before:content-[""] before:absolute before:inset-x-0 before:top-0 before:h-full before:rounded-[inherit] before:bg-surface-overlay before:border before:border-brand before:translate-y-[6px] before:-z-10 before:pointer-events-none');
63
63
  }, [
64
64
  shape,
65
65
  hasFooter,
@@ -67,7 +67,8 @@ const BaseContainer = ({ isSelected, isHovered, isStacked, shape, interactionSta
67
67
  isSelected,
68
68
  isHovered,
69
69
  isStacked,
70
- interactionState
70
+ interactionState,
71
+ shadow
71
72
  ]);
72
73
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
73
74
  "data-testid": "base-container",
@@ -15,8 +15,9 @@ interface BaseContainerProps {
15
15
  hasFooter?: boolean;
16
16
  background?: string;
17
17
  loading?: boolean;
18
+ shadow?: boolean;
18
19
  children: React.ReactNode;
19
20
  }
20
- export declare const BaseContainer: ({ isSelected, isHovered, isStacked, shape, interactionState, executionStatus, validationStatus, suggestionType, hasFooter, background, loading, children, }: BaseContainerProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const BaseContainer: ({ isSelected, isHovered, isStacked, shape, interactionState, executionStatus, validationStatus, suggestionType, hasFooter, background, loading, shadow, children, }: BaseContainerProps) => import("react/jsx-runtime").JSX.Element;
21
22
  export {};
22
23
  //# sourceMappingURL=BaseNodeContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseNodeContainer.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNodeContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,eAAO,MAAM,eAAe,GAC1B,SAAS,mBAAmB,GAAG,uBAAuB,GAAG,cAAc,KACtE,MAuBF,CAAC;AAEF,UAAU,kBAAkB;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,GAAI,6JAa3B,kBAAkB,4CA8CpB,CAAC"}
1
+ {"version":3,"file":"BaseNodeContainer.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNodeContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,eAAO,MAAM,eAAe,GAC1B,SAAS,mBAAmB,GAAG,uBAAuB,GAAG,cAAc,KACtE,MAuBF,CAAC;AAEF,UAAU,kBAAkB;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,GAAI,qKAc3B,kBAAkB,4CAgDpB,CAAC"}
@@ -25,12 +25,12 @@ const getStatusBorder = (status)=>{
25
25
  return '';
26
26
  }
27
27
  };
28
- const BaseContainer = ({ isSelected, isHovered, isStacked, shape, interactionState, executionStatus, validationStatus, suggestionType, hasFooter, background, loading, children })=>{
28
+ const BaseContainer = ({ isSelected, isHovered, isStacked, shape, interactionState, executionStatus, validationStatus, suggestionType, hasFooter, background, loading, shadow = true, children })=>{
29
29
  const activeStatus = suggestionType ?? validationStatus ?? executionStatus;
30
30
  const className = useMemo(()=>{
31
31
  const statusBorder = getStatusBorder(activeStatus);
32
32
  const hasStatusBorder = statusBorder.length > 0;
33
- return cn('relative flex items-center cursor-pointer bg-surface-overlay border border-border', 'w-(--node-w) h-(--node-h) rounded-(--node-radius)', 'shadow-(--canvas-node-shadow-rest) outline-offset-0 transition-[box-shadow,border-color] duration-150', 'rectangle' === shape ? 'flex-row justify-start gap-3 p-(--node-gap)' : 'flex-col justify-center', hasFooter && 'flex-wrap', statusBorder, isHovered && 'shadow-(--canvas-node-shadow-hover)', isHovered && !hasStatusBorder && 'border-border-hover', isSelected && 'outline outline-2 outline-foreground-accent-muted', 'disabled' === interactionState && 'opacity-50 cursor-not-allowed', 'drag' === interactionState && 'cursor-grabbing shadow-(--canvas-node-shadow-lifted)', isStacked && 'before:content-[""] before:absolute before:inset-x-0 before:top-0 before:h-full before:rounded-[inherit] before:bg-surface-overlay before:border before:border-brand before:translate-y-[6px] before:-z-10 before:pointer-events-none');
33
+ return cn('relative flex items-center cursor-pointer bg-surface-overlay border border-border', 'w-(--node-w) h-(--node-h) rounded-(--node-radius)', 'outline-offset-0 transition-[box-shadow,border-color] duration-150', shadow && 'shadow-(--canvas-node-shadow-rest)', 'rectangle' === shape ? 'flex-row justify-start gap-3 p-(--node-gap)' : 'flex-col justify-center', hasFooter && 'flex-wrap', statusBorder, shadow && isHovered && 'shadow-(--canvas-node-shadow-hover)', isHovered && !hasStatusBorder && 'border-border-hover', isSelected && 'outline outline-2 outline-foreground-accent-muted', 'disabled' === interactionState && 'opacity-50 cursor-not-allowed', 'drag' === interactionState && cn('cursor-grabbing', shadow && 'shadow-(--canvas-node-shadow-lifted)'), isStacked && 'before:content-[""] before:absolute before:inset-x-0 before:top-0 before:h-full before:rounded-[inherit] before:bg-surface-overlay before:border before:border-brand before:translate-y-[6px] before:-z-10 before:pointer-events-none');
34
34
  }, [
35
35
  shape,
36
36
  hasFooter,
@@ -38,7 +38,8 @@ const BaseContainer = ({ isSelected, isHovered, isStacked, shape, interactionSta
38
38
  isSelected,
39
39
  isHovered,
40
40
  isStacked,
41
- interactionState
41
+ interactionState,
42
+ shadow
42
43
  ]);
43
44
  return /*#__PURE__*/ jsx("div", {
44
45
  "data-testid": "base-container",
@@ -35,7 +35,7 @@ const caseFlowCategories = [
35
35
  sortOrder: 0,
36
36
  color: 'linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%)',
37
37
  colorDark: 'linear-gradient(135deg, #E65100 0%, #EF6C00 100%)',
38
- icon: 'bolt',
38
+ icon: 'zap',
39
39
  tags: [
40
40
  'trigger',
41
41
  'start',
@@ -60,8 +60,9 @@ const caseManagementTriggerManifest = {
60
60
  display: {
61
61
  label: 'Trigger',
62
62
  description: 'Starts a case instance and triggers a case entered event',
63
- icon: 'bolt',
64
- shape: 'circle'
63
+ icon: 'zap',
64
+ shape: 'circle',
65
+ shadow: false
65
66
  },
66
67
  handleConfiguration: [
67
68
  {
@@ -127,6 +128,14 @@ const caseManagementTriggerManifest = {
127
128
  }
128
129
  ]
129
130
  }
131
+ },
132
+ suppressDefaultToolbarActions: {
133
+ design: [
134
+ 'breakpoint'
135
+ ],
136
+ debug: [
137
+ 'breakpoint'
138
+ ]
130
139
  }
131
140
  };
132
141
  const caseFlowManifest = {
@@ -29,6 +29,7 @@ export declare const caseFlowManifest: {
29
29
  iconBackground?: string | undefined;
30
30
  iconBackgroundDark?: string | undefined;
31
31
  iconColor?: string | undefined;
32
+ shadow?: boolean | undefined;
32
33
  };
33
34
  handleConfiguration: {
34
35
  position: "top" | "right" | "bottom" | "left";
@@ -116,6 +117,7 @@ export declare const caseFlowManifest: {
116
117
  } | undefined;
117
118
  }[] | undefined;
118
119
  }> | undefined;
120
+ suppressDefaultToolbarActions?: Record<string, string[]> | undefined;
119
121
  inputDefaults?: Record<string, unknown> | undefined;
120
122
  inputDefinition?: Record<string, any> | undefined;
121
123
  outputDefinition?: Record<string, any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"case-flow.manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/CaseFlow/case-flow.manifest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMnF,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAUhD,CAAC;AAMF,eAAO,MAAM,6BAA6B,EAAE,YAsD3C,CAAC;AAMF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5B,CAAC"}
1
+ {"version":3,"file":"case-flow.manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/CaseFlow/case-flow.manifest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMnF,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAUhD,CAAC;AAMF,eAAO,MAAM,6BAA6B,EAAE,YA2D3C,CAAC;AAMF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5B,CAAC"}
@@ -5,7 +5,7 @@ const caseFlowCategories = [
5
5
  sortOrder: 0,
6
6
  color: 'linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%)',
7
7
  colorDark: 'linear-gradient(135deg, #E65100 0%, #EF6C00 100%)',
8
- icon: 'bolt',
8
+ icon: 'zap',
9
9
  tags: [
10
10
  'trigger',
11
11
  'start',
@@ -30,8 +30,9 @@ const caseManagementTriggerManifest = {
30
30
  display: {
31
31
  label: 'Trigger',
32
32
  description: 'Starts a case instance and triggers a case entered event',
33
- icon: 'bolt',
34
- shape: 'circle'
33
+ icon: 'zap',
34
+ shape: 'circle',
35
+ shadow: false
35
36
  },
36
37
  handleConfiguration: [
37
38
  {
@@ -97,6 +98,14 @@ const caseManagementTriggerManifest = {
97
98
  }
98
99
  ]
99
100
  }
101
+ },
102
+ suppressDefaultToolbarActions: {
103
+ design: [
104
+ 'breakpoint'
105
+ ],
106
+ debug: [
107
+ 'breakpoint'
108
+ ]
100
109
  }
101
110
  };
102
111
  const caseFlowManifest = {
@@ -41,6 +41,7 @@ const external_index_cjs_namespaceObject = require("../../index.cjs");
41
41
  const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
42
42
  const external_motion_react_namespaceObject = require("motion/react");
43
43
  const external_react_namespaceObject = require("react");
44
+ const external_react_dom_namespaceObject = require("react-dom");
44
45
  const external_react_markdown_namespaceObject = require("react-markdown");
45
46
  var external_react_markdown_default = /*#__PURE__*/ __webpack_require__.n(external_react_markdown_namespaceObject);
46
47
  const external_remark_breaks_namespaceObject = require("remark-breaks");
@@ -68,6 +69,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
68
69
  const [isColorPickerOpen, setIsColorPickerOpen] = (0, external_react_namespaceObject.useState)(false);
69
70
  const [localContent, setLocalContent] = (0, external_react_namespaceObject.useState)(data.content || '');
70
71
  const textAreaRef = (0, external_react_namespaceObject.useRef)(null);
72
+ const skipBlurRef = (0, external_react_namespaceObject.useRef)(null);
71
73
  const { ref: markdownRef, scrollCaptureProps } = (0, external_useScrollCapture_cjs_namespaceObject.useScrollCapture)();
72
74
  const colorButtonRef = (0, external_react_namespaceObject.useRef)(null);
73
75
  const [activeFormats, setActiveFormats] = (0, external_react_namespaceObject.useState)({
@@ -131,10 +133,15 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
131
133
  const handleBlur = (0, external_react_namespaceObject.useCallback)(()=>{
132
134
  setIsEditing(false);
133
135
  if (readOnly) return;
134
- if (localContent !== data.content) {
135
- onContentChange?.(localContent);
136
+ const content = textAreaRef.current?.value ?? localContent;
137
+ if (skipBlurRef.current === content) {
138
+ skipBlurRef.current = null;
139
+ return;
140
+ }
141
+ if (content !== data.content) {
142
+ onContentChange?.(content);
136
143
  updateNodeData(id, {
137
- content: localContent
144
+ content
138
145
  });
139
146
  }
140
147
  }, [
@@ -146,6 +153,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
146
153
  readOnly
147
154
  ]);
148
155
  const handleChange = (0, external_react_namespaceObject.useCallback)((e)=>{
156
+ skipBlurRef.current = null;
149
157
  setLocalContent(e.target.value);
150
158
  }, []);
151
159
  const handleFormat = (0, external_react_namespaceObject.useCallback)((result)=>{
@@ -170,6 +178,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
170
178
  const shortcutKeyDown = (0, external_useMarkdownShortcuts_cjs_namespaceObject.useMarkdownShortcuts)(textAreaRef, handleFormat);
171
179
  const handleKeyDown = (0, external_react_namespaceObject.useCallback)((e)=>{
172
180
  if ('Escape' === e.key) {
181
+ skipBlurRef.current = textAreaRef.current?.value ?? localContent;
173
182
  setIsEditing(false);
174
183
  setLocalContent(data.content || '');
175
184
  textAreaRef.current?.blur();
@@ -193,16 +202,35 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
193
202
  shortcutKeyDown(e);
194
203
  }, [
195
204
  data.content,
205
+ localContent,
196
206
  shortcutKeyDown,
197
207
  handleFormat
198
208
  ]);
199
209
  const handleResizeStart = (0, external_react_namespaceObject.useCallback)(()=>{
200
- if (isEditing) textAreaRef.current?.blur();
210
+ if (isEditing) {
211
+ const content = textAreaRef.current?.value ?? localContent;
212
+ if (!readOnly && content !== data.content) {
213
+ skipBlurRef.current = content;
214
+ (0, external_react_dom_namespaceObject.flushSync)(()=>{
215
+ onContentChange?.(content);
216
+ updateNodeData(id, {
217
+ content
218
+ });
219
+ });
220
+ }
221
+ textAreaRef.current?.blur();
222
+ }
201
223
  setIsResizing(true);
202
224
  onResizeStart?.();
203
225
  }, [
226
+ data.content,
227
+ id,
204
228
  isEditing,
205
- onResizeStart
229
+ localContent,
230
+ onContentChange,
231
+ onResizeStart,
232
+ readOnly,
233
+ updateNodeData
206
234
  ]);
207
235
  const handleResizeEnd = (0, external_react_namespaceObject.useCallback)((_event, params)=>{
208
236
  setIsResizing(false);
@@ -1 +1 @@
1
- {"version":3,"file":"StickyNoteNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/StickyNoteNode.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAiC1E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAiB,MAAM,wBAAwB,CAAC;AAM7F,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AA2aD,eAAO,MAAM,cAAc,kMAzZxB,mBAAmB,6CAyZqC,CAAC"}
1
+ {"version":3,"file":"StickyNoteNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/StickyNoteNode.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAkC1E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAiB,MAAM,wBAAwB,CAAC;AAM7F,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAwcD,eAAO,MAAM,cAAc,kMAtbxB,mBAAmB,6CAsbqC,CAAC"}
@@ -4,6 +4,7 @@ import { CanvasIcon } from "../../index.js";
4
4
  import { NodeResizeControl, useReactFlow } from "../../xyflow/react.js";
5
5
  import { AnimatePresence } from "motion/react";
6
6
  import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
7
+ import { flushSync } from "react-dom";
7
8
  import react_markdown from "react-markdown";
8
9
  import remark_breaks from "remark-breaks";
9
10
  import remark_gfm from "remark-gfm";
@@ -28,6 +29,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
28
29
  const [isColorPickerOpen, setIsColorPickerOpen] = useState(false);
29
30
  const [localContent, setLocalContent] = useState(data.content || '');
30
31
  const textAreaRef = useRef(null);
32
+ const skipBlurRef = useRef(null);
31
33
  const { ref: markdownRef, scrollCaptureProps } = useScrollCapture();
32
34
  const colorButtonRef = useRef(null);
33
35
  const [activeFormats, setActiveFormats] = useState({
@@ -91,10 +93,15 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
91
93
  const handleBlur = useCallback(()=>{
92
94
  setIsEditing(false);
93
95
  if (readOnly) return;
94
- if (localContent !== data.content) {
95
- onContentChange?.(localContent);
96
+ const content = textAreaRef.current?.value ?? localContent;
97
+ if (skipBlurRef.current === content) {
98
+ skipBlurRef.current = null;
99
+ return;
100
+ }
101
+ if (content !== data.content) {
102
+ onContentChange?.(content);
96
103
  updateNodeData(id, {
97
- content: localContent
104
+ content
98
105
  });
99
106
  }
100
107
  }, [
@@ -106,6 +113,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
106
113
  readOnly
107
114
  ]);
108
115
  const handleChange = useCallback((e)=>{
116
+ skipBlurRef.current = null;
109
117
  setLocalContent(e.target.value);
110
118
  }, []);
111
119
  const handleFormat = useCallback((result)=>{
@@ -130,6 +138,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
130
138
  const shortcutKeyDown = useMarkdownShortcuts(textAreaRef, handleFormat);
131
139
  const handleKeyDown = useCallback((e)=>{
132
140
  if ('Escape' === e.key) {
141
+ skipBlurRef.current = textAreaRef.current?.value ?? localContent;
133
142
  setIsEditing(false);
134
143
  setLocalContent(data.content || '');
135
144
  textAreaRef.current?.blur();
@@ -153,16 +162,35 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
153
162
  shortcutKeyDown(e);
154
163
  }, [
155
164
  data.content,
165
+ localContent,
156
166
  shortcutKeyDown,
157
167
  handleFormat
158
168
  ]);
159
169
  const handleResizeStart = useCallback(()=>{
160
- if (isEditing) textAreaRef.current?.blur();
170
+ if (isEditing) {
171
+ const content = textAreaRef.current?.value ?? localContent;
172
+ if (!readOnly && content !== data.content) {
173
+ skipBlurRef.current = content;
174
+ flushSync(()=>{
175
+ onContentChange?.(content);
176
+ updateNodeData(id, {
177
+ content
178
+ });
179
+ });
180
+ }
181
+ textAreaRef.current?.blur();
182
+ }
161
183
  setIsResizing(true);
162
184
  onResizeStart?.();
163
185
  }, [
186
+ data.content,
187
+ id,
164
188
  isEditing,
165
- onResizeStart
189
+ localContent,
190
+ onContentChange,
191
+ onResizeStart,
192
+ readOnly,
193
+ updateNodeData
166
194
  ]);
167
195
  const handleResizeEnd = useCallback((_event, params)=>{
168
196
  setIsResizing(false);
@@ -52,7 +52,8 @@ const nodeDisplayManifestSchema = external_zod_namespaceObject.z.object({
52
52
  background: external_zod_namespaceObject.z.string().optional(),
53
53
  iconBackground: external_zod_namespaceObject.z.string().optional(),
54
54
  iconBackgroundDark: external_zod_namespaceObject.z.string().optional(),
55
- iconColor: external_zod_namespaceObject.z.string().optional()
55
+ iconColor: external_zod_namespaceObject.z.string().optional(),
56
+ shadow: external_zod_namespaceObject.z.boolean().optional()
56
57
  });
57
58
  const nodeRuntimeConstraintsManifestSchema = external_zod_namespaceObject.z.union([
58
59
  external_zod_namespaceObject.z.object({
@@ -72,6 +73,7 @@ const nodeManifestSchema = external_zod_namespaceObject.z.object({
72
73
  display: nodeDisplayManifestSchema,
73
74
  handleConfiguration: external_zod_namespaceObject.z.array(external_handle_cjs_namespaceObject.handleGroupManifestSchema),
74
75
  toolbarExtensions: external_toolbar_cjs_namespaceObject.toolbarConfigurationSchema.optional(),
76
+ suppressDefaultToolbarActions: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
75
77
  inputDefaults: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.unknown()).optional(),
76
78
  inputDefinition: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.any()).optional(),
77
79
  outputDefinition: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.any()).optional(),
@@ -25,6 +25,7 @@ export declare const nodeDisplayManifestSchema: z.ZodObject<{
25
25
  iconBackground: z.ZodOptional<z.ZodString>;
26
26
  iconBackgroundDark: z.ZodOptional<z.ZodString>;
27
27
  iconColor: z.ZodOptional<z.ZodString>;
28
+ shadow: z.ZodOptional<z.ZodBoolean>;
28
29
  }, z.core.$strip>;
29
30
  export declare const nodeRuntimeConstraintsManifestSchema: z.ZodUnion<readonly [z.ZodObject<{
30
31
  include: z.ZodArray<z.ZodString>;
@@ -54,6 +55,7 @@ export declare const nodeManifestSchema: z.ZodObject<{
54
55
  iconBackground: z.ZodOptional<z.ZodString>;
55
56
  iconBackgroundDark: z.ZodOptional<z.ZodString>;
56
57
  iconColor: z.ZodOptional<z.ZodString>;
58
+ shadow: z.ZodOptional<z.ZodBoolean>;
57
59
  }, z.core.$strip>;
58
60
  handleConfiguration: z.ZodArray<z.ZodObject<{
59
61
  position: z.ZodEnum<{
@@ -173,6 +175,7 @@ export declare const nodeManifestSchema: z.ZodObject<{
173
175
  }, z.core.$strip>>;
174
176
  }, z.core.$strip>>>;
175
177
  }, z.core.$strip>>>;
178
+ suppressDefaultToolbarActions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
176
179
  inputDefaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
177
180
  inputDefinition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
178
181
  outputDefinition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -1 +1 @@
1
- {"version":3,"file":"node-manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/node-manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;EAAyD,CAAC;AAKtF,eAAO,MAAM,uBAAuB;;iBAGlC,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;iBA8BpC,CAAC;AAQH,eAAO,MAAM,oCAAoC;;;;mBAG/C,CAAC;AAKH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgE7B,CAAC;AAGH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
1
+ {"version":3,"file":"node-manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/node-manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;EAAyD,CAAC;AAKtF,eAAO,MAAM,uBAAuB;;iBAGlC,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;iBAqCpC,CAAC;AAQH,eAAO,MAAM,oCAAoC;;;;mBAG/C,CAAC;AAKH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwE7B,CAAC;AAGH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
@@ -20,7 +20,8 @@ const nodeDisplayManifestSchema = z.object({
20
20
  background: z.string().optional(),
21
21
  iconBackground: z.string().optional(),
22
22
  iconBackgroundDark: z.string().optional(),
23
- iconColor: z.string().optional()
23
+ iconColor: z.string().optional(),
24
+ shadow: z.boolean().optional()
24
25
  });
25
26
  const nodeRuntimeConstraintsManifestSchema = z.union([
26
27
  z.object({
@@ -40,6 +41,7 @@ const nodeManifestSchema = z.object({
40
41
  display: nodeDisplayManifestSchema,
41
42
  handleConfiguration: z.array(handleGroupManifestSchema),
42
43
  toolbarExtensions: toolbarConfigurationSchema.optional(),
44
+ suppressDefaultToolbarActions: z.record(z.string(), z.array(z.string())).optional(),
43
45
  inputDefaults: z.record(z.string(), z.unknown()).optional(),
44
46
  inputDefinition: z.record(z.string(), z.any()).optional(),
45
47
  outputDefinition: z.record(z.string(), z.any()).optional(),
@@ -50,7 +50,8 @@ const displayConfigSchema = external_zod_namespaceObject.z.object({
50
50
  labelBackgroundColor: external_zod_namespaceObject.z.string().optional(),
51
51
  centerAdornmentComponent: external_zod_namespaceObject.z.any().optional(),
52
52
  footerComponent: external_zod_namespaceObject.z.any().optional(),
53
- footerVariant: external_zod_namespaceObject.z.string().optional()
53
+ footerVariant: external_zod_namespaceObject.z.string().optional(),
54
+ shadow: external_zod_namespaceObject.z.boolean().optional()
54
55
  }).catchall(external_zod_namespaceObject.z.unknown());
55
56
  exports.displayConfigSchema = __webpack_exports__.displayConfigSchema;
56
57
  exports.idSchema = __webpack_exports__.idSchema;
@@ -24,6 +24,7 @@ export declare const displayConfigSchema: z.ZodObject<{
24
24
  centerAdornmentComponent: z.ZodOptional<z.ZodAny>;
25
25
  footerComponent: z.ZodOptional<z.ZodAny>;
26
26
  footerVariant: z.ZodOptional<z.ZodString>;
27
+ shadow: z.ZodOptional<z.ZodBoolean>;
27
28
  }, z.core.$catchall<z.ZodUnknown>>;
28
29
  export type InstanceId = z.infer<typeof idSchema>;
29
30
  export type InstanceVersion = z.infer<typeof versionSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,QAAQ,aAAoB,CAAC;AAK1C,eAAO,MAAM,aAAa,aAEqD,CAAC;AAKhF,eAAO,MAAM,oBAAoB,aAK9B,CAAC;AAKJ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;kCAwBR,CAAC;AAGzB,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAClD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,QAAQ,aAAoB,CAAC;AAK1C,eAAO,MAAM,aAAa,aAEqD,CAAC;AAKhF,eAAO,MAAM,oBAAoB,aAK9B,CAAC;AAKJ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;kCAyBR,CAAC;AAGzB,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAClD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -19,6 +19,7 @@ const displayConfigSchema = z.object({
19
19
  labelBackgroundColor: z.string().optional(),
20
20
  centerAdornmentComponent: z.any().optional(),
21
21
  footerComponent: z.any().optional(),
22
- footerVariant: z.string().optional()
22
+ footerVariant: z.string().optional(),
23
+ shadow: z.boolean().optional()
23
24
  }).catchall(z.unknown());
24
25
  export { displayConfigSchema, idSchema, typeVersionKeySchema, versionSchema };
@@ -47,6 +47,7 @@ export declare const nodeSchema: z.ZodObject<{
47
47
  centerAdornmentComponent: z.ZodOptional<z.ZodAny>;
48
48
  footerComponent: z.ZodOptional<z.ZodAny>;
49
49
  footerVariant: z.ZodOptional<z.ZodString>;
50
+ shadow: z.ZodOptional<z.ZodBoolean>;
50
51
  }, z.core.$catchall<z.ZodUnknown>>;
51
52
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
53
  outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,QAAQ;;;;;;;;;;kCAeG,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCrB,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,QAAQ;;;;;;;;;;kCAeG,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCrB,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -28,6 +28,7 @@ export declare const defaultWorkflowManifest: {
28
28
  iconBackground?: string | undefined;
29
29
  iconBackgroundDark?: string | undefined;
30
30
  iconColor?: string | undefined;
31
+ shadow?: boolean | undefined;
31
32
  };
32
33
  handleConfiguration: {
33
34
  position: "top" | "right" | "bottom" | "left";
@@ -115,6 +116,7 @@ export declare const defaultWorkflowManifest: {
115
116
  } | undefined;
116
117
  }[] | undefined;
117
118
  }> | undefined;
119
+ suppressDefaultToolbarActions?: Record<string, string[]> | undefined;
118
120
  inputDefaults?: Record<string, unknown> | undefined;
119
121
  inputDefinition?: Record<string, any> | undefined;
120
122
  outputDefinition?: Record<string, any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/storybook-utils/manifests/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAKnC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/storybook-utils/manifests/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAKnC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAC"}
@@ -140,9 +140,14 @@ function mergeToolbarConfigs(base, extension) {
140
140
  };
141
141
  }
142
142
  function resolveToolbar(manifest, context, nodeData) {
143
- const { nodeType, toolbarExtensions: manifestToolbarExtensions } = manifest;
143
+ const { nodeType, toolbarExtensions: manifestToolbarExtensions, suppressDefaultToolbarActions } = manifest;
144
144
  const { mode } = (0, ToolbarActionContext_cjs_namespaceObject.getToolbarActionStore)();
145
- const modeDefaults = toolbarRegistry.getModeDefaults(mode);
145
+ const rawDefaults = toolbarRegistry.getModeDefaults(mode);
146
+ const suppressed = new Set(suppressDefaultToolbarActions?.[mode] ?? []);
147
+ const modeDefaults = suppressed.size ? {
148
+ actions: rawDefaults.actions.filter((a)=>!suppressed.has(a.id)),
149
+ overflowActions: rawDefaults.overflowActions?.filter((a)=>!suppressed.has(a.id))
150
+ } : rawDefaults;
146
151
  const nodeExtensions = manifestToolbarExtensions?.[mode];
147
152
  const merged = mergeToolbarConfigs(modeDefaults, nodeExtensions);
148
153
  const filteredActions = merged.actions.filter((action)=>evaluateCondition(manifest, action, nodeType, context)).map((action)=>convertToNodeAction(action, mode, nodeData));
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/toolbar-resolver.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AAKrC,UAAU,mBAAoB,SAAQ,iBAAiB;IAErD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AA0ID,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,iBAAiB,GAAG,SAAS,CAmC/B"}
1
+ {"version":3,"file":"toolbar-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/toolbar-resolver.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AAKrC,UAAU,mBAAoB,SAAQ,iBAAiB;IAErD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AA0ID,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,iBAAiB,GAAG,SAAS,CA8C/B"}
@@ -112,9 +112,14 @@ function mergeToolbarConfigs(base, extension) {
112
112
  };
113
113
  }
114
114
  function resolveToolbar(manifest, context, nodeData) {
115
- const { nodeType, toolbarExtensions: manifestToolbarExtensions } = manifest;
115
+ const { nodeType, toolbarExtensions: manifestToolbarExtensions, suppressDefaultToolbarActions } = manifest;
116
116
  const { mode } = getToolbarActionStore();
117
- const modeDefaults = toolbarRegistry.getModeDefaults(mode);
117
+ const rawDefaults = toolbarRegistry.getModeDefaults(mode);
118
+ const suppressed = new Set(suppressDefaultToolbarActions?.[mode] ?? []);
119
+ const modeDefaults = suppressed.size ? {
120
+ actions: rawDefaults.actions.filter((a)=>!suppressed.has(a.id)),
121
+ overflowActions: rawDefaults.overflowActions?.filter((a)=>!suppressed.has(a.id))
122
+ } : rawDefaults;
118
123
  const nodeExtensions = manifestToolbarExtensions?.[mode];
119
124
  const merged = mergeToolbarConfigs(modeDefaults, nodeExtensions);
120
125
  const filteredActions = merged.actions.filter((action)=>evaluateCondition(manifest, action, nodeType, context)).map((action)=>convertToNodeAction(action, mode, nodeData));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "4.38.0",
3
+ "version": "4.39.1",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -205,8 +205,8 @@
205
205
  "use-sync-external-store": "^1.2.0",
206
206
  "zod": "^4.3.5",
207
207
  "zustand": "^5.0.9",
208
- "@uipath/apollo-wind": "2.18.0",
209
- "@uipath/apollo-core": "5.9.1"
208
+ "@uipath/apollo-core": "5.9.1",
209
+ "@uipath/apollo-wind": "2.18.0"
210
210
  },
211
211
  "devDependencies": {
212
212
  "@lingui/cli": "^5.6.1",