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.
- package/CHANGELOG.md +44 -0
- package/dev/CHANGELOG.md +3 -0
- package/dev/index.js +44 -0
- package/dev/package.json +13 -0
- package/dist/cli/index.mjs +1391 -0
- package/dist/index.js +378 -366
- package/dist/preview/.next/BUILD_ID +1 -0
- package/dist/preview/.next/app-build-manifest.json +44 -0
- package/dist/preview/.next/app-path-routes-manifest.json +6 -0
- package/dist/preview/.next/build-manifest.json +33 -0
- package/dist/preview/.next/diagnostics/build-diagnostics.json +6 -0
- package/dist/preview/.next/diagnostics/framework.json +1 -0
- package/dist/preview/.next/export-marker.json +6 -0
- package/dist/preview/.next/images-manifest.json +57 -0
- package/dist/preview/.next/next-minimal-server.js.nft.json +1 -0
- package/dist/preview/.next/next-server.js.nft.json +1 -0
- package/dist/preview/.next/package.json +1 -0
- package/dist/preview/.next/prerender-manifest.json +41 -0
- package/dist/preview/.next/react-loadable-manifest.json +1 -0
- package/dist/preview/.next/required-server-files.json +311 -0
- package/dist/preview/.next/routes-manifest.json +64 -0
- package/dist/preview/.next/server/app/_not-found/page.js +1 -0
- package/dist/preview/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/dist/preview/.next/server/app/favicon.ico/route.js +1 -0
- package/dist/preview/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/dist/preview/.next/server/app/favicon.ico.body +0 -0
- package/dist/preview/.next/server/app/favicon.ico.meta +1 -0
- package/dist/preview/.next/server/app/page.js +1 -0
- package/dist/preview/.next/server/app/page.js.nft.json +1 -0
- package/dist/preview/.next/server/app/page_client-reference-manifest.js +1 -0
- package/dist/preview/.next/server/app/preview/[...slug]/page.js +321 -0
- package/dist/preview/.next/server/app/preview/[...slug]/page.js.nft.json +1 -0
- package/dist/preview/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -0
- package/dist/preview/.next/server/app-paths-manifest.json +6 -0
- package/dist/preview/.next/server/chunks/134.js +6 -0
- package/dist/preview/.next/server/chunks/235.js +15 -0
- package/dist/preview/.next/server/chunks/343.js +20 -0
- package/dist/preview/.next/server/chunks/428.js +14 -0
- package/dist/preview/.next/server/chunks/934.js +1 -0
- package/dist/preview/.next/server/chunks/963.js +1 -0
- package/dist/preview/.next/server/functions-config-manifest.json +4 -0
- package/dist/preview/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/dist/preview/.next/server/middleware-build-manifest.js +1 -0
- package/dist/preview/.next/server/middleware-manifest.json +6 -0
- package/dist/preview/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/dist/preview/.next/server/next-font-manifest.js +1 -0
- package/dist/preview/.next/server/next-font-manifest.json +1 -0
- package/dist/preview/.next/server/pages/500.html +1 -0
- package/dist/preview/.next/server/pages/_app.js +1 -0
- package/dist/preview/.next/server/pages/_app.js.nft.json +1 -0
- package/dist/preview/.next/server/pages/_document.js +1 -0
- package/dist/preview/.next/server/pages/_document.js.nft.json +1 -0
- package/dist/preview/.next/server/pages/_error.js +1 -0
- package/dist/preview/.next/server/pages/_error.js.nft.json +1 -0
- package/dist/preview/.next/server/pages-manifest.json +5 -0
- package/dist/preview/.next/server/server-reference-manifest.js +1 -0
- package/dist/preview/.next/server/server-reference-manifest.json +1 -0
- package/dist/preview/.next/server/webpack-runtime.js +1 -0
- package/dist/preview/.next/static/FZEE-q531kq1Juxsda2po/_buildManifest.js +1 -0
- package/dist/preview/.next/static/FZEE-q531kq1Juxsda2po/_ssgManifest.js +1 -0
- package/dist/preview/.next/static/chunks/107-3043079e7cb8bcae.js +1 -0
- package/dist/preview/.next/static/chunks/293-297b1eb2241f9a70.js +1 -0
- package/dist/preview/.next/static/chunks/3bd82e28-cda2c00a924937c5.js +1 -0
- package/dist/preview/.next/static/chunks/45-1021fac82f766268.js +1 -0
- package/dist/preview/.next/static/chunks/484-f5954e7b4b93f109.js +1 -0
- package/dist/preview/.next/static/chunks/589-817d8691661d370e.js +1 -0
- package/dist/preview/.next/static/chunks/902-c34acb56733e0ce1.js +1 -0
- package/dist/preview/.next/static/chunks/app/_not-found/page-4cbc7dce3ad33336.js +1 -0
- package/dist/preview/.next/static/chunks/app/layout-89c12abbc616c3a1.js +1 -0
- package/dist/preview/.next/static/chunks/app/page-0492cd9ce15b7980.js +1 -0
- package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-c670410568d530db.js +1 -0
- package/dist/preview/.next/static/chunks/f33a14d2-ec7c5f0b91818561.js +6 -0
- package/dist/preview/.next/static/chunks/framework-b887e9fc751a9906.js +1 -0
- package/dist/preview/.next/static/chunks/main-9a03e7ba8acb1900.js +1 -0
- package/dist/preview/.next/static/chunks/main-app-951f948d1c44189f.js +1 -0
- package/dist/preview/.next/static/chunks/pages/_app-542a93a5a214e1c0.js +1 -0
- package/dist/preview/.next/static/chunks/pages/_error-d5fe1b1612642f76.js +1 -0
- package/dist/preview/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/preview/.next/static/chunks/webpack-31c45daa2bd82a7b.js +1 -0
- package/dist/preview/.next/static/css/78c81281aa95270f.css +3 -0
- package/dist/preview/.next/static/media/05613964ce6c782e-s.p.otf +0 -0
- package/dist/preview/.next/static/media/11c6126b9369e85e-s.p.otf +0 -0
- package/dist/preview/.next/static/media/26a46d62cd723877-s.woff2 +0 -0
- package/dist/preview/.next/static/media/26cb97734d8cb717-s.p.otf +0 -0
- package/dist/preview/.next/static/media/55c55f0601d81cf3-s.woff2 +0 -0
- package/dist/preview/.next/static/media/581909926a08bbc8-s.woff2 +0 -0
- package/dist/preview/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/dist/preview/.next/static/media/97e0cb1ae144a2a9-s.woff2 +0 -0
- package/dist/preview/.next/static/media/bb6462617151f6b7-s.p.otf +0 -0
- package/dist/preview/.next/static/media/cf6daef822ab0142-s.p.otf +0 -0
- package/dist/preview/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/dist/preview/.next/static/media/e4051546b3043204-s.p.otf +0 -0
- package/dist/preview/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/dist/preview/.next/static/media/logo.2ce2a759.png +0 -0
- package/dist/preview/.next/trace +27 -0
- package/dist/preview/.next/types/app/layout.ts +84 -0
- package/dist/preview/.next/types/app/page.ts +84 -0
- package/dist/preview/.next/types/app/preview/[...slug]/page.ts +84 -0
- package/dist/preview/.next/types/cache-life.d.ts +141 -0
- package/dist/preview/.next/types/package.json +1 -0
- package/package.json +4 -4
- package/readme.md +16 -0
- package/src/actions/email-validation/__snapshots__/check-images.spec.tsx.snap +84 -0
- package/src/utils/get-preview-server-location.ts +34 -15
- package/src/utils/preview/get-env-variables-for-preview-app.ts +0 -2
- package/src/utils/preview/hot-reloading/create-dependency-graph.spec.ts +1 -70
- package/src/utils/preview/hot-reloading/create-dependency-graph.ts +2 -5
- package/src/utils/preview/serve-static-file.ts +2 -1
- 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
|
package/dev/CHANGELOG.md
ADDED
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
|
+
});
|