Make WordPress Core


Ignore:
Timestamp:
06/29/2021 03:08:16 PM (4 years ago)
Author:
youknowriad
Message:

Build: Split packages and blocks to their webpack configs.

This also adds support for the viewScript for blocks fixing
the PDF preview for file blocks.

Props desrosj, gziolo.
See #53397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-type.php

    r51244 r51259  
    157157
    158158    /**
    159      * Block type editor script handle.
     159     * Block type editor only script handle.
    160160     *
    161161     * @since 5.0.0
     
    165165
    166166    /**
    167      * Block type front end script handle.
     167     * Block type front end and editor script handle.
    168168     *
    169169     * @since 5.0.0
     
    173173
    174174    /**
    175      * Block type editor style handle.
     175     * Block type front end only script handle.
     176     *
     177     * @since 5.0.0
     178     * @var string|null
     179     */
     180    public $view_script = null;
     181
     182    /**
     183     * Block type editor only style handle.
    176184     *
    177185     * @since 5.0.0
     
    181189
    182190    /**
    183      * Block type front end style handle.
     191     * Block type front end and editor style handle.
    184192     *
    185193     * @since 5.0.0
     
    226234     *     @type array         $uses_context     Context values inherited by blocks of this type.
    227235     *     @type array|null    $provides_context Context provided by blocks of this type.
    228      *     @type string|null   $editor_script    Block type editor script handle.
    229      *     @type string|null   $script           Block type front end script handle.
    230      *     @type string|null   $editor_style     Block type editor style handle.
    231      *     @type string|null   $style            Block type front end style handle.
     236     *     @type string|null   $editor_script    Block type editor only script handle.
     237     *     @type string|null   $script           Block type front end and editor script handle.
     238     *     @type string|null   $view_script      Block type front end only script handle.
     239     *     @type string|null   $editor_style     Block type editor only style handle.
     240     *     @type string|null   $style            Block type front end and editor style handle.
    232241     * }
    233242     */
Note: See TracChangeset for help on using the changeset viewer.