@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.
- package/dist/chunks/{PdfViewer-DmPiOFJ8.cjs → PdfViewer-T4fTm1XF.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CdGAVn-4.es.js → PdfViewer-hAYAlKzI.es.js} +1 -1
- package/dist/chunks/{index-QulG3CF7.cjs → index-CYQjWGo5.cjs} +3 -3
- package/dist/chunks/{index-nXifzD54.es.js → index-DGYP5Xod.es.js} +3 -3
- package/dist/chunks/{index-hjUbJ86s-BMiwCR8J.es.js → index-DV613LhK-BY095UD2.es.js} +1 -1
- package/dist/chunks/{index-hjUbJ86s-BLl65XJn.cjs → index-DV613LhK-CqFLIBmd.cjs} +1 -1
- package/dist/chunks/{super-editor.es-BYVEYLjl.es.js → super-editor.es-CcaD69pQ.es.js} +135 -48
- package/dist/chunks/{super-editor.es-0GatZWs9.cjs → super-editor.es-DmhQckCV.cjs} +135 -48
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +9 -9
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CZF9SnYh.js → converter-BM6gXTRC.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-DWypbE0V.js → docx-zipper-fwXPJGKu.js} +1 -1
- package/dist/super-editor/chunks/{editor-BdXHlHt-.js → editor-RPTrfArg.js} +192 -45
- package/dist/super-editor/chunks/{index-hjUbJ86s.js → index-DV613LhK.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-CmelvLTd.js → toolbar-DacKXz_n.js} +5 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +9 -9
- package/dist/super-editor/super-editor.es.js +9 -8
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +137 -50
- package/dist/superdoc.umd.js.map +1 -1
- 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, _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,
|
|
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, _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;
|
|
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 calculateResolvedParagraphProperties, ar as encodeCSSFromPPr, as as twipsToPixels$2, at as resolveRunProperties, au as encodeCSSFromRPr, av as generateOrderedListIndex, aw as docxNumberingHelpers, ax as InputRule, ay as convertSizeToCSS, az as SelectionRange, aA as Transform, aB as findParentNodeClosestToPos, aC as isInTable$1, aD as generateDocxRandomId, aE as insertNewRelationship, aF as inchesToPixels, aG as kebabCase, aH as getUnderlineCssString } from "./converter-
|
|
16
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
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 calculateResolvedParagraphProperties, ar as encodeCSSFromPPr, as as twipsToPixels$2, at as resolveRunProperties, au as encodeCSSFromRPr, av as generateOrderedListIndex, aw as docxNumberingHelpers, ax as InputRule, ay as convertSizeToCSS, az as SelectionRange, aA as Transform, aB as findParentNodeClosestToPos, aC as isInTable$1, aD as generateDocxRandomId, aE as insertNewRelationship, aF as inchesToPixels, aG as kebabCase, aH as getUnderlineCssString } from "./converter-BM6gXTRC.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-fwXPJGKu.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() {
|
|
@@ -13553,7 +13553,7 @@ const isHeadless = (editor) => {
|
|
|
13553
13553
|
const shouldSkipNodeView = (editor) => {
|
|
13554
13554
|
return isHeadless(editor);
|
|
13555
13555
|
};
|
|
13556
|
-
const summaryVersion = "1.0.0-beta.
|
|
13556
|
+
const summaryVersion = "1.0.0-beta.7";
|
|
13557
13557
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
13558
13558
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
13559
13559
|
function mapAttributes(attrs) {
|
|
@@ -14335,7 +14335,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14335
14335
|
{ default: remarkStringify },
|
|
14336
14336
|
{ default: remarkGfm }
|
|
14337
14337
|
] = await Promise.all([
|
|
14338
|
-
import("./index-
|
|
14338
|
+
import("./index-DV613LhK.js"),
|
|
14339
14339
|
import("./index-DRCvimau.js"),
|
|
14340
14340
|
import("./index-C_x_N6Uh.js"),
|
|
14341
14341
|
import("./index-D_sWOSiG.js"),
|
|
@@ -14540,7 +14540,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14540
14540
|
* Process collaboration migrations
|
|
14541
14541
|
*/
|
|
14542
14542
|
processCollaborationMigrations() {
|
|
14543
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
14543
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.7");
|
|
14544
14544
|
if (!this.options.ydoc) return;
|
|
14545
14545
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14546
14546
|
let docVersion = metaMap.get("version");
|
|
@@ -30393,6 +30393,24 @@ getConverterContext_fn = function() {
|
|
|
30393
30393
|
}
|
|
30394
30394
|
return Object.keys(context).length > 0 ? context : void 0;
|
|
30395
30395
|
};
|
|
30396
|
+
const uiSurfaces = /* @__PURE__ */ new WeakSet();
|
|
30397
|
+
function isInRegisteredSurface(event) {
|
|
30398
|
+
const path = typeof event.composedPath === "function" ? event.composedPath() : [];
|
|
30399
|
+
if (path.length > 0) {
|
|
30400
|
+
for (const node2 of path) {
|
|
30401
|
+
if (uiSurfaces.has(node2)) return true;
|
|
30402
|
+
if (node2?.hasAttribute?.("data-editor-ui-surface")) return true;
|
|
30403
|
+
}
|
|
30404
|
+
return false;
|
|
30405
|
+
}
|
|
30406
|
+
let node = event.target;
|
|
30407
|
+
while (node) {
|
|
30408
|
+
if (uiSurfaces.has(node)) return true;
|
|
30409
|
+
if (node.hasAttribute?.("data-editor-ui-surface")) return true;
|
|
30410
|
+
node = node.parentElement;
|
|
30411
|
+
}
|
|
30412
|
+
return false;
|
|
30413
|
+
}
|
|
30396
30414
|
const DEFAULT_PAGE_SIZE = { w: 612, h: 792 };
|
|
30397
30415
|
const DEFAULT_MARGINS = { top: 72, right: 72, bottom: 72, left: 72 };
|
|
30398
30416
|
const WORD_CHARACTER_REGEX = /[\p{L}\p{N}''_~-]/u;
|
|
@@ -33369,39 +33387,49 @@ _PresentationEditor.CURSOR_STYLES = {
|
|
|
33369
33387
|
};
|
|
33370
33388
|
let PresentationEditor = _PresentationEditor;
|
|
33371
33389
|
class PresentationInputBridge {
|
|
33372
|
-
constructor(windowRoot,
|
|
33390
|
+
constructor(windowRoot, layoutSurface, getTargetDom, onTargetChanged, options) {
|
|
33373
33391
|
__privateAdd(this, _PresentationInputBridge_instances);
|
|
33374
33392
|
__privateAdd(this, _windowRoot);
|
|
33375
|
-
__privateAdd(this,
|
|
33393
|
+
__privateAdd(this, _layoutSurfaces);
|
|
33376
33394
|
__privateAdd(this, _getTargetDom);
|
|
33377
33395
|
__privateAdd(this, _onTargetChanged);
|
|
33378
33396
|
__privateAdd(this, _listeners);
|
|
33379
33397
|
__privateAdd(this, _currentTarget, null);
|
|
33380
33398
|
__privateAdd(this, _destroyed, false);
|
|
33399
|
+
__privateAdd(this, _useWindowFallback);
|
|
33381
33400
|
__privateSet(this, _windowRoot, windowRoot);
|
|
33382
|
-
__privateSet(this,
|
|
33401
|
+
__privateSet(this, _layoutSurfaces, /* @__PURE__ */ new Set([layoutSurface]));
|
|
33383
33402
|
__privateSet(this, _getTargetDom, getTargetDom);
|
|
33384
33403
|
__privateSet(this, _onTargetChanged, onTargetChanged);
|
|
33385
33404
|
__privateSet(this, _listeners, []);
|
|
33405
|
+
__privateSet(this, _useWindowFallback, options?.useWindowFallback ?? false);
|
|
33386
33406
|
}
|
|
33387
33407
|
bind() {
|
|
33388
|
-
|
|
33389
|
-
|
|
33390
|
-
|
|
33391
|
-
|
|
33392
|
-
|
|
33393
|
-
|
|
33394
|
-
|
|
33395
|
-
|
|
33396
|
-
|
|
33397
|
-
|
|
33398
|
-
|
|
33399
|
-
|
|
33400
|
-
|
|
33408
|
+
const keyboardTargets = __privateMethod(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
|
|
33409
|
+
keyboardTargets.forEach((target) => {
|
|
33410
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keydown", __privateMethod(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), target);
|
|
33411
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "keyup", __privateMethod(this, _PresentationInputBridge_instances, forwardKeyboardEvent_fn), target);
|
|
33412
|
+
});
|
|
33413
|
+
const compositionTargets = __privateMethod(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
|
|
33414
|
+
compositionTargets.forEach((target) => {
|
|
33415
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionstart", __privateMethod(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), target);
|
|
33416
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionupdate", __privateMethod(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), target);
|
|
33417
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "compositionend", __privateMethod(this, _PresentationInputBridge_instances, forwardCompositionEvent_fn), target);
|
|
33418
|
+
});
|
|
33419
|
+
const textTargets = __privateMethod(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
|
|
33420
|
+
textTargets.forEach((target) => {
|
|
33421
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "beforeinput", __privateMethod(this, _PresentationInputBridge_instances, forwardTextEvent_fn), target);
|
|
33422
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "input", __privateMethod(this, _PresentationInputBridge_instances, forwardTextEvent_fn), target);
|
|
33423
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "textInput", __privateMethod(this, _PresentationInputBridge_instances, forwardTextEvent_fn), target);
|
|
33424
|
+
});
|
|
33425
|
+
const contextTargets = __privateMethod(this, _PresentationInputBridge_instances, getListenerTargets_fn).call(this);
|
|
33426
|
+
contextTargets.forEach((target) => {
|
|
33427
|
+
__privateMethod(this, _PresentationInputBridge_instances, addListener_fn).call(this, "contextmenu", __privateMethod(this, _PresentationInputBridge_instances, forwardContextMenu_fn), target);
|
|
33428
|
+
});
|
|
33401
33429
|
}
|
|
33402
33430
|
destroy() {
|
|
33403
|
-
__privateGet(this, _listeners).forEach(({ type, handler, target }) => {
|
|
33404
|
-
target.removeEventListener(type, handler,
|
|
33431
|
+
__privateGet(this, _listeners).forEach(({ type, handler, target, useCapture }) => {
|
|
33432
|
+
target.removeEventListener(type, handler, useCapture);
|
|
33405
33433
|
});
|
|
33406
33434
|
__privateSet(this, _listeners, []);
|
|
33407
33435
|
__privateSet(this, _currentTarget, null);
|
|
@@ -33436,17 +33464,18 @@ class PresentationInputBridge {
|
|
|
33436
33464
|
}
|
|
33437
33465
|
}
|
|
33438
33466
|
_windowRoot = new WeakMap();
|
|
33439
|
-
|
|
33467
|
+
_layoutSurfaces = new WeakMap();
|
|
33440
33468
|
_getTargetDom = new WeakMap();
|
|
33441
33469
|
_onTargetChanged = new WeakMap();
|
|
33442
33470
|
_listeners = new WeakMap();
|
|
33443
33471
|
_currentTarget = new WeakMap();
|
|
33444
33472
|
_destroyed = new WeakMap();
|
|
33473
|
+
_useWindowFallback = new WeakMap();
|
|
33445
33474
|
_PresentationInputBridge_instances = new WeakSet();
|
|
33446
|
-
addListener_fn = function(type, handler, target) {
|
|
33475
|
+
addListener_fn = function(type, handler, target, useCapture = false) {
|
|
33447
33476
|
const bound = handler.bind(this);
|
|
33448
|
-
__privateGet(this, _listeners).push({ type, handler: bound, target });
|
|
33449
|
-
target.addEventListener(type, bound,
|
|
33477
|
+
__privateGet(this, _listeners).push({ type, handler: bound, target, useCapture });
|
|
33478
|
+
target.addEventListener(type, bound, useCapture);
|
|
33450
33479
|
};
|
|
33451
33480
|
dispatchToTarget_fn = function(originalEvent, synthetic) {
|
|
33452
33481
|
if (__privateGet(this, _destroyed)) return;
|
|
@@ -33466,8 +33495,24 @@ dispatchToTarget_fn = function(originalEvent, synthetic) {
|
|
|
33466
33495
|
}
|
|
33467
33496
|
}
|
|
33468
33497
|
};
|
|
33498
|
+
/**
|
|
33499
|
+
* Forwards keyboard events to the hidden editor, skipping IME composition events
|
|
33500
|
+
* and plain character keys (which are handled by beforeinput instead).
|
|
33501
|
+
* Uses microtask deferral to allow other handlers to preventDefault first.
|
|
33502
|
+
*
|
|
33503
|
+
* @param event - The keyboard event from the layout surface
|
|
33504
|
+
*/
|
|
33469
33505
|
forwardKeyboardEvent_fn = function(event) {
|
|
33470
|
-
if (__privateMethod(this, _PresentationInputBridge_instances,
|
|
33506
|
+
if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
|
|
33507
|
+
return;
|
|
33508
|
+
}
|
|
33509
|
+
if (event.defaultPrevented) {
|
|
33510
|
+
return;
|
|
33511
|
+
}
|
|
33512
|
+
if (event.isComposing || event.keyCode === 229) {
|
|
33513
|
+
return;
|
|
33514
|
+
}
|
|
33515
|
+
if (__privateMethod(this, _PresentationInputBridge_instances, isPlainCharacterKey_fn).call(this, event)) {
|
|
33471
33516
|
return;
|
|
33472
33517
|
}
|
|
33473
33518
|
const synthetic = new KeyboardEvent(event.type, {
|
|
@@ -33484,27 +33529,53 @@ forwardKeyboardEvent_fn = function(event) {
|
|
|
33484
33529
|
});
|
|
33485
33530
|
__privateMethod(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
|
|
33486
33531
|
};
|
|
33532
|
+
/**
|
|
33533
|
+
* Forwards text input events (beforeinput) to the hidden editor.
|
|
33534
|
+
* Skips composition events and uses microtask deferral for cooperative handling.
|
|
33535
|
+
*
|
|
33536
|
+
* @param event - The input event from the layout surface
|
|
33537
|
+
*/
|
|
33487
33538
|
forwardTextEvent_fn = function(event) {
|
|
33488
|
-
if (__privateMethod(this, _PresentationInputBridge_instances,
|
|
33539
|
+
if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
|
|
33489
33540
|
return;
|
|
33490
33541
|
}
|
|
33491
|
-
|
|
33492
|
-
|
|
33493
|
-
synthetic = new InputEvent(event.type, {
|
|
33494
|
-
data: event.data ?? event.data ?? null,
|
|
33495
|
-
inputType: event.inputType ?? "insertText",
|
|
33496
|
-
dataTransfer: event.dataTransfer ?? null,
|
|
33497
|
-
isComposing: event.isComposing ?? false,
|
|
33498
|
-
bubbles: true,
|
|
33499
|
-
cancelable: true
|
|
33500
|
-
});
|
|
33501
|
-
} else {
|
|
33502
|
-
synthetic = new Event(event.type, { bubbles: true, cancelable: true });
|
|
33542
|
+
if (event.defaultPrevented) {
|
|
33543
|
+
return;
|
|
33503
33544
|
}
|
|
33504
|
-
|
|
33545
|
+
if (event.isComposing) {
|
|
33546
|
+
return;
|
|
33547
|
+
}
|
|
33548
|
+
queueMicrotask(() => {
|
|
33549
|
+
if (event.defaultPrevented) {
|
|
33550
|
+
return;
|
|
33551
|
+
}
|
|
33552
|
+
let synthetic;
|
|
33553
|
+
if (typeof InputEvent !== "undefined") {
|
|
33554
|
+
synthetic = new InputEvent(event.type, {
|
|
33555
|
+
data: event.data ?? event.data ?? null,
|
|
33556
|
+
inputType: event.inputType ?? "insertText",
|
|
33557
|
+
dataTransfer: event.dataTransfer ?? null,
|
|
33558
|
+
isComposing: event.isComposing ?? false,
|
|
33559
|
+
bubbles: true,
|
|
33560
|
+
cancelable: true
|
|
33561
|
+
});
|
|
33562
|
+
} else {
|
|
33563
|
+
synthetic = new Event(event.type, { bubbles: true, cancelable: true });
|
|
33564
|
+
}
|
|
33565
|
+
__privateMethod(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
|
|
33566
|
+
});
|
|
33505
33567
|
};
|
|
33568
|
+
/**
|
|
33569
|
+
* Forwards composition events (compositionstart, compositionupdate, compositionend)
|
|
33570
|
+
* to the hidden editor for IME input handling.
|
|
33571
|
+
*
|
|
33572
|
+
* @param event - The composition event from the layout surface
|
|
33573
|
+
*/
|
|
33506
33574
|
forwardCompositionEvent_fn = function(event) {
|
|
33507
|
-
if (__privateMethod(this, _PresentationInputBridge_instances,
|
|
33575
|
+
if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
|
|
33576
|
+
return;
|
|
33577
|
+
}
|
|
33578
|
+
if (event.defaultPrevented) {
|
|
33508
33579
|
return;
|
|
33509
33580
|
}
|
|
33510
33581
|
let synthetic;
|
|
@@ -33519,8 +33590,16 @@ forwardCompositionEvent_fn = function(event) {
|
|
|
33519
33590
|
}
|
|
33520
33591
|
__privateMethod(this, _PresentationInputBridge_instances, dispatchToTarget_fn).call(this, event, synthetic);
|
|
33521
33592
|
};
|
|
33593
|
+
/**
|
|
33594
|
+
* Forwards context menu events to the hidden editor.
|
|
33595
|
+
*
|
|
33596
|
+
* @param event - The context menu event from the layout surface
|
|
33597
|
+
*/
|
|
33522
33598
|
forwardContextMenu_fn = function(event) {
|
|
33523
|
-
if (__privateMethod(this, _PresentationInputBridge_instances,
|
|
33599
|
+
if (__privateMethod(this, _PresentationInputBridge_instances, shouldSkipSurface_fn).call(this, event)) {
|
|
33600
|
+
return;
|
|
33601
|
+
}
|
|
33602
|
+
if (event.defaultPrevented) {
|
|
33524
33603
|
return;
|
|
33525
33604
|
}
|
|
33526
33605
|
const synthetic = new MouseEvent("contextmenu", {
|
|
@@ -33554,6 +33633,74 @@ isEventOnActiveTarget_fn = function(event) {
|
|
|
33554
33633
|
}
|
|
33555
33634
|
return false;
|
|
33556
33635
|
};
|
|
33636
|
+
/**
|
|
33637
|
+
* Determines if an event originated from a UI surface that should be excluded
|
|
33638
|
+
* from keyboard forwarding (e.g., toolbars, dropdowns).
|
|
33639
|
+
*
|
|
33640
|
+
* Checks three conditions in order:
|
|
33641
|
+
* 1. Event is already on the active target (hidden editor) - skip to prevent loops
|
|
33642
|
+
* 2. Event is not in a layout surface - skip non-editor events
|
|
33643
|
+
* 3. Event is in a registered UI surface - skip toolbar/dropdown events
|
|
33644
|
+
*
|
|
33645
|
+
* @param event - The event to check
|
|
33646
|
+
* @returns true if the event should be skipped, false if it should be forwarded
|
|
33647
|
+
*/
|
|
33648
|
+
shouldSkipSurface_fn = function(event) {
|
|
33649
|
+
if (__privateMethod(this, _PresentationInputBridge_instances, isEventOnActiveTarget_fn).call(this, event)) {
|
|
33650
|
+
return true;
|
|
33651
|
+
}
|
|
33652
|
+
if (!__privateMethod(this, _PresentationInputBridge_instances, isInLayoutSurface_fn).call(this, event)) {
|
|
33653
|
+
return true;
|
|
33654
|
+
}
|
|
33655
|
+
if (isInRegisteredSurface(event)) {
|
|
33656
|
+
return true;
|
|
33657
|
+
}
|
|
33658
|
+
return false;
|
|
33659
|
+
};
|
|
33660
|
+
/**
|
|
33661
|
+
* Checks if an event originated within a layout surface by walking the
|
|
33662
|
+
* event's composed path. Falls back to checking event.target directly
|
|
33663
|
+
* if composedPath is unavailable.
|
|
33664
|
+
*
|
|
33665
|
+
* @param event - The event to check
|
|
33666
|
+
* @returns true if event originated in a layout surface
|
|
33667
|
+
*/
|
|
33668
|
+
isInLayoutSurface_fn = function(event) {
|
|
33669
|
+
const path = typeof event.composedPath === "function" ? event.composedPath() : [];
|
|
33670
|
+
if (path.length) {
|
|
33671
|
+
return path.some((node) => __privateGet(this, _layoutSurfaces).has(node));
|
|
33672
|
+
}
|
|
33673
|
+
const origin = event.target;
|
|
33674
|
+
return origin ? __privateGet(this, _layoutSurfaces).has(origin) : false;
|
|
33675
|
+
};
|
|
33676
|
+
/**
|
|
33677
|
+
* Returns the set of event targets to attach listeners to.
|
|
33678
|
+
* Includes registered layout surfaces and optionally the window for fallback.
|
|
33679
|
+
*
|
|
33680
|
+
* @returns Set of EventTargets for listener attachment
|
|
33681
|
+
*/
|
|
33682
|
+
getListenerTargets_fn = function() {
|
|
33683
|
+
const targets = new Set(__privateGet(this, _layoutSurfaces));
|
|
33684
|
+
if (__privateGet(this, _useWindowFallback)) {
|
|
33685
|
+
targets.add(__privateGet(this, _windowRoot));
|
|
33686
|
+
}
|
|
33687
|
+
return Array.from(targets);
|
|
33688
|
+
};
|
|
33689
|
+
/**
|
|
33690
|
+
* Determines if a keyboard event represents a plain character key without
|
|
33691
|
+
* modifiers. Plain character keys are filtered out because they should be
|
|
33692
|
+
* handled by the beforeinput event instead to avoid double-handling.
|
|
33693
|
+
*
|
|
33694
|
+
* Note: Shift is intentionally not considered a modifier here since
|
|
33695
|
+
* Shift+character produces a different character (e.g., uppercase) that
|
|
33696
|
+
* should still go through beforeinput.
|
|
33697
|
+
*
|
|
33698
|
+
* @param event - The keyboard event to check
|
|
33699
|
+
* @returns true if event is a single character without Ctrl/Meta/Alt modifiers
|
|
33700
|
+
*/
|
|
33701
|
+
isPlainCharacterKey_fn = function(event) {
|
|
33702
|
+
return event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey;
|
|
33703
|
+
};
|
|
33557
33704
|
const Color = Extension.create({
|
|
33558
33705
|
name: "color",
|
|
33559
33706
|
addOptions() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, 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-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-BM6gXTRC.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-RPTrfArg.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -10123,7 +10123,8 @@ const _sfc_main = {
|
|
|
10123
10123
|
class: "superdoc-toolbar",
|
|
10124
10124
|
key: unref(toolbarKey),
|
|
10125
10125
|
role: "toolbar",
|
|
10126
|
-
"aria-label": "Toolbar"
|
|
10126
|
+
"aria-label": "Toolbar",
|
|
10127
|
+
"data-editor-ui-surface": ""
|
|
10127
10128
|
}, [
|
|
10128
10129
|
unref(showLeftSide) ? (openBlock(), createBlock(ButtonGroup, {
|
|
10129
10130
|
key: 0,
|
|
@@ -10155,7 +10156,7 @@ const _sfc_main = {
|
|
|
10155
10156
|
};
|
|
10156
10157
|
}
|
|
10157
10158
|
};
|
|
10158
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
10159
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f5ec271"]]);
|
|
10159
10160
|
export {
|
|
10160
10161
|
NSkeleton as N,
|
|
10161
10162
|
Toolbar as T,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-RPTrfArg.js";
|
|
2
|
+
import "./chunks/converter-BM6gXTRC.js";
|
|
3
|
+
import "./chunks/docx-zipper-fwXPJGKu.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
display: flex;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
.superdoc-toolbar[data-v-
|
|
289
|
+
.superdoc-toolbar[data-v-3f5ec271] {
|
|
290
290
|
display: flex;
|
|
291
291
|
width: 100%;
|
|
292
292
|
justify-content: space-between;
|
|
@@ -294,12 +294,12 @@
|
|
|
294
294
|
box-sizing: border-box;
|
|
295
295
|
}
|
|
296
296
|
@media (max-width: 1280px) {
|
|
297
|
-
.superdoc-toolbar-group-side[data-v-
|
|
297
|
+
.superdoc-toolbar-group-side[data-v-3f5ec271] {
|
|
298
298
|
min-width: auto !important;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
@media (max-width: 768px) {
|
|
302
|
-
.superdoc-toolbar[data-v-
|
|
302
|
+
.superdoc-toolbar[data-v-3f5ec271] {
|
|
303
303
|
padding: 4px 10px;
|
|
304
304
|
justify-content: inherit;
|
|
305
305
|
}
|
|
@@ -1308,13 +1308,13 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1308
1308
|
color: #666;
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
|
-
.style-name[data-v-
|
|
1311
|
+
.style-name[data-v-ecb78965] {
|
|
1312
1312
|
padding: 16px 10px;
|
|
1313
1313
|
}
|
|
1314
|
-
.style-name[data-v-
|
|
1314
|
+
.style-name[data-v-ecb78965]:hover {
|
|
1315
1315
|
background-color: #c8d0d8;
|
|
1316
1316
|
}
|
|
1317
|
-
.linked-style-buttons[data-v-
|
|
1317
|
+
.linked-style-buttons[data-v-ecb78965] {
|
|
1318
1318
|
display: flex;
|
|
1319
1319
|
flex-direction: column;
|
|
1320
1320
|
width: 100%;
|
|
@@ -1325,7 +1325,7 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1325
1325
|
margin: 0;
|
|
1326
1326
|
overflow: auto;
|
|
1327
1327
|
}
|
|
1328
|
-
.button-icon[data-v-
|
|
1328
|
+
.button-icon[data-v-ecb78965] {
|
|
1329
1329
|
cursor: pointer;
|
|
1330
1330
|
padding: 5px;
|
|
1331
1331
|
font-size: 16px;
|
|
@@ -1337,10 +1337,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1337
1337
|
align-items: center;
|
|
1338
1338
|
box-sizing: border-box;
|
|
1339
1339
|
}
|
|
1340
|
-
.button-icon[data-v-
|
|
1340
|
+
.button-icon[data-v-ecb78965]:hover {
|
|
1341
1341
|
background-color: #d8dee5;
|
|
1342
1342
|
}
|
|
1343
|
-
.button-icon[data-v-
|
|
1343
|
+
.button-icon[data-v-ecb78965] svg {
|
|
1344
1344
|
width: 100%;
|
|
1345
1345
|
height: 100%;
|
|
1346
1346
|
display: block;
|
|
@@ -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 { aJ as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aM as vClickOutside, aN as getActiveFormatting, aC as isInTable, U as findParentNode, aq as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aO as getFileObject, aP as translator, aQ as translator$1, aR as translator$2, aS as translator$3, aT as translator$4, aU as translator$5, aV as translator$6, aW as translator$7, aX as translator$8, aY as translator$9, aZ as translator$a, a_ as translator$b, a$ as translator$c, b0 as translator$d, b1 as translator$e, b2 as commentRangeEndTranslator, b3 as commentRangeStartTranslator, b4 as translator$f, b5 as translator$g, b6 as translator$h, b7 as translator$i, b8 as translator$j, b9 as translator$k, ba as translator$l, bb as translator$m, bc as translator$n, bd as translator$o, be as translator$p, bf as translator$q, bg as translator$r, bh as translator$s, bi as translator$t, bj as translator$u, bk as translator$v, bl as translator$w, bm as translator$x, bn as translator$y, bo as translator$z, bp as translator$A, bq as translator$B, br as translator$C, bs as translator$D, bt as translator$E, bu as translator$F, bv as translator$G, bw as translator$H, bx as translator$I, by as translator$J, bz as translator$K, bA as translator$L, bB as translator$M, bC as translator$N, bD as translator$O, bE as translator$P, bF as translator$Q, bG as translator$R, bH as translator$S, bI as translator$T, bJ as translator$U, bK as translator$V, bL as translator$W, bM as translator$X, bN as translator$Y, bO as translator$Z, bP as translator$_, bQ as translator$$, bR as translator$10, bS as translator$11, bT as translator$12, bU as translator$13, bV as translator$14, bW as translator$15, bX as translator$16, bY as translator$17, bZ as translator$18, b_ as translator$19, b$ as translator$1a, c0 as translator$1b, c1 as translator$1c, c2 as translator$1d, c3 as translator$1e, c4 as translator$1f, c5 as translator$1g, c6 as translator$1h, c7 as translator$1i, c8 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ac, i, a9 } from "./chunks/converter-
|
|
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-
|
|
15
|
-
import { z, F, B, T, w, C, x } from "./chunks/editor-
|
|
12
|
+
import { aJ as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aM as vClickOutside, aN as getActiveFormatting, aC as isInTable, U as findParentNode, aq as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aO as getFileObject, aP as translator, aQ as translator$1, aR as translator$2, aS as translator$3, aT as translator$4, aU as translator$5, aV as translator$6, aW as translator$7, aX as translator$8, aY as translator$9, aZ as translator$a, a_ as translator$b, a$ as translator$c, b0 as translator$d, b1 as translator$e, b2 as commentRangeEndTranslator, b3 as commentRangeStartTranslator, b4 as translator$f, b5 as translator$g, b6 as translator$h, b7 as translator$i, b8 as translator$j, b9 as translator$k, ba as translator$l, bb as translator$m, bc as translator$n, bd as translator$o, be as translator$p, bf as translator$q, bg as translator$r, bh as translator$s, bi as translator$t, bj as translator$u, bk as translator$v, bl as translator$w, bm as translator$x, bn as translator$y, bo as translator$z, bp as translator$A, bq as translator$B, br as translator$C, bs as translator$D, bt as translator$E, bu as translator$F, bv as translator$G, bw as translator$H, bx as translator$I, by as translator$J, bz as translator$K, bA as translator$L, bB as translator$M, bC as translator$N, bD as translator$O, bE as translator$P, bF as translator$Q, bG as translator$R, bH as translator$S, bI as translator$T, bJ as translator$U, bK as translator$V, bL as translator$W, bM as translator$X, bN as translator$Y, bO as translator$Z, bP as translator$_, bQ as translator$$, bR as translator$10, bS as translator$11, bT as translator$12, bU as translator$13, bV as translator$14, bW as translator$15, bX as translator$16, bY as translator$17, bZ as translator$18, b_ as translator$19, b$ as translator$1a, c0 as translator$1b, c1 as translator$1c, c2 as translator$1d, c3 as translator$1e, c4 as translator$1f, c5 as translator$1g, c6 as translator$1h, c7 as translator$1i, c8 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-BM6gXTRC.js";
|
|
13
|
+
import { ac, i, a9 } from "./chunks/converter-BM6gXTRC.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-RPTrfArg.js";
|
|
15
|
+
import { z, F, B, T, w, C, x } from "./chunks/editor-RPTrfArg.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, 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-
|
|
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-DacKXz_n.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-fwXPJGKu.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -493,7 +493,8 @@ const _sfc_main$e = {
|
|
|
493
493
|
const DocumentMode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8730b752"]]);
|
|
494
494
|
const _hoisted_1$c = {
|
|
495
495
|
key: 0,
|
|
496
|
-
class: "linked-style-buttons"
|
|
496
|
+
class: "linked-style-buttons",
|
|
497
|
+
"data-editor-ui-surface": ""
|
|
497
498
|
};
|
|
498
499
|
const _hoisted_2$8 = ["onClick", "onKeydown", "aria-label"];
|
|
499
500
|
const _sfc_main$d = {
|
|
@@ -572,7 +573,7 @@ const _sfc_main$d = {
|
|
|
572
573
|
};
|
|
573
574
|
}
|
|
574
575
|
};
|
|
575
|
-
const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
576
|
+
const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ecb78965"]]);
|
|
576
577
|
const _hoisted_1$b = {
|
|
577
578
|
key: 0,
|
|
578
579
|
class: "link-title"
|
package/dist/super-editor.cjs
CHANGED
|
@@ -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-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-DmhQckCV.cjs");
|
|
4
4
|
require("./chunks/vue-ARQSyfaw.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -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-
|
|
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-CcaD69pQ.es.js";
|
|
2
2
|
import "./chunks/vue-CztqUvm1.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-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-DmhQckCV.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-CYQjWGo5.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;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-CcaD69pQ.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-DGYP5Xod.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|