@sharadox/form-web-library 0.9.0-bot-identification.64 → 0.9.0-communications-email.70
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/README.md +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ export const sendContact = createContactAction({
|
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
The form sends one email, to both the visitor and the company, so they share one conversation. It comes from the
|
|
57
|
-
company by name, from the sending address (`EMAIL_SENDER_ADDRESS`), with replies set to go to the company: replying,
|
|
57
|
+
company by name, from the sending address (`EMAIL_SENDER_ADDRESS`: `communications@web.<domain>`, the address of every automated email), with replies set to go to the company: replying,
|
|
58
58
|
the visitor reaches the company, and replying to all, the company reaches the visitor (the sending address never
|
|
59
59
|
appears). The subject is "Contact · Ana (Café) · <conversation identifier>", a UUID version 7. The email thanks the
|
|
60
60
|
visitor by name, says the company will answer within a working day and that replying adds to the conversation, lists
|
package/llms.txt
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- /bot-identification (server): isUnwantedBot({ onVercel? = VERCEL === "1", allowVerifiedBots? = true, check? = checkBotId }) → Promise<boolean>; off Vercel always false; check errors propagate
|
|
12
12
|
- /parse-contact: parseContact(form, { choices, choiceField='need', reach, requireMessage, minimumMessageLength, requireChoice, fields, now }) → value { name, email, phone, company, message, locale, choices, fields }
|
|
13
13
|
- /contact-check isEmail(text), isPhone(text) (browser-safe, same rules as the server); /bot-check isLikelyBot; /rate-limit createRateLimiter({ window, maximum }); /field readField(form, name, max)
|
|
14
|
-
- Env: EMAIL_SERVER_HOST/PORT/USERNAME/PASSWORD, EMAIL_SENDER_ADDRESS. License: Sharadox Open Source License 0.1.0
|
|
14
|
+
- Env: EMAIL_SERVER_HOST/PORT/USERNAME/PASSWORD, EMAIL_SENDER_ADDRESS (communications@web.<domain>, every automated email). License: Sharadox Open Source License 0.1.0
|
|
15
15
|
- phone-field (client, React): PhoneField({ name, locale, defaultCountry?="PT", labels?={country,search}, inputProps?, className?, inputClassName? }); flag+calling-code button opens searchable listbox (Intl.DisplayNames names, default country first, arrows/Enter/Escape, outside press closes); number box digits only (max 15), "+"/"00" paste picks country; hidden input `name` = "+<code> <digits>" or ""; CSS vars --phone-field-line/-accent/-surface/-popover/-radius/-gap; flags lazy-loaded from @sharadox/icon-web-library/flag
|
|
16
16
|
- calling-code: CALLING_CODES (ISO alpha-2 → digits, 245 countries, from libphonenumber metadata, Apache 2.0), MAIN_CALLING_COUNTRY (shared code → main country), type CallingCountry
|
|
17
17
|
- phone-number: readPhone(text, current) → { country, digits }; fullPhone(country, digits) → "+351 912345678" | ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/form-web-library",
|
|
3
|
-
"version": "0.9.0-
|
|
3
|
+
"version": "0.9.0-communications-email.70",
|
|
4
4
|
"description": "Forms: a phone field with every country's flag and calling code, Vercel BotID for form submissions, and on the server field reading, BotID, honeypot and fill-time bot checks, rate limiting and a contact form action that emails messages with the visitor as reply-to.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|