@harbour-enterprises/superdoc 0.11.33 → 0.11.35

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 (32) hide show
  1. package/dist/chunks/{index-kAA2CRkl.es.js → index-BTkgQgI7.es.js} +1 -1
  2. package/dist/chunks/{index-71EH9929.cjs → index-C6SLw2ph.cjs} +1 -1
  3. package/dist/chunks/{index-DJ2cGnRl.cjs → index-CbUTRvRk.cjs} +1 -1
  4. package/dist/chunks/{index-DRzufgTV.es.js → index-kWwSELc2.es.js} +2 -2
  5. package/dist/chunks/{super-editor.es-YK41JJFh.cjs → super-editor.es-BlvoIGyz.cjs} +13 -13
  6. package/dist/chunks/{super-editor.es-DUU_CN2L.es.js → super-editor.es-Doc0izWg.es.js} +8157 -8155
  7. package/dist/chunks/{url-BcsmChMq.es.js → url-C29KYeaj.es.js} +1 -1
  8. package/dist/chunks/{url-CHPOWQEe.cjs → url-DRGmEUtI.cjs} +1 -1
  9. package/dist/chunks/xml-js-CMQ3QRee.cjs +10 -0
  10. package/dist/chunks/{xml-js-CiXFCQBs.es.js → xml-js-CgHhGhcJ.es.js} +355 -366
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-0l3CSdnn.js → converter-BlU0TjfI.js} +26 -26
  13. package/dist/super-editor/chunks/{docx-zipper-B-BWHBdZ.js → docx-zipper-CmXMgr4n.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-CgA3W09D.js → editor-Bp5_glaN.js} +8128 -8128
  15. package/dist/super-editor/chunks/{toolbar-Dk5ck8s2.js → toolbar-CPZT2u-C.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/Attribute.d.ts +2 -2
  18. package/dist/super-editor/core/Schema.d.ts +2 -2
  19. package/dist/super-editor/core/index.d.ts +3 -3
  20. package/dist/super-editor/docx-zipper.es.js +2 -2
  21. package/dist/super-editor/editor.es.js +3 -3
  22. package/dist/super-editor/file-zipper.es.js +1 -1
  23. package/dist/super-editor/super-editor.es.js +68 -68
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +4 -4
  28. package/dist/superdoc.es.js +6 -6
  29. package/dist/superdoc.umd.js +8074 -8074
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/chunks/xml-js-jS9zLULc.cjs +0 -10
@@ -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 { p as rn } from "./converter-0l3CSdnn.js";
3
- import { _ as mt, g as kt } from "./editor-CgA3W09D.js";
2
+ import { x as rn } from "./converter-BlU0TjfI.js";
3
+ import { _ as mt, g as kt } from "./editor-Bp5_glaN.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,4 +1,4 @@
1
- import { O as o } from "./chunks/converter-0l3CSdnn.js";
1
+ import { O as o } from "./chunks/converter-BlU0TjfI.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -15,14 +15,14 @@ export class Attribute {
15
15
  * @param defaultAttribute Default attribute.
16
16
  * @returns Global extension attributes.
17
17
  */
18
- static "__#6@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
18
+ static "__#5@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
19
19
  /**
20
20
  * Get a list of attributes defined in the Node and Mark extensions.
21
21
  * @param extensions List of all extensions.
22
22
  * @param defaultAttribute Default attribute.
23
23
  * @returns Node and Mark extension attributes.
24
24
  */
25
- static "__#6@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
25
+ static "__#5@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
26
26
  type: any;
27
27
  name: string;
28
28
  attribute: any;
@@ -16,7 +16,7 @@ export class Schema {
16
16
  * @param editor Editor instance.
17
17
  * @returns Nodes schema.
18
18
  */
19
- static "__#7@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
19
+ static "__#6@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
20
20
  [k: string]: any;
21
21
  };
22
22
  /**
@@ -26,7 +26,7 @@ export class Schema {
26
26
  * @param editor Editor instance.
27
27
  * @returns Marks schema.
28
28
  */
29
- static "__#7@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
29
+ static "__#6@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
30
30
  [k: string]: any;
31
31
  };
32
32
  }
@@ -1,11 +1,11 @@
1
- export * from "./Editor.js";
2
- export * from "./CommandService.js";
3
- export * from "./Extension.js";
4
1
  export * from "./Node.js";
5
2
  export * from "./Mark.js";
6
3
  export * from "./Schema.js";
7
4
  export * from "./Attribute.js";
5
+ export * from "./CommandService.js";
6
+ export * from "./Extension.js";
8
7
  export * from "./super-converter/SuperConverter.js";
8
+ export * from "./Editor.js";
9
9
  export * as coreExtensions from "./extensions/index.js";
10
10
  export * as helpers from "./helpers/index.js";
11
11
  export * as utilities from "./utilities/index.js";
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-0l3CSdnn.js";
2
- import { D as a } from "./chunks/docx-zipper-B-BWHBdZ.js";
1
+ import "./chunks/converter-BlU0TjfI.js";
2
+ import { D as a } from "./chunks/docx-zipper-CmXMgr4n.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-CgA3W09D.js";
2
- import "./chunks/converter-0l3CSdnn.js";
3
- import "./chunks/docx-zipper-B-BWHBdZ.js";
1
+ import { E as m } from "./chunks/editor-Bp5_glaN.js";
2
+ import "./chunks/converter-BlU0TjfI.js";
3
+ import "./chunks/docx-zipper-CmXMgr4n.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-B-BWHBdZ.js";
1
+ import { J as p } from "./chunks/docx-zipper-CmXMgr4n.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, a, o) => a in t ? yt(t, a, { enumerable: !0, configurable: !0, writ
6
6
  var Re = (t, a, o) => bt(t, typeof a != "symbol" ? a + "" : a, o), qe = (t, a, o) => a.has(t) || Ue("Cannot " + o);
7
7
  var Ae = (t, a, o) => (qe(t, a, "read from private field"), o ? o.call(t) : a.get(t)), Oe = (t, a, o) => a.has(t) ? Ue("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, o);
8
8
  var z = (t, a, o) => (qe(t, a, "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 St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-CgA3W09D.js";
10
- import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-CgA3W09D.js";
11
- import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-0l3CSdnn.js";
12
- import { O as qo } from "./chunks/converter-0l3CSdnn.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-Bp5_glaN.js";
10
+ import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-Bp5_glaN.js";
11
+ import { a1 as Dt, E as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-BlU0TjfI.js";
12
+ import { O as qo } from "./chunks/converter-BlU0TjfI.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-Dk5ck8s2.js";
14
+ import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-CPZT2u-C.js";
15
15
  import jt from "./ai-writer.es.js";
16
- import { D as Ko } from "./chunks/docx-zipper-B-BWHBdZ.js";
16
+ import { D as Ko } from "./chunks/docx-zipper-CmXMgr4n.js";
17
17
  import { createZip as Zo } from "./file-zipper.es.js";
18
18
  var it = { exports: {} };
19
19
  (function(t) {
@@ -53,9 +53,9 @@ var it = { exports: {} };
53
53
  var d = o ? o + c : c, u = this._events[d];
54
54
  return u ? u.fn ? 1 : u.length : 0;
55
55
  }, l.prototype.emit = function(c, d, u, b, v, y) {
56
- var S = o ? o + c : c;
57
- if (!this._events[S]) return !1;
58
- var g = this._events[S], F = arguments.length, $, p;
56
+ var E = o ? o + c : c;
57
+ if (!this._events[E]) return !1;
58
+ var g = this._events[E], F = arguments.length, $, p;
59
59
  if (g.fn) {
60
60
  switch (g.once && this.removeListener(c, g.fn, void 0, !0), F) {
61
61
  case 1:
@@ -110,8 +110,8 @@ var it = { exports: {} };
110
110
  if (y.fn)
111
111
  y.fn === d && (!b || y.once) && (!u || y.context === u) && r(this, v);
112
112
  else {
113
- for (var S = 0, g = [], F = y.length; S < F; S++)
114
- (y[S].fn !== d || b && !y[S].once || u && y[S].context !== u) && g.push(y[S]);
113
+ for (var E = 0, g = [], F = y.length; E < F; E++)
114
+ (y[E].fn !== d || b && !y[E].once || u && y[E].context !== u) && g.push(y[E]);
115
115
  g.length ? this._events[v] = g.length === 1 ? g[0] : g : r(this, v);
116
116
  }
117
117
  return this;
@@ -147,10 +147,10 @@ const x = (t) => {
147
147
  throw new Error("Toolbar button item needs either icon or label - " + t.name);
148
148
  if (!t.name)
149
149
  throw new Error("Invalid toolbar item name - " + t.name);
150
- const o = f($t()), n = t.type, e = f(t.name), i = t.command, r = t.noArgumentCommand, l = f(t.icon), s = f(t.group || "center"), c = f(t.allowWithoutEditor), d = f(t.attributes || {}), u = t.disabled || !1, b = f(t.disabled), v = f(!1), y = f(!1), S = f(t.style), g = f(t.isNarrow), F = f(t.isWide), $ = f(t.minWidth), p = f(t.suppressActiveHighlight || !1), _ = 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), Se = f([]);
150
+ const o = f($t()), n = t.type, e = f(t.name), i = t.command, r = t.noArgumentCommand, l = f(t.icon), s = f(t.group || "center"), c = f(t.allowWithoutEditor), d = f(t.attributes || {}), u = 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), _ = 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
- Se.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);
@@ -178,8 +178,8 @@ const x = (t) => {
178
178
  disabled: b,
179
179
  active: v,
180
180
  expand: y,
181
- nestedOptions: Se,
182
- style: S,
181
+ nestedOptions: Ee,
182
+ style: E,
183
183
  isNarrow: g,
184
184
  isWide: F,
185
185
  minWidth: $,
@@ -296,7 +296,7 @@ const x = (t) => {
296
296
  }, l = f(!1), s = f(n.initialText), c = f(n.href), d = j(() => c.value?.startsWith("http") ? c.value : "http://" + c.value), u = j(() => {
297
297
  const p = d.value.split(".").filter(Boolean);
298
298
  return d.value.includes(".") && p.length > 1;
299
- }), b = j(() => y.value ? "Apply" : "Remove"), v = j(() => !u.value), y = j(() => !S.value), S = j(() => n.href && !c.value), g = j(() => n.href.startsWith("#")), F = () => {
299
+ }), b = j(() => y.value ? "Apply" : "Remove"), v = j(() => !u.value), y = j(() => !E.value), E = j(() => n.href && !c.value), g = j(() => n.href.startsWith("#")), F = () => {
300
300
  window.open(d.value, "_blank");
301
301
  };
302
302
  Ot(
@@ -392,7 +392,7 @@ const x = (t) => {
392
392
  ], 10, yn))), 256))
393
393
  ]));
394
394
  }
395
- }, Sn = /* @__PURE__ */ q(xn, [["__scopeId", "data-v-f86e1477"]]), En = {
395
+ }, En = /* @__PURE__ */ q(xn, [["__scopeId", "data-v-f86e1477"]]), Sn = {
396
396
  key: 0,
397
397
  class: "linked-style-buttons"
398
398
  }, An = ["onClick"], Tn = {
@@ -408,7 +408,7 @@ const x = (t) => {
408
408
  const o = a, n = t, e = (i) => {
409
409
  o("select", i);
410
410
  };
411
- return (i, r) => n.editor ? (w(), C("div", En, [
411
+ return (i, r) => n.editor ? (w(), C("div", Sn, [
412
412
  (w(!0), C(U, null, ee(D(Ze)(t.editor), (l) => (w(), C("div", {
413
413
  class: "style-item",
414
414
  onClick: (s) => e(l)
@@ -625,8 +625,8 @@ const x = (t) => {
625
625
  let u = [...s.parentElement.querySelectorAll("[data-item]")], b = parseInt(s.dataset.cols, 10), v = parseInt(s.dataset.rows, 10);
626
626
  e.value = b, n.value = v;
627
627
  for (let y = 0; y < u.length; y++) {
628
- let S = u[y], g = parseInt(S.dataset.cols, 10), F = parseInt(S.dataset.rows, 10);
629
- g <= b && F <= v ? S.classList.add("selected") : S.classList.remove("selected");
628
+ let E = u[y], g = parseInt(E.dataset.cols, 10), F = parseInt(E.dataset.rows, 10);
629
+ g <= b && F <= v ? E.classList.add("selected") : E.classList.remove("selected");
630
630
  }
631
631
  }, r = ({ cols: l, rows: s }) => {
632
632
  o("select", { cols: l, rows: s });
@@ -848,8 +848,8 @@ const x = (t) => {
848
848
  ],
849
849
  onActivate: ({ fontSize: m }) => {
850
850
  if (!m) return s.label.value = s.defaultLabel.value;
851
- let E = Wt(m, 12);
852
- E < 8 && (E = 8), E > 96 && (E = 96), s.label.value = String(E);
851
+ let S = Wt(m, 12);
852
+ S < 8 && (S = 8), S > 96 && (S = 96), s.label.value = String(S);
853
853
  },
854
854
  onDeactivate: () => s.label.value = s.defaultLabel.value
855
855
  }), c = x({
@@ -911,7 +911,7 @@ const x = (t) => {
911
911
  v.iconColor.value = m;
912
912
  },
913
913
  onDeactivate: () => v.iconColor.value = "#000"
914
- }), y = f(null), S = x({
914
+ }), y = f(null), E = x({
915
915
  type: "dropdown",
916
916
  name: "search",
917
917
  icon: e.search,
@@ -927,8 +927,8 @@ const x = (t) => {
927
927
  ]
928
928
  }), g = () => B("div", {}, [
929
929
  B(so, {
930
- onSubmit: ({ value: E }) => {
931
- t.activeEditor.commands.search(E);
930
+ onSubmit: ({ value: S }) => {
931
+ t.activeEditor.commands.search(S);
932
932
  },
933
933
  searchRef: y
934
934
  })
@@ -1083,9 +1083,9 @@ const x = (t) => {
1083
1083
  function ye(m) {
1084
1084
  return B(Qn, {
1085
1085
  options: te,
1086
- onSelect: (E) => {
1086
+ onSelect: (S) => {
1087
1087
  ae(m);
1088
- const { command: A } = E;
1088
+ const { command: A } = S;
1089
1089
  t.emitCommand({ item: m, argument: { command: A } });
1090
1090
  }
1091
1091
  });
@@ -1105,10 +1105,10 @@ const x = (t) => {
1105
1105
  type: "render",
1106
1106
  render: () => B("div", {}, [
1107
1107
  B(tn, {
1108
- onSelect: (E) => {
1108
+ onSelect: (S) => {
1109
1109
  ae(Z);
1110
1110
  const A = { ...Z, command: "setTextAlign" };
1111
- A.command = "setTextAlign", t.emitCommand({ item: A, argument: E }), re(Z, E);
1111
+ A.command = "setTextAlign", t.emitCommand({ item: A, argument: S }), re(Z, S);
1112
1112
  }
1113
1113
  })
1114
1114
  ]),
@@ -1121,8 +1121,8 @@ const x = (t) => {
1121
1121
  onDeactivate: () => {
1122
1122
  re(Z, "left");
1123
1123
  }
1124
- }), re = (m, E) => {
1125
- let A = E === "both" ? "justify" : E, W = {
1124
+ }), re = (m, S) => {
1125
+ let A = S === "both" ? "justify" : S, W = {
1126
1126
  left: e.alignLeft,
1127
1127
  right: e.alignRight,
1128
1128
  center: e.alignCenter,
@@ -1231,7 +1231,7 @@ const x = (t) => {
1231
1231
  command: "rejectTrackedChangeOnSelection",
1232
1232
  icon: e.trackChangesReject,
1233
1233
  group: "left"
1234
- }), Se = x({
1234
+ }), Ee = x({
1235
1235
  type: "button",
1236
1236
  disabled: !1,
1237
1237
  name: "toggleTrackChangesShowOriginal",
@@ -1260,7 +1260,7 @@ const x = (t) => {
1260
1260
  u,
1261
1261
  H,
1262
1262
  M,
1263
- S,
1263
+ E,
1264
1264
  R
1265
1265
  ].map((m) => m.name);
1266
1266
  const Le = x({
@@ -1269,7 +1269,7 @@ const x = (t) => {
1269
1269
  tooltip: "Format painter",
1270
1270
  icon: e.copyFormat,
1271
1271
  command: "copyFormat"
1272
- }), Me = (m, E) => m === "editor" ? E : m === "suggester" ? E.filter((A) => A.value === "suggesting") : E.filter((A) => A.value === "viewing"), we = (m) => m === "editor" ? "Editing" : m === "suggester" ? "Suggesting" : "Viewing", ne = x({
1272
+ }), Me = (m, S) => m === "editor" ? S : m === "suggester" ? S.filter((A) => A.value === "suggesting") : S.filter((A) => A.value === "viewing"), we = (m) => m === "editor" ? "Editing" : m === "suggester" ? "Suggesting" : "Viewing", ne = x({
1273
1273
  type: "dropdown",
1274
1274
  name: "documentMode",
1275
1275
  command: "setDocumentMode",
@@ -1315,9 +1315,9 @@ const x = (t) => {
1315
1315
  }
1316
1316
  ];
1317
1317
  function me(m) {
1318
- const E = Me(n, De);
1319
- return B(Sn, {
1320
- options: E,
1318
+ const S = Me(n, De);
1319
+ return B(En, {
1320
+ options: S,
1321
1321
  onSelect: (A) => {
1322
1322
  ae(m);
1323
1323
  const { label: W, icon: le } = A;
@@ -1367,10 +1367,10 @@ const x = (t) => {
1367
1367
  type: "render",
1368
1368
  key: "linkedStyle",
1369
1369
  render: () => {
1370
- const m = (E) => {
1370
+ const m = (S) => {
1371
1371
  ae(Ce);
1372
1372
  const A = { ...Ce, command: "setLinkedStyle" };
1373
- t.emitCommand({ item: A, argument: E });
1373
+ t.emitCommand({ item: A, argument: S });
1374
1374
  };
1375
1375
  return B("div", {}, [
1376
1376
  B(Fn, {
@@ -1387,8 +1387,8 @@ const x = (t) => {
1387
1387
  onDeactivate: () => {
1388
1388
  Ce.disabled.value = !0;
1389
1389
  }
1390
- }), he = (m, E) => {
1391
- if (E.value.toString() === m)
1390
+ }), he = (m, S) => {
1391
+ if (S.value.toString() === m)
1392
1392
  return B("div", { innerHTML: eo, class: "dropdown-select-icon" });
1393
1393
  }, de = x({
1394
1394
  type: "dropdown",
@@ -1461,34 +1461,34 @@ const x = (t) => {
1461
1461
  if (t.config?.superdoc?.config?.modules?.ai || (O = O.filter((m) => m.name.value !== "ai")), o <= $e.md && (O = O.filter((m) => m.type !== "separator")), t.config.pagination || (O = O.filter((m) => m.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
1462
1462
  const m = O.findIndex((A) => A.name.value === "linkedStyles");
1463
1463
  O.splice(m - 1, 2);
1464
- const E = ["ruler", "zoom", "undo", "redo"];
1465
- O = O.filter((A) => !E.includes(A.name.value));
1464
+ const S = ["ruler", "zoom", "undo", "redo"];
1465
+ O = O.filter((A) => !S.includes(A.name.value));
1466
1466
  }
1467
- const je = [ue, Se, Fe];
1467
+ const je = [ue, Ee, Fe];
1468
1468
  a || (n === "viewer" && je.push(_e, xe), O = O.filter((m) => !je.includes(m)));
1469
- const ft = [S, K, R, ne].map((m) => m.name), vt = (m) => ft.includes(m.name), Ee = [], He = [];
1469
+ const ft = [E, K, R, ne].map((m) => m.name), vt = (m) => ft.includes(m.name), Se = [], He = [];
1470
1470
  let Be = mt + ut;
1471
1471
  return O.forEach((m) => {
1472
- const E = pe.get(m.name.value) || pe.get("default");
1472
+ const S = pe.get(m.name.value) || pe.get("default");
1473
1473
  if (o < $e.xl && pt.includes(m.name.value)) {
1474
- if (Ee.push(m), m.name.value === "linkedStyles") {
1474
+ if (Se.push(m), m.name.value === "linkedStyles") {
1475
1475
  const A = O.findIndex((W) => W.name.value === "linkedStyles");
1476
1476
  O.splice(A + 1, 1);
1477
1477
  }
1478
1478
  return;
1479
1479
  }
1480
1480
  if (o < $e.sm && ht.includes(m.name.value)) {
1481
- Ee.push(m);
1481
+ Se.push(m);
1482
1482
  return;
1483
1483
  }
1484
1484
  if (vt(m)) {
1485
- He.push(m), Be += E;
1485
+ He.push(m), Be += S;
1486
1486
  return;
1487
1487
  }
1488
- Be < o ? (He.push(m), Be += E) : Ee.push(m);
1488
+ Be < o ? (He.push(m), Be += S) : Se.push(m);
1489
1489
  }), {
1490
1490
  defaultItems: He,
1491
- overflowItems: Ee.filter((m) => m.type !== "separator")
1491
+ overflowItems: Se.filter((m) => m.type !== "separator")
1492
1492
  };
1493
1493
  }, ao = [".jpg", ".jpeg", ".png", "image/jpeg", "image/png"], ro = () => {
1494
1494
  let t = document.createElement("input");
@@ -1557,11 +1557,11 @@ const x = (t) => {
1557
1557
  let b = o.name.replace(" ", "_"), v = Ct(a.state, l);
1558
1558
  if (v == null)
1559
1559
  return;
1560
- let y = { type: "remove", id: l }, S = `word/media/${b}`, g = c.nodes.image.create({
1561
- src: S,
1560
+ let y = { type: "remove", id: l }, E = `word/media/${b}`, g = c.nodes.image.create({
1561
+ src: E,
1562
1562
  size: { width: i, height: r }
1563
1563
  });
1564
- t.storage.image.media = Object.assign(t.storage.image.media, { [S]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: S, fileData: u }), a.dispatch(
1564
+ t.storage.image.media = Object.assign(t.storage.image.media, { [E]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: E, fileData: u }), a.dispatch(
1565
1565
  a.state.tr.replaceWith(v, v, g).setMeta(Ne, y)
1566
1566
  );
1567
1567
  },
@@ -1992,7 +1992,7 @@ Pe = function() {
1992
1992
  * @returns {void}
1993
1993
  */
1994
1994
  ct = function() {
1995
- this.activeEditor && (this.undoDepth = xt(this.activeEditor.state), this.redoDepth = St(this.activeEditor.state));
1995
+ this.activeEditor && (this.undoDepth = xt(this.activeEditor.state), this.redoDepth = Et(this.activeEditor.state));
1996
1996
  }, /**
1997
1997
  * Run a command that requires an argument
1998
1998
  * @private
@@ -2036,8 +2036,8 @@ const fo = (t, a) => {
2036
2036
  if (s) {
2037
2037
  let c = s;
2038
2038
  if (l) {
2039
- const b = e.state.doc.resolve(s).textOffset, v = e.state.doc.nodeAt(s), S = v?.text?.charAt(b);
2040
- c = v?.isText && S !== " " ? s - 1 : s;
2039
+ const b = e.state.doc.resolve(s).textOffset, v = e.state.doc.nodeAt(s), E = v?.text?.charAt(b);
2040
+ c = v?.isText && E !== " " ? s - 1 : s;
2041
2041
  }
2042
2042
  const d = e.state.tr.setSelection(
2043
2043
  Ye.create(e.state.doc, c)
@@ -2062,7 +2062,7 @@ const fo = (t, a) => {
2062
2062
  },
2063
2063
  emits: ["margin-change"],
2064
2064
  setup(t, { emit: a }) {
2065
- const o = a, n = t, e = f(null), i = f([]), r = f("#CCCCCC"), l = f("#2563EB66"), s = f(null), c = f(null), d = f(!1), u = f(null), b = Ke({ side: "left", x: 0 }), v = Ke({ side: "right", x: 0 }), y = f(!1), S = f(0);
2065
+ const o = a, n = t, e = f(null), i = f([]), r = f("#CCCCCC"), l = f("#2563EB66"), s = f(null), c = f(null), d = f(!1), u = f(null), b = Ke({ side: "left", x: 0 }), v = Ke({ side: "right", x: 0 }), y = f(!1), E = f(0);
2066
2066
  let g = 0;
2067
2067
  const F = () => {
2068
2068
  if (n.editor.options.mode !== "docx") return;
@@ -2101,13 +2101,13 @@ const fo = (t, a) => {
2101
2101
  }), N = (I) => {
2102
2102
  d.value = !0, ye();
2103
2103
  const M = I.currentTarget.id;
2104
- u.value = M === "left-margin-handle" ? b : v, S.value = u.value.x, g = I.clientX - u.value.x, y.value = !0;
2104
+ u.value = M === "left-margin-handle" ? b : v, E.value = u.value.x, g = I.clientX - u.value.x, y.value = !0;
2105
2105
  }, V = (I) => {
2106
2106
  if (!d.value) return;
2107
2107
  const M = I.clientX - g;
2108
2108
  u.value.x = M, u.value.side === "left" ? M <= 0 ? u.value.x = 0 : M >= v.x - Te && (u.value.x = v.x - Te) : M >= s.value.width * 96 ? u.value.x = s.value.width * 96 : M <= b.x + Te && (u.value.x = b.x + Te);
2109
2109
  }, te = () => {
2110
- if (d.value = !1, y.value = !1, Z(), u.value && u.value.x !== S.value) {
2110
+ if (d.value = !1, y.value = !1, Z(), u.value && u.value.x !== E.value) {
2111
2111
  const I = re();
2112
2112
  o("margin-change", {
2113
2113
  side: u.value.side,
@@ -2229,7 +2229,7 @@ const fo = (t, a) => {
2229
2229
  _.on("synced", T);
2230
2230
  }
2231
2231
  }, v = () => {
2232
- const p = Et();
2232
+ const p = St();
2233
2233
  return n.options.pagination ? p : p.filter((_) => _.name !== "pagination");
2234
2234
  }, y = async ({ content: p, media: _ = {}, mediaFiles: T = {}, fonts: N = {} } = {}) => {
2235
2235
  i.value = new ze({
@@ -2251,7 +2251,7 @@ const fo = (t, a) => {
2251
2251
  e.value = !0;
2252
2252
  }, 150);
2253
2253
  });
2254
- }, S = (p) => {
2254
+ }, E = (p) => {
2255
2255
  o("editor-keydown", { editor: i.value });
2256
2256
  }, g = (p) => {
2257
2257
  o("editor-click", { editor: i.value });
@@ -2283,7 +2283,7 @@ const fo = (t, a) => {
2283
2283
  class: "super-editor",
2284
2284
  ref_key: "editorWrapper",
2285
2285
  ref: r,
2286
- onKeydown: S,
2286
+ onKeydown: E,
2287
2287
  onClick: g,
2288
2288
  onMousedown: F
2289
2289
  }, [
@@ -2356,7 +2356,7 @@ const fo = (t, a) => {
2356
2356
  }, null, 32)
2357
2357
  ]));
2358
2358
  }
2359
- }, xo = ["innerHTML"], So = {
2359
+ }, xo = ["innerHTML"], Eo = {
2360
2360
  __name: "SuperInput",
2361
2361
  props: {
2362
2362
  modelValue: {
@@ -2381,8 +2381,8 @@ const fo = (t, a) => {
2381
2381
  emits: ["update:modelValue", "focus", "blur"],
2382
2382
  setup(t, { emit: a }) {
2383
2383
  const o = a, n = t, e = nt(), i = f(null), r = f(!1), l = ({ editor: v, transaction: y }) => {
2384
- const S = v.getHTML();
2385
- o("update:modelValue", S);
2384
+ const E = v.getHTML();
2385
+ o("update:modelValue", E);
2386
2386
  }, s = ({ editor: v, transaction: y }) => {
2387
2387
  r.value = !0, b(), o("focus", { editor: v, transaction: y });
2388
2388
  }, c = ({ editor: v, transaction: y }) => {
@@ -2421,7 +2421,7 @@ const fo = (t, a) => {
2421
2421
  }, null, 512)
2422
2422
  ], 2));
2423
2423
  }
2424
- }, Ho = /* @__PURE__ */ q(So, [["__scopeId", "data-v-4d5cff52"]]), Bo = {
2424
+ }, Ho = /* @__PURE__ */ q(Eo, [["__scopeId", "data-v-4d5cff52"]]), Bo = {
2425
2425
  Node: Mt,
2426
2426
  Attribute: Lt,
2427
2427
  Extension: It,
@@ -2447,7 +2447,7 @@ export {
2447
2447
  mo as getAllowedImageDimensions,
2448
2448
  Wo as getMarksFromSelection,
2449
2449
  Tt as getRichTextExtensions,
2450
- Et as getStarterExtensions,
2450
+ St as getStarterExtensions,
2451
2451
  Po as helpers,
2452
2452
  jo as trackChangesHelpers
2453
2453
  };
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-Dk5ck8s2.js";
3
- import "./chunks/editor-CgA3W09D.js";
2
+ import { T as p } from "./chunks/toolbar-CPZT2u-C.js";
3
+ import "./chunks/editor-Bp5_glaN.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-YK41JJFh.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;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.Xx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Fx;exports.getStarterExtensions=e.Bx;exports.helpers=e.Xs;exports.trackChangesHelpers=e.Yx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-BlvoIGyz.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;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.Xx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Fx;exports.getStarterExtensions=e.Bx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.Yx;
@@ -1,4 +1,4 @@
1
- import { x as r, $ as t, g as o, N as n, n as i, B as p, O as g, D as l, H as c, M as m, P as u, c as x, a as d, X as S, b as E, m as h, V as A, F as C, d as T, e as b, Y as k } from "./chunks/super-editor.es-DUU_CN2L.es.js";
1
+ import { x as r, $ as t, g as o, N as n, n as i, B as p, O as g, D as l, H as c, M as m, P as u, c as x, a as d, X as S, b as E, m as h, V as A, F as C, d as T, R as b, Y as k } from "./chunks/super-editor.es-Doc0izWg.es.js";
2
2
  import "./chunks/vue-DKS68Dra.es.js";
3
3
  export {
4
4
  r as AIWriter,