PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.7
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.7
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 1.5.2 1.5.3 1.5.4 All 107 releases
b-blocks / build / whatsapp-chat / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.7, at build/whatsapp-chat/block.json

232 lines 4.9 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/whatsapp-chat",
5 "version": "0.1.0",
6 "title": "WhatsApp Chat",
7 "category": "bBlocks",
8 "description": "Add a fully customizable WhatsApp Chat button to turn visitor hesitation into customer confidence.",
9 "example": {
10 "attributes": {
11 "phoneNumber": "",
12 "buttonText": "Chat on WhatsApp",
13 "prefillMessage": "Hi! I have a question about your product.",
14 "showIcon": true,
15 "showStatusDot": true,
16 "buttonSize": "medium",
17 "borderRadius": 50,
18 "backgroundColor": "#25D366",
19 "textColor": "#ffffff",
20 "hoverAnimation": true,
21 "tooltipText": "We typically reply within minutes",
22 "openInNewTab": true,
23 "fullWidth": false,
24 "alignment": "center"
25 }
26 },
27 "attributes": {
28 "align": {
29 "type": "string",
30 "default": ""
31 },
32 "phoneNumber": {
33 "type": "string",
34 "default": ""
35 },
36 "buttonText": {
37 "type": "string",
38 "default": "Chat on WhatsApp"
39 },
40 "prefillMessage": {
41 "type": "string",
42 "default": ""
43 },
44 "showIcon": {
45 "type": "boolean",
46 "default": true
47 },
48 "showStatusDot": {
49 "type": "boolean",
50 "default": true
51 },
52 "tooltipText": {
53 "type": "string",
54 "default": ""
55 },
56 "buttonSize": {
57 "type": "string",
58 "default": "medium"
59 },
60 "borderRadius": {
61 "type": "number",
62 "default": 50
63 },
64 "backgroundColor": {
65 "type": "string",
66 "default": "#25D366"
67 },
68 "textColor": {
69 "type": "string",
70 "default": "#ffffff"
71 },
72 "hoverAnimation": {
73 "type": "boolean",
74 "default": true
75 },
76 "openInNewTab": {
77 "type": "boolean",
78 "default": true
79 },
80 "fullWidth": {
81 "type": "boolean",
82 "default": false
83 },
84 "alignment": {
85 "type": "string",
86 "default": "center"
87 },
88 "iconPosition": {
89 "type": "string",
90 "default": "left"
91 },
92 "shadow": {
93 "type": "boolean",
94 "default": true
95 },
96 "pulseAnimation": {
97 "type": "boolean",
98 "default": false
99 },
100 "styles": {
101 "type": "object",
102 "default": {
103 "desktop": {
104 "padding": {
105 "type": "object",
106 "default": {
107 "top": "",
108 "right": "",
109 "bottom": "",
110 "left": ""
111 }
112 },
113 "margin": {
114 "type": "object",
115 "default": {
116 "top": "",
117 "right": "",
118 "bottom": "",
119 "left": ""
120 }
121 }
122 },
123 "tablet": {
124 "padding": {
125 "type": "object",
126 "default": {
127 "top": "",
128 "right": "",
129 "bottom": "",
130 "left": ""
131 }
132 },
133 "margin": {
134 "type": "object",
135 "default": {
136 "top": "",
137 "right": "",
138 "bottom": "",
139 "left": ""
140 }
141 }
142 },
143 "mobile": {
144 "padding": {
145 "type": "object",
146 "default": {
147 "top": "",
148 "right": "",
149 "bottom": "",
150 "left": ""
151 }
152 },
153 "margin": {
154 "type": "object",
155 "default": {
156 "top": "",
157 "right": "",
158 "bottom": "",
159 "left": ""
160 }
161 }
162 },
163 "typo": {
164 "fontSize": {
165 "desktop": "",
166 "tablet": "",
167 "mobile": ""
168 }
169 },
170 "pulseColor": "#25d36680",
171 "normal": {
172 "bg": {
173 "color": "#25D366"
174 },
175 "color": "#ffffff",
176 "border": {},
177 "radius": {
178 "top": "50px",
179 "right": "50px",
180 "bottom": "50px",
181 "left": "50px"
182 },
183 "shadow": {}
184 },
185 "hover": {
186 "bg": {},
187 "color": "",
188 "border": {},
189 "radius": {
190 "top": "50px",
191 "right": "50px",
192 "bottom": "50px",
193 "left": "50px"
194 },
195 "shadow": {},
196 "transition": 0.3
197 },
198 "icon": {
199 "size": "16px",
200 "normal": {
201 "color": "#ffffff"
202 },
203 "hover": {
204 "color": "#ffffff"
205 }
206 },
207 "status": {
208 "size": "10px",
209 "color": {
210 "color": "#4cff50"
211 },
212 "position": {
213 "x": "",
214 "y": ""
215 }
216 }
217 }
218 }
219 },
220 "supports": {
221 "align": [
222 "wide",
223 "full"
224 ],
225 "html": false
226 },
227 "textdomain": "b-blocks",
228 "editorScript": "file:../index.js",
229 "style": "file:./view.css",
230 "render": "file:./render.php",
231 "viewScript": "file:./view.js"
232 }