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

Enable Product SKU and Product Stock Indicator in Core #8009

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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