18 lines
560 B
TypeScript
18 lines
560 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { registerBlockType } from '@wordpress/blocks';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import metadata from './block.json';
|
|
import { ProductGalleryBlockSettings } from './settings';
|
|
import './style.scss';
|
|
import './inner-blocks/product-gallery-large-image-next-previous';
|
|
import './inner-blocks/product-gallery-pager';
|
|
import './inner-blocks/product-gallery-thumbnails';
|
|
|
|
// @ts-expect-error: `metadata` currently does not have a type definition in WordPress core.
|
|
registerBlockType( metadata, ProductGalleryBlockSettings );
|