react-email 4.0.6 → 4.0.8

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 (113) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cli/index.js +15 -8
  3. package/dist/cli/index.mjs +15 -8
  4. package/dist/index.js +1234 -0
  5. package/dist/preview/.next/BUILD_ID +1 -1
  6. package/dist/preview/.next/app-build-manifest.json +4 -4
  7. package/dist/preview/.next/build-manifest.json +2 -2
  8. package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
  9. package/dist/preview/.next/next-server.js.nft.json +1 -1
  10. package/dist/preview/.next/prerender-manifest.json +3 -3
  11. package/dist/preview/.next/server/app/_not-found/page.js +1 -1
  12. package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/dist/preview/.next/server/app/page.js +1 -1
  14. package/dist/preview/.next/server/app/page.js.nft.json +1 -1
  15. package/dist/preview/.next/server/app/page_client-reference-manifest.js +1 -1
  16. package/dist/preview/.next/server/app/preview/[...slug]/page.js +12 -12
  17. package/dist/preview/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
  18. package/dist/preview/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
  19. package/dist/preview/.next/server/chunks/265.js +1 -0
  20. package/dist/preview/.next/server/pages/500.html +1 -1
  21. package/dist/preview/.next/server/server-reference-manifest.js +1 -1
  22. package/dist/preview/.next/server/server-reference-manifest.json +1 -1
  23. package/dist/preview/.next/static/chunks/{587-d27727c99e75067e.js → 587-2b8de61789f0fd1b.js} +1 -1
  24. package/dist/preview/.next/static/chunks/app/layout-a3d4e7b4de277118.js +1 -0
  25. package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-cab7e5e69e3b91e2.js +1 -0
  26. package/dist/preview/.next/trace +27 -27
  27. package/package.json +1 -1
  28. package/src/commands/testing/out/magic-links/aws-verify-email.html +164 -0
  29. package/src/commands/testing/out/magic-links/linear-login-code.html +89 -0
  30. package/src/commands/testing/out/magic-links/notion-magic-link.html +75 -0
  31. package/src/commands/testing/out/magic-links/plaid-verify-identity.html +78 -0
  32. package/src/commands/testing/out/magic-links/raycast-magic-link.html +90 -0
  33. package/src/commands/testing/out/magic-links/slack-confirm.html +239 -0
  34. package/src/commands/testing/out/newsletters/codepen-challengers.html +547 -0
  35. package/src/commands/testing/out/newsletters/google-play-policy-update.html +338 -0
  36. package/src/commands/testing/out/newsletters/stack-overflow-tips.html +230 -0
  37. package/src/commands/testing/out/notifications/github-access-token.html +103 -0
  38. package/src/commands/testing/out/notifications/papermark-year-in-review.html +316 -0
  39. package/src/commands/testing/out/notifications/vercel-invite-user.html +170 -0
  40. package/src/commands/testing/out/notifications/yelp-recent-login.html +194 -0
  41. package/src/commands/testing/out/receipts/apple-receipt.html +676 -0
  42. package/src/commands/testing/out/receipts/nike-receipt.html +723 -0
  43. package/src/commands/testing/out/reset-password/dropbox-reset-password.html +97 -0
  44. package/src/commands/testing/out/reset-password/twitch-reset-password.html +219 -0
  45. package/src/commands/testing/out/reviews/airbnb-review.html +205 -0
  46. package/src/commands/testing/out/reviews/amazon-review.html +355 -0
  47. package/src/commands/testing/out/static/airbnb-logo.png +0 -0
  48. package/src/commands/testing/out/static/airbnb-review-user.jpg +0 -0
  49. package/src/commands/testing/out/static/amazon-book.jpg +0 -0
  50. package/src/commands/testing/out/static/amazon-facebook.jpg +0 -0
  51. package/src/commands/testing/out/static/amazon-instagram.jpg +0 -0
  52. package/src/commands/testing/out/static/amazon-logo.png +0 -0
  53. package/src/commands/testing/out/static/amazon-prime-logo.png +0 -0
  54. package/src/commands/testing/out/static/amazon-rating.gif +0 -0
  55. package/src/commands/testing/out/static/amazon-twitter.jpg +0 -0
  56. package/src/commands/testing/out/static/apple-card-icon.png +0 -0
  57. package/src/commands/testing/out/static/apple-hbo-max-icon.jpeg +0 -0
  58. package/src/commands/testing/out/static/apple-logo.png +0 -0
  59. package/src/commands/testing/out/static/apple-wallet.png +0 -0
  60. package/src/commands/testing/out/static/aws-logo.png +0 -0
  61. package/src/commands/testing/out/static/codepen-challengers.png +0 -0
  62. package/src/commands/testing/out/static/codepen-cube.png +0 -0
  63. package/src/commands/testing/out/static/codepen-pro.png +0 -0
  64. package/src/commands/testing/out/static/dropbox-logo.png +0 -0
  65. package/src/commands/testing/out/static/github.png +0 -0
  66. package/src/commands/testing/out/static/google-play-academy.png +0 -0
  67. package/src/commands/testing/out/static/google-play-chat.png +0 -0
  68. package/src/commands/testing/out/static/google-play-footer.png +0 -0
  69. package/src/commands/testing/out/static/google-play-header.png +0 -0
  70. package/src/commands/testing/out/static/google-play-icon.png +0 -0
  71. package/src/commands/testing/out/static/google-play-logo.png +0 -0
  72. package/src/commands/testing/out/static/google-play-pl.png +0 -0
  73. package/src/commands/testing/out/static/google-play.png +0 -0
  74. package/src/commands/testing/out/static/koala-logo.png +0 -0
  75. package/src/commands/testing/out/static/linear-logo.png +0 -0
  76. package/src/commands/testing/out/static/netlify-logo.png +0 -0
  77. package/src/commands/testing/out/static/nike-logo.png +0 -0
  78. package/src/commands/testing/out/static/nike-phone.png +0 -0
  79. package/src/commands/testing/out/static/nike-product.png +0 -0
  80. package/src/commands/testing/out/static/nike-recomendation-1.png +0 -0
  81. package/src/commands/testing/out/static/nike-recomendation-2.png +0 -0
  82. package/src/commands/testing/out/static/nike-recomendation-3.png +0 -0
  83. package/src/commands/testing/out/static/nike-recomendation-4.png +0 -0
  84. package/src/commands/testing/out/static/notion-logo.png +0 -0
  85. package/src/commands/testing/out/static/plaid-logo.png +0 -0
  86. package/src/commands/testing/out/static/raycast-bg.png +0 -0
  87. package/src/commands/testing/out/static/raycast-logo.png +0 -0
  88. package/src/commands/testing/out/static/slack-facebook.png +0 -0
  89. package/src/commands/testing/out/static/slack-linkedin.png +0 -0
  90. package/src/commands/testing/out/static/slack-logo.png +0 -0
  91. package/src/commands/testing/out/static/slack-twitter.png +0 -0
  92. package/src/commands/testing/out/static/stack-overflow-header.png +0 -0
  93. package/src/commands/testing/out/static/stack-overflow-logo-sm.png +0 -0
  94. package/src/commands/testing/out/static/stack-overflow-logo.png +0 -0
  95. package/src/commands/testing/out/static/stripe-logo.png +0 -0
  96. package/src/commands/testing/out/static/twitch-icon-facebook.png +0 -0
  97. package/src/commands/testing/out/static/twitch-icon-twitter.png +0 -0
  98. package/src/commands/testing/out/static/twitch-logo.png +0 -0
  99. package/src/commands/testing/out/static/vercel-arrow.png +0 -0
  100. package/src/commands/testing/out/static/vercel-logo.png +0 -0
  101. package/src/commands/testing/out/static/vercel-team.png +0 -0
  102. package/src/commands/testing/out/static/vercel-user.png +0 -0
  103. package/src/commands/testing/out/static/yelp-footer.png +0 -0
  104. package/src/commands/testing/out/static/yelp-header.png +0 -0
  105. package/src/commands/testing/out/static/yelp-logo.png +0 -0
  106. package/src/commands/testing/out/welcome/koala-welcome.html +89 -0
  107. package/src/commands/testing/out/welcome/netlify-welcome.html +198 -0
  108. package/src/commands/testing/out/welcome/stripe-welcome.html +152 -0
  109. package/dist/preview/.next/server/chunks/442.js +0 -1
  110. package/dist/preview/.next/static/chunks/app/layout-f9b38ee711366227.js +0 -1
  111. package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-04482cd4439de72f.js +0 -1
  112. /package/dist/preview/.next/static/{SsVKC3PTN7PJbKsZaiN3_ → t22IN7aANTezJAJOfFnv-}/_buildManifest.js +0 -0
  113. /package/dist/preview/.next/static/{SsVKC3PTN7PJbKsZaiN3_ → t22IN7aANTezJAJOfFnv-}/_ssgManifest.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # react-email
2
2
 
3
+ ## 4.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - ea579b5: Log out errors that happen when `export`'s esbuild fails
8
+
9
+ ## 4.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - 403e415: Fix `deno` not working as an option for `email build`
14
+
3
15
  ## 4.0.6
4
16
 
5
17
  ### Patch Changes
package/dist/cli/index.js CHANGED
@@ -28,7 +28,7 @@ var import_commander = require("commander");
28
28
  // package.json
29
29
  var package_default = {
30
30
  name: "react-email",
31
- version: "4.0.6",
31
+ version: "4.0.8",
32
32
  description: "A live preview of your emails right in your browser.",
33
33
  bin: {
34
34
  email: "./dist/cli/index.js"
@@ -960,7 +960,11 @@ var npmInstall = async (builtPreviewAppPath, packageManager) => {
960
960
  return new Promise((resolve, reject) => {
961
961
  const childProc = (0, import_node_child_process.spawn)(
962
962
  packageManager,
963
- ["install", "--silent", "--include=dev"],
963
+ [
964
+ "install",
965
+ packageManager === "deno" ? "" : "--include=dev",
966
+ packageManager === "deno" ? "--quiet" : "--silent"
967
+ ],
964
968
  {
965
969
  cwd: builtPreviewAppPath,
966
970
  shell: true
@@ -1161,23 +1165,26 @@ var exportTemplates = async (pathToWhereEmailMarkupShouldBeDumped, emailsDirecto
1161
1165
  await (0, import_esbuild.build)({
1162
1166
  bundle: true,
1163
1167
  entryPoints: allTemplates,
1164
- plugins: [renderingUtilitiesExporter(allTemplates)],
1165
- platform: "node",
1166
1168
  format: "cjs",
1169
+ jsx: "transform",
1167
1170
  loader: { ".js": "jsx" },
1171
+ logLevel: "silent",
1168
1172
  outExtension: { ".js": ".cjs" },
1169
- jsx: "transform",
1170
- write: true,
1171
- outdir: pathToWhereEmailMarkupShouldBeDumped
1173
+ outdir: pathToWhereEmailMarkupShouldBeDumped,
1174
+ platform: "node",
1175
+ plugins: [renderingUtilitiesExporter(allTemplates)],
1176
+ write: true
1172
1177
  });
1173
1178
  } catch (exception) {
1174
- const buildFailure = exception;
1175
1179
  if (spinner) {
1176
1180
  spinner.stopAndPersist({
1177
1181
  symbol: import_log_symbols4.default.error,
1178
1182
  text: "Failed to build emails"
1179
1183
  });
1180
1184
  }
1185
+ const buildFailure = exception;
1186
+ console.error(`
1187
+ ${buildFailure.message}`);
1181
1188
  process.exit(1);
1182
1189
  }
1183
1190
  if (spinner) {
@@ -13,7 +13,7 @@ import { program } from "commander";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "react-email",
16
- version: "4.0.6",
16
+ version: "4.0.8",
17
17
  description: "A live preview of your emails right in your browser.",
18
18
  bin: {
19
19
  email: "./dist/cli/index.js"
@@ -945,7 +945,11 @@ var npmInstall = async (builtPreviewAppPath, packageManager) => {
945
945
  return new Promise((resolve, reject) => {
946
946
  const childProc = spawn(
947
947
  packageManager,
948
- ["install", "--silent", "--include=dev"],
948
+ [
949
+ "install",
950
+ packageManager === "deno" ? "" : "--include=dev",
951
+ packageManager === "deno" ? "--quiet" : "--silent"
952
+ ],
949
953
  {
950
954
  cwd: builtPreviewAppPath,
951
955
  shell: true
@@ -1146,23 +1150,26 @@ var exportTemplates = async (pathToWhereEmailMarkupShouldBeDumped, emailsDirecto
1146
1150
  await build2({
1147
1151
  bundle: true,
1148
1152
  entryPoints: allTemplates,
1149
- plugins: [renderingUtilitiesExporter(allTemplates)],
1150
- platform: "node",
1151
1153
  format: "cjs",
1154
+ jsx: "transform",
1152
1155
  loader: { ".js": "jsx" },
1156
+ logLevel: "silent",
1153
1157
  outExtension: { ".js": ".cjs" },
1154
- jsx: "transform",
1155
- write: true,
1156
- outdir: pathToWhereEmailMarkupShouldBeDumped
1158
+ outdir: pathToWhereEmailMarkupShouldBeDumped,
1159
+ platform: "node",
1160
+ plugins: [renderingUtilitiesExporter(allTemplates)],
1161
+ write: true
1157
1162
  });
1158
1163
  } catch (exception) {
1159
- const buildFailure = exception;
1160
1164
  if (spinner) {
1161
1165
  spinner.stopAndPersist({
1162
1166
  symbol: logSymbols4.error,
1163
1167
  text: "Failed to build emails"
1164
1168
  });
1165
1169
  }
1170
+ const buildFailure = exception;
1171
+ console.error(`
1172
+ ${buildFailure.message}`);
1166
1173
  process.exit(1);
1167
1174
  }
1168
1175
  if (spinner) {