superdoc 1.0.0-beta.54 → 1.0.0-beta.56

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 (27) hide show
  1. package/dist/chunks/{PdfViewer-qBKjClah.cjs → PdfViewer-CnvD--7P.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-D_U-y4Wi.es.js → PdfViewer-DsYaXp0H.es.js} +1 -1
  3. package/dist/chunks/{index-BKvAeQdF.cjs → index-BpBdSm3V.cjs} +3 -3
  4. package/dist/chunks/{index-to6_YLa7.es.js → index-DF1aQt8V.es.js} +3 -3
  5. package/dist/chunks/{index-t8thQIOL-vW80ABaR.es.js → index-DYnUncjo-Br0s3gQs.es.js} +1 -1
  6. package/dist/chunks/{index-t8thQIOL-CV8VTGI4.cjs → index-DYnUncjo-Uv8YzgRb.cjs} +1 -1
  7. package/dist/chunks/{super-editor.es-xpC1DWhM.es.js → super-editor.es-BxMwj135.es.js} +524 -190
  8. package/dist/chunks/{super-editor.es-BMiadG4G.cjs → super-editor.es-DkFw0sfq.cjs} +524 -190
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-OoT4LYwQ.js → converter-DwC5XPQX.js} +274 -171
  11. package/dist/super-editor/chunks/{docx-zipper-Cf_hIcjC.js → docx-zipper-BkCzC50U.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-CqbtudGQ.js → editor-CoKNeouN.js} +255 -24
  13. package/dist/super-editor/chunks/{index-t8thQIOL.js → index-DYnUncjo.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-BsfRAJ0o.js → toolbar-DUWk-Bwi.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor.es.js +6 -6
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.cjs +1 -1
  22. package/dist/super-editor.es.js +1 -1
  23. package/dist/superdoc.cjs +2 -2
  24. package/dist/superdoc.es.js +2 -2
  25. package/dist/superdoc.umd.js +526 -192
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-OoT4LYwQ.js";
1
+ import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-DwC5XPQX.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, dispatchWithFallback_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, getPluginKeyName_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _map, _editor2, _descriptors, _collections, _editorEntries, _maxCachedEditors, _editorAccessOrder, _pendingCreations, _cacheHits, _cacheMisses, _evictions, _HeaderFooterEditorManager_instances, hasConverter_fn, extractCollections_fn, collectDescriptors_fn, teardownMissingEditors_fn, teardownEditors_fn, createEditor_fn, createEditorContainer_fn, registerConverterEditor_fn, unregisterConverterEditor_fn, updateAccessOrder_fn, enforceCacheSizeLimit_fn, _manager, _mediaFiles, _blockCache, _HeaderFooterLayoutAdapter_instances, getBlocks_fn, getConverterContext_fn, _selectionOverlay, _activeEditorHost, _activeDecorationContainer, _activeRegion, _borderLine, _dimmingOverlay, _EditorOverlayManager_instances, findDecorationContainer_fn, ensureEditorHost_fn, positionEditorHost_fn, hideDimmingOverlay_fn, showHeaderFooterBorder_fn, hideHeaderFooterBorder_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay2, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _dragHandlerCleanup, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionUpdateScheduled, _remoteCursorUpdateScheduled, _rafHandle, _editorListeners, _sectionMetadata, _documentMode, _inputBridge, _trackedChangesMode, _trackedChangesEnabled, _trackedChangesOverrides, _headerFooterManager, _headerFooterAdapter, _headerFooterIdentifier, _multiSectionIdentifier, _headerLayoutResults, _footerLayoutResults, _headerLayoutsByRId, _footerLayoutsByRId, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _overlayManager, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _lastSelectedImageBlockId, _dragAnchor, _isDragging, _dragExtensionMode, _remoteCursorState, _remoteCursorElements, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _scrollTimeout, _lastRemoteCursorRenderTime, _remoteCursorThrottleTimeout, _PresentationEditor_instances, collectCommentPositions_fn, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, updateLocalAwarenessCursor_fn, normalizeAwarenessStates_fn, getFallbackColor_fn, getValidatedColor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, renderRemoteCaret_fn, renderRemoteCursorLabel_fn, renderRemoteSelection_fn, setupPointerHandlers_fn, setupDragHandlers_fn, focusEditorAfterImageSelection_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, calculateExtendedSelection_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _handlePointerUp, _handleDragOver, _handleDrop, _handleDoubleClick, _handleKeyDown, focusHeaderFooterShortcut_fn, scheduleRerender_fn, flushRerenderQueue_fn, rerender_fn, ensurePainter_fn, scheduleSelectionUpdate_fn, updateSelection_fn, resolveLayoutOptions_fn, buildHeaderFooterInput_fn, computeHeaderFooterConstraints_fn, layoutPerRIdHeaderFooters_fn, updateDecorationProviders_fn, createDecorationProvider_fn, findHeaderFooterPageForPageNumber_fn, computeDecorationBox_fn, rebuildHeaderFooterRegions_fn, hitTestHeaderFooterRegion_fn, pointInRegion_fn, activateHeaderFooterRegion_fn, enterHeaderFooterMode_fn, exitHeaderFooterMode_fn, getActiveDomTarget_fn, emitHeaderFooterModeChanged_fn, emitHeaderFooterEditingContext_fn, updateAwarenessSession_fn, updateModeBanner_fn, announce_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, createDefaultHeaderFooter_fn, getPageElement_fn, scrollPageIntoView_fn, computeAnchorMap_fn, waitForPageMount_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, parseColumns_fn, inchesToPx_fn, applyZoom_fn, createLayoutMetrics_fn, convertPageLocalToOverlayCoords_fn, normalizeClientPoint_fn, computeCaretLayoutRect_fn, computeCaretLayoutRectFromDOM_fn, computeTableCaretLayoutRect_fn, findLineContainingPos_fn, lineHeightBeforeIndex_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_fn, createHiddenHost_fn, _windowRoot, _layoutSurfaces, _getTargetDom, _isEditable, _onTargetChanged, _listeners, _currentTarget, _destroyed, _useWindowFallback, _PresentationInputBridge_instances, addListener_fn, dispatchToTarget_fn, forwardKeyboardEvent_fn, forwardTextEvent_fn, forwardCompositionEvent_fn, forwardContextMenu_fn, isEventOnActiveTarget_fn, shouldSkipSurface_fn, isInLayoutSurface_fn, getListenerTargets_fn, isPlainCharacterKey_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, checkShouldUpdate_fn, updateHTMLAttributes_fn, updateDOMStyles_fn, resolveNeighborParagraphProperties_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _VectorShapeView_instances, ensureParentPositioned_fn, _ShapeGroupView_instances, ensureParentPositioned_fn2;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as encodeCSSFromPPr, at as twipsToPixels$2, au as resolveRunProperties, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-OoT4LYwQ.js";
16
- import { D as DocxZipper } from "./docx-zipper-Cf_hIcjC.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-DwC5XPQX.js";
16
+ import { D as DocxZipper } from "./docx-zipper-BkCzC50U.js";
17
17
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
@@ -13918,7 +13918,7 @@ const isHeadless = (editor) => {
13918
13918
  const shouldSkipNodeView = (editor) => {
13919
13919
  return isHeadless(editor);
13920
13920
  };
13921
- const summaryVersion = "1.0.0-beta.54";
13921
+ const summaryVersion = "1.0.0-beta.56";
13922
13922
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
13923
13923
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
13924
13924
  function mapAttributes(attrs) {
@@ -14710,7 +14710,7 @@ const _Editor = class _Editor extends EventEmitter {
14710
14710
  { default: remarkStringify },
14711
14711
  { default: remarkGfm }
14712
14712
  ] = await Promise.all([
14713
- import("./index-t8thQIOL.js"),
14713
+ import("./index-DYnUncjo.js"),
14714
14714
  import("./index-DRCvimau.js"),
14715
14715
  import("./index-C_x_N6Uh.js"),
14716
14716
  import("./index-D_sWOSiG.js"),
@@ -14915,7 +14915,7 @@ const _Editor = class _Editor extends EventEmitter {
14915
14915
  * Process collaboration migrations
14916
14916
  */
14917
14917
  processCollaborationMigrations() {
14918
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.54");
14918
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.56");
14919
14919
  if (!this.options.ydoc) return;
14920
14920
  const metaMap = this.options.ydoc.getMap("meta");
14921
14921
  let docVersion = metaMap.get("version");
@@ -15950,7 +15950,15 @@ const VALID_TRACKED_MODES = ["review", "original", "final", "off"];
15950
15950
  const DEFAULT_HYPERLINK_CONFIG$1 = {
15951
15951
  enableRichHyperlinks: false
15952
15952
  };
15953
- const ATOMIC_INLINE_TYPES = /* @__PURE__ */ new Set(["image", "hardBreak", "lineBreak", "page-number", "total-page-number"]);
15953
+ const ATOMIC_INLINE_TYPES = /* @__PURE__ */ new Set([
15954
+ "image",
15955
+ "hardBreak",
15956
+ "lineBreak",
15957
+ "page-number",
15958
+ "total-page-number",
15959
+ "passthroughInline",
15960
+ "bookmarkEnd"
15961
+ ]);
15954
15962
  const TOKEN_INLINE_TYPES = /* @__PURE__ */ new Map([
15955
15963
  ["page-number", "pageNumber"],
15956
15964
  ["total-page-number", "totalPageCount"]
@@ -34574,6 +34582,7 @@ const rangesOverlap = (startA, endA, startB, endB) => {
34574
34582
  return effectiveEndA > startB && startA < endB;
34575
34583
  };
34576
34584
  function hitTestPage(layout, point) {
34585
+ const pageGap = layout.pageGap ?? 0;
34577
34586
  let cursorY = 0;
34578
34587
  for (let pageIndex = 0; pageIndex < layout.pages.length; pageIndex += 1) {
34579
34588
  const page = layout.pages[pageIndex];
@@ -34582,7 +34591,7 @@ function hitTestPage(layout, point) {
34582
34591
  if (point.y >= top2 && point.y < bottom2) {
34583
34592
  return { pageIndex, page };
34584
34593
  }
34585
- cursorY = bottom2;
34594
+ cursorY = bottom2 + pageGap;
34586
34595
  }
34587
34596
  return null;
34588
34597
  }
@@ -34791,9 +34800,10 @@ function clickToPosition(layout, blocks, measures, containerPoint, domContainer,
34791
34800
  if (!pageHit) {
34792
34801
  return null;
34793
34802
  }
34803
+ const pageGap = layout.pageGap ?? 0;
34794
34804
  const pageRelativePoint = {
34795
34805
  x: containerPoint.x,
34796
- y: containerPoint.y - pageHit.pageIndex * layout.pageSize.h
34806
+ y: containerPoint.y - pageHit.pageIndex * (layout.pageSize.h + pageGap)
34797
34807
  };
34798
34808
  logClickStage("log", "page-hit", {
34799
34809
  pageIndex: pageHit.pageIndex
@@ -35014,7 +35024,7 @@ function selectionToRects(layout, blocks, measures, from2, to) {
35014
35024
  const rectY = fragment.y + lineOffset;
35015
35025
  rects.push({
35016
35026
  x: rectX,
35017
- y: rectY + pageIndex * layout.pageSize.h,
35027
+ y: rectY + pageIndex * (layout.pageSize.h + (layout.pageGap ?? 0)),
35018
35028
  width: rectWidth,
35019
35029
  height: line.lineHeight,
35020
35030
  pageIndex
@@ -35131,7 +35141,7 @@ function selectionToRects(layout, blocks, measures, from2, to) {
35131
35141
  const rectY = fragment.y + rowOffset + blockTopCursor + lineOffset;
35132
35142
  rects.push({
35133
35143
  x: rectX,
35134
- y: rectY + pageIndex * layout.pageSize.h,
35144
+ y: rectY + pageIndex * (layout.pageSize.h + (layout.pageGap ?? 0)),
35135
35145
  width: rectWidth,
35136
35146
  height: line.lineHeight,
35137
35147
  pageIndex
@@ -35160,7 +35170,7 @@ function selectionToRects(layout, blocks, measures, from2, to) {
35160
35170
  if (!rangesOverlap(pmRange.pmStart, pmRange.pmEnd, from2, to)) return;
35161
35171
  rects.push({
35162
35172
  x: fragment.x,
35163
- y: fragment.y + pageIndex * layout.pageSize.h,
35173
+ y: fragment.y + pageIndex * (layout.pageSize.h + (layout.pageGap ?? 0)),
35164
35174
  width: fragment.width,
35165
35175
  height: fragment.height,
35166
35176
  pageIndex
@@ -38183,6 +38193,8 @@ function isValidFieldAnnotationAttributes(attrs) {
38183
38193
  const FIELD_ANNOTATION_DATA_TYPE = "fieldAnnotation";
38184
38194
  const DEFAULT_PAGE_SIZE = { w: 612, h: 792 };
38185
38195
  const DEFAULT_MARGINS = { top: 72, right: 72, bottom: 72, left: 72 };
38196
+ const DEFAULT_VIRTUALIZED_PAGE_GAP = 72;
38197
+ const DEFAULT_PAGE_GAP = 24;
38186
38198
  const WORD_CHARACTER_REGEX = /[\p{L}\p{N}''_~-]/u;
38187
38199
  const MULTI_CLICK_TIME_THRESHOLD_MS = 400;
38188
38200
  const MULTI_CLICK_DISTANCE_THRESHOLD_PX = 5;
@@ -39313,8 +39325,9 @@ const _PresentationEditor = class _PresentationEditor extends EventEmitter {
39313
39325
  const rawRects = layoutRectSource();
39314
39326
  if (!rawRects.length) return [];
39315
39327
  const pageHeight = __privateGet(this, _session).mode === "body" ? __privateMethod(this, _PresentationEditor_instances, getBodyPageHeight_fn).call(this) : __privateMethod(this, _PresentationEditor_instances, getHeaderFooterPageHeight_fn).call(this);
39328
+ const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
39316
39329
  return rawRects.map((rect) => {
39317
- const pageLocalY = rect.y - rect.pageIndex * pageHeight;
39330
+ const pageLocalY = rect.y - rect.pageIndex * (pageHeight + pageGap);
39318
39331
  const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect.pageIndex, rect.x, pageLocalY);
39319
39332
  if (!coords) return null;
39320
39333
  const absLeft = coords.x * zoom + overlayRect.left;
@@ -39566,7 +39579,8 @@ const _PresentationEditor = class _PresentationEditor extends EventEmitter {
39566
39579
  return null;
39567
39580
  }
39568
39581
  const pageHeight = __privateMethod(this, _PresentationEditor_instances, getBodyPageHeight_fn).call(this);
39569
- const pageLocalY = rect2.y - rect2.pageIndex * pageHeight;
39582
+ const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
39583
+ const pageLocalY = rect2.y - rect2.pageIndex * (pageHeight + pageGap);
39570
39584
  const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect2.pageIndex, rect2.x, pageLocalY);
39571
39585
  if (!coords) {
39572
39586
  return null;
@@ -40483,10 +40497,11 @@ renderRemoteSelection_fn = function(cursor) {
40483
40497
  const color = __privateMethod(this, _PresentationEditor_instances, getValidatedColor_fn).call(this, cursor);
40484
40498
  const opacity = __privateGet(this, _layoutOptions).presence?.highlightOpacity ?? 0.35;
40485
40499
  const pageHeight = layout.pageSize?.h ?? __privateGet(this, _layoutOptions).pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
40500
+ const pageGap = layout.pageGap ?? 0;
40486
40501
  const doc2 = __privateGet(this, _visibleHost).ownerDocument ?? document;
40487
40502
  const limitedRects = rects.slice(0, MAX_SELECTION_RECTS_PER_USER);
40488
40503
  limitedRects.forEach((rect) => {
40489
- const pageLocalY = rect.y - rect.pageIndex * pageHeight;
40504
+ const pageLocalY = rect.y - rect.pageIndex * (pageHeight + pageGap);
40490
40505
  const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect.pageIndex, rect.x, pageLocalY);
40491
40506
  if (!coords) return;
40492
40507
  const selectionEl = doc2.createElement("div");
@@ -41042,6 +41057,12 @@ rerender_fn = async function() {
41042
41057
  return;
41043
41058
  }
41044
41059
  ({ layout, measures } = result);
41060
+ if (__privateGet(this, _layoutOptions).virtualization?.enabled) {
41061
+ const gap = __privateGet(this, _layoutOptions).virtualization.gap ?? DEFAULT_VIRTUALIZED_PAGE_GAP;
41062
+ layout.pageGap = Math.max(0, gap);
41063
+ } else {
41064
+ layout.pageGap = DEFAULT_PAGE_GAP;
41065
+ }
41045
41066
  headerLayouts = result.headers;
41046
41067
  footerLayouts = result.footers;
41047
41068
  } catch (error) {
@@ -41614,9 +41635,10 @@ hitTestHeaderFooterRegion_fn = function(x, y) {
41614
41635
  const layout = __privateGet(this, _layoutState).layout;
41615
41636
  if (!layout) return null;
41616
41637
  const pageHeight = layout.pageSize?.h ?? __privateGet(this, _layoutOptions).pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
41638
+ const pageGap = layout.pageGap ?? 0;
41617
41639
  if (pageHeight <= 0) return null;
41618
- const pageIndex = Math.max(0, Math.floor(y / pageHeight));
41619
- const pageLocalY = y - pageIndex * pageHeight;
41640
+ const pageIndex = Math.max(0, Math.floor(y / (pageHeight + pageGap)));
41641
+ const pageLocalY = y - pageIndex * (pageHeight + pageGap);
41620
41642
  const headerRegion = __privateGet(this, _headerRegions).get(pageIndex);
41621
41643
  if (headerRegion && __privateMethod(this, _PresentationEditor_instances, pointInRegion_fn).call(this, headerRegion, x, pageLocalY)) {
41622
41644
  return headerRegion;
@@ -42070,8 +42092,9 @@ renderSelectionRects_fn = function(rects) {
42070
42092
  return;
42071
42093
  }
42072
42094
  const pageHeight = __privateMethod(this, _PresentationEditor_instances, getBodyPageHeight_fn).call(this);
42095
+ const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
42073
42096
  rects.forEach((rect, _index) => {
42074
- const pageLocalY = rect.y - rect.pageIndex * pageHeight;
42097
+ const pageLocalY = rect.y - rect.pageIndex * (pageHeight + pageGap);
42075
42098
  const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect.pageIndex, rect.x, pageLocalY);
42076
42099
  if (!coords) {
42077
42100
  return;
@@ -42356,9 +42379,10 @@ convertPageLocalToOverlayCoords_fn = function(pageIndex, pageLocalX, pageLocalY)
42356
42379
  return null;
42357
42380
  }
42358
42381
  const pageHeight = __privateGet(this, _layoutOptions).pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
42382
+ const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
42359
42383
  return {
42360
42384
  x: pageLocalX,
42361
- y: pageIndex * pageHeight + pageLocalY
42385
+ y: pageIndex * (pageHeight + pageGap) + pageLocalY
42362
42386
  };
42363
42387
  };
42364
42388
  normalizeClientPoint_fn = function(clientX, clientY) {
@@ -45729,7 +45753,7 @@ const cleanupEmptyRunsPlugin = new Plugin({
45729
45753
  return tr.docChanged ? tr : null;
45730
45754
  }
45731
45755
  });
45732
- const mergeRanges$1 = (ranges, docSize) => {
45756
+ const mergeRanges$2 = (ranges, docSize) => {
45733
45757
  if (!ranges.length) return [];
45734
45758
  const sorted = ranges.map(({ from: from2, to }) => ({
45735
45759
  from: Math.max(0, from2),
@@ -45758,7 +45782,7 @@ const collectChangedRanges = (trs, docSize) => {
45758
45782
  });
45759
45783
  });
45760
45784
  });
45761
- return mergeRanges$1(ranges, docSize);
45785
+ return mergeRanges$2(ranges, docSize);
45762
45786
  };
45763
45787
  const mapRangesThroughTransactions = (ranges, transactions, docSize) => {
45764
45788
  let mapped = ranges;
@@ -45770,7 +45794,7 @@ const mapRangesThroughTransactions = (ranges, transactions, docSize) => {
45770
45794
  return { from: mappedFrom, to: mappedTo };
45771
45795
  }).filter(Boolean);
45772
45796
  });
45773
- return mergeRanges$1(mapped, docSize);
45797
+ return mergeRanges$2(mapped, docSize);
45774
45798
  };
45775
45799
  const buildWrapTransaction = (state, ranges, runType) => {
45776
45800
  if (!ranges.length) return null;
@@ -45829,7 +45853,7 @@ const wrapTextInRunsPlugin = () => {
45829
45853
  if (!runType) return null;
45830
45854
  pendingRanges = mapRangesThroughTransactions(pendingRanges, transactions, docSize);
45831
45855
  const changedRanges = collectChangedRanges(transactions, docSize);
45832
- pendingRanges = mergeRanges$1([...pendingRanges, ...changedRanges], docSize);
45856
+ pendingRanges = mergeRanges$2([...pendingRanges, ...changedRanges], docSize);
45833
45857
  if (view?.composing) {
45834
45858
  return null;
45835
45859
  }
@@ -45839,6 +45863,204 @@ const wrapTextInRunsPlugin = () => {
45839
45863
  }
45840
45864
  });
45841
45865
  };
45866
+ const splitRunsAfterMarkPlugin = new Plugin({
45867
+ appendTransaction(transactions, _old, newState) {
45868
+ const markRanges = [];
45869
+ let mappingToFinal = new Mapping();
45870
+ for (let ti = transactions.length - 1; ti >= 0; ti--) {
45871
+ const tr2 = transactions[ti];
45872
+ tr2.steps.forEach((step) => {
45873
+ if (!(step instanceof AddMarkStep || step instanceof RemoveMarkStep)) return;
45874
+ const fromAfterTr = tr2.mapping.map(step.from, 1);
45875
+ const toAfterTr = tr2.mapping.map(step.to, -1);
45876
+ markRanges.push({
45877
+ from: mappingToFinal.map(fromAfterTr, 1),
45878
+ to: mappingToFinal.map(toAfterTr, -1)
45879
+ });
45880
+ });
45881
+ const composed = new Mapping();
45882
+ composed.appendMapping(tr2.mapping);
45883
+ composed.appendMapping(mappingToFinal);
45884
+ mappingToFinal = composed;
45885
+ }
45886
+ if (!markRanges.length) return null;
45887
+ const runType = newState.schema.nodes["run"];
45888
+ if (!runType) return null;
45889
+ const runPositions = /* @__PURE__ */ new Set();
45890
+ markRanges.forEach(({ from: from2, to }) => {
45891
+ newState.doc.nodesBetween(from2, to, (node, pos) => {
45892
+ if (node.type === runType) runPositions.add(pos);
45893
+ });
45894
+ });
45895
+ if (!runPositions.size) return null;
45896
+ const tr = newState.tr;
45897
+ const originalSelection = newState.selection;
45898
+ const isTextSelection2 = originalSelection instanceof TextSelection;
45899
+ let preservedAnchor = isTextSelection2 ? originalSelection.anchor : null;
45900
+ let preservedHead = isTextSelection2 ? originalSelection.head : null;
45901
+ const anchorAssoc = preservedAnchor != null && preservedHead != null && preservedAnchor <= preservedHead ? -1 : 1;
45902
+ const headAssoc = preservedAnchor != null && preservedHead != null && preservedHead >= preservedAnchor ? 1 : -1;
45903
+ const mapOffsetThroughReplacement = (startPos, replacement, offset2) => {
45904
+ let currentPos = startPos;
45905
+ let remaining = offset2;
45906
+ let mapped = null;
45907
+ replacement.forEach((node) => {
45908
+ if (mapped != null) return;
45909
+ const contentSize = node.content.size;
45910
+ if (remaining <= contentSize) {
45911
+ mapped = currentPos + 1 + remaining;
45912
+ return;
45913
+ }
45914
+ remaining -= contentSize;
45915
+ currentPos += node.nodeSize;
45916
+ });
45917
+ return mapped ?? currentPos;
45918
+ };
45919
+ Array.from(runPositions).sort((a, b) => b - a).forEach((pos) => {
45920
+ const mappedPos = tr.mapping.map(pos);
45921
+ const runNode = tr.doc.nodeAt(mappedPos);
45922
+ if (!runNode) return;
45923
+ const groups = [];
45924
+ let current = [];
45925
+ let currentMarks = null;
45926
+ runNode.forEach((child) => {
45927
+ if (child.isText) {
45928
+ if (currentMarks && Mark$1.sameSet(currentMarks, child.marks)) {
45929
+ current.push(child);
45930
+ } else {
45931
+ if (current.length) groups.push(Fragment.from(current));
45932
+ current = [child];
45933
+ currentMarks = child.marks;
45934
+ }
45935
+ } else {
45936
+ if (current.length) groups.push(Fragment.from(current));
45937
+ groups.push(Fragment.from(child));
45938
+ current = [];
45939
+ currentMarks = null;
45940
+ }
45941
+ });
45942
+ if (current.length) groups.push(Fragment.from(current));
45943
+ if (groups.length <= 1) return;
45944
+ const replacement = Fragment.from(
45945
+ groups.map((content) => runType.create(runNode.attrs, content, runNode.marks))
45946
+ );
45947
+ tr.replaceWith(mappedPos, mappedPos + runNode.nodeSize, replacement);
45948
+ const stepMap = tr.mapping.maps[tr.mapping.maps.length - 1];
45949
+ const mapSelectionPos = (pos2, assoc) => {
45950
+ if (pos2 == null) return null;
45951
+ if (pos2 < mappedPos || pos2 > mappedPos + runNode.nodeSize) {
45952
+ return stepMap.map(pos2, assoc);
45953
+ }
45954
+ const offsetInRun = pos2 - (mappedPos + 1);
45955
+ return mapOffsetThroughReplacement(mappedPos, replacement, offsetInRun);
45956
+ };
45957
+ preservedAnchor = mapSelectionPos(preservedAnchor, anchorAssoc);
45958
+ preservedHead = mapSelectionPos(preservedHead, headAssoc);
45959
+ });
45960
+ if (tr.docChanged && originalSelection) {
45961
+ if (originalSelection instanceof TextSelection && preservedAnchor != null && preservedHead != null) {
45962
+ tr.setSelection(TextSelection.create(tr.doc, preservedAnchor, preservedHead));
45963
+ } else {
45964
+ tr.setSelection(originalSelection.map(tr.doc, tr.mapping));
45965
+ }
45966
+ }
45967
+ return tr.docChanged ? tr : null;
45968
+ }
45969
+ });
45970
+ const calculateInlineRunPropertiesPlugin = (editor) => new Plugin({
45971
+ appendTransaction(transactions, _oldState, newState) {
45972
+ const tr = newState.tr;
45973
+ if (!transactions.some((t) => t.docChanged)) return null;
45974
+ if (!transactions.some(
45975
+ (tr2) => tr2.steps.some((step) => step instanceof AddMarkStep || step instanceof RemoveMarkStep)
45976
+ )) {
45977
+ return null;
45978
+ }
45979
+ const runType = newState.schema.nodes.run;
45980
+ if (!runType) return null;
45981
+ const changedRanges = [];
45982
+ transactions.forEach((tr2) => {
45983
+ tr2.steps.forEach((step) => {
45984
+ const from2 = tr2.mapping.map(step.from, 1);
45985
+ const to = tr2.mapping.map(step.to, -1);
45986
+ changedRanges.push({ from: from2, to });
45987
+ });
45988
+ });
45989
+ const runPositions = /* @__PURE__ */ new Set();
45990
+ mergeRanges$1(changedRanges, newState.doc.content.size).forEach(({ from: from2, to }) => {
45991
+ newState.doc.nodesBetween(from2, to, (node, pos) => {
45992
+ if (node.type === runType) runPositions.add(pos);
45993
+ });
45994
+ });
45995
+ if (!runPositions.size) return null;
45996
+ runPositions.forEach((pos) => {
45997
+ const runNode = tr.doc.nodeAt(pos);
45998
+ if (!runNode) return;
45999
+ const $pos = tr.doc.resolve(pos);
46000
+ let paragraphNode = null;
46001
+ for (let depth = $pos.depth; depth >= 0; depth--) {
46002
+ const node = $pos.node(depth);
46003
+ if (node.type.name === "paragraph") {
46004
+ paragraphNode = node;
46005
+ break;
46006
+ }
46007
+ }
46008
+ if (!paragraphNode) return;
46009
+ const marks = getMarksFromRun(runNode);
46010
+ const runPropertiesFromMarks = decodeRPrFromMarks(marks);
46011
+ const paragraphProperties = getResolvedParagraphProperties(paragraphNode) || calculateResolvedParagraphProperties(editor, paragraphNode, $pos);
46012
+ const runPropertiesFromStyles = resolveRunProperties(
46013
+ { docx: editor.converter?.convertedXml ?? {}, numbering: editor.converter?.numbering ?? {} },
46014
+ {},
46015
+ paragraphProperties,
46016
+ false,
46017
+ Boolean(paragraphNode.attrs.paragraphProperties?.numberingProperties)
46018
+ );
46019
+ const inlineRunProperties = getInlineRunProperties(runPropertiesFromMarks, runPropertiesFromStyles);
46020
+ const runProperties = Object.keys(inlineRunProperties).length ? inlineRunProperties : null;
46021
+ if (JSON.stringify(runProperties) === JSON.stringify(runNode.attrs.runProperties)) return;
46022
+ tr.setNodeMarkup(pos, runNode.type, { ...runNode.attrs, runProperties }, runNode.marks);
46023
+ });
46024
+ return tr.docChanged ? tr : null;
46025
+ }
46026
+ });
46027
+ function getMarksFromRun(runNode) {
46028
+ let marks = [];
46029
+ runNode.forEach((child) => {
46030
+ if (!marks.length && child.isText) {
46031
+ marks = child.marks;
46032
+ }
46033
+ });
46034
+ return marks;
46035
+ }
46036
+ function getInlineRunProperties(runPropertiesFromMarks, runPropertiesFromStyles) {
46037
+ const inlineRunProperties = {};
46038
+ for (const key2 in runPropertiesFromMarks) {
46039
+ const valueFromMarks = runPropertiesFromMarks[key2];
46040
+ const valueFromStyles = runPropertiesFromStyles[key2];
46041
+ if (JSON.stringify(valueFromMarks) !== JSON.stringify(valueFromStyles)) {
46042
+ inlineRunProperties[key2] = valueFromMarks;
46043
+ }
46044
+ }
46045
+ return inlineRunProperties;
46046
+ }
46047
+ function mergeRanges$1(ranges, docSize) {
46048
+ if (!ranges.length) return [];
46049
+ const sorted = ranges.map(({ from: from2, to }) => ({
46050
+ from: Math.max(0, from2),
46051
+ to: Math.min(docSize, to)
46052
+ })).filter(({ from: from2, to }) => from2 < to).sort((a, b) => a.from - b.from);
46053
+ const merged = [];
46054
+ for (const range of sorted) {
46055
+ const last = merged[merged.length - 1];
46056
+ if (last && range.from <= last.to) {
46057
+ last.to = Math.max(last.to, range.to);
46058
+ } else {
46059
+ merged.push({ ...range });
46060
+ }
46061
+ }
46062
+ return merged;
46063
+ }
45842
46064
  const Run = OxmlNode.create({
45843
46065
  name: "run",
45844
46066
  oXmlName: "w:r",
@@ -45893,7 +46115,12 @@ const Run = OxmlNode.create({
45893
46115
  return ["span", base2, 0];
45894
46116
  },
45895
46117
  addPmPlugins() {
45896
- return [wrapTextInRunsPlugin(), cleanupEmptyRunsPlugin];
46118
+ return [
46119
+ wrapTextInRunsPlugin(),
46120
+ splitRunsAfterMarkPlugin,
46121
+ calculateInlineRunPropertiesPlugin(this.editor),
46122
+ cleanupEmptyRunsPlugin
46123
+ ];
45897
46124
  }
45898
46125
  });
45899
46126
  const restartNumbering = ({ editor, tr, state, dispatch }) => {
@@ -50789,7 +51016,9 @@ const TableCell = Node$1.create({
50789
51016
  const style = sides.map((side) => {
50790
51017
  const border = borders?.[side];
50791
51018
  if (border && border.val === "none") return `border-${side}: ${border.val};`;
50792
- if (border) return `border-${side}: ${Math.ceil(border.size)}px solid ${border.color || "black"};`;
51019
+ let color = border?.color || "black";
51020
+ if (color === "auto") color = "black";
51021
+ if (border) return `border-${side}: ${Math.ceil(border.size)}px solid ${color};`;
50793
51022
  return "";
50794
51023
  }).join(" ");
50795
51024
  return { style };
@@ -55977,6 +56206,8 @@ const PassthroughInline = Node$1.create({
55977
56206
  name: "passthroughInline",
55978
56207
  group: "inline",
55979
56208
  inline: true,
56209
+ // IMPORTANT: This node is registered in pm-adapter/src/constants.ts ATOMIC_INLINE_TYPES
56210
+ // If you change atom to false, you MUST remove it from that set to avoid positioning bugs
55980
56211
  atom: true,
55981
56212
  draggable: false,
55982
56213
  selectable: false,
@@ -1,4 +1,4 @@
1
- import { aK as getDefaultExportFromCjs } from "./converter-OoT4LYwQ.js";
1
+ import { aK as getDefaultExportFromCjs } from "./converter-DwC5XPQX.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, onMounted, onBeforeUnmount, createVNode, readonly, watch, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-OoT4LYwQ.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CqbtudGQ.js";
2
+ import { p as process$1 } from "./converter-DwC5XPQX.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CoKNeouN.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { ac } from "./chunks/converter-OoT4LYwQ.js";
1
+ import { ac } from "./chunks/converter-DwC5XPQX.js";
2
2
  export {
3
3
  ac as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-OoT4LYwQ.js";
2
- import { D } from "./chunks/docx-zipper-Cf_hIcjC.js";
1
+ import "./chunks/converter-DwC5XPQX.js";
2
+ import { D } from "./chunks/docx-zipper-BkCzC50U.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CqbtudGQ.js";
2
- import "./chunks/converter-OoT4LYwQ.js";
3
- import "./chunks/docx-zipper-Cf_hIcjC.js";
1
+ import { E } from "./chunks/editor-CoKNeouN.js";
2
+ import "./chunks/converter-DwC5XPQX.js";
3
+ import "./chunks/docx-zipper-BkCzC50U.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-Cf_hIcjC.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BkCzC50U.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
12
- import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-OoT4LYwQ.js";
13
- import { ac, i, a9, aQ } from "./chunks/converter-OoT4LYwQ.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as measureCache, n as isHeadless, E as Editor, o as getStarterExtensions, P as PresentationEditor, p as Placeholder, q as getRichTextExtensions, D as DecorationSet, t as Decoration, M as Mark, v as Extension, A as Attribute, N as Node } from "./chunks/editor-CqbtudGQ.js";
15
- import { z, F, B, T, w, C, x } from "./chunks/editor-CqbtudGQ.js";
12
+ import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-DwC5XPQX.js";
13
+ import { ac, i, a9, aQ } from "./chunks/converter-DwC5XPQX.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as measureCache, n as isHeadless, E as Editor, o as getStarterExtensions, P as PresentationEditor, p as Placeholder, q as getRichTextExtensions, D as DecorationSet, t as Decoration, M as Mark, v as Extension, A as Attribute, N as Node } from "./chunks/editor-CoKNeouN.js";
15
+ import { z, F, B, T, w, C, x } from "./chunks/editor-CoKNeouN.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, useCssVars, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-BsfRAJ0o.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-DUWk-Bwi.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-Cf_hIcjC.js";
19
+ import { D } from "./chunks/docx-zipper-BkCzC50U.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BsfRAJ0o.js";
3
- import "./chunks/editor-CqbtudGQ.js";
2
+ import { T } from "./chunks/toolbar-DUWk-Bwi.js";
3
+ import "./chunks/editor-CoKNeouN.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-BMiadG4G.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DkFw0sfq.cjs");
4
4
  require("./chunks/vue-jWLMl8Ts.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-xpC1DWhM.es.js";
1
+ import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BxMwj135.es.js";
2
2
  import "./chunks/vue-Dysv_7z5.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-BMiadG4G.cjs");
4
- const superdoc = require("./chunks/index-BKvAeQdF.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DkFw0sfq.cjs");
4
+ const superdoc = require("./chunks/index-BpBdSm3V.cjs");
5
5
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.Editor = superEditor_es.Editor;
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-xpC1DWhM.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-to6_YLa7.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BxMwj135.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-DF1aQt8V.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,