Skip to content

Commit

Permalink
Blocks: update remaining child blocks to API version v3
Browse files Browse the repository at this point in the history
Fixes #40678

Follow-up to #34120
  • Loading branch information
jeherve committed Dec 19, 2024
1 parent ff26ecb commit 3f23283
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: compat

Blocks: ensure all child blocks use the latest version of the Blocks API.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import './editor.scss';
export const name = 'recipe-details';

export const settings = {
apiVersion: 3,
title: __( 'Recipe Details', 'jetpack' ),
description: (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 3f23283

Please sign in to comment.