@harbour-enterprises/superdoc 0.10.51 → 0.10.52
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-C7TOrAd0.es.js} +13 -6
- package/dist/chunks/{super-editor.es-DieS3opU.cjs → super-editor.es-D2PVfIIY.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 +19 -14
- package/dist/super-editor/chunks/{converter-BNiMKJNK.js → converter-WM8wcLCV.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BgocE4ya.js → docx-zipper-CrGV_M63.js} +1 -1
- package/dist/super-editor/chunks/{editor-DDmn_vlU.js → editor-B3Ut75Qp.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DBo8vVyt.js → toolbar-CQqIamY5.js} +2 -2
- 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 +459 -450
- 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.52") {
|
|
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.52") {
|
|
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.52"), !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"));
|
|
@@ -45232,6 +45232,10 @@ const Tq = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
45232
45232
|
apiKey: {
|
|
45233
45233
|
type: String
|
|
45234
45234
|
},
|
|
45235
|
+
endpoint: {
|
|
45236
|
+
type: String,
|
|
45237
|
+
required: !1
|
|
45238
|
+
},
|
|
45235
45239
|
/**
|
|
45236
45240
|
* AIWriter component is used both in the superToolbar and SuperDoc directly
|
|
45237
45241
|
* When we are rending in the toolbar menu, our events are emitted through toolbar to Superdoc
|
|
@@ -45306,7 +45310,8 @@ const Tq = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
45306
45310
|
documentXml: g(),
|
|
45307
45311
|
config: {
|
|
45308
45312
|
// Pass the aiApiKey to the AI helper functions
|
|
45309
|
-
apiKey: e.apiKey
|
|
45313
|
+
apiKey: e.apiKey,
|
|
45314
|
+
endpoint: e.endpoint
|
|
45310
45315
|
}
|
|
45311
45316
|
};
|
|
45312
45317
|
e.selectedText ? await $q(e.selectedText, m.value, S, b, x) : await Cq(m.value, S, b, x), e.handleClose();
|
|
@@ -45361,7 +45366,7 @@ const Tq = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
45361
45366
|
])
|
|
45362
45367
|
], 544));
|
|
45363
45368
|
}
|
|
45364
|
-
}, jq = /* @__PURE__ */ Ct(zq, [["__scopeId", "data-v-
|
|
45369
|
+
}, jq = /* @__PURE__ */ Ct(zq, [["__scopeId", "data-v-2ee48def"]]);
|
|
45365
45370
|
async function QV(t, e) {
|
|
45366
45371
|
const n = new Qd();
|
|
45367
45372
|
return t.forEach((r, o) => {
|
|
@@ -46107,6 +46112,7 @@ const Xe = (t) => {
|
|
|
46107
46112
|
selectedText: pe,
|
|
46108
46113
|
editor: t.activeEditor,
|
|
46109
46114
|
apiKey: t.config.aiApiKey,
|
|
46115
|
+
endpoint: t.config.aiEndpoint,
|
|
46110
46116
|
superToolbar: t
|
|
46111
46117
|
})
|
|
46112
46118
|
]
|
|
@@ -46862,7 +46868,8 @@ class eH extends Hq {
|
|
|
46862
46868
|
excludeItems: [],
|
|
46863
46869
|
groups: null,
|
|
46864
46870
|
editor: null,
|
|
46865
|
-
aiApiKey: null
|
|
46871
|
+
aiApiKey: null,
|
|
46872
|
+
aiEndpoint: null
|
|
46866
46873
|
}), bb(this, xs, {
|
|
46867
46874
|
setZoom: ({ item: r, argument: o }) => {
|
|
46868
46875
|
if (!o) return;
|