Skip to content

Commit

Permalink
Started work on block context.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Jan 6, 2025
1 parent c1d0494 commit e39e6c6
Show file tree
Hide file tree
Showing 20 changed files with 220 additions and 77 deletions.
7 changes: 7 additions & 0 deletions build/blocks/event-date/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
"viewportWidth": 350
},
"description": "Displays the date and time for an event.",
"usesContext": [
"postId",
"queryId"
],
"attributes": {
"postId": {
"type": "number"
},
"eventEnd": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/event-date/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('moment', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => '3b2cb4f8293b125f5b7d');
<?php return array('dependencies' => array('moment', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => 'be92a6a3195e7f43022b');
4 changes: 2 additions & 2 deletions build/blocks/event-date/index.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion build/blocks/rsvp-response-v2/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
"icon": "groups",
"example": {},
"description": "Displays a list of members who have confirmed their attendance for an event.",
"attributes": {},
"attributes": {
"postId": {
"type": "number"
}
},
"usesContext": [
"postId",
"queryId"
],
"supports": {
"align": [
"wide",
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/rsvp-response-v2/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'b27e09d5e2c12ce3efde');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '547942bbde24e852c540');
18 changes: 9 additions & 9 deletions build/blocks/rsvp-response-v2/index.js

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

3 changes: 3 additions & 0 deletions build/blocks/rsvp-template/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"supports": {
"html": false
},
"usesContext": [
"gatherpress/rsvpResponses"
],
"parent": [
"core/group"
],
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/rsvp-template/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '43d10fcaeec09be5e280');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'c470b3df551482840cc4');
Loading

0 comments on commit e39e6c6

Please sign in to comment.