@bigbinary/neeto-editor 1.3.0 → 1.4.1

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-editor",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
- "types": "./index.d.ts",
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
- "formik.js",
17
- "index.d.ts",
18
- "formik.d.ts"
16
+ "types.d.ts"
19
17
  ],
20
18
  "author": "BigBinary",
21
19
  "license": "MIT",
@@ -75,7 +75,7 @@ interface MenuProps {
75
75
  className?: string;
76
76
  }
77
77
 
78
- export interface EditorProps {
78
+ interface EditorProps {
79
79
  initialValue?: string;
80
80
  menuType?: "fixed" | "bubble" | "none";
81
81
  label?: string;
@@ -107,8 +107,14 @@ export interface EditorProps {
107
107
  [otherProps: string]: any;
108
108
  }
109
109
 
110
+ interface FormikEditorProps extends EditorProps {
111
+ name: string;
112
+ }
113
+
110
114
  export function Editor(props: EditorProps): JSX.Element;
111
115
 
116
+ export function FormikEditor(props: FormikEditorProps): JSX.Element;
117
+
112
118
  export function EditorContent(props: {
113
119
  content?: string;
114
120
  className?: string;
package/formik.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { EditorProps } from "./index";
2
-
3
- interface FormikEditorProps extends EditorProps {
4
- name: string;
5
- }
6
-
7
- function FormikEditor(props: FormikEditorProps): JSX.Element;
8
-
9
- export default FormikEditor;