27 lines
736 B
TypeScript
27 lines
736 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { registerBlockType } from '@wordpress/blocks';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import metadata from './block.json';
|
|
import edit from './edit';
|
|
import save from './save';
|
|
import icon from './icon';
|
|
import registerProductSummaryVariation from './variations/elements/product-summary';
|
|
import registerProductTitleVariation from './variations/elements/product-title';
|
|
import registerCollections from './collections';
|
|
import { addProductCollectionBlockToParentOfPaginationBlock } from './utils';
|
|
|
|
registerBlockType( metadata, {
|
|
icon,
|
|
edit,
|
|
save,
|
|
} );
|
|
registerProductSummaryVariation();
|
|
registerProductTitleVariation();
|
|
registerCollections();
|
|
addProductCollectionBlockToParentOfPaginationBlock();
|