@wordpress/create-block-interactive-template 1.15.0 → 1.17.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,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.17.0 (2024-03-21)
6
+
7
+ ### Enhancement
8
+
9
+ - Update the template to use `wp_interactivity_data_wp_context` for the context attribute ([#59995](https://github.com/WordPress/gutenberg/pull/59995)).
10
+
11
+ ## 1.16.0 (2024-03-06)
12
+
5
13
  ## 1.15.0 (2024-02-21)
6
14
 
7
15
  ## 1.14.0 (2024-02-09)
package/README.md CHANGED
@@ -10,7 +10,7 @@ This block template can be used by running the following command:
10
10
  npx @wordpress/create-block --template @wordpress/create-block-interactive-template
11
11
  ```
12
12
 
13
- It requires Gutenberg 17.5 or higher.
13
+ It requires at least WordPress 6.5 or Gutenberg 17.7.
14
14
 
15
15
  ## Contributing to this package
16
16
 
@@ -18,7 +18,7 @@ $unique_id = wp_unique_id( 'p-' );
18
18
  <div
19
19
  <?php echo get_block_wrapper_attributes(); ?>
20
20
  data-wp-interactive="{{namespace}}"
21
- data-wp-context='{ "isOpen": false }'
21
+ <?php echo wp_interactivity_data_wp_context( array( 'isOpen' => false ) ); ?>
22
22
  data-wp-watch="callbacks.logIsOpen"
23
23
  >
24
24
  <button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block-interactive-template",
3
- "version": "1.15.0",
3
+ "version": "1.17.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",
@@ -22,5 +22,5 @@
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
- "gitHead": "c139588f4c668b38bafbc5431f2f4e3903dbe683"
25
+ "gitHead": "ffc07735d0abfb3f69e91d48f25b7fe8d1ef92d2"
26
26
  }