@wordpress/create-block 4.24.0 → 4.25.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.
@@ -1,3 +1,21 @@
1
+ /**
2
+ * Use this file for JavaScript code that you want to run in the front-end
3
+ * on posts/pages that contain this block.
4
+ *
5
+ * When this file is defined as the value of the `viewScript` property
6
+ * in `block.json` it will be enqueued on the front end of the site.
7
+ *
8
+ * Example:
9
+ *
10
+ * ```js
11
+ * {
12
+ * "viewScript": "file:./view.js"
13
+ * }
14
+ * ```
15
+ *
16
+ * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script
17
+ */
18
+
1
19
  /* eslint-disable no-console */
2
20
  console.log("Hello World! (from {{namespace}}-{{slug}} block)");
3
21
  /* eslint-enable no-console */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.24.0",
3
+ "version": "4.25.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.27.0",
34
+ "@wordpress/lazy-import": "^1.28.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": "78a288d55b83a713b2f7d98d5a855c0771a2afc6"
51
+ "gitHead": "5eac1734bcdca2301fdd37ec8cfe2a45e722a2c4"
52
52
  }