@notmrabhi/flowforge 0.1.52 → 0.1.54

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 (36) hide show
  1. package/dist/{GatewayBranchEdge-CrgczPYJ.js → GatewayBranchEdge-BWz43Sat.js} +99 -102
  2. package/dist/GatewayBranchEdge-BWz43Sat.js.map +1 -0
  3. package/dist/GatewayBranchEdge-Ukfp7i1Q.js +2 -0
  4. package/dist/GatewayBranchEdge-Ukfp7i1Q.js.map +1 -0
  5. package/dist/{templateSkeletons-f-XQQvyE.js → WorkflowExecutionHistory-B0OiFCyi.js} +804 -858
  6. package/dist/WorkflowExecutionHistory-B0OiFCyi.js.map +1 -0
  7. package/dist/{templateSkeletons-gOva2Xus.js → WorkflowExecutionHistory-BHb6-2lt.js} +2 -2
  8. package/dist/WorkflowExecutionHistory-BHb6-2lt.js.map +1 -0
  9. package/dist/buildBackendPayload-4SwOp7St.js +316 -0
  10. package/dist/buildBackendPayload-4SwOp7St.js.map +1 -0
  11. package/dist/buildBackendPayload-BvrjW1uM.js +2 -0
  12. package/dist/buildBackendPayload-BvrjW1uM.js.map +1 -0
  13. package/dist/canvas.cjs +1 -1
  14. package/dist/canvas.d.ts +0 -61
  15. package/dist/canvas.js +21 -25
  16. package/dist/core.cjs +1 -1
  17. package/dist/core.d.ts +163 -24
  18. package/dist/core.js +11 -9
  19. package/dist/core.js.map +1 -1
  20. package/dist/defaultUi.cjs +1 -1
  21. package/dist/defaultUi.js +1 -1
  22. package/dist/form.d.ts +0 -35
  23. package/dist/index-B-D9UuLO.js.map +1 -1
  24. package/dist/index-DUbQPmIx.js.map +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.ts +0 -43
  28. package/dist/index.js +123 -443
  29. package/dist/index.js.map +1 -1
  30. package/dist/nodeRegistry.d.ts +0 -24
  31. package/package.json +1 -1
  32. package/dist/GatewayBranchEdge-CMY30xhz.js +0 -2
  33. package/dist/GatewayBranchEdge-CMY30xhz.js.map +0 -1
  34. package/dist/GatewayBranchEdge-CrgczPYJ.js.map +0 -1
  35. package/dist/templateSkeletons-f-XQQvyE.js.map +0 -1
  36. package/dist/templateSkeletons-gOva2Xus.js.map +0 -1
package/dist/canvas.js CHANGED
@@ -1,30 +1,26 @@
1
- import { F as a, a as s, S as r, F as l, W as t, b as d, c as n, o as i, u as f, w } from "./templateSkeletons-f-XQQvyE.js";
2
- import { d as k } from "./messages-CO299wPN.js";
3
- import { l as F, s as b } from "./bpmn-CtfWDaOY.js";
4
- import { A as N, b as m, E as u, c as S, F as c, R as T, S as v, T as x, W as A, e as E } from "./GatewayBranchEdge-CrgczPYJ.js";
1
+ import { F as a, a as r, S as s, F as l, W as d, b as t } from "./WorkflowExecutionHistory-B0OiFCyi.js";
2
+ import { d as i } from "./messages-CO299wPN.js";
3
+ import { l as w, s as F } from "./bpmn-CtfWDaOY.js";
4
+ import { A as g, b as N, E as m, c as n, F as b, R as k, S as T, T as u, W as v, e as x } from "./GatewayBranchEdge-BWz43Sat.js";
5
5
  export {
6
- N as ActionNode,
7
- m as ApprovalNode,
8
- u as EdgeWithPlusLabel,
9
- S as EndNode,
10
- c as FilterNode,
6
+ g as ActionNode,
7
+ N as ApprovalNode,
8
+ m as EdgeWithPlusLabel,
9
+ n as EndNode,
10
+ b as FilterNode,
11
11
  a as FlowForgeCanvas,
12
- s as FlowForgeHeader,
13
- T as RestApiNode,
14
- v as StartNode,
15
- r as SubWorkflowPreviewDrawer,
16
- x as TriggerNode,
17
- A as WebhookTriggerNode,
12
+ r as FlowForgeHeader,
13
+ k as RestApiNode,
14
+ T as StartNode,
15
+ s as SubWorkflowPreviewDrawer,
16
+ u as TriggerNode,
17
+ v as WebhookTriggerNode,
18
18
  l as WorkflowCanvas,
19
- t as WorkflowExecutionHistory,
20
- d as WorkflowTemplateLibrary,
21
- n as accessRequestSkeleton,
22
- E as builtInNodeTypes,
23
- k as defaultFlowForgeMessages,
24
- F as loadWorkflowFromBpmn,
25
- i as offboardingSkeleton,
26
- b as saveWorkflowToBpmn,
27
- f as userOnboardingSkeleton,
28
- w as webhookIntegrationSkeleton
19
+ d as WorkflowExecutionHistory,
20
+ t as WorkflowTemplateLibrary,
21
+ x as builtInNodeTypes,
22
+ i as defaultFlowForgeMessages,
23
+ w as loadWorkflowFromBpmn,
24
+ F as saveWorkflowToBpmn
29
25
  };
30
26
  //# sourceMappingURL=canvas.js.map
package/dist/core.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nodeRegistry.cjs"),r=require("./templateRegistry.cjs"),t=require("./messages-O9Tw_XXR.js"),o=require("./bpmn-CcuE2X_Q.js");exports.NodeTypeRegistry=e.NodeTypeRegistry;exports.baseNodeDefaults=e.baseNodeDefaults;exports.conditionBranchDescriptor=e.conditionBranchDescriptor;exports.defineNode=e.defineNode;exports.endEventDescriptor=e.endEventDescriptor;exports.makeSubWorkflowDescriptor=e.makeSubWorkflowDescriptor;exports.nodeTypeRegistry=e.nodeTypeRegistry;exports.notificationDescriptor=e.notificationDescriptor;exports.restApiDescriptor=e.restApiDescriptor;exports.startEventDescriptor=e.startEventDescriptor;exports.subWorkflowDescriptor=e.subWorkflowDescriptor;exports.webhookTriggerDescriptor=e.webhookTriggerDescriptor;exports.webhookTriggerTemplate=e.webhookTriggerTemplate;exports.TemplateRegistry=r.TemplateRegistry;exports.templateRegistry=r.templateRegistry;exports.defaultFlowForgeMessages=t.defaultFlowForgeMessages;exports.loadWorkflowFromBpmn=o.loadWorkflowFromBpmn;exports.saveWorkflowToBpmn=o.saveWorkflowToBpmn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nodeRegistry.cjs"),r=require("./templateRegistry.cjs"),t=require("./messages-O9Tw_XXR.js"),o=require("./bpmn-CcuE2X_Q.js"),i=require("./buildBackendPayload-BvrjW1uM.js");exports.NodeTypeRegistry=e.NodeTypeRegistry;exports.baseNodeDefaults=e.baseNodeDefaults;exports.conditionBranchDescriptor=e.conditionBranchDescriptor;exports.defineNode=e.defineNode;exports.endEventDescriptor=e.endEventDescriptor;exports.makeSubWorkflowDescriptor=e.makeSubWorkflowDescriptor;exports.nodeTypeRegistry=e.nodeTypeRegistry;exports.notificationDescriptor=e.notificationDescriptor;exports.restApiDescriptor=e.restApiDescriptor;exports.startEventDescriptor=e.startEventDescriptor;exports.subWorkflowDescriptor=e.subWorkflowDescriptor;exports.webhookTriggerDescriptor=e.webhookTriggerDescriptor;exports.webhookTriggerTemplate=e.webhookTriggerTemplate;exports.TemplateRegistry=r.TemplateRegistry;exports.templateRegistry=r.templateRegistry;exports.defaultFlowForgeMessages=t.defaultFlowForgeMessages;exports.loadWorkflowFromBpmn=o.loadWorkflowFromBpmn;exports.saveWorkflowToBpmn=o.saveWorkflowToBpmn;exports.buildBackendPayload=i.buildBackendPayload;
2
2
  //# sourceMappingURL=core.cjs.map
package/dist/core.d.ts CHANGED
@@ -17,6 +17,18 @@ export declare interface ApiWorkflowTemplate {
17
17
  templateUI?: Partial<Omit<WorkflowTemplate, 'triggerKey' | 'label' | 'description' | 'availableTasks'>>;
18
18
  }
19
19
 
20
+ export declare interface ApplicationTaskLike {
21
+ name?: string;
22
+ taskKey?: string;
23
+ applicationUuid?: string;
24
+ configuration?: unknown[];
25
+ ui?: {
26
+ bpmnEmit?: BpmnEmitSpec;
27
+ [key: string]: unknown;
28
+ };
29
+ [key: string]: unknown;
30
+ }
31
+
20
32
  /**
21
33
  * Base defaults shared by every node descriptor. A new node only has to specify
22
34
  * what makes it different — these fill in the rest.
@@ -33,6 +45,16 @@ export declare interface BpmnElement {
33
45
  [key: string]: unknown;
34
46
  }
35
47
 
48
+ export declare interface BpmnEmitSpec {
49
+ kind: 'linear' | 'gated' | 'filter' | 'approval';
50
+ serviceTasks?: ServiceTaskSpec[];
51
+ gateway?: GatewaySpec;
52
+ templateFlows?: TemplateFlowSpec[];
53
+ outgoingConditions?: Record<string, string>;
54
+ dmnEmit?: DmnEmitSpec;
55
+ callActivity?: Record<string, unknown>;
56
+ }
57
+
36
58
  export declare interface BpmnSaveOptions {
37
59
  processId?: string;
38
60
  processName?: string;
@@ -46,6 +68,62 @@ export declare interface BranchMap {
46
68
  };
47
69
  }
48
70
 
71
+ /**
72
+ * Generate a backend-ready payload from canvas state + task definitions.
73
+ *
74
+ * @example
75
+ * const payload = buildBackendPayload({
76
+ * state: { slots, branches },
77
+ * tasksByKey: { USER_CREATION: {...}, USER_GROUP_ASSIGNMENT: {...} },
78
+ * context: { customerKey: '51995', workflowName: 'My WF' },
79
+ * config: { triggerToCategory: { CUSTOM_TRIGGER: 'CUSTOM_CATEGORY' } },
80
+ * });
81
+ * await api.post('/process', payload);
82
+ */
83
+ export declare function buildBackendPayload(opts: BuildPayloadOptions): Record<string, unknown>;
84
+
85
+ export declare interface BuildPayloadConfig {
86
+ /**
87
+ * Map of trigger eventType → workflowCategory string. Defaults to a small
88
+ * IAM-shaped fallback; consumers should pass the full map they use.
89
+ */
90
+ triggerToCategory?: Record<string, string>;
91
+ /** eventType values that should set `sources: ['SCHEDULER']` and skip the message block. */
92
+ schedulerEventTypes?: string[];
93
+ /** DMN LHS prefix for condition expressions (default IAM-style). */
94
+ conditionPathPrefix?: string;
95
+ /** Fallback workflowCategory when eventType isn't mapped. */
96
+ defaultWorkflowCategory?: string;
97
+ /** End-event ids — override per backend convention. */
98
+ endEventIds?: {
99
+ success: string;
100
+ failure: string;
101
+ rejected: string;
102
+ };
103
+ /** Names rendered on end events. */
104
+ endEventNames?: {
105
+ success: string;
106
+ failure: string;
107
+ rejected: string;
108
+ };
109
+ /** Start event id used in the outer chain. */
110
+ startEventId?: string;
111
+ }
112
+
113
+ export declare interface BuildPayloadContext {
114
+ customerKey: string;
115
+ workflowName: string;
116
+ /** Anything else the host wants exposed via `from: 'ctx', key: '...'`. */
117
+ [key: string]: unknown;
118
+ }
119
+
120
+ export declare interface BuildPayloadOptions {
121
+ state: CanvasState_2;
122
+ tasksByKey: Record<string, ApplicationTaskLike>;
123
+ context: BuildPayloadContext;
124
+ config?: BuildPayloadConfig;
125
+ }
126
+
49
127
  export declare interface CanvasSlot {
50
128
  id: string;
51
129
  kind: SlotKind;
@@ -59,6 +137,38 @@ export declare interface CanvasSlot {
59
137
  branchLabels?: Record<string, string>;
60
138
  }
61
139
 
140
+ /**
141
+ * buildBackendPayload — generic BPMN/DMN/canvasState emitter driven by each
142
+ * task's `ui.bpmnEmit` block. Consumer ships per-task bpmnEmit specs from
143
+ * the backend; the package handles the walk.
144
+ *
145
+ * Originally lived in IAM as `flowforgeStateToBackendJson`. Moved into the
146
+ * package so every consumer gets the same emitter — and so DMN/filter/
147
+ * approval fixes ship once, to everyone.
148
+ *
149
+ * Consumer injects:
150
+ * - canvasState — `{ slots, branches }` from the canvas
151
+ * - tasksByKey — `{ [descriptorType]: ApplicationTask }` lookup
152
+ * - context — host-specific scalars (customerKey, workflowName)
153
+ * - config — IAM-shaped defaults (path prefix, end-event ids,
154
+ * trigger→category map, scheduler events)
155
+ *
156
+ * Returns a JSON object ready to POST to the backend.
157
+ */
158
+ declare type CanvasSlot_2 = {
159
+ id: string;
160
+ kind?: string;
161
+ descriptorType?: string;
162
+ nodeData?: Record<string, unknown>;
163
+ formData?: Record<string, unknown>;
164
+ [key: string]: unknown;
165
+ };
166
+
167
+ declare type CanvasState_2 = {
168
+ slots?: CanvasSlot_2[];
169
+ branches?: Record<string, unknown>;
170
+ };
171
+
62
172
  export declare const conditionBranchDescriptor: NodeDescriptor;
63
173
 
64
174
  /** One column in a per-field condition row */
@@ -80,12 +190,6 @@ declare interface ConditionFieldDef {
80
190
  value: string;
81
191
  label: string;
82
192
  }>;
83
- /**
84
- * Declarative dynamic options — same shape as `FieldDescriptor.optionsSource`.
85
- * `dependsOn` resolves against the OUTER form values (not the condition entry),
86
- * so a condition column can depend on another top-level field (e.g. attributes
87
- * scoped by `applicationUuid`).
88
- */
89
193
  optionsSource?: OptionsSource;
90
194
  /** When true, renders a FormulaInput chip editor instead of a plain <input> */
91
195
  formula?: boolean;
@@ -114,6 +218,22 @@ export declare interface DmnDefinition {
114
218
  [key: string]: unknown;
115
219
  }
116
220
 
221
+ export declare interface DmnEmitSpec {
222
+ tableName: string;
223
+ inputExpr: string;
224
+ hitPolicy?: string;
225
+ outputs?: DmnOutputSpec[];
226
+ operatorMap?: Record<string, string>;
227
+ valuesField?: string;
228
+ }
229
+
230
+ export declare interface DmnOutputSpec {
231
+ id: string;
232
+ label?: string;
233
+ name: string;
234
+ typeRef?: string;
235
+ }
236
+
117
237
  /**
118
238
  * End event — a fixed skeleton node with no user-editable form.
119
239
  * The canvas seeds the main-spine end as the literal slot id `'end'`, and one
@@ -125,6 +245,18 @@ export declare interface DmnDefinition {
125
245
  */
126
246
  export declare const endEventDescriptor: NodeDescriptor;
127
247
 
248
+ export declare interface ExtensionFieldSpec {
249
+ name: string;
250
+ source?: {
251
+ type: 'literal' | 'json' | 'taskConfig' | 'formData';
252
+ value?: unknown;
253
+ shape?: Record<string, FieldRef>;
254
+ passthrough?: boolean;
255
+ exclude?: string[];
256
+ key?: string;
257
+ };
258
+ }
259
+
128
260
  /** Condition definition attached to a FieldDescriptor */
129
261
  declare interface FieldConditionDef {
130
262
  fields: ConditionFieldDef[];
@@ -205,6 +337,12 @@ declare interface FieldDescriptor {
205
337
  [key: string]: unknown;
206
338
  }
207
339
 
340
+ export declare interface FieldRef {
341
+ from: 'literal' | 'task' | 'ctx' | 'slot' | 'formData';
342
+ key?: string;
343
+ value?: unknown;
344
+ }
345
+
208
346
  declare interface FieldTransform {
209
347
  in?: (value: unknown) => unknown;
210
348
  out?: (value: unknown) => unknown;
@@ -241,6 +379,11 @@ export declare interface FlowForgeMessages {
241
379
  cancel: string;
242
380
  }
243
381
 
382
+ export declare interface GatewaySpec {
383
+ idTemplate: string;
384
+ name?: string;
385
+ }
386
+
244
387
  /**
245
388
  * Context passed to `NodeDescriptor.canInsert(ctx)` describing where on the
246
389
  * canvas the user clicked "+ Add step". Used by position-aware insertion rules.
@@ -339,26 +482,8 @@ export declare const notificationDescriptor: NodeDescriptor;
339
482
  declare interface OptionsSource {
340
483
  /** Resolver id — must match a key in the host's `optionsResolvers` map. */
341
484
  id: string;
342
- /**
343
- * Other field values this resolver depends on. Two shapes accepted:
344
- * - `string[]` — pass through verbatim ({ fieldA: values.fieldA, ... })
345
- * - `Record<arg, fieldName>` — rename parent values for the resolver
346
- *
347
- * When any dep value changes, the cache key for this field invalidates
348
- * and the resolver re-fires.
349
- */
350
485
  dependsOn?: string[] | Record<string, string>;
351
- /**
352
- * Static params merged into the deps object for every call. Use for
353
- * "URL template via the generic resolver" style:
354
- * { id: 'default', params: { url: '/groups', valueKey: 'uuid' } }
355
- */
356
486
  params?: Record<string, unknown>;
357
- /**
358
- * Lookup individual options by value (edit-mode hydration). When set,
359
- * the field calls this resolver with `{ ids: [...] }` to render labels
360
- * for already-selected values that aren't in the current page.
361
- */
362
487
  resolveValueId?: string;
363
488
  }
364
489
 
@@ -369,6 +494,13 @@ export declare const restApiDescriptor: NodeDescriptor;
369
494
 
370
495
  export declare function saveWorkflowToBpmn(workflow: WorkflowState, options?: BpmnSaveOptions): string;
371
496
 
497
+ export declare interface ServiceTaskSpec {
498
+ idTemplate: string;
499
+ name?: string;
500
+ flowableClass?: string;
501
+ extensionFields?: ExtensionFieldSpec[];
502
+ }
503
+
372
504
  declare type SlotKind = 'start' | 'end' | 'addTrigger' | 'triggerFixed' | 'userTask' | 'addStep' | 'filter' | 'approval';
373
505
 
374
506
  /**
@@ -403,6 +535,13 @@ export declare interface SubWorkflowDescriptorOptions {
403
535
  }>>;
404
536
  }
405
537
 
538
+ export declare interface TemplateFlowSpec {
539
+ from: string;
540
+ to: string;
541
+ idTemplate?: string;
542
+ condition?: string | null;
543
+ }
544
+
406
545
  export declare class TemplateRegistry {
407
546
  private templates;
408
547
  /**
package/dist/core.js CHANGED
@@ -1,25 +1,27 @@
1
- import { NodeTypeRegistry as r, baseNodeDefaults as t, conditionBranchDescriptor as s, defineNode as i, endEventDescriptor as p, makeSubWorkflowDescriptor as a, nodeTypeRegistry as f, notificationDescriptor as l, restApiDescriptor as n, startEventDescriptor as c, subWorkflowDescriptor as m, webhookTriggerDescriptor as d, webhookTriggerTemplate as g } from "./nodeRegistry.js";
2
- import { TemplateRegistry as k, templateRegistry as w } from "./templateRegistry.js";
1
+ import { NodeTypeRegistry as r, baseNodeDefaults as t, conditionBranchDescriptor as s, defineNode as i, endEventDescriptor as p, makeSubWorkflowDescriptor as a, nodeTypeRegistry as l, notificationDescriptor as d, restApiDescriptor as f, startEventDescriptor as n, subWorkflowDescriptor as c, webhookTriggerDescriptor as m, webhookTriggerTemplate as g } from "./nodeRegistry.js";
2
+ import { TemplateRegistry as k, templateRegistry as b } from "./templateRegistry.js";
3
3
  import { d as y } from "./messages-CO299wPN.js";
4
4
  import { l as u, s as x } from "./bpmn-CtfWDaOY.js";
5
+ import { b as R } from "./buildBackendPayload-4SwOp7St.js";
5
6
  export {
6
7
  r as NodeTypeRegistry,
7
8
  k as TemplateRegistry,
8
9
  t as baseNodeDefaults,
10
+ R as buildBackendPayload,
9
11
  s as conditionBranchDescriptor,
10
12
  y as defaultFlowForgeMessages,
11
13
  i as defineNode,
12
14
  p as endEventDescriptor,
13
15
  u as loadWorkflowFromBpmn,
14
16
  a as makeSubWorkflowDescriptor,
15
- f as nodeTypeRegistry,
16
- l as notificationDescriptor,
17
- n as restApiDescriptor,
17
+ l as nodeTypeRegistry,
18
+ d as notificationDescriptor,
19
+ f as restApiDescriptor,
18
20
  x as saveWorkflowToBpmn,
19
- c as startEventDescriptor,
20
- m as subWorkflowDescriptor,
21
- w as templateRegistry,
22
- d as webhookTriggerDescriptor,
21
+ n as startEventDescriptor,
22
+ c as subWorkflowDescriptor,
23
+ b as templateRegistry,
24
+ m as webhookTriggerDescriptor,
23
25
  g as webhookTriggerTemplate
24
26
  };
25
27
  //# sourceMappingURL=core.js.map
package/dist/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"core.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GatewayBranchEdge-CMY30xhz.js");exports.ActionNode=e.ActionNode;exports.AddTriggerNode=e.AddTriggerNode;exports.ApprovalNode=e.ApprovalNode;exports.DelayNode=e.DelayNode;exports.EdgeWithPlusLabel=e.EdgeWithPlusLabel;exports.EndNode=e.EndNode;exports.FilterNode=e.FilterNode;exports.GatewayBranchEdge=e.GatewayBranchEdge;exports.LabelPlusEdge=e.LabelPlusEdge;exports.NotificationNode=e.NotificationNode;exports.PlainEdge=e.PlainEdge;exports.PlusEdge=e.PlusEdge;exports.StartNode=e.StartNode;exports.TriggerNode=e.TriggerNode;exports.builtInNodeTypes=e.builtInNodeTypes;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GatewayBranchEdge-Ukfp7i1Q.js");exports.ActionNode=e.ActionNode;exports.AddTriggerNode=e.AddTriggerNode;exports.ApprovalNode=e.ApprovalNode;exports.DelayNode=e.DelayNode;exports.EdgeWithPlusLabel=e.EdgeWithPlusLabel;exports.EndNode=e.EndNode;exports.FilterNode=e.FilterNode;exports.GatewayBranchEdge=e.GatewayBranchEdge;exports.LabelPlusEdge=e.LabelPlusEdge;exports.NotificationNode=e.NotificationNode;exports.PlainEdge=e.PlainEdge;exports.PlusEdge=e.PlusEdge;exports.StartNode=e.StartNode;exports.TriggerNode=e.TriggerNode;exports.builtInNodeTypes=e.builtInNodeTypes;
2
2
  //# sourceMappingURL=defaultUi.cjs.map
package/dist/defaultUi.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as d, a as s, b as o, D as N, E as i, c as l, F as r, G as t, L as g, N as E, P as n, d as P, S as b, T as c, e as p } from "./GatewayBranchEdge-CrgczPYJ.js";
1
+ import { A as d, a as s, b as o, D as N, E as i, c as l, F as r, G as t, L as g, N as E, P as n, d as P, S as b, T as c, e as p } from "./GatewayBranchEdge-BWz43Sat.js";
2
2
  export {
3
3
  d as ActionNode,
4
4
  s as AddTriggerNode,
package/dist/form.d.ts CHANGED
@@ -161,12 +161,6 @@ export declare interface ConditionFieldDef {
161
161
  value: string;
162
162
  label: string;
163
163
  }>;
164
- /**
165
- * Declarative dynamic options — same shape as `FieldDescriptor.optionsSource`.
166
- * `dependsOn` resolves against the OUTER form values (not the condition entry),
167
- * so a condition column can depend on another top-level field (e.g. attributes
168
- * scoped by `applicationUuid`).
169
- */
170
164
  optionsSource?: OptionsSource;
171
165
  /** When true, renders a FormulaInput chip editor instead of a plain <input> */
172
166
  formula?: boolean;
@@ -660,7 +654,6 @@ export declare interface ObjectFieldRendererProps {
660
654
  /** A resolver function — transport-agnostic. */
661
655
  export declare type OptionsResolver = (deps: Record<string, unknown>, ctx: OptionsResolverContext) => Promise<OptionsResolverResult>;
662
656
 
663
- /** Args passed to a resolver per call — cursor for pagination, input for typeahead. */
664
657
  export declare interface OptionsResolverContext {
665
658
  cursor?: unknown;
666
659
  input?: string;
@@ -682,10 +675,6 @@ export declare interface OptionsResolverResult {
682
675
  nextCursor?: unknown;
683
676
  }
684
677
 
685
- /**
686
- * Map of named resolvers — the host registers these once on the canvas / form.
687
- * Keys are the `optionsSource.id` strings referenced by field descriptors.
688
- */
689
678
  export declare type OptionsResolvers = Record<string, OptionsResolver>;
690
679
 
691
680
  declare interface OptionsResolversContextValue {
@@ -702,26 +691,8 @@ export declare function OptionsResolversProvider({ resolvers, children }: Provid
702
691
  export declare interface OptionsSource {
703
692
  /** Resolver id — must match a key in the host's `optionsResolvers` map. */
704
693
  id: string;
705
- /**
706
- * Other field values this resolver depends on. Two shapes accepted:
707
- * - `string[]` — pass through verbatim ({ fieldA: values.fieldA, ... })
708
- * - `Record<arg, fieldName>` — rename parent values for the resolver
709
- *
710
- * When any dep value changes, the cache key for this field invalidates
711
- * and the resolver re-fires.
712
- */
713
694
  dependsOn?: string[] | Record<string, string>;
714
- /**
715
- * Static params merged into the deps object for every call. Use for
716
- * "URL template via the generic resolver" style:
717
- * { id: 'default', params: { url: '/groups', valueKey: 'uuid' } }
718
- */
719
695
  params?: Record<string, unknown>;
720
- /**
721
- * Lookup individual options by value (edit-mode hydration). When set,
722
- * the field calls this resolver with `{ ids: [...] }` to render labels
723
- * for already-selected values that aren't in the current page.
724
- */
725
696
  resolveValueId?: string;
726
697
  }
727
698
 
@@ -1063,12 +1034,6 @@ export declare interface VariablePickerProps {
1063
1034
  * 'popover' — absolutely positioned, shown/hidden via isOpen.
1064
1035
  */
1065
1036
  mode?: 'drawer' | 'popover';
1066
- /**
1067
- * Render the panel via a body-level Portal and fix-position it next to
1068
- * the nearest MUI Drawer (`.MuiDrawer-paper`) so it escapes clipping
1069
- * parents. Only meaningful for `mode='drawer'`; popover mode already
1070
- * portals itself. Default: false.
1071
- */
1072
1037
  floating?: boolean;
1073
1038
  }
1074
1039