v19.1.0
版本发布时间: 2024-08-29 00:05:35
WordPress/gutenberg最新发布版本:v19.3.0-rc.1(2024-09-19 10:13:08)
Changelog
Enhancements
Components
- Allow
style
prop onPopover
. (64489) - Add elevation scale. (64108)
- Apply elevation scale to: Modal, Popover, and Snackbar components. (64655)
- Ariakit: Update to v0.4.10. (64637)
- DimensionControl: Add flag to remove bottom margin. (64346)
- DropdownMenu V2: Use themed color variables. (64647)
- Placeholders: Update radius temporarily. (64672)
- Reduce gap between steps in SpacingSizesControl, add animation, remove first/last marks. (63803)
- Textarea Control: Update styles. (64586)
- Tools Panel: Sets column-gap to 16px for grid. (64497)
- Update DropdownMenuV2 elevation, remove unused configuration value. (64432)
- Update components radius. (64368)
- Use
useStoreState()
instead ofstore.useState()
. (64648) - Composite: Use internal context to consume composite store. (64493)
- Default to new 40px size in the following:
Data Views
- Do not display element descriptions in filters. (64674)
- Apply minimal variant to pagination dropdown. (63815)
- Update the style of the datetime fields to match the other types. (64438)
- Use the fields array to define the order of the fields. (64335)
- Make the move left/right controls in table header always available. (64646)
- Support defining field headers/names as React elements. (64642)
- Add marks to preview size control. (64546)
- Move item size control to the new view configuration UI. (64380)
- Update search appearance in narrow containers. (64681)
- Quick edit additions:
- Extensibility - allow unregistering of the following:
- Add missing styles and remove opinionated ones for generic usage. (64711)
Block Library
- Embed Block: Replace native input element with InputControl component. (64668)
- Grid: Prevent highlight of cells when dragging a block if block type can't be dropped into grid. (64290)
- Image block: Add reset button. (64669)
- Overlay caption w. text-shadow. (63471)
Design Tools
- Background image: Add uploading state and restrict drag to one image. (64565)
- Quote Block: Add align support. (64188)
- Add border support to the following:
Zoom Out
- Add private
isZoomOutMode
selector. (64503) - Block Insertion: Clear the insertion point when selecting a different block or clearing block selection. (64048)
- Default the inserter to the patterns tab when in zoom out. (64193)
- Focus pattern inserter search when activating zoom out inserter. (64396)
- Stop unwanted drag and drop operations within section Patterns in Zoom Out mode. (64331)
Block Editor
- Button groups in Typography tools should use ToggleGroupControl. (64529)
- Hyphenate long block names in the inserter. (64667)
Global Styles
- Additional CSS: Localize the link if it exists. (64603)
- Background images: Add support for theme.json ref value resolution. (64128)
New APIs
Components
- Composite
Synced Patterns
- Block Bindings: Create utils to update or remove bindings. (64102)
Extensibility
- Add plugin template registration API. (61577)
Bug Fixes
Components
- CustomSelectControl: Improve props type inferring. (64412)
- ColorPalette: Partial support of
color-mix()
CSS colors. (64224) - RangeControl: Disable reset button consistently. (64579)
- RangeControl: Tweak mark and label absolute positioning. (64487)
Data Views
- Load the filter toggle as open if there are primary filters. (64651)
- Sort descending button may be wrongly pressed. (64547)
- Filter icon is displayed even when no filter capabilities are given to any field. (64640)
- Hide sort direction control if there are no sortable fields. (64817)
Zoom Out
- Disallow dropping outside section root in Zoom Out mode. (64500)
- Don't hide the insertion point when hovering patterns. (64392)
- Use previous device width for scale calculations. (64478)
Block Library
- Embed blocks: Adding captions via toolbar - #64385. (64394)
- Paste: Fix blob uploading. (64479)
- Table Block: Hide caption toolbar button on multiple selection. (64462)
Post Editor
- Fix user pattern preloading filter. (64477)
- Fix preloaded REST API paths. (64459)
- Force iframe editor when zoom-out mode. (64316)
Block Editor
- Don't hide the toolbar for an empty default block in HTML mode. (64374)
- In-between Inserter: Show inserter when it doesn't conflict with block toolbar. (64229)
- Slash Inserter: Restrict block list to allowed blocks only. (64413)
Site Editor
- Don't allow duplicating template parts in non-block-based themes. (64379)
- Fix Template Parts post type preload path. (64401)
- Cancel button in duplicate template part modal doesn't work. (64377)
- Fix empty content sidebar panel. (64569)
Block bindings
- Fix long keys overflow in bindings panel. (64465)
- Hide keys starting with underscore. (64618)
- Refactor utils file. (64740)
CSS & Styling
- Remove inconsistent dark theme focus style on block selection. (64549)
- Update postcss-prefixwrap dependency to 1.51.0 to fix prefixing in
:Where
selectors. (64458)
Interactivity API
- Fix context inheritance from namespaces different than the current one. (64677)
- Fix computeds without scope in Firefox. (64825)
Document Settings
- Post Featured Image: Disable the media modal while uploading an image. (64566)
Patterns
- Changing sorting direction on patterns does nothing. (64508)
Design Tools
- Background image: Ensure consistency with defaults and fix reset/remove functionality. (64328)
Global Styles
- Fix bumped specificity for layout styles in non-iframed editor. (64076)
Accessibility
- Site Editor: Always use auto-cursor style for editable text. (64627)
- Post Editor: Update textControl to searchControl in taxonomy search. (64605)
- RadioControl: Label radio group using fieldset and legend. (64582)
- Fix labeling in Typography font size presets panel. (64428)
- Latests Posts: Used ToggleGroupControl instead for Image alignment. (64352)
Performance
- Fetch permissions for visible patterns only. (64606)
- Background Image: Remove unnecessary 'block-editor' store subscription. (64568)
- Edit Post: Avoid unnecessary post-template ID lookup. (64431)
- GridVisualizer: Avoid over-selecting by using a new getBlockStyles private selector. (64386)
Experiments
Data Views
- DataViews Quick Edit
- Update the copy of quick edit tooltip. (64475)
Components
- Composite v2: Undo stabilizing new version. (64510)
Documentation
- Add clarification about importing css/scss files. (61252)
- Components
- Composite: Improve Storybook examples and clean up prop documentation. (64397)
- Dataviews
- Interactivity API
- Fix typos in the Block Filters documentation.. (64426)
- Fix example of useBlockProps hook. (64363)
- Fix typo and link in static-dynamic-rendering.md. (64449)
- Fix typo in block-filters.md. (64452)
- Fix typo in block-wrapper.md. (64447)
- Note about image sizes in MediaUpload::OnSelect. (64616)
- Small typo correction in doc file. (64596)
- TextDecorationControl, TextTransformControl: Remove size prop in Storybook. (64583)
- Updated
@since
order in Inline document in client-assets.php file. (64653) - Updated small typo in compat.php file. (64535)
- Updated small typo in modularity.md. (64518)
Code Quality
- Add lint rule for 40px size prop usage in the following:
- BorderBoxControl, BorderControl, DimensionControl, FontSizePicker: (64410)
- Block Editor typography components (64591)
- FormFileUpload: (64585)
- FormTokenField: (64590)
- InputControl: (64589)
- NumberControl: (64561)
- RangeControl: (64558)
- SelectControl: (64486)
- TextControl: (64455)
- ToggleGroupControl: (64524)
- ComboboxControl: (64560)
- CustomSelectControl: (64559)
- Add margin-bottom lint rules for BaseControl. (64355)
- Add missing changes to the changelog for the PR #62734. (64507)
- Base Styles: Restore deprecated
$dark-theme-focus
variable. (64563) - ESLint: Enable and enforce remaining i18n rules for the plugin (e.g. no trailing spaces). (60196)
- Remove unnecessary className. (64403)
- Replace instances of deprecated elevation variables. (64656)
- Style engine: Export util to compile CSS custom var from preset string. (64490)
- Style engine: Update type for getCSSValueFromRawStyle. (64528)
- TextControl: Fix remaining 40px size violations. (64594)
- Border: 1px → $border-width. (64680)
Block Library
Block Editor
Components
- Deprecate bottom margin on BaseControl-based components. (64408)
- Navigator: Simplify backwards navigation APIs. (63317)
Data Views
- Refactor the edit function to be based on discrete controls. (64404)
- Update
renderFormElements
to make sure the value respects the type. (64391) - Abandon the ItemRecord type. (64367)
Block hooks
- Navigation Block: Remove now-obsolete function_exists guards. (64673)
Nested / Inner Blocks
- Block Editor: Refactor inner blocks appender components. (64470)
Plugin
- Script Modules: Move data passing to 6.7 compat file. (64006)
Tools
- Make wp-env compatible with WordPress versions older than 5.4 by fixing wp-config anchors. (55864)
Testing
- Background block supports: Remove unused properties in unit tests. (64564)
- Fix flaky block template registration end-to-end test. (64541)
- Improve Image block end-to-end tests. (64537)
- Upgrade Playwright to v1.46. (64372)
Build Tooling
- Fix gutenberg/gutenberg-coding-standards licensing issues. (61913)
- Props Bot: Update to correct event type. (64557)
First-time contributors
The following PRs were merged by first-time contributors:
- @cweiske: Note about image sizes in MediaUpload::OnSelect. (64616)
- @imrraaj: Dataviews: Filter icon is displayed even when no filter capabilities are given to any field. (64640)
- @janpfeil: Fix typo in block-filters.md. (64452)
- @Rishit30G:
ColorPalette
: Partial support ofcolor-mix()
CSS colors. (64224) - @ssang: Slash Inserter: Restrict block list to allowed blocks only. (64413)
Contributors
The following contributors merged PRs in this release:
@aaronrobertshaw @akasunil @Aljullu @amitraj2203 @anton-vlasenko @arthur791004 @cbravobernal @ciampo @colorful-tones @cweiske @DAreRodz @ellatrix @felixarntz @getdave @hbhalodia @imrraaj @jameskoster @janpfeil @jasmussen @jeherve @jorgefilipecosta @jsnajdr @juanmaguitar @luisherranz @Mamaduka @meteorlxy @mirka @ndiego @noisysocks @ntsekouras @oandregal @ockham @ramonjd @richtabor @Rishit30G @SantosGuillamot @scruffian @shail-mehta @shreya0204 @sirreal @ssang @swissspidy @t-hamano @talldan @tyxla @vipul0425 @youknowriad
1、 gutenberg.zip 10.82MB