@flowgram.ai/document 0.1.29 → 0.1.31
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 +19 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +19 -12
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -827,6 +827,7 @@ interface FlowTransitionLine {
|
|
|
827
827
|
arrow?: boolean;
|
|
828
828
|
renderKey?: string;
|
|
829
829
|
isHorizontal?: boolean;
|
|
830
|
+
isDraggingLine?: boolean;
|
|
830
831
|
activated?: boolean;
|
|
831
832
|
side?: LABEL_SIDE_TYPE;
|
|
832
833
|
style?: React.CSSProperties;
|
|
@@ -1162,8 +1163,13 @@ declare enum FlowNodeBaseType {
|
|
|
1162
1163
|
BLOCK_ORDER_ICON = "blockOrderIcon",
|
|
1163
1164
|
GROUP = "group",
|
|
1164
1165
|
END = "end",
|
|
1166
|
+
BREAK = "break",
|
|
1165
1167
|
CONDITION = "condition",
|
|
1166
|
-
SUB_CANVAS = "subCanvas"
|
|
1168
|
+
SUB_CANVAS = "subCanvas",
|
|
1169
|
+
MULTI_INPUTS = "multiInputs",
|
|
1170
|
+
MULTI_OUTPUTS = "multiOutputs",
|
|
1171
|
+
INPUT = "input",
|
|
1172
|
+
OUTPUT = "output"
|
|
1167
1173
|
}
|
|
1168
1174
|
declare enum FlowNodeSplitType {
|
|
1169
1175
|
SIMPLE_SPLIT = "simpleSplit",
|
package/dist/index.d.ts
CHANGED
|
@@ -827,6 +827,7 @@ interface FlowTransitionLine {
|
|
|
827
827
|
arrow?: boolean;
|
|
828
828
|
renderKey?: string;
|
|
829
829
|
isHorizontal?: boolean;
|
|
830
|
+
isDraggingLine?: boolean;
|
|
830
831
|
activated?: boolean;
|
|
831
832
|
side?: LABEL_SIDE_TYPE;
|
|
832
833
|
style?: React.CSSProperties;
|
|
@@ -1162,8 +1163,13 @@ declare enum FlowNodeBaseType {
|
|
|
1162
1163
|
BLOCK_ORDER_ICON = "blockOrderIcon",
|
|
1163
1164
|
GROUP = "group",
|
|
1164
1165
|
END = "end",
|
|
1166
|
+
BREAK = "break",
|
|
1165
1167
|
CONDITION = "condition",
|
|
1166
|
-
SUB_CANVAS = "subCanvas"
|
|
1168
|
+
SUB_CANVAS = "subCanvas",
|
|
1169
|
+
MULTI_INPUTS = "multiInputs",
|
|
1170
|
+
MULTI_OUTPUTS = "multiOutputs",
|
|
1171
|
+
INPUT = "input",
|
|
1172
|
+
OUTPUT = "output"
|
|
1167
1173
|
}
|
|
1168
1174
|
declare enum FlowNodeSplitType {
|
|
1169
1175
|
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) => {
|
|
@@ -1916,18 +1921,16 @@ var FlowDocument = class {
|
|
|
1916
1921
|
parent: node
|
|
1917
1922
|
});
|
|
1918
1923
|
addedNodes.push(blockIconNode);
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
});
|
|
1930
|
-
}
|
|
1924
|
+
const inlineBlocksNode = this.addNode({
|
|
1925
|
+
id: `$inlineBlocks$${node.id}`,
|
|
1926
|
+
type: "inlineBlocks" /* INLINE_BLOCKS */,
|
|
1927
|
+
originParent: node,
|
|
1928
|
+
parent: node
|
|
1929
|
+
});
|
|
1930
|
+
addedNodes.push(inlineBlocksNode);
|
|
1931
|
+
blocks.forEach((blockData) => {
|
|
1932
|
+
this.addBlock(node, blockData, addedNodes);
|
|
1933
|
+
});
|
|
1931
1934
|
return addedNodes;
|
|
1932
1935
|
}
|
|
1933
1936
|
/**
|
|
@@ -2019,6 +2022,7 @@ var FlowDocument = class {
|
|
|
2019
2022
|
const customDefaultRegistry = this.options.getNodeDefaultRegistry?.(type);
|
|
2020
2023
|
let register = this.registers.get(type) || { type };
|
|
2021
2024
|
const extendRegisters = [];
|
|
2025
|
+
const extendKey = register.extend;
|
|
2022
2026
|
if (register.extend && this.registers.has(register.extend)) {
|
|
2023
2027
|
register = FlowNodeRegistry.merge(
|
|
2024
2028
|
this.getNodeRegistry(register.extend),
|
|
@@ -2049,6 +2053,9 @@ var FlowDocument = class {
|
|
|
2049
2053
|
...register.meta
|
|
2050
2054
|
}
|
|
2051
2055
|
};
|
|
2056
|
+
if (extendKey) {
|
|
2057
|
+
res.extend = extendKey;
|
|
2058
|
+
}
|
|
2052
2059
|
this.nodeRegistryCache.set(typeKey, res);
|
|
2053
2060
|
return res;
|
|
2054
2061
|
}
|