@harbour-enterprises/superdoc 0.29.0-next.3 → 0.29.0-next.5

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 (37) hide show
  1. package/dist/chunks/{PdfViewer-Chgp4oo5.es.js → PdfViewer-B0-i_xj1.es.js} +2 -2
  2. package/dist/chunks/{PdfViewer-BpumZCV9.cjs → PdfViewer-GDvgD4EV.cjs} +2 -2
  3. package/dist/chunks/{eventemitter3-DkXkH2rT.cjs → eventemitter3-BvTILlBo.cjs} +1 -1
  4. package/dist/chunks/{eventemitter3-BWEnUdTY.es.js → eventemitter3-xrnx5jJP.es.js} +1 -1
  5. package/dist/chunks/{index-BgTTE5c_.cjs → index-BNH18425.cjs} +6 -6
  6. package/dist/chunks/{index-1xrfBcQ5.es.js → index-DyPYyfC3.es.js} +6 -6
  7. package/dist/chunks/{index-DMM1ZLTF-HSEf71Fq.cjs → index-kFcrcUyP-C6zZ0EM9.cjs} +1 -1
  8. package/dist/chunks/{index-DMM1ZLTF-Auz2pz2v.es.js → index-kFcrcUyP-CmyweStu.es.js} +1 -1
  9. package/dist/chunks/{jszip-BDk3JBqp.es.js → jszip-9Y3n05fi.es.js} +1 -1
  10. package/dist/chunks/{jszip-u4dvXAKa.cjs → jszip-B0BPx_cv.cjs} +1 -1
  11. package/dist/chunks/{super-editor.es-Df3qjLTx.es.js → super-editor.es-BmSmyoDe.es.js} +4 -4
  12. package/dist/chunks/{super-editor.es-QOT_8kYn.cjs → super-editor.es-C5LZbA8E.cjs} +4 -4
  13. package/dist/chunks/{vue-DKMj1I9B.cjs → vue-BQxRC6G7.cjs} +44 -27
  14. package/dist/chunks/{vue-ZWZLQtoU.es.js → vue-DVNiXx7E.es.js} +44 -27
  15. package/dist/chunks/xml-js-ByyNjzYS.es.js +2 -0
  16. package/dist/chunks/xml-js-cO2Q8Wfu.cjs +3 -0
  17. package/dist/super-editor/ai-writer.es.js +2 -2
  18. package/dist/super-editor/chunks/{converter-B3pNj2-i.js → converter-CDG8w12p.js} +1 -1
  19. package/dist/super-editor/chunks/{docx-zipper-BZ1Y1Loh.js → docx-zipper-JWGA5kNp.js} +1 -1
  20. package/dist/super-editor/chunks/{editor-DDOF0nYO.js → editor-COcBSJ6s.js} +4 -4
  21. package/dist/super-editor/chunks/{index-DMM1ZLTF.js → index-kFcrcUyP.js} +1 -1
  22. package/dist/super-editor/chunks/{toolbar-DIqq0wJo.js → toolbar-B_CGMnHE.js} +2 -2
  23. package/dist/super-editor/converter.es.js +1 -1
  24. package/dist/super-editor/docx-zipper.es.js +2 -2
  25. package/dist/super-editor/editor.es.js +3 -3
  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 +2 -2
  30. package/dist/super-editor.es.js +2 -2
  31. package/dist/superdoc.cjs +3 -3
  32. package/dist/superdoc.es.js +3 -3
  33. package/dist/superdoc.umd.js +49 -32
  34. package/dist/superdoc.umd.js.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunks/xml-js-D_ZIzxu0.cjs +0 -3
  37. package/dist/chunks/xml-js-Dx4FIjnp.es.js +0 -2
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
12
- import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-B3pNj2-i.js";
13
- import { c1, a5, i, a2 } from "./chunks/converter-B3pNj2-i.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-DDOF0nYO.js";
15
- import { v, C, w, T, q, x, t } from "./chunks/editor-DDOF0nYO.js";
12
+ import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-CDG8w12p.js";
13
+ import { c1, a5, i, a2 } from "./chunks/converter-CDG8w12p.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-COcBSJ6s.js";
15
+ import { v, C, w, T, q, x, t } from "./chunks/editor-COcBSJ6s.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-DIqq0wJo.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-B_CGMnHE.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-BZ1Y1Loh.js";
19
+ import { D } from "./chunks/docx-zipper-JWGA5kNp.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-DIqq0wJo.js";
3
- import "./chunks/editor-DDOF0nYO.js";
2
+ import { T } from "./chunks/toolbar-B_CGMnHE.js";
3
+ import "./chunks/editor-COcBSJ6s.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-QOT_8kYn.cjs");
4
- require("./chunks/vue-DKMj1I9B.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C5LZbA8E.cjs");
4
+ require("./chunks/vue-BQxRC6G7.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.BasicUpload = superEditor_es._sfc_main;
@@ -1,5 +1,5 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-Df3qjLTx.es.js";
2
- import "./chunks/vue-ZWZLQtoU.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BmSmyoDe.es.js";
2
+ import "./chunks/vue-DVNiXx7E.es.js";
3
3
  export {
4
4
  A as AIWriter,
5
5
  a as AnnotatorHelpers,
package/dist/superdoc.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-QOT_8kYn.cjs");
4
- const superdoc = require("./chunks/index-BgTTE5c_.cjs");
5
- require("./chunks/vue-DKMj1I9B.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C5LZbA8E.cjs");
4
+ const superdoc = require("./chunks/index-BNH18425.cjs");
5
+ require("./chunks/vue-BQxRC6G7.cjs");
6
6
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
7
7
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
8
8
  exports.Editor = superEditor_es.Editor;
@@ -1,6 +1,6 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-Df3qjLTx.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-1xrfBcQ5.es.js";
3
- import "./chunks/vue-ZWZLQtoU.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BmSmyoDe.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-DyPYyfC3.es.js";
3
+ import "./chunks/vue-DVNiXx7E.es.js";
4
4
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
5
5
  export {
6
6
  a as AnnotatorHelpers,
@@ -20,7 +20,7 @@
20
20
  }
21
21
  const Y__namespace = /* @__PURE__ */ _interopNamespaceDefault(Y);
22
22
  /**
23
- * @vue/shared v3.5.22
23
+ * @vue/shared v3.5.23
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
26
  **/
@@ -3141,7 +3141,10 @@
3141
3141
  error: error.value
3142
3142
  });
3143
3143
  } else if (loadingComponent && !delayed.value) {
3144
- return createVNode(loadingComponent);
3144
+ return createInnerComp(
3145
+ loadingComponent,
3146
+ instance
3147
+ );
3145
3148
  }
3146
3149
  };
3147
3150
  }
@@ -4556,15 +4559,25 @@
4556
4559
  optimized
4557
4560
  );
4558
4561
  } else {
4559
- patchElement(
4560
- n1,
4561
- n2,
4562
- parentComponent,
4563
- parentSuspense,
4564
- namespace2,
4565
- slotScopeIds,
4566
- optimized
4567
- );
4562
+ const customElement = !!(n1.el && n1.el._isVueCE) ? n1.el : null;
4563
+ try {
4564
+ if (customElement) {
4565
+ customElement._beginPatch();
4566
+ }
4567
+ patchElement(
4568
+ n1,
4569
+ n2,
4570
+ parentComponent,
4571
+ parentSuspense,
4572
+ namespace2,
4573
+ slotScopeIds,
4574
+ optimized
4575
+ );
4576
+ } finally {
4577
+ if (customElement) {
4578
+ customElement._endPatch();
4579
+ }
4580
+ }
4568
4581
  }
4569
4582
  };
4570
4583
  const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized) => {
@@ -6746,7 +6759,7 @@
6746
6759
  setBlockTracking(1);
6747
6760
  }
6748
6761
  }
6749
- const version$1 = "3.5.22";
6762
+ const version$1 = "3.5.23";
6750
6763
  let policy = void 0;
6751
6764
  const tt = typeof window !== "undefined" && window.trustedTypes;
6752
6765
  if (tt) {
@@ -7432,6 +7445,9 @@
7432
7445
  if (key2 === "spellcheck" || key2 === "draggable" || key2 === "translate" || key2 === "autocorrect") {
7433
7446
  return false;
7434
7447
  }
7448
+ if (key2 === "sandbox" && el.tagName === "IFRAME") {
7449
+ return false;
7450
+ }
7435
7451
  if (key2 === "form") {
7436
7452
  return false;
7437
7453
  }
@@ -7526,10 +7542,10 @@
7526
7542
  instance
7527
7543
  )
7528
7544
  );
7529
- positionMap.set(
7530
- child,
7531
- child.el.getBoundingClientRect()
7532
- );
7545
+ positionMap.set(child, {
7546
+ left: child.el.offsetLeft,
7547
+ top: child.el.offsetTop
7548
+ });
7533
7549
  }
7534
7550
  }
7535
7551
  }
@@ -7558,7 +7574,10 @@
7558
7574
  }
7559
7575
  }
7560
7576
  function recordPosition(c2) {
7561
- newPositionMap.set(c2, c2.el.getBoundingClientRect());
7577
+ newPositionMap.set(c2, {
7578
+ left: c2.el.offsetLeft,
7579
+ top: c2.el.offsetTop
7580
+ });
7562
7581
  }
7563
7582
  function applyTranslation(c2) {
7564
7583
  const oldPos = positionMap.get(c2);
@@ -7603,24 +7622,22 @@
7603
7622
  }
7604
7623
  }
7605
7624
  const assignKey = Symbol("_assign");
7625
+ function castValue(value, trim, number2) {
7626
+ if (trim) value = value.trim();
7627
+ if (number2) value = looseToNumber(value);
7628
+ return value;
7629
+ }
7606
7630
  const vModelText = {
7607
7631
  created(el, { modifiers: { lazy, trim, number: number2 } }, vnode) {
7608
7632
  el[assignKey] = getModelAssigner(vnode);
7609
7633
  const castToNumber = number2 || vnode.props && vnode.props.type === "number";
7610
7634
  addEventListener$1(el, lazy ? "change" : "input", (e) => {
7611
7635
  if (e.target.composing) return;
7612
- let domValue = el.value;
7613
- if (trim) {
7614
- domValue = domValue.trim();
7615
- }
7616
- if (castToNumber) {
7617
- domValue = looseToNumber(domValue);
7618
- }
7619
- el[assignKey](domValue);
7636
+ el[assignKey](castValue(el.value, trim, castToNumber));
7620
7637
  });
7621
- if (trim) {
7638
+ if (trim || castToNumber) {
7622
7639
  addEventListener$1(el, "change", () => {
7623
- el.value = el.value.trim();
7640
+ el.value = castValue(el.value, trim, castToNumber);
7624
7641
  });
7625
7642
  }
7626
7643
  if (!lazy) {
@@ -43304,7 +43321,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
43304
43321
  static getStoredSuperdocVersion(docx) {
43305
43322
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
43306
43323
  }
43307
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.3") {
43324
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.5") {
43308
43325
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
43309
43326
  }
43310
43327
  /**
@@ -61493,7 +61510,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61493
61510
  { default: remarkStringify2 },
61494
61511
  { default: remarkGfm2 }
61495
61512
  ] = await Promise.all([
61496
- Promise.resolve().then(() => indexDMM1ZLTF),
61513
+ Promise.resolve().then(() => indexKFcrcUyP),
61497
61514
  Promise.resolve().then(() => indexDRCvimau),
61498
61515
  Promise.resolve().then(() => indexC_x_N6Uh),
61499
61516
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -61711,7 +61728,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61711
61728
  * @returns {Object | void} Migration results
61712
61729
  */
61713
61730
  processCollaborationMigrations() {
61714
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.3");
61731
+ console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.5");
61715
61732
  if (!this.options.ydoc) return;
61716
61733
  const metaMap = this.options.ydoc.getMap("meta");
61717
61734
  let docVersion = metaMap.get("version");
@@ -117622,7 +117639,7 @@ ${style2}
117622
117639
  this.config.colors = shuffleArray(this.config.colors);
117623
117640
  this.userColorMap = /* @__PURE__ */ new Map();
117624
117641
  this.colorIndex = 0;
117625
- this.version = "0.29.0-next.3";
117642
+ this.version = "0.29.0-next.5";
117626
117643
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
117627
117644
  this.superdocId = config2.superdocId || v4();
117628
117645
  this.colors = this.config.colors;
@@ -120022,7 +120039,7 @@ ${style2}
120022
120039
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
120023
120040
  );
120024
120041
  }
120025
- const indexDMM1ZLTF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120042
+ const indexKFcrcUyP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120026
120043
  __proto__: null,
120027
120044
  unified
120028
120045
  }, Symbol.toStringTag, { value: "Module" }));