| @@ -15,13 +15,9 @@ | ||
| 15 | 15 | "html": true, |
| 16 | 16 | "anchor": true |
| 17 | 17 | }, |
| 18 | 18 | "textdomain": "ablocks", |
| 19 | - "editorStyle": [ | |
| 20 | - "file:./style.css" | |
| 21 | - ], | |
| 22 | 19 | "editorScript": [ |
| 23 | - "ablocks-common-script", | |
| 24 | 20 | "file:./view.js" |
| 25 | 21 | ], |
| 26 | 22 | "attributes": { |
| 27 | 23 | "block_id": { |
| @@ -27,12 +23,8 @@ | ||
| 27 | 23 | "block_id": { |
| 28 | 24 | "type": "string", |
| 29 | 25 | "default": "" |
| 30 | 26 | }, |
| 31 | - "inputWidth": { | |
| 32 | - "type": "number", | |
| 33 | - "default": 100 | |
| 34 | - }, | |
| 35 | 27 | "customName": { |
| 36 | 28 | "type": "string", |
| 37 | 29 | "default": "" |
| 38 | 30 | }, |
| @@ -207,8 +199,16 @@ | ||
| 207 | 199 | "iconBgColor": { |
| 208 | 200 | "type": "string", |
| 209 | 201 | "default": "" |
| 210 | 202 | }, |
| 203 | + "iconHoverColor": { | |
| 204 | + "type": "string", | |
| 205 | + "default": "" | |
| 206 | + }, | |
| 207 | + "iconHoverBgColor": { | |
| 208 | + "type": "string", | |
| 209 | + "default": "" | |
| 210 | + }, | |
| 211 | 211 | "iconType": { |
| 212 | 212 | "type": "string", |
| 213 | 213 | "default": "default" |
| 214 | 214 | }, |
| @@ -227,30 +227,70 @@ | ||
| 227 | 227 | "left": "", |
| 228 | 228 | "unit": "px" |
| 229 | 229 | } |
| 230 | 230 | }, |
| 231 | - "iconBorderRadius": { | |
| 231 | + "iconBorder": { | |
| 232 | 232 | "type": "object", |
| 233 | 233 | "default": { |
| 234 | - "isLinked": true, | |
| 235 | - "common": "", | |
| 236 | - "top": "", | |
| 237 | - "right": "", | |
| 238 | - "bottom": "", | |
| 239 | - "left": "", | |
| 240 | - "unit": "px" | |
| 234 | + "borderStyle": "default", | |
| 235 | + "borderStyleH": "default", | |
| 236 | + "borderColor": "", | |
| 237 | + "borderColorH": "", | |
| 238 | + "isLinkedWidth": true, | |
| 239 | + "isLinkedWidthTablet": true, | |
| 240 | + "isLinkedWidthMobile": true, | |
| 241 | + "commonWidth": "", | |
| 242 | + "topWidth": "", | |
| 243 | + "rightWidth": "", | |
| 244 | + "bottomWidth": "", | |
| 245 | + "leftWidth": "", | |
| 246 | + "unitWidth": "px", | |
| 247 | + "isLinkedWidthH": true, | |
| 248 | + "isLinkedWidthHTablet": true, | |
| 249 | + "isLinkedWidthHMobile": true, | |
| 250 | + "commonWidthH": "", | |
| 251 | + "topWidthH": "", | |
| 252 | + "rightWidthH": "", | |
| 253 | + "bottomWidthH": "", | |
| 254 | + "leftWidthH": "", | |
| 255 | + "unitWidthH": "px", | |
| 256 | + "isLinkedRadius": true, | |
| 257 | + "commonRadius": "", | |
| 258 | + "topRadius": "", | |
| 259 | + "rightRadius": "", | |
| 260 | + "bottomRadius": "", | |
| 261 | + "leftRadius": "", | |
| 262 | + "unitRadius": "px", | |
| 263 | + "isLinkedRadiusH": true, | |
| 264 | + "isLinkedRadiusHTablet": true, | |
| 265 | + "isLinkedRadiusHMobile": true, | |
| 266 | + "commonRadiusH": "", | |
| 267 | + "topRadiusH": "", | |
| 268 | + "leftRadiusH": "", | |
| 269 | + "unitRadiusH": "px", | |
| 270 | + "transitionDuration": "" | |
| 241 | 271 | } |
| 242 | 272 | }, |
| 243 | - "iconBorderWidth": { | |
| 273 | + "iconBoxShadow": { | |
| 244 | 274 | "type": "object", |
| 245 | 275 | "default": { |
| 246 | - "isLinked": true, | |
| 247 | - "common": "", | |
| 248 | - "top": "", | |
| 249 | - "right": "", | |
| 250 | - "bottom": "", | |
| 251 | - "left": "", | |
| 252 | - "unit": "px" | |
| 276 | + "preset": "", | |
| 277 | + "shadowType": "default", | |
| 278 | + "shadow": "", | |
| 279 | + "horizontal": "", | |
| 280 | + "vertical": "", | |
| 281 | + "blur": "", | |
| 282 | + "spread": "", | |
| 283 | + "color": "", | |
| 284 | + "presetH": "", | |
| 285 | + "shadowTypeH": "default", | |
| 286 | + "shadowH": "", | |
| 287 | + "horizontalH": "", | |
| 288 | + "verticalH": "", | |
| 289 | + "blurH": "", | |
| 290 | + "spreadH": "", | |
| 291 | + "colorH": "", | |
| 292 | + "transitionDuration": "0" | |
| 253 | 293 | } |
| 254 | 294 | }, |
| 255 | 295 | "iconSize": { |
| 256 | 296 | "type": "number", |
| @@ -312,8 +352,19 @@ | ||
| 312 | 352 | "inputIconSpace": { |
| 313 | 353 | "type": "number", |
| 314 | 354 | "default": 38 |
| 315 | 355 | }, |
| 356 | + "inputWidth": { | |
| 357 | + "type": "object", | |
| 358 | + "default": { | |
| 359 | + "value": 100, | |
| 360 | + "valueTablet": "", | |
| 361 | + "valueMobile": "", | |
| 362 | + "valueUnit": "%", | |
| 363 | + "valueUnitTablet": "", | |
| 364 | + "valueUnitMobile": "" | |
| 365 | + } | |
| 366 | + }, | |
| 316 | 367 | "_margin": { |
| 317 | 368 | "type": "object", |
| 318 | 369 | "default": { |
| 319 | 370 | "isLinked": true, |
| @@ -735,9 +786,9 @@ | ||
| 735 | 786 | "xPositionUnitMobile": "px", |
| 736 | 787 | "xPosition": "", |
| 737 | 788 | "xPositionTablet": "0", |
| 738 | 789 | "xPositionMobile": "0", |
| 739 | - "yPositionUnit": "0", | |
| 790 | + "yPositionUnit": "px", | |
| 740 | 791 | "yPositionUnitTablet": "px", |
| 741 | 792 | "yPositionUnitMobile": "px", |
| 742 | 793 | "yPosition": "0", |
| 743 | 794 | "yPositionTablet": "0", |
| @@ -775,8 +826,34 @@ | ||
| 775 | 826 | "colorH": "", |
| 776 | 827 | "transitionDuration": "0" |
| 777 | 828 | } |
| 778 | 829 | }, |
| 830 | + "_gsapAnimation": { | |
| 831 | + "type": "object", | |
| 832 | + "default": { | |
| 833 | + "animationType": "none", | |
| 834 | + "duration": 1, | |
| 835 | + "delay": 0, | |
| 836 | + "triggerType": "scroll", | |
| 837 | + "ease": "none", | |
| 838 | + "x": 0, | |
| 839 | + "y": 0, | |
| 840 | + "rotation": 0, | |
| 841 | + "rotationY": 0, | |
| 842 | + "opacity": 1, | |
| 843 | + "xTo": 0, | |
| 844 | + "yTo": 0, | |
| 845 | + "rotationTo": 0, | |
| 846 | + "rotationYTo": 0, | |
| 847 | + "opacityTo": 1, | |
| 848 | + "easeTo": "none", | |
| 849 | + "loops": false, | |
| 850 | + "numberOfRepeat": 0, | |
| 851 | + "isSmooth": true, | |
| 852 | + "startPoint": 80, | |
| 853 | + "endPoint": 10 | |
| 854 | + } | |
| 855 | + }, | |
| 779 | 856 | "_hide_on_desktop": { |
| 780 | 857 | "type": "boolean", |
| 781 | 858 | "default": false |
| 782 | 859 | }, |
| @@ -790,7 +867,21 @@ | ||
| 790 | 867 | }, |
| 791 | 868 | "_custom_css": { |
| 792 | 869 | "type": "string", |
| 793 | 870 | "default": "" |
| 871 | + }, | |
| 872 | + "_animation_element_trigger": { | |
| 873 | + "type": "array", | |
| 874 | + "default": [], | |
| 875 | + "items": { | |
| 876 | + "type": "object" | |
| 877 | + } | |
| 878 | + }, | |
| 879 | + "_animation_page_trigger": { | |
| 880 | + "type": "array", | |
| 881 | + "default": [], | |
| 882 | + "items": { | |
| 883 | + "type": "object" | |
| 884 | + } | |
| 794 | 885 | } |
| 795 | 886 | } |
| 796 | 887 | } |