← All changes
|
assets/src/apps/js/blocks/course-elements/course-button/block.json
+68
-68
4.3.9.1
→
4.4.9
View file →
| @@ -1,68 +1,68 @@ | ||
| 1 | -{ | |
| 2 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | - "apiVersion": 3, | |
| 4 | - "name": "learnpress/course-button", | |
| 5 | - "title": "Course Button", | |
| 6 | - "category": "learnpress-course-elements", | |
| 7 | - "icon": "button", | |
| 8 | - "description": "Renders template Button Course PHP templates.", | |
| 9 | - "textdomain": "learnpress", | |
| 10 | - "keywords": [ "button single course", "learnpress" ], | |
| 11 | - "ancestor": [ "learnpress/single-course" ], | |
| 12 | - "usesContext": [ "lpCourseData" ], | |
| 13 | - "attributes": { | |
| 14 | - "textAlign": { | |
| 15 | - "type": "string", | |
| 16 | - "default": "center" | |
| 17 | - }, | |
| 18 | - "justifyContent": { | |
| 19 | - "type": "string", | |
| 20 | - "default": "center" | |
| 21 | - }, | |
| 22 | - "alignItems": { | |
| 23 | - "type": "string", | |
| 24 | - "default": "top" | |
| 25 | - }, | |
| 26 | - "width": { | |
| 27 | - "type": "string", | |
| 28 | - "default": "100" | |
| 29 | - } | |
| 30 | - }, | |
| 31 | - "supports": { | |
| 32 | - "multiple": true, | |
| 33 | - "align": [ "wide", "full" ], | |
| 34 | - "html": false, | |
| 35 | - "typography": { | |
| 36 | - "fontSize": true, | |
| 37 | - "__experimentalDefaultControls": { "fontSize": true } | |
| 38 | - }, | |
| 39 | - "color": { | |
| 40 | - "background": true, | |
| 41 | - "text": true, | |
| 42 | - "__experimentalDefaultControls": { | |
| 43 | - "background": true, | |
| 44 | - "text": true | |
| 45 | - } | |
| 46 | - }, | |
| 47 | - "__experimentalBorder": { | |
| 48 | - "color": true, | |
| 49 | - "radius": true, | |
| 50 | - "width": true, | |
| 51 | - "__experimentalDefaultControls": { | |
| 52 | - "width": false, | |
| 53 | - "color": false, | |
| 54 | - "radius": false | |
| 55 | - } | |
| 56 | - }, | |
| 57 | - "spacing": { | |
| 58 | - "margin": true, | |
| 59 | - "padding": true, | |
| 60 | - "content": true, | |
| 61 | - "__experimentalDefaultControls": { | |
| 62 | - "margin": false, | |
| 63 | - "padding": false, | |
| 64 | - "content": true | |
| 65 | - } | |
| 66 | - } | |
| 67 | - } | |
| 68 | -} | |
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "learnpress/course-button", | |
| 5 | + "title": "Course Button", | |
| 6 | + "category": "learnpress-course-elements", | |
| 7 | + "icon": "button", | |
| 8 | + "description": "Renders template Button Course PHP templates.", | |
| 9 | + "textdomain": "learnpress", | |
| 10 | + "keywords": [ "button single course", "learnpress" ], | |
| 11 | + "ancestor": [ "learnpress/single-course" ], | |
| 12 | + "usesContext": [ "lpCourseData" ], | |
| 13 | + "attributes": { | |
| 14 | + "textAlign": { | |
| 15 | + "type": "string", | |
| 16 | + "default": "center" | |
| 17 | + }, | |
| 18 | + "justifyContent": { | |
| 19 | + "type": "string", | |
| 20 | + "default": "center" | |
| 21 | + }, | |
| 22 | + "alignItems": { | |
| 23 | + "type": "string", | |
| 24 | + "default": "top" | |
| 25 | + }, | |
| 26 | + "width": { | |
| 27 | + "type": "string", | |
| 28 | + "default": "100" | |
| 29 | + } | |
| 30 | + }, | |
| 31 | + "supports": { | |
| 32 | + "multiple": true, | |
| 33 | + "align": [ "wide", "full" ], | |
| 34 | + "html": false, | |
| 35 | + "typography": { | |
| 36 | + "fontSize": true, | |
| 37 | + "__experimentalDefaultControls": { "fontSize": true } | |
| 38 | + }, | |
| 39 | + "color": { | |
| 40 | + "background": true, | |
| 41 | + "text": true, | |
| 42 | + "__experimentalDefaultControls": { | |
| 43 | + "background": true, | |
| 44 | + "text": true | |
| 45 | + } | |
| 46 | + }, | |
| 47 | + "__experimentalBorder": { | |
| 48 | + "color": true, | |
| 49 | + "radius": true, | |
| 50 | + "width": true, | |
| 51 | + "__experimentalDefaultControls": { | |
| 52 | + "width": false, | |
| 53 | + "color": false, | |
| 54 | + "radius": false | |
| 55 | + } | |
| 56 | + }, | |
| 57 | + "spacing": { | |
| 58 | + "margin": true, | |
| 59 | + "padding": true, | |
| 60 | + "content": true, | |
| 61 | + "__experimentalDefaultControls": { | |
| 62 | + "margin": false, | |
| 63 | + "padding": false, | |
| 64 | + "content": true | |
| 65 | + } | |
| 66 | + } | |
| 67 | + } | |
| 68 | +} | |