@gravity-ui/page-constructor 2.23.0-alpha.0 → 2.23.0-alpha.1

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 (45) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/cjs/blocks/Header/Header.css +7 -6
  3. package/build/cjs/blocks/Header/schema.d.ts +234 -0
  4. package/build/cjs/blocks/HeaderSlider/schema.d.ts +78 -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/components/Media/Media.js +1 -1
  10. package/build/cjs/components/VideoBlock/VideoBlock.d.ts +2 -1
  11. package/build/cjs/components/VideoBlock/VideoBlock.js +6 -2
  12. package/build/cjs/models/common.d.ts +2 -1
  13. package/build/cjs/models/common.js +1 -0
  14. package/build/cjs/models/navigation.d.ts +0 -1
  15. package/build/cjs/navigation/components/Header/Header.css +0 -2
  16. package/build/cjs/navigation/components/Header/Header.js +2 -16
  17. package/build/cjs/schema/validators/common.d.ts +78 -0
  18. package/build/cjs/schema/validators/common.js +3 -0
  19. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  20. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +82 -0
  21. package/build/cjs/sub-blocks/MediaCard/schema.js +1 -1
  22. package/build/esm/blocks/Header/Header.css +7 -6
  23. package/build/esm/blocks/Header/schema.d.ts +234 -0
  24. package/build/esm/blocks/HeaderSlider/schema.d.ts +78 -0
  25. package/build/esm/blocks/Media/schema.d.ts +156 -0
  26. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  27. package/build/esm/blocks/Security/schema.d.ts +78 -0
  28. package/build/esm/blocks/Tabs/schema.d.ts +78 -0
  29. package/build/esm/components/Media/Media.js +1 -1
  30. package/build/esm/components/VideoBlock/VideoBlock.d.ts +2 -1
  31. package/build/esm/components/VideoBlock/VideoBlock.js +6 -2
  32. package/build/esm/models/common.d.ts +2 -1
  33. package/build/esm/models/common.js +1 -0
  34. package/build/esm/models/navigation.d.ts +0 -1
  35. package/build/esm/navigation/components/Header/Header.css +0 -2
  36. package/build/esm/navigation/components/Header/Header.js +3 -17
  37. package/build/esm/schema/validators/common.d.ts +78 -0
  38. package/build/esm/schema/validators/common.js +3 -0
  39. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  40. package/build/esm/sub-blocks/MediaCard/schema.d.ts +82 -0
  41. package/build/esm/sub-blocks/MediaCard/schema.js +2 -2
  42. package/package.json +1 -1
  43. package/server/models/common.d.ts +2 -1
  44. package/server/models/common.js +1 -0
  45. package/server/models/navigation.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.22.2](https://github.com/gravity-ui/page-constructor/compare/v2.22.1...v2.22.2) (2023-06-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **MediaBlock:** add border property into schema ([#371](https://github.com/gravity-ui/page-constructor/issues/371)) ([5365791](https://github.com/gravity-ui/page-constructor/commit/5365791550bdb2ed8258d9582605e620ab0e1b11))
9
+
10
+ ## [2.22.1](https://github.com/gravity-ui/page-constructor/compare/v2.22.0...v2.22.1) (2023-06-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * filter block nesting ([#364](https://github.com/gravity-ui/page-constructor/issues/364)) ([5b62522](https://github.com/gravity-ui/page-constructor/commit/5b62522e5e34eeacbb2fb9ec6de957bba69cd758))
16
+
3
17
  ## [2.22.0](https://github.com/gravity-ui/page-constructor/compare/v2.21.0...v2.22.0) (2023-05-31)
4
18
 
5
19
 
@@ -6,6 +6,7 @@
6
6
  unpredictable css rules order in build */
7
7
  .pc-header-block {
8
8
  position: relative;
9
+ margin: 16px 0;
9
10
  }
10
11
  .pc-header-block_full-width {
11
12
  --pc-border-radius: 0;
@@ -29,16 +30,16 @@ unpredictable css rules order in build */
29
30
  margin: 16px 0;
30
31
  }
31
32
  .pc-header-block__content_vertical-offset_s {
32
- padding: 64px 0;
33
+ padding: 48px 0;
33
34
  }
34
35
  .pc-header-block__content_vertical-offset_m {
35
- padding: 96px 0;
36
+ padding: calc(96px - 16px) 0;
36
37
  }
37
38
  .pc-header-block__content_vertical-offset_l {
38
- padding: 128px 0;
39
+ padding: calc(128px - 16px) 0;
39
40
  }
40
41
  .pc-header-block__content_vertical-offset_xl {
41
- padding: 160px 0;
42
+ padding: calc(160px - 16px) 0;
42
43
  }
43
44
  .pc-header-block__content_offset_large {
44
45
  padding: calc(128px - 16px) 0 16px;
@@ -94,10 +95,10 @@ unpredictable css rules order in build */
94
95
  .pc-header-block__media {
95
96
  position: absolute;
96
97
  display: none;
97
- top: 16px;
98
+ top: 0;
98
99
  right: 0;
99
100
  width: 50%;
100
- height: calc(100% - 2 * 16px);
101
+ height: 100%;
101
102
  overflow: hidden;
102
103
  object-fit: cover;
103
104
  border-radius: var(--pc-border-radius);
@@ -143,6 +143,84 @@ export declare const HeaderBackgroundProps: {
143
143
  fullscreen: {
144
144
  type: string;
145
145
  };
146
+ analyticsEvents: {
147
+ anyOf: ({
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
+ type: string;
185
+ items: {
186
+ type: string;
187
+ additionalProperties: {
188
+ type: string;
189
+ };
190
+ required: string[];
191
+ properties: {
192
+ name: {
193
+ type: string;
194
+ };
195
+ type: {
196
+ type: string;
197
+ };
198
+ counters: {
199
+ type: string;
200
+ additionalProperties: boolean;
201
+ required: never[];
202
+ properties: {
203
+ include: {
204
+ type: string;
205
+ items: {
206
+ type: string;
207
+ };
208
+ };
209
+ exclude: {
210
+ type: string;
211
+ items: {
212
+ type: string;
213
+ };
214
+ };
215
+ };
216
+ };
217
+ context: {
218
+ type: string;
219
+ };
220
+ };
221
+ };
222
+ })[];
223
+ };
146
224
  };
147
225
  };
148
226
  export declare const HeaderProperties: {
@@ -436,6 +514,84 @@ export declare const HeaderProperties: {
436
514
  fullscreen: {
437
515
  type: string;
438
516
  };
517
+ analyticsEvents: {
518
+ anyOf: ({
519
+ type: string;
520
+ additionalProperties: {
521
+ type: string;
522
+ };
523
+ required: string[];
524
+ properties: {
525
+ name: {
526
+ type: string;
527
+ };
528
+ type: {
529
+ type: string;
530
+ };
531
+ counters: {
532
+ type: string;
533
+ additionalProperties: boolean;
534
+ required: never[];
535
+ properties: {
536
+ include: {
537
+ type: string;
538
+ items: {
539
+ type: string;
540
+ };
541
+ };
542
+ exclude: {
543
+ type: string;
544
+ items: {
545
+ type: string;
546
+ };
547
+ };
548
+ };
549
+ };
550
+ context: {
551
+ type: string;
552
+ };
553
+ };
554
+ } | {
555
+ type: string;
556
+ items: {
557
+ type: string;
558
+ additionalProperties: {
559
+ type: string;
560
+ };
561
+ required: string[];
562
+ properties: {
563
+ name: {
564
+ type: string;
565
+ };
566
+ type: {
567
+ type: string;
568
+ };
569
+ counters: {
570
+ type: string;
571
+ additionalProperties: boolean;
572
+ required: never[];
573
+ properties: {
574
+ include: {
575
+ type: string;
576
+ items: {
577
+ type: string;
578
+ };
579
+ };
580
+ exclude: {
581
+ type: string;
582
+ items: {
583
+ type: string;
584
+ };
585
+ };
586
+ };
587
+ };
588
+ context: {
589
+ type: string;
590
+ };
591
+ };
592
+ };
593
+ })[];
594
+ };
439
595
  };
440
596
  } | {
441
597
  type: string;
@@ -775,6 +931,84 @@ export declare const HeaderBlock: {
775
931
  fullscreen: {
776
932
  type: string;
777
933
  };
934
+ analyticsEvents: {
935
+ anyOf: ({
936
+ type: string;
937
+ additionalProperties: {
938
+ type: string;
939
+ };
940
+ required: string[];
941
+ properties: {
942
+ name: {
943
+ type: string;
944
+ };
945
+ type: {
946
+ type: string;
947
+ };
948
+ counters: {
949
+ type: string;
950
+ additionalProperties: boolean;
951
+ required: never[];
952
+ properties: {
953
+ include: {
954
+ type: string;
955
+ items: {
956
+ type: string;
957
+ };
958
+ };
959
+ exclude: {
960
+ type: string;
961
+ items: {
962
+ type: string;
963
+ };
964
+ };
965
+ };
966
+ };
967
+ context: {
968
+ type: string;
969
+ };
970
+ };
971
+ } | {
972
+ type: string;
973
+ items: {
974
+ type: string;
975
+ additionalProperties: {
976
+ type: string;
977
+ };
978
+ required: string[];
979
+ properties: {
980
+ name: {
981
+ type: string;
982
+ };
983
+ type: {
984
+ type: string;
985
+ };
986
+ counters: {
987
+ type: string;
988
+ additionalProperties: boolean;
989
+ required: never[];
990
+ properties: {
991
+ include: {
992
+ type: string;
993
+ items: {
994
+ type: string;
995
+ };
996
+ };
997
+ exclude: {
998
+ type: string;
999
+ items: {
1000
+ type: string;
1001
+ };
1002
+ };
1003
+ };
1004
+ };
1005
+ context: {
1006
+ type: string;
1007
+ };
1008
+ };
1009
+ };
1010
+ })[];
1011
+ };
778
1012
  };
779
1013
  } | {
780
1014
  type: string;
@@ -300,6 +300,84 @@ export declare const HeaderSliderBlock: {
300
300
  fullscreen: {
301
301
  type: string;
302
302
  };
303
+ analyticsEvents: {
304
+ anyOf: ({
305
+ type: string;
306
+ additionalProperties: {
307
+ type: string;
308
+ };
309
+ required: string[];
310
+ properties: {
311
+ name: {
312
+ type: string;
313
+ };
314
+ type: {
315
+ type: string;
316
+ };
317
+ counters: {
318
+ type: string;
319
+ additionalProperties: boolean;
320
+ required: never[];
321
+ properties: {
322
+ include: {
323
+ type: string;
324
+ items: {
325
+ type: string;
326
+ };
327
+ };
328
+ exclude: {
329
+ type: string;
330
+ items: {
331
+ type: string;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ context: {
337
+ type: string;
338
+ };
339
+ };
340
+ } | {
341
+ type: string;
342
+ items: {
343
+ type: string;
344
+ additionalProperties: {
345
+ type: string;
346
+ };
347
+ required: string[];
348
+ properties: {
349
+ name: {
350
+ type: string;
351
+ };
352
+ type: {
353
+ type: string;
354
+ };
355
+ counters: {
356
+ type: string;
357
+ additionalProperties: boolean;
358
+ required: never[];
359
+ properties: {
360
+ include: {
361
+ type: string;
362
+ items: {
363
+ type: string;
364
+ };
365
+ };
366
+ exclude: {
367
+ type: string;
368
+ items: {
369
+ type: string;
370
+ };
371
+ };
372
+ };
373
+ };
374
+ context: {
375
+ type: string;
376
+ };
377
+ };
378
+ };
379
+ })[];
380
+ };
303
381
  };
304
382
  } | {
305
383
  type: string;
@@ -137,6 +137,84 @@ export declare const Media: {
137
137
  fullscreen: {
138
138
  type: string;
139
139
  };
140
+ analyticsEvents: {
141
+ anyOf: ({
142
+ type: string;
143
+ additionalProperties: {
144
+ type: string;
145
+ };
146
+ required: string[];
147
+ properties: {
148
+ name: {
149
+ type: string;
150
+ };
151
+ type: {
152
+ type: string;
153
+ };
154
+ counters: {
155
+ type: string;
156
+ additionalProperties: boolean;
157
+ required: never[];
158
+ properties: {
159
+ include: {
160
+ type: string;
161
+ items: {
162
+ type: string;
163
+ };
164
+ };
165
+ exclude: {
166
+ type: string;
167
+ items: {
168
+ type: string;
169
+ };
170
+ };
171
+ };
172
+ };
173
+ context: {
174
+ type: string;
175
+ };
176
+ };
177
+ } | {
178
+ type: string;
179
+ items: {
180
+ type: string;
181
+ additionalProperties: {
182
+ type: string;
183
+ };
184
+ required: string[];
185
+ properties: {
186
+ name: {
187
+ type: string;
188
+ };
189
+ type: {
190
+ type: string;
191
+ };
192
+ counters: {
193
+ type: string;
194
+ additionalProperties: boolean;
195
+ required: never[];
196
+ properties: {
197
+ include: {
198
+ type: string;
199
+ items: {
200
+ type: string;
201
+ };
202
+ };
203
+ exclude: {
204
+ type: string;
205
+ items: {
206
+ type: string;
207
+ };
208
+ };
209
+ };
210
+ };
211
+ context: {
212
+ type: string;
213
+ };
214
+ };
215
+ };
216
+ })[];
217
+ };
140
218
  };
141
219
  };
142
220
  export declare const MediaBlockBaseProps: {
@@ -620,6 +698,84 @@ export declare const MediaBlock: {
620
698
  fullscreen: {
621
699
  type: string;
622
700
  };
701
+ analyticsEvents: {
702
+ anyOf: ({
703
+ type: string;
704
+ additionalProperties: {
705
+ type: string;
706
+ };
707
+ required: string[];
708
+ properties: {
709
+ name: {
710
+ type: string;
711
+ };
712
+ type: {
713
+ type: string;
714
+ };
715
+ counters: {
716
+ type: string;
717
+ additionalProperties: boolean;
718
+ required: never[];
719
+ properties: {
720
+ include: {
721
+ type: string;
722
+ items: {
723
+ type: string;
724
+ };
725
+ };
726
+ exclude: {
727
+ type: string;
728
+ items: {
729
+ type: string;
730
+ };
731
+ };
732
+ };
733
+ };
734
+ context: {
735
+ type: string;
736
+ };
737
+ };
738
+ } | {
739
+ type: string;
740
+ items: {
741
+ type: string;
742
+ additionalProperties: {
743
+ type: string;
744
+ };
745
+ required: string[];
746
+ properties: {
747
+ name: {
748
+ type: string;
749
+ };
750
+ type: {
751
+ type: string;
752
+ };
753
+ counters: {
754
+ type: string;
755
+ additionalProperties: boolean;
756
+ required: never[];
757
+ properties: {
758
+ include: {
759
+ type: string;
760
+ items: {
761
+ type: string;
762
+ };
763
+ };
764
+ exclude: {
765
+ type: string;
766
+ items: {
767
+ type: string;
768
+ };
769
+ };
770
+ };
771
+ };
772
+ context: {
773
+ type: string;
774
+ };
775
+ };
776
+ };
777
+ })[];
778
+ };
623
779
  };
624
780
  };
625
781
  description: {
@@ -152,6 +152,84 @@ export declare const PromoFeaturesItem: {
152
152
  fullscreen: {
153
153
  type: string;
154
154
  };
155
+ analyticsEvents: {
156
+ anyOf: ({
157
+ type: string;
158
+ additionalProperties: {
159
+ type: string;
160
+ };
161
+ required: string[];
162
+ properties: {
163
+ name: {
164
+ type: string;
165
+ };
166
+ type: {
167
+ type: string;
168
+ };
169
+ counters: {
170
+ type: string;
171
+ additionalProperties: boolean;
172
+ required: never[];
173
+ properties: {
174
+ include: {
175
+ type: string;
176
+ items: {
177
+ type: string;
178
+ };
179
+ };
180
+ exclude: {
181
+ type: string;
182
+ items: {
183
+ type: string;
184
+ };
185
+ };
186
+ };
187
+ };
188
+ context: {
189
+ type: string;
190
+ };
191
+ };
192
+ } | {
193
+ type: string;
194
+ items: {
195
+ type: string;
196
+ additionalProperties: {
197
+ type: string;
198
+ };
199
+ required: string[];
200
+ properties: {
201
+ name: {
202
+ type: string;
203
+ };
204
+ type: {
205
+ type: string;
206
+ };
207
+ counters: {
208
+ type: string;
209
+ additionalProperties: boolean;
210
+ required: never[];
211
+ properties: {
212
+ include: {
213
+ type: string;
214
+ items: {
215
+ type: string;
216
+ };
217
+ };
218
+ exclude: {
219
+ type: string;
220
+ items: {
221
+ type: string;
222
+ };
223
+ };
224
+ };
225
+ };
226
+ context: {
227
+ type: string;
228
+ };
229
+ };
230
+ };
231
+ })[];
232
+ };
155
233
  };
156
234
  };
157
235
  };