@notmrabhi/flowforge 0.1.19 → 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-4XMPBHne.js +0 -1255
  3. package/dist/GatewayBranchEdge-mRo5aZ3f.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-CQec51xm.js +0 -2953
  53. package/dist/templateSkeletons-D8-v6BFH.js +0 -1
@@ -1,83 +0,0 @@
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 { }
@@ -1,43 +0,0 @@
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
- };