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.

git-svn-id: https://develop.svn.wordpress.org/trunk@49135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jorge Costa
2020-10-13 13:07:23 +00:00
parent 011cd72394
commit 27ad65df4d
46 changed files with 3075 additions and 1514 deletions

View File

@@ -10,7 +10,7 @@
*
* Holds the block structure in memory
*
* @since 3.8.0
* @since 5.0.0
*/
class WP_Block_Parser_Block {
/**
@@ -18,7 +18,7 @@ class WP_Block_Parser_Block {
*
* @example "core/paragraph"
*
* @since 3.8.0
* @since 5.0.0
* @var string
*/
public $blockName;
@@ -29,7 +29,7 @@ class WP_Block_Parser_Block {
* @example null
* @example array( 'columns' => 3 )
*
* @since 3.8.0
* @since 5.0.0
* @var array|null
*/
public $attrs;
@@ -37,7 +37,7 @@ class WP_Block_Parser_Block {
/**
* List of inner blocks (of this same class)
*
* @since 3.8.0
* @since 5.0.0
* @var WP_Block_Parser_Block[]
*/
public $innerBlocks;
@@ -48,7 +48,7 @@ class WP_Block_Parser_Block {
*
* @example "...Just <!-- wp:test /--> testing..." -> "Just testing..."
*
* @since 3.8.0
* @since 5.0.0
* @var string
*/
public $innerHTML;
@@ -72,7 +72,7 @@ class WP_Block_Parser_Block {
*
* Will populate object properties from the provided arguments.
*
* @since 3.8.0
* @since 5.0.0
*
* @param string $name Name of block.
* @param array $attrs Optional set of attributes from block comment delimiters.
@@ -95,13 +95,13 @@ class WP_Block_Parser_Block {
* Holds partial blocks in memory while parsing
*
* @internal
* @since 3.8.0
* @since 5.0.0
*/
class WP_Block_Parser_Frame {
/**
* Full or partial block
*
* @since 3.8.0
* @since 5.0.0
* @var WP_Block_Parser_Block
*/
public $block;
@@ -109,7 +109,7 @@ class WP_Block_Parser_Frame {
/**
* Byte offset into document for start of parse token
*
* @since 3.8.0
* @since 5.0.0
* @var int
*/
public $token_start;
@@ -117,7 +117,7 @@ class WP_Block_Parser_Frame {
/**
* Byte length of entire parse token string
*
* @since 3.8.0
* @since 5.0.0
* @var int
*/
public $token_length;
@@ -126,7 +126,7 @@ class WP_Block_Parser_Frame {
* Byte offset into document for after parse token ends
* (used during reconstruction of stack into parse production)
*
* @since 3.8.0
* @since 5.0.0
* @var int
*/
public $prev_offset;
@@ -134,7 +134,7 @@ class WP_Block_Parser_Frame {
/**
* Byte offset into document where leading HTML before token starts
*
* @since 3.8.0
* @since 5.0.0
* @var int
*/
public $leading_html_start;
@@ -144,7 +144,7 @@ class WP_Block_Parser_Frame {
*
* Will populate object properties from the provided arguments.
*
* @since 3.8.0
* @since 5.0.0
*
* @param WP_Block_Parser_Block $block Full or partial block.
* @param int $token_start Byte offset into document for start of parse token.
@@ -166,7 +166,7 @@ class WP_Block_Parser_Frame {
*
* Parses a document and constructs a list of parsed block objects
*
* @since 3.8.0
* @since 5.0.0
* @since 4.0.0 returns arrays not objects, all attributes are arrays
*/
class WP_Block_Parser {
@@ -175,7 +175,7 @@ class WP_Block_Parser {
*
* @example "Pre-text\n<!-- wp:paragraph -->This is inside a block!<!-- /wp:paragraph -->"
*
* @since 3.8.0
* @since 5.0.0
* @var string
*/
public $document;
@@ -183,7 +183,7 @@ class WP_Block_Parser {
/**
* Tracks parsing progress through document
*
* @since 3.8.0
* @since 5.0.0
* @var int
*/
public $offset;
@@ -191,7 +191,7 @@ class WP_Block_Parser {
/**
* List of parsed blocks
*
* @since 3.8.0
* @since 5.0.0
* @var WP_Block_Parser_Block[]
*/
public $output;
@@ -199,7 +199,7 @@ class WP_Block_Parser {
/**
* Stack of partially-parsed structures in memory during parse
*
* @since 3.8.0
* @since 5.0.0
* @var WP_Block_Parser_Frame[]
*/
public $stack;
@@ -219,7 +219,7 @@ class WP_Block_Parser {
* parse. In contrast to the specification parser this does not
* return an error on invalid inputs.
*
* @since 3.8.0
* @since 5.0.0
*
* @param string $document Input document being parsed.
* @return WP_Block_Parser_Block[]
@@ -249,7 +249,7 @@ class WP_Block_Parser {
* or breaking out of a level of nesting.
*
* @internal
* @since 3.8.0
* @since 5.0.0
* @return bool
*/
function proceed() {
@@ -394,7 +394,7 @@ class WP_Block_Parser {
* Returns the type of the find: kind of find, block information, attributes
*
* @internal
* @since 3.8.0
* @since 5.0.0
* @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
* @return array
*/
@@ -482,7 +482,7 @@ class WP_Block_Parser {
* to the output list as a freeform block.
*
* @internal
* @since 3.8.0
* @since 5.0.0
* @param null $length how many bytes of document text to output.
*/
function add_freeform( $length = null ) {
@@ -500,7 +500,7 @@ class WP_Block_Parser {
* a new block to the output list.
*
* @internal
* @since 3.8.0
* @since 5.0.0
* @param WP_Block_Parser_Block $block The block to add to the output.
* @param int $token_start Byte offset into the document where the first token for the block starts.
* @param int $token_length Byte length of entire block from start of opening token to end of closing token.
@@ -524,7 +524,7 @@ class WP_Block_Parser {
* Pushes the top block from the parsing stack to the output list.
*
* @internal
* @since 3.8.0
* @since 5.0.0
* @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML.
*/
function add_block_from_stack( $end_offset = null ) {