Skip to content

Commit 56ab5ab

Browse files
gabrielmfernbukinoshitadependabot[bot]luxonautazehfernandes
authored
feat(react-email): Toolbar for compatibility checking, link & image validation and spam checker (#2004)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Bu Kinoshita <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lucas de França <[email protected]> Co-authored-by: Zeh Fernandes <[email protected]> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Co-authored-by: Zeno Rocha <[email protected]> Co-authored-by: cpenned <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent fda0260 commit 56ab5ab

File tree

160 files changed

+96509
-1302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+96509
-1302
lines changed

.changeset/hungry-cooks-wonder.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": major
3+
---
4+
5+
Add toolbar with image/link validation, compatibility checking and a spam scoring system

apps/demo/emails/magic-links/aws-verify-email.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
Section,
1212
Text,
1313
} from '@react-email/components';
14-
import * as React from 'react';
1514

1615
interface AWSVerifyEmailProps {
1716
verificationCode?: string;
@@ -22,7 +21,7 @@ const baseUrl = process.env.VERCEL_URL
2221
: '';
2322

2423
export default function AWSVerifyEmail({
25-
verificationCode = '596853',
24+
verificationCode,
2625
}: AWSVerifyEmailProps) {
2726
return (
2827
<Html>
@@ -84,6 +83,10 @@ export default function AWSVerifyEmail({
8483
);
8584
}
8685

86+
AWSVerifyEmail.PreviewProps = {
87+
verificationCode: '596853',
88+
} satisfies AWSVerifyEmailProps;
89+
8790
const main = {
8891
backgroundColor: '#fff',
8992
color: '#212121',

apps/demo/emails/magic-links/linear-login-code.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
Section,
1313
Text,
1414
} from '@react-email/components';
15-
import * as React from 'react';
1615

1716
interface LinearLoginCodeEmailProps {
1817
validationCode?: string;

apps/demo/emails/magic-links/notion-magic-link.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
Preview,
1010
Text,
1111
} from '@react-email/components';
12-
import * as React from 'react';
1312

1413
interface NotionMagicLinkEmailProps {
1514
loginCode?: string;

apps/demo/emails/magic-links/plaid-verify-identity.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
Section,
1010
Text,
1111
} from '@react-email/components';
12-
import * as React from 'react';
1312

1413
interface PlaidVerifyIdentityEmailProps {
1514
validationCode?: string;

apps/demo/emails/magic-links/raycast-magic-link.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
Section,
1212
Text,
1313
} from '@react-email/components';
14-
import * as React from 'react';
1514

1615
interface RaycastMagicLinkEmailProps {
1716
magicLink?: string;

apps/demo/emails/magic-links/slack-confirm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
Section,
1313
Text,
1414
} from '@react-email/components';
15-
import * as React from 'react';
1615

1716
interface SlackConfirmEmailProps {
1817
validationCode?: string;

apps/demo/emails/newsletters/codepen-challengers.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
Section,
1414
Text,
1515
} from '@react-email/components';
16-
import * as React from 'react';
1716

1817
const baseUrl = process.env.VERCEL_URL
1918
? `https://${process.env.VERCEL_URL}`

apps/demo/emails/newsletters/google-play-policy-update.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
Section,
1313
Text,
1414
} from '@react-email/components';
15-
import * as React from 'react';
1615

1716
const baseUrl = process.env.VERCEL_URL
1817
? `https://${process.env.VERCEL_URL}`

apps/demo/emails/newsletters/stack-overflow-tips.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
Section,
1414
Text,
1515
} from '@react-email/components';
16-
import * as React from 'react';
1716

1817
interface StackOverflowTipsEmailProps {
1918
tips?: { id: number; description: string }[];

0 commit comments

Comments
 (0)