@notmrabhi/flowforge 0.1.20 → 0.1.21

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 (53) hide show
  1. package/package.json +1 -1
  2. package/dist/GatewayBranchEdge-BdUVHQJc.js +0 -1263
  3. package/dist/GatewayBranchEdge-DK6kuCK2.js +0 -1
  4. package/dist/SchemaBuilderDrawer-157p-2Vj.js +0 -1136
  5. package/dist/SchemaBuilderDrawer-Wje7pVrn.js +0 -1
  6. package/dist/bpmn-CcuE2X_Q.js +0 -2
  7. package/dist/bpmn-CtfWDaOY.js +0 -33
  8. package/dist/canvas.cjs +0 -1
  9. package/dist/canvas.d.ts +0 -809
  10. package/dist/canvas.js +0 -28
  11. package/dist/canvasTokens-CAD6G24b.js +0 -32
  12. package/dist/canvasTokens-gKNYrPl4.js +0 -1
  13. package/dist/core.cjs +0 -1
  14. package/dist/core.d.ts +0 -374
  15. package/dist/core.js +0 -24
  16. package/dist/defaultUi.cjs +0 -1
  17. package/dist/defaultUi.d.ts +0 -83
  18. package/dist/defaultUi.js +0 -18
  19. package/dist/form.cjs +0 -1
  20. package/dist/form.d.ts +0 -857
  21. package/dist/form.js +0 -44
  22. package/dist/index-B31-Y5uO.js +0 -11
  23. package/dist/index-B3aHpb84.js +0 -13
  24. package/dist/index-BU09HbVh.js +0 -10176
  25. package/dist/index-BnzttJ4w.js +0 -13758
  26. package/dist/index-BysKSEtZ.js +0 -1
  27. package/dist/index-CQ0cVcHp.js +0 -2
  28. package/dist/index-CkjEllpd.js +0 -1
  29. package/dist/index-Codx5QwP.js +0 -41
  30. package/dist/index-Cw9DC-tf.js +0 -76
  31. package/dist/index-CzPi8KQC.js +0 -1310
  32. package/dist/index-D14V8rKX.js +0 -1
  33. package/dist/index-Da5NHCS2.js +0 -8132
  34. package/dist/index-a1IOaYsW.js +0 -9
  35. package/dist/index-a3QMaedZ.js +0 -2553
  36. package/dist/index-gtgq_241.js +0 -3
  37. package/dist/index-l6kvDx-m.js +0 -1360
  38. package/dist/index-lcviy90e.js +0 -613
  39. package/dist/index-wOnYb3DO.js +0 -567
  40. package/dist/index.cjs +0 -1
  41. package/dist/index.d.ts +0 -1409
  42. package/dist/index.js +0 -107
  43. package/dist/messages-CO299wPN.js +0 -22
  44. package/dist/messages-O9Tw_XXR.js +0 -1
  45. package/dist/nodeRegistry.cjs +0 -1
  46. package/dist/nodeRegistry.d.ts +0 -334
  47. package/dist/nodeRegistry.js +0 -555
  48. package/dist/style.css +0 -6
  49. package/dist/templateRegistry.cjs +0 -1
  50. package/dist/templateRegistry.d.ts +0 -83
  51. package/dist/templateRegistry.js +0 -43
  52. package/dist/templateSkeletons--Ol7Sg7H.js +0 -1
  53. package/dist/templateSkeletons-DcvDac7_.js +0 -2954
package/dist/canvas.js DELETED
@@ -1,28 +0,0 @@
1
- import { F as a, S as s, F as r, W as t, a as l, b as n, o as d, u as i, w as f } from "./templateSkeletons-DcvDac7_.js";
2
- import { d as w } from "./messages-CO299wPN.js";
3
- import { l as p, s as b } from "./bpmn-CtfWDaOY.js";
4
- import { A as F, b as N, E as m, c as u, F as S, R as T, S as c, T as v, W as x, e as A } from "./GatewayBranchEdge-BdUVHQJc.js";
5
- export {
6
- F as ActionNode,
7
- N as ApprovalNode,
8
- m as EdgeWithPlusLabel,
9
- u as EndNode,
10
- S as FilterNode,
11
- a as FlowForgeCanvas,
12
- T as RestApiNode,
13
- c as StartNode,
14
- s as SubWorkflowPreviewDrawer,
15
- v as TriggerNode,
16
- x as WebhookTriggerNode,
17
- r as WorkflowCanvas,
18
- t as WorkflowExecutionHistory,
19
- l as WorkflowTemplateLibrary,
20
- n as accessRequestSkeleton,
21
- A as builtInNodeTypes,
22
- w as defaultFlowForgeMessages,
23
- p as loadWorkflowFromBpmn,
24
- d as offboardingSkeleton,
25
- b as saveWorkflowToBpmn,
26
- i as userOnboardingSkeleton,
27
- f as webhookIntegrationSkeleton
28
- };
@@ -1,32 +0,0 @@
1
- const e = 350, o = 18, c = [
2
- { bg: "#e3f2fd", color: "#1565c0" },
3
- { bg: "#e8f5e9", color: "#2e7d32" },
4
- { bg: "#fff3e0", color: "#e65100" },
5
- { bg: "#fce4ec", color: "#880e4f" },
6
- { bg: "#ede7f6", color: "#4527a0" }
7
- ], f = {
8
- running: "#1976d2",
9
- success: "#2e7d32",
10
- failed: "#c62828",
11
- cancelled: "#757575",
12
- pending: "#9e9e9e",
13
- skipped: "#9e9e9e"
14
- }, l = {
15
- GET: { bg: "#e8f5e9", color: "#2e7d32" },
16
- POST: { bg: "#e3f2fd", color: "#1565c0" },
17
- PUT: { bg: "#fff3e0", color: "#e65100" },
18
- PATCH: { bg: "#fce4ec", color: "#880e4f" },
19
- DELETE: { bg: "#ffebee", color: "#b71c1c" }
20
- }, b = {
21
- event: { label: "Event", bg: "#e8f5e9", color: "#2e7d32" },
22
- scheduler: { label: "Scheduler", bg: "#fff3e0", color: "#e65100" },
23
- webhook: { label: "Webhook", bg: "#e3f2fd", color: "#1565c0" }
24
- };
25
- export {
26
- c as B,
27
- f as E,
28
- l as H,
29
- o as N,
30
- b as T,
31
- e as a
32
- };
@@ -1 +0,0 @@
1
- "use strict";const e=[{bg:"#e3f2fd",color:"#1565c0"},{bg:"#e8f5e9",color:"#2e7d32"},{bg:"#fff3e0",color:"#e65100"},{bg:"#fce4ec",color:"#880e4f"},{bg:"#ede7f6",color:"#4527a0"}],c={running:"#1976d2",success:"#2e7d32",failed:"#c62828",cancelled:"#757575",pending:"#9e9e9e",skipped:"#9e9e9e"},o={GET:{bg:"#e8f5e9",color:"#2e7d32"},POST:{bg:"#e3f2fd",color:"#1565c0"},PUT:{bg:"#fff3e0",color:"#e65100"},PATCH:{bg:"#fce4ec",color:"#880e4f"},DELETE:{bg:"#ffebee",color:"#b71c1c"}},E={event:{label:"Event",bg:"#e8f5e9",color:"#2e7d32"},scheduler:{label:"Scheduler",bg:"#fff3e0",color:"#e65100"},webhook:{label:"Webhook",bg:"#e3f2fd",color:"#1565c0"}};exports.BRANCH_PALETTE=e;exports.EXECUTION_STATUS_COLOR=c;exports.HTTP_METHOD_STYLE=o;exports.NODE_DESCRIPTOR_ICON_SIZE=18;exports.NODE_WIDTH=350;exports.TRIGGER_CATEGORY_STYLE=E;
package/dist/core.cjs DELETED
@@ -1 +0,0 @@
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;
package/dist/core.d.ts DELETED
@@ -1,374 +0,0 @@
1
- import { AnySchema } from 'yup';
2
- import { ReactNode } from 'react';
3
-
4
- /**
5
- * Base defaults shared by every node descriptor. A new node only has to specify
6
- * what makes it different — these fill in the rest.
7
- *
8
- * - `formSchema: []` → no config form unless the node defines one
9
- * - `bpmnEntry` / `bpmnExit` → incoming/outgoing flow connects to the node id itself
10
- * - `emitBpmnElements` → a single generic bpmn:Task; override for real output
11
- */
12
- export declare const baseNodeDefaults: Pick<NodeDescriptor, 'formSchema' | 'bpmnEntry' | 'bpmnExit' | 'emitBpmnElements'>;
13
-
14
- export declare interface BpmnElement {
15
- id: string;
16
- $type: string;
17
- [key: string]: unknown;
18
- }
19
-
20
- export declare interface BpmnSaveOptions {
21
- processId?: string;
22
- processName?: string;
23
- }
24
-
25
- declare type BranchChain = CanvasSlot[];
26
-
27
- export declare interface BranchMap {
28
- [filterId: string]: {
29
- [branchKey: string]: BranchChain;
30
- };
31
- }
32
-
33
- export declare interface CanvasSlot {
34
- id: string;
35
- kind: SlotKind;
36
- reactFlowType: string;
37
- descriptorType?: string;
38
- formData?: Record<string, unknown>;
39
- nodeData?: Record<string, unknown>;
40
- deletable?: boolean;
41
- label?: string;
42
- /** Maps branch key → display label. e.g. { pass: 'Pass', fail: 'Fail' } */
43
- branchLabels?: Record<string, string>;
44
- }
45
-
46
- export declare const conditionBranchDescriptor: NodeDescriptor;
47
-
48
- /** One column in a per-field condition row */
49
- declare interface ConditionFieldDef {
50
- /** Key used to store this column's value in ConditionEntry */
51
- id: string;
52
- /**
53
- * 'select' — native <select> with user-supplied options
54
- * 'operator' — native <select> pre-filled with the standard operator list (no options needed)
55
- * 'text' — plain <input>
56
- * any other string — falls back to <input>
57
- */
58
- type: 'select' | 'operator' | 'text' | string;
59
- colSpan?: number;
60
- label?: string;
61
- placeholder?: string;
62
- /** Options for select columns — user defines these, renderer just renders them */
63
- options?: Array<{
64
- value: string;
65
- label: string;
66
- }>;
67
- /** When true, renders a FormulaInput chip editor instead of a plain <input> */
68
- formula?: boolean;
69
- }
70
-
71
- export declare const defaultFlowForgeMessages: FlowForgeMessages;
72
-
73
- /**
74
- * Build a node descriptor on top of {@link baseNodeDefaults}.
75
- *
76
- * Supply the four required identity fields plus only the behaviour you want to
77
- * override. Everything else inherits the base.
78
- *
79
- * export const startEventDescriptor = defineNode({
80
- * type: 'startEvent',
81
- * label: 'Start',
82
- * matches: (id) => id === 'start',
83
- * reactFlowType: 'startNode',
84
- * emitBpmnElements: (id) => [{ id, $type: 'bpmn:StartEvent' }], // override
85
- * });
86
- */
87
- export declare function defineNode(overrides: RequiredNodeFields & Partial<NodeDescriptor>): NodeDescriptor;
88
-
89
- export declare interface DmnDefinition {
90
- id: string;
91
- [key: string]: unknown;
92
- }
93
-
94
- /**
95
- * End event — a fixed skeleton node with no user-editable form.
96
- * The canvas seeds the main-spine end as the literal slot id `'end'`, and one
97
- * end per branch as `'end-${filterId}-${branch}'` (see WorkflowCanvas.tsx).
98
- * `matches` must cover both shapes so every terminal node resolves via `forId`
99
- * during descriptor-driven BPMN load — otherwise branch ends get skipped.
100
- *
101
- * Inherits formSchema (none) and bpmnEntry/bpmnExit from the base node.
102
- */
103
- export declare const endEventDescriptor: NodeDescriptor;
104
-
105
- /** Condition definition attached to a FieldDescriptor */
106
- declare interface FieldConditionDef {
107
- fields: ConditionFieldDef[];
108
- /** Enables nested condition groups. Defaults to false. */
109
- allowGroups?: boolean;
110
- /** Optional depth limit for nested groups when allowGroups is true. */
111
- maxGroupDepth?: number;
112
- }
113
-
114
- declare interface FieldContext {
115
- values: Record<string, unknown>;
116
- }
117
-
118
- declare interface FieldDescriptor {
119
- /**
120
- * The formik key for this field.
121
- * Use `id` (preferred) or `name` — both are accepted.
122
- * `id` takes precedence if both are provided.
123
- */
124
- id?: string;
125
- name?: string;
126
- type: FieldType | string;
127
- /** Child field descriptors — used by type: 'object' to render a nested group. */
128
- children?: FieldDescriptor[];
129
- /** Optional per-field condition guard — renders a condition row below this field. */
130
- condition?: FieldConditionDef;
131
- label?: string;
132
- placeholder?: string;
133
- required?: boolean;
134
- showOptional?: boolean;
135
- disabled?: boolean | ((ctx: FieldContext) => boolean);
136
- hidden?: boolean;
137
- colSpan?: number;
138
- dividerAfter?: boolean;
139
- info?: string;
140
- helperText?: string;
141
- dataTestId?: string;
142
- validation?: AnySchema;
143
- shouldHide?: (ctx: FieldContext) => boolean;
144
- shouldDisable?: (ctx: FieldContext) => boolean;
145
- shouldRequire?: (ctx: FieldContext) => boolean;
146
- compute?: (ctx: FieldContext) => unknown;
147
- transform?: FieldTransform;
148
- onChange?: (value: unknown, ctx: FieldContext & {
149
- setFieldValue: (name: string, value: unknown) => void;
150
- }) => void;
151
- [key: string]: unknown;
152
- }
153
-
154
- declare interface FieldTransform {
155
- in?: (value: unknown) => unknown;
156
- out?: (value: unknown) => unknown;
157
- }
158
-
159
- declare type FieldType = 'text' | 'textarea' | 'number' | 'toggle' | 'radio-group' | 'select' | 'descriptive-select' | 'key-value' | 'array' | 'object' | 'reference' | 'cron' | 'schema';
160
-
161
- declare interface FixedEdge {
162
- id: string;
163
- source: string;
164
- target: string;
165
- }
166
-
167
- declare interface FixedNode {
168
- id: string;
169
- type: string;
170
- data?: Record<string, unknown>;
171
- deletable?: false;
172
- }
173
-
174
- export declare interface FlowForgeMessages {
175
- addTriggerTitle: string;
176
- addTriggerTooltip: string;
177
- addTriggerButton: string;
178
- chooseTrigger: string;
179
- noTriggers: string;
180
- addStepTitle: string;
181
- chooseAction: string;
182
- noActions: string;
183
- configureStep: string;
184
- loadingConfiguration: string;
185
- noConfigurationNeeded: string;
186
- save: string;
187
- cancel: string;
188
- }
189
-
190
- /**
191
- * Context passed to `NodeDescriptor.canInsert(ctx)` describing where on the
192
- * canvas the user clicked "+ Add step". Used by position-aware insertion rules.
193
- */
194
- declare interface InsertContext {
195
- /** The slot the user clicked under (the one whose "+" edge was clicked). */
196
- insertAfterSlot: CanvasSlot | null;
197
- /** Every slot before the insertion point, including the click slot.
198
- * When inside a branch: spine up to + including the branching parent, then
199
- * the branch's own slots up to the insertion point. */
200
- upstreamSlots: CanvasSlot[];
201
- /** Every slot after the insertion point in the same chain. */
202
- downstreamSlots: CanvasSlot[];
203
- /** Branch context, if the insertion is happening inside a branch. */
204
- branch: {
205
- filterId: string;
206
- branch: string;
207
- } | null;
208
- /** The currently active template (the one whose trigger is in use). */
209
- template: WorkflowTemplate | null;
210
- }
211
-
212
- export declare function loadWorkflowFromBpmn(xml: string): WorkflowState;
213
-
214
- export declare function makeSubWorkflowDescriptor(opts?: SubWorkflowDescriptorOptions): NodeDescriptor;
215
-
216
- export declare interface NodeDescriptor {
217
- type: string;
218
- label: string;
219
- icon?: ReactNode;
220
- /**
221
- * Optional "app" this action belongs to (Slack, Salesforce, …). When present,
222
- * the node picker drills down: stage 1 lists unique apps, stage 2 lists this
223
- * app's actions, stage 3 is the action's config form. Descriptors without an
224
- * `app` field appear ungrouped at stage 1, alongside the app cards.
225
- */
226
- app?: {
227
- key: string;
228
- label: string;
229
- icon?: ReactNode;
230
- description?: string;
231
- };
232
- matches: (id: string) => boolean;
233
- bpmnEntry: (nodeId: string) => string;
234
- bpmnExit: (nodeId: string) => string;
235
- emitBpmnElements: (nodeId: string, nodeData: unknown) => BpmnElement[];
236
- emitDmnDefinition?: (nodeId: string, nodeData: unknown) => DmnDefinition;
237
- outgoingCondition?: (nodeId: string, targetId: string, nodeData: unknown) => string;
238
- reactFlowType: string;
239
- previewNodeType?: string;
240
- /**
241
- * Optional custom node-card body. When provided, the node renderer shows this
242
- * instead of the default value badges — lets a node author fully design the
243
- * card body while keeping the shared frame (title, edit/delete, handles).
244
- * Receives the node's saved formData.
245
- */
246
- renderNode?: (nodeData: Record<string, unknown>) => ReactNode;
247
- /**
248
- * Position constraint — this descriptor can be inserted only if at least ONE
249
- * of the listed tokens appears in the upstream chain of the click site.
250
- * Tokens can be a descriptorType (e.g. 'createUserTask'), a slot id
251
- * (e.g. 'event-userCreated'), or a slot kind (e.g. 'triggerFixed').
252
- * Ignored when `canInsert` is set.
253
- */
254
- insertAfter?: string[];
255
- /**
256
- * Symmetric — must appear DOWNSTREAM of the click site. Same token rules
257
- * as `insertAfter`. Ignored when `canInsert` is set.
258
- */
259
- insertBefore?: string[];
260
- /**
261
- * Full custom rule. Overrides `insertAfter` / `insertBefore`. Receives the
262
- * click context (upstream/downstream slots, branch info, active template);
263
- * returns `true` to allow the descriptor at this insertion point.
264
- */
265
- canInsert?: (ctx: InsertContext) => boolean;
266
- /** Maps branch key → display label. e.g. { pass: 'Pass', fail: 'Fail' }. Only applies to branching nodes (filterNode, approvalNode). */
267
- branchLabels?: Record<string, string>;
268
- formSchema: FieldDescriptor[] | ((nodeId: string) => Promise<FieldDescriptor[]>);
269
- maxPerWorkflow?: number;
270
- relatedNodePrefixes?: string[];
271
- }
272
-
273
- export declare class NodeTypeRegistry {
274
- private descriptors;
275
- register(descriptor: NodeDescriptor): this;
276
- forType(type: string): NodeDescriptor | undefined;
277
- forId(id: string): NodeDescriptor | undefined;
278
- list(): NodeDescriptor[];
279
- }
280
-
281
- export declare const nodeTypeRegistry: NodeTypeRegistry;
282
-
283
- export declare const notificationDescriptor: NodeDescriptor;
284
-
285
- /** The fields every node MUST provide — there is no sensible default for these. */
286
- declare type RequiredNodeFields = Pick<NodeDescriptor, 'type' | 'label' | 'matches' | 'reactFlowType'>;
287
-
288
- export declare const restApiDescriptor: NodeDescriptor;
289
-
290
- export declare function saveWorkflowToBpmn(workflow: WorkflowState, options?: BpmnSaveOptions): string;
291
-
292
- declare type SlotKind = 'start' | 'end' | 'addTrigger' | 'triggerFixed' | 'userTask' | 'addStep' | 'filter' | 'approval';
293
-
294
- /**
295
- * Start event — a fixed skeleton node with no user-editable form.
296
- * The canvas seeds it as the literal slot id `'start'` (see buildInitialSlots
297
- * in WorkflowCanvas.tsx). This descriptor exists so the registry can resolve
298
- * that id via `forId('start')` and emit it during descriptor-driven BPMN save.
299
- *
300
- * Inherits formSchema (none) and bpmnEntry/bpmnExit from the base node.
301
- */
302
- export declare const startEventDescriptor: NodeDescriptor;
303
-
304
- /** Pre-built static descriptor (no dynamic workflow list). Swap for makeSubWorkflowDescriptor when you have an API. */
305
- export declare const subWorkflowDescriptor: NodeDescriptor;
306
-
307
- /**
308
- * Sub-Workflow node — calls another saved workflow by ID.
309
- *
310
- * The host app must provide `fetchWorkflowOptions` at registration time so the
311
- * `workflowId` select field can populate. Inject it via the descriptor factory:
312
- *
313
- * import { makeSubWorkflowDescriptor } from '@miniorange/flowforge';
314
- * nodeTypeRegistry.register(makeSubWorkflowDescriptor({
315
- * fetchWorkflowOptions: async () => myApi.listWorkflows(),
316
- * }));
317
- */
318
- export declare interface SubWorkflowDescriptorOptions {
319
- /** Return a list of available workflows for the workflowId select field */
320
- fetchWorkflowOptions?: () => Promise<Array<{
321
- label: string;
322
- value: string;
323
- }>>;
324
- }
325
-
326
- export declare class TemplateRegistry {
327
- private templates;
328
- register(template: WorkflowTemplate): this;
329
- lookup(triggerKey: string): WorkflowTemplate | undefined;
330
- list(): WorkflowTemplate[];
331
- listByCategory(category: string): WorkflowTemplate[];
332
- listByTag(tag: string): WorkflowTemplate[];
333
- search(query: string): WorkflowTemplate[];
334
- categories(): string[];
335
- }
336
-
337
- export declare const templateRegistry: TemplateRegistry;
338
-
339
- export declare const webhookTriggerDescriptor: NodeDescriptor;
340
-
341
- export declare const webhookTriggerTemplate: WorkflowTemplate;
342
-
343
- export declare interface WorkflowState {
344
- slots: CanvasSlot[];
345
- branches: BranchMap;
346
- }
347
-
348
- export declare interface WorkflowTemplate {
349
- triggerKey: string;
350
- label: string;
351
- description?: string;
352
- icon?: ReactNode;
353
- triggerCategory?: 'event' | 'scheduler' | 'webhook' | string;
354
- availableTasks?: string[];
355
- maxTasks?: number;
356
- taskLabels?: Record<string, string>;
357
- fixedNodes?: FixedNode[];
358
- fixedEdges?: FixedEdge[];
359
- insertionPoints?: string[];
360
- source?: string;
361
- product?: string;
362
- /** Pre-built workflow state to clone when user selects this template */
363
- skeletonState?: WorkflowState;
364
- /** Tags for filtering in the template library */
365
- tags?: string[];
366
- /** Category grouping in the library */
367
- category?: string;
368
- /** Team or author that owns this template */
369
- author?: string;
370
- /** Relative popularity score (higher = shown first in library) */
371
- popularity?: number;
372
- }
373
-
374
- export { }
package/dist/core.js DELETED
@@ -1,24 +0,0 @@
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";
3
- import { d as y } from "./messages-CO299wPN.js";
4
- import { l as u, s as x } from "./bpmn-CtfWDaOY.js";
5
- export {
6
- r as NodeTypeRegistry,
7
- k as TemplateRegistry,
8
- t as baseNodeDefaults,
9
- s as conditionBranchDescriptor,
10
- y as defaultFlowForgeMessages,
11
- i as defineNode,
12
- p as endEventDescriptor,
13
- u as loadWorkflowFromBpmn,
14
- a as makeSubWorkflowDescriptor,
15
- f as nodeTypeRegistry,
16
- l as notificationDescriptor,
17
- n as restApiDescriptor,
18
- x as saveWorkflowToBpmn,
19
- c as startEventDescriptor,
20
- m as subWorkflowDescriptor,
21
- w as templateRegistry,
22
- d as webhookTriggerDescriptor,
23
- g as webhookTriggerTemplate
24
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GatewayBranchEdge-DK6kuCK2.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,83 +0,0 @@
1
- import { EdgeProps } from 'reactflow';
2
- import { JSX as JSX_2 } from 'react/jsx-runtime';
3
- import { NodeProps } from 'reactflow';
4
- import { NodeTypes } from 'reactflow';
5
-
6
- export declare const ActionNode: ({ id, data }: NodeProps) => JSX_2.Element;
7
-
8
- declare interface AddStepContext {
9
- edgeId: string;
10
- nodeId: string;
11
- sourceNodeId: string;
12
- targetNodeId: string;
13
- position: 'between';
14
- referenceNodeId: string;
15
- referenceNodeType?: string;
16
- stepVisibility?: unknown;
17
- filterId?: string;
18
- branch?: string;
19
- }
20
-
21
- export declare const AddTriggerNode: () => JSX_2.Element;
22
-
23
- export declare const ApprovalNode: ({ id, data }: NodeProps) => JSX_2.Element;
24
-
25
- export declare const builtInNodeTypes: NodeTypes;
26
-
27
- declare const DelayNode_2: ({ id, data }: NodeProps) => JSX_2.Element;
28
- export { DelayNode_2 as DelayNode }
29
-
30
- export declare const EdgeWithPlusLabel: ({ id: edgeId, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, source, target, data, }: EdgeProps<EdgeWithPlusLabelData>) => JSX_2.Element;
31
-
32
- declare interface EdgeWithPlusLabelData {
33
- label?: string;
34
- onAddStepClick?: (sourceNodeId: string, context: AddStepContext) => void;
35
- referenceNodeType?: string;
36
- stepVisibility?: unknown;
37
- }
38
-
39
- export declare const EndNode: () => JSX_2.Element;
40
-
41
- export declare const FilterNode: ({ id, data }: NodeProps) => JSX_2.Element;
42
-
43
- export declare const GatewayBranchEdge: ({ id, source, target, sourceX, sourceY, targetX, targetY, style, markerEnd, data, }: EdgeProps<GatewayBranchEdgeData>) => JSX_2.Element;
44
-
45
- declare interface GatewayBranchEdgeData {
46
- label?: string;
47
- branch?: string;
48
- isFirst?: boolean;
49
- filterId?: string;
50
- onAddStepClick?: (sourceNodeId: string, context: AddStepContext) => void;
51
- /** When true, route as a vertical rail (sourceX → down to targetY → right to target). Default: horizontal fan-out. */
52
- verticalRouting?: boolean;
53
- }
54
-
55
- export declare const LabelPlusEdge: ({ id, sourceX, sourceY, targetX, targetY, source, target, data, }: EdgeProps<LabelPlusEdgeData>) => JSX_2.Element;
56
-
57
- declare interface LabelPlusEdgeData {
58
- label?: string;
59
- onAddStepClick?: (sourceNodeId: string, context: AddStepContext) => void;
60
- referenceNodeType?: string;
61
- stepVisibility?: unknown;
62
- showPlus?: boolean;
63
- }
64
-
65
- export declare const NotificationNode: ({ id, data }: NodeProps) => JSX_2.Element;
66
-
67
- export declare const PlainEdge: ({ id, sourceX, sourceY, targetX, targetY }: EdgeProps) => JSX_2.Element;
68
-
69
- export declare const PlusEdge: ({ id, sourceX, sourceY, targetX, targetY, source, target, data, }: EdgeProps<PlusEdgeData>) => JSX_2.Element;
70
-
71
- declare interface PlusEdgeData {
72
- onAddStepClick?: (sourceNodeId: string, context: AddStepContext) => void;
73
- referenceNodeType?: string;
74
- stepVisibility?: unknown;
75
- filterId?: string;
76
- branch?: string;
77
- }
78
-
79
- export declare const StartNode: () => JSX_2.Element;
80
-
81
- export declare const TriggerNode: ({ data }: NodeProps) => JSX_2.Element;
82
-
83
- export { }
package/dist/defaultUi.js DELETED
@@ -1,18 +0,0 @@
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-BdUVHQJc.js";
2
- export {
3
- d as ActionNode,
4
- s as AddTriggerNode,
5
- o as ApprovalNode,
6
- N as DelayNode,
7
- i as EdgeWithPlusLabel,
8
- l as EndNode,
9
- r as FilterNode,
10
- t as GatewayBranchEdge,
11
- g as LabelPlusEdge,
12
- E as NotificationNode,
13
- n as PlainEdge,
14
- P as PlusEdge,
15
- b as StartNode,
16
- c as TriggerNode,
17
- p as builtInNodeTypes
18
- };
package/dist/form.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-a1IOaYsW.js"),r=require("./SchemaBuilderDrawer-Wje7pVrn.js");require("react/jsx-runtime");require("react");require("@mui/material");require("react-icons/md");exports.DynamicFormRenderer=e.DynamicFormRenderer;exports.FF=e.FF;exports.FlowForgeRegistry=e.FlowForgeRegistry;exports.FlowForm=e.FlowForm;exports.FormulaInput=e.FormulaInput;exports.InfiniteSelectField=e.InfiniteSelectField;exports.TablePickerField=e.TablePickerField;exports.VariablePicker=e.VariablePicker;exports.VariablePickerProvider=e.VariablePickerProvider;exports.astHasRefs=e.astHasRefs;exports.astToTokens=e.astToTokens;exports.buildEvaluationPayload=e.buildEvaluationPayload;exports.buildFieldConfig=e.buildFieldConfig;exports.buildFormulaPath=e.buildFormulaPath;exports.buildSelectStyles=e.buildSelectStyles;exports.buildValidationSchema=e.buildValidationSchema;exports.errorTextStyle=e.errorTextStyle;exports.extractLabel=e.extractLabel;exports.fieldRegistry=e.fieldRegistry;exports.hasFormulaTokens=e.hasFormulaTokens;exports.helperTextStyle=e.helperTextStyle;exports.inputStyle=e.inputStyle;exports.isFormula=e.isFormula;exports.parseToAST=e.parseToAST;exports.serializeAST=e.serializeAST;exports.serializeASTAsConfig=e.serializeASTAsConfig;exports.serializeConditionExpressions=e.serializeConditionExpressions;exports.stripFormulaTokens=e.stripFormulaTokens;exports.tokenize=e.tokenize;exports.unwrapFormula=e.unwrapFormula;exports.useVariablePickerContext=e.useVariablePickerContext;exports.wrapFormula=e.wrapFormula;exports.FIELD_TYPE_OPTIONS=r.FIELD_TYPE_OPTIONS;exports.SchemaBuilder=r.SchemaBuilder;exports.SchemaBuilderDrawer=r.SchemaBuilderDrawer;exports.useFlowForm=r.useFlowForm;