@harbour-enterprises/superdoc 0.12.0-RC2 → 0.12.0-RC5

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 (75) hide show
  1. package/dist/chunks/{eventemitter3-C9iBZY5R.es.js → eventemitter3-DFFdN5-N.es.js} +1 -1
  2. package/dist/chunks/{eventemitter3-Cj9ZwxFw.cjs → eventemitter3-a1gwRntm.cjs} +1 -1
  3. package/dist/chunks/{index-C6SLw2ph.cjs → index-BaUf6hWx.cjs} +1 -1
  4. package/dist/chunks/{index-CbUTRvRk.cjs → index-CmiflrMh.cjs} +1 -1
  5. package/dist/chunks/{index-BTkgQgI7.es.js → index-D0RRgvB7.es.js} +2 -2
  6. package/dist/chunks/{index-kWwSELc2.es.js → index-D_hSyoUJ.es.js} +4 -4
  7. package/dist/chunks/{jszip-D9YbjC4E.cjs → jszip-B9XFUSP6.cjs} +1 -1
  8. package/dist/chunks/{jszip-OpmRHhd4.es.js → jszip-BISi6DwV.es.js} +1 -1
  9. package/dist/chunks/super-editor.es-8ApwJvNk.cjs +457 -0
  10. package/dist/chunks/{super-editor.es-jrBL9mdr.es.js → super-editor.es-CifAxYgu.es.js} +9612 -9332
  11. package/dist/chunks/{url-DRGmEUtI.cjs → url-CQAfrw85.cjs} +1 -1
  12. package/dist/chunks/{url-C29KYeaj.es.js → url-amCEc5Yz.es.js} +2 -2
  13. package/dist/chunks/{vue-DKS68Dra.es.js → vue-DZ2Bmo1d.es.js} +251 -249
  14. package/dist/chunks/{vue-BQCc2YbW.cjs → vue-MFKe9j2t.cjs} +7 -7
  15. package/dist/chunks/{xml-js-CgHhGhcJ.es.js → xml-js-CA7yNi6O.es.js} +2 -2
  16. package/dist/chunks/{xml-js-CMQ3QRee.cjs → xml-js-D7dYWJv-.cjs} +1 -1
  17. package/dist/core/SuperDoc.d.ts.map +1 -1
  18. package/dist/style.css +29 -29
  19. package/dist/super-editor/ai-writer.es.js +2 -2
  20. package/dist/super-editor/chunks/{converter-D1a6grDV.js → converter-D6sWgeo0.js} +1888 -1824
  21. package/dist/super-editor/chunks/{docx-zipper-L7BeJRax.js → docx-zipper-D8nXUhBi.js} +749 -763
  22. package/dist/super-editor/chunks/{editor-BY7pz5xQ.js → editor-DNn7DnFc.js} +4697 -4526
  23. package/dist/super-editor/chunks/{toolbar-DEvjPuNj.js → toolbar-BsYrgF2l.js} +612 -611
  24. package/dist/super-editor/components/toolbar/constants.d.ts +12 -0
  25. package/dist/super-editor/components/toolbar/constants.d.ts.map +1 -0
  26. package/dist/super-editor/components/toolbar/defaultItems.d.ts +3 -1
  27. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  28. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +2 -0
  29. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  30. package/dist/super-editor/converter.es.js +1 -1
  31. package/dist/super-editor/core/DocxZipper.d.ts.map +1 -1
  32. package/dist/super-editor/core/Editor.d.ts +16 -0
  33. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  34. package/dist/super-editor/core/InputRule.d.ts +1 -0
  35. package/dist/super-editor/core/InputRule.d.ts.map +1 -1
  36. package/dist/super-editor/core/commands/insertTabNode.d.ts +7 -1
  37. package/dist/super-editor/core/commands/insertTabNode.d.ts.map +1 -1
  38. package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts +2 -0
  39. package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -0
  40. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  41. package/dist/super-editor/core/super-converter/constants.d.ts +2 -0
  42. package/dist/super-editor/core/super-converter/constants.d.ts.map +1 -0
  43. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  44. package/dist/super-editor/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
  45. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
  46. package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +9 -0
  47. package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts.map +1 -0
  48. package/dist/super-editor/docx-zipper.es.js +2 -2
  49. package/dist/super-editor/editor.es.js +3 -3
  50. package/dist/super-editor/extensions/collaboration/collaboration.d.ts +3 -0
  51. package/dist/super-editor/extensions/collaboration/collaboration.d.ts.map +1 -1
  52. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  53. package/dist/super-editor/extensions/index.d.ts +2 -1
  54. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  55. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +1 -1
  56. package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
  57. package/dist/super-editor/extensions/structured-content/index.d.ts +2 -0
  58. package/dist/super-editor/extensions/structured-content/index.d.ts.map +1 -0
  59. package/dist/super-editor/extensions/structured-content/structured-content.d.ts +2 -0
  60. package/dist/super-editor/extensions/structured-content/structured-content.d.ts.map +1 -0
  61. package/dist/super-editor/file-zipper.es.js +1 -1
  62. package/dist/super-editor/style.css +1 -1
  63. package/dist/super-editor/super-editor.es.js +1169 -1108
  64. package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  65. package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts +2 -0
  66. package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts.map +1 -0
  67. package/dist/super-editor/toolbar.es.js +2 -2
  68. package/dist/super-editor.cjs +1 -1
  69. package/dist/super-editor.es.js +9 -9
  70. package/dist/superdoc.cjs +6 -6
  71. package/dist/superdoc.es.js +16 -12
  72. package/dist/superdoc.umd.js +11198 -10912
  73. package/dist/superdoc.umd.js.map +1 -1
  74. package/package.json +2 -1
  75. package/dist/chunks/super-editor.es-VeFFgSyB.cjs +0 -451
@@ -1,9 +1,9 @@
1
- import { f as md, g as yd, c as bd, i as jo, Z as Wo, H as wd, x as Sd, D as Dd, M as vd, b as Fd } from "./chunks/super-editor.es-jrBL9mdr.es.js";
2
- import { P as Ib, d as Cb, L as fb } from "./chunks/super-editor.es-jrBL9mdr.es.js";
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-DKS68Dra.es.js";
4
- import { B as qn } from "./chunks/jszip-OpmRHhd4.es.js";
1
+ import { T as md, g as yd, c as bd, i as jo, e as Wo, R as wd, x as Sd, $ as Dd, H as vd, d as Fd } from "./chunks/super-editor.es-CifAxYgu.es.js";
2
+ import { a as Ib, A as Cb, L as fb } from "./chunks/super-editor.es-CifAxYgu.es.js";
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-DZ2Bmo1d.es.js";
4
+ import { B as qn } from "./chunks/jszip-BISi6DwV.es.js";
5
5
  import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
6
- import { E as eg } from "./chunks/eventemitter3-C9iBZY5R.es.js";
6
+ import { E as eg } from "./chunks/eventemitter3-DFFdN5-N.es.js";
7
7
  import { HocuspocusProvider as Kd, HocuspocusProviderWebsocket as _d } from "@hocuspocus/provider";
8
8
  import { Doc as qd, Map as tg } from "yjs";
9
9
  import { v as ig } from "./chunks/uuid-BMep7PEs.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-kWwSELc2.es.js"
16791
+ "./chunks/index-D_hSyoUJ.es.js"
16792
16792
  ).then((d) => d.i), a = await import(
16793
16793
  /*webpackIgnore: true*/
16794
- "./chunks/index-BTkgQgI7.es.js"
16794
+ "./chunks/index-D0RRgvB7.es.js"
16795
16795
  ).then((d) => d.i), o = await import(
16796
16796
  /*webpackIgnore: true*/
16797
- "./chunks/url-C29KYeaj.es.js"
16797
+ "./chunks/url-amCEc5Yz.es.js"
16798
16798
  ).then((d) => d.u);
16799
16799
  let l, h;
16800
16800
  try {
@@ -32392,7 +32392,8 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
32392
32392
  isNewFile: ee.isNewFile || !1,
32393
32393
  handleImageUpload: q.$superdoc.config.handleImageUpload,
32394
32394
  telemetry: q.$superdoc.telemetry,
32395
- externalExtensions: q.$superdoc.config.editorExtensions || []
32395
+ externalExtensions: q.$superdoc.config.editorExtensions || [],
32396
+ htmlOverride: q.$superdoc.config.htmlOverride
32396
32397
  }), Ni = ({ allCommentIds: ee, allCommentPositions: me }) => {
32397
32398
  q.$superdoc.config.modules?.comments && V(me, ee);
32398
32399
  }, Ci = (ee = {}) => {
@@ -32639,7 +32640,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
32639
32640
  ], 2);
32640
32641
  };
32641
32642
  }
32642
- }, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-08858e4d"]]), Fy = () => {
32643
+ }, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-6de230fe"]]), Fy = () => {
32643
32644
  const n = $l(vy), t = yI();
32644
32645
  n.use(t), n.directive("click-outside", ng);
32645
32646
  const i = Ri(), r = hn();
@@ -32717,7 +32718,7 @@ class hb extends eg {
32717
32718
  this.config = {
32718
32719
  ...this.config,
32719
32720
  ...t
32720
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.12.0-RC2", 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();
32721
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.12.0-RC5", 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();
32721
32722
  }
32722
32723
  /**
32723
32724
  * Get the number of editors that are required for this superdoc
@@ -32879,7 +32880,10 @@ class hb extends eg {
32879
32880
  toolbarGroups: this.config.modules?.toolbar?.groups || this.config.toolbarGroups,
32880
32881
  role: this.config.role,
32881
32882
  pagination: this.config.pagination,
32882
- icons: this.config.toolbarIcons,
32883
+ icons: this.config.modules?.toolbar?.icons || this.config.toolbarIcons,
32884
+ fonts: this.config.modules?.toolbar?.fonts || null,
32885
+ hideButtons: this.config.modules?.toolbar?.hideButtons ?? !0,
32886
+ responsiveToContainer: this.config.modules?.toolbar?.responsiveToContainer ?? !1,
32883
32887
  documentMode: this.config.documentMode,
32884
32888
  superdoc: this,
32885
32889
  aiApiKey: this.config.modules?.ai?.apiKey,