@docx-editor.dev/vue 2.26.0 → 2.27.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.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as vue from 'vue';
2
2
  import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, InjectionKey, MaybeRef, ComputedRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
3
3
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
4
- import { ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
5
- 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, ReviewAuthorInfo, RevisionAuthorAssignments, RevisionAuthorStyle, 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';
4
+ import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, EditorModule, ReviewDisplayMode, ImageDecodePort, DocxEditorInstance, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
5
+ 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';
6
6
  import * as _docx_editor_dev_core from '@docx-editor.dev/core';
7
7
  import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
8
8
  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';
@@ -28,6 +28,163 @@ type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
28
28
  */
29
29
  type DocxEditorChildren = VNode;
30
30
 
31
+ /**
32
+ * Shared presentation props for dialog parts. @public
33
+ *
34
+ * Anything beyond these members reaches the rendered element, so a part takes an `id`,
35
+ * an `aria-*` label or a `data-*` test hook. The part's own wiring wins every collision:
36
+ * a host cannot replace Apply's handler or its `data-docx-part` marker by passing one.
37
+ * To own the element and its handler outright, pass `as-child` and supply your own.
38
+ */
39
+ interface DialogPartProps {
40
+ className?: string;
41
+ style?: CSSProperties;
42
+ hidden?: boolean;
43
+ asChild?: boolean;
44
+ children?: DocxEditorChildren;
45
+ id?: string;
46
+ title?: string;
47
+ 'aria-label'?: string;
48
+ [attribute: `data-${string}`]: unknown;
49
+ }
50
+ /** Layout customization for a packaged dialog. @public */
51
+ interface DialogCustomizationProps {
52
+ className?: string;
53
+ style?: CSSProperties;
54
+ preset?: boolean;
55
+ children?: DocxEditorChildren;
56
+ }
57
+ /** Draft state and actions for a dialog. @public */
58
+ interface UseDialogReturn<T extends object> {
59
+ readonly values: Readonly<Ref<T>>;
60
+ readonly errors: Readonly<Ref<Readonly<Partial<Record<keyof T | 'form', string>>>>>;
61
+ readonly isEnabled: Readonly<Ref<boolean>>;
62
+ setValue<K extends keyof T>(name: K, value: T[K]): void;
63
+ apply(): void;
64
+ cancel(): void;
65
+ reset?(): void;
66
+ }
67
+
68
+ /** Viewer markup draft state and actions. @public */
69
+ interface UseRevisionMarkupDialogReturn extends UseDialogReturn<ResolvedRevisionMarkup> {
70
+ reset(): void;
71
+ }
72
+ /** Access the markup dialog draft and actions. @public */
73
+ declare function useRevisionMarkupDialog(): UseRevisionMarkupDialogReturn;
74
+ /** A markup settings session with customizable dialog parts. @public */
75
+ interface DocxEditorRevisionMarkupDialogProps extends DialogCustomizationProps {
76
+ session: RevisionMarkupDialogSession | null;
77
+ }
78
+ /** Customizable viewer-local Track changes options. @public */
79
+ declare const DocxEditorRevisionMarkupDialog: {
80
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
81
+ session: {
82
+ type: PropType<RevisionMarkupDialogSession | null>;
83
+ default: null;
84
+ };
85
+ children: PropType<DocxEditorChildren>;
86
+ preset: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ className: StringConstructor;
91
+ style: PropType<CSSProperties>;
92
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
93
+ session: RevisionMarkupDialogSession | null;
94
+ preset: boolean;
95
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
96
+ P: {};
97
+ B: {};
98
+ D: {};
99
+ C: {};
100
+ M: {};
101
+ Defaults: {};
102
+ }, Readonly<vue.ExtractPropTypes<{
103
+ session: {
104
+ type: PropType<RevisionMarkupDialogSession | null>;
105
+ default: null;
106
+ };
107
+ children: PropType<DocxEditorChildren>;
108
+ preset: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ className: StringConstructor;
113
+ style: PropType<CSSProperties>;
114
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
115
+ session: RevisionMarkupDialogSession | null;
116
+ preset: boolean;
117
+ }>;
118
+ __isFragment?: never;
119
+ __isTeleport?: never;
120
+ __isSuspense?: never;
121
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
122
+ session: {
123
+ type: PropType<RevisionMarkupDialogSession | null>;
124
+ default: null;
125
+ };
126
+ children: PropType<DocxEditorChildren>;
127
+ preset: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ className: StringConstructor;
132
+ style: PropType<CSSProperties>;
133
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
134
+ session: RevisionMarkupDialogSession | null;
135
+ preset: boolean;
136
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Reset" | "Title", vue.DefineComponent<DialogPartProps>> & {
137
+ Field: vue.DefineComponent<DialogPartProps & {
138
+ name: keyof ResolvedRevisionMarkup;
139
+ }>;
140
+ };
141
+
142
+ /** Viewer-local markup declarations. @public */
143
+ interface DocxEditorRevisionMarkupProps extends RevisionMarkupOptions {
144
+ onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
145
+ }
146
+ /** Declares markup settings without rendering an element. @public */
147
+ declare const DocxEditorRevisionMarkup: vue.DefineComponent<vue.ExtractPropTypes<{
148
+ insertions: PropType<RevisionMarkupOptions['insertions']>;
149
+ deletions: PropType<RevisionMarkupOptions['deletions']>;
150
+ movedFrom: PropType<RevisionMarkupOptions['movedFrom']>;
151
+ movedTo: PropType<RevisionMarkupOptions['movedTo']>;
152
+ formatting: PropType<RevisionMarkupOptions['formatting']>;
153
+ changedLines: PropType<RevisionMarkupOptions['changedLines']>;
154
+ cells: PropType<RevisionMarkupOptions['cells']>;
155
+ trackMoves: {
156
+ type: BooleanConstructor;
157
+ default: undefined;
158
+ };
159
+ trackFormatting: {
160
+ type: BooleanConstructor;
161
+ default: undefined;
162
+ };
163
+ }>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
164
+ revisionMarkupChange: (_settings: ResolvedRevisionMarkup) => true;
165
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
166
+ insertions: PropType<RevisionMarkupOptions['insertions']>;
167
+ deletions: PropType<RevisionMarkupOptions['deletions']>;
168
+ movedFrom: PropType<RevisionMarkupOptions['movedFrom']>;
169
+ movedTo: PropType<RevisionMarkupOptions['movedTo']>;
170
+ formatting: PropType<RevisionMarkupOptions['formatting']>;
171
+ changedLines: PropType<RevisionMarkupOptions['changedLines']>;
172
+ cells: PropType<RevisionMarkupOptions['cells']>;
173
+ trackMoves: {
174
+ type: BooleanConstructor;
175
+ default: undefined;
176
+ };
177
+ trackFormatting: {
178
+ type: BooleanConstructor;
179
+ default: undefined;
180
+ };
181
+ }>> & Readonly<{
182
+ onRevisionMarkupChange?: ((_settings: ResolvedRevisionMarkup) => any) | undefined;
183
+ }>, {
184
+ trackMoves: boolean;
185
+ trackFormatting: boolean;
186
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
187
+
31
188
  /** State and presentation for the File menu export dialog. @public */
32
189
  interface DocxEditorExportDialogProps {
33
190
  /** Controls visibility when rendering the dialog directly. */
@@ -1818,42 +1975,6 @@ declare const ToolbarImageProperties: {
1818
1975
  docxSlot: 'image.properties';
1819
1976
  };
1820
1977
 
1821
- /**
1822
- * Shared presentation props for dialog parts. @public
1823
- *
1824
- * Anything beyond these members reaches the rendered element, so a part takes an `id`,
1825
- * an `aria-*` label or a `data-*` test hook. The part's own wiring wins every collision:
1826
- * a host cannot replace Apply's handler or its `data-docx-part` marker by passing one.
1827
- * To own the element and its handler outright, pass `as-child` and supply your own.
1828
- */
1829
- interface DialogPartProps {
1830
- className?: string;
1831
- style?: CSSProperties;
1832
- hidden?: boolean;
1833
- asChild?: boolean;
1834
- children?: DocxEditorChildren;
1835
- id?: string;
1836
- title?: string;
1837
- 'aria-label'?: string;
1838
- [attribute: `data-${string}`]: unknown;
1839
- }
1840
- /** Layout customization for a packaged dialog. @public */
1841
- interface DialogCustomizationProps {
1842
- className?: string;
1843
- style?: CSSProperties;
1844
- preset?: boolean;
1845
- children?: DocxEditorChildren;
1846
- }
1847
- /** Draft state and actions for a dialog. @public */
1848
- interface UseDialogReturn<T extends object> {
1849
- readonly values: Readonly<Ref<T>>;
1850
- readonly errors: Readonly<Ref<Readonly<Partial<Record<keyof T | 'form', string>>>>>;
1851
- readonly isEnabled: Readonly<Ref<boolean>>;
1852
- setValue<K extends keyof T>(name: K, value: T[K]): void;
1853
- apply(): void;
1854
- cancel(): void;
1855
- }
1856
-
1857
1978
  /** Editable Field Options draft. @public */
1858
1979
  interface TextFormFieldDialogFields {
1859
1980
  defaultText: string;
@@ -1929,7 +2050,7 @@ declare const DocxEditorTextFormFieldDialog: {
1929
2050
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
1930
2051
  session: TextFormFieldDialogSession | null;
1931
2052
  preset: boolean;
1932
- }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Title", vue.DefineComponent<DialogPartProps>> & {
2053
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Reset" | "Title", vue.DefineComponent<DialogPartProps>> & {
1933
2054
  Field: vue.DefineComponent<DialogPartProps & {
1934
2055
  name: keyof TextFormFieldDialogFields;
1935
2056
  }>;
@@ -2272,7 +2393,7 @@ declare const DocxEditorPageSetupDialog: {
2272
2393
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
2273
2394
  className: string;
2274
2395
  preset: boolean;
2275
- }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Title", vue.DefineComponent<DialogPartProps>> & {
2396
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Reset" | "Title", vue.DefineComponent<DialogPartProps>> & {
2276
2397
  Field: vue.DefineComponent<DialogPartProps & {
2277
2398
  name: "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "orientation" | "pageSize" | "scope";
2278
2399
  }>;
@@ -2368,7 +2489,7 @@ declare const DocxEditorParagraphDialog: {
2368
2489
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
2369
2490
  className: string;
2370
2491
  preset: boolean;
2371
- }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Title", vue.DefineComponent<DialogPartProps>> & {
2492
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Apply" | "Body" | "Cancel" | "Error" | "Footer" | "Header" | "Reset" | "Title", vue.DefineComponent<DialogPartProps>> & {
2372
2493
  Field: vue.DefineComponent<DialogPartProps & {
2373
2494
  name: "alignment" | "contextualSpacing" | "direction" | "indentLeft" | "indentRight" | "keepLines" | "keepNext" | "lineRule" | "lineValue" | "pageBreakBefore" | "spaceAfter" | "spaceBefore" | "special" | "specialBy" | "tabStops" | "widowControl";
2374
2495
  }>;
@@ -5658,6 +5779,8 @@ declare function useContextMenuTarget(): HTMLElement | null;
5658
5779
 
5659
5780
  /** Render overrides for automatically hosted editor popups. False disables a popup. @public */
5660
5781
  interface DocxEditorPopups {
5782
+ /** Track changes options. False cancels the requested settings session. */
5783
+ revisionMarkup?: DocxEditorPopup<DocxEditorRevisionMarkupDialogProps>;
5661
5784
  /** File export progress and errors. False hides feedback without stopping conversion. */
5662
5785
  export?: DocxEditorPopup<DocxEditorExportDialogProps>;
5663
5786
  /** File print progress and errors. False hides feedback; printing still runs. */
@@ -5711,6 +5834,16 @@ interface DocxEditorRootProps {
5711
5834
  mode?: 'edit' | 'view' | 'suggesting';
5712
5835
  zoom?: number;
5713
5836
  zoomMode?: ZoomMode | 'auto';
5837
+ /**
5838
+ * Controlled viewer markup settings. Omitted fields use defaults.
5839
+ * Save callback values into this prop to accept API and dialog changes.
5840
+ * Omit this prop for uncontrolled settings. Use one configuration source.
5841
+ */
5842
+ revisionMarkup?: RevisionMarkupOptions;
5843
+ /** Receives proposed settings from API or dialog changes, excluding prop reconciliation. */
5844
+ onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
5845
+ /** Initial revision display mode. */
5846
+ reviewDisplayMode?: ReviewDisplayMode;
5714
5847
  tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
5715
5848
  imageDecodePort?: ImageDecodePort;
5716
5849
  onReady?: (editor: Editor) => void;
@@ -5736,6 +5869,7 @@ interface DocxEditorRootListeners {
5736
5869
  onReady?: (editor: Editor) => void;
5737
5870
  onChange?: (change: DocumentChange) => void;
5738
5871
  onFontError?: (error: EditorFontError) => void;
5872
+ onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
5739
5873
  }
5740
5874
  /** @public */
5741
5875
  interface ProvideDocxEditorResult {
@@ -5783,6 +5917,8 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
5783
5917
  type: PropType<'edit' | 'view' | 'suggesting'>;
5784
5918
  default: undefined;
5785
5919
  };
5920
+ revisionMarkup: PropType<RevisionMarkupOptions>;
5921
+ reviewDisplayMode: PropType<ReviewDisplayMode>;
5786
5922
  zoom: {
5787
5923
  type: NumberConstructor;
5788
5924
  default: undefined;
@@ -5805,6 +5941,7 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
5805
5941
  ready: (_editor: Editor) => true;
5806
5942
  change: (_change: DocumentChange) => true;
5807
5943
  fontError: (_error: unknown) => true;
5944
+ revisionMarkupChange: (_settings: ResolvedRevisionMarkup) => true;
5808
5945
  }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
5809
5946
  popups: PropType<DocxEditorPopups>;
5810
5947
  document: {
@@ -5835,6 +5972,8 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
5835
5972
  type: PropType<'edit' | 'view' | 'suggesting'>;
5836
5973
  default: undefined;
5837
5974
  };
5975
+ revisionMarkup: PropType<RevisionMarkupOptions>;
5976
+ reviewDisplayMode: PropType<ReviewDisplayMode>;
5838
5977
  zoom: {
5839
5978
  type: NumberConstructor;
5840
5979
  default: undefined;
@@ -5855,6 +5994,7 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
5855
5994
  onChange?: ((_change: DocumentChange) => any) | undefined;
5856
5995
  onFontError?: ((_error: unknown) => any) | undefined;
5857
5996
  onReady?: ((_editor: Editor) => any) | undefined;
5997
+ onRevisionMarkupChange?: ((_settings: ResolvedRevisionMarkup) => any) | undefined;
5858
5998
  }>, {
5859
5999
  document: DocumentSource;
5860
6000
  fonts: _docx_editor_dev_core.FontConfiguration | _docx_editor_dev_core.FontConfigurationFragment | _docx_editor_dev_core.FontResolver | undefined;
@@ -7467,6 +7607,14 @@ interface DocxEditorProps {
7467
7607
  mode?: EditorMode;
7468
7608
  zoom?: number;
7469
7609
  zoomMode?: ZoomMode | 'auto';
7610
+ /**
7611
+ * Controlled viewer markup settings. Omitted fields use defaults.
7612
+ * Save callback values into this prop to accept API and dialog changes.
7613
+ * Omit this prop for uncontrolled settings. Use one configuration source.
7614
+ */
7615
+ revisionMarkup?: RevisionMarkupOptions;
7616
+ /** Initial revision display mode. */
7617
+ reviewDisplayMode?: ReviewDisplayMode;
7470
7618
  /**
7471
7619
  * BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
7472
7620
  * Changes apply to subsequent edits without a remount; stored date formats are preserved.
@@ -7528,6 +7676,8 @@ interface DocxEditorNamespace {
7528
7676
  readonly HyperLink: typeof DocxEditorHyperLink;
7529
7677
  readonly ContextMenu: typeof ContextMenu;
7530
7678
  readonly ContentControl: typeof DocxEditorContentControl;
7679
+ readonly RevisionMarkup: typeof DocxEditorRevisionMarkup;
7680
+ readonly RevisionMarkupDialog: typeof DocxEditorRevisionMarkupDialog;
7531
7681
  readonly AuthorStyle: typeof DocxEditorAuthorStyle;
7532
7682
  readonly ColorByChangeType: typeof DocxEditorColorByChangeType;
7533
7683
  }
@@ -8839,5 +8989,5 @@ interface UseHistoryGroupReturn {
8839
8989
  /** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
8840
8990
  declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
8841
8991
 
8842
- 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, 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, 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, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
8843
- 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, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorViewportProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, HeaderFooterState, 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, 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, UseTextFormFieldDialogReturn, UseZoomResult, VerticalRulerProps };
8992
+ 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, 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 };
8993
+ 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, 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, 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 };