introduce _templateBlockId attr to Product block

This commit is contained in:
Damián Suárez 2023-12-01 13:18:39 -03:00
parent 23c8d67821
commit ba52220f39
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { BlockEditProps } from '@wordpress/blocks';
import { BlockAttributes, BlockEditProps } from '@wordpress/blocks';
export interface ProductEditorContext {
postId: number;
@ -13,6 +13,11 @@ export interface ProductEditorContext {
export interface ProductEditorBlockEditProps< T extends Record< string, any > >
extends BlockEditProps< T > {
readonly context: ProductEditorContext;
readonly name: string;
}
export interface ProductEditorBlockAttributes extends BlockAttributes {
_templateBlockId?: string;
}
export interface Metadata< T > {