@gravity-ui/page-constructor 1.15.0-alpha.21 → 1.15.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -0
- package/README.md +3 -15
- package/build/cjs/blocks/Banner/schema.d.ts +0 -9
- package/build/cjs/blocks/Banner/schema.js +1 -3
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +78 -0
- package/build/cjs/blocks/Header/schema.d.ts +0 -156
- package/build/cjs/blocks/Header/schema.js +0 -4
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -78
- package/build/cjs/blocks/Info/schema.d.ts +0 -3
- package/build/cjs/blocks/Info/schema.js +0 -2
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.d.ts +1 -2
- package/build/cjs/blocks/Preview/schema.d.ts +0 -3
- package/build/cjs/blocks/Preview/schema.js +1 -3
- package/build/cjs/blocks/Security/schema.d.ts +0 -3
- package/build/cjs/blocks/Security/schema.js +1 -3
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/cjs/blocks/Slider/Slider.css +0 -4
- package/build/cjs/blocks/Tabs/schema.d.ts +78 -0
- package/build/cjs/components/BackLink/BackLink.d.ts +0 -1
- package/build/cjs/components/BackLink/BackLink.js +4 -2
- package/build/cjs/components/Button/Button.js +1 -4
- package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +0 -1
- package/build/cjs/components/CardBase/CardBase.d.ts +2 -4
- package/build/cjs/components/Foldable/Foldable.css +4 -1
- package/build/cjs/components/Foldable/Foldable.js +7 -10
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +8 -6
- package/build/cjs/components/FullscreenMedia/FullScreenMedia.css +70 -0
- package/build/cjs/components/FullscreenMedia/FullScreenMedia.d.ts +9 -0
- package/build/cjs/components/FullscreenMedia/FullScreenMedia.js +40 -0
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +30 -0
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +7 -2
- package/build/cjs/components/HeightCalculator/HeightCalculator.d.ts +4 -0
- package/build/cjs/components/HeightCalculator/HeightCalculator.js +4 -0
- package/build/cjs/components/Link/Link.js +1 -1
- package/build/cjs/components/Media/Media.js +3 -2
- package/build/cjs/components/MetaInfo/MetaInfo.css +13 -0
- package/build/cjs/components/MetaInfo/MetaInfo.d.ts +6 -0
- package/build/cjs/components/MetaInfo/MetaInfo.js +8 -0
- package/build/cjs/components/MetaInfo/schema.d.ts +8 -0
- package/build/cjs/components/MetaInfo/schema.js +10 -0
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.d.ts +1 -0
- package/build/cjs/components/VideoBlock/VideoBlock.js +6 -10
- package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -4
- package/build/cjs/components/YandexForm/YandexForm.js +2 -2
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +5 -1
- package/build/cjs/constructor-items.d.ts +4 -0
- package/build/cjs/constructor-items.js +4 -0
- package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -0
- package/build/cjs/hooks/useHeightCalculator.d.ts +6 -0
- package/build/cjs/hooks/useHeightCalculator.js +27 -0
- package/build/cjs/models/common.d.ts +3 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +0 -10
- package/build/cjs/models/constructor-items/common.d.ts +6 -30
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +18 -7
- package/build/cjs/models/constructor-items/sub-blocks.js +4 -0
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +5 -3
- package/build/cjs/schema/index.js +1 -0
- package/build/cjs/schema/validators/common.d.ts +78 -0
- package/build/cjs/schema/validators/common.js +2 -0
- package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
- package/build/cjs/schema/validators/sub-blocks.js +1 -0
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -3
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +0 -2
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +2 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +14 -9
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +26 -8
- package/build/cjs/sub-blocks/HubspotForm/index.js +5 -3
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +16 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +3 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +21 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +218 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.js +18 -0
- package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +29 -0
- package/build/cjs/sub-blocks/LayoutItem/utils.js +12 -0
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
- package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -3
- package/build/cjs/sub-blocks/Quote/schema.js +1 -3
- package/build/cjs/sub-blocks/index.d.ts +1 -0
- package/build/cjs/sub-blocks/index.js +3 -1
- package/build/cjs/text-transform/blocks.js +17 -0
- package/build/cjs/utils/hubspot.d.ts +2 -1
- package/build/cjs/utils/hubspot.js +5 -1
- package/build/esm/blocks/Banner/schema.d.ts +0 -9
- package/build/esm/blocks/Banner/schema.js +1 -3
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +78 -0
- package/build/esm/blocks/Header/schema.d.ts +0 -156
- package/build/esm/blocks/Header/schema.js +0 -4
- package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -78
- package/build/esm/blocks/Info/schema.d.ts +0 -3
- package/build/esm/blocks/Info/schema.js +0 -2
- package/build/esm/blocks/Preview/MediaContent/MediaContent.d.ts +1 -2
- package/build/esm/blocks/Preview/schema.d.ts +0 -3
- package/build/esm/blocks/Preview/schema.js +1 -3
- package/build/esm/blocks/Security/schema.d.ts +0 -3
- package/build/esm/blocks/Security/schema.js +1 -3
- package/build/esm/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/esm/blocks/Slider/Slider.css +0 -4
- package/build/esm/blocks/Tabs/schema.d.ts +78 -0
- package/build/esm/components/BackLink/BackLink.d.ts +0 -1
- package/build/esm/components/BackLink/BackLink.js +4 -2
- package/build/esm/components/Button/Button.js +1 -4
- package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +0 -1
- package/build/esm/components/CardBase/CardBase.d.ts +2 -4
- package/build/esm/components/Foldable/Foldable.css +4 -1
- package/build/esm/components/Foldable/Foldable.js +8 -11
- package/build/esm/components/FullscreenImage/FullscreenImage.js +9 -7
- package/build/esm/components/FullscreenMedia/FullScreenMedia.css +70 -0
- package/build/esm/components/FullscreenMedia/FullScreenMedia.d.ts +10 -0
- package/build/esm/components/FullscreenMedia/FullScreenMedia.js +38 -0
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +30 -0
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +7 -2
- package/build/esm/components/HeightCalculator/HeightCalculator.d.ts +4 -0
- package/build/esm/components/HeightCalculator/HeightCalculator.js +4 -0
- package/build/esm/components/Link/Link.js +1 -1
- package/build/esm/components/Media/Media.js +3 -2
- package/build/esm/components/MetaInfo/MetaInfo.css +13 -0
- package/build/esm/components/MetaInfo/MetaInfo.d.ts +7 -0
- package/build/esm/components/MetaInfo/MetaInfo.js +6 -0
- package/build/esm/components/MetaInfo/schema.d.ts +8 -0
- package/build/esm/components/MetaInfo/schema.js +8 -0
- package/build/esm/components/ReactPlayer/ReactPlayer.js +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.d.ts +1 -0
- package/build/esm/components/VideoBlock/VideoBlock.js +6 -10
- package/build/esm/components/YandexForm/YandexForm.d.ts +2 -4
- package/build/esm/components/YandexForm/YandexForm.js +2 -2
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/constructor-items.d.ts +4 -0
- package/build/esm/constructor-items.js +5 -1
- package/build/esm/containers/PageConstructor/PageConstructor.css +1 -0
- package/build/esm/hooks/useHeightCalculator.d.ts +6 -0
- package/build/esm/hooks/useHeightCalculator.js +24 -0
- package/build/esm/models/common.d.ts +3 -0
- package/build/esm/models/constructor-items/blocks.d.ts +0 -10
- package/build/esm/models/constructor-items/common.d.ts +6 -30
- package/build/esm/models/constructor-items/sub-blocks.d.ts +18 -7
- package/build/esm/models/constructor-items/sub-blocks.js +4 -0
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +5 -3
- package/build/esm/schema/index.js +1 -0
- package/build/esm/schema/validators/common.d.ts +78 -0
- package/build/esm/schema/validators/common.js +2 -0
- package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
- package/build/esm/schema/validators/sub-blocks.js +1 -0
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -3
- package/build/esm/sub-blocks/BackgroundCard/schema.js +0 -2
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -2
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +14 -9
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js +26 -8
- package/build/esm/sub-blocks/HubspotForm/index.js +5 -3
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +16 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +4 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +20 -0
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +218 -0
- package/build/esm/sub-blocks/LayoutItem/schema.js +14 -0
- package/build/esm/sub-blocks/LayoutItem/utils.d.ts +29 -0
- package/build/esm/sub-blocks/LayoutItem/utils.js +6 -0
- package/build/esm/sub-blocks/Quote/Quote.js +2 -2
- package/build/esm/sub-blocks/Quote/schema.d.ts +0 -3
- package/build/esm/sub-blocks/Quote/schema.js +1 -3
- package/build/esm/sub-blocks/index.d.ts +1 -0
- package/build/esm/sub-blocks/index.js +1 -0
- package/build/esm/text-transform/blocks.js +17 -0
- package/build/esm/utils/hubspot.d.ts +2 -1
- package/build/esm/utils/hubspot.js +5 -1
- package/package.json +5 -2
- package/server/models/common.d.ts +3 -0
- package/server/models/constructor-items/blocks.d.ts +0 -10
- package/server/models/constructor-items/common.d.ts +6 -30
- package/server/models/constructor-items/sub-blocks.d.ts +18 -7
- package/server/models/constructor-items/sub-blocks.js +4 -0
- package/server/text-transform/blocks.js +17 -0
- package/server/utils/hubspot.d.ts +2 -1
- package/server/utils/hubspot.js +5 -1
- package/styles/root.scss +1 -0
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.css +0 -30
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.d.ts +0 -12
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.js +0 -28
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.css +0 -30
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.d.ts +0 -13
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.js +0 -25
|
@@ -41,6 +41,84 @@ export declare const ExtendedFeaturesItem: {
|
|
|
41
41
|
type: string;
|
|
42
42
|
enum: string[];
|
|
43
43
|
};
|
|
44
|
+
analyticsEvents: {
|
|
45
|
+
anyOf: ({
|
|
46
|
+
type: string;
|
|
47
|
+
additionalProperties: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
required: string[];
|
|
51
|
+
properties: {
|
|
52
|
+
name: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
type: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
counters: {
|
|
59
|
+
type: string;
|
|
60
|
+
additionalProperties: boolean;
|
|
61
|
+
required: never[];
|
|
62
|
+
properties: {
|
|
63
|
+
include: {
|
|
64
|
+
type: string;
|
|
65
|
+
items: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
exclude: {
|
|
70
|
+
type: string;
|
|
71
|
+
items: {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
context: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
type: string;
|
|
83
|
+
items: {
|
|
84
|
+
type: string;
|
|
85
|
+
additionalProperties: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
required: string[];
|
|
89
|
+
properties: {
|
|
90
|
+
name: {
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
type: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
counters: {
|
|
97
|
+
type: string;
|
|
98
|
+
additionalProperties: boolean;
|
|
99
|
+
required: never[];
|
|
100
|
+
properties: {
|
|
101
|
+
include: {
|
|
102
|
+
type: string;
|
|
103
|
+
items: {
|
|
104
|
+
type: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
exclude: {
|
|
108
|
+
type: string;
|
|
109
|
+
items: {
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
context: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
})[];
|
|
121
|
+
};
|
|
44
122
|
type: {};
|
|
45
123
|
when: {};
|
|
46
124
|
};
|
|
@@ -274,84 +274,6 @@ export declare const HeaderProperties: {
|
|
|
274
274
|
type: string;
|
|
275
275
|
contentType: string;
|
|
276
276
|
};
|
|
277
|
-
analyticsEvents: {
|
|
278
|
-
anyOf: ({
|
|
279
|
-
type: string;
|
|
280
|
-
additionalProperties: {
|
|
281
|
-
type: string;
|
|
282
|
-
};
|
|
283
|
-
required: string[];
|
|
284
|
-
properties: {
|
|
285
|
-
name: {
|
|
286
|
-
type: string;
|
|
287
|
-
};
|
|
288
|
-
type: {
|
|
289
|
-
type: string;
|
|
290
|
-
};
|
|
291
|
-
counters: {
|
|
292
|
-
type: string;
|
|
293
|
-
additionalProperties: boolean;
|
|
294
|
-
required: never[];
|
|
295
|
-
properties: {
|
|
296
|
-
include: {
|
|
297
|
-
type: string;
|
|
298
|
-
items: {
|
|
299
|
-
type: string;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
exclude: {
|
|
303
|
-
type: string;
|
|
304
|
-
items: {
|
|
305
|
-
type: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
context: {
|
|
311
|
-
type: string;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
} | {
|
|
315
|
-
type: string;
|
|
316
|
-
items: {
|
|
317
|
-
type: string;
|
|
318
|
-
additionalProperties: {
|
|
319
|
-
type: string;
|
|
320
|
-
};
|
|
321
|
-
required: string[];
|
|
322
|
-
properties: {
|
|
323
|
-
name: {
|
|
324
|
-
type: string;
|
|
325
|
-
};
|
|
326
|
-
type: {
|
|
327
|
-
type: string;
|
|
328
|
-
};
|
|
329
|
-
counters: {
|
|
330
|
-
type: string;
|
|
331
|
-
additionalProperties: boolean;
|
|
332
|
-
required: never[];
|
|
333
|
-
properties: {
|
|
334
|
-
include: {
|
|
335
|
-
type: string;
|
|
336
|
-
items: {
|
|
337
|
-
type: string;
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
exclude: {
|
|
341
|
-
type: string;
|
|
342
|
-
items: {
|
|
343
|
-
type: string;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
context: {
|
|
349
|
-
type: string;
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
})[];
|
|
354
|
-
};
|
|
355
277
|
};
|
|
356
278
|
};
|
|
357
279
|
imageSize: {
|
|
@@ -685,84 +607,6 @@ export declare const HeaderBlock: {
|
|
|
685
607
|
type: string;
|
|
686
608
|
contentType: string;
|
|
687
609
|
};
|
|
688
|
-
analyticsEvents: {
|
|
689
|
-
anyOf: ({
|
|
690
|
-
type: string;
|
|
691
|
-
additionalProperties: {
|
|
692
|
-
type: string;
|
|
693
|
-
};
|
|
694
|
-
required: string[];
|
|
695
|
-
properties: {
|
|
696
|
-
name: {
|
|
697
|
-
type: string;
|
|
698
|
-
};
|
|
699
|
-
type: {
|
|
700
|
-
type: string;
|
|
701
|
-
};
|
|
702
|
-
counters: {
|
|
703
|
-
type: string;
|
|
704
|
-
additionalProperties: boolean;
|
|
705
|
-
required: never[];
|
|
706
|
-
properties: {
|
|
707
|
-
include: {
|
|
708
|
-
type: string;
|
|
709
|
-
items: {
|
|
710
|
-
type: string;
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
exclude: {
|
|
714
|
-
type: string;
|
|
715
|
-
items: {
|
|
716
|
-
type: string;
|
|
717
|
-
};
|
|
718
|
-
};
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
context: {
|
|
722
|
-
type: string;
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
|
-
} | {
|
|
726
|
-
type: string;
|
|
727
|
-
items: {
|
|
728
|
-
type: string;
|
|
729
|
-
additionalProperties: {
|
|
730
|
-
type: string;
|
|
731
|
-
};
|
|
732
|
-
required: string[];
|
|
733
|
-
properties: {
|
|
734
|
-
name: {
|
|
735
|
-
type: string;
|
|
736
|
-
};
|
|
737
|
-
type: {
|
|
738
|
-
type: string;
|
|
739
|
-
};
|
|
740
|
-
counters: {
|
|
741
|
-
type: string;
|
|
742
|
-
additionalProperties: boolean;
|
|
743
|
-
required: never[];
|
|
744
|
-
properties: {
|
|
745
|
-
include: {
|
|
746
|
-
type: string;
|
|
747
|
-
items: {
|
|
748
|
-
type: string;
|
|
749
|
-
};
|
|
750
|
-
};
|
|
751
|
-
exclude: {
|
|
752
|
-
type: string;
|
|
753
|
-
items: {
|
|
754
|
-
type: string;
|
|
755
|
-
};
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
};
|
|
759
|
-
context: {
|
|
760
|
-
type: string;
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
};
|
|
764
|
-
})[];
|
|
765
|
-
};
|
|
766
610
|
};
|
|
767
611
|
};
|
|
768
612
|
imageSize: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { VideoProps, withTheme, BlockBaseProps, ButtonBlock, MediaProps, } from '../../schema/validators/common';
|
|
2
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
import { ImageProps } from '../../components/Image/schema';
|
|
4
|
-
import { AnalyticsEventSchema } from '../../schema/validators/event';
|
|
5
4
|
export const HeaderBackgroundProps = {
|
|
6
5
|
type: 'object',
|
|
7
6
|
additionalProperties: false,
|
|
@@ -43,9 +42,6 @@ export const HeaderProperties = {
|
|
|
43
42
|
type: 'string',
|
|
44
43
|
contentType: 'text',
|
|
45
44
|
},
|
|
46
|
-
analyticsEvents: {
|
|
47
|
-
anyOf: [AnalyticsEventSchema, { type: 'array', items: AnalyticsEventSchema }],
|
|
48
|
-
},
|
|
49
45
|
},
|
|
50
46
|
},
|
|
51
47
|
imageSize: {
|
|
@@ -144,84 +144,6 @@ export declare const HeaderSliderBlock: {
|
|
|
144
144
|
type: string;
|
|
145
145
|
contentType: string;
|
|
146
146
|
};
|
|
147
|
-
analyticsEvents: {
|
|
148
|
-
anyOf: ({
|
|
149
|
-
type: string;
|
|
150
|
-
additionalProperties: {
|
|
151
|
-
type: string;
|
|
152
|
-
};
|
|
153
|
-
required: string[];
|
|
154
|
-
properties: {
|
|
155
|
-
name: {
|
|
156
|
-
type: string;
|
|
157
|
-
};
|
|
158
|
-
type: {
|
|
159
|
-
type: string;
|
|
160
|
-
};
|
|
161
|
-
counters: {
|
|
162
|
-
type: string;
|
|
163
|
-
additionalProperties: boolean;
|
|
164
|
-
required: never[];
|
|
165
|
-
properties: {
|
|
166
|
-
include: {
|
|
167
|
-
type: string;
|
|
168
|
-
items: {
|
|
169
|
-
type: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
exclude: {
|
|
173
|
-
type: string;
|
|
174
|
-
items: {
|
|
175
|
-
type: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
context: {
|
|
181
|
-
type: string;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
} | {
|
|
185
|
-
type: string;
|
|
186
|
-
items: {
|
|
187
|
-
type: string;
|
|
188
|
-
additionalProperties: {
|
|
189
|
-
type: string;
|
|
190
|
-
};
|
|
191
|
-
required: string[];
|
|
192
|
-
properties: {
|
|
193
|
-
name: {
|
|
194
|
-
type: string;
|
|
195
|
-
};
|
|
196
|
-
type: {
|
|
197
|
-
type: string;
|
|
198
|
-
};
|
|
199
|
-
counters: {
|
|
200
|
-
type: string;
|
|
201
|
-
additionalProperties: boolean;
|
|
202
|
-
required: never[];
|
|
203
|
-
properties: {
|
|
204
|
-
include: {
|
|
205
|
-
type: string;
|
|
206
|
-
items: {
|
|
207
|
-
type: string;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
exclude: {
|
|
211
|
-
type: string;
|
|
212
|
-
items: {
|
|
213
|
-
type: string;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
context: {
|
|
219
|
-
type: string;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
})[];
|
|
224
|
-
};
|
|
225
147
|
};
|
|
226
148
|
};
|
|
227
149
|
imageSize: {
|
|
@@ -18,8 +18,6 @@ export const InfoBlock = {
|
|
|
18
18
|
}), sectionsTitle: {
|
|
19
19
|
type: 'string',
|
|
20
20
|
contentType: 'text',
|
|
21
|
-
}, context: {
|
|
22
|
-
type: 'string',
|
|
23
21
|
}, buttons: filteredArray(ButtonBlock), theme: ThemeProps, links: filteredArray(LinkProps), leftContent: ContentProps, rightContent: ContentProps }),
|
|
24
22
|
},
|
|
25
23
|
};
|
|
@@ -9,7 +9,6 @@ interface MediaContentProps extends Refable<HTMLDivElement> {
|
|
|
9
9
|
switching: boolean;
|
|
10
10
|
isActiveBlock: (id: number, isMediaBlock?: boolean) => boolean;
|
|
11
11
|
showMediaContent: (id: number) => void;
|
|
12
|
-
context?: string;
|
|
13
12
|
}
|
|
14
|
-
declare const MediaContent: React.ForwardRefExoticComponent<Pick<MediaContentProps, "title" | "
|
|
13
|
+
declare const MediaContent: React.ForwardRefExoticComponent<Pick<MediaContentProps, "title" | "items" | "description" | "ratioMediaContent" | "switching" | "isActiveBlock" | "showMediaContent"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
14
|
export default MediaContent;
|
|
@@ -3,8 +3,8 @@ import { block } from '../../../utils';
|
|
|
3
3
|
import ToggleArrow from '../../../components/ToggleArrow/ToggleArrow';
|
|
4
4
|
import './Arrow.css';
|
|
5
5
|
const b = block('slider-block-arrow');
|
|
6
|
-
const Arrow = ({ type, handleClick, className, size = 16 }) => (React.createElement("div", { className: b({ type }, className)
|
|
7
|
-
React.createElement("button", { className: b('button') },
|
|
6
|
+
const Arrow = ({ type, handleClick, className, size = 16 }) => (React.createElement("div", { className: b({ type }, className) },
|
|
7
|
+
React.createElement("button", { className: b('button'), onClick: () => handleClick && handleClick(type) },
|
|
8
8
|
React.createElement("div", { className: b('icon-wrapper') },
|
|
9
9
|
React.createElement(ToggleArrow, { size: size, type: 'horizontal', iconType: "navigation", className: b('icon') })))));
|
|
10
10
|
export default Arrow;
|
|
@@ -179,11 +179,7 @@ unpredictable css rules order in build */
|
|
|
179
179
|
}
|
|
180
180
|
.pc-SliderBlock_type_media-card .slick-arrow {
|
|
181
181
|
display: none;
|
|
182
|
-
height: 100%;
|
|
183
182
|
width: 64px;
|
|
184
|
-
top: 0;
|
|
185
|
-
}
|
|
186
|
-
.pc-SliderBlock_type_media-card .slick-arrow button {
|
|
187
183
|
top: 50%;
|
|
188
184
|
transform: translate(0, -50%);
|
|
189
185
|
}
|
|
@@ -177,6 +177,84 @@ export declare const tabsItem: {
|
|
|
177
177
|
type: string;
|
|
178
178
|
enum: string[];
|
|
179
179
|
};
|
|
180
|
+
analyticsEvents: {
|
|
181
|
+
anyOf: ({
|
|
182
|
+
type: string;
|
|
183
|
+
additionalProperties: {
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
required: string[];
|
|
187
|
+
properties: {
|
|
188
|
+
name: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
type: {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
counters: {
|
|
195
|
+
type: string;
|
|
196
|
+
additionalProperties: boolean;
|
|
197
|
+
required: never[];
|
|
198
|
+
properties: {
|
|
199
|
+
include: {
|
|
200
|
+
type: string;
|
|
201
|
+
items: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
exclude: {
|
|
206
|
+
type: string;
|
|
207
|
+
items: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
context: {
|
|
214
|
+
type: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
} | {
|
|
218
|
+
type: string;
|
|
219
|
+
items: {
|
|
220
|
+
type: string;
|
|
221
|
+
additionalProperties: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
required: string[];
|
|
225
|
+
properties: {
|
|
226
|
+
name: {
|
|
227
|
+
type: string;
|
|
228
|
+
};
|
|
229
|
+
type: {
|
|
230
|
+
type: string;
|
|
231
|
+
};
|
|
232
|
+
counters: {
|
|
233
|
+
type: string;
|
|
234
|
+
additionalProperties: boolean;
|
|
235
|
+
required: never[];
|
|
236
|
+
properties: {
|
|
237
|
+
include: {
|
|
238
|
+
type: string;
|
|
239
|
+
items: {
|
|
240
|
+
type: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
exclude: {
|
|
244
|
+
type: string;
|
|
245
|
+
items: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
context: {
|
|
252
|
+
type: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
})[];
|
|
257
|
+
};
|
|
180
258
|
type: {};
|
|
181
259
|
when: {};
|
|
182
260
|
};
|
|
@@ -2,16 +2,18 @@ import React, { useCallback, useContext } from 'react';
|
|
|
2
2
|
import { Button, Icon } from '@gravity-ui/uikit';
|
|
3
3
|
import { ArrowSidebar } from '../../icons';
|
|
4
4
|
import { LocationContext } from '../../context/locationContext';
|
|
5
|
+
import { BlockPositionContext } from '../../context/blockPositionContext';
|
|
5
6
|
import { useAnalytics } from '../../hooks';
|
|
6
7
|
import { PredefinedEventTypes } from '../../models';
|
|
7
8
|
const COMPONENT_NAME = 'backlink';
|
|
8
9
|
export default function BackLink(props) {
|
|
9
10
|
const { history } = useContext(LocationContext);
|
|
10
|
-
const { url, title, theme = 'default', size = 'l', className, shouldHandleBackAction = false, onClick,
|
|
11
|
+
const { url, title, theme = 'default', size = 'l', className, shouldHandleBackAction = false, onClick, } = props;
|
|
12
|
+
const context = useContext(BlockPositionContext);
|
|
11
13
|
const handleAnalytics = useAnalytics({
|
|
12
14
|
name: 'back-link-click',
|
|
13
15
|
type: PredefinedEventTypes.Default,
|
|
14
|
-
context: context,
|
|
16
|
+
context: context || COMPONENT_NAME,
|
|
15
17
|
target: url,
|
|
16
18
|
});
|
|
17
19
|
const backActionHandler = useCallback(async () => {
|
|
@@ -5,10 +5,10 @@ import { block, setUrlTld } from '../../utils';
|
|
|
5
5
|
import { PredefinedEventTypes } from '../../models';
|
|
6
6
|
import { toCommonSize, toCommonView } from './utils';
|
|
7
7
|
import { LocaleContext } from '../../context/localeContext/localeContext';
|
|
8
|
+
import { BlockPositionContext } from '../../context/blockPositionContext';
|
|
8
9
|
import { useMetrika } from '../../hooks/useMetrika';
|
|
9
10
|
import { useAnalytics } from '../../hooks';
|
|
10
11
|
import { Github } from '../../icons';
|
|
11
|
-
import { BlockPositionContext } from '../../context/blockPositionContext';
|
|
12
12
|
import './Button.css';
|
|
13
13
|
const COMPONENT_NAME = 'button';
|
|
14
14
|
const b = block('button-block');
|
|
@@ -25,9 +25,6 @@ const Button = (props) => {
|
|
|
25
25
|
target: url,
|
|
26
26
|
}), [context, url]);
|
|
27
27
|
const handleAnalytics = useAnalytics(defaultEvent);
|
|
28
|
-
const blockPosition = useContext(BlockPositionContext);
|
|
29
|
-
// eslint-disable-next-line no-console
|
|
30
|
-
console.log({ blockPosition }, props);
|
|
31
28
|
const onClick = useCallback(() => {
|
|
32
29
|
handleMetrika({ metrikaGoals, pixelEvents });
|
|
33
30
|
handleAnalytics(analyticsEvents);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ReactElement, HTMLAttributeAnchorTarget } from 'react';
|
|
2
2
|
import { ButtonPixel, CardBaseProps as CardBaseParams, ImageProps, MetrikaGoal, WithChildren } from '../../models';
|
|
3
|
-
import {
|
|
3
|
+
import { AnalyticsEventsBase } from '../../models/common';
|
|
4
4
|
import './CardBase.css';
|
|
5
|
-
export interface CardBaseProps extends CardBaseParams {
|
|
5
|
+
export interface CardBaseProps extends AnalyticsEventsBase, CardBaseParams {
|
|
6
6
|
className?: string;
|
|
7
7
|
bodyClassName?: string;
|
|
8
8
|
contentClassName?: string;
|
|
@@ -11,8 +11,6 @@ export interface CardBaseProps extends CardBaseParams {
|
|
|
11
11
|
target?: HTMLAttributeAnchorTarget;
|
|
12
12
|
metrikaGoals?: MetrikaGoal;
|
|
13
13
|
pixelEvents?: ButtonPixel;
|
|
14
|
-
analyticsEvents?: AnalyticsEvent | AnalyticsEvent[];
|
|
15
|
-
context?: string;
|
|
16
14
|
}
|
|
17
15
|
export interface CardHeaderBaseProps {
|
|
18
16
|
className?: string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
|
-
.pc-foldable-
|
|
3
|
+
.pc-foldable-block {
|
|
4
4
|
height: 0;
|
|
5
5
|
overflow-y: hidden;
|
|
6
6
|
transition: height 300ms, margin-bottom 300ms;
|
|
7
|
+
}
|
|
8
|
+
.pc-foldable-block__content-container {
|
|
9
|
+
overflow: auto;
|
|
7
10
|
}
|