@docx-editor.dev/vue 2.14.1 → 2.15.1

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
@@ -32,10 +32,18 @@ type DocxEditorChildren = VNode;
32
32
  interface DocxEditorRootProps {
33
33
  document?: DocumentSource;
34
34
  fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
35
+ /** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
35
36
  author?: string;
37
+ /**
38
+ * Engine locale for engine-generated content, such as the table of contents title.
39
+ * Changes apply without a remount.
40
+ */
36
41
  locale?: string;
42
+ /** Live drawing labels. Defaults to the active locale catalog. */
37
43
  translate?: (key: string, params?: Record<string, string | number>) => string;
44
+ /** Construction-time capability modules. Later array changes need a remount. */
38
45
  modules?: readonly EditorModule[];
46
+ /** Live host mode. Omit it to let document tracking settings select the mode. */
39
47
  mode?: 'edit' | 'view' | 'suggesting';
40
48
  zoom?: number;
41
49
  zoomMode?: ZoomMode | 'auto';
@@ -847,8 +855,8 @@ declare const ToolbarAction: vue.DefineComponent<vue.ExtractPropTypes<{
847
855
  onSelect?: ((...args: any[]) => any) | undefined;
848
856
  }>, {
849
857
  disabledReason: string;
850
- class: string;
851
858
  active: boolean;
859
+ class: string;
852
860
  className: string;
853
861
  icon: VNode<vue.RendererNode, vue.RendererElement, {
854
862
  [key: string]: any;
@@ -5171,6 +5179,7 @@ type EditorMode = 'edit' | 'view' | 'suggesting';
5171
5179
  interface DocxEditorProps {
5172
5180
  fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
5173
5181
  colorMode?: 'light' | 'dark' | 'system';
5182
+ /** Live resolver for chrome and drawing labels. */
5174
5183
  t?: (key: string, params?: Record<string, string | number>) => string;
5175
5184
  i18n?: Translations;
5176
5185
  chrome?: boolean;
@@ -5181,11 +5190,17 @@ interface DocxEditorProps {
5181
5190
  navigation?: boolean;
5182
5191
  rulers?: boolean;
5183
5192
  document?: DocumentSource;
5193
+ /** Live host mode. */
5184
5194
  mode?: EditorMode;
5185
5195
  zoom?: number;
5186
5196
  zoomMode?: ZoomMode | 'auto';
5197
+ /**
5198
+ * Engine locale for engine-generated content, such as the table of contents title.
5199
+ * Changes apply without a remount.
5200
+ */
5187
5201
  locale?: string;
5188
5202
  author?: string;
5203
+ /** Construction-time capability modules. Later array changes need a remount. */
5189
5204
  modules?: readonly EditorModule[];
5190
5205
  class?: string;
5191
5206
  }
package/dist/index.d.ts CHANGED
@@ -32,10 +32,18 @@ type DocxEditorChildren = VNode;
32
32
  interface DocxEditorRootProps {
33
33
  document?: DocumentSource;
34
34
  fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
35
+ /** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
35
36
  author?: string;
37
+ /**
38
+ * Engine locale for engine-generated content, such as the table of contents title.
39
+ * Changes apply without a remount.
40
+ */
36
41
  locale?: string;
42
+ /** Live drawing labels. Defaults to the active locale catalog. */
37
43
  translate?: (key: string, params?: Record<string, string | number>) => string;
44
+ /** Construction-time capability modules. Later array changes need a remount. */
38
45
  modules?: readonly EditorModule[];
46
+ /** Live host mode. Omit it to let document tracking settings select the mode. */
39
47
  mode?: 'edit' | 'view' | 'suggesting';
40
48
  zoom?: number;
41
49
  zoomMode?: ZoomMode | 'auto';
@@ -847,8 +855,8 @@ declare const ToolbarAction: vue.DefineComponent<vue.ExtractPropTypes<{
847
855
  onSelect?: ((...args: any[]) => any) | undefined;
848
856
  }>, {
849
857
  disabledReason: string;
850
- class: string;
851
858
  active: boolean;
859
+ class: string;
852
860
  className: string;
853
861
  icon: VNode<vue.RendererNode, vue.RendererElement, {
854
862
  [key: string]: any;
@@ -5171,6 +5179,7 @@ type EditorMode = 'edit' | 'view' | 'suggesting';
5171
5179
  interface DocxEditorProps {
5172
5180
  fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
5173
5181
  colorMode?: 'light' | 'dark' | 'system';
5182
+ /** Live resolver for chrome and drawing labels. */
5174
5183
  t?: (key: string, params?: Record<string, string | number>) => string;
5175
5184
  i18n?: Translations;
5176
5185
  chrome?: boolean;
@@ -5181,11 +5190,17 @@ interface DocxEditorProps {
5181
5190
  navigation?: boolean;
5182
5191
  rulers?: boolean;
5183
5192
  document?: DocumentSource;
5193
+ /** Live host mode. */
5184
5194
  mode?: EditorMode;
5185
5195
  zoom?: number;
5186
5196
  zoomMode?: ZoomMode | 'auto';
5197
+ /**
5198
+ * Engine locale for engine-generated content, such as the table of contents title.
5199
+ * Changes apply without a remount.
5200
+ */
5187
5201
  locale?: string;
5188
5202
  author?: string;
5203
+ /** Construction-time capability modules. Later array changes need a remount. */
5189
5204
  modules?: readonly EditorModule[];
5190
5205
  class?: string;
5191
5206
  }