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.

Props pento.
Merges [43840] to trunk.
See #45145.

Built from https://develop.svn.wordpress.org/trunk@44177


git-svn-id: http://core.svn.wordpress.org/trunk@44007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
atimmer
2018-12-14 10:55:01 +00:00
parent 0962e186e8
commit a603510b73
56 changed files with 115 additions and 67 deletions

View File

@@ -175,7 +175,6 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-blob',
'wp-block-serialization-default-parser',
'wp-data',
'wp-deprecated',
'wp-dom',
'wp-element',
'wp-hooks',
@@ -184,7 +183,6 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-polyfill',
'wp-shortcode',
'lodash',
'wp-rich-text',
),
'block-library' => array(
'editor',
@@ -225,15 +223,20 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-is-shallow-equal',
'wp-keycodes',
'wp-polyfill',
'wp-url',
'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' ),
'data' => array(
'lodash',
'wp-compose',
'wp-deprecated',
'wp-element',
'wp-is-shallow-equal',
'wp-polyfill',
@@ -291,6 +294,7 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-i18n',
'wp-is-shallow-equal',
'wp-keycodes',
'wp-notices',
'wp-nux',
'wp-polyfill',
'wp-tinymce',
@@ -302,6 +306,17 @@ function wp_default_packages_scripts( &$scripts ) {
),
'element' => array( 'wp-polyfill', 'react', 'react-dom', 'lodash', 'wp-escape-html' ),
'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' ),
'html-entities' => array( 'wp-polyfill' ),
'i18n' => array( 'wp-polyfill' ),
@@ -316,18 +331,31 @@ function wp_default_packages_scripts( &$scripts ) {
'wp-i18n',
'wp-polyfill',
),
'notices' => array(
'lodash',
'wp-a11y',
'wp-data',
'wp-polyfill-ecmascript',
),
'nux' => array(
'wp-element',
'wp-components',
'wp-compose',
'wp-data',
'wp-deprecated',
'wp-i18n',
'wp-polyfill',
'lodash',
),
'plugins' => array( 'lodash', 'wp-compose', 'wp-element', 'wp-hooks', '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' ),
'token-list' => array( 'lodash', 'wp-polyfill' ),
'url' => array( 'wp-polyfill' ),
@@ -380,7 +408,6 @@ function wp_default_packages_inline_scripts( &$scripts ) {
' var storageKey = "WP_DATA_USER_" + userId;',
' wp.data',
' .use( wp.data.plugins.persistence, { storageKey: storageKey } )',
' .use( wp.data.plugins.asyncGenerator )',
' .use( wp.data.plugins.controls );',
'} )()',
)
@@ -1815,6 +1842,7 @@ function wp_default_styles( &$styles ) {
'components' => array(),
'edit-post' => array( 'wp-components', 'wp-editor', 'wp-edit-blocks', 'wp-block-library', 'wp-nux' ),
'editor' => array( 'wp-components', 'wp-editor-font', 'wp-nux' ),
'format-library' => array(),
'list-reusable-blocks' => array( 'wp-components' ),
'nux' => array( 'wp-components' ),
);