1.20.5
2 months ago
1.21.0
2 months ago
1.3.2
2 months ago
1.7.0
2 months ago
1.9.1
2 months ago
index.js
2 months ago
index.js
157 lines
| 1 | import save1_3_2 from './1.3.2/save'; |
| 2 | import save1_7_0 from './1.7.0/save'; |
| 3 | import save1_9_1 from './1.9.1/save'; |
| 4 | import save1_20_5 from './1.20.5/save'; |
| 5 | import save1_21_0 from './1.21.0/save'; |
| 6 | |
| 7 | const blockAttributes = { |
| 8 | level: { |
| 9 | type: 'number', |
| 10 | default: 2, |
| 11 | }, |
| 12 | align: { |
| 13 | type: 'string', |
| 14 | }, |
| 15 | titleStyle: { |
| 16 | type: 'string', |
| 17 | default: 'default', |
| 18 | }, |
| 19 | outerMarginBottom: { |
| 20 | type: 'number', |
| 21 | default: 0 |
| 22 | }, |
| 23 | title: { |
| 24 | type: 'string', |
| 25 | source: 'html', |
| 26 | selector: 'span', |
| 27 | default: '', |
| 28 | }, |
| 29 | titleColor: { |
| 30 | type: 'string', |
| 31 | default: '#000000', |
| 32 | }, |
| 33 | titleSize: { |
| 34 | type: 'number', |
| 35 | default: 2, // version < 0.17.7 は デフォルト値が 2.6 |
| 36 | }, |
| 37 | titleMarginBottom: { |
| 38 | type: "number", |
| 39 | default: 1 |
| 40 | }, |
| 41 | subText: { |
| 42 | source: 'html', |
| 43 | selector: 'p', |
| 44 | default: '', |
| 45 | }, |
| 46 | subTextFlag: { |
| 47 | type: 'string', |
| 48 | default: 'off' |
| 49 | }, |
| 50 | subTextColor: { |
| 51 | type: 'string', |
| 52 | default: '#000000', |
| 53 | }, |
| 54 | subTextSize: { |
| 55 | type: 'number', |
| 56 | default: 1.2, |
| 57 | }, |
| 58 | anchor: { |
| 59 | type: 'string', |
| 60 | source: 'attribute', |
| 61 | attribute: 'id', |
| 62 | selector: '*', |
| 63 | }, |
| 64 | fontAwesomeIconBefore: { |
| 65 | type: 'string', |
| 66 | default: '', |
| 67 | }, |
| 68 | fontAwesomeIconAfter: { |
| 69 | type: 'string', |
| 70 | default: '', |
| 71 | }, |
| 72 | fontAwesomeIconColor: { |
| 73 | type: 'string', |
| 74 | default: '#000000', |
| 75 | }, |
| 76 | }; |
| 77 | |
| 78 | const blockAttributes2 = { |
| 79 | ...blockAttributes, |
| 80 | outerMarginBottom: { |
| 81 | type: 'number', |
| 82 | default: null |
| 83 | }, |
| 84 | titleMarginBottom: { |
| 85 | type: "number", |
| 86 | default: null |
| 87 | }, |
| 88 | titleColor: { |
| 89 | type: "string", |
| 90 | default: null |
| 91 | }, |
| 92 | subTextColor: { |
| 93 | type: "string", |
| 94 | default: null |
| 95 | }, |
| 96 | fontAwesomeIconColor: { |
| 97 | type: 'string', |
| 98 | default: "#000000", |
| 99 | }, |
| 100 | } |
| 101 | |
| 102 | /* 1.9.1 で titleSize とsubTextSize を変更 */ |
| 103 | const blockAttributes3 = { |
| 104 | ...blockAttributes2, |
| 105 | titleSize: { |
| 106 | type: 'number', |
| 107 | default: 2, |
| 108 | }, |
| 109 | subTextSize: { |
| 110 | type: 'number', |
| 111 | default: 1.2, |
| 112 | }, |
| 113 | subTextColor: { |
| 114 | type: "string", |
| 115 | }, |
| 116 | subTextSize: { |
| 117 | type: 'number', |
| 118 | }, |
| 119 | fontAwesomeIconColor: { |
| 120 | type: 'string', |
| 121 | }, |
| 122 | } |
| 123 | |
| 124 | const blockAttributes4 = { |
| 125 | ...blockAttributes3, |
| 126 | titleColor: { |
| 127 | type: "string", |
| 128 | }, |
| 129 | titleSize: { |
| 130 | type: 'number', |
| 131 | }, |
| 132 | } |
| 133 | |
| 134 | const deprecated = [ |
| 135 | { |
| 136 | attributes: blockAttributes4, |
| 137 | save: save1_21_0, |
| 138 | }, |
| 139 | { |
| 140 | attributes: blockAttributes4, |
| 141 | save: save1_20_5, |
| 142 | }, |
| 143 | { |
| 144 | attributes: blockAttributes3, |
| 145 | save: save1_9_1, |
| 146 | }, |
| 147 | { |
| 148 | attributes: blockAttributes2, |
| 149 | save: save1_7_0, |
| 150 | }, |
| 151 | { |
| 152 | attributes: blockAttributes, |
| 153 | save: save1_3_2, |
| 154 | }, |
| 155 | ]; |
| 156 | export default deprecated; |
| 157 |