github WordPress/gutenberg v16.5.0-rc.1
16.5.0 RC1

latest releases: @wordpress/wordcount@4.7.1-next.1f6eadc42.0, @wordpress/widgets@4.7.1-next.1f6eadc42.0, @wordpress/warning@3.7.1-next.1f6eadc42.0...
pre-release13 months ago

Changelog

Features

Interactivity API

  • Allow passing optional afterLoad callbacks to store calls. (53363)

Enhancements

Post Editor

  • Command Palette:
    • Add new block commands. (52509)
    • Add support for registering commands without icons. (53647)
    • Update the Preview in a new tab command to reuse the preview target tab when available. (53242)
    • Update command palette styling. (53117)
    • Improve command palette rendering on smaller viewports. (53661)
  • Replace withPluginContext in PluginPostPublishPanel (53302) and PluginPrePublishPanel (53304).
  • Replace HoCs with hooks in:
    • PluginDocumentSettingPanel (53290)
    • PostPendingStatusCheck (53389)
    • PostPendingStatus (53387)
  • Top-align Publish row in the post panel. (53573)
  • Dependencies: Bump remove-accents to 0.5.0. (53420)

Components

  • Button: Remove default border from the destructive button. (53607)
  • LineHeightControl: Allow for more granular control of decimal places. (52902)
  • Snackbar: Design and motion improvements. (53248)
  • Modal:
    • Add headerActions prop to render buttons in the header. (53328)
    • Nuance outside interactions. (52994)
  • ProgressBar:
    • Use gray 300 for track color. (53349)
    • Use the theme system accent for indicator color. (53347)
    • Use theme accent color variable. (53632)
  • Expose Theme via private APIs. (53262)
  • Move accent colors to theme context. (53631)

Block Library

  • Details block: Add accordion and toggle keywords. (53501)
  • Column block:
    • Add stretch alignment. (53325)
    • Exit on enter. (53311)
  • Classic block: Increase dimensions of modal and allow toggling fullscreen. (53449)
  • File block: Add spacing support. (45107)
  • Footnotes block: Add typography, dimensions, and border block supports. (53044)
  • Image block: Add aspect ratio support to lightbox. (52765)
  • Remove "post" from block titles. (53492)

Patterns

  • Open detail view when duplicating pattern. (53214)
  • Prevent convert modal closing block options menu. (53707)
  • Skip migration logs in the Patterns screen. (53626)

Global Styles

  • Global styles revisions: Add a reset to default revision. (52965)
  • Global styles revisions: Reduce visibility check from 2 to 1 revision. (53281)
  • Post Content: Add color controls. (51326)

Media

  • Adjust size of image previews in list view. (53649)
  • List View: Add media previews to list view for gallery and image blocks. (53381)

Site Editor

  • Command Palette: Order template results in Site Editor. (53286)
  • Edit Site: Use progress bar for loading screen. (53032)

Data Layer

  • Data: Warn if the 'useSelect' hook returns different values when called with the same state and parameters. (53666)

Block Editor

  • Add Opens in new Tab control into Link Preview. (53566)

Interactivity API

  • Update deepsignal version. (53549)

Code Editor

  • Tweak, and add, more consistent commands. (53496)

Themes

  • Allow layout controls to be disabled per block from theme.json. (53378)

Plugins API

  • Plugins: Introduce the 'usePluginContext' hook. (53291)

Layout

  • Add layout and block spacing to details block. (53282)

Typography

  • Fluid typography: Add min and max viewport width configurable options. (53081)

New APIs

Extensibility

  • Make useBlockEditingMode() public. (52094)

Bug Fixes

  • Command palette: Fix metrics for resting and no results view. (53497)
  • Fix top toolbar in the post editor with custom fields in Safari. (53688)
  • Improve metrics on post publish view buttons. (53245)
  • Set top toolbar size dynamically. (53526)
  • Support container queries in editor CSS. (49915)

Block Library

  • Button block: Memoize link value passed to the LinkControl. (53507)
  • Cover block: Fix flickering when inserted in templates and also fix isDark calculation bugs. (53253)
  • Footnotes:
    • Autosave is not slashing JSON. (53664)
    • Fix accidental override. (53663)
    • Fix recursion into updating attributes when attributes is not an object. (53257)
  • Image block:
    • Fix image stretching with only height. (53443)
    • Don't render DimensionsTool if it is not resizable. (53181)
    • Fix stretched images constrained by max-width. (53274)
    • Clear aspect ratio when wide aligned. (53439)
    • Dimensions Tool: Change the conditions underwhich we display the scale control. (53334)
    • Aspect Ratio: Reset height when selecting the original aspect ratio. (53339)
  • Latest Posts block: Make latest-posts ssr categories handling more defensive. (53659)
  • Inject theme stylesheet value as template part theme attribute. (53423)
  • Patterns: Add delete_posts to the wp_block (patterns) capabilities. (53405)
  • Block serialization: Correctly compare default attribute values. (53521)

Block Editor

  • Fix Synced Patterns' color in quick inserter. (53327)
  • Hide pattern previews on hover in inserter. (53331)
  • LinkControl: Prevent overflow when the title is a URL. (53356)
  • Safari: Fix ArrowUp on empty paragraph. (53341)
  • Safari: Fix Shift+Click multi select. (53440)
  • Selection: Restore focus after dragging out of the block repeatedly. (53429)
  • Writing flow: Avoid merging paragraph into Columns. (53508)
  • Writing flow: Fix vertical arrow keys not moving. (53454)

Site Editor

  • Add missing i18n in HomeTemplateDetails. (53543)
  • Adds site editor mobile block settings and styles. (53412)
  • Edit Site: Fix site editor canvas edit mode button. (53730)
  • Fix document actions label helper method. (52974)
  • Fix document title alignment in command palette button. (53224)

Post Editor

  • Fix crash by moving editor style logic into a hook with useMemo. (53596)
  • Fix support of sticky position in non-iframed post editor. (53540)
  • Fix the typo when setting the preview device type to 'Desktop'. (53409)
  • getInsertionPoint: Avoid returning a different object on every call. (53722)

Page Content Focus

  • Fix missing Replace button in content-locked Image blocks. (53410)
  • Site Editor: Fix BlockPreview in Template panel when editing a page. (53550)
  • Use template.blocks in BlockPreview if it exists. (53611)

Navigation Menus

  • Fix: #52886 Make all the 'Loading' strings consistent. (52901)
  • Fix: Title is not copied correctly when duplicating navigation. (53610)
  • Revert Fix entity cache misses for single posts due to string as recordKey. (53419)

Typography

  • Fallback to default max viewport if layout wide size is fluid. (53551)
  • Fix typo and add tests for fonts install endpoint. (53644)

Patterns

  • Fix pattern creation button in list view dropdown menu. (53562)
  • Fix: Sync status overlaps for some languages in Patterns post type page. (53243)

Rich Text

  • Copy tag name on internal paste. (48254)
  • RichText: Remove 'Footnotes' when interactive formatting is disabled. (53474)

Global Styles

  • Fix push-to-global-styles clearing of attributes, border fallbacks, link hover colors, and behaviors. (51621)
  • Preserve block style variations when securing theme json. (53466)

Layout

  • Don't add root padding to children of flex and grid layout blocks. (53259)
  • Include namespace in layout classname for non-core blocks. (53404)

Interactivity API

  • Add short-cirtuit to useSignalEffect. (53358)
  • Add support for underscores and leading dashes in the suffix part of the directive. (53337)

Components

  • Button: add :Disabled selector to reset hover color for disabled buttons. (53411)

Template Editor

  • Remove "go to" for terms and posts. (53408)

Custom Fields

  • Insert path and query args to form before submitting. (53324)

Themes

  • Don't allow access to Styles-related pages via the command palette in the hybrid theme. (53123)

Block Validation/Deprecation

  • Media & Text Block: Fix deprecation with isStackOnMobile default value changed. (49538)

npm Packages

  • Add some missing package dependencies. (41486)

Accessibility

  • Type labels GH Action: Fix accessibility issues in error message. (53371)

Block Library

  • Add accessible description of current Navigation block state. (53469)
  • Implement accessible version of Navigation overlay preview toggle control. (53462)
  • Search Block: Fix unintended wrapping of button text in "Button only" style. (53373)

Performance

  • Compute presets from theme.json: Skip those without classes or variables. (53574)
  • Switch performance tests to Playwright. (52022)

Block Editor

  • Fix memory leaks in <Iframe>. (53406)

Layout

  • get_root_layout_rules: Remove unnecessary call to sanitize_title. (53568)

Experiments

  • Fonts Library: Backend. (52704)

Block API

  • /add custom connections inspector control. (53241)
  • Allow contents of Paragraph to be "connected" to a meta custom field. (53247)

Collaborative Editing

  • Bootstrap a minimal sync package. (52681)

Documentation

  • Add keyboard shortcut selecting text across multiple blocks on Windows. (53625)
  • Fix outdated specification in the "Anatomy of a Block". (53581)
  • Add README for BlockCaption component. (52535)
  • Add README to the useSetting component. (53162)
  • Add code requirements to Interactivity API documentation. (53342)
  • Add documentation for keyboard shortcut selecting text across multiple blocks. (43164)
  • Add the auto-generated commands store documentation. (52562)
  • Adds import for internationalization. (53504)
  • Adds package.json configuration instructions to tutorial. (53689)
  • Consolidate and update the Building a block editor guide. (53159)
  • Docs/Gutenberg release process - Better table of contents. (53394)
  • Docs/Interactivity API - Revamp of README to include API Reference among other indications. (53385)
  • Docs/Interactivity API: Added missing section in TOC and minor improvements to Getting Started Guide page. (53362)
  • Docs: Complimentary > complementary. (53413)
  • Edit Post: Update 'PluginDocumentSettingPanel' documentation. (53393)
  • MenuGroup: Add Storybook stories. (53090)
  • Style engine: Update documentation for css_var. (53710)
  • Update Card component document. (53172)
  • Update Interactivity API package README with clear references to documentation. (53388)
  • Update SelectControl JSDoc. (53379)
  • Update curating the editor to include starter patterns for templates. (53398)
  • Update npx commands in create-block README.md. (47150)
  • Update: Developer documentation to refer to Node 16 instead of 14. (53523)
  • Updating lib/PHP README.md. (53614)
  • fix: Typo in finishing.md. (53609)

Components

  • Popover: Fix iframe story and add test. (53182)

Code Quality

  • Auto-inserting blocks: Minor fixes to address feedback. (53183)
  • Block previews: Memoize example blocks. (53640)
  • Github Workflow: Update update plugin version to also update nested version in package-lock.json. (53503)
  • Interface: Fix ESLint warnings. (53456)
  • LinkControl/LinkUI: Remove unused className prop. (53348)
  • Multi-select: Restore pre-Playwright migration test for failed selection attempt. (53418)
  • Remove @types/classnames deprecated package. (53478)
  • Remove gutenberg_initialize_editor. (53527)
  • Rich text: Small perf improvement for selection syncing. (53583)
  • Update package-lock.json to match 16.4.0 version number. (53499)

Block Library

  • Button: Replace the 'isSmall' deprecated prop in the 'WidthPanel'. (53472)
  • Footnotes: Add some test coverage for footnotes logic in useEntityBlockEditor. (53376)
  • Footnotes: Checking type before using count(). (53660)
  • Remove unneeded block.json name-only imports. (53677)
  • Template Parts: Return a stable reference for the defined 'area'. (53675)

Components

  • ESLint: Fix all storybook/prefer-pascal-case warnings. (53683)
  • Remove unused components from /ui. (52953)
  • MenuItem: Refactor to TypeScript. (53132)

Site Editor

  • Quality: Remove unnecessary as prop from SiteHub component. (53372)
  • Remove empty usages of BlockPreviewPanel. (53681)

Post Editor

  • Migrate PostTypeSupportCheck usages from withSelect to hooks. (53330)
  • UnsavedChangesWarning: Don't return a function from 'mapSelect'. (53672)

Global Styles

  • Try: Bundle WP_REST_Global_Styles_Controller class instead of inheriting per WordPress version. (53618)

Block Editor

  • Remove effect dep in Link Control. (53421)

Patterns

  • Create patterns package and share the create pattern modal between post editor and site editor. (53161)

Rich Text

  • Remove Firefox work-around to type Space in RichText components inside button/summary. (53014)

Interactivity API

  • Add JSDoc comments to the public API. (52469)

Block Validation/Deprecation

  • Details Block: Rmove unnecessary comment attributes. (51610)

Tools

  • ESLint Plugin: Bring JSDoc plugin to the latest version. (53629)
  • Fix wp-scripts watch mode failing when block.json contains malformed JSON. (51971)
  • Project management: Remove automation that checks-in ANY issue without activity in 180 days. (53390)
  • Scripts: Remove deprecated stable deep dependency. (53630)
  • Scripts: Update npm-package-json-lint to v6. (53636)

Build Tooling

  • Add some missing internal peer dependencies. (53275)
  • Add storybook typescript plugin for compatibility with Typescript 5. (53445)
  • Minimal node and npm upgrade. (53426)
  • Update mkdirp dependency. (53529)
  • Update to Typescript 5.1. (52621)
  • Upgrade Lerna to the latest version. (53515)
  • Upgrade Storybook to V7. (53520)

Testing

  • Migrate 'Block variations' end-to-end tests to Playwright. (53266)

Various

  • Bump plugin version to 16.4.0. (53489)
  • Dependencies: Update @testing-library/react to v14. (53682)
  • Keyboard Shortcut: End the command palette description with a period. (53635)
  • end-to-end Storybook: Fix for Storybook v7. (53658)

Block Editor

  • Webkit e2e: Attempt to fix shift+click test. (53564)
  • Writing flow: Add end-to-end tests for webkit and firefox. (53458)

Data Layer

  • Data: Add changelog entry for the latest 'useSelect' enhancement. (53685)

Typography

  • Add tests for fluid layout + typography. (53554)

Patterns

  • Add missing full stop to string. (53544)

Block Library

  • Cover block: Add integration tests to check isDark settings. (53256)

Interactivity API

  • Add missing tests for body, init and on directives. (52952)

First time contributors

The following PRs were merged by first time contributors:

Contributors

The following contributors merged PRs in this release:

@aaronrobertshaw @ajlende @alexstine @Aljullu @andrewserong @annezazu @anomiex @artemiomorales @atachibana @bangank36 @behoney @bengreeley @c4rl0sbr4v0 @carolinan @DAreRodz @dcalhoun @derekblank @doughamlin @draganescu @dsas @ducksblock @ellatrix @fabiankaegy @fluiddot @fullofcaffeine @geriux @getdave @glendaviesnz @gziolo @ingeniumed @jameskoster @jorgefilipecosta @jsnajdr @juanmaguitar @kevin940726 @luisherranz @Mamaduka @matiasbenedetto @mburridge @michalczaplinski @mikachan @mirka @ndiego @noahtallen @noisysocks @oandregal @ockham @pbking @priethor @ramonjd @richtabor @rtro92 @scruffian @SiobhyB @stokesman @swissspidy @t-hamano @tellthemachines @tjcafferkey @tomjn @tyxla @WunderBart @youknowriad

Don't miss a new gutenberg release

NewReleases is sending notifications on new releases.