Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c0c8410

Browse files
authoredMay 26, 2025··
Reactions: Use Interactivity API (#1722)
1 parent 791604b commit c0c8410

23 files changed

+1066
-403
lines changed
 
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: major
2+
Type: changed
3+
4+
The Reactions block now uses the latest Block Editor technology for display on the frontend.

‎.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ vendor
66
# Temporary ignores while breaking out each component.
77
assets
88
src/followers
9-
src/reactions
109
src/remote-reply
1110
src/reply
1211
src/reply-intent

‎build/follow-me/style-view.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build/reactions/block.json

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"name": "activitypub/reactions",
4-
"apiVersion": 2,
5-
"version": "2.0.0",
4+
"apiVersion": 3,
5+
"version": "3.0.0",
66
"title": "Fediverse Reactions",
77
"category": "widgets",
88
"icon": "heart",
99
"description": "Display Fediverse likes and reposts",
1010
"supports": {
1111
"html": false,
12-
"align": true,
13-
"layout": {
14-
"default": {
15-
"type": "constrained",
16-
"orientation": "vertical",
17-
"justifyContent": "center"
18-
}
19-
}
12+
"align": [
13+
"wide",
14+
"full"
15+
],
16+
"interactivity": true
2017
},
21-
"attributes": {},
2218
"blockHooks": {
2319
"core/post-content": "after"
2420
},
2521
"textdomain": "activitypub",
2622
"editorScript": "file:./index.js",
27-
"style": [
28-
"file:./style-index.css",
29-
"wp-components"
30-
],
31-
"viewScript": "file:./view.js"
23+
"style": "file:./style-index.css",
24+
"viewScriptModule": "file:./view.js",
25+
"viewScript": "wp-api-fetch",
26+
"render": "file:./render.php"
3227
}

‎build/reactions/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '71a9b97929d16c6932ad');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '8cb5b7894afa6bbe1c96');

0 commit comments

Comments
 (0)
Please sign in to comment.