@docx-editor.dev/react 2.16.2 → 2.17.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 +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2304,8 +2304,15 @@ interface DocxEditorProps {
|
|
|
2304
2304
|
* space that is already empty, and only moves the page when the window is genuinely too
|
|
2305
2305
|
* narrow to hold both. Compose `DocxEditor.Navigation` yourself, or build on
|
|
2306
2306
|
* `useNavigationPane` / `useDocumentOutline` / `useDocumentSearch`, for a different one.
|
|
2307
|
-
|
|
2308
|
-
|
|
2307
|
+
*
|
|
2308
|
+
* An object is `DocxEditorNavigationProps`, passed straight through, so a host can drive
|
|
2309
|
+
* the pane from its own chrome without giving up the packaged one:
|
|
2310
|
+
* `navigation={{ open, onOpenChange }}` toggles it, `navigation={{ tab: 'find', onTabChange }}`
|
|
2311
|
+
* opens Find. Before this took an object the only way to change any of that was
|
|
2312
|
+
* `navigation={false}` plus rebuilding the pane. `true`/undefined keep the packaged
|
|
2313
|
+
* defaults.
|
|
2314
|
+
*/
|
|
2315
|
+
navigation?: boolean | DocxEditorNavigationProps;
|
|
2309
2316
|
/**
|
|
2310
2317
|
* Horizontal and vertical rulers, on by default with the packaged chrome.
|
|
2311
2318
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2304,8 +2304,15 @@ interface DocxEditorProps {
|
|
|
2304
2304
|
* space that is already empty, and only moves the page when the window is genuinely too
|
|
2305
2305
|
* narrow to hold both. Compose `DocxEditor.Navigation` yourself, or build on
|
|
2306
2306
|
* `useNavigationPane` / `useDocumentOutline` / `useDocumentSearch`, for a different one.
|
|
2307
|
-
|
|
2308
|
-
|
|
2307
|
+
*
|
|
2308
|
+
* An object is `DocxEditorNavigationProps`, passed straight through, so a host can drive
|
|
2309
|
+
* the pane from its own chrome without giving up the packaged one:
|
|
2310
|
+
* `navigation={{ open, onOpenChange }}` toggles it, `navigation={{ tab: 'find', onTabChange }}`
|
|
2311
|
+
* opens Find. Before this took an object the only way to change any of that was
|
|
2312
|
+
* `navigation={false}` plus rebuilding the pane. `true`/undefined keep the packaged
|
|
2313
|
+
* defaults.
|
|
2314
|
+
*/
|
|
2315
|
+
navigation?: boolean | DocxEditorNavigationProps;
|
|
2309
2316
|
/**
|
|
2310
2317
|
* Horizontal and vertical rulers, on by default with the packaged chrome.
|
|
2311
2318
|
*
|