@bigbinary/neeto-editor 1.2.3 → 1.4.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/CHANGELOG.md +11 -1
- package/index.js +20 -10
- package/package.json +5 -6
- package/{index.d.ts → types.d.ts} +8 -1
- package/formik.d.ts +0 -9
- package/formik.js +0 -68
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"module": "./index.js",
|
|
6
|
-
"types": "./
|
|
6
|
+
"types": "./types.d.ts",
|
|
7
7
|
"description": "neetoEditor is the library that drives the rich text experience in all neeto products built at BigBinary",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"ui",
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"files": [
|
|
15
15
|
"index.js",
|
|
16
|
-
"
|
|
17
|
-
"index.d.ts",
|
|
18
|
-
"formik.d.ts"
|
|
16
|
+
"types.d.ts"
|
|
19
17
|
],
|
|
20
18
|
"author": "BigBinary",
|
|
21
19
|
"license": "MIT",
|
|
@@ -117,7 +115,8 @@
|
|
|
117
115
|
"webpack": "5.73.0",
|
|
118
116
|
"webpack-cli": "4.10.0",
|
|
119
117
|
"webpack-dev-server": "4.9.3",
|
|
120
|
-
"yup": "0.32.11"
|
|
118
|
+
"yup": "0.32.11",
|
|
119
|
+
"zustand": "4.1.4"
|
|
121
120
|
},
|
|
122
121
|
"peerDependencies": {
|
|
123
122
|
"formik": "2.2.9",
|
|
@@ -75,7 +75,7 @@ interface MenuProps {
|
|
|
75
75
|
className?: string;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
interface EditorProps {
|
|
79
79
|
initialValue?: string;
|
|
80
80
|
menuType?: "fixed" | "bubble" | "none";
|
|
81
81
|
label?: string;
|
|
@@ -103,11 +103,18 @@ export interface EditorProps {
|
|
|
103
103
|
keyboardShortcuts?: KeyboardShortcuts;
|
|
104
104
|
error?: string;
|
|
105
105
|
config?: Config;
|
|
106
|
+
editorKey?: string;
|
|
106
107
|
[otherProps: string]: any;
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
interface FormikEditorProps extends EditorProps {
|
|
111
|
+
name: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
109
114
|
export function Editor(props: EditorProps): JSX.Element;
|
|
110
115
|
|
|
116
|
+
export function FormikEditor(props: FormikEditorProps): JSX.Element;
|
|
117
|
+
|
|
111
118
|
export function EditorContent(props: {
|
|
112
119
|
content?: string;
|
|
113
120
|
className?: string;
|