-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(@lexical/devtools): Added basic extension scaffolding #5747
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
2502b3d
to
b0105b1
Compare
11f5e69
to
4aa3be8
Compare
4aa3be8
to
bc44908
Compare
bc44908
to
7b51f73
Compare
7b51f73
to
c8a3f4f
Compare
c8a3f4f
to
081f600
Compare
081f600
to
1221bf7
Compare
1221bf7
to
e803b2e
Compare
// $ openssl rsa -in key.pem -pubout -outform DER | openssl base64 -A # this key below (strip % at the end) | ||
// $ openssl rsa -in key.pem -pubout -outform DER | shasum -a 256 | head -c32 | tr 0-9a-f a-p # extension ID | ||
// @ts-expect-error https://github.com/wxt-dev/wxt/issues/521#issuecomment-1978147707 | ||
manifestConf.key = |
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.
Where's the PK stored?
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.
Nowhere as it's not needed for dev purposes. We'll use GitHub Secrets for publishing
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.
nice
// TODO: refresh editors present of the page | ||
const lexicalNodes = Array.from( | ||
document.querySelectorAll('div[data-lexical-editor]').values(), | ||
) as LexicalHTMLElement[]; |
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.
Might be worth a filter here (maybe with a type guard that validates everything at runtime instead of casting) since a SSR-rendered editor (and possibly other scenarios) could leave a residual data prop but no attached LexicalEditor?
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.
Updated!
01d2deb
to
ef96981
Compare
Includes: - Extension with TS/React support - HMR for extension panels and fast reload for other configs - Dev mode with browser auto-start with dedicated profile
…op/start within store
…l Panel Lexical state shown in devtools panel
…efactoring feat: webext-zustand broken onto several files
ecee240
to
b32d824
Compare
Scaffolding Includes:
Out of scope:
Demo in Chrome:
Screen.Recording.2024-03-26.at.7.57.02.PM.1.mov
Demo in Firefox:
Screen.Recording.2024-03-26.at.8.15.14.PM.mov
DevX demo:
Screen.Recording.2024-03-26.at.9.06.13.PM.mov