@docx-editor.dev/react 2.1.1 → 2.1.3
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 +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1922,6 +1922,18 @@ interface DocxEditorProps {
|
|
|
1922
1922
|
* `useNavigationPane` / `useDocumentOutline` / `useDocumentSearch`, for a different one.
|
|
1923
1923
|
*/
|
|
1924
1924
|
navigation?: boolean;
|
|
1925
|
+
/**
|
|
1926
|
+
* Horizontal and vertical rulers, on by default with the packaged chrome.
|
|
1927
|
+
*
|
|
1928
|
+
* They are part of the frame rather than an extra: every editor this
|
|
1929
|
+
* component is modelled on shows them, and the placement is not something a
|
|
1930
|
+
* host can get right from outside. The horizontal ruler applies the
|
|
1931
|
+
* navigation shift and the review gutter itself, so it has to sit ABOVE the
|
|
1932
|
+
* scroll container — mounted inside it, the gutter is counted twice and the
|
|
1933
|
+
* ticks drift off the page. Set `false` for a bare page, or compose
|
|
1934
|
+
* `DocxEditor.HorizontalRuler` / `DocxEditor.VerticalRuler` yourself.
|
|
1935
|
+
*/
|
|
1936
|
+
rulers?: boolean;
|
|
1925
1937
|
/** A document to load: DOCX bytes or an existing handle. */
|
|
1926
1938
|
document?: DocumentSource;
|
|
1927
1939
|
/** 'edit' (default) or 'view' (read-only). Applied at mount only — not reactive; remount to change. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1922,6 +1922,18 @@ interface DocxEditorProps {
|
|
|
1922
1922
|
* `useNavigationPane` / `useDocumentOutline` / `useDocumentSearch`, for a different one.
|
|
1923
1923
|
*/
|
|
1924
1924
|
navigation?: boolean;
|
|
1925
|
+
/**
|
|
1926
|
+
* Horizontal and vertical rulers, on by default with the packaged chrome.
|
|
1927
|
+
*
|
|
1928
|
+
* They are part of the frame rather than an extra: every editor this
|
|
1929
|
+
* component is modelled on shows them, and the placement is not something a
|
|
1930
|
+
* host can get right from outside. The horizontal ruler applies the
|
|
1931
|
+
* navigation shift and the review gutter itself, so it has to sit ABOVE the
|
|
1932
|
+
* scroll container — mounted inside it, the gutter is counted twice and the
|
|
1933
|
+
* ticks drift off the page. Set `false` for a bare page, or compose
|
|
1934
|
+
* `DocxEditor.HorizontalRuler` / `DocxEditor.VerticalRuler` yourself.
|
|
1935
|
+
*/
|
|
1936
|
+
rulers?: boolean;
|
|
1925
1937
|
/** A document to load: DOCX bytes or an existing handle. */
|
|
1926
1938
|
document?: DocumentSource;
|
|
1927
1939
|
/** 'edit' (default) or 'view' (read-only). Applied at mount only — not reactive; remount to change. */
|