#3520438 Layers now using dndkit!
Closes #3520438
Layers refactored and much improved to use DNDkit.
- Dragon
🐉 Drop is now much smoother in the layers panel. It should be eas(y||ier) to place the items exactly where you like. Moving left to right allows finer control of the nested level when at the bottom of a slot. Flickering when hovering on/near the edge of a valid drop location should be greatly reduced if not eliminated entirely. - Should be able to scroll while dragging - either with the mouse wheel or by moving to the top/bottom of the tree component. (Fixes https://www.drupal.org/project/experience_builder/issues/3498598 and https://www.drupal.org/project/experience_builder/issues/3470603)
- Should not be possible to drag a parent into its child(ren)! When dragging a parent, it and all its descendants will be greyed out and disabled as valid drop targets.
- Fixed a bug where when dragging (either preview or layers) and scrolling the drag operation would be interrupted.
- Fixed [https://www.drupal.org/project/experience_builder/issues/3515836\\] - the drag overlay should now correctly be positioned just to the bottom right of the mouse cursor even if you drag fast.
- Updated a few styles to make things look a bit cleaner.
global-regions.cy.js is failing on head so I don't think that blocks this from being merged.
Edited by Jesse Baker