@particle-academy/fancy-flow 0.51.0 → 0.51.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.
- package/dist/{chunk-XCT2CJ5O.js → chunk-4GO2CHAY.js} +20 -5
- package/dist/chunk-4GO2CHAY.js.map +1 -0
- package/dist/{chunk-7XTTXMGB.js → chunk-OECW2E5D.js} +4 -4
- package/dist/{chunk-7XTTXMGB.js.map → chunk-OECW2E5D.js.map} +1 -1
- package/dist/{chunk-HXGGCMR7.js → chunk-OK7KJLWA.js} +3 -3
- package/dist/{chunk-HXGGCMR7.js.map → chunk-OK7KJLWA.js.map} +1 -1
- package/dist/{chunk-6AI6CBNL.js → chunk-RSRXKZ52.js} +3 -3
- package/dist/{chunk-6AI6CBNL.js.map → chunk-RSRXKZ52.js.map} +1 -1
- package/dist/{chunk-LH76EIFL.js → chunk-SPINP4EJ.js} +3 -3
- package/dist/{chunk-LH76EIFL.js.map → chunk-SPINP4EJ.js.map} +1 -1
- package/dist/{chunk-SKEZ5AGI.js → chunk-VUU3CDBT.js} +3 -3
- package/dist/{chunk-SKEZ5AGI.js.map → chunk-VUU3CDBT.js.map} +1 -1
- package/dist/durable.cjs +18 -3
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +18 -3
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +3 -3
- package/dist/index.cjs +18 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/registry.cjs +18 -3
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +18 -3
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema.cjs +18 -3
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +18 -3
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +4 -4
- package/dist/ux.cjs +18 -3
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XCT2CJ5O.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-
|
|
2
|
-
export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-
|
|
3
|
-
import { useFlowState, useFlowRun, useFlowHistory, applyOutputsToNodes, applyStatusesToNodes } from './chunk-
|
|
4
|
-
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-
|
|
5
|
-
export { runCohort } from './chunk-
|
|
1
|
+
import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-OECW2E5D.js';
|
|
2
|
+
export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-OECW2E5D.js';
|
|
3
|
+
import { useFlowState, useFlowRun, useFlowHistory, applyOutputsToNodes, applyStatusesToNodes } from './chunk-OK7KJLWA.js';
|
|
4
|
+
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-OK7KJLWA.js';
|
|
5
|
+
export { runCohort } from './chunk-VUU3CDBT.js';
|
|
6
6
|
export { evaluateConfig, evaluateExpression, resolvePath, text, truthy } from './chunk-BHM5HGXH.js';
|
|
7
|
-
import { buildNodeTypes } from './chunk-
|
|
8
|
-
export { ANY_PORT_TYPE, RegistryNode, buildNodeTypes, createConnectionValidator, defaultPortCompatibility } from './chunk-
|
|
7
|
+
import { buildNodeTypes } from './chunk-RSRXKZ52.js';
|
|
8
|
+
export { ANY_PORT_TYPE, RegistryNode, buildNodeTypes, createConnectionValidator, defaultPortCompatibility } from './chunk-RSRXKZ52.js';
|
|
9
9
|
export { LEGACY_PAUSE_PREFIXES, PAUSE_PREFIX, decodePause, encodePause, isPause, pauseForHuman } from './chunk-UEOE6B52.js';
|
|
10
|
-
import { workflowToBlob, importWorkflow, exportWorkflow } from './chunk-
|
|
11
|
-
export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-
|
|
12
|
-
import { ReactFlowProvider, useReactFlow, onNodeKindsChanged, listNodeKinds, getNodeKind, defaultConfigFor, FlowEditorProvider, addEdge, applyEdgeChanges, applyNodeChanges, Position, ensureBuiltinKinds, validateConfig, categoryAccent, Handle } from './chunk-
|
|
13
|
-
export { BUILTIN_KINDS, LaneNode, NoteNode, categoryAccent, clearNodeKindOverrides, defaultConfigFor, ensureBuiltinKinds, getNodeKind, listNodeKinds, onNodeKindsChanged, overrideNodeKind, registerBuiltinKinds, registerNodeKind, resolveNodePorts, resolvePortSpec, runFlow, useFlowEditor, useFlowEditorOptional, validateConfig } from './chunk-
|
|
10
|
+
import { workflowToBlob, importWorkflow, exportWorkflow } from './chunk-SPINP4EJ.js';
|
|
11
|
+
export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-SPINP4EJ.js';
|
|
12
|
+
import { ReactFlowProvider, useReactFlow, onNodeKindsChanged, listNodeKinds, getNodeKind, defaultConfigFor, FlowEditorProvider, addEdge, applyEdgeChanges, applyNodeChanges, Position, ensureBuiltinKinds, validateConfig, categoryAccent, Handle } from './chunk-4GO2CHAY.js';
|
|
13
|
+
export { BUILTIN_KINDS, LaneNode, NoteNode, categoryAccent, clearNodeKindOverrides, defaultConfigFor, ensureBuiltinKinds, getNodeKind, listNodeKinds, onNodeKindsChanged, overrideNodeKind, registerBuiltinKinds, registerNodeKind, resolveNodePorts, resolvePortSpec, runFlow, useFlowEditor, useFlowEditorOptional, validateConfig } from './chunk-4GO2CHAY.js';
|
|
14
14
|
import { getRichInputAdapter } from './chunk-F5RPRB7A.js';
|
|
15
15
|
export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
|
|
16
16
|
import './chunk-USL4FMFU.js';
|
package/dist/registry.cjs
CHANGED
|
@@ -9489,7 +9489,8 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9489
9489
|
const inputs = collectInputs(node, incoming, portValues, initialInputs, props, declaresProps);
|
|
9490
9490
|
const exec = pickExecutor(executors, node);
|
|
9491
9491
|
if (!exec) {
|
|
9492
|
-
const
|
|
9492
|
+
const tried = executorLookupIds(node);
|
|
9493
|
+
const msg = `No executor registered for kind=${node.type} \u2014 tried ${tried.map((id2) => `"${id2}"`).join(", ")} and the wildcard "*". Key your registry by one of those.`;
|
|
9493
9494
|
errors.push(msg);
|
|
9494
9495
|
onEvent({ type: "node-status", nodeId: node.id, status: "error", text: msg });
|
|
9495
9496
|
onEvent({ type: "log", nodeId: node.id, level: "error", message: msg });
|
|
@@ -9582,14 +9583,28 @@ function collectInputs(node, incoming, portValues, initial, props, declaresProps
|
|
|
9582
9583
|
if (declaresProps) inputs.$props = props;
|
|
9583
9584
|
return inputs;
|
|
9584
9585
|
}
|
|
9586
|
+
function executorLookupIds(node) {
|
|
9587
|
+
const ids = [node.id];
|
|
9588
|
+
if (node.type) ids.push(node.type);
|
|
9589
|
+
const declared = node.data?.kind;
|
|
9590
|
+
const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
|
|
9591
|
+
if (kindName && kindName !== node.type) ids.push(kindName);
|
|
9592
|
+
for (const name of [kindName, node.type]) {
|
|
9593
|
+
const kind = name ? getNodeKind(name) : null;
|
|
9594
|
+
if (!kind) continue;
|
|
9595
|
+
for (const id2 of kindIds(kind)) ids.push(id2);
|
|
9596
|
+
}
|
|
9597
|
+
return [...new Set(ids)];
|
|
9598
|
+
}
|
|
9585
9599
|
function pickExecutor(executors, node) {
|
|
9586
9600
|
if (executors[node.id]) return executors[node.id];
|
|
9587
9601
|
if (node.type && executors[node.type]) return executors[node.type];
|
|
9588
9602
|
const declared = node.data?.kind;
|
|
9589
9603
|
const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
|
|
9590
9604
|
if (kindName && kindName !== node.type && executors[kindName]) return executors[kindName];
|
|
9591
|
-
const
|
|
9592
|
-
|
|
9605
|
+
for (const name of [kindName, node.type]) {
|
|
9606
|
+
const kind = name ? getNodeKind(name) : null;
|
|
9607
|
+
if (!kind) continue;
|
|
9593
9608
|
for (const id2 of kindIds(kind)) {
|
|
9594
9609
|
if (executors[id2]) return executors[id2];
|
|
9595
9610
|
}
|