Skip to content

Commit e1831a0

Browse files
github-actions[bot]gabrielmfern
authored andcommitted
chore(root): Version packages (canary) (#2064)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ba7f702 commit e1831a0

File tree

7 files changed

+71
-11
lines changed

7 files changed

+71
-11
lines changed

.changeset/pre.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"@benchmarks/tailwind-component": "0.0.0",
1010
"@react-email/body": "0.0.11",
1111
"@react-email/button": "0.0.19",
12-
"@react-email/code-block": "0.0.12",
12+
"@react-email/code-block": "0.0.13",
1313
"@react-email/code-inline": "0.0.5",
1414
"@react-email/column": "0.0.13",
15-
"@react-email/components": "0.0.36",
15+
"@react-email/components": "0.0.37",
1616
"@react-email/container": "0.0.15",
17-
"create-email": "1.0.7",
17+
"create-email": "1.2.0",
1818
"react-email-starter": "1.0.7",
1919
"@react-email/font": "0.0.9",
2020
"@react-email/head": "0.0.12",
@@ -23,15 +23,15 @@
2323
"@react-email/html": "0.0.11",
2424
"@react-email/img": "0.0.11",
2525
"@react-email/link": "0.0.12",
26-
"@react-email/markdown": "0.0.14",
26+
"@react-email/markdown": "0.0.15",
2727
"@react-email/preview": "0.0.12",
28-
"react-email": "4.0.6",
29-
"@react-email/render": "1.0.6",
28+
"react-email": "4.0.11",
29+
"@react-email/render": "1.1.0",
3030
"@react-email/row": "0.0.12",
3131
"@react-email/section": "0.0.16",
32-
"@react-email/tailwind": "1.0.4",
33-
"@react-email/text": "0.1.1",
32+
"@react-email/tailwind": "1.0.5",
33+
"@react-email/text": "0.1.2",
3434
"tsconfig": "0.0.0"
3535
},
36-
"changesets": []
36+
"changesets": ["dirty-needles-chew"]
3737
}

packages/components/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
- @react-email/row@0.0.12
3737
- @react-email/section@0.0.16
3838

39+
## 0.0.37-canary.0
40+
41+
### Patch Changes
42+
43+
- Updated dependencies [ae8c007]
44+
- @react-email/tailwind@1.1.0-canary.0
45+
3946
## 0.0.36
4047

4148
### Patch Changes

packages/create-email/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
- 31fd7cc: use caret for dependency on react-email and @react-email/components
1818

19+
## 1.0.8-canary.0
20+
1921
## 1.0.7
2022

2123
### Patch Changes

packages/create-email/template/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## 1.1.0
44

5+
## 1.0.8-canary.0
6+
7+
### Patch Changes
8+
9+
- @react-email/components@0.0.37-canary.0
10+
511
## 1.0.7
612

713
## 1.0.6

packages/react-email/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# react-email
22

3+
## 4.1.0-canary.0
4+
5+
### Minor Changes
6+
7+
- 4a0d4e3: Theme switcher for email template
8+
39
## 4.0.11
410

511
### Patch Changes

packages/react-email/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-email",
3-
"version": "4.0.11",
3+
"version": "4.1.0-canary.0",
44
"description": "A live preview of your emails right in your browser.",
55
"bin": {
66
"email": "./dist/cli/index.mjs"

packages/tailwind/src/__snapshots__/tailwind.spec.tsx.snap

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ exports[`Custom theme config > should be able to use custom spacing 1`] = `"<!DO
1414

1515
exports[`Custom theme config > should be able to use custom text alignment 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><div style="text-align:justify"></div><!--/$-->"`;
1616

17-
exports[`Tailwind component > it should not generate styles from text 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$-->container bg-red-500 bg-blue-300<!--/$-->"`;D
17+
exports[`Tailwind component > <Button className="px-3 py-2 mt-8 text-sm text-gray-200 bg-blue-600 rounded-md"> 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><a style="margin-top:2rem;border-radius:0.375rem;background-color:rgb(37,99,235);padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;color:rgb(229,231,235);font-size:0.875rem;line-height:1.25rem;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:8px 12px 8px 12px" target="_blank"><span><!--[if mso]><i style="mso-font-width:300%;mso-text-raise:12" hidden>&#8202;&#8202;</i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:6px">Testing button</span><span><!--[if mso]><i style="mso-font-width:300%" hidden>&#8202;&#8202;&#8203;</i><![endif]--></span></a>Testing<!--/$-->"`;
18+
19+
exports[`Tailwind component > it should not generate styles from text 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$-->container bg-red-500 bg-blue-300<!--/$-->"`;
1820
1921
exports[`Tailwind component > should allow for complex children manipulation 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="text-align:center;font-size:0"><tbody><tr><td style="padding:0px 0px 0px 0px"><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="max-width:300px;display:inline-block;vertical-align:top;font-size:16px;box-sizing:border-box"><tbody><tr><td>This is the first column</td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="max-width:300px;display:inline-block;vertical-align:top;font-size:16px;box-sizing:border-box"><tbody><tr><td>This is the second column</td></tr></tbody></table></td></tr></tbody></table><!--/$-->"`;
2022
@@ -38,3 +40,40 @@ exports[`Tailwind component > should work with components that return children 1
3840
3941
exports[`Tailwind component > should work with components that use React.forwardRef 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><div style="margin-top:100px;font-size:50px;line-height:1">Hello world</div><div style="padding:20px"><p style="font-weight:700;font-size:50px">React Email</p></div><!--/$-->"`;
4042
43+
exports[`Tailwind component > should work with custom components with fragment at the root 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><div style="margin-top:100px;font-size:50px;line-height:1">Hello world</div><div style="padding:20px"><p style="font-weight:700;font-size:50px">React Email</p></div><div style="padding:20px"><p style="font-weight:700;font-size:50px">React Email</p></div><!--/$-->"`;
44+
45+
exports[`non-inlinable styles > should add css to <head/> and keep class names 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><!--$--><style>@media(min-width:640px){.sm_bg-red-300{background-color:rgb(252,165,165) !important}.sm_hover_bg-red-200:hover{background-color:rgb(254,202,202) !important}}@media(min-width:768px){.md_bg-red-400{background-color:rgb(248,113,113) !important}}@media(min-width:1024px){.lg_bg-red-500{background-color:rgb(239,68,68) !important}}.hover_bg-red-600:hover{background-color:rgb(220,38,38) !important}.focus_bg-red-700:focus{background-color:rgb(185,28,28) !important}</style></head><body><div class="sm_bg-red-300 md_bg-red-400 lg_bg-red-500 hover_bg-red-600 focus_bg-red-700 sm_hover_bg-red-200" style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
46+
47+
exports[`non-inlinable styles > should not have duplicate media queries 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><!--$--><style>@media(min-width:768px){.md_px-64px{padding-left:64px !important;padding-right:64px !important}}.hover_underline:hover{text-decoration-line:underline !important}</style></head><body class="md_px-64px hover_underline" style="background-color:rgb(255,255,255);margin-top:auto;margin-bottom:auto;margin-left:auto;margin-right:auto;font-family:ui-sans-serif, system-ui, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;"><div class="md_px-64px hover_underline"></div><!--/$--></body>"`;
48+
49+
exports[`non-inlinable styles > should persist existing <head/> elements 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><!--$--><style></style><link/><style>@media(min-width:640px){.sm_bg-red-500{background-color:rgb(239,68,68) !important}}</style></head><body><div class="sm_bg-red-500" style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
50+
51+
exports[`non-inlinable styles > should throw an error when used without a <head/> 1`] = `
52+
[Error: You are trying to use the following Tailwind classes that cannot be inlined: sm:bg-red-500.
53+
For the media queries to work properly on rendering, they need to be added into a <style> tag inside of a <head> tag,
54+
the Tailwind component tried finding a <head> element but just wasn't able to find it.
55+
56+
Make sure that you have a <head> element at some point inside of the <Tailwind> component at any depth.
57+
This can also be our <Head> component.
58+
59+
If you do already have a <head> element at some depth,
60+
please file a bug https://github.com/resend/react-email/issues/new?assignees=&labels=Type%3A+Bug&projects=&template=1.bug_report.yml.]
61+
`;
62+
63+
exports[`non-inlinable styles > should throw error when used without the head and with media query class names only very deeply nested 1`] = `
64+
[Error: You are trying to use the following Tailwind classes that cannot be inlined: sm:h-10 sm:w-10.
65+
For the media queries to work properly on rendering, they need to be added into a <style> tag inside of a <head> tag,
66+
the Tailwind component tried finding a <head> element but just wasn't able to find it.
67+
68+
Make sure that you have a <head> element at some point inside of the <Tailwind> component at any depth.
69+
This can also be our <Head> component.
70+
71+
If you do already have a <head> element at some depth,
72+
please file a bug https://github.com/resend/react-email/issues/new?assignees=&labels=Type%3A+Bug&projects=&template=1.bug_report.yml.]
73+
`;
74+
75+
exports[`non-inlinable styles > should work with arbitrarily deep (in the React tree) <head> elements 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><!--$--><style>@media(min-width:640px){.sm_bg-red-300{background-color:rgb(252,165,165) !important}}@media(min-width:768px){.md_bg-red-400{background-color:rgb(248,113,113) !important}}@media(min-width:1024px){.lg_bg-red-500{background-color:rgb(239,68,68) !important}}</style></head><body><div class="sm_bg-red-300 md_bg-red-400 lg_bg-red-500" style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
76+
77+
exports[`non-inlinable styles > should work with arbitrarily deep (in the React tree) <head> elements 2`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><!--$--><style>@media(min-width:640px){.sm_bg-red-300{background-color:rgb(252,165,165) !important}}@media(min-width:768px){.md_bg-red-400{background-color:rgb(248,113,113) !important}}@media(min-width:1024px){.lg_bg-red-500{background-color:rgb(239,68,68) !important}}</style></head><body><div class="sm_bg-red-300 md_bg-red-400 lg_bg-red-500" style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
78+
79+
exports[`non-inlinable styles > should work with relatively complex media query utilities 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><!--$--><style>@media not all and(min-width:640px){.max-sm_text-red-600{color:rgb(220,38,38) !important}}</style></head><p class="max-sm_text-red-600" style="color:rgb(29,78,216)">I am some text</p><!--/$-->"`;

0 commit comments

Comments
 (0)