@wordpress/create-block-tutorial-template 2.1.0-next.e230fbab09.0 → 2.3.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,22 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.3.0 (2022-06-01)
6
+
7
+ ### Enhancement
8
+
9
+ - Read the block name from `block.json` file in JavaScript files ([#41273](https://github.com/WordPress/gutenberg/pull/41273)).
10
+
11
+ ### Bug Fix
12
+
13
+ - Fix the issue with the block wrapper in the editor ([#41273](https://github.com/WordPress/gutenberg/pull/41273)).
14
+
15
+ ## 2.1.0 (2022-04-21)
16
+
17
+ ### Bug Fix
18
+
19
+ - Fix some CSS Coding Standards violations in file templates ([#40479](https://github.com/WordPress/gutenberg/pull/40479)).
20
+
5
21
  ## 2.0.0 (2022-03-03)
6
22
 
7
23
  ### Breaking Change
@@ -28,10 +28,11 @@ import { useBlockProps } from '@wordpress/block-editor';
28
28
  export default function Edit( { attributes, setAttributes } ) {
29
29
  const blockProps = useBlockProps();
30
30
  return (
31
- <TextControl
32
- { ...blockProps }
33
- value={ attributes.message }
34
- onChange={ ( val ) => setAttributes( { message: val } ) }
35
- />
31
+ <div { ...blockProps }>
32
+ <TextControl
33
+ value={ attributes.message }
34
+ onChange={ ( val ) => setAttributes( { message: val } ) }
35
+ />
36
+ </div>
36
37
  );
37
38
  }
@@ -4,8 +4,8 @@
4
4
  * Replace them with your own styles or remove the file completely.
5
5
  */
6
6
 
7
- .wp-block-{{namespace}}-{{slug}} input[type='text'] {
8
- font-family: Gilbert;
7
+ .wp-block-{{namespace}}-{{slug}} input[type="text"] {
8
+ font-family: Gilbert, sans-serif;
9
9
  font-size: 64px;
10
10
  color: inherit;
11
11
  background: inherit;
@@ -21,13 +21,14 @@ import './editor.scss';
21
21
  */
22
22
  import Edit from './edit';
23
23
  import save from './save';
24
+ import metadata from './block.json';
24
25
 
25
26
  /**
26
27
  * Every block starts by registering a new block type definition.
27
28
  *
28
29
  * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block
29
30
  */
30
- registerBlockType( '{{namespace}}/{{slug}}', {
31
+ registerBlockType( metadata.name, {
31
32
  /**
32
33
  * Used to construct a preview for the block to be shown in the block inserter.
33
34
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block-tutorial-template",
3
- "version": "2.1.0-next.e230fbab09.0",
3
+ "version": "2.3.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": "308df03e6a96ded732f9c4e32471b1b4f8dea54a"
24
+ "gitHead": "a3e0b62091e8a8bdf5e2518e42d60d7098af48cc"
25
25
  }
@@ -8,7 +8,7 @@
8
8
  * Description: {{description}}
9
9
  {{/description}}
10
10
  * Version: {{version}}
11
- * Requires at least: 5.8
11
+ * Requires at least: 5.9
12
12
  * Requires PHP: 7.0
13
13
  {{#author}}
14
14
  * Author: {{author}}
@@ -3,7 +3,7 @@
3
3
  Contributors: {{author}}
4
4
  {{/author}}
5
5
  Tags: block
6
- Tested up to: 5.9
6
+ Tested up to: 6.0
7
7
  Stable tag: {{version}}
8
8
  {{#license}}
9
9
  License: {{license}}