@paroicms/contact-form-plugin 0.4.0 → 0.5.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/contact-form-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Contact form for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -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.3.0",
|
|
34
|
+
"@paroicms/public-server-lib": "0.8.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
|
},
|
|
@@ -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 {
|