@bigbinary/neeto-editor 1.10.6 → 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.
- package/index.js +7 -24
- package/package.json +8 -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.
|
|
3
|
+
"version": "1.10.8",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"types": "./types.d.ts",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@babel/preset-env": "7.19.3",
|
|
27
27
|
"@babel/preset-react": "7.18.6",
|
|
28
28
|
"@bigbinary/eslint-plugin-neeto": "1.0.15",
|
|
29
|
+
"@bigbinary/neeto-commons-frontend": "2.0.24",
|
|
29
30
|
"@bigbinary/neeto-icons": "1.8.40",
|
|
30
31
|
"@bigbinary/neetoui": "4.1.25",
|
|
31
32
|
"@rollup/plugin-alias": "3.1.9",
|
|
@@ -124,14 +125,19 @@
|
|
|
124
125
|
"yup": "0.32.11"
|
|
125
126
|
},
|
|
126
127
|
"peerDependencies": {
|
|
128
|
+
"@bigbinary/neeto-commons-frontend": "latest",
|
|
129
|
+
"@bigbinary/neeto-icons": "latest",
|
|
127
130
|
"@bigbinary/neetoui": "latest",
|
|
128
131
|
"antd": "4.18.7",
|
|
132
|
+
"axios": "0.27.2",
|
|
129
133
|
"formik": "2.2.9",
|
|
134
|
+
"ramda": "0.28.0",
|
|
130
135
|
"react": "17.0.2",
|
|
131
136
|
"react-dom": "17.0.2",
|
|
132
137
|
"react-router-dom": "5.2.0",
|
|
133
138
|
"react-router-nav-prompt": "0.4.1",
|
|
134
|
-
"react-toastify": "8.0.2"
|
|
139
|
+
"react-toastify": "8.0.2",
|
|
140
|
+
"yup": "0.32.11"
|
|
135
141
|
},
|
|
136
142
|
"scripts": {
|
|
137
143
|
"start": "yarn storybook",
|
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;
|