| @@ -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 | }, |
| @@ -43,9 +35,9 @@ | ||
| 43 | 35 | "helperText": { |
| 44 | 36 | "type": "string", |
| 45 | 37 | "default": "" |
| 46 | 38 | }, |
| 47 | - "inputType": { | |
| 39 | + "nameType": { | |
| 48 | 40 | "type": "string", |
| 49 | 41 | "default": "" |
| 50 | 42 | }, |
| 51 | 43 | "errorMsg": { |
| @@ -51,9 +43,9 @@ | ||
| 51 | 43 | "errorMsg": { |
| 52 | 44 | "type": "string", |
| 53 | 45 | "default": "This field is required" |
| 54 | 46 | }, |
| 55 | - "labelName": { | |
| 47 | + "label": { | |
| 56 | 48 | "type": "string", |
| 57 | 49 | "default": "Message" |
| 58 | 50 | }, |
| 59 | 51 | "isRequired": { |
| @@ -67,8 +59,19 @@ | ||
| 67 | 59 | "textAreaRow": { |
| 68 | 60 | "type": "number", |
| 69 | 61 | "default": 5 |
| 70 | 62 | }, |
| 63 | + "inputWidth": { | |
| 64 | + "type": "object", | |
| 65 | + "default": { | |
| 66 | + "value": 100, | |
| 67 | + "valueTablet": "", | |
| 68 | + "valueMobile": "", | |
| 69 | + "valueUnit": "%", | |
| 70 | + "valueUnitTablet": "", | |
| 71 | + "valueUnitMobile": "" | |
| 72 | + } | |
| 73 | + }, | |
| 71 | 74 | "_margin": { |
| 72 | 75 | "type": "object", |
| 73 | 76 | "default": { |
| 74 | 77 | "isLinked": true, |
| @@ -490,9 +493,9 @@ | ||
| 490 | 493 | "xPositionUnitMobile": "px", |
| 491 | 494 | "xPosition": "", |
| 492 | 495 | "xPositionTablet": "0", |
| 493 | 496 | "xPositionMobile": "0", |
| 494 | - "yPositionUnit": "0", | |
| 497 | + "yPositionUnit": "px", | |
| 495 | 498 | "yPositionUnitTablet": "px", |
| 496 | 499 | "yPositionUnitMobile": "px", |
| 497 | 500 | "yPosition": "0", |
| 498 | 501 | "yPositionTablet": "0", |
| @@ -530,8 +533,34 @@ | ||
| 530 | 533 | "colorH": "", |
| 531 | 534 | "transitionDuration": "0" |
| 532 | 535 | } |
| 533 | 536 | }, |
| 537 | + "_gsapAnimation": { | |
| 538 | + "type": "object", | |
| 539 | + "default": { | |
| 540 | + "animationType": "none", | |
| 541 | + "duration": 1, | |
| 542 | + "delay": 0, | |
| 543 | + "triggerType": "scroll", | |
| 544 | + "ease": "none", | |
| 545 | + "x": 0, | |
| 546 | + "y": 0, | |
| 547 | + "rotation": 0, | |
| 548 | + "rotationY": 0, | |
| 549 | + "opacity": 1, | |
| 550 | + "xTo": 0, | |
| 551 | + "yTo": 0, | |
| 552 | + "rotationTo": 0, | |
| 553 | + "rotationYTo": 0, | |
| 554 | + "opacityTo": 1, | |
| 555 | + "easeTo": "none", | |
| 556 | + "loops": false, | |
| 557 | + "numberOfRepeat": 0, | |
| 558 | + "isSmooth": true, | |
| 559 | + "startPoint": 80, | |
| 560 | + "endPoint": 10 | |
| 561 | + } | |
| 562 | + }, | |
| 534 | 563 | "_hide_on_desktop": { |
| 535 | 564 | "type": "boolean", |
| 536 | 565 | "default": false |
| 537 | 566 | }, |
| @@ -545,7 +574,21 @@ | ||
| 545 | 574 | }, |
| 546 | 575 | "_custom_css": { |
| 547 | 576 | "type": "string", |
| 548 | 577 | "default": "" |
| 578 | + }, | |
| 579 | + "_animation_element_trigger": { | |
| 580 | + "type": "array", | |
| 581 | + "default": [], | |
| 582 | + "items": { | |
| 583 | + "type": "object" | |
| 584 | + } | |
| 585 | + }, | |
| 586 | + "_animation_page_trigger": { | |
| 587 | + "type": "array", | |
| 588 | + "default": [], | |
| 589 | + "items": { | |
| 590 | + "type": "object" | |
| 591 | + } | |
| 549 | 592 | } |
| 550 | 593 | } |
| 551 | 594 | } |