| @@ -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,13 +23,9 @@ | ||
| 27 | 23 | "block_id": { |
| 28 | 24 | "type": "string", |
| 29 | 25 | "default": "" |
| 30 | 26 | }, |
| 31 | - "inputWidth": { | |
| 32 | - "type": "number", | |
| 33 | - "default": 100 | |
| 34 | - }, | |
| 35 | - "labelName": { | |
| 27 | + "label": { | |
| 36 | 28 | "type": "string", |
| 37 | 29 | "default": "What's your favorite programming lang?" |
| 38 | 30 | }, |
| 39 | 31 | "name": { |
| @@ -60,8 +52,19 @@ | ||
| 60 | 52 | "value": "javascript" |
| 61 | 53 | } |
| 62 | 54 | ] |
| 63 | 55 | }, |
| 56 | + "inputWidth": { | |
| 57 | + "type": "object", | |
| 58 | + "default": { | |
| 59 | + "value": 100, | |
| 60 | + "valueTablet": "", | |
| 61 | + "valueMobile": "", | |
| 62 | + "valueUnit": "%", | |
| 63 | + "valueUnitTablet": "", | |
| 64 | + "valueUnitMobile": "" | |
| 65 | + } | |
| 66 | + }, | |
| 64 | 67 | "_margin": { |
| 65 | 68 | "type": "object", |
| 66 | 69 | "default": { |
| 67 | 70 | "isLinked": true, |
| @@ -483,9 +486,9 @@ | ||
| 483 | 486 | "xPositionUnitMobile": "px", |
| 484 | 487 | "xPosition": "", |
| 485 | 488 | "xPositionTablet": "0", |
| 486 | 489 | "xPositionMobile": "0", |
| 487 | - "yPositionUnit": "0", | |
| 490 | + "yPositionUnit": "px", | |
| 488 | 491 | "yPositionUnitTablet": "px", |
| 489 | 492 | "yPositionUnitMobile": "px", |
| 490 | 493 | "yPosition": "0", |
| 491 | 494 | "yPositionTablet": "0", |
| @@ -523,8 +526,34 @@ | ||
| 523 | 526 | "colorH": "", |
| 524 | 527 | "transitionDuration": "0" |
| 525 | 528 | } |
| 526 | 529 | }, |
| 530 | + "_gsapAnimation": { | |
| 531 | + "type": "object", | |
| 532 | + "default": { | |
| 533 | + "animationType": "none", | |
| 534 | + "duration": 1, | |
| 535 | + "delay": 0, | |
| 536 | + "triggerType": "scroll", | |
| 537 | + "ease": "none", | |
| 538 | + "x": 0, | |
| 539 | + "y": 0, | |
| 540 | + "rotation": 0, | |
| 541 | + "rotationY": 0, | |
| 542 | + "opacity": 1, | |
| 543 | + "xTo": 0, | |
| 544 | + "yTo": 0, | |
| 545 | + "rotationTo": 0, | |
| 546 | + "rotationYTo": 0, | |
| 547 | + "opacityTo": 1, | |
| 548 | + "easeTo": "none", | |
| 549 | + "loops": false, | |
| 550 | + "numberOfRepeat": 0, | |
| 551 | + "isSmooth": true, | |
| 552 | + "startPoint": 80, | |
| 553 | + "endPoint": 10 | |
| 554 | + } | |
| 555 | + }, | |
| 527 | 556 | "_hide_on_desktop": { |
| 528 | 557 | "type": "boolean", |
| 529 | 558 | "default": false |
| 530 | 559 | }, |
| @@ -538,7 +567,21 @@ | ||
| 538 | 567 | }, |
| 539 | 568 | "_custom_css": { |
| 540 | 569 | "type": "string", |
| 541 | 570 | "default": "" |
| 571 | + }, | |
| 572 | + "_animation_element_trigger": { | |
| 573 | + "type": "array", | |
| 574 | + "default": [], | |
| 575 | + "items": { | |
| 576 | + "type": "object" | |
| 577 | + } | |
| 578 | + }, | |
| 579 | + "_animation_page_trigger": { | |
| 580 | + "type": "array", | |
| 581 | + "default": [], | |
| 582 | + "items": { | |
| 583 | + "type": "object" | |
| 584 | + } | |
| 542 | 585 | } |
| 543 | 586 | } |
| 544 | 587 | } |