Skip to content

v3.1.0 - Strict `Store` usages to the `Core`

Compare
Choose a tag to compare
@jalal246 jalal246 released this 02 Mar 20:25
· 223 commits to main since this release

Use TS with Cypress (#384)

Extract event emitters as functions outside the main class (#390)

Throttle dragged insertion when outside the parent container (#391)

  • Enhance CI jobs: Canclining running CI when updating the PR and adding types and path-ignore.
  • Use extract element visibility to a new function updateElementVisibility.
  • Add a draft new function detectNearestContainer that triggered when dragged is out of the parent container and check for possible new parents.
  • Expose siblingsContainer and setOfTransformedIdsin Draggable.
  • Extract isIDEligible and isIDEligible2Move as utils function outside the class.
  • Fix naming in cleanupDisconnectedElements and isAttachListener
  • Add animatedDraggedInsertionFrame to throttle dragged insertion into the parent container and refactor the tests adding more delay to cover the new throttle.

Refactor comparison to the core instance and extend the mechanism to include both axes (#395)

  • Add a new playground for dealing with horizontal lists.
  • Refactor position comparison to core-instance for more usability. Add a new method isPositionedLeft to check horizontal position.
  • Add new utils to store getBranchHeadAndTail and avoid bugs caused by not checking the availability if there's only one element in the branch.
  • Extract distance calculations methods to a new class. So that calculating x and y can be done separately from the main droppable class.

Refactor measuring distance between elements to include both axes (#396)

Create a new package for shared utilities (#397)

  • Use generic type for axes points to extend the class usages to hold points history and any associated variables.
  • Create new shared utils for shared classes and functions across the project.
  • Refactor branch name to main

Redesign the Store to be fully compatible with core-instance (#398)

Fix Abstract Core interface (#402)