Skip to content

Commit

Permalink
Update with packages from GB 19.2.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Sep 5, 2024
1 parent 0a0ca40 commit b9830c7
Show file tree
Hide file tree
Showing 11 changed files with 2,346 additions and 1,958 deletions.
3,970 changes: 2,141 additions & 1,829 deletions package-lock.json

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"@lodder/grunt-postcss": "^3.1.1",
"@playwright/test": "1.45.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@wordpress/babel-preset-default": "8.6.0",
"@wordpress/dependency-extraction-webpack-plugin": "6.6.0",
"@wordpress/e2e-test-utils": "11.6.0",
"@wordpress/e2e-test-utils-playwright": "1.6.0",
"@wordpress/prettier-config": "4.6.0",
"@wordpress/scripts": "28.6.0",
"@wordpress/babel-preset-default": "8.7.0",
"@wordpress/dependency-extraction-webpack-plugin": "6.7.0",
"@wordpress/e2e-test-utils": "11.7.0",
"@wordpress/e2e-test-utils-playwright": "1.7.0",
"@wordpress/prettier-config": "4.7.0",
"@wordpress/scripts": "29.0.0",
"autoprefixer": "10.4.19",
"chalk": "5.3.0",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -78,72 +78,72 @@
"webpack-livereload-plugin": "3.0.2"
},
"dependencies": {
"@wordpress/a11y": "4.0.1",
"@wordpress/annotations": "3.0.2",
"@wordpress/api-fetch": "7.0.1",
"@wordpress/autop": "4.0.1",
"@wordpress/blob": "4.0.1",
"@wordpress/block-directory": "5.0.9",
"@wordpress/block-editor": "13.0.7",
"@wordpress/block-library": "9.0.8",
"@wordpress/block-serialization-default-parser": "5.0.1",
"@wordpress/blocks": "13.0.3",
"@wordpress/commands": "1.0.3",
"@wordpress/components": "28.0.3",
"@wordpress/compose": "7.0.1",
"@wordpress/core-commands": "1.0.7",
"@wordpress/core-data": "7.0.7",
"@wordpress/customize-widgets": "5.0.8",
"@wordpress/data": "10.0.2",
"@wordpress/data-controls": "4.0.2",
"@wordpress/dataviews": "2.0.5",
"@wordpress/date": "5.0.1",
"@wordpress/deprecated": "4.0.1",
"@wordpress/dom": "4.0.1",
"@wordpress/dom-ready": "4.0.1",
"@wordpress/edit-post": "8.0.9",
"@wordpress/edit-site": "6.0.9",
"@wordpress/edit-widgets": "6.0.8",
"@wordpress/editor": "14.0.8",
"@wordpress/element": "6.0.1",
"@wordpress/escape-html": "3.0.1",
"@wordpress/format-library": "5.0.7",
"@wordpress/hooks": "4.0.1",
"@wordpress/html-entities": "4.0.1",
"@wordpress/i18n": "5.0.1",
"@wordpress/icons": "10.0.2",
"@wordpress/interactivity": "6.0.2",
"@wordpress/interactivity-router": "2.0.2",
"@wordpress/interface": "6.0.3",
"@wordpress/is-shallow-equal": "5.0.1",
"@wordpress/keyboard-shortcuts": "5.0.2",
"@wordpress/keycodes": "4.0.1",
"@wordpress/list-reusable-blocks": "5.0.3",
"@wordpress/media-utils": "5.0.1",
"@wordpress/notices": "5.0.2",
"@wordpress/nux": "9.0.3",
"@wordpress/patterns": "2.0.7",
"@wordpress/plugins": "7.0.3",
"@wordpress/preferences": "4.0.3",
"@wordpress/preferences-persistence": "2.0.1",
"@wordpress/primitives": "4.0.1",
"@wordpress/priority-queue": "3.0.1",
"@wordpress/private-apis": "1.0.2",
"@wordpress/redux-routine": "5.0.1",
"@wordpress/reusable-blocks": "5.0.7",
"@wordpress/rich-text": "7.0.2",
"@wordpress/router": "1.0.2",
"@wordpress/server-side-render": "5.0.3",
"@wordpress/shortcode": "4.0.1",
"@wordpress/style-engine": "2.0.2",
"@wordpress/sync": "1.0.1",
"@wordpress/token-list": "3.0.1",
"@wordpress/undo-manager": "1.0.1",
"@wordpress/url": "4.0.1",
"@wordpress/viewport": "6.0.2",
"@wordpress/warning": "3.0.1",
"@wordpress/widgets": "4.0.7",
"@wordpress/wordcount": "4.0.1",
"@wordpress/a11y": "4.7.0",
"@wordpress/annotations": "3.7.0",
"@wordpress/api-fetch": "7.7.0",
"@wordpress/autop": "4.7.0",
"@wordpress/blob": "4.7.0",
"@wordpress/block-directory": "5.7.0",
"@wordpress/block-editor": "14.2.0",
"@wordpress/block-library": "9.7.0",
"@wordpress/block-serialization-default-parser": "5.7.0",
"@wordpress/blocks": "13.7.0",
"@wordpress/commands": "1.7.0",
"@wordpress/components": "28.7.0",
"@wordpress/compose": "7.7.0",
"@wordpress/core-commands": "1.7.0",
"@wordpress/core-data": "7.7.0",
"@wordpress/customize-widgets": "5.7.0",
"@wordpress/data": "10.7.0",
"@wordpress/data-controls": "4.7.0",
"@wordpress/dataviews": "4.3.0",
"@wordpress/date": "5.7.0",
"@wordpress/deprecated": "4.7.0",
"@wordpress/dom": "4.7.0",
"@wordpress/dom-ready": "4.7.0",
"@wordpress/edit-post": "8.7.0",
"@wordpress/edit-site": "6.7.0",
"@wordpress/edit-widgets": "6.7.0",
"@wordpress/editor": "14.7.0",
"@wordpress/element": "6.7.0",
"@wordpress/escape-html": "3.7.0",
"@wordpress/format-library": "5.7.0",
"@wordpress/hooks": "4.7.0",
"@wordpress/html-entities": "4.7.0",
"@wordpress/i18n": "5.7.0",
"@wordpress/icons": "10.7.0",
"@wordpress/interactivity": "6.7.0",
"@wordpress/interactivity-router": "2.7.0",
"@wordpress/interface": "6.7.0",
"@wordpress/is-shallow-equal": "5.7.0",
"@wordpress/keyboard-shortcuts": "5.7.0",
"@wordpress/keycodes": "4.7.0",
"@wordpress/list-reusable-blocks": "5.7.0",
"@wordpress/media-utils": "5.7.0",
"@wordpress/notices": "5.7.0",
"@wordpress/nux": "9.7.0",
"@wordpress/patterns": "2.7.0",
"@wordpress/plugins": "7.7.0",
"@wordpress/preferences": "4.7.0",
"@wordpress/preferences-persistence": "2.7.0",
"@wordpress/primitives": "4.7.0",
"@wordpress/priority-queue": "3.7.0",
"@wordpress/private-apis": "1.7.0",
"@wordpress/redux-routine": "5.7.0",
"@wordpress/reusable-blocks": "5.7.0",
"@wordpress/rich-text": "7.7.0",
"@wordpress/router": "1.7.0",
"@wordpress/server-side-render": "5.7.0",
"@wordpress/shortcode": "4.7.0",
"@wordpress/style-engine": "2.7.0",
"@wordpress/sync": "1.7.0",
"@wordpress/token-list": "3.7.0",
"@wordpress/undo-manager": "1.7.0",
"@wordpress/url": "4.7.0",
"@wordpress/viewport": "6.7.0",
"@wordpress/warning": "3.7.0",
"@wordpress/widgets": "4.7.0",
"@wordpress/wordcount": "4.7.0",
"backbone": "1.6.0",
"clipboard": "2.0.11",
"core-js-url-browser": "3.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

33 changes: 29 additions & 4 deletions src/wp-includes/blocks/blocks-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@
'default' => true
)
),
'usesContext' => array(
'enhancedPagination'
),
'supports' => array(
'align' => true,
'html' => false,
Expand Down Expand Up @@ -1107,7 +1110,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
Expand All @@ -1124,8 +1131,15 @@
),
'interactivity' => array(
'clientNavigation' => true
),
'__experimentalBorder' => array(
'radius' => true,
'color' => true,
'width' => true,
'style' => true
)
)
),
'style' => 'wp-block-comment-edit-link'
),
'comment-reply-link' => array(
'$schema' => 'https://schemas.wp.org/trunk/block.json',
Expand Down Expand Up @@ -1158,7 +1172,11 @@
),
'spacing' => array(
'margin' => true,
'padding' => true
'padding' => true,
'__experimentalDefaultControls' => array(
'margin' => false,
'padding' => false
)
),
'typography' => array(
'fontSize' => true,
Expand All @@ -1173,8 +1191,15 @@
'fontSize' => true
)
),
'__experimentalBorder' => array(
'radius' => true,
'color' => true,
'width' => true,
'style' => true
),
'html' => false
)
),
'style' => 'wp-block-comment-reply-link'
),
'comment-template' => array(
'$schema' => 'https://schemas.wp.org/trunk/block.json',
Expand Down
15 changes: 13 additions & 2 deletions src/wp-includes/blocks/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
* Renders the `core/categories` block on server.
*
* @since 5.0.0
* @since 6.7.0 Enable client-side rendering if enhancedPagination context is true.
*
* @param array $attributes The block attributes.
* @param array $attributes The block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
*
* @return string Returns the categories list/dropdown markup.
*/
function render_block_core_categories( $attributes ) {
function render_block_core_categories( $attributes, $content, $block ) {
static $block_id = 0;
++$block_id;

Expand Down Expand Up @@ -54,6 +57,14 @@ function render_block_core_categories( $attributes ) {
$wrapper_markup = '<ul %1$s>%2$s</ul>';
$items_markup = wp_list_categories( $args );
$type = 'list';

if ( ! empty( $block->context['enhancedPagination'] ) ) {
$p = new WP_HTML_Tag_Processor( $items_markup );
while ( $p->next_tag( 'a' ) ) {
$p->set_attribute( 'data-wp-on--click', 'core/query::actions.navigate' );
}
$items_markup = $p->get_updated_html();
}
}

$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => "wp-block-categories-{$type}" ) );
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/blocks/categories/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"default": true
}
},
"usesContext": [ "enhancedPagination" ],
"supports": {
"align": true,
"html": false,
Expand Down
15 changes: 13 additions & 2 deletions src/wp-includes/blocks/comment-edit-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand All @@ -47,6 +51,13 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"style": "wp-block-comment-edit-link"
}
15 changes: 13 additions & 2 deletions src/wp-includes/blocks/comment-reply-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand All @@ -40,6 +44,13 @@
"fontSize": true
}
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
},
"html": false
}
},
"style": "wp-block-comment-reply-link"
}
Loading

0 comments on commit b9830c7

Please sign in to comment.