PluginProbe
VK Blocks / 1.119.2
VK Blocks v1.119.2
1.126.4 1.126.3 1.126.1 1.126.2 1.126.0 1.125.0 1.124.0 1.123.0 1.122.0 1.121.0 1.120.0 1.119.2 1.119.1 1.119.0 1.118.7 1.82.0.0 1.82.0.1 1.83.0.0 1.83.0.1 1.84.0.0 1.84.0.1 1.85.0.2 1.85.0.3 1.85.1.0 1.85.1.1 All 287 releases
vk-blocks / src / blocks / button / deprecated / save / index.js
index.js
228 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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
13 const blockAttributes = {
14 content: {
15 type: 'string',
16 source: 'html',
17 selector: 'span',
18 },
19 buttonUrl: {
20 type: 'string',
21 default: null,
22 },
23 buttonTarget: {
24 type: 'Boolean',
25 default: false,
26 },
27 buttonSize: {
28 type: 'string',
29 default: 'md',
30 },
31 buttonType: {
32 type: 'string',
33 default: '0',
34 },
35 buttonColor: {
36 type: 'string',
37 default: 'primary',
38 },
39 buttonColorCustom: {
40 type: 'string',
41 default: null,
42 },
43 buttonAlign: {
44 type: 'string',
45 default: 'left',
46 },
47 fontAwesomeIconBefore: {
48 type: 'string',
49 default: null,
50 },
51 fontAwesomeIconAfter: {
52 type: 'string',
53 default: null,
54 },
55 };
56
57 const blockAttributes2 = {
58 ...blockAttributes,
59 subCaption: {
60 type: 'string',
61 default: '',
62 },
63 }
64
65 const blockAttributes3 = {
66 ...blockAttributes2,
67 buttonUrl: {
68 type: 'string',
69 },
70 buttonColorCustom: {
71 type: 'string',
72 },
73 fontAwesomeIconBefore: {
74 type: 'string',
75 },
76 fontAwesomeIconAfter: {
77 type: 'string',
78 },
79 subCaption: {
80 type: 'string',
81 },
82 clientId: {
83 type: 'string',
84 },
85 };
86
87 const blockAttributes4 = {
88 ...blockAttributes3,
89 blockId: {
90 type: 'string',
91 },
92 };
93
94 const blockAttributes5 = {
95 ...blockAttributes4,
96 buttonTextColorCustom: {
97 type: 'string',
98 },
99 };
100
101 const blockAttributes6 = {
102 ...blockAttributes5,
103 buttonWidth: {
104 type: 'number',
105 default: 0,
106 },
107 };
108
109 const blockAttributes7 = {
110 ...blockAttributes6,
111 buttonWidthMobile: {
112 type: 'number',
113 default: 0,
114 },
115 buttonWidthTablet: {
116 type: 'number',
117 default: 0,
118 },
119 buttonWidth: {
120 type: 'number',
121 default: 0,
122 },
123 };
124
125 const blockAttributes8 = {
126 ...blockAttributes7,
127 old_1_31_0: {
128 type: 'string',
129 default: true,
130 }
131 };
132
133 const blockAttributes9 = {
134 ...blockAttributes8,
135 outerGap: {
136 type: 'string',
137 default: null,
138 },
139 };
140
141 const blockAttributes10 = {
142 ...blockAttributes9,
143 iconSizeBefore: {
144 type: 'string',
145 default: null,
146 },
147 iconSizeAfter: {
148 type: 'string',
149 default: null,
150 },
151 };
152
153 const blockAttributes11 = {
154 ...blockAttributes10,
155 buttonEffect: {
156 type: 'string',
157 default: ''
158 },
159 }
160
161 const blockAttributes12 = {
162 ...blockAttributes11,
163 borderRadius: {
164 type: 'string',
165 default: null
166 },
167 }
168
169 /*
170 // v1.105.1 リンク機能の追加に伴う属性の追加
171 const blockAttributes13 = {
172 ...blockAttributes12,
173 relAttribute: {
174 type: 'string',
175 default: null,
176 },
177 }
178 */
179
180 export const deprecated = [
181 {
182 attributes: blockAttributes12,
183 save: save1_72_1,
184 },
185 {
186 attributes: blockAttributes11,
187 save: save1_70_1,
188 },
189 {
190 attributes: blockAttributes10,
191 save: save1_43_0,
192 },
193 {
194 attributes: blockAttributes9,
195 save: save1_39_2,
196 },
197 {
198 attributes: blockAttributes8,
199 save: save1_35_0,
200 },
201 {
202 attributes: blockAttributes7,
203 save: save1_31_0,
204 },
205 {
206 attributes: blockAttributes6,
207 save: save1_29_2,
208 },
209 {
210 attributes: blockAttributes4,
211 save: save1_18_6,
212 },
213 {
214 attributes: blockAttributes3,
215 save: save1_18_1,
216 },
217 {
218 attributes: blockAttributes3,
219 save: save1_16_4,
220 },
221 {
222 attributes: blockAttributes2,
223 save: save1_16_2,
224 },
225 // Fix: https://github.com/vektor-inc/vk-blocks-pro/issues/356
226 // 独自後方互換処理のための、後方互換を追加
227 ];
228