From 3f232832f08ce9bb8e2a40137a48552820f9a22e Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Thu, 19 Dec 2024 15:35:19 +0100 Subject: [PATCH] Blocks: update remaining child blocks to API version v3 Fixes #40678 Follow-up to #34120 --- .../plugins/jetpack/changelog/fix-child-blocks-api-version-v3 | 4 ++++ .../jetpack/extensions/blocks/blogroll/blogroll-item/index.js | 1 + .../jetpack/extensions/blocks/contact-info/address/index.js | 1 + .../jetpack/extensions/blocks/contact-info/email/index.js | 1 + .../jetpack/extensions/blocks/contact-info/phone/index.js | 1 + .../blocks/premium-content/logged-out-view/index.js | 1 + .../extensions/blocks/premium-content/login-button/index.js | 1 + .../blocks/premium-content/subscriber-view/index.js | 1 + .../plugins/jetpack/extensions/blocks/recipe/details/index.js | 1 + .../plugins/jetpack/extensions/blocks/recipe/hero/index.js | 1 + .../jetpack/extensions/blocks/recipe/ingredient-item/index.js | 1 + .../extensions/blocks/recipe/ingredients-list/index.js | 1 + .../plugins/jetpack/extensions/blocks/recipe/step/index.js | 1 + .../plugins/jetpack/extensions/blocks/recipe/steps/index.js | 1 + .../extensions/blocks/send-a-message/whatsapp-button/index.js | 1 + 15 files changed, 18 insertions(+) create mode 100644 projects/plugins/jetpack/changelog/fix-child-blocks-api-version-v3 diff --git a/projects/plugins/jetpack/changelog/fix-child-blocks-api-version-v3 b/projects/plugins/jetpack/changelog/fix-child-blocks-api-version-v3 new file mode 100644 index 0000000000000..28a5f2fc42319 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-child-blocks-api-version-v3 @@ -0,0 +1,4 @@ +Significance: patch +Type: compat + +Blocks: ensure all child blocks use the latest version of the Blocks API. diff --git a/projects/plugins/jetpack/extensions/blocks/blogroll/blogroll-item/index.js b/projects/plugins/jetpack/extensions/blocks/blogroll/blogroll-item/index.js index fcfd2997804f9..44a185809df68 100644 --- a/projects/plugins/jetpack/extensions/blocks/blogroll/blogroll-item/index.js +++ b/projects/plugins/jetpack/extensions/blocks/blogroll/blogroll-item/index.js @@ -9,6 +9,7 @@ import './editor.scss'; export const name = 'blogroll-item'; export const title = __( 'Blogroll Item', 'jetpack' ); export const settings = { + apiVersion: 3, title, description: __( 'Blogroll Item', 'jetpack' ), icon: { diff --git a/projects/plugins/jetpack/extensions/blocks/contact-info/address/index.js b/projects/plugins/jetpack/extensions/blocks/contact-info/address/index.js index f771b596a8af9..4206d8850a55f 100644 --- a/projects/plugins/jetpack/extensions/blocks/contact-info/address/index.js +++ b/projects/plugins/jetpack/extensions/blocks/contact-info/address/index.js @@ -43,6 +43,7 @@ const attributes = { export const name = 'address'; export const settings = { + apiVersion: 3, title: __( 'Address', 'jetpack' ), description: __( 'Lets you add a physical address with Schema markup.', 'jetpack' ), keywords: [ diff --git a/projects/plugins/jetpack/extensions/blocks/contact-info/email/index.js b/projects/plugins/jetpack/extensions/blocks/contact-info/email/index.js index bdd6af0fd45e5..7d98e20ccade2 100644 --- a/projects/plugins/jetpack/extensions/blocks/contact-info/email/index.js +++ b/projects/plugins/jetpack/extensions/blocks/contact-info/email/index.js @@ -14,6 +14,7 @@ const attributes = { export const name = 'email'; export const settings = { + apiVersion: 3, title: __( 'Email Address', 'jetpack' ), description: __( 'Lets you add an email address with an automatically generated click-to-email link.', diff --git a/projects/plugins/jetpack/extensions/blocks/contact-info/phone/index.js b/projects/plugins/jetpack/extensions/blocks/contact-info/phone/index.js index 122106b5029ee..aab37b353b205 100644 --- a/projects/plugins/jetpack/extensions/blocks/contact-info/phone/index.js +++ b/projects/plugins/jetpack/extensions/blocks/contact-info/phone/index.js @@ -14,6 +14,7 @@ const attributes = { export const name = 'phone'; export const settings = { + apiVersion: 3, title: __( 'Phone Number', 'jetpack' ), description: __( 'Lets you add a phone number with an automatically generated click-to-call link.', diff --git a/projects/plugins/jetpack/extensions/blocks/premium-content/logged-out-view/index.js b/projects/plugins/jetpack/extensions/blocks/premium-content/logged-out-view/index.js index 4f9640390921d..6e0f2c6069361 100644 --- a/projects/plugins/jetpack/extensions/blocks/premium-content/logged-out-view/index.js +++ b/projects/plugins/jetpack/extensions/blocks/premium-content/logged-out-view/index.js @@ -9,6 +9,7 @@ import save from './save'; const name = 'premium-content/logged-out-view'; const settings = { + apiVersion: 3, title: __( 'Guest View', 'jetpack' ), description: __( 'The container for all content shown to site visitors who are not subscribers.', diff --git a/projects/plugins/jetpack/extensions/blocks/premium-content/login-button/index.js b/projects/plugins/jetpack/extensions/blocks/premium-content/login-button/index.js index 9853295065c49..fdc0255abb713 100644 --- a/projects/plugins/jetpack/extensions/blocks/premium-content/login-button/index.js +++ b/projects/plugins/jetpack/extensions/blocks/premium-content/login-button/index.js @@ -19,6 +19,7 @@ const name = 'premium-content/login-button'; * @type {BlockConfiguration} */ const settings = { + apiVersion: 3, title: __( 'Premium Content login button', 'jetpack' ), description: __( 'Prompt subscriber visitors to log in with a button-style link (only visible for logged out users).', diff --git a/projects/plugins/jetpack/extensions/blocks/premium-content/subscriber-view/index.js b/projects/plugins/jetpack/extensions/blocks/premium-content/subscriber-view/index.js index f078fe1470875..703d3c3d4950c 100644 --- a/projects/plugins/jetpack/extensions/blocks/premium-content/subscriber-view/index.js +++ b/projects/plugins/jetpack/extensions/blocks/premium-content/subscriber-view/index.js @@ -6,6 +6,7 @@ import save from './save'; const name = 'premium-content/subscriber-view'; const settings = { + apiVersion: 3, title: __( 'Subscriber View', 'jetpack' ), description: __( 'The container for all content shown to subscribers.', 'jetpack' ), icon, diff --git a/projects/plugins/jetpack/extensions/blocks/recipe/details/index.js b/projects/plugins/jetpack/extensions/blocks/recipe/details/index.js index 8b1e742b93c86..6168dab7e553c 100644 --- a/projects/plugins/jetpack/extensions/blocks/recipe/details/index.js +++ b/projects/plugins/jetpack/extensions/blocks/recipe/details/index.js @@ -11,6 +11,7 @@ import './editor.scss'; export const name = 'recipe-details'; export const settings = { + apiVersion: 3, title: __( 'Recipe Details', 'jetpack' ), description: ( diff --git a/projects/plugins/jetpack/extensions/blocks/recipe/hero/index.js b/projects/plugins/jetpack/extensions/blocks/recipe/hero/index.js index 802766e28d875..0dcb09be50600 100644 --- a/projects/plugins/jetpack/extensions/blocks/recipe/hero/index.js +++ b/projects/plugins/jetpack/extensions/blocks/recipe/hero/index.js @@ -8,6 +8,7 @@ import save from './save'; export const name = 'recipe-hero'; export const title = __( 'Recipe Hero', 'jetpack' ); export const settings = { + apiVersion: 3, title, description: ( diff --git a/projects/plugins/jetpack/extensions/blocks/recipe/ingredient-item/index.js b/projects/plugins/jetpack/extensions/blocks/recipe/ingredient-item/index.js index ba58e19cfb990..434e0d4b91856 100644 --- a/projects/plugins/jetpack/extensions/blocks/recipe/ingredient-item/index.js +++ b/projects/plugins/jetpack/extensions/blocks/recipe/ingredient-item/index.js @@ -9,6 +9,7 @@ import save from './save'; export const name = 'recipe-ingredient-item'; export const title = __( 'Recipe Ingredient Item', 'jetpack' ); export const settings = { + apiVersion: 3, title, description: ( diff --git a/projects/plugins/jetpack/extensions/blocks/recipe/ingredients-list/index.js b/projects/plugins/jetpack/extensions/blocks/recipe/ingredients-list/index.js index 24cfaf0f3bcb9..c00528f4b75a8 100644 --- a/projects/plugins/jetpack/extensions/blocks/recipe/ingredients-list/index.js +++ b/projects/plugins/jetpack/extensions/blocks/recipe/ingredients-list/index.js @@ -11,6 +11,7 @@ import './editor.scss'; export const name = 'recipe-ingredients-list'; export const title = __( 'Recipe Ingredients List', 'jetpack' ); export const settings = { + apiVersion: 3, title, description: ( diff --git a/projects/plugins/jetpack/extensions/blocks/recipe/step/index.js b/projects/plugins/jetpack/extensions/blocks/recipe/step/index.js index a8de038b57af2..dea805c481062 100644 --- a/projects/plugins/jetpack/extensions/blocks/recipe/step/index.js +++ b/projects/plugins/jetpack/extensions/blocks/recipe/step/index.js @@ -8,6 +8,7 @@ import save from './save'; export const name = 'recipe-step'; export const title = __( 'Recipe Step', 'jetpack' ); export const settings = { + apiVersion: 3, title, description: ( diff --git a/projects/plugins/jetpack/extensions/blocks/recipe/steps/index.js b/projects/plugins/jetpack/extensions/blocks/recipe/steps/index.js index 352de13c361fc..baf05f04365e2 100644 --- a/projects/plugins/jetpack/extensions/blocks/recipe/steps/index.js +++ b/projects/plugins/jetpack/extensions/blocks/recipe/steps/index.js @@ -10,6 +10,7 @@ import './editor.scss'; export const name = 'recipe-steps'; export const title = __( 'Recipe Steps', 'jetpack' ); export const settings = { + apiVersion: 3, title, description: ( diff --git a/projects/plugins/jetpack/extensions/blocks/send-a-message/whatsapp-button/index.js b/projects/plugins/jetpack/extensions/blocks/send-a-message/whatsapp-button/index.js index f004c2566b81e..634155f78d529 100644 --- a/projects/plugins/jetpack/extensions/blocks/send-a-message/whatsapp-button/index.js +++ b/projects/plugins/jetpack/extensions/blocks/send-a-message/whatsapp-button/index.js @@ -17,6 +17,7 @@ export const defaultFirstMessage = __( ); export const settings = { + apiVersion: 3, title, description: __( 'Let your visitors send you a message on WhatsApp with the tap of a button.',