@harbour-enterprises/superdoc 0.12.10 → 0.12.11

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.
@@ -16820,7 +16820,7 @@ const ws = class X1 {
16820
16820
  return;
16821
16821
  }
16822
16822
  }
16823
- static updateDocumentVersion(e = this.convertedXml, n = "0.12.10") {
16823
+ static updateDocumentVersion(e = this.convertedXml, n = "0.12.11") {
16824
16824
  const r = "docProps/custom.xml";
16825
16825
  e[r] || (e[r] = Y1());
16826
16826
  const o = e["docProps/custom.xml"];
@@ -17144,7 +17144,7 @@ function yT(t) {
17144
17144
  function Y1() {
17145
17145
  return R4;
17146
17146
  }
17147
- function Z1(t = 2, e = "0.12.10") {
17147
+ function Z1(t = 2, e = "0.12.11") {
17148
17148
  return {
17149
17149
  type: "element",
17150
17150
  name: "property",
@@ -29468,15 +29468,15 @@ const Ux = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
29468
29468
  }, d8 = (t) => ({ rawHtml: t }), p8 = (t) => ({ displayLabel: t }), f8 = (t) => ({ imageSrc: t }), h8 = (t) => ({ displayLabel: t }), m8 = (t, e) => ({ displayLabel: x8(t, e.input_format) }), g8 = (t) => (t.startsWith("http") || (t = `http://${t}`), { linkUrl: t }), y8 = (t) => ({ displayLabel: {
29469
29469
  YES: "Yes",
29470
29470
  NO: "No"
29471
- }[t[0].toUpperCase()] }), w8 = ({ editor: t, tr: e, annotationValues: n }) => {
29472
- const { state: r } = t, { doc: o } = r, i = [];
29473
- return o.descendants((s, a) => {
29474
- s.type.name === "table" && i.push({ node: s, pos: a });
29475
- }), i.reverse().forEach(({ pos: s }) => {
29476
- const a = e.doc.nodeAt(s);
29477
- !a || a.type.name !== "table" || b8({ tableNode: { node: a, pos: s }, annotationValues: n, tr: e, editor: t });
29471
+ }[t[0].toUpperCase()] }), w8 = ({ state: t, tr: e, annotationValues: n }) => {
29472
+ const { doc: r } = t, o = [];
29473
+ return r.descendants((i, s) => {
29474
+ i.type.name === "table" && o.push({ node: i, pos: s });
29475
+ }), o.reverse().forEach(({ pos: i }) => {
29476
+ const s = e.doc.nodeAt(i);
29477
+ !s || s.type.name !== "table" || b8({ tableNode: { node: s, pos: i }, annotationValues: n, tr: e, state: t });
29478
29478
  }), e;
29479
- }, b8 = ({ tableNode: t, annotationValues: e, tr: n, editor: r }) => {
29479
+ }, b8 = ({ tableNode: t, annotationValues: e, tr: n, state: r }) => {
29480
29480
  let o = null, i = null;
29481
29481
  const {
29482
29482
  tableRow: s,
@@ -30189,7 +30189,7 @@ const O8 = class e3 extends w_ {
30189
30189
  * @returns {Object | void} Migration results
30190
30190
  */
30191
30191
  processCollaborationMigrations() {
30192
- if (console.debug("[checkVersionMigrations] Current editor version", "0.12.10"), !this.options.ydoc) return;
30192
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.12.11"), !this.options.ydoc) return;
30193
30193
  let e = this.options.ydoc.getMap("meta").get("version");
30194
30194
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
30195
30195
  const n = vw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -30264,7 +30264,7 @@ const O8 = class e3 extends w_ {
30264
30264
  annotate(e = [], n = []) {
30265
30265
  const { state: r, view: o, schema: i } = this;
30266
30266
  let s = r.tr;
30267
- s = La.processTables({ editor: this, tr: s, annotationValues: e }), s = La.annotateDocument({
30267
+ s = La.processTables({ state: this.state, tr: s, annotationValues: e }), s = La.annotateDocument({
30268
30268
  tr: s,
30269
30269
  schema: i,
30270
30270
  annotationValues: e,
@@ -30272,6 +30272,25 @@ const O8 = class e3 extends w_ {
30272
30272
  editor: this
30273
30273
  }), s.docChanged && o.dispatch(s.scrollIntoView());
30274
30274
  }
30275
+ /**
30276
+ * Preview annotations in the editor. It stores a copy of the original state.
30277
+ * This can be reverted via closePreview()
30278
+ *
30279
+ * @param {Object[]} annotationValues
30280
+ * @param {string[]} hiddenIds
30281
+ * @returns {void}
30282
+ */
30283
+ previewAnnotations(e = [], n = []) {
30284
+ this.originalState = this.view.state, this.annotate(e, n);
30285
+ }
30286
+ /**
30287
+ * If there is a preview active, this will revert the editor to the original state.
30288
+ *
30289
+ * @returns {void}
30290
+ */
30291
+ closePreview() {
30292
+ this.originalState && this.view.updateState(this.originalState);
30293
+ }
30275
30294
  };
30276
30295
  mi = /* @__PURE__ */ new WeakMap(), Jx = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakSet(), /**
30277
30296
  * Initialize the container element for the editor
@@ -1,6 +1,6 @@
1
1
  import { ref as x, onMounted as G, onUnmounted as U, computed as D, createElementBlock as O, openBlock as R, withModifiers as H, createElementVNode as S, withDirectives as Y, unref as N, vModelText as J, createCommentVNode as Q, nextTick as K } from "vue";
2
- import { T as Z } from "./chunks/converter-lyVGCU64.js";
3
- import { _ as ee } from "./chunks/editor-DugKTpYa.js";
2
+ import { T as Z } from "./chunks/converter-BaK7tyEH.js";
3
+ import { _ as ee } from "./chunks/editor-D-OAU3KR.js";
4
4
  const te = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", z = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
5
5
  async function V(r, o = {}) {
6
6
  const e = o.apiKey, a = o.endpoint || te;
@@ -16840,7 +16840,7 @@ const pt = class pt {
16840
16840
  return;
16841
16841
  }
16842
16842
  }
16843
- static updateDocumentVersion(e = this.convertedXml, t = "0.12.10") {
16843
+ static updateDocumentVersion(e = this.convertedXml, t = "0.12.11") {
16844
16844
  const n = "docProps/custom.xml";
16845
16845
  e[n] || (e[n] = Nu());
16846
16846
  const i = e["docProps/custom.xml"];
@@ -17164,7 +17164,7 @@ function Ip(r) {
17164
17164
  function Nu() {
17165
17165
  return Kf;
17166
17166
  }
17167
- function Iu(r = 2, e = "0.12.10") {
17167
+ function Iu(r = 2, e = "0.12.11") {
17168
17168
  return {
17169
17169
  type: "element",
17170
17170
  name: "property",
@@ -1,4 +1,4 @@
1
- import { x as Tt, a1 as wt, B as ut, a2 as Bt, a3 as Rt, a4 as Dt } from "./converter-lyVGCU64.js";
1
+ import { x as Tt, a1 as wt, B as ut, a2 as Bt, a3 as Rt, a4 as Dt } from "./converter-BaK7tyEH.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 = (e, t, n) => Xf(e, typeof t != "symbol" ? t + "" : t, n), si = (e, t, n)
7
7
  var Qe = (e, t, n) => (si(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ma("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ai = (e, t, n, r) => (si(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), O = (e, t, n) => (si(e, t, "access private method"), n);
8
8
  import * as D from "yjs";
9
9
  import { UndoManager as Jf, Item as Yf, ContentType as Gf, Text as Zf, XmlElement as Qf, encodeStateAsUpdate as ep } from "yjs";
10
- import { P as K, a as X, M as mr, c as Y, i as tp, S as kc, T as j, b as wt, l as Pr, A as Ir, d as Wt, j as xc, N as z, r as Sc, e as ee, F as E, R as ln, f as W, o as gr, g as ga, D as Rt, h as Ht, k as Bi, m as Mc, n as np, p as rp, q as xn, s as To, t as op, u as Wn, v as ip, w as Cc, x as oe, B as sp, y as ap, z as de, C as Ve, E as Rr, G as Se, H as ho, I as Ac, J as Sn, K as li, L as ci, O as di, Q as mo, U as ya, V as Lt, W as qo, X as lp, Y as ba, Z as wa, _ as cp, $ as dp, a0 as up } from "./converter-lyVGCU64.js";
10
+ import { P as K, a as X, M as mr, c as Y, i as tp, S as kc, T as j, b as wt, l as Pr, A as Ir, d as Wt, j as xc, N as z, r as Sc, e as ee, F as E, R as ln, f as W, o as gr, g as ga, D as Rt, h as Ht, k as Bi, m as Mc, n as np, p as rp, q as xn, s as To, t as op, u as Wn, v as ip, w as Cc, x as oe, B as sp, y as ap, z as de, C as Ve, E as Rr, G as Se, H as ho, I as Ac, J as Sn, K as li, L as ci, O as di, Q as mo, U as ya, V as Lt, W as qo, X as lp, Y as ba, Z as wa, _ as cp, $ as dp, a0 as up } from "./converter-BaK7tyEH.js";
11
11
  import { ref as va, computed as fp, createElementBlock as Jt, openBlock as Yt, withModifiers as ui, Fragment as pp, renderList as hp, normalizeClass as mp, createCommentVNode as ka, toDisplayString as fi, createElementVNode as gp, createApp as yp } from "vue";
12
- import { D as xa } from "./docx-zipper-5A2iHpqR.js";
12
+ import { D as xa } from "./docx-zipper-CSpGjsCF.js";
13
13
  function Ko(e) {
14
14
  const { from: t, to: n, empty: r } = e.selection, o = [];
15
15
  return r ? (e.storedMarks && o.push(...e.storedMarks), o.push(...e.selection.$head.marks())) : e.doc.nodesBetween(t, n, (i) => {
@@ -9913,15 +9913,15 @@ const iu = ({ state: e, tr: t, step: n, newTr: r, map: o, doc: i, user: s, date:
9913
9913
  }, r0 = (e) => ({ rawHtml: e }), o0 = (e) => ({ displayLabel: e }), i0 = (e) => ({ imageSrc: e }), s0 = (e) => ({ displayLabel: e }), a0 = (e, t) => ({ displayLabel: p0(e, t.input_format) }), l0 = (e) => (e.startsWith("http") || (e = `http://${e}`), { linkUrl: e }), c0 = (e) => ({ displayLabel: {
9914
9914
  YES: "Yes",
9915
9915
  NO: "No"
9916
- }[e[0].toUpperCase()] }), d0 = ({ editor: e, tr: t, annotationValues: n }) => {
9917
- const { state: r } = e, { doc: o } = r, i = [];
9918
- return o.descendants((s, a) => {
9919
- s.type.name === "table" && i.push({ node: s, pos: a });
9920
- }), i.reverse().forEach(({ pos: s }) => {
9921
- const a = t.doc.nodeAt(s);
9922
- !a || a.type.name !== "table" || u0({ tableNode: { node: a, pos: s }, annotationValues: n, tr: t, editor: e });
9916
+ }[e[0].toUpperCase()] }), d0 = ({ state: e, tr: t, annotationValues: n }) => {
9917
+ const { doc: r } = e, o = [];
9918
+ return r.descendants((i, s) => {
9919
+ i.type.name === "table" && o.push({ node: i, pos: s });
9920
+ }), o.reverse().forEach(({ pos: i }) => {
9921
+ const s = t.doc.nodeAt(i);
9922
+ !s || s.type.name !== "table" || u0({ tableNode: { node: s, pos: i }, annotationValues: n, tr: t, state: e });
9923
9923
  }), t;
9924
- }, u0 = ({ tableNode: e, annotationValues: t, tr: n, editor: r }) => {
9924
+ }, u0 = ({ tableNode: e, annotationValues: t, tr: n, state: r }) => {
9925
9925
  let o = null, i = null;
9926
9926
  const {
9927
9927
  tableRow: s,
@@ -10673,7 +10673,7 @@ const pa = class pa extends fb {
10673
10673
  * @returns {Object | void} Migration results
10674
10674
  */
10675
10675
  processCollaborationMigrations() {
10676
- if (console.debug("[checkVersionMigrations] Current editor version", "0.12.10"), !this.options.ydoc) return;
10676
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.12.11"), !this.options.ydoc) return;
10677
10677
  let r = this.options.ydoc.getMap("meta").get("version");
10678
10678
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10679
10679
  const o = wl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10748,7 +10748,7 @@ const pa = class pa extends fb {
10748
10748
  annotate(n = [], r = []) {
10749
10749
  const { state: o, view: i, schema: s } = this;
10750
10750
  let a = o.tr;
10751
- a = to.processTables({ editor: this, tr: a, annotationValues: n }), a = to.annotateDocument({
10751
+ a = to.processTables({ state: this.state, tr: a, annotationValues: n }), a = to.annotateDocument({
10752
10752
  tr: a,
10753
10753
  schema: s,
10754
10754
  annotationValues: n,
@@ -10756,6 +10756,25 @@ const pa = class pa extends fb {
10756
10756
  editor: this
10757
10757
  }), a.docChanged && i.dispatch(a.scrollIntoView());
10758
10758
  }
10759
+ /**
10760
+ * Preview annotations in the editor. It stores a copy of the original state.
10761
+ * This can be reverted via closePreview()
10762
+ *
10763
+ * @param {Object[]} annotationValues
10764
+ * @param {string[]} hiddenIds
10765
+ * @returns {void}
10766
+ */
10767
+ previewAnnotations(n = [], r = []) {
10768
+ this.originalState = this.view.state, this.annotate(n, r);
10769
+ }
10770
+ /**
10771
+ * If there is a preview active, this will revert the editor to the original state.
10772
+ *
10773
+ * @returns {void}
10774
+ */
10775
+ closePreview() {
10776
+ this.originalState && this.view.updateState(this.originalState);
10777
+ }
10759
10778
  };
10760
10779
  rn = new WeakMap(), Es = new WeakMap(), M = new WeakSet(), /**
10761
10780
  * Initialize the container element for the editor
@@ -1,6 +1,6 @@
1
1
  import { computed as I, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as P, 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 E, 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-lyVGCU64.js";
3
- import { _ as mt, g as kt } from "./editor-DugKTpYa.js";
2
+ import { x as rn } from "./converter-BaK7tyEH.js";
3
+ import { _ as mt, g as kt } from "./editor-D-OAU3KR.js";
4
4
  const O0 = (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-lyVGCU64.js";
1
+ import { O as o } from "./chunks/converter-BaK7tyEH.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -460,6 +460,22 @@ export class Editor extends EventEmitter {
460
460
  * @returns {void}
461
461
  */
462
462
  annotate(annotationValues?: FieldValue[], hiddenIds?: string[]): void;
463
+ /**
464
+ * Preview annotations in the editor. It stores a copy of the original state.
465
+ * This can be reverted via closePreview()
466
+ *
467
+ * @param {Object[]} annotationValues
468
+ * @param {string[]} hiddenIds
469
+ * @returns {void}
470
+ */
471
+ previewAnnotations(annotationValues?: any[], hiddenIds?: string[]): void;
472
+ originalState: any;
473
+ /**
474
+ * If there is a preview active, this will revert the editor to the original state.
475
+ *
476
+ * @returns {void}
477
+ */
478
+ closePreview(): void;
463
479
  #private;
464
480
  }
465
481
  export type FieldValue = {
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA6BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH;;;;GAIG;AACH;IAoqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,gDAHW,MAAM,OAMhB;IAupBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IAvwCD;;;;OAIG;IACH,qBAHW,aAAa,EAsBvB;IA5HD;;;OAGG;IACH,sBAAiB;IAEjB;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH,YAAO;IAEP;;;OAGG;IACH,UAAK;IAEL;;;OAGG;IACH,WAFU,OAAO,CAEC;IAQlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8DE;IAkKF;;;;OAIG;IACH,0BAFa,IAAI,CAIhB;IADC,aAAsB;IAsB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,CAiBhB;IAED;;;;;;;OAOG;IACH,sCAJW,KAAQ,cACR,MAAM,EAAE,GACN,IAAI,CAKhB;IAFC,mBAAoC;IAItC;;;;OAIG;IACH,gBAFa,IAAI,CAKhB;;CAEF;;;;;cAxmDa,MAAM;;;;iBACN,MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;cAIZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAsBP,OAAO;;;;WACP,MAAM;;6BAnGS,mBAAmB"}
@@ -1,5 +1,5 @@
1
1
  export function getFieldAttrs(field: any, value: any, input: any): any;
2
- export function processTables({ editor, tr, annotationValues }: {
2
+ export function processTables({ state, tr, annotationValues }: {
3
3
  editor: any;
4
4
  annotationValues: any[];
5
5
  }): any;
@@ -1 +1 @@
1
- {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,gEAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAmBA;AAuIM;;;;;;QAsFN;;;;;;;AApID;;;;;;;;GAQG;AACH,yFALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAqChB"}
1
+ {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AAuIM;;;;;;QAsFN;;;;;;;AApID;;;;;;;;GAQG;AACH,yFALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAqChB"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-lyVGCU64.js";
2
- import { D as a } from "./chunks/docx-zipper-5A2iHpqR.js";
1
+ import "./chunks/converter-BaK7tyEH.js";
2
+ import { D as a } from "./chunks/docx-zipper-CSpGjsCF.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-DugKTpYa.js";
2
- import "./chunks/converter-lyVGCU64.js";
3
- import "./chunks/docx-zipper-5A2iHpqR.js";
1
+ import { E as m } from "./chunks/editor-D-OAU3KR.js";
2
+ import "./chunks/converter-BaK7tyEH.js";
3
+ import "./chunks/docx-zipper-CSpGjsCF.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-5A2iHpqR.js";
1
+ import { J as p } from "./chunks/docx-zipper-CSpGjsCF.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 kt = (e, s, t) => s in e ? Ct(e, s, { enumerable: !0, configurable: !0, writ
6
6
  var ze = (e, s, t) => kt(e, typeof s != "symbol" ? s + "" : s, t), Ke = (e, s, t) => s.has(e) || Ge("Cannot " + t);
7
7
  var Te = (e, s, t) => (Ke(e, s, "read from private field"), t ? t.call(e) : s.get(e)), Re = (e, s, t) => s.has(e) ? Ge("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t);
8
8
  var N = (e, s, t) => (Ke(e, s, "access private method"), t);
9
- import { _ as q, a as Je, b as _t, I as Oe, f as xt, c as Xe, d as St, i as Et, u as At, r as Tt, E as Ne, e as Ft, P as It, h as Lt, M as Mt, j as Dt, A as Ht, N as Bt } from "./chunks/editor-DugKTpYa.js";
10
- import { C as Po, T as jo, l as Uo, n as qo, k as Go, m as Ko } from "./chunks/editor-DugKTpYa.js";
11
- import { a2 as $t, E as zt, a5 as Rt, T as Qe, a as Ot } from "./chunks/converter-lyVGCU64.js";
12
- import { O as Zo } from "./chunks/converter-lyVGCU64.js";
9
+ import { _ as q, a as Je, b as _t, I as Oe, f as xt, c as Xe, d as St, i as Et, u as At, r as Tt, E as Ne, e as Ft, P as It, h as Lt, M as Mt, j as Dt, A as Ht, N as Bt } from "./chunks/editor-D-OAU3KR.js";
10
+ import { C as Po, T as jo, l as Uo, n as qo, k as Go, m as Ko } from "./chunks/editor-D-OAU3KR.js";
11
+ import { a2 as $t, E as zt, a5 as Rt, T as Qe, a as Ot } from "./chunks/converter-BaK7tyEH.js";
12
+ import { O as Zo } from "./chunks/converter-BaK7tyEH.js";
13
13
  import { ref as h, createElementBlock as k, openBlock as C, createElementVNode as _, unref as M, getCurrentInstance as Nt, computed as j, watch as Wt, onMounted as Ce, createCommentVNode as ee, withDirectives as et, withKeys as tt, normalizeClass as te, withModifiers as he, vModelText as nt, createTextVNode as ot, toDisplayString as ie, Fragment as U, renderList as ne, normalizeStyle as Q, createVNode as P, h as $, createApp as Vt, reactive as Ze, onUnmounted as Pt, shallowRef as it, onBeforeUnmount as st, createBlock as jt } from "vue";
14
- import { t as Z, s as Ut, T as qt, N as J } from "./chunks/toolbar-Dbj1GrW9.js";
14
+ import { t as Z, s as Ut, T as qt, N as J } from "./chunks/toolbar-DlRHgwNd.js";
15
15
  import Gt from "./ai-writer.es.js";
16
- import { D as Jo } from "./chunks/docx-zipper-5A2iHpqR.js";
16
+ import { D as Jo } from "./chunks/docx-zipper-CSpGjsCF.js";
17
17
  import { createZip as ei } from "./file-zipper.es.js";
18
18
  var at = { exports: {} };
19
19
  (function(e) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-Dbj1GrW9.js";
3
- import "./chunks/editor-DugKTpYa.js";
2
+ import { T as p } from "./chunks/toolbar-DlRHgwNd.js";
3
+ import "./chunks/editor-D-OAU3KR.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-Bf6kv8E7.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.Ro;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ls;exports.Extensions=e.No;exports.SuperConverter=e.Ot;exports.SuperEditor=e.zo;exports.SuperInput=e.Oo;exports.SuperToolbar=e.$o;exports.Toolbar=e.R0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.wS;exports.getActiveFormatting=e.bp;exports.getAllowedImageDimensions=e.vo;exports.getMarksFromSelection=e.Ko;exports.getRichTextExtensions=e.aS;exports.getStarterExtensions=e.lS;exports.helpers=e.zs;exports.trackChangesHelpers=e.kS;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-CmqH_wli.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.Ro;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ls;exports.Extensions=e.No;exports.SuperConverter=e.Ot;exports.SuperEditor=e.zo;exports.SuperInput=e.Oo;exports.SuperToolbar=e.$o;exports.Toolbar=e.R0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.wS;exports.getActiveFormatting=e.bp;exports.getAllowedImageDimensions=e.vo;exports.getMarksFromSelection=e.Ko;exports.getRichTextExtensions=e.aS;exports.getStarterExtensions=e.lS;exports.helpers=e.zs;exports.trackChangesHelpers=e.kS;
@@ -1,4 +1,4 @@
1
- import { x as r, R as t, g as o, P as i, l as n, N as p, O as l, z as g, a as c, $ as m, b as u, c as x, d, w as S, e as h, v as E, K as k, f as A, h as C, i as T, k as b } from "./chunks/super-editor.es-B4hMBqlj.es.js";
1
+ import { x as r, R as t, g as o, P as i, l as n, N as p, O as l, z as g, a as c, $ as m, b as u, c as x, d, w as S, e as h, v as E, K as k, f as A, h as C, i as T, k as b } from "./chunks/super-editor.es-DlmgQ4J3.es.js";
2
2
  import "./chunks/vue-DKS68Dra.es.js";
3
3
  export {
4
4
  r as AIWriter,