@uipath/apollo-react 6.28.0 → 6.29.0

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 (31) 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/CaseFlow/case-flow.manifest.d.ts +2 -0
  4. package/dist/canvas/components/CaseFlow/case-flow.manifest.d.ts.map +1 -1
  5. package/dist/canvas/schema/node-definition/index.cjs +2 -1
  6. package/dist/canvas/schema/node-definition/index.d.ts +4 -2
  7. package/dist/canvas/schema/node-definition/index.d.ts.map +1 -1
  8. package/dist/canvas/schema/node-definition/index.js +2 -1
  9. package/dist/canvas/schema/node-definition/node-manifest.cjs +4 -12
  10. package/dist/canvas/schema/node-definition/node-manifest.d.ts +12 -7
  11. package/dist/canvas/schema/node-definition/node-manifest.d.ts.map +1 -1
  12. package/dist/canvas/schema/node-definition/node-manifest.js +2 -7
  13. package/dist/canvas/schema/node-definition/shape.cjs +42 -0
  14. package/dist/canvas/schema/node-definition/shape.d.ts +9 -0
  15. package/dist/canvas/schema/node-definition/shape.d.ts.map +1 -0
  16. package/dist/canvas/schema/node-definition/shape.js +8 -0
  17. package/dist/canvas/schema/node-instance/base.cjs +2 -2
  18. package/dist/canvas/schema/node-instance/base.js +1 -1
  19. package/dist/canvas/schema/toolbar.cjs +2 -0
  20. package/dist/canvas/schema/toolbar.d.ts +30 -0
  21. package/dist/canvas/schema/toolbar.d.ts.map +1 -1
  22. package/dist/canvas/schema/toolbar.js +2 -0
  23. package/dist/canvas/storybook-utils/manifests/index.d.ts +2 -0
  24. package/dist/canvas/storybook-utils/manifests/index.d.ts.map +1 -1
  25. package/dist/canvas/utils/manifest-resolver.cjs +2 -1
  26. package/dist/canvas/utils/manifest-resolver.d.ts.map +1 -1
  27. package/dist/canvas/utils/manifest-resolver.js +2 -1
  28. package/dist/canvas/utils/toolbar-resolver.cjs +31 -4
  29. package/dist/canvas/utils/toolbar-resolver.d.ts.map +1 -1
  30. package/dist/canvas/utils/toolbar-resolver.js +31 -4
  31. package/package.json +1 -1
@@ -104,6 +104,7 @@ export declare const agentFlowManifest: {
104
104
  requiresPermissions?: string[] | undefined;
105
105
  hideOnExecution?: boolean | undefined;
106
106
  nodeTypes?: string[] | undefined;
107
+ shapes?: ("square" | "circle" | "container" | "rectangle")[] | undefined;
107
108
  handles?: {
108
109
  handleType: "input" | "output" | "artifact";
109
110
  type?: "target" | "source" | undefined;
@@ -119,6 +120,7 @@ export declare const agentFlowManifest: {
119
120
  requiresPermissions?: string[] | undefined;
120
121
  hideOnExecution?: boolean | undefined;
121
122
  nodeTypes?: string[] | undefined;
123
+ shapes?: ("square" | "circle" | "container" | "rectangle")[] | undefined;
122
124
  handles?: {
123
125
  handleType: "input" | "output" | "artifact";
124
126
  type?: "target" | "source" | 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"}
@@ -97,6 +97,7 @@ export declare const caseFlowManifest: {
97
97
  requiresPermissions?: string[] | undefined;
98
98
  hideOnExecution?: boolean | undefined;
99
99
  nodeTypes?: string[] | undefined;
100
+ shapes?: ("square" | "circle" | "container" | "rectangle")[] | undefined;
100
101
  handles?: {
101
102
  handleType: "input" | "output" | "artifact";
102
103
  type?: "target" | "source" | undefined;
@@ -112,6 +113,7 @@ export declare const caseFlowManifest: {
112
113
  requiresPermissions?: string[] | undefined;
113
114
  hideOnExecution?: boolean | undefined;
114
115
  nodeTypes?: string[] | undefined;
116
+ shapes?: ("square" | "circle" | "container" | "rectangle")[] | undefined;
115
117
  handles?: {
116
118
  handleType: "input" | "output" | "artifact";
117
119
  type?: "target" | "source" | 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,YA2D3C,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"}
@@ -28,7 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  nodeDisplayManifestSchema: ()=>external_node_manifest_cjs_namespaceObject.nodeDisplayManifestSchema,
29
29
  handleGroupOverrideSchema: ()=>external_handle_cjs_namespaceObject.handleGroupOverrideSchema,
30
30
  handlePositionSchema: ()=>external_handle_cjs_namespaceObject.handlePositionSchema,
31
- nodeShapeSchema: ()=>external_node_manifest_cjs_namespaceObject.nodeShapeSchema,
31
+ nodeShapeSchema: ()=>external_shape_cjs_namespaceObject.nodeShapeSchema,
32
32
  nodeManifestSchema: ()=>external_node_manifest_cjs_namespaceObject.nodeManifestSchema,
33
33
  nodeRuntimeConstraintsManifestSchema: ()=>external_node_manifest_cjs_namespaceObject.nodeRuntimeConstraintsManifestSchema,
34
34
  handleTypeSchema: ()=>external_handle_cjs_namespaceObject.handleTypeSchema,
@@ -40,6 +40,7 @@ __webpack_require__.d(__webpack_exports__, {
40
40
  const external_category_manifest_cjs_namespaceObject = require("./category-manifest.cjs");
41
41
  const external_handle_cjs_namespaceObject = require("./handle.cjs");
42
42
  const external_node_manifest_cjs_namespaceObject = require("./node-manifest.cjs");
43
+ const external_shape_cjs_namespaceObject = require("./shape.cjs");
43
44
  exports.categoryManifestSchema = __webpack_exports__.categoryManifestSchema;
44
45
  exports.handleBoundarySchema = __webpack_exports__.handleBoundarySchema;
45
46
  exports.handleGroupManifestSchema = __webpack_exports__.handleGroupManifestSchema;
@@ -3,6 +3,8 @@ export { categoryManifestSchema } from './category-manifest';
3
3
  export type { ConnectionConstraint, HandleTarget } from './constraints';
4
4
  export type { HandleBoundary, HandleCategory, HandleGroupManifest, HandleGroupOverride, HandleManifest, HandlePosition, HandleType, } from './handle';
5
5
  export { handleBoundarySchema, handleGroupManifestSchema, handleGroupOverrideSchema, handleManifestSchema, handlePositionSchema, handleTypeDisplaySchema, handleTypeSchema, } from './handle';
6
- export type { NodeDisplayManifest, NodeManifest, NodeShape, RuntimeConstraints, } from './node-manifest';
7
- export { nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema, nodeShapeSchema, } from './node-manifest';
6
+ export type { NodeDisplayManifest, NodeManifest, RuntimeConstraints, } from './node-manifest';
7
+ export { nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema, } from './node-manifest';
8
+ export type { NodeShape } from './shape';
9
+ export { nodeShapeSchema } from './shape';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAExE,YAAY,EACV,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,oCAAoC,EACpC,eAAe,GAChB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAExE,YAAY,EACV,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,oCAAoC,GACrC,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { categoryManifestSchema } from "./category-manifest.js";
2
2
  import { handleBoundarySchema, handleGroupManifestSchema, handleGroupOverrideSchema, handleManifestSchema, handlePositionSchema, handleTypeDisplaySchema, handleTypeSchema } from "./handle.js";
3
- import { nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema, nodeShapeSchema } from "./node-manifest.js";
3
+ import { nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema } from "./node-manifest.js";
4
+ import { nodeShapeSchema } from "./shape.js";
4
5
  export { categoryManifestSchema, handleBoundarySchema, handleGroupManifestSchema, handleGroupOverrideSchema, handleManifestSchema, handlePositionSchema, handleTypeDisplaySchema, handleTypeSchema, nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema, nodeShapeSchema };
@@ -27,18 +27,12 @@ __webpack_require__.d(__webpack_exports__, {
27
27
  nodeManifestSchema: ()=>nodeManifestSchema,
28
28
  nodeRuntimeConstraintsManifestSchema: ()=>nodeRuntimeConstraintsManifestSchema,
29
29
  nodeDisplayManifestSchema: ()=>nodeDisplayManifestSchema,
30
- nodeDebugManifestSchema: ()=>nodeDebugManifestSchema,
31
- nodeShapeSchema: ()=>nodeShapeSchema
30
+ nodeDebugManifestSchema: ()=>nodeDebugManifestSchema
32
31
  });
33
32
  const external_zod_namespaceObject = require("zod");
34
33
  const external_toolbar_cjs_namespaceObject = require("../toolbar.cjs");
35
34
  const external_handle_cjs_namespaceObject = require("./handle.cjs");
36
- const nodeShapeSchema = external_zod_namespaceObject.z["enum"]([
37
- 'circle',
38
- 'square',
39
- 'rectangle',
40
- 'container'
41
- ]);
35
+ const external_shape_cjs_namespaceObject = require("./shape.cjs");
42
36
  const nodeDebugManifestSchema = external_zod_namespaceObject.z.object({
43
37
  runtime: external_zod_namespaceObject.z.string().min(1)
44
38
  });
@@ -47,7 +41,7 @@ const nodeDisplayManifestSchema = external_zod_namespaceObject.z.object({
47
41
  canvasLabel: external_zod_namespaceObject.z.string().min(1).optional(),
48
42
  description: external_zod_namespaceObject.z.string().optional(),
49
43
  icon: external_zod_namespaceObject.z.string().min(1).optional(),
50
- shape: nodeShapeSchema.optional(),
44
+ shape: external_shape_cjs_namespaceObject.nodeShapeSchema.optional(),
51
45
  color: external_zod_namespaceObject.z.string().optional(),
52
46
  background: external_zod_namespaceObject.z.string().optional(),
53
47
  iconBackground: external_zod_namespaceObject.z.string().optional(),
@@ -89,13 +83,11 @@ exports.nodeDebugManifestSchema = __webpack_exports__.nodeDebugManifestSchema;
89
83
  exports.nodeDisplayManifestSchema = __webpack_exports__.nodeDisplayManifestSchema;
90
84
  exports.nodeManifestSchema = __webpack_exports__.nodeManifestSchema;
91
85
  exports.nodeRuntimeConstraintsManifestSchema = __webpack_exports__.nodeRuntimeConstraintsManifestSchema;
92
- exports.nodeShapeSchema = __webpack_exports__.nodeShapeSchema;
93
86
  for(var __rspack_i in __webpack_exports__)if (-1 === [
94
87
  "nodeDebugManifestSchema",
95
88
  "nodeDisplayManifestSchema",
96
89
  "nodeManifestSchema",
97
- "nodeRuntimeConstraintsManifestSchema",
98
- "nodeShapeSchema"
90
+ "nodeRuntimeConstraintsManifestSchema"
99
91
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
100
92
  Object.defineProperty(exports, '__esModule', {
101
93
  value: true
@@ -1,11 +1,5 @@
1
1
  import type { FormSchema } from '@uipath/apollo-wind';
2
2
  import { z } from 'zod';
3
- export declare const nodeShapeSchema: z.ZodEnum<{
4
- square: "square";
5
- circle: "circle";
6
- container: "container";
7
- rectangle: "rectangle";
8
- }>;
9
3
  export declare const nodeDebugManifestSchema: z.ZodObject<{
10
4
  runtime: z.ZodString;
11
5
  }, z.core.$strip>;
@@ -143,6 +137,12 @@ export declare const nodeManifestSchema: z.ZodObject<{
143
137
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
138
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
145
139
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
141
+ square: "square";
142
+ circle: "circle";
143
+ container: "container";
144
+ rectangle: "rectangle";
145
+ }>>>;
146
146
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
147
  handleType: z.ZodEnum<{
148
148
  input: "input";
@@ -165,6 +165,12 @@ export declare const nodeManifestSchema: z.ZodObject<{
165
165
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
166
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
167
167
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
169
+ square: "square";
170
+ circle: "circle";
171
+ container: "container";
172
+ rectangle: "rectangle";
173
+ }>>>;
168
174
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
175
  handleType: z.ZodEnum<{
170
176
  input: "input";
@@ -197,7 +203,6 @@ export declare const nodeManifestSchema: z.ZodObject<{
197
203
  exclude: z.ZodArray<z.ZodString>;
198
204
  }, z.core.$strip>]>>;
199
205
  }, z.core.$strip>;
200
- export type NodeShape = z.infer<typeof nodeShapeSchema>;
201
206
  export type NodeDisplayManifest = z.infer<typeof nodeDisplayManifestSchema>;
202
207
  export type NodeManifest = z.infer<typeof nodeManifestSchema>;
203
208
  export type RuntimeConstraints = z.infer<typeof nodeRuntimeConstraintsManifestSchema>;
@@ -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;;;;;;;;;;;;;;;;;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"}
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;AAQxB,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,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,12 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { toolbarConfigurationSchema } from "../toolbar.js";
3
3
  import { handleGroupManifestSchema } from "./handle.js";
4
- const nodeShapeSchema = z["enum"]([
5
- 'circle',
6
- 'square',
7
- 'rectangle',
8
- 'container'
9
- ]);
4
+ import { nodeShapeSchema } from "./shape.js";
10
5
  const nodeDebugManifestSchema = z.object({
11
6
  runtime: z.string().min(1)
12
7
  });
@@ -53,4 +48,4 @@ const nodeManifestSchema = z.object({
53
48
  deprecated: z.boolean().optional(),
54
49
  runtimeConstraints: nodeRuntimeConstraintsManifestSchema.optional()
55
50
  });
56
- export { nodeDebugManifestSchema, nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema, nodeShapeSchema };
51
+ export { nodeDebugManifestSchema, nodeDisplayManifestSchema, nodeManifestSchema, nodeRuntimeConstraintsManifestSchema };
@@ -0,0 +1,42 @@
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
+ nodeShapeSchema: ()=>nodeShapeSchema
28
+ });
29
+ const external_zod_namespaceObject = require("zod");
30
+ const nodeShapeSchema = external_zod_namespaceObject.z["enum"]([
31
+ 'circle',
32
+ 'square',
33
+ 'rectangle',
34
+ 'container'
35
+ ]);
36
+ exports.nodeShapeSchema = __webpack_exports__.nodeShapeSchema;
37
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
38
+ "nodeShapeSchema"
39
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
40
+ Object.defineProperty(exports, '__esModule', {
41
+ value: true
42
+ });
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const nodeShapeSchema: z.ZodEnum<{
3
+ square: "square";
4
+ circle: "circle";
5
+ container: "container";
6
+ rectangle: "rectangle";
7
+ }>;
8
+ export type NodeShape = z.infer<typeof nodeShapeSchema>;
9
+ //# sourceMappingURL=shape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/shape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;EAAyD,CAAC;AAEtF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ const nodeShapeSchema = z["enum"]([
3
+ 'circle',
4
+ 'square',
5
+ 'rectangle',
6
+ 'container'
7
+ ]);
8
+ export { nodeShapeSchema };
@@ -30,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
30
30
  versionSchema: ()=>versionSchema
31
31
  });
32
32
  const external_zod_namespaceObject = require("zod");
33
- const node_manifest_cjs_namespaceObject = require("../node-definition/node-manifest.cjs");
33
+ const shape_cjs_namespaceObject = require("../node-definition/shape.cjs");
34
34
  const idSchema = external_zod_namespaceObject.z.string().min(1);
35
35
  const versionSchema = external_zod_namespaceObject.z.string().regex(/^\d+\.\d+\.\d+$/, 'Version must be in semver format (e.g., "1.0.0")');
36
36
  const typeVersionKeySchema = external_zod_namespaceObject.z.string().regex(/^.+:\d+\.\d+\.\d+$/, 'TypeVersionKey must be in format "type:version" (e.g., "myType:1.0.0")');
@@ -38,7 +38,7 @@ const displayConfigSchema = external_zod_namespaceObject.z.object({
38
38
  label: external_zod_namespaceObject.z.string().optional(),
39
39
  canvasLabel: external_zod_namespaceObject.z.string().optional(),
40
40
  subLabel: external_zod_namespaceObject.z.any().optional(),
41
- shape: node_manifest_cjs_namespaceObject.nodeShapeSchema.optional(),
41
+ shape: shape_cjs_namespaceObject.nodeShapeSchema.optional(),
42
42
  background: external_zod_namespaceObject.z.string().optional(),
43
43
  iconBackground: external_zod_namespaceObject.z.string().optional(),
44
44
  iconBackgroundDark: external_zod_namespaceObject.z.string().optional(),
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { nodeShapeSchema } from "../node-definition/node-manifest.js";
2
+ import { nodeShapeSchema } from "../node-definition/shape.js";
3
3
  const idSchema = z.string().min(1);
4
4
  const versionSchema = z.string().regex(/^\d+\.\d+\.\d+$/, 'Version must be in semver format (e.g., "1.0.0")');
5
5
  const typeVersionKeySchema = z.string().regex(/^.+:\d+\.\d+\.\d+$/, 'TypeVersionKey must be in format "type:version" (e.g., "myType:1.0.0")');
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  toolbarConfigurationSchema: ()=>toolbarConfigurationSchema
30
30
  });
31
31
  const external_zod_namespaceObject = require("zod");
32
+ const shape_cjs_namespaceObject = require("./node-definition/shape.cjs");
32
33
  const toolbarActionSchema = external_zod_namespaceObject.z.object({
33
34
  id: external_zod_namespaceObject.z.string(),
34
35
  icon: external_zod_namespaceObject.z.string(),
@@ -38,6 +39,7 @@ const toolbarActionSchema = external_zod_namespaceObject.z.object({
38
39
  requiresPermissions: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
39
40
  hideOnExecution: external_zod_namespaceObject.z.boolean().optional(),
40
41
  nodeTypes: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
42
+ shapes: external_zod_namespaceObject.z.array(shape_cjs_namespaceObject.nodeShapeSchema).optional(),
41
43
  handles: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.object({
42
44
  handleType: external_zod_namespaceObject.z["enum"]([
43
45
  'output',
@@ -8,6 +8,12 @@ export declare const toolbarActionSchema: z.ZodObject<{
8
8
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
9
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
10
10
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
+ square: "square";
13
+ circle: "circle";
14
+ container: "container";
15
+ rectangle: "rectangle";
16
+ }>>>;
11
17
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
18
  handleType: z.ZodEnum<{
13
19
  input: "input";
@@ -31,6 +37,12 @@ export declare const modeToolbarConfigSchema: z.ZodObject<{
31
37
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
38
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
33
39
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
41
+ square: "square";
42
+ circle: "circle";
43
+ container: "container";
44
+ rectangle: "rectangle";
45
+ }>>>;
34
46
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
47
  handleType: z.ZodEnum<{
36
48
  input: "input";
@@ -53,6 +65,12 @@ export declare const modeToolbarConfigSchema: z.ZodObject<{
53
65
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
66
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
55
67
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
69
+ square: "square";
70
+ circle: "circle";
71
+ container: "container";
72
+ rectangle: "rectangle";
73
+ }>>>;
56
74
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
75
  handleType: z.ZodEnum<{
58
76
  input: "input";
@@ -77,6 +95,12 @@ export declare const toolbarConfigurationSchema: z.ZodRecord<z.ZodString, z.ZodO
77
95
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
96
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
79
97
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
99
+ square: "square";
100
+ circle: "circle";
101
+ container: "container";
102
+ rectangle: "rectangle";
103
+ }>>>;
80
104
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
105
  handleType: z.ZodEnum<{
82
106
  input: "input";
@@ -99,6 +123,12 @@ export declare const toolbarConfigurationSchema: z.ZodRecord<z.ZodString, z.ZodO
99
123
  requiresPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
124
  hideOnExecution: z.ZodOptional<z.ZodBoolean>;
101
125
  nodeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ shapes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
127
+ square: "square";
128
+ circle: "circle";
129
+ container: "container";
130
+ rectangle: "rectangle";
131
+ }>>>;
102
132
  handles: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
133
  handleType: z.ZodEnum<{
104
134
  input: "input";
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/canvas/schema/toolbar.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;iBAoC9B,CAAC;AAKH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMlC,CAAC;AAKH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAgD,CAAC;AAGxF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAK9E,MAAM,WAAW,kBAAkB;IAEjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAKD,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC"}
1
+ {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/canvas/schema/toolbar.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuC9B,CAAC;AAKH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMlC,CAAC;AAKH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAgD,CAAC;AAGxF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAK9E,MAAM,WAAW,kBAAkB;IAEjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAKD,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { nodeShapeSchema } from "./node-definition/shape.js";
2
3
  const toolbarActionSchema = z.object({
3
4
  id: z.string(),
4
5
  icon: z.string(),
@@ -8,6 +9,7 @@ const toolbarActionSchema = z.object({
8
9
  requiresPermissions: z.array(z.string()).optional(),
9
10
  hideOnExecution: z.boolean().optional(),
10
11
  nodeTypes: z.array(z.string()).optional(),
12
+ shapes: z.array(nodeShapeSchema).optional(),
11
13
  handles: z.array(z.object({
12
14
  handleType: z["enum"]([
13
15
  'output',
@@ -96,6 +96,7 @@ export declare const defaultWorkflowManifest: {
96
96
  requiresPermissions?: string[] | undefined;
97
97
  hideOnExecution?: boolean | undefined;
98
98
  nodeTypes?: string[] | undefined;
99
+ shapes?: ("square" | "circle" | "container" | "rectangle")[] | undefined;
99
100
  handles?: {
100
101
  handleType: "input" | "output" | "artifact";
101
102
  type?: "target" | "source" | undefined;
@@ -111,6 +112,7 @@ export declare const defaultWorkflowManifest: {
111
112
  requiresPermissions?: string[] | undefined;
112
113
  hideOnExecution?: boolean | undefined;
113
114
  nodeTypes?: string[] | undefined;
115
+ shapes?: ("square" | "circle" | "container" | "rectangle")[] | undefined;
114
116
  handles?: {
115
117
  handleType: "input" | "output" | "artifact";
116
118
  type?: "target" | "source" | 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"}
@@ -64,10 +64,11 @@ function replaceTemplateVars(template, vars) {
64
64
  function resolveHandles(handleGroups, context) {
65
65
  const isCollapsed = context?.isCollapsed ?? false;
66
66
  return handleGroups.map((group)=>{
67
+ const hidesGroup = isCollapsed && 'inner' === group.boundary;
67
68
  const handles = group.handles.flatMap((handle)=>{
68
69
  const isArtifactHandle = 'artifact' === handle.handleType;
69
70
  const handleBaseVisible = resolveVisibility(handle.visible, context);
70
- const handleVisible = isCollapsed && isArtifactHandle ? false : handleBaseVisible;
71
+ const handleVisible = hidesGroup || isCollapsed && isArtifactHandle ? false : handleBaseVisible;
71
72
  if (handle.repeat) {
72
73
  const array = getPropertyByPath(context, handle.repeat);
73
74
  if (!Array.isArray(array)) {
@@ -1 +1 @@
1
- {"version":3,"file":"manifest-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/manifest-resolver.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAKrE,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEhE,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAUD,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5C,CAAC;AAKF,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;IAE7F,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAE9C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEjD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAClD;AAKD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAE/E,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAKD,UAAU,YAAY;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkBD,wBAAgB,cAAc,CAC5B,eAAe,CAAC,EAAE,mBAAmB,EACrC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,eAAe,CAwCjB;AA6BD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,EACrC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAmBT;AAiCD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAKhF;AAuCD,wBAAgB,cAAc,CAC5B,YAAY,EAAE,mBAAmB,EAAE,EACnC,OAAO,EAAE,iBAAiB,GACzB,mBAAmB,EAAE,CAmEvB"}
1
+ {"version":3,"file":"manifest-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/manifest-resolver.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAKrE,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEhE,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAUD,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5C,CAAC;AAKF,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;IAE7F,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAE9C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEjD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAClD;AAKD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAE/E,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAKD,UAAU,YAAY;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkBD,wBAAgB,cAAc,CAC5B,eAAe,CAAC,EAAE,mBAAmB,EACrC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,eAAe,CAwCjB;AA6BD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,EACrC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAmBT;AAiCD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAKhF;AAuCD,wBAAgB,cAAc,CAC5B,YAAY,EAAE,mBAAmB,EAAE,EACnC,OAAO,EAAE,iBAAiB,GACzB,mBAAmB,EAAE,CAsEvB"}
@@ -33,10 +33,11 @@ function replaceTemplateVars(template, vars) {
33
33
  function resolveHandles(handleGroups, context) {
34
34
  const isCollapsed = context?.isCollapsed ?? false;
35
35
  return handleGroups.map((group)=>{
36
+ const hidesGroup = isCollapsed && 'inner' === group.boundary;
36
37
  const handles = group.handles.flatMap((handle)=>{
37
38
  const isArtifactHandle = 'artifact' === handle.handleType;
38
39
  const handleBaseVisible = resolveVisibility(handle.visible, context);
39
- const handleVisible = isCollapsed && isArtifactHandle ? false : handleBaseVisible;
40
+ const handleVisible = hidesGroup || isCollapsed && isArtifactHandle ? false : handleBaseVisible;
40
41
  if (handle.repeat) {
41
42
  const array = getPropertyByPath(context, handle.repeat);
42
43
  if (!Array.isArray(array)) {
@@ -42,6 +42,16 @@ const DEFAULT_ACTIONS_FOR_ALL_MODES = [
42
42
  }
43
43
  ]
44
44
  }
45
+ },
46
+ {
47
+ id: 'collapse',
48
+ icon: 'chevrons-down-up',
49
+ label: 'Toggle collapse',
50
+ condition: {
51
+ shapes: [
52
+ 'container'
53
+ ]
54
+ }
45
55
  }
46
56
  ];
47
57
  const DEFAULT_MODE_TOOLBARS = {
@@ -95,6 +105,10 @@ function evaluateCondition(manifest, action, nodeType, context) {
95
105
  }
96
106
  if (condition.hideOnExecution && context.executionState) return false;
97
107
  if (condition.nodeTypes && !condition.nodeTypes.includes(nodeType)) return false;
108
+ if (condition.shapes?.length) {
109
+ const shape = manifest.display?.shape;
110
+ if (!shape || !condition.shapes.includes(shape)) return false;
111
+ }
98
112
  if (condition.handles?.length) {
99
113
  const manifestHandles = manifest.handleConfiguration.flatMap((group)=>group.handles);
100
114
  const hasMatchingHandle = condition.handles.some((requiredHandle)=>manifestHandles.some((manifestHandle)=>manifestHandle.handleType === requiredHandle.handleType && (void 0 === requiredHandle.type || manifestHandle.type === requiredHandle.type)));
@@ -122,19 +136,31 @@ function convertToNodeAction(action, mode, nodeData) {
122
136
  }
123
137
  };
124
138
  }
139
+ function dedupeById(actions) {
140
+ const byId = new Map();
141
+ for (const action of actions)byId.set(action.id, action);
142
+ return [
143
+ ...byId.values()
144
+ ];
145
+ }
125
146
  function mergeToolbarConfigs(base, extension) {
126
147
  if (!base && !extension) return {
127
148
  actions: []
128
149
  };
129
150
  if (!base) return extension;
130
151
  if (!extension) return base;
152
+ const extensionIds = new Set([
153
+ ...extension.actions,
154
+ ...extension.overflowActions ?? []
155
+ ].map((action)=>action.id));
156
+ const notOverridden = (action)=>!extensionIds.has(action.id);
131
157
  return {
132
158
  actions: [
133
- ...base.actions,
159
+ ...base.actions.filter(notOverridden),
134
160
  ...extension.actions
135
161
  ],
136
162
  overflowActions: [
137
- ...base.overflowActions ?? [],
163
+ ...(base.overflowActions ?? []).filter(notOverridden),
138
164
  ...extension.overflowActions ?? []
139
165
  ]
140
166
  };
@@ -150,8 +176,9 @@ function resolveToolbar(manifest, context, nodeData) {
150
176
  } : rawDefaults;
151
177
  const nodeExtensions = manifestToolbarExtensions?.[mode];
152
178
  const merged = mergeToolbarConfigs(modeDefaults, nodeExtensions);
153
- const filteredActions = merged.actions.filter((action)=>evaluateCondition(manifest, action, nodeType, context)).map((action)=>convertToNodeAction(action, mode, nodeData));
154
- const filteredOverflow = (merged.overflowActions ?? []).filter((action)=>evaluateCondition(manifest, action, nodeType, context)).map((action)=>convertToNodeAction(action, mode, nodeData));
179
+ const resolveActions = (actions)=>dedupeById(actions.filter((action)=>evaluateCondition(manifest, action, nodeType, context))).map((action)=>convertToNodeAction(action, mode, nodeData));
180
+ const filteredActions = resolveActions(merged.actions);
181
+ const filteredOverflow = resolveActions(merged.overflowActions ?? []);
155
182
  if (0 === filteredActions.length && 0 === filteredOverflow.length) return;
156
183
  return {
157
184
  actions: filteredActions,
@@ -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,CA8C/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;AAsKD,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"}
@@ -14,6 +14,16 @@ const DEFAULT_ACTIONS_FOR_ALL_MODES = [
14
14
  }
15
15
  ]
16
16
  }
17
+ },
18
+ {
19
+ id: 'collapse',
20
+ icon: 'chevrons-down-up',
21
+ label: 'Toggle collapse',
22
+ condition: {
23
+ shapes: [
24
+ 'container'
25
+ ]
26
+ }
17
27
  }
18
28
  ];
19
29
  const DEFAULT_MODE_TOOLBARS = {
@@ -67,6 +77,10 @@ function evaluateCondition(manifest, action, nodeType, context) {
67
77
  }
68
78
  if (condition.hideOnExecution && context.executionState) return false;
69
79
  if (condition.nodeTypes && !condition.nodeTypes.includes(nodeType)) return false;
80
+ if (condition.shapes?.length) {
81
+ const shape = manifest.display?.shape;
82
+ if (!shape || !condition.shapes.includes(shape)) return false;
83
+ }
70
84
  if (condition.handles?.length) {
71
85
  const manifestHandles = manifest.handleConfiguration.flatMap((group)=>group.handles);
72
86
  const hasMatchingHandle = condition.handles.some((requiredHandle)=>manifestHandles.some((manifestHandle)=>manifestHandle.handleType === requiredHandle.handleType && (void 0 === requiredHandle.type || manifestHandle.type === requiredHandle.type)));
@@ -94,19 +108,31 @@ function convertToNodeAction(action, mode, nodeData) {
94
108
  }
95
109
  };
96
110
  }
111
+ function dedupeById(actions) {
112
+ const byId = new Map();
113
+ for (const action of actions)byId.set(action.id, action);
114
+ return [
115
+ ...byId.values()
116
+ ];
117
+ }
97
118
  function mergeToolbarConfigs(base, extension) {
98
119
  if (!base && !extension) return {
99
120
  actions: []
100
121
  };
101
122
  if (!base) return extension;
102
123
  if (!extension) return base;
124
+ const extensionIds = new Set([
125
+ ...extension.actions,
126
+ ...extension.overflowActions ?? []
127
+ ].map((action)=>action.id));
128
+ const notOverridden = (action)=>!extensionIds.has(action.id);
103
129
  return {
104
130
  actions: [
105
- ...base.actions,
131
+ ...base.actions.filter(notOverridden),
106
132
  ...extension.actions
107
133
  ],
108
134
  overflowActions: [
109
- ...base.overflowActions ?? [],
135
+ ...(base.overflowActions ?? []).filter(notOverridden),
110
136
  ...extension.overflowActions ?? []
111
137
  ]
112
138
  };
@@ -122,8 +148,9 @@ function resolveToolbar(manifest, context, nodeData) {
122
148
  } : rawDefaults;
123
149
  const nodeExtensions = manifestToolbarExtensions?.[mode];
124
150
  const merged = mergeToolbarConfigs(modeDefaults, nodeExtensions);
125
- const filteredActions = merged.actions.filter((action)=>evaluateCondition(manifest, action, nodeType, context)).map((action)=>convertToNodeAction(action, mode, nodeData));
126
- const filteredOverflow = (merged.overflowActions ?? []).filter((action)=>evaluateCondition(manifest, action, nodeType, context)).map((action)=>convertToNodeAction(action, mode, nodeData));
151
+ const resolveActions = (actions)=>dedupeById(actions.filter((action)=>evaluateCondition(manifest, action, nodeType, context))).map((action)=>convertToNodeAction(action, mode, nodeData));
152
+ const filteredActions = resolveActions(merged.actions);
153
+ const filteredOverflow = resolveActions(merged.overflowActions ?? []);
127
154
  if (0 === filteredActions.length && 0 === filteredOverflow.length) return;
128
155
  return {
129
156
  actions: filteredActions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "6.28.0",
3
+ "version": "6.29.0",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",