@linkpane/mailer-post 0.1.0 → 1.0.1
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 +17 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# @linkpane/mailer-post
|
|
2
2
|
|
|
3
|
-
Submission-only SDK for Linkpane Mailer forms.
|
|
3
|
+
Submission-only SDK for Linkpane Mailer forms. Use this when you want to post
|
|
4
|
+
form data to a Linkpane inbox endpoint without managing forms.
|
|
5
|
+
|
|
6
|
+
Linkpane Mailer is a hosted form and email capture service by Haqqman. It allows you to collect form submissions and newsletter signups without building, deploying, or maintaining your own backend.
|
|
4
7
|
|
|
5
8
|
## Install
|
|
6
9
|
|
|
@@ -47,5 +50,16 @@ attachToForm(form, {
|
|
|
47
50
|
|
|
48
51
|
## Notes
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
-
|
|
53
|
+
### Required Fields (enforced by Linkpane Mailer)
|
|
54
|
+
- `email`
|
|
55
|
+
- `firstName`
|
|
56
|
+
- `lastName`
|
|
57
|
+
|
|
58
|
+
### Optional Fields
|
|
59
|
+
- Any additional fields in your form (custom questions, phone, message, etc.)
|
|
60
|
+
- `redhat` (honeypot field; keep empty)
|
|
61
|
+
|
|
62
|
+
### Origin Rules
|
|
63
|
+
For server-side usage, you must set an `Origin` header that matches the form’s
|
|
64
|
+
`source_url`. For mobile apps, submit through your backend proxy to satisfy
|
|
65
|
+
Linkpane’s Origin checks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkpane/mailer-post",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Submission-only SDK for Linkpane Mailer forms",
|
|
5
5
|
"main": "dist-cjs/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=16"
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|