@flowgram.ai/free-layout-core 0.4.17 → 0.4.19
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 +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/esm/index.js
CHANGED
|
@@ -2181,6 +2181,7 @@ var WorkflowDocument = class extends FlowDocument {
|
|
|
2181
2181
|
originParent,
|
|
2182
2182
|
meta
|
|
2183
2183
|
});
|
|
2184
|
+
this.options.preNodeCreate?.(node);
|
|
2184
2185
|
const datas = dataRegistries ? this.nodeDataRegistries.concat(...dataRegistries) : this.nodeDataRegistries;
|
|
2185
2186
|
node.addInitializeData(datas);
|
|
2186
2187
|
node.ports = node.getData(WorkflowNodePortsData);
|
|
@@ -3008,7 +3009,7 @@ var WorkflowDragService = class {
|
|
|
3008
3009
|
return;
|
|
3009
3010
|
}
|
|
3010
3011
|
const sourceContainer = nodes[0]?.parent;
|
|
3011
|
-
if (!sourceContainer) {
|
|
3012
|
+
if (!sourceContainer || sourceContainer.flowNodeType === FlowNodeBaseType3.ROOT) {
|
|
3012
3013
|
return;
|
|
3013
3014
|
}
|
|
3014
3015
|
const valid = nodes.every((node) => node?.parent === sourceContainer);
|