Skip to content

feat(editor): add inspector controllers#3174

Open
joaopcm wants to merge 1 commit intofeat/inspector-components-sectionsfrom
feat/inspector-controllers
Open

feat(editor): add inspector controllers#3174
joaopcm wants to merge 1 commit intofeat/inspector-components-sectionsfrom
feat/inspector-controllers

Conversation

@joaopcm
Copy link
Copy Markdown
Member

@joaopcm joaopcm commented Apr 2, 2026

Summary

  • Ports 3 inspector controllers (global, local, text) from feat(editor): inspector #3107
  • Updates Inspector public API to export Global, Local, Text controllers
  • All @/ imports remapped to relative paths
  • Removed social-links and fallback section references (excluded sections)
  • GlobalCSSPanel import removed (panels not yet ported)

Stacks on #3173


Summary by cubic

Adds theme-aware Inspector controllers—Inspector.Global, Inspector.Local, and Inspector.Text—with collapsible sections and per-node layouts. Controllers are exported on Inspector for use in the editor UI.

  • New Features
    • Global: shows all theme-default props (numbers use placeholders); upserts missing props using theme/property metadata; single/batch updates; reset to theme defaults; optional showSectionIds.
    • Local: per-node layouts with default-expanded sections; edit attributes and styles (shorthands expanded, theme defaults merged); alignment/link/size/padding/background/border; image width/height as attrs; columnsColumn toggles flex when width is set; “Other styles” editor; link-aware color; document color presets.
    • Text: typography/marks/lists; add/remove link mark with link-aware color; applies color at block when node-selected or cursor-collapsed; block padding/background/border controls; document color presets.

Written for commit eff7341. Summary will update on new commits.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Apr 2, 2026 8:54pm
react-email-demo Ready Ready Preview, Comment Apr 2, 2026 8:54pm
react-email-examples Ready Ready Preview, Comment Apr 2, 2026 8:54pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

⚠️ No Changeset found

Latest commit: eff7341

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from d898dcd to 1aa965d Compare April 2, 2026 19:03
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 5912ca9 to 1c1ff64 Compare April 2, 2026 19:03
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from 1aa965d to d5ce875 Compare April 2, 2026 19:10
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 1c1ff64 to ff23dac Compare April 2, 2026 19:10
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch 2 times, most recently from 200b14b to 4271295 Compare April 2, 2026 19:20
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from ff23dac to 3f8a2d9 Compare April 2, 2026 19:20
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from 4271295 to b402c12 Compare April 2, 2026 19:23
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 3f8a2d9 to 115d7ae Compare April 2, 2026 19:23
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from beecd99 to ab6139c Compare April 2, 2026 19:49
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from f51d487 to 637a05a Compare April 2, 2026 19:49
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from ab6139c to 4b23c3e Compare April 2, 2026 19:57
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 637a05a to 9198b90 Compare April 2, 2026 19:57
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from 4b23c3e to 7ca68e6 Compare April 2, 2026 20:03
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 9198b90 to 4888ff6 Compare April 2, 2026 20:04
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from 7ca68e6 to 712022f Compare April 2, 2026 20:06
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 4888ff6 to 0d113e8 Compare April 2, 2026 20:06
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from 712022f to 329d4e4 Compare April 2, 2026 20:10
@joaopcm joaopcm force-pushed the feat/inspector-controllers branch from 0d113e8 to 927ea64 Compare April 2, 2026 20:10
@joaopcm joaopcm force-pushed the feat/inspector-components-sections branch from 329d4e4 to 9a02724 Compare April 2, 2026 20:12
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@react-email/editor@3174

commit: eff7341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant