block.json
108 lines
| 1 | { |
| 2 | "name": "kubio/post-comments-form", |
| 3 | "category": "kubio-blog-components", |
| 4 | "attributes": { |
| 5 | "kubio": { |
| 6 | "type": "object" |
| 7 | }, |
| 8 | "prefix": { |
| 9 | "type": "string", |
| 10 | "default": "" |
| 11 | } |
| 12 | }, |
| 13 | "usesContext": ["postId", "postType"], |
| 14 | "supports": { |
| 15 | "kubio": { |
| 16 | "default": { |
| 17 | "style": { |
| 18 | "descendants": { |
| 19 | "commentFormInputs": { |
| 20 | "border": { |
| 21 | "top": { |
| 22 | "width": { |
| 23 | "value": 1, |
| 24 | "unit": "px" |
| 25 | }, |
| 26 | "style": "solid" |
| 27 | }, |
| 28 | "right": { |
| 29 | "width": { |
| 30 | "value": 1, |
| 31 | "unit": "px" |
| 32 | }, |
| 33 | "style": "solid" |
| 34 | }, |
| 35 | "left": { |
| 36 | "width": { |
| 37 | "value": 1, |
| 38 | "unit": "px" |
| 39 | }, |
| 40 | "style": "solid" |
| 41 | }, |
| 42 | "bottom": { |
| 43 | "width": { |
| 44 | "value": 1, |
| 45 | "unit": "px" |
| 46 | }, |
| 47 | "style": "solid" |
| 48 | } |
| 49 | } |
| 50 | }, |
| 51 | "commentFormButtonWrapper": { |
| 52 | "textAlign": "left" |
| 53 | } |
| 54 | } |
| 55 | }, |
| 56 | "props": {} |
| 57 | }, |
| 58 | "elementsEnum": { |
| 59 | "CONTAINER": "container", |
| 60 | "LINK": "link", |
| 61 | "PREFIX": "prefix", |
| 62 | "TAGS": "tags", |
| 63 | "COMMENT_FORM_CONTAINER": "container", |
| 64 | "COMMENT_FORM_TITLE": "commentFormTitle", |
| 65 | "COMMENT_FORM_LABELS": "commentFormLabels", |
| 66 | "COMMENT_FORM_INPUTS": "commentFormInputs", |
| 67 | "COMMENT_FORM_BUTTON": "commentFormButton", |
| 68 | "COMMENT_FORM_BUTTON_WRAPPER": "commentFormButtonWrapper", |
| 69 | "COMMENT_FORM_LINKS": "commentFormLinks", |
| 70 | "COMMENT_FORM_NOTES": "commentFormNotes" |
| 71 | }, |
| 72 | "elementsByName": { |
| 73 | "container": { |
| 74 | "wrapper": true, |
| 75 | "default": true |
| 76 | }, |
| 77 | "commentFormTitle": { |
| 78 | "selector": ".comment-reply-title" |
| 79 | }, |
| 80 | "commentFormLabels": { |
| 81 | "selector": "label" |
| 82 | }, |
| 83 | "commentFormInputs": { |
| 84 | "selector": "input:not([type=\"submit\"]),textarea" |
| 85 | }, |
| 86 | "commentFormButtonWrapper": { |
| 87 | "selector": ".form-submit" |
| 88 | }, |
| 89 | "commentFormButton": { |
| 90 | "selector": ".comment-form [type=\"submit\"]" |
| 91 | }, |
| 92 | "commentFormLinks": { |
| 93 | "selector": ".comment-form a, .comment-respond a" |
| 94 | }, |
| 95 | "commentFormNotes": { |
| 96 | "selector": ".comment-notes" |
| 97 | } |
| 98 | }, |
| 99 | "template": { |
| 100 | "type": "element", |
| 101 | "props": { |
| 102 | "name": "container" |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 |