diff --git a/packages/block-library/src/archives/block.json b/packages/block-library/src/archives/block.json index d35f8b05001c4b..799d050354c5f2 100644 --- a/packages/block-library/src/archives/block.json +++ b/packages/block-library/src/archives/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/archives", + "title": "Archives", "category": "widgets", + "description": "Display a monthly archive of your posts.", + "textdomain": "default", "attributes": { "displayAsDropdown": { "type": "boolean", diff --git a/packages/block-library/src/archives/index.js b/packages/block-library/src/archives/index.js index 6bfdbef7abce30..e1f01f30a71874 100644 --- a/packages/block-library/src/archives/index.js +++ b/packages/block-library/src/archives/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { archive as icon } from '@wordpress/icons'; -import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -15,8 +14,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Archives', 'block title' ), - description: __( 'Display a monthly archive of your posts.' ), icon, example: {}, edit, diff --git a/packages/block-library/src/audio/block.json b/packages/block-library/src/audio/block.json index c8e6e8e19d693e..969a9e7e7c29b4 100644 --- a/packages/block-library/src/audio/block.json +++ b/packages/block-library/src/audio/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/audio", + "title": "Audio", "category": "media", + "description": "Embed a simple audio player.", + "keywords": [ "music", "sound", "podcast", "recording" ], + "textdomain": "default", "attributes": { "src": { "type": "string", diff --git a/packages/block-library/src/audio/index.js b/packages/block-library/src/audio/index.js index a06248ac245532..6ed1b116f06b29 100644 --- a/packages/block-library/src/audio/index.js +++ b/packages/block-library/src/audio/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { audio as icon } from '@wordpress/icons'; /** @@ -18,14 +17,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Audio', 'block title' ), - description: __( 'Embed a simple audio player.' ), - keywords: [ - __( 'music' ), - __( 'sound' ), - __( 'podcast' ), - __( 'recording' ), - ], icon, transforms, deprecated, diff --git a/packages/block-library/src/block/block.json b/packages/block-library/src/block/block.json index aece916ab601ba..006c85c0b5db67 100644 --- a/packages/block-library/src/block/block.json +++ b/packages/block-library/src/block/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/block", + "title": "Reusable block", "category": "reusable", + "description": "Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.", + "textdomain": "default", "attributes": { "ref": { "type": "number" diff --git a/packages/block-library/src/block/index.js b/packages/block-library/src/block/index.js index 0c6353eb1ebed7..d3f536a5676ade 100644 --- a/packages/block-library/src/block/index.js +++ b/packages/block-library/src/block/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __, _x } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,9 +9,5 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Reusable block', 'block title' ), - description: __( - 'Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.' - ), edit, }; diff --git a/packages/block-library/src/button/block.json b/packages/block-library/src/button/block.json index a9b483981eccf7..3cb59a7fd653eb 100644 --- a/packages/block-library/src/button/block.json +++ b/packages/block-library/src/button/block.json @@ -1,8 +1,12 @@ { "apiVersion": 2, "name": "core/button", + "title": "Button", "category": "design", "parent": [ "core/buttons" ], + "description": "Prompt visitors to take action with a button-style link.", + "keywords": [ "link" ], + "textdomain": "default", "attributes": { "url": { "type": "string", @@ -66,6 +70,10 @@ "__experimentalFontFamily": true, "__experimentalSelector": ".wp-block-button__link" }, + "styles": [ + { "name": "fill", "label": "Fill", "isDefault": true }, + { "name": "outline", "label": "Outline" } + ], "editorStyle": "wp-block-button-editor", "style": "wp-block-button" } diff --git a/packages/block-library/src/button/index.js b/packages/block-library/src/button/index.js index de6f3c8e0b6d26..a62ee2180d76ae 100644 --- a/packages/block-library/src/button/index.js +++ b/packages/block-library/src/button/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { button as icon } from '@wordpress/icons'; /** @@ -17,12 +17,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Button', 'block title' ), - description: __( - 'Prompt visitors to take action with a button-style link.' - ), icon, - keywords: [ __( 'link' ) ], example: { attributes: { className: 'is-style-fill', @@ -30,10 +25,6 @@ export const settings = { text: __( 'Call to Action' ), }, }, - styles: [ - { name: 'fill', label: __( 'Fill' ), isDefault: true }, - { name: 'outline', label: __( 'Outline' ) }, - ], edit, save, deprecated, diff --git a/packages/block-library/src/buttons/block.json b/packages/block-library/src/buttons/block.json index 704b3a33b29a90..74eed0a4a0a54f 100644 --- a/packages/block-library/src/buttons/block.json +++ b/packages/block-library/src/buttons/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/buttons", + "title": "Buttons", "category": "design", + "description": "Prompt visitors to take action with a group of button-style links.", + "keywords": [ "link" ], + "textdomain": "default", "attributes": { "contentJustification": { "type": "string" diff --git a/packages/block-library/src/buttons/index.js b/packages/block-library/src/buttons/index.js index 9cade7c6dc2eb1..2ee8ca3d371d93 100644 --- a/packages/block-library/src/buttons/index.js +++ b/packages/block-library/src/buttons/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { buttons as icon } from '@wordpress/icons'; /** @@ -19,12 +19,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Buttons', 'block title' ), - description: __( - 'Prompt visitors to take action with a group of button-style links.' - ), icon, - keywords: [ __( 'link' ) ], example: { innerBlocks: [ { diff --git a/packages/block-library/src/calendar/block.json b/packages/block-library/src/calendar/block.json index edb73671e692a2..07938927f5ebab 100644 --- a/packages/block-library/src/calendar/block.json +++ b/packages/block-library/src/calendar/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/calendar", + "title": "Calendar", "category": "widgets", + "description": "A calendar of your site’s posts.", + "keywords": [ "posts", "archive" ], + "textdomain": "default", "attributes": { "month": { "type": "integer" diff --git a/packages/block-library/src/calendar/index.js b/packages/block-library/src/calendar/index.js index 5ad08622de378b..43fb2e50006065 100644 --- a/packages/block-library/src/calendar/index.js +++ b/packages/block-library/src/calendar/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { calendar as icon } from '@wordpress/icons'; -import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -15,10 +14,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Calendar', 'block title' ), - description: __( 'A calendar of your site’s posts.' ), icon, - keywords: [ __( 'posts' ), __( 'archive' ) ], example: {}, edit, }; diff --git a/packages/block-library/src/categories/block.json b/packages/block-library/src/categories/block.json index 5fe562622c83e3..b238df42039e51 100644 --- a/packages/block-library/src/categories/block.json +++ b/packages/block-library/src/categories/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/categories", + "title": "Categories", "category": "widgets", + "description": "Display a list of all categories.", + "textdomain": "default", "attributes": { "displayAsDropdown": { "type": "boolean", diff --git a/packages/block-library/src/categories/index.js b/packages/block-library/src/categories/index.js index ad11522b3c5676..9698dacfdaff31 100644 --- a/packages/block-library/src/categories/index.js +++ b/packages/block-library/src/categories/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { category as icon } from '@wordpress/icons'; -import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -15,8 +14,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Categories', 'block title' ), - description: __( 'Display a list of all categories.' ), icon, example: {}, edit, diff --git a/packages/block-library/src/code/block.json b/packages/block-library/src/code/block.json index 0f29cf33cc0307..8cb922288730f9 100644 --- a/packages/block-library/src/code/block.json +++ b/packages/block-library/src/code/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/code", + "title": "Code", "category": "text", + "description": "Display code snippets that respect your spacing and tabs.", + "textdomain": "default", "attributes": { "content": { "type": "string", diff --git a/packages/block-library/src/code/index.js b/packages/block-library/src/code/index.js index ed6e65c1dffb69..8301b13d9ff573 100644 --- a/packages/block-library/src/code/index.js +++ b/packages/block-library/src/code/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { code as icon } from '@wordpress/icons'; /** @@ -17,10 +17,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Code', 'block title' ), - description: __( - 'Display code snippets that respect your spacing and tabs.' - ), icon, example: { attributes: { diff --git a/packages/block-library/src/column/block.json b/packages/block-library/src/column/block.json index 92e76c6a5c1741..e949aa4f4fcace 100644 --- a/packages/block-library/src/column/block.json +++ b/packages/block-library/src/column/block.json @@ -1,8 +1,11 @@ { "apiVersion": 2, "name": "core/column", + "title": "Column", "category": "text", "parent": [ "core/columns" ], + "description": "A single column within a columns block.", + "textdomain": "default", "attributes": { "verticalAlignment": { "type": "string" diff --git a/packages/block-library/src/column/index.js b/packages/block-library/src/column/index.js index 955d82d8fcb2fe..e935e682f45caa 100644 --- a/packages/block-library/src/column/index.js +++ b/packages/block-library/src/column/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { column as icon } from '@wordpress/icons'; /** @@ -17,9 +16,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Column', 'block title' ), icon, - description: __( 'A single column within a columns block.' ), edit, save, deprecated, diff --git a/packages/block-library/src/columns/block.json b/packages/block-library/src/columns/block.json index d9f61692b7cf82..f3bc49d3d24971 100644 --- a/packages/block-library/src/columns/block.json +++ b/packages/block-library/src/columns/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/columns", + "title": "Columns", "category": "design", + "description": "Add a block that displays content in multiple columns, then add whatever content blocks you’d like.", + "textdomain": "default", "attributes": { "verticalAlignment": { "type": "string" diff --git a/packages/block-library/src/columns/index.js b/packages/block-library/src/columns/index.js index 5e00f018d0d295..4bee7eb6bc3963 100644 --- a/packages/block-library/src/columns/index.js +++ b/packages/block-library/src/columns/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { columns as icon } from '@wordpress/icons'; /** @@ -19,11 +19,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Columns', 'block title' ), icon, - description: __( - 'Add a block that displays content in multiple columns, then add whatever content blocks you’d like.' - ), variations, example: { innerBlocks: [ diff --git a/packages/block-library/src/cover/block.json b/packages/block-library/src/cover/block.json index 676fb581c2b958..3b3ad5d804417e 100644 --- a/packages/block-library/src/cover/block.json +++ b/packages/block-library/src/cover/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/cover", + "title": "Cover", "category": "media", + "description": "Add an image or video with a text overlay — great for headers.", + "textdomain": "default", "attributes": { "url": { "type": "string" diff --git a/packages/block-library/src/cover/index.js b/packages/block-library/src/cover/index.js index 331e2fb19c4af4..89576d2ae55e18 100644 --- a/packages/block-library/src/cover/index.js +++ b/packages/block-library/src/cover/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { cover as icon } from '@wordpress/icons'; /** @@ -18,10 +18,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Cover', 'block title' ), - description: __( - 'Add an image or video with a text overlay — great for headers.' - ), icon, example: { attributes: { diff --git a/packages/block-library/src/embed/block.json b/packages/block-library/src/embed/block.json index 8c270a0c0c60e3..cc0cb64c03fe6b 100644 --- a/packages/block-library/src/embed/block.json +++ b/packages/block-library/src/embed/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/embed", + "title": "Embed", "category": "embed", + "description": "Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.", + "textdomain": "default", "attributes": { "url": { "type": "string" diff --git a/packages/block-library/src/embed/index.js b/packages/block-library/src/embed/index.js index 3b1ed4d9bdb9cb..5f0e38c1aabf25 100644 --- a/packages/block-library/src/embed/index.js +++ b/packages/block-library/src/embed/index.js @@ -9,19 +9,10 @@ import variations from './variations'; import deprecated from './deprecated'; import { embedContentIcon } from './icons'; -/** - * WordPress dependencies - */ -import { __, _x } from '@wordpress/i18n'; - const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Embed', 'block title' ), - description: __( - 'Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.' - ), icon: embedContentIcon, edit, save, diff --git a/packages/block-library/src/file/block.json b/packages/block-library/src/file/block.json index 530d856fa70872..4874eec3961d9b 100644 --- a/packages/block-library/src/file/block.json +++ b/packages/block-library/src/file/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/file", + "title": "File", "category": "media", + "description": "Add a link to a downloadable file.", + "keywords": [ "document", "pdf", "download" ], + "textdomain": "default", "attributes": { "id": { "type": "number" diff --git a/packages/block-library/src/file/index.js b/packages/block-library/src/file/index.js index a8e566c21eb44e..6dbb7446427bd0 100644 --- a/packages/block-library/src/file/index.js +++ b/packages/block-library/src/file/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { file as icon } from '@wordpress/icons'; /** @@ -17,10 +16,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'File', 'block title' ), - description: __( 'Add a link to a downloadable file.' ), icon, - keywords: [ __( 'document' ), __( 'pdf' ), __( 'download' ) ], transforms, edit, save, diff --git a/packages/block-library/src/freeform/block.json b/packages/block-library/src/freeform/block.json index a18cd84635004a..f3b2d45b00c489 100644 --- a/packages/block-library/src/freeform/block.json +++ b/packages/block-library/src/freeform/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/freeform", + "title": "Classic", "category": "text", + "description": "Use the classic WordPress editor.", + "textdomain": "default", "attributes": { "content": { "type": "string", diff --git a/packages/block-library/src/freeform/index.js b/packages/block-library/src/freeform/index.js index 89275ee2d1ebc4..b4d7cf715442b8 100644 --- a/packages/block-library/src/freeform/index.js +++ b/packages/block-library/src/freeform/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { classic as icon } from '@wordpress/icons'; /** @@ -16,8 +15,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Classic', 'block title' ), - description: __( 'Use the classic WordPress editor.' ), icon, edit, save, diff --git a/packages/block-library/src/gallery/block.json b/packages/block-library/src/gallery/block.json index 8beac02827f612..a87edb1eda9729 100644 --- a/packages/block-library/src/gallery/block.json +++ b/packages/block-library/src/gallery/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/gallery", + "title": "Gallery", "category": "media", + "description": "Display multiple images in a rich gallery.", + "keywords": [ "images", "photos" ], + "textdomain": "default", "attributes": { "images": { "type": "array", diff --git a/packages/block-library/src/gallery/index.js b/packages/block-library/src/gallery/index.js index 677291252e7ce6..01e8a7a61502f6 100644 --- a/packages/block-library/src/gallery/index.js +++ b/packages/block-library/src/gallery/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { gallery as icon } from '@wordpress/icons'; /** @@ -18,10 +17,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Gallery', 'block title' ), - description: __( 'Display multiple images in a rich gallery.' ), icon, - keywords: [ __( 'images' ), __( 'photos' ) ], example: { attributes: { columns: 2, diff --git a/packages/block-library/src/group/block.json b/packages/block-library/src/group/block.json index 429f13fb03018c..b12fb400437c65 100644 --- a/packages/block-library/src/group/block.json +++ b/packages/block-library/src/group/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/group", + "title": "Group", "category": "design", + "description": "Combine blocks into a group.", + "keywords": [ "container", "wrapper", "row", "section" ], + "textdomain": "default", "attributes": { "tagName": { "type": "string", diff --git a/packages/block-library/src/group/index.js b/packages/block-library/src/group/index.js index 5ce93ae1fd397a..dac9a09b3cb1fa 100644 --- a/packages/block-library/src/group/index.js +++ b/packages/block-library/src/group/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { createBlock } from '@wordpress/blocks'; import { group as icon } from '@wordpress/icons'; @@ -18,15 +18,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Group', 'block title' ), icon, - description: __( 'Combine blocks into a group.' ), - keywords: [ - __( 'container' ), - __( 'wrapper' ), - __( 'row' ), - __( 'section' ), - ], example: { attributes: { style: { diff --git a/packages/block-library/src/heading/block.json b/packages/block-library/src/heading/block.json index 8d7e0fdd5c1940..0e32048da4e5bf 100644 --- a/packages/block-library/src/heading/block.json +++ b/packages/block-library/src/heading/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/heading", + "title": "Heading", "category": "text", + "description": "Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.", + "keywords": [ "title", "subtitle" ], + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/heading/index.js b/packages/block-library/src/heading/index.js index 593e1eaca7fe46..989812cd46c89b 100644 --- a/packages/block-library/src/heading/index.js +++ b/packages/block-library/src/heading/index.js @@ -7,7 +7,7 @@ import { isEmpty } from 'lodash'; * WordPress dependencies */ import { heading as icon } from '@wordpress/icons'; -import { __, _x, sprintf } from '@wordpress/i18n'; +import { __, sprintf } from '@wordpress/i18n'; /** * Internal dependencies @@ -23,12 +23,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Heading', 'block title' ), - description: __( - 'Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.' - ), icon, - keywords: [ __( 'title' ), __( 'subtitle' ) ], example: { attributes: { content: __( 'Code is Poetry' ), diff --git a/packages/block-library/src/html/block.json b/packages/block-library/src/html/block.json index 266b4511e0fe5b..962db3f3684d3b 100644 --- a/packages/block-library/src/html/block.json +++ b/packages/block-library/src/html/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/html", + "title": "Custom HTML", "category": "widgets", + "description": "Add custom HTML code and preview it as you edit.", + "keywords": [ "embed" ], + "textdomain": "default", "attributes": { "content": { "type": "string", diff --git a/packages/block-library/src/html/index.js b/packages/block-library/src/html/index.js index 43f0975f9a1305..cb1fb915ee8b5a 100644 --- a/packages/block-library/src/html/index.js +++ b/packages/block-library/src/html/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { html as icon } from '@wordpress/icons'; /** @@ -17,10 +17,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Custom HTML', 'block title' ), - description: __( 'Add custom HTML code and preview it as you edit.' ), icon, - keywords: [ __( 'embed' ) ], example: { attributes: { content: diff --git a/packages/block-library/src/image/block.json b/packages/block-library/src/image/block.json index 6b9fb6443a2362..9cb1901028c9da 100644 --- a/packages/block-library/src/image/block.json +++ b/packages/block-library/src/image/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/image", + "title": "Image", "category": "media", + "description": "Insert an image to make a visual statement.", + "keywords": [ "img", "photo", "picture" ], + "textdomain": "default", "attributes": { "align": { "type": "string" @@ -81,6 +85,14 @@ "radius": true } }, + "styles": [ + { + "name": "default", + "label": "Default", + "isDefault": true + }, + { "name": "rounded", "label": "Rounded" } + ], "editorStyle": "wp-block-image-editor", "style": "wp-block-image" } diff --git a/packages/block-library/src/image/index.js b/packages/block-library/src/image/index.js index ab8f057d210a05..dcdbd4e76882c1 100644 --- a/packages/block-library/src/image/index.js +++ b/packages/block-library/src/image/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { image as icon } from '@wordpress/icons'; /** @@ -18,14 +18,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Image', 'block title' ), - description: __( 'Insert an image to make a visual statement.' ), icon, - keywords: [ - 'img', // "img" is not translated as it is intended to reflect the HTML tag. - __( 'photo' ), - __( 'picture' ), - ], example: { attributes: { sizeSlug: 'large', @@ -34,14 +27,6 @@ export const settings = { caption: __( 'Mont Blanc appears—still, snowy, and serene.' ), }, }, - styles: [ - { - name: 'default', - label: _x( 'Default', 'block style' ), - isDefault: true, - }, - { name: 'rounded', label: _x( 'Rounded', 'block style' ) }, - ], __experimentalLabel( attributes, { context } ) { if ( context === 'accessibility' ) { const { caption, alt, url } = attributes; diff --git a/packages/block-library/src/latest-comments/block.json b/packages/block-library/src/latest-comments/block.json index 37600026f8f710..fa5aace648fef0 100644 --- a/packages/block-library/src/latest-comments/block.json +++ b/packages/block-library/src/latest-comments/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/latest-comments", + "title": "Latest Comments", "category": "widgets", + "description": "Display a list of your most recent comments.", + "keywords": [ "recent comments" ], + "textdomain": "default", "attributes": { "commentsToShow": { "type": "number", diff --git a/packages/block-library/src/latest-comments/index.js b/packages/block-library/src/latest-comments/index.js index 3e77c68b0198cb..6497e8b5b927d6 100644 --- a/packages/block-library/src/latest-comments/index.js +++ b/packages/block-library/src/latest-comments/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { comment as icon } from '@wordpress/icons'; -import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -15,10 +14,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Latest Comments', 'block title' ), - description: __( 'Display a list of your most recent comments.' ), icon, - keywords: [ __( 'recent comments' ) ], example: {}, edit, }; diff --git a/packages/block-library/src/latest-posts/block.json b/packages/block-library/src/latest-posts/block.json index 46f1c197b6c531..dfc69621f5e238 100644 --- a/packages/block-library/src/latest-posts/block.json +++ b/packages/block-library/src/latest-posts/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/latest-posts", + "title": "Latest Posts", "category": "widgets", + "description": "Display a list of your most recent posts.", + "keywords": [ "recent posts" ], + "textdomain": "default", "attributes": { "categories": { "type": "array", diff --git a/packages/block-library/src/latest-posts/index.js b/packages/block-library/src/latest-posts/index.js index a17d52ca76fd3c..a0f8ffa74898b2 100644 --- a/packages/block-library/src/latest-posts/index.js +++ b/packages/block-library/src/latest-posts/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postList as icon } from '@wordpress/icons'; /** @@ -15,10 +14,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Latest Posts', 'block title' ), - description: __( 'Display a list of your most recent posts.' ), icon, - keywords: [ __( 'recent posts' ) ], example: {}, edit, deprecated, diff --git a/packages/block-library/src/legacy-widget/block.json b/packages/block-library/src/legacy-widget/block.json index 2ffbe6716a7860..30b60c6448835e 100644 --- a/packages/block-library/src/legacy-widget/block.json +++ b/packages/block-library/src/legacy-widget/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/legacy-widget", + "title": "Legacy Widget", "category": "widgets", + "description": "Display a legacy widget.", + "textdomain": "default", "attributes": { "id": { "type": "string", diff --git a/packages/block-library/src/legacy-widget/index.js b/packages/block-library/src/legacy-widget/index.js index d5dc0d33a923e2..ff542fb89fef2f 100644 --- a/packages/block-library/src/legacy-widget/index.js +++ b/packages/block-library/src/legacy-widget/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; import { widget as icon } from '@wordpress/icons'; /** @@ -15,8 +14,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: __( 'Legacy Widget' ), - description: __( 'Display a legacy widget.' ), icon, edit, transforms, diff --git a/packages/block-library/src/list/block.json b/packages/block-library/src/list/block.json index 7af618fb75388f..c0a26a10602c47 100644 --- a/packages/block-library/src/list/block.json +++ b/packages/block-library/src/list/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/list", + "title": "List", "category": "text", + "description": "Create a bulleted or numbered list.", + "keywords": [ "bullet list", "ordered list", "numbered list" ], + "textdomain": "default", "attributes": { "ordered": { "type": "boolean", diff --git a/packages/block-library/src/list/index.js b/packages/block-library/src/list/index.js index 9fac2ec6ef96a6..b2d1f5300feb8e 100644 --- a/packages/block-library/src/list/index.js +++ b/packages/block-library/src/list/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { list as icon } from '@wordpress/icons'; /** @@ -17,14 +16,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'List', 'block title' ), - description: __( 'Create a bulleted or numbered list.' ), icon, - keywords: [ - __( 'bullet list' ), - __( 'ordered list' ), - __( 'numbered list' ), - ], example: { attributes: { values: diff --git a/packages/block-library/src/loginout/block.json b/packages/block-library/src/loginout/block.json index 5c8240c0d7ca8d..117ec3c60e1fe5 100644 --- a/packages/block-library/src/loginout/block.json +++ b/packages/block-library/src/loginout/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/loginout", + "title": "Login/out", "category": "design", + "description": "Show login & logout links.", + "keywords": [ "login", "logout", "form" ], + "textdomain": "default", "attributes": { "displayLoginAsForm": { "type": "boolean", diff --git a/packages/block-library/src/loginout/index.js b/packages/block-library/src/loginout/index.js index 3f5c6625e0dc76..4f91f96242217e 100644 --- a/packages/block-library/src/loginout/index.js +++ b/packages/block-library/src/loginout/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { login as icon } from '@wordpress/icons'; /** @@ -14,9 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Login/out', 'block title' ), - description: __( 'Show login & logout links.' ), icon, - keywords: [ __( 'login' ), __( 'logout' ), __( 'form' ) ], edit, }; diff --git a/packages/block-library/src/media-text/block.json b/packages/block-library/src/media-text/block.json index 0e175cf04bd538..02f2c29430e60b 100644 --- a/packages/block-library/src/media-text/block.json +++ b/packages/block-library/src/media-text/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/media-text", + "title": "Media & Text", "category": "media", + "description": "Set media and words side-by-side for a richer layout.", + "keywords": [ "image", "video" ], + "textdomain": "default", "attributes": { "align": { "type": "string", diff --git a/packages/block-library/src/media-text/index.js b/packages/block-library/src/media-text/index.js index 68ee0420610c4f..c3c4c7ecfc790e 100644 --- a/packages/block-library/src/media-text/index.js +++ b/packages/block-library/src/media-text/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { mediaAndText as icon } from '@wordpress/icons'; /** @@ -18,10 +18,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Media & Text', 'block title' ), - description: __( 'Set media and words side-by-side for a richer layout.' ), icon, - keywords: [ __( 'image' ), __( 'video' ) ], example: { attributes: { mediaType: 'image', diff --git a/packages/block-library/src/missing/block.json b/packages/block-library/src/missing/block.json index f60bb8c9da3e77..21212b20409c4b 100644 --- a/packages/block-library/src/missing/block.json +++ b/packages/block-library/src/missing/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/missing", + "title": "Unsupported", "category": "text", + "description": "Your site doesn’t include support for this block.", + "textdomain": "default", "attributes": { "originalName": { "type": "string" diff --git a/packages/block-library/src/missing/index.js b/packages/block-library/src/missing/index.js index a96646c4030952..97db4e5c09b699 100644 --- a/packages/block-library/src/missing/index.js +++ b/packages/block-library/src/missing/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { getBlockType } from '@wordpress/blocks'; /** @@ -17,8 +16,6 @@ export { metadata, name }; export const settings = { name, - title: _x( 'Unsupported', 'block title' ), - description: __( 'Your site doesn’t include support for this block.' ), __experimentalLabel( attributes, { context } ) { if ( context === 'accessibility' ) { const { originalName } = attributes; diff --git a/packages/block-library/src/more/block.json b/packages/block-library/src/more/block.json index f49bbd58583a34..8b839c806a526f 100644 --- a/packages/block-library/src/more/block.json +++ b/packages/block-library/src/more/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/more", + "title": "More", "category": "design", + "description": "Content before this block will be shown in the excerpt on your archives page.", + "keywords": [ "read more" ], + "textdomain": "default", "attributes": { "customText": { "type": "string" diff --git a/packages/block-library/src/more/index.js b/packages/block-library/src/more/index.js index 36b40b190a2090..efe76cf07a17f4 100644 --- a/packages/block-library/src/more/index.js +++ b/packages/block-library/src/more/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { more as icon } from '@wordpress/icons'; /** @@ -17,11 +16,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'More', 'block title' ), - description: __( - 'Content before this block will be shown in the excerpt on your archives page.' - ), - keywords: [ __( 'read more' ) ], icon, example: {}, __experimentalLabel( attributes, { context } ) { diff --git a/packages/block-library/src/navigation-link/block.json b/packages/block-library/src/navigation-link/block.json index dc31e79bf798a5..7a1cc81bb20579 100644 --- a/packages/block-library/src/navigation-link/block.json +++ b/packages/block-library/src/navigation-link/block.json @@ -1,8 +1,11 @@ { "apiVersion": 2, "name": "core/navigation-link", + "title": "Custom Link", "category": "design", "parent": [ "core/navigation" ], + "description": "Add a page, link, or another item to your navigation.", + "textdomain": "default", "attributes": { "label": { "type": "string" diff --git a/packages/block-library/src/navigation-link/index.js b/packages/block-library/src/navigation-link/index.js index 3636236ade1df3..a62a27bfa8b29c 100644 --- a/packages/block-library/src/navigation-link/index.js +++ b/packages/block-library/src/navigation-link/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { _x } from '@wordpress/i18n'; import { customLink as linkIcon } from '@wordpress/icons'; import { InnerBlocks } from '@wordpress/block-editor'; import { addFilter } from '@wordpress/hooks'; @@ -19,12 +19,8 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Custom Link', 'block title' ), - icon: linkIcon, - description: __( 'Add a page, link, or another item to your navigation.' ), - __experimentalLabel: ( { label } ) => label, merge( leftAttributes, { label: rightLabel = '' } ) { diff --git a/packages/block-library/src/navigation/block.json b/packages/block-library/src/navigation/block.json index 28c7d25a89ea68..957980b70376c7 100644 --- a/packages/block-library/src/navigation/block.json +++ b/packages/block-library/src/navigation/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/navigation", + "title": "Navigation", "category": "design", + "description": "A collection of blocks that allow visitors to get around your site.", + "keywords": [ "menu", "navigation", "links" ], + "textdomain": "default", "attributes": { "orientation": { "type": "string" diff --git a/packages/block-library/src/navigation/index.js b/packages/block-library/src/navigation/index.js index 118760299228df..6a59695f97cfd8 100644 --- a/packages/block-library/src/navigation/index.js +++ b/packages/block-library/src/navigation/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { navigation as icon } from '@wordpress/icons'; /** @@ -18,12 +18,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Navigation', 'block title' ), icon, - description: __( - 'A collection of blocks that allow visitors to get around your site.' - ), - keywords: [ __( 'menu' ), __( 'navigation' ), __( 'links' ) ], variations, example: { innerBlocks: [ diff --git a/packages/block-library/src/nextpage/block.json b/packages/block-library/src/nextpage/block.json index f1a8a2745cb572..2314c322b1a8b3 100644 --- a/packages/block-library/src/nextpage/block.json +++ b/packages/block-library/src/nextpage/block.json @@ -1,8 +1,12 @@ { "apiVersion": 2, "name": "core/nextpage", + "title": "Page Break", "category": "design", + "description": "Separate your content into a multi-page experience.", + "keywords": [ "next page", "pagination" ], "parent": [ "core/post-content" ], + "textdomain": "default", "supports": { "customClassName": false, "className": false, diff --git a/packages/block-library/src/nextpage/index.js b/packages/block-library/src/nextpage/index.js index 5969b2f120d026..fabb7349c45e5a 100644 --- a/packages/block-library/src/nextpage/index.js +++ b/packages/block-library/src/nextpage/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { pageBreak as icon } from '@wordpress/icons'; /** @@ -17,10 +16,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Page Break', 'block title' ), - description: __( 'Separate your content into a multi-page experience.' ), icon, - keywords: [ __( 'next page' ), __( 'pagination' ) ], example: {}, transforms, edit, diff --git a/packages/block-library/src/page-list/block.json b/packages/block-library/src/page-list/block.json index 41fd13b667a951..25118d2dbeffb4 100644 --- a/packages/block-library/src/page-list/block.json +++ b/packages/block-library/src/page-list/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/page-list", + "title": "Page List", "category": "widgets", + "description": "Display a list of all pages.", + "keywords": [ "menu", "navigation" ], + "textdomain": "default", "usesContext": [ "textColor", "customTextColor", diff --git a/packages/block-library/src/page-list/index.js b/packages/block-library/src/page-list/index.js index f75a945716b501..ef026f2e916e98 100644 --- a/packages/block-library/src/page-list/index.js +++ b/packages/block-library/src/page-list/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { pages as icon } from '@wordpress/icons'; -import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -15,9 +14,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Page List', 'block title' ), - description: __( 'Display a list of all pages.' ), - keywords: [ __( 'menu' ), __( 'navigation' ) ], icon, example: {}, edit, diff --git a/packages/block-library/src/paragraph/block.json b/packages/block-library/src/paragraph/block.json index f7dee53633483d..b10ea9eef980e0 100644 --- a/packages/block-library/src/paragraph/block.json +++ b/packages/block-library/src/paragraph/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/paragraph", + "title": "Paragraph", "category": "text", + "description": "Start with the building block of all narrative.", + "keywords": [ "text" ], + "textdomain": "default", "attributes": { "align": { "type": "string" diff --git a/packages/block-library/src/paragraph/index.js b/packages/block-library/src/paragraph/index.js index ab7320d6a9e5b3..40a9db6d131db3 100644 --- a/packages/block-library/src/paragraph/index.js +++ b/packages/block-library/src/paragraph/index.js @@ -6,7 +6,7 @@ import { isEmpty } from 'lodash'; /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { paragraph as icon } from '@wordpress/icons'; /** @@ -23,10 +23,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Paragraph', 'block title' ), - description: __( 'Start with the building block of all narrative.' ), icon, - keywords: [ __( 'text' ) ], example: { attributes: { content: __( diff --git a/packages/block-library/src/post-author/block.json b/packages/block-library/src/post-author/block.json index f65ead96a6a200..3eb4a201901849 100644 --- a/packages/block-library/src/post-author/block.json +++ b/packages/block-library/src/post-author/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-author", + "title": "Post Author", "category": "design", + "description": "Add the author of this post.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-author/index.js b/packages/block-library/src/post-author/index.js index 356aae1ede9383..d3c19ddabf1116 100644 --- a/packages/block-library/src/post-author/index.js +++ b/packages/block-library/src/post-author/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __, _x } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,8 +9,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Author', 'block title' ), - description: __( 'Add the author of this post.' ), icon, edit, }; diff --git a/packages/block-library/src/post-comment-author/block.json b/packages/block-library/src/post-comment-author/block.json index 5821a34e15395d..c3a2231cc5d10b 100644 --- a/packages/block-library/src/post-comment-author/block.json +++ b/packages/block-library/src/post-comment-author/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/post-comment-author", + "title": "Post Comment Author", "category": "design", + "parent": [ "core/post-comment" ], + "description": "Post comment author.", + "textdomain": "default", "usesContext": [ "commentId" ], "supports": { "html": false diff --git a/packages/block-library/src/post-comment-author/index.js b/packages/block-library/src/post-comment-author/index.js index 7d5b975ceb4b3c..d3c19ddabf1116 100644 --- a/packages/block-library/src/post-comment-author/index.js +++ b/packages/block-library/src/post-comment-author/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __, _x } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,9 +9,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comment Author', 'block title' ), - description: __( 'Post Comment Author' ), icon, edit, - parent: [ 'core/post-comment' ], }; diff --git a/packages/block-library/src/post-comment-content/block.json b/packages/block-library/src/post-comment-content/block.json index 46bf28b50b73f5..53cb97d855fd5e 100644 --- a/packages/block-library/src/post-comment-content/block.json +++ b/packages/block-library/src/post-comment-content/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/post-comment-content", + "title": "Post Comment Content", "category": "design", + "parent": [ "core/post-comment" ], + "description": "Post comment content", + "textdomain": "default", "usesContext": [ "commentId" ], "supports": { "html": false diff --git a/packages/block-library/src/post-comment-content/index.js b/packages/block-library/src/post-comment-content/index.js index 5c5f46dc5ccf53..e5025ba5110e0f 100644 --- a/packages/block-library/src/post-comment-content/index.js +++ b/packages/block-library/src/post-comment-content/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postContent as icon } from '@wordpress/icons'; /** @@ -14,9 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comment Content', 'block title' ), - description: __( 'Post Comment Content' ), icon, edit, - parent: [ 'core/post-comment' ], }; diff --git a/packages/block-library/src/post-comment-date/block.json b/packages/block-library/src/post-comment-date/block.json index 5d4d2ac76e1b2b..246711340a60e7 100644 --- a/packages/block-library/src/post-comment-date/block.json +++ b/packages/block-library/src/post-comment-date/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/post-comment-date", + "title": "Post Comment Date", "category": "design", + "parent": [ "core/post-comment" ], + "description": "Post comment date.", + "textdomain": "default", "attributes": { "format": { "type": "string" diff --git a/packages/block-library/src/post-comment-date/index.js b/packages/block-library/src/post-comment-date/index.js index c302dd3186f651..6cba9841dfdfa1 100644 --- a/packages/block-library/src/post-comment-date/index.js +++ b/packages/block-library/src/post-comment-date/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postDate as icon } from '@wordpress/icons'; /** @@ -14,9 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comment Date', 'block title' ), - description: __( 'Post Comment Date' ), icon, edit, - parent: [ 'core/post-comment' ], }; diff --git a/packages/block-library/src/post-comment/block.json b/packages/block-library/src/post-comment/block.json index 90123d6a66c3d2..12b1c6a484b1eb 100644 --- a/packages/block-library/src/post-comment/block.json +++ b/packages/block-library/src/post-comment/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-comment", + "title": "Post Comment", "category": "design", + "description": "Post comment.", + "textdomain": "default", "attributes": { "commentId": { "type": "number" diff --git a/packages/block-library/src/post-comment/index.js b/packages/block-library/src/post-comment/index.js index a4f95275eaa45b..3a11344bad652e 100644 --- a/packages/block-library/src/post-comment/index.js +++ b/packages/block-library/src/post-comment/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { comment as icon } from '@wordpress/icons'; /** @@ -15,8 +14,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comment', 'block title' ), - description: __( 'Post Comment' ), icon, edit, save, diff --git a/packages/block-library/src/post-comments-count/block.json b/packages/block-library/src/post-comments-count/block.json index ff805e62e98edf..8eb4071c228d84 100644 --- a/packages/block-library/src/post-comments-count/block.json +++ b/packages/block-library/src/post-comments-count/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-comments-count", + "title": "Post Comments Count", "category": "design", + "description": "Display a post's comments count.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-comments-count/index.js b/packages/block-library/src/post-comments-count/index.js index 38aa4ae0387407..cdf53006c224eb 100644 --- a/packages/block-library/src/post-comments-count/index.js +++ b/packages/block-library/src/post-comments-count/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postCommentsCount as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comments Count', 'block title' ), - description: __( "Display a post's comments count." ), icon, edit, }; diff --git a/packages/block-library/src/post-comments-form/block.json b/packages/block-library/src/post-comments-form/block.json index 4601db8546c4e0..30b6997c61dcf3 100644 --- a/packages/block-library/src/post-comments-form/block.json +++ b/packages/block-library/src/post-comments-form/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-comments-form", + "title": "Post Comments Form", "category": "design", + "description": "Display a post's comments form.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-comments-form/index.js b/packages/block-library/src/post-comments-form/index.js index b62c7f23512f33..bcc113faad411a 100644 --- a/packages/block-library/src/post-comments-form/index.js +++ b/packages/block-library/src/post-comments-form/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postCommentsForm as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comments Form', 'block title' ), - description: __( "Display a post's comments form." ), icon, edit, }; diff --git a/packages/block-library/src/post-comments-link/block.json b/packages/block-library/src/post-comments-link/block.json index be6bdeac5b2ce5..bfba33ed2ff44d 100644 --- a/packages/block-library/src/post-comments-link/block.json +++ b/packages/block-library/src/post-comments-link/block.json @@ -1,11 +1,11 @@ { "apiVersion": 2, "name": "core/post-comments-link", + "title": "Post Comments Link", "category": "design", - "usesContext": [ - "postType", - "postId" - ], + "description": "Displays the link to the current post comments.", + "textdomain": "default", + "usesContext": [ "postType", "postId" ], "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-comments-link/index.js b/packages/block-library/src/post-comments-link/index.js index a6525fa1f06e61..f79a7ad55adaf3 100644 --- a/packages/block-library/src/post-comments-link/index.js +++ b/packages/block-library/src/post-comments-link/index.js @@ -1,21 +1,18 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { postCommentsCount as icon } from '@wordpress/icons'; /** * Internal dependencies */ import metadata from './block.json'; import edit from './edit'; -import { postCommentsCount as icon } from '@wordpress/icons'; const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comments Link', 'block title' ), - description: __( 'Displays the link to the current post comments.' ), edit, icon, }; diff --git a/packages/block-library/src/post-comments/block.json b/packages/block-library/src/post-comments/block.json index a29657c0b768e1..32b7da396ea4a1 100644 --- a/packages/block-library/src/post-comments/block.json +++ b/packages/block-library/src/post-comments/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-comments", + "title": "Post Comments", "category": "design", + "description": "Display a post's comments.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-comments/index.js b/packages/block-library/src/post-comments/index.js index 429918c09d113b..db109a576b7f93 100644 --- a/packages/block-library/src/post-comments/index.js +++ b/packages/block-library/src/post-comments/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postComments as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Comments', 'block title' ), - description: __( "Display a post's comments." ), icon, edit, }; diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index adeae5bc50fe4e..171a0a7eaceea6 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-content", + "title": "Post Content", "category": "design", + "description": "Displays the contents of a post or page.", + "textdomain": "default", "usesContext": [ "postId", "postType" ], "supports": { "align": [ "wide", "full" ], diff --git a/packages/block-library/src/post-content/index.js b/packages/block-library/src/post-content/index.js index 97a16b7ba68b63..e5025ba5110e0f 100644 --- a/packages/block-library/src/post-content/index.js +++ b/packages/block-library/src/post-content/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postContent as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Content', 'block title' ), - description: __( 'Displays the contents of a post or page.' ), icon, edit, }; diff --git a/packages/block-library/src/post-date/block.json b/packages/block-library/src/post-date/block.json index 9d68b33686161f..dbd837a037343f 100644 --- a/packages/block-library/src/post-date/block.json +++ b/packages/block-library/src/post-date/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-date", + "title": "Post Date", "category": "design", + "description": "Add the date of this post.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-date/index.js b/packages/block-library/src/post-date/index.js index 8f330073d99756..6cba9841dfdfa1 100644 --- a/packages/block-library/src/post-date/index.js +++ b/packages/block-library/src/post-date/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postDate as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Date', 'block title' ), - description: __( 'Add the date of this post.' ), icon, edit, }; diff --git a/packages/block-library/src/post-excerpt/block.json b/packages/block-library/src/post-excerpt/block.json index 6b89bb416166e6..bc654a1c2cf84b 100644 --- a/packages/block-library/src/post-excerpt/block.json +++ b/packages/block-library/src/post-excerpt/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-excerpt", + "title": "Post Excerpt", "category": "design", + "description": "Display a post's excerpt.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-excerpt/index.js b/packages/block-library/src/post-excerpt/index.js index bf9d0106dc21b2..f382774f3e63d8 100644 --- a/packages/block-library/src/post-excerpt/index.js +++ b/packages/block-library/src/post-excerpt/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postExcerpt as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Excerpt', 'block title' ), - description: __( "Display a post's excerpt." ), icon, edit, }; diff --git a/packages/block-library/src/post-featured-image/block.json b/packages/block-library/src/post-featured-image/block.json index 85a6fed5ccc553..6d22b03b129632 100644 --- a/packages/block-library/src/post-featured-image/block.json +++ b/packages/block-library/src/post-featured-image/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-featured-image", + "title": "Post Featured Image", "category": "design", + "description": "Display a post's featured image.", + "textdomain": "default", "attributes": { "isLink": { "type": "boolean", diff --git a/packages/block-library/src/post-featured-image/index.js b/packages/block-library/src/post-featured-image/index.js index fc9214febe2c25..3fcab4a0813675 100644 --- a/packages/block-library/src/post-featured-image/index.js +++ b/packages/block-library/src/post-featured-image/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postFeaturedImage as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Featured Image', 'block title' ), - description: __( "Display a post's featured image." ), icon, edit, }; diff --git a/packages/block-library/src/post-hierarchical-terms/block.json b/packages/block-library/src/post-hierarchical-terms/block.json index 5c6c58def893a4..68ebdbfa5edd14 100644 --- a/packages/block-library/src/post-hierarchical-terms/block.json +++ b/packages/block-library/src/post-hierarchical-terms/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-hierarchical-terms", + "title": "Post Hierarchical Terms", "category": "design", + "description": "Post hierarchical terms.", + "textdomain": "default", "attributes": { "term": { "type": "string" diff --git a/packages/block-library/src/post-hierarchical-terms/index.js b/packages/block-library/src/post-hierarchical-terms/index.js index 387f922a6aaebd..af236b291f7204 100644 --- a/packages/block-library/src/post-hierarchical-terms/index.js +++ b/packages/block-library/src/post-hierarchical-terms/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { _x } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,7 +9,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Hierarchical Terms', 'block title' ), variations, edit, }; diff --git a/packages/block-library/src/post-navigation-link/block.json b/packages/block-library/src/post-navigation-link/block.json index 549aa469c1f796..ce6240c839f89a 100644 --- a/packages/block-library/src/post-navigation-link/block.json +++ b/packages/block-library/src/post-navigation-link/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-navigation-link", + "title": "Post Navigation Link", "category": "design", + "description": "Displays the next or previous post link that is adjacent to the current post.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-navigation-link/index.js b/packages/block-library/src/post-navigation-link/index.js index 93b07e51ce5883..5f564739f69d0a 100644 --- a/packages/block-library/src/post-navigation-link/index.js +++ b/packages/block-library/src/post-navigation-link/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { _x, __ } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,13 +9,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( - 'Post Navigation Link', - 'name of the block that displays the next or previous post link that is adjacent to the current post' - ), - description: __( - 'Displays the next or previous post link that is adjacent to the current post.' - ), edit, variations, }; diff --git a/packages/block-library/src/post-tags/block.json b/packages/block-library/src/post-tags/block.json index 065685eaff5841..465eaf293fd7db 100644 --- a/packages/block-library/src/post-tags/block.json +++ b/packages/block-library/src/post-tags/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-tags", + "title": "Post Tags", "category": "design", + "description": "Display a post's tags.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/post-tags/index.js b/packages/block-library/src/post-tags/index.js index 547e8384ff490a..9150c7ade67543 100644 --- a/packages/block-library/src/post-tags/index.js +++ b/packages/block-library/src/post-tags/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { tag as icon } from '@wordpress/icons'; /** @@ -14,8 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Tags', 'block title' ), - description: __( "Display a post's tags." ), icon, edit, }; diff --git a/packages/block-library/src/post-title/block.json b/packages/block-library/src/post-title/block.json index 91b224b5dacd33..5d8373e6f92572 100644 --- a/packages/block-library/src/post-title/block.json +++ b/packages/block-library/src/post-title/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/post-title", + "title": "Post Title", "category": "design", + "description": "Displays the title of a post, page, or any other content-type.", + "textdomain": "default", "usesContext": [ "postId", "postType" ], "attributes": { "textAlign": { diff --git a/packages/block-library/src/post-title/index.js b/packages/block-library/src/post-title/index.js index 609ad1405c31a5..4f1dcdfc4f3a31 100644 --- a/packages/block-library/src/post-title/index.js +++ b/packages/block-library/src/post-title/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { postTitle as icon } from '@wordpress/icons'; /** @@ -14,10 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Post Title', 'block title' ), - description: __( - 'Displays the title of a post, page, or any other content-type.' - ), icon, edit, }; diff --git a/packages/block-library/src/preformatted/block.json b/packages/block-library/src/preformatted/block.json index 56a325bf8f07a6..ece56338db0df7 100644 --- a/packages/block-library/src/preformatted/block.json +++ b/packages/block-library/src/preformatted/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/preformatted", + "title": "Preformatted", "category": "text", + "description": "Add text that respects your spacing and tabs, and also allows styling.", + "textdomain": "default", "attributes": { "content": { "type": "string", diff --git a/packages/block-library/src/preformatted/index.js b/packages/block-library/src/preformatted/index.js index bb5a4b3c9668b8..2962464dce4238 100644 --- a/packages/block-library/src/preformatted/index.js +++ b/packages/block-library/src/preformatted/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { preformatted as icon } from '@wordpress/icons'; /** @@ -17,10 +17,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Preformatted', 'block title' ), - description: __( - 'Add text that respects your spacing and tabs, and also allows styling.' - ), icon, example: { attributes: { diff --git a/packages/block-library/src/pullquote/block.json b/packages/block-library/src/pullquote/block.json index 9b64a2c253bc73..1237a506ad7064 100644 --- a/packages/block-library/src/pullquote/block.json +++ b/packages/block-library/src/pullquote/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/pullquote", + "title": "Pullquote", "category": "text", + "description": "Give special visual emphasis to a quote from your text.", + "textdomain": "default", "attributes": { "value": { "type": "string", @@ -34,6 +37,14 @@ "anchor": true, "align": [ "left", "right", "wide", "full" ] }, + "styles": [ + { + "name": "default", + "label": "Default", + "isDefault": true + }, + { "name": "solid-color", "label": "Solid color" } + ], "editorStyle": "wp-block-pullquote-editor", "style": "wp-block-pullquote" } diff --git a/packages/block-library/src/pullquote/index.js b/packages/block-library/src/pullquote/index.js index ca71b5ce69b39d..d3694b7826940d 100644 --- a/packages/block-library/src/pullquote/index.js +++ b/packages/block-library/src/pullquote/index.js @@ -1,13 +1,12 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { pullquote as icon } from '@wordpress/icons'; /** * Internal dependencies */ -import { SOLID_COLOR_STYLE_NAME } from './shared'; import deprecated from './deprecated'; import edit from './edit'; import metadata from './block.json'; @@ -19,10 +18,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Pullquote', 'block title' ), - description: __( - 'Give special visual emphasis to a quote from your text.' - ), icon, example: { attributes: { @@ -36,14 +31,6 @@ export const settings = { citation: __( 'Matt Mullenweg' ), }, }, - styles: [ - { - name: 'default', - label: _x( 'Default', 'block style' ), - isDefault: true, - }, - { name: SOLID_COLOR_STYLE_NAME, label: __( 'Solid color' ) }, - ], transforms, edit, save, diff --git a/packages/block-library/src/pullquote/shared.js b/packages/block-library/src/pullquote/shared.js index f4a58bc2baed22..681b5a7ee06882 100644 --- a/packages/block-library/src/pullquote/shared.js +++ b/packages/block-library/src/pullquote/shared.js @@ -1,2 +1 @@ -export const SOLID_COLOR_STYLE_NAME = 'solid-color'; -export const SOLID_COLOR_CLASS = `is-style-${ SOLID_COLOR_STYLE_NAME }`; +export const SOLID_COLOR_CLASS = `is-style-solid-color`; diff --git a/packages/block-library/src/query-loop/block.json b/packages/block-library/src/query-loop/block.json index 724169afc851d1..5f749f1d7019ce 100644 --- a/packages/block-library/src/query-loop/block.json +++ b/packages/block-library/src/query-loop/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/query-loop", + "title": "Query Loop", "category": "design", + "parent": [ "core/query" ], + "description": "Query loop.", + "textdomain": "default", "usesContext": [ "queryId", "query", diff --git a/packages/block-library/src/query-loop/index.js b/packages/block-library/src/query-loop/index.js index dffda9ec96f013..5e3bba213228bf 100644 --- a/packages/block-library/src/query-loop/index.js +++ b/packages/block-library/src/query-loop/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { _x } from '@wordpress/i18n'; import { loop } from '@wordpress/icons'; /** @@ -15,9 +14,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Query Loop', 'block title' ), icon: loop, edit, save, - parent: [ 'core/query' ], }; diff --git a/packages/block-library/src/query-pagination-next/block.json b/packages/block-library/src/query-pagination-next/block.json index ae49ec09313467..d3f018907d9efb 100644 --- a/packages/block-library/src/query-pagination-next/block.json +++ b/packages/block-library/src/query-pagination-next/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/query-pagination-next", + "title": "Query Pagination Next", "category": "design", + "parent": [ "core/query-pagination" ], + "description": "Displays the next posts page link.", + "textdomain": "default", "attributes": { "label": { "type": "string" diff --git a/packages/block-library/src/query-pagination-next/index.js b/packages/block-library/src/query-pagination-next/index.js index 63236db84aa90f..d339ed2ca7581c 100644 --- a/packages/block-library/src/query-pagination-next/index.js +++ b/packages/block-library/src/query-pagination-next/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { _x, __ } from '@wordpress/i18n'; import { queryPaginationNext as icon } from '@wordpress/icons'; /** @@ -14,9 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Query Pagination Next', 'block title' ), - description: __( 'Displays the next posts page link.' ), icon, edit, - parent: [ 'core/query-pagination' ], }; diff --git a/packages/block-library/src/query-pagination-numbers/block.json b/packages/block-library/src/query-pagination-numbers/block.json index 26b981c6f1e7b8..d9142de147f84a 100644 --- a/packages/block-library/src/query-pagination-numbers/block.json +++ b/packages/block-library/src/query-pagination-numbers/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/query-pagination-numbers", + "title": "Query Pagination Numbers", "category": "design", + "parent": [ "core/query-pagination" ], + "description": "Displays a list of page numbers for pagination", + "textdomain": "default", "usesContext": [ "queryId", "query" ], "supports": { "reusable": false, diff --git a/packages/block-library/src/query-pagination-numbers/index.js b/packages/block-library/src/query-pagination-numbers/index.js index 41ab95578ee250..9f1818b1f14a0f 100644 --- a/packages/block-library/src/query-pagination-numbers/index.js +++ b/packages/block-library/src/query-pagination-numbers/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { _x, __ } from '@wordpress/i18n'; import { queryPaginationNumbers as icon } from '@wordpress/icons'; /** @@ -14,9 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Query Pagination Numbers', 'block title' ), - description: __( 'Displays a list of page numbers for pagination' ), icon, edit, - parent: [ 'core/query-pagination' ], }; diff --git a/packages/block-library/src/query-pagination-previous/block.json b/packages/block-library/src/query-pagination-previous/block.json index 8cad276d14a3b5..ace5b5fbf32afc 100644 --- a/packages/block-library/src/query-pagination-previous/block.json +++ b/packages/block-library/src/query-pagination-previous/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/query-pagination-previous", + "title": "Query Pagination Previous", "category": "design", + "parent": [ "core/query-pagination" ], + "description": "Displays the previous posts page link.", + "textdomain": "default", "attributes": { "label": { "type": "string" diff --git a/packages/block-library/src/query-pagination-previous/index.js b/packages/block-library/src/query-pagination-previous/index.js index cc6ba94a0a091d..a66be076169442 100644 --- a/packages/block-library/src/query-pagination-previous/index.js +++ b/packages/block-library/src/query-pagination-previous/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { _x, __ } from '@wordpress/i18n'; import { queryPaginationPrevious as icon } from '@wordpress/icons'; /** @@ -14,9 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Query Pagination Previous', 'block title' ), - description: __( 'Displays the previous posts page link.' ), icon, edit, - parent: [ 'core/query-pagination' ], }; diff --git a/packages/block-library/src/query-pagination/block.json b/packages/block-library/src/query-pagination/block.json index edab3acc951d65..026a5b3e35f69c 100644 --- a/packages/block-library/src/query-pagination/block.json +++ b/packages/block-library/src/query-pagination/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/query-pagination", + "title": "Query Pagination", "category": "design", + "parent": [ "core/query" ], + "description": "Displays a paginated navigation to next/previous set of posts, when applicable.", + "textdomain": "default", "usesContext": [ "queryId", "query" ], "supports": { "reusable": false, diff --git a/packages/block-library/src/query-pagination/index.js b/packages/block-library/src/query-pagination/index.js index 0bb7b98a54c0d8..a15bdd4389cee5 100644 --- a/packages/block-library/src/query-pagination/index.js +++ b/packages/block-library/src/query-pagination/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { _x, __ } from '@wordpress/i18n'; import { queryPagination as icon } from '@wordpress/icons'; /** @@ -15,12 +14,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Query Pagination', 'block title' ), - description: __( - 'Displays a paginated navigation to next/previous set of posts, when applicable.' - ), icon, edit, save, - parent: [ 'core/query' ], }; diff --git a/packages/block-library/src/query-title/block.json b/packages/block-library/src/query-title/block.json index 6635b27d5e2c37..d3648269997bca 100644 --- a/packages/block-library/src/query-title/block.json +++ b/packages/block-library/src/query-title/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/query-title", + "title": "Query Title", "category": "design", + "description": "Display the query title.", + "textdomain": "default", "attributes": { "type": { "type": "string" diff --git a/packages/block-library/src/query-title/index.js b/packages/block-library/src/query-title/index.js index faa637638952a4..5f564739f69d0a 100644 --- a/packages/block-library/src/query-title/index.js +++ b/packages/block-library/src/query-title/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __ } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,8 +9,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: __( 'Query Title' ), - description: __( 'Display the query title.' ), edit, variations, }; diff --git a/packages/block-library/src/query/block.json b/packages/block-library/src/query/block.json index fc557abee646e3..d3c8c161d99871 100644 --- a/packages/block-library/src/query/block.json +++ b/packages/block-library/src/query/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/query", + "title": "Query", "category": "design", + "description": "Displays a list of posts as a result of a query.", + "textdomain": "default", "attributes": { "queryId": { "type": "number" diff --git a/packages/block-library/src/query/index.js b/packages/block-library/src/query/index.js index 317fd1b0445739..c081c982e6f995 100644 --- a/packages/block-library/src/query/index.js +++ b/packages/block-library/src/query/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { loop as icon } from '@wordpress/icons'; /** @@ -16,9 +15,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Query', 'block title' ), icon, - description: __( 'Displays a list of posts as a result of a query.' ), edit, save, variations, diff --git a/packages/block-library/src/quote/block.json b/packages/block-library/src/quote/block.json index 0f026e96f6abf8..9bae4dff96cb60 100644 --- a/packages/block-library/src/quote/block.json +++ b/packages/block-library/src/quote/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/quote", + "title": "Quote", "category": "text", + "description": "Give quoted text visual emphasis. \"In quoting others, we cite ourselves.\" — Julio Cortázar", + "keywords": [ "blockquote", "cite" ], + "textdomain": "default", "attributes": { "value": { "type": "string", @@ -25,6 +29,14 @@ "supports": { "anchor": true }, + "styles": [ + { + "name": "default", + "label": "Default", + "isDefault": true + }, + { "name": "large", "label": "Large" } + ], "editorStyle": "wp-block-quote-editor", "style": "wp-block-quote" } diff --git a/packages/block-library/src/quote/index.js b/packages/block-library/src/quote/index.js index 95aba9a26758c4..bb9128951ab23a 100644 --- a/packages/block-library/src/quote/index.js +++ b/packages/block-library/src/quote/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { quote as icon } from '@wordpress/icons'; /** @@ -18,12 +18,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Quote', 'block title' ), - description: __( - 'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar' - ), icon, - keywords: [ __( 'blockquote' ), __( 'cite' ) ], example: { attributes: { value: @@ -32,14 +27,6 @@ export const settings = { className: 'is-style-large', }, }, - styles: [ - { - name: 'default', - label: _x( 'Default', 'block style' ), - isDefault: true, - }, - { name: 'large', label: _x( 'Large', 'block style' ) }, - ], transforms, edit, save, diff --git a/packages/block-library/src/rss/block.json b/packages/block-library/src/rss/block.json index 15a0feaa6f3552..eeebfaaa4eb51a 100644 --- a/packages/block-library/src/rss/block.json +++ b/packages/block-library/src/rss/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/rss", + "title": "RSS", "category": "widgets", + "description": "Display entries from any RSS or Atom feed.", + "keywords": [ "atom", "feed" ], + "textdomain": "default", "attributes": { "columns": { "type": "number", diff --git a/packages/block-library/src/rss/index.js b/packages/block-library/src/rss/index.js index ef96973522efce..f0c4c3c3789bf2 100644 --- a/packages/block-library/src/rss/index.js +++ b/packages/block-library/src/rss/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { rss as icon } from '@wordpress/icons'; -import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -15,10 +14,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'RSS', 'block title' ), - description: __( 'Display entries from any RSS or Atom feed.' ), icon, - keywords: [ __( 'atom' ), __( 'feed' ) ], example: { attributes: { feedURL: 'https://wordpress.org', diff --git a/packages/block-library/src/search/block.json b/packages/block-library/src/search/block.json index 96e0f7a923c192..b96f14f53c778c 100644 --- a/packages/block-library/src/search/block.json +++ b/packages/block-library/src/search/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/search", + "title": "Search", "category": "widgets", + "description": "Help visitors find your content.", + "keywords": [ "find" ], + "textdomain": "default", "attributes": { "label": { "type": "string", diff --git a/packages/block-library/src/search/index.js b/packages/block-library/src/search/index.js index 69e0818ef5cf58..7e946636c5048c 100644 --- a/packages/block-library/src/search/index.js +++ b/packages/block-library/src/search/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { search as icon } from '@wordpress/icons'; /** @@ -16,10 +15,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Search', 'block title' ), - description: __( 'Help visitors find your content.' ), icon, - keywords: [ __( 'find' ) ], example: {}, variations, edit, diff --git a/packages/block-library/src/separator/block.json b/packages/block-library/src/separator/block.json index 011b9d3219f9bc..784146a733fbde 100644 --- a/packages/block-library/src/separator/block.json +++ b/packages/block-library/src/separator/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/separator", + "title": "Separator", "category": "design", + "description": "Create a break between ideas or sections with a horizontal separator.", + "keywords": [ "horizontal-line", "hr", "divider" ], + "textdomain": "default", "attributes": { "color": { "type": "string" @@ -14,6 +18,11 @@ "anchor": true, "align": [ "center", "wide", "full" ] }, + "styles": [ + { "name": "default", "label": "Default", "isDefault": true }, + { "name": "wide", "label": "Wide Line" }, + { "name": "dots", "label": "Dots" } + ], "editorStyle": "wp-block-separator-editor", "style": "wp-block-separator" } diff --git a/packages/block-library/src/separator/index.js b/packages/block-library/src/separator/index.js index afa59a631a9a1e..77e3a46dc7ae3d 100644 --- a/packages/block-library/src/separator/index.js +++ b/packages/block-library/src/separator/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { separator as icon } from '@wordpress/icons'; /** @@ -17,23 +16,13 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Separator', 'block title' ), - description: __( - 'Create a break between ideas or sections with a horizontal separator.' - ), icon, - keywords: [ __( 'horizontal-line' ), 'hr', __( 'divider' ) ], example: { attributes: { customColor: '#065174', className: 'is-style-wide', }, }, - styles: [ - { name: 'default', label: __( 'Default' ), isDefault: true }, - { name: 'wide', label: __( 'Wide Line' ) }, - { name: 'dots', label: __( 'Dots' ) }, - ], transforms, edit, save, diff --git a/packages/block-library/src/shortcode/block.json b/packages/block-library/src/shortcode/block.json index 4f92abd419f6e9..5def641768bbdd 100644 --- a/packages/block-library/src/shortcode/block.json +++ b/packages/block-library/src/shortcode/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/shortcode", + "title": "Shortcode", "category": "widgets", + "description": "Insert additional custom elements with a WordPress shortcode.", + "textdomain": "default", "attributes": { "text": { "type": "string", diff --git a/packages/block-library/src/shortcode/index.js b/packages/block-library/src/shortcode/index.js index a357075e92877f..37749dbfa73650 100644 --- a/packages/block-library/src/shortcode/index.js +++ b/packages/block-library/src/shortcode/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { shortcode as icon } from '@wordpress/icons'; /** @@ -17,10 +16,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Shortcode', 'block title' ), - description: __( - 'Insert additional custom elements with a WordPress shortcode.' - ), icon, transforms, edit, diff --git a/packages/block-library/src/site-logo/block.json b/packages/block-library/src/site-logo/block.json index 35313f0212b39d..5c23af75857e62 100644 --- a/packages/block-library/src/site-logo/block.json +++ b/packages/block-library/src/site-logo/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/site-logo", + "title": "Site Logo", "category": "layout", + "description": "Useful for displaying a graphic mark, design, or symbol to represent the site. Once a site logo is set, it can be reused in different places and templates. It should not be confused with the site icon, which is the small image used in the dashboard, browser tabs, public search results, etc, to help recognize a site.", + "textdomain": "default", "attributes": { "align": { "type": "string" @@ -13,6 +16,14 @@ "supports": { "html": false }, + "styles": [ + { + "name": "default", + "label": "Default", + "isDefault": true + }, + { "name": "rounded", "label": "Rounded" } + ], "editorStyle": "wp-block-site-logo-editor", "style": "wp-block-site-logo" } diff --git a/packages/block-library/src/site-logo/index.js b/packages/block-library/src/site-logo/index.js index edfe6458f00eb8..75726170219e95 100644 --- a/packages/block-library/src/site-logo/index.js +++ b/packages/block-library/src/site-logo/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { siteLogo as icon } from '@wordpress/icons'; /** @@ -14,19 +13,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Site Logo', 'block title' ), - description: __( - 'Useful for displaying a graphic mark, design, or symbol to represent the site. Once a site logo is set, it can be reused in different places and templates. It should not be confused with the site icon, which is the small image used in the dashboard, browser tabs, public search results, etc, to help recognize a site.' - ), icon, - styles: [ - { - name: 'default', - label: _x( 'Default', 'block style' ), - isDefault: true, - }, - { name: 'rounded', label: _x( 'Rounded', 'block style' ) }, - ], supports: { align: true, alignWide: false, diff --git a/packages/block-library/src/site-tagline/block.json b/packages/block-library/src/site-tagline/block.json index 8fab35dfc364ad..1ba1803d8e2bdf 100644 --- a/packages/block-library/src/site-tagline/block.json +++ b/packages/block-library/src/site-tagline/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/site-tagline", + "title": "Site Tagline", "category": "design", + "description": "In a few words, what this site is about.", + "keywords": [ "description" ], + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/site-tagline/index.js b/packages/block-library/src/site-tagline/index.js index 8b19f838dca315..d3c19ddabf1116 100644 --- a/packages/block-library/src/site-tagline/index.js +++ b/packages/block-library/src/site-tagline/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __, _x } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -14,9 +9,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Site Tagline', 'block title' ), - description: __( 'In a few words, what this site is about.' ), - keywords: [ __( 'description' ) ], icon, edit, }; diff --git a/packages/block-library/src/site-title/block.json b/packages/block-library/src/site-title/block.json index d0c03447e14609..cb8cb300adf72c 100644 --- a/packages/block-library/src/site-title/block.json +++ b/packages/block-library/src/site-title/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/site-title", + "title": "Site Title", "category": "design", + "description": "Displays and allows editing the name of the site. The site title usually appears in the browser title bar, in search results, and more. Also available in Settings > General.", + "textdomain": "default", "attributes": { "level": { "type": "number", diff --git a/packages/block-library/src/site-title/index.js b/packages/block-library/src/site-title/index.js index 96c264d562085d..c425e41c5100a8 100644 --- a/packages/block-library/src/site-title/index.js +++ b/packages/block-library/src/site-title/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { mapMarker as icon } from '@wordpress/icons'; /** @@ -14,10 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Site Title', 'block title' ), - description: __( - 'Displays and allows editing the name of the site. The site title usually appears in the browser title bar, in search results, and more. Also available in Settings > General.' - ), icon, edit, }; diff --git a/packages/block-library/src/social-link/block.json b/packages/block-library/src/social-link/block.json index 32f01cf45be797..a477d3e413072a 100644 --- a/packages/block-library/src/social-link/block.json +++ b/packages/block-library/src/social-link/block.json @@ -1,8 +1,11 @@ { "apiVersion": 2, "name": "core/social-link", + "title": "Social Icon", "category": "widgets", "parent": [ "core/social-links" ], + "description": "Display an icon linking to a social media profile or website.", + "textdomain": "default", "attributes": { "url": { "type": "string" diff --git a/packages/block-library/src/social-link/index.js b/packages/block-library/src/social-link/index.js index 5bfaae90b7212a..2944183dc4089a 100644 --- a/packages/block-library/src/social-link/index.js +++ b/packages/block-library/src/social-link/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { share as icon } from '@wordpress/icons'; /** @@ -16,11 +15,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Social Icon', 'block title' ), icon, edit, - description: __( - 'Display an icon linking to a social media profile or website.' - ), variations, }; diff --git a/packages/block-library/src/social-links/block.json b/packages/block-library/src/social-links/block.json index 7646cc1f76ce32..b559ae04fa8a51 100644 --- a/packages/block-library/src/social-links/block.json +++ b/packages/block-library/src/social-links/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/social-links", + "title": "Social Icons", "category": "widgets", + "description": "Display icons linking to your social media profiles or websites.", + "keywords": [ "links" ], + "textdomain": "default", "attributes": { "iconColor": { "type": "string" @@ -38,6 +42,11 @@ "align": [ "left", "center", "right" ], "anchor": true }, + "styles": [ + { "name": "default", "label": "Default", "isDefault": true }, + { "name": "logos-only", "label": "Logos Only" }, + { "name": "pill-shape", "label": "Pill Shape" } + ], "editorStyle": "wp-block-social-links-editor", "style": "wp-block-social-links" } diff --git a/packages/block-library/src/social-links/index.js b/packages/block-library/src/social-links/index.js index 778cb49c05cf6b..b323624b2b5b67 100644 --- a/packages/block-library/src/social-links/index.js +++ b/packages/block-library/src/social-links/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { share as icon } from '@wordpress/icons'; /** @@ -17,11 +16,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Social Icons', 'block title' ), - description: __( - 'Display icons linking to your social media profiles or websites.' - ), - keywords: [ _x( 'links', 'block keywords' ) ], example: { innerBlocks: [ { @@ -47,11 +41,6 @@ export const settings = { }, ], }, - styles: [ - { name: 'default', label: __( 'Default' ), isDefault: true }, - { name: 'logos-only', label: __( 'Logos Only' ) }, - { name: 'pill-shape', label: __( 'Pill Shape' ) }, - ], icon, edit, save, diff --git a/packages/block-library/src/spacer/block.json b/packages/block-library/src/spacer/block.json index 55e9586cd8c71b..b85de6e4ab6305 100644 --- a/packages/block-library/src/spacer/block.json +++ b/packages/block-library/src/spacer/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/spacer", + "title": "Spacer", "category": "design", + "description": "Add white space between blocks and customize its height.", + "textdomain": "default", "attributes": { "height": { "type": "number", diff --git a/packages/block-library/src/spacer/index.js b/packages/block-library/src/spacer/index.js index 0124d89524d33c..b34da523d534a9 100644 --- a/packages/block-library/src/spacer/index.js +++ b/packages/block-library/src/spacer/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { resizeCornerNE as icon } from '@wordpress/icons'; /** @@ -16,10 +15,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Spacer', 'block title' ), - description: __( - 'Add white space between blocks and customize its height.' - ), icon, edit, save, diff --git a/packages/block-library/src/table-of-contents/block.json b/packages/block-library/src/table-of-contents/block.json index 1008a886df8900..d99791b085af33 100644 --- a/packages/block-library/src/table-of-contents/block.json +++ b/packages/block-library/src/table-of-contents/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/table-of-contents", + "title": "Table of Contents", "category": "layout", + "description": "Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.", + "keywords": [ "document outline", "summary" ], + "textdomain": "default", "attributes": { "onlyIncludeCurrentPage": { "type": "boolean", diff --git a/packages/block-library/src/table-of-contents/index.js b/packages/block-library/src/table-of-contents/index.js index fc6149a0b00721..b9639508217db0 100644 --- a/packages/block-library/src/table-of-contents/index.js +++ b/packages/block-library/src/table-of-contents/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __ } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -15,11 +10,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: __( 'Table of Contents' ), - description: __( - 'Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.' - ), icon, - keywords: [ __( 'document outline' ), __( 'summary' ) ], edit, }; diff --git a/packages/block-library/src/table/block.json b/packages/block-library/src/table/block.json index 65e907620afb51..81235418b2ee4e 100644 --- a/packages/block-library/src/table/block.json +++ b/packages/block-library/src/table/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/table", + "title": "Table", "category": "text", + "description": "Insert a table — perfect for sharing charts and data.", + "textdomain": "default", "attributes": { "hasFixedLayout": { "type": "boolean", @@ -127,6 +130,14 @@ "align": true, "__experimentalSelector": ".wp-block-table > table" }, + "styles": [ + { + "name": "regular", + "label": "Default", + "isDefault": true + }, + { "name": "stripes", "label": "Stripes" } + ], "editorStyle": "wp-block-table-editor", "style": "wp-block-table" } diff --git a/packages/block-library/src/table/index.js b/packages/block-library/src/table/index.js index cca8686afba6ac..cfa7bb0b02aa64 100644 --- a/packages/block-library/src/table/index.js +++ b/packages/block-library/src/table/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { blockTable as icon } from '@wordpress/icons'; /** @@ -18,8 +18,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Table', 'block title' ), - description: __( 'Insert a table — perfect for sharing charts and data.' ), icon, example: { attributes: { @@ -93,14 +91,6 @@ export const settings = { ], }, }, - styles: [ - { - name: 'regular', - label: _x( 'Default', 'block style' ), - isDefault: true, - }, - { name: 'stripes', label: __( 'Stripes' ) }, - ], transforms, edit, save, diff --git a/packages/block-library/src/tag-cloud/block.json b/packages/block-library/src/tag-cloud/block.json index de4b9b9714f664..e394a53223ce88 100644 --- a/packages/block-library/src/tag-cloud/block.json +++ b/packages/block-library/src/tag-cloud/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/tag-cloud", + "title": "Tag Cloud", "category": "widgets", + "description": "A cloud of your most used tags.", + "textdomain": "default", "attributes": { "taxonomy": { "type": "string", diff --git a/packages/block-library/src/tag-cloud/index.js b/packages/block-library/src/tag-cloud/index.js index e0e6e48a869036..63816b8aa506a5 100644 --- a/packages/block-library/src/tag-cloud/index.js +++ b/packages/block-library/src/tag-cloud/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; import { tag as icon } from '@wordpress/icons'; /** @@ -15,8 +14,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Tag Cloud', 'block title' ), - description: __( 'A cloud of your most used tags.' ), icon, example: {}, edit, diff --git a/packages/block-library/src/template-part/block.json b/packages/block-library/src/template-part/block.json index c66bed73d33d7f..7e85b0f6aa8bd0 100644 --- a/packages/block-library/src/template-part/block.json +++ b/packages/block-library/src/template-part/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/template-part", + "title": "Template Part", "category": "theme", + "description": "Edit the different global regions of your site, like the header, footer, sidebar, or create your own.", + "textdomain": "default", "attributes": { "slug": { "type": "string" diff --git a/packages/block-library/src/template-part/index.js b/packages/block-library/src/template-part/index.js index 46a0e5bc684fce..091a86bbf9a2ff 100644 --- a/packages/block-library/src/template-part/index.js +++ b/packages/block-library/src/template-part/index.js @@ -8,7 +8,6 @@ import { startCase } from 'lodash'; */ import { store as coreDataStore } from '@wordpress/core-data'; import { select } from '@wordpress/data'; -import { __, _x } from '@wordpress/i18n'; import { layout } from '@wordpress/icons'; /** @@ -22,12 +21,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Template Part', 'block title' ), - description: __( - 'Edit the different global regions of your site, like the header, footer, sidebar, or create your own.' - ), icon: layout, - keywords: [ __( 'template part' ) ], __experimentalLabel: ( { slug, theme } ) => { // Attempt to find entity title if block is a template part. // Require slug to request, otherwise entity is uncreated and will throw 404. diff --git a/packages/block-library/src/term-description/block.json b/packages/block-library/src/term-description/block.json index b358334963994e..ea15d18ab6534c 100644 --- a/packages/block-library/src/term-description/block.json +++ b/packages/block-library/src/term-description/block.json @@ -1,7 +1,10 @@ { "apiVersion": 2, "name": "core/term-description", + "title": "Term Description", "category": "design", + "description": "Display the description of categories, tags and custom taxonomies when viewing an archive.", + "textdomain": "default", "attributes": { "textAlign": { "type": "string" diff --git a/packages/block-library/src/term-description/index.js b/packages/block-library/src/term-description/index.js index 2981fc4677da7d..76670d556d075b 100644 --- a/packages/block-library/src/term-description/index.js +++ b/packages/block-library/src/term-description/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { _x, __ } from '@wordpress/i18n'; import { termDescription as icon } from '@wordpress/icons'; /** @@ -14,10 +13,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Term Description', 'block title' ), - description: __( - 'Display the description of categories, tags and custom taxonomies when viewing an archive.' - ), icon, edit, }; diff --git a/packages/block-library/src/text-columns/block.json b/packages/block-library/src/text-columns/block.json index deaf86d93002f3..ae6598f581cef4 100644 --- a/packages/block-library/src/text-columns/block.json +++ b/packages/block-library/src/text-columns/block.json @@ -1,8 +1,11 @@ { "apiVersion": 2, "name": "core/text-columns", + "title": "Text Columns (deprecated)", "icon": "columns", "category": "design", + "description": "This block is deprecated. Please use the Columns block instead.", + "textdomain": "default", "attributes": { "content": { "type": "array", diff --git a/packages/block-library/src/text-columns/index.js b/packages/block-library/src/text-columns/index.js index 073c2b3df1c218..29c11a7c05bb43 100644 --- a/packages/block-library/src/text-columns/index.js +++ b/packages/block-library/src/text-columns/index.js @@ -1,8 +1,3 @@ -/** - * WordPress dependencies - */ -import { __, _x } from '@wordpress/i18n'; - /** * Internal dependencies */ @@ -16,10 +11,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Text Columns (deprecated)', 'block title' ), - description: __( - 'This block is deprecated. Please use the Columns block instead.' - ), transforms, getEditWrapperProps( attributes ) { const { width } = attributes; diff --git a/packages/block-library/src/verse/block.json b/packages/block-library/src/verse/block.json index 490d6a6ea30b4d..5e86c1518083d5 100644 --- a/packages/block-library/src/verse/block.json +++ b/packages/block-library/src/verse/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/verse", + "title": "Verse", "category": "text", + "description": "Insert poetry. Use special spacing formats. Or quote song lyrics.", + "keywords": [ "poetry", "poem" ], + "textdomain": "default", "attributes": { "content": { "type": "string", diff --git a/packages/block-library/src/verse/index.js b/packages/block-library/src/verse/index.js index 1241a714eaa55e..a880300e8793a8 100644 --- a/packages/block-library/src/verse/index.js +++ b/packages/block-library/src/verse/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { verse as icon } from '@wordpress/icons'; /** @@ -18,10 +18,6 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Verse', 'block title' ), - description: __( - 'Insert poetry. Use special spacing formats. Or quote song lyrics.' - ), icon, example: { attributes: { @@ -33,7 +29,6 @@ export const settings = { /* eslint-enable @wordpress/i18n-no-collapsible-whitespace */ }, }, - keywords: [ __( 'poetry' ), __( 'poem' ) ], transforms, deprecated, merge( attributes, attributesToMerge ) { diff --git a/packages/block-library/src/video/block.json b/packages/block-library/src/video/block.json index 9f8b569d239b24..06df163e94143a 100644 --- a/packages/block-library/src/video/block.json +++ b/packages/block-library/src/video/block.json @@ -1,7 +1,11 @@ { "apiVersion": 2, "name": "core/video", + "title": "Video", "category": "media", + "description": "Embed a video from your media library or upload a new one.", + "keywords": [ "movie" ], + "textdomain": "default", "attributes": { "autoplay": { "type": "boolean", diff --git a/packages/block-library/src/video/index.js b/packages/block-library/src/video/index.js index 8d5df131edba75..2bdfcd78391252 100644 --- a/packages/block-library/src/video/index.js +++ b/packages/block-library/src/video/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { video as icon } from '@wordpress/icons'; /** @@ -17,12 +17,7 @@ const { name } = metadata; export { metadata, name }; export const settings = { - title: _x( 'Video', 'block title' ), - description: __( - 'Embed a video from your media library or upload a new one.' - ), icon, - keywords: [ __( 'movie' ) ], example: { attributes: { src: