Skip to content

Commit acf94a9

Browse files
Merge changes published in the Gutenberg plugin "release/21.5" branch
1 parent 28cc209 commit acf94a9

File tree

263 files changed

+6880
-1453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+6880
-1453
lines changed

.github/setup-node/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
- name: Use desired version of Node.js
1313
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1414
with:
15-
node-version-file: '.nvmrc'
15+
node-version-file: ${{ inputs.node-version == '' && '.nvmrc' || '' }}
1616
node-version: ${{ inputs.node-version }}
1717
check-latest: true
1818
cache: npm

.github/workflows/storybook-check.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- name: Build Storybook
3535
run: npm run storybook:build
3636

37-
# - name: Install Playwright dependencies
38-
# run: npx playwright install --with-deps
39-
40-
# - name: Serve Storybook and run tests
41-
# run: |
42-
# npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
43-
# "npx http-server ./storybook/build --port 50240 --silent" \
44-
# "npx wait-on tcp:127.0.0.1:50240 && \
45-
# NODE_PATH=./node_modules \
46-
# npx --package=@storybook/test-runner -- \
47-
# test-storybook --url http://localhost:50240 --config-dir ./storybook"
37+
- name: Install Playwright dependencies
38+
run: npx --no playwright install --with-deps
39+
40+
- name: Serve Storybook and run tests
41+
run: |
42+
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
43+
"npx http-server ./storybook/build --port 50240 --silent" \
44+
"npx wait-on tcp:127.0.0.1:50240 && \
45+
NODE_PATH=./node_modules \
46+
npx --package=@storybook/test-runner@0.22.1 -- \
47+
test-storybook --url http://localhost:50240 --config-dir ./storybook"

backport-changelog/6.9/9406.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
https://github.com/WordPress/wordpress-develop/pull/9406
2+
3+
* https://github.com/WordPress/gutenberg/pull/67544

changelog.txt

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,239 @@
11
== Changelog ==
22

3+
= 21.4.0 =
4+
5+
## Changelog
6+
7+
### Features
8+
9+
- DataForm: Bootstrap validation (required and typechecks). ([70901](https://github.com/WordPress/gutenberg/pull/70901))
10+
- Override the existing file paths using those from a variant. ([70855](https://github.com/WordPress/gutenberg/pull/70855))
11+
12+
#### DataViews
13+
- Allow dataviews empty state to be customised. ([70867](https://github.com/WordPress/gutenberg/pull/70867))
14+
15+
16+
### Enhancements
17+
18+
- Change header height from 60px to 64px. ([60729](https://github.com/WordPress/gutenberg/pull/60729))
19+
- Core data: Add a private media "edit" action to ensure cache invalidation. ([70814](https://github.com/WordPress/gutenberg/pull/70814))
20+
- ServerSideRender: Introduce a new 'useServerSideRender' hook. ([70543](https://github.com/WordPress/gutenberg/pull/70543))
21+
22+
#### DataViews
23+
- Add ctrl/cmd + click multiselection support to table layout when clicking rows. ([70891](https://github.com/WordPress/gutenberg/pull/70891))
24+
- Align media styles in table view with list view for consistency. ([70671](https://github.com/WordPress/gutenberg/pull/70671))
25+
- Allow Dataform Select Box to have a custom empty option. ([70894](https://github.com/WordPress/gutenberg/pull/70894))
26+
- Implement Edit control for date field. ([70836](https://github.com/WordPress/gutenberg/pull/70836))
27+
- Introduce locked filters. ([71075](https://github.com/WordPress/gutenberg/pull/71075))
28+
- Make the media item clickable as well. ([70985](https://github.com/WordPress/gutenberg/pull/70985))
29+
- Support groupBy in table layout. ([71055](https://github.com/WordPress/gutenberg/pull/71055))
30+
- Try using responsive images in dataview grid layouts. ([70493](https://github.com/WordPress/gutenberg/pull/70493))
31+
- `perPageSizes` tweaks. ([71004](https://github.com/WordPress/gutenberg/pull/71004))
32+
33+
#### Block Library
34+
- Add preview example for `comments-count` and `comments-link`. ([71016](https://github.com/WordPress/gutenberg/pull/71016))
35+
- Categories: Disable links in the editor. ([70896](https://github.com/WordPress/gutenberg/pull/70896))
36+
- Cover/Video Block: Add Drag-and-Drop Support for Poster Uploads. ([71039](https://github.com/WordPress/gutenberg/pull/71039))
37+
- File Block: Use mime type to determine if file is PDF. ([71033](https://github.com/WordPress/gutenberg/pull/71033))
38+
- File block: Use native feature detection for pdf support. ([63044](https://github.com/WordPress/gutenberg/pull/63044))
39+
- Video/Cover Block: Enhance UI for Poster Image Preview. ([70939](https://github.com/WordPress/gutenberg/pull/70939))
40+
41+
#### Icons
42+
- Add icon: Dashboard. ([70300](https://github.com/WordPress/gutenberg/pull/70300))
43+
- Update LTR and RTL icons. ([71084](https://github.com/WordPress/gutenberg/pull/71084))
44+
- Update old table icons. ([71085](https://github.com/WordPress/gutenberg/pull/71085))
45+
46+
#### Block Editor
47+
- Explain why we need to intercept hash links in iframe editor. ([70960](https://github.com/WordPress/gutenberg/pull/70960))
48+
- List: Add keyboard shortcuts to Indent/Outdent tooltips. ([71053](https://github.com/WordPress/gutenberg/pull/71053))
49+
50+
#### Media
51+
- useSaveImage: Handle missing editMediaEntity gracefully. ([70967](https://github.com/WordPress/gutenberg/pull/70967))
52+
53+
#### Write mode
54+
- Add shuffle style to write mode toolbar. ([70946](https://github.com/WordPress/gutenberg/pull/70946))
55+
56+
#### Interactivity API
57+
- Deprecate data-wp-ignore directive with warning message. ([70945](https://github.com/WordPress/gutenberg/pull/70945))
58+
59+
#### Components
60+
- TextControl: Improve theming support. ([70910](https://github.com/WordPress/gutenberg/pull/70910))
61+
62+
#### Block bindings
63+
- Date block: Allow connecting to Block Bindings. ([70585](https://github.com/WordPress/gutenberg/pull/70585))
64+
65+
66+
### Bug Fixes
67+
- Synced Pattern: Guard against redeclaration of `WP_Block_Cloner`. ([71174](https://github.com/WordPress/gutenberg/pull/71174))
68+
- `core-data`: Fix `PostStatusObject` export ([#71191](https://github.com/WordPress/gutenberg/pull/71191))
69+
- Add `@wordpress/env` as an optional peer dependency of `@wordpress/scripts`. ([70636](https://github.com/WordPress/gutenberg/pull/70636))
70+
- DataViews: Allow searching over array fieldtypes. ([70785](https://github.com/WordPress/gutenberg/pull/70785))
71+
- Fields: Add label to Password field. ([70865](https://github.com/WordPress/gutenberg/pull/70865))
72+
- Review all the 'Add New' strings #53984. ([71083](https://github.com/WordPress/gutenberg/pull/71083))
73+
- ServerSideRender: Allow skipping block shadow support value. ([70970](https://github.com/WordPress/gutenberg/pull/70970))
74+
- Social Link Block: Add context to service names. ([70413](https://github.com/WordPress/gutenberg/pull/70413))
75+
76+
#### Block Library
77+
- File Block: Fix PDF preview on URLs containing query parameters. ([70915](https://github.com/WordPress/gutenberg/pull/70915))
78+
- Image Block: Prepend HTTP to links when missing protocol. ([71027](https://github.com/WordPress/gutenberg/pull/71027))
79+
- More Block: Fix undo/redo history for custom text. ([71087](https://github.com/WordPress/gutenberg/pull/71087))
80+
- Page List: Fix Notice component background gets incorrectly inherited. ([70932](https://github.com/WordPress/gutenberg/pull/70932))
81+
- Paragraph Block: Fix 'Drop cap' control reset value. ([70959](https://github.com/WordPress/gutenberg/pull/70959))
82+
- Resize TikTok social icon to appropriate size. ([71101](https://github.com/WordPress/gutenberg/pull/71101))
83+
- Video: Fix missing trailing periods. ([70857](https://github.com/WordPress/gutenberg/pull/70857))
84+
85+
#### DataViews
86+
- Added max-width to DataView columns. ([70983](https://github.com/WordPress/gutenberg/pull/70983))
87+
- Clear user-input filters properly. ([70956](https://github.com/WordPress/gutenberg/pull/70956))
88+
- DataForm: Fix Edit for `array` field type. ([71000](https://github.com/WordPress/gutenberg/pull/71000))
89+
- Do not render an empty level span if level is 0. ([71021](https://github.com/WordPress/gutenberg/pull/71021))
90+
- Pages: Filters should not be visible if they are present in the bundled view. ([71059](https://github.com/WordPress/gutenberg/pull/71059))
91+
92+
#### Block Editor
93+
- Fix single block selection when holding 'Shift' key. ([70978](https://github.com/WordPress/gutenberg/pull/70978))
94+
- MediaReplaceFlow: Correctly truncate long URL. ([71062](https://github.com/WordPress/gutenberg/pull/71062))
95+
- RichText: Support more colors for format boundary colors. ([70918](https://github.com/WordPress/gutenberg/pull/70918))
96+
- Writing Flow: Remove empty blocks when the merge target doesn't support merging. ([70741](https://github.com/WordPress/gutenberg/pull/70741))
97+
98+
#### Post Editor
99+
- Editor: Fix 'isEditedPostAutosaveable' selector return value. ([70888](https://github.com/WordPress/gutenberg/pull/70888))
100+
- Editor: Fix incorrect title when multiple post selected. ([70997](https://github.com/WordPress/gutenberg/pull/70997))
101+
- Editor: Move editor-sidebar CSS reset closer to its target. ([71096](https://github.com/WordPress/gutenberg/pull/71096))
102+
103+
#### Saving
104+
- Core Data: Add getTitle for user entity. ([70941](https://github.com/WordPress/gutenberg/pull/70941))
105+
- Core Data: Define record title getter for taxonomy entities. ([70863](https://github.com/WordPress/gutenberg/pull/70863))
106+
107+
#### Components
108+
- PaletteEdit: Fill available space with input field. ([70935](https://github.com/WordPress/gutenberg/pull/70935))
109+
- TextareaControl: Add missing component CSS classname. ([70930](https://github.com/WordPress/gutenberg/pull/70930))
110+
111+
#### Block bindings
112+
- Date Block: Ensure that fallback value is overridden if source is not registered. ([71047](https://github.com/WordPress/gutenberg/pull/71047))
113+
114+
#### Icons
115+
- Update dollar icon. ([71042](https://github.com/WordPress/gutenberg/pull/71042))
116+
117+
#### Synced Patterns
118+
- Synced Pattern block: Pass block context to pattern content. ([70943](https://github.com/WordPress/gutenberg/pull/70943))
119+
120+
#### Interactivity API
121+
- iAPI Router: Ignores `<noscript>` elements while preparing DOM. ([70905](https://github.com/WordPress/gutenberg/pull/70905))
122+
123+
#### Block API
124+
- Add special case for metadata attribute in 'isUnmodifiedBlock'. ([70903](https://github.com/WordPress/gutenberg/pull/70903))
125+
126+
#### Global Styles
127+
- Fix ability to preview Additional CSS changes in the Customizer when using a Block Theme. ([70428](https://github.com/WordPress/gutenberg/pull/70428))
128+
129+
#### List View
130+
- Fix focus outline style. ([69201](https://github.com/WordPress/gutenberg/pull/69201))
131+
132+
133+
### Accessibility
134+
135+
#### Components
136+
- Color Picker: Improve color picker slider focus styles. ([70146](https://github.com/WordPress/gutenberg/pull/70146))
137+
138+
139+
### Performance
140+
141+
#### Block Library
142+
- Fix layout shift caused by `video` tag in Video block lacking `width` and `height`. ([70293](https://github.com/WordPress/gutenberg/pull/70293))
143+
144+
145+
### Documentation
146+
147+
- Add DataForm story about field visibility. ([70996](https://github.com/WordPress/gutenberg/pull/70996))
148+
- Add changelog entry for #70493. ([71008](https://github.com/WordPress/gutenberg/pull/71008))
149+
- Added Missing Global Documentation. ([71029](https://github.com/WordPress/gutenberg/pull/71029))
150+
- Blocks: Display browser console warnings for blocks with apiVersion below 2. ([70783](https://github.com/WordPress/gutenberg/pull/70783))
151+
- Clarify block name immutability and namespace best practices [docs]. ([71040](https://github.com/WordPress/gutenberg/pull/71040))
152+
- DataViews: Clarify filtering behavior in DataViews configuration in README.md. ([70958](https://github.com/WordPress/gutenberg/pull/70958))
153+
- Field elements: Add changelog for custom empty element. ([71041](https://github.com/WordPress/gutenberg/pull/71041))
154+
- Fix: Add hyphen to “hands-on” in Getting Started section. ([70906](https://github.com/WordPress/gutenberg/pull/70906))
155+
- Image: Fix return type annotation for lightbox settings function. ([71073](https://github.com/WordPress/gutenberg/pull/71073))
156+
- Improve note for 'blockType.save' method. ([70942](https://github.com/WordPress/gutenberg/pull/70942))
157+
- Mentioning Playground CLI instead wp-now. ([71071](https://github.com/WordPress/gutenberg/pull/71071))
158+
- ServerSideRender: Add missing changelog entry. ([70952](https://github.com/WordPress/gutenberg/pull/70952))
159+
- Social: Document guidelines and extensibility. ([70961](https://github.com/WordPress/gutenberg/pull/70961))
160+
- Update dataviews changelog for #70785. ([70885](https://github.com/WordPress/gutenberg/pull/70885))
161+
- Updated Inline Documentation order in duotone file. ([71032](https://github.com/WordPress/gutenberg/pull/71032))
162+
- Updated Small Typo in block-styles.md file. ([70927](https://github.com/WordPress/gutenberg/pull/70927))
163+
- registerFormatType: Document 'object' setting. ([70858](https://github.com/WordPress/gutenberg/pull/70858))
164+
165+
166+
### Code Quality
167+
168+
- Migrate `@wordpress/i18n` package to TypeScript and Add TextDomain Type Safety to `createI18n`. ([70843](https://github.com/WordPress/gutenberg/pull/70843))
169+
- Migrate `keycodes` package to TypeScript. ([70466](https://github.com/WordPress/gutenberg/pull/70466))
170+
- Migrate undo-manager package to TS. ([70757](https://github.com/WordPress/gutenberg/pull/70757))
171+
- TypeScript: Migrate jest-console package to TS. ([70538](https://github.com/WordPress/gutenberg/pull/70538))
172+
- TypeScript: Migrate priority-queue package to TS. ([70469](https://github.com/WordPress/gutenberg/pull/70469))
173+
- wordcount: Fix count function signature to make `userSettings` parameter optional. ([71106](https://github.com/WordPress/gutenberg/pull/71106))
174+
175+
#### Block Library
176+
- Cache redundant function call for is_user_logged_in() function. ([70999](https://github.com/WordPress/gutenberg/pull/70999))
177+
- Social Icon: Retire the Skype social service. ([70769](https://github.com/WordPress/gutenberg/pull/70769))
178+
- end-to-end Tests: Split large Navigation tests into smaller tests. ([69117](https://github.com/WordPress/gutenberg/pull/69117))
179+
180+
#### Block Editor
181+
- Block Variation Transforms: Add box-sizing rule. ([71052](https://github.com/WordPress/gutenberg/pull/71052))
182+
183+
#### Post Editor
184+
- BrowserURL: Refactor to a function component and use hooks. ([71035](https://github.com/WordPress/gutenberg/pull/71035))
185+
186+
#### Block bindings
187+
- Post Date block: Address feedback. ([70982](https://github.com/WordPress/gutenberg/pull/70982))
188+
189+
#### Zoom Out
190+
- Delete unused property. ([70893](https://github.com/WordPress/gutenberg/pull/70893))
191+
192+
#### Components
193+
- Add `placement` prop to replace `position` in `RangeControl`. ([70326](https://github.com/WordPress/gutenberg/pull/70326))
194+
195+
196+
### Tools
197+
198+
- DataViews: Add changelog entry for #70891. ([70953](https://github.com/WordPress/gutenberg/pull/70953))
199+
- PR automations: Add `New Block` to the list of allowed PR-type labels. ([71045](https://github.com/WordPress/gutenberg/pull/71045))
200+
201+
#### Testing
202+
- Add Node.js 24 to test strategy. ([71091](https://github.com/WordPress/gutenberg/pull/71091))
203+
- CI: Add workflow to check if there is a changelog entry for dataviews. ([71023](https://github.com/WordPress/gutenberg/pull/71023))
204+
205+
#### Build Tooling
206+
- Build Tools: Updates 'browserlist' and 'caniuse-lite' to the latest versions. ([71009](https://github.com/WordPress/gutenberg/pull/71009))
207+
208+
209+
### Various
210+
211+
- Core data: Deprecate the root/media entity. ([71038](https://github.com/WordPress/gutenberg/pull/71038))
212+
213+
214+
## First-time contributors
215+
216+
The following PRs were merged by first-time contributors:
217+
218+
- @asdofindia: File block: Use native feature detection for pdf support. ([63044](https://github.com/WordPress/gutenberg/pull/63044))
219+
- @coderGtm: ([70409](https://github.com/WordPress/gutenberg/pull/70409))
220+
- @heavyweight: Core Data: Add getTitle for user entity. ([70941](https://github.com/WordPress/gutenberg/pull/70941))
221+
- @KHarika01: Fix: Add hyphen to “hands-on” in Getting Started section. ([70906](https://github.com/WordPress/gutenberg/pull/70906))
222+
- @kushagra-goyal-14: TypeScript: Migrate priority-queue package to TS. ([70469](https://github.com/WordPress/gutenberg/pull/70469))
223+
- @lalitkumawat1m: Review all the 'Add New' strings #53984. ([71083](https://github.com/WordPress/gutenberg/pull/71083))
224+
- @rcrdortiz: Added max-width to DataView columns. ([70983](https://github.com/WordPress/gutenberg/pull/70983))
225+
- @Sahil1617: Deprecate data-wp-ignore directive with warning message. ([70945](https://github.com/WordPress/gutenberg/pull/70945))
226+
227+
228+
## Contributors
229+
230+
The following contributors merged PRs in this release:
231+
232+
@Adi-ty @alshakero @andrewserong @arthur791004 @asdofindia @BugReportOnWeb @chihsuan @coderGtm @desrosj @dhananjaykuber @dhruvikpatel18 @dsas @fellyph @heavyweight @himanshupathak95 @im3dabasia @Infinite-Null @jameskoster @jasmussen @jeryj @jsnajdr @KHarika01 @kushagra-goyal-14 @lalitkumawat1m @Mamaduka @megane9988 @mikejolley @mirka @oandregal @ockham @p-jackson @priethor @ramonjd @rcrdortiz @richtabor @ryanwelcher @Sahil1617 @shail-mehta @shimotmk @shrivastavanolo @Sukhendu2002 @t-hamano @talldan @tellthemachines @USERSATOSHI @vipul0425 @westonruter @yogeshbhutkar
233+
234+
235+
236+
3237
= 21.3.0 =
4238

5239
## Changelog

docs/reference-guides/core-blocks.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,51 @@ This page lists the blocks included in the block-library package.
88

99
<!-- START TOKEN Autogenerated - DO NOT EDIT -->
1010

11+
## Accordion
12+
13+
Displays a group of accordion headers and associated expandable content. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion))
14+
15+
- **Name:** core/accordion
16+
- **Experimental:** true
17+
- **Category:** design
18+
- **Allowed Blocks:** core/accordion-content
19+
- **Supports:** align (full, wide), background (backgroundImage, backgroundSize), color (background, gradient, text), interactivity, layout, shadow, spacing (blockGap, margin, padding), ~~html~~
20+
- **Attributes:** allowedBlocks, autoclose, iconPosition, showIcon
21+
22+
## Accordion Content
23+
24+
Displays a section of content in an accordion, including a header and expandable content. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-content))
25+
26+
- **Name:** core/accordion-content
27+
- **Experimental:** true
28+
- **Category:** design
29+
- **Parent:** core/accordion
30+
- **Allowed Blocks:** core/accordion-header, core/accordion-panel
31+
- **Supports:** align (full, wide), color (background, gradient, text), interactivity, shadow, spacing (blockGap, margin)
32+
- **Attributes:** openByDefault
33+
34+
## Accordion Header
35+
36+
Displays an accordion header. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-header))
37+
38+
- **Name:** core/accordion-header
39+
- **Experimental:** true
40+
- **Category:** design
41+
- **Parent:** core/accordion-content
42+
- **Supports:** anchor, border, color (background, gradient, text), interactivity, shadow, spacing (margin, padding), typography (fontSize, textAlign), ~~align~~
43+
- **Attributes:** iconPosition, level, levelOptions, openByDefault, showIcon, textAlignment, title
44+
45+
## Accordion Panel
46+
47+
Displays an accordion panel. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-panel))
48+
49+
- **Name:** core/accordion-panel
50+
- **Experimental:** true
51+
- **Category:** design
52+
- **Parent:** core/accordion-content
53+
- **Supports:** border, color (background, gradient, text), interactivity, shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight)
54+
- **Attributes:** allowedBlocks, isSelected, openByDefault, templateLock
55+
1156
## Archives
1257

1358
Display a date archive of your posts. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/archives))

docs/reference-guides/theme-json-reference/theme-json-living.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Settings related to borders.
7474
| radius | Allow users to set custom border radius. | `boolean` | `false` |
7575
| style | Allow users to set custom border styles. | `boolean` | `false` |
7676
| width | Allow users to set custom border widths. | `boolean` | `false` |
77+
| radiusSizes | Border radius size presets for the border radius selector. | `[ { name, slug, size } ]` | |
7778

7879
---
7980

gutenberg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
66
* Requires at least: 6.7
77
* Requires PHP: 7.2
8-
* Version: 21.4.0-rc.1
8+
* Version: 21.5.0-rc.1
99
* Author: Gutenberg Team
1010
* Text Domain: gutenberg
1111
*

0 commit comments

Comments
 (0)