Repository navigation
Conversation
Introduces a batteries-included EmailEditor component that wraps EditorProvider with all default UI pre-wired (bubble menus, slash command, theming). Adds root package export and build entry point.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
|
Auto-merge enabled (squash) via PR Sentinel. |
Summary
Introduces a batteries-included
EmailEditorcomponent that wraps TipTap'sEditorProviderwith all default UI pre-wired — bubble menus, slash command, and theming.The component uses a
RefBridgepattern to exposeexport(),getJSON(),getHTML(), and the raweditorinstance viaReact.forwardRef. Props cover content,onChange/onReadycallbacks, image upload, theme (basic/minimal), editability, placeholder, bubble menu exclusions, and custom extensions.Also adds a root
"."export entry inpackage.jsonand a matching build entry point intsdown.config.ts, so consumers canimport { EmailEditor } from '@react-email/editor'directly.Testing steps
EmailEditorfrom@react-email/editor(root export) and verify it resolves correctlyEmailEditorwith default props and confirm bubble menus, slash command, and theming workthemebetweenbasicandminimaland verify the editor remounts with the correct themerefand callexport(),getJSON(),getHTML()— verify they return expected outputextensionsprop and confirm it overrides the defaults entirelyonReadyandonChangecallbacks fire at the expected timeseditable={false}disables editingdist/index.mjsanddist/index.cjsSummary by cubic
Adds a batteries‑included
EmailEditorthat wraps TipTap’sEditorProviderwith default UI and a simple ref API. Also adds “One‑Line Editor” examples (minimal and full) to demo theme switching and ref methods for PRODUCT‑1690.New Features
StarterKit,UndoRedo, theming (basic/minimal), and default CSS.export(),getJSON(),getHTML(), pluseditor.content,onChange/onReady,onUploadImage(paste/drop),editable,placeholder, bubble menu exclusions,extensions,className.Migration
import { EmailEditor } from '@react-email/editor'.extensionsreplaces the defaults.themeto remount withbasicorminimal.Written for commit bb8ac67. Summary will update on new commits.