@tiptap/vue-2 3.0.9 → 3.1.0

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.
@@ -1793,6 +1793,19 @@ var BubbleMenuView = class {
1793
1793
  getBoundingClientRect: () => domRect,
1794
1794
  getClientRects: () => [domRect]
1795
1795
  };
1796
+ if (selection instanceof import_state.NodeSelection) {
1797
+ let node = this.view.nodeDOM(selection.from);
1798
+ const nodeViewWrapper = node.dataset.nodeViewWrapper ? node : node.querySelector("[data-node-view-wrapper]");
1799
+ if (nodeViewWrapper) {
1800
+ node = nodeViewWrapper;
1801
+ }
1802
+ if (node) {
1803
+ virtualElement = {
1804
+ getBoundingClientRect: () => node.getBoundingClientRect(),
1805
+ getClientRects: () => [node.getBoundingClientRect()]
1806
+ };
1807
+ }
1808
+ }
1796
1809
  if (selection instanceof import_tables.CellSelection) {
1797
1810
  const { $anchorCell, $headCell } = selection;
1798
1811
  const from = $anchorCell ? $anchorCell.pos : $headCell.pos;