@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
@@ -1,5 +1,5 @@
1
- import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-ZWZLQtoU.es.js";
2
- import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-1xrfBcQ5.es.js";
1
+ import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-DVNiXx7E.es.js";
2
+ import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-DyPYyfC3.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vue = require("./vue-DKMj1I9B.cjs");
4
- const superdoc = require("./index-BgTTE5c_.cjs");
3
+ const vue = require("./vue-BQxRC6G7.cjs");
4
+ const superdoc = require("./index-BNH18425.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-u4dvXAKa.cjs");
2
+ const jszip = require("./jszip-B0BPx_cv.cjs");
3
3
  var eventemitter3 = { exports: {} };
4
4
  var hasRequiredEventemitter3;
5
5
  function requireEventemitter3() {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from "./jszip-BDk3JBqp.es.js";
1
+ import { g as getDefaultExportFromCjs } from "./jszip-9Y3n05fi.es.js";
2
2
  var eventemitter3 = { exports: {} };
3
3
  var hasRequiredEventemitter3;
4
4
  function requireEventemitter3() {
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-QOT_8kYn.cjs");
3
- const vue = require("./vue-DKMj1I9B.cjs");
2
+ const superEditor_es = require("./super-editor.es-C5LZbA8E.cjs");
3
+ const vue = require("./vue-BQxRC6G7.cjs");
4
4
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
5
- const eventemitter3 = require("./eventemitter3-DkXkH2rT.cjs");
5
+ const eventemitter3 = require("./eventemitter3-BvTILlBo.cjs");
6
6
  const provider = require("@hocuspocus/provider");
7
7
  const Y = require("yjs");
8
- const jszip = require("./jszip-u4dvXAKa.cjs");
8
+ const jszip = require("./jszip-B0BPx_cv.cjs");
9
9
  const uuid = require("./uuid-R7L08bOx.cjs");
10
10
  function _interopNamespaceDefault(e) {
11
11
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -17173,7 +17173,7 @@ const _sfc_main = {
17173
17173
  __name: "SuperDoc",
17174
17174
  emits: ["selection-update"],
17175
17175
  setup(__props, { emit: __emit }) {
17176
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-BpumZCV9.cjs")));
17176
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-GDvgD4EV.cjs")));
17177
17177
  const superdocStore = useSuperdocStore();
17178
17178
  const commentsStore = useCommentsStore();
17179
17179
  const {
@@ -17937,7 +17937,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
17937
17937
  this.config.colors = shuffleArray(this.config.colors);
17938
17938
  this.userColorMap = /* @__PURE__ */ new Map();
17939
17939
  this.colorIndex = 0;
17940
- this.version = "0.29.0-next.3";
17940
+ this.version = "0.29.0-next.5";
17941
17941
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
17942
17942
  this.superdocId = config.superdocId || uuid.v4();
17943
17943
  this.colors = this.config.colors;
@@ -1,11 +1,11 @@
1
- import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-Df3qjLTx.es.js";
2
- import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-ZWZLQtoU.es.js";
1
+ import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BmSmyoDe.es.js";
2
+ import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-DVNiXx7E.es.js";
3
3
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
4
- import { E as EventEmitter } from "./eventemitter3-BWEnUdTY.es.js";
4
+ import { E as EventEmitter } from "./eventemitter3-xrnx5jJP.es.js";
5
5
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
6
6
  import * as Y from "yjs";
7
7
  import { Doc, Map as Map$2 } from "yjs";
8
- import { B as Buffer$2 } from "./jszip-BDk3JBqp.es.js";
8
+ import { B as Buffer$2 } from "./jszip-9Y3n05fi.es.js";
9
9
  import { v as v4 } from "./uuid-CjlX8hrF.es.js";
10
10
  const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
11
11
  const PDF = "application/pdf";
@@ -17156,7 +17156,7 @@ const _sfc_main = {
17156
17156
  __name: "SuperDoc",
17157
17157
  emits: ["selection-update"],
17158
17158
  setup(__props, { emit: __emit }) {
17159
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-Chgp4oo5.es.js"));
17159
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-B0-i_xj1.es.js"));
17160
17160
  const superdocStore = useSuperdocStore();
17161
17161
  const commentsStore = useCommentsStore();
17162
17162
  const {
@@ -17920,7 +17920,7 @@ class SuperDoc extends EventEmitter {
17920
17920
  this.config.colors = shuffleArray(this.config.colors);
17921
17921
  this.userColorMap = /* @__PURE__ */ new Map();
17922
17922
  this.colorIndex = 0;
17923
- this.version = "0.29.0-next.3";
17923
+ this.version = "0.29.0-next.5";
17924
17924
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
17925
17925
  this.superdocId = config.superdocId || v4();
17926
17926
  this.colors = this.config.colors;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./super-editor.es-QOT_8kYn.cjs");
3
+ const superEditor_es = require("./super-editor.es-C5LZbA8E.cjs");
4
4
  const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
5
5
  function bail(error) {
6
6
  if (error) {
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-Df3qjLTx.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-BmSmyoDe.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,4 +1,4 @@
1
- import "./vue-ZWZLQtoU.es.js";
1
+ import "./vue-DVNiXx7E.es.js";
2
2
  function getDefaultExportFromCjs(x) {
3
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- require("./vue-DKMj1I9B.cjs");
2
+ require("./vue-BQxRC6G7.cjs");
3
3
  function getDefaultExportFromCjs(x) {
4
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { g as global$2, c as createElementBlock, o as openBlock, a as createBaseVNode, r as ref$1, b as createApp, d as computed, F as Fragment$1, e as renderList, n as normalizeClass, w as withModifiers, f as createCommentVNode, t as toDisplayString, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as withCtx, z as createTextVNode, A as normalizeStyle, B as h$1, C as toRef, D as provide, E as mergeProps, G as cloneVNode, T as Text$2, H as withDirectives, I as watchEffect, J as shallowRef, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-ZWZLQtoU.es.js";
1
+ import { g as global$2, c as createElementBlock, o as openBlock, a as createBaseVNode, r as ref$1, b as createApp, d as computed, F as Fragment$1, e as renderList, n as normalizeClass, w as withModifiers, f as createCommentVNode, t as toDisplayString, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as withCtx, z as createTextVNode, A as normalizeStyle, B as h$1, C as toRef, D as provide, E as mergeProps, G as cloneVNode, T as Text$2, H as withDirectives, I as watchEffect, J as shallowRef, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-DVNiXx7E.es.js";
2
2
  import * as Y from "yjs";
3
3
  import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
4
4
  var __defProp$2 = Object.defineProperty;
@@ -35589,7 +35589,7 @@ const _SuperConverter = class _SuperConverter2 {
35589
35589
  static getStoredSuperdocVersion(docx) {
35590
35590
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35591
35591
  }
35592
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.3") {
35592
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.5") {
35593
35593
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35594
35594
  }
35595
35595
  /**
@@ -53778,7 +53778,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53778
53778
  { default: remarkStringify },
53779
53779
  { default: remarkGfm }
53780
53780
  ] = await Promise.all([
53781
- import("./index-DMM1ZLTF-Auz2pz2v.es.js"),
53781
+ import("./index-kFcrcUyP-CmyweStu.es.js"),
53782
53782
  import("./index-DRCvimau-Cw339678.es.js"),
53783
53783
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
53784
53784
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -53996,7 +53996,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53996
53996
  * @returns {Object | void} Migration results
53997
53997
  */
53998
53998
  processCollaborationMigrations() {
53999
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.3");
53999
+ console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.5");
54000
54000
  if (!this.options.ydoc) return;
54001
54001
  const metaMap = this.options.ydoc.getMap("meta");
54002
54002
  let docVersion = metaMap.get("version");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const vue = require("./vue-DKMj1I9B.cjs");
2
+ const vue = require("./vue-BQxRC6G7.cjs");
3
3
  const Y = require("yjs");
4
4
  function _interopNamespaceDefault(e) {
5
5
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -35606,7 +35606,7 @@ const _SuperConverter = class _SuperConverter2 {
35606
35606
  static getStoredSuperdocVersion(docx) {
35607
35607
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35608
35608
  }
35609
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.3") {
35609
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.5") {
35610
35610
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35611
35611
  }
35612
35612
  /**
@@ -53795,7 +53795,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53795
53795
  { default: remarkStringify },
53796
53796
  { default: remarkGfm }
53797
53797
  ] = await Promise.all([
53798
- Promise.resolve().then(() => require("./index-DMM1ZLTF-HSEf71Fq.cjs")),
53798
+ Promise.resolve().then(() => require("./index-kFcrcUyP-C6zZ0EM9.cjs")),
53799
53799
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
53800
53800
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
53801
53801
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -54013,7 +54013,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
54013
54013
  * @returns {Object | void} Migration results
54014
54014
  */
54015
54015
  processCollaborationMigrations() {
54016
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.3");
54016
+ console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.5");
54017
54017
  if (!this.options.ydoc) return;
54018
54018
  const metaMap = this.options.ydoc.getMap("meta");
54019
54019
  let docVersion = metaMap.get("version");
@@ -163,7 +163,7 @@ process.umask = function() {
163
163
  var browserExports = browser.exports;
164
164
  const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
165
165
  /**
166
- * @vue/shared v3.5.22
166
+ * @vue/shared v3.5.23
167
167
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
168
168
  * @license MIT
169
169
  **/
@@ -3854,7 +3854,10 @@ function defineAsyncComponent(source) {
3854
3854
  error: error.value
3855
3855
  });
3856
3856
  } else if (loadingComponent && !delayed.value) {
3857
- return createVNode(loadingComponent);
3857
+ return createInnerComp(
3858
+ loadingComponent,
3859
+ instance
3860
+ );
3858
3861
  }
3859
3862
  };
3860
3863
  }
@@ -5771,15 +5774,25 @@ function baseCreateRenderer(options, createHydrationFns) {
5771
5774
  optimized
5772
5775
  );
5773
5776
  } else {
5774
- patchElement(
5775
- n1,
5776
- n2,
5777
- parentComponent,
5778
- parentSuspense,
5779
- namespace,
5780
- slotScopeIds,
5781
- optimized
5782
- );
5777
+ const customElement = !!(n1.el && n1.el._isVueCE) ? n1.el : null;
5778
+ try {
5779
+ if (customElement) {
5780
+ customElement._beginPatch();
5781
+ }
5782
+ patchElement(
5783
+ n1,
5784
+ n2,
5785
+ parentComponent,
5786
+ parentSuspense,
5787
+ namespace,
5788
+ slotScopeIds,
5789
+ optimized
5790
+ );
5791
+ } finally {
5792
+ if (customElement) {
5793
+ customElement._endPatch();
5794
+ }
5795
+ }
5783
5796
  }
5784
5797
  };
5785
5798
  const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
@@ -8585,7 +8598,7 @@ function initCustomFormatter() {
8585
8598
  window.devtoolsFormatters = [formatter];
8586
8599
  }
8587
8600
  }
8588
- const version = "3.5.22";
8601
+ const version = "3.5.23";
8589
8602
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8590
8603
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8591
8604
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -9302,6 +9315,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
9302
9315
  if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
9303
9316
  return false;
9304
9317
  }
9318
+ if (key === "sandbox" && el.tagName === "IFRAME") {
9319
+ return false;
9320
+ }
9305
9321
  if (key === "form") {
9306
9322
  return false;
9307
9323
  }
@@ -9396,10 +9412,10 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
9396
9412
  instance
9397
9413
  )
9398
9414
  );
9399
- positionMap.set(
9400
- child,
9401
- child.el.getBoundingClientRect()
9402
- );
9415
+ positionMap.set(child, {
9416
+ left: child.el.offsetLeft,
9417
+ top: child.el.offsetTop
9418
+ });
9403
9419
  }
9404
9420
  }
9405
9421
  }
@@ -9430,7 +9446,10 @@ function callPendingCbs(c) {
9430
9446
  }
9431
9447
  }
9432
9448
  function recordPosition(c) {
9433
- newPositionMap.set(c, c.el.getBoundingClientRect());
9449
+ newPositionMap.set(c, {
9450
+ left: c.el.offsetLeft,
9451
+ top: c.el.offsetTop
9452
+ });
9434
9453
  }
9435
9454
  function applyTranslation(c) {
9436
9455
  const oldPos = positionMap.get(c);
@@ -9475,24 +9494,22 @@ function onCompositionEnd(e) {
9475
9494
  }
9476
9495
  }
9477
9496
  const assignKey = Symbol("_assign");
9497
+ function castValue(value, trim, number) {
9498
+ if (trim) value = value.trim();
9499
+ if (number) value = looseToNumber(value);
9500
+ return value;
9501
+ }
9478
9502
  const vModelText = {
9479
9503
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
9480
9504
  el[assignKey] = getModelAssigner(vnode);
9481
9505
  const castToNumber = number || vnode.props && vnode.props.type === "number";
9482
9506
  addEventListener(el, lazy ? "change" : "input", (e) => {
9483
9507
  if (e.target.composing) return;
9484
- let domValue = el.value;
9485
- if (trim) {
9486
- domValue = domValue.trim();
9487
- }
9488
- if (castToNumber) {
9489
- domValue = looseToNumber(domValue);
9490
- }
9491
- el[assignKey](domValue);
9508
+ el[assignKey](castValue(el.value, trim, castToNumber));
9492
9509
  });
9493
- if (trim) {
9510
+ if (trim || castToNumber) {
9494
9511
  addEventListener(el, "change", () => {
9495
- el.value = el.value.trim();
9512
+ el.value = castValue(el.value, trim, castToNumber);
9496
9513
  });
9497
9514
  }
9498
9515
  if (!lazy) {
@@ -162,7 +162,7 @@ process.umask = function() {
162
162
  var browserExports = browser.exports;
163
163
  const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
164
164
  /**
165
- * @vue/shared v3.5.22
165
+ * @vue/shared v3.5.23
166
166
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
167
167
  * @license MIT
168
168
  **/
@@ -3853,7 +3853,10 @@ function defineAsyncComponent(source) {
3853
3853
  error: error.value
3854
3854
  });
3855
3855
  } else if (loadingComponent && !delayed.value) {
3856
- return createVNode(loadingComponent);
3856
+ return createInnerComp(
3857
+ loadingComponent,
3858
+ instance
3859
+ );
3857
3860
  }
3858
3861
  };
3859
3862
  }
@@ -5770,15 +5773,25 @@ function baseCreateRenderer(options, createHydrationFns) {
5770
5773
  optimized
5771
5774
  );
5772
5775
  } else {
5773
- patchElement(
5774
- n1,
5775
- n2,
5776
- parentComponent,
5777
- parentSuspense,
5778
- namespace,
5779
- slotScopeIds,
5780
- optimized
5781
- );
5776
+ const customElement = !!(n1.el && n1.el._isVueCE) ? n1.el : null;
5777
+ try {
5778
+ if (customElement) {
5779
+ customElement._beginPatch();
5780
+ }
5781
+ patchElement(
5782
+ n1,
5783
+ n2,
5784
+ parentComponent,
5785
+ parentSuspense,
5786
+ namespace,
5787
+ slotScopeIds,
5788
+ optimized
5789
+ );
5790
+ } finally {
5791
+ if (customElement) {
5792
+ customElement._endPatch();
5793
+ }
5794
+ }
5782
5795
  }
5783
5796
  };
5784
5797
  const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
@@ -8584,7 +8597,7 @@ function initCustomFormatter() {
8584
8597
  window.devtoolsFormatters = [formatter];
8585
8598
  }
8586
8599
  }
8587
- const version = "3.5.22";
8600
+ const version = "3.5.23";
8588
8601
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8589
8602
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8590
8603
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -9301,6 +9314,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
9301
9314
  if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
9302
9315
  return false;
9303
9316
  }
9317
+ if (key === "sandbox" && el.tagName === "IFRAME") {
9318
+ return false;
9319
+ }
9304
9320
  if (key === "form") {
9305
9321
  return false;
9306
9322
  }
@@ -9395,10 +9411,10 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
9395
9411
  instance
9396
9412
  )
9397
9413
  );
9398
- positionMap.set(
9399
- child,
9400
- child.el.getBoundingClientRect()
9401
- );
9414
+ positionMap.set(child, {
9415
+ left: child.el.offsetLeft,
9416
+ top: child.el.offsetTop
9417
+ });
9402
9418
  }
9403
9419
  }
9404
9420
  }
@@ -9429,7 +9445,10 @@ function callPendingCbs(c) {
9429
9445
  }
9430
9446
  }
9431
9447
  function recordPosition(c) {
9432
- newPositionMap.set(c, c.el.getBoundingClientRect());
9448
+ newPositionMap.set(c, {
9449
+ left: c.el.offsetLeft,
9450
+ top: c.el.offsetTop
9451
+ });
9433
9452
  }
9434
9453
  function applyTranslation(c) {
9435
9454
  const oldPos = positionMap.get(c);
@@ -9474,24 +9493,22 @@ function onCompositionEnd(e) {
9474
9493
  }
9475
9494
  }
9476
9495
  const assignKey = Symbol("_assign");
9496
+ function castValue(value, trim, number) {
9497
+ if (trim) value = value.trim();
9498
+ if (number) value = looseToNumber(value);
9499
+ return value;
9500
+ }
9477
9501
  const vModelText = {
9478
9502
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
9479
9503
  el[assignKey] = getModelAssigner(vnode);
9480
9504
  const castToNumber = number || vnode.props && vnode.props.type === "number";
9481
9505
  addEventListener(el, lazy ? "change" : "input", (e) => {
9482
9506
  if (e.target.composing) return;
9483
- let domValue = el.value;
9484
- if (trim) {
9485
- domValue = domValue.trim();
9486
- }
9487
- if (castToNumber) {
9488
- domValue = looseToNumber(domValue);
9489
- }
9490
- el[assignKey](domValue);
9507
+ el[assignKey](castValue(el.value, trim, castToNumber));
9491
9508
  });
9492
- if (trim) {
9509
+ if (trim || castToNumber) {
9493
9510
  addEventListener(el, "change", () => {
9494
- el.value = el.value.trim();
9511
+ el.value = castValue(el.value, trim, castToNumber);
9495
9512
  });
9496
9513
  }
9497
9514
  if (!lazy) {
@@ -0,0 +1,2 @@
1
+ import "./vue-DVNiXx7E.es.js";
2
+ import "./jszip-9Y3n05fi.es.js";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ require("./vue-BQxRC6G7.cjs");
3
+ require("./jszip-B0BPx_cv.cjs");
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
2
- import { T as TextSelection } from "./chunks/converter-B3pNj2-i.js";
3
- import { _ as _export_sfc } from "./chunks/editor-DDOF0nYO.js";
2
+ import { T as TextSelection } from "./chunks/converter-CDG8w12p.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-COcBSJ6s.js";
4
4
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
5
5
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
6
6
  async function baseInsightsFetch(payload, options = {}) {
@@ -35596,7 +35596,7 @@ const _SuperConverter = class _SuperConverter {
35596
35596
  static getStoredSuperdocVersion(docx) {
35597
35597
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
35598
35598
  }
35599
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.29.0-next.3") {
35599
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.29.0-next.5") {
35600
35600
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
35601
35601
  }
35602
35602
  /**
@@ -1,4 +1,4 @@
1
- import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-B3pNj2-i.js";
1
+ import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-CDG8w12p.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, applyIndentStyling_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-B3pNj2-i.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-CDG8w12p.js";
16
16
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
17
- import { D as DocxZipper } from "./docx-zipper-BZ1Y1Loh.js";
17
+ import { D as DocxZipper } from "./docx-zipper-JWGA5kNp.js";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
20
20
  };
@@ -15072,7 +15072,7 @@ const _Editor = class _Editor extends EventEmitter {
15072
15072
  { default: remarkStringify },
15073
15073
  { default: remarkGfm }
15074
15074
  ] = await Promise.all([
15075
- import("./index-DMM1ZLTF.js"),
15075
+ import("./index-kFcrcUyP.js"),
15076
15076
  import("./index-DRCvimau.js"),
15077
15077
  import("./index-C_x_N6Uh.js"),
15078
15078
  import("./index-D_sWOSiG.js"),
@@ -15290,7 +15290,7 @@ const _Editor = class _Editor extends EventEmitter {
15290
15290
  * @returns {Object | void} Migration results
15291
15291
  */
15292
15292
  processCollaborationMigrations() {
15293
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.3");
15293
+ console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.5");
15294
15294
  if (!this.options.ydoc) return;
15295
15295
  const metaMap = this.options.ydoc.getMap("meta");
15296
15296
  let docVersion = metaMap.get("version");
@@ -1,4 +1,4 @@
1
- import { aA as getDefaultExportFromCjs } from "./converter-B3pNj2-i.js";
1
+ import { aA as getDefaultExportFromCjs } from "./converter-CDG8w12p.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-B3pNj2-i.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DDOF0nYO.js";
2
+ import { p as process$1 } from "./converter-CDG8w12p.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-COcBSJ6s.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { a5 } from "./chunks/converter-B3pNj2-i.js";
1
+ import { a5 } from "./chunks/converter-CDG8w12p.js";
2
2
  import "vue";
3
3
  export {
4
4
  a5 as SuperConverter
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-B3pNj2-i.js";
2
- import { D } from "./chunks/docx-zipper-BZ1Y1Loh.js";
1
+ import "./chunks/converter-CDG8w12p.js";
2
+ import { D } from "./chunks/docx-zipper-JWGA5kNp.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DDOF0nYO.js";
2
- import "./chunks/converter-B3pNj2-i.js";
3
- import "./chunks/docx-zipper-BZ1Y1Loh.js";
1
+ import { E } from "./chunks/editor-COcBSJ6s.js";
2
+ import "./chunks/converter-CDG8w12p.js";
3
+ import "./chunks/docx-zipper-JWGA5kNp.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-BZ1Y1Loh.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-JWGA5kNp.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {