@gravity-ui/page-constructor 8.1.2-alpha.1 → 8.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.
Files changed (120) hide show
  1. package/build/cjs/blocks/CardLayout/schema.d.ts +156 -0
  2. package/build/cjs/blocks/ContentLayout/schema.d.ts +78 -0
  3. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +78 -0
  4. package/build/cjs/blocks/FilterBlock/schema.d.ts +156 -0
  5. package/build/cjs/blocks/FoldableList/schema.d.ts +78 -0
  6. package/build/cjs/blocks/Form/schema.d.ts +78 -0
  7. package/build/cjs/blocks/Info/schema.d.ts +156 -0
  8. package/build/cjs/blocks/Map/schema.d.ts +78 -0
  9. package/build/cjs/blocks/Media/schema.d.ts +156 -0
  10. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  11. package/build/cjs/blocks/Questions/schema.d.ts +78 -0
  12. package/build/cjs/blocks/Slider/Slider.d.ts +1 -1
  13. package/build/cjs/blocks/Slider/Slider.js +2 -2
  14. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  15. package/build/cjs/blocks/Slider/schema.d.ts +78 -0
  16. package/build/cjs/blocks/SliderOld/schema.d.ts +78 -0
  17. package/build/cjs/blocks/Tabs/schema.d.ts +156 -0
  18. package/build/cjs/components/Title/TitleItem.d.ts +2 -2
  19. package/build/cjs/components/Title/TitleItem.js +13 -3
  20. package/build/cjs/components/Title/TitleItem.js.map +1 -1
  21. package/build/cjs/constructor-items.d.ts +1 -1
  22. package/build/cjs/demo/ComponentsControls.stories.d.ts +4 -0
  23. package/build/cjs/demo/ComponentsControls.stories.js +34 -0
  24. package/build/cjs/demo/ComponentsControls.stories.js.map +1 -0
  25. package/build/cjs/demo/ComponentsLayout.stories.css +13 -0
  26. package/build/cjs/demo/ComponentsLayout.stories.d.ts +4 -0
  27. package/build/cjs/demo/ComponentsLayout.stories.js +28 -0
  28. package/build/cjs/demo/ComponentsLayout.stories.js.map +1 -0
  29. package/build/cjs/demo/ComponentsText.stories.d.ts +4 -0
  30. package/build/cjs/demo/ComponentsText.stories.js +26 -0
  31. package/build/cjs/demo/ComponentsText.stories.js.map +1 -0
  32. package/build/cjs/demo/ContentAndData.stories.d.ts +8 -0
  33. package/build/cjs/demo/ContentAndData.stories.js +73 -0
  34. package/build/cjs/demo/ContentAndData.stories.js.map +1 -0
  35. package/build/cjs/demo/FeaturesAndCards.stories.d.ts +8 -0
  36. package/build/cjs/demo/FeaturesAndCards.stories.js +112 -0
  37. package/build/cjs/demo/FeaturesAndCards.stories.js.map +1 -0
  38. package/build/cjs/demo/HeroAndMedia.stories.d.ts +8 -0
  39. package/build/cjs/demo/HeroAndMedia.stories.js +58 -0
  40. package/build/cjs/demo/HeroAndMedia.stories.js.map +1 -0
  41. package/build/cjs/demo/InteractiveAndForms.stories.d.ts +8 -0
  42. package/build/cjs/demo/InteractiveAndForms.stories.js +83 -0
  43. package/build/cjs/demo/InteractiveAndForms.stories.js.map +1 -0
  44. package/build/cjs/models/constructor-items/blocks.d.ts +0 -1
  45. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  46. package/build/cjs/models/constructor-items/common.d.ts +1 -1
  47. package/build/cjs/models/constructor-items/common.js.map +1 -1
  48. package/build/cjs/schema/constants.d.ts +234 -0
  49. package/build/cjs/schema/validators/common.d.ts +156 -0
  50. package/build/cjs/schema/validators/common.js +3 -0
  51. package/build/cjs/schema/validators/common.js.map +1 -1
  52. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +78 -0
  53. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +78 -0
  54. package/build/cjs/sub-blocks/Content/schema.d.ts +156 -0
  55. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +78 -0
  56. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  57. package/build/cjs/text-transform/config.d.ts +1 -0
  58. package/build/esm/blocks/CardLayout/schema.d.ts +156 -0
  59. package/build/esm/blocks/ContentLayout/schema.d.ts +78 -0
  60. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +78 -0
  61. package/build/esm/blocks/FilterBlock/schema.d.ts +156 -0
  62. package/build/esm/blocks/FoldableList/schema.d.ts +78 -0
  63. package/build/esm/blocks/Form/schema.d.ts +78 -0
  64. package/build/esm/blocks/Info/schema.d.ts +156 -0
  65. package/build/esm/blocks/Map/schema.d.ts +78 -0
  66. package/build/esm/blocks/Media/schema.d.ts +156 -0
  67. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  68. package/build/esm/blocks/Questions/schema.d.ts +78 -0
  69. package/build/esm/blocks/Slider/Slider.d.ts +1 -1
  70. package/build/esm/blocks/Slider/Slider.js +2 -2
  71. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  72. package/build/esm/blocks/Slider/schema.d.ts +78 -0
  73. package/build/esm/blocks/SliderOld/schema.d.ts +78 -0
  74. package/build/esm/blocks/Tabs/schema.d.ts +156 -0
  75. package/build/esm/components/Title/TitleItem.d.ts +2 -2
  76. package/build/esm/components/Title/TitleItem.js +13 -3
  77. package/build/esm/components/Title/TitleItem.js.map +1 -1
  78. package/build/esm/constructor-items.d.ts +1 -1
  79. package/build/esm/demo/ComponentsControls.stories.d.ts +4 -0
  80. package/build/esm/demo/ComponentsControls.stories.js +29 -0
  81. package/build/esm/demo/ComponentsControls.stories.js.map +1 -0
  82. package/build/esm/demo/ComponentsLayout.stories.css +13 -0
  83. package/build/esm/demo/ComponentsLayout.stories.d.ts +5 -0
  84. package/build/esm/demo/ComponentsLayout.stories.js +24 -0
  85. package/build/esm/demo/ComponentsLayout.stories.js.map +1 -0
  86. package/build/esm/demo/ComponentsText.stories.d.ts +4 -0
  87. package/build/esm/demo/ComponentsText.stories.js +21 -0
  88. package/build/esm/demo/ComponentsText.stories.js.map +1 -0
  89. package/build/esm/demo/ContentAndData.stories.d.ts +8 -0
  90. package/build/esm/demo/ContentAndData.stories.js +69 -0
  91. package/build/esm/demo/ContentAndData.stories.js.map +1 -0
  92. package/build/esm/demo/FeaturesAndCards.stories.d.ts +8 -0
  93. package/build/esm/demo/FeaturesAndCards.stories.js +108 -0
  94. package/build/esm/demo/FeaturesAndCards.stories.js.map +1 -0
  95. package/build/esm/demo/HeroAndMedia.stories.d.ts +8 -0
  96. package/build/esm/demo/HeroAndMedia.stories.js +54 -0
  97. package/build/esm/demo/HeroAndMedia.stories.js.map +1 -0
  98. package/build/esm/demo/InteractiveAndForms.stories.d.ts +8 -0
  99. package/build/esm/demo/InteractiveAndForms.stories.js +79 -0
  100. package/build/esm/demo/InteractiveAndForms.stories.js.map +1 -0
  101. package/build/esm/models/constructor-items/blocks.d.ts +0 -1
  102. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  103. package/build/esm/models/constructor-items/common.d.ts +1 -1
  104. package/build/esm/models/constructor-items/common.js.map +1 -1
  105. package/build/esm/schema/constants.d.ts +234 -0
  106. package/build/esm/schema/validators/common.d.ts +156 -0
  107. package/build/esm/schema/validators/common.js +3 -0
  108. package/build/esm/schema/validators/common.js.map +1 -1
  109. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +78 -0
  110. package/build/esm/sub-blocks/BasicCard/schema.d.ts +78 -0
  111. package/build/esm/sub-blocks/Content/schema.d.ts +156 -0
  112. package/build/esm/sub-blocks/ImageCard/schema.d.ts +78 -0
  113. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  114. package/build/esm/text-transform/config.d.ts +1 -0
  115. package/package.json +1 -1
  116. package/schema/index.js +1 -1
  117. package/server/models/constructor-items/blocks.d.ts +0 -1
  118. package/server/models/constructor-items/common.d.ts +1 -1
  119. package/server/text-transform/config.d.ts +1 -0
  120. package/widget/index.js +1 -1
@@ -81,6 +81,84 @@ export declare const InfoBlock: {
81
81
  resetMargin: {
82
82
  type: string;
83
83
  };
84
+ analyticsEvents: {
85
+ anyOf: ({
86
+ type: string;
87
+ additionalProperties: {
88
+ type: string;
89
+ };
90
+ required: string[];
91
+ properties: {
92
+ name: {
93
+ type: string;
94
+ };
95
+ type: {
96
+ type: string;
97
+ };
98
+ counters: {
99
+ type: string;
100
+ additionalProperties: boolean;
101
+ required: never[];
102
+ properties: {
103
+ include: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ };
108
+ };
109
+ exclude: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ };
114
+ };
115
+ };
116
+ };
117
+ context: {
118
+ type: string;
119
+ };
120
+ };
121
+ } | {
122
+ type: string;
123
+ items: {
124
+ type: string;
125
+ additionalProperties: {
126
+ type: string;
127
+ };
128
+ required: string[];
129
+ properties: {
130
+ name: {
131
+ type: string;
132
+ };
133
+ type: {
134
+ type: string;
135
+ };
136
+ counters: {
137
+ type: string;
138
+ additionalProperties: boolean;
139
+ required: never[];
140
+ properties: {
141
+ include: {
142
+ type: string;
143
+ items: {
144
+ type: string;
145
+ };
146
+ };
147
+ exclude: {
148
+ type: string;
149
+ items: {
150
+ type: string;
151
+ };
152
+ };
153
+ };
154
+ };
155
+ context: {
156
+ type: string;
157
+ };
158
+ };
159
+ };
160
+ })[];
161
+ };
84
162
  };
85
163
  contentType?: undefined;
86
164
  })[];
@@ -183,6 +261,84 @@ export declare const InfoBlock: {
183
261
  resetMargin: {
184
262
  type: string;
185
263
  };
264
+ analyticsEvents: {
265
+ anyOf: ({
266
+ type: string;
267
+ additionalProperties: {
268
+ type: string;
269
+ };
270
+ required: string[];
271
+ properties: {
272
+ name: {
273
+ type: string;
274
+ };
275
+ type: {
276
+ type: string;
277
+ };
278
+ counters: {
279
+ type: string;
280
+ additionalProperties: boolean;
281
+ required: never[];
282
+ properties: {
283
+ include: {
284
+ type: string;
285
+ items: {
286
+ type: string;
287
+ };
288
+ };
289
+ exclude: {
290
+ type: string;
291
+ items: {
292
+ type: string;
293
+ };
294
+ };
295
+ };
296
+ };
297
+ context: {
298
+ type: string;
299
+ };
300
+ };
301
+ } | {
302
+ type: string;
303
+ items: {
304
+ type: string;
305
+ additionalProperties: {
306
+ type: string;
307
+ };
308
+ required: string[];
309
+ properties: {
310
+ name: {
311
+ type: string;
312
+ };
313
+ type: {
314
+ type: string;
315
+ };
316
+ counters: {
317
+ type: string;
318
+ additionalProperties: boolean;
319
+ required: never[];
320
+ properties: {
321
+ include: {
322
+ type: string;
323
+ items: {
324
+ type: string;
325
+ };
326
+ };
327
+ exclude: {
328
+ type: string;
329
+ items: {
330
+ type: string;
331
+ };
332
+ };
333
+ };
334
+ };
335
+ context: {
336
+ type: string;
337
+ };
338
+ };
339
+ };
340
+ })[];
341
+ };
186
342
  };
187
343
  contentType?: undefined;
188
344
  })[];
@@ -413,6 +413,84 @@ export declare const MapBlock: {
413
413
  resetMargin: {
414
414
  type: string;
415
415
  };
416
+ analyticsEvents: {
417
+ anyOf: ({
418
+ type: string;
419
+ additionalProperties: {
420
+ type: string;
421
+ };
422
+ required: string[];
423
+ properties: {
424
+ name: {
425
+ type: string;
426
+ };
427
+ type: {
428
+ type: string;
429
+ };
430
+ counters: {
431
+ type: string;
432
+ additionalProperties: boolean;
433
+ required: never[];
434
+ properties: {
435
+ include: {
436
+ type: string;
437
+ items: {
438
+ type: string;
439
+ };
440
+ };
441
+ exclude: {
442
+ type: string;
443
+ items: {
444
+ type: string;
445
+ };
446
+ };
447
+ };
448
+ };
449
+ context: {
450
+ type: string;
451
+ };
452
+ };
453
+ } | {
454
+ type: string;
455
+ items: {
456
+ type: string;
457
+ additionalProperties: {
458
+ type: string;
459
+ };
460
+ required: string[];
461
+ properties: {
462
+ name: {
463
+ type: string;
464
+ };
465
+ type: {
466
+ type: string;
467
+ };
468
+ counters: {
469
+ type: string;
470
+ additionalProperties: boolean;
471
+ required: never[];
472
+ properties: {
473
+ include: {
474
+ type: string;
475
+ items: {
476
+ type: string;
477
+ };
478
+ };
479
+ exclude: {
480
+ type: string;
481
+ items: {
482
+ type: string;
483
+ };
484
+ };
485
+ };
486
+ };
487
+ context: {
488
+ type: string;
489
+ };
490
+ };
491
+ };
492
+ })[];
493
+ };
416
494
  };
417
495
  contentType?: undefined;
418
496
  })[];
@@ -529,6 +529,84 @@ export declare const MediaBlockBaseProps: {
529
529
  resetMargin: {
530
530
  type: string;
531
531
  };
532
+ analyticsEvents: {
533
+ anyOf: ({
534
+ type: string;
535
+ additionalProperties: {
536
+ type: string;
537
+ };
538
+ required: string[];
539
+ properties: {
540
+ name: {
541
+ type: string;
542
+ };
543
+ type: {
544
+ type: string;
545
+ };
546
+ counters: {
547
+ type: string;
548
+ additionalProperties: boolean;
549
+ required: never[];
550
+ properties: {
551
+ include: {
552
+ type: string;
553
+ items: {
554
+ type: string;
555
+ };
556
+ };
557
+ exclude: {
558
+ type: string;
559
+ items: {
560
+ type: string;
561
+ };
562
+ };
563
+ };
564
+ };
565
+ context: {
566
+ type: string;
567
+ };
568
+ };
569
+ } | {
570
+ type: string;
571
+ items: {
572
+ type: string;
573
+ additionalProperties: {
574
+ type: string;
575
+ };
576
+ required: string[];
577
+ properties: {
578
+ name: {
579
+ type: string;
580
+ };
581
+ type: {
582
+ type: string;
583
+ };
584
+ counters: {
585
+ type: string;
586
+ additionalProperties: boolean;
587
+ required: never[];
588
+ properties: {
589
+ include: {
590
+ type: string;
591
+ items: {
592
+ type: string;
593
+ };
594
+ };
595
+ exclude: {
596
+ type: string;
597
+ items: {
598
+ type: string;
599
+ };
600
+ };
601
+ };
602
+ };
603
+ context: {
604
+ type: string;
605
+ };
606
+ };
607
+ };
608
+ })[];
609
+ };
532
610
  };
533
611
  contentType?: undefined;
534
612
  })[];
@@ -1181,6 +1259,84 @@ export declare const MediaBlock: {
1181
1259
  resetMargin: {
1182
1260
  type: string;
1183
1261
  };
1262
+ analyticsEvents: {
1263
+ anyOf: ({
1264
+ type: string;
1265
+ additionalProperties: {
1266
+ type: string;
1267
+ };
1268
+ required: string[];
1269
+ properties: {
1270
+ name: {
1271
+ type: string;
1272
+ };
1273
+ type: {
1274
+ type: string;
1275
+ };
1276
+ counters: {
1277
+ type: string;
1278
+ additionalProperties: boolean;
1279
+ required: never[];
1280
+ properties: {
1281
+ include: {
1282
+ type: string;
1283
+ items: {
1284
+ type: string;
1285
+ };
1286
+ };
1287
+ exclude: {
1288
+ type: string;
1289
+ items: {
1290
+ type: string;
1291
+ };
1292
+ };
1293
+ };
1294
+ };
1295
+ context: {
1296
+ type: string;
1297
+ };
1298
+ };
1299
+ } | {
1300
+ type: string;
1301
+ items: {
1302
+ type: string;
1303
+ additionalProperties: {
1304
+ type: string;
1305
+ };
1306
+ required: string[];
1307
+ properties: {
1308
+ name: {
1309
+ type: string;
1310
+ };
1311
+ type: {
1312
+ type: string;
1313
+ };
1314
+ counters: {
1315
+ type: string;
1316
+ additionalProperties: boolean;
1317
+ required: never[];
1318
+ properties: {
1319
+ include: {
1320
+ type: string;
1321
+ items: {
1322
+ type: string;
1323
+ };
1324
+ };
1325
+ exclude: {
1326
+ type: string;
1327
+ items: {
1328
+ type: string;
1329
+ };
1330
+ };
1331
+ };
1332
+ };
1333
+ context: {
1334
+ type: string;
1335
+ };
1336
+ };
1337
+ };
1338
+ })[];
1339
+ };
1184
1340
  };
1185
1341
  contentType?: undefined;
1186
1342
  })[];
@@ -375,6 +375,84 @@ export declare const PromoFeaturesBlock: {
375
375
  resetMargin: {
376
376
  type: string;
377
377
  };
378
+ analyticsEvents: {
379
+ anyOf: ({
380
+ type: string;
381
+ additionalProperties: {
382
+ type: string;
383
+ };
384
+ required: string[];
385
+ properties: {
386
+ name: {
387
+ type: string;
388
+ };
389
+ type: {
390
+ type: string;
391
+ };
392
+ counters: {
393
+ type: string;
394
+ additionalProperties: boolean;
395
+ required: never[];
396
+ properties: {
397
+ include: {
398
+ type: string;
399
+ items: {
400
+ type: string;
401
+ };
402
+ };
403
+ exclude: {
404
+ type: string;
405
+ items: {
406
+ type: string;
407
+ };
408
+ };
409
+ };
410
+ };
411
+ context: {
412
+ type: string;
413
+ };
414
+ };
415
+ } | {
416
+ type: string;
417
+ items: {
418
+ type: string;
419
+ additionalProperties: {
420
+ type: string;
421
+ };
422
+ required: string[];
423
+ properties: {
424
+ name: {
425
+ type: string;
426
+ };
427
+ type: {
428
+ type: string;
429
+ };
430
+ counters: {
431
+ type: string;
432
+ additionalProperties: boolean;
433
+ required: never[];
434
+ properties: {
435
+ include: {
436
+ type: string;
437
+ items: {
438
+ type: string;
439
+ };
440
+ };
441
+ exclude: {
442
+ type: string;
443
+ items: {
444
+ type: string;
445
+ };
446
+ };
447
+ };
448
+ };
449
+ context: {
450
+ type: string;
451
+ };
452
+ };
453
+ };
454
+ })[];
455
+ };
378
456
  };
379
457
  })[];
380
458
  };
@@ -42,6 +42,84 @@ export declare const QuestionsBlock: {
42
42
  resetMargin: {
43
43
  type: string;
44
44
  };
45
+ analyticsEvents: {
46
+ anyOf: ({
47
+ type: string;
48
+ additionalProperties: {
49
+ type: string;
50
+ };
51
+ required: string[];
52
+ properties: {
53
+ name: {
54
+ type: string;
55
+ };
56
+ type: {
57
+ type: string;
58
+ };
59
+ counters: {
60
+ type: string;
61
+ additionalProperties: boolean;
62
+ required: never[];
63
+ properties: {
64
+ include: {
65
+ type: string;
66
+ items: {
67
+ type: string;
68
+ };
69
+ };
70
+ exclude: {
71
+ type: string;
72
+ items: {
73
+ type: string;
74
+ };
75
+ };
76
+ };
77
+ };
78
+ context: {
79
+ type: string;
80
+ };
81
+ };
82
+ } | {
83
+ type: string;
84
+ items: {
85
+ type: string;
86
+ additionalProperties: {
87
+ type: string;
88
+ };
89
+ required: string[];
90
+ properties: {
91
+ name: {
92
+ type: string;
93
+ };
94
+ type: {
95
+ type: string;
96
+ };
97
+ counters: {
98
+ type: string;
99
+ additionalProperties: boolean;
100
+ required: never[];
101
+ properties: {
102
+ include: {
103
+ type: string;
104
+ items: {
105
+ type: string;
106
+ };
107
+ };
108
+ exclude: {
109
+ type: string;
110
+ items: {
111
+ type: string;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ context: {
117
+ type: string;
118
+ };
119
+ };
120
+ };
121
+ })[];
122
+ };
45
123
  };
46
124
  contentType?: undefined;
47
125
  })[];
@@ -13,5 +13,5 @@ export interface SliderProps extends Omit<SliderParams, 'children'>, Partial<Pic
13
13
  arrowSize?: number;
14
14
  initialSlide?: number;
15
15
  }
16
- export declare const SliderBlock: ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, initialSlide, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, centeredSlides, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: React.PropsWithChildren<SliderProps>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const SliderBlock: ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, initialSlide, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: React.PropsWithChildren<SliderProps>) => import("react/jsx-runtime").JSX.Element;
17
17
  export default SliderBlock;
@@ -19,7 +19,7 @@ const i18n_1 = require("./i18n/index.js");
19
19
  const useSlider_1 = require("./useSlider.js");
20
20
  const useSliderPagination_1 = require("./useSliderPagination.js");
21
21
  const b = (0, utils_1.block)('SliderBlock');
22
- const SliderBlock = ({ animated, title, description, type, anchorId, arrows = true, adaptive, autoplay: autoplayMs, dots = true, initialSlide = 0, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, centeredSlides, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }) => {
22
+ const SliderBlock = ({ animated, title, description, type, anchorId, arrows = true, adaptive, autoplay: autoplayMs, dots = true, initialSlide = 0, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }) => {
23
23
  const { autoplay, isLocked, childrenCount, breakpoints, onSwiper, onPrev, onNext, setIsLocked } = (0, useSlider_1.useSlider)({
24
24
  slidesToShow,
25
25
  children,
@@ -44,7 +44,7 @@ const SliderBlock = ({ animated, title, description, type, anchorId, arrows = tr
44
44
  arrows,
45
45
  'without-dots': !dots || isLocked,
46
46
  type,
47
- }, blockClassName), children: [anchorId && (0, jsx_runtime_1.jsx)(Anchor_1.default, { id: anchorId }), (0, jsx_runtime_1.jsx)(Title_1.default, { title: title, subtitle: description, className: b('header', { 'no-description': !description }) }), (0, jsx_runtime_1.jsxs)(AnimateBlock_1.default, { className: b('animate-slides'), animate: animated, children: [(0, jsx_runtime_1.jsx)(react_1.Swiper, { modules: [modules_1.Autoplay, modules_1.A11y, modules_1.Pagination], className: b('slider', className), onSwiper: onSwiper, speed: 1000, autoplay: autoplay, autoHeight: adaptive, initialSlide: initialSlide, noSwiping: false, centeredSlides: centeredSlides, breakpoints: breakpoints, onSlideChange: onSlideChange, onSlideChangeTransitionStart: onSlideChangeTransitionStart, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onActiveIndexChange: onActiveIndexChange, onBreakpoint: onBreakpoint, onLock: () => setIsLocked(true), onUnlock: () => setIsLocked(false), watchOverflow: true, watchSlidesProgress: true, touchStartPreventDefault: false, touchAngle: 45, threshold: 10, longSwipes: true, longSwipesRatio: 0.5, resistance: true, resistanceRatio: 0.5, a11y: {
47
+ }, blockClassName), children: [anchorId && (0, jsx_runtime_1.jsx)(Anchor_1.default, { id: anchorId }), (0, jsx_runtime_1.jsx)(Title_1.default, { title: title, subtitle: description, className: b('header', { 'no-description': !description }) }), (0, jsx_runtime_1.jsxs)(AnimateBlock_1.default, { className: b('animate-slides'), animate: animated, children: [(0, jsx_runtime_1.jsx)(react_1.Swiper, { modules: [modules_1.Autoplay, modules_1.A11y, modules_1.Pagination], className: b('slider', className), onSwiper: onSwiper, speed: 1000, autoplay: autoplay, autoHeight: adaptive, initialSlide: initialSlide, noSwiping: false, breakpoints: breakpoints, onSlideChange: onSlideChange, onSlideChangeTransitionStart: onSlideChangeTransitionStart, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onActiveIndexChange: onActiveIndexChange, onBreakpoint: onBreakpoint, onLock: () => setIsLocked(true), onUnlock: () => setIsLocked(false), watchOverflow: true, watchSlidesProgress: true, touchStartPreventDefault: false, touchAngle: 45, threshold: 10, longSwipes: true, longSwipesRatio: 0.5, resistance: true, resistanceRatio: 0.5, a11y: {
48
48
  slideLabelMessage: '',
49
49
  paginationBulletMessage: (0, i18n_1.i18n)('dot-label', { index: '{{index}}' }),
50
50
  }, ...paginationProps, children: React.Children.map(children, (elem, index) => ((0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { className: b('slide'), children: ({ isVisible }) => ((0, jsx_runtime_1.jsx)("div", { className: b('slide-item'), "aria-hidden": !isA11yControlHidden && !isVisible, children: elem })) }, index))) }), arrows && !isLocked && ((0, jsx_runtime_1.jsx)(React.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { "aria-hidden": isA11yControlHidden, children: [(0, jsx_runtime_1.jsx)(Arrow_1.default, { className: b('arrow', { prev: true }), type: "left", transparent: type === models_1.SliderType.HeaderCard, onClick: onPrev, size: arrowSize, extraProps: { tabIndex: controlTabIndex } }), (0, jsx_runtime_1.jsx)(Arrow_1.default, { className: b('arrow', { next: true }), type: "right", transparent: type === models_1.SliderType.HeaderCard, onClick: onNext, size: arrowSize, extraProps: { tabIndex: controlTabIndex } })] }) })), (0, jsx_runtime_1.jsx)("div", { className: b('footer'), children: disclaimer ? ((0, jsx_runtime_1.jsx)("div", { className: b('disclaimer', { size: disclaimer?.size || 'm' }), children: disclaimer?.text })) : null })] })] }));