== Changelog == = 16.5.0 = ## Changelog ### Features #### Interactivity API - Allow passing optional `afterLoad` callbacks to `store` calls. ([53363](https://github.com/WordPress/gutenberg/pull/53363)) ### Enhancements #### Commands - Add block-related commands. ([52509](https://github.com/WordPress/gutenberg/pull/52509)) - Add support for registering commands without icons. ([53647](https://github.com/WordPress/gutenberg/pull/53647)) - Update the "Preview in a new tab" command to reuse the preview target tab when available. ([53242](https://github.com/WordPress/gutenberg/pull/53242)) - Update command palette styling. ([53117](https://github.com/WordPress/gutenberg/pull/53117)) - Improve command palette rendering on smaller viewports. ([53661](https://github.com/WordPress/gutenberg/pull/53661)) - Tweak existing commands to establish consistency with command language. ([53496](https://github.com/WordPress/gutenberg/pull/53496)) - End the command palette description with a period in the keyboard shortcut modal. ([53635](https://github.com/WordPress/gutenberg/pull/53635)) #### Components - Button: Remove default border from the destructive button. ([53607](https://github.com/WordPress/gutenberg/pull/53607)) - LineHeightControl: Allow for more granular control of decimal places. ([52902](https://github.com/WordPress/gutenberg/pull/52902)) - Snackbar: Design and motion improvements. ([53248](https://github.com/WordPress/gutenberg/pull/53248)) - Modal: - Add `headerActions` prop to enable buttons or other elements to be injected in the header. ([53328](https://github.com/WordPress/gutenberg/pull/53328)) - Enhance overlay interactions, enabling outside interactions without dismissal. ([52994](https://github.com/WordPress/gutenberg/pull/52994)) - ProgressBar: Update colors, including gray 300 for track color ([53349](https://github.com/WordPress/gutenberg/pull/53349)), theme system accent for indicator color ([53347](https://github.com/WordPress/gutenberg/pull/53347)), and the theme accent color variable. ([53632](https://github.com/WordPress/gutenberg/pull/53632)). #### Block Library - Column block: - Add a `stretch` option to block's vertical alignment options. ([53325](https://github.com/WordPress/gutenberg/pull/53325)) - Exit upon pressing enter in an empty paragraph at the end of the block. ([53311](https://github.com/WordPress/gutenberg/pull/53311)) - Classic block: Increase dimensions of modal and allow toggling fullscreen. ([53449](https://github.com/WordPress/gutenberg/pull/53449)) - Details block: - Add `accordion` and `toggle` keywords to improve block's discoverability. ([53501](https://github.com/WordPress/gutenberg/pull/53501)) - Add layout and block spacing options. ([53282](https://github.com/WordPress/gutenberg/pull/53282)) - File block: Add block spacing options. ([45107](https://github.com/WordPress/gutenberg/pull/45107)) - Image block: Add aspect ratio support to lightbox. ([52765](https://github.com/WordPress/gutenberg/pull/52765)) - Post Content block: Add color controls. ([51326](https://github.com/WordPress/gutenberg/pull/51326)) - Remove "post" from block titles. ([53492](https://github.com/WordPress/gutenberg/pull/53492)) #### Patterns - Open detail view when duplicating a pattern. ([53214](https://github.com/WordPress/gutenberg/pull/53214)) - Prevent the "create pattern" modal from closing the block options menu when it is closed. ([53707](https://github.com/WordPress/gutenberg/pull/53707)) - Skip migration logs in the patterns screen. ([53626](https://github.com/WordPress/gutenberg/pull/53626)) - Add missing full stop to string. ([53544](https://github.com/WordPress/gutenberg/pull/53544)) #### Global Styles - Add a reset to default global styles revision ([52965](https://github.com/WordPress/gutenberg/pull/52965)) and reduce visibility check from two to one revision ([53281](https://github.com/WordPress/gutenberg/pull/53281)). #### Media - Adjust size of image previews in list view. ([53649](https://github.com/WordPress/gutenberg/pull/53649)) - Add media previews to list view for gallery and image blocks. ([53381](https://github.com/WordPress/gutenberg/pull/53381)) #### Site Editor - Expose `Theme` via private APIs ([53262](https://github.com/WordPress/gutenberg/pull/53262)), which was necessary to use the progress bar component for the site editor loading screen ([53032](https://github.com/WordPress/gutenberg/pull/53032)). #### Block Editor - Add `Opens in new Tab` control into Link Preview. ([53566](https://github.com/WordPress/gutenberg/pull/53566)) - Dependencies: Bump `remove-accents` to 0.5.0. ([53420](https://github.com/WordPress/gutenberg/pull/53420)) - Top-align Publish row in the post panel. ([53573](https://github.com/WordPress/gutenberg/pull/53573)) - Allow layout controls to be disabled per block from theme.json. ([53378](https://github.com/WordPress/gutenberg/pull/53378)) - Fluid typography: Add min and max viewport width configurable options. ([53081](https://github.com/WordPress/gutenberg/pull/53081)) ### New APIs #### Extensibility - Make `useBlockEditingMode()` public. ([52094](https://github.com/WordPress/gutenberg/pull/52094)) ### Bug Fixes #### Commands - Style tweaks to fix metrics for resting and no results view in command palette. ([53497](https://github.com/WordPress/gutenberg/pull/53497)) - Order template results in Site Editor, to fix some templates not displaying. ([53286](https://github.com/WordPress/gutenberg/pull/53286)) - Don't allow access to Styles-related pages via the command palette in the hybrid theme. ([53123](https://github.com/WordPress/gutenberg/pull/53123)) #### Block Library - Button block: Avoid losing user changes when the `ButtonEdit` component re-renders. ([53507](https://github.com/WordPress/gutenberg/pull/53507)) - Cover block: Fix flickering when inserted in templates and also fix `isDark` calculation bugs. ([53253](https://github.com/WordPress/gutenberg/pull/53253)) - Footnotes block: - Ensure autosave works and escapes quotes as expected. ([53664](https://github.com/WordPress/gutenberg/pull/53664)) - Fix accidental override. ([53663](https://github.com/WordPress/gutenberg/pull/53663)) - Fix recursion into updating attributes when attributes is not an object. ([53257](https://github.com/WordPress/gutenberg/pull/53257)) - Remove Footnotes when interactive formatting is disabled. ([53474](https://github.com/WordPress/gutenberg/pull/53474)) - Image block: - Fix image stretching with only height. ([53443](https://github.com/WordPress/gutenberg/pull/53443)) - Don't render `DimensionsTool` if it is not resizable. ([53181](https://github.com/WordPress/gutenberg/pull/53181)) - Fix stretched images constrained by max-width. ([53274](https://github.com/WordPress/gutenberg/pull/53274)) - Clear aspect ratio when wide aligned. ([53439](https://github.com/WordPress/gutenberg/pull/53439)) - Change the conditions under which we display the scale control. ([53334](https://github.com/WordPress/gutenberg/pull/53334)) - Reset height when selecting the original aspect ratio. ([53339](https://github.com/WordPress/gutenberg/pull/53339)) - Latest Posts block: Make categories handling more defensive to prevent multisite error. ([53659](https://github.com/WordPress/gutenberg/pull/53659)) - Media & Text block: Fix deprecation with `isStackOnMobile` default value changed. ([49538](https://github.com/WordPress/gutenberg/pull/49538)) - Inject theme stylesheet value as template part theme attribute. ([53423](https://github.com/WordPress/gutenberg/pull/53423)) - Block serialization: Correctly compare default attribute values. ([53521](https://github.com/WordPress/gutenberg/pull/53521)) #### Block Editor - LinkControl: Prevent overflow when the title is a URL. ([53356](https://github.com/WordPress/gutenberg/pull/53356)) - Fix broken flows on Safari, including `ArrowUp` functionality in an empty paragraph ([53341](https://github.com/WordPress/gutenberg/pull/53341)) and multi-selection upon shift plus click ([53440](https://github.com/WordPress/gutenberg/pull/53440)). - Restore focus after dragging out of the block repeatedly. ([53429](https://github.com/WordPress/gutenberg/pull/53429)) - Avoid merging paragraph into a Columns block. ([53508](https://github.com/WordPress/gutenberg/pull/53508)) - Prevent vertical arrow keys getting stuck in view. ([53454](https://github.com/WordPress/gutenberg/pull/53454)) - Set top toolbar size dynamically. ([53526](https://github.com/WordPress/gutenberg/pull/53526)) - Support container queries in editor CSS. ([49915](https://github.com/WordPress/gutenberg/pull/49915)) - Copy tag name on internal paste. ([48254](https://github.com/WordPress/gutenberg/pull/48254)) #### Site Editor - Add missing i18n in `HomeTemplateDetails`. ([53543](https://github.com/WordPress/gutenberg/pull/53543)) - Add buttons for block settings and styles in smaller viewport. ([53412](https://github.com/WordPress/gutenberg/pull/53412)) - Ensure canvas edit mode button occupies the entire frame canvas. ([53730](https://github.com/WordPress/gutenberg/pull/53730)) - Fix document actions label helper method. ([52974](https://github.com/WordPress/gutenberg/pull/52974)) - Fix document title alignment in command palette button. ([53224](https://github.com/WordPress/gutenberg/pull/53224)) #### Post Editor - Address crash by moving editor style logic into a hook with `useMemo`. ([53596](https://github.com/WordPress/gutenberg/pull/53596)) - Fix support of sticky position in non-iframed post editor. ([53540](https://github.com/WordPress/gutenberg/pull/53540)) - Correct typo when setting the preview device type to 'Desktop'. ([53409](https://github.com/WordPress/gutenberg/pull/53409)) - Avoid returning a different object on every call to `getInsertionPoint`. ([53722](https://github.com/WordPress/gutenberg/pull/53722)) - Fix top toolbar in the post editor with custom fields in Safari. ([53688](https://github.com/WordPress/gutenberg/pull/53688)) - Improve metrics on post publish view buttons. ([53245](https://github.com/WordPress/gutenberg/pull/53245)) #### Page Content Focus - Fix missing Replace button in content-locked Image blocks. ([53410](https://github.com/WordPress/gutenberg/pull/53410)) - Fix BlockPreview in Template panel when editing a page in the site editor. ([53550](https://github.com/WordPress/gutenberg/pull/53550)) - Use `template.blocks` in BlockPreview if it exists. ([53611](https://github.com/WordPress/gutenberg/pull/53611)) #### Navigation Menus - Make all the 'Loading' strings consistent. ([52901](https://github.com/WordPress/gutenberg/pull/52901)) - Fix title not being copied correctly when duplicating navigation. ([53610](https://github.com/WordPress/gutenberg/pull/53610)) - Remove "go to" for terms and posts. ([53408](https://github.com/WordPress/gutenberg/pull/53408)) #### Typography - Fallback to default max viewport if layout wide size is fluid. ([53551](https://github.com/WordPress/gutenberg/pull/53551)) - Fix typo and add tests for fonts install endpoint. ([53644](https://github.com/WordPress/gutenberg/pull/53644)) #### Patterns - Fix Synced Patterns' color in quick inserter. ([53327](https://github.com/WordPress/gutenberg/pull/53327)) - Hide pattern previews on hover in inserter. ([53331](https://github.com/WordPress/gutenberg/pull/53331)) - Ensure it's possible to delete draft patterns. ([53405](https://github.com/WordPress/gutenberg/pull/53405)) - Fix pattern creation button in list view dropdown menu. ([53562](https://github.com/WordPress/gutenberg/pull/53562)) - Prevent sync status overlapping for some languages in patterns. ([53243](https://github.com/WordPress/gutenberg/pull/53243)) #### Global Styles - Fix push-to-global-styles clearing of attributes, border fallbacks, link hover colors, and behaviors. ([51621](https://github.com/WordPress/gutenberg/pull/51621)) - Preserve block style variations when securing theme json. ([53466](https://github.com/WordPress/gutenberg/pull/53466)) #### Layout - Don't add root padding to children of flex and grid layout blocks. ([53259](https://github.com/WordPress/gutenberg/pull/53259)) - Include namespace in layout classname for non-core blocks. ([53404](https://github.com/WordPress/gutenberg/pull/53404)) #### Interactivity API - Add short-circuit to `useSignalEffect`. ([53358](https://github.com/WordPress/gutenberg/pull/53358)) - Add support for underscores and leading dashes in the suffix part of the directive. ([53337](https://github.com/WordPress/gutenberg/pull/53337)) - Update deepsignal version. ([53549](https://github.com/WordPress/gutenberg/pull/53549)) #### Components - Button: Add `:Disabled` selector to reset hover color for disabled buttons. ([53411](https://github.com/WordPress/gutenberg/pull/53411)) - Preferences Modal: Insert path and query args to form before submitting. ([53324](https://github.com/WordPress/gutenberg/pull/53324)) ### Accessibility - Type labels GH Action: Fix accessibility issues in error message. ([53371](https://github.com/WordPress/gutenberg/pull/53371)) - Add accessible description of current Navigation block state. ([53469](https://github.com/WordPress/gutenberg/pull/53469)) - Implement accessible version of Navigation overlay preview toggle control. ([53462](https://github.com/WordPress/gutenberg/pull/53462)) - Search Block: Fix unintended wrapping of button text in "Button only" style. ([53373](https://github.com/WordPress/gutenberg/pull/53373)) ### Performance - Compute presets from `theme.json`: Skip those without classes or variables. ([53574](https://github.com/WordPress/gutenberg/pull/53574)) - Switch performance tests to Playwright. ([52022](https://github.com/WordPress/gutenberg/pull/52022)) - Fix memory leaks in `