PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.10
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.10
2.1.10 2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 All 110 releases
b-blocks / build / woo-add-to-cart / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.10, at build/woo-add-to-cart/block.json

707 lines 14.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "b-blocks/woo-add-to-cart",
5 "title": "Woo Add to Cart",
6 "category": "bBlocks",
7 "description": "WooCommerce Add to Cart for a chosen product, or for the product in context on the Single Product page — simple, variable, grouped and external products, with optional quantity and inline or stacked layout.",
8 "keywords": [
9 "woocommerce",
10 "add to cart",
11 "buy now",
12 "product",
13 "cart",
14 "shop",
15 "ecommerce",
16 "checkout"
17 ],
18 "textdomain": "b-blocks",
19 "attributes": {
20 "product": {
21 "type": "object",
22 "default": {
23 "id": 0,
24 "previewType": "simple"
25 }
26 },
27 "content": {
28 "type": "object",
29 "default": {
30 "buttonText": "Add to Cart",
31 "addedText": "Added!",
32 "viewCartText": "View cart"
33 }
34 },
35 "options": {
36 "type": "object",
37 "default": {
38 "showQuantity": false,
39 "quantity": 1,
40 "quantityStyle": "stepper",
41 "redirectToCart": false,
42 "viewCart": false
43 }
44 },
45 "layout": {
46 "type": "object",
47 "default": {
48 "alignment": "left",
49 "fullWidth": false,
50 "desktop": {
51 "displayType": "inline",
52 "gap": ""
53 },
54 "tablet": {
55 "displayType": "",
56 "gap": ""
57 },
58 "mobile": {
59 "displayType": "",
60 "gap": ""
61 }
62 }
63 },
64 "button": {
65 "type": "object",
66 "default": {
67 "typo": {
68 "fontSize": {
69 "desktop": "16px",
70 "tablet": "",
71 "mobile": ""
72 },
73 "fontWeight": 600,
74 "fontVariant": "600"
75 },
76 "normal": {
77 "color": {
78 "text": "#ffffff"
79 },
80 "bg": {
81 "type": "solid",
82 "color": "#146EF5"
83 },
84 "border": {
85 "width": "0px",
86 "style": "solid",
87 "color": "#146EF5"
88 }
89 },
90 "hover": {
91 "color": {
92 "text": "#ffffff"
93 },
94 "bg": {
95 "type": "solid",
96 "color": "#070127"
97 },
98 "border": {}
99 },
100 "desktop": {
101 "padding": {
102 "top": "12px",
103 "right": "24px",
104 "bottom": "12px",
105 "left": "24px"
106 },
107 "radius": {
108 "top": "6px",
109 "right": "6px",
110 "bottom": "6px",
111 "left": "6px"
112 },
113 "width": ""
114 },
115 "tablet": {
116 "padding": {
117 "top": "",
118 "right": "",
119 "bottom": "",
120 "left": ""
121 },
122 "radius": {
123 "top": "",
124 "right": "",
125 "bottom": "",
126 "left": ""
127 },
128 "width": ""
129 },
130 "mobile": {
131 "padding": {
132 "top": "",
133 "right": "",
134 "bottom": "",
135 "left": ""
136 },
137 "radius": {
138 "top": "",
139 "right": "",
140 "bottom": "",
141 "left": ""
142 },
143 "width": ""
144 },
145 "shadow": [],
146 "icon": {
147 "svg": "",
148 "position": "before",
149 "size": "16px",
150 "gap": "8px",
151 "color": {
152 "text": ""
153 },
154 "hover": {
155 "color": {
156 "text": ""
157 }
158 }
159 },
160 "added": {
161 "color": {
162 "text": ""
163 },
164 "bg": {
165 "type": "solid",
166 "color": ""
167 }
168 }
169 }
170 },
171 "quantity": {
172 "type": "object",
173 "default": {
174 "typo": {
175 "fontSize": {
176 "desktop": "16px",
177 "tablet": "",
178 "mobile": ""
179 }
180 },
181 "color": {
182 "text": ""
183 },
184 "bg": {
185 "type": "solid",
186 "color": ""
187 },
188 "border": {
189 "width": "1px",
190 "style": "solid",
191 "color": "#dddddd"
192 },
193 "desktop": {
194 "width": "",
195 "height": "",
196 "radius": {
197 "top": "4px",
198 "right": "4px",
199 "bottom": "4px",
200 "left": "4px"
201 }
202 },
203 "tablet": {
204 "width": "",
205 "height": "",
206 "radius": {
207 "top": "",
208 "right": "",
209 "bottom": "",
210 "left": ""
211 }
212 },
213 "mobile": {
214 "width": "",
215 "height": "",
216 "radius": {
217 "top": "",
218 "right": "",
219 "bottom": "",
220 "left": ""
221 }
222 },
223 "hover": {
224 "color": {
225 "text": ""
226 },
227 "bg": {
228 "type": "solid",
229 "color": ""
230 },
231 "border": {}
232 }
233 }
234 },
235 "stepper": {
236 "type": "object",
237 "default": {
238 "color": {
239 "text": "#333333"
240 },
241 "bg": {
242 "type": "solid",
243 "color": "#f0f0f0"
244 },
245 "hover": {
246 "color": {
247 "text": ""
248 },
249 "bg": {
250 "type": "solid",
251 "color": ""
252 }
253 },
254 "desktop": {
255 "width": ""
256 },
257 "tablet": {
258 "width": ""
259 },
260 "mobile": {
261 "width": ""
262 }
263 }
264 },
265 "variations": {
266 "type": "object",
267 "default": {
268 "table": {
269 "desktop": {
270 "rowGap": "",
271 "labelWidth": "",
272 "bottomGap": ""
273 },
274 "tablet": {
275 "rowGap": "",
276 "labelWidth": "",
277 "bottomGap": ""
278 },
279 "mobile": {
280 "rowGap": "",
281 "labelWidth": "",
282 "bottomGap": ""
283 }
284 },
285 "label": {
286 "color": {
287 "text": ""
288 },
289 "typo": {
290 "fontSize": {
291 "desktop": "15px",
292 "tablet": "",
293 "mobile": ""
294 },
295 "fontWeight": 600,
296 "fontVariant": "600"
297 },
298 "hover": {
299 "color": {
300 "text": ""
301 }
302 }
303 },
304 "select": {
305 "typo": {
306 "fontSize": {
307 "desktop": "15px",
308 "tablet": "",
309 "mobile": ""
310 }
311 },
312 "color": {
313 "text": ""
314 },
315 "bg": {
316 "type": "solid",
317 "color": ""
318 },
319 "border": {
320 "width": "1px",
321 "style": "solid",
322 "color": ""
323 },
324 "desktop": {
325 "radius": {
326 "top": "",
327 "right": "",
328 "bottom": "",
329 "left": ""
330 },
331 "padding": {
332 "top": "",
333 "right": "",
334 "bottom": "",
335 "left": ""
336 },
337 "width": ""
338 },
339 "tablet": {
340 "radius": {
341 "top": "",
342 "right": "",
343 "bottom": "",
344 "left": ""
345 },
346 "padding": {
347 "top": "",
348 "right": "",
349 "bottom": "",
350 "left": ""
351 },
352 "width": ""
353 },
354 "mobile": {
355 "radius": {
356 "top": "",
357 "right": "",
358 "bottom": "",
359 "left": ""
360 },
361 "padding": {
362 "top": "",
363 "right": "",
364 "bottom": "",
365 "left": ""
366 },
367 "width": ""
368 },
369 "hover": {
370 "color": {
371 "text": ""
372 },
373 "bg": {
374 "type": "solid",
375 "color": ""
376 },
377 "border": {}
378 }
379 },
380 "clear": {
381 "typo": {
382 "fontSize": {
383 "desktop": "13px",
384 "tablet": "",
385 "mobile": ""
386 }
387 },
388 "color": {
389 "text": ""
390 },
391 "hover": {
392 "color": {
393 "text": ""
394 }
395 }
396 },
397 "price": {
398 "color": {
399 "text": ""
400 },
401 "typo": {
402 "fontSize": {
403 "desktop": "18px",
404 "tablet": "",
405 "mobile": ""
406 },
407 "fontWeight": 700,
408 "fontVariant": "700"
409 }
410 }
411 }
412 },
413 "grouped": {
414 "type": "object",
415 "default": {
416 "table": {
417 "border": {},
418 "desktop": {
419 "rowGap": "",
420 "padding": {
421 "top": "",
422 "right": "",
423 "bottom": "",
424 "left": ""
425 }
426 },
427 "tablet": {
428 "rowGap": "",
429 "padding": {
430 "top": "",
431 "right": "",
432 "bottom": "",
433 "left": ""
434 }
435 },
436 "mobile": {
437 "rowGap": "",
438 "padding": {
439 "top": "",
440 "right": "",
441 "bottom": "",
442 "left": ""
443 }
444 },
445 "bg": {
446 "type": "solid",
447 "color": ""
448 }
449 },
450 "name": {
451 "color": {
452 "text": ""
453 },
454 "typo": {
455 "fontSize": {
456 "desktop": "16px",
457 "tablet": "",
458 "mobile": ""
459 },
460 "fontWeight": 400,
461 "fontVariant": "400"
462 },
463 "hover": {
464 "color": {
465 "text": ""
466 }
467 }
468 },
469 "price": {
470 "color": {
471 "text": ""
472 },
473 "typo": {
474 "fontSize": {
475 "desktop": "16px",
476 "tablet": "",
477 "mobile": ""
478 }
479 }
480 }
481 }
482 },
483 "messages": {
484 "type": "object",
485 "default": {
486 "typo": {
487 "fontSize": {
488 "desktop": "14px",
489 "tablet": "",
490 "mobile": ""
491 }
492 },
493 "color": {
494 "text": "",
495 "inStock": "",
496 "outOfStock": ""
497 }
498 }
499 },
500 "viewCart": {
501 "type": "object",
502 "default": {
503 "typo": {
504 "fontSize": {
505 "desktop": "14px",
506 "tablet": "",
507 "mobile": ""
508 }
509 },
510 "color": {
511 "text": ""
512 },
513 "hover": {
514 "color": {
515 "text": ""
516 }
517 }
518 }
519 },
520 "advanced": {
521 "type": "object",
522 "default": {
523 "dimension": {
524 "padding": {
525 "desktop": {
526 "top": "",
527 "right": "",
528 "bottom": "",
529 "left": ""
530 }
531 }
532 },
533 "borderShadow": {
534 "normal": {
535 "border": {
536 "width": "",
537 "style": "",
538 "color": ""
539 },
540 "radius": {
541 "top": "",
542 "right": "",
543 "bottom": "",
544 "left": ""
545 },
546 "shadow": []
547 }
548 },
549 "transform": {
550 "normal": {
551 "rotate": {
552 "desktop": {
553 "z": "",
554 "y": "",
555 "x": ""
556 },
557 "tablet": {
558 "z": "",
559 "y": "",
560 "x": ""
561 },
562 "mobile": {
563 "z": "",
564 "y": "",
565 "x": ""
566 },
567 "threeDRotate": false
568 },
569 "offset": {
570 "desktop": {
571 "x": "",
572 "y": ""
573 },
574 "tablet": {
575 "x": "",
576 "y": ""
577 },
578 "mobile": {
579 "x": "",
580 "y": ""
581 }
582 },
583 "scale": {
584 "isProportion": true,
585 "desktop": {
586 "x": "",
587 "y": "",
588 "scale": ""
589 },
590 "tablet": {
591 "x": "",
592 "y": "",
593 "scale": ""
594 },
595 "mobile": {
596 "x": "",
597 "y": "",
598 "scale": ""
599 }
600 },
601 "skew": {
602 "desktop": {
603 "x": "",
604 "y": ""
605 },
606 "tablet": {
607 "x": "",
608 "y": ""
609 },
610 "mobile": {
611 "x": "",
612 "y": ""
613 }
614 },
615 "flipX": false,
616 "flipY": false
617 },
618 "hover": {
619 "rotate": {
620 "desktop": {
621 "z": "",
622 "y": "",
623 "x": ""
624 },
625 "tablet": {
626 "z": "",
627 "y": "",
628 "x": ""
629 },
630 "mobile": {
631 "z": "",
632 "y": "",
633 "x": ""
634 },
635 "threeDRotate": false
636 },
637 "offset": {
638 "desktop": {
639 "x": "",
640 "y": ""
641 },
642 "tablet": {
643 "x": "",
644 "y": ""
645 },
646 "mobile": {
647 "x": "",
648 "y": ""
649 }
650 },
651 "scale": {
652 "isProportion": true,
653 "desktop": {
654 "x": "",
655 "y": "",
656 "scale": ""
657 },
658 "tablet": {
659 "x": "",
660 "y": "",
661 "scale": ""
662 },
663 "mobile": {
664 "x": "",
665 "y": "",
666 "scale": ""
667 }
668 },
669 "skew": {
670 "desktop": {
671 "x": "",
672 "y": ""
673 },
674 "tablet": {
675 "x": "",
676 "y": ""
677 },
678 "mobile": {
679 "x": "",
680 "y": ""
681 }
682 },
683 "flipX": false,
684 "flipY": false
685 },
686 "transition": 200
687 },
688 "position": {}
689 }
690 }
691 },
692 "usesContext": [
693 "postId",
694 "postType"
695 ],
696 "supports": {
697 "html": false,
698 "customClassName": true
699 },
700 "example": {
701 "attributes": {}
702 },
703 "editorScript": "file:../index.js",
704 "style": "file:./view.css",
705 "render": "file:./render.php",
706 "viewScript": "file:./view.js"
707 }