@docx-editor.dev/react 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.mts +19 -14
- package/dist/index.d.ts +19 -14
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -227,10 +227,9 @@ interface ReviewRailRegistry {
|
|
|
227
227
|
declare const ReviewRailContext: react.Context<ReviewRailRegistry | null>;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Props for `DocxEditor.Root`.
|
|
231
|
-
* `locale`,
|
|
232
|
-
*
|
|
233
|
-
* `Editor.setZoom` so edits, the caret, and the undo history survive.
|
|
230
|
+
* Props for `DocxEditor.Root`. Only `document`, `fonts`, and `imageDecodePort` identity remounts
|
|
231
|
+
* the editor. Later `author`, `locale`, `mode`, `translate`, `zoom`, and `zoomMode` changes use
|
|
232
|
+
* instance setters. `modules` is sampled at mount only.
|
|
234
233
|
*
|
|
235
234
|
* @public
|
|
236
235
|
*/
|
|
@@ -248,19 +247,22 @@ interface DocxEditorRootProps {
|
|
|
248
247
|
* failures degrade to the fixed measurer and report through `onFontError`.
|
|
249
248
|
*/
|
|
250
249
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
250
|
+
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
251
251
|
author?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Engine locale for engine-generated content, such as the table of contents title.
|
|
254
|
+
* Changes apply without a remount.
|
|
255
|
+
*/
|
|
252
256
|
locale?: string;
|
|
253
|
-
/**
|
|
257
|
+
/** Live drawing labels for painted placeholders; defaults to the active locale catalogue. */
|
|
254
258
|
translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
255
259
|
/**
|
|
256
|
-
* Capability modules to register (`@docx-editor.dev/pro`'s review module,
|
|
257
|
-
*
|
|
258
|
-
* construction-time in the engine.
|
|
260
|
+
* Capability modules to register (`@docx-editor.dev/pro`'s review module, custom nodes,
|
|
261
|
+
* collaboration). Sampled at mount only because registration is construction-time.
|
|
259
262
|
*/
|
|
260
263
|
modules?: readonly EditorModule[];
|
|
261
264
|
/**
|
|
262
|
-
* The mode
|
|
263
|
-
* mount only.
|
|
265
|
+
* The host mode, matching the toolbar's three-state pill. Changes apply without a remount.
|
|
264
266
|
*
|
|
265
267
|
* `'edit'` opens in editing even when the document's `w:trackRevisions` asks for
|
|
266
268
|
* tracked changes; `'suggesting'` opens in suggesting (needs a review module and an
|
|
@@ -2319,8 +2321,7 @@ interface DocxEditorProps {
|
|
|
2319
2321
|
* Omitting it mounts NO document, which is not the same as an empty one. */
|
|
2320
2322
|
document?: DocumentSource;
|
|
2321
2323
|
/**
|
|
2322
|
-
* The mode
|
|
2323
|
-
* mount only — not reactive; remount to change.
|
|
2324
|
+
* The host mode, matching the toolbar's three-state pill. Changes apply without a remount.
|
|
2324
2325
|
*
|
|
2325
2326
|
* Defaults to `'edit'`: the packaged editor opens every document ready to type, even
|
|
2326
2327
|
* one whose `w:trackRevisions` asks for tracked changes. Pass `'suggesting'` (needs
|
|
@@ -2339,11 +2340,15 @@ interface DocxEditorProps {
|
|
|
2339
2340
|
* `{ type: 'fixed' }` opts out.
|
|
2340
2341
|
*/
|
|
2341
2342
|
zoomMode?: ZoomMode | 'auto';
|
|
2343
|
+
/**
|
|
2344
|
+
* Engine locale for engine-generated content, such as the table of contents title.
|
|
2345
|
+
* Changes apply without a remount.
|
|
2346
|
+
*/
|
|
2342
2347
|
locale?: string;
|
|
2343
2348
|
author?: string;
|
|
2344
2349
|
/**
|
|
2345
|
-
* Capability modules to register (`@docx-editor.dev/pro`'s review module,
|
|
2346
|
-
*
|
|
2350
|
+
* Capability modules to register (`@docx-editor.dev/pro`'s review module, custom nodes).
|
|
2351
|
+
* Applied at mount only.
|
|
2347
2352
|
*/
|
|
2348
2353
|
modules?: readonly EditorModule[];
|
|
2349
2354
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -227,10 +227,9 @@ interface ReviewRailRegistry {
|
|
|
227
227
|
declare const ReviewRailContext: react.Context<ReviewRailRegistry | null>;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Props for `DocxEditor.Root`.
|
|
231
|
-
* `locale`,
|
|
232
|
-
*
|
|
233
|
-
* `Editor.setZoom` so edits, the caret, and the undo history survive.
|
|
230
|
+
* Props for `DocxEditor.Root`. Only `document`, `fonts`, and `imageDecodePort` identity remounts
|
|
231
|
+
* the editor. Later `author`, `locale`, `mode`, `translate`, `zoom`, and `zoomMode` changes use
|
|
232
|
+
* instance setters. `modules` is sampled at mount only.
|
|
234
233
|
*
|
|
235
234
|
* @public
|
|
236
235
|
*/
|
|
@@ -248,19 +247,22 @@ interface DocxEditorRootProps {
|
|
|
248
247
|
* failures degrade to the fixed measurer and report through `onFontError`.
|
|
249
248
|
*/
|
|
250
249
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
250
|
+
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
251
251
|
author?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Engine locale for engine-generated content, such as the table of contents title.
|
|
254
|
+
* Changes apply without a remount.
|
|
255
|
+
*/
|
|
252
256
|
locale?: string;
|
|
253
|
-
/**
|
|
257
|
+
/** Live drawing labels for painted placeholders; defaults to the active locale catalogue. */
|
|
254
258
|
translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
255
259
|
/**
|
|
256
|
-
* Capability modules to register (`@docx-editor.dev/pro`'s review module,
|
|
257
|
-
*
|
|
258
|
-
* construction-time in the engine.
|
|
260
|
+
* Capability modules to register (`@docx-editor.dev/pro`'s review module, custom nodes,
|
|
261
|
+
* collaboration). Sampled at mount only because registration is construction-time.
|
|
259
262
|
*/
|
|
260
263
|
modules?: readonly EditorModule[];
|
|
261
264
|
/**
|
|
262
|
-
* The mode
|
|
263
|
-
* mount only.
|
|
265
|
+
* The host mode, matching the toolbar's three-state pill. Changes apply without a remount.
|
|
264
266
|
*
|
|
265
267
|
* `'edit'` opens in editing even when the document's `w:trackRevisions` asks for
|
|
266
268
|
* tracked changes; `'suggesting'` opens in suggesting (needs a review module and an
|
|
@@ -2319,8 +2321,7 @@ interface DocxEditorProps {
|
|
|
2319
2321
|
* Omitting it mounts NO document, which is not the same as an empty one. */
|
|
2320
2322
|
document?: DocumentSource;
|
|
2321
2323
|
/**
|
|
2322
|
-
* The mode
|
|
2323
|
-
* mount only — not reactive; remount to change.
|
|
2324
|
+
* The host mode, matching the toolbar's three-state pill. Changes apply without a remount.
|
|
2324
2325
|
*
|
|
2325
2326
|
* Defaults to `'edit'`: the packaged editor opens every document ready to type, even
|
|
2326
2327
|
* one whose `w:trackRevisions` asks for tracked changes. Pass `'suggesting'` (needs
|
|
@@ -2339,11 +2340,15 @@ interface DocxEditorProps {
|
|
|
2339
2340
|
* `{ type: 'fixed' }` opts out.
|
|
2340
2341
|
*/
|
|
2341
2342
|
zoomMode?: ZoomMode | 'auto';
|
|
2343
|
+
/**
|
|
2344
|
+
* Engine locale for engine-generated content, such as the table of contents title.
|
|
2345
|
+
* Changes apply without a remount.
|
|
2346
|
+
*/
|
|
2342
2347
|
locale?: string;
|
|
2343
2348
|
author?: string;
|
|
2344
2349
|
/**
|
|
2345
|
-
* Capability modules to register (`@docx-editor.dev/pro`'s review module,
|
|
2346
|
-
*
|
|
2350
|
+
* Capability modules to register (`@docx-editor.dev/pro`'s review module, custom nodes).
|
|
2351
|
+
* Applied at mount only.
|
|
2347
2352
|
*/
|
|
2348
2353
|
modules?: readonly EditorModule[];
|
|
2349
2354
|
/**
|