block.json
84 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/media-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "field", |
| 8 | "media", |
| 9 | "image", |
| 10 | "file" |
| 11 | ], |
| 12 | "textdomain": "jet-form-builder", |
| 13 | "supports": { |
| 14 | "customClassName": false, |
| 15 | "html": false |
| 16 | }, |
| 17 | "title": "Media Field", |
| 18 | "icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"64\" height=\"64\" fill=\"white\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M60 16H4C2.89543 16 2 16.8954 2 18V38C2 39.1046 2.89543 40 4 40H60C61.1046 40 62 39.1046 62 38V18C62 16.8954 61.1046 16 60 16ZM4 14C1.79086 14 0 15.7909 0 18V38C0 40.2091 1.79086 42 4 42H60C62.2091 42 64 40.2091 64 38V18C64 15.7909 62.2091 14 60 14H4Z\" fill=\"#162B40\"/><rect x=\"22.9474\" y=\"27.9474\" width=\"34.1053\" height=\"27.1822\" rx=\"1.82186\" fill=\"#4AF3BA\" stroke=\"#162B40\" stroke-width=\"1.89474\"/><path d=\"M34.4615 46.3847L36.9393 43.8672L39.417 46.3847L42.8239 42.9231L46.2308 46.3847\" stroke=\"#162B40\" stroke-width=\"1.38462\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><circle cx=\"39.6538\" cy=\"38.4231\" r=\"1.73077\" stroke=\"#162B40\" stroke-width=\"1.38462\"/></svg>", |
| 19 | "attributes": { |
| 20 | "allowed_user_cap": { |
| 21 | "type": "string", |
| 22 | "default": "" |
| 23 | }, |
| 24 | "insert_attachment": { |
| 25 | "type": "boolean", |
| 26 | "default": false |
| 27 | }, |
| 28 | "value_format": { |
| 29 | "type": "string", |
| 30 | "default": "" |
| 31 | }, |
| 32 | "max_files": { |
| 33 | "type": "number", |
| 34 | "default": null |
| 35 | }, |
| 36 | "max_size": { |
| 37 | "type": "number", |
| 38 | "default": null |
| 39 | }, |
| 40 | "allowed_mimes": { |
| 41 | "type": "array", |
| 42 | "default": [] |
| 43 | }, |
| 44 | "label": { |
| 45 | "type": "string", |
| 46 | "default": "" |
| 47 | }, |
| 48 | "name": { |
| 49 | "type": "string", |
| 50 | "default": "field_name" |
| 51 | }, |
| 52 | "desc": { |
| 53 | "type": "string", |
| 54 | "default": "" |
| 55 | }, |
| 56 | "required": { |
| 57 | "type": "boolean", |
| 58 | "default": false |
| 59 | }, |
| 60 | "add_prev": { |
| 61 | "type": "boolean", |
| 62 | "default": false |
| 63 | }, |
| 64 | "prev_label": { |
| 65 | "type": "string", |
| 66 | "default": "" |
| 67 | }, |
| 68 | "visibility": { |
| 69 | "type": "string", |
| 70 | "default": "" |
| 71 | }, |
| 72 | "class_name": { |
| 73 | "type": "string", |
| 74 | "default": "" |
| 75 | }, |
| 76 | "className": { |
| 77 | "type": "string", |
| 78 | "default": "" |
| 79 | } |
| 80 | }, |
| 81 | "usesContext": [ |
| 82 | "jet-forms/repeater-field--name" |
| 83 | ] |
| 84 | } |