@flowgram.ai/free-layout-core 0.2.2 → 0.2.3

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
@@ -1778,6 +1778,7 @@ var WorkflowDocument = class extends FlowDocument {
1778
1778
  parent
1779
1779
  },
1780
1780
  void 0,
1781
+ true,
1781
1782
  true
1782
1783
  );
1783
1784
  const registry = node.getNodeRegistry();
@@ -1832,11 +1833,15 @@ var WorkflowDocument = class extends FlowDocument {
1832
1833
  const parentTransform = node.parent.getData(FlowNodeTransformData5);
1833
1834
  parentTransform.fireChange();
1834
1835
  });
1836
+ let lastDeleteNodeData;
1837
+ node.preDispose.onDispose(() => {
1838
+ lastDeleteNodeData = this.toNodeJSON(node);
1839
+ });
1835
1840
  node.onDispose(() => {
1836
1841
  this.fireContentChange({
1837
1842
  type: "DELETE_NODE" /* DELETE_NODE */,
1838
1843
  entity: node,
1839
- toJSON: () => this.toNodeJSON(node)
1844
+ toJSON: () => lastDeleteNodeData
1840
1845
  });
1841
1846
  });
1842
1847
  }