@gravity-ui/page-constructor 4.47.0-beta.0 → 4.47.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/README.md +2 -2
- package/build/cjs/blocks/CardLayout/CardLayout.css +277 -0
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -1
- package/build/cjs/blocks/CardLayout/schema.d.ts +134 -62
- package/build/cjs/blocks/CardLayout/schema.js +6 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +123 -65
- package/build/cjs/blocks/ContentLayout/schema.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
- package/build/cjs/blocks/Header/schema.d.ts +3 -33
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +1 -11
- package/build/cjs/blocks/Map/Map.css +14 -0
- package/build/cjs/blocks/Map/Map.d.ts +1 -1
- package/build/cjs/blocks/Map/Map.js +9 -2
- package/build/cjs/blocks/Map/schema.d.ts +4 -0
- package/build/cjs/blocks/Media/Media.css +14 -0
- package/build/cjs/blocks/Media/Media.js +8 -2
- package/build/cjs/blocks/Media/schema.d.ts +16 -22
- package/build/cjs/blocks/Media/schema.js +9 -2
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +1 -11
- package/build/cjs/blocks/Slider/Slider.css +270 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +1 -11
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/cjs/components/Image/schema.d.ts +102 -1
- package/build/cjs/components/Image/schema.js +9 -3
- package/build/cjs/components/Map/GoogleMap.js +2 -2
- package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
- package/build/cjs/components/Media/Iframe/Iframe.css +4 -0
- package/build/cjs/components/Media/Iframe/Iframe.js +4 -64
- package/build/cjs/components/MediaBase/MediaBase.css +6 -0
- package/build/cjs/components/MediaBase/MediaBase.js +2 -2
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/editor/data/templates/banner-block.json +1 -2
- package/build/cjs/editor/data/templates/card-layout-block.json +3 -3
- package/build/cjs/editor/data/templates/companies-block.json +3 -9
- package/build/cjs/editor/data/templates/extended-features-block.json +3 -6
- package/build/cjs/editor/data/templates/filter-block.json +3 -3
- package/build/cjs/editor/data/templates/form-block.json +1 -1
- package/build/cjs/editor/data/templates/header-slider-block.json +2 -12
- package/build/cjs/editor/data/templates/icons-block.json +5 -5
- package/build/cjs/editor/data/templates/media-block.json +1 -4
- package/build/cjs/editor/data/templates/promo-features-block.json +5 -5
- package/build/cjs/editor/data/templates/slider-block.json +5 -5
- package/build/cjs/editor/data/templates/tabs-block.json +9 -42
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
- package/build/cjs/models/constructor-items/common.d.ts +12 -5
- package/build/cjs/schema/constants.d.ts +2 -12
- package/build/cjs/schema/validators/common.d.ts +5 -11
- package/build/cjs/schema/validators/common.js +7 -10
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1 -11
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +1 -11
- package/build/cjs/utils/borderSelector.d.ts +7 -0
- package/build/cjs/utils/borderSelector.js +18 -0
- package/build/esm/blocks/CardLayout/CardLayout.css +277 -0
- package/build/esm/blocks/CardLayout/CardLayout.js +3 -1
- package/build/esm/blocks/CardLayout/schema.d.ts +134 -62
- package/build/esm/blocks/CardLayout/schema.js +8 -3
- package/build/esm/blocks/ContentLayout/schema.d.ts +123 -65
- package/build/esm/blocks/ContentLayout/schema.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
- package/build/esm/blocks/Header/schema.d.ts +3 -33
- package/build/esm/blocks/HeaderSlider/schema.d.ts +1 -11
- package/build/esm/blocks/Map/Map.css +14 -0
- package/build/esm/blocks/Map/Map.d.ts +2 -1
- package/build/esm/blocks/Map/Map.js +10 -2
- package/build/esm/blocks/Map/schema.d.ts +4 -0
- package/build/esm/blocks/Media/Media.css +14 -0
- package/build/esm/blocks/Media/Media.d.ts +1 -0
- package/build/esm/blocks/Media/Media.js +10 -3
- package/build/esm/blocks/Media/schema.d.ts +16 -22
- package/build/esm/blocks/Media/schema.js +9 -2
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +1 -11
- package/build/esm/blocks/Slider/Slider.css +270 -0
- package/build/esm/blocks/Tabs/schema.d.ts +1 -11
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/esm/components/Image/schema.d.ts +102 -1
- package/build/esm/components/Image/schema.js +8 -2
- package/build/esm/components/Map/GoogleMap.js +2 -2
- package/build/esm/components/Map/YMap/YandexMap.js +2 -2
- package/build/esm/components/Media/Iframe/Iframe.css +4 -0
- package/build/esm/components/Media/Iframe/Iframe.js +4 -64
- package/build/esm/components/MediaBase/MediaBase.css +6 -0
- package/build/esm/components/MediaBase/MediaBase.js +2 -2
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/editor/data/templates/banner-block.json +1 -2
- package/build/esm/editor/data/templates/card-layout-block.json +3 -3
- package/build/esm/editor/data/templates/companies-block.json +3 -9
- package/build/esm/editor/data/templates/extended-features-block.json +3 -6
- package/build/esm/editor/data/templates/filter-block.json +3 -3
- package/build/esm/editor/data/templates/form-block.json +1 -1
- package/build/esm/editor/data/templates/header-slider-block.json +2 -12
- package/build/esm/editor/data/templates/icons-block.json +5 -5
- package/build/esm/editor/data/templates/media-block.json +1 -4
- package/build/esm/editor/data/templates/promo-features-block.json +5 -5
- package/build/esm/editor/data/templates/slider-block.json +5 -5
- package/build/esm/editor/data/templates/tabs-block.json +9 -42
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +6 -5
- package/build/esm/models/constructor-items/common.d.ts +12 -5
- package/build/esm/schema/constants.d.ts +2 -12
- package/build/esm/schema/validators/common.d.ts +5 -11
- package/build/esm/schema/validators/common.js +6 -9
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1 -11
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +1 -11
- package/build/esm/utils/borderSelector.d.ts +7 -0
- package/build/esm/utils/borderSelector.js +14 -0
- package/package.json +2 -4
- package/server/models/constructor-items/blocks.d.ts +6 -5
- package/server/models/constructor-items/common.d.ts +12 -5
- package/styles/mixins.scss +30 -10
- package/widget/index.js +1 -1
- package/build/cjs/editor/data/templates/preview-block.json +0 -38
- package/build/cjs/editor/data/templates/security-block.json +0 -36
- package/build/cjs/editor/data/templates/simple-block.json +0 -7
- package/build/esm/editor/data/templates/preview-block.json +0 -38
- package/build/esm/editor/data/templates/security-block.json +0 -36
- package/build/esm/editor/data/templates/simple-block.json +0 -7
|
@@ -238,6 +238,276 @@ unpredictable css rules order in build */
|
|
|
238
238
|
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(9), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(9) {
|
|
239
239
|
transition-delay: 0.9s;
|
|
240
240
|
}
|
|
241
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(10), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(10) {
|
|
242
|
+
transition-delay: 1s;
|
|
243
|
+
}
|
|
244
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(11), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(11) {
|
|
245
|
+
transition-delay: 1.1s;
|
|
246
|
+
}
|
|
247
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(12), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(12) {
|
|
248
|
+
transition-delay: 1.2s;
|
|
249
|
+
}
|
|
250
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(13), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(13) {
|
|
251
|
+
transition-delay: 1.3s;
|
|
252
|
+
}
|
|
253
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(14), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(14) {
|
|
254
|
+
transition-delay: 1.4s;
|
|
255
|
+
}
|
|
256
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(15), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(15) {
|
|
257
|
+
transition-delay: 1.5s;
|
|
258
|
+
}
|
|
259
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(16), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(16) {
|
|
260
|
+
transition-delay: 1.6s;
|
|
261
|
+
}
|
|
262
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(17), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(17) {
|
|
263
|
+
transition-delay: 1.7s;
|
|
264
|
+
}
|
|
265
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(18), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(18) {
|
|
266
|
+
transition-delay: 1.8s;
|
|
267
|
+
}
|
|
268
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(19), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(19) {
|
|
269
|
+
transition-delay: 1.9s;
|
|
270
|
+
}
|
|
271
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(20), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(20) {
|
|
272
|
+
transition-delay: 2s;
|
|
273
|
+
}
|
|
274
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(21), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(21) {
|
|
275
|
+
transition-delay: 2.1s;
|
|
276
|
+
}
|
|
277
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(22), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(22) {
|
|
278
|
+
transition-delay: 2.2s;
|
|
279
|
+
}
|
|
280
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(23), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(23) {
|
|
281
|
+
transition-delay: 2.3s;
|
|
282
|
+
}
|
|
283
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(24), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(24) {
|
|
284
|
+
transition-delay: 2.4s;
|
|
285
|
+
}
|
|
286
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(25), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(25) {
|
|
287
|
+
transition-delay: 2.5s;
|
|
288
|
+
}
|
|
289
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(26), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(26) {
|
|
290
|
+
transition-delay: 2.6s;
|
|
291
|
+
}
|
|
292
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(27), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(27) {
|
|
293
|
+
transition-delay: 2.7s;
|
|
294
|
+
}
|
|
295
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(28), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(28) {
|
|
296
|
+
transition-delay: 2.8s;
|
|
297
|
+
}
|
|
298
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(29), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(29) {
|
|
299
|
+
transition-delay: 2.9s;
|
|
300
|
+
}
|
|
301
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(30), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(30) {
|
|
302
|
+
transition-delay: 3s;
|
|
303
|
+
}
|
|
304
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(31), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(31) {
|
|
305
|
+
transition-delay: 3.1s;
|
|
306
|
+
}
|
|
307
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(32), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(32) {
|
|
308
|
+
transition-delay: 3.2s;
|
|
309
|
+
}
|
|
310
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(33), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(33) {
|
|
311
|
+
transition-delay: 3.3s;
|
|
312
|
+
}
|
|
313
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(34), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(34) {
|
|
314
|
+
transition-delay: 3.4s;
|
|
315
|
+
}
|
|
316
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(35), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(35) {
|
|
317
|
+
transition-delay: 3.5s;
|
|
318
|
+
}
|
|
319
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(36), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(36) {
|
|
320
|
+
transition-delay: 3.6s;
|
|
321
|
+
}
|
|
322
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(37), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(37) {
|
|
323
|
+
transition-delay: 3.7s;
|
|
324
|
+
}
|
|
325
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(38), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(38) {
|
|
326
|
+
transition-delay: 3.8s;
|
|
327
|
+
}
|
|
328
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(39), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(39) {
|
|
329
|
+
transition-delay: 3.9s;
|
|
330
|
+
}
|
|
331
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(40), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(40) {
|
|
332
|
+
transition-delay: 4s;
|
|
333
|
+
}
|
|
334
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(41), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(41) {
|
|
335
|
+
transition-delay: 4.1s;
|
|
336
|
+
}
|
|
337
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(42), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(42) {
|
|
338
|
+
transition-delay: 4.2s;
|
|
339
|
+
}
|
|
340
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(43), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(43) {
|
|
341
|
+
transition-delay: 4.3s;
|
|
342
|
+
}
|
|
343
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(44), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(44) {
|
|
344
|
+
transition-delay: 4.4s;
|
|
345
|
+
}
|
|
346
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(45), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(45) {
|
|
347
|
+
transition-delay: 4.5s;
|
|
348
|
+
}
|
|
349
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(46), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(46) {
|
|
350
|
+
transition-delay: 4.6s;
|
|
351
|
+
}
|
|
352
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(47), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(47) {
|
|
353
|
+
transition-delay: 4.7s;
|
|
354
|
+
}
|
|
355
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(48), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(48) {
|
|
356
|
+
transition-delay: 4.8s;
|
|
357
|
+
}
|
|
358
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(49), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(49) {
|
|
359
|
+
transition-delay: 4.9s;
|
|
360
|
+
}
|
|
361
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(50), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(50) {
|
|
362
|
+
transition-delay: 5s;
|
|
363
|
+
}
|
|
364
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(51), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(51) {
|
|
365
|
+
transition-delay: 5.1s;
|
|
366
|
+
}
|
|
367
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(52), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(52) {
|
|
368
|
+
transition-delay: 5.2s;
|
|
369
|
+
}
|
|
370
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(53), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(53) {
|
|
371
|
+
transition-delay: 5.3s;
|
|
372
|
+
}
|
|
373
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(54), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(54) {
|
|
374
|
+
transition-delay: 5.4s;
|
|
375
|
+
}
|
|
376
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(55), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(55) {
|
|
377
|
+
transition-delay: 5.5s;
|
|
378
|
+
}
|
|
379
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(56), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(56) {
|
|
380
|
+
transition-delay: 5.6s;
|
|
381
|
+
}
|
|
382
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(57), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(57) {
|
|
383
|
+
transition-delay: 5.7s;
|
|
384
|
+
}
|
|
385
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(58), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(58) {
|
|
386
|
+
transition-delay: 5.8s;
|
|
387
|
+
}
|
|
388
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(59), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(59) {
|
|
389
|
+
transition-delay: 5.9s;
|
|
390
|
+
}
|
|
391
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(60), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(60) {
|
|
392
|
+
transition-delay: 6s;
|
|
393
|
+
}
|
|
394
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(61), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(61) {
|
|
395
|
+
transition-delay: 6.1s;
|
|
396
|
+
}
|
|
397
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(62), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(62) {
|
|
398
|
+
transition-delay: 6.2s;
|
|
399
|
+
}
|
|
400
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(63), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(63) {
|
|
401
|
+
transition-delay: 6.3s;
|
|
402
|
+
}
|
|
403
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(64), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(64) {
|
|
404
|
+
transition-delay: 6.4s;
|
|
405
|
+
}
|
|
406
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(65), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(65) {
|
|
407
|
+
transition-delay: 6.5s;
|
|
408
|
+
}
|
|
409
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(66), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(66) {
|
|
410
|
+
transition-delay: 6.6s;
|
|
411
|
+
}
|
|
412
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(67), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(67) {
|
|
413
|
+
transition-delay: 6.7s;
|
|
414
|
+
}
|
|
415
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(68), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(68) {
|
|
416
|
+
transition-delay: 6.8s;
|
|
417
|
+
}
|
|
418
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(69), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(69) {
|
|
419
|
+
transition-delay: 6.9s;
|
|
420
|
+
}
|
|
421
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(70), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(70) {
|
|
422
|
+
transition-delay: 7s;
|
|
423
|
+
}
|
|
424
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(71), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(71) {
|
|
425
|
+
transition-delay: 7.1s;
|
|
426
|
+
}
|
|
427
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(72), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(72) {
|
|
428
|
+
transition-delay: 7.2s;
|
|
429
|
+
}
|
|
430
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(73), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(73) {
|
|
431
|
+
transition-delay: 7.3s;
|
|
432
|
+
}
|
|
433
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(74), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(74) {
|
|
434
|
+
transition-delay: 7.4s;
|
|
435
|
+
}
|
|
436
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(75), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(75) {
|
|
437
|
+
transition-delay: 7.5s;
|
|
438
|
+
}
|
|
439
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(76), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(76) {
|
|
440
|
+
transition-delay: 7.6s;
|
|
441
|
+
}
|
|
442
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(77), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(77) {
|
|
443
|
+
transition-delay: 7.7s;
|
|
444
|
+
}
|
|
445
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(78), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(78) {
|
|
446
|
+
transition-delay: 7.8s;
|
|
447
|
+
}
|
|
448
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(79), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(79) {
|
|
449
|
+
transition-delay: 7.9s;
|
|
450
|
+
}
|
|
451
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(80), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(80) {
|
|
452
|
+
transition-delay: 8s;
|
|
453
|
+
}
|
|
454
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(81), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(81) {
|
|
455
|
+
transition-delay: 8.1s;
|
|
456
|
+
}
|
|
457
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(82), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(82) {
|
|
458
|
+
transition-delay: 8.2s;
|
|
459
|
+
}
|
|
460
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(83), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(83) {
|
|
461
|
+
transition-delay: 8.3s;
|
|
462
|
+
}
|
|
463
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(84), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(84) {
|
|
464
|
+
transition-delay: 8.4s;
|
|
465
|
+
}
|
|
466
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(85), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(85) {
|
|
467
|
+
transition-delay: 8.5s;
|
|
468
|
+
}
|
|
469
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(86), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(86) {
|
|
470
|
+
transition-delay: 8.6s;
|
|
471
|
+
}
|
|
472
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(87), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(87) {
|
|
473
|
+
transition-delay: 8.7s;
|
|
474
|
+
}
|
|
475
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(88), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(88) {
|
|
476
|
+
transition-delay: 8.8s;
|
|
477
|
+
}
|
|
478
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(89), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(89) {
|
|
479
|
+
transition-delay: 8.9s;
|
|
480
|
+
}
|
|
481
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(90), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(90) {
|
|
482
|
+
transition-delay: 9s;
|
|
483
|
+
}
|
|
484
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(91), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(91) {
|
|
485
|
+
transition-delay: 9.1s;
|
|
486
|
+
}
|
|
487
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(92), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(92) {
|
|
488
|
+
transition-delay: 9.2s;
|
|
489
|
+
}
|
|
490
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(93), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(93) {
|
|
491
|
+
transition-delay: 9.3s;
|
|
492
|
+
}
|
|
493
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(94), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(94) {
|
|
494
|
+
transition-delay: 9.4s;
|
|
495
|
+
}
|
|
496
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(95), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(95) {
|
|
497
|
+
transition-delay: 9.5s;
|
|
498
|
+
}
|
|
499
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(96), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(96) {
|
|
500
|
+
transition-delay: 9.6s;
|
|
501
|
+
}
|
|
502
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(97), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(97) {
|
|
503
|
+
transition-delay: 9.7s;
|
|
504
|
+
}
|
|
505
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(98), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(98) {
|
|
506
|
+
transition-delay: 9.8s;
|
|
507
|
+
}
|
|
508
|
+
.pc-SliderBlock__animate-slides.pc-AnimateBlock.animate .slick-slide:nth-child(99), .pc-AnimateBlock .pc-SliderBlock__animate-slides.animate .slick-slide:nth-child(99) {
|
|
509
|
+
transition-delay: 9.9s;
|
|
510
|
+
}
|
|
241
511
|
}
|
|
242
512
|
.pc-SliderBlock_type_media-card {
|
|
243
513
|
padding: 0;
|
|
@@ -271,20 +271,10 @@ export declare const tabsItem: {
|
|
|
271
271
|
type: string;
|
|
272
272
|
};
|
|
273
273
|
height: {
|
|
274
|
-
oneOf: ({
|
|
275
|
-
type: string;
|
|
276
|
-
enum?: undefined;
|
|
277
|
-
} | {
|
|
278
|
-
type: string;
|
|
279
|
-
enum: string[];
|
|
280
|
-
})[];
|
|
281
|
-
};
|
|
282
|
-
width: {
|
|
283
274
|
type: string;
|
|
284
275
|
};
|
|
285
|
-
|
|
276
|
+
width: {
|
|
286
277
|
type: string;
|
|
287
|
-
enum: string[];
|
|
288
278
|
};
|
|
289
279
|
};
|
|
290
280
|
};
|
|
@@ -23,7 +23,7 @@ const BalancedMasonry = (props) => {
|
|
|
23
23
|
}
|
|
24
24
|
for (const [rawWidth, columnCount] of breakpoints) {
|
|
25
25
|
const width = Number(rawWidth);
|
|
26
|
-
if (document.body.clientWidth <= width) {
|
|
26
|
+
if ((document === null || document === void 0 ? void 0 : document.body.clientWidth) <= width) {
|
|
27
27
|
result = columnCount;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -25,10 +25,46 @@ export declare const ImageDeviceProps: {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const ImageBaseObjectProps: {
|
|
29
29
|
type: string;
|
|
30
30
|
additionalProperties: boolean;
|
|
31
|
+
properties: {
|
|
32
|
+
src: {
|
|
33
|
+
type: string;
|
|
34
|
+
pattern: string;
|
|
35
|
+
};
|
|
36
|
+
style: {
|
|
37
|
+
type: string;
|
|
38
|
+
additionalProperties: boolean;
|
|
39
|
+
required: never[];
|
|
40
|
+
properties: {
|
|
41
|
+
backgroundColor: {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
height: {
|
|
45
|
+
type: string[];
|
|
46
|
+
};
|
|
47
|
+
width: {
|
|
48
|
+
type: string[];
|
|
49
|
+
};
|
|
50
|
+
color: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
alt: {
|
|
56
|
+
type: string;
|
|
57
|
+
contentType: string;
|
|
58
|
+
};
|
|
59
|
+
disableCompress: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare const ImageObjectProps: {
|
|
31
65
|
required: string[];
|
|
66
|
+
type: string;
|
|
67
|
+
additionalProperties: boolean;
|
|
32
68
|
properties: {
|
|
33
69
|
src: {
|
|
34
70
|
type: string;
|
|
@@ -76,3 +112,68 @@ export declare const ImageProps: {
|
|
|
76
112
|
optionName: string;
|
|
77
113
|
})[];
|
|
78
114
|
};
|
|
115
|
+
export declare const BackgroundImageProps: {
|
|
116
|
+
anyOf: ({
|
|
117
|
+
optionName: string;
|
|
118
|
+
type: string;
|
|
119
|
+
additionalProperties: boolean;
|
|
120
|
+
properties: {
|
|
121
|
+
src: {
|
|
122
|
+
type: string;
|
|
123
|
+
pattern: string;
|
|
124
|
+
};
|
|
125
|
+
style: {
|
|
126
|
+
type: string;
|
|
127
|
+
additionalProperties: boolean;
|
|
128
|
+
required: never[];
|
|
129
|
+
properties: {
|
|
130
|
+
backgroundColor: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
height: {
|
|
134
|
+
type: string[];
|
|
135
|
+
};
|
|
136
|
+
width: {
|
|
137
|
+
type: string[];
|
|
138
|
+
};
|
|
139
|
+
color: {
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
alt: {
|
|
145
|
+
type: string;
|
|
146
|
+
contentType: string;
|
|
147
|
+
};
|
|
148
|
+
disableCompress: {
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
} | {
|
|
153
|
+
optionName: string;
|
|
154
|
+
type: string;
|
|
155
|
+
additionalProperties: boolean;
|
|
156
|
+
required: string[];
|
|
157
|
+
properties: {
|
|
158
|
+
desktop: {
|
|
159
|
+
type: string;
|
|
160
|
+
pattern: string;
|
|
161
|
+
};
|
|
162
|
+
tablet: {
|
|
163
|
+
type: string;
|
|
164
|
+
pattern: string;
|
|
165
|
+
};
|
|
166
|
+
mobile: {
|
|
167
|
+
type: string;
|
|
168
|
+
pattern: string;
|
|
169
|
+
};
|
|
170
|
+
alt: {
|
|
171
|
+
type: string;
|
|
172
|
+
contentType: string;
|
|
173
|
+
};
|
|
174
|
+
disableCompress: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
})[];
|
|
179
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageProps = exports.ImageObjectProps = exports.ImageDeviceProps = exports.imageUrlPattern = void 0;
|
|
3
|
+
exports.BackgroundImageProps = exports.ImageProps = exports.ImageObjectProps = exports.ImageBaseObjectProps = exports.ImageDeviceProps = exports.imageUrlPattern = void 0;
|
|
4
4
|
const utils_1 = require("../../schema/validators/utils");
|
|
5
5
|
exports.imageUrlPattern = '^((http[s]?|ftp):\\/)?\\/?([^:\\/\\s]+)((\\/\\w+)*\\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$';
|
|
6
6
|
const ImageBase = {
|
|
@@ -35,15 +35,15 @@ exports.ImageDeviceProps = {
|
|
|
35
35
|
pattern: exports.imageUrlPattern,
|
|
36
36
|
} }),
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
38
|
+
exports.ImageBaseObjectProps = {
|
|
39
39
|
type: 'object',
|
|
40
40
|
additionalProperties: false,
|
|
41
|
-
required: ['src'],
|
|
42
41
|
properties: Object.assign(Object.assign({}, ImageBase), { src: {
|
|
43
42
|
type: 'string',
|
|
44
43
|
pattern: exports.imageUrlPattern,
|
|
45
44
|
}, style: StyleBase }),
|
|
46
45
|
};
|
|
46
|
+
exports.ImageObjectProps = Object.assign(Object.assign({}, exports.ImageBaseObjectProps), { required: ['src'] });
|
|
47
47
|
exports.ImageProps = {
|
|
48
48
|
oneOf: [
|
|
49
49
|
{
|
|
@@ -55,3 +55,9 @@ exports.ImageProps = {
|
|
|
55
55
|
(0, utils_1.filteredItem)(Object.assign(Object.assign({}, exports.ImageDeviceProps), { optionName: 'device options' })),
|
|
56
56
|
],
|
|
57
57
|
};
|
|
58
|
+
exports.BackgroundImageProps = {
|
|
59
|
+
anyOf: [
|
|
60
|
+
Object.assign(Object.assign({}, exports.ImageBaseObjectProps), { optionName: 'options' }),
|
|
61
|
+
Object.assign(Object.assign({}, exports.ImageDeviceProps), { optionName: 'device options' }),
|
|
62
|
+
],
|
|
63
|
+
};
|
|
@@ -15,7 +15,7 @@ function getScriptSrc(params) {
|
|
|
15
15
|
return `${scriptSrc}?key=${apiKey}&language=${lang}${zoom ? '&zoom=' + zoom : ''}&q=${encodeURI(address)}`;
|
|
16
16
|
}
|
|
17
17
|
const GoogleMap = (props) => {
|
|
18
|
-
const { address, zoom } = props;
|
|
18
|
+
const { address, zoom, className } = props;
|
|
19
19
|
const { apiKey, scriptSrc } = (0, react_1.useContext)(mapsContext_1.MapsContext);
|
|
20
20
|
const { lang = configure_1.Lang.Ru } = (0, react_1.useContext)(localeContext_1.LocaleContext);
|
|
21
21
|
const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
|
|
@@ -37,7 +37,7 @@ const GoogleMap = (props) => {
|
|
|
37
37
|
if (!apiKey || !address) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
-
return (react_1.default.createElement("iframe", { className: b(), ref: ref, style: {
|
|
40
|
+
return (react_1.default.createElement("iframe", { className: b(null, className), ref: ref, style: {
|
|
41
41
|
height,
|
|
42
42
|
}, title: "Google Map", loading: "lazy", allowFullScreen: true, referrerPolicy: "no-referrer-when-downgrade", src: src }));
|
|
43
43
|
};
|
|
@@ -21,7 +21,7 @@ const DEFAULT_ZOOM = 9;
|
|
|
21
21
|
// The real center of the map will be calculated later, using the coordinates of the markers
|
|
22
22
|
const INITIAL_CENTER = [0, 0];
|
|
23
23
|
const YandexMap = (props) => {
|
|
24
|
-
const { markers, zoom, id } = props;
|
|
24
|
+
const { markers, zoom, id, className } = props;
|
|
25
25
|
const { apiKey, scriptSrc, nonce } = (0, react_1.useContext)(mapsContext_1.MapsContext);
|
|
26
26
|
const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
|
|
27
27
|
const { lang = 'ru' } = (0, react_1.useContext)(localeContext_1.LocaleContext);
|
|
@@ -75,7 +75,7 @@ const YandexMap = (props) => {
|
|
|
75
75
|
return null;
|
|
76
76
|
return (react_1.default.createElement(ErrorWrapper_1.default, { isError: YandexMapApiLoader_1.YMapsApiLoader.status === YandexMapApiLoader_1.MapApiStatus.Error, text: (0, i18n_1.default)('map-load-error'), buttonText: (0, i18n_1.default)('map-try-again'), handler: onTryAgain, className: b('wrapper') },
|
|
77
77
|
react_1.default.createElement("div", { className: b('wrapper') },
|
|
78
|
-
react_1.default.createElement("div", { id: containerId, className: b({ hidden: !ready }), ref: ref, style: { height } }),
|
|
78
|
+
react_1.default.createElement("div", { id: containerId, className: b({ hidden: !ready }, className), ref: ref, style: { height } }),
|
|
79
79
|
loading ? react_1.default.createElement(uikit_1.Spin, { size: "xl", className: b('spinner') }) : null)));
|
|
80
80
|
};
|
|
81
81
|
exports.default = YandexMap;
|
|
@@ -1,74 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.
|
|
5
|
-
const uuid_1 = require("uuid");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
5
|
const utils_1 = require("../../../utils");
|
|
7
6
|
const i18n_1 = tslib_1.__importDefault(require("./i18n"));
|
|
8
7
|
const b = (0, utils_1.block)('media-component-iframe');
|
|
9
8
|
const Iframe = (props) => {
|
|
10
9
|
const { iframe, margins = true } = props;
|
|
11
|
-
const { height = 400, src, width
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const { current: iframeId } = (0, react_1.useRef)((0, uuid_1.v4)());
|
|
15
|
-
const updateIframe = (0, react_1.useCallback)((container) => {
|
|
16
|
-
if (iframeRef.current) {
|
|
17
|
-
iframeRef.current.src = src;
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
const iframeWidth = typeof width === 'number' ? `${width}px` : width;
|
|
21
|
-
let iframeHeight = typeof height === 'number' ? `${height}px` : height;
|
|
22
|
-
if (height === 'auto') {
|
|
23
|
-
iframeHeight = undefined;
|
|
24
|
-
}
|
|
25
|
-
iframeRef.current = document.createElement('iframe');
|
|
26
|
-
iframeRef.current.src = src;
|
|
27
|
-
iframeRef.current.id = iframeId;
|
|
28
|
-
iframeRef.current.name = name || iframeId;
|
|
29
|
-
iframeRef.current.setAttribute('loading', 'lazy');
|
|
30
|
-
iframeRef.current.setAttribute('title', title || (0, i18n_1.default)('iframe-title'));
|
|
31
|
-
iframeRef.current.frameBorder = '0';
|
|
32
|
-
iframeRef.current.scrolling = 'no';
|
|
33
|
-
iframeRef.current.width = iframeWidth;
|
|
34
|
-
iframeRef.current.style.width = iframeWidth;
|
|
35
|
-
if (iframeHeight) {
|
|
36
|
-
iframeRef.current.style.height = iframeHeight;
|
|
37
|
-
}
|
|
38
|
-
container.appendChild(iframeRef.current);
|
|
39
|
-
}
|
|
40
|
-
}, [src, width, iframeId, name, title, height]);
|
|
41
|
-
const handleMessage = (0, react_1.useCallback)(({ data }) => {
|
|
42
|
-
if (height !== 'auto' && typeof height === 'number' && iframeRef.current) {
|
|
43
|
-
iframeRef.current.height = `${height}px`;
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
const parsed = JSON.parse(data);
|
|
48
|
-
const iframeHeight = parsed['iframe-height'];
|
|
49
|
-
const { message, name: iframeName } = parsed;
|
|
50
|
-
if (iframeName !== name && iframeName !== iframeId) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (iframeRef.current && iframeHeight && !message) {
|
|
54
|
-
iframeRef.current.height = `${iframeHeight}px`;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
}, [height, iframeId, name]);
|
|
61
|
-
const addIframe = (0, react_1.useCallback)(() => {
|
|
62
|
-
const container = formContainerRef.current;
|
|
63
|
-
if (container) {
|
|
64
|
-
updateIframe(container);
|
|
65
|
-
window.addEventListener('message', handleMessage, { passive: true });
|
|
66
|
-
}
|
|
67
|
-
}, [updateIframe, handleMessage]);
|
|
68
|
-
(0, react_1.useEffect)(() => {
|
|
69
|
-
addIframe();
|
|
70
|
-
return () => window.removeEventListener('message', handleMessage);
|
|
71
|
-
}, [addIframe, handleMessage]);
|
|
72
|
-
return iframe ? (react_1.default.createElement("div", { className: b({ margins }), ref: formContainerRef, style: { height, textAlign: justifyContent } })) : null;
|
|
10
|
+
const { height = 400, src, width, name, title } = iframe;
|
|
11
|
+
return iframe ? (react_1.default.createElement("div", { className: b({ margins }), style: { height } },
|
|
12
|
+
react_1.default.createElement("iframe", { className: b('item'), loading: "lazy", title: title || (0, i18n_1.default)('iframe-title'), frameBorder: 0, src: src, width: width, height: height, name: name }))) : null;
|
|
73
13
|
};
|
|
74
14
|
exports.default = Iframe;
|
|
@@ -14,6 +14,12 @@ unpredictable css rules order in build */
|
|
|
14
14
|
overflow-x: hidden;
|
|
15
15
|
border-radius: var(--pc-border-radius);
|
|
16
16
|
}
|
|
17
|
+
.pc-media-base__card_specialBorderRadius img,
|
|
18
|
+
.pc-media-base__card_specialBorderRadius video,
|
|
19
|
+
.pc-media-base__card_specialBorderRadius iframe,
|
|
20
|
+
.pc-media-base__card_specialBorderRadius .pc-map {
|
|
21
|
+
border-radius: calc(var(--pc-border-radius) - 1px);
|
|
22
|
+
}
|
|
17
23
|
.pc-media-base__row_reverse {
|
|
18
24
|
flex-direction: row-reverse;
|
|
19
25
|
}
|
|
@@ -11,7 +11,7 @@ const MediaBaseContent_1 = tslib_1.__importDefault(require("./MediaBaseContent")
|
|
|
11
11
|
const b = (0, utils_1.block)('media-base');
|
|
12
12
|
const Card = () => null;
|
|
13
13
|
const MediaBase = (props) => {
|
|
14
|
-
const { children, largeMedia, direction = 'content-media', mobileDirection = 'content-media', animated, mediaOnly,
|
|
14
|
+
const { children, largeMedia, direction = 'content-media', mobileDirection = 'content-media', animated, mediaOnly, onScroll, mediaOnlyColSizes = { all: 12, md: 8 } } = props, mediaContentProps = tslib_1.__rest(props, ["children", "largeMedia", "direction", "mobileDirection", "animated", "mediaOnly", "onScroll", "mediaOnlyColSizes"]);
|
|
15
15
|
const { title, description } = mediaContentProps;
|
|
16
16
|
const mediaSizes = (0, react_1.useMemo)(() => {
|
|
17
17
|
return mediaOnly
|
|
@@ -32,7 +32,7 @@ const MediaBase = (props) => {
|
|
|
32
32
|
}) },
|
|
33
33
|
react_1.default.createElement(grid_1.Col, { className: b('content'), sizes: contentSizes }, mediaContent),
|
|
34
34
|
card ? (react_1.default.createElement(grid_1.Col, { sizes: mediaSizes },
|
|
35
|
-
react_1.default.createElement("div",
|
|
35
|
+
react_1.default.createElement("div", null, card))) : null))));
|
|
36
36
|
};
|
|
37
37
|
exports.MediaBase = MediaBase;
|
|
38
38
|
exports.MediaBase.Card = Card;
|
|
@@ -15,7 +15,7 @@ export declare const blockMap: {
|
|
|
15
15
|
"card-layout-block": import("react").FC<import("./blocks/CardLayout/CardLayout").CardLayoutBlockProps>;
|
|
16
16
|
"content-layout-block": (props: import("./models").ContentLayoutBlockProps) => JSX.Element;
|
|
17
17
|
"share-block": ({ items, title }: import("./models").ShareBlockProps) => JSX.Element;
|
|
18
|
-
"map-block": ({ map, ...props }: import("./models").MapBlockProps) => JSX.Element;
|
|
18
|
+
"map-block": ({ map, border, disableShadow, ...props }: import("./models").MapBlockProps) => JSX.Element;
|
|
19
19
|
"filter-block": import("react").FC<import("./models").FilterBlockProps>;
|
|
20
20
|
"form-block": import("react").FC<import("./models").FormBlockProps>;
|
|
21
21
|
};
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
6
6
|
"subtitle": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
|
|
7
7
|
"image": {
|
|
8
|
-
"light": "
|
|
9
|
-
"dark": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
|
|
8
|
+
"light": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGQBAMAAACkCxkHAAAAKlBMVEX////P1uT09vrt7/Xh5e7W3Ojn6/La4Or8/f75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