diff --git a/assets/js/atomic/blocks/product-elements/sku/index.ts b/assets/js/atomic/blocks/product-elements/sku/index.ts index db0adaadc2c..1e1d1cdc542 100644 --- a/assets/js/atomic/blocks/product-elements/sku/index.ts +++ b/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/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts b/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts index 32ea7206470..f65b3161419 100644 --- a/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts +++ b/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/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md b/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md index d1672c5c664..cf5cb4d3d37 100644 --- a/docs/internal-developers/blocks/feature-flags-and-experimental-interfaces.md +++ b/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 diff --git a/docs/internal-developers/testing/releases/913.md b/docs/internal-developers/testing/releases/913.md new file mode 100644 index 00000000000..67d3c278370 --- /dev/null +++ b/docs/internal-developers/testing/releases/913.md @@ -0,0 +1,11 @@ +# Testing notes and ZIP for release 9.1.3 + +Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/10279222/woocommerce-gutenberg-products-block.zip) + +## Feature plugin and package inclusion in WooCommerce + +### Enable Product SKU and Product Stock Indicator in Core ([8009](https://github.com/woocommerce/woocommerce-blocks/pull/8009)) + +1. Create a post or page and add the Products (Beta) block. +2. Be sure that Product SKU and Product Stock Indicator blocks are visible and can be added. + diff --git a/docs/internal-developers/testing/releases/README.md b/docs/internal-developers/testing/releases/README.md index e9f23aae706..b3e7761ddd9 100644 --- a/docs/internal-developers/testing/releases/README.md +++ b/docs/internal-developers/testing/releases/README.md @@ -109,6 +109,7 @@ Every release includes specific testing instructions for new features and bug fi - [9.1.0](./910.md) - [9.1.1](./911.md) - [9.1.2](./912.md) + - [9.1.3](./913.md) diff --git a/package.json b/package.json index 0e4b9922a8c..a6d9141f523 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@woocommerce/block-library", "title": "WooCommerce Blocks", "author": "Automattic", - "version": "9.1.2", + "version": "9.1.3", "description": "WooCommerce blocks for the Gutenberg editor.", "homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/", "keywords": [ diff --git a/readme.txt b/readme.txt index 7b75f65ff1f..35e283a556f 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks Requires at least: 6.1.1 Tested up to: 6.1.1 Requires PHP: 7.0 -Stable tag: 9.1.2 +Stable tag: 9.1.3 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -79,6 +79,12 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/ == Changelog == += 9.1.3 - 2022-12-21 = + +#### Enhancements + +- Enable Product SKU and Product Stock Indicator in Core ([8009](https://github.com/woocommerce/woocommerce-blocks/pull/8009)) + = 9.1.2 - 2022-12-21 = #### Enhancements diff --git a/src/Package.php b/src/Package.php index e100c642725..3966881850e 100644 --- a/src/Package.php +++ b/src/Package.php @@ -109,7 +109,7 @@ public static function container( $reset = false ) { NewPackage::class, function ( $container ) { // leave for automated version bumping. - $version = '9.1.2'; + $version = '9.1.3'; return new NewPackage( $version, dirname( __DIR__ ), diff --git a/woocommerce-gutenberg-products-block.php b/woocommerce-gutenberg-products-block.php index 9cc22448020..6a8767aa2a7 100644 --- a/woocommerce-gutenberg-products-block.php +++ b/woocommerce-gutenberg-products-block.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Blocks * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block * Description: WooCommerce blocks for the Gutenberg editor. - * Version: 9.1.2 + * Version: 9.1.3 * Author: Automattic * Author URI: https://woocommerce.com * Text Domain: woo-gutenberg-products-block