@harbour-enterprises/superdoc 0.11.34 → 0.11.35

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.
@@ -16749,7 +16749,7 @@ const ws = class H1 {
16749
16749
  return;
16750
16750
  }
16751
16751
  }
16752
- static updateDocumentVersion(e = this.convertedXml, n = "0.11.34") {
16752
+ static updateDocumentVersion(e = this.convertedXml, n = "0.11.35") {
16753
16753
  const r = "docProps/custom.xml";
16754
16754
  e[r] || (e[r] = V1());
16755
16755
  const o = e["docProps/custom.xml"];
@@ -17012,7 +17012,7 @@ function tT(t) {
17012
17012
  function V1() {
17013
17013
  return k4;
17014
17014
  }
17015
- function W1(t = 2, e = "0.11.34") {
17015
+ function W1(t = 2, e = "0.11.35") {
17016
17016
  return {
17017
17017
  type: "element",
17018
17018
  name: "property",
@@ -29764,7 +29764,7 @@ const J_ = class qx extends e_ {
29764
29764
  * @returns {Object | void} Migration results
29765
29765
  */
29766
29766
  processCollaborationMigrations() {
29767
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.34"), !this.options.ydoc) return;
29767
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.35"), !this.options.ydoc) return;
29768
29768
  let e = this.options.ydoc.getMap("meta").get("version");
29769
29769
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29770
29770
  const n = m0(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -1,6 +1,6 @@
1
1
  import { ref as x, onMounted as G, onUnmounted as U, computed as D, createElementBlock as O, openBlock as R, withModifiers as H, createElementVNode as S, withDirectives as Y, unref as N, vModelText as J, createCommentVNode as Q, nextTick as K } from "vue";
2
- import { T as Z } from "./chunks/converter-DnveZphs.js";
3
- import { _ as ee } from "./chunks/editor-XSjyC_V1.js";
2
+ import { T as Z } from "./chunks/converter-BlU0TjfI.js";
3
+ import { _ as ee } from "./chunks/editor-Bp5_glaN.js";
4
4
  const te = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", z = "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: ";
5
5
  async function V(r, o = {}) {
6
6
  const e = o.apiKey, a = o.endpoint || te;
@@ -16769,7 +16769,7 @@ const pt = class pt {
16769
16769
  return;
16770
16770
  }
16771
16771
  }
16772
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.34") {
16772
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.35") {
16773
16773
  const n = "docProps/custom.xml";
16774
16774
  e[n] || (e[n] = Fu());
16775
16775
  const i = e["docProps/custom.xml"];
@@ -17032,7 +17032,7 @@ function Sp(r) {
17032
17032
  function Fu() {
17033
17033
  return Gf;
17034
17034
  }
17035
- function Bu(r = 2, e = "0.11.34") {
17035
+ function Bu(r = 2, e = "0.11.35") {
17036
17036
  return {
17037
17037
  type: "element",
17038
17038
  name: "property",
@@ -1,4 +1,4 @@
1
- import { x as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-DnveZphs.js";
1
+ import { x as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-BlU0TjfI.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 L = (t, e, n) => zf(t, typeof e != "symbol" ? e + "" : e, n), Qo = (t, e, n)
7
7
  var Qe = (t, e, n) => (Qo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ei = (t, e, n, r) => (Qo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Qo(t, e, "access private method"), n);
8
8
  import * as N from "yjs";
9
9
  import { UndoManager as _f, Item as $f, ContentType as Vf, Text as Hf, XmlElement as jf } from "yjs";
10
- import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as T, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-DnveZphs.js";
10
+ import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as T, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-BlU0TjfI.js";
11
11
  import { ref as ma, computed as tp, createElementBlock as Xt, openBlock as Jt, withModifiers as oi, Fragment as np, renderList as rp, normalizeClass as op, createCommentVNode as ga, toDisplayString as ii, createElementVNode as ip, createApp as sp } from "vue";
12
- import { D as ya } from "./docx-zipper-B-azX40c.js";
12
+ import { D as ya } from "./docx-zipper-CmXMgr4n.js";
13
13
  function Vo(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) => {
@@ -10364,7 +10364,7 @@ const ca = class ca extends Qy {
10364
10364
  * @returns {Object | void} Migration results
10365
10365
  */
10366
10366
  processCollaborationMigrations() {
10367
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.34"), !this.options.ydoc) return;
10367
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.35"), !this.options.ydoc) return;
10368
10368
  let r = this.options.ydoc.getMap("meta").get("version");
10369
10369
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10370
10370
  const o = hl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
2
- import { x as rn } from "./converter-DnveZphs.js";
3
- import { _ as mt, g as kt } from "./editor-XSjyC_V1.js";
2
+ import { x as rn } from "./converter-BlU0TjfI.js";
3
+ import { _ as mt, g as kt } from "./editor-Bp5_glaN.js";
4
4
  const I0 = (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-DnveZphs.js";
1
+ import { O as o } from "./chunks/converter-BlU0TjfI.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DnveZphs.js";
2
- import { D as a } from "./chunks/docx-zipper-B-azX40c.js";
1
+ import "./chunks/converter-BlU0TjfI.js";
2
+ import { D as a } from "./chunks/docx-zipper-CmXMgr4n.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-XSjyC_V1.js";
2
- import "./chunks/converter-DnveZphs.js";
3
- import "./chunks/docx-zipper-B-azX40c.js";
1
+ import { E as m } from "./chunks/editor-Bp5_glaN.js";
2
+ import "./chunks/converter-BlU0TjfI.js";
3
+ import "./chunks/docx-zipper-CmXMgr4n.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-B-azX40c.js";
1
+ import { J as p } from "./chunks/docx-zipper-CmXMgr4n.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 bt = (t, a, o) => a in t ? yt(t, a, { enumerable: !0, configurable: !0, writ
6
6
  var Re = (t, a, o) => bt(t, typeof a != "symbol" ? a + "" : a, o), qe = (t, a, o) => a.has(t) || Ue("Cannot " + o);
7
7
  var Ae = (t, a, o) => (qe(t, a, "read from private field"), o ? o.call(t) : a.get(t)), Oe = (t, a, o) => a.has(t) ? Ue("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, o);
8
8
  var z = (t, a, o) => (qe(t, a, "access private method"), o);
9
- import { _ as q, a as Ze, b as wt, I as Ne, f as Ct, c as Ge, d as kt, i as _t, u as xt, r as Et, E as ze, e as St, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-XSjyC_V1.js";
10
- import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-XSjyC_V1.js";
11
- import { a1 as Dt, E as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-DnveZphs.js";
12
- import { O as qo } from "./chunks/converter-DnveZphs.js";
9
+ import { _ as q, a as Ze, b as wt, I as Ne, f as Ct, c as Ge, d as kt, i as _t, u as xt, r as Et, E as ze, e as St, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-Bp5_glaN.js";
10
+ import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-Bp5_glaN.js";
11
+ import { a1 as Dt, E as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-BlU0TjfI.js";
12
+ import { O as qo } from "./chunks/converter-BlU0TjfI.js";
13
13
  import { ref as f, createElementBlock as C, openBlock as w, createElementVNode as k, unref as D, getCurrentInstance as Rt, computed as j, watch as Ot, onMounted as ke, createCommentVNode as Q, withDirectives as Je, withKeys as Qe, normalizeClass as oe, withModifiers as ge, vModelText as et, createTextVNode as tt, toDisplayString as ie, Fragment as U, renderList as ee, normalizeStyle as J, createVNode as P, h as B, createApp as Nt, reactive as Ke, onUnmounted as zt, shallowRef as nt, onBeforeUnmount as ot, createBlock as Vt } from "vue";
14
- import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-DhWBLihJ.js";
14
+ import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-CPZT2u-C.js";
15
15
  import jt from "./ai-writer.es.js";
16
- import { D as Ko } from "./chunks/docx-zipper-B-azX40c.js";
16
+ import { D as Ko } from "./chunks/docx-zipper-CmXMgr4n.js";
17
17
  import { createZip as Zo } from "./file-zipper.es.js";
18
18
  var it = { exports: {} };
19
19
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-DhWBLihJ.js";
3
- import "./chunks/editor-XSjyC_V1.js";
2
+ import { T as p } from "./chunks/toolbar-CPZT2u-C.js";
3
+ import "./chunks/editor-Bp5_glaN.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-CYMQ40x9.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.ns;exports.Extensions=e.Bo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.P0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Xx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Fx;exports.getStarterExtensions=e.Bx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.Yx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-BlvoIGyz.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.ns;exports.Extensions=e.Bo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.P0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Xx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Fx;exports.getStarterExtensions=e.Bx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.Yx;
@@ -1,4 +1,4 @@
1
- import { x as r, $ as t, g as o, N as n, n as i, B as p, O as g, D as l, H as c, M as m, P as u, c as x, a as d, X as S, b as E, m as h, V as A, F as C, d as T, R as b, Y as k } from "./chunks/super-editor.es-SDc8qWY8.es.js";
1
+ import { x as r, $ as t, g as o, N as n, n as i, B as p, O as g, D as l, H as c, M as m, P as u, c as x, a as d, X as S, b as E, m as h, V as A, F as C, d as T, R as b, Y as k } from "./chunks/super-editor.es-Doc0izWg.es.js";
2
2
  import "./chunks/vue-DKS68Dra.es.js";
3
3
  export {
4
4
  r as AIWriter,