@coco-vexel/coco-office-editor 1.0.14 → 1.0.15

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/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { E as EditorReadOnlyError } from './read-only-1_LQCO1d.cjs';
2
- export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, f as EditorDocumentView, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, k as EditorHyperlink, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, q as EditorParagraphFormat, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, w as EditorRunFormat, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, F as EditorTableCellView, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-ttSpXtd3.cjs';
2
+ export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, f as EditorDocumentView, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, k as EditorHyperlink, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, q as EditorParagraphFormat, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, w as EditorRunFormat, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, F as EditorTableCellView, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-Cl0nc5HH.cjs';
3
3
  export { NATIVE_BLOCK_CLIPBOARD_TYPE, NativeClipboardParagraph, NativeClipboardRun, NativeWordCoverage, NormalizedDocumentHtmlPage, NormalizedDocumentHtmlPageOptions, ResolvedStyle, WordDocumentLike, WordEditorCoverage, buildWordEditorView, buildWordEditorViewFromDocx, buildWordEditorViewFromFlatOpc, buildWordEditorViewFromPackage, collectNativeParagraphs, colorToCss, nativeBlockClipboardText, parseNativeBlockClipboard, parseNativeClipboardHtml, renderNormalizedDocumentHtmlPage, resolveParagraphStyle, resolveRunStyle, resolveTableCellStyle, serializeNativeBlockClipboard, serializeNativeClipboardHtml, summarizeEditorCoverage, summarizeNativeCoverage } from './word.cjs';
4
- export { N as NativeAnchorLayoutMetadata, a as NativeBlockRangeReplacement, b as NativeCursorPoint, c as NativeDocumentReflowMeasurement, d as NativeParagraphLocation, e as NativePlainTextReplacement, f as NativeSelectedImage, g as NativeTableCellFormatPatch, h as NativeTableCellLocation, i as NativeTableCellPoint, j as NativeTableCellPosition, k as NativeTableCellRange, l as NativeTableClipboardCell, m as NativeTableEditResult, n as NativeTableLocation, o as NativeTablePaginationSummary, p as NativeTableRangeEditResult, q as NativeTableRowBlockSplitPlan, r as NativeTableRowBlockSplitResult, s as NativeTableRowPaginationAnalysis, t as NativeTableRowPaginationKind, u as NativeTableRowPaginationRisk, v as NativeTableRowTextSplitPlan, w as NativeTableStructureOperation, x as NativeWordBlockNode, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, B as NativeWordDocument, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, J as NativeWordListType, K as NativeWordPageBreakNode, L as NativeWordParagraphNode, M as NativeWordRevisionMark, O as NativeWordTableCellNode, P as NativeWordTableNode, Q as NativeWordTableRowNode, R as NativeWordTextMark, S as NativeWordTextNode, T as ResolvedWordOoxmlPatchTarget, U as SkippedWordOoxmlPatch, V as UnresolvedWordOoxmlPatchTarget, W as UnsupportedNativeWordChange, X as WordEditorChangeEvent, Y as WordEditorCommand, Z as WordEditorCommandState, _ as WordEditorEngineKind, $ as WordEditorFormatValue, a0 as WordEditorHyperlink, a1 as WordEditorImageInsertOptions, a2 as WordEditorImageState, a3 as WordEditorLineSpacingState, a4 as WordEditorRuntime, a5 as WordEditorRuntimeEvent, a6 as WordEditorRuntimeEventMap, a7 as WordEditorRuntimeOptions, a8 as WordEditorSearchMatch, a9 as WordEditorSearchOptions, aa as WordEditorSearchState, ab as WordEditorSelection, ac as WordEditorSelectionChangeEvent, ad as WordEditorSelectionPoint, ae as WordEditorTableCellPoint, af as WordEditorTableState, ag as WordOoxmlPatch, ah as WordOoxmlPatchApplyResult, ai as WordOoxmlPatchKind, aj as WordOoxmlPatchPlan, ak as WordOoxmlPatchTargetResolution, al as adjacentNativeListNumbering, am as allNativeParagraphs, an as analyzeNativeTableRowPagination, ao as applyNativeWordChangesToPackage, ap as applyWordOoxmlPatches, aq as bodyParagraphs, ar as canDispatchNativeWordCommand, as as clearNativeImageSelection, at as cloneNativeWordBlocks, au as createNativeListNumbering, av as createNativeParaId, aw as createNativeSelectionRange, ax as createNativeTextRange, ay as createNativeWordDocument, az as currentNativeCursor, aA as currentNativeSelection, aB as defineNativeWordElements, aC as findNativeParagraph, aD as findNativeParagraphLocation, aE as findNativeTableCellLocation, aF as findNativeTableLocation, aG as getNativeWordCommandState, aH as imageOffset, aI as layoutNativePageAnnotationBubbles, aJ as measureNativeDocumentReflowFromParagraph, aK as nativeAddComment, aL as nativeAddFormatRevision, aM as nativeAddRevision, aN as nativeAnchorLayoutMetadata, aO as nativeClearRunFormat, aP as nativeClearTableCellRange, aQ as nativeCopyBlockRange, aR as nativeCursorFromPoint, aS as nativeDeleteBackward, aT as nativeDeleteComment, aU as nativeDeleteForward, aV as nativeDeleteImage, aW as nativeDeleteRange, aX as nativeDeleteTable, aY as nativeDeleteTextRangeAcrossParagraphs, aZ as nativeDrawingWidthCss, a_ as nativeEditTableStructure, a$ as nativeInsertImage, b0 as nativeInsertPageBreak, b1 as nativeInsertTable, b2 as nativeInsertText, b3 as nativeLineStrokeStyle, b4 as nativeListIndent, b5 as nativeListType, b6 as nativeMergeTableCells, b7 as nativeNumberingAtLevel, b8 as nativePageBreakAt, b9 as nativeParagraphText, ba as nativeRangeContainsPageBreak, bb as nativeReplaceBlockRangeAcrossParagraphs, bc as nativeReplaceRange, bd as nativeReplaceRangeWithBlocks, be as nativeReplaceTableCellRangeContent, bf as nativeReplaceTableCellRangeText, bg as nativeReplaceTextRangeAcrossParagraphs, bh as nativeReplaceTextRangeWithParagraphs, bi as nativeResolveFormatRevision, bj as nativeResolveImageFormatRevision, bk as nativeResolveImageRevision, bl as nativeResolveRevision, bm as nativeSelection, bn as nativeSelectionFromCursor, bo as nativeSetHyperlink, bp as nativeSetImageSize, bq as nativeSetParagraphFormat, br as nativeSetParagraphList, bs as nativeSetRunFormat, bt as nativeSetTableCellFormat, bu as nativeSetTableCellRangeFormat, bv as nativeSplitParagraph, bw as nativeSplitTableCell, bx as nativeSyncParagraphText, by as nativeTableCellsInRange, bz as nativeTableSupportsStructuralEditing, bA as nativeTextRangeIsBold, bB as nativeUpdateComment, bC as paginateNativeDocument, bD as parentNativeParagraph, bE as planWordOoxmlPatch, bF as planWordOoxmlPatches, bG as previousNativeParagraphId, bH as rebuildNativeTableFragmentsFromParagraph, bI as reflowNativeDocumentFromParagraph, bJ as refreshNativeNumberingLabels, bK as refreshNativePageCommentBubbles, bL as renderNativeBlock, bM as renderNativeDocument, bN as renderNativeImage, bO as renderNativeParagraph, bP as renderNativeTable, bQ as renderNativeWordEditor, bR as resolveNativeSectionPageNumberStarts, bS as resolveNativeTableCellBorders, bT as resolveWordOoxmlPatchTargets, bU as restoreNativeCursor, bV as restoreNativeElementSelection, bW as restoreNativeTextSelection, bX as searchNativeWordDocument, bY as selectNativeImage, bZ as splitNativeTableRowAtBlockBoundary, b_ as splitNativeTableRowAtTextOffset, b$ as summarizeNativeTablePagination } from './native-B7rEV_h6.cjs';
4
+ export { N as NativeAnchorLayoutMetadata, a as NativeBlockRangeReplacement, b as NativeCursorPoint, c as NativeDocumentReflowMeasurement, d as NativeParagraphLocation, e as NativePlainTextReplacement, f as NativeSelectedImage, g as NativeTableCellFormatPatch, h as NativeTableCellLocation, i as NativeTableCellPoint, j as NativeTableCellPosition, k as NativeTableCellRange, l as NativeTableClipboardCell, m as NativeTableEditResult, n as NativeTableLocation, o as NativeTablePaginationSummary, p as NativeTableRangeEditResult, q as NativeTableRowBlockSplitPlan, r as NativeTableRowBlockSplitResult, s as NativeTableRowPaginationAnalysis, t as NativeTableRowPaginationKind, u as NativeTableRowPaginationRisk, v as NativeTableRowTextSplitPlan, w as NativeTableStructureOperation, x as NativeWordBlockNode, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, B as NativeWordDocument, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, J as NativeWordListType, K as NativeWordPageBreakNode, L as NativeWordParagraphNode, M as NativeWordRevisionMark, O as NativeWordTableCellNode, P as NativeWordTableNode, Q as NativeWordTableRowNode, R as NativeWordTextMark, S as NativeWordTextNode, T as ResolvedWordOoxmlPatchTarget, U as SkippedWordOoxmlPatch, V as UnresolvedWordOoxmlPatchTarget, W as UnsupportedNativeWordChange, X as WordEditorChangeEvent, Y as WordEditorCommand, Z as WordEditorCommandState, _ as WordEditorEngineKind, $ as WordEditorFormatValue, a0 as WordEditorHyperlink, a1 as WordEditorImageInsertOptions, a2 as WordEditorImageState, a3 as WordEditorLineSpacingState, a4 as WordEditorRuntime, a5 as WordEditorRuntimeEvent, a6 as WordEditorRuntimeEventMap, a7 as WordEditorRuntimeOptions, a8 as WordEditorSearchMatch, a9 as WordEditorSearchOptions, aa as WordEditorSearchState, ab as WordEditorSelection, ac as WordEditorSelectionChangeEvent, ad as WordEditorSelectionPoint, ae as WordEditorTableCellPoint, af as WordEditorTableState, ag as WordOoxmlPatch, ah as WordOoxmlPatchApplyResult, ai as WordOoxmlPatchKind, aj as WordOoxmlPatchPlan, ak as WordOoxmlPatchTargetResolution, al as adjacentNativeListNumbering, am as allNativeParagraphs, an as analyzeNativeTableRowPagination, ao as applyNativeWordChangesToPackage, ap as applyWordOoxmlPatches, aq as bodyParagraphs, ar as canDispatchNativeWordCommand, as as clearNativeImageSelection, at as cloneNativeWordBlocks, au as createNativeListNumbering, av as createNativeParaId, aw as createNativeSelectionRange, ax as createNativeTextRange, ay as createNativeWordDocument, az as currentNativeCursor, aA as currentNativeSelection, aB as defineNativeWordElements, aC as findNativeParagraph, aD as findNativeParagraphLocation, aE as findNativeTableCellLocation, aF as findNativeTableLocation, aG as getNativeWordCommandState, aH as imageOffset, aI as layoutNativePageAnnotationBubbles, aJ as measureNativeDocumentReflowFromParagraph, aK as nativeAddComment, aL as nativeAddFormatRevision, aM as nativeAddRevision, aN as nativeAnchorLayoutMetadata, aO as nativeClearRunFormat, aP as nativeClearTableCellRange, aQ as nativeCopyBlockRange, aR as nativeCursorFromPoint, aS as nativeDeleteBackward, aT as nativeDeleteComment, aU as nativeDeleteForward, aV as nativeDeleteImage, aW as nativeDeleteRange, aX as nativeDeleteTable, aY as nativeDeleteTextRangeAcrossParagraphs, aZ as nativeDrawingWidthCss, a_ as nativeEditTableStructure, a$ as nativeInsertImage, b0 as nativeInsertPageBreak, b1 as nativeInsertTable, b2 as nativeInsertText, b3 as nativeLineStrokeStyle, b4 as nativeListIndent, b5 as nativeListType, b6 as nativeMergeTableCells, b7 as nativeNumberingAtLevel, b8 as nativePageBreakAt, b9 as nativeParagraphText, ba as nativeRangeContainsPageBreak, bb as nativeReplaceBlockRangeAcrossParagraphs, bc as nativeReplaceRange, bd as nativeReplaceRangeWithBlocks, be as nativeReplaceTableCellRangeContent, bf as nativeReplaceTableCellRangeText, bg as nativeReplaceTextRangeAcrossParagraphs, bh as nativeReplaceTextRangeWithParagraphs, bi as nativeResolveFormatRevision, bj as nativeResolveImageFormatRevision, bk as nativeResolveImageRevision, bl as nativeResolveRevision, bm as nativeSelection, bn as nativeSelectionFromCursor, bo as nativeSetHyperlink, bp as nativeSetImageSize, bq as nativeSetParagraphFormat, br as nativeSetParagraphList, bs as nativeSetRunFormat, bt as nativeSetTableCellFormat, bu as nativeSetTableCellRangeFormat, bv as nativeSplitParagraph, bw as nativeSplitTableCell, bx as nativeSyncParagraphText, by as nativeTableCellsInRange, bz as nativeTableSupportsStructuralEditing, bA as nativeTextRangeIsBold, bB as nativeUpdateComment, bC as paginateNativeDocument, bD as parentNativeParagraph, bE as planWordOoxmlPatch, bF as planWordOoxmlPatches, bG as previousNativeParagraphId, bH as rebuildNativeTableFragmentsFromParagraph, bI as reflowNativeDocumentFromParagraph, bJ as refreshNativeNumberingLabels, bK as refreshNativePageCommentBubbles, bL as renderNativeBlock, bM as renderNativeDocument, bN as renderNativeImage, bO as renderNativeParagraph, bP as renderNativeTable, bQ as renderNativeWordEditor, bR as resolveNativeSectionPageNumberStarts, bS as resolveNativeTableCellBorders, bT as resolveWordOoxmlPatchTargets, bU as restoreNativeCursor, bV as restoreNativeElementSelection, bW as restoreNativeTextSelection, bX as searchNativeWordDocument, bY as selectNativeImage, bZ as splitNativeTableRowAtBlockBoundary, b_ as splitNativeTableRowAtTextOffset, b$ as summarizeNativeTablePagination } from './native-DD66OEQ6.cjs';
5
5
  export { WordAnnotationEditChangeDraft, WordAnnotationEditOperation, WordBlockEditChangeDraft, WordBlockEditOperation, WordBlockSnapshot, WordChangeSet, WordChangeStatus, WordChangeTarget, WordContent, WordContentEditChangeDraft, WordContentEditOperation, WordEditChange, WordEditChangeBase, WordEditChangeDraft, WordEditMark, WordEditingPluginOptions, WordEditorRange, WordImageContent, WordMarkEditChangeDraft, WordParagraphAlignment, WordParagraphBlockSnapshot, WordParagraphEditChangeDraft, WordParagraphRange, WordRevisionEditChangeDraft, WordRevisionEditOperation, WordSelectedParagraph, WordSelectionInfo, WordTableBlockSnapshot, WordTableEditChangeDraft, WordTableEditOperation, WordTextContent, WordTextEditChangeDraft, WordTextEditOperation, createWordEditingPlugin, getWordChangeSet, getWordSelectionInfo, setColor, setFontSize, setParagraphAlign, toggleBold, wordEditingPluginKey } from './word-editing.cjs';
6
6
  export { BuildSpreadsheetRenderModelOptions, SPREADSHEET_CLIPBOARD_MIME, SPREADSHEET_COLUMN_RESIZE_MIN, SPREADSHEET_RESIZE_HIT_TOLERANCE, SPREADSHEET_ROW_RESIZE_MIN, SpreadsheetAgentAction, SpreadsheetAgentActionApplyResult, SpreadsheetAgentActionContext, SpreadsheetAgentActionPreview, SpreadsheetAgentTransactionPreview, SpreadsheetAgentTransactionRunner, SpreadsheetAutoFillCell, SpreadsheetAutoFillDirection, SpreadsheetAutoFillPlan, SpreadsheetCanvasRenderer, SpreadsheetCanvasRendererOptions, SpreadsheetCellEditHistoryOptions, SpreadsheetCellEditor, SpreadsheetCellEditorOptions, SpreadsheetClipboardMerge, SpreadsheetClipboardPayload, SpreadsheetColumnFilter, SpreadsheetEditor, SpreadsheetEditorCellState, SpreadsheetEditorChangeEvent, SpreadsheetEditorOptions, SpreadsheetEditorRuntime, SpreadsheetEditorRuntimeOptions, SpreadsheetEditorRuntimeState, SpreadsheetEditorStateEvent, SpreadsheetFindMatch, SpreadsheetFindOptions, SpreadsheetFreezeState, SpreadsheetHitCell, SpreadsheetHitColumnHeader, SpreadsheetHitCorner, SpreadsheetHitNone, SpreadsheetHitResult, SpreadsheetHitRowHeader, SpreadsheetLayout, SpreadsheetLayoutOptions, SpreadsheetMergeInfo, SpreadsheetMixedValue, SpreadsheetPasteMode, SpreadsheetPasteOptions, SpreadsheetPoint, SpreadsheetPreviewCellChangeSummary, SpreadsheetPreviewDiffSummary, SpreadsheetRange, SpreadsheetRect, SpreadsheetRenderCell, SpreadsheetReplaceTarget, SpreadsheetResizeDragState, SpreadsheetResizeHandle, SpreadsheetResolvedCellStyle, SpreadsheetScrollState, SpreadsheetScrollbarGeometry, SpreadsheetScrollbarState, SpreadsheetSelectionFormatState, SpreadsheetSelectionState, SpreadsheetSheetRenderModel, SpreadsheetSize, SpreadsheetSortDirection, SpreadsheetTextStyle, SpreadsheetUserTransactionOptions, SpreadsheetViewport, SpreadsheetViewportKind, SpreadsheetViewportManager, SpreadsheetViewportManagerOptions, SpreadsheetViewportState, applySpreadsheetAgentAction, applyWheelDelta, buildSpreadsheetAutoFillPlan, buildSpreadsheetClipboardPayload, buildSpreadsheetReplacePlan, buildSpreadsheetSheetRenderModel, clampScroll, clearSpreadsheetRange, clipboardHtml, clipboardToken, computeScrollbarState, copybookGuideAppearance, createColumnRangeSelection, createColumnSelection, createRowRangeSelection, createRowSelection, createSelection, cssPixelsToExcelColumnWidth, excelColumnWidthToCssPixels, expandRangeForMergedRanges, expandSelectionForMergedRanges, extendSelection, findSpreadsheetMatches, formatSpreadsheetDisplayValue, formulasForPaste, freezeStateFromPane, freezeStateFromSheet, getRenderCell, hitSpreadsheetResizeHandle, moveSelection, nextSpreadsheetMatch, normalizeSelectionRange, parseTsv, previewSpreadsheetAgentAction, rangeAddressForMatrix, rangeForSpreadsheetMatch, readSpreadsheetClipboardPayload, renderSpreadsheetEditor, resolveSpreadsheetCellStyle, resolveSpreadsheetRangeBorder, resolveSpreadsheetRunStyle, rowColumnKey, scrollFromThumbPosition, selectionAfterColumnDeletion, selectionAfterRowDeletion, serializeRangeToTsv, serializeSpreadsheetClipboardPayload, setSpreadsheetCellFormula, setSpreadsheetCellValue, setSpreadsheetColumnWidth, setSpreadsheetRangeValues, setSpreadsheetRowHeight, spreadsheetFilterValues, spreadsheetRowsForColumnFilters, spreadsheetRowsForFilter, spreadsheetSortRows, spreadsheetVisibleFilterValues, startSpreadsheetResizeDrag, summarizeSpreadsheetSelectionFormat, supportsSpreadsheetAutoFill, updateSpreadsheetResizeDrag } from './spreadsheet.cjs';
7
7
  export { D as DEFAULT_PPT_SLIDE_SIZE, N as NativePptEditor, a as NativePptEditorOptions, P as PptEditorChangeEvent, b as PptEditorCommand, c as PptEditorFontResource, d as PptEditorImagePreviewRequest, e as PptEditorImageResource, f as PptEditorRuntimeEvent, g as PptEditorRuntimeEventMap, h as PptEditorSelection, i as PptEditorSelectionChangeEvent, j as PptEditorSession, k as PptEditorSessionOptions, l as PptEditorView, m as PptEditorViewOptions, n as PptPresentationScene, o as PptSceneGroupContext, p as PptSceneNode, q as PptSceneNodeCapabilities, r as PptSceneNodeCapability, s as PptSceneNodeKind, t as PptSceneRect, u as PptSlideScene, v as buildPptEditorViewFromModel, w as buildPptEditorViewFromPptx, x as buildPptEditorViewFromPresentation, y as buildPptPresentationScene, z as buildPptSceneNode, A as buildPptSlideScene, B as findPptSceneNode, C as findPptSceneSlide, E as isPptShapeEditable, F as normalizePptGeometry, G as pptSceneGeometryToSourceGeometry, H as pptSceneNodeCapabilities, I as renderNativePptEditor } from './native-DxWyYM4C.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { E as EditorReadOnlyError } from './read-only-1_LQCO1d.js';
2
- export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, f as EditorDocumentView, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, k as EditorHyperlink, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, q as EditorParagraphFormat, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, w as EditorRunFormat, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, F as EditorTableCellView, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-ttSpXtd3.js';
2
+ export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, f as EditorDocumentView, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, k as EditorHyperlink, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, q as EditorParagraphFormat, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, w as EditorRunFormat, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, F as EditorTableCellView, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-Cl0nc5HH.js';
3
3
  export { NATIVE_BLOCK_CLIPBOARD_TYPE, NativeClipboardParagraph, NativeClipboardRun, NativeWordCoverage, NormalizedDocumentHtmlPage, NormalizedDocumentHtmlPageOptions, ResolvedStyle, WordDocumentLike, WordEditorCoverage, buildWordEditorView, buildWordEditorViewFromDocx, buildWordEditorViewFromFlatOpc, buildWordEditorViewFromPackage, collectNativeParagraphs, colorToCss, nativeBlockClipboardText, parseNativeBlockClipboard, parseNativeClipboardHtml, renderNormalizedDocumentHtmlPage, resolveParagraphStyle, resolveRunStyle, resolveTableCellStyle, serializeNativeBlockClipboard, serializeNativeClipboardHtml, summarizeEditorCoverage, summarizeNativeCoverage } from './word.js';
4
- export { N as NativeAnchorLayoutMetadata, a as NativeBlockRangeReplacement, b as NativeCursorPoint, c as NativeDocumentReflowMeasurement, d as NativeParagraphLocation, e as NativePlainTextReplacement, f as NativeSelectedImage, g as NativeTableCellFormatPatch, h as NativeTableCellLocation, i as NativeTableCellPoint, j as NativeTableCellPosition, k as NativeTableCellRange, l as NativeTableClipboardCell, m as NativeTableEditResult, n as NativeTableLocation, o as NativeTablePaginationSummary, p as NativeTableRangeEditResult, q as NativeTableRowBlockSplitPlan, r as NativeTableRowBlockSplitResult, s as NativeTableRowPaginationAnalysis, t as NativeTableRowPaginationKind, u as NativeTableRowPaginationRisk, v as NativeTableRowTextSplitPlan, w as NativeTableStructureOperation, x as NativeWordBlockNode, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, B as NativeWordDocument, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, J as NativeWordListType, K as NativeWordPageBreakNode, L as NativeWordParagraphNode, M as NativeWordRevisionMark, O as NativeWordTableCellNode, P as NativeWordTableNode, Q as NativeWordTableRowNode, R as NativeWordTextMark, S as NativeWordTextNode, T as ResolvedWordOoxmlPatchTarget, U as SkippedWordOoxmlPatch, V as UnresolvedWordOoxmlPatchTarget, W as UnsupportedNativeWordChange, X as WordEditorChangeEvent, Y as WordEditorCommand, Z as WordEditorCommandState, _ as WordEditorEngineKind, $ as WordEditorFormatValue, a0 as WordEditorHyperlink, a1 as WordEditorImageInsertOptions, a2 as WordEditorImageState, a3 as WordEditorLineSpacingState, a4 as WordEditorRuntime, a5 as WordEditorRuntimeEvent, a6 as WordEditorRuntimeEventMap, a7 as WordEditorRuntimeOptions, a8 as WordEditorSearchMatch, a9 as WordEditorSearchOptions, aa as WordEditorSearchState, ab as WordEditorSelection, ac as WordEditorSelectionChangeEvent, ad as WordEditorSelectionPoint, ae as WordEditorTableCellPoint, af as WordEditorTableState, ag as WordOoxmlPatch, ah as WordOoxmlPatchApplyResult, ai as WordOoxmlPatchKind, aj as WordOoxmlPatchPlan, ak as WordOoxmlPatchTargetResolution, al as adjacentNativeListNumbering, am as allNativeParagraphs, an as analyzeNativeTableRowPagination, ao as applyNativeWordChangesToPackage, ap as applyWordOoxmlPatches, aq as bodyParagraphs, ar as canDispatchNativeWordCommand, as as clearNativeImageSelection, at as cloneNativeWordBlocks, au as createNativeListNumbering, av as createNativeParaId, aw as createNativeSelectionRange, ax as createNativeTextRange, ay as createNativeWordDocument, az as currentNativeCursor, aA as currentNativeSelection, aB as defineNativeWordElements, aC as findNativeParagraph, aD as findNativeParagraphLocation, aE as findNativeTableCellLocation, aF as findNativeTableLocation, aG as getNativeWordCommandState, aH as imageOffset, aI as layoutNativePageAnnotationBubbles, aJ as measureNativeDocumentReflowFromParagraph, aK as nativeAddComment, aL as nativeAddFormatRevision, aM as nativeAddRevision, aN as nativeAnchorLayoutMetadata, aO as nativeClearRunFormat, aP as nativeClearTableCellRange, aQ as nativeCopyBlockRange, aR as nativeCursorFromPoint, aS as nativeDeleteBackward, aT as nativeDeleteComment, aU as nativeDeleteForward, aV as nativeDeleteImage, aW as nativeDeleteRange, aX as nativeDeleteTable, aY as nativeDeleteTextRangeAcrossParagraphs, aZ as nativeDrawingWidthCss, a_ as nativeEditTableStructure, a$ as nativeInsertImage, b0 as nativeInsertPageBreak, b1 as nativeInsertTable, b2 as nativeInsertText, b3 as nativeLineStrokeStyle, b4 as nativeListIndent, b5 as nativeListType, b6 as nativeMergeTableCells, b7 as nativeNumberingAtLevel, b8 as nativePageBreakAt, b9 as nativeParagraphText, ba as nativeRangeContainsPageBreak, bb as nativeReplaceBlockRangeAcrossParagraphs, bc as nativeReplaceRange, bd as nativeReplaceRangeWithBlocks, be as nativeReplaceTableCellRangeContent, bf as nativeReplaceTableCellRangeText, bg as nativeReplaceTextRangeAcrossParagraphs, bh as nativeReplaceTextRangeWithParagraphs, bi as nativeResolveFormatRevision, bj as nativeResolveImageFormatRevision, bk as nativeResolveImageRevision, bl as nativeResolveRevision, bm as nativeSelection, bn as nativeSelectionFromCursor, bo as nativeSetHyperlink, bp as nativeSetImageSize, bq as nativeSetParagraphFormat, br as nativeSetParagraphList, bs as nativeSetRunFormat, bt as nativeSetTableCellFormat, bu as nativeSetTableCellRangeFormat, bv as nativeSplitParagraph, bw as nativeSplitTableCell, bx as nativeSyncParagraphText, by as nativeTableCellsInRange, bz as nativeTableSupportsStructuralEditing, bA as nativeTextRangeIsBold, bB as nativeUpdateComment, bC as paginateNativeDocument, bD as parentNativeParagraph, bE as planWordOoxmlPatch, bF as planWordOoxmlPatches, bG as previousNativeParagraphId, bH as rebuildNativeTableFragmentsFromParagraph, bI as reflowNativeDocumentFromParagraph, bJ as refreshNativeNumberingLabels, bK as refreshNativePageCommentBubbles, bL as renderNativeBlock, bM as renderNativeDocument, bN as renderNativeImage, bO as renderNativeParagraph, bP as renderNativeTable, bQ as renderNativeWordEditor, bR as resolveNativeSectionPageNumberStarts, bS as resolveNativeTableCellBorders, bT as resolveWordOoxmlPatchTargets, bU as restoreNativeCursor, bV as restoreNativeElementSelection, bW as restoreNativeTextSelection, bX as searchNativeWordDocument, bY as selectNativeImage, bZ as splitNativeTableRowAtBlockBoundary, b_ as splitNativeTableRowAtTextOffset, b$ as summarizeNativeTablePagination } from './native-DQL69NnL.js';
4
+ export { N as NativeAnchorLayoutMetadata, a as NativeBlockRangeReplacement, b as NativeCursorPoint, c as NativeDocumentReflowMeasurement, d as NativeParagraphLocation, e as NativePlainTextReplacement, f as NativeSelectedImage, g as NativeTableCellFormatPatch, h as NativeTableCellLocation, i as NativeTableCellPoint, j as NativeTableCellPosition, k as NativeTableCellRange, l as NativeTableClipboardCell, m as NativeTableEditResult, n as NativeTableLocation, o as NativeTablePaginationSummary, p as NativeTableRangeEditResult, q as NativeTableRowBlockSplitPlan, r as NativeTableRowBlockSplitResult, s as NativeTableRowPaginationAnalysis, t as NativeTableRowPaginationKind, u as NativeTableRowPaginationRisk, v as NativeTableRowTextSplitPlan, w as NativeTableStructureOperation, x as NativeWordBlockNode, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, B as NativeWordDocument, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, J as NativeWordListType, K as NativeWordPageBreakNode, L as NativeWordParagraphNode, M as NativeWordRevisionMark, O as NativeWordTableCellNode, P as NativeWordTableNode, Q as NativeWordTableRowNode, R as NativeWordTextMark, S as NativeWordTextNode, T as ResolvedWordOoxmlPatchTarget, U as SkippedWordOoxmlPatch, V as UnresolvedWordOoxmlPatchTarget, W as UnsupportedNativeWordChange, X as WordEditorChangeEvent, Y as WordEditorCommand, Z as WordEditorCommandState, _ as WordEditorEngineKind, $ as WordEditorFormatValue, a0 as WordEditorHyperlink, a1 as WordEditorImageInsertOptions, a2 as WordEditorImageState, a3 as WordEditorLineSpacingState, a4 as WordEditorRuntime, a5 as WordEditorRuntimeEvent, a6 as WordEditorRuntimeEventMap, a7 as WordEditorRuntimeOptions, a8 as WordEditorSearchMatch, a9 as WordEditorSearchOptions, aa as WordEditorSearchState, ab as WordEditorSelection, ac as WordEditorSelectionChangeEvent, ad as WordEditorSelectionPoint, ae as WordEditorTableCellPoint, af as WordEditorTableState, ag as WordOoxmlPatch, ah as WordOoxmlPatchApplyResult, ai as WordOoxmlPatchKind, aj as WordOoxmlPatchPlan, ak as WordOoxmlPatchTargetResolution, al as adjacentNativeListNumbering, am as allNativeParagraphs, an as analyzeNativeTableRowPagination, ao as applyNativeWordChangesToPackage, ap as applyWordOoxmlPatches, aq as bodyParagraphs, ar as canDispatchNativeWordCommand, as as clearNativeImageSelection, at as cloneNativeWordBlocks, au as createNativeListNumbering, av as createNativeParaId, aw as createNativeSelectionRange, ax as createNativeTextRange, ay as createNativeWordDocument, az as currentNativeCursor, aA as currentNativeSelection, aB as defineNativeWordElements, aC as findNativeParagraph, aD as findNativeParagraphLocation, aE as findNativeTableCellLocation, aF as findNativeTableLocation, aG as getNativeWordCommandState, aH as imageOffset, aI as layoutNativePageAnnotationBubbles, aJ as measureNativeDocumentReflowFromParagraph, aK as nativeAddComment, aL as nativeAddFormatRevision, aM as nativeAddRevision, aN as nativeAnchorLayoutMetadata, aO as nativeClearRunFormat, aP as nativeClearTableCellRange, aQ as nativeCopyBlockRange, aR as nativeCursorFromPoint, aS as nativeDeleteBackward, aT as nativeDeleteComment, aU as nativeDeleteForward, aV as nativeDeleteImage, aW as nativeDeleteRange, aX as nativeDeleteTable, aY as nativeDeleteTextRangeAcrossParagraphs, aZ as nativeDrawingWidthCss, a_ as nativeEditTableStructure, a$ as nativeInsertImage, b0 as nativeInsertPageBreak, b1 as nativeInsertTable, b2 as nativeInsertText, b3 as nativeLineStrokeStyle, b4 as nativeListIndent, b5 as nativeListType, b6 as nativeMergeTableCells, b7 as nativeNumberingAtLevel, b8 as nativePageBreakAt, b9 as nativeParagraphText, ba as nativeRangeContainsPageBreak, bb as nativeReplaceBlockRangeAcrossParagraphs, bc as nativeReplaceRange, bd as nativeReplaceRangeWithBlocks, be as nativeReplaceTableCellRangeContent, bf as nativeReplaceTableCellRangeText, bg as nativeReplaceTextRangeAcrossParagraphs, bh as nativeReplaceTextRangeWithParagraphs, bi as nativeResolveFormatRevision, bj as nativeResolveImageFormatRevision, bk as nativeResolveImageRevision, bl as nativeResolveRevision, bm as nativeSelection, bn as nativeSelectionFromCursor, bo as nativeSetHyperlink, bp as nativeSetImageSize, bq as nativeSetParagraphFormat, br as nativeSetParagraphList, bs as nativeSetRunFormat, bt as nativeSetTableCellFormat, bu as nativeSetTableCellRangeFormat, bv as nativeSplitParagraph, bw as nativeSplitTableCell, bx as nativeSyncParagraphText, by as nativeTableCellsInRange, bz as nativeTableSupportsStructuralEditing, bA as nativeTextRangeIsBold, bB as nativeUpdateComment, bC as paginateNativeDocument, bD as parentNativeParagraph, bE as planWordOoxmlPatch, bF as planWordOoxmlPatches, bG as previousNativeParagraphId, bH as rebuildNativeTableFragmentsFromParagraph, bI as reflowNativeDocumentFromParagraph, bJ as refreshNativeNumberingLabels, bK as refreshNativePageCommentBubbles, bL as renderNativeBlock, bM as renderNativeDocument, bN as renderNativeImage, bO as renderNativeParagraph, bP as renderNativeTable, bQ as renderNativeWordEditor, bR as resolveNativeSectionPageNumberStarts, bS as resolveNativeTableCellBorders, bT as resolveWordOoxmlPatchTargets, bU as restoreNativeCursor, bV as restoreNativeElementSelection, bW as restoreNativeTextSelection, bX as searchNativeWordDocument, bY as selectNativeImage, bZ as splitNativeTableRowAtBlockBoundary, b_ as splitNativeTableRowAtTextOffset, b$ as summarizeNativeTablePagination } from './native-aRa_2i4F.js';
5
5
  export { WordAnnotationEditChangeDraft, WordAnnotationEditOperation, WordBlockEditChangeDraft, WordBlockEditOperation, WordBlockSnapshot, WordChangeSet, WordChangeStatus, WordChangeTarget, WordContent, WordContentEditChangeDraft, WordContentEditOperation, WordEditChange, WordEditChangeBase, WordEditChangeDraft, WordEditMark, WordEditingPluginOptions, WordEditorRange, WordImageContent, WordMarkEditChangeDraft, WordParagraphAlignment, WordParagraphBlockSnapshot, WordParagraphEditChangeDraft, WordParagraphRange, WordRevisionEditChangeDraft, WordRevisionEditOperation, WordSelectedParagraph, WordSelectionInfo, WordTableBlockSnapshot, WordTableEditChangeDraft, WordTableEditOperation, WordTextContent, WordTextEditChangeDraft, WordTextEditOperation, createWordEditingPlugin, getWordChangeSet, getWordSelectionInfo, setColor, setFontSize, setParagraphAlign, toggleBold, wordEditingPluginKey } from './word-editing.js';
6
6
  export { BuildSpreadsheetRenderModelOptions, SPREADSHEET_CLIPBOARD_MIME, SPREADSHEET_COLUMN_RESIZE_MIN, SPREADSHEET_RESIZE_HIT_TOLERANCE, SPREADSHEET_ROW_RESIZE_MIN, SpreadsheetAgentAction, SpreadsheetAgentActionApplyResult, SpreadsheetAgentActionContext, SpreadsheetAgentActionPreview, SpreadsheetAgentTransactionPreview, SpreadsheetAgentTransactionRunner, SpreadsheetAutoFillCell, SpreadsheetAutoFillDirection, SpreadsheetAutoFillPlan, SpreadsheetCanvasRenderer, SpreadsheetCanvasRendererOptions, SpreadsheetCellEditHistoryOptions, SpreadsheetCellEditor, SpreadsheetCellEditorOptions, SpreadsheetClipboardMerge, SpreadsheetClipboardPayload, SpreadsheetColumnFilter, SpreadsheetEditor, SpreadsheetEditorCellState, SpreadsheetEditorChangeEvent, SpreadsheetEditorOptions, SpreadsheetEditorRuntime, SpreadsheetEditorRuntimeOptions, SpreadsheetEditorRuntimeState, SpreadsheetEditorStateEvent, SpreadsheetFindMatch, SpreadsheetFindOptions, SpreadsheetFreezeState, SpreadsheetHitCell, SpreadsheetHitColumnHeader, SpreadsheetHitCorner, SpreadsheetHitNone, SpreadsheetHitResult, SpreadsheetHitRowHeader, SpreadsheetLayout, SpreadsheetLayoutOptions, SpreadsheetMergeInfo, SpreadsheetMixedValue, SpreadsheetPasteMode, SpreadsheetPasteOptions, SpreadsheetPoint, SpreadsheetPreviewCellChangeSummary, SpreadsheetPreviewDiffSummary, SpreadsheetRange, SpreadsheetRect, SpreadsheetRenderCell, SpreadsheetReplaceTarget, SpreadsheetResizeDragState, SpreadsheetResizeHandle, SpreadsheetResolvedCellStyle, SpreadsheetScrollState, SpreadsheetScrollbarGeometry, SpreadsheetScrollbarState, SpreadsheetSelectionFormatState, SpreadsheetSelectionState, SpreadsheetSheetRenderModel, SpreadsheetSize, SpreadsheetSortDirection, SpreadsheetTextStyle, SpreadsheetUserTransactionOptions, SpreadsheetViewport, SpreadsheetViewportKind, SpreadsheetViewportManager, SpreadsheetViewportManagerOptions, SpreadsheetViewportState, applySpreadsheetAgentAction, applyWheelDelta, buildSpreadsheetAutoFillPlan, buildSpreadsheetClipboardPayload, buildSpreadsheetReplacePlan, buildSpreadsheetSheetRenderModel, clampScroll, clearSpreadsheetRange, clipboardHtml, clipboardToken, computeScrollbarState, copybookGuideAppearance, createColumnRangeSelection, createColumnSelection, createRowRangeSelection, createRowSelection, createSelection, cssPixelsToExcelColumnWidth, excelColumnWidthToCssPixels, expandRangeForMergedRanges, expandSelectionForMergedRanges, extendSelection, findSpreadsheetMatches, formatSpreadsheetDisplayValue, formulasForPaste, freezeStateFromPane, freezeStateFromSheet, getRenderCell, hitSpreadsheetResizeHandle, moveSelection, nextSpreadsheetMatch, normalizeSelectionRange, parseTsv, previewSpreadsheetAgentAction, rangeAddressForMatrix, rangeForSpreadsheetMatch, readSpreadsheetClipboardPayload, renderSpreadsheetEditor, resolveSpreadsheetCellStyle, resolveSpreadsheetRangeBorder, resolveSpreadsheetRunStyle, rowColumnKey, scrollFromThumbPosition, selectionAfterColumnDeletion, selectionAfterRowDeletion, serializeRangeToTsv, serializeSpreadsheetClipboardPayload, setSpreadsheetCellFormula, setSpreadsheetCellValue, setSpreadsheetColumnWidth, setSpreadsheetRangeValues, setSpreadsheetRowHeight, spreadsheetFilterValues, spreadsheetRowsForColumnFilters, spreadsheetRowsForFilter, spreadsheetSortRows, spreadsheetVisibleFilterValues, startSpreadsheetResizeDrag, summarizeSpreadsheetSelectionFormat, supportsSpreadsheetAutoFill, updateSpreadsheetResizeDrag } from './spreadsheet.js';
7
7
  export { D as DEFAULT_PPT_SLIDE_SIZE, N as NativePptEditor, a as NativePptEditorOptions, P as PptEditorChangeEvent, b as PptEditorCommand, c as PptEditorFontResource, d as PptEditorImagePreviewRequest, e as PptEditorImageResource, f as PptEditorRuntimeEvent, g as PptEditorRuntimeEventMap, h as PptEditorSelection, i as PptEditorSelectionChangeEvent, j as PptEditorSession, k as PptEditorSessionOptions, l as PptEditorView, m as PptEditorViewOptions, n as PptPresentationScene, o as PptSceneGroupContext, p as PptSceneNode, q as PptSceneNodeCapabilities, r as PptSceneNodeCapability, s as PptSceneNodeKind, t as PptSceneRect, u as PptSlideScene, v as buildPptEditorViewFromModel, w as buildPptEditorViewFromPptx, x as buildPptEditorViewFromPresentation, y as buildPptPresentationScene, z as buildPptSceneNode, A as buildPptSlideScene, B as findPptSceneNode, C as findPptSceneSlide, E as isPptShapeEditable, F as normalizePptGeometry, G as pptSceneGeometryToSourceGeometry, H as pptSceneNodeCapabilities, I as renderNativePptEditor } from './native-DxWyYM4C.js';
package/dist/index.js CHANGED
@@ -859,6 +859,10 @@ function parseTableLayout(tableEl, inheritedMode) {
859
859
  const jc = firstDirectChild(tblPr, W_NS, "jc");
860
860
  const alignment = jc ? parseTableAlignment(jc.getAttributeNS(W_NS, "val")) : void 0;
861
861
  if (alignment !== void 0) layout.alignment = alignment;
862
+ const position = firstDirectChild(tblPr, W_NS, "tblpPr");
863
+ if ((position == null ? void 0 : position.getAttributeNS(W_NS, "vertAnchor")) === "margin" && position.getAttributeNS(W_NS, "tblpYSpec") === "bottom") {
864
+ layout.anchorToBottomMargin = true;
865
+ }
862
866
  return Object.keys(layout).length > 0 ? layout : void 0;
863
867
  }
864
868
  __name(parseTableLayout, "parseTableLayout");
@@ -6052,7 +6056,8 @@ function paginateNativeDocument(root, doc) {
6052
6056
  const hasForcedPageBreak = block.querySelector(".coco-word-page-break") !== null;
6053
6057
  if (body.scrollHeight > bodyLimit()) {
6054
6058
  const keepWithPrevious = previousKeepNextBlock(body, block);
6055
- if (!splitNativeTableAcrossPages(block, body, bodyLimit, nextPage)) {
6059
+ const moveWholeTable = isBottomAnchoredTable(block) && block.getBoundingClientRect().height <= bodyLimit();
6060
+ if (moveWholeTable || !splitNativeTableAcrossPages(block, body, bodyLimit, nextPage)) {
6056
6061
  body.removeChild(block);
6057
6062
  if (keepWithPrevious) body.removeChild(keepWithPrevious);
6058
6063
  const tail = keepWithPrevious ? null : splitNativeParagraphToFitCurrentPage(block, body, bodyLimit);
@@ -6061,7 +6066,7 @@ function paginateNativeDocument(root, doc) {
6061
6066
  if (keepWithPrevious) body.appendChild(keepWithPrevious);
6062
6067
  body.appendChild(tail != null ? tail : block);
6063
6068
  }
6064
- } else if (block.matches("coco-word-native-table")) {
6069
+ } else if (block.matches("coco-word-native-table") && !isBottomAnchoredTable(block)) {
6065
6070
  const sectionBreak = nextBlock && sectionBreakTypeAfterBlock(nextBlock, doc);
6066
6071
  const endsSection = nextBlock && sectionBreak && sectionBreak !== "continuous" && sectionBreak !== "nextColumn" && !nativeParagraphHasFlowContent(nextBlock);
6067
6072
  const endsPage = endsSection || nextBlock && shouldStartBlockOnNewPage(nextBlock);
@@ -6212,7 +6217,7 @@ __name(nativePagePairCanBackfill, "nativePagePairCanBackfill");
6212
6217
  function incrementalBlockGroupHeight(blocks) {
6213
6218
  return blocks.reduce((height, block) => {
6214
6219
  const style2 = window.getComputedStyle(block);
6215
- const marginTop = Number.parseFloat(style2.marginTop) || 0;
6220
+ const marginTop = isBottomAnchoredTable(block) ? 0 : Number.parseFloat(style2.marginTop) || 0;
6216
6221
  const marginBottom = Number.parseFloat(style2.marginBottom) || 0;
6217
6222
  return height + block.getBoundingClientRect().height + marginTop + marginBottom;
6218
6223
  }, 0);
@@ -6279,8 +6284,10 @@ function leadingIncrementalBlockGroup(body) {
6279
6284
  __name(leadingIncrementalBlockGroup, "leadingIncrementalBlockGroup");
6280
6285
  function moveTrailingIncrementalTableRows(root, doc, page, existingNextPage, templates) {
6281
6286
  const body = nativePageBody(page);
6282
- const sourceBlock = body == null ? void 0 : body.lastElementChild;
6287
+ if (!body) return false;
6288
+ const sourceBlock = body.lastElementChild;
6283
6289
  if (!(sourceBlock instanceof HTMLElement) || !sourceBlock.matches("coco-word-native-table")) return false;
6290
+ if (isBottomAnchoredTable(sourceBlock) && sourceBlock.getBoundingClientRect().height <= body.getBoundingClientRect().height) return false;
6284
6291
  const sourceTable = sourceBlock.querySelector(":scope > table");
6285
6292
  const sourceBody = sourceTable == null ? void 0 : sourceTable.querySelector(":scope > tbody");
6286
6293
  if (!sourceTable || !sourceBody) return false;
@@ -6930,31 +6937,32 @@ function isShortFlexFilledTablePage(body, limit) {
6930
6937
  }
6931
6938
  __name(isShortFlexFilledTablePage, "isShortFlexFilledTablePage");
6932
6939
  function nativeBodyContentHeight(body) {
6933
- let height = 0;
6934
- for (const child of Array.from(body.children)) {
6935
- if (!(child instanceof HTMLElement)) continue;
6936
- const rect = child.getBoundingClientRect();
6937
- const style2 = window.getComputedStyle(child);
6938
- const marginTop = Number.parseFloat(style2.marginTop) || 0;
6939
- const marginBottom = Number.parseFloat(style2.marginBottom) || 0;
6940
- height += rect.height + marginTop + marginBottom;
6941
- }
6942
- return height;
6940
+ const blocks = Array.from(body.children).filter((child) => child instanceof HTMLElement);
6941
+ return incrementalBlockGroupHeight(blocks);
6943
6942
  }
6944
6943
  __name(nativeBodyContentHeight, "nativeBodyContentHeight");
6945
6944
  function nativeBodyContentBottom(body) {
6946
6945
  const bodyRect = body.getBoundingClientRect();
6947
6946
  let bottom = 0;
6947
+ let bottomTableHeight = 0;
6948
6948
  for (const child of Array.from(body.children)) {
6949
6949
  if (!(child instanceof HTMLElement)) continue;
6950
6950
  const rect = child.getBoundingClientRect();
6951
6951
  const style2 = window.getComputedStyle(child);
6952
6952
  const marginBottom = Number.parseFloat(style2.marginBottom) || 0;
6953
+ if (isBottomAnchoredTable(child)) {
6954
+ bottomTableHeight += rect.height + marginBottom;
6955
+ continue;
6956
+ }
6953
6957
  bottom = Math.max(bottom, rect.bottom - bodyRect.top + marginBottom);
6954
6958
  }
6955
- return bottom;
6959
+ return bottom + bottomTableHeight;
6956
6960
  }
6957
6961
  __name(nativeBodyContentBottom, "nativeBodyContentBottom");
6962
+ function isBottomAnchoredTable(block) {
6963
+ return block.hasAttribute("data-anchor-bottom-margin");
6964
+ }
6965
+ __name(isBottomAnchoredTable, "isBottomAnchoredTable");
6958
6966
  function tableBottomReservePx(block, bodyLimit) {
6959
6967
  if (bodyLimit < 700) return 0;
6960
6968
  const rowCount = block.querySelectorAll("tr").length;
@@ -8249,29 +8257,30 @@ function mapDrawingTextAlign(value) {
8249
8257
  }
8250
8258
  __name(mapDrawingTextAlign, "mapDrawingTextAlign");
8251
8259
  function renderNativeTable(table) {
8252
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
8260
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8253
8261
  const el = document.createElement("coco-word-native-table");
8254
8262
  el.setAttribute("data-table-id", table.tableId);
8263
+ if ((_a = table.layout) == null ? void 0 : _a.anchorToBottomMargin) el.setAttribute("data-anchor-bottom-margin", "");
8255
8264
  if (table.revision) {
8256
8265
  el.classList.add(table.revision.revisionKind === "delete" ? "coco-word-revision-delete" : "coco-word-revision-insert");
8257
8266
  el.dataset.revisionId = table.revision.revisionId;
8258
8267
  el.dataset.revisionKind = table.revision.revisionKind;
8259
- el.dataset.revisionAuthor = (_a = table.revision.author) != null ? _a : "";
8260
- el.dataset.revisionDate = (_b = table.revision.date) != null ? _b : "";
8268
+ el.dataset.revisionAuthor = (_b = table.revision.author) != null ? _b : "";
8269
+ el.dataset.revisionDate = (_c = table.revision.date) != null ? _c : "";
8261
8270
  el.dataset.revisionText = "\u8868\u683C\u7ED3\u6784";
8262
8271
  }
8263
8272
  if (table.tableStyleId) el.setAttribute("data-style-id", table.tableStyleId);
8264
8273
  const tableEl = document.createElement("table");
8265
- tableEl.dataset.layout = (_d = (_c = table.layout) == null ? void 0 : _c.mode) != null ? _d : "autofit";
8274
+ tableEl.dataset.layout = (_e = (_d = table.layout) == null ? void 0 : _d.mode) != null ? _e : "autofit";
8266
8275
  applyNativeTableLayout(tableEl, table);
8267
8276
  const columnCount = nativeTableColumnCount(table);
8268
8277
  const colgroup = document.createElement("colgroup");
8269
8278
  const tableWidth = table.columnWidths.reduce((sum, width) => sum + Math.max(0, width), 0);
8270
8279
  for (let index = 0; index < columnCount; index++) {
8271
- const width = (_e = table.columnWidths[index]) != null ? _e : 0;
8280
+ const width = (_f = table.columnWidths[index]) != null ? _f : 0;
8272
8281
  const col = document.createElement("col");
8273
8282
  if (width > 0) {
8274
- col.style.width = ((_f = table.layout) == null ? void 0 : _f.widthType) === "pct" ? `${width / tableWidth * 100}%` : twipsToPt2(width);
8283
+ col.style.width = ((_g = table.layout) == null ? void 0 : _g.widthType) === "pct" ? `${width / tableWidth * 100}%` : twipsToPt2(width);
8275
8284
  }
8276
8285
  colgroup.appendChild(col);
8277
8286
  }
@@ -8286,7 +8295,7 @@ function renderNativeTable(table) {
8286
8295
  if (row.cantSplit) tr.dataset.cantSplit = "true";
8287
8296
  if (row.height && row.height.val > 0) {
8288
8297
  const height = twipsToPt2(row.height.val);
8289
- tr.dataset.heightRule = (_g = row.height.hRule) != null ? _g : "auto";
8298
+ tr.dataset.heightRule = (_h = row.height.hRule) != null ? _h : "auto";
8290
8299
  tr.style.setProperty("--coco-word-row-height", height);
8291
8300
  if (row.height.hRule === "exact") {
8292
8301
  tr.style.height = height;
@@ -8316,7 +8325,7 @@ function renderNativeTable(table) {
8316
8325
  })
8317
8326
  }));
8318
8327
  if (cellStyle.cssText) td.setAttribute("style", cellStyle.cssText);
8319
- const spaced = ((_i = (_h = table.layout) == null ? void 0 : _h.cellSpacing) != null ? _i : 0) > 0;
8328
+ const spaced = ((_j = (_i = table.layout) == null ? void 0 : _i.cellSpacing) != null ? _j : 0) > 0;
8320
8329
  const gridWidths = ["top", "right", "bottom", "left"].map((side) => {
8321
8330
  const border = cellStyle.declarations[`border-${side}`];
8322
8331
  if (border && border !== "0") return "0";
@@ -12676,6 +12685,20 @@ coco-word-native-document.uses-natural-paragraph-flow coco-word-native-page-body
12676
12685
  display: block;
12677
12686
  }
12678
12687
 
12688
+ coco-word-native-document.uses-natural-paragraph-flow
12689
+ coco-word-native-page-body:has(> coco-word-native-table[data-anchor-bottom-margin]) {
12690
+ display: flex;
12691
+ }
12692
+
12693
+ /* Reserve space in pagination while placing anchored tables below the page's text. */
12694
+ coco-word-native-page-body > coco-word-native-table[data-anchor-bottom-margin] {
12695
+ order: 1;
12696
+ }
12697
+
12698
+ coco-word-native-page-body > coco-word-native-table[data-anchor-bottom-margin]:not([data-anchor-bottom-margin] ~ *) {
12699
+ margin-top: auto;
12700
+ }
12701
+
12679
12702
  coco-word-native-page[data-vertical-alignment] > coco-word-native-page-body {
12680
12703
  display: flex;
12681
12704
  }