@harbour-enterprises/superdoc 0.10.52 → 0.10.54

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.
@@ -16530,7 +16530,7 @@ const hs = class Ov {
16530
16530
  return;
16531
16531
  }
16532
16532
  }
16533
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.52") {
16533
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.54") {
16534
16534
  const r = "docProps/custom.xml";
16535
16535
  e[r] || (e[r] = Mv());
16536
16536
  const o = e["docProps/custom.xml"];
@@ -16791,7 +16791,7 @@ function L$(t) {
16791
16791
  function Mv() {
16792
16792
  return s4;
16793
16793
  }
16794
- function Dv(t = 2, e = "0.10.52") {
16794
+ function Dv(t = 2, e = "0.10.54") {
16795
16795
  return {
16796
16796
  type: "element",
16797
16797
  name: "property",
@@ -29263,7 +29263,7 @@ const b8 = class Tx extends wM {
29263
29263
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29264
29264
  */
29265
29265
  processCollaborationMigrations() {
29266
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.52"), !this.options.ydoc) return;
29266
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.54"), !this.options.ydoc) return;
29267
29267
  let e = this.options.ydoc.getMap("meta").get("version");
29268
29268
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29269
29269
  const n = sw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -45102,7 +45102,8 @@ async function dS(t, e = {}) {
45102
45102
  const i = await fetch(r, {
45103
45103
  method: "POST",
45104
45104
  headers: o,
45105
- body: JSON.stringify(t)
45105
+ body: JSON.stringify(t),
45106
+ credentials: "include"
45106
45107
  });
45107
45108
  if (!i.ok) {
45108
45109
  const s = await i.text();
@@ -46742,7 +46743,7 @@ const Xe = (t) => {
46742
46743
  G
46743
46744
  // search,
46744
46745
  ];
46745
- if (t.config.aiApiKey || (le = le.filter((pe) => pe.name.value !== "ai")), n <= ne.md && (le = le.filter((pe) => pe.type !== "separator")), t.config.pagination || (le = le.filter((pe) => pe.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
46746
+ if (t.config?.superdoc?.config?.modules?.ai || (le = le.filter((pe) => pe.name.value !== "ai")), n <= ne.md && (le = le.filter((pe) => pe.type !== "separator")), t.config.pagination || (le = le.filter((pe) => pe.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
46746
46747
  const pe = le.findIndex((Ve) => Ve.name.value === "linkedStyles");
46747
46748
  le.splice(pe - 1, 2);
46748
46749
  const we = ["ruler", "zoom", "undo", "redo"];
package/dist/style.css CHANGED
@@ -568,48 +568,48 @@ img[data-v-7dd69850] {
568
568
  box-shadow:0 0 5px hsla( 0,0%,0%,.05);
569
569
  }
570
570
 
571
- .superdoc[data-v-06753e82] {
571
+ .superdoc[data-v-c0c771c2] {
572
572
  display: flex;
573
573
  }
574
- .right-sidebar[data-v-06753e82] {
574
+ .right-sidebar[data-v-c0c771c2] {
575
575
  min-width: 320px;
576
576
  }
577
- .floating-comments[data-v-06753e82] {
577
+ .floating-comments[data-v-c0c771c2] {
578
578
  min-width: 300px;
579
579
  width: 300px;
580
580
  }
581
- .superdoc--with-sidebar[data-v-06753e82] { /* */
581
+ .superdoc--with-sidebar[data-v-c0c771c2] { /* */
582
582
  }
583
- .superdoc__layers[data-v-06753e82] {
583
+ .superdoc__layers[data-v-c0c771c2] {
584
584
  height: 100%;
585
585
  position: relative;
586
586
  box-sizing: border-box;
587
587
  }
588
- .superdoc__document[data-v-06753e82] {
588
+ .superdoc__document[data-v-c0c771c2] {
589
589
  width: 100%;
590
590
  position: relative;
591
591
  }
592
- .superdoc__sub-document[data-v-06753e82] {
592
+ .superdoc__sub-document[data-v-c0c771c2] {
593
593
  width: 100%;
594
594
  position: relative;
595
595
  }
596
- .superdoc__selection-layer[data-v-06753e82] {
596
+ .superdoc__selection-layer[data-v-c0c771c2] {
597
597
  position: absolute;
598
598
  min-width: 100%;
599
599
  min-height: 100%;
600
600
  z-index: 10;
601
601
  pointer-events: none;
602
602
  }
603
- .superdoc__temp-selection[data-v-06753e82] {
603
+ .superdoc__temp-selection[data-v-c0c771c2] {
604
604
  position: absolute;
605
605
  }
606
- .superdoc__comments-layer[data-v-06753e82] {
606
+ .superdoc__comments-layer[data-v-c0c771c2] {
607
607
  /* position: absolute; */
608
608
  top: 0;
609
609
  height: 100%;
610
610
  position: relative;
611
611
  }
612
- .superdoc__right-sidebar[data-v-06753e82] {
612
+ .superdoc__right-sidebar[data-v-c0c771c2] {
613
613
  width: 320px;
614
614
  min-width: 320px;
615
615
  padding: 0 10px;
@@ -619,14 +619,14 @@ img[data-v-7dd69850] {
619
619
  }
620
620
 
621
621
  /* Tools styles */
622
- .tools[data-v-06753e82] {
622
+ .tools[data-v-c0c771c2] {
623
623
  position: absolute;
624
624
  z-index: 3;
625
625
  display: flex;
626
626
  flex-direction: column;
627
627
  gap: 6px;
628
628
  }
629
- .tools .tool-icon[data-v-06753e82] {
629
+ .tools .tool-icon[data-v-c0c771c2] {
630
630
  font-size: 20px;
631
631
  border-radius: 12px;
632
632
  border: none;
@@ -634,7 +634,7 @@ img[data-v-7dd69850] {
634
634
  background-color: #dbdbdb;
635
635
  cursor: pointer;
636
636
  }
637
- .tools-item[data-v-06753e82] {
637
+ .tools-item[data-v-c0c771c2] {
638
638
  display: flex;
639
639
  align-items: center;
640
640
  justify-content: center;
@@ -644,10 +644,10 @@ img[data-v-7dd69850] {
644
644
  border-radius: 12px;
645
645
  cursor: pointer;
646
646
  }
647
- .tools-item i[data-v-06753e82] {
647
+ .tools-item i[data-v-c0c771c2] {
648
648
  cursor: pointer;
649
649
  }
650
- .superdoc__tools-icon[data-v-06753e82] {
650
+ .superdoc__tools-icon[data-v-c0c771c2] {
651
651
  width: 20px;
652
652
  height: 20px;
653
653
  flex-shrink: 0;
@@ -661,15 +661,15 @@ img[data-v-7dd69850] {
661
661
 
662
662
  /* 834px is iPad screen size in portrait orientation */
663
663
  @media (max-width: 834px) {
664
- .superdoc .superdoc__layers[data-v-06753e82] {
664
+ .superdoc .superdoc__layers[data-v-c0c771c2] {
665
665
  margin: 0;
666
666
  border: 0 !important;
667
667
  box-shadow: none;
668
668
  }
669
- .superdoc__sub-document[data-v-06753e82] {
669
+ .superdoc__sub-document[data-v-c0c771c2] {
670
670
  max-width: 100%;
671
671
  }
672
- .superdoc__right-sidebar[data-v-06753e82] {
672
+ .superdoc__right-sidebar[data-v-c0c771c2] {
673
673
  padding: 10px;
674
674
  width: 55px;
675
675
  position: relative;
@@ -677,7 +677,7 @@ img[data-v-7dd69850] {
677
677
  }
678
678
 
679
679
  /* AI Writer styles */
680
- .ai-writer-container[data-v-06753e82] {
680
+ .ai-writer-container[data-v-c0c771c2] {
681
681
  position: fixed;
682
682
  z-index: 1000;
683
683
  background: white;
@@ -695,13 +695,13 @@ img[data-v-7dd69850] {
695
695
  } */
696
696
 
697
697
  /* Tools styles */
698
- .tools[data-v-06753e82] {
698
+ .tools[data-v-c0c771c2] {
699
699
  position: absolute;
700
700
  z-index: 3;
701
701
  display: flex;
702
702
  gap: 6px;
703
703
  }
704
- .tools .tool-icon[data-v-06753e82] {
704
+ .tools .tool-icon[data-v-c0c771c2] {
705
705
  font-size: 20px;
706
706
  border-radius: 12px;
707
707
  border: none;
@@ -709,7 +709,7 @@ img[data-v-7dd69850] {
709
709
  background-color: #dbdbdb;
710
710
  cursor: pointer;
711
711
  }
712
- .tools-item[data-v-06753e82] {
712
+ .tools-item[data-v-c0c771c2] {
713
713
  display: flex;
714
714
  align-items: center;
715
715
  justify-content: center;
@@ -720,18 +720,18 @@ img[data-v-7dd69850] {
720
720
  border-radius: 12px;
721
721
  cursor: pointer;
722
722
  }
723
- .tools-item i[data-v-06753e82] {
723
+ .tools-item i[data-v-c0c771c2] {
724
724
  cursor: pointer;
725
725
  }
726
- .superdoc__tools-icon[data-v-06753e82] {
726
+ .superdoc__tools-icon[data-v-c0c771c2] {
727
727
  width: 20px;
728
728
  height: 20px;
729
729
  flex-shrink: 0;
730
730
  }
731
- .ai-tool > svg[data-v-06753e82] {
731
+ .ai-tool > svg[data-v-c0c771c2] {
732
732
  fill: transparent;
733
733
  }
734
- .ai-tool[data-v-06753e82]::before {
734
+ .ai-tool[data-v-c0c771c2]::before {
735
735
  content: "";
736
736
  position: absolute;
737
737
  width: 20px;
@@ -750,7 +750,7 @@ img[data-v-7dd69850] {
750
750
  filter: brightness(1.2);
751
751
  transition: filter 0.2s ease;
752
752
  }
753
- .ai-tool[data-v-06753e82]:hover::before {
753
+ .ai-tool[data-v-c0c771c2]:hover::before {
754
754
  filter: brightness(1.3);
755
755
  }
756
756
  /* Tools styles - end */
@@ -1,5 +1,5 @@
1
1
  import { ref as l, onMounted as R, onUnmounted as K, computed as I, createElementBlock as f, openBlock as g, withModifiers as S, createElementVNode as m, withDirectives as V, unref as w, vModelText as W, createCommentVNode as j, nextTick as B } from "vue";
2
- import { _ as G } from "./chunks/editor-B3Ut75Qp.js";
2
+ import { _ as G } from "./chunks/editor-2Oc3JzUc.js";
3
3
  const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", C = "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: ";
4
4
  async function E(a, e = {}) {
5
5
  const n = e.apiKey, r = e.endpoint || X;
@@ -11,7 +11,8 @@ async function E(a, e = {}) {
11
11
  const o = await fetch(r, {
12
12
  method: "POST",
13
13
  headers: s,
14
- body: JSON.stringify(a)
14
+ body: JSON.stringify(a),
15
+ credentials: "include"
15
16
  });
16
17
  if (!o.ok) {
17
18
  const c = await o.text();
@@ -16550,7 +16550,7 @@ const mt = class mt {
16550
16550
  return;
16551
16551
  }
16552
16552
  }
16553
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.52") {
16553
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.54") {
16554
16554
  const n = "docProps/custom.xml";
16555
16555
  e[n] || (e[n] = Fu());
16556
16556
  const i = e["docProps/custom.xml"];
@@ -16811,7 +16811,7 @@ function Ep(r) {
16811
16811
  function Fu() {
16812
16812
  return Gf;
16813
16813
  }
16814
- function Bu(r = 2, e = "0.10.52") {
16814
+ function Bu(r = 2, e = "0.10.54") {
16815
16815
  return {
16816
16816
  type: "element",
16817
16817
  name: "property",
@@ -1,4 +1,4 @@
1
- import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-WM8wcLCV.js";
1
+ import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-DU79T9R2.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 I = (e, t, n) => vf(e, typeof t != "symbol" ? t + "" : t, n), Uo = (e, t, n)
7
7
  var Ge = (e, t, n) => (Uo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ta("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), qo = (e, t, n, r) => (Uo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), N = (e, t, n) => (Uo(e, t, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as kf, Item as Cf, ContentType as Mf, Text as xf, XmlElement as Sf } from "yjs";
10
- import { P as Y, a as G, M as dr, c as X, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as Af, f as tc, A as Or, p as ie, B as Of, i as Tf, g as nc, h as Df, j as wt, l as Tr, k as Ht, m as rc, r as oc, R as an, o as ur, n as na, q as $t, s as ki, t as ic, u as Nf, v as Ef, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Pf, G as Me, H as ro, I as sc, J as Mn, K as Ko, L as Xo, O as Jo, Q as oo, U as Rt, V as Po, W as If, X as ra, Y as oa, Z as Rf, _ as Lf, $ as Ff } from "./converter-WM8wcLCV.js";
10
+ import { P as Y, a as G, M as dr, c as X, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as Af, f as tc, A as Or, p as ie, B as Of, i as Tf, g as nc, h as Df, j as wt, l as Tr, k as Ht, m as rc, r as oc, R as an, o as ur, n as na, q as $t, s as ki, t as ic, u as Nf, v as Ef, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Pf, G as Me, H as ro, I as sc, J as Mn, K as Ko, L as Xo, O as Jo, Q as oo, U as Rt, V as Po, W as If, X as ra, Y as oa, Z as Rf, _ as Lf, $ as Ff } from "./converter-DU79T9R2.js";
11
11
  import { ref as ia, computed as Bf, createElementBlock as Kt, openBlock as Xt, withModifiers as Yo, Fragment as zf, renderList as _f, normalizeClass as $f, createCommentVNode as sa, toDisplayString as Go, createElementVNode as Vf, createApp as Hf } from "vue";
12
- import { D as aa } from "./docx-zipper-CrGV_M63.js";
12
+ import { D as aa } from "./docx-zipper-2ySrztBZ.js";
13
13
  function Io(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) => {
@@ -10048,7 +10048,7 @@ const Qs = class Qs extends bg {
10048
10048
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10049
10049
  */
10050
10050
  processCollaborationMigrations() {
10051
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.52"), !this.options.ydoc) return;
10051
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.54"), !this.options.ydoc) return;
10052
10052
  let r = this.options.ydoc.getMap("meta").get("version");
10053
10053
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10054
10054
  const o = ol(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as se, openBlock as q, createElementVNode as pn, createCommentVNode as pe, normalizeClass as Jt, normalizeStyle as Et, ref as R, unref as W, createBlock as Ge, toDisplayString as ni, withDirectives as dt, withKeys as Nr, withModifiers as Hr, vModelText as jr, getCurrentInstance as It, createVNode as At, readonly as Qt, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Ks, onBeforeMount as dr, inject as te, onActivated as Vs, onDeactivated as ri, createTextVNode as Mt, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as A, Teleport as Us, toRef as ie, nextTick as Gs, renderSlot as Xs, isVNode as qs, shallowRef as Ys, watchEffect as ft, mergeProps as pt, Transition as en, vShow as Zs, cloneVNode as Js, Text as Qs, renderList as el, withCtx as Bn } from "vue";
2
- import { p as tn } from "./converter-WM8wcLCV.js";
3
- import { _ as vt, g as Pt } from "./editor-B3Ut75Qp.js";
2
+ import { p as tn } from "./converter-DU79T9R2.js";
3
+ import { _ as vt, g as Pt } from "./editor-2Oc3JzUc.js";
4
4
  const B0 = (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":"ai-helpers.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/ai-helpers.js"],"names":[],"mappings":"AAuJA;;;;;;;;;;GAUG;AACH,uCATW,MAAM,WAEd;IAAwB,OAAO,EAAvB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,mCACU,OAAO,CAAC,MAAM,CAAC,CA6B3B;AAED;;;;;;;;;GASG;AACH,8BARW,MAAM,YAEd;IAAwB,OAAO,EAAvB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,GAAU,OAAO,CAAC,MAAM,CAAC,CAsB3B;AAED;;;;;;;;;;GAUG;AACH,uCATW,MAAM,UACN,MAAM,WAEd;IAAwB,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,mCACU,OAAO,CAAC,MAAM,CAAC,CA4B3B;AAED;;;;;;;;;GASG;AACH,8BARW,MAAM,WACN,MAAM,YAEd;IAAwB,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,GAAU,OAAO,CAAC,MAAM,CAAC,CA0B3B"}
1
+ {"version":3,"file":"ai-helpers.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/ai-helpers.js"],"names":[],"mappings":"AAwJA;;;;;;;;;;GAUG;AACH,uCATW,MAAM,WAEd;IAAwB,OAAO,EAAvB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,mCACU,OAAO,CAAC,MAAM,CAAC,CA6B3B;AAED;;;;;;;;;GASG;AACH,8BARW,MAAM,YAEd;IAAwB,OAAO,EAAvB,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,GAAU,OAAO,CAAC,MAAM,CAAC,CAsB3B;AAED;;;;;;;;;;GAUG;AACH,uCATW,MAAM,UACN,MAAM,WAEd;IAAwB,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,mCACU,OAAO,CAAC,MAAM,CAAC,CA4B3B;AAED;;;;;;;;;GASG;AACH,8BARW,MAAM,WACN,MAAM,YAEd;IAAwB,WAAW,EAA3B,MAAM;IACU,GAAG,EAAnB,MAAM;IACU,MAAM;CAC9B,GAAU,OAAO,CAAC,MAAM,CAAC,CA0B3B"}
@@ -1,4 +1,4 @@
1
- import { O as o } from "./chunks/converter-WM8wcLCV.js";
1
+ import { O as o } from "./chunks/converter-DU79T9R2.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-WM8wcLCV.js";
2
- import { D as a } from "./chunks/docx-zipper-CrGV_M63.js";
1
+ import "./chunks/converter-DU79T9R2.js";
2
+ import { D as a } from "./chunks/docx-zipper-2ySrztBZ.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-B3Ut75Qp.js";
2
- import "./chunks/converter-WM8wcLCV.js";
3
- import "./chunks/docx-zipper-CrGV_M63.js";
1
+ import { E as m } from "./chunks/editor-2Oc3JzUc.js";
2
+ import "./chunks/converter-DU79T9R2.js";
3
+ import "./chunks/docx-zipper-2ySrztBZ.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-CrGV_M63.js";
1
+ import { J as p } from "./chunks/docx-zipper-2ySrztBZ.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 mt = (t, l, o) => l in t ? ut(t, l, { enumerable: !0, configurable: !0, writ
6
6
  var He = (t, l, o) => mt(t, typeof l != "symbol" ? l + "" : l, o), je = (t, l, o) => l.has(t) || Ve("Cannot " + o);
7
7
  var Se = (t, l, o) => (je(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Be = (t, l, o) => l.has(t) ? Ve("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, o);
8
8
  var W = (t, l, o) => (je(t, l, "access private method"), o);
9
- import { _ as K, a as Ke, b as pt, I as Re, f as ft, c as Ue, d as ht, i as vt, u as gt, r as yt, E as Oe, e as bt, P as kt, h as wt, M as Ct, j as _t, A as xt, N as Et } from "./chunks/editor-B3Ut75Qp.js";
10
- import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-B3Ut75Qp.js";
11
- import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-WM8wcLCV.js";
12
- import { O as Ho } from "./chunks/converter-WM8wcLCV.js";
9
+ import { _ as K, a as Ke, b as pt, I as Re, f as ft, c as Ue, d as ht, i as vt, u as gt, r as yt, E as Oe, e as bt, P as kt, h as wt, M as Ct, j as _t, A as xt, N as Et } from "./chunks/editor-2Oc3JzUc.js";
10
+ import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-2Oc3JzUc.js";
11
+ import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-DU79T9R2.js";
12
+ import { O as Ho } from "./chunks/converter-DU79T9R2.js";
13
13
  import { ref as g, createElementBlock as w, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as It, computed as j, watch as Lt, onMounted as we, createCommentVNode as ne, withDirectives as Mt, withKeys as Dt, normalizeClass as oe, withModifiers as ke, vModelText as $t, createTextVNode as Ht, toDisplayString as ie, Fragment as U, renderList as Q, normalizeStyle as J, createVNode as V, h as N, createApp as Bt, reactive as qe, onUnmounted as Rt, shallowRef as Ze, onBeforeUnmount as Ye, createBlock as Ot } from "vue";
14
- import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-CQqIamY5.js";
14
+ import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-BjPEYlSJ.js";
15
15
  import Wt from "./ai-writer.es.js";
16
- import { D as Ro } from "./chunks/docx-zipper-CrGV_M63.js";
16
+ import { D as Ro } from "./chunks/docx-zipper-2ySrztBZ.js";
17
17
  import { createZip as No } from "./file-zipper.es.js";
18
18
  var Je = { exports: {} };
19
19
  (function(t) {
@@ -1382,7 +1382,7 @@ const _ = (t) => {
1382
1382
  ee
1383
1383
  // search,
1384
1384
  ];
1385
- if (t.config.aiApiKey || (O = O.filter((m) => m.name.value !== "ai")), o <= Me.md && (O = O.filter((m) => m.type !== "separator")), t.config.pagination || (O = O.filter((m) => m.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
1385
+ if (t.config?.superdoc?.config?.modules?.ai || (O = O.filter((m) => m.name.value !== "ai")), o <= Me.md && (O = O.filter((m) => m.type !== "separator")), t.config.pagination || (O = O.filter((m) => m.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
1386
1386
  const m = O.findIndex((A) => A.name.value === "linkedStyles");
1387
1387
  O.splice(m - 1, 2);
1388
1388
  const S = ["ruler", "zoom", "undo", "redo"];
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-CQqIamY5.js";
3
- import "./chunks/editor-B3Ut75Qp.js";
2
+ import { T as p } from "./chunks/toolbar-BjPEYlSJ.js";
3
+ import "./chunks/editor-2Oc3JzUc.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-D2PVfIIY.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e._o;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.qi;exports.Extensions=e.Eo;exports.SuperConverter=e.Rt;exports.SuperEditor=e.Co;exports.SuperInput=e.xo;exports.SuperToolbar=e.wo;exports.Toolbar=e.O0;exports.TrackChangesBasePluginKey=e.de$1;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.aC;exports.getActiveFormatting=e.jf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Io;exports.getRichTextExtensions=e.Jk;exports.getStarterExtensions=e.Yk;exports.helpers=e.Nd;exports.trackChangesHelpers=e.cC;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-DWR8J3Wj.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e._o;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.qi;exports.Extensions=e.Eo;exports.SuperConverter=e.Rt;exports.SuperEditor=e.Co;exports.SuperInput=e.xo;exports.SuperToolbar=e.wo;exports.Toolbar=e.O0;exports.TrackChangesBasePluginKey=e.de$1;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.aC;exports.getActiveFormatting=e.jf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Io;exports.getRichTextExtensions=e.Jk;exports.getStarterExtensions=e.Yk;exports.helpers=e.Nd;exports.trackChangesHelpers=e.cC;
@@ -1,4 +1,4 @@
1
- import { d as r, _ as t, h as o, N as i, q as n, E as p, R as g, C as l, x as c, w as m, O as u, a as x, c as d, b as E, j as S, e as h, I as C, J as A, Y as I, f as T, g as b } from "./chunks/super-editor.es-C7TOrAd0.es.js";
1
+ import { d as r, _ as t, h as o, N as i, q as n, E as p, R as g, C as l, x as c, w as m, O as u, a as x, c as d, b as E, j as S, e as h, I as C, J as A, Y as I, f as T, g as b } from "./chunks/super-editor.es-EEBHksvV.es.js";
2
2
  import "./chunks/vue-D254cI7X.es.js";
3
3
  export {
4
4
  r as AIWriter,