@harbour-enterprises/superdoc 0.10.32 → 0.10.34

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.
@@ -15369,10 +15369,10 @@ function wv({
15369
15369
  pStyleId: null,
15370
15370
  docx: l
15371
15371
  }), ee = ce !== i && !Q, oe = r < Y || r === Y && ee && g === r;
15372
- u[i] || (u[i] = {}), u[i][r] || (u[i][r] = 0);
15372
+ u[i] || (u[i] = {}), u[i][r] || (u[i][r] = Number(W));
15373
15373
  const G = {};
15374
15374
  if (F && !oe) {
15375
- u[i][o]++, f = _, w.seen = !0;
15375
+ f = _, w.seen = !0;
15376
15376
  const E = [];
15377
15377
  let A = {
15378
15378
  type: "paragraph",
@@ -15387,7 +15387,7 @@ function wv({
15387
15387
  content: gv(A.content)
15388
15388
  }), E.push(A), g = r;
15389
15389
  let q = [];
15390
- if (p !== "bullet" && (q = [...s, u[i][r]]), !s.length && o > 0) {
15390
+ if (p !== "bullet" && (q = [...s, u[i][r]], u[i][o]++), !s.length && o > 0) {
15391
15391
  const k = u[i];
15392
15392
  if (k) {
15393
15393
  const ne = [];
@@ -16462,7 +16462,7 @@ const ps = class Ov {
16462
16462
  return;
16463
16463
  }
16464
16464
  }
16465
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.32") {
16465
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.34") {
16466
16466
  const r = "docProps/custom.xml";
16467
16467
  e[r] || (e[r] = Mv());
16468
16468
  const o = e["docProps/custom.xml"];
@@ -16723,7 +16723,7 @@ function D$(t) {
16723
16723
  function Mv() {
16724
16724
  return i4;
16725
16725
  }
16726
- function Dv(t = 2, e = "0.10.32") {
16726
+ function Dv(t = 2, e = "0.10.34") {
16727
16727
  return {
16728
16728
  type: "element",
16729
16729
  name: "property",
@@ -19094,7 +19094,7 @@ let ay = class {
19094
19094
  const p = new File([u], c.name, { type: u.type }), h = URL.createObjectURL(p);
19095
19095
  this.media[c.name] = h;
19096
19096
  }
19097
- else if (c.name.startsWith("word/fonts") && c.name !== "word/fonts/") {
19097
+ else if (!n && c.name.startsWith("word/fonts") && c.name !== "word/fonts/") {
19098
19098
  const u = await c.async("arraybuffer");
19099
19099
  this.fonts[c.name] = u;
19100
19100
  }
@@ -29185,7 +29185,7 @@ const h8 = class $x extends pM {
29185
29185
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29186
29186
  */
29187
29187
  processCollaborationMigrations() {
29188
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.32"), !this.options.ydoc) return;
29188
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.34"), !this.options.ydoc) return;
29189
29189
  let e = this.options.ydoc.getMap("meta").get("version");
29190
29190
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29191
29191
  const n = iw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));