wp/wp-includes/blocks/social-links/block.json
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- a/wp/wp-includes/blocks/social-links/block.json	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/blocks/social-links/block.json	Wed Sep 21 18:19:35 2022 +0200
@@ -1,13 +1,52 @@
 {
+	"apiVersion": 2,
 	"name": "core/social-links",
+	"title": "Social Icons",
 	"category": "widgets",
+	"description": "Display icons linking to your social media profiles or websites.",
+	"keywords": [ "links" ],
+	"textdomain": "default",
+	"attributes": {
+		"iconColor": {
+			"type": "string"
+		},
+		"customIconColor": {
+			"type": "string"
+		},
+		"iconColorValue": {
+			"type": "string"
+		},
+		"iconBackgroundColor": {
+			"type": "string"
+		},
+		"customIconBackgroundColor": {
+			"type": "string"
+		},
+		"iconBackgroundColorValue": {
+			"type": "string"
+		},
+		"openInNewTab": {
+			"type": "boolean",
+			"default": false
+		},
+		"size": {
+			"type": "string"
+		}
+	},
+	"providesContext": {
+		"openInNewTab": "openInNewTab",
+		"iconColorValue": "iconColorValue",
+		"iconBackgroundColorValue": "iconBackgroundColorValue"
+	},
 	"supports": {
-		"align": [
-			"left",
-			"center",
-			"right"
-		],
-		"lightBlockWrapper": true,
+		"align": [ "left", "center", "right" ],
 		"anchor": true
-	}
+	},
+	"styles": [
+		{ "name": "default", "label": "Default", "isDefault": true },
+		{ "name": "logos-only", "label": "Logos Only" },
+		{ "name": "pill-shape", "label": "Pill Shape" }
+	],
+	"editorStyle": "wp-block-social-links-editor",
+	"style": "wp-block-social-links"
 }