Skip to content

Commit

Permalink
Editor: Update @WordPress npm packages
Browse files Browse the repository at this point in the history
Update @WordPress npm packages to the latest published versions. This means that
the block editor includes functionality that exists in Gutenberg 9.8.

See #52334.
Props isabel_brison.


git-svn-id: https://develop.svn.wordpress.org/trunk@50048 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
noisysocks committed Jan 28, 2021
1 parent 8bfe823 commit bc40569
Show file tree
Hide file tree
Showing 50 changed files with 2,054 additions and 2,926 deletions.
4,609 changes: 1,797 additions & 2,812 deletions package-lock.json

Large diffs are not rendered by default.

105 changes: 53 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"last 2 Opera versions"
],
"devDependencies": {
"@wordpress/custom-templated-path-webpack-plugin": "1.7.0",
"@wordpress/dependency-extraction-webpack-plugin": "2.8.0",
"@wordpress/e2e-test-utils": "4.15.0",
"@wordpress/library-export-default-webpack-plugin": "1.9.0",
"@wordpress/scripts": "12.4.0",
"@wordpress/custom-templated-path-webpack-plugin": "2.0.0",
"@wordpress/dependency-extraction-webpack-plugin": "3.0.0",
"@wordpress/e2e-test-utils": "5.0.0",
"@wordpress/library-export-default-webpack-plugin": "2.0.0",
"@wordpress/scripts": "13.0.0",
"autoprefixer": "^9.8.6",
"chalk": "4.1.0",
"check-node-version": "4.0.3",
Expand Down Expand Up @@ -79,54 +79,54 @@
},
"dependencies": {
"@babel/polyfill": "7.10.1",
"@wordpress/a11y": "2.13.0",
"@wordpress/annotations": "1.23.0",
"@wordpress/api-fetch": "3.20.0",
"@wordpress/autop": "2.10.0",
"@wordpress/blob": "2.11.0",
"@wordpress/block-directory": "1.17.5",
"@wordpress/block-editor": "5.1.4",
"@wordpress/block-library": "2.26.5",
"@wordpress/block-serialization-default-parser": "3.8.0",
"@wordpress/blocks": "6.24.2",
"@wordpress/components": "11.1.3",
"@wordpress/compose": "3.22.0",
"@wordpress/core-data": "2.24.2",
"@wordpress/data": "4.25.0",
"@wordpress/data-controls": "1.19.0",
"@wordpress/date": "3.12.0",
"@wordpress/deprecated": "2.10.0",
"@wordpress/dom": "2.15.0",
"@wordpress/dom-ready": "2.11.0",
"@wordpress/edit-post": "3.25.5",
"@wordpress/editor": "9.24.4",
"@wordpress/element": "2.18.0",
"@wordpress/escape-html": "1.10.0",
"@wordpress/format-library": "1.25.4",
"@wordpress/hooks": "2.10.0",
"@wordpress/html-entities": "2.9.0",
"@wordpress/i18n": "3.16.0",
"@wordpress/icons": "2.8.0",
"@wordpress/is-shallow-equal": "2.3.0",
"@wordpress/keyboard-shortcuts": "1.12.0",
"@wordpress/keycodes": "2.16.0",
"@wordpress/list-reusable-blocks": "1.24.2",
"@wordpress/media-utils": "1.18.0",
"@wordpress/notices": "2.11.0",
"@wordpress/nux": "3.23.2",
"@wordpress/plugins": "2.23.0",
"@wordpress/primitives": "1.10.0",
"@wordpress/priority-queue": "1.9.0",
"@wordpress/redux-routine": "3.12.0",
"@wordpress/reusable-blocks": "1.0.4",
"@wordpress/rich-text": "3.23.0",
"@wordpress/server-side-render": "1.19.2",
"@wordpress/shortcode": "2.11.0",
"@wordpress/token-list": "1.13.0",
"@wordpress/url": "2.19.0",
"@wordpress/viewport": "2.24.0",
"@wordpress/a11y": "2.14.0",
"@wordpress/annotations": "1.24.2",
"@wordpress/api-fetch": "3.21.2",
"@wordpress/autop": "2.11.0",
"@wordpress/blob": "2.12.0",
"@wordpress/block-directory": "1.18.2",
"@wordpress/block-editor": "5.2.2",
"@wordpress/block-library": "2.27.2",
"@wordpress/block-serialization-default-parser": "3.9.0",
"@wordpress/blocks": "6.25.2",
"@wordpress/components": "12.0.2",
"@wordpress/compose": "3.24.0",
"@wordpress/core-data": "2.25.2",
"@wordpress/data": "4.26.2",
"@wordpress/data-controls": "1.20.2",
"@wordpress/date": "3.13.0",
"@wordpress/deprecated": "2.11.0",
"@wordpress/dom": "2.16.1",
"@wordpress/dom-ready": "2.12.0",
"@wordpress/edit-post": "3.26.2",
"@wordpress/editor": "9.25.2",
"@wordpress/element": "2.19.0",
"@wordpress/escape-html": "1.11.0",
"@wordpress/format-library": "1.26.2",
"@wordpress/hooks": "2.11.0",
"@wordpress/html-entities": "2.10.0",
"@wordpress/i18n": "3.17.0",
"@wordpress/icons": "2.9.0",
"@wordpress/is-shallow-equal": "3.0.0",
"@wordpress/keyboard-shortcuts": "1.13.2",
"@wordpress/keycodes": "2.18.0",
"@wordpress/list-reusable-blocks": "1.25.2",
"@wordpress/media-utils": "1.19.2",
"@wordpress/notices": "2.12.2",
"@wordpress/nux": "3.24.2",
"@wordpress/plugins": "2.24.2",
"@wordpress/primitives": "1.11.0",
"@wordpress/priority-queue": "1.10.0",
"@wordpress/redux-routine": "3.13.0",
"@wordpress/reusable-blocks": "1.1.2",
"@wordpress/rich-text": "3.24.2",
"@wordpress/server-side-render": "1.20.2",
"@wordpress/shortcode": "2.12.0",
"@wordpress/token-list": "1.14.0",
"@wordpress/url": "2.21.1",
"@wordpress/viewport": "2.25.2",
"@wordpress/warning": "1.3.0",
"@wordpress/wordcount": "2.13.0",
"@wordpress/wordcount": "2.14.0",
"backbone": "1.4.0",
"clipboard": "2.0.6",
"core-js-url-browser": "3.6.4",
Expand All @@ -140,6 +140,7 @@
"lodash": "4.17.19",
"masonry-layout": "4.2.2",
"moment": "2.27.0",
"objectFitPolyfill": "2.3.4",
"polyfill-library": "3.42.0",
"react": "16.13.1",
"react-dom": "16.13.1",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/wp-includes/blocks/archives/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"supports": {
"align": true,
"html": false
}
},
"editorStyle": "wp-block-archives-editor"
}
4 changes: 3 additions & 1 deletion src/wp-includes/blocks/audio/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@
"supports": {
"anchor": true,
"align": true
}
},
"editorStyle": "wp-block-audio-editor",
"style": "wp-block-audio"
}
3 changes: 2 additions & 1 deletion src/wp-includes/blocks/block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"customClassName": false,
"html": false,
"inserter": false
}
},
"editorStyle": "wp-block-editor"
}
7 changes: 6 additions & 1 deletion src/wp-includes/blocks/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
},
"gradient": {
"type": "string"
},
"width": {
"type": "number"
}
},
"supports": {
Expand All @@ -60,5 +63,7 @@
"alignWide": false,
"reusable": false,
"__experimentalSelector": ".wp-block-button > a"
}
},
"editorStyle": "wp-block-button-editor",
"style": "wp-block-button"
}
16 changes: 13 additions & 3 deletions src/wp-includes/blocks/buttons/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
"apiVersion": 2,
"name": "core/buttons",
"category": "design",
"attributes": {
"contentJustification": {
"type": "string"
},
"orientation": {
"type": "string",
"default": "horizontal"
}
},
"supports": {
"anchor": true,
"align": true,
"alignWide": false
}
"align": [ "wide", "full" ]
},
"editorStyle": "wp-block-buttons-editor",
"style": "wp-block-buttons"
}
3 changes: 2 additions & 1 deletion src/wp-includes/blocks/calendar/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
},
"supports": {
"align": true
}
},
"style": "wp-block-calendar"
}
4 changes: 3 additions & 1 deletion src/wp-includes/blocks/categories/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@
"supports": {
"align": true,
"html": false
}
},
"editorStyle": "wp-block-categories-editor",
"style": "wp-block-categories"
}
3 changes: 2 additions & 1 deletion src/wp-includes/blocks/classic/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"className": false,
"customClassName": false,
"reusable": false
}
},
"editorStyle": "wp-block-freeform-editor"
}
6 changes: 4 additions & 2 deletions src/wp-includes/blocks/code/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
}
},
"supports": {
"anchor": true
}
"anchor": true,
"fontSize": true
},
"style": "wp-block-code"
}
4 changes: 3 additions & 1 deletion src/wp-includes/blocks/columns/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
"gradients": true,
"link": true
}
}
},
"editorStyle": "wp-block-columns-editor",
"style": "wp-block-columns"
}
8 changes: 4 additions & 4 deletions src/wp-includes/blocks/embed/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
}
},
"supports": {
"align": true,
"reusable": false,
"html": false
}
"align": true
},
"editorStyle": "wp-block-embed-editor",
"style": "wp-block-embed"
}
4 changes: 3 additions & 1 deletion src/wp-includes/blocks/file/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@
"supports": {
"anchor": true,
"align": true
}
},
"editorStyle": "wp-block-file-editor",
"style": "wp-block-file"
}
5 changes: 4 additions & 1 deletion src/wp-includes/blocks/gallery/block.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"apiVersion": 2,
"name": "core/gallery",
"category": "media",
"attributes": {
Expand Down Expand Up @@ -78,5 +79,7 @@
"supports": {
"anchor": true,
"align": true
}
},
"editorStyle": "wp-block-gallery-editor",
"style": "wp-block-gallery"
}
7 changes: 6 additions & 1 deletion src/wp-includes/blocks/group/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
},
"spacing": {
"padding": true
},
"__experimentalBorder": {
"radius": true
}
}
},
"editorStyle": "wp-block-group-editor",
"style": "wp-block-group"
}
52 changes: 45 additions & 7 deletions src/wp-includes/blocks/heading/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,51 @@
"fontSize": true,
"lineHeight": true,
"__experimentalSelector": {
"core/heading/h1": "h1",
"core/heading/h2": "h2",
"core/heading/h3": "h3",
"core/heading/h4": "h4",
"core/heading/h5": "h5",
"core/heading/h6": "h6"
"core/heading/h1": {
"selector": "h1",
"title": "h1",
"attributes": {
"level": 1
}
},
"core/heading/h2": {
"selector": "h2",
"title": "h2",
"attributes": {
"level": 2
}
},
"core/heading/h3": {
"selector": "h3",
"title": "h3",
"attributes": {
"level": 3
}
},
"core/heading/h4": {
"selector": "h4",
"title": "h4",
"attributes": {
"level": 4
}
},
"core/heading/h5": {
"selector": "h5",
"title": "h5",
"attributes": {
"level": 5
}
},
"core/heading/h6": {
"selector": "h6",
"title": "h6",
"attributes": {
"level": 6
}
}
},
"__unstablePasteTextInline": true
}
},
"editorStyle": "wp-block-heading-editor",
"style": "wp-block-heading"
}
3 changes: 2 additions & 1 deletion src/wp-includes/blocks/html/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"customClassName": false,
"className": false,
"html": false
}
},
"editorStyle": "wp-block-html-editor"
}
4 changes: 3 additions & 1 deletion src/wp-includes/blocks/image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@
},
"supports": {
"anchor": true
}
},
"editorStyle": "wp-block-image-editor",
"style": "wp-block-image"
}
2 changes: 1 addition & 1 deletion src/wp-includes/blocks/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function register_core_block_types_from_metadata() {
'audio',
'button',
'buttons',
'classic',
'code',
'column',
'columns',
'embed',
'file',
'freeform',
'gallery',
'group',
'heading',
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/blocks/latest-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
* @return string Returns the post content with latest comments added.
*/
function render_block_core_latest_comments( $attributes = array() ) {
// This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
$comments = get_comments(
// This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
apply_filters(
'widget_comments_args',
array(
Expand Down
4 changes: 3 additions & 1 deletion src/wp-includes/blocks/latest-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
"supports": {
"align": true,
"html": false
}
},
"editorStyle": "wp-block-latest-comments-editor",
"style": "wp-block-latest-comments"
}
Loading

0 comments on commit bc40569

Please sign in to comment.