| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 2, |
| 4 |
"name": "firebox/paragraph", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Paragraph", |
| 7 |
"description": "An advanced Paragraph block.", |
| 8 |
"category": "firebox", |
| 9 |
"keywords": [ |
| 10 |
"paragraph", |
| 11 |
"text", |
| 12 |
"content" |
| 13 |
], |
| 14 |
"attributes": { |
| 15 |
"uniqueId": { |
| 16 |
"type": "string", |
| 17 |
"default": "" |
| 18 |
}, |
| 19 |
"inForm": { |
| 20 |
"type": "boolean", |
| 21 |
"default": false |
| 22 |
}, |
| 23 |
"formFieldWidth": { |
| 24 |
"type": "string", |
| 25 |
"default": "" |
| 26 |
}, |
| 27 |
"content": { |
| 28 |
"type": "string", |
| 29 |
"source": "html", |
| 30 |
"selector": "p", |
| 31 |
"default": "" |
| 32 |
}, |
| 33 |
"placeholder": { |
| 34 |
"type": "string" |
| 35 |
}, |
| 36 |
"whiteSpace": { |
| 37 |
"type": "string", |
| 38 |
"default": "" |
| 39 |
}, |
| 40 |
"fixedWidth": { |
| 41 |
"type": "object", |
| 42 |
"default": { |
| 43 |
"desktop": "", |
| 44 |
"tablet": "", |
| 45 |
"mobile": "" |
| 46 |
} |
| 47 |
}, |
| 48 |
"fixedHeight": { |
| 49 |
"type": "object", |
| 50 |
"default": { |
| 51 |
"desktop": "", |
| 52 |
"tablet": "", |
| 53 |
"mobile": "" |
| 54 |
} |
| 55 |
}, |
| 56 |
"verticalContentAlignment": { |
| 57 |
"type": "object", |
| 58 |
"default": { |
| 59 |
"desktop": "", |
| 60 |
"tablet": "", |
| 61 |
"mobile": "" |
| 62 |
} |
| 63 |
}, |
| 64 |
"horizontalContentAlignment": { |
| 65 |
"type": "object", |
| 66 |
"default": { |
| 67 |
"desktop": "", |
| 68 |
"tablet": "", |
| 69 |
"mobile": "" |
| 70 |
} |
| 71 |
}, |
| 72 |
"dropCap": { |
| 73 |
"type": "boolean", |
| 74 |
"default": false |
| 75 |
}, |
| 76 |
"width": { |
| 77 |
"type": "boolean", |
| 78 |
"default": false |
| 79 |
}, |
| 80 |
"textColor": { |
| 81 |
"type": "string" |
| 82 |
}, |
| 83 |
"backgroundColor": { |
| 84 |
"type": "string" |
| 85 |
}, |
| 86 |
"zIndex": { |
| 87 |
"type": "string", |
| 88 |
"default": "" |
| 89 |
}, |
| 90 |
"padding": { |
| 91 |
"type": "object", |
| 92 |
"default": { |
| 93 |
"desktop": { |
| 94 |
"top": "", |
| 95 |
"right": "", |
| 96 |
"bottom": "", |
| 97 |
"left": "" |
| 98 |
}, |
| 99 |
"tablet": { |
| 100 |
"top": "", |
| 101 |
"right": "", |
| 102 |
"bottom": "", |
| 103 |
"left": "" |
| 104 |
}, |
| 105 |
"mobile": { |
| 106 |
"top": "", |
| 107 |
"right": "", |
| 108 |
"bottom": "", |
| 109 |
"left": "" |
| 110 |
}, |
| 111 |
"linked": true |
| 112 |
} |
| 113 |
}, |
| 114 |
"margin": { |
| 115 |
"type": "object", |
| 116 |
"default": { |
| 117 |
"desktop": { |
| 118 |
"top": 16, |
| 119 |
"right": "", |
| 120 |
"bottom": 16, |
| 121 |
"left": "" |
| 122 |
}, |
| 123 |
"tablet": { |
| 124 |
"top": "", |
| 125 |
"right": "", |
| 126 |
"bottom": "", |
| 127 |
"left": "" |
| 128 |
}, |
| 129 |
"mobile": { |
| 130 |
"top": "", |
| 131 |
"right": "", |
| 132 |
"bottom": "", |
| 133 |
"left": "" |
| 134 |
}, |
| 135 |
"linked": true |
| 136 |
} |
| 137 |
}, |
| 138 |
"align": { |
| 139 |
"type": "object", |
| 140 |
"default": { |
| 141 |
"desktop": "", |
| 142 |
"tablet": "", |
| 143 |
"mobile": "" |
| 144 |
} |
| 145 |
}, |
| 146 |
"fontSize": { |
| 147 |
"type": "object", |
| 148 |
"default": { |
| 149 |
"desktop": "", |
| 150 |
"tablet": "", |
| 151 |
"mobile": "" |
| 152 |
} |
| 153 |
}, |
| 154 |
"lineHeight": { |
| 155 |
"type": "object", |
| 156 |
"default": { |
| 157 |
"desktop": 1, |
| 158 |
"tablet": "", |
| 159 |
"mobile": "" |
| 160 |
} |
| 161 |
}, |
| 162 |
"letterSpacing": { |
| 163 |
"type": "object", |
| 164 |
"default": { |
| 165 |
"desktop": 0, |
| 166 |
"tablet": "", |
| 167 |
"mobile": "" |
| 168 |
} |
| 169 |
}, |
| 170 |
"visibility": { |
| 171 |
"type": "object", |
| 172 |
"default": { |
| 173 |
"desktop": false, |
| 174 |
"tablet": false, |
| 175 |
"mobile": false |
| 176 |
} |
| 177 |
}, |
| 178 |
"blockBorderColor": { |
| 179 |
"type": "string", |
| 180 |
"default": "" |
| 181 |
}, |
| 182 |
"blockBorderWidth": { |
| 183 |
"type": "number", |
| 184 |
"default": 0 |
| 185 |
}, |
| 186 |
"blockBorderStyle": { |
| 187 |
"type": "string", |
| 188 |
"default": "none" |
| 189 |
}, |
| 190 |
"blockBorderRadius": { |
| 191 |
"type": "object", |
| 192 |
"default": { |
| 193 |
"desktop": { |
| 194 |
"top_left": "", |
| 195 |
"top_right": "", |
| 196 |
"bottom_right": "", |
| 197 |
"bottom_left": "" |
| 198 |
}, |
| 199 |
"tablet": { |
| 200 |
"top_left": "", |
| 201 |
"top_right": "", |
| 202 |
"bottom_right": "", |
| 203 |
"bottom_left": "" |
| 204 |
}, |
| 205 |
"mobile": { |
| 206 |
"top_left": "", |
| 207 |
"top_right": "", |
| 208 |
"bottom_right": "", |
| 209 |
"bottom_left": "" |
| 210 |
}, |
| 211 |
"linked": true |
| 212 |
} |
| 213 |
}, |
| 214 |
"boxShadow": { |
| 215 |
"type": "object", |
| 216 |
"default": { |
| 217 |
"desktop": { |
| 218 |
"type": "none", |
| 219 |
"top": 0, |
| 220 |
"left": 0, |
| 221 |
"color": "", |
| 222 |
"spread": 7, |
| 223 |
"width": 0 |
| 224 |
}, |
| 225 |
"tablet": { |
| 226 |
"type": "none", |
| 227 |
"top": 0, |
| 228 |
"left": 0, |
| 229 |
"color": "", |
| 230 |
"spread": 7, |
| 231 |
"width": 0 |
| 232 |
}, |
| 233 |
"mobile": { |
| 234 |
"type": "none", |
| 235 |
"top": 0, |
| 236 |
"left": 0, |
| 237 |
"color": "", |
| 238 |
"spread": 7, |
| 239 |
"width": 0 |
| 240 |
} |
| 241 |
} |
| 242 |
}, |
| 243 |
"textShadow": { |
| 244 |
"type": "object", |
| 245 |
"default": { |
| 246 |
"hpos": 0, |
| 247 |
"vpos": 0, |
| 248 |
"blur": 0, |
| 249 |
"color": "" |
| 250 |
} |
| 251 |
}, |
| 252 |
"blockAbsolutePosition": { |
| 253 |
"type": "object", |
| 254 |
"default": { |
| 255 |
"desktop": false, |
| 256 |
"tablet": false, |
| 257 |
"mobile": false |
| 258 |
} |
| 259 |
}, |
| 260 |
"blockAbsolutePositionValue": { |
| 261 |
"type": "object", |
| 262 |
"default": { |
| 263 |
"desktop": "", |
| 264 |
"tablet": "", |
| 265 |
"mobile": "" |
| 266 |
} |
| 267 |
}, |
| 268 |
"blockAbsolutePositionItems": { |
| 269 |
"type": "object", |
| 270 |
"default": { |
| 271 |
"desktop": { |
| 272 |
"top": "", |
| 273 |
"right": "", |
| 274 |
"bottom": "", |
| 275 |
"left": "", |
| 276 |
"linked": false |
| 277 |
}, |
| 278 |
"tablet": { |
| 279 |
"top": "", |
| 280 |
"right": "", |
| 281 |
"bottom": "", |
| 282 |
"left": "", |
| 283 |
"linked": false |
| 284 |
}, |
| 285 |
"mobile": { |
| 286 |
"top": "", |
| 287 |
"right": "", |
| 288 |
"bottom": "", |
| 289 |
"left": "", |
| 290 |
"linked": false |
| 291 |
} |
| 292 |
} |
| 293 |
}, |
| 294 |
"blockAbsolutePositionDisabled": { |
| 295 |
"type": "object", |
| 296 |
"default": { |
| 297 |
"desktop": false, |
| 298 |
"tablet": false, |
| 299 |
"mobile": false |
| 300 |
} |
| 301 |
}, |
| 302 |
"blockFontType": { |
| 303 |
"type": "string", |
| 304 |
"default": "default" |
| 305 |
}, |
| 306 |
"blockFontFamily": { |
| 307 |
"type": "object", |
| 308 |
"default": "default" |
| 309 |
}, |
| 310 |
"blockFontWeight": { |
| 311 |
"type": "string", |
| 312 |
"default": 400 |
| 313 |
}, |
| 314 |
"blockFontStyle": { |
| 315 |
"type": "string", |
| 316 |
"default": "normal" |
| 317 |
} |
| 318 |
}, |
| 319 |
"editorScript": [ |
| 320 |
"firebox-store", |
| 321 |
"file:./index.js" |
| 322 |
], |
| 323 |
"editorStyle": "fb-block-paragraph" |
| 324 |
} |