Skip to content

Commit dc5cfd3

Browse files
ralyodioclaude
andcommitted
email: the contact form comes from @profullstack/contact-form (0.6.0)
createContactRoute and createContactGuard are re-exported from @profullstack/contact-form unchanged (all 49 email tests pass against it); createContactForm, withQuestions and DEFAULT_QUESTIONS are re-exported too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 761a73d commit dc5cfd3

5 files changed

Lines changed: 78 additions & 666 deletions

File tree

‎docs/email.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @profullstack/stack/email
22

3+
> **The contact form moved to [`@profullstack/contact-form`](https://www.npmjs.com/package/@profullstack/contact-form)**
4+
> (0.6.0). It owns the questions (generic defaults, override per site), the
5+
> markup (HTML string or `<ContactForm>`), the form-guard token and the route
6+
> in one object: `createContactForm({ site, to })`. `createContactRoute` and
7+
> `createContactGuard` below are re-exported from it unchanged, so existing
8+
> routes keep working; new code should use `createContactForm`.
9+
310
Contact-form route handler plus everything an app needs for sending email.
411
Replaces the hand-rolled Resend contact routes copy-pasted across the
512
Profullstack apps (naallo, d0rz, libertyhillcoin, communitygardens-web,

‎package-lock.json‎

Lines changed: 36 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@profullstack/stack",
3-
"version": "0.5.0",
4-
"description": "The Profullstack open source stack \u2014 shared modules for Next.js/Node apps: referrals, email, supabase, coinpay, crawlproof.",
3+
"version": "0.6.0",
4+
"description": "The Profullstack open source stack — shared modules for Next.js/Node apps: referrals, email, supabase, coinpay, crawlproof.",
55
"license": "MIT",
66
"type": "module",
77
"exports": {
@@ -88,6 +88,7 @@
8888
"prepublishOnly": "npm run build && npm test"
8989
},
9090
"dependencies": {
91+
"@profullstack/contact-form": "^0.1.0",
9192
"@profullstack/emailer": "^1.0.1",
9293
"@profullstack/form-guard": "^0.1.1",
9394
"@profullstack/referrals": "^0.1.0"

0 commit comments

Comments
 (0)