Enable Product SKU and Product Stock Indicator in Core (https://github.com/woocommerce/woocommerce-blocks/pull/8009)
This commit is contained in:
parent
0a026ed81c
commit
a6c30f3c70
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
|
||||
import { registerBlockType } from '@wordpress/blocks';
|
||||
import type { BlockConfiguration } from '@wordpress/blocks';
|
||||
|
||||
/**
|
||||
|
@ -31,7 +31,7 @@ const blockConfig: BlockConfiguration = {
|
|||
edit,
|
||||
};
|
||||
|
||||
registerFeaturePluginBlockType( 'woocommerce/product-sku', {
|
||||
registerBlockType( 'woocommerce/product-sku', {
|
||||
...sharedConfig,
|
||||
...blockConfig,
|
||||
} );
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
|
||||
import { registerBlockType } from '@wordpress/blocks';
|
||||
import type { BlockConfiguration } from '@wordpress/blocks';
|
||||
|
||||
/**
|
||||
|
@ -35,6 +35,6 @@ const blockConfig: BlockConfiguration = {
|
|||
],
|
||||
};
|
||||
|
||||
registerFeaturePluginBlockType( 'woocommerce/product-stock-indicator', {
|
||||
registerBlockType( 'woocommerce/product-stock-indicator', {
|
||||
...blockConfig,
|
||||
} );
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue