@wordpress/create-block 4.32.0 → 4.33.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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2023 by the contributors
3
+ Copyright 2016-2024 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
package/README.md CHANGED
@@ -8,18 +8,6 @@ _It is largely inspired by [create-react-app](https://create-react-app.dev/docs/
8
8
 
9
9
  > _Learn more about the [Block API at the Gutenberg HandBook](https://developer.wordpress.org/block-editor/developers/block-api/block-registration/)._
10
10
 
11
- ## Table of Contents
12
-
13
- - [Quick start](#quick-start)
14
- - [Usage](#usage)
15
- - [Interactive Mode](#interactive-mode)
16
- - [`slug`](#slug)
17
- - [`options`](#options)
18
- - [Available Commands](#available-commands-in-the-scaffolded-project)
19
- - [External Project Templates](#external-project-templates)
20
- - [Contributing to this package](#contributing-to-this-package)
21
-
22
-
23
11
  ## Quick start
24
12
 
25
13
  ```bash
package/lib/init-block.js CHANGED
@@ -30,6 +30,7 @@ async function initBlockJSON( {
30
30
  editorStyle,
31
31
  style,
32
32
  render,
33
+ viewModule,
33
34
  viewScript,
34
35
  customBlockJSON,
35
36
  example,
@@ -62,6 +63,7 @@ async function initBlockJSON( {
62
63
  editorStyle,
63
64
  style,
64
65
  render,
66
+ viewModule,
65
67
  viewScript,
66
68
  ...customBlockJSON,
67
69
  } ).filter( ( [ , value ] ) => !! value )
package/lib/scaffold.js CHANGED
@@ -44,6 +44,7 @@ module.exports = async (
44
44
  editorStyle,
45
45
  style,
46
46
  render,
47
+ viewModule,
47
48
  viewScript,
48
49
  variantVars,
49
50
  customPackageJSON,
@@ -84,6 +85,7 @@ module.exports = async (
84
85
  editorStyle,
85
86
  style,
86
87
  render,
88
+ viewModule,
87
89
  viewScript,
88
90
  variantVars,
89
91
  customPackageJSON,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.32.0",
3
+ "version": "4.33.0",
4
4
  "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,7 +31,7 @@
31
31
  "wp-create-block": "./index.js"
32
32
  },
33
33
  "dependencies": {
34
- "@wordpress/lazy-import": "^1.35.0",
34
+ "@wordpress/lazy-import": "^1.36.0",
35
35
  "chalk": "^4.0.0",
36
36
  "change-case": "^4.1.2",
37
37
  "check-node-version": "^4.1.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "fcf61b4beff747222c2c81d09d757ca1a0abd925"
51
+ "gitHead": "5e6f9caa205d3bfdbac131952b7bf9c6ec60569b"
52
52
  }