3ca799d: Rename @react-email/preview-server -> @react-email/ui.
Same exact code, but with a different name. The equivalent react-email version has also been udpated accordingly. The old @react-email/preview-server will be deprecated.
Update your dependencies -- remove @react-email/preview-server, install @react-email/ui:
- npm install @react-email/preview-server
+ npm install @react-email/ui
d0a7a52: Move all components and utilities into the react-email package
All components (previously in @react-email/components or individual packages like @react-email/button) and rendering utilities (previously in @react-email/render) are now exported directly from react-email. This unifies the install and import experience into a single package.
We're going to deprecate all packages except @react-email/render and @react-email/preview-server, and they will not be updated anymore.
Imports from @react-email/components, @react-email/render, or individual component packages (e.g. @react-email/button) are no longer the recommended path and they will all be deprecated with the exception of @react-email/render and @react-email/editor, and render will remain exported from react-email. Consumers should import everything from react-email.
Having separate packages for components (@react-email/components), and the CLI (react-email) created unnecessary confusion, and a maintenance burden for us.
Update your dependencies -- remove @react-email/components, keep react-email:
- npm install @react-email/components react-email @react-email/preview-server
+ npm install react-email @react-email/preview-server
Update your imports:
- import { Button, Html, Head, render } from "@react-email/components";
+ import { Button, Html, Head, render } from "react-email";
The @react-email/preview-server and @react-email/editor packages are not included in react-email
url.parse() with WHATWG URL API in the preview dev server.getEmailHTML() and getEmailText() to EmailEditorRef, remove getHTML(), rename onChange to onUpdateonUploadImage prop to EmailEditor and merge image paste/drop handlers into a single pluginThemeConfig API for custom themingchildren prop to EmailEditor for composing UI like the Inspector sidebar inside the editor context<table> instead of Section to fix invalid <tr> inside <td> nesting in email outputEmailEditor's onReady callback with onUpdate so it receives EmailEditorRefInspectorBreadcrumbSegment.node is now always a FocusedNode; exports getNodeMeta for custom breadcrumb label/icon mapping.SlashCommand.Root into SlashCommand and stop exporting internal CommandList/CommandListProps. Replace <SlashCommand.Root ...> with <SlashCommand ...>.getEmailHTML() and getEmailText() to EmailEditorRef, remove getHTML(), rename onChange to onUpdate<table> instead of Section to fix invalid <tr> inside <td> nesting in email outputEmailEditor's onReady callback with onUpdate so it receives EmailEditorRefonUploadImage prop to EmailEditor and merge image paste/drop handlers into a single pluginSlashCommand.Root into SlashCommand and stop exporting internal CommandList/CommandListProps. Replace <SlashCommand.Root ...> with <SlashCommand ...>.
children prop to EmailEditor for composing UI like the Inspector sidebar inside the editor contextgetEmailHTML() and getEmailText() to EmailEditorRef, remove getHTML(), rename onChange to onUpdate<table> instead of Section to fix invalid <tr> inside <td> nesting in email outputEmailEditor's onReady callback with onUpdate so it receives EmailEditorRef3ca799d: Rename @react-email/preview-server -> @react-email/ui.
Same exact code, but with a different name. The equivalent react-email version has also been udpated accordingly. The old @react-email/preview-server will be deprecated.
Update your dependencies -- remove @react-email/preview-server, install @react-email/ui:
- npm install @react-email/preview-server
+ npm install @react-email/ui
onUploadImage prop to EmailEditor and merge image paste/drop handlers into a single pluginSlashCommand.Root into SlashCommand and stop exporting internal CommandList/CommandListProps. Replace <SlashCommand.Root ...> with <SlashCommand ...>.
d0a7a52: Move all components and utilities into the react-email package
All components (previously in @react-email/components or individual packages like @react-email/button) and rendering utilities (previously in @react-email/render) are now exported directly from react-email. This unifies the install and import experience into a single package.
We're going to deprecate all packages except @react-email/render and @react-email/preview-server, and they will not be updated anymore.
Imports from @react-email/components, @react-email/render, or individual component packages (e.g. @react-email/button) are no longer the recommended path and they will all be deprecated with the exception of @react-email/render and @react-email/editor, and render will remain exported from react-email. Consumers should import everything from react-email.
Having separate packages for components (@react-email/components), and the CLI (react-email) created unnecessary confusion, and a maintenance burden for us.
Update your dependencies -- remove @react-email/components, keep react-email:
- npm install @react-email/components react-email @react-email/preview-server
+ npm install react-email @react-email/preview-server
Update your imports:
- import { Button, Html, Head, render } from "@react-email/components";
+ import { Button, Html, Head, render } from "react-email";
The @react-email/preview-server and @react-email/editor packages are not included in react-email
url.parse() with WHATWG URL API in the preview dev server.children prop to EmailEditor for composing UI like the Inspector sidebar inside the editor context