superdoc 1.0.0-beta.32 → 1.0.0-beta.33

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-CTKbqDWv.cjs → PdfViewer-1hoKlV0M.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-edjIRb_p.es.js → PdfViewer-CVrn4X-3.es.js} +1 -1
  3. package/dist/chunks/{index-Pwv0a9G5.es.js → index-BTDOWM_2.es.js} +57 -32
  4. package/dist/chunks/{index-Cajp7-Xa.cjs → index-VKd9fPLu.cjs} +57 -32
  5. package/dist/chunks/{index-SGV4U12y-BPGxOtvI.es.js → index-hX4H5xPH-ChjioDix.es.js} +1 -1
  6. package/dist/chunks/{index-SGV4U12y-Dh5jaROA.cjs → index-hX4H5xPH-DfkQd7UH.cjs} +1 -1
  7. package/dist/chunks/{super-editor.es-CdGsYGU1.es.js → super-editor.es-CpmC4G9F.es.js} +158 -81
  8. package/dist/chunks/{super-editor.es-BbbbKgEs.cjs → super-editor.es-Dzrm58hW.cjs} +158 -81
  9. package/dist/style.css +33 -33
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-CpuOoAUa.js → converter-DZNL-ld-.js} +1 -1
  12. package/dist/super-editor/chunks/{docx-zipper-Dk99r397.js → docx-zipper-DukE72iM.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-CFv-RJI-.js → editor-CJCGDp-l.js} +159 -71
  14. package/dist/super-editor/chunks/{index-SGV4U12y.js → index-hX4H5xPH.js} +1 -1
  15. package/dist/super-editor/chunks/{toolbar-CQr3Xnx9.js → toolbar-D6tqFv6-.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 +214 -112
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
@@ -18281,9 +18281,9 @@
18281
18281
  const areAttrsEqual = (attrsA = {}, attrsB = {}) => {
18282
18282
  return objectIncludes(attrsA, attrsB);
18283
18283
  };
18284
- const TrackInsertMarkName = "trackInsert";
18285
- const TrackDeleteMarkName = "trackDelete";
18286
- const TrackFormatMarkName = "trackFormat";
18284
+ const TrackInsertMarkName$1 = "trackInsert";
18285
+ const TrackDeleteMarkName$1 = "trackDelete";
18286
+ const TrackFormatMarkName$1 = "trackFormat";
18287
18287
  const generateV2HandlerEntity = (handlerName, translator2) => ({
18288
18288
  handlerName,
18289
18289
  handler: (params2) => {
@@ -20049,7 +20049,7 @@
20049
20049
  const runProperties = translator$1N.encode({ ...params2, nodes: [rPr] });
20050
20050
  submarks = encodeMarksFromRPr(runProperties, params2?.docx);
20051
20051
  }
20052
- return [{ type: TrackFormatMarkName, attrs: { ...mappedAttributes, before: submarks, after: [...currentMarks] } }];
20052
+ return [{ type: TrackFormatMarkName$1, attrs: { ...mappedAttributes, before: submarks, after: [...currentMarks] } }];
20053
20053
  }
20054
20054
  function handleStyleChangeMarks(rPr, currentMarks) {
20055
20055
  const styleChangeMark = rPr.elements?.find((el) => el.name === "w:rPrChange");
@@ -20064,7 +20064,7 @@
20064
20064
  authorEmail: attributes["w:authorEmail"]
20065
20065
  };
20066
20066
  const submarks = parseMarks(styleChangeMark);
20067
- return [{ type: TrackFormatMarkName, attrs: { ...mappedAttributes, before: submarks, after: [...currentMarks] } }];
20067
+ return [{ type: TrackFormatMarkName$1, attrs: { ...mappedAttributes, before: submarks, after: [...currentMarks] } }];
20068
20068
  }
20069
20069
  function createImportMarks(marks) {
20070
20070
  const textStyleMarksToCombine = marks.filter((mark2) => mark2.type === "textStyle");
@@ -20502,7 +20502,7 @@
20502
20502
  const prepareRunTrackingContext = (node2 = {}) => {
20503
20503
  const marks = Array.isArray(node2.marks) ? node2.marks : [];
20504
20504
  const trackingMarks = marks.filter(
20505
- (mark2) => mark2?.type === TrackInsertMarkName || mark2?.type === TrackDeleteMarkName
20505
+ (mark2) => mark2?.type === TrackInsertMarkName$1 || mark2?.type === TrackDeleteMarkName$1
20506
20506
  );
20507
20507
  if (!trackingMarks.length) {
20508
20508
  return { runNode: node2, trackingMarksByType: /* @__PURE__ */ new Map() };
@@ -20511,7 +20511,7 @@
20511
20511
  trackingMarks.forEach((mark2) => {
20512
20512
  if (mark2?.type) trackingMarksByType.set(mark2.type, cloneMark(mark2));
20513
20513
  });
20514
- const preservedMarks = marks.filter((mark2) => mark2?.type !== TrackInsertMarkName && mark2?.type !== TrackDeleteMarkName).map((mark2) => cloneMark(mark2));
20514
+ const preservedMarks = marks.filter((mark2) => mark2?.type !== TrackInsertMarkName$1 && mark2?.type !== TrackDeleteMarkName$1).map((mark2) => cloneMark(mark2));
20515
20515
  const clonedContent = Array.isArray(node2.content) ? node2.content.map((child) => {
20516
20516
  const childClone = cloneNode(child);
20517
20517
  const childMarks = Array.isArray(childClone.marks) ? childClone.marks.slice() : [];
@@ -20550,8 +20550,8 @@
20550
20550
  return runs2;
20551
20551
  }
20552
20552
  if (!trackingMarksByType.size) return runs2;
20553
- if (trackingMarksByType.has(TrackInsertMarkName)) {
20554
- const mark2 = trackingMarksByType.get(TrackInsertMarkName);
20553
+ if (trackingMarksByType.has(TrackInsertMarkName$1)) {
20554
+ const mark2 = trackingMarksByType.get(TrackInsertMarkName$1);
20555
20555
  const clonedRuns = cloneRuns(runs2);
20556
20556
  const wrapper = {
20557
20557
  name: "w:ins",
@@ -20568,8 +20568,8 @@
20568
20568
  };
20569
20569
  return [wrapper];
20570
20570
  }
20571
- if (trackingMarksByType.has(TrackDeleteMarkName)) {
20572
- const mark2 = trackingMarksByType.get(TrackDeleteMarkName);
20571
+ if (trackingMarksByType.has(TrackDeleteMarkName$1)) {
20572
+ const mark2 = trackingMarksByType.get(TrackDeleteMarkName$1);
20573
20573
  const clonedRuns = cloneRuns(runs2);
20574
20574
  clonedRuns.forEach(renameTextElementsForDeletion);
20575
20575
  const wrapper = {
@@ -41859,7 +41859,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
41859
41859
  static getStoredSuperdocVersion(docx) {
41860
41860
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
41861
41861
  }
41862
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.32") {
41862
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.33") {
41863
41863
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
41864
41864
  }
41865
41865
  /**
@@ -53022,7 +53022,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
53022
53022
  var __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
53023
53023
  var __privateSet = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value), value);
53024
53024
  var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
53025
- 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, 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, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _remoteCursorRafHandle, _scrollTimeout, _PresentationEditor_instances, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_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, 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, 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, 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;
53025
+ 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, 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, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _remoteCursorRafHandle, _scrollTimeout, _PresentationEditor_instances, collectCommentPositions_fn, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_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, 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, 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, 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;
53026
53026
  var GOOD_LEAF_SIZE = 200;
53027
53027
  var RopeSequence = function RopeSequence2() {
53028
53028
  };
@@ -63874,13 +63874,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63874
63874
  return markFound;
63875
63875
  };
63876
63876
  const markInsertion = ({ tr, from: from2, to, user, date }) => {
63877
- tr.removeMark(from2, to, tr.doc.type.schema.marks[TrackDeleteMarkName]);
63878
- tr.removeMark(from2, to, tr.doc.type.schema.marks[TrackInsertMarkName]);
63877
+ tr.removeMark(from2, to, tr.doc.type.schema.marks[TrackDeleteMarkName$1]);
63878
+ tr.removeMark(from2, to, tr.doc.type.schema.marks[TrackInsertMarkName$1]);
63879
63879
  let trackedMark = findTrackedMarkBetween({
63880
63880
  tr,
63881
63881
  from: from2,
63882
63882
  to,
63883
- markName: TrackInsertMarkName,
63883
+ markName: TrackInsertMarkName$1,
63884
63884
  attrs: { authorEmail: user.email }
63885
63885
  });
63886
63886
  let id;
@@ -63889,7 +63889,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63889
63889
  } else {
63890
63890
  id = v4$1();
63891
63891
  }
63892
- const insertionMark = tr.doc.type.schema.marks[TrackInsertMarkName].create({
63892
+ const insertionMark = tr.doc.type.schema.marks[TrackInsertMarkName$1].create({
63893
63893
  id,
63894
63894
  author: user.name,
63895
63895
  authorEmail: user.email,
@@ -63915,7 +63915,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63915
63915
  tr,
63916
63916
  from: from2,
63917
63917
  to,
63918
- markName: TrackDeleteMarkName,
63918
+ markName: TrackDeleteMarkName$1,
63919
63919
  attrs: { authorEmail: user.email }
63920
63920
  });
63921
63921
  let id;
@@ -63926,7 +63926,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63926
63926
  } else {
63927
63927
  id = v4$1();
63928
63928
  }
63929
- const deletionMark = tr.doc.type.schema.marks[TrackDeleteMarkName].create({
63929
+ const deletionMark = tr.doc.type.schema.marks[TrackDeleteMarkName$1].create({
63930
63930
  id,
63931
63931
  author: user.name,
63932
63932
  authorEmail: user.email,
@@ -63939,7 +63939,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63939
63939
  if (node2.type.name.includes("table")) {
63940
63940
  return;
63941
63941
  }
63942
- if (node2.isInline && node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName && mark2.attrs.authorEmail === user.email)) {
63942
+ if (node2.isInline && node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName$1 && mark2.attrs.authorEmail === user.email)) {
63943
63943
  const removeStep = new ReplaceStep(
63944
63944
  deletionMap.map(Math.max(from2, pos)),
63945
63945
  deletionMap.map(Math.min(to, pos + node2.nodeSize)),
@@ -63948,14 +63948,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63948
63948
  if (!tr.maybeStep(removeStep).failed) {
63949
63949
  deletionMap.appendMap(removeStep.getMap());
63950
63950
  }
63951
- } else if (node2.isInline && !node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName)) {
63951
+ } else if (node2.isInline && !node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName$1)) {
63952
63952
  nodes.push(node2);
63953
63953
  tr.addMark(
63954
63954
  deletionMap.map(Math.max(from2, pos)),
63955
63955
  deletionMap.map(Math.min(to, pos + node2.nodeSize)),
63956
63956
  deletionMark
63957
63957
  );
63958
- } else if (node2.attrs.track && !node2.attrs.track.find((trackAttr) => trackAttr.type === TrackDeleteMarkName) && !["bulletList", "orderedList"].includes(node2.type.name)) ;
63958
+ } else if (node2.attrs.track && !node2.attrs.track.find((trackAttr) => trackAttr.type === TrackDeleteMarkName$1) && !["bulletList", "orderedList"].includes(node2.type.name)) ;
63959
63959
  });
63960
63960
  return { deletionMark, deletionMap, nodes };
63961
63961
  };
@@ -64022,7 +64022,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64022
64022
  }
64023
64023
  allInlineNodes.forEach(({ node: node2, pos }) => {
64024
64024
  const { marks } = node2;
64025
- const trackedMarks = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
64025
+ const trackedMarks = [TrackInsertMarkName$1, TrackDeleteMarkName$1, TrackFormatMarkName$1];
64026
64026
  if (marks.length > 0) {
64027
64027
  marks.forEach((mark2) => {
64028
64028
  if (trackedMarks.includes(mark2.type.name)) {
@@ -64135,7 +64135,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64135
64135
  return DecorationSet.empty;
64136
64136
  }
64137
64137
  trackedChanges.forEach(({ mark: mark2, from: from2, to }) => {
64138
- if (mark2.type.name === TrackInsertMarkName) {
64138
+ if (mark2.type.name === TrackInsertMarkName$1) {
64139
64139
  if (onlyOriginalShown) {
64140
64140
  const decoration = Decoration.inline(from2, to, {
64141
64141
  class: "track-insert-dec hidden"
@@ -64153,7 +64153,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64153
64153
  decorations.push(decoration);
64154
64154
  }
64155
64155
  }
64156
- if (mark2.type.name === TrackDeleteMarkName) {
64156
+ if (mark2.type.name === TrackDeleteMarkName$1) {
64157
64157
  if (onlyOriginalShown) {
64158
64158
  const decoration = Decoration.inline(from2, to, {
64159
64159
  class: "track-delete-dec normal"
@@ -64185,7 +64185,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64185
64185
  decorations.push(decorationWidget);
64186
64186
  }
64187
64187
  }
64188
- if (mark2.type.name === TrackFormatMarkName) {
64188
+ if (mark2.type.name === TrackFormatMarkName$1) {
64189
64189
  if (onlyOriginalShown) {
64190
64190
  const decoration = Decoration.inline(from2, to, {
64191
64191
  class: "track-format-dec before"
@@ -64206,7 +64206,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64206
64206
  });
64207
64207
  return DecorationSet.create(state2.doc, decorations);
64208
64208
  };
64209
- const CommentMarkName = "commentMark";
64209
+ const CommentMarkName$1 = "commentMark";
64210
64210
  const resolveCommentMeta = ({ converter, importedId }) => {
64211
64211
  const comments = converter?.comments || [];
64212
64212
  const matchingImportedComment = comments.find((c2) => c2.importedId == importedId);
@@ -64237,7 +64237,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64237
64237
  const removeCommentsById = ({ commentId, state: state2, tr, dispatch }) => {
64238
64238
  const positions = getCommentPositionsById(commentId, state2.doc);
64239
64239
  positions.forEach(({ from: from2, to }) => {
64240
- tr.removeMark(from2, to, state2.schema.marks[CommentMarkName]);
64240
+ tr.removeMark(from2, to, state2.schema.marks[CommentMarkName$1]);
64241
64241
  });
64242
64242
  dispatch(tr);
64243
64243
  };
@@ -64245,7 +64245,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64245
64245
  const positions = [];
64246
64246
  doc2.descendants((node2, pos) => {
64247
64247
  const { marks } = node2;
64248
- const commentMark = marks.find((mark2) => mark2.type.name === CommentMarkName);
64248
+ const commentMark = marks.find((mark2) => mark2.type.name === CommentMarkName$1);
64249
64249
  if (commentMark) {
64250
64250
  const { attrs } = commentMark;
64251
64251
  const { commentId: currentCommentId } = attrs;
@@ -64265,7 +64265,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64265
64265
  const endNodes = [];
64266
64266
  const seen = /* @__PURE__ */ new Set();
64267
64267
  doc2.descendants((node2, pos) => {
64268
- const commentMarks = node2.marks?.filter((mark2) => mark2.type.name === CommentMarkName) || [];
64268
+ const commentMarks = node2.marks?.filter((mark2) => mark2.type.name === CommentMarkName$1) || [];
64269
64269
  commentMarks.forEach((commentMark) => {
64270
64270
  const { attrs = {} } = commentMark;
64271
64271
  const { commentId } = attrs;
@@ -64393,7 +64393,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64393
64393
  importedId,
64394
64394
  internal: itemToMark.internal
64395
64395
  };
64396
- tr.addMark(start2, pos + 1, schema.marks[CommentMarkName].create(markAttrs));
64396
+ tr.addMark(start2, pos + 1, schema.marks[CommentMarkName$1].create(markAttrs));
64397
64397
  toDelete.push({ start: pos, end: pos + 1 });
64398
64398
  } else if (type2.name === "commentReference") {
64399
64399
  toDelete.push({ start: pos, end: pos + 1 });
@@ -64511,7 +64511,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64511
64511
  existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
64512
64512
  }
64513
64513
  };
64514
- const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
64514
+ const TRACK_CHANGE_MARKS = [TrackInsertMarkName$1, TrackDeleteMarkName$1, TrackFormatMarkName$1];
64515
64515
  const CommentsPluginKey = new PluginKey("comments");
64516
64516
  const CommentsPlugin = Extension.create({
64517
64517
  name: "comments",
@@ -64527,7 +64527,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64527
64527
  tr.addMark(
64528
64528
  $from.pos,
64529
64529
  $to.pos,
64530
- this.editor.schema.marks[CommentMarkName].create({
64530
+ this.editor.schema.marks[CommentMarkName$1].create({
64531
64531
  commentId: resolvedCommentId,
64532
64532
  internal: resolvedInternal
64533
64533
  })
@@ -64567,7 +64567,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64567
64567
  doc2.descendants((node2, pos) => {
64568
64568
  if (foundStartNode) return;
64569
64569
  const { marks = [] } = node2;
64570
- const commentMark = marks.find((mark2) => mark2.type.name === CommentMarkName);
64570
+ const commentMark = marks.find((mark2) => mark2.type.name === CommentMarkName$1);
64571
64571
  if (commentMark) {
64572
64572
  const { attrs } = commentMark;
64573
64573
  const wid = attrs.commentId;
@@ -64581,7 +64581,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64581
64581
  tr.addMark(
64582
64582
  foundPos,
64583
64583
  foundPos + foundStartNode.nodeSize,
64584
- this.editor.schema.marks[CommentMarkName].create({
64584
+ this.editor.schema.marks[CommentMarkName$1].create({
64585
64585
  commentId,
64586
64586
  internal: isInternal
64587
64587
  })
@@ -64710,10 +64710,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64710
64710
  prevDoc = doc2;
64711
64711
  shouldUpdate = false;
64712
64712
  const decorations = [];
64713
- const allCommentPositions = onlyActiveThreadChanged ? prevAllCommentPositions : {};
64713
+ const allCommentPositions = {};
64714
64714
  doc2.descendants((node2, pos) => {
64715
64715
  const { marks = [] } = node2;
64716
- const commentMarks = marks.filter((mark2) => mark2.type.name === CommentMarkName);
64716
+ const commentMarks = marks.filter((mark2) => mark2.type.name === CommentMarkName$1);
64717
64717
  let hasActive = false;
64718
64718
  commentMarks.forEach((commentMark) => {
64719
64719
  const { attrs } = commentMark;
@@ -64839,7 +64839,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64839
64839
  return;
64840
64840
  }
64841
64841
  const { marks = [] } = node2;
64842
- const commentMark = marks.find((mark2) => mark2.type.name === CommentMarkName);
64842
+ const commentMark = marks.find((mark2) => mark2.type.name === CommentMarkName$1);
64843
64843
  if (commentMark) {
64844
64844
  overlaps.push({
64845
64845
  node: node2,
@@ -64862,7 +64862,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64862
64862
  }
64863
64863
  });
64864
64864
  const { marks: closestMarks = [] } = closestCommentRangeStart || {};
64865
- const closestCommentMark = closestMarks.find((mark2) => mark2.type.name === CommentMarkName);
64865
+ const closestCommentMark = closestMarks.find((mark2) => mark2.type.name === CommentMarkName$1);
64866
64866
  return closestCommentMark?.attrs?.commentId || closestCommentMark?.attrs?.importedId;
64867
64867
  };
64868
64868
  const findTrackedMark = ({
@@ -64912,7 +64912,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64912
64912
  let nodes = step?.slice?.content?.content || [];
64913
64913
  if (!nodes.length) {
64914
64914
  newEditorState.doc.descendants((node2) => {
64915
- const hasFormatMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName);
64915
+ const hasFormatMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1);
64916
64916
  if (hasFormatMark) {
64917
64917
  nodes = [node2];
64918
64918
  return false;
@@ -64937,19 +64937,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64937
64937
  const getTrackedChangeText = ({ nodes, mark: mark2, trackedChangeType, isDeletionInsertion }) => {
64938
64938
  let trackedChangeText = "";
64939
64939
  let deletionText = "";
64940
- if (trackedChangeType === TrackInsertMarkName) {
64940
+ if (trackedChangeType === TrackInsertMarkName$1) {
64941
64941
  trackedChangeText = nodes.reduce((acc, node2) => {
64942
64942
  if (!node2.marks.find((nodeMark) => nodeMark.type.name === mark2.type.name)) return acc;
64943
64943
  acc += node2?.text || node2?.textContent || "";
64944
64944
  return acc;
64945
64945
  }, "");
64946
64946
  }
64947
- if (trackedChangeType === TrackFormatMarkName) {
64947
+ if (trackedChangeType === TrackFormatMarkName$1) {
64948
64948
  trackedChangeText = translateFormatChangesToEnglish(mark2.attrs);
64949
64949
  }
64950
- if (trackedChangeType === TrackDeleteMarkName || isDeletionInsertion) {
64950
+ if (trackedChangeType === TrackDeleteMarkName$1 || isDeletionInsertion) {
64951
64951
  deletionText = nodes.reduce((acc, node2) => {
64952
- if (!node2.marks.find((nodeMark) => nodeMark.type.name === TrackDeleteMarkName)) return acc;
64952
+ if (!node2.marks.find((nodeMark) => nodeMark.type.name === TrackDeleteMarkName$1)) return acc;
64953
64953
  acc += node2?.text || node2?.textContent || "";
64954
64954
  return acc;
64955
64955
  }, "");
@@ -65015,7 +65015,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65015
65015
  if (to === null || pos + node2.nodeSize > to) to = pos + node2.nodeSize;
65016
65016
  }
65017
65017
  const commentMark = node2.marks.find(
65018
- (m2) => m2.type.name === CommentMarkName && (m2.attrs.commentId === id || m2.attrs.importedId === id)
65018
+ (m2) => m2.type.name === CommentMarkName$1 && (m2.attrs.commentId === id || m2.attrs.importedId === id)
65019
65019
  );
65020
65020
  if (commentMark) {
65021
65021
  if (from2 === null || pos < from2) from2 = pos;
@@ -65025,7 +65025,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65025
65025
  return from2 !== null && to !== null ? { from: from2, to } : null;
65026
65026
  }
65027
65027
  const replaceStep = ({ state: state2, tr, step, newTr, map: map2, user, date, originalStep, originalStepIndex }) => {
65028
- const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName];
65028
+ const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName$1];
65029
65029
  const deletionMark = findMark(state2, deletionMarkSchema, false);
65030
65030
  const positionTo = deletionMark ? deletionMark.to : step.to;
65031
65031
  const newStep = new ReplaceStep(
@@ -65089,17 +65089,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65089
65089
  if (!node2.isInline) {
65090
65090
  return;
65091
65091
  }
65092
- if (node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName)) {
65092
+ if (node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName$1)) {
65093
65093
  return false;
65094
65094
  }
65095
65095
  const existingChangeMark = node2.marks.find(
65096
- (mark2) => [TrackDeleteMarkName, TrackFormatMarkName].includes(mark2.type.name)
65096
+ (mark2) => [TrackDeleteMarkName$1, TrackFormatMarkName$1].includes(mark2.type.name)
65097
65097
  );
65098
65098
  const wid = existingChangeMark ? existingChangeMark.attrs.id : v4$1();
65099
65099
  newTr.addMark(Math.max(step.from, pos), Math.min(step.to, pos + node2.nodeSize), step.mark);
65100
65100
  const allowedMarks = ["bold", "italic", "strike", "underline", "textStyle"];
65101
65101
  if (allowedMarks.includes(step.mark.type.name) && !node2.marks.find((mark2) => mark2.type === step.mark.type)) {
65102
- const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName);
65102
+ const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1);
65103
65103
  let after = [];
65104
65104
  let before = [];
65105
65105
  if (formatChangeMark) {
@@ -65135,7 +65135,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65135
65135
  ];
65136
65136
  }
65137
65137
  if (after.length || before.length) {
65138
- const newFormatMark = state2.schema.marks[TrackFormatMarkName].create({
65138
+ const newFormatMark = state2.schema.marks[TrackFormatMarkName$1].create({
65139
65139
  id: wid,
65140
65140
  author: user.name,
65141
65141
  authorEmail: user.email,
@@ -65167,13 +65167,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65167
65167
  if (!node2.isInline) {
65168
65168
  return true;
65169
65169
  }
65170
- if (node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName)) {
65170
+ if (node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName$1)) {
65171
65171
  return false;
65172
65172
  }
65173
65173
  newTr.removeMark(Math.max(step.from, pos), Math.min(step.to, pos + node2.nodeSize), step.mark);
65174
65174
  const allowedMarks = ["bold", "italic", "strike", "underline", "textStyle"];
65175
65175
  if (allowedMarks.includes(step.mark.type.name) && node2.marks.find((mark2) => mark2.type === step.mark.type)) {
65176
- const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName);
65176
+ const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1);
65177
65177
  let after = [];
65178
65178
  let before = [];
65179
65179
  if (formatChangeMark) {
@@ -65201,7 +65201,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65201
65201
  ];
65202
65202
  }
65203
65203
  if (after.length || before.length) {
65204
- const newFormatMark = state2.schema.marks[TrackFormatMarkName].create({
65204
+ const newFormatMark = state2.schema.marks[TrackFormatMarkName$1].create({
65205
65205
  id: v4$1(),
65206
65206
  author: user.name,
65207
65207
  authorEmail: user.email,
@@ -65282,7 +65282,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65282
65282
  newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
65283
65283
  }
65284
65284
  if (tr.selectionSet) {
65285
- const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName];
65285
+ const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName$1];
65286
65286
  const deletionMark = findMark(state2, deletionMarkSchema, false);
65287
65287
  if (tr.selection instanceof TextSelection$1 && (tr.selection.from < state2.selection.from || tr.getMeta("inputType") === "deleteContentBackward")) {
65288
65288
  const caretPos = map2.map(tr.selection.from, -1);
@@ -66889,7 +66889,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
66889
66889
  const shouldSkipNodeView = (editor) => {
66890
66890
  return isHeadless(editor);
66891
66891
  };
66892
- const summaryVersion = "1.0.0-beta.32";
66892
+ const summaryVersion = "1.0.0-beta.33";
66893
66893
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
66894
66894
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
66895
66895
  function mapAttributes(attrs) {
@@ -67678,7 +67678,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
67678
67678
  { default: remarkStringify2 },
67679
67679
  { default: remarkGfm2 }
67680
67680
  ] = await Promise.all([
67681
- Promise.resolve().then(() => indexSGV4U12y),
67681
+ Promise.resolve().then(() => indexHX4H5xPH),
67682
67682
  Promise.resolve().then(() => indexDRCvimau),
67683
67683
  Promise.resolve().then(() => indexC_x_N6Uh),
67684
67684
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -67883,7 +67883,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
67883
67883
  * Process collaboration migrations
67884
67884
  */
67885
67885
  processCollaborationMigrations() {
67886
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.32");
67886
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.33");
67887
67887
  if (!this.options.ydoc) return;
67888
67888
  const metaMap = this.options.ydoc.getMap("meta");
67889
67889
  let docVersion = metaMap.get("version");
@@ -80680,7 +80680,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
80680
80680
  });
80681
80681
  for (const fragment of fragments) {
80682
80682
  if (fragment.kind !== "para") continue;
80683
- const blockIndex = blocks2.findIndex((block2) => block2.id === fragment.blockId);
80683
+ const blockIndex = findBlockIndexByFragmentId(blocks2, fragment.blockId);
80684
80684
  if (blockIndex === -1) continue;
80685
80685
  const block = blocks2[blockIndex];
80686
80686
  const measure = measures[blockIndex];
@@ -80707,7 +80707,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
80707
80707
  const withinX = point2.x >= fragment.x && point2.x <= fragment.x + fragment.width;
80708
80708
  const withinY = point2.y >= fragment.y && point2.y <= fragment.y + fragment.height;
80709
80709
  if (!withinX || !withinY) continue;
80710
- const blockIndex = blocks2.findIndex((block2) => block2.id === fragment.blockId);
80710
+ const blockIndex = findBlockIndexByFragmentId(blocks2, fragment.blockId);
80711
80711
  if (blockIndex === -1) continue;
80712
80712
  const block = blocks2[blockIndex];
80713
80713
  const measure = measures[blockIndex];
@@ -80846,7 +80846,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
80846
80846
  blockId = fragment.blockId;
80847
80847
  pageIndex = pi;
80848
80848
  column = determineColumn(layout, fragment.x);
80849
- const blockIndex = blocks2.findIndex((b2) => b2.id === fragment.blockId);
80849
+ const blockIndex = findBlockIndexByFragmentId(blocks2, fragment.blockId);
80850
80850
  if (blockIndex !== -1) {
80851
80851
  const measure = measures[blockIndex];
80852
80852
  if (measure && measure.kind === "paragraph") {
@@ -80996,6 +80996,44 @@ Please report this to https://github.com/markedjs/marked.`, e) {
80996
80996
  });
80997
80997
  return null;
80998
80998
  }
80999
+ function findBlockIndexByFragmentId(blocks2, fragmentBlockId, targetPmRange) {
81000
+ const index2 = blocks2.findIndex(
81001
+ (block) => block.id === fragmentBlockId && block.kind !== "pageBreak" && block.kind !== "sectionBreak"
81002
+ );
81003
+ if (index2 !== -1) {
81004
+ return index2;
81005
+ }
81006
+ const baseBlockId = fragmentBlockId.replace(/-\d+$/, "");
81007
+ if (baseBlockId === fragmentBlockId) {
81008
+ return -1;
81009
+ }
81010
+ const matchingIndices = [];
81011
+ blocks2.forEach((block, idx) => {
81012
+ if (block.id === baseBlockId && block.kind === "paragraph") {
81013
+ matchingIndices.push(idx);
81014
+ }
81015
+ });
81016
+ if (matchingIndices.length === 0) {
81017
+ return -1;
81018
+ }
81019
+ if (matchingIndices.length === 1) {
81020
+ return matchingIndices[0];
81021
+ }
81022
+ if (targetPmRange) {
81023
+ for (const idx of matchingIndices) {
81024
+ const block = blocks2[idx];
81025
+ if (block.kind !== "paragraph") continue;
81026
+ const hasOverlap = block.runs.some((run2) => {
81027
+ if (run2.pmStart == null || run2.pmEnd == null) return false;
81028
+ return run2.pmEnd > targetPmRange.from && run2.pmStart < targetPmRange.to;
81029
+ });
81030
+ if (hasOverlap) {
81031
+ return idx;
81032
+ }
81033
+ }
81034
+ }
81035
+ return matchingIndices[0];
81036
+ }
80999
81037
  function selectionToRects(layout, blocks2, measures, from2, to) {
81000
81038
  if (from2 === to) {
81001
81039
  return [];
@@ -81004,8 +81042,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
81004
81042
  layout.pages.forEach((page, pageIndex) => {
81005
81043
  page.fragments.forEach((fragment) => {
81006
81044
  if (fragment.kind === "para") {
81007
- const blockIndex = blocks2.findIndex((block2) => block2.id === fragment.blockId);
81008
- if (blockIndex === -1) return;
81045
+ const blockIndex = findBlockIndexByFragmentId(blocks2, fragment.blockId, { from: from2, to });
81046
+ if (blockIndex === -1) {
81047
+ return;
81048
+ }
81009
81049
  const block = blocks2[blockIndex];
81010
81050
  const measure = measures[blockIndex];
81011
81051
  if (!block || block.kind !== "paragraph" || measure?.kind !== "paragraph") {
@@ -81041,7 +81081,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
81041
81081
  return;
81042
81082
  }
81043
81083
  if (isAtomicFragment(fragment)) {
81044
- const blockIndex = blocks2.findIndex((block2) => block2.id === fragment.blockId);
81084
+ const blockIndex = findBlockIndexByFragmentId(blocks2, fragment.blockId, { from: from2, to });
81045
81085
  if (blockIndex === -1) return;
81046
81086
  const block = blocks2[blockIndex];
81047
81087
  const pmRange = getAtomicPmRange(fragment, block);
@@ -81062,7 +81102,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
81062
81102
  for (let pageIndex = 0; pageIndex < layout.pages.length; pageIndex += 1) {
81063
81103
  const page = layout.pages[pageIndex];
81064
81104
  for (const fragment of page.fragments) {
81065
- const blockIndex = blocks2.findIndex((block2) => block2.id === fragment.blockId);
81105
+ const blockIndex = findBlockIndexByFragmentId(blocks2, fragment.blockId);
81066
81106
  if (blockIndex === -1) {
81067
81107
  continue;
81068
81108
  }
@@ -90540,6 +90580,10 @@ ${l}
90540
90580
  }
90541
90581
  return false;
90542
90582
  }
90583
+ const CommentMarkName = "commentMark";
90584
+ const TrackInsertMarkName = "trackInsert";
90585
+ const TrackDeleteMarkName = "trackDelete";
90586
+ const TrackFormatMarkName = "trackFormat";
90543
90587
  function isValidFieldAnnotationAttributes(attrs) {
90544
90588
  if (!attrs || typeof attrs !== "object") return false;
90545
90589
  const a2 = attrs;
@@ -92029,6 +92073,33 @@ ${l}
92029
92073
  _remoteCursorRafHandle = /* @__PURE__ */ new WeakMap();
92030
92074
  _scrollTimeout = /* @__PURE__ */ new WeakMap();
92031
92075
  _PresentationEditor_instances = /* @__PURE__ */ new WeakSet();
92076
+ collectCommentPositions_fn = function() {
92077
+ const editorState = __privateGet$1(this, _editor3)?.state;
92078
+ if (!editorState) return {};
92079
+ const doc2 = editorState.doc;
92080
+ const trackChangeMarks = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
92081
+ const pmPositions = {};
92082
+ doc2.descendants((node2, pos) => {
92083
+ const marks = node2.marks || [];
92084
+ for (const mark2 of marks) {
92085
+ let threadId;
92086
+ if (mark2.type.name === CommentMarkName) {
92087
+ threadId = mark2.attrs.commentId || mark2.attrs.importedId;
92088
+ } else if (trackChangeMarks.includes(mark2.type.name)) {
92089
+ threadId = mark2.attrs.id;
92090
+ }
92091
+ if (!threadId) continue;
92092
+ const nodeEnd = pos + node2.nodeSize;
92093
+ if (!pmPositions[threadId]) {
92094
+ pmPositions[threadId] = { threadId, start: pos, end: nodeEnd };
92095
+ } else {
92096
+ pmPositions[threadId].start = Math.min(pmPositions[threadId].start, pos);
92097
+ pmPositions[threadId].end = Math.max(pmPositions[threadId].end, nodeEnd);
92098
+ }
92099
+ }
92100
+ });
92101
+ return pmPositions;
92102
+ };
92032
92103
  aggregateLayoutBounds_fn = function(rects) {
92033
92104
  if (!rects.length) return null;
92034
92105
  const top2 = Math.min(...rects.map((rect) => rect.top));
@@ -92839,6 +92910,11 @@ ${l}
92839
92910
  const payload = { layout, blocks: blocks2, measures, metrics };
92840
92911
  this.emit("layoutUpdated", payload);
92841
92912
  this.emit("paginationUpdate", payload);
92913
+ const commentPositions = __privateMethod$1(this, _PresentationEditor_instances, collectCommentPositions_fn).call(this);
92914
+ const positionKeys = Object.keys(commentPositions);
92915
+ if (positionKeys.length > 0) {
92916
+ this.emit("commentPositions", { positions: commentPositions });
92917
+ }
92842
92918
  if (__privateGet$1(this, _telemetryEmitter) && metrics) {
92843
92919
  __privateGet$1(this, _telemetryEmitter).call(this, { type: "layout", data: { layout, blocks: blocks2, measures, metrics } });
92844
92920
  }
@@ -98305,6 +98381,7 @@ ${l}
98305
98381
  return ["p", Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes), 0];
98306
98382
  },
98307
98383
  addNodeView() {
98384
+ if (this.editor.options?.mode !== "docx" || !this.editor.converter) return null;
98308
98385
  if (shouldSkipNodeView(this.editor)) return null;
98309
98386
  return ({ node: node2, editor, getPos, decorations, extensionAttrs }) => {
98310
98387
  return new ParagraphNodeView(node2, editor, getPos, decorations, extensionAttrs);
@@ -98547,7 +98624,7 @@ ${l}
98547
98624
  }
98548
98625
  });
98549
98626
  const CommentsMark = Mark.create({
98550
- name: CommentMarkName,
98627
+ name: CommentMarkName$1,
98551
98628
  group: "comments",
98552
98629
  excludes: "",
98553
98630
  addOptions() {
@@ -98566,10 +98643,10 @@ ${l}
98566
98643
  };
98567
98644
  },
98568
98645
  parseDOM() {
98569
- return [{ tag: CommentMarkName }];
98646
+ return [{ tag: CommentMarkName$1 }];
98570
98647
  },
98571
98648
  renderDOM({ htmlAttributes }) {
98572
- return [CommentMarkName, Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes)];
98649
+ return [CommentMarkName$1, Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes)];
98573
98650
  }
98574
98651
  });
98575
98652
  let cache$2 = /* @__PURE__ */ new WeakMap();
@@ -108753,7 +108830,7 @@ ${l}
108753
108830
  }
108754
108831
  const trackInsertClass = "track-insert";
108755
108832
  const TrackInsert = Mark.create({
108756
- name: TrackInsertMarkName,
108833
+ name: TrackInsertMarkName$1,
108757
108834
  group: "track",
108758
108835
  inclusive: false,
108759
108836
  addOptions() {
@@ -108830,7 +108907,7 @@ ${l}
108830
108907
  });
108831
108908
  const trackDeleteClass = "track-delete";
108832
108909
  const TrackDelete = Mark.create({
108833
- name: TrackDeleteMarkName,
108910
+ name: TrackDeleteMarkName$1,
108834
108911
  group: "track",
108835
108912
  inclusive: false,
108836
108913
  addOptions() {
@@ -108939,7 +109016,7 @@ ${l}
108939
109016
  }, Symbol.toStringTag, { value: "Module" }));
108940
109017
  const trackFormatClass = "track-format";
108941
109018
  const TrackFormat = Mark.create({
108942
- name: TrackFormatMarkName,
109019
+ name: TrackFormatMarkName$1,
108943
109020
  group: "track",
108944
109021
  inclusive: false,
108945
109022
  addOptions() {
@@ -109153,7 +109230,7 @@ ${l}
109153
109230
  tr.setMeta("inputType", "acceptReject");
109154
109231
  const map2 = new Mapping();
109155
109232
  doc2.nodesBetween(from2, to, (node2, pos) => {
109156
- if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName)) {
109233
+ if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName$1)) {
109157
109234
  const deletionStep = new ReplaceStep(
109158
109235
  map2.map(Math.max(pos, from2)),
109159
109236
  map2.map(Math.min(pos + node2.nodeSize, to)),
@@ -109161,8 +109238,8 @@ ${l}
109161
109238
  );
109162
109239
  tr.step(deletionStep);
109163
109240
  map2.appendMap(deletionStep.getMap());
109164
- } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName)) {
109165
- const insertionMark = node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName);
109241
+ } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName$1)) {
109242
+ const insertionMark = node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName$1);
109166
109243
  tr.step(
109167
109244
  new RemoveMarkStep(
109168
109245
  map2.map(Math.max(pos, from2)),
@@ -109170,8 +109247,8 @@ ${l}
109170
109247
  insertionMark
109171
109248
  )
109172
109249
  );
109173
- } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName)) {
109174
- const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName);
109250
+ } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1)) {
109251
+ const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1);
109175
109252
  tr.step(
109176
109253
  new RemoveMarkStep(
109177
109254
  map2.map(Math.max(pos, from2)),
@@ -109193,8 +109270,8 @@ ${l}
109193
109270
  tr.setMeta("inputType", "acceptReject");
109194
109271
  const map2 = new Mapping();
109195
109272
  doc2.nodesBetween(from2, to, (node2, pos) => {
109196
- if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName)) {
109197
- const deletionMark = node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName);
109273
+ if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName$1)) {
109274
+ const deletionMark = node2.marks.find((mark2) => mark2.type.name === TrackDeleteMarkName$1);
109198
109275
  tr.step(
109199
109276
  new RemoveMarkStep(
109200
109277
  map2.map(Math.max(pos, from2)),
@@ -109202,7 +109279,7 @@ ${l}
109202
109279
  deletionMark
109203
109280
  )
109204
109281
  );
109205
- } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName)) {
109282
+ } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackInsertMarkName$1)) {
109206
109283
  const deletionStep = new ReplaceStep(
109207
109284
  map2.map(Math.max(pos, from2)),
109208
109285
  map2.map(Math.min(pos + node2.nodeSize, to)),
@@ -109210,8 +109287,8 @@ ${l}
109210
109287
  );
109211
109288
  tr.step(deletionStep);
109212
109289
  map2.appendMap(deletionStep.getMap());
109213
- } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName)) {
109214
- const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName);
109290
+ } else if (node2.marks && node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1)) {
109291
+ const formatChangeMark = node2.marks.find((mark2) => mark2.type.name === TrackFormatMarkName$1);
109215
109292
  formatChangeMark.attrs.before.forEach((oldMark) => {
109216
109293
  tr.step(
109217
109294
  new AddMarkStep(
@@ -109387,7 +109464,7 @@ ${l}
109387
109464
  const hasContentBetween = state2.doc.textBetween(left2.from, right2.to, "\n").length > getSegmentSize(left2) + getSegmentSize(right2);
109388
109465
  return !hasContentBetween;
109389
109466
  };
109390
- const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName && secondType === TrackInsertMarkName || firstType === TrackInsertMarkName && secondType === TrackDeleteMarkName;
109467
+ const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName$1 && secondType === TrackInsertMarkName$1 || firstType === TrackInsertMarkName$1 && secondType === TrackDeleteMarkName$1;
109391
109468
  const linkedBefore = [];
109392
109469
  const linkedAfter = [];
109393
109470
  const collectDirection = (direction, collection) => {
@@ -145782,26 +145859,14 @@ ${style2}
145782
145859
  const firstGroupRendered = ref(false);
145783
145860
  const verticalOffset = ref(0);
145784
145861
  const commentsRenderKey = ref(0);
145862
+ const measurementTimeoutId = ref(null);
145785
145863
  const getCommentPosition = computed(() => (comment2) => {
145786
145864
  if (!floatingCommentsContainer.value) return { top: "0px" };
145787
- floatingCommentsContainer.value.getBoundingClientRect();
145788
145865
  if (typeof comment2.top !== "number" || isNaN(comment2.top)) {
145789
145866
  return { display: "none" };
145790
145867
  }
145791
145868
  return { top: `${comment2.top}px` };
145792
145869
  });
145793
- const findScrollParent = (element2) => {
145794
- if (!element2) return window;
145795
- let parent = element2.parentNode;
145796
- while (parent && parent !== document) {
145797
- const style2 = getComputedStyle(parent);
145798
- if (/(auto|scroll|overlay)/.test(style2.overflow + style2.overflowY + style2.overflowX)) {
145799
- return parent;
145800
- }
145801
- parent = parent.parentNode;
145802
- }
145803
- return window;
145804
- };
145805
145870
  const handleDialog = (dialog) => {
145806
145871
  if (!dialog) return;
145807
145872
  const { elementRef, commentId } = dialog;
@@ -145809,44 +145874,68 @@ ${style2}
145809
145874
  nextTick(() => {
145810
145875
  const id = commentId;
145811
145876
  if (renderedSizes.value.some((item) => item.id == id)) return;
145812
- const editorBounds = props.parent.getBoundingClientRect();
145813
145877
  const comment2 = getFloatingComments.value.find((c2) => c2.commentId === id || c2.importedId == id);
145814
145878
  const positionKey = id || comment2?.importedId;
145815
- let position2 = editorCommentPositions.value[positionKey]?.bounds || {};
145879
+ const positionEntry = editorCommentPositions.value[positionKey];
145880
+ const position2 = positionEntry?.bounds || {};
145816
145881
  if (props.currentDocument.type === "application/pdf") {
145817
145882
  Object.entries(comment2.selection?.selectionBounds).forEach(([key2, value]) => {
145818
145883
  position2[key2] = Number(value);
145819
145884
  });
145820
- position2.top += editorBounds.top;
145821
145885
  }
145822
145886
  if (!position2) return;
145823
- const scrollParent = findScrollParent(props.parent);
145824
- scrollParent === window ? window.scrollY : scrollParent.scrollTop;
145825
145887
  const bounds = elementRef.value?.getBoundingClientRect();
145888
+ const top2 = Number(position2.top);
145889
+ if (!Number.isFinite(top2)) return;
145826
145890
  const placement = {
145827
145891
  id,
145828
- top: position2.top - editorBounds.top,
145892
+ top: top2,
145829
145893
  height: bounds.height,
145830
145894
  commentRef: comment2,
145831
- elementRef
145895
+ elementRef,
145896
+ pageIndex: positionEntry?.pageIndex ?? 0
145832
145897
  };
145833
145898
  renderedSizes.value.push(placement);
145834
145899
  });
145835
145900
  };
145836
145901
  const processLocations = async () => {
145837
- let currentBottom = 0;
145838
- renderedSizes.value.sort((a2, b2) => a2.top - b2.top).forEach((comment2) => {
145839
- if (comment2.top <= currentBottom + 15) {
145840
- comment2.top = currentBottom + 15;
145841
- }
145842
- currentBottom = comment2.top + comment2.height;
145902
+ const groupedByPage = renderedSizes.value.reduce((acc, comment2) => {
145903
+ const key2 = comment2.pageIndex ?? 0;
145904
+ if (!acc[key2]) acc[key2] = [];
145905
+ acc[key2].push(comment2);
145906
+ return acc;
145907
+ }, {});
145908
+ Object.values(groupedByPage).forEach((comments) => {
145909
+ comments.sort((a2, b2) => a2.top - b2.top).forEach((comment2, idx, arr) => {
145910
+ if (idx === 0) return;
145911
+ const prev = arr[idx - 1];
145912
+ const minTop = prev.top + prev.height + 15;
145913
+ if (comment2.top < minTop) {
145914
+ comment2.top = minTop;
145915
+ }
145916
+ });
145843
145917
  });
145844
145918
  await nextTick();
145845
145919
  firstGroupRendered.value = true;
145846
145920
  };
145847
145921
  watchEffect(() => {
145848
- if (renderedSizes.value.length === getFloatingComments.value.length) {
145922
+ if (measurementTimeoutId.value) {
145923
+ clearTimeout(measurementTimeoutId.value);
145924
+ measurementTimeoutId.value = null;
145925
+ }
145926
+ const totalComments = getFloatingComments.value.length;
145927
+ const measuredComments = renderedSizes.value.length;
145928
+ if (totalComments === 0) {
145929
+ return;
145930
+ }
145931
+ if (measuredComments === totalComments) {
145849
145932
  nextTick(processLocations);
145933
+ } else if (measuredComments > 0 && !firstGroupRendered.value) {
145934
+ measurementTimeoutId.value = setTimeout(() => {
145935
+ if (!firstGroupRendered.value && renderedSizes.value.length > 0) {
145936
+ processLocations();
145937
+ }
145938
+ }, 100);
145850
145939
  }
145851
145940
  });
145852
145941
  watch(activeComment, (newVal, oldVal) => {
@@ -145869,6 +145958,12 @@ ${style2}
145869
145958
  }, 200);
145870
145959
  });
145871
145960
  });
145961
+ onBeforeUnmount(() => {
145962
+ if (measurementTimeoutId.value) {
145963
+ clearTimeout(measurementTimeoutId.value);
145964
+ measurementTimeoutId.value = null;
145965
+ }
145966
+ });
145872
145967
  return (_ctx, _cache) => {
145873
145968
  return openBlock(), createElementBlock("div", {
145874
145969
  class: "section-wrapper",
@@ -145919,7 +146014,7 @@ ${style2}
145919
146014
  };
145920
146015
  }
145921
146016
  };
145922
- const FloatingComments = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-91de2350"]]);
146017
+ const FloatingComments = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-eab6fbfa"]]);
145923
146018
  const _sfc_main$9 = {
145924
146019
  __name: "TextField",
145925
146020
  props: {
@@ -146674,6 +146769,13 @@ ${style2}
146674
146769
  presentationEditor.onTelemetry((telemetryPayload) => {
146675
146770
  proxy.$superdoc.captureLayoutPipelineEvent(telemetryPayload);
146676
146771
  });
146772
+ presentationEditor.on("commentPositions", ({ positions }) => {
146773
+ const commentsConfig = proxy.$superdoc.config.modules?.comments;
146774
+ if (!commentsConfig || commentsConfig === false) return;
146775
+ if (!positions || Object.keys(positions).length === 0) return;
146776
+ const mappedPositions = presentationEditor.getCommentBounds(positions, layers.value);
146777
+ handleEditorLocationsUpdate(mappedPositions);
146778
+ });
146677
146779
  };
146678
146780
  const onEditorDestroy = () => {
146679
146781
  proxy.$superdoc.broadcastEditorDestroy();
@@ -147220,7 +147322,7 @@ ${style2}
147220
147322
  };
147221
147323
  }
147222
147324
  };
147223
- const App = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3fafc837"]]);
147325
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3c3356b6"]]);
147224
147326
  const createSuperdocVueApp = () => {
147225
147327
  const app = createApp(App);
147226
147328
  const pinia = createPinia();
@@ -147400,7 +147502,7 @@ ${style2}
147400
147502
  this.config.colors = shuffleArray(this.config.colors);
147401
147503
  this.userColorMap = /* @__PURE__ */ new Map();
147402
147504
  this.colorIndex = 0;
147403
- this.version = "1.0.0-beta.32";
147505
+ this.version = "1.0.0-beta.33";
147404
147506
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
147405
147507
  this.superdocId = config2.superdocId || v4();
147406
147508
  this.colors = this.config.colors;
@@ -149844,7 +149946,7 @@ ${style2}
149844
149946
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
149845
149947
  );
149846
149948
  }
149847
- const indexSGV4U12y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
149949
+ const indexHX4H5xPH = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
149848
149950
  __proto__: null,
149849
149951
  unified
149850
149952
  }, Symbol.toStringTag, { value: "Module" }));