Update dependency @wordpress/eslint-plugin to v12.9.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@wordpress/eslint-plugin | devDependencies | minor | 12.6.0 -> 12.9.0 |
Release Notes
WordPress/gutenberg
v12.9.0
Changelog
Features
Block Library
- Block Editor: Introduce block locking UI. (39183)
- Post Date: Allow user to pick Site Default, a suggested date format, or a custom date format. (39209)
- Try: "No results" block container for the query block. (38806)
Enhancements
Accessibility
- Add aria label to Nav block on front of site. (39161)
- Add button text labels to site editor. (38317)
- Prevent focus loss after removing a block from List View. (39031)
Components
- Add onClick prop to FormFileUpload. (39268)
- CheckboxControl: Support indeterminate state. (39462)
- List View: Add multi-select support for shift + Home and End keys. (39272)
-
BoxControl
: Stop usingUnitControl
's deprecatedunit
prop. (39511) -
FocalPointPicker
: Stop usingUnitControl
's deprecatedunit
prop. (39504) -
ColorPalette
: Refine the label of the custom color button. (39386) - Rich text: Allow behaviour to be overridden by ref. (39631)
- Add id prop to ListView. (39494)
- Collapse list view by default in Site Editor. (39573)
- Collapse list view by default in all editors. (39611)
- Add prop to control default expand/collapse state of ListView nodes. (39486)
- BaseControl: Add opt-in prop for margin-free styles. (39325)
- CustomSelectControl: Add flag for larger default size. (39401)
- RangeControl: Refactor stories to use Controls. (39357)
Block Library
- Cover: Use Snackbar to display upload errors. (39428)
- Spacer block: Use same
min
value resizable box and controls, removemax
limit. (39577) - Block Title: truncate all block labels/titles. (39416)
- Add
NumberControl
to support min/max font size forTag Cloud Block
. (37311) - Embeds: Update the Wolfram embed name. (39528)
- Flag invalid Navigation Link items. (31716)
- Gallery block: Add gap support. (38164)
- Separator block: Refactor to use color block supports. (38428)
Post Editor
- Migrate post editor
editorMode
to use preferences store and removelocalAutosaveInterval
preference. (39180) - Migrate post editor preferred style variations to preferences store. (39337)
- Show 'View Preview' link for 'Draft Saved' Snackbar notice. (39482)
Site editor
- Add preferences modal to site editor. (39485)
- Site Editor: Add more template types. (39353)
- Theme Export: Export the whole theme. (39202)
- Theme Export: Use the theme name for the zip file. (39471)
Navigation editor
- Migrate navigation editor selected menu to preferences store. (39606)
Testing
- Add
@testing-library/user-event
to the project. (39360)
Webfonts
- Change class properties from static to instance members. (39361)
Icons
- Update lock and unlock icons to be smaller. (39252)
Extensibility
- Set $name on WP_Block_Editor_Context. (39299)
CSS & Styling
- Layout: Use CSS logical properties for margin top and bottom. (38816)
Design Tools
- Block spacing: Block-level axial gap block support. (37736)
New APIs
Block API
- Blocks: Deprecate
isValidBlockContent
. (38794) - Blocks: Remember raw source block for invalid blocks. (38923)
- Blocks: Add flag in
parse
to skip logging migration details from patterns parsing. (39404)
Block Library
- Block Patterns: Automatically load files with headers from a theme's
/patterns
directory. (36751)
Bug Fixes
Core data
- Revert addition of Navigation entity. (39572)
- Add raw attributes configuration for media entity. (39512)
Block editor
- Revert: Fix/editor content z-index stack context. (39620)
Widgets editor
- Preload paths: Avoid fatal error on Widgets page. (39470)
Block Library
- Fix
Comments
blocks pagination. (39227) - Fix center aligned images styles. (39422)
- Fix experimental full site editing blocks not being registered. (39415)
- Fix:
Comment Query Loop
's inner block selection and duplicate inspector control settings. (39472) - Fix:
Table
block doesn't keep background color. (39445) -
Gallery
block: Disable edit as html support. (39318) -
Gallery
block: Fix image upload bug. (39269) -
Image
: Allow authors to select image sizes from dropdown. (39580) -
Image
: Restore baseline responsiveness in the block. (39340) -
Media & Text
: Allow authors to select image sizes from dropdown. (39608) -
Pullquote
block: Fix citation markup in Editor. (39414) -
Pullquote
block: Remove deprecated pullquote style. (39413) - [Site Logo] Fix center alignment. (39579)
- Hide the orientation switcher from the group block. (39650)
- Image Block: Move any is-style and custom classnames up to deprecated alignment wrapper. (39330)
- Social Icons: Avoid loss of previously selected background color when switching back from "Logos Only" style. (39276)
- Fix the block toolbar styles to evenly space buttons. (39630)
- Fix Image block link rel handling. (39319)
Components
-
BlockSettingsMenuControls
don't render emptyMenuGroup
. (39537) - Fix
UnitControl
resets unit when value is cleared. (39531) - Fix changelog entry in wrong version. (39450)
-
ResizableBox
: Ensure tooltip text remains on a single line. (39623) - [Block Library]: Use
UnitControl
fromcomponents
package in Cover and Search blocks. (39383) -
NumberControl
: Commit (and constrain) value onblur
event. (39186)
Testing
- Fix Gallery block flaky test image captions. (39689)
- Fix performance tests - attempt 2. (39333)
- Env: Fix PHP unit tests for "non-standard" cloned directories. (39362)
Accessibility
- Fix
useFocusFirstElement
in non-contenteditable
Blocks. (37934) - Use the post-title as the featured-image's alt text when linked to the post. (39634)
Design Tools
- Fix Border Radius Control showing Mixed when switching between units in an empty control. (39563)
- Flex Layout: Fix visibility control of allowOrientation. (39532)
Block Conversion
- Blocks: Disable Grouping when block removal is locked. (39541)
Post Editor
- Add default
as
prop toPluginMoreMenuItem
component. (39517)
Patterns
- [Patterns]: Load theme patterns only in block and site editor. (39493)
npm Packages
- Packages: Ensure that
@wordpress/preferences
gets published to npm. (39390)
Global Styles
- Fix display of color palettes for border panel. (38798)
Performance
Block editor and site editor
- Optimise preload paths for post and site editors. (39256)
Parsing
- Optimise block parser by avoiding repeated HTML parsing and matcher creation. (39424)
Experiments
Block Library
- New block: list block v2. Add an empty list block v2. (39459), implement the nested block behaviour in list block v2. (39487), add transforms for the list v2 block. (39652), add start, ordered and reversed list block attributes. (39605), add simple list item splitting and merging. (39542).
- New block: Generic Avatar. Create a Generic Avatar block for Authors. (38591)
Block editor
- Add __experimentalGetGlobalBlocksByName selector. (39610)
Documentation
Themes
- Add some detail to handbook about different theme types. (39562)
- Remove duplicate theme documentation. (38800)
Block library
- Block Title: Update documentation. (39328)
- Dependency
wp-editor
should bewp-block-editor
in the code example. (39505) - Document
__experimentalGenerateAnchors
default setting. (39554)
Contributing
- Plugin: Document the project structure and conventions used in the
lib
folder for PHP code. (39603) - Update plugin
readme.txt
content for intended audience. (38724) - Fix the missing page in the manifest file. (39507)
Components
- Divider: Improve default behaviour when in vertical orientation. (39316)
-
UnitControl
: Convert Storybook example to TypeScript and Controls. (39320) -
UnitControl
: Markunit
prop as deprecated. (39503) - Add missing
}
to LinkControl code example. (39469)
Code Quality
Core data
- Use consistent terminology across @wordpress/core-data. (39349) without renaming useEntityId hook. (39683)
- Add an "enabled" option to useEntityRecord and useEntityRecords. (39288)
- Add Navigation menu to known entities. (39498)
- Use the word
record
for the entity record TypeScript types. (39251) - throwOnError option for saveEntityRecord and deleteEntityRecord actions. (39258)
- Fix preferences actions/selectors deprecated calls. (39640)
- Check for nullity in experimental fetch methods. (39480)
- Check for presence of entity configuration before testing plural form. (39476)
- Import types before exporting them. (39479)
- Pass explicit
undefined
initial value tocreateContext
. (39526) - Replace spread arguments with non-spread variants. (39477)
- Fix minor type-related issues. (39525)
- Do not suppress errors in the getEntityRecord and getEntityRecords resolvers. (39317)
Block Library
-
Cover
block: Stop usingUnitControl
's deprecatedunit
prop. (39522) -
Search
block: Stop usingUnitControl
's deprecatedunit
prop. (39514) -
Spacer
block: Stop usingUnitControl
's deprecatedunit
prop. (39513) - [Blocks]: Add flag in
parse
to skip logging migration details from patterns parsing. (39404) - Use block specific filters for the backward compatibility markup hooks. (39321)
Testing
- Fix Nav block flaky end-to-end test by correctly waiting on menu creation resolution. (39637)
Plugin
- Fix PHP notice in
gutenberg_get_block_editor_settings
. (39543)
Components
- Drop
composeStateReducers
. (39262) -
BorderRadiusControl
: Stop usingUnitControl
’s deprecatedunit
prop. (39549)
Tools
Codeowners updates
- Add @michalczaplinski to codeowners. (39440)
- Add @juanmaguitar as codeowners of gutenberg documentation. (39453)
Testing
- Add infrastructure for writing Playwright end-to-end tests. (38570)
- Gallery block: Reduce end-to-end flakiness. (39565)
Build Tooling
- Simplify vendor scripts handling. (39534)
- ing: Remove unused npm scripts. (39369)
- Use android artefacts for react-native libraries in react-native-bridge. (39294)
- ESlint: Exempt TS files from
jsdoc/require-param
. (39458)
NPM Packages
- Packages: Finalise the revised strategy for NPM publishing. (39389)
First time contributors
The following MRs were merged by first time contributors:
- @alefesouza: Add onClick prop to FormFileUpload. (39268)
- @brookewp: Show 'View Preview' link for 'Draft Saved' snackbar notice. (39482)
- @HILAYTRIVEDI: Social Icons: Avoid loss of previously selected background color when switching back from "Logos Only" style. (39276)
-
@ironprogrammer: Update plugin
readme.txt
content for intended audience. (38724) -
@mhimon: Add missing
}
to LinkControl code example. (39469) - @ParaskP7: (39508)
- @SantosGuillamot: Fix Comments blocks pagination. (39227)
- @stefanolissa: Dependency "wp-editor" should be "wp-block-editor" in the code example. (39505)
Contributors
The following contributors merged MRs in this release:
@aaronrobertshaw @adamziel @alefesouza @alexstine @amustaque97 @andrewserong @AnthonyLedesma @aristath @brookewp @c4rl0sbr4v0 @carolinan @ciampo @delowardev @dmsnell @ellatrix @fluiddot @getdave @glendaviesnz @gziolo @HILAYTRIVEDI @hypest @ironprogrammer @jarcos @jasmussen @jeherve @jhnstn @jorgefilipecosta @jostnes @jsnajdr @juanmaguitar @kevin940726 @kjellr @Mamaduka @mcsf @mhimon @michalczaplinski @mirka @ndiego @noisysocks @ntsekouras @oguzkocer @ParaskP7 @pento @ramonjd @SantosGuillamot @scruffian @SiobhyB @stefanolissa @stokesman @t-hamano @talldan @tellthemachines @vcanales @xknown @youknowriad @zaguiini
v12.8.0
Code Quality
- Remove deprecated rules
no-negated-in-lhs
replaced withno-unsafe-negation
, andjsx-a11y/label-has-for
replaced withjsx-a11/label-has-associated-control
(#42654).
v12.7.0
Changelog
Enhancements
Block Library
- Columns: Add border support. (31737)
- Comment Template: Fix comment pagination with nested replies. (38187)
- Comments Query Loop: Show placeholder comments on site editor. (38072)
- Group Blocks: Add margin support (top/bottom). (37344)
- Navigation: Try unifying submenu arrow positioning. (37003)
- Page List: Simplify loading state. (38983)
- Submenu: Add revert button. (38203)
Components
- FocalPointPicker: Allow updating its value while dragging. (38247)
- General Interface: Simplify site icon animation on hover. (38783)
- Navigator: Add
NavigatorButton
andNavigatorBackButton
components. (38634) - Type Refactor: Use
forwardedRef
type for all forwarded refs in @wordpress/components. (38948)
Block Editor
- Block Editor: Add settings to enable/disable auto anchor generation. (38780)
- Block Transforms: Keep additional HTML classes during a block transform. (38964)
- LineHeightControl: Enhance interactions by migrating internals to
NumberControl
on Style options. (37160) - List View: Add multi-select behaviour for blocks when shift key is selected. (38314)
- Quick Inserter: Prioritize showing patterns instead of blocks. (38709)
- Template Parts: Show existing template parts and a list of block patterns at creation flow. (38814)
Styles
Post Editor
- Enable tooltip for the main dashboard button. (38790)
Themes
- Lowered specificity of alignment rules for support layout so wide alignments work. (38947)
- Remove data-align divs for themes that support layout. (38613)
- Remove the div wrapper from the aligned image blocks. (38657)
Patterns
- Allow pattern registration from directory with theme.json. (38323)
List View
- Expand block list tree on selection. (35817)
Bug Fixes
Block Library
- Block Transforms: Fix Image and Video to Cover block transformations. (38959)
- Cover: Fix gradient overlay (remove black background color) (38765)
- File: Fix PDF file block full content fixture. (38725)
- Latest Posts: Add missing class to post title. (38740)
- Logo: Avoid division by zero in site logo. (38808)
- Post navigation link: Use correct closing tag. (38976)
- Query Loop: Display nothing if we want only sticky posts but no stickies exist. (38909)
- Template Parts: Decode entities in labels. (38805)
- Social Links: Only apply the social links block migration if there's a need for a migration. (38561)
Block Editor
- Backport from core: Global styles duotone not rendering in post editor. (38897)
- Block Editor: insertDefaultBlock should not trigger an error if the default block is not registered. (38886)
- Inserter: Fix focus loss after closing patterns explorer from modal. (38884)
- Multi-selection: avoid RichText instances becoming disabled after multi selection. (38821)
- Rehabilitate drag gesture in
LineHeightControl
. (38930) - RichText: Fix wrong block merging when pressing
delete
consecutively. (38991)
Site Editor
- Add site editor initial redirect error handling. (38655)
- Add template check to 'setPage' action. (38656)
- Adds additional check to guard against incompete presets. (38902)
- Limit template part slugs to Latin chars. (38695)
- Template List: Decode entities in record titles. (38863)
Styles
- Allow child classes to be called instead of the parents. (38857)
- Backport: Allow for classic themes using default presets. (38701)
- Fix global styles loading logic. (38745)
Components
- Fix unexpected dragging triggered on spinner buttons on hover in Safari. (38840)
- Show tooltip on toggle custom size in FontSizePicker. (38985)
List View
- Fix error triggering after duplicating a block making it unselectable. (38760)
- Fix UI broken due to error when deleting first item in canvas. (38775)
CSS & Styling
- Fix button width on Widgets Editor. (38846)
- Load block support styles in the
<head>
for block themes. (38750) - Change location of block support styles in
<head>
. (39164) - Reduce the margin of the block toolbar. (38746)
Block Directory
- Fix the block activation when metadata registered on server. (38697)
Colors
- Strip double # char on HexInput. (38335)
Packages
- Core Data: CanUser resolver always use the OPTIONS method. (38901)
- Dom: Avoid RangeError in findPrevious method. (38961)
Apps
- Fix Custom Palette colors and support multiple origins and theme cache issues. (38417)
Accessibility
- Adds aria-label to the search button, as accessibility enhancement. (38136)
- Avoid duplicate labels for "Save Draft" and "Save as pending" buttons. (38776)
- RichText: Reverse disableLineBreaks to determine aria-multiline state. (38652)
- TreeGrid: Add Home/End keys to jump to start/end of grid. (38679)
Performance
CSS & Styling
- Use
wp_unique_id()
instead ofuniqid()
to generate CSS class names. (38891)
Experiments
New APIs in Core Data
Documentation
Handbook
- Add documentation for deprecating styles. (38540)
- Add documentation about the
patterns
field oftheme.json
. (38700) - Add more info about contextual patterns and pattern transformations. (38809)
- Add semantic patterns documentation. (38778)
- Clarify deprecations documentation. (38683)
- Fix hyperlink in block
Metadata
page. (38941) - Improve point release documentation to include even more detail. (38631)
- Increase support for
experimental-link-color
until WordPress 5.9 is the minimum version. (38711) - Group: Update block supports. (38962)
- Links changed for Developer.wordpress.org on block editor section. (38841)
- Removing comma so that the code snippet of
theme.json
represents standard JSON. (38938) -
theme.json
Update version section docs to v2 (38937) - Update Getting Started with more granular options. (38682)
Block Library
- Add instructions on how to add new core blocks to block-library. (38868)
Components
- FormFileUpload: Add Storybook stories. (38734)
- Storybook: Move experimental components to correct section. (38640)
- Storybook: Remove story for Typography Panel. (38867)
- wp-env: Document some caveats when using xdebug with VSCode. (38882)
Code Quality
Block Library
- Cover: Remove unnecessary
temporaryMinHeight
. (38887) - Cover block: Update deprecated gradient fixture. (38728)
- Gallery: Register gallery in block_names dynamic block array. (38689)
- Navigation: Improve consistency of block hook. (38705)
- Navigation: Select dropdown encapsulation and further consolidation. (38627)
- Navigation: Update wp_kses usage to be consistent (use wp_kses_post). (38732)
- Post Navigation Link: Prefer kses to blanket esc_html on label. (38696)
- Remove data-controls mock from Image block RN tests. (38852)
Components
- Block Supports: Improve image block regex. (38742)
- Block Supports: Load Styles on
<head>
backport to core. (38880) - Context: Omit
as
prop in types. (38844) - Core Data: Remove fallback for OPTIONS response headers in canUser resolver. (38881)
- Core Data: TypeScript definitions for entity records. (38666)
- Data: Normalize selector args when handling metadata selectors/actions. (38945)
- Edit Site: Migrate store to thunks. (38812)
- Icons: Deprecate duplicate icons. (38849)
- PostTrash: Call trashPost action with no arguments, rewrite to hooks. (38615)
npm Packages
- Packages: Automate cherry-picking to
trunk
commits created during publishing. (38977) - Packages: Ensure that private packages do not update when publishing to npm. (38946)
Tools
Testing
- Add end-to-end test for merging paragraphs and soft line break afterwards. (39009)
- Post Visibility end-to-end test: Improve XPath selector to avoid reliance on DOM structure. (38717)
- Replace no-shadow eslint rule with @typescript-eslint/no-shadow. (38665)
- Remove client ID from fixtures. (38685)
- Remove
originalContent
from fixtures. (38638) - RichText: Add test for merging and then splitting paragraphs. (39007)
- Site Editor Tests: Use REST API to delete templates and template parts. (38524)
- TreeGrid: Add tests for callback functions. (38942)
Build Tooling
- Build separate full contributors list. (38777)
- Bump @svgr/webpack from ^5.5.0 to ^6.2.1 (38866)
- Generate full release contributors list in release changelog. (38704)
- Generate sourcemap for production plugin builds. (33718)
- Mobile: Improve npm clean scripts for react-native-editor. (38752)
- PWA: Fix URL query param issue. (38755)
- Scripts: Do not exit
build
when no entry found insrc
directory. (38737) - Scripts: Fix Entry points are not detected in Windows OS. (38781)
- Scripts: Copy PHP files from
src
intobuild
. (38715)
Components
- BaseControl: Refactor stories to use Controls. (38741)
- Migrate Post Template Delete button from
confirm()
toConfirmDialog
. (37535) - Migrate the Post 'Switch to draft' button to
ConfirmDialog
component. (37491) - Storybook: Ensure rerender for RTL switcher. (38963)
Post Editor
- Edit Post: Migrate store actions to thunks. (36551)
- Editor store: Remove a noop SETUP_EDITOR action. (38622)
- Migrate editor store to thunks. (35929)
Styles
- Allow to extend the
WP_Theme_JSON_Gutenberg
class. (38671) - Global Styles: Fix PHP warning in WP_REST_Global_Styles_Controller. (38888)
- Update Global Styles code to continue adding settings & styles. (38883)
Block Library
- Change Gallery block code ownership. (38722)
First time contributors
The following MRs were merged by first time contrbutors:
- @Alex-Kostov: Fix for widget customizer panel,. (38746)
- @HasnainAshfaq: Version section update. (38937)
- @mjstoney: (Issue #38390) Fixed CSS position property to fix button width. (38846)
- @razwan: Add resolvePoint prop to FocalPointPicker component to allow updating value while dragging. (38247)
-
@sanzeeb3: Fix hyperlink in block
Metadata
page. (38941) - @Sisanu: Adds aria-label to the search button, as accessibility enhancement. (38136)
Contributors
The following contributors merged MRs in this release:
@aaronrobertshaw @adamziel @ajlende @Alex-Kostov @alexstine @andrewserong @annezazu @audrasjb @bph @c4rl0sbr4v0 @chad1008 @ciampo @DAreRodz @delowardev @dmsnell @ellatrix @fluiddot @geriux @getdave @glendaviesnz @gziolo @HasnainAshfaq @jasmussen @jeherve @jorgefilipecosta @jsnajdr @KevinBatdorf @MaggieCabrera @Mamaduka @mchowning @michalczaplinski @mirka @mjstoney @mkevins @ndiego @noahtallen @ntsekouras @oandregal @ocean90 @PatelUtkarsh @ramonjd @razwan @ryanwelcher @sanzeeb3 @Sisanu @stokesman @t-hamano @talldan @twstokes @webmandesign @westonruter @youknowriad
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.