-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Panel to Display Props for DevTools Nodes #2803
Add Panel to Display Props for DevTools Nodes #2803
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this! Thanks @noi5e.
(Some small syntax changes but nothing blocking).
packages/lexical-devtools/src/panel/components/InspectedElementProp/index.tsx
Outdated
Show resolved
Hide resolved
packages/lexical-devtools/src/panel/components/InspectedElementProp/index.tsx
Outdated
Show resolved
Hide resolved
packages/lexical-devtools/src/panel/components/InspectedElementView/index.tsx
Outdated
Show resolved
Hide resolved
packages/lexical-devtools/src/panel/components/TreeNode/index.tsx
Outdated
Show resolved
Hide resolved
@thegreatercurve This is merge ready! Took care of all the comments, the CI failure seems unrelated. |
Thanks!
Yes, I'm aware of this, but image nodes currently break DevTools. I think the fix for that should be fairly simple, but haven't looked into it yet. Also it currently only registers one editor instance per page (the first in |
* move devtools code to injected script * correct typescript errors * add CSS for slideout panel * print prop keys + values in InspectedElementView * add css variables for colors * create InspectedElementProp component for onClick inspection * correct TS errors * correct TS error * delete NodeClick and NodeHover handler types * rename InspectedElementProperty to InspectedElementRow * incorporate PR review
Click on a node in DevTools, display its properties in a panel on the righthand side:
DevTools.Props.Panel.mov
Developer Tools Web Extension Planning Issue: #2127