index.js
88 lines
| 1 | import save1_20_2 from './1.20.2/save'; |
| 2 | import save1_3_1 from './1.3.1/save'; |
| 3 | |
| 4 | export const blockAttributes = { |
| 5 | vk_staff_text_name: { |
| 6 | type: 'string', |
| 7 | source: 'html', |
| 8 | selector: 'h3', |
| 9 | }, |
| 10 | vk_staff_text_caption: { |
| 11 | type: 'string', |
| 12 | source: 'html', |
| 13 | selector: 'p.vk_staff_text_caption', |
| 14 | }, |
| 15 | vk_staff_text_role: { |
| 16 | type: 'string', |
| 17 | source: 'html', |
| 18 | selector: 'p.vk_staff_text_role', |
| 19 | }, |
| 20 | vk_staff_text_profileTitle: { |
| 21 | type: 'string', |
| 22 | source: 'html', |
| 23 | selector: 'h4', |
| 24 | }, |
| 25 | vk_staff_text_profileText: { |
| 26 | type: 'string', |
| 27 | source: 'html', |
| 28 | selector: 'p.vk_staff_text_profileText', |
| 29 | }, |
| 30 | vk_staff_photo_image: { |
| 31 | type: 'string', |
| 32 | default: '', |
| 33 | }, |
| 34 | vk_staff_photo_image_alt: { |
| 35 | type: 'string', |
| 36 | default: 'Profile Picture', |
| 37 | }, |
| 38 | vk_staff_layout: { |
| 39 | type: 'string', |
| 40 | default: 'default', |
| 41 | }, |
| 42 | vk_staff_nameColor: { |
| 43 | type: 'string', |
| 44 | default: 'inherit', |
| 45 | }, |
| 46 | vk_staff_captionColor: { |
| 47 | type: 'string', |
| 48 | default: 'inherit', |
| 49 | }, |
| 50 | vk_staff_positionColor: { |
| 51 | type: 'string', |
| 52 | default: 'inherit', |
| 53 | }, |
| 54 | vk_staff_profileTitleColor: { |
| 55 | type: 'string', |
| 56 | default: 'inherit', |
| 57 | }, |
| 58 | vk_staff_profileTextColor: { |
| 59 | type: 'string', |
| 60 | default: 'inherit', |
| 61 | }, |
| 62 | vk_staff_photoBorder: { |
| 63 | type: 'string', |
| 64 | default: 'default', |
| 65 | } |
| 66 | }; |
| 67 | |
| 68 | const blockAttributes2 = { |
| 69 | ...blockAttributes, |
| 70 | vk_staff_fontFamily: { |
| 71 | type: 'string', |
| 72 | default: '0', |
| 73 | }, |
| 74 | } |
| 75 | |
| 76 | const deprecated = [ |
| 77 | { |
| 78 | attributes: blockAttributes2, |
| 79 | save: save1_20_2 |
| 80 | }, |
| 81 | { |
| 82 | attributes: blockAttributes2, |
| 83 | save: save1_3_1 |
| 84 | } |
| 85 | ]; |
| 86 | |
| 87 | export default deprecated; |
| 88 |