@tiptap/vue-2 3.6.1 → 3.6.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/menus/index.cjs +10 -4
- package/dist/menus/index.cjs.map +1 -1
- package/dist/menus/index.d.cts +2 -2
- package/dist/menus/index.d.ts +2 -2
- package/dist/menus/index.js +10 -4
- package/dist/menus/index.js.map +1 -1
- package/package.json +7 -7
package/dist/menus/index.cjs
CHANGED
|
@@ -1687,6 +1687,10 @@ var BubbleMenuView = class {
|
|
|
1687
1687
|
};
|
|
1688
1688
|
this.blurHandler = ({ event }) => {
|
|
1689
1689
|
var _a2;
|
|
1690
|
+
if (this.editor.isDestroyed) {
|
|
1691
|
+
this.destroy();
|
|
1692
|
+
return;
|
|
1693
|
+
}
|
|
1690
1694
|
if (this.preventHide) {
|
|
1691
1695
|
this.preventHide = false;
|
|
1692
1696
|
return;
|
|
@@ -1893,13 +1897,14 @@ var BubbleMenuView = class {
|
|
|
1893
1897
|
return shouldShow;
|
|
1894
1898
|
}
|
|
1895
1899
|
show() {
|
|
1896
|
-
var _a
|
|
1900
|
+
var _a;
|
|
1897
1901
|
if (this.isVisible) {
|
|
1898
1902
|
return;
|
|
1899
1903
|
}
|
|
1900
1904
|
this.element.style.visibility = "visible";
|
|
1901
1905
|
this.element.style.opacity = "1";
|
|
1902
|
-
|
|
1906
|
+
const appendToElement = typeof this.appendTo === "function" ? this.appendTo() : this.appendTo;
|
|
1907
|
+
(_a = appendToElement != null ? appendToElement : this.view.dom.parentElement) == null ? void 0 : _a.appendChild(this.element);
|
|
1903
1908
|
if (this.floatingUIOptions.onShow) {
|
|
1904
1909
|
this.floatingUIOptions.onShow();
|
|
1905
1910
|
}
|
|
@@ -2204,13 +2209,14 @@ var FloatingMenuView = class {
|
|
|
2204
2209
|
this.updateHandler(view, selectionChanged, docChanged, oldState);
|
|
2205
2210
|
}
|
|
2206
2211
|
show() {
|
|
2207
|
-
var _a
|
|
2212
|
+
var _a;
|
|
2208
2213
|
if (this.isVisible) {
|
|
2209
2214
|
return;
|
|
2210
2215
|
}
|
|
2211
2216
|
this.element.style.visibility = "visible";
|
|
2212
2217
|
this.element.style.opacity = "1";
|
|
2213
|
-
|
|
2218
|
+
const appendToElement = typeof this.appendTo === "function" ? this.appendTo() : this.appendTo;
|
|
2219
|
+
(_a = appendToElement != null ? appendToElement : this.view.dom.parentElement) == null ? void 0 : _a.appendChild(this.element);
|
|
2214
2220
|
if (this.floatingUIOptions.onShow) {
|
|
2215
2221
|
this.floatingUIOptions.onShow();
|
|
2216
2222
|
}
|