== Changelog == = 21.8.1 = ## Changelog ### Bug Fixes - Template activation: Improve back compat. ([72223](https://github.com/WordPress/gutenberg/pull/72223)) ## Contributors The following contributors merged PRs in this release: @ellatrix = 21.8.0 = ## Changelog ### Features #### Block Editor - Section block multi-selection: Disable transforms and inspector controls. ([71708](https://github.com/WordPress/gutenberg/pull/71708)) ### Enhancements #### Block Comments - Improve comments panel close icon label. ([71701](https://github.com/WordPress/gutenberg/pull/71701)) - Add Discussion Field with tracksback and comment status agreagetd on Post/Page Quick Edit. ([71949](https://github.com/WordPress/gutenberg/pull/71949)) - Fields package: Add Storybook examples. ([71864](https://github.com/WordPress/gutenberg/pull/71864)) - Block Comment: Display message when there is no related block. ([71968](https://github.com/WordPress/gutenberg/pull/71968)) - Block Comment: Improve comment thread outline. ([71961](https://github.com/WordPress/gutenberg/pull/71961)) - Block Comment: Improve related block highlighting. ([71932](https://github.com/WordPress/gutenberg/pull/71932)) - Block Commenting: Add block-comments as a new post type support. ([71682](https://github.com/WordPress/gutenberg/pull/71682)) - Block Commenting: Change date format depending on comment date. ([71835](https://github.com/WordPress/gutenberg/pull/71835)) - Block Commenting: Show date or human-readable time diff code. ([71667](https://github.com/WordPress/gutenberg/pull/71667)) - Block Comments: Apply border color to avatar. ([71917](https://github.com/WordPress/gutenberg/pull/71917)) - Block Comments: Highlight the related block. ([71308](https://github.com/WordPress/gutenberg/pull/71308)) - Block Comments: Match the comment form UI to the design. ([71898](https://github.com/WordPress/gutenberg/pull/71898)) - Block Comments: Match the show more replies button UI to the design. ([71884](https://github.com/WordPress/gutenberg/pull/71884)) - Block Comments: Simplify action callbacks. ([71892](https://github.com/WordPress/gutenberg/pull/71892)) - Block Comments: Update 'Actions' menu design. ([71877](https://github.com/WordPress/gutenberg/pull/71877)) - Block Comments: Update editing flow. ([71889](https://github.com/WordPress/gutenberg/pull/71889)) #### Block Library - Accordion Blocks: Organize block supports. ([71823](https://github.com/WordPress/gutenberg/pull/71823)) - Accordion Header: Add content role to title attribute. ([71762](https://github.com/WordPress/gutenberg/pull/71762)) - Accordion Header: Remove textAlignment and textAlign. ([71875](https://github.com/WordPress/gutenberg/pull/71875)) - Accordion Header: Use withoutInteractiveFormatting instead of hardcoded formats. ([71745](https://github.com/WordPress/gutenberg/pull/71745)) - Accordion: Add example block preview. ([71365](https://github.com/WordPress/gutenberg/pull/71365)) - Accordion: Rename block names. ([71978](https://github.com/WordPress/gutenberg/pull/71978)) - Add paragraph level option to post type label block. ([71947](https://github.com/WordPress/gutenberg/pull/71947)) - Enhance Term Description Block with Context Support. ([71525](https://github.com/WordPress/gutenberg/pull/71525)) - Terms Query inspector controls revamp + add subterms option. ([71633](https://github.com/WordPress/gutenberg/pull/71633)) - Time To Read: Add a range option. ([71606](https://github.com/WordPress/gutenberg/pull/71606)) - Time To Read: Add a word count option. ([71841](https://github.com/WordPress/gutenberg/pull/71841)) - Time To Read: Make display as range the default, and allow older blocks to migrate to this setting. ([71842](https://github.com/WordPress/gutenberg/pull/71842)) - Time to Read: Replace toggles with block variations. ([71897](https://github.com/WordPress/gutenberg/pull/71897)) #### DataViews - Add `number` field. ([71797](https://github.com/WordPress/gutenberg/pull/71797)) - Add support for elements validation in DataForm's array fields. ([71194](https://github.com/WordPress/gutenberg/pull/71194)) - Export DataViewsPicker from dataviews package. ([71836](https://github.com/WordPress/gutenberg/pull/71836)) - Prevent hiding the last visible field. ([71625](https://github.com/WordPress/gutenberg/pull/71625)) - DataViews: Expose FiltersToggled subcomponent. ([71907](https://github.com/WordPress/gutenberg/pull/71907)) #### Block Editor - Add configurable timeout parameter to flashBlock. ([71752](https://github.com/WordPress/gutenberg/pull/71752)) - Link Control: Update button text from Save to Apply. ([72005](https://github.com/WordPress/gutenberg/pull/72005)) #### Global Styles - Add reset button to BackgroundControlsPanel. ([71928](https://github.com/WordPress/gutenberg/pull/71928)) - Site Editor: Make less prominent Addtional CSS UI. ([71550](https://github.com/WordPress/gutenberg/pull/71550)) #### Block bindings - Communicate supported block attributes from server side. ([71820](https://github.com/WordPress/gutenberg/pull/71820)) - Image block: Conditionally remove empty `
`. ([71893](https://github.com/WordPress/gutenberg/pull/71893)) - Navigation Link: Use block bindings to dynamically fetch the URL in the editor and on front end. ([71630](https://github.com/WordPress/gutenberg/pull/71630)) #### Write mode - Try adding content roles to navigation blocks. ([71747](https://github.com/WordPress/gutenberg/pull/71747)) #### Components - Textarea Component: Add default resize vertical rule. ([71736](https://github.com/WordPress/gutenberg/pull/71736)) #### Post Editor - PostTypeSupportCheck: Handle support keys sub-features. ([71723](https://github.com/WordPress/gutenberg/pull/71723)) - Post Editor: Add the back button animation similar to the site editor. ([71929](https://github.com/WordPress/gutenberg/pull/71929)) #### Patterns - Block Inspector: Add content tab for section blocks. ([71714](https://github.com/WordPress/gutenberg/pull/71714)) #### Icons - Add gift Icon. ([71705](https://github.com/WordPress/gutenberg/pull/71705)) #### Interactivity API - iAPI Router: Update router regions inside elements with `data-wp-interactive`. ([71635](https://github.com/WordPress/gutenberg/pull/71635)) #### Meta Boxes - Add ability to toggle meta box pane open and closed. ([71623](https://github.com/WordPress/gutenberg/pull/71623)) ### New APIs #### Block API - Add block visibility control support and UI. ([71203](https://github.com/WordPress/gutenberg/pull/71203)) ### Bug Fixes - Add decodeEntities for CollabSideBarContent errors. ([71909](https://github.com/WordPress/gutenberg/pull/71909)) - Block Comment: Make blockCommentId as part of the metadata. ([71921](https://github.com/WordPress/gutenberg/pull/71921)) - Block Commenting: Don't show unpinnable sidebar on mobile viewports. ([71834](https://github.com/WordPress/gutenberg/pull/71834)) - Block Comments: Fix canceling the form for a selected block. ([71862](https://github.com/WordPress/gutenberg/pull/71862)) - Block Comments: Fix translation comments to say participants in toolbar indicator. ([71890](https://github.com/WordPress/gutenberg/pull/71890)) - Consistently show (no title) as a fallback for pages and templates with empty titles. ([71945](https://github.com/WordPress/gutenberg/pull/71945)) - Filter comment clause based on current query. ([71712](https://github.com/WordPress/gutenberg/pull/71712)) - Fix comment counts with filter. ([71874](https://github.com/WordPress/gutenberg/pull/71874)) - Template activation: Don't set site option on edit. ([71811](https://github.com/WordPress/gutenberg/pull/71811)) - Template activation: Fix saveEntityRecord with theme ID. ([71798](https://github.com/WordPress/gutenberg/pull/71798)) - Template activation: redirect theme templates urls to wp_registered_template ([72003](https://github.com/WordPress/gutenberg/pull/72003) - Template activation: add meta to all newly created templates ([72156](https://github.com/WordPress/gutenberg/pull/72156) - Template activation: reduce templates listed as options for post/page ([72141](https://github.com/WordPress/gutenberg/pull/72141) - Template activation: call get_block_templates filter when short-circuiting ([71840](https://github.com/WordPress/gutenberg/pull/71840) - Template activation: allow empty array to be set ([72011](https://github.com/WordPress/gutenberg/pull/72011) - Template activation: fix /lookup endpoint to use custom resolve function ([72049](https://github.com/WordPress/gutenberg/pull/72049) - Template activation: ignore templates not associated with active theme ([72029](https://github.com/WordPress/gutenberg/pull/72029) #### Block Library - Accordion Block: Hide "Add" button when multiple blocks are selected. ([71750](https://github.com/WordPress/gutenberg/pull/71750)) - Accordion Header: Fix toggle icon position in the editor. ([71859](https://github.com/WordPress/gutenberg/pull/71859)) - Accordion Header: Skip serialization correctly. ([71804](https://github.com/WordPress/gutenberg/pull/71804)) - Accordion Panel: Add role=region. ([71902](https://github.com/WordPress/gutenberg/pull/71902)) - Accordion Panel: Fixes block visibility when the panel is collapsed. ([71866](https://github.com/WordPress/gutenberg/pull/71866)) - Fix Navigation Block default link consistency across all insertion methods. ([71899](https://github.com/WordPress/gutenberg/pull/71899)) - Fix accordion gradient background. ([71802](https://github.com/WordPress/gutenberg/pull/71802)) - Fixes Accordion block width issue when applying padding. ([71809](https://github.com/WordPress/gutenberg/pull/71809)) - Post Author Block: Add default avatar fallback for editor display outside postId context. ([71775](https://github.com/WordPress/gutenberg/pull/71775)) - Table of Contents: Add aria label to the nav element. ([71586](https://github.com/WordPress/gutenberg/pull/71586)) - Terms Query: Fix console errors. ([71795](https://github.com/WordPress/gutenberg/pull/71795)) - Time to Read: Change word count character based on word count type. ([71920](https://github.com/WordPress/gutenberg/pull/71920)) - fix: Hide accordion icon position setting when show icon is disabled. ([71748](https://github.com/WordPress/gutenberg/pull/71748)) #### Patterns - Fix incorrect block editing mode assigned in some cases. ([71970](https://github.com/WordPress/gutenberg/pull/71970)) - contentOnly unsynced patterns experiment: Ensure a tab is selected when clicking Edit contents. ([71987](https://github.com/WordPress/gutenberg/pull/71987)) #### DataViews - DataViewsPicker Grid layout: Support hiding the title. ([71865](https://github.com/WordPress/gutenberg/pull/71865)) - Fix: Exclude non-hideable fields from the Properties list in the view configuration. ([71729](https://github.com/WordPress/gutenberg/pull/71729)) #### Site Editor - Fix creating templates for posts with long slugs. ([71838](https://github.com/WordPress/gutenberg/pull/71838)) - Fix the PHP warning for the URL query. ([71753](https://github.com/WordPress/gutenberg/pull/71753)) #### Write mode - Accordion Block: Hide Add button in write mode. ([71941](https://github.com/WordPress/gutenberg/pull/71941)) #### Interactivity API - iAPI: Fix nested `data-wp-each` directives using the same items key. ([71870](https://github.com/WordPress/gutenberg/pull/71870)) #### Block bindings - Fix pattern override bug, editing was allowed on non enabled overrides blocks. ([71813](https://github.com/WordPress/gutenberg/pull/71813)) #### Components - Button: Fix incorrect padding with text and right icon. ([71464](https://github.com/WordPress/gutenberg/pull/71464)) ### Accessibility - Block Comments: Improve input labels. ([71843](https://github.com/WordPress/gutenberg/pull/71843)) - Block Comments: Make comment thread focusable and improve keyboard navigation. ([71883](https://github.com/WordPress/gutenberg/pull/71883)) #### Block Library - Accordion Block: Add additional keypress handlers for navigation. ([71786](https://github.com/WordPress/gutenberg/pull/71786)) - Accordion: Remove label from Add button. ([71756](https://github.com/WordPress/gutenberg/pull/71756)) - Added default focus and hover states to accordion header. ([71937](https://github.com/WordPress/gutenberg/pull/71937)) - Fix: Add aria-hidden to accordion toggle icon. ([71783](https://github.com/WordPress/gutenberg/pull/71783)) - Update: Accordion heading level synchronization. ([71895](https://github.com/WordPress/gutenberg/pull/71895)) ### Performance - Block Comments: New 'useBlockComments' hook and perf improvements. ([71869](https://github.com/WordPress/gutenberg/pull/71869)) ### Experiments #### Block API - Allow registering PHP-only blocks. ([71794](https://github.com/WordPress/gutenberg/pull/71794)) ### Documentation - DataForm: Update visibility example in storybook. ([71771](https://github.com/WordPress/gutenberg/pull/71771)) - Docs: Use `gutenberg` instead of `Gutenberg` in package name. ([71790](https://github.com/WordPress/gutenberg/pull/71790)) - Fix examples with elements in field type story. ([71971](https://github.com/WordPress/gutenberg/pull/71971)) - Update validation story to cover number field type. ([71980](https://github.com/WordPress/gutenberg/pull/71980)) ### Code Quality - Backport changelog: Update for 9702 (to 9949). ([71849](https://github.com/WordPress/gutenberg/pull/71849)) - Block Comments: Unfold custom styles. ([71766](https://github.com/WordPress/gutenberg/pull/71766)) - Create an `AGENTS.md` file. ([71796](https://github.com/WordPress/gutenberg/pull/71796)) - JSON Schema: Update block.json apiVersion to 3. ([71852](https://github.com/WordPress/gutenberg/pull/71852)) - Refactor block-inspector: Improve maintainability and readability. ([71608](https://github.com/WordPress/gutenberg/pull/71608)) #### Block Library - Accordion Block: Simplify script module enqueueing. ([71742](https://github.com/WordPress/gutenberg/pull/71742)) - Accordion Blocks: Standardize CSS class names. ([71785](https://github.com/WordPress/gutenberg/pull/71785)) - Accordion Header: Don't use flex-direction:Reverse. ([71737](https://github.com/WordPress/gutenberg/pull/71737)) - Accordion Header: Remove hardcoded inline styles and unused CSS class. ([71731](https://github.com/WordPress/gutenberg/pull/71731)) - Comments: Fix potential PHP warning. ([71860](https://github.com/WordPress/gutenberg/pull/71860)) - Extract shared Controls component for Navigation Link and Submenu blocks. ([71994](https://github.com/WordPress/gutenberg/pull/71994)) - Navigation Block: Use path for all navigation toogle icons. ([71829](https://github.com/WordPress/gutenberg/pull/71829)) - Post Date: Combine 'core-data' store selectors. ([71846](https://github.com/WordPress/gutenberg/pull/71846)) - Social Icon: Removed extra spaces in color styles. ([71900](https://github.com/WordPress/gutenberg/pull/71900)) - Time to Read: Simplify edit function. ([71965](https://github.com/WordPress/gutenberg/pull/71965)) #### Block Variations - Group block: Simplify variations' isActive fields. ([63100](https://github.com/WordPress/gutenberg/pull/63100)) ### Tools #### Testing - Block Comments: Add general end-to-end test coverage. ([71844](https://github.com/WordPress/gutenberg/pull/71844)) ## First-time contributors The following PRs were merged by first-time contributors: - @Drivingralle: Navigation Block: Use path for all navigation toogle icons. ([71829](https://github.com/WordPress/gutenberg/pull/71829)) - @epeicher: Button: Fix incorrect padding with text and right icon. ([71464](https://github.com/WordPress/gutenberg/pull/71464)) - @ritoban23: Accordion Blocks: Organize block supports. ([71823](https://github.com/WordPress/gutenberg/pull/71823)) - @theaminuli: Post Author Block: Add default avatar fallback for editor display outside postId context. ([71775](https://github.com/WordPress/gutenberg/pull/71775)) - @Utsav-Ladani: Add paragraph level option to post type label block. ([71947](https://github.com/WordPress/gutenberg/pull/71947)) ## Contributors The following contributors merged PRs in this release: @aaronrobertshaw @adamsilverstein @Adi-ty @andrewserong @cbravobernal @DAreRodz @dinhtungdu @Drivingralle @elazzabi @ellatrix @epeicher @getdave @himanshupathak95 @jorgefilipecosta @jsnajdr @juanfra @karthick-murugan @kmanijak @levinbaria @MaggieCabrera @Mamaduka @mikachan @n2erjo00 @nani-samireddy @nerrad @ntsekouras @oandregal @ockham @peterwilsoncc @priethor @R1shabh-Gupta @ramonjd @ritoban23 @scruffian @shail-mehta @shimotmk @sirreal @stokesman @sunyatasattva @t-hamano @talldan @tellthemachines @theaminuli @theminaldiwan @Utsav-Ladani @yashjawale @youknowriad = 21.7.0 = ## Changelog ### Enhancements #### Command Palette - Move custom CSS command to `core-commands` from `edit-site` package. ([71565](https://github.com/WordPress/gutenberg/pull/71565)) - Register menu navigation based on Core Menu API. ([71476](https://github.com/WordPress/gutenberg/pull/71476)) #### DataViews - Add color field type and control to DataViews. ([71522](https://github.com/WordPress/gutenberg/pull/71522)) - Add data picker functionality. ([70971](https://github.com/WordPress/gutenberg/pull/70971)) - Add password field. ([71545](https://github.com/WordPress/gutenberg/pull/71545)) - DataForm radio control: Support validation and description. ([71664](https://github.com/WordPress/gutenberg/pull/71664)) - DataForm select control: Support validation. ([71665](https://github.com/WordPress/gutenberg/pull/71665)) - DataForm toggleGroup control: Support validation. ([71666](https://github.com/WordPress/gutenberg/pull/71666)) - DataForm: Add a textarea control available for use with the text field type. ([71495](https://github.com/WordPress/gutenberg/pull/71495)) - DataForm: Add summary field support for composed fields. ([71614](https://github.com/WordPress/gutenberg/pull/71614)) - DataForm: Switch boolean field types from toggle to checkbox UI. ([71505](https://github.com/WordPress/gutenberg/pull/71505)) - Dataform: Add new URL field type and field control. ([71518](https://github.com/WordPress/gutenberg/pull/71518)) - Dataform: Add new `telephone` field type and field control. ([71498](https://github.com/WordPress/gutenberg/pull/71498)) - Dataforms: Add icons to email and telephone controls. ([71514](https://github.com/WordPress/gutenberg/pull/71514)) - Dataforms: Add object configuration support for Edit property with prefix/suffix options. ([71582](https://github.com/WordPress/gutenberg/pull/71582)) - Implement `groupBy` for list layout. ([71548](https://github.com/WordPress/gutenberg/pull/71548)) - Update datetime control to use calendar UI. ([71509](https://github.com/WordPress/gutenberg/pull/71509)) - DataForm: Row Layout. ([71124](https://github.com/WordPress/gutenberg/pull/71124)) #### Block Library - Navigation Link: Change 'Add page' to 'Create page' button text. ([71487](https://github.com/WordPress/gutenberg/pull/71487)) - Navigation Link: Show 'Create page' button in Write Mode while hiding 'Add block'. ([71489](https://github.com/WordPress/gutenberg/pull/71489)) - Navigation Link: Surface page creation functionality clearly in the LinkUI. ([71188](https://github.com/WordPress/gutenberg/pull/71188)) - Normalize the Navigation block appender behavior between canvas and list view contexts. ([71163](https://github.com/WordPress/gutenberg/pull/71163)) - Table of Contents: Update toolbar controls. ([71587](https://github.com/WordPress/gutenberg/pull/71587)) - Terms Query: Combine Order and Order By control into single dropdown + remove order by slug. ([71656](https://github.com/WordPress/gutenberg/pull/71656)) #### Write mode - Add Navigation Add Page Button. ([71192](https://github.com/WordPress/gutenberg/pull/71192)) - Hide Post Date toolbar when child of Query in contentOnly mode. ([71707](https://github.com/WordPress/gutenberg/pull/71707)) - Try adding a `contentRole` block support to content container blocks. ([71539](https://github.com/WordPress/gutenberg/pull/71539)) #### Block bindings - Add `block_bindings_supported_attributes` filter. ([71663](https://github.com/WordPress/gutenberg/pull/71663)) - Add fallback for new features introduced in Core. ([71389](https://github.com/WordPress/gutenberg/pull/71389)) - Image block: Save `
` if `caption` attr is bound. ([71483](https://github.com/WordPress/gutenberg/pull/71483)) #### Block Editor - Localize labels in getVisualTypeName() for link control search items. ([71503](https://github.com/WordPress/gutenberg/pull/71503)) - Update conditions for displaying the empty block inserter. ([70897](https://github.com/WordPress/gutenberg/pull/70897)) #### Global Styles - Site Editor: Always show Additional CSS button. ([71537](https://github.com/WordPress/gutenberg/pull/71537)) #### Components - Add support for ValidatedFormTokenField. ([71350](https://github.com/WordPress/gutenberg/pull/71350)) #### Command Palette - Make navigation commands available on all screens. ([71335](https://github.com/WordPress/gutenberg/pull/71335)) #### Interactivity API - Add fetchpriority=low support to script modules. ([70173](https://github.com/WordPress/gutenberg/pull/70173)) #### Block Variations - Have `getActiveBlockVariation` fall back to default variation. ([63858](https://github.com/WordPress/gutenberg/pull/63858)) #### Core Data - Core Data: Remove conditions for selector resolutions. ([71575](https://github.com/WordPress/gutenberg/pull/71575)) ### New APIs - Core Commands: Introduce new useCommands hook. ([71603](https://github.com/WordPress/gutenberg/pull/71603)) ### Bug Fixes - Core Data: Don't return partial data when selecting a complete item. ([71474](https://github.com/WordPress/gutenberg/pull/71474)) - Core Data: Fix early return check for the record field-level resolutions. ([71541](https://github.com/WordPress/gutenberg/pull/71541)) - Core Data: Fix field conditions in 'getRevision' selector. ([71629](https://github.com/WordPress/gutenberg/pull/71629)) - Fix PHP 8.5 array offset deprecation warning. ([71654](https://github.com/WordPress/gutenberg/pull/71654)) #### DataViews - DataForms regular layout: Remove label style overrides as they cause inconsistent results. ([71574](https://github.com/WordPress/gutenberg/pull/71574)) - DataForms regular layout: Use BaseControl visual label for readonly fields when in top labelPosition. ([71597](https://github.com/WordPress/gutenberg/pull/71597)) - DataViews grid layout: Rounded corners for media. ([71543](https://github.com/WordPress/gutenberg/pull/71543)) - Field API: Add `setValue`. ([71604](https://github.com/WordPress/gutenberg/pull/71604)) #### Write mode - Add contentRole to Query block and make sure Change design always works as expected. ([71686](https://github.com/WordPress/gutenberg/pull/71686)) - Hide Spacer resizable box in write mode. ([71671](https://github.com/WordPress/gutenberg/pull/71671)) - Make sure "add page" button label only appears once. ([71710](https://github.com/WordPress/gutenberg/pull/71710)) #### Block Editor - Fix popover scroll hook’s simultaneous scrolling. ([71468](https://github.com/WordPress/gutenberg/pull/71468)) - Fix stale insertion point reference. ([71559](https://github.com/WordPress/gutenberg/pull/71559)) - useClipboardHandler: Prevent file paste for users without media upload permissions. ([71607](https://github.com/WordPress/gutenberg/pull/71607)) #### Components - Fix popover not calling onClose on unmount. ([71252](https://github.com/WordPress/gutenberg/pull/71252)) - Modal headings and labels missing editor text color. ([71311](https://github.com/WordPress/gutenberg/pull/71311)) - Validated form controls: Fix Sass var handling for red color. ([71391](https://github.com/WordPress/gutenberg/pull/71391)) #### Global Styles - BorderRadius Presets: Fix Generating wrong variable names in pattern code. ([71631](https://github.com/WordPress/gutenberg/pull/71631)) - Search: Border radius presets work correctly. ([71481](https://github.com/WordPress/gutenberg/pull/71481)) #### Block Library - Accordion: Add BlockGap support to content & panel. ([71461](https://github.com/WordPress/gutenberg/pull/71461)) - Increase taxonomy limit for Terms List dropdown. ([71569](https://github.com/WordPress/gutenberg/pull/71569)) #### Block bindings - Fix back-compat layer. ([71691](https://github.com/WordPress/gutenberg/pull/71691)) #### Block Transforms - Block Editor: Fix BlockSwitcher to prevent transforms on reusable blocks. ([71661](https://github.com/WordPress/gutenberg/pull/71661)) #### Patterns - Content Only Pattern experiment: Restore purple block icon color for synced patterns. ([71655](https://github.com/WordPress/gutenberg/pull/71655)) #### Post Editor - Fix: Hide "View Post" link for non-viewable post types. ([71356](https://github.com/WordPress/gutenberg/pull/71356)) #### Block API - Allow block attributes strings to terminate in \ character. ([71291](https://github.com/WordPress/gutenberg/pull/71291)) #### Block Bindings - Block Bindings: Fix pattern override bug, editing was allowed on non enabled overrides blocks. ([71813])(https://github.com/WordPress/gutenberg/pull/71813)) ### Accessibility - Block Comments: Make "n more replies" text clickable for accessibility. ([71387](https://github.com/WordPress/gutenberg/pull/71387)) - feat: Clarify label & add help text with link. ([70451](https://github.com/WordPress/gutenberg/pull/70451)) #### DataViews - Custom `empty` elements are no longer wrapped in `

` tags to improve accessibility. ([71561](https://github.com/WordPress/gutenberg/pull/71561)) ### Performance - Core Data: Always try to resolve entity permissions. ([71532](https://github.com/WordPress/gutenberg/pull/71532)) #### Post Editor - Editor: Try displaying intermediate results for hierarchical terms. ([71402](https://github.com/WordPress/gutenberg/pull/71402)) ### Experiments #### Patterns - Make unsynced patterns content only by default. ([71512](https://github.com/WordPress/gutenberg/pull/71512)) - contentOnly Patterns experiment: Add Edit Contents button to block inspector and show 'Detach' block action. ([71653](https://github.com/WordPress/gutenberg/pull/71653)) #### Block Library - Add Terms Query block. ([70720](https://github.com/WordPress/gutenberg/pull/70720)) - Pattern content only experiment: Make template parts section blocks. ([71627](https://github.com/WordPress/gutenberg/pull/71627)) #### Block Commenting - Make buttons in dialogs translatable and clear. ([71639](https://github.com/WordPress/gutenberg/pull/71639)) - Use rendered comment content. ([71638](https://github.com/WordPress/gutenberg/pull/71638)) - Improve error handling for core data actions. ([71695](https://github.com/WordPress/gutenberg/pull/71695)) - Use TextareaAutosize for comment field. ([71424](https://github.com/WordPress/gutenberg/pull/71424)) - Add comment indicators in the block toolbar. ([71271](https://github.com/WordPress/gutenberg/pull/71271)) - Add the ability to reopen resolved comments. ([71250](https://github.com/WordPress/gutenberg/pull/71250)) - Enable inline comments on published post. ([71295](https://github.com/WordPress/gutenberg/pull/71295)) - Block Comments: Prevent commenting on empty blocks. ([71497](https://github.com/WordPress/gutenberg/pull/71497)) - Fix block comment to display correct time. ([71652](https://github.com/WordPress/gutenberg/pull/71652)) - Fix: Disable block commenting when postId is not number. ([71643](https://github.com/WordPress/gutenberg/pull/71643)) - Fix: Hide resolved comments in unpinned mode. ([71409](https://github.com/WordPress/gutenberg/pull/71409)) - Fix: Unable to pin comment sidebar after unpinning. ([71386](https://github.com/WordPress/gutenberg/pull/71386)) - i18n: Show "1 more reply" instead of "1 more replies" in block comments. ([71685](https://github.com/WordPress/gutenberg/pull/71685)) ### Documentation - ControlWithError: Add documentation about cloned `children`. ([71392](https://github.com/WordPress/gutenberg/pull/71392)) - DataForm: Remove default storybook example. ([71609](https://github.com/WordPress/gutenberg/pull/71609)) - Docs: Fix broken links in Gutenberg release checklist. ([71611](https://github.com/WordPress/gutenberg/pull/71611)) - Docs: Split "Gutenberg Release Process" page into two. ([71130](https://github.com/WordPress/gutenberg/pull/71130)) ### Code Quality - Block Commenting: Prevent unnecessary API requests when post ID is not integer. ([71713](https://github.com/WordPress/gutenberg/pull/71713)) - CODEOWNERS: Remove some block code owners. ([71657](https://github.com/WordPress/gutenberg/pull/71657)) - Export `UseEntityRecordsWithPermissionsType`. ([71003](https://github.com/WordPress/gutenberg/pull/71003)) - Migrate element package to TS. ([70886](https://github.com/WordPress/gutenberg/pull/70886)) - [core-data]: Fix TS types for user object. ([68045](https://github.com/WordPress/gutenberg/pull/68045)) - i18n: Remove unnecessary JS file. ([71549](https://github.com/WordPress/gutenberg/pull/71549)) #### Block Library - Clean up LinkUI duplication for Add block and Create page flows. ([71499](https://github.com/WordPress/gutenberg/pull/71499)) - Gallery Block: Add end-to-end test for image randomization. ([71538](https://github.com/WordPress/gutenberg/pull/71538)) - Refactor Link UI controls with better props. ([71515](https://github.com/WordPress/gutenberg/pull/71515)) - Refactor: Content only template locking block editing modes to reducer. ([67606](https://github.com/WordPress/gutenberg/pull/67606)) #### Block bindings - Date block: Move `block_bindings_supported_attributes` filter to compat layer. ([71662](https://github.com/WordPress/gutenberg/pull/71662)) #### DataViews - Remove leftover code for Pages. ([71534](https://github.com/WordPress/gutenberg/pull/71534)) ### Tools - Update CODEOWNERS to remove ndiego. ([71591](https://github.com/WordPress/gutenberg/pull/71591)) #### Testing - Automated testing: Add taxonomy pagination tests. ([71584](https://github.com/WordPress/gutenberg/pull/71584)) - Fix comments in block editing mode tests. ([71690](https://github.com/WordPress/gutenberg/pull/71690)) - contentOnly patterns experiment: Add reducer tests. ([71688](https://github.com/WordPress/gutenberg/pull/71688)) ## First-time contributors The following PRs were merged by first-time contributors: - @coderGtm: feat: Clarify label & add help text with link. ([70451](https://github.com/WordPress/gutenberg/pull/70451)) - @straku: Field API: Add `setValue`. ([71604](https://github.com/WordPress/gutenberg/pull/71604)) - @xavier-lc: Export `UseEntityRecordsWithPermissionsType`. ([71003](https://github.com/WordPress/gutenberg/pull/71003)) ## Contributors The following contributors merged PRs in this release: @adamsilverstein @Adi-ty @andrewserong @coderGtm @coreyworrell @dhruvikpatel18 @elazzabi @ellatrix @getdave @gigitux @heavyweight @jeryj @jorgefilipecosta @karthick-murugan @kmanijak @kushagra-goyal-14 @Mamaduka @manzoorwanijk @mikachan @mirka @ndiego @ntsekouras @oandregal @ockham @p-jackson @priethor @R1shabh-Gupta @shimotmk @shrivastavanolo @sirreal @stokesman @straku @swissspidy @t-hamano @talldan @tellthemachines @USERSATOSHI @westonruter @xavier-lc @yashjawale = 21.6.0 = ## Changelog ### Enhancements - Add support for precision type placeholders to translator comments eslint. ([71145](https://github.com/WordPress/gutenberg/pull/71145)) - Core Commands: Add `Dashboard` option to return to dashboard. ([71261](https://github.com/WordPress/gutenberg/pull/71261)) - Core Data: Add 'supportsPagination' to all appropriate entities. ([71302](https://github.com/WordPress/gutenberg/pull/71302)) - Core Data: Forward resolvers for pagination selectors. ([71304](https://github.com/WordPress/gutenberg/pull/71304)) - Core Data: Include pagination meta while receiving intermediate results. ([71401](https://github.com/WordPress/gutenberg/pull/71401)) - Create Block: Add lifecycle script execution support. ([71072](https://github.com/WordPress/gutenberg/pull/71072)) - Deps: Bump `framer-motion` to `v11.15.0`. ([71442](https://github.com/WordPress/gutenberg/pull/71442)) - Display names for Context providers. ([71208](https://github.com/WordPress/gutenberg/pull/71208)) - Move `Site Editor` command from `@wordpress/editor` package to `@wordpress/core-commands`. ([71262](https://github.com/WordPress/gutenberg/pull/71262)) #### DataViews - DataForm: Add description support for the combined fields and show the description in the Card layout. ([71380](https://github.com/WordPress/gutenberg/pull/71380)) - DataForm: Streamline validation behavior. ([71345](https://github.com/WordPress/gutenberg/pull/71345)) - Revert "DataForm: Streamline validation behavior". ([71359](https://github.com/WordPress/gutenberg/pull/71359)) - Support hiding the title in Grid layout, with actions available on hover. ([71369](https://github.com/WordPress/gutenberg/pull/71369)) - Support the "Minimal UI" story by using `DataViews.Footer`. ([71276](https://github.com/WordPress/gutenberg/pull/71276)) #### Block Library - Accordion Panel: Remove unnecessary wrapper div and simplify save. ([71454](https://github.com/WordPress/gutenberg/pull/71454)) - Accordion: Add an "Add" button. ([71388](https://github.com/WordPress/gutenberg/pull/71388)) - Query Loop Block: Fix broken placeholder. ([70840](https://github.com/WordPress/gutenberg/pull/70840)) #### Offline - api-fetch: Check navigator.onLine to improve failure notices. ([71438](https://github.com/WordPress/gutenberg/pull/71438)) #### Meta Boxes - Edit Post: Check for meta box container before adding constraints. ([71423](https://github.com/WordPress/gutenberg/pull/71423)) #### Commands - feat: Added keyword support & added basic keywords for post/page. ([70624](https://github.com/WordPress/gutenberg/pull/70624)) ### New APIs #### Global Styles - Add support for select or dropdown elements. ([70379](https://github.com/WordPress/gutenberg/pull/70379)) - Add element support for text related inputs. ([70378](https://github.com/WordPress/gutenberg/pull/70378)) ### Bug Fixes - Add permission checks to Command Palette commands. ([71267](https://github.com/WordPress/gutenberg/pull/71267)) - Components: Fix Tab font size when used outside WP. ([71346](https://github.com/WordPress/gutenberg/pull/71346)) - Core Data: Fix error in 'getEntityRecordsTotalPages' selector. ([71303](https://github.com/WordPress/gutenberg/pull/71303)) - Scripts: Do not access `window` global. ([71348](https://github.com/WordPress/gutenberg/pull/71348)) - wp-scripts: Remove `clean-webpack-plugin` dependency. ([71080](https://github.com/WordPress/gutenberg/pull/71080)) #### Block Library - Accordion Header: Fix RTL toggle button layout. ([71480](https://github.com/WordPress/gutenberg/pull/71480)) - Fix issue of css affecting the nested accordion icon. ([71445](https://github.com/WordPress/gutenberg/pull/71445)) - Fix timezone in Date block. ([71430](https://github.com/WordPress/gutenberg/pull/71430)) - Fix: Randomization in Gallery Block doesn't work when Lightbox is enabled. ([71408](https://github.com/WordPress/gutenberg/pull/71408)) - Group Block variation:Remove variation text color. ([71429](https://github.com/WordPress/gutenberg/pull/71429)) - Properly apply styles and classes to the experimental form block. ([55755](https://github.com/WordPress/gutenberg/pull/55755)) - Template Part: Display icons correctly when in placeholder state. ([71327](https://github.com/WordPress/gutenberg/pull/71327)) - fix: Prevent accordion toggle button overflow at full width. ([71446](https://github.com/WordPress/gutenberg/pull/71446)) - fix: Prevent scrollbars on accordion header and toggle. ([71484](https://github.com/WordPress/gutenberg/pull/71484)) #### Write mode - Allow adding "content" role blocks to containers that also have a "content" role in write mode. ([71232](https://github.com/WordPress/gutenberg/pull/71232)) - Audio and Video: Hide caption controls in contentOnly mode. ([71368](https://github.com/WordPress/gutenberg/pull/71368)) - Hide 'Add block' control in Link UI when Navigation Link block is in contentOnly mode. ([71213](https://github.com/WordPress/gutenberg/pull/71213)) - Image: Don't allow convert to cover controls in contentOnly mode. ([71329](https://github.com/WordPress/gutenberg/pull/71329)) #### Post Editor - Edit Post: Fix misplaced icon on back button. ([71406](https://github.com/WordPress/gutenberg/pull/71406)) - Editor: Fix theme stylesheet injection in 'useAvailablePatterns'. ([71332](https://github.com/WordPress/gutenberg/pull/71332)) #### DataViews - Fix grid padding values on mobile viewports. ([71455](https://github.com/WordPress/gutenberg/pull/71455)) #### Block Editor - Inserter: Fix `InserterListbox` rendering for React 19. ([71410](https://github.com/WordPress/gutenberg/pull/71410)) #### Style Book - Accordion Content, Header, Panel: Remove example field. ([71407](https://github.com/WordPress/gutenberg/pull/71407)) #### Zoom Out - Fix Zoom out should be disabled when Show Template is toggled off. ([71361](https://github.com/WordPress/gutenberg/pull/71361)) #### Components - ControlWithError: Show validating state when transitioning from error state. ([71260](https://github.com/WordPress/gutenberg/pull/71260)) #### Interactivity API - iAPI: Make state getters to be updated asynchronously with `store()`. ([70974](https://github.com/WordPress/gutenberg/pull/70974)) ### Performance - Add wp-env SPX profiler option. ([70693](https://github.com/WordPress/gutenberg/pull/70693)) #### Post Editor - Editor: Improve the 'Design' sidebar panel performance. ([71333](https://github.com/WordPress/gutenberg/pull/71333)) ### Documentation - Core Data: Improve 'registry.batch' documentation. ([71325](https://github.com/WordPress/gutenberg/pull/71325)) - DataForm: Better story for validation. ([71298](https://github.com/WordPress/gutenberg/pull/71298)) - DataViews: Fix `defaultLayouts` documentation error. ([71334](https://github.com/WordPress/gutenberg/pull/71334)) - Field Types: Update storybook. ([71440](https://github.com/WordPress/gutenberg/pull/71440)) - Hooks: Document 'hookName' and 'namespace' parameters. ([71288](https://github.com/WordPress/gutenberg/pull/71288)) - Storybook: Set `DateCalendar` and `DateRangeCalendar` components as private. ([71453](https://github.com/WordPress/gutenberg/pull/71453)) ### Code Quality - A11y: Remove redundant styles. ([65409](https://github.com/WordPress/gutenberg/pull/65409)) - Command Palette: Enqueue assets globally. ([71264](https://github.com/WordPress/gutenberg/pull/71264)) - Convert api-fetch package to TypeScript. ([67669](https://github.com/WordPress/gutenberg/pull/67669)) - Convert date package to TypeScript. ([67665](https://github.com/WordPress/gutenberg/pull/67665)) - Core Data: Remove unused reducers. ([71305](https://github.com/WordPress/gutenberg/pull/71305)) - Fix: Add JSON_HEX_TAG flag to wp_json_encode in script tags. ([71280](https://github.com/WordPress/gutenberg/pull/71280)) - Interface: Remove leftover comment. ([71331](https://github.com/WordPress/gutenberg/pull/71331)) - Types: Update to be compatible with React 19. ([71374](https://github.com/WordPress/gutenberg/pull/71374)) - api-fetch: Clean up error handling. ([71458](https://github.com/WordPress/gutenberg/pull/71458)) - api-fetch: Cleanup and improve unit tests. ([71439](https://github.com/WordPress/gutenberg/pull/71439)) - core-data: Use Object.fromEntries instead of reduce when generating entities reducer. ([36296](https://github.com/WordPress/gutenberg/pull/36296)) #### Block Editor - Fold `uniqueByBlock` into `options` object. ([71279](https://github.com/WordPress/gutenberg/pull/71279)) - Remove duplicate 'InsertionPointOpenRef' context definition. ([71465](https://github.com/WordPress/gutenberg/pull/71465)) #### Block Library - Image block: Remove unused code. ([71292](https://github.com/WordPress/gutenberg/pull/71292)) - refactor: Remove unnecessary fields from accordion block.json files. ([71441](https://github.com/WordPress/gutenberg/pull/71441)) #### Post Editor - Update types of getCurrentPostId. ([71347](https://github.com/WordPress/gutenberg/pull/71347)) #### Global Styles - Remove unecessary useEffect from ScreenStyleVariations. ([71344](https://github.com/WordPress/gutenberg/pull/71344)) ### Tools #### Testing - Avoid using `*-latest` for runner images. ([71201](https://github.com/WordPress/gutenberg/pull/71201)) - Fix failing command center end-to-end tests. ([71293](https://github.com/WordPress/gutenberg/pull/71293)) - GitHub Actions: Try to fix storybook smoke tests. ([71284](https://github.com/WordPress/gutenberg/pull/71284)) - Upgrade Playwright to v1.55. ([71285](https://github.com/WordPress/gutenberg/pull/71285)) #### Build Tooling - Fix PHP unit testing jobs to not include version. ([71396](https://github.com/WordPress/gutenberg/pull/71396)) - Release Workflow: Add github.ref validation. ([71404](https://github.com/WordPress/gutenberg/pull/71404)) ## First-time contributors The following PRs were merged by first-time contributors: - @levinbaria: Fix issue of css affecting the nested accordion icon. ([71445](https://github.com/WordPress/gutenberg/pull/71445)) ## Contributors The following contributors merged PRs in this release: @Adi-ty @andrewserong @aristath @DAreRodz @desrosj @dinhtungdu @getdave @himanshupathak95 @im3dabasia @jsnajdr @juanfra @kmanijak @lalitkumawat1m @levinbaria @MaggieCabrera @Mamaduka @manzoorwanijk @Mayank-Tripathi32 @mcsf @mikachan @mirka @nerrad @oandregal @R1shabh-Gupta @ramonjd @shimotmk @sirreal @swissspidy @t-hamano @talldan @tellthemachines @tyxla @USERSATOSHI @vipul0425 @westonruter @youknowriad = 21.5.0 = ## Changelog ### Features #### Block Library - Add Accordions Block. ([64119](https://github.com/WordPress/gutenberg/pull/64119)) - Query Title: Add "Post Type Label" variation. ([71167](https://github.com/WordPress/gutenberg/pull/71167)) ### Enhancements - DataForm: Panel layout can open as `dropdown` or `modal`. ([71212](https://github.com/WordPress/gutenberg/pull/71212)) - Move Style above Navigation in Command Pallete. ([71265](https://github.com/WordPress/gutenberg/pull/71265)) - Update `@tannin/sprintf` for full precision typing support in `@wordpress/i18n`'s sprintf. ([71185](https://github.com/WordPress/gutenberg/pull/71185)) #### DataViews - Add `enableMoving` option to the `table` layout to allow or disallow column moving left and right. ([71120](https://github.com/WordPress/gutenberg/pull/71120)) - Add smaller preview size to dataviews grid layout. ([71077](https://github.com/WordPress/gutenberg/pull/71077)) - Allow hiding configuration. ([71173](https://github.com/WordPress/gutenberg/pull/71173)) - DataForm: Add `array` control. ([71136](https://github.com/WordPress/gutenberg/pull/71136)) - DataForm: Add new `card` layout. ([71100](https://github.com/WordPress/gutenberg/pull/71100)) - DataViews story: Rename "Non-interactive" to "Minimal UI". ([71178](https://github.com/WordPress/gutenberg/pull/71178)) - Try adding optional infinite scroll to dataviews. ([70955](https://github.com/WordPress/gutenberg/pull/70955)) #### Block Library - Add View button to navigation link blocks. ([70986](https://github.com/WordPress/gutenberg/pull/70986)) - Cover Block: Fix placeholder interaction in contentOnly mode. ([70157](https://github.com/WordPress/gutenberg/pull/70157)) - Rename Accordions block to Accordion. ([71222](https://github.com/WordPress/gutenberg/pull/71222)) - Video: Enable autoplay for video on `iOS` devices. ([69380](https://github.com/WordPress/gutenberg/pull/69380)) #### Components - Calendar component: Adjusts the justification for the first and last days of the week. ([71005](https://github.com/WordPress/gutenberg/pull/71005)) - Form components: Support async validation. ([71184](https://github.com/WordPress/gutenberg/pull/71184)) - Primary button: Update disabled state to be less prominent. ([70674](https://github.com/WordPress/gutenberg/pull/70674)) - Update gradient-parser from 1.0.2 to 1.1.1. ([71186](https://github.com/WordPress/gutenberg/pull/71186)) #### Write mode - Hide Cut/Copy commands in Write Mode (contentOnly). ([71063](https://github.com/WordPress/gutenberg/pull/71063)) - Restrict formatting controls in write mode (contentOnly). ([71058](https://github.com/WordPress/gutenberg/pull/71058)) #### Themes - Support providing border radius presets. ([67544](https://github.com/WordPress/gutenberg/pull/67544)) ### Bug Fixes - Block Comments: Remove period in comment UI text. ([71234](https://github.com/WordPress/gutenberg/pull/71234)) - Elements: Support unitless value in CSS custom properties. ([70704](https://github.com/WordPress/gutenberg/pull/70704)) - Fix horizontal overflow caused by long parent page names in Post Panel. ([71117](https://github.com/WordPress/gutenberg/pull/71117)) #### DataViews - Fix DataViews primary actions horizontal layout consistency. ([71274](https://github.com/WordPress/gutenberg/pull/71274)) - Preview size picker falls back to the smallest available size. ([71218](https://github.com/WordPress/gutenberg/pull/71218)) #### Components - DateCalendar, DateRangeCalendar: Use px instead of rem units, better theming support. ([71248](https://github.com/WordPress/gutenberg/pull/71248)) - MenuItem: Make accessible when disabled. ([71251](https://github.com/WordPress/gutenberg/pull/71251)) #### Block Library - Media & Text: Retain 'useFeaturedImage' value during transformations. ([71093](https://github.com/WordPress/gutenberg/pull/71093)) - Post Excerpts Block: Fix "read more" theme override. ([71179](https://github.com/WordPress/gutenberg/pull/71179)) #### Write mode - Fix: Hide crop and dimensions controls in site-logo block when in Write Mode. ([71061](https://github.com/WordPress/gutenberg/pull/71061)) - Fix: Hide heading level and alignment controls in site-title block when in contentOnly mode. ([71057](https://github.com/WordPress/gutenberg/pull/71057)) #### Block Editor - Editor: Fix drag and drop to the top of the page. ([71241](https://github.com/WordPress/gutenberg/pull/71241)) #### CSS & Styling - Fields Components: Add missing style resets for fieldset elements. ([71217](https://github.com/WordPress/gutenberg/pull/71217)) #### Post Editor - DocumentBar: Only show template icon when back button is not present. ([71183](https://github.com/WordPress/gutenberg/pull/71183)) #### Icons - Fix viewbox for table and formatting related icons. ([71155](https://github.com/WordPress/gutenberg/pull/71155)) #### Design Tools - Fix duotone `cleanEmptyObject` attributes. ([71151](https://github.com/WordPress/gutenberg/pull/71151)) #### Paste - Classic block: Prevent event bubbubbling on paste. ([71148](https://github.com/WordPress/gutenberg/pull/71148)) ### Experiments - al: Enable Command Palette in admin dashboard. ([71030](https://github.com/WordPress/gutenberg/pull/71030)) #### Block Library - Accordion Blocks: Make block icons internal. ([71229](https://github.com/WordPress/gutenberg/pull/71229)) ### Documentation - DataForm: Update stories. ([71268](https://github.com/WordPress/gutenberg/pull/71268)) - FormTokenField: Improve use case stories. ([71121](https://github.com/WordPress/gutenberg/pull/71121)) - Social: Include developer blog tutorial in README. ([71266](https://github.com/WordPress/gutenberg/pull/71266)) - Storybook: Move validated form components into main grouping. ([71181](https://github.com/WordPress/gutenberg/pull/71181)) - Storybook: Remove `experimental` category in favor of a badge. ([70540](https://github.com/WordPress/gutenberg/pull/70540)) - block.json schema: Make the apiVersion field required and only allow 3. ([71107](https://github.com/WordPress/gutenberg/pull/71107)) ### Code Quality #### Block Library - Accordion: Refactor settings panel to use ToolsPanel. ([71225](https://github.com/WordPress/gutenberg/pull/71225)) - File Block: Follow HTML API best practices. ([71034](https://github.com/WordPress/gutenberg/pull/71034)) #### Widgets Editor - Widget Area Block: Apply API version 3. ([71110](https://github.com/WordPress/gutenberg/pull/71110)) #### Icons - Deprecate moreHorizontalMobile. ([71172](https://github.com/WordPress/gutenberg/pull/71172)) - ### Tools #### Testing - Automated Testing: Re-enable storybook smoke test. ([71126](https://github.com/WordPress/gutenberg/pull/71126)) - Fix flaky 'navigable-toolbar' end-to-end test. ([71158](https://github.com/WordPress/gutenberg/pull/71158)) - Site editor e2e: Ensure dismissal notice waits for the first occurrence of an updated/published notice. ([71197](https://github.com/WordPress/gutenberg/pull/71197)) - Upgrade Playwright to v1.54.2. ([70503](https://github.com/WordPress/gutenberg/pull/70503)) #### Build Tooling - Dynamically set `node-version-file` input. ([71090](https://github.com/WordPress/gutenberg/pull/71090)) ## First-time contributors The following PRs were merged by first-time contributors: - @elazzabi: DataForm: Add `array` control. ([71136](https://github.com/WordPress/gutenberg/pull/71136)) ## Contributors The following contributors merged PRs in this release: @andrewserong @BogdanUngureanu @BugReportOnWeb @ciampo @desrosj @elazzabi @getdave @gigitux @im3dabasia @jasmussen @jffng @karthikeya-io @Mamaduka @mikachan @mikejolley @mirka @mrleemon @oandregal @p-jackson @priethor @R1shabh-Gupta @ramonjd @shimotmk @Sukhendu2002 @t-hamano @tellthemachines @USERSATOSHI @yogeshbhutkar @youknowriad = 21.4.0 = ## Changelog ### Features - DataForm: Bootstrap validation (required and typechecks). ([70901](https://github.com/WordPress/gutenberg/pull/70901)) - Override the existing file paths using those from a variant. ([70855](https://github.com/WordPress/gutenberg/pull/70855)) #### DataViews - Allow dataviews empty state to be customised. ([70867](https://github.com/WordPress/gutenberg/pull/70867)) ### Enhancements - Change header height from 60px to 64px. ([60729](https://github.com/WordPress/gutenberg/pull/60729)) - Core data: Add a private media "edit" action to ensure cache invalidation. ([70814](https://github.com/WordPress/gutenberg/pull/70814)) - ServerSideRender: Introduce a new 'useServerSideRender' hook. ([70543](https://github.com/WordPress/gutenberg/pull/70543)) #### DataViews - Add ctrl/cmd + click multiselection support to table layout when clicking rows. ([70891](https://github.com/WordPress/gutenberg/pull/70891)) - Align media styles in table view with list view for consistency. ([70671](https://github.com/WordPress/gutenberg/pull/70671)) - Allow Dataform Select Box to have a custom empty option. ([70894](https://github.com/WordPress/gutenberg/pull/70894)) - Implement Edit control for date field. ([70836](https://github.com/WordPress/gutenberg/pull/70836)) - Introduce locked filters. ([71075](https://github.com/WordPress/gutenberg/pull/71075)) - Make the media item clickable as well. ([70985](https://github.com/WordPress/gutenberg/pull/70985)) - Support groupBy in table layout. ([71055](https://github.com/WordPress/gutenberg/pull/71055)) - Try using responsive images in dataview grid layouts. ([70493](https://github.com/WordPress/gutenberg/pull/70493)) - `perPageSizes` tweaks. ([71004](https://github.com/WordPress/gutenberg/pull/71004)) #### Block Library - Add preview example for `comments-count` and `comments-link`. ([71016](https://github.com/WordPress/gutenberg/pull/71016)) - Categories: Disable links in the editor. ([70896](https://github.com/WordPress/gutenberg/pull/70896)) - Cover/Video Block: Add Drag-and-Drop Support for Poster Uploads. ([71039](https://github.com/WordPress/gutenberg/pull/71039)) - File Block: Use mime type to determine if file is PDF. ([71033](https://github.com/WordPress/gutenberg/pull/71033)) - File block: Use native feature detection for pdf support. ([63044](https://github.com/WordPress/gutenberg/pull/63044)) - Video/Cover Block: Enhance UI for Poster Image Preview. ([70939](https://github.com/WordPress/gutenberg/pull/70939)) #### Icons - Add icon: Dashboard. ([70300](https://github.com/WordPress/gutenberg/pull/70300)) - Update LTR and RTL icons. ([71084](https://github.com/WordPress/gutenberg/pull/71084)) - Update old table icons. ([71085](https://github.com/WordPress/gutenberg/pull/71085)) #### Block Editor - Explain why we need to intercept hash links in iframe editor. ([70960](https://github.com/WordPress/gutenberg/pull/70960)) - List: Add keyboard shortcuts to Indent/Outdent tooltips. ([71053](https://github.com/WordPress/gutenberg/pull/71053)) #### Media - useSaveImage: Handle missing editMediaEntity gracefully. ([70967](https://github.com/WordPress/gutenberg/pull/70967)) #### Write mode - Add shuffle style to write mode toolbar. ([70946](https://github.com/WordPress/gutenberg/pull/70946)) #### Interactivity API - Deprecate data-wp-ignore directive with warning message. ([70945](https://github.com/WordPress/gutenberg/pull/70945)) #### Components - TextControl: Improve theming support. ([70910](https://github.com/WordPress/gutenberg/pull/70910)) #### Block bindings - Date block: Allow connecting to Block Bindings. ([70585](https://github.com/WordPress/gutenberg/pull/70585)) ### Bug Fixes - Synced Pattern: Guard against redeclaration of `WP_Block_Cloner`. ([71174](https://github.com/WordPress/gutenberg/pull/71174)) - `core-data`: Fix `PostStatusObject` export ([#71191](https://github.com/WordPress/gutenberg/pull/71191)) - Add `@wordpress/env` as an optional peer dependency of `@wordpress/scripts`. ([70636](https://github.com/WordPress/gutenberg/pull/70636)) - DataViews: Allow searching over array fieldtypes. ([70785](https://github.com/WordPress/gutenberg/pull/70785)) - Fields: Add label to Password field. ([70865](https://github.com/WordPress/gutenberg/pull/70865)) - Review all the 'Add New' strings #53984. ([71083](https://github.com/WordPress/gutenberg/pull/71083)) - ServerSideRender: Allow skipping block shadow support value. ([70970](https://github.com/WordPress/gutenberg/pull/70970)) - Social Link Block: Add context to service names. ([70413](https://github.com/WordPress/gutenberg/pull/70413)) #### Block Library - File Block: Fix PDF preview on URLs containing query parameters. ([70915](https://github.com/WordPress/gutenberg/pull/70915)) - Image Block: Prepend HTTP to links when missing protocol. ([71027](https://github.com/WordPress/gutenberg/pull/71027)) - More Block: Fix undo/redo history for custom text. ([71087](https://github.com/WordPress/gutenberg/pull/71087)) - Page List: Fix Notice component background gets incorrectly inherited. ([70932](https://github.com/WordPress/gutenberg/pull/70932)) - Paragraph Block: Fix 'Drop cap' control reset value. ([70959](https://github.com/WordPress/gutenberg/pull/70959)) - Resize TikTok social icon to appropriate size. ([71101](https://github.com/WordPress/gutenberg/pull/71101)) - Video: Fix missing trailing periods. ([70857](https://github.com/WordPress/gutenberg/pull/70857)) #### DataViews - Added max-width to DataView columns. ([70983](https://github.com/WordPress/gutenberg/pull/70983)) - Clear user-input filters properly. ([70956](https://github.com/WordPress/gutenberg/pull/70956)) - DataForm: Fix Edit for `array` field type. ([71000](https://github.com/WordPress/gutenberg/pull/71000)) - Do not render an empty level span if level is 0. ([71021](https://github.com/WordPress/gutenberg/pull/71021)) - Pages: Filters should not be visible if they are present in the bundled view. ([71059](https://github.com/WordPress/gutenberg/pull/71059)) #### Block Editor - Fix single block selection when holding 'Shift' key. ([70978](https://github.com/WordPress/gutenberg/pull/70978)) - MediaReplaceFlow: Correctly truncate long URL. ([71062](https://github.com/WordPress/gutenberg/pull/71062)) - RichText: Support more colors for format boundary colors. ([70918](https://github.com/WordPress/gutenberg/pull/70918)) - Writing Flow: Remove empty blocks when the merge target doesn't support merging. ([70741](https://github.com/WordPress/gutenberg/pull/70741)) #### Post Editor - Editor: Fix 'isEditedPostAutosaveable' selector return value. ([70888](https://github.com/WordPress/gutenberg/pull/70888)) - Editor: Fix incorrect title when multiple post selected. ([70997](https://github.com/WordPress/gutenberg/pull/70997)) - Editor: Move editor-sidebar CSS reset closer to its target. ([71096](https://github.com/WordPress/gutenberg/pull/71096)) #### Saving - Core Data: Add getTitle for user entity. ([70941](https://github.com/WordPress/gutenberg/pull/70941)) - Core Data: Define record title getter for taxonomy entities. ([70863](https://github.com/WordPress/gutenberg/pull/70863)) #### Components - PaletteEdit: Fill available space with input field. ([70935](https://github.com/WordPress/gutenberg/pull/70935)) - TextareaControl: Add missing component CSS classname. ([70930](https://github.com/WordPress/gutenberg/pull/70930)) #### Block bindings - Date Block: Ensure that fallback value is overridden if source is not registered. ([71047](https://github.com/WordPress/gutenberg/pull/71047)) #### Icons - Update dollar icon. ([71042](https://github.com/WordPress/gutenberg/pull/71042)) #### Synced Patterns - Synced Pattern block: Pass block context to pattern content. ([70943](https://github.com/WordPress/gutenberg/pull/70943)) #### Interactivity API - iAPI Router: Ignores `

and