@harbour-enterprises/superdoc 0.10.19 → 0.10.21

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.
@@ -15459,7 +15459,7 @@ const TT = [
15459
15459
  };
15460
15460
  function MT(t, e, n) {
15461
15461
  if (!t) return;
15462
- const { attributes: r } = t, { paragraphProperties: o = {} } = r, { elements: i = [] } = o, s = t.elements.find((w) => w.name === "w:pPr")?.elements?.find((w) => w.name === "w:pStyle")?.attributes["w:val"], a = ac({ node: t, styleId: s, docx: n });
15462
+ const { attributes: r = {} } = t, { paragraphProperties: o = {} } = r, { elements: i = [] } = o, s = t.elements.find((w) => w.name === "w:pPr")?.elements?.find((w) => w.name === "w:pStyle")?.attributes["w:val"], a = ac({ node: t, styleId: s, docx: n });
15463
15463
  if (!a) return {};
15464
15464
  const l = a?.elements.find((w) => w.name === "w:numId")?.attributes["w:val"], c = a?.elements.find((w) => w.name === "w:ilvl")?.attributes["w:val"] || u1(s, n), u = i.find((w) => w.name === "w:pStyle")?.attributes["w:val"], {
15465
15465
  start: d,
@@ -16255,7 +16255,7 @@ const fs = class v1 {
16255
16255
  return;
16256
16256
  }
16257
16257
  }
16258
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.19") {
16258
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.21") {
16259
16259
  const r = "docProps/custom.xml";
16260
16260
  e[r] || (e[r] = x1());
16261
16261
  const o = e["docProps/custom.xml"];
@@ -16274,7 +16274,9 @@ const fs = class v1 {
16274
16274
  getDocumentDefaultStyles() {
16275
16275
  const e = this.convertedXml["word/styles.xml"];
16276
16276
  if (!e) return {};
16277
- const n = e.elements[0].elements.find((i) => i.name === "w:docDefaults").elements.find((i) => i.name === "w:rPrDefault"), r = n.elements[0].elements, o = r?.find((i) => i.name === "w:rFonts");
16277
+ const n = e.elements[0].elements.find((i) => i.name === "w:docDefaults").elements.find((i) => i.name === "w:rPrDefault");
16278
+ if (!n.elements) return {};
16279
+ const r = n.elements[0].elements, o = r?.find((i) => i.name === "w:rFonts");
16278
16280
  if ("elements" in n) {
16279
16281
  const i = r.find((u) => u.name === "w:rFonts")?.attributes["w:asciiTheme"];
16280
16282
  let s, a;
@@ -16480,7 +16482,7 @@ function p6(t) {
16480
16482
  function x1() {
16481
16483
  return GE;
16482
16484
  }
16483
- function k1(t = 2, e = "0.10.19") {
16485
+ function k1(t = 2, e = "0.10.21") {
16484
16486
  return {
16485
16487
  type: "element",
16486
16488
  name: "property",
@@ -28936,7 +28938,7 @@ const XD = class wx extends J5 {
28936
28938
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
28937
28939
  */
28938
28940
  processCollaborationMigrations() {
28939
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.19"), !this.options.ydoc) return;
28941
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.21"), !this.options.ydoc) return;
28940
28942
  let e = this.options.ydoc.getMap("meta").get("version");
28941
28943
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
28942
28944
  const n = ew(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));