Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Enable Single Product block (#9714)
Browse files Browse the repository at this point in the history
* Enable Single Product block

* Single Product Block: remove experimental build flag
  • Loading branch information
gigitux committed Jun 5, 2023
1 parent 84d70e4 commit b42e231
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bin/webpack-entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion src/BlockTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ protected function get_block_types() {
'ReviewsByProduct',
'RelatedProducts',
'ProductDetails',
'SingleProduct',
'StockFilter',
];

Expand All @@ -224,7 +225,6 @@ protected function get_block_types() {
);

if ( Package::feature()->is_experimental_build() ) {
$block_types[] = 'SingleProduct';
$block_types[] = 'ProductCollection';
$block_types[] = 'ProductTemplate';
}
Expand Down

0 comments on commit b42e231

Please sign in to comment.