@flowgram.ai/document 0.1.29 → 0.1.30

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.d.mts CHANGED
@@ -1162,8 +1162,13 @@ declare enum FlowNodeBaseType {
1162
1162
  BLOCK_ORDER_ICON = "blockOrderIcon",
1163
1163
  GROUP = "group",
1164
1164
  END = "end",
1165
+ BREAK = "break",
1165
1166
  CONDITION = "condition",
1166
- SUB_CANVAS = "subCanvas"
1167
+ SUB_CANVAS = "subCanvas",
1168
+ MULTI_INPUTS = "multiInputs",
1169
+ MULTI_OUTPUTS = "multiOutputs",
1170
+ INPUT = "input",
1171
+ OUTPUT = "output"
1167
1172
  }
1168
1173
  declare enum FlowNodeSplitType {
1169
1174
  SIMPLE_SPLIT = "simpleSplit",
package/dist/index.d.ts CHANGED
@@ -1162,8 +1162,13 @@ declare enum FlowNodeBaseType {
1162
1162
  BLOCK_ORDER_ICON = "blockOrderIcon",
1163
1163
  GROUP = "group",
1164
1164
  END = "end",
1165
+ BREAK = "break",
1165
1166
  CONDITION = "condition",
1166
- SUB_CANVAS = "subCanvas"
1167
+ SUB_CANVAS = "subCanvas",
1168
+ MULTI_INPUTS = "multiInputs",
1169
+ MULTI_OUTPUTS = "multiOutputs",
1170
+ INPUT = "input",
1171
+ OUTPUT = "output"
1167
1172
  }
1168
1173
  declare enum FlowNodeSplitType {
1169
1174
  SIMPLE_SPLIT = "simpleSplit",
package/dist/index.js CHANGED
@@ -85,8 +85,13 @@ var FlowNodeBaseType = /* @__PURE__ */ ((FlowNodeBaseType2) => {
85
85
  FlowNodeBaseType2["BLOCK_ORDER_ICON"] = "blockOrderIcon";
86
86
  FlowNodeBaseType2["GROUP"] = "group";
87
87
  FlowNodeBaseType2["END"] = "end";
88
+ FlowNodeBaseType2["BREAK"] = "break";
88
89
  FlowNodeBaseType2["CONDITION"] = "condition";
89
90
  FlowNodeBaseType2["SUB_CANVAS"] = "subCanvas";
91
+ FlowNodeBaseType2["MULTI_INPUTS"] = "multiInputs";
92
+ FlowNodeBaseType2["MULTI_OUTPUTS"] = "multiOutputs";
93
+ FlowNodeBaseType2["INPUT"] = "input";
94
+ FlowNodeBaseType2["OUTPUT"] = "output";
90
95
  return FlowNodeBaseType2;
91
96
  })(FlowNodeBaseType || {});
92
97
  var FlowNodeSplitType = /* @__PURE__ */ ((FlowNodeSplitType2) => {
@@ -2019,6 +2024,7 @@ var FlowDocument = class {
2019
2024
  const customDefaultRegistry = this.options.getNodeDefaultRegistry?.(type);
2020
2025
  let register = this.registers.get(type) || { type };
2021
2026
  const extendRegisters = [];
2027
+ const extendKey = register.extend;
2022
2028
  if (register.extend && this.registers.has(register.extend)) {
2023
2029
  register = FlowNodeRegistry.merge(
2024
2030
  this.getNodeRegistry(register.extend),
@@ -2049,6 +2055,9 @@ var FlowDocument = class {
2049
2055
  ...register.meta
2050
2056
  }
2051
2057
  };
2058
+ if (extendKey) {
2059
+ res.extend = extendKey;
2060
+ }
2052
2061
  this.nodeRegistryCache.set(typeKey, res);
2053
2062
  return res;
2054
2063
  }