@rkmodules/rules 0.0.147 → 0.0.148

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: "DynamicInput",
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);
@@ -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