@jinntec/jinntap 1.13.3 → 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.
@@ -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("selectionUpdate", ({ editor: e }) => {
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("selectionUpdate", ({ editor: e }) => {
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
- s.isText && (a = Ph(e, t, i));
21904
+ a = Ph(e, t, i);
21903
21905
  let c = r.depth;
21904
21906
  for (; c > 0; ) {
21905
21907
  const u = r.node(c);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jinntec/jinntap",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",