diff --git a/changelog.txt b/changelog.txt index 31b836a69e9103..dcccd8d335abf0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,78 +1,429 @@ == Changelog == -= 17.6.0-rc.3 = - += 17.6.0 = ## Changelog +### Features + +#### Interactivity API +- Add `wp-data-on-window` and `wp-data-on-document` directives. ([57931](https://github.com/WordPress/gutenberg/pull/57931)) +- Add `wp-each` directive. ([57859](https://github.com/WordPress/gutenberg/pull/57859)) +- Add `wp-run` directive and `useInit` & `useWatch` hooks. ([57805](https://github.com/WordPress/gutenberg/pull/57805)) +- Create `@wordpress/interactivity-router` module. ([57924](https://github.com/WordPress/gutenberg/pull/57924)) + +#### Typography +- Add defaultFontSizes option to theme.json. ([56661](https://github.com/WordPress/gutenberg/pull/56661)) + +#### Font Library +- Font Library: Add wp_get_font_dir() function. ([57730](https://github.com/WordPress/gutenberg/pull/57730)) + +#### Custom Fields +- Block Bindings: Disable editing of bound block attributes in editor UI. ([58085](https://github.com/WordPress/gutenberg/pull/58085)) + +#### Block Editor +- Add effects/box shadow tools to block inspector. ([57654](https://github.com/WordPress/gutenberg/pull/57654)) + + ### Enhancements +#### Components +- Add opt-in prop for 40px default size for `BoxControl`, `BorderControl`, and `BorderBoxControl`. ([56185](https://github.com/WordPress/gutenberg/pull/56185)) +- BorderControl: Replace style picker with ToggleGroupControl. ([57562](https://github.com/WordPress/gutenberg/pull/57562)) +- ColorPicker: Store internal HSLA state for better slider UX. ([57555](https://github.com/WordPress/gutenberg/pull/57555)) +- Migrate PaletteEdit and CircularOptionPicker tests from user-event to ariakit/test. ([57809](https://github.com/WordPress/gutenberg/pull/57809)) +- Replace `TabPanel` with `Tabs` in the Editor Preferences Modal. ([57293](https://github.com/WordPress/gutenberg/pull/57293)) +- Theme: Set `color` on wrapper. ([58095](https://github.com/WordPress/gutenberg/pull/58095)) +- Tooltip: No-op when nested inside another Tooltip component. ([57202](https://github.com/WordPress/gutenberg/pull/57202)) +- `BoxControl`: Update design. ([56665](https://github.com/WordPress/gutenberg/pull/56665)) +- Element: Start reexporting PureComponent. ([58076](https://github.com/WordPress/gutenberg/pull/58076)) + +#### Interactivity API +- Render the root interactive blocks. ([57729](https://github.com/WordPress/gutenberg/pull/57729)) +- Interactivity Router: Replace `data-wp-navigation-id` with `data-wp-router-region`. ([58191](https://github.com/WordPress/gutenberg/pull/58191)) +- Interactivity: Export `withScope()` and allow to use it with asynchronous operations. ([58013](https://github.com/WordPress/gutenberg/pull/58013)) +- Prevent the use of components in `wp-text`. ([57879](https://github.com/WordPress/gutenberg/pull/57879)) +- Remove wp-data-navigation-link directive. ([57853](https://github.com/WordPress/gutenberg/pull/57853)) +- Server Directive Processing Refactor. ([58066](https://github.com/WordPress/gutenberg/pull/58066)) +- Update `preact`, `@preact/signals` and `deepsignal` dependencies. ([57891](https://github.com/WordPress/gutenberg/pull/57891)) + +#### Block Editor +- Add copy link button to Link UI. ([58170](https://github.com/WordPress/gutenberg/pull/58170)) +- Improve LinkControl preview. ([57775](https://github.com/WordPress/gutenberg/pull/57775)) +- Keep Link UI open upon initial link creation when used in RichText. ([57726](https://github.com/WordPress/gutenberg/pull/57726)) +- List View: Displace list view items when dragging (a bit more WYSIWYG). ([56625](https://github.com/WordPress/gutenberg/pull/56625)) +- Show initial suggestions in rich text Link UI. ([57743](https://github.com/WordPress/gutenberg/pull/57743)) +- Disable lock button if user cannot control lock state. ([57274](https://github.com/WordPress/gutenberg/pull/57274)) +- Use ClipboardJS latest version and clean up focus loss workaround. ([57156](https://github.com/WordPress/gutenberg/pull/57156)) +- Dimensions: Add Aspect Ratio block support. ([56897](https://github.com/WordPress/gutenberg/pull/56897)) + #### Block Library +- Add more taxonomy options to the post navigation link. ([48912](https://github.com/WordPress/gutenberg/pull/48912)) +- Add: Footnotes support for other CPT's. ([57353](https://github.com/WordPress/gutenberg/pull/57353)) +- Better navigation link variations for post types / taxonomies. ([56100](https://github.com/WordPress/gutenberg/pull/56100)) +- Remove "blocks" from copy and delete labels. ([57769](https://github.com/WordPress/gutenberg/pull/57769)) +- Pullquote Block: Add padding and margin support. ([45731](https://github.com/WordPress/gutenberg/pull/45731)) +- Video Block: Add raw transformation from `video` html. ([47159](https://github.com/WordPress/gutenberg/pull/47159)) - Aspect ratio: Remove support on the Group block for now. ([58414](https://github.com/WordPress/gutenberg/pull/58414)) - Image block: Move UI for lightbox from sidebar to the content toolbar alongside link settings. ([57608](https://github.com/WordPress/gutenberg/pull/57608)) + +#### Data Views +- DataViews: Enable grid layout for templates & parts by default. ([58137](https://github.com/WordPress/gutenberg/pull/58137)) +- DataViews: Make dataviews powered page patterns stable. ([58139](https://github.com/WordPress/gutenberg/pull/58139)) +- DataViews: Make the "Manage Pages" stable. ([58166](https://github.com/WordPress/gutenberg/pull/58166)) +- Dataviews: Add Bulk actions to page. ([57826](https://github.com/WordPress/gutenberg/pull/57826)) + +#### Site Editor +- Group templates in sidebar list. ([57711](https://github.com/WordPress/gutenberg/pull/57711)) +- Initial routing refactoring to separate preview from list view. ([57938](https://github.com/WordPress/gutenberg/pull/57938)) +- Iterate on warning text for block removal for query/post template/post content. ([58138](https://github.com/WordPress/gutenberg/pull/58138)) +- Site editor: Add global styles changes to save flow. ([57470](https://github.com/WordPress/gutenberg/pull/57470)) +- Editor: Unify the Editor Mode preference. ([57642](https://github.com/WordPress/gutenberg/pull/57642)) +- Live Preview: Show the current theme name on the theme activation modal. ([57588](https://github.com/WordPress/gutenberg/pull/57588)) +- Unify the preferences modal UI between post and site editor. ([57639](https://github.com/WordPress/gutenberg/pull/57639)) +- Remove right negative margin from pinned items. ([57666](https://github.com/WordPress/gutenberg/pull/57666)) +- Update style revision top toolbar text. ([58057](https://github.com/WordPress/gutenberg/pull/58057)) + +#### Block API +- Block Bindings: Update source registration syntax and remove APIs that should be private. ([58205](https://github.com/WordPress/gutenberg/pull/58205)) +- Block Hooks: Do not remove toggle if hooked block is present elsewhere. ([57928](https://github.com/WordPress/gutenberg/pull/57928)) + +#### Synced Patterns +- Add basic pattern overrides end-to-end tests. ([57792](https://github.com/WordPress/gutenberg/pull/57792)) +- Use a patch format and support `linkTarget` of `core/button` for Pattern Overrides. ([58165](https://github.com/WordPress/gutenberg/pull/58165)) + +#### Patterns +- Add image block support for pattern overrides. ([57909](https://github.com/WordPress/gutenberg/pull/57909)) +- Outline editable blocks that are within a content-locked container. ([57901](https://github.com/WordPress/gutenberg/pull/57901)) +- Change text on pattern reset button. ([58286](https://github.com/WordPress/gutenberg/pull/58286)) + +#### Post Editor +- Post Lock: Use the new modal size preset. ([58197](https://github.com/WordPress/gutenberg/pull/58197)) +- Add description to the save panel header when nothing is checked. ([57716](https://github.com/WordPress/gutenberg/pull/57716)) + #### Font Library +- Update the default collection data URL to the wordpress.org cdn. ([58186](https://github.com/WordPress/gutenberg/pull/58186)) +- Font Library: Refactor stylesheet using CSS variables ([58237](https://github.com/WordPress/gutenberg/pull/58237)) +- Font Library Modal: Reset the selected font when installing a new font. ([57817](https://github.com/WordPress/gutenberg/pull/57817)) +- Font Library: Disable font library UI using a PHP filter. ([57818](https://github.com/WordPress/gutenberg/pull/57818)) +- Font Library: Filter fonts upload directory. ([57697](https://github.com/WordPress/gutenberg/pull/57697)) +- Font Library: Use data or src file to define font collection data. ([57734](https://github.com/WordPress/gutenberg/pull/57734)) - Improve font collection rest controller. ([58222](https://github.com/WordPress/gutenberg/pull/58222)) - Make notices more consistent. ([58180](https://github.com/WordPress/gutenberg/pull/58180)) - -#### REST API - Updates Font Families and Font Faces endpoints context param. ([58287](https://github.com/WordPress/gutenberg/pull/58287)) -#### Patterns -- Change text on pattern reset button. ([58286](https://github.com/WordPress/gutenberg/pull/58286)) +#### Commands +- Minor command tweaks. ([58148](https://github.com/WordPress/gutenberg/pull/58148)) + +#### Extensibility +- Update Navigation block to render hooked inner blocks. ([57754](https://github.com/WordPress/gutenberg/pull/57754)) +- Add gettext content when translating 'Header'. ([51066](https://github.com/WordPress/gutenberg/pull/51066)) #### Template Editor - Remove `template-only` mode from editor and edit-post packages. ([57700](https://github.com/WordPress/gutenberg/pull/57700)) +### New APIs + +#### Block API +- Block Bindings API: Add block bindings PHP registration mechanisms and "Post meta" source under the experimental flag. ([57249](https://github.com/WordPress/gutenberg/pull/57249)) +- Block Bindings API: Refactor logic into Block Bindings class and singleton pattern. ([57742](https://github.com/WordPress/gutenberg/pull/57742)) + ### Bug Fixes -- Interactivity: Fix broken react usage in published package. ([58258](https://github.com/WordPress/gutenberg/pull/58258)) +#### Block Library +- Avatar block: Fix broken aligments in the editor. ([58114](https://github.com/WordPress/gutenberg/pull/58114)) +- Embed Block: Fix retry processing when embedding with trailing slash fails. ([58007](https://github.com/WordPress/gutenberg/pull/58007)) +- Lightbox: Fix "Expand on click" control being disabled unintentionally. ([56053](https://github.com/WordPress/gutenberg/pull/56053)) +- Modified Date Block: Don't render change date tool. ([57914](https://github.com/WordPress/gutenberg/pull/57914)) +- Only prioritise Quote transform where relevant. ([57749](https://github.com/WordPress/gutenberg/pull/57749)) +- Query Loop: Fix posts list variation detection. ([58194](https://github.com/WordPress/gutenberg/pull/58194)) +- Block Hooks API: Update Navigation block feature gate. ([58388](https://github.com/WordPress/gutenberg/pull/58388)) + +#### Components +- Button: Always render the Tooltip component even when a tooltip should not be shown. ([56490](https://github.com/WordPress/gutenberg/pull/56490)) +- CustomSelect: Adjust `renderSelectedValue` to fix sizing. ([57865](https://github.com/WordPress/gutenberg/pull/57865)) +- ToggleGroupControl: Improve controlled value detection. ([57770](https://github.com/WordPress/gutenberg/pull/57770)) +- Tooltip: Accept specific tooltip props. ([58125](https://github.com/WordPress/gutenberg/pull/58125)) +- Tooltip: Forward and merge inner tooltip props correctly. ([57878](https://github.com/WordPress/gutenberg/pull/57878)) +- Bring back the chevron. ([57807](https://github.com/WordPress/gutenberg/pull/57807)) +- Preferences: Add a proxy to retrieve the deprecated preferences with a deprecation message. ([58016](https://github.com/WordPress/gutenberg/pull/58016)) #### Data Views +- DataViews: Default sort order in templates by title. ([58175](https://github.com/WordPress/gutenberg/pull/58175)) +- DataViews: Don't always display horizontal scrollbar. ([58101](https://github.com/WordPress/gutenberg/pull/58101)) +- DataViews: Fix author sorting in templates and template parts. ([58167](https://github.com/WordPress/gutenberg/pull/58167)) +- Remove unused argument from sprintf in pagination.js. ([57823](https://github.com/WordPress/gutenberg/pull/57823)) - DataViews: Fix safari grid row height issue. ([58302](https://github.com/WordPress/gutenberg/pull/58302)) - DataViews: Fix table view cell wrapper and BlockPreviews. ([58062](https://github.com/WordPress/gutenberg/pull/58062)) +#### Patterns +- Add black border back when editing synced pattern in the post editor. ([57631](https://github.com/WordPress/gutenberg/pull/57631)) +- Outline editable blocks when in a pattern that has locked children. ([57991](https://github.com/WordPress/gutenberg/pull/57991)) +- Remove text align control for paragraph, heading, and button in contentOnly editing mode. ([57906](https://github.com/WordPress/gutenberg/pull/57906)) +- Pattern Categories: Fix capitalization. ([58112](https://github.com/WordPress/gutenberg/pull/58112)) +- Fix flaky "create a new pattern" test. ([57747](https://github.com/WordPress/gutenberg/pull/57747)) +- Block Bindings: Fix bindings image placeholder showing in patterns overrides. ([58252](https://github.com/WordPress/gutenberg/pull/58252)) + +#### List View +- Image Block: Make block name affect list view. ([57955](https://github.com/WordPress/gutenberg/pull/57955)) +- More Block: Make block name affect list view. ([58160](https://github.com/WordPress/gutenberg/pull/58160)) + +#### Block API +- Block Hooks: Fix toggle. ([57956](https://github.com/WordPress/gutenberg/pull/57956)) +- Fix formats not working in block bindings content. ([58055](https://github.com/WordPress/gutenberg/pull/58055)) + +#### Global Styles +- Correctly decode border color values. ([57876](https://github.com/WordPress/gutenberg/pull/57876)) +- Fix: Theme.json application of custom root selector for styles. ([58050](https://github.com/WordPress/gutenberg/pull/58050)) + +#### Data Layer +- Data: Allow binding registry selector to multiple registries. ([57943](https://github.com/WordPress/gutenberg/pull/57943)) +- Data: Fix memoized createRegistrySelector. ([57888](https://github.com/WordPress/gutenberg/pull/57888)) + #### Typography -- Revert "Add defaultFontSizes option to theme.json (#56661)". ([58456](https://github.com/WordPress/gutenberg/pull/58456)) +- #56734 When there is no font, the border should not appear. Display further guidance text. ([56825](https://github.com/WordPress/gutenberg/pull/56825)) +- Fluid typography: Do not calculate fluid font size when min and max viewport widths are equal. ([57866](https://github.com/WordPress/gutenberg/pull/57866)) -#### Block Library -- Block Hooks API: Update Navigation block feature gate. ([58388](https://github.com/WordPress/gutenberg/pull/58388)) +#### Block Editor +- Fix regression: Content locking does not stops when an outside block is selected. ([57737](https://github.com/WordPress/gutenberg/pull/57737)) +- LinkControl: Remove unnecessary right padding of input fields. ([57784](https://github.com/WordPress/gutenberg/pull/57784)) + +#### Custom Fields +- Block Bindings: Fix button popover not showing in patterns. ([58219](https://github.com/WordPress/gutenberg/pull/58219)) + +#### Font Library +- Fix typo. ([58193](https://github.com/WordPress/gutenberg/pull/58193)) +- Removed
and