react-email 4.1.0-canary.8 → 4.1.0

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 (110) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dev/CHANGELOG.md +3 -0
  3. package/dev/index.js +44 -0
  4. package/dev/package.json +13 -0
  5. package/dist/cli/index.mjs +1391 -0
  6. package/dist/index.js +378 -366
  7. package/dist/preview/.next/BUILD_ID +1 -0
  8. package/dist/preview/.next/app-build-manifest.json +44 -0
  9. package/dist/preview/.next/app-path-routes-manifest.json +6 -0
  10. package/dist/preview/.next/build-manifest.json +33 -0
  11. package/dist/preview/.next/diagnostics/build-diagnostics.json +6 -0
  12. package/dist/preview/.next/diagnostics/framework.json +1 -0
  13. package/dist/preview/.next/export-marker.json +6 -0
  14. package/dist/preview/.next/images-manifest.json +57 -0
  15. package/dist/preview/.next/next-minimal-server.js.nft.json +1 -0
  16. package/dist/preview/.next/next-server.js.nft.json +1 -0
  17. package/dist/preview/.next/package.json +1 -0
  18. package/dist/preview/.next/prerender-manifest.json +41 -0
  19. package/dist/preview/.next/react-loadable-manifest.json +1 -0
  20. package/dist/preview/.next/required-server-files.json +311 -0
  21. package/dist/preview/.next/routes-manifest.json +64 -0
  22. package/dist/preview/.next/server/app/_not-found/page.js +1 -0
  23. package/dist/preview/.next/server/app/_not-found/page.js.nft.json +1 -0
  24. package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  25. package/dist/preview/.next/server/app/favicon.ico/route.js +1 -0
  26. package/dist/preview/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  27. package/dist/preview/.next/server/app/favicon.ico.body +0 -0
  28. package/dist/preview/.next/server/app/favicon.ico.meta +1 -0
  29. package/dist/preview/.next/server/app/page.js +1 -0
  30. package/dist/preview/.next/server/app/page.js.nft.json +1 -0
  31. package/dist/preview/.next/server/app/page_client-reference-manifest.js +1 -0
  32. package/dist/preview/.next/server/app/preview/[...slug]/page.js +321 -0
  33. package/dist/preview/.next/server/app/preview/[...slug]/page.js.nft.json +1 -0
  34. package/dist/preview/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -0
  35. package/dist/preview/.next/server/app-paths-manifest.json +6 -0
  36. package/dist/preview/.next/server/chunks/134.js +6 -0
  37. package/dist/preview/.next/server/chunks/235.js +15 -0
  38. package/dist/preview/.next/server/chunks/343.js +20 -0
  39. package/dist/preview/.next/server/chunks/428.js +14 -0
  40. package/dist/preview/.next/server/chunks/934.js +1 -0
  41. package/dist/preview/.next/server/chunks/963.js +1 -0
  42. package/dist/preview/.next/server/functions-config-manifest.json +4 -0
  43. package/dist/preview/.next/server/interception-route-rewrite-manifest.js +1 -0
  44. package/dist/preview/.next/server/middleware-build-manifest.js +1 -0
  45. package/dist/preview/.next/server/middleware-manifest.json +6 -0
  46. package/dist/preview/.next/server/middleware-react-loadable-manifest.js +1 -0
  47. package/dist/preview/.next/server/next-font-manifest.js +1 -0
  48. package/dist/preview/.next/server/next-font-manifest.json +1 -0
  49. package/dist/preview/.next/server/pages/500.html +1 -0
  50. package/dist/preview/.next/server/pages/_app.js +1 -0
  51. package/dist/preview/.next/server/pages/_app.js.nft.json +1 -0
  52. package/dist/preview/.next/server/pages/_document.js +1 -0
  53. package/dist/preview/.next/server/pages/_document.js.nft.json +1 -0
  54. package/dist/preview/.next/server/pages/_error.js +1 -0
  55. package/dist/preview/.next/server/pages/_error.js.nft.json +1 -0
  56. package/dist/preview/.next/server/pages-manifest.json +5 -0
  57. package/dist/preview/.next/server/server-reference-manifest.js +1 -0
  58. package/dist/preview/.next/server/server-reference-manifest.json +1 -0
  59. package/dist/preview/.next/server/webpack-runtime.js +1 -0
  60. package/dist/preview/.next/static/FZEE-q531kq1Juxsda2po/_buildManifest.js +1 -0
  61. package/dist/preview/.next/static/FZEE-q531kq1Juxsda2po/_ssgManifest.js +1 -0
  62. package/dist/preview/.next/static/chunks/107-3043079e7cb8bcae.js +1 -0
  63. package/dist/preview/.next/static/chunks/293-297b1eb2241f9a70.js +1 -0
  64. package/dist/preview/.next/static/chunks/3bd82e28-cda2c00a924937c5.js +1 -0
  65. package/dist/preview/.next/static/chunks/45-1021fac82f766268.js +1 -0
  66. package/dist/preview/.next/static/chunks/484-f5954e7b4b93f109.js +1 -0
  67. package/dist/preview/.next/static/chunks/589-817d8691661d370e.js +1 -0
  68. package/dist/preview/.next/static/chunks/902-c34acb56733e0ce1.js +1 -0
  69. package/dist/preview/.next/static/chunks/app/_not-found/page-4cbc7dce3ad33336.js +1 -0
  70. package/dist/preview/.next/static/chunks/app/layout-89c12abbc616c3a1.js +1 -0
  71. package/dist/preview/.next/static/chunks/app/page-0492cd9ce15b7980.js +1 -0
  72. package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-c670410568d530db.js +1 -0
  73. package/dist/preview/.next/static/chunks/f33a14d2-ec7c5f0b91818561.js +6 -0
  74. package/dist/preview/.next/static/chunks/framework-b887e9fc751a9906.js +1 -0
  75. package/dist/preview/.next/static/chunks/main-9a03e7ba8acb1900.js +1 -0
  76. package/dist/preview/.next/static/chunks/main-app-951f948d1c44189f.js +1 -0
  77. package/dist/preview/.next/static/chunks/pages/_app-542a93a5a214e1c0.js +1 -0
  78. package/dist/preview/.next/static/chunks/pages/_error-d5fe1b1612642f76.js +1 -0
  79. package/dist/preview/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  80. package/dist/preview/.next/static/chunks/webpack-31c45daa2bd82a7b.js +1 -0
  81. package/dist/preview/.next/static/css/78c81281aa95270f.css +3 -0
  82. package/dist/preview/.next/static/media/05613964ce6c782e-s.p.otf +0 -0
  83. package/dist/preview/.next/static/media/11c6126b9369e85e-s.p.otf +0 -0
  84. package/dist/preview/.next/static/media/26a46d62cd723877-s.woff2 +0 -0
  85. package/dist/preview/.next/static/media/26cb97734d8cb717-s.p.otf +0 -0
  86. package/dist/preview/.next/static/media/55c55f0601d81cf3-s.woff2 +0 -0
  87. package/dist/preview/.next/static/media/581909926a08bbc8-s.woff2 +0 -0
  88. package/dist/preview/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  89. package/dist/preview/.next/static/media/97e0cb1ae144a2a9-s.woff2 +0 -0
  90. package/dist/preview/.next/static/media/bb6462617151f6b7-s.p.otf +0 -0
  91. package/dist/preview/.next/static/media/cf6daef822ab0142-s.p.otf +0 -0
  92. package/dist/preview/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  93. package/dist/preview/.next/static/media/e4051546b3043204-s.p.otf +0 -0
  94. package/dist/preview/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  95. package/dist/preview/.next/static/media/logo.2ce2a759.png +0 -0
  96. package/dist/preview/.next/trace +27 -0
  97. package/dist/preview/.next/types/app/layout.ts +84 -0
  98. package/dist/preview/.next/types/app/page.ts +84 -0
  99. package/dist/preview/.next/types/app/preview/[...slug]/page.ts +84 -0
  100. package/dist/preview/.next/types/cache-life.d.ts +141 -0
  101. package/dist/preview/.next/types/package.json +1 -0
  102. package/package.json +4 -4
  103. package/readme.md +16 -0
  104. package/src/actions/email-validation/__snapshots__/check-images.spec.tsx.snap +84 -0
  105. package/src/utils/get-preview-server-location.ts +34 -15
  106. package/src/utils/preview/get-env-variables-for-preview-app.ts +0 -2
  107. package/src/utils/preview/hot-reloading/create-dependency-graph.spec.ts +1 -70
  108. package/src/utils/preview/hot-reloading/create-dependency-graph.ts +2 -5
  109. package/src/utils/preview/serve-static-file.ts +2 -1
  110. package/src/utils/preview/start-dev-server.ts +1 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # react-email
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - abf8599: use a separate package for storing the preview server (@react-email/preview-server)
8
+
9
+ ### Patch Changes
10
+
11
+ - e173b44: Use the same version for the preview-server and react-email
12
+
13
+ ## 4.1.0-canary.12
14
+
15
+ ## 4.1.0-canary.11
16
+
17
+ ### Patch Changes
18
+
19
+ - 19d4b45: fix static file serving security issue with logging
20
+
21
+ ## 4.1.0-canary.10
22
+
23
+ ## 4.1.0-canary.9
24
+
25
+ ### Patch Changes
26
+
27
+ - 40fb596: Use the same version for the preview-server and react-email
28
+
3
29
  ## 4.1.0-canary.8
4
30
 
5
31
  ### Minor Changes
@@ -57,6 +83,24 @@
57
83
 
58
84
  - 4a0d4e3: Theme switcher for email template
59
85
 
86
+ ## 4.0.17
87
+
88
+ ### Patch Changes
89
+
90
+ - e352a67: fix `<svg>` not being flagged as incompatible
91
+ - 8f64ebd: fix the forced `color-scheme: dark` for the preview
92
+ - 6de4e9f: fix static file serving security issue with logging
93
+ - b2e96d5: Add support for hot reloading with tsconfig path aliases
94
+ - 6b0cfd6: fix hot reloading with collapsed directories
95
+ - 8c93330: Fix prettier errors causing NextJS serialization error
96
+ - a07eebf: Pre-render email templates on hover
97
+
98
+ ## 4.0.16
99
+
100
+ ### Patch Changes
101
+
102
+ - 1340a0a: fix mobile's sidebar broken in the preview server
103
+
60
104
  ## 4.0.15
61
105
 
62
106
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ # email-dev
2
+
3
+ ## 0.0.1
package/dev/index.js ADDED
@@ -0,0 +1,44 @@
1
+ import child_process from 'node:child_process';
2
+ import path from 'node:path';
3
+ import url from 'node:url';
4
+
5
+ const filename = url.fileURLToPath(import.meta.url);
6
+ const dirname = path.dirname(filename);
7
+
8
+ const root = path.resolve(dirname, '../src/index.ts');
9
+
10
+ const tsxPath = path.resolve(dirname, './node_modules/.bin/tsx');
11
+
12
+ const tsx = child_process.spawn(tsxPath, [root, ...process.argv.slice(2)], {
13
+ shell: true,
14
+ cwd: process.cwd(),
15
+ stdio: 'inherit',
16
+ });
17
+
18
+ tsx.on('close', (code) => {
19
+ process.exit(code);
20
+ });
21
+
22
+ process.on('uncaughtExceptionMonitor', () => {
23
+ tsx.kill();
24
+ });
25
+
26
+ process.on('exit', (code) => {
27
+ tsx.kill(code);
28
+ });
29
+
30
+ process.on('SIGINT', () => {
31
+ tsx.kill('SIGINT');
32
+ });
33
+
34
+ process.on('SIGTERM', () => {
35
+ tsx.kill('SIGTERM');
36
+ });
37
+
38
+ process.on('SIGUSR1', () => {
39
+ tsx.kill('SIGUSR1');
40
+ });
41
+
42
+ process.on('SIGUSR2', () => {
43
+ tsx.kill('SIGUSR2');
44
+ });
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "email-dev",
3
+ "version": "0.0.1",
4
+ "bin": "index.js",
5
+ "private": true,
6
+ "type": "module",
7
+ "scripts": {
8
+ "start": "node ."
9
+ },
10
+ "dependencies": {
11
+ "tsx": "4.19.3"
12
+ }
13
+ }