From 0860aef2adbf10fc3b0d5d4641dffa8bb90fbaf1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 26 Jan 2023 17:40:55 +0100 Subject: [PATCH] Release: 9.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8303) * Empty commit for release pull request * add testing instructions * add zip file for testing * update readme * upload new zip * Bumping version strings to new version. * Empty commit for release pull request * Remove feature flag from Element variations (https://github.com/woocommerce/woocommerce-blocks/pull/8297) Removes feature flag from: * Product Summary * Product Template * Product Title * Empty commit for release pull request * add testing instructions * add zip link for testing * Bumping version strings to new version. Co-authored-by: github-actions Co-authored-by: Luigi Co-authored-by: Lucio Giannotta --- .../variations/elements/product-summary.tsx | 15 ++++++------- .../variations/elements/product-template.tsx | 21 ++++++++----------- .../variations/elements/product-title.tsx | 15 ++++++------- .../testing/releases/942.md | 13 ++++++++++++ .../testing/releases/README.md | 2 ++ plugins/woocommerce-blocks/package.json | 2 +- plugins/woocommerce-blocks/readme.txt | 8 ++++++- plugins/woocommerce-blocks/src/Package.php | 2 +- .../woocommerce-gutenberg-products-block.php | 2 +- 9 files changed, 46 insertions(+), 34 deletions(-) create mode 100644 plugins/woocommerce-blocks/docs/internal-developers/testing/releases/942.md diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-summary.tsx b/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-summary.tsx index 69e0f33f775..6103789356f 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-summary.tsx +++ b/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-summary.tsx @@ -1,7 +1,6 @@ /** * External dependencies */ -import { isFeaturePluginBuild } from '@woocommerce/block-settings'; import { Icon } from '@wordpress/components'; import { BLOCK_DESCRIPTION, @@ -17,11 +16,9 @@ import { registerElementVariation } from './utils'; export const CORE_NAME = 'core/post-excerpt'; export const VARIATION_NAME = 'woocommerce/product-query/product-summary'; -if ( isFeaturePluginBuild() ) { - registerElementVariation( CORE_NAME, { - blockDescription: BLOCK_DESCRIPTION, - blockIcon: , - blockTitle: BLOCK_TITLE, - variationName: VARIATION_NAME, - } ); -} +registerElementVariation( CORE_NAME, { + blockDescription: BLOCK_DESCRIPTION, + blockIcon: , + blockTitle: BLOCK_TITLE, + variationName: VARIATION_NAME, +} ); diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-template.tsx b/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-template.tsx index 60eead256f5..e234c006a9f 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-template.tsx +++ b/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-template.tsx @@ -1,7 +1,6 @@ /** * External dependencies */ -import { isFeaturePluginBuild } from '@woocommerce/block-settings'; import { Icon } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { layout } from '@wordpress/icons'; @@ -14,14 +13,12 @@ import { registerElementVariation } from './utils'; export const CORE_NAME = 'core/post-template'; export const VARIATION_NAME = 'woocommerce/product-query/product-template'; -if ( isFeaturePluginBuild() ) { - registerElementVariation( CORE_NAME, { - blockDescription: __( - 'Contains the block elements used to render a product, like its name, featured image, rating, and more.', - 'woo-gutenberg-products-block' - ), - blockIcon: , - blockTitle: __( 'Product template', 'woo-gutenberg-products-block' ), - variationName: VARIATION_NAME, - } ); -} +registerElementVariation( CORE_NAME, { + blockDescription: __( + 'Contains the block elements used to render a product, like its name, featured image, rating, and more.', + 'woo-gutenberg-products-block' + ), + blockIcon: , + blockTitle: __( 'Product template', 'woo-gutenberg-products-block' ), + variationName: VARIATION_NAME, +} ); diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-title.tsx b/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-title.tsx index 98e16e4e725..40bab90a607 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-title.tsx +++ b/plugins/woocommerce-blocks/assets/js/blocks/product-query/variations/elements/product-title.tsx @@ -1,7 +1,6 @@ /** * External dependencies */ -import { isFeaturePluginBuild } from '@woocommerce/block-settings'; import { Icon } from '@wordpress/components'; import { BLOCK_DESCRIPTION, @@ -17,11 +16,9 @@ import { registerElementVariation } from './utils'; export const CORE_NAME = 'core/post-title'; export const VARIATION_NAME = 'woocommerce/product-query/product-title'; -if ( isFeaturePluginBuild() ) { - registerElementVariation( CORE_NAME, { - blockDescription: BLOCK_DESCRIPTION, - blockIcon: , - blockTitle: BLOCK_TITLE, - variationName: VARIATION_NAME, - } ); -} +registerElementVariation( CORE_NAME, { + blockDescription: BLOCK_DESCRIPTION, + blockIcon: , + blockTitle: BLOCK_TITLE, + variationName: VARIATION_NAME, +} ); diff --git a/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/942.md b/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/942.md new file mode 100644 index 00000000000..79b0c6f5ffc --- /dev/null +++ b/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/942.md @@ -0,0 +1,13 @@ +# Testing notes and ZIP for release 9.4.2 + +Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/10509889/woocommerce-gutenberg-products-block.zip) + +## Feature plugin and package inclusion in WooCommerce + +### Product Elements: remove feature plugin flag from Product Title, Product Summary and Product Template block. ([8297](https://github.com/woocommerce/woocommerce-blocks/pull/8297)) + +![image](https://user-images.githubusercontent.com/4463174/214850173-03741940-c965-47bd-a2f1-05853f8984f1.png) + + +1. Add the "Products (Beta)" in a post/page. +2. Be sure that has the inner blocks: "Product Template, "Product Image", "Product Title", "Product Price", "Add to Cart Button" as the image above. diff --git a/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/README.md b/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/README.md index 3e36f630747..4dee926530a 100644 --- a/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/README.md +++ b/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/README.md @@ -115,6 +115,8 @@ Every release includes specific testing instructions for new features and bug fi - [9.2.0](./920.md) - [9.3.0](./930.md) - [9.4.0](./940.md) + - [9.4.1](./941.md) + - [9.4.2](./942.md) diff --git a/plugins/woocommerce-blocks/package.json b/plugins/woocommerce-blocks/package.json index 53cc39c238e..36c6bcd4c43 100644 --- a/plugins/woocommerce-blocks/package.json +++ b/plugins/woocommerce-blocks/package.json @@ -2,7 +2,7 @@ "name": "@woocommerce/block-library", "title": "WooCommerce Blocks", "author": "Automattic", - "version": "9.4.1", + "version": "9.4.2", "description": "WooCommerce blocks for the Gutenberg editor.", "homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/", "keywords": [ diff --git a/plugins/woocommerce-blocks/readme.txt b/plugins/woocommerce-blocks/readme.txt index 3c604292dfd..c8d92cac002 100644 --- a/plugins/woocommerce-blocks/readme.txt +++ b/plugins/woocommerce-blocks/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.2 -Stable tag: 9.4.1 +Stable tag: 9.4.2 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -80,6 +80,12 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/ == Changelog == += 9.4.2 - 2023-01-26 = + +#### Bug Fixes + +Product Elements: remove feature plugin flag from Product Title, Product Summary and Product Template block. ([8297](https://github.com/woocommerce/woocommerce-blocks/pull/8297)) + = 9.4.1 - 2023-01-23 = #### Bug Fixes diff --git a/plugins/woocommerce-blocks/src/Package.php b/plugins/woocommerce-blocks/src/Package.php index f750f35f6de..c788be6999e 100644 --- a/plugins/woocommerce-blocks/src/Package.php +++ b/plugins/woocommerce-blocks/src/Package.php @@ -109,7 +109,7 @@ class Package { NewPackage::class, function ( $container ) { // leave for automated version bumping. - $version = '9.4.1'; + $version = '9.4.2'; return new NewPackage( $version, dirname( __DIR__ ), diff --git a/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php b/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php index 75244e8a69f..1db169cf92d 100644 --- a/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php +++ b/plugins/woocommerce-blocks/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.4.1 + * Version: 9.4.2 * Author: Automattic * Author URI: https://woocommerce.com * Text Domain: woo-gutenberg-products-block