lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Feature: GridSelection separation from lexical core

Open icrosil opened this issue 3 years ago • 1 comments

Why

GridSelection creates unnecessary complexities within code by increasing bundle size and providing functionality that is not required from core use cases. In addition current Selection architecture (BaseSelection, RangeSelection, NodeSelection, GridSelection) used regularly with if conditions and multiple actions based on the selection type.

All of the reasons above are concluding that Selection approach should be refactored with goal of removing GridSelection from core package.

Approach

On internal disucssion with @zurfyx and @fantactuka we've aligned on next steps:

  • gradually moving code away from practices of "| RangeSelection | NodeSelection | GridSelection"
  • removing / deprecating pieces of code that are outdated , or should be covered by one of the selections directly
  • Move GridSelection to a Tables package

Notes

  • Created issue for visibility purpose, so all of upcoming discussions can be done here.
  • All the PRs will be linked here as work will be completed in a several stages.

icrosil avatar Nov 22 '23 17:11 icrosil

i am using lexical version 0.12.5, why can't i find GridSelection and $isGridSelection in lexical/table

HoaPhamThi avatar Dec 27 '23 14:12 HoaPhamThi