@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.
@@ -16530,7 +16530,7 @@ const hs = class Ov {
16530
16530
  return;
16531
16531
  }
16532
16532
  }
16533
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.51") {
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.51") {
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.51"), !this.options.ydoc) return;
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-1dd9d155"]]);
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;