@akemona-org/strapi-plugin-email 3.7.0 → 3.7.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/admin/src/containers/Settings/index.js +3 -3
- package/admin/src/index.js +1 -1
- package/admin/src/pluginId.js +1 -1
- package/admin/src/utils/getTrad.js +1 -1
- package/admin/src/utils/schema.js +1 -4
- package/config/functions/bootstrap.js +1 -1
- package/package.json +5 -5
- package/services/Email.js +1 -1
|
@@ -34,7 +34,7 @@ const SettingsPage = () => {
|
|
|
34
34
|
|
|
35
35
|
const title = formatMessage({ id: getTrad('Settings.title') });
|
|
36
36
|
|
|
37
|
-
const handleSubmit = async event => {
|
|
37
|
+
const handleSubmit = async (event) => {
|
|
38
38
|
event.preventDefault();
|
|
39
39
|
let errors = {};
|
|
40
40
|
|
|
@@ -77,7 +77,7 @@ const SettingsPage = () => {
|
|
|
77
77
|
request('/email/settings', {
|
|
78
78
|
method: 'GET',
|
|
79
79
|
})
|
|
80
|
-
.then(data => {
|
|
80
|
+
.then((data) => {
|
|
81
81
|
setConfig(data.config);
|
|
82
82
|
setProviders([data.config.provider]);
|
|
83
83
|
setTestAddress(get(data, 'config.settings.testAddress'));
|
|
@@ -169,7 +169,7 @@ const SettingsPage = () => {
|
|
|
169
169
|
label={getTrad('Settings.form.label.testAddress')}
|
|
170
170
|
name="test-address"
|
|
171
171
|
placeholder={getTrad('Settings.form.placeholder.testAddress')}
|
|
172
|
-
onChange={event => setTestAddress(event.target.value)}
|
|
172
|
+
onChange={(event) => setTestAddress(event.target.value)}
|
|
173
173
|
size={{ xs: 6 }}
|
|
174
174
|
type="email"
|
|
175
175
|
value={testAddress}
|
package/admin/src/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import trads from './translations';
|
|
|
15
15
|
import getTrad from './utils/getTrad';
|
|
16
16
|
import SettingsPage from './containers/Settings';
|
|
17
17
|
|
|
18
|
-
export default strapi => {
|
|
18
|
+
export default (strapi) => {
|
|
19
19
|
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
|
20
20
|
|
|
21
21
|
const plugin = {
|
package/admin/src/pluginId.js
CHANGED
|
@@ -2,10 +2,7 @@ import * as yup from 'yup';
|
|
|
2
2
|
import { translatedErrors } from 'strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
const schema = yup.object().shape({
|
|
5
|
-
email: yup
|
|
6
|
-
.string()
|
|
7
|
-
.email(translatedErrors.email)
|
|
8
|
-
.required(translatedErrors.required),
|
|
5
|
+
email: yup.string().email(translatedErrors.email).required(translatedErrors.required),
|
|
9
6
|
});
|
|
10
7
|
|
|
11
8
|
export default schema;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.7.
|
|
6
|
+
"version": "3.7.1",
|
|
7
7
|
"description": "Easily configure your Strapi application to send emails.",
|
|
8
8
|
"strapi": {
|
|
9
9
|
"name": "Email",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"test": "echo \"no tests yet\""
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@akemona-org/strapi-provider-email-sendmail": "3.7.
|
|
19
|
-
"@akemona-org/strapi-utils": "3.7.
|
|
18
|
+
"@akemona-org/strapi-provider-email-sendmail": "3.7.1",
|
|
19
|
+
"@akemona-org/strapi-utils": "3.7.1",
|
|
20
20
|
"lodash": "4.17.21"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@akemona-org/strapi-helper-plugin": "3.7.
|
|
23
|
+
"@akemona-org/strapi-helper-plugin": "3.7.1",
|
|
24
24
|
"rimraf": "3.0.2"
|
|
25
25
|
},
|
|
26
26
|
"author": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"npm": ">=6.0.0"
|
|
45
45
|
},
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5545ca033e2fb1aa3afbd546c370972426058525"
|
|
48
48
|
}
|