@harbour-enterprises/superdoc 0.10.38 → 0.10.40

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.
@@ -14799,6 +14799,8 @@ po = /* @__PURE__ */ new WeakSet(), dv = function(t, e = falase) {
14799
14799
  const s = n && (!r || !r.length);
14800
14800
  s ? i += " />" : i += ">";
14801
14801
  let a = [i];
14802
+ if (!n && t.type === "text")
14803
+ return t.text;
14802
14804
  if (n === "w:instrText")
14803
14805
  a.push(r[0].text);
14804
14806
  else if (n === "w:t" || n === "w:delText") {
@@ -14808,6 +14810,10 @@ po = /* @__PURE__ */ new WeakSet(), dv = function(t, e = falase) {
14808
14810
  for (let l of r) {
14809
14811
  const c = wr(this, po, Bu).call(this, l);
14810
14812
  if (!c) continue;
14813
+ if (typeof c == "string") {
14814
+ a.push(c);
14815
+ continue;
14816
+ }
14811
14817
  const u = c.filter((d) => d !== "<undefined>" && d !== "</undefined>");
14812
14818
  a.push(...u);
14813
14819
  }
@@ -16463,7 +16469,7 @@ const ps = class Ov {
16463
16469
  return;
16464
16470
  }
16465
16471
  }
16466
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.38") {
16472
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.40") {
16467
16473
  const r = "docProps/custom.xml";
16468
16474
  e[r] || (e[r] = Mv());
16469
16475
  const o = e["docProps/custom.xml"];
@@ -16724,7 +16730,7 @@ function D$(t) {
16724
16730
  function Mv() {
16725
16731
  return i4;
16726
16732
  }
16727
- function Dv(t = 2, e = "0.10.38") {
16733
+ function Dv(t = 2, e = "0.10.40") {
16728
16734
  return {
16729
16735
  type: "element",
16730
16736
  name: "property",
@@ -29186,7 +29192,7 @@ const h8 = class $x extends pM {
29186
29192
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29187
29193
  */
29188
29194
  processCollaborationMigrations() {
29189
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.38"), !this.options.ydoc) return;
29195
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.40"), !this.options.ydoc) return;
29190
29196
  let e = this.options.ydoc.getMap("meta").get("version");
29191
29197
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29192
29198
  const n = iw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));