* Fix issue with very small components
* Add drop area calculation to tree nodes
* Add helper methods to dimension class
* Add drop zone to the sorter
* Change minimum undroppable dimensions
* Add frame and page getters to Component
* Allow to skip dom reset in components
* Add detectDocument option to parser config
* Add __attrToString
* Update all configs in modules to avoid objects by reference
* Add tests to detectDocument
* Unskip some tests
* feat: expose class creation
* test: coverage for data-var using .addCollection
* Cleanup
---------
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>
* Add canMove and getChildren to Sorter
* Make the canvas use Components.canMove function
* Fix StyleManager issue
* Make Sorter dependent on an abstract datastructure
* Remove unneeded properties
* Add drag direction enum
* extract method
* Add default values for the sorter
* reverse avoidSelectOnEnd
* Group related options for the Sorter
* Fix types, and fix canvas sorter
* Add method to clear source element freeze
* Add DropLocationDeterminer class
* Refactor some methods in the sorter
* Refactor endMove method
* Refactor rollback method
* Add DropLocationDeterminer, refactor methods in Sorter class
* Break the sorter into multiple classes
* Fix placeholder class jsdocs
* Fix bug while dropping items near the border
* Refactor DropLocationDeterminer
* Add helping methods to the ComponentSorter
* Remove unwanted fields in DropLocationDeterminer
* Add componentSorter Class
* Refactor DropLocationDeterminer Class
* Rename file
* Fix style manager class
* Move files into a new folder
* Move types to a new file
* Add back the tree class paramater instead of abstract classes
* Fix dropping on the same collection issue
* refactor isInFlow
* Change methods to be accessor methods
* Make component sorter dependant on an abstract node
* Fix bug with dropping into an element with no children
* Fix component layers drag and drop
* Remove the ensure placeholder logic from the StyleManagerSorter
* Refactor event handler types
* export interface SorterEventHandlers
* change to ensurePlaceholderElement method
* Make images droppable
* Add support for dragging and dropping textable components
* Remove container argument from startSort
* Trigger events on starting and ending the dragging
* Add triggering old events and callback functions
* Fix drop issue with the style manager
* Add cancelling the dragging
* Hide placeholder if no target
* Refactor droplocationdeteminer and improve performance
* Fix some bugs
* Fix some callbacks
* trigger 'sorter:drag:validation'
* Disable editable text after dropping
* Remove unused functions
* Fix placeholder direction
* Refactor restnode state
* Run formatter
* Remove unused code and redundent comments
* Fix stack test
* Avoid triggering the drop event twice
* Fix styles being removed when dragging components
* change 'sorter:drag:start' event triggering
* Fix legacyOnMove not being triggered
* Some refactor
* Fix selection after cancelling
* Fix triggering update event without moving any component
* fix the sort of dragged components
* make style manager droppable even if the mouse is outside the continer
* Fix selecting blocks after being dropped
* Fix placeholder for empty containers
* Fix blocks drag cancel issue
* Fix style manager cancel
* Fix autoscroll not stopping issue
* Fix comment components drag
* Fix issue with hidden elements
* Fix selection after dropping
* Format
* Fix position on scroll
* remove console.log
* Change target calculation with scroll
* Fix blocks not activating issue
* Fix block drop in wrapper issue
* Fix dropping multiple components in the same position
* Preserve target canvas spot
* Avoid updating non-text related component on drag/drop
* skip sorter tests
---------
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>
* Fix CLI installation and add Windows compatibility for scripts
* Remove postinstall
---------
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>
* feat: inital move cli to mono-repo
* feat: linting and formatting on cli package
* ci: remove force command
* package: terser-webpack-plugin
* config: ignore local from eslint and prettier
* ci: add seperate runners for each package in monorepo
* fix: point to local grapesjs location vs installed for scripts
* package: move old babel deps back
* config: remove stats.json from eslint
* package: bump and pin all build deps for cli
* test: fix ts errors in cli and global test script
* docs: fix the 404 Github Action build badge in README
Ensure the badge points to the correct Github Action workflow.
* fix: update the Github Action workflow file name to fix the typo
fix: change the job's name