@particle-academy/fancy-flow 0.36.0 → 0.37.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.
@@ -0,0 +1,21 @@
1
+ import { FlowViewer } from './chunk-5UCWY7G3.js';
2
+ export { FlowViewer } from './chunk-5UCWY7G3.js';
3
+ import './chunk-UX65ML3J.js';
4
+ import './chunk-OWENS2H5.js';
5
+ import './chunk-UEOE6B52.js';
6
+ import './chunk-USL4FMFU.js';
7
+ import './chunk-VLATLVGH.js';
8
+ import './chunk-TITD5W4Y.js';
9
+ import './chunk-PVROYW7C.js';
10
+ import './chunk-F5RPRB7A.js';
11
+ import { registerSchemaComponents } from '@particle-academy/fancy-screens';
12
+
13
+ function registerFlowSchema() {
14
+ registerSchemaComponents({
15
+ FlowViewer
16
+ });
17
+ }
18
+
19
+ export { registerFlowSchema };
20
+ //# sourceMappingURL=screens.js.map
21
+ //# sourceMappingURL=screens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/screens.ts"],"names":[],"mappings":";;;;;;;;;;;;AAwBO,SAAS,kBAAA,GAA2B;AACzC,EAAA,wBAAA,CAAyB;AAAA,IACvB;AAAA,GACD,CAAA;AACH","file":"screens.js","sourcesContent":["// /screens subpath — the ONLY module that imports fancy-screens (optional\n// peer). Keeps the base `.` import graph free of it, so an app that never\n// touches fancy-screens never pays for it.\nimport { registerSchemaComponents } from \"@particle-academy/fancy-screens\";\nimport type { ComponentType } from \"react\";\nimport { FlowViewer } from \"./components/FlowViewer\";\n\n/**\n * Register fancy-flow's components with fancy-screens, so an agent-emitted\n * `ScreenSchema` can place a workflow in a page:\n *\n * ```json\n * { \"type\": \"FlowViewer\", \"props\": { \"graph\": { \"nodes\": [], \"edges\": [] } } }\n * ```\n *\n * Call once at host startup.\n *\n * **Only the VIEWER is registered, deliberately.** A schema is JSON an agent\n * emits, and `FlowEditor` needs executors, run handlers and controlled state\n * that cannot be expressed as JSON props — registering it would let an agent\n * emit an editor that renders but does nothing, which is worse than not\n * offering it. The viewer is complete from props alone, which is exactly what\n * makes it schema-safe.\n */\nexport function registerFlowSchema(): void {\n registerSchemaComponents({\n FlowViewer: FlowViewer as unknown as ComponentType<Record<string, unknown>>,\n });\n}\n\nexport { FlowViewer } from \"./components/FlowViewer\";\nexport type { FlowViewerProps, FlowViewerClassNames, FlowNodeStatus } from \"./components/FlowViewer\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/fancy-flow",
3
- "version": "0.36.0",
3
+ "version": "0.37.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",
@@ -113,6 +113,16 @@
113
113
  "types": "./dist/llm/prism.d.cts",
114
114
  "default": "./dist/llm/prism.cjs"
115
115
  }
116
+ },
117
+ "./screens": {
118
+ "import": {
119
+ "types": "./dist/screens.d.ts",
120
+ "default": "./dist/screens.js"
121
+ },
122
+ "require": {
123
+ "types": "./dist/screens.d.cts",
124
+ "default": "./dist/screens.cjs"
125
+ }
116
126
  }
117
127
  },
118
128
  "files": [
@@ -141,7 +151,8 @@
141
151
  "@particle-academy/react-fancy": ">=3",
142
152
  "ai": ">=5",
143
153
  "react": "^18.0.0 || ^19.0.0",
144
- "react-dom": "^18.0.0 || ^19.0.0"
154
+ "react-dom": "^18.0.0 || ^19.0.0",
155
+ "@particle-academy/fancy-screens": ">=0.4 <2.0"
145
156
  },
146
157
  "dependencies": {
147
158
  "@particle-academy/fancy-auto-common": ">=0.1 <2.0"
@@ -166,7 +177,8 @@
166
177
  "typescript": "^5.7.0",
167
178
  "typescript-eslint": "^8.65.0",
168
179
  "vitest": "^3.2.6",
169
- "zod": "^4.4.3"
180
+ "zod": "^4.4.3",
181
+ "@particle-academy/fancy-screens": "^0.4.3"
170
182
  },
171
183
  "publishConfig": {
172
184
  "access": "public"
@@ -187,6 +199,9 @@
187
199
  },
188
200
  "ai": {
189
201
  "optional": true
202
+ },
203
+ "@particle-academy/fancy-screens": {
204
+ "optional": true
190
205
  }
191
206
  }
192
207
  }