@docx-editor.dev/vue 2.15.1 → 2.16.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 +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -35,11 +35,12 @@ interface DocxEditorRootProps {
|
|
|
35
35
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
36
36
|
author?: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* Changes apply without a remount.
|
|
38
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
39
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
40
|
+
* For UI translations, wrap Root and its chrome in LocaleProvider with an i18n catalog.
|
|
40
41
|
*/
|
|
41
42
|
locale?: string;
|
|
42
|
-
/** Live drawing labels. Defaults to the active
|
|
43
|
+
/** Live drawing and form-control labels. Defaults to the active catalogue. */
|
|
43
44
|
translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
44
45
|
/** Construction-time capability modules. Later array changes need a remount. */
|
|
45
46
|
modules?: readonly EditorModule[];
|
|
@@ -196,8 +197,8 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
196
197
|
fonts: _docx_editor_dev_core.FontConfiguration | _docx_editor_dev_core.FontConfigurationFragment | _docx_editor_dev_core.FontResolver | undefined;
|
|
197
198
|
author: string;
|
|
198
199
|
mode: "suggesting" | "edit" | "view";
|
|
199
|
-
imageDecodePort: ImageDecodePort;
|
|
200
200
|
zoomMode: "auto" | ZoomMode;
|
|
201
|
+
imageDecodePort: ImageDecodePort;
|
|
201
202
|
translate: ((key: string, params?: Record<string, string | number>) => string) | undefined;
|
|
202
203
|
modules: readonly EditorModule[];
|
|
203
204
|
tableInteractionLabel: ((key: "table.insertRowBelow" | "table.insertColumnRight") => string) | undefined;
|
|
@@ -1526,6 +1527,7 @@ declare const MenuRow: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1526
1527
|
};
|
|
1527
1528
|
}>> & Readonly<{}>, {
|
|
1528
1529
|
title: string;
|
|
1530
|
+
selected: boolean;
|
|
1529
1531
|
slot: string;
|
|
1530
1532
|
active: boolean;
|
|
1531
1533
|
className: string;
|
|
@@ -1533,7 +1535,6 @@ declare const MenuRow: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1533
1535
|
[key: string]: any;
|
|
1534
1536
|
}>;
|
|
1535
1537
|
disabled: boolean;
|
|
1536
|
-
selected: boolean;
|
|
1537
1538
|
onSelect: () => void;
|
|
1538
1539
|
'data-slot': string;
|
|
1539
1540
|
shortcut: string;
|
|
@@ -5195,8 +5196,9 @@ interface DocxEditorProps {
|
|
|
5195
5196
|
zoom?: number;
|
|
5196
5197
|
zoomMode?: ZoomMode | 'auto';
|
|
5197
5198
|
/**
|
|
5198
|
-
*
|
|
5199
|
-
* Changes apply without a remount.
|
|
5199
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
5200
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
5201
|
+
* UI translations are supplied separately through i18n.
|
|
5200
5202
|
*/
|
|
5201
5203
|
locale?: string;
|
|
5202
5204
|
author?: string;
|
|
@@ -5966,6 +5968,7 @@ interface PaginatedDocxEditorHandle {
|
|
|
5966
5968
|
}): void;
|
|
5967
5969
|
formatting(): SurfaceFormatting | null;
|
|
5968
5970
|
sectionProperties(): SectionProperties | null;
|
|
5971
|
+
/** Save pending form input. Throws for invalid values or an active edit. */
|
|
5969
5972
|
save(): Uint8Array | null;
|
|
5970
5973
|
}
|
|
5971
5974
|
/** Vue name for the same contract React exports as `PaginatedDocxEditorExpose`. @public */
|
package/dist/index.d.ts
CHANGED
|
@@ -35,11 +35,12 @@ interface DocxEditorRootProps {
|
|
|
35
35
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
36
36
|
author?: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* Changes apply without a remount.
|
|
38
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
39
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
40
|
+
* For UI translations, wrap Root and its chrome in LocaleProvider with an i18n catalog.
|
|
40
41
|
*/
|
|
41
42
|
locale?: string;
|
|
42
|
-
/** Live drawing labels. Defaults to the active
|
|
43
|
+
/** Live drawing and form-control labels. Defaults to the active catalogue. */
|
|
43
44
|
translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
44
45
|
/** Construction-time capability modules. Later array changes need a remount. */
|
|
45
46
|
modules?: readonly EditorModule[];
|
|
@@ -196,8 +197,8 @@ declare const DocxEditorRoot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
196
197
|
fonts: _docx_editor_dev_core.FontConfiguration | _docx_editor_dev_core.FontConfigurationFragment | _docx_editor_dev_core.FontResolver | undefined;
|
|
197
198
|
author: string;
|
|
198
199
|
mode: "suggesting" | "edit" | "view";
|
|
199
|
-
imageDecodePort: ImageDecodePort;
|
|
200
200
|
zoomMode: "auto" | ZoomMode;
|
|
201
|
+
imageDecodePort: ImageDecodePort;
|
|
201
202
|
translate: ((key: string, params?: Record<string, string | number>) => string) | undefined;
|
|
202
203
|
modules: readonly EditorModule[];
|
|
203
204
|
tableInteractionLabel: ((key: "table.insertRowBelow" | "table.insertColumnRight") => string) | undefined;
|
|
@@ -1526,6 +1527,7 @@ declare const MenuRow: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1526
1527
|
};
|
|
1527
1528
|
}>> & Readonly<{}>, {
|
|
1528
1529
|
title: string;
|
|
1530
|
+
selected: boolean;
|
|
1529
1531
|
slot: string;
|
|
1530
1532
|
active: boolean;
|
|
1531
1533
|
className: string;
|
|
@@ -1533,7 +1535,6 @@ declare const MenuRow: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1533
1535
|
[key: string]: any;
|
|
1534
1536
|
}>;
|
|
1535
1537
|
disabled: boolean;
|
|
1536
|
-
selected: boolean;
|
|
1537
1538
|
onSelect: () => void;
|
|
1538
1539
|
'data-slot': string;
|
|
1539
1540
|
shortcut: string;
|
|
@@ -5195,8 +5196,9 @@ interface DocxEditorProps {
|
|
|
5195
5196
|
zoom?: number;
|
|
5196
5197
|
zoomMode?: ZoomMode | 'auto';
|
|
5197
5198
|
/**
|
|
5198
|
-
*
|
|
5199
|
-
* Changes apply without a remount.
|
|
5199
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
5200
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
5201
|
+
* UI translations are supplied separately through i18n.
|
|
5200
5202
|
*/
|
|
5201
5203
|
locale?: string;
|
|
5202
5204
|
author?: string;
|
|
@@ -5966,6 +5968,7 @@ interface PaginatedDocxEditorHandle {
|
|
|
5966
5968
|
}): void;
|
|
5967
5969
|
formatting(): SurfaceFormatting | null;
|
|
5968
5970
|
sectionProperties(): SectionProperties | null;
|
|
5971
|
+
/** Save pending form input. Throws for invalid values or an active edit. */
|
|
5969
5972
|
save(): Uint8Array | null;
|
|
5970
5973
|
}
|
|
5971
5974
|
/** Vue name for the same contract React exports as `PaginatedDocxEditorExpose`. @public */
|