@fileverse-dev/ddoc 2.1.0-patch-7 → 2.1.0-patch-8
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/README.md +15 -0
- package/dist/index.es.js +21395 -21279
- package/dist/package/components/presentation-mode/presentation-mode.d.ts +2 -1
- package/dist/package/types.d.ts +1 -0
- package/dist/package/use-ddoc-editor.d.ts +1 -1
- package/dist/package/zoom-service.d.ts +10 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -51,6 +51,21 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
51
51
|
| `setWordCount` (optional) | `React.Dispatch<SetStateAction<number>>` | Optional. React Set State function to update Word Count |
|
52
52
|
| `scrollPosition`(optional) | `number` | User cursor position to scroll to on intitalising the content of the editor |
|
53
53
|
| `editorCanvasClassNames`(optional) | `string` | Optional. Extra className for editor-canvas |
|
54
|
+
| `selectedTags` (optional) | `TagType[]` | Array of currently selected tags |
|
55
|
+
| `setSelectedTags` (optional) | `React.Dispatch<SetStateAction<TagType[]>>` | Function to update selected tags |
|
56
|
+
| `zoomLevel` (required) | `string` | Current zoom level of the editor |
|
57
|
+
| `setZoomLevel` (required) | `React.Dispatch<SetStateAction<string>>` | Function to update zoom level |
|
58
|
+
| `isNavbarVisible` (required) | `boolean` | Controls visibility of the navbar |
|
59
|
+
| `setIsNavbarVisible` (required) | `React.Dispatch<SetStateAction<boolean>>` | Function to toggle navbar visibility |
|
60
|
+
| `renderNavbar` (optional) | `({ editor: JSONContent }) => JSX.Element` | Function to render custom navbar content |
|
61
|
+
| `disableBottomToolbar` (optional) | `boolean` | When true, disables the bottom toolbar |
|
62
|
+
| `isPresentationMode` (optional) | `boolean` | Controls if editor is in presentation mode |
|
63
|
+
| `setIsPresentationMode` (optional) | `React.Dispatch<SetStateAction<boolean>>` | Function to toggle presentation mode |
|
64
|
+
| `onInlineComment` (optional) | `() => void` | Callback function when inline comment is added |
|
65
|
+
| `onMarkdownExport` (optional) | `() => void` | Callback function for markdown export |
|
66
|
+
| `onMarkdownImport` (optional) | `() => void` | Callback function for markdown import |
|
67
|
+
| `sharedSlidesLink` (optional) | `string` | Link for shared slides in presentation mode |
|
68
|
+
| `documentName` (optional) | `string` | Name of the document |
|
54
69
|
|
55
70
|
## Data Interface
|
56
71
|
|