Skip to content
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

Merged
merged 9 commits into from
Apr 2, 2024

Conversation

StyleT
Copy link
Contributor

@StyleT StyleT commented Mar 20, 2024

Scaffolding Includes:

Out of scope:

  • Actual Tree View component
  • Publishing pipeline
  • Tests

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

Copy link

vercel bot commented Mar 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2024 6:06pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2024 6:06pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 20, 2024
@StyleT StyleT force-pushed the feature/devtools_extension branch from 2502b3d to b0105b1 Compare March 20, 2024 21:44
@StyleT StyleT force-pushed the feature/devtools_extension branch from 11f5e69 to 4aa3be8 Compare March 20, 2024 22:14
@StyleT StyleT force-pushed the feature/devtools_extension branch from 4aa3be8 to bc44908 Compare March 21, 2024 00:02
@StyleT StyleT force-pushed the feature/devtools_extension branch from bc44908 to 7b51f73 Compare March 21, 2024 18:10
@StyleT StyleT force-pushed the feature/devtools_extension branch from 7b51f73 to c8a3f4f Compare March 21, 2024 19:32
@StyleT StyleT force-pushed the feature/devtools_extension branch from c8a3f4f to 081f600 Compare March 21, 2024 19:39
@StyleT StyleT force-pushed the feature/devtools_extension branch from 081f600 to 1221bf7 Compare March 21, 2024 19:46
@StyleT StyleT force-pushed the feature/devtools_extension branch from 1221bf7 to e803b2e Compare March 21, 2024 21:56
// $ 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 =
Copy link
Contributor

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?

Copy link
Contributor Author

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

acywatson
acywatson previously approved these changes Apr 1, 2024
Copy link
Contributor

@acywatson acywatson left a 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[];
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants