@harbour-enterprises/superdoc 1.0.5 → 1.1.1

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 (29) hide show
  1. package/dist/chunks/{PdfViewer-nkEIPy-A.es.js → PdfViewer-C1zFzMbc.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-NZVdeD6H.cjs → PdfViewer-CM7Xv_EB.cjs} +1 -1
  3. package/dist/chunks/{index-BcCFaRLf-DfSZLowE.es.js → index-BTh-y1Z8-DbitXhC4.es.js} +1 -1
  4. package/dist/chunks/{index-BcCFaRLf-nf4ZfPio.cjs → index-BTh-y1Z8-cfF8oFrC.cjs} +1 -1
  5. package/dist/chunks/{index-ClAXFGH6.es.js → index-BoBf0NbC.es.js} +3 -3
  6. package/dist/chunks/{index-Jx8Z6ZB8.cjs → index-DcTiDrZR.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-BnbGC74e.es.js → super-editor.es-CcRgDiI0.es.js} +138 -49
  8. package/dist/chunks/{super-editor.es-DRR5Nm_U.cjs → super-editor.es-DVbzpPdX.cjs} +138 -49
  9. package/dist/style.css +8 -0
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-DR7H70x9.js → converter-r8fFrCoG.js} +1 -1
  12. package/dist/super-editor/chunks/{docx-zipper-DgYWHHqF.js → docx-zipper-Cdo7N4G3.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-BX34kZU2.js → editor-BYC5b9i-.js} +139 -50
  14. package/dist/super-editor/chunks/{index-BcCFaRLf.js → index-BTh-y1Z8.js} +1 -1
  15. package/dist/super-editor/chunks/{toolbar-DozEUErF.js → toolbar-Bn9n_w-F.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/style.css +8 -0
  21. package/dist/super-editor/super-editor.es.js +6 -6
  22. package/dist/super-editor/toolbar.es.js +2 -2
  23. package/dist/super-editor.cjs +1 -1
  24. package/dist/super-editor.es.js +1 -1
  25. package/dist/superdoc.cjs +2 -2
  26. package/dist/superdoc.es.js +2 -2
  27. package/dist/superdoc.umd.js +140 -51
  28. package/dist/superdoc.umd.js.map +1 -1
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { y as defineComponent, A as h, P as Transition, a0 as process$1, K as watchEffect, a as computed, r as ref, j as onMounted, X as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, s as createVNode, x as unref } from "./vue-CLFbn_1r.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-ClAXFGH6.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-BoBf0NbC.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-gvuFr0vx.cjs");
4
- const superdoc = require("./index-Jx8Z6ZB8.cjs");
4
+ const superdoc = require("./index-DcTiDrZR.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-BnbGC74e.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-CcRgDiI0.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -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-DRR5Nm_U.cjs");
3
+ const superEditor_es = require("./super-editor.es-DVbzpPdX.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 { 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-BnbGC74e.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-CcRgDiI0.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
3
  import { E as EventEmitter } from "./eventemitter3-D_2kqkfV.es.js";
4
4
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
@@ -17470,7 +17470,7 @@ const _sfc_main = {
17470
17470
  __name: "SuperDoc",
17471
17471
  emits: ["selection-update"],
17472
17472
  setup(__props, { emit: __emit }) {
17473
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-nkEIPy-A.es.js"));
17473
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-C1zFzMbc.es.js"));
17474
17474
  const superdocStore = useSuperdocStore();
17475
17475
  const commentsStore = useCommentsStore();
17476
17476
  const {
@@ -18374,7 +18374,7 @@ class SuperDoc extends EventEmitter {
18374
18374
  this.config.colors = shuffleArray(this.config.colors);
18375
18375
  this.userColorMap = /* @__PURE__ */ new Map();
18376
18376
  this.colorIndex = 0;
18377
- this.version = "1.0.5";
18377
+ this.version = "1.1.1";
18378
18378
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18379
18379
  this.superdocId = config.superdocId || v4();
18380
18380
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-DRR5Nm_U.cjs");
2
+ const superEditor_es = require("./super-editor.es-DVbzpPdX.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
4
  const eventemitter3 = require("./eventemitter3-DIclNhoR.cjs");
5
5
  const provider = require("@hocuspocus/provider");
@@ -17487,7 +17487,7 @@ const _sfc_main = {
17487
17487
  __name: "SuperDoc",
17488
17488
  emits: ["selection-update"],
17489
17489
  setup(__props, { emit: __emit }) {
17490
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-NZVdeD6H.cjs")));
17490
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CM7Xv_EB.cjs")));
17491
17491
  const superdocStore = useSuperdocStore();
17492
17492
  const commentsStore = useCommentsStore();
17493
17493
  const {
@@ -18391,7 +18391,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18391
18391
  this.config.colors = shuffleArray(this.config.colors);
18392
18392
  this.userColorMap = /* @__PURE__ */ new Map();
18393
18393
  this.colorIndex = 0;
18394
- this.version = "1.0.5";
18394
+ this.version = "1.1.1";
18395
18395
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18396
18396
  this.superdocId = config.superdocId || uuid.v4();
18397
18397
  this.colors = this.config.colors;
@@ -42410,7 +42410,7 @@ const _SuperConverter = class _SuperConverter2 {
42410
42410
  static getStoredSuperdocVersion(docx) {
42411
42411
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42412
42412
  }
42413
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.5") {
42413
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.1.1") {
42414
42414
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42415
42415
  }
42416
42416
  /**
@@ -45722,7 +45722,7 @@ var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "rea
45722
45722
  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);
45723
45723
  var __privateSet = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value), value);
45724
45724
  var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
45725
- var _a, _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, _currentEpoch, _mapsByFromEpoch, _maxEpochsToKeep, _EpochPositionMapper_instances, pruneByCurrentEpoch_fn, _entries, _windowRoot, _getPainterHost, _onRebuild, _observer, _rebuildScheduled, _rebuildRafId, _docEpoch, _layoutEpoch, _layoutUpdating, _pending, _scheduled, _rafHandle, _scheduler, _SelectionSyncCoordinator_instances, isSafeToRender_fn, maybeSchedule_fn, cancelScheduledRender_fn, _windowRoot2, _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, _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, _pageGeometryHelper, _dragHandlerCleanup, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionSync, _remoteCursorUpdateScheduled, _epochMapper, _layoutEpoch2, _domPositionIndex, _domIndexObserverManager, _debugLastPointer, _debugLastHit, _pendingMarginClick, _rafHandle2, _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, _a11ySelectionAnnounceTimeout, _a11yLastAnnouncedSelectionKey, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _lastSelectedImageBlockId, _dragAnchor, _dragAnchorPageIndex, _isDragging, _dragExtensionMode, _dragLastPointer, _dragLastRawHit, _dragUsedPageNotMountedFallback, _cellAnchor, _cellDragMode, _remoteCursorState, _remoteCursorElements, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _scrollTimeout, _lastRemoteCursorRenderTime, _remoteCursorThrottleTimeout, _PresentationEditor_instances, wrapHiddenEditorFocus_fn, collectCommentPositions_fn, updateSelectionDebugHud_fn, computePendingMarginClick_fn, aggregateLayoutBounds_fn, rebuildDomPositionIndex_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, updateLocalAwarenessCursor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, setupPointerHandlers_fn, setupDragHandlers_fn, focusEditorAfterImageSelection_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, getCellPosFromTableHit_fn, getTablePosFromHit_fn, shouldUseCellSelection_fn, setCellAnchor_fn, clearCellAnchor_fn, hitTestTable_fn, selectWordAt_fn, selectParagraphAt_fn, calculateExtendedSelection_fn, _handlePointerMove, _handlePointerLeave, _handleVisibleHostFocusIn, _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, syncHiddenEditorA11yAttributes_fn, scheduleA11ySelectionAnnouncement_fn, announceSelectionNow_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, createDefaultHeaderFooter_fn, getPageElement_fn, isSelectionAwareVirtualizationEnabled_fn, updateSelectionVirtualizationPins_fn, finalizeDragSelectionWithDom_fn, scrollPageIntoView_fn, waitForPageMount_fn, getEffectivePageGap_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderCellSelectionOverlay_fn, renderHoverRegion_fn, clearHoverRegion_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, applyZoom_fn, getPageOffsetX_fn, convertPageLocalToOverlayCoords_fn, computeSelectionRectsFromDom_fn, computeDomCaretPageLocal_fn, normalizeClientPoint_fn, computeCaretLayoutRectGeometry_fn, computeCaretLayoutRect_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_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;
45725
+ var _a, _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, _currentEpoch, _mapsByFromEpoch, _maxEpochsToKeep, _EpochPositionMapper_instances, pruneByCurrentEpoch_fn, _entries, _windowRoot, _getPainterHost, _onRebuild, _observer, _rebuildScheduled, _rebuildRafId, _docEpoch, _layoutEpoch, _layoutUpdating, _pending, _scheduled, _rafHandle, _scheduler, _SelectionSyncCoordinator_instances, isSafeToRender_fn, maybeSchedule_fn, cancelScheduledRender_fn, _windowRoot2, _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, _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, _pageGeometryHelper, _dragHandlerCleanup, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionSync, _remoteCursorUpdateScheduled, _epochMapper, _layoutEpoch2, _domPositionIndex, _domIndexObserverManager, _debugLastPointer, _debugLastHit, _pendingMarginClick, _rafHandle2, _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, _a11ySelectionAnnounceTimeout, _a11yLastAnnouncedSelectionKey, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _lastSelectedImageBlockId, _dragAnchor, _dragAnchorPageIndex, _isDragging, _dragExtensionMode, _dragLastPointer, _dragLastRawHit, _dragUsedPageNotMountedFallback, _cellAnchor, _cellDragMode, _remoteCursorState, _remoteCursorElements, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _scrollTimeout, _lastRemoteCursorRenderTime, _remoteCursorThrottleTimeout, _PresentationEditor_instances, wrapHiddenEditorFocus_fn, syncDocumentModeClass_fn, collectCommentPositions_fn, updateSelectionDebugHud_fn, computePendingMarginClick_fn, aggregateLayoutBounds_fn, rebuildDomPositionIndex_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, updateLocalAwarenessCursor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, setupPointerHandlers_fn, setupDragHandlers_fn, focusEditorAfterImageSelection_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, getCellPosFromTableHit_fn, getTablePosFromHit_fn, shouldUseCellSelection_fn, setCellAnchor_fn, clearCellAnchor_fn, hitTestTable_fn, selectWordAt_fn, selectParagraphAt_fn, calculateExtendedSelection_fn, _handlePointerMove, _handlePointerLeave, _handleVisibleHostFocusIn, _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, syncHiddenEditorA11yAttributes_fn, scheduleA11ySelectionAnnouncement_fn, announceSelectionNow_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, createDefaultHeaderFooter_fn, getPageElement_fn, isSelectionAwareVirtualizationEnabled_fn, updateSelectionVirtualizationPins_fn, finalizeDragSelectionWithDom_fn, scrollPageIntoView_fn, waitForPageMount_fn, getEffectivePageGap_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderCellSelectionOverlay_fn, renderHoverRegion_fn, clearHoverRegion_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, applyZoom_fn, getPageOffsetX_fn, convertPageLocalToOverlayCoords_fn, computeSelectionRectsFromDom_fn, computeDomCaretPageLocal_fn, normalizeClientPoint_fn, computeCaretLayoutRectGeometry_fn, computeCaretLayoutRect_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_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;
45726
45726
  var GOOD_LEAF_SIZE = 200;
45727
45727
  var RopeSequence = function RopeSequence2() {
45728
45728
  };
@@ -60491,7 +60491,7 @@ const isHeadless = (editor) => {
60491
60491
  const shouldSkipNodeView = (editor) => {
60492
60492
  return isHeadless(editor);
60493
60493
  };
60494
- const summaryVersion = "1.0.5";
60494
+ const summaryVersion = "1.1.1";
60495
60495
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
60496
60496
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
60497
60497
  function mapAttributes(attrs) {
@@ -61280,7 +61280,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
61280
61280
  { default: remarkStringify },
61281
61281
  { default: remarkGfm }
61282
61282
  ] = await Promise.all([
61283
- import("./index-BcCFaRLf-DfSZLowE.es.js"),
61283
+ import("./index-BTh-y1Z8-DbitXhC4.es.js"),
61284
61284
  import("./index-DRCvimau-Cw339678.es.js"),
61285
61285
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
61286
61286
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -61485,7 +61485,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
61485
61485
  * Process collaboration migrations
61486
61486
  */
61487
61487
  processCollaborationMigrations() {
61488
- console.debug("[checkVersionMigrations] Current editor version", "1.0.5");
61488
+ console.debug("[checkVersionMigrations] Current editor version", "1.1.1");
61489
61489
  if (!this.options.ydoc) return;
61490
61490
  const metaMap = this.options.ydoc.getMap("meta");
61491
61491
  let docVersion = metaMap.get("version");
@@ -67049,6 +67049,24 @@ const SDT_CONTAINER_STYLES = `
67049
67049
  display: block;
67050
67050
  }
67051
67051
 
67052
+ /* Viewing mode: remove structured content affordances */
67053
+ .presentation-editor--viewing .superdoc-structured-content-block,
67054
+ .presentation-editor--viewing .superdoc-structured-content-inline {
67055
+ background: none;
67056
+ border: none;
67057
+ padding: 0;
67058
+ }
67059
+
67060
+ .presentation-editor--viewing .superdoc-structured-content-inline:hover {
67061
+ background: none;
67062
+ border: none;
67063
+ }
67064
+
67065
+ .presentation-editor--viewing .superdoc-structured-content__label,
67066
+ .presentation-editor--viewing .superdoc-structured-content-inline__label {
67067
+ display: none !important;
67068
+ }
67069
+
67052
67070
  /* Print mode: hide visual styling for SDT containers */
67053
67071
  @media print {
67054
67072
  .superdoc-document-section,
@@ -75023,13 +75041,13 @@ function scheduleSectionBreak(block, state2, baseMargins, maxHeaderContentHeight
75023
75041
  if (maxHeaderContentHeight > 0) {
75024
75042
  return Math.max(baseTop, headerDistance + maxHeaderContentHeight);
75025
75043
  }
75026
- return Math.max(baseTop, headerDistance);
75044
+ return baseTop;
75027
75045
  };
75028
75046
  const calcRequiredBottomMargin = (footerDistance, baseBottom) => {
75029
75047
  if (maxFooterContentHeight > 0) {
75030
75048
  return Math.max(baseBottom, footerDistance + maxFooterContentHeight);
75031
75049
  }
75032
- return Math.max(baseBottom, footerDistance);
75050
+ return baseBottom;
75033
75051
  };
75034
75052
  if (block.attrs?.isFirstSection && !next.hasAnyPages) {
75035
75053
  if (block.pageSize) {
@@ -75530,6 +75548,11 @@ function layoutParagraphBlock(ctx2, anchors) {
75530
75548
  const prevTrailing = state2.trailingSpacing ?? 0;
75531
75549
  const neededSpacingBefore = Math.max(spacingBefore - prevTrailing, 0);
75532
75550
  if (state2.cursorY + neededSpacingBefore > state2.contentBottom) {
75551
+ if (state2.cursorY <= state2.topMargin) {
75552
+ state2.trailingSpacing = 0;
75553
+ appliedSpacingBefore = true;
75554
+ break;
75555
+ }
75533
75556
  state2 = advanceColumn(state2);
75534
75557
  if (state2.trailingSpacing == null) state2.trailingSpacing = 0;
75535
75558
  continue;
@@ -76845,12 +76868,12 @@ function layoutDocument(blocks, measures, options = {}) {
76845
76868
  next.pendingFooterDistance = footerDistance2;
76846
76869
  }
76847
76870
  if (block.margins?.top !== void 0 || block.margins?.header !== void 0) {
76848
- const requiredTop = maxHeaderContentHeight > 0 ? headerDistance2 + maxHeaderContentHeight : headerDistance2;
76871
+ const requiredTop = maxHeaderContentHeight > 0 ? headerDistance2 + maxHeaderContentHeight : 0;
76849
76872
  next.activeTopMargin = Math.max(sectionTop, requiredTop);
76850
76873
  next.pendingTopMargin = next.activeTopMargin;
76851
76874
  }
76852
76875
  if (block.margins?.bottom !== void 0 || block.margins?.footer !== void 0) {
76853
- const requiredBottom = maxFooterContentHeight > 0 ? footerDistance2 + maxFooterContentHeight : footerDistance2;
76876
+ const requiredBottom = maxFooterContentHeight > 0 ? footerDistance2 + maxFooterContentHeight : 0;
76854
76877
  next.activeBottomMargin = Math.max(sectionBottom, requiredBottom);
76855
76878
  next.pendingBottomMargin = next.activeBottomMargin;
76856
76879
  }
@@ -77600,7 +77623,7 @@ function layoutHeaderFooter(blocks, measures, constraints) {
77600
77623
  throw new Error("layoutHeaderFooter: width must be positive");
77601
77624
  }
77602
77625
  if (!Number.isFinite(height) || height <= 0) {
77603
- throw new Error("layoutHeaderFooter: height must be positive");
77626
+ return { pages: [], height: 0 };
77604
77627
  }
77605
77628
  const maxBehindDocOverflow = Math.max(192, height * 4);
77606
77629
  const minBehindDocY = -maxBehindDocOverflow;
@@ -79445,7 +79468,9 @@ async function incrementalLayout(previousBlocks, _previousLayout, nextBlocks, op
79445
79468
  `[Perf] 4.1 Measure all blocks: ${(measureEnd - measureStart).toFixed(2)}ms (${cacheMisses} measured, ${cacheHits} cached)`
79446
79469
  );
79447
79470
  let headerContentHeights;
79448
- if (headerFooter?.constraints && headerFooter.headerBlocks) {
79471
+ const hasHeaderBlocks = headerFooter?.headerBlocks && Object.keys(headerFooter.headerBlocks).length > 0;
79472
+ const hasHeaderBlocksByRId = headerFooter?.headerBlocksByRId && headerFooter.headerBlocksByRId.size > 0;
79473
+ if (headerFooter?.constraints && (hasHeaderBlocks || hasHeaderBlocksByRId)) {
79449
79474
  const hfPreStart = performance.now();
79450
79475
  const measureFn = headerFooter.measure ?? measureBlock2;
79451
79476
  invalidateHeaderFooterCache(
@@ -79457,25 +79482,45 @@ async function incrementalLayout(previousBlocks, _previousLayout, nextBlocks, op
79457
79482
  options.sectionMetadata
79458
79483
  );
79459
79484
  const HEADER_PRELAYOUT_PLACEHOLDER_PAGE_COUNT = 1;
79460
- const preHeaderLayouts = await layoutHeaderFooterWithCache(
79461
- headerFooter.headerBlocks,
79462
- headerFooter.constraints,
79463
- measureFn,
79464
- headerMeasureCache,
79465
- HEADER_PRELAYOUT_PLACEHOLDER_PAGE_COUNT,
79466
- void 0
79467
- // No page resolver needed for height calculation
79468
- );
79469
79485
  const isValidHeaderType = (key2) => {
79470
79486
  return ["default", "first", "even", "odd"].includes(key2);
79471
79487
  };
79472
79488
  headerContentHeights = {};
79473
- for (const [type2, value] of Object.entries(preHeaderLayouts)) {
79474
- if (!isValidHeaderType(type2)) continue;
79475
- if (value?.layout && typeof value.layout.height === "number") {
79476
- const height = value.layout.height;
79477
- if (Number.isFinite(height) && height >= 0) {
79478
- headerContentHeights[type2] = height;
79489
+ if (hasHeaderBlocks && headerFooter.headerBlocks) {
79490
+ const preHeaderLayouts = await layoutHeaderFooterWithCache(
79491
+ headerFooter.headerBlocks,
79492
+ headerFooter.constraints,
79493
+ measureFn,
79494
+ headerMeasureCache,
79495
+ HEADER_PRELAYOUT_PLACEHOLDER_PAGE_COUNT,
79496
+ void 0
79497
+ // No page resolver needed for height calculation
79498
+ );
79499
+ for (const [type2, value] of Object.entries(preHeaderLayouts)) {
79500
+ if (!isValidHeaderType(type2)) continue;
79501
+ if (value?.layout && typeof value.layout.height === "number") {
79502
+ const height = value.layout.height;
79503
+ if (Number.isFinite(height) && height >= 0) {
79504
+ headerContentHeights[type2] = height;
79505
+ }
79506
+ }
79507
+ }
79508
+ }
79509
+ if (hasHeaderBlocksByRId && headerFooter.headerBlocksByRId) {
79510
+ for (const [_rId, blocks] of headerFooter.headerBlocksByRId) {
79511
+ if (!blocks || blocks.length === 0) continue;
79512
+ const measureConstraints = {
79513
+ maxWidth: headerFooter.constraints.width,
79514
+ maxHeight: headerFooter.constraints.height
79515
+ };
79516
+ const measures2 = await Promise.all(blocks.map((block) => measureFn(block, measureConstraints)));
79517
+ const layout2 = layoutHeaderFooter(blocks, measures2, {
79518
+ width: headerFooter.constraints.width,
79519
+ height: headerFooter.constraints.height
79520
+ });
79521
+ if (layout2.height > 0) {
79522
+ const currentDefault = headerContentHeights.default ?? 0;
79523
+ headerContentHeights.default = Math.max(currentDefault, layout2.height);
79479
79524
  }
79480
79525
  }
79481
79526
  }
@@ -79483,10 +79528,12 @@ async function incrementalLayout(previousBlocks, _previousLayout, nextBlocks, op
79483
79528
  perfLog(`[Perf] 4.1.5 Pre-layout headers for height: ${(hfPreEnd - hfPreStart).toFixed(2)}ms`);
79484
79529
  }
79485
79530
  let footerContentHeights;
79486
- if (headerFooter?.constraints && headerFooter.footerBlocks) {
79531
+ const hasFooterBlocks = headerFooter?.footerBlocks && Object.keys(headerFooter.footerBlocks).length > 0;
79532
+ const hasFooterBlocksByRId = headerFooter?.footerBlocksByRId && headerFooter.footerBlocksByRId.size > 0;
79533
+ if (headerFooter?.constraints && (hasFooterBlocks || hasFooterBlocksByRId)) {
79487
79534
  const footerPreStart = performance.now();
79488
79535
  const measureFn = headerFooter.measure ?? measureBlock2;
79489
- if (!headerFooter.headerBlocks) {
79536
+ if (!hasHeaderBlocks && !hasHeaderBlocksByRId) {
79490
79537
  invalidateHeaderFooterCache(
79491
79538
  headerMeasureCache,
79492
79539
  headerFooterCacheState,
@@ -79497,26 +79544,46 @@ async function incrementalLayout(previousBlocks, _previousLayout, nextBlocks, op
79497
79544
  );
79498
79545
  }
79499
79546
  const FOOTER_PRELAYOUT_PLACEHOLDER_PAGE_COUNT = 1;
79547
+ const isValidFooterType = (key2) => {
79548
+ return ["default", "first", "even", "odd"].includes(key2);
79549
+ };
79550
+ footerContentHeights = {};
79500
79551
  try {
79501
- const preFooterLayouts = await layoutHeaderFooterWithCache(
79502
- headerFooter.footerBlocks,
79503
- headerFooter.constraints,
79504
- measureFn,
79505
- headerMeasureCache,
79506
- FOOTER_PRELAYOUT_PLACEHOLDER_PAGE_COUNT,
79507
- void 0
79508
- // No page resolver needed for height calculation
79509
- );
79510
- const isValidFooterType = (key2) => {
79511
- return ["default", "first", "even", "odd"].includes(key2);
79512
- };
79513
- footerContentHeights = {};
79514
- for (const [type2, value] of Object.entries(preFooterLayouts)) {
79515
- if (!isValidFooterType(type2)) continue;
79516
- if (value?.layout && typeof value.layout.height === "number") {
79517
- const height = value.layout.height;
79518
- if (Number.isFinite(height) && height >= 0) {
79519
- footerContentHeights[type2] = height;
79552
+ if (hasFooterBlocks && headerFooter.footerBlocks) {
79553
+ const preFooterLayouts = await layoutHeaderFooterWithCache(
79554
+ headerFooter.footerBlocks,
79555
+ headerFooter.constraints,
79556
+ measureFn,
79557
+ headerMeasureCache,
79558
+ FOOTER_PRELAYOUT_PLACEHOLDER_PAGE_COUNT,
79559
+ void 0
79560
+ // No page resolver needed for height calculation
79561
+ );
79562
+ for (const [type2, value] of Object.entries(preFooterLayouts)) {
79563
+ if (!isValidFooterType(type2)) continue;
79564
+ if (value?.layout && typeof value.layout.height === "number") {
79565
+ const height = value.layout.height;
79566
+ if (Number.isFinite(height) && height >= 0) {
79567
+ footerContentHeights[type2] = height;
79568
+ }
79569
+ }
79570
+ }
79571
+ }
79572
+ if (hasFooterBlocksByRId && headerFooter.footerBlocksByRId) {
79573
+ for (const [_rId, blocks] of headerFooter.footerBlocksByRId) {
79574
+ if (!blocks || blocks.length === 0) continue;
79575
+ const measureConstraints = {
79576
+ maxWidth: headerFooter.constraints.width,
79577
+ maxHeight: headerFooter.constraints.height
79578
+ };
79579
+ const measures2 = await Promise.all(blocks.map((block) => measureFn(block, measureConstraints)));
79580
+ const layout2 = layoutHeaderFooter(blocks, measures2, {
79581
+ width: headerFooter.constraints.width,
79582
+ height: headerFooter.constraints.height
79583
+ });
79584
+ if (layout2.height > 0) {
79585
+ const currentDefault = footerContentHeights.default ?? 0;
79586
+ footerContentHeights.default = Math.max(currentDefault, layout2.height);
79520
79587
  }
79521
79588
  }
79522
79589
  }
@@ -93861,6 +93928,10 @@ const _PresentationEditor = class _PresentationEditor2 extends EventEmitter$1 {
93861
93928
  __privateMethod$1(this, _PresentationEditor_instances, clearHoverRegion_fn).call(this);
93862
93929
  return;
93863
93930
  }
93931
+ if (__privateGet$1(this, _documentMode) === "viewing") {
93932
+ __privateMethod$1(this, _PresentationEditor_instances, clearHoverRegion_fn).call(this);
93933
+ return;
93934
+ }
93864
93935
  const region = __privateMethod$1(this, _PresentationEditor_instances, hitTestHeaderFooterRegion_fn).call(this, normalized.x, normalized.y);
93865
93936
  if (!region) {
93866
93937
  __privateMethod$1(this, _PresentationEditor_instances, clearHoverRegion_fn).call(this);
@@ -94089,6 +94160,7 @@ const _PresentationEditor = class _PresentationEditor2 extends EventEmitter$1 {
94089
94160
  __privateSet(this, _visibleHost, options.element);
94090
94161
  __privateGet$1(this, _visibleHost).innerHTML = "";
94091
94162
  __privateGet$1(this, _visibleHost).classList.add("presentation-editor");
94163
+ __privateMethod$1(this, _PresentationEditor_instances, syncDocumentModeClass_fn).call(this);
94092
94164
  if (!__privateGet$1(this, _visibleHost).hasAttribute("tabindex")) {
94093
94165
  __privateGet$1(this, _visibleHost).tabIndex = 0;
94094
94166
  }
@@ -94584,6 +94656,7 @@ const _PresentationEditor = class _PresentationEditor2 extends EventEmitter$1 {
94584
94656
  }
94585
94657
  __privateSet(this, _documentMode, mode);
94586
94658
  __privateGet$1(this, _editor3).setDocumentMode(mode);
94659
+ __privateMethod$1(this, _PresentationEditor_instances, syncDocumentModeClass_fn).call(this);
94587
94660
  __privateMethod$1(this, _PresentationEditor_instances, syncHiddenEditorA11yAttributes_fn).call(this);
94588
94661
  const trackedChangesChanged = __privateMethod$1(this, _PresentationEditor_instances, syncTrackedChangesPreferences_fn).call(this);
94589
94662
  if (trackedChangesChanged) {
@@ -95494,6 +95567,10 @@ wrapHiddenEditorFocus_fn = function() {
95494
95567
  }
95495
95568
  };
95496
95569
  };
95570
+ syncDocumentModeClass_fn = function() {
95571
+ if (!__privateGet$1(this, _visibleHost)) return;
95572
+ __privateGet$1(this, _visibleHost).classList.toggle("presentation-editor--viewing", __privateGet$1(this, _documentMode) === "viewing");
95573
+ };
95497
95574
  collectCommentPositions_fn = function() {
95498
95575
  return collectCommentPositions(__privateGet$1(this, _editor3)?.state?.doc ?? null, {
95499
95576
  commentMarkName: CommentMarkName,
@@ -96451,7 +96528,14 @@ computeHeaderFooterConstraints_fn = function() {
96451
96528
  const footerMargin = margins.footer ?? 0;
96452
96529
  const headerContentSpace = Math.max(marginTop - headerMargin, 0);
96453
96530
  const footerContentSpace = Math.max(marginBottom - footerMargin, 0);
96454
- const height = Math.max(headerContentSpace, footerContentSpace, 1);
96531
+ const height = Math.max(
96532
+ headerContentSpace,
96533
+ footerContentSpace,
96534
+ headerMargin,
96535
+ footerMargin,
96536
+ marginTop,
96537
+ marginBottom
96538
+ );
96455
96539
  return {
96456
96540
  width: measurementWidth,
96457
96541
  height,
@@ -96601,7 +96685,8 @@ computeDecorationBox_fn = function(kind, pageMargins, pageHeight) {
96601
96685
  const headerMargin = margins.header ?? 0;
96602
96686
  const topMargin = margins.top ?? DEFAULT_MARGINS.top ?? 0;
96603
96687
  const height = Math.max(topMargin - headerMargin, 1);
96604
- return { x: left2, width, height, offset: headerMargin };
96688
+ const offset2 = headerMargin;
96689
+ return { x: left2, width, height, offset: offset2 };
96605
96690
  } else {
96606
96691
  const footerMargin = margins.footer ?? 0;
96607
96692
  const bottomMargin = margins.bottom ?? DEFAULT_MARGINS.bottom ?? 0;
@@ -97194,6 +97279,10 @@ renderCellSelectionOverlay_fn = function(selection, layout) {
97194
97279
  });
97195
97280
  };
97196
97281
  renderHoverRegion_fn = function(region) {
97282
+ if (__privateGet$1(this, _documentMode) === "viewing") {
97283
+ __privateMethod$1(this, _PresentationEditor_instances, clearHoverRegion_fn).call(this);
97284
+ return;
97285
+ }
97197
97286
  if (!__privateGet$1(this, _hoverOverlay) || !__privateGet$1(this, _hoverTooltip)) return;
97198
97287
  const coords = __privateMethod$1(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, region.pageIndex, region.localX, region.localY);
97199
97288
  if (!coords) {