@paroicms/contact-form-plugin 0.4.0 → 0.6.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendContactFormMail =
|
|
3
|
+
exports.sendContactFormMail = sendContactFormMail;
|
|
4
4
|
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
5
5
|
const public_server_lib_1 = require("@paroicms/public-server-lib");
|
|
6
6
|
async function sendContactFormMail(ctx, input, i18n) {
|
|
@@ -65,4 +65,3 @@ async function sendContactFormMail(ctx, input, i18n) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
exports.sendContactFormMail = sendContactFormMail;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatSendMailInput =
|
|
3
|
+
exports.formatSendMailInput = formatSendMailInput;
|
|
4
4
|
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
5
5
|
function formatSendMailInput(data) {
|
|
6
6
|
return {
|
|
@@ -12,4 +12,3 @@ function formatSendMailInput(data) {
|
|
|
12
12
|
gRecaptchaResponse: (0, data_formatters_lib_1.strValOrUndef)(data.gRecaptchaResponse),
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
exports.formatSendMailInput = formatSendMailInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/contact-form-plugin",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Contact form for ParoiCMS",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Contact form plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
7
7
|
"plugin",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"author": "Paroi Team",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "vite",
|
|
20
|
-
"build": "npm run build:backend && npm run build:
|
|
19
|
+
"dev:public": "(cd public-front && vite)",
|
|
20
|
+
"build": "npm run build:backend && npm run build:public",
|
|
21
21
|
"build:backend": "(cd backend && tsc)",
|
|
22
|
-
"build:
|
|
22
|
+
"build:public": "(cd public-front && tsc && vite build)",
|
|
23
23
|
"clear": "rimraf backend/dist/* public-front/dist/*"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"@paroicms/public-server-lib": "0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
34
|
-
"@paroicms/public-server-lib": "0.
|
|
33
|
+
"@paroicms/public-anywhere-lib": "0.4.0",
|
|
34
|
+
"@paroicms/public-server-lib": "0.9.0",
|
|
35
35
|
"@solid-primitives/i18n": "~2.1.1",
|
|
36
36
|
"@types/node": "~20.12.8",
|
|
37
37
|
"rimraf": "~6.0.1",
|
|
38
38
|
"sass": "~1.77.8",
|
|
39
39
|
"solid-devtools": "~0.30.1",
|
|
40
40
|
"solid-js": "~1.8.17",
|
|
41
|
-
"typescript": "~5.4
|
|
41
|
+
"typescript": "~5.5.4",
|
|
42
42
|
"vite": "~5.2.11",
|
|
43
43
|
"vite-plugin-solid": "~2.10.2"
|
|
44
44
|
},
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"files": [
|
|
47
47
|
"backend/dist",
|
|
48
48
|
"backend/locales",
|
|
49
|
-
"public-front/dist"
|
|
50
|
-
"public-front/locales"
|
|
49
|
+
"public-front/dist"
|
|
51
50
|
]
|
|
52
51
|
}
|
|
@@ -95,11 +95,7 @@ function _(e) {
|
|
|
95
95
|
return;
|
|
96
96
|
V(e);
|
|
97
97
|
const t = k;
|
|
98
|
-
Be(
|
|
99
|
-
e,
|
|
100
|
-
e.value,
|
|
101
|
-
t
|
|
102
|
-
);
|
|
98
|
+
Be(e, e.value, t);
|
|
103
99
|
}
|
|
104
100
|
function Be(e, t, s) {
|
|
105
101
|
let n;
|
|
@@ -234,26 +230,18 @@ function pe(e) {
|
|
|
234
230
|
const t = e.keyed, s = ee(() => e.when, void 0, {
|
|
235
231
|
equals: (n, l) => t ? n === l : !n == !l
|
|
236
232
|
});
|
|
237
|
-
return ee(
|
|
238
|
-
()
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
()
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
)
|
|
250
|
-
) : l;
|
|
251
|
-
}
|
|
252
|
-
return e.fallback;
|
|
253
|
-
},
|
|
254
|
-
void 0,
|
|
255
|
-
void 0
|
|
256
|
-
);
|
|
233
|
+
return ee(() => {
|
|
234
|
+
const n = s();
|
|
235
|
+
if (n) {
|
|
236
|
+
const l = e.children;
|
|
237
|
+
return typeof l == "function" && l.length > 0 ? A(() => l(t ? n : () => {
|
|
238
|
+
if (!A(s))
|
|
239
|
+
throw Ve("Show");
|
|
240
|
+
return e.when;
|
|
241
|
+
})) : l;
|
|
242
|
+
}
|
|
243
|
+
return e.fallback;
|
|
244
|
+
}, void 0, void 0);
|
|
257
245
|
}
|
|
258
246
|
function Ge(e, t, s) {
|
|
259
247
|
let n = s.length, l = t.length, r = n, i = 0, o = 0, f = t[l - 1].nextSibling, p = null;
|
|
@@ -383,11 +371,7 @@ function se(e, t, s, n) {
|
|
|
383
371
|
if (n) {
|
|
384
372
|
for (; typeof o == "function"; )
|
|
385
373
|
o = o();
|
|
386
|
-
l = se(
|
|
387
|
-
e,
|
|
388
|
-
Array.isArray(o) ? o : [o],
|
|
389
|
-
Array.isArray(f) ? f : [f]
|
|
390
|
-
) || l;
|
|
374
|
+
l = se(e, Array.isArray(o) ? o : [o], Array.isArray(f) ? f : [f]) || l;
|
|
391
375
|
} else
|
|
392
376
|
e.push(o), l = !0;
|
|
393
377
|
else {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Name",
|
|
3
|
-
"email": "Email",
|
|
4
|
-
"subject": "Subject",
|
|
5
|
-
"message": "Message",
|
|
6
|
-
"send": "Send",
|
|
7
|
-
"emailPlaceholder": "The e-mail address on which we can reply to you",
|
|
8
|
-
"namePlaceholder": "Your name",
|
|
9
|
-
"subjectPlaceholder": "The subject of your message",
|
|
10
|
-
"messagePlaceholder": "Enter your message here...",
|
|
11
|
-
"unexpectedErrorMessage": "Unexpected error, the message could not be sent.",
|
|
12
|
-
"returnHome": "Return Home",
|
|
13
|
-
"successMessage": "Your message has been sent. If there is a response, it will be sent to the address"
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Nom",
|
|
3
|
-
"email": "E-mail",
|
|
4
|
-
"subject": "Sujet",
|
|
5
|
-
"message": "Message",
|
|
6
|
-
"send": "Envoyer",
|
|
7
|
-
"emailPlaceholder": "L'adresse e-mail sur laquelle nous pourrons vous répondre",
|
|
8
|
-
"namePlaceholder": "Votre nom",
|
|
9
|
-
"subjectPlaceholder": "Le sujet de votre message",
|
|
10
|
-
"messagePlaceholder": "Saisissez votre message",
|
|
11
|
-
"unexpectedErrorMessage": "Erreur inattendue, le message n'a pas pu être envoyé.",
|
|
12
|
-
"returnHome": "Retourner à l'accueil",
|
|
13
|
-
"successMessage": "Votre message a été envoyé. S'il y a une réponse, elle sera envoyée à l'adresse"
|
|
14
|
-
}
|