@docx-editor.dev/vue 2.30.0 → 2.32.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
@@ -4,14 +4,15 @@
4
4
  * @public
5
5
  */
6
6
  import * as vue from 'vue';
7
- import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, InjectionKey, MaybeRef, ComputedRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
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, 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, 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
- import { Editor, ViewScope, EditorCommand, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, DocumentHandle, EditorExecOptions, ExecResult, EditorScope, EditorSnapshot, EditorEvents, HighlightOptions, HighlightResult, HighlightRange, HighlightHit, PageSetup, IndentFormatting, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
14
- export { AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ScrollToAnchorOptions, TextMatch } from '@docx-editor.dev/core/contracts/editor';
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';
15
+ export { AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, DocumentOpenFailure, DocumentOpenFailureReason, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ScrollToAnchorOptions, TextMatch, Watermark, WatermarkState } from '@docx-editor.dev/core/contracts/editor';
15
16
  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';
@@ -33,6 +34,46 @@ type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
33
34
  */
34
35
  type DocxEditorChildren = VNode;
35
36
 
37
+ /** Props for a registered unsupported-content renderer. @public */
38
+ interface DocxEditorUnsupportedElementProps extends UnsupportedElementRule {
39
+ }
40
+ /**
41
+ * Register a renderer under DocxEditor or DocxEditor.Root.
42
+ * The first mounted matching declaration wins. Prop updates retain its priority.
43
+ * Omit match for a catch-all. Empty slot content retains the default placeholder.
44
+ * Layout uses points and only sizes content without an existing layout box.
45
+ * Components can remount when pagination or virtualization removes an occurrence.
46
+ * @public
47
+ */
48
+ declare const DocxEditorUnsupportedElement: vue.DefineComponent<vue.ExtractPropTypes<{
49
+ match: {
50
+ type: PropType<UnsupportedElementRule['match']>;
51
+ default: undefined;
52
+ };
53
+ layout: {
54
+ type: PropType<UnsupportedElementRule['layout']>;
55
+ default: undefined;
56
+ };
57
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
58
+ [key: string]: any;
59
+ }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
60
+ match: {
61
+ type: PropType<UnsupportedElementRule['match']>;
62
+ default: undefined;
63
+ };
64
+ layout: {
65
+ type: PropType<UnsupportedElementRule['layout']>;
66
+ default: undefined;
67
+ };
68
+ }>> & Readonly<{}>, {
69
+ match: ((element: UnsupportedElement) => boolean) | undefined;
70
+ layout: _docx_editor_dev_core_editor.UnsupportedElementLayout | undefined;
71
+ }, SlotsType<{
72
+ default: (props: {
73
+ element: UnsupportedElement;
74
+ }) => VNodeChild;
75
+ }>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
76
+
36
77
  /**
37
78
  * Shared presentation props for dialog parts. @public
38
79
  *
@@ -2074,6 +2115,48 @@ declare function definePopup<C extends Component | FunctionalComponent<never>>(c
2074
2115
  [K in keyof P]-?: K extends keyof (VNodeProps & AllowedComponentProps & ComponentCustomProps) ? {} extends Pick<P, K> ? (VNodeProps & AllowedComponentProps & ComponentCustomProps)[K] extends P[K] ? K : never : never : never;
2075
2116
  }[keyof P]> : C extends (props: infer P, ...args: never[]) => unknown ? P : never) => DocxEditorChildren;
2076
2117
 
2118
+ /**
2119
+ * Why a picture could not be inserted. Replace it through `popups.imageInsertError`, or pass
2120
+ * `false` there to show nothing.
2121
+ * @public
2122
+ */
2123
+ interface DocxEditorImageInsertErrorDialogProps {
2124
+ /** The translated reason the picture was refused. */
2125
+ message: string;
2126
+ /** Close the dialog. */
2127
+ onClose(): void;
2128
+ className?: string;
2129
+ style?: CSSProperties;
2130
+ /** Replaces the packaged header, message and button. */
2131
+ children?: DocxEditorChildren;
2132
+ }
2133
+ /** The packaged picture refusal: an editor dialog, never a page-blocking browser alert. @public */
2134
+ declare const DocxEditorImageInsertErrorDialog: vue.DefineComponent<vue.ExtractPropTypes<{
2135
+ message: {
2136
+ type: StringConstructor;
2137
+ required: true;
2138
+ };
2139
+ onClose: {
2140
+ type: PropType<() => void>;
2141
+ required: true;
2142
+ };
2143
+ className: StringConstructor;
2144
+ style: PropType<CSSProperties>;
2145
+ children: PropType<DocxEditorChildren>;
2146
+ }>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
2147
+ message: {
2148
+ type: StringConstructor;
2149
+ required: true;
2150
+ };
2151
+ onClose: {
2152
+ type: PropType<() => void>;
2153
+ required: true;
2154
+ };
2155
+ className: StringConstructor;
2156
+ style: PropType<CSSProperties>;
2157
+ children: PropType<DocxEditorChildren>;
2158
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2159
+
2077
2160
  /** Note hover preview content and viewport coordinates. @public */
2078
2161
  interface DocxEditorNotePreviewProps {
2079
2162
  scopeId: string;
@@ -2312,7 +2395,15 @@ interface PageSetupDialogFields {
2312
2395
  /** Page Setup draft state and actions. @public */
2313
2396
  interface UsePageSetupDialogReturn extends UseDialogReturn<PageSetupDialogFields> {
2314
2397
  }
2315
- /** Access the current Page Setup draft and actions. @public */
2398
+ /**
2399
+ * Access the current Page Setup draft and actions.
2400
+ *
2401
+ * Call it in a child of the dialog. It does not open the dialog. To open the dialog from your
2402
+ * own toolbar, keep its `open` state and render `DocxEditorPageSetupDialog` with `open` and
2403
+ * `@close`. Take the button's enabled state from `usePageSetup().isEnabled`.
2404
+ *
2405
+ * @public
2406
+ */
2316
2407
  declare function usePageSetupDialog(): UsePageSetupDialogReturn;
2317
2408
  /** @public */
2318
2409
  interface DocxEditorPageSetupDialogProps extends DialogCustomizationProps {
@@ -2408,7 +2499,15 @@ declare const DocxEditorPageSetupDialog: {
2408
2499
  interface UseParagraphDialogReturn extends UseDialogReturn<ParagraphDialogFields> {
2409
2500
  readonly mixed: Readonly<Ref<ParagraphDialogMixed>>;
2410
2501
  }
2411
- /** Access the current Paragraph draft and actions. @public */
2502
+ /**
2503
+ * Access the current Paragraph draft and actions.
2504
+ *
2505
+ * Call it in a child of the dialog. It does not open the dialog. To open the dialog from your
2506
+ * own toolbar, keep its `open` state and render `DocxEditorParagraphDialog` with `open` and
2507
+ * `@close`. Take the button's enabled state from `useParagraphFormat().isEnabled`.
2508
+ *
2509
+ * @public
2510
+ */
2412
2511
  declare function useParagraphDialog(): UseParagraphDialogReturn;
2413
2512
  /** Props for `DocxEditorParagraphDialog`. @public */
2414
2513
  interface DocxEditorParagraphDialogProps extends DialogCustomizationProps {
@@ -2500,102 +2599,518 @@ declare const DocxEditorParagraphDialog: {
2500
2599
  }>;
2501
2600
  };
2502
2601
 
2503
- /** Shared props for every part. @public */
2504
- interface HyperLinkPartProps {
2505
- className?: string;
2506
- asChild?: boolean;
2507
- hidden?: boolean;
2508
- children?: DocxEditorChildren;
2509
- }
2510
- /** Props for the action parts, which also take an icon. @public */
2511
- interface HyperLinkActionProps extends HyperLinkPartProps {
2512
- icon?: DocxEditorChildren;
2602
+ /** How a text watermark crosses the page. @public */
2603
+ type WatermarkDialogLayout = NonNullable<WatermarkState['layout']>;
2604
+ /** Which watermark the dialog writes. @public */
2605
+ type WatermarkDialogKind = 'none' | 'picture' | 'text';
2606
+ /** The Watermark dialog draft. Transparency is 0 to 1, color is `RRGGBB`. @public */
2607
+ interface WatermarkDialogFields {
2608
+ kind: WatermarkDialogKind;
2609
+ /** The picture bytes, or null when no picture is chosen. */
2610
+ imageData: Uint8Array | null;
2611
+ /** The chosen file name. Null for no picture or for the document's current picture. */
2612
+ imageName: string | null;
2613
+ /** A factor of the picture's natural size. Null is Auto. */
2614
+ scale: number | null;
2615
+ washout: boolean;
2616
+ text: string;
2617
+ fontFamily: string;
2618
+ /** Points. Null is Auto. */
2619
+ fontSizePt: number | null;
2620
+ bold: boolean;
2621
+ italic: boolean;
2622
+ transparency: number;
2623
+ color: string;
2624
+ layout: WatermarkDialogLayout;
2513
2625
  }
2514
- /** Props for `DocxEditor.HyperLink`. @public */
2515
- interface HyperLinkProps extends HyperLinkPartProps {
2516
- preset?: boolean;
2626
+ /** The text choices the dialog offers when the host passes no `presets`. @public */
2627
+ declare const DEFAULT_WATERMARK_PRESETS: readonly string[];
2628
+
2629
+ /** Named controls a host can replace with `DocxEditor.WatermarkDialog.Field`. @public */
2630
+ type WatermarkDialogFieldName = 'noWatermark' | 'pictureWatermark' | 'picture' | 'scale' | 'washout' | 'textWatermark' | 'preset' | 'text' | 'fontFamily' | 'fontSizePt' | 'bold' | 'italic' | 'transparency' | 'color' | 'layout';
2631
+ /** Watermark dialog draft and actions. @public */
2632
+ interface UseWatermarkDialogReturn extends UseDialogReturn<WatermarkDialogFields> {
2633
+ }
2634
+ /** Read the enclosing Watermark dialog draft. @public */
2635
+ declare function useWatermarkDialog(): UseWatermarkDialogReturn;
2636
+ /** Props for `DocxEditor.WatermarkDialog`. @public */
2637
+ interface DocxEditorWatermarkDialogProps extends DialogCustomizationProps {
2638
+ /** Whether the dialog is shown. The host owns this state. */
2639
+ open: boolean;
2640
+ /** Called on Cancel, Escape, overlay click, and after a successful Apply. */
2641
+ onClose: () => void;
2642
+ /** The text choices offered for a text watermark. Defaults to `DEFAULT_WATERMARK_PRESETS`. */
2643
+ presets?: readonly string[];
2517
2644
  }
2518
- declare const HyperLinkUrl: vue.DefineComponent<vue.ExtractPropTypes<{
2519
- className: {
2520
- type: StringConstructor;
2521
- default: undefined;
2522
- };
2523
- asChild: {
2524
- type: BooleanConstructor;
2525
- default: undefined;
2526
- };
2527
- hidden: {
2528
- type: BooleanConstructor;
2529
- default: undefined;
2530
- };
2531
- }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
2532
- className: {
2533
- type: StringConstructor;
2534
- default: undefined;
2535
- };
2536
- asChild: {
2537
- type: BooleanConstructor;
2538
- default: undefined;
2539
- };
2540
- hidden: {
2541
- type: BooleanConstructor;
2542
- default: undefined;
2543
- };
2544
- }>> & Readonly<{}>, {
2545
- className: string;
2546
- asChild: boolean;
2547
- hidden: boolean;
2548
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2549
- declare const HyperLinkCopy: vue.DefineComponent<vue.ExtractPropTypes<{
2550
- className: {
2551
- type: StringConstructor;
2552
- default: undefined;
2553
- };
2554
- asChild: {
2645
+ /**
2646
+ * Watermark dialog: no watermark, a picture, or text, with a live page preview and
2647
+ * replaceable controls and layout. Applies the whole form as one undoable `setWatermark`
2648
+ * command, and writes nothing when the form is unchanged.
2649
+ *
2650
+ * @public
2651
+ */
2652
+ declare const DocxEditorWatermarkDialog: {
2653
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
2654
+ children: PropType<DocxEditorChildren>;
2655
+ open: {
2656
+ type: BooleanConstructor;
2657
+ required: true;
2658
+ };
2659
+ onClose: {
2660
+ type: PropType<() => void>;
2661
+ required: true;
2662
+ };
2663
+ presets: {
2664
+ type: PropType<readonly string[]>;
2665
+ default: undefined;
2666
+ };
2667
+ className: {
2668
+ type: StringConstructor;
2669
+ default: undefined;
2670
+ };
2671
+ style: PropType<CSSProperties>;
2672
+ preset: {
2673
+ type: BooleanConstructor;
2674
+ default: boolean;
2675
+ };
2676
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
2677
+ presets: readonly string[];
2678
+ className: string;
2679
+ preset: boolean;
2680
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
2681
+ P: {};
2682
+ B: {};
2683
+ D: {};
2684
+ C: {};
2685
+ M: {};
2686
+ Defaults: {};
2687
+ }, Readonly<vue.ExtractPropTypes<{
2688
+ children: PropType<DocxEditorChildren>;
2689
+ open: {
2690
+ type: BooleanConstructor;
2691
+ required: true;
2692
+ };
2693
+ onClose: {
2694
+ type: PropType<() => void>;
2695
+ required: true;
2696
+ };
2697
+ presets: {
2698
+ type: PropType<readonly string[]>;
2699
+ default: undefined;
2700
+ };
2701
+ className: {
2702
+ type: StringConstructor;
2703
+ default: undefined;
2704
+ };
2705
+ style: PropType<CSSProperties>;
2706
+ preset: {
2707
+ type: BooleanConstructor;
2708
+ default: boolean;
2709
+ };
2710
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
2711
+ presets: readonly string[];
2712
+ className: string;
2713
+ preset: boolean;
2714
+ }>;
2715
+ __isFragment?: never;
2716
+ __isTeleport?: never;
2717
+ __isSuspense?: never;
2718
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
2719
+ children: PropType<DocxEditorChildren>;
2720
+ open: {
2555
2721
  type: BooleanConstructor;
2556
- default: undefined;
2722
+ required: true;
2557
2723
  };
2558
- hidden: {
2559
- type: BooleanConstructor;
2560
- default: undefined;
2724
+ onClose: {
2725
+ type: PropType<() => void>;
2726
+ required: true;
2561
2727
  };
2562
- icon: {
2563
- type: PropType<VNode>;
2728
+ presets: {
2729
+ type: PropType<readonly string[]>;
2564
2730
  default: undefined;
2565
2731
  };
2566
- }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
2567
2732
  className: {
2568
2733
  type: StringConstructor;
2569
2734
  default: undefined;
2570
2735
  };
2571
- asChild: {
2572
- type: BooleanConstructor;
2573
- default: undefined;
2574
- };
2575
- hidden: {
2736
+ style: PropType<CSSProperties>;
2737
+ preset: {
2576
2738
  type: BooleanConstructor;
2577
- default: undefined;
2578
- };
2579
- icon: {
2580
- type: PropType<VNode>;
2581
- default: undefined;
2739
+ default: boolean;
2582
2740
  };
2583
- }>> & Readonly<{}>, {
2741
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
2742
+ presets: readonly string[];
2584
2743
  className: string;
2585
- asChild: boolean;
2586
- hidden: boolean;
2587
- icon: VNode<vue.RendererNode, vue.RendererElement, {
2744
+ preset: boolean;
2745
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
2746
+ Field: vue.DefineComponent<DialogPartProps & {
2747
+ name: WatermarkDialogFieldName;
2748
+ }>;
2749
+ /** The page preview of the current draft. Decorative (`aria-hidden`). */
2750
+ Preview: vue.DefineComponent<DialogPartProps>;
2751
+ Apply: vue.DefineComponent<DialogPartProps>;
2752
+ Body: vue.DefineComponent<DialogPartProps>;
2753
+ Cancel: vue.DefineComponent<DialogPartProps>;
2754
+ Error: vue.DefineComponent<DialogPartProps>;
2755
+ Footer: vue.DefineComponent<DialogPartProps>;
2756
+ Header: vue.DefineComponent<DialogPartProps>;
2757
+ Reset: vue.DefineComponent<DialogPartProps>;
2758
+ Title: vue.DefineComponent<DialogPartProps>;
2759
+ };
2760
+
2761
+ /** The Bookmark dialog's draft. @public */
2762
+ interface BookmarkDialogFields {
2763
+ /** The name typed or picked from the list. */
2764
+ name: string;
2765
+ sortBy: BookmarkSortOrder;
2766
+ /** Whether hidden bookmarks (names starting with an underscore) are listed. */
2767
+ showHidden: boolean;
2768
+ }
2769
+ /** Bookmark dialog draft and actions. `apply` is Add. @public */
2770
+ interface UseBookmarkDialogReturn extends UseDialogReturn<BookmarkDialogFields> {
2771
+ /** The bookmarks the list shows, in the chosen order. */
2772
+ readonly rows: ComputedRef<readonly BookmarkSummary[]>;
2773
+ /** Whether Delete and Go To can act on the typed name. */
2774
+ readonly canDelete: ComputedRef<boolean>;
2775
+ readonly canGoTo: ComputedRef<boolean>;
2776
+ /**
2777
+ * How many other places carry the typed bookmark's name, which collaborators adding one name
2778
+ * offline can leave. 0 for a name with one bookmark, or no bookmark.
2779
+ */
2780
+ readonly duplicates: ComputedRef<number>;
2781
+ remove(): void;
2782
+ goTo(): void;
2783
+ /** Keep the first bookmark with the typed name and remove its copies. */
2784
+ keepFirst(): void;
2785
+ }
2786
+ /** Read the enclosing Bookmark dialog draft. @public */
2787
+ declare function useBookmarkDialog(): UseBookmarkDialogReturn;
2788
+ /** Props for `DocxEditor.BookmarkDialog`. @public */
2789
+ interface DocxEditorBookmarkDialogProps extends DialogCustomizationProps {
2790
+ /** Whether the dialog is shown. The host owns this state. */
2791
+ open: boolean;
2792
+ /** Called on Cancel, Escape, overlay click, and after a successful Add. */
2793
+ onClose: () => void;
2794
+ }
2795
+ /** The Bookmark dialog with replaceable controls and layout. @public */
2796
+ declare const DocxEditorBookmarkDialog: {
2797
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
2798
+ readonly children: PropType<DocxEditorChildren>;
2799
+ readonly open: {
2800
+ readonly type: BooleanConstructor;
2801
+ readonly required: true;
2802
+ };
2803
+ readonly onClose: {
2804
+ readonly type: PropType<() => void>;
2805
+ readonly required: true;
2806
+ };
2807
+ readonly className: {
2808
+ readonly type: StringConstructor;
2809
+ readonly default: undefined;
2810
+ };
2811
+ readonly style: PropType<CSSProperties>;
2812
+ readonly preset: {
2813
+ readonly type: BooleanConstructor;
2814
+ readonly default: true;
2815
+ };
2816
+ }>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2817
+ [key: string]: any;
2818
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
2819
+ readonly className: string;
2820
+ readonly preset: boolean;
2821
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
2822
+ P: {};
2823
+ B: {};
2824
+ D: {};
2825
+ C: {};
2826
+ M: {};
2827
+ Defaults: {};
2828
+ }, Readonly<vue.ExtractPropTypes<{
2829
+ readonly children: PropType<DocxEditorChildren>;
2830
+ readonly open: {
2831
+ readonly type: BooleanConstructor;
2832
+ readonly required: true;
2833
+ };
2834
+ readonly onClose: {
2835
+ readonly type: PropType<() => void>;
2836
+ readonly required: true;
2837
+ };
2838
+ readonly className: {
2839
+ readonly type: StringConstructor;
2840
+ readonly default: undefined;
2841
+ };
2842
+ readonly style: PropType<CSSProperties>;
2843
+ readonly preset: {
2844
+ readonly type: BooleanConstructor;
2845
+ readonly default: true;
2846
+ };
2847
+ }>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2588
2848
  [key: string]: any;
2849
+ }> | null, {}, {}, {}, {
2850
+ readonly className: string;
2851
+ readonly preset: boolean;
2589
2852
  }>;
2590
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2591
- declare const HyperLinkEdit: vue.DefineComponent<vue.ExtractPropTypes<{
2592
- className: {
2593
- type: StringConstructor;
2594
- default: undefined;
2853
+ __isFragment?: never;
2854
+ __isTeleport?: never;
2855
+ __isSuspense?: never;
2856
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
2857
+ readonly children: PropType<DocxEditorChildren>;
2858
+ readonly open: {
2859
+ readonly type: BooleanConstructor;
2860
+ readonly required: true;
2595
2861
  };
2596
- asChild: {
2597
- type: BooleanConstructor;
2598
- default: undefined;
2862
+ readonly onClose: {
2863
+ readonly type: PropType<() => void>;
2864
+ readonly required: true;
2865
+ };
2866
+ readonly className: {
2867
+ readonly type: StringConstructor;
2868
+ readonly default: undefined;
2869
+ };
2870
+ readonly style: PropType<CSSProperties>;
2871
+ readonly preset: {
2872
+ readonly type: BooleanConstructor;
2873
+ readonly default: true;
2874
+ };
2875
+ }>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2876
+ [key: string]: any;
2877
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
2878
+ readonly className: string;
2879
+ readonly preset: boolean;
2880
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
2881
+ Field: vue.DefineComponent<DialogPartProps & {
2882
+ name: "list" | "name" | "showHidden" | "sortBy";
2883
+ }>;
2884
+ Delete: vue.DefineComponent<DialogPartProps>;
2885
+ GoTo: vue.DefineComponent<DialogPartProps>;
2886
+ /** Shown while the typed name has copies: keep the first, remove the rest. */
2887
+ KeepFirst: vue.DefineComponent<DialogPartProps>;
2888
+ Apply: vue.DefineComponent<DialogPartProps>;
2889
+ Body: vue.DefineComponent<DialogPartProps>;
2890
+ Cancel: vue.DefineComponent<DialogPartProps>;
2891
+ Error: vue.DefineComponent<DialogPartProps>;
2892
+ Footer: vue.DefineComponent<DialogPartProps>;
2893
+ Header: vue.DefineComponent<DialogPartProps>;
2894
+ Reset: vue.DefineComponent<DialogPartProps>;
2895
+ Title: vue.DefineComponent<DialogPartProps>;
2896
+ };
2897
+
2898
+ /** The Split cells dialog's draft, as typed. @public */
2899
+ interface SplitCellDialogFields {
2900
+ /** The number of columns, as typed. */
2901
+ columns: string;
2902
+ /** The number of rows, as typed. */
2903
+ rows: string;
2904
+ }
2905
+ /** Split cells dialog draft and actions. `apply` is Split. @public */
2906
+ interface UseSplitCellDialogReturn extends UseDialogReturn<SplitCellDialogFields> {
2907
+ /** The most columns and rows the cell splits into, or null outside a cell that splits. */
2908
+ readonly limits: SplitCellLimits | null;
2909
+ }
2910
+ /** Props for `DocxEditor.SplitCellDialog`. @public */
2911
+ interface DocxEditorSplitCellDialogProps extends DialogCustomizationProps {
2912
+ /** Whether the dialog is shown. The host owns this state. */
2913
+ open: boolean;
2914
+ /** Called on Cancel, Escape, overlay click, and after a successful Split. */
2915
+ onClose: () => void;
2916
+ }
2917
+ /** Read the enclosing Split cells dialog draft. @public */
2918
+ declare function useSplitCellDialog(): UseSplitCellDialogReturn;
2919
+ /** The Split cells dialog with replaceable controls and layout. @public */
2920
+ declare const DocxEditorSplitCellDialog: {
2921
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
2922
+ readonly children: PropType<DocxEditorChildren>;
2923
+ readonly open: {
2924
+ readonly type: BooleanConstructor;
2925
+ readonly required: true;
2926
+ };
2927
+ readonly onClose: {
2928
+ readonly type: PropType<() => void>;
2929
+ readonly required: true;
2930
+ };
2931
+ readonly className: {
2932
+ readonly type: StringConstructor;
2933
+ readonly default: undefined;
2934
+ };
2935
+ readonly style: PropType<CSSProperties>;
2936
+ readonly preset: {
2937
+ readonly type: BooleanConstructor;
2938
+ readonly default: true;
2939
+ };
2940
+ }>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2941
+ [key: string]: any;
2942
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
2943
+ readonly className: string;
2944
+ readonly preset: boolean;
2945
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
2946
+ P: {};
2947
+ B: {};
2948
+ D: {};
2949
+ C: {};
2950
+ M: {};
2951
+ Defaults: {};
2952
+ }, Readonly<vue.ExtractPropTypes<{
2953
+ readonly children: PropType<DocxEditorChildren>;
2954
+ readonly open: {
2955
+ readonly type: BooleanConstructor;
2956
+ readonly required: true;
2957
+ };
2958
+ readonly onClose: {
2959
+ readonly type: PropType<() => void>;
2960
+ readonly required: true;
2961
+ };
2962
+ readonly className: {
2963
+ readonly type: StringConstructor;
2964
+ readonly default: undefined;
2965
+ };
2966
+ readonly style: PropType<CSSProperties>;
2967
+ readonly preset: {
2968
+ readonly type: BooleanConstructor;
2969
+ readonly default: true;
2970
+ };
2971
+ }>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2972
+ [key: string]: any;
2973
+ }> | null, {}, {}, {}, {
2974
+ readonly className: string;
2975
+ readonly preset: boolean;
2976
+ }>;
2977
+ __isFragment?: never;
2978
+ __isTeleport?: never;
2979
+ __isSuspense?: never;
2980
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
2981
+ readonly children: PropType<DocxEditorChildren>;
2982
+ readonly open: {
2983
+ readonly type: BooleanConstructor;
2984
+ readonly required: true;
2985
+ };
2986
+ readonly onClose: {
2987
+ readonly type: PropType<() => void>;
2988
+ readonly required: true;
2989
+ };
2990
+ readonly className: {
2991
+ readonly type: StringConstructor;
2992
+ readonly default: undefined;
2993
+ };
2994
+ readonly style: PropType<CSSProperties>;
2995
+ readonly preset: {
2996
+ readonly type: BooleanConstructor;
2997
+ readonly default: true;
2998
+ };
2999
+ }>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
3000
+ [key: string]: any;
3001
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
3002
+ readonly className: string;
3003
+ readonly preset: boolean;
3004
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
3005
+ Field: vue.DefineComponent<DialogPartProps & {
3006
+ name: "columns" | "rows";
3007
+ }>;
3008
+ Apply: vue.DefineComponent<DialogPartProps>;
3009
+ Body: vue.DefineComponent<DialogPartProps>;
3010
+ Cancel: vue.DefineComponent<DialogPartProps>;
3011
+ Error: vue.DefineComponent<DialogPartProps>;
3012
+ Footer: vue.DefineComponent<DialogPartProps>;
3013
+ Header: vue.DefineComponent<DialogPartProps>;
3014
+ Reset: vue.DefineComponent<DialogPartProps>;
3015
+ Title: vue.DefineComponent<DialogPartProps>;
3016
+ };
3017
+
3018
+ /** Shared props for every part. @public */
3019
+ interface HyperLinkPartProps {
3020
+ className?: string;
3021
+ asChild?: boolean;
3022
+ hidden?: boolean;
3023
+ children?: DocxEditorChildren;
3024
+ }
3025
+ /** Props for the action parts, which also take an icon. @public */
3026
+ interface HyperLinkActionProps extends HyperLinkPartProps {
3027
+ icon?: DocxEditorChildren;
3028
+ }
3029
+ /** Props for `DocxEditor.HyperLink`. @public */
3030
+ interface HyperLinkProps extends HyperLinkPartProps {
3031
+ preset?: boolean;
3032
+ }
3033
+ declare const HyperLinkUrl: vue.DefineComponent<vue.ExtractPropTypes<{
3034
+ className: {
3035
+ type: StringConstructor;
3036
+ default: undefined;
3037
+ };
3038
+ asChild: {
3039
+ type: BooleanConstructor;
3040
+ default: undefined;
3041
+ };
3042
+ hidden: {
3043
+ type: BooleanConstructor;
3044
+ default: undefined;
3045
+ };
3046
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
3047
+ className: {
3048
+ type: StringConstructor;
3049
+ default: undefined;
3050
+ };
3051
+ asChild: {
3052
+ type: BooleanConstructor;
3053
+ default: undefined;
3054
+ };
3055
+ hidden: {
3056
+ type: BooleanConstructor;
3057
+ default: undefined;
3058
+ };
3059
+ }>> & Readonly<{}>, {
3060
+ className: string;
3061
+ asChild: boolean;
3062
+ hidden: boolean;
3063
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
3064
+ declare const HyperLinkCopy: vue.DefineComponent<vue.ExtractPropTypes<{
3065
+ className: {
3066
+ type: StringConstructor;
3067
+ default: undefined;
3068
+ };
3069
+ asChild: {
3070
+ type: BooleanConstructor;
3071
+ default: undefined;
3072
+ };
3073
+ hidden: {
3074
+ type: BooleanConstructor;
3075
+ default: undefined;
3076
+ };
3077
+ icon: {
3078
+ type: PropType<VNode>;
3079
+ default: undefined;
3080
+ };
3081
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
3082
+ className: {
3083
+ type: StringConstructor;
3084
+ default: undefined;
3085
+ };
3086
+ asChild: {
3087
+ type: BooleanConstructor;
3088
+ default: undefined;
3089
+ };
3090
+ hidden: {
3091
+ type: BooleanConstructor;
3092
+ default: undefined;
3093
+ };
3094
+ icon: {
3095
+ type: PropType<VNode>;
3096
+ default: undefined;
3097
+ };
3098
+ }>> & Readonly<{}>, {
3099
+ className: string;
3100
+ asChild: boolean;
3101
+ hidden: boolean;
3102
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
3103
+ [key: string]: any;
3104
+ }>;
3105
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
3106
+ declare const HyperLinkEdit: vue.DefineComponent<vue.ExtractPropTypes<{
3107
+ className: {
3108
+ type: StringConstructor;
3109
+ default: undefined;
3110
+ };
3111
+ asChild: {
3112
+ type: BooleanConstructor;
3113
+ default: undefined;
2599
3114
  };
2600
3115
  hidden: {
2601
3116
  type: BooleanConstructor;
@@ -5045,8 +5560,8 @@ declare const ContextMenuInsertColumnRight: {
5045
5560
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
5046
5561
  docxRow: string;
5047
5562
  };
5048
- /** @public */
5049
- declare const ContextMenuDeleteTableRow: {
5563
+ /** Merge the selected cells into one cell. @public */
5564
+ declare const ContextMenuMergeCells: {
5050
5565
  new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
5051
5566
  icon: {
5052
5567
  type: PropType<VNode>;
@@ -5148,8 +5663,8 @@ declare const ContextMenuDeleteTableRow: {
5148
5663
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
5149
5664
  docxRow: string;
5150
5665
  };
5151
- /** @public */
5152
- declare const ContextMenuDeleteTableColumn: {
5666
+ /** Open the Split cells dialog for the cell at the selection. @public */
5667
+ declare const ContextMenuSplitCell: {
5153
5668
  new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
5154
5669
  icon: {
5155
5670
  type: PropType<VNode>;
@@ -5167,10 +5682,6 @@ declare const ContextMenuDeleteTableColumn: {
5167
5682
  type: BooleanConstructor;
5168
5683
  default: undefined;
5169
5684
  };
5170
- destructive: {
5171
- type: BooleanConstructor;
5172
- default: undefined;
5173
- };
5174
5685
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
5175
5686
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5176
5687
  [key: string]: any;
@@ -5178,7 +5689,6 @@ declare const ContextMenuDeleteTableColumn: {
5178
5689
  labelKey: string;
5179
5690
  className: string;
5180
5691
  hidden: boolean;
5181
- destructive: boolean;
5182
5692
  }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
5183
5693
  P: {};
5184
5694
  B: {};
@@ -5203,10 +5713,6 @@ declare const ContextMenuDeleteTableColumn: {
5203
5713
  type: BooleanConstructor;
5204
5714
  default: undefined;
5205
5715
  };
5206
- destructive: {
5207
- type: BooleanConstructor;
5208
- default: undefined;
5209
- };
5210
5716
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
5211
5717
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5212
5718
  [key: string]: any;
@@ -5214,7 +5720,6 @@ declare const ContextMenuDeleteTableColumn: {
5214
5720
  labelKey: string;
5215
5721
  className: string;
5216
5722
  hidden: boolean;
5217
- destructive: boolean;
5218
5723
  }>;
5219
5724
  __isFragment?: never;
5220
5725
  __isTeleport?: never;
@@ -5236,10 +5741,6 @@ declare const ContextMenuDeleteTableColumn: {
5236
5741
  type: BooleanConstructor;
5237
5742
  default: undefined;
5238
5743
  };
5239
- destructive: {
5240
- type: BooleanConstructor;
5241
- default: undefined;
5242
- };
5243
5744
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
5244
5745
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5245
5746
  [key: string]: any;
@@ -5247,12 +5748,11 @@ declare const ContextMenuDeleteTableColumn: {
5247
5748
  labelKey: string;
5248
5749
  className: string;
5249
5750
  hidden: boolean;
5250
- destructive: boolean;
5251
5751
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
5252
5752
  docxRow: string;
5253
5753
  };
5254
5754
  /** @public */
5255
- declare const ContextMenuDeleteTable: {
5755
+ declare const ContextMenuDeleteTableRow: {
5256
5756
  new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
5257
5757
  icon: {
5258
5758
  type: PropType<VNode>;
@@ -5355,21 +5855,7 @@ declare const ContextMenuDeleteTable: {
5355
5855
  docxRow: string;
5356
5856
  };
5357
5857
  /** @public */
5358
- declare const ContextMenuCellVerticalAlignment: vue.DefineComponent<vue.ExtractPropTypes<{
5359
- hidden: {
5360
- type: BooleanConstructor;
5361
- default: undefined;
5362
- };
5363
- }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
5364
- hidden: {
5365
- type: BooleanConstructor;
5366
- default: undefined;
5367
- };
5368
- }>> & Readonly<{}>, {
5369
- hidden: boolean;
5370
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
5371
- /** @public */
5372
- declare const ContextMenuRefreshToc: {
5858
+ declare const ContextMenuDeleteTableColumn: {
5373
5859
  new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
5374
5860
  icon: {
5375
5861
  type: PropType<VNode>;
@@ -5387,6 +5873,10 @@ declare const ContextMenuRefreshToc: {
5387
5873
  type: BooleanConstructor;
5388
5874
  default: undefined;
5389
5875
  };
5876
+ destructive: {
5877
+ type: BooleanConstructor;
5878
+ default: undefined;
5879
+ };
5390
5880
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
5391
5881
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5392
5882
  [key: string]: any;
@@ -5394,6 +5884,7 @@ declare const ContextMenuRefreshToc: {
5394
5884
  labelKey: string;
5395
5885
  className: string;
5396
5886
  hidden: boolean;
5887
+ destructive: boolean;
5397
5888
  }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
5398
5889
  P: {};
5399
5890
  B: {};
@@ -5418,6 +5909,10 @@ declare const ContextMenuRefreshToc: {
5418
5909
  type: BooleanConstructor;
5419
5910
  default: undefined;
5420
5911
  };
5912
+ destructive: {
5913
+ type: BooleanConstructor;
5914
+ default: undefined;
5915
+ };
5421
5916
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
5422
5917
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5423
5918
  [key: string]: any;
@@ -5425,6 +5920,7 @@ declare const ContextMenuRefreshToc: {
5425
5920
  labelKey: string;
5426
5921
  className: string;
5427
5922
  hidden: boolean;
5923
+ destructive: boolean;
5428
5924
  }>;
5429
5925
  __isFragment?: never;
5430
5926
  __isTeleport?: never;
@@ -5446,6 +5942,10 @@ declare const ContextMenuRefreshToc: {
5446
5942
  type: BooleanConstructor;
5447
5943
  default: undefined;
5448
5944
  };
5945
+ destructive: {
5946
+ type: BooleanConstructor;
5947
+ default: undefined;
5948
+ };
5449
5949
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
5450
5950
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5451
5951
  [key: string]: any;
@@ -5453,11 +5953,12 @@ declare const ContextMenuRefreshToc: {
5453
5953
  labelKey: string;
5454
5954
  className: string;
5455
5955
  hidden: boolean;
5956
+ destructive: boolean;
5456
5957
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
5457
5958
  docxRow: string;
5458
5959
  };
5459
5960
  /** @public */
5460
- declare const ContextMenuRefreshTocPageNumbers: {
5961
+ declare const ContextMenuDeleteTable: {
5461
5962
  new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
5462
5963
  icon: {
5463
5964
  type: PropType<VNode>;
@@ -5475,6 +5976,10 @@ declare const ContextMenuRefreshTocPageNumbers: {
5475
5976
  type: BooleanConstructor;
5476
5977
  default: undefined;
5477
5978
  };
5979
+ destructive: {
5980
+ type: BooleanConstructor;
5981
+ default: undefined;
5982
+ };
5478
5983
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
5479
5984
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5480
5985
  [key: string]: any;
@@ -5482,6 +5987,7 @@ declare const ContextMenuRefreshTocPageNumbers: {
5482
5987
  labelKey: string;
5483
5988
  className: string;
5484
5989
  hidden: boolean;
5990
+ destructive: boolean;
5485
5991
  }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
5486
5992
  P: {};
5487
5993
  B: {};
@@ -5506,6 +6012,10 @@ declare const ContextMenuRefreshTocPageNumbers: {
5506
6012
  type: BooleanConstructor;
5507
6013
  default: undefined;
5508
6014
  };
6015
+ destructive: {
6016
+ type: BooleanConstructor;
6017
+ default: undefined;
6018
+ };
5509
6019
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
5510
6020
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5511
6021
  [key: string]: any;
@@ -5513,6 +6023,7 @@ declare const ContextMenuRefreshTocPageNumbers: {
5513
6023
  labelKey: string;
5514
6024
  className: string;
5515
6025
  hidden: boolean;
6026
+ destructive: boolean;
5516
6027
  }>;
5517
6028
  __isFragment?: never;
5518
6029
  __isTeleport?: never;
@@ -5534,6 +6045,10 @@ declare const ContextMenuRefreshTocPageNumbers: {
5534
6045
  type: BooleanConstructor;
5535
6046
  default: undefined;
5536
6047
  };
6048
+ destructive: {
6049
+ type: BooleanConstructor;
6050
+ default: undefined;
6051
+ };
5537
6052
  }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
5538
6053
  icon: VNode<vue.RendererNode, vue.RendererElement, {
5539
6054
  [key: string]: any;
@@ -5541,35 +6056,226 @@ declare const ContextMenuRefreshTocPageNumbers: {
5541
6056
  labelKey: string;
5542
6057
  className: string;
5543
6058
  hidden: boolean;
6059
+ destructive: boolean;
5544
6060
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
5545
6061
  docxRow: string;
5546
6062
  };
5547
6063
  /** @public */
5548
- interface ContextMenuItemProps {
5549
- label: string;
5550
- icon?: DocxEditorChildren;
5551
- shortcut?: string;
5552
- disabled?: boolean;
5553
- disabledReason?: string;
5554
- active?: boolean;
5555
- onSelect?: () => void;
5556
- className?: string;
5557
- }
5558
- /** @public */
5559
- declare const ContextMenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
5560
- label: {
5561
- type: StringConstructor;
5562
- required: true;
5563
- };
5564
- icon: {
5565
- type: PropType<VNode>;
6064
+ declare const ContextMenuCellVerticalAlignment: vue.DefineComponent<vue.ExtractPropTypes<{
6065
+ hidden: {
6066
+ type: BooleanConstructor;
5566
6067
  default: undefined;
5567
6068
  };
5568
- shortcut: {
5569
- type: StringConstructor;
6069
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
6070
+ hidden: {
6071
+ type: BooleanConstructor;
5570
6072
  default: undefined;
5571
6073
  };
5572
- disabled: {
6074
+ }>> & Readonly<{}>, {
6075
+ hidden: boolean;
6076
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6077
+ /** @public */
6078
+ declare const ContextMenuRefreshToc: {
6079
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
6080
+ icon: {
6081
+ type: PropType<VNode>;
6082
+ default: undefined;
6083
+ };
6084
+ labelKey: {
6085
+ type: StringConstructor;
6086
+ default: undefined;
6087
+ };
6088
+ className: {
6089
+ type: StringConstructor;
6090
+ default: undefined;
6091
+ };
6092
+ hidden: {
6093
+ type: BooleanConstructor;
6094
+ default: undefined;
6095
+ };
6096
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
6097
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
6098
+ [key: string]: any;
6099
+ }>;
6100
+ labelKey: string;
6101
+ className: string;
6102
+ hidden: boolean;
6103
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
6104
+ P: {};
6105
+ B: {};
6106
+ D: {};
6107
+ C: {};
6108
+ M: {};
6109
+ Defaults: {};
6110
+ }, Readonly<vue.ExtractPropTypes<{
6111
+ icon: {
6112
+ type: PropType<VNode>;
6113
+ default: undefined;
6114
+ };
6115
+ labelKey: {
6116
+ type: StringConstructor;
6117
+ default: undefined;
6118
+ };
6119
+ className: {
6120
+ type: StringConstructor;
6121
+ default: undefined;
6122
+ };
6123
+ hidden: {
6124
+ type: BooleanConstructor;
6125
+ default: undefined;
6126
+ };
6127
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
6128
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
6129
+ [key: string]: any;
6130
+ }>;
6131
+ labelKey: string;
6132
+ className: string;
6133
+ hidden: boolean;
6134
+ }>;
6135
+ __isFragment?: never;
6136
+ __isTeleport?: never;
6137
+ __isSuspense?: never;
6138
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
6139
+ icon: {
6140
+ type: PropType<VNode>;
6141
+ default: undefined;
6142
+ };
6143
+ labelKey: {
6144
+ type: StringConstructor;
6145
+ default: undefined;
6146
+ };
6147
+ className: {
6148
+ type: StringConstructor;
6149
+ default: undefined;
6150
+ };
6151
+ hidden: {
6152
+ type: BooleanConstructor;
6153
+ default: undefined;
6154
+ };
6155
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
6156
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
6157
+ [key: string]: any;
6158
+ }>;
6159
+ labelKey: string;
6160
+ className: string;
6161
+ hidden: boolean;
6162
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
6163
+ docxRow: string;
6164
+ };
6165
+ /** @public */
6166
+ declare const ContextMenuRefreshTocPageNumbers: {
6167
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
6168
+ icon: {
6169
+ type: PropType<VNode>;
6170
+ default: undefined;
6171
+ };
6172
+ labelKey: {
6173
+ type: StringConstructor;
6174
+ default: undefined;
6175
+ };
6176
+ className: {
6177
+ type: StringConstructor;
6178
+ default: undefined;
6179
+ };
6180
+ hidden: {
6181
+ type: BooleanConstructor;
6182
+ default: undefined;
6183
+ };
6184
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
6185
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
6186
+ [key: string]: any;
6187
+ }>;
6188
+ labelKey: string;
6189
+ className: string;
6190
+ hidden: boolean;
6191
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
6192
+ P: {};
6193
+ B: {};
6194
+ D: {};
6195
+ C: {};
6196
+ M: {};
6197
+ Defaults: {};
6198
+ }, Readonly<vue.ExtractPropTypes<{
6199
+ icon: {
6200
+ type: PropType<VNode>;
6201
+ default: undefined;
6202
+ };
6203
+ labelKey: {
6204
+ type: StringConstructor;
6205
+ default: undefined;
6206
+ };
6207
+ className: {
6208
+ type: StringConstructor;
6209
+ default: undefined;
6210
+ };
6211
+ hidden: {
6212
+ type: BooleanConstructor;
6213
+ default: undefined;
6214
+ };
6215
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
6216
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
6217
+ [key: string]: any;
6218
+ }>;
6219
+ labelKey: string;
6220
+ className: string;
6221
+ hidden: boolean;
6222
+ }>;
6223
+ __isFragment?: never;
6224
+ __isTeleport?: never;
6225
+ __isSuspense?: never;
6226
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
6227
+ icon: {
6228
+ type: PropType<VNode>;
6229
+ default: undefined;
6230
+ };
6231
+ labelKey: {
6232
+ type: StringConstructor;
6233
+ default: undefined;
6234
+ };
6235
+ className: {
6236
+ type: StringConstructor;
6237
+ default: undefined;
6238
+ };
6239
+ hidden: {
6240
+ type: BooleanConstructor;
6241
+ default: undefined;
6242
+ };
6243
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
6244
+ icon: VNode<vue.RendererNode, vue.RendererElement, {
6245
+ [key: string]: any;
6246
+ }>;
6247
+ labelKey: string;
6248
+ className: string;
6249
+ hidden: boolean;
6250
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
6251
+ docxRow: string;
6252
+ };
6253
+ /** @public */
6254
+ interface ContextMenuItemProps {
6255
+ label: string;
6256
+ icon?: DocxEditorChildren;
6257
+ shortcut?: string;
6258
+ disabled?: boolean;
6259
+ disabledReason?: string;
6260
+ active?: boolean;
6261
+ onSelect?: () => void;
6262
+ className?: string;
6263
+ }
6264
+ /** @public */
6265
+ declare const ContextMenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
6266
+ label: {
6267
+ type: StringConstructor;
6268
+ required: true;
6269
+ };
6270
+ icon: {
6271
+ type: PropType<VNode>;
6272
+ default: undefined;
6273
+ };
6274
+ shortcut: {
6275
+ type: StringConstructor;
6276
+ default: undefined;
6277
+ };
6278
+ disabled: {
5573
6279
  type: BooleanConstructor;
5574
6280
  default: undefined;
5575
6281
  };
@@ -5710,6 +6416,8 @@ interface DocxEditorContextMenuNamespace {
5710
6416
  readonly InsertRowBelow: typeof ContextMenuInsertRowBelow;
5711
6417
  readonly InsertColumnLeft: typeof ContextMenuInsertColumnLeft;
5712
6418
  readonly InsertColumnRight: typeof ContextMenuInsertColumnRight;
6419
+ readonly MergeCells: typeof ContextMenuMergeCells;
6420
+ readonly SplitCell: typeof ContextMenuSplitCell;
5713
6421
  readonly DeleteTableRow: typeof ContextMenuDeleteTableRow;
5714
6422
  readonly DeleteTableColumn: typeof ContextMenuDeleteTableColumn;
5715
6423
  readonly DeleteTable: typeof ContextMenuDeleteTable;
@@ -5765,6 +6473,8 @@ interface DocxEditorPopups {
5765
6473
  */
5766
6474
  contentControlPicture?: DocxEditorPopup<DocxEditorContentControlWidgetProps>;
5767
6475
  invalidTextFormField?: DocxEditorPopup<DocxEditorInvalidTextFormFieldDialogProps>;
6476
+ /** Why a chosen or pasted picture could not be inserted. False shows nothing. */
6477
+ imageInsertError?: DocxEditorPopup<DocxEditorImageInsertErrorDialogProps>;
5768
6478
  imageProperties?: DocxEditorPopup<DocxEditorImagePropertiesDialogProps>;
5769
6479
  imageAltText?: DocxEditorPopup<DocxEditorImageAltTextPopupProps>;
5770
6480
  noteProperties?: DocxEditorPopup<DocxEditorNotePropertiesDialogProps>;
@@ -5772,6 +6482,12 @@ interface DocxEditorPopups {
5772
6482
  notePreview?: DocxEditorPopup<DocxEditorNotePreviewProps>;
5773
6483
  pageSetup?: DocxEditorPopup<DocxEditorPageSetupDialogProps>;
5774
6484
  paragraph?: DocxEditorPopup<DocxEditorParagraphDialogProps>;
6485
+ /** The Watermark dialog the Insert menu opens. Pass `presets` here to change its text choices. */
6486
+ watermark?: DocxEditorPopup<DocxEditorWatermarkDialogProps>;
6487
+ /** The Bookmark dialog the Insert menu and Ctrl/Cmd+Shift+F5 open. */
6488
+ bookmark?: DocxEditorPopup<DocxEditorBookmarkDialogProps>;
6489
+ /** The Split cells dialog the table context menu and toolbar open. */
6490
+ splitCell?: DocxEditorPopup<DocxEditorSplitCellDialogProps>;
5775
6491
  textFormField?: DocxEditorPopup<DocxEditorTextFormFieldDialogProps>;
5776
6492
  hyperlink?: DocxEditorPopup<HyperLinkProps>;
5777
6493
  contentControl?: DocxEditorPopup<ContentControlProps>;
@@ -5783,6 +6499,7 @@ interface DocxEditorPopups {
5783
6499
  interface DocxEditorRootProps {
5784
6500
  popups?: DocxEditorPopups;
5785
6501
  document?: DocumentSource;
6502
+ /** Font sources. A new value replaces them in place (`setFonts`), keeping edits and history. */
5786
6503
  fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
5787
6504
  /** Explicit shaping byte ceiling; a changed maxFontBytes value remounts. */
5788
6505
  fontShaping?: FontShapingOptions;
@@ -5845,9 +6562,41 @@ interface DocxEditorRootProps {
5845
6562
  declare function useDocxEditor(): ShallowRef<DocxEditorInstance | null>;
5846
6563
  /** @public */
5847
6564
  interface ReviewRailRegistry {
6565
+ /**
6566
+ * Review columns registered through `register`: the packaged rail, and any column that
6567
+ * serves comment drafts. The Add comment controls in the toolbar and the context menu
6568
+ * appear only while this is above zero.
6569
+ */
5848
6570
  readonly mounted: number;
6571
+ /**
6572
+ * Register a review column that serves comment drafts. Also reserves the review gutter.
6573
+ * Call it on mount, together with `registerCommentDraft`. Returns the unregister function.
6574
+ */
5849
6575
  readonly register: () => () => void;
6576
+ /**
6577
+ * Claims registered through `reserveGutter`: columns that need the review gutter but
6578
+ * serve no comment draft. The viewport reserves the gutter while `mounted + gutters` is
6579
+ * above zero.
6580
+ */
6581
+ readonly gutters?: number;
6582
+ /** Reserve the review gutter without showing comment controls. Returns the release. */
6583
+ readonly reserveGutter?: () => () => void;
6584
+ /**
6585
+ * Receive the Add comment requests. The handler takes no arguments: it reads the
6586
+ * selection's position with `getSelectionPlacement`, pins the selection with
6587
+ * `retainSelection`, and opens the pane. Release the pin with `releaseSelection` when the
6588
+ * draft closes or is cancelled. The most recently registered handler receives each request. Do not register
6589
+ * while the column cannot open a draft, such as in viewing mode: a request counts as
6590
+ * served once a handler runs. While a handler is registered, the `review.addComment`
6591
+ * control is enabled. Returns the unregister function.
6592
+ */
5850
6593
  readonly registerCommentDraft: (handler: () => void) => () => void;
6594
+ /**
6595
+ * Send an Add comment request through the `review.addComment` control. The most recent
6596
+ * registration receives it: a handler registered here, or one registered with
6597
+ * `useCommentDraftRequest`. Returns `true` when a handler ran, even if it then opened
6598
+ * nothing, and `false` when the control is disabled.
6599
+ */
5851
6600
  readonly requestCommentDraft: () => boolean;
5852
6601
  }
5853
6602
  /** @public */
@@ -6108,10 +6857,123 @@ declare const DocxEditorContent: vue.DefineComponent<vue.ExtractPropTypes<{
6108
6857
  className: string;
6109
6858
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6110
6859
 
6860
+ /** Props for `DocxEditorWindow`. @public */
6861
+ interface DocxEditorWindowProps {
6862
+ /** Render the default slot in a pop-out window. While `false`, it renders in place. */
6863
+ open: boolean;
6864
+ /** A same-origin page to open. Defaults to `about:blank`. */
6865
+ url?: string;
6866
+ /**
6867
+ * The window name. Defaults to `docx-editor`. Two `DocxEditorWindow` components with the
6868
+ * same name share one browser window, so give each editor its own name.
6869
+ */
6870
+ name?: string;
6871
+ /** The `window.open` features. Defaults to `popup,width=1000,height=900`. */
6872
+ features?: string;
6873
+ /** The pop-out's title. */
6874
+ title?: string;
6875
+ /** Copy this page's stylesheets into the window, and keep copying new ones. Default `true`. */
6876
+ styles?: boolean | ((from: Document, to: Document) => () => void);
6877
+ /** The pop-out went away (the user closed it, or the browser blocked it). The `close` event. */
6878
+ onClose?: () => void;
6879
+ /** The editor panel: toolbar, viewport and content, or any part of them. */
6880
+ children?: DocxEditorChildren;
6881
+ }
6882
+ /**
6883
+ * Render the editor panel in its own browser window while `open` is `true`.
6884
+ *
6885
+ * Place it inside `DocxEditorRoot` around the parts to pop out. The root stays in this
6886
+ * window, so the editor moves into the pop-out and back with its undo history, selection and
6887
+ * collaboration session. The window gets this page's stylesheets. When the user closes it,
6888
+ * the panel comes back and the component emits `update:open` with `false` and `close`.
6889
+ *
6890
+ * The panel remounts on each move, which is what moves the editor; it is never retargeted.
6891
+ *
6892
+ * @example
6893
+ * ```vue
6894
+ * <DocxEditorRoot :document="bytes">
6895
+ * <button @click="popped = !popped">Pop out</button>
6896
+ * <DocxEditorWindow v-model:open="popped">
6897
+ * <DocxEditorToolbar />
6898
+ * <DocxEditorViewport>
6899
+ * <DocxEditorContent />
6900
+ * </DocxEditorViewport>
6901
+ * </DocxEditorWindow>
6902
+ * </DocxEditorRoot>
6903
+ * ```
6904
+ *
6905
+ * @public
6906
+ */
6907
+ declare const DocxEditorWindow: vue.DefineComponent<vue.ExtractPropTypes<{
6908
+ open: {
6909
+ type: BooleanConstructor;
6910
+ required: true;
6911
+ };
6912
+ url: {
6913
+ type: StringConstructor;
6914
+ default: undefined;
6915
+ };
6916
+ name: {
6917
+ type: StringConstructor;
6918
+ default: undefined;
6919
+ };
6920
+ features: {
6921
+ type: StringConstructor;
6922
+ default: undefined;
6923
+ };
6924
+ title: {
6925
+ type: StringConstructor;
6926
+ default: undefined;
6927
+ };
6928
+ styles: {
6929
+ type: PropType<DocxEditorWindowProps['styles']>;
6930
+ default: undefined;
6931
+ };
6932
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
6933
+ [key: string]: any;
6934
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
6935
+ 'update:open': (_open: boolean) => true;
6936
+ close: () => true;
6937
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
6938
+ open: {
6939
+ type: BooleanConstructor;
6940
+ required: true;
6941
+ };
6942
+ url: {
6943
+ type: StringConstructor;
6944
+ default: undefined;
6945
+ };
6946
+ name: {
6947
+ type: StringConstructor;
6948
+ default: undefined;
6949
+ };
6950
+ features: {
6951
+ type: StringConstructor;
6952
+ default: undefined;
6953
+ };
6954
+ title: {
6955
+ type: StringConstructor;
6956
+ default: undefined;
6957
+ };
6958
+ styles: {
6959
+ type: PropType<DocxEditorWindowProps['styles']>;
6960
+ default: undefined;
6961
+ };
6962
+ }>> & Readonly<{
6963
+ onClose?: (() => any) | undefined;
6964
+ "onUpdate:open"?: ((_open: boolean) => any) | undefined;
6965
+ }>, {
6966
+ url: string;
6967
+ name: string;
6968
+ features: string;
6969
+ title: string;
6970
+ styles: boolean | ((from: Document, to: Document) => () => void) | undefined;
6971
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6972
+
6111
6973
  /**
6112
6974
  * Props for `DocxEditor.Loading`. Two slots replace parts of the packaged screen: `indicator`
6113
- * replaces only the spinner and, with `overlay`, moves onto the document's first page while a
6114
- * large document lays out its remaining pages; `default` replaces the whole first screen.
6975
+ * replaces only the spinner and, with `overlay`, moves below the laid-out pages while a large
6976
+ * document lays out its remaining pages; `default` replaces the whole first screen.
6115
6977
  *
6116
6978
  * ```vue
6117
6979
  * <DocxEditor.Loading overlay>
@@ -6657,9 +7519,7 @@ declare const ToolbarAddComment: vue.DefineComponent<vue.ExtractPropTypes<{
6657
7519
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6658
7520
 
6659
7521
  /** @public */
6660
- declare const ImageInsertProvider: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
6661
- [key: string]: any;
6662
- }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
7522
+ declare const ImageInsertProvider: vue.DefineComponent<{}, () => (DocxEditorChildren | null)[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6663
7523
  /** @public */
6664
7524
  declare const ImageInsertTrigger: vue.DefineComponent<vue.ExtractPropTypes<{
6665
7525
  className: {
@@ -7248,10 +8108,199 @@ declare const ToolbarReviewers: {
7248
8108
  type: PropType<DocxEditorChildren>;
7249
8109
  default: undefined;
7250
8110
  };
7251
- }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
8111
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
8112
+ className: string;
8113
+ hidden: boolean;
8114
+ icon: DocxEditorChildren;
8115
+ }>;
8116
+ __isFragment?: never;
8117
+ __isTeleport?: never;
8118
+ __isSuspense?: never;
8119
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
8120
+ className: {
8121
+ type: StringConstructor;
8122
+ default: undefined;
8123
+ };
8124
+ hidden: {
8125
+ type: BooleanConstructor;
8126
+ default: undefined;
8127
+ };
8128
+ icon: {
8129
+ type: PropType<DocxEditorChildren>;
8130
+ default: undefined;
8131
+ };
8132
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
8133
+ className: string;
8134
+ hidden: boolean;
8135
+ icon: DocxEditorChildren;
8136
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
8137
+ docxSlot: 'review.authors';
8138
+ };
8139
+
8140
+ /** @public */
8141
+ interface DocxEditorToolbarProps {
8142
+ className?: string;
8143
+ t?: ToolbarTranslate;
8144
+ onSave?: () => void;
8145
+ preset?: boolean;
8146
+ overflow?: boolean;
8147
+ children?: DocxEditorChildren;
8148
+ }
8149
+ /** @public */
8150
+ interface DocxEditorToolbarNamespace {
8151
+ (props: DocxEditorToolbarProps): VNode;
8152
+ readonly Button: typeof ToolbarButton$1;
8153
+ readonly Action: typeof ToolbarAction;
8154
+ readonly Separator: typeof ToolbarSeparator;
8155
+ /**
8156
+ * A group of the preset bar: host content that is measured and collapses into the "⋯"
8157
+ * panel, or, with a built-in id, controls added to that group or the group hidden.
8158
+ */
8159
+ readonly Group: typeof ToolbarHostGroup;
8160
+ /** Replaces one built-in slot with arbitrary content, in the slot's place. */
8161
+ readonly Slot: typeof ToolbarSlot;
8162
+ /** Opens a comment draft on the selection in the review rail. */
8163
+ readonly AddComment: typeof ToolbarAddComment;
8164
+ readonly Undo: ToolbarPartComponent;
8165
+ readonly Redo: ToolbarPartComponent;
8166
+ readonly Bold: ToolbarPartComponent;
8167
+ readonly Italic: ToolbarPartComponent;
8168
+ readonly Underline: ToolbarPartComponent;
8169
+ readonly Strike: ToolbarPartComponent;
8170
+ readonly Link: ToolbarPartComponent;
8171
+ readonly ClearFormatting: ToolbarPartComponent;
8172
+ readonly Superscript: ToolbarPartComponent;
8173
+ readonly Subscript: ToolbarPartComponent;
8174
+ readonly Alignment: ToolbarAlignmentComponent;
8175
+ readonly AlignLeft: ToolbarPartComponent;
8176
+ readonly AlignCenter: ToolbarPartComponent;
8177
+ readonly AlignRight: ToolbarPartComponent;
8178
+ readonly AlignJustify: ToolbarPartComponent;
8179
+ readonly LeftToRight: ToolbarPartComponent;
8180
+ readonly RightToLeft: ToolbarPartComponent;
8181
+ readonly LineSpacing: ToolbarSlotPartComponent;
8182
+ readonly BulletList: ToolbarPartComponent;
8183
+ readonly NumberedList: ToolbarPartComponent;
8184
+ readonly Outdent: ToolbarPartComponent;
8185
+ readonly Indent: ToolbarPartComponent;
8186
+ readonly ImageInsert: ToolbarPartComponent;
8187
+ readonly ImageWrap: ImageWrapPartComponent;
8188
+ readonly ImageAltText: ImageAltTextPartComponent;
8189
+ readonly ImageProperties: ToolbarPartComponent;
8190
+ readonly TableInsert: ToolbarPartComponent;
8191
+ readonly TableBorderTarget: TableBorderTargetNamespace;
8192
+ readonly TableBorderColor: TableBorderColorNamespace;
8193
+ readonly TableBorderStyle: TableBorderStyleNamespace;
8194
+ readonly TableBorderWidth: TableBorderWidthNamespace;
8195
+ readonly TableCellFill: TableCellFillNamespace;
8196
+ /** Merge the selected cells. */
8197
+ readonly TableMergeCells: ToolbarPartComponent;
8198
+ /** Open the Split cells dialog. */
8199
+ readonly TableSplitCell: ToolbarPartComponent;
8200
+ readonly Comments: ToolbarPartComponent;
8201
+ readonly FontFamily: typeof FontFamily;
8202
+ readonly FontSize: ToolbarSlotPartComponent;
8203
+ readonly FontColor: ToolbarColorSplitComponent;
8204
+ readonly Highlight: ToolbarColorSplitComponent;
8205
+ readonly Zoom: ToolbarSlotPartComponent;
8206
+ readonly StylePicker: typeof ParagraphStyle;
8207
+ readonly EditingMode: ToolbarSlotPartComponent;
8208
+ readonly Reviewers: typeof ToolbarReviewers;
8209
+ readonly Save: ToolbarSlotPartComponent;
8210
+ readonly ContentControlShowAll: ToolbarPartComponent;
8211
+ readonly ContentControlFormFill: ToolbarPartComponent;
8212
+ readonly ContentControlInspector: ToolbarPartComponent;
8213
+ readonly ContentControlRemove: ToolbarPartComponent;
8214
+ }
8215
+ /** @public */
8216
+ declare const DocxEditorToolbar: DocxEditorToolbarNamespace;
8217
+
8218
+ /** Insert › Watermark, so a host can hide it or place it elsewhere by name. @public */
8219
+ declare const MenuWatermark: {
8220
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
8221
+ className: {
8222
+ type: StringConstructor;
8223
+ default: undefined;
8224
+ };
8225
+ hidden: {
8226
+ type: BooleanConstructor;
8227
+ default: undefined;
8228
+ };
8229
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
8230
+ className: string;
8231
+ hidden: boolean;
8232
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
8233
+ P: {};
8234
+ B: {};
8235
+ D: {};
8236
+ C: {};
8237
+ M: {};
8238
+ Defaults: {};
8239
+ }, Readonly<vue.ExtractPropTypes<{
8240
+ className: {
8241
+ type: StringConstructor;
8242
+ default: undefined;
8243
+ };
8244
+ hidden: {
8245
+ type: BooleanConstructor;
8246
+ default: undefined;
8247
+ };
8248
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
8249
+ className: string;
8250
+ hidden: boolean;
8251
+ }>;
8252
+ __isFragment?: never;
8253
+ __isTeleport?: never;
8254
+ __isSuspense?: never;
8255
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
8256
+ className: {
8257
+ type: StringConstructor;
8258
+ default: undefined;
8259
+ };
8260
+ hidden: {
8261
+ type: BooleanConstructor;
8262
+ default: undefined;
8263
+ };
8264
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
8265
+ className: string;
8266
+ hidden: boolean;
8267
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
8268
+ docxSlot: 'insert.watermark';
8269
+ };
8270
+
8271
+ /** Insert › Bookmark, so a host can hide it or place it elsewhere by name. @public */
8272
+ declare const MenuBookmark: {
8273
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
8274
+ className: {
8275
+ type: StringConstructor;
8276
+ default: undefined;
8277
+ };
8278
+ hidden: {
8279
+ type: BooleanConstructor;
8280
+ default: undefined;
8281
+ };
8282
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
8283
+ className: string;
8284
+ hidden: boolean;
8285
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
8286
+ P: {};
8287
+ B: {};
8288
+ D: {};
8289
+ C: {};
8290
+ M: {};
8291
+ Defaults: {};
8292
+ }, Readonly<vue.ExtractPropTypes<{
8293
+ className: {
8294
+ type: StringConstructor;
8295
+ default: undefined;
8296
+ };
8297
+ hidden: {
8298
+ type: BooleanConstructor;
8299
+ default: undefined;
8300
+ };
8301
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, {
7252
8302
  className: string;
7253
8303
  hidden: boolean;
7254
- icon: DocxEditorChildren;
7255
8304
  }>;
7256
8305
  __isFragment?: never;
7257
8306
  __isTeleport?: never;
@@ -7265,92 +8314,13 @@ declare const ToolbarReviewers: {
7265
8314
  type: BooleanConstructor;
7266
8315
  default: undefined;
7267
8316
  };
7268
- icon: {
7269
- type: PropType<DocxEditorChildren>;
7270
- default: undefined;
7271
- };
7272
- }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
8317
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
7273
8318
  className: string;
7274
8319
  hidden: boolean;
7275
- icon: DocxEditorChildren;
7276
8320
  }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
7277
- docxSlot: 'review.authors';
8321
+ docxSlot: 'insert.bookmark';
7278
8322
  };
7279
8323
 
7280
- /** @public */
7281
- interface DocxEditorToolbarProps {
7282
- className?: string;
7283
- t?: ToolbarTranslate;
7284
- onSave?: () => void;
7285
- preset?: boolean;
7286
- overflow?: boolean;
7287
- children?: DocxEditorChildren;
7288
- }
7289
- /** @public */
7290
- interface DocxEditorToolbarNamespace {
7291
- (props: DocxEditorToolbarProps): VNode;
7292
- readonly Button: typeof ToolbarButton$1;
7293
- readonly Action: typeof ToolbarAction;
7294
- readonly Separator: typeof ToolbarSeparator;
7295
- /**
7296
- * A group of the preset bar: host content that is measured and collapses into the "⋯"
7297
- * panel, or, with a built-in id, controls added to that group or the group hidden.
7298
- */
7299
- readonly Group: typeof ToolbarHostGroup;
7300
- /** Replaces one built-in slot with arbitrary content, in the slot's place. */
7301
- readonly Slot: typeof ToolbarSlot;
7302
- /** Opens a comment draft on the selection in the review rail. */
7303
- readonly AddComment: typeof ToolbarAddComment;
7304
- readonly Undo: ToolbarPartComponent;
7305
- readonly Redo: ToolbarPartComponent;
7306
- readonly Bold: ToolbarPartComponent;
7307
- readonly Italic: ToolbarPartComponent;
7308
- readonly Underline: ToolbarPartComponent;
7309
- readonly Strike: ToolbarPartComponent;
7310
- readonly Link: ToolbarPartComponent;
7311
- readonly ClearFormatting: ToolbarPartComponent;
7312
- readonly Superscript: ToolbarPartComponent;
7313
- readonly Subscript: ToolbarPartComponent;
7314
- readonly Alignment: ToolbarAlignmentComponent;
7315
- readonly AlignLeft: ToolbarPartComponent;
7316
- readonly AlignCenter: ToolbarPartComponent;
7317
- readonly AlignRight: ToolbarPartComponent;
7318
- readonly AlignJustify: ToolbarPartComponent;
7319
- readonly LeftToRight: ToolbarPartComponent;
7320
- readonly RightToLeft: ToolbarPartComponent;
7321
- readonly LineSpacing: ToolbarSlotPartComponent;
7322
- readonly BulletList: ToolbarPartComponent;
7323
- readonly NumberedList: ToolbarPartComponent;
7324
- readonly Outdent: ToolbarPartComponent;
7325
- readonly Indent: ToolbarPartComponent;
7326
- readonly ImageInsert: ToolbarPartComponent;
7327
- readonly ImageWrap: ImageWrapPartComponent;
7328
- readonly ImageAltText: ImageAltTextPartComponent;
7329
- readonly ImageProperties: ToolbarPartComponent;
7330
- readonly TableInsert: ToolbarPartComponent;
7331
- readonly TableBorderTarget: TableBorderTargetNamespace;
7332
- readonly TableBorderColor: TableBorderColorNamespace;
7333
- readonly TableBorderStyle: TableBorderStyleNamespace;
7334
- readonly TableBorderWidth: TableBorderWidthNamespace;
7335
- readonly TableCellFill: TableCellFillNamespace;
7336
- readonly Comments: ToolbarPartComponent;
7337
- readonly FontFamily: typeof FontFamily;
7338
- readonly FontSize: ToolbarSlotPartComponent;
7339
- readonly FontColor: ToolbarColorSplitComponent;
7340
- readonly Highlight: ToolbarColorSplitComponent;
7341
- readonly Zoom: ToolbarSlotPartComponent;
7342
- readonly StylePicker: typeof ParagraphStyle;
7343
- readonly EditingMode: ToolbarSlotPartComponent;
7344
- readonly Reviewers: typeof ToolbarReviewers;
7345
- readonly Save: ToolbarSlotPartComponent;
7346
- readonly ContentControlShowAll: ToolbarPartComponent;
7347
- readonly ContentControlFormFill: ToolbarPartComponent;
7348
- readonly ContentControlInspector: ToolbarPartComponent;
7349
- readonly ContentControlRemove: ToolbarPartComponent;
7350
- }
7351
- /** @public */
7352
- declare const DocxEditorToolbar: DocxEditorToolbarNamespace;
7353
-
7354
8324
  /** Props for `DocxEditor.Menu.ReportIssue`. @public */
7355
8325
  interface MenuReportIssueProps {
7356
8326
  className?: string;
@@ -7546,6 +8516,10 @@ interface DocxEditorMenuNamespace {
7546
8516
  readonly Print: typeof MenuPrint;
7547
8517
  readonly PageSetup: typeof MenuPageSetup;
7548
8518
  readonly ImageInsert: typeof MenuImageInsert;
8519
+ /** Insert › Watermark, so a host can hide it or place it elsewhere by name. */
8520
+ readonly Watermark: typeof MenuWatermark;
8521
+ /** Insert › Bookmark, so a host can hide it or place it elsewhere by name. */
8522
+ readonly Bookmark: typeof MenuBookmark;
7549
8523
  readonly Reviewers: typeof MenuReviewers;
7550
8524
  readonly ReportIssue: typeof MenuReportIssue;
7551
8525
  }
@@ -7717,7 +8691,7 @@ interface UseDocumentSearchResult {
7717
8691
  declare function useDocumentSearch(options?: MaybeRefOrGetter<UseDocumentSearchOptions>): UseDocumentSearchResult;
7718
8692
 
7719
8693
  /** @public */
7720
- type NavigationTab$1 = 'headings' | 'find';
8694
+ type NavigationTab$1 = 'headings' | 'find' | 'goto';
7721
8695
  /** @public */
7722
8696
  interface UseNavigationPaneOptions {
7723
8697
  defaultOpen?: boolean;
@@ -7747,6 +8721,35 @@ interface UseNavigationPaneResult {
7747
8721
  /** @public */
7748
8722
  declare function useNavigationPane(options?: MaybeRefOrGetter$1<UseNavigationPaneOptions>): UseNavigationPaneResult;
7749
8723
 
8724
+ /**
8725
+ * The Bookmarks panel: a bookmark search box, the sort order and hidden-bookmarks toggle, and
8726
+ * the bookmarks it offers, grouped by place when sorted by location.
8727
+ *
8728
+ * @public
8729
+ */
8730
+ declare const NavigationGoTo: vue.DefineComponent<vue.ExtractPropTypes<{
8731
+ className: {
8732
+ type: StringConstructor;
8733
+ default: undefined;
8734
+ };
8735
+ style: {
8736
+ type: PropType<CSSProperties>;
8737
+ default: undefined;
8738
+ };
8739
+ }>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
8740
+ className: {
8741
+ type: StringConstructor;
8742
+ default: undefined;
8743
+ };
8744
+ style: {
8745
+ type: PropType<CSSProperties>;
8746
+ default: undefined;
8747
+ };
8748
+ }>> & Readonly<{}>, {
8749
+ className: string;
8750
+ style: CSSProperties;
8751
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
8752
+
7750
8753
  /** Shared props for the pane's structural parts. @public */
7751
8754
  interface NavigationPartProps {
7752
8755
  className?: string;
@@ -7970,6 +8973,12 @@ interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
7970
8973
  * browser's own search. Set `false` to leave the shortcut to the browser everywhere.
7971
8974
  */
7972
8975
  findShortcut?: boolean;
8976
+ /**
8977
+ * Whether Ctrl+G (Cmd+Option+G on macOS) opens the pane on the Go to tab. Defaults to
8978
+ * `true`, and applies only while focus is in this editor. The `openGoTo` editor command
8979
+ * opens the tab either way.
8980
+ */
8981
+ goToShortcut?: boolean;
7973
8982
  className?: string;
7974
8983
  style?: CSSProperties;
7975
8984
  children?: DocxEditorChildren;
@@ -7984,6 +8993,7 @@ interface DocxEditorNavigationNamespace {
7984
8993
  readonly Tab: typeof NavigationTab;
7985
8994
  readonly Headings: typeof NavigationHeadings;
7986
8995
  readonly Find: typeof NavigationFind;
8996
+ readonly GoTo: typeof NavigationGoTo;
7987
8997
  readonly Toggle: typeof NavigationToggle;
7988
8998
  }
7989
8999
  /** @public */
@@ -7991,6 +9001,64 @@ declare const DocxEditorNavigation: DocxEditorNavigationNamespace;
7991
9001
  /** Alias matching React export name. */
7992
9002
  declare const Navigation: DocxEditorNavigationNamespace;
7993
9003
 
9004
+ /**
9005
+ * Why a Go To jump did not happen: nothing was typed, no bookmark has the name, or the editor
9006
+ * refused the jump for another reason (it is not ready, or the story could not be shown).
9007
+ *
9008
+ * @public
9009
+ */
9010
+ type GoToBookmarkProblem = 'empty' | 'notFound' | 'failed';
9011
+ /** How `useGoToBookmark` is configured. @public */
9012
+ interface UseGoToBookmarkOptions {
9013
+ /**
9014
+ * Whether to read the document's bookmarks. Defaults to `true`. Pass `false` while your UI
9015
+ * is hidden: the list is then empty and the document is not read on each change. Pass the
9016
+ * options as a getter or a ref to change it; the list is read again when it turns true.
9017
+ */
9018
+ readonly enabled?: boolean;
9019
+ }
9020
+ /** What `useGoToBookmark` returns. @public */
9021
+ interface UseGoToBookmarkReturn {
9022
+ /** The text in the name box. Use `setQuery` to change it. */
9023
+ readonly query: Readonly<ShallowRef<string>>;
9024
+ /** Change the text. The highlight goes back to none. */
9025
+ readonly setQuery: (query: string) => void;
9026
+ readonly sortBy: Readonly<ShallowRef<BookmarkSortOrder>>;
9027
+ readonly setSortBy: (sortBy: BookmarkSortOrder) => void;
9028
+ /** Whether hidden bookmarks (names starting with an underscore) are offered. */
9029
+ readonly showHidden: Readonly<ShallowRef<boolean>>;
9030
+ readonly setShowHidden: (showHidden: boolean) => void;
9031
+ /** The bookmarks offered for the query: names that start with it first. */
9032
+ readonly rows: ComputedRef<readonly BookmarkSummary[]>;
9033
+ /** Every bookmark the document declares, hidden ones included. Empty while disabled. */
9034
+ readonly bookmarks: Readonly<ShallowRef<readonly BookmarkSummary[]>>;
9035
+ /**
9036
+ * Index into `rows` of the highlighted row, or -1 when none is. The highlight follows its
9037
+ * bookmark when rows move, and clears when that bookmark goes away.
9038
+ */
9039
+ readonly activeIndex: ComputedRef<number>;
9040
+ /** Move the highlight by `delta` rows, wrapping at either end. */
9041
+ readonly move: (delta: number) => void;
9042
+ /** Highlight the row at `index` of `rows`, or none with -1. */
9043
+ readonly setActiveIndex: (index: number) => void;
9044
+ /**
9045
+ * Jump to `name`, or else to what the name box means: the highlighted row, the bookmark
9046
+ * named exactly as typed, or the first row offered. Answers the `goToBookmark` result and
9047
+ * sets `problem` when it is refused.
9048
+ */
9049
+ readonly go: (name?: string) => ExecResult;
9050
+ /** Why the last jump did not happen, or null. Cleared when the query changes. */
9051
+ readonly problem: Readonly<ShallowRef<GoToBookmarkProblem | null>>;
9052
+ /** The name the last refused jump asked for, for a message. Empty when nothing was typed. */
9053
+ readonly problemName: Readonly<ShallowRef<string>>;
9054
+ }
9055
+ /**
9056
+ * Go To for bookmarks: filter by name, move through the offered rows, and jump.
9057
+ *
9058
+ * @public
9059
+ */
9060
+ declare function useGoToBookmark(options?: MaybeRefOrGetter$1<UseGoToBookmarkOptions>): UseGoToBookmarkReturn;
9061
+
7994
9062
  /** @public */
7995
9063
  type OutlineHeading$1 = ReturnType<Editor['getOutline']>[number];
7996
9064
  /** @public */
@@ -8174,6 +9242,193 @@ declare const DocxEditorFontNotice: vue.DefineComponent<vue.ExtractPropTypes<{
8174
9242
  t: TFunction;
8175
9243
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
8176
9244
 
9245
+ /** The current refused open, with the packaged message and a way to dismiss it. @public */
9246
+ interface UseOpenFailureReturn {
9247
+ /** The refused open, or `null` when there is none or the person dismissed it. */
9248
+ readonly failure: ComputedRef<DocumentOpenFailure | null>;
9249
+ /** The packaged, translated message for {@link UseOpenFailureReturn.failure}. */
9250
+ readonly message: ComputedRef<string | null>;
9251
+ /**
9252
+ * Hide this refusal. A later refusal shows again, even for the same file. Pass the failure
9253
+ * your UI showed, such as from a toast's close callback, so a late call cannot hide a newer
9254
+ * refusal. It also works as a click handler directly, such as `onClick={dismiss}`: an event
9255
+ * hides the refusal on screen.
9256
+ */
9257
+ dismiss(failure?: DocumentOpenFailure | Event | {
9258
+ readonly nativeEvent: Event;
9259
+ }): void;
9260
+ }
9261
+ /** Options for {@link useOpenFailure}. @public */
9262
+ interface UseOpenFailureOptions {
9263
+ /** Translator override; defaults to the ambient locale context. */
9264
+ t?: TFunction;
9265
+ }
9266
+ /**
9267
+ * Reads the document the editor refused to open, for a host that shows it in its own UI,
9268
+ * such as a toast. Pair it with `:open-failure="false"` on `<DocxEditor>`, so the packaged
9269
+ * dialog does not show as well. Call it inside a `DocxEditor.Root`.
9270
+ *
9271
+ * ```ts
9272
+ * const { failure, message, dismiss } = useOpenFailure();
9273
+ * watch(failure, (next) => {
9274
+ * if (next) toast(message.value, { detail: next.code, onClose: () => dismiss(next) });
9275
+ * });
9276
+ * ```
9277
+ *
9278
+ * @public
9279
+ */
9280
+ declare function useOpenFailure(options?: UseOpenFailureOptions): UseOpenFailureReturn;
9281
+ /** What the `actions` and `default` slots receive. @public */
9282
+ interface DocxEditorOpenFailureContext {
9283
+ /** The refused open: its stable `code` and its `reason`. */
9284
+ readonly failure: DocumentOpenFailure;
9285
+ /** The packaged, translated message for the failure. */
9286
+ readonly message: string;
9287
+ /** Close the dialog. It emits `dismiss`, as **Close** does. */
9288
+ dismiss(): void;
9289
+ }
9290
+ /** Props for `DocxEditor.OpenFailure.Action`. @public */
9291
+ interface DocxEditorOpenFailureActionProps {
9292
+ /** `primary` is filled, `secondary` is outlined. Defaults to `secondary`. */
9293
+ variant?: 'primary' | 'secondary';
9294
+ /** Close the dialog after the click handler runs, unless it called `preventDefault()`. */
9295
+ dismiss?: boolean;
9296
+ /** Render your own element, such as a link, with the button's classes and handler. */
9297
+ asChild?: boolean;
9298
+ /** The `default` slot: the button label, or with `asChild` your own element. */
9299
+ children?: DocxEditorChildren;
9300
+ }
9301
+ /**
9302
+ * A button in the open-failure dialog, styled as the packaged **Close**. Use it in the
9303
+ * `actions` slot, or in your own `default` slot. With `as-child`, it styles your own element
9304
+ * instead, such as a link to your support page:
9305
+ *
9306
+ * ```vue
9307
+ * <DocxEditor.OpenFailure>
9308
+ * <template #actions="{ failure }">
9309
+ * <DocxEditor.OpenFailure.Action as-child>
9310
+ * <a :href="`/support?code=${failure.code}`">Get help</a>
9311
+ * </DocxEditor.OpenFailure.Action>
9312
+ * </template>
9313
+ * </DocxEditor.OpenFailure>
9314
+ * ```
9315
+ *
9316
+ * @public
9317
+ */
9318
+ declare const DocxEditorOpenFailureAction: vue.DefineComponent<vue.ExtractPropTypes<{
9319
+ variant: {
9320
+ type: PropType<'primary' | 'secondary'>;
9321
+ default: string;
9322
+ };
9323
+ dismiss: {
9324
+ type: BooleanConstructor;
9325
+ default: boolean;
9326
+ };
9327
+ asChild: {
9328
+ type: BooleanConstructor;
9329
+ default: boolean;
9330
+ };
9331
+ }>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
9332
+ variant: {
9333
+ type: PropType<'primary' | 'secondary'>;
9334
+ default: string;
9335
+ };
9336
+ dismiss: {
9337
+ type: BooleanConstructor;
9338
+ default: boolean;
9339
+ };
9340
+ asChild: {
9341
+ type: BooleanConstructor;
9342
+ default: boolean;
9343
+ };
9344
+ }>> & Readonly<{}>, {
9345
+ variant: "primary" | "secondary";
9346
+ dismiss: boolean;
9347
+ asChild: boolean;
9348
+ }, SlotsType<{
9349
+ default?: () => VNode[];
9350
+ }>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
9351
+ /**
9352
+ * A message for the open-failure dialog: text, content, or a function of the failure. It
9353
+ * renders in a `div`, so block content is valid.
9354
+ *
9355
+ * @public
9356
+ */
9357
+ type DocxEditorOpenFailureMessage = string | DocxEditorChildren | ((failure: DocumentOpenFailure) => string | DocxEditorChildren);
9358
+ /** Props for `DocxEditor.OpenFailure`. @public */
9359
+ interface DocxEditorOpenFailureProps {
9360
+ /**
9361
+ * The dialog title. Defaults to the translated `openFailure.title`. It also names the dialog
9362
+ * for screen readers, including when your own content replaces the packaged one.
9363
+ */
9364
+ title?: string;
9365
+ /** Your own message in place of the packaged one, as content or per failure. */
9366
+ message?: DocxEditorOpenFailureMessage;
9367
+ /** Show the stable error code under the message. Defaults to `true`. */
9368
+ showCode?: boolean;
9369
+ /** The label of the **Close** button. Defaults to the translated `common.close`. */
9370
+ closeLabel?: string;
9371
+ /**
9372
+ * Show the packaged **Close** button. Defaults to `true`. Turn it off only when the
9373
+ * `actions` slot gives a way out. Escape still closes the dialog.
9374
+ */
9375
+ showClose?: boolean;
9376
+ /** The `actions` slot: your own buttons, before **Close**. */
9377
+ actions?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
9378
+ /** Listener for the `dismiss` event: the person closed the dialog, by any route. */
9379
+ onDismiss?: (failure: DocumentOpenFailure) => void;
9380
+ /** The `default` slot: your own dialog content, in place of the header, body and footer. */
9381
+ children?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
9382
+ /** Appended after the load-bearing `docx-dialog` class. */
9383
+ className?: string;
9384
+ /** Inline styles for the dialog element. */
9385
+ style?: CSSProperties;
9386
+ /** Translator override; defaults to the ambient locale context. */
9387
+ t?: TFunction;
9388
+ }
9389
+ /**
9390
+ * The open-failure part with its button attached as a static.
9391
+ *
9392
+ * @public
9393
+ */
9394
+ interface DocxEditorOpenFailureComponent {
9395
+ /**
9396
+ * Renders the dialog while a refused open is waiting, and nothing otherwise. The second
9397
+ * parameter types the `default` and `actions` slots for templates.
9398
+ */
9399
+ (props: DocxEditorOpenFailureProps, context?: {
9400
+ slots: {
9401
+ default?: (context: DocxEditorOpenFailureContext) => VNode[];
9402
+ actions?: (context: DocxEditorOpenFailureContext) => VNode[];
9403
+ };
9404
+ }): VNode;
9405
+ /** A button styled for the dialog, for the `actions` and `default` slots. */
9406
+ readonly Action: typeof DocxEditorOpenFailureAction;
9407
+ }
9408
+ /**
9409
+ * A dialog that explains why a file did not open. It shows nothing until the editor refuses a
9410
+ * document, and shows again for each later refusal. `<DocxEditor>` renders it by default;
9411
+ * compose it yourself inside a `DocxEditor.Root`. The `actions` slot adds your own buttons
9412
+ * before **Close**, and the `default` slot replaces the whole content. Both receive
9413
+ * `{ failure, message, dismiss }`.
9414
+ *
9415
+ * ```vue
9416
+ * <DocxEditor.OpenFailure @dismiss="onClosed">
9417
+ * <template #actions="{ failure, dismiss }">
9418
+ * <DocxEditor.OpenFailure.Action variant="primary" @click="report(failure.code); dismiss()">
9419
+ * Report
9420
+ * </DocxEditor.OpenFailure.Action>
9421
+ * </template>
9422
+ * </DocxEditor.OpenFailure>
9423
+ * ```
9424
+ *
9425
+ * The packaged message is generic and names no contact. For a toast or banner instead of a
9426
+ * dialog, use `useOpenFailure`.
9427
+ *
9428
+ * @public
9429
+ */
9430
+ declare const DocxEditorOpenFailure: DocxEditorOpenFailureComponent;
9431
+
8177
9432
  /** Props for `DocxEditor.HeaderFooterChrome`. @public */
8178
9433
  interface DocxEditorHeaderFooterChromeProps {
8179
9434
  className?: string;
@@ -8221,9 +9476,12 @@ type EditorMode = 'edit' | 'view' | 'suggesting';
8221
9476
  /** Props for the Vue `DocxEditor` sugar host. @public */
8222
9477
  interface DocxEditorProps {
8223
9478
  popups?: DocxEditorPopups;
9479
+ /** Font sources. A new value replaces them in place, keeping edits, selection and history. */
8224
9480
  fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
8225
9481
  /** Explicit shaping byte ceiling. A changed maxFontBytes value remounts; equal values keep the instance. */
8226
9482
  fontShaping?: FontShapingOptions;
9483
+ /** Inject image decoding and preserved-image conversion. A changed port identity remounts the editor. */
9484
+ imageDecodePort?: ImageDecodePort;
8227
9485
  colorMode?: 'light' | 'dark' | 'system';
8228
9486
  /** Live resolver for chrome and drawing labels. */
8229
9487
  t?: (key: string, params?: Record<string, string | number>) => string;
@@ -8240,6 +9498,14 @@ interface DocxEditorProps {
8240
9498
  * to the browser.
8241
9499
  */
8242
9500
  navigation?: boolean | DocxEditorNavigationProps;
9501
+ /**
9502
+ * The dialog that explains a file the editor refused to open, on by default. A refused
9503
+ * open leaves the pages blank, so without it the reader sees nothing. An object is
9504
+ * `DocxEditorOpenFailureProps`, passed straight through. `false` removes the dialog, for a
9505
+ * host that reports the failure itself through `useOpenFailure`. For your own buttons, use
9506
+ * the `openFailureActions` slot.
9507
+ */
9508
+ openFailure?: boolean | DocxEditorOpenFailureProps;
8243
9509
  rulers?: boolean;
8244
9510
  document?: DocumentSource;
8245
9511
  /** Live host mode. */
@@ -8301,7 +9567,19 @@ interface DocxEditorRef {
8301
9567
 
8302
9568
  /** @public */
8303
9569
  interface DocxEditorNamespace {
8304
- (props: DocxEditorProps): VNode;
9570
+ /**
9571
+ * The packaged editor. The second parameter types its slots for templates:
9572
+ * `#openFailureActions` receives the refused open, the packaged message, and `dismiss`.
9573
+ */
9574
+ (props: DocxEditorProps, context?: {
9575
+ slots: {
9576
+ default?: () => VNode[];
9577
+ titleBarLeft?: () => VNode[];
9578
+ titleBarRight?: () => VNode[];
9579
+ loadingIndicator?: () => VNode[];
9580
+ openFailureActions?: (context: DocxEditorOpenFailureContext) => VNode[];
9581
+ };
9582
+ }): VNode;
8305
9583
  readonly TextFormFieldDialog: typeof DocxEditorTextFormFieldDialog;
8306
9584
  readonly ContentControlWidget: typeof DocxEditorContentControlWidget;
8307
9585
  readonly InvalidTextFormFieldDialog: typeof DocxEditorInvalidTextFormFieldDialog;
@@ -8313,6 +9591,8 @@ interface DocxEditorNamespace {
8313
9591
  readonly Root: typeof DocxEditorRoot;
8314
9592
  readonly Viewport: typeof DocxEditorViewport;
8315
9593
  readonly Content: typeof DocxEditorContent;
9594
+ /** The editor panel in a pop-out window while `open`; see the pop-out guide. */
9595
+ readonly Window: typeof DocxEditorWindow;
8316
9596
  readonly Toolbar: typeof DocxEditorToolbar;
8317
9597
  readonly Menu: typeof DocxEditorMenu;
8318
9598
  readonly Loading: typeof DocxEditorLoading;
@@ -8327,8 +9607,16 @@ interface DocxEditorNamespace {
8327
9607
  readonly PageSetupDialog: typeof DocxEditorPageSetupDialog;
8328
9608
  /** The Paragraph dialog: alignment, indentation, spacing and the paragraph flags. */
8329
9609
  readonly ParagraphDialog: typeof DocxEditorParagraphDialog;
9610
+ /** Watermark dialog — none, picture or text — applied as one undo step. */
9611
+ readonly WatermarkDialog: typeof DocxEditorWatermarkDialog;
9612
+ /** Bookmark dialog — list, add, delete and go to bookmarks. */
9613
+ readonly BookmarkDialog: typeof DocxEditorBookmarkDialog;
9614
+ /** Split cells dialog — split the cell at the selection into columns and rows. */
9615
+ readonly SplitCellDialog: typeof DocxEditorSplitCellDialog;
8330
9616
  readonly PageNumber: typeof DocxEditorPageNumber;
8331
9617
  readonly FontNotice: typeof DocxEditorFontNotice;
9618
+ /** The dialog that explains a file the editor refused to open. Mounted by default. */
9619
+ readonly OpenFailure: typeof DocxEditorOpenFailure;
8332
9620
  readonly HeaderFooterChrome: typeof DocxEditorHeaderFooterChrome;
8333
9621
  readonly NotesChrome: typeof DocxEditorNotesChrome;
8334
9622
  /** The default linear-math popover for a clicked Office Math equation. */
@@ -8338,6 +9626,7 @@ interface DocxEditorNamespace {
8338
9626
  readonly ContentControl: typeof DocxEditorContentControl;
8339
9627
  readonly RevisionMarkup: typeof DocxEditorRevisionMarkup;
8340
9628
  readonly RevisionMarkupDialog: typeof DocxEditorRevisionMarkupDialog;
9629
+ readonly UnsupportedElement: typeof DocxEditorUnsupportedElement;
8341
9630
  readonly AuthorStyle: typeof DocxEditorAuthorStyle;
8342
9631
  readonly ColorByChangeType: typeof DocxEditorColorByChangeType;
8343
9632
  }
@@ -8422,6 +9711,58 @@ declare function useEditorValueCommand<K extends keyof ToolbarValueMap>(slotId:
8422
9711
  /** @public */
8423
9712
  declare function useEditorEvent<E extends keyof EditorEvents>(event: E, handler: EditorEvents[E]): void;
8424
9713
 
9714
+ /**
9715
+ * Open the host's own comment draft when the `review.addComment` control is pressed.
9716
+ *
9717
+ * While the component is mounted and `handler` is set, the control is enabled (subject to the
9718
+ * engine's other rules: the review module, the editing mode, and a selection). Without any
9719
+ * registration the control is disabled, because nothing could open the draft. The most recent
9720
+ * registration receives each request. The registration lasts while the calling component is
9721
+ * mounted. Passing `null` registers nothing; to stop serving requests, unmount the component, for
9722
+ * example with `v-if` while your comment UI cannot open a draft.
9723
+ *
9724
+ * The handler takes no arguments. Read the selection with `editor.getSelectionPlacement()`,
9725
+ * and pin it with `editor.retainSelection()` while the draft is open.
9726
+ *
9727
+ * @example
9728
+ * ```ts
9729
+ * const drafting = ref(false);
9730
+ * useCommentDraftRequest(() => {
9731
+ * drafting.value = true;
9732
+ * });
9733
+ * const addComment = useEditorCommand('review.addComment');
9734
+ * // Bind `addComment.isEnabled` to the button, and call `addComment.execute()` on click.
9735
+ * ```
9736
+ *
9737
+ * @public
9738
+ */
9739
+ declare function useCommentDraftRequest(handler: (() => void) | null | undefined): void;
9740
+
9741
+ /** What {@link useEditorHostDocument} returns: a read-only ref to the host document. @public */
9742
+ type UseEditorHostDocumentReturn = Readonly<ShallowRef<Document | null>>;
9743
+ /**
9744
+ * The document the editor's pages are mounted in: a pop-out window's or an iframe's when the
9745
+ * host attached the editor there, otherwise the page's own. `null` during server rendering.
9746
+ *
9747
+ * Custom chrome that adds document listeners, reads focus, or injects a `<style>` uses this
9748
+ * instead of the global `document`, which belongs to the window the script runs in. The value
9749
+ * changes when the editor moves to another window, so watchers keyed on it re-bind.
9750
+ * Its `defaultView` is the editor's window, for timers, viewport size and the clipboard.
9751
+ *
9752
+ * @example
9753
+ * ```ts
9754
+ * const hostDocument = useEditorHostDocument();
9755
+ * watch(hostDocument, (doc, _previous, onCleanup) => {
9756
+ * if (!doc) return;
9757
+ * doc.addEventListener('keydown', onShortcut);
9758
+ * onCleanup(() => doc.removeEventListener('keydown', onShortcut));
9759
+ * }, { immediate: true });
9760
+ * ```
9761
+ *
9762
+ * @public
9763
+ */
9764
+ declare function useEditorHostDocument(): UseEditorHostDocumentReturn;
9765
+
8425
9766
  /**
8426
9767
  * Mark text ranges as the named set while the calling scope is active.
8427
9768
  *
@@ -8437,6 +9778,8 @@ declare function useEditorEvent<E extends keyof EditorEvents>(event: E, handler:
8437
9778
  * { className: 'glossary-term' }
8438
9779
  * );
8439
9780
  * ```
9781
+ *
9782
+ * @see {@link https://www.docx-editor.dev/docs/2.x/recipes/highlight-ranges | Highlight ranges}
8440
9783
  * @public
8441
9784
  */
8442
9785
  declare function useHighlights(name: MaybeRefOrGetter<string>, source: MaybeRefOrGetter<HighlightSource>, options?: MaybeRefOrGetter<HighlightOptions>): ComputedRef<HighlightResult>;
@@ -8671,7 +10014,12 @@ declare const Slot: vue.DefineComponent<{}, () => VNode<vue.RendererNode, vue.Re
8671
10014
  /** @public */
8672
10015
  type DocxEditorRefCallback<T> = (node: T | null) => void;
8673
10016
 
8674
- type AnchorPlacement = 'before' | 'after' | 'story-label';
10017
+ /**
10018
+ * Where a scoped chrome anchor sits relative to its story: before it, after it, or on its label.
10019
+ *
10020
+ * @public
10021
+ */
10022
+ type ScopedChromeAnchorPlacement = 'before' | 'after' | 'story-label';
8675
10023
  /** @public */
8676
10024
  interface ScopedChromeAnchor {
8677
10025
  readonly ref: DocxEditorRefCallback<HTMLDivElement>;
@@ -8682,7 +10030,7 @@ interface ScopedChromeAnchor {
8682
10030
  *
8683
10031
  * @public
8684
10032
  */
8685
- declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HTMLElement | null, placement: AnchorPlacement): ScopedChromeAnchor;
10033
+ declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HTMLElement | null, placement: ScopedChromeAnchorPlacement): ScopedChromeAnchor;
8686
10034
 
8687
10035
  /**
8688
10036
  * Section page setup as the engine reports it (`Editor.getPageSetup()`) —
@@ -8979,6 +10327,49 @@ declare const VerticalRuler: vue.DefineComponent<vue.ExtractPropTypes<{
8979
10327
  style: CSSProperties;
8980
10328
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
8981
10329
 
10330
+ /** What `useWatermark` returns. @public */
10331
+ interface UseWatermarkReturn {
10332
+ /** The document's watermark, or null when it has none. Reference-stable while unchanged. */
10333
+ readonly watermark: Readonly<ShallowRef<WatermarkState | null>>;
10334
+ /** Whether the engine can write a watermark right now (mounted, editable). */
10335
+ readonly isEnabled: ComputedRef<boolean>;
10336
+ /** The full current watermark, with picture bytes, through `query({ type: 'watermark' })`. */
10337
+ readonly read: () => Watermark | null;
10338
+ /** Set the watermark as one undo step. Null removes it. */
10339
+ readonly apply: (watermark: Watermark | null) => ExecResult;
10340
+ }
10341
+ /**
10342
+ * The document watermark plus the command to change it.
10343
+ *
10344
+ * @public
10345
+ */
10346
+ declare function useWatermark(): UseWatermarkReturn;
10347
+
10348
+ /** What `useBookmarks` returns. @public */
10349
+ interface UseBookmarksReturn {
10350
+ /** Every bookmark, hidden ones included, in document order. Reference-stable while unchanged. */
10351
+ readonly bookmarks: Readonly<ShallowRef<readonly BookmarkSummary[]>>;
10352
+ /** Whether the document accepts bookmark edits now. Go To works either way. */
10353
+ readonly isWritable: Readonly<ShallowRef<boolean>>;
10354
+ /** Bookmark the selection under `name`. A bookmark with the name moves. */
10355
+ readonly insert: (name: string) => ExecResult;
10356
+ /** Delete the bookmark with this name. The text stays. */
10357
+ readonly remove: (name: string) => ExecResult;
10358
+ /** Select the bookmark and scroll to it. */
10359
+ readonly goTo: (name: string) => ExecResult;
10360
+ /**
10361
+ * Keep the first bookmark with this name and remove its copies, which collaborators adding
10362
+ * one name offline can leave. The selection does not move.
10363
+ */
10364
+ readonly keepFirst: (name: string) => ExecResult;
10365
+ }
10366
+ /**
10367
+ * The document's bookmarks plus the commands that change them.
10368
+ *
10369
+ * @public
10370
+ */
10371
+ declare function useBookmarks(): UseBookmarksReturn;
10372
+
8982
10373
  /** @public */
8983
10374
  interface PaginatedDocxEditorProps {
8984
10375
  readonly source: Uint8Array;
@@ -9330,10 +10721,15 @@ declare const LocaleProvider: vue.DefineComponent<vue.ExtractPropTypes<{
9330
10721
  }>> & Readonly<{}>, {
9331
10722
  i18n: _docx_editor_dev_i18n.PartialLocaleStrings;
9332
10723
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
9333
- /** @public */
10724
+ /**
10725
+ * The active catalogue's `t()`, the catalogue itself, and its language tag (`_lang`, `en`
10726
+ * by default), which formats numbers the way the strings around them read.
10727
+ * @public
10728
+ */
9334
10729
  declare function useTranslation(): {
9335
10730
  t: TFunction;
9336
10731
  catalogue: ShallowRef<LocaleStrings>;
10732
+ lang: string;
9337
10733
  };
9338
10734
 
9339
10735
  /** @public */
@@ -9391,7 +10787,9 @@ interface ListState {
9391
10787
  numId?: number;
9392
10788
  }
9393
10789
 
10790
+ /** A paragraph alignment the legacy toolbar shows and sets. */
9394
10791
  type ParagraphAlignment = 'left' | 'center' | 'right' | 'both' | 'distribute';
10792
+ /** A table command the legacy toolbar dispatches. */
9395
10793
  type TableAction = 'addRowAbove' | 'addRowBelow' | 'addColumnLeft' | 'addColumnRight' | 'deleteRow' | 'deleteColumn' | 'mergeCells' | 'splitCell' | 'deleteTable' | 'selectTable' | 'selectRow' | 'selectColumn' | 'borderAll' | 'borderOutside' | 'borderInside' | 'borderNone' | 'borderTop' | 'borderBottom' | 'borderLeft' | 'borderRight' | {
9396
10794
  type: 'cellFillColor';
9397
10795
  color: string | null;
@@ -9651,5 +11049,5 @@ interface UseHistoryGroupReturn {
9651
11049
  /** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
9652
11050
  declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
9653
11051
 
9654
- export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorVerticalRuler, DocxEditorViewport, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
9655
- export type { ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocxEditorAuthorStyleProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorViewportProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, HeaderFooterState, HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, SlotProps, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseFontFamilyResult, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseTextFormFieldDialogReturn, UseZoomResult, VerticalRulerProps };
11052
+ 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, 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 };
11053
+ 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 };