@bigbinary/neeto-editor 1.10.7 → 1.10.8

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 (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-editor",
3
- "version": "1.10.7",
3
+ "version": "1.10.8",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./types.d.ts",
package/types.d.ts CHANGED
@@ -109,10 +109,25 @@ interface FormikEditorProps extends EditorProps {
109
109
  name: string;
110
110
  }
111
111
 
112
+ type attachment = {
113
+ filename?: string;
114
+ signedId?: string;
115
+ url?: string;
116
+ [otherProps: string]: any;
117
+ };
118
+ interface AttachmentsProps {
119
+ endpoint?: string;
120
+ attachments?: Array<attachment>;
121
+ onChange: (attachments: attachment[]) => void;
122
+ }
123
+
124
+
112
125
  export function Editor(props: EditorProps): JSX.Element;
113
126
 
114
127
  export function FormikEditor(props: FormikEditorProps): JSX.Element;
115
128
 
129
+ export function Attachments(props: AttachmentsProps): JSX.Element;
130
+
116
131
  export function EditorContent(props: {
117
132
  content?: string;
118
133
  className?: string;