@wordpress/block-serialization-default-parser 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.2.0 (2024-06-26)
6
+
5
7
  ## 5.1.0 (2024-06-15)
6
8
 
7
9
  ## 5.0.0 (2024-05-31)
@@ -94,7 +96,7 @@
94
96
 
95
97
  ## 4.17.0 (2022-09-13)
96
98
 
97
- ### New Feature
99
+ ### New Features
98
100
 
99
101
  - Include TypeScript type declarations ([#43722](https://github.com/WordPress/gutenberg/pull/43722)).
100
102
 
@@ -65,8 +65,9 @@ class WP_Block_Parser_Frame {
65
65
  * @param WP_Block_Parser_Block $block Full or partial block.
66
66
  * @param int $token_start Byte offset into document for start of parse token.
67
67
  * @param int $token_length Byte length of entire parse token string.
68
- * @param int $prev_offset Byte offset into document for after parse token ends.
69
- * @param int $leading_html_start Byte offset into document where leading HTML before token starts.
68
+ * @param int|null $prev_offset Optional. Byte offset into document for after parse token ends. Default null.
69
+ * @param int|null $leading_html_start Optional. Byte offset into document where leading HTML before token starts.
70
+ * Default null.
70
71
  */
71
72
  public function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) {
72
73
  $this->block = $block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-serialization-default-parser",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Block serialization specification parser for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "66d3bf12e67d16deddc4b4a9ec42e1d0bed3479a"
37
+ "gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
38
38
  }