@fileverse-dev/ddoc 1.7.9 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/dist/index.es.js +6047 -6000
- package/dist/index.umd.js +64 -64
- package/dist/packages/ddoc/types.d.ts +3 -0
- package/dist/packages/ddoc/use-ddoc-editor.d.ts +1 -1
- package/package.json +2 -1
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
|
|