@docx-editor.dev/react 2.15.0 → 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.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -250,11 +250,12 @@ interface DocxEditorRootProps {
|
|
|
250
250
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
251
251
|
author?: string;
|
|
252
252
|
/**
|
|
253
|
-
*
|
|
254
|
-
* Changes apply without a remount.
|
|
253
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
254
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
255
|
+
* For UI translations, wrap Root and its chrome in LocaleProvider with an i18n catalog.
|
|
255
256
|
*/
|
|
256
257
|
locale?: string;
|
|
257
|
-
/** Live drawing
|
|
258
|
+
/** Live drawing and form-control labels; defaults to the active catalogue. */
|
|
258
259
|
translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
259
260
|
/**
|
|
260
261
|
* Capability modules to register (`@docx-editor.dev/pro`'s review module, custom nodes,
|
|
@@ -2228,8 +2229,8 @@ interface DocxEditorProps {
|
|
|
2228
2229
|
*
|
|
2229
2230
|
* Equivalent to wrapping this editor in `<LocaleProvider i18n={de}>`, which is still
|
|
2230
2231
|
* the way to set one language for several editors at once — this prop overrides such a
|
|
2231
|
-
* provider for this editor only.
|
|
2232
|
-
*
|
|
2232
|
+
* provider for this editor only. `locale` separately selects regional date input and
|
|
2233
|
+
* generated document labels; it does not select the UI language.
|
|
2233
2234
|
*
|
|
2234
2235
|
* Hold it at a stable identity: a catalogue written inline (`i18n={{ toolbar: … }}`) is
|
|
2235
2236
|
* a new object every render, and the merged catalogue behind it is what the chrome
|
|
@@ -2341,8 +2342,9 @@ interface DocxEditorProps {
|
|
|
2341
2342
|
*/
|
|
2342
2343
|
zoomMode?: ZoomMode | 'auto';
|
|
2343
2344
|
/**
|
|
2344
|
-
*
|
|
2345
|
-
* Changes apply without a remount.
|
|
2345
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
2346
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
2347
|
+
* UI translations are supplied separately through i18n.
|
|
2346
2348
|
*/
|
|
2347
2349
|
locale?: string;
|
|
2348
2350
|
author?: string;
|
|
@@ -3393,7 +3395,7 @@ interface PaginatedDocxEditorHandle {
|
|
|
3393
3395
|
formatting(): SurfaceFormatting | null;
|
|
3394
3396
|
/** The section the document declares — what a ruler is made of. */
|
|
3395
3397
|
sectionProperties(): SectionProperties | null;
|
|
3396
|
-
/**
|
|
3398
|
+
/** Save pending form input. Throws for invalid values or an active edit. */
|
|
3397
3399
|
save(): Uint8Array | null;
|
|
3398
3400
|
}
|
|
3399
3401
|
/** Vue name for the same handle contract. @public */
|
package/dist/index.d.ts
CHANGED
|
@@ -250,11 +250,12 @@ interface DocxEditorRootProps {
|
|
|
250
250
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
251
251
|
author?: string;
|
|
252
252
|
/**
|
|
253
|
-
*
|
|
254
|
-
* Changes apply without a remount.
|
|
253
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
254
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
255
|
+
* For UI translations, wrap Root and its chrome in LocaleProvider with an i18n catalog.
|
|
255
256
|
*/
|
|
256
257
|
locale?: string;
|
|
257
|
-
/** Live drawing
|
|
258
|
+
/** Live drawing and form-control labels; defaults to the active catalogue. */
|
|
258
259
|
translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
259
260
|
/**
|
|
260
261
|
* Capability modules to register (`@docx-editor.dev/pro`'s review module, custom nodes,
|
|
@@ -2228,8 +2229,8 @@ interface DocxEditorProps {
|
|
|
2228
2229
|
*
|
|
2229
2230
|
* Equivalent to wrapping this editor in `<LocaleProvider i18n={de}>`, which is still
|
|
2230
2231
|
* the way to set one language for several editors at once — this prop overrides such a
|
|
2231
|
-
* provider for this editor only.
|
|
2232
|
-
*
|
|
2232
|
+
* provider for this editor only. `locale` separately selects regional date input and
|
|
2233
|
+
* generated document labels; it does not select the UI language.
|
|
2233
2234
|
*
|
|
2234
2235
|
* Hold it at a stable identity: a catalogue written inline (`i18n={{ toolbar: … }}`) is
|
|
2235
2236
|
* a new object every render, and the merged catalogue behind it is what the chrome
|
|
@@ -2341,8 +2342,9 @@ interface DocxEditorProps {
|
|
|
2341
2342
|
*/
|
|
2342
2343
|
zoomMode?: ZoomMode | 'auto';
|
|
2343
2344
|
/**
|
|
2344
|
-
*
|
|
2345
|
-
* Changes apply without a remount.
|
|
2345
|
+
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
2346
|
+
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
2347
|
+
* UI translations are supplied separately through i18n.
|
|
2346
2348
|
*/
|
|
2347
2349
|
locale?: string;
|
|
2348
2350
|
author?: string;
|
|
@@ -3393,7 +3395,7 @@ interface PaginatedDocxEditorHandle {
|
|
|
3393
3395
|
formatting(): SurfaceFormatting | null;
|
|
3394
3396
|
/** The section the document declares — what a ruler is made of. */
|
|
3395
3397
|
sectionProperties(): SectionProperties | null;
|
|
3396
|
-
/**
|
|
3398
|
+
/** Save pending form input. Throws for invalid values or an active edit. */
|
|
3397
3399
|
save(): Uint8Array | null;
|
|
3398
3400
|
}
|
|
3399
3401
|
/** Vue name for the same handle contract. @public */
|