@jinntec/jinntap 1.13.2 → 1.13.4
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/jinn-tap.es.js +8 -6
- package/package.json +1 -1
package/dist/jinn-tap.es.js
CHANGED
|
@@ -21688,7 +21688,7 @@ class Nx {
|
|
|
21688
21688
|
setupEventListeners() {
|
|
21689
21689
|
this.editor.on("selectionUpdate", ({ editor: e }) => {
|
|
21690
21690
|
this.updatePanelForCurrentPosition(e);
|
|
21691
|
-
}), this.editor.on("
|
|
21691
|
+
}), this.editor.on("update", ({ editor: e }) => {
|
|
21692
21692
|
this.updatePanelForCurrentPosition(e);
|
|
21693
21693
|
}), this.editor.options.element.addEventListener("empty-element-clicked", ({ detail: e }) => {
|
|
21694
21694
|
const { node: t, pos: i } = e;
|
|
@@ -21890,7 +21890,9 @@ class Ix {
|
|
|
21890
21890
|
this.editor = e.tiptap, this.attributePanel = t, this.panel = e.querySelector(".navigation-panel"), this.setupEventListeners();
|
|
21891
21891
|
}
|
|
21892
21892
|
setupEventListeners() {
|
|
21893
|
-
this.editor.on("
|
|
21893
|
+
this.editor.on("update", ({ editor: e }) => {
|
|
21894
|
+
this.updatePanelForCurrentPosition(e);
|
|
21895
|
+
}), this.editor.on("selectionUpdate", ({ editor: e }) => {
|
|
21894
21896
|
this.updatePanelForCurrentPosition(e);
|
|
21895
21897
|
});
|
|
21896
21898
|
}
|
|
@@ -21899,7 +21901,7 @@ class Ix {
|
|
|
21899
21901
|
const { from: t, to: i } = e.state.selection, r = e.state.doc.resolve(t), s = r.node(), o = [];
|
|
21900
21902
|
let a;
|
|
21901
21903
|
if (s) {
|
|
21902
|
-
|
|
21904
|
+
a = Ph(e, t, i);
|
|
21903
21905
|
let c = r.depth;
|
|
21904
21906
|
for (; c > 0; ) {
|
|
21905
21907
|
const u = r.node(c);
|
|
@@ -38852,7 +38854,7 @@ class Ux extends HTMLElement {
|
|
|
38852
38854
|
url: o,
|
|
38853
38855
|
document: this.doc,
|
|
38854
38856
|
onSynced: () => {
|
|
38855
|
-
!this.doc.getMap("config").get("initialContentLoaded") && this.editor && (this.doc.getMap("config").set("initialContentLoaded", !0), this.editor.chain().
|
|
38857
|
+
!this.doc.getMap("config").get("initialContentLoaded") && this.editor && (this.doc.getMap("config").set("initialContentLoaded", !0), this.editor.chain().setContent(t).setTextSelection(0).focus().run());
|
|
38856
38858
|
}
|
|
38857
38859
|
// onAwarenessChange: ({ states }) => {
|
|
38858
38860
|
// console.log('onAwarenessChange: %o', states);
|
|
@@ -38873,7 +38875,7 @@ class Ux extends HTMLElement {
|
|
|
38873
38875
|
includeChildren: !0
|
|
38874
38876
|
})
|
|
38875
38877
|
],
|
|
38876
|
-
autofocus:
|
|
38878
|
+
autofocus: !1,
|
|
38877
38879
|
onCreate: () => {
|
|
38878
38880
|
this.dispatchContentChange(), this.dispatchEvent(new CustomEvent("ready"));
|
|
38879
38881
|
},
|
|
@@ -38888,7 +38890,7 @@ class Ux extends HTMLElement {
|
|
|
38888
38890
|
name: this.collabUser,
|
|
38889
38891
|
color: _x()
|
|
38890
38892
|
}
|
|
38891
|
-
}))) :
|
|
38893
|
+
}))) : s.extensions.push(qb), this.editor = new Nb(s), this.attributePanel = new Nx(this, this._schema), this.navigationPanel = new Ix(this, this.attributePanel), this.toolbar = new zx(this, this._schema), this.collabEnabled || (this.content = t);
|
|
38892
38894
|
}
|
|
38893
38895
|
dispatchContentChange() {
|
|
38894
38896
|
this.dispatchEvent(new CustomEvent("content-change", {
|