diff --git a/package.json b/package.json
index b44371e13d..3731d53278 100644
|
a
|
b
|
|
| 51 | 51 | "dependencies": { |
| 52 | 52 | "@babel/polyfill": "^7.0.0", |
| 53 | 53 | "@wordpress/a11y": "^2.0.2", |
| 54 | | "@wordpress/api-fetch": "^2.1.0", |
| | 54 | "@wordpress/api-fetch": "^2.2.0", |
| 55 | 55 | "@wordpress/autop": "^2.0.2", |
| 56 | 56 | "@wordpress/blob": "^2.1.0", |
| 57 | | "@wordpress/block-library": "^2.1.4", |
| | 57 | "@wordpress/block-library": "^2.1.5", |
| 58 | 58 | "@wordpress/block-serialization-default-parser": "^1.0.1", |
| 59 | | "@wordpress/blocks": "^4.0.4", |
| 60 | | "@wordpress/components": "^4.2.1", |
| 61 | | "@wordpress/compose": "^2.0.5", |
| 62 | | "@wordpress/core-data": "^2.0.6", |
| 63 | | "@wordpress/data": "^2.1.4", |
| 64 | | "@wordpress/date": "^2.0.3", |
| 65 | | "@wordpress/deprecated": "^2.0.2", |
| | 59 | "@wordpress/blocks": "^5.0.0", |
| | 60 | "@wordpress/components": "^5.0.0", |
| | 61 | "@wordpress/compose": "^2.1.0", |
| | 62 | "@wordpress/core-data": "^2.0.7", |
| | 63 | "@wordpress/data": "^3.0.0", |
| | 64 | "@wordpress/date": "^2.1.0", |
| | 65 | "@wordpress/deprecated": "^2.0.3", |
| 66 | 66 | "@wordpress/dom": "^2.0.4", |
| 67 | 67 | "@wordpress/dom-ready": "^2.0.2", |
| 68 | | "@wordpress/edit-post": "^1.0.4", |
| 69 | | "@wordpress/editor": "^5.0.1", |
| 70 | | "@wordpress/element": "^2.1.4", |
| | 68 | "@wordpress/edit-post": "^2.0.0", |
| | 69 | "@wordpress/editor": "^6.0.0", |
| | 70 | "@wordpress/element": "^2.1.5", |
| 71 | 71 | "@wordpress/escape-html": "^1.0.1", |
| 72 | | "@wordpress/hooks": "^2.0.2", |
| | 72 | "@wordpress/format-library": "^1.0.0", |
| | 73 | "@wordpress/hooks": "^2.0.3", |
| 73 | 74 | "@wordpress/html-entities": "^2.0.2", |
| 74 | 75 | "@wordpress/i18n": "^3.0.1", |
| 75 | 76 | "@wordpress/is-shallow-equal": "^1.1.4", |
| 76 | 77 | "@wordpress/keycodes": "^2.0.2", |
| 77 | | "@wordpress/list-reusable-blocks": "^1.1.4", |
| 78 | | "@wordpress/nux": "^2.0.6", |
| 79 | | "@wordpress/plugins": "^2.0.5", |
| | 78 | "@wordpress/list-reusable-blocks": "^1.1.5", |
| | 79 | "@wordpress/notices": "^1.0.0", |
| | 80 | "@wordpress/nux": "^2.0.7", |
| | 81 | "@wordpress/plugins": "^2.0.6", |
| 80 | 82 | "@wordpress/redux-routine": "^3.0.3", |
| 81 | | "@wordpress/rich-text": "^1.0.1", |
| | 83 | "@wordpress/rich-text": "^1.0.2", |
| 82 | 84 | "@wordpress/shortcode": "^2.0.2", |
| 83 | 85 | "@wordpress/token-list": "^1.0.2", |
| 84 | | "@wordpress/url": "^2.1.0", |
| 85 | | "@wordpress/viewport": "^2.0.5", |
| 86 | | "@wordpress/wordcount": "^2.0.2", |
| | 86 | "@wordpress/url": "^2.2.0", |
| | 87 | "@wordpress/viewport": "^2.0.6", |
| | 88 | "@wordpress/wordcount": "^2.0.3", |
| 87 | 89 | "element-closest": "^2.0.2", |
| 88 | 90 | "formdata-polyfill": "^3.0.12", |
| 89 | 91 | "lodash": "^4.17.11", |
| … |
… |
|
| 93 | 95 | "react-dom": "^16.5.2", |
| 94 | 96 | "whatwg-fetch": "^3.0.0" |
| 95 | 97 | }, |
| 96 | | "scripts":{ |
| | 98 | "scripts": { |
| 97 | 99 | "grunt": "grunt" |
| 98 | 100 | } |
| 99 | 101 | } |
diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php
index f242b48eb9..8e9d6e05b0 100644
|
a
|
b
|
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); |
| 37 | 37 | |
| 38 | 38 | wp_enqueue_script( 'heartbeat' ); |
| 39 | 39 | wp_enqueue_script( 'wp-edit-post' ); |
| | 40 | wp_enqueue_script( 'wp-format-library' ); |
| 40 | 41 | |
| 41 | 42 | $rest_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; |
| 42 | 43 | |
| … |
… |
wp_enqueue_editor(); |
| 355 | 356 | * Styles |
| 356 | 357 | */ |
| 357 | 358 | wp_enqueue_style( 'wp-edit-post' ); |
| | 359 | wp_enqueue_style( 'wp-format-library' ); |
| 358 | 360 | |
| 359 | 361 | /** |
| 360 | 362 | * Fires after block assets have been enqueued for the editing interface. |
diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
index a95ff78bc6..2f444d293b 100644
|
a
|
b
|
function get_block_categories( $post ) { |
| 1958 | 1958 | array( |
| 1959 | 1959 | 'slug' => 'common', |
| 1960 | 1960 | 'title' => __( 'Common Blocks' ), |
| | 1961 | 'icon' => 'screenoptions', |
| 1961 | 1962 | ), |
| 1962 | 1963 | array( |
| 1963 | 1964 | 'slug' => 'formatting', |
| 1964 | 1965 | 'title' => __( 'Formatting' ), |
| | 1966 | 'icon' => null, |
| 1965 | 1967 | ), |
| 1966 | 1968 | array( |
| 1967 | 1969 | 'slug' => 'layout', |
| 1968 | 1970 | 'title' => __( 'Layout Elements' ), |
| | 1971 | 'icon' => null, |
| 1969 | 1972 | ), |
| 1970 | 1973 | array( |
| 1971 | 1974 | 'slug' => 'widgets', |
| 1972 | 1975 | 'title' => __( 'Widgets' ), |
| | 1976 | 'icon' => null, |
| 1973 | 1977 | ), |
| 1974 | 1978 | array( |
| 1975 | 1979 | 'slug' => 'embed', |
| 1976 | 1980 | 'title' => __( 'Embeds' ), |
| | 1981 | 'icon' => null, |
| 1977 | 1982 | ), |
| 1978 | 1983 | array( |
| 1979 | 1984 | 'slug' => 'reusable', |
| 1980 | 1985 | 'title' => __( 'Reusable Blocks' ), |
| | 1986 | 'icon' => null, |
| 1981 | 1987 | ), |
| 1982 | 1988 | ); |
| 1983 | 1989 | |
diff --git a/src/wp-includes/blocks/archives.php b/src/wp-includes/blocks/archives.php
index adcc61c233..97c8849ffc 100644
|
a
|
b
|
function render_block_core_archives( $attributes ) { |
| 29 | 29 | |
| 30 | 30 | if ( ! empty( $attributes['displayAsDropdown'] ) ) { |
| 31 | 31 | |
| | 32 | $class .= ' wp-block-archives-dropdown'; |
| | 33 | |
| 32 | 34 | $dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) ); |
| 33 | 35 | $title = __( 'Archives', 'gutenberg' ); |
| 34 | 36 | |
| … |
… |
function render_block_core_archives( $attributes ) { |
| 77 | 79 | ); |
| 78 | 80 | } else { |
| 79 | 81 | |
| | 82 | $class .= ' wp-block-archives-list'; |
| | 83 | |
| 80 | 84 | /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */ |
| 81 | 85 | $archives_args = apply_filters( |
| 82 | 86 | 'widget_archives_args', |
diff --git a/src/wp-includes/blocks/latest-posts.php b/src/wp-includes/blocks/latest-posts.php
index 070abafeb4..b395d8a2ba 100644
|
a
|
b
|
function render_block_core_latest_posts( $attributes ) { |
| 62 | 62 | $class .= ' columns-' . $attributes['columns']; |
| 63 | 63 | } |
| 64 | 64 | |
| | 65 | if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) { |
| | 66 | $class .= ' has-dates'; |
| | 67 | } |
| | 68 | |
| 65 | 69 | if ( isset( $attributes['className'] ) ) { |
| 66 | 70 | $class .= ' ' . $attributes['className']; |
| 67 | 71 | } |
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 93783ebf6c..a0d4d2465f 100644
|
a
|
b
|
function wp_default_packages_scripts( &$scripts ) { |
| 175 | 175 | 'wp-blob', |
| 176 | 176 | 'wp-block-serialization-default-parser', |
| 177 | 177 | 'wp-data', |
| 178 | | 'wp-deprecated', |
| 179 | 178 | 'wp-dom', |
| 180 | 179 | 'wp-element', |
| 181 | 180 | 'wp-hooks', |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 184 | 183 | 'wp-polyfill', |
| 185 | 184 | 'wp-shortcode', |
| 186 | 185 | 'lodash', |
| 187 | | 'wp-rich-text', |
| 188 | 186 | ), |
| 189 | 187 | 'block-library' => array( |
| 190 | 188 | 'editor', |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 225 | 223 | 'wp-is-shallow-equal', |
| 226 | 224 | 'wp-keycodes', |
| 227 | 225 | 'wp-polyfill', |
| 228 | | 'wp-url', |
| 229 | 226 | 'wp-rich-text', |
| | 227 | 'wp-url', |
| | 228 | ), |
| | 229 | 'compose' => array( |
| | 230 | 'lodash', |
| | 231 | 'wp-deprecated', |
| | 232 | 'wp-element', |
| | 233 | 'wp-is-shallow-equal', |
| | 234 | 'wp-polyfill' |
| 230 | 235 | ), |
| 231 | | 'compose' => array( 'lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill' ), |
| 232 | 236 | 'core-data' => array( 'wp-data', 'wp-api-fetch', 'wp-polyfill', 'wp-url', 'lodash' ), |
| 233 | 237 | 'data' => array( |
| 234 | 238 | 'lodash', |
| 235 | 239 | 'wp-compose', |
| 236 | | 'wp-deprecated', |
| 237 | 240 | 'wp-element', |
| 238 | 241 | 'wp-is-shallow-equal', |
| 239 | 242 | 'wp-polyfill', |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 291 | 294 | 'wp-i18n', |
| 292 | 295 | 'wp-is-shallow-equal', |
| 293 | 296 | 'wp-keycodes', |
| | 297 | 'wp-notices', |
| 294 | 298 | 'wp-nux', |
| 295 | 299 | 'wp-polyfill', |
| 296 | 300 | 'wp-tinymce', |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 302 | 306 | ), |
| 303 | 307 | 'element' => array( 'wp-polyfill', 'react', 'react-dom', 'lodash', 'wp-escape-html' ), |
| 304 | 308 | 'escape-html' => array( 'wp-polyfill' ), |
| | 309 | 'format-library' => array( |
| | 310 | 'wp-components', |
| | 311 | 'wp-dom', |
| | 312 | 'wp-editor', |
| | 313 | 'wp-element', |
| | 314 | 'wp-i18n', |
| | 315 | 'wp-keycodes', |
| | 316 | 'wp-polyfill', |
| | 317 | 'wp-rich-text', |
| | 318 | 'wp-url', |
| | 319 | ), |
| 305 | 320 | 'hooks' => array( 'wp-polyfill' ), |
| 306 | 321 | 'html-entities' => array( 'wp-polyfill' ), |
| 307 | 322 | 'i18n' => array( 'wp-polyfill' ), |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 316 | 331 | 'wp-i18n', |
| 317 | 332 | 'wp-polyfill', |
| 318 | 333 | ), |
| | 334 | 'notices' => array( |
| | 335 | 'lodash', |
| | 336 | 'wp-a11y', |
| | 337 | 'wp-data', |
| | 338 | 'wp-polyfill-ecmascript', |
| | 339 | ), |
| 319 | 340 | 'nux' => array( |
| 320 | 341 | 'wp-element', |
| 321 | 342 | 'wp-components', |
| 322 | 343 | 'wp-compose', |
| 323 | 344 | 'wp-data', |
| | 345 | 'wp-deprecated', |
| 324 | 346 | 'wp-i18n', |
| 325 | 347 | 'wp-polyfill', |
| 326 | 348 | 'lodash', |
| 327 | 349 | ), |
| 328 | 350 | 'plugins' => array( 'lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill' ), |
| 329 | 351 | 'redux-routine' => array( 'wp-polyfill' ), |
| 330 | | 'rich-text' => array( 'wp-polyfill', 'wp-escape-html', 'lodash' ), |
| | 352 | 'rich-text' => array( |
| | 353 | 'lodash', |
| | 354 | 'wp-blocks', |
| | 355 | 'wp-data', |
| | 356 | 'wp-escape-html', |
| | 357 | 'wp-polyfill', |
| | 358 | ), |
| 331 | 359 | 'shortcode' => array( 'wp-polyfill', 'lodash' ), |
| 332 | 360 | 'token-list' => array( 'lodash', 'wp-polyfill' ), |
| 333 | 361 | 'url' => array( 'wp-polyfill' ), |
| … |
… |
function wp_default_packages_inline_scripts( &$scripts ) { |
| 380 | 408 | ' var storageKey = "WP_DATA_USER_" + userId;', |
| 381 | 409 | ' wp.data', |
| 382 | 410 | ' .use( wp.data.plugins.persistence, { storageKey: storageKey } )', |
| 383 | | ' .use( wp.data.plugins.asyncGenerator )', |
| 384 | 411 | ' .use( wp.data.plugins.controls );', |
| 385 | 412 | '} )()', |
| 386 | 413 | ) |
| … |
… |
function wp_default_styles( &$styles ) { |
| 1632 | 1659 | 'components' => array(), |
| 1633 | 1660 | 'edit-post' => array( 'wp-components', 'wp-editor', 'wp-edit-blocks', 'wp-block-library', 'wp-nux' ), |
| 1634 | 1661 | 'editor' => array( 'wp-components', 'wp-editor-font', 'wp-nux' ), |
| | 1662 | 'format-library' => array(), |
| 1635 | 1663 | 'list-reusable-blocks' => array( 'wp-components' ), |
| 1636 | 1664 | 'nux' => array( 'wp-components' ), |
| 1637 | 1665 | ); |
diff --git a/tools/webpack/packages.js b/tools/webpack/packages.js
index 4ed4bc23fe..3a9f67e33a 100644
|
a
|
b
|
module.exports = function( env = { environment: 'production', watch: false } ) { |
| 74 | 74 | 'editor', |
| 75 | 75 | 'element', |
| 76 | 76 | 'escape-html', |
| | 77 | 'format-library', |
| 77 | 78 | 'hooks', |
| 78 | 79 | 'html-entities', |
| 79 | 80 | 'i18n', |
| 80 | 81 | 'is-shallow-equal', |
| 81 | 82 | 'keycodes', |
| 82 | 83 | 'list-reusable-blocks', |
| | 84 | 'notices', |
| 83 | 85 | 'nux', |
| 84 | 86 | 'plugins', |
| 85 | 87 | 'redux-routine', |