Make WordPress Core


Ignore:
Timestamp:
09/26/2023 02:20:18 PM (14 months ago)
Author:
karmatosed
Message:

Update editor related npm packages

The npm packages needed updating for 6.4 to the latest.

Props mikachan, mukesdpanchal27, luisherranz, youknowriad, tellthemachines, gziolo, ockham, michalczaplinski

Fixes #59411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r56687 r56710  
    109109        'react'                       => '18.2.0',
    110110        'react-dom'                   => '18.2.0',
    111         'regenerator-runtime'         => '0.14.0',
     111        'regenerator-runtime'         => '0.13.11',
    112112        'moment'                      => '2.29.4',
    113113        'lodash'                      => '4.17.19',
     
    279279     */
    280280    $assets = include ABSPATH . WPINC . "/assets/script-loader-packages{$suffix}.php";
     281
     282    // Add the private version of the Interactivity API manually.
     283    $scripts->add( 'wp-interactivity', '/wp-includes/js/dist/interactivity.min.js' );
     284    did_action( 'init' ) && $scripts->add_data( 'wp-interactivity', 'strategy', 'defer' );
    281285
    282286    foreach ( $assets as $file_name => $package_data ) {
     
    16851689        'wp-reusable-blocks',
    16861690        'wp-block-editor-content',
     1691        'wp-patterns',
    16871692    );
    16881693
     
    17271732            'wp-block-editor',
    17281733            'wp-reusable-blocks',
     1734            'wp-patterns',
    17291735        ),
    17301736        'format-library'       => array(),
    17311737        'list-reusable-blocks' => array( 'wp-components' ),
    17321738        'reusable-blocks'      => array( 'wp-components' ),
     1739        'patterns'             => array( 'wp-components' ),
    17331740        'nux'                  => array( 'wp-components' ),
    17341741        'widgets'              => array(
     
    17411748            'wp-block-library',
    17421749            'wp-reusable-blocks',
     1750            'wp-patterns',
    17431751        ),
    17441752        'customize-widgets'    => array(
     
    17481756            'wp-block-library',
    17491757            'wp-reusable-blocks',
     1758            'wp-patterns',
    17501759        ),
    17511760        'edit-site'            => array(
     
    18191828        'wp-list-reusable-blocks',
    18201829        'wp-reusable-blocks',
     1830        'wp-patterns',
    18211831        'wp-nux',
    18221832        'wp-widgets',
Note: See TracChangeset for help on using the changeset viewer.