@harbour-enterprises/superdoc 0.10.72 → 0.10.73

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.
Files changed (36) hide show
  1. package/dist/chunks/{index-YqE5-6V1.cjs → index-BXKGjuVW.cjs} +1 -1
  2. package/dist/chunks/{index-DHS2ANjv.cjs → index-CqRwYOdx.cjs} +1 -1
  3. package/dist/chunks/{index-DcSLQU3f.es.js → index-DMqh3IMV.es.js} +2 -2
  4. package/dist/chunks/{index-BF-lC4S6.es.js → index-KF0xW8HE.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-C7j1iePP.es.js → super-editor.es-BCwQiJH2.es.js} +7524 -7443
  6. package/dist/chunks/{super-editor.es-CIYZ5Y6P.cjs → super-editor.es-BK7U7y5h.cjs} +85 -85
  7. package/dist/chunks/{url-Cqg7fbSS.cjs → url-6Xu7gR4T.cjs} +1 -1
  8. package/dist/chunks/{url-_K71OnFe.es.js → url-xe7NIKp4.es.js} +1 -1
  9. package/dist/chunks/{xml-js--d8FG5HY.es.js → xml-js-COexJRRq.es.js} +762 -744
  10. package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
  11. package/dist/super-editor/ai-writer.es.js +1 -1
  12. package/dist/super-editor/chunks/{converter-DdoplIcH.js → converter-Ixflu90g.js} +2 -2
  13. package/dist/super-editor/chunks/{docx-zipper-BuLg2ivg.js → docx-zipper-CIQoxaYW.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-CzUrA6Jd.js → editor-BhXIrBQH.js} +2366 -2286
  15. package/dist/super-editor/chunks/{toolbar-DfKr9n4m.js → toolbar-c8nHjhgU.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/Editor.d.ts +9 -0
  18. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  19. package/dist/super-editor/core/helpers/annotator.d.ts +10 -0
  20. package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -0
  21. package/dist/super-editor/docx-zipper.es.js +2 -2
  22. package/dist/super-editor/editor.es.js +3 -3
  23. package/dist/super-editor/extensions/field-annotation/field-annotation-marks-impl.d.ts.map +1 -1
  24. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  25. package/dist/super-editor/extensions/table/table.d.ts.map +1 -1
  26. package/dist/super-editor/file-zipper.es.js +1 -1
  27. package/dist/super-editor/super-editor.es.js +6 -6
  28. package/dist/super-editor/toolbar.es.js +2 -2
  29. package/dist/super-editor.cjs +1 -1
  30. package/dist/super-editor.es.js +2 -2
  31. package/dist/superdoc.cjs +5 -5
  32. package/dist/superdoc.es.js +6 -6
  33. package/dist/superdoc.umd.js +3813 -3733
  34. package/dist/superdoc.umd.js.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunks/xml-js-Zwb1wsIy.cjs +0 -10
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, 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 Vs, onBeforeMount as fr, inject as te, onActivated as Us, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Gs, toRef as se, nextTick as Xs, 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 { p as rn } from "./converter-DdoplIcH.js";
3
- import { _ as mt, g as kt } from "./editor-CzUrA6Jd.js";
2
+ import { p as rn } from "./converter-Ixflu90g.js";
3
+ import { _ as mt, g as kt } from "./editor-BhXIrBQH.js";
4
4
  const _0 = (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-DdoplIcH.js";
1
+ import { O as o } from "./chunks/converter-Ixflu90g.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -218,6 +218,15 @@ export class Editor extends EventEmitter {
218
218
  replaceFile(newFile: any): Promise<void>;
219
219
  getNodesOfType(type: any): any;
220
220
  replaceNodeWithHTML(targetNode: any, html: any): void;
221
+ /**
222
+ * A command to prepare the editor to receive annotations. This will
223
+ * pre-process the document as needed prior to running in the annotator.
224
+ *
225
+ * Currently this is only used for table generation but additional pre-processing can be done here.
226
+ * @param {Array[Object]} annotationValues
227
+ * @returns {void}
228
+ */
229
+ prepareForAnnotations(annotationValues?: any): void;
221
230
  #private;
222
231
  }
223
232
  import { EventEmitter } from './EventEmitter.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAyBA;;GAEG;AACH;IAwgBE;;;OAGG;IACH,sEAQC;IAED,6CAGC;IAED,8DAGC;IAsiBD,sDAKC;IA7/BD,0BAmBC;IA5FD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2DE;IAmIF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,cAEC;IAED;;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,+BA0BC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IAiK3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAeC;IAED;;;;OAIG;IACH,uCAgDC;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;;;qBA+DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCA4BC;IAED,+BAGC;IAED,sDAUC;;CAEF;6BAprC4B,mBAAmB"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA0BA;;GAEG;AACH;IAwgBE;;;OAGG;IACH,sEAQC;IAED,6CAGC;IAED,8DAGC;IAsiBD,sDAKC;IA7/BD,0BAmBC;IA5FD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2DE;IAmIF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,cAEC;IAED;;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,+BA0BC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IAiK3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAeC;IAED;;;;OAIG;IACH,uCAgDC;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;;;qBA+DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCA4BC;IAED,+BAGC;IAED,sDAUC;IAED;;;;;;;OAOG;IACH,+CAFa,IAAI,CAIhB;;CAEF;6BAjsC4B,mBAAmB"}
@@ -0,0 +1,10 @@
1
+ export function getFieldAttrs(field: any, value: any): any;
2
+ export function processTables({ editor, annotationValues }: {
3
+ editor: any;
4
+ annotationValues: any[];
5
+ }): void;
6
+ export namespace AnnotatorServices {
7
+ export { getFieldAttrs };
8
+ export { processTables };
9
+ }
10
+ //# sourceMappingURL=annotator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AASO,2DAcN;AAcM,4DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,QAiBA"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DdoplIcH.js";
2
- import { D as a } from "./chunks/docx-zipper-BuLg2ivg.js";
1
+ import "./chunks/converter-Ixflu90g.js";
2
+ import { D as a } from "./chunks/docx-zipper-CIQoxaYW.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-CzUrA6Jd.js";
2
- import "./chunks/converter-DdoplIcH.js";
3
- import "./chunks/docx-zipper-BuLg2ivg.js";
1
+ import { E as m } from "./chunks/editor-BhXIrBQH.js";
2
+ import "./chunks/converter-Ixflu90g.js";
3
+ import "./chunks/docx-zipper-CIQoxaYW.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"field-annotation-marks-impl.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation-marks-impl.js"],"names":[],"mappings":"AAMA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,kCAonBG"}
1
+ {"version":3,"file":"field-annotation-marks-impl.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation-marks-impl.js"],"names":[],"mappings":"AAMA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,kCAynBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"field-annotation.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation.js"],"names":[],"mappings":"AAQA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,kCA+0BG"}
1
+ {"version":3,"file":"field-annotation.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation.js"],"names":[],"mappings":"AAQA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,kCAq1BG"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/extensions/table/table.js"],"names":[],"mappings":"AAiCA,wBA+TG"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/extensions/table/table.js"],"names":[],"mappings":"AAoCA,wBA+TG"}
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-BuLg2ivg.js";
1
+ import { J as p } from "./chunks/docx-zipper-CIQoxaYW.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 pt = (t, l, o) => l in t ? mt(t, l, { enumerable: !0, configurable: !0, writ
6
6
  var He = (t, l, o) => pt(t, typeof l != "symbol" ? l + "" : l, o), je = (t, l, o) => l.has(t) || Ve("Cannot " + o);
7
7
  var Se = (t, l, o) => (je(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Be = (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 W = (t, l, o) => (je(t, l, "access private method"), o);
9
- import { _ as K, a as Ke, b as ft, I as Re, f as ht, c as Ue, d as gt, i as vt, u as yt, r as bt, E as Oe, e as wt, P as kt, h as Ct, M as _t, j as xt, A as Et, N as St } from "./chunks/editor-CzUrA6Jd.js";
10
- import { C as Lo, T as Mo, l as Do, n as $o, k as Ho, m as Bo } from "./chunks/editor-CzUrA6Jd.js";
11
- import { a1 as At, y as Tt, a3 as Ft, T as Xe, a as It } from "./chunks/converter-DdoplIcH.js";
12
- import { O as Oo } from "./chunks/converter-DdoplIcH.js";
9
+ import { _ as K, a as Ke, b as ft, I as Re, f as ht, c as Ue, d as gt, i as vt, u as yt, r as bt, E as Oe, e as wt, P as kt, h as Ct, M as _t, j as xt, A as Et, N as St } from "./chunks/editor-BhXIrBQH.js";
10
+ import { C as Lo, T as Mo, l as Do, n as $o, k as Ho, m as Bo } from "./chunks/editor-BhXIrBQH.js";
11
+ import { a1 as At, y as Tt, a3 as Ft, T as Xe, a as It } from "./chunks/converter-Ixflu90g.js";
12
+ import { O as Oo } from "./chunks/converter-Ixflu90g.js";
13
13
  import { ref as y, createElementBlock as k, openBlock as w, createElementVNode as _, unref as D, getCurrentInstance as Lt, computed as j, watch as Mt, onMounted as we, createCommentVNode as Q, withDirectives as Dt, withKeys as $t, normalizeClass as ne, withModifiers as be, vModelText as Ht, createTextVNode as Ze, toDisplayString as oe, Fragment as U, renderList as ee, normalizeStyle as J, createVNode as V, h as N, createApp as Bt, reactive as qe, onUnmounted as Rt, shallowRef as Ye, onBeforeUnmount as Je, createBlock as Ot } from "vue";
14
- import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-DfKr9n4m.js";
14
+ import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-c8nHjhgU.js";
15
15
  import Wt from "./ai-writer.es.js";
16
- import { D as zo } from "./chunks/docx-zipper-BuLg2ivg.js";
16
+ import { D as zo } from "./chunks/docx-zipper-CIQoxaYW.js";
17
17
  import { createZip as Po } from "./file-zipper.es.js";
18
18
  var Qe = { exports: {} };
19
19
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-DfKr9n4m.js";
3
- import "./chunks/editor-CzUrA6Jd.js";
2
+ import { T as p } from "./chunks/toolbar-c8nHjhgU.js";
3
+ import "./chunks/editor-BhXIrBQH.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-CIYZ5Y6P.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e.So;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.Xi;exports.Extensions=e.To;exports.SuperConverter=e.Pt;exports.SuperEditor=e.Eo;exports.SuperInput=e.Ao;exports.SuperToolbar=e.xo;exports.Toolbar=e.L0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.ax;exports.getActiveFormatting=e.jf;exports.getAllowedImageDimensions=e.oo;exports.getMarksFromSelection=e.Bo;exports.getRichTextExtensions=e.Jk;exports.getStarterExtensions=e.Yk;exports.helpers=e.$s;exports.trackChangesHelpers=e.cx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-BK7U7y5h.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e.So;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.Ji;exports.Extensions=e.To;exports.SuperConverter=e.Pt;exports.SuperEditor=e.Eo;exports.SuperInput=e.Ao;exports.SuperToolbar=e.xo;exports.Toolbar=e.L0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.gx;exports.getActiveFormatting=e.Uf;exports.getAllowedImageDimensions=e.oo;exports.getMarksFromSelection=e.Bo;exports.getRichTextExtensions=e.ox;exports.getStarterExtensions=e.ix;exports.helpers=e.Vs;exports.trackChangesHelpers=e.bx;
@@ -1,4 +1,4 @@
1
- import { d as r, S as t, g as o, N as i, X as n, T as p, P as g, E as l, A as c, x as m, L as u, c as x, a as S, b as d, j as E, o as A, B as T, J as h, Y as C, $ as b, e as k } from "./chunks/super-editor.es-C7j1iePP.es.js";
1
+ import { d as r, S as t, g as o, N as i, J as n, T as p, P as g, E as l, A as c, x as m, L as u, c as x, a as S, b as d, U as E, o as A, B as T, e as h, i as C, V as b, f } from "./chunks/super-editor.es-BCwQiJH2.es.js";
2
2
  import "./chunks/vue-fDwoASPl.es.js";
3
3
  export {
4
4
  r as AIWriter,
@@ -21,5 +21,5 @@ export {
21
21
  h as getRichTextExtensions,
22
22
  C as getStarterExtensions,
23
23
  b as helpers,
24
- k as trackChangesHelpers
24
+ f as trackChangesHelpers
25
25
  };