-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add production blocks metadata (#32497)
* add part of blocks metadata * add: changelog * add additional blocks * add suggested changes
- Loading branch information
1 parent
55dfe7e
commit 9e12ebd
Showing
17 changed files
with
1,065 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: enhancement | ||
|
||
Add block.json metadata file to part of production blocks |
45 changes: 45 additions & 0 deletions
45
projects/plugins/jetpack/extensions/blocks/payment-buttons/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "jetpack/payment-buttons", | ||
"title": "Payment Buttons", | ||
"description": "Prompt visitors to purchase your products and subscriptions with a group of buttons.", | ||
"keywords": [ | ||
"buy", "contribution", "commerce", "credit card", "debit card", "donate", "Donations", | ||
"earn", "ecommerce", "gofundme", "memberships", "money", "paid", "patreon", "pay", | ||
"payments", "products", "purchase", "recurring", "sell", "shop", "stripe", "subscribe", | ||
"subscriptions", "sponsor", "square", "toast", "venmo" | ||
], | ||
"version": "12.5.0", | ||
"textdomain": "jetpack", | ||
"category": "earn", | ||
"icon": "block-default", | ||
"supports": { | ||
"__experimentalExposeControlsToChildren": true, | ||
"align": [ "wide", "full" ], | ||
"spacing": { | ||
"blockGap": true, | ||
"margin": [ "vertical" ], | ||
"__experimentalDefaultControls": { | ||
"blockGap": true | ||
} | ||
}, | ||
"__experimentalLayout": { | ||
"allowSwitching": false, | ||
"allowInheriting": false, | ||
"default": { | ||
"type": "flex" | ||
} | ||
}, | ||
"typography": { | ||
"fontSize": true, | ||
"__experimentalFontFamily": true, | ||
"__experimentalTextTransform": true, | ||
"__experimentalDefaultControls": { | ||
"fontSize": true | ||
} | ||
} | ||
}, | ||
"attributes":{ }, | ||
"editorScript": "file:../editor.js" | ||
} |
27 changes: 27 additions & 0 deletions
27
projects/plugins/jetpack/extensions/blocks/pinterest/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "jetpack/pinterest", | ||
"title": "Pinterest", | ||
"description": "Embed a Pinterest pin, board, or user.", | ||
"keywords": [ "social", "pinboard", "pins" ], | ||
"version": "12.5.0", | ||
"textdomain": "jetpack", | ||
"category": "embed", | ||
"icon": "pinterest", | ||
"supports": { | ||
"html": false, | ||
"align": false | ||
}, | ||
"attributes":{ | ||
"url": { | ||
"type": "string" | ||
} | ||
}, | ||
"example": { | ||
"attributes": { | ||
"url": "https://pinterest.com/anapinskywalker/" | ||
} | ||
}, | ||
"editorScript": "file:../editor.js" | ||
} |
110 changes: 110 additions & 0 deletions
110
projects/plugins/jetpack/extensions/blocks/podcast-player/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "jetpack/podcast-player", | ||
"title": "Podcast Player", | ||
"description": "Select and play episodes from a single podcast.", | ||
"keywords": [ "audio", "embed"], | ||
"version": "12.5.0", | ||
"textdomain": "jetpack", | ||
"category": "embed", | ||
"icon": "playlist-audio", | ||
"supports": { | ||
"align": [ "wide", "full" ], | ||
"spacing": { | ||
"padding": true, | ||
"margin": true | ||
}, | ||
"anchor": false, | ||
"customClassName": true, | ||
"className": true, | ||
"html": false, | ||
"multiple": true, | ||
"reusable": true | ||
}, | ||
"attributes": { | ||
"url": { | ||
"type": "string", | ||
"validator": "isUrl" | ||
}, | ||
"selectedEpisodes": { | ||
"type": "array", | ||
"default": [] | ||
}, | ||
"itemsToShow": { | ||
"type": "integer", | ||
"default": 5 | ||
}, | ||
"showCoverArt": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"showEpisodeTitle": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"showEpisodeDescription": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"primaryColor": { | ||
"type": "string" | ||
}, | ||
"customPrimaryColor": { | ||
"type": "string" | ||
}, | ||
"hexPrimaryColor": { | ||
"type": "string" | ||
}, | ||
"secondaryColor": { | ||
"type": "string" | ||
}, | ||
"customSecondaryColor": { | ||
"type": "string" | ||
}, | ||
"hexSecondaryColor": { | ||
"type": "string" | ||
}, | ||
"backgroundColor": { | ||
"type": "string" | ||
}, | ||
"customBackgroundColor": { | ||
"type": "string" | ||
}, | ||
"hexBackgroundColor": { | ||
"type": "string" | ||
}, | ||
"exampleFeedData": { | ||
"type": "object" | ||
} | ||
}, | ||
"example": { | ||
"attributes": { | ||
"customPrimaryColor": "GREEN", | ||
"hexPrimaryColor": "GREEN", | ||
"exampleFeedData": { | ||
"title": "Jetpack Example Podcast", | ||
"link": "https://jetpack.com", | ||
"cover": "https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160", | ||
"tracks": [ | ||
{ | ||
"id": "3", | ||
"title": "3. Our third episode", | ||
"duration": "14:58" | ||
}, | ||
{ | ||
"id": "2", | ||
"title": "2. Interview with a special guest", | ||
"duration": "19:17" | ||
}, | ||
{ | ||
"id": "1", | ||
"title": "1. Welcome to Example Podcast", | ||
"duration": "11:25" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"editorScript": "file:../editor.js" | ||
} |
56 changes: 56 additions & 0 deletions
56
projects/plugins/jetpack/extensions/blocks/premium-content/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "jetpack/premium-content", | ||
"title": "Paid Content", | ||
"description": "Restrict access to your content for paying subscribers.", | ||
"keywords": [ "buy", "credit card", "debit card", "earn", "exclusive", "gated", "gofundme", "memberships", "money", "newsletter", "paid", "patreon", "pay", "payments", "paywall", "premium content", "purchase", "recurring", "repeat", "signin", "stripe", "subscribe", "subscriptions", "support", "sponsor", "square", "toast", "venmo", "stripe", "substack"], | ||
"version": "12.5.0", | ||
"textdomain": "jetpack", | ||
"category": "grow", | ||
"icon": "yes-alt", | ||
"supports": { | ||
"html": false | ||
}, | ||
"providesContext": { | ||
"premium-content/planId": "selectedPlanId", | ||
"premium-content/isPreview": "isPreview", | ||
"isPremiumContentChild": "isPremiumContentChild" | ||
}, | ||
"attributes": { | ||
"newPlanName": { | ||
"type": "string", | ||
"default": "Monthly Subscription" | ||
}, | ||
"newPlanCurrency": { | ||
"type": "string", | ||
"default": "USD" | ||
}, | ||
"newPlanPrice": { | ||
"type": "number", | ||
"default": 5 | ||
}, | ||
"newPlanInterval": { | ||
"type": "string", | ||
"default": "1 month" | ||
}, | ||
"selectedPlanId": { | ||
"type": "number", | ||
"default": 0 | ||
}, | ||
"isPreview": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"isPremiumContentChild": { | ||
"type": "boolean", | ||
"default": true | ||
} | ||
}, | ||
"example": { | ||
"attributes": { | ||
"isPreview": true | ||
} | ||
}, | ||
"editorScript": "file:../editor.js" | ||
} |
44 changes: 44 additions & 0 deletions
44
projects/plugins/jetpack/extensions/blocks/rating-star/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "jetpack/rating-star", | ||
"title": "Star Rating", | ||
"description": "Rate movies, books, songs, recipes — anything you can put a number on.", | ||
"keywords": ["star", "rating", "review"], | ||
"version": "12.5.0", | ||
"textdomain": "jetpack", | ||
"category": "widgets", | ||
"icon": "star-half", | ||
"supports": { | ||
"html": false | ||
}, | ||
"styles": [ | ||
{ | ||
"name": "filled", | ||
"label": "Filled", | ||
"isDefault": true | ||
}, | ||
{ | ||
"name": "outlined", | ||
"label": "Outlined" | ||
} | ||
], | ||
"attributes": { | ||
"rating": { | ||
"type": "number", | ||
"default": 1 | ||
}, | ||
"maxRating": { | ||
"type": "number", | ||
"default": 5 | ||
}, | ||
"color": { | ||
"type": "string" | ||
}, | ||
"align": { | ||
"type": "string", | ||
"default": "left" | ||
} | ||
}, | ||
"editorScript": "file:../editor.js" | ||
} |
45 changes: 45 additions & 0 deletions
45
projects/plugins/jetpack/extensions/blocks/recurring-payments/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "jetpack/recurring-payments", | ||
"title": "Payment Button", | ||
"description": "Button allowing you to sell products and subscriptions.", | ||
"keywords": [ | ||
"buy", "contribution", "commerce", "credit card", "debit card", "donate", "Donations", | ||
"earn", "ecommerce", "gofundme", "memberships", "money", "paid", "patreon", "pay", | ||
"payments", "products", "purchase", "recurring", "sell", "shop", "stripe", "subscribe", | ||
"subscriptions", "sponsor", "square", "toast", "venmo" | ||
], | ||
"version": "12.5.0", | ||
"textdomain": "jetpack", | ||
"category": "earn", | ||
"icon": "cart", | ||
"supports": { | ||
"html": false, | ||
"__experimentalExposeControlsToChildren": true, | ||
}, | ||
"usesContext": [ "isPremiumContentChild" ], | ||
"providesContext": { | ||
"jetpack/parentBlockWidth": "width", | ||
}, | ||
"attributes": { | ||
"planId": { | ||
"type": "integer" | ||
}, | ||
"align": { | ||
"type": "string" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"default": "#" | ||
}, | ||
"uniqueId": { | ||
"type": "string", | ||
"default": "id" | ||
}, | ||
"width": { | ||
"type": "string" | ||
} | ||
}, | ||
"editorScript": "file:../editor.js" | ||
} |
Oops, something went wrong.