mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Build Tools: Upgrade @wordpress
packages to the latest version.
This also includes the new `@wordpress/format-library` and `@wordpress/notices` packages. `package-lock.json` has been completely regenerated in this commit. See #45145. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43840 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b2bd3994d4
commit
f5788217b3
30965
package-lock.json
generated
30965
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
44
package.json
44
package.json
@ -51,39 +51,41 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/polyfill": "^7.0.0",
|
"@babel/polyfill": "^7.0.0",
|
||||||
"@wordpress/a11y": "^2.0.2",
|
"@wordpress/a11y": "^2.0.2",
|
||||||
"@wordpress/api-fetch": "^2.1.0",
|
"@wordpress/api-fetch": "^2.2.0",
|
||||||
"@wordpress/autop": "^2.0.2",
|
"@wordpress/autop": "^2.0.2",
|
||||||
"@wordpress/blob": "^2.1.0",
|
"@wordpress/blob": "^2.1.0",
|
||||||
"@wordpress/block-library": "^2.1.4",
|
"@wordpress/block-library": "^2.1.5",
|
||||||
"@wordpress/block-serialization-default-parser": "^1.0.1",
|
"@wordpress/block-serialization-default-parser": "^1.0.1",
|
||||||
"@wordpress/blocks": "^4.0.4",
|
"@wordpress/blocks": "^5.0.0",
|
||||||
"@wordpress/components": "^4.2.1",
|
"@wordpress/components": "^5.0.0",
|
||||||
"@wordpress/compose": "^2.0.5",
|
"@wordpress/compose": "^2.1.0",
|
||||||
"@wordpress/core-data": "^2.0.6",
|
"@wordpress/core-data": "^2.0.7",
|
||||||
"@wordpress/data": "^2.1.4",
|
"@wordpress/data": "^3.0.0",
|
||||||
"@wordpress/date": "^2.0.3",
|
"@wordpress/date": "^2.1.0",
|
||||||
"@wordpress/deprecated": "^2.0.2",
|
"@wordpress/deprecated": "^2.0.3",
|
||||||
"@wordpress/dom": "^2.0.4",
|
"@wordpress/dom": "^2.0.4",
|
||||||
"@wordpress/dom-ready": "^2.0.2",
|
"@wordpress/dom-ready": "^2.0.2",
|
||||||
"@wordpress/edit-post": "^1.0.4",
|
"@wordpress/edit-post": "^2.0.0",
|
||||||
"@wordpress/editor": "^5.0.1",
|
"@wordpress/editor": "^6.0.0",
|
||||||
"@wordpress/element": "^2.1.4",
|
"@wordpress/element": "^2.1.5",
|
||||||
"@wordpress/escape-html": "^1.0.1",
|
"@wordpress/escape-html": "^1.0.1",
|
||||||
"@wordpress/hooks": "^2.0.2",
|
"@wordpress/format-library": "^1.0.0",
|
||||||
|
"@wordpress/hooks": "^2.0.3",
|
||||||
"@wordpress/html-entities": "^2.0.2",
|
"@wordpress/html-entities": "^2.0.2",
|
||||||
"@wordpress/i18n": "^3.0.1",
|
"@wordpress/i18n": "^3.0.1",
|
||||||
"@wordpress/is-shallow-equal": "^1.1.4",
|
"@wordpress/is-shallow-equal": "^1.1.4",
|
||||||
"@wordpress/keycodes": "^2.0.2",
|
"@wordpress/keycodes": "^2.0.2",
|
||||||
"@wordpress/list-reusable-blocks": "^1.1.4",
|
"@wordpress/list-reusable-blocks": "^1.1.5",
|
||||||
"@wordpress/nux": "^2.0.6",
|
"@wordpress/notices": "^1.0.0",
|
||||||
"@wordpress/plugins": "^2.0.5",
|
"@wordpress/nux": "^2.0.7",
|
||||||
|
"@wordpress/plugins": "^2.0.6",
|
||||||
"@wordpress/redux-routine": "^3.0.3",
|
"@wordpress/redux-routine": "^3.0.3",
|
||||||
"@wordpress/rich-text": "^1.0.1",
|
"@wordpress/rich-text": "^1.0.2",
|
||||||
"@wordpress/shortcode": "^2.0.2",
|
"@wordpress/shortcode": "^2.0.2",
|
||||||
"@wordpress/token-list": "^1.0.2",
|
"@wordpress/token-list": "^1.0.2",
|
||||||
"@wordpress/url": "^2.1.0",
|
"@wordpress/url": "^2.2.0",
|
||||||
"@wordpress/viewport": "^2.0.5",
|
"@wordpress/viewport": "^2.0.6",
|
||||||
"@wordpress/wordcount": "^2.0.2",
|
"@wordpress/wordcount": "^2.0.3",
|
||||||
"element-closest": "^2.0.2",
|
"element-closest": "^2.0.2",
|
||||||
"formdata-polyfill": "^3.0.12",
|
"formdata-polyfill": "^3.0.12",
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.11",
|
||||||
@ -93,7 +95,7 @@
|
|||||||
"react-dom": "^16.5.2",
|
"react-dom": "^16.5.2",
|
||||||
"whatwg-fetch": "^3.0.0"
|
"whatwg-fetch": "^3.0.0"
|
||||||
},
|
},
|
||||||
"scripts":{
|
"scripts": {
|
||||||
"grunt": "grunt"
|
"grunt": "grunt"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
|
|||||||
|
|
||||||
wp_enqueue_script( 'heartbeat' );
|
wp_enqueue_script( 'heartbeat' );
|
||||||
wp_enqueue_script( 'wp-edit-post' );
|
wp_enqueue_script( 'wp-edit-post' );
|
||||||
|
wp_enqueue_script( 'wp-format-library' );
|
||||||
|
|
||||||
$rest_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name;
|
$rest_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name;
|
||||||
|
|
||||||
@ -355,6 +356,7 @@ wp_enqueue_editor();
|
|||||||
* Styles
|
* Styles
|
||||||
*/
|
*/
|
||||||
wp_enqueue_style( 'wp-edit-post' );
|
wp_enqueue_style( 'wp-edit-post' );
|
||||||
|
wp_enqueue_style( 'wp-format-library' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires after block assets have been enqueued for the editing interface.
|
* Fires after block assets have been enqueued for the editing interface.
|
||||||
|
@ -1958,26 +1958,32 @@ function get_block_categories( $post ) {
|
|||||||
array(
|
array(
|
||||||
'slug' => 'common',
|
'slug' => 'common',
|
||||||
'title' => __( 'Common Blocks' ),
|
'title' => __( 'Common Blocks' ),
|
||||||
|
'icon' => 'screenoptions',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'slug' => 'formatting',
|
'slug' => 'formatting',
|
||||||
'title' => __( 'Formatting' ),
|
'title' => __( 'Formatting' ),
|
||||||
|
'icon' => null,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'slug' => 'layout',
|
'slug' => 'layout',
|
||||||
'title' => __( 'Layout Elements' ),
|
'title' => __( 'Layout Elements' ),
|
||||||
|
'icon' => null,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'slug' => 'widgets',
|
'slug' => 'widgets',
|
||||||
'title' => __( 'Widgets' ),
|
'title' => __( 'Widgets' ),
|
||||||
|
'icon' => null,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'slug' => 'embed',
|
'slug' => 'embed',
|
||||||
'title' => __( 'Embeds' ),
|
'title' => __( 'Embeds' ),
|
||||||
|
'icon' => null,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'slug' => 'reusable',
|
'slug' => 'reusable',
|
||||||
'title' => __( 'Reusable Blocks' ),
|
'title' => __( 'Reusable Blocks' ),
|
||||||
|
'icon' => null,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@ function render_block_core_archives( $attributes ) {
|
|||||||
|
|
||||||
if ( ! empty( $attributes['displayAsDropdown'] ) ) {
|
if ( ! empty( $attributes['displayAsDropdown'] ) ) {
|
||||||
|
|
||||||
|
$class .= ' wp-block-archives-dropdown';
|
||||||
|
|
||||||
$dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
|
$dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
|
||||||
$title = __( 'Archives', 'gutenberg' );
|
$title = __( 'Archives', 'gutenberg' );
|
||||||
|
|
||||||
@ -77,6 +79,8 @@ function render_block_core_archives( $attributes ) {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
$class .= ' wp-block-archives-list';
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
|
/** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
|
||||||
$archives_args = apply_filters(
|
$archives_args = apply_filters(
|
||||||
'widget_archives_args',
|
'widget_archives_args',
|
||||||
|
@ -62,6 +62,10 @@ function render_block_core_latest_posts( $attributes ) {
|
|||||||
$class .= ' columns-' . $attributes['columns'];
|
$class .= ' columns-' . $attributes['columns'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) {
|
||||||
|
$class .= ' has-dates';
|
||||||
|
}
|
||||||
|
|
||||||
if ( isset( $attributes['className'] ) ) {
|
if ( isset( $attributes['className'] ) ) {
|
||||||
$class .= ' ' . $attributes['className'];
|
$class .= ' ' . $attributes['className'];
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,6 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||||||
'wp-blob',
|
'wp-blob',
|
||||||
'wp-block-serialization-default-parser',
|
'wp-block-serialization-default-parser',
|
||||||
'wp-data',
|
'wp-data',
|
||||||
'wp-deprecated',
|
|
||||||
'wp-dom',
|
'wp-dom',
|
||||||
'wp-element',
|
'wp-element',
|
||||||
'wp-hooks',
|
'wp-hooks',
|
||||||
@ -184,7 +183,6 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||||||
'wp-polyfill',
|
'wp-polyfill',
|
||||||
'wp-shortcode',
|
'wp-shortcode',
|
||||||
'lodash',
|
'lodash',
|
||||||
'wp-rich-text',
|
|
||||||
),
|
),
|
||||||
'block-library' => array(
|
'block-library' => array(
|
||||||
'editor',
|
'editor',
|
||||||
@ -225,15 +223,20 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||||||
'wp-is-shallow-equal',
|
'wp-is-shallow-equal',
|
||||||
'wp-keycodes',
|
'wp-keycodes',
|
||||||
'wp-polyfill',
|
'wp-polyfill',
|
||||||
'wp-url',
|
|
||||||
'wp-rich-text',
|
'wp-rich-text',
|
||||||
|
'wp-url',
|
||||||
|
),
|
||||||
|
'compose' => array(
|
||||||
|
'lodash',
|
||||||
|
'wp-deprecated',
|
||||||
|
'wp-element',
|
||||||
|
'wp-is-shallow-equal',
|
||||||
|
'wp-polyfill'
|
||||||
),
|
),
|
||||||
'compose' => array( 'lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill' ),
|
|
||||||
'core-data' => array( 'wp-data', 'wp-api-fetch', 'wp-polyfill', 'wp-url', 'lodash' ),
|
'core-data' => array( 'wp-data', 'wp-api-fetch', 'wp-polyfill', 'wp-url', 'lodash' ),
|
||||||
'data' => array(
|
'data' => array(
|
||||||
'lodash',
|
'lodash',
|
||||||
'wp-compose',
|
'wp-compose',
|
||||||
'wp-deprecated',
|
|
||||||
'wp-element',
|
'wp-element',
|
||||||
'wp-is-shallow-equal',
|
'wp-is-shallow-equal',
|
||||||
'wp-polyfill',
|
'wp-polyfill',
|
||||||
@ -291,6 +294,7 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||||||
'wp-i18n',
|
'wp-i18n',
|
||||||
'wp-is-shallow-equal',
|
'wp-is-shallow-equal',
|
||||||
'wp-keycodes',
|
'wp-keycodes',
|
||||||
|
'wp-notices',
|
||||||
'wp-nux',
|
'wp-nux',
|
||||||
'wp-polyfill',
|
'wp-polyfill',
|
||||||
'wp-tinymce',
|
'wp-tinymce',
|
||||||
@ -302,6 +306,17 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||||||
),
|
),
|
||||||
'element' => array( 'wp-polyfill', 'react', 'react-dom', 'lodash', 'wp-escape-html' ),
|
'element' => array( 'wp-polyfill', 'react', 'react-dom', 'lodash', 'wp-escape-html' ),
|
||||||
'escape-html' => array( 'wp-polyfill' ),
|
'escape-html' => array( 'wp-polyfill' ),
|
||||||
|
'format-library' => array(
|
||||||
|
'wp-components',
|
||||||
|
'wp-dom',
|
||||||
|
'wp-editor',
|
||||||
|
'wp-element',
|
||||||
|
'wp-i18n',
|
||||||
|
'wp-keycodes',
|
||||||
|
'wp-polyfill',
|
||||||
|
'wp-rich-text',
|
||||||
|
'wp-url',
|
||||||
|
),
|
||||||
'hooks' => array( 'wp-polyfill' ),
|
'hooks' => array( 'wp-polyfill' ),
|
||||||
'html-entities' => array( 'wp-polyfill' ),
|
'html-entities' => array( 'wp-polyfill' ),
|
||||||
'i18n' => array( 'wp-polyfill' ),
|
'i18n' => array( 'wp-polyfill' ),
|
||||||
@ -316,18 +331,31 @@ function wp_default_packages_scripts( &$scripts ) {
|
|||||||
'wp-i18n',
|
'wp-i18n',
|
||||||
'wp-polyfill',
|
'wp-polyfill',
|
||||||
),
|
),
|
||||||
|
'notices' => array(
|
||||||
|
'lodash',
|
||||||
|
'wp-a11y',
|
||||||
|
'wp-data',
|
||||||
|
'wp-polyfill-ecmascript',
|
||||||
|
),
|
||||||
'nux' => array(
|
'nux' => array(
|
||||||
'wp-element',
|
'wp-element',
|
||||||
'wp-components',
|
'wp-components',
|
||||||
'wp-compose',
|
'wp-compose',
|
||||||
'wp-data',
|
'wp-data',
|
||||||
|
'wp-deprecated',
|
||||||
'wp-i18n',
|
'wp-i18n',
|
||||||
'wp-polyfill',
|
'wp-polyfill',
|
||||||
'lodash',
|
'lodash',
|
||||||
),
|
),
|
||||||
'plugins' => array( 'lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill' ),
|
'plugins' => array( 'lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill' ),
|
||||||
'redux-routine' => array( 'wp-polyfill' ),
|
'redux-routine' => array( 'wp-polyfill' ),
|
||||||
'rich-text' => array( 'wp-polyfill', 'wp-escape-html', 'lodash' ),
|
'rich-text' => array(
|
||||||
|
'lodash',
|
||||||
|
'wp-blocks',
|
||||||
|
'wp-data',
|
||||||
|
'wp-escape-html',
|
||||||
|
'wp-polyfill',
|
||||||
|
),
|
||||||
'shortcode' => array( 'wp-polyfill', 'lodash' ),
|
'shortcode' => array( 'wp-polyfill', 'lodash' ),
|
||||||
'token-list' => array( 'lodash', 'wp-polyfill' ),
|
'token-list' => array( 'lodash', 'wp-polyfill' ),
|
||||||
'url' => array( 'wp-polyfill' ),
|
'url' => array( 'wp-polyfill' ),
|
||||||
@ -380,7 +408,6 @@ function wp_default_packages_inline_scripts( &$scripts ) {
|
|||||||
' var storageKey = "WP_DATA_USER_" + userId;',
|
' var storageKey = "WP_DATA_USER_" + userId;',
|
||||||
' wp.data',
|
' wp.data',
|
||||||
' .use( wp.data.plugins.persistence, { storageKey: storageKey } )',
|
' .use( wp.data.plugins.persistence, { storageKey: storageKey } )',
|
||||||
' .use( wp.data.plugins.asyncGenerator )',
|
|
||||||
' .use( wp.data.plugins.controls );',
|
' .use( wp.data.plugins.controls );',
|
||||||
'} )()',
|
'} )()',
|
||||||
)
|
)
|
||||||
@ -1632,6 +1659,7 @@ function wp_default_styles( &$styles ) {
|
|||||||
'components' => array(),
|
'components' => array(),
|
||||||
'edit-post' => array( 'wp-components', 'wp-editor', 'wp-edit-blocks', 'wp-block-library', 'wp-nux' ),
|
'edit-post' => array( 'wp-components', 'wp-editor', 'wp-edit-blocks', 'wp-block-library', 'wp-nux' ),
|
||||||
'editor' => array( 'wp-components', 'wp-editor-font', 'wp-nux' ),
|
'editor' => array( 'wp-components', 'wp-editor-font', 'wp-nux' ),
|
||||||
|
'format-library' => array(),
|
||||||
'list-reusable-blocks' => array( 'wp-components' ),
|
'list-reusable-blocks' => array( 'wp-components' ),
|
||||||
'nux' => array( 'wp-components' ),
|
'nux' => array( 'wp-components' ),
|
||||||
);
|
);
|
||||||
|
@ -74,12 +74,14 @@ module.exports = function( env = { environment: 'production', watch: false } ) {
|
|||||||
'editor',
|
'editor',
|
||||||
'element',
|
'element',
|
||||||
'escape-html',
|
'escape-html',
|
||||||
|
'format-library',
|
||||||
'hooks',
|
'hooks',
|
||||||
'html-entities',
|
'html-entities',
|
||||||
'i18n',
|
'i18n',
|
||||||
'is-shallow-equal',
|
'is-shallow-equal',
|
||||||
'keycodes',
|
'keycodes',
|
||||||
'list-reusable-blocks',
|
'list-reusable-blocks',
|
||||||
|
'notices',
|
||||||
'nux',
|
'nux',
|
||||||
'plugins',
|
'plugins',
|
||||||
'redux-routine',
|
'redux-routine',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user