Skip to content

feat(@lexical/devtools): Extracted store/messaging implementation to the separate packages#5894

Merged
StyleT merged 1 commit intofacebook:mainfrom
StyleT:feature/webext-pegasus
Apr 16, 2024
Merged

feat(@lexical/devtools): Extracted store/messaging implementation to the separate packages#5894
StyleT merged 1 commit intofacebook:mainfrom
StyleT:feature/webext-pegasus

Conversation

@StyleT
Copy link
Copy Markdown
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.

@vercel
Copy link
Copy Markdown

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

rules: {
'accessor-pairs': OFF,

'brace-style': [ERROR, '1tbs'],
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@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

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.

3 participants