2019-05-28 10:18:07 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { getCategories, setCategories } from '@wordpress/blocks';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2022-02-01 16:54:38 +00:00
|
|
|
import { woo } from '@woocommerce/icons';
|
|
|
|
import { Icon } from '@wordpress/icons';
|
2019-05-28 10:18:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2019-06-10 16:47:14 +00:00
|
|
|
import '../css/editor.scss';
|
|
|
|
import '../css/style.scss';
|
2020-01-22 16:58:25 +00:00
|
|
|
import './filters/block-list-block';
|
|
|
|
import './filters/get-block-attributes';
|
2023-07-05 11:02:27 +00:00
|
|
|
import './base/components/notice-banner/style.scss';
|
2023-11-16 15:03:58 +00:00
|
|
|
import './atomic/utils/blocks-registration-manager';
|
2019-05-28 10:18:07 +00:00
|
|
|
|
|
|
|
setCategories( [
|
2020-07-22 12:20:54 +00:00
|
|
|
...getCategories().filter(
|
|
|
|
( { slug } ) =>
|
|
|
|
slug !== 'woocommerce' && slug !== 'woocommerce-product-elements'
|
|
|
|
),
|
2019-05-28 10:18:07 +00:00
|
|
|
{
|
|
|
|
slug: 'woocommerce',
|
2023-12-09 13:44:54 +00:00
|
|
|
title: __( 'WooCommerce', 'woocommerce' ),
|
2022-02-01 16:54:38 +00:00
|
|
|
icon: <Icon icon={ woo } />,
|
2019-05-28 10:18:07 +00:00
|
|
|
},
|
2020-07-22 12:20:54 +00:00
|
|
|
{
|
|
|
|
slug: 'woocommerce-product-elements',
|
2023-12-12 23:05:20 +00:00
|
|
|
title: __( 'WooCommerce Product Elements', 'woocommerce' ),
|
2021-12-10 14:32:44 +00:00
|
|
|
icon: (
|
|
|
|
<Icon
|
2022-02-01 16:54:38 +00:00
|
|
|
icon={ woo }
|
2021-12-10 14:32:44 +00:00
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
2020-07-22 12:20:54 +00:00
|
|
|
},
|
2019-05-28 10:18:07 +00:00
|
|
|
] );
|