@docx-editor.dev/vue 2.30.0 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1074 -52
- package/dist/index.d.ts +1074 -52
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
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,
|
|
7
|
+
import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter as MaybeRefOrGetter$1, SlotsType } from 'vue';
|
|
8
8
|
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';
|
|
9
|
+
import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, BookmarkSortOrder, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, FontShapingOptions, EditorModule, ReviewDisplayMode, FieldResultsMode, ContentLockPolicy, LockedControlNavigation, ImageDecodePort, DocxEditorInstance, ChromeGroupId, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
|
|
10
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
11
|
import * as _docx_editor_dev_core from '@docx-editor.dev/core';
|
|
12
12
|
import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
|
|
13
|
-
import { Editor, ViewScope, EditorCommand, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, DocumentHandle, EditorExecOptions,
|
|
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';
|
|
13
|
+
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';
|
|
14
|
+
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
15
|
import * as _docx_editor_dev_i18n from '@docx-editor.dev/i18n';
|
|
16
16
|
import { TFunction, Translations, LocaleStrings } from '@docx-editor.dev/i18n';
|
|
17
17
|
export { TranslationKey } from '@docx-editor.dev/i18n';
|
|
@@ -2074,6 +2074,48 @@ declare function definePopup<C extends Component | FunctionalComponent<never>>(c
|
|
|
2074
2074
|
[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
2075
|
}[keyof P]> : C extends (props: infer P, ...args: never[]) => unknown ? P : never) => DocxEditorChildren;
|
|
2076
2076
|
|
|
2077
|
+
/**
|
|
2078
|
+
* Why a picture could not be inserted. Replace it through `popups.imageInsertError`, or pass
|
|
2079
|
+
* `false` there to show nothing.
|
|
2080
|
+
* @public
|
|
2081
|
+
*/
|
|
2082
|
+
interface DocxEditorImageInsertErrorDialogProps {
|
|
2083
|
+
/** The translated reason the picture was refused. */
|
|
2084
|
+
message: string;
|
|
2085
|
+
/** Close the dialog. */
|
|
2086
|
+
onClose(): void;
|
|
2087
|
+
className?: string;
|
|
2088
|
+
style?: CSSProperties;
|
|
2089
|
+
/** Replaces the packaged header, message and button. */
|
|
2090
|
+
children?: DocxEditorChildren;
|
|
2091
|
+
}
|
|
2092
|
+
/** The packaged picture refusal: an editor dialog, never a page-blocking browser alert. @public */
|
|
2093
|
+
declare const DocxEditorImageInsertErrorDialog: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
2094
|
+
message: {
|
|
2095
|
+
type: StringConstructor;
|
|
2096
|
+
required: true;
|
|
2097
|
+
};
|
|
2098
|
+
onClose: {
|
|
2099
|
+
type: PropType<() => void>;
|
|
2100
|
+
required: true;
|
|
2101
|
+
};
|
|
2102
|
+
className: StringConstructor;
|
|
2103
|
+
style: PropType<CSSProperties>;
|
|
2104
|
+
children: PropType<DocxEditorChildren>;
|
|
2105
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
2106
|
+
message: {
|
|
2107
|
+
type: StringConstructor;
|
|
2108
|
+
required: true;
|
|
2109
|
+
};
|
|
2110
|
+
onClose: {
|
|
2111
|
+
type: PropType<() => void>;
|
|
2112
|
+
required: true;
|
|
2113
|
+
};
|
|
2114
|
+
className: StringConstructor;
|
|
2115
|
+
style: PropType<CSSProperties>;
|
|
2116
|
+
children: PropType<DocxEditorChildren>;
|
|
2117
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2118
|
+
|
|
2077
2119
|
/** Note hover preview content and viewport coordinates. @public */
|
|
2078
2120
|
interface DocxEditorNotePreviewProps {
|
|
2079
2121
|
scopeId: string;
|
|
@@ -2312,7 +2354,15 @@ interface PageSetupDialogFields {
|
|
|
2312
2354
|
/** Page Setup draft state and actions. @public */
|
|
2313
2355
|
interface UsePageSetupDialogReturn extends UseDialogReturn<PageSetupDialogFields> {
|
|
2314
2356
|
}
|
|
2315
|
-
/**
|
|
2357
|
+
/**
|
|
2358
|
+
* Access the current Page Setup draft and actions.
|
|
2359
|
+
*
|
|
2360
|
+
* Call it in a child of the dialog. It does not open the dialog. To open the dialog from your
|
|
2361
|
+
* own toolbar, keep its `open` state and render `DocxEditorPageSetupDialog` with `open` and
|
|
2362
|
+
* `@close`. Take the button's enabled state from `usePageSetup().isEnabled`.
|
|
2363
|
+
*
|
|
2364
|
+
* @public
|
|
2365
|
+
*/
|
|
2316
2366
|
declare function usePageSetupDialog(): UsePageSetupDialogReturn;
|
|
2317
2367
|
/** @public */
|
|
2318
2368
|
interface DocxEditorPageSetupDialogProps extends DialogCustomizationProps {
|
|
@@ -2408,7 +2458,15 @@ declare const DocxEditorPageSetupDialog: {
|
|
|
2408
2458
|
interface UseParagraphDialogReturn extends UseDialogReturn<ParagraphDialogFields> {
|
|
2409
2459
|
readonly mixed: Readonly<Ref<ParagraphDialogMixed>>;
|
|
2410
2460
|
}
|
|
2411
|
-
/**
|
|
2461
|
+
/**
|
|
2462
|
+
* Access the current Paragraph draft and actions.
|
|
2463
|
+
*
|
|
2464
|
+
* Call it in a child of the dialog. It does not open the dialog. To open the dialog from your
|
|
2465
|
+
* own toolbar, keep its `open` state and render `DocxEditorParagraphDialog` with `open` and
|
|
2466
|
+
* `@close`. Take the button's enabled state from `useParagraphFormat().isEnabled`.
|
|
2467
|
+
*
|
|
2468
|
+
* @public
|
|
2469
|
+
*/
|
|
2412
2470
|
declare function useParagraphDialog(): UseParagraphDialogReturn;
|
|
2413
2471
|
/** Props for `DocxEditorParagraphDialog`. @public */
|
|
2414
2472
|
interface DocxEditorParagraphDialogProps extends DialogCustomizationProps {
|
|
@@ -2500,6 +2558,302 @@ declare const DocxEditorParagraphDialog: {
|
|
|
2500
2558
|
}>;
|
|
2501
2559
|
};
|
|
2502
2560
|
|
|
2561
|
+
/** How a text watermark crosses the page. @public */
|
|
2562
|
+
type WatermarkDialogLayout = NonNullable<WatermarkState['layout']>;
|
|
2563
|
+
/** Which watermark the dialog writes. @public */
|
|
2564
|
+
type WatermarkDialogKind = 'none' | 'picture' | 'text';
|
|
2565
|
+
/** The Watermark dialog draft. Transparency is 0 to 1, color is `RRGGBB`. @public */
|
|
2566
|
+
interface WatermarkDialogFields {
|
|
2567
|
+
kind: WatermarkDialogKind;
|
|
2568
|
+
/** The picture bytes, or null when no picture is chosen. */
|
|
2569
|
+
imageData: Uint8Array | null;
|
|
2570
|
+
/** The chosen file name. Null for no picture or for the document's current picture. */
|
|
2571
|
+
imageName: string | null;
|
|
2572
|
+
/** A factor of the picture's natural size. Null is Auto. */
|
|
2573
|
+
scale: number | null;
|
|
2574
|
+
washout: boolean;
|
|
2575
|
+
text: string;
|
|
2576
|
+
fontFamily: string;
|
|
2577
|
+
/** Points. Null is Auto. */
|
|
2578
|
+
fontSizePt: number | null;
|
|
2579
|
+
bold: boolean;
|
|
2580
|
+
italic: boolean;
|
|
2581
|
+
transparency: number;
|
|
2582
|
+
color: string;
|
|
2583
|
+
layout: WatermarkDialogLayout;
|
|
2584
|
+
}
|
|
2585
|
+
/** The text choices the dialog offers when the host passes no `presets`. @public */
|
|
2586
|
+
declare const DEFAULT_WATERMARK_PRESETS: readonly string[];
|
|
2587
|
+
|
|
2588
|
+
/** Named controls a host can replace with `DocxEditor.WatermarkDialog.Field`. @public */
|
|
2589
|
+
type WatermarkDialogFieldName = 'noWatermark' | 'pictureWatermark' | 'picture' | 'scale' | 'washout' | 'textWatermark' | 'preset' | 'text' | 'fontFamily' | 'fontSizePt' | 'bold' | 'italic' | 'transparency' | 'color' | 'layout';
|
|
2590
|
+
/** Watermark dialog draft and actions. @public */
|
|
2591
|
+
interface UseWatermarkDialogReturn extends UseDialogReturn<WatermarkDialogFields> {
|
|
2592
|
+
}
|
|
2593
|
+
/** Read the enclosing Watermark dialog draft. @public */
|
|
2594
|
+
declare function useWatermarkDialog(): UseWatermarkDialogReturn;
|
|
2595
|
+
/** Props for `DocxEditor.WatermarkDialog`. @public */
|
|
2596
|
+
interface DocxEditorWatermarkDialogProps extends DialogCustomizationProps {
|
|
2597
|
+
/** Whether the dialog is shown. The host owns this state. */
|
|
2598
|
+
open: boolean;
|
|
2599
|
+
/** Called on Cancel, Escape, overlay click, and after a successful Apply. */
|
|
2600
|
+
onClose: () => void;
|
|
2601
|
+
/** The text choices offered for a text watermark. Defaults to `DEFAULT_WATERMARK_PRESETS`. */
|
|
2602
|
+
presets?: readonly string[];
|
|
2603
|
+
}
|
|
2604
|
+
/**
|
|
2605
|
+
* Watermark dialog: no watermark, a picture, or text, with a live page preview and
|
|
2606
|
+
* replaceable controls and layout. Applies the whole form as one undoable `setWatermark`
|
|
2607
|
+
* command, and writes nothing when the form is unchanged.
|
|
2608
|
+
*
|
|
2609
|
+
* @public
|
|
2610
|
+
*/
|
|
2611
|
+
declare const DocxEditorWatermarkDialog: {
|
|
2612
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
2613
|
+
children: PropType<DocxEditorChildren>;
|
|
2614
|
+
open: {
|
|
2615
|
+
type: BooleanConstructor;
|
|
2616
|
+
required: true;
|
|
2617
|
+
};
|
|
2618
|
+
onClose: {
|
|
2619
|
+
type: PropType<() => void>;
|
|
2620
|
+
required: true;
|
|
2621
|
+
};
|
|
2622
|
+
presets: {
|
|
2623
|
+
type: PropType<readonly string[]>;
|
|
2624
|
+
default: undefined;
|
|
2625
|
+
};
|
|
2626
|
+
className: {
|
|
2627
|
+
type: StringConstructor;
|
|
2628
|
+
default: undefined;
|
|
2629
|
+
};
|
|
2630
|
+
style: PropType<CSSProperties>;
|
|
2631
|
+
preset: {
|
|
2632
|
+
type: BooleanConstructor;
|
|
2633
|
+
default: boolean;
|
|
2634
|
+
};
|
|
2635
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
2636
|
+
presets: readonly string[];
|
|
2637
|
+
className: string;
|
|
2638
|
+
preset: boolean;
|
|
2639
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
2640
|
+
P: {};
|
|
2641
|
+
B: {};
|
|
2642
|
+
D: {};
|
|
2643
|
+
C: {};
|
|
2644
|
+
M: {};
|
|
2645
|
+
Defaults: {};
|
|
2646
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
2647
|
+
children: PropType<DocxEditorChildren>;
|
|
2648
|
+
open: {
|
|
2649
|
+
type: BooleanConstructor;
|
|
2650
|
+
required: true;
|
|
2651
|
+
};
|
|
2652
|
+
onClose: {
|
|
2653
|
+
type: PropType<() => void>;
|
|
2654
|
+
required: true;
|
|
2655
|
+
};
|
|
2656
|
+
presets: {
|
|
2657
|
+
type: PropType<readonly string[]>;
|
|
2658
|
+
default: undefined;
|
|
2659
|
+
};
|
|
2660
|
+
className: {
|
|
2661
|
+
type: StringConstructor;
|
|
2662
|
+
default: undefined;
|
|
2663
|
+
};
|
|
2664
|
+
style: PropType<CSSProperties>;
|
|
2665
|
+
preset: {
|
|
2666
|
+
type: BooleanConstructor;
|
|
2667
|
+
default: boolean;
|
|
2668
|
+
};
|
|
2669
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
2670
|
+
presets: readonly string[];
|
|
2671
|
+
className: string;
|
|
2672
|
+
preset: boolean;
|
|
2673
|
+
}>;
|
|
2674
|
+
__isFragment?: never;
|
|
2675
|
+
__isTeleport?: never;
|
|
2676
|
+
__isSuspense?: never;
|
|
2677
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
2678
|
+
children: PropType<DocxEditorChildren>;
|
|
2679
|
+
open: {
|
|
2680
|
+
type: BooleanConstructor;
|
|
2681
|
+
required: true;
|
|
2682
|
+
};
|
|
2683
|
+
onClose: {
|
|
2684
|
+
type: PropType<() => void>;
|
|
2685
|
+
required: true;
|
|
2686
|
+
};
|
|
2687
|
+
presets: {
|
|
2688
|
+
type: PropType<readonly string[]>;
|
|
2689
|
+
default: undefined;
|
|
2690
|
+
};
|
|
2691
|
+
className: {
|
|
2692
|
+
type: StringConstructor;
|
|
2693
|
+
default: undefined;
|
|
2694
|
+
};
|
|
2695
|
+
style: PropType<CSSProperties>;
|
|
2696
|
+
preset: {
|
|
2697
|
+
type: BooleanConstructor;
|
|
2698
|
+
default: boolean;
|
|
2699
|
+
};
|
|
2700
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
2701
|
+
presets: readonly string[];
|
|
2702
|
+
className: string;
|
|
2703
|
+
preset: boolean;
|
|
2704
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
2705
|
+
Field: vue.DefineComponent<DialogPartProps & {
|
|
2706
|
+
name: WatermarkDialogFieldName;
|
|
2707
|
+
}>;
|
|
2708
|
+
/** The page preview of the current draft. Decorative (`aria-hidden`). */
|
|
2709
|
+
Preview: vue.DefineComponent<DialogPartProps>;
|
|
2710
|
+
Apply: vue.DefineComponent<DialogPartProps>;
|
|
2711
|
+
Body: vue.DefineComponent<DialogPartProps>;
|
|
2712
|
+
Cancel: vue.DefineComponent<DialogPartProps>;
|
|
2713
|
+
Error: vue.DefineComponent<DialogPartProps>;
|
|
2714
|
+
Footer: vue.DefineComponent<DialogPartProps>;
|
|
2715
|
+
Header: vue.DefineComponent<DialogPartProps>;
|
|
2716
|
+
Reset: vue.DefineComponent<DialogPartProps>;
|
|
2717
|
+
Title: vue.DefineComponent<DialogPartProps>;
|
|
2718
|
+
};
|
|
2719
|
+
|
|
2720
|
+
/** The Bookmark dialog's draft. @public */
|
|
2721
|
+
interface BookmarkDialogFields {
|
|
2722
|
+
/** The name typed or picked from the list. */
|
|
2723
|
+
name: string;
|
|
2724
|
+
sortBy: BookmarkSortOrder;
|
|
2725
|
+
/** Whether hidden bookmarks (names starting with an underscore) are listed. */
|
|
2726
|
+
showHidden: boolean;
|
|
2727
|
+
}
|
|
2728
|
+
/** Bookmark dialog draft and actions. `apply` is Add. @public */
|
|
2729
|
+
interface UseBookmarkDialogReturn extends UseDialogReturn<BookmarkDialogFields> {
|
|
2730
|
+
/** The bookmarks the list shows, in the chosen order. */
|
|
2731
|
+
readonly rows: ComputedRef<readonly BookmarkSummary[]>;
|
|
2732
|
+
/** Whether Delete and Go To can act on the typed name. */
|
|
2733
|
+
readonly canDelete: ComputedRef<boolean>;
|
|
2734
|
+
readonly canGoTo: ComputedRef<boolean>;
|
|
2735
|
+
/**
|
|
2736
|
+
* How many other places carry the typed bookmark's name, which collaborators adding one name
|
|
2737
|
+
* offline can leave. 0 for a name with one bookmark, or no bookmark.
|
|
2738
|
+
*/
|
|
2739
|
+
readonly duplicates: ComputedRef<number>;
|
|
2740
|
+
remove(): void;
|
|
2741
|
+
goTo(): void;
|
|
2742
|
+
/** Keep the first bookmark with the typed name and remove its copies. */
|
|
2743
|
+
keepFirst(): void;
|
|
2744
|
+
}
|
|
2745
|
+
/** Read the enclosing Bookmark dialog draft. @public */
|
|
2746
|
+
declare function useBookmarkDialog(): UseBookmarkDialogReturn;
|
|
2747
|
+
/** Props for `DocxEditor.BookmarkDialog`. @public */
|
|
2748
|
+
interface DocxEditorBookmarkDialogProps extends DialogCustomizationProps {
|
|
2749
|
+
/** Whether the dialog is shown. The host owns this state. */
|
|
2750
|
+
open: boolean;
|
|
2751
|
+
/** Called on Cancel, Escape, overlay click, and after a successful Add. */
|
|
2752
|
+
onClose: () => void;
|
|
2753
|
+
}
|
|
2754
|
+
/** The Bookmark dialog with replaceable controls and layout. @public */
|
|
2755
|
+
declare const DocxEditorBookmarkDialog: {
|
|
2756
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
2757
|
+
readonly children: PropType<DocxEditorChildren>;
|
|
2758
|
+
readonly open: {
|
|
2759
|
+
readonly type: BooleanConstructor;
|
|
2760
|
+
readonly required: true;
|
|
2761
|
+
};
|
|
2762
|
+
readonly onClose: {
|
|
2763
|
+
readonly type: PropType<() => void>;
|
|
2764
|
+
readonly required: true;
|
|
2765
|
+
};
|
|
2766
|
+
readonly className: {
|
|
2767
|
+
readonly type: StringConstructor;
|
|
2768
|
+
readonly default: undefined;
|
|
2769
|
+
};
|
|
2770
|
+
readonly style: PropType<CSSProperties>;
|
|
2771
|
+
readonly preset: {
|
|
2772
|
+
readonly type: BooleanConstructor;
|
|
2773
|
+
readonly default: true;
|
|
2774
|
+
};
|
|
2775
|
+
}>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
2776
|
+
[key: string]: any;
|
|
2777
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
2778
|
+
readonly className: string;
|
|
2779
|
+
readonly preset: boolean;
|
|
2780
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
2781
|
+
P: {};
|
|
2782
|
+
B: {};
|
|
2783
|
+
D: {};
|
|
2784
|
+
C: {};
|
|
2785
|
+
M: {};
|
|
2786
|
+
Defaults: {};
|
|
2787
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
2788
|
+
readonly children: PropType<DocxEditorChildren>;
|
|
2789
|
+
readonly open: {
|
|
2790
|
+
readonly type: BooleanConstructor;
|
|
2791
|
+
readonly required: true;
|
|
2792
|
+
};
|
|
2793
|
+
readonly onClose: {
|
|
2794
|
+
readonly type: PropType<() => void>;
|
|
2795
|
+
readonly required: true;
|
|
2796
|
+
};
|
|
2797
|
+
readonly className: {
|
|
2798
|
+
readonly type: StringConstructor;
|
|
2799
|
+
readonly default: undefined;
|
|
2800
|
+
};
|
|
2801
|
+
readonly style: PropType<CSSProperties>;
|
|
2802
|
+
readonly preset: {
|
|
2803
|
+
readonly type: BooleanConstructor;
|
|
2804
|
+
readonly default: true;
|
|
2805
|
+
};
|
|
2806
|
+
}>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
2807
|
+
[key: string]: any;
|
|
2808
|
+
}> | null, {}, {}, {}, {
|
|
2809
|
+
readonly className: string;
|
|
2810
|
+
readonly preset: boolean;
|
|
2811
|
+
}>;
|
|
2812
|
+
__isFragment?: never;
|
|
2813
|
+
__isTeleport?: never;
|
|
2814
|
+
__isSuspense?: never;
|
|
2815
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
2816
|
+
readonly children: PropType<DocxEditorChildren>;
|
|
2817
|
+
readonly open: {
|
|
2818
|
+
readonly type: BooleanConstructor;
|
|
2819
|
+
readonly required: true;
|
|
2820
|
+
};
|
|
2821
|
+
readonly onClose: {
|
|
2822
|
+
readonly type: PropType<() => void>;
|
|
2823
|
+
readonly required: true;
|
|
2824
|
+
};
|
|
2825
|
+
readonly className: {
|
|
2826
|
+
readonly type: StringConstructor;
|
|
2827
|
+
readonly default: undefined;
|
|
2828
|
+
};
|
|
2829
|
+
readonly style: PropType<CSSProperties>;
|
|
2830
|
+
readonly preset: {
|
|
2831
|
+
readonly type: BooleanConstructor;
|
|
2832
|
+
readonly default: true;
|
|
2833
|
+
};
|
|
2834
|
+
}>> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
2835
|
+
[key: string]: any;
|
|
2836
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
2837
|
+
readonly className: string;
|
|
2838
|
+
readonly preset: boolean;
|
|
2839
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
2840
|
+
Field: vue.DefineComponent<DialogPartProps & {
|
|
2841
|
+
name: "list" | "name" | "showHidden" | "sortBy";
|
|
2842
|
+
}>;
|
|
2843
|
+
Delete: vue.DefineComponent<DialogPartProps>;
|
|
2844
|
+
GoTo: vue.DefineComponent<DialogPartProps>;
|
|
2845
|
+
/** Shown while the typed name has copies: keep the first, remove the rest. */
|
|
2846
|
+
KeepFirst: vue.DefineComponent<DialogPartProps>;
|
|
2847
|
+
Apply: vue.DefineComponent<DialogPartProps>;
|
|
2848
|
+
Body: vue.DefineComponent<DialogPartProps>;
|
|
2849
|
+
Cancel: vue.DefineComponent<DialogPartProps>;
|
|
2850
|
+
Error: vue.DefineComponent<DialogPartProps>;
|
|
2851
|
+
Footer: vue.DefineComponent<DialogPartProps>;
|
|
2852
|
+
Header: vue.DefineComponent<DialogPartProps>;
|
|
2853
|
+
Reset: vue.DefineComponent<DialogPartProps>;
|
|
2854
|
+
Title: vue.DefineComponent<DialogPartProps>;
|
|
2855
|
+
};
|
|
2856
|
+
|
|
2503
2857
|
/** Shared props for every part. @public */
|
|
2504
2858
|
interface HyperLinkPartProps {
|
|
2505
2859
|
className?: string;
|
|
@@ -5765,6 +6119,8 @@ interface DocxEditorPopups {
|
|
|
5765
6119
|
*/
|
|
5766
6120
|
contentControlPicture?: DocxEditorPopup<DocxEditorContentControlWidgetProps>;
|
|
5767
6121
|
invalidTextFormField?: DocxEditorPopup<DocxEditorInvalidTextFormFieldDialogProps>;
|
|
6122
|
+
/** Why a chosen or pasted picture could not be inserted. False shows nothing. */
|
|
6123
|
+
imageInsertError?: DocxEditorPopup<DocxEditorImageInsertErrorDialogProps>;
|
|
5768
6124
|
imageProperties?: DocxEditorPopup<DocxEditorImagePropertiesDialogProps>;
|
|
5769
6125
|
imageAltText?: DocxEditorPopup<DocxEditorImageAltTextPopupProps>;
|
|
5770
6126
|
noteProperties?: DocxEditorPopup<DocxEditorNotePropertiesDialogProps>;
|
|
@@ -5772,6 +6128,10 @@ interface DocxEditorPopups {
|
|
|
5772
6128
|
notePreview?: DocxEditorPopup<DocxEditorNotePreviewProps>;
|
|
5773
6129
|
pageSetup?: DocxEditorPopup<DocxEditorPageSetupDialogProps>;
|
|
5774
6130
|
paragraph?: DocxEditorPopup<DocxEditorParagraphDialogProps>;
|
|
6131
|
+
/** The Watermark dialog the Insert menu opens. Pass `presets` here to change its text choices. */
|
|
6132
|
+
watermark?: DocxEditorPopup<DocxEditorWatermarkDialogProps>;
|
|
6133
|
+
/** The Bookmark dialog the Insert menu and Ctrl/Cmd+Shift+F5 open. */
|
|
6134
|
+
bookmark?: DocxEditorPopup<DocxEditorBookmarkDialogProps>;
|
|
5775
6135
|
textFormField?: DocxEditorPopup<DocxEditorTextFormFieldDialogProps>;
|
|
5776
6136
|
hyperlink?: DocxEditorPopup<HyperLinkProps>;
|
|
5777
6137
|
contentControl?: DocxEditorPopup<ContentControlProps>;
|
|
@@ -5845,9 +6205,41 @@ interface DocxEditorRootProps {
|
|
|
5845
6205
|
declare function useDocxEditor(): ShallowRef<DocxEditorInstance | null>;
|
|
5846
6206
|
/** @public */
|
|
5847
6207
|
interface ReviewRailRegistry {
|
|
6208
|
+
/**
|
|
6209
|
+
* Review columns registered through `register`: the packaged rail, and any column that
|
|
6210
|
+
* serves comment drafts. The Add comment controls in the toolbar and the context menu
|
|
6211
|
+
* appear only while this is above zero.
|
|
6212
|
+
*/
|
|
5848
6213
|
readonly mounted: number;
|
|
6214
|
+
/**
|
|
6215
|
+
* Register a review column that serves comment drafts. Also reserves the review gutter.
|
|
6216
|
+
* Call it on mount, together with `registerCommentDraft`. Returns the unregister function.
|
|
6217
|
+
*/
|
|
5849
6218
|
readonly register: () => () => void;
|
|
6219
|
+
/**
|
|
6220
|
+
* Claims registered through `reserveGutter`: columns that need the review gutter but
|
|
6221
|
+
* serve no comment draft. The viewport reserves the gutter while `mounted + gutters` is
|
|
6222
|
+
* above zero.
|
|
6223
|
+
*/
|
|
6224
|
+
readonly gutters?: number;
|
|
6225
|
+
/** Reserve the review gutter without showing comment controls. Returns the release. */
|
|
6226
|
+
readonly reserveGutter?: () => () => void;
|
|
6227
|
+
/**
|
|
6228
|
+
* Receive the Add comment requests. The handler takes no arguments: it reads the
|
|
6229
|
+
* selection's position with `getSelectionPlacement`, pins the selection with
|
|
6230
|
+
* `retainSelection`, and opens the pane. Release the pin with `releaseSelection` when the
|
|
6231
|
+
* draft closes or is cancelled. The most recently registered handler receives each request. Do not register
|
|
6232
|
+
* while the column cannot open a draft, such as in viewing mode: a request counts as
|
|
6233
|
+
* served once a handler runs. While a handler is registered, the `review.addComment`
|
|
6234
|
+
* control is enabled. Returns the unregister function.
|
|
6235
|
+
*/
|
|
5850
6236
|
readonly registerCommentDraft: (handler: () => void) => () => void;
|
|
6237
|
+
/**
|
|
6238
|
+
* Send an Add comment request through the `review.addComment` control. The most recent
|
|
6239
|
+
* registration receives it: a handler registered here, or one registered with
|
|
6240
|
+
* `useCommentDraftRequest`. Returns `true` when a handler ran, even if it then opened
|
|
6241
|
+
* nothing, and `false` when the control is disabled.
|
|
6242
|
+
*/
|
|
5851
6243
|
readonly requestCommentDraft: () => boolean;
|
|
5852
6244
|
}
|
|
5853
6245
|
/** @public */
|
|
@@ -6108,57 +6500,170 @@ declare const DocxEditorContent: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6108
6500
|
className: string;
|
|
6109
6501
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6110
6502
|
|
|
6503
|
+
/** Props for `DocxEditorWindow`. @public */
|
|
6504
|
+
interface DocxEditorWindowProps {
|
|
6505
|
+
/** Render the default slot in a pop-out window. While `false`, it renders in place. */
|
|
6506
|
+
open: boolean;
|
|
6507
|
+
/** A same-origin page to open. Defaults to `about:blank`. */
|
|
6508
|
+
url?: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* The window name. Defaults to `docx-editor`. Two `DocxEditorWindow` components with the
|
|
6511
|
+
* same name share one browser window, so give each editor its own name.
|
|
6512
|
+
*/
|
|
6513
|
+
name?: string;
|
|
6514
|
+
/** The `window.open` features. Defaults to `popup,width=1000,height=900`. */
|
|
6515
|
+
features?: string;
|
|
6516
|
+
/** The pop-out's title. */
|
|
6517
|
+
title?: string;
|
|
6518
|
+
/** Copy this page's stylesheets into the window, and keep copying new ones. Default `true`. */
|
|
6519
|
+
styles?: boolean | ((from: Document, to: Document) => () => void);
|
|
6520
|
+
/** The pop-out went away (the user closed it, or the browser blocked it). The `close` event. */
|
|
6521
|
+
onClose?: () => void;
|
|
6522
|
+
/** The editor panel: toolbar, viewport and content, or any part of them. */
|
|
6523
|
+
children?: DocxEditorChildren;
|
|
6524
|
+
}
|
|
6111
6525
|
/**
|
|
6112
|
-
*
|
|
6113
|
-
*
|
|
6114
|
-
*
|
|
6526
|
+
* Render the editor panel in its own browser window while `open` is `true`.
|
|
6527
|
+
*
|
|
6528
|
+
* Place it inside `DocxEditorRoot` around the parts to pop out. The root stays in this
|
|
6529
|
+
* window, so the editor moves into the pop-out and back with its undo history, selection and
|
|
6530
|
+
* collaboration session. The window gets this page's stylesheets. When the user closes it,
|
|
6531
|
+
* the panel comes back and the component emits `update:open` with `false` and `close`.
|
|
6115
6532
|
*
|
|
6533
|
+
* The panel remounts on each move, which is what moves the editor; it is never retargeted.
|
|
6534
|
+
*
|
|
6535
|
+
* @example
|
|
6116
6536
|
* ```vue
|
|
6117
|
-
* <
|
|
6118
|
-
* <
|
|
6119
|
-
*
|
|
6537
|
+
* <DocxEditorRoot :document="bytes">
|
|
6538
|
+
* <button @click="popped = !popped">Pop out</button>
|
|
6539
|
+
* <DocxEditorWindow v-model:open="popped">
|
|
6540
|
+
* <DocxEditorToolbar />
|
|
6541
|
+
* <DocxEditorViewport>
|
|
6542
|
+
* <DocxEditorContent />
|
|
6543
|
+
* </DocxEditorViewport>
|
|
6544
|
+
* </DocxEditorWindow>
|
|
6545
|
+
* </DocxEditorRoot>
|
|
6120
6546
|
* ```
|
|
6121
6547
|
*
|
|
6122
6548
|
* @public
|
|
6123
6549
|
*/
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
indicator?: DocxEditorChildren;
|
|
6131
|
-
/** The default slot: the whole first loading screen. */
|
|
6132
|
-
children?: DocxEditorChildren;
|
|
6133
|
-
}
|
|
6134
|
-
/** Props for `DocxEditor.Loading.Spinner`. @public */
|
|
6135
|
-
interface DocxEditorLoadingSpinnerProps {
|
|
6136
|
-
className?: string;
|
|
6137
|
-
}
|
|
6138
|
-
/** @public */
|
|
6139
|
-
declare const DocxEditorLoadingSpinner: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6140
|
-
className: {
|
|
6550
|
+
declare const DocxEditorWindow: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6551
|
+
open: {
|
|
6552
|
+
type: BooleanConstructor;
|
|
6553
|
+
required: true;
|
|
6554
|
+
};
|
|
6555
|
+
url: {
|
|
6141
6556
|
type: StringConstructor;
|
|
6142
6557
|
default: undefined;
|
|
6143
6558
|
};
|
|
6144
|
-
|
|
6145
|
-
[key: string]: any;
|
|
6146
|
-
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
6147
|
-
className: {
|
|
6559
|
+
name: {
|
|
6148
6560
|
type: StringConstructor;
|
|
6149
6561
|
default: undefined;
|
|
6150
6562
|
};
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
}
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6563
|
+
features: {
|
|
6564
|
+
type: StringConstructor;
|
|
6565
|
+
default: undefined;
|
|
6566
|
+
};
|
|
6567
|
+
title: {
|
|
6568
|
+
type: StringConstructor;
|
|
6569
|
+
default: undefined;
|
|
6570
|
+
};
|
|
6571
|
+
styles: {
|
|
6572
|
+
type: PropType<DocxEditorWindowProps['styles']>;
|
|
6573
|
+
default: undefined;
|
|
6574
|
+
};
|
|
6575
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
6576
|
+
[key: string]: any;
|
|
6577
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
6578
|
+
'update:open': (_open: boolean) => true;
|
|
6579
|
+
close: () => true;
|
|
6580
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
6581
|
+
open: {
|
|
6582
|
+
type: BooleanConstructor;
|
|
6583
|
+
required: true;
|
|
6584
|
+
};
|
|
6585
|
+
url: {
|
|
6586
|
+
type: StringConstructor;
|
|
6587
|
+
default: undefined;
|
|
6588
|
+
};
|
|
6589
|
+
name: {
|
|
6590
|
+
type: StringConstructor;
|
|
6591
|
+
default: undefined;
|
|
6592
|
+
};
|
|
6593
|
+
features: {
|
|
6594
|
+
type: StringConstructor;
|
|
6595
|
+
default: undefined;
|
|
6596
|
+
};
|
|
6597
|
+
title: {
|
|
6598
|
+
type: StringConstructor;
|
|
6599
|
+
default: undefined;
|
|
6600
|
+
};
|
|
6601
|
+
styles: {
|
|
6602
|
+
type: PropType<DocxEditorWindowProps['styles']>;
|
|
6603
|
+
default: undefined;
|
|
6604
|
+
};
|
|
6605
|
+
}>> & Readonly<{
|
|
6606
|
+
onClose?: (() => any) | undefined;
|
|
6607
|
+
"onUpdate:open"?: ((_open: boolean) => any) | undefined;
|
|
6608
|
+
}>, {
|
|
6609
|
+
url: string;
|
|
6610
|
+
name: string;
|
|
6611
|
+
features: string;
|
|
6612
|
+
title: string;
|
|
6613
|
+
styles: boolean | ((from: Document, to: Document) => () => void) | undefined;
|
|
6614
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6615
|
+
|
|
6616
|
+
/**
|
|
6617
|
+
* Props for `DocxEditor.Loading`. Two slots replace parts of the packaged screen: `indicator`
|
|
6618
|
+
* replaces only the spinner and, with `overlay`, moves onto the document's first page while a
|
|
6619
|
+
* large document lays out its remaining pages; `default` replaces the whole first screen.
|
|
6620
|
+
*
|
|
6621
|
+
* ```vue
|
|
6622
|
+
* <DocxEditor.Loading overlay>
|
|
6623
|
+
* <template #indicator><MyLogoSpinner label="Opening document" /></template>
|
|
6624
|
+
* </DocxEditor.Loading>
|
|
6625
|
+
* ```
|
|
6626
|
+
*
|
|
6627
|
+
* @public
|
|
6628
|
+
*/
|
|
6629
|
+
interface DocxEditorLoadingProps {
|
|
6630
|
+
when?: boolean;
|
|
6631
|
+
overlay?: boolean;
|
|
6632
|
+
className?: string;
|
|
6633
|
+
style?: CSSProperties;
|
|
6634
|
+
/** The `indicator` slot: your own indicator, in place of the packaged spinner. */
|
|
6635
|
+
indicator?: DocxEditorChildren;
|
|
6636
|
+
/** The default slot: the whole first loading screen. */
|
|
6637
|
+
children?: DocxEditorChildren;
|
|
6638
|
+
}
|
|
6639
|
+
/** Props for `DocxEditor.Loading.Spinner`. @public */
|
|
6640
|
+
interface DocxEditorLoadingSpinnerProps {
|
|
6641
|
+
className?: string;
|
|
6642
|
+
}
|
|
6643
|
+
/** @public */
|
|
6644
|
+
declare const DocxEditorLoadingSpinner: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6645
|
+
className: {
|
|
6646
|
+
type: StringConstructor;
|
|
6647
|
+
default: undefined;
|
|
6648
|
+
};
|
|
6649
|
+
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
6650
|
+
[key: string]: any;
|
|
6651
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
6652
|
+
className: {
|
|
6653
|
+
type: StringConstructor;
|
|
6654
|
+
default: undefined;
|
|
6655
|
+
};
|
|
6656
|
+
}>> & Readonly<{}>, {
|
|
6657
|
+
className: string;
|
|
6658
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6659
|
+
/** @public */
|
|
6660
|
+
interface DocxEditorLoadingComponent {
|
|
6661
|
+
(props: DocxEditorLoadingProps): VNode;
|
|
6662
|
+
readonly Spinner: typeof DocxEditorLoadingSpinner;
|
|
6663
|
+
}
|
|
6664
|
+
/** @public */
|
|
6665
|
+
declare const DocxEditorLoading: DocxEditorLoadingComponent;
|
|
6666
|
+
|
|
6162
6667
|
/** @public */
|
|
6163
6668
|
interface ToolbarButtonProps {
|
|
6164
6669
|
/**
|
|
@@ -6657,9 +7162,7 @@ declare const ToolbarAddComment: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6657
7162
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6658
7163
|
|
|
6659
7164
|
/** @public */
|
|
6660
|
-
declare const ImageInsertProvider: vue.DefineComponent<{}, () => vue.
|
|
6661
|
-
[key: string]: any;
|
|
6662
|
-
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
7165
|
+
declare const ImageInsertProvider: vue.DefineComponent<{}, () => (DocxEditorChildren | null)[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6663
7166
|
/** @public */
|
|
6664
7167
|
declare const ImageInsertTrigger: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6665
7168
|
className: {
|
|
@@ -7351,6 +7854,112 @@ interface DocxEditorToolbarNamespace {
|
|
|
7351
7854
|
/** @public */
|
|
7352
7855
|
declare const DocxEditorToolbar: DocxEditorToolbarNamespace;
|
|
7353
7856
|
|
|
7857
|
+
/** Insert › Watermark, so a host can hide it or place it elsewhere by name. @public */
|
|
7858
|
+
declare const MenuWatermark: {
|
|
7859
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
7860
|
+
className: {
|
|
7861
|
+
type: StringConstructor;
|
|
7862
|
+
default: undefined;
|
|
7863
|
+
};
|
|
7864
|
+
hidden: {
|
|
7865
|
+
type: BooleanConstructor;
|
|
7866
|
+
default: undefined;
|
|
7867
|
+
};
|
|
7868
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
7869
|
+
className: string;
|
|
7870
|
+
hidden: boolean;
|
|
7871
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
7872
|
+
P: {};
|
|
7873
|
+
B: {};
|
|
7874
|
+
D: {};
|
|
7875
|
+
C: {};
|
|
7876
|
+
M: {};
|
|
7877
|
+
Defaults: {};
|
|
7878
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
7879
|
+
className: {
|
|
7880
|
+
type: StringConstructor;
|
|
7881
|
+
default: undefined;
|
|
7882
|
+
};
|
|
7883
|
+
hidden: {
|
|
7884
|
+
type: BooleanConstructor;
|
|
7885
|
+
default: undefined;
|
|
7886
|
+
};
|
|
7887
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
|
|
7888
|
+
className: string;
|
|
7889
|
+
hidden: boolean;
|
|
7890
|
+
}>;
|
|
7891
|
+
__isFragment?: never;
|
|
7892
|
+
__isTeleport?: never;
|
|
7893
|
+
__isSuspense?: never;
|
|
7894
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
7895
|
+
className: {
|
|
7896
|
+
type: StringConstructor;
|
|
7897
|
+
default: undefined;
|
|
7898
|
+
};
|
|
7899
|
+
hidden: {
|
|
7900
|
+
type: BooleanConstructor;
|
|
7901
|
+
default: undefined;
|
|
7902
|
+
};
|
|
7903
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
7904
|
+
className: string;
|
|
7905
|
+
hidden: boolean;
|
|
7906
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
7907
|
+
docxSlot: 'insert.watermark';
|
|
7908
|
+
};
|
|
7909
|
+
|
|
7910
|
+
/** Insert › Bookmark, so a host can hide it or place it elsewhere by name. @public */
|
|
7911
|
+
declare const MenuBookmark: {
|
|
7912
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
|
|
7913
|
+
className: {
|
|
7914
|
+
type: StringConstructor;
|
|
7915
|
+
default: undefined;
|
|
7916
|
+
};
|
|
7917
|
+
hidden: {
|
|
7918
|
+
type: BooleanConstructor;
|
|
7919
|
+
default: undefined;
|
|
7920
|
+
};
|
|
7921
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
|
|
7922
|
+
className: string;
|
|
7923
|
+
hidden: boolean;
|
|
7924
|
+
}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
7925
|
+
P: {};
|
|
7926
|
+
B: {};
|
|
7927
|
+
D: {};
|
|
7928
|
+
C: {};
|
|
7929
|
+
M: {};
|
|
7930
|
+
Defaults: {};
|
|
7931
|
+
}, Readonly<vue.ExtractPropTypes<{
|
|
7932
|
+
className: {
|
|
7933
|
+
type: StringConstructor;
|
|
7934
|
+
default: undefined;
|
|
7935
|
+
};
|
|
7936
|
+
hidden: {
|
|
7937
|
+
type: BooleanConstructor;
|
|
7938
|
+
default: undefined;
|
|
7939
|
+
};
|
|
7940
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, {
|
|
7941
|
+
className: string;
|
|
7942
|
+
hidden: boolean;
|
|
7943
|
+
}>;
|
|
7944
|
+
__isFragment?: never;
|
|
7945
|
+
__isTeleport?: never;
|
|
7946
|
+
__isSuspense?: never;
|
|
7947
|
+
} & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
|
|
7948
|
+
className: {
|
|
7949
|
+
type: StringConstructor;
|
|
7950
|
+
default: undefined;
|
|
7951
|
+
};
|
|
7952
|
+
hidden: {
|
|
7953
|
+
type: BooleanConstructor;
|
|
7954
|
+
default: undefined;
|
|
7955
|
+
};
|
|
7956
|
+
}>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
|
|
7957
|
+
className: string;
|
|
7958
|
+
hidden: boolean;
|
|
7959
|
+
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
7960
|
+
docxSlot: 'insert.bookmark';
|
|
7961
|
+
};
|
|
7962
|
+
|
|
7354
7963
|
/** Props for `DocxEditor.Menu.ReportIssue`. @public */
|
|
7355
7964
|
interface MenuReportIssueProps {
|
|
7356
7965
|
className?: string;
|
|
@@ -7546,6 +8155,10 @@ interface DocxEditorMenuNamespace {
|
|
|
7546
8155
|
readonly Print: typeof MenuPrint;
|
|
7547
8156
|
readonly PageSetup: typeof MenuPageSetup;
|
|
7548
8157
|
readonly ImageInsert: typeof MenuImageInsert;
|
|
8158
|
+
/** Insert › Watermark, so a host can hide it or place it elsewhere by name. */
|
|
8159
|
+
readonly Watermark: typeof MenuWatermark;
|
|
8160
|
+
/** Insert › Bookmark, so a host can hide it or place it elsewhere by name. */
|
|
8161
|
+
readonly Bookmark: typeof MenuBookmark;
|
|
7549
8162
|
readonly Reviewers: typeof MenuReviewers;
|
|
7550
8163
|
readonly ReportIssue: typeof MenuReportIssue;
|
|
7551
8164
|
}
|
|
@@ -7717,7 +8330,7 @@ interface UseDocumentSearchResult {
|
|
|
7717
8330
|
declare function useDocumentSearch(options?: MaybeRefOrGetter<UseDocumentSearchOptions>): UseDocumentSearchResult;
|
|
7718
8331
|
|
|
7719
8332
|
/** @public */
|
|
7720
|
-
type NavigationTab$1 = 'headings' | 'find';
|
|
8333
|
+
type NavigationTab$1 = 'headings' | 'find' | 'goto';
|
|
7721
8334
|
/** @public */
|
|
7722
8335
|
interface UseNavigationPaneOptions {
|
|
7723
8336
|
defaultOpen?: boolean;
|
|
@@ -7747,6 +8360,35 @@ interface UseNavigationPaneResult {
|
|
|
7747
8360
|
/** @public */
|
|
7748
8361
|
declare function useNavigationPane(options?: MaybeRefOrGetter$1<UseNavigationPaneOptions>): UseNavigationPaneResult;
|
|
7749
8362
|
|
|
8363
|
+
/**
|
|
8364
|
+
* The Bookmarks panel: a bookmark search box, the sort order and hidden-bookmarks toggle, and
|
|
8365
|
+
* the bookmarks it offers, grouped by place when sorted by location.
|
|
8366
|
+
*
|
|
8367
|
+
* @public
|
|
8368
|
+
*/
|
|
8369
|
+
declare const NavigationGoTo: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
8370
|
+
className: {
|
|
8371
|
+
type: StringConstructor;
|
|
8372
|
+
default: undefined;
|
|
8373
|
+
};
|
|
8374
|
+
style: {
|
|
8375
|
+
type: PropType<CSSProperties>;
|
|
8376
|
+
default: undefined;
|
|
8377
|
+
};
|
|
8378
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
8379
|
+
className: {
|
|
8380
|
+
type: StringConstructor;
|
|
8381
|
+
default: undefined;
|
|
8382
|
+
};
|
|
8383
|
+
style: {
|
|
8384
|
+
type: PropType<CSSProperties>;
|
|
8385
|
+
default: undefined;
|
|
8386
|
+
};
|
|
8387
|
+
}>> & Readonly<{}>, {
|
|
8388
|
+
className: string;
|
|
8389
|
+
style: CSSProperties;
|
|
8390
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
8391
|
+
|
|
7750
8392
|
/** Shared props for the pane's structural parts. @public */
|
|
7751
8393
|
interface NavigationPartProps {
|
|
7752
8394
|
className?: string;
|
|
@@ -7970,6 +8612,12 @@ interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
|
|
|
7970
8612
|
* browser's own search. Set `false` to leave the shortcut to the browser everywhere.
|
|
7971
8613
|
*/
|
|
7972
8614
|
findShortcut?: boolean;
|
|
8615
|
+
/**
|
|
8616
|
+
* Whether Ctrl+G (Cmd+Option+G on macOS) opens the pane on the Go to tab. Defaults to
|
|
8617
|
+
* `true`, and applies only while focus is in this editor. The `openGoTo` editor command
|
|
8618
|
+
* opens the tab either way.
|
|
8619
|
+
*/
|
|
8620
|
+
goToShortcut?: boolean;
|
|
7973
8621
|
className?: string;
|
|
7974
8622
|
style?: CSSProperties;
|
|
7975
8623
|
children?: DocxEditorChildren;
|
|
@@ -7984,6 +8632,7 @@ interface DocxEditorNavigationNamespace {
|
|
|
7984
8632
|
readonly Tab: typeof NavigationTab;
|
|
7985
8633
|
readonly Headings: typeof NavigationHeadings;
|
|
7986
8634
|
readonly Find: typeof NavigationFind;
|
|
8635
|
+
readonly GoTo: typeof NavigationGoTo;
|
|
7987
8636
|
readonly Toggle: typeof NavigationToggle;
|
|
7988
8637
|
}
|
|
7989
8638
|
/** @public */
|
|
@@ -7991,6 +8640,64 @@ declare const DocxEditorNavigation: DocxEditorNavigationNamespace;
|
|
|
7991
8640
|
/** Alias matching React export name. */
|
|
7992
8641
|
declare const Navigation: DocxEditorNavigationNamespace;
|
|
7993
8642
|
|
|
8643
|
+
/**
|
|
8644
|
+
* Why a Go To jump did not happen: nothing was typed, no bookmark has the name, or the editor
|
|
8645
|
+
* refused the jump for another reason (it is not ready, or the story could not be shown).
|
|
8646
|
+
*
|
|
8647
|
+
* @public
|
|
8648
|
+
*/
|
|
8649
|
+
type GoToBookmarkProblem = 'empty' | 'notFound' | 'failed';
|
|
8650
|
+
/** How `useGoToBookmark` is configured. @public */
|
|
8651
|
+
interface UseGoToBookmarkOptions {
|
|
8652
|
+
/**
|
|
8653
|
+
* Whether to read the document's bookmarks. Defaults to `true`. Pass `false` while your UI
|
|
8654
|
+
* is hidden: the list is then empty and the document is not read on each change. Pass the
|
|
8655
|
+
* options as a getter or a ref to change it; the list is read again when it turns true.
|
|
8656
|
+
*/
|
|
8657
|
+
readonly enabled?: boolean;
|
|
8658
|
+
}
|
|
8659
|
+
/** What `useGoToBookmark` returns. @public */
|
|
8660
|
+
interface UseGoToBookmarkReturn {
|
|
8661
|
+
/** The text in the name box. Use `setQuery` to change it. */
|
|
8662
|
+
readonly query: Readonly<ShallowRef<string>>;
|
|
8663
|
+
/** Change the text. The highlight goes back to none. */
|
|
8664
|
+
readonly setQuery: (query: string) => void;
|
|
8665
|
+
readonly sortBy: Readonly<ShallowRef<BookmarkSortOrder>>;
|
|
8666
|
+
readonly setSortBy: (sortBy: BookmarkSortOrder) => void;
|
|
8667
|
+
/** Whether hidden bookmarks (names starting with an underscore) are offered. */
|
|
8668
|
+
readonly showHidden: Readonly<ShallowRef<boolean>>;
|
|
8669
|
+
readonly setShowHidden: (showHidden: boolean) => void;
|
|
8670
|
+
/** The bookmarks offered for the query: names that start with it first. */
|
|
8671
|
+
readonly rows: ComputedRef<readonly BookmarkSummary[]>;
|
|
8672
|
+
/** Every bookmark the document declares, hidden ones included. Empty while disabled. */
|
|
8673
|
+
readonly bookmarks: Readonly<ShallowRef<readonly BookmarkSummary[]>>;
|
|
8674
|
+
/**
|
|
8675
|
+
* Index into `rows` of the highlighted row, or -1 when none is. The highlight follows its
|
|
8676
|
+
* bookmark when rows move, and clears when that bookmark goes away.
|
|
8677
|
+
*/
|
|
8678
|
+
readonly activeIndex: ComputedRef<number>;
|
|
8679
|
+
/** Move the highlight by `delta` rows, wrapping at either end. */
|
|
8680
|
+
readonly move: (delta: number) => void;
|
|
8681
|
+
/** Highlight the row at `index` of `rows`, or none with -1. */
|
|
8682
|
+
readonly setActiveIndex: (index: number) => void;
|
|
8683
|
+
/**
|
|
8684
|
+
* Jump to `name`, or else to what the name box means: the highlighted row, the bookmark
|
|
8685
|
+
* named exactly as typed, or the first row offered. Answers the `goToBookmark` result and
|
|
8686
|
+
* sets `problem` when it is refused.
|
|
8687
|
+
*/
|
|
8688
|
+
readonly go: (name?: string) => ExecResult;
|
|
8689
|
+
/** Why the last jump did not happen, or null. Cleared when the query changes. */
|
|
8690
|
+
readonly problem: Readonly<ShallowRef<GoToBookmarkProblem | null>>;
|
|
8691
|
+
/** The name the last refused jump asked for, for a message. Empty when nothing was typed. */
|
|
8692
|
+
readonly problemName: Readonly<ShallowRef<string>>;
|
|
8693
|
+
}
|
|
8694
|
+
/**
|
|
8695
|
+
* Go To for bookmarks: filter by name, move through the offered rows, and jump.
|
|
8696
|
+
*
|
|
8697
|
+
* @public
|
|
8698
|
+
*/
|
|
8699
|
+
declare function useGoToBookmark(options?: MaybeRefOrGetter$1<UseGoToBookmarkOptions>): UseGoToBookmarkReturn;
|
|
8700
|
+
|
|
7994
8701
|
/** @public */
|
|
7995
8702
|
type OutlineHeading$1 = ReturnType<Editor['getOutline']>[number];
|
|
7996
8703
|
/** @public */
|
|
@@ -8174,6 +8881,193 @@ declare const DocxEditorFontNotice: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
8174
8881
|
t: TFunction;
|
|
8175
8882
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
8176
8883
|
|
|
8884
|
+
/** The current refused open, with the packaged message and a way to dismiss it. @public */
|
|
8885
|
+
interface UseOpenFailureReturn {
|
|
8886
|
+
/** The refused open, or `null` when there is none or the person dismissed it. */
|
|
8887
|
+
readonly failure: ComputedRef<DocumentOpenFailure | null>;
|
|
8888
|
+
/** The packaged, translated message for {@link UseOpenFailureReturn.failure}. */
|
|
8889
|
+
readonly message: ComputedRef<string | null>;
|
|
8890
|
+
/**
|
|
8891
|
+
* Hide this refusal. A later refusal shows again, even for the same file. Pass the failure
|
|
8892
|
+
* your UI showed, such as from a toast's close callback, so a late call cannot hide a newer
|
|
8893
|
+
* refusal. It also works as a click handler directly, such as `onClick={dismiss}`: an event
|
|
8894
|
+
* hides the refusal on screen.
|
|
8895
|
+
*/
|
|
8896
|
+
dismiss(failure?: DocumentOpenFailure | Event | {
|
|
8897
|
+
readonly nativeEvent: Event;
|
|
8898
|
+
}): void;
|
|
8899
|
+
}
|
|
8900
|
+
/** Options for {@link useOpenFailure}. @public */
|
|
8901
|
+
interface UseOpenFailureOptions {
|
|
8902
|
+
/** Translator override; defaults to the ambient locale context. */
|
|
8903
|
+
t?: TFunction;
|
|
8904
|
+
}
|
|
8905
|
+
/**
|
|
8906
|
+
* Reads the document the editor refused to open, for a host that shows it in its own UI,
|
|
8907
|
+
* such as a toast. Pair it with `:open-failure="false"` on `<DocxEditor>`, so the packaged
|
|
8908
|
+
* dialog does not show as well. Call it inside a `DocxEditor.Root`.
|
|
8909
|
+
*
|
|
8910
|
+
* ```ts
|
|
8911
|
+
* const { failure, message, dismiss } = useOpenFailure();
|
|
8912
|
+
* watch(failure, (next) => {
|
|
8913
|
+
* if (next) toast(message.value, { detail: next.code, onClose: () => dismiss(next) });
|
|
8914
|
+
* });
|
|
8915
|
+
* ```
|
|
8916
|
+
*
|
|
8917
|
+
* @public
|
|
8918
|
+
*/
|
|
8919
|
+
declare function useOpenFailure(options?: UseOpenFailureOptions): UseOpenFailureReturn;
|
|
8920
|
+
/** What the `actions` and `default` slots receive. @public */
|
|
8921
|
+
interface DocxEditorOpenFailureContext {
|
|
8922
|
+
/** The refused open: its stable `code` and its `reason`. */
|
|
8923
|
+
readonly failure: DocumentOpenFailure;
|
|
8924
|
+
/** The packaged, translated message for the failure. */
|
|
8925
|
+
readonly message: string;
|
|
8926
|
+
/** Close the dialog. It emits `dismiss`, as **Close** does. */
|
|
8927
|
+
dismiss(): void;
|
|
8928
|
+
}
|
|
8929
|
+
/** Props for `DocxEditor.OpenFailure.Action`. @public */
|
|
8930
|
+
interface DocxEditorOpenFailureActionProps {
|
|
8931
|
+
/** `primary` is filled, `secondary` is outlined. Defaults to `secondary`. */
|
|
8932
|
+
variant?: 'primary' | 'secondary';
|
|
8933
|
+
/** Close the dialog after the click handler runs, unless it called `preventDefault()`. */
|
|
8934
|
+
dismiss?: boolean;
|
|
8935
|
+
/** Render your own element, such as a link, with the button's classes and handler. */
|
|
8936
|
+
asChild?: boolean;
|
|
8937
|
+
/** The `default` slot: the button label, or with `asChild` your own element. */
|
|
8938
|
+
children?: DocxEditorChildren;
|
|
8939
|
+
}
|
|
8940
|
+
/**
|
|
8941
|
+
* A button in the open-failure dialog, styled as the packaged **Close**. Use it in the
|
|
8942
|
+
* `actions` slot, or in your own `default` slot. With `as-child`, it styles your own element
|
|
8943
|
+
* instead, such as a link to your support page:
|
|
8944
|
+
*
|
|
8945
|
+
* ```vue
|
|
8946
|
+
* <DocxEditor.OpenFailure>
|
|
8947
|
+
* <template #actions="{ failure }">
|
|
8948
|
+
* <DocxEditor.OpenFailure.Action as-child>
|
|
8949
|
+
* <a :href="`/support?code=${failure.code}`">Get help</a>
|
|
8950
|
+
* </DocxEditor.OpenFailure.Action>
|
|
8951
|
+
* </template>
|
|
8952
|
+
* </DocxEditor.OpenFailure>
|
|
8953
|
+
* ```
|
|
8954
|
+
*
|
|
8955
|
+
* @public
|
|
8956
|
+
*/
|
|
8957
|
+
declare const DocxEditorOpenFailureAction: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
8958
|
+
variant: {
|
|
8959
|
+
type: PropType<'primary' | 'secondary'>;
|
|
8960
|
+
default: string;
|
|
8961
|
+
};
|
|
8962
|
+
dismiss: {
|
|
8963
|
+
type: BooleanConstructor;
|
|
8964
|
+
default: boolean;
|
|
8965
|
+
};
|
|
8966
|
+
asChild: {
|
|
8967
|
+
type: BooleanConstructor;
|
|
8968
|
+
default: boolean;
|
|
8969
|
+
};
|
|
8970
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
8971
|
+
variant: {
|
|
8972
|
+
type: PropType<'primary' | 'secondary'>;
|
|
8973
|
+
default: string;
|
|
8974
|
+
};
|
|
8975
|
+
dismiss: {
|
|
8976
|
+
type: BooleanConstructor;
|
|
8977
|
+
default: boolean;
|
|
8978
|
+
};
|
|
8979
|
+
asChild: {
|
|
8980
|
+
type: BooleanConstructor;
|
|
8981
|
+
default: boolean;
|
|
8982
|
+
};
|
|
8983
|
+
}>> & Readonly<{}>, {
|
|
8984
|
+
variant: "primary" | "secondary";
|
|
8985
|
+
dismiss: boolean;
|
|
8986
|
+
asChild: boolean;
|
|
8987
|
+
}, SlotsType<{
|
|
8988
|
+
default?: () => VNode[];
|
|
8989
|
+
}>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
8990
|
+
/**
|
|
8991
|
+
* A message for the open-failure dialog: text, content, or a function of the failure. It
|
|
8992
|
+
* renders in a `div`, so block content is valid.
|
|
8993
|
+
*
|
|
8994
|
+
* @public
|
|
8995
|
+
*/
|
|
8996
|
+
type DocxEditorOpenFailureMessage = string | DocxEditorChildren | ((failure: DocumentOpenFailure) => string | DocxEditorChildren);
|
|
8997
|
+
/** Props for `DocxEditor.OpenFailure`. @public */
|
|
8998
|
+
interface DocxEditorOpenFailureProps {
|
|
8999
|
+
/**
|
|
9000
|
+
* The dialog title. Defaults to the translated `openFailure.title`. It also names the dialog
|
|
9001
|
+
* for screen readers, including when your own content replaces the packaged one.
|
|
9002
|
+
*/
|
|
9003
|
+
title?: string;
|
|
9004
|
+
/** Your own message in place of the packaged one, as content or per failure. */
|
|
9005
|
+
message?: DocxEditorOpenFailureMessage;
|
|
9006
|
+
/** Show the stable error code under the message. Defaults to `true`. */
|
|
9007
|
+
showCode?: boolean;
|
|
9008
|
+
/** The label of the **Close** button. Defaults to the translated `common.close`. */
|
|
9009
|
+
closeLabel?: string;
|
|
9010
|
+
/**
|
|
9011
|
+
* Show the packaged **Close** button. Defaults to `true`. Turn it off only when the
|
|
9012
|
+
* `actions` slot gives a way out. Escape still closes the dialog.
|
|
9013
|
+
*/
|
|
9014
|
+
showClose?: boolean;
|
|
9015
|
+
/** The `actions` slot: your own buttons, before **Close**. */
|
|
9016
|
+
actions?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
|
|
9017
|
+
/** Listener for the `dismiss` event: the person closed the dialog, by any route. */
|
|
9018
|
+
onDismiss?: (failure: DocumentOpenFailure) => void;
|
|
9019
|
+
/** The `default` slot: your own dialog content, in place of the header, body and footer. */
|
|
9020
|
+
children?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
|
|
9021
|
+
/** Appended after the load-bearing `docx-dialog` class. */
|
|
9022
|
+
className?: string;
|
|
9023
|
+
/** Inline styles for the dialog element. */
|
|
9024
|
+
style?: CSSProperties;
|
|
9025
|
+
/** Translator override; defaults to the ambient locale context. */
|
|
9026
|
+
t?: TFunction;
|
|
9027
|
+
}
|
|
9028
|
+
/**
|
|
9029
|
+
* The open-failure part with its button attached as a static.
|
|
9030
|
+
*
|
|
9031
|
+
* @public
|
|
9032
|
+
*/
|
|
9033
|
+
interface DocxEditorOpenFailureComponent {
|
|
9034
|
+
/**
|
|
9035
|
+
* Renders the dialog while a refused open is waiting, and nothing otherwise. The second
|
|
9036
|
+
* parameter types the `default` and `actions` slots for templates.
|
|
9037
|
+
*/
|
|
9038
|
+
(props: DocxEditorOpenFailureProps, context?: {
|
|
9039
|
+
slots: {
|
|
9040
|
+
default?: (context: DocxEditorOpenFailureContext) => VNode[];
|
|
9041
|
+
actions?: (context: DocxEditorOpenFailureContext) => VNode[];
|
|
9042
|
+
};
|
|
9043
|
+
}): VNode;
|
|
9044
|
+
/** A button styled for the dialog, for the `actions` and `default` slots. */
|
|
9045
|
+
readonly Action: typeof DocxEditorOpenFailureAction;
|
|
9046
|
+
}
|
|
9047
|
+
/**
|
|
9048
|
+
* A dialog that explains why a file did not open. It shows nothing until the editor refuses a
|
|
9049
|
+
* document, and shows again for each later refusal. `<DocxEditor>` renders it by default;
|
|
9050
|
+
* compose it yourself inside a `DocxEditor.Root`. The `actions` slot adds your own buttons
|
|
9051
|
+
* before **Close**, and the `default` slot replaces the whole content. Both receive
|
|
9052
|
+
* `{ failure, message, dismiss }`.
|
|
9053
|
+
*
|
|
9054
|
+
* ```vue
|
|
9055
|
+
* <DocxEditor.OpenFailure @dismiss="onClosed">
|
|
9056
|
+
* <template #actions="{ failure, dismiss }">
|
|
9057
|
+
* <DocxEditor.OpenFailure.Action variant="primary" @click="report(failure.code); dismiss()">
|
|
9058
|
+
* Report
|
|
9059
|
+
* </DocxEditor.OpenFailure.Action>
|
|
9060
|
+
* </template>
|
|
9061
|
+
* </DocxEditor.OpenFailure>
|
|
9062
|
+
* ```
|
|
9063
|
+
*
|
|
9064
|
+
* The packaged message is generic and names no contact. For a toast or banner instead of a
|
|
9065
|
+
* dialog, use `useOpenFailure`.
|
|
9066
|
+
*
|
|
9067
|
+
* @public
|
|
9068
|
+
*/
|
|
9069
|
+
declare const DocxEditorOpenFailure: DocxEditorOpenFailureComponent;
|
|
9070
|
+
|
|
8177
9071
|
/** Props for `DocxEditor.HeaderFooterChrome`. @public */
|
|
8178
9072
|
interface DocxEditorHeaderFooterChromeProps {
|
|
8179
9073
|
className?: string;
|
|
@@ -8240,6 +9134,14 @@ interface DocxEditorProps {
|
|
|
8240
9134
|
* to the browser.
|
|
8241
9135
|
*/
|
|
8242
9136
|
navigation?: boolean | DocxEditorNavigationProps;
|
|
9137
|
+
/**
|
|
9138
|
+
* The dialog that explains a file the editor refused to open, on by default. A refused
|
|
9139
|
+
* open leaves the pages blank, so without it the reader sees nothing. An object is
|
|
9140
|
+
* `DocxEditorOpenFailureProps`, passed straight through. `false` removes the dialog, for a
|
|
9141
|
+
* host that reports the failure itself through `useOpenFailure`. For your own buttons, use
|
|
9142
|
+
* the `openFailureActions` slot.
|
|
9143
|
+
*/
|
|
9144
|
+
openFailure?: boolean | DocxEditorOpenFailureProps;
|
|
8243
9145
|
rulers?: boolean;
|
|
8244
9146
|
document?: DocumentSource;
|
|
8245
9147
|
/** Live host mode. */
|
|
@@ -8301,7 +9203,19 @@ interface DocxEditorRef {
|
|
|
8301
9203
|
|
|
8302
9204
|
/** @public */
|
|
8303
9205
|
interface DocxEditorNamespace {
|
|
8304
|
-
|
|
9206
|
+
/**
|
|
9207
|
+
* The packaged editor. The second parameter types its slots for templates:
|
|
9208
|
+
* `#openFailureActions` receives the refused open, the packaged message, and `dismiss`.
|
|
9209
|
+
*/
|
|
9210
|
+
(props: DocxEditorProps, context?: {
|
|
9211
|
+
slots: {
|
|
9212
|
+
default?: () => VNode[];
|
|
9213
|
+
titleBarLeft?: () => VNode[];
|
|
9214
|
+
titleBarRight?: () => VNode[];
|
|
9215
|
+
loadingIndicator?: () => VNode[];
|
|
9216
|
+
openFailureActions?: (context: DocxEditorOpenFailureContext) => VNode[];
|
|
9217
|
+
};
|
|
9218
|
+
}): VNode;
|
|
8305
9219
|
readonly TextFormFieldDialog: typeof DocxEditorTextFormFieldDialog;
|
|
8306
9220
|
readonly ContentControlWidget: typeof DocxEditorContentControlWidget;
|
|
8307
9221
|
readonly InvalidTextFormFieldDialog: typeof DocxEditorInvalidTextFormFieldDialog;
|
|
@@ -8313,6 +9227,8 @@ interface DocxEditorNamespace {
|
|
|
8313
9227
|
readonly Root: typeof DocxEditorRoot;
|
|
8314
9228
|
readonly Viewport: typeof DocxEditorViewport;
|
|
8315
9229
|
readonly Content: typeof DocxEditorContent;
|
|
9230
|
+
/** The editor panel in a pop-out window while `open`; see the pop-out guide. */
|
|
9231
|
+
readonly Window: typeof DocxEditorWindow;
|
|
8316
9232
|
readonly Toolbar: typeof DocxEditorToolbar;
|
|
8317
9233
|
readonly Menu: typeof DocxEditorMenu;
|
|
8318
9234
|
readonly Loading: typeof DocxEditorLoading;
|
|
@@ -8327,8 +9243,14 @@ interface DocxEditorNamespace {
|
|
|
8327
9243
|
readonly PageSetupDialog: typeof DocxEditorPageSetupDialog;
|
|
8328
9244
|
/** The Paragraph dialog: alignment, indentation, spacing and the paragraph flags. */
|
|
8329
9245
|
readonly ParagraphDialog: typeof DocxEditorParagraphDialog;
|
|
9246
|
+
/** Watermark dialog — none, picture or text — applied as one undo step. */
|
|
9247
|
+
readonly WatermarkDialog: typeof DocxEditorWatermarkDialog;
|
|
9248
|
+
/** Bookmark dialog — list, add, delete and go to bookmarks. */
|
|
9249
|
+
readonly BookmarkDialog: typeof DocxEditorBookmarkDialog;
|
|
8330
9250
|
readonly PageNumber: typeof DocxEditorPageNumber;
|
|
8331
9251
|
readonly FontNotice: typeof DocxEditorFontNotice;
|
|
9252
|
+
/** The dialog that explains a file the editor refused to open. Mounted by default. */
|
|
9253
|
+
readonly OpenFailure: typeof DocxEditorOpenFailure;
|
|
8332
9254
|
readonly HeaderFooterChrome: typeof DocxEditorHeaderFooterChrome;
|
|
8333
9255
|
readonly NotesChrome: typeof DocxEditorNotesChrome;
|
|
8334
9256
|
/** The default linear-math popover for a clicked Office Math equation. */
|
|
@@ -8422,6 +9344,58 @@ declare function useEditorValueCommand<K extends keyof ToolbarValueMap>(slotId:
|
|
|
8422
9344
|
/** @public */
|
|
8423
9345
|
declare function useEditorEvent<E extends keyof EditorEvents>(event: E, handler: EditorEvents[E]): void;
|
|
8424
9346
|
|
|
9347
|
+
/**
|
|
9348
|
+
* Open the host's own comment draft when the `review.addComment` control is pressed.
|
|
9349
|
+
*
|
|
9350
|
+
* While the component is mounted and `handler` is set, the control is enabled (subject to the
|
|
9351
|
+
* engine's other rules: the review module, the editing mode, and a selection). Without any
|
|
9352
|
+
* registration the control is disabled, because nothing could open the draft. The most recent
|
|
9353
|
+
* registration receives each request. The registration lasts while the calling component is
|
|
9354
|
+
* mounted. Passing `null` registers nothing; to stop serving requests, unmount the component, for
|
|
9355
|
+
* example with `v-if` while your comment UI cannot open a draft.
|
|
9356
|
+
*
|
|
9357
|
+
* The handler takes no arguments. Read the selection with `editor.getSelectionPlacement()`,
|
|
9358
|
+
* and pin it with `editor.retainSelection()` while the draft is open.
|
|
9359
|
+
*
|
|
9360
|
+
* @example
|
|
9361
|
+
* ```ts
|
|
9362
|
+
* const drafting = ref(false);
|
|
9363
|
+
* useCommentDraftRequest(() => {
|
|
9364
|
+
* drafting.value = true;
|
|
9365
|
+
* });
|
|
9366
|
+
* const addComment = useEditorCommand('review.addComment');
|
|
9367
|
+
* // Bind `addComment.isEnabled` to the button, and call `addComment.execute()` on click.
|
|
9368
|
+
* ```
|
|
9369
|
+
*
|
|
9370
|
+
* @public
|
|
9371
|
+
*/
|
|
9372
|
+
declare function useCommentDraftRequest(handler: (() => void) | null | undefined): void;
|
|
9373
|
+
|
|
9374
|
+
/** What {@link useEditorHostDocument} returns: a read-only ref to the host document. @public */
|
|
9375
|
+
type UseEditorHostDocumentReturn = Readonly<ShallowRef<Document | null>>;
|
|
9376
|
+
/**
|
|
9377
|
+
* The document the editor's pages are mounted in: a pop-out window's or an iframe's when the
|
|
9378
|
+
* host attached the editor there, otherwise the page's own. `null` during server rendering.
|
|
9379
|
+
*
|
|
9380
|
+
* Custom chrome that adds document listeners, reads focus, or injects a `<style>` uses this
|
|
9381
|
+
* instead of the global `document`, which belongs to the window the script runs in. The value
|
|
9382
|
+
* changes when the editor moves to another window, so watchers keyed on it re-bind.
|
|
9383
|
+
* Its `defaultView` is the editor's window, for timers, viewport size and the clipboard.
|
|
9384
|
+
*
|
|
9385
|
+
* @example
|
|
9386
|
+
* ```ts
|
|
9387
|
+
* const hostDocument = useEditorHostDocument();
|
|
9388
|
+
* watch(hostDocument, (doc, _previous, onCleanup) => {
|
|
9389
|
+
* if (!doc) return;
|
|
9390
|
+
* doc.addEventListener('keydown', onShortcut);
|
|
9391
|
+
* onCleanup(() => doc.removeEventListener('keydown', onShortcut));
|
|
9392
|
+
* }, { immediate: true });
|
|
9393
|
+
* ```
|
|
9394
|
+
*
|
|
9395
|
+
* @public
|
|
9396
|
+
*/
|
|
9397
|
+
declare function useEditorHostDocument(): UseEditorHostDocumentReturn;
|
|
9398
|
+
|
|
8425
9399
|
/**
|
|
8426
9400
|
* Mark text ranges as the named set while the calling scope is active.
|
|
8427
9401
|
*
|
|
@@ -8979,6 +9953,49 @@ declare const VerticalRuler: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
8979
9953
|
style: CSSProperties;
|
|
8980
9954
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
8981
9955
|
|
|
9956
|
+
/** What `useWatermark` returns. @public */
|
|
9957
|
+
interface UseWatermarkReturn {
|
|
9958
|
+
/** The document's watermark, or null when it has none. Reference-stable while unchanged. */
|
|
9959
|
+
readonly watermark: Readonly<ShallowRef<WatermarkState | null>>;
|
|
9960
|
+
/** Whether the engine can write a watermark right now (mounted, editable). */
|
|
9961
|
+
readonly isEnabled: ComputedRef<boolean>;
|
|
9962
|
+
/** The full current watermark, with picture bytes, through `query({ type: 'watermark' })`. */
|
|
9963
|
+
readonly read: () => Watermark | null;
|
|
9964
|
+
/** Set the watermark as one undo step. Null removes it. */
|
|
9965
|
+
readonly apply: (watermark: Watermark | null) => ExecResult;
|
|
9966
|
+
}
|
|
9967
|
+
/**
|
|
9968
|
+
* The document watermark plus the command to change it.
|
|
9969
|
+
*
|
|
9970
|
+
* @public
|
|
9971
|
+
*/
|
|
9972
|
+
declare function useWatermark(): UseWatermarkReturn;
|
|
9973
|
+
|
|
9974
|
+
/** What `useBookmarks` returns. @public */
|
|
9975
|
+
interface UseBookmarksReturn {
|
|
9976
|
+
/** Every bookmark, hidden ones included, in document order. Reference-stable while unchanged. */
|
|
9977
|
+
readonly bookmarks: Readonly<ShallowRef<readonly BookmarkSummary[]>>;
|
|
9978
|
+
/** Whether the document accepts bookmark edits now. Go To works either way. */
|
|
9979
|
+
readonly isWritable: Readonly<ShallowRef<boolean>>;
|
|
9980
|
+
/** Bookmark the selection under `name`. A bookmark with the name moves. */
|
|
9981
|
+
readonly insert: (name: string) => ExecResult;
|
|
9982
|
+
/** Delete the bookmark with this name. The text stays. */
|
|
9983
|
+
readonly remove: (name: string) => ExecResult;
|
|
9984
|
+
/** Select the bookmark and scroll to it. */
|
|
9985
|
+
readonly goTo: (name: string) => ExecResult;
|
|
9986
|
+
/**
|
|
9987
|
+
* Keep the first bookmark with this name and remove its copies, which collaborators adding
|
|
9988
|
+
* one name offline can leave. The selection does not move.
|
|
9989
|
+
*/
|
|
9990
|
+
readonly keepFirst: (name: string) => ExecResult;
|
|
9991
|
+
}
|
|
9992
|
+
/**
|
|
9993
|
+
* The document's bookmarks plus the commands that change them.
|
|
9994
|
+
*
|
|
9995
|
+
* @public
|
|
9996
|
+
*/
|
|
9997
|
+
declare function useBookmarks(): UseBookmarksReturn;
|
|
9998
|
+
|
|
8982
9999
|
/** @public */
|
|
8983
10000
|
interface PaginatedDocxEditorProps {
|
|
8984
10001
|
readonly source: Uint8Array;
|
|
@@ -9330,10 +10347,15 @@ declare const LocaleProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
9330
10347
|
}>> & Readonly<{}>, {
|
|
9331
10348
|
i18n: _docx_editor_dev_i18n.PartialLocaleStrings;
|
|
9332
10349
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9333
|
-
/**
|
|
10350
|
+
/**
|
|
10351
|
+
* The active catalogue's `t()`, the catalogue itself, and its language tag (`_lang`, `en`
|
|
10352
|
+
* by default), which formats numbers the way the strings around them read.
|
|
10353
|
+
* @public
|
|
10354
|
+
*/
|
|
9334
10355
|
declare function useTranslation(): {
|
|
9335
10356
|
t: TFunction;
|
|
9336
10357
|
catalogue: ShallowRef<LocaleStrings>;
|
|
10358
|
+
lang: string;
|
|
9337
10359
|
};
|
|
9338
10360
|
|
|
9339
10361
|
/** @public */
|
|
@@ -9651,5 +10673,5 @@ interface UseHistoryGroupReturn {
|
|
|
9651
10673
|
/** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
|
|
9652
10674
|
declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
|
|
9653
10675
|
|
|
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 };
|
|
10676
|
+
export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, DEFAULT_WATERMARK_PRESETS, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorBookmarkDialog, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImageInsertErrorDialog, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorOpenFailure, DocxEditorOpenFailureAction, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorVerticalRuler, DocxEditorViewport, DocxEditorWatermarkDialog, DocxEditorWindow, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationGoTo, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useBookmarkDialog, useBookmarks, useChromeTranslate, useCommentDraftRequest, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useGoToBookmark, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, useOpenFailure, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useWatermark, useWatermarkDialog, useZoom };
|
|
10677
|
+
export type { BookmarkDialogFields, ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocxEditorAuthorStyleProps, DocxEditorBookmarkDialogProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImageInsertErrorDialogProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorOpenFailureActionProps, DocxEditorOpenFailureComponent, DocxEditorOpenFailureContext, DocxEditorOpenFailureMessage, DocxEditorOpenFailureProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorViewportProps, DocxEditorWatermarkDialogProps, DocxEditorWindowProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, GoToBookmarkProblem, HeaderFooterState, HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, SlotProps, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseBookmarkDialogReturn, UseBookmarksReturn, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseEditorHostDocumentReturn, UseFontFamilyResult, UseGoToBookmarkOptions, UseGoToBookmarkReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseTextFormFieldDialogReturn, UseWatermarkDialogReturn, UseWatermarkReturn, UseZoomResult, VerticalRulerProps, WatermarkDialogFieldName, WatermarkDialogFields, WatermarkDialogKind, WatermarkDialogLayout };
|