@harbour-enterprises/superdoc 0.11.18 → 0.11.19

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-Y7BlAr93.es.js → index-Gs0-9Zg-.es.js} +2 -2
  2. package/dist/chunks/{index-BXKGjuVW.cjs → index-MTg0RB9I.cjs} +1 -1
  3. package/dist/chunks/{index-CqRwYOdx.cjs → index-f-drtAbP.cjs} +1 -1
  4. package/dist/chunks/{index-CPZ-IxHT.es.js → index-k2jVlnWa.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-D8ziHk1x.cjs → super-editor.es-BpCrZwJM.cjs} +3 -3
  6. package/dist/chunks/{super-editor.es-DE2LvQ4V.es.js → super-editor.es-C5WxgouW.es.js} +19 -25
  7. package/dist/chunks/{url-6Xu7gR4T.cjs → url-BY6ThfSE.cjs} +1 -1
  8. package/dist/chunks/{url-t15h9onH.es.js → url-C5LEOXW-.es.js} +1 -1
  9. package/dist/chunks/xml-js-C-3oH1mO.cjs +10 -0
  10. package/dist/chunks/{xml-js-kwrvzyhm.es.js → xml-js-DjJijnzm.es.js} +366 -355
  11. package/dist/super-editor/ai-writer.es.js +1 -1
  12. package/dist/super-editor/chunks/{converter-B25jWkqJ.js → converter-DsBQa9mA.js} +2 -2
  13. package/dist/super-editor/chunks/{docx-zipper-DNmQADIe.js → docx-zipper-BhZqF_Iv.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-DKyTaWEI.js → editor-C1MQt5t_.js} +19 -25
  15. package/dist/super-editor/chunks/{toolbar-C6UiTU1Z.js → toolbar-CKwDSMyY.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/extensions/keymap.d.ts +3 -3
  18. package/dist/super-editor/core/extensions/keymap.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 +20 -26
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { b as md, g as yd, c as bd, Q as jo, S as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-DE2LvQ4V.es.js";
2
- import { O as Ib, L as Cb, U as fb } from "./chunks/super-editor.es-DE2LvQ4V.es.js";
1
+ import { b as md, g as yd, c as bd, Q as jo, S as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-C5WxgouW.es.js";
2
+ import { O as Ib, L as Cb, U as fb } from "./chunks/super-editor.es-C5WxgouW.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";
@@ -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-Y7BlAr93.es.js"
16791
+ "./chunks/index-Gs0-9Zg-.es.js"
16792
16792
  ).then((d) => d.i), a = await import(
16793
16793
  /*webpackIgnore: true*/
16794
- "./chunks/index-CPZ-IxHT.es.js"
16794
+ "./chunks/index-k2jVlnWa.es.js"
16795
16795
  ).then((d) => d.i), o = await import(
16796
16796
  /*webpackIgnore: true*/
16797
- "./chunks/url-t15h9onH.es.js"
16797
+ "./chunks/url-C5LEOXW-.es.js"
16798
16798
  ).then((d) => d.u);
16799
16799
  let l, h;
16800
16800
  try {
@@ -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.18", 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.19", 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;
@@ -24066,7 +24066,7 @@ Actual: ` + p3.attribValue
24066
24066
  return;
24067
24067
  }
24068
24068
  }
24069
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.18") {
24069
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.19") {
24070
24070
  const n = "docProps/custom.xml";
24071
24071
  e[n] || (e[n] = Bu$2());
24072
24072
  const i3 = e["docProps/custom.xml"];
@@ -24329,7 +24329,7 @@ Actual: ` + p3.attribValue
24329
24329
  function Bu$2() {
24330
24330
  return Wf$1;
24331
24331
  }
24332
- function ku$2(r22 = 2, e = "0.11.18") {
24332
+ function ku$2(r22 = 2, e = "0.11.19") {
24333
24333
  return {
24334
24334
  type: "element",
24335
24335
  name: "property",
@@ -35282,28 +35282,22 @@ Actual: ` + p3.attribValue
35282
35282
  addCommands() {
35283
35283
  return { ...tb };
35284
35284
  }
35285
- }), rb = (t) => {
35286
- t.commands.first(({ commands: e }) => [
35287
- () => e.newlineInCode(),
35288
- () => e.createParagraphNear(),
35289
- () => e.liftEmptyBlock(),
35290
- () => e.splitBlock()
35291
- ]);
35292
- }, Yn$2 = (t) => {
35293
- t.commands.first(({ commands: e, tr: n }) => [
35294
- () => e.undoInputRule(),
35295
- () => (n.setMeta("inputType", "deleteContentBackward"), false),
35296
- () => e.deleteSelection(),
35297
- () => e.joinBackward(),
35298
- () => e.selectNodeBackward()
35299
- ]);
35300
- }, wn$2 = (t) => {
35301
- t.commands.first(({ commands: e }) => [
35302
- () => e.deleteSelection(),
35303
- () => e.joinForward(),
35304
- () => e.selectNodeForward()
35305
- ]);
35306
- }, ob = Z$1.create({
35285
+ }), rb = (t) => t.commands.first(({ commands: e }) => [
35286
+ () => e.newlineInCode(),
35287
+ () => e.createParagraphNear(),
35288
+ () => e.liftEmptyBlock(),
35289
+ () => e.splitBlock()
35290
+ ]), Yn$2 = (t) => t.commands.first(({ commands: e, tr: n }) => [
35291
+ () => e.undoInputRule(),
35292
+ () => (n.setMeta("inputType", "deleteContentBackward"), false),
35293
+ () => e.deleteSelection(),
35294
+ () => e.joinBackward(),
35295
+ () => e.selectNodeBackward()
35296
+ ]), wn$2 = (t) => t.commands.first(({ commands: e }) => [
35297
+ () => e.deleteSelection(),
35298
+ () => e.joinForward(),
35299
+ () => e.selectNodeForward()
35300
+ ]), ob = Z$1.create({
35307
35301
  name: "keymap",
35308
35302
  addShortcuts() {
35309
35303
  const t = {
@@ -36839,7 +36833,7 @@ Actual: ` + p3.attribValue
36839
36833
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36840
36834
  */
36841
36835
  processCollaborationMigrations() {
36842
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.18"), !this.options.ydoc) return;
36836
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.19"), !this.options.ydoc) return;
36843
36837
  let r = this.options.ydoc.getMap("meta").get("version");
36844
36838
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36845
36839
  const o = dl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -70651,7 +70645,7 @@ ${style2}
70651
70645
  this.config.colors = shuffleArray(this.config.colors);
70652
70646
  this.userColorMap = /* @__PURE__ */ new Map();
70653
70647
  this.colorIndex = 0;
70654
- this.version = "0.11.18";
70648
+ this.version = "0.11.19";
70655
70649
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
70656
70650
  this.superdocId = config.superdocId || v4();
70657
70651
  this.colors = this.config.colors;