diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts index db0adaadc2c..1e1d1cdc542 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts @@ -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, } ); diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts index 32ea7206470..f65b3161419 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts @@ -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, } ); diff --git a/plugins/woocommerce-blocks/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md b/plugins/woocommerce-blocks/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md index d1672c5c664..cf5cb4d3d37 100644 --- a/plugins/woocommerce-blocks/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md +++ b/plugins/woocommerce-blocks/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md @@ -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