@harbour-enterprises/superdoc 0.11.56 → 0.11.58

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-C6SLw2ph.cjs → index-BWoN1jpL.cjs} +1 -1
  2. package/dist/chunks/{index-BTkgQgI7.es.js → index-Bu0Qz4_D.es.js} +1 -1
  3. package/dist/chunks/{index-kWwSELc2.es.js → index-CsjnTatF.es.js} +2 -2
  4. package/dist/chunks/{index-CbUTRvRk.cjs → index-DLLQ5PJZ.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-DnOzCemu.cjs → super-editor.es-D4v1tv4j.cjs} +41 -41
  6. package/dist/chunks/{super-editor.es-CQmuhKm9.es.js → super-editor.es-qCwVvR8-.es.js} +1964 -1981
  7. package/dist/chunks/{url-C29KYeaj.es.js → url-D8ItQPzc.es.js} +1 -1
  8. package/dist/chunks/{url-DRGmEUtI.cjs → url-DRW8x74x.cjs} +1 -1
  9. package/dist/chunks/xml-js-DrlOWTO_.cjs +10 -0
  10. package/dist/chunks/{xml-js-CgHhGhcJ.es.js → xml-js-yTXP6usI.es.js} +617 -588
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-CAbmlx7Y.js → converter-BIFb-l0C.js} +269 -289
  13. package/dist/super-editor/chunks/{docx-zipper-D2F03nnu.js → docx-zipper-Bf04SHvT.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-Dl99D4Z6.js → editor-BZ4VbwzA.js} +7 -6
  15. package/dist/super-editor/chunks/{toolbar-Y408xd1k.js → toolbar-mC-hpKkm.js} +2 -2
  16. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/core/helpers/annotator.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 +10 -8
  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 +386 -403
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunks/xml-js-CMQ3QRee.cjs +0 -10
@@ -1,4 +1,4 @@
1
- import { x as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt, a3 as Dt } from "./converter-CAbmlx7Y.js";
1
+ import { x as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt, a3 as Dt } from "./converter-BIFb-l0C.js";
2
2
  function kt(bt) {
3
3
  throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -7,9 +7,9 @@ var L = (t, e, n) => zf(t, typeof e != "symbol" ? e + "" : e, n), Qo = (t, e, n)
7
7
  var Qe = (t, e, n) => (Qo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ei = (t, e, n, r) => (Qo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Qo(t, e, "access private method"), n);
8
8
  import * as N from "yjs";
9
9
  import { UndoManager as _f, Item as $f, ContentType as Vf, Text as Hf, XmlElement as jf } from "yjs";
10
- import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as D, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-CAbmlx7Y.js";
10
+ import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as D, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-BIFb-l0C.js";
11
11
  import { ref as ma, computed as tp, createElementBlock as Xt, openBlock as Jt, withModifiers as oi, Fragment as np, renderList as rp, normalizeClass as op, createCommentVNode as ga, toDisplayString as ii, createElementVNode as ip, createApp as sp } from "vue";
12
- import { D as ya } from "./docx-zipper-D2F03nnu.js";
12
+ import { D as ya } from "./docx-zipper-Bf04SHvT.js";
13
13
  function Vo(t) {
14
14
  const { from: e, to: n, empty: r } = t.selection, o = [];
15
15
  return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
@@ -9753,8 +9753,9 @@ const Jd = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
9753
9753
  const { state: r } = t, { doc: o } = r, i = [];
9754
9754
  return o.descendants((s, a) => {
9755
9755
  s.type.name === "table" && i.push({ node: s, pos: a });
9756
- }), i.reverse().forEach((s) => {
9757
- jb({ tableNode: s, annotationValues: n, tr: e, editor: t });
9756
+ }), i.reverse().forEach(({ pos: s }) => {
9757
+ const a = e.doc.nodeAt(s);
9758
+ !a || a.type.name !== "table" || jb({ tableNode: { node: a, pos: s }, annotationValues: n, tr: e, editor: t });
9758
9759
  }), e;
9759
9760
  }, jb = ({ tableNode: t, annotationValues: e, tr: n, editor: r }) => {
9760
9761
  let o = null, i = null;
@@ -9768,7 +9769,7 @@ const Jd = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
9768
9769
  if (o) return !0;
9769
9770
  if (w.type === s && (i = { node: w, pos: x }), w.type === l) {
9770
9771
  const y = vi(w.attrs.fieldId, e);
9771
- Array.isArray(y) && (o = i);
9772
+ Array.isArray(y) && w.attrs.generatorIndex === null && (o = i);
9772
9773
  }
9773
9774
  }), !o) return;
9774
9775
  const { node: d, pos: u } = o, f = n.mapping.map(t.pos + u), p = f + d.nodeSize;
@@ -10364,7 +10365,7 @@ const ca = class ca extends Qy {
10364
10365
  * @returns {Object | void} Migration results
10365
10366
  */
10366
10367
  processCollaborationMigrations() {
10367
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.56"), !this.options.ydoc) return;
10368
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.58"), !this.options.ydoc) return;
10368
10369
  let r = this.options.ydoc.getMap("meta").get("version");
10369
10370
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10370
10371
  const o = hl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
2
- import { x as rn } from "./converter-CAbmlx7Y.js";
3
- import { _ as mt, g as kt } from "./editor-Dl99D4Z6.js";
2
+ import { x as rn } from "./converter-BIFb-l0C.js";
3
+ import { _ as mt, g as kt } from "./editor-BZ4VbwzA.js";
4
4
  const I0 = (e, t) => {
5
5
  let n = e.replace(/[^0-9.]/g, "");
6
6
  return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
@@ -1 +1 @@
1
- {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH;IAoBE;;;;OAIG;IACH,oBAHW,aAAa,EA8CvB;IAnED;;;OAGG;IACH,QAFU,aAAa,CAerB;IAWA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,aAAmC;IA4BnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAkT3C;;;;OAIG;IACH,aAHc,GAAC,EAAA,GACF,IAAI,CAIhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,8BAFa,IAAI,CAKhB;IAED;;;;OAIG;IACH,iCAHW,MAAM,GACJ,WAAW,EAAE,CAIzB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,WAAW,GAAC,SAAS,CAIjC;IAiFD;;;;OAIG;IACH,sBAFa,IAAI,CAiEhB;IAED;;;OAGG;IACH,uBAFa,IAAI,CAOf;IAuBA,eAAmD;IACnD,eAAmD;IAGrD;;;;;;OAMG;IACH,6CAJG;QAAuB,MAAM;QACN,WAAW;KA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;;WACA;QAAoB,KAAK,EAAd,GAAC;KACZ;;;;eACA;QAA8B,KAAK,EAAxB,OAAO;KAClB;;;;4BACA;QAA2C,KAAK,EAArC,OAAO;KAClB;;;;wBACA;QAAuC,KAAK,EAAjC,OAAO;KAClB;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;eACA;QAAwB,KAAK,EAAlB,GAAC;KACZ;;;;wBACA;QAAuC,KAAK,EAAjC,OAAO;KAClB;;;;sBACA;QAA+B,KAAK,EAAzB,GAAC;KACZ;;;;mBACA;QAA4B,KAAK,EAAtB,GAAC;KACZ;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAWW,WAAW;;;;eACX,GAAC;;6BAnHc,eAAe"}
1
+ {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH;IAoBE;;;;OAIG;IACH,oBAHW,aAAa,EA8CvB;IAnED;;;OAGG;IACH,QAFU,aAAa,CAerB;IAWA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,aAAmC;IA4BnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAkT3C;;;;OAIG;IACH,aAHc,GAAC,EAAA,GACF,IAAI,CAIhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,8BAFa,IAAI,CAKhB;IAED;;;;OAIG;IACH,iCAHW,MAAM,GACJ,WAAW,EAAE,CAIzB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,WAAW,GAAC,SAAS,CA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B;;;;oBACA;QAA6B,KAAK,EAAvB,GAAC;KACZ;;;;oBACA;QAAmC,KAAK,EAA7B,OAAO;KAClB;;;;oBACA;QAA6B,KAAK,EAAvB,GAAC;KACZ;;;;kBACA;QAA2B,KAAK,EAArB,GAAC;KACZ;;;;WACA;QAAoB,KAAK,EAAd,GAAC;KACZ;;;;eACA;QAA8B,KAAK,EAAxB,OAAO;KAClB;;;;4BACA;QAA2C,KAAK,EAArC,OAAO;KAClB;;;;wBACA;QAAuC,KAAK,EAAjC,OAAO;KAClB;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;eACA;QAAwB,KAAK,EAAlB,GAAC;KACZ;;;;wBACA;QAAuC,KAAK,EAAjC,OAAO;KAClB;;;;sBACA;QAA+B,KAAK,EAAzB,GAAC;KACZ;;;;mBACA;QAA4B,KAAK,EAAtB,GAAC;KACZ;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAWW,WAAW;;;;eACX,GAAC;;6BAnHc,eAAe"}
@@ -1,4 +1,4 @@
1
- import { O as o } from "./chunks/converter-CAbmlx7Y.js";
1
+ import { O as o } from "./chunks/converter-BIFb-l0C.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAUO,uEAiBN;AAiCM,gEAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAgBA;AAuFM;;;;;QAkFN"}
1
+ {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAUO,uEAiBN;AAiCM,gEAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAmBA;AAyFM;;;;;QAkFN"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CAbmlx7Y.js";
2
- import { D as a } from "./chunks/docx-zipper-D2F03nnu.js";
1
+ import "./chunks/converter-BIFb-l0C.js";
2
+ import { D as a } from "./chunks/docx-zipper-Bf04SHvT.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-Dl99D4Z6.js";
2
- import "./chunks/converter-CAbmlx7Y.js";
3
- import "./chunks/docx-zipper-D2F03nnu.js";
1
+ import { E as m } from "./chunks/editor-BZ4VbwzA.js";
2
+ import "./chunks/converter-BIFb-l0C.js";
3
+ import "./chunks/docx-zipper-Bf04SHvT.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-D2F03nnu.js";
1
+ import { J as p } from "./chunks/docx-zipper-Bf04SHvT.js";
2
2
  async function c(o, t) {
3
3
  const e = new p();
4
4
  return o.forEach((i, n) => {
@@ -6,14 +6,14 @@ var bt = (t, r, o) => r in t ? yt(t, r, { enumerable: !0, configurable: !0, writ
6
6
  var Re = (t, r, o) => bt(t, typeof r != "symbol" ? r + "" : r, o), qe = (t, r, o) => r.has(t) || Ue("Cannot " + o);
7
7
  var Ae = (t, r, o) => (qe(t, r, "read from private field"), o ? o.call(t) : r.get(t)), Oe = (t, r, o) => r.has(t) ? Ue("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, o);
8
8
  var z = (t, r, o) => (qe(t, r, "access private method"), o);
9
- import { _ as q, a as Ze, b as wt, I as Ne, f as Ct, c as Ge, d as kt, i as _t, u as xt, r as Et, E as ze, e as St, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-Dl99D4Z6.js";
10
- import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-Dl99D4Z6.js";
11
- import { a1 as Dt, E as $t, a4 as Ht, T as Ye, a as Bt } from "./chunks/converter-CAbmlx7Y.js";
12
- import { O as qo } from "./chunks/converter-CAbmlx7Y.js";
9
+ import { _ as q, a as Ze, b as wt, I as Ne, f as Ct, c as Ge, d as kt, i as _t, u as xt, r as Et, E as ze, e as St, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-BZ4VbwzA.js";
10
+ import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-BZ4VbwzA.js";
11
+ import { a1 as Dt, E as $t, a4 as Ht, T as Ye, a as Bt } from "./chunks/converter-BIFb-l0C.js";
12
+ import { O as qo } from "./chunks/converter-BIFb-l0C.js";
13
13
  import { ref as f, createElementBlock as C, openBlock as w, createElementVNode as k, unref as D, getCurrentInstance as Rt, computed as j, watch as Ot, onMounted as ke, createCommentVNode as Q, withDirectives as Je, withKeys as Qe, normalizeClass as oe, withModifiers as ge, vModelText as et, createTextVNode as tt, toDisplayString as ie, Fragment as U, renderList as ee, normalizeStyle as J, createVNode as P, h as B, createApp as Nt, reactive as Ke, onUnmounted as zt, shallowRef as nt, onBeforeUnmount as ot, createBlock as Vt } from "vue";
14
- import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-Y408xd1k.js";
14
+ import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-mC-hpKkm.js";
15
15
  import jt from "./ai-writer.es.js";
16
- import { D as Ko } from "./chunks/docx-zipper-D2F03nnu.js";
16
+ import { D as Ko } from "./chunks/docx-zipper-Bf04SHvT.js";
17
17
  import { createZip as Zo } from "./file-zipper.es.js";
18
18
  var it = { exports: {} };
19
19
  (function(t) {
@@ -150,7 +150,7 @@ const _ = (t) => {
150
150
  const o = f($t()), n = t.type, e = f(t.name), i = t.command, c = t.noArgumentCommand, a = f(t.icon), l = f(t.group || "center"), d = f(t.allowWithoutEditor), m = f(t.attributes || {}), s = t.disabled || !1, b = f(t.disabled), v = f(!1), y = f(!1), E = f(t.style), g = f(t.isNarrow), F = f(t.isWide), $ = f(t.minWidth), p = f(t.suppressActiveHighlight || !1), x = f(t.argument), T = f(null), N = f(null), V = f(t.iconColor), te = f(t.hasCaret), ye = f(t.dropdownStyles), Z = f(t.tooltip), re = f(t.tooltipVisible), be = f(t.tooltipTimeout), I = f(t.defaultLabel), M = f(t.label), H = f(t.hideLabel), R = f(t.inlineTextInputVisible), G = f(t.hasInlineTextInput), K = f(t.markName), ce = f(t.labelAttr), ue = f(t.selectedValue), _e = f(t.dropdownValueKey), xe = f(t.inputRef || null), Ee = f([]);
151
151
  if (t.options) {
152
152
  if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
153
- Ee.value.push(...t.options);
153
+ Ee.value?.push(...t.options);
154
154
  }
155
155
  const Fe = (se) => {
156
156
  we(se), !p.value && (v.value = !0);
@@ -1975,7 +1975,9 @@ at = function() {
1975
1975
  */
1976
1976
  rt = function() {
1977
1977
  if (!this.activeEditor || !this.activeEditor.converter || !this.activeEditor.converter.docHiglightColors.size) return;
1978
- const o = this.toolbarItems.find((a) => a.name.value === "highlight"), n = Vn(), e = 7, i = Array.from(this.activeEditor.converter.docHiglightColors).reduce((a, l, d) => {
1978
+ const o = this.toolbarItems.find((a) => a.name.value === "highlight");
1979
+ if (!o) return;
1980
+ const n = Vn(), e = 7, i = Array.from(this.activeEditor.converter.docHiglightColors).reduce((a, l, d) => {
1979
1981
  const m = Math.floor(d / e);
1980
1982
  return a[m] || (a[m] = []), n.includes(l) || a[m].push(h(l)), a;
1981
1983
  }, []), c = {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-Y408xd1k.js";
3
- import "./chunks/editor-Dl99D4Z6.js";
2
+ import { T as p } from "./chunks/toolbar-mC-hpKkm.js";
3
+ import "./chunks/editor-BZ4VbwzA.js";
4
4
  export {
5
5
  p as default
6
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-DnOzCemu.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ns;exports.Extensions=e.Bo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.P0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Jx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Bx;exports.getStarterExtensions=e.zx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.Gx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-D4v1tv4j.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ns;exports.Extensions=e.Bo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.P0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Jx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Bx;exports.getStarterExtensions=e.zx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.Gx;
@@ -1,4 +1,4 @@
1
- import { x as r, $ as t, g as o, P as n, n as i, B as p, O as g, D as l, H as c, M as m, a as u, c as x, b as d, J as S, d as E, m as h, V as A, e as C, z as T, R as b, G as k } from "./chunks/super-editor.es-CQmuhKm9.es.js";
1
+ import { x as r, $ as t, g as o, P as n, n as i, B as p, O as g, D as l, H as c, M as m, a as u, c as x, b as d, J as S, d as E, m as h, V as A, e as C, z as T, R as b, G as k } from "./chunks/super-editor.es-qCwVvR8-.es.js";
2
2
  import "./chunks/vue-DKS68Dra.es.js";
3
3
  export {
4
4
  r as AIWriter,