@docx-editor.dev/react 2.27.0 → 2.29.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.mts CHANGED
@@ -1,6 +1,16 @@
1
+ /**
2
+ * @docx-editor.dev/react
3
+ *
4
+ * React adapter for the DOCX editor. A thin renderer over the `Editor`
5
+ * contract from `@docx-editor.dev/core`: it supplies DOM and paints
6
+ * the engine's positioned display list, and holds no editing-engine state.
7
+ *
8
+ * @packageDocumentation
9
+ * @public
10
+ */
1
11
  import * as react from 'react';
2
12
  import react__default, { ReactNode, CSSProperties, ReactElement, ComponentType, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, Ref } from 'react';
3
- import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, InvalidTextFormFieldSession, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, TextFormFieldDialogSession, RevisionAuthorStyle, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, DocxEditorInstance, FontConfigurationFragment, FontResolver, EditorModule, ReviewDisplayMode, ImageDecodePort, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, SurfaceHyperlink, FontOrigin, MarkedFontResolver, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, RulerIndent, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
13
+ import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, InvalidTextFormFieldSession, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, TextFormFieldDialogSession, RevisionAuthorStyle, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, DocxEditorInstance, FontConfigurationFragment, FontResolver, EditorModule, ReviewDisplayMode, FieldResultsMode, ImageDecodePort, ChromeGroupId, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, SurfaceHyperlink, FontOrigin, MarkedFontResolver, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, RulerIndent, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
4
14
  export { CHROME_GROUPS, CHROME_MENUS, ChromeExportFormat, ChromeExportHandlers, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, ClearRefreshHighlightsOptions, DEFAULT_FONT, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, HIGHLIGHT_REFRESH_MS, HighlightSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, NavigateToChangeOptions, PX_PER_CM, PX_PER_INCH, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, ParagraphTabStop, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, ResolvedRevisionMarkup, ReviewAuthorInfo, ReviewDisplayMode, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionChangedLinesMark, RevisionDeletionMark, RevisionMarkupChromeHandlers, RevisionMarkupColor, RevisionMarkupDialogSession, RevisionMarkupMark, RevisionMarkupNamedColor, RevisionMarkupOptions, RevisionStyles, RulerTick, RulerUnit, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
5
15
  import { Editor, ViewScope, EditorCommand, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, DocumentHandle, EditorExecOptions, ExecResult, EditorScope, EditorSnapshot, EditorEvents, HighlightOptions, HighlightResult, HighlightRange, HighlightHit, PageSetup, IndentFormatting, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
6
16
  export { AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ScrollToAnchorOptions, TextMatch } from '@docx-editor.dev/core/contracts/editor';
@@ -575,9 +585,22 @@ interface DocxEditorLoadingProps {
575
585
  /** Inline styles for the loading container, as on `DocxEditor.Viewport`. */
576
586
  style?: CSSProperties;
577
587
  /**
578
- * The loading screen. Omitted, a full-size document page with the packaged indicator
579
- * and localized status is used. Compose your own around `DocxEditor.Loading.Spinner`
580
- * to keep the packaged indicator beside your own copy.
588
+ * Your own loading indicator, in place of the packaged spinner. The packaged screen keeps
589
+ * its page and centers this on it. With `overlay`, it then moves onto the document's first
590
+ * page while a large document lays out its remaining pages, and scrolls with it.
591
+ *
592
+ * Include text for screen readers, as the packaged indicator does.
593
+ *
594
+ * ```tsx
595
+ * <DocxEditor.Loading overlay indicator={<MyLogoSpinner label="Opening document" />} />
596
+ * ```
597
+ */
598
+ indicator?: DocxEditorChildren;
599
+ /**
600
+ * The whole first loading screen, in place of the packaged page. Compose your own around
601
+ * `DocxEditor.Loading.Spinner` to keep the packaged indicator beside your own copy. To
602
+ * change only the indicator, and keep it on the first page as the document opens, use
603
+ * `indicator`.
581
604
  */
582
605
  children?: DocxEditorChildren;
583
606
  }
@@ -626,7 +649,13 @@ interface DocxEditorLoadingComponent {
626
649
  * It covers TWO windows. Before bytes arrive it is the empty-state screen. And while a
627
650
  * LARGE document opens — the engine mounts it behind one painted frame precisely so this
628
651
  * screen can paint before the blocking parse and layout — it holds until the pages land;
629
- * pass `overlay` to pin it over the previous document for that window. A parse failure
652
+ * pass `overlay` to pin it over the previous document for that window. With `overlay`, once
653
+ * the first pages show, the indicator moves onto the first page until the rest are laid out.
654
+ * Pass `indicator` to replace only the spinner, in both places:
655
+ *
656
+ * ```tsx
657
+ * <DocxEditor.Loading overlay indicator={<MyLogoSpinner label="Opening document" />} />
658
+ * ``` A parse failure
630
659
  * clears both, so a broken document never spins forever; report that from
631
660
  * `snapshot().parseError` or the `error` event. Add `when` only for async the editor
632
661
  * cannot observe, typically a host that mounts the provider after its own fetch.
@@ -985,8 +1014,8 @@ interface MenuTableGridProps {
985
1014
  className?: string;
986
1015
  }
987
1016
  /**
988
- * Word's insert-table size picker: a 6×6 grid that highlights as the pointer sweeps it
989
- * and reads back the size underneath.
1017
+ * The insert-table size picker: a 6×6 grid that highlights as the pointer sweeps it and
1018
+ * reads back the size underneath. A pick inserts the table and closes the menu bar.
990
1019
  *
991
1020
  * Rendered only when the engine will honour an insert (see `MenuTablePicker`). A panel
992
1021
  * that opens onto a grid nothing can be picked from is worse than no panel: the row
@@ -1075,16 +1104,31 @@ interface MenuGroupProps {
1075
1104
  * @public
1076
1105
  */
1077
1106
  declare function MenuGroup({ label: literal, labelKey, className, hidden, children, }: MenuGroupProps): react.JSX.Element | null;
1078
- /** Props for `DocxEditor.Menu.Item`: one chrome slot as a menu row. @public */
1079
- interface MenuItemProps {
1107
+ /**
1108
+ * Props for `DocxEditor.Menu.Item`: one chrome slot as a menu row. Set `slotId`. A row with
1109
+ * neither `slotId` nor the deprecated `slot` renders nothing, with a development warning.
1110
+ * An interface, so a host can extend it.
1111
+ *
1112
+ * @public
1113
+ */
1114
+ interface MenuItemProps extends MenuItemBaseProps {
1080
1115
  /** The chrome slot this row drives (`'text.bold'`, `'insert.pageBreak'`, …). */
1081
- slot: ChromeSlotId;
1116
+ slotId?: ChromeSlotId;
1117
+ /** @deprecated Use `slotId`. Still read in this release, with a development warning. */
1118
+ slot?: ChromeSlotId;
1119
+ }
1120
+ /** The props every `Menu.Item` takes besides the slot it names. @public */
1121
+ interface MenuItemBaseProps {
1082
1122
  /** Plain-label i18n key, overriding the slot's tooltip-shaped one. */
1083
1123
  labelKey?: string;
1084
1124
  /** i18n key of the shortcut shown in the right column. */
1085
1125
  shortcutKey?: string;
1086
1126
  className?: string;
1087
- /** Render nothing — inside a packaged menu this removes the row. */
1127
+ /**
1128
+ * Render nothing: inside a packaged menu this removes the row in place. A named row part
1129
+ * with `hidden`, such as `<ContextMenu.Cut hidden />`, is shorthand for this override
1130
+ * with that row's `slotId`.
1131
+ */
1088
1132
  hidden?: boolean;
1089
1133
  }
1090
1134
  /**
@@ -1094,7 +1138,7 @@ interface MenuItemProps {
1094
1138
  *
1095
1139
  * @public
1096
1140
  */
1097
- declare function MenuItem({ slot, labelKey, shortcutKey, className, hidden }: MenuItemProps): react.JSX.Element | null;
1141
+ declare function MenuItem(props: MenuItemProps): react.JSX.Element | null;
1098
1142
  declare namespace MenuItem {
1099
1143
  var docxMenuRow: true;
1100
1144
  }
@@ -1134,9 +1178,20 @@ declare function MenuImageInsertImpl({ className, hidden }: MenuActionProps): re
1134
1178
  declare const MenuImageInsert: typeof MenuImageInsertImpl & {
1135
1179
  docxSlot: ChromeSlotId;
1136
1180
  };
1137
- interface MenuSubmenuProps {
1181
+ /**
1182
+ * Props for `DocxEditor.Menu.Submenu`. Set `labelKey` or `label`. A submenu with neither has
1183
+ * no name, with a development warning. An interface, so a host can extend it.
1184
+ *
1185
+ * @public
1186
+ */
1187
+ interface MenuSubmenuProps extends MenuSubmenuBaseProps {
1138
1188
  /** i18n key of the parent row's label. */
1139
- labelKey: string;
1189
+ labelKey?: string;
1190
+ /** Literal parent row label, already resolved. Wins over `labelKey`. */
1191
+ label?: string;
1192
+ }
1193
+ /** The props every `Menu.Submenu` takes besides its label. @public */
1194
+ interface MenuSubmenuBaseProps {
1140
1195
  /** Material Symbols paths for the parent row's icon. */
1141
1196
  paths?: readonly string[] | null;
1142
1197
  className?: string;
@@ -1152,7 +1207,7 @@ interface MenuSubmenuProps {
1152
1207
  *
1153
1208
  * @public
1154
1209
  */
1155
- declare function MenuSubmenu({ labelKey, paths, className, children }: MenuSubmenuProps): react.JSX.Element;
1210
+ declare function MenuSubmenu({ labelKey, label: literal, paths, className, children, }: MenuSubmenuProps): react.JSX.Element;
1156
1211
  /** Props for `DocxEditor.Menu.Separator`. @public */
1157
1212
  interface MenuSeparatorProps {
1158
1213
  className?: string;
@@ -1217,41 +1272,6 @@ interface MenuPartComponent {
1217
1272
  (props: Omit<MenuProps, 'id'>): ReactNode;
1218
1273
  readonly docxMenu: ChromeMenuId;
1219
1274
  }
1220
- /** Props for `DocxEditor.Menu.ReportIssue`. @public */
1221
- interface MenuReportIssueProps {
1222
- className?: string;
1223
- /** Render nothing — inside the packaged Help menu this removes the row. */
1224
- hidden?: boolean;
1225
- /** Replaces the packaged handler. Falls back to the menu's `onReportIssue`, then to
1226
- * this project's own tracker. */
1227
- onSelect?: () => void;
1228
- }
1229
- /**
1230
- * Help › Report issue.
1231
- *
1232
- * A NAMED part rather than anonymous markup inside the Help menu, because it is the one
1233
- * packaged row that reaches OUTSIDE the host's product: it opens this project's issue
1234
- * tracker with the current page URL and user agent prefilled. A host embedding the editor
1235
- * in its own app has every reason to point that somewhere else or drop it, and it should
1236
- * not have to rebuild the menu to do either — `reportIssue={false}` removes it,
1237
- * `onReportIssue` redirects it, and this part composes it back by name.
1238
- *
1239
- * @public
1240
- */
1241
- declare function MenuReportIssueImpl({ className, hidden, onSelect }: MenuReportIssueProps): react.JSX.Element | null;
1242
- /**
1243
- * The report-issue row, with its row-identity marker.
1244
- *
1245
- * The key is NOT a `ChromeSlotId` — the row is React's, not the shared registry's — but the
1246
- * merge only needs a stable string, and using one here is what lets a host write
1247
- * `<Menu.ReportIssue hidden/>` and have it REPLACE the packaged row rather than render a
1248
- * second, invisible one beside it.
1249
- *
1250
- * @public
1251
- */
1252
- declare const MenuReportIssue: typeof MenuReportIssueImpl & {
1253
- docxSlot: string;
1254
- };
1255
1275
 
1256
1276
  /** Props for a packaged context-menu row. @public */
1257
1277
  interface ContextMenuCommandProps {
@@ -1463,7 +1483,7 @@ interface DocxEditorContextMenuNamespace {
1463
1483
  readonly RefreshTocPageNumbers: typeof ContextMenuRefreshTocPageNumbers;
1464
1484
  /** A host-owned row: no slot, no command, the host's own label and action. */
1465
1485
  readonly Item: typeof ContextMenuItem;
1466
- /** Any chrome slot as a live row (`<ContextMenu.Slot slot="text.bold" />`). */
1486
+ /** Any chrome slot as a live row (`<ContextMenu.Slot slotId="text.bold" />`). */
1467
1487
  readonly Slot: typeof MenuItem;
1468
1488
  /** Bare row presentation, for a host building something the parts do not cover. */
1469
1489
  readonly Row: typeof MenuRow;
@@ -1664,6 +1684,13 @@ interface DocxEditorRootProps {
1664
1684
  onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
1665
1685
  /** Initial revision display mode. */
1666
1686
  reviewDisplayMode?: ReviewDisplayMode;
1687
+ /**
1688
+ * How the reader edits saved field results. `'atomic'` (the default) keeps every field one
1689
+ * unit. `'editable'` allows typing, deletion, and selection inside the saved result of a
1690
+ * DATE, MERGEFIELD, HYPERLINK, or similar field. Read once, when the editor is created: a later change is ignored, with a development warning. Refused
1691
+ * with a collaboration module.
1692
+ */
1693
+ fieldResults?: FieldResultsMode;
1667
1694
  /** Fired once per instance, after it is published to the tree (and after any
1668
1695
  * `DocxEditor.Content` in the same commit has attached its mount point). A large
1669
1696
  * document mounts behind one painted frame; `onReady` fires AFTER that mount lands,
@@ -1743,15 +1770,24 @@ declare namespace ToolbarReviewers {
1743
1770
 
1744
1771
  /** Props for `DocxEditorToolbar.Button`. @public */
1745
1772
  interface ToolbarButtonProps$1 {
1746
- /** The chrome slot this button drives (`'text.bold'`, `'history.undo'`, ...). */
1747
- slot: ChromeSlotId;
1773
+ /**
1774
+ * The chrome slot this button drives (`'text.bold'`, `'history.undo'`, ...). A button with
1775
+ * neither `slotId` nor the deprecated `slot` renders nothing, with a development warning.
1776
+ */
1777
+ slotId?: ChromeSlotId;
1778
+ /** @deprecated Use `slotId`. Still read in this release, with a development warning. */
1779
+ slot?: ChromeSlotId;
1748
1780
  /** Icon override; falls back to `children`, then to the registry's icon paths. */
1749
1781
  icon?: DocxEditorChildren;
1750
1782
  /** Merge the button's behavior into the single child element instead of a <button>. */
1751
1783
  asChild?: boolean;
1752
1784
  className?: string;
1753
1785
  children?: DocxEditorChildren;
1754
- /** Render nothing — inside the default arrangement this removes the slot. */
1786
+ /**
1787
+ * Render nothing: inside the default arrangement this removes the slot in place. A named
1788
+ * part is shorthand for the slot override, so `<Toolbar.Bold hidden />` is
1789
+ * `<Toolbar.Slot slotId="text.bold" hidden />`.
1790
+ */
1755
1791
  hidden?: boolean;
1756
1792
  }
1757
1793
  /**
@@ -1766,6 +1802,107 @@ declare namespace ToolbarButton$1 {
1766
1802
  var docxToolbarPart: true;
1767
1803
  }
1768
1804
 
1805
+ /** Props for `DocxEditor.Toolbar.Group`. @public */
1806
+ interface DocxEditorToolbarGroupProps {
1807
+ /**
1808
+ * The group id. A built-in id (`'history'`, `'font'`, `'text'`, `'review'`, ...) adds the
1809
+ * children to that group, after its own controls. Any other id makes a host group.
1810
+ */
1811
+ id: ChromeGroupId | (string & {});
1812
+ /**
1813
+ * Catalog key for the host group's "⋯" panel heading and accessible name. It goes through
1814
+ * the toolbar's `t` and the locale catalog. Built-in groups keep their own label.
1815
+ */
1816
+ labelKey?: string;
1817
+ /**
1818
+ * Literal heading and accessible name for a host group. It wins over `labelKey`. Without
1819
+ * either, the heading is `id`. Built-in groups keep their own label.
1820
+ */
1821
+ label?: string;
1822
+ /**
1823
+ * Collapse priority. A lower number leaves the bar first. Built-in groups use 10 (zoom)
1824
+ * through 90 (history) in steps of 10. A host group without a priority collapses before
1825
+ * every built-in group.
1826
+ */
1827
+ priority?: number;
1828
+ /** `true` keeps the group in the bar at every width, like the review group. */
1829
+ pinned?: boolean;
1830
+ /**
1831
+ * The group this one follows in the bar. Without it, a host group follows every built-in
1832
+ * group, in order of appearance. Ignored for built-in ids.
1833
+ */
1834
+ after?: ChromeGroupId | (string & {});
1835
+ /** Removes the group, built-in or host, from the bar and the "⋯" panel. */
1836
+ hidden?: boolean;
1837
+ /**
1838
+ * Content for the group's "⋯" panel section, rendered after a built-in group's own rows.
1839
+ * It renders even when the group has no children, so a built-in id can add a panel-only
1840
+ * row. Without it, the panel renders the children in panel rows: actions and buttons
1841
+ * become labeled rows, and other content renders as is.
1842
+ */
1843
+ overflowContent?: () => DocxEditorChildren;
1844
+ className?: string;
1845
+ children?: DocxEditorChildren;
1846
+ }
1847
+ /**
1848
+ * A group of the preset toolbar: measured, collapsed in priority order, and shown as a
1849
+ * labeled section of the "⋯" panel when it does not fit.
1850
+ *
1851
+ * @example
1852
+ * ```tsx
1853
+ * <DocxEditor.Toolbar>
1854
+ * <DocxEditor.Toolbar.Group id="review-nav" label="Review" priority={15}>
1855
+ * <DocxEditor.Toolbar.Action label="Next change" icon={<NextIcon />} onSelect={next} />
1856
+ * </DocxEditor.Toolbar.Group>
1857
+ * <DocxEditor.Toolbar.Group id="zoom" hidden />
1858
+ * </DocxEditor.Toolbar>
1859
+ * ```
1860
+ *
1861
+ * @public
1862
+ */
1863
+ declare function ToolbarHostGroup(props: DocxEditorToolbarGroupProps): react.JSX.Element | null;
1864
+ declare namespace ToolbarHostGroup {
1865
+ var docxToolbarGroup: true;
1866
+ }
1867
+ /** Props for `DocxEditor.Toolbar.Slot`. @public */
1868
+ interface DocxEditorToolbarSlotProps {
1869
+ /** The built-in slot this content replaces, for example `'text.bold'`. */
1870
+ slotId: ChromeSlotId;
1871
+ /**
1872
+ * Render nothing: inside the preset arrangement this removes the slot in place. A named
1873
+ * part with `hidden`, such as `<Toolbar.Bold hidden />`, is shorthand for this override.
1874
+ */
1875
+ hidden?: boolean;
1876
+ /**
1877
+ * Content for the slot's "⋯" panel row when its group collapses. Without it the panel row
1878
+ * shows the children under the slot's label.
1879
+ */
1880
+ overflowContent?: () => DocxEditorChildren;
1881
+ children?: DocxEditorChildren;
1882
+ }
1883
+ /**
1884
+ * Replaces one built-in slot with arbitrary content. The content takes the slot's place and
1885
+ * collapses with the slot's group. A slot the preset arrangement does not draw has no place
1886
+ * to take, so the content is appended and a development warning names the slot. With
1887
+ * `hidden` it removes the slot in place; a named part with `hidden`, such as
1888
+ * `<Toolbar.Bold hidden />`, is shorthand for `<Toolbar.Slot slotId="text.bold" hidden />`.
1889
+ *
1890
+ * @example
1891
+ * ```tsx
1892
+ * <DocxEditor.Toolbar>
1893
+ * <DocxEditor.Toolbar.Slot slotId="zoom.level" overflowContent={() => <MyZoomList />}>
1894
+ * <MyZoomPicker />
1895
+ * </DocxEditor.Toolbar.Slot>
1896
+ * </DocxEditor.Toolbar>
1897
+ * ```
1898
+ *
1899
+ * @public
1900
+ */
1901
+ declare function ToolbarSlot(props: DocxEditorToolbarSlotProps): react.JSX.Element | null;
1902
+ declare namespace ToolbarSlot {
1903
+ var docxToolbarSlot: true;
1904
+ }
1905
+
1769
1906
  interface ImageInsertProviderProps {
1770
1907
  children: ReactNode;
1771
1908
  }
@@ -1830,7 +1967,11 @@ interface ToolbarPartComponent {
1830
1967
  */
1831
1968
  interface ToolbarSlotPartProps {
1832
1969
  className?: string;
1833
- /** Render nothing — inside the default arrangement this removes the slot. */
1970
+ /**
1971
+ * Render nothing: inside the default arrangement this removes the slot in place. A named
1972
+ * part is shorthand for the slot override, so `<Toolbar.Bold hidden />` is
1973
+ * `<Toolbar.Slot slotId="text.bold" hidden />`.
1974
+ */
1834
1975
  hidden?: boolean;
1835
1976
  }
1836
1977
  /** A non-button part pinned to one slot. @public */
@@ -1845,6 +1986,24 @@ interface ToolbarSeparatorProps {
1845
1986
  /** A vertical rule between toolbar groups. @public */
1846
1987
  declare function ToolbarSeparator({ className }: ToolbarSeparatorProps): react.JSX.Element;
1847
1988
 
1989
+ /**
1990
+ * Add Comment (`DocxEditorToolbar.AddComment`, slot `review.addComment`): opens a comment
1991
+ * draft on the selection in the review rail. It needs a mounted review rail to open the
1992
+ * draft. It is not part of the default arrangement; place it with `Toolbar.Group`.
1993
+ *
1994
+ * @example
1995
+ * ```tsx
1996
+ * <DocxEditor.Toolbar>
1997
+ * <DocxEditor.Toolbar.Group id="review">
1998
+ * <DocxEditor.Toolbar.AddComment />
1999
+ * </DocxEditor.Toolbar.Group>
2000
+ * </DocxEditor.Toolbar>
2001
+ * ```
2002
+ *
2003
+ * @public
2004
+ */
2005
+ declare const ToolbarAddComment: ToolbarPartComponent;
2006
+
1848
2007
  /**
1849
2008
  * Props for the split colour controls. @public
1850
2009
  *
@@ -1899,8 +2058,9 @@ interface ToolbarActionProps {
1899
2058
  /**
1900
2059
  * A host-owned toolbar action, styled and behaved like the packaged controls.
1901
2060
  *
1902
- * Renders inside `<DocxEditor.Toolbar>` after the default arrangement (it drives no slot,
1903
- * so it is an appended child), or anywhere under `preset={false}`.
2061
+ * Inside `<DocxEditor.Toolbar>` it appends after the default arrangement and never
2062
+ * collapses. Put it in a `Toolbar.Group` to have it collapse into the "⋯" panel, where it
2063
+ * renders as a row with its icon and `label`. Under `preset={false}` it renders as written.
1904
2064
  *
1905
2065
  * @public
1906
2066
  */
@@ -2180,6 +2340,15 @@ interface DocxEditorToolbarNamespace {
2180
2340
  /** A host-owned action the chrome registry does not describe. */
2181
2341
  readonly Action: typeof ToolbarAction;
2182
2342
  readonly Separator: typeof ToolbarSeparator;
2343
+ /**
2344
+ * A group of the preset bar: host content that is measured and collapses into the "⋯"
2345
+ * panel, or, with a built-in id, controls added to that group or the group hidden.
2346
+ */
2347
+ readonly Group: typeof ToolbarHostGroup;
2348
+ /** Replaces one built-in slot with arbitrary content, in the slot's place. */
2349
+ readonly Slot: typeof ToolbarSlot;
2350
+ /** Opens a comment draft on the selection in the review rail. */
2351
+ readonly AddComment: typeof ToolbarAddComment;
2183
2352
  readonly Undo: ToolbarPartComponent;
2184
2353
  readonly Redo: ToolbarPartComponent;
2185
2354
  readonly Bold: ToolbarPartComponent;
@@ -2240,6 +2409,42 @@ interface DocxEditorToolbarNamespace {
2240
2409
  */
2241
2410
  declare const DocxEditorToolbar: DocxEditorToolbarNamespace;
2242
2411
 
2412
+ /** Props for `DocxEditor.Menu.ReportIssue`. @public */
2413
+ interface MenuReportIssueProps {
2414
+ className?: string;
2415
+ /** Render nothing — inside the packaged Help menu this removes the row. */
2416
+ hidden?: boolean;
2417
+ /** Replaces the packaged handler. Falls back to the menu's `onReportIssue`, then to
2418
+ * this project's own tracker. */
2419
+ onSelect?: () => void;
2420
+ }
2421
+ /**
2422
+ * Help › Report issue.
2423
+ *
2424
+ * A NAMED part rather than anonymous markup inside the Help menu, because it is the one
2425
+ * packaged row that reaches OUTSIDE the host's product: it opens this project's issue
2426
+ * tracker with the current page URL and user agent prefilled. A host embedding the editor
2427
+ * in its own app has every reason to point that somewhere else or drop it, and it should
2428
+ * not have to rebuild the menu to do either — `reportIssue={false}` removes it,
2429
+ * `onReportIssue` redirects it, and this part composes it back by name.
2430
+ *
2431
+ * @public
2432
+ */
2433
+ declare function MenuReportIssueImpl({ className, hidden, onSelect }: MenuReportIssueProps): react.JSX.Element | null;
2434
+ /**
2435
+ * The report-issue row, with its row-identity marker.
2436
+ *
2437
+ * The key is NOT a `ChromeSlotId` — the row is React's, not the shared registry's — but the
2438
+ * merge only needs a stable string, and using one here is what lets a host write
2439
+ * `<Menu.ReportIssue hidden/>` and have it REPLACE the packaged row rather than render a
2440
+ * second, invisible one beside it.
2441
+ *
2442
+ * @public
2443
+ */
2444
+ declare const MenuReportIssue: typeof MenuReportIssueImpl & {
2445
+ docxSlot: string;
2446
+ };
2447
+
2243
2448
  type MenuReviewersProps = {
2244
2449
  className?: string;
2245
2450
  hidden?: boolean;
@@ -2294,6 +2499,21 @@ interface DocxEditorMenuProps {
2294
2499
  * children override their menu in place, others append.
2295
2500
  */
2296
2501
  preset?: boolean;
2502
+ /**
2503
+ * What the bar does when its menus do not fit on one line. Default `true`: the bar stays
2504
+ * one line, measures its menus, and moves the ones that do not fit, from the end, into
2505
+ * one "⋯" menu, where each becomes a submenu with the same rows. `false` lets the bar
2506
+ * wrap onto more lines instead.
2507
+ *
2508
+ * The bar must be able to shrink for this to work, so give it a bounded width (for
2509
+ * example `min-width: 0` in a flex row). Host children that are not menus never move.
2510
+ *
2511
+ * @example
2512
+ * ```tsx
2513
+ * <DocxEditor.Menu overflow={false} />
2514
+ * ```
2515
+ */
2516
+ overflow?: boolean;
2297
2517
  children?: DocxEditorChildren;
2298
2518
  }
2299
2519
  /** The menu bar with its parts attached as statics. @public */
@@ -2485,6 +2705,12 @@ interface UseNavigationPaneResult {
2485
2705
  * the left gutter was already wide enough to hold it — which is the point.
2486
2706
  */
2487
2707
  readonly shift: number;
2708
+ /**
2709
+ * Whether the open pane covers the page instead of moving it. True on a viewport too
2710
+ * narrow to show a readable page beside the pane (see `NAVIGATION_PANE_MIN_PAGE_ROOM`);
2711
+ * `shift` is then 0, and `DocxEditor.Navigation` closes after a heading or result is picked.
2712
+ */
2713
+ readonly overlay: boolean;
2488
2714
  }
2489
2715
  /**
2490
2716
  * The navigation pane's behavior, with no UI attached: open state, the active tab, and
@@ -2558,8 +2784,9 @@ declare function NavigationToggle({ className, style, children, }: NavigationPar
2558
2784
  /** Props for `DocxEditor.Navigation`. @public */
2559
2785
  interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
2560
2786
  /**
2561
- * Label resolver. Defaults to the active `LocaleContext` catalogue (bundled English
2562
- * unless a provider swapped it), matching `<DocxEditor>`'s own default.
2787
+ * Label resolver. Defaults to the `translate` given to `DocxEditor.Root`, and for keys it
2788
+ * leaves unresolved, to the active `LocaleContext` catalogue (bundled English unless a
2789
+ * provider swapped it).
2563
2790
  */
2564
2791
  t?: (key: string, params?: Record<string, string | number>) => string;
2565
2792
  /**
@@ -2577,6 +2804,12 @@ interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
2577
2804
  * tab; another `useDocumentSearch` consumer can still request them.
2578
2805
  */
2579
2806
  searchHighlight?: DocumentSearchHighlight;
2807
+ /**
2808
+ * Whether Ctrl+F (Cmd+F on macOS) opens the pane on the Find tab. Defaults to `true`. The
2809
+ * shortcut applies only while focus is in this editor, so the rest of the page keeps the
2810
+ * browser's own search. Set `false` to leave the shortcut to the browser everywhere.
2811
+ */
2812
+ findShortcut?: boolean;
2580
2813
  className?: string;
2581
2814
  style?: CSSProperties;
2582
2815
  /** Replaces the default composition (header, tabs, both panels). */
@@ -2703,6 +2936,21 @@ interface NavigationShiftInput {
2703
2936
  * make the pane jump on the first frame and settle on the second.
2704
2937
  */
2705
2938
  declare function navigationShift({ viewportWidth, pageWidthPx, reservation, inlineEndReservation, inlineStartReservation, docked, }: NavigationShiftInput): number;
2939
+ /**
2940
+ * The narrowest page column, in px, an open pane must leave beside it.
2941
+ *
2942
+ * Below it a shift cannot help: a 390px phone viewport less the default 328px reservation
2943
+ * leaves a 62px strip of page. There the pane overlays the page instead, at the viewport's
2944
+ * full width less its inset on each side, and the page does not move.
2945
+ */
2946
+ declare const NAVIGATION_PANE_MIN_PAGE_ROOM = 320;
2947
+ /**
2948
+ * Whether an open pane overlays the page rather than moving it: true when the viewport
2949
+ * leaves less than {@link NAVIGATION_PANE_MIN_PAGE_ROOM} beside the reservation. Uses the
2950
+ * viewport's client width only, never a padding the pane itself causes, so the answer cannot
2951
+ * feed back into its own input. `false` for a viewport that has not been measured.
2952
+ */
2953
+ declare function navigationPaneOverlays(viewportWidth: number, reservation: number): boolean;
2706
2954
 
2707
2955
  /**
2708
2956
  * The px the chrome is currently displaced by an open navigation pane. `0` when no pane
@@ -2724,8 +2972,22 @@ interface DocxEditorPageNumberProps {
2724
2972
  /**
2725
2973
  * Floating localized page readout for the active `DocxEditor.Viewport`.
2726
2974
  *
2727
- * Render it as a sibling of the viewport inside a positioned wrapper. It appears while a
2728
- * multi-page document scrolls and fades after 600 ms of inactivity.
2975
+ * It appears while a multi-page document scrolls and fades after 600 ms of inactivity. It is
2976
+ * positioned `absolute` against the nearest positioned ancestor, so give the element that holds
2977
+ * the viewport `position: relative`.
2978
+ *
2979
+ * Place it as a sibling of the viewport or inside it. Inside the viewport, it renders into the
2980
+ * viewport's parent element, so it stays in view while the pages scroll.
2981
+ *
2982
+ * @example
2983
+ * ```tsx
2984
+ * <div style={{ position: 'relative', height: '100%' }}>
2985
+ * <DocxEditor.Viewport>
2986
+ * <DocxEditor.Content />
2987
+ * </DocxEditor.Viewport>
2988
+ * <DocxEditor.PageNumber />
2989
+ * </div>
2990
+ * ```
2729
2991
  *
2730
2992
  * @public
2731
2993
  */
@@ -2796,6 +3058,18 @@ interface DocxEditorProps {
2796
3058
  */
2797
3059
  readonly renderTitleBarLeft?: () => DocxEditorChildren;
2798
3060
  readonly renderTitleBarRight?: () => DocxEditorChildren;
3061
+ /**
3062
+ * Your own loading indicator, in place of the packaged spinner. It shows centered on a
3063
+ * blank page before the document arrives, then on the document's first page while a large
3064
+ * document lays out its remaining pages, and scrolls with it. Include text for screen
3065
+ * readers, as the packaged indicator does. Requires `chrome`; without it, compose
3066
+ * `DocxEditor.Loading` yourself.
3067
+ *
3068
+ * ```tsx
3069
+ * <DocxEditor document={bytes} loadingIndicator={<MyLogoSpinner label="Opening" />} />
3070
+ * ```
3071
+ */
3072
+ readonly loadingIndicator?: DocxEditorChildren;
2799
3073
  /**
2800
3074
  * Chrome colour mode. `'system'` follows the OS and re-resolves when it changes.
2801
3075
  * Only the editor CHROME is themed — the document canvas stays Word-faithful.
@@ -2908,6 +3182,9 @@ interface DocxEditorProps {
2908
3182
  * opens Find. Before this took an object the only way to change any of that was
2909
3183
  * `navigation={false}` plus rebuilding the pane. `true`/undefined keep the packaged
2910
3184
  * defaults.
3185
+ *
3186
+ * The pane captures Ctrl+F (Cmd+F on macOS) while focus is in this editor and opens Find.
3187
+ * `navigation={{ findShortcut: false }}` leaves the shortcut to the browser.
2911
3188
  */
2912
3189
  navigation?: boolean | DocxEditorNavigationProps;
2913
3190
  /**
@@ -2955,6 +3232,13 @@ interface DocxEditorProps {
2955
3232
  onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
2956
3233
  /** Initial revision display mode. */
2957
3234
  reviewDisplayMode?: ReviewDisplayMode;
3235
+ /**
3236
+ * How the reader edits saved field results. `'atomic'` (the default) keeps every field one
3237
+ * unit. `'editable'` allows typing, deletion, and selection inside the saved result of a
3238
+ * DATE, MERGEFIELD, HYPERLINK, or similar field. Read once, when the editor is created: a later change is ignored, with a development warning. Refused
3239
+ * with a collaboration module.
3240
+ */
3241
+ fieldResults?: FieldResultsMode;
2958
3242
  /**
2959
3243
  * BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
2960
3244
  * Changes apply to subsequent edits without a remount; stored date formats are preserved.
@@ -3160,6 +3444,12 @@ interface ReviewGutterInput {
3160
3444
  * entitlement to measure the leftover against. The full column stands.
3161
3445
  */
3162
3446
  readonly docked?: boolean;
3447
+ /**
3448
+ * `overflow: 'scroll'`: the full column stands even when it does not fit. The page
3449
+ * keeps the one size it has with the pane closed, and the viewport scrolls sideways to
3450
+ * reach the cards.
3451
+ */
3452
+ readonly scroll?: boolean;
3163
3453
  }
3164
3454
  /**
3165
3455
  * The paddings, in px, the scroll container reserves for the review rail.
@@ -3170,13 +3460,13 @@ interface ReviewGutterInput {
3170
3460
  * frame paints exactly as it always did and collapses only once there is a real width
3171
3461
  * to decide by.
3172
3462
  */
3173
- declare function reviewGutter({ open, viewportWidth, pageWidthPx, inlineStartReservation, docked, }: ReviewGutterInput): ReviewGutter;
3463
+ declare function reviewGutter({ open, viewportWidth, pageWidthPx, inlineStartReservation, docked, scroll, }: ReviewGutterInput): ReviewGutter;
3174
3464
  /**
3175
3465
  * The gutter the review rail reserves right now: nothing with no rail mounted, and the
3176
3466
  * measured `reviewGutter` pair otherwise. The one source for the scroll container's
3177
3467
  * paddings and both rulers.
3178
3468
  *
3179
- * The result is reference-stable — the pure function answers with one of three shared
3469
+ * The result is reference-stable — the pure function answers with one of four shared
3180
3470
  * constants — and the hook stores THAT, never the raw width: a resize sweeps through
3181
3471
  * hundreds of widths that all resolve to the same constant, and holding the width as
3182
3472
  * state re-rendered every consumer (the review rail among them) once per pixel. Storing
@@ -4634,5 +4924,5 @@ interface UseHistoryGroupReturn {
4634
4924
  /** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
4635
4925
  declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
4636
4926
 
4637
- export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorVerticalRuler, DocxEditorViewport, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, useProvidedDocxEditor as provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
4638
- export type { ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocxEditorAuthorStyleProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorViewportProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, HeaderFooterState, HorizontalRulerProps$1 as HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, SlotProps, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps$1 as ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseFontFamilyResult, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseTextFormFieldDialogReturn, UseZoomResult, VerticalRulerProps };
4927
+ export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorVerticalRuler, DocxEditorViewport, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, useProvidedDocxEditor as provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
4928
+ export type { ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocxEditorAuthorStyleProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorViewportProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, HeaderFooterState, HorizontalRulerProps$1 as HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, SlotProps, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps$1 as ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseFontFamilyResult, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseTextFormFieldDialogReturn, UseZoomResult, VerticalRulerProps };