@coco-vexel/coco-office-editor 1.0.4 → 1.0.6

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.
Files changed (47) hide show
  1. package/dist/index.cjs +1461 -26483
  2. package/dist/index.d.cts +3 -3
  3. package/dist/index.d.ts +3 -3
  4. package/dist/index.js +1461 -26273
  5. package/dist/{model-DNNBhhCB.d.cts → model-DT8Dw2G6.d.cts} +2 -0
  6. package/dist/{model-DNNBhhCB.d.ts → model-DT8Dw2G6.d.ts} +2 -0
  7. package/dist/{native-f2y3N8N5.d.cts → native-C8FmLU7F.d.cts} +9 -2
  8. package/dist/{native-OrEUvS8p.d.ts → native-CYm_SwYR.d.ts} +9 -2
  9. package/dist/ppt-native.cjs +7 -5333
  10. package/dist/ppt-native.js +7 -5331
  11. package/dist/ppt.cjs +7 -5426
  12. package/dist/ppt.js +7 -5409
  13. package/dist/spreadsheet.cjs +11 -4374
  14. package/dist/spreadsheet.js +11 -4310
  15. package/dist/word-editing.cjs +2 -812
  16. package/dist/word-editing.d.cts +1 -1
  17. package/dist/word-editing.d.ts +1 -1
  18. package/dist/word-editing.js +2 -803
  19. package/dist/word-native.cjs +1484 -13458
  20. package/dist/word-native.d.cts +2 -2
  21. package/dist/word-native.d.ts +2 -2
  22. package/dist/word-native.js +1484 -13351
  23. package/dist/word-prosemirror.cjs +1 -489
  24. package/dist/word-prosemirror.d.cts +1 -1
  25. package/dist/word-prosemirror.d.ts +1 -1
  26. package/dist/word-prosemirror.js +1 -483
  27. package/dist/word.cjs +1323 -16663
  28. package/dist/word.d.cts +25 -5
  29. package/dist/word.d.ts +25 -5
  30. package/dist/word.js +1323 -16530
  31. package/package.json +3 -3
  32. package/dist/index.cjs.map +0 -1
  33. package/dist/index.js.map +0 -1
  34. package/dist/ppt-native.cjs.map +0 -1
  35. package/dist/ppt-native.js.map +0 -1
  36. package/dist/ppt.cjs.map +0 -1
  37. package/dist/ppt.js.map +0 -1
  38. package/dist/spreadsheet.cjs.map +0 -1
  39. package/dist/spreadsheet.js.map +0 -1
  40. package/dist/word-editing.cjs.map +0 -1
  41. package/dist/word-editing.js.map +0 -1
  42. package/dist/word-native.cjs.map +0 -1
  43. package/dist/word-native.js.map +0 -1
  44. package/dist/word-prosemirror.cjs.map +0 -1
  45. package/dist/word-prosemirror.js.map +0 -1
  46. package/dist/word.cjs.map +0 -1
  47. package/dist/word.js.map +0 -1
package/dist/word.d.cts CHANGED
@@ -1,11 +1,11 @@
1
1
  export { E as EditorReadOnlyError } from './read-only-1_LQCO1d.cjs';
2
- import { f as EditorDocumentView, q as EditorParagraphFormat, w as EditorRunFormat, F as EditorTableCellView, k as EditorHyperlink } from './model-DNNBhhCB.cjs';
3
- export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-DNNBhhCB.cjs';
2
+ import { f as EditorDocumentView, q as EditorParagraphFormat, w as EditorRunFormat, F as EditorTableCellView, k as EditorHyperlink } from './model-DT8Dw2G6.cjs';
3
+ export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-DT8Dw2G6.cjs';
4
4
  import { Package } from '@coco-vexel/coco-office/pack';
5
5
  import { PackageIndices } from '@coco-vexel/coco-office/word-view';
6
6
  export { RevisionInfo } from '@coco-vexel/coco-office/word-view';
7
- import { B as NativeWordDocument, L as NativeWordParagraphNode, J as NativeWordListType, x as NativeWordBlockNode } from './native-f2y3N8N5.cjs';
8
- 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, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, K as NativeWordPageBreakNode, 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 nativeListIndent, b4 as nativeListType, b5 as nativeMergeTableCells, b6 as nativeNumberingAtLevel, b7 as nativePageBreakAt, b8 as nativeParagraphText, b9 as nativeRangeContainsPageBreak, ba as nativeReplaceBlockRangeAcrossParagraphs, bb as nativeReplaceRange, bc as nativeReplaceRangeWithBlocks, bd as nativeReplaceTableCellRangeContent, be as nativeReplaceTableCellRangeText, bf as nativeReplaceTextRangeAcrossParagraphs, bg as nativeReplaceTextRangeWithParagraphs, bh as nativeResolveFormatRevision, bi as nativeResolveImageFormatRevision, bj as nativeResolveImageRevision, bk as nativeResolveRevision, bl as nativeSelection, bm as nativeSelectionFromCursor, bn as nativeSetHyperlink, bo as nativeSetImageSize, bp as nativeSetParagraphFormat, bq as nativeSetParagraphList, br as nativeSetRunFormat, bs as nativeSetTableCellFormat, bt as nativeSetTableCellRangeFormat, bu as nativeSplitParagraph, bv as nativeSplitTableCell, bw as nativeSyncParagraphText, bx as nativeTableCellsInRange, by as nativeTableSupportsStructuralEditing, bz as nativeTextRangeIsBold, bA as nativeUpdateComment, bB as paginateNativeDocument, bC as parentNativeParagraph, bD as planWordOoxmlPatch, bE as planWordOoxmlPatches, bF as previousNativeParagraphId, bG as rebuildNativeTableFragmentsFromParagraph, bH as reflowNativeDocumentFromParagraph, bI as refreshNativeNumberingLabels, bJ as refreshNativePageCommentBubbles, bK as renderNativeBlock, bL as renderNativeDocument, bM as renderNativeImage, bN as renderNativeParagraph, bO as renderNativeTable, bP as renderNativeWordEditor, bQ as resolveNativeSectionPageNumberStarts, bR as resolveNativeTableCellBorders, bS as resolveWordOoxmlPatchTargets, bT as restoreNativeCursor, bU as restoreNativeElementSelection, bV as restoreNativeTextSelection, bW as searchNativeWordDocument, bX as selectNativeImage, bY as splitNativeTableRowAtBlockBoundary, bZ as splitNativeTableRowAtTextOffset, b_ as summarizeNativeTablePagination } from './native-f2y3N8N5.cjs';
7
+ import { B as NativeWordDocument, L as NativeWordParagraphNode, J as NativeWordListType, x as NativeWordBlockNode } from './native-C8FmLU7F.cjs';
8
+ 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, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, K as NativeWordPageBreakNode, 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-C8FmLU7F.cjs';
9
9
  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';
10
10
  import 'prosemirror-state';
11
11
  import 'prosemirror-view';
@@ -64,6 +64,26 @@ declare function resolveRunStyle(format: EditorRunFormat | undefined | null): Re
64
64
  declare function resolveTableCellStyle(cell: Pick<EditorTableCellView, 'margin' | 'borders' | 'shading' | 'verticalAlignment' | 'noWrap' | 'width'>): ResolvedStyle;
65
65
  declare function colorToCss(color: string | undefined): string | null;
66
66
 
67
+ interface NormalizedDocumentHtmlPageOptions {
68
+ /** Zero-based top-level block offset. */
69
+ startBlock?: number;
70
+ /** Approximate serialized HTML budget. A block is never split. */
71
+ maxChars?: number;
72
+ }
73
+ interface NormalizedDocumentHtmlPage {
74
+ html: string;
75
+ /** Zero-based block offset for the next page. Missing means end of document. */
76
+ nextBlock?: number;
77
+ }
78
+ /**
79
+ * Serialize an editor view into compact, semantic HTML for model inspection.
80
+ *
81
+ * The projection intentionally omits Word style ids. Effective formatting has
82
+ * already been resolved by the editor extractor and is emitted as inline CSS.
83
+ * Stable paragraph/table ids remain available for later document operations.
84
+ */
85
+ declare function renderNormalizedDocumentHtmlPage(view: EditorDocumentView, options?: NormalizedDocumentHtmlPageOptions): NormalizedDocumentHtmlPage;
86
+
67
87
  declare const NATIVE_BLOCK_CLIPBOARD_TYPE = "application/x-coco-word-blocks+json";
68
88
  interface NativeClipboardRun {
69
89
  from: number;
@@ -82,4 +102,4 @@ declare function serializeNativeBlockClipboard(blocks: readonly NativeWordBlockN
82
102
  declare function parseNativeBlockClipboard(value: string): NativeWordBlockNode[] | null;
83
103
  declare function nativeBlockClipboardText(blocks: readonly NativeWordBlockNode[]): string;
84
104
 
85
- export { EditorDocumentView, EditorHyperlink, EditorParagraphFormat, EditorRunFormat, EditorTableCellView, NATIVE_BLOCK_CLIPBOARD_TYPE, type NativeClipboardParagraph, type NativeClipboardRun, NativeWordBlockNode, type NativeWordCoverage, NativeWordDocument, NativeWordListType, NativeWordParagraphNode, type ResolvedStyle, type WordDocumentLike, type WordEditorCoverage, buildWordEditorView, buildWordEditorViewFromDocx, buildWordEditorViewFromFlatOpc, buildWordEditorViewFromPackage, collectNativeParagraphs, colorToCss, nativeBlockClipboardText, parseNativeBlockClipboard, parseNativeClipboardHtml, resolveParagraphStyle, resolveRunStyle, resolveTableCellStyle, serializeNativeBlockClipboard, serializeNativeClipboardHtml, summarizeEditorCoverage, summarizeNativeCoverage };
105
+ export { EditorDocumentView, EditorHyperlink, EditorParagraphFormat, EditorRunFormat, EditorTableCellView, NATIVE_BLOCK_CLIPBOARD_TYPE, type NativeClipboardParagraph, type NativeClipboardRun, NativeWordBlockNode, type NativeWordCoverage, NativeWordDocument, NativeWordListType, NativeWordParagraphNode, type NormalizedDocumentHtmlPage, type NormalizedDocumentHtmlPageOptions, type ResolvedStyle, type WordDocumentLike, type WordEditorCoverage, buildWordEditorView, buildWordEditorViewFromDocx, buildWordEditorViewFromFlatOpc, buildWordEditorViewFromPackage, collectNativeParagraphs, colorToCss, nativeBlockClipboardText, parseNativeBlockClipboard, parseNativeClipboardHtml, renderNormalizedDocumentHtmlPage, resolveParagraphStyle, resolveRunStyle, resolveTableCellStyle, serializeNativeBlockClipboard, serializeNativeClipboardHtml, summarizeEditorCoverage, summarizeNativeCoverage };
package/dist/word.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  export { E as EditorReadOnlyError } from './read-only-1_LQCO1d.js';
2
- import { f as EditorDocumentView, q as EditorParagraphFormat, w as EditorRunFormat, F as EditorTableCellView, k as EditorHyperlink } from './model-DNNBhhCB.js';
3
- export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-DNNBhhCB.js';
2
+ import { f as EditorDocumentView, q as EditorParagraphFormat, w as EditorRunFormat, F as EditorTableCellView, k as EditorHyperlink } from './model-DT8Dw2G6.js';
3
+ export { E as EditorBlockView, a as EditorBoxEdges, b as EditorCommentSpan, c as EditorContentRevisionKind, d as EditorContentSegment, e as EditorDocumentDefaults, g as EditorDrawingSegment, h as EditorFieldSegment, i as EditorHeaderFooterRef, j as EditorHeaderFooterStoryView, l as EditorImageSegment, m as EditorNumberingFormat, n as EditorPageLayout, o as EditorParagraphBorder, p as EditorParagraphBorders, r as EditorParagraphSpan, s as EditorParagraphView, t as EditorPlaceholderSegment, u as EditorRevisionSegment, v as EditorRevisionSpan, x as EditorSectionView, y as EditorSegmentKind, z as EditorShading, A as EditorSpanKind, B as EditorTabStop, C as EditorTableBorder, D as EditorTableBorders, G as EditorTableLayout, H as EditorTableLook, I as EditorTableRowView, J as EditorTableView, K as EditorTextSegment, L as EditorTextSpan } from './model-DT8Dw2G6.js';
4
4
  import { Package } from '@coco-vexel/coco-office/pack';
5
5
  import { PackageIndices } from '@coco-vexel/coco-office/word-view';
6
6
  export { RevisionInfo } from '@coco-vexel/coco-office/word-view';
7
- import { B as NativeWordDocument, L as NativeWordParagraphNode, J as NativeWordListType, x as NativeWordBlockNode } from './native-OrEUvS8p.js';
8
- 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, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, K as NativeWordPageBreakNode, 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 nativeListIndent, b4 as nativeListType, b5 as nativeMergeTableCells, b6 as nativeNumberingAtLevel, b7 as nativePageBreakAt, b8 as nativeParagraphText, b9 as nativeRangeContainsPageBreak, ba as nativeReplaceBlockRangeAcrossParagraphs, bb as nativeReplaceRange, bc as nativeReplaceRangeWithBlocks, bd as nativeReplaceTableCellRangeContent, be as nativeReplaceTableCellRangeText, bf as nativeReplaceTextRangeAcrossParagraphs, bg as nativeReplaceTextRangeWithParagraphs, bh as nativeResolveFormatRevision, bi as nativeResolveImageFormatRevision, bj as nativeResolveImageRevision, bk as nativeResolveRevision, bl as nativeSelection, bm as nativeSelectionFromCursor, bn as nativeSetHyperlink, bo as nativeSetImageSize, bp as nativeSetParagraphFormat, bq as nativeSetParagraphList, br as nativeSetRunFormat, bs as nativeSetTableCellFormat, bt as nativeSetTableCellRangeFormat, bu as nativeSplitParagraph, bv as nativeSplitTableCell, bw as nativeSyncParagraphText, bx as nativeTableCellsInRange, by as nativeTableSupportsStructuralEditing, bz as nativeTextRangeIsBold, bA as nativeUpdateComment, bB as paginateNativeDocument, bC as parentNativeParagraph, bD as planWordOoxmlPatch, bE as planWordOoxmlPatches, bF as previousNativeParagraphId, bG as rebuildNativeTableFragmentsFromParagraph, bH as reflowNativeDocumentFromParagraph, bI as refreshNativeNumberingLabels, bJ as refreshNativePageCommentBubbles, bK as renderNativeBlock, bL as renderNativeDocument, bM as renderNativeImage, bN as renderNativeParagraph, bO as renderNativeTable, bP as renderNativeWordEditor, bQ as resolveNativeSectionPageNumberStarts, bR as resolveNativeTableCellBorders, bS as resolveWordOoxmlPatchTargets, bT as restoreNativeCursor, bU as restoreNativeElementSelection, bV as restoreNativeTextSelection, bW as searchNativeWordDocument, bX as selectNativeImage, bY as splitNativeTableRowAtBlockBoundary, bZ as splitNativeTableRowAtTextOffset, b_ as summarizeNativeTablePagination } from './native-OrEUvS8p.js';
7
+ import { B as NativeWordDocument, L as NativeWordParagraphNode, J as NativeWordListType, x as NativeWordBlockNode } from './native-CYm_SwYR.js';
8
+ 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, y as NativeWordChange, z as NativeWordChangeApplyResult, A as NativeWordCommentMark, C as NativeWordDrawingNode, D as NativeWordEditor, E as NativeWordFieldNode, F as NativeWordFormatRevisionMark, G as NativeWordHeaderFooterStory, H as NativeWordImageNode, I as NativeWordInlineNode, K as NativeWordPageBreakNode, 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-CYm_SwYR.js';
9
9
  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';
10
10
  import 'prosemirror-state';
11
11
  import 'prosemirror-view';
@@ -64,6 +64,26 @@ declare function resolveRunStyle(format: EditorRunFormat | undefined | null): Re
64
64
  declare function resolveTableCellStyle(cell: Pick<EditorTableCellView, 'margin' | 'borders' | 'shading' | 'verticalAlignment' | 'noWrap' | 'width'>): ResolvedStyle;
65
65
  declare function colorToCss(color: string | undefined): string | null;
66
66
 
67
+ interface NormalizedDocumentHtmlPageOptions {
68
+ /** Zero-based top-level block offset. */
69
+ startBlock?: number;
70
+ /** Approximate serialized HTML budget. A block is never split. */
71
+ maxChars?: number;
72
+ }
73
+ interface NormalizedDocumentHtmlPage {
74
+ html: string;
75
+ /** Zero-based block offset for the next page. Missing means end of document. */
76
+ nextBlock?: number;
77
+ }
78
+ /**
79
+ * Serialize an editor view into compact, semantic HTML for model inspection.
80
+ *
81
+ * The projection intentionally omits Word style ids. Effective formatting has
82
+ * already been resolved by the editor extractor and is emitted as inline CSS.
83
+ * Stable paragraph/table ids remain available for later document operations.
84
+ */
85
+ declare function renderNormalizedDocumentHtmlPage(view: EditorDocumentView, options?: NormalizedDocumentHtmlPageOptions): NormalizedDocumentHtmlPage;
86
+
67
87
  declare const NATIVE_BLOCK_CLIPBOARD_TYPE = "application/x-coco-word-blocks+json";
68
88
  interface NativeClipboardRun {
69
89
  from: number;
@@ -82,4 +102,4 @@ declare function serializeNativeBlockClipboard(blocks: readonly NativeWordBlockN
82
102
  declare function parseNativeBlockClipboard(value: string): NativeWordBlockNode[] | null;
83
103
  declare function nativeBlockClipboardText(blocks: readonly NativeWordBlockNode[]): string;
84
104
 
85
- export { EditorDocumentView, EditorHyperlink, EditorParagraphFormat, EditorRunFormat, EditorTableCellView, NATIVE_BLOCK_CLIPBOARD_TYPE, type NativeClipboardParagraph, type NativeClipboardRun, NativeWordBlockNode, type NativeWordCoverage, NativeWordDocument, NativeWordListType, NativeWordParagraphNode, type ResolvedStyle, type WordDocumentLike, type WordEditorCoverage, buildWordEditorView, buildWordEditorViewFromDocx, buildWordEditorViewFromFlatOpc, buildWordEditorViewFromPackage, collectNativeParagraphs, colorToCss, nativeBlockClipboardText, parseNativeBlockClipboard, parseNativeClipboardHtml, resolveParagraphStyle, resolveRunStyle, resolveTableCellStyle, serializeNativeBlockClipboard, serializeNativeClipboardHtml, summarizeEditorCoverage, summarizeNativeCoverage };
105
+ export { EditorDocumentView, EditorHyperlink, EditorParagraphFormat, EditorRunFormat, EditorTableCellView, NATIVE_BLOCK_CLIPBOARD_TYPE, type NativeClipboardParagraph, type NativeClipboardRun, NativeWordBlockNode, type NativeWordCoverage, NativeWordDocument, NativeWordListType, NativeWordParagraphNode, type NormalizedDocumentHtmlPage, type NormalizedDocumentHtmlPageOptions, type ResolvedStyle, type WordDocumentLike, type WordEditorCoverage, buildWordEditorView, buildWordEditorViewFromDocx, buildWordEditorViewFromFlatOpc, buildWordEditorViewFromPackage, collectNativeParagraphs, colorToCss, nativeBlockClipboardText, parseNativeBlockClipboard, parseNativeClipboardHtml, renderNormalizedDocumentHtmlPage, resolveParagraphStyle, resolveRunStyle, resolveTableCellStyle, serializeNativeBlockClipboard, serializeNativeClipboardHtml, summarizeEditorCoverage, summarizeNativeCoverage };