| @@ -1,38 +1,41 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * Block Attributes |
| 3 | -*/ | |
| 4 | - | |
| 3 | + */ | |
| 5 | 4 | const blockAttributes = { |
| 6 | - id: { | |
| 7 | - type: 'number', | |
| 8 | - }, | |
| 9 | - prevId: { | |
| 10 | - type: 'number', | |
| 11 | - }, | |
| 12 | - displayStyle: { | |
| 13 | - type: 'string', | |
| 14 | - default: 'onpage', | |
| 15 | - }, | |
| 16 | - continueButtonTitle: { | |
| 17 | - type: 'string', | |
| 18 | - default: '', | |
| 19 | - }, | |
| 20 | - showTitle: { | |
| 21 | - type: 'boolean', | |
| 22 | - default: false, | |
| 23 | - }, | |
| 24 | - showGoal: { | |
| 25 | - type: 'boolean', | |
| 26 | - default: false, | |
| 27 | - }, | |
| 28 | - contentDisplay: { | |
| 29 | - type: 'boolean', | |
| 30 | - default: false, | |
| 31 | - }, | |
| 32 | - showContent: { | |
| 33 | - type: 'string', | |
| 34 | - default: 'above', | |
| 35 | - }, | |
| 5 | + id: { | |
| 6 | + type: 'number', | |
| 7 | + default: 0, | |
| 8 | + }, | |
| 9 | + prevId: { | |
| 10 | + type: 'number', | |
| 11 | + }, | |
| 12 | + displayStyle: { | |
| 13 | + type: 'string', | |
| 14 | + default: 'onpage', | |
| 15 | + }, | |
| 16 | + continueButtonTitle: { | |
| 17 | + type: 'string', | |
| 18 | + default: 'Donate now', | |
| 19 | + }, | |
| 20 | + showTitle: { | |
| 21 | + type: 'boolean', | |
| 22 | + default: true, | |
| 23 | + }, | |
| 24 | + showGoal: { | |
| 25 | + type: 'boolean', | |
| 26 | + default: true, | |
| 27 | + }, | |
| 28 | + contentDisplay: { | |
| 29 | + type: 'boolean', | |
| 30 | + default: true, | |
| 31 | + }, | |
| 32 | + showContent: { | |
| 33 | + type: 'string', | |
| 34 | + default: 'above', | |
| 35 | + }, | |
| 36 | + blockId: { | |
| 37 | + type: 'string', | |
| 38 | + }, | |
| 36 | 39 | }; |
| 37 | 40 | |
| 38 | 41 | export default blockAttributes; |