@fileverse-dev/ddoc 1.7.0 → 1.7.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 +1 -1
- package/dist/index.es.js +7607 -7586
- package/dist/index.umd.js +114 -114
- 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 +2 -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
|
|