Removes feature flag from:

* Product Summary
* Product Template
* Product Title
This commit is contained in:
Lucio Giannotta 2023-01-26 14:33:33 +01:00 committed by GitHub
parent 6f6fd16546
commit 11fc29a4c8
3 changed files with 21 additions and 30 deletions

View File

@ -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: <Icon icon={ page } />,
blockTitle: BLOCK_TITLE,
variationName: VARIATION_NAME,
} );
}
registerElementVariation( CORE_NAME, {
blockDescription: BLOCK_DESCRIPTION,
blockIcon: <Icon icon={ page } />,
blockTitle: BLOCK_TITLE,
variationName: VARIATION_NAME,
} );

View File

@ -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: <Icon icon={ layout } />,
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: <Icon icon={ layout } />,
blockTitle: __( 'Product template', 'woo-gutenberg-products-block' ),
variationName: VARIATION_NAME,
} );

View File

@ -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: <Icon icon={ heading } />,
blockTitle: BLOCK_TITLE,
variationName: VARIATION_NAME,
} );
}
registerElementVariation( CORE_NAME, {
blockDescription: BLOCK_DESCRIPTION,
blockIcon: <Icon icon={ heading } />,
blockTitle: BLOCK_TITLE,
variationName: VARIATION_NAME,
} );