@fileverse-dev/ddoc 2.1.0-yjs-patch-3 → 2.1.0-yjs-patch-5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +15 -0
- package/dist/index.es.js +21752 -21662
- package/dist/package/components/presentation-mode/presentation-mode.d.ts +2 -1
- package/dist/package/extensions/d-block/dblock-node-view.d.ts +0 -1
- package/dist/package/extensions/d-block/dblock.d.ts +0 -1
- package/dist/package/extensions/default-extension.d.ts +1 -1
- package/dist/package/types.d.ts +1 -0
- package/dist/package/utils/template-utils.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/dist/package/useZoomLevelListener.d.ts +0 -14
package/README.md
CHANGED
@@ -53,6 +53,21 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
53
53
|
| `enableIndexeddbSync` (optional) | `boolean` | Indicates when to use yjs-indexeddb provider
|
54
54
|
| `ddocId` (optional) | `string` | custom ID for the document (this has to be provided to enable yjs-indexeddb provider) |
|
55
55
|
| `editorCanvasClassNames`(optional) | `string` | Optional. Extra className for editor-canvas |
|
56
|
+
| `selectedTags` (optional) | `TagType[]` | Array of currently selected tags |
|
57
|
+
| `setSelectedTags` (optional) | `React.Dispatch<SetStateAction<TagType[]>>` | Function to update selected tags |
|
58
|
+
| `zoomLevel` (required) | `string` | Current zoom level of the editor |
|
59
|
+
| `setZoomLevel` (required) | `React.Dispatch<SetStateAction<string>>` | Function to update zoom level |
|
60
|
+
| `isNavbarVisible` (required) | `boolean` | Controls visibility of the navbar |
|
61
|
+
| `setIsNavbarVisible` (required) | `React.Dispatch<SetStateAction<boolean>>` | Function to toggle navbar visibility |
|
62
|
+
| `renderNavbar` (optional) | `({ editor: JSONContent }) => JSX.Element` | Function to render custom navbar content |
|
63
|
+
| `disableBottomToolbar` (optional) | `boolean` | When true, disables the bottom toolbar |
|
64
|
+
| `isPresentationMode` (optional) | `boolean` | Controls if editor is in presentation mode |
|
65
|
+
| `setIsPresentationMode` (optional) | `React.Dispatch<SetStateAction<boolean>>` | Function to toggle presentation mode |
|
66
|
+
| `onInlineComment` (optional) | `() => void` | Callback function when inline comment is added |
|
67
|
+
| `onMarkdownExport` (optional) | `() => void` | Callback function for markdown export |
|
68
|
+
| `onMarkdownImport` (optional) | `() => void` | Callback function for markdown import |
|
69
|
+
| `sharedSlidesLink` (optional) | `string` | Link for shared slides in presentation mode |
|
70
|
+
| `documentName` (optional) | `string` | Name of the document |
|
56
71
|
|
57
72
|
## Data Interface
|
58
73
|
|