Make WordPress Core


Ignore:
Timestamp:
10/13/2020 01:07:23 PM (6 years ago)
Author:
jorgefilipecosta
Message:

Editor: update packages; Port block supports to WordPress core.

The following package versions were changed:
@wordpress/a11y: 2.11.0 -> 2.13.0
@wordpress/annotations: 1.20.4 -> 1.22.0
@wordpress/api-fetch: 3.18.0 -> 3.20.0
@wordpress/autop: 2.9.0 -> 2.10.0
@wordpress/blob: 2.9.0 -> 2.10.0
@wordpress/block-directory: 1.13.7 -> 1.16.0
@wordpress/block-editor: 4.3.7 -> 5.0.0
@wordpress/block-library: 2.22.7 -> 2.25.0
@wordpress/block-serialization-default-parser: 3.7.0 -> 3.8.0
@wordpress/blocks: 6.20.3 -> 6.23.0
@wordpress/components: 10.0.6 -> 11.0.0
@wordpress/compose: 3.19.3 -> 3.21.0
@wordpress/core-data: 2.20.3 -> 2.23.0
@wordpress/data: 4.22.3 -> 4.24.0
@wordpress/data-controls: 1.16.3 -> 1.18.0
@wordpress/date: 3.10.0 -> 3.12.0
@wordpress/deprecated: 2.9.0 -> 2.10.0
@wordpress/dom: 2.13.1 -> 2.15.0
@wordpress/dom-ready: 2.10.0 -> 2.11.0
@wordpress/e2e-test-utils: 4.11.2 -> 4.14.0
@wordpress/edit-post: 3.21.7 -> 3.24.0
@wordpress/editor: 9.20.7 -> 9.23.0
@wordpress/element: 2.16.0 -> 2.18.0
@wordpress/escape-html: 1.9.0 -> 1.10.0
@wordpress/format-library: 1.22.7 -> 1.24.0
@wordpress/hooks: 2.9.0 -> 2.10.0
@wordpress/html-entities: 2.8.0 -> 2.9.0
@wordpress/i18n: 3.14.0 -> 3.16.0
@wordpress/icons: 2.4.0 -> 2.7.0
@wordpress/is-shallow-equal: 2.1.0 -> 2.3.0
@wordpress/keyboard-shortcuts: 1.9.3 -> 1.11.0
@wordpress/keycodes: 2.14.0 -> 2.16.0
@wordpress/library-export-default-webpack-plugin: 1.7.0 -> 1.9.0
@wordpress/list-reusable-blocks: 1.21.6 -> 1.23.0
@wordpress/media-utils: 1.15.0 -> 1.17.0
@wordpress/notices: 2.8.3 -> 2.10.0
@wordpress/nux: 3.20.6 -> 3.22.0
@wordpress/plugins: 2.20.3 -> 2.22.0
@wordpress/primitives: 1.7.0 -> 1.9.0
@wordpress/priority-queue: 1.7.0 -> 1.9.0
@wordpress/redux-routine: 3.10.0 -> 3.12.0
@wordpress/rich-text: 3.20.4 -> 3.22.0
@wordpress/scripts: 12.1.1 -> 12.3.0
@wordpress/server-side-render: 1.16.6 -> 1.18.0
@wordpress/shortcode: 2.9.0 -> 2.11.0
@wordpress/token-list: 1.11.0 -> 1.13.0
@wordpress/url: 2.17.0 -> 2.19.0
@wordpress/viewport: 2.21.3 -> 2.23.0
@wordpress/warning: 1.2.0 -> 1.3.0
@wordpress/wordcount: 2.10.0 -> 2.12.0

Props isabel_brison, youknowriad, mcsf.
Fixes #51461.

File:
1 edited

Legend:

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

    r46586 r49135  
    1111 * Holds the block structure in memory
    1212 *
    13  * @since 3.8.0
     13 * @since 5.0.0
    1414 */
    1515class WP_Block_Parser_Block {
    … …  
    1919         * @example "core/paragraph"
    2020         *
    21          * @since 3.8.0
     21         * @since 5.0.0
    2222         * @var string
    2323         */
    … …  
    3030         * @example array( 'columns' => 3 )
    3131         *
    32          * @since 3.8.0
     32         * @since 5.0.0
    3333         * @var array|null
    3434         */
    … …  
    3838         * List of inner blocks (of this same class)
    3939         *
    40          * @since 3.8.0
     40         * @since 5.0.0
    4141         * @var WP_Block_Parser_Block[]
    4242         */
    … …  
    4949         * @example "...Just <!-- wp:test /--> testing..." -> "Just testing..."
    5050         *
    51          * @since 3.8.0
     51         * @since 5.0.0
    5252         * @var string
    5353         */
    … …  
    7373         * Will populate object properties from the provided arguments.
    7474         *
    75          * @since 3.8.0
     75         * @since 5.0.0
    7676         *
    7777         * @param string $name         Name of block.
    … …  
    9696 *
    9797 * @internal
    98  * @since 3.8.0
     98 * @since 5.0.0
    9999 */
    100100class WP_Block_Parser_Frame {
    … …  
    102102         * Full or partial block
    103103         *
    104          * @since 3.8.0
     104         * @since 5.0.0
    105105         * @var WP_Block_Parser_Block
    106106         */
    … …  
    110110         * Byte offset into document for start of parse token
    111111         *
    112          * @since 3.8.0
     112         * @since 5.0.0
    113113         * @var int
    114114         */
    … …  
    118118         * Byte length of entire parse token string
    119119         *
    120          * @since 3.8.0
     120         * @since 5.0.0
    121121         * @var int
    122122         */
    … …  
    127127         * (used during reconstruction of stack into parse production)
    128128         *
    129          * @since 3.8.0
     129         * @since 5.0.0
    130130         * @var int
    131131         */
    … …  
    135135         * Byte offset into document where leading HTML before token starts
    136136         *
    137          * @since 3.8.0
     137         * @since 5.0.0
    138138         * @var int
    139139         */
    … …  
    145145         * Will populate object properties from the provided arguments.
    146146         *
    147          * @since 3.8.0
     147         * @since 5.0.0
    148148         *
    149149         * @param WP_Block_Parser_Block $block              Full or partial block.
    … …  
    167167 * Parses a document and constructs a list of parsed block objects
    168168 *
    169  * @since 3.8.0
     169 * @since 5.0.0
    170170 * @since 4.0.0 returns arrays not objects, all attributes are arrays
    171171 */
    … …  
    176176         * @example "Pre-text\n<!-- wp:paragraph -->This is inside a block!<!-- /wp:paragraph -->"
    177177         *
    178          * @since 3.8.0
     178         * @since 5.0.0
    179179         * @var string
    180180         */
    … …  
    184184         * Tracks parsing progress through document
    185185         *
    186          * @since 3.8.0
     186         * @since 5.0.0
    187187         * @var int
    188188         */
    … …  
    192192         * List of parsed blocks
    193193         *
    194          * @since 3.8.0
     194         * @since 5.0.0
    195195         * @var WP_Block_Parser_Block[]
    196196         */
    … …  
    200200         * Stack of partially-parsed structures in memory during parse
    201201         *
    202          * @since 3.8.0
     202         * @since 5.0.0
    203203         * @var WP_Block_Parser_Frame[]
    204204         */
    … …  
    220220         * return an error on invalid inputs.
    221221         *
    222          * @since 3.8.0
     222         * @since 5.0.0
    223223         *
    224224         * @param string $document Input document being parsed.
    … …  
    250250         *
    251251         * @internal
    252          * @since 3.8.0
     252         * @since 5.0.0
    253253         * @return bool
    254254         */
    … …  
    395395         *
    396396         * @internal
    397          * @since 3.8.0
     397         * @since 5.0.0
    398398         * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
    399399         * @return array
    … …  
    483483         *
    484484         * @internal
    485          * @since 3.8.0
     485         * @since 5.0.0
    486486         * @param null $length how many bytes of document text to output.
    487487         */
    … …  
    501501         *
    502502         * @internal
    503          * @since 3.8.0
     503         * @since 5.0.0
    504504         * @param WP_Block_Parser_Block $block        The block to add to the output.
    505505         * @param int                   $token_start  Byte offset into the document where the first token for the block starts.
    … …  
    525525         *
    526526         * @internal
    527          * @since 3.8.0
     527         * @since 5.0.0
    528528         * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML.
    529529         */
Note: See TracChangeset for help on using the changeset viewer.