@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.esm.js CHANGED
@@ -1964,7 +1964,7 @@ var mergeTree = {
1964
1964
  name: "mergeTree",
1965
1965
  label: "Merge Tree",
1966
1966
  description: "Merge groups with the same index into a single tree.",
1967
- nodeType: "DynamicInput",
1967
+ nodeType: "NamedInput",
1968
1968
  inputs: {},
1969
1969
  outputs: {
1970
1970
  result: "any",
@@ -3004,6 +3004,7 @@ var Engine = /** @class */ (function () {
3004
3004
  });
3005
3005
  context = {
3006
3006
  scope: { inputs: inputs },
3007
+ calls: {},
3007
3008
  inputs: { inputs: inputs },
3008
3009
  params: { params: params },
3009
3010
  timings: {},
@@ -3029,6 +3030,7 @@ var Engine = /** @class */ (function () {
3029
3030
  inputs_1 = interpolate(fnCall.inputs || {}, context.scope);
3030
3031
  params_1 = fnCall.params || {};
3031
3032
  result_1 = {};
3033
+ context.calls[name_1] = fnCall;
3032
3034
  context.inputs[name_1] = inputs_1;
3033
3035
  context.params[name_1] = params_1;
3034
3036
  cacheResult = this.checkCache(name_1, inputs_1);
@@ -6967,12 +6969,12 @@ var NamedInput = function (_a) {
6967
6969
  var _b = __read(_a, 2), name = _b[0], varDef = _b[1];
6968
6970
  return (React.createElement(Input, { key: "".concat(name, "_").concat(index), name: name, varDef: varDef, id: id, data: data, onRename: onRename, onDelete: onDelete }));
6969
6971
  }),
6972
+ React.createElement("div", { className: styles.Body },
6973
+ React.createElement("button", { onClick: function () { return onAdd(); } }, "+")),
6970
6974
  paramEntries.map(function (_a, index) {
6971
6975
  var _b = __read(_a, 2), name = _b[0], varDef = _b[1];
6972
6976
  return (React.createElement(Param, { key: "".concat(name, "_").concat(index), name: name, varDef: varDef, id: id, data: data }));
6973
6977
  })),
6974
- React.createElement("div", { className: styles.Body },
6975
- React.createElement("button", { onClick: function () { return onAdd(); } }, "+")),
6976
6978
  !!outputEntries.length && (React.createElement("div", { className: classNames(styles.PreviewHead, (_b = {},
6977
6979
  _b[styles.expanded] = showPreview,
6978
6980
  _b)), onClick: function () { return setShowPreview(!showPreview); } }, "Preview")),
@@ -7214,7 +7216,7 @@ var useFlowState = create$1(function (set, get) { return ({
7214
7216
  // shallow comparison
7215
7217
  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]);
7216
7218
  });
7217
- console.log("changed keys", changedKeys);
7219
+ // console.log("changed keys", changedKeys);
7218
7220
  changedKeys.forEach(function (key) {
7219
7221
  var _a;
7220
7222
  // update the nodes that were changed