@blocknote/core 0.42.2 → 0.42.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/blocknote.js
CHANGED
|
@@ -6252,11 +6252,12 @@ class Kt extends Ne {
|
|
|
6252
6252
|
}
|
|
6253
6253
|
get domElement() {
|
|
6254
6254
|
var e;
|
|
6255
|
-
|
|
6255
|
+
if (!this.headless)
|
|
6256
|
+
return (e = this.prosemirrorView) == null ? void 0 : e.dom;
|
|
6256
6257
|
}
|
|
6257
6258
|
isFocused() {
|
|
6258
6259
|
var e;
|
|
6259
|
-
return ((e = this.prosemirrorView) == null ? void 0 : e.hasFocus()) || !1;
|
|
6260
|
+
return this.headless ? !1 : ((e = this.prosemirrorView) == null ? void 0 : e.hasFocus()) || !1;
|
|
6260
6261
|
}
|
|
6261
6262
|
get headless() {
|
|
6262
6263
|
return !this._tiptapEditor.isInitialized;
|
|
@@ -6696,7 +6697,7 @@ class Kt extends Ne {
|
|
|
6696
6697
|
return e.length === 0 || e.length === 1 && e[0].type === "paragraph" && e[0].content.length === 0;
|
|
6697
6698
|
}
|
|
6698
6699
|
openSuggestionMenu(e, o) {
|
|
6699
|
-
this.prosemirrorView
|
|
6700
|
+
!this.prosemirrorView || this.headless || (this.focus(), this.transact((r) => {
|
|
6700
6701
|
o != null && o.deleteTriggerCharacter && r.insertText(e), r.scrollIntoView().setMeta(this.suggestionMenus.plugins[0], {
|
|
6701
6702
|
triggerCharacter: e,
|
|
6702
6703
|
deleteTriggerCharacter: (o == null ? void 0 : o.deleteTriggerCharacter) || !1,
|