@extend-ai/react-docx 0.10.0 → 0.11.0

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
@@ -6,6 +6,9 @@ interface InitOutput {
6
6
  readonly memory: WebAssembly.Memory;
7
7
  readonly build_doc_model_from_bytes: (a: number, b: number, c: number) => void;
8
8
  readonly build_doc_model_from_package: (a: number, b: number) => void;
9
+ readonly extract_document_blocks_wasm: (a: number, b: number, c: number) => void;
10
+ readonly extract_document_blocks_with_options_wasm: (a: number, b: number, c: number, d: number, e: number) => void;
11
+ readonly inspect_document_source_wasm: (a: number, b: number, c: number) => void;
9
12
  readonly model_to_document_xml_from_json_wasm: (a: number, b: number, c: number, d: number) => void;
10
13
  readonly model_to_document_xml_wasm: (a: number, b: number, c: number) => void;
11
14
  readonly package_to_array_buffer_wasm: (a: number, b: number) => void;
@@ -63,11 +66,14 @@ interface TextRunBorderStyle {
63
66
  frame?: boolean;
64
67
  shadow?: boolean;
65
68
  }
69
+ type TextLigatures = "none" | "standard" | "contextual" | "historical" | "discretional" | "standardContextual" | "standardHistorical" | "contextualHistorical" | "standardDiscretional" | "contextualDiscretional" | "historicalDiscretional" | "standardContextualHistorical" | "standardContextualDiscretional" | "standardHistoricalDiscretional" | "contextualHistoricalDiscretional" | "all";
66
70
  interface TextStyle {
67
71
  bold?: boolean;
68
72
  italic?: boolean;
69
73
  underline?: boolean;
70
74
  strike?: boolean;
75
+ allCaps?: boolean;
76
+ smallCaps?: boolean;
71
77
  color?: string;
72
78
  highlight?: string;
73
79
  backgroundColor?: string;
@@ -102,6 +108,13 @@ interface TextStyle {
102
108
  rightToLeft?: boolean;
103
109
  complexScript?: boolean;
104
110
  characterSpacingTwips?: number;
111
+ /** Horizontal character width as an integer percentage; 100 is unscaled. */
112
+ characterScalePercent?: number;
113
+ sourceCharacterScale?: string;
114
+ /** Minimum font size in points at which OOXML kerning is enabled. */
115
+ kerningMinFontSizePt?: number;
116
+ ligatures?: TextLigatures;
117
+ contextualAlternates?: boolean;
105
118
  verticalAlign?: "superscript" | "subscript";
106
119
  runBorder?: TextRunBorderStyle;
107
120
  }
@@ -116,6 +129,10 @@ interface TextRunNode {
116
129
  };
117
130
  }
118
131
  interface ImageRunNode {
132
+ mathMl?: string;
133
+ blockId?: string;
134
+ contentNodes?: DocNode[];
135
+ semanticKind?: string;
119
136
  type: "image";
120
137
  src?: string;
121
138
  alt?: string;
@@ -206,6 +223,8 @@ interface ParagraphNumbering {
206
223
  interface ParagraphSpacing {
207
224
  beforeTwips?: number;
208
225
  afterTwips?: number;
226
+ beforeAutoSpacing?: boolean;
227
+ afterAutoSpacing?: boolean;
209
228
  lineTwips?: number;
210
229
  lineRule?: "auto" | "exact" | "atLeast";
211
230
  }
@@ -232,13 +251,26 @@ interface ParagraphBorderSet {
232
251
  bar?: ParagraphBorderStyle;
233
252
  }
234
253
  interface ParagraphTabStop {
235
- alignment?: "left" | "center" | "right" | "decimal" | "bar";
254
+ alignment?: "clear" | "left" | "center" | "right" | "decimal" | "bar";
236
255
  leader?: "none" | "dot" | "hyphen" | "underscore" | "middleDot";
237
256
  positionTwips?: number;
238
257
  }
239
258
  type ParagraphTextAlignment = "auto" | "top" | "center" | "baseline" | "bottom";
240
259
  interface ParagraphStyle {
260
+ /** @internal Imported effective automatic before-spacing. */
261
+ sourceBeforeAutoSpacing?: boolean;
262
+ /** @internal Imported effective automatic after-spacing. */
263
+ sourceAfterAutoSpacing?: boolean;
241
264
  align?: ParagraphAlignment;
265
+ snapToGrid?: boolean;
266
+ /** @internal Imported effective document-grid snapping. */
267
+ sourceSnapToGrid?: boolean;
268
+ /** @internal Whether the imported paragraph had a direct grid property. */
269
+ sourceHasSnapToGrid?: boolean;
270
+ /** @internal Inherited grid setting exposed when a direct override is cleared. */
271
+ sourceInheritedSnapToGrid?: boolean;
272
+ /** @internal Table-style grid setting before paragraph-style overrides. */
273
+ sourceTableSnapToGrid?: boolean;
242
274
  textAlignment?: ParagraphTextAlignment;
243
275
  /** @internal Imported effective vertical character alignment. */
244
276
  sourceTextAlignment?: ParagraphTextAlignment;
@@ -367,6 +399,10 @@ interface TableCellStyle {
367
399
  textDirection?: "lrTb" | "tbRl" | "btLr" | "lrTbV" | "tbRlV" | "tbLrV";
368
400
  /** @internal */
369
401
  sourceTextDirection?: TableCellStyle["textDirection"];
402
+ /** Protects the preferred cell width during automatic table layout. */
403
+ noWrap?: boolean;
404
+ /** @internal */
405
+ sourceNoWrap?: boolean;
370
406
  borders?: TableBorderSet;
371
407
  }
372
408
  type TableCellContentNode = ParagraphNode | TableNode;
@@ -473,6 +509,9 @@ interface ParagraphStyleDefinition {
473
509
  basedOnId?: string;
474
510
  nextStyleId?: string;
475
511
  align?: ParagraphAlignment;
512
+ snapToGrid?: boolean;
513
+ /** @internal Whether the style chain owns grid snapping before document defaults. */
514
+ sourceHasSnapToGrid?: boolean;
476
515
  textAlignment?: ParagraphTextAlignment;
477
516
  /** @internal Whether the style chain owns alignment before document defaults. */
478
517
  sourceHasTextAlignment?: boolean;
@@ -545,6 +584,7 @@ interface DocumentNoteDefinition {
545
584
  nodes?: DocNode[];
546
585
  }
547
586
  interface DocumentCommentDefinition {
587
+ nodes?: DocNode[];
548
588
  id: number;
549
589
  author?: string;
550
590
  initials?: string;
@@ -566,6 +606,7 @@ interface DocumentCommentDefinition {
566
606
  isNew?: boolean;
567
607
  }
568
608
  interface DocumentCompatibilitySettings {
609
+ adjustLineHeightInTable?: boolean | null;
569
610
  noLeading?: boolean;
570
611
  suppressTopSpacingWP?: boolean;
571
612
  truncateFontHeightsLikeWP6?: boolean;
@@ -573,6 +614,7 @@ interface DocumentCompatibilitySettings {
573
614
  spaceForUL?: boolean;
574
615
  suppressBottomSpacing?: boolean;
575
616
  compatibilityMode?: number;
617
+ enableOpenTypeFeatures?: boolean;
576
618
  suppressSpacingBeforeAfterPageBreak?: boolean;
577
619
  usePrinterMetrics?: boolean;
578
620
  useFixedHtmlParagraphSpacing?: boolean;
@@ -583,6 +625,8 @@ interface DocumentCompatibilitySettings {
583
625
  interface DocModel {
584
626
  nodes: DocNode[];
585
627
  metadata: {
628
+ documentId?: string;
629
+ sourcePartNames?: Record<string, string>;
586
630
  sourceParts: number;
587
631
  warnings: string[];
588
632
  documentPageCount?: number;
@@ -607,6 +651,88 @@ interface DocModel {
607
651
  };
608
652
  }
609
653
 
654
+ declare const DOCUMENT_BLOCK_TYPES: readonly ["text", "heading", "section_heading", "figure", "table", "table_head", "table_cell", "key_value", "page_number", "barcode", "formula", "header", "footer", "watermark", "legend"];
655
+ type DocumentBlockType = (typeof DOCUMENT_BLOCK_TYPES)[number];
656
+ interface DocxSourceRef {
657
+ documentId: string;
658
+ nodeId: string;
659
+ partName: string;
660
+ story: string;
661
+ start?: number;
662
+ end?: number;
663
+ offsetEncoding: "utf-16";
664
+ }
665
+ interface ExtractDocumentBlocksOptions {
666
+ includeWords?: boolean;
667
+ }
668
+ interface DocumentWord {
669
+ object: "word";
670
+ id: string;
671
+ blockId: string;
672
+ content: string;
673
+ sourceRefs: DocxSourceRef[];
674
+ }
675
+ interface DocumentBlock {
676
+ object: "block";
677
+ id: string;
678
+ type: DocumentBlockType;
679
+ content: string;
680
+ details: Record<string, unknown>;
681
+ sourceRefs: DocxSourceRef[];
682
+ parentBlockId?: string;
683
+ children: DocumentBlock[];
684
+ words?: DocumentWord[];
685
+ }
686
+ interface StructuredDocument {
687
+ schemaVersion: 1;
688
+ parserVersion: string;
689
+ documentId: string;
690
+ blocks: DocumentBlock[];
691
+ warnings: string[];
692
+ geometryStatus: "requires_layout";
693
+ }
694
+ declare function extractDocumentBlocks(model: DocModel, options?: ExtractDocumentBlocksOptions): Promise<StructuredDocument>;
695
+ declare function flattenDocumentBlocks(blocks: readonly DocumentBlock[]): DocumentBlock[];
696
+ interface SourceElement {
697
+ id: string;
698
+ kind: "document" | "element" | "text" | "comment" | "processing_instruction";
699
+ namespace?: string;
700
+ name?: string;
701
+ text?: string;
702
+ byteStart: number;
703
+ byteEnd: number;
704
+ attributes: Array<{
705
+ namespace: string | null;
706
+ name: string;
707
+ value: string;
708
+ }>;
709
+ children: SourceElement[];
710
+ }
711
+ interface DocumentSourceGraph {
712
+ schemaVersion: 1;
713
+ documentId: string;
714
+ parts: Array<{
715
+ name: string;
716
+ byteLength: number;
717
+ root: SourceElement | null;
718
+ error: string | null;
719
+ }>;
720
+ assets: Array<{
721
+ name: string;
722
+ byteLength: number;
723
+ root: null;
724
+ error: null;
725
+ }>;
726
+ warnings: string[];
727
+ preservedFeatures: Array<{
728
+ partName: string;
729
+ feature: string;
730
+ occurrences: number;
731
+ support: "preserved_only" | "approximate_rendering";
732
+ }>;
733
+ }
734
+ declare function inspectDocumentSource(bytes: ArrayBuffer | Uint8Array): Promise<DocumentSourceGraph>;
735
+
610
736
  /** The parent grid bounds skipped-column counts without changing their source values. */
611
737
  declare function tableGridColumnBound(table: Pick<TableNode, "style" | "rows">): number;
612
738
  /** Ignore skipped-grid counts that exceed the parent grid. */
@@ -1007,7 +1133,7 @@ interface DocumentLayoutMetrics {
1007
1133
  footerDistancePx: number;
1008
1134
  docGridLinePitchPx?: number;
1009
1135
  }
1010
- declare function parseSectionLayout(sectionPropertiesXml?: string): DocumentLayoutMetrics;
1136
+ declare function parseSectionLayout(sectionPropertiesXml?: string, missingSectionLayout?: DocumentLayoutMetrics): DocumentLayoutMetrics;
1011
1137
  declare function resolveDocumentLayout(model: DocModel): DocumentLayoutMetrics;
1012
1138
 
1013
1139
  type DocxDocumentTheme = "light" | "dark";
@@ -2037,6 +2163,114 @@ declare function DocxEditorViewer({ editor, className, style, zoom, defaultZoom,
2037
2163
 
2038
2164
  declare function invalidateFontMetrics(): void;
2039
2165
 
2166
+ interface BlockBoundingBox {
2167
+ left: number;
2168
+ top: number;
2169
+ right: number;
2170
+ bottom: number;
2171
+ }
2172
+ interface DocxBlockFragment {
2173
+ nodeId: string;
2174
+ pageIndex: number;
2175
+ pageWidth: number;
2176
+ pageHeight: number;
2177
+ boundingBox: BlockBoundingBox;
2178
+ polygon: Array<{
2179
+ x: number;
2180
+ y: number;
2181
+ }>;
2182
+ coordinateSpace: "page-css-px";
2183
+ }
2184
+ interface DocxBlockGeometry {
2185
+ status: "rendered" | "partially_rendered" | "not_mounted" | "not_visible" | "unresolved";
2186
+ scope: "mounted_pages";
2187
+ issues: Array<{
2188
+ nodeId: string;
2189
+ reason: "unsupported_range" | "document_mismatch" | "not_on_page" | "range_text_mismatch";
2190
+ }>;
2191
+ fragments: DocxBlockFragment[];
2192
+ unresolvedSourceIds: string[];
2193
+ }
2194
+ declare function resolveDocxSourceGeometry(root: HTMLElement, refs: readonly DocxSourceRef[]): DocxBlockGeometry;
2195
+ declare function resolveDocxBlockGeometries(root: HTMLElement, blocks: readonly DocumentBlock[]): Map<string, DocxBlockGeometry>;
2196
+ declare function resolveDocxWordGeometries(root: HTMLElement, words: readonly DocumentWord[]): Map<string, DocxBlockGeometry>;
2197
+ declare function DocxWordHighlights({ word, words, ...props }: {
2198
+ rootRef: React.RefObject<HTMLElement | null>;
2199
+ word?: DocumentWord;
2200
+ words?: readonly DocumentWord[];
2201
+ color?: string;
2202
+ onGeometry?: (geometry: DocxBlockGeometry) => void;
2203
+ }): React.JSX.Element;
2204
+ declare function revealDocxSource(root: HTMLElement, source: string | DocxSourceRef): void;
2205
+ interface DocxBlockHighlightsProps {
2206
+ rootRef: React.RefObject<HTMLElement | null>;
2207
+ block?: DocumentBlock;
2208
+ blocks?: readonly DocumentBlock[];
2209
+ color?: string;
2210
+ colorForBlock?: (block: DocumentBlock) => string;
2211
+ onGeometry?: (geometry: DocxBlockGeometry) => void;
2212
+ }
2213
+ declare function DocxBlockHighlights({ rootRef, block, blocks, color, colorForBlock, onGeometry, }: DocxBlockHighlightsProps): React.JSX.Element;
2214
+ declare function normalizedDocxBoundingBox(fragment: DocxBlockFragment): {
2215
+ pageIndex: number;
2216
+ left: number;
2217
+ top: number;
2218
+ width: number;
2219
+ height: number;
2220
+ };
2221
+ interface DocxPageBlock extends Omit<DocumentBlock, "id" | "parentBlockId" | "children"> {
2222
+ id: string;
2223
+ sourceBlockId: string;
2224
+ parentBlockId?: string;
2225
+ metadata: {
2226
+ page: {
2227
+ number: number;
2228
+ width: number;
2229
+ height: number;
2230
+ };
2231
+ };
2232
+ boundingBox: BlockBoundingBox;
2233
+ polygon: Array<{
2234
+ x: number;
2235
+ y: number;
2236
+ }>;
2237
+ fragments: DocxBlockFragment[];
2238
+ }
2239
+ declare function toDocxPageBlocks(block: DocumentBlock, geometry: DocxBlockGeometry): DocxPageBlock[];
2240
+ type ExtendParserBlockDetails = {
2241
+ type: "text_details";
2242
+ } | {
2243
+ type: "table_details";
2244
+ rowCount: number;
2245
+ columnCount: number;
2246
+ } | {
2247
+ type: "table_cell_details";
2248
+ rowIndex: number;
2249
+ columnIndex: number;
2250
+ } | {
2251
+ type: "figure_details";
2252
+ imageUrl?: string;
2253
+ figureType?: string;
2254
+ } | {
2255
+ type: "barcode_details";
2256
+ imageUrl?: string;
2257
+ decodedValue?: string;
2258
+ format?: string;
2259
+ } | {
2260
+ type: "key_value_details";
2261
+ ocrText?: string;
2262
+ } | {
2263
+ type: "formula_details";
2264
+ latex: string;
2265
+ } | Record<string, never>;
2266
+ interface ExtendParserBlock extends Omit<DocxPageBlock, "details" | "fragments"> {
2267
+ details: ExtendParserBlockDetails;
2268
+ sourceDetails: DocumentBlock["details"];
2269
+ coordinateSpace: "page-points";
2270
+ children: ExtendParserBlock[];
2271
+ }
2272
+ declare function toExtendParserBlocks(blocks: readonly DocumentBlock[], geometries: ReadonlyMap<string, DocxBlockGeometry>): ExtendParserBlock[];
2273
+
2040
2274
  interface ResolvedModelSection {
2041
2275
  startNodeIndex: number;
2042
2276
  sectionPropertiesXml?: string;
@@ -2097,7 +2331,10 @@ interface DocumentPageNodeSegment {
2097
2331
  nodeIndex: number;
2098
2332
  tableRowRange?: TableRowRange;
2099
2333
  paragraphLineRange?: ParagraphLineRange;
2334
+ paragraphBeforeSpacingPx?: number;
2100
2335
  }
2336
+ type PaginationPageStartReason = "initial" | "overflow" | "paragraph-break" | "manual-break" | "section";
2337
+ declare function suppressParagraphBeforeSpacingAtPageStart(reason: PaginationPageStartReason, compatibilityMode?: number): boolean;
2101
2338
  interface LetterheadColumnSegmentGroup {
2102
2339
  startOffset: number;
2103
2340
  endOffset: number;
@@ -2136,6 +2373,14 @@ declare function buildDocumentPageNodeSegments(model: DocModel, pageContentHeigh
2136
2373
  declare function resolveDocumentPageSegmentStartNodeIndex(pageSegments: DocumentPageNodeSegment[]): number | undefined;
2137
2374
  declare function scorePaginationAgainstStoredPageBreaks(pages: DocumentPageNodeSegment[][], storedBreakStartNodeIndexes: number[]): number;
2138
2375
 
2376
+ declare function normalizeSectionPageNumber(pageNumber: number, properties?: string): number;
2377
+ declare function createSectionParityBlankPage<T>(): T[];
2378
+ declare function isSectionParityBlankPage(page: readonly unknown[]): boolean;
2379
+ declare function createSectionPageNumberTracker(metadata: DocModel["metadata"]): {
2380
+ advancePage: () => void;
2381
+ startSection: (nodeIndex: number, atPageTop: boolean, hasPreviousPages: boolean) => boolean;
2382
+ };
2383
+
2139
2384
  type LayoutSnapshotOptions = LayoutOptions;
2140
2385
  interface LayoutSnapshotRect {
2141
2386
  x: number;
@@ -2382,4 +2627,4 @@ interface DocxThumbnailRenderer {
2382
2627
  }
2383
2628
  declare function createDocxThumbnailRenderer(documentModel: DocxThumbnailDocument, options?: CreateDocxThumbnailRendererOptions): DocxThumbnailRenderer;
2384
2629
 
2385
- export { type AnnotationMutationFailureReason, type AnnotationMutationResult, type CommentCreationResult, type CreateDocxThumbnailRendererOptions, type CreateParagraphCommentInput, DEFAULT_MIN_PARAGRAPH_LINE_HEIGHT_PX, DEFAULT_PAGE_OVERFLOW_TOLERANCE_PX, type DocModel, type DocNode, type DocumentCommentDefinition, type DocumentCompatibilitySettings, type DocumentNoteDefinition, type DocumentPageNodeSegment, type DocumentPageRange, type DocumentPageSegmentationOptions, type DocumentSection, type DocxAnnotationCommandFailureReason, type DocxAnnotationCommandResult, type DocxBorderContext, type DocxBorderPreset, type DocxBorderPresetState, type DocxComment, type DocxCommentCardRenderProps, type DocxCommentCreationCommandResult, type DocxContextMenuAction, type DocxContextMenuActionId, type DocxContextMenuContext, type DocxContextMenuRenderProps, type DocxCreateCommentOptions, type DocxDocumentTheme, type DocxEditorController, type DocxEditorSelection, DocxEditorViewer, type DocxEditorViewerMode, type DocxEditorViewerProps, type DocxFormFieldLocation, type DocxHeadingStyleMap, type DocxImageDropTarget, type DocxImageLocation, type DocxImageWrapMenuOption, type DocxImageWrapMode, type DocxImageWrapState, type DocxLineSpacingInfo, type DocxListType, type DocxPageLayoutInfo, type DocxPageThumbnailBounds, type DocxPageThumbnailItem, type DocxPageThumbnailRenderWindow, type DocxPageThumbnailResolution, type DocxPageThumbnailResolutionOptions, type DocxPageThumbnailStatus, type DocxPageVirtualizationOptions, type DocxPaginationInfo, type DocxRenderToCanvasOptions, type DocxSectionColumnLayout, type DocxSelectedFormField, type DocxTableContextMenuAction, type DocxTableContextMenuActionId, type DocxTableContextMenuContext, type DocxTableContextMenuRenderProps, type DocxTextRange, type DocxTextRangeLocation, type DocxThumbnailDocument, type DocxThumbnailOutput, type DocxThumbnailRenderResult, type DocxThumbnailRenderTimings, type DocxThumbnailRenderer, type DocxThumbnailScheduling, type DocxTrackedChange, type DocxTrackedChangeCardRenderProps, type DocxTrackedChangeKind, type DocxViewerSource, type DocxViewerThumbnails, type DocxVisiblePageRange, type FixedTableCellWidth, type FixedTableRowWidths, type FooterSection, type FormFieldCheckboxWidgetSettings, type FormFieldDropdownWidgetSettings, type FormFieldOption, type FormFieldRunNode, type FormFieldSourceKind, type FormFieldTextWidgetSettings, type FormFieldType, type FormFieldWidgetSettings, type HeaderSection, type HeadingLevel, type ImageRunNode, type InsertParagraphOptions, type LayoutBlock, type LayoutFragmentSource, type LayoutImageRun, type LayoutOptions, type LayoutPage, type LayoutParagraphBlock, type LayoutRun, type LayoutSnapshot, type LayoutSnapshotBlockFragment, type LayoutSnapshotImageRun, type LayoutSnapshotMargins, type LayoutSnapshotOptions, type LayoutSnapshotPage, type LayoutSnapshotPageSize, type LayoutSnapshotParagraphFragment, type LayoutSnapshotRect, type LayoutSnapshotRun, type LayoutSnapshotTableCellFragment, type LayoutSnapshotTableFragment, type LayoutSnapshotTableRowFragment, type LayoutSnapshotTextRun, type LayoutTableBlock, type LayoutTableCell, type LayoutTableRow, type LayoutTextRun, type LegacyWasmOoxmlPackage, type LetterheadColumnSegmentGroup, type LineElementMetrics, type LineVerticalMetrics, type NumberingAbstractDefinition, type NumberingDefinitionSet, type NumberingInstanceDefinition, type NumberingLevelDefinition, type NumberingPictureBulletDefinition, type OoxmlPackage, type OoxmlPart, type OverflowBreakCollectionOptions, type PageSegmentationCallbacks, type PaginationSectionMetrics, type ParagraphAlignment, type ParagraphBorderSet, type ParagraphBorderStyle, type ParagraphChildNode, type ParagraphIndent, type ParagraphLineRange, type ParagraphMarkFormattingSource, type ParagraphNode, type ParagraphNumbering, type ParagraphRevisionKind, type ParagraphRevisionTarget, type ParagraphSpacing, type ParagraphSplitControlOptions, type ParagraphStyle, type ParagraphStyleDefinition, type ParagraphTabStop, type ParagraphTextAlignment, type ParseDocxForViewerOptions, type ParsedDocxDocument, type ParsedDocxPerformanceTimings, ReactDocxViewer, type ReactDocxViewerProps, type RenderDocxThumbnailPageOptions, type ResolvedDocument, type ResolvedDocumentSection, type ResolvedLayoutMetrics, type ResolvedModelSection, type ResolvedTableRowHeight, type TableAlignment, type TableBorderSet, type TableBorderStyle, type TableBoxSpacing, type TableCellContentNode, type TableCellNode, type TableCellPhysicalGridRange, type TableCellStyle, type TableExplicitPageBreakInfo, type TableGridColumnDeletionPlan, type TableGridColumnDeletionRowPlan, type TableGridColumnInsertionPlan, type TableGridColumnInsertionRowPlan, type TableNode, type TablePreferredWidth, type TableRowGeometrySource, type TableRowHeightConstraint, type TableRowHeightRule, type TableRowNode, type TableRowRange, type TableRowStyle, type TableStyle, type TableWidthDefinition, type TableWidthSource, type TextRunBorderStyle, type TextRunNode, type TextStyle, type UpdateTextOptions, type UseDocxBordersResult, type UseDocxCommentsResult, type UseDocxDocumentThemeResult, type UseDocxEditorOptions, type UseDocxFormFieldsResult, type UseDocxImageWrapMenuResult, type UseDocxLineSpacingResult, type UseDocxModelState, type UseDocxPageLayoutResult, type UseDocxPageThumbnailsOptions, type UseDocxPageThumbnailsResult, type UseDocxPaginationResult, type UseDocxParagraphStylesResult, type UseDocxTrackChangesResult, type UseDocxViewerThumbnailsOptions, type ViewerZoomLevel, type ViewerZoomMode, type ViewerZoomState, type WasmOoxmlPackage, type WasmSource, acceptParagraphRevision, aggregateLineMetrics, allocateBlockId, applyRunStyle, buildDocModel, buildDocModelFromBytes, buildDocumentPageNodeSegments, buildDocumentPageRanges, buildLayoutSnapshot, checkLineVerticalFit, cloneDocModel, cloneParagraphMarkFormatting, cloneParagraphNode, cloneTableNode, collapseParagraphMargins, collectDocxEstimatedOverflowBreakStartNodeIndexes, collectDocxHardPageBreakStartNodeIndexes, collectDocxLastRenderedPageBreakStartNodeIndexes, collectDuplicateDocModelBlockIds, collectTableExplicitPageBreakInfo, collectTopLevelExplicitPageBreakStartNodeIndexes, constrainParagraphLineSplit, copyParagraphs, createDocxThumbnailRenderer, createMinimalDocxPackage, createParagraphComment, deepFreezeDocModel, defaultStarterModel, duplicateParagraph, ensureDocModelBlockIds, getPart, initWasm, insertParagraph, layoutDocument, modelToDocumentXml, multiplyDivideRound, normalizeDocModel, normalizeTableRowHeightTwips, packageToArrayBuffer, paragraphAfterSpacingPx, paragraphBeforeSpacingPx, paragraphHasExplicitPageBreak, paragraphHasLastRenderedPageBreak, paragraphHasPageBreakBefore, paragraphLetterheadColumnGroupAtSegmentOffset, paragraphLetterheadFloatSideAtNodeIndex, paragraphMarginContribution, paragraphStartsWithLastRenderedPageBreak, parseDocx, parseDocxForViewer, parseParagraphsFromClipboard, parseSectionLayout, pasteParagraphs, planTableGridColumnDeletion, planTableGridColumnInsertion, reduceFixedTableColumnWidths, invalidateFontMetrics as refreshDocxFontMetrics, rejectParagraphRevision, removeParagraph, replaceText, resolveDocumentForLayout, resolveDocumentLayout, resolveDocumentPageSegmentStartNodeIndex, resolveDocumentSectionsFromMetadata, resolveDocxPageThumbnailResolution, resolveEffectiveTableAlignment, resolveEffectiveTableBidiVisual, resolveEffectiveTablePreferredWidth, resolveFixedTableGridWidths, resolvePaginationSectionMetricsIndexForNodeIndex, resolveParagraphBeforeSpacingPx, resolveSectionIndexForNodeIndex, resolveSectionPropertiesXmlForNodeIndex, resolveTableAlignmentOffset, resolveTableCellContentClipHeight, resolveTableGridSkipCount, resolveTableLeadingIndent, resolveTablePreferredWidthTwips, resolveTableRowHeight, scalePaginationSectionMetricsHeights, scorePaginationAgainstStoredPageBreaks, sectionBreakAfterParagraphStartsNewPage, sectionBreakPropertiesStartNewPage, sectionTitlePageEnabled, selectSectionVariantForPage, serializeDocModel, serializeDocx, serializeParagraphsForClipboard, setCommentResolved, setParagraphAlignment, setParagraphHeading, setRunColor, setRunHighlight, setWasmSource, splitParagraphChildrenAtTextOffsets, tableCellPhysicalGridRange, tableCellsIntersectingGridRange, tableGridColumnBound, tablePhysicalGridColumnCount, tableRowGridSkipCount, tableWidthTwipsToPixels, toggleRunStyleFlag, updateParagraphText, updateTableCellParagraphText, updateTableCellParagraphTextRecursive, updateTableCellText, useDocxBorders, useDocxComments, useDocxDocumentTheme, useDocxEditor, useDocxFormFields, useDocxImageWrapMenu, useDocxLineSpacing, useDocxModel, useDocxPageLayout, useDocxPageThumbnails, useDocxPagination, useDocxParagraphStyles, useDocxTrackChanges, useDocxViewerThumbnails, withPart };
2630
+ export { type AnnotationMutationFailureReason, type AnnotationMutationResult, type BlockBoundingBox, type CommentCreationResult, type CreateDocxThumbnailRendererOptions, type CreateParagraphCommentInput, DEFAULT_MIN_PARAGRAPH_LINE_HEIGHT_PX, DEFAULT_PAGE_OVERFLOW_TOLERANCE_PX, DOCUMENT_BLOCK_TYPES, type DocModel, type DocNode, type DocumentBlock, type DocumentBlockType, type DocumentCommentDefinition, type DocumentCompatibilitySettings, type DocumentNoteDefinition, type DocumentPageNodeSegment, type DocumentPageRange, type DocumentPageSegmentationOptions, type DocumentSection, type DocumentSourceGraph, type DocumentWord, type DocxAnnotationCommandFailureReason, type DocxAnnotationCommandResult, type DocxBlockFragment, type DocxBlockGeometry, DocxBlockHighlights, type DocxBlockHighlightsProps, type DocxBorderContext, type DocxBorderPreset, type DocxBorderPresetState, type DocxComment, type DocxCommentCardRenderProps, type DocxCommentCreationCommandResult, type DocxContextMenuAction, type DocxContextMenuActionId, type DocxContextMenuContext, type DocxContextMenuRenderProps, type DocxCreateCommentOptions, type DocxDocumentTheme, type DocxEditorController, type DocxEditorSelection, DocxEditorViewer, type DocxEditorViewerMode, type DocxEditorViewerProps, type DocxFormFieldLocation, type DocxHeadingStyleMap, type DocxImageDropTarget, type DocxImageLocation, type DocxImageWrapMenuOption, type DocxImageWrapMode, type DocxImageWrapState, type DocxLineSpacingInfo, type DocxListType, type DocxPageBlock, type DocxPageLayoutInfo, type DocxPageThumbnailBounds, type DocxPageThumbnailItem, type DocxPageThumbnailRenderWindow, type DocxPageThumbnailResolution, type DocxPageThumbnailResolutionOptions, type DocxPageThumbnailStatus, type DocxPageVirtualizationOptions, type DocxPaginationInfo, type DocxRenderToCanvasOptions, type DocxSectionColumnLayout, type DocxSelectedFormField, type DocxSourceRef, type DocxTableContextMenuAction, type DocxTableContextMenuActionId, type DocxTableContextMenuContext, type DocxTableContextMenuRenderProps, type DocxTextRange, type DocxTextRangeLocation, type DocxThumbnailDocument, type DocxThumbnailOutput, type DocxThumbnailRenderResult, type DocxThumbnailRenderTimings, type DocxThumbnailRenderer, type DocxThumbnailScheduling, type DocxTrackedChange, type DocxTrackedChangeCardRenderProps, type DocxTrackedChangeKind, type DocxViewerSource, type DocxViewerThumbnails, type DocxVisiblePageRange, DocxWordHighlights, type ExtendParserBlock, type ExtendParserBlockDetails, type ExtractDocumentBlocksOptions, type FixedTableCellWidth, type FixedTableRowWidths, type FooterSection, type FormFieldCheckboxWidgetSettings, type FormFieldDropdownWidgetSettings, type FormFieldOption, type FormFieldRunNode, type FormFieldSourceKind, type FormFieldTextWidgetSettings, type FormFieldType, type FormFieldWidgetSettings, type HeaderSection, type HeadingLevel, type ImageRunNode, type InsertParagraphOptions, type LayoutBlock, type LayoutFragmentSource, type LayoutImageRun, type LayoutOptions, type LayoutPage, type LayoutParagraphBlock, type LayoutRun, type LayoutSnapshot, type LayoutSnapshotBlockFragment, type LayoutSnapshotImageRun, type LayoutSnapshotMargins, type LayoutSnapshotOptions, type LayoutSnapshotPage, type LayoutSnapshotPageSize, type LayoutSnapshotParagraphFragment, type LayoutSnapshotRect, type LayoutSnapshotRun, type LayoutSnapshotTableCellFragment, type LayoutSnapshotTableFragment, type LayoutSnapshotTableRowFragment, type LayoutSnapshotTextRun, type LayoutTableBlock, type LayoutTableCell, type LayoutTableRow, type LayoutTextRun, type LegacyWasmOoxmlPackage, type LetterheadColumnSegmentGroup, type LineElementMetrics, type LineVerticalMetrics, type NumberingAbstractDefinition, type NumberingDefinitionSet, type NumberingInstanceDefinition, type NumberingLevelDefinition, type NumberingPictureBulletDefinition, type OoxmlPackage, type OoxmlPart, type OverflowBreakCollectionOptions, type PageSegmentationCallbacks, type PaginationPageStartReason, type PaginationSectionMetrics, type ParagraphAlignment, type ParagraphBorderSet, type ParagraphBorderStyle, type ParagraphChildNode, type ParagraphIndent, type ParagraphLineRange, type ParagraphMarkFormattingSource, type ParagraphNode, type ParagraphNumbering, type ParagraphRevisionKind, type ParagraphRevisionTarget, type ParagraphSpacing, type ParagraphSplitControlOptions, type ParagraphStyle, type ParagraphStyleDefinition, type ParagraphTabStop, type ParagraphTextAlignment, type ParseDocxForViewerOptions, type ParsedDocxDocument, type ParsedDocxPerformanceTimings, ReactDocxViewer, type ReactDocxViewerProps, type RenderDocxThumbnailPageOptions, type ResolvedDocument, type ResolvedDocumentSection, type ResolvedLayoutMetrics, type ResolvedModelSection, type ResolvedTableRowHeight, type SourceElement, type StructuredDocument, type TableAlignment, type TableBorderSet, type TableBorderStyle, type TableBoxSpacing, type TableCellContentNode, type TableCellNode, type TableCellPhysicalGridRange, type TableCellStyle, type TableExplicitPageBreakInfo, type TableGridColumnDeletionPlan, type TableGridColumnDeletionRowPlan, type TableGridColumnInsertionPlan, type TableGridColumnInsertionRowPlan, type TableNode, type TablePreferredWidth, type TableRowGeometrySource, type TableRowHeightConstraint, type TableRowHeightRule, type TableRowNode, type TableRowRange, type TableRowStyle, type TableStyle, type TableWidthDefinition, type TableWidthSource, type TextLigatures, type TextRunBorderStyle, type TextRunNode, type TextStyle, type UpdateTextOptions, type UseDocxBordersResult, type UseDocxCommentsResult, type UseDocxDocumentThemeResult, type UseDocxEditorOptions, type UseDocxFormFieldsResult, type UseDocxImageWrapMenuResult, type UseDocxLineSpacingResult, type UseDocxModelState, type UseDocxPageLayoutResult, type UseDocxPageThumbnailsOptions, type UseDocxPageThumbnailsResult, type UseDocxPaginationResult, type UseDocxParagraphStylesResult, type UseDocxTrackChangesResult, type UseDocxViewerThumbnailsOptions, type ViewerZoomLevel, type ViewerZoomMode, type ViewerZoomState, type WasmOoxmlPackage, type WasmSource, acceptParagraphRevision, aggregateLineMetrics, allocateBlockId, applyRunStyle, buildDocModel, buildDocModelFromBytes, buildDocumentPageNodeSegments, buildDocumentPageRanges, buildLayoutSnapshot, checkLineVerticalFit, cloneDocModel, cloneParagraphMarkFormatting, cloneParagraphNode, cloneTableNode, collapseParagraphMargins, collectDocxEstimatedOverflowBreakStartNodeIndexes, collectDocxHardPageBreakStartNodeIndexes, collectDocxLastRenderedPageBreakStartNodeIndexes, collectDuplicateDocModelBlockIds, collectTableExplicitPageBreakInfo, collectTopLevelExplicitPageBreakStartNodeIndexes, constrainParagraphLineSplit, copyParagraphs, createDocxThumbnailRenderer, createMinimalDocxPackage, createParagraphComment, createSectionPageNumberTracker, createSectionParityBlankPage, deepFreezeDocModel, defaultStarterModel, duplicateParagraph, ensureDocModelBlockIds, extractDocumentBlocks, flattenDocumentBlocks, getPart, initWasm, insertParagraph, inspectDocumentSource, isSectionParityBlankPage, layoutDocument, modelToDocumentXml, multiplyDivideRound, normalizeDocModel, normalizeSectionPageNumber, normalizeTableRowHeightTwips, normalizedDocxBoundingBox, packageToArrayBuffer, paragraphAfterSpacingPx, paragraphBeforeSpacingPx, paragraphHasExplicitPageBreak, paragraphHasLastRenderedPageBreak, paragraphHasPageBreakBefore, paragraphLetterheadColumnGroupAtSegmentOffset, paragraphLetterheadFloatSideAtNodeIndex, paragraphMarginContribution, paragraphStartsWithLastRenderedPageBreak, parseDocx, parseDocxForViewer, parseParagraphsFromClipboard, parseSectionLayout, pasteParagraphs, planTableGridColumnDeletion, planTableGridColumnInsertion, reduceFixedTableColumnWidths, invalidateFontMetrics as refreshDocxFontMetrics, rejectParagraphRevision, removeParagraph, replaceText, resolveDocumentForLayout, resolveDocumentLayout, resolveDocumentPageSegmentStartNodeIndex, resolveDocumentSectionsFromMetadata, resolveDocxBlockGeometries, resolveDocxPageThumbnailResolution, resolveDocxSourceGeometry, resolveDocxWordGeometries, resolveEffectiveTableAlignment, resolveEffectiveTableBidiVisual, resolveEffectiveTablePreferredWidth, resolveFixedTableGridWidths, resolvePaginationSectionMetricsIndexForNodeIndex, resolveParagraphBeforeSpacingPx, resolveSectionIndexForNodeIndex, resolveSectionPropertiesXmlForNodeIndex, resolveTableAlignmentOffset, resolveTableCellContentClipHeight, resolveTableGridSkipCount, resolveTableLeadingIndent, resolveTablePreferredWidthTwips, resolveTableRowHeight, revealDocxSource, scalePaginationSectionMetricsHeights, scorePaginationAgainstStoredPageBreaks, sectionBreakAfterParagraphStartsNewPage, sectionBreakPropertiesStartNewPage, sectionTitlePageEnabled, selectSectionVariantForPage, serializeDocModel, serializeDocx, serializeParagraphsForClipboard, setCommentResolved, setParagraphAlignment, setParagraphHeading, setRunColor, setRunHighlight, setWasmSource, splitParagraphChildrenAtTextOffsets, suppressParagraphBeforeSpacingAtPageStart, tableCellPhysicalGridRange, tableCellsIntersectingGridRange, tableGridColumnBound, tablePhysicalGridColumnCount, tableRowGridSkipCount, tableWidthTwipsToPixels, toDocxPageBlocks, toExtendParserBlocks, toggleRunStyleFlag, updateParagraphText, updateTableCellParagraphText, updateTableCellParagraphTextRecursive, updateTableCellText, useDocxBorders, useDocxComments, useDocxDocumentTheme, useDocxEditor, useDocxFormFields, useDocxImageWrapMenu, useDocxLineSpacing, useDocxModel, useDocxPageLayout, useDocxPageThumbnails, useDocxPagination, useDocxParagraphStyles, useDocxTrackChanges, useDocxViewerThumbnails, withPart };