@harbour-enterprises/superdoc 0.9.14 → 0.9.15

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 { p as Tt, O as wt, B as ut, Q as Bt, U as Rt } from "./converter-CSYBOjnm.js";
1
+ import { p as Tt, O as wt, B as ut, Q as Bt, U as Rt } from "./converter-Rx70Oyy_.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) => cf(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), jo = (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 df, Item as uf, ContentType as ff, Text as pf, XmlElement as hf } from "yjs";
10
- import { P as G, a as Z, M as lr, N as B, S as J, T as V, b as j, D as zn, F as N, c as Mn, d as mf, e as Kl, A as Mr, p as oe, B as gf, f as Xl, i as yf, g as bt, l as Ar, h as Ht, 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 bf, w as xe, x as eo, y as Zl, z as kn, C as Ho, E as Uo, G as Wo, H as to, I as wf, J as Gs, K as vf, L as kf } from "./converter-CSYBOjnm.js";
10
+ import { P as G, a as Z, M as lr, N as B, S as J, T as V, b as j, D as zn, F as N, c as Mn, d as mf, e as Kl, A as Mr, p as oe, B as gf, f as Xl, i as yf, g as bt, l as Ar, h as Ht, 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 bf, w as xe, x as eo, y as Zl, z as kn, C as Ho, E as Uo, G as Wo, H as to, I as wf, J as Gs, K as vf, L as kf } from "./converter-Rx70Oyy_.js";
11
11
  import { ref as Zs, computed as Cf, createElementBlock as Xt, openBlock as Jt, withModifiers as qo, Fragment as Sf, renderList as xf, normalizeClass as Mf, createCommentVNode as Qs, toDisplayString as Ko, createElementVNode as Af, createApp as Of } from "vue";
12
- import { D as ea } from "./docx-zipper-DJz8LRe8.js";
12
+ import { D as ea } from "./docx-zipper-C3CdrwGR.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) => {
@@ -10017,7 +10017,7 @@ const Xs = class Xs extends og {
10017
10017
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10018
10018
  */
10019
10019
  processCollaborationMigrations() {
10020
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.14"), !this.options.ydoc) return;
10020
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.15"), !this.options.ydoc) return;
10021
10021
  let r = this.options.ydoc.getMap("meta").get("version");
10022
10022
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10023
10023
  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-CSYBOjnm.js";
3
- import { _ as vt, g as Pt } from "./editor-nvPWY9O4.js";
2
+ import { p as tn } from "./converter-Rx70Oyy_.js";
3
+ import { _ as vt, g as Pt } from "./editor-BmA670kK.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 { G as o } from "./chunks/converter-CSYBOjnm.js";
1
+ import { G as o } from "./chunks/converter-Rx70Oyy_.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -46,6 +46,13 @@ export function preProcessNodesForFldChar(nodes: XmlNode[]): any[];
46
46
  * @type {import("docxImporter").NodeHandler}
47
47
  */
48
48
  export const handleParagraphNode: any;
49
+ export function getParagraphIndent(node: any, docx: any, styleId?: string): {
50
+ left: number;
51
+ right: number;
52
+ firstLine: number;
53
+ hanging: number;
54
+ textIndent: number;
55
+ };
49
56
  export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[]): {
50
57
  lineSpaceAfter: number;
51
58
  lineSpaceBefore: number;
@@ -1 +1 @@
1
- {"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AAyMA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,iDAHW,OAAO,EAAE,SA+DnB;AAhXD;;;;;;;GAOG;AACH,sCAgGE;AAEK;;;;;EA8CN;AAkCD;;GAEG;AACH,6CAGE"}
1
+ {"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AAkQA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,iDAHW,OAAO,EAAE,SA+DnB;AAzaD;;;;;;;GAOG;AACH,sCAsGE;AAEK;;;;;;EAwCN;AAEM;;;;;EA8CN;AA2CD;;GAEG;AACH,6CAGE"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CSYBOjnm.js";
2
- import { D as a } from "./chunks/docx-zipper-DJz8LRe8.js";
1
+ import "./chunks/converter-Rx70Oyy_.js";
2
+ import { D as a } from "./chunks/docx-zipper-C3CdrwGR.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-nvPWY9O4.js";
2
- import "./chunks/converter-CSYBOjnm.js";
3
- import "./chunks/docx-zipper-DJz8LRe8.js";
1
+ import { E as m } from "./chunks/editor-BmA670kK.js";
2
+ import "./chunks/converter-Rx70Oyy_.js";
3
+ import "./chunks/docx-zipper-C3CdrwGR.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-DJz8LRe8.js";
1
+ import { J as p } from "./chunks/docx-zipper-C3CdrwGR.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-nvPWY9O4.js";
10
- import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-nvPWY9O4.js";
11
- import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-CSYBOjnm.js";
12
- import { G as To } from "./chunks/converter-CSYBOjnm.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-BmA670kK.js";
10
+ import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-BmA670kK.js";
11
+ import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-Rx70Oyy_.js";
12
+ import { G as To } from "./chunks/converter-Rx70Oyy_.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-BMdokWM_.js";
15
- import { D as Fo } from "./chunks/docx-zipper-DJz8LRe8.js";
14
+ import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-DARtdvYp.js";
15
+ import { D as Fo } from "./chunks/docx-zipper-C3CdrwGR.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-BMdokWM_.js";
3
- import "./chunks/editor-nvPWY9O4.js";
2
+ import { T as p } from "./chunks/toolbar-DARtdvYp.js";
3
+ import "./chunks/editor-BmA670kK.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-gThdNxYA.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.me;exports.DocxZipper=e.Nt;exports.Editor=e.ji;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.Vk;exports.getActiveFormatting=e.Tf;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.Do;exports.getRichTextExtensions=e.Dk;exports.getStarterExtensions=e.Nk;exports.helpers=e.kd;exports.trackChangesHelpers=e.Hk;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-DvZXJuGP.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.me;exports.DocxZipper=e.Nt;exports.Editor=e.ji;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.Vk;exports.getActiveFormatting=e.Tf;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.Do;exports.getRichTextExtensions=e.Dk;exports.getStarterExtensions=e.Nk;exports.helpers=e.kd;exports.trackChangesHelpers=e.Hk;
@@ -1,4 +1,4 @@
1
- import { h as t, m as r, N as o, j as n, g as i, k as p, f as g, v as l, p as c, _ as m, d as u, c as d, V as x, T as S, G as h, D as E, a as T, b as k, e as C, H as b } from "./chunks/super-editor.es-BPwc4j-L.es.js";
1
+ import { h as t, m as r, N as o, j as n, g as i, k as p, f as g, v as l, p as c, _ as m, d as u, c as d, V as x, T as S, G as h, D as E, a as T, b as k, e as C, H as b } from "./chunks/super-editor.es-DuYBhMYe.es.js";
2
2
  import "./chunks/vue-BDbTsTMu.es.js";
3
3
  export {
4
4
  t as BasicUpload,