@docx-editor.dev/vue 2.29.0 → 2.30.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 +60 -1
- package/dist/index.d.ts +60 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import * as vue from 'vue';
|
|
7
7
|
import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, InjectionKey, MaybeRef, ComputedRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } 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, EditorModule, ReviewDisplayMode, FieldResultsMode, 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, 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';
|
|
@@ -5784,6 +5784,8 @@ interface DocxEditorRootProps {
|
|
|
5784
5784
|
popups?: DocxEditorPopups;
|
|
5785
5785
|
document?: DocumentSource;
|
|
5786
5786
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
5787
|
+
/** Explicit shaping byte ceiling; a changed maxFontBytes value remounts. */
|
|
5788
|
+
fontShaping?: FontShapingOptions;
|
|
5787
5789
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
5788
5790
|
author?: string;
|
|
5789
5791
|
/**
|
|
@@ -5817,6 +5819,20 @@ interface DocxEditorRootProps {
|
|
|
5817
5819
|
* with a collaboration module.
|
|
5818
5820
|
*/
|
|
5819
5821
|
fieldResults?: FieldResultsMode;
|
|
5822
|
+
/**
|
|
5823
|
+
* Opt-in relaxation of content-control locks. With `allowFormattingInLockedContent: true`,
|
|
5824
|
+
* readers can format `contentLocked` and `sdtContentLocked` controls while their text stays
|
|
5825
|
+
* protected. Read once, when the editor is created: a later change in value is ignored,
|
|
5826
|
+
* with a development warning.
|
|
5827
|
+
*/
|
|
5828
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
5829
|
+
/**
|
|
5830
|
+
* How the caret moves through an inline content control whose content is locked.
|
|
5831
|
+
* `'characters'` (the default) walks through its characters, as Word does. `'atomic'` makes
|
|
5832
|
+
* the control one caret unit. Read once, when the editor is created: a later change is
|
|
5833
|
+
* ignored, with a development warning.
|
|
5834
|
+
*/
|
|
5835
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
5820
5836
|
tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
5821
5837
|
imageDecodePort?: ImageDecodePort;
|
|
5822
5838
|
onReady?: (editor: Editor) => void;
|
|
@@ -5870,6 +5886,10 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5870
5886
|
type: PropType<DocxEditorRootProps['fonts']>;
|
|
5871
5887
|
default: undefined;
|
|
5872
5888
|
};
|
|
5889
|
+
fontShaping: {
|
|
5890
|
+
type: PropType<DocxEditorRootProps['fontShaping']>;
|
|
5891
|
+
default: undefined;
|
|
5892
|
+
};
|
|
5873
5893
|
author: {
|
|
5874
5894
|
type: StringConstructor;
|
|
5875
5895
|
default: undefined;
|
|
@@ -5896,6 +5916,14 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5896
5916
|
type: PropType<FieldResultsMode>;
|
|
5897
5917
|
default: undefined;
|
|
5898
5918
|
};
|
|
5919
|
+
contentLockPolicy: {
|
|
5920
|
+
type: PropType<ContentLockPolicy>;
|
|
5921
|
+
default: undefined;
|
|
5922
|
+
};
|
|
5923
|
+
lockedControlNavigation: {
|
|
5924
|
+
type: PropType<LockedControlNavigation>;
|
|
5925
|
+
default: undefined;
|
|
5926
|
+
};
|
|
5899
5927
|
zoom: {
|
|
5900
5928
|
type: NumberConstructor;
|
|
5901
5929
|
default: undefined;
|
|
@@ -5929,6 +5957,10 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5929
5957
|
type: PropType<DocxEditorRootProps['fonts']>;
|
|
5930
5958
|
default: undefined;
|
|
5931
5959
|
};
|
|
5960
|
+
fontShaping: {
|
|
5961
|
+
type: PropType<DocxEditorRootProps['fontShaping']>;
|
|
5962
|
+
default: undefined;
|
|
5963
|
+
};
|
|
5932
5964
|
author: {
|
|
5933
5965
|
type: StringConstructor;
|
|
5934
5966
|
default: undefined;
|
|
@@ -5955,6 +5987,14 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5955
5987
|
type: PropType<FieldResultsMode>;
|
|
5956
5988
|
default: undefined;
|
|
5957
5989
|
};
|
|
5990
|
+
contentLockPolicy: {
|
|
5991
|
+
type: PropType<ContentLockPolicy>;
|
|
5992
|
+
default: undefined;
|
|
5993
|
+
};
|
|
5994
|
+
lockedControlNavigation: {
|
|
5995
|
+
type: PropType<LockedControlNavigation>;
|
|
5996
|
+
default: undefined;
|
|
5997
|
+
};
|
|
5958
5998
|
zoom: {
|
|
5959
5999
|
type: NumberConstructor;
|
|
5960
6000
|
default: undefined;
|
|
@@ -5979,12 +6019,15 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5979
6019
|
}>, {
|
|
5980
6020
|
document: DocumentSource;
|
|
5981
6021
|
fonts: _docx_editor_dev_core.FontConfiguration | _docx_editor_dev_core.FontConfigurationFragment | _docx_editor_dev_core.FontResolver | undefined;
|
|
6022
|
+
fontShaping: _docx_editor_dev_core.FontShapingOptions | undefined;
|
|
5982
6023
|
author: string;
|
|
5983
6024
|
locale: string;
|
|
5984
6025
|
translate: ((key: string, params?: Record<string, string | number>) => string) | undefined;
|
|
5985
6026
|
modules: readonly EditorModule[];
|
|
5986
6027
|
mode: "edit" | "suggesting" | "view";
|
|
5987
6028
|
fieldResults: FieldResultsMode;
|
|
6029
|
+
contentLockPolicy: ContentLockPolicy;
|
|
6030
|
+
lockedControlNavigation: LockedControlNavigation;
|
|
5988
6031
|
zoom: number;
|
|
5989
6032
|
zoomMode: "auto" | ZoomMode;
|
|
5990
6033
|
tableInteractionLabel: ((key: 'table.insertRowBelow' | 'table.insertColumnRight') => string) | undefined;
|
|
@@ -8179,6 +8222,8 @@ type EditorMode = 'edit' | 'view' | 'suggesting';
|
|
|
8179
8222
|
interface DocxEditorProps {
|
|
8180
8223
|
popups?: DocxEditorPopups;
|
|
8181
8224
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
8225
|
+
/** Explicit shaping byte ceiling. A changed maxFontBytes value remounts; equal values keep the instance. */
|
|
8226
|
+
fontShaping?: FontShapingOptions;
|
|
8182
8227
|
colorMode?: 'light' | 'dark' | 'system';
|
|
8183
8228
|
/** Live resolver for chrome and drawing labels. */
|
|
8184
8229
|
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
@@ -8216,6 +8261,20 @@ interface DocxEditorProps {
|
|
|
8216
8261
|
* with a collaboration module.
|
|
8217
8262
|
*/
|
|
8218
8263
|
fieldResults?: FieldResultsMode;
|
|
8264
|
+
/**
|
|
8265
|
+
* Opt-in relaxation of content-control locks. With `allowFormattingInLockedContent: true`,
|
|
8266
|
+
* readers can format `contentLocked` and `sdtContentLocked` controls while their text stays
|
|
8267
|
+
* protected. Read once, when the editor is created: a later change in value is ignored,
|
|
8268
|
+
* with a development warning.
|
|
8269
|
+
*/
|
|
8270
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
8271
|
+
/**
|
|
8272
|
+
* How the caret moves through an inline content control whose content is locked.
|
|
8273
|
+
* `'characters'` (the default) walks through its characters, as Word does. `'atomic'` makes
|
|
8274
|
+
* the control one caret unit. Read once, when the editor is created: a later change is
|
|
8275
|
+
* ignored, with a development warning.
|
|
8276
|
+
*/
|
|
8277
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
8219
8278
|
/**
|
|
8220
8279
|
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
8221
8280
|
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import * as vue from 'vue';
|
|
7
7
|
import { Ref, VNode, CSSProperties, PropType, VNodeChild, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, InjectionKey, MaybeRef, ComputedRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } 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, EditorModule, ReviewDisplayMode, FieldResultsMode, 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, 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';
|
|
@@ -5784,6 +5784,8 @@ interface DocxEditorRootProps {
|
|
|
5784
5784
|
popups?: DocxEditorPopups;
|
|
5785
5785
|
document?: DocumentSource;
|
|
5786
5786
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
5787
|
+
/** Explicit shaping byte ceiling; a changed maxFontBytes value remounts. */
|
|
5788
|
+
fontShaping?: FontShapingOptions;
|
|
5787
5789
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
5788
5790
|
author?: string;
|
|
5789
5791
|
/**
|
|
@@ -5817,6 +5819,20 @@ interface DocxEditorRootProps {
|
|
|
5817
5819
|
* with a collaboration module.
|
|
5818
5820
|
*/
|
|
5819
5821
|
fieldResults?: FieldResultsMode;
|
|
5822
|
+
/**
|
|
5823
|
+
* Opt-in relaxation of content-control locks. With `allowFormattingInLockedContent: true`,
|
|
5824
|
+
* readers can format `contentLocked` and `sdtContentLocked` controls while their text stays
|
|
5825
|
+
* protected. Read once, when the editor is created: a later change in value is ignored,
|
|
5826
|
+
* with a development warning.
|
|
5827
|
+
*/
|
|
5828
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
5829
|
+
/**
|
|
5830
|
+
* How the caret moves through an inline content control whose content is locked.
|
|
5831
|
+
* `'characters'` (the default) walks through its characters, as Word does. `'atomic'` makes
|
|
5832
|
+
* the control one caret unit. Read once, when the editor is created: a later change is
|
|
5833
|
+
* ignored, with a development warning.
|
|
5834
|
+
*/
|
|
5835
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
5820
5836
|
tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
5821
5837
|
imageDecodePort?: ImageDecodePort;
|
|
5822
5838
|
onReady?: (editor: Editor) => void;
|
|
@@ -5870,6 +5886,10 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5870
5886
|
type: PropType<DocxEditorRootProps['fonts']>;
|
|
5871
5887
|
default: undefined;
|
|
5872
5888
|
};
|
|
5889
|
+
fontShaping: {
|
|
5890
|
+
type: PropType<DocxEditorRootProps['fontShaping']>;
|
|
5891
|
+
default: undefined;
|
|
5892
|
+
};
|
|
5873
5893
|
author: {
|
|
5874
5894
|
type: StringConstructor;
|
|
5875
5895
|
default: undefined;
|
|
@@ -5896,6 +5916,14 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5896
5916
|
type: PropType<FieldResultsMode>;
|
|
5897
5917
|
default: undefined;
|
|
5898
5918
|
};
|
|
5919
|
+
contentLockPolicy: {
|
|
5920
|
+
type: PropType<ContentLockPolicy>;
|
|
5921
|
+
default: undefined;
|
|
5922
|
+
};
|
|
5923
|
+
lockedControlNavigation: {
|
|
5924
|
+
type: PropType<LockedControlNavigation>;
|
|
5925
|
+
default: undefined;
|
|
5926
|
+
};
|
|
5899
5927
|
zoom: {
|
|
5900
5928
|
type: NumberConstructor;
|
|
5901
5929
|
default: undefined;
|
|
@@ -5929,6 +5957,10 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5929
5957
|
type: PropType<DocxEditorRootProps['fonts']>;
|
|
5930
5958
|
default: undefined;
|
|
5931
5959
|
};
|
|
5960
|
+
fontShaping: {
|
|
5961
|
+
type: PropType<DocxEditorRootProps['fontShaping']>;
|
|
5962
|
+
default: undefined;
|
|
5963
|
+
};
|
|
5932
5964
|
author: {
|
|
5933
5965
|
type: StringConstructor;
|
|
5934
5966
|
default: undefined;
|
|
@@ -5955,6 +5987,14 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5955
5987
|
type: PropType<FieldResultsMode>;
|
|
5956
5988
|
default: undefined;
|
|
5957
5989
|
};
|
|
5990
|
+
contentLockPolicy: {
|
|
5991
|
+
type: PropType<ContentLockPolicy>;
|
|
5992
|
+
default: undefined;
|
|
5993
|
+
};
|
|
5994
|
+
lockedControlNavigation: {
|
|
5995
|
+
type: PropType<LockedControlNavigation>;
|
|
5996
|
+
default: undefined;
|
|
5997
|
+
};
|
|
5958
5998
|
zoom: {
|
|
5959
5999
|
type: NumberConstructor;
|
|
5960
6000
|
default: undefined;
|
|
@@ -5979,12 +6019,15 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
5979
6019
|
}>, {
|
|
5980
6020
|
document: DocumentSource;
|
|
5981
6021
|
fonts: _docx_editor_dev_core.FontConfiguration | _docx_editor_dev_core.FontConfigurationFragment | _docx_editor_dev_core.FontResolver | undefined;
|
|
6022
|
+
fontShaping: _docx_editor_dev_core.FontShapingOptions | undefined;
|
|
5982
6023
|
author: string;
|
|
5983
6024
|
locale: string;
|
|
5984
6025
|
translate: ((key: string, params?: Record<string, string | number>) => string) | undefined;
|
|
5985
6026
|
modules: readonly EditorModule[];
|
|
5986
6027
|
mode: "edit" | "suggesting" | "view";
|
|
5987
6028
|
fieldResults: FieldResultsMode;
|
|
6029
|
+
contentLockPolicy: ContentLockPolicy;
|
|
6030
|
+
lockedControlNavigation: LockedControlNavigation;
|
|
5988
6031
|
zoom: number;
|
|
5989
6032
|
zoomMode: "auto" | ZoomMode;
|
|
5990
6033
|
tableInteractionLabel: ((key: 'table.insertRowBelow' | 'table.insertColumnRight') => string) | undefined;
|
|
@@ -8179,6 +8222,8 @@ type EditorMode = 'edit' | 'view' | 'suggesting';
|
|
|
8179
8222
|
interface DocxEditorProps {
|
|
8180
8223
|
popups?: DocxEditorPopups;
|
|
8181
8224
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
8225
|
+
/** Explicit shaping byte ceiling. A changed maxFontBytes value remounts; equal values keep the instance. */
|
|
8226
|
+
fontShaping?: FontShapingOptions;
|
|
8182
8227
|
colorMode?: 'light' | 'dark' | 'system';
|
|
8183
8228
|
/** Live resolver for chrome and drawing labels. */
|
|
8184
8229
|
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
@@ -8216,6 +8261,20 @@ interface DocxEditorProps {
|
|
|
8216
8261
|
* with a collaboration module.
|
|
8217
8262
|
*/
|
|
8218
8263
|
fieldResults?: FieldResultsMode;
|
|
8264
|
+
/**
|
|
8265
|
+
* Opt-in relaxation of content-control locks. With `allowFormattingInLockedContent: true`,
|
|
8266
|
+
* readers can format `contentLocked` and `sdtContentLocked` controls while their text stays
|
|
8267
|
+
* protected. Read once, when the editor is created: a later change in value is ignored,
|
|
8268
|
+
* with a development warning.
|
|
8269
|
+
*/
|
|
8270
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
8271
|
+
/**
|
|
8272
|
+
* How the caret moves through an inline content control whose content is locked.
|
|
8273
|
+
* `'characters'` (the default) walks through its characters, as Word does. `'atomic'` makes
|
|
8274
|
+
* the control one caret unit. Read once, when the editor is created: a later change is
|
|
8275
|
+
* ignored, with a development warning.
|
|
8276
|
+
*/
|
|
8277
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
8219
8278
|
/**
|
|
8220
8279
|
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
8221
8280
|
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|