@notmrabhi/flowforge 0.1.21 → 0.1.22
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.
- package/dist/GatewayBranchEdge-9YF32wwN.js +1 -0
- package/dist/GatewayBranchEdge-Dxoy5B1A.js +1264 -0
- package/dist/SchemaBuilderDrawer-157p-2Vj.js +1136 -0
- package/dist/SchemaBuilderDrawer-Wje7pVrn.js +1 -0
- package/dist/bpmn-CcuE2X_Q.js +2 -0
- package/dist/bpmn-CtfWDaOY.js +33 -0
- package/dist/canvas.cjs +1 -0
- package/dist/canvas.d.ts +809 -0
- package/dist/canvas.js +28 -0
- package/dist/canvasTokens-CAD6G24b.js +32 -0
- package/dist/canvasTokens-gKNYrPl4.js +1 -0
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +374 -0
- package/dist/core.js +24 -0
- package/dist/defaultUi.cjs +1 -0
- package/dist/defaultUi.d.ts +83 -0
- package/dist/defaultUi.js +18 -0
- package/dist/form.cjs +1 -0
- package/dist/form.d.ts +857 -0
- package/dist/form.js +44 -0
- package/dist/index-B31-Y5uO.js +11 -0
- package/dist/index-B3aHpb84.js +13 -0
- package/dist/index-BU09HbVh.js +10176 -0
- package/dist/index-BnzttJ4w.js +13758 -0
- package/dist/index-BysKSEtZ.js +1 -0
- package/dist/index-CQ0cVcHp.js +2 -0
- package/dist/index-CkjEllpd.js +1 -0
- package/dist/index-Codx5QwP.js +41 -0
- package/dist/index-Cw9DC-tf.js +76 -0
- package/dist/index-CzPi8KQC.js +1310 -0
- package/dist/index-D14V8rKX.js +1 -0
- package/dist/index-Da5NHCS2.js +8132 -0
- package/dist/index-a1IOaYsW.js +9 -0
- package/dist/index-a3QMaedZ.js +2553 -0
- package/dist/index-gtgq_241.js +3 -0
- package/dist/index-l6kvDx-m.js +1360 -0
- package/dist/index-lcviy90e.js +613 -0
- package/dist/index-wOnYb3DO.js +567 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1409 -0
- package/dist/index.js +107 -0
- package/dist/messages-CO299wPN.js +22 -0
- package/dist/messages-O9Tw_XXR.js +1 -0
- package/dist/nodeRegistry.cjs +1 -0
- package/dist/nodeRegistry.d.ts +334 -0
- package/dist/nodeRegistry.js +555 -0
- package/dist/style.css +6 -0
- package/dist/templateRegistry.cjs +1 -0
- package/dist/templateRegistry.d.ts +83 -0
- package/dist/templateRegistry.js +43 -0
- package/dist/templateSkeletons-D2ecxpVH.js +2954 -0
- package/dist/templateSkeletons-D5dYuslG.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare type BranchChain = CanvasSlot[];
|
|
4
|
+
|
|
5
|
+
declare interface BranchMap {
|
|
6
|
+
[filterId: string]: {
|
|
7
|
+
[branchKey: string]: BranchChain;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare interface CanvasSlot {
|
|
12
|
+
id: string;
|
|
13
|
+
kind: SlotKind;
|
|
14
|
+
reactFlowType: string;
|
|
15
|
+
descriptorType?: string;
|
|
16
|
+
formData?: Record<string, unknown>;
|
|
17
|
+
nodeData?: Record<string, unknown>;
|
|
18
|
+
deletable?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Maps branch key → display label. e.g. { pass: 'Pass', fail: 'Fail' } */
|
|
21
|
+
branchLabels?: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare interface FixedEdge {
|
|
25
|
+
id: string;
|
|
26
|
+
source: string;
|
|
27
|
+
target: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare interface FixedNode {
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
data?: Record<string, unknown>;
|
|
34
|
+
deletable?: false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare type SlotKind = 'start' | 'end' | 'addTrigger' | 'triggerFixed' | 'userTask' | 'addStep' | 'filter' | 'approval';
|
|
38
|
+
|
|
39
|
+
export declare class TemplateRegistry {
|
|
40
|
+
private templates;
|
|
41
|
+
register(template: WorkflowTemplate): this;
|
|
42
|
+
lookup(triggerKey: string): WorkflowTemplate | undefined;
|
|
43
|
+
list(): WorkflowTemplate[];
|
|
44
|
+
listByCategory(category: string): WorkflowTemplate[];
|
|
45
|
+
listByTag(tag: string): WorkflowTemplate[];
|
|
46
|
+
search(query: string): WorkflowTemplate[];
|
|
47
|
+
categories(): string[];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export declare const templateRegistry: TemplateRegistry;
|
|
51
|
+
|
|
52
|
+
declare interface WorkflowState {
|
|
53
|
+
slots: CanvasSlot[];
|
|
54
|
+
branches: BranchMap;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare interface WorkflowTemplate {
|
|
58
|
+
triggerKey: string;
|
|
59
|
+
label: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
icon?: ReactNode;
|
|
62
|
+
triggerCategory?: 'event' | 'scheduler' | 'webhook' | string;
|
|
63
|
+
availableTasks?: string[];
|
|
64
|
+
maxTasks?: number;
|
|
65
|
+
taskLabels?: Record<string, string>;
|
|
66
|
+
fixedNodes?: FixedNode[];
|
|
67
|
+
fixedEdges?: FixedEdge[];
|
|
68
|
+
insertionPoints?: string[];
|
|
69
|
+
source?: string;
|
|
70
|
+
product?: string;
|
|
71
|
+
/** Pre-built workflow state to clone when user selects this template */
|
|
72
|
+
skeletonState?: WorkflowState;
|
|
73
|
+
/** Tags for filtering in the template library */
|
|
74
|
+
tags?: string[];
|
|
75
|
+
/** Category grouping in the library */
|
|
76
|
+
category?: string;
|
|
77
|
+
/** Team or author that owns this template */
|
|
78
|
+
author?: string;
|
|
79
|
+
/** Relative popularity score (higher = shown first in library) */
|
|
80
|
+
popularity?: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
class l {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.templates = /* @__PURE__ */ new Map();
|
|
4
|
+
}
|
|
5
|
+
register(e) {
|
|
6
|
+
return this.templates.set(e.triggerKey, e), this;
|
|
7
|
+
}
|
|
8
|
+
lookup(e) {
|
|
9
|
+
return this.templates.get(e);
|
|
10
|
+
}
|
|
11
|
+
list() {
|
|
12
|
+
return [...this.templates.values()];
|
|
13
|
+
}
|
|
14
|
+
listByCategory(e) {
|
|
15
|
+
return this.list().filter((t) => t.category === e);
|
|
16
|
+
}
|
|
17
|
+
listByTag(e) {
|
|
18
|
+
return this.list().filter((t) => {
|
|
19
|
+
var s;
|
|
20
|
+
return (s = t.tags) == null ? void 0 : s.includes(e);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
search(e) {
|
|
24
|
+
const t = e.toLowerCase();
|
|
25
|
+
return this.list().filter(
|
|
26
|
+
(s) => {
|
|
27
|
+
var r, i, a;
|
|
28
|
+
return s.label.toLowerCase().includes(t) || ((r = s.description) == null ? void 0 : r.toLowerCase().includes(t)) || ((i = s.tags) == null ? void 0 : i.some((o) => o.toLowerCase().includes(t))) || ((a = s.category) == null ? void 0 : a.toLowerCase().includes(t));
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
categories() {
|
|
33
|
+
const e = /* @__PURE__ */ new Set();
|
|
34
|
+
return this.list().forEach((t) => {
|
|
35
|
+
t.category && e.add(t.category);
|
|
36
|
+
}), Array.from(e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const n = new l();
|
|
40
|
+
export {
|
|
41
|
+
l as TemplateRegistry,
|
|
42
|
+
n as templateRegistry
|
|
43
|
+
};
|