@wordpress/create-block-interactive-template 2.0.1 → 2.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 +8 -4
- package/block-templates/README.md.mustache +2 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.2.0 (2024-06-26)
|
|
6
|
+
|
|
7
|
+
## 2.1.0 (2024-06-15)
|
|
8
|
+
|
|
5
9
|
## 2.0.0 (2024-05-31)
|
|
6
10
|
|
|
7
11
|
### Breaking Changes
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
|
|
19
23
|
## 1.17.0 (2024-03-21)
|
|
20
24
|
|
|
21
|
-
###
|
|
25
|
+
### Enhancements
|
|
22
26
|
|
|
23
27
|
- Update the template to use `wp_interactivity_data_wp_context` for the context attribute ([#59995](https://github.com/WordPress/gutenberg/pull/59995)).
|
|
24
28
|
|
|
@@ -32,7 +36,7 @@
|
|
|
32
36
|
|
|
33
37
|
## 1.12.0 (2024-01-10)
|
|
34
38
|
|
|
35
|
-
###
|
|
39
|
+
### Enhancements
|
|
36
40
|
|
|
37
41
|
- Update the template to use `viewModule` in block.json ([#57712](https://github.com/WordPress/gutenberg/pull/57712)).
|
|
38
42
|
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
|
|
48
52
|
## 1.10.0 (2023-11-29)
|
|
49
53
|
|
|
50
|
-
###
|
|
54
|
+
### Enhancements
|
|
51
55
|
|
|
52
56
|
- Update `view.js` and `render.php` templates to the new `store()` API ([#56613](https://github.com/WordPress/gutenberg/pull/56613)).
|
|
53
57
|
|
|
@@ -67,6 +71,6 @@
|
|
|
67
71
|
|
|
68
72
|
## 1.2.0 (2023-08-10)
|
|
69
73
|
|
|
70
|
-
###
|
|
74
|
+
### Enhancements
|
|
71
75
|
|
|
72
76
|
- Moves the `example` property into block.json by leveraging changes to create-block to now support `example` ([#52801](https://github.com/WordPress/gutenberg/pull/52801)).
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
# Interactive Block
|
|
2
2
|
|
|
3
|
-
> **Warning**
|
|
4
|
-
> **This block requires Gutenberg 16.2 or superior to work**. The Interactivity API is, at the moment, not part of WordPress Core as it is still very experimental, and very likely to change.
|
|
5
|
-
|
|
6
3
|
> **Note**
|
|
7
|
-
>
|
|
4
|
+
> Check the [Interactivity API Reference docs in the Block Editor handbook](https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/) to learn more about the Interactivity API.
|
|
8
5
|
|
|
9
6
|
{{#isBasicVariant}}
|
|
10
7
|
This block has been created with the `create-block-interactive-template` and shows a basic structure of an interactive block that uses the Interactivity API.
|
|
11
|
-
{{/isBasicVariant}}
|
|
12
|
-
|
|
13
|
-
Check the following resources for more info about the Interactivity API:
|
|
14
|
-
- [`@wordpress/interactivity` package](https://github.com/WordPress/gutenberg/blob/trunk/packages/interactivity/README.md)
|
|
15
|
-
- [Proposal: The Interactivity API – A better developer experience in building interactive blocks](https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/)
|
|
16
|
-
- [“Interactivity API” category](https://github.com/WordPress/gutenberg/discussions/categories/interactivity-api) in Gutenberg repo discussions
|
|
8
|
+
{{/isBasicVariant}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/create-block-interactive-template",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Template for @wordpress/create-block to create interactive blocks with the Interactivity API.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
|
|
30
30
|
}
|