@bigbinary/neeto-editor 1.2.0 → 1.2.2
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/CHANGELOG.md +9 -1
- package/formik.js +1 -1
- package/index.d.ts +16 -0
- package/index.js +1 -1
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -62,6 +62,19 @@ interface Config {
|
|
|
62
62
|
placeholder?: Partial<PlaceholderOptions>;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
interface MenuProps {
|
|
66
|
+
editor: string;
|
|
67
|
+
menuType?: "fixed" | "bubble" | "none";
|
|
68
|
+
defaults?: string[];
|
|
69
|
+
addons?: string[];
|
|
70
|
+
uploadEndpoint?: string;
|
|
71
|
+
uploadConfig?: UppyOptions<Record<string, unknown>>;
|
|
72
|
+
mentions?: Mention[];
|
|
73
|
+
variables?: Variable[];
|
|
74
|
+
isIndependant?: boolean;
|
|
75
|
+
className?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
65
78
|
export interface EditorProps {
|
|
66
79
|
initialValue?: string;
|
|
67
80
|
menuType?: "fixed" | "bubble" | "none";
|
|
@@ -73,6 +86,7 @@ export interface EditorProps {
|
|
|
73
86
|
addons?: string[];
|
|
74
87
|
addonCommands?: Command[];
|
|
75
88
|
className?: string;
|
|
89
|
+
contentClassName?: string;
|
|
76
90
|
uploadEndpoint?: string;
|
|
77
91
|
uploadConfig?: UppyOptions<Record<string, unknown>>;
|
|
78
92
|
onChange?: (htmlContent: string) => void;
|
|
@@ -100,4 +114,6 @@ export function EditorContent(props: {
|
|
|
100
114
|
[otherProps: string]: any;
|
|
101
115
|
}): JSX.Element;
|
|
102
116
|
|
|
117
|
+
export function Menu(props: MenuProps): JSX.Element;
|
|
118
|
+
|
|
103
119
|
export function isEditorEmpty(htmlContent: string | null | undefined): boolean;
|