@harbour-enterprises/superdoc 0.9.18 → 0.9.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.
@@ -16080,7 +16080,7 @@ const dt = class dt {
16080
16080
  return;
16081
16081
  }
16082
16082
  }
16083
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.18") {
16083
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.19") {
16084
16084
  const n = "docProps/custom.xml";
16085
16085
  e[n] || (e[n] = Au());
16086
16086
  const i = e["docProps/custom.xml"];
@@ -16305,7 +16305,7 @@ function zm(r) {
16305
16305
  function Au() {
16306
16306
  return Nf;
16307
16307
  }
16308
- function Du(r = 2, e = "0.9.18") {
16308
+ function Du(r = 2, e = "0.9.19") {
16309
16309
  return {
16310
16310
  type: "element",
16311
16311
  name: "property",
@@ -1,4 +1,4 @@
1
- import { p as Tt, O as wt, B as ut, Q as Bt, U as Rt } from "./converter-D7tzBwl8.js";
1
+ import { p as Tt, O as wt, B as ut, Q as Bt, U as Rt } from "./converter-Tt5zM06f.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) => df(t, typeof e != "symbol" ? e + "" : e, n), Vo = (t, e, n)
7
7
  var Ze = (t, e, n) => (Vo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ut = (t, e, n) => e.has(t) ? Ys("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Ho = (t, e, n, r) => (Vo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), P = (t, e, n) => (Vo(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as uf, Item as ff, ContentType as pf, Text as hf, XmlElement as mf } from "yjs";
10
- import { P as Y, a as G, M as lr, N as B, S as J, T as V, b as H, D as zn, F as N, c as Mn, d as gf, e as Kl, A as Mr, p as ie, B as yf, f as Xl, i as bf, g as bt, l as Ar, h as jt, j as Jl, r as Yl, R as an, o as cr, k as $t, m as yi, n as Gl, q as ue, s as Ve, v as To, t as vn, u as wf, w as xe, x as eo, y as Zl, z as kn, C as jo, E as Uo, G as Wo, H as to, I as vf, J as Gs, K as kf, L as Cf } from "./converter-D7tzBwl8.js";
10
+ import { P as Y, a as G, M as lr, N as B, S as J, T as V, b as H, D as zn, F as N, c as Mn, d as gf, e as Kl, A as Mr, p as ie, B as yf, f as Xl, i as bf, g as bt, l as Ar, h as jt, j as Jl, r as Yl, R as an, o as cr, k as $t, m as yi, n as Gl, q as ue, s as Ve, v as To, t as vn, u as wf, w as xe, x as eo, y as Zl, z as kn, C as jo, E as Uo, G as Wo, H as to, I as vf, J as Gs, K as kf, L as Cf } from "./converter-Tt5zM06f.js";
11
11
  import { ref as Zs, computed as Sf, createElementBlock as Xt, openBlock as Jt, withModifiers as qo, Fragment as xf, renderList as Mf, normalizeClass as Af, createCommentVNode as Qs, toDisplayString as Ko, createElementVNode as Of, createApp as Tf } from "vue";
12
- import { D as ea } from "./docx-zipper-EBPLD6L4.js";
12
+ import { D as ea } from "./docx-zipper-D7PDrqbo.js";
13
13
  function Do(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) => {
@@ -9869,6 +9869,7 @@ const Xs = class Xs extends ig {
9869
9869
  });
9870
9870
  }
9871
9871
  getMaxContentSize() {
9872
+ if (!this.converter) return {};
9872
9873
  const { pageSize: n = {}, pageMargins: r = {} } = this.converter.pageStyles ?? {}, { width: o, height: i } = n, { top: s = 0, bottom: a = 0, left: l = 0, right: c = 0 } = r;
9873
9874
  if (!o || !i) return {};
9874
9875
  const d = i * 96 - s * 96 - a * 96 - 50;
@@ -10017,7 +10018,7 @@ const Xs = class Xs extends ig {
10017
10018
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10018
10019
  */
10019
10020
  processCollaborationMigrations() {
10020
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.18"), !this.options.ydoc) return;
10021
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.19"), !this.options.ydoc) return;
10021
10022
  let r = this.options.ydoc.getMap("meta").get("version");
10022
10023
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10023
10024
  const o = Za(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-D7tzBwl8.js";
3
- import { _ as vt, g as Pt } from "./editor-C3yIzIxA.js";
2
+ import { p as tn } from "./converter-Tt5zM06f.js";
3
+ import { _ as vt, g as Pt } from "./editor-D0ZPyah6.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 +1 @@
1
- {"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAkBO;;;EAm5BN;AAEM,sEAEJ;;;CAAuB,UASvB"}
1
+ {"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAkBO;;;EAo5BN;AAEM,sEAEJ;;;CAAuB,UASvB"}
@@ -61,6 +61,8 @@ export class SuperToolbar extends EventEmitter<string | symbol, any> {
61
61
  };
62
62
  mode: string;
63
63
  excludeItems: any[];
64
+ groups: any;
65
+ editor: any;
64
66
  };
65
67
  toolbarItems: any[];
66
68
  overflowItems: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAeA;IAWE,yBAqCC;IA/CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAMA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAsBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAoL3C,0BAEC;IAED,gCAIC;IAED;;;OAGG;IACH,wBAFW,GAAC,QAKX;IAED,6CAEC;IA2DD;;;OAGG;IACH,2BAyCC;IAED,4BAKE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBApbwB,eAAe"}
1
+ {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAeA;IAaE,yBAsCC;IAlDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAMA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAuBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAoL3C,0BAEC;IAED,gCAIC;IAED;;;OAGG;IACH,wBAFW,GAAC,QAKX;IAED,6CAEC;IA2DD;;;OAGG;IACH,2BAyCC;IAED,4BAKE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBAvbwB,eAAe"}
@@ -1,4 +1,4 @@
1
- import { G as o } from "./chunks/converter-D7tzBwl8.js";
1
+ import { G as o } from "./chunks/converter-Tt5zM06f.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IAwdE;;;OAGG;IACH,sEAQC;IAED,6CAGC;IAED,8DAGC;IAyhBD,sDAKC;IAj8BD,0BAkBC;IA1FD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0DE;IA6GF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAYC;IA0BD;;;OAGG;IACH,+BAmBC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IA4I3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAkDC;IA2HD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IA6CD;;OAEG;IACH;;;qBA8DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAwBC;;CACF;6BAjmC4B,mBAAmB"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IAwdE;;;OAGG;IACH,sEAQC;IAED,6CAGC;IAED,8DAGC;IA0hBD,sDAKC;IAl8BD,0BAkBC;IA1FD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0DE;IA6GF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAYC;IA0BD;;;OAGG;IACH,+BAmBC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IA4I3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAeC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAkDC;IA2HD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IA6CD;;OAEG;IACH;;;qBA8DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAwBC;;CACF;6BAlmC4B,mBAAmB"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-D7tzBwl8.js";
2
- import { D as a } from "./chunks/docx-zipper-EBPLD6L4.js";
1
+ import "./chunks/converter-Tt5zM06f.js";
2
+ import { D as a } from "./chunks/docx-zipper-D7PDrqbo.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-C3yIzIxA.js";
2
- import "./chunks/converter-D7tzBwl8.js";
3
- import "./chunks/docx-zipper-EBPLD6L4.js";
1
+ import { E as m } from "./chunks/editor-D0ZPyah6.js";
2
+ import "./chunks/converter-Tt5zM06f.js";
3
+ import "./chunks/docx-zipper-D7PDrqbo.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-EBPLD6L4.js";
1
+ import { J as p } from "./chunks/docx-zipper-D7PDrqbo.js";
2
2
  async function c(o, t) {
3
3
  const e = new p();
4
4
  return o.forEach((i, n) => {