@harbour-enterprises/superdoc 0.11.14 → 0.11.15

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.
@@ -1,5 +1,5 @@
1
- import { f as md, g as yd, c as bd, Q as jo, e as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-2TZZYQLx.es.js";
2
- import { O as Ib, b as Cb, U as fb } from "./chunks/super-editor.es-2TZZYQLx.es.js";
1
+ import { f as md, g as yd, c as bd, Q as jo, e as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-D9DgC8YX.es.js";
2
+ import { O as Ib, b as Cb, U as fb } from "./chunks/super-editor.es-D9DgC8YX.es.js";
3
3
  import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as ke, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-DXpzqXur.es.js";
4
4
  import { B as qn } from "./chunks/jszip-DO3il9iI.es.js";
5
5
  import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -32694,7 +32694,7 @@ class hb extends eg {
32694
32694
  this.config = {
32695
32695
  ...this.config,
32696
32696
  ...t
32697
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.14", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
32697
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.15", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
32698
32698
  }
32699
32699
  get requiredNumberOfEditors() {
32700
32700
  return this.superdocStore.documents.filter((t) => t.type === on).length;
@@ -20935,8 +20935,8 @@ Actual: ` + p3.attribValue
20935
20935
  }), nd$2 = (r22) => ({
20936
20936
  ...r22,
20937
20937
  commentParaId: nu$2()
20938
- }), id$2 = (r22, e, t) => {
20939
- const n = ou$2({ node: r22.commentJSON }), i3 = {
20938
+ }), id$2 = (r22, e, t, n) => {
20939
+ const i3 = ou$2({ editor: n, node: r22.commentJSON }), s = {
20940
20940
  "w:id": String(e),
20941
20941
  "w:author": r22.creatorName || r22.importedAuthor?.name,
20942
20942
  "w:email": r22.creatorEmail || r22.importedAuthor?.email,
@@ -20951,14 +20951,14 @@ Actual: ` + p3.attribValue
20951
20951
  "custom:trackedDeletedText": r22.deletedText || null
20952
20952
  };
20953
20953
  if (r22?.parentCommentId) {
20954
- const s = t.find((o) => o.commentId === r22.parentCommentId);
20955
- i3["w15:paraIdParent"] = s.commentParaId;
20954
+ const o = t.find((a) => a.commentId === r22.parentCommentId);
20955
+ s["w15:paraIdParent"] = o.commentParaId;
20956
20956
  }
20957
20957
  return {
20958
20958
  type: "element",
20959
20959
  name: "w:comment",
20960
- attributes: i3,
20961
- elements: [n]
20960
+ attributes: s,
20961
+ elements: [i3]
20962
20962
  };
20963
20963
  }, sd$2 = (r22) => r22 ? r22.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, su$2 = (r22) => new Date(r22 || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), od$2 = (r22 = [], e) => {
20964
20964
  const t = He$2(e);
@@ -24022,7 +24022,7 @@ Actual: ` + p3.attribValue
24022
24022
  return;
24023
24023
  }
24024
24024
  }
24025
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.14") {
24025
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.15") {
24026
24026
  const n = "docProps/custom.xml";
24027
24027
  e[n] || (e[n] = Fu$2());
24028
24028
  const i3 = e["docProps/custom.xml"];
@@ -24131,7 +24131,7 @@ Actual: ` + p3.attribValue
24131
24131
  return new No$2(this).schemaToXml(e, t);
24132
24132
  }
24133
24133
  async exportToDocx(e, t, n, i3 = false, s, o = [], a) {
24134
- const u = o.map((F3) => nd$2(F3)), f = u.map((F3, w) => id$2(F3, w, u)), { result: l, params: h3 } = this.exportToXmlJson({
24134
+ const u = o.map((F3) => nd$2(F3)), f = u.map((F3, w) => id$2(F3, w, u, a)), { result: l, params: h3 } = this.exportToXmlJson({
24135
24135
  data: e,
24136
24136
  editorSchema: t,
24137
24137
  comments: o,
@@ -24285,7 +24285,7 @@ Actual: ` + p3.attribValue
24285
24285
  function Fu$2() {
24286
24286
  return Gf$1;
24287
24287
  }
24288
- function Bu$2(r22 = 2, e = "0.11.14") {
24288
+ function Bu$2(r22 = 2, e = "0.11.15") {
24289
24289
  return {
24290
24290
  type: "element",
24291
24291
  name: "property",
@@ -36795,7 +36795,7 @@ Actual: ` + p3.attribValue
36795
36795
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36796
36796
  */
36797
36797
  processCollaborationMigrations() {
36798
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.14"), !this.options.ydoc) return;
36798
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.15"), !this.options.ydoc) return;
36799
36799
  let r = this.options.ydoc.getMap("meta").get("version");
36800
36800
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36801
36801
  const o = dl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -70570,7 +70570,7 @@ ${style2}
70570
70570
  this.config.colors = shuffleArray(this.config.colors);
70571
70571
  this.userColorMap = /* @__PURE__ */ new Map();
70572
70572
  this.colorIndex = 0;
70573
- this.version = "0.11.14";
70573
+ this.version = "0.11.15";
70574
70574
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
70575
70575
  this.superdocId = config.superdocId || v4();
70576
70576
  this.colors = this.config.colors;