@docx-editor.dev/vue 2.21.0 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as vue from 'vue';
2
2
  import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, InjectionKey, MaybeRef, ComputedRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
3
- import { ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, SupportedImageMime, TableChromeSlotId, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, ParagraphFormatRead, ParagraphFormatUpdate, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
4
- export { CHROME_GROUPS, CHROME_MENUS, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, PX_PER_CM, PX_PER_INCH, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, ParagraphTabStop, ReviewAuthorInfo, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionStyles, RulerTick, RulerUnit, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createFontSource, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
5
3
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
4
+ import { ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, 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, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, 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, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
6
6
  import * as _docx_editor_dev_core from '@docx-editor.dev/core';
7
7
  import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
8
8
  import { Editor, ViewScope, EditorCommand, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, DocumentHandle, EditorExecOptions, ExecResult, EditorScope, EditorSnapshot, EditorEvents, PageSetup, IndentFormatting, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
@@ -28,6 +28,154 @@ type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
28
28
  */
29
29
  type DocxEditorChildren = VNode;
30
30
 
31
+ /** State and presentation for the File menu export dialog. @public */
32
+ interface DocxEditorExportDialogProps {
33
+ /** Controls visibility when rendering the dialog directly. */
34
+ open: boolean;
35
+ /** The format selected in File > Export. */
36
+ format: ChromeExportFormat;
37
+ /** True while conversion runs. Closing the dialog does not cancel conversion. */
38
+ pending: boolean;
39
+ /** Localized failure text, or an empty string while conversion runs. */
40
+ error: string;
41
+ /** Dismisses feedback without canceling the export. */
42
+ onClose(): void;
43
+ /** Additional class on the dialog element. */
44
+ className?: string;
45
+ /** Inline styles on the dialog element. */
46
+ style?: CSSProperties;
47
+ /** Replaces the default contents while retaining the modal and focus behavior. */
48
+ children?: DocxEditorChildren;
49
+ }
50
+ /** Default progress and error dialog for `popups.export`. @public */
51
+ declare const DocxEditorExportDialog: vue.DefineComponent<vue.ExtractPropTypes<{
52
+ open: {
53
+ type: BooleanConstructor;
54
+ required: true;
55
+ };
56
+ pending: {
57
+ type: BooleanConstructor;
58
+ required: true;
59
+ };
60
+ className: StringConstructor;
61
+ style: PropType<CSSProperties>;
62
+ children: PropType<DocxEditorChildren>;
63
+ format: {
64
+ type: PropType<ChromeExportFormat>;
65
+ required: true;
66
+ };
67
+ error: {
68
+ type: StringConstructor;
69
+ required: true;
70
+ };
71
+ onClose: {
72
+ type: PropType<() => void>;
73
+ required: true;
74
+ };
75
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
76
+ open: {
77
+ type: BooleanConstructor;
78
+ required: true;
79
+ };
80
+ pending: {
81
+ type: BooleanConstructor;
82
+ required: true;
83
+ };
84
+ className: StringConstructor;
85
+ style: PropType<CSSProperties>;
86
+ children: PropType<DocxEditorChildren>;
87
+ format: {
88
+ type: PropType<ChromeExportFormat>;
89
+ required: true;
90
+ };
91
+ error: {
92
+ type: StringConstructor;
93
+ required: true;
94
+ };
95
+ onClose: {
96
+ type: PropType<() => void>;
97
+ required: true;
98
+ };
99
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
100
+
101
+ /** State and presentation for the File menu print dialog. @public */
102
+ interface DocxEditorPrintDialogProps {
103
+ /** Controls visibility when rendering the dialog directly. */
104
+ open: boolean;
105
+ /** True while the PDF handler converts the document. */
106
+ pending: boolean;
107
+ /** Localized failure text, or an empty string. */
108
+ error: string;
109
+ /**
110
+ * An object URL for the converted PDF when printing failed after conversion, such as in a
111
+ * browser without a PDF viewer. Otherwise an empty string. The default dialog links only
112
+ * to `blob:` URLs.
113
+ */
114
+ url: string;
115
+ /** Closes the dialog. While `pending` is true, closing also cancels printing. */
116
+ onClose(): void;
117
+ /** Additional class on the dialog element. */
118
+ className?: string;
119
+ /** Inline styles on the dialog element. */
120
+ style?: CSSProperties;
121
+ /** Replaces the default contents while retaining the modal and focus behavior. */
122
+ children?: DocxEditorChildren;
123
+ }
124
+ /**
125
+ * Default progress and error dialog for `popups.print`. The editor closes it when the
126
+ * browser print dialog opens.
127
+ * @public
128
+ */
129
+ declare const DocxEditorPrintDialog: vue.DefineComponent<vue.ExtractPropTypes<{
130
+ open: {
131
+ type: BooleanConstructor;
132
+ required: true;
133
+ };
134
+ pending: {
135
+ type: BooleanConstructor;
136
+ required: true;
137
+ };
138
+ className: StringConstructor;
139
+ style: PropType<CSSProperties>;
140
+ children: PropType<DocxEditorChildren>;
141
+ error: {
142
+ type: StringConstructor;
143
+ required: true;
144
+ };
145
+ url: {
146
+ type: StringConstructor;
147
+ required: true;
148
+ };
149
+ onClose: {
150
+ type: PropType<() => void>;
151
+ required: true;
152
+ };
153
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
154
+ open: {
155
+ type: BooleanConstructor;
156
+ required: true;
157
+ };
158
+ pending: {
159
+ type: BooleanConstructor;
160
+ required: true;
161
+ };
162
+ className: StringConstructor;
163
+ style: PropType<CSSProperties>;
164
+ children: PropType<DocxEditorChildren>;
165
+ error: {
166
+ type: StringConstructor;
167
+ required: true;
168
+ };
169
+ url: {
170
+ type: StringConstructor;
171
+ required: true;
172
+ };
173
+ onClose: {
174
+ type: PropType<() => void>;
175
+ required: true;
176
+ };
177
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
178
+
31
179
  /** One selectable entry of a dropdown or combo-box control. @public */
32
180
  interface ContentControlWidgetEntry {
33
181
  readonly displayText: string;
@@ -1781,7 +1929,7 @@ declare const DocxEditorTextFormFieldDialog: {
1781
1929
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
1782
1930
  session: TextFormFieldDialogSession | null;
1783
1931
  preset: boolean;
1784
- }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Title" | "Cancel" | "Apply" | "Header" | "Footer" | "Error" | "Body", vue.DefineComponent<DialogPartProps>> & {
1932
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Header" | "Footer" | "Title" | "Cancel" | "Apply" | "Body" | "Error", vue.DefineComponent<DialogPartProps>> & {
1785
1933
  Field: vue.DefineComponent<DialogPartProps & {
1786
1934
  name: keyof TextFormFieldDialogFields;
1787
1935
  }>;
@@ -2124,7 +2272,7 @@ declare const DocxEditorPageSetupDialog: {
2124
2272
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
2125
2273
  className: string;
2126
2274
  preset: boolean;
2127
- }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Title" | "Cancel" | "Apply" | "Header" | "Footer" | "Error" | "Body", vue.DefineComponent<DialogPartProps>> & {
2275
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Header" | "Footer" | "Title" | "Cancel" | "Apply" | "Body" | "Error", vue.DefineComponent<DialogPartProps>> & {
2128
2276
  Field: vue.DefineComponent<DialogPartProps & {
2129
2277
  name: "scope" | "orientation" | "pageSize" | "marginLeft" | "marginRight" | "marginBottom" | "marginTop";
2130
2278
  }>;
@@ -2220,7 +2368,7 @@ declare const DocxEditorParagraphDialog: {
2220
2368
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
2221
2369
  className: string;
2222
2370
  preset: boolean;
2223
- }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Title" | "Cancel" | "Apply" | "Header" | "Footer" | "Error" | "Body", vue.DefineComponent<DialogPartProps>> & {
2371
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & Record<"Header" | "Footer" | "Title" | "Cancel" | "Apply" | "Body" | "Error", vue.DefineComponent<DialogPartProps>> & {
2224
2372
  Field: vue.DefineComponent<DialogPartProps & {
2225
2373
  name: "keepNext" | "keepLines" | "pageBreakBefore" | "widowControl" | "contextualSpacing" | "alignment" | "spaceBefore" | "spaceAfter" | "lineRule" | "tabStops" | "special" | "indentLeft" | "indentRight" | "specialBy" | "lineValue";
2226
2374
  }>;
@@ -3149,6 +3297,162 @@ declare const MenuSave: {
3149
3297
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
3150
3298
  docxSlot: ChromeSlotId;
3151
3299
  };
3300
+ /** Exports continuous Markdown through the menu handler. @public */
3301
+ declare const MenuExportMarkdown: {
3302
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
3303
+ className: {
3304
+ type: StringConstructor;
3305
+ default: undefined;
3306
+ };
3307
+ hidden: {
3308
+ type: BooleanConstructor;
3309
+ default: undefined;
3310
+ };
3311
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
3312
+ hidden: boolean;
3313
+ className: string;
3314
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
3315
+ P: {};
3316
+ B: {};
3317
+ D: {};
3318
+ C: {};
3319
+ M: {};
3320
+ Defaults: {};
3321
+ }, Readonly<vue.ExtractPropTypes<{
3322
+ className: {
3323
+ type: StringConstructor;
3324
+ default: undefined;
3325
+ };
3326
+ hidden: {
3327
+ type: BooleanConstructor;
3328
+ default: undefined;
3329
+ };
3330
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
3331
+ hidden: boolean;
3332
+ className: string;
3333
+ }>;
3334
+ __isFragment?: never;
3335
+ __isTeleport?: never;
3336
+ __isSuspense?: never;
3337
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
3338
+ className: {
3339
+ type: StringConstructor;
3340
+ default: undefined;
3341
+ };
3342
+ hidden: {
3343
+ type: BooleanConstructor;
3344
+ default: undefined;
3345
+ };
3346
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
3347
+ hidden: boolean;
3348
+ className: string;
3349
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
3350
+ docxSlot: ChromeSlotId;
3351
+ };
3352
+ /** Exports PDF through the menu handler. @public */
3353
+ declare const MenuExportPdf: {
3354
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
3355
+ className: {
3356
+ type: StringConstructor;
3357
+ default: undefined;
3358
+ };
3359
+ hidden: {
3360
+ type: BooleanConstructor;
3361
+ default: undefined;
3362
+ };
3363
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
3364
+ hidden: boolean;
3365
+ className: string;
3366
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
3367
+ P: {};
3368
+ B: {};
3369
+ D: {};
3370
+ C: {};
3371
+ M: {};
3372
+ Defaults: {};
3373
+ }, Readonly<vue.ExtractPropTypes<{
3374
+ className: {
3375
+ type: StringConstructor;
3376
+ default: undefined;
3377
+ };
3378
+ hidden: {
3379
+ type: BooleanConstructor;
3380
+ default: undefined;
3381
+ };
3382
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
3383
+ hidden: boolean;
3384
+ className: string;
3385
+ }>;
3386
+ __isFragment?: never;
3387
+ __isTeleport?: never;
3388
+ __isSuspense?: never;
3389
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
3390
+ className: {
3391
+ type: StringConstructor;
3392
+ default: undefined;
3393
+ };
3394
+ hidden: {
3395
+ type: BooleanConstructor;
3396
+ default: undefined;
3397
+ };
3398
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
3399
+ hidden: boolean;
3400
+ className: string;
3401
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
3402
+ docxSlot: ChromeSlotId;
3403
+ };
3404
+ /** Prints through the menu's PDF handler. @public */
3405
+ declare const MenuPrint: {
3406
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
3407
+ className: {
3408
+ type: StringConstructor;
3409
+ default: undefined;
3410
+ };
3411
+ hidden: {
3412
+ type: BooleanConstructor;
3413
+ default: undefined;
3414
+ };
3415
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
3416
+ hidden: boolean;
3417
+ className: string;
3418
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
3419
+ P: {};
3420
+ B: {};
3421
+ D: {};
3422
+ C: {};
3423
+ M: {};
3424
+ Defaults: {};
3425
+ }, Readonly<vue.ExtractPropTypes<{
3426
+ className: {
3427
+ type: StringConstructor;
3428
+ default: undefined;
3429
+ };
3430
+ hidden: {
3431
+ type: BooleanConstructor;
3432
+ default: undefined;
3433
+ };
3434
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
3435
+ hidden: boolean;
3436
+ className: string;
3437
+ }>;
3438
+ __isFragment?: never;
3439
+ __isTeleport?: never;
3440
+ __isSuspense?: never;
3441
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
3442
+ className: {
3443
+ type: StringConstructor;
3444
+ default: undefined;
3445
+ };
3446
+ hidden: {
3447
+ type: BooleanConstructor;
3448
+ default: undefined;
3449
+ };
3450
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
3451
+ hidden: boolean;
3452
+ className: string;
3453
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
3454
+ docxSlot: ChromeSlotId;
3455
+ };
3152
3456
  declare const MenuPageSetup: {
3153
3457
  new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
3154
3458
  className: {
@@ -5354,6 +5658,10 @@ declare function useContextMenuTarget(): HTMLElement | null;
5354
5658
 
5355
5659
  /** Render overrides for automatically hosted editor popups. False disables a popup. @public */
5356
5660
  interface DocxEditorPopups {
5661
+ /** File export progress and errors. False hides feedback without stopping conversion. */
5662
+ export?: DocxEditorPopup<DocxEditorExportDialogProps>;
5663
+ /** File print progress and errors. False hides feedback; printing still runs. */
5664
+ print?: DocxEditorPopup<DocxEditorPrintDialogProps>;
5357
5665
  contentControlWidget?: DocxEditorPopup<DocxEditorContentControlWidgetProps>;
5358
5666
  /**
5359
5667
  * Renderer for checkbox presses. Omitted, the engine toggles the box itself and
@@ -6476,6 +6784,11 @@ declare const MenuReview: {
6476
6784
 
6477
6785
  /** @public */
6478
6786
  interface DocxEditorMenuProps {
6787
+ /**
6788
+ * Converter handlers. Markdown requires docx-to-markdown; PDF requires docx-to-pdf on Node.js.
6789
+ * File > Print also uses the PDF handler. Missing handlers show an error.
6790
+ */
6791
+ exporters?: ChromeExportHandlers;
6479
6792
  className?: string;
6480
6793
  t?: ToolbarTranslate;
6481
6794
  fileName?: string;
@@ -6507,6 +6820,9 @@ interface DocxEditorMenuNamespace {
6507
6820
  readonly Entry: typeof MenuEntry;
6508
6821
  readonly Open: typeof MenuOpen;
6509
6822
  readonly Save: typeof MenuSave;
6823
+ readonly ExportMarkdown: typeof MenuExportMarkdown;
6824
+ readonly ExportPdf: typeof MenuExportPdf;
6825
+ readonly Print: typeof MenuPrint;
6510
6826
  readonly PageSetup: typeof MenuPageSetup;
6511
6827
  readonly ImageInsert: typeof MenuImageInsert;
6512
6828
  readonly Reviewers: typeof MenuReviewers;
@@ -7160,6 +7476,10 @@ interface DocxEditorNamespace {
7160
7476
  readonly VerticalRuler: typeof DocxEditorVerticalRuler;
7161
7477
  readonly DocumentOutline: typeof DocxEditorDocumentOutline;
7162
7478
  readonly Navigation: typeof Navigation;
7479
+ /** File export progress and errors, configured through popups.export. */
7480
+ readonly ExportDialog: typeof DocxEditorExportDialog;
7481
+ /** File print progress and errors, configured through popups.print. */
7482
+ readonly PrintDialog: typeof DocxEditorPrintDialog;
7163
7483
  readonly PageSetupDialog: typeof DocxEditorPageSetupDialog;
7164
7484
  /** The Paragraph dialog: alignment, indentation, spacing and the paragraph flags. */
7165
7485
  readonly ParagraphDialog: typeof DocxEditorParagraphDialog;
@@ -8449,4 +8769,4 @@ interface UseHistoryGroupReturn {
8449
8769
  /** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
8450
8770
  declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
8451
8771
 
8452
- export { CONTENT_CONTROL_SLOTS, type ChromeTranslate, type ContentControlActionProps, type ContentControlInspectorState, type ContentControlLock, type ContentControlPartProps, type ContentControlProps, type ContentControlSlotId, type ContentControlWidgetDayProps, type ContentControlWidgetEntry, type ContentControlWidgetItemProps, type ContentControlWidgetPictureProps, type ContextMenuAnchor, ContextMenuCellVerticalAlignment, type ContextMenuCommandProps, type ContextMenuContextValue, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, type ContextMenuItemProps, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, type ContextMenuTableRowProps, type DialogCustomizationProps, type DialogPartProps, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, type DocxEditorAuthorStyleProps, type DocxEditorChildren, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, type DocxEditorContentControlNamespace, DocxEditorContentControlWidget, type DocxEditorContentControlWidgetNamespace, type DocxEditorContentControlWidgetPartProps, type DocxEditorContentControlWidgetProps, type DocxEditorContentProps, DocxEditorContextMenu, type DocxEditorContextMenuNamespace, type DocxEditorContextMenuProps, DocxEditorDocumentOutline, type DocxEditorDocumentOutlineProps, DocxEditorEquation, DocxEditorFontNotice, type DocxEditorFontNoticeProps, DocxEditorHeaderFooterChrome, type DocxEditorHeaderFooterChromeProps, DocxEditorHorizontalRuler, DocxEditorHyperLink, type DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopup, type DocxEditorImageAltTextPopupProps, DocxEditorImagePropertiesDialog, type DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialog, type DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoading, type DocxEditorLoadingComponent, type DocxEditorLoadingProps, DocxEditorLoadingSpinner, type DocxEditorLoadingSpinnerProps, DocxEditorMenu, type DocxEditorMenuNamespace, type DocxEditorMenuProps, type DocxEditorNamespace, DocxEditorNavigation, type DocxEditorNavigationNamespace, type DocxEditorNavigationProps, DocxEditorNotePreview, type DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialog, type DocxEditorNotePropertiesDialogProps, DocxEditorNotesChrome, type DocxEditorNotesChromeProps, DocxEditorNotesContextMenu, type DocxEditorNotesContextMenuProps, DocxEditorPageNumber, type DocxEditorPageNumberProps, DocxEditorPageSetupDialog, type DocxEditorPageSetupDialogProps, DocxEditorParagraphDialog, type DocxEditorParagraphDialogProps, type DocxEditorPopup, type DocxEditorPopups, type DocxEditorProps, type DocxEditorRef, DocxEditorRoot, type DocxEditorRootListeners, type DocxEditorRootProps, type DocxEditorRulerProps, DocxEditorShell, DocxEditorTextFormFieldDialog, type DocxEditorTextFormFieldDialogProps, DocxEditorToolbar, type DocxEditorToolbarNamespace, type DocxEditorToolbarProps, DocxEditorVerticalRuler, DocxEditorViewport, type DocxEditorViewportProps, type DocxFontOrigin, type DocxFontsInput, type DocxFontsSource, type DocxSource, type EditorCaret, type EditorCommandState, type EditorMode, type EditorValueCommandState, type FontFamilyItemProps, type FontFamilyNamespace, type FontFamilyPartProps, type FontFamilyProps, type FontsInput, type HeaderFooterState, HorizontalRuler, type HorizontalRulerProps, type HyperLinkActionProps, type HyperLinkPartProps, type HyperLinkProps, type HyperlinkPopupAnchor, type HyperlinkPopupMode, type HyperlinkPopupState, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, type ImagePropertiesTriggerProps, ImageWrap, type IndentUpdate, LocaleProvider, type LocaleProviderProps, Logo, type MaybeRefOrGetter, type MenuActionProps, MenuBar, type MenuGroupProps, type MenuId, type MenuItemProps, type MenuPartComponent, type MenuProps, type MenuReportIssueProps, type MenuReviewersProps, type MenuRowProps, type MenuSeparatorProps, type MenuSubmenuProps, type MenuTableGridProps, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, type NavigationPartProps, type NavigationShiftInput, NavigationTab, type NavigationTabProps, type NavigationTab$1 as NavigationTabValue, NavigationTabs, NavigationTitle, NavigationToggle, type NormalizedImagePayload, type NotePropertiesState, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, type OutlineHeading$1 as OutlineHeading, type OutlineHeadingItem, PageIndicator, type PageIndicatorProps, PageNumberTranslationContext, type PageSetupDialogFields, type PageSetupUpdate, PaginatedDocxEditor, type PaginatedDocxEditorExpose, type PaginatedDocxEditorHandle, type PaginatedDocxEditorProps, PaginatedDocxEditorShell, type PaginatedDocxEditorShellProps, type ParagraphStyleItemProps, type ParagraphStyleNamespace, type ParagraphStyleOption, type ParagraphStylePartProps, type ParagraphStyleProps, type ProvideDocxEditorResult, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, type ReviewGutter, type ReviewGutterInput, ReviewRailContext, type ReviewRailRegistry, SEARCH_DEBOUNCE_MS, SEARCH_MATCH_LIMIT, type ScopedChromeAnchor, Slot, type SlotProps, type TableBorderColorNamespace, type TableBorderStyleNamespace, type TableBorderTargetNamespace, type TableBorderWidthNamespace, type TableCellFillNamespace, type TableChromeItemProps, type TableChromePartComponent, type TableChromePartProps, type TextFormFieldDialogFields, TitleBar, TitleBarRight, Toolbar, type ToolbarActionProps, type ToolbarAlignmentComponent, ToolbarButton, type ToolbarButtonProps, ToolbarContext, type ToolbarContextValue, ToolbarGroup, ToolbarImageProperties, type ToolbarPartComponent, type ToolbarPartProps, type ToolbarProps, type ToolbarReviewersProps, type ToolbarSeparatorProps, type ToolbarSlotPartComponent, type ToolbarSlotPartProps, type ToolbarTranslate, type UseContentControlResult, type UseContentControlWidgetResult, type UseDialogReturn, type UseDocumentOutlineResult, type UseDocumentSearchResult, type UseDocxSourceOptions, type UseDocxSourceResult, type UseFontFamilyResult, type UseHistoryGroupReturn, type UseHyperlinkPopupResult, type UseNavigationPaneOptions, type UseNavigationPaneResult, type UsePageSetupDialogReturn, type UsePageSetupReturn, type UseParagraphDialogReturn, type UseParagraphFormatReturn, type UseParagraphIndentReturn, type UseParagraphStyleResult, type UseTextFormFieldDialogReturn, type UseZoomResult, VERSION, VerticalRuler, type VerticalRulerProps, 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, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
8772
+ export { CONTENT_CONTROL_SLOTS, type ChromeTranslate, type ContentControlActionProps, type ContentControlInspectorState, type ContentControlLock, type ContentControlPartProps, type ContentControlProps, type ContentControlSlotId, type ContentControlWidgetDayProps, type ContentControlWidgetEntry, type ContentControlWidgetItemProps, type ContentControlWidgetPictureProps, type ContextMenuAnchor, ContextMenuCellVerticalAlignment, type ContextMenuCommandProps, type ContextMenuContextValue, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, type ContextMenuItemProps, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, type ContextMenuTableRowProps, type DialogCustomizationProps, type DialogPartProps, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, type DocxEditorAuthorStyleProps, type DocxEditorChildren, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, type DocxEditorContentControlNamespace, DocxEditorContentControlWidget, type DocxEditorContentControlWidgetNamespace, type DocxEditorContentControlWidgetPartProps, type DocxEditorContentControlWidgetProps, type DocxEditorContentProps, DocxEditorContextMenu, type DocxEditorContextMenuNamespace, type DocxEditorContextMenuProps, DocxEditorDocumentOutline, type DocxEditorDocumentOutlineProps, DocxEditorEquation, DocxEditorExportDialog, type DocxEditorExportDialogProps, DocxEditorFontNotice, type DocxEditorFontNoticeProps, DocxEditorHeaderFooterChrome, type DocxEditorHeaderFooterChromeProps, DocxEditorHorizontalRuler, DocxEditorHyperLink, type DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopup, type DocxEditorImageAltTextPopupProps, DocxEditorImagePropertiesDialog, type DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialog, type DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoading, type DocxEditorLoadingComponent, type DocxEditorLoadingProps, DocxEditorLoadingSpinner, type DocxEditorLoadingSpinnerProps, DocxEditorMenu, type DocxEditorMenuNamespace, type DocxEditorMenuProps, type DocxEditorNamespace, DocxEditorNavigation, type DocxEditorNavigationNamespace, type DocxEditorNavigationProps, DocxEditorNotePreview, type DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialog, type DocxEditorNotePropertiesDialogProps, DocxEditorNotesChrome, type DocxEditorNotesChromeProps, DocxEditorNotesContextMenu, type DocxEditorNotesContextMenuProps, DocxEditorPageNumber, type DocxEditorPageNumberProps, DocxEditorPageSetupDialog, type DocxEditorPageSetupDialogProps, DocxEditorParagraphDialog, type DocxEditorParagraphDialogProps, type DocxEditorPopup, type DocxEditorPopups, DocxEditorPrintDialog, type DocxEditorPrintDialogProps, type DocxEditorProps, type DocxEditorRef, DocxEditorRoot, type DocxEditorRootListeners, type DocxEditorRootProps, type DocxEditorRulerProps, DocxEditorShell, DocxEditorTextFormFieldDialog, type DocxEditorTextFormFieldDialogProps, DocxEditorToolbar, type DocxEditorToolbarNamespace, type DocxEditorToolbarProps, DocxEditorVerticalRuler, DocxEditorViewport, type DocxEditorViewportProps, type DocxFontOrigin, type DocxFontsInput, type DocxFontsSource, type DocxSource, type EditorCaret, type EditorCommandState, type EditorMode, type EditorValueCommandState, type FontFamilyItemProps, type FontFamilyNamespace, type FontFamilyPartProps, type FontFamilyProps, type FontsInput, type HeaderFooterState, HorizontalRuler, type HorizontalRulerProps, type HyperLinkActionProps, type HyperLinkPartProps, type HyperLinkProps, type HyperlinkPopupAnchor, type HyperlinkPopupMode, type HyperlinkPopupState, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, type ImagePropertiesTriggerProps, ImageWrap, type IndentUpdate, LocaleProvider, type LocaleProviderProps, Logo, type MaybeRefOrGetter, type MenuActionProps, MenuBar, type MenuGroupProps, type MenuId, type MenuItemProps, type MenuPartComponent, type MenuProps, type MenuReportIssueProps, type MenuReviewersProps, type MenuRowProps, type MenuSeparatorProps, type MenuSubmenuProps, type MenuTableGridProps, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, type NavigationPartProps, type NavigationShiftInput, NavigationTab, type NavigationTabProps, type NavigationTab$1 as NavigationTabValue, NavigationTabs, NavigationTitle, NavigationToggle, type NormalizedImagePayload, type NotePropertiesState, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, type OutlineHeading$1 as OutlineHeading, type OutlineHeadingItem, PageIndicator, type PageIndicatorProps, PageNumberTranslationContext, type PageSetupDialogFields, type PageSetupUpdate, PaginatedDocxEditor, type PaginatedDocxEditorExpose, type PaginatedDocxEditorHandle, type PaginatedDocxEditorProps, PaginatedDocxEditorShell, type PaginatedDocxEditorShellProps, type ParagraphStyleItemProps, type ParagraphStyleNamespace, type ParagraphStyleOption, type ParagraphStylePartProps, type ParagraphStyleProps, type ProvideDocxEditorResult, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, type ReviewGutter, type ReviewGutterInput, ReviewRailContext, type ReviewRailRegistry, SEARCH_DEBOUNCE_MS, SEARCH_MATCH_LIMIT, type ScopedChromeAnchor, Slot, type SlotProps, type TableBorderColorNamespace, type TableBorderStyleNamespace, type TableBorderTargetNamespace, type TableBorderWidthNamespace, type TableCellFillNamespace, type TableChromeItemProps, type TableChromePartComponent, type TableChromePartProps, type TextFormFieldDialogFields, TitleBar, TitleBarRight, Toolbar, type ToolbarActionProps, type ToolbarAlignmentComponent, ToolbarButton, type ToolbarButtonProps, ToolbarContext, type ToolbarContextValue, ToolbarGroup, ToolbarImageProperties, type ToolbarPartComponent, type ToolbarPartProps, type ToolbarProps, type ToolbarReviewersProps, type ToolbarSeparatorProps, type ToolbarSlotPartComponent, type ToolbarSlotPartProps, type ToolbarTranslate, type UseContentControlResult, type UseContentControlWidgetResult, type UseDialogReturn, type UseDocumentOutlineResult, type UseDocumentSearchResult, type UseDocxSourceOptions, type UseDocxSourceResult, type UseFontFamilyResult, type UseHistoryGroupReturn, type UseHyperlinkPopupResult, type UseNavigationPaneOptions, type UseNavigationPaneResult, type UsePageSetupDialogReturn, type UsePageSetupReturn, type UseParagraphDialogReturn, type UseParagraphFormatReturn, type UseParagraphIndentReturn, type UseParagraphStyleResult, type UseTextFormFieldDialogReturn, type UseZoomResult, VERSION, VerticalRuler, type VerticalRulerProps, 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, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };