@akemona-org/strapi-plugin-email 3.13.2 → 3.14.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.
@@ -3,13 +3,13 @@ import { Button, Text as TextBase } from '@buffetjs/core';
3
3
 
4
4
  const Text = styled(TextBase)`
5
5
  width: 100%;
6
- padding: 0 15px 17px 15px;
6
+ padding: 0 15px 17px;
7
7
  `;
8
8
 
9
9
  const AlignedButton = styled(Button)`
10
10
  height: 34px;
11
11
  padding-top: 3px;
12
- margin: 29px 15px 0 15px;
12
+ margin: 29px 15px 0;
13
13
  min-width: unset;
14
14
  `;
15
15
 
@@ -101,98 +101,98 @@ function SettingsPage() {
101
101
 
102
102
  return (
103
103
  <CheckPagePermissions permissions={pluginPermissions.settings}>
104
- <SettingsPageTitle name={title} />
105
- <div>
106
- <form onSubmit={handleSubmit}>
107
- <Header
108
- title={{ label: title }}
109
- content={formatMessage({ id: getTrad('Settings.subTitle') })}
110
- isLoading={showLoader}
104
+ <SettingsPageTitle name={title} />
105
+ <div>
106
+ <form onSubmit={handleSubmit}>
107
+ <Header
108
+ title={{ label: title }}
109
+ content={formatMessage({ id: getTrad('Settings.subTitle') })}
110
+ isLoading={showLoader}
111
+ />
112
+ <BaselineAlignment top size="3px" />
113
+ <FormBloc
114
+ title={formatMessage({ id: getTrad('Settings.form.title.config') })}
115
+ isLoading={showLoader}
116
+ >
117
+ <Text fontSize="md" lineHeight="18px">
118
+ <FormattedMessage
119
+ id={getTrad('Settings.form.text.configuration')}
120
+ values={{
121
+ file: <code>./config/plugins.js</code>,
122
+ link: (
123
+ <a
124
+ href="https://strapi.akemona.com/documentation/developer-docs/latest/development/plugins/email.html#configure-the-plugin"
125
+ target="_blank"
126
+ rel="noopener noreferrer"
127
+ >
128
+ link
129
+ </a>
130
+ ),
131
+ }}
132
+ />
133
+ </Text>
134
+ <SizedInput
135
+ disabled
136
+ label={getTrad('Settings.form.label.defaultFrom')}
137
+ name="default-from"
138
+ placeholder={getTrad('Settings.form.placeholder.defaultFrom')}
139
+ size={{ xs: 6 }}
140
+ type="email"
141
+ value={config.settings.defaultFrom}
111
142
  />
112
- <BaselineAlignment top size="3px" />
113
- <FormBloc
114
- title={formatMessage({ id: getTrad('Settings.form.title.config') })}
115
- isLoading={showLoader}
116
- >
117
- <Text fontSize="md" lineHeight="18px">
118
- <FormattedMessage
119
- id={getTrad('Settings.form.text.configuration')}
120
- values={{
121
- file: <code>./config/plugins.js</code>,
122
- link: (
123
- <a
124
- href="https://strapi.akemona.com/documentation/developer-docs/latest/development/plugins/email.html#configure-the-plugin"
125
- target="_blank"
126
- rel="noopener noreferrer"
127
- >
128
- link
129
- </a>
130
- ),
131
- }}
143
+ <SizedInput
144
+ disabled
145
+ label={getTrad('Settings.form.label.defaultReplyTo')}
146
+ name="default-reply-to"
147
+ placeholder={getTrad('Settings.form.placeholder.defaultReplyTo')}
148
+ size={{ xs: 6 }}
149
+ type="email"
150
+ value={config.settings.defaultReplyTo}
151
+ />
152
+ <SizedInput
153
+ disabled
154
+ label={getTrad('Settings.form.label.provider')}
155
+ name="provider"
156
+ options={providers}
157
+ size={{ xs: 6 }}
158
+ type="select"
159
+ value={`strapi-provider-email-${config.provider}`}
160
+ />
161
+ </FormBloc>
162
+ <BaselineAlignment top size="32px" />
163
+ <FormBloc
164
+ title={formatMessage({ id: getTrad('Settings.form.title.test') })}
165
+ isLoading={showLoader}
166
+ >
167
+ <SizedInput
168
+ label={getTrad('Settings.form.label.testAddress')}
169
+ name="test-address"
170
+ placeholder={getTrad('Settings.form.placeholder.testAddress')}
171
+ onChange={(event) => setTestAddress(event.target.value)}
172
+ size={{ xs: 6 }}
173
+ type="email"
174
+ value={testAddress}
175
+ error={formErrors.email}
176
+ />
177
+ <AlignedButton
178
+ color="success"
179
+ disabled={testSuccess}
180
+ icon={
181
+ <Envelope
182
+ fill={testSuccess ? colors.button.disabled.color : null}
183
+ style={{ verticalAlign: 'middle', marginRight: '10px' }}
132
184
  />
133
- </Text>
134
- <SizedInput
135
- disabled
136
- label={getTrad('Settings.form.label.defaultFrom')}
137
- name="default-from"
138
- placeholder={getTrad('Settings.form.placeholder.defaultFrom')}
139
- size={{ xs: 6 }}
140
- type="email"
141
- value={config.settings.defaultFrom}
142
- />
143
- <SizedInput
144
- disabled
145
- label={getTrad('Settings.form.label.defaultReplyTo')}
146
- name="default-reply-to"
147
- placeholder={getTrad('Settings.form.placeholder.defaultReplyTo')}
148
- size={{ xs: 6 }}
149
- type="email"
150
- value={config.settings.defaultReplyTo}
151
- />
152
- <SizedInput
153
- disabled
154
- label={getTrad('Settings.form.label.provider')}
155
- name="provider"
156
- options={providers}
157
- size={{ xs: 6 }}
158
- type="select"
159
- value={`strapi-provider-email-${config.provider}`}
160
- />
161
- </FormBloc>
162
- <BaselineAlignment top size="32px" />
163
- <FormBloc
164
- title={formatMessage({ id: getTrad('Settings.form.title.test') })}
165
- isLoading={showLoader}
185
+ }
186
+ isLoading={isTestButtonLoading}
187
+ style={{ fontWeight: 600 }}
188
+ type="submit"
166
189
  >
167
- <SizedInput
168
- label={getTrad('Settings.form.label.testAddress')}
169
- name="test-address"
170
- placeholder={getTrad('Settings.form.placeholder.testAddress')}
171
- onChange={(event) => setTestAddress(event.target.value)}
172
- size={{ xs: 6 }}
173
- type="email"
174
- value={testAddress}
175
- error={formErrors.email}
176
- />
177
- <AlignedButton
178
- color="success"
179
- disabled={testSuccess}
180
- icon={
181
- <Envelope
182
- fill={testSuccess ? colors.button.disabled.color : null}
183
- style={{ verticalAlign: 'middle', marginRight: '10px' }}
184
- />
185
- }
186
- isLoading={isTestButtonLoading}
187
- style={{ fontWeight: 600 }}
188
- type="submit"
189
- >
190
- {formatMessage({ id: getTrad('Settings.button.test-email') })}
191
- </AlignedButton>
192
- </FormBloc>
193
- </form>
194
- </div>
195
- </CheckPagePermissions>
190
+ {formatMessage({ id: getTrad('Settings.button.test-email') })}
191
+ </AlignedButton>
192
+ </FormBloc>
193
+ </form>
194
+ </div>
195
+ </CheckPagePermissions>
196
196
  );
197
197
  }
198
198
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.13.2",
6
+ "version": "3.14.0",
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.13.2",
19
- "@akemona-org/strapi-utils": "3.13.2",
18
+ "@akemona-org/strapi-provider-email-sendmail": "3.14.0",
19
+ "@akemona-org/strapi-utils": "3.14.0",
20
20
  "lodash": "4.17.21"
21
21
  },
22
22
  "devDependencies": {
23
- "@akemona-org/strapi-helper-plugin": "3.13.2",
23
+ "@akemona-org/strapi-helper-plugin": "3.14.0",
24
24
  "rimraf": "4.1.0"
25
25
  },
26
26
  "author": {
@@ -40,9 +40,9 @@
40
40
  "url": "git://github.com/akemona/strapi.git"
41
41
  },
42
42
  "engines": {
43
- "node": ">=14.19.1 <=18.x.x",
43
+ "node": ">=18.17.0 <=20.x.x",
44
44
  "npm": ">=6.0.0"
45
45
  },
46
46
  "license": "SEE LICENSE IN LICENSE",
47
- "gitHead": "b0b438b488e293906dc4041239967f16c68e281a"
47
+ "gitHead": "241f7ad8f4277aa7f522f580557e15d65af4a0cc"
48
48
  }