* Enable Single Product block

* Single Product Block: remove experimental build flag
This commit is contained in:
Luigi Teschio 2023-06-05 14:11:21 +02:00 committed by GitHub
parent 5b862f3fb1
commit 4c3cb1ab17
3 changed files with 2 additions and 5 deletions

View File

@ -64,9 +64,7 @@ const blocks = {
'reviews-by-product': {
customDir: 'reviews/reviews-by-product',
},
'single-product': {
isExperimental: true,
},
'single-product': {},
'stock-filter': {},
'product-collection': {
isExperimental: true,

View File

@ -35,7 +35,6 @@ The majority of our feature flagging is blocks, this is a list of them:
### Experimental flag
- Single Product block ([PHP flag](https://github.com/woocommerce/woocommerce-blocks/blob/cb11cd2537e35561a9c930f893ee72d82ab6bc75/src/BlockTypesController.php#L227) | [webpack flag](https://github.com/woocommerce/woocommerce-blocks/blob/cb11cd2537e35561a9c930f893ee72d82ab6bc75/bin/webpack-entries.js#L68)).
- Product Collection ([PHP flag](https://github.com/woocommerce/woocommerce-blocks/blob/17007169ea5f61e36903d7ca79902794cbb45100/src/BlockTypesController.php#L228) | [webpack flag](https://github.com/woocommerce/woocommerce-blocks/blob/17007169ea5f61e36903d7ca79902794cbb45100/bin/webpack-entries.js#L71-L73)).
- Product Template ([PHP flag](https://github.com/woocommerce/woocommerce-blocks/blob/17007169ea5f61e36903d7ca79902794cbb45100/src/BlockTypesController.php#L229) | [webpack flag](https://github.com/woocommerce/woocommerce-blocks/blob/17007169ea5f61e36903d7ca79902794cbb45100/bin/webpack-entries.js#L74-L76)).
- ⚛️ Add to cart ([JS flag](https://github.com/woocommerce/woocommerce-blocks/blob/dfd2902bd8a247b5d048577db6753c5e901fc60f/assets/js/atomic/blocks/product-elements/add-to-cart/index.ts#L26-L29)).

View File

@ -213,6 +213,7 @@ final class BlockTypesController {
'ReviewsByProduct',
'RelatedProducts',
'ProductDetails',
'SingleProduct',
'StockFilter',
];
@ -224,7 +225,6 @@ final class BlockTypesController {
);
if ( Package::feature()->is_experimental_build() ) {
$block_types[] = 'SingleProduct';
$block_types[] = 'ProductCollection';
$block_types[] = 'ProductTemplate';
}