@fileverse-dev/ddoc 1.8.0 → 1.8.2

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