@harbour-enterprises/superdoc 0.12.7 → 0.12.9

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.
@@ -1,4 +1,4 @@
1
- import { x as Tt, a1 as wt, B as ut, a2 as Bt, a3 as Rt, a4 as Dt } from "./converter-DPOXB8vR.js";
1
+ import { x as Tt, a1 as wt, B as ut, a2 as Bt, a3 as Rt, a4 as Dt } from "./converter-DwU26GOB.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 = (e, t, n) => Xf(e, typeof t != "symbol" ? t + "" : t, n), si = (e, t, n)
7
7
  var Qe = (e, t, n) => (si(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ma("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ai = (e, t, n, r) => (si(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), O = (e, t, n) => (si(e, t, "access private method"), n);
8
8
  import * as D from "yjs";
9
9
  import { UndoManager as Jf, Item as Yf, ContentType as Gf, Text as Zf, XmlElement as Qf, encodeStateAsUpdate as ep } from "yjs";
10
- import { P as K, a as X, M as mr, c as Y, i as tp, S as kc, T as j, b as wt, l as Pr, A as Ir, d as Wt, j as xc, N as z, r as Sc, e as ee, F as E, R as ln, f as W, o as gr, g as ga, D as Rt, h as Ht, k as Bi, m as Mc, n as np, p as rp, q as xn, s as To, t as op, u as Wn, v as ip, w as Cc, x as oe, B as sp, y as ap, z as de, C as Ve, E as Rr, G as Se, H as ho, I as Ac, J as Sn, K as li, L as ci, O as di, Q as mo, U as ya, V as Lt, W as qo, X as lp, Y as ba, Z as wa, _ as cp, $ as dp, a0 as up } from "./converter-DPOXB8vR.js";
10
+ import { P as K, a as X, M as mr, c as Y, i as tp, S as kc, T as j, b as wt, l as Pr, A as Ir, d as Wt, j as xc, N as z, r as Sc, e as ee, F as E, R as ln, f as W, o as gr, g as ga, D as Rt, h as Ht, k as Bi, m as Mc, n as np, p as rp, q as xn, s as To, t as op, u as Wn, v as ip, w as Cc, x as oe, B as sp, y as ap, z as de, C as Ve, E as Rr, G as Se, H as ho, I as Ac, J as Sn, K as li, L as ci, O as di, Q as mo, U as ya, V as Lt, W as qo, X as lp, Y as ba, Z as wa, _ as cp, $ as dp, a0 as up } from "./converter-DwU26GOB.js";
11
11
  import { ref as va, computed as fp, createElementBlock as Jt, openBlock as Yt, withModifiers as ui, Fragment as pp, renderList as hp, normalizeClass as mp, createCommentVNode as ka, toDisplayString as fi, createElementVNode as gp, createApp as yp } from "vue";
12
- import { D as xa } from "./docx-zipper-DTjI-Z4r.js";
12
+ import { D as xa } from "./docx-zipper-B8X1Ex3_.js";
13
13
  function Ko(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) => {
@@ -9313,6 +9313,7 @@ const Zs = ({
9313
9313
  mediaFiles: e.options.mediaFiles,
9314
9314
  fonts: e.options.fonts,
9315
9315
  isHeaderOrFooter: !0,
9316
+ annotations: !0,
9316
9317
  onCreate: (h) => Ub(h, e),
9317
9318
  onBlur: (h) => ru(h, e, o, i)
9318
9319
  }), p = n.querySelector(".ProseMirror");
@@ -10671,7 +10672,7 @@ const pa = class pa extends fb {
10671
10672
  * @returns {Object | void} Migration results
10672
10673
  */
10673
10674
  processCollaborationMigrations() {
10674
- if (console.debug("[checkVersionMigrations] Current editor version", "0.12.7"), !this.options.ydoc) return;
10675
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.12.9"), !this.options.ydoc) return;
10675
10676
  let r = this.options.ydoc.getMap("meta").get("version");
10676
10677
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10677
10678
  const o = wl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -1,6 +1,6 @@
1
1
  import { computed as I, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as P, 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 E, 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-DPOXB8vR.js";
3
- import { _ as mt, g as kt } from "./editor-aYSWfnOz.js";
2
+ import { x as rn } from "./converter-DwU26GOB.js";
3
+ import { _ as mt, g as kt } from "./editor-4XloIer6.js";
4
4
  const O0 = (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-DPOXB8vR.js";
1
+ import { O as o } from "./chunks/converter-DwU26GOB.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DPOXB8vR.js";
2
- import { D as a } from "./chunks/docx-zipper-DTjI-Z4r.js";
1
+ import "./chunks/converter-DwU26GOB.js";
2
+ import { D as a } from "./chunks/docx-zipper-B8X1Ex3_.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-aYSWfnOz.js";
2
- import "./chunks/converter-DPOXB8vR.js";
3
- import "./chunks/docx-zipper-DTjI-Z4r.js";
1
+ import { E as m } from "./chunks/editor-4XloIer6.js";
2
+ import "./chunks/converter-DwU26GOB.js";
3
+ import "./chunks/docx-zipper-B8X1Ex3_.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;QA8DN;AAEM,6EAeN;AAEM,0GAiBN;AAEM;;;8DAmBN;0BAtMyB,mBAAmB"}
1
+ {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;QA+DN;AAEM,6EAeN;AAEM,0GAiBN;AAEM;;;8DAmBN;0BAvMyB,mBAAmB"}
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-DTjI-Z4r.js";
1
+ import { J as p } from "./chunks/docx-zipper-B8X1Ex3_.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 kt = (e, s, t) => s in e ? Ct(e, s, { enumerable: !0, configurable: !0, writ
6
6
  var ze = (e, s, t) => kt(e, typeof s != "symbol" ? s + "" : s, t), Ke = (e, s, t) => s.has(e) || Ge("Cannot " + t);
7
7
  var Te = (e, s, t) => (Ke(e, s, "read from private field"), t ? t.call(e) : s.get(e)), Re = (e, s, t) => s.has(e) ? Ge("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t);
8
8
  var N = (e, s, t) => (Ke(e, s, "access private method"), t);
9
- import { _ as q, a as Je, b as _t, I as Oe, f as xt, c as Xe, d as St, i as Et, u as At, r as Tt, E as Ne, e as Ft, P as It, h as Lt, M as Mt, j as Dt, A as Ht, N as Bt } from "./chunks/editor-aYSWfnOz.js";
10
- import { C as Po, T as jo, l as Uo, n as qo, k as Go, m as Ko } from "./chunks/editor-aYSWfnOz.js";
11
- import { a2 as $t, E as zt, a5 as Rt, T as Qe, a as Ot } from "./chunks/converter-DPOXB8vR.js";
12
- import { O as Zo } from "./chunks/converter-DPOXB8vR.js";
9
+ import { _ as q, a as Je, b as _t, I as Oe, f as xt, c as Xe, d as St, i as Et, u as At, r as Tt, E as Ne, e as Ft, P as It, h as Lt, M as Mt, j as Dt, A as Ht, N as Bt } from "./chunks/editor-4XloIer6.js";
10
+ import { C as Po, T as jo, l as Uo, n as qo, k as Go, m as Ko } from "./chunks/editor-4XloIer6.js";
11
+ import { a2 as $t, E as zt, a5 as Rt, T as Qe, a as Ot } from "./chunks/converter-DwU26GOB.js";
12
+ import { O as Zo } from "./chunks/converter-DwU26GOB.js";
13
13
  import { ref as h, createElementBlock as k, openBlock as C, createElementVNode as _, unref as M, getCurrentInstance as Nt, computed as j, watch as Wt, onMounted as Ce, createCommentVNode as ee, withDirectives as et, withKeys as tt, normalizeClass as te, withModifiers as he, vModelText as nt, createTextVNode as ot, toDisplayString as ie, Fragment as U, renderList as ne, normalizeStyle as Q, createVNode as P, h as $, createApp as Vt, reactive as Ze, onUnmounted as Pt, shallowRef as it, onBeforeUnmount as st, createBlock as jt } from "vue";
14
- import { t as Z, s as Ut, T as qt, N as J } from "./chunks/toolbar-B5CeHdmH.js";
14
+ import { t as Z, s as Ut, T as qt, N as J } from "./chunks/toolbar-CjFzVIKb.js";
15
15
  import Gt from "./ai-writer.es.js";
16
- import { D as Jo } from "./chunks/docx-zipper-DTjI-Z4r.js";
16
+ import { D as Jo } from "./chunks/docx-zipper-B8X1Ex3_.js";
17
17
  import { createZip as ei } from "./file-zipper.es.js";
18
18
  var at = { exports: {} };
19
19
  (function(e) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-B5CeHdmH.js";
3
- import "./chunks/editor-aYSWfnOz.js";
2
+ import { T as p } from "./chunks/toolbar-CjFzVIKb.js";
3
+ import "./chunks/editor-4XloIer6.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-BMTopH0N.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.Ro;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ls;exports.Extensions=e.No;exports.SuperConverter=e.Ot;exports.SuperEditor=e.zo;exports.SuperInput=e.Oo;exports.SuperToolbar=e.$o;exports.Toolbar=e.R0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.wS;exports.getActiveFormatting=e.bp;exports.getAllowedImageDimensions=e.vo;exports.getMarksFromSelection=e.Ko;exports.getRichTextExtensions=e.aS;exports.getStarterExtensions=e.lS;exports.helpers=e.zs;exports.trackChangesHelpers=e.kS;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-DIWme65_.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.Ro;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ls;exports.Extensions=e.No;exports.SuperConverter=e.Ot;exports.SuperEditor=e.zo;exports.SuperInput=e.Oo;exports.SuperToolbar=e.$o;exports.Toolbar=e.R0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.wS;exports.getActiveFormatting=e.bp;exports.getAllowedImageDimensions=e.vo;exports.getMarksFromSelection=e.Ko;exports.getRichTextExtensions=e.aS;exports.getStarterExtensions=e.lS;exports.helpers=e.zs;exports.trackChangesHelpers=e.kS;
@@ -1,4 +1,4 @@
1
- import { x as r, R as t, g as o, P as i, l as n, N as p, O as l, z as g, a as c, $ as m, b as u, c as x, d, w as S, e as h, v as E, K as k, f as A, h as C, i as T, k as b } from "./chunks/super-editor.es-CvWf9Igx.es.js";
1
+ import { x as r, R as t, g as o, P as i, l as n, N as p, O as l, z as g, a as c, $ as m, b as u, c as x, d, w as S, e as h, v as E, K as k, f as A, h as C, i as T, k as b } from "./chunks/super-editor.es-BI8I7zQw.es.js";
2
2
  import "./chunks/vue-DKS68Dra.es.js";
3
3
  export {
4
4
  r as AIWriter,