@docx-editor.dev/vue 2.12.0 → 2.14.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,8 +4,8 @@ import * as _docx_editor_dev_core from '@docx-editor.dev/core';
4
4
  import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
5
5
  import { DocumentSource, FontConfiguration, ZoomMode, Editor, DocumentChange, EditorFontError, TextMatch, ViewScope, DocumentHandle, EditorCommand, EditorScope, ExecResult, EditorSnapshot, EditorEvents, PageSetup, IndentFormatting, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
6
6
  export { Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, PageSetup } from '@docx-editor.dev/core/contracts/editor';
7
- import { FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, ChromeSlotId, SupportedImageMime, TableChromeSlotId, ChromeMenuId, ChromeMenuEntry, RevisionAuthorStyle, ReviewAuthorInfo, ImageWrapTarget, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties } from '@docx-editor.dev/core/editor';
8
- export { CHROME_GROUPS, CHROME_MENUS, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontResolutionRequest, FontResolver, FontUrlSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, PX_PER_CM, PX_PER_INCH, ReviewAuthorInfo, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionStyles, RulerTick, RulerUnit, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, createFontSource, generateRulerTicks, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
7
+ import { FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, ChromeSlotId, SupportedImageMime, TableChromeSlotId, ChromeMenuId, ChromeMenuEntry, RevisionAuthorStyle, ReviewAuthorInfo, ImageWrapTarget, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties } from '@docx-editor.dev/core/editor';
8
+ export { CHROME_GROUPS, CHROME_MENUS, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, PX_PER_CM, PX_PER_INCH, ReviewAuthorInfo, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionStyles, RulerTick, RulerUnit, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createFontSource, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
9
9
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
10
10
  import * as _docx_editor_dev_i18n from '@docx-editor.dev/i18n';
11
11
  import { TFunction, Translations, LocaleStrings } from '@docx-editor.dev/i18n';
@@ -848,8 +848,8 @@ declare const ToolbarAction: vue.DefineComponent<vue.ExtractPropTypes<{
848
848
  }>, {
849
849
  disabledReason: string;
850
850
  class: string;
851
- className: string;
852
851
  active: boolean;
852
+ className: string;
853
853
  icon: VNode<vue.RendererNode, vue.RendererElement, {
854
854
  [key: string]: any;
855
855
  }>;
@@ -1145,6 +1145,80 @@ interface TableBorderWidthNamespace extends TableChromePartComponent {
1145
1145
  readonly Item: (props: TableChromeItemProps) => DocxEditorChildren;
1146
1146
  }
1147
1147
 
1148
+ /** @public */
1149
+ type ToolbarReviewersProps = {
1150
+ className?: string;
1151
+ hidden?: boolean;
1152
+ icon?: DocxEditorChildren;
1153
+ };
1154
+ /** Word for Mac's reviewer visibility menu. It changes view state only. @public */
1155
+ declare const ToolbarReviewers: {
1156
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
1157
+ className: {
1158
+ type: StringConstructor;
1159
+ default: undefined;
1160
+ };
1161
+ hidden: {
1162
+ type: BooleanConstructor;
1163
+ default: undefined;
1164
+ };
1165
+ icon: {
1166
+ type: PropType<DocxEditorChildren>;
1167
+ default: undefined;
1168
+ };
1169
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
1170
+ hidden: boolean;
1171
+ className: string;
1172
+ icon: DocxEditorChildren;
1173
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1174
+ P: {};
1175
+ B: {};
1176
+ D: {};
1177
+ C: {};
1178
+ M: {};
1179
+ Defaults: {};
1180
+ }, Readonly<vue.ExtractPropTypes<{
1181
+ className: {
1182
+ type: StringConstructor;
1183
+ default: undefined;
1184
+ };
1185
+ hidden: {
1186
+ type: BooleanConstructor;
1187
+ default: undefined;
1188
+ };
1189
+ icon: {
1190
+ type: PropType<DocxEditorChildren>;
1191
+ default: undefined;
1192
+ };
1193
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
1194
+ hidden: boolean;
1195
+ className: string;
1196
+ icon: DocxEditorChildren;
1197
+ }>;
1198
+ __isFragment?: never;
1199
+ __isTeleport?: never;
1200
+ __isSuspense?: never;
1201
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
1202
+ className: {
1203
+ type: StringConstructor;
1204
+ default: undefined;
1205
+ };
1206
+ hidden: {
1207
+ type: BooleanConstructor;
1208
+ default: undefined;
1209
+ };
1210
+ icon: {
1211
+ type: PropType<DocxEditorChildren>;
1212
+ default: undefined;
1213
+ };
1214
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
1215
+ hidden: boolean;
1216
+ className: string;
1217
+ icon: DocxEditorChildren;
1218
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
1219
+ docxSlot: "review.authors";
1220
+ };
1221
+
1148
1222
  /** @public */
1149
1223
  interface DocxEditorToolbarProps {
1150
1224
  className?: string;
@@ -1198,6 +1272,7 @@ interface DocxEditorToolbarNamespace {
1198
1272
  readonly Zoom: ToolbarSlotPartComponent;
1199
1273
  readonly StylePicker: typeof ParagraphStyle;
1200
1274
  readonly EditingMode: ToolbarSlotPartComponent;
1275
+ readonly Reviewers: typeof ToolbarReviewers;
1201
1276
  readonly Save: ToolbarSlotPartComponent;
1202
1277
  readonly ContentControlShowAll: ToolbarPartComponent;
1203
1278
  readonly ContentControlFormFill: ToolbarPartComponent;
@@ -1444,8 +1519,8 @@ declare const MenuRow: vue.DefineComponent<vue.ExtractPropTypes<{
1444
1519
  }>> & Readonly<{}>, {
1445
1520
  title: string;
1446
1521
  slot: string;
1447
- className: string;
1448
1522
  active: boolean;
1523
+ className: string;
1449
1524
  icon: VNode<vue.RendererNode, vue.RendererElement, {
1450
1525
  [key: string]: any;
1451
1526
  }>;
@@ -1830,7 +1905,7 @@ declare const MenuEntry: vue.DefineComponent<vue.ExtractPropTypes<{
1830
1905
  required: true;
1831
1906
  };
1832
1907
  }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1833
- /** Props for `DocxEditor.Menu.Menu` and the four pinned menu parts. @public */
1908
+ /** Props for `DocxEditor.Menu.Menu` and the five pinned menu parts. @public */
1834
1909
  interface MenuProps {
1835
1910
  /** Which menu this is. Only one panel in the bar is open at a time, keyed on this. */
1836
1911
  id: MenuId;
@@ -2032,6 +2107,57 @@ declare const MenuReportIssue: {
2032
2107
  docxSlot: string;
2033
2108
  };
2034
2109
 
2110
+ /** @public */
2111
+ type MenuReviewersProps = {
2112
+ className?: string;
2113
+ hidden?: boolean;
2114
+ };
2115
+ /** The document-dependent Reviewers submenu. It changes view state only. @public */
2116
+ declare const MenuReviewers: vue.DefineComponent<vue.ExtractPropTypes<{
2117
+ className: {
2118
+ type: StringConstructor;
2119
+ default: undefined;
2120
+ };
2121
+ hidden: {
2122
+ type: BooleanConstructor;
2123
+ default: undefined;
2124
+ };
2125
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
2126
+ className: {
2127
+ type: StringConstructor;
2128
+ default: undefined;
2129
+ };
2130
+ hidden: {
2131
+ type: BooleanConstructor;
2132
+ default: undefined;
2133
+ };
2134
+ }>> & Readonly<{}>, {
2135
+ hidden: boolean;
2136
+ className: string;
2137
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2138
+ /** The packaged top-level Review menu. @public */
2139
+ declare const MenuReview: {
2140
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2141
+ [key: string]: any;
2142
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
2143
+ P: {};
2144
+ B: {};
2145
+ D: {};
2146
+ C: {};
2147
+ M: {};
2148
+ Defaults: {};
2149
+ }, Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2150
+ [key: string]: any;
2151
+ }>, {}, {}, {}, {}>;
2152
+ __isFragment?: never;
2153
+ __isTeleport?: never;
2154
+ __isSuspense?: never;
2155
+ } & vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2156
+ [key: string]: any;
2157
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
2158
+ docxMenu: "review";
2159
+ };
2160
+
2035
2161
  /** @public */
2036
2162
  interface DocxEditorMenuProps {
2037
2163
  className?: string;
@@ -2053,6 +2179,7 @@ interface DocxEditorMenuNamespace {
2053
2179
  readonly File: MenuPartComponent;
2054
2180
  readonly Format: MenuPartComponent;
2055
2181
  readonly Insert: MenuPartComponent;
2182
+ readonly Review: typeof MenuReview;
2056
2183
  readonly Help: MenuPartComponent;
2057
2184
  readonly Item: typeof MenuItem;
2058
2185
  readonly Row: typeof MenuRow;
@@ -2065,6 +2192,7 @@ interface DocxEditorMenuNamespace {
2065
2192
  readonly Save: typeof MenuSave;
2066
2193
  readonly PageSetup: typeof MenuPageSetup;
2067
2194
  readonly ImageInsert: typeof MenuImageInsert;
2195
+ readonly Reviewers: typeof MenuReviewers;
2068
2196
  readonly ReportIssue: typeof MenuReportIssue;
2069
2197
  }
2070
2198
  /** @public */
@@ -4778,8 +4906,8 @@ declare const ContextMenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
4778
4906
  };
4779
4907
  }>> & Readonly<{}>, {
4780
4908
  disabledReason: string;
4781
- className: string;
4782
4909
  active: boolean;
4910
+ className: string;
4783
4911
  icon: VNode<vue.RendererNode, vue.RendererElement, {
4784
4912
  [key: string]: any;
4785
4913
  }>;
@@ -5352,12 +5480,16 @@ declare function useParagraphIndent(): UseParagraphIndentReturn;
5352
5480
  /** @public */
5353
5481
  type FontsInput = FontConfiguration | FontConfigurationFragment | FontResolver | Promise<FontConfiguration | FontConfigurationFragment | undefined> | undefined;
5354
5482
  /** @public */
5355
- declare function useFonts(source: MaybeRefOrGetter<FontsInput>, ...fragments: readonly MaybeRefOrGetter<FontConfigurationFragment | undefined>[]): FontResolver;
5483
+ declare function useFonts(source: MaybeRefOrGetter<FontsInput>, ...fragments: readonly MaybeRefOrGetter<FontConfigurationFragment | undefined>[]): MarkedFontResolver;
5484
+ /** @public */
5485
+ declare function useFonts(...origins: readonly MaybeRefOrGetter<FontOrigin>[]): MarkedFontResolver;
5356
5486
 
5357
5487
  /** @public */
5358
5488
  type DocxFontsInput = FontConfiguration | FontConfigurationFragment;
5359
5489
  /** @public */
5360
- type DocxFontsSource = DocxFontsInput | Promise<DocxFontsInput> | (() => DocxFontsInput | Promise<DocxFontsInput>);
5490
+ type DocxFontsSource = DocxFontOrigin | readonly DocxFontOrigin[];
5491
+ /** @public */
5492
+ type DocxFontOrigin = FontOrigin | (() => DocxFontsInput | Promise<DocxFontsInput>);
5361
5493
  /** @public */
5362
5494
  type DocxSource = string | URL | Uint8Array | ArrayBuffer;
5363
5495
  /** @public */
@@ -5368,7 +5500,7 @@ interface UseDocxSourceOptions {
5368
5500
  /** @public */
5369
5501
  interface UseDocxSourceResult {
5370
5502
  readonly document: ComputedRef<Uint8Array | undefined>;
5371
- readonly fonts: ComputedRef<FontConfiguration | undefined>;
5503
+ readonly fonts: ComputedRef<FontConfiguration | FontResolver | undefined>;
5372
5504
  readonly error: ComputedRef<Error | null>;
5373
5505
  readonly isLoading: ComputedRef<boolean>;
5374
5506
  }
@@ -5884,8 +6016,8 @@ declare const PaginatedDocxEditor: vue.DefineComponent<vue.ExtractPropTypes<{
5884
6016
  };
5885
6017
  }>> & Readonly<{}>, {
5886
6018
  measurer: TextMeasurer;
5887
- className: string;
5888
6019
  scale: number;
6020
+ className: string;
5889
6021
  onError: (reason: string, detail?: string) => void;
5890
6022
  onStateChange: (state: PaginatedSurfaceState) => void;
5891
6023
  documentFontFamily: string;
@@ -6006,8 +6138,8 @@ declare const PaginatedDocxEditorShell: vue.DefineComponent<vue.ExtractPropTypes
6006
6138
  };
6007
6139
  }>> & Readonly<{}>, {
6008
6140
  measurer: TextMeasurer;
6009
- className: string;
6010
6141
  scale: number;
6142
+ className: string;
6011
6143
  onError: (reason: string, detail?: string) => void;
6012
6144
  onSave: (bytes: Uint8Array) => void;
6013
6145
  colorMode: "light" | "dark";
@@ -6401,8 +6533,8 @@ declare const ToolbarButton: vue.DefineComponent<vue.ExtractPropTypes<{
6401
6533
  }>, {
6402
6534
  ariaLabel: string;
6403
6535
  title: string;
6404
- className: string;
6405
6536
  active: boolean;
6537
+ className: string;
6406
6538
  disabled: boolean;
6407
6539
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6408
6540
  /** @public @deprecated Use `DocxEditor.Toolbar` group parts instead. */
@@ -6453,4 +6585,4 @@ declare const TitleBarRight: vue.DefineComponent<{}, () => vue.VNode<vue.Rendere
6453
6585
  [key: string]: any;
6454
6586
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6455
6587
 
6456
- export { CONTENT_CONTROL_SLOTS, type ChromeTranslate, type ContentControlActionProps, type ContentControlInspectorState, type ContentControlLock, type ContentControlPartProps, type ContentControlProps, type ContentControlSlotId, type ContextMenuAnchor, ContextMenuCellVerticalAlignment, type ContextMenuCommandProps, type ContextMenuContextValue, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, type ContextMenuItemProps, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, type ContextMenuTableRowProps, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, type DocxEditorAuthorStyleProps, type DocxEditorChildren, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, type DocxEditorContentControlNamespace, type DocxEditorContentProps, DocxEditorContextMenu, type DocxEditorContextMenuNamespace, type DocxEditorContextMenuProps, DocxEditorDocumentOutline, type DocxEditorDocumentOutlineProps, DocxEditorEquation, DocxEditorFontNotice, type DocxEditorFontNoticeProps, DocxEditorHeaderFooterChrome, type DocxEditorHeaderFooterChromeProps, DocxEditorHorizontalRuler, DocxEditorHyperLink, type DocxEditorHyperLinkNamespace, DocxEditorImagePropertiesDialog, type DocxEditorImagePropertiesDialogProps, DocxEditorLoading, type DocxEditorLoadingComponent, type DocxEditorLoadingProps, DocxEditorLoadingSpinner, type DocxEditorLoadingSpinnerProps, DocxEditorMenu, type DocxEditorMenuNamespace, type DocxEditorMenuProps, type DocxEditorNamespace, DocxEditorNavigation, type DocxEditorNavigationNamespace, type DocxEditorNavigationProps, DocxEditorNotesChrome, type DocxEditorNotesChromeProps, DocxEditorPageNumber, type DocxEditorPageNumberProps, DocxEditorPageSetupDialog, type DocxEditorPageSetupDialogProps, DocxEditorParagraphDialog, type DocxEditorParagraphDialogProps, type DocxEditorProps, type DocxEditorRef, DocxEditorRoot, type DocxEditorRootListeners, type DocxEditorRootProps, type DocxEditorRulerProps, DocxEditorShell, DocxEditorToolbar, type DocxEditorToolbarNamespace, type DocxEditorToolbarProps, DocxEditorVerticalRuler, DocxEditorViewport, type DocxEditorViewportProps, type DocxFontsInput, type DocxFontsSource, type DocxSource, type EditorCaret, type EditorCommandState, type EditorMode, type EditorValueCommandState, type FontFamilyItemProps, type FontFamilyNamespace, type FontFamilyPartProps, type FontFamilyProps, type FontsInput, type HeaderFooterState, HorizontalRuler, type HorizontalRulerProps, type HyperLinkActionProps, type HyperLinkPartProps, type HyperLinkProps, type HyperlinkPopupAnchor, type HyperlinkPopupMode, type HyperlinkPopupState, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, type ImagePropertiesTriggerProps, ImageWrap, type IndentUpdate, LocaleProvider, type LocaleProviderProps, Logo, type MaybeRefOrGetter, type MenuActionProps, MenuBar, type MenuGroupProps, type MenuId, type MenuItemProps, type MenuPartComponent, type MenuProps, type MenuReportIssueProps, type MenuRowProps, type MenuSeparatorProps, type MenuSubmenuProps, type MenuTableGridProps, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, type NavigationPartProps, type NavigationShiftInput, NavigationTab, type NavigationTabProps, type NavigationTab$1 as NavigationTabValue, NavigationTabs, NavigationTitle, NavigationToggle, type NormalizedImagePayload, type NotePropertiesState, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, type OutlineHeading$1 as OutlineHeading, type OutlineHeadingItem, PageIndicator, type PageIndicatorProps, PageNumberTranslationContext, type PageSetupUpdate, PaginatedDocxEditor, type PaginatedDocxEditorExpose, type PaginatedDocxEditorHandle, type PaginatedDocxEditorProps, PaginatedDocxEditorShell, type PaginatedDocxEditorShellProps, type ParagraphFlagState, type ParagraphFormatRead, type ParagraphFormatUpdate, type ParagraphStyleItemProps, type ParagraphStyleNamespace, type ParagraphStyleOption, type ParagraphStylePartProps, type ParagraphStyleProps, type ParagraphTabStop, type ProvideDocxEditorResult, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, type ReviewGutter, type ReviewGutterInput, ReviewRailContext, type ReviewRailRegistry, SEARCH_DEBOUNCE_MS, SEARCH_MATCH_LIMIT, type ScopedChromeAnchor, Slot, type SlotProps, type TableBorderColorNamespace, type TableBorderStyleNamespace, type TableBorderTargetNamespace, type TableBorderWidthNamespace, type TableCellFillNamespace, type TableChromeItemProps, type TableChromePartComponent, type TableChromePartProps, TitleBar, TitleBarRight, Toolbar, type ToolbarActionProps, type ToolbarAlignmentComponent, ToolbarButton, type ToolbarButtonProps, ToolbarContext, type ToolbarContextValue, ToolbarGroup, ToolbarImageProperties, type ToolbarPartComponent, type ToolbarPartProps, type ToolbarProps, type ToolbarSeparatorProps, type ToolbarSlotPartComponent, type ToolbarSlotPartProps, type ToolbarTranslate, type UseContentControlResult, type UseDocumentOutlineResult, type UseDocumentSearchResult, type UseDocxSourceOptions, type UseDocxSourceResult, type UseFontFamilyResult, type UseHyperlinkPopupResult, type UseNavigationPaneOptions, type UseNavigationPaneResult, type UsePageSetupReturn, type UseParagraphFormatReturn, type UseParagraphIndentReturn, type UseParagraphStyleResult, type UseZoomResult, VERSION, VerticalRuler, type VerticalRulerProps, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
6588
+ export { CONTENT_CONTROL_SLOTS, type ChromeTranslate, type ContentControlActionProps, type ContentControlInspectorState, type ContentControlLock, type ContentControlPartProps, type ContentControlProps, type ContentControlSlotId, type ContextMenuAnchor, ContextMenuCellVerticalAlignment, type ContextMenuCommandProps, type ContextMenuContextValue, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, type ContextMenuItemProps, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, type ContextMenuTableRowProps, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, type DocxEditorAuthorStyleProps, type DocxEditorChildren, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, type DocxEditorContentControlNamespace, type DocxEditorContentProps, DocxEditorContextMenu, type DocxEditorContextMenuNamespace, type DocxEditorContextMenuProps, DocxEditorDocumentOutline, type DocxEditorDocumentOutlineProps, DocxEditorEquation, DocxEditorFontNotice, type DocxEditorFontNoticeProps, DocxEditorHeaderFooterChrome, type DocxEditorHeaderFooterChromeProps, DocxEditorHorizontalRuler, DocxEditorHyperLink, type DocxEditorHyperLinkNamespace, DocxEditorImagePropertiesDialog, type DocxEditorImagePropertiesDialogProps, DocxEditorLoading, type DocxEditorLoadingComponent, type DocxEditorLoadingProps, DocxEditorLoadingSpinner, type DocxEditorLoadingSpinnerProps, DocxEditorMenu, type DocxEditorMenuNamespace, type DocxEditorMenuProps, type DocxEditorNamespace, DocxEditorNavigation, type DocxEditorNavigationNamespace, type DocxEditorNavigationProps, DocxEditorNotesChrome, type DocxEditorNotesChromeProps, DocxEditorPageNumber, type DocxEditorPageNumberProps, DocxEditorPageSetupDialog, type DocxEditorPageSetupDialogProps, DocxEditorParagraphDialog, type DocxEditorParagraphDialogProps, type DocxEditorProps, type DocxEditorRef, DocxEditorRoot, type DocxEditorRootListeners, type DocxEditorRootProps, type DocxEditorRulerProps, DocxEditorShell, DocxEditorToolbar, type DocxEditorToolbarNamespace, type DocxEditorToolbarProps, DocxEditorVerticalRuler, DocxEditorViewport, type DocxEditorViewportProps, type DocxFontOrigin, type DocxFontsInput, type DocxFontsSource, type DocxSource, type EditorCaret, type EditorCommandState, type EditorMode, type EditorValueCommandState, type FontFamilyItemProps, type FontFamilyNamespace, type FontFamilyPartProps, type FontFamilyProps, type FontsInput, type HeaderFooterState, HorizontalRuler, type HorizontalRulerProps, type HyperLinkActionProps, type HyperLinkPartProps, type HyperLinkProps, type HyperlinkPopupAnchor, type HyperlinkPopupMode, type HyperlinkPopupState, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, type ImagePropertiesTriggerProps, ImageWrap, type IndentUpdate, LocaleProvider, type LocaleProviderProps, Logo, type MaybeRefOrGetter, type MenuActionProps, MenuBar, type MenuGroupProps, type MenuId, type MenuItemProps, type MenuPartComponent, type MenuProps, type MenuReportIssueProps, type MenuReviewersProps, type MenuRowProps, type MenuSeparatorProps, type MenuSubmenuProps, type MenuTableGridProps, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, type NavigationPartProps, type NavigationShiftInput, NavigationTab, type NavigationTabProps, type NavigationTab$1 as NavigationTabValue, NavigationTabs, NavigationTitle, NavigationToggle, type NormalizedImagePayload, type NotePropertiesState, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, type OutlineHeading$1 as OutlineHeading, type OutlineHeadingItem, PageIndicator, type PageIndicatorProps, PageNumberTranslationContext, type PageSetupUpdate, PaginatedDocxEditor, type PaginatedDocxEditorExpose, type PaginatedDocxEditorHandle, type PaginatedDocxEditorProps, PaginatedDocxEditorShell, type PaginatedDocxEditorShellProps, type ParagraphFlagState, type ParagraphFormatRead, type ParagraphFormatUpdate, type ParagraphStyleItemProps, type ParagraphStyleNamespace, type ParagraphStyleOption, type ParagraphStylePartProps, type ParagraphStyleProps, type ParagraphTabStop, type ProvideDocxEditorResult, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, type ReviewGutter, type ReviewGutterInput, ReviewRailContext, type ReviewRailRegistry, SEARCH_DEBOUNCE_MS, SEARCH_MATCH_LIMIT, type ScopedChromeAnchor, Slot, type SlotProps, type TableBorderColorNamespace, type TableBorderStyleNamespace, type TableBorderTargetNamespace, type TableBorderWidthNamespace, type TableCellFillNamespace, type TableChromeItemProps, type TableChromePartComponent, type TableChromePartProps, TitleBar, TitleBarRight, Toolbar, type ToolbarActionProps, type ToolbarAlignmentComponent, ToolbarButton, type ToolbarButtonProps, ToolbarContext, type ToolbarContextValue, ToolbarGroup, ToolbarImageProperties, type ToolbarPartComponent, type ToolbarPartProps, type ToolbarProps, type ToolbarReviewersProps, type ToolbarSeparatorProps, type ToolbarSlotPartComponent, type ToolbarSlotPartProps, type ToolbarTranslate, type UseContentControlResult, type UseDocumentOutlineResult, type UseDocumentSearchResult, type UseDocxSourceOptions, type UseDocxSourceResult, type UseFontFamilyResult, type UseHyperlinkPopupResult, type UseNavigationPaneOptions, type UseNavigationPaneResult, type UsePageSetupReturn, type UseParagraphFormatReturn, type UseParagraphIndentReturn, type UseParagraphStyleResult, type UseZoomResult, VERSION, VerticalRuler, type VerticalRulerProps, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import * as _docx_editor_dev_core from '@docx-editor.dev/core';
4
4
  import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
5
5
  import { DocumentSource, FontConfiguration, ZoomMode, Editor, DocumentChange, EditorFontError, TextMatch, ViewScope, DocumentHandle, EditorCommand, EditorScope, ExecResult, EditorSnapshot, EditorEvents, PageSetup, IndentFormatting, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
6
6
  export { Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, PageSetup } from '@docx-editor.dev/core/contracts/editor';
7
- import { FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, ChromeSlotId, SupportedImageMime, TableChromeSlotId, ChromeMenuId, ChromeMenuEntry, RevisionAuthorStyle, ReviewAuthorInfo, ImageWrapTarget, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties } from '@docx-editor.dev/core/editor';
8
- export { CHROME_GROUPS, CHROME_MENUS, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontResolutionRequest, FontResolver, FontUrlSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, PX_PER_CM, PX_PER_INCH, ReviewAuthorInfo, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionStyles, RulerTick, RulerUnit, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, createFontSource, generateRulerTicks, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
7
+ import { FontConfigurationFragment, FontResolver, EditorModule, ImageDecodePort, DocxEditorInstance, ChromeSlotId, SupportedImageMime, TableChromeSlotId, ChromeMenuId, ChromeMenuEntry, RevisionAuthorStyle, ReviewAuthorInfo, ImageWrapTarget, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties } from '@docx-editor.dev/core/editor';
8
+ export { CHROME_GROUPS, CHROME_MENUS, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, PX_PER_CM, PX_PER_INCH, ReviewAuthorInfo, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionStyles, RulerTick, RulerUnit, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createFontSource, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
9
9
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
10
10
  import * as _docx_editor_dev_i18n from '@docx-editor.dev/i18n';
11
11
  import { TFunction, Translations, LocaleStrings } from '@docx-editor.dev/i18n';
@@ -848,8 +848,8 @@ declare const ToolbarAction: vue.DefineComponent<vue.ExtractPropTypes<{
848
848
  }>, {
849
849
  disabledReason: string;
850
850
  class: string;
851
- className: string;
852
851
  active: boolean;
852
+ className: string;
853
853
  icon: VNode<vue.RendererNode, vue.RendererElement, {
854
854
  [key: string]: any;
855
855
  }>;
@@ -1145,6 +1145,80 @@ interface TableBorderWidthNamespace extends TableChromePartComponent {
1145
1145
  readonly Item: (props: TableChromeItemProps) => DocxEditorChildren;
1146
1146
  }
1147
1147
 
1148
+ /** @public */
1149
+ type ToolbarReviewersProps = {
1150
+ className?: string;
1151
+ hidden?: boolean;
1152
+ icon?: DocxEditorChildren;
1153
+ };
1154
+ /** Word for Mac's reviewer visibility menu. It changes view state only. @public */
1155
+ declare const ToolbarReviewers: {
1156
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<vue.ExtractPropTypes<{
1157
+ className: {
1158
+ type: StringConstructor;
1159
+ default: undefined;
1160
+ };
1161
+ hidden: {
1162
+ type: BooleanConstructor;
1163
+ default: undefined;
1164
+ };
1165
+ icon: {
1166
+ type: PropType<DocxEditorChildren>;
1167
+ default: undefined;
1168
+ };
1169
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {
1170
+ hidden: boolean;
1171
+ className: string;
1172
+ icon: DocxEditorChildren;
1173
+ }, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1174
+ P: {};
1175
+ B: {};
1176
+ D: {};
1177
+ C: {};
1178
+ M: {};
1179
+ Defaults: {};
1180
+ }, Readonly<vue.ExtractPropTypes<{
1181
+ className: {
1182
+ type: StringConstructor;
1183
+ default: undefined;
1184
+ };
1185
+ hidden: {
1186
+ type: BooleanConstructor;
1187
+ default: undefined;
1188
+ };
1189
+ icon: {
1190
+ type: PropType<DocxEditorChildren>;
1191
+ default: undefined;
1192
+ };
1193
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, {
1194
+ hidden: boolean;
1195
+ className: string;
1196
+ icon: DocxEditorChildren;
1197
+ }>;
1198
+ __isFragment?: never;
1199
+ __isTeleport?: never;
1200
+ __isSuspense?: never;
1201
+ } & vue.ComponentOptionsBase<Readonly<vue.ExtractPropTypes<{
1202
+ className: {
1203
+ type: StringConstructor;
1204
+ default: undefined;
1205
+ };
1206
+ hidden: {
1207
+ type: BooleanConstructor;
1208
+ default: undefined;
1209
+ };
1210
+ icon: {
1211
+ type: PropType<DocxEditorChildren>;
1212
+ default: undefined;
1213
+ };
1214
+ }>> & Readonly<{}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
1215
+ hidden: boolean;
1216
+ className: string;
1217
+ icon: DocxEditorChildren;
1218
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
1219
+ docxSlot: "review.authors";
1220
+ };
1221
+
1148
1222
  /** @public */
1149
1223
  interface DocxEditorToolbarProps {
1150
1224
  className?: string;
@@ -1198,6 +1272,7 @@ interface DocxEditorToolbarNamespace {
1198
1272
  readonly Zoom: ToolbarSlotPartComponent;
1199
1273
  readonly StylePicker: typeof ParagraphStyle;
1200
1274
  readonly EditingMode: ToolbarSlotPartComponent;
1275
+ readonly Reviewers: typeof ToolbarReviewers;
1201
1276
  readonly Save: ToolbarSlotPartComponent;
1202
1277
  readonly ContentControlShowAll: ToolbarPartComponent;
1203
1278
  readonly ContentControlFormFill: ToolbarPartComponent;
@@ -1444,8 +1519,8 @@ declare const MenuRow: vue.DefineComponent<vue.ExtractPropTypes<{
1444
1519
  }>> & Readonly<{}>, {
1445
1520
  title: string;
1446
1521
  slot: string;
1447
- className: string;
1448
1522
  active: boolean;
1523
+ className: string;
1449
1524
  icon: VNode<vue.RendererNode, vue.RendererElement, {
1450
1525
  [key: string]: any;
1451
1526
  }>;
@@ -1830,7 +1905,7 @@ declare const MenuEntry: vue.DefineComponent<vue.ExtractPropTypes<{
1830
1905
  required: true;
1831
1906
  };
1832
1907
  }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1833
- /** Props for `DocxEditor.Menu.Menu` and the four pinned menu parts. @public */
1908
+ /** Props for `DocxEditor.Menu.Menu` and the five pinned menu parts. @public */
1834
1909
  interface MenuProps {
1835
1910
  /** Which menu this is. Only one panel in the bar is open at a time, keyed on this. */
1836
1911
  id: MenuId;
@@ -2032,6 +2107,57 @@ declare const MenuReportIssue: {
2032
2107
  docxSlot: string;
2033
2108
  };
2034
2109
 
2110
+ /** @public */
2111
+ type MenuReviewersProps = {
2112
+ className?: string;
2113
+ hidden?: boolean;
2114
+ };
2115
+ /** The document-dependent Reviewers submenu. It changes view state only. @public */
2116
+ declare const MenuReviewers: vue.DefineComponent<vue.ExtractPropTypes<{
2117
+ className: {
2118
+ type: StringConstructor;
2119
+ default: undefined;
2120
+ };
2121
+ hidden: {
2122
+ type: BooleanConstructor;
2123
+ default: undefined;
2124
+ };
2125
+ }>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
2126
+ className: {
2127
+ type: StringConstructor;
2128
+ default: undefined;
2129
+ };
2130
+ hidden: {
2131
+ type: BooleanConstructor;
2132
+ default: undefined;
2133
+ };
2134
+ }>> & Readonly<{}>, {
2135
+ hidden: boolean;
2136
+ className: string;
2137
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2138
+ /** The packaged top-level Review menu. @public */
2139
+ declare const MenuReview: {
2140
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2141
+ [key: string]: any;
2142
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
2143
+ P: {};
2144
+ B: {};
2145
+ D: {};
2146
+ C: {};
2147
+ M: {};
2148
+ Defaults: {};
2149
+ }, Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2150
+ [key: string]: any;
2151
+ }>, {}, {}, {}, {}>;
2152
+ __isFragment?: never;
2153
+ __isTeleport?: never;
2154
+ __isSuspense?: never;
2155
+ } & vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2156
+ [key: string]: any;
2157
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
2158
+ docxMenu: "review";
2159
+ };
2160
+
2035
2161
  /** @public */
2036
2162
  interface DocxEditorMenuProps {
2037
2163
  className?: string;
@@ -2053,6 +2179,7 @@ interface DocxEditorMenuNamespace {
2053
2179
  readonly File: MenuPartComponent;
2054
2180
  readonly Format: MenuPartComponent;
2055
2181
  readonly Insert: MenuPartComponent;
2182
+ readonly Review: typeof MenuReview;
2056
2183
  readonly Help: MenuPartComponent;
2057
2184
  readonly Item: typeof MenuItem;
2058
2185
  readonly Row: typeof MenuRow;
@@ -2065,6 +2192,7 @@ interface DocxEditorMenuNamespace {
2065
2192
  readonly Save: typeof MenuSave;
2066
2193
  readonly PageSetup: typeof MenuPageSetup;
2067
2194
  readonly ImageInsert: typeof MenuImageInsert;
2195
+ readonly Reviewers: typeof MenuReviewers;
2068
2196
  readonly ReportIssue: typeof MenuReportIssue;
2069
2197
  }
2070
2198
  /** @public */
@@ -4778,8 +4906,8 @@ declare const ContextMenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
4778
4906
  };
4779
4907
  }>> & Readonly<{}>, {
4780
4908
  disabledReason: string;
4781
- className: string;
4782
4909
  active: boolean;
4910
+ className: string;
4783
4911
  icon: VNode<vue.RendererNode, vue.RendererElement, {
4784
4912
  [key: string]: any;
4785
4913
  }>;
@@ -5352,12 +5480,16 @@ declare function useParagraphIndent(): UseParagraphIndentReturn;
5352
5480
  /** @public */
5353
5481
  type FontsInput = FontConfiguration | FontConfigurationFragment | FontResolver | Promise<FontConfiguration | FontConfigurationFragment | undefined> | undefined;
5354
5482
  /** @public */
5355
- declare function useFonts(source: MaybeRefOrGetter<FontsInput>, ...fragments: readonly MaybeRefOrGetter<FontConfigurationFragment | undefined>[]): FontResolver;
5483
+ declare function useFonts(source: MaybeRefOrGetter<FontsInput>, ...fragments: readonly MaybeRefOrGetter<FontConfigurationFragment | undefined>[]): MarkedFontResolver;
5484
+ /** @public */
5485
+ declare function useFonts(...origins: readonly MaybeRefOrGetter<FontOrigin>[]): MarkedFontResolver;
5356
5486
 
5357
5487
  /** @public */
5358
5488
  type DocxFontsInput = FontConfiguration | FontConfigurationFragment;
5359
5489
  /** @public */
5360
- type DocxFontsSource = DocxFontsInput | Promise<DocxFontsInput> | (() => DocxFontsInput | Promise<DocxFontsInput>);
5490
+ type DocxFontsSource = DocxFontOrigin | readonly DocxFontOrigin[];
5491
+ /** @public */
5492
+ type DocxFontOrigin = FontOrigin | (() => DocxFontsInput | Promise<DocxFontsInput>);
5361
5493
  /** @public */
5362
5494
  type DocxSource = string | URL | Uint8Array | ArrayBuffer;
5363
5495
  /** @public */
@@ -5368,7 +5500,7 @@ interface UseDocxSourceOptions {
5368
5500
  /** @public */
5369
5501
  interface UseDocxSourceResult {
5370
5502
  readonly document: ComputedRef<Uint8Array | undefined>;
5371
- readonly fonts: ComputedRef<FontConfiguration | undefined>;
5503
+ readonly fonts: ComputedRef<FontConfiguration | FontResolver | undefined>;
5372
5504
  readonly error: ComputedRef<Error | null>;
5373
5505
  readonly isLoading: ComputedRef<boolean>;
5374
5506
  }
@@ -5884,8 +6016,8 @@ declare const PaginatedDocxEditor: vue.DefineComponent<vue.ExtractPropTypes<{
5884
6016
  };
5885
6017
  }>> & Readonly<{}>, {
5886
6018
  measurer: TextMeasurer;
5887
- className: string;
5888
6019
  scale: number;
6020
+ className: string;
5889
6021
  onError: (reason: string, detail?: string) => void;
5890
6022
  onStateChange: (state: PaginatedSurfaceState) => void;
5891
6023
  documentFontFamily: string;
@@ -6006,8 +6138,8 @@ declare const PaginatedDocxEditorShell: vue.DefineComponent<vue.ExtractPropTypes
6006
6138
  };
6007
6139
  }>> & Readonly<{}>, {
6008
6140
  measurer: TextMeasurer;
6009
- className: string;
6010
6141
  scale: number;
6142
+ className: string;
6011
6143
  onError: (reason: string, detail?: string) => void;
6012
6144
  onSave: (bytes: Uint8Array) => void;
6013
6145
  colorMode: "light" | "dark";
@@ -6401,8 +6533,8 @@ declare const ToolbarButton: vue.DefineComponent<vue.ExtractPropTypes<{
6401
6533
  }>, {
6402
6534
  ariaLabel: string;
6403
6535
  title: string;
6404
- className: string;
6405
6536
  active: boolean;
6537
+ className: string;
6406
6538
  disabled: boolean;
6407
6539
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6408
6540
  /** @public @deprecated Use `DocxEditor.Toolbar` group parts instead. */
@@ -6453,4 +6585,4 @@ declare const TitleBarRight: vue.DefineComponent<{}, () => vue.VNode<vue.Rendere
6453
6585
  [key: string]: any;
6454
6586
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6455
6587
 
6456
- export { CONTENT_CONTROL_SLOTS, type ChromeTranslate, type ContentControlActionProps, type ContentControlInspectorState, type ContentControlLock, type ContentControlPartProps, type ContentControlProps, type ContentControlSlotId, type ContextMenuAnchor, ContextMenuCellVerticalAlignment, type ContextMenuCommandProps, type ContextMenuContextValue, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, type ContextMenuItemProps, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, type ContextMenuTableRowProps, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, type DocxEditorAuthorStyleProps, type DocxEditorChildren, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, type DocxEditorContentControlNamespace, type DocxEditorContentProps, DocxEditorContextMenu, type DocxEditorContextMenuNamespace, type DocxEditorContextMenuProps, DocxEditorDocumentOutline, type DocxEditorDocumentOutlineProps, DocxEditorEquation, DocxEditorFontNotice, type DocxEditorFontNoticeProps, DocxEditorHeaderFooterChrome, type DocxEditorHeaderFooterChromeProps, DocxEditorHorizontalRuler, DocxEditorHyperLink, type DocxEditorHyperLinkNamespace, DocxEditorImagePropertiesDialog, type DocxEditorImagePropertiesDialogProps, DocxEditorLoading, type DocxEditorLoadingComponent, type DocxEditorLoadingProps, DocxEditorLoadingSpinner, type DocxEditorLoadingSpinnerProps, DocxEditorMenu, type DocxEditorMenuNamespace, type DocxEditorMenuProps, type DocxEditorNamespace, DocxEditorNavigation, type DocxEditorNavigationNamespace, type DocxEditorNavigationProps, DocxEditorNotesChrome, type DocxEditorNotesChromeProps, DocxEditorPageNumber, type DocxEditorPageNumberProps, DocxEditorPageSetupDialog, type DocxEditorPageSetupDialogProps, DocxEditorParagraphDialog, type DocxEditorParagraphDialogProps, type DocxEditorProps, type DocxEditorRef, DocxEditorRoot, type DocxEditorRootListeners, type DocxEditorRootProps, type DocxEditorRulerProps, DocxEditorShell, DocxEditorToolbar, type DocxEditorToolbarNamespace, type DocxEditorToolbarProps, DocxEditorVerticalRuler, DocxEditorViewport, type DocxEditorViewportProps, type DocxFontsInput, type DocxFontsSource, type DocxSource, type EditorCaret, type EditorCommandState, type EditorMode, type EditorValueCommandState, type FontFamilyItemProps, type FontFamilyNamespace, type FontFamilyPartProps, type FontFamilyProps, type FontsInput, type HeaderFooterState, HorizontalRuler, type HorizontalRulerProps, type HyperLinkActionProps, type HyperLinkPartProps, type HyperLinkProps, type HyperlinkPopupAnchor, type HyperlinkPopupMode, type HyperlinkPopupState, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, type ImagePropertiesTriggerProps, ImageWrap, type IndentUpdate, LocaleProvider, type LocaleProviderProps, Logo, type MaybeRefOrGetter, type MenuActionProps, MenuBar, type MenuGroupProps, type MenuId, type MenuItemProps, type MenuPartComponent, type MenuProps, type MenuReportIssueProps, type MenuRowProps, type MenuSeparatorProps, type MenuSubmenuProps, type MenuTableGridProps, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, type NavigationPartProps, type NavigationShiftInput, NavigationTab, type NavigationTabProps, type NavigationTab$1 as NavigationTabValue, NavigationTabs, NavigationTitle, NavigationToggle, type NormalizedImagePayload, type NotePropertiesState, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, type OutlineHeading$1 as OutlineHeading, type OutlineHeadingItem, PageIndicator, type PageIndicatorProps, PageNumberTranslationContext, type PageSetupUpdate, PaginatedDocxEditor, type PaginatedDocxEditorExpose, type PaginatedDocxEditorHandle, type PaginatedDocxEditorProps, PaginatedDocxEditorShell, type PaginatedDocxEditorShellProps, type ParagraphFlagState, type ParagraphFormatRead, type ParagraphFormatUpdate, type ParagraphStyleItemProps, type ParagraphStyleNamespace, type ParagraphStyleOption, type ParagraphStylePartProps, type ParagraphStyleProps, type ParagraphTabStop, type ProvideDocxEditorResult, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, type ReviewGutter, type ReviewGutterInput, ReviewRailContext, type ReviewRailRegistry, SEARCH_DEBOUNCE_MS, SEARCH_MATCH_LIMIT, type ScopedChromeAnchor, Slot, type SlotProps, type TableBorderColorNamespace, type TableBorderStyleNamespace, type TableBorderTargetNamespace, type TableBorderWidthNamespace, type TableCellFillNamespace, type TableChromeItemProps, type TableChromePartComponent, type TableChromePartProps, TitleBar, TitleBarRight, Toolbar, type ToolbarActionProps, type ToolbarAlignmentComponent, ToolbarButton, type ToolbarButtonProps, ToolbarContext, type ToolbarContextValue, ToolbarGroup, ToolbarImageProperties, type ToolbarPartComponent, type ToolbarPartProps, type ToolbarProps, type ToolbarSeparatorProps, type ToolbarSlotPartComponent, type ToolbarSlotPartProps, type ToolbarTranslate, type UseContentControlResult, type UseDocumentOutlineResult, type UseDocumentSearchResult, type UseDocxSourceOptions, type UseDocxSourceResult, type UseFontFamilyResult, type UseHyperlinkPopupResult, type UseNavigationPaneOptions, type UseNavigationPaneResult, type UsePageSetupReturn, type UseParagraphFormatReturn, type UseParagraphIndentReturn, type UseParagraphStyleResult, type UseZoomResult, VERSION, VerticalRuler, type VerticalRulerProps, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
6588
+ export { CONTENT_CONTROL_SLOTS, type ChromeTranslate, type ContentControlActionProps, type ContentControlInspectorState, type ContentControlLock, type ContentControlPartProps, type ContentControlProps, type ContentControlSlotId, type ContextMenuAnchor, ContextMenuCellVerticalAlignment, type ContextMenuCommandProps, type ContextMenuContextValue, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, type ContextMenuItemProps, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, type ContextMenuTableRowProps, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, type DocxEditorAuthorStyleProps, type DocxEditorChildren, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, type DocxEditorContentControlNamespace, type DocxEditorContentProps, DocxEditorContextMenu, type DocxEditorContextMenuNamespace, type DocxEditorContextMenuProps, DocxEditorDocumentOutline, type DocxEditorDocumentOutlineProps, DocxEditorEquation, DocxEditorFontNotice, type DocxEditorFontNoticeProps, DocxEditorHeaderFooterChrome, type DocxEditorHeaderFooterChromeProps, DocxEditorHorizontalRuler, DocxEditorHyperLink, type DocxEditorHyperLinkNamespace, DocxEditorImagePropertiesDialog, type DocxEditorImagePropertiesDialogProps, DocxEditorLoading, type DocxEditorLoadingComponent, type DocxEditorLoadingProps, DocxEditorLoadingSpinner, type DocxEditorLoadingSpinnerProps, DocxEditorMenu, type DocxEditorMenuNamespace, type DocxEditorMenuProps, type DocxEditorNamespace, DocxEditorNavigation, type DocxEditorNavigationNamespace, type DocxEditorNavigationProps, DocxEditorNotesChrome, type DocxEditorNotesChromeProps, DocxEditorPageNumber, type DocxEditorPageNumberProps, DocxEditorPageSetupDialog, type DocxEditorPageSetupDialogProps, DocxEditorParagraphDialog, type DocxEditorParagraphDialogProps, type DocxEditorProps, type DocxEditorRef, DocxEditorRoot, type DocxEditorRootListeners, type DocxEditorRootProps, type DocxEditorRulerProps, DocxEditorShell, DocxEditorToolbar, type DocxEditorToolbarNamespace, type DocxEditorToolbarProps, DocxEditorVerticalRuler, DocxEditorViewport, type DocxEditorViewportProps, type DocxFontOrigin, type DocxFontsInput, type DocxFontsSource, type DocxSource, type EditorCaret, type EditorCommandState, type EditorMode, type EditorValueCommandState, type FontFamilyItemProps, type FontFamilyNamespace, type FontFamilyPartProps, type FontFamilyProps, type FontsInput, type HeaderFooterState, HorizontalRuler, type HorizontalRulerProps, type HyperLinkActionProps, type HyperLinkPartProps, type HyperLinkProps, type HyperlinkPopupAnchor, type HyperlinkPopupMode, type HyperlinkPopupState, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, type ImagePropertiesTriggerProps, ImageWrap, type IndentUpdate, LocaleProvider, type LocaleProviderProps, Logo, type MaybeRefOrGetter, type MenuActionProps, MenuBar, type MenuGroupProps, type MenuId, type MenuItemProps, type MenuPartComponent, type MenuProps, type MenuReportIssueProps, type MenuReviewersProps, type MenuRowProps, type MenuSeparatorProps, type MenuSubmenuProps, type MenuTableGridProps, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, type NavigationPartProps, type NavigationShiftInput, NavigationTab, type NavigationTabProps, type NavigationTab$1 as NavigationTabValue, NavigationTabs, NavigationTitle, NavigationToggle, type NormalizedImagePayload, type NotePropertiesState, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, type OutlineHeading$1 as OutlineHeading, type OutlineHeadingItem, PageIndicator, type PageIndicatorProps, PageNumberTranslationContext, type PageSetupUpdate, PaginatedDocxEditor, type PaginatedDocxEditorExpose, type PaginatedDocxEditorHandle, type PaginatedDocxEditorProps, PaginatedDocxEditorShell, type PaginatedDocxEditorShellProps, type ParagraphFlagState, type ParagraphFormatRead, type ParagraphFormatUpdate, type ParagraphStyleItemProps, type ParagraphStyleNamespace, type ParagraphStyleOption, type ParagraphStylePartProps, type ParagraphStyleProps, type ParagraphTabStop, type ProvideDocxEditorResult, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, type ReviewGutter, type ReviewGutterInput, ReviewRailContext, type ReviewRailRegistry, SEARCH_DEBOUNCE_MS, SEARCH_MATCH_LIMIT, type ScopedChromeAnchor, Slot, type SlotProps, type TableBorderColorNamespace, type TableBorderStyleNamespace, type TableBorderTargetNamespace, type TableBorderWidthNamespace, type TableCellFillNamespace, type TableChromeItemProps, type TableChromePartComponent, type TableChromePartProps, TitleBar, TitleBarRight, Toolbar, type ToolbarActionProps, type ToolbarAlignmentComponent, ToolbarButton, type ToolbarButtonProps, ToolbarContext, type ToolbarContextValue, ToolbarGroup, ToolbarImageProperties, type ToolbarPartComponent, type ToolbarPartProps, type ToolbarProps, type ToolbarReviewersProps, type ToolbarSeparatorProps, type ToolbarSlotPartComponent, type ToolbarSlotPartProps, type ToolbarTranslate, type UseContentControlResult, type UseDocumentOutlineResult, type UseDocumentSearchResult, type UseDocxSourceOptions, type UseDocxSourceResult, type UseFontFamilyResult, type UseHyperlinkPopupResult, type UseNavigationPaneOptions, type UseNavigationPaneResult, type UsePageSetupReturn, type UseParagraphFormatReturn, type UseParagraphIndentReturn, type UseParagraphStyleResult, type UseZoomResult, VERSION, VerticalRuler, type VerticalRulerProps, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };