@fileverse-dev/ddoc 2.1.0-patch-6.2 → 2.1.0-patch-8

Sign up to get free protection for your applications and to get access to all the features.
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