Thomas Roberts
fbe6b6127b
Refactor `useForcedLayout` to subscribe to store changes and to batch block insertions ( https://github.com/woocommerce/woocommerce-blocks/pull/7879 )
...
* Add type for lock attribute in isBlockLocked
* Add getMissingBlocks function
* Add findBlockPosition function
* Refactor useForcedLayout to use registry batch & insert multiple blocks
* Improve comment on getMissingBlocks function
2022-12-14 07:54:59 -08:00
Thomas Roberts
45542bb86a
Revert "Fix `useForcedLayout` to re-select inner blocks after we manually insert one ( https://github.com/woocommerce/woocommerce-blocks/pull/6676 )" ( https://github.com/woocommerce/woocommerce-blocks/pull/7447 )
...
This reverts commit 25e24708b5
.
2022-10-21 16:03:14 +01:00
Seghir Nadir
6b00017b12
Add temporary workaround to fix inserting Cart block in WordPress.com ( https://github.com/woocommerce/woocommerce-blocks/pull/7367 )
...
* remove problematic actions as deps
* add inline docs
* add todo comment
2022-10-11 18:04:55 +01:00
Thomas Roberts
25e24708b5
Fix `useForcedLayout` to re-select inner blocks after we manually insert one ( https://github.com/woocommerce/woocommerce-blocks/pull/6676 )
...
* Track most recent inner blocks in useForcedLayout
* Force useSelect to re-select when we know innerBlocks has changed
* Rename mapSelect back to select
* Add forcedBlocksInserted to callback deps
2022-10-07 06:15:53 -07:00
Michael P. Pfeiffer
521f93619b
Upgrade wp-prettier to 2.6.2 and reformat the codebase ( https://github.com/woocommerce/woocommerce-blocks/pull/6566 )
...
* Remove mixed tabs and spaces in tsconfig.json
* Update formatting in json files
* Upgrade wp-prettier to 2.6.2
2022-06-15 11:56:52 +02:00
Alex Florisca
0c7c2db6c0
Update @woocmmerce/eslint-plugin to 2.0.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/6203 )
...
* Update @woocmmerce/eslint-plugin to 2.0.0
* Fixed some eslint errors
* Fix syntax errors
* Fix most linting errors
* Feedback changes
* Fix one more eslint issue
2022-04-08 14:47:19 +01:00
Alex Florisca
e37b787e50
Move mini cart outside cart-checkout folder ( https://github.com/woocommerce/woocommerce-blocks/pull/6192 )
...
* Move shared folder to /blocks
* Moved mini-cart block in blocks dir:
* Rename shared folder to cart-checkout-shared
* Remove customDir from mini-cart webpack entry
* Update assets/js/base/context/tsconfig.json
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
* Feedback changes
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2022-04-07 14:47:58 +01:00