This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,150 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "jetpack/sharing-buttons",
"title": "Sharing Buttons",
"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.",
"keywords": [
"sharing",
"social",
"bluesky",
"twitter",
"x",
"linkedin",
"facebook",
"mastodon",
"tumblr",
"threads",
"whatsapp",
"telegram",
"pinterest",
"pocket",
"reddit",
"nextdoor",
"print",
"email"
],
"version": "12.5.0",
"textdomain": "jetpack",
"category": "embed",
"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>",
"attributes": {
"styleType": {
"type": "string",
"default": "icon-text",
"validValues": [
"icon-text",
"icon",
"text",
"official"
]
},
"size": {
"type": "string",
"default": "has-normal-icon-size",
"validValues": [
"has-small-icon-size",
"has-normal-icon-size",
"has-large-icon-size",
"has-huge-icon-size"
]
},
"iconColor": {
"type": "string"
},
"customIconColor": {
"type": "string"
},
"iconColorValue": {
"type": "string"
},
"iconBackgroundColor": {
"type": "string"
},
"customIconBackgroundColor": {
"type": "string"
},
"iconBackgroundColorValue": {
"type": "string"
}
},
"providesContext": {
"styleType": "styleType",
"iconColor": "iconColor",
"iconColorValue": "iconColorValue",
"iconBackgroundColor": "iconBackgroundColor",
"iconBackgroundColorValue": "iconBackgroundColorValue"
},
"supports": {
"align": [
"left",
"center",
"right"
],
"anchor": true,
"__experimentalExposeControlsToChildren": true,
"layout": {
"allowSwitching": false,
"allowInheriting": false,
"allowVerticalAlignment": false,
"default": {
"type": "flex"
}
},
"color": {
"enableContrastChecker": true,
"background": true,
"gradients": true,
"customGradient": true,
"text": false,
"__experimentalDefaultControls": {
"background": false
}
},
"spacing": {
"blockGap": [
"horizontal",
"vertical"
],
"margin": true,
"padding": true,
"units": [
"px",
"em",
"rem",
"vh",
"vw"
],
"__experimentalDefaultControls": {
"blockGap": true,
"margin": true,
"padding": false
}
}
},
"example": {
"innerBlocks": [
{
"name": "jetpack/sharing-button",
"attributes": {
"service": "facebook"
}
},
{
"name": "jetpack/sharing-button",
"attributes": {
"service": "x"
}
},
{
"name": "jetpack/sharing-button",
"attributes": {
"service": "mastodon"
}
}
]
},
"viewScript": "file:./view.js",
"style": "file:./view.css",
"editorScript": "jetpack-blocks-editor"
}
@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-dom-ready'), 'version' => '44964dfd791700150810');
@@ -0,0 +1 @@
.jetpack-sharing-buttons__services-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:0;list-style-type:none;margin:5px;padding:0}.jetpack-sharing-buttons__services-list.has-small-icon-size{font-size:12px}.jetpack-sharing-buttons__services-list.has-normal-icon-size{font-size:16px}.jetpack-sharing-buttons__services-list.has-large-icon-size{font-size:24px}.jetpack-sharing-buttons__services-list.has-huge-icon-size{font-size:36px}@media print{.jetpack-sharing-buttons__services-list{display:none!important}}.editor-styles-wrapper .wp-block-jetpack-sharing-buttons{gap:0;padding-inline-start:0}ul.jetpack-sharing-buttons__services-list.has-background{padding:1.25em 2.375em}
@@ -0,0 +1 @@
(()=>{var t={79366:(t,e,r)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)},98490:t=>{"use strict";t.exports=window.wp.domReady}},e={};function r(o){var a=e[o];if(void 0!==a)return a.exports;var n=e[o]={exports:{}};return t[o](n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!t||!/^http(s?):/.test(t));)t=o[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t+"../"})(),(()=>{"use strict";r(79366)})(),(()=>{"use strict";var t=r(98490);let e;"undefined"!=typeof window&&r.n(t)()((()=>{const t=document.getElementsByClassName("wp-block-jetpack-sharing-buttons");for(const r of t)r.addEventListener("click",(t=>{const r=t.target.closest("a"),o=r?.dataset?.service;var a;if(r&&r.classList.contains(`share-${o}`)&&"mail"!==o)if(t.preventDefault(),t.stopPropagation(),"share"!==o)"print"!==o?(e&&e.close(),e=window.open(r.getAttribute("href"),`wpcom${o}`,"menubar=1,resizable=1,width=600,height=400"),e&&e.focus()):window.print();else if(r?.href&&(a={url:r.href},navigator&&"function"==typeof navigator.share&&"function"==typeof navigator.canShare&&navigator.canShare(a)))navigator.share({url:r.href});else{const[t]=r.getElementsByClassName("tooltiptext");t&&t.style&&(t.style.display="initial",setTimeout((()=>{t.style.display="none"}),2e3)),navigator?.clipboard?.writeText(r.href)}}))}))})()})();
@@ -0,0 +1 @@
.jetpack-sharing-buttons__services-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:0;list-style-type:none;margin:5px;padding:0}.jetpack-sharing-buttons__services-list.has-small-icon-size{font-size:12px}.jetpack-sharing-buttons__services-list.has-normal-icon-size{font-size:16px}.jetpack-sharing-buttons__services-list.has-large-icon-size{font-size:24px}.jetpack-sharing-buttons__services-list.has-huge-icon-size{font-size:36px}@media print{.jetpack-sharing-buttons__services-list{display:none!important}}.editor-styles-wrapper .wp-block-jetpack-sharing-buttons{gap:0;padding-inline-start:0}ul.jetpack-sharing-buttons__services-list.has-background{padding:1.25em 2.375em}