block.json
2 months ago
index-rtl.css
2 months ago
index.asset.php
2 months ago
index.css
2 months ago
index.js
2 months ago
style-index-rtl.css
2 months ago
style-index.css
2 months ago
block.json
119 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "superb-addons/popup", |
| 5 | "version": "0.1.0", |
| 6 | "title": "Superb Popup", |
| 7 | "category": "superb-addons-blocks", |
| 8 | "icon": "admin-page", |
| 9 | "description": "A customizable popup/modal with any block content. Pair with the Popup Trigger button to open it from anywhere on the page.", |
| 10 | "keywords": ["popup", "modal", "dialog", "overlay", "lightbox"], |
| 11 | "supports": { |
| 12 | "html": false, |
| 13 | "align": false, |
| 14 | "multiple": true, |
| 15 | "reusable": true |
| 16 | }, |
| 17 | "attributes": { |
| 18 | "popupId": { |
| 19 | "type": "string" |
| 20 | }, |
| 21 | "popupName": { |
| 22 | "type": "string", |
| 23 | "default": "" |
| 24 | }, |
| 25 | "popupWidth": { |
| 26 | "type": "string", |
| 27 | "default": "600px" |
| 28 | }, |
| 29 | "popupWidthTablet": { |
| 30 | "type": "string" |
| 31 | }, |
| 32 | "popupWidthMobile": { |
| 33 | "type": "string" |
| 34 | }, |
| 35 | "popupHeight": { |
| 36 | "type": "string" |
| 37 | }, |
| 38 | "popupHeightTablet": { |
| 39 | "type": "string" |
| 40 | }, |
| 41 | "popupHeightMobile": { |
| 42 | "type": "string" |
| 43 | }, |
| 44 | "overlayOpacity": { |
| 45 | "type": "number", |
| 46 | "default": 50 |
| 47 | }, |
| 48 | "showCloseButton": { |
| 49 | "type": "boolean", |
| 50 | "default": true |
| 51 | }, |
| 52 | "closeOnOverlay": { |
| 53 | "type": "boolean", |
| 54 | "default": true |
| 55 | }, |
| 56 | "closeOnEsc": { |
| 57 | "type": "boolean", |
| 58 | "default": true |
| 59 | }, |
| 60 | "showOverlay": { |
| 61 | "type": "boolean", |
| 62 | "default": true |
| 63 | }, |
| 64 | "popupPadding": { |
| 65 | "type": "string", |
| 66 | "default": "32px" |
| 67 | }, |
| 68 | "popupPaddingTablet": { |
| 69 | "type": "string" |
| 70 | }, |
| 71 | "popupPaddingMobile": { |
| 72 | "type": "string" |
| 73 | }, |
| 74 | "popupBorderRadius": { |
| 75 | "type": "string", |
| 76 | "default": "8px" |
| 77 | }, |
| 78 | "popupBorderRadiusTablet": { |
| 79 | "type": "string" |
| 80 | }, |
| 81 | "popupBorderRadiusMobile": { |
| 82 | "type": "string" |
| 83 | }, |
| 84 | "closeButtonSize": { |
| 85 | "type": "number" |
| 86 | }, |
| 87 | "triggerOnLoad": { |
| 88 | "type": "boolean", |
| 89 | "default": true |
| 90 | }, |
| 91 | "triggerLoadDelay": { |
| 92 | "type": "number", |
| 93 | "default": 0 |
| 94 | }, |
| 95 | "popupPosition": { |
| 96 | "type": "string" |
| 97 | }, |
| 98 | "popupPositionTablet": { |
| 99 | "type": "string" |
| 100 | }, |
| 101 | "popupPositionMobile": { |
| 102 | "type": "string" |
| 103 | }, |
| 104 | "isPreview": { |
| 105 | "type": "boolean", |
| 106 | "default": false |
| 107 | } |
| 108 | }, |
| 109 | "styles": [ |
| 110 | { "name": "default", "label": "Default", "isDefault": true }, |
| 111 | { "name": "minimal", "label": "Minimal" }, |
| 112 | { "name": "announcement", "label": "Announcement" } |
| 113 | ], |
| 114 | "textdomain": "superb-blocks", |
| 115 | "editorScript": "file:./index.js", |
| 116 | "editorStyle": "file:./index.css", |
| 117 | "style": "file:./style-index.css" |
| 118 | } |
| 119 |