@fileverse-dev/ddoc 1.2.2 → 1.2.3
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 -0
- package/dist/index.es.js +0 -1
- package/dist/packages/ddoc/types.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -38,6 +38,7 @@ The `DdocProps` interface is a TypeScript interface that defines the properties
|
|
38
38
|
| `collaborationId` (optional) | `string` | When using enableCollaboration, you need to provide collaborationId, it can be uuid of doc |
|
39
39
|
| `toggleCollaboration` (optional) | `(flag: boolean) => void` | Function to toggle collaboration mode with a boolean flag |
|
40
40
|
| `onAutoSave` (optional) | `(flag:boolean) => void` | Function which expose the current editor state every 10 seconds |
|
41
|
+
| `username` (required when using collaboration) | `boolean` | Takes a username which can be used by collaboration cursor
|
41
42
|
|
42
43
|
## Data Interface
|
43
44
|
|
package/dist/index.es.js
CHANGED
@@ -37121,7 +37121,6 @@ const dy = [
|
|
37121
37121
|
collaborationId: s,
|
37122
37122
|
username: o,
|
37123
37123
|
onAutoSave: l
|
37124
|
-
// Add this line
|
37125
37124
|
}) => {
|
37126
37125
|
const {
|
37127
37126
|
editor: a,
|
@@ -9,7 +9,7 @@ export interface DdocProps {
|
|
9
9
|
togglePreviewMode: (flag: boolean) => void;
|
10
10
|
toggleCollaboration?: (flag: boolean) => void;
|
11
11
|
onPublish: (data: Data) => void;
|
12
|
-
data?: Data;
|
12
|
+
data?: Data | null;
|
13
13
|
onAutoSave?: (data: Data) => void;
|
14
14
|
username?: string;
|
15
15
|
}
|