@particle-academy/fancy-flow 0.36.0 → 0.38.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.
- package/dist/FlowViewer-C4QAVgWv.d.ts +62 -0
- package/dist/FlowViewer-nLqo7s2E.d.cts +62 -0
- package/dist/chunk-5UCWY7G3.js +593 -0
- package/dist/chunk-5UCWY7G3.js.map +1 -0
- package/dist/index.d.cts +2 -58
- package/dist/index.d.ts +2 -58
- package/dist/index.js +12 -593
- package/dist/index.js.map +1 -1
- package/dist/screens.cjs +9834 -0
- package/dist/screens.cjs.map +1 -0
- package/dist/screens.css +563 -0
- package/dist/screens.css.map +1 -0
- package/dist/screens.d.cts +25 -0
- package/dist/screens.d.ts +25 -0
- package/dist/screens.js +21 -0
- package/dist/screens.js.map +1 -0
- package/package.json +25 -7
package/dist/screens.js
ADDED
|
@@ -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.
|
|
3
|
+
"version": "0.38.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": [
|
|
@@ -138,10 +148,11 @@
|
|
|
138
148
|
],
|
|
139
149
|
"peerDependencies": {
|
|
140
150
|
"@particle-academy/fancy-cms-ui": ">=0.2",
|
|
151
|
+
"@particle-academy/fancy-screens": ">=0.4 <2.0",
|
|
141
152
|
"@particle-academy/react-fancy": ">=3",
|
|
142
153
|
"ai": ">=5",
|
|
143
|
-
"react": "^
|
|
144
|
-
"react-dom": "^
|
|
154
|
+
"react": "^19.0.0",
|
|
155
|
+
"react-dom": "^19.0.0"
|
|
145
156
|
},
|
|
146
157
|
"dependencies": {
|
|
147
158
|
"@particle-academy/fancy-auto-common": ">=0.1 <2.0"
|
|
@@ -149,19 +160,20 @@
|
|
|
149
160
|
"devDependencies": {
|
|
150
161
|
"@dagrejs/dagre": "^3.0.0",
|
|
151
162
|
"@particle-academy/fancy-cms-ui": "^0.2.0",
|
|
163
|
+
"@particle-academy/fancy-screens": "^0.4.3",
|
|
152
164
|
"@particle-academy/react-fancy": "^4.15.0",
|
|
153
165
|
"@testing-library/dom": "^10.4.1",
|
|
154
166
|
"@testing-library/react": "^16.3.2",
|
|
155
|
-
"@types/react": "^19.
|
|
156
|
-
"@types/react-dom": "^19.
|
|
167
|
+
"@types/react": "^19.2.0",
|
|
168
|
+
"@types/react-dom": "^19.2.0",
|
|
157
169
|
"@xyflow/react": "^12.4.0",
|
|
158
170
|
"ai": "^7.0.31",
|
|
159
171
|
"clsx": "^2.1.0",
|
|
160
172
|
"eslint": "^10.8.0",
|
|
161
173
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
162
174
|
"jsdom": "^29.1.1",
|
|
163
|
-
"react": "^19.
|
|
164
|
-
"react-dom": "^19.
|
|
175
|
+
"react": "^19.2.0",
|
|
176
|
+
"react-dom": "^19.2.0",
|
|
165
177
|
"tsup": "^8.0.0",
|
|
166
178
|
"typescript": "^5.7.0",
|
|
167
179
|
"typescript-eslint": "^8.65.0",
|
|
@@ -187,6 +199,12 @@
|
|
|
187
199
|
},
|
|
188
200
|
"ai": {
|
|
189
201
|
"optional": true
|
|
202
|
+
},
|
|
203
|
+
"@particle-academy/fancy-screens": {
|
|
204
|
+
"optional": true
|
|
190
205
|
}
|
|
206
|
+
},
|
|
207
|
+
"engines": {
|
|
208
|
+
"node": ">=22"
|
|
191
209
|
}
|
|
192
210
|
}
|