@harbour-enterprises/superdoc 1.0.0-beta.28 → 1.0.0-beta.29
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-B7Hq0aBG.cjs → PdfViewer-DWBkw4lb.cjs} +1 -1
- package/dist/chunks/{PdfViewer-5NaTJwvl.es.js → PdfViewer-tNr66QJz.es.js} +1 -1
- package/dist/chunks/{index-CLV7-rJY-i5JVHTCR.es.js → index-C-fdgXvG-CG001xE6.es.js} +1 -1
- package/dist/chunks/{index-CLV7-rJY-C4coR32S.cjs → index-C-fdgXvG-CIkJMNA_.cjs} +1 -1
- package/dist/chunks/{index-W4KMCYbF.es.js → index-C6yeAWhT.es.js} +3 -4
- package/dist/chunks/{index-CQPftiv3.cjs → index-DDwDzZCu.cjs} +3 -4
- package/dist/chunks/{super-editor.es-DR7G4vGz.cjs → super-editor.es-CbWugsqL.cjs} +200 -61
- package/dist/chunks/{super-editor.es-D4MMQONw.es.js → super-editor.es-DUQSn16o.es.js} +200 -61
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DCpgxLLA.js → converter-GXPldmlh.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BvQShjmj.js → docx-zipper-D7QUJRNp.js} +1 -1
- package/dist/super-editor/chunks/{editor-Df43-j5L.js → editor-DaDga3Ye.js} +201 -62
- package/dist/super-editor/chunks/{index-CLV7-rJY.js → index-C-fdgXvG.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DCnKrmbU.js → toolbar-DjueghNO.js} +2 -2
- 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/super-editor.es.js +6 -6
- 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 +202 -64
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, dispatchWithFallback_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, getPluginKeyName_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _map, _editor2, _descriptors, _collections, _editorEntries, _maxCachedEditors, _editorAccessOrder, _pendingCreations, _cacheHits, _cacheMisses, _evictions, _HeaderFooterEditorManager_instances, hasConverter_fn, extractCollections_fn, collectDescriptors_fn, teardownMissingEditors_fn, teardownEditors_fn, createEditor_fn, createEditorContainer_fn, registerConverterEditor_fn, unregisterConverterEditor_fn, updateAccessOrder_fn, enforceCacheSizeLimit_fn, _manager, _mediaFiles, _blockCache, _HeaderFooterLayoutAdapter_instances, getBlocks_fn, getConverterContext_fn, _selectionOverlay, _activeEditorHost, _activeDecorationContainer, _activeRegion, _borderLine, _dimmingOverlay, _EditorOverlayManager_instances, findDecorationContainer_fn, ensureEditorHost_fn, positionEditorHost_fn, hideDimmingOverlay_fn, showHeaderFooterBorder_fn, hideHeaderFooterBorder_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay2, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _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 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-
|
|
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 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-GXPldmlh.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-D7QUJRNp.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() {
|
|
@@ -13913,7 +13913,7 @@ const isHeadless = (editor) => {
|
|
|
13913
13913
|
const shouldSkipNodeView = (editor) => {
|
|
13914
13914
|
return isHeadless(editor);
|
|
13915
13915
|
};
|
|
13916
|
-
const summaryVersion = "1.0.0-beta.
|
|
13916
|
+
const summaryVersion = "1.0.0-beta.29";
|
|
13917
13917
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
13918
13918
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
13919
13919
|
function mapAttributes(attrs) {
|
|
@@ -14705,7 +14705,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14705
14705
|
{ default: remarkStringify },
|
|
14706
14706
|
{ default: remarkGfm }
|
|
14707
14707
|
] = await Promise.all([
|
|
14708
|
-
import("./index-
|
|
14708
|
+
import("./index-C-fdgXvG.js"),
|
|
14709
14709
|
import("./index-DRCvimau.js"),
|
|
14710
14710
|
import("./index-C_x_N6Uh.js"),
|
|
14711
14711
|
import("./index-D_sWOSiG.js"),
|
|
@@ -14910,7 +14910,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14910
14910
|
* Process collaboration migrations
|
|
14911
14911
|
*/
|
|
14912
14912
|
processCollaborationMigrations() {
|
|
14913
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
14913
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.29");
|
|
14914
14914
|
if (!this.options.ydoc) return;
|
|
14915
14915
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14916
14916
|
let docVersion = metaMap.get("version");
|
|
@@ -15867,7 +15867,8 @@ function publishSectionMetadata(sectionRanges, options) {
|
|
|
15867
15867
|
sectionIndex: section.sectionIndex,
|
|
15868
15868
|
headerRefs: section.headerRefs,
|
|
15869
15869
|
footerRefs: section.footerRefs,
|
|
15870
|
-
numbering: section.numbering
|
|
15870
|
+
numbering: section.numbering,
|
|
15871
|
+
titlePg: section.titlePg
|
|
15871
15872
|
});
|
|
15872
15873
|
});
|
|
15873
15874
|
}
|
|
@@ -17026,6 +17027,7 @@ const DEFAULT_HYPERLINK_CONFIG = {
|
|
|
17026
17027
|
enableRichHyperlinks: false
|
|
17027
17028
|
};
|
|
17028
17029
|
const applyMarksToRun = (run, marks, hyperlinkConfig = DEFAULT_HYPERLINK_CONFIG, themeColors) => {
|
|
17030
|
+
const isTabRun2 = run.kind === "tab";
|
|
17029
17031
|
marks.forEach((mark) => {
|
|
17030
17032
|
const forwardedDataAttrs = extractDataAttributes(mark.attrs);
|
|
17031
17033
|
try {
|
|
@@ -17058,11 +17060,15 @@ const applyMarksToRun = (run, marks, hyperlinkConfig = DEFAULT_HYPERLINK_CONFIG,
|
|
|
17058
17060
|
break;
|
|
17059
17061
|
}
|
|
17060
17062
|
case "textStyle":
|
|
17061
|
-
|
|
17063
|
+
if (!isTabRun2) {
|
|
17064
|
+
applyTextStyleMark(run, mark.attrs ?? {}, themeColors);
|
|
17065
|
+
}
|
|
17062
17066
|
break;
|
|
17063
17067
|
case "commentMark":
|
|
17064
17068
|
case "comment": {
|
|
17065
|
-
|
|
17069
|
+
if (!isTabRun2) {
|
|
17070
|
+
pushCommentAnnotation(run, mark.attrs ?? {});
|
|
17071
|
+
}
|
|
17066
17072
|
break;
|
|
17067
17073
|
}
|
|
17068
17074
|
case "underline": {
|
|
@@ -17089,31 +17095,33 @@ const applyMarksToRun = (run, marks, hyperlinkConfig = DEFAULT_HYPERLINK_CONFIG,
|
|
|
17089
17095
|
run.highlight = resolveColorFromAttributes(mark.attrs ?? {}, themeColors);
|
|
17090
17096
|
break;
|
|
17091
17097
|
case "link": {
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
} else if (typeof attrs.href === "string" && attrs.href.trim()) {
|
|
17105
|
-
try {
|
|
17106
|
-
const sanitized = sanitizeHref(attrs.href);
|
|
17107
|
-
if (sanitized && sanitized.href) {
|
|
17108
|
-
const legacyLink = {
|
|
17109
|
-
href: sanitized.href,
|
|
17110
|
-
title: typeof attrs.title === "string" ? attrs.title : void 0
|
|
17111
|
-
};
|
|
17112
|
-
run.link = migrateLegacyLink(legacyLink);
|
|
17098
|
+
if (!isTabRun2) {
|
|
17099
|
+
const attrs = mark.attrs ?? {};
|
|
17100
|
+
if (hyperlinkConfig.enableRichHyperlinks) {
|
|
17101
|
+
try {
|
|
17102
|
+
const link = buildFlowRunLink(attrs);
|
|
17103
|
+
if (link) {
|
|
17104
|
+
run.link = link;
|
|
17105
|
+
}
|
|
17106
|
+
} catch (error) {
|
|
17107
|
+
if (process$1.env.NODE_ENV === "development") {
|
|
17108
|
+
console.warn("[PM-Adapter] Failed to build rich hyperlink:", error);
|
|
17109
|
+
}
|
|
17113
17110
|
}
|
|
17114
|
-
}
|
|
17115
|
-
|
|
17116
|
-
|
|
17111
|
+
} else if (typeof attrs.href === "string" && attrs.href.trim()) {
|
|
17112
|
+
try {
|
|
17113
|
+
const sanitized = sanitizeHref(attrs.href);
|
|
17114
|
+
if (sanitized && sanitized.href) {
|
|
17115
|
+
const legacyLink = {
|
|
17116
|
+
href: sanitized.href,
|
|
17117
|
+
title: typeof attrs.title === "string" ? attrs.title : void 0
|
|
17118
|
+
};
|
|
17119
|
+
run.link = migrateLegacyLink(legacyLink);
|
|
17120
|
+
}
|
|
17121
|
+
} catch (error) {
|
|
17122
|
+
if (process$1.env.NODE_ENV === "development") {
|
|
17123
|
+
console.warn("[PM-Adapter] Failed to sanitize link href:", error);
|
|
17124
|
+
}
|
|
17117
17125
|
}
|
|
17118
17126
|
}
|
|
17119
17127
|
}
|
|
@@ -17127,7 +17135,7 @@ const applyMarksToRun = (run, marks, hyperlinkConfig = DEFAULT_HYPERLINK_CONFIG,
|
|
|
17127
17135
|
console.warn(`[PM-Adapter] Failed to apply mark ${mark.type}:`, error);
|
|
17128
17136
|
}
|
|
17129
17137
|
}
|
|
17130
|
-
if (forwardedDataAttrs) {
|
|
17138
|
+
if (forwardedDataAttrs && !isTabRun2) {
|
|
17131
17139
|
run.dataAttrs = { ...run.dataAttrs ?? {}, ...forwardedDataAttrs };
|
|
17132
17140
|
}
|
|
17133
17141
|
});
|
|
@@ -17149,14 +17157,14 @@ function textNodeToRun(textNode, positions, defaultFont, defaultSize, inheritedM
|
|
|
17149
17157
|
}
|
|
17150
17158
|
return run;
|
|
17151
17159
|
}
|
|
17152
|
-
function tabNodeToRun(node, positions, tabIndex, paragraph) {
|
|
17160
|
+
function tabNodeToRun(node, positions, tabIndex, paragraph, inheritedMarks = []) {
|
|
17153
17161
|
const pos = positions.get(node);
|
|
17154
17162
|
if (!pos) return null;
|
|
17155
17163
|
const paragraphAttrs = paragraph.attrs ?? {};
|
|
17156
17164
|
const paragraphProps = typeof paragraphAttrs.paragraphProperties === "object" && paragraphAttrs.paragraphProperties !== null ? paragraphAttrs.paragraphProperties : {};
|
|
17157
17165
|
const tabStops = Array.isArray(paragraphAttrs.tabStops) && paragraphAttrs.tabStops.length ? paragraphAttrs.tabStops : Array.isArray(paragraphProps.tabStops) ? paragraphProps.tabStops : void 0;
|
|
17158
17166
|
const indent = paragraphAttrs.indent ?? paragraphProps.indent ?? void 0;
|
|
17159
|
-
|
|
17167
|
+
const run = {
|
|
17160
17168
|
kind: "tab",
|
|
17161
17169
|
text: " ",
|
|
17162
17170
|
pmStart: pos.start,
|
|
@@ -17166,6 +17174,11 @@ function tabNodeToRun(node, positions, tabIndex, paragraph) {
|
|
|
17166
17174
|
indent,
|
|
17167
17175
|
leader: node.attrs?.leader ?? null
|
|
17168
17176
|
};
|
|
17177
|
+
const marks = [...node.marks ?? [], ...inheritedMarks ?? []];
|
|
17178
|
+
if (marks.length > 0) {
|
|
17179
|
+
applyMarksToRun(run, marks);
|
|
17180
|
+
}
|
|
17181
|
+
return run;
|
|
17169
17182
|
}
|
|
17170
17183
|
function tokenNodeToRun(node, positions, defaultFont, defaultSize, inheritedMarks = [], token, hyperlinkConfig = DEFAULT_HYPERLINK_CONFIG$1, themeColors) {
|
|
17171
17184
|
const run = {
|
|
@@ -18992,9 +19005,26 @@ const hydrateParagraphStyleAttrs = (para, context, preResolved) => {
|
|
|
18992
19005
|
if (isHeadingStyle && (!resolvedIndent || Object.keys(resolvedIndent).length === 0 || onlyFirstLineIndent)) {
|
|
18993
19006
|
resolvedIndent = { firstLine: 0, hanging: 0, left: resolvedIndent?.left, right: resolvedIndent?.right };
|
|
18994
19007
|
}
|
|
19008
|
+
let resolvedSpacing = cloneIfObject(resolvedAsRecord.spacing);
|
|
19009
|
+
const tableStyleParagraphProps = context.tableStyleParagraphProps;
|
|
19010
|
+
if (tableStyleParagraphProps?.spacing) {
|
|
19011
|
+
const tableSpacing = tableStyleParagraphProps.spacing;
|
|
19012
|
+
const paragraphHasExplicitSpacing = Boolean(spacing);
|
|
19013
|
+
if (!paragraphHasExplicitSpacing) {
|
|
19014
|
+
resolvedSpacing = {
|
|
19015
|
+
...resolvedSpacing,
|
|
19016
|
+
...tableSpacing
|
|
19017
|
+
};
|
|
19018
|
+
} else {
|
|
19019
|
+
resolvedSpacing = {
|
|
19020
|
+
...tableSpacing,
|
|
19021
|
+
...resolvedSpacing
|
|
19022
|
+
};
|
|
19023
|
+
}
|
|
19024
|
+
}
|
|
18995
19025
|
const hydrated = {
|
|
18996
19026
|
resolved,
|
|
18997
|
-
spacing:
|
|
19027
|
+
spacing: resolvedSpacing,
|
|
18998
19028
|
indent: resolvedIndent,
|
|
18999
19029
|
borders: cloneIfObject(resolvedExtended.borders),
|
|
19000
19030
|
shading: cloneIfObject(resolvedExtended.shading),
|
|
@@ -19893,11 +19923,12 @@ const computeParagraphAttrs = (para, styleContext, listCounterContext, converter
|
|
|
19893
19923
|
}
|
|
19894
19924
|
}
|
|
19895
19925
|
paragraphAttrs.wordLayout = wordLayout;
|
|
19896
|
-
if (enrichedNumberingProps.resolvedLevelIndent
|
|
19926
|
+
if (enrichedNumberingProps.resolvedLevelIndent) {
|
|
19897
19927
|
const resolvedIndentPx = convertIndentTwipsToPx(enrichedNumberingProps.resolvedLevelIndent);
|
|
19928
|
+
const baseIndent = resolvedIndentPx ?? enrichedNumberingProps.resolvedLevelIndent;
|
|
19898
19929
|
paragraphAttrs.indent = {
|
|
19899
|
-
...
|
|
19900
|
-
...
|
|
19930
|
+
...baseIndent,
|
|
19931
|
+
...normalizedIndent ?? {}
|
|
19901
19932
|
};
|
|
19902
19933
|
}
|
|
19903
19934
|
}
|
|
@@ -20962,7 +20993,7 @@ function paragraphToFlowBlocks$1(para, nextBlockId, positions, defaultFont, defa
|
|
|
20962
20993
|
return;
|
|
20963
20994
|
}
|
|
20964
20995
|
if (node.type === "tab") {
|
|
20965
|
-
const tabRun = tabNodeToRun(node, positions, tabOrdinal, para);
|
|
20996
|
+
const tabRun = tabNodeToRun(node, positions, tabOrdinal, para, inheritedMarks);
|
|
20966
20997
|
tabOrdinal += 1;
|
|
20967
20998
|
if (tabRun) {
|
|
20968
20999
|
currentRuns.push(tabRun);
|
|
@@ -21657,6 +21688,10 @@ const hydrateTableStyleAttrs = (tableNode, context) => {
|
|
|
21657
21688
|
hydration.justification = referenced.justification;
|
|
21658
21689
|
}
|
|
21659
21690
|
}
|
|
21691
|
+
const paragraphProps = extractTableStyleParagraphProps(styleId, context.docx);
|
|
21692
|
+
if (paragraphProps) {
|
|
21693
|
+
hydration.paragraphProps = paragraphProps;
|
|
21694
|
+
}
|
|
21660
21695
|
}
|
|
21661
21696
|
if (Object.keys(hydration).length > 0) {
|
|
21662
21697
|
return hydration;
|
|
@@ -21707,6 +21742,51 @@ const normalizeTableWidth = (value) => {
|
|
|
21707
21742
|
}
|
|
21708
21743
|
return { width: raw, type: measurement.type };
|
|
21709
21744
|
};
|
|
21745
|
+
const extractTableStyleParagraphProps = (styleId, docx) => {
|
|
21746
|
+
try {
|
|
21747
|
+
const stylesXml = docx["word/styles.xml"];
|
|
21748
|
+
if (!stylesXml?.elements?.[0]?.elements) return void 0;
|
|
21749
|
+
const styleElements = stylesXml.elements[0].elements.filter((el) => el.name === "w:style");
|
|
21750
|
+
const styleTag = styleElements.find((el) => el.attributes?.["w:styleId"] === styleId);
|
|
21751
|
+
if (!styleTag?.elements) {
|
|
21752
|
+
return void 0;
|
|
21753
|
+
}
|
|
21754
|
+
const pPr = styleTag.elements.find((el) => el.name === "w:pPr");
|
|
21755
|
+
if (!pPr?.elements) {
|
|
21756
|
+
return void 0;
|
|
21757
|
+
}
|
|
21758
|
+
const spacingEl = pPr.elements.find((el) => el.name === "w:spacing");
|
|
21759
|
+
if (!spacingEl?.attributes) {
|
|
21760
|
+
return void 0;
|
|
21761
|
+
}
|
|
21762
|
+
const attrs = spacingEl.attributes;
|
|
21763
|
+
const spacing = {};
|
|
21764
|
+
const before = parseIntSafe(attrs["w:before"]);
|
|
21765
|
+
const after = parseIntSafe(attrs["w:after"]);
|
|
21766
|
+
const line = parseIntSafe(attrs["w:line"]);
|
|
21767
|
+
const rawLineRule = attrs["w:lineRule"];
|
|
21768
|
+
const lineRule = rawLineRule === "auto" || rawLineRule === "exact" || rawLineRule === "atLeast" ? rawLineRule : void 0;
|
|
21769
|
+
if (before != null) spacing.before = twipsToPx$1(before);
|
|
21770
|
+
if (after != null) spacing.after = twipsToPx$1(after);
|
|
21771
|
+
if (line != null) {
|
|
21772
|
+
if (lineRule === "auto") {
|
|
21773
|
+
spacing.line = line / 240;
|
|
21774
|
+
} else {
|
|
21775
|
+
spacing.line = twipsToPx$1(line);
|
|
21776
|
+
}
|
|
21777
|
+
}
|
|
21778
|
+
if (lineRule) spacing.lineRule = lineRule;
|
|
21779
|
+
const result = Object.keys(spacing).length > 0 ? { spacing } : void 0;
|
|
21780
|
+
return result;
|
|
21781
|
+
} catch (err) {
|
|
21782
|
+
return void 0;
|
|
21783
|
+
}
|
|
21784
|
+
};
|
|
21785
|
+
const parseIntSafe = (value) => {
|
|
21786
|
+
if (value == null) return void 0;
|
|
21787
|
+
const num = typeof value === "number" ? value : parseInt(String(value), 10);
|
|
21788
|
+
return Number.isFinite(num) ? num : void 0;
|
|
21789
|
+
};
|
|
21710
21790
|
const isTableRowNode = (node) => node.type === "tableRow" || node.type === "table_row";
|
|
21711
21791
|
const isTableCellNode = (node) => node.type === "tableCell" || node.type === "table_cell" || node.type === "tableHeader" || node.type === "table_header";
|
|
21712
21792
|
const normalizeRowHeight = (rowProps) => {
|
|
@@ -21726,11 +21806,15 @@ const normalizeRowHeight = (rowProps) => {
|
|
|
21726
21806
|
};
|
|
21727
21807
|
};
|
|
21728
21808
|
const parseTableCell = (args) => {
|
|
21729
|
-
const { cellNode, rowIndex, cellIndex, context, defaultCellPadding } = args;
|
|
21809
|
+
const { cellNode, rowIndex, cellIndex, context, defaultCellPadding, tableStyleParagraphProps } = args;
|
|
21730
21810
|
if (!isTableCellNode(cellNode) || !Array.isArray(cellNode.content)) {
|
|
21731
21811
|
return null;
|
|
21732
21812
|
}
|
|
21733
21813
|
const blocks = [];
|
|
21814
|
+
const cellConverterContext = tableStyleParagraphProps ? {
|
|
21815
|
+
...context.converterContext,
|
|
21816
|
+
tableStyleParagraphProps
|
|
21817
|
+
} : context.converterContext;
|
|
21734
21818
|
for (const childNode of cellNode.content) {
|
|
21735
21819
|
if (childNode.type === "paragraph") {
|
|
21736
21820
|
const paragraphBlocks = context.paragraphToFlowBlocks(
|
|
@@ -21741,11 +21825,13 @@ const parseTableCell = (args) => {
|
|
|
21741
21825
|
context.defaultSize,
|
|
21742
21826
|
context.styleContext,
|
|
21743
21827
|
void 0,
|
|
21828
|
+
// listCounterContext
|
|
21744
21829
|
context.trackedChanges,
|
|
21745
21830
|
context.bookmarks,
|
|
21746
21831
|
context.hyperlinkConfig,
|
|
21747
21832
|
context.themeColors,
|
|
21748
|
-
|
|
21833
|
+
cellConverterContext
|
|
21834
|
+
// converterContext at position 12
|
|
21749
21835
|
);
|
|
21750
21836
|
const paragraph = paragraphBlocks.find((b) => b.kind === "paragraph");
|
|
21751
21837
|
if (paragraph) {
|
|
@@ -21788,7 +21874,7 @@ const parseTableCell = (args) => {
|
|
|
21788
21874
|
};
|
|
21789
21875
|
};
|
|
21790
21876
|
const parseTableRow = (args) => {
|
|
21791
|
-
const { rowNode, rowIndex, context, defaultCellPadding } = args;
|
|
21877
|
+
const { rowNode, rowIndex, context, defaultCellPadding, tableStyleParagraphProps } = args;
|
|
21792
21878
|
if (!isTableRowNode(rowNode) || !Array.isArray(rowNode.content)) {
|
|
21793
21879
|
return null;
|
|
21794
21880
|
}
|
|
@@ -21799,7 +21885,8 @@ const parseTableRow = (args) => {
|
|
|
21799
21885
|
rowIndex,
|
|
21800
21886
|
cellIndex,
|
|
21801
21887
|
context,
|
|
21802
|
-
defaultCellPadding
|
|
21888
|
+
defaultCellPadding,
|
|
21889
|
+
tableStyleParagraphProps
|
|
21803
21890
|
});
|
|
21804
21891
|
if (parsedCell) {
|
|
21805
21892
|
cells.push(parsedCell);
|
|
@@ -21908,13 +21995,15 @@ function tableNodeToBlock$1(node, nextBlockId, positions, defaultFont, defaultSi
|
|
|
21908
21995
|
};
|
|
21909
21996
|
const hydratedTableStyle = hydrateTableStyleAttrs(node, converterContext);
|
|
21910
21997
|
const defaultCellPadding = hydratedTableStyle?.cellPadding;
|
|
21998
|
+
const tableStyleParagraphProps = hydratedTableStyle?.paragraphProps;
|
|
21911
21999
|
const rows = [];
|
|
21912
22000
|
node.content.forEach((rowNode, rowIndex) => {
|
|
21913
22001
|
const parsedRow = parseTableRow({
|
|
21914
22002
|
rowNode,
|
|
21915
22003
|
rowIndex,
|
|
21916
22004
|
context: parserDeps,
|
|
21917
|
-
defaultCellPadding
|
|
22005
|
+
defaultCellPadding,
|
|
22006
|
+
tableStyleParagraphProps
|
|
21918
22007
|
});
|
|
21919
22008
|
if (parsedRow) {
|
|
21920
22009
|
rows.push(parsedRow);
|
|
@@ -22170,7 +22259,7 @@ function toFlowBlocks(pmDoc, options) {
|
|
|
22170
22259
|
blocks.push(sectionBreak);
|
|
22171
22260
|
recordBlockKind(sectionBreak.kind);
|
|
22172
22261
|
}
|
|
22173
|
-
const paragraphConverter = (para, nextBlockId2, positions2, defaultFont2, defaultSize2, context, listCounterContext, trackedChanges, bookmarks2, hyperlinkConfig2) => paragraphToFlowBlocks(
|
|
22262
|
+
const paragraphConverter = (para, nextBlockId2, positions2, defaultFont2, defaultSize2, context, listCounterContext, trackedChanges, bookmarks2, hyperlinkConfig2, themeColorsParam, converterCtx) => paragraphToFlowBlocks(
|
|
22174
22263
|
para,
|
|
22175
22264
|
nextBlockId2,
|
|
22176
22265
|
positions2,
|
|
@@ -22181,8 +22270,8 @@ function toFlowBlocks(pmDoc, options) {
|
|
|
22181
22270
|
trackedChanges,
|
|
22182
22271
|
bookmarks2,
|
|
22183
22272
|
hyperlinkConfig2,
|
|
22184
|
-
themeColors,
|
|
22185
|
-
converterContext
|
|
22273
|
+
themeColorsParam ?? themeColors,
|
|
22274
|
+
converterCtx ?? converterContext
|
|
22186
22275
|
);
|
|
22187
22276
|
const tableConverter = (node, nextBlockId2, positions2, defaultFont2, defaultSize2, context, trackedChanges, bookmarks2, hyperlinkConfig2, themeColorsParam, converterCtx) => tableNodeToBlock(
|
|
22188
22277
|
node,
|
|
@@ -22962,9 +23051,7 @@ function buildMultiSectionIdentifier(sectionMetadata, pageStyles2) {
|
|
|
22962
23051
|
odd: section.footerRefs.odd ?? null
|
|
22963
23052
|
});
|
|
22964
23053
|
}
|
|
22965
|
-
|
|
22966
|
-
const hasFirstFooter = Boolean(section.footerRefs?.first);
|
|
22967
|
-
if (hasFirstHeader || hasFirstFooter) {
|
|
23054
|
+
if (section.titlePg === true) {
|
|
22968
23055
|
identifier.sectionTitlePg.set(idx, true);
|
|
22969
23056
|
}
|
|
22970
23057
|
}
|
|
@@ -24171,14 +24258,35 @@ function layoutTableBlock({
|
|
|
24171
24258
|
const headerHeight = headerCount > 0 ? sumRowHeights(measure.rows, 0, headerCount) : 0;
|
|
24172
24259
|
let state = ensurePage();
|
|
24173
24260
|
const availableHeight = state.contentBottom - state.cursorY;
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24261
|
+
const hasPriorFragments = state.page.fragments.length > 0;
|
|
24262
|
+
const hasMeasuredRows = measure.rows.length > 0 && block.rows.length > 0;
|
|
24263
|
+
if (hasMeasuredRows && hasPriorFragments) {
|
|
24264
|
+
const firstRowCantSplit = block.rows[0]?.attrs?.tableRowProperties?.cantSplit === true;
|
|
24265
|
+
const firstRowHeight = measure.rows[0]?.height ?? measure.totalHeight ?? 0;
|
|
24266
|
+
if (firstRowCantSplit) {
|
|
24267
|
+
if (firstRowHeight > availableHeight) {
|
|
24268
|
+
state = advanceColumn(state);
|
|
24269
|
+
}
|
|
24270
|
+
} else {
|
|
24271
|
+
const partial = computePartialRow(0, block.rows[0], measure, availableHeight);
|
|
24272
|
+
const madeProgress = partial.toLineByCell.some(
|
|
24273
|
+
(toLine, idx) => toLine > (partial.fromLineByCell[idx] || 0)
|
|
24274
|
+
);
|
|
24275
|
+
const hasRenderableHeight = partial.partialHeight > 0;
|
|
24276
|
+
if (!madeProgress || !hasRenderableHeight) {
|
|
24277
|
+
state = advanceColumn(state);
|
|
24278
|
+
}
|
|
24279
|
+
}
|
|
24280
|
+
} else if (hasPriorFragments) {
|
|
24281
|
+
let minRequiredHeight = 0;
|
|
24282
|
+
if (measure.rows.length > 0) {
|
|
24283
|
+
minRequiredHeight = sumRowHeights(measure.rows, 0, 1);
|
|
24284
|
+
} else if (measure.totalHeight > 0) {
|
|
24285
|
+
minRequiredHeight = measure.totalHeight;
|
|
24286
|
+
}
|
|
24287
|
+
if (minRequiredHeight > availableHeight) {
|
|
24288
|
+
state = advanceColumn(state);
|
|
24289
|
+
}
|
|
24182
24290
|
}
|
|
24183
24291
|
let currentRow = 0;
|
|
24184
24292
|
let isTableContinuation = false;
|
|
@@ -24243,7 +24351,7 @@ function layoutTableBlock({
|
|
|
24243
24351
|
return fromLine < totalLines;
|
|
24244
24352
|
});
|
|
24245
24353
|
const fragmentHeight2 = continuationPartialRow.partialHeight + (repeatHeaderCount > 0 ? headerHeight : 0);
|
|
24246
|
-
if (fragmentHeight2 > 0) {
|
|
24354
|
+
if (fragmentHeight2 > 0 && madeProgress) {
|
|
24247
24355
|
const fragment2 = {
|
|
24248
24356
|
kind: "table",
|
|
24249
24357
|
blockId: block.id,
|
|
@@ -32752,9 +32860,16 @@ const _DomPainter = class _DomPainter {
|
|
|
32752
32860
|
tabEl.style.width = `${actualTabWidth}px`;
|
|
32753
32861
|
tabEl.style.height = `${line.lineHeight}px`;
|
|
32754
32862
|
tabEl.style.display = "inline-block";
|
|
32755
|
-
tabEl.style.visibility = "hidden";
|
|
32756
32863
|
tabEl.style.pointerEvents = "none";
|
|
32757
32864
|
tabEl.style.zIndex = "1";
|
|
32865
|
+
if (baseRun.underline) {
|
|
32866
|
+
const underlineStyle = baseRun.underline.style ?? "single";
|
|
32867
|
+
const underlineColor = baseRun.underline.color ?? "#000000";
|
|
32868
|
+
const borderStyle = underlineStyle === "double" ? "double" : "solid";
|
|
32869
|
+
tabEl.style.borderBottom = `1px ${borderStyle} ${underlineColor}`;
|
|
32870
|
+
} else {
|
|
32871
|
+
tabEl.style.visibility = "hidden";
|
|
32872
|
+
}
|
|
32758
32873
|
if (styleId) {
|
|
32759
32874
|
tabEl.setAttribute("styleid", styleId);
|
|
32760
32875
|
}
|
|
@@ -32832,6 +32947,28 @@ const _DomPainter = class _DomPainter {
|
|
|
32832
32947
|
}
|
|
32833
32948
|
} else {
|
|
32834
32949
|
runsForLine.forEach((run) => {
|
|
32950
|
+
if (run.kind === "tab") {
|
|
32951
|
+
const tabEl = this.doc.createElement("span");
|
|
32952
|
+
tabEl.classList.add("superdoc-tab");
|
|
32953
|
+
const tabWidth = run.width ?? 48;
|
|
32954
|
+
tabEl.style.display = "inline-block";
|
|
32955
|
+
tabEl.style.width = `${tabWidth}px`;
|
|
32956
|
+
tabEl.style.height = `${line.lineHeight}px`;
|
|
32957
|
+
tabEl.style.verticalAlign = "bottom";
|
|
32958
|
+
if (run.underline) {
|
|
32959
|
+
const underlineStyle = run.underline.style ?? "single";
|
|
32960
|
+
const underlineColor = run.underline.color ?? "#000000";
|
|
32961
|
+
const borderStyle = underlineStyle === "double" ? "double" : "solid";
|
|
32962
|
+
tabEl.style.borderBottom = `1px ${borderStyle} ${underlineColor}`;
|
|
32963
|
+
}
|
|
32964
|
+
if (styleId) {
|
|
32965
|
+
tabEl.setAttribute("styleid", styleId);
|
|
32966
|
+
}
|
|
32967
|
+
if (run.pmStart != null) tabEl.dataset.pmStart = String(run.pmStart);
|
|
32968
|
+
if (run.pmEnd != null) tabEl.dataset.pmEnd = String(run.pmEnd);
|
|
32969
|
+
el.appendChild(tabEl);
|
|
32970
|
+
return;
|
|
32971
|
+
}
|
|
32835
32972
|
const elem = this.renderRun(run, context, trackedConfig);
|
|
32836
32973
|
if (elem) {
|
|
32837
32974
|
if (styleId) {
|
|
@@ -33920,8 +34057,10 @@ async function measureParagraphBlock(block, maxWidth) {
|
|
|
33920
34057
|
const indentRight = sanitizePositive(indent?.right);
|
|
33921
34058
|
const firstLine = indent?.firstLine ?? 0;
|
|
33922
34059
|
const hanging = indent?.hanging ?? 0;
|
|
34060
|
+
const isWordLayoutList = Boolean(wordLayout?.marker);
|
|
33923
34061
|
const suppressFirstLine = block.attrs?.suppressFirstLineIndent === true;
|
|
33924
|
-
const
|
|
34062
|
+
const rawFirstLineOffset = suppressFirstLine ? 0 : firstLine - hanging;
|
|
34063
|
+
const firstLineOffset = isWordLayoutList ? 0 : rawFirstLineOffset;
|
|
33925
34064
|
const contentWidth = Math.max(1, maxWidth - indentLeft - indentRight);
|
|
33926
34065
|
const initialAvailableWidth = Math.max(1, contentWidth - firstLineOffset);
|
|
33927
34066
|
const tabStops = buildTabStopsPx(
|
|
@@ -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-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-GXPldmlh.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DaDga3Ye.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -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-DaDga3Ye.js";
|
|
2
|
+
import "./chunks/converter-GXPldmlh.js";
|
|
3
|
+
import "./chunks/docx-zipper-D7QUJRNp.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
|
|
12
|
-
import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ac, i, a9, aQ } 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 { 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-GXPldmlh.js";
|
|
13
|
+
import { ac, i, a9, aQ } from "./chunks/converter-GXPldmlh.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-DaDga3Ye.js";
|
|
15
|
+
import { z, F, B, T, w, C, x } from "./chunks/editor-DaDga3Ye.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-
|
|
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-DjueghNO.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-D7QUJRNp.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
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-CbWugsqL.cjs");
|
|
4
4
|
require("./chunks/vue-jWLMl8Ts.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-DUQSn16o.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-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-CbWugsqL.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-DDwDzZCu.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-DUQSn16o.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-C6yeAWhT.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|