@harbour-enterprises/superdoc 0.11.18 → 0.11.19

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.
Files changed (31) hide show
  1. package/dist/chunks/{index-Y7BlAr93.es.js → index-Gs0-9Zg-.es.js} +2 -2
  2. package/dist/chunks/{index-BXKGjuVW.cjs → index-MTg0RB9I.cjs} +1 -1
  3. package/dist/chunks/{index-CqRwYOdx.cjs → index-f-drtAbP.cjs} +1 -1
  4. package/dist/chunks/{index-CPZ-IxHT.es.js → index-k2jVlnWa.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-D8ziHk1x.cjs → super-editor.es-BpCrZwJM.cjs} +3 -3
  6. package/dist/chunks/{super-editor.es-DE2LvQ4V.es.js → super-editor.es-C5WxgouW.es.js} +19 -25
  7. package/dist/chunks/{url-6Xu7gR4T.cjs → url-BY6ThfSE.cjs} +1 -1
  8. package/dist/chunks/{url-t15h9onH.es.js → url-C5LEOXW-.es.js} +1 -1
  9. package/dist/chunks/xml-js-C-3oH1mO.cjs +10 -0
  10. package/dist/chunks/{xml-js-kwrvzyhm.es.js → xml-js-DjJijnzm.es.js} +366 -355
  11. package/dist/super-editor/ai-writer.es.js +1 -1
  12. package/dist/super-editor/chunks/{converter-B25jWkqJ.js → converter-DsBQa9mA.js} +2 -2
  13. package/dist/super-editor/chunks/{docx-zipper-DNmQADIe.js → docx-zipper-BhZqF_Iv.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-DKyTaWEI.js → editor-C1MQt5t_.js} +19 -25
  15. package/dist/super-editor/chunks/{toolbar-C6UiTU1Z.js → toolbar-CKwDSMyY.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/extensions/keymap.d.ts +3 -3
  18. package/dist/super-editor/core/extensions/keymap.d.ts.map +1 -1
  19. package/dist/super-editor/docx-zipper.es.js +2 -2
  20. package/dist/super-editor/editor.es.js +3 -3
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/super-editor.es.js +6 -6
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +3 -3
  27. package/dist/superdoc.es.js +6 -6
  28. package/dist/superdoc.umd.js +20 -26
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
@@ -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-DKyTaWEI.js";
2
+ import { _ as G } from "./chunks/editor-C1MQt5t_.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;
@@ -16725,7 +16725,7 @@ const pt = class pt {
16725
16725
  return;
16726
16726
  }
16727
16727
  }
16728
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.18") {
16728
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.19") {
16729
16729
  const n = "docProps/custom.xml";
16730
16730
  e[n] || (e[n] = Bu());
16731
16731
  const i = e["docProps/custom.xml"];
@@ -16988,7 +16988,7 @@ function Cp(r) {
16988
16988
  function Bu() {
16989
16989
  return Wf;
16990
16990
  }
16991
- function ku(r = 2, e = "0.11.18") {
16991
+ function ku(r = 2, e = "0.11.19") {
16992
16992
  return {
16993
16993
  type: "element",
16994
16994
  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-B25jWkqJ.js";
1
+ import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-DsBQa9mA.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 R = (t, e, n) => Pf(t, typeof e != "symbol" ? e + "" : e, n), Zo = (t, e, n)
7
7
  var Qe = (t, e, n) => (Zo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? aa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Qo = (t, e, n, r) => (Zo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), N = (t, e, n) => (Zo(t, e, "access private method"), n);
8
8
  import * as D from "yjs";
9
9
  import { UndoManager as If, Item as Rf, ContentType as Lf, Text as Ff, XmlElement as Bf } from "yjs";
10
- import { P as J, a as Y, M as fr, c as X, N as _, S as ee, T as j, b as W, D as Hn, F as T, d as rn, e as zf, f as fc, A as Er, p as oe, B as $f, i as _f, g as pc, h as Vf, j as wt, l as Nr, k as jt, m as hc, r as mc, R as ln, o as pr, n as la, q as Vt, s as Ti, t as gc, u as Hf, v as jf, w as de, x as Ve, y as $o, z as xn, C as xo, E as Wf, G as Se, H as co, I as yc, J as Sn, K as ei, L as ti, O as ni, Q as uo, U as Rt, V as _o, W as Uf, X as ca, Y as da, Z as qf, _ as Kf, $ as Xf } from "./converter-B25jWkqJ.js";
10
+ import { P as J, a as Y, M as fr, c as X, N as _, S as ee, T as j, b as W, D as Hn, F as T, d as rn, e as zf, f as fc, A as Er, p as oe, B as $f, i as _f, g as pc, h as Vf, j as wt, l as Nr, k as jt, m as hc, r as mc, R as ln, o as pr, n as la, q as Vt, s as Ti, t as gc, u as Hf, v as jf, w as de, x as Ve, y as $o, z as xn, C as xo, E as Wf, G as Se, H as co, I as yc, J as Sn, K as ei, L as ti, O as ni, Q as uo, U as Rt, V as _o, W as Uf, X as ca, Y as da, Z as qf, _ as Kf, $ as Xf } from "./converter-DsBQa9mA.js";
11
11
  import { ref as ua, computed as Jf, createElementBlock as Xt, openBlock as Jt, withModifiers as ri, Fragment as Yf, renderList as Gf, normalizeClass as Zf, createCommentVNode as fa, toDisplayString as oi, createElementVNode as Qf, createApp as ep } from "vue";
12
- import { D as pa } from "./docx-zipper-DNmQADIe.js";
12
+ import { D as pa } from "./docx-zipper-BhZqF_Iv.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) => {
@@ -8491,28 +8491,22 @@ const qy = (t, e = {}) => ({ state: n, dispatch: r }) => {
8491
8491
  addCommands() {
8492
8492
  return { ...tb };
8493
8493
  }
8494
- }), rb = (t) => {
8495
- t.commands.first(({ commands: e }) => [
8496
- () => e.newlineInCode(),
8497
- () => e.createParagraphNear(),
8498
- () => e.liftEmptyBlock(),
8499
- () => e.splitBlock()
8500
- ]);
8501
- }, Yn = (t) => {
8502
- t.commands.first(({ commands: e, tr: n }) => [
8503
- () => e.undoInputRule(),
8504
- () => (n.setMeta("inputType", "deleteContentBackward"), !1),
8505
- () => e.deleteSelection(),
8506
- () => e.joinBackward(),
8507
- () => e.selectNodeBackward()
8508
- ]);
8509
- }, wn = (t) => {
8510
- t.commands.first(({ commands: e }) => [
8511
- () => e.deleteSelection(),
8512
- () => e.joinForward(),
8513
- () => e.selectNodeForward()
8514
- ]);
8515
- }, ob = Z.create({
8494
+ }), rb = (t) => t.commands.first(({ commands: e }) => [
8495
+ () => e.newlineInCode(),
8496
+ () => e.createParagraphNear(),
8497
+ () => e.liftEmptyBlock(),
8498
+ () => e.splitBlock()
8499
+ ]), Yn = (t) => t.commands.first(({ commands: e, tr: n }) => [
8500
+ () => e.undoInputRule(),
8501
+ () => (n.setMeta("inputType", "deleteContentBackward"), !1),
8502
+ () => e.deleteSelection(),
8503
+ () => e.joinBackward(),
8504
+ () => e.selectNodeBackward()
8505
+ ]), wn = (t) => t.commands.first(({ commands: e }) => [
8506
+ () => e.deleteSelection(),
8507
+ () => e.joinForward(),
8508
+ () => e.selectNodeForward()
8509
+ ]), ob = Z.create({
8516
8510
  name: "keymap",
8517
8511
  addShortcuts() {
8518
8512
  const t = {
@@ -10048,7 +10042,7 @@ const ia = class ia extends Eg {
10048
10042
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10049
10043
  */
10050
10044
  processCollaborationMigrations() {
10051
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.18"), !this.options.ydoc) return;
10045
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.19"), !this.options.ydoc) return;
10052
10046
  let r = this.options.ydoc.getMap("meta").get("version");
10053
10047
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10054
10048
  const o = dl(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 { p as rn } from "./converter-B25jWkqJ.js";
3
- import { _ as mt, g as kt } from "./editor-DKyTaWEI.js";
2
+ import { p as rn } from "./converter-DsBQa9mA.js";
3
+ import { _ as mt, g as kt } from "./editor-C1MQt5t_.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-B25jWkqJ.js";
1
+ import { O as o } from "./chunks/converter-DsBQa9mA.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,6 +1,6 @@
1
- export function handleEnter(editor: any): void;
2
- export function handleBackspace(editor: any): void;
3
- export function handleDelete(editor: any): void;
1
+ export function handleEnter(editor: any): any;
2
+ export function handleBackspace(editor: any): any;
3
+ export function handleDelete(editor: any): any;
4
4
  /**
5
5
  * For reference.
6
6
  * https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.ts
@@ -1 +1 @@
1
- {"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../../src/core/extensions/keymap.js"],"names":[],"mappings":"AAIO,+CAON;AAEM,mDAWN;AAEM,gDAMN;AAED;;;GAGG;AACH,+BAuCG;0BA7EuB,iBAAiB"}
1
+ {"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../../src/core/extensions/keymap.js"],"names":[],"mappings":"AAIO,8CAON;AAEM,kDAWN;AAEM,+CAMN;AAED;;;GAGG;AACH,+BAuCG;0BA7EuB,iBAAiB"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-B25jWkqJ.js";
2
- import { D as a } from "./chunks/docx-zipper-DNmQADIe.js";
1
+ import "./chunks/converter-DsBQa9mA.js";
2
+ import { D as a } from "./chunks/docx-zipper-BhZqF_Iv.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-DKyTaWEI.js";
2
- import "./chunks/converter-B25jWkqJ.js";
3
- import "./chunks/docx-zipper-DNmQADIe.js";
1
+ import { E as m } from "./chunks/editor-C1MQt5t_.js";
2
+ import "./chunks/converter-DsBQa9mA.js";
3
+ import "./chunks/docx-zipper-BhZqF_Iv.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-DNmQADIe.js";
1
+ import { J as p } from "./chunks/docx-zipper-BhZqF_Iv.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, l, o) => l in t ? yt(t, l, { enumerable: !0, configurable: !0, writ
6
6
  var Re = (t, l, o) => bt(t, typeof l != "symbol" ? l + "" : l, o), qe = (t, l, o) => l.has(t) || Ue("Cannot " + o);
7
7
  var Ae = (t, l, o) => (qe(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Oe = (t, l, o) => l.has(t) ? Ue("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, o);
8
8
  var z = (t, l, o) => (qe(t, l, "access private method"), o);
9
- import { _ as q, a as Ze, b as wt, I as Ne, f as kt, c as Ge, d as Ct, i as _t, u as xt, r as St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-DKyTaWEI.js";
10
- import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-DKyTaWEI.js";
11
- import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-B25jWkqJ.js";
12
- import { O as qo } from "./chunks/converter-B25jWkqJ.js";
9
+ import { _ as q, a as Ze, b as wt, I as Ne, f as kt, c as Ge, d as Ct, i as _t, u as xt, r as St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-C1MQt5t_.js";
10
+ import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-C1MQt5t_.js";
11
+ import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-DsBQa9mA.js";
12
+ import { O as qo } from "./chunks/converter-DsBQa9mA.js";
13
13
  import { ref as f, createElementBlock as k, openBlock as w, createElementVNode as C, unref as D, getCurrentInstance as Rt, computed as j, watch as Ot, onMounted as Ce, 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-C6UiTU1Z.js";
14
+ import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-CKwDSMyY.js";
15
15
  import jt from "./ai-writer.es.js";
16
- import { D as Ko } from "./chunks/docx-zipper-DNmQADIe.js";
16
+ import { D as Ko } from "./chunks/docx-zipper-BhZqF_Iv.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-C6UiTU1Z.js";
3
- import "./chunks/editor-DKyTaWEI.js";
2
+ import { T as p } from "./chunks/toolbar-CKwDSMyY.js";
3
+ import "./chunks/editor-C1MQt5t_.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-D8ziHk1x.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.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.Lx;exports.getActiveFormatting=e.tp;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Sx;exports.getStarterExtensions=e.Cx;exports.helpers=e.Us;exports.trackChangesHelpers=e.Bx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-BpCrZwJM.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.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.Lx;exports.getActiveFormatting=e.tp;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Sx;exports.getStarterExtensions=e.Cx;exports.helpers=e.Us;exports.trackChangesHelpers=e.Bx;
@@ -1,4 +1,4 @@
1
- import { d as t, $ as r, g as o, N as i, Q as n, B as p, O as g, D as l, H as c, M as m, P as u, c as S, a as d, L as x, t as C, m as E, V as h, S as A, C as T, U as b, b as k } from "./chunks/super-editor.es-DE2LvQ4V.es.js";
1
+ import { d as t, $ as r, g as o, N as i, Q as n, B as p, O as g, D as l, H as c, M as m, P as u, c as S, a as d, L as x, t as C, m as E, V as h, S as A, C as T, U as b, b as k } from "./chunks/super-editor.es-C5WxgouW.es.js";
2
2
  import "./chunks/vue-DXpzqXur.es.js";
3
3
  export {
4
4
  t as AIWriter,