@gravity-ui/page-constructor 2.3.0 → 2.3.2-alpha.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/cjs/blocks/FilterBlock/schema.js +1 -1
  3. package/build/cjs/blocks/Header/schema.d.ts +390 -0
  4. package/build/cjs/blocks/HeaderSlider/schema.d.ts +156 -0
  5. package/build/cjs/blocks/Media/schema.d.ts +156 -0
  6. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  7. package/build/cjs/blocks/Security/schema.d.ts +78 -0
  8. package/build/cjs/blocks/Tabs/schema.d.ts +78 -0
  9. package/build/cjs/schema/index.d.ts +78 -0
  10. package/build/cjs/schema/index.js +2 -1
  11. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  12. package/build/cjs/schema/validators/blocks.js +1 -0
  13. package/build/cjs/schema/validators/common.d.ts +234 -0
  14. package/build/cjs/schema/validators/common.js +5 -2
  15. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  16. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +78 -0
  17. package/build/esm/blocks/FilterBlock/schema.js +1 -1
  18. package/build/esm/blocks/Header/schema.d.ts +390 -0
  19. package/build/esm/blocks/HeaderSlider/schema.d.ts +156 -0
  20. package/build/esm/blocks/Media/schema.d.ts +156 -0
  21. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  22. package/build/esm/blocks/Security/schema.d.ts +78 -0
  23. package/build/esm/blocks/Tabs/schema.d.ts +78 -0
  24. package/build/esm/schema/index.d.ts +78 -0
  25. package/build/esm/schema/index.js +3 -2
  26. package/build/esm/schema/validators/blocks.d.ts +1 -0
  27. package/build/esm/schema/validators/blocks.js +1 -0
  28. package/build/esm/schema/validators/common.d.ts +234 -0
  29. package/build/esm/schema/validators/common.js +5 -2
  30. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  31. package/build/esm/sub-blocks/MediaCard/schema.d.ts +78 -0
  32. package/package.json +4 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.1](https://github.com/gravity-ui/page-constructor/compare/v2.3.0...v2.3.1) (2023-04-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **validator:** add FilterBlock to schema validators ([#270](https://github.com/gravity-ui/page-constructor/issues/270)) ([2c344a8](https://github.com/gravity-ui/page-constructor/commit/2c344a853d8d91b897423f8f46c191a5e7bfc8c7))
9
+
3
10
  ## [2.3.0](https://github.com/gravity-ui/page-constructor/compare/v2.2.1...v2.3.0) (2023-04-03)
4
11
 
5
12
 
@@ -25,7 +25,7 @@ exports.FilterItemProps = {
25
25
  type: 'string',
26
26
  },
27
27
  },
28
- card: { $ref: 'self#/definitions/card' },
28
+ card: { $ref: 'self#/definitions/cards' },
29
29
  },
30
30
  };
31
31
  exports.FilterProps = {
@@ -105,6 +105,84 @@ export declare const HeaderBackgroundProps: {
105
105
  type: string;
106
106
  enum: string[];
107
107
  };
108
+ analyticsEvents: {
109
+ anyOf: ({
110
+ type: string;
111
+ additionalProperties: {
112
+ type: string;
113
+ };
114
+ required: string[];
115
+ properties: {
116
+ name: {
117
+ type: string;
118
+ };
119
+ type: {
120
+ type: string;
121
+ };
122
+ counters: {
123
+ type: string;
124
+ additionalProperties: boolean;
125
+ required: never[];
126
+ properties: {
127
+ include: {
128
+ type: string;
129
+ items: {
130
+ type: string;
131
+ };
132
+ };
133
+ exclude: {
134
+ type: string;
135
+ items: {
136
+ type: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ context: {
142
+ type: string;
143
+ };
144
+ };
145
+ } | {
146
+ type: string;
147
+ items: {
148
+ type: string;
149
+ additionalProperties: {
150
+ type: string;
151
+ };
152
+ required: string[];
153
+ properties: {
154
+ name: {
155
+ type: string;
156
+ };
157
+ type: {
158
+ type: string;
159
+ };
160
+ counters: {
161
+ type: string;
162
+ additionalProperties: boolean;
163
+ required: never[];
164
+ properties: {
165
+ include: {
166
+ type: string;
167
+ items: {
168
+ type: string;
169
+ };
170
+ };
171
+ exclude: {
172
+ type: string;
173
+ items: {
174
+ type: string;
175
+ };
176
+ };
177
+ };
178
+ };
179
+ context: {
180
+ type: string;
181
+ };
182
+ };
183
+ };
184
+ })[];
185
+ };
108
186
  };
109
187
  };
110
188
  youtube: {
@@ -255,6 +333,84 @@ export declare const HeaderProperties: {
255
333
  type: string;
256
334
  enum: string[];
257
335
  };
336
+ analyticsEvents: {
337
+ anyOf: ({
338
+ type: string;
339
+ additionalProperties: {
340
+ type: string;
341
+ };
342
+ required: string[];
343
+ properties: {
344
+ name: {
345
+ type: string;
346
+ };
347
+ type: {
348
+ type: string;
349
+ };
350
+ counters: {
351
+ type: string;
352
+ additionalProperties: boolean;
353
+ required: never[];
354
+ properties: {
355
+ include: {
356
+ type: string;
357
+ items: {
358
+ type: string;
359
+ };
360
+ };
361
+ exclude: {
362
+ type: string;
363
+ items: {
364
+ type: string;
365
+ };
366
+ };
367
+ };
368
+ };
369
+ context: {
370
+ type: string;
371
+ };
372
+ };
373
+ } | {
374
+ type: string;
375
+ items: {
376
+ type: string;
377
+ additionalProperties: {
378
+ type: string;
379
+ };
380
+ required: string[];
381
+ properties: {
382
+ name: {
383
+ type: string;
384
+ };
385
+ type: {
386
+ type: string;
387
+ };
388
+ counters: {
389
+ type: string;
390
+ additionalProperties: boolean;
391
+ required: never[];
392
+ properties: {
393
+ include: {
394
+ type: string;
395
+ items: {
396
+ type: string;
397
+ };
398
+ };
399
+ exclude: {
400
+ type: string;
401
+ items: {
402
+ type: string;
403
+ };
404
+ };
405
+ };
406
+ };
407
+ context: {
408
+ type: string;
409
+ };
410
+ };
411
+ };
412
+ })[];
413
+ };
258
414
  };
259
415
  } | {
260
416
  type: string;
@@ -392,6 +548,84 @@ export declare const HeaderProperties: {
392
548
  type: string;
393
549
  enum: string[];
394
550
  };
551
+ analyticsEvents: {
552
+ anyOf: ({
553
+ type: string;
554
+ additionalProperties: {
555
+ type: string;
556
+ };
557
+ required: string[];
558
+ properties: {
559
+ name: {
560
+ type: string;
561
+ };
562
+ type: {
563
+ type: string;
564
+ };
565
+ counters: {
566
+ type: string;
567
+ additionalProperties: boolean;
568
+ required: never[];
569
+ properties: {
570
+ include: {
571
+ type: string;
572
+ items: {
573
+ type: string;
574
+ };
575
+ };
576
+ exclude: {
577
+ type: string;
578
+ items: {
579
+ type: string;
580
+ };
581
+ };
582
+ };
583
+ };
584
+ context: {
585
+ type: string;
586
+ };
587
+ };
588
+ } | {
589
+ type: string;
590
+ items: {
591
+ type: string;
592
+ additionalProperties: {
593
+ type: string;
594
+ };
595
+ required: string[];
596
+ properties: {
597
+ name: {
598
+ type: string;
599
+ };
600
+ type: {
601
+ type: string;
602
+ };
603
+ counters: {
604
+ type: string;
605
+ additionalProperties: boolean;
606
+ required: never[];
607
+ properties: {
608
+ include: {
609
+ type: string;
610
+ items: {
611
+ type: string;
612
+ };
613
+ };
614
+ exclude: {
615
+ type: string;
616
+ items: {
617
+ type: string;
618
+ };
619
+ };
620
+ };
621
+ };
622
+ context: {
623
+ type: string;
624
+ };
625
+ };
626
+ };
627
+ })[];
628
+ };
395
629
  };
396
630
  };
397
631
  youtube: {
@@ -588,6 +822,84 @@ export declare const HeaderBlock: {
588
822
  type: string;
589
823
  enum: string[];
590
824
  };
825
+ analyticsEvents: {
826
+ anyOf: ({
827
+ type: string;
828
+ additionalProperties: {
829
+ type: string;
830
+ };
831
+ required: string[];
832
+ properties: {
833
+ name: {
834
+ type: string;
835
+ };
836
+ type: {
837
+ type: string;
838
+ };
839
+ counters: {
840
+ type: string;
841
+ additionalProperties: boolean;
842
+ required: never[];
843
+ properties: {
844
+ include: {
845
+ type: string;
846
+ items: {
847
+ type: string;
848
+ };
849
+ };
850
+ exclude: {
851
+ type: string;
852
+ items: {
853
+ type: string;
854
+ };
855
+ };
856
+ };
857
+ };
858
+ context: {
859
+ type: string;
860
+ };
861
+ };
862
+ } | {
863
+ type: string;
864
+ items: {
865
+ type: string;
866
+ additionalProperties: {
867
+ type: string;
868
+ };
869
+ required: string[];
870
+ properties: {
871
+ name: {
872
+ type: string;
873
+ };
874
+ type: {
875
+ type: string;
876
+ };
877
+ counters: {
878
+ type: string;
879
+ additionalProperties: boolean;
880
+ required: never[];
881
+ properties: {
882
+ include: {
883
+ type: string;
884
+ items: {
885
+ type: string;
886
+ };
887
+ };
888
+ exclude: {
889
+ type: string;
890
+ items: {
891
+ type: string;
892
+ };
893
+ };
894
+ };
895
+ };
896
+ context: {
897
+ type: string;
898
+ };
899
+ };
900
+ };
901
+ })[];
902
+ };
591
903
  };
592
904
  } | {
593
905
  type: string;
@@ -725,6 +1037,84 @@ export declare const HeaderBlock: {
725
1037
  type: string;
726
1038
  enum: string[];
727
1039
  };
1040
+ analyticsEvents: {
1041
+ anyOf: ({
1042
+ type: string;
1043
+ additionalProperties: {
1044
+ type: string;
1045
+ };
1046
+ required: string[];
1047
+ properties: {
1048
+ name: {
1049
+ type: string;
1050
+ };
1051
+ type: {
1052
+ type: string;
1053
+ };
1054
+ counters: {
1055
+ type: string;
1056
+ additionalProperties: boolean;
1057
+ required: never[];
1058
+ properties: {
1059
+ include: {
1060
+ type: string;
1061
+ items: {
1062
+ type: string;
1063
+ };
1064
+ };
1065
+ exclude: {
1066
+ type: string;
1067
+ items: {
1068
+ type: string;
1069
+ };
1070
+ };
1071
+ };
1072
+ };
1073
+ context: {
1074
+ type: string;
1075
+ };
1076
+ };
1077
+ } | {
1078
+ type: string;
1079
+ items: {
1080
+ type: string;
1081
+ additionalProperties: {
1082
+ type: string;
1083
+ };
1084
+ required: string[];
1085
+ properties: {
1086
+ name: {
1087
+ type: string;
1088
+ };
1089
+ type: {
1090
+ type: string;
1091
+ };
1092
+ counters: {
1093
+ type: string;
1094
+ additionalProperties: boolean;
1095
+ required: never[];
1096
+ properties: {
1097
+ include: {
1098
+ type: string;
1099
+ items: {
1100
+ type: string;
1101
+ };
1102
+ };
1103
+ exclude: {
1104
+ type: string;
1105
+ items: {
1106
+ type: string;
1107
+ };
1108
+ };
1109
+ };
1110
+ };
1111
+ context: {
1112
+ type: string;
1113
+ };
1114
+ };
1115
+ };
1116
+ })[];
1117
+ };
728
1118
  };
729
1119
  };
730
1120
  youtube: {
@@ -125,6 +125,84 @@ export declare const HeaderSliderBlock: {
125
125
  type: string;
126
126
  enum: string[];
127
127
  };
128
+ analyticsEvents: {
129
+ anyOf: ({
130
+ type: string;
131
+ additionalProperties: {
132
+ type: string;
133
+ };
134
+ required: string[];
135
+ properties: {
136
+ name: {
137
+ type: string;
138
+ };
139
+ type: {
140
+ type: string;
141
+ };
142
+ counters: {
143
+ type: string;
144
+ additionalProperties: boolean;
145
+ required: never[];
146
+ properties: {
147
+ include: {
148
+ type: string;
149
+ items: {
150
+ type: string;
151
+ };
152
+ };
153
+ exclude: {
154
+ type: string;
155
+ items: {
156
+ type: string;
157
+ };
158
+ };
159
+ };
160
+ };
161
+ context: {
162
+ type: string;
163
+ };
164
+ };
165
+ } | {
166
+ type: string;
167
+ items: {
168
+ type: string;
169
+ additionalProperties: {
170
+ type: string;
171
+ };
172
+ required: string[];
173
+ properties: {
174
+ name: {
175
+ type: string;
176
+ };
177
+ type: {
178
+ type: string;
179
+ };
180
+ counters: {
181
+ type: string;
182
+ additionalProperties: boolean;
183
+ required: never[];
184
+ properties: {
185
+ include: {
186
+ type: string;
187
+ items: {
188
+ type: string;
189
+ };
190
+ };
191
+ exclude: {
192
+ type: string;
193
+ items: {
194
+ type: string;
195
+ };
196
+ };
197
+ };
198
+ };
199
+ context: {
200
+ type: string;
201
+ };
202
+ };
203
+ };
204
+ })[];
205
+ };
128
206
  };
129
207
  } | {
130
208
  type: string;
@@ -262,6 +340,84 @@ export declare const HeaderSliderBlock: {
262
340
  type: string;
263
341
  enum: string[];
264
342
  };
343
+ analyticsEvents: {
344
+ anyOf: ({
345
+ type: string;
346
+ additionalProperties: {
347
+ type: string;
348
+ };
349
+ required: string[];
350
+ properties: {
351
+ name: {
352
+ type: string;
353
+ };
354
+ type: {
355
+ type: string;
356
+ };
357
+ counters: {
358
+ type: string;
359
+ additionalProperties: boolean;
360
+ required: never[];
361
+ properties: {
362
+ include: {
363
+ type: string;
364
+ items: {
365
+ type: string;
366
+ };
367
+ };
368
+ exclude: {
369
+ type: string;
370
+ items: {
371
+ type: string;
372
+ };
373
+ };
374
+ };
375
+ };
376
+ context: {
377
+ type: string;
378
+ };
379
+ };
380
+ } | {
381
+ type: string;
382
+ items: {
383
+ type: string;
384
+ additionalProperties: {
385
+ type: string;
386
+ };
387
+ required: string[];
388
+ properties: {
389
+ name: {
390
+ type: string;
391
+ };
392
+ type: {
393
+ type: string;
394
+ };
395
+ counters: {
396
+ type: string;
397
+ additionalProperties: boolean;
398
+ required: never[];
399
+ properties: {
400
+ include: {
401
+ type: string;
402
+ items: {
403
+ type: string;
404
+ };
405
+ };
406
+ exclude: {
407
+ type: string;
408
+ items: {
409
+ type: string;
410
+ };
411
+ };
412
+ };
413
+ };
414
+ context: {
415
+ type: string;
416
+ };
417
+ };
418
+ };
419
+ })[];
420
+ };
265
421
  };
266
422
  };
267
423
  youtube: {