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): Extracted store/messaging implementation to the separate packages #5894

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

StyleT
Copy link
Contributor

@StyleT StyleT commented Apr 15, 2024

Reasoning:

  • This adds strongly types RPC API for communication between extension surfaces (devtools / injected script / popup / background)
  • It moves store synchronization implementation to the unified transport layer (instead of relying on ad-hoc patches of the existing libraries)
  • We remove code that is unrelated to the Lexical DevTools from the repo to streamline communication stack development and keep examples/tests/infra outside of Lexical. So errors like this one: fix: Firefox XRay vision prevents window<->content script messaging serversideup/webext-bridge#83 can be fixed outside of Lexical.

Copy link

vercel bot commented Apr 15, 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 15, 2024 9:54pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2024 9:54pm

@@ -126,7 +126,6 @@ module.exports = {
rules: {
'accessor-pairs': OFF,

'brace-style': [ERROR, '1tbs'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prettier already enforces this. Removal of this rules prevents eslint and prettier from contradicting each other

Copy link
Contributor

@fantactuka fantactuka left a comment

Choose a reason for hiding this comment

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

Looks great, nice that you don't have to drag messaging methods through components

@StyleT StyleT merged commit 04546e1 into facebook:main Apr 16, 2024
45 checks passed
@acywatson acywatson mentioned this pull request Apr 16, 2024
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.

None yet

3 participants