react-email 1.5.0 → 1.5.1
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/dist/index.js +0 -0
- package/dist/utils/watcher.js +2 -2
- package/package.json +3 -3
- package/preview/package.json +2 -2
- package/source/utils/watcher.ts +2 -2
- package/preview/src/components/kbd.tsx +0 -21
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/utils/watcher.js
CHANGED
|
@@ -16,7 +16,7 @@ exports.watcherInstance = chokidar_1.default.watch(constants_1.CLIENT_EMAILS_PAT
|
|
|
16
16
|
});
|
|
17
17
|
const watcher = () => exports.watcherInstance.on('all', async (event, filename) => {
|
|
18
18
|
if (event === constants_1.EVENT_FILE_DELETED) {
|
|
19
|
-
const file = filename.split(
|
|
19
|
+
const file = filename.split(path_1.default.sep);
|
|
20
20
|
if (file[1] === 'static') {
|
|
21
21
|
if (file[2]) {
|
|
22
22
|
await fs_1.default.promises.rm(path_1.default.join(constants_1.REACT_EMAIL_ROOT, 'public', 'static', file[2]));
|
|
@@ -26,7 +26,7 @@ const watcher = () => exports.watcherInstance.on('all', async (event, filename)
|
|
|
26
26
|
await fs_1.default.promises.rm(path_1.default.join(constants_1.REACT_EMAIL_ROOT, filename));
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
|
-
const file = filename.split(
|
|
29
|
+
const file = filename.split(path_1.default.sep);
|
|
30
30
|
if (file[1] === 'static') {
|
|
31
31
|
await (0, cpy_1.default)(`${constants_1.CLIENT_EMAILS_PATH}/static/${file[2]}`, `${constants_1.REACT_EMAIL_ROOT}/public/static`);
|
|
32
32
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"ora": "5.4.1",
|
|
41
41
|
"read-pkg": "5.2.0",
|
|
42
42
|
"shelljs": "0.8.5",
|
|
43
|
-
"tree-node-cli": "
|
|
43
|
+
"tree-node-cli": "1.6.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "18.11.9",
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"prettier": "2.7.1",
|
|
49
49
|
"ts-node": "10.9.1"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|
package/preview/package.json
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@next/font": "13.0.4",
|
|
19
19
|
"@radix-ui/colors": "0.1.8",
|
|
20
20
|
"@radix-ui/react-collapsible": "1.0.1",
|
|
21
|
-
"@radix-ui/react-popover": "
|
|
21
|
+
"@radix-ui/react-popover": "1.0.2",
|
|
22
22
|
"@radix-ui/react-slot": "1.0.1",
|
|
23
23
|
"@radix-ui/react-toggle-group": "1.0.1",
|
|
24
|
-
"@radix-ui/react-tooltip": "
|
|
24
|
+
"@radix-ui/react-tooltip": "1.0.2",
|
|
25
25
|
"@react-email/render": "0.0.2",
|
|
26
26
|
"classnames": "2.3.2",
|
|
27
27
|
"next": "13.0.4",
|
package/source/utils/watcher.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const watcherInstance = chokidar.watch(CLIENT_EMAILS_PATH, {
|
|
|
19
19
|
export const watcher = () =>
|
|
20
20
|
watcherInstance.on('all', async (event, filename) => {
|
|
21
21
|
if (event === EVENT_FILE_DELETED) {
|
|
22
|
-
const file = filename.split(
|
|
22
|
+
const file = filename.split(path.sep);
|
|
23
23
|
|
|
24
24
|
if (file[1] === 'static') {
|
|
25
25
|
if (file[2]) {
|
|
@@ -32,7 +32,7 @@ export const watcher = () =>
|
|
|
32
32
|
|
|
33
33
|
await fs.promises.rm(path.join(REACT_EMAIL_ROOT, filename));
|
|
34
34
|
} else {
|
|
35
|
-
const file = filename.split(
|
|
35
|
+
const file = filename.split(path.sep);
|
|
36
36
|
|
|
37
37
|
if (file[1] === 'static') {
|
|
38
38
|
await copy(
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface KbdProps { }
|
|
4
|
-
|
|
5
|
-
type KbdElement = React.ElementRef<'kbd'>;
|
|
6
|
-
type RootProps = React.ComponentPropsWithoutRef<'kbd'>;
|
|
7
|
-
|
|
8
|
-
export interface KbdProps extends RootProps { }
|
|
9
|
-
|
|
10
|
-
export const Kbd = React.forwardRef<KbdElement, Readonly<KbdProps>>(
|
|
11
|
-
({ children }, forwardedRef) => (
|
|
12
|
-
<kbd
|
|
13
|
-
ref={forwardedRef}
|
|
14
|
-
className="uppercase bg-slate-7 text-slate-11 rounded-md py-[2px] px-[6px] ml-1 text-xs"
|
|
15
|
-
>
|
|
16
|
-
{children}
|
|
17
|
-
</kbd>
|
|
18
|
-
),
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
Kbd.displayName = 'Kbd';
|