@bigbinary/neeto-editor 1.16.5 → 1.18.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 +7 -7
- package/package.json +1 -1
- package/types.d.ts +10 -2
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -93,14 +93,21 @@ interface MenuProps {
|
|
|
93
93
|
className?: string;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
interface attachment {
|
|
97
97
|
filename?: string;
|
|
98
98
|
signedId?: string;
|
|
99
99
|
url?: string;
|
|
100
100
|
[otherProps: string]: any;
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
+
interface attachmentsConfig {
|
|
104
|
+
maxFileSize?: number,
|
|
105
|
+
maxNumberOfFiles?: number,
|
|
106
|
+
allowedFileTypes?: string[],
|
|
107
|
+
}
|
|
108
|
+
|
|
103
109
|
interface EditorProps {
|
|
110
|
+
attachmentsConfig?: attachmentsConfig;
|
|
104
111
|
tooltips?: tooltips;
|
|
105
112
|
initialValue?: string;
|
|
106
113
|
menuType?: "fixed" | "bubble" | "headless" | "none";
|
|
@@ -137,10 +144,11 @@ interface FormikEditorProps extends EditorProps {
|
|
|
137
144
|
name: string;
|
|
138
145
|
}
|
|
139
146
|
interface AttachmentsProps {
|
|
147
|
+
config?: attachmentsConfig;
|
|
140
148
|
endpoint?: string;
|
|
141
149
|
attachments?: Array<attachment>;
|
|
142
150
|
dragDropRef?: React.RefObject<HTMLDivElement>;
|
|
143
|
-
onChange
|
|
151
|
+
onChange?: (attachments: attachment[]) => void;
|
|
144
152
|
isIndependent?: boolean;
|
|
145
153
|
disabled?: boolean;
|
|
146
154
|
className?: string;
|