@docx-editor.dev/vue 2.26.0 → 2.28.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.cjs +3 -3
- package/dist/index.d.cts +953 -200
- package/dist/index.d.ts +953 -200
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @docx-editor.dev/vue
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
1
6
|
import * as vue from 'vue';
|
|
2
7
|
import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, InjectionKey, MaybeRef, ComputedRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
|
|
3
8
|
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';
|
|
9
|
+
import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, EditorModule, ReviewDisplayMode, FieldResultsMode, ImageDecodePort, DocxEditorInstance, ChromeGroupId, 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';
|
|
10
|
+
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
11
|
import * as _docx_editor_dev_core from '@docx-editor.dev/core';
|
|
7
12
|
import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
|
|
8
13
|
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 +33,163 @@ type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
|
|
|
28
33
|
*/
|
|
29
34
|
type DocxEditorChildren = VNode;
|
|
30
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Shared presentation props for dialog parts. @public
|
|
38
|
+
*
|
|
39
|
+
* Anything beyond these members reaches the rendered element, so a part takes an `id`,
|
|
40
|
+
* an `aria-*` label or a `data-*` test hook. The part's own wiring wins every collision:
|
|
41
|
+
* a host cannot replace Apply's handler or its `data-docx-part` marker by passing one.
|
|
42
|
+
* To own the element and its handler outright, pass `as-child` and supply your own.
|
|
43
|
+
*/
|
|
44
|
+
interface DialogPartProps {
|
|
45
|
+
className?: string;
|
|
46
|
+
style?: CSSProperties;
|
|
47
|
+
hidden?: boolean;
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
children?: DocxEditorChildren;
|
|
50
|
+
id?: string;
|
|
51
|
+
title?: string;
|
|
52
|
+
'aria-label'?: string;
|
|
53
|
+
[attribute: `data-${string}`]: unknown;
|
|
54
|
+
}
|
|
55
|
+
/** Layout customization for a packaged dialog. @public */
|
|
56
|
+
interface DialogCustomizationProps {
|
|
57
|
+
className?: string;
|
|
58
|
+
style?: CSSProperties;
|
|
59
|
+
preset?: boolean;
|
|
60
|
+
children?: DocxEditorChildren;
|
|
61
|
+
}
|
|
62
|
+
/** Draft state and actions for a dialog. @public */
|
|
63
|
+
interface UseDialogReturn<T extends object> {
|
|
64
|
+
readonly values: Readonly<Ref<T>>;
|
|
65
|
+
readonly errors: Readonly<Ref<Readonly<Partial<Record<keyof T | 'form', string>>>>>;
|
|
66
|
+
readonly isEnabled: Readonly<Ref<boolean>>;
|
|
67
|
+
setValue<K extends keyof T>(name: K, value: T[K]): void;
|
|
68
|
+
apply(): void;
|
|
69
|
+
cancel(): void;
|
|
70
|
+
reset?(): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Viewer markup draft state and actions. @public */
|
|
74
|
+
interface UseRevisionMarkupDialogReturn extends UseDialogReturn<ResolvedRevisionMarkup> {
|
|
75
|
+
reset(): void;
|
|
76
|
+
}
|
|
77
|
+
/** Access the markup dialog draft and actions. @public */
|
|
78
|
+
declare function useRevisionMarkupDialog(): UseRevisionMarkupDialogReturn;
|
|
79
|
+
/** A markup settings session with customizable dialog parts. @public */
|
|
80
|
+
interface DocxEditorRevisionMarkupDialogProps extends DialogCustomizationProps {
|
|
81
|
+
session: RevisionMarkupDialogSession | null;
|
|
82
|
+
}
|
|
83
|
+
/** Customizable viewer-local Track changes options. @public */
|
|
84
|
+
declare const DocxEditorRevisionMarkupDialog: {
|
|
85
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
86
|
+
session: {
|
|
87
|
+
type: PropType<RevisionMarkupDialogSession | null>;
|
|
88
|
+
default: null;
|
|
89
|
+
};
|
|
90
|
+
children: PropType<DocxEditorChildren>;
|
|
91
|
+
preset: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
className: StringConstructor;
|
|
96
|
+
style: PropType<CSSProperties>;
|
|
97
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
98
|
+
session: RevisionMarkupDialogSession | null;
|
|
99
|
+
preset: boolean;
|
|
100
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
101
|
+
P: {};
|
|
102
|
+
B: {};
|
|
103
|
+
D: {};
|
|
104
|
+
C: {};
|
|
105
|
+
M: {};
|
|
106
|
+
Defaults: {};
|
|
107
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
108
|
+
session: {
|
|
109
|
+
type: PropType<RevisionMarkupDialogSession | null>;
|
|
110
|
+
default: null;
|
|
111
|
+
};
|
|
112
|
+
children: PropType<DocxEditorChildren>;
|
|
113
|
+
preset: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
className: StringConstructor;
|
|
118
|
+
style: PropType<CSSProperties>;
|
|
119
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
120
|
+
session: RevisionMarkupDialogSession | null;
|
|
121
|
+
preset: boolean;
|
|
122
|
+
}>;
|
|
123
|
+
__isFragment?: never;
|
|
124
|
+
__isTeleport?: never;
|
|
125
|
+
__isSuspense?: never;
|
|
126
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
127
|
+
session: {
|
|
128
|
+
type: PropType<RevisionMarkupDialogSession | null>;
|
|
129
|
+
default: null;
|
|
130
|
+
};
|
|
131
|
+
children: PropType<DocxEditorChildren>;
|
|
132
|
+
preset: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
className: StringConstructor;
|
|
137
|
+
style: PropType<CSSProperties>;
|
|
138
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
139
|
+
session: RevisionMarkupDialogSession | null;
|
|
140
|
+
preset: boolean;
|
|
141
|
+
}, {}, 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>> & {
|
|
142
|
+
Field: vue.DefineComponent<DialogPartProps & {
|
|
143
|
+
name: keyof ResolvedRevisionMarkup;
|
|
144
|
+
}>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/** Viewer-local markup declarations. @public */
|
|
148
|
+
interface DocxEditorRevisionMarkupProps extends RevisionMarkupOptions {
|
|
149
|
+
onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
|
|
150
|
+
}
|
|
151
|
+
/** Declares markup settings without rendering an element. @public */
|
|
152
|
+
declare const DocxEditorRevisionMarkup: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
153
|
+
insertions: PropType<RevisionMarkupOptions['insertions']>;
|
|
154
|
+
deletions: PropType<RevisionMarkupOptions['deletions']>;
|
|
155
|
+
movedFrom: PropType<RevisionMarkupOptions['movedFrom']>;
|
|
156
|
+
movedTo: PropType<RevisionMarkupOptions['movedTo']>;
|
|
157
|
+
formatting: PropType<RevisionMarkupOptions['formatting']>;
|
|
158
|
+
changedLines: PropType<RevisionMarkupOptions['changedLines']>;
|
|
159
|
+
cells: PropType<RevisionMarkupOptions['cells']>;
|
|
160
|
+
trackMoves: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: undefined;
|
|
163
|
+
};
|
|
164
|
+
trackFormatting: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: undefined;
|
|
167
|
+
};
|
|
168
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
169
|
+
revisionMarkupChange: (_settings: ResolvedRevisionMarkup) => true;
|
|
170
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
171
|
+
insertions: PropType<RevisionMarkupOptions['insertions']>;
|
|
172
|
+
deletions: PropType<RevisionMarkupOptions['deletions']>;
|
|
173
|
+
movedFrom: PropType<RevisionMarkupOptions['movedFrom']>;
|
|
174
|
+
movedTo: PropType<RevisionMarkupOptions['movedTo']>;
|
|
175
|
+
formatting: PropType<RevisionMarkupOptions['formatting']>;
|
|
176
|
+
changedLines: PropType<RevisionMarkupOptions['changedLines']>;
|
|
177
|
+
cells: PropType<RevisionMarkupOptions['cells']>;
|
|
178
|
+
trackMoves: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: undefined;
|
|
181
|
+
};
|
|
182
|
+
trackFormatting: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: undefined;
|
|
185
|
+
};
|
|
186
|
+
}>> & Readonly<{
|
|
187
|
+
onRevisionMarkupChange?: ((_settings: ResolvedRevisionMarkup) => any) | undefined;
|
|
188
|
+
}>, {
|
|
189
|
+
trackMoves: boolean;
|
|
190
|
+
trackFormatting: boolean;
|
|
191
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
192
|
+
|
|
31
193
|
/** State and presentation for the File menu export dialog. @public */
|
|
32
194
|
interface DocxEditorExportDialogProps {
|
|
33
195
|
/** Controls visibility when rendering the dialog directly. */
|
|
@@ -1818,42 +1980,6 @@ declare const ToolbarImageProperties: {
|
|
|
1818
1980
|
docxSlot: 'image.properties';
|
|
1819
1981
|
};
|
|
1820
1982
|
|
|
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
1983
|
/** Editable Field Options draft. @public */
|
|
1858
1984
|
interface TextFormFieldDialogFields {
|
|
1859
1985
|
defaultText: string;
|
|
@@ -1929,7 +2055,7 @@ declare const DocxEditorTextFormFieldDialog: {
|
|
|
1929
2055
|
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
1930
2056
|
session: TextFormFieldDialogSession | null;
|
|
1931
2057
|
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>> & {
|
|
2058
|
+
}, {}, 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
2059
|
Field: vue.DefineComponent<DialogPartProps & {
|
|
1934
2060
|
name: keyof TextFormFieldDialogFields;
|
|
1935
2061
|
}>;
|
|
@@ -2272,7 +2398,7 @@ declare const DocxEditorPageSetupDialog: {
|
|
|
2272
2398
|
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
2273
2399
|
className: string;
|
|
2274
2400
|
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>> & {
|
|
2401
|
+
}, {}, 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
2402
|
Field: vue.DefineComponent<DialogPartProps & {
|
|
2277
2403
|
name: "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "orientation" | "pageSize" | "scope";
|
|
2278
2404
|
}>;
|
|
@@ -2368,7 +2494,7 @@ declare const DocxEditorParagraphDialog: {
|
|
|
2368
2494
|
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
2369
2495
|
className: string;
|
|
2370
2496
|
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>> & {
|
|
2497
|
+
}, {}, 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
2498
|
Field: vue.DefineComponent<DialogPartProps & {
|
|
2373
2499
|
name: "alignment" | "contextualSpacing" | "direction" | "indentLeft" | "indentRight" | "keepLines" | "keepNext" | "lineRule" | "lineValue" | "pageBreakBefore" | "spaceAfter" | "spaceBefore" | "special" | "specialBy" | "tabStops" | "widowControl";
|
|
2374
2500
|
}>;
|
|
@@ -2816,9 +2942,20 @@ declare function useToolbarLabelFor(t: ToolbarTranslate | undefined): (key: stri
|
|
|
2816
2942
|
/** @public */
|
|
2817
2943
|
type MenuId = ChromeMenuId | (string & {});
|
|
2818
2944
|
|
|
2819
|
-
|
|
2945
|
+
/**
|
|
2946
|
+
* Props for `DocxEditor.Menu.Submenu`. Set `labelKey` or `label`. A submenu with neither has
|
|
2947
|
+
* no name, with a development warning. An interface, so a host can extend it.
|
|
2948
|
+
*
|
|
2949
|
+
* @public
|
|
2950
|
+
*/
|
|
2951
|
+
interface MenuSubmenuProps extends MenuSubmenuBaseProps {
|
|
2820
2952
|
/** i18n key of the parent row's label. */
|
|
2821
|
-
labelKey
|
|
2953
|
+
labelKey?: string;
|
|
2954
|
+
/** Literal parent row label, already resolved. Wins over `labelKey`. */
|
|
2955
|
+
label?: string;
|
|
2956
|
+
}
|
|
2957
|
+
/** The props every `Menu.Submenu` takes besides its label. @public */
|
|
2958
|
+
interface MenuSubmenuBaseProps {
|
|
2822
2959
|
/** Material Symbols paths for the parent row's icon. */
|
|
2823
2960
|
paths?: readonly string[] | null;
|
|
2824
2961
|
className?: string;
|
|
@@ -2837,7 +2974,11 @@ interface MenuSubmenuProps {
|
|
|
2837
2974
|
declare const MenuSubmenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
2838
2975
|
labelKey: {
|
|
2839
2976
|
type: StringConstructor;
|
|
2840
|
-
|
|
2977
|
+
default: undefined;
|
|
2978
|
+
};
|
|
2979
|
+
label: {
|
|
2980
|
+
type: StringConstructor;
|
|
2981
|
+
default: undefined;
|
|
2841
2982
|
};
|
|
2842
2983
|
paths: {
|
|
2843
2984
|
type: PropType<readonly string[] | null>;
|
|
@@ -2850,7 +2991,11 @@ declare const MenuSubmenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2850
2991
|
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
2851
2992
|
labelKey: {
|
|
2852
2993
|
type: StringConstructor;
|
|
2853
|
-
|
|
2994
|
+
default: undefined;
|
|
2995
|
+
};
|
|
2996
|
+
label: {
|
|
2997
|
+
type: StringConstructor;
|
|
2998
|
+
default: undefined;
|
|
2854
2999
|
};
|
|
2855
3000
|
paths: {
|
|
2856
3001
|
type: PropType<readonly string[] | null>;
|
|
@@ -2861,6 +3006,8 @@ declare const MenuSubmenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2861
3006
|
default: undefined;
|
|
2862
3007
|
};
|
|
2863
3008
|
}>> & Readonly<{}>, {
|
|
3009
|
+
labelKey: string;
|
|
3010
|
+
label: string;
|
|
2864
3011
|
paths: readonly string[] | null;
|
|
2865
3012
|
className: string;
|
|
2866
3013
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -2871,8 +3018,8 @@ interface MenuTableGridProps {
|
|
|
2871
3018
|
className?: string;
|
|
2872
3019
|
}
|
|
2873
3020
|
/**
|
|
2874
|
-
*
|
|
2875
|
-
*
|
|
3021
|
+
* The insert-table size picker: a 6×6 grid that highlights as the pointer sweeps it and
|
|
3022
|
+
* reads back the size underneath. A pick inserts the table and closes the menu bar.
|
|
2876
3023
|
*
|
|
2877
3024
|
* Rendered only when the engine will honour an insert (see `MenuTablePicker`). A panel
|
|
2878
3025
|
* that opens onto a grid nothing can be picked from is worse than no panel: the row
|
|
@@ -3123,16 +3270,31 @@ declare const MenuGroup: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
3123
3270
|
className: string;
|
|
3124
3271
|
hidden: boolean;
|
|
3125
3272
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
3126
|
-
/**
|
|
3127
|
-
|
|
3273
|
+
/**
|
|
3274
|
+
* Props for `DocxEditor.Menu.Item`: one chrome slot as a menu row. Set `slotId`. A row with
|
|
3275
|
+
* neither `slotId` nor the deprecated `slot` renders nothing, with a development warning.
|
|
3276
|
+
* An interface, so a host can extend it.
|
|
3277
|
+
*
|
|
3278
|
+
* @public
|
|
3279
|
+
*/
|
|
3280
|
+
interface MenuItemProps extends MenuItemBaseProps {
|
|
3128
3281
|
/** The chrome slot this row drives (`'text.bold'`, `'insert.pageBreak'`, …). */
|
|
3129
|
-
|
|
3282
|
+
slotId?: ChromeSlotId;
|
|
3283
|
+
/** @deprecated Use `slotId`. Still read in this release, with a development warning. */
|
|
3284
|
+
slot?: ChromeSlotId;
|
|
3285
|
+
}
|
|
3286
|
+
/** The props every `Menu.Item` takes besides the slot it names. @public */
|
|
3287
|
+
interface MenuItemBaseProps {
|
|
3130
3288
|
/** Plain-label i18n key, overriding the slot's tooltip-shaped one. */
|
|
3131
3289
|
labelKey?: string;
|
|
3132
3290
|
/** i18n key of the shortcut shown in the right column. */
|
|
3133
3291
|
shortcutKey?: string;
|
|
3134
3292
|
className?: string;
|
|
3135
|
-
/**
|
|
3293
|
+
/**
|
|
3294
|
+
* Render nothing: inside a packaged menu this removes the row in place. A named row part
|
|
3295
|
+
* with `hidden`, such as `<ContextMenu.Cut hidden />`, is shorthand for this override
|
|
3296
|
+
* with that row's `slotId`.
|
|
3297
|
+
*/
|
|
3136
3298
|
hidden?: boolean;
|
|
3137
3299
|
}
|
|
3138
3300
|
/**
|
|
@@ -3143,9 +3305,13 @@ interface MenuItemProps {
|
|
|
3143
3305
|
* @public
|
|
3144
3306
|
*/
|
|
3145
3307
|
declare const MenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
3308
|
+
slotId: {
|
|
3309
|
+
type: PropType<ChromeSlotId>;
|
|
3310
|
+
default: undefined;
|
|
3311
|
+
};
|
|
3146
3312
|
slot: {
|
|
3147
3313
|
type: PropType<ChromeSlotId>;
|
|
3148
|
-
|
|
3314
|
+
default: undefined;
|
|
3149
3315
|
};
|
|
3150
3316
|
labelKey: {
|
|
3151
3317
|
type: StringConstructor;
|
|
@@ -3164,9 +3330,13 @@ declare const MenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
3164
3330
|
default: undefined;
|
|
3165
3331
|
};
|
|
3166
3332
|
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
3333
|
+
slotId: {
|
|
3334
|
+
type: PropType<ChromeSlotId>;
|
|
3335
|
+
default: undefined;
|
|
3336
|
+
};
|
|
3167
3337
|
slot: {
|
|
3168
3338
|
type: PropType<ChromeSlotId>;
|
|
3169
|
-
|
|
3339
|
+
default: undefined;
|
|
3170
3340
|
};
|
|
3171
3341
|
labelKey: {
|
|
3172
3342
|
type: StringConstructor;
|
|
@@ -3185,6 +3355,8 @@ declare const MenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
3185
3355
|
default: undefined;
|
|
3186
3356
|
};
|
|
3187
3357
|
}>> & Readonly<{}>, {
|
|
3358
|
+
slotId: ChromeSlotId;
|
|
3359
|
+
slot: ChromeSlotId;
|
|
3188
3360
|
labelKey: string;
|
|
3189
3361
|
shortcutKey: string;
|
|
3190
3362
|
className: string;
|
|
@@ -3708,27 +3880,30 @@ interface MenuPartComponent {
|
|
|
3708
3880
|
(props: Omit<MenuProps, 'id'>): VNode;
|
|
3709
3881
|
readonly docxMenu: ChromeMenuId;
|
|
3710
3882
|
}
|
|
3711
|
-
|
|
3712
|
-
|
|
3883
|
+
|
|
3884
|
+
/** Props for a packaged context-menu row. @public */
|
|
3885
|
+
interface ContextMenuCommandProps {
|
|
3886
|
+
icon?: DocxEditorChildren;
|
|
3887
|
+
labelKey?: string;
|
|
3888
|
+
shortcutKey?: string;
|
|
3713
3889
|
className?: string;
|
|
3714
|
-
/** Render nothing — inside the packaged Help menu this removes the row. */
|
|
3715
3890
|
hidden?: boolean;
|
|
3716
|
-
/** Replaces the packaged handler. Falls back to the menu's `onReportIssue`, then to
|
|
3717
|
-
* this project's own tracker. */
|
|
3718
|
-
onSelect?: () => void;
|
|
3719
3891
|
}
|
|
3720
|
-
/**
|
|
3721
|
-
|
|
3722
|
-
*
|
|
3723
|
-
* The key is NOT a `ChromeSlotId` — the row is React's, not the shared registry's — but the
|
|
3724
|
-
* merge only needs a stable string, and using one here is what lets a host write
|
|
3725
|
-
* `<Menu.ReportIssue hidden/>` and have it REPLACE the packaged row rather than render a
|
|
3726
|
-
* second, invisible one beside it.
|
|
3727
|
-
*
|
|
3728
|
-
* @public
|
|
3729
|
-
*/
|
|
3730
|
-
declare const MenuReportIssue: {
|
|
3892
|
+
/** @public */
|
|
3893
|
+
declare const ContextMenuCut: {
|
|
3731
3894
|
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
3895
|
+
icon: {
|
|
3896
|
+
type: PropType<VNode>;
|
|
3897
|
+
default: undefined;
|
|
3898
|
+
};
|
|
3899
|
+
labelKey: {
|
|
3900
|
+
type: StringConstructor;
|
|
3901
|
+
default: undefined;
|
|
3902
|
+
};
|
|
3903
|
+
shortcutKey: {
|
|
3904
|
+
type: StringConstructor;
|
|
3905
|
+
default: undefined;
|
|
3906
|
+
};
|
|
3732
3907
|
className: {
|
|
3733
3908
|
type: StringConstructor;
|
|
3734
3909
|
default: undefined;
|
|
@@ -3737,14 +3912,14 @@ declare const MenuReportIssue: {
|
|
|
3737
3912
|
type: BooleanConstructor;
|
|
3738
3913
|
default: undefined;
|
|
3739
3914
|
};
|
|
3740
|
-
onSelect: {
|
|
3741
|
-
type: PropType<() => void>;
|
|
3742
|
-
default: undefined;
|
|
3743
|
-
};
|
|
3744
3915
|
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
3916
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
3917
|
+
[key: string]: any;
|
|
3918
|
+
}>;
|
|
3919
|
+
labelKey: string;
|
|
3920
|
+
shortcutKey: string;
|
|
3745
3921
|
className: string;
|
|
3746
3922
|
hidden: boolean;
|
|
3747
|
-
onSelect: () => void;
|
|
3748
3923
|
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
3749
3924
|
P: {};
|
|
3750
3925
|
B: {};
|
|
@@ -3753,106 +3928,18 @@ declare const MenuReportIssue: {
|
|
|
3753
3928
|
M: {};
|
|
3754
3929
|
Defaults: {};
|
|
3755
3930
|
}, Readonly<vue.ExtractPropTypes<{
|
|
3756
|
-
|
|
3757
|
-
type:
|
|
3758
|
-
default: undefined;
|
|
3759
|
-
};
|
|
3760
|
-
|
|
3761
|
-
type:
|
|
3762
|
-
default: undefined;
|
|
3763
|
-
};
|
|
3764
|
-
|
|
3765
|
-
type:
|
|
3766
|
-
default: undefined;
|
|
3767
|
-
};
|
|
3768
|
-
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
3769
|
-
className: string;
|
|
3770
|
-
hidden: boolean;
|
|
3771
|
-
onSelect: () => void;
|
|
3772
|
-
}>;
|
|
3773
|
-
__isFragment?: never;
|
|
3774
|
-
__isTeleport?: never;
|
|
3775
|
-
__isSuspense?: never;
|
|
3776
|
-
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
3777
|
-
className: {
|
|
3778
|
-
type: StringConstructor;
|
|
3779
|
-
default: undefined;
|
|
3780
|
-
};
|
|
3781
|
-
hidden: {
|
|
3782
|
-
type: BooleanConstructor;
|
|
3783
|
-
default: undefined;
|
|
3784
|
-
};
|
|
3785
|
-
onSelect: {
|
|
3786
|
-
type: PropType<() => void>;
|
|
3787
|
-
default: undefined;
|
|
3788
|
-
};
|
|
3789
|
-
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
3790
|
-
className: string;
|
|
3791
|
-
hidden: boolean;
|
|
3792
|
-
onSelect: () => void;
|
|
3793
|
-
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
3794
|
-
docxSlot: string;
|
|
3795
|
-
};
|
|
3796
|
-
|
|
3797
|
-
/** Props for a packaged context-menu row. @public */
|
|
3798
|
-
interface ContextMenuCommandProps {
|
|
3799
|
-
icon?: DocxEditorChildren;
|
|
3800
|
-
labelKey?: string;
|
|
3801
|
-
shortcutKey?: string;
|
|
3802
|
-
className?: string;
|
|
3803
|
-
hidden?: boolean;
|
|
3804
|
-
}
|
|
3805
|
-
/** @public */
|
|
3806
|
-
declare const ContextMenuCut: {
|
|
3807
|
-
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
3808
|
-
icon: {
|
|
3809
|
-
type: PropType<VNode>;
|
|
3810
|
-
default: undefined;
|
|
3811
|
-
};
|
|
3812
|
-
labelKey: {
|
|
3813
|
-
type: StringConstructor;
|
|
3814
|
-
default: undefined;
|
|
3815
|
-
};
|
|
3816
|
-
shortcutKey: {
|
|
3817
|
-
type: StringConstructor;
|
|
3818
|
-
default: undefined;
|
|
3819
|
-
};
|
|
3820
|
-
className: {
|
|
3821
|
-
type: StringConstructor;
|
|
3822
|
-
default: undefined;
|
|
3823
|
-
};
|
|
3824
|
-
hidden: {
|
|
3825
|
-
type: BooleanConstructor;
|
|
3826
|
-
default: undefined;
|
|
3827
|
-
};
|
|
3828
|
-
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
3829
|
-
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
3830
|
-
[key: string]: any;
|
|
3831
|
-
}>;
|
|
3832
|
-
labelKey: string;
|
|
3833
|
-
shortcutKey: string;
|
|
3834
|
-
className: string;
|
|
3835
|
-
hidden: boolean;
|
|
3836
|
-
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
3837
|
-
P: {};
|
|
3838
|
-
B: {};
|
|
3839
|
-
D: {};
|
|
3840
|
-
C: {};
|
|
3841
|
-
M: {};
|
|
3842
|
-
Defaults: {};
|
|
3843
|
-
}, Readonly<vue.ExtractPropTypes<{
|
|
3844
|
-
icon: {
|
|
3845
|
-
type: PropType<VNode>;
|
|
3846
|
-
default: undefined;
|
|
3847
|
-
};
|
|
3848
|
-
labelKey: {
|
|
3849
|
-
type: StringConstructor;
|
|
3850
|
-
default: undefined;
|
|
3851
|
-
};
|
|
3852
|
-
shortcutKey: {
|
|
3853
|
-
type: StringConstructor;
|
|
3854
|
-
default: undefined;
|
|
3855
|
-
};
|
|
3931
|
+
icon: {
|
|
3932
|
+
type: PropType<VNode>;
|
|
3933
|
+
default: undefined;
|
|
3934
|
+
};
|
|
3935
|
+
labelKey: {
|
|
3936
|
+
type: StringConstructor;
|
|
3937
|
+
default: undefined;
|
|
3938
|
+
};
|
|
3939
|
+
shortcutKey: {
|
|
3940
|
+
type: StringConstructor;
|
|
3941
|
+
default: undefined;
|
|
3942
|
+
};
|
|
3856
3943
|
className: {
|
|
3857
3944
|
type: StringConstructor;
|
|
3858
3945
|
default: undefined;
|
|
@@ -5658,6 +5745,8 @@ declare function useContextMenuTarget(): HTMLElement | null;
|
|
|
5658
5745
|
|
|
5659
5746
|
/** Render overrides for automatically hosted editor popups. False disables a popup. @public */
|
|
5660
5747
|
interface DocxEditorPopups {
|
|
5748
|
+
/** Track changes options. False cancels the requested settings session. */
|
|
5749
|
+
revisionMarkup?: DocxEditorPopup<DocxEditorRevisionMarkupDialogProps>;
|
|
5661
5750
|
/** File export progress and errors. False hides feedback without stopping conversion. */
|
|
5662
5751
|
export?: DocxEditorPopup<DocxEditorExportDialogProps>;
|
|
5663
5752
|
/** File print progress and errors. False hides feedback; printing still runs. */
|
|
@@ -5711,6 +5800,23 @@ interface DocxEditorRootProps {
|
|
|
5711
5800
|
mode?: 'edit' | 'view' | 'suggesting';
|
|
5712
5801
|
zoom?: number;
|
|
5713
5802
|
zoomMode?: ZoomMode | 'auto';
|
|
5803
|
+
/**
|
|
5804
|
+
* Controlled viewer markup settings. Omitted fields use defaults.
|
|
5805
|
+
* Save callback values into this prop to accept API and dialog changes.
|
|
5806
|
+
* Omit this prop for uncontrolled settings. Use one configuration source.
|
|
5807
|
+
*/
|
|
5808
|
+
revisionMarkup?: RevisionMarkupOptions;
|
|
5809
|
+
/** Receives proposed settings from API or dialog changes, excluding prop reconciliation. */
|
|
5810
|
+
onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
|
|
5811
|
+
/** Initial revision display mode. */
|
|
5812
|
+
reviewDisplayMode?: ReviewDisplayMode;
|
|
5813
|
+
/**
|
|
5814
|
+
* How the reader edits saved field results. `'atomic'` (the default) keeps every field one
|
|
5815
|
+
* unit. `'editable'` allows typing, deletion, and selection inside the saved result of a
|
|
5816
|
+
* DATE, MERGEFIELD, HYPERLINK, or similar field. Read once, when the editor is created: a later change is ignored, with a development warning. Refused
|
|
5817
|
+
* with a collaboration module.
|
|
5818
|
+
*/
|
|
5819
|
+
fieldResults?: FieldResultsMode;
|
|
5714
5820
|
tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
5715
5821
|
imageDecodePort?: ImageDecodePort;
|
|
5716
5822
|
onReady?: (editor: Editor) => void;
|
|
@@ -5736,6 +5842,7 @@ interface DocxEditorRootListeners {
|
|
|
5736
5842
|
onReady?: (editor: Editor) => void;
|
|
5737
5843
|
onChange?: (change: DocumentChange) => void;
|
|
5738
5844
|
onFontError?: (error: EditorFontError) => void;
|
|
5845
|
+
onRevisionMarkupChange?: (settings: ResolvedRevisionMarkup) => void;
|
|
5739
5846
|
}
|
|
5740
5847
|
/** @public */
|
|
5741
5848
|
interface ProvideDocxEditorResult {
|
|
@@ -5783,6 +5890,12 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5783
5890
|
type: PropType<'edit' | 'view' | 'suggesting'>;
|
|
5784
5891
|
default: undefined;
|
|
5785
5892
|
};
|
|
5893
|
+
revisionMarkup: PropType<RevisionMarkupOptions>;
|
|
5894
|
+
reviewDisplayMode: PropType<ReviewDisplayMode>;
|
|
5895
|
+
fieldResults: {
|
|
5896
|
+
type: PropType<FieldResultsMode>;
|
|
5897
|
+
default: undefined;
|
|
5898
|
+
};
|
|
5786
5899
|
zoom: {
|
|
5787
5900
|
type: NumberConstructor;
|
|
5788
5901
|
default: undefined;
|
|
@@ -5805,6 +5918,7 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5805
5918
|
ready: (_editor: Editor) => true;
|
|
5806
5919
|
change: (_change: DocumentChange) => true;
|
|
5807
5920
|
fontError: (_error: unknown) => true;
|
|
5921
|
+
revisionMarkupChange: (_settings: ResolvedRevisionMarkup) => true;
|
|
5808
5922
|
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
5809
5923
|
popups: PropType<DocxEditorPopups>;
|
|
5810
5924
|
document: {
|
|
@@ -5835,6 +5949,12 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5835
5949
|
type: PropType<'edit' | 'view' | 'suggesting'>;
|
|
5836
5950
|
default: undefined;
|
|
5837
5951
|
};
|
|
5952
|
+
revisionMarkup: PropType<RevisionMarkupOptions>;
|
|
5953
|
+
reviewDisplayMode: PropType<ReviewDisplayMode>;
|
|
5954
|
+
fieldResults: {
|
|
5955
|
+
type: PropType<FieldResultsMode>;
|
|
5956
|
+
default: undefined;
|
|
5957
|
+
};
|
|
5838
5958
|
zoom: {
|
|
5839
5959
|
type: NumberConstructor;
|
|
5840
5960
|
default: undefined;
|
|
@@ -5855,6 +5975,7 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5855
5975
|
onChange?: ((_change: DocumentChange) => any) | undefined;
|
|
5856
5976
|
onFontError?: ((_error: unknown) => any) | undefined;
|
|
5857
5977
|
onReady?: ((_editor: Editor) => any) | undefined;
|
|
5978
|
+
onRevisionMarkupChange?: ((_settings: ResolvedRevisionMarkup) => any) | undefined;
|
|
5858
5979
|
}>, {
|
|
5859
5980
|
document: DocumentSource;
|
|
5860
5981
|
fonts: _docx_editor_dev_core.FontConfiguration | _docx_editor_dev_core.FontConfigurationFragment | _docx_editor_dev_core.FontResolver | undefined;
|
|
@@ -5863,6 +5984,7 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5863
5984
|
translate: ((key: string, params?: Record<string, string | number>) => string) | undefined;
|
|
5864
5985
|
modules: readonly EditorModule[];
|
|
5865
5986
|
mode: "edit" | "suggesting" | "view";
|
|
5987
|
+
fieldResults: FieldResultsMode;
|
|
5866
5988
|
zoom: number;
|
|
5867
5989
|
zoomMode: "auto" | ZoomMode;
|
|
5868
5990
|
tableInteractionLabel: ((key: 'table.insertRowBelow' | 'table.insertColumnRight') => string) | undefined;
|
|
@@ -5943,12 +6065,27 @@ declare const DocxEditorContent: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5943
6065
|
className: string;
|
|
5944
6066
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
5945
6067
|
|
|
5946
|
-
/**
|
|
6068
|
+
/**
|
|
6069
|
+
* Props for `DocxEditor.Loading`. Two slots replace parts of the packaged screen: `indicator`
|
|
6070
|
+
* replaces only the spinner and, with `overlay`, moves onto the document's first page while a
|
|
6071
|
+
* large document lays out its remaining pages; `default` replaces the whole first screen.
|
|
6072
|
+
*
|
|
6073
|
+
* ```vue
|
|
6074
|
+
* <DocxEditor.Loading overlay>
|
|
6075
|
+
* <template #indicator><MyLogoSpinner label="Opening document" /></template>
|
|
6076
|
+
* </DocxEditor.Loading>
|
|
6077
|
+
* ```
|
|
6078
|
+
*
|
|
6079
|
+
* @public
|
|
6080
|
+
*/
|
|
5947
6081
|
interface DocxEditorLoadingProps {
|
|
5948
6082
|
when?: boolean;
|
|
5949
6083
|
overlay?: boolean;
|
|
5950
6084
|
className?: string;
|
|
5951
6085
|
style?: CSSProperties;
|
|
6086
|
+
/** The `indicator` slot: your own indicator, in place of the packaged spinner. */
|
|
6087
|
+
indicator?: DocxEditorChildren;
|
|
6088
|
+
/** The default slot: the whole first loading screen. */
|
|
5952
6089
|
children?: DocxEditorChildren;
|
|
5953
6090
|
}
|
|
5954
6091
|
/** Props for `DocxEditor.Loading.Spinner`. @public */
|
|
@@ -5981,19 +6118,34 @@ declare const DocxEditorLoading: DocxEditorLoadingComponent;
|
|
|
5981
6118
|
|
|
5982
6119
|
/** @public */
|
|
5983
6120
|
interface ToolbarButtonProps {
|
|
5984
|
-
|
|
6121
|
+
/**
|
|
6122
|
+
* The chrome slot this button drives (`'text.bold'`, `'history.undo'`, ...). A button with
|
|
6123
|
+
* neither `slotId` nor the deprecated `slot` renders nothing, with a development warning.
|
|
6124
|
+
*/
|
|
6125
|
+
slotId?: ChromeSlotId;
|
|
6126
|
+
/** @deprecated Use `slotId`. Still read in this release, with a development warning. */
|
|
6127
|
+
slot?: ChromeSlotId;
|
|
5985
6128
|
icon?: DocxEditorChildren;
|
|
5986
6129
|
asChild?: boolean;
|
|
5987
6130
|
class?: string;
|
|
5988
6131
|
className?: string;
|
|
5989
6132
|
children?: DocxEditorChildren;
|
|
6133
|
+
/**
|
|
6134
|
+
* Render nothing: inside the default arrangement this removes the slot in place. A named
|
|
6135
|
+
* part is shorthand for the slot override, so `<Toolbar.Bold hidden />` is
|
|
6136
|
+
* `<Toolbar.Slot slotId="text.bold" hidden />`.
|
|
6137
|
+
*/
|
|
5990
6138
|
hidden?: boolean;
|
|
5991
6139
|
}
|
|
5992
6140
|
/** @public */
|
|
5993
6141
|
declare const ToolbarButton$1: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6142
|
+
slotId: {
|
|
6143
|
+
type: PropType<ChromeSlotId>;
|
|
6144
|
+
default: undefined;
|
|
6145
|
+
};
|
|
5994
6146
|
slot: {
|
|
5995
6147
|
type: PropType<ChromeSlotId>;
|
|
5996
|
-
|
|
6148
|
+
default: undefined;
|
|
5997
6149
|
};
|
|
5998
6150
|
icon: {
|
|
5999
6151
|
type: PropType<VNode>;
|
|
@@ -6018,9 +6170,13 @@ declare const ToolbarButton$1: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6018
6170
|
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6019
6171
|
[key: string]: any;
|
|
6020
6172
|
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
6173
|
+
slotId: {
|
|
6174
|
+
type: PropType<ChromeSlotId>;
|
|
6175
|
+
default: undefined;
|
|
6176
|
+
};
|
|
6021
6177
|
slot: {
|
|
6022
6178
|
type: PropType<ChromeSlotId>;
|
|
6023
|
-
|
|
6179
|
+
default: undefined;
|
|
6024
6180
|
};
|
|
6025
6181
|
icon: {
|
|
6026
6182
|
type: PropType<VNode>;
|
|
@@ -6043,6 +6199,8 @@ declare const ToolbarButton$1: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6043
6199
|
default: undefined;
|
|
6044
6200
|
};
|
|
6045
6201
|
}>> & Readonly<{}>, {
|
|
6202
|
+
slotId: ChromeSlotId;
|
|
6203
|
+
slot: ChromeSlotId;
|
|
6046
6204
|
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
6047
6205
|
[key: string]: any;
|
|
6048
6206
|
}>;
|
|
@@ -6052,39 +6210,442 @@ declare const ToolbarButton$1: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6052
6210
|
hidden: boolean;
|
|
6053
6211
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6054
6212
|
|
|
6055
|
-
/** @public */
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6213
|
+
/** Props for `DocxEditor.Toolbar.Group`. @public */
|
|
6214
|
+
interface DocxEditorToolbarGroupProps {
|
|
6215
|
+
/**
|
|
6216
|
+
* The group id. A built-in id (`'history'`, `'font'`, `'text'`, `'review'`, ...) adds the
|
|
6217
|
+
* children to that group, after its own controls. Any other id makes a host group.
|
|
6218
|
+
*/
|
|
6219
|
+
id: ChromeGroupId | (string & {});
|
|
6220
|
+
/**
|
|
6221
|
+
* Catalog key for the host group's "⋯" panel heading and accessible name. It goes through
|
|
6222
|
+
* the toolbar's `t` and the locale catalog. Built-in groups keep their own label.
|
|
6223
|
+
*/
|
|
6224
|
+
labelKey?: string;
|
|
6225
|
+
/**
|
|
6226
|
+
* Literal heading and accessible name for a host group. It wins over `labelKey`. Without
|
|
6227
|
+
* either, the heading is `id`. Built-in groups keep their own label.
|
|
6228
|
+
*/
|
|
6229
|
+
label?: string;
|
|
6230
|
+
/**
|
|
6231
|
+
* Collapse priority. A lower number leaves the bar first. Built-in groups use 10 (zoom)
|
|
6232
|
+
* through 90 (history) in steps of 10. A host group without a priority collapses before
|
|
6233
|
+
* every built-in group.
|
|
6234
|
+
*/
|
|
6235
|
+
priority?: number;
|
|
6236
|
+
/** `true` keeps the group in the bar at every width, like the review group. */
|
|
6237
|
+
pinned?: boolean;
|
|
6238
|
+
/**
|
|
6239
|
+
* The group this one follows in the bar. Without it, a host group follows every built-in
|
|
6240
|
+
* group, in order of appearance. Ignored for built-in ids.
|
|
6241
|
+
*/
|
|
6242
|
+
after?: ChromeGroupId | (string & {});
|
|
6243
|
+
/** Removes the group, built-in or host, from the bar and the "⋯" panel. */
|
|
6244
|
+
hidden?: boolean;
|
|
6245
|
+
/**
|
|
6246
|
+
* Content for the group's "⋯" panel section, rendered after a built-in group's own rows.
|
|
6247
|
+
* It renders even when the group has no children, so a built-in id can add a panel-only
|
|
6248
|
+
* row. Without it, the panel renders the children in panel rows: actions become labeled
|
|
6249
|
+
* rows, and other content renders as is.
|
|
6250
|
+
*/
|
|
6251
|
+
overflowContent?: () => DocxEditorChildren;
|
|
6252
|
+
className?: string;
|
|
6253
|
+
/** The group's controls, passed as the default slot. */
|
|
6254
|
+
children?: DocxEditorChildren;
|
|
6255
|
+
}
|
|
6256
|
+
/**
|
|
6257
|
+
* A group of the preset toolbar: measured, collapsed in priority order, and shown as a
|
|
6258
|
+
* labeled section of the "⋯" panel when it does not fit.
|
|
6259
|
+
*
|
|
6260
|
+
* @example
|
|
6261
|
+
* ```ts
|
|
6262
|
+
* h(DocxEditorToolbar, null, () => [
|
|
6263
|
+
* h(DocxEditorToolbar.Group, { id: 'review-nav', label: 'Review', priority: 15 }, () => [
|
|
6264
|
+
* h(DocxEditorToolbar.Action, { label: 'Next change', onSelect: next }),
|
|
6265
|
+
* ]),
|
|
6266
|
+
* ]);
|
|
6267
|
+
* ```
|
|
6268
|
+
*
|
|
6269
|
+
* @public
|
|
6270
|
+
*/
|
|
6271
|
+
declare const ToolbarHostGroup: {
|
|
6272
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
6273
|
+
id: {
|
|
6274
|
+
type: PropType<ChromeGroupId | (string & {})>;
|
|
6275
|
+
required: true;
|
|
6276
|
+
};
|
|
6277
|
+
labelKey: {
|
|
6278
|
+
type: StringConstructor;
|
|
6279
|
+
default: undefined;
|
|
6280
|
+
};
|
|
6281
|
+
label: {
|
|
6282
|
+
type: StringConstructor;
|
|
6283
|
+
default: undefined;
|
|
6284
|
+
};
|
|
6285
|
+
priority: {
|
|
6286
|
+
type: NumberConstructor;
|
|
6287
|
+
default: undefined;
|
|
6288
|
+
};
|
|
6289
|
+
pinned: {
|
|
6290
|
+
type: BooleanConstructor;
|
|
6291
|
+
default: undefined;
|
|
6292
|
+
};
|
|
6293
|
+
after: {
|
|
6294
|
+
type: PropType<ChromeGroupId | (string & {})>;
|
|
6295
|
+
default: undefined;
|
|
6296
|
+
};
|
|
6297
|
+
hidden: {
|
|
6298
|
+
type: BooleanConstructor;
|
|
6299
|
+
default: undefined;
|
|
6300
|
+
};
|
|
6301
|
+
overflowContent: {
|
|
6302
|
+
type: PropType<() => DocxEditorChildren>;
|
|
6303
|
+
default: undefined;
|
|
6304
|
+
};
|
|
6305
|
+
class: {
|
|
6306
|
+
type: StringConstructor;
|
|
6307
|
+
default: undefined;
|
|
6308
|
+
};
|
|
6309
|
+
className: {
|
|
6310
|
+
type: StringConstructor;
|
|
6311
|
+
default: undefined;
|
|
6312
|
+
};
|
|
6313
|
+
}>> & Readonly<{}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6314
|
+
[key: string]: any;
|
|
6315
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
6316
|
+
labelKey: string;
|
|
6317
|
+
label: string;
|
|
6318
|
+
priority: number;
|
|
6319
|
+
pinned: boolean;
|
|
6320
|
+
after: ChromeGroupId | (string & {});
|
|
6321
|
+
hidden: boolean;
|
|
6322
|
+
overflowContent: () => DocxEditorChildren;
|
|
6323
|
+
class: string;
|
|
6324
|
+
className: string;
|
|
6325
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
6326
|
+
P: {};
|
|
6327
|
+
B: {};
|
|
6328
|
+
D: {};
|
|
6329
|
+
C: {};
|
|
6330
|
+
M: {};
|
|
6331
|
+
Defaults: {};
|
|
6332
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
6333
|
+
id: {
|
|
6334
|
+
type: PropType<ChromeGroupId | (string & {})>;
|
|
6335
|
+
required: true;
|
|
6336
|
+
};
|
|
6337
|
+
labelKey: {
|
|
6338
|
+
type: StringConstructor;
|
|
6339
|
+
default: undefined;
|
|
6340
|
+
};
|
|
6341
|
+
label: {
|
|
6342
|
+
type: StringConstructor;
|
|
6343
|
+
default: undefined;
|
|
6344
|
+
};
|
|
6345
|
+
priority: {
|
|
6346
|
+
type: NumberConstructor;
|
|
6347
|
+
default: undefined;
|
|
6348
|
+
};
|
|
6349
|
+
pinned: {
|
|
6350
|
+
type: BooleanConstructor;
|
|
6351
|
+
default: undefined;
|
|
6352
|
+
};
|
|
6353
|
+
after: {
|
|
6354
|
+
type: PropType<ChromeGroupId | (string & {})>;
|
|
6355
|
+
default: undefined;
|
|
6356
|
+
};
|
|
6357
|
+
hidden: {
|
|
6358
|
+
type: BooleanConstructor;
|
|
6359
|
+
default: undefined;
|
|
6360
|
+
};
|
|
6361
|
+
overflowContent: {
|
|
6362
|
+
type: PropType<() => DocxEditorChildren>;
|
|
6363
|
+
default: undefined;
|
|
6364
|
+
};
|
|
6365
|
+
class: {
|
|
6366
|
+
type: StringConstructor;
|
|
6367
|
+
default: undefined;
|
|
6368
|
+
};
|
|
6369
|
+
className: {
|
|
6370
|
+
type: StringConstructor;
|
|
6371
|
+
default: undefined;
|
|
6372
|
+
};
|
|
6373
|
+
}>> & Readonly<{}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6374
|
+
[key: string]: any;
|
|
6375
|
+
}> | null, {}, {}, {}, {
|
|
6376
|
+
labelKey: string;
|
|
6377
|
+
label: string;
|
|
6378
|
+
priority: number;
|
|
6379
|
+
pinned: boolean;
|
|
6380
|
+
after: ChromeGroupId | (string & {});
|
|
6381
|
+
hidden: boolean;
|
|
6382
|
+
overflowContent: () => DocxEditorChildren;
|
|
6383
|
+
class: string;
|
|
6384
|
+
className: string;
|
|
6385
|
+
}>;
|
|
6386
|
+
__isFragment?: never;
|
|
6387
|
+
__isTeleport?: never;
|
|
6388
|
+
__isSuspense?: never;
|
|
6389
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
6390
|
+
id: {
|
|
6391
|
+
type: PropType<ChromeGroupId | (string & {})>;
|
|
6392
|
+
required: true;
|
|
6393
|
+
};
|
|
6394
|
+
labelKey: {
|
|
6062
6395
|
type: StringConstructor;
|
|
6063
6396
|
default: undefined;
|
|
6064
6397
|
};
|
|
6065
|
-
|
|
6066
|
-
type:
|
|
6398
|
+
label: {
|
|
6399
|
+
type: StringConstructor;
|
|
6067
6400
|
default: undefined;
|
|
6068
6401
|
};
|
|
6069
|
-
|
|
6402
|
+
priority: {
|
|
6403
|
+
type: NumberConstructor;
|
|
6404
|
+
default: undefined;
|
|
6405
|
+
};
|
|
6406
|
+
pinned: {
|
|
6070
6407
|
type: BooleanConstructor;
|
|
6071
6408
|
default: undefined;
|
|
6072
6409
|
};
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
type: StringConstructor;
|
|
6410
|
+
after: {
|
|
6411
|
+
type: PropType<ChromeGroupId | (string & {})>;
|
|
6076
6412
|
default: undefined;
|
|
6077
6413
|
};
|
|
6078
6414
|
hidden: {
|
|
6079
6415
|
type: BooleanConstructor;
|
|
6080
6416
|
default: undefined;
|
|
6081
6417
|
};
|
|
6082
|
-
|
|
6083
|
-
type:
|
|
6418
|
+
overflowContent: {
|
|
6419
|
+
type: PropType<() => DocxEditorChildren>;
|
|
6084
6420
|
default: undefined;
|
|
6085
6421
|
};
|
|
6086
|
-
|
|
6087
|
-
|
|
6422
|
+
class: {
|
|
6423
|
+
type: StringConstructor;
|
|
6424
|
+
default: undefined;
|
|
6425
|
+
};
|
|
6426
|
+
className: {
|
|
6427
|
+
type: StringConstructor;
|
|
6428
|
+
default: undefined;
|
|
6429
|
+
};
|
|
6430
|
+
}>> & Readonly<{}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6431
|
+
[key: string]: any;
|
|
6432
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
6433
|
+
labelKey: string;
|
|
6434
|
+
label: string;
|
|
6435
|
+
priority: number;
|
|
6436
|
+
pinned: boolean;
|
|
6437
|
+
after: ChromeGroupId | (string & {});
|
|
6438
|
+
hidden: boolean;
|
|
6439
|
+
overflowContent: () => DocxEditorChildren;
|
|
6440
|
+
class: string;
|
|
6441
|
+
className: string;
|
|
6442
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
6443
|
+
docxToolbarGroup: true;
|
|
6444
|
+
};
|
|
6445
|
+
/** Props for `DocxEditor.Toolbar.Slot`. @public */
|
|
6446
|
+
interface DocxEditorToolbarSlotProps {
|
|
6447
|
+
/** The built-in slot this content replaces, for example `'text.bold'`. */
|
|
6448
|
+
slotId: ChromeSlotId;
|
|
6449
|
+
/**
|
|
6450
|
+
* Render nothing: inside the preset arrangement this removes the slot in place. A named
|
|
6451
|
+
* part with `hidden`, such as `<Toolbar.Bold hidden />`, is shorthand for this override.
|
|
6452
|
+
*/
|
|
6453
|
+
hidden?: boolean;
|
|
6454
|
+
/**
|
|
6455
|
+
* Content for the slot's "⋯" panel row when its group collapses. Without it the panel row
|
|
6456
|
+
* shows the default slot content under the slot's label.
|
|
6457
|
+
*/
|
|
6458
|
+
overflowContent?: () => DocxEditorChildren;
|
|
6459
|
+
/** The replacement content, passed as the default slot. */
|
|
6460
|
+
children?: DocxEditorChildren;
|
|
6461
|
+
}
|
|
6462
|
+
/**
|
|
6463
|
+
* Replaces one built-in slot with arbitrary content. The content takes the slot's place and
|
|
6464
|
+
* collapses with the slot's group. A slot the preset arrangement does not draw has no place
|
|
6465
|
+
* to take, so the content is appended and a development warning names the slot. With
|
|
6466
|
+
* `hidden` it removes the slot in place; a named part with `hidden`, such as
|
|
6467
|
+
* `<Toolbar.Bold hidden />`, is shorthand for `<Toolbar.Slot slotId="text.bold" hidden />`.
|
|
6468
|
+
*
|
|
6469
|
+
* @example
|
|
6470
|
+
* ```ts
|
|
6471
|
+
* h(DocxEditorToolbar, null, () => [
|
|
6472
|
+
* h(DocxEditorToolbar.Slot, { slotId: 'zoom.level' }, () => [h(MyZoomPicker)]),
|
|
6473
|
+
* ]);
|
|
6474
|
+
* ```
|
|
6475
|
+
*
|
|
6476
|
+
* @public
|
|
6477
|
+
*/
|
|
6478
|
+
declare const ToolbarSlot: {
|
|
6479
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
6480
|
+
slotId: {
|
|
6481
|
+
type: PropType<ChromeSlotId>;
|
|
6482
|
+
required: true;
|
|
6483
|
+
};
|
|
6484
|
+
hidden: {
|
|
6485
|
+
type: BooleanConstructor;
|
|
6486
|
+
default: undefined;
|
|
6487
|
+
};
|
|
6488
|
+
overflowContent: {
|
|
6489
|
+
type: PropType<() => DocxEditorChildren>;
|
|
6490
|
+
default: undefined;
|
|
6491
|
+
};
|
|
6492
|
+
}>> & Readonly<{}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6493
|
+
[key: string]: any;
|
|
6494
|
+
}>[] | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
6495
|
+
hidden: boolean;
|
|
6496
|
+
overflowContent: () => DocxEditorChildren;
|
|
6497
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
6498
|
+
P: {};
|
|
6499
|
+
B: {};
|
|
6500
|
+
D: {};
|
|
6501
|
+
C: {};
|
|
6502
|
+
M: {};
|
|
6503
|
+
Defaults: {};
|
|
6504
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
6505
|
+
slotId: {
|
|
6506
|
+
type: PropType<ChromeSlotId>;
|
|
6507
|
+
required: true;
|
|
6508
|
+
};
|
|
6509
|
+
hidden: {
|
|
6510
|
+
type: BooleanConstructor;
|
|
6511
|
+
default: undefined;
|
|
6512
|
+
};
|
|
6513
|
+
overflowContent: {
|
|
6514
|
+
type: PropType<() => DocxEditorChildren>;
|
|
6515
|
+
default: undefined;
|
|
6516
|
+
};
|
|
6517
|
+
}>> & Readonly<{}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6518
|
+
[key: string]: any;
|
|
6519
|
+
}>[] | null, {}, {}, {}, {
|
|
6520
|
+
hidden: boolean;
|
|
6521
|
+
overflowContent: () => DocxEditorChildren;
|
|
6522
|
+
}>;
|
|
6523
|
+
__isFragment?: never;
|
|
6524
|
+
__isTeleport?: never;
|
|
6525
|
+
__isSuspense?: never;
|
|
6526
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
6527
|
+
slotId: {
|
|
6528
|
+
type: PropType<ChromeSlotId>;
|
|
6529
|
+
required: true;
|
|
6530
|
+
};
|
|
6531
|
+
hidden: {
|
|
6532
|
+
type: BooleanConstructor;
|
|
6533
|
+
default: undefined;
|
|
6534
|
+
};
|
|
6535
|
+
overflowContent: {
|
|
6536
|
+
type: PropType<() => DocxEditorChildren>;
|
|
6537
|
+
default: undefined;
|
|
6538
|
+
};
|
|
6539
|
+
}>> & Readonly<{}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6540
|
+
[key: string]: any;
|
|
6541
|
+
}>[] | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
6542
|
+
hidden: boolean;
|
|
6543
|
+
overflowContent: () => DocxEditorChildren;
|
|
6544
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
6545
|
+
docxToolbarSlot: true;
|
|
6546
|
+
};
|
|
6547
|
+
|
|
6548
|
+
/**
|
|
6549
|
+
* Add Comment (`DocxEditorToolbar.AddComment`, slot `review.addComment`): opens a comment
|
|
6550
|
+
* draft on the selection in the review rail. It needs a mounted review rail to open the
|
|
6551
|
+
* draft. It is not part of the default arrangement; place it with `Toolbar.Group`.
|
|
6552
|
+
*
|
|
6553
|
+
* @example
|
|
6554
|
+
* ```ts
|
|
6555
|
+
* h(DocxEditorToolbar, null, () => [
|
|
6556
|
+
* h(DocxEditorToolbar.Group, { id: 'review' }, () => [h(DocxEditorToolbar.AddComment)]),
|
|
6557
|
+
* ]);
|
|
6558
|
+
* ```
|
|
6559
|
+
*
|
|
6560
|
+
* @public
|
|
6561
|
+
*/
|
|
6562
|
+
declare const ToolbarAddComment: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6563
|
+
class: {
|
|
6564
|
+
type: StringConstructor;
|
|
6565
|
+
default: undefined;
|
|
6566
|
+
};
|
|
6567
|
+
className: {
|
|
6568
|
+
type: StringConstructor;
|
|
6569
|
+
default: undefined;
|
|
6570
|
+
};
|
|
6571
|
+
hidden: {
|
|
6572
|
+
type: BooleanConstructor;
|
|
6573
|
+
default: undefined;
|
|
6574
|
+
};
|
|
6575
|
+
asChild: {
|
|
6576
|
+
type: BooleanConstructor;
|
|
6577
|
+
default: undefined;
|
|
6578
|
+
};
|
|
6579
|
+
icon: {
|
|
6580
|
+
type: PropType<VNode>;
|
|
6581
|
+
default: undefined;
|
|
6582
|
+
};
|
|
6583
|
+
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6584
|
+
[key: string]: any;
|
|
6585
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
6586
|
+
class: {
|
|
6587
|
+
type: StringConstructor;
|
|
6588
|
+
default: undefined;
|
|
6589
|
+
};
|
|
6590
|
+
className: {
|
|
6591
|
+
type: StringConstructor;
|
|
6592
|
+
default: undefined;
|
|
6593
|
+
};
|
|
6594
|
+
hidden: {
|
|
6595
|
+
type: BooleanConstructor;
|
|
6596
|
+
default: undefined;
|
|
6597
|
+
};
|
|
6598
|
+
asChild: {
|
|
6599
|
+
type: BooleanConstructor;
|
|
6600
|
+
default: undefined;
|
|
6601
|
+
};
|
|
6602
|
+
icon: {
|
|
6603
|
+
type: PropType<VNode>;
|
|
6604
|
+
default: undefined;
|
|
6605
|
+
};
|
|
6606
|
+
}>> & Readonly<{}>, {
|
|
6607
|
+
class: string;
|
|
6608
|
+
className: string;
|
|
6609
|
+
hidden: boolean;
|
|
6610
|
+
asChild: boolean;
|
|
6611
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
6612
|
+
[key: string]: any;
|
|
6613
|
+
}>;
|
|
6614
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6615
|
+
|
|
6616
|
+
/** @public */
|
|
6617
|
+
declare const ImageInsertProvider: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
6618
|
+
[key: string]: any;
|
|
6619
|
+
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6620
|
+
/** @public */
|
|
6621
|
+
declare const ImageInsertTrigger: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6622
|
+
className: {
|
|
6623
|
+
type: StringConstructor;
|
|
6624
|
+
default: undefined;
|
|
6625
|
+
};
|
|
6626
|
+
hidden: {
|
|
6627
|
+
type: BooleanConstructor;
|
|
6628
|
+
default: undefined;
|
|
6629
|
+
};
|
|
6630
|
+
asChild: {
|
|
6631
|
+
type: BooleanConstructor;
|
|
6632
|
+
default: undefined;
|
|
6633
|
+
};
|
|
6634
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
6635
|
+
className: {
|
|
6636
|
+
type: StringConstructor;
|
|
6637
|
+
default: undefined;
|
|
6638
|
+
};
|
|
6639
|
+
hidden: {
|
|
6640
|
+
type: BooleanConstructor;
|
|
6641
|
+
default: undefined;
|
|
6642
|
+
};
|
|
6643
|
+
asChild: {
|
|
6644
|
+
type: BooleanConstructor;
|
|
6645
|
+
default: undefined;
|
|
6646
|
+
};
|
|
6647
|
+
}>> & Readonly<{}>, {
|
|
6648
|
+
className: string;
|
|
6088
6649
|
hidden: boolean;
|
|
6089
6650
|
asChild: boolean;
|
|
6090
6651
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -6157,6 +6718,11 @@ interface ToolbarPartComponent {
|
|
|
6157
6718
|
interface ToolbarSlotPartProps {
|
|
6158
6719
|
class?: string;
|
|
6159
6720
|
className?: string;
|
|
6721
|
+
/**
|
|
6722
|
+
* Render nothing: inside the default arrangement this removes the slot in place. A named
|
|
6723
|
+
* part is shorthand for the slot override, so `<Toolbar.Bold hidden />` is
|
|
6724
|
+
* `<Toolbar.Slot slotId="text.bold" hidden />`.
|
|
6725
|
+
*/
|
|
6160
6726
|
hidden?: boolean;
|
|
6161
6727
|
}
|
|
6162
6728
|
/** @public */
|
|
@@ -6683,6 +7249,15 @@ interface DocxEditorToolbarNamespace {
|
|
|
6683
7249
|
readonly Button: typeof ToolbarButton$1;
|
|
6684
7250
|
readonly Action: typeof ToolbarAction;
|
|
6685
7251
|
readonly Separator: typeof ToolbarSeparator;
|
|
7252
|
+
/**
|
|
7253
|
+
* A group of the preset bar: host content that is measured and collapses into the "⋯"
|
|
7254
|
+
* panel, or, with a built-in id, controls added to that group or the group hidden.
|
|
7255
|
+
*/
|
|
7256
|
+
readonly Group: typeof ToolbarHostGroup;
|
|
7257
|
+
/** Replaces one built-in slot with arbitrary content, in the slot's place. */
|
|
7258
|
+
readonly Slot: typeof ToolbarSlot;
|
|
7259
|
+
/** Opens a comment draft on the selection in the review rail. */
|
|
7260
|
+
readonly AddComment: typeof ToolbarAddComment;
|
|
6686
7261
|
readonly Undo: ToolbarPartComponent;
|
|
6687
7262
|
readonly Redo: ToolbarPartComponent;
|
|
6688
7263
|
readonly Bold: ToolbarPartComponent;
|
|
@@ -6733,6 +7308,92 @@ interface DocxEditorToolbarNamespace {
|
|
|
6733
7308
|
/** @public */
|
|
6734
7309
|
declare const DocxEditorToolbar: DocxEditorToolbarNamespace;
|
|
6735
7310
|
|
|
7311
|
+
/** Props for `DocxEditor.Menu.ReportIssue`. @public */
|
|
7312
|
+
interface MenuReportIssueProps {
|
|
7313
|
+
className?: string;
|
|
7314
|
+
/** Render nothing — inside the packaged Help menu this removes the row. */
|
|
7315
|
+
hidden?: boolean;
|
|
7316
|
+
/** Replaces the packaged handler. Falls back to the menu's `onReportIssue`, then to
|
|
7317
|
+
* this project's own tracker. */
|
|
7318
|
+
onSelect?: () => void;
|
|
7319
|
+
}
|
|
7320
|
+
/**
|
|
7321
|
+
* The report-issue row, with its row-identity marker.
|
|
7322
|
+
*
|
|
7323
|
+
* The key is NOT a `ChromeSlotId` — the row is React's, not the shared registry's — but the
|
|
7324
|
+
* merge only needs a stable string, and using one here is what lets a host write
|
|
7325
|
+
* `<Menu.ReportIssue hidden/>` and have it REPLACE the packaged row rather than render a
|
|
7326
|
+
* second, invisible one beside it.
|
|
7327
|
+
*
|
|
7328
|
+
* @public
|
|
7329
|
+
*/
|
|
7330
|
+
declare const MenuReportIssue: {
|
|
7331
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
7332
|
+
className: {
|
|
7333
|
+
type: StringConstructor;
|
|
7334
|
+
default: undefined;
|
|
7335
|
+
};
|
|
7336
|
+
hidden: {
|
|
7337
|
+
type: BooleanConstructor;
|
|
7338
|
+
default: undefined;
|
|
7339
|
+
};
|
|
7340
|
+
onSelect: {
|
|
7341
|
+
type: PropType<() => void>;
|
|
7342
|
+
default: undefined;
|
|
7343
|
+
};
|
|
7344
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
7345
|
+
className: string;
|
|
7346
|
+
hidden: boolean;
|
|
7347
|
+
onSelect: () => void;
|
|
7348
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
7349
|
+
P: {};
|
|
7350
|
+
B: {};
|
|
7351
|
+
D: {};
|
|
7352
|
+
C: {};
|
|
7353
|
+
M: {};
|
|
7354
|
+
Defaults: {};
|
|
7355
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
7356
|
+
className: {
|
|
7357
|
+
type: StringConstructor;
|
|
7358
|
+
default: undefined;
|
|
7359
|
+
};
|
|
7360
|
+
hidden: {
|
|
7361
|
+
type: BooleanConstructor;
|
|
7362
|
+
default: undefined;
|
|
7363
|
+
};
|
|
7364
|
+
onSelect: {
|
|
7365
|
+
type: PropType<() => void>;
|
|
7366
|
+
default: undefined;
|
|
7367
|
+
};
|
|
7368
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
7369
|
+
className: string;
|
|
7370
|
+
hidden: boolean;
|
|
7371
|
+
onSelect: () => void;
|
|
7372
|
+
}>;
|
|
7373
|
+
__isFragment?: never;
|
|
7374
|
+
__isTeleport?: never;
|
|
7375
|
+
__isSuspense?: never;
|
|
7376
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
7377
|
+
className: {
|
|
7378
|
+
type: StringConstructor;
|
|
7379
|
+
default: undefined;
|
|
7380
|
+
};
|
|
7381
|
+
hidden: {
|
|
7382
|
+
type: BooleanConstructor;
|
|
7383
|
+
default: undefined;
|
|
7384
|
+
};
|
|
7385
|
+
onSelect: {
|
|
7386
|
+
type: PropType<() => void>;
|
|
7387
|
+
default: undefined;
|
|
7388
|
+
};
|
|
7389
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
7390
|
+
className: string;
|
|
7391
|
+
hidden: boolean;
|
|
7392
|
+
onSelect: () => void;
|
|
7393
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
7394
|
+
docxSlot: string;
|
|
7395
|
+
};
|
|
7396
|
+
|
|
6736
7397
|
/** @public */
|
|
6737
7398
|
type MenuReviewersProps = {
|
|
6738
7399
|
className?: string;
|
|
@@ -6802,6 +7463,21 @@ interface DocxEditorMenuProps {
|
|
|
6802
7463
|
onReportIssue?: () => void;
|
|
6803
7464
|
reportIssue?: boolean;
|
|
6804
7465
|
preset?: boolean;
|
|
7466
|
+
/**
|
|
7467
|
+
* What the bar does when its menus do not fit on one line. Default `true`: the bar stays
|
|
7468
|
+
* one line, measures its menus, and moves the ones that do not fit, from the end, into
|
|
7469
|
+
* one "⋯" menu, where each becomes a submenu with the same rows. `false` lets the bar
|
|
7470
|
+
* wrap onto more lines instead.
|
|
7471
|
+
*
|
|
7472
|
+
* The bar must be able to shrink for this to work, so give it a bounded width (for
|
|
7473
|
+
* example `min-width: 0` in a flex row). Host children that are not menus never move.
|
|
7474
|
+
*
|
|
7475
|
+
* @example
|
|
7476
|
+
* ```vue
|
|
7477
|
+
* <DocxEditorMenu :overflow="false" />
|
|
7478
|
+
* ```
|
|
7479
|
+
*/
|
|
7480
|
+
overflow?: boolean;
|
|
6805
7481
|
children?: DocxEditorChildren;
|
|
6806
7482
|
}
|
|
6807
7483
|
/** @public */
|
|
@@ -7018,6 +7694,12 @@ interface UseNavigationPaneResult {
|
|
|
7018
7694
|
readonly setTab: (tab: NavigationTab$1) => void;
|
|
7019
7695
|
readonly paneWidth: ComputedRef<number>;
|
|
7020
7696
|
readonly shift: ComputedRef<number>;
|
|
7697
|
+
/**
|
|
7698
|
+
* Whether the open pane covers the page instead of moving it. True on a viewport too
|
|
7699
|
+
* narrow to show a readable page beside the pane (see `NAVIGATION_PANE_MIN_PAGE_ROOM`);
|
|
7700
|
+
* `shift` is then 0, and `DocxEditorNavigation` closes after a heading or result is picked.
|
|
7701
|
+
*/
|
|
7702
|
+
readonly overlay: ComputedRef<boolean>;
|
|
7021
7703
|
}
|
|
7022
7704
|
/** @public */
|
|
7023
7705
|
declare function useNavigationPane(options?: MaybeRefOrGetter$1<UseNavigationPaneOptions>): UseNavigationPaneResult;
|
|
@@ -7227,6 +7909,10 @@ declare const NavigationToggle: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
7227
7909
|
|
|
7228
7910
|
/** Props for `DocxEditor.Navigation`. @public */
|
|
7229
7911
|
interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
|
|
7912
|
+
/**
|
|
7913
|
+
* Label resolver. Defaults to the `translate` given to `DocxEditorRoot`, and for keys it
|
|
7914
|
+
* leaves unresolved, to the active locale catalogue.
|
|
7915
|
+
*/
|
|
7230
7916
|
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
7231
7917
|
toggle?: boolean | NavigationPartProps;
|
|
7232
7918
|
/**
|
|
@@ -7235,6 +7921,12 @@ interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
|
|
|
7235
7921
|
* tab; another `useDocumentSearch` consumer can still request them.
|
|
7236
7922
|
*/
|
|
7237
7923
|
searchHighlight?: DocumentSearchHighlight;
|
|
7924
|
+
/**
|
|
7925
|
+
* Whether Ctrl+F (Cmd+F on macOS) opens the pane on the Find tab. Defaults to `true`. The
|
|
7926
|
+
* shortcut applies only while focus is in this editor, so the rest of the page keeps the
|
|
7927
|
+
* browser's own search. Set `false` to leave the shortcut to the browser everywhere.
|
|
7928
|
+
*/
|
|
7929
|
+
findShortcut?: boolean;
|
|
7238
7930
|
className?: string;
|
|
7239
7931
|
style?: CSSProperties;
|
|
7240
7932
|
children?: DocxEditorChildren;
|
|
@@ -7325,6 +8017,21 @@ interface NavigationShiftInput {
|
|
|
7325
8017
|
* make the pane jump on the first frame and settle on the second.
|
|
7326
8018
|
*/
|
|
7327
8019
|
declare function navigationShift({ viewportWidth, pageWidthPx, reservation, inlineEndReservation, inlineStartReservation, docked, }: NavigationShiftInput): number;
|
|
8020
|
+
/**
|
|
8021
|
+
* The narrowest page column, in px, an open pane must leave beside it.
|
|
8022
|
+
*
|
|
8023
|
+
* Below it a shift cannot help: a 390px phone viewport less the default 328px reservation
|
|
8024
|
+
* leaves a 62px strip of page. There the pane overlays the page instead, at the viewport's
|
|
8025
|
+
* full width less its inset on each side, and the page does not move.
|
|
8026
|
+
*/
|
|
8027
|
+
declare const NAVIGATION_PANE_MIN_PAGE_ROOM = 320;
|
|
8028
|
+
/**
|
|
8029
|
+
* Whether an open pane overlays the page rather than moving it: true when the viewport
|
|
8030
|
+
* leaves less than {@link NAVIGATION_PANE_MIN_PAGE_ROOM} beside the reservation. Uses the
|
|
8031
|
+
* viewport's client width only, never a padding the pane itself causes, so the answer cannot
|
|
8032
|
+
* feed back into its own input. `false` for a viewport that has not been measured.
|
|
8033
|
+
*/
|
|
8034
|
+
declare function navigationPaneOverlays(viewportWidth: number, reservation: number): boolean;
|
|
7328
8035
|
|
|
7329
8036
|
/** @public */
|
|
7330
8037
|
declare function useNavigationShift(): ShallowRef<number>;
|
|
@@ -7336,7 +8043,28 @@ interface DocxEditorPageNumberProps {
|
|
|
7336
8043
|
className?: string;
|
|
7337
8044
|
style?: CSSProperties;
|
|
7338
8045
|
}
|
|
7339
|
-
/**
|
|
8046
|
+
/**
|
|
8047
|
+
* Floating localized page readout for the active `DocxEditorViewport`.
|
|
8048
|
+
*
|
|
8049
|
+
* It appears while a multi-page document scrolls and fades after 600 ms of inactivity. It is
|
|
8050
|
+
* positioned `absolute` against the nearest positioned ancestor, so give the element that holds
|
|
8051
|
+
* the viewport `position: relative`.
|
|
8052
|
+
*
|
|
8053
|
+
* Place it as a sibling of the viewport or inside it. Inside the viewport, it renders into the
|
|
8054
|
+
* viewport's parent element, so it stays in view while the pages scroll.
|
|
8055
|
+
*
|
|
8056
|
+
* @example
|
|
8057
|
+
* ```vue
|
|
8058
|
+
* <div style="position: relative; height: 100%">
|
|
8059
|
+
* <DocxEditorViewport>
|
|
8060
|
+
* <DocxEditorContent />
|
|
8061
|
+
* </DocxEditorViewport>
|
|
8062
|
+
* <DocxEditorPageNumber />
|
|
8063
|
+
* </div>
|
|
8064
|
+
* ```
|
|
8065
|
+
*
|
|
8066
|
+
* @public
|
|
8067
|
+
*/
|
|
7340
8068
|
declare const DocxEditorPageNumber: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7341
8069
|
className: {
|
|
7342
8070
|
type: StringConstructor;
|
|
@@ -7460,6 +8188,12 @@ interface DocxEditorProps {
|
|
|
7460
8188
|
menu?: boolean | DocxEditorMenuProps;
|
|
7461
8189
|
hyperlinkPopup?: boolean;
|
|
7462
8190
|
contextMenu?: boolean | DocxEditorContextMenuProps;
|
|
8191
|
+
/**
|
|
8192
|
+
* The packaged navigation pane: `false` removes it, an object is
|
|
8193
|
+
* `DocxEditorNavigationProps`. The pane captures Ctrl+F (Cmd+F on macOS) while focus is in
|
|
8194
|
+
* this editor and opens Find; `:navigation="{ findShortcut: false }"` leaves the shortcut
|
|
8195
|
+
* to the browser.
|
|
8196
|
+
*/
|
|
7463
8197
|
navigation?: boolean | DocxEditorNavigationProps;
|
|
7464
8198
|
rulers?: boolean;
|
|
7465
8199
|
document?: DocumentSource;
|
|
@@ -7467,6 +8201,21 @@ interface DocxEditorProps {
|
|
|
7467
8201
|
mode?: EditorMode;
|
|
7468
8202
|
zoom?: number;
|
|
7469
8203
|
zoomMode?: ZoomMode | 'auto';
|
|
8204
|
+
/**
|
|
8205
|
+
* Controlled viewer markup settings. Omitted fields use defaults.
|
|
8206
|
+
* Save callback values into this prop to accept API and dialog changes.
|
|
8207
|
+
* Omit this prop for uncontrolled settings. Use one configuration source.
|
|
8208
|
+
*/
|
|
8209
|
+
revisionMarkup?: RevisionMarkupOptions;
|
|
8210
|
+
/** Initial revision display mode. */
|
|
8211
|
+
reviewDisplayMode?: ReviewDisplayMode;
|
|
8212
|
+
/**
|
|
8213
|
+
* How the reader edits saved field results. `'atomic'` (the default) keeps every field one
|
|
8214
|
+
* unit. `'editable'` allows typing, deletion, and selection inside the saved result of a
|
|
8215
|
+
* DATE, MERGEFIELD, HYPERLINK, or similar field. Read once, when the editor is created: a later change is ignored, with a development warning. Refused
|
|
8216
|
+
* with a collaboration module.
|
|
8217
|
+
*/
|
|
8218
|
+
fieldResults?: FieldResultsMode;
|
|
7470
8219
|
/**
|
|
7471
8220
|
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
7472
8221
|
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
@@ -7528,6 +8277,8 @@ interface DocxEditorNamespace {
|
|
|
7528
8277
|
readonly HyperLink: typeof DocxEditorHyperLink;
|
|
7529
8278
|
readonly ContextMenu: typeof ContextMenu;
|
|
7530
8279
|
readonly ContentControl: typeof DocxEditorContentControl;
|
|
8280
|
+
readonly RevisionMarkup: typeof DocxEditorRevisionMarkup;
|
|
8281
|
+
readonly RevisionMarkupDialog: typeof DocxEditorRevisionMarkupDialog;
|
|
7531
8282
|
readonly AuthorStyle: typeof DocxEditorAuthorStyle;
|
|
7532
8283
|
readonly ColorByChangeType: typeof DocxEditorColorByChangeType;
|
|
7533
8284
|
}
|
|
@@ -7550,9 +8301,11 @@ interface ReviewGutterInput {
|
|
|
7550
8301
|
readonly pageWidthPx: number;
|
|
7551
8302
|
readonly inlineStartReservation?: number;
|
|
7552
8303
|
readonly docked?: boolean;
|
|
8304
|
+
/** `overflow: 'scroll'`: the full column stands even when it does not fit. */
|
|
8305
|
+
readonly scroll?: boolean;
|
|
7553
8306
|
}
|
|
7554
8307
|
/** Returns the inline-edge reservations for the current rail geometry. @public */
|
|
7555
|
-
declare function reviewGutter({ open, viewportWidth, pageWidthPx, inlineStartReservation, docked, }: ReviewGutterInput): ReviewGutter;
|
|
8308
|
+
declare function reviewGutter({ open, viewportWidth, pageWidthPx, inlineStartReservation, docked, scroll, }: ReviewGutterInput): ReviewGutter;
|
|
7556
8309
|
/** Returns the live review-rail reservation for the viewport and rulers. @public */
|
|
7557
8310
|
declare function useReviewGutter(): ShallowRef<ReviewGutter>;
|
|
7558
8311
|
|
|
@@ -8839,5 +9592,5 @@ interface UseHistoryGroupReturn {
|
|
|
8839
9592
|
/** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
|
|
8840
9593
|
declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
|
|
8841
9594
|
|
|
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 };
|
|
9595
|
+
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, 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 };
|
|
9596
|
+
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, 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, 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 };
|