@harbour-enterprises/superdoc 0.11.30 → 0.11.31

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.
Files changed (31) hide show
  1. package/dist/chunks/{index-D8Qchtwe.cjs → index-BXKGjuVW.cjs} +1 -1
  2. package/dist/chunks/{index-D5LUU_DK.es.js → index-CPZ-IxHT.es.js} +1 -1
  3. package/dist/chunks/{index-BJQ3rSJD.cjs → index-CqRwYOdx.cjs} +1 -1
  4. package/dist/chunks/{index-BIKukPks.es.js → index-Y7BlAr93.es.js} +2 -2
  5. package/dist/chunks/{super-editor.es-B9zU4phN.es.js → super-editor.es-D8XdnWMu.es.js} +11 -9
  6. package/dist/chunks/{super-editor.es-DR8TyHgu.cjs → super-editor.es-DkAuD0cl.cjs} +3 -3
  7. package/dist/chunks/{url-lfePTVJU.cjs → url-6Xu7gR4T.cjs} +1 -1
  8. package/dist/chunks/{url-ChEJem8_.es.js → url-t15h9onH.es.js} +1 -1
  9. package/dist/chunks/{xml-js-Dq803VXB.es.js → xml-js-kwrvzyhm.es.js} +753 -739
  10. package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-69UAZ0Ft.js → converter-hZK1xKPW.js} +2 -2
  13. package/dist/super-editor/chunks/{docx-zipper-CvLDRHYT.js → docx-zipper-DMEmQVkt.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-Br7gJJbN.js → editor-GtdcYA5D.js} +11 -9
  15. package/dist/super-editor/chunks/{toolbar-BX3EQkLT.js → toolbar-Bk4txCKp.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/Editor.d.ts +25 -5
  18. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  19. package/dist/super-editor/docx-zipper.es.js +2 -2
  20. package/dist/super-editor/editor.es.js +3 -3
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/super-editor.es.js +6 -6
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +3 -3
  27. package/dist/superdoc.es.js +6 -6
  28. package/dist/superdoc.umd.js +12 -10
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +2 -2
  31. package/dist/chunks/xml-js-BXHFNveP.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { J as md, g as yd, c as bd, n as jo, L as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-B9zU4phN.es.js";
2
- import { O as Ib, K as Cb, X as fb } from "./chunks/super-editor.es-B9zU4phN.es.js";
1
+ import { J as md, g as yd, c as bd, n as jo, L as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-D8XdnWMu.es.js";
2
+ import { O as Ib, K as Cb, X as fb } from "./chunks/super-editor.es-D8XdnWMu.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 Fe, 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";
@@ -16788,13 +16788,13 @@ var Ue = globalThis.pdfjsLib = {};
16788
16788
  "./chunks/empty-GlqisfcO.es.js"
16789
16789
  ), s = await import(
16790
16790
  /*webpackIgnore: true*/
16791
- "./chunks/index-BIKukPks.es.js"
16791
+ "./chunks/index-Y7BlAr93.es.js"
16792
16792
  ).then((d) => d.i), a = await import(
16793
16793
  /*webpackIgnore: true*/
16794
- "./chunks/index-D5LUU_DK.es.js"
16794
+ "./chunks/index-CPZ-IxHT.es.js"
16795
16795
  ).then((d) => d.i), o = await import(
16796
16796
  /*webpackIgnore: true*/
16797
- "./chunks/url-ChEJem8_.es.js"
16797
+ "./chunks/url-t15h9onH.es.js"
16798
16798
  ).then((d) => d.u);
16799
16799
  let l, h;
16800
16800
  try {
@@ -32713,7 +32713,7 @@ class hb extends eg {
32713
32713
  this.config = {
32714
32714
  ...this.config,
32715
32715
  ...t
32716
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.30", 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);
32716
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.31", 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);
32717
32717
  }
32718
32718
  get requiredNumberOfEditors() {
32719
32719
  return this.superdocStore.documents.filter((t) => t.type === on).length;
@@ -24080,7 +24080,7 @@ Actual: ` + p3.attribValue
24080
24080
  return;
24081
24081
  }
24082
24082
  }
24083
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.30") {
24083
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.31") {
24084
24084
  const n = "docProps/custom.xml";
24085
24085
  e[n] || (e[n] = Fu$2());
24086
24086
  const i3 = e["docProps/custom.xml"];
@@ -24343,7 +24343,7 @@ Actual: ` + p3.attribValue
24343
24343
  function Fu$2() {
24344
24344
  return Gf$1;
24345
24345
  }
24346
- function Bu$2(r22 = 2, e = "0.11.30") {
24346
+ function Bu$2(r22 = 2, e = "0.11.31") {
24347
24347
  return {
24348
24348
  type: "element",
24349
24349
  name: "property",
@@ -36983,7 +36983,7 @@ Actual: ` + p3.attribValue
36983
36983
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36984
36984
  */
36985
36985
  processCollaborationMigrations() {
36986
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.30"), !this.options.ydoc) return;
36986
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.31"), !this.options.ydoc) return;
36987
36987
  let r = this.options.ydoc.getMap("meta").get("version");
36988
36988
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36989
36989
  const i3 = hl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -37023,18 +37023,20 @@ Actual: ` + p3.attribValue
37023
37023
  * pre-process the document as needed prior to running in the annotator.
37024
37024
  *
37025
37025
  * Currently this is only used for table generation but additional pre-processing can be done here.
37026
- * @param {Array[Object]} annotationValues
37026
+ *
37027
+ * @param {FieldValue[]} annotationValues
37027
37028
  * @returns {void}
37028
37029
  */
37029
- prepareForAnnotations(n = [], r = []) {
37030
- const { tr: i3 } = this.state, { dispatch: o } = this.view, s = ko$2.processTables({ editor: this, tr: i3, annotationValues: n, hiddenIds: r });
37031
- this.view.dispatch(s);
37030
+ prepareForAnnotations(n = []) {
37031
+ const { tr: r } = this.state, { dispatch: i3 } = this.view, o = ko$2.processTables({ editor: this, tr: r, annotationValues: n });
37032
+ this.view.dispatch(o);
37032
37033
  }
37033
37034
  /**
37034
37035
  * Annotate the document with the given annotation values.
37035
37036
  *
37036
- * @param {Array[Object]} annotationValues
37037
- * @param {Array[String]} hiddenIds
37037
+ * @param {FieldValue[]} annotationValues List of field values to apply.
37038
+ * @param {String[]} hiddenIds List of field ids to remove from the document.
37039
+ * @returns {void}
37038
37040
  */
37039
37041
  annotate(n = [], r = []) {
37040
37042
  const { state: i3, view: o, schema: s } = this;
@@ -70949,7 +70951,7 @@ ${style2}
70949
70951
  this.config.colors = shuffleArray(this.config.colors);
70950
70952
  this.userColorMap = /* @__PURE__ */ new Map();
70951
70953
  this.colorIndex = 0;
70952
- this.version = "0.11.30";
70954
+ this.version = "0.11.31";
70953
70955
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
70954
70956
  this.superdocId = config.superdocId || v4();
70955
70957
  this.colors = this.config.colors;