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