@particle-academy/fancy-flow 0.65.1 → 0.65.2
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/ux.cjs +8 -3
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.d.cts +12 -0
- package/dist/ux.d.ts +12 -0
- package/dist/ux.js +8 -3
- package/dist/ux.js.map +1 -1
- package/package.json +1 -1
package/dist/ux.cjs
CHANGED
|
@@ -10660,12 +10660,15 @@ function createFlowRunnerUx(options) {
|
|
|
10660
10660
|
const dispatcher = fancyAutoCommon.createEffectDispatcher(effects, { actor, targetKind: "ux" });
|
|
10661
10661
|
const executors = {};
|
|
10662
10662
|
for (const name of Object.keys(effects)) {
|
|
10663
|
-
executors[kindFor(name)] = async ({ node }) => {
|
|
10664
|
-
const
|
|
10663
|
+
executors[kindFor(name)] = async ({ node, inputs }) => {
|
|
10664
|
+
const m = meta[name] ?? {};
|
|
10665
|
+
const config = node.data?.config ?? {};
|
|
10666
|
+
const params = m.includeInputs ? { ...config, $inputs: inputs } : config;
|
|
10665
10667
|
const result = await dispatcher.dispatch(name, params);
|
|
10666
10668
|
if (result && typeof result === "object" && ("branch" in result || "__port" in result)) {
|
|
10667
10669
|
return result;
|
|
10668
10670
|
}
|
|
10671
|
+
if (m.passThrough) return inputs.in ?? inputs;
|
|
10669
10672
|
return { effect: name, result };
|
|
10670
10673
|
};
|
|
10671
10674
|
}
|
|
@@ -10680,7 +10683,9 @@ function createFlowRunnerUx(options) {
|
|
|
10680
10683
|
icon: m.icon ?? "\u2728",
|
|
10681
10684
|
accent: m.accent ?? "#8b5cf6",
|
|
10682
10685
|
inputs: [{ id: "in" }],
|
|
10683
|
-
outputs: [],
|
|
10686
|
+
outputs: m.passThrough ? [{ id: "out" }] : [],
|
|
10687
|
+
emits: m.passThrough ? "input" : void 0,
|
|
10688
|
+
sideEffects: "unsafe-to-replay",
|
|
10684
10689
|
configSchema: m.configSchema
|
|
10685
10690
|
});
|
|
10686
10691
|
}
|