@fileverse-dev/ddoc 1.8.0 → 1.8.2
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 +2 -0
- package/dist/index.es.js +26984 -22437
- package/dist/index.umd.js +199 -124
- package/dist/packages/ddoc/use-ddoc-editor.d.ts +2 -3
- package/dist/packages/ddoc/utils/CollaborationCursor.d.ts +83 -0
- package/package.json +3 -3
package/README.md
CHANGED
@@ -46,6 +46,8 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
46
46
|
| `onChange` (optional) | `(changes: JSONContent) => void` | Optional function that gets triggered with the latest content of the editor on every change in the editor |
|
47
47
|
| `onCollaboratorChange` (optional) | `(collaborators?: IDocCollabUsers[] ) => void` | Optional function that gets triggered when a user join or leave the doc during collaboration |
|
48
48
|
| `onError` (optional) | `(errorString: string) => void` | Function to call on error |
|
49
|
+
| `setCharacterCount` (optional) | `React.Dispatch<SetStateAction<number>>` | Optional. React Set State function to update Character Count |
|
50
|
+
| `setWordCount` (optional) | `React.Dispatch<SetStateAction<number>>` | Optional. React Set State function to update Word Count |
|
49
51
|
|
50
52
|
## Data Interface
|
51
53
|
|