Atomic Block: fix ancestor definition (https://github.com/woocommerce/woocommerce-blocks/pull/7947)
This commit is contained in:
parent
05b1b0f32f
commit
9be9e6b010
|
@ -21,8 +21,8 @@ const blockConfig = {
|
|||
title,
|
||||
description,
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
|
|
|
@ -32,8 +32,8 @@ const blockConfig: CustomBlockConfiguration = {
|
|||
description,
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
textdomain: 'woo-gutenberg-products-block',
|
||||
|
|
|
@ -22,8 +22,8 @@ const blockConfig = {
|
|||
title,
|
||||
description,
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
|
|
|
@ -23,8 +23,8 @@ const blockConfig: BlockConfiguration = {
|
|||
description,
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
icon: { src: icon },
|
||||
|
|
|
@ -28,8 +28,8 @@ const blockConfig: BlockConfiguration = {
|
|||
edit,
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
};
|
||||
|
|
|
@ -28,7 +28,7 @@ const sharedConfig: Omit< BlockConfiguration, 'attributes' | 'title' > = {
|
|||
supports: {
|
||||
html: false,
|
||||
},
|
||||
ancestor: [ '@woocommerce/all-products', '@woocommerce/single-product' ],
|
||||
ancestor: [ 'woocommerce/all-products', 'woocommerce/single-product' ],
|
||||
save,
|
||||
deprecated: [
|
||||
{
|
||||
|
|
|
@ -23,8 +23,8 @@ const blockConfig: BlockConfiguration = {
|
|||
icon: { src: icon },
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
attributes,
|
||||
|
|
|
@ -29,8 +29,8 @@ const blockConfig: BlockConfiguration = {
|
|||
edit,
|
||||
usesContext: [ 'query', 'queryId', 'postId' ],
|
||||
ancestor: [
|
||||
'@woocommerce/all-products',
|
||||
'@woocommerce/single-product',
|
||||
'woocommerce/all-products',
|
||||
'woocommerce/single-product',
|
||||
'core/post-template',
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue