@harbour-enterprises/superdoc 0.9.12 → 0.9.13

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.
@@ -14724,7 +14724,7 @@ const is = class Vv {
14724
14724
  return;
14725
14725
  }
14726
14726
  }
14727
- static updateDocumentVersion(e = this.convertedXml, n = "0.9.12") {
14727
+ static updateDocumentVersion(e = this.convertedXml, n = "0.9.13") {
14728
14728
  const r = "docProps/custom.xml";
14729
14729
  e[r] || (e[r] = Hv());
14730
14730
  const o = e["docProps/custom.xml"];
@@ -14924,7 +14924,7 @@ function mT(t) {
14924
14924
  function Hv() {
14925
14925
  return sE;
14926
14926
  }
14927
- function Wv(t = 2, e = "0.9.12") {
14927
+ function Wv(t = 2, e = "0.9.13") {
14928
14928
  return {
14929
14929
  type: "element",
14930
14930
  name: "property",
@@ -25900,7 +25900,7 @@ const sM = class L2 extends uO {
25900
25900
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
25901
25901
  */
25902
25902
  processCollaborationMigrations() {
25903
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.12"), !this.options.ydoc) return;
25903
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.13"), !this.options.ydoc) return;
25904
25904
  let e = this.options.ydoc.getMap("meta").get("version");
25905
25905
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
25906
25906
  const n = _y(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -27889,7 +27889,6 @@ const tx = ut.create({
27889
27889
  return Ke.create(n.doc, r);
27890
27890
  },
27891
27891
  apply(e, n, r, o) {
27892
- if (!e.docChanged) return n;
27893
27892
  const i = qy(o, t);
27894
27893
  return Ke.create(o.doc, i);
27895
27894
  }
@@ -27909,7 +27908,7 @@ const tx = ut.create({
27909
27908
  const s = i.nodeBefore?.nodeSize || 0;
27910
27909
  let a = 0;
27911
27910
  try {
27912
- e.state.doc.nodesBetween(o - s - 1, o - 1, (u, d) => {
27911
+ t.doc.nodesBetween(o - s - 1, o - 1, (u, d) => {
27913
27912
  if (u.isText && u.textContent !== " ") {
27914
27913
  const f = r5(e, d);
27915
27914
  a += f;
@@ -14740,7 +14740,7 @@ const dt = class dt {
14740
14740
  return;
14741
14741
  }
14742
14742
  }
14743
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.12") {
14743
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.13") {
14744
14744
  const n = "docProps/custom.xml";
14745
14745
  e[n] || (e[n] = wu());
14746
14746
  const i = e["docProps/custom.xml"];
@@ -14940,7 +14940,7 @@ function Mp(r) {
14940
14940
  function wu() {
14941
14941
  return Ff;
14942
14942
  }
14943
- function bu(r = 2, e = "0.9.12") {
14943
+ function bu(r = 2, e = "0.9.13") {
14944
14944
  return {
14945
14945
  type: "element",
14946
14946
  name: "property",
@@ -1,4 +1,4 @@
1
- import { p as Tt, L as wt, O as ut, Q as Bt, U as Rt } from "./converter-BOga4z8l.js";
1
+ import { p as Tt, L as wt, O as ut, Q as Bt, U as Rt } from "./converter-fQkM_qkr.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) => Hu(t, typeof e != "symbol" ? e + "" : e, n), Po = (t, e, n)
7
7
  var Je = (t, e, n) => (Po(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ct = (t, e, n) => e.has(t) ? $s("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Io = (t, e, n, r) => (Po(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), P = (t, e, n) => (Po(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as Wu, Item as Uu, ContentType as qu, Text as Ku, XmlElement as Xu } from "yjs";
10
- import { P as G, a as J, M as nr, N as B, S as Y, T as V, b as _, D as Ln, F as E, c as Sn, d as Yu, e as Il, A as mr, p as oe, f as Rl, i as Gu, g as gt, l as gr, h as Vt, j as Ll, r as Bl, R as on, o as rr, k as Ft, m as li, n as Fl, q as ue, s as Ve, v as ko, t as yn, u as Ju, w as Me, x as Wr, y as zl, z as bn, B as Ro, C as Lo, E as Bo, G as Ur, H as Zu, I as Vs, J as Qu, K as ef } from "./converter-BOga4z8l.js";
10
+ import { P as G, a as J, M as nr, N as B, S as Y, T as V, b as _, D as Ln, F as E, c as Sn, d as Yu, e as Il, A as mr, p as oe, f as Rl, i as Gu, g as gt, l as gr, h as Vt, j as Ll, r as Bl, R as on, o as rr, k as Ft, m as li, n as Fl, q as ue, s as Ve, v as ko, t as yn, u as Ju, w as Me, x as Wr, y as zl, z as bn, B as Ro, C as Lo, E as Bo, G as Ur, H as Zu, I as Vs, J as Qu, K as ef } from "./converter-fQkM_qkr.js";
11
11
  import { ref as _s, computed as tf, createElementBlock as Ut, openBlock as qt, withModifiers as Fo, Fragment as nf, renderList as rf, normalizeClass as of, createCommentVNode as js, toDisplayString as zo, createElementVNode as sf, createApp as af } from "vue";
12
- import { D as Hs } from "./docx-zipper-CKVfHe_B.js";
12
+ import { D as Hs } from "./docx-zipper-C1n_Ukte.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) => {
@@ -8553,7 +8553,7 @@ const Fs = class Fs extends Gh {
8553
8553
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
8554
8554
  */
8555
8555
  processCollaborationMigrations() {
8556
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.12"), !this.options.ydoc) return;
8556
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.13"), !this.options.ydoc) return;
8557
8557
  let r = this.options.ydoc.getMap("meta").get("version");
8558
8558
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
8559
8559
  const o = za(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10556,7 +10556,6 @@ const Rd = Q.create({
10556
10556
  return L.create(r.doc, o);
10557
10557
  },
10558
10558
  apply(n, r, o, i) {
10559
- if (!n.docChanged) return r;
10560
10559
  const s = Ua(i, t);
10561
10560
  return L.create(i.doc, s);
10562
10561
  }
@@ -10576,7 +10575,7 @@ const Rd = Q.create({
10576
10575
  const s = i.nodeBefore?.nodeSize || 0;
10577
10576
  let a = 0;
10578
10577
  try {
10579
- e.state.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
10578
+ t.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
10580
10579
  if (d.isText && d.textContent !== " ") {
10581
10580
  const f = Vy(e, u);
10582
10581
  a += f;
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as se, openBlock as q, createElementVNode as pn, createCommentVNode as pe, normalizeClass as Zt, normalizeStyle as Jt, 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 _t, createVNode as Et, 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 At, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as E, 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-BOga4z8l.js";
3
- import { _ as vt, g as Pt } from "./editor-CR_HFL3q.js";
2
+ import { p as tn } from "./converter-fQkM_qkr.js";
3
+ import { _ as vt, g as Pt } from "./editor-DrW3w9hr.js";
4
4
  const Mp = (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 { E as o } from "./chunks/converter-BOga4z8l.js";
1
+ import { E as o } from "./chunks/converter-fQkM_qkr.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BOga4z8l.js";
2
- import { D as a } from "./chunks/docx-zipper-CKVfHe_B.js";
1
+ import "./chunks/converter-fQkM_qkr.js";
2
+ import { D as a } from "./chunks/docx-zipper-C1n_Ukte.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-CR_HFL3q.js";
2
- import "./chunks/converter-BOga4z8l.js";
3
- import "./chunks/docx-zipper-CKVfHe_B.js";
1
+ import { E as m } from "./chunks/editor-DrW3w9hr.js";
2
+ import "./chunks/converter-fQkM_qkr.js";
3
+ import "./chunks/docx-zipper-C1n_Ukte.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/extensions/tab/tab.js"],"names":[],"mappings":"AAIA,0BAkEG"}
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/extensions/tab/tab.js"],"names":[],"mappings":"AAIA,0BAiEG"}
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-CKVfHe_B.js";
1
+ import { J as p } from "./chunks/docx-zipper-C1n_Ukte.js";
2
2
  async function c(o, t) {
3
3
  const e = new p();
4
4
  return o.forEach((i, n) => {
@@ -6,13 +6,13 @@ var rt = (t, s, o) => s in t ? at(t, s, { enumerable: !0, configurable: !0, writ
6
6
  var Ie = (t, s, o) => rt(t, typeof s != "symbol" ? s + "" : s, o), Pe = (t, s, o) => s.has(t) || Ne("Cannot " + o);
7
7
  var we = (t, s, o) => (Pe(t, s, "read from private field"), o ? o.call(t) : s.get(t)), Le = (t, s, o) => s.has(t) ? Ne("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, o);
8
8
  var O = (t, s, o) => (Pe(t, s, "access private method"), o);
9
- import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-CR_HFL3q.js";
10
- import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-CR_HFL3q.js";
11
- import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-BOga4z8l.js";
12
- import { E as To } from "./chunks/converter-BOga4z8l.js";
9
+ import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-DrW3w9hr.js";
10
+ import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-DrW3w9hr.js";
11
+ import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-fQkM_qkr.js";
12
+ import { E as To } from "./chunks/converter-fQkM_qkr.js";
13
13
  import { ref as g, createElementBlock as C, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as Et, computed as j, watch as St, onMounted as ke, createCommentVNode as ee, withDirectives as Tt, withKeys as At, normalizeClass as te, withModifiers as be, vModelText as Ft, createTextVNode as It, toDisplayString as ne, Fragment as U, renderList as J, normalizeStyle as Y, createVNode as z, h as W, createApp as Lt, reactive as We, onUnmounted as Mt, shallowRef as qe, onBeforeUnmount as Ge, createBlock as Dt } from "vue";
14
- import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-DvFgTbcC.js";
15
- import { D as Fo } from "./chunks/docx-zipper-CKVfHe_B.js";
14
+ import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-CThx2ucP.js";
15
+ import { D as Fo } from "./chunks/docx-zipper-C1n_Ukte.js";
16
16
  import { createZip as Lo } from "./file-zipper.es.js";
17
17
  var Ke = { exports: {} };
18
18
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-DvFgTbcC.js";
3
- import "./chunks/editor-CR_HFL3q.js";
2
+ import { T as p } from "./chunks/toolbar-CThx2ucP.js";
3
+ import "./chunks/editor-DrW3w9hr.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-C3Z5QNsv.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.Ni;exports.Extensions=e.go;exports.SuperConverter=e.kt;exports.SuperEditor=e.fo;exports.SuperInput=e.vo;exports.SuperToolbar=e.po;exports.Toolbar=e._p;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Ov;exports.getActiveFormatting=e.lf;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.vo$1;exports.getRichTextExtensions=e.mv;exports.getStarterExtensions=e.gv;exports.helpers=e.nd;exports.trackChangesHelpers=e.Dv;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-B1uPFXk3.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.Ni;exports.Extensions=e.go;exports.SuperConverter=e.kt;exports.SuperEditor=e.fo;exports.SuperInput=e.vo;exports.SuperToolbar=e.po;exports.Toolbar=e._p;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Ov;exports.getActiveFormatting=e.lf;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.vo$1;exports.getRichTextExtensions=e.mv;exports.getStarterExtensions=e.gv;exports.helpers=e.nd;exports.trackChangesHelpers=e.Dv;
@@ -1,4 +1,4 @@
1
- import { h as t, a as r, N as o, b as n, g as i, k as p, f as l, v as g, p as c, _ as m, d as u, c as d, O as x, l as S, G as h, e as E, m as k, i as C, n as T, D as b } from "./chunks/super-editor.es-DeN5WcEF.es.js";
1
+ import { h as t, a as r, N as o, b as n, g as i, k as p, f as l, v as g, p as c, _ as m, d as u, c as d, O as x, l as S, G as h, e as E, m as k, i as C, n as T, D as b } from "./chunks/super-editor.es-C6vKHdgD.es.js";
2
2
  import "./chunks/vue-BDbTsTMu.es.js";
3
3
  export {
4
4
  t as BasicUpload,