vdc-editor 0.1.125 → 0.1.126

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.
@@ -43351,11 +43351,14 @@ const Jx = (t) => t.command(({ tr: e }) => {
43351
43351
  appendTransaction(n, o, r) {
43352
43352
  const { tr: i } = r;
43353
43353
  let s = !1;
43354
- if (Yx.getState(r) || n.some((l) => l.docChanged)) {
43355
- const l = [];
43356
- r.doc.descendants((u, d, p, h) => {
43357
- const { attrs: m } = u, b = l.includes(m.id) ? ab() : m.id || ab();
43358
- t.includes(u.type.name) && (i.setNodeMarkup(d, void 0, { ...m, id: b, "number-line": h + 1 }), s = !0), m.id && l.push(m.id);
43354
+ const a = Yx.getState(r);
43355
+ if (n.some((u) => u.getMeta("composition")))
43356
+ return null;
43357
+ if (a || n.some((u) => u.docChanged)) {
43358
+ const u = [];
43359
+ r.doc.descendants((d, p, h, m) => {
43360
+ const { attrs: b } = d, y = u.includes(b.id) ? ab() : b.id || ab();
43361
+ t.includes(d.type.name) && (i.setNodeMarkup(p, void 0, { ...b, id: y, "number-line": m + 1 }), s = !0), u.push(y);
43359
43362
  });
43360
43363
  }
43361
43364
  return s ? i : null;