| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "jetpack/donations", |
| 5 |
"title": "Donations Form", |
| 6 |
"description": "Collect one-time, monthly, or annually recurring donations.", |
| 7 |
"keywords": [ |
| 8 |
"charity", |
| 9 |
"contribution", |
| 10 |
"credit card", |
| 11 |
"debit card", |
| 12 |
"donate", |
| 13 |
"earn", |
| 14 |
"monetize", |
| 15 |
"ecommerce", |
| 16 |
"fundraising", |
| 17 |
"fundraiser", |
| 18 |
"gofundme", |
| 19 |
"money", |
| 20 |
"nonprofit", |
| 21 |
"non-profit", |
| 22 |
"paid", |
| 23 |
"patreon", |
| 24 |
"pay", |
| 25 |
"payments", |
| 26 |
"recurring", |
| 27 |
"stripe", |
| 28 |
"sponsor", |
| 29 |
"square", |
| 30 |
"tipping", |
| 31 |
"venmo" |
| 32 |
], |
| 33 |
"version": "12.5.0", |
| 34 |
"textdomain": "jetpack", |
| 35 |
"category": "monetize", |
| 36 |
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><g transform='translate(1.2 1.2) scale(0.9)'><path d='M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z' /></g></svg>", |
| 37 |
"supports": { |
| 38 |
"html": false, |
| 39 |
"color": { |
| 40 |
"background": true, |
| 41 |
"text": true, |
| 42 |
"button": true, |
| 43 |
"link": true, |
| 44 |
"gradients": false |
| 45 |
}, |
| 46 |
"typography": { |
| 47 |
"fontSize": true, |
| 48 |
"fontFamily": true, |
| 49 |
"fontStyle": true, |
| 50 |
"fontWeight": true, |
| 51 |
"lineHeight": true, |
| 52 |
"letterSpacing": true |
| 53 |
} |
| 54 |
}, |
| 55 |
"attributes": { |
| 56 |
"currency": { |
| 57 |
"type": "string", |
| 58 |
"default": "" |
| 59 |
}, |
| 60 |
"oneTimeDonation": { |
| 61 |
"type": "object", |
| 62 |
"default": { |
| 63 |
"show": true, |
| 64 |
"planId": null, |
| 65 |
"amounts": [ |
| 66 |
5, |
| 67 |
15, |
| 68 |
100 |
| 69 |
] |
| 70 |
} |
| 71 |
}, |
| 72 |
"monthlyDonation": { |
| 73 |
"type": "object", |
| 74 |
"default": { |
| 75 |
"show": true, |
| 76 |
"planId": null, |
| 77 |
"amounts": [ |
| 78 |
5, |
| 79 |
15, |
| 80 |
100 |
| 81 |
] |
| 82 |
} |
| 83 |
}, |
| 84 |
"annualDonation": { |
| 85 |
"type": "object", |
| 86 |
"default": { |
| 87 |
"show": true, |
| 88 |
"planId": null, |
| 89 |
"amounts": [ |
| 90 |
5, |
| 91 |
15, |
| 92 |
100 |
| 93 |
] |
| 94 |
} |
| 95 |
}, |
| 96 |
"showCustomAmount": { |
| 97 |
"type": "boolean", |
| 98 |
"default": true |
| 99 |
}, |
| 100 |
"defaultInterval": { |
| 101 |
"type": "string" |
| 102 |
}, |
| 103 |
"customAmountPlaceholder": { |
| 104 |
"type": "number" |
| 105 |
}, |
| 106 |
"chooseAmountText": { |
| 107 |
"type": "string" |
| 108 |
}, |
| 109 |
"customAmountText": { |
| 110 |
"type": "string" |
| 111 |
}, |
| 112 |
"fallbackLinkUrl": { |
| 113 |
"type": "string" |
| 114 |
}, |
| 115 |
"activeTabBackgroundColor": { |
| 116 |
"type": "string" |
| 117 |
}, |
| 118 |
"activeTabTextColor": { |
| 119 |
"type": "string" |
| 120 |
}, |
| 121 |
"inactiveTabBackgroundColor": { |
| 122 |
"type": "string" |
| 123 |
}, |
| 124 |
"inactiveTabTextColor": { |
| 125 |
"type": "string" |
| 126 |
}, |
| 127 |
"selectedAmountBackgroundColor": { |
| 128 |
"type": "string" |
| 129 |
}, |
| 130 |
"selectedAmountTextColor": { |
| 131 |
"type": "string" |
| 132 |
}, |
| 133 |
"selectedAmountOutlineColor": { |
| 134 |
"type": "string" |
| 135 |
}, |
| 136 |
"tabsAppearance": { |
| 137 |
"type": "string", |
| 138 |
"enum": [ |
| 139 |
"tabs", |
| 140 |
"buttons" |
| 141 |
], |
| 142 |
"default": "tabs" |
| 143 |
}, |
| 144 |
"tabBorderColor": { |
| 145 |
"type": "string" |
| 146 |
}, |
| 147 |
"tabFontSize": { |
| 148 |
"type": "string" |
| 149 |
}, |
| 150 |
"tabPadding": { |
| 151 |
"type": "object" |
| 152 |
}, |
| 153 |
"buttonFontSize": { |
| 154 |
"type": "string" |
| 155 |
}, |
| 156 |
"buttonPadding": { |
| 157 |
"type": "object" |
| 158 |
}, |
| 159 |
"buttonAlignment": { |
| 160 |
"type": "string", |
| 161 |
"enum": [ |
| 162 |
"", |
| 163 |
"left", |
| 164 |
"center", |
| 165 |
"right", |
| 166 |
"full" |
| 167 |
], |
| 168 |
"default": "" |
| 169 |
}, |
| 170 |
"amountFontSize": { |
| 171 |
"type": "string" |
| 172 |
}, |
| 173 |
"amountBorder": { |
| 174 |
"type": "object" |
| 175 |
}, |
| 176 |
"amountBorderRadius": { |
| 177 |
"type": [ |
| 178 |
"string", |
| 179 |
"object" |
| 180 |
] |
| 181 |
}, |
| 182 |
"buttonBorderRadius": { |
| 183 |
"type": [ |
| 184 |
"string", |
| 185 |
"object" |
| 186 |
] |
| 187 |
}, |
| 188 |
"contentAlignment": { |
| 189 |
"type": "string", |
| 190 |
"enum": [ |
| 191 |
"", |
| 192 |
"left", |
| 193 |
"center", |
| 194 |
"right" |
| 195 |
], |
| 196 |
"default": "" |
| 197 |
}, |
| 198 |
"minimumAmount": { |
| 199 |
"type": "number" |
| 200 |
}, |
| 201 |
"maximumAmount": { |
| 202 |
"type": "number" |
| 203 |
}, |
| 204 |
"displayMode": { |
| 205 |
"type": "string", |
| 206 |
"enum": [ |
| 207 |
"inline", |
| 208 |
"modal" |
| 209 |
], |
| 210 |
"default": "inline" |
| 211 |
}, |
| 212 |
"triggerButtonText": { |
| 213 |
"type": "string" |
| 214 |
}, |
| 215 |
"triggerIcon": { |
| 216 |
"type": "string", |
| 217 |
"default": "heart" |
| 218 |
}, |
| 219 |
"triggerSticky": { |
| 220 |
"type": "boolean", |
| 221 |
"default": false |
| 222 |
}, |
| 223 |
"blockBorder": { |
| 224 |
"type": "object" |
| 225 |
}, |
| 226 |
"blockBorderRadius": { |
| 227 |
"type": [ |
| 228 |
"string", |
| 229 |
"object" |
| 230 |
] |
| 231 |
}, |
| 232 |
"variationName": { |
| 233 |
"type": "string", |
| 234 |
"default": "" |
| 235 |
} |
| 236 |
}, |
| 237 |
"example": {}, |
| 238 |
"editorScript": "jetpack-blocks-editor" |
| 239 |
} |