1.122.0
1 month ago
1.16.2
3 months ago
1.16.4
3 months ago
1.18.1
3 months ago
1.18.6
3 months ago
1.29.2
3 months ago
1.31.0
3 months ago
1.35.0
3 months ago
1.39.2
3 months ago
1.43.0
3 months ago
1.70.1
3 months ago
1.72.1
3 months ago
index.js
1 month ago
index.js
248 lines
| 1 | import save1_16_2 from './1.16.2/save'; |
| 2 | import save1_16_4 from './1.16.4/save'; |
| 3 | import save1_18_1 from './1.18.1/save'; |
| 4 | import save1_18_6 from './1.18.6/save'; |
| 5 | import save1_29_2 from './1.29.2/save'; |
| 6 | import save1_31_0 from './1.31.0/save'; |
| 7 | import save1_35_0 from './1.35.0/save'; |
| 8 | import save1_39_2 from './1.39.2/save'; |
| 9 | import save1_43_0 from './1.43.0/save'; |
| 10 | import save1_70_1 from './1.70.1/save'; |
| 11 | import save1_72_1 from './1.72.1/save'; |
| 12 | import save1_122_0 from './1.122.0/save'; |
| 13 | |
| 14 | const blockAttributes = { |
| 15 | content: { |
| 16 | type: 'string', |
| 17 | source: 'html', |
| 18 | selector: 'span', |
| 19 | }, |
| 20 | buttonUrl: { |
| 21 | type: 'string', |
| 22 | default: null, |
| 23 | }, |
| 24 | buttonTarget: { |
| 25 | type: 'Boolean', |
| 26 | default: false, |
| 27 | }, |
| 28 | buttonSize: { |
| 29 | type: 'string', |
| 30 | default: 'md', |
| 31 | }, |
| 32 | buttonType: { |
| 33 | type: 'string', |
| 34 | default: '0', |
| 35 | }, |
| 36 | buttonColor: { |
| 37 | type: 'string', |
| 38 | default: 'primary', |
| 39 | }, |
| 40 | buttonColorCustom: { |
| 41 | type: 'string', |
| 42 | default: null, |
| 43 | }, |
| 44 | buttonAlign: { |
| 45 | type: 'string', |
| 46 | default: 'left', |
| 47 | }, |
| 48 | fontAwesomeIconBefore: { |
| 49 | type: 'string', |
| 50 | default: null, |
| 51 | }, |
| 52 | fontAwesomeIconAfter: { |
| 53 | type: 'string', |
| 54 | default: null, |
| 55 | }, |
| 56 | }; |
| 57 | |
| 58 | const blockAttributes2 = { |
| 59 | ...blockAttributes, |
| 60 | subCaption: { |
| 61 | type: 'string', |
| 62 | default: '', |
| 63 | }, |
| 64 | } |
| 65 | |
| 66 | const blockAttributes3 = { |
| 67 | ...blockAttributes2, |
| 68 | buttonUrl: { |
| 69 | type: 'string', |
| 70 | }, |
| 71 | buttonColorCustom: { |
| 72 | type: 'string', |
| 73 | }, |
| 74 | fontAwesomeIconBefore: { |
| 75 | type: 'string', |
| 76 | }, |
| 77 | fontAwesomeIconAfter: { |
| 78 | type: 'string', |
| 79 | }, |
| 80 | subCaption: { |
| 81 | type: 'string', |
| 82 | }, |
| 83 | clientId: { |
| 84 | type: 'string', |
| 85 | }, |
| 86 | }; |
| 87 | |
| 88 | const blockAttributes4 = { |
| 89 | ...blockAttributes3, |
| 90 | blockId: { |
| 91 | type: 'string', |
| 92 | }, |
| 93 | }; |
| 94 | |
| 95 | const blockAttributes5 = { |
| 96 | ...blockAttributes4, |
| 97 | buttonTextColorCustom: { |
| 98 | type: 'string', |
| 99 | }, |
| 100 | }; |
| 101 | |
| 102 | const blockAttributes6 = { |
| 103 | ...blockAttributes5, |
| 104 | buttonWidth: { |
| 105 | type: 'number', |
| 106 | default: 0, |
| 107 | }, |
| 108 | }; |
| 109 | |
| 110 | const blockAttributes7 = { |
| 111 | ...blockAttributes6, |
| 112 | buttonWidthMobile: { |
| 113 | type: 'number', |
| 114 | default: 0, |
| 115 | }, |
| 116 | buttonWidthTablet: { |
| 117 | type: 'number', |
| 118 | default: 0, |
| 119 | }, |
| 120 | buttonWidth: { |
| 121 | type: 'number', |
| 122 | default: 0, |
| 123 | }, |
| 124 | }; |
| 125 | |
| 126 | const blockAttributes8 = { |
| 127 | ...blockAttributes7, |
| 128 | old_1_31_0: { |
| 129 | type: 'string', |
| 130 | default: true, |
| 131 | } |
| 132 | }; |
| 133 | |
| 134 | const blockAttributes9 = { |
| 135 | ...blockAttributes8, |
| 136 | outerGap: { |
| 137 | type: 'string', |
| 138 | default: null, |
| 139 | }, |
| 140 | }; |
| 141 | |
| 142 | const blockAttributes10 = { |
| 143 | ...blockAttributes9, |
| 144 | iconSizeBefore: { |
| 145 | type: 'string', |
| 146 | default: null, |
| 147 | }, |
| 148 | iconSizeAfter: { |
| 149 | type: 'string', |
| 150 | default: null, |
| 151 | }, |
| 152 | }; |
| 153 | |
| 154 | const blockAttributes11 = { |
| 155 | ...blockAttributes10, |
| 156 | buttonEffect: { |
| 157 | type: 'string', |
| 158 | default: '' |
| 159 | }, |
| 160 | } |
| 161 | |
| 162 | const blockAttributes12 = { |
| 163 | ...blockAttributes11, |
| 164 | borderRadius: { |
| 165 | type: 'string', |
| 166 | default: null |
| 167 | }, |
| 168 | } |
| 169 | |
| 170 | // v1.105.1 リンク機能の追加に伴う属性の追加 |
| 171 | const blockAttributes13 = { |
| 172 | ...blockAttributes12, |
| 173 | relAttribute: { |
| 174 | type: 'string', |
| 175 | default: '', |
| 176 | }, |
| 177 | // v1.117.0 投稿リンク機能の追加に伴う属性の追加 |
| 178 | linkToPost: { |
| 179 | type: 'boolean', |
| 180 | default: false, |
| 181 | }, |
| 182 | // v1.121.0 ホバー色設定の追加に伴う属性の追加 |
| 183 | buttonHoverBgColorCustom: { |
| 184 | type: 'string', |
| 185 | }, |
| 186 | buttonHoverTextColorCustom: { |
| 187 | type: 'string', |
| 188 | }, |
| 189 | // [ ボタン ] サイズ 5 段階化に伴う任意の文字サイズ指定属性の追加 #2986 |
| 190 | fontSizeValue: { |
| 191 | type: 'string', |
| 192 | default: null, |
| 193 | }, |
| 194 | }; |
| 195 | |
| 196 | export const deprecated = [ |
| 197 | { |
| 198 | attributes: blockAttributes13, |
| 199 | save: save1_122_0, |
| 200 | }, |
| 201 | { |
| 202 | attributes: blockAttributes12, |
| 203 | save: save1_72_1, |
| 204 | }, |
| 205 | { |
| 206 | attributes: blockAttributes11, |
| 207 | save: save1_70_1, |
| 208 | }, |
| 209 | { |
| 210 | attributes: blockAttributes10, |
| 211 | save: save1_43_0, |
| 212 | }, |
| 213 | { |
| 214 | attributes: blockAttributes9, |
| 215 | save: save1_39_2, |
| 216 | }, |
| 217 | { |
| 218 | attributes: blockAttributes8, |
| 219 | save: save1_35_0, |
| 220 | }, |
| 221 | { |
| 222 | attributes: blockAttributes7, |
| 223 | save: save1_31_0, |
| 224 | }, |
| 225 | { |
| 226 | attributes: blockAttributes6, |
| 227 | save: save1_29_2, |
| 228 | }, |
| 229 | { |
| 230 | attributes: blockAttributes4, |
| 231 | save: save1_18_6, |
| 232 | }, |
| 233 | { |
| 234 | attributes: blockAttributes3, |
| 235 | save: save1_18_1, |
| 236 | }, |
| 237 | { |
| 238 | attributes: blockAttributes3, |
| 239 | save: save1_16_4, |
| 240 | }, |
| 241 | { |
| 242 | attributes: blockAttributes2, |
| 243 | save: save1_16_2, |
| 244 | }, |
| 245 | // Fix: https://github.com/vektor-inc/vk-blocks-pro/issues/356 |
| 246 | // 独自後方互換処理のための、後方互換を追加 |
| 247 | ]; |
| 248 |