@harbour-enterprises/superdoc 0.10.51 → 0.10.53
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.
- package/dist/chunks/{super-editor.es-B-eM0VQ9.es.js → super-editor.es-D8i8HaSd.es.js} +15 -7
- package/dist/chunks/{super-editor.es-DieS3opU.cjs → super-editor.es-sAfJIZkX.cjs} +38 -38
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +29 -29
- package/dist/super-editor/ai-writer.es.js +21 -15
- package/dist/super-editor/chunks/{converter-BNiMKJNK.js → converter-BYBZ1O4h.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BgocE4ya.js → docx-zipper-CM4pITBO.js} +1 -1
- package/dist/super-editor/chunks/{editor-DDmn_vlU.js → editor-BOY7rOTL.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DBo8vVyt.js → toolbar-BpDnHGzG.js} +2 -2
- package/dist/super-editor/components/toolbar/ai-helpers.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -0
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +9 -7
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +100 -98
- package/dist/superdoc.umd.js +461 -451
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -16530,7 +16530,7 @@ const hs = class Ov {
|
|
|
16530
16530
|
return;
|
|
16531
16531
|
}
|
|
16532
16532
|
}
|
|
16533
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.10.
|
|
16533
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.10.53") {
|
|
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.
|
|
16794
|
+
function Dv(t = 2, e = "0.10.53") {
|
|
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.
|
|
29266
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.53"), !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();
|
|
@@ -45232,6 +45233,10 @@ const Tq = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
45232
45233
|
apiKey: {
|
|
45233
45234
|
type: String
|
|
45234
45235
|
},
|
|
45236
|
+
endpoint: {
|
|
45237
|
+
type: String,
|
|
45238
|
+
required: !1
|
|
45239
|
+
},
|
|
45235
45240
|
/**
|
|
45236
45241
|
* AIWriter component is used both in the superToolbar and SuperDoc directly
|
|
45237
45242
|
* When we are rending in the toolbar menu, our events are emitted through toolbar to Superdoc
|
|
@@ -45306,7 +45311,8 @@ const Tq = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
45306
45311
|
documentXml: g(),
|
|
45307
45312
|
config: {
|
|
45308
45313
|
// Pass the aiApiKey to the AI helper functions
|
|
45309
|
-
apiKey: e.apiKey
|
|
45314
|
+
apiKey: e.apiKey,
|
|
45315
|
+
endpoint: e.endpoint
|
|
45310
45316
|
}
|
|
45311
45317
|
};
|
|
45312
45318
|
e.selectedText ? await $q(e.selectedText, m.value, S, b, x) : await Cq(m.value, S, b, x), e.handleClose();
|
|
@@ -45361,7 +45367,7 @@ const Tq = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
45361
45367
|
])
|
|
45362
45368
|
], 544));
|
|
45363
45369
|
}
|
|
45364
|
-
}, jq = /* @__PURE__ */ Ct(zq, [["__scopeId", "data-v-
|
|
45370
|
+
}, jq = /* @__PURE__ */ Ct(zq, [["__scopeId", "data-v-2ee48def"]]);
|
|
45365
45371
|
async function QV(t, e) {
|
|
45366
45372
|
const n = new Qd();
|
|
45367
45373
|
return t.forEach((r, o) => {
|
|
@@ -46107,6 +46113,7 @@ const Xe = (t) => {
|
|
|
46107
46113
|
selectedText: pe,
|
|
46108
46114
|
editor: t.activeEditor,
|
|
46109
46115
|
apiKey: t.config.aiApiKey,
|
|
46116
|
+
endpoint: t.config.aiEndpoint,
|
|
46110
46117
|
superToolbar: t
|
|
46111
46118
|
})
|
|
46112
46119
|
]
|
|
@@ -46862,7 +46869,8 @@ class eH extends Hq {
|
|
|
46862
46869
|
excludeItems: [],
|
|
46863
46870
|
groups: null,
|
|
46864
46871
|
editor: null,
|
|
46865
|
-
aiApiKey: null
|
|
46872
|
+
aiApiKey: null,
|
|
46873
|
+
aiEndpoint: null
|
|
46866
46874
|
}), bb(this, xs, {
|
|
46867
46875
|
setZoom: ({ item: r, argument: o }) => {
|
|
46868
46876
|
if (!o) return;
|