@harbour-enterprises/superdoc 0.10.21 → 0.10.22

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.
@@ -16255,7 +16255,7 @@ const fs = class v1 {
16255
16255
  return;
16256
16256
  }
16257
16257
  }
16258
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.21") {
16258
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.22") {
16259
16259
  const r = "docProps/custom.xml";
16260
16260
  e[r] || (e[r] = x1());
16261
16261
  const o = e["docProps/custom.xml"];
@@ -16482,7 +16482,7 @@ function p6(t) {
16482
16482
  function x1() {
16483
16483
  return GE;
16484
16484
  }
16485
- function k1(t = 2, e = "0.10.21") {
16485
+ function k1(t = 2, e = "0.10.22") {
16486
16486
  return {
16487
16487
  type: "element",
16488
16488
  name: "property",
@@ -28001,7 +28001,7 @@ const Hp = (t) => {
28001
28001
  e.footers[i].height = a, e.footers[i].sectionEditor = l, e.footers[i].sectionContainer = c;
28002
28002
  }
28003
28003
  return e;
28004
- }, Zy = async (t, e) => new Promise((n) => {
28004
+ }, Zy = async (t, e) => e ? new Promise((n) => {
28005
28005
  const r = document.createElement("div");
28006
28006
  r.className = "super-editor", r.style.padding = 0, r.style.margin = 0;
28007
28007
  const o = t.converter.getDocumentDefaultStyles(), { fontSizePt: i, typeface: s } = o, a = i * 1.3333, l = a * 1.15;
@@ -28047,7 +28047,7 @@ const Hp = (t) => {
28047
28047
  }), n({ height: u, sectionEditor: c, sectionContainer: r });
28048
28048
  });
28049
28049
  });
28050
- }), Gp = [Wt, wt, $t], Nt = new ct("comments"), zD = ft.create({
28050
+ }) : {}, Gp = [Wt, wt, $t], Nt = new ct("comments"), zD = ft.create({
28051
28051
  name: "comments",
28052
28052
  addCommands() {
28053
28053
  return {
@@ -28938,7 +28938,7 @@ const XD = class wx extends J5 {
28938
28938
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
28939
28939
  */
28940
28940
  processCollaborationMigrations() {
28941
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.21"), !this.options.ydoc) return;
28941
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.22"), !this.options.ydoc) return;
28942
28942
  let e = this.options.ydoc.getMap("meta").get("version");
28943
28943
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
28944
28944
  const n = ew(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));