@fileverse-dev/ddoc 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -34,6 +34,9 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
34
34
  | `togglePreviewMode`| `(flag: boolean) => void` | Function to toggle preview mode with a boolean flag. |
35
35
  | `onPublish` | `(data: Data) => void` | Function to handle publishing of the page. |
36
36
  | `data` (optional) | `Data` | Optional property holding data related to the page. |
37
+ | `enableCollaboration` (optional) | `boolean` | Optional property to enable collaboration
38
+ | `collaborationId` (optional) | `string` | When using enableCollaboration, you need to provide collaborationId, it can be uuid of doc |
39
+ | `toggleCollaboration` (optional) | `(flag: boolean) => void` | Function to toggle collaboration mode with a boolean flag |
37
40
 
38
41
  ## Data Interface
39
42
 
@@ -53,22 +56,9 @@ The `PluginMetaData` interface defines the structure of the metadata related to
53
56
  ### Properties
54
57
 
55
58
  | Property | Type | Description |
56
- |-------------------|-------------|------------------------------------------------|
57
- | `cover` | `Cover` | Contains information about the cover. |
59
+ |-------------------|-------------|-------------------------------------------------- |
58
60
  | `plugin` | `Plugin` | Contains information about the plugin title. |
59
61
 
60
- ## Cover Interface
61
-
62
- The `Cover` interface defines the structure of the cover information.
63
-
64
- ### Properties
65
-
66
- | Property | Type | Description |
67
- |------------|------------------|-------------------------------------------------------|
68
- | `image` | `string \| null` | URL of the cover image (can be `null`). |
69
- | `emoji` | `string \| null` | Emoji associated with the cover (can be `null`). |
70
- | `name` | `string \| null` | Name of the cover (can be `null`). |
71
-
72
62
  ## Plugin Interface
73
63
 
74
64
  The `Plugin` interface defines the structure of the plugin information.