Skip to content

Commit d7422d0

Browse files
committed
Merge branch 'trunk' into iapi-docs-typescript-guide
2 parents de897f3 + 98b8d41 commit d7422d0

File tree

426 files changed

+9038
-4550
lines changed

Some content is hidden

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

426 files changed

+9038
-4550
lines changed

.eslintrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ module.exports = {
216216
},
217217
],
218218
'no-restricted-syntax': [ 'error', ...restrictedSyntax ],
219+
'jsdoc/check-tag-names': [
220+
'error',
221+
{
222+
definedTags: [ 'jest-environment' ],
223+
},
224+
],
219225
},
220226
overrides: [
221227
{
@@ -315,6 +321,7 @@ module.exports = {
315321
...[
316322
'BorderBoxControl',
317323
'BorderControl',
324+
'BoxControl',
318325
'ComboboxControl',
319326
'CustomSelectControl',
320327
'DimensionControl',

.github/workflows/bundle-size.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ jobs:
5252
- uses: preactjs/compressed-size-action@f780fd104362cfce9e118f9198df2ee37d12946c # v2.6.0
5353
with:
5454
repo-token: '${{ secrets.GITHUB_TOKEN }}'
55-
pattern: '{build/**/*.min.js,build/**/*.css}'
55+
pattern: '{build/**/*.min.js,build/**/*.css,build-module/**/*.min.js}'
5656
clean-script: 'distclean'

.github/workflows/rnmobile-android-runner.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
2929

3030
- name: Use desired version of Java
31-
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
31+
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
3232
with:
3333
distribution: 'corretto'
3434
java-version: '17'
@@ -47,7 +47,7 @@ jobs:
4747
run: npm run native test:e2e:setup
4848

4949
- name: Gradle cache
50-
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
50+
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
5151

5252
- name: AVD cache
5353
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2

.stylelintrc.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@wordpress/stylelint-config/scss",
2+
"extends": "@wordpress/stylelint-config/scss-stylistic",
33
"rules": {
44
"at-rule-empty-line-before": null,
55
"at-rule-no-unknown": null,
@@ -21,7 +21,7 @@
2121
}
2222
],
2323
"font-weight-notation": null,
24-
"max-line-length": null,
24+
"@stylistic/max-line-length": null,
2525
"no-descending-specificity": null,
2626
"property-disallowed-list": [
2727
[ "order" ],
@@ -34,7 +34,7 @@
3434
"value-keyword-case": null,
3535
"scss/operator-no-unspaced": null,
3636
"scss/selector-no-redundant-nesting-selector": null,
37-
"scss/at-import-partial-extension": null,
37+
"scss/load-partial-extension": null,
3838
"scss/no-global-function-names": null,
3939
"scss/comment-no-empty": null,
4040
"scss/at-extend-no-missing-placeholder": null,

backport-changelog/6.7/7139.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
https://github.com/WordPress/wordpress-develop/pull/7139
22

33
* https://github.com/WordPress/gutenberg/pull/64504
4+
* https://github.com/WordPress/gutenberg/pull/65280

backport-changelog/6.7/7314.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
https://github.com/WordPress/wordpress-develop/pull/7314
2+
3+
* https://github.com/WordPress/gutenberg/pull/64167

backport-changelog/6.7/7336.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
https://github.com/WordPress/wordpress-develop/pull/7336
2+
3+
* https://github.com/WordPress/gutenberg/pull/65071

bin/build-plugin-zip.sh

+4-14
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,16 @@ npm run build
7878
php bin/generate-gutenberg-php.php > gutenberg.tmp.php
7979
mv gutenberg.tmp.php gutenberg.php
8080

81-
build_files=$(
82-
ls build/*/*.{js,js.map,css,asset.php} \
83-
build/block-library/blocks/*.php \
84-
build/block-library/blocks/*/block.json \
85-
build/block-library/blocks/*/*.{js,js.map,css,asset.php} \
86-
build/edit-widgets/blocks/*/block.json \
87-
build/widgets/blocks/*.php \
88-
build/widgets/blocks/*/block.json \
89-
build/style-engine/*.php \
90-
)
91-
92-
9381
# Generate the plugin zip file.
9482
status "Creating archive... 🎁"
95-
zip -r gutenberg.zip \
83+
zip --recurse-paths --no-dir-entries \
84+
gutenberg.zip \
9685
gutenberg.php \
9786
lib \
9887
packages/block-serialization-default-parser/*.php \
9988
post-content.php \
100-
$build_files \
89+
build \
90+
build-module \
10191
readme.txt \
10292
changelog.txt \
10393
README.md

changelog.txt

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
== Changelog ==
22

3-
= 19.2.0-rc.1 =
4-
3+
= 19.2.0 =
54

65
## Changelog
76

@@ -40,6 +39,12 @@
4039
- Rely on `Text` component instead of `Truncate` in bindings panel. ([65007](https://github.com/WordPress/gutenberg/pull/65007))
4140
- Remove `getPlaceholder` API and rely on `key` argument or source label. ([64910](https://github.com/WordPress/gutenberg/pull/64910))
4241

42+
#### Data Views
43+
- Add: Reorder control at the field level on the new view configuration UI. ([64381](https://github.com/WordPress/gutenberg/pull/64381))
44+
- Dataviews Filter search widget: Do not use Composite store. ([64985](https://github.com/WordPress/gutenberg/pull/64985))
45+
- Dataviews list view: Do not use Composite store. ([64987](https://github.com/WordPress/gutenberg/pull/64987))
46+
- Move bulk actions menu to the Footer, consolidate with floating toolbar and total items display. ([64268](https://github.com/WordPress/gutenberg/pull/64268))
47+
4348
#### Block Editor
4449
- Add 'Reset' option to MediaReplaceFlow component. ([64826](https://github.com/WordPress/gutenberg/pull/64826))
4550
- Block Patterns List: Do not use Composite store. ([64983](https://github.com/WordPress/gutenberg/pull/64983))
@@ -106,12 +111,14 @@
106111

107112
- Add safeguard to `mediaUploadMiddleware`. ([64843](https://github.com/WordPress/gutenberg/pull/64843))
108113
- Allow multi-select on iOS Safari/touch devices. ([63671](https://github.com/WordPress/gutenberg/pull/63671))
114+
- Core Data: Fix the 'query._fields' property check inside 'getEntityRecord' resolver. ([65079](https://github.com/WordPress/gutenberg/pull/65079))
109115
- Fix Modify content-locked menu item not showing if the block is not selected. ([61605](https://github.com/WordPress/gutenberg/pull/61605))
110116
- Fix editor error in Safari due to availability of checkVisibility method. ([65069](https://github.com/WordPress/gutenberg/pull/65069))
111117
- Fix: Pagination arrows are pointing in the wrong direction in RTL languages. ([64962](https://github.com/WordPress/gutenberg/pull/64962))
112118
- Footnotes: Only replace attribute if footnotes were detected. ([63935](https://github.com/WordPress/gutenberg/pull/63935))
113119
- Paste: Fix image paste from Google Forms. ([64502](https://github.com/WordPress/gutenberg/pull/64502))
114120
- Revert Focus pattern inserter search when activating zoom out inserter. ([64748](https://github.com/WordPress/gutenberg/pull/64748))
121+
- Try: Update block warnings. ([64997](https://github.com/WordPress/gutenberg/pull/64997))
115122

116123
#### Block Library
117124
- De-duplicate block toolbar icons for patterns. ([65054](https://github.com/WordPress/gutenberg/pull/65054))
@@ -175,6 +182,9 @@
175182
#### Site Editor
176183
- DataViews: Fix pattern title direction in RTL languages. ([64967](https://github.com/WordPress/gutenberg/pull/64967))
177184

185+
#### Typography
186+
- Site Title, Post Title: Fix typography for blocks with `a` children. ([64911](https://github.com/WordPress/gutenberg/pull/64911))
187+
178188
#### NUX
179189
- Fix visibility of the template Welcome Guide in the Site Editor. ([64789](https://github.com/WordPress/gutenberg/pull/64789))
180190

@@ -223,6 +233,9 @@
223233
- Add 'OPTIONS /page' to preloaded paths. ([64890](https://github.com/WordPress/gutenberg/pull/64890))
224234
- Editor: Don't use selector shortcuts for the Site data. ([64884](https://github.com/WordPress/gutenberg/pull/64884))
225235

236+
#### Interactivity API
237+
- Prevent calling `proxifyContext` with context proxies inside `wp-context`. ([65090](https://github.com/WordPress/gutenberg/pull/65090))
238+
226239
#### Block Library
227240
- Media & Text: Don't use background-image. ([64981](https://github.com/WordPress/gutenberg/pull/64981))
228241

@@ -353,7 +366,7 @@ The following PRs were merged by first-time contributors:
353366

354367
The following contributors merged PRs in this release:
355368

356-
@aaronrobertshaw @afercia @akasunil @Aljullu @andrewserong @atachibana @benoitchantre @carolinan @cbravobernal @ciampo @DAreRodz @dcalhoun @desrosj @dsas @ellatrix @fullofcaffeine @getdave @gziolo @Imran92 @imrraaj @jacobcassidy @jameskoster @jasmussen @jawadmalikdev @jeryj @jorgefilipecosta @jsnajdr @juanmaguitar @kevin940726 @lezama @Mamaduka @matiasbenedetto @mirka @noisysocks @ntsekouras @oandregal @ockham @ramonjd @richtabor @rithik56 @rohitmathur-7 @ryanwelcher @SantosGuillamot @scruffian @sgomes @shail-mehta @spacedmonkey @stokesman @swissspidy @t-hamano @talldan @tjcafferkey @tyxla
369+
@aaronrobertshaw @afercia @akasunil @Aljullu @andrewserong @atachibana @benoitchantre @carolinan @cbravobernal @ciampo @DAreRodz @dcalhoun @desrosj @dsas @ellatrix @fullofcaffeine @getdave @gziolo @Imran92 @imrraaj @jacobcassidy @jameskoster @jasmussen @jawadmalikdev @jeryj @jorgefilipecosta @jsnajdr @juanmaguitar @kevin940726 @lezama @Mamaduka @matiasbenedetto @mirka @noisysocks @ntsekouras @oandregal @ockham @rafaelgallani @ramonjd @richtabor @rithik56 @rohitmathur-7 @ryanwelcher @SantosGuillamot @scruffian @sgomes @shail-mehta @spacedmonkey @stokesman @swissspidy @t-hamano @talldan @tjcafferkey @tyxla
357370

358371

359372
= 19.1.0 =

docs/getting-started/tutorial.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To complete this tutorial, you will need:
2525
If you don't have one or more of these items, the [Block Development Environment](https://developer.wordpress.org/block-editor/getting-started/devenv/) documentation will help you get started. Come back here once you are all set up.
2626

2727
<div class="callout callout-info">
28-
This tutorial uses <a href="https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/"><code>wp-env</code></a> to create a local WordPress development environment. However, feel free to use alternate local development tools if you already have one that you prefer.
28+
This tutorial uses <a href="https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/"><code>wp-env</code></a> to create a local WordPress development environment. However, feel free to use any development environment that meets the abovementioned prerequisites.
2929
</div>
3030

3131
## Scaffolding the block
@@ -250,7 +250,7 @@ At this point, the block's icon and description are correct, and block supports
250250

251251
### Updating edit.js
252252

253-
The [`edit.js`](https://developer.wordpress.org/block-editor/getting-started/fundamentals/file-structure-of-a-block/#edit-js) file controls how the block functions and appears in the Editor. Right now, the user sees the message " Copyright Date Block – hello from the editor!". Let's change that.
253+
The [`edit.js`](https://developer.wordpress.org/block-editor/getting-started/fundamentals/file-structure-of-a-block/#edit-js) file controls how the block functions and appears in the Editor. Right now, the user sees the message "Copyright Date Block – hello from the editor!". Let's change that.
254254

255255
Open the file and see that the `Edit()` function returns a paragraph tag with the default message.
256256

@@ -647,10 +647,10 @@ While the Editor looks great, the starting year functionality has yet to be adde
647647
648648
Start by adding a variable called `$display_date` and replicate what you did in the `Edit()` function above.
649649
650-
This variable should display the value of the `startingYear` attribute and the `$current_year` variable separated by an em dash, or just the `$current_year` is the `showStartingYear` attribute is `false`.
650+
This variable should display the value of the `startingYear` attribute and the `$current_year` variable separated by an em dash, or just the `$current_year` if the `showStartingYear` attribute is `false`.
651651
652652
<div class="callout callout-tip">
653-
<p>Three variables are exposed in the <code>render.php</code>, which you can use to customize the block's output:</p>
653+
<p>Three variables are exposed in <code>render.php</code>, which you can use to customize the block's output:</p>
654654
<ul>
655655
<li><code>$attributes</code> (array): The block attributes.</li>
656656
<li><code>$content</code> (string): The block default content.</li>

docs/reference-guides/block-api/block-api-versions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This document lists the changes made between the different API versions.
44

55
## Version 3 (>= WordPress 6.3)
6-
- The post editor will be iframed if all registered blocks have a Block API version 3 or higher and the editor has no classic meta boxes below the blocks. Adding version 3 support means that the block should work inside an iframe, though the block may still be rendered outside the iframe if not all blocks support version 3.
6+
- The post editor will be iframed if all registered blocks have a Block API version 3 or higher. Adding version 3 support means that the block should work inside an iframe, though the block may still be rendered outside the iframe if not all blocks support version 3.
77

88
## Version 2 (>= WordPress 5.6)
99

docs/reference-guides/block-api/block-context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function Edit( props ) {
141141
return (
142142
<div>
143143
<TextControl
144-
label={ __( 'Record ID:' ) }
144+
label={ __( 'Record ID' ) }
145145
value={ recordId }
146146
onChange={ ( val ) =>
147147
setAttributes( { recordId: Number( val ) } )

docs/reference-guides/core-blocks.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ A calendar of your site’s posts. ([Source](https://github.com/WordPress/gutenb
7272
- **Supports:** align, color (background, link, text), interactivity (clientNavigation), typography (fontSize, lineHeight)
7373
- **Attributes:** month, year
7474

75-
## Categories List
75+
## Terms List
7676

77-
Display a list of all categories. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/categories))
77+
Display a list of all terms of a given taxonomy. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/categories))
7878

7979
- **Name:** core/categories
8080
- **Category:** widgets
8181
- **Supports:** align, interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
82-
- **Attributes:** displayAsDropdown, label, showEmpty, showHierarchy, showLabel, showOnlyTopLevel, showPostCounts
82+
- **Attributes:** displayAsDropdown, label, showEmpty, showHierarchy, showLabel, showOnlyTopLevel, showPostCounts, taxonomy
8383

8484
## Code
8585

@@ -493,7 +493,7 @@ Add a submenu to your navigation. ([Source](https://github.com/WordPress/gutenbe
493493
- **Name:** core/navigation-submenu
494494
- **Category:** design
495495
- **Parent:** core/navigation
496-
- **Supports:** interactivity (clientNavigation), ~~html~~, ~~reusable~~
496+
- **Supports:** interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
497497
- **Attributes:** description, id, isTopLevelItem, kind, label, opensInNewTab, rel, title, type, url
498498

499499
## Page Break

docs/reference-guides/slotfills/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ import { __ } from '@wordpress/i18n';
166166
*/
167167
const SiteEditorDocumentSettingPanel = () => {
168168
// Retrieve information about the current post type.
169-
const { isViewable } = useSelect( ( select ) => {
169+
const isViewable = useSelect( ( select ) => {
170170
const postTypeName = select( editorStore ).getCurrentPostType();
171171
const postTypeObject = select( coreStore ).getPostType( postTypeName );
172172

gutenberg.php

+5-3
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.5
77
* Requires PHP: 7.2
8-
* Version: 19.2.0-rc.1
8+
* Version: 19.2.0
99
* Author: Gutenberg Team
1010
* Text Domain: gutenberg
1111
*
@@ -15,6 +15,8 @@
1515
### BEGIN AUTO-GENERATED DEFINES
1616
defined( 'GUTENBERG_DEVELOPMENT_MODE' ) or define( 'GUTENBERG_DEVELOPMENT_MODE', true );
1717
### END AUTO-GENERATED DEFINES
18+
defined( 'GUTENBERG_MINIMUM_WP_VERSION' ) or define( 'GUTENBERG_MINIMUM_WP_VERSION', '6.5' );
19+
1820

1921
gutenberg_pre_init();
2022

@@ -26,7 +28,7 @@
2628
function gutenberg_wordpress_version_notice() {
2729
echo '<div class="error"><p>';
2830
/* translators: %s: Minimum required version */
29-
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.9' );
31+
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), GUTENBERG_MINIMUM_WP_VERSION );
3032
echo '</p></div>';
3133

3234
deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );
@@ -67,7 +69,7 @@ function gutenberg_pre_init() {
6769
// Compare against major release versions (X.Y) rather than minor (X.Y.Z)
6870
// unless a minor release is the actual minimum requirement. WordPress reports
6971
// X.Y for its major releases.
70-
if ( version_compare( $version, '5.9', '<' ) ) {
72+
if ( version_compare( $version, GUTENBERG_MINIMUM_WP_VERSION, '<' ) ) {
7173
add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' );
7274
return;
7375
}

0 commit comments

Comments
 (0)