1.102.2
2 months ago
1.21.0
2 months ago
1.29.2
2 months ago
1.75.0
2 months ago
index.js
2 months ago
index.js
79 lines
| 1 | import save1_21_0 from './1.21.0/save'; |
| 2 | import save1_29_2 from './1.29.2/save'; |
| 3 | import save1_75_0 from './1.75.0/save'; |
| 4 | import save1_102_2 from './1.102.2/save'; |
| 5 | |
| 6 | const blockAttributes = { |
| 7 | heading: { |
| 8 | type: 'string', |
| 9 | source: 'html', |
| 10 | selector: 'h4', |
| 11 | }, |
| 12 | color: { |
| 13 | type: 'string', |
| 14 | default: 'red', |
| 15 | }, |
| 16 | faIcon: { |
| 17 | type: 'string', |
| 18 | default: '', |
| 19 | }, |
| 20 | bgColor: { |
| 21 | type: 'string', |
| 22 | default: 'transparent', |
| 23 | }, |
| 24 | borderColor: { |
| 25 | type: 'string' |
| 26 | }, |
| 27 | }; |
| 28 | |
| 29 | const blockAttributes2 = { |
| 30 | ...blockAttributes, |
| 31 | color: { |
| 32 | type: 'string' |
| 33 | }, |
| 34 | }; |
| 35 | |
| 36 | const blockAttributes3 = { |
| 37 | ...blockAttributes2, |
| 38 | bodyAlign: { |
| 39 | type: 'string' |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /* 次回対応おねがいします |
| 44 | // 1.102.2 からの変更で追加したもの |
| 45 | const blockAttributes4 = { |
| 46 | ...blockAttributes3, |
| 47 | anchor: { |
| 48 | type: 'string', |
| 49 | source: 'attribute', |
| 50 | attribute: 'id', |
| 51 | selector: 'h3,h4,h5,h6' |
| 52 | }, |
| 53 | includeInToc: { |
| 54 | type: 'boolean', |
| 55 | default: false |
| 56 | } |
| 57 | }; |
| 58 | */ |
| 59 | |
| 60 | const deprecated = [ |
| 61 | { |
| 62 | attributes: blockAttributes3, |
| 63 | save: save1_102_2, |
| 64 | }, |
| 65 | { |
| 66 | attributes: blockAttributes3, |
| 67 | save: save1_75_0, |
| 68 | }, |
| 69 | { |
| 70 | attributes: blockAttributes2, |
| 71 | save: save1_29_2, |
| 72 | }, |
| 73 | { |
| 74 | attributes: blockAttributes, |
| 75 | save: save1_21_0, |
| 76 | } |
| 77 | ]; |
| 78 | export default deprecated; |
| 79 |