@sharadox/form-web-library 0.7.1-development.23 → 0.7.1-development.26

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/llms.txt +1 -4
  3. package/package.json +3 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ What changed in each version of `@sharadox/form-web-library`, newest first.
4
+
5
+ ## 0.6.1
6
+
7
+ Llms.txt summary names the phone field
8
+
9
+ ## 0.5.1
10
+
11
+ README's example passes a real EmailDesign
12
+
13
+ ## 0.5.0
14
+
15
+ CreateContactAction takes `design` (email-web-library ^0.4.0 EmailDesign; plainDesign(company) by default) instead of `theme`, and lays out both emails with emailLayout; the notice has a button to answer the visitor (labels.reply "Reply to" + first name, or labels.call "Call" when only a phone was left); an acknowledgement may carry a `button`; with a design signature, the reply leaves out its line to the site; contact-email (brandedEmailHtml) is removed: use email-web-library's emailLayout
package/llms.txt CHANGED
@@ -10,10 +10,7 @@
10
10
  - /parse-contact: parseContact(form, { choices, choiceField='need', reach, requireMessage, minimumMessageLength, requireChoice, fields, now }) → value { name, email, phone, company, message, locale, choices, fields }
11
11
  - /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)
12
12
  - Env: EMAIL_SERVER_HOST/PORT/USERNAME/PASSWORD, EMAIL_SENDER_ADDRESS. License: Sharadox Open Source License 0.1.0
13
- - 0.5.0: createContactAction takes `design` (email-web-library ^0.4.0 EmailDesign; plainDesign(company) by default) instead of `theme`, and lays out both emails with emailLayout; the notice has a button to answer the visitor (labels.reply "Reply to" + first name, or labels.call "Call" when only a phone was left); an acknowledgement may carry a `button`; with a design signature, the reply leaves out its line to the site; contact-email (brandedEmailHtml) is removed: use email-web-library's emailLayout
14
- - 0.5.1: README's example passes a real EmailDesign
15
13
  - 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
14
  - 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
15
  - phone-number: readPhone(text, current) → { country, digits }; fullPhone(country, digits) → "+351 912345678" | ""
18
-
19
- - 0.6.1: llms.txt summary names the phone field
16
+ - Changes by version: CHANGELOG.md (in the package)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/form-web-library",
3
- "version": "0.7.1-development.23",
3
+ "version": "0.7.1-development.26",
4
4
  "description": "Forms: a phone field with every country's flag and calling code, and on the server field reading, 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 LICENCA.md",
@@ -25,7 +25,8 @@
25
25
  "LICENCA.md",
26
26
  "LICENSE.md",
27
27
  "NOTICE.md",
28
- "llms.txt"
28
+ "llms.txt",
29
+ "CHANGELOG.md"
29
30
  ],
30
31
  "sideEffects": [
31
32
  "**/*.css"