@harbour-enterprises/superdoc 0.9.2 → 0.9.3

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 (29) hide show
  1. package/dist/chunks/{index-BrpJYKyb.cjs → index-BXKGjuVW.cjs} +1 -1
  2. package/dist/chunks/{index-YBopi5s7.cjs → index-CqRwYOdx.cjs} +1 -1
  3. package/dist/chunks/{index-C1X0b8Ar.es.js → index-DjLrg1eZ.es.js} +2 -2
  4. package/dist/chunks/{index-BTNHOrPH.es.js → index-dZKHAFXF.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-hIZccerY.es.js → super-editor.es-BaKiJQoE.es.js} +22 -8
  6. package/dist/chunks/{super-editor.es-DsfdglB7.cjs → super-editor.es-kOcaXkai.cjs} +3 -3
  7. package/dist/chunks/{url-ByJ526eV.cjs → url-6Xu7gR4T.cjs} +1 -1
  8. package/dist/chunks/{url-Cbp-K7Zp.es.js → url-BxDGAI6E.es.js} +1 -1
  9. package/dist/chunks/{xml-js-DpY71BGC.es.js → xml-js-BAML2_fM.es.js} +754 -743
  10. package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
  11. package/dist/super-editor/chunks/{converter-BiUmL68h.js → converter-DzRQ2EtV.js} +2 -2
  12. package/dist/super-editor/chunks/{docx-zipper-D1QaSH0t.js → docx-zipper-CrpjP4_u.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-ezBnbth9.js → editor-DE4dAOnf.js} +22 -8
  14. package/dist/super-editor/chunks/{toolbar-5tbjM4Sb.js → toolbar-D_qLpwlX.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +23 -9
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/xml-js-C96rcmGb.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { R as md, m as yd, d as bd, V as jo, a as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-hIZccerY.es.js";
2
- import { F as cb, I as lb, b as gb } from "./chunks/super-editor.es-hIZccerY.es.js";
1
+ import { R as md, m as yd, d as bd, V as jo, a as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-BaKiJQoE.es.js";
2
+ import { F as cb, I as lb, b as gb } from "./chunks/super-editor.es-BaKiJQoE.es.js";
3
3
  import { Y as Vl, r as V, Z as Ai, p as Ne, _ as _n, a as Ae, $ as qn, a0 as la, C as ht, i as lt, q as Ji, l as bt, x as Oe, a1 as Fd, L as ti, R as _t, a2 as kd, a3 as xd, a4 as Xo, g as Ti, N as Gs, M as Kr, j as li, k as Qi, h as ga, U as Rd, s as Nd, z as _r, F as qt, Q as GA, m as dt, D as fi, G as fs, B as re, V as Md, S as Ld, W as Gd, K as Oi, O as ds, E as sr, P as Td, J as Ud, T as Hd, b as ye, o as pe, t as Bi, v as Si, y as zl, f as Xe, A as ci, e as tt, u as Ci, w as wi, n as js, a5 as Zl, d as An, c as $l, X as Pd, a6 as Od } from "./chunks/vue-BDbTsTMu.es.js";
4
4
  import { B as Pn } from "./chunks/jszip-DSGi1sNe.es.js";
5
5
  import { B as Jd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -16786,13 +16786,13 @@ var Ge = globalThis.pdfjsLib = {};
16786
16786
  "./chunks/empty-GlqisfcO.es.js"
16787
16787
  ), s = await import(
16788
16788
  /*webpackIgnore: true*/
16789
- "./chunks/index-C1X0b8Ar.es.js"
16789
+ "./chunks/index-DjLrg1eZ.es.js"
16790
16790
  ).then((d) => d.i), a = await import(
16791
16791
  /*webpackIgnore: true*/
16792
- "./chunks/index-BTNHOrPH.es.js"
16792
+ "./chunks/index-dZKHAFXF.es.js"
16793
16793
  ).then((d) => d.i), o = await import(
16794
16794
  /*webpackIgnore: true*/
16795
- "./chunks/url-Cbp-K7Zp.es.js"
16795
+ "./chunks/url-BxDGAI6E.es.js"
16796
16796
  ).then((d) => d.u);
16797
16797
  let l, h;
16798
16798
  try {
@@ -32527,7 +32527,7 @@ class ab extends eg {
32527
32527
  this.config = {
32528
32528
  ...this.config,
32529
32529
  ...t
32530
- }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.9.2", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), 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.#n(this);
32530
+ }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.9.3", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), 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.#n(this);
32531
32531
  }
32532
32532
  get requiredNumberOfEditors() {
32533
32533
  return this.superdocStore.documents.filter((t) => t.type === On).length;
@@ -22052,7 +22052,7 @@ Actual: ` + h3.attribValue
22052
22052
  return;
22053
22053
  }
22054
22054
  }
22055
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.2") {
22055
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.3") {
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.9.2") {
22255
+ function wu$2(r22 = 2, e = "0.9.3") {
22256
22256
  return {
22257
22257
  type: "element",
22258
22258
  name: "property",
@@ -33551,7 +33551,7 @@ Actual: ` + h3.attribValue
33551
33551
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
33552
33552
  */
33553
33553
  processCollaborationMigrations() {
33554
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.2"), !this.options.ydoc) return;
33554
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.3"), !this.options.ydoc) return;
33555
33555
  let r = this.options.ydoc.getMap("meta").get("version");
33556
33556
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
33557
33557
  const o = Ga$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -35287,10 +35287,15 @@ Actual: ` + h3.attribValue
35287
35287
  return n ? { style: n } : {};
35288
35288
  }
35289
35289
  },
35290
- id: {
35291
- default: null,
35292
- parseHTML: (t) => t.getAttribute("id"),
35293
- renderDOM: (t) => t.id ? { id: t.id } : {}
35290
+ extraAttrs: {
35291
+ default: {},
35292
+ parseHTML: (t) => {
35293
+ const e = ["spacing", "indent", "class"], n = {};
35294
+ return console.debug("--ELEMENT--", t), Array.from(t.attributes).forEach((r) => {
35295
+ e.includes(r.name) || (n[r.name] = r.value);
35296
+ }), n;
35297
+ },
35298
+ renderDOM: (t) => t.extraAttrs || {}
35294
35299
  },
35295
35300
  indent: {
35296
35301
  renderDOM: ({ indent: t }) => {
@@ -35309,7 +35314,16 @@ Actual: ` + h3.attribValue
35309
35314
  };
35310
35315
  },
35311
35316
  parseDOM() {
35312
- return [{ tag: "p" }];
35317
+ return [{
35318
+ tag: "p",
35319
+ getAttrs: (t) => {
35320
+ const e = ["spacing", "indent", "class"];
35321
+ let n = {};
35322
+ return Array.from(t.attributes).forEach((r) => {
35323
+ e.includes(r.name) || (n[r.name] = r.value);
35324
+ }), { extraAttrs: n };
35325
+ }
35326
+ }];
35313
35327
  },
35314
35328
  renderDOM({ htmlAttributes: t }) {
35315
35329
  return ["p", N.mergeAttributes(this.options.htmlAttributes, t), 0];
@@ -65670,7 +65684,7 @@ ${style2}
65670
65684
  this.config.colors = shuffleArray(this.config.colors);
65671
65685
  this.userColorMap = /* @__PURE__ */ new Map();
65672
65686
  this.colorIndex = 0;
65673
- this.version = "0.9.2";
65687
+ this.version = "0.9.3";
65674
65688
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
65675
65689
  this.superdocId = config.superdocId || v4();
65676
65690
  this.colors = this.config.colors;