@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.
@@ -1,4 +1,4 @@
1
- import './model-ttSpXtd3.cjs';
2
- 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, 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';
1
+ import './model-Cl0nc5HH.cjs';
2
+ 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, 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';
3
3
  import '@coco-vexel/coco-office/word-view';
4
4
  import '@coco-vexel/coco-office/pack';
@@ -1,4 +1,4 @@
1
- import './model-ttSpXtd3.js';
2
- 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, 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';
1
+ import './model-Cl0nc5HH.js';
2
+ 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, 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';
3
3
  import '@coco-vexel/coco-office/word-view';
4
4
  import '@coco-vexel/coco-office/pack';
@@ -327,6 +327,20 @@ coco-word-native-document.uses-natural-paragraph-flow coco-word-native-page-body
327
327
  display: block;
328
328
  }
329
329
 
330
+ coco-word-native-document.uses-natural-paragraph-flow
331
+ coco-word-native-page-body:has(> coco-word-native-table[data-anchor-bottom-margin]) {
332
+ display: flex;
333
+ }
334
+
335
+ /* Reserve space in pagination while placing anchored tables below the page's text. */
336
+ coco-word-native-page-body > coco-word-native-table[data-anchor-bottom-margin] {
337
+ order: 1;
338
+ }
339
+
340
+ coco-word-native-page-body > coco-word-native-table[data-anchor-bottom-margin]:not([data-anchor-bottom-margin] ~ *) {
341
+ margin-top: auto;
342
+ }
343
+
330
344
  coco-word-native-page[data-vertical-alignment] > coco-word-native-page-body {
331
345
  display: flex;
332
346
  }
@@ -4503,7 +4517,8 @@ function paginateNativeDocument(root, doc) {
4503
4517
  const hasForcedPageBreak = block.querySelector(".coco-word-page-break") !== null;
4504
4518
  if (body.scrollHeight > bodyLimit()) {
4505
4519
  const keepWithPrevious = previousKeepNextBlock(body, block);
4506
- if (!splitNativeTableAcrossPages(block, body, bodyLimit, nextPage)) {
4520
+ const moveWholeTable = isBottomAnchoredTable(block) && block.getBoundingClientRect().height <= bodyLimit();
4521
+ if (moveWholeTable || !splitNativeTableAcrossPages(block, body, bodyLimit, nextPage)) {
4507
4522
  body.removeChild(block);
4508
4523
  if (keepWithPrevious) body.removeChild(keepWithPrevious);
4509
4524
  const tail = keepWithPrevious ? null : splitNativeParagraphToFitCurrentPage(block, body, bodyLimit);
@@ -4512,7 +4527,7 @@ function paginateNativeDocument(root, doc) {
4512
4527
  if (keepWithPrevious) body.appendChild(keepWithPrevious);
4513
4528
  body.appendChild(tail != null ? tail : block);
4514
4529
  }
4515
- } else if (block.matches("coco-word-native-table")) {
4530
+ } else if (block.matches("coco-word-native-table") && !isBottomAnchoredTable(block)) {
4516
4531
  const sectionBreak = nextBlock && sectionBreakTypeAfterBlock(nextBlock, doc);
4517
4532
  const endsSection = nextBlock && sectionBreak && sectionBreak !== "continuous" && sectionBreak !== "nextColumn" && !nativeParagraphHasFlowContent(nextBlock);
4518
4533
  const endsPage = endsSection || nextBlock && shouldStartBlockOnNewPage(nextBlock);
@@ -4663,7 +4678,7 @@ __name(nativePagePairCanBackfill, "nativePagePairCanBackfill");
4663
4678
  function incrementalBlockGroupHeight(blocks) {
4664
4679
  return blocks.reduce((height, block) => {
4665
4680
  const style = window.getComputedStyle(block);
4666
- const marginTop = Number.parseFloat(style.marginTop) || 0;
4681
+ const marginTop = isBottomAnchoredTable(block) ? 0 : Number.parseFloat(style.marginTop) || 0;
4667
4682
  const marginBottom = Number.parseFloat(style.marginBottom) || 0;
4668
4683
  return height + block.getBoundingClientRect().height + marginTop + marginBottom;
4669
4684
  }, 0);
@@ -4730,8 +4745,10 @@ function leadingIncrementalBlockGroup(body) {
4730
4745
  __name(leadingIncrementalBlockGroup, "leadingIncrementalBlockGroup");
4731
4746
  function moveTrailingIncrementalTableRows(root, doc, page, existingNextPage, templates) {
4732
4747
  const body = nativePageBody(page);
4733
- const sourceBlock = body == null ? void 0 : body.lastElementChild;
4748
+ if (!body) return false;
4749
+ const sourceBlock = body.lastElementChild;
4734
4750
  if (!(sourceBlock instanceof HTMLElement) || !sourceBlock.matches("coco-word-native-table")) return false;
4751
+ if (isBottomAnchoredTable(sourceBlock) && sourceBlock.getBoundingClientRect().height <= body.getBoundingClientRect().height) return false;
4735
4752
  const sourceTable = sourceBlock.querySelector(":scope > table");
4736
4753
  const sourceBody = sourceTable == null ? void 0 : sourceTable.querySelector(":scope > tbody");
4737
4754
  if (!sourceTable || !sourceBody) return false;
@@ -5381,31 +5398,32 @@ function isShortFlexFilledTablePage(body, limit) {
5381
5398
  }
5382
5399
  __name(isShortFlexFilledTablePage, "isShortFlexFilledTablePage");
5383
5400
  function nativeBodyContentHeight(body) {
5384
- let height = 0;
5385
- for (const child of Array.from(body.children)) {
5386
- if (!(child instanceof HTMLElement)) continue;
5387
- const rect = child.getBoundingClientRect();
5388
- const style = window.getComputedStyle(child);
5389
- const marginTop = Number.parseFloat(style.marginTop) || 0;
5390
- const marginBottom = Number.parseFloat(style.marginBottom) || 0;
5391
- height += rect.height + marginTop + marginBottom;
5392
- }
5393
- return height;
5401
+ const blocks = Array.from(body.children).filter((child) => child instanceof HTMLElement);
5402
+ return incrementalBlockGroupHeight(blocks);
5394
5403
  }
5395
5404
  __name(nativeBodyContentHeight, "nativeBodyContentHeight");
5396
5405
  function nativeBodyContentBottom(body) {
5397
5406
  const bodyRect = body.getBoundingClientRect();
5398
5407
  let bottom = 0;
5408
+ let bottomTableHeight = 0;
5399
5409
  for (const child of Array.from(body.children)) {
5400
5410
  if (!(child instanceof HTMLElement)) continue;
5401
5411
  const rect = child.getBoundingClientRect();
5402
5412
  const style = window.getComputedStyle(child);
5403
5413
  const marginBottom = Number.parseFloat(style.marginBottom) || 0;
5414
+ if (isBottomAnchoredTable(child)) {
5415
+ bottomTableHeight += rect.height + marginBottom;
5416
+ continue;
5417
+ }
5404
5418
  bottom = Math.max(bottom, rect.bottom - bodyRect.top + marginBottom);
5405
5419
  }
5406
- return bottom;
5420
+ return bottom + bottomTableHeight;
5407
5421
  }
5408
5422
  __name(nativeBodyContentBottom, "nativeBodyContentBottom");
5423
+ function isBottomAnchoredTable(block) {
5424
+ return block.hasAttribute("data-anchor-bottom-margin");
5425
+ }
5426
+ __name(isBottomAnchoredTable, "isBottomAnchoredTable");
5409
5427
  function tableBottomReservePx(block, bodyLimit) {
5410
5428
  if (bodyLimit < 700) return 0;
5411
5429
  const rowCount = block.querySelectorAll("tr").length;
@@ -6700,29 +6718,30 @@ function mapDrawingTextAlign(value) {
6700
6718
  }
6701
6719
  __name(mapDrawingTextAlign, "mapDrawingTextAlign");
6702
6720
  function renderNativeTable(table) {
6703
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
6721
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
6704
6722
  const el = document.createElement("coco-word-native-table");
6705
6723
  el.setAttribute("data-table-id", table.tableId);
6724
+ if ((_a = table.layout) == null ? void 0 : _a.anchorToBottomMargin) el.setAttribute("data-anchor-bottom-margin", "");
6706
6725
  if (table.revision) {
6707
6726
  el.classList.add(table.revision.revisionKind === "delete" ? "coco-word-revision-delete" : "coco-word-revision-insert");
6708
6727
  el.dataset.revisionId = table.revision.revisionId;
6709
6728
  el.dataset.revisionKind = table.revision.revisionKind;
6710
- el.dataset.revisionAuthor = (_a = table.revision.author) != null ? _a : "";
6711
- el.dataset.revisionDate = (_b = table.revision.date) != null ? _b : "";
6729
+ el.dataset.revisionAuthor = (_b = table.revision.author) != null ? _b : "";
6730
+ el.dataset.revisionDate = (_c = table.revision.date) != null ? _c : "";
6712
6731
  el.dataset.revisionText = "\u8868\u683C\u7ED3\u6784";
6713
6732
  }
6714
6733
  if (table.tableStyleId) el.setAttribute("data-style-id", table.tableStyleId);
6715
6734
  const tableEl = document.createElement("table");
6716
- tableEl.dataset.layout = (_d = (_c = table.layout) == null ? void 0 : _c.mode) != null ? _d : "autofit";
6735
+ tableEl.dataset.layout = (_e = (_d = table.layout) == null ? void 0 : _d.mode) != null ? _e : "autofit";
6717
6736
  applyNativeTableLayout(tableEl, table);
6718
6737
  const columnCount = nativeTableColumnCount(table);
6719
6738
  const colgroup = document.createElement("colgroup");
6720
6739
  const tableWidth = table.columnWidths.reduce((sum, width) => sum + Math.max(0, width), 0);
6721
6740
  for (let index = 0; index < columnCount; index++) {
6722
- const width = (_e = table.columnWidths[index]) != null ? _e : 0;
6741
+ const width = (_f = table.columnWidths[index]) != null ? _f : 0;
6723
6742
  const col = document.createElement("col");
6724
6743
  if (width > 0) {
6725
- col.style.width = ((_f = table.layout) == null ? void 0 : _f.widthType) === "pct" ? `${width / tableWidth * 100}%` : twipsToPt2(width);
6744
+ col.style.width = ((_g = table.layout) == null ? void 0 : _g.widthType) === "pct" ? `${width / tableWidth * 100}%` : twipsToPt2(width);
6726
6745
  }
6727
6746
  colgroup.appendChild(col);
6728
6747
  }
@@ -6737,7 +6756,7 @@ function renderNativeTable(table) {
6737
6756
  if (row.cantSplit) tr.dataset.cantSplit = "true";
6738
6757
  if (row.height && row.height.val > 0) {
6739
6758
  const height = twipsToPt2(row.height.val);
6740
- tr.dataset.heightRule = (_g = row.height.hRule) != null ? _g : "auto";
6759
+ tr.dataset.heightRule = (_h = row.height.hRule) != null ? _h : "auto";
6741
6760
  tr.style.setProperty("--coco-word-row-height", height);
6742
6761
  if (row.height.hRule === "exact") {
6743
6762
  tr.style.height = height;
@@ -6767,7 +6786,7 @@ function renderNativeTable(table) {
6767
6786
  })
6768
6787
  }));
6769
6788
  if (cellStyle.cssText) td.setAttribute("style", cellStyle.cssText);
6770
- const spaced = ((_i = (_h = table.layout) == null ? void 0 : _h.cellSpacing) != null ? _i : 0) > 0;
6789
+ const spaced = ((_j = (_i = table.layout) == null ? void 0 : _i.cellSpacing) != null ? _j : 0) > 0;
6771
6790
  const gridWidths = ["top", "right", "bottom", "left"].map((side) => {
6772
6791
  const border = cellStyle.declarations[`border-${side}`];
6773
6792
  if (border && border !== "0") return "0";