@harbour-enterprises/superdoc 1.0.0-beta.6 → 1.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/chunks/{PdfViewer-DmPiOFJ8.cjs → PdfViewer-T4fTm1XF.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-CdGAVn-4.es.js → PdfViewer-hAYAlKzI.es.js} +1 -1
  3. package/dist/chunks/{index-QulG3CF7.cjs → index-CYQjWGo5.cjs} +3 -3
  4. package/dist/chunks/{index-nXifzD54.es.js → index-DGYP5Xod.es.js} +3 -3
  5. package/dist/chunks/{index-hjUbJ86s-BMiwCR8J.es.js → index-DV613LhK-BY095UD2.es.js} +1 -1
  6. package/dist/chunks/{index-hjUbJ86s-BLl65XJn.cjs → index-DV613LhK-CqFLIBmd.cjs} +1 -1
  7. package/dist/chunks/{super-editor.es-BYVEYLjl.es.js → super-editor.es-CcaD69pQ.es.js} +135 -48
  8. package/dist/chunks/{super-editor.es-0GatZWs9.cjs → super-editor.es-DmhQckCV.cjs} +135 -48
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/style.css +9 -9
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-CZF9SnYh.js → converter-BM6gXTRC.js} +1 -1
  13. package/dist/super-editor/chunks/{docx-zipper-DWypbE0V.js → docx-zipper-fwXPJGKu.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-BdXHlHt-.js → editor-RPTrfArg.js} +192 -45
  15. package/dist/super-editor/chunks/{index-hjUbJ86s.js → index-DV613LhK.js} +1 -1
  16. package/dist/super-editor/chunks/{toolbar-CmelvLTd.js → toolbar-DacKXz_n.js} +5 -4
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +9 -9
  22. package/dist/super-editor/super-editor.es.js +9 -8
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +2 -2
  27. package/dist/superdoc.es.js +2 -2
  28. package/dist/superdoc.umd.js +137 -50
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -35580,7 +35580,7 @@ const _SuperConverter = class _SuperConverter2 {
35580
35580
  static getStoredSuperdocVersion(docx) {
35581
35581
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35582
35582
  }
35583
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.6") {
35583
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.7") {
35584
35584
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35585
35585
  }
35586
35586
  /**
@@ -38780,7 +38780,7 @@ var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "rea
38780
38780
  var __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
38781
38781
  var __privateSet = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value), value);
38782
38782
  var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
38783
- 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, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay, _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, _headerLayoutResults, _footerLayoutResults, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _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, updateDecorationProviders_fn, createDecorationProvider_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, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, computeHeaderFooterCaretRect_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, findLineContainingPos_fn, lineHeightBeforeIndex_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_fn, createHiddenHost_fn, _windowRoot, _visibleHost2, _getTargetDom, _onTargetChanged, _listeners, _currentTarget, _destroyed, _PresentationInputBridge_instances, addListener_fn, dispatchToTarget_fn, forwardKeyboardEvent_fn, forwardTextEvent_fn, forwardCompositionEvent_fn, forwardContextMenu_fn, isEventOnActiveTarget_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, updateHTMLAttributes_fn, updateDOMStyles_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;
38783
+ 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, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay, _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, _headerLayoutResults, _footerLayoutResults, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _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, updateDecorationProviders_fn, createDecorationProvider_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, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, computeHeaderFooterCaretRect_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, 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, updateHTMLAttributes_fn, updateDOMStyles_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;
38784
38784
  var GOOD_LEAF_SIZE = 200;
38785
38785
  var RopeSequence = function RopeSequence2() {
38786
38786
  };
@@ -52287,7 +52287,7 @@ const isHeadless = (editor) => {
52287
52287
  const shouldSkipNodeView = (editor) => {
52288
52288
  return isHeadless(editor);
52289
52289
  };
52290
- const summaryVersion = "1.0.0-beta.6";
52290
+ const summaryVersion = "1.0.0-beta.7";
52291
52291
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
52292
52292
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
52293
52293
  function mapAttributes(attrs) {
@@ -53066,7 +53066,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53066
53066
  { default: remarkStringify },
53067
53067
  { default: remarkGfm }
53068
53068
  ] = await Promise.all([
53069
- Promise.resolve().then(() => require("./index-hjUbJ86s-BLl65XJn.cjs")),
53069
+ Promise.resolve().then(() => require("./index-DV613LhK-CqFLIBmd.cjs")),
53070
53070
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
53071
53071
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
53072
53072
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -53271,7 +53271,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53271
53271
  * Process collaboration migrations
53272
53272
  */
53273
53273
  processCollaborationMigrations() {
53274
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.6");
53274
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.7");
53275
53275
  if (!this.options.ydoc) return;
53276
53276
  const metaMap = this.options.ydoc.getMap("meta");
53277
53277
  let docVersion = metaMap.get("version");
@@ -68983,6 +68983,24 @@ getConverterContext_fn = function() {
68983
68983
  }
68984
68984
  return Object.keys(context).length > 0 ? context : void 0;
68985
68985
  };
68986
+ const uiSurfaces = /* @__PURE__ */ new WeakSet();
68987
+ function isInRegisteredSurface(event) {
68988
+ const path = typeof event.composedPath === "function" ? event.composedPath() : [];
68989
+ if (path.length > 0) {
68990
+ for (const node2 of path) {
68991
+ if (uiSurfaces.has(node2)) return true;
68992
+ if (node2?.hasAttribute?.("data-editor-ui-surface")) return true;
68993
+ }
68994
+ return false;
68995
+ }
68996
+ let node = event.target;
68997
+ while (node) {
68998
+ if (uiSurfaces.has(node)) return true;
68999
+ if (node.hasAttribute?.("data-editor-ui-surface")) return true;
69000
+ node = node.parentElement;
69001
+ }
69002
+ return false;
69003
+ }
68986
69004
  const DEFAULT_PAGE_SIZE = { w: 612, h: 792 };
68987
69005
  const DEFAULT_MARGINS = { top: 72, right: 72, bottom: 72, left: 72 };
68988
69006
  const WORD_CHARACTER_REGEX = /[\p{L}\p{N}''_~-]/u;
@@ -71759,39 +71777,49 @@ _PresentationEditor.CURSOR_STYLES = {
71759
71777
  };
71760
71778
  let PresentationEditor = _PresentationEditor;
71761
71779
  class PresentationInputBridge {
71762
- constructor(windowRoot, visibleHost, getTargetDom, onTargetChanged) {
71780
+ constructor(windowRoot, layoutSurface, getTargetDom, onTargetChanged, options) {
71763
71781
  __privateAdd$1(this, _PresentationInputBridge_instances);
71764
71782
  __privateAdd$1(this, _windowRoot);
71765
- __privateAdd$1(this, _visibleHost2);
71783
+ __privateAdd$1(this, _layoutSurfaces);
71766
71784
  __privateAdd$1(this, _getTargetDom);
71767
71785
  __privateAdd$1(this, _onTargetChanged);
71768
71786
  __privateAdd$1(this, _listeners);
71769
71787
  __privateAdd$1(this, _currentTarget, null);
71770
71788
  __privateAdd$1(this, _destroyed, false);
71789
+ __privateAdd$1(this, _useWindowFallback);
71771
71790
  __privateSet(this, _windowRoot, windowRoot);
71772
- __privateSet(this, _visibleHost2, visibleHost);
71791
+ __privateSet(this, _layoutSurfaces, /* @__PURE__ */ new Set([layoutSurface]));
71773
71792
  __privateSet(this, _getTargetDom, getTargetDom);
71774
71793
  __privateSet(this, _onTargetChanged, onTargetChanged);
71775
71794
  __privateSet(this, _listeners, []);
71795
+ __privateSet(this, _useWindowFallback, options?.useWindowFallback ?? false);
71776
71796
  }
71777
71797
  bind() {
71778
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keydown", __privateMethod$1(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), __privateGet$1(this, _windowRoot));
71779
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keypress", __privateMethod$1(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), __privateGet$1(this, _windowRoot));
71780
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keyup", __privateMethod$1(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), __privateGet$1(this, _windowRoot));
71781
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionstart", __privateMethod$1(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), __privateGet$1(this, _windowRoot));
71782
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionupdate", __privateMethod$1(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), __privateGet$1(this, _windowRoot));
71783
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionend", __privateMethod$1(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), __privateGet$1(this, _windowRoot));
71784
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "contextmenu", __privateMethod$1(this, _PresentationInputBridge_instances, forwardContextMenu_fn), __privateGet$1(this, _windowRoot));
71785
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "beforeinput", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), __privateGet$1(this, _visibleHost2));
71786
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "input", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), __privateGet$1(this, _visibleHost2));
71787
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "textInput", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), __privateGet$1(this, _visibleHost2));
71788
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "beforeinput", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), __privateGet$1(this, _windowRoot));
71789
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "input", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), __privateGet$1(this, _windowRoot));
71790
- __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "textInput", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), __privateGet$1(this, _windowRoot));
71798
+ const keyboardTargets = __privateMethod$1(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
71799
+ keyboardTargets.forEach((target) => {
71800
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keydown", __privateMethod$1(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), target);
71801
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keyup", __privateMethod$1(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), target);
71802
+ });
71803
+ const compositionTargets = __privateMethod$1(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
71804
+ compositionTargets.forEach((target) => {
71805
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionstart", __privateMethod$1(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), target);
71806
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionupdate", __privateMethod$1(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), target);
71807
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionend", __privateMethod$1(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), target);
71808
+ });
71809
+ const textTargets = __privateMethod$1(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
71810
+ textTargets.forEach((target) => {
71811
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "beforeinput", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), target);
71812
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "input", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), target);
71813
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "textInput", __privateMethod$1(this, _PresentationInputBridge_instances, forwardTextEvent_fn), target);
71814
+ });
71815
+ const contextTargets = __privateMethod$1(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
71816
+ contextTargets.forEach((target) => {
71817
+ __privateMethod$1(this, _PresentationInputBridge_instances, addListener_fn).call(this, "contextmenu", __privateMethod$1(this, _PresentationInputBridge_instances, forwardContextMenu_fn), target);
71818
+ });
71791
71819
  }
71792
71820
  destroy() {
71793
- __privateGet$1(this, _listeners).forEach(({ type: type2, handler: handler2, target }) => {
71794
- target.removeEventListener(type2, handler2, true);
71821
+ __privateGet$1(this, _listeners).forEach(({ type: type2, handler: handler2, target, useCapture }) => {
71822
+ target.removeEventListener(type2, handler2, useCapture);
71795
71823
  });
71796
71824
  __privateSet(this, _listeners, []);
71797
71825
  __privateSet(this, _currentTarget, null);
@@ -71826,17 +71854,18 @@ class PresentationInputBridge {
71826
71854
  }
71827
71855
  }
71828
71856
  _windowRoot = /* @__PURE__ */ new WeakMap();
71829
- _visibleHost2 = /* @__PURE__ */ new WeakMap();
71857
+ _layoutSurfaces = /* @__PURE__ */ new WeakMap();
71830
71858
  _getTargetDom = /* @__PURE__ */ new WeakMap();
71831
71859
  _onTargetChanged = /* @__PURE__ */ new WeakMap();
71832
71860
  _listeners = /* @__PURE__ */ new WeakMap();
71833
71861
  _currentTarget = /* @__PURE__ */ new WeakMap();
71834
71862
  _destroyed = /* @__PURE__ */ new WeakMap();
71863
+ _useWindowFallback = /* @__PURE__ */ new WeakMap();
71835
71864
  _PresentationInputBridge_instances = /* @__PURE__ */ new WeakSet();
71836
- addListener_fn = function(type2, handler2, target) {
71865
+ addListener_fn = function(type2, handler2, target, useCapture = false) {
71837
71866
  const bound = handler2.bind(this);
71838
- __privateGet$1(this, _listeners).push({ type: type2, handler: bound, target });
71839
- target.addEventListener(type2, bound, true);
71867
+ __privateGet$1(this, _listeners).push({ type: type2, handler: bound, target, useCapture });
71868
+ target.addEventListener(type2, bound, useCapture);
71840
71869
  };
71841
71870
  dispatchToTarget_fn = function(originalEvent, synthetic) {
71842
71871
  if (__privateGet$1(this, _destroyed)) return;
@@ -71857,7 +71886,16 @@ dispatchToTarget_fn = function(originalEvent, synthetic) {
71857
71886
  }
71858
71887
  };
71859
71888
  forwardKeyboardEvent_fn = function(event) {
71860
- if (__privateMethod$1(this, _PresentationInputBridge_instances, isEventOnActiveTarget_fn).call(this, event)) {
71889
+ if (__privateMethod$1(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
71890
+ return;
71891
+ }
71892
+ if (event.defaultPrevented) {
71893
+ return;
71894
+ }
71895
+ if (event.isComposing || event.keyCode === 229) {
71896
+ return;
71897
+ }
71898
+ if (__privateMethod$1(this, _PresentationInputBridge_instances, isPlainCharacterKey_fn).call(this, event)) {
71861
71899
  return;
71862
71900
  }
71863
71901
  const synthetic = new KeyboardEvent(event.type, {
@@ -71875,26 +71913,40 @@ forwardKeyboardEvent_fn = function(event) {
71875
71913
  __privateMethod$1(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
71876
71914
  };
71877
71915
  forwardTextEvent_fn = function(event) {
71878
- if (__privateMethod$1(this, _PresentationInputBridge_instances, isEventOnActiveTarget_fn).call(this, event)) {
71916
+ if (__privateMethod$1(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
71879
71917
  return;
71880
71918
  }
71881
- let synthetic;
71882
- if (typeof InputEvent !== "undefined") {
71883
- synthetic = new InputEvent(event.type, {
71884
- data: event.data ?? event.data ?? null,
71885
- inputType: event.inputType ?? "insertText",
71886
- dataTransfer: event.dataTransfer ?? null,
71887
- isComposing: event.isComposing ?? false,
71888
- bubbles: true,
71889
- cancelable: true
71890
- });
71891
- } else {
71892
- synthetic = new Event(event.type, { bubbles: true, cancelable: true });
71919
+ if (event.defaultPrevented) {
71920
+ return;
71893
71921
  }
71894
- __privateMethod$1(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
71922
+ if (event.isComposing) {
71923
+ return;
71924
+ }
71925
+ queueMicrotask(() => {
71926
+ if (event.defaultPrevented) {
71927
+ return;
71928
+ }
71929
+ let synthetic;
71930
+ if (typeof InputEvent !== "undefined") {
71931
+ synthetic = new InputEvent(event.type, {
71932
+ data: event.data ?? event.data ?? null,
71933
+ inputType: event.inputType ?? "insertText",
71934
+ dataTransfer: event.dataTransfer ?? null,
71935
+ isComposing: event.isComposing ?? false,
71936
+ bubbles: true,
71937
+ cancelable: true
71938
+ });
71939
+ } else {
71940
+ synthetic = new Event(event.type, { bubbles: true, cancelable: true });
71941
+ }
71942
+ __privateMethod$1(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
71943
+ });
71895
71944
  };
71896
71945
  forwardCompositionEvent_fn = function(event) {
71897
- if (__privateMethod$1(this, _PresentationInputBridge_instances, isEventOnActiveTarget_fn).call(this, event)) {
71946
+ if (__privateMethod$1(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
71947
+ return;
71948
+ }
71949
+ if (event.defaultPrevented) {
71898
71950
  return;
71899
71951
  }
71900
71952
  let synthetic;
@@ -71910,7 +71962,10 @@ forwardCompositionEvent_fn = function(event) {
71910
71962
  __privateMethod$1(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
71911
71963
  };
71912
71964
  forwardContextMenu_fn = function(event) {
71913
- if (__privateMethod$1(this, _PresentationInputBridge_instances, isEventOnActiveTarget_fn).call(this, event)) {
71965
+ if (__privateMethod$1(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
71966
+ return;
71967
+ }
71968
+ if (event.defaultPrevented) {
71914
71969
  return;
71915
71970
  }
71916
71971
  const synthetic = new MouseEvent("contextmenu", {
@@ -71944,6 +71999,36 @@ isEventOnActiveTarget_fn = function(event) {
71944
71999
  }
71945
72000
  return false;
71946
72001
  };
72002
+ shouldSkipSurface_fn = function(event) {
72003
+ if (__privateMethod$1(this, _PresentationInputBridge_instances, isEventOnActiveTarget_fn).call(this, event)) {
72004
+ return true;
72005
+ }
72006
+ if (!__privateMethod$1(this, _PresentationInputBridge_instances, isInLayoutSurface_fn).call(this, event)) {
72007
+ return true;
72008
+ }
72009
+ if (isInRegisteredSurface(event)) {
72010
+ return true;
72011
+ }
72012
+ return false;
72013
+ };
72014
+ isInLayoutSurface_fn = function(event) {
72015
+ const path = typeof event.composedPath === "function" ? event.composedPath() : [];
72016
+ if (path.length) {
72017
+ return path.some((node) => __privateGet$1(this, _layoutSurfaces).has(node));
72018
+ }
72019
+ const origin = event.target;
72020
+ return origin ? __privateGet$1(this, _layoutSurfaces).has(origin) : false;
72021
+ };
72022
+ getListenerTargets_fn = function() {
72023
+ const targets = new Set(__privateGet$1(this, _layoutSurfaces));
72024
+ if (__privateGet$1(this, _useWindowFallback)) {
72025
+ targets.add(__privateGet$1(this, _windowRoot));
72026
+ }
72027
+ return Array.from(targets);
72028
+ };
72029
+ isPlainCharacterKey_fn = function(event) {
72030
+ return event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey;
72031
+ };
71947
72032
  const Color = Extension.create({
71948
72033
  name: "color",
71949
72034
  addOptions() {
@@ -100331,7 +100416,8 @@ const _sfc_main$h = {
100331
100416
  class: "superdoc-toolbar",
100332
100417
  key: vue.unref(toolbarKey),
100333
100418
  role: "toolbar",
100334
- "aria-label": "Toolbar"
100419
+ "aria-label": "Toolbar",
100420
+ "data-editor-ui-surface": ""
100335
100421
  }, [
100336
100422
  vue.unref(showLeftSide) ? (vue.openBlock(), vue.createBlock(ButtonGroup, {
100337
100423
  key: 0,
@@ -100363,7 +100449,7 @@ const _sfc_main$h = {
100363
100449
  };
100364
100450
  }
100365
100451
  };
100366
- const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-639f50b4"]]);
100452
+ const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-3f5ec271"]]);
100367
100453
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
100368
100454
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
100369
100455
  async function baseInsightsFetch(payload, options = {}) {
@@ -101375,7 +101461,8 @@ const _sfc_main$e = {
101375
101461
  const DocumentMode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8730b752"]]);
101376
101462
  const _hoisted_1$c = {
101377
101463
  key: 0,
101378
- class: "linked-style-buttons"
101464
+ class: "linked-style-buttons",
101465
+ "data-editor-ui-surface": ""
101379
101466
  };
101380
101467
  const _hoisted_2$8 = ["onClick", "onKeydown", "aria-label"];
101381
101468
  const _sfc_main$d = {
@@ -101454,7 +101541,7 @@ const _sfc_main$d = {
101454
101541
  };
101455
101542
  }
101456
101543
  };
101457
- const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b53508a8"]]);
101544
+ const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ecb78965"]]);
101458
101545
  const _hoisted_1$b = {
101459
101546
  key: 0,
101460
101547
  class: "link-title"
@@ -1 +1 @@
1
- {"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAqBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D,iDAAiD;AACjD,6DAA6D;AAE7D;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IA4ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IAhFD,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,IAAI,EAAE,CACX;IAEN,4CAA4C;IAC5C,MADW,OAAO,KAAK,EAAE,GAAG,GAAG,SAAS,CACnC;IAEL,4EAA4E;IAC5E,UADW,OAAO,sBAAsB,EAAE,kBAAkB,GAAG,SAAS,CAC/D;IAET,qBAAqB;IACrB,QADW,MAAM,CA4Df;IAiDA,wCAA6B;IAC7B,+BAAmB;IAMnB,gBAA+C;IAC/C,6BAAgC;IAchC,yCAA4B;IAE5B,YAAkB;IAElB,2BAAuC;IAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAwB;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display: flex;
661
661
  }
662
662
 
663
- .superdoc-toolbar[data-v-639f50b4] {
663
+ .superdoc-toolbar[data-v-3f5ec271] {
664
664
  display: flex;
665
665
  width: 100%;
666
666
  justify-content: space-between;
@@ -668,12 +668,12 @@ span[data-v-53e13009] {
668
668
  box-sizing: border-box;
669
669
  }
670
670
  @media (max-width: 1280px) {
671
- .superdoc-toolbar-group-side[data-v-639f50b4] {
671
+ .superdoc-toolbar-group-side[data-v-3f5ec271] {
672
672
  min-width: auto !important;
673
673
  }
674
674
  }
675
675
  @media (max-width: 768px) {
676
- .superdoc-toolbar[data-v-639f50b4] {
676
+ .superdoc-toolbar[data-v-3f5ec271] {
677
677
  padding: 4px 10px;
678
678
  justify-content: inherit;
679
679
  }
@@ -1682,13 +1682,13 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1682
1682
  color: #666;
1683
1683
  }
1684
1684
 
1685
- .style-name[data-v-b53508a8] {
1685
+ .style-name[data-v-ecb78965] {
1686
1686
  padding: 16px 10px;
1687
1687
  }
1688
- .style-name[data-v-b53508a8]:hover {
1688
+ .style-name[data-v-ecb78965]:hover {
1689
1689
  background-color: #c8d0d8;
1690
1690
  }
1691
- .linked-style-buttons[data-v-b53508a8] {
1691
+ .linked-style-buttons[data-v-ecb78965] {
1692
1692
  display: flex;
1693
1693
  flex-direction: column;
1694
1694
  width: 100%;
@@ -1699,7 +1699,7 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1699
1699
  margin: 0;
1700
1700
  overflow: auto;
1701
1701
  }
1702
- .button-icon[data-v-b53508a8] {
1702
+ .button-icon[data-v-ecb78965] {
1703
1703
  cursor: pointer;
1704
1704
  padding: 5px;
1705
1705
  font-size: 16px;
@@ -1711,10 +1711,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1711
1711
  align-items: center;
1712
1712
  box-sizing: border-box;
1713
1713
  }
1714
- .button-icon[data-v-b53508a8]:hover {
1714
+ .button-icon[data-v-ecb78965]:hover {
1715
1715
  background-color: #d8dee5;
1716
1716
  }
1717
- .button-icon[data-v-b53508a8] svg {
1717
+ .button-icon[data-v-ecb78965] svg {
1718
1718
  width: 100%;
1719
1719
  height: 100%;
1720
1720
  display: block;
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
2
- import { T as TextSelection } from "./chunks/converter-CZF9SnYh.js";
3
- import { _ as _export_sfc } from "./chunks/editor-BdXHlHt-.js";
2
+ import { T as TextSelection } from "./chunks/converter-BM6gXTRC.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-RPTrfArg.js";
4
4
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
5
5
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
6
6
  async function baseInsightsFetch(payload, options = {}) {
@@ -35844,7 +35844,7 @@ const _SuperConverter = class _SuperConverter {
35844
35844
  static getStoredSuperdocVersion(docx) {
35845
35845
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
35846
35846
  }
35847
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.6") {
35847
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.7") {
35848
35848
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
35849
35849
  }
35850
35850
  /**
@@ -1,4 +1,4 @@
1
- import { p as process$1, aI as commonjsGlobal, B as Buffer, aJ as getDefaultExportFromCjs, aK as getContentTypesFromXml, aL as xmljs } from "./converter-CZF9SnYh.js";
1
+ import { p as process$1, aI as commonjsGlobal, B as Buffer, aJ as getDefaultExportFromCjs, aK as getContentTypesFromXml, aL as xmljs } from "./converter-BM6gXTRC.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
  }