@harbour-enterprises/superdoc 0.21.2 → 0.21.3

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-BI_j6JKS.cjs → PdfViewer-65ZP0swI.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-B8NGBTSu.es.js → PdfViewer-CZqsbBTY.es.js} +2 -2
  3. package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-CR2eBWft.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DSRogsNq.cjs} +1 -1
  5. package/dist/chunks/{index-tTdOfgF_.cjs → index-D2LskHSS.cjs} +6 -6
  6. package/dist/chunks/{index-CBHfvgkG.es.js → index-DK8WZbrv.es.js} +6 -6
  7. package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-B4LDL19y.cjs} +1 -1
  8. package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-DAXEPCUv.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-BIEh7qVW.es.js → super-editor.es-DH3SY8p3.es.js} +22 -24
  10. package/dist/chunks/{super-editor.es-BHEMJ9ST.cjs → super-editor.es-qo57gD5K.cjs} +22 -24
  11. package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
  12. package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
  13. package/dist/chunks/xml-js-Bbc0NeKa.es.js +2 -0
  14. package/dist/chunks/xml-js-CWV8R-ek.cjs +3 -0
  15. package/dist/core/types/index.d.ts.map +1 -1
  16. package/dist/super-editor/ai-writer.es.js +2 -2
  17. package/dist/super-editor/chunks/{converter-D7lP9y8P.js → converter-BrLR9C8w.js} +18 -20
  18. package/dist/super-editor/chunks/{docx-zipper-_TMbHpUQ.js → docx-zipper-j3g5CahY.js} +1 -1
  19. package/dist/super-editor/chunks/{editor-BuT5uWdz.js → editor-BCwaQpiF.js} +5 -5
  20. package/dist/super-editor/chunks/{toolbar-6ZwZPyNU.js → toolbar-CExvA6pn.js} +2 -2
  21. package/dist/super-editor/converter.es.js +1 -1
  22. package/dist/super-editor/docx-zipper.es.js +2 -2
  23. package/dist/super-editor/editor.es.js +3 -3
  24. package/dist/super-editor/file-zipper.es.js +1 -1
  25. package/dist/super-editor/src/core/Attribute.d.ts +2 -2
  26. package/dist/super-editor/src/core/Schema.d.ts +2 -2
  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 +4 -4
  32. package/dist/superdoc.es.js +4 -4
  33. package/dist/superdoc.umd.js +56 -58
  34. package/dist/superdoc.umd.js.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
  37. package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vue = require("./vue-DWle4Cai.cjs");
4
- const superdoc = require("./index-tTdOfgF_.cjs");
3
+ const vue = require("./vue-DKMj1I9B.cjs");
4
+ const superdoc = require("./index-D2LskHSS.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -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-CXxsqYcP.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-CBHfvgkG.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-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-DK8WZbrv.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from "./jszip-B8KIZSNe.es.js";
1
+ import { g as getDefaultExportFromCjs } from "./jszip-DAXEPCUv.es.js";
2
2
  var eventemitter3 = { exports: {} };
3
3
  var hasRequiredEventemitter3;
4
4
  function requireEventemitter3() {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-b7l8QkfH.cjs");
2
+ const jszip = require("./jszip-B4LDL19y.cjs");
3
3
  var eventemitter3 = { exports: {} };
4
4
  var hasRequiredEventemitter3;
5
5
  function requireEventemitter3() {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-BHEMJ9ST.cjs");
3
- const vue = require("./vue-DWle4Cai.cjs");
4
- const jszip = require("./jszip-b7l8QkfH.cjs");
2
+ const superEditor_es = require("./super-editor.es-qo57gD5K.cjs");
3
+ const vue = require("./vue-DKMj1I9B.cjs");
4
+ const jszip = require("./jszip-B4LDL19y.cjs");
5
5
  const blankDocx = require("./blank-docx-CPqX9RF5.cjs");
6
- const eventemitter3 = require("./eventemitter3-B_kO1Pxm.cjs");
6
+ const eventemitter3 = require("./eventemitter3-DSRogsNq.cjs");
7
7
  const provider = require("@hocuspocus/provider");
8
8
  const Y = require("yjs");
9
9
  const uuid = require("./uuid-CQzaMNgL.cjs");
@@ -17409,7 +17409,7 @@ const _sfc_main = {
17409
17409
  __name: "SuperDoc",
17410
17410
  emits: ["selection-update"],
17411
17411
  setup(__props, { emit: __emit }) {
17412
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-BI_j6JKS.cjs")));
17412
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-65ZP0swI.cjs")));
17413
17413
  const superdocStore = useSuperdocStore();
17414
17414
  const commentsStore = useCommentsStore();
17415
17415
  const {
@@ -18054,7 +18054,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18054
18054
  this.config.colors = shuffleArray(this.config.colors);
18055
18055
  this.userColorMap = /* @__PURE__ */ new Map();
18056
18056
  this.colorIndex = 0;
18057
- this.version = "0.21.2";
18057
+ this.version = "0.21.3";
18058
18058
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18059
18059
  this.superdocId = config.superdocId || uuid.v4();
18060
18060
  this.colors = this.config.colors;
@@ -1,8 +1,8 @@
1
- import { q as index$1, 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-BIEh7qVW.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-CXxsqYcP.es.js";
3
- import { B as Buffer$2 } from "./jszip-B8KIZSNe.es.js";
1
+ import { q as index$1, 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-DH3SY8p3.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";
3
+ import { B as Buffer$2 } from "./jszip-DAXEPCUv.es.js";
4
4
  import { B as BlankDOCX } from "./blank-docx-iwdyG9RH.es.js";
5
- import { E as EventEmitter } from "./eventemitter3-CZv6vEhA.es.js";
5
+ import { E as EventEmitter } from "./eventemitter3-CR2eBWft.es.js";
6
6
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
7
7
  import * as Y from "yjs";
8
8
  import { Doc, Map as Map$2 } from "yjs";
@@ -17392,7 +17392,7 @@ const _sfc_main = {
17392
17392
  __name: "SuperDoc",
17393
17393
  emits: ["selection-update"],
17394
17394
  setup(__props, { emit: __emit }) {
17395
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-B8NGBTSu.es.js"));
17395
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-CZqsbBTY.es.js"));
17396
17396
  const superdocStore = useSuperdocStore();
17397
17397
  const commentsStore = useCommentsStore();
17398
17398
  const {
@@ -18037,7 +18037,7 @@ class SuperDoc extends EventEmitter {
18037
18037
  this.config.colors = shuffleArray(this.config.colors);
18038
18038
  this.userColorMap = /* @__PURE__ */ new Map();
18039
18039
  this.colorIndex = 0;
18040
- this.version = "0.21.2";
18040
+ this.version = "0.21.3";
18041
18041
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18042
18042
  this.superdocId = config.superdocId || v4();
18043
18043
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- require("./vue-DWle4Cai.cjs");
2
+ require("./vue-DKMj1I9B.cjs");
3
3
  var buffer = {};
4
4
  var base64Js = {};
5
5
  base64Js.byteLength = byteLength;
@@ -1,4 +1,4 @@
1
- import "./vue-CXxsqYcP.es.js";
1
+ import "./vue-ZWZLQtoU.es.js";
2
2
  var buffer = {};
3
3
  var base64Js = {};
4
4
  base64Js.byteLength = byteLength;
@@ -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-CXxsqYcP.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-ZWZLQtoU.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;
@@ -5094,6 +5094,19 @@ function requireSafeRegexTest() {
5094
5094
  };
5095
5095
  return safeRegexTest;
5096
5096
  }
5097
+ var generatorFunction;
5098
+ var hasRequiredGeneratorFunction;
5099
+ function requireGeneratorFunction() {
5100
+ if (hasRequiredGeneratorFunction) return generatorFunction;
5101
+ hasRequiredGeneratorFunction = 1;
5102
+ const cached = (
5103
+ /** @type {GeneratorFunctionConstructor} */
5104
+ function* () {
5105
+ }.constructor
5106
+ );
5107
+ generatorFunction = () => cached;
5108
+ return generatorFunction;
5109
+ }
5097
5110
  var isGeneratorFunction;
5098
5111
  var hasRequiredIsGeneratorFunction;
5099
5112
  function requireIsGeneratorFunction() {
@@ -5106,16 +5119,7 @@ function requireIsGeneratorFunction() {
5106
5119
  var getProto2 = requireGetProto();
5107
5120
  var toStr = callBound2("Object.prototype.toString");
5108
5121
  var fnToStr = callBound2("Function.prototype.toString");
5109
- var getGeneratorFunc = function() {
5110
- if (!hasToStringTag) {
5111
- return false;
5112
- }
5113
- try {
5114
- return Function("return function*() {}")();
5115
- } catch (e) {
5116
- }
5117
- };
5118
- var GeneratorFunction;
5122
+ var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
5119
5123
  isGeneratorFunction = function isGeneratorFunction2(fn2) {
5120
5124
  if (typeof fn2 !== "function") {
5121
5125
  return false;
@@ -5130,14 +5134,8 @@ function requireIsGeneratorFunction() {
5130
5134
  if (!getProto2) {
5131
5135
  return false;
5132
5136
  }
5133
- if (typeof GeneratorFunction === "undefined") {
5134
- var generatorFunc = getGeneratorFunc();
5135
- GeneratorFunction = generatorFunc ? (
5136
- /** @type {GeneratorFunctionConstructor} */
5137
- getProto2(generatorFunc)
5138
- ) : false;
5139
- }
5140
- return getProto2(fn2) === GeneratorFunction;
5137
+ var GeneratorFunction = getGeneratorFunction();
5138
+ return GeneratorFunction && getProto2(fn2) === GeneratorFunction.prototype;
5141
5139
  };
5142
5140
  return isGeneratorFunction;
5143
5141
  }
@@ -33440,7 +33438,7 @@ const _SuperConverter = class _SuperConverter2 {
33440
33438
  return;
33441
33439
  }
33442
33440
  }
33443
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.21.2") {
33441
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.21.3") {
33444
33442
  const customLocation = "docProps/custom.xml";
33445
33443
  if (!docx[customLocation]) {
33446
33444
  docx[customLocation] = generateCustomXml();
@@ -33929,7 +33927,7 @@ function storeSuperdocVersion(docx) {
33929
33927
  function generateCustomXml() {
33930
33928
  return DEFAULT_CUSTOM_XML;
33931
33929
  }
33932
- function generateSuperdocVersion(pid = 2, version2 = "0.21.2") {
33930
+ function generateSuperdocVersion(pid = 2, version2 = "0.21.3") {
33933
33931
  return {
33934
33932
  type: "element",
33935
33933
  name: "property",
@@ -41591,8 +41589,7 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
41591
41589
  let $to = parse.doc.resolveNoCache(change.endB - parse.from);
41592
41590
  let $fromA = doc2.resolve(change.start);
41593
41591
  let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
41594
- let nextSel;
41595
- if ((ios && view.input.lastIOSEnter > Date.now() - 225 && (!inlineChange || addedNodes.some((n) => n.nodeName == "DIV" || n.nodeName == "P")) || !inlineChange && $from.pos < parse.doc.content.size && (!$from.sameParent($to) || !$from.parent.inlineContent) && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")) && (nextSel = Selection.findFrom(parse.doc.resolve($from.pos + 1), 1, true)) && nextSel.head > $from.pos) && view.someProp("handleKeyDown", (f) => f(view, keyEvent(13, "Enter")))) {
41592
+ if ((ios && view.input.lastIOSEnter > Date.now() - 225 && (!inlineChange || addedNodes.some((n) => n.nodeName == "DIV" || n.nodeName == "P")) || !inlineChange && $from.pos < parse.doc.content.size && (!$from.sameParent($to) || !$from.parent.inlineContent) && $from.pos < $to.pos && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", ""))) && view.someProp("handleKeyDown", (f) => f(view, keyEvent(13, "Enter")))) {
41596
41593
  view.input.lastIOSEnter = 0;
41597
41594
  return;
41598
41595
  }
@@ -51386,7 +51383,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
51386
51383
  * @returns {Object | void} Migration results
51387
51384
  */
51388
51385
  processCollaborationMigrations() {
51389
- console.debug("[checkVersionMigrations] Current editor version", "0.21.2");
51386
+ console.debug("[checkVersionMigrations] Current editor version", "0.21.3");
51390
51387
  if (!this.options.ydoc) return;
51391
51388
  const metaMap = this.options.ydoc.getMap("meta");
51392
51389
  let docVersion = metaMap.get("version");
@@ -69227,6 +69224,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
69227
69224
  return actualBreak;
69228
69225
  }
69229
69226
  const onImageLoad = (editor) => {
69227
+ if (typeof requestAnimationFrame !== "function") return;
69230
69228
  requestAnimationFrame(() => {
69231
69229
  const newTr = editor.view.state.tr;
69232
69230
  newTr.setMeta("forceUpdatePagination", true);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const vue = require("./vue-DWle4Cai.cjs");
2
+ const vue = require("./vue-DKMj1I9B.cjs");
3
3
  const Y = require("yjs");
4
4
  function _interopNamespaceDefault(e) {
5
5
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -5111,6 +5111,19 @@ function requireSafeRegexTest() {
5111
5111
  };
5112
5112
  return safeRegexTest;
5113
5113
  }
5114
+ var generatorFunction;
5115
+ var hasRequiredGeneratorFunction;
5116
+ function requireGeneratorFunction() {
5117
+ if (hasRequiredGeneratorFunction) return generatorFunction;
5118
+ hasRequiredGeneratorFunction = 1;
5119
+ const cached = (
5120
+ /** @type {GeneratorFunctionConstructor} */
5121
+ function* () {
5122
+ }.constructor
5123
+ );
5124
+ generatorFunction = () => cached;
5125
+ return generatorFunction;
5126
+ }
5114
5127
  var isGeneratorFunction;
5115
5128
  var hasRequiredIsGeneratorFunction;
5116
5129
  function requireIsGeneratorFunction() {
@@ -5123,16 +5136,7 @@ function requireIsGeneratorFunction() {
5123
5136
  var getProto2 = requireGetProto();
5124
5137
  var toStr = callBound2("Object.prototype.toString");
5125
5138
  var fnToStr = callBound2("Function.prototype.toString");
5126
- var getGeneratorFunc = function() {
5127
- if (!hasToStringTag) {
5128
- return false;
5129
- }
5130
- try {
5131
- return Function("return function*() {}")();
5132
- } catch (e) {
5133
- }
5134
- };
5135
- var GeneratorFunction;
5139
+ var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
5136
5140
  isGeneratorFunction = function isGeneratorFunction2(fn2) {
5137
5141
  if (typeof fn2 !== "function") {
5138
5142
  return false;
@@ -5147,14 +5151,8 @@ function requireIsGeneratorFunction() {
5147
5151
  if (!getProto2) {
5148
5152
  return false;
5149
5153
  }
5150
- if (typeof GeneratorFunction === "undefined") {
5151
- var generatorFunc = getGeneratorFunc();
5152
- GeneratorFunction = generatorFunc ? (
5153
- /** @type {GeneratorFunctionConstructor} */
5154
- getProto2(generatorFunc)
5155
- ) : false;
5156
- }
5157
- return getProto2(fn2) === GeneratorFunction;
5154
+ var GeneratorFunction = getGeneratorFunction();
5155
+ return GeneratorFunction && getProto2(fn2) === GeneratorFunction.prototype;
5158
5156
  };
5159
5157
  return isGeneratorFunction;
5160
5158
  }
@@ -33457,7 +33455,7 @@ const _SuperConverter = class _SuperConverter2 {
33457
33455
  return;
33458
33456
  }
33459
33457
  }
33460
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.21.2") {
33458
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.21.3") {
33461
33459
  const customLocation = "docProps/custom.xml";
33462
33460
  if (!docx[customLocation]) {
33463
33461
  docx[customLocation] = generateCustomXml();
@@ -33946,7 +33944,7 @@ function storeSuperdocVersion(docx) {
33946
33944
  function generateCustomXml() {
33947
33945
  return DEFAULT_CUSTOM_XML;
33948
33946
  }
33949
- function generateSuperdocVersion(pid = 2, version2 = "0.21.2") {
33947
+ function generateSuperdocVersion(pid = 2, version2 = "0.21.3") {
33950
33948
  return {
33951
33949
  type: "element",
33952
33950
  name: "property",
@@ -41608,8 +41606,7 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
41608
41606
  let $to = parse.doc.resolveNoCache(change.endB - parse.from);
41609
41607
  let $fromA = doc2.resolve(change.start);
41610
41608
  let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
41611
- let nextSel;
41612
- if ((ios && view.input.lastIOSEnter > Date.now() - 225 && (!inlineChange || addedNodes.some((n) => n.nodeName == "DIV" || n.nodeName == "P")) || !inlineChange && $from.pos < parse.doc.content.size && (!$from.sameParent($to) || !$from.parent.inlineContent) && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")) && (nextSel = Selection.findFrom(parse.doc.resolve($from.pos + 1), 1, true)) && nextSel.head > $from.pos) && view.someProp("handleKeyDown", (f) => f(view, keyEvent(13, "Enter")))) {
41609
+ if ((ios && view.input.lastIOSEnter > Date.now() - 225 && (!inlineChange || addedNodes.some((n) => n.nodeName == "DIV" || n.nodeName == "P")) || !inlineChange && $from.pos < parse.doc.content.size && (!$from.sameParent($to) || !$from.parent.inlineContent) && $from.pos < $to.pos && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", ""))) && view.someProp("handleKeyDown", (f) => f(view, keyEvent(13, "Enter")))) {
41613
41610
  view.input.lastIOSEnter = 0;
41614
41611
  return;
41615
41612
  }
@@ -51403,7 +51400,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
51403
51400
  * @returns {Object | void} Migration results
51404
51401
  */
51405
51402
  processCollaborationMigrations() {
51406
- console.debug("[checkVersionMigrations] Current editor version", "0.21.2");
51403
+ console.debug("[checkVersionMigrations] Current editor version", "0.21.3");
51407
51404
  if (!this.options.ydoc) return;
51408
51405
  const metaMap = this.options.ydoc.getMap("meta");
51409
51406
  let docVersion = metaMap.get("version");
@@ -69244,6 +69241,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
69244
69241
  return actualBreak;
69245
69242
  }
69246
69243
  const onImageLoad = (editor) => {
69244
+ if (typeof requestAnimationFrame !== "function") return;
69247
69245
  requestAnimationFrame(() => {
69248
69246
  const newTr = editor.view.state.tr;
69249
69247
  newTr.setMeta("forceUpdatePagination", true);
@@ -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.21
166
+ * @vue/shared v3.5.22
167
167
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
168
168
  * @license MIT
169
169
  **/
@@ -1127,7 +1127,7 @@ function iterator(self2, method, wrapValue) {
1127
1127
  iter._next = iter.next;
1128
1128
  iter.next = () => {
1129
1129
  const result = iter._next();
1130
- if (result.value) {
1130
+ if (!result.done) {
1131
1131
  result.value = wrapValue(result.value);
1132
1132
  }
1133
1133
  return result;
@@ -1253,7 +1253,8 @@ class BaseReactiveHandler {
1253
1253
  return res;
1254
1254
  }
1255
1255
  if (isRef(res)) {
1256
- return targetIsArray && isIntegerKey(key) ? res : res.value;
1256
+ const value = targetIsArray && isIntegerKey(key) ? res : res.value;
1257
+ return isReadonly2 && isObject(value) ? readonly(value) : value;
1257
1258
  }
1258
1259
  if (isObject(res)) {
1259
1260
  return isReadonly2 ? readonly(res) : reactive(res);
@@ -2494,14 +2495,11 @@ function checkRecursiveUpdates(seen, fn) {
2494
2495
  let isHmrUpdating = false;
2495
2496
  const hmrDirtyComponents = /* @__PURE__ */ new Map();
2496
2497
  if (!!(process$1.env.NODE_ENV !== "production")) {
2497
- const g = getGlobalThis();
2498
- if (!g.__VUE_HMR_RUNTIME__) {
2499
- g.__VUE_HMR_RUNTIME__ = {
2500
- createRecord: tryWrap(createRecord),
2501
- rerender: tryWrap(rerender),
2502
- reload: tryWrap(reload)
2503
- };
2504
- }
2498
+ getGlobalThis().__VUE_HMR_RUNTIME__ = {
2499
+ createRecord: tryWrap(createRecord),
2500
+ rerender: tryWrap(rerender),
2501
+ reload: tryWrap(reload)
2502
+ };
2505
2503
  }
2506
2504
  const map = /* @__PURE__ */ new Map();
2507
2505
  function registerHMR(instance) {
@@ -2870,9 +2868,6 @@ const TeleportImpl = {
2870
2868
  insert(mainAnchor, container, anchor);
2871
2869
  const mount = (container2, anchor2) => {
2872
2870
  if (shapeFlag & 16) {
2873
- if (parentComponent && parentComponent.isCE) {
2874
- parentComponent.ce._teleportTarget = container2;
2875
- }
2876
2871
  mountChildren(
2877
2872
  children,
2878
2873
  container2,
@@ -2894,6 +2889,9 @@ const TeleportImpl = {
2894
2889
  } else if (namespace !== "mathml" && isTargetMathML(target)) {
2895
2890
  namespace = "mathml";
2896
2891
  }
2892
+ if (parentComponent && parentComponent.isCE) {
2893
+ (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
2894
+ }
2897
2895
  if (!disabled) {
2898
2896
  mount(target, targetAnchor);
2899
2897
  updateCssVars(n2, false);
@@ -4059,11 +4057,12 @@ function renderList(source, renderItem, cache, index) {
4059
4057
  }
4060
4058
  function renderSlot(slots, name, props = {}, fallback, noSlotted) {
4061
4059
  if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
4060
+ const hasProps = Object.keys(props).length > 0;
4062
4061
  return openBlock(), createBlock(
4063
4062
  Fragment,
4064
4063
  null,
4065
4064
  [createVNode("slot", props, fallback)],
4066
- 64
4065
+ hasProps ? -2 : 64
4067
4066
  );
4068
4067
  }
4069
4068
  let slot = slots[name];
@@ -8383,31 +8382,28 @@ const computed = (getterOrOptions, debugOptions) => {
8383
8382
  return c;
8384
8383
  };
8385
8384
  function h(type, propsOrChildren, children) {
8386
- const doCreateVNode = (type2, props, children2) => {
8385
+ try {
8387
8386
  setBlockTracking(-1);
8388
- try {
8389
- return createVNode(type2, props, children2);
8390
- } finally {
8391
- setBlockTracking(1);
8392
- }
8393
- };
8394
- const l = arguments.length;
8395
- if (l === 2) {
8396
- if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
8397
- if (isVNode(propsOrChildren)) {
8398
- return doCreateVNode(type, null, [propsOrChildren]);
8387
+ const l = arguments.length;
8388
+ if (l === 2) {
8389
+ if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
8390
+ if (isVNode(propsOrChildren)) {
8391
+ return createVNode(type, null, [propsOrChildren]);
8392
+ }
8393
+ return createVNode(type, propsOrChildren);
8394
+ } else {
8395
+ return createVNode(type, null, propsOrChildren);
8399
8396
  }
8400
- return doCreateVNode(type, propsOrChildren);
8401
8397
  } else {
8402
- return doCreateVNode(type, null, propsOrChildren);
8403
- }
8404
- } else {
8405
- if (l > 3) {
8406
- children = Array.prototype.slice.call(arguments, 2);
8407
- } else if (l === 3 && isVNode(children)) {
8408
- children = [children];
8398
+ if (l > 3) {
8399
+ children = Array.prototype.slice.call(arguments, 2);
8400
+ } else if (l === 3 && isVNode(children)) {
8401
+ children = [children];
8402
+ }
8403
+ return createVNode(type, propsOrChildren, children);
8409
8404
  }
8410
- return doCreateVNode(type, propsOrChildren, children);
8405
+ } finally {
8406
+ setBlockTracking(1);
8411
8407
  }
8412
8408
  }
8413
8409
  function initCustomFormatter() {
@@ -8589,7 +8585,7 @@ function initCustomFormatter() {
8589
8585
  window.devtoolsFormatters = [formatter];
8590
8586
  }
8591
8587
  }
8592
- const version = "3.5.21";
8588
+ const version = "3.5.22";
8593
8589
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8594
8590
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8595
8591
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -8799,11 +8795,11 @@ function resolveTransitionProps(rawProps) {
8799
8795
  const resolve2 = () => finishLeave(el, done);
8800
8796
  addTransitionClass(el, leaveFromClass);
8801
8797
  if (!el._enterCancelled) {
8802
- forceReflow();
8798
+ forceReflow(el);
8803
8799
  addTransitionClass(el, leaveActiveClass);
8804
8800
  } else {
8805
8801
  addTransitionClass(el, leaveActiveClass);
8806
- forceReflow();
8802
+ forceReflow(el);
8807
8803
  }
8808
8804
  nextFrame(() => {
8809
8805
  if (!el._isLeaving) {
@@ -8949,8 +8945,9 @@ function toMs(s) {
8949
8945
  if (s === "auto") return 0;
8950
8946
  return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
8951
8947
  }
8952
- function forceReflow() {
8953
- return document.body.offsetHeight;
8948
+ function forceReflow(el) {
8949
+ const targetDocument = el ? el.ownerDocument : document;
8950
+ return targetDocument.body.offsetHeight;
8954
8951
  }
8955
8952
  function patchClass(el, value, isSVG) {
8956
8953
  const transitionClasses = el[vtcKey];
@@ -9360,7 +9357,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
9360
9357
  prevChildren.forEach(callPendingCbs);
9361
9358
  prevChildren.forEach(recordPosition);
9362
9359
  const movedChildren = prevChildren.filter(applyTranslation);
9363
- forceReflow();
9360
+ forceReflow(instance.vnode.el);
9364
9361
  movedChildren.forEach((c) => {
9365
9362
  const el = c.el;
9366
9363
  const style = el.style;