@harbour-enterprises/superdoc 0.10.19 → 0.10.21

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.
@@ -15476,7 +15476,7 @@ const Sm = [
15476
15476
  };
15477
15477
  function Bm(r, e, t) {
15478
15478
  if (!r) return;
15479
- const { attributes: n } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((D) => D.name === "w:pPr")?.elements?.find((D) => D.name === "w:pStyle")?.attributes["w:val"], f = kr({ node: r, styleId: u, docx: t });
15479
+ const { attributes: n = {} } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((D) => D.name === "w:pPr")?.elements?.find((D) => D.name === "w:pStyle")?.attributes["w:val"], f = kr({ node: r, styleId: u, docx: t });
15480
15480
  if (!f) return {};
15481
15481
  const g = f?.elements.find((D) => D.name === "w:numId")?.attributes["w:val"], S = f?.elements.find((D) => D.name === "w:ilvl")?.attributes["w:val"] || yu(u, t), A = s.find((D) => D.name === "w:pStyle")?.attributes["w:val"], {
15482
15482
  start: F,
@@ -16273,7 +16273,7 @@ const dt = class dt {
16273
16273
  return;
16274
16274
  }
16275
16275
  }
16276
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.19") {
16276
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.21") {
16277
16277
  const n = "docProps/custom.xml";
16278
16278
  e[n] || (e[n] = Fu());
16279
16279
  const i = e["docProps/custom.xml"];
@@ -16292,7 +16292,9 @@ const dt = class dt {
16292
16292
  getDocumentDefaultStyles() {
16293
16293
  const e = this.convertedXml["word/styles.xml"];
16294
16294
  if (!e) return {};
16295
- const n = e.elements[0].elements.find((o) => o.name === "w:docDefaults").elements.find((o) => o.name === "w:rPrDefault"), i = n.elements[0].elements, s = i?.find((o) => o.name === "w:rFonts");
16295
+ const n = e.elements[0].elements.find((o) => o.name === "w:docDefaults").elements.find((o) => o.name === "w:rPrDefault");
16296
+ if (!n.elements) return {};
16297
+ const i = n.elements[0].elements, s = i?.find((o) => o.name === "w:rFonts");
16296
16298
  if ("elements" in n) {
16297
16299
  const o = i.find((g) => g.name === "w:rFonts")?.attributes["w:asciiTheme"];
16298
16300
  let a, u;
@@ -16498,7 +16500,7 @@ function dp(r) {
16498
16500
  function Fu() {
16499
16501
  return zf;
16500
16502
  }
16501
- function Bu(r = 2, e = "0.10.19") {
16503
+ function Bu(r = 2, e = "0.10.21") {
16502
16504
  return {
16503
16505
  type: "element",
16504
16506
  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-BCeb2-D7.js";
1
+ import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-BOz2wTVM.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 P = (t, e, n) => hf(t, typeof e != "symbol" ? e + "" : e, n), Ho = (t, e, n)
7
7
  var Ge = (t, e, n) => (Ho(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? Qs("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo = (t, e, n, r) => (Ho(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), D = (t, e, n) => (Ho(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as mf, Item as gf, ContentType as yf, Text as bf, XmlElement as wf } from "yjs";
10
- import { P as G, a as Z, M as cr, c as K, N as B, S as Y, T as H, b as W, D as Vn, F as I, d as tn, e as vf, f as Zl, A as Ar, p as ie, B as kf, i as Cf, g as Ql, h as Sf, j as wt, l as Or, k as Ht, m as ec, r as tc, R as an, o as dr, n as ea, q as Vt, s as bi, t as nc, u as xf, v as Mf, w as ue, x as Ve, y as Do, z as Cn, C as fo, E as Af, G as Se, H as to, I as rc, J as Sn, K as Wo, L as Uo, O as qo, Q as no, U as Rt, V as ys, W as Of, X as ta, Y as na, Z as Tf, _ as Df, $ as Nf } from "./converter-BCeb2-D7.js";
10
+ import { P as G, a as Z, M as cr, c as K, N as B, S as Y, T as H, b as W, D as Vn, F as I, d as tn, e as vf, f as Zl, A as Ar, p as ie, B as kf, i as Cf, g as Ql, h as Sf, j as wt, l as Or, k as Ht, m as ec, r as tc, R as an, o as dr, n as ea, q as Vt, s as bi, t as nc, u as xf, v as Mf, w as ue, x as Ve, y as Do, z as Cn, C as fo, E as Af, G as Se, H as to, I as rc, J as Sn, K as Wo, L as Uo, O as qo, Q as no, U as Rt, V as ys, W as Of, X as ta, Y as na, Z as Tf, _ as Df, $ as Nf } from "./converter-BOz2wTVM.js";
11
11
  import { ref as ra, computed as Ef, createElementBlock as Kt, openBlock as Xt, withModifiers as Ko, Fragment as If, renderList as Pf, normalizeClass as Rf, createCommentVNode as oa, toDisplayString as Xo, createElementVNode as Lf, createApp as Ff } from "vue";
12
- import { D as ia } from "./docx-zipper-DIG-WaYc.js";
12
+ import { D as ia } from "./docx-zipper-BcsVZrOX.js";
13
13
  function No(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) => {
@@ -10034,7 +10034,7 @@ const Gs = class Gs extends pg {
10034
10034
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10035
10035
  */
10036
10036
  processCollaborationMigrations() {
10037
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.19"), !this.options.ydoc) return;
10037
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.21"), !this.options.ydoc) return;
10038
10038
  let r = this.options.ydoc.getMap("meta").get("version");
10039
10039
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10040
10040
  const o = nl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -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-BCeb2-D7.js";
3
- import { _ as vt, g as Pt } from "./editor-Bs_Uq4bv.js";
2
+ import { p as tn } from "./converter-BOz2wTVM.js";
3
+ import { _ as vt, g as Pt } from "./editor-XIR3NpyI.js";
4
4
  const Tp = (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-BCeb2-D7.js";
1
+ import { O as o } from "./chunks/converter-BOz2wTVM.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAcA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAoFtF,gDAoBC;IAED,6DAqBC;IA7HD,0BA0DC;IAxDC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,YAAiB;IACjB;;;;;MAAsE;IAGtE,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAqCC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,oJAwDC;IAED;;;;;;;;;;MA0BC;;CAgFF"}
1
+ {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAcA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAoFtF,gDAoBC;IAED,6DAqBC;IA7HD,0BA0DC;IAxDC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,YAAiB;IACjB;;;;;MAAsE;IAGtE,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAuCC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,oJAwDC;IAED;;;;;;;;;;MA0BC;;CAgFF"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BCeb2-D7.js";
2
- import { D as a } from "./chunks/docx-zipper-DIG-WaYc.js";
1
+ import "./chunks/converter-BOz2wTVM.js";
2
+ import { D as a } from "./chunks/docx-zipper-BcsVZrOX.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-Bs_Uq4bv.js";
2
- import "./chunks/converter-BCeb2-D7.js";
3
- import "./chunks/docx-zipper-DIG-WaYc.js";
1
+ import { E as m } from "./chunks/editor-XIR3NpyI.js";
2
+ import "./chunks/converter-BOz2wTVM.js";
3
+ import "./chunks/docx-zipper-BcsVZrOX.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-DIG-WaYc.js";
1
+ import { J as p } from "./chunks/docx-zipper-BcsVZrOX.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 dt = (t, l, o) => l in t ? ct(t, l, { enumerable: !0, configurable: !0, writ
6
6
  var $e = (t, l, o) => dt(t, typeof l != "symbol" ? l + "" : l, o), We = (t, l, o) => l.has(t) || Ve("Cannot " + o);
7
7
  var Ee = (t, l, o) => (We(t, l, "read from private field"), o ? o.call(t) : l.get(t)), He = (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 O = (t, l, o) => (We(t, l, "access private method"), o);
9
- import { _ as G, a as Ge, b as ut, I as Be, f as mt, c as je, d as pt, i as ft, u as ht, r as gt, E as Re, e as vt, P as yt, h as bt, M as kt, j as wt, A as Ct, N as _t } from "./chunks/editor-Bs_Uq4bv.js";
10
- import { C as xo, T as Eo, l as So, n as To, k as Ao, m as Fo } from "./chunks/editor-Bs_Uq4bv.js";
11
- import { a1 as xt, y as Et, a3 as St, T as Ke, a as Tt } from "./chunks/converter-BCeb2-D7.js";
12
- import { O as Lo } from "./chunks/converter-BCeb2-D7.js";
9
+ import { _ as G, a as Ge, b as ut, I as Be, f as mt, c as je, d as pt, i as ft, u as ht, r as gt, E as Re, e as vt, P as yt, h as bt, M as kt, j as wt, A as Ct, N as _t } from "./chunks/editor-XIR3NpyI.js";
10
+ import { C as xo, T as Eo, l as So, n as To, k as Ao, m as Fo } from "./chunks/editor-XIR3NpyI.js";
11
+ import { a1 as xt, y as Et, a3 as St, T as Ke, a as Tt } from "./chunks/converter-BOz2wTVM.js";
12
+ import { O as Lo } from "./chunks/converter-BOz2wTVM.js";
13
13
  import { ref as v, createElementBlock as w, openBlock as k, createElementVNode as E, unref as $, getCurrentInstance as At, computed as W, watch as Ft, onMounted as we, createCommentVNode as ne, withDirectives as It, withKeys as Lt, normalizeClass as oe, withModifiers as ke, vModelText as Mt, createTextVNode as Dt, toDisplayString as ie, Fragment as j, renderList as J, normalizeStyle as Y, createVNode as V, h as P, createApp as $t, reactive as Ue, onUnmounted as Ht, shallowRef as Xe, onBeforeUnmount as Ze, createBlock as Bt } from "vue";
14
- import { t as q, s as Rt, T as Ot, N as Z } from "./chunks/toolbar-BGwS09QD.js";
15
- import { D as Do } from "./chunks/docx-zipper-DIG-WaYc.js";
14
+ import { t as q, s as Rt, T as Ot, N as Z } from "./chunks/toolbar-C-HTWKUi.js";
15
+ import { D as Do } from "./chunks/docx-zipper-BcsVZrOX.js";
16
16
  import { createZip as Ho } from "./file-zipper.es.js";
17
17
  var Ye = { exports: {} };
18
18
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-BGwS09QD.js";
3
- import "./chunks/editor-Bs_Uq4bv.js";
2
+ import { T as p } from "./chunks/toolbar-C-HTWKUi.js";
3
+ import "./chunks/editor-XIR3NpyI.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-CUfMXMsJ.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.bo;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.ji;exports.Extensions=e.wo;exports.SuperConverter=e.Nt$1;exports.SuperEditor=e.yo;exports.SuperInput=e.ko;exports.SuperToolbar=e.vo;exports.Toolbar=e.Ip;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Xk;exports.getActiveFormatting=e.Bf;exports.getAllowedImageDimensions=e.Yn;exports.getMarksFromSelection=e.No;exports.getRichTextExtensions=e.Fk;exports.getStarterExtensions=e.Bk;exports.helpers=e.Ad;exports.trackChangesHelpers=e.Yk;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-C1QGjXix.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.bo;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.ji;exports.Extensions=e.wo;exports.SuperConverter=e.Nt$1;exports.SuperEditor=e.yo;exports.SuperInput=e.ko;exports.SuperToolbar=e.vo;exports.Toolbar=e.Ip;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Xk;exports.getActiveFormatting=e.Bf;exports.getAllowedImageDimensions=e.Yn;exports.getMarksFromSelection=e.No;exports.getRichTextExtensions=e.Fk;exports.getStarterExtensions=e.Bk;exports.helpers=e.Ad;exports.trackChangesHelpers=e.Yk;
@@ -1,4 +1,4 @@
1
- import { b as t, h as r, N as o, j as n, w as i, a as p, y as g, k as l, v as c, I as m, d as u, c as d, X as x, B as S, Y as h, e as E, F as k, f as A, A as C, g as T } from "./chunks/super-editor.es-DRh_g0Fr.es.js";
1
+ import { b as t, h as r, N as o, j as n, w as i, a as p, y as g, k as l, v as c, I as m, d as u, c as d, X as x, B as S, Y as h, e as E, F as k, f as A, A as C, g as T } from "./chunks/super-editor.es-BQjOA2NF.es.js";
2
2
  import "./chunks/vue-BDbTsTMu.es.js";
3
3
  export {
4
4
  t as BasicUpload,