@fileverse-dev/ddoc 1.8.3 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +13511 -13533
- package/dist/index.umd.js +128 -128
- package/dist/packages/ddoc/types.d.ts +1 -0
- package/dist/packages/ddoc/use-ddoc-editor.d.ts +1 -1
- package/package.json +3 -5
@@ -33,6 +33,7 @@ export interface DdocProps {
|
|
33
33
|
onError?: (error: string) => void;
|
34
34
|
setCharacterCount?: React.Dispatch<SetStateAction<number>>;
|
35
35
|
setWordCount?: React.Dispatch<SetStateAction<number>>;
|
36
|
+
collaborationkey: string;
|
36
37
|
}
|
37
38
|
export interface IEditorSelectionData {
|
38
39
|
from: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DdocProps } from './types';
|
2
2
|
|
3
|
-
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, }: Partial<DdocProps>) => {
|
3
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationkey, }: Partial<DdocProps>) => {
|
4
4
|
editor: import('@tiptap/react').Editor | null;
|
5
5
|
ref: import('react').RefObject<HTMLDivElement>;
|
6
6
|
connect: (username: string | null | undefined, _isEns?: boolean) => void;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@fileverse-dev/ddoc",
|
3
3
|
"private": false,
|
4
4
|
"description": "DDoc",
|
5
|
-
"version": "1.8.
|
5
|
+
"version": "1.8.5",
|
6
6
|
"main": "dist/index.umd.js",
|
7
7
|
"module": "dist/index.es.js",
|
8
8
|
"exports": {
|
@@ -28,7 +28,7 @@
|
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
30
|
"@_ueberdosis/prosemirror-tables": "^1.1.3",
|
31
|
-
"@fileverse-dev/
|
31
|
+
"@fileverse-dev/sync": "^0.0.2",
|
32
32
|
"@radix-ui/react-focus-scope": "^1.1.0",
|
33
33
|
"@radix-ui/react-popover": "^1.0.7",
|
34
34
|
"@tippyjs/react": "^4.2.6",
|
@@ -75,9 +75,7 @@
|
|
75
75
|
"tiptap-markdown": "^0.8.10",
|
76
76
|
"usehooks-ts": "^3.1.0",
|
77
77
|
"vaul": "^0.9.1",
|
78
|
-
"vite-plugin-dts": "^3.6.3"
|
79
|
-
"y-prosemirror": "^1.2.5",
|
80
|
-
"y-webrtc": "^10.3.0"
|
78
|
+
"vite-plugin-dts": "^3.6.3"
|
81
79
|
},
|
82
80
|
"devDependencies": {
|
83
81
|
"@types/dompurify": "^3.0.5",
|