superdoc 1.0.0-beta.59 → 1.0.0-beta.60

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 (28) hide show
  1. package/dist/chunks/{PdfViewer-Cqk3l90H.cjs → PdfViewer-4-HewDUK.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-zpn99sVp.es.js → PdfViewer-C4HeazGQ.es.js} +1 -1
  3. package/dist/chunks/{index-Cjipvbt7.cjs → index-9qSCXVF1.cjs} +43 -15
  4. package/dist/chunks/{index-DjmaOC4E.es.js → index-BKfoD32c.es.js} +43 -15
  5. package/dist/chunks/{index-p5nUefNA-BBn8gZoL.cjs → index-GAzIoyrZ-C17wg4bM.cjs} +1 -1
  6. package/dist/chunks/{index-p5nUefNA-uQGvl206.es.js → index-GAzIoyrZ-zhiF5zMK.es.js} +1 -1
  7. package/dist/chunks/{super-editor.es-B_aU9Ilo.es.js → super-editor.es-CJ3Aw1GR.es.js} +4 -4
  8. package/dist/chunks/{super-editor.es-jT-SK1Sx.cjs → super-editor.es-DCHFBNql.cjs} +4 -4
  9. package/dist/style.css +27 -27
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-CGbieO55.js → converter-DZ7Tkh7u.js} +1 -1
  12. package/dist/super-editor/chunks/{docx-zipper-BFro6vIZ.js → docx-zipper-CZQWEuyi.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-D4VwHdPT.js → editor-CDMuD1Nx.js} +5 -5
  14. package/dist/super-editor/chunks/{index-p5nUefNA.js → index-GAzIoyrZ.js} +1 -1
  15. package/dist/super-editor/chunks/{toolbar-CxnmhVxL.js → toolbar-DL3rTlKm.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +2 -2
  25. package/dist/superdoc.es.js +2 -2
  26. package/dist/superdoc.umd.js +46 -18
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-jWLMl8Ts.cjs");
4
- const superdoc = require("./index-Cjipvbt7.cjs");
4
+ const superdoc = require("./index-9qSCXVF1.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  import { y as defineComponent, z as h, O as Transition, a0 as process$1, J as watchEffect, a as computed, r as ref, j as onMounted, W as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, u as createVNode, v as unref } from "./vue-Dysv_7z5.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-DjmaOC4E.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-BKfoD32c.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-jT-SK1Sx.cjs");
2
+ const superEditor_es = require("./super-editor.es-DCHFBNql.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
4
  const eventemitter3 = require("./eventemitter3-DQmQUge-.cjs");
5
5
  const provider = require("@hocuspocus/provider");
@@ -17268,7 +17268,7 @@ const _sfc_main = {
17268
17268
  __name: "SuperDoc",
17269
17269
  emits: ["selection-update"],
17270
17270
  setup(__props, { emit: __emit }) {
17271
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Cqk3l90H.cjs")));
17271
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-4-HewDUK.cjs")));
17272
17272
  const superdocStore = useSuperdocStore();
17273
17273
  const commentsStore = useCommentsStore();
17274
17274
  const {
@@ -17421,14 +17421,33 @@ const _sfc_main = {
17421
17421
  return;
17422
17422
  }
17423
17423
  const { documentId } = editor.options;
17424
- const { $from, $to } = transaction.selection;
17424
+ const txnSelection = transaction?.selection;
17425
+ const stateSelection = editor.state?.selection ?? editor.view?.state?.selection;
17426
+ const selectionWithPositions = txnSelection?.$from && txnSelection?.$to && txnSelection || stateSelection || txnSelection;
17427
+ if (!selectionWithPositions) return;
17428
+ const { $from, $to } = selectionWithPositions;
17429
+ if (!$from || !$to) return;
17430
+ const docSize = editor.state?.doc?.content?.size ?? editor.view?.state?.doc?.content?.size ?? Number.POSITIVE_INFINITY;
17431
+ if ($from.pos > docSize || $to.pos > docSize) {
17432
+ updateSelection({ x: null, y: null, source: "super-editor" });
17433
+ return;
17434
+ }
17425
17435
  if ($from.pos === $to.pos) updateSelection({ x: null, y: null, source: "super-editor" });
17426
17436
  if (!layers.value) return;
17427
17437
  const presentation = superEditor_es.PresentationEditor.getInstance(documentId);
17428
17438
  if (!presentation) {
17429
17439
  const { view: view2 } = editor;
17430
- const fromCoords2 = view2.coordsAtPos($from.pos);
17431
- const toCoords2 = view2.coordsAtPos($to.pos);
17440
+ const safeCoordsAtPos2 = (pos) => {
17441
+ try {
17442
+ return view2.coordsAtPos(pos);
17443
+ } catch (err) {
17444
+ console.warn("[superdoc] Ignoring selection coords error", err);
17445
+ return null;
17446
+ }
17447
+ };
17448
+ const fromCoords2 = safeCoordsAtPos2($from.pos);
17449
+ const toCoords2 = safeCoordsAtPos2($to.pos);
17450
+ if (!fromCoords2 || !toCoords2) return;
17432
17451
  const layerBounds2 = layers.value.getBoundingClientRect();
17433
17452
  const HEADER_HEIGHT2 = 96;
17434
17453
  const top2 = Math.max(HEADER_HEIGHT2, fromCoords2.top - layerBounds2.top);
@@ -17439,13 +17458,13 @@ const _sfc_main = {
17439
17458
  right: toCoords2.left,
17440
17459
  bottom: bottom2
17441
17460
  };
17442
- const selection2 = useSelection({
17461
+ const selectionResult2 = useSelection({
17443
17462
  selectionBounds: selectionBounds2,
17444
17463
  page: 1,
17445
17464
  documentId,
17446
17465
  source: "super-editor"
17447
17466
  });
17448
- handleSelectionChange(selection2);
17467
+ handleSelectionChange(selectionResult2);
17449
17468
  return;
17450
17469
  }
17451
17470
  const layoutRange = presentation.getSelectionBounds($from.pos, $to.pos, layers.value);
@@ -17458,18 +17477,27 @@ const _sfc_main = {
17458
17477
  y: bounds.bottom,
17459
17478
  source: "super-editor"
17460
17479
  });
17461
- const selection2 = useSelection({
17480
+ const selectionResult2 = useSelection({
17462
17481
  selectionBounds: { ...bounds },
17463
17482
  page: pageIndex + 1,
17464
17483
  documentId,
17465
17484
  source: "super-editor"
17466
17485
  });
17467
- handleSelectionChange(selection2);
17486
+ handleSelectionChange(selectionResult2);
17468
17487
  return;
17469
17488
  }
17470
17489
  const { view } = editor;
17471
- const fromCoords = view.coordsAtPos($from.pos);
17472
- const toCoords = view.coordsAtPos($to.pos);
17490
+ const safeCoordsAtPos = (pos) => {
17491
+ try {
17492
+ return view.coordsAtPos(pos);
17493
+ } catch (err) {
17494
+ console.warn("[superdoc] Ignoring selection coords error", err);
17495
+ return null;
17496
+ }
17497
+ };
17498
+ const fromCoords = safeCoordsAtPos($from.pos);
17499
+ const toCoords = safeCoordsAtPos($to.pos);
17500
+ if (!fromCoords || !toCoords) return;
17473
17501
  const layerBounds = layers.value.getBoundingClientRect();
17474
17502
  const HEADER_HEIGHT = 96;
17475
17503
  const top = Math.max(HEADER_HEIGHT, fromCoords.top - layerBounds.top);
@@ -17480,13 +17508,13 @@ const _sfc_main = {
17480
17508
  right: toCoords.left,
17481
17509
  bottom
17482
17510
  };
17483
- const selection = useSelection({
17511
+ const selectionResult = useSelection({
17484
17512
  selectionBounds,
17485
17513
  page: 1,
17486
17514
  documentId,
17487
17515
  source: "super-editor"
17488
17516
  });
17489
- handleSelectionChange(selection);
17517
+ handleSelectionChange(selectionResult);
17490
17518
  };
17491
17519
  const onEditorCollaborationReady = ({ editor }) => {
17492
17520
  proxy.$superdoc.emit("collaboration-ready", { editor });
@@ -17948,7 +17976,7 @@ const _sfc_main = {
17948
17976
  };
17949
17977
  }
17950
17978
  };
17951
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c3356b6"]]);
17979
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b2a75a6"]]);
17952
17980
  const createSuperdocVueApp = () => {
17953
17981
  const app = vue.createApp(App);
17954
17982
  const pinia = createPinia();
@@ -18128,7 +18156,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18128
18156
  this.config.colors = shuffleArray(this.config.colors);
18129
18157
  this.userColorMap = /* @__PURE__ */ new Map();
18130
18158
  this.colorIndex = 0;
18131
- this.version = "1.0.0-beta.59";
18159
+ this.version = "1.0.0-beta.60";
18132
18160
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18133
18161
  this.superdocId = config.superdocId || uuid.v4();
18134
18162
  this.colors = this.config.colors;
@@ -1,4 +1,4 @@
1
- import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-B_aU9Ilo.es.js";
1
+ import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-CJ3Aw1GR.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
3
  import { E as EventEmitter } from "./eventemitter3-CcXAdeql.es.js";
4
4
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
@@ -17251,7 +17251,7 @@ const _sfc_main = {
17251
17251
  __name: "SuperDoc",
17252
17252
  emits: ["selection-update"],
17253
17253
  setup(__props, { emit: __emit }) {
17254
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-zpn99sVp.es.js"));
17254
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-C4HeazGQ.es.js"));
17255
17255
  const superdocStore = useSuperdocStore();
17256
17256
  const commentsStore = useCommentsStore();
17257
17257
  const {
@@ -17404,14 +17404,33 @@ const _sfc_main = {
17404
17404
  return;
17405
17405
  }
17406
17406
  const { documentId } = editor.options;
17407
- const { $from, $to } = transaction.selection;
17407
+ const txnSelection = transaction?.selection;
17408
+ const stateSelection = editor.state?.selection ?? editor.view?.state?.selection;
17409
+ const selectionWithPositions = txnSelection?.$from && txnSelection?.$to && txnSelection || stateSelection || txnSelection;
17410
+ if (!selectionWithPositions) return;
17411
+ const { $from, $to } = selectionWithPositions;
17412
+ if (!$from || !$to) return;
17413
+ const docSize = editor.state?.doc?.content?.size ?? editor.view?.state?.doc?.content?.size ?? Number.POSITIVE_INFINITY;
17414
+ if ($from.pos > docSize || $to.pos > docSize) {
17415
+ updateSelection({ x: null, y: null, source: "super-editor" });
17416
+ return;
17417
+ }
17408
17418
  if ($from.pos === $to.pos) updateSelection({ x: null, y: null, source: "super-editor" });
17409
17419
  if (!layers.value) return;
17410
17420
  const presentation = PresentationEditor.getInstance(documentId);
17411
17421
  if (!presentation) {
17412
17422
  const { view: view2 } = editor;
17413
- const fromCoords2 = view2.coordsAtPos($from.pos);
17414
- const toCoords2 = view2.coordsAtPos($to.pos);
17423
+ const safeCoordsAtPos2 = (pos) => {
17424
+ try {
17425
+ return view2.coordsAtPos(pos);
17426
+ } catch (err) {
17427
+ console.warn("[superdoc] Ignoring selection coords error", err);
17428
+ return null;
17429
+ }
17430
+ };
17431
+ const fromCoords2 = safeCoordsAtPos2($from.pos);
17432
+ const toCoords2 = safeCoordsAtPos2($to.pos);
17433
+ if (!fromCoords2 || !toCoords2) return;
17415
17434
  const layerBounds2 = layers.value.getBoundingClientRect();
17416
17435
  const HEADER_HEIGHT2 = 96;
17417
17436
  const top2 = Math.max(HEADER_HEIGHT2, fromCoords2.top - layerBounds2.top);
@@ -17422,13 +17441,13 @@ const _sfc_main = {
17422
17441
  right: toCoords2.left,
17423
17442
  bottom: bottom2
17424
17443
  };
17425
- const selection2 = useSelection({
17444
+ const selectionResult2 = useSelection({
17426
17445
  selectionBounds: selectionBounds2,
17427
17446
  page: 1,
17428
17447
  documentId,
17429
17448
  source: "super-editor"
17430
17449
  });
17431
- handleSelectionChange(selection2);
17450
+ handleSelectionChange(selectionResult2);
17432
17451
  return;
17433
17452
  }
17434
17453
  const layoutRange = presentation.getSelectionBounds($from.pos, $to.pos, layers.value);
@@ -17441,18 +17460,27 @@ const _sfc_main = {
17441
17460
  y: bounds.bottom,
17442
17461
  source: "super-editor"
17443
17462
  });
17444
- const selection2 = useSelection({
17463
+ const selectionResult2 = useSelection({
17445
17464
  selectionBounds: { ...bounds },
17446
17465
  page: pageIndex + 1,
17447
17466
  documentId,
17448
17467
  source: "super-editor"
17449
17468
  });
17450
- handleSelectionChange(selection2);
17469
+ handleSelectionChange(selectionResult2);
17451
17470
  return;
17452
17471
  }
17453
17472
  const { view } = editor;
17454
- const fromCoords = view.coordsAtPos($from.pos);
17455
- const toCoords = view.coordsAtPos($to.pos);
17473
+ const safeCoordsAtPos = (pos) => {
17474
+ try {
17475
+ return view.coordsAtPos(pos);
17476
+ } catch (err) {
17477
+ console.warn("[superdoc] Ignoring selection coords error", err);
17478
+ return null;
17479
+ }
17480
+ };
17481
+ const fromCoords = safeCoordsAtPos($from.pos);
17482
+ const toCoords = safeCoordsAtPos($to.pos);
17483
+ if (!fromCoords || !toCoords) return;
17456
17484
  const layerBounds = layers.value.getBoundingClientRect();
17457
17485
  const HEADER_HEIGHT = 96;
17458
17486
  const top = Math.max(HEADER_HEIGHT, fromCoords.top - layerBounds.top);
@@ -17463,13 +17491,13 @@ const _sfc_main = {
17463
17491
  right: toCoords.left,
17464
17492
  bottom
17465
17493
  };
17466
- const selection = useSelection({
17494
+ const selectionResult = useSelection({
17467
17495
  selectionBounds,
17468
17496
  page: 1,
17469
17497
  documentId,
17470
17498
  source: "super-editor"
17471
17499
  });
17472
- handleSelectionChange(selection);
17500
+ handleSelectionChange(selectionResult);
17473
17501
  };
17474
17502
  const onEditorCollaborationReady = ({ editor }) => {
17475
17503
  proxy.$superdoc.emit("collaboration-ready", { editor });
@@ -17931,7 +17959,7 @@ const _sfc_main = {
17931
17959
  };
17932
17960
  }
17933
17961
  };
17934
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c3356b6"]]);
17962
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b2a75a6"]]);
17935
17963
  const createSuperdocVueApp = () => {
17936
17964
  const app = createApp(App);
17937
17965
  const pinia = createPinia();
@@ -18111,7 +18139,7 @@ class SuperDoc extends EventEmitter {
18111
18139
  this.config.colors = shuffleArray(this.config.colors);
18112
18140
  this.userColorMap = /* @__PURE__ */ new Map();
18113
18141
  this.colorIndex = 0;
18114
- this.version = "1.0.0-beta.59";
18142
+ this.version = "1.0.0-beta.60";
18115
18143
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18116
18144
  this.superdocId = config.superdocId || v4();
18117
18145
  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-jT-SK1Sx.cjs");
3
+ const superEditor_es = require("./super-editor.es-DCHFBNql.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-B_aU9Ilo.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-CJ3Aw1GR.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -42191,7 +42191,7 @@ const _SuperConverter = class _SuperConverter2 {
42191
42191
  static getStoredSuperdocVersion(docx) {
42192
42192
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42193
42193
  }
42194
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.59") {
42194
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.60") {
42195
42195
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42196
42196
  }
42197
42197
  /**
@@ -59380,7 +59380,7 @@ const isHeadless = (editor) => {
59380
59380
  const shouldSkipNodeView = (editor) => {
59381
59381
  return isHeadless(editor);
59382
59382
  };
59383
- const summaryVersion = "1.0.0-beta.59";
59383
+ const summaryVersion = "1.0.0-beta.60";
59384
59384
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
59385
59385
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
59386
59386
  function mapAttributes(attrs) {
@@ -60169,7 +60169,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60169
60169
  { default: remarkStringify },
60170
60170
  { default: remarkGfm }
60171
60171
  ] = await Promise.all([
60172
- import("./index-p5nUefNA-uQGvl206.es.js"),
60172
+ import("./index-GAzIoyrZ-zhiF5zMK.es.js"),
60173
60173
  import("./index-DRCvimau-Cw339678.es.js"),
60174
60174
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
60175
60175
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -60374,7 +60374,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60374
60374
  * Process collaboration migrations
60375
60375
  */
60376
60376
  processCollaborationMigrations() {
60377
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.59");
60377
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.60");
60378
60378
  if (!this.options.ydoc) return;
60379
60379
  const metaMap = this.options.ydoc.getMap("meta");
60380
60380
  let docVersion = metaMap.get("version");
@@ -42208,7 +42208,7 @@ const _SuperConverter = class _SuperConverter2 {
42208
42208
  static getStoredSuperdocVersion(docx) {
42209
42209
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42210
42210
  }
42211
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.59") {
42211
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.60") {
42212
42212
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42213
42213
  }
42214
42214
  /**
@@ -59397,7 +59397,7 @@ const isHeadless = (editor) => {
59397
59397
  const shouldSkipNodeView = (editor) => {
59398
59398
  return isHeadless(editor);
59399
59399
  };
59400
- const summaryVersion = "1.0.0-beta.59";
59400
+ const summaryVersion = "1.0.0-beta.60";
59401
59401
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
59402
59402
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
59403
59403
  function mapAttributes(attrs) {
@@ -60186,7 +60186,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60186
60186
  { default: remarkStringify },
60187
60187
  { default: remarkGfm }
60188
60188
  ] = await Promise.all([
60189
- Promise.resolve().then(() => require("./index-p5nUefNA-BBn8gZoL.cjs")),
60189
+ Promise.resolve().then(() => require("./index-GAzIoyrZ-C17wg4bM.cjs")),
60190
60190
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
60191
60191
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
60192
60192
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -60391,7 +60391,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60391
60391
  * Process collaboration migrations
60392
60392
  */
60393
60393
  processCollaborationMigrations() {
60394
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.59");
60394
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.60");
60395
60395
  if (!this.options.ydoc) return;
60396
60396
  const metaMap = this.options.ydoc.getMap("meta");
60397
60397
  let docVersion = metaMap.get("version");
package/dist/style.css CHANGED
@@ -2543,46 +2543,46 @@ img[data-v-7dd69850] {
2543
2543
  display: none;
2544
2544
  }
2545
2545
 
2546
- .superdoc[data-v-3c3356b6] {
2546
+ .superdoc[data-v-5b2a75a6] {
2547
2547
  display: flex;
2548
2548
  }
2549
- .right-sidebar[data-v-3c3356b6] {
2549
+ .right-sidebar[data-v-5b2a75a6] {
2550
2550
  min-width: 320px;
2551
2551
  }
2552
- .floating-comments[data-v-3c3356b6] {
2552
+ .floating-comments[data-v-5b2a75a6] {
2553
2553
  min-width: 300px;
2554
2554
  width: 300px;
2555
2555
  }
2556
- .superdoc__layers[data-v-3c3356b6] {
2556
+ .superdoc__layers[data-v-5b2a75a6] {
2557
2557
  height: 100%;
2558
2558
  position: relative;
2559
2559
  box-sizing: border-box;
2560
2560
  }
2561
- .superdoc__document[data-v-3c3356b6] {
2561
+ .superdoc__document[data-v-5b2a75a6] {
2562
2562
  width: 100%;
2563
2563
  position: relative;
2564
2564
  }
2565
- .superdoc__sub-document[data-v-3c3356b6] {
2565
+ .superdoc__sub-document[data-v-5b2a75a6] {
2566
2566
  width: 100%;
2567
2567
  position: relative;
2568
2568
  }
2569
- .superdoc__selection-layer[data-v-3c3356b6] {
2569
+ .superdoc__selection-layer[data-v-5b2a75a6] {
2570
2570
  position: absolute;
2571
2571
  min-width: 100%;
2572
2572
  min-height: 100%;
2573
2573
  z-index: 10;
2574
2574
  pointer-events: none;
2575
2575
  }
2576
- .superdoc__temp-selection[data-v-3c3356b6] {
2576
+ .superdoc__temp-selection[data-v-5b2a75a6] {
2577
2577
  position: absolute;
2578
2578
  }
2579
- .superdoc__comments-layer[data-v-3c3356b6] {
2579
+ .superdoc__comments-layer[data-v-5b2a75a6] {
2580
2580
  /* position: absolute; */
2581
2581
  top: 0;
2582
2582
  height: 100%;
2583
2583
  position: relative;
2584
2584
  }
2585
- .superdoc__right-sidebar[data-v-3c3356b6] {
2585
+ .superdoc__right-sidebar[data-v-5b2a75a6] {
2586
2586
  width: 320px;
2587
2587
  min-width: 320px;
2588
2588
  padding: 0 10px;
@@ -2592,14 +2592,14 @@ img[data-v-7dd69850] {
2592
2592
  }
2593
2593
 
2594
2594
  /* Tools styles */
2595
- .tools[data-v-3c3356b6] {
2595
+ .tools[data-v-5b2a75a6] {
2596
2596
  position: absolute;
2597
2597
  z-index: 3;
2598
2598
  display: flex;
2599
2599
  flex-direction: column;
2600
2600
  gap: 6px;
2601
2601
  }
2602
- .tools .tool-icon[data-v-3c3356b6] {
2602
+ .tools .tool-icon[data-v-5b2a75a6] {
2603
2603
  font-size: 20px;
2604
2604
  border-radius: 12px;
2605
2605
  border: none;
@@ -2607,7 +2607,7 @@ img[data-v-7dd69850] {
2607
2607
  background-color: #dbdbdb;
2608
2608
  cursor: pointer;
2609
2609
  }
2610
- .tools-item[data-v-3c3356b6] {
2610
+ .tools-item[data-v-5b2a75a6] {
2611
2611
  display: flex;
2612
2612
  align-items: center;
2613
2613
  justify-content: center;
@@ -2617,10 +2617,10 @@ img[data-v-7dd69850] {
2617
2617
  border-radius: 12px;
2618
2618
  cursor: pointer;
2619
2619
  }
2620
- .tools-item i[data-v-3c3356b6] {
2620
+ .tools-item i[data-v-5b2a75a6] {
2621
2621
  cursor: pointer;
2622
2622
  }
2623
- .superdoc__tools-icon[data-v-3c3356b6] {
2623
+ .superdoc__tools-icon[data-v-5b2a75a6] {
2624
2624
  width: 20px;
2625
2625
  height: 20px;
2626
2626
  flex-shrink: 0;
@@ -2635,15 +2635,15 @@ img[data-v-7dd69850] {
2635
2635
 
2636
2636
  /* 834px is iPad screen size in portrait orientation */
2637
2637
  @media (max-width: 834px) {
2638
- .superdoc .superdoc__layers[data-v-3c3356b6] {
2638
+ .superdoc .superdoc__layers[data-v-5b2a75a6] {
2639
2639
  margin: 0;
2640
2640
  border: 0 !important;
2641
2641
  box-shadow: none;
2642
2642
  }
2643
- .superdoc__sub-document[data-v-3c3356b6] {
2643
+ .superdoc__sub-document[data-v-5b2a75a6] {
2644
2644
  max-width: 100%;
2645
2645
  }
2646
- .superdoc__right-sidebar[data-v-3c3356b6] {
2646
+ .superdoc__right-sidebar[data-v-5b2a75a6] {
2647
2647
  padding: 10px;
2648
2648
  width: 55px;
2649
2649
  position: relative;
@@ -2651,7 +2651,7 @@ img[data-v-7dd69850] {
2651
2651
  }
2652
2652
 
2653
2653
  /* AI Writer styles */
2654
- .ai-writer-container[data-v-3c3356b6] {
2654
+ .ai-writer-container[data-v-5b2a75a6] {
2655
2655
  position: fixed;
2656
2656
  z-index: 1000;
2657
2657
  background: white;
@@ -2669,13 +2669,13 @@ img[data-v-7dd69850] {
2669
2669
  } */
2670
2670
 
2671
2671
  /* Tools styles */
2672
- .tools[data-v-3c3356b6] {
2672
+ .tools[data-v-5b2a75a6] {
2673
2673
  position: absolute;
2674
2674
  z-index: 3;
2675
2675
  display: flex;
2676
2676
  gap: 6px;
2677
2677
  }
2678
- .tools .tool-icon[data-v-3c3356b6] {
2678
+ .tools .tool-icon[data-v-5b2a75a6] {
2679
2679
  font-size: 20px;
2680
2680
  border-radius: 12px;
2681
2681
  border: none;
@@ -2683,7 +2683,7 @@ img[data-v-7dd69850] {
2683
2683
  background-color: #dbdbdb;
2684
2684
  cursor: pointer;
2685
2685
  }
2686
- .tools-item[data-v-3c3356b6] {
2686
+ .tools-item[data-v-5b2a75a6] {
2687
2687
  display: flex;
2688
2688
  align-items: center;
2689
2689
  justify-content: center;
@@ -2694,18 +2694,18 @@ img[data-v-7dd69850] {
2694
2694
  border-radius: 12px;
2695
2695
  cursor: pointer;
2696
2696
  }
2697
- .tools-item i[data-v-3c3356b6] {
2697
+ .tools-item i[data-v-5b2a75a6] {
2698
2698
  cursor: pointer;
2699
2699
  }
2700
- .superdoc__tools-icon[data-v-3c3356b6] {
2700
+ .superdoc__tools-icon[data-v-5b2a75a6] {
2701
2701
  width: 20px;
2702
2702
  height: 20px;
2703
2703
  flex-shrink: 0;
2704
2704
  }
2705
- .ai-tool > svg[data-v-3c3356b6] {
2705
+ .ai-tool > svg[data-v-5b2a75a6] {
2706
2706
  fill: transparent;
2707
2707
  }
2708
- .ai-tool[data-v-3c3356b6]::before {
2708
+ .ai-tool[data-v-5b2a75a6]::before {
2709
2709
  content: '';
2710
2710
  position: absolute;
2711
2711
  width: 20px;
@@ -2726,7 +2726,7 @@ img[data-v-7dd69850] {
2726
2726
  filter: brightness(1.2);
2727
2727
  transition: filter 0.2s ease;
2728
2728
  }
2729
- .ai-tool[data-v-3c3356b6]:hover::before {
2729
+ .ai-tool[data-v-5b2a75a6]:hover::before {
2730
2730
  filter: brightness(1.3);
2731
2731
  }
2732
2732
 
@@ -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-CGbieO55.js";
3
- import { _ as _export_sfc } from "./chunks/editor-D4VwHdPT.js";
2
+ import { T as TextSelection } from "./chunks/converter-DZ7Tkh7u.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-CDMuD1Nx.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 = {}) {
@@ -42508,7 +42508,7 @@ const _SuperConverter = class _SuperConverter {
42508
42508
  static getStoredSuperdocVersion(docx) {
42509
42509
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
42510
42510
  }
42511
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.59") {
42511
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.60") {
42512
42512
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
42513
42513
  }
42514
42514
  /**
@@ -1,4 +1,4 @@
1
- import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-CGbieO55.js";
1
+ import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-DZ7Tkh7u.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,8 +12,8 @@ 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, dispatchWithFallback_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, getPluginKeyName_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, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _map, _editor2, _descriptors, _collections, _editorEntries, _maxCachedEditors, _editorAccessOrder, _pendingCreations, _cacheHits, _cacheMisses, _evictions, _HeaderFooterEditorManager_instances, hasConverter_fn, extractCollections_fn, collectDescriptors_fn, teardownMissingEditors_fn, teardownEditors_fn, createEditor_fn, createEditorContainer_fn, registerConverterEditor_fn, unregisterConverterEditor_fn, updateAccessOrder_fn, enforceCacheSizeLimit_fn, _manager, _mediaFiles, _blockCache, _HeaderFooterLayoutAdapter_instances, getBlocks_fn, getConverterContext_fn, _selectionOverlay, _activeEditorHost, _activeDecorationContainer, _activeRegion, _borderLine, _dimmingOverlay, _EditorOverlayManager_instances, findDecorationContainer_fn, ensureEditorHost_fn, positionEditorHost_fn, hideDimmingOverlay_fn, showHeaderFooterBorder_fn, hideHeaderFooterBorder_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay2, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _dragHandlerCleanup, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionUpdateScheduled, _remoteCursorUpdateScheduled, _rafHandle, _editorListeners, _sectionMetadata, _documentMode, _inputBridge, _trackedChangesMode, _trackedChangesEnabled, _trackedChangesOverrides, _headerFooterManager, _headerFooterAdapter, _headerFooterIdentifier, _multiSectionIdentifier, _headerLayoutResults, _footerLayoutResults, _headerLayoutsByRId, _footerLayoutsByRId, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _overlayManager, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _lastSelectedImageBlockId, _dragAnchor, _isDragging, _dragExtensionMode, _remoteCursorState, _remoteCursorElements, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _scrollTimeout, _lastRemoteCursorRenderTime, _remoteCursorThrottleTimeout, _PresentationEditor_instances, collectCommentPositions_fn, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, updateLocalAwarenessCursor_fn, normalizeAwarenessStates_fn, getFallbackColor_fn, getValidatedColor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, renderRemoteCaret_fn, renderRemoteCursorLabel_fn, renderRemoteSelection_fn, setupPointerHandlers_fn, setupDragHandlers_fn, focusEditorAfterImageSelection_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, calculateExtendedSelection_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _handlePointerUp, _handleDragOver, _handleDrop, _handleDoubleClick, _handleKeyDown, focusHeaderFooterShortcut_fn, scheduleRerender_fn, flushRerenderQueue_fn, rerender_fn, ensurePainter_fn, scheduleSelectionUpdate_fn, updateSelection_fn, resolveLayoutOptions_fn, buildHeaderFooterInput_fn, computeHeaderFooterConstraints_fn, layoutPerRIdHeaderFooters_fn, updateDecorationProviders_fn, createDecorationProvider_fn, findHeaderFooterPageForPageNumber_fn, computeDecorationBox_fn, computeExpectedSectionType_fn, rebuildHeaderFooterRegions_fn, hitTestHeaderFooterRegion_fn, pointInRegion_fn, activateHeaderFooterRegion_fn, enterHeaderFooterMode_fn, exitHeaderFooterMode_fn, getActiveDomTarget_fn, emitHeaderFooterModeChanged_fn, emitHeaderFooterEditingContext_fn, updateAwarenessSession_fn, updateModeBanner_fn, announce_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, createDefaultHeaderFooter_fn, getPageElement_fn, scrollPageIntoView_fn, computeAnchorMap_fn, waitForPageMount_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, parseColumns_fn, inchesToPx_fn, applyZoom_fn, createLayoutMetrics_fn, convertPageLocalToOverlayCoords_fn, normalizeClientPoint_fn, computeCaretLayoutRect_fn, computeCaretLayoutRectFromDOM_fn, computeTableCaretLayoutRect_fn, findLineContainingPos_fn, lineHeightBeforeIndex_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_fn, createHiddenHost_fn, _windowRoot, _layoutSurfaces, _getTargetDom, _isEditable, _onTargetChanged, _listeners, _currentTarget, _destroyed, _useWindowFallback, _PresentationInputBridge_instances, addListener_fn, dispatchToTarget_fn, forwardKeyboardEvent_fn, forwardTextEvent_fn, forwardCompositionEvent_fn, forwardContextMenu_fn, isEventOnActiveTarget_fn, shouldSkipSurface_fn, isInLayoutSurface_fn, getListenerTargets_fn, isPlainCharacterKey_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, checkShouldUpdate_fn, updateHTMLAttributes_fn, updateDOMStyles_fn, resolveNeighborParagraphProperties_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _VectorShapeView_instances, ensureParentPositioned_fn, _ShapeGroupView_instances, ensureParentPositioned_fn2;
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 htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-CGbieO55.js";
16
- import { D as DocxZipper } from "./docx-zipper-BFro6vIZ.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 htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-DZ7Tkh7u.js";
16
+ import { D as DocxZipper } from "./docx-zipper-CZQWEuyi.js";
17
17
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
@@ -13923,7 +13923,7 @@ const isHeadless = (editor) => {
13923
13923
  const shouldSkipNodeView = (editor) => {
13924
13924
  return isHeadless(editor);
13925
13925
  };
13926
- const summaryVersion = "1.0.0-beta.59";
13926
+ const summaryVersion = "1.0.0-beta.60";
13927
13927
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
13928
13928
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
13929
13929
  function mapAttributes(attrs) {
@@ -14715,7 +14715,7 @@ const _Editor = class _Editor extends EventEmitter {
14715
14715
  { default: remarkStringify },
14716
14716
  { default: remarkGfm }
14717
14717
  ] = await Promise.all([
14718
- import("./index-p5nUefNA.js"),
14718
+ import("./index-GAzIoyrZ.js"),
14719
14719
  import("./index-DRCvimau.js"),
14720
14720
  import("./index-C_x_N6Uh.js"),
14721
14721
  import("./index-D_sWOSiG.js"),
@@ -14920,7 +14920,7 @@ const _Editor = class _Editor extends EventEmitter {
14920
14920
  * Process collaboration migrations
14921
14921
  */
14922
14922
  processCollaborationMigrations() {
14923
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.59");
14923
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.60");
14924
14924
  if (!this.options.ydoc) return;
14925
14925
  const metaMap = this.options.ydoc.getMap("meta");
14926
14926
  let docVersion = metaMap.get("version");
@@ -1,4 +1,4 @@
1
- import { aK as getDefaultExportFromCjs } from "./converter-CGbieO55.js";
1
+ import { aK as getDefaultExportFromCjs } from "./converter-DZ7Tkh7u.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {