@harbour-enterprises/superdoc 1.0.0-beta.55 → 1.0.0-beta.57
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-ARRkZgYS.es.js → PdfViewer-BpJ5YJmq.es.js} +1 -1
- package/dist/chunks/{PdfViewer-ObG30G-u.cjs → PdfViewer-DvAhx37Y.cjs} +1 -1
- package/dist/chunks/{index-Bwqb03qi.es.js → index-BE9w4viZ.es.js} +3 -3
- package/dist/chunks/{index-DFHwDXHd.cjs → index-BbXDEDIW.cjs} +3 -3
- package/dist/chunks/{index-bqjMjne1-DBB94Dlj.es.js → index-D5IkZjf9-CPmfOXHq.es.js} +1 -1
- package/dist/chunks/{index-bqjMjne1-CJi4d9NS.cjs → index-D5IkZjf9-XnnWMFi7.cjs} +1 -1
- package/dist/chunks/{super-editor.es-7Twgz-8H.es.js → super-editor.es-BY9i51n2.es.js} +131 -38
- package/dist/chunks/{super-editor.es-C2Ob7BbN.cjs → super-editor.es-BjELk3Xl.cjs} +131 -38
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-D33MGATy.js → converter-Aoe_RSZD.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-C7Fp89_I.js → docx-zipper-Ct68kitw.js} +1 -1
- package/dist/super-editor/chunks/{editor-BiFHsy25.js → editor-Dfqm3VkC.js} +132 -39
- package/dist/super-editor/chunks/{index-bqjMjne1.js → index-D5IkZjf9.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-BNta2qOv.js → toolbar-Dj_HCM6i.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 +133 -40
- 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, _dragHandlerCleanup, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionUpdateScheduled, _remoteCursorUpdateScheduled, _rafHandle, _editorListeners, _sectionMetadata, _documentMode, _inputBridge, _trackedChangesMode, _trackedChangesEnabled, _trackedChangesOverrides, _headerFooterManager, _headerFooterAdapter, _headerFooterIdentifier, _multiSectionIdentifier, _headerLayoutResults, _footerLayoutResults, _headerLayoutsByRId, _footerLayoutsByRId, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _overlayManager, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _lastSelectedImageBlockId, _dragAnchor, _isDragging, _dragExtensionMode, _remoteCursorState, _remoteCursorElements, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _scrollTimeout, _lastRemoteCursorRenderTime, _remoteCursorThrottleTimeout, _PresentationEditor_instances, collectCommentPositions_fn, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, updateLocalAwarenessCursor_fn, normalizeAwarenessStates_fn, getFallbackColor_fn, getValidatedColor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, renderRemoteCaret_fn, renderRemoteCursorLabel_fn, renderRemoteSelection_fn, setupPointerHandlers_fn, setupDragHandlers_fn, focusEditorAfterImageSelection_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, calculateExtendedSelection_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _handlePointerUp, _handleDragOver, _handleDrop, _handleDoubleClick, _handleKeyDown, focusHeaderFooterShortcut_fn, scheduleRerender_fn, flushRerenderQueue_fn, rerender_fn, ensurePainter_fn, scheduleSelectionUpdate_fn, updateSelection_fn, resolveLayoutOptions_fn, buildHeaderFooterInput_fn, computeHeaderFooterConstraints_fn, layoutPerRIdHeaderFooters_fn, updateDecorationProviders_fn, createDecorationProvider_fn, findHeaderFooterPageForPageNumber_fn, computeDecorationBox_fn, rebuildHeaderFooterRegions_fn, hitTestHeaderFooterRegion_fn, pointInRegion_fn, activateHeaderFooterRegion_fn, enterHeaderFooterMode_fn, exitHeaderFooterMode_fn, getActiveDomTarget_fn, emitHeaderFooterModeChanged_fn, emitHeaderFooterEditingContext_fn, updateAwarenessSession_fn, updateModeBanner_fn, announce_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, createDefaultHeaderFooter_fn, getPageElement_fn, scrollPageIntoView_fn, computeAnchorMap_fn, waitForPageMount_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, parseColumns_fn, inchesToPx_fn, applyZoom_fn, createLayoutMetrics_fn, convertPageLocalToOverlayCoords_fn, normalizeClientPoint_fn, computeCaretLayoutRect_fn, computeCaretLayoutRectFromDOM_fn, computeTableCaretLayoutRect_fn, findLineContainingPos_fn, lineHeightBeforeIndex_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_fn, createHiddenHost_fn, _windowRoot, _layoutSurfaces, _getTargetDom, _isEditable, _onTargetChanged, _listeners, _currentTarget, _destroyed, _useWindowFallback, _PresentationInputBridge_instances, addListener_fn, dispatchToTarget_fn, forwardKeyboardEvent_fn, forwardTextEvent_fn, forwardCompositionEvent_fn, forwardContextMenu_fn, isEventOnActiveTarget_fn, shouldSkipSurface_fn, isInLayoutSurface_fn, getListenerTargets_fn, isPlainCharacterKey_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, checkShouldUpdate_fn, updateHTMLAttributes_fn, updateDOMStyles_fn, resolveNeighborParagraphProperties_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _VectorShapeView_instances, ensureParentPositioned_fn, _ShapeGroupView_instances, ensureParentPositioned_fn2;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-
|
|
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$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-Aoe_RSZD.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-Ct68kitw.js";
|
|
17
17
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
@@ -13918,7 +13918,7 @@ const isHeadless = (editor) => {
|
|
|
13918
13918
|
const shouldSkipNodeView = (editor) => {
|
|
13919
13919
|
return isHeadless(editor);
|
|
13920
13920
|
};
|
|
13921
|
-
const summaryVersion = "1.0.0-beta.
|
|
13921
|
+
const summaryVersion = "1.0.0-beta.57";
|
|
13922
13922
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
13923
13923
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
13924
13924
|
function mapAttributes(attrs) {
|
|
@@ -14710,7 +14710,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14710
14710
|
{ default: remarkStringify },
|
|
14711
14711
|
{ default: remarkGfm }
|
|
14712
14712
|
] = await Promise.all([
|
|
14713
|
-
import("./index-
|
|
14713
|
+
import("./index-D5IkZjf9.js"),
|
|
14714
14714
|
import("./index-DRCvimau.js"),
|
|
14715
14715
|
import("./index-C_x_N6Uh.js"),
|
|
14716
14716
|
import("./index-D_sWOSiG.js"),
|
|
@@ -14915,7 +14915,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14915
14915
|
* Process collaboration migrations
|
|
14916
14916
|
*/
|
|
14917
14917
|
processCollaborationMigrations() {
|
|
14918
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
14918
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.57");
|
|
14919
14919
|
if (!this.options.ydoc) return;
|
|
14920
14920
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14921
14921
|
let docVersion = metaMap.get("version");
|
|
@@ -15950,7 +15950,15 @@ const VALID_TRACKED_MODES = ["review", "original", "final", "off"];
|
|
|
15950
15950
|
const DEFAULT_HYPERLINK_CONFIG$1 = {
|
|
15951
15951
|
enableRichHyperlinks: false
|
|
15952
15952
|
};
|
|
15953
|
-
const ATOMIC_INLINE_TYPES = /* @__PURE__ */ new Set([
|
|
15953
|
+
const ATOMIC_INLINE_TYPES = /* @__PURE__ */ new Set([
|
|
15954
|
+
"image",
|
|
15955
|
+
"hardBreak",
|
|
15956
|
+
"lineBreak",
|
|
15957
|
+
"page-number",
|
|
15958
|
+
"total-page-number",
|
|
15959
|
+
"passthroughInline",
|
|
15960
|
+
"bookmarkEnd"
|
|
15961
|
+
]);
|
|
15954
15962
|
const TOKEN_INLINE_TYPES = /* @__PURE__ */ new Map([
|
|
15955
15963
|
["page-number", "pageNumber"],
|
|
15956
15964
|
["total-page-number", "totalPageCount"]
|
|
@@ -17471,6 +17479,7 @@ const normalizeAlignment = (value) => {
|
|
|
17471
17479
|
case "center":
|
|
17472
17480
|
case "right":
|
|
17473
17481
|
case "justify":
|
|
17482
|
+
case "left":
|
|
17474
17483
|
return value;
|
|
17475
17484
|
case "both":
|
|
17476
17485
|
case "distribute":
|
|
@@ -27026,9 +27035,11 @@ const _DomPainter = class _DomPainter {
|
|
|
27026
27035
|
const hasExplicitSegmentPositioning = line.segments?.some((seg) => seg.x !== void 0);
|
|
27027
27036
|
const isFirstLine = index2 === 0 && !fragment.continuesFromPrev;
|
|
27028
27037
|
if (!isListFirstLine) {
|
|
27029
|
-
if (
|
|
27030
|
-
|
|
27031
|
-
|
|
27038
|
+
if (hasExplicitSegmentPositioning) {
|
|
27039
|
+
if (isFirstLine && firstLineOffset !== 0) {
|
|
27040
|
+
const adjustedPadding = paraIndentLeft + firstLineOffset;
|
|
27041
|
+
lineEl.style.paddingLeft = `${adjustedPadding}px`;
|
|
27042
|
+
}
|
|
27032
27043
|
} else if (paraIndentLeft) {
|
|
27033
27044
|
lineEl.style.paddingLeft = `${paraIndentLeft}px`;
|
|
27034
27045
|
}
|
|
@@ -28459,6 +28470,13 @@ const _DomPainter = class _DomPainter {
|
|
|
28459
28470
|
}
|
|
28460
28471
|
}
|
|
28461
28472
|
if (hasExplicitPositioning && line.segments) {
|
|
28473
|
+
const paraIndent = block.attrs?.indent;
|
|
28474
|
+
const indentLeft = paraIndent?.left ?? 0;
|
|
28475
|
+
const firstLine = paraIndent?.firstLine ?? 0;
|
|
28476
|
+
const hanging = paraIndent?.hanging ?? 0;
|
|
28477
|
+
const isFirstLineOfPara = lineIndex === 0 || lineIndex === void 0;
|
|
28478
|
+
const firstLineOffsetForCumX = isFirstLineOfPara ? firstLine - hanging : 0;
|
|
28479
|
+
const indentOffset = indentLeft + firstLineOffsetForCumX;
|
|
28462
28480
|
let cumulativeX = 0;
|
|
28463
28481
|
const segmentsByRun = /* @__PURE__ */ new Map();
|
|
28464
28482
|
line.segments.forEach((segment) => {
|
|
@@ -28490,7 +28508,7 @@ const _DomPainter = class _DomPainter {
|
|
|
28490
28508
|
const actualTabWidth = tabEndX - tabStartX;
|
|
28491
28509
|
const tabEl = this.doc.createElement("span");
|
|
28492
28510
|
tabEl.style.position = "absolute";
|
|
28493
|
-
tabEl.style.left = `${tabStartX}px`;
|
|
28511
|
+
tabEl.style.left = `${tabStartX + indentOffset}px`;
|
|
28494
28512
|
tabEl.style.top = "0px";
|
|
28495
28513
|
tabEl.style.width = `${actualTabWidth}px`;
|
|
28496
28514
|
tabEl.style.height = `${line.lineHeight}px`;
|
|
@@ -28521,12 +28539,13 @@ const _DomPainter = class _DomPainter {
|
|
|
28521
28539
|
elem.setAttribute("styleid", styleId);
|
|
28522
28540
|
}
|
|
28523
28541
|
const runSegments2 = segmentsByRun.get(runIndex);
|
|
28524
|
-
const
|
|
28542
|
+
const baseSegX = runSegments2 && runSegments2[0]?.x !== void 0 ? runSegments2[0].x : cumulativeX;
|
|
28543
|
+
const segX = baseSegX + indentOffset;
|
|
28525
28544
|
const segWidth = (runSegments2 && runSegments2[0]?.width !== void 0 ? runSegments2[0].width : elem.offsetWidth) ?? 0;
|
|
28526
28545
|
elem.style.position = "absolute";
|
|
28527
28546
|
elem.style.left = `${segX}px`;
|
|
28528
28547
|
el.appendChild(elem);
|
|
28529
|
-
cumulativeX =
|
|
28548
|
+
cumulativeX = baseSegX + segWidth;
|
|
28530
28549
|
}
|
|
28531
28550
|
continue;
|
|
28532
28551
|
}
|
|
@@ -28543,12 +28562,13 @@ const _DomPainter = class _DomPainter {
|
|
|
28543
28562
|
elem.setAttribute("styleid", styleId);
|
|
28544
28563
|
}
|
|
28545
28564
|
const runSegments2 = segmentsByRun.get(runIndex);
|
|
28546
|
-
const
|
|
28565
|
+
const baseSegX = runSegments2 && runSegments2[0]?.x !== void 0 ? runSegments2[0].x : cumulativeX;
|
|
28566
|
+
const segX = baseSegX + indentOffset;
|
|
28547
28567
|
const segWidth = (runSegments2 && runSegments2[0]?.width !== void 0 ? runSegments2[0].width : 0) ?? 0;
|
|
28548
28568
|
elem.style.position = "absolute";
|
|
28549
28569
|
elem.style.left = `${segX}px`;
|
|
28550
28570
|
el.appendChild(elem);
|
|
28551
|
-
cumulativeX =
|
|
28571
|
+
cumulativeX = baseSegX + segWidth;
|
|
28552
28572
|
}
|
|
28553
28573
|
continue;
|
|
28554
28574
|
}
|
|
@@ -28578,7 +28598,8 @@ const _DomPainter = class _DomPainter {
|
|
|
28578
28598
|
if (styleId) {
|
|
28579
28599
|
elem.setAttribute("styleid", styleId);
|
|
28580
28600
|
}
|
|
28581
|
-
const
|
|
28601
|
+
const baseX = segment.x !== void 0 ? segment.x : cumulativeX;
|
|
28602
|
+
const xPos = baseX + indentOffset;
|
|
28582
28603
|
elem.style.position = "absolute";
|
|
28583
28604
|
elem.style.left = `${xPos}px`;
|
|
28584
28605
|
el.appendChild(elem);
|
|
@@ -28592,7 +28613,7 @@ const _DomPainter = class _DomPainter {
|
|
|
28592
28613
|
width = measureEl.offsetWidth;
|
|
28593
28614
|
this.doc.body.removeChild(measureEl);
|
|
28594
28615
|
}
|
|
28595
|
-
cumulativeX =
|
|
28616
|
+
cumulativeX = baseX + width;
|
|
28596
28617
|
}
|
|
28597
28618
|
});
|
|
28598
28619
|
}
|
|
@@ -30982,6 +31003,32 @@ function layoutDrawingBlock({
|
|
|
30982
31003
|
state.page.fragments.push(fragment);
|
|
30983
31004
|
state.cursorY += requiredHeight;
|
|
30984
31005
|
}
|
|
31006
|
+
function getTableIndentWidth(attrs) {
|
|
31007
|
+
if (!attrs) {
|
|
31008
|
+
return 0;
|
|
31009
|
+
}
|
|
31010
|
+
const tableIndent = attrs.tableIndent;
|
|
31011
|
+
if (!tableIndent || typeof tableIndent !== "object") {
|
|
31012
|
+
return 0;
|
|
31013
|
+
}
|
|
31014
|
+
const width = tableIndent.width;
|
|
31015
|
+
if (width === void 0 || width === null) {
|
|
31016
|
+
return 0;
|
|
31017
|
+
}
|
|
31018
|
+
if (typeof width !== "number") {
|
|
31019
|
+
return 0;
|
|
31020
|
+
}
|
|
31021
|
+
if (!Number.isFinite(width)) {
|
|
31022
|
+
return 0;
|
|
31023
|
+
}
|
|
31024
|
+
return width;
|
|
31025
|
+
}
|
|
31026
|
+
function applyTableIndent(x, width, indent) {
|
|
31027
|
+
return {
|
|
31028
|
+
x: x + indent,
|
|
31029
|
+
width: Math.max(0, width - indent)
|
|
31030
|
+
};
|
|
31031
|
+
}
|
|
30985
31032
|
function calculateColumnMinWidth(columnIndex, measure) {
|
|
30986
31033
|
const DEFAULT_MIN_WIDTH = 25;
|
|
30987
31034
|
const measuredWidth = measure.columnWidths[columnIndex] || DEFAULT_MIN_WIDTH;
|
|
@@ -31196,14 +31243,18 @@ function layoutMonolithicTable(context) {
|
|
|
31196
31243
|
columnBoundaries: generateColumnBoundaries(context.measure),
|
|
31197
31244
|
coordinateSystem: "fragment"
|
|
31198
31245
|
};
|
|
31246
|
+
const tableIndent = getTableIndentWidth(context.block.attrs);
|
|
31247
|
+
const baseX = context.columnX(state.columnIndex);
|
|
31248
|
+
const baseWidth = Math.min(context.columnWidth, context.measure.totalWidth || context.columnWidth);
|
|
31249
|
+
const { x, width } = applyTableIndent(baseX, baseWidth, tableIndent);
|
|
31199
31250
|
const fragment = {
|
|
31200
31251
|
kind: "table",
|
|
31201
31252
|
blockId: context.block.id,
|
|
31202
31253
|
fromRow: 0,
|
|
31203
31254
|
toRow: context.block.rows.length,
|
|
31204
|
-
x
|
|
31255
|
+
x,
|
|
31205
31256
|
y: state.cursorY,
|
|
31206
|
-
width
|
|
31257
|
+
width,
|
|
31207
31258
|
height,
|
|
31208
31259
|
metadata
|
|
31209
31260
|
};
|
|
@@ -31270,14 +31321,18 @@ function layoutTableBlock({
|
|
|
31270
31321
|
columnBoundaries: generateColumnBoundaries(measure),
|
|
31271
31322
|
coordinateSystem: "fragment"
|
|
31272
31323
|
};
|
|
31324
|
+
const tableIndent = getTableIndentWidth(block.attrs);
|
|
31325
|
+
const baseX = columnX(state.columnIndex);
|
|
31326
|
+
const baseWidth = Math.min(columnWidth, measure.totalWidth || columnWidth);
|
|
31327
|
+
const { x, width } = applyTableIndent(baseX, baseWidth, tableIndent);
|
|
31273
31328
|
const fragment = {
|
|
31274
31329
|
kind: "table",
|
|
31275
31330
|
blockId: block.id,
|
|
31276
31331
|
fromRow: 0,
|
|
31277
31332
|
toRow: 0,
|
|
31278
|
-
x
|
|
31333
|
+
x,
|
|
31279
31334
|
y: state.cursorY,
|
|
31280
|
-
width
|
|
31335
|
+
width,
|
|
31281
31336
|
height,
|
|
31282
31337
|
metadata
|
|
31283
31338
|
};
|
|
@@ -31325,14 +31380,18 @@ function layoutTableBlock({
|
|
|
31325
31380
|
});
|
|
31326
31381
|
const fragmentHeight2 = continuationPartialRow.partialHeight + (repeatHeaderCount > 0 ? headerHeight : 0);
|
|
31327
31382
|
if (fragmentHeight2 > 0 && madeProgress) {
|
|
31383
|
+
const tableIndent2 = getTableIndentWidth(block.attrs);
|
|
31384
|
+
const baseX2 = columnX(state.columnIndex);
|
|
31385
|
+
const baseWidth2 = Math.min(columnWidth, measure.totalWidth || columnWidth);
|
|
31386
|
+
const { x: x2, width: width2 } = applyTableIndent(baseX2, baseWidth2, tableIndent2);
|
|
31328
31387
|
const fragment2 = {
|
|
31329
31388
|
kind: "table",
|
|
31330
31389
|
blockId: block.id,
|
|
31331
31390
|
fromRow: rowIndex,
|
|
31332
31391
|
toRow: rowIndex + 1,
|
|
31333
|
-
x:
|
|
31392
|
+
x: x2,
|
|
31334
31393
|
y: state.cursorY,
|
|
31335
|
-
width:
|
|
31394
|
+
width: width2,
|
|
31336
31395
|
height: fragmentHeight2,
|
|
31337
31396
|
continuesFromPrev: true,
|
|
31338
31397
|
continuesOnNext: hasRemainingLinesAfterContinuation || rowIndex + 1 < block.rows.length,
|
|
@@ -31365,14 +31424,18 @@ function layoutTableBlock({
|
|
|
31365
31424
|
const forcedPartialRow = computePartialRow(bodyStartRow, block.rows[bodyStartRow], measure, availableForBody);
|
|
31366
31425
|
const forcedEndRow = bodyStartRow + 1;
|
|
31367
31426
|
const fragmentHeight2 = forcedPartialRow.partialHeight + (repeatHeaderCount > 0 ? headerHeight : 0);
|
|
31427
|
+
const tableIndent2 = getTableIndentWidth(block.attrs);
|
|
31428
|
+
const baseX2 = columnX(state.columnIndex);
|
|
31429
|
+
const baseWidth2 = Math.min(columnWidth, measure.totalWidth || columnWidth);
|
|
31430
|
+
const { x: x2, width: width2 } = applyTableIndent(baseX2, baseWidth2, tableIndent2);
|
|
31368
31431
|
const fragment2 = {
|
|
31369
31432
|
kind: "table",
|
|
31370
31433
|
blockId: block.id,
|
|
31371
31434
|
fromRow: bodyStartRow,
|
|
31372
31435
|
toRow: forcedEndRow,
|
|
31373
|
-
x:
|
|
31436
|
+
x: x2,
|
|
31374
31437
|
y: state.cursorY,
|
|
31375
|
-
width:
|
|
31438
|
+
width: width2,
|
|
31376
31439
|
height: fragmentHeight2,
|
|
31377
31440
|
continuesFromPrev: isTableContinuation,
|
|
31378
31441
|
continuesOnNext: !forcedPartialRow.isLastPart || forcedEndRow < block.rows.length,
|
|
@@ -31396,14 +31459,18 @@ function layoutTableBlock({
|
|
|
31396
31459
|
measure
|
|
31397
31460
|
);
|
|
31398
31461
|
}
|
|
31462
|
+
const tableIndent = getTableIndentWidth(block.attrs);
|
|
31463
|
+
const baseX = columnX(state.columnIndex);
|
|
31464
|
+
const baseWidth = Math.min(columnWidth, measure.totalWidth || columnWidth);
|
|
31465
|
+
const { x, width } = applyTableIndent(baseX, baseWidth, tableIndent);
|
|
31399
31466
|
const fragment = {
|
|
31400
31467
|
kind: "table",
|
|
31401
31468
|
blockId: block.id,
|
|
31402
31469
|
fromRow: bodyStartRow,
|
|
31403
31470
|
toRow: endRow,
|
|
31404
|
-
x
|
|
31471
|
+
x,
|
|
31405
31472
|
y: state.cursorY,
|
|
31406
|
-
width
|
|
31473
|
+
width,
|
|
31407
31474
|
height: fragmentHeight,
|
|
31408
31475
|
continuesFromPrev: isTableContinuation,
|
|
31409
31476
|
continuesOnNext: endRow < block.rows.length || (partialRow ? !partialRow.isLastPart : false),
|
|
@@ -34574,6 +34641,7 @@ const rangesOverlap = (startA, endA, startB, endB) => {
|
|
|
34574
34641
|
return effectiveEndA > startB && startA < endB;
|
|
34575
34642
|
};
|
|
34576
34643
|
function hitTestPage(layout, point) {
|
|
34644
|
+
const pageGap = layout.pageGap ?? 0;
|
|
34577
34645
|
let cursorY = 0;
|
|
34578
34646
|
for (let pageIndex = 0; pageIndex < layout.pages.length; pageIndex += 1) {
|
|
34579
34647
|
const page = layout.pages[pageIndex];
|
|
@@ -34582,7 +34650,7 @@ function hitTestPage(layout, point) {
|
|
|
34582
34650
|
if (point.y >= top2 && point.y < bottom2) {
|
|
34583
34651
|
return { pageIndex, page };
|
|
34584
34652
|
}
|
|
34585
|
-
cursorY = bottom2;
|
|
34653
|
+
cursorY = bottom2 + pageGap;
|
|
34586
34654
|
}
|
|
34587
34655
|
return null;
|
|
34588
34656
|
}
|
|
@@ -34791,9 +34859,10 @@ function clickToPosition(layout, blocks, measures, containerPoint, domContainer,
|
|
|
34791
34859
|
if (!pageHit) {
|
|
34792
34860
|
return null;
|
|
34793
34861
|
}
|
|
34862
|
+
const pageGap = layout.pageGap ?? 0;
|
|
34794
34863
|
const pageRelativePoint = {
|
|
34795
34864
|
x: containerPoint.x,
|
|
34796
|
-
y: containerPoint.y - pageHit.pageIndex * layout.pageSize.h
|
|
34865
|
+
y: containerPoint.y - pageHit.pageIndex * (layout.pageSize.h + pageGap)
|
|
34797
34866
|
};
|
|
34798
34867
|
logClickStage("log", "page-hit", {
|
|
34799
34868
|
pageIndex: pageHit.pageIndex
|
|
@@ -35014,7 +35083,7 @@ function selectionToRects(layout, blocks, measures, from2, to) {
|
|
|
35014
35083
|
const rectY = fragment.y + lineOffset;
|
|
35015
35084
|
rects.push({
|
|
35016
35085
|
x: rectX,
|
|
35017
|
-
y: rectY + pageIndex * layout.pageSize.h,
|
|
35086
|
+
y: rectY + pageIndex * (layout.pageSize.h + (layout.pageGap ?? 0)),
|
|
35018
35087
|
width: rectWidth,
|
|
35019
35088
|
height: line.lineHeight,
|
|
35020
35089
|
pageIndex
|
|
@@ -35131,7 +35200,7 @@ function selectionToRects(layout, blocks, measures, from2, to) {
|
|
|
35131
35200
|
const rectY = fragment.y + rowOffset + blockTopCursor + lineOffset;
|
|
35132
35201
|
rects.push({
|
|
35133
35202
|
x: rectX,
|
|
35134
|
-
y: rectY + pageIndex * layout.pageSize.h,
|
|
35203
|
+
y: rectY + pageIndex * (layout.pageSize.h + (layout.pageGap ?? 0)),
|
|
35135
35204
|
width: rectWidth,
|
|
35136
35205
|
height: line.lineHeight,
|
|
35137
35206
|
pageIndex
|
|
@@ -35160,7 +35229,7 @@ function selectionToRects(layout, blocks, measures, from2, to) {
|
|
|
35160
35229
|
if (!rangesOverlap(pmRange.pmStart, pmRange.pmEnd, from2, to)) return;
|
|
35161
35230
|
rects.push({
|
|
35162
35231
|
x: fragment.x,
|
|
35163
|
-
y: fragment.y + pageIndex * layout.pageSize.h,
|
|
35232
|
+
y: fragment.y + pageIndex * (layout.pageSize.h + (layout.pageGap ?? 0)),
|
|
35164
35233
|
width: fragment.width,
|
|
35165
35234
|
height: fragment.height,
|
|
35166
35235
|
pageIndex
|
|
@@ -36189,7 +36258,15 @@ async function measureParagraphBlock(block, maxWidth) {
|
|
|
36189
36258
|
currentLine.width = roundValue(currentLine.width + boundarySpacing + wordOnlyWidth);
|
|
36190
36259
|
currentLine.maxFontInfo = updateMaxFontInfo(currentLine.maxFontSize, currentLine.maxFontInfo, run);
|
|
36191
36260
|
currentLine.maxFontSize = Math.max(currentLine.maxFontSize, run.fontSize);
|
|
36192
|
-
|
|
36261
|
+
const useExplicitXHere = wordIndex === 0 && segmentStartX !== void 0;
|
|
36262
|
+
appendSegment(
|
|
36263
|
+
currentLine.segments,
|
|
36264
|
+
runIndex,
|
|
36265
|
+
wordStartChar,
|
|
36266
|
+
wordEndNoSpace,
|
|
36267
|
+
wordOnlyWidth,
|
|
36268
|
+
useExplicitXHere ? segmentStartX : void 0
|
|
36269
|
+
);
|
|
36193
36270
|
const metrics = calculateTypographyMetrics(currentLine.maxFontSize, spacing, currentLine.maxFontInfo);
|
|
36194
36271
|
const completedLine = { ...currentLine, ...metrics };
|
|
36195
36272
|
addBarTabsToLine(completedLine);
|
|
@@ -38183,6 +38260,8 @@ function isValidFieldAnnotationAttributes(attrs) {
|
|
|
38183
38260
|
const FIELD_ANNOTATION_DATA_TYPE = "fieldAnnotation";
|
|
38184
38261
|
const DEFAULT_PAGE_SIZE = { w: 612, h: 792 };
|
|
38185
38262
|
const DEFAULT_MARGINS = { top: 72, right: 72, bottom: 72, left: 72 };
|
|
38263
|
+
const DEFAULT_VIRTUALIZED_PAGE_GAP = 72;
|
|
38264
|
+
const DEFAULT_PAGE_GAP = 24;
|
|
38186
38265
|
const WORD_CHARACTER_REGEX = /[\p{L}\p{N}''_~-]/u;
|
|
38187
38266
|
const MULTI_CLICK_TIME_THRESHOLD_MS = 400;
|
|
38188
38267
|
const MULTI_CLICK_DISTANCE_THRESHOLD_PX = 5;
|
|
@@ -39313,8 +39392,9 @@ const _PresentationEditor = class _PresentationEditor extends EventEmitter {
|
|
|
39313
39392
|
const rawRects = layoutRectSource();
|
|
39314
39393
|
if (!rawRects.length) return [];
|
|
39315
39394
|
const pageHeight = __privateGet(this, _session).mode === "body" ? __privateMethod(this, _PresentationEditor_instances, getBodyPageHeight_fn).call(this) : __privateMethod(this, _PresentationEditor_instances, getHeaderFooterPageHeight_fn).call(this);
|
|
39395
|
+
const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
|
|
39316
39396
|
return rawRects.map((rect) => {
|
|
39317
|
-
const pageLocalY = rect.y - rect.pageIndex * pageHeight;
|
|
39397
|
+
const pageLocalY = rect.y - rect.pageIndex * (pageHeight + pageGap);
|
|
39318
39398
|
const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect.pageIndex, rect.x, pageLocalY);
|
|
39319
39399
|
if (!coords) return null;
|
|
39320
39400
|
const absLeft = coords.x * zoom + overlayRect.left;
|
|
@@ -39566,7 +39646,8 @@ const _PresentationEditor = class _PresentationEditor extends EventEmitter {
|
|
|
39566
39646
|
return null;
|
|
39567
39647
|
}
|
|
39568
39648
|
const pageHeight = __privateMethod(this, _PresentationEditor_instances, getBodyPageHeight_fn).call(this);
|
|
39569
|
-
const
|
|
39649
|
+
const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
|
|
39650
|
+
const pageLocalY = rect2.y - rect2.pageIndex * (pageHeight + pageGap);
|
|
39570
39651
|
const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect2.pageIndex, rect2.x, pageLocalY);
|
|
39571
39652
|
if (!coords) {
|
|
39572
39653
|
return null;
|
|
@@ -40483,10 +40564,11 @@ renderRemoteSelection_fn = function(cursor) {
|
|
|
40483
40564
|
const color = __privateMethod(this, _PresentationEditor_instances, getValidatedColor_fn).call(this, cursor);
|
|
40484
40565
|
const opacity = __privateGet(this, _layoutOptions).presence?.highlightOpacity ?? 0.35;
|
|
40485
40566
|
const pageHeight = layout.pageSize?.h ?? __privateGet(this, _layoutOptions).pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
|
|
40567
|
+
const pageGap = layout.pageGap ?? 0;
|
|
40486
40568
|
const doc2 = __privateGet(this, _visibleHost).ownerDocument ?? document;
|
|
40487
40569
|
const limitedRects = rects.slice(0, MAX_SELECTION_RECTS_PER_USER);
|
|
40488
40570
|
limitedRects.forEach((rect) => {
|
|
40489
|
-
const pageLocalY = rect.y - rect.pageIndex * pageHeight;
|
|
40571
|
+
const pageLocalY = rect.y - rect.pageIndex * (pageHeight + pageGap);
|
|
40490
40572
|
const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect.pageIndex, rect.x, pageLocalY);
|
|
40491
40573
|
if (!coords) return;
|
|
40492
40574
|
const selectionEl = doc2.createElement("div");
|
|
@@ -41042,6 +41124,12 @@ rerender_fn = async function() {
|
|
|
41042
41124
|
return;
|
|
41043
41125
|
}
|
|
41044
41126
|
({ layout, measures } = result);
|
|
41127
|
+
if (__privateGet(this, _layoutOptions).virtualization?.enabled) {
|
|
41128
|
+
const gap = __privateGet(this, _layoutOptions).virtualization.gap ?? DEFAULT_VIRTUALIZED_PAGE_GAP;
|
|
41129
|
+
layout.pageGap = Math.max(0, gap);
|
|
41130
|
+
} else {
|
|
41131
|
+
layout.pageGap = DEFAULT_PAGE_GAP;
|
|
41132
|
+
}
|
|
41045
41133
|
headerLayouts = result.headers;
|
|
41046
41134
|
footerLayouts = result.footers;
|
|
41047
41135
|
} catch (error) {
|
|
@@ -41614,9 +41702,10 @@ hitTestHeaderFooterRegion_fn = function(x, y) {
|
|
|
41614
41702
|
const layout = __privateGet(this, _layoutState).layout;
|
|
41615
41703
|
if (!layout) return null;
|
|
41616
41704
|
const pageHeight = layout.pageSize?.h ?? __privateGet(this, _layoutOptions).pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
|
|
41705
|
+
const pageGap = layout.pageGap ?? 0;
|
|
41617
41706
|
if (pageHeight <= 0) return null;
|
|
41618
|
-
const pageIndex = Math.max(0, Math.floor(y / pageHeight));
|
|
41619
|
-
const pageLocalY = y - pageIndex * pageHeight;
|
|
41707
|
+
const pageIndex = Math.max(0, Math.floor(y / (pageHeight + pageGap)));
|
|
41708
|
+
const pageLocalY = y - pageIndex * (pageHeight + pageGap);
|
|
41620
41709
|
const headerRegion = __privateGet(this, _headerRegions).get(pageIndex);
|
|
41621
41710
|
if (headerRegion && __privateMethod(this, _PresentationEditor_instances, pointInRegion_fn).call(this, headerRegion, x, pageLocalY)) {
|
|
41622
41711
|
return headerRegion;
|
|
@@ -42070,8 +42159,9 @@ renderSelectionRects_fn = function(rects) {
|
|
|
42070
42159
|
return;
|
|
42071
42160
|
}
|
|
42072
42161
|
const pageHeight = __privateMethod(this, _PresentationEditor_instances, getBodyPageHeight_fn).call(this);
|
|
42162
|
+
const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
|
|
42073
42163
|
rects.forEach((rect, _index) => {
|
|
42074
|
-
const pageLocalY = rect.y - rect.pageIndex * pageHeight;
|
|
42164
|
+
const pageLocalY = rect.y - rect.pageIndex * (pageHeight + pageGap);
|
|
42075
42165
|
const coords = __privateMethod(this, _PresentationEditor_instances, convertPageLocalToOverlayCoords_fn).call(this, rect.pageIndex, rect.x, pageLocalY);
|
|
42076
42166
|
if (!coords) {
|
|
42077
42167
|
return;
|
|
@@ -42356,9 +42446,10 @@ convertPageLocalToOverlayCoords_fn = function(pageIndex, pageLocalX, pageLocalY)
|
|
|
42356
42446
|
return null;
|
|
42357
42447
|
}
|
|
42358
42448
|
const pageHeight = __privateGet(this, _layoutOptions).pageSize?.h ?? DEFAULT_PAGE_SIZE.h;
|
|
42449
|
+
const pageGap = __privateGet(this, _layoutState).layout?.pageGap ?? 0;
|
|
42359
42450
|
return {
|
|
42360
42451
|
x: pageLocalX,
|
|
42361
|
-
y: pageIndex * pageHeight + pageLocalY
|
|
42452
|
+
y: pageIndex * (pageHeight + pageGap) + pageLocalY
|
|
42362
42453
|
};
|
|
42363
42454
|
};
|
|
42364
42455
|
normalizeClientPoint_fn = function(clientX, clientY) {
|
|
@@ -56182,6 +56273,8 @@ const PassthroughInline = Node$1.create({
|
|
|
56182
56273
|
name: "passthroughInline",
|
|
56183
56274
|
group: "inline",
|
|
56184
56275
|
inline: true,
|
|
56276
|
+
// IMPORTANT: This node is registered in pm-adapter/src/constants.ts ATOMIC_INLINE_TYPES
|
|
56277
|
+
// If you change atom to false, you MUST remove it from that set to avoid positioning bugs
|
|
56185
56278
|
atom: true,
|
|
56186
56279
|
draggable: false,
|
|
56187
56280
|
selectable: false,
|
|
@@ -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-Aoe_RSZD.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Dfqm3VkC.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-Dfqm3VkC.js";
|
|
2
|
+
import "./chunks/converter-Aoe_RSZD.js";
|
|
3
|
+
import "./chunks/docx-zipper-Ct68kitw.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-Aoe_RSZD.js";
|
|
13
|
+
import { ac, i, a9, aQ } from "./chunks/converter-Aoe_RSZD.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-Dfqm3VkC.js";
|
|
15
|
+
import { z, F, B, T, w, C, x } from "./chunks/editor-Dfqm3VkC.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-Dj_HCM6i.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-Ct68kitw.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-BjELk3Xl.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-BY9i51n2.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-BjELk3Xl.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-BbXDEDIW.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-BY9i51n2.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-BE9w4viZ.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|