@harbour-enterprises/superdoc 0.10.58 → 0.10.59

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.
@@ -16555,7 +16555,7 @@ const hs = class Ov {
16555
16555
  return;
16556
16556
  }
16557
16557
  }
16558
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.58") {
16558
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.59") {
16559
16559
  const r = "docProps/custom.xml";
16560
16560
  e[r] || (e[r] = Mv());
16561
16561
  const o = e["docProps/custom.xml"];
@@ -16816,7 +16816,7 @@ function L$(t) {
16816
16816
  function Mv() {
16817
16817
  return s4;
16818
16818
  }
16819
- function Dv(t = 2, e = "0.10.58") {
16819
+ function Dv(t = 2, e = "0.10.59") {
16820
16820
  return {
16821
16821
  type: "element",
16822
16822
  name: "property",
@@ -29288,7 +29288,7 @@ const b8 = class Tx extends wM {
29288
29288
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29289
29289
  */
29290
29290
  processCollaborationMigrations() {
29291
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.58"), !this.options.ydoc) return;
29291
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.59"), !this.options.ydoc) return;
29292
29292
  let e = this.options.ydoc.getMap("meta").get("version");
29293
29293
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29294
29294
  const n = sw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -31166,7 +31166,7 @@ const Gx = Qe.create({
31166
31166
  }
31167
31167
  l.push({ key: f.type.name, value: f.attrs[a] });
31168
31168
  });
31169
- const c = l.find((f) => f.key === a), u = Object.keys(n?.attrs.indent || {}), d = Object.keys(n?.attrs.spacing || {});
31169
+ const c = l.find((f) => f.key === a), u = Object.keys(n?.attrs?.indent || {}), d = Object.keys(n?.attrs?.spacing || {});
31170
31170
  if (!c)
31171
31171
  if (a === "spacing" && r && !d) {
31172
31172
  const f = u_(s);
@@ -31263,7 +31263,7 @@ const Gx = Qe.create({
31263
31263
  class: {
31264
31264
  renderDOM: (t) => t.dropcap ? { class: "super-doc-dropcap" } : null
31265
31265
  },
31266
- styleId: { rendered: !1 },
31266
+ styleId: {},
31267
31267
  attributes: {
31268
31268
  rendered: !1
31269
31269
  },
@@ -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 S, 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-D4N0HTLZ.js";
2
+ import { _ as G } from "./chunks/editor-D2wFJ3Vj.js";
3
3
  const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", C = "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;
@@ -16575,7 +16575,7 @@ const mt = class mt {
16575
16575
  return;
16576
16576
  }
16577
16577
  }
16578
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.58") {
16578
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.59") {
16579
16579
  const n = "docProps/custom.xml";
16580
16580
  e[n] || (e[n] = Fu());
16581
16581
  const i = e["docProps/custom.xml"];
@@ -16836,7 +16836,7 @@ function vp(r) {
16836
16836
  function Fu() {
16837
16837
  return Gf;
16838
16838
  }
16839
- function Bu(r = 2, e = "0.10.58") {
16839
+ function Bu(r = 2, e = "0.10.59") {
16840
16840
  return {
16841
16841
  type: "element",
16842
16842
  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-BF8HEGj0.js";
1
+ import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-Cs71TBnr.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 = (e, t, n) => vf(e, typeof t != "symbol" ? t + "" : t, n), Ko = (e, t, n)
7
7
  var Qe = (e, t, n) => (Ko(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ta("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Xo = (e, t, n, r) => (Ko(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), N = (e, t, n) => (Ko(e, t, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as kf, Item as xf, ContentType as Cf, Text as Mf, XmlElement as Sf } from "yjs";
10
- import { P as Y, a as G, M as dr, c as X, N as z, S as Q, T as j, b as W, D as Vn, F as P, d as nn, e as Af, f as tc, A as Or, p as oe, B as Of, i as Tf, g as nc, h as Df, j as wt, l as Tr, k as Ht, m as rc, r as oc, R as ln, o as ur, n as na, q as $t, s as ki, t as ic, u as Nf, v as Ef, w as de, x as Ve, y as Io, z as xn, C as go, E as Pf, G as Ce, H as io, I as sc, J as Cn, K as Jo, L as Yo, O as Go, Q as so, U as Rt, V as Ro, W as If, X as ra, Y as oa, Z as Rf, _ as Lf, $ as Ff } from "./converter-BF8HEGj0.js";
10
+ import { P as Y, a as G, M as dr, c as X, N as z, S as Q, T as j, b as W, D as Vn, F as P, d as nn, e as Af, f as tc, A as Or, p as oe, B as Of, i as Tf, g as nc, h as Df, j as wt, l as Tr, k as Ht, m as rc, r as oc, R as ln, o as ur, n as na, q as $t, s as ki, t as ic, u as Nf, v as Ef, w as de, x as Ve, y as Io, z as xn, C as go, E as Pf, G as Ce, H as io, I as sc, J as Cn, K as Jo, L as Yo, O as Go, Q as so, U as Rt, V as Ro, W as If, X as ra, Y as oa, Z as Rf, _ as Lf, $ as Ff } from "./converter-Cs71TBnr.js";
11
11
  import { ref as ia, computed as Bf, createElementBlock as Kt, openBlock as Xt, withModifiers as Zo, Fragment as zf, renderList as _f, normalizeClass as $f, createCommentVNode as sa, toDisplayString as Qo, createElementVNode as Vf, createApp as Hf } from "vue";
12
- import { D as aa } from "./docx-zipper-CRDiJqW1.js";
12
+ import { D as aa } from "./docx-zipper-6jKpuHRM.js";
13
13
  function Lo(e) {
14
14
  const { from: t, to: n, empty: r } = e.selection, o = [];
15
15
  return r ? (e.storedMarks && o.push(...e.storedMarks), o.push(...e.selection.$head.marks())) : e.doc.nodesBetween(t, n, (i) => {
@@ -10048,7 +10048,7 @@ const Qs = class Qs extends bg {
10048
10048
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10049
10049
  */
10050
10050
  processCollaborationMigrations() {
10051
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.58"), !this.options.ydoc) return;
10051
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.59"), !this.options.ydoc) return;
10052
10052
  let r = this.options.ydoc.getMap("meta").get("version");
10053
10053
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10054
10054
  const o = ol(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -11941,7 +11941,7 @@ const du = K.create({
11941
11941
  }
11942
11942
  l.push({ key: f.type.name, value: f.attrs[a] });
11943
11943
  });
11944
- const c = l.find((f) => f.key === a), d = Object.keys(n?.attrs.indent || {}), u = Object.keys(n?.attrs.spacing || {});
11944
+ const c = l.find((f) => f.key === a), d = Object.keys(n?.attrs?.indent || {}), u = Object.keys(n?.attrs?.spacing || {});
11945
11945
  if (!c)
11946
11946
  if (a === "spacing" && r && !u) {
11947
11947
  const f = a0(s);
@@ -12038,7 +12038,7 @@ const du = K.create({
12038
12038
  class: {
12039
12039
  renderDOM: (e) => e.dropcap ? { class: "super-doc-dropcap" } : null
12040
12040
  },
12041
- styleId: { rendered: !1 },
12041
+ styleId: {},
12042
12042
  attributes: {
12043
12043
  rendered: !1
12044
12044
  },
@@ -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-BF8HEGj0.js";
3
- import { _ as vt, g as Pt } from "./editor-D4N0HTLZ.js";
2
+ import { p as tn } from "./converter-Cs71TBnr.js";
3
+ import { _ as vt, g as Pt } from "./editor-D2wFJ3Vj.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-BF8HEGj0.js";
1
+ import { O as o } from "./chunks/converter-Cs71TBnr.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BF8HEGj0.js";
2
- import { D as a } from "./chunks/docx-zipper-CRDiJqW1.js";
1
+ import "./chunks/converter-Cs71TBnr.js";
2
+ import { D as a } from "./chunks/docx-zipper-6jKpuHRM.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-D4N0HTLZ.js";
2
- import "./chunks/converter-BF8HEGj0.js";
3
- import "./chunks/docx-zipper-CRDiJqW1.js";
1
+ import { E as m } from "./chunks/editor-D2wFJ3Vj.js";
2
+ import "./chunks/converter-Cs71TBnr.js";
3
+ import "./chunks/docx-zipper-6jKpuHRM.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-CRDiJqW1.js";
1
+ import { J as p } from "./chunks/docx-zipper-6jKpuHRM.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-D4N0HTLZ.js";
10
- import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-D4N0HTLZ.js";
11
- import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-BF8HEGj0.js";
12
- import { O as Ho } from "./chunks/converter-BF8HEGj0.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-D2wFJ3Vj.js";
10
+ import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-D2wFJ3Vj.js";
11
+ import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-Cs71TBnr.js";
12
+ import { O as Ho } from "./chunks/converter-Cs71TBnr.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-BZKPqmKP.js";
14
+ import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-BdbU1Nep.js";
15
15
  import Wt from "./ai-writer.es.js";
16
- import { D as Ro } from "./chunks/docx-zipper-CRDiJqW1.js";
16
+ import { D as Ro } from "./chunks/docx-zipper-6jKpuHRM.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-BZKPqmKP.js";
3
- import "./chunks/editor-D4N0HTLZ.js";
2
+ import { T as p } from "./chunks/toolbar-BdbU1Nep.js";
3
+ import "./chunks/editor-D2wFJ3Vj.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-CNxa-XxP.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e._o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.qi;exports.Extensions=e.Eo;exports.SuperConverter=e.Pt;exports.SuperEditor=e.Co;exports.SuperInput=e.xo;exports.SuperToolbar=e.wo;exports.Toolbar=e.O0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.ax;exports.getActiveFormatting=e.jf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Lo;exports.getRichTextExtensions=e.Jk;exports.getStarterExtensions=e.Yk;exports.helpers=e.Nd;exports.trackChangesHelpers=e.cx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-dV6e-64I.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e._o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.qi;exports.Extensions=e.Eo;exports.SuperConverter=e.Pt;exports.SuperEditor=e.Co;exports.SuperInput=e.xo;exports.SuperToolbar=e.wo;exports.Toolbar=e.O0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.ax;exports.getActiveFormatting=e.jf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Lo;exports.getRichTextExtensions=e.Jk;exports.getStarterExtensions=e.Yk;exports.helpers=e.Nd;exports.trackChangesHelpers=e.cx;
@@ -1,4 +1,4 @@
1
- import { d as r, _ as t, g as o, N as i, q as n, E as p, P as g, C as l, x as c, w as m, O as u, c as x, a as d, b as E, j as S, e as h, L as C, J as A, Y as T, f as b, h as f } from "./chunks/super-editor.es-fuqUtg0Z.es.js";
1
+ import { d as r, _ as t, g as o, N as i, q as n, E as p, P as g, C as l, x as c, w as m, O as u, c as x, a as d, b as E, j as S, e as h, L as C, J as A, Y as T, f as b, h as f } from "./chunks/super-editor.es-zactM06E.es.js";
2
2
  import "./chunks/vue-D254cI7X.es.js";
3
3
  export {
4
4
  r as AIWriter,