@bigbinary/neeto-editor 1.2.1 → 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 +5 -1
- package/index.d.ts +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -22,7 +22,11 @@ Prefix the change with one of these keywords:
|
|
|
22
22
|
- *Fixed*: for any bug fixes.
|
|
23
23
|
- *Security*: in case of vulnerabilities.
|
|
24
24
|
|
|
25
|
-
## [Unreleased](https://github.com/bigbinary/neeto-editor/compare/
|
|
25
|
+
## [Unreleased](https://github.com/bigbinary/neeto-editor/compare/7dffef6802a67a81891f194badf1631c75030b81...HEAD)
|
|
26
|
+
|
|
27
|
+
## [1.2.2](https://github.com/bigbinary/neeto-editor/compare/40a5428c256547796fedad24024fe1c3343acd67...7dffef6802a67a81891f194badf1631c75030b81) - 2022-11-29
|
|
28
|
+
|
|
29
|
+
- Added: type support for the *Menu* component.
|
|
26
30
|
|
|
27
31
|
## [1.2.1](https://github.com/bigbinary/neeto-editor/compare/adb046bf2f6c0717ca0af632578cd47eef2240ba...40a5428c256547796fedad24024fe1c3343acd67) - 2022-11-29
|
|
28
32
|
|
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";
|
|
@@ -101,4 +114,6 @@ export function EditorContent(props: {
|
|
|
101
114
|
[otherProps: string]: any;
|
|
102
115
|
}): JSX.Element;
|
|
103
116
|
|
|
117
|
+
export function Menu(props: MenuProps): JSX.Element;
|
|
118
|
+
|
|
104
119
|
export function isEditorEmpty(htmlContent: string | null | undefined): boolean;
|