@rkmodules/rules 0.0.147 → 0.0.149
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/index.cjs.js
CHANGED
|
@@ -1966,7 +1966,7 @@ var mergeTree = {
|
|
|
1966
1966
|
name: "mergeTree",
|
|
1967
1967
|
label: "Merge Tree",
|
|
1968
1968
|
description: "Merge groups with the same index into a single tree.",
|
|
1969
|
-
nodeType: "
|
|
1969
|
+
nodeType: "NamedInput",
|
|
1970
1970
|
inputs: {},
|
|
1971
1971
|
outputs: {
|
|
1972
1972
|
result: "any",
|
|
@@ -3006,6 +3006,7 @@ var Engine = /** @class */ (function () {
|
|
|
3006
3006
|
});
|
|
3007
3007
|
context = {
|
|
3008
3008
|
scope: { inputs: inputs },
|
|
3009
|
+
calls: {},
|
|
3009
3010
|
inputs: { inputs: inputs },
|
|
3010
3011
|
params: { params: params },
|
|
3011
3012
|
timings: {},
|
|
@@ -3031,6 +3032,7 @@ var Engine = /** @class */ (function () {
|
|
|
3031
3032
|
inputs_1 = interpolate(fnCall.inputs || {}, context.scope);
|
|
3032
3033
|
params_1 = fnCall.params || {};
|
|
3033
3034
|
result_1 = {};
|
|
3035
|
+
context.calls[name_1] = fnCall;
|
|
3034
3036
|
context.inputs[name_1] = inputs_1;
|
|
3035
3037
|
context.params[name_1] = params_1;
|
|
3036
3038
|
cacheResult = this.checkCache(name_1, inputs_1);
|
|
@@ -3053,7 +3055,7 @@ var Engine = /** @class */ (function () {
|
|
|
3053
3055
|
context: context,
|
|
3054
3056
|
startTime: startTime_1,
|
|
3055
3057
|
});
|
|
3056
|
-
return [4 /*yield*/, fn.impl(inputs_1, params_1, this, name_1)];
|
|
3058
|
+
return [4 /*yield*/, fn.impl(inputs_1, params_1, this, context, name_1)];
|
|
3057
3059
|
case 3:
|
|
3058
3060
|
// call the implentation of sub functions
|
|
3059
3061
|
result_1 = _e.sent();
|
|
@@ -3221,7 +3223,7 @@ var Engine = /** @class */ (function () {
|
|
|
3221
3223
|
return [2 /*return*/, this.run(builtFn, inputs)];
|
|
3222
3224
|
}
|
|
3223
3225
|
mappedInputs = interpolate(inputs, {});
|
|
3224
|
-
return [4 /*yield*/, ((_a = node.impl) === null || _a === void 0 ? void 0 : _a.call(node, mappedInputs, {}, this, "_root"))];
|
|
3226
|
+
return [4 /*yield*/, ((_a = node.impl) === null || _a === void 0 ? void 0 : _a.call(node, mappedInputs, {}, this, null, "_root"))];
|
|
3225
3227
|
case 1:
|
|
3226
3228
|
result = _b.sent();
|
|
3227
3229
|
// console.log("Engine run complete", result);
|
|
@@ -6969,12 +6971,12 @@ var NamedInput = function (_a) {
|
|
|
6969
6971
|
var _b = __read(_a, 2), name = _b[0], varDef = _b[1];
|
|
6970
6972
|
return (React.createElement(Input, { key: "".concat(name, "_").concat(index), name: name, varDef: varDef, id: id, data: data, onRename: onRename, onDelete: onDelete }));
|
|
6971
6973
|
}),
|
|
6974
|
+
React.createElement("div", { className: styles.Body },
|
|
6975
|
+
React.createElement("button", { onClick: function () { return onAdd(); } }, "+")),
|
|
6972
6976
|
paramEntries.map(function (_a, index) {
|
|
6973
6977
|
var _b = __read(_a, 2), name = _b[0], varDef = _b[1];
|
|
6974
6978
|
return (React.createElement(Param, { key: "".concat(name, "_").concat(index), name: name, varDef: varDef, id: id, data: data }));
|
|
6975
6979
|
})),
|
|
6976
|
-
React.createElement("div", { className: styles.Body },
|
|
6977
|
-
React.createElement("button", { onClick: function () { return onAdd(); } }, "+")),
|
|
6978
6980
|
!!outputEntries.length && (React.createElement("div", { className: classNames(styles.PreviewHead, (_b = {},
|
|
6979
6981
|
_b[styles.expanded] = showPreview,
|
|
6980
6982
|
_b)), onClick: function () { return setShowPreview(!showPreview); } }, "Preview")),
|
|
@@ -7216,7 +7218,7 @@ var useFlowState = zustand.create(function (set, get) { return ({
|
|
|
7216
7218
|
// shallow comparison
|
|
7217
7219
|
return ((_a = fn.body) === null || _a === void 0 ? void 0 : _a[key]) !== ((_b = oldFn === null || oldFn === void 0 ? void 0 : oldFn.body) === null || _b === void 0 ? void 0 : _b[key]);
|
|
7218
7220
|
});
|
|
7219
|
-
console.log("changed keys", changedKeys);
|
|
7221
|
+
// console.log("changed keys", changedKeys);
|
|
7220
7222
|
changedKeys.forEach(function (key) {
|
|
7221
7223
|
var _a;
|
|
7222
7224
|
// update the nodes that were changed
|