Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #536 +/- ##
=======================================
Coverage 97.43% 97.43%
=======================================
Files 2 2
Lines 78 78
Branches 20 20
=======================================
Hits 76 76
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional Elements example to React Email Editor: generate a welcome email from React, edit it visually, persist the edited design, and export HTML or JSON. The README keeps the editor wrapper as its focus, with a short, self-contained Elements paragraph near the bottom.
Changes
/elementsdemo. The demo saves/reopens edits locally, exposes the React source, and offers HTML/JSON inspection, copying, and downloading.npm startalongsidenpm --prefix demo run dev, using Node 22 from.nvmrc.preparebuild duringnpm ci.<!-- check-docs -->; allow multiple examples and report failures at their original Markdown lines. Use jsdom’s browser storage in tests to avoid the Node 25 native-storage conflict.Validation
All commands below passed on both Node 22.23.3 and Node 25.9.0, after clean installs and without disabling Node’s storage API:
Each runtime passed 12 wrapper tests and 10 demo tests, the production demo build, and both marked documentation examples. Additional checks passed for changed-demo formatting, Context7 schema validation, whitespace, and documentation-checker fixtures (multiple independent examples, ignored fragments, correct error locations, and missing-marker errors).
The demo tests use the real Elements renderer and a mocked hosted-editor boundary. Storage is browser-local; production applications need their own persistence. The narrow
as EmailDesignassertion bridges Elements 0.1.22’s current declarations and uses the same explanation in both examples. Wrapper source and published-package configuration are unchanged.