@tiptap/vue-2 3.21.0 → 3.22.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.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/menus/index.cjs +7 -1
- package/dist/menus/index.cjs.map +1 -1
- package/dist/menus/index.d.cts +1 -1
- package/dist/menus/index.d.ts +1 -1
- package/dist/menus/index.js +7 -1
- package/dist/menus/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tiptap_core from '@tiptap/core';
|
|
2
|
-
import { Editor as Editor$1,
|
|
2
|
+
import { Editor as Editor$1, NodeViewRendererOptions, NodeViewRenderer, DecorationWithType } from '@tiptap/core';
|
|
3
3
|
export * from '@tiptap/core';
|
|
4
4
|
import { Component, VueConstructor } from 'vue';
|
|
5
5
|
import * as vue_ts_types_dist_types_js from 'vue-ts-types/dist/types.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tiptap_core from '@tiptap/core';
|
|
2
|
-
import { Editor as Editor$1,
|
|
2
|
+
import { Editor as Editor$1, NodeViewRendererOptions, NodeViewRenderer, DecorationWithType } from '@tiptap/core';
|
|
3
3
|
export * from '@tiptap/core';
|
|
4
4
|
import { Component, VueConstructor } from 'vue';
|
|
5
5
|
import * as vue_ts_types_dist_types_js from 'vue-ts-types/dist/types.js';
|
package/dist/menus/index.cjs
CHANGED
|
@@ -1730,8 +1730,8 @@ var BubbleMenuView = class {
|
|
|
1730
1730
|
this.hide();
|
|
1731
1731
|
return;
|
|
1732
1732
|
}
|
|
1733
|
-
this.updatePosition();
|
|
1734
1733
|
this.show();
|
|
1734
|
+
this.updatePosition();
|
|
1735
1735
|
};
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Handles the transaction event to update the position of the bubble menu.
|
|
@@ -1865,6 +1865,9 @@ var BubbleMenuView = class {
|
|
|
1865
1865
|
return virtualElement;
|
|
1866
1866
|
}
|
|
1867
1867
|
updatePosition() {
|
|
1868
|
+
if (!this.isVisible) {
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1868
1871
|
const virtualElement = this.virtualElement;
|
|
1869
1872
|
if (!virtualElement) {
|
|
1870
1873
|
return;
|
|
@@ -1875,6 +1878,9 @@ var BubbleMenuView = class {
|
|
|
1875
1878
|
middleware: this.middlewares
|
|
1876
1879
|
}).then(({ x, y, strategy, middlewareData }) => {
|
|
1877
1880
|
var _a, _b;
|
|
1881
|
+
if (!this.isVisible || this.editor.isDestroyed || !this.element.isConnected) {
|
|
1882
|
+
return;
|
|
1883
|
+
}
|
|
1878
1884
|
if (((_a = middlewareData.hide) == null ? void 0 : _a.referenceHidden) || ((_b = middlewareData.hide) == null ? void 0 : _b.escaped)) {
|
|
1879
1885
|
this.element.style.visibility = "hidden";
|
|
1880
1886
|
return;
|