@bigbinary/neeto-editor 1.10.11 → 1.11.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.
Files changed (3) hide show
  1. package/index.js +7 -7
  2. package/package.json +10 -10
  3. package/types.d.ts +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-editor",
3
- "version": "1.10.11",
3
+ "version": "1.11.0",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./types.d.ts",
@@ -35,16 +35,16 @@
35
35
  "@rollup/plugin-json": "4.1.0",
36
36
  "@rollup/plugin-node-resolve": "13.3.0",
37
37
  "@rollup/plugin-replace": "4.0.0",
38
- "@storybook/addon-actions": "6.5.14",
39
- "@storybook/addon-docs": "6.5.14",
40
- "@storybook/addon-essentials": "6.5.14",
41
- "@storybook/addon-interactions": "6.5.14",
42
- "@storybook/addon-links": "6.5.14",
38
+ "@storybook/addon-actions": "6.5.15",
39
+ "@storybook/addon-docs": "6.5.15",
40
+ "@storybook/addon-essentials": "6.5.15",
41
+ "@storybook/addon-interactions": "6.5.15",
42
+ "@storybook/addon-links": "6.5.15",
43
43
  "@storybook/addon-postcss": "2.0.0",
44
- "@storybook/builder-webpack5": "6.5.14",
45
- "@storybook/manager-webpack5": "6.5.14",
44
+ "@storybook/builder-webpack5": "6.5.15",
45
+ "@storybook/manager-webpack5": "6.5.15",
46
46
  "@storybook/preset-scss": "1.0.3",
47
- "@storybook/react": "6.5.14",
47
+ "@storybook/react": "6.5.15",
48
48
  "@storybook/testing-library": "0.0.13",
49
49
  "@svgr/rollup": "6.3.1",
50
50
  "@tippyjs/react": "4.2.6",
@@ -86,7 +86,7 @@
86
86
  "eslint-plugin-promise": "6.1.1",
87
87
  "eslint-plugin-react": "7.31.10",
88
88
  "eslint-plugin-react-hooks": "4.6.0",
89
- "eslint-plugin-storybook": "0.6.8",
89
+ "eslint-plugin-storybook": "0.6.10",
90
90
  "eslint-plugin-unused-imports": "2.0.0",
91
91
  "file-saver": "2.0.5",
92
92
  "formik": "2.2.9",
package/types.d.ts CHANGED
@@ -75,6 +75,12 @@ interface MenuProps {
75
75
  className?: string;
76
76
  }
77
77
 
78
+ type attachment = {
79
+ filename?: string;
80
+ signedId?: string;
81
+ url?: string;
82
+ [otherProps: string]: any;
83
+ };
78
84
  interface EditorProps {
79
85
  initialValue?: string;
80
86
  menuType?: "fixed" | "bubble" | "headless" | "none";
@@ -102,26 +108,20 @@ interface EditorProps {
102
108
  keyboardShortcuts?: KeyboardShortcuts;
103
109
  error?: string;
104
110
  config?: Config;
111
+ attachments?: Array<attachment>;
112
+ onChangeAttachments: (attachments: attachment[]) => void;
105
113
  [otherProps: string]: any;
106
114
  }
107
115
 
108
116
  interface FormikEditorProps extends EditorProps {
109
117
  name: string;
110
118
  }
111
-
112
- type attachment = {
113
- filename?: string;
114
- signedId?: string;
115
- url?: string;
116
- [otherProps: string]: any;
117
- };
118
119
  interface AttachmentsProps {
119
120
  endpoint?: string;
120
121
  attachments?: Array<attachment>;
121
122
  onChange: (attachments: attachment[]) => void;
122
123
  }
123
124
 
124
-
125
125
  export function Editor(props: EditorProps): JSX.Element;
126
126
 
127
127
  export function FormikEditor(props: FormikEditorProps): JSX.Element;