2019-05-28 10:18:07 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2024-06-03 18:34:41 +00:00
|
|
|
import { updateCategory } from '@wordpress/blocks';
|
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
|
|
|
|
2024-06-03 18:34:41 +00:00
|
|
|
// Icons are set on the front-end to make use of WordPress SVG primitive,
|
|
|
|
// See: https://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/#wp-blocks-updatecategory
|
|
|
|
|
|
|
|
updateCategory( 'woocommerce', { icon: <Icon icon={ woo } /> } );
|
|
|
|
updateCategory( 'woocommerce-product-elements', {
|
|
|
|
icon: (
|
|
|
|
<Icon icon={ woo } className="wc-block-editor-components-block-icon" />
|
2020-07-22 12:20:54 +00:00
|
|
|
),
|
2024-06-03 18:34:41 +00:00
|
|
|
} );
|