@gravity-ui/blog-constructor 4.1.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/cjs/blocks/Author/schema.d.ts +3 -1
- package/build/cjs/blocks/Banner/schema.d.ts +10 -4
- package/build/cjs/blocks/CTA/schema.d.ts +10 -4
- package/build/cjs/blocks/ColoredText/schema.d.ts +11 -4
- package/build/cjs/blocks/Feed/schema.d.ts +3 -1
- package/build/cjs/blocks/Header/schema.d.ts +41 -16
- package/build/cjs/blocks/Layout/schema.d.ts +3 -1
- package/build/cjs/blocks/Media/schema.d.ts +19 -7
- package/build/cjs/blocks/Meta/schema.d.ts +3 -1
- package/build/cjs/blocks/Suggest/schema.d.ts +3 -1
- package/build/cjs/blocks/YFM/schema.d.ts +3 -1
- package/build/cjs/components/PostInfo/components/Sharing.js +1 -1
- package/build/cjs/containers/BlogPage/BlogPage.js +1 -1
- package/build/cjs/containers/BlogPostPage/BlogPostPage.js +18 -19
- package/build/cjs/schema/index.d.ts +109 -41
- package/build/esm/blocks/Author/schema.d.ts +3 -1
- package/build/esm/blocks/Banner/schema.d.ts +10 -4
- package/build/esm/blocks/CTA/schema.d.ts +10 -4
- package/build/esm/blocks/ColoredText/schema.d.ts +11 -4
- package/build/esm/blocks/Feed/schema.d.ts +3 -1
- package/build/esm/blocks/Header/schema.d.ts +41 -16
- package/build/esm/blocks/Layout/schema.d.ts +3 -1
- package/build/esm/blocks/Media/schema.d.ts +19 -7
- package/build/esm/blocks/Meta/schema.d.ts +3 -1
- package/build/esm/blocks/Suggest/schema.d.ts +3 -1
- package/build/esm/blocks/YFM/schema.d.ts +3 -1
- package/build/esm/components/PostInfo/components/Sharing.js +1 -1
- package/build/esm/containers/BlogPage/BlogPage.js +2 -2
- package/build/esm/containers/BlogPostPage/BlogPostPage.js +18 -19
- package/build/esm/schema/index.d.ts +109 -41
- package/package.json +2 -2
@@ -22,6 +22,7 @@ export declare const schemasForCustom: {
|
|
22
22
|
description: {
|
23
23
|
type: string;
|
24
24
|
contentType: string;
|
25
|
+
inputType: string;
|
25
26
|
};
|
26
27
|
width: {
|
27
28
|
type: string;
|
@@ -43,7 +44,7 @@ export declare const schemasForCustom: {
|
|
43
44
|
enum: string[];
|
44
45
|
};
|
45
46
|
image: {
|
46
|
-
oneOf: ({
|
47
|
+
oneOf: (({
|
47
48
|
oneOf: ({
|
48
49
|
type: string;
|
49
50
|
properties: {
|
@@ -54,16 +55,20 @@ export declare const schemasForCustom: {
|
|
54
55
|
} | {
|
55
56
|
type: string;
|
56
57
|
pattern: string;
|
58
|
+
optionName: string;
|
57
59
|
})[];
|
58
|
-
}
|
60
|
+
} & {
|
61
|
+
optionName: string;
|
62
|
+
}) | {
|
59
63
|
type: string;
|
60
64
|
additionalProperties: boolean;
|
61
65
|
required: import("@gravity-ui/page-constructor").Theme[];
|
62
66
|
properties: {};
|
67
|
+
optionName: string;
|
63
68
|
})[];
|
64
69
|
};
|
65
70
|
video: {
|
66
|
-
oneOf: ({
|
71
|
+
oneOf: (({
|
67
72
|
type: string;
|
68
73
|
additionalProperties: boolean;
|
69
74
|
required: string[];
|
@@ -75,7 +80,8 @@ export declare const schemasForCustom: {
|
|
75
80
|
};
|
76
81
|
};
|
77
82
|
loop: {
|
78
|
-
|
83
|
+
oneOf: ({
|
84
|
+
optionName: string;
|
79
85
|
type: string;
|
80
86
|
additionalProperties: boolean;
|
81
87
|
required: string[];
|
@@ -89,6 +95,7 @@ export declare const schemasForCustom: {
|
|
89
95
|
};
|
90
96
|
} | {
|
91
97
|
type: string;
|
98
|
+
optionName: string;
|
92
99
|
})[];
|
93
100
|
};
|
94
101
|
type: {
|
@@ -98,13 +105,13 @@ export declare const schemasForCustom: {
|
|
98
105
|
muted: {
|
99
106
|
type: string;
|
100
107
|
};
|
101
|
-
|
108
|
+
autoplay: {
|
102
109
|
type: string;
|
103
110
|
};
|
104
111
|
elapsedTime: {
|
105
112
|
type: string;
|
106
113
|
};
|
107
|
-
|
114
|
+
playButton: {
|
108
115
|
type: string;
|
109
116
|
additionalProperties: boolean;
|
110
117
|
properties: {
|
@@ -127,11 +134,14 @@ export declare const schemasForCustom: {
|
|
127
134
|
enum: string[];
|
128
135
|
};
|
129
136
|
};
|
130
|
-
}
|
137
|
+
} & {
|
138
|
+
optionName: string;
|
139
|
+
}) | {
|
131
140
|
type: string;
|
132
141
|
additionalProperties: boolean;
|
133
142
|
required: import("@gravity-ui/page-constructor").Theme[];
|
134
143
|
properties: {};
|
144
|
+
optionName: string;
|
135
145
|
})[];
|
136
146
|
};
|
137
147
|
backLink: {
|
@@ -156,7 +166,7 @@ export declare const schemasForCustom: {
|
|
156
166
|
enum: string[];
|
157
167
|
};
|
158
168
|
background: {
|
159
|
-
oneOf: ({
|
169
|
+
oneOf: (({
|
160
170
|
type: string;
|
161
171
|
additionalProperties: boolean;
|
162
172
|
required: never[];
|
@@ -171,7 +181,8 @@ export declare const schemasForCustom: {
|
|
171
181
|
type: string;
|
172
182
|
};
|
173
183
|
image: {
|
174
|
-
|
184
|
+
oneOf: ({
|
185
|
+
optionName: string;
|
175
186
|
oneOf: ({
|
176
187
|
type: string;
|
177
188
|
properties: {
|
@@ -182,7 +193,10 @@ export declare const schemasForCustom: {
|
|
182
193
|
} | {
|
183
194
|
type: string;
|
184
195
|
pattern: string;
|
196
|
+
optionName: string;
|
185
197
|
})[];
|
198
|
+
type?: undefined;
|
199
|
+
items?: undefined;
|
186
200
|
} | {
|
187
201
|
type: string;
|
188
202
|
items: {
|
@@ -196,8 +210,10 @@ export declare const schemasForCustom: {
|
|
196
210
|
} | {
|
197
211
|
type: string;
|
198
212
|
pattern: string;
|
213
|
+
optionName: string;
|
199
214
|
})[];
|
200
215
|
};
|
216
|
+
optionName: string;
|
201
217
|
})[];
|
202
218
|
};
|
203
219
|
video: {
|
@@ -212,7 +228,8 @@ export declare const schemasForCustom: {
|
|
212
228
|
};
|
213
229
|
};
|
214
230
|
loop: {
|
215
|
-
|
231
|
+
oneOf: ({
|
232
|
+
optionName: string;
|
216
233
|
type: string;
|
217
234
|
additionalProperties: boolean;
|
218
235
|
required: string[];
|
@@ -226,6 +243,7 @@ export declare const schemasForCustom: {
|
|
226
243
|
};
|
227
244
|
} | {
|
228
245
|
type: string;
|
246
|
+
optionName: string;
|
229
247
|
})[];
|
230
248
|
};
|
231
249
|
type: {
|
@@ -235,13 +253,13 @@ export declare const schemasForCustom: {
|
|
235
253
|
muted: {
|
236
254
|
type: string;
|
237
255
|
};
|
238
|
-
|
256
|
+
autoplay: {
|
239
257
|
type: string;
|
240
258
|
};
|
241
259
|
elapsedTime: {
|
242
260
|
type: string;
|
243
261
|
};
|
244
|
-
|
262
|
+
playButton: {
|
245
263
|
type: string;
|
246
264
|
additionalProperties: boolean;
|
247
265
|
properties: {
|
@@ -279,6 +297,10 @@ export declare const schemasForCustom: {
|
|
279
297
|
};
|
280
298
|
dataLens: {
|
281
299
|
oneOf: ({
|
300
|
+
type: string;
|
301
|
+
optionName: string;
|
302
|
+
} | {
|
303
|
+
optionName: string;
|
282
304
|
type: string;
|
283
305
|
additionalProperties: boolean;
|
284
306
|
required: string[];
|
@@ -291,8 +313,6 @@ export declare const schemasForCustom: {
|
|
291
313
|
enum: string[];
|
292
314
|
};
|
293
315
|
};
|
294
|
-
} | {
|
295
|
-
type: string;
|
296
316
|
})[];
|
297
317
|
};
|
298
318
|
fullscreen: {
|
@@ -377,11 +397,14 @@ export declare const schemasForCustom: {
|
|
377
397
|
})[];
|
378
398
|
};
|
379
399
|
};
|
380
|
-
}
|
400
|
+
} & {
|
401
|
+
optionName: string;
|
402
|
+
}) | {
|
381
403
|
type: string;
|
382
404
|
additionalProperties: boolean;
|
383
405
|
required: import("@gravity-ui/page-constructor").Theme[];
|
384
406
|
properties: {};
|
407
|
+
optionName: string;
|
385
408
|
})[];
|
386
409
|
};
|
387
410
|
theme: {
|
@@ -459,7 +482,9 @@ export declare const schemasForCustom: {
|
|
459
482
|
type: string;
|
460
483
|
};
|
461
484
|
type: {};
|
462
|
-
when: {
|
485
|
+
when: {
|
486
|
+
type: string;
|
487
|
+
};
|
463
488
|
};
|
464
489
|
};
|
465
490
|
};
|
@@ -514,7 +539,9 @@ export declare const schemasForCustom: {
|
|
514
539
|
type: string;
|
515
540
|
};
|
516
541
|
type: {};
|
517
|
-
when: {
|
542
|
+
when: {
|
543
|
+
type: string;
|
544
|
+
};
|
518
545
|
};
|
519
546
|
};
|
520
547
|
};
|
@@ -536,6 +563,11 @@ export declare const schemasForCustom: {
|
|
536
563
|
};
|
537
564
|
title: {
|
538
565
|
oneOf: ({
|
566
|
+
type: string;
|
567
|
+
contentType: string;
|
568
|
+
optionName: string;
|
569
|
+
} | {
|
570
|
+
optionName: string;
|
539
571
|
type: string;
|
540
572
|
additionalProperties: boolean;
|
541
573
|
required: string[];
|
@@ -555,14 +587,13 @@ export declare const schemasForCustom: {
|
|
555
587
|
type: string;
|
556
588
|
};
|
557
589
|
};
|
558
|
-
|
559
|
-
type: string;
|
560
|
-
contentType: string;
|
590
|
+
contentType?: undefined;
|
561
591
|
})[];
|
562
592
|
};
|
563
593
|
text: {
|
564
594
|
type: string;
|
565
595
|
contentType: string;
|
596
|
+
inputType: string;
|
566
597
|
};
|
567
598
|
additionalInfo: {
|
568
599
|
type: string;
|
@@ -638,7 +669,9 @@ export declare const schemasForCustom: {
|
|
638
669
|
type: string;
|
639
670
|
};
|
640
671
|
type: {};
|
641
|
-
when: {
|
672
|
+
when: {
|
673
|
+
type: string;
|
674
|
+
};
|
642
675
|
};
|
643
676
|
};
|
644
677
|
};
|
@@ -663,6 +696,7 @@ export declare const schemasForCustom: {
|
|
663
696
|
} | {
|
664
697
|
type: string;
|
665
698
|
pattern: string;
|
699
|
+
optionName: string;
|
666
700
|
})[];
|
667
701
|
};
|
668
702
|
color: {
|
@@ -676,6 +710,11 @@ export declare const schemasForCustom: {
|
|
676
710
|
};
|
677
711
|
title: {
|
678
712
|
oneOf: ({
|
713
|
+
type: string;
|
714
|
+
contentType: string;
|
715
|
+
optionName: string;
|
716
|
+
} | {
|
717
|
+
optionName: string;
|
679
718
|
type: string;
|
680
719
|
additionalProperties: boolean;
|
681
720
|
required: string[];
|
@@ -695,14 +734,13 @@ export declare const schemasForCustom: {
|
|
695
734
|
type: string;
|
696
735
|
};
|
697
736
|
};
|
698
|
-
|
699
|
-
type: string;
|
700
|
-
contentType: string;
|
737
|
+
contentType?: undefined;
|
701
738
|
})[];
|
702
739
|
};
|
703
740
|
text: {
|
704
741
|
type: string;
|
705
742
|
contentType: string;
|
743
|
+
inputType: string;
|
706
744
|
};
|
707
745
|
additionalInfo: {
|
708
746
|
type: string;
|
@@ -778,7 +816,9 @@ export declare const schemasForCustom: {
|
|
778
816
|
type: string;
|
779
817
|
};
|
780
818
|
type: {};
|
781
|
-
when: {
|
819
|
+
when: {
|
820
|
+
type: string;
|
821
|
+
};
|
782
822
|
};
|
783
823
|
};
|
784
824
|
};
|
@@ -797,6 +837,11 @@ export declare const schemasForCustom: {
|
|
797
837
|
properties: {
|
798
838
|
title: {
|
799
839
|
oneOf: ({
|
840
|
+
type: string;
|
841
|
+
contentType: string;
|
842
|
+
optionName: string;
|
843
|
+
} | {
|
844
|
+
optionName: string;
|
800
845
|
type: string;
|
801
846
|
additionalProperties: boolean;
|
802
847
|
required: string[];
|
@@ -816,14 +861,13 @@ export declare const schemasForCustom: {
|
|
816
861
|
type: string;
|
817
862
|
};
|
818
863
|
};
|
819
|
-
|
820
|
-
type: string;
|
821
|
-
contentType: string;
|
864
|
+
contentType?: undefined;
|
822
865
|
})[];
|
823
866
|
};
|
824
867
|
text: {
|
825
868
|
type: string;
|
826
869
|
contentType: string;
|
870
|
+
inputType: string;
|
827
871
|
};
|
828
872
|
additionalInfo: {
|
829
873
|
type: string;
|
@@ -902,7 +946,9 @@ export declare const schemasForCustom: {
|
|
902
946
|
type: string;
|
903
947
|
};
|
904
948
|
type: {};
|
905
|
-
when: {
|
949
|
+
when: {
|
950
|
+
type: string;
|
951
|
+
};
|
906
952
|
};
|
907
953
|
};
|
908
954
|
};
|
@@ -968,7 +1014,9 @@ export declare const schemasForCustom: {
|
|
968
1014
|
type: string;
|
969
1015
|
};
|
970
1016
|
type: {};
|
971
|
-
when: {
|
1017
|
+
when: {
|
1018
|
+
type: string;
|
1019
|
+
};
|
972
1020
|
};
|
973
1021
|
};
|
974
1022
|
};
|
@@ -1028,7 +1076,9 @@ export declare const schemasForCustom: {
|
|
1028
1076
|
type: string;
|
1029
1077
|
};
|
1030
1078
|
type: {};
|
1031
|
-
when: {
|
1079
|
+
when: {
|
1080
|
+
type: string;
|
1081
|
+
};
|
1032
1082
|
};
|
1033
1083
|
};
|
1034
1084
|
};
|
@@ -1045,7 +1095,8 @@ export declare const schemasForCustom: {
|
|
1045
1095
|
type: string;
|
1046
1096
|
};
|
1047
1097
|
image: {
|
1048
|
-
|
1098
|
+
oneOf: ({
|
1099
|
+
optionName: string;
|
1049
1100
|
oneOf: ({
|
1050
1101
|
type: string;
|
1051
1102
|
properties: {
|
@@ -1056,7 +1107,10 @@ export declare const schemasForCustom: {
|
|
1056
1107
|
} | {
|
1057
1108
|
type: string;
|
1058
1109
|
pattern: string;
|
1110
|
+
optionName: string;
|
1059
1111
|
})[];
|
1112
|
+
type?: undefined;
|
1113
|
+
items?: undefined;
|
1060
1114
|
} | {
|
1061
1115
|
type: string;
|
1062
1116
|
items: {
|
@@ -1070,8 +1124,10 @@ export declare const schemasForCustom: {
|
|
1070
1124
|
} | {
|
1071
1125
|
type: string;
|
1072
1126
|
pattern: string;
|
1127
|
+
optionName: string;
|
1073
1128
|
})[];
|
1074
1129
|
};
|
1130
|
+
optionName: string;
|
1075
1131
|
})[];
|
1076
1132
|
};
|
1077
1133
|
video: {
|
@@ -1086,7 +1142,8 @@ export declare const schemasForCustom: {
|
|
1086
1142
|
};
|
1087
1143
|
};
|
1088
1144
|
loop: {
|
1089
|
-
|
1145
|
+
oneOf: ({
|
1146
|
+
optionName: string;
|
1090
1147
|
type: string;
|
1091
1148
|
additionalProperties: boolean;
|
1092
1149
|
required: string[];
|
@@ -1100,6 +1157,7 @@ export declare const schemasForCustom: {
|
|
1100
1157
|
};
|
1101
1158
|
} | {
|
1102
1159
|
type: string;
|
1160
|
+
optionName: string;
|
1103
1161
|
})[];
|
1104
1162
|
};
|
1105
1163
|
type: {
|
@@ -1109,13 +1167,13 @@ export declare const schemasForCustom: {
|
|
1109
1167
|
muted: {
|
1110
1168
|
type: string;
|
1111
1169
|
};
|
1112
|
-
|
1170
|
+
autoplay: {
|
1113
1171
|
type: string;
|
1114
1172
|
};
|
1115
1173
|
elapsedTime: {
|
1116
1174
|
type: string;
|
1117
1175
|
};
|
1118
|
-
|
1176
|
+
playButton: {
|
1119
1177
|
type: string;
|
1120
1178
|
additionalProperties: boolean;
|
1121
1179
|
properties: {
|
@@ -1153,6 +1211,10 @@ export declare const schemasForCustom: {
|
|
1153
1211
|
};
|
1154
1212
|
dataLens: {
|
1155
1213
|
oneOf: ({
|
1214
|
+
type: string;
|
1215
|
+
optionName: string;
|
1216
|
+
} | {
|
1217
|
+
optionName: string;
|
1156
1218
|
type: string;
|
1157
1219
|
additionalProperties: boolean;
|
1158
1220
|
required: string[];
|
@@ -1165,8 +1227,6 @@ export declare const schemasForCustom: {
|
|
1165
1227
|
enum: string[];
|
1166
1228
|
};
|
1167
1229
|
};
|
1168
|
-
} | {
|
1169
|
-
type: string;
|
1170
1230
|
})[];
|
1171
1231
|
};
|
1172
1232
|
fullscreen: {
|
@@ -1290,7 +1350,9 @@ export declare const schemasForCustom: {
|
|
1290
1350
|
type: string;
|
1291
1351
|
};
|
1292
1352
|
type: {};
|
1293
|
-
when: {
|
1353
|
+
when: {
|
1354
|
+
type: string;
|
1355
|
+
};
|
1294
1356
|
};
|
1295
1357
|
};
|
1296
1358
|
};
|
@@ -1339,7 +1401,9 @@ export declare const schemasForCustom: {
|
|
1339
1401
|
type: string;
|
1340
1402
|
};
|
1341
1403
|
type: {};
|
1342
|
-
when: {
|
1404
|
+
when: {
|
1405
|
+
type: string;
|
1406
|
+
};
|
1343
1407
|
};
|
1344
1408
|
};
|
1345
1409
|
};
|
@@ -1388,7 +1452,9 @@ export declare const schemasForCustom: {
|
|
1388
1452
|
type: string;
|
1389
1453
|
};
|
1390
1454
|
type: {};
|
1391
|
-
when: {
|
1455
|
+
when: {
|
1456
|
+
type: string;
|
1457
|
+
};
|
1392
1458
|
};
|
1393
1459
|
};
|
1394
1460
|
};
|
@@ -1442,7 +1508,9 @@ export declare const schemasForCustom: {
|
|
1442
1508
|
type: string;
|
1443
1509
|
};
|
1444
1510
|
type: {};
|
1445
|
-
when: {
|
1511
|
+
when: {
|
1512
|
+
type: string;
|
1513
|
+
};
|
1446
1514
|
};
|
1447
1515
|
};
|
1448
1516
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gravity-ui/blog-constructor",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.2.0",
|
4
4
|
"description": "Gravity UI Blog Constructor",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -73,7 +73,7 @@
|
|
73
73
|
"@commitlint/config-conventional": "^17.4.3",
|
74
74
|
"@doc-tools/transform": "^2.9.0",
|
75
75
|
"@gravity-ui/eslint-config": "^2.0.0",
|
76
|
-
"@gravity-ui/page-constructor": "^3.
|
76
|
+
"@gravity-ui/page-constructor": "^3.9.2",
|
77
77
|
"@gravity-ui/prettier-config": "^1.0.1",
|
78
78
|
"@gravity-ui/stylelint-config": "^1.0.0",
|
79
79
|
"@gravity-ui/tsconfig": "^1.0.0",
|