--- a/wp/wp-includes/blocks/social-links/block.json Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/blocks/social-links/block.json Tue Sep 27 16:37:53 2022 +0200
@@ -1,9 +1,10 @@
{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "core/social-links",
"title": "Social Icons",
"category": "widgets",
- "description": "Display icons linking to your social media profiles or websites.",
+ "description": "Display icons linking to your social media profiles or sites.",
"keywords": [ "links" ],
"textdomain": "default",
"attributes": {
@@ -29,18 +30,40 @@
"type": "boolean",
"default": false
},
+ "showLabels": {
+ "type": "boolean",
+ "default": false
+ },
"size": {
"type": "string"
}
},
"providesContext": {
"openInNewTab": "openInNewTab",
+ "showLabels": "showLabels",
"iconColorValue": "iconColorValue",
"iconBackgroundColorValue": "iconBackgroundColorValue"
},
"supports": {
"align": [ "left", "center", "right" ],
- "anchor": true
+ "anchor": true,
+ "__experimentalExposeControlsToChildren": true,
+ "__experimentalLayout": {
+ "allowSwitching": false,
+ "allowInheriting": false,
+ "allowVerticalAlignment": false,
+ "default": {
+ "type": "flex"
+ }
+ },
+ "spacing": {
+ "blockGap": [ "horizontal", "vertical" ],
+ "margin": [ "top", "bottom" ],
+ "units": [ "px", "em", "rem", "vh", "vw" ],
+ "__experimentalDefaultControls": {
+ "blockGap": true
+ }
+ }
},
"styles": [
{ "name": "default", "label": "Default", "isDefault": true },