Duotone: lazily load settings#74748
Conversation
|
Sorry for the broken tests; please hold off on reviewing until I get a chance to fix them. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in 0ced6a0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22224319197
|
|
This should be ready for a final review now. Please take a look when you have a chance, and let me know what you think! |
|
Any chance for a final review on this one? I don't think there are any pending issues. |
There was a problem hiding this comment.
Pull request overview
Aligns Gutenberg’s WP_Duotone_Gutenberg behavior with the Core lazy-initialization approach to avoid expensive duotone metadata/theme.json processing on requests that never render duotone-supporting blocks.
Changes:
- Refactors
WP_Duotone_Gutenbergto lazily initialize global styles presets and global-style block-name mappings via internal getters. - Removes eager
wp_loadedinitialization and updates therender_blockfilter registration to pass theWP_Blockinstance. - Updates PHPUnit tests to pass the
WP_Blockinstance and to handle Reflection accessibility differences across PHP versions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
lib/class-wp-duotone-gutenberg.php |
Implements lazy-loading getters, updates selector logic to reuse WP_Block_Type, and adjusts render flow to load metadata on-demand. |
lib/block-supports/duotone.php |
Removes eager initialization hooks and changes render_block filter registration to use 3 args. |
phpunit/class-wp-duotone-test.php |
Updates tests for the new render_duotone_support() signature and adjusts Reflection usage for newer PHP. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| $global_styles_block_names = self::get_all_global_style_block_names(); | ||
|
|
||
| // The block should have a duotone attribute or have duotone defined in its theme.json to be processed. | ||
| $has_duotone_attribute = isset( $block['attrs']['style']['color']['duotone'] ); | ||
| $has_global_styles_duotone = array_key_exists( $block['blockName'], self::$global_styles_block_names ); | ||
| $has_global_styles_duotone = array_key_exists( $block['blockName'], $global_styles_block_names ); | ||
|
|
There was a problem hiding this comment.
render_duotone_support() calls get_all_global_style_block_names() (which runs WP_Theme_JSON_Resolver_Gutenberg::get_merged_data()) before checking whether the block even needs global-styles duotone. For blocks that already have a style.color.duotone attribute, this extra theme.json merge is unnecessary and undermines the lazy-load goal. Compute $has_duotone_attribute first and only load global style block names when you actually need to evaluate/apply the global-styles fallback.
There was a problem hiding this comment.
get_all_global_style_block_names() only runs WP_Theme_JSON_Resolver_Gutenberg::get_merged_data() the first time, and then keeps a cache. This is a pretty fundamental part of this PR. get_merged_data will not be called for every block.
The proposed 'fix' would only help if every single block happened to have a style.color.duotone attribute, otherwise it would have to be calculated at least once. And given that there are plenty of blocks without duotone support, this would be a useless optimisation.
| public static function render_duotone_support( $block_content, $block, $wp_block ) { | ||
| if ( ! $block['blockName'] ) { | ||
| return $block_content; | ||
| } | ||
| $duotone_selector = self::get_selector( $wp_block->block_type ); | ||
|
|
There was a problem hiding this comment.
render_duotone_support() now requires a $wp_block argument and immediately dereferences $wp_block->block_type. This is a backward-compatibility break: the deprecated gutenberg_render_duotone_support() helper (lib/block-supports/duotone.php:429+) and any external callers still passing 2 args will fatal with “Too few arguments” / null deref. Make the third parameter optional (default null) and fall back to resolving the WP_Block_Type from $block['blockName'] when $wp_block is missing/invalid; also update the deprecated wrapper to pass the instance when available (or construct one).
There was a problem hiding this comment.
This is irrelevant, as the method is only used as a filter callback, and there are thus no backwards compatibility concerns.
| private static function is_preset( $duotone_attr ) { | ||
| $slug = self::get_slug_from_attribute( $duotone_attr ); | ||
| $filter_id = self::get_filter_id( $slug ); | ||
|
|
||
| return array_key_exists( $filter_id, self::$global_styles_presets ); | ||
| return array_key_exists( $filter_id, self::get_all_global_styles_presets() ); | ||
| } |
There was a problem hiding this comment.
is_preset() always calls get_all_global_styles_presets(), which triggers gutenberg_get_global_settings() → WP_Theme_JSON_Resolver_Gutenberg::get_merged_data() even for non-preset string values like 'unset' (where get_slug_from_attribute() returns an empty string). Add an early return when the extracted slug is empty (and/or when the attribute doesn't match the preset var formats) to avoid forcing the expensive theme.json merge for simple CSS-string duotone values.
There was a problem hiding this comment.
is_preset() always calls get_all_global_styles_presets(), which triggers gutenberg_get_global_settings() → WP_Theme_JSON_Resolver_Gutenberg::get_merged_data()
This is not true. get_all_global_styles_presets() only calls gutenberg_get_global_settings() the first time, and otherwise keeps a cache. That's kind of fundamental to understanding this PR.
If the concern is that is_preset() gets called too early for the first time, and thus triggers the expensive operations too early as well, then that is also not true, because it only gets called in render_duotone_support(), which is a callback for the render_block hook.
This comment is a shallow analysis of the code in question, and unrelated to what this PR is trying to do.
There was a problem hiding this comment.
Copilot produced a nearly completely useless review, as the bot shows a fundamental lack of 'understanding' (for lack of a better word) of the code in question.
It did point out a type issue, so I guess it's not a total failure! That doesn't really amount to much, though, given that it sent me on a bunch of wild goose chases that wasted around an hour of my time.
I will be ignoring Copilot "code reviews" going forward.
| public static function render_duotone_support( $block_content, $block, $wp_block ) { | ||
| if ( ! $block['blockName'] ) { | ||
| return $block_content; | ||
| } | ||
| $duotone_selector = self::get_selector( $wp_block->block_type ); | ||
|
|
There was a problem hiding this comment.
This is irrelevant, as the method is only used as a filter callback, and there are thus no backwards compatibility concerns.
| private static function is_preset( $duotone_attr ) { | ||
| $slug = self::get_slug_from_attribute( $duotone_attr ); | ||
| $filter_id = self::get_filter_id( $slug ); | ||
|
|
||
| return array_key_exists( $filter_id, self::$global_styles_presets ); | ||
| return array_key_exists( $filter_id, self::get_all_global_styles_presets() ); | ||
| } |
There was a problem hiding this comment.
is_preset() always calls get_all_global_styles_presets(), which triggers gutenberg_get_global_settings() → WP_Theme_JSON_Resolver_Gutenberg::get_merged_data()
This is not true. get_all_global_styles_presets() only calls gutenberg_get_global_settings() the first time, and otherwise keeps a cache. That's kind of fundamental to understanding this PR.
If the concern is that is_preset() gets called too early for the first time, and thus triggers the expensive operations too early as well, then that is also not true, because it only gets called in render_duotone_support(), which is a callback for the render_block hook.
This comment is a shallow analysis of the code in question, and unrelated to what this PR is trying to do.
| $global_styles_block_names = self::get_all_global_style_block_names(); | ||
|
|
||
| // The block should have a duotone attribute or have duotone defined in its theme.json to be processed. | ||
| $has_duotone_attribute = isset( $block['attrs']['style']['color']['duotone'] ); | ||
| $has_global_styles_duotone = array_key_exists( $block['blockName'], self::$global_styles_block_names ); | ||
| $has_global_styles_duotone = array_key_exists( $block['blockName'], $global_styles_block_names ); | ||
|
|
There was a problem hiding this comment.
get_all_global_style_block_names() only runs WP_Theme_JSON_Resolver_Gutenberg::get_merged_data() the first time, and then keeps a cache. This is a pretty fundamental part of this PR. get_merged_data will not be called for every block.
The proposed 'fix' would only help if every single block happened to have a style.color.duotone attribute, otherwise it would have to be calculated at least once. And given that there are plenty of blocks without duotone support, this would be a useless optimisation.
This comment was marked as duplicate.
This comment was marked as duplicate.
FWIW, I usually find Copilot reviews to be helpful, so I want to at least see what it has to say. But I don't feel I need to action on everything, as indeed it often can be wrong. Clearly it wasn't as effective with this PR, but in my experience the majority of the review comments are helpful. Sorry to waste your time. The Duotone functionality is not familiar to me so I was trying to help get additional "eyes" on it to help unblock you. |
|
Thank you, @westonruter, I appreciate the thought, and I apologise if I let my frustration get the better of me. Perhaps I'm unlucky, but I'm yet to have a good code review experience with an LLM 😕 |
33b8c34 to
0ced6a0
Compare
Co-authored-by: Weston Ruter <[email protected]>
0ced6a0 to
8abe01a
Compare
westonruter
left a comment
There was a problem hiding this comment.
LGTM, although again, I have very little experience with the Duotone functionality.
diff -u src/wp-includes/class-wp-duotone.php src/wp-content/plugins/gutenberg/lib/class-wp-duotone-gutenberg.php
--- src/wp-includes/class-wp-duotone.php 2026-02-13 10:28:25
+++ src/wp-content/plugins/gutenberg/lib/class-wp-duotone-gutenberg.php 2026-02-23 11:05:17
@@ -1,6 +1,6 @@
<?php
/**
- * WP_Duotone class
+ * WP_Duotone_Gutenberg class
*
* Parts of this source were derived and modified from colord,
* released under the MIT license.
@@ -28,16 +28,16 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
- * @package WordPress
+ * @package gutenberg
* @since 6.3.0
*/
/**
* Manages duotone block supports and global styles.
*
- * @access private
+ * @access public
*/
-class WP_Duotone {
+class WP_Duotone_Gutenberg {
/**
* Block names from global, theme, and custom styles that use duotone presets and the slug of
* the preset they are using.
@@ -48,11 +48,7 @@
* …
* ]
*
- * @internal
- *
- * @since 6.3.0
- *
- * @var ?array
+ * @var ?array<string, string>
*/
private static $global_styles_block_names;
@@ -62,7 +58,7 @@
* Example:
* [
* 'wp-duotone-blue-orange' => [
- * 'slug' => 'blue-orange',
+ * 'slug' => 'blue-orange',
* 'colors' => [ '#0000ff', '#ffcc00' ],
* ],
* 'wp-duotone-red-yellow' => [
@@ -72,11 +68,7 @@
* …
* ]
*
- * @internal
- *
- * @since 6.3.0
- *
- * @var ?array
+ * @var ?array<string, array<string, string|string[]>>
*/
private static $global_styles_presets;
@@ -93,10 +85,6 @@
* …
* ]
*
- * @internal
- *
- * @since 6.3.0
- *
* @var array
*/
private static $used_global_styles_presets = array();
@@ -118,10 +106,6 @@
* …
* ]
*
- * @internal
- *
- * @since 6.3.0
- *
* @var array
*/
private static $used_svg_filter_data = array();
@@ -140,28 +124,19 @@
* …
* ]
*
- * @internal
- *
- * @since 6.3.0
- *
* @var array
*/
private static $block_css_declarations = array();
/**
- * Clamps a value between an upper and lower bound.
+ * Direct port of colord's clamp function. Using min/max instead of
+ * nested ternaries.
*
- * Direct port of colord's clamp function.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L23
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L23 Sourced from colord.
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param float $number The number to clamp.
- * @param float $min The minimum value.
- * @param float $max The maximum value.
+ * @param float $min The minimum value.
+ * @param float $max The maximum value.
* @return float The clamped value.
*/
private static function colord_clamp( $number, $min = 0, $max = 1 ) {
@@ -169,16 +144,10 @@
}
/**
- * Processes and clamps a degree (angle) value properly.
- *
* Direct port of colord's clampHue function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L32 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L32
*
- * @internal
- *
- * @since 6.3.0
- *
* @param float $degrees The hue to clamp.
* @return float The clamped hue.
*/
@@ -188,16 +157,10 @@
}
/**
- * Converts a hue value to degrees from 0 to 360 inclusive.
- *
* Direct port of colord's parseHue function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L40 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L40
*
- * @internal
- *
- * @since 6.3.0
- *
* @param float $value The hue value to parse.
* @param string $unit The unit of the hue value.
* @return float The parsed hue value.
@@ -209,22 +172,19 @@
'rad' => 360 / ( M_PI * 2 ),
);
- $factor = $angle_units[ $unit ] ?? 1;
+ $factor = $angle_units[ $unit ];
+ if ( ! $factor ) {
+ $factor = 1;
+ }
return (float) $value * $factor;
}
/**
- * Parses any valid Hex3, Hex4, Hex6 or Hex8 string and converts it to an RGBA object.
- *
* Direct port of colord's parseHex function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hex.ts#L8 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hex.ts#L8
*
- * @internal
- *
- * @since 6.3.0
- *
* @param string $hex The hex string to parse.
* @return array|null An array of RGBA values or null if the hex string is invalid.
*/
@@ -246,7 +206,7 @@
'r' => (int) base_convert( $hex[0] . $hex[0], 16, 10 ),
'g' => (int) base_convert( $hex[1] . $hex[1], 16, 10 ),
'b' => (int) base_convert( $hex[2] . $hex[2], 16, 10 ),
- 'a' => 4 === strlen( $hex ) ? round( (int) base_convert( $hex[3] . $hex[3], 16, 10 ) / 255, 2 ) : 1,
+ 'a' => 4 === strlen( $hex ) ? round( base_convert( $hex[3] . $hex[3], 16, 10 ) / 255, 2 ) : 1,
);
}
@@ -263,16 +223,10 @@
}
/**
- * Clamps an array of RGBA values.
- *
* Direct port of colord's clampRgba function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgb.ts#L5 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgb.ts#L5
*
- * @internal
- *
- * @since 6.3.0
- *
* @param array $rgba The RGBA array to clamp.
* @return array The clamped RGBA array.
*/
@@ -286,16 +240,10 @@
}
/**
- * Parses a valid RGB[A] CSS color function/string.
- *
* Direct port of colord's parseRgbaString function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgbString.ts#L18 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgbString.ts#L18
*
- * @internal
- *
- * @since 6.3.0
- *
* @param string $input The RGBA string to parse.
* @return array|null An array of RGBA values or null if the RGB string is invalid.
*/
@@ -320,10 +268,8 @@
return null;
}
- /*
- * For some reason, preg_match doesn't include empty matches at the end
- * of the array, so we add them manually to make things easier later.
- */
+ // For some reason, preg_match doesn't include empty matches at the end
+ // of the array, so we add them manually to make things easier later.
for ( $i = 1; $i <= 8; $i++ ) {
if ( ! isset( $match[ $i ] ) ) {
$match[ $i ] = '';
@@ -345,16 +291,10 @@
}
/**
- * Clamps an array of HSLA values.
- *
* Direct port of colord's clampHsla function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L6 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L6
*
- * @internal
- *
- * @since 6.3.0
- *
* @param array $hsla The HSLA array to clamp.
* @return array The clamped HSLA array.
*/
@@ -368,16 +308,10 @@
}
/**
- * Converts an HSVA array to RGBA.
- *
* Direct port of colord's hsvaToRgba function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsv.ts#L52 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsv.ts#L52
*
- * @internal
- *
- * @since 6.3.0
- *
* @param array $hsva The HSVA array to convert.
* @return array The RGBA array.
*/
@@ -402,16 +336,10 @@
}
/**
- * Converts an HSLA array to HSVA.
- *
* Direct port of colord's hslaToHsva function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L33 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L33
*
- * @internal
- *
- * @since 6.3.0
- *
* @param array $hsla The HSLA array to convert.
* @return array The HSVA array.
*/
@@ -432,16 +360,10 @@
}
/**
- * Converts an HSLA array to RGBA.
- *
* Direct port of colord's hslaToRgba function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L55 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L55
*
- * @internal
- *
- * @since 6.3.0
- *
* @param array $hsla The HSLA array to convert.
* @return array The RGBA array.
*/
@@ -450,16 +372,10 @@
}
/**
- * Parses a valid HSL[A] CSS color function/string.
- *
* Direct port of colord's parseHslaString function.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hslString.ts#L17 Sourced from colord.
- *
- * @internal
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hslString.ts#L17
*
- * @since 6.3.0
- *
* @param string $input The HSLA string to parse.
* @return array|null An array of RGBA values or null if the RGB string is invalid.
*/
@@ -484,10 +400,8 @@
return null;
}
- /*
- * For some reason, preg_match doesn't include empty matches at the end
- * of the array, so we add them manually to make things easier later.
- */
+ // For some reason, preg_match doesn't include empty matches at the end
+ // of the array, so we add them manually to make things easier later.
for ( $i = 1; $i <= 6; $i++ ) {
if ( ! isset( $match[ $i ] ) ) {
$match[ $i ] = '';
@@ -507,17 +421,11 @@
}
/**
- * Tries to convert an incoming string into RGBA values.
- *
* Direct port of colord's parse function simplified for our use case. This
* version only supports string parsing and only returns RGBA values.
*
- * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/parse.ts#L37 Sourced from colord.
+ * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/parse.ts#L37
*
- * @internal
- *
- * @since 6.3.0
- *
* @param string $input The string to parse.
* @return array|null An array of RGBA values or null if the string is invalid.
*/
@@ -536,16 +444,10 @@
}
/**
- * Takes the inline CSS duotone variable from a block and return the slug.
- *
- * Handles styles slugs like:
+ * Take the inline CSS duotone variable from a block and return the slug. Handles styles slugs like:
* var:preset|duotone|blue-orange
* var(--wp--preset--duotone--blue-orange)
*
- * @internal
- *
- * @since 6.3.0
- *
* @param string|string[] $duotone_attr The duotone attribute from a block.
* @return string The slug of the duotone preset or an empty string if no slug is found (including when an array was passed).
*/
@@ -561,16 +463,10 @@
}
/**
- * Checks if we have a valid duotone preset.
+ * Check if we have a valid duotone preset.
*
- * Valid presets are defined in the $global_styles_presets array.
- *
- * @internal
- *
- * @since 6.3.0
- *
- * @param string $duotone_attr The duotone attribute from a block.
* @param string|string[] $duotone_attr The duotone attribute from a block.
+ * @return bool True if the duotone preset present and valid.
*/
private static function is_preset( $duotone_attr ) {
if ( ! is_string( $duotone_attr ) ) {
@@ -584,15 +480,8 @@
}
/**
- * Gets the CSS variable name for a duotone preset.
+ * Get the CSS variable name for a duotone preset.
*
- * Example output:
- * --wp--preset--duotone--blue-orange
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param string $slug The slug of the duotone preset.
* @return string The CSS variable name.
*/
@@ -603,13 +492,6 @@
/**
* Get the ID of the duotone filter.
*
- * Example output:
- * wp-duotone-blue-orange
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param string $slug The slug of the duotone preset.
* @return string The ID of the duotone filter.
*/
@@ -620,13 +502,6 @@
/**
* Get the CSS variable for a duotone preset.
*
- * Example output:
- * var(--wp--preset--duotone--blue-orange)
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param string $slug The slug of the duotone preset.
* @return string The CSS variable.
*/
@@ -638,13 +513,6 @@
/**
* Get the URL for a duotone filter.
*
- * Example output:
- * url(#wp-duotone-blue-orange)
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param string $filter_id The ID of the filter.
* @return string The URL for the duotone filter.
*/
@@ -654,13 +522,7 @@
/**
* Gets the SVG for the duotone filter definition.
- *
- * Whitespace is removed when SCRIPT_DEBUG is not enabled.
- *
- * @internal
*
- * @since 6.3.0
- *
* @param string $filter_id The ID of the filter.
* @param array $colors An array of color strings.
* @return string An SVG with a duotone filter definition.
@@ -678,11 +540,9 @@
if ( null === $color ) {
$error_message = sprintf(
- /* translators: 1: Duotone colors, 2: theme.json, 3: settings.color.duotone */
- __( '"%1$s" in %2$s %3$s is not a hex or rgb string.' ),
- $color_str,
- 'theme.json',
- 'settings.color.duotone'
+ /* translators: %s: duotone colors */
+ __( '"%s" in theme.json settings.color.duotone is not a hex or rgb string.', 'gutenberg' ),
+ $color_str
);
_doing_it_wrong( __METHOD__, $error_message, '6.3.0' );
} else {
@@ -744,58 +604,11 @@
}
/**
- * Returns the prefixed id for the duotone filter for use as a CSS id.
- *
- * Exported for the deprecated function wp_get_duotone_filter_id().
- *
- * @internal
- *
- * @since 6.3.0
- * @deprecated 6.3.0
- *
- * @param array $preset Duotone preset value as seen in theme.json.
- * @return string Duotone filter CSS id.
- */
- public static function get_filter_id_from_preset( $preset ) {
- _deprecated_function( __FUNCTION__, '6.3.0' );
-
- $filter_id = '';
- if ( isset( $preset['slug'] ) ) {
- $filter_id = self::get_filter_id( $preset['slug'] );
- }
- return $filter_id;
- }
-
- /**
- * Gets the SVG for the duotone filter definition from a preset.
- *
- * Exported for the deprecated function wp_get_duotone_filter_property().
- *
- * @internal
- *
- * @since 6.3.0
- * @deprecated 6.3.0
- *
- * @param array $preset The duotone preset.
- * @return string The SVG for the filter definition.
- */
- public static function get_filter_svg_from_preset( $preset ) {
- _deprecated_function( __FUNCTION__, '6.3.0' );
-
- $filter_id = self::get_filter_id_from_preset( $preset );
- return self::get_filter_svg( $filter_id, $preset['colors'] );
- }
-
- /**
* Get the SVGs for the duotone filters.
*
* Example output:
* <svg><defs><filter id="wp-duotone-blue-orange">…</filter></defs></svg><svg>…</svg>
*
- * @internal
- *
- * @since 6.3.0
- *
* @param array $sources The duotone presets.
* @return string The SVGs for the duotone filters.
*/
@@ -814,16 +627,11 @@
* Example output:
* body{--wp--preset--duotone--blue-orange:url('#wp-duotone-blue-orange');}
*
- * @internal
- *
- * @since 6.3.0
- * @since 6.6.0 Replaced body selector with `WP_Theme_JSON::ROOT_CSS_PROPERTIES_SELECTOR`.
- *
* @param array $sources The duotone presets.
* @return string The CSS for global styles.
*/
private static function get_global_styles_presets( $sources ) {
- $css = WP_Theme_JSON::ROOT_CSS_PROPERTIES_SELECTOR . '{';
+ $css = WP_Theme_JSON_Gutenberg::ROOT_CSS_PROPERTIES_SELECTOR . '{';
foreach ( $sources as $filter_id => $filter_data ) {
$slug = $filter_data['slug'];
$colors = $filter_data['colors'];
@@ -836,14 +644,48 @@
}
/**
- * Enqueue a block CSS declaration for the page.
+ * Get the CSS selector for a block type.
+ *
+ * @param WP_Block_Type $block_type Block type to check for support.
*
- * This does not include any SVGs.
+ * @return string|null The CSS selector. Null if there is no support or the $block_type is not a WP_Block_Type.
+ */
+ private static function get_selector( $block_type ) {
+ if ( ! ( $block_type instanceof WP_Block_Type ) ) {
+ return null;
+ }
+
+ /*
+ * Backward compatibility with `supports.color.__experimentalDuotone`
+ * is provided via the `block_type_metadata_settings` filter. If
+ * `supports.filter.duotone` has not been set and the experimental
+ * property has been, the experimental property value is copied into
+ * `supports.filter.duotone`.
+ */
+ $duotone_support = block_has_support( $block_type, array( 'filter', 'duotone' ) );
+ if ( ! $duotone_support ) {
+ return null;
+ }
+
+ /*
+ * If the experimental duotone support was set, that value is to be
+ * treated as a selector and requires scoping.
+ */
+ $experimental_duotone = $block_type->supports['color']['__experimentalDuotone'] ?? false;
+ if ( $experimental_duotone ) {
+ $root_selector = wp_get_block_css_selector( $block_type );
+ return is_string( $experimental_duotone )
+ ? WP_Theme_JSON::scope_selector( $root_selector, $experimental_duotone )
+ : $root_selector;
+ }
+
+ // Regular filter.duotone support uses filter.duotone selectors with fallbacks.
+ return wp_get_block_css_selector( $block_type, array( 'filter', 'duotone' ), true );
+ }
+
+ /**
+ * Enqueue a block CSS declaration for the page.
*
- * @internal
- *
- * @since 6.3.0
- *
* @param string $filter_id The filter ID. e.g. 'wp-duotone-000000-ffffff-2'.
* @param string $duotone_selector The block's duotone selector. e.g. '.wp-block-image img'.
* @param string $filter_value The filter CSS value. e.g. 'url(#wp-duotone-000000-ffffff-2)' or 'unset'.
@@ -854,11 +696,9 @@
$selectors_scoped = array();
foreach ( $selectors as $selector_part ) {
- /*
- * Assuming the selector part is a subclass selector (not a tag name)
- * so we can prepend the filter id class. If we want to support elements
- * such as `img` or namespaces, we'll need to add a case for that here.
- */
+ // Assuming the selector part is a subclass selector (not a tag name)
+ // so we can prepend the filter id class. If we want to support elements
+ // such as `img` or namespaces, we'll need to add a case for that here.
$selectors_scoped[] = '.' . $filter_id . trim( $selector_part );
}
@@ -873,14 +713,8 @@
}
/**
- * Enqueue custom filter assets for the page.
+ * Enqueue custom filter assets for the page. Includes an SVG filter and block CSS declaration.
*
- * Includes an SVG filter and block CSS declaration.
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param string $filter_id The filter ID. e.g. 'wp-duotone-000000-ffffff-2'.
* @param string $duotone_selector The block's duotone selector. e.g. '.wp-block-image img'.
* @param string $filter_value The filter CSS value. e.g. 'url(#wp-duotone-000000-ffffff-2)' or 'unset'.
@@ -892,14 +726,8 @@
}
/**
- * Enqueue preset assets for the page.
+ * Enqueue preset assets for the page. Includes a CSS custom property, SVG filter, and block CSS declaration.
*
- * Includes a CSS custom property, SVG filter, and block CSS declaration.
- *
- * @internal
- *
- * @since 6.3.0
- *
* @param string $filter_id The filter ID. e.g. 'wp-duotone-blue-orange'.
* @param string $duotone_selector The block's duotone selector. e.g. '.wp-block-image img'.
* @param string $filter_value The filter CSS value. e.g. 'url(#wp-duotone-blue-orange)' or 'unset'.
@@ -908,10 +736,9 @@
$global_styles_presets = self::get_all_global_styles_presets();
if ( ! array_key_exists( $filter_id, $global_styles_presets ) ) {
$error_message = sprintf(
- /* translators: 1: Duotone filter ID, 2: theme.json */
- __( 'The duotone id "%1$s" is not registered in %2$s settings' ),
- $filter_id,
- 'theme.json'
+ /* translators: %s: duotone filter ID */
+ __( 'The duotone id "%s" is not registered in theme.json settings', 'gutenberg' ),
+ $filter_id
);
_doing_it_wrong( __METHOD__, $error_message, '6.3.0' );
return;
@@ -923,17 +750,13 @@
/**
* Registers the style and colors block attributes for block types that support it.
*
- * Block support is added with `supports.filter.duotone` in block.json.
- *
* @since 6.3.0
*
* @param WP_Block_Type $block_type Block Type.
*/
public static function register_duotone_support( $block_type ) {
- /*
- * Previous `color.__experimentalDuotone` support flag is migrated
- * to `filter.duotone` via `block_type_metadata_settings` filter.
- */
+ // Previous `color.__experimentalDuotone` support flag is migrated
+ // to `filter.duotone` via `block_type_metadata_settings` filter.
if ( block_has_support( $block_type, array( 'filter', 'duotone' ), null ) ) {
if ( ! $block_type->attributes ) {
$block_type->attributes = array();
@@ -948,67 +771,20 @@
}
/**
- * Get the CSS selector for a block type.
+ * Get all possible duotone presets from global and theme styles and store as slug => [ colors array ]
+ * We only want to process this one time. On block render we'll access and output only the needed presets for that page.
*
- * This handles selectors defined in `color.__experimentalDuotone` support
- * if `filter.duotone` support is not defined.
- *
- * @internal
* @since 6.3.0
*
- * @param WP_Block_Type $block_type Block type to check for support.
- * @return string|null The CSS selector or null if there is no support.
+ * @return array<string, array<string, string|string[]>> An array of global styles presets, keyed on the filter ID.
*/
- private static function get_selector( $block_type ) {
- if ( ! ( $block_type instanceof WP_Block_Type ) ) {
- return null;
- }
-
- /*
- * Backward compatibility with `supports.color.__experimentalDuotone`
- * is provided via the `block_type_metadata_settings` filter. If
- * `supports.filter.duotone` has not been set and the experimental
- * property has been, the experimental property value is copied into
- * `supports.filter.duotone`.
- */
- $duotone_support = block_has_support( $block_type, array( 'filter', 'duotone' ) );
- if ( ! $duotone_support ) {
- return null;
- }
-
- /*
- * If the experimental duotone support was set, that value is to be
- * treated as a selector and requires scoping.
- */
- $experimental_duotone = $block_type->supports['color']['__experimentalDuotone'] ?? false;
- if ( $experimental_duotone ) {
- $root_selector = wp_get_block_css_selector( $block_type );
- return is_string( $experimental_duotone )
- ? WP_Theme_JSON::scope_selector( $root_selector, $experimental_duotone )
- : $root_selector;
- }
-
- // Regular filter.duotone support uses filter.duotone selectors with fallbacks.
- return wp_get_block_css_selector( $block_type, array( 'filter', 'duotone' ), true );
- }
-
- /**
- * Scrape all possible duotone presets from global and theme styles and
- * store them in self::$global_styles_presets.
- *
- * Used in conjunction with self::render_duotone_support for blocks that
- * use duotone preset filters.
- *
- * @since 6.3.0
- *
- * @return array An array of global styles presets, keyed on the filter ID.
- */
private static function get_all_global_styles_presets() {
if ( isset( self::$global_styles_presets ) ) {
return self::$global_styles_presets;
}
+
// Get the per block settings from the theme.json.
- $tree = wp_get_global_settings();
+ $tree = gutenberg_get_global_settings();
$presets_by_origin = $tree['color']['duotone'] ?? array();
self::$global_styles_presets = array();
@@ -1024,21 +800,32 @@
}
/**
- * Scrape all block names from global styles and store in self::$global_styles_block_names.
+ * Ensure all possible duotone presets are ready.
+ * This function is deprecated, as it's no longer necessary to handle this manually.
+ * It is kept to ensure external users of this method don't break.
*
- * Used in conjunction with self::render_duotone_support to output the
- * duotone filters defined in the theme.json global styles.
+ * @since 6.3.0
+ * @deprecated
+ */
+ public static function set_global_styles_presets() {
+ _deprecated_function( __METHOD__, 'Gutenberg 22.5.0' );
+ self::get_all_global_styles_presets();
+ }
+
+ /**
+ * Scrape all block names from global styles and store in self::$global_styles_block_names
*
* @since 6.3.0
*
- * @return string[] An array of global style block slugs, keyed on the block name.
+ * @return null|array<string, string> An array of global style block slugs, keyed on the block name.
*/
private static function get_all_global_style_block_names() {
if ( isset( self::$global_styles_block_names ) ) {
return self::$global_styles_block_names;
}
+
// Get the per block settings from the theme.json.
- $tree = WP_Theme_JSON_Resolver::get_merged_data();
+ $tree = WP_Theme_JSON_Resolver_Gutenberg::get_merged_data();
$block_nodes = $tree->get_styles_block_nodes();
$theme_json = $tree->get_raw_data();
@@ -1069,15 +856,26 @@
self::$global_styles_block_names[ $block_node['name'] ] = $slug;
}
}
+
return self::$global_styles_block_names;
}
/**
+ * Ensure all possible global style block names are ready.
+ * This function is deprecated, as it's no longer necessary to handle this manually.
+ * It is kept to ensure external users of this method don't break.
+ *
+ * @since 6.3.0
+ * @deprecated
+ */
+ public static function set_global_style_block_names() {
+ _deprecated_function( __METHOD__, 'Gutenberg 22.5.0' );
+ self::get_all_global_style_block_names();
+ }
+
+ /**
* Render out the duotone CSS styles and SVG.
*
- * The hooks self::set_global_style_block_names and self::set_global_styles_presets
- * must be called before this function.
- *
* @since 6.3.0
*
* @param string $block_content Rendered block content.
@@ -1108,12 +906,10 @@
// Generate the pieces needed for rendering a duotone to the page.
if ( $has_duotone_attribute ) {
- /*
- * Possible values for duotone attribute:
- * 1. Array of colors - e.g. array('#000000', '#ffffff').
- * 2. Variable for an existing Duotone preset - e.g. 'var:preset|duotone|blue-orange' or 'var(--wp--preset--duotone--blue-orange)''
- * 3. A CSS string - e.g. 'unset' to remove globally applied duotone.
- */
+ // Possible values for duotone attribute:
+ // 1. Array of colors - e.g. array('#000000', '#ffffff').
+ // 2. Variable for an existing Duotone preset - e.g. 'var:preset|duotone|blue-orange' or 'var(--wp--preset--duotone--blue-orange)''
+ // 3. A CSS string - e.g. 'unset' to remove globally applied duotone.
$duotone_attr = $block['attrs']['style']['color']['duotone'];
$is_preset = is_string( $duotone_attr ) && self::is_preset( $duotone_attr );
@@ -1121,7 +917,6 @@
$is_custom = is_array( $duotone_attr );
if ( $is_preset ) {
-
$slug = self::get_slug_from_attribute( $duotone_attr ); // e.g. 'blue-orange'.
$filter_id = self::get_filter_id( $slug ); // e.g. 'wp-duotone-filter-blue-orange'.
$filter_value = self::get_css_var( $slug ); // e.g. 'var(--wp--preset--duotone--blue-orange)'.
@@ -1159,9 +954,10 @@
// Like the layout hook, this assumes the hook only applies to blocks with a single wrapper.
$tags = new WP_HTML_Tag_Processor( $block_content );
- if ( $tags->next_tag() ) {
+ if ( $tags->next_tag() && isset( $filter_id ) ) {
$tags->add_class( $filter_id );
}
+
return $tags->get_updated_html();
}
@@ -1169,10 +965,10 @@
* Fixes the issue with our generated class name not being added to the block's outer container
* in classic themes due to gutenberg_restore_image_outer_container from layout block supports.
*
- * @since 6.6.0
+ * @since 6.5.0
*
- * @param string $block_content Rendered block content.
- * @return string Filtered block content.
+ * @param string $block_content Rendered block content.
+ * @return string Filtered block content.
*/
public static function restore_image_outer_container( $block_content ) {
if ( wp_theme_has_theme_json() ) {
@@ -1207,13 +1003,11 @@
/**
* Appends the used block duotone filter declarations to the inline block supports CSS.
*
- * Uses the declarations saved in earlier calls to self::enqueue_block_css.
- *
* @since 6.3.0
*/
public static function output_block_styles() {
if ( ! empty( self::$block_css_declarations ) ) {
- wp_style_engine_get_stylesheet_from_css_rules(
+ gutenberg_style_engine_get_stylesheet_from_css_rules(
self::$block_css_declarations,
array(
'context' => 'block-supports',
@@ -1225,8 +1019,6 @@
/**
* Appends the used global style duotone filter presets (CSS custom
* properties) to the inline global styles CSS.
- *
- * Uses the declarations saved in earlier calls to self::enqueue_global_styles_preset.
*
* @since 6.3.0
*/
@@ -1239,9 +1031,6 @@
/**
* Outputs all necessary SVG for duotone filters, CSS for classic themes.
*
- * Uses the declarations saved in earlier calls to self::enqueue_global_styles_preset
- * and self::enqueue_custom_filter.
- *
* @since 6.3.0
*/
public static function output_footer_assets() {
@@ -1257,18 +1046,17 @@
wp_add_inline_style( $style_tag_id, self::get_global_styles_presets( self::$used_global_styles_presets ) );
}
if ( ! empty( self::$block_css_declarations ) ) {
- wp_add_inline_style( $style_tag_id, wp_style_engine_get_stylesheet_from_css_rules( self::$block_css_declarations ) );
+ wp_add_inline_style( $style_tag_id, gutenberg_style_engine_get_stylesheet_from_css_rules( self::$block_css_declarations ) );
}
wp_enqueue_style( $style_tag_id );
}
}
/**
- * Adds the duotone SVGs and CSS custom properties to the editor settings.
+ * Adds the duotone SVGs and CSS custom properties to the editor settings so
+ * they can be pulled in by the EditorStyles component in JS and rendered in
+ * the post editor.
*
- * This allows the properties to be pulled in by the EditorStyles component
- * in JS and rendered in the post editor.
- *
* @since 6.3.0
*
* @param array $settings The block editor settings from the `block_editor_settings_all` filter.
@@ -1286,7 +1074,7 @@
'assets' => self::get_svg_definitions( $global_styles_presets ),
// The 'svgs' type is new in 6.3 and requires the corresponding JS changes in the EditorStyles component to work.
'__unstableType' => 'svgs',
- // These styles not generated by global styles, so this must be false or they will be stripped out in wp_get_block_editor_settings.
+ // These styles not generated by global styles, so this must be false or they will be stripped out in gutenberg_get_block_editor_settings.
'isGlobalStyles' => false,
);
@@ -1295,7 +1083,7 @@
'css' => self::get_global_styles_presets( $global_styles_presets ),
// This must be set and must be something other than 'theme' or they will be stripped out in the post editor <Editor> component.
'__unstableType' => 'presets',
- // These styles are no longer generated by global styles, so this must be false or they will be stripped out in wp_get_block_editor_settings.
+ // These styles are no longer generated by global styles, so this must be false or they will be stripped out in gutenberg_get_block_editor_settings.
'isGlobalStyles' => false,
);
}
@@ -1304,14 +1092,14 @@
}
/**
- * Migrates the experimental duotone support flag to the stabilized location.
+ * Migrate the old experimental duotone support flag to its stabilized location
+ * under `supports.filter.duotone` and sets.
*
- * This moves `supports.color.__experimentalDuotone` to `supports.filter.duotone`.
- *
* @since 6.3.0
*
* @param array $settings Current block type settings.
* @param array $metadata Block metadata as read in via block.json.
+ *
* @return array Filtered block type settings.
*/
public static function migrate_experimental_duotone_support_flag( $settings, $metadata ) {
@@ -1325,16 +1113,53 @@
}
/**
- * Gets the CSS filter property value from a preset.
+ * Returns the prefixed id for the duotone filter for use as a CSS id.
*
- * Exported for the deprecated function wp_get_duotone_filter_id().
+ * Exported for the deprecated function gutenberg_get_duotone_filter_id().
*
- * @internal
+ * @since 6.3.0
+ * @deprecated 6.3.0
*
+ * @param array $preset Duotone preset value as seen in theme.json.
+ * @return string Duotone filter CSS id.
+ */
+ public static function get_filter_id_from_preset( $preset ) {
+ _deprecated_function( __FUNCTION__, '6.3.0' );
+
+ $filter_id = '';
+ if ( isset( $preset['slug'] ) ) {
+ $filter_id = self::get_filter_id( $preset['slug'] );
+ }
+ return $filter_id;
+ }
+
+ /**
+ * Gets the SVG for the duotone filter definition from a preset.
+ *
+ * Exported for the deprecated function gutenberg_get_duotone_filter_property().
+ *
* @since 6.3.0
* @deprecated 6.3.0
*
* @param array $preset The duotone preset.
+ * @return string The SVG for the filter definition.
+ */
+ public static function get_filter_svg_from_preset( $preset ) {
+ _deprecated_function( __FUNCTION__, '6.3.0' );
+
+ $filter_id = self::get_filter_id_from_preset( $preset );
+ return self::get_filter_svg( $filter_id, $preset['colors'] );
+ }
+
+ /**
+ * Gets the CSS filter property value from a preset.
+ *
+ * Exported for the deprecated function gutenberg_get_duotone_filter_id().
+ *
+ * @since 6.3.0
+ * @deprecated 6.3.0
+ *
+ * @param array $preset The duotone preset.
* @return string The CSS filter property value.
*/
public static function get_filter_css_property_value_from_preset( $preset ) {
@@ -1345,7 +1170,6 @@
}
$filter_id = self::get_filter_id_from_preset( $preset );
-
return 'url(#' . $filter_id . ')';
}
}Gemini analysis of WP_Duotone versus WP_Duotone_Gutenberg
Prompt: Please compare src/wp-includes/class-wp-duotone.php with src/wp-content/plugins/gutenbeg/lib/class-wp-duotone-gutenberg.php where the latter is being updated to match the former.
The comparison between wp-includes/class-wp-duotone.php (Core) and wp-content/plugins/gutenberg/lib/class-wp-duotone-gutenberg.php (Gutenberg) reveals several differences, primarily related to class naming, dependencies, and additional compatibility methods in Gutenberg.
1. Structural and Naming Differences
- Class Name: Core uses
WP_Duotone, while Gutenberg usesWP_Duotone_Gutenberg. - Package: Core is tagged
@package WordPress, Gutenberg is@package gutenberg. - Access Level: Core's class docblock specifies
@access private, whereas Gutenberg's specifies@access public. - Internal Tagging: Core uses the
@internaltag on nearly all private and supporting methods; Gutenberg does not.
2. Dependency Differences
Gutenberg uses "Gutenberg-prefixed" versions of Core classes and functions to maintain compatibility or provide experimental enhancements:
WP_Theme_JSONvs.WP_Theme_JSON_GutenbergWP_Theme_JSON_Resolvervs.WP_Theme_JSON_Resolver_Gutenbergwp_get_global_settings()vs.gutenberg_get_global_settings()wp_style_engine_get_stylesheet_from_css_rules()vs.gutenberg_style_engine_get_stylesheet_from_css_rules()
3. Functional Differences
- Extra Deprecated Methods: Gutenberg contains
set_global_styles_presets()andset_global_style_block_names(). These are missing in Core and marked as deprecated in Gutenberg (since "Gutenberg 22.5.0"). - Logic in
render_duotone_support: Gutenberg includes an additionalisset( $filter_id )check:- Core:
if ( $tags->next_tag() ) { $tags->add_class( $filter_id ); } - Gutenberg:
if ( $tags->next_tag() && isset( $filter_id ) ) { $tags->add_class( $filter_id ); }
- Core:
@sinceTags:restore_image_outer_containeris tagged@since 6.6.0in Core but@since 6.5.0in Gutenberg.
4. Documentation and Types
- PHPDoc Types: Gutenberg uses more modern, specific PHPDoc types (e.g.,
?array<string, string>vs. Core's?array). - Translators Comments: Core uses more detailed, numbered translator comments in
get_filter_svg, whereas Gutenberg uses a simpler placeholder format and thegutenbergtext domain. - Hue Parsing: In
colord_parse_hue, Core uses the null coalescing operator ($factor = $angle_units[ $unit ] ?? 1;), whereas Gutenberg uses an explicitif ( ! $factor )check.
5. Method Order
- Core places
get_filter_id_from_presetandget_filter_svg_from_presetin the middle of the class. - Gutenberg groups these deprecated methods at the very end of the file.
Prompt: Does anything look amiss? Anything not updated in the Gutenberg implementation to functionally match what is in the core implementation?
Yes, there are several subtle but noteworthy differences where the Gutenberg implementation (WP_Duotone_Gutenberg) is either behind the Core implementation (WP_Duotone) or inconsistent with it.
1. Robustness Issue: Hue Parsing (Potential Notice)
In the colord_parse_hue method, Core uses the null coalescing operator to handle units gracefully. Gutenberg uses an older pattern that will trigger an Undefined index notice if an unsupported unit (or the default deg which is not in the array) is passed:
- Core (Safe):
$factor = $angle_units[ $unit ] ?? 1;
- Gutenberg (Amiss):
$factor = $angle_units[ $unit ]; // Notice: Undefined index if $unit is not grad/turn/rad if ( ! $factor ) { $factor = 1; }
2. Inconsistent Type Casting: Hex Parsing
In colord_parse_hex, Core explicitly casts base_convert results to (int) for the alpha channel in both Hex4 and Hex8 scenarios. Gutenberg does it for Hex8 but omits it for Hex4, relying on PHP's loose typing for the subsequent division:
- Core (Consistent): Uses
(int)in both cases. - Gutenberg (Inconsistent):
- Hex4:
'a' => 4 === strlen( $hex ) ? round( base_convert(...) / 255, 2 ) : 1, - Hex8:
'a' => 8 === strlen( $hex ) ? round( (int) base_convert(...) / 255, 2 ) : 1,
- Hex4:
3. Localization & Flexibility
Core's translation strings are more robust. They use positional arguments (%1$s) and pass "theme.json" and the setting path as arguments, which makes the strings more reusable and easier to translate without hardcoding file names:
- Core:
__( '"%1$s" in %2$s %3$s is not a hex or rgb string.' ) - Gutenberg:
__( '"%s" in theme.json settings.color.duotone is not a hex or rgb string.', 'gutenberg' )
4. Versioning & Documentation
@sinceMismatch: Therestore_image_outer_containermethod is marked@since 6.6.0in Core but@since 6.5.0in Gutenberg.- Missing Tags: Core uses the
@internaltag on nearly all supporting methods to indicate they aren't part of the public API. Gutenberg omits these tags. - Comments: Core has more detailed block comments explaining logic (e.g., in
get_global_styles_presetsregarding the selector change in 6.6.0), which are missing in Gutenberg.
5. Redundant Logic in render_duotone_support
Gutenberg includes an isset( $filter_id ) check in the final conditional of render_duotone_support. In Core, this check is omitted because the variable is guaranteed to be set if the function hasn't already returned. While not a bug, it's a structural divergence.
6. Method Order
The method order differs significantly. Core keeps the deprecated methods like get_filter_id_from_preset interleaved with the logic they relate to, while Gutenberg moves them to the very end of the class.
Summary
The hue parsing notice is the most significant functional issue. The rest are primarily related to documentation quality, localization best practices, and code consistency.
Prompt: ok, but these may be existing issues. Take a look at #74748 and verify that the changes there are unrelated to the issues you identified
The changes in PR #74748 are indeed unrelated to the functional and stylistic issues I identified. The PR is strictly focused on a performance optimization (lazy loading) and a structural sync of the rendering pipeline, rather than a line-by-line reconciliation of the internal helper methods.
Here is the verification based on the PR's scope versus the issues found:
1. PR Focus: Architectural Lazy Loading
The PR's primary change is moving from eager initialization (on wp_loaded) to lazy loading via getters (get_all_global_styles_presets and get_all_global_style_block_names).
- Verification: The issues I found in
colord_parse_hue(the potential notice) andcolord_parse_hex(the missing cast) are in static helper methods that perform pure math/string parsing. These methods were not the target of the lazy-loading refactor.
2. PR Focus: Rendering Signature Sync
The PR updates the render_duotone_support signature to match Core by accepting the WP_Block_Type object as a third parameter.
- Verification: While this syncs the "entry point" of the feature, it does not address the redundant
isset( $filter_id )check at the end of that same function in Gutenberg, which remains as a minor divergence from the Core logic.
3. PR Focus: Documentation & Types
The PR claims to improve documentation and type checking.
- Verification: The Gutenberg implementation actually has superior PHPDoc types (e.g.,
array<string, string>) compared to Core's genericarray. This confirms the PR's intent was to improve the codebase's modern PHP standards within Gutenberg, but it didn't involve syncing the@internaltags or the@sinceversion numbers (which still lag at 6.5.0 vs 6.6.0).
4. PR Focus: Localization
The PR does not appear to touch the _doing_it_wrong or __ calls.
- Verification: The hardcoded "theme.json" strings I noted in Gutenberg are localized to the
gutenbergdomain. Changing these to match Core's positional placeholder approach (%2$s) would involve changing the translation strings themselves, which is outside the "Performance/Lazy-loading" scope of PR #74748.
Conclusion
The PR is a structural and performance sync, while the issues I identified are implementation details and low-level utility bugs. They exist in parallel to the PR's changes and would require a separate "Clean-up/Utility Sync" to resolve.
|
Sorry for taking so long to reply, @westonruter, I was stuck handling a bunch of unrelated things. Thank you for the review! 🙇 Do you think this is ready to go as-is, or would you like me to spend some time bringing that diff down further? |
|
@sgomes I think it's good to go. |
This updates the pinned commit hash of the Gutenberg repository from `a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd` to `3166ad3c587b4091f77b0e16affeed5762e193f1` (version `22.8.0`). A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd..v22.8.0. The following commits are included: - Add useBlocker to private APIs for enhanced routing control (WordPress/gutenberg#75687) - Add components team as codeowners for components package (WordPress/gutenberg#75641) - DataForm: Fix focus loss and refactor Card layout (WordPress/gutenberg#75689) - Remove IS_GUTENBERG_PLUGIN checks for collaborative editing (WordPress/gutenberg#75699) - RTC: Add cap check for single taxonomy term entities (WordPress/gutenberg#75708) - Only show dot divider for parent selector in top toolbar (WordPress/gutenberg#75710) - Re-enable Font Library e2e tests (WordPress/gutenberg#75712) - Fix flaky Quick Edit e2e test (WordPress/gutenberg#75714) - Post Navigation Link : Migrate to Text-Align Block Support (WordPress/gutenberg#75557) - Add phpMyAdmin support to wp-env Playground runtime (WordPress/gutenberg#75532) - wp-env: Enable pretty permalinks by default in Docker runtime (WordPress/gutenberg#75688) - DataViews: fix spacing for title in patterns page (WordPress/gutenberg#75693) - MediaEdit: Auto-fill columns based on minimum item width (WordPress/gutenberg#75509) - Add Field and Fieldset details tests (WordPress/gutenberg#75696) - UI: Update `@base-ui/react` from 1.0.0 to 1.2.0 (WordPress/gutenberg#75698) - Theme: Add design token for interactive non-link elements (WordPress/gutenberg#75697) - Media: Graduate client-side media processing from experimental (WordPress/gutenberg#75112) - Remove experimental property from Icon block (WordPress/gutenberg#75742) - Real-time collab editing: Fix undo E2E test (WordPress/gutenberg#75740) - Snackbar: Fix scaling issue with snackbars that update their content via a common id (WordPress/gutenberg#75709) - Vips and worker-threads packages: remove private flag so that packages can be published to npm (WordPress/gutenberg#75752) - Update wordpress/vips in root package.json to use a relative path (WordPress/gutenberg#75758) - Fix change-detection and new-post E2E tests after RTC enabled by default (WordPress/gutenberg#75751) - Try fix failing patterns e2e test (WordPress/gutenberg#75759) - Client-side media processing: Disable in Gutenberg just for now (WordPress/gutenberg#75756) - Skip cross origin isolation e2e tests (WordPress/gutenberg#75764) - Post featured image: Simplify background class assignment. (WordPress/gutenberg#75745) - Block Editor: Avoid block removal when calling 'moveBlockToPosition' (WordPress/gutenberg#75728) - Icon: Improve parameter documentation (WordPress/gutenberg#75768) - Query: Remove content role from block (WordPress/gutenberg#75760) - DataViews: Adjust column spacing in `table` layout when no titleField is provided (WordPress/gutenberg#75410) - IconButton: Hide tooltip when truly disabled (WordPress/gutenberg#75754) - `ToggleGroupControl`: Make unselected item color consistent across all variants (WordPress/gutenberg#75737) - Center navigation preview content in preview pane (WordPress/gutenberg#75741) - Real-time collaboration: Fix comment syncing on site editor (WordPress/gutenberg#75746) - Navigation Overlay Close: Set Close as default text, rather than using a placeholder (WordPress/gutenberg#75692) - Components: Refactor ColorPicker to preserve hue/saturation at achromatic colors (WordPress/gutenberg#75493) - Icon-block: fix global-styles selectors (WordPress/gutenberg#75724) - Revert "Try fix failing patterns e2e test (WordPress/gutenberg#75759)" (WordPress/gutenberg#75771) - Theme: Add design token fallback generation (WordPress/gutenberg#75586) - Core Data: Create icons entity (WordPress/gutenberg#75773) - Workflows: Use pull_request_target for cherry-pick workflow (WordPress/gutenberg#75775) - Revert "CI: Use http-get in Storybook check wait-on" (WordPress/gutenberg#75781) - REST API: Make filter_wp_unique_filename() static to match core, plus avoid duplicate routes (WordPress/gutenberg#75782) - Tabs: Remove custom state styling (WordPress/gutenberg#75731) - Sort registry files by handle/ID. (WordPress/gutenberg#75755) - Real-time Collaboration: Bug fix for CRDT user selection and add tests (WordPress/gutenberg#75075) - Post Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75629) - Query Title: Migrate to Text-Align Block Support (WordPress/gutenberg#75802) - Pattern Editing: Fix nested patterns/sections (WordPress/gutenberg#75772) - Add core/icon block to theme.json schema (WordPress/gutenberg#75813) - Changelog: Curate entries for GB 22.6.0 RC1 (WordPress/gutenberg#75738) - QuickEdit: rename status label and remove extra labels in popup (WordPress/gutenberg#75824) - BlockListBlock: fix crash when selectedProps are null (WordPress/gutenberg#75826) - RTC: Updates from backport PR (WordPress/gutenberg#75711) - Merge document meta into state map (WordPress/gutenberg#75830) - NumberControl: merge two state reducers into one (WordPress/gutenberg#75822) - Real-time collaboration: Remove block client IDs from Awareness, fix "Show Template" view (WordPress/gutenberg#75590) - RTC: Fix entity save call / initial persistence. (WordPress/gutenberg#75841) - Fix block editing modes not recomputing when isolated editor value changes (WordPress/gutenberg#75821) - DataViews: Fix search input losing characters during debounce when externally synced (WordPress/gutenberg#75810) - Synced patterns: Fix block editing mode of synced pattern content when nested in an unsynced pattern (WordPress/gutenberg#75818) - Add wp_ prefix to real time collaberation option. (WordPress/gutenberg#75837) - Block Support: Fix custom CSS not saved when style schema is not defined (WordPress/gutenberg#75797) - Site Tagline : Migrate to Text-Align Block Support (WordPress/gutenberg#75690) - Site Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75551) - Try enabling style variation transforms for blocks in contentOnly mode (WordPress/gutenberg#75761) - Fix error when undoing newly added pattern (WordPress/gutenberg#75850) - Block Editor: Invalid block selected style (WordPress/gutenberg#75796) - Add e2e test for sorting patterns (WordPress/gutenberg#75823) - Gallery: Fixes keyboard focus escaping the lightbox overlay when navigating a gallery with Tab/Shift+Tab. (WordPress/gutenberg#75852) - wp-build: Do not remove Core's default script modules registration (WordPress/gutenberg#75705) - Fix: Suppress spinner output when using --json flag in wp-env (WordPress/gutenberg#75743) - Docs: Fix incorrect use of wp_interactivity_state in getServerState example (WordPress/gutenberg#75857) - Env: Improve help screen (WordPress/gutenberg#75783) - iAPI Docs: Introduce reactive vs non-reactive distinction early in the state/context guide (WordPress/gutenberg#75357) - Fix client-side media file naming (WordPress/gutenberg#75817) - Plugin: Include Icons assets in ZIP (WordPress/gutenberg#75866) - Prevent CSS modules in build from breaking Jest tests (WordPress/gutenberg#75792) - Bump the github-actions group across 2 directories with 7 updates (WordPress/gutenberg#75725) - Re-enable client-side media processing (WordPress/gutenberg#75848) - RTC: Fix undefined array_first() call in sync storage (WordPress/gutenberg#75869) - Real-time collaboration: Improve collaboration within the same rich text (WordPress/gutenberg#75703) - Media Thumbnail Field: Optimise image loading (WordPress/gutenberg#75811) - Grid block: Improve Visualizer responsiveness (WordPress/gutenberg#75820) - Custom CSS: Allow defining custom selector for this global styles feature (WordPress/gutenberg#75799) - Fix DataForm card summary vertical alignment (WordPress/gutenberg#75864) - Update README for DataViews, DataForm, Field API (WordPress/gutenberg#75881) - Client Side Media: Add device/browser capability detection (WordPress/gutenberg#75863) - Navigation editing: simplify edit/view buttons (WordPress/gutenberg#75819) - DataViews: Remove menu divider again. (WordPress/gutenberg#75893) - Page List Item: Replace RawHTML with dangerouslySetInnerHTML for label and title (WordPress/gutenberg#75890) - Theme: Add build plugins to inject design token fallbacks (WordPress/gutenberg#75589) - Cover block: Add e2e test coverage for bugfixes (WordPress/gutenberg#75483) - Fix flaky template-revert e2e tests (WordPress/gutenberg#75894) - Accordion: Remove Down Arrow, Up Arrow, Home, End naviagtion (WordPress/gutenberg#75891) - Dialog: Add legacy z-index compatibility (WordPress/gutenberg#75874) - Cover: Replace strpos() with str_contains() for improved readability (WordPress/gutenberg#75907) - Block editor: Force LTR direction in block HTML editing mode (WordPress/gutenberg#75904) - Navigation overlay: Prevent duplicate area registration (WordPress/gutenberg#75906) - RichText: useAnchor: Fix TypeError in virtual element (WordPress/gutenberg#75900) - Navigation: Extract NavigationLinkUI and NavigationListViewHeader into separate files (WordPress/gutenberg#75865) - DataViews: minimize padding for primary action buttons (WordPress/gutenberg#75721) - DataForm: fix label colors (WordPress/gutenberg#75730) - ESLint: Add `no-ds-tokens` rule (WordPress/gutenberg#75872) - Theme: Remove global stylesheet (WordPress/gutenberg#75879) - Automated Testing: Merge reports into HTML artifact (WordPress/gutenberg#75633) - wp-build: Deregister script modules before re-registering (WordPress/gutenberg#75909) - Move WordPress meta key from sync package to core-data (WordPress/gutenberg#75846) - Real-time collaboration: Remove ghost awareness state explicitly when refreshing (WordPress/gutenberg#75883) - Bugfix: Fix casing of getPersistedCRDTDoc (WordPress/gutenberg#75922) - Add: Connectors screen (WordPress/gutenberg#75833) - Real-time collaboration: Expand mergeCrdtBlocks() automated testing (WordPress/gutenberg#75923) - Add previews for style variation transforms (WordPress/gutenberg#75889) - Convert focus on mount hook to TypeScript (WordPress/gutenberg#75442) - Add debug logging to SyncManager (WordPress/gutenberg#75924) - Show transform dropdown previews on focus as well as hover (WordPress/gutenberg#75940) - Custom CSS: Prevent duplicate custom css styles (WordPress/gutenberg#75892) - Docs: Correct parameter name `$content` for query title render function. (WordPress/gutenberg#75945) - DataViews: Avoid flickering while refreshing (WordPress/gutenberg#74572) - Connectors: Add `_ai_` prefix to connector setting names and fix naming inconsistencies (WordPress/gutenberg#75948) - Connectors: Unhook Core callbacks in Gutenberg coexistence (WordPress/gutenberg#75935) - Editor: Remove View dropdown and pinned items from revisions header (WordPress/gutenberg#75951) - Unsynced patterns: Rename 'Disconnect pattern' to 'Detach pattern' in context menu (WordPress/gutenberg#75807) - ui guidelines: add custom properties and disabled state guidance (WordPress/gutenberg#75912) - Fix: Template revisions infinite spinner (WordPress/gutenberg#75953) - Docs: Fix broken link to `autoRegister` block-supports (WordPress/gutenberg#75956) - Add documentation for contentRole and listView block supports (WordPress/gutenberg#75903) - Build: Clean top-level build/ directory during clean:packages (WordPress/gutenberg#75961) - Interactivity Router: fix back and forward navigation after refresh (WordPress/gutenberg#75927) - ESLint: Add no-i18n-in-save rule (WordPress/gutenberg#75617) - Components: Specify line-height to avoid inheriting default values (WordPress/gutenberg#75880) - Real-time collaboration: Fix disconnect dialog on navigate (WordPress/gutenberg#75886) - Navigation: Remove internal 'useNavigationEntities' hook (WordPress/gutenberg#75943) - Directly inject styles in overlay to make styles stay consistently mounted (WordPress/gutenberg#75700) - Real Time Collab: Throttle syncing for inactive tabs. (WordPress/gutenberg#75843) - Content Guidelines: Add experimental REST API and custom post type (WordPress/gutenberg#75164) - Core Data: Simplify actions dispatched by 'canUser' resolver (WordPress/gutenberg#75974) - Pattern Editing: Fix sibling blocks to edited pattern not being disabled (WordPress/gutenberg#75994) - Sync connector PHP behavior with Core backport changes (WordPress/gutenberg#75968) - Use the same context for font library tabs translations (WordPress/gutenberg#75930) - Connectors: Avoid manual string concatenation (WordPress/gutenberg#75997) - DataForm: fix field label for panel (should not be uppercase) (WordPress/gutenberg#75944) - Unify block settings dropdown menu items across list views (WordPress/gutenberg#75979) - Views: add support for more overrides (all developer-defined config) (WordPress/gutenberg#75971) - Preserve note selection on browser tab switch (WordPress/gutenberg#75955) - ESLint: Broaden `no-unknown-ds-tokens` to all strings and catch dynamic construction (WordPress/gutenberg#75905) - Use homeUrl instead of siteUrl for link badge evaluations (WordPress/gutenberg#75978) - Block Editor: Display custom block labels in Block Inspector and List View (WordPress/gutenberg#75607) - DataViews: Fix focus transfer while searching in `list` layout (WordPress/gutenberg#75999) - UI: Add Notice component (WordPress/gutenberg#75981) - Playlist Block: Add WaveformPlayer visualization (WordPress/gutenberg#75203) - DataViews: Right-align `integer` and `number` fields (WordPress/gutenberg#75917) - Navigation Link: Compare internal links by host instead of origin (WordPress/gutenberg#76015) - Bump the github-actions group across 2 directories with 3 updates (WordPress/gutenberg#76006) - Block Supports: Define CSS vars for blocks based on feature selectors (WordPress/gutenberg#75226) - Button: Migrate to width block support (WordPress/gutenberg#74242) - Fix: Skip scaled image sideload for images below big image threshold (WordPress/gutenberg#75990) - ToolsPanel: Remove unnecessary label prop from dropdownMenuProps type (WordPress/gutenberg#76027) - Make inspector style transform previews consistent with toolbar transforms (WordPress/gutenberg#75989) - Fix: Set quality and strip metadata in client-side image resize (WordPress/gutenberg#76029) - Search block: double-encodes apostrophes in the input value (WordPress/gutenberg#76023) - Post Title: Add placeholder attribute (WordPress/gutenberg#76016) - wp-env: Add opt-in --auto-port flag for automatic port selection (WordPress/gutenberg#74472) - RichText: useAnchor: Enable type checking, fix errors (WordPress/gutenberg#75910) - DataForm: Fix `card` layout's toggle button screen reader text (WordPress/gutenberg#76039) - [Real-time Collaboration] Fix sync issue on refresh (WordPress/gutenberg#76017) - RTC: Fix syncing of emoji / surrogate pairs (WordPress/gutenberg#76049) - InputLayout: Replace slot context with data attributes (WordPress/gutenberg#76011) - RTC: Fix stale CRDT document persisted on save (WordPress/gutenberg#75975) - Real-time collaboration: Improve disconnect dialog (WordPress/gutenberg#75970) - Media Notices: Bump global snackbar z-index, re-use global notices for media modal (WordPress/gutenberg#76063) - RTC: Prevent duplicate poll cycles (WordPress/gutenberg#76059) - RTC: Disable multiple collaborators if meta boxes are present (WordPress/gutenberg#75939) - DataViews: Fix filter toggle flickering when there are locked or primary filters (WordPress/gutenberg#75913) - Revert global snackbar z-index bump, implement alternative fix for Media Upload Modal notices (WordPress/gutenberg#76067) - DataViews: Improve UI in `list` layout when we render only title and/or media fields (WordPress/gutenberg#76042) - `Button`: Add `word-break: break-word` (WordPress/gutenberg#76071) - DataForm: Fix text overflow for long unhyphenated text in panel layout (WordPress/gutenberg#76073) - Interactivity: Fix incomplete Window.scheduler type causing TS2430 (WordPress/gutenberg#76070) - Connectors: Dynamically register providers from WP AI Client registry (WordPress/gutenberg#76014) - Remove Core's full-page render interceptors for boot-based pages (WordPress/gutenberg#76036) - PHP-only Blocks: Reflect bound attribute values in inspector controls (WordPress/gutenberg#76040) - Admin UI: Fix type mismatch between Page title and NavigableRegion ariaLabel (WordPress/gutenberg#75899) - Remove unused deps: wordpress/dom, wordpress/theme, wordpress/url (WordPress/gutenberg#76075) - RTC: Fix fallthrough for sync update switch statement (WordPress/gutenberg#76060) - Extract inserter-toggle mixin from duplicated button styles (WordPress/gutenberg#76087) - RTC: Add session activity notifications (WordPress/gutenberg#76065) - DateTimePicker: Fix day text wrapping (WordPress/gutenberg#76084) - iAPI Docs: Add client-side navigation guide under "Core Concepts" (WordPress/gutenberg#75263) - Move block css vars selectors backport changelog to correct WP version (WordPress/gutenberg#76102) - Fix writing flow navigation for annotation style, or any other block with border radius (WordPress/gutenberg#76072) - Block toolbar and context menu: hide pattern actions in Revisions UI (WordPress/gutenberg#76066) - Prevent non-reproducible Sass/CSS builds. (WordPress/gutenberg#76098) - Block toolbar: hide styles dropdown in Revisions UI (WordPress/gutenberg#76119) - Image: Hide 'Set as featured image' for in-editor revisions (WordPress/gutenberg#76123) - Image block: fix lightbox srcset size (WordPress/gutenberg#76092) - DataViews: Fix last column classname in `table` layout (WordPress/gutenberg#76133) - Data: Update documentation for global 'dispatch' and 'select' methods (WordPress/gutenberg#76134) - Connectors: Gate unavailable install actions behind install capability (WordPress/gutenberg#75980) - Auto Cherry-Pick: Fix race condition by using pull_request_target closed event (WordPress/gutenberg#76083) - build: Exclude experimental pages from Core builds (WordPress/gutenberg#76038) - Playlist: Move getTrackAttributes to utils (WordPress/gutenberg#76096) - HTML & Shortcode: Disable viewport visibility support (WordPress/gutenberg#76138) - Navigation: Allow creating new links in site editor sidebar List View (WordPress/gutenberg#75918) - DataForm: Consolidate `date` and `datetime` input placement (WordPress/gutenberg#76136) - Remove `! function_exists()` checks from PHP templates (WordPress/gutenberg#76062) - Playlist: Clip content to respect border-radius (WordPress/gutenberg#76146) - Connectors: Update page identifier to options-connectors (WordPress/gutenberg#76142) - RTC: Verify client ID to avoid awareness mutation (WordPress/gutenberg#76056) - Move backport changelog PR for Gutenberg WordPress/gutenberg#75746 to correct matching backport PR (WordPress/gutenberg#76154) - Connectors: Align init hook priorities with Core overrides (WordPress/gutenberg#76161) - Icons: Fix incorrect icon slug (WordPress/gutenberg#76074) - Icon Block: Clean up selectors config (WordPress/gutenberg#75786) - Add support for linting annotations and other static analysis workflow improvements (WordPress/gutenberg#76120) - Bump the github-actions group across 2 directories with 1 update (WordPress/gutenberg#76144) - Image: Replace 'getEntityRecordPermissions` with 'canUser' (WordPress/gutenberg#76125) - RTC: Enable RTC by default (WordPress/gutenberg#75739) - Fix backport changelog for WordPress/gutenberg#76060 (WordPress/gutenberg#76174) - Rename and visibility modals: gate shortcuts behind canEditBlock to prevent triggering in revisions UI (WordPress/gutenberg#76168) - Hide template part replace button when viewing revisions (WordPress/gutenberg#76169) - Fix: Block style variations not rendering in Site Editor Patterns page (WordPress/gutenberg#76122) - Content Guidelines: Add UX for site, copy, image, and internal guidelines (WordPress/gutenberg#75420) - Client-side media processing: only use media upload provider when not in preview mode (WordPress/gutenberg#76124) - Notes: Disable for in-editor revisions (WordPress/gutenberg#76180) - Core Data: Support reading revision data in useEntityProp (fixes footnotes in revisions UI) (WordPress/gutenberg#76106) - Client-side media processing: Try plumbing invalidation to the block-editor's mediaUpload onSuccess callback (WordPress/gutenberg#76173) - Interactivity API: Fix router initialization race condition on Safari/Firefox (WordPress/gutenberg#76053) - Connectors: Improve responsive layout on small screens (WordPress/gutenberg#76186) - Interactivity: Fix crypto.randomUUID crash in non-secure contexts (WordPress/gutenberg#76151) - Duotone: lazily load settings (WordPress/gutenberg#74748) - Media: Use Document-Isolation-Policy for cross-origin isolation on Chromium 137+ (WordPress/gutenberg#75991) - DataForm `datetime` control: fix date handling (WordPress/gutenberg#76193) - Field.Label, Fieldset.Legend: Add `visuallyHidden` prop (WordPress/gutenberg#76052) - Extensible Site Editor: Make canvas previews full height (WordPress/gutenberg#76201) - Storybook: Deduplicate injected package stylesheets (WordPress/gutenberg#76158) - Temp: Disable RTC in the site editor (WordPress/gutenberg#76223) - Obey undoIgnore flag in editEntityRecord (WordPress/gutenberg#76206) - RTC: Fix `post-editor-template-mode` E2E test (WordPress/gutenberg#76209) - Pattern Editing and Block Fields: Highlight selected block (WordPress/gutenberg#74841) - Menu: Fix `RadioItem` controlled checked state (WordPress/gutenberg#76041) - Revert `word-break: break-word` addition (WordPress/gutenberg#76230) - Fix: QuickEdit: consolidate how "Status > Scheduled" works (WordPress/gutenberg#76129) - Add experiment: render the editor inspector with DataForm (WordPress/gutenberg#76244) - Fields: Hide `scheduledDateField` from the list and filters (WordPress/gutenberg#76247) - DataForm: Add customizable button text to panel modal (WordPress/gutenberg#76099) - Components: Add styles for outside days in Calendar components (WordPress/gutenberg#76199) - Add Site Logo & Icon screen to Design panel (WordPress/gutenberg#76116) - Tooltip: Change default placement from bottom to top (WordPress/gutenberg#76131) - `@wordpress/ui`: add `Card` and `CollapsibleCard` components (WordPress/gutenberg#76252) - Refactor admin-ui Page component to use @wordpress/theme tokens and @wordpress/ui layout primitive (WordPress/gutenberg#75963) - RTC: Fix 'networkidle' and other e2e tests that are flaky (WordPress/gutenberg#76214) - Move site editor preview CSS to boot package (WordPress/gutenberg#76211) - Publish built Gutenberg plugin to the GitHub Container Registry (WordPress/gutenberg#75844) - Scripts: Relax @wordpress/env peer dependency to allow newer versions (WordPress/gutenberg#76192) - Connectors: Improve placeholder text and make it translatable (WordPress/gutenberg#75996) - Block context menu: context menu not closing for disconnecting unsynced pattern menu items (WordPress/gutenberg#75405) - UI Notice: let description and actions span icon column at narrow widths (WordPress/gutenberg#76202) - Convert data package fully to TS (WordPress/gutenberg#76149) - RTC updates: use apiFetch capabilities, allow nonce refresh (WordPress/gutenberg#76283) - Interactivity: Make Window.scheduler required to match DOM lib (WordPress/gutenberg#76271) - fix(block-library): use add_filter for filter hook (WordPress/gutenberg#76297) - Add word-break property, update CHANGELOG, and update snapshots (WordPress/gutenberg#75539) - Storybook: Redesign Icon library page (WordPress/gutenberg#76034) - Connectors: Improve responsive layout for small viewports (WordPress/gutenberg#76231) - Compose: Implement useCopyToClipboard and useCopyOnClick with native clipboard API (WordPress/gutenberg#75723) - theme.json schema: fix pseudo-class definition for button block (WordPress/gutenberg#76272) - Sync some post list changes with Extensible Site Editor (WordPress/gutenberg#76243) - Only run label enforcement workflow on open PRs. (WordPress/gutenberg#76274) - API Fetch: Respect caller-provided Content-Type in httpV1 middleware (WordPress/gutenberg#76285) - Raw handling: fix shortcode conversion when separated by <br /> tags (WordPress/gutenberg#76213) - Navigation block: fix submenu chevron toggle on touch devices (WordPress/gutenberg#76197) - Core Data: Fix 'canUser' returning 'undefined' when the allow header is missing (WordPress/gutenberg#76307) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Update block registration methods in documentation for WordPress 6.8+ (WordPress/gutenberg#76324) - Theme: Document build plugins in README (WordPress/gutenberg#76003) - Block Visibility: Add `fetchpriority=auto` to `IMG` tags in blocks with conditional viewport visibility to prevent potential erroneous high loading priority (WordPress/gutenberg#76302) - Add primitive Text component to @wordpress/ui (WordPress/gutenberg#75870) - Editor: Polish real-time collaboration presence UI and move Avatar to editor package (WordPress/gutenberg#75652) - Navigation: Disable Mobile Menu in Isolated Editor or Site Editor Preview (WordPress/gutenberg#76203) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Use V2 Yjs methods for HTTP Polling (WordPress/gutenberg#76304) - Ensure consistent, repeatable build results when inlining WASM files via `wasmInlinePlugin` (WordPress/gutenberg#76113) - Account `IS_WORDPRESS_CORE` is set. (WordPress/gutenberg#76334) - Navigation Editor: Allow any blocks to be inserted by gating contentOnly insertion rules to section blocks (WordPress/gutenberg#76189) - Add `fetchpriority=low` to `IMG` tags in collapsed Details blocks (WordPress/gutenberg#76269) - Content Guidelines: Add block guidelines management (WordPress/gutenberg#76187) - Connectors: Add logo URL support for custom AI providers (WordPress/gutenberg#76190) - Fields: Add `format` field (WordPress/gutenberg#76308) - Cover Block: Add a playlist parameter to loop YouTube background videos. (WordPress/gutenberg#76004) - Connectors: Memoize getConnectors selector (WordPress/gutenberg#76339) - HTML Block: Fix broken layout (WordPress/gutenberg#76278) - Tests: Skip connector logo URL tests when AI Client is unavailable (WordPress/gutenberg#76343) - Navigation Overlay: Explicitly set fetchpriority for images (WordPress/gutenberg#76208) - Fields: Add post content information field (WordPress/gutenberg#76309) - Core Data: Treat single-item responses specially (WordPress/gutenberg#76318) - Editor canvas iframe: use load event and default body element (WordPress/gutenberg#76314) - Set placeholder to featured image field (WordPress/gutenberg#76342) - Post Excerpt: Migrate to textAlign block support (WordPress/gutenberg#75860) - Add Client-Side Navigation documentation to manifest and table of contents (WordPress/gutenberg#76351) - Connectors: Move API key validation and masking to REST dispatch level (WordPress/gutenberg#76327) - Connectors: Replace apiFetch with core-data store selectors (WordPress/gutenberg#76333) - DataForm: Reduce `panel`'s dialog `min-width` (WordPress/gutenberg#76345) - Do not sync local attributes (WordPress/gutenberg#76267) - Storybook: Add basic accent color guidance. (WordPress/gutenberg#76340) - Navigation link: add support to style current menu item via theme.json (WordPress/gutenberg#75736) - Add `fetchpriority=low` to `IMG` tags in collapsed Accordion Item blocks (WordPress/gutenberg#76336) - Add `Link` primitive to `@wordpress/ui` (WordPress/gutenberg#76013) - wp-build: Stop bundling Core packages, generate prerequisites asset instead (WordPress/gutenberg#75987) - Implement disconnection debounce after initial connection (WordPress/gutenberg#76114) - DataViews Grid and Picker Grid: Add density option for gap between items (WordPress/gutenberg#75887) - Guidelines: Add actions for Import, Export and Revisions of guidelines (WordPress/gutenberg#76155) - Allow Post Content to be edited when 'Show template' is active and Post content is nested in a Template Part (WordPress/gutenberg#76305) - Correct input of setIsLoading (WordPress/gutenberg#76381) - Fix: Document Bar: Back button flickers (WordPress/gutenberg#76320) - RTC: Move event hooks from editor to core-data (WordPress/gutenberg#76358) - Page Parent: Change the default value of 'fieldValue' state (WordPress/gutenberg#76354) - Core Data: Avoid stale values when in autosave payloads (WordPress/gutenberg#76337) - fix(navigation): prevent right-justified submenu overflow in custom overlays (WordPress/gutenberg#76360) - Core Data: Optimize revision selectors (WordPress/gutenberg#76043) - Fix: Block pseudo-state styles incorrectly applied to default state (WordPress/gutenberg#76326) - Add client-side navigation block with interactive features (WordPress/gutenberg#76331) - Connectors: Add empty state when no connectors are registered (WordPress/gutenberg#76375) - Storybook: Change the default font. (WordPress/gutenberg#76366) - CI: Don't build release notes during plugin build workflow for WP Core sync (WordPress/gutenberg#76398) - Add Router type export to @wordpress/route (WordPress/gutenberg#76139) - Implement state UI for pseudo selectors on Global styles (WordPress/gutenberg#75627) - Storybook: Rename "Components (Deprecated)" to "Deprecated" (WordPress/gutenberg#76362) - Connectors: Add connectors registry for extensibility (WordPress/gutenberg#76364) - Icons API: Support searching in labels; extend classes post-7.0 work (WordPress/gutenberg#75878) - RTC: Add collaborator selection highlighting in rich text (WordPress/gutenberg#76107) - Connectors: Add AI Experiments plugin callout with install/activate functionality (WordPress/gutenberg#76379) - Add [Package] UI label to PR labeler config (WordPress/gutenberg#76411) - Sync changes from `wp_enqueue_global_styles()` to Gutenberg override (WordPress/gutenberg#76127) - [RTC] Fix performance regression on post save (WordPress/gutenberg#76370) - Core Data: Add 'supportsPagination' flag for Font Collection entity (WordPress/gutenberg#76404) - E2E Tests: Fix flaky autocomplete and mentions test (WordPress/gutenberg#76407) - Media: Enable AVIF support for client-side uploads (WordPress/gutenberg#76371) - Add backport changelog entry for WordPress/gutenberg#75878 (WordPress/gutenberg#76426) - Editor: Show own presence in collaborative editing sessions (WordPress/gutenberg#76413) - Connectors: Move plugin status computation to script module data (WordPress/gutenberg#76409) - Navigation: Use the shared icon rendering functions for all navigation blocks (WordPress/gutenberg#76372) - Simplify require statements for navigation files (WordPress/gutenberg#76373) - Revisions: Skip rendered fields in REST API responses (WordPress/gutenberg#76347) - E2E Tests: Add connector setup flow tests with test AI provider (WordPress/gutenberg#76433) - Tabs: Restructure Tabs Menu and inner blocks (WordPress/gutenberg#75954) - RTC: Place sync connection modal in front of popover (WordPress/gutenberg#76431) - DataViews: Add border to sticky table headers (WordPress/gutenberg#76396) - Connectors: Sync PHP code with WordPress Core (WordPress/gutenberg#76443) - Disables anchor support for the Page Break block. (WordPress/gutenberg#76434) - WP Admin: Update Connectors screen footer text for consistency. (WordPress/gutenberg#76382) - Show spinner when replacing media via drag-and-drop in image, cover, and media-text blocks (WordPress/gutenberg#76245) - E2E Tests: Add coverage for AI plugin callout banner on Connectors page (WordPress/gutenberg#76432) - Update sync docs (WordPress/gutenberg#75972) - RTC: Add preference for collaborator notifications (WordPress/gutenberg#76460) - Fix "should undo bold" flaky test (WordPress/gutenberg#76464) - Include AI tools disclosure in PR template (WordPress/gutenberg#76425) - TimePicker: Clamp month day to valid day for month (WordPress/gutenberg#76400) - Add isNavigationPostEditorKey symbol to fix menu display context (WordPress/gutenberg#76461) - Fix: update the playlist-track file permissions from 755 to 644 (WordPress/gutenberg#76315) - Theme_JSON: Prevent implicit coercion in `to_ruleset` (WordPress/gutenberg#76392) - CI: Simplify strategy matrix in Build Gutenberg Plugin Zip workflow (WordPress/gutenberg#76435) - Core Data: Fix selectors returning stale results for different 'per_page' queries (WordPress/gutenberg#76422) - Fields: Add support for classic themes (WordPress/gutenberg#76441) - TemplateContentPanel: fix useSelect warning (WordPress/gutenberg#76421) - Tabs: Disable anchor support on Tab Menu Item (WordPress/gutenberg#76442) - Core Data: Fix the list of properties persisted in autosaves (WordPress/gutenberg#76451) - RTC: Fix error when entity record doesn't have 'meta' property (WordPress/gutenberg#76311) - Navigation: Update close button size. (WordPress/gutenberg#76482) - UI/Badge: Add border and neutral-strong background to `none` intent (WordPress/gutenberg#76356) - Theme package: Add surface width design tokens (WordPress/gutenberg#76047) - DataViews: Add spinner in `DataViewsLayout` in initial load of data (WordPress/gutenberg#76486) - Fix: Rewrite the license check scripts to use Node's native module resolution (WordPress/gutenberg#75039) - ESLint: Add `use-recommended-components` rule (WordPress/gutenberg#76222) - Update Node version to v24 for flaky test reporter (WordPress/gutenberg#76492) - ui/Card: increase padding, align with legacy Card (WordPress/gutenberg#76368) - Docs: document controlled/uncontrolled prop naming conventions for `@wordpress/ui` (WordPress/gutenberg#76281) - @wordpress/ui: add Collapsible component (WordPress/gutenberg#76280) - CollapsibleCard: move trigger to the whole header (WordPress/gutenberg#76265) - Link Picker: Use Homepage badge instead of Page if Homepage (WordPress/gutenberg#75929) - RTC: Fix TypeError in areEditorStatesEqual when selection is undefined (WordPress/gutenberg#76163) - Upgrade actionlint and run linting when composite actions are modified (WordPress/gutenberg#76503) - Revisions: use useSubRegistry={false} to fix global store selectors (WordPress/gutenberg#76152) - wp-env: Update JSON Schema with missing properties and add README docs (WordPress/gutenberg#76115) - Patterns: add confirmation dialog before disconnecting/detaching (WordPress/gutenberg#75713) - Page/Post Content Focus Mode: Fix insertion into Post Content block (WordPress/gutenberg#76477) - Remove redundant onNavigateToEntityRecord filter and assignment (WordPress/gutenberg#76523) - Feat: Block Library: Improve the design of MediaControlPreview and MediaControl (WordPress/gutenberg#76430) - Add e2e test for date field in QuickEdit (WordPress/gutenberg#76528) - Fix RTL styling on Connectors, Font Library, and boot-based admin pages (WordPress/gutenberg#76496) - DataViews: Fix layout scrolling in constrained-height containers (WordPress/gutenberg#76453) - Bump the github-actions group across 1 directory with 5 updates (WordPress/gutenberg#76530) - RTC: Auto-register custom taxonomy rest_base values for CRDT sync (WordPress/gutenberg#75983) - Modernize eslint-plugin rule APIs for ESLint v10 compatibility (WordPress/gutenberg#76507) - Remove alexstine from codeowners (WordPress/gutenberg#76551) - RTC: Add a limit for the default provider (WordPress/gutenberg#76437) - Media Upload Modal: Try an uploading state with popover in the footer (WordPress/gutenberg#76228) - Fix RTL styling on AI plugin callout banner (WordPress/gutenberg#76497) - Add command palette trigger button to admin bar (WordPress/gutenberg#75757) - Block Bindings: Remove source items constrained by enums (WordPress/gutenberg#76200) - Connectors: Improve accessibility (WordPress/gutenberg#76456) - Post Date: Migrate to textAlign block support (WordPress/gutenberg#75856) - Dataviews: improve storybook infinite loading (WordPress/gutenberg#76566) - HTML Block: Remove "unsaved changes" check (WordPress/gutenberg#76086) - `CollapsibleCard`: add animations (WordPress/gutenberg#76378) - Theme: Fix tags in Storybook (WordPress/gutenberg#76500) - InputLayout.Slot: Forward className prop (WordPress/gutenberg#76459) - Storybook: Upgrade to 10.2 (WordPress/gutenberg#76403) - UI: Use `--wpds-cursor-control` design token (WordPress/gutenberg#76218) - Media: Add hooks and extension points for client-side media processing (WordPress/gutenberg#74913) - ESLint: Broaden `no-setting-ds-tokens` to all object property keys (WordPress/gutenberg#76212) - Remove manual fallbacks from --wpds-* token usages in boot package (WordPress/gutenberg#76414) - Fix token fallback plugins breaking JS strings with quoted font names (WordPress/gutenberg#76254) - Connectors: Add unregisterConnector and upsert support (WordPress/gutenberg#76541) - Add ExampleApplication story for ThemeProvider to better demonstrate component theme-ability (WordPress/gutenberg#76463) - Admin UI: Add Storybook stories for Breadcrumbs and Page components (WordPress/gutenberg#76467) - RTC: Fix list sidebar reset during real-time collaboration (WordPress/gutenberg#76025) - Collapsible.Card: make contents hidden until found (WordPress/gutenberg#76498) - Adopt surface-width design tokens for Dialog, Notice, and Modal widths (WordPress/gutenberg#76494) - RTC: Fix CRDT serialization of nested RichText attributes (WordPress/gutenberg#76597) - ESLint: Replace eslint-plugin-ssr-friendly with custom rules (WordPress/gutenberg#76508) - Theme: Add `no-token-fallback-values` stylelint rule (WordPress/gutenberg#76415) - ESLint: Add bare token check to `no-unknown-ds-tokens` (WordPress/gutenberg#76210) - RTC: Remove post list lock icon and replace user-specific lock text (WordPress/gutenberg#76322) - Fix HEIC upload error handling and sub-size format (WordPress/gutenberg#76514) - RTC: Fix cursor index sync with rich text formatting (WordPress/gutenberg#76418) - RTC: Allow filtering of `SyncConnectionModal` (WordPress/gutenberg#76554) - RTC: Implement front-end peer limits (WordPress/gutenberg#76565) - Content Guidelines: Rename route and use the right `Notice` component (WordPress/gutenberg#76427) - Core Data: Fix per_page query logic for when offset is present in the query (WordPress/gutenberg#76613) - useMediaQuery: support in-iframe queries via new `WindowContext` (WordPress/gutenberg#76446) - Navigation overlay close button may be displayed twice (WordPress/gutenberg#76585) - Fix script module dequeue race condition (WordPress/gutenberg#76170) - Template field: match exactly the behavior of post template panel (WordPress/gutenberg#76596) - Connectors: Fetch specific plugin instead of all plugins (WordPress/gutenberg#76594) - Admin UI: update font size for title and breadcrumbs to match (WordPress/gutenberg#76452) - Admin UI: Use hasPadding prop in Page stories instead of inline styles (WordPress/gutenberg#76601) - Site Editor > Templates: fix author filter (WordPress/gutenberg#76625) - Site Title Block: Fix preview display (WordPress/gutenberg#76614) - Editor: Fix autosaves for draft and auto-draft posts (WordPress/gutenberg#76624) - Revisions: Show changed block attributes in inspector sidebar (WordPress/gutenberg#76550) - Fix IS_GUTENBERG_PLUGIN env var override in build config (WordPress/gutenberg#76605) - Loosen client-side media processing requirements (WordPress/gutenberg#76616) Props adamsilverstein, jorbin, westonruter, wildworks. Fixes #65555. git-svn-id: https://develop.svn.wordpress.org/trunk@62577 602fd350-edb4-49c9-b593-d223f7449a82
This updates the pinned commit hash of the Gutenberg repository from `a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd` to `3166ad3c587b4091f77b0e16affeed5762e193f1` (version `22.8.0`). A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd..v22.8.0. The following commits are included: - Add useBlocker to private APIs for enhanced routing control (WordPress/gutenberg#75687) - Add components team as codeowners for components package (WordPress/gutenberg#75641) - DataForm: Fix focus loss and refactor Card layout (WordPress/gutenberg#75689) - Remove IS_GUTENBERG_PLUGIN checks for collaborative editing (WordPress/gutenberg#75699) - RTC: Add cap check for single taxonomy term entities (WordPress/gutenberg#75708) - Only show dot divider for parent selector in top toolbar (WordPress/gutenberg#75710) - Re-enable Font Library e2e tests (WordPress/gutenberg#75712) - Fix flaky Quick Edit e2e test (WordPress/gutenberg#75714) - Post Navigation Link : Migrate to Text-Align Block Support (WordPress/gutenberg#75557) - Add phpMyAdmin support to wp-env Playground runtime (WordPress/gutenberg#75532) - wp-env: Enable pretty permalinks by default in Docker runtime (WordPress/gutenberg#75688) - DataViews: fix spacing for title in patterns page (WordPress/gutenberg#75693) - MediaEdit: Auto-fill columns based on minimum item width (WordPress/gutenberg#75509) - Add Field and Fieldset details tests (WordPress/gutenberg#75696) - UI: Update `@base-ui/react` from 1.0.0 to 1.2.0 (WordPress/gutenberg#75698) - Theme: Add design token for interactive non-link elements (WordPress/gutenberg#75697) - Media: Graduate client-side media processing from experimental (WordPress/gutenberg#75112) - Remove experimental property from Icon block (WordPress/gutenberg#75742) - Real-time collab editing: Fix undo E2E test (WordPress/gutenberg#75740) - Snackbar: Fix scaling issue with snackbars that update their content via a common id (WordPress/gutenberg#75709) - Vips and worker-threads packages: remove private flag so that packages can be published to npm (WordPress/gutenberg#75752) - Update wordpress/vips in root package.json to use a relative path (WordPress/gutenberg#75758) - Fix change-detection and new-post E2E tests after RTC enabled by default (WordPress/gutenberg#75751) - Try fix failing patterns e2e test (WordPress/gutenberg#75759) - Client-side media processing: Disable in Gutenberg just for now (WordPress/gutenberg#75756) - Skip cross origin isolation e2e tests (WordPress/gutenberg#75764) - Post featured image: Simplify background class assignment. (WordPress/gutenberg#75745) - Block Editor: Avoid block removal when calling 'moveBlockToPosition' (WordPress/gutenberg#75728) - Icon: Improve parameter documentation (WordPress/gutenberg#75768) - Query: Remove content role from block (WordPress/gutenberg#75760) - DataViews: Adjust column spacing in `table` layout when no titleField is provided (WordPress/gutenberg#75410) - IconButton: Hide tooltip when truly disabled (WordPress/gutenberg#75754) - `ToggleGroupControl`: Make unselected item color consistent across all variants (WordPress/gutenberg#75737) - Center navigation preview content in preview pane (WordPress/gutenberg#75741) - Real-time collaboration: Fix comment syncing on site editor (WordPress/gutenberg#75746) - Navigation Overlay Close: Set Close as default text, rather than using a placeholder (WordPress/gutenberg#75692) - Components: Refactor ColorPicker to preserve hue/saturation at achromatic colors (WordPress/gutenberg#75493) - Icon-block: fix global-styles selectors (WordPress/gutenberg#75724) - Revert "Try fix failing patterns e2e test (WordPress/gutenberg#75759)" (WordPress/gutenberg#75771) - Theme: Add design token fallback generation (WordPress/gutenberg#75586) - Core Data: Create icons entity (WordPress/gutenberg#75773) - Workflows: Use pull_request_target for cherry-pick workflow (WordPress/gutenberg#75775) - Revert "CI: Use http-get in Storybook check wait-on" (WordPress/gutenberg#75781) - REST API: Make filter_wp_unique_filename() static to match core, plus avoid duplicate routes (WordPress/gutenberg#75782) - Tabs: Remove custom state styling (WordPress/gutenberg#75731) - Sort registry files by handle/ID. (WordPress/gutenberg#75755) - Real-time Collaboration: Bug fix for CRDT user selection and add tests (WordPress/gutenberg#75075) - Post Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75629) - Query Title: Migrate to Text-Align Block Support (WordPress/gutenberg#75802) - Pattern Editing: Fix nested patterns/sections (WordPress/gutenberg#75772) - Add core/icon block to theme.json schema (WordPress/gutenberg#75813) - Changelog: Curate entries for GB 22.6.0 RC1 (WordPress/gutenberg#75738) - QuickEdit: rename status label and remove extra labels in popup (WordPress/gutenberg#75824) - BlockListBlock: fix crash when selectedProps are null (WordPress/gutenberg#75826) - RTC: Updates from backport PR (WordPress/gutenberg#75711) - Merge document meta into state map (WordPress/gutenberg#75830) - NumberControl: merge two state reducers into one (WordPress/gutenberg#75822) - Real-time collaboration: Remove block client IDs from Awareness, fix "Show Template" view (WordPress/gutenberg#75590) - RTC: Fix entity save call / initial persistence. (WordPress/gutenberg#75841) - Fix block editing modes not recomputing when isolated editor value changes (WordPress/gutenberg#75821) - DataViews: Fix search input losing characters during debounce when externally synced (WordPress/gutenberg#75810) - Synced patterns: Fix block editing mode of synced pattern content when nested in an unsynced pattern (WordPress/gutenberg#75818) - Add wp_ prefix to real time collaberation option. (WordPress/gutenberg#75837) - Block Support: Fix custom CSS not saved when style schema is not defined (WordPress/gutenberg#75797) - Site Tagline : Migrate to Text-Align Block Support (WordPress/gutenberg#75690) - Site Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75551) - Try enabling style variation transforms for blocks in contentOnly mode (WordPress/gutenberg#75761) - Fix error when undoing newly added pattern (WordPress/gutenberg#75850) - Block Editor: Invalid block selected style (WordPress/gutenberg#75796) - Add e2e test for sorting patterns (WordPress/gutenberg#75823) - Gallery: Fixes keyboard focus escaping the lightbox overlay when navigating a gallery with Tab/Shift+Tab. (WordPress/gutenberg#75852) - wp-build: Do not remove Core's default script modules registration (WordPress/gutenberg#75705) - Fix: Suppress spinner output when using --json flag in wp-env (WordPress/gutenberg#75743) - Docs: Fix incorrect use of wp_interactivity_state in getServerState example (WordPress/gutenberg#75857) - Env: Improve help screen (WordPress/gutenberg#75783) - iAPI Docs: Introduce reactive vs non-reactive distinction early in the state/context guide (WordPress/gutenberg#75357) - Fix client-side media file naming (WordPress/gutenberg#75817) - Plugin: Include Icons assets in ZIP (WordPress/gutenberg#75866) - Prevent CSS modules in build from breaking Jest tests (WordPress/gutenberg#75792) - Bump the github-actions group across 2 directories with 7 updates (WordPress/gutenberg#75725) - Re-enable client-side media processing (WordPress/gutenberg#75848) - RTC: Fix undefined array_first() call in sync storage (WordPress/gutenberg#75869) - Real-time collaboration: Improve collaboration within the same rich text (WordPress/gutenberg#75703) - Media Thumbnail Field: Optimise image loading (WordPress/gutenberg#75811) - Grid block: Improve Visualizer responsiveness (WordPress/gutenberg#75820) - Custom CSS: Allow defining custom selector for this global styles feature (WordPress/gutenberg#75799) - Fix DataForm card summary vertical alignment (WordPress/gutenberg#75864) - Update README for DataViews, DataForm, Field API (WordPress/gutenberg#75881) - Client Side Media: Add device/browser capability detection (WordPress/gutenberg#75863) - Navigation editing: simplify edit/view buttons (WordPress/gutenberg#75819) - DataViews: Remove menu divider again. (WordPress/gutenberg#75893) - Page List Item: Replace RawHTML with dangerouslySetInnerHTML for label and title (WordPress/gutenberg#75890) - Theme: Add build plugins to inject design token fallbacks (WordPress/gutenberg#75589) - Cover block: Add e2e test coverage for bugfixes (WordPress/gutenberg#75483) - Fix flaky template-revert e2e tests (WordPress/gutenberg#75894) - Accordion: Remove Down Arrow, Up Arrow, Home, End naviagtion (WordPress/gutenberg#75891) - Dialog: Add legacy z-index compatibility (WordPress/gutenberg#75874) - Cover: Replace strpos() with str_contains() for improved readability (WordPress/gutenberg#75907) - Block editor: Force LTR direction in block HTML editing mode (WordPress/gutenberg#75904) - Navigation overlay: Prevent duplicate area registration (WordPress/gutenberg#75906) - RichText: useAnchor: Fix TypeError in virtual element (WordPress/gutenberg#75900) - Navigation: Extract NavigationLinkUI and NavigationListViewHeader into separate files (WordPress/gutenberg#75865) - DataViews: minimize padding for primary action buttons (WordPress/gutenberg#75721) - DataForm: fix label colors (WordPress/gutenberg#75730) - ESLint: Add `no-ds-tokens` rule (WordPress/gutenberg#75872) - Theme: Remove global stylesheet (WordPress/gutenberg#75879) - Automated Testing: Merge reports into HTML artifact (WordPress/gutenberg#75633) - wp-build: Deregister script modules before re-registering (WordPress/gutenberg#75909) - Move WordPress meta key from sync package to core-data (WordPress/gutenberg#75846) - Real-time collaboration: Remove ghost awareness state explicitly when refreshing (WordPress/gutenberg#75883) - Bugfix: Fix casing of getPersistedCRDTDoc (WordPress/gutenberg#75922) - Add: Connectors screen (WordPress/gutenberg#75833) - Real-time collaboration: Expand mergeCrdtBlocks() automated testing (WordPress/gutenberg#75923) - Add previews for style variation transforms (WordPress/gutenberg#75889) - Convert focus on mount hook to TypeScript (WordPress/gutenberg#75442) - Add debug logging to SyncManager (WordPress/gutenberg#75924) - Show transform dropdown previews on focus as well as hover (WordPress/gutenberg#75940) - Custom CSS: Prevent duplicate custom css styles (WordPress/gutenberg#75892) - Docs: Correct parameter name `$content` for query title render function. (WordPress/gutenberg#75945) - DataViews: Avoid flickering while refreshing (WordPress/gutenberg#74572) - Connectors: Add `_ai_` prefix to connector setting names and fix naming inconsistencies (WordPress/gutenberg#75948) - Connectors: Unhook Core callbacks in Gutenberg coexistence (WordPress/gutenberg#75935) - Editor: Remove View dropdown and pinned items from revisions header (WordPress/gutenberg#75951) - Unsynced patterns: Rename 'Disconnect pattern' to 'Detach pattern' in context menu (WordPress/gutenberg#75807) - ui guidelines: add custom properties and disabled state guidance (WordPress/gutenberg#75912) - Fix: Template revisions infinite spinner (WordPress/gutenberg#75953) - Docs: Fix broken link to `autoRegister` block-supports (WordPress/gutenberg#75956) - Add documentation for contentRole and listView block supports (WordPress/gutenberg#75903) - Build: Clean top-level build/ directory during clean:packages (WordPress/gutenberg#75961) - Interactivity Router: fix back and forward navigation after refresh (WordPress/gutenberg#75927) - ESLint: Add no-i18n-in-save rule (WordPress/gutenberg#75617) - Components: Specify line-height to avoid inheriting default values (WordPress/gutenberg#75880) - Real-time collaboration: Fix disconnect dialog on navigate (WordPress/gutenberg#75886) - Navigation: Remove internal 'useNavigationEntities' hook (WordPress/gutenberg#75943) - Directly inject styles in overlay to make styles stay consistently mounted (WordPress/gutenberg#75700) - Real Time Collab: Throttle syncing for inactive tabs. (WordPress/gutenberg#75843) - Content Guidelines: Add experimental REST API and custom post type (WordPress/gutenberg#75164) - Core Data: Simplify actions dispatched by 'canUser' resolver (WordPress/gutenberg#75974) - Pattern Editing: Fix sibling blocks to edited pattern not being disabled (WordPress/gutenberg#75994) - Sync connector PHP behavior with Core backport changes (WordPress/gutenberg#75968) - Use the same context for font library tabs translations (WordPress/gutenberg#75930) - Connectors: Avoid manual string concatenation (WordPress/gutenberg#75997) - DataForm: fix field label for panel (should not be uppercase) (WordPress/gutenberg#75944) - Unify block settings dropdown menu items across list views (WordPress/gutenberg#75979) - Views: add support for more overrides (all developer-defined config) (WordPress/gutenberg#75971) - Preserve note selection on browser tab switch (WordPress/gutenberg#75955) - ESLint: Broaden `no-unknown-ds-tokens` to all strings and catch dynamic construction (WordPress/gutenberg#75905) - Use homeUrl instead of siteUrl for link badge evaluations (WordPress/gutenberg#75978) - Block Editor: Display custom block labels in Block Inspector and List View (WordPress/gutenberg#75607) - DataViews: Fix focus transfer while searching in `list` layout (WordPress/gutenberg#75999) - UI: Add Notice component (WordPress/gutenberg#75981) - Playlist Block: Add WaveformPlayer visualization (WordPress/gutenberg#75203) - DataViews: Right-align `integer` and `number` fields (WordPress/gutenberg#75917) - Navigation Link: Compare internal links by host instead of origin (WordPress/gutenberg#76015) - Bump the github-actions group across 2 directories with 3 updates (WordPress/gutenberg#76006) - Block Supports: Define CSS vars for blocks based on feature selectors (WordPress/gutenberg#75226) - Button: Migrate to width block support (WordPress/gutenberg#74242) - Fix: Skip scaled image sideload for images below big image threshold (WordPress/gutenberg#75990) - ToolsPanel: Remove unnecessary label prop from dropdownMenuProps type (WordPress/gutenberg#76027) - Make inspector style transform previews consistent with toolbar transforms (WordPress/gutenberg#75989) - Fix: Set quality and strip metadata in client-side image resize (WordPress/gutenberg#76029) - Search block: double-encodes apostrophes in the input value (WordPress/gutenberg#76023) - Post Title: Add placeholder attribute (WordPress/gutenberg#76016) - wp-env: Add opt-in --auto-port flag for automatic port selection (WordPress/gutenberg#74472) - RichText: useAnchor: Enable type checking, fix errors (WordPress/gutenberg#75910) - DataForm: Fix `card` layout's toggle button screen reader text (WordPress/gutenberg#76039) - [Real-time Collaboration] Fix sync issue on refresh (WordPress/gutenberg#76017) - RTC: Fix syncing of emoji / surrogate pairs (WordPress/gutenberg#76049) - InputLayout: Replace slot context with data attributes (WordPress/gutenberg#76011) - RTC: Fix stale CRDT document persisted on save (WordPress/gutenberg#75975) - Real-time collaboration: Improve disconnect dialog (WordPress/gutenberg#75970) - Media Notices: Bump global snackbar z-index, re-use global notices for media modal (WordPress/gutenberg#76063) - RTC: Prevent duplicate poll cycles (WordPress/gutenberg#76059) - RTC: Disable multiple collaborators if meta boxes are present (WordPress/gutenberg#75939) - DataViews: Fix filter toggle flickering when there are locked or primary filters (WordPress/gutenberg#75913) - Revert global snackbar z-index bump, implement alternative fix for Media Upload Modal notices (WordPress/gutenberg#76067) - DataViews: Improve UI in `list` layout when we render only title and/or media fields (WordPress/gutenberg#76042) - `Button`: Add `word-break: break-word` (WordPress/gutenberg#76071) - DataForm: Fix text overflow for long unhyphenated text in panel layout (WordPress/gutenberg#76073) - Interactivity: Fix incomplete Window.scheduler type causing TS2430 (WordPress/gutenberg#76070) - Connectors: Dynamically register providers from WP AI Client registry (WordPress/gutenberg#76014) - Remove Core's full-page render interceptors for boot-based pages (WordPress/gutenberg#76036) - PHP-only Blocks: Reflect bound attribute values in inspector controls (WordPress/gutenberg#76040) - Admin UI: Fix type mismatch between Page title and NavigableRegion ariaLabel (WordPress/gutenberg#75899) - Remove unused deps: wordpress/dom, wordpress/theme, wordpress/url (WordPress/gutenberg#76075) - RTC: Fix fallthrough for sync update switch statement (WordPress/gutenberg#76060) - Extract inserter-toggle mixin from duplicated button styles (WordPress/gutenberg#76087) - RTC: Add session activity notifications (WordPress/gutenberg#76065) - DateTimePicker: Fix day text wrapping (WordPress/gutenberg#76084) - iAPI Docs: Add client-side navigation guide under "Core Concepts" (WordPress/gutenberg#75263) - Move block css vars selectors backport changelog to correct WP version (WordPress/gutenberg#76102) - Fix writing flow navigation for annotation style, or any other block with border radius (WordPress/gutenberg#76072) - Block toolbar and context menu: hide pattern actions in Revisions UI (WordPress/gutenberg#76066) - Prevent non-reproducible Sass/CSS builds. (WordPress/gutenberg#76098) - Block toolbar: hide styles dropdown in Revisions UI (WordPress/gutenberg#76119) - Image: Hide 'Set as featured image' for in-editor revisions (WordPress/gutenberg#76123) - Image block: fix lightbox srcset size (WordPress/gutenberg#76092) - DataViews: Fix last column classname in `table` layout (WordPress/gutenberg#76133) - Data: Update documentation for global 'dispatch' and 'select' methods (WordPress/gutenberg#76134) - Connectors: Gate unavailable install actions behind install capability (WordPress/gutenberg#75980) - Auto Cherry-Pick: Fix race condition by using pull_request_target closed event (WordPress/gutenberg#76083) - build: Exclude experimental pages from Core builds (WordPress/gutenberg#76038) - Playlist: Move getTrackAttributes to utils (WordPress/gutenberg#76096) - HTML & Shortcode: Disable viewport visibility support (WordPress/gutenberg#76138) - Navigation: Allow creating new links in site editor sidebar List View (WordPress/gutenberg#75918) - DataForm: Consolidate `date` and `datetime` input placement (WordPress/gutenberg#76136) - Remove `! function_exists()` checks from PHP templates (WordPress/gutenberg#76062) - Playlist: Clip content to respect border-radius (WordPress/gutenberg#76146) - Connectors: Update page identifier to options-connectors (WordPress/gutenberg#76142) - RTC: Verify client ID to avoid awareness mutation (WordPress/gutenberg#76056) - Move backport changelog PR for Gutenberg WordPress/gutenberg#75746 to correct matching backport PR (WordPress/gutenberg#76154) - Connectors: Align init hook priorities with Core overrides (WordPress/gutenberg#76161) - Icons: Fix incorrect icon slug (WordPress/gutenberg#76074) - Icon Block: Clean up selectors config (WordPress/gutenberg#75786) - Add support for linting annotations and other static analysis workflow improvements (WordPress/gutenberg#76120) - Bump the github-actions group across 2 directories with 1 update (WordPress/gutenberg#76144) - Image: Replace 'getEntityRecordPermissions` with 'canUser' (WordPress/gutenberg#76125) - RTC: Enable RTC by default (WordPress/gutenberg#75739) - Fix backport changelog for WordPress/gutenberg#76060 (WordPress/gutenberg#76174) - Rename and visibility modals: gate shortcuts behind canEditBlock to prevent triggering in revisions UI (WordPress/gutenberg#76168) - Hide template part replace button when viewing revisions (WordPress/gutenberg#76169) - Fix: Block style variations not rendering in Site Editor Patterns page (WordPress/gutenberg#76122) - Content Guidelines: Add UX for site, copy, image, and internal guidelines (WordPress/gutenberg#75420) - Client-side media processing: only use media upload provider when not in preview mode (WordPress/gutenberg#76124) - Notes: Disable for in-editor revisions (WordPress/gutenberg#76180) - Core Data: Support reading revision data in useEntityProp (fixes footnotes in revisions UI) (WordPress/gutenberg#76106) - Client-side media processing: Try plumbing invalidation to the block-editor's mediaUpload onSuccess callback (WordPress/gutenberg#76173) - Interactivity API: Fix router initialization race condition on Safari/Firefox (WordPress/gutenberg#76053) - Connectors: Improve responsive layout on small screens (WordPress/gutenberg#76186) - Interactivity: Fix crypto.randomUUID crash in non-secure contexts (WordPress/gutenberg#76151) - Duotone: lazily load settings (WordPress/gutenberg#74748) - Media: Use Document-Isolation-Policy for cross-origin isolation on Chromium 137+ (WordPress/gutenberg#75991) - DataForm `datetime` control: fix date handling (WordPress/gutenberg#76193) - Field.Label, Fieldset.Legend: Add `visuallyHidden` prop (WordPress/gutenberg#76052) - Extensible Site Editor: Make canvas previews full height (WordPress/gutenberg#76201) - Storybook: Deduplicate injected package stylesheets (WordPress/gutenberg#76158) - Temp: Disable RTC in the site editor (WordPress/gutenberg#76223) - Obey undoIgnore flag in editEntityRecord (WordPress/gutenberg#76206) - RTC: Fix `post-editor-template-mode` E2E test (WordPress/gutenberg#76209) - Pattern Editing and Block Fields: Highlight selected block (WordPress/gutenberg#74841) - Menu: Fix `RadioItem` controlled checked state (WordPress/gutenberg#76041) - Revert `word-break: break-word` addition (WordPress/gutenberg#76230) - Fix: QuickEdit: consolidate how "Status > Scheduled" works (WordPress/gutenberg#76129) - Add experiment: render the editor inspector with DataForm (WordPress/gutenberg#76244) - Fields: Hide `scheduledDateField` from the list and filters (WordPress/gutenberg#76247) - DataForm: Add customizable button text to panel modal (WordPress/gutenberg#76099) - Components: Add styles for outside days in Calendar components (WordPress/gutenberg#76199) - Add Site Logo & Icon screen to Design panel (WordPress/gutenberg#76116) - Tooltip: Change default placement from bottom to top (WordPress/gutenberg#76131) - `@wordpress/ui`: add `Card` and `CollapsibleCard` components (WordPress/gutenberg#76252) - Refactor admin-ui Page component to use @wordpress/theme tokens and @wordpress/ui layout primitive (WordPress/gutenberg#75963) - RTC: Fix 'networkidle' and other e2e tests that are flaky (WordPress/gutenberg#76214) - Move site editor preview CSS to boot package (WordPress/gutenberg#76211) - Publish built Gutenberg plugin to the GitHub Container Registry (WordPress/gutenberg#75844) - Scripts: Relax @wordpress/env peer dependency to allow newer versions (WordPress/gutenberg#76192) - Connectors: Improve placeholder text and make it translatable (WordPress/gutenberg#75996) - Block context menu: context menu not closing for disconnecting unsynced pattern menu items (WordPress/gutenberg#75405) - UI Notice: let description and actions span icon column at narrow widths (WordPress/gutenberg#76202) - Convert data package fully to TS (WordPress/gutenberg#76149) - RTC updates: use apiFetch capabilities, allow nonce refresh (WordPress/gutenberg#76283) - Interactivity: Make Window.scheduler required to match DOM lib (WordPress/gutenberg#76271) - fix(block-library): use add_filter for filter hook (WordPress/gutenberg#76297) - Add word-break property, update CHANGELOG, and update snapshots (WordPress/gutenberg#75539) - Storybook: Redesign Icon library page (WordPress/gutenberg#76034) - Connectors: Improve responsive layout for small viewports (WordPress/gutenberg#76231) - Compose: Implement useCopyToClipboard and useCopyOnClick with native clipboard API (WordPress/gutenberg#75723) - theme.json schema: fix pseudo-class definition for button block (WordPress/gutenberg#76272) - Sync some post list changes with Extensible Site Editor (WordPress/gutenberg#76243) - Only run label enforcement workflow on open PRs. (WordPress/gutenberg#76274) - API Fetch: Respect caller-provided Content-Type in httpV1 middleware (WordPress/gutenberg#76285) - Raw handling: fix shortcode conversion when separated by <br /> tags (WordPress/gutenberg#76213) - Navigation block: fix submenu chevron toggle on touch devices (WordPress/gutenberg#76197) - Core Data: Fix 'canUser' returning 'undefined' when the allow header is missing (WordPress/gutenberg#76307) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Update block registration methods in documentation for WordPress 6.8+ (WordPress/gutenberg#76324) - Theme: Document build plugins in README (WordPress/gutenberg#76003) - Block Visibility: Add `fetchpriority=auto` to `IMG` tags in blocks with conditional viewport visibility to prevent potential erroneous high loading priority (WordPress/gutenberg#76302) - Add primitive Text component to @wordpress/ui (WordPress/gutenberg#75870) - Editor: Polish real-time collaboration presence UI and move Avatar to editor package (WordPress/gutenberg#75652) - Navigation: Disable Mobile Menu in Isolated Editor or Site Editor Preview (WordPress/gutenberg#76203) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Use V2 Yjs methods for HTTP Polling (WordPress/gutenberg#76304) - Ensure consistent, repeatable build results when inlining WASM files via `wasmInlinePlugin` (WordPress/gutenberg#76113) - Account `IS_WORDPRESS_CORE` is set. (WordPress/gutenberg#76334) - Navigation Editor: Allow any blocks to be inserted by gating contentOnly insertion rules to section blocks (WordPress/gutenberg#76189) - Add `fetchpriority=low` to `IMG` tags in collapsed Details blocks (WordPress/gutenberg#76269) - Content Guidelines: Add block guidelines management (WordPress/gutenberg#76187) - Connectors: Add logo URL support for custom AI providers (WordPress/gutenberg#76190) - Fields: Add `format` field (WordPress/gutenberg#76308) - Cover Block: Add a playlist parameter to loop YouTube background videos. (WordPress/gutenberg#76004) - Connectors: Memoize getConnectors selector (WordPress/gutenberg#76339) - HTML Block: Fix broken layout (WordPress/gutenberg#76278) - Tests: Skip connector logo URL tests when AI Client is unavailable (WordPress/gutenberg#76343) - Navigation Overlay: Explicitly set fetchpriority for images (WordPress/gutenberg#76208) - Fields: Add post content information field (WordPress/gutenberg#76309) - Core Data: Treat single-item responses specially (WordPress/gutenberg#76318) - Editor canvas iframe: use load event and default body element (WordPress/gutenberg#76314) - Set placeholder to featured image field (WordPress/gutenberg#76342) - Post Excerpt: Migrate to textAlign block support (WordPress/gutenberg#75860) - Add Client-Side Navigation documentation to manifest and table of contents (WordPress/gutenberg#76351) - Connectors: Move API key validation and masking to REST dispatch level (WordPress/gutenberg#76327) - Connectors: Replace apiFetch with core-data store selectors (WordPress/gutenberg#76333) - DataForm: Reduce `panel`'s dialog `min-width` (WordPress/gutenberg#76345) - Do not sync local attributes (WordPress/gutenberg#76267) - Storybook: Add basic accent color guidance. (WordPress/gutenberg#76340) - Navigation link: add support to style current menu item via theme.json (WordPress/gutenberg#75736) - Add `fetchpriority=low` to `IMG` tags in collapsed Accordion Item blocks (WordPress/gutenberg#76336) - Add `Link` primitive to `@wordpress/ui` (WordPress/gutenberg#76013) - wp-build: Stop bundling Core packages, generate prerequisites asset instead (WordPress/gutenberg#75987) - Implement disconnection debounce after initial connection (WordPress/gutenberg#76114) - DataViews Grid and Picker Grid: Add density option for gap between items (WordPress/gutenberg#75887) - Guidelines: Add actions for Import, Export and Revisions of guidelines (WordPress/gutenberg#76155) - Allow Post Content to be edited when 'Show template' is active and Post content is nested in a Template Part (WordPress/gutenberg#76305) - Correct input of setIsLoading (WordPress/gutenberg#76381) - Fix: Document Bar: Back button flickers (WordPress/gutenberg#76320) - RTC: Move event hooks from editor to core-data (WordPress/gutenberg#76358) - Page Parent: Change the default value of 'fieldValue' state (WordPress/gutenberg#76354) - Core Data: Avoid stale values when in autosave payloads (WordPress/gutenberg#76337) - fix(navigation): prevent right-justified submenu overflow in custom overlays (WordPress/gutenberg#76360) - Core Data: Optimize revision selectors (WordPress/gutenberg#76043) - Fix: Block pseudo-state styles incorrectly applied to default state (WordPress/gutenberg#76326) - Add client-side navigation block with interactive features (WordPress/gutenberg#76331) - Connectors: Add empty state when no connectors are registered (WordPress/gutenberg#76375) - Storybook: Change the default font. (WordPress/gutenberg#76366) - CI: Don't build release notes during plugin build workflow for WP Core sync (WordPress/gutenberg#76398) - Add Router type export to @wordpress/route (WordPress/gutenberg#76139) - Implement state UI for pseudo selectors on Global styles (WordPress/gutenberg#75627) - Storybook: Rename "Components (Deprecated)" to "Deprecated" (WordPress/gutenberg#76362) - Connectors: Add connectors registry for extensibility (WordPress/gutenberg#76364) - Icons API: Support searching in labels; extend classes post-7.0 work (WordPress/gutenberg#75878) - RTC: Add collaborator selection highlighting in rich text (WordPress/gutenberg#76107) - Connectors: Add AI Experiments plugin callout with install/activate functionality (WordPress/gutenberg#76379) - Add [Package] UI label to PR labeler config (WordPress/gutenberg#76411) - Sync changes from `wp_enqueue_global_styles()` to Gutenberg override (WordPress/gutenberg#76127) - [RTC] Fix performance regression on post save (WordPress/gutenberg#76370) - Core Data: Add 'supportsPagination' flag for Font Collection entity (WordPress/gutenberg#76404) - E2E Tests: Fix flaky autocomplete and mentions test (WordPress/gutenberg#76407) - Media: Enable AVIF support for client-side uploads (WordPress/gutenberg#76371) - Add backport changelog entry for WordPress/gutenberg#75878 (WordPress/gutenberg#76426) - Editor: Show own presence in collaborative editing sessions (WordPress/gutenberg#76413) - Connectors: Move plugin status computation to script module data (WordPress/gutenberg#76409) - Navigation: Use the shared icon rendering functions for all navigation blocks (WordPress/gutenberg#76372) - Simplify require statements for navigation files (WordPress/gutenberg#76373) - Revisions: Skip rendered fields in REST API responses (WordPress/gutenberg#76347) - E2E Tests: Add connector setup flow tests with test AI provider (WordPress/gutenberg#76433) - Tabs: Restructure Tabs Menu and inner blocks (WordPress/gutenberg#75954) - RTC: Place sync connection modal in front of popover (WordPress/gutenberg#76431) - DataViews: Add border to sticky table headers (WordPress/gutenberg#76396) - Connectors: Sync PHP code with WordPress Core (WordPress/gutenberg#76443) - Disables anchor support for the Page Break block. (WordPress/gutenberg#76434) - WP Admin: Update Connectors screen footer text for consistency. (WordPress/gutenberg#76382) - Show spinner when replacing media via drag-and-drop in image, cover, and media-text blocks (WordPress/gutenberg#76245) - E2E Tests: Add coverage for AI plugin callout banner on Connectors page (WordPress/gutenberg#76432) - Update sync docs (WordPress/gutenberg#75972) - RTC: Add preference for collaborator notifications (WordPress/gutenberg#76460) - Fix "should undo bold" flaky test (WordPress/gutenberg#76464) - Include AI tools disclosure in PR template (WordPress/gutenberg#76425) - TimePicker: Clamp month day to valid day for month (WordPress/gutenberg#76400) - Add isNavigationPostEditorKey symbol to fix menu display context (WordPress/gutenberg#76461) - Fix: update the playlist-track file permissions from 755 to 644 (WordPress/gutenberg#76315) - Theme_JSON: Prevent implicit coercion in `to_ruleset` (WordPress/gutenberg#76392) - CI: Simplify strategy matrix in Build Gutenberg Plugin Zip workflow (WordPress/gutenberg#76435) - Core Data: Fix selectors returning stale results for different 'per_page' queries (WordPress/gutenberg#76422) - Fields: Add support for classic themes (WordPress/gutenberg#76441) - TemplateContentPanel: fix useSelect warning (WordPress/gutenberg#76421) - Tabs: Disable anchor support on Tab Menu Item (WordPress/gutenberg#76442) - Core Data: Fix the list of properties persisted in autosaves (WordPress/gutenberg#76451) - RTC: Fix error when entity record doesn't have 'meta' property (WordPress/gutenberg#76311) - Navigation: Update close button size. (WordPress/gutenberg#76482) - UI/Badge: Add border and neutral-strong background to `none` intent (WordPress/gutenberg#76356) - Theme package: Add surface width design tokens (WordPress/gutenberg#76047) - DataViews: Add spinner in `DataViewsLayout` in initial load of data (WordPress/gutenberg#76486) - Fix: Rewrite the license check scripts to use Node's native module resolution (WordPress/gutenberg#75039) - ESLint: Add `use-recommended-components` rule (WordPress/gutenberg#76222) - Update Node version to v24 for flaky test reporter (WordPress/gutenberg#76492) - ui/Card: increase padding, align with legacy Card (WordPress/gutenberg#76368) - Docs: document controlled/uncontrolled prop naming conventions for `@wordpress/ui` (WordPress/gutenberg#76281) - @wordpress/ui: add Collapsible component (WordPress/gutenberg#76280) - CollapsibleCard: move trigger to the whole header (WordPress/gutenberg#76265) - Link Picker: Use Homepage badge instead of Page if Homepage (WordPress/gutenberg#75929) - RTC: Fix TypeError in areEditorStatesEqual when selection is undefined (WordPress/gutenberg#76163) - Upgrade actionlint and run linting when composite actions are modified (WordPress/gutenberg#76503) - Revisions: use useSubRegistry={false} to fix global store selectors (WordPress/gutenberg#76152) - wp-env: Update JSON Schema with missing properties and add README docs (WordPress/gutenberg#76115) - Patterns: add confirmation dialog before disconnecting/detaching (WordPress/gutenberg#75713) - Page/Post Content Focus Mode: Fix insertion into Post Content block (WordPress/gutenberg#76477) - Remove redundant onNavigateToEntityRecord filter and assignment (WordPress/gutenberg#76523) - Feat: Block Library: Improve the design of MediaControlPreview and MediaControl (WordPress/gutenberg#76430) - Add e2e test for date field in QuickEdit (WordPress/gutenberg#76528) - Fix RTL styling on Connectors, Font Library, and boot-based admin pages (WordPress/gutenberg#76496) - DataViews: Fix layout scrolling in constrained-height containers (WordPress/gutenberg#76453) - Bump the github-actions group across 1 directory with 5 updates (WordPress/gutenberg#76530) - RTC: Auto-register custom taxonomy rest_base values for CRDT sync (WordPress/gutenberg#75983) - Modernize eslint-plugin rule APIs for ESLint v10 compatibility (WordPress/gutenberg#76507) - Remove alexstine from codeowners (WordPress/gutenberg#76551) - RTC: Add a limit for the default provider (WordPress/gutenberg#76437) - Media Upload Modal: Try an uploading state with popover in the footer (WordPress/gutenberg#76228) - Fix RTL styling on AI plugin callout banner (WordPress/gutenberg#76497) - Add command palette trigger button to admin bar (WordPress/gutenberg#75757) - Block Bindings: Remove source items constrained by enums (WordPress/gutenberg#76200) - Connectors: Improve accessibility (WordPress/gutenberg#76456) - Post Date: Migrate to textAlign block support (WordPress/gutenberg#75856) - Dataviews: improve storybook infinite loading (WordPress/gutenberg#76566) - HTML Block: Remove "unsaved changes" check (WordPress/gutenberg#76086) - `CollapsibleCard`: add animations (WordPress/gutenberg#76378) - Theme: Fix tags in Storybook (WordPress/gutenberg#76500) - InputLayout.Slot: Forward className prop (WordPress/gutenberg#76459) - Storybook: Upgrade to 10.2 (WordPress/gutenberg#76403) - UI: Use `--wpds-cursor-control` design token (WordPress/gutenberg#76218) - Media: Add hooks and extension points for client-side media processing (WordPress/gutenberg#74913) - ESLint: Broaden `no-setting-ds-tokens` to all object property keys (WordPress/gutenberg#76212) - Remove manual fallbacks from --wpds-* token usages in boot package (WordPress/gutenberg#76414) - Fix token fallback plugins breaking JS strings with quoted font names (WordPress/gutenberg#76254) - Connectors: Add unregisterConnector and upsert support (WordPress/gutenberg#76541) - Add ExampleApplication story for ThemeProvider to better demonstrate component theme-ability (WordPress/gutenberg#76463) - Admin UI: Add Storybook stories for Breadcrumbs and Page components (WordPress/gutenberg#76467) - RTC: Fix list sidebar reset during real-time collaboration (WordPress/gutenberg#76025) - Collapsible.Card: make contents hidden until found (WordPress/gutenberg#76498) - Adopt surface-width design tokens for Dialog, Notice, and Modal widths (WordPress/gutenberg#76494) - RTC: Fix CRDT serialization of nested RichText attributes (WordPress/gutenberg#76597) - ESLint: Replace eslint-plugin-ssr-friendly with custom rules (WordPress/gutenberg#76508) - Theme: Add `no-token-fallback-values` stylelint rule (WordPress/gutenberg#76415) - ESLint: Add bare token check to `no-unknown-ds-tokens` (WordPress/gutenberg#76210) - RTC: Remove post list lock icon and replace user-specific lock text (WordPress/gutenberg#76322) - Fix HEIC upload error handling and sub-size format (WordPress/gutenberg#76514) - RTC: Fix cursor index sync with rich text formatting (WordPress/gutenberg#76418) - RTC: Allow filtering of `SyncConnectionModal` (WordPress/gutenberg#76554) - RTC: Implement front-end peer limits (WordPress/gutenberg#76565) - Content Guidelines: Rename route and use the right `Notice` component (WordPress/gutenberg#76427) - Core Data: Fix per_page query logic for when offset is present in the query (WordPress/gutenberg#76613) - useMediaQuery: support in-iframe queries via new `WindowContext` (WordPress/gutenberg#76446) - Navigation overlay close button may be displayed twice (WordPress/gutenberg#76585) - Fix script module dequeue race condition (WordPress/gutenberg#76170) - Template field: match exactly the behavior of post template panel (WordPress/gutenberg#76596) - Connectors: Fetch specific plugin instead of all plugins (WordPress/gutenberg#76594) - Admin UI: update font size for title and breadcrumbs to match (WordPress/gutenberg#76452) - Admin UI: Use hasPadding prop in Page stories instead of inline styles (WordPress/gutenberg#76601) - Site Editor > Templates: fix author filter (WordPress/gutenberg#76625) - Site Title Block: Fix preview display (WordPress/gutenberg#76614) - Editor: Fix autosaves for draft and auto-draft posts (WordPress/gutenberg#76624) - Revisions: Show changed block attributes in inspector sidebar (WordPress/gutenberg#76550) - Fix IS_GUTENBERG_PLUGIN env var override in build config (WordPress/gutenberg#76605) - Loosen client-side media processing requirements (WordPress/gutenberg#76616) Props adamsilverstein, jorbin, westonruter, wildworks. Fixes #65555. Built from https://develop.svn.wordpress.org/trunk@62577 git-svn-id: http://core.svn.wordpress.org/trunk@61857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This updates the pinned commit hash of the Gutenberg repository from `a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd` to `3166ad3c587b4091f77b0e16affeed5762e193f1` (version `22.8.0`). A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd..v22.8.0. The following commits are included: - Add useBlocker to private APIs for enhanced routing control (WordPress/gutenberg#75687) - Add components team as codeowners for components package (WordPress/gutenberg#75641) - DataForm: Fix focus loss and refactor Card layout (WordPress/gutenberg#75689) - Remove IS_GUTENBERG_PLUGIN checks for collaborative editing (WordPress/gutenberg#75699) - RTC: Add cap check for single taxonomy term entities (WordPress/gutenberg#75708) - Only show dot divider for parent selector in top toolbar (WordPress/gutenberg#75710) - Re-enable Font Library e2e tests (WordPress/gutenberg#75712) - Fix flaky Quick Edit e2e test (WordPress/gutenberg#75714) - Post Navigation Link : Migrate to Text-Align Block Support (WordPress/gutenberg#75557) - Add phpMyAdmin support to wp-env Playground runtime (WordPress/gutenberg#75532) - wp-env: Enable pretty permalinks by default in Docker runtime (WordPress/gutenberg#75688) - DataViews: fix spacing for title in patterns page (WordPress/gutenberg#75693) - MediaEdit: Auto-fill columns based on minimum item width (WordPress/gutenberg#75509) - Add Field and Fieldset details tests (WordPress/gutenberg#75696) - UI: Update `@base-ui/react` from 1.0.0 to 1.2.0 (WordPress/gutenberg#75698) - Theme: Add design token for interactive non-link elements (WordPress/gutenberg#75697) - Media: Graduate client-side media processing from experimental (WordPress/gutenberg#75112) - Remove experimental property from Icon block (WordPress/gutenberg#75742) - Real-time collab editing: Fix undo E2E test (WordPress/gutenberg#75740) - Snackbar: Fix scaling issue with snackbars that update their content via a common id (WordPress/gutenberg#75709) - Vips and worker-threads packages: remove private flag so that packages can be published to npm (WordPress/gutenberg#75752) - Update wordpress/vips in root package.json to use a relative path (WordPress/gutenberg#75758) - Fix change-detection and new-post E2E tests after RTC enabled by default (WordPress/gutenberg#75751) - Try fix failing patterns e2e test (WordPress/gutenberg#75759) - Client-side media processing: Disable in Gutenberg just for now (WordPress/gutenberg#75756) - Skip cross origin isolation e2e tests (WordPress/gutenberg#75764) - Post featured image: Simplify background class assignment. (WordPress/gutenberg#75745) - Block Editor: Avoid block removal when calling 'moveBlockToPosition' (WordPress/gutenberg#75728) - Icon: Improve parameter documentation (WordPress/gutenberg#75768) - Query: Remove content role from block (WordPress/gutenberg#75760) - DataViews: Adjust column spacing in `table` layout when no titleField is provided (WordPress/gutenberg#75410) - IconButton: Hide tooltip when truly disabled (WordPress/gutenberg#75754) - `ToggleGroupControl`: Make unselected item color consistent across all variants (WordPress/gutenberg#75737) - Center navigation preview content in preview pane (WordPress/gutenberg#75741) - Real-time collaboration: Fix comment syncing on site editor (WordPress/gutenberg#75746) - Navigation Overlay Close: Set Close as default text, rather than using a placeholder (WordPress/gutenberg#75692) - Components: Refactor ColorPicker to preserve hue/saturation at achromatic colors (WordPress/gutenberg#75493) - Icon-block: fix global-styles selectors (WordPress/gutenberg#75724) - Revert "Try fix failing patterns e2e test (WordPress/gutenberg#75759)" (WordPress/gutenberg#75771) - Theme: Add design token fallback generation (WordPress/gutenberg#75586) - Core Data: Create icons entity (WordPress/gutenberg#75773) - Workflows: Use pull_request_target for cherry-pick workflow (WordPress/gutenberg#75775) - Revert "CI: Use http-get in Storybook check wait-on" (WordPress/gutenberg#75781) - REST API: Make filter_wp_unique_filename() static to match core, plus avoid duplicate routes (WordPress/gutenberg#75782) - Tabs: Remove custom state styling (WordPress/gutenberg#75731) - Sort registry files by handle/ID. (WordPress/gutenberg#75755) - Real-time Collaboration: Bug fix for CRDT user selection and add tests (WordPress/gutenberg#75075) - Post Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75629) - Query Title: Migrate to Text-Align Block Support (WordPress/gutenberg#75802) - Pattern Editing: Fix nested patterns/sections (WordPress/gutenberg#75772) - Add core/icon block to theme.json schema (WordPress/gutenberg#75813) - Changelog: Curate entries for GB 22.6.0 RC1 (WordPress/gutenberg#75738) - QuickEdit: rename status label and remove extra labels in popup (WordPress/gutenberg#75824) - BlockListBlock: fix crash when selectedProps are null (WordPress/gutenberg#75826) - RTC: Updates from backport PR (WordPress/gutenberg#75711) - Merge document meta into state map (WordPress/gutenberg#75830) - NumberControl: merge two state reducers into one (WordPress/gutenberg#75822) - Real-time collaboration: Remove block client IDs from Awareness, fix "Show Template" view (WordPress/gutenberg#75590) - RTC: Fix entity save call / initial persistence. (WordPress/gutenberg#75841) - Fix block editing modes not recomputing when isolated editor value changes (WordPress/gutenberg#75821) - DataViews: Fix search input losing characters during debounce when externally synced (WordPress/gutenberg#75810) - Synced patterns: Fix block editing mode of synced pattern content when nested in an unsynced pattern (WordPress/gutenberg#75818) - Add wp_ prefix to real time collaberation option. (WordPress/gutenberg#75837) - Block Support: Fix custom CSS not saved when style schema is not defined (WordPress/gutenberg#75797) - Site Tagline : Migrate to Text-Align Block Support (WordPress/gutenberg#75690) - Site Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75551) - Try enabling style variation transforms for blocks in contentOnly mode (WordPress/gutenberg#75761) - Fix error when undoing newly added pattern (WordPress/gutenberg#75850) - Block Editor: Invalid block selected style (WordPress/gutenberg#75796) - Add e2e test for sorting patterns (WordPress/gutenberg#75823) - Gallery: Fixes keyboard focus escaping the lightbox overlay when navigating a gallery with Tab/Shift+Tab. (WordPress/gutenberg#75852) - wp-build: Do not remove Core's default script modules registration (WordPress/gutenberg#75705) - Fix: Suppress spinner output when using --json flag in wp-env (WordPress/gutenberg#75743) - Docs: Fix incorrect use of wp_interactivity_state in getServerState example (WordPress/gutenberg#75857) - Env: Improve help screen (WordPress/gutenberg#75783) - iAPI Docs: Introduce reactive vs non-reactive distinction early in the state/context guide (WordPress/gutenberg#75357) - Fix client-side media file naming (WordPress/gutenberg#75817) - Plugin: Include Icons assets in ZIP (WordPress/gutenberg#75866) - Prevent CSS modules in build from breaking Jest tests (WordPress/gutenberg#75792) - Bump the github-actions group across 2 directories with 7 updates (WordPress/gutenberg#75725) - Re-enable client-side media processing (WordPress/gutenberg#75848) - RTC: Fix undefined array_first() call in sync storage (WordPress/gutenberg#75869) - Real-time collaboration: Improve collaboration within the same rich text (WordPress/gutenberg#75703) - Media Thumbnail Field: Optimise image loading (WordPress/gutenberg#75811) - Grid block: Improve Visualizer responsiveness (WordPress/gutenberg#75820) - Custom CSS: Allow defining custom selector for this global styles feature (WordPress/gutenberg#75799) - Fix DataForm card summary vertical alignment (WordPress/gutenberg#75864) - Update README for DataViews, DataForm, Field API (WordPress/gutenberg#75881) - Client Side Media: Add device/browser capability detection (WordPress/gutenberg#75863) - Navigation editing: simplify edit/view buttons (WordPress/gutenberg#75819) - DataViews: Remove menu divider again. (WordPress/gutenberg#75893) - Page List Item: Replace RawHTML with dangerouslySetInnerHTML for label and title (WordPress/gutenberg#75890) - Theme: Add build plugins to inject design token fallbacks (WordPress/gutenberg#75589) - Cover block: Add e2e test coverage for bugfixes (WordPress/gutenberg#75483) - Fix flaky template-revert e2e tests (WordPress/gutenberg#75894) - Accordion: Remove Down Arrow, Up Arrow, Home, End naviagtion (WordPress/gutenberg#75891) - Dialog: Add legacy z-index compatibility (WordPress/gutenberg#75874) - Cover: Replace strpos() with str_contains() for improved readability (WordPress/gutenberg#75907) - Block editor: Force LTR direction in block HTML editing mode (WordPress/gutenberg#75904) - Navigation overlay: Prevent duplicate area registration (WordPress/gutenberg#75906) - RichText: useAnchor: Fix TypeError in virtual element (WordPress/gutenberg#75900) - Navigation: Extract NavigationLinkUI and NavigationListViewHeader into separate files (WordPress/gutenberg#75865) - DataViews: minimize padding for primary action buttons (WordPress/gutenberg#75721) - DataForm: fix label colors (WordPress/gutenberg#75730) - ESLint: Add `no-ds-tokens` rule (WordPress/gutenberg#75872) - Theme: Remove global stylesheet (WordPress/gutenberg#75879) - Automated Testing: Merge reports into HTML artifact (WordPress/gutenberg#75633) - wp-build: Deregister script modules before re-registering (WordPress/gutenberg#75909) - Move WordPress meta key from sync package to core-data (WordPress/gutenberg#75846) - Real-time collaboration: Remove ghost awareness state explicitly when refreshing (WordPress/gutenberg#75883) - Bugfix: Fix casing of getPersistedCRDTDoc (WordPress/gutenberg#75922) - Add: Connectors screen (WordPress/gutenberg#75833) - Real-time collaboration: Expand mergeCrdtBlocks() automated testing (WordPress/gutenberg#75923) - Add previews for style variation transforms (WordPress/gutenberg#75889) - Convert focus on mount hook to TypeScript (WordPress/gutenberg#75442) - Add debug logging to SyncManager (WordPress/gutenberg#75924) - Show transform dropdown previews on focus as well as hover (WordPress/gutenberg#75940) - Custom CSS: Prevent duplicate custom css styles (WordPress/gutenberg#75892) - Docs: Correct parameter name `$content` for query title render function. (WordPress/gutenberg#75945) - DataViews: Avoid flickering while refreshing (WordPress/gutenberg#74572) - Connectors: Add `_ai_` prefix to connector setting names and fix naming inconsistencies (WordPress/gutenberg#75948) - Connectors: Unhook Core callbacks in Gutenberg coexistence (WordPress/gutenberg#75935) - Editor: Remove View dropdown and pinned items from revisions header (WordPress/gutenberg#75951) - Unsynced patterns: Rename 'Disconnect pattern' to 'Detach pattern' in context menu (WordPress/gutenberg#75807) - ui guidelines: add custom properties and disabled state guidance (WordPress/gutenberg#75912) - Fix: Template revisions infinite spinner (WordPress/gutenberg#75953) - Docs: Fix broken link to `autoRegister` block-supports (WordPress/gutenberg#75956) - Add documentation for contentRole and listView block supports (WordPress/gutenberg#75903) - Build: Clean top-level build/ directory during clean:packages (WordPress/gutenberg#75961) - Interactivity Router: fix back and forward navigation after refresh (WordPress/gutenberg#75927) - ESLint: Add no-i18n-in-save rule (WordPress/gutenberg#75617) - Components: Specify line-height to avoid inheriting default values (WordPress/gutenberg#75880) - Real-time collaboration: Fix disconnect dialog on navigate (WordPress/gutenberg#75886) - Navigation: Remove internal 'useNavigationEntities' hook (WordPress/gutenberg#75943) - Directly inject styles in overlay to make styles stay consistently mounted (WordPress/gutenberg#75700) - Real Time Collab: Throttle syncing for inactive tabs. (WordPress/gutenberg#75843) - Content Guidelines: Add experimental REST API and custom post type (WordPress/gutenberg#75164) - Core Data: Simplify actions dispatched by 'canUser' resolver (WordPress/gutenberg#75974) - Pattern Editing: Fix sibling blocks to edited pattern not being disabled (WordPress/gutenberg#75994) - Sync connector PHP behavior with Core backport changes (WordPress/gutenberg#75968) - Use the same context for font library tabs translations (WordPress/gutenberg#75930) - Connectors: Avoid manual string concatenation (WordPress/gutenberg#75997) - DataForm: fix field label for panel (should not be uppercase) (WordPress/gutenberg#75944) - Unify block settings dropdown menu items across list views (WordPress/gutenberg#75979) - Views: add support for more overrides (all developer-defined config) (WordPress/gutenberg#75971) - Preserve note selection on browser tab switch (WordPress/gutenberg#75955) - ESLint: Broaden `no-unknown-ds-tokens` to all strings and catch dynamic construction (WordPress/gutenberg#75905) - Use homeUrl instead of siteUrl for link badge evaluations (WordPress/gutenberg#75978) - Block Editor: Display custom block labels in Block Inspector and List View (WordPress/gutenberg#75607) - DataViews: Fix focus transfer while searching in `list` layout (WordPress/gutenberg#75999) - UI: Add Notice component (WordPress/gutenberg#75981) - Playlist Block: Add WaveformPlayer visualization (WordPress/gutenberg#75203) - DataViews: Right-align `integer` and `number` fields (WordPress/gutenberg#75917) - Navigation Link: Compare internal links by host instead of origin (WordPress/gutenberg#76015) - Bump the github-actions group across 2 directories with 3 updates (WordPress/gutenberg#76006) - Block Supports: Define CSS vars for blocks based on feature selectors (WordPress/gutenberg#75226) - Button: Migrate to width block support (WordPress/gutenberg#74242) - Fix: Skip scaled image sideload for images below big image threshold (WordPress/gutenberg#75990) - ToolsPanel: Remove unnecessary label prop from dropdownMenuProps type (WordPress/gutenberg#76027) - Make inspector style transform previews consistent with toolbar transforms (WordPress/gutenberg#75989) - Fix: Set quality and strip metadata in client-side image resize (WordPress/gutenberg#76029) - Search block: double-encodes apostrophes in the input value (WordPress/gutenberg#76023) - Post Title: Add placeholder attribute (WordPress/gutenberg#76016) - wp-env: Add opt-in --auto-port flag for automatic port selection (WordPress/gutenberg#74472) - RichText: useAnchor: Enable type checking, fix errors (WordPress/gutenberg#75910) - DataForm: Fix `card` layout's toggle button screen reader text (WordPress/gutenberg#76039) - [Real-time Collaboration] Fix sync issue on refresh (WordPress/gutenberg#76017) - RTC: Fix syncing of emoji / surrogate pairs (WordPress/gutenberg#76049) - InputLayout: Replace slot context with data attributes (WordPress/gutenberg#76011) - RTC: Fix stale CRDT document persisted on save (WordPress/gutenberg#75975) - Real-time collaboration: Improve disconnect dialog (WordPress/gutenberg#75970) - Media Notices: Bump global snackbar z-index, re-use global notices for media modal (WordPress/gutenberg#76063) - RTC: Prevent duplicate poll cycles (WordPress/gutenberg#76059) - RTC: Disable multiple collaborators if meta boxes are present (WordPress/gutenberg#75939) - DataViews: Fix filter toggle flickering when there are locked or primary filters (WordPress/gutenberg#75913) - Revert global snackbar z-index bump, implement alternative fix for Media Upload Modal notices (WordPress/gutenberg#76067) - DataViews: Improve UI in `list` layout when we render only title and/or media fields (WordPress/gutenberg#76042) - `Button`: Add `word-break: break-word` (WordPress/gutenberg#76071) - DataForm: Fix text overflow for long unhyphenated text in panel layout (WordPress/gutenberg#76073) - Interactivity: Fix incomplete Window.scheduler type causing TS2430 (WordPress/gutenberg#76070) - Connectors: Dynamically register providers from WP AI Client registry (WordPress/gutenberg#76014) - Remove Core's full-page render interceptors for boot-based pages (WordPress/gutenberg#76036) - PHP-only Blocks: Reflect bound attribute values in inspector controls (WordPress/gutenberg#76040) - Admin UI: Fix type mismatch between Page title and NavigableRegion ariaLabel (WordPress/gutenberg#75899) - Remove unused deps: wordpress/dom, wordpress/theme, wordpress/url (WordPress/gutenberg#76075) - RTC: Fix fallthrough for sync update switch statement (WordPress/gutenberg#76060) - Extract inserter-toggle mixin from duplicated button styles (WordPress/gutenberg#76087) - RTC: Add session activity notifications (WordPress/gutenberg#76065) - DateTimePicker: Fix day text wrapping (WordPress/gutenberg#76084) - iAPI Docs: Add client-side navigation guide under "Core Concepts" (WordPress/gutenberg#75263) - Move block css vars selectors backport changelog to correct WP version (WordPress/gutenberg#76102) - Fix writing flow navigation for annotation style, or any other block with border radius (WordPress/gutenberg#76072) - Block toolbar and context menu: hide pattern actions in Revisions UI (WordPress/gutenberg#76066) - Prevent non-reproducible Sass/CSS builds. (WordPress/gutenberg#76098) - Block toolbar: hide styles dropdown in Revisions UI (WordPress/gutenberg#76119) - Image: Hide 'Set as featured image' for in-editor revisions (WordPress/gutenberg#76123) - Image block: fix lightbox srcset size (WordPress/gutenberg#76092) - DataViews: Fix last column classname in `table` layout (WordPress/gutenberg#76133) - Data: Update documentation for global 'dispatch' and 'select' methods (WordPress/gutenberg#76134) - Connectors: Gate unavailable install actions behind install capability (WordPress/gutenberg#75980) - Auto Cherry-Pick: Fix race condition by using pull_request_target closed event (WordPress/gutenberg#76083) - build: Exclude experimental pages from Core builds (WordPress/gutenberg#76038) - Playlist: Move getTrackAttributes to utils (WordPress/gutenberg#76096) - HTML & Shortcode: Disable viewport visibility support (WordPress/gutenberg#76138) - Navigation: Allow creating new links in site editor sidebar List View (WordPress/gutenberg#75918) - DataForm: Consolidate `date` and `datetime` input placement (WordPress/gutenberg#76136) - Remove `! function_exists()` checks from PHP templates (WordPress/gutenberg#76062) - Playlist: Clip content to respect border-radius (WordPress/gutenberg#76146) - Connectors: Update page identifier to options-connectors (WordPress/gutenberg#76142) - RTC: Verify client ID to avoid awareness mutation (WordPress/gutenberg#76056) - Move backport changelog PR for Gutenberg WordPress/gutenberg#75746 to correct matching backport PR (WordPress/gutenberg#76154) - Connectors: Align init hook priorities with Core overrides (WordPress/gutenberg#76161) - Icons: Fix incorrect icon slug (WordPress/gutenberg#76074) - Icon Block: Clean up selectors config (WordPress/gutenberg#75786) - Add support for linting annotations and other static analysis workflow improvements (WordPress/gutenberg#76120) - Bump the github-actions group across 2 directories with 1 update (WordPress/gutenberg#76144) - Image: Replace 'getEntityRecordPermissions` with 'canUser' (WordPress/gutenberg#76125) - RTC: Enable RTC by default (WordPress/gutenberg#75739) - Fix backport changelog for WordPress/gutenberg#76060 (WordPress/gutenberg#76174) - Rename and visibility modals: gate shortcuts behind canEditBlock to prevent triggering in revisions UI (WordPress/gutenberg#76168) - Hide template part replace button when viewing revisions (WordPress/gutenberg#76169) - Fix: Block style variations not rendering in Site Editor Patterns page (WordPress/gutenberg#76122) - Content Guidelines: Add UX for site, copy, image, and internal guidelines (WordPress/gutenberg#75420) - Client-side media processing: only use media upload provider when not in preview mode (WordPress/gutenberg#76124) - Notes: Disable for in-editor revisions (WordPress/gutenberg#76180) - Core Data: Support reading revision data in useEntityProp (fixes footnotes in revisions UI) (WordPress/gutenberg#76106) - Client-side media processing: Try plumbing invalidation to the block-editor's mediaUpload onSuccess callback (WordPress/gutenberg#76173) - Interactivity API: Fix router initialization race condition on Safari/Firefox (WordPress/gutenberg#76053) - Connectors: Improve responsive layout on small screens (WordPress/gutenberg#76186) - Interactivity: Fix crypto.randomUUID crash in non-secure contexts (WordPress/gutenberg#76151) - Duotone: lazily load settings (WordPress/gutenberg#74748) - Media: Use Document-Isolation-Policy for cross-origin isolation on Chromium 137+ (WordPress/gutenberg#75991) - DataForm `datetime` control: fix date handling (WordPress/gutenberg#76193) - Field.Label, Fieldset.Legend: Add `visuallyHidden` prop (WordPress/gutenberg#76052) - Extensible Site Editor: Make canvas previews full height (WordPress/gutenberg#76201) - Storybook: Deduplicate injected package stylesheets (WordPress/gutenberg#76158) - Temp: Disable RTC in the site editor (WordPress/gutenberg#76223) - Obey undoIgnore flag in editEntityRecord (WordPress/gutenberg#76206) - RTC: Fix `post-editor-template-mode` E2E test (WordPress/gutenberg#76209) - Pattern Editing and Block Fields: Highlight selected block (WordPress/gutenberg#74841) - Menu: Fix `RadioItem` controlled checked state (WordPress/gutenberg#76041) - Revert `word-break: break-word` addition (WordPress/gutenberg#76230) - Fix: QuickEdit: consolidate how "Status > Scheduled" works (WordPress/gutenberg#76129) - Add experiment: render the editor inspector with DataForm (WordPress/gutenberg#76244) - Fields: Hide `scheduledDateField` from the list and filters (WordPress/gutenberg#76247) - DataForm: Add customizable button text to panel modal (WordPress/gutenberg#76099) - Components: Add styles for outside days in Calendar components (WordPress/gutenberg#76199) - Add Site Logo & Icon screen to Design panel (WordPress/gutenberg#76116) - Tooltip: Change default placement from bottom to top (WordPress/gutenberg#76131) - `@wordpress/ui`: add `Card` and `CollapsibleCard` components (WordPress/gutenberg#76252) - Refactor admin-ui Page component to use @wordpress/theme tokens and @wordpress/ui layout primitive (WordPress/gutenberg#75963) - RTC: Fix 'networkidle' and other e2e tests that are flaky (WordPress/gutenberg#76214) - Move site editor preview CSS to boot package (WordPress/gutenberg#76211) - Publish built Gutenberg plugin to the GitHub Container Registry (WordPress/gutenberg#75844) - Scripts: Relax @wordpress/env peer dependency to allow newer versions (WordPress/gutenberg#76192) - Connectors: Improve placeholder text and make it translatable (WordPress/gutenberg#75996) - Block context menu: context menu not closing for disconnecting unsynced pattern menu items (WordPress/gutenberg#75405) - UI Notice: let description and actions span icon column at narrow widths (WordPress/gutenberg#76202) - Convert data package fully to TS (WordPress/gutenberg#76149) - RTC updates: use apiFetch capabilities, allow nonce refresh (WordPress/gutenberg#76283) - Interactivity: Make Window.scheduler required to match DOM lib (WordPress/gutenberg#76271) - fix(block-library): use add_filter for filter hook (WordPress/gutenberg#76297) - Add word-break property, update CHANGELOG, and update snapshots (WordPress/gutenberg#75539) - Storybook: Redesign Icon library page (WordPress/gutenberg#76034) - Connectors: Improve responsive layout for small viewports (WordPress/gutenberg#76231) - Compose: Implement useCopyToClipboard and useCopyOnClick with native clipboard API (WordPress/gutenberg#75723) - theme.json schema: fix pseudo-class definition for button block (WordPress/gutenberg#76272) - Sync some post list changes with Extensible Site Editor (WordPress/gutenberg#76243) - Only run label enforcement workflow on open PRs. (WordPress/gutenberg#76274) - API Fetch: Respect caller-provided Content-Type in httpV1 middleware (WordPress/gutenberg#76285) - Raw handling: fix shortcode conversion when separated by <br /> tags (WordPress/gutenberg#76213) - Navigation block: fix submenu chevron toggle on touch devices (WordPress/gutenberg#76197) - Core Data: Fix 'canUser' returning 'undefined' when the allow header is missing (WordPress/gutenberg#76307) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Update block registration methods in documentation for WordPress 6.8+ (WordPress/gutenberg#76324) - Theme: Document build plugins in README (WordPress/gutenberg#76003) - Block Visibility: Add `fetchpriority=auto` to `IMG` tags in blocks with conditional viewport visibility to prevent potential erroneous high loading priority (WordPress/gutenberg#76302) - Add primitive Text component to @wordpress/ui (WordPress/gutenberg#75870) - Editor: Polish real-time collaboration presence UI and move Avatar to editor package (WordPress/gutenberg#75652) - Navigation: Disable Mobile Menu in Isolated Editor or Site Editor Preview (WordPress/gutenberg#76203) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Use V2 Yjs methods for HTTP Polling (WordPress/gutenberg#76304) - Ensure consistent, repeatable build results when inlining WASM files via `wasmInlinePlugin` (WordPress/gutenberg#76113) - Account `IS_WORDPRESS_CORE` is set. (WordPress/gutenberg#76334) - Navigation Editor: Allow any blocks to be inserted by gating contentOnly insertion rules to section blocks (WordPress/gutenberg#76189) - Add `fetchpriority=low` to `IMG` tags in collapsed Details blocks (WordPress/gutenberg#76269) - Content Guidelines: Add block guidelines management (WordPress/gutenberg#76187) - Connectors: Add logo URL support for custom AI providers (WordPress/gutenberg#76190) - Fields: Add `format` field (WordPress/gutenberg#76308) - Cover Block: Add a playlist parameter to loop YouTube background videos. (WordPress/gutenberg#76004) - Connectors: Memoize getConnectors selector (WordPress/gutenberg#76339) - HTML Block: Fix broken layout (WordPress/gutenberg#76278) - Tests: Skip connector logo URL tests when AI Client is unavailable (WordPress/gutenberg#76343) - Navigation Overlay: Explicitly set fetchpriority for images (WordPress/gutenberg#76208) - Fields: Add post content information field (WordPress/gutenberg#76309) - Core Data: Treat single-item responses specially (WordPress/gutenberg#76318) - Editor canvas iframe: use load event and default body element (WordPress/gutenberg#76314) - Set placeholder to featured image field (WordPress/gutenberg#76342) - Post Excerpt: Migrate to textAlign block support (WordPress/gutenberg#75860) - Add Client-Side Navigation documentation to manifest and table of contents (WordPress/gutenberg#76351) - Connectors: Move API key validation and masking to REST dispatch level (WordPress/gutenberg#76327) - Connectors: Replace apiFetch with core-data store selectors (WordPress/gutenberg#76333) - DataForm: Reduce `panel`'s dialog `min-width` (WordPress/gutenberg#76345) - Do not sync local attributes (WordPress/gutenberg#76267) - Storybook: Add basic accent color guidance. (WordPress/gutenberg#76340) - Navigation link: add support to style current menu item via theme.json (WordPress/gutenberg#75736) - Add `fetchpriority=low` to `IMG` tags in collapsed Accordion Item blocks (WordPress/gutenberg#76336) - Add `Link` primitive to `@wordpress/ui` (WordPress/gutenberg#76013) - wp-build: Stop bundling Core packages, generate prerequisites asset instead (WordPress/gutenberg#75987) - Implement disconnection debounce after initial connection (WordPress/gutenberg#76114) - DataViews Grid and Picker Grid: Add density option for gap between items (WordPress/gutenberg#75887) - Guidelines: Add actions for Import, Export and Revisions of guidelines (WordPress/gutenberg#76155) - Allow Post Content to be edited when 'Show template' is active and Post content is nested in a Template Part (WordPress/gutenberg#76305) - Correct input of setIsLoading (WordPress/gutenberg#76381) - Fix: Document Bar: Back button flickers (WordPress/gutenberg#76320) - RTC: Move event hooks from editor to core-data (WordPress/gutenberg#76358) - Page Parent: Change the default value of 'fieldValue' state (WordPress/gutenberg#76354) - Core Data: Avoid stale values when in autosave payloads (WordPress/gutenberg#76337) - fix(navigation): prevent right-justified submenu overflow in custom overlays (WordPress/gutenberg#76360) - Core Data: Optimize revision selectors (WordPress/gutenberg#76043) - Fix: Block pseudo-state styles incorrectly applied to default state (WordPress/gutenberg#76326) - Add client-side navigation block with interactive features (WordPress/gutenberg#76331) - Connectors: Add empty state when no connectors are registered (WordPress/gutenberg#76375) - Storybook: Change the default font. (WordPress/gutenberg#76366) - CI: Don't build release notes during plugin build workflow for WP Core sync (WordPress/gutenberg#76398) - Add Router type export to @wordpress/route (WordPress/gutenberg#76139) - Implement state UI for pseudo selectors on Global styles (WordPress/gutenberg#75627) - Storybook: Rename "Components (Deprecated)" to "Deprecated" (WordPress/gutenberg#76362) - Connectors: Add connectors registry for extensibility (WordPress/gutenberg#76364) - Icons API: Support searching in labels; extend classes post-7.0 work (WordPress/gutenberg#75878) - RTC: Add collaborator selection highlighting in rich text (WordPress/gutenberg#76107) - Connectors: Add AI Experiments plugin callout with install/activate functionality (WordPress/gutenberg#76379) - Add [Package] UI label to PR labeler config (WordPress/gutenberg#76411) - Sync changes from `wp_enqueue_global_styles()` to Gutenberg override (WordPress/gutenberg#76127) - [RTC] Fix performance regression on post save (WordPress/gutenberg#76370) - Core Data: Add 'supportsPagination' flag for Font Collection entity (WordPress/gutenberg#76404) - E2E Tests: Fix flaky autocomplete and mentions test (WordPress/gutenberg#76407) - Media: Enable AVIF support for client-side uploads (WordPress/gutenberg#76371) - Add backport changelog entry for WordPress/gutenberg#75878 (WordPress/gutenberg#76426) - Editor: Show own presence in collaborative editing sessions (WordPress/gutenberg#76413) - Connectors: Move plugin status computation to script module data (WordPress/gutenberg#76409) - Navigation: Use the shared icon rendering functions for all navigation blocks (WordPress/gutenberg#76372) - Simplify require statements for navigation files (WordPress/gutenberg#76373) - Revisions: Skip rendered fields in REST API responses (WordPress/gutenberg#76347) - E2E Tests: Add connector setup flow tests with test AI provider (WordPress/gutenberg#76433) - Tabs: Restructure Tabs Menu and inner blocks (WordPress/gutenberg#75954) - RTC: Place sync connection modal in front of popover (WordPress/gutenberg#76431) - DataViews: Add border to sticky table headers (WordPress/gutenberg#76396) - Connectors: Sync PHP code with WordPress Core (WordPress/gutenberg#76443) - Disables anchor support for the Page Break block. (WordPress/gutenberg#76434) - WP Admin: Update Connectors screen footer text for consistency. (WordPress/gutenberg#76382) - Show spinner when replacing media via drag-and-drop in image, cover, and media-text blocks (WordPress/gutenberg#76245) - E2E Tests: Add coverage for AI plugin callout banner on Connectors page (WordPress/gutenberg#76432) - Update sync docs (WordPress/gutenberg#75972) - RTC: Add preference for collaborator notifications (WordPress/gutenberg#76460) - Fix "should undo bold" flaky test (WordPress/gutenberg#76464) - Include AI tools disclosure in PR template (WordPress/gutenberg#76425) - TimePicker: Clamp month day to valid day for month (WordPress/gutenberg#76400) - Add isNavigationPostEditorKey symbol to fix menu display context (WordPress/gutenberg#76461) - Fix: update the playlist-track file permissions from 755 to 644 (WordPress/gutenberg#76315) - Theme_JSON: Prevent implicit coercion in `to_ruleset` (WordPress/gutenberg#76392) - CI: Simplify strategy matrix in Build Gutenberg Plugin Zip workflow (WordPress/gutenberg#76435) - Core Data: Fix selectors returning stale results for different 'per_page' queries (WordPress/gutenberg#76422) - Fields: Add support for classic themes (WordPress/gutenberg#76441) - TemplateContentPanel: fix useSelect warning (WordPress/gutenberg#76421) - Tabs: Disable anchor support on Tab Menu Item (WordPress/gutenberg#76442) - Core Data: Fix the list of properties persisted in autosaves (WordPress/gutenberg#76451) - RTC: Fix error when entity record doesn't have 'meta' property (WordPress/gutenberg#76311) - Navigation: Update close button size. (WordPress/gutenberg#76482) - UI/Badge: Add border and neutral-strong background to `none` intent (WordPress/gutenberg#76356) - Theme package: Add surface width design tokens (WordPress/gutenberg#76047) - DataViews: Add spinner in `DataViewsLayout` in initial load of data (WordPress/gutenberg#76486) - Fix: Rewrite the license check scripts to use Node's native module resolution (WordPress/gutenberg#75039) - ESLint: Add `use-recommended-components` rule (WordPress/gutenberg#76222) - Update Node version to v24 for flaky test reporter (WordPress/gutenberg#76492) - ui/Card: increase padding, align with legacy Card (WordPress/gutenberg#76368) - Docs: document controlled/uncontrolled prop naming conventions for `@wordpress/ui` (WordPress/gutenberg#76281) - @wordpress/ui: add Collapsible component (WordPress/gutenberg#76280) - CollapsibleCard: move trigger to the whole header (WordPress/gutenberg#76265) - Link Picker: Use Homepage badge instead of Page if Homepage (WordPress/gutenberg#75929) - RTC: Fix TypeError in areEditorStatesEqual when selection is undefined (WordPress/gutenberg#76163) - Upgrade actionlint and run linting when composite actions are modified (WordPress/gutenberg#76503) - Revisions: use useSubRegistry={false} to fix global store selectors (WordPress/gutenberg#76152) - wp-env: Update JSON Schema with missing properties and add README docs (WordPress/gutenberg#76115) - Patterns: add confirmation dialog before disconnecting/detaching (WordPress/gutenberg#75713) - Page/Post Content Focus Mode: Fix insertion into Post Content block (WordPress/gutenberg#76477) - Remove redundant onNavigateToEntityRecord filter and assignment (WordPress/gutenberg#76523) - Feat: Block Library: Improve the design of MediaControlPreview and MediaControl (WordPress/gutenberg#76430) - Add e2e test for date field in QuickEdit (WordPress/gutenberg#76528) - Fix RTL styling on Connectors, Font Library, and boot-based admin pages (WordPress/gutenberg#76496) - DataViews: Fix layout scrolling in constrained-height containers (WordPress/gutenberg#76453) - Bump the github-actions group across 1 directory with 5 updates (WordPress/gutenberg#76530) - RTC: Auto-register custom taxonomy rest_base values for CRDT sync (WordPress/gutenberg#75983) - Modernize eslint-plugin rule APIs for ESLint v10 compatibility (WordPress/gutenberg#76507) - Remove alexstine from codeowners (WordPress/gutenberg#76551) - RTC: Add a limit for the default provider (WordPress/gutenberg#76437) - Media Upload Modal: Try an uploading state with popover in the footer (WordPress/gutenberg#76228) - Fix RTL styling on AI plugin callout banner (WordPress/gutenberg#76497) - Add command palette trigger button to admin bar (WordPress/gutenberg#75757) - Block Bindings: Remove source items constrained by enums (WordPress/gutenberg#76200) - Connectors: Improve accessibility (WordPress/gutenberg#76456) - Post Date: Migrate to textAlign block support (WordPress/gutenberg#75856) - Dataviews: improve storybook infinite loading (WordPress/gutenberg#76566) - HTML Block: Remove "unsaved changes" check (WordPress/gutenberg#76086) - `CollapsibleCard`: add animations (WordPress/gutenberg#76378) - Theme: Fix tags in Storybook (WordPress/gutenberg#76500) - InputLayout.Slot: Forward className prop (WordPress/gutenberg#76459) - Storybook: Upgrade to 10.2 (WordPress/gutenberg#76403) - UI: Use `--wpds-cursor-control` design token (WordPress/gutenberg#76218) - Media: Add hooks and extension points for client-side media processing (WordPress/gutenberg#74913) - ESLint: Broaden `no-setting-ds-tokens` to all object property keys (WordPress/gutenberg#76212) - Remove manual fallbacks from --wpds-* token usages in boot package (WordPress/gutenberg#76414) - Fix token fallback plugins breaking JS strings with quoted font names (WordPress/gutenberg#76254) - Connectors: Add unregisterConnector and upsert support (WordPress/gutenberg#76541) - Add ExampleApplication story for ThemeProvider to better demonstrate component theme-ability (WordPress/gutenberg#76463) - Admin UI: Add Storybook stories for Breadcrumbs and Page components (WordPress/gutenberg#76467) - RTC: Fix list sidebar reset during real-time collaboration (WordPress/gutenberg#76025) - Collapsible.Card: make contents hidden until found (WordPress/gutenberg#76498) - Adopt surface-width design tokens for Dialog, Notice, and Modal widths (WordPress/gutenberg#76494) - RTC: Fix CRDT serialization of nested RichText attributes (WordPress/gutenberg#76597) - ESLint: Replace eslint-plugin-ssr-friendly with custom rules (WordPress/gutenberg#76508) - Theme: Add `no-token-fallback-values` stylelint rule (WordPress/gutenberg#76415) - ESLint: Add bare token check to `no-unknown-ds-tokens` (WordPress/gutenberg#76210) - RTC: Remove post list lock icon and replace user-specific lock text (WordPress/gutenberg#76322) - Fix HEIC upload error handling and sub-size format (WordPress/gutenberg#76514) - RTC: Fix cursor index sync with rich text formatting (WordPress/gutenberg#76418) - RTC: Allow filtering of `SyncConnectionModal` (WordPress/gutenberg#76554) - RTC: Implement front-end peer limits (WordPress/gutenberg#76565) - Content Guidelines: Rename route and use the right `Notice` component (WordPress/gutenberg#76427) - Core Data: Fix per_page query logic for when offset is present in the query (WordPress/gutenberg#76613) - useMediaQuery: support in-iframe queries via new `WindowContext` (WordPress/gutenberg#76446) - Navigation overlay close button may be displayed twice (WordPress/gutenberg#76585) - Fix script module dequeue race condition (WordPress/gutenberg#76170) - Template field: match exactly the behavior of post template panel (WordPress/gutenberg#76596) - Connectors: Fetch specific plugin instead of all plugins (WordPress/gutenberg#76594) - Admin UI: update font size for title and breadcrumbs to match (WordPress/gutenberg#76452) - Admin UI: Use hasPadding prop in Page stories instead of inline styles (WordPress/gutenberg#76601) - Site Editor > Templates: fix author filter (WordPress/gutenberg#76625) - Site Title Block: Fix preview display (WordPress/gutenberg#76614) - Editor: Fix autosaves for draft and auto-draft posts (WordPress/gutenberg#76624) - Revisions: Show changed block attributes in inspector sidebar (WordPress/gutenberg#76550) - Fix IS_GUTENBERG_PLUGIN env var override in build config (WordPress/gutenberg#76605) - Loosen client-side media processing requirements (WordPress/gutenberg#76616) Props adamsilverstein, jorbin, westonruter, wildworks. Fixes #65555. git-svn-id: https://develop.svn.wordpress.org/trunk@62577 602fd350-edb4-49c9-b593-d223f7449a82
This updates the pinned commit hash of the Gutenberg repository from `a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd` to `3166ad3c587b4091f77b0e16affeed5762e193f1` (version `22.8.0`). A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/a2a354cf35e5b69c3330d6c1cfd42d8dc2efb9fd..v22.8.0. The following commits are included: - Add useBlocker to private APIs for enhanced routing control (WordPress/gutenberg#75687) - Add components team as codeowners for components package (WordPress/gutenberg#75641) - DataForm: Fix focus loss and refactor Card layout (WordPress/gutenberg#75689) - Remove IS_GUTENBERG_PLUGIN checks for collaborative editing (WordPress/gutenberg#75699) - RTC: Add cap check for single taxonomy term entities (WordPress/gutenberg#75708) - Only show dot divider for parent selector in top toolbar (WordPress/gutenberg#75710) - Re-enable Font Library e2e tests (WordPress/gutenberg#75712) - Fix flaky Quick Edit e2e test (WordPress/gutenberg#75714) - Post Navigation Link : Migrate to Text-Align Block Support (WordPress/gutenberg#75557) - Add phpMyAdmin support to wp-env Playground runtime (WordPress/gutenberg#75532) - wp-env: Enable pretty permalinks by default in Docker runtime (WordPress/gutenberg#75688) - DataViews: fix spacing for title in patterns page (WordPress/gutenberg#75693) - MediaEdit: Auto-fill columns based on minimum item width (WordPress/gutenberg#75509) - Add Field and Fieldset details tests (WordPress/gutenberg#75696) - UI: Update `@base-ui/react` from 1.0.0 to 1.2.0 (WordPress/gutenberg#75698) - Theme: Add design token for interactive non-link elements (WordPress/gutenberg#75697) - Media: Graduate client-side media processing from experimental (WordPress/gutenberg#75112) - Remove experimental property from Icon block (WordPress/gutenberg#75742) - Real-time collab editing: Fix undo E2E test (WordPress/gutenberg#75740) - Snackbar: Fix scaling issue with snackbars that update their content via a common id (WordPress/gutenberg#75709) - Vips and worker-threads packages: remove private flag so that packages can be published to npm (WordPress/gutenberg#75752) - Update wordpress/vips in root package.json to use a relative path (WordPress/gutenberg#75758) - Fix change-detection and new-post E2E tests after RTC enabled by default (WordPress/gutenberg#75751) - Try fix failing patterns e2e test (WordPress/gutenberg#75759) - Client-side media processing: Disable in Gutenberg just for now (WordPress/gutenberg#75756) - Skip cross origin isolation e2e tests (WordPress/gutenberg#75764) - Post featured image: Simplify background class assignment. (WordPress/gutenberg#75745) - Block Editor: Avoid block removal when calling 'moveBlockToPosition' (WordPress/gutenberg#75728) - Icon: Improve parameter documentation (WordPress/gutenberg#75768) - Query: Remove content role from block (WordPress/gutenberg#75760) - DataViews: Adjust column spacing in `table` layout when no titleField is provided (WordPress/gutenberg#75410) - IconButton: Hide tooltip when truly disabled (WordPress/gutenberg#75754) - `ToggleGroupControl`: Make unselected item color consistent across all variants (WordPress/gutenberg#75737) - Center navigation preview content in preview pane (WordPress/gutenberg#75741) - Real-time collaboration: Fix comment syncing on site editor (WordPress/gutenberg#75746) - Navigation Overlay Close: Set Close as default text, rather than using a placeholder (WordPress/gutenberg#75692) - Components: Refactor ColorPicker to preserve hue/saturation at achromatic colors (WordPress/gutenberg#75493) - Icon-block: fix global-styles selectors (WordPress/gutenberg#75724) - Revert "Try fix failing patterns e2e test (WordPress/gutenberg#75759)" (WordPress/gutenberg#75771) - Theme: Add design token fallback generation (WordPress/gutenberg#75586) - Core Data: Create icons entity (WordPress/gutenberg#75773) - Workflows: Use pull_request_target for cherry-pick workflow (WordPress/gutenberg#75775) - Revert "CI: Use http-get in Storybook check wait-on" (WordPress/gutenberg#75781) - REST API: Make filter_wp_unique_filename() static to match core, plus avoid duplicate routes (WordPress/gutenberg#75782) - Tabs: Remove custom state styling (WordPress/gutenberg#75731) - Sort registry files by handle/ID. (WordPress/gutenberg#75755) - Real-time Collaboration: Bug fix for CRDT user selection and add tests (WordPress/gutenberg#75075) - Post Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75629) - Query Title: Migrate to Text-Align Block Support (WordPress/gutenberg#75802) - Pattern Editing: Fix nested patterns/sections (WordPress/gutenberg#75772) - Add core/icon block to theme.json schema (WordPress/gutenberg#75813) - Changelog: Curate entries for GB 22.6.0 RC1 (WordPress/gutenberg#75738) - QuickEdit: rename status label and remove extra labels in popup (WordPress/gutenberg#75824) - BlockListBlock: fix crash when selectedProps are null (WordPress/gutenberg#75826) - RTC: Updates from backport PR (WordPress/gutenberg#75711) - Merge document meta into state map (WordPress/gutenberg#75830) - NumberControl: merge two state reducers into one (WordPress/gutenberg#75822) - Real-time collaboration: Remove block client IDs from Awareness, fix "Show Template" view (WordPress/gutenberg#75590) - RTC: Fix entity save call / initial persistence. (WordPress/gutenberg#75841) - Fix block editing modes not recomputing when isolated editor value changes (WordPress/gutenberg#75821) - DataViews: Fix search input losing characters during debounce when externally synced (WordPress/gutenberg#75810) - Synced patterns: Fix block editing mode of synced pattern content when nested in an unsynced pattern (WordPress/gutenberg#75818) - Add wp_ prefix to real time collaberation option. (WordPress/gutenberg#75837) - Block Support: Fix custom CSS not saved when style schema is not defined (WordPress/gutenberg#75797) - Site Tagline : Migrate to Text-Align Block Support (WordPress/gutenberg#75690) - Site Title : Migrate to Text-Align Block Support (WordPress/gutenberg#75551) - Try enabling style variation transforms for blocks in contentOnly mode (WordPress/gutenberg#75761) - Fix error when undoing newly added pattern (WordPress/gutenberg#75850) - Block Editor: Invalid block selected style (WordPress/gutenberg#75796) - Add e2e test for sorting patterns (WordPress/gutenberg#75823) - Gallery: Fixes keyboard focus escaping the lightbox overlay when navigating a gallery with Tab/Shift+Tab. (WordPress/gutenberg#75852) - wp-build: Do not remove Core's default script modules registration (WordPress/gutenberg#75705) - Fix: Suppress spinner output when using --json flag in wp-env (WordPress/gutenberg#75743) - Docs: Fix incorrect use of wp_interactivity_state in getServerState example (WordPress/gutenberg#75857) - Env: Improve help screen (WordPress/gutenberg#75783) - iAPI Docs: Introduce reactive vs non-reactive distinction early in the state/context guide (WordPress/gutenberg#75357) - Fix client-side media file naming (WordPress/gutenberg#75817) - Plugin: Include Icons assets in ZIP (WordPress/gutenberg#75866) - Prevent CSS modules in build from breaking Jest tests (WordPress/gutenberg#75792) - Bump the github-actions group across 2 directories with 7 updates (WordPress/gutenberg#75725) - Re-enable client-side media processing (WordPress/gutenberg#75848) - RTC: Fix undefined array_first() call in sync storage (WordPress/gutenberg#75869) - Real-time collaboration: Improve collaboration within the same rich text (WordPress/gutenberg#75703) - Media Thumbnail Field: Optimise image loading (WordPress/gutenberg#75811) - Grid block: Improve Visualizer responsiveness (WordPress/gutenberg#75820) - Custom CSS: Allow defining custom selector for this global styles feature (WordPress/gutenberg#75799) - Fix DataForm card summary vertical alignment (WordPress/gutenberg#75864) - Update README for DataViews, DataForm, Field API (WordPress/gutenberg#75881) - Client Side Media: Add device/browser capability detection (WordPress/gutenberg#75863) - Navigation editing: simplify edit/view buttons (WordPress/gutenberg#75819) - DataViews: Remove menu divider again. (WordPress/gutenberg#75893) - Page List Item: Replace RawHTML with dangerouslySetInnerHTML for label and title (WordPress/gutenberg#75890) - Theme: Add build plugins to inject design token fallbacks (WordPress/gutenberg#75589) - Cover block: Add e2e test coverage for bugfixes (WordPress/gutenberg#75483) - Fix flaky template-revert e2e tests (WordPress/gutenberg#75894) - Accordion: Remove Down Arrow, Up Arrow, Home, End naviagtion (WordPress/gutenberg#75891) - Dialog: Add legacy z-index compatibility (WordPress/gutenberg#75874) - Cover: Replace strpos() with str_contains() for improved readability (WordPress/gutenberg#75907) - Block editor: Force LTR direction in block HTML editing mode (WordPress/gutenberg#75904) - Navigation overlay: Prevent duplicate area registration (WordPress/gutenberg#75906) - RichText: useAnchor: Fix TypeError in virtual element (WordPress/gutenberg#75900) - Navigation: Extract NavigationLinkUI and NavigationListViewHeader into separate files (WordPress/gutenberg#75865) - DataViews: minimize padding for primary action buttons (WordPress/gutenberg#75721) - DataForm: fix label colors (WordPress/gutenberg#75730) - ESLint: Add `no-ds-tokens` rule (WordPress/gutenberg#75872) - Theme: Remove global stylesheet (WordPress/gutenberg#75879) - Automated Testing: Merge reports into HTML artifact (WordPress/gutenberg#75633) - wp-build: Deregister script modules before re-registering (WordPress/gutenberg#75909) - Move WordPress meta key from sync package to core-data (WordPress/gutenberg#75846) - Real-time collaboration: Remove ghost awareness state explicitly when refreshing (WordPress/gutenberg#75883) - Bugfix: Fix casing of getPersistedCRDTDoc (WordPress/gutenberg#75922) - Add: Connectors screen (WordPress/gutenberg#75833) - Real-time collaboration: Expand mergeCrdtBlocks() automated testing (WordPress/gutenberg#75923) - Add previews for style variation transforms (WordPress/gutenberg#75889) - Convert focus on mount hook to TypeScript (WordPress/gutenberg#75442) - Add debug logging to SyncManager (WordPress/gutenberg#75924) - Show transform dropdown previews on focus as well as hover (WordPress/gutenberg#75940) - Custom CSS: Prevent duplicate custom css styles (WordPress/gutenberg#75892) - Docs: Correct parameter name `$content` for query title render function. (WordPress/gutenberg#75945) - DataViews: Avoid flickering while refreshing (WordPress/gutenberg#74572) - Connectors: Add `_ai_` prefix to connector setting names and fix naming inconsistencies (WordPress/gutenberg#75948) - Connectors: Unhook Core callbacks in Gutenberg coexistence (WordPress/gutenberg#75935) - Editor: Remove View dropdown and pinned items from revisions header (WordPress/gutenberg#75951) - Unsynced patterns: Rename 'Disconnect pattern' to 'Detach pattern' in context menu (WordPress/gutenberg#75807) - ui guidelines: add custom properties and disabled state guidance (WordPress/gutenberg#75912) - Fix: Template revisions infinite spinner (WordPress/gutenberg#75953) - Docs: Fix broken link to `autoRegister` block-supports (WordPress/gutenberg#75956) - Add documentation for contentRole and listView block supports (WordPress/gutenberg#75903) - Build: Clean top-level build/ directory during clean:packages (WordPress/gutenberg#75961) - Interactivity Router: fix back and forward navigation after refresh (WordPress/gutenberg#75927) - ESLint: Add no-i18n-in-save rule (WordPress/gutenberg#75617) - Components: Specify line-height to avoid inheriting default values (WordPress/gutenberg#75880) - Real-time collaboration: Fix disconnect dialog on navigate (WordPress/gutenberg#75886) - Navigation: Remove internal 'useNavigationEntities' hook (WordPress/gutenberg#75943) - Directly inject styles in overlay to make styles stay consistently mounted (WordPress/gutenberg#75700) - Real Time Collab: Throttle syncing for inactive tabs. (WordPress/gutenberg#75843) - Content Guidelines: Add experimental REST API and custom post type (WordPress/gutenberg#75164) - Core Data: Simplify actions dispatched by 'canUser' resolver (WordPress/gutenberg#75974) - Pattern Editing: Fix sibling blocks to edited pattern not being disabled (WordPress/gutenberg#75994) - Sync connector PHP behavior with Core backport changes (WordPress/gutenberg#75968) - Use the same context for font library tabs translations (WordPress/gutenberg#75930) - Connectors: Avoid manual string concatenation (WordPress/gutenberg#75997) - DataForm: fix field label for panel (should not be uppercase) (WordPress/gutenberg#75944) - Unify block settings dropdown menu items across list views (WordPress/gutenberg#75979) - Views: add support for more overrides (all developer-defined config) (WordPress/gutenberg#75971) - Preserve note selection on browser tab switch (WordPress/gutenberg#75955) - ESLint: Broaden `no-unknown-ds-tokens` to all strings and catch dynamic construction (WordPress/gutenberg#75905) - Use homeUrl instead of siteUrl for link badge evaluations (WordPress/gutenberg#75978) - Block Editor: Display custom block labels in Block Inspector and List View (WordPress/gutenberg#75607) - DataViews: Fix focus transfer while searching in `list` layout (WordPress/gutenberg#75999) - UI: Add Notice component (WordPress/gutenberg#75981) - Playlist Block: Add WaveformPlayer visualization (WordPress/gutenberg#75203) - DataViews: Right-align `integer` and `number` fields (WordPress/gutenberg#75917) - Navigation Link: Compare internal links by host instead of origin (WordPress/gutenberg#76015) - Bump the github-actions group across 2 directories with 3 updates (WordPress/gutenberg#76006) - Block Supports: Define CSS vars for blocks based on feature selectors (WordPress/gutenberg#75226) - Button: Migrate to width block support (WordPress/gutenberg#74242) - Fix: Skip scaled image sideload for images below big image threshold (WordPress/gutenberg#75990) - ToolsPanel: Remove unnecessary label prop from dropdownMenuProps type (WordPress/gutenberg#76027) - Make inspector style transform previews consistent with toolbar transforms (WordPress/gutenberg#75989) - Fix: Set quality and strip metadata in client-side image resize (WordPress/gutenberg#76029) - Search block: double-encodes apostrophes in the input value (WordPress/gutenberg#76023) - Post Title: Add placeholder attribute (WordPress/gutenberg#76016) - wp-env: Add opt-in --auto-port flag for automatic port selection (WordPress/gutenberg#74472) - RichText: useAnchor: Enable type checking, fix errors (WordPress/gutenberg#75910) - DataForm: Fix `card` layout's toggle button screen reader text (WordPress/gutenberg#76039) - [Real-time Collaboration] Fix sync issue on refresh (WordPress/gutenberg#76017) - RTC: Fix syncing of emoji / surrogate pairs (WordPress/gutenberg#76049) - InputLayout: Replace slot context with data attributes (WordPress/gutenberg#76011) - RTC: Fix stale CRDT document persisted on save (WordPress/gutenberg#75975) - Real-time collaboration: Improve disconnect dialog (WordPress/gutenberg#75970) - Media Notices: Bump global snackbar z-index, re-use global notices for media modal (WordPress/gutenberg#76063) - RTC: Prevent duplicate poll cycles (WordPress/gutenberg#76059) - RTC: Disable multiple collaborators if meta boxes are present (WordPress/gutenberg#75939) - DataViews: Fix filter toggle flickering when there are locked or primary filters (WordPress/gutenberg#75913) - Revert global snackbar z-index bump, implement alternative fix for Media Upload Modal notices (WordPress/gutenberg#76067) - DataViews: Improve UI in `list` layout when we render only title and/or media fields (WordPress/gutenberg#76042) - `Button`: Add `word-break: break-word` (WordPress/gutenberg#76071) - DataForm: Fix text overflow for long unhyphenated text in panel layout (WordPress/gutenberg#76073) - Interactivity: Fix incomplete Window.scheduler type causing TS2430 (WordPress/gutenberg#76070) - Connectors: Dynamically register providers from WP AI Client registry (WordPress/gutenberg#76014) - Remove Core's full-page render interceptors for boot-based pages (WordPress/gutenberg#76036) - PHP-only Blocks: Reflect bound attribute values in inspector controls (WordPress/gutenberg#76040) - Admin UI: Fix type mismatch between Page title and NavigableRegion ariaLabel (WordPress/gutenberg#75899) - Remove unused deps: wordpress/dom, wordpress/theme, wordpress/url (WordPress/gutenberg#76075) - RTC: Fix fallthrough for sync update switch statement (WordPress/gutenberg#76060) - Extract inserter-toggle mixin from duplicated button styles (WordPress/gutenberg#76087) - RTC: Add session activity notifications (WordPress/gutenberg#76065) - DateTimePicker: Fix day text wrapping (WordPress/gutenberg#76084) - iAPI Docs: Add client-side navigation guide under "Core Concepts" (WordPress/gutenberg#75263) - Move block css vars selectors backport changelog to correct WP version (WordPress/gutenberg#76102) - Fix writing flow navigation for annotation style, or any other block with border radius (WordPress/gutenberg#76072) - Block toolbar and context menu: hide pattern actions in Revisions UI (WordPress/gutenberg#76066) - Prevent non-reproducible Sass/CSS builds. (WordPress/gutenberg#76098) - Block toolbar: hide styles dropdown in Revisions UI (WordPress/gutenberg#76119) - Image: Hide 'Set as featured image' for in-editor revisions (WordPress/gutenberg#76123) - Image block: fix lightbox srcset size (WordPress/gutenberg#76092) - DataViews: Fix last column classname in `table` layout (WordPress/gutenberg#76133) - Data: Update documentation for global 'dispatch' and 'select' methods (WordPress/gutenberg#76134) - Connectors: Gate unavailable install actions behind install capability (WordPress/gutenberg#75980) - Auto Cherry-Pick: Fix race condition by using pull_request_target closed event (WordPress/gutenberg#76083) - build: Exclude experimental pages from Core builds (WordPress/gutenberg#76038) - Playlist: Move getTrackAttributes to utils (WordPress/gutenberg#76096) - HTML & Shortcode: Disable viewport visibility support (WordPress/gutenberg#76138) - Navigation: Allow creating new links in site editor sidebar List View (WordPress/gutenberg#75918) - DataForm: Consolidate `date` and `datetime` input placement (WordPress/gutenberg#76136) - Remove `! function_exists()` checks from PHP templates (WordPress/gutenberg#76062) - Playlist: Clip content to respect border-radius (WordPress/gutenberg#76146) - Connectors: Update page identifier to options-connectors (WordPress/gutenberg#76142) - RTC: Verify client ID to avoid awareness mutation (WordPress/gutenberg#76056) - Move backport changelog PR for Gutenberg WordPress/gutenberg#75746 to correct matching backport PR (WordPress/gutenberg#76154) - Connectors: Align init hook priorities with Core overrides (WordPress/gutenberg#76161) - Icons: Fix incorrect icon slug (WordPress/gutenberg#76074) - Icon Block: Clean up selectors config (WordPress/gutenberg#75786) - Add support for linting annotations and other static analysis workflow improvements (WordPress/gutenberg#76120) - Bump the github-actions group across 2 directories with 1 update (WordPress/gutenberg#76144) - Image: Replace 'getEntityRecordPermissions` with 'canUser' (WordPress/gutenberg#76125) - RTC: Enable RTC by default (WordPress/gutenberg#75739) - Fix backport changelog for WordPress/gutenberg#76060 (WordPress/gutenberg#76174) - Rename and visibility modals: gate shortcuts behind canEditBlock to prevent triggering in revisions UI (WordPress/gutenberg#76168) - Hide template part replace button when viewing revisions (WordPress/gutenberg#76169) - Fix: Block style variations not rendering in Site Editor Patterns page (WordPress/gutenberg#76122) - Content Guidelines: Add UX for site, copy, image, and internal guidelines (WordPress/gutenberg#75420) - Client-side media processing: only use media upload provider when not in preview mode (WordPress/gutenberg#76124) - Notes: Disable for in-editor revisions (WordPress/gutenberg#76180) - Core Data: Support reading revision data in useEntityProp (fixes footnotes in revisions UI) (WordPress/gutenberg#76106) - Client-side media processing: Try plumbing invalidation to the block-editor's mediaUpload onSuccess callback (WordPress/gutenberg#76173) - Interactivity API: Fix router initialization race condition on Safari/Firefox (WordPress/gutenberg#76053) - Connectors: Improve responsive layout on small screens (WordPress/gutenberg#76186) - Interactivity: Fix crypto.randomUUID crash in non-secure contexts (WordPress/gutenberg#76151) - Duotone: lazily load settings (WordPress/gutenberg#74748) - Media: Use Document-Isolation-Policy for cross-origin isolation on Chromium 137+ (WordPress/gutenberg#75991) - DataForm `datetime` control: fix date handling (WordPress/gutenberg#76193) - Field.Label, Fieldset.Legend: Add `visuallyHidden` prop (WordPress/gutenberg#76052) - Extensible Site Editor: Make canvas previews full height (WordPress/gutenberg#76201) - Storybook: Deduplicate injected package stylesheets (WordPress/gutenberg#76158) - Temp: Disable RTC in the site editor (WordPress/gutenberg#76223) - Obey undoIgnore flag in editEntityRecord (WordPress/gutenberg#76206) - RTC: Fix `post-editor-template-mode` E2E test (WordPress/gutenberg#76209) - Pattern Editing and Block Fields: Highlight selected block (WordPress/gutenberg#74841) - Menu: Fix `RadioItem` controlled checked state (WordPress/gutenberg#76041) - Revert `word-break: break-word` addition (WordPress/gutenberg#76230) - Fix: QuickEdit: consolidate how "Status > Scheduled" works (WordPress/gutenberg#76129) - Add experiment: render the editor inspector with DataForm (WordPress/gutenberg#76244) - Fields: Hide `scheduledDateField` from the list and filters (WordPress/gutenberg#76247) - DataForm: Add customizable button text to panel modal (WordPress/gutenberg#76099) - Components: Add styles for outside days in Calendar components (WordPress/gutenberg#76199) - Add Site Logo & Icon screen to Design panel (WordPress/gutenberg#76116) - Tooltip: Change default placement from bottom to top (WordPress/gutenberg#76131) - `@wordpress/ui`: add `Card` and `CollapsibleCard` components (WordPress/gutenberg#76252) - Refactor admin-ui Page component to use @wordpress/theme tokens and @wordpress/ui layout primitive (WordPress/gutenberg#75963) - RTC: Fix 'networkidle' and other e2e tests that are flaky (WordPress/gutenberg#76214) - Move site editor preview CSS to boot package (WordPress/gutenberg#76211) - Publish built Gutenberg plugin to the GitHub Container Registry (WordPress/gutenberg#75844) - Scripts: Relax @wordpress/env peer dependency to allow newer versions (WordPress/gutenberg#76192) - Connectors: Improve placeholder text and make it translatable (WordPress/gutenberg#75996) - Block context menu: context menu not closing for disconnecting unsynced pattern menu items (WordPress/gutenberg#75405) - UI Notice: let description and actions span icon column at narrow widths (WordPress/gutenberg#76202) - Convert data package fully to TS (WordPress/gutenberg#76149) - RTC updates: use apiFetch capabilities, allow nonce refresh (WordPress/gutenberg#76283) - Interactivity: Make Window.scheduler required to match DOM lib (WordPress/gutenberg#76271) - fix(block-library): use add_filter for filter hook (WordPress/gutenberg#76297) - Add word-break property, update CHANGELOG, and update snapshots (WordPress/gutenberg#75539) - Storybook: Redesign Icon library page (WordPress/gutenberg#76034) - Connectors: Improve responsive layout for small viewports (WordPress/gutenberg#76231) - Compose: Implement useCopyToClipboard and useCopyOnClick with native clipboard API (WordPress/gutenberg#75723) - theme.json schema: fix pseudo-class definition for button block (WordPress/gutenberg#76272) - Sync some post list changes with Extensible Site Editor (WordPress/gutenberg#76243) - Only run label enforcement workflow on open PRs. (WordPress/gutenberg#76274) - API Fetch: Respect caller-provided Content-Type in httpV1 middleware (WordPress/gutenberg#76285) - Raw handling: fix shortcode conversion when separated by <br /> tags (WordPress/gutenberg#76213) - Navigation block: fix submenu chevron toggle on touch devices (WordPress/gutenberg#76197) - Core Data: Fix 'canUser' returning 'undefined' when the allow header is missing (WordPress/gutenberg#76307) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Update block registration methods in documentation for WordPress 6.8+ (WordPress/gutenberg#76324) - Theme: Document build plugins in README (WordPress/gutenberg#76003) - Block Visibility: Add `fetchpriority=auto` to `IMG` tags in blocks with conditional viewport visibility to prevent potential erroneous high loading priority (WordPress/gutenberg#76302) - Add primitive Text component to @wordpress/ui (WordPress/gutenberg#75870) - Editor: Polish real-time collaboration presence UI and move Avatar to editor package (WordPress/gutenberg#75652) - Navigation: Disable Mobile Menu in Isolated Editor or Site Editor Preview (WordPress/gutenberg#76203) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76266) - Use V2 Yjs methods for HTTP Polling (WordPress/gutenberg#76304) - Ensure consistent, repeatable build results when inlining WASM files via `wasmInlinePlugin` (WordPress/gutenberg#76113) - Account `IS_WORDPRESS_CORE` is set. (WordPress/gutenberg#76334) - Navigation Editor: Allow any blocks to be inserted by gating contentOnly insertion rules to section blocks (WordPress/gutenberg#76189) - Add `fetchpriority=low` to `IMG` tags in collapsed Details blocks (WordPress/gutenberg#76269) - Content Guidelines: Add block guidelines management (WordPress/gutenberg#76187) - Connectors: Add logo URL support for custom AI providers (WordPress/gutenberg#76190) - Fields: Add `format` field (WordPress/gutenberg#76308) - Cover Block: Add a playlist parameter to loop YouTube background videos. (WordPress/gutenberg#76004) - Connectors: Memoize getConnectors selector (WordPress/gutenberg#76339) - HTML Block: Fix broken layout (WordPress/gutenberg#76278) - Tests: Skip connector logo URL tests when AI Client is unavailable (WordPress/gutenberg#76343) - Navigation Overlay: Explicitly set fetchpriority for images (WordPress/gutenberg#76208) - Fields: Add post content information field (WordPress/gutenberg#76309) - Core Data: Treat single-item responses specially (WordPress/gutenberg#76318) - Editor canvas iframe: use load event and default body element (WordPress/gutenberg#76314) - Set placeholder to featured image field (WordPress/gutenberg#76342) - Post Excerpt: Migrate to textAlign block support (WordPress/gutenberg#75860) - Add Client-Side Navigation documentation to manifest and table of contents (WordPress/gutenberg#76351) - Connectors: Move API key validation and masking to REST dispatch level (WordPress/gutenberg#76327) - Connectors: Replace apiFetch with core-data store selectors (WordPress/gutenberg#76333) - DataForm: Reduce `panel`'s dialog `min-width` (WordPress/gutenberg#76345) - Do not sync local attributes (WordPress/gutenberg#76267) - Storybook: Add basic accent color guidance. (WordPress/gutenberg#76340) - Navigation link: add support to style current menu item via theme.json (WordPress/gutenberg#75736) - Add `fetchpriority=low` to `IMG` tags in collapsed Accordion Item blocks (WordPress/gutenberg#76336) - Add `Link` primitive to `@wordpress/ui` (WordPress/gutenberg#76013) - wp-build: Stop bundling Core packages, generate prerequisites asset instead (WordPress/gutenberg#75987) - Implement disconnection debounce after initial connection (WordPress/gutenberg#76114) - DataViews Grid and Picker Grid: Add density option for gap between items (WordPress/gutenberg#75887) - Guidelines: Add actions for Import, Export and Revisions of guidelines (WordPress/gutenberg#76155) - Allow Post Content to be edited when 'Show template' is active and Post content is nested in a Template Part (WordPress/gutenberg#76305) - Correct input of setIsLoading (WordPress/gutenberg#76381) - Fix: Document Bar: Back button flickers (WordPress/gutenberg#76320) - RTC: Move event hooks from editor to core-data (WordPress/gutenberg#76358) - Page Parent: Change the default value of 'fieldValue' state (WordPress/gutenberg#76354) - Core Data: Avoid stale values when in autosave payloads (WordPress/gutenberg#76337) - fix(navigation): prevent right-justified submenu overflow in custom overlays (WordPress/gutenberg#76360) - Core Data: Optimize revision selectors (WordPress/gutenberg#76043) - Fix: Block pseudo-state styles incorrectly applied to default state (WordPress/gutenberg#76326) - Add client-side navigation block with interactive features (WordPress/gutenberg#76331) - Connectors: Add empty state when no connectors are registered (WordPress/gutenberg#76375) - Storybook: Change the default font. (WordPress/gutenberg#76366) - CI: Don't build release notes during plugin build workflow for WP Core sync (WordPress/gutenberg#76398) - Add Router type export to @wordpress/route (WordPress/gutenberg#76139) - Implement state UI for pseudo selectors on Global styles (WordPress/gutenberg#75627) - Storybook: Rename "Components (Deprecated)" to "Deprecated" (WordPress/gutenberg#76362) - Connectors: Add connectors registry for extensibility (WordPress/gutenberg#76364) - Icons API: Support searching in labels; extend classes post-7.0 work (WordPress/gutenberg#75878) - RTC: Add collaborator selection highlighting in rich text (WordPress/gutenberg#76107) - Connectors: Add AI Experiments plugin callout with install/activate functionality (WordPress/gutenberg#76379) - Add [Package] UI label to PR labeler config (WordPress/gutenberg#76411) - Sync changes from `wp_enqueue_global_styles()` to Gutenberg override (WordPress/gutenberg#76127) - [RTC] Fix performance regression on post save (WordPress/gutenberg#76370) - Core Data: Add 'supportsPagination' flag for Font Collection entity (WordPress/gutenberg#76404) - E2E Tests: Fix flaky autocomplete and mentions test (WordPress/gutenberg#76407) - Media: Enable AVIF support for client-side uploads (WordPress/gutenberg#76371) - Add backport changelog entry for WordPress/gutenberg#75878 (WordPress/gutenberg#76426) - Editor: Show own presence in collaborative editing sessions (WordPress/gutenberg#76413) - Connectors: Move plugin status computation to script module data (WordPress/gutenberg#76409) - Navigation: Use the shared icon rendering functions for all navigation blocks (WordPress/gutenberg#76372) - Simplify require statements for navigation files (WordPress/gutenberg#76373) - Revisions: Skip rendered fields in REST API responses (WordPress/gutenberg#76347) - E2E Tests: Add connector setup flow tests with test AI provider (WordPress/gutenberg#76433) - Tabs: Restructure Tabs Menu and inner blocks (WordPress/gutenberg#75954) - RTC: Place sync connection modal in front of popover (WordPress/gutenberg#76431) - DataViews: Add border to sticky table headers (WordPress/gutenberg#76396) - Connectors: Sync PHP code with WordPress Core (WordPress/gutenberg#76443) - Disables anchor support for the Page Break block. (WordPress/gutenberg#76434) - WP Admin: Update Connectors screen footer text for consistency. (WordPress/gutenberg#76382) - Show spinner when replacing media via drag-and-drop in image, cover, and media-text blocks (WordPress/gutenberg#76245) - E2E Tests: Add coverage for AI plugin callout banner on Connectors page (WordPress/gutenberg#76432) - Update sync docs (WordPress/gutenberg#75972) - RTC: Add preference for collaborator notifications (WordPress/gutenberg#76460) - Fix "should undo bold" flaky test (WordPress/gutenberg#76464) - Include AI tools disclosure in PR template (WordPress/gutenberg#76425) - TimePicker: Clamp month day to valid day for month (WordPress/gutenberg#76400) - Add isNavigationPostEditorKey symbol to fix menu display context (WordPress/gutenberg#76461) - Fix: update the playlist-track file permissions from 755 to 644 (WordPress/gutenberg#76315) - Theme_JSON: Prevent implicit coercion in `to_ruleset` (WordPress/gutenberg#76392) - CI: Simplify strategy matrix in Build Gutenberg Plugin Zip workflow (WordPress/gutenberg#76435) - Core Data: Fix selectors returning stale results for different 'per_page' queries (WordPress/gutenberg#76422) - Fields: Add support for classic themes (WordPress/gutenberg#76441) - TemplateContentPanel: fix useSelect warning (WordPress/gutenberg#76421) - Tabs: Disable anchor support on Tab Menu Item (WordPress/gutenberg#76442) - Core Data: Fix the list of properties persisted in autosaves (WordPress/gutenberg#76451) - RTC: Fix error when entity record doesn't have 'meta' property (WordPress/gutenberg#76311) - Navigation: Update close button size. (WordPress/gutenberg#76482) - UI/Badge: Add border and neutral-strong background to `none` intent (WordPress/gutenberg#76356) - Theme package: Add surface width design tokens (WordPress/gutenberg#76047) - DataViews: Add spinner in `DataViewsLayout` in initial load of data (WordPress/gutenberg#76486) - Fix: Rewrite the license check scripts to use Node's native module resolution (WordPress/gutenberg#75039) - ESLint: Add `use-recommended-components` rule (WordPress/gutenberg#76222) - Update Node version to v24 for flaky test reporter (WordPress/gutenberg#76492) - ui/Card: increase padding, align with legacy Card (WordPress/gutenberg#76368) - Docs: document controlled/uncontrolled prop naming conventions for `@wordpress/ui` (WordPress/gutenberg#76281) - @wordpress/ui: add Collapsible component (WordPress/gutenberg#76280) - CollapsibleCard: move trigger to the whole header (WordPress/gutenberg#76265) - Link Picker: Use Homepage badge instead of Page if Homepage (WordPress/gutenberg#75929) - RTC: Fix TypeError in areEditorStatesEqual when selection is undefined (WordPress/gutenberg#76163) - Upgrade actionlint and run linting when composite actions are modified (WordPress/gutenberg#76503) - Revisions: use useSubRegistry={false} to fix global store selectors (WordPress/gutenberg#76152) - wp-env: Update JSON Schema with missing properties and add README docs (WordPress/gutenberg#76115) - Patterns: add confirmation dialog before disconnecting/detaching (WordPress/gutenberg#75713) - Page/Post Content Focus Mode: Fix insertion into Post Content block (WordPress/gutenberg#76477) - Remove redundant onNavigateToEntityRecord filter and assignment (WordPress/gutenberg#76523) - Feat: Block Library: Improve the design of MediaControlPreview and MediaControl (WordPress/gutenberg#76430) - Add e2e test for date field in QuickEdit (WordPress/gutenberg#76528) - Fix RTL styling on Connectors, Font Library, and boot-based admin pages (WordPress/gutenberg#76496) - DataViews: Fix layout scrolling in constrained-height containers (WordPress/gutenberg#76453) - Bump the github-actions group across 1 directory with 5 updates (WordPress/gutenberg#76530) - RTC: Auto-register custom taxonomy rest_base values for CRDT sync (WordPress/gutenberg#75983) - Modernize eslint-plugin rule APIs for ESLint v10 compatibility (WordPress/gutenberg#76507) - Remove alexstine from codeowners (WordPress/gutenberg#76551) - RTC: Add a limit for the default provider (WordPress/gutenberg#76437) - Media Upload Modal: Try an uploading state with popover in the footer (WordPress/gutenberg#76228) - Fix RTL styling on AI plugin callout banner (WordPress/gutenberg#76497) - Add command palette trigger button to admin bar (WordPress/gutenberg#75757) - Block Bindings: Remove source items constrained by enums (WordPress/gutenberg#76200) - Connectors: Improve accessibility (WordPress/gutenberg#76456) - Post Date: Migrate to textAlign block support (WordPress/gutenberg#75856) - Dataviews: improve storybook infinite loading (WordPress/gutenberg#76566) - HTML Block: Remove "unsaved changes" check (WordPress/gutenberg#76086) - `CollapsibleCard`: add animations (WordPress/gutenberg#76378) - Theme: Fix tags in Storybook (WordPress/gutenberg#76500) - InputLayout.Slot: Forward className prop (WordPress/gutenberg#76459) - Storybook: Upgrade to 10.2 (WordPress/gutenberg#76403) - UI: Use `--wpds-cursor-control` design token (WordPress/gutenberg#76218) - Media: Add hooks and extension points for client-side media processing (WordPress/gutenberg#74913) - ESLint: Broaden `no-setting-ds-tokens` to all object property keys (WordPress/gutenberg#76212) - Remove manual fallbacks from --wpds-* token usages in boot package (WordPress/gutenberg#76414) - Fix token fallback plugins breaking JS strings with quoted font names (WordPress/gutenberg#76254) - Connectors: Add unregisterConnector and upsert support (WordPress/gutenberg#76541) - Add ExampleApplication story for ThemeProvider to better demonstrate component theme-ability (WordPress/gutenberg#76463) - Admin UI: Add Storybook stories for Breadcrumbs and Page components (WordPress/gutenberg#76467) - RTC: Fix list sidebar reset during real-time collaboration (WordPress/gutenberg#76025) - Collapsible.Card: make contents hidden until found (WordPress/gutenberg#76498) - Adopt surface-width design tokens for Dialog, Notice, and Modal widths (WordPress/gutenberg#76494) - RTC: Fix CRDT serialization of nested RichText attributes (WordPress/gutenberg#76597) - ESLint: Replace eslint-plugin-ssr-friendly with custom rules (WordPress/gutenberg#76508) - Theme: Add `no-token-fallback-values` stylelint rule (WordPress/gutenberg#76415) - ESLint: Add bare token check to `no-unknown-ds-tokens` (WordPress/gutenberg#76210) - RTC: Remove post list lock icon and replace user-specific lock text (WordPress/gutenberg#76322) - Fix HEIC upload error handling and sub-size format (WordPress/gutenberg#76514) - RTC: Fix cursor index sync with rich text formatting (WordPress/gutenberg#76418) - RTC: Allow filtering of `SyncConnectionModal` (WordPress/gutenberg#76554) - RTC: Implement front-end peer limits (WordPress/gutenberg#76565) - Content Guidelines: Rename route and use the right `Notice` component (WordPress/gutenberg#76427) - Core Data: Fix per_page query logic for when offset is present in the query (WordPress/gutenberg#76613) - useMediaQuery: support in-iframe queries via new `WindowContext` (WordPress/gutenberg#76446) - Navigation overlay close button may be displayed twice (WordPress/gutenberg#76585) - Fix script module dequeue race condition (WordPress/gutenberg#76170) - Template field: match exactly the behavior of post template panel (WordPress/gutenberg#76596) - Connectors: Fetch specific plugin instead of all plugins (WordPress/gutenberg#76594) - Admin UI: update font size for title and breadcrumbs to match (WordPress/gutenberg#76452) - Admin UI: Use hasPadding prop in Page stories instead of inline styles (WordPress/gutenberg#76601) - Site Editor > Templates: fix author filter (WordPress/gutenberg#76625) - Site Title Block: Fix preview display (WordPress/gutenberg#76614) - Editor: Fix autosaves for draft and auto-draft posts (WordPress/gutenberg#76624) - Revisions: Show changed block attributes in inspector sidebar (WordPress/gutenberg#76550) - Fix IS_GUTENBERG_PLUGIN env var override in build config (WordPress/gutenberg#76605) - Loosen client-side media processing requirements (WordPress/gutenberg#76616) Props adamsilverstein, jorbin, westonruter, wildworks. Fixes #65555. git-svn-id: https://develop.svn.wordpress.org/trunk@62577 602fd350-edb4-49c9-b593-d223f7449a82
What?
Currently, the Duotone metadata initialization runs on
wp_loaded. This PR changes it to instead run the first time the metadata is needed, by implementing the approach in the Core changeset https://core.trac.wordpress.org/changeset/56226.This PR replaces #74591.
Why?
Per the Core change, regarding the Core
WP_Duotone:As
WP_Duotone_Gutenbergwas implemented following the same approach, but was never updated, it kept the same performance issues. This PR updates its approach to match the one in Core.How?
As in the Core change, this PR refactors the
WP_Duotone_Gutenbergclass to lazily load the global styles andtheme.jsondata, only when a block that supports duotone is encountered.render_duotone_support()was changed to take a third parameter to reuse the existingWP_Block_Typeobject passed to the filter, to save it being looked up again.The code has also got improved type checking, via the use of the util function
block_has_support, and improved type documentation beyond the Core change.Unlike in the Core change, the
set_global_styles_presets()andset_global_style_block_names()functions are preserved, as they are public and may be in use by external code (albeit unlikely). They're now marked as deprecated to avoid new usage. Please let me know if you'd rather see them removed altogether, and I'll be happy to make the change.Testing Instructions
Smoke-test the Duotone feature and ensure that it continues to work correctly, by adding a Duotone filter to an image block and ensuring the page loads correctly, with the filter correctly applied.
Also ensure that the PHP unit tests work correctly, as they needed some small updates to match the changed function signature for
render_duotone_support().