@wordpress/create-block-tutorial-template 2.3.0 → 2.4.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.
|
@@ -9,7 +9,7 @@ import { TextControl } from '@wordpress/components';
|
|
|
9
9
|
* React hook that is used to mark the block wrapper element.
|
|
10
10
|
* It provides all the necessary props like the class name.
|
|
11
11
|
*
|
|
12
|
-
* @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#
|
|
12
|
+
* @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops
|
|
13
13
|
*/
|
|
14
14
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ import { useBlockProps } from '@wordpress/block-editor';
|
|
|
17
17
|
* The edit function describes the structure of your block in the context of the
|
|
18
18
|
* editor. This represents what the editor will render when the block is used.
|
|
19
19
|
*
|
|
20
|
-
* @see https://developer.wordpress.org/block-editor/
|
|
20
|
+
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit
|
|
21
21
|
*
|
|
22
22
|
* @param {Object} props Properties passed to the function.
|
|
23
23
|
* @param {Object} props.attributes Available block attributes.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* React hook that is used to mark the block wrapper element.
|
|
3
3
|
* It provides all the necessary props like the class name.
|
|
4
4
|
*
|
|
5
|
-
* @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#
|
|
5
|
+
* @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops
|
|
6
6
|
*/
|
|
7
7
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ import { useBlockProps } from '@wordpress/block-editor';
|
|
|
11
11
|
* be combined into the final markup, which is then serialized by the block
|
|
12
12
|
* editor into `post_content`.
|
|
13
13
|
*
|
|
14
|
-
* @see https://developer.wordpress.org/block-editor/
|
|
14
|
+
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save
|
|
15
15
|
*
|
|
16
16
|
* @param {Object} props Properties passed to the function.
|
|
17
17
|
* @param {Object} props.attributes Available block attributes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/create-block-tutorial-template",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Template for @wordpress/create-block used in the official WordPress tutorial.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "08358f53b627a15148c3a3e433cdf58cf8714aa4"
|
|
25
25
|
}
|