| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "jetpack/sharing-buttons", |
| 5 |
"title": "Sharing Buttons", |
| 6 |
"description": "Give your readers the ability to easily share your content with X, Facebook, Tumblr, LinkedIn, and a host of other services to help spread your message across the web.", |
| 7 |
"keywords": [ |
| 8 |
"sharing", |
| 9 |
"social", |
| 10 |
"bluesky", |
| 11 |
"twitter", |
| 12 |
"x", |
| 13 |
"linkedin", |
| 14 |
"facebook", |
| 15 |
"mastodon", |
| 16 |
"tumblr", |
| 17 |
"threads", |
| 18 |
"whatsapp", |
| 19 |
"telegram", |
| 20 |
"pinterest", |
| 21 |
"pocket", |
| 22 |
"reddit", |
| 23 |
"nextdoor", |
| 24 |
"print", |
| 25 |
"email" |
| 26 |
], |
| 27 |
"version": "12.5.0", |
| 28 |
"textdomain": "jetpack", |
| 29 |
"category": "embed", |
| 30 |
"icon": "<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z' /></svg>", |
| 31 |
"attributes": { |
| 32 |
"styleType": { |
| 33 |
"type": "string", |
| 34 |
"default": "icon-text", |
| 35 |
"validValues": [ |
| 36 |
"icon-text", |
| 37 |
"icon", |
| 38 |
"text", |
| 39 |
"official" |
| 40 |
] |
| 41 |
}, |
| 42 |
"size": { |
| 43 |
"type": "string", |
| 44 |
"default": "has-normal-icon-size", |
| 45 |
"validValues": [ |
| 46 |
"has-small-icon-size", |
| 47 |
"has-normal-icon-size", |
| 48 |
"has-large-icon-size", |
| 49 |
"has-huge-icon-size" |
| 50 |
] |
| 51 |
}, |
| 52 |
"iconColor": { |
| 53 |
"type": "string" |
| 54 |
}, |
| 55 |
"customIconColor": { |
| 56 |
"type": "string" |
| 57 |
}, |
| 58 |
"iconColorValue": { |
| 59 |
"type": "string" |
| 60 |
}, |
| 61 |
"iconBackgroundColor": { |
| 62 |
"type": "string" |
| 63 |
}, |
| 64 |
"customIconBackgroundColor": { |
| 65 |
"type": "string" |
| 66 |
}, |
| 67 |
"iconBackgroundColorValue": { |
| 68 |
"type": "string" |
| 69 |
} |
| 70 |
}, |
| 71 |
"providesContext": { |
| 72 |
"styleType": "styleType", |
| 73 |
"iconColor": "iconColor", |
| 74 |
"iconColorValue": "iconColorValue", |
| 75 |
"iconBackgroundColor": "iconBackgroundColor", |
| 76 |
"iconBackgroundColorValue": "iconBackgroundColorValue" |
| 77 |
}, |
| 78 |
"supports": { |
| 79 |
"align": [ |
| 80 |
"left", |
| 81 |
"center", |
| 82 |
"right" |
| 83 |
], |
| 84 |
"anchor": true, |
| 85 |
"__experimentalExposeControlsToChildren": true, |
| 86 |
"layout": { |
| 87 |
"allowSwitching": false, |
| 88 |
"allowInheriting": false, |
| 89 |
"allowVerticalAlignment": false, |
| 90 |
"default": { |
| 91 |
"type": "flex" |
| 92 |
} |
| 93 |
}, |
| 94 |
"color": { |
| 95 |
"enableContrastChecker": true, |
| 96 |
"background": true, |
| 97 |
"gradients": true, |
| 98 |
"customGradient": true, |
| 99 |
"text": false, |
| 100 |
"__experimentalDefaultControls": { |
| 101 |
"background": false |
| 102 |
} |
| 103 |
}, |
| 104 |
"spacing": { |
| 105 |
"blockGap": [ |
| 106 |
"horizontal", |
| 107 |
"vertical" |
| 108 |
], |
| 109 |
"margin": true, |
| 110 |
"padding": true, |
| 111 |
"units": [ |
| 112 |
"px", |
| 113 |
"em", |
| 114 |
"rem", |
| 115 |
"vh", |
| 116 |
"vw" |
| 117 |
], |
| 118 |
"__experimentalDefaultControls": { |
| 119 |
"blockGap": true, |
| 120 |
"margin": true, |
| 121 |
"padding": false |
| 122 |
} |
| 123 |
} |
| 124 |
}, |
| 125 |
"example": { |
| 126 |
"innerBlocks": [ |
| 127 |
{ |
| 128 |
"name": "jetpack/sharing-button", |
| 129 |
"attributes": { |
| 130 |
"service": "facebook" |
| 131 |
} |
| 132 |
}, |
| 133 |
{ |
| 134 |
"name": "jetpack/sharing-button", |
| 135 |
"attributes": { |
| 136 |
"service": "x" |
| 137 |
} |
| 138 |
}, |
| 139 |
{ |
| 140 |
"name": "jetpack/sharing-button", |
| 141 |
"attributes": { |
| 142 |
"service": "mastodon" |
| 143 |
} |
| 144 |
} |
| 145 |
] |
| 146 |
}, |
| 147 |
"viewScript": "file:./view.js", |
| 148 |
"style": "file:./view.css", |
| 149 |
"editorScript": "jetpack-blocks-editor" |
| 150 |
} |