@particle-academy/fancy-flow 0.10.1 → 0.11.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/{chunk-HNBO4HP3.js → chunk-2NQT2A3I.js} +9 -3
- package/dist/chunk-2NQT2A3I.js.map +1 -0
- package/dist/{chunk-VEI743ZX.js → chunk-3GMBLHTM.js} +3 -3
- package/dist/{chunk-VEI743ZX.js.map → chunk-3GMBLHTM.js.map} +1 -1
- package/dist/{chunk-2DMBJN2O.js → chunk-D6W5FMCT.js} +6 -5
- package/dist/chunk-D6W5FMCT.js.map +1 -0
- package/dist/{chunk-CPSOC27D.js → chunk-U5F22BHV.js} +18 -4
- package/dist/chunk-U5F22BHV.js.map +1 -0
- package/dist/{chunk-NCPQDVUE.js → chunk-YNOI7ONN.js} +54 -28
- package/dist/chunk-YNOI7ONN.js.map +1 -0
- package/dist/engine.cjs +17 -1
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +2 -2
- package/dist/index.cjs +75 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/registry/index.d.cts +20 -4
- package/dist/registry/index.d.ts +20 -4
- package/dist/registry.cjs +68 -26
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +17 -1
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema.cjs +11 -3
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{types-DKqaUjF_.d.cts → types-BwLr5tZV.d.cts} +15 -1
- package/dist/{types-BocBFh6l.d.ts → types-CsEe3EQl.d.ts} +15 -1
- package/dist/ux.cjs +5 -0
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.d.cts +1 -1
- package/dist/ux.d.ts +1 -1
- package/dist/ux.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2DMBJN2O.js.map +0 -1
- package/dist/chunk-CPSOC27D.js.map +0 -1
- package/dist/chunk-HNBO4HP3.js.map +0 -1
- package/dist/chunk-NCPQDVUE.js.map +0 -1
package/dist/registry.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { BUILTIN_KINDS, RegistryNode, buildNodeTypes, registerBuiltinKinds } from './chunk-
|
|
1
|
+
export { BUILTIN_KINDS, RegistryNode, buildNodeTypes, registerBuiltinKinds } from './chunk-YNOI7ONN.js';
|
|
2
2
|
import './chunk-NF6NPY5N.js';
|
|
3
3
|
export { nodeConfig, resolveNodePorts, resolvePortSpec } from './chunk-TITD5W4Y.js';
|
|
4
|
-
export { categoryAccent, defaultConfigFor, getNodeKind, listNodeKinds, onNodeKindsChanged, registerNodeKind, validateConfig } from './chunk-
|
|
4
|
+
export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-U5F22BHV.js';
|
|
5
5
|
export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
|
|
6
6
|
//# sourceMappingURL=registry.js.map
|
|
7
7
|
//# sourceMappingURL=registry.js.map
|
package/dist/runtime.cjs
CHANGED
|
@@ -10,8 +10,18 @@ var ReactExports__default = /*#__PURE__*/_interopDefault(ReactExports);
|
|
|
10
10
|
|
|
11
11
|
// src/registry/registry.ts
|
|
12
12
|
var kinds = /* @__PURE__ */ new Map();
|
|
13
|
+
var aliases = /* @__PURE__ */ new Map();
|
|
14
|
+
function resolveKindId(id2) {
|
|
15
|
+
if (kinds.has(id2)) return id2;
|
|
16
|
+
const canonical = aliases.get(id2);
|
|
17
|
+
return canonical && kinds.has(canonical) ? canonical : null;
|
|
18
|
+
}
|
|
13
19
|
function getNodeKind(name) {
|
|
14
|
-
|
|
20
|
+
const canonical = resolveKindId(name);
|
|
21
|
+
return canonical ? kinds.get(canonical) ?? null : null;
|
|
22
|
+
}
|
|
23
|
+
function kindIds(kind) {
|
|
24
|
+
return [kind.name, ...kind.aliases ?? []];
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
// src/registry/ports.ts
|
|
@@ -156,6 +166,12 @@ function collectInputs(node, incoming, portValues, initial) {
|
|
|
156
166
|
function pickExecutor(executors, node) {
|
|
157
167
|
if (executors[node.id]) return executors[node.id];
|
|
158
168
|
if (node.type && executors[node.type]) return executors[node.type];
|
|
169
|
+
const kind = node.type ? getNodeKind(node.type) : null;
|
|
170
|
+
if (kind) {
|
|
171
|
+
for (const id2 of kindIds(kind)) {
|
|
172
|
+
if (executors[id2]) return executors[id2];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
159
175
|
return executors["*"];
|
|
160
176
|
}
|
|
161
177
|
function activatedPorts(node, result) {
|