Correct block name and description (https://github.com/woocommerce/woocommerce-blocks/pull/7354)
* Correct block name and description * remove duplicated description for controls blocks * remove duplicated title and desc * Revert "remove duplicated description for controls blocks" This reverts commit ed5417eb0e5191ed2f1def2a04c9e724fe70856a.
This commit is contained in:
parent
9245934eb8
commit
b1c7f3e63b
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "woocommerce/active-filters",
|
"name": "woocommerce/active-filters",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"title": "Active Product Filter Controls",
|
"title": "Active Product Filters Controls",
|
||||||
"description": "Display the currently active product filters.",
|
"description": "Display the currently active product filters.",
|
||||||
"category": "woocommerce",
|
"category": "woocommerce",
|
||||||
"keywords": [ "WooCommerce" ],
|
"keywords": [ "WooCommerce" ],
|
||||||
|
|
|
@ -17,14 +17,6 @@ import { blockAttributes } from './attributes';
|
||||||
import { Attributes } from './types';
|
import { Attributes } from './types';
|
||||||
|
|
||||||
registerBlockType( metadata, {
|
registerBlockType( metadata, {
|
||||||
title: __(
|
|
||||||
'Active Product Filter Controls',
|
|
||||||
'woo-gutenberg-products-block'
|
|
||||||
),
|
|
||||||
description: __(
|
|
||||||
'Display the currently active product filters.',
|
|
||||||
'woo-gutenberg-products-block'
|
|
||||||
),
|
|
||||||
icon: {
|
icon: {
|
||||||
src: (
|
src: (
|
||||||
<Icon
|
<Icon
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "woocommerce/attribute-filter",
|
"name": "woocommerce/attribute-filter",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"title": "Filter by Attribute Controls",
|
"title": "Filter by Attribute Controls",
|
||||||
"description": "Allow customers to filter the grid by product attribute, such as color.",
|
"description": "Enable customers to filter the product grid by selecting one or more attributes, such as color.",
|
||||||
"category": "woocommerce",
|
"category": "woocommerce",
|
||||||
"keywords": [ "WooCommerce" ],
|
"keywords": [ "WooCommerce" ],
|
||||||
"supports": {
|
"supports": {
|
||||||
|
|
|
@ -29,7 +29,7 @@ registerBlockType( metadata, {
|
||||||
'woo-gutenberg-products-block'
|
'woo-gutenberg-products-block'
|
||||||
),
|
),
|
||||||
description: __(
|
description: __(
|
||||||
'Show the currently active product filters. Works in combination with other filters blocks.',
|
'Display the currently active product filters.',
|
||||||
'woo-gutenberg-products-block'
|
'woo-gutenberg-products-block'
|
||||||
),
|
),
|
||||||
/**
|
/**
|
||||||
|
@ -58,7 +58,7 @@ registerBlockType( metadata, {
|
||||||
name: 'price-filter',
|
name: 'price-filter',
|
||||||
title: __( 'Filter by Price', 'woo-gutenberg-products-block' ),
|
title: __( 'Filter by Price', 'woo-gutenberg-products-block' ),
|
||||||
description: __(
|
description: __(
|
||||||
'Allow customers to filter products by price range.',
|
'Enable customers to filter the product grid by choosing a price range.',
|
||||||
'woo-gutenberg-products-block'
|
'woo-gutenberg-products-block'
|
||||||
),
|
),
|
||||||
isActive: ( attributes ) =>
|
isActive: ( attributes ) =>
|
||||||
|
@ -83,7 +83,7 @@ registerBlockType( metadata, {
|
||||||
name: 'stock-filter',
|
name: 'stock-filter',
|
||||||
title: __( 'Filter by Stock', 'woo-gutenberg-products-block' ),
|
title: __( 'Filter by Stock', 'woo-gutenberg-products-block' ),
|
||||||
description: __(
|
description: __(
|
||||||
'Allow customers to filter the grid by products stock status.',
|
'Enable customers to filter the product grid by stock status.',
|
||||||
'woo-gutenberg-products-block'
|
'woo-gutenberg-products-block'
|
||||||
),
|
),
|
||||||
isActive: ( attributes ) =>
|
isActive: ( attributes ) =>
|
||||||
|
@ -108,7 +108,7 @@ registerBlockType( metadata, {
|
||||||
name: 'attribute-filter',
|
name: 'attribute-filter',
|
||||||
title: __( 'Filter by Attribute', 'woo-gutenberg-products-block' ),
|
title: __( 'Filter by Attribute', 'woo-gutenberg-products-block' ),
|
||||||
description: __(
|
description: __(
|
||||||
'Allow customers to filter the grid by product attribute, such as color.',
|
'Enable customers to filter the product grid by selecting one or more attributes, such as color.',
|
||||||
'woo-gutenberg-products-block'
|
'woo-gutenberg-products-block'
|
||||||
),
|
),
|
||||||
isActive: ( attributes ) =>
|
isActive: ( attributes ) =>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "woocommerce/stock-filter",
|
"name": "woocommerce/stock-filter",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"title": "Filter by Stock Controls",
|
"title": "Filter by Stock Controls",
|
||||||
"description": "Allow customers to filter the grid by products stock status.",
|
"description": "Enable customers to filter the product grid by stock status.",
|
||||||
"category": "woocommerce",
|
"category": "woocommerce",
|
||||||
"keywords": [ "WooCommerce" ],
|
"keywords": [ "WooCommerce" ],
|
||||||
"supports": {
|
"supports": {
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { registerBlockType } from '@wordpress/blocks';
|
||||||
import { Icon, box } from '@wordpress/icons';
|
import { Icon, box } from '@wordpress/icons';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { useBlockProps } from '@wordpress/block-editor';
|
import { useBlockProps } from '@wordpress/block-editor';
|
||||||
import { __ } from '@wordpress/i18n';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
|
@ -16,11 +15,6 @@ import { blockAttributes } from './attributes';
|
||||||
import type { Attributes } from './types';
|
import type { Attributes } from './types';
|
||||||
|
|
||||||
registerBlockType( metadata, {
|
registerBlockType( metadata, {
|
||||||
title: __( 'Filter Products by Stock', 'woo-gutenberg-products-block' ),
|
|
||||||
description: __(
|
|
||||||
'Enable customers to filter the product grid by stock status.',
|
|
||||||
'woo-gutenberg-products-block'
|
|
||||||
),
|
|
||||||
icon: {
|
icon: {
|
||||||
src: (
|
src: (
|
||||||
<Icon
|
<Icon
|
||||||
|
|
Loading…
Reference in New Issue