Skip to content

Reactions: Use Interactivity API #1722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 58 commits into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
9c40f60
Add needed packages
obenland May 15, 2025
253ac4f
update module
obenland May 15, 2025
c5d65cd
First pass
obenland May 16, 2025
b8ec4ee
update
obenland May 16, 2025
b3f3903
Add fallback and simplify
obenland May 16, 2025
6792e0d
Format
obenland May 17, 2025
2cd9722
Save latest state
obenland May 17, 2025
00506b7
Remove animation
obenland May 17, 2025
25040f6
Remove unused avatars
obenland May 17, 2025
384ae6a
Add needed packages
obenland May 15, 2025
c7903b0
update module
obenland May 15, 2025
7a0c998
First pass
obenland May 16, 2025
1cc0680
update
obenland May 16, 2025
d3a9649
Add fallback and simplify
obenland May 16, 2025
9e044a7
Format
obenland May 17, 2025
8546b09
Save latest state
obenland May 17, 2025
29feaaf
Remove animation
obenland May 17, 2025
8001a71
Remove unused avatars
obenland May 17, 2025
acf11a3
New build
obenland May 17, 2025
467be8b
Merge branch 'update/reactions-interactivity' of https://github.com/A…
obenland May 17, 2025
fdf9f1f
update block.json
obenland May 17, 2025
12ca4a9
Update
obenland May 17, 2025
b03396c
Full overlay
obenland May 17, 2025
ed81af9
Server-side rendering
obenland May 18, 2025
25e686a
Hide title when there are no reactions
obenland May 18, 2025
314e304
Fix rendering
obenland May 18, 2025
7fd4384
Improve popup
obenland May 18, 2025
64c4bf1
Align popover correctly
obenland May 18, 2025
8fb9eab
Update block supports and account for alignment
obenland May 18, 2025
383e3bd
Edit updates
obenland May 18, 2025
b8c2b91
Default theme devs like box-shadows
obenland May 18, 2025
899f24e
Update add_directions method
obenland May 19, 2025
8a2d645
Update deprecation.js
obenland May 19, 2025
3517b64
Rebuild
obenland May 20, 2025
4c66f52
Merge branch 'trunk' into update/reactions-interactivity
obenland May 20, 2025
64a11db
Remove map files
obenland May 20, 2025
0e5086f
Fix phpcs
obenland May 20, 2025
731dc09
Merge branch 'trunk' into update/reactions-interactivity
obenland May 21, 2025
0571542
Merge branch 'trunk' into update/reactions-interactivity
obenland May 21, 2025
75e5cab
Rebuild after trunk merge
obenland May 21, 2025
5b9a31f
Remove unused variables
obenland May 21, 2025
ff3456f
Fix more docs
obenland May 21, 2025
fefa5cc
Toggle Modal and update styles
obenland May 21, 2025
f27adf4
Improve calculateVisibleAvatars
obenland May 21, 2025
00269b4
Standardize context with Follow Me
obenland May 21, 2025
5f1d699
Broader theme support
obenland May 21, 2025
461f717
Fix tests
obenland May 21, 2025
7af2f7b
Inline block registration
obenland May 21, 2025
d4ae38b
Add changelog
matticbot May 21, 2025
2398c27
Fix dummy generation
obenland May 21, 2025
0e751ca
Merge branch 'update/reactions-interactivity' of https://github.com/A…
obenland May 21, 2025
3884b58
Show real reactions in Edit if available
obenland May 21, 2025
2b19245
Update reactions popover
obenland May 21, 2025
ebc48c0
Hide entire block when there are no reactions
obenland May 21, 2025
8c7c5cc
Comments updates
obenland May 21, 2025
c14438e
Fix tests
obenland May 21, 2025
f395833
Remove unnecessary styles
obenland May 22, 2025
2bd0907
Align modal styles between blocks
obenland May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/1722-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: major
Type: changed

The Reactions block now uses the latest Block Editor technology for display on the frontend.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ vendor
# Temporary ignores while breaking out each component.
assets
src/followers
src/reactions
src/remote-reply
src/reply
src/reply-intent
2 changes: 1 addition & 1 deletion build/follow-me/style-view.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 11 additions & 16 deletions build/reactions/block.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"name": "activitypub/reactions",
"apiVersion": 2,
"version": "2.0.0",
"apiVersion": 3,
"version": "3.0.0",
"title": "Fediverse Reactions",
"category": "widgets",
"icon": "heart",
"description": "Display Fediverse likes and reposts",
"supports": {
"html": false,
"align": true,
"layout": {
"default": {
"type": "constrained",
"orientation": "vertical",
"justifyContent": "center"
}
}
"align": [
"wide",
"full"
],
"interactivity": true
},
"attributes": {},
"blockHooks": {
"core/post-content": "after"
},
"textdomain": "activitypub",
"editorScript": "file:./index.js",
"style": [
"file:./style-index.css",
"wp-components"
],
"viewScript": "file:./view.js"
"style": "file:./style-index.css",
"viewScriptModule": "file:./view.js",
"viewScript": "wp-api-fetch",
"render": "file:./render.php"
}
2 changes: 1 addition & 1 deletion build/reactions/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '71a9b97929d16c6932ad');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '8cb5b7894afa6bbe1c96');
Loading
Loading