@harbour-enterprises/superdoc 0.10.37 → 0.10.39

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.
@@ -14808,6 +14808,10 @@ po = /* @__PURE__ */ new WeakSet(), dv = function(t, e = falase) {
14808
14808
  for (let l of r) {
14809
14809
  const c = wr(this, po, Bu).call(this, l);
14810
14810
  if (!c) continue;
14811
+ if (typeof c == "string") {
14812
+ a.push(c);
14813
+ continue;
14814
+ }
14811
14815
  const u = c.filter((d) => d !== "<undefined>" && d !== "</undefined>");
14812
14816
  a.push(...u);
14813
14817
  }
@@ -16463,7 +16467,7 @@ const ps = class Ov {
16463
16467
  return;
16464
16468
  }
16465
16469
  }
16466
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.37") {
16470
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.39") {
16467
16471
  const r = "docProps/custom.xml";
16468
16472
  e[r] || (e[r] = Mv());
16469
16473
  const o = e["docProps/custom.xml"];
@@ -16724,7 +16728,7 @@ function D$(t) {
16724
16728
  function Mv() {
16725
16729
  return i4;
16726
16730
  }
16727
- function Dv(t = 2, e = "0.10.37") {
16731
+ function Dv(t = 2, e = "0.10.39") {
16728
16732
  return {
16729
16733
  type: "element",
16730
16734
  name: "property",
@@ -29186,7 +29190,7 @@ const h8 = class $x extends pM {
29186
29190
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29187
29191
  */
29188
29192
  processCollaborationMigrations() {
29189
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.37"), !this.options.ydoc) return;
29193
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.39"), !this.options.ydoc) return;
29190
29194
  let e = this.options.ydoc.getMap("meta").get("version");
29191
29195
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29192
29196
  const n = iw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -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 C, 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-BBeOpgKB.js";
2
+ import { _ as G } from "./chunks/editor-Bo7MIFVg.js";
3
3
  const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", S = "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;
@@ -14826,6 +14826,10 @@ nt = new WeakSet(), fu = function(e, t = falase) {
14826
14826
  for (let f of i) {
14827
14827
  const l = $e(this, nt, gi).call(this, f);
14828
14828
  if (!l) continue;
14829
+ if (typeof l == "string") {
14830
+ u.push(l);
14831
+ continue;
14832
+ }
14829
14833
  const h = l.filter((g) => g !== "<undefined>" && g !== "</undefined>");
14830
14834
  u.push(...h);
14831
14835
  }
@@ -16482,7 +16486,7 @@ const mt = class mt {
16482
16486
  return;
16483
16487
  }
16484
16488
  }
16485
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.37") {
16489
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.39") {
16486
16490
  const n = "docProps/custom.xml";
16487
16491
  e[n] || (e[n] = Bu());
16488
16492
  const i = e["docProps/custom.xml"];
@@ -16743,7 +16747,7 @@ function xp(r) {
16743
16747
  function Bu() {
16744
16748
  return Wf;
16745
16749
  }
16746
- function ku(r = 2, e = "0.10.37") {
16750
+ function ku(r = 2, e = "0.10.39") {
16747
16751
  return {
16748
16752
  type: "element",
16749
16753
  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-pjp9hMrW.js";
1
+ import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-CEPBSnq_.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 = (t, e, n) => wf(t, typeof e != "symbol" ? e + "" : e, n), Uo = (t, e, n)
7
7
  var Ge = (t, e, n) => (Uo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ta("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), qo = (t, e, n, r) => (Uo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), N = (t, e, n) => (Uo(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as vf, Item as kf, ContentType as Cf, Text as Mf, XmlElement as Sf } from "yjs";
10
- import { P as Y, a as G, M as dr, c as K, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as xf, f as tc, A as Or, p as ie, B as Af, i as Of, g as nc, h as Tf, 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 Df, v as Nf, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Ef, 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 Pf, X as ra, Y as oa, Z as If, _ as Rf, $ as Lf } from "./converter-pjp9hMrW.js";
10
+ import { P as Y, a as G, M as dr, c as K, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as xf, f as tc, A as Or, p as ie, B as Af, i as Of, g as nc, h as Tf, 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 Df, v as Nf, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Ef, 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 Pf, X as ra, Y as oa, Z as If, _ as Rf, $ as Lf } from "./converter-CEPBSnq_.js";
11
11
  import { ref as ia, computed as Ff, createElementBlock as Kt, openBlock as Xt, withModifiers as Yo, Fragment as Bf, renderList as zf, normalizeClass as _f, createCommentVNode as sa, toDisplayString as Go, createElementVNode as $f, createApp as Vf } from "vue";
12
- import { D as aa } from "./docx-zipper-CCNBVMye.js";
12
+ import { D as aa } from "./docx-zipper-CuqGO0e3.js";
13
13
  function Io(t) {
14
14
  const { from: e, to: n, empty: r } = t.selection, o = [];
15
15
  return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
@@ -10038,7 +10038,7 @@ const Qs = class Qs extends bg {
10038
10038
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10039
10039
  */
10040
10040
  processCollaborationMigrations() {
10041
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.37"), !this.options.ydoc) return;
10041
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.39"), !this.options.ydoc) return;
10042
10042
  let r = this.options.ydoc.getMap("meta").get("version");
10043
10043
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10044
10044
  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-pjp9hMrW.js";
3
- import { _ as vt, g as Pt } from "./editor-BBeOpgKB.js";
2
+ import { p as tn } from "./converter-CEPBSnq_.js";
3
+ import { _ as vt, g as Pt } from "./editor-Bo7MIFVg.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,4 +1,4 @@
1
- import { O as o } from "./chunks/converter-pjp9hMrW.js";
1
+ import { O as o } from "./chunks/converter-CEPBSnq_.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAoCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAgnDD;;;;;;;;;EASC;AA6DD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CA4DF;;;;;;;;;;;;;mBA93Da,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAoCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAgnDD;;;;;;;;;EASC;AA6DD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAkEF;;;;;;;;;;;;;mBAp4Da,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-pjp9hMrW.js";
2
- import { D as a } from "./chunks/docx-zipper-CCNBVMye.js";
1
+ import "./chunks/converter-CEPBSnq_.js";
2
+ import { D as a } from "./chunks/docx-zipper-CuqGO0e3.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-BBeOpgKB.js";
2
- import "./chunks/converter-pjp9hMrW.js";
3
- import "./chunks/docx-zipper-CCNBVMye.js";
1
+ import { E as m } from "./chunks/editor-Bo7MIFVg.js";
2
+ import "./chunks/converter-CEPBSnq_.js";
3
+ import "./chunks/docx-zipper-CuqGO0e3.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-CCNBVMye.js";
1
+ import { J as p } from "./chunks/docx-zipper-CuqGO0e3.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-BBeOpgKB.js";
10
- import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-BBeOpgKB.js";
11
- import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-pjp9hMrW.js";
12
- import { O as Ho } from "./chunks/converter-pjp9hMrW.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-Bo7MIFVg.js";
10
+ import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-Bo7MIFVg.js";
11
+ import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-CEPBSnq_.js";
12
+ import { O as Ho } from "./chunks/converter-CEPBSnq_.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-C_kwfnD3.js";
14
+ import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-BSB7RK_I.js";
15
15
  import Wt from "./ai-writer.es.js";
16
- import { D as Ro } from "./chunks/docx-zipper-CCNBVMye.js";
16
+ import { D as Ro } from "./chunks/docx-zipper-CuqGO0e3.js";
17
17
  import { createZip as No } from "./file-zipper.es.js";
18
18
  var Je = { exports: {} };
19
19
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-C_kwfnD3.js";
3
- import "./chunks/editor-BBeOpgKB.js";
2
+ import { T as p } from "./chunks/toolbar-BSB7RK_I.js";
3
+ import "./chunks/editor-Bo7MIFVg.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-t2tpeeu8.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.sC;exports.getActiveFormatting=e.Hf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Io;exports.getRichTextExtensions=e.Xk;exports.getStarterExtensions=e.Jk;exports.helpers=e.Dd;exports.trackChangesHelpers=e.lC;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-D2YgUudO.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.sC;exports.getActiveFormatting=e.Hf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Io;exports.getRichTextExtensions=e.Xk;exports.getStarterExtensions=e.Jk;exports.helpers=e.Dd;exports.trackChangesHelpers=e.lC;
@@ -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 l, C as g, x as c, w as m, O as u, a as x, c as d, s as E, H as S, e as h, I as C, X as A, J as I, D as T, l as k } from "./chunks/super-editor.es--S0wg_Pb.es.js";
1
+ import { d as r, _ as t, h as o, N as i, q as n, E as p, R as l, C as g, x as c, w as m, O as u, a as x, c as d, s as E, H as S, e as h, I as C, X as A, J as I, D as T, l as k } from "./chunks/super-editor.es-DUWXIgsn.es.js";
2
2
  import "./chunks/vue-D254cI7X.es.js";
3
3
  export {
4
4
  r as AIWriter,