-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[PR 1] Swap instance selection for BaseSelection in most cases #5280
[PR 1] Swap instance selection for BaseSelection in most cases #5280
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
…exical-core-baseselection
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 one 👍
selection.add(key); | ||
} else { | ||
selection.delete(key); | ||
if ($isNodeSelection(selection)) { |
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.
It should already be node selection at this point, right?
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.
yes, although flow was still complaining at this point.
packages/lexical-selection/src/__tests__/unit/LexicalSelectionHelpers.test.ts
Outdated
Show resolved
Hide resolved
packages/lexical/src/nodes/__tests__/unit/LexicalElementNode.test.tsx
Outdated
Show resolved
Hide resolved
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.
Great work, added some nit comments but I love what I'm seeing here! Thanks for taking the lead on this on this major refactor
Why
In #5276 we proposed a solution on how to migrate GridSelection out of the core of the bundle, here is the first step by removing type usage to the BaseSelection where all type of selections could be added
What
| GridSelection | RangeSelection | NodeSelection
for BaseSelection