@harbour-enterprises/superdoc 0.9.15 → 0.9.16

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.
@@ -16022,7 +16022,7 @@ function Wg(t, e, n, r, o) {
16022
16022
  }
16023
16023
  function RT(t) {
16024
16024
  let e = t["word/numbering.xml"];
16025
- e || (e = Pv);
16025
+ (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = Pv);
16026
16026
  const n = e.elements[0].elements, r = n.filter((a) => a.name === "w:abstractNum"), o = n.filter((a) => a.name === "w:num"), i = {};
16027
16027
  r.forEach((a) => {
16028
16028
  const l = Number(a.attributes["w:abstractNumId"]);
@@ -16063,7 +16063,7 @@ const cs = class a1 {
16063
16063
  return;
16064
16064
  }
16065
16065
  }
16066
- static updateDocumentVersion(e = this.convertedXml, n = "0.9.15") {
16066
+ static updateDocumentVersion(e = this.convertedXml, n = "0.9.16") {
16067
16067
  const r = "docProps/custom.xml";
16068
16068
  e[r] || (e[r] = l1());
16069
16069
  const o = e["docProps/custom.xml"];
@@ -16288,7 +16288,7 @@ function LT(t) {
16288
16288
  function l1() {
16289
16289
  return EE;
16290
16290
  }
16291
- function c1(t = 2, e = "0.9.15") {
16291
+ function c1(t = 2, e = "0.9.16") {
16292
16292
  return {
16293
16293
  type: "element",
16294
16294
  name: "property",
@@ -28727,7 +28727,7 @@ const x_ = class ox extends b5 {
28727
28727
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
28728
28728
  */
28729
28729
  processCollaborationMigrations() {
28730
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.15"), !this.options.ydoc) return;
28730
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.16"), !this.options.ydoc) return;
28731
28731
  let e = this.options.ydoc.getMap("meta").get("version");
28732
28732
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
28733
28733
  const n = Wy(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));