Skip to content

Commit ace9885

Browse files
Merge changes published in the Gutenberg plugin "release/20.9" branch
1 parent ab5c79c commit ace9885

File tree

100 files changed

+1078
-632
lines changed

Some content is hidden

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

100 files changed

+1078
-632
lines changed

.github/workflows/build-plugin-zip.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
name: Compute current and next stable release branches
3030
runs-on: ubuntu-latest
3131
permissions:
32-
contents: read
32+
contents: read
3333
if: ${{ github.event_name == 'workflow_dispatch' }}
3434
outputs:
3535
current_stable_branch: ${{ steps.get_branches.outputs.current_stable_branch }}
@@ -57,7 +57,7 @@ jobs:
5757
name: Bump version
5858
runs-on: ubuntu-latest
5959
permissions:
60-
contents: write
60+
contents: write
6161
needs: compute-stable-branches
6262
if: |
6363
github.event_name == 'workflow_dispatch' && (
@@ -132,7 +132,7 @@ jobs:
132132
github.event.inputs.version == 'stable' ||
133133
contains( steps.get_version.outputs.old_version, 'rc' )
134134
env:
135-
TARGET_BRANCH: ${{ steps.get_version.outputs.release_branch }}
135+
TARGET_BRANCH: ${{ steps.get_version.outputs.release_branch }}
136136
run: |
137137
git fetch --depth=1 origin "$TARGET_BRANCH"
138138
git checkout "$TARGET_BRANCH"
@@ -182,7 +182,7 @@ jobs:
182182
name: Build Release Artifact
183183
runs-on: ubuntu-latest
184184
permissions:
185-
contents: read
185+
contents: read
186186
needs: bump-version
187187
if: |
188188
always() && (
@@ -246,7 +246,7 @@ jobs:
246246
needs: [bump-version, build]
247247
runs-on: ubuntu-latest
248248
permissions:
249-
contents: write
249+
contents: write
250250
if: |
251251
always() &&
252252
( needs.build.outputs.job_status == 'failure' ) &&
@@ -302,7 +302,7 @@ jobs:
302302
needs: [bump-version, build]
303303
runs-on: ubuntu-latest
304304
permissions:
305-
contents: write
305+
contents: write
306306

307307
steps:
308308
- name: Set Release Version
@@ -349,7 +349,7 @@ jobs:
349349
name: Publish WordPress packages to npm
350350
runs-on: ubuntu-latest
351351
permissions:
352-
contents: read
352+
contents: read
353353
environment: WordPress packages
354354
needs: [bump-version, build]
355355
if: ${{ endsWith( needs.bump-version.outputs.new_version, '-rc.1' ) }}
@@ -370,7 +370,7 @@ jobs:
370370
ref: trunk
371371
token: ${{ secrets.GUTENBERG_TOKEN }}
372372
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
373-
persist-credentials: false
373+
persist-credentials: true
374374

375375
- name: Configure git user name and email (for publishing)
376376
run: |

.github/workflows/publish-npm-packages.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
default: 'development'
1111
options:
1212
- development
13+
- latest
1314
- bugfix
1415
- wp
1516
wp_version:
@@ -32,7 +33,7 @@ jobs:
3233
name: Release - ${{ github.event.inputs.release_type }}
3334
runs-on: ubuntu-latest
3435
permissions:
35-
contents: read
36+
contents: read
3637
environment: WordPress packages
3738
steps:
3839
- name: Checkout (for CLI)
@@ -53,7 +54,7 @@ jobs:
5354
ref: trunk
5455
token: ${{ secrets.GUTENBERG_TOKEN }}
5556
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
56-
persist-credentials: false
57+
persist-credentials: true
5758

5859
- name: Checkout (for publishing WP major version)
5960
if: ${{ github.event.inputs.release_type == 'wp' && github.event.inputs.wp_version }}
@@ -99,6 +100,15 @@ jobs:
99100
env:
100101
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
101102

103+
- name: Publish packages based on the latest Gutenberg plugin to npm ("latest" dist-tag)
104+
if: ${{ github.event.inputs.release_type == 'latest' }}
105+
run: |
106+
cd cli
107+
npm ci
108+
./bin/plugin/cli.js npm-latest --semver minor --ci --repository-path ../publish
109+
env:
110+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
111+
102112
- name: Publish packages to npm with bug fixes ("latest" dist-tag)
103113
if: ${{ github.event.inputs.release_type == 'bugfix' }}
104114
run: |

.stylelintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ module.exports = {
1010
'flex-direction': '/^(?!(row|column)-reverse).*$/',
1111
},
1212
{
13-
message:
14-
'Avoid the flex-direction reverse values. For accessibility reasons, visual, reading, and DOM order must match. Only use the reverse values when they do not affect reading order, meaning, and interaction.',
13+
message: ( property, value ) =>
14+
`Avoid "${ value }" value for the "${ property }" property. For accessibility reasons, visual, reading, and DOM order must match. Only use the reverse values when they do not affect reading order, meaning, and interaction.`,
1515
},
1616
],
1717
'declaration-property-value-disallowed-list': [
1818
{
1919
'/.*/': [ '/--wp-components-color-/' ],
2020
},
2121
{
22-
message:
23-
'--wp-components-color-* variables are not ready to be used outside of the components package.',
22+
message: ( property, value ) =>
23+
`Avoid using "${ value }" in "${ property }". --wp-components-color-* variables are not ready to be used outside of the components package.`,
2424
},
2525
],
2626
'font-weight-notation': null,

changelog.txt

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,130 @@
11
== Changelog ==
22

3-
= 20.8.0-rc.1 =
3+
= 20.9.0-rc.1 =
44

55

6+
## Changelog
7+
8+
### Enhancements
9+
10+
- Base Styles: Update to modern Sass module system. ([70135](https://github.com/WordPress/gutenberg/pull/70135))
11+
- Post Publish Panel: Open view post links in a new tab. ([70127](https://github.com/WordPress/gutenberg/pull/70127))
12+
- Revert Admin bar: Update the Edit Site link. ([69974](https://github.com/WordPress/gutenberg/pull/69974))
13+
14+
#### Block Library
15+
- Custom HTML: Add role attribute to content in `block.json`. ([70154](https://github.com/WordPress/gutenberg/pull/70154))
16+
- HTML Block: Remove space below textarea. ([70055](https://github.com/WordPress/gutenberg/pull/70055))
17+
- Post Navigation Link: Reverse order of variations. ([70149](https://github.com/WordPress/gutenberg/pull/70149))
18+
- RSS: Add role attribute to content in `block.json`. ([70166](https://github.com/WordPress/gutenberg/pull/70166))
19+
- Search Block: Move search setting to inspector. ([70144](https://github.com/WordPress/gutenberg/pull/70144))
20+
21+
#### Write mode
22+
- Details block: Add role attribute to summary. ([70124](https://github.com/WordPress/gutenberg/pull/70124))
23+
- Enable Code block content editing in contentOnly. ([70111](https://github.com/WordPress/gutenberg/pull/70111))
24+
- Enable More block's "Read more" text editing in contentOnly mode. ([70100](https://github.com/WordPress/gutenberg/pull/70100))
25+
- Post blocks: Enhance contentOnly editing experience. ([70148](https://github.com/WordPress/gutenberg/pull/70148))
26+
- Table Block: Enhance contentOnly Editing Experience. ([70114](https://github.com/WordPress/gutenberg/pull/70114))
27+
28+
#### Components
29+
- ColorPicker: Add a visual cue when the value is copied. ([70083](https://github.com/WordPress/gutenberg/pull/70083))
30+
- Snackbar: Add support to open links in new tab. ([69905](https://github.com/WordPress/gutenberg/pull/69905))
31+
32+
#### Block Transforms
33+
- Block Library: Add missing transforms between Verse and Preformatted blocks. ([70101](https://github.com/WordPress/gutenberg/pull/70101))
34+
35+
#### Global Styles
36+
- Remove "global" from styles variation in schema descriptions. ([70089](https://github.com/WordPress/gutenberg/pull/70089))
37+
38+
#### Site Editor
39+
- Move `Styles` to top of sidebar navigation. ([68582](https://github.com/WordPress/gutenberg/pull/68582))
40+
41+
42+
### Bug Fixes
43+
44+
- DOM: Add summary element to focusable elements. ([70051](https://github.com/WordPress/gutenberg/pull/70051))
45+
- Site Editor: Fix PHP warnings in `gutenberg_get_site_editor_redirection`. ([70062](https://github.com/WordPress/gutenberg/pull/70062))
46+
- URL: Handle HTML entities and ampersand in 'cleanForSlug'. ([70078](https://github.com/WordPress/gutenberg/pull/70078))
47+
- Workflows: Persist git credentials when publishing packages via Lerna. ([70058](https://github.com/WordPress/gutenberg/pull/70058))
48+
49+
#### Block Library
50+
- Button: Limit scope of width style for link. ([70054](https://github.com/WordPress/gutenberg/pull/70054))
51+
- Image: Provide 'defaultValue' for 'ResolutionTool' component. ([70122](https://github.com/WordPress/gutenberg/pull/70122))
52+
- Post Template: Don't rely on the default 'ignore_sticky' REST API value. ([70020](https://github.com/WordPress/gutenberg/pull/70020))
53+
54+
#### Components
55+
- Fix Styling for `TextControl`and `TextAreaControl` in dark themes. ([69640](https://github.com/WordPress/gutenberg/pull/69640))
56+
- Fix `URLPopover` input handling to properly update value. ([70156](https://github.com/WordPress/gutenberg/pull/70156))
57+
58+
#### Post Editor
59+
- Editor: Honor rich/code editor settings when deriving the editor mode. ([70080](https://github.com/WordPress/gutenberg/pull/70080))
60+
- Hide "Create template part" menu from block settings dropdown for classic themes. ([65568](https://github.com/WordPress/gutenberg/pull/65568))
61+
62+
#### Block Editor
63+
- MediaPlaceholder: Fix potential error in 'handleBlocksDrop'. ([70090](https://github.com/WordPress/gutenberg/pull/70090))
64+
65+
66+
### Accessibility
67+
68+
- Editor: Add label in`TextareaControl` in CollabSidebar. ([70133](https://github.com/WordPress/gutenberg/pull/70133))
69+
70+
#### Global Styles
71+
- Background Image Panel: Fix focus loss. ([69813](https://github.com/WordPress/gutenberg/pull/69813))
72+
- Move `Randomize colors` button to Edit Palette panel. ([70128](https://github.com/WordPress/gutenberg/pull/70128))
73+
74+
75+
### Documentation
76+
77+
- Add example doc comment. ([70116](https://github.com/WordPress/gutenberg/pull/70116))
78+
- Docs: Clarify versions in WordPress page title. ([70112](https://github.com/WordPress/gutenberg/pull/70112))
79+
- Docs: Fix PEG.js link. ([70082](https://github.com/WordPress/gutenberg/pull/70082))
80+
- Docs: Interactivity API Block removed. ([69513](https://github.com/WordPress/gutenberg/pull/69513))
81+
- Modify the spinner example code. ([70084](https://github.com/WordPress/gutenberg/pull/70084))
82+
- Popover: Update Popover component documentation. ([70106](https://github.com/WordPress/gutenberg/pull/70106))
83+
- RichText Readme - Fix 404 URL To Mozilla documentation. ([70171](https://github.com/WordPress/gutenberg/pull/70171))
84+
- Updated backticks to quotes. ([70070](https://github.com/WordPress/gutenberg/pull/70070))
85+
86+
87+
### Code Quality
88+
89+
- ServerSideRender: Colocate delayed spinner logic. ([70147](https://github.com/WordPress/gutenberg/pull/70147))
90+
- Stylelint: Customise warning for `CSS` variables used outside `components` package. ([70108](https://github.com/WordPress/gutenberg/pull/70108))
91+
- Stylelint: Customise warning message for `flex-direction` warning. ([70057](https://github.com/WordPress/gutenberg/pull/70057))
92+
93+
#### Block Library
94+
- Blocks: Remove TODO for post comment block conversion. ([70110](https://github.com/WordPress/gutenberg/pull/70110))
95+
96+
#### Components
97+
- `withIgnoreIMEEvents`: Update documentation for clarity. ([70098](https://github.com/WordPress/gutenberg/pull/70098))
98+
99+
#### Font Library
100+
- Fix missing trailing period in user message. ([70132](https://github.com/WordPress/gutenberg/pull/70132))
101+
102+
103+
### Tools
104+
105+
#### Build Tooling
106+
- Workflows: Add option for publishing the latest npm packages. ([70079](https://github.com/WordPress/gutenberg/pull/70079))
107+
108+
#### Testing
109+
- end-to-end Tests: Add test suite for columns block template lock. ([69089](https://github.com/WordPress/gutenberg/pull/69089))
110+
111+
112+
## First-time contributors
113+
114+
The following PRs were merged by first-time contributors:
115+
116+
- @jasalt: Docs: Fix PEG.js link. ([70082](https://github.com/WordPress/gutenberg/pull/70082))
117+
118+
119+
## Contributors
120+
121+
The following contributors merged PRs in this release:
122+
123+
@carolinan @himanshupathak95 @igorradovanov @im3dabasia @Infinite-Null @jasalt @karthikeya-io @Mamaduka @Mayank-Tripathi32 @peterwilsoncc @SainathPoojary @shimotmk @SirLouen @StevenDufresne @Sukhendu2002 @t-hamano @unscripted @yogeshbhutkar
124+
125+
126+
= 20.8.0 =
127+
6128
## Changelog
7129

8130
### Enhancements
@@ -147,6 +269,8 @@ The following contributors merged PRs in this release:
147269
@bph @Debarghya-Banerjee @georgestephanis @himanshupathak95 @im3dabasia @Infinite-Null @johnbillion @jrmd @karthikeya-io @Maikuolan @Mamaduka @Mayank-Tripathi32 @Rishit30G @SH4LIN @shimotmk @stokesman @Sukhendu2002 @t-hamano @yogeshbhutkar
148270

149271

272+
273+
150274
= 20.7.0 =
151275

152276
## Changelog

docs/contributors/versions-in-wordpress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Versions in WordPress
1+
# Gutenberg versions in WordPress
22

33
With each major release of WordPress a new version of Gutenberg is included. This has caused confusion over time as people have tried to figure out how to best debug problems and report bugs appropriately. To make this easier we have made this document to serve as a canonical list of the Gutenberg versions integrated into each major WordPress release. Of note, during the beta period of a WordPress release, additional bug fixes from later Gutenberg releases than those noted are added into the WordPress release where it is needed. If you want details about what's in each Gutenberg release outside of the high level items shared as part of major WordPress releases, please review the [release notes shared on Make Core](https://make.wordpress.org/core/tag/gutenberg-new/).
44

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@
23882388
"parent": "contributors"
23892389
},
23902390
{
2391-
"title": "Versions in WordPress",
2391+
"title": "Gutenberg versions in WordPress",
23922392
"slug": "versions-in-wordpress",
23932393
"markdown_source": "../docs/contributors/versions-in-wordpress.md",
23942394
"parent": "contributors"

docs/reference-guides/data/data-core-edit-widgets.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,27 @@ _Returns_
140140

141141
Returns whether widget saving is locked.
142142

143+
_Usage_
144+
145+
```jsx
146+
import { __ } from '@wordpress/i18n';
147+
import { store as widgetStore } from '@wordpress/edit-widgets';
148+
import { useSelect } from '@wordpress/data';
149+
150+
const ExampleComponent = () => {
151+
const isSavingLocked = useSelect(
152+
( select ) => select( widgetStore ).isWidgetSavingLocked(),
153+
[]
154+
);
155+
156+
return isSavingLocked ? (
157+
<p>{ __( 'Widget saving is locked' ) }</p>
158+
) : (
159+
<p>{ __( 'Widget saving is not locked' ) }</p>
160+
);
161+
};
162+
```
163+
143164
_Parameters_
144165

145166
- _state_ `Object`: Global application state.
@@ -166,6 +187,22 @@ _Returns_
166187

167188
Returns an action object used to signal that widget saving is locked.
168189

190+
_Usage_
191+
192+
```js
193+
import { store as widgetStore } from '@wordpress/edit-widgets';
194+
import { useDispatch } from '@wordpress/data';
195+
196+
const ExampleComponent = () => {
197+
const { lockWidgetSaving } = useDispatch( widgetStore );
198+
return (
199+
<Button onClick={ () => lockWidgetSaving( 'lockName' ) }>
200+
{ __( 'Lock Widget Saving' ) }
201+
</Button>
202+
);
203+
};
204+
```
205+
169206
_Parameters_
170207

171208
- _lockName_ `string`: The lock name.
@@ -298,6 +335,22 @@ _Returns_
298335

299336
Returns an action object used to signal that widget saving is unlocked.
300337

338+
_Usage_
339+
340+
```js
341+
import { store as widgetStore } from '@wordpress/edit-widgets';
342+
import { useDispatch } from '@wordpress/data';
343+
344+
const ExampleComponent = () => {
345+
const { unlockWidgetSaving } = useDispatch( widgetStore );
346+
return (
347+
<Button onClick={ () => unlockWidgetSaving( 'lockName' ) }>
348+
{ __( 'Unlock Widget Saving' ) }
349+
</Button>
350+
);
351+
};
352+
```
353+
301354
_Parameters_
302355

303356
- _lockName_ `string`: The lock name.

docs/reference-guides/interactivity-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Here you have some more resources to learn/read more about the Interactivity API
115115
- [Interactivity API Discussions](https://github.com/WordPress/gutenberg/discussions/52882), especially the [showcase](https://github.com/WordPress/gutenberg/discussions/55642#discussioncomment-9667164) discussions.
116116
- [wpmovies.dev](https://wpmovies.dev/) demo and its [wp-movies-demo](https://github.com/WordPress/wp-movies-demo) repo
117117
- Examples using the Interactivity API at [block-development-examples](https://github.com/WordPress/block-development-examples):
118-
- [`interactivity-api-block-833d15`](https://github.com/WordPress/block-development-examples/tree/trunk/plugins/interactivity-api-block-833d15)
118+
- [`my-first-interactive-block`](https://github.com/WordPress/block-development-examples/tree/trunk/plugins/my-first-interactive-block)
119119
- [`interactivity-api-countdown-3cd73e`](https://github.com/WordPress/block-development-examples/tree/trunk/plugins/interactivity-api-countdown-3cd73e)
120120
- [`interactivity-api-quiz-1835fa`](https://github.com/WordPress/block-development-examples/tree/trunk/plugins/interactivity-api-quiz-1835fa)
121121

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: 20.8.0-rc.1
8+
* Version: 20.9.0-rc.1
99
* Author: Gutenberg Team
1010
* Text Domain: gutenberg
1111
*

0 commit comments

Comments
 (0)