Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Atomic Blocks: fix ancestor definition #7947

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
Expand Down
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/price/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
Expand Down
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/rating/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/sale-badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
};
Expand Down
2 changes: 1 addition & 1 deletion assets/js/atomic/blocks/product-elements/shared/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
4 changes: 2 additions & 2 deletions assets/js/atomic/blocks/product-elements/sku/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
};
Expand Down