@harbour-enterprises/superdoc 1.0.0-beta.62 → 1.0.0-beta.63

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 (30) hide show
  1. package/dist/chunks/{PdfViewer-Dm3bZ_1B.cjs → PdfViewer-Dc7zft9M.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-rmkhzY1H.es.js → PdfViewer-Enk2l025.es.js} +1 -1
  3. package/dist/chunks/{index-XOsGE2PW-hNAnvmsK.es.js → index-BO5Ne6G9-BxC5lPet.es.js} +1 -1
  4. package/dist/chunks/{index-XOsGE2PW-BL-ekicF.cjs → index-BO5Ne6G9-njLy4w3i.cjs} +1 -1
  5. package/dist/chunks/{index-VQNmJYMh.cjs → index-DZPXVd1d.cjs} +3 -3
  6. package/dist/chunks/{index-5vPj3xiM.es.js → index-KZsFukCq.es.js} +3 -3
  7. package/dist/chunks/{super-editor.es-CxtR72x8.cjs → super-editor.es-Crw7wu2n.cjs} +20 -10
  8. package/dist/chunks/{super-editor.es-BIEE4joF.es.js → super-editor.es-DhGXcD3R.es.js} +20 -10
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/style.css +29 -29
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-Bo9KIIo_.js → converter-C4bE8Uad.js} +1 -1
  13. package/dist/super-editor/chunks/{docx-zipper-Cw0Rbwvk.js → docx-zipper-BIkbwyZO.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-v-i8Oo_X.js → editor-ByMtGRzi.js} +10 -7
  15. package/dist/super-editor/chunks/{index-XOsGE2PW.js → index-BO5Ne6G9.js} +1 -1
  16. package/dist/super-editor/chunks/{toolbar-CiKH0Ttu.js → toolbar-DFgaXUsx.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +29 -29
  22. package/dist/super-editor/super-editor.es.js +17 -10
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +2 -2
  27. package/dist/superdoc.es.js +2 -2
  28. package/dist/superdoc.umd.js +22 -12
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -1347,12 +1347,12 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1347
1347
  fill: currentColor;
1348
1348
  }
1349
1349
 
1350
- .link-input-wrapper[data-v-ba50627b] {
1350
+ .link-input-wrapper[data-v-de37bd1c] {
1351
1351
  display: flex;
1352
1352
  flex-direction: column;
1353
1353
  gap: 8px;
1354
1354
  }
1355
- .link-input-ctn[data-v-ba50627b] {
1355
+ .link-input-ctn[data-v-de37bd1c] {
1356
1356
  width: 320px;
1357
1357
  display: flex;
1358
1358
  flex-direction: column;
@@ -1361,19 +1361,19 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1361
1361
  background-color: #fff;
1362
1362
  box-sizing: border-box;
1363
1363
  }
1364
- .link-input-ctn[data-v-ba50627b] svg {
1364
+ .link-input-ctn[data-v-de37bd1c] svg {
1365
1365
  width: 100%;
1366
1366
  height: 100%;
1367
1367
  display: block;
1368
1368
  fill: currentColor;
1369
1369
  }
1370
- .link-input-ctn .input-row[data-v-ba50627b] {
1370
+ .link-input-ctn .input-row[data-v-de37bd1c] {
1371
1371
  align-content: baseline;
1372
1372
  display: flex;
1373
1373
  align-items: center;
1374
1374
  font-size: 16px;
1375
1375
  }
1376
- .link-input-ctn .input-row input[data-v-ba50627b] {
1376
+ .link-input-ctn .input-row input[data-v-de37bd1c] {
1377
1377
  font-size: 13px;
1378
1378
  flex-grow: 1;
1379
1379
  padding: 10px;
@@ -1384,30 +1384,30 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1384
1384
  border: 1px solid #ddd;
1385
1385
  box-sizing: border-box;
1386
1386
  }
1387
- .link-input-ctn .input-row input[data-v-ba50627b]:active,
1388
- .link-input-ctn .input-row input[data-v-ba50627b]:focus {
1387
+ .link-input-ctn .input-row input[data-v-de37bd1c]:active,
1388
+ .link-input-ctn .input-row input[data-v-de37bd1c]:focus {
1389
1389
  outline: none;
1390
1390
  border: 1px solid #1355ff;
1391
1391
  }
1392
- .link-input-ctn .input-icon[data-v-ba50627b] {
1392
+ .link-input-ctn .input-icon[data-v-de37bd1c] {
1393
1393
  position: absolute;
1394
1394
  left: 25px;
1395
1395
  width: auto;
1396
1396
  color: #999;
1397
1397
  pointer-events: none;
1398
1398
  }
1399
- .link-input-ctn .input-icon[data-v-ba50627b]:not(.text-input-icon) {
1399
+ .link-input-ctn .input-icon[data-v-de37bd1c]:not(.text-input-icon) {
1400
1400
  transform: rotate(45deg);
1401
1401
  height: 12px;
1402
1402
  }
1403
- .link-input-ctn.high-contrast .input-icon[data-v-ba50627b] {
1403
+ .link-input-ctn.high-contrast .input-icon[data-v-de37bd1c] {
1404
1404
  color: #000;
1405
1405
  }
1406
- .link-input-ctn.high-contrast .input-row input[data-v-ba50627b] {
1406
+ .link-input-ctn.high-contrast .input-row input[data-v-de37bd1c] {
1407
1407
  color: #000;
1408
1408
  border-color: #000;
1409
1409
  }
1410
- .open-link-icon[data-v-ba50627b] {
1410
+ .open-link-icon[data-v-de37bd1c] {
1411
1411
  margin-left: 10px;
1412
1412
  width: 30px;
1413
1413
  height: 30px;
@@ -1420,56 +1420,56 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1420
1420
  transition: all 0.2s ease;
1421
1421
  cursor: pointer;
1422
1422
  }
1423
- .open-link-icon[data-v-ba50627b]:hover {
1423
+ .open-link-icon[data-v-de37bd1c]:hover {
1424
1424
  color: #1355ff;
1425
1425
  background-color: white;
1426
1426
  border: 1px solid #dbdbdb;
1427
1427
  }
1428
- .open-link-icon[data-v-ba50627b] svg {
1428
+ .open-link-icon[data-v-de37bd1c] svg {
1429
1429
  width: 15px;
1430
1430
  height: 15px;
1431
1431
  }
1432
- .disabled[data-v-ba50627b] {
1432
+ .disabled[data-v-de37bd1c] {
1433
1433
  opacity: 0.6;
1434
1434
  cursor: not-allowed;
1435
1435
  pointer-events: none;
1436
1436
  }
1437
- .link-buttons[data-v-ba50627b] {
1437
+ .link-buttons[data-v-de37bd1c] {
1438
1438
  display: flex;
1439
1439
  justify-content: flex-end;
1440
1440
  margin-top: 10px;
1441
1441
  }
1442
- .remove-btn__icon[data-v-ba50627b] {
1442
+ .remove-btn__icon[data-v-de37bd1c] {
1443
1443
  display: inline-flex;
1444
1444
  width: 13px;
1445
1445
  height: 13px;
1446
1446
  flex-shrink: 0;
1447
1447
  margin-right: 4px;
1448
1448
  }
1449
- .link-buttons button[data-v-ba50627b] {
1449
+ .link-buttons button[data-v-de37bd1c] {
1450
1450
  margin-left: 5px;
1451
1451
  }
1452
- .disable-btn[data-v-ba50627b] {
1452
+ .disable-btn[data-v-de37bd1c] {
1453
1453
  opacity: 0.6;
1454
1454
  cursor: not-allowed;
1455
1455
  pointer-events: none;
1456
1456
  }
1457
- .go-to-anchor a[data-v-ba50627b] {
1457
+ .go-to-anchor a[data-v-de37bd1c] {
1458
1458
  font-size: 14px;
1459
1459
  text-decoration: underline;
1460
1460
  }
1461
- .clickable[data-v-ba50627b] {
1461
+ .clickable[data-v-de37bd1c] {
1462
1462
  cursor: pointer;
1463
1463
  }
1464
- .link-title[data-v-ba50627b] {
1464
+ .link-title[data-v-de37bd1c] {
1465
1465
  font-size: 14px;
1466
1466
  font-weight: 600;
1467
1467
  margin-bottom: 10px;
1468
1468
  }
1469
- .hasBottomMargin[data-v-ba50627b] {
1469
+ .hasBottomMargin[data-v-de37bd1c] {
1470
1470
  margin-bottom: 1em;
1471
1471
  }
1472
- .remove-btn[data-v-ba50627b] {
1472
+ .remove-btn[data-v-de37bd1c] {
1473
1473
  display: inline-flex;
1474
1474
  justify-content: center;
1475
1475
  align-items: center;
@@ -1485,10 +1485,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1485
1485
  border: 1px solid #ebebeb;
1486
1486
  box-sizing: border-box;
1487
1487
  }
1488
- .remove-btn[data-v-ba50627b]:hover {
1488
+ .remove-btn[data-v-de37bd1c]:hover {
1489
1489
  background-color: #dbdbdb;
1490
1490
  }
1491
- .submit-btn[data-v-ba50627b] {
1491
+ .submit-btn[data-v-de37bd1c] {
1492
1492
  display: inline-flex;
1493
1493
  justify-content: center;
1494
1494
  align-items: center;
@@ -1508,14 +1508,14 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1508
1508
  /* &.high-contrast {
1509
1509
  background-color: black;
1510
1510
  } */
1511
- .submit-btn[data-v-ba50627b]:hover {
1511
+ .submit-btn[data-v-de37bd1c]:hover {
1512
1512
  background-color: #0d47c1;
1513
1513
  }
1514
- .error[data-v-ba50627b] {
1514
+ .error[data-v-de37bd1c] {
1515
1515
  border-color: red !important;
1516
1516
  background-color: #ff00001a;
1517
1517
  }
1518
- .submit[data-v-ba50627b] {
1518
+ .submit[data-v-de37bd1c] {
1519
1519
  cursor: pointer;
1520
1520
  }
1521
1521
 
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
12
- import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-Bo9KIIo_.js";
13
- import { ac, i, a9, aQ } from "./chunks/converter-Bo9KIIo_.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-v-i8Oo_X.js";
15
- import { F, I, G, T, B, H, C } from "./chunks/editor-v-i8Oo_X.js";
12
+ import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-C4bE8Uad.js";
13
+ import { ac, i, a9, aQ } from "./chunks/converter-C4bE8Uad.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-ByMtGRzi.js";
15
+ import { F, I, G, T, B, H, C } from "./chunks/editor-ByMtGRzi.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, useCssVars, shallowRef, createBlock, Teleport, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-CiKH0Ttu.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-DFgaXUsx.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-Cw0Rbwvk.js";
19
+ import { D } from "./chunks/docx-zipper-BIkbwyZO.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -659,13 +659,20 @@ const _sfc_main$e = {
659
659
  const { $from, empty } = selection;
660
660
  if (empty) {
661
661
  const marks = state.storedMarks || $from.marks();
662
- const link = marks.find((mark) => mark.type === linkMark);
663
- if (link) href = link.attrs.href;
662
+ let link = marks.find((mark) => mark.type === linkMark);
663
+ if (!link) {
664
+ const nodeAfter = $from.nodeAfter;
665
+ const nodeBefore = $from.nodeBefore;
666
+ const marksOnNodeAfter = nodeAfter && Array.isArray(nodeAfter.marks) ? nodeAfter.marks : [];
667
+ const marksOnNodeBefore = nodeBefore && Array.isArray(nodeBefore.marks) ? nodeBefore.marks : [];
668
+ link = marksOnNodeAfter.find((mark) => mark.type === linkMark) || marksOnNodeBefore.find((mark) => mark.type === linkMark);
669
+ }
670
+ if (link && link.attrs && link.attrs.href) href = link.attrs.href;
664
671
  } else {
665
672
  state.doc.nodesBetween(selection.from, selection.to, (node) => {
666
673
  if (node.marks) {
667
674
  const link = node.marks.find((mark) => mark.type === linkMark);
668
- if (link) href = link.attrs.href;
675
+ if (link && link.attrs && link.attrs.href) href = link.attrs.href;
669
676
  }
670
677
  });
671
678
  }
@@ -808,7 +815,7 @@ const _sfc_main$e = {
808
815
  };
809
816
  }
810
817
  };
811
- const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ba50627b"]]);
818
+ const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-de37bd1c"]]);
812
819
  const _hoisted_1$b = ["aria-label", "onClick", "onKeydown"];
813
820
  const _hoisted_2$6 = ["innerHTML"];
814
821
  const _hoisted_3$5 = ["innerHTML"];
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-CiKH0Ttu.js";
3
- import "./chunks/editor-v-i8Oo_X.js";
2
+ import { T } from "./chunks/toolbar-DFgaXUsx.js";
3
+ import "./chunks/editor-ByMtGRzi.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CxtR72x8.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-Crw7wu2n.cjs");
4
4
  require("./chunks/vue-jWLMl8Ts.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BIEE4joF.es.js";
1
+ import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-DhGXcD3R.es.js";
2
2
  import "./chunks/vue-Dysv_7z5.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CxtR72x8.cjs");
4
- const superdoc = require("./chunks/index-VQNmJYMh.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-Crw7wu2n.cjs");
4
+ const superdoc = require("./chunks/index-DZPXVd1d.cjs");
5
5
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.Editor = superEditor_es.Editor;
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BIEE4joF.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-5vPj3xiM.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DhGXcD3R.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-KZsFukCq.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,
@@ -42327,7 +42327,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42327
42327
  static getStoredSuperdocVersion(docx) {
42328
42328
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42329
42329
  }
42330
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.62") {
42330
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.63") {
42331
42331
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42332
42332
  }
42333
42333
  /**
@@ -67373,7 +67373,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
67373
67373
  const shouldSkipNodeView = (editor) => {
67374
67374
  return isHeadless(editor);
67375
67375
  };
67376
- const summaryVersion = "1.0.0-beta.62";
67376
+ const summaryVersion = "1.0.0-beta.63";
67377
67377
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
67378
67378
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
67379
67379
  function mapAttributes(attrs) {
@@ -68162,7 +68162,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68162
68162
  { default: remarkStringify2 },
68163
68163
  { default: remarkGfm2 }
68164
68164
  ] = await Promise.all([
68165
- Promise.resolve().then(() => indexXOsGE2PW),
68165
+ Promise.resolve().then(() => indexBO5Ne6G9),
68166
68166
  Promise.resolve().then(() => indexDRCvimau),
68167
68167
  Promise.resolve().then(() => indexC_x_N6Uh),
68168
68168
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -68367,7 +68367,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68367
68367
  * Process collaboration migrations
68368
68368
  */
68369
68369
  processCollaborationMigrations() {
68370
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.62");
68370
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.63");
68371
68371
  if (!this.options.ydoc) return;
68372
68372
  const metaMap = this.options.ydoc.getMap("meta");
68373
68373
  let docVersion = metaMap.get("version");
@@ -75254,8 +75254,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
75254
75254
  if (rawValue == null) return void 0;
75255
75255
  const rawRule = heightObj.rule ?? heightObj.hRule;
75256
75256
  const rule = rawRule === "exact" || rawRule === "atLeast" || rawRule === "auto" ? rawRule : "atLeast";
75257
- const isLikelyTwips = rawValue >= 300 || Math.abs(rawValue % 15) < 1e-6;
75258
- const valuePx = isLikelyTwips ? twipsToPx$1(rawValue) : rawValue;
75257
+ const valuePx = twipsToPx$1(rawValue);
75259
75258
  return {
75260
75259
  value: valuePx,
75261
75260
  rule
@@ -99272,7 +99271,11 @@ ${l}
99272
99271
  const runType = newState.schema.nodes["run"];
99273
99272
  if (!runType) return null;
99274
99273
  const runPositions = /* @__PURE__ */ new Set();
99274
+ const docSize = newState.doc.content.size;
99275
99275
  markRanges.forEach(({ from: from2, to }) => {
99276
+ if (from2 < 0 || to < 0 || from2 > docSize || to > docSize || from2 > to) {
99277
+ return;
99278
+ }
99276
99279
  newState.doc.nodesBetween(from2, to, (node2, pos) => {
99277
99280
  if (node2.type === runType) runPositions.add(pos);
99278
99281
  });
@@ -126846,13 +126849,20 @@ ${style2}
126846
126849
  const { $from, empty: empty2 } = selection;
126847
126850
  if (empty2) {
126848
126851
  const marks = state2.storedMarks || $from.marks();
126849
- const link2 = marks.find((mark2) => mark2.type === linkMark);
126850
- if (link2) href = link2.attrs.href;
126852
+ let link2 = marks.find((mark2) => mark2.type === linkMark);
126853
+ if (!link2) {
126854
+ const nodeAfter = $from.nodeAfter;
126855
+ const nodeBefore = $from.nodeBefore;
126856
+ const marksOnNodeAfter = nodeAfter && Array.isArray(nodeAfter.marks) ? nodeAfter.marks : [];
126857
+ const marksOnNodeBefore = nodeBefore && Array.isArray(nodeBefore.marks) ? nodeBefore.marks : [];
126858
+ link2 = marksOnNodeAfter.find((mark2) => mark2.type === linkMark) || marksOnNodeBefore.find((mark2) => mark2.type === linkMark);
126859
+ }
126860
+ if (link2 && link2.attrs && link2.attrs.href) href = link2.attrs.href;
126851
126861
  } else {
126852
126862
  state2.doc.nodesBetween(selection.from, selection.to, (node2) => {
126853
126863
  if (node2.marks) {
126854
126864
  const link2 = node2.marks.find((mark2) => mark2.type === linkMark);
126855
- if (link2) href = link2.attrs.href;
126865
+ if (link2 && link2.attrs && link2.attrs.href) href = link2.attrs.href;
126856
126866
  }
126857
126867
  });
126858
126868
  }
@@ -126995,7 +127005,7 @@ ${style2}
126995
127005
  };
126996
127006
  }
126997
127007
  };
126998
- const LinkInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$e$1, [["__scopeId", "data-v-ba50627b"]]);
127008
+ const LinkInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$e$1, [["__scopeId", "data-v-de37bd1c"]]);
126999
127009
  const _hoisted_1$b$1 = ["aria-label", "onClick", "onKeydown"];
127000
127010
  const _hoisted_2$6$1 = ["innerHTML"];
127001
127011
  const _hoisted_3$5$1 = ["innerHTML"];
@@ -149845,7 +149855,7 @@ ${style2}
149845
149855
  this.config.colors = shuffleArray(this.config.colors);
149846
149856
  this.userColorMap = /* @__PURE__ */ new Map();
149847
149857
  this.colorIndex = 0;
149848
- this.version = "1.0.0-beta.62";
149858
+ this.version = "1.0.0-beta.63";
149849
149859
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
149850
149860
  this.superdocId = config2.superdocId || v4();
149851
149861
  this.colors = this.config.colors;
@@ -152317,7 +152327,7 @@ ${style2}
152317
152327
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
152318
152328
  );
152319
152329
  }
152320
- const indexXOsGE2PW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152330
+ const indexBO5Ne6G9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152321
152331
  __proto__: null,
152322
152332
  unified
152323
152333
  }, Symbol.toStringTag, { value: "Module" }));