From a89831f1da023d2e2735a50c75a1ca837efa91ea Mon Sep 17 00:00:00 2001 From: Eshaan Dabasiya <76681468+im3dabasia@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:05:20 +0530 Subject: [PATCH 01/12] ESLint: Fix broken URL reference for stylelint (#68706) Co-authored-by: im3dabasia Co-authored-by: Mamaduka Co-authored-by: shail-mehta --- packages/scripts/scripts/lint-style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scripts/scripts/lint-style.js b/packages/scripts/scripts/lint-style.js index 103ec6d5f9d2b4..ef8b0ad3bf0e78 100644 --- a/packages/scripts/scripts/lint-style.js +++ b/packages/scripts/scripts/lint-style.js @@ -20,7 +20,7 @@ const args = getArgsFromCLI(); const defaultFilesArgs = hasFileArgInCLI() ? [] : [ '**/*.{css,pcss,scss}' ]; -// See: https://stylelint.io/user-guide/configuration +// See: https://stylelint.io/user-guide/configure/ const hasLintConfig = hasArgInCLI( '--config' ) || hasProjectFile( '.stylelintrc.js' ) || From ba9f079cf2e831a09dfb430dc9903b4aaf87e892 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 16 Jan 2025 13:45:01 +0100 Subject: [PATCH 02/12] Move html element help messages to the block library utils. (#68708) * Move html element help messages to the block library utils. * Make help message for the div element more generic. Co-authored-by: afercia Co-authored-by: fabiankaegy --- .../edit/comments-inspector-controls.js | 13 +++----- .../src/cover/edit/inspector-controls.js | 22 +------------ packages/block-library/src/group/edit.js | 21 +------------ .../src/query/edit/query-content.js | 12 +------ packages/block-library/src/separator/edit.js | 7 +---- .../template-part/edit/advanced-controls.js | 22 +------------ packages/block-library/src/utils/messages.js | 31 +++++++++++++++++++ 7 files changed, 41 insertions(+), 87 deletions(-) create mode 100644 packages/block-library/src/utils/messages.js diff --git a/packages/block-library/src/comments/edit/comments-inspector-controls.js b/packages/block-library/src/comments/edit/comments-inspector-controls.js index 1a33cb68ea38a6..fda1fb3cc2e4bd 100644 --- a/packages/block-library/src/comments/edit/comments-inspector-controls.js +++ b/packages/block-library/src/comments/edit/comments-inspector-controls.js @@ -5,18 +5,15 @@ import { SelectControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { InspectorControls } from '@wordpress/block-editor'; +/** + * Internal dependencies + */ +import { htmlElementMessages } from '../../utils/messages'; + export default function CommentsInspectorControls( { attributes: { tagName }, setAttributes, } ) { - const htmlElementMessages = { - section: __( - "The
element should represent a standalone portion of the document that can't be better represented by another element." - ), - aside: __( - "The