@docx-editor.dev/vue 2.31.0 → 2.33.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/README.md +75 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +442 -12
- package/dist/index.d.ts +442 -12
- package/dist/index.js +3 -3
- package/docs/accept-reject-without-scrolling.md +58 -0
- package/docs/comment-on-found-text.md +51 -0
- package/docs/custom-review-cards.md +94 -0
- package/docs/highlight-ranges.md +28 -0
- package/docs/index.md +36 -0
- package/docs/propose-rewrite.md +247 -0
- package/docs/tracked-replacement.md +50 -0
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
import * as vue from 'vue';
|
|
7
|
-
import { Ref, VNode,
|
|
7
|
+
import { Ref, VNode, PropType, SlotsType, VNodeChild, CSSProperties, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
|
|
8
|
+
import * as _docx_editor_dev_core_editor from '@docx-editor.dev/core/editor';
|
|
9
|
+
import { UnsupportedElementRule, UnsupportedElement, RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, BookmarkSortOrder, SplitCellLimits, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, FontShapingOptions, EditorModule, ReviewDisplayMode, FieldResultsMode, ContentLockPolicy, LockedControlNavigation, 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, UnsupportedElement, UnsupportedElementLayout, UnsupportedElementRule, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, deferFonts, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
|
|
8
11
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
9
|
-
import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, BookmarkSortOrder, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, FontShapingOptions, EditorModule, ReviewDisplayMode, FieldResultsMode, ContentLockPolicy, LockedControlNavigation, 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';
|
|
11
12
|
import * as _docx_editor_dev_core from '@docx-editor.dev/core';
|
|
12
13
|
import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
|
|
13
14
|
import { Editor, ViewScope, EditorCommand, WatermarkState, BookmarkSummary, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, ExecResult, DocumentOpenFailure, DocumentHandle, EditorExecOptions, EditorScope, EditorSnapshot, EditorEvents, HighlightOptions, HighlightResult, HighlightRange, HighlightHit, PageSetup, IndentFormatting, Watermark, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
|
|
@@ -16,6 +17,7 @@ import * as _docx_editor_dev_i18n from '@docx-editor.dev/i18n';
|
|
|
16
17
|
import { TFunction, Translations, LocaleStrings } from '@docx-editor.dev/i18n';
|
|
17
18
|
export { TranslationKey } from '@docx-editor.dev/i18n';
|
|
18
19
|
export { DocxDocument } from '@docx-editor.dev/core/contracts/types';
|
|
20
|
+
export { DrawingGraphicKind, DrawingSupport, DrawingSupportIssue } from '@docx-editor.dev/core/store';
|
|
19
21
|
|
|
20
22
|
/** @public */
|
|
21
23
|
declare const VERSION: string;
|
|
@@ -33,6 +35,68 @@ type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
|
|
|
33
35
|
*/
|
|
34
36
|
type DocxEditorChildren = VNode;
|
|
35
37
|
|
|
38
|
+
/** Props for a registered unsupported-content renderer. @public */
|
|
39
|
+
interface DocxEditorUnsupportedElementProps extends UnsupportedElementRule {
|
|
40
|
+
/**
|
|
41
|
+
* Include partially rendered drawings (`support: 'partial'`). Defaults to `false`.
|
|
42
|
+
* Excludes fully supported drawings, hidden drawings, and drawings without a layout position.
|
|
43
|
+
* Excludes shapes with editable text. Partially rendered shapes without text remain eligible.
|
|
44
|
+
*/
|
|
45
|
+
includePartial?: UnsupportedElementRule['includePartial'];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Register a renderer under DocxEditor or DocxEditor.Root.
|
|
49
|
+
* The first mounted matching declaration wins. Prop updates retain its priority.
|
|
50
|
+
* Omit match for a catch-all. Empty slot content, or a child component that renders nothing,
|
|
51
|
+
* keeps what the editor shows. The default slot
|
|
52
|
+
* renders once for each occurrence; put composables in a child component that it renders. To
|
|
53
|
+
* build a preview DOCX in that component, use `drawingPreviewDocx` from
|
|
54
|
+
* `@docx-editor.dev/core/editor`.
|
|
55
|
+
* Layout uses points and only sizes content without an existing layout box. Custom content
|
|
56
|
+
* gets the occurrence's box (`element.bounds`); size it to 100% of the width and height.
|
|
57
|
+
* Clicking a custom preview selects the underlying drawing for moving, resizing, or deletion.
|
|
58
|
+
* Links, buttons, and form fields retain their normal behavior.
|
|
59
|
+
* Components can remount when pagination or virtualization removes an occurrence.
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
declare const DocxEditorUnsupportedElement: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
63
|
+
includePartial: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
match: {
|
|
68
|
+
type: PropType<UnsupportedElementRule['match']>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
layout: {
|
|
72
|
+
type: PropType<UnsupportedElementRule['layout']>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
78
|
+
includePartial: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
match: {
|
|
83
|
+
type: PropType<UnsupportedElementRule['match']>;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
layout: {
|
|
87
|
+
type: PropType<UnsupportedElementRule['layout']>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
}>> & Readonly<{}>, {
|
|
91
|
+
includePartial: boolean;
|
|
92
|
+
match: ((element: UnsupportedElement) => boolean) | undefined;
|
|
93
|
+
layout: _docx_editor_dev_core_editor.UnsupportedElementLayout | undefined;
|
|
94
|
+
}, SlotsType<{
|
|
95
|
+
default: (props: {
|
|
96
|
+
element: UnsupportedElement;
|
|
97
|
+
}) => VNodeChild;
|
|
98
|
+
}>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
99
|
+
|
|
36
100
|
/**
|
|
37
101
|
* Shared presentation props for dialog parts. @public
|
|
38
102
|
*
|
|
@@ -2854,6 +2918,126 @@ declare const DocxEditorBookmarkDialog: {
|
|
|
2854
2918
|
Title: vue.DefineComponent<DialogPartProps>;
|
|
2855
2919
|
};
|
|
2856
2920
|
|
|
2921
|
+
/** The Split cells dialog's draft, as typed. @public */
|
|
2922
|
+
interface SplitCellDialogFields {
|
|
2923
|
+
/** The number of columns, as typed. */
|
|
2924
|
+
columns: string;
|
|
2925
|
+
/** The number of rows, as typed. */
|
|
2926
|
+
rows: string;
|
|
2927
|
+
}
|
|
2928
|
+
/** Split cells dialog draft and actions. `apply` is Split. @public */
|
|
2929
|
+
interface UseSplitCellDialogReturn extends UseDialogReturn<SplitCellDialogFields> {
|
|
2930
|
+
/** The most columns and rows the cell splits into, or null outside a cell that splits. */
|
|
2931
|
+
readonly limits: SplitCellLimits | null;
|
|
2932
|
+
}
|
|
2933
|
+
/** Props for `DocxEditor.SplitCellDialog`. @public */
|
|
2934
|
+
interface DocxEditorSplitCellDialogProps extends DialogCustomizationProps {
|
|
2935
|
+
/** Whether the dialog is shown. The host owns this state. */
|
|
2936
|
+
open: boolean;
|
|
2937
|
+
/** Called on Cancel, Escape, overlay click, and after a successful Split. */
|
|
2938
|
+
onClose: () => void;
|
|
2939
|
+
}
|
|
2940
|
+
/** Read the enclosing Split cells dialog draft. @public */
|
|
2941
|
+
declare function useSplitCellDialog(): UseSplitCellDialogReturn;
|
|
2942
|
+
/** The Split cells dialog with replaceable controls and layout. @public */
|
|
2943
|
+
declare const DocxEditorSplitCellDialog: {
|
|
2944
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
2945
|
+
readonly children: PropType<DocxEditorChildren>;
|
|
2946
|
+
readonly open: {
|
|
2947
|
+
readonly type: BooleanConstructor;
|
|
2948
|
+
readonly required: true;
|
|
2949
|
+
};
|
|
2950
|
+
readonly onClose: {
|
|
2951
|
+
readonly type: PropType<() => void>;
|
|
2952
|
+
readonly required: true;
|
|
2953
|
+
};
|
|
2954
|
+
readonly className: {
|
|
2955
|
+
readonly type: StringConstructor;
|
|
2956
|
+
readonly default: undefined;
|
|
2957
|
+
};
|
|
2958
|
+
readonly style: PropType<CSSProperties>;
|
|
2959
|
+
readonly preset: {
|
|
2960
|
+
readonly type: BooleanConstructor;
|
|
2961
|
+
readonly default: true;
|
|
2962
|
+
};
|
|
2963
|
+
}>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
2964
|
+
[key: string]: any;
|
|
2965
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
2966
|
+
readonly className: string;
|
|
2967
|
+
readonly preset: boolean;
|
|
2968
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
2969
|
+
P: {};
|
|
2970
|
+
B: {};
|
|
2971
|
+
D: {};
|
|
2972
|
+
C: {};
|
|
2973
|
+
M: {};
|
|
2974
|
+
Defaults: {};
|
|
2975
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
2976
|
+
readonly children: PropType<DocxEditorChildren>;
|
|
2977
|
+
readonly open: {
|
|
2978
|
+
readonly type: BooleanConstructor;
|
|
2979
|
+
readonly required: true;
|
|
2980
|
+
};
|
|
2981
|
+
readonly onClose: {
|
|
2982
|
+
readonly type: PropType<() => void>;
|
|
2983
|
+
readonly required: true;
|
|
2984
|
+
};
|
|
2985
|
+
readonly className: {
|
|
2986
|
+
readonly type: StringConstructor;
|
|
2987
|
+
readonly default: undefined;
|
|
2988
|
+
};
|
|
2989
|
+
readonly style: PropType<CSSProperties>;
|
|
2990
|
+
readonly preset: {
|
|
2991
|
+
readonly type: BooleanConstructor;
|
|
2992
|
+
readonly default: true;
|
|
2993
|
+
};
|
|
2994
|
+
}>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
2995
|
+
[key: string]: any;
|
|
2996
|
+
}> | null, {}, {}, {}, {
|
|
2997
|
+
readonly className: string;
|
|
2998
|
+
readonly preset: boolean;
|
|
2999
|
+
}>;
|
|
3000
|
+
__isFragment?: never;
|
|
3001
|
+
__isTeleport?: never;
|
|
3002
|
+
__isSuspense?: never;
|
|
3003
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
3004
|
+
readonly children: PropType<DocxEditorChildren>;
|
|
3005
|
+
readonly open: {
|
|
3006
|
+
readonly type: BooleanConstructor;
|
|
3007
|
+
readonly required: true;
|
|
3008
|
+
};
|
|
3009
|
+
readonly onClose: {
|
|
3010
|
+
readonly type: PropType<() => void>;
|
|
3011
|
+
readonly required: true;
|
|
3012
|
+
};
|
|
3013
|
+
readonly className: {
|
|
3014
|
+
readonly type: StringConstructor;
|
|
3015
|
+
readonly default: undefined;
|
|
3016
|
+
};
|
|
3017
|
+
readonly style: PropType<CSSProperties>;
|
|
3018
|
+
readonly preset: {
|
|
3019
|
+
readonly type: BooleanConstructor;
|
|
3020
|
+
readonly default: true;
|
|
3021
|
+
};
|
|
3022
|
+
}>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
3023
|
+
[key: string]: any;
|
|
3024
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
3025
|
+
readonly className: string;
|
|
3026
|
+
readonly preset: boolean;
|
|
3027
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
3028
|
+
Field: vue.DefineComponent<DialogPartProps & {
|
|
3029
|
+
name: "columns" | "rows";
|
|
3030
|
+
}>;
|
|
3031
|
+
Apply: vue.DefineComponent<DialogPartProps>;
|
|
3032
|
+
Body: vue.DefineComponent<DialogPartProps>;
|
|
3033
|
+
Cancel: vue.DefineComponent<DialogPartProps>;
|
|
3034
|
+
Error: vue.DefineComponent<DialogPartProps>;
|
|
3035
|
+
Footer: vue.DefineComponent<DialogPartProps>;
|
|
3036
|
+
Header: vue.DefineComponent<DialogPartProps>;
|
|
3037
|
+
Reset: vue.DefineComponent<DialogPartProps>;
|
|
3038
|
+
Title: vue.DefineComponent<DialogPartProps>;
|
|
3039
|
+
};
|
|
3040
|
+
|
|
2857
3041
|
/** Shared props for every part. @public */
|
|
2858
3042
|
interface HyperLinkPartProps {
|
|
2859
3043
|
className?: string;
|
|
@@ -5399,6 +5583,197 @@ declare const ContextMenuInsertColumnRight: {
|
|
|
5399
5583
|
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
5400
5584
|
docxRow: string;
|
|
5401
5585
|
};
|
|
5586
|
+
/** Merge the selected cells into one cell. @public */
|
|
5587
|
+
declare const ContextMenuMergeCells: {
|
|
5588
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
5589
|
+
icon: {
|
|
5590
|
+
type: PropType<VNode>;
|
|
5591
|
+
default: undefined;
|
|
5592
|
+
};
|
|
5593
|
+
labelKey: {
|
|
5594
|
+
type: StringConstructor;
|
|
5595
|
+
default: undefined;
|
|
5596
|
+
};
|
|
5597
|
+
className: {
|
|
5598
|
+
type: StringConstructor;
|
|
5599
|
+
default: undefined;
|
|
5600
|
+
};
|
|
5601
|
+
hidden: {
|
|
5602
|
+
type: BooleanConstructor;
|
|
5603
|
+
default: undefined;
|
|
5604
|
+
};
|
|
5605
|
+
destructive: {
|
|
5606
|
+
type: BooleanConstructor;
|
|
5607
|
+
default: undefined;
|
|
5608
|
+
};
|
|
5609
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
5610
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
5611
|
+
[key: string]: any;
|
|
5612
|
+
}>;
|
|
5613
|
+
labelKey: string;
|
|
5614
|
+
className: string;
|
|
5615
|
+
hidden: boolean;
|
|
5616
|
+
destructive: boolean;
|
|
5617
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
5618
|
+
P: {};
|
|
5619
|
+
B: {};
|
|
5620
|
+
D: {};
|
|
5621
|
+
C: {};
|
|
5622
|
+
M: {};
|
|
5623
|
+
Defaults: {};
|
|
5624
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
5625
|
+
icon: {
|
|
5626
|
+
type: PropType<VNode>;
|
|
5627
|
+
default: undefined;
|
|
5628
|
+
};
|
|
5629
|
+
labelKey: {
|
|
5630
|
+
type: StringConstructor;
|
|
5631
|
+
default: undefined;
|
|
5632
|
+
};
|
|
5633
|
+
className: {
|
|
5634
|
+
type: StringConstructor;
|
|
5635
|
+
default: undefined;
|
|
5636
|
+
};
|
|
5637
|
+
hidden: {
|
|
5638
|
+
type: BooleanConstructor;
|
|
5639
|
+
default: undefined;
|
|
5640
|
+
};
|
|
5641
|
+
destructive: {
|
|
5642
|
+
type: BooleanConstructor;
|
|
5643
|
+
default: undefined;
|
|
5644
|
+
};
|
|
5645
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
5646
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
5647
|
+
[key: string]: any;
|
|
5648
|
+
}>;
|
|
5649
|
+
labelKey: string;
|
|
5650
|
+
className: string;
|
|
5651
|
+
hidden: boolean;
|
|
5652
|
+
destructive: boolean;
|
|
5653
|
+
}>;
|
|
5654
|
+
__isFragment?: never;
|
|
5655
|
+
__isTeleport?: never;
|
|
5656
|
+
__isSuspense?: never;
|
|
5657
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
5658
|
+
icon: {
|
|
5659
|
+
type: PropType<VNode>;
|
|
5660
|
+
default: undefined;
|
|
5661
|
+
};
|
|
5662
|
+
labelKey: {
|
|
5663
|
+
type: StringConstructor;
|
|
5664
|
+
default: undefined;
|
|
5665
|
+
};
|
|
5666
|
+
className: {
|
|
5667
|
+
type: StringConstructor;
|
|
5668
|
+
default: undefined;
|
|
5669
|
+
};
|
|
5670
|
+
hidden: {
|
|
5671
|
+
type: BooleanConstructor;
|
|
5672
|
+
default: undefined;
|
|
5673
|
+
};
|
|
5674
|
+
destructive: {
|
|
5675
|
+
type: BooleanConstructor;
|
|
5676
|
+
default: undefined;
|
|
5677
|
+
};
|
|
5678
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
5679
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
5680
|
+
[key: string]: any;
|
|
5681
|
+
}>;
|
|
5682
|
+
labelKey: string;
|
|
5683
|
+
className: string;
|
|
5684
|
+
hidden: boolean;
|
|
5685
|
+
destructive: boolean;
|
|
5686
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
5687
|
+
docxRow: string;
|
|
5688
|
+
};
|
|
5689
|
+
/** Open the Split cells dialog for the cell at the selection. @public */
|
|
5690
|
+
declare const ContextMenuSplitCell: {
|
|
5691
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
5692
|
+
icon: {
|
|
5693
|
+
type: PropType<VNode>;
|
|
5694
|
+
default: undefined;
|
|
5695
|
+
};
|
|
5696
|
+
labelKey: {
|
|
5697
|
+
type: StringConstructor;
|
|
5698
|
+
default: undefined;
|
|
5699
|
+
};
|
|
5700
|
+
className: {
|
|
5701
|
+
type: StringConstructor;
|
|
5702
|
+
default: undefined;
|
|
5703
|
+
};
|
|
5704
|
+
hidden: {
|
|
5705
|
+
type: BooleanConstructor;
|
|
5706
|
+
default: undefined;
|
|
5707
|
+
};
|
|
5708
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
5709
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
5710
|
+
[key: string]: any;
|
|
5711
|
+
}>;
|
|
5712
|
+
labelKey: string;
|
|
5713
|
+
className: string;
|
|
5714
|
+
hidden: boolean;
|
|
5715
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
5716
|
+
P: {};
|
|
5717
|
+
B: {};
|
|
5718
|
+
D: {};
|
|
5719
|
+
C: {};
|
|
5720
|
+
M: {};
|
|
5721
|
+
Defaults: {};
|
|
5722
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
5723
|
+
icon: {
|
|
5724
|
+
type: PropType<VNode>;
|
|
5725
|
+
default: undefined;
|
|
5726
|
+
};
|
|
5727
|
+
labelKey: {
|
|
5728
|
+
type: StringConstructor;
|
|
5729
|
+
default: undefined;
|
|
5730
|
+
};
|
|
5731
|
+
className: {
|
|
5732
|
+
type: StringConstructor;
|
|
5733
|
+
default: undefined;
|
|
5734
|
+
};
|
|
5735
|
+
hidden: {
|
|
5736
|
+
type: BooleanConstructor;
|
|
5737
|
+
default: undefined;
|
|
5738
|
+
};
|
|
5739
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
5740
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
5741
|
+
[key: string]: any;
|
|
5742
|
+
}>;
|
|
5743
|
+
labelKey: string;
|
|
5744
|
+
className: string;
|
|
5745
|
+
hidden: boolean;
|
|
5746
|
+
}>;
|
|
5747
|
+
__isFragment?: never;
|
|
5748
|
+
__isTeleport?: never;
|
|
5749
|
+
__isSuspense?: never;
|
|
5750
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
5751
|
+
icon: {
|
|
5752
|
+
type: PropType<VNode>;
|
|
5753
|
+
default: undefined;
|
|
5754
|
+
};
|
|
5755
|
+
labelKey: {
|
|
5756
|
+
type: StringConstructor;
|
|
5757
|
+
default: undefined;
|
|
5758
|
+
};
|
|
5759
|
+
className: {
|
|
5760
|
+
type: StringConstructor;
|
|
5761
|
+
default: undefined;
|
|
5762
|
+
};
|
|
5763
|
+
hidden: {
|
|
5764
|
+
type: BooleanConstructor;
|
|
5765
|
+
default: undefined;
|
|
5766
|
+
};
|
|
5767
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
5768
|
+
icon: VNode<vue.RendererNode, vue.RendererElement, {
|
|
5769
|
+
[key: string]: any;
|
|
5770
|
+
}>;
|
|
5771
|
+
labelKey: string;
|
|
5772
|
+
className: string;
|
|
5773
|
+
hidden: boolean;
|
|
5774
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
5775
|
+
docxRow: string;
|
|
5776
|
+
};
|
|
5402
5777
|
/** @public */
|
|
5403
5778
|
declare const ContextMenuDeleteTableRow: {
|
|
5404
5779
|
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
@@ -6064,6 +6439,8 @@ interface DocxEditorContextMenuNamespace {
|
|
|
6064
6439
|
readonly InsertRowBelow: typeof ContextMenuInsertRowBelow;
|
|
6065
6440
|
readonly InsertColumnLeft: typeof ContextMenuInsertColumnLeft;
|
|
6066
6441
|
readonly InsertColumnRight: typeof ContextMenuInsertColumnRight;
|
|
6442
|
+
readonly MergeCells: typeof ContextMenuMergeCells;
|
|
6443
|
+
readonly SplitCell: typeof ContextMenuSplitCell;
|
|
6067
6444
|
readonly DeleteTableRow: typeof ContextMenuDeleteTableRow;
|
|
6068
6445
|
readonly DeleteTableColumn: typeof ContextMenuDeleteTableColumn;
|
|
6069
6446
|
readonly DeleteTable: typeof ContextMenuDeleteTable;
|
|
@@ -6132,6 +6509,8 @@ interface DocxEditorPopups {
|
|
|
6132
6509
|
watermark?: DocxEditorPopup<DocxEditorWatermarkDialogProps>;
|
|
6133
6510
|
/** The Bookmark dialog the Insert menu and Ctrl/Cmd+Shift+F5 open. */
|
|
6134
6511
|
bookmark?: DocxEditorPopup<DocxEditorBookmarkDialogProps>;
|
|
6512
|
+
/** The Split cells dialog the table context menu and toolbar open. */
|
|
6513
|
+
splitCell?: DocxEditorPopup<DocxEditorSplitCellDialogProps>;
|
|
6135
6514
|
textFormField?: DocxEditorPopup<DocxEditorTextFormFieldDialogProps>;
|
|
6136
6515
|
hyperlink?: DocxEditorPopup<HyperLinkProps>;
|
|
6137
6516
|
contentControl?: DocxEditorPopup<ContentControlProps>;
|
|
@@ -6143,6 +6522,7 @@ interface DocxEditorPopups {
|
|
|
6143
6522
|
interface DocxEditorRootProps {
|
|
6144
6523
|
popups?: DocxEditorPopups;
|
|
6145
6524
|
document?: DocumentSource;
|
|
6525
|
+
/** Font sources. A new value replaces them in place (`setFonts`), keeping edits and history. */
|
|
6146
6526
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
6147
6527
|
/** Explicit shaping byte ceiling; a changed maxFontBytes value remounts. */
|
|
6148
6528
|
fontShaping?: FontShapingOptions;
|
|
@@ -6615,8 +6995,8 @@ declare const DocxEditorWindow: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6615
6995
|
|
|
6616
6996
|
/**
|
|
6617
6997
|
* Props for `DocxEditor.Loading`. Two slots replace parts of the packaged screen: `indicator`
|
|
6618
|
-
* replaces only the spinner and, with `overlay`, moves
|
|
6619
|
-
*
|
|
6998
|
+
* replaces only the spinner and, with `overlay`, moves below the laid-out pages while a large
|
|
6999
|
+
* document lays out its remaining pages; `default` replaces the whole first screen.
|
|
6620
7000
|
*
|
|
6621
7001
|
* ```vue
|
|
6622
7002
|
* <DocxEditor.Loading overlay>
|
|
@@ -7836,6 +8216,10 @@ interface DocxEditorToolbarNamespace {
|
|
|
7836
8216
|
readonly TableBorderStyle: TableBorderStyleNamespace;
|
|
7837
8217
|
readonly TableBorderWidth: TableBorderWidthNamespace;
|
|
7838
8218
|
readonly TableCellFill: TableCellFillNamespace;
|
|
8219
|
+
/** Merge the selected cells. */
|
|
8220
|
+
readonly TableMergeCells: ToolbarPartComponent;
|
|
8221
|
+
/** Open the Split cells dialog. */
|
|
8222
|
+
readonly TableSplitCell: ToolbarPartComponent;
|
|
7839
8223
|
readonly Comments: ToolbarPartComponent;
|
|
7840
8224
|
readonly FontFamily: typeof FontFamily;
|
|
7841
8225
|
readonly FontSize: ToolbarSlotPartComponent;
|
|
@@ -9115,9 +9499,12 @@ type EditorMode = 'edit' | 'view' | 'suggesting';
|
|
|
9115
9499
|
/** Props for the Vue `DocxEditor` sugar host. @public */
|
|
9116
9500
|
interface DocxEditorProps {
|
|
9117
9501
|
popups?: DocxEditorPopups;
|
|
9502
|
+
/** Font sources. A new value replaces them in place, keeping edits, selection and history. */
|
|
9118
9503
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
9119
9504
|
/** Explicit shaping byte ceiling. A changed maxFontBytes value remounts; equal values keep the instance. */
|
|
9120
9505
|
fontShaping?: FontShapingOptions;
|
|
9506
|
+
/** Inject image decoding and preserved-image conversion. A changed port identity remounts the editor. */
|
|
9507
|
+
imageDecodePort?: ImageDecodePort;
|
|
9121
9508
|
colorMode?: 'light' | 'dark' | 'system';
|
|
9122
9509
|
/** Live resolver for chrome and drawing labels. */
|
|
9123
9510
|
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
@@ -9247,6 +9634,8 @@ interface DocxEditorNamespace {
|
|
|
9247
9634
|
readonly WatermarkDialog: typeof DocxEditorWatermarkDialog;
|
|
9248
9635
|
/** Bookmark dialog — list, add, delete and go to bookmarks. */
|
|
9249
9636
|
readonly BookmarkDialog: typeof DocxEditorBookmarkDialog;
|
|
9637
|
+
/** Split cells dialog — split the cell at the selection into columns and rows. */
|
|
9638
|
+
readonly SplitCellDialog: typeof DocxEditorSplitCellDialog;
|
|
9250
9639
|
readonly PageNumber: typeof DocxEditorPageNumber;
|
|
9251
9640
|
readonly FontNotice: typeof DocxEditorFontNotice;
|
|
9252
9641
|
/** The dialog that explains a file the editor refused to open. Mounted by default. */
|
|
@@ -9260,6 +9649,7 @@ interface DocxEditorNamespace {
|
|
|
9260
9649
|
readonly ContentControl: typeof DocxEditorContentControl;
|
|
9261
9650
|
readonly RevisionMarkup: typeof DocxEditorRevisionMarkup;
|
|
9262
9651
|
readonly RevisionMarkupDialog: typeof DocxEditorRevisionMarkupDialog;
|
|
9652
|
+
readonly UnsupportedElement: typeof DocxEditorUnsupportedElement;
|
|
9263
9653
|
readonly AuthorStyle: typeof DocxEditorAuthorStyle;
|
|
9264
9654
|
readonly ColorByChangeType: typeof DocxEditorColorByChangeType;
|
|
9265
9655
|
}
|
|
@@ -9301,7 +9691,6 @@ interface UseEditorStateOptions {
|
|
|
9301
9691
|
/** @public */
|
|
9302
9692
|
declare function useEditorState<T>(selector: (snapshot: EditorSnapshot) => T, isEqual?: (a: T, b: T) => boolean, options?: UseEditorStateOptions): Readonly<ShallowRef<T>>;
|
|
9303
9693
|
|
|
9304
|
-
/** Coalesced deferred notifier for editor state ticks. @internal */
|
|
9305
9694
|
/** Decide the scheduling lane for one coalesced notification. @internal */
|
|
9306
9695
|
declare function notificationYieldsToTask(): boolean;
|
|
9307
9696
|
|
|
@@ -9411,6 +9800,8 @@ declare function useEditorHostDocument(): UseEditorHostDocumentReturn;
|
|
|
9411
9800
|
* { className: 'glossary-term' }
|
|
9412
9801
|
* );
|
|
9413
9802
|
* ```
|
|
9803
|
+
*
|
|
9804
|
+
* @see {@link https://www.docx-editor.dev/docs/2.x/recipes/highlight-ranges | Highlight ranges}
|
|
9414
9805
|
* @public
|
|
9415
9806
|
*/
|
|
9416
9807
|
declare function useHighlights(name: MaybeRefOrGetter<string>, source: MaybeRefOrGetter<HighlightSource>, options?: MaybeRefOrGetter<HighlightOptions>): ComputedRef<HighlightResult>;
|
|
@@ -9645,7 +10036,12 @@ declare const Slot: vue.DefineComponent<{}, () => VNode<vue.RendererNode, vue.Re
|
|
|
9645
10036
|
/** @public */
|
|
9646
10037
|
type DocxEditorRefCallback<T> = (node: T | null) => void;
|
|
9647
10038
|
|
|
9648
|
-
|
|
10039
|
+
/**
|
|
10040
|
+
* Where a scoped chrome anchor sits relative to its story: before it, after it, or on its label.
|
|
10041
|
+
*
|
|
10042
|
+
* @public
|
|
10043
|
+
*/
|
|
10044
|
+
type ScopedChromeAnchorPlacement = 'before' | 'after' | 'story-label';
|
|
9649
10045
|
/** @public */
|
|
9650
10046
|
interface ScopedChromeAnchor {
|
|
9651
10047
|
readonly ref: DocxEditorRefCallback<HTMLDivElement>;
|
|
@@ -9656,7 +10052,7 @@ interface ScopedChromeAnchor {
|
|
|
9656
10052
|
*
|
|
9657
10053
|
* @public
|
|
9658
10054
|
*/
|
|
9659
|
-
declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HTMLElement | null, placement:
|
|
10055
|
+
declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HTMLElement | null, placement: ScopedChromeAnchorPlacement): ScopedChromeAnchor;
|
|
9660
10056
|
|
|
9661
10057
|
/**
|
|
9662
10058
|
* Section page setup as the engine reports it (`Editor.getPageSetup()`) —
|
|
@@ -9664,7 +10060,8 @@ declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HT
|
|
|
9664
10060
|
*/
|
|
9665
10061
|
type RulerPageSetup = NonNullable<ReturnType<Editor['getPageSetup']>>;
|
|
9666
10062
|
/**
|
|
9667
|
-
* A tab stop the ruler paints. `position` is twips from the
|
|
10063
|
+
* A tab stop the ruler paints. `position` is twips from the paragraph's leading margin
|
|
10064
|
+
* (the right one for a right-to-left paragraph) —
|
|
9668
10065
|
* the same value the `removeTabMark` command takes as `positionTwips`.
|
|
9669
10066
|
*/
|
|
9670
10067
|
interface RulerTabStop {
|
|
@@ -10329,6 +10726,15 @@ declare const DocumentOutline: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
10329
10726
|
/** @public */
|
|
10330
10727
|
interface LocaleProviderProps {
|
|
10331
10728
|
i18n?: Translations;
|
|
10729
|
+
/**
|
|
10730
|
+
* The writing direction of the editor chrome. Defaults to the catalog's `_dir`, then to a
|
|
10731
|
+
* right-to-left `_lang`, then to the direction of an outer provider. With `'rtl'`, the
|
|
10732
|
+
* toolbar, menu bar, dialogs, context menu, panes, and review column mirror without a
|
|
10733
|
+
* wrapper element. `'ltr'` keeps a left-to-right chrome on a right-to-left host page.
|
|
10734
|
+
* Without any of these, as with the shipped left-to-right catalogs, the chrome inherits
|
|
10735
|
+
* the host page direction.
|
|
10736
|
+
*/
|
|
10737
|
+
dir?: 'ltr' | 'rtl';
|
|
10332
10738
|
children?: DocxEditorChildren;
|
|
10333
10739
|
}
|
|
10334
10740
|
/** @public */
|
|
@@ -10337,6 +10743,10 @@ declare const LocaleProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
10337
10743
|
type: PropType<Translations>;
|
|
10338
10744
|
default: undefined;
|
|
10339
10745
|
};
|
|
10746
|
+
dir: {
|
|
10747
|
+
type: PropType<'ltr' | 'rtl'>;
|
|
10748
|
+
default: undefined;
|
|
10749
|
+
};
|
|
10340
10750
|
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
10341
10751
|
[key: string]: any;
|
|
10342
10752
|
}>[] | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
@@ -10344,19 +10754,37 @@ declare const LocaleProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
10344
10754
|
type: PropType<Translations>;
|
|
10345
10755
|
default: undefined;
|
|
10346
10756
|
};
|
|
10757
|
+
dir: {
|
|
10758
|
+
type: PropType<'ltr' | 'rtl'>;
|
|
10759
|
+
default: undefined;
|
|
10760
|
+
};
|
|
10347
10761
|
}>> & Readonly<{}>, {
|
|
10348
10762
|
i18n: _docx_editor_dev_i18n.PartialLocaleStrings;
|
|
10763
|
+
dir: "ltr" | "rtl";
|
|
10349
10764
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
10350
10765
|
/**
|
|
10351
10766
|
* The active catalogue's `t()`, the catalogue itself, and its language tag (`_lang`, `en`
|
|
10352
|
-
* by default), which formats numbers the way the strings around them read.
|
|
10767
|
+
* by default), which formats numbers the way the strings around them read. Its `dir` is the
|
|
10768
|
+
* providers' direction, `'ltr'` when the chrome inherits a right-to-left host page; use
|
|
10769
|
+
* `useChromeDir()` for the direction a provider decided, `undefined` when inherited.
|
|
10353
10770
|
* @public
|
|
10354
10771
|
*/
|
|
10355
10772
|
declare function useTranslation(): {
|
|
10356
10773
|
t: TFunction;
|
|
10357
10774
|
catalogue: ShallowRef<LocaleStrings>;
|
|
10358
10775
|
lang: string;
|
|
10776
|
+
dir: 'ltr' | 'rtl';
|
|
10359
10777
|
};
|
|
10778
|
+
/**
|
|
10779
|
+
* The `dir` attribute a chrome part sets on its root, as a read-only ref: the direction a
|
|
10780
|
+
* provider decided (its `dir` prop, the catalog's `_dir`, or a right-to-left `_lang`),
|
|
10781
|
+
* otherwise nothing, so the part keeps the host page direction.
|
|
10782
|
+
*
|
|
10783
|
+
* Read it in your own controls to follow the editor chrome: `undefined` means the chrome
|
|
10784
|
+
* inherits the host page direction, so set no `dir` then.
|
|
10785
|
+
* @public
|
|
10786
|
+
*/
|
|
10787
|
+
declare function useChromeDir(): Readonly<ShallowRef<'ltr' | 'rtl' | undefined>>;
|
|
10360
10788
|
|
|
10361
10789
|
/** @public */
|
|
10362
10790
|
type ChromeTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
@@ -10413,7 +10841,9 @@ interface ListState {
|
|
|
10413
10841
|
numId?: number;
|
|
10414
10842
|
}
|
|
10415
10843
|
|
|
10844
|
+
/** A paragraph alignment the legacy toolbar shows and sets. */
|
|
10416
10845
|
type ParagraphAlignment = 'left' | 'center' | 'right' | 'both' | 'distribute';
|
|
10846
|
+
/** A table command the legacy toolbar dispatches. */
|
|
10417
10847
|
type TableAction = 'addRowAbove' | 'addRowBelow' | 'addColumnLeft' | 'addColumnRight' | 'deleteRow' | 'deleteColumn' | 'mergeCells' | 'splitCell' | 'deleteTable' | 'selectTable' | 'selectRow' | 'selectColumn' | 'borderAll' | 'borderOutside' | 'borderInside' | 'borderNone' | 'borderTop' | 'borderBottom' | 'borderLeft' | 'borderRight' | {
|
|
10418
10848
|
type: 'cellFillColor';
|
|
10419
10849
|
color: string | null;
|
|
@@ -10673,5 +11103,5 @@ interface UseHistoryGroupReturn {
|
|
|
10673
11103
|
/** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
|
|
10674
11104
|
declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
|
|
10675
11105
|
|
|
10676
|
-
export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, DEFAULT_WATERMARK_PRESETS, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorBookmarkDialog, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImageInsertErrorDialog, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorOpenFailure, DocxEditorOpenFailureAction, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorVerticalRuler, DocxEditorViewport, DocxEditorWatermarkDialog, DocxEditorWindow, 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, NavigationGoTo, 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, useBookmarkDialog, useBookmarks, useChromeTranslate, useCommentDraftRequest, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useGoToBookmark, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, useOpenFailure, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useWatermark, useWatermarkDialog, useZoom };
|
|
10677
|
-
export type { BookmarkDialogFields, ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocxEditorAuthorStyleProps, DocxEditorBookmarkDialogProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImageInsertErrorDialogProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorOpenFailureActionProps, DocxEditorOpenFailureComponent, DocxEditorOpenFailureContext, DocxEditorOpenFailureMessage, DocxEditorOpenFailureProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorViewportProps, DocxEditorWatermarkDialogProps, DocxEditorWindowProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, GoToBookmarkProblem, 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, UseBookmarkDialogReturn, UseBookmarksReturn, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseEditorHostDocumentReturn, UseFontFamilyResult, UseGoToBookmarkOptions, UseGoToBookmarkReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseTextFormFieldDialogReturn, UseWatermarkDialogReturn, UseWatermarkReturn, UseZoomResult, VerticalRulerProps, WatermarkDialogFieldName, WatermarkDialogFields, WatermarkDialogKind, WatermarkDialogLayout };
|
|
11106
|
+
export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuMergeCells, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, ContextMenuSplitCell, DEFAULT_WATERMARK_PRESETS, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorBookmarkDialog, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImageInsertErrorDialog, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorOpenFailure, DocxEditorOpenFailureAction, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorSplitCellDialog, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorUnsupportedElement, DocxEditorVerticalRuler, DocxEditorViewport, DocxEditorWatermarkDialog, DocxEditorWindow, 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, NavigationGoTo, 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, useBookmarkDialog, useBookmarks, useChromeDir, useChromeTranslate, useCommentDraftRequest, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useGoToBookmark, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, useOpenFailure, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useSplitCellDialog, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useWatermark, useWatermarkDialog, useZoom };
|
|
11107
|
+
export type { BookmarkDialogFields, ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocumentStyleSummary, DocxEditorAuthorStyleProps, DocxEditorBookmarkDialogProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImageInsertErrorDialogProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorOpenFailureActionProps, DocxEditorOpenFailureComponent, DocxEditorOpenFailureContext, DocxEditorOpenFailureMessage, DocxEditorOpenFailureProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRefCallback, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorSplitCellDialogProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorUnsupportedElementProps, DocxEditorViewportProps, DocxEditorWatermarkDialogProps, DocxEditorWindowProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontOption, FontsInput, FormattingAction, GoToBookmarkProblem, HeaderFooterState, HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, ListState, ListType, 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, ParagraphAlignment, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, ScopedChromeAnchorPlacement, SelectionFormatting, SlotProps, SplitCellDialogFields, TableAction, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseBookmarkDialogReturn, UseBookmarksReturn, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseEditorHostDocumentReturn, UseFontFamilyResult, UseGoToBookmarkOptions, UseGoToBookmarkReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseSplitCellDialogReturn, UseTextFormFieldDialogReturn, UseWatermarkDialogReturn, UseWatermarkReturn, UseZoomResult, VerticalRulerProps, WatermarkDialogFieldName, WatermarkDialogFields, WatermarkDialogKind, WatermarkDialogLayout };
|