@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/esm/index.js CHANGED
@@ -22,8 +22,13 @@ var FlowNodeBaseType = /* @__PURE__ */ ((FlowNodeBaseType2) => {
22
22
  FlowNodeBaseType2["BLOCK_ORDER_ICON"] = "blockOrderIcon";
23
23
  FlowNodeBaseType2["GROUP"] = "group";
24
24
  FlowNodeBaseType2["END"] = "end";
25
+ FlowNodeBaseType2["BREAK"] = "break";
25
26
  FlowNodeBaseType2["CONDITION"] = "condition";
26
27
  FlowNodeBaseType2["SUB_CANVAS"] = "subCanvas";
28
+ FlowNodeBaseType2["MULTI_INPUTS"] = "multiInputs";
29
+ FlowNodeBaseType2["MULTI_OUTPUTS"] = "multiOutputs";
30
+ FlowNodeBaseType2["INPUT"] = "input";
31
+ FlowNodeBaseType2["OUTPUT"] = "output";
27
32
  return FlowNodeBaseType2;
28
33
  })(FlowNodeBaseType || {});
29
34
  var FlowNodeSplitType = /* @__PURE__ */ ((FlowNodeSplitType2) => {
@@ -1960,6 +1965,7 @@ var FlowDocument = class {
1960
1965
  const customDefaultRegistry = this.options.getNodeDefaultRegistry?.(type);
1961
1966
  let register = this.registers.get(type) || { type };
1962
1967
  const extendRegisters = [];
1968
+ const extendKey = register.extend;
1963
1969
  if (register.extend && this.registers.has(register.extend)) {
1964
1970
  register = FlowNodeRegistry.merge(
1965
1971
  this.getNodeRegistry(register.extend),
@@ -1990,6 +1996,9 @@ var FlowDocument = class {
1990
1996
  ...register.meta
1991
1997
  }
1992
1998
  };
1999
+ if (extendKey) {
2000
+ res.extend = extendKey;
2001
+ }
1993
2002
  this.nodeRegistryCache.set(typeKey, res);
1994
2003
  return res;
1995
2004
  }