diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/button/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/button/index.ts index d8f612013d6..833722d1a65 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/button/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/button/index.ts @@ -17,11 +17,7 @@ import { BLOCK_DESCRIPTION as description, } from './constants'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, apiVersion: 2, title, diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/image/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/image/index.ts index f29909ca9ef..c15e5043839 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/image/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/image/index.ts @@ -18,11 +18,7 @@ import { BLOCK_DESCRIPTION as description, } from './constants'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, apiVersion: 2, name: 'woocommerce/product-image', diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/index.ts index 1934e31dc18..2b0fe4b88a4 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/price/index.ts @@ -17,11 +17,7 @@ import { BLOCK_DESCRIPTION as description, } from './constants'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, apiVersion: 2, title, diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/rating/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/rating/index.ts index c8064825f16..9da5304b775 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/rating/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/rating/index.ts @@ -17,11 +17,7 @@ import { } from './constants'; import { supports } from './support'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, apiVersion: 2, title, diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sale-badge/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sale-badge/index.ts index 582aa91f86b..f44222cf0df 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sale-badge/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sale-badge/index.ts @@ -17,11 +17,7 @@ import { } from './constants'; import { supports } from './support'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, title, description, diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts index 29741a3de3d..ccc5c6dca68 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/sku/index.ts @@ -16,11 +16,7 @@ import { BLOCK_DESCRIPTION as description, } from './constants'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, apiVersion: 2, title, diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts index 402a4ff2fb0..f65b3161419 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/stock-indicator/index.ts @@ -18,11 +18,7 @@ import { BLOCK_DESCRIPTION as description, } from './constants'; -type CustomBlockConfiguration = BlockConfiguration & { - ancestor: string[]; -}; - -const blockConfig: CustomBlockConfiguration = { +const blockConfig: BlockConfiguration = { ...sharedConfig, apiVersion: 2, title, diff --git a/plugins/woocommerce-blocks/package-lock.json b/plugins/woocommerce-blocks/package-lock.json index 9321a14a22a..88bf4f4a604 100644 --- a/plugins/woocommerce-blocks/package-lock.json +++ b/plugins/woocommerce-blocks/package-lock.json @@ -79,7 +79,7 @@ "@types/react": "17.0.47", "@types/react-dom": "18.0.10", "@types/wordpress__block-editor": "6.0.6", - "@types/wordpress__blocks": "11.0.7", + "@types/wordpress__blocks": "11.0.9", "@types/wordpress__components": "^23.0.0", "@types/wordpress__core-data": "^2.4.5", "@types/wordpress__data": "^6.0.2", @@ -11495,9 +11495,9 @@ } }, "node_modules/@types/wordpress__blocks": { - "version": "11.0.7", - "resolved": "https://registry.npmjs.org/@types/wordpress__blocks/-/wordpress__blocks-11.0.7.tgz", - "integrity": "sha512-8BcT3CUxHt73CepaLtQHAhA7uBhDOK9x5HJOAxzV+Bl37W04u4jSNulXxwX/6tI7t7Knux5lnN9bvKf/1sg+Rw==", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/@types/wordpress__blocks/-/wordpress__blocks-11.0.9.tgz", + "integrity": "sha512-TyM5LfBJxAHwf+MJ21f3ex+xpNtEooMLFazSalfMxyUM2pWNI4eGSptuP3VpSYaQKhlgUOeJAXKOYp3ZKtEiGQ==", "dev": true, "dependencies": { "@types/react": "*", @@ -58558,9 +58558,9 @@ } }, "@types/wordpress__blocks": { - "version": "11.0.7", - "resolved": "https://registry.npmjs.org/@types/wordpress__blocks/-/wordpress__blocks-11.0.7.tgz", - "integrity": "sha512-8BcT3CUxHt73CepaLtQHAhA7uBhDOK9x5HJOAxzV+Bl37W04u4jSNulXxwX/6tI7t7Knux5lnN9bvKf/1sg+Rw==", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/@types/wordpress__blocks/-/wordpress__blocks-11.0.9.tgz", + "integrity": "sha512-TyM5LfBJxAHwf+MJ21f3ex+xpNtEooMLFazSalfMxyUM2pWNI4eGSptuP3VpSYaQKhlgUOeJAXKOYp3ZKtEiGQ==", "dev": true, "requires": { "@types/react": "*", diff --git a/plugins/woocommerce-blocks/package.json b/plugins/woocommerce-blocks/package.json index 71368d2c329..e856ecaaf5c 100644 --- a/plugins/woocommerce-blocks/package.json +++ b/plugins/woocommerce-blocks/package.json @@ -123,7 +123,7 @@ "@types/react": "17.0.47", "@types/react-dom": "18.0.10", "@types/wordpress__block-editor": "6.0.6", - "@types/wordpress__blocks": "11.0.7", + "@types/wordpress__blocks": "11.0.9", "@types/wordpress__components": "^23.0.0", "@types/wordpress__core-data": "^2.4.5", "@types/wordpress__data": "^6.0.2",