Skip to content

Commit f990bb2

Browse files
authored
fix: remaining references to @react-email/components (#3392)
1 parent 57b8b7a commit f990bb2

10 files changed

Lines changed: 10 additions & 17 deletions

File tree

apps/docs/editor/api-reference/compose-react-email.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ default — it adds theme-specific body/container styles and can inject global C
148148

149149
### 7. Render to HTML and plain text
150150

151-
The React tree is rendered to an HTML string using `@react-email/components`' `render()`
151+
The React tree is rendered to an HTML string using `react-email`' `render()`
152152
function. Both the formatted HTML and a plain text version (tags stripped, text preserved)
153153
are produced in parallel from the final React tree.
154154

apps/web/components/code-inline-with-different-colors/inline-styles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const component = (
1414
paddingBottom: 2,
1515
}}
1616
>
17-
@react-email/components
17+
react-email
1818
</CodeInline>{' '}
1919
package
2020
</Text>

apps/web/components/code-inline-with-different-colors/tailwind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const component = (
55
<Text className="text-center">
66
Install the{' '}
77
<CodeInline className="rounded-[6px] bg-green-300 px-[4px] py-[2px]">
8-
@react-email/components
8+
react-email
99
</CodeInline>{' '}
1010
package
1111
</Text>

apps/web/components/simple-code-inline/inline-styles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const component = (
1414
paddingBottom: 2,
1515
}}
1616
>
17-
@react-email/components
17+
react-email
1818
</CodeInline>{' '}
1919
package
2020
</Text>

apps/web/components/simple-code-inline/tailwind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const component = (
55
<Text className="text-center">
66
Install the{' '}
77
<CodeInline className="rounded-[6px] bg-gray-300 px-[4px] py-[2px]">
8-
@react-email/components
8+
react-email
99
</CodeInline>{' '}
1010
package
1111
</Text>

apps/web/src/components/component-code-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function ComponentCodeView({
6767
if (importsReactEmail.length > 0) {
6868
importStatements += `import { ${importsReactEmail.join(
6969
', ',
70-
)} } from "@react-email/components";\n`;
70+
)} } from "react-email";\n`;
7171
}
7272

7373
if (importsReactResponsive.length > 0) {

packages/editor/readme.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ The package exposes multiple entry points for granular imports:
3131
npm install @react-email/editor
3232
```
3333

34-
### Peer Dependencies
35-
36-
- `react` (^18.0 || ^19.0)
37-
- `react-dom` (^18.0 || ^19.0)
38-
- `@react-email/components`
39-
- `@radix-ui/react-popover` (^1.0.0)
40-
4134
## Development
4235

4336
```bash

packages/editor/src/extensions/code-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const CodeBlockPrism = EmailNode.from(
141141
? `${node.attrs.language}`
142142
: 'javascript';
143143

144-
// @ts-expect-error -- @react-email/components does not export theme objects by name; dynamic access needed for user-selected themes
144+
// @ts-expect-error -- react-email does not export theme objects by name; dynamic access needed for user-selected themes
145145
// biome-ignore lint/performance/noDynamicNamespaceImportAccess: dynamic access needed for user-selected themes
146146
const userTheme = ReactEmailComponents[node.attrs?.theme];
147147

packages/ui/src/utils/testing/js-email-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// A simple JavaScript email component
22
const _React = require('react');
3-
const { Html, Button } = require('@react-email/components');
3+
const { Html, Button } = require('react-email');
44

55
function Email() {
66
return (

playground/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a playground for React Email made to experiment with components in realtime.
44

5-
It includes all components directly from source with a path alias import of `@react-email/components` and hot reloading in the `dev` script.
5+
It includes all components directly from source with a path alias import of `react-email` and hot reloading in the `dev` script.
66

77
## Development workflow
88

@@ -11,7 +11,7 @@ It includes all components directly from source with a path alias import of `@re
1111
Create a new file at `playground/emails/testing.tsx`
1212

1313
```tsx emails/testing.tsx
14-
import { Html, Head, Body, Tailwind, Text } from '@react-email/components';
14+
import { Html, Head, Body, Tailwind, Text } from 'react-email';
1515

1616
export default function Testing() {
1717
return <Tailwind>

0 commit comments

Comments
 (0)