@harbour-enterprises/superdoc 1.0.0-beta.21 → 1.0.0-beta.22

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-CEwbF85g.es.js → PdfViewer-B42JCeYb.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-CqAQvFv3.cjs → PdfViewer-CswYWp1h.cjs} +1 -1
  3. package/dist/chunks/{index-DSuc12CK-DH_DeF0B.es.js → index-895wSAjT-C4ksiI6n.es.js} +1 -1
  4. package/dist/chunks/{index-DSuc12CK-Dpg5Hd9W.cjs → index-895wSAjT-CWlZl8zz.cjs} +1 -1
  5. package/dist/chunks/{index-Dy-eAVHL.cjs → index-CK4eX_iu.cjs} +7 -5
  6. package/dist/chunks/{index-BFobqgP4.es.js → index-DBmh710D.es.js} +7 -5
  7. package/dist/chunks/{super-editor.es-C2UuUFg3.cjs → super-editor.es-BkRizaIE.cjs} +206 -77
  8. package/dist/chunks/{super-editor.es-B5YJmpPg.es.js → super-editor.es-V792hb-6.es.js} +206 -77
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-Cw0V00On.js → converter-DhkZt4Pv.js} +6 -6
  12. package/dist/super-editor/chunks/{docx-zipper-D7k6lS5l.js → docx-zipper-Bajmc-RM.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-CDWzRc4H.js → editor-oZjoYNA0.js} +208 -78
  14. package/dist/super-editor/chunks/{index-DSuc12CK.js → index-895wSAjT.js} +1 -1
  15. package/dist/super-editor/chunks/{toolbar-CHJspeuY.js → toolbar-Bn5LTbq9.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 +212 -81
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
@@ -9,11 +9,11 @@ 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 __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
11
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
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, _EditorOverlayManager_instances, findDecorationContainer_fn, ensureEditorHost_fn, positionEditorHost_fn, showHeaderFooterBorder_fn, hideHeaderFooterBorder_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay2, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _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, _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, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _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, _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;
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, _EditorOverlayManager_instances, findDecorationContainer_fn, ensureEditorHost_fn, positionEditorHost_fn, showHeaderFooterBorder_fn, hideHeaderFooterBorder_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay2, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _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, _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, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _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;
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 ListHelpers, O as updateNumberingProperties, Q as changeListLevel, U as findParentNode, V as isList, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName, $ as TrackInsertMarkName, a0 as v4, a1 as TrackFormatMarkName, 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-Cw0V00On.js";
16
- import { D as DocxZipper } from "./docx-zipper-D7k6lS5l.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, $ as TrackInsertMarkName, a0 as v4, a1 as TrackFormatMarkName, 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-DhkZt4Pv.js";
16
+ import { D as DocxZipper } from "./docx-zipper-Bajmc-RM.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() {
@@ -9916,6 +9916,59 @@ function skipTab(dir) {
9916
9916
  return true;
9917
9917
  };
9918
9918
  }
9919
+ const decreaseListIndent = () => ({ editor, tr, dispatch }) => {
9920
+ const handled = changeListLevel(-1, editor, tr);
9921
+ if (handled && dispatch) {
9922
+ dispatch(tr);
9923
+ }
9924
+ return handled;
9925
+ };
9926
+ const removeNumberingProperties = ({ checkType = "startParagraph" } = {}) => (props) => {
9927
+ const { tr, state, editor, dispatch } = props;
9928
+ const { node: paragraph, pos } = findParentNode(isList)(state.selection) || {};
9929
+ if (!paragraph) return false;
9930
+ if (checkType === "empty" && !isVisuallyEmptyParagraph(paragraph)) return false;
9931
+ if (checkType === "startParagraph") {
9932
+ const { $from, empty: empty2 } = state.selection;
9933
+ if ((!empty2 || $from.parentOffset !== 0) && !isVisuallyEmptyParagraph(paragraph)) return false;
9934
+ }
9935
+ const ilvl = getResolvedParagraphProperties(paragraph).numberingProperties.ilvl;
9936
+ if (ilvl > 0) {
9937
+ const outdented = decreaseListIndent()(props);
9938
+ if (outdented) {
9939
+ tr.scrollIntoView();
9940
+ }
9941
+ return outdented;
9942
+ } else {
9943
+ updateNumberingProperties(null, paragraph, pos, editor, tr);
9944
+ }
9945
+ if (dispatch) dispatch(tr);
9946
+ return true;
9947
+ };
9948
+ function isVisuallyEmptyParagraph(node) {
9949
+ if (!node || node.type.name !== "paragraph") return false;
9950
+ let hasHardBreak = false;
9951
+ node.descendants((n) => {
9952
+ if (n.type && n.type.name === "hardBreak") {
9953
+ hasHardBreak = true;
9954
+ return false;
9955
+ }
9956
+ return true;
9957
+ });
9958
+ if (hasHardBreak) return false;
9959
+ const text = (node.textContent || "").replace(/\u200b/g, "").trim();
9960
+ if (text.length > 0) return false;
9961
+ let hasInlineLeaf = false;
9962
+ node.descendants((n) => {
9963
+ if (n.isInline && n.isLeaf && n.type?.name !== "hardBreak" && n.type?.name !== "run") {
9964
+ hasInlineLeaf = true;
9965
+ return false;
9966
+ }
9967
+ return true;
9968
+ });
9969
+ if (hasInlineLeaf) return false;
9970
+ return true;
9971
+ }
9919
9972
  const toggleList = (listType) => ({ editor, state, tr, dispatch }) => {
9920
9973
  let predicate;
9921
9974
  if (listType === "orderedList") {
@@ -9935,19 +9988,22 @@ const toggleList = (listType) => ({ editor, state, tr, dispatch }) => {
9935
9988
  const { from: from2, to } = selection;
9936
9989
  let firstListNode = null;
9937
9990
  let hasNonListParagraphs = false;
9938
- let paragraphsInSelection = [];
9991
+ let allParagraphsInSelection = [];
9939
9992
  state.doc.nodesBetween(from2, to, (node, pos) => {
9940
9993
  if (node.type.name === "paragraph") {
9941
- paragraphsInSelection.push({ node, pos });
9942
- if (!firstListNode && predicate(node)) {
9943
- firstListNode = node;
9944
- } else if (!predicate(node)) {
9945
- hasNonListParagraphs = true;
9946
- }
9994
+ allParagraphsInSelection.push({ node, pos });
9947
9995
  return false;
9948
9996
  }
9949
9997
  return true;
9950
9998
  });
9999
+ let paragraphsInSelection = allParagraphsInSelection.length === 1 ? allParagraphsInSelection : allParagraphsInSelection.filter(({ node }) => !isVisuallyEmptyParagraph(node));
10000
+ for (const { node } of paragraphsInSelection) {
10001
+ if (!firstListNode && predicate(node)) {
10002
+ firstListNode = node;
10003
+ } else if (!predicate(node)) {
10004
+ hasNonListParagraphs = true;
10005
+ }
10006
+ }
9951
10007
  if (!firstListNode && from2 > 0) {
9952
10008
  const $from = state.doc.resolve(from2);
9953
10009
  const parentIndex = $from.index(-1);
@@ -9991,11 +10047,30 @@ const toggleList = (listType) => ({ editor, state, tr, dispatch }) => {
9991
10047
  }
9992
10048
  updateNumberingProperties(sharedNumberingProperties, node, pos, editor, tr);
9993
10049
  }
9994
- const newTo = tr.mapping.map(to);
9995
- if (newTo >= 0 && newTo <= tr.doc.content.size) {
9996
- try {
9997
- tr.setSelection(state.selection.constructor.near(tr.doc.resolve(newTo)));
9998
- } catch {
10050
+ if (paragraphsInSelection.length > 0) {
10051
+ const firstPara = paragraphsInSelection[0];
10052
+ const lastPara = paragraphsInSelection[paragraphsInSelection.length - 1];
10053
+ const mappedFirstPos = tr.mapping.map(firstPara.pos);
10054
+ const mappedLastPos = tr.mapping.map(lastPara.pos);
10055
+ const $firstPos = tr.doc.resolve(mappedFirstPos);
10056
+ const $lastPos = tr.doc.resolve(mappedLastPos);
10057
+ const firstNode = $firstPos.nodeAfter;
10058
+ const lastNode = $lastPos.nodeAfter;
10059
+ if (firstNode && lastNode) {
10060
+ let selFrom = mappedFirstPos + 1;
10061
+ let selTo = mappedLastPos + lastNode.nodeSize - 1;
10062
+ if (firstNode.firstChild && firstNode.firstChild.type.name === "run") {
10063
+ selFrom = mappedFirstPos + 2;
10064
+ }
10065
+ if (lastNode.lastChild && lastNode.lastChild.type.name === "run") {
10066
+ selTo = mappedLastPos + lastNode.nodeSize - 2;
10067
+ }
10068
+ if (selFrom >= 0 && selTo <= tr.doc.content.size && selFrom <= selTo) {
10069
+ try {
10070
+ tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo));
10071
+ } catch {
10072
+ }
10073
+ }
9999
10074
  }
10000
10075
  }
10001
10076
  if (dispatch) dispatch(tr);
@@ -10008,59 +10083,6 @@ const increaseListIndent = () => ({ editor, tr, dispatch }) => {
10008
10083
  }
10009
10084
  return handled;
10010
10085
  };
10011
- const decreaseListIndent = () => ({ editor, tr, dispatch }) => {
10012
- const handled = changeListLevel(-1, editor, tr);
10013
- if (handled && dispatch) {
10014
- dispatch(tr);
10015
- }
10016
- return handled;
10017
- };
10018
- const removeNumberingProperties = ({ checkType = "startParagraph" } = {}) => (props) => {
10019
- const { tr, state, editor, dispatch } = props;
10020
- const { node: paragraph, pos } = findParentNode(isList)(state.selection) || {};
10021
- if (!paragraph) return false;
10022
- if (checkType === "empty" && !isVisuallyEmptyParagraph(paragraph)) return false;
10023
- if (checkType === "startParagraph") {
10024
- const { $from, empty: empty2 } = state.selection;
10025
- if ((!empty2 || $from.parentOffset !== 0) && !isVisuallyEmptyParagraph(paragraph)) return false;
10026
- }
10027
- const ilvl = getResolvedParagraphProperties(paragraph).numberingProperties.ilvl;
10028
- if (ilvl > 0) {
10029
- const outdented = decreaseListIndent()(props);
10030
- if (outdented) {
10031
- tr.scrollIntoView();
10032
- }
10033
- return outdented;
10034
- } else {
10035
- updateNumberingProperties(null, paragraph, pos, editor, tr);
10036
- }
10037
- if (dispatch) dispatch(tr);
10038
- return true;
10039
- };
10040
- function isVisuallyEmptyParagraph(node) {
10041
- if (!node || node.type.name !== "paragraph") return false;
10042
- let hasHardBreak = false;
10043
- node.descendants((n) => {
10044
- if (n.type && n.type.name === "hardBreak") {
10045
- hasHardBreak = true;
10046
- return false;
10047
- }
10048
- return true;
10049
- });
10050
- if (hasHardBreak) return false;
10051
- const text = (node.textContent || "").replace(/\u200b/g, "").trim();
10052
- if (text.length > 0) return false;
10053
- let hasInlineLeaf = false;
10054
- node.descendants((n) => {
10055
- if (n.isInline && n.isLeaf && n.type?.name !== "hardBreak" && n.type?.name !== "run") {
10056
- hasInlineLeaf = true;
10057
- return false;
10058
- }
10059
- return true;
10060
- });
10061
- if (hasInlineLeaf) return false;
10062
- return true;
10063
- }
10064
10086
  const restoreSelection = () => ({ editor, state, tr }) => {
10065
10087
  if (editor.options.lastSelection) {
10066
10088
  const selectionTr = tr.setSelection(
@@ -10143,6 +10165,7 @@ const commands$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
10143
10165
  insertTabCharacter,
10144
10166
  insertTabNode,
10145
10167
  isStyleTokenEnabled,
10168
+ isVisuallyEmptyParagraph,
10146
10169
  joinBackward,
10147
10170
  joinDown,
10148
10171
  joinForward,
@@ -10261,12 +10284,38 @@ const Keymap = Extension.create({
10261
10284
  const Editable = Extension.create({
10262
10285
  name: "editable",
10263
10286
  addPmPlugins() {
10287
+ const editor = this.editor;
10264
10288
  const editablePlugin = new Plugin({
10265
10289
  key: new PluginKey("editable"),
10266
10290
  props: {
10267
- editable: () => {
10268
- return this.editor.options.editable;
10269
- }
10291
+ editable: () => editor.options.editable,
10292
+ handleDOMEvents: {
10293
+ beforeinput: (_view, event) => {
10294
+ if (!editor.options.editable) {
10295
+ event.preventDefault();
10296
+ return true;
10297
+ }
10298
+ return false;
10299
+ },
10300
+ mousedown: (_view, event) => {
10301
+ if (!editor.options.editable) {
10302
+ event.preventDefault();
10303
+ return true;
10304
+ }
10305
+ return false;
10306
+ },
10307
+ focus: (view, event) => {
10308
+ if (!editor.options.editable) {
10309
+ event.preventDefault();
10310
+ view.dom.blur();
10311
+ return true;
10312
+ }
10313
+ return false;
10314
+ }
10315
+ },
10316
+ handleClick: () => !editor.options.editable,
10317
+ handleDoubleClick: () => !editor.options.editable,
10318
+ handleTripleClick: () => !editor.options.editable
10270
10319
  }
10271
10320
  });
10272
10321
  return [editablePlugin];
@@ -13856,7 +13905,7 @@ const isHeadless = (editor) => {
13856
13905
  const shouldSkipNodeView = (editor) => {
13857
13906
  return isHeadless(editor);
13858
13907
  };
13859
- const summaryVersion = "1.0.0-beta.21";
13908
+ const summaryVersion = "1.0.0-beta.22";
13860
13909
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
13861
13910
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
13862
13911
  function mapAttributes(attrs) {
@@ -14264,10 +14313,23 @@ const _Editor = class _Editor extends EventEmitter {
14264
14313
  this.view.updateState(this.state);
14265
14314
  }
14266
14315
  /**
14267
- * Set whether the editor is editable
14316
+ * Set whether the editor is editable.
14317
+ *
14318
+ * When setting to non-editable, this method:
14319
+ * - Forces ProseMirror to re-evaluate the editable prop from the Editable plugin
14320
+ * - Blurs the editor to remove the cursor
14321
+ *
14322
+ * @param editable - Whether the editor should accept user input (default: true)
14323
+ * @param emitUpdate - Whether to emit an update event after changing editability (default: true)
14268
14324
  */
14269
14325
  setEditable(editable = true, emitUpdate = true) {
14270
14326
  this.setOptions({ editable });
14327
+ if (this.view) {
14328
+ this.view.setProps({});
14329
+ if (!editable && this.view.dom) {
14330
+ this.view.dom.blur();
14331
+ }
14332
+ }
14271
14333
  if (emitUpdate) {
14272
14334
  this.emit("update", { editor: this, transaction: this.state.tr });
14273
14335
  }
@@ -14635,7 +14697,7 @@ const _Editor = class _Editor extends EventEmitter {
14635
14697
  { default: remarkStringify },
14636
14698
  { default: remarkGfm }
14637
14699
  ] = await Promise.all([
14638
- import("./index-DSuc12CK.js"),
14700
+ import("./index-895wSAjT.js"),
14639
14701
  import("./index-DRCvimau.js"),
14640
14702
  import("./index-C_x_N6Uh.js"),
14641
14703
  import("./index-D_sWOSiG.js"),
@@ -14840,7 +14902,7 @@ const _Editor = class _Editor extends EventEmitter {
14840
14902
  * Process collaboration migrations
14841
14903
  */
14842
14904
  processCollaborationMigrations() {
14843
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.21");
14905
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.22");
14844
14906
  if (!this.options.ydoc) return;
14845
14907
  const metaMap = this.options.ydoc.getMap("meta");
14846
14908
  let docVersion = metaMap.get("version");
@@ -32999,9 +33061,36 @@ const fragmentSignature = (fragment, lookup) => {
32999
33061
  }
33000
33062
  return base2;
33001
33063
  };
33064
+ const hasListMarkerProperties = (attrs) => {
33065
+ if (!attrs || typeof attrs !== "object") return false;
33066
+ const obj = attrs;
33067
+ if (!obj.numberingProperties || typeof obj.numberingProperties !== "object") return false;
33068
+ const numProps = obj.numberingProperties;
33069
+ if ("numId" in numProps) {
33070
+ const numId = numProps.numId;
33071
+ if (typeof numId !== "number" && typeof numId !== "string") return false;
33072
+ }
33073
+ if ("ilvl" in numProps) {
33074
+ const ilvl = numProps.ilvl;
33075
+ if (typeof ilvl !== "number") return false;
33076
+ }
33077
+ if ("wordLayout" in obj && obj.wordLayout !== void 0) {
33078
+ if (typeof obj.wordLayout !== "object" || obj.wordLayout === null) return false;
33079
+ const wordLayout = obj.wordLayout;
33080
+ if ("marker" in wordLayout && wordLayout.marker !== void 0) {
33081
+ if (typeof wordLayout.marker !== "object" || wordLayout.marker === null) return false;
33082
+ const marker = wordLayout.marker;
33083
+ if ("markerText" in marker && marker.markerText !== void 0) {
33084
+ if (typeof marker.markerText !== "string") return false;
33085
+ }
33086
+ }
33087
+ }
33088
+ return true;
33089
+ };
33002
33090
  const deriveBlockVersion = (block) => {
33003
33091
  if (block.kind === "paragraph") {
33004
- return block.runs.map((run) => {
33092
+ const markerVersion = hasListMarkerProperties(block.attrs) ? `marker:${block.attrs.numberingProperties.numId ?? ""}:${block.attrs.numberingProperties.ilvl ?? 0}:${block.attrs.wordLayout?.marker?.markerText ?? ""}` : "";
33093
+ const runsVersion = block.runs.map((run) => {
33005
33094
  if (run.kind === "image") {
33006
33095
  const imgRun = run;
33007
33096
  return [
@@ -33044,6 +33133,7 @@ const deriveBlockVersion = (block) => {
33044
33133
  textRun.token ?? ""
33045
33134
  ].join(",");
33046
33135
  }).join("|");
33136
+ return markerVersion ? `${markerVersion}|${runsVersion}` : runsVersion;
33047
33137
  }
33048
33138
  if (block.kind === "list") {
33049
33139
  return block.items.map((item) => `${item.id}:${item.marker.text}:${deriveBlockVersion(item.paragraph)}`).join("|");
@@ -37771,7 +37861,12 @@ setupPointerHandlers_fn = function() {
37771
37861
  setupInputBridge_fn = function() {
37772
37862
  __privateGet(this, _inputBridge)?.destroy();
37773
37863
  const win = __privateGet(this, _visibleHost).ownerDocument?.defaultView ?? window;
37774
- __privateSet(this, _inputBridge, new PresentationInputBridge(win, __privateGet(this, _visibleHost), () => __privateMethod(this, _PresentationEditor_instances, getActiveDomTarget_fn).call(this)));
37864
+ __privateSet(this, _inputBridge, new PresentationInputBridge(
37865
+ win,
37866
+ __privateGet(this, _visibleHost),
37867
+ () => __privateMethod(this, _PresentationEditor_instances, getActiveDomTarget_fn).call(this),
37868
+ () => __privateGet(this, _documentMode) !== "viewing"
37869
+ ));
37775
37870
  __privateGet(this, _inputBridge).bind();
37776
37871
  };
37777
37872
  initHeaderFooterRegistry_fn = function() {
@@ -38227,6 +38322,10 @@ updateSelection_fn = function() {
38227
38322
  if (!__privateGet(this, _localSelectionLayer)) {
38228
38323
  return;
38229
38324
  }
38325
+ if (__privateGet(this, _documentMode) === "viewing") {
38326
+ __privateGet(this, _localSelectionLayer).innerHTML = "";
38327
+ return;
38328
+ }
38230
38329
  const layout = __privateGet(this, _layoutState).layout;
38231
38330
  const selection = this.getActiveEditor().state?.selection;
38232
38331
  __privateGet(this, _localSelectionLayer).innerHTML = "";
@@ -39588,11 +39687,28 @@ _PresentationEditor.CURSOR_STYLES = {
39588
39687
  };
39589
39688
  let PresentationEditor = _PresentationEditor;
39590
39689
  class PresentationInputBridge {
39591
- constructor(windowRoot, layoutSurface, getTargetDom, onTargetChanged, options) {
39690
+ /**
39691
+ * Creates a new PresentationInputBridge that forwards user input events from the visible layout
39692
+ * surface to the hidden editor DOM. This enables input handling when the actual editor is not
39693
+ * directly visible to the user.
39694
+ *
39695
+ * @param windowRoot - The window object containing the layout surface and editor target
39696
+ * @param layoutSurface - The visible HTML element that receives user input events (e.g., keyboard, mouse)
39697
+ * @param getTargetDom - Callback that returns the hidden editor's DOM element where events should be forwarded
39698
+ * @param isEditable - Callback that returns whether the editor is in an editable mode (editing/suggesting).
39699
+ * When this returns false (e.g., in viewing mode), keyboard, text, and composition
39700
+ * events will not be forwarded to prevent document modification.
39701
+ * @param onTargetChanged - Optional callback invoked when the target editor DOM element changes
39702
+ * @param options - Optional configuration including:
39703
+ * - useWindowFallback: Whether to attach window-level event listeners as fallback
39704
+ */
39705
+ constructor(windowRoot, layoutSurface, getTargetDom, isEditable, onTargetChanged, options) {
39592
39706
  __privateAdd(this, _PresentationInputBridge_instances);
39593
39707
  __privateAdd(this, _windowRoot);
39594
39708
  __privateAdd(this, _layoutSurfaces);
39595
39709
  __privateAdd(this, _getTargetDom);
39710
+ /** Callback that returns whether the editor is in an editable mode (editing/suggesting vs viewing) */
39711
+ __privateAdd(this, _isEditable);
39596
39712
  __privateAdd(this, _onTargetChanged);
39597
39713
  __privateAdd(this, _listeners);
39598
39714
  __privateAdd(this, _currentTarget, null);
@@ -39601,6 +39717,7 @@ class PresentationInputBridge {
39601
39717
  __privateSet(this, _windowRoot, windowRoot);
39602
39718
  __privateSet(this, _layoutSurfaces, /* @__PURE__ */ new Set([layoutSurface]));
39603
39719
  __privateSet(this, _getTargetDom, getTargetDom);
39720
+ __privateSet(this, _isEditable, isEditable);
39604
39721
  __privateSet(this, _onTargetChanged, onTargetChanged);
39605
39722
  __privateSet(this, _listeners, []);
39606
39723
  __privateSet(this, _useWindowFallback, options?.useWindowFallback ?? false);
@@ -39667,6 +39784,7 @@ class PresentationInputBridge {
39667
39784
  _windowRoot = new WeakMap();
39668
39785
  _layoutSurfaces = new WeakMap();
39669
39786
  _getTargetDom = new WeakMap();
39787
+ _isEditable = new WeakMap();
39670
39788
  _onTargetChanged = new WeakMap();
39671
39789
  _listeners = new WeakMap();
39672
39790
  _currentTarget = new WeakMap();
@@ -39704,6 +39822,9 @@ dispatchToTarget_fn = function(originalEvent, synthetic) {
39704
39822
  * @param event - The keyboard event from the layout surface
39705
39823
  */
39706
39824
  forwardKeyboardEvent_fn = function(event) {
39825
+ if (!__privateGet(this, _isEditable).call(this)) {
39826
+ return;
39827
+ }
39707
39828
  if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
39708
39829
  return;
39709
39830
  }
@@ -39737,6 +39858,9 @@ forwardKeyboardEvent_fn = function(event) {
39737
39858
  * @param event - The input event from the layout surface
39738
39859
  */
39739
39860
  forwardTextEvent_fn = function(event) {
39861
+ if (!__privateGet(this, _isEditable).call(this)) {
39862
+ return;
39863
+ }
39740
39864
  if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
39741
39865
  return;
39742
39866
  }
@@ -39773,6 +39897,9 @@ forwardTextEvent_fn = function(event) {
39773
39897
  * @param event - The composition event from the layout surface
39774
39898
  */
39775
39899
  forwardCompositionEvent_fn = function(event) {
39900
+ if (!__privateGet(this, _isEditable).call(this)) {
39901
+ return;
39902
+ }
39776
39903
  if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
39777
39904
  return;
39778
39905
  }
@@ -39797,6 +39924,9 @@ forwardCompositionEvent_fn = function(event) {
39797
39924
  * @param event - The context menu event from the layout surface
39798
39925
  */
39799
39926
  forwardContextMenu_fn = function(event) {
39927
+ if (!__privateGet(this, _isEditable).call(this)) {
39928
+ return;
39929
+ }
39800
39930
  if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
39801
39931
  return;
39802
39932
  }
@@ -1,4 +1,4 @@
1
- import { aK as getDefaultExportFromCjs } from "./converter-Cw0V00On.js";
1
+ import { aK as getDefaultExportFromCjs } from "./converter-DhkZt4Pv.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-Cw0V00On.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CDWzRc4H.js";
2
+ import { p as process$1 } from "./converter-DhkZt4Pv.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-oZjoYNA0.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-Cw0V00On.js";
1
+ import { ac } from "./chunks/converter-DhkZt4Pv.js";
2
2
  export {
3
3
  ac as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-Cw0V00On.js";
2
- import { D } from "./chunks/docx-zipper-D7k6lS5l.js";
1
+ import "./chunks/converter-DhkZt4Pv.js";
2
+ import { D } from "./chunks/docx-zipper-Bajmc-RM.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CDWzRc4H.js";
2
- import "./chunks/converter-Cw0V00On.js";
3
- import "./chunks/docx-zipper-D7k6lS5l.js";
1
+ import { E } from "./chunks/editor-oZjoYNA0.js";
2
+ import "./chunks/converter-DhkZt4Pv.js";
3
+ import "./chunks/docx-zipper-Bajmc-RM.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-D7k6lS5l.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-Bajmc-RM.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, U as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-Cw0V00On.js";
13
- import { ac, i, a9, aQ } from "./chunks/converter-Cw0V00On.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-CDWzRc4H.js";
15
- import { z, F, B, T, w, C, x } from "./chunks/editor-CDWzRc4H.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-DhkZt4Pv.js";
13
+ import { ac, i, a9, aQ } from "./chunks/converter-DhkZt4Pv.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-oZjoYNA0.js";
15
+ import { z, F, B, T, w, C, x } from "./chunks/editor-oZjoYNA0.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-CHJspeuY.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-Bn5LTbq9.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-D7k6lS5l.js";
19
+ import { D } from "./chunks/docx-zipper-Bajmc-RM.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-CHJspeuY.js";
3
- import "./chunks/editor-CDWzRc4H.js";
2
+ import { T } from "./chunks/toolbar-Bn5LTbq9.js";
3
+ import "./chunks/editor-oZjoYNA0.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-C2UuUFg3.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BkRizaIE.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-B5YJmpPg.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-V792hb-6.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-C2UuUFg3.cjs");
4
- const superdoc = require("./chunks/index-Dy-eAVHL.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BkRizaIE.cjs");
4
+ const superdoc = require("./chunks/index-CK4eX_iu.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-B5YJmpPg.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-BFobqgP4.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-V792hb-6.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-DBmh710D.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,