@bigbinary/neeto-editor 1.10.12 → 1.12.0
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/index.js +11 -11
- package/package.json +2 -1
- package/types.d.ts +9 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"types": "./types.d.ts",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"@tiptap/starter-kit": "2.0.0-beta.199",
|
|
65
65
|
"@tiptap/suggestion": "2.0.0-beta.197",
|
|
66
66
|
"@uppy/core": "2.3.1",
|
|
67
|
+
"@uppy/drop-target": "2.0.1",
|
|
67
68
|
"@uppy/react": "2.2.2",
|
|
68
69
|
"@uppy/url": "2.2.0",
|
|
69
70
|
"antd": "4.18.7",
|
package/types.d.ts
CHANGED
|
@@ -75,6 +75,12 @@ interface MenuProps {
|
|
|
75
75
|
className?: string;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
type attachment = {
|
|
79
|
+
filename?: string;
|
|
80
|
+
signedId?: string;
|
|
81
|
+
url?: string;
|
|
82
|
+
[otherProps: string]: any;
|
|
83
|
+
};
|
|
78
84
|
interface EditorProps {
|
|
79
85
|
initialValue?: string;
|
|
80
86
|
menuType?: "fixed" | "bubble" | "headless" | "none";
|
|
@@ -102,26 +108,21 @@ interface EditorProps {
|
|
|
102
108
|
keyboardShortcuts?: KeyboardShortcuts;
|
|
103
109
|
error?: string;
|
|
104
110
|
config?: Config;
|
|
111
|
+
attachments?: Array<attachment>;
|
|
112
|
+
onChangeAttachments: (attachments: attachment[]) => void;
|
|
105
113
|
[otherProps: string]: any;
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
interface FormikEditorProps extends EditorProps {
|
|
109
117
|
name: string;
|
|
110
118
|
}
|
|
111
|
-
|
|
112
|
-
type attachment = {
|
|
113
|
-
filename?: string;
|
|
114
|
-
signedId?: string;
|
|
115
|
-
url?: string;
|
|
116
|
-
[otherProps: string]: any;
|
|
117
|
-
};
|
|
118
119
|
interface AttachmentsProps {
|
|
119
120
|
endpoint?: string;
|
|
120
121
|
attachments?: Array<attachment>;
|
|
122
|
+
dragDropRef?: React.RefObject<HTMLDivElement>;
|
|
121
123
|
onChange: (attachments: attachment[]) => void;
|
|
122
124
|
}
|
|
123
125
|
|
|
124
|
-
|
|
125
126
|
export function Editor(props: EditorProps): JSX.Element;
|
|
126
127
|
|
|
127
128
|
export function FormikEditor(props: FormikEditorProps): JSX.Element;
|