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

Allow excluding specific properties from collab syncing via plugin #4275

Merged
merged 5 commits into from
Apr 7, 2023

Conversation

acywatson
Copy link
Contributor

@acywatson acywatson commented Apr 6, 2023

Moves excluded properties to the Binding to avoid sharing them across plugin instances, allows scoping ignored properties to the node, reducing the likelihood of collisions.

Fixes #3670

@vercel
Copy link

vercel bot commented Apr 6, 2023

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 6, 2023 4:48pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2023 4:48pm

@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 Apr 6, 2023
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 26.94 KB (0%) 539 ms (0%) 106 ms (+16.59% 🔺) 645 ms
packages/lexical-rich-text/dist/LexicalRichText.js 37.8 KB (0%) 757 ms (0%) 77 ms (+42.08% 🔺) 833 ms
packages/lexical-plain-text/dist/LexicalPlainText.js 37.78 KB (0%) 756 ms (0%) 93 ms (-29.82% 🔽) 849 ms

packages/lexical-yjs/src/Utils.ts Show resolved Hide resolved
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.

🚀

@@ -31,6 +31,7 @@ import {
REDO_COMMAND,
UNDO_COMMAND,
} from 'lexical';
import {ExcludedProperties} from 'packages/lexical-yjs/src/Bindings';
Copy link
Collaborator

Choose a reason for hiding this comment

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

This references “src”?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ugh, auto-import...good catch. Wonder why integrity job passed...

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.

Feature: make excluded properties from yjs sync configurable
5 participants