@particle-academy/fancy-flow 0.46.0 → 0.47.1

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 (70) hide show
  1. package/README.md +29 -0
  2. package/dist/{ConfigFieldRenderer-iMkZj0VK.d.ts → ConfigFieldRenderer-DrD2-Qml.d.ts} +1 -1
  3. package/dist/{ConfigFieldRenderer-Cyir8-B8.d.cts → ConfigFieldRenderer-NuDjtun1.d.cts} +1 -1
  4. package/dist/{chunk-P5SYH6M6.js → chunk-7DTUZUTB.js} +3 -3
  5. package/dist/{chunk-P5SYH6M6.js.map → chunk-7DTUZUTB.js.map} +1 -1
  6. package/dist/chunk-DRRZEAYB.js +196 -0
  7. package/dist/chunk-DRRZEAYB.js.map +1 -0
  8. package/dist/{chunk-MH4ZW4DJ.js → chunk-E6T3FZZP.js} +3 -5
  9. package/dist/chunk-E6T3FZZP.js.map +1 -0
  10. package/dist/{chunk-3BKU4SQZ.js → chunk-KTGXZBUM.js} +3 -4
  11. package/dist/chunk-KTGXZBUM.js.map +1 -0
  12. package/dist/{chunk-OWENS2H5.js → chunk-MJ3A3TAI.js} +1603 -36
  13. package/dist/chunk-MJ3A3TAI.js.map +1 -0
  14. package/dist/{chunk-HFUBVT7W.js → chunk-UVP43XU2.js} +7 -6
  15. package/dist/chunk-UVP43XU2.js.map +1 -0
  16. package/dist/durable.cjs +10174 -110
  17. package/dist/durable.cjs.map +1 -1
  18. package/dist/durable.js +3 -3
  19. package/dist/engine.cjs +10097 -47
  20. package/dist/engine.cjs.map +1 -1
  21. package/dist/engine.d.cts +2 -2
  22. package/dist/engine.d.ts +2 -2
  23. package/dist/engine.js +5 -7
  24. package/dist/engine.js.map +1 -1
  25. package/dist/fields/react-fancy.d.cts +2 -2
  26. package/dist/fields/react-fancy.d.ts +2 -2
  27. package/dist/index.cjs +203 -191
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +5 -5
  30. package/dist/index.d.ts +5 -5
  31. package/dist/index.js +13 -16
  32. package/dist/index.js.map +1 -1
  33. package/dist/registry/index.d.cts +3 -3
  34. package/dist/registry/index.d.ts +3 -3
  35. package/dist/{registry-D_kyUZEf.d.cts → registry-BnnifM-t.d.cts} +22 -3
  36. package/dist/{registry-LHB3MlR9.d.ts → registry-DpARG95T.d.ts} +22 -3
  37. package/dist/registry.cjs +2978 -2968
  38. package/dist/registry.cjs.map +1 -1
  39. package/dist/registry.js +3 -6
  40. package/dist/runtime.cjs +3692 -2536
  41. package/dist/runtime.cjs.map +1 -1
  42. package/dist/runtime.js +5 -6
  43. package/dist/schema.cjs +10369 -24
  44. package/dist/schema.cjs.map +1 -1
  45. package/dist/schema.js +4 -3
  46. package/dist/screens.cjs +1366 -38
  47. package/dist/screens.cjs.map +1 -1
  48. package/dist/screens.js +5 -8
  49. package/dist/screens.js.map +1 -1
  50. package/dist/{types--S2Kzx7w.d.cts → types-BO8TgI2M.d.cts} +1 -1
  51. package/dist/{types-ChkCRonF.d.ts → types-DJAmfiJC.d.ts} +1 -1
  52. package/dist/ux.cjs +10363 -2
  53. package/dist/ux.cjs.map +1 -1
  54. package/dist/ux.d.cts +1 -1
  55. package/dist/ux.d.ts +1 -1
  56. package/dist/ux.js +3 -1
  57. package/dist/ux.js.map +1 -1
  58. package/package.json +6 -2
  59. package/dist/chunk-3BKU4SQZ.js.map +0 -1
  60. package/dist/chunk-HFUBVT7W.js.map +0 -1
  61. package/dist/chunk-L43CWD63.js +0 -282
  62. package/dist/chunk-L43CWD63.js.map +0 -1
  63. package/dist/chunk-MH4ZW4DJ.js.map +0 -1
  64. package/dist/chunk-OWENS2H5.js.map +0 -1
  65. package/dist/chunk-PVROYW7C.js +0 -187
  66. package/dist/chunk-PVROYW7C.js.map +0 -1
  67. package/dist/chunk-RMU6YCIQ.js +0 -1274
  68. package/dist/chunk-RMU6YCIQ.js.map +0 -1
  69. package/dist/chunk-TITD5W4Y.js +0 -26
  70. package/dist/chunk-TITD5W4Y.js.map +0 -1
package/dist/screens.js CHANGED
@@ -1,13 +1,10 @@
1
- import { FlowViewer } from './chunk-HFUBVT7W.js';
2
- export { FlowViewer } from './chunk-HFUBVT7W.js';
3
- import './chunk-RMU6YCIQ.js';
1
+ import { FlowViewer } from './chunk-UVP43XU2.js';
2
+ export { FlowViewer } from './chunk-UVP43XU2.js';
3
+ import './chunk-DRRZEAYB.js';
4
+ import './chunk-UEOE6B52.js';
5
+ import './chunk-MJ3A3TAI.js';
4
6
  import './chunk-F5RPRB7A.js';
5
- import './chunk-OWENS2H5.js';
6
7
  import './chunk-USL4FMFU.js';
7
- import './chunk-UEOE6B52.js';
8
- import './chunk-L43CWD63.js';
9
- import './chunk-TITD5W4Y.js';
10
- import './chunk-PVROYW7C.js';
11
8
  import { registerSchemaComponents } from '@particle-academy/fancy-screens';
12
9
 
13
10
  function registerFlowSchema() {
@@ -1 +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"]}
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"]}
@@ -621,4 +621,4 @@ type NodeKindDefinition<TConfig = Record<string, unknown>, TIn = any, TOut = any
621
621
  reactive?: boolean;
622
622
  };
623
623
 
624
- export { type AvailableVariable as A, type ConfigField as C, type DocumentConfigField as D, type ExpressionConfigField as E, type JsonConfigField as J, type KeyValueConfigField as K, type ManifestProblem as M, type NodeKindDefinition as N, type OutputField as O, type PortSpec as P, type RenderBodyContext as R, type SideEffects as S, type TextConfigField as T, type NodeCategory as a, type CapabilityRequirement as b, type ManifestValidation as c, NODE_MANIFEST_SCHEMA_VERSION as d, type NodePackageManifest as e, type NodeRuntimeId as f, type NodeRuntimeSpec as g, checkCapabilities as h, checkRuntimeSupport as i, type CredentialConfigField as j, type NumberConfigField as k, type RepeaterConfigField as l, type RepeaterRowField as m, type SelectConfigField as n, type SwitchConfigField as o, type TextareaConfigField as p, type ExpressionForm as q, type ExpressionGrammarHelp as r, satisfiesRange as s, type OutputShape as t, availableVariables as u, validateNodeManifest as v, baseVariables as w, describeExpressionGrammar as x, outputFieldsFor as y };
624
+ export { type AvailableVariable as A, type ConfigField as C, type DocumentConfigField as D, type ExpressionConfigField as E, type JsonConfigField as J, type KeyValueConfigField as K, type ManifestProblem as M, type NodeKindDefinition as N, type OutputField as O, type PortSpec as P, type RenderBodyContext as R, type SideEffects as S, type TextConfigField as T, type NodeCategory as a, type CapabilityRequirement as b, type ManifestValidation as c, NODE_MANIFEST_SCHEMA_VERSION as d, type NodePackageManifest as e, type NodeRuntimeId as f, type NodeRuntimeSpec as g, type OutputShape as h, checkCapabilities as i, checkRuntimeSupport as j, type CredentialConfigField as k, type NumberConfigField as l, type RepeaterConfigField as m, type RepeaterRowField as n, type SelectConfigField as o, type SwitchConfigField as p, type TextareaConfigField as q, type ExpressionForm as r, satisfiesRange as s, type ExpressionGrammarHelp as t, availableVariables as u, validateNodeManifest as v, baseVariables as w, describeExpressionGrammar as x, outputFieldsFor as y };
@@ -621,4 +621,4 @@ type NodeKindDefinition<TConfig = Record<string, unknown>, TIn = any, TOut = any
621
621
  reactive?: boolean;
622
622
  };
623
623
 
624
- export { type AvailableVariable as A, type ConfigField as C, type DocumentConfigField as D, type ExpressionConfigField as E, type JsonConfigField as J, type KeyValueConfigField as K, type ManifestProblem as M, type NodeKindDefinition as N, type OutputField as O, type PortSpec as P, type RenderBodyContext as R, type SideEffects as S, type TextConfigField as T, type NodeCategory as a, type CapabilityRequirement as b, type ManifestValidation as c, NODE_MANIFEST_SCHEMA_VERSION as d, type NodePackageManifest as e, type NodeRuntimeId as f, type NodeRuntimeSpec as g, checkCapabilities as h, checkRuntimeSupport as i, type CredentialConfigField as j, type NumberConfigField as k, type RepeaterConfigField as l, type RepeaterRowField as m, type SelectConfigField as n, type SwitchConfigField as o, type TextareaConfigField as p, type ExpressionForm as q, type ExpressionGrammarHelp as r, satisfiesRange as s, type OutputShape as t, availableVariables as u, validateNodeManifest as v, baseVariables as w, describeExpressionGrammar as x, outputFieldsFor as y };
624
+ export { type AvailableVariable as A, type ConfigField as C, type DocumentConfigField as D, type ExpressionConfigField as E, type JsonConfigField as J, type KeyValueConfigField as K, type ManifestProblem as M, type NodeKindDefinition as N, type OutputField as O, type PortSpec as P, type RenderBodyContext as R, type SideEffects as S, type TextConfigField as T, type NodeCategory as a, type CapabilityRequirement as b, type ManifestValidation as c, NODE_MANIFEST_SCHEMA_VERSION as d, type NodePackageManifest as e, type NodeRuntimeId as f, type NodeRuntimeSpec as g, type OutputShape as h, checkCapabilities as i, checkRuntimeSupport as j, type CredentialConfigField as k, type NumberConfigField as l, type RepeaterConfigField as m, type RepeaterRowField as n, type SelectConfigField as o, type SwitchConfigField as p, type TextareaConfigField as q, type ExpressionForm as r, satisfiesRange as s, type ExpressionGrammarHelp as t, availableVariables as u, validateNodeManifest as v, baseVariables as w, describeExpressionGrammar as x, outputFieldsFor as y };