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

Commit

Permalink
Enable Product SKU and Product Stock Indicator in Core (#8009)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Dec 21, 2022
1 parent a20c1f7 commit 2ff5202
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/sku/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
import { registerBlockType } from '@wordpress/blocks';
import type { BlockConfiguration } from '@wordpress/blocks';

/**
Expand Down Expand Up @@ -31,7 +31,7 @@ const blockConfig: BlockConfiguration = {
edit,
};

registerFeaturePluginBlockType( 'woocommerce/product-sku', {
registerBlockType( 'woocommerce/product-sku', {
...sharedConfig,
...blockConfig,
} );
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
import { registerBlockType } from '@wordpress/blocks';
import type { BlockConfiguration } from '@wordpress/blocks';

/**
Expand Down Expand Up @@ -35,6 +35,6 @@ const blockConfig: BlockConfiguration = {
],
};

registerFeaturePluginBlockType( 'woocommerce/product-stock-indicator', {
registerBlockType( 'woocommerce/product-stock-indicator', {
...blockConfig,
} );
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ The majority of our feature flagging is blocks, this is a list of them:

### Feature plugin flag

- ⚛️ Product SKU ([JS flag](https://github.com/woocommerce/woocommerce-blocks/blob/4c18b1ff8511ede063e2082316a68eddc8231b51/assets/js/atomic/blocks/product-elements/sku/index.ts#L34)).
- ⚛️ Product stock indicator ([JS flag](https://github.com/woocommerce/woocommerce-blocks/blob/4c18b1ff8511ede063e2082316a68eddc8231b51/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts#L38)).

### Experimental flag

Expand Down

0 comments on commit 2ff5202

Please sign in to comment.