@react-email/body 0.0.2 → 0.0.3

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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
 
3
- declare type RootProps = React.ComponentPropsWithoutRef<"body">;
3
+ type RootProps = React.ComponentPropsWithoutRef<"body">;
4
4
  interface BodyProps extends RootProps {
5
5
  }
6
6
  declare const Body: React.FC<Readonly<BodyProps>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/body",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A React body component to wrap emails",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -9,6 +9,18 @@
9
9
  "files": [
10
10
  "dist/**"
11
11
  ],
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.mjs"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ }
22
+ }
23
+ },
12
24
  "license": "MIT",
13
25
  "scripts": {
14
26
  "build": "tsup src/index.ts --format esm,cjs --dts --external react",
@@ -24,16 +36,19 @@
24
36
  "react": "18.2.0"
25
37
  },
26
38
  "devDependencies": {
27
- "@babel/preset-react": "7.18.6",
39
+ "@babel/core": "7.21.8",
40
+ "@babel/preset-react": "7.22.5",
41
+ "@react-email/render": "0.0.6",
42
+ "@types/jest": "29.5.3",
28
43
  "@types/react": "18.0.20",
29
44
  "@types/react-dom": "18.0.6",
30
45
  "babel-jest": "28.1.3",
31
- "eslint": "8.23.1",
46
+ "eslint": "8.45.0",
32
47
  "jest": "28.1.3",
33
- "prettier": "2.8.4",
48
+ "prettier": "3.0.0",
34
49
  "ts-jest": "28.0.8",
35
50
  "tsup": "6.2.3",
36
- "typescript": "4.8.3"
51
+ "typescript": "5.1.6"
37
52
  },
38
53
  "publishConfig": {
39
54
  "access": "public"
package/readme.md CHANGED
@@ -1,4 +1,4 @@
1
- ![React Email HTML cover](https://react.email/static/images/readme/covers/html.png)
1
+ ![React Email HTML cover](https://react.email/static/covers/html.png)
2
2
 
3
3
  <div align="center"><strong>@react-email/body</strong></div>
4
4
  <div align="center">A React body component to wrap emails.</div>
@@ -55,9 +55,9 @@ const Email = () => {
55
55
 
56
56
  This component was tested using the most popular email clients.
57
57
 
58
- | <img src="https://react.email/static/images/readme/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://react.email/static/images/readme/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://react.email/static/images/readme/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://react.email/static/images/readme/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://react.email/static/images/readme/icons/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://react.email/static/images/readme/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> |
59
- | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
60
- | Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
58
+ | <img src="https://react.email/static/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://react.email/static/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://react.email/static/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://react.email/static/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://react.email/static/icons/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://react.email/static/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> |
59
+ | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
60
+ | Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
61
61
 
62
62
  ## License
63
63