@harbour-enterprises/superdoc 0.8.27 → 0.8.29

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.
@@ -22052,7 +22052,7 @@ Actual: ` + h3.attribValue
22052
22052
  return;
22053
22053
  }
22054
22054
  }
22055
- static updateDocumentVersion(e = this.convertedXml, t = "0.8.27") {
22055
+ static updateDocumentVersion(e = this.convertedXml, t = "0.8.29") {
22056
22056
  const n = "docProps/custom.xml";
22057
22057
  e[n] || (e[n] = yu$2());
22058
22058
  const i3 = e["docProps/custom.xml"];
@@ -22252,7 +22252,7 @@ Actual: ` + h3.attribValue
22252
22252
  function yu$2() {
22253
22253
  return Tf$2;
22254
22254
  }
22255
- function wu$2(r22 = 2, e = "0.8.27") {
22255
+ function wu$2(r22 = 2, e = "0.8.29") {
22256
22256
  return {
22257
22257
  type: "element",
22258
22258
  name: "property",
@@ -33264,7 +33264,7 @@ Actual: ` + h3.attribValue
33264
33264
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
33265
33265
  */
33266
33266
  processCollaborationMigrations() {
33267
- if (console.debug("[checkVersionMigrations] Current editor version", "0.8.27"), !this.options.ydoc) return;
33267
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.8.29"), !this.options.ydoc) return;
33268
33268
  let r = this.options.ydoc.getMap("meta").get("version");
33269
33269
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
33270
33270
  const o = Fa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -50210,10 +50210,13 @@ ${t}
50210
50210
  }
50211
50211
  }
50212
50212
  L = /* @__PURE__ */ new WeakSet(), Ze = function() {
50213
- this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length && (this.config.toolbarGroups = Object.keys(this.config.groups));
50213
+ this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length ? this.config.toolbarGroups = Object.keys(this.config.groups) : this.config.toolbarGroups = ["left", "center", "right"];
50214
50214
  }, fe = /* @__PURE__ */ new WeakMap(), Be = function(o, n, e = false) {
50215
50215
  const i3 = document.documentElement.clientWidth, { defaultItems: c3, overflowItems: l } = Wn(o, e, i3, this.role, n);
50216
- let a = c3.map((u) => u.name.value);
50216
+ let a = [
50217
+ ...c3.map((u) => u.name.value),
50218
+ ...l.map((u) => u.name.value)
50219
+ ];
50217
50220
  this.config.groups && (a = Object.values(this.config.groups).flatMap((u) => u));
50218
50221
  const d = c3.filter((u) => a.includes(u.name.value)).filter((u) => !this.config.excludeItems.includes(u.name.value));
50219
50222
  this.toolbarItems = d, this.overflowItems = l.filter((u) => a.includes(u.name.value));
@@ -64078,7 +64081,6 @@ ${style2}
64078
64081
  pdfjsDocument.destroy();
64079
64082
  pdfPageViews = [];
64080
64083
  pdfjsDocument = null;
64081
- URL.revokeObjectURL(workerUrl);
64082
64084
  };
64083
64085
  onMounted(async () => {
64084
64086
  await Promise.resolve().then(() => pdf_viewer);
@@ -64109,7 +64111,7 @@ ${style2}
64109
64111
  };
64110
64112
  }
64111
64113
  };
64112
- const PdfViewer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-a923bc7a"]]);
64114
+ const PdfViewer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-33ecc09d"]]);
64113
64115
  const _hoisted_1$8 = {
64114
64116
  class: "comments-container",
64115
64117
  id: "commentsContainer"
@@ -65379,7 +65381,7 @@ ${style2}
65379
65381
  this.config.colors = shuffleArray(this.config.colors);
65380
65382
  this.userColorMap = /* @__PURE__ */ new Map();
65381
65383
  this.colorIndex = 0;
65382
- this.version = "0.8.27";
65384
+ this.version = "0.8.29";
65383
65385
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
65384
65386
  this.superdocId = config.superdocId || v4();
65385
65387
  this.colors = this.config.colors;
@@ -65392,11 +65394,11 @@ ${style2}
65392
65394
  this.isDev = this.config.isDev || false;
65393
65395
  this.activeEditor = null;
65394
65396
  this.comments = [];
65395
- this.#addToolbar(this);
65396
65397
  this.app.mount(this.config.selector);
65397
65398
  this.readyEditors = 0;
65398
65399
  this.isLocked = this.config.isLocked || false;
65399
65400
  this.lockedBy = this.config.lockedBy || null;
65401
+ this.#addToolbar(this);
65400
65402
  }
65401
65403
  get requiredNumberOfEditors() {
65402
65404
  return this.superdocStore.documents.filter((d) => d.type === DOCX).length;