@particle-academy/fancy-flow 0.3.0 → 0.4.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 (41) hide show
  1. package/dist/{chunk-DDHKYIH2.js → chunk-2BZ6OE5H.js} +229 -435
  2. package/dist/chunk-2BZ6OE5H.js.map +1 -0
  3. package/dist/{chunk-FGUJNX65.js → chunk-35OXF6W3.js} +3 -3
  4. package/dist/{chunk-FGUJNX65.js.map → chunk-35OXF6W3.js.map} +1 -1
  5. package/dist/chunk-4PZQRN5Y.js +114 -0
  6. package/dist/chunk-4PZQRN5Y.js.map +1 -0
  7. package/dist/chunk-DW66NGU5.js +138 -0
  8. package/dist/chunk-DW66NGU5.js.map +1 -0
  9. package/dist/{chunk-YPINKH2D.js → engine.cjs} +4 -111
  10. package/dist/engine.cjs.map +1 -0
  11. package/dist/engine.d.cts +35 -0
  12. package/dist/engine.d.ts +35 -0
  13. package/dist/engine.js +3 -0
  14. package/dist/engine.js.map +1 -0
  15. package/dist/index.cjs +227 -464
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.css +1 -0
  18. package/dist/index.css.map +1 -1
  19. package/dist/index.d.cts +19 -19
  20. package/dist/index.d.ts +19 -19
  21. package/dist/index.js +6 -6
  22. package/dist/registry/index.d.cts +2 -3
  23. package/dist/registry/index.d.ts +2 -3
  24. package/dist/registry.cjs +225 -462
  25. package/dist/registry.cjs.map +1 -1
  26. package/dist/registry.js +2 -3
  27. package/dist/runtime/index.d.cts +4 -32
  28. package/dist/runtime/index.d.ts +4 -32
  29. package/dist/runtime.cjs +226 -463
  30. package/dist/runtime.cjs.map +1 -1
  31. package/dist/runtime.js +3 -3
  32. package/dist/schema/index.d.cts +1 -1
  33. package/dist/schema/index.d.ts +1 -1
  34. package/dist/schema.js +0 -1
  35. package/dist/{types-Ch4sAvum.d.cts → types-TemTtb04.d.cts} +1 -1
  36. package/dist/{types-Ch4sAvum.d.ts → types-TemTtb04.d.ts} +1 -1
  37. package/package.json +46 -9
  38. package/dist/chunk-7D4SUZUM.js +0 -35
  39. package/dist/chunk-7D4SUZUM.js.map +0 -1
  40. package/dist/chunk-DDHKYIH2.js.map +0 -1
  41. package/dist/chunk-YPINKH2D.js.map +0 -1
package/dist/runtime.js CHANGED
@@ -1,5 +1,5 @@
1
- export { applyStatusesToNodes, runFlow, useFlowRun, useFlowState } from './chunk-YPINKH2D.js';
2
- import './chunk-DDHKYIH2.js';
3
- import './chunk-7D4SUZUM.js';
1
+ export { applyStatusesToNodes, useFlowRun, useFlowState } from './chunk-4PZQRN5Y.js';
2
+ export { runFlow } from './chunk-DW66NGU5.js';
3
+ import './chunk-2BZ6OE5H.js';
4
4
  //# sourceMappingURL=runtime.js.map
5
5
  //# sourceMappingURL=runtime.js.map
@@ -1,4 +1,4 @@
1
- import { a as FlowGraph } from '../types-Ch4sAvum.cjs';
1
+ import { a as FlowGraph } from '../types-TemTtb04.cjs';
2
2
  import '@xyflow/react';
3
3
 
4
4
  /** Schema version. Bump on breaking shape changes; add migrations as needed. */
@@ -1,4 +1,4 @@
1
- import { a as FlowGraph } from '../types-Ch4sAvum.js';
1
+ import { a as FlowGraph } from '../types-TemTtb04.js';
2
2
  import '@xyflow/react';
3
3
 
4
4
  /** Schema version. Bump on breaking shape changes; add migrations as needed. */
package/dist/schema.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, workflowToBlob } from './chunk-BCXECQUC.js';
2
2
  import './chunk-WNVBXXOL.js';
3
- import './chunk-7D4SUZUM.js';
4
3
  //# sourceMappingURL=schema.js.map
5
4
  //# sourceMappingURL=schema.js.map
@@ -100,4 +100,4 @@ type RunEvent = {
100
100
  error: string;
101
101
  };
102
102
 
103
- export type { ActionNodeData as A, BaseNodeData as B, DecisionNodeData as D, ExecutorRegistry as E, FlowEdge as F, NodeExecutor as N, OutputNodeData as O, PortDescriptor as P, RunEvent as R, SubgraphNodeData as S, TriggerNodeData as T, FlowGraph as a, FlowNode as b, FlowNodeData as c, FlowNodeKind as d, NodeRunStatus as e, NoteNodeData as f };
103
+ export type { ActionNodeData as A, BaseNodeData as B, DecisionNodeData as D, ExecutorRegistry as E, FlowNode as F, NodeExecutor as N, OutputNodeData as O, PortDescriptor as P, RunEvent as R, SubgraphNodeData as S, TriggerNodeData as T, FlowGraph as a, FlowEdge as b, FlowNodeData as c, FlowNodeKind as d, NodeRunStatus as e, NoteNodeData as f };
@@ -100,4 +100,4 @@ type RunEvent = {
100
100
  error: string;
101
101
  };
102
102
 
103
- export type { ActionNodeData as A, BaseNodeData as B, DecisionNodeData as D, ExecutorRegistry as E, FlowEdge as F, NodeExecutor as N, OutputNodeData as O, PortDescriptor as P, RunEvent as R, SubgraphNodeData as S, TriggerNodeData as T, FlowGraph as a, FlowNode as b, FlowNodeData as c, FlowNodeKind as d, NodeRunStatus as e, NoteNodeData as f };
103
+ export type { ActionNodeData as A, BaseNodeData as B, DecisionNodeData as D, ExecutorRegistry as E, FlowNode as F, NodeExecutor as N, OutputNodeData as O, PortDescriptor as P, RunEvent as R, SubgraphNodeData as S, TriggerNodeData as T, FlowGraph as a, FlowEdge as b, FlowNodeData as c, FlowNodeKind as d, NodeRunStatus as e, NoteNodeData as f };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/fancy-flow",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Workflow editor + runner. Six built-in node kits (trigger / action / decision / output / note / subgraph), tokenized theme, topological execution with per-node status. React-flow bundled; consumers npm install fancy-flow and get nothing extra.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,16 +14,42 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
- "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
18
- "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }
17
+ "import": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "require": {
22
+ "types": "./dist/index.d.cts",
23
+ "default": "./dist/index.cjs"
24
+ }
19
25
  },
20
26
  "./runtime": {
21
- "import": { "types": "./dist/runtime.d.ts", "default": "./dist/runtime.js" },
22
- "require": { "types": "./dist/runtime.d.cts", "default": "./dist/runtime.cjs" }
27
+ "import": {
28
+ "types": "./dist/runtime.d.ts",
29
+ "default": "./dist/runtime.js"
30
+ },
31
+ "require": {
32
+ "types": "./dist/runtime.d.cts",
33
+ "default": "./dist/runtime.cjs"
34
+ }
35
+ },
36
+ "./engine": {
37
+ "import": {
38
+ "types": "./dist/engine.d.ts",
39
+ "default": "./dist/engine.js"
40
+ },
41
+ "require": {
42
+ "types": "./dist/engine.d.cts",
43
+ "default": "./dist/engine.cjs"
44
+ }
23
45
  },
24
46
  "./styles.css": "./dist/styles.css"
25
47
  },
26
- "files": ["dist", "docs", "README.md"],
48
+ "files": [
49
+ "dist",
50
+ "docs",
51
+ "README.md"
52
+ ],
27
53
  "scripts": {
28
54
  "build": "tsup",
29
55
  "dev": "tsup --watch",
@@ -31,7 +57,14 @@
31
57
  "clean": "rm -rf dist",
32
58
  "prepublishOnly": "tsup"
33
59
  },
34
- "keywords": ["react", "workflow", "flow", "graph", "agent", "fancy"],
60
+ "keywords": [
61
+ "react",
62
+ "workflow",
63
+ "flow",
64
+ "graph",
65
+ "agent",
66
+ "fancy"
67
+ ],
35
68
  "peerDependencies": {
36
69
  "react": "^18.0.0 || ^19.0.0",
37
70
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -48,7 +81,11 @@
48
81
  "tsup": "^8.0.0",
49
82
  "typescript": "^5.7.0"
50
83
  },
51
- "publishConfig": { "access": "public" },
84
+ "publishConfig": {
85
+ "access": "public"
86
+ },
52
87
  "license": "MIT",
53
- "sideEffects": ["**/*.css"]
88
+ "sideEffects": [
89
+ "**/*.css"
90
+ ]
54
91
  }
@@ -1,35 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __commonJS = (cb, mod) => function __require2() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
- mod
31
- ));
32
-
33
- export { __commonJS, __require, __toESM };
34
- //# sourceMappingURL=chunk-7D4SUZUM.js.map
35
- //# sourceMappingURL=chunk-7D4SUZUM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-7D4SUZUM.js"}