initial
This commit is contained in:
Vendored
+108
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "jetpack/simple-payments",
|
||||
"title": "Pay with PayPal",
|
||||
"description": "Add credit and debit card payment buttons with minimal setup. Good for collecting donations or payments for products and services.",
|
||||
"keywords": [
|
||||
"buy",
|
||||
"commerce",
|
||||
"credit card",
|
||||
"debit card",
|
||||
"monetize",
|
||||
"earn",
|
||||
"ecommerce",
|
||||
"money",
|
||||
"paid",
|
||||
"payments",
|
||||
"products",
|
||||
"purchase",
|
||||
"sell",
|
||||
"shop",
|
||||
"square",
|
||||
"payments"
|
||||
],
|
||||
"version": "12.5.0",
|
||||
"textdomain": "jetpack-paypal-payments",
|
||||
"category": "monetize",
|
||||
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path fill='none' d='M0 0h24v24H0V0z' /><path d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z' /></svg>",
|
||||
"supports": {
|
||||
"align": false,
|
||||
"className": false,
|
||||
"customClassName": false,
|
||||
"html": false,
|
||||
"inserter": false,
|
||||
"reusable": false
|
||||
},
|
||||
"attributes": {
|
||||
"currency": {
|
||||
"type": "string",
|
||||
"default": "USD"
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": ".jetpack-simple-payments-description p",
|
||||
"default": ""
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"featuredMediaId": {
|
||||
"type": "number",
|
||||
"default": 0
|
||||
},
|
||||
"featuredMediaUrl": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": ".jetpack-simple-payments-image img",
|
||||
"attribute": "src",
|
||||
"default": null
|
||||
},
|
||||
"featuredMediaTitle": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": ".jetpack-simple-payments-image img",
|
||||
"attribute": "alt",
|
||||
"default": null
|
||||
},
|
||||
"multiple": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"postLinkUrl": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": ".jetpack-simple-payments-purchase",
|
||||
"attribute": "href"
|
||||
},
|
||||
"postLinkText": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": ".jetpack-simple-payments-purchase",
|
||||
"default": "Click here to purchase."
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"productId": {
|
||||
"type": "number"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": ".jetpack-simple-payments-title p",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"example": {
|
||||
"attributes": {
|
||||
"price": 25.0,
|
||||
"title": "Jetpack t-shirt",
|
||||
"content": "Take flight in ultimate comfort with this stylish t-shirt featuring the Jetpack logo.",
|
||||
"email": "jetpack@jetpack.com",
|
||||
"featuredMediaUrl": "./simple-payments_example-1.jpg"
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('jetpack-script-data', 'jetpack-shared-stores', 'lodash', 'react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-url', 'wp-widgets'), 'version' => '55440f151c75f99a4460');
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+7
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => 'a9212ea6c639cc1fd73d');
|
||||
+1
@@ -0,0 +1 @@
|
||||
.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-product{display:flex;flex-direction:column}.jetpack-simple-payments-product-image{flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-product-image .jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;left:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{align-items:flex-start;display:flex}.jetpack-simple-payments-button{max-width:340px;width:100%}.jetpack-simple-payments-items{flex:0 0 auto;margin-right:10px}input[type=number].jetpack-simple-payments-items-number{font-size:16px;line-height:1;max-width:60px;padding:4px 8px}input[type=number].jetpack-simple-payments-items-number::-webkit-inner-spin-button,input[type=number].jetpack-simple-payments-items-number::-webkit-outer-spin-button{opacity:1}.jetpack-simple-payments-button iframe{margin:0}.jetpack-simple-payments-purchase-message{background-color:hsla(0,0%,100%,.7);border:2px solid #fff;border-radius:2px;box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3;display:none;margin-bottom:1.5em;min-height:48px;padding:1em;position:relative}.jetpack-simple-payments-purchase-message:before{font-family:dashicons!important;font-size:48px!important;line-height:1!important;position:absolute;speak:none;left:0;top:50%;transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.jetpack-simple-payments-purchase-message.show{display:block}.jetpack-simple-payments-purchase-message.success:before{color:#4ab866;content:""}.jetpack-simple-payments-purchase-message.error:before{color:#d94f4f;content:""}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-purchase-message p{color:#222;margin:0 0 .5em;padding:0 0 0 40px}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-purchase-message p:last-child{margin:0}.jetpack-simple-payments-description{white-space:pre-wrap}@media screen and (min-width:400px){.jetpack-simple-payments-product{flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{flex-basis:70%;padding-left:1em}}.is-email .jetpack-simple-payments-product{display:table;width:100%}.is-email .jetpack-simple-payments-product-image{display:table-cell;vertical-align:top;width:30%}.is-email .jetpack-simple-payments-image{padding-top:0}.is-email .jetpack-simple-payments-image figure{margin:0}.jetpack-simple-payments-details{width:100%}.is-email .jetpack-simple-payments-product-image+.jetpack-simple-payments-details{display:table-cell;width:70%}
|
||||
+1
@@ -0,0 +1 @@
|
||||
.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-product{display:flex;flex-direction:column}.jetpack-simple-payments-product-image{flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-product-image .jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{align-items:flex-start;display:flex}.jetpack-simple-payments-button{max-width:340px;width:100%}.jetpack-simple-payments-items{flex:0 0 auto;margin-left:10px}input[type=number].jetpack-simple-payments-items-number{font-size:16px;line-height:1;max-width:60px;padding:4px 8px}input[type=number].jetpack-simple-payments-items-number::-webkit-inner-spin-button,input[type=number].jetpack-simple-payments-items-number::-webkit-outer-spin-button{opacity:1}.jetpack-simple-payments-button iframe{margin:0}.jetpack-simple-payments-purchase-message{background-color:hsla(0,0%,100%,.7);border:2px solid #fff;border-radius:2px;box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3;display:none;margin-bottom:1.5em;min-height:48px;padding:1em;position:relative}.jetpack-simple-payments-purchase-message:before{font-family:dashicons!important;font-size:48px!important;line-height:1!important;position:absolute;speak:none;right:0;top:50%;transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.jetpack-simple-payments-purchase-message.show{display:block}.jetpack-simple-payments-purchase-message.success:before{color:#4ab866;content:""}.jetpack-simple-payments-purchase-message.error:before{color:#d94f4f;content:""}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-purchase-message p{color:#222;margin:0 0 .5em;padding:0 40px 0 0}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-purchase-message p:last-child{margin:0}.jetpack-simple-payments-description{white-space:pre-wrap}@media screen and (min-width:400px){.jetpack-simple-payments-product{flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{flex-basis:70%;padding-right:1em}}.is-email .jetpack-simple-payments-product{display:table;width:100%}.is-email .jetpack-simple-payments-product-image{display:table-cell;vertical-align:top;width:30%}.is-email .jetpack-simple-payments-image{padding-top:0}.is-email .jetpack-simple-payments-image figure{margin:0}.jetpack-simple-payments-details{width:100%}.is-email .jetpack-simple-payments-product-image+.jetpack-simple-payments-details{display:table-cell;width:70%}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "jetpack/paypal-payment-buttons",
|
||||
"version": "0.1.0",
|
||||
"title": "PayPal Payment Buttons",
|
||||
"category": "monetize",
|
||||
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path fill='none' d='M0 0h24v24H0V0z' /><path d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z' /></svg>",
|
||||
"description": "Custom block for displaying PayPal Payment Buttons.",
|
||||
"example": {},
|
||||
"attributes": {
|
||||
"buttonType": {
|
||||
"type": "string",
|
||||
"enum": [ "stacked", "single" ],
|
||||
"default": "stacked"
|
||||
},
|
||||
"scriptSrc": {
|
||||
"type": "string"
|
||||
},
|
||||
"hostedButtonId": {
|
||||
"type": "string"
|
||||
},
|
||||
"buttonText": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"textdomain": "jetpack-paypal-payments"
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('jetpack-script-data', 'jetpack-shared-stores', 'react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '555968be6281ee10476a');
|
||||
+1
@@ -0,0 +1 @@
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive>*{pointer-events:auto;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive:after{content:none}.wp-block-jetpack-paypal-payment-buttons .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;padding:12px!important;width:auto}@media(min-width:600px){.wp-block-jetpack-paypal-payment-buttons .block-editor-plain-text{font-size:13px!important}}.wp-block-jetpack-paypal-payment-buttons .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-jetpack-paypal-payment-buttons .components-notice{align-self:normal}
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive>*{pointer-events:auto;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-interactive:after{content:none}.wp-block-jetpack-paypal-payment-buttons .block-editor-plain-text{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;padding:12px!important;width:auto}@media(min-width:600px){.wp-block-jetpack-paypal-payment-buttons .block-editor-plain-text{font-size:13px!important}}.wp-block-jetpack-paypal-payment-buttons .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-jetpack-paypal-payment-buttons .components-notice{align-self:normal}
|
||||
Reference in New Issue
Block a user