@fileverse-dev/ddoc 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/index.es.js +7268 -7254
- package/dist/index.umd.js +105 -105
- package/dist/packages/ddoc/components/bottom-toolbar.d.ts +2 -2
- package/dist/packages/ddoc/components/editor-toolbar.d.ts +2 -2
- package/dist/packages/ddoc/components/editor-utils.d.ts +7 -3
- package/dist/packages/ddoc/components/slash-comand.d.ts +1 -1
- package/dist/packages/ddoc/types.d.ts +1 -1
- package/dist/packages/ddoc/use-ddoc-editor.d.ts +1 -1
- package/dist/packages/ddoc/utils/upload-images.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -31,7 +31,6 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
31
31
|
| Property | Type | Description |
|
32
32
|
| ---------------------------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
33
33
|
| `isPreviewMode` | `boolean` | Indicates whether the page is in preview mode or not. |
|
34
|
-
| `handleImageUploadToIpfs` | `(file: File) => Promise<string>` | Required function to upload ddoc editor's image on IPFS |
|
35
34
|
| `data` (optional) | `Data` | Optional property holding data related to the page. |
|
36
35
|
| `enableCollaboration` (optional) | `boolean` | Optional property to enable collaboration |
|
37
36
|
| `onCommentInteraction` (optional) | `(commentInfo: IEditSelectionData) => void` | Optional function that get's called whenever there is a mouse-over and click interaction on a comment |
|
@@ -46,6 +45,7 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
46
45
|
| `initialContent` (optional) | `JSONContent` | Initial content of the editor |
|
47
46
|
| `onChange` (optional) | `(changes: JSONContent) => void` | Optional function that gets triggered with the latest content of the editor on every change in the editor |
|
48
47
|
| `onCollaboratorChange` (optional) | `(collaborators?: IDocCollabUsers[] ) => void` | Optional function that gets triggered when a user join or leave the doc during collaboration |
|
48
|
+
| `onError` (optional) | `(errorString: string) => void` | Function to call on error |
|
49
49
|
|
50
50
|
## Data Interface
|
51
51
|
|