@doyourjob/gravity-ui-page-constructor 5.31.285 → 5.31.287
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/build/cjs/blocks/Benchmark/Benchmark.css +3 -16
- package/build/cjs/blocks/Benchmark/Benchmark.js +5 -1
- package/build/cjs/blocks/Benchmark/schema.d.ts +154 -1
- package/build/cjs/blocks/Benchmark/schema.js +8 -1
- package/build/cjs/blocks/Benefits/Benefits.css +3 -16
- package/build/cjs/blocks/Benefits/Benefits.js +5 -1
- package/build/cjs/blocks/Benefits/schema.d.ts +154 -1
- package/build/cjs/blocks/Benefits/schema.js +8 -1
- package/build/cjs/blocks/Header/schema.d.ts +81 -3
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +27 -1
- package/build/cjs/blocks/LogoRotator/LogoRotator.css +4 -17
- package/build/cjs/blocks/LogoRotator/LogoRotator.js +5 -1
- package/build/cjs/blocks/LogoRotator/schema.d.ts +154 -1
- package/build/cjs/blocks/LogoRotator/schema.js +8 -1
- package/build/cjs/blocks/Media/schema.d.ts +54 -2
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +27 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +27 -1
- package/build/cjs/blocks/UnicornCards/UnicornCards.css +3 -16
- package/build/cjs/blocks/UnicornCards/UnicornCards.js +5 -1
- package/build/cjs/blocks/UnicornCards/schema.d.ts +154 -1
- package/build/cjs/blocks/UnicornCards/schema.js +10 -1
- package/build/cjs/blocks/WhatsNew/WhatsNew.css +0 -13
- package/build/cjs/blocks/WhatsNew/WhatsNew.js +5 -1
- package/build/cjs/blocks/WhatsNew/schema.d.ts +2 -5
- package/build/cjs/blocks/WhatsNew/schema.js +10 -1
- package/build/cjs/blocks/index.d.ts +0 -2
- package/build/cjs/blocks/index.js +2 -6
- package/build/cjs/blocks/validators.d.ts +0 -2
- package/build/cjs/blocks/validators.js +0 -2
- package/build/cjs/components/Media/Iframe/Iframe.js +18 -4
- package/build/cjs/components/Media/Iframe/utils.d.ts +2 -0
- package/build/cjs/components/Media/Iframe/utils.js +29 -0
- package/build/cjs/constructor-items.d.ts +0 -2
- package/build/cjs/constructor-items.js +0 -2
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -31
- package/build/cjs/models/constructor-items/blocks.js +0 -2
- package/build/cjs/models/constructor-items/common.d.ts +2 -1
- package/build/cjs/schema/constants.d.ts +29 -3
- package/build/cjs/schema/constants.js +1 -3
- package/build/cjs/schema/validators/blocks.d.ts +0 -2
- package/build/cjs/schema/validators/blocks.js +0 -2
- package/build/cjs/schema/validators/common.d.ts +27 -1
- package/build/cjs/schema/validators/common.js +28 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +27 -1
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +27 -1
- package/build/cjs/text-transform/config.js +31 -8
- package/build/cjs/utils/blocks.js +2 -1
- package/build/esm/blocks/Benchmark/Benchmark.css +3 -16
- package/build/esm/blocks/Benchmark/Benchmark.js +5 -1
- package/build/esm/blocks/Benchmark/schema.d.ts +154 -1
- package/build/esm/blocks/Benchmark/schema.js +9 -2
- package/build/esm/blocks/Benefits/Benefits.css +3 -16
- package/build/esm/blocks/Benefits/Benefits.js +5 -1
- package/build/esm/blocks/Benefits/schema.d.ts +154 -1
- package/build/esm/blocks/Benefits/schema.js +9 -2
- package/build/esm/blocks/Header/schema.d.ts +81 -3
- package/build/esm/blocks/HeaderSlider/schema.d.ts +27 -1
- package/build/esm/blocks/LogoRotator/LogoRotator.css +4 -17
- package/build/esm/blocks/LogoRotator/LogoRotator.js +5 -1
- package/build/esm/blocks/LogoRotator/schema.d.ts +154 -1
- package/build/esm/blocks/LogoRotator/schema.js +9 -2
- package/build/esm/blocks/Media/schema.d.ts +54 -2
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +27 -1
- package/build/esm/blocks/Tabs/schema.d.ts +27 -1
- package/build/esm/blocks/UnicornCards/UnicornCards.css +3 -16
- package/build/esm/blocks/UnicornCards/UnicornCards.js +5 -1
- package/build/esm/blocks/UnicornCards/schema.d.ts +154 -1
- package/build/esm/blocks/UnicornCards/schema.js +11 -2
- package/build/esm/blocks/WhatsNew/WhatsNew.css +0 -13
- package/build/esm/blocks/WhatsNew/WhatsNew.js +5 -1
- package/build/esm/blocks/WhatsNew/schema.d.ts +2 -5
- package/build/esm/blocks/WhatsNew/schema.js +11 -2
- package/build/esm/blocks/index.d.ts +0 -2
- package/build/esm/blocks/index.js +0 -2
- package/build/esm/blocks/validators.d.ts +0 -2
- package/build/esm/blocks/validators.js +0 -2
- package/build/esm/components/Media/Iframe/Iframe.js +18 -4
- package/build/esm/components/Media/Iframe/utils.d.ts +2 -0
- package/build/esm/components/Media/Iframe/utils.js +25 -0
- package/build/esm/constructor-items.d.ts +0 -2
- package/build/esm/constructor-items.js +1 -3
- package/build/esm/models/constructor-items/blocks.d.ts +1 -31
- package/build/esm/models/constructor-items/blocks.js +0 -2
- package/build/esm/models/constructor-items/common.d.ts +2 -1
- package/build/esm/schema/constants.d.ts +29 -3
- package/build/esm/schema/constants.js +2 -4
- package/build/esm/schema/validators/blocks.d.ts +0 -2
- package/build/esm/schema/validators/blocks.js +0 -2
- package/build/esm/schema/validators/common.d.ts +27 -1
- package/build/esm/schema/validators/common.js +28 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +27 -1
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +27 -1
- package/build/esm/text-transform/config.js +31 -8
- package/build/esm/utils/blocks.js +2 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -31
- package/server/models/constructor-items/blocks.js +0 -2
- package/server/models/constructor-items/common.d.ts +2 -1
- package/server/text-transform/config.js +31 -8
- package/server/utils/blocks.js +2 -1
- package/widget/index.js +1 -1
- package/build/cjs/blocks/Advantages/Advantages.css +0 -132
- package/build/cjs/blocks/Advantages/Advantages.d.ts +0 -3
- package/build/cjs/blocks/Advantages/Advantages.js +0 -33
- package/build/cjs/blocks/Advantages/schema.d.ts +0 -53
- package/build/cjs/blocks/Advantages/schema.js +0 -36
- package/build/cjs/blocks/BannerMinify/BannerMinify.css +0 -45
- package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +0 -3
- package/build/cjs/blocks/BannerMinify/BannerMinify.js +0 -24
- package/build/cjs/blocks/BannerMinify/Button/Button.css +0 -28
- package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +0 -3
- package/build/cjs/blocks/BannerMinify/Button/Button.js +0 -15
- package/build/cjs/blocks/BannerMinify/schema.d.ts +0 -182
- package/build/cjs/blocks/BannerMinify/schema.js +0 -36
- package/build/cjs/components/TextNode/TextNode.css +0 -2
- package/build/cjs/components/TextNode/TextNode.d.ts +0 -12
- package/build/cjs/components/TextNode/TextNode.js +0 -16
- package/build/esm/blocks/Advantages/Advantages.css +0 -132
- package/build/esm/blocks/Advantages/Advantages.d.ts +0 -4
- package/build/esm/blocks/Advantages/Advantages.js +0 -29
- package/build/esm/blocks/Advantages/schema.d.ts +0 -53
- package/build/esm/blocks/Advantages/schema.js +0 -33
- package/build/esm/blocks/BannerMinify/BannerMinify.css +0 -45
- package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +0 -4
- package/build/esm/blocks/BannerMinify/BannerMinify.js +0 -20
- package/build/esm/blocks/BannerMinify/Button/Button.css +0 -28
- package/build/esm/blocks/BannerMinify/Button/Button.d.ts +0 -4
- package/build/esm/blocks/BannerMinify/Button/Button.js +0 -11
- package/build/esm/blocks/BannerMinify/schema.d.ts +0 -182
- package/build/esm/blocks/BannerMinify/schema.js +0 -33
- package/build/esm/components/TextNode/TextNode.css +0 -2
- package/build/esm/components/TextNode/TextNode.d.ts +0 -13
- package/build/esm/components/TextNode/TextNode.js +0 -14
|
@@ -4,7 +4,160 @@ export declare const LogoRotatorBlock: {
|
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
|
-
|
|
7
|
+
oneOf: ({
|
|
8
|
+
type: string;
|
|
9
|
+
contentType: string;
|
|
10
|
+
optionName: string;
|
|
11
|
+
} | {
|
|
12
|
+
optionName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
additionalProperties: boolean;
|
|
15
|
+
required: string[];
|
|
16
|
+
properties: {
|
|
17
|
+
text: {
|
|
18
|
+
type: string;
|
|
19
|
+
contentType: string;
|
|
20
|
+
};
|
|
21
|
+
link: {
|
|
22
|
+
type: string;
|
|
23
|
+
additionalProperties: boolean;
|
|
24
|
+
required: string[];
|
|
25
|
+
properties: {
|
|
26
|
+
text: {
|
|
27
|
+
type: string;
|
|
28
|
+
contentType: string;
|
|
29
|
+
};
|
|
30
|
+
url: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
urlTitle: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
arrow: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
theme: {
|
|
40
|
+
type: string;
|
|
41
|
+
enum: string[];
|
|
42
|
+
};
|
|
43
|
+
textSize: {
|
|
44
|
+
type: string;
|
|
45
|
+
enum: string[];
|
|
46
|
+
};
|
|
47
|
+
target: {
|
|
48
|
+
type: string;
|
|
49
|
+
enum: string[];
|
|
50
|
+
};
|
|
51
|
+
analyticsEvents: {
|
|
52
|
+
oneOf: ({
|
|
53
|
+
optionName: string;
|
|
54
|
+
type: string;
|
|
55
|
+
additionalProperties: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
required: string[];
|
|
59
|
+
properties: {
|
|
60
|
+
name: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
type: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
counters: {
|
|
67
|
+
type: string;
|
|
68
|
+
additionalProperties: boolean;
|
|
69
|
+
required: never[];
|
|
70
|
+
properties: {
|
|
71
|
+
include: {
|
|
72
|
+
type: string;
|
|
73
|
+
items: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
exclude: {
|
|
78
|
+
type: string;
|
|
79
|
+
items: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
context: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
items?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
type: string;
|
|
92
|
+
items: {
|
|
93
|
+
type: string;
|
|
94
|
+
additionalProperties: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
required: string[];
|
|
98
|
+
properties: {
|
|
99
|
+
name: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
type: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
counters: {
|
|
106
|
+
type: string;
|
|
107
|
+
additionalProperties: boolean;
|
|
108
|
+
required: never[];
|
|
109
|
+
properties: {
|
|
110
|
+
include: {
|
|
111
|
+
type: string;
|
|
112
|
+
items: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
exclude: {
|
|
117
|
+
type: string;
|
|
118
|
+
items: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
context: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
optionName: string;
|
|
130
|
+
})[];
|
|
131
|
+
};
|
|
132
|
+
type: {};
|
|
133
|
+
when: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
textSize: {
|
|
139
|
+
type: string;
|
|
140
|
+
enum: string[];
|
|
141
|
+
};
|
|
142
|
+
bottomSpace: {
|
|
143
|
+
type: string;
|
|
144
|
+
enum: string[];
|
|
145
|
+
};
|
|
146
|
+
centered: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
url: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
urlTitle: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
resetMargin: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
contentType?: undefined;
|
|
160
|
+
})[];
|
|
8
161
|
};
|
|
9
162
|
text: {
|
|
10
163
|
type: string;
|
|
@@ -15,7 +15,14 @@ exports.LogoRotatorBlock = {
|
|
|
15
15
|
additionalProperties: false,
|
|
16
16
|
required: ['items', 'count'],
|
|
17
17
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
|
|
18
|
-
|
|
18
|
+
oneOf: [
|
|
19
|
+
{
|
|
20
|
+
type: 'string',
|
|
21
|
+
contentType: 'text',
|
|
22
|
+
optionName: 'text',
|
|
23
|
+
},
|
|
24
|
+
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
25
|
+
],
|
|
19
26
|
}, text: {
|
|
20
27
|
type: 'string',
|
|
21
28
|
}, theme: common_1.ThemeProps, items: {
|
|
@@ -299,7 +299,33 @@ export declare const Media: {
|
|
|
299
299
|
type: string;
|
|
300
300
|
};
|
|
301
301
|
height: {
|
|
302
|
-
|
|
302
|
+
oneOf: ({
|
|
303
|
+
type: string;
|
|
304
|
+
optionName: string;
|
|
305
|
+
additionalProperties?: undefined;
|
|
306
|
+
properties?: undefined;
|
|
307
|
+
} | {
|
|
308
|
+
type: string;
|
|
309
|
+
additionalProperties: boolean;
|
|
310
|
+
optionName: string;
|
|
311
|
+
properties: {
|
|
312
|
+
all: {
|
|
313
|
+
type: string;
|
|
314
|
+
};
|
|
315
|
+
sm: {
|
|
316
|
+
type: string;
|
|
317
|
+
};
|
|
318
|
+
md: {
|
|
319
|
+
type: string;
|
|
320
|
+
};
|
|
321
|
+
lg: {
|
|
322
|
+
type: string;
|
|
323
|
+
};
|
|
324
|
+
xl: {
|
|
325
|
+
type: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
})[];
|
|
303
329
|
};
|
|
304
330
|
width: {
|
|
305
331
|
type: string;
|
|
@@ -1178,7 +1204,33 @@ export declare const MediaBlock: {
|
|
|
1178
1204
|
type: string;
|
|
1179
1205
|
};
|
|
1180
1206
|
height: {
|
|
1181
|
-
|
|
1207
|
+
oneOf: ({
|
|
1208
|
+
type: string;
|
|
1209
|
+
optionName: string;
|
|
1210
|
+
additionalProperties?: undefined;
|
|
1211
|
+
properties?: undefined;
|
|
1212
|
+
} | {
|
|
1213
|
+
type: string;
|
|
1214
|
+
additionalProperties: boolean;
|
|
1215
|
+
optionName: string;
|
|
1216
|
+
properties: {
|
|
1217
|
+
all: {
|
|
1218
|
+
type: string;
|
|
1219
|
+
};
|
|
1220
|
+
sm: {
|
|
1221
|
+
type: string;
|
|
1222
|
+
};
|
|
1223
|
+
md: {
|
|
1224
|
+
type: string;
|
|
1225
|
+
};
|
|
1226
|
+
lg: {
|
|
1227
|
+
type: string;
|
|
1228
|
+
};
|
|
1229
|
+
xl: {
|
|
1230
|
+
type: string;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
})[];
|
|
1182
1234
|
};
|
|
1183
1235
|
width: {
|
|
1184
1236
|
type: string;
|
|
@@ -315,7 +315,33 @@ export declare const PromoFeaturesItem: {
|
|
|
315
315
|
type: string;
|
|
316
316
|
};
|
|
317
317
|
height: {
|
|
318
|
-
|
|
318
|
+
oneOf: ({
|
|
319
|
+
type: string;
|
|
320
|
+
optionName: string;
|
|
321
|
+
additionalProperties?: undefined;
|
|
322
|
+
properties?: undefined;
|
|
323
|
+
} | {
|
|
324
|
+
type: string;
|
|
325
|
+
additionalProperties: boolean;
|
|
326
|
+
optionName: string;
|
|
327
|
+
properties: {
|
|
328
|
+
all: {
|
|
329
|
+
type: string;
|
|
330
|
+
};
|
|
331
|
+
sm: {
|
|
332
|
+
type: string;
|
|
333
|
+
};
|
|
334
|
+
md: {
|
|
335
|
+
type: string;
|
|
336
|
+
};
|
|
337
|
+
lg: {
|
|
338
|
+
type: string;
|
|
339
|
+
};
|
|
340
|
+
xl: {
|
|
341
|
+
type: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
})[];
|
|
319
345
|
};
|
|
320
346
|
width: {
|
|
321
347
|
type: string;
|
|
@@ -314,7 +314,33 @@ export declare const tabsItem: {
|
|
|
314
314
|
type: string;
|
|
315
315
|
};
|
|
316
316
|
height: {
|
|
317
|
-
|
|
317
|
+
oneOf: ({
|
|
318
|
+
type: string;
|
|
319
|
+
optionName: string;
|
|
320
|
+
additionalProperties?: undefined;
|
|
321
|
+
properties?: undefined;
|
|
322
|
+
} | {
|
|
323
|
+
type: string;
|
|
324
|
+
additionalProperties: boolean;
|
|
325
|
+
optionName: string;
|
|
326
|
+
properties: {
|
|
327
|
+
all: {
|
|
328
|
+
type: string;
|
|
329
|
+
};
|
|
330
|
+
sm: {
|
|
331
|
+
type: string;
|
|
332
|
+
};
|
|
333
|
+
md: {
|
|
334
|
+
type: string;
|
|
335
|
+
};
|
|
336
|
+
lg: {
|
|
337
|
+
type: string;
|
|
338
|
+
};
|
|
339
|
+
xl: {
|
|
340
|
+
type: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
})[];
|
|
318
344
|
};
|
|
319
345
|
width: {
|
|
320
346
|
type: string;
|
|
@@ -31,25 +31,12 @@ unpredictable css rules order in build */
|
|
|
31
31
|
text-align: initial;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
.pc-unicorn-cards-block__title {
|
|
35
|
-
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
36
|
-
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
37
|
-
margin: 0;
|
|
38
|
-
font-weight: var(--g-text-accent-font-weight);
|
|
39
|
-
color: var(--g-color-text-primary);
|
|
40
|
-
}
|
|
41
|
-
@media (max-width: 769px) {
|
|
42
|
-
.pc-unicorn-cards-block__title {
|
|
43
|
-
font-size: var(--g-text-display-1-font-size, var(--pc-text-display-1-font-size));
|
|
44
|
-
line-height: var(--g-text-display-1-line-height, var(--pc-text-display-1-line-height));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
34
|
.pc-unicorn-cards-block__text {
|
|
48
|
-
font-size:
|
|
49
|
-
line-height:
|
|
35
|
+
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
36
|
+
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
50
37
|
opacity: 0.6;
|
|
51
38
|
}
|
|
52
|
-
@media (max-width:
|
|
39
|
+
@media (max-width: 577px) {
|
|
53
40
|
.pc-unicorn-cards-block__text {
|
|
54
41
|
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
55
42
|
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
@@ -4,6 +4,7 @@ exports.UnicornCardsBlock = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
|
|
7
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
7
8
|
const grid_1 = require("../../grid");
|
|
8
9
|
const utils_1 = require("../../utils");
|
|
9
10
|
const Item_1 = tslib_1.__importDefault(require("./Item/Item"));
|
|
@@ -11,10 +12,13 @@ const b = (0, utils_1.block)('unicorn-cards-block');
|
|
|
11
12
|
const colSizes = { all: 12, xl: 3, lg: 4, md: 6 };
|
|
12
13
|
const UnicornCardsBlock = (props) => {
|
|
13
14
|
const { animated, title, text, items, unicornSdkUrl } = props;
|
|
15
|
+
const titleProps = !title || typeof title === 'string'
|
|
16
|
+
? { text: title, textSize: 'l' }
|
|
17
|
+
: title;
|
|
14
18
|
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), animate: animated },
|
|
15
19
|
react_1.default.createElement("div", { className: b('root') },
|
|
16
20
|
title || text ? (react_1.default.createElement("div", { className: b('head') },
|
|
17
|
-
|
|
21
|
+
react_1.default.createElement(TitleItem_1.default, Object.assign({}, titleProps)),
|
|
18
22
|
text && react_1.default.createElement("div", { className: b('text') }, text))) : null,
|
|
19
23
|
react_1.default.createElement(grid_1.Grid, null,
|
|
20
24
|
react_1.default.createElement(grid_1.Row, { className: b('items') }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement(grid_1.Col, { key: index, sizes: colSizes },
|
|
@@ -4,7 +4,160 @@ export declare const UnicornCardsBlock: {
|
|
|
4
4
|
required: boolean;
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
|
-
|
|
7
|
+
oneOf: ({
|
|
8
|
+
type: string;
|
|
9
|
+
contentType: string;
|
|
10
|
+
optionName: string;
|
|
11
|
+
} | {
|
|
12
|
+
optionName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
additionalProperties: boolean;
|
|
15
|
+
required: string[];
|
|
16
|
+
properties: {
|
|
17
|
+
text: {
|
|
18
|
+
type: string;
|
|
19
|
+
contentType: string;
|
|
20
|
+
};
|
|
21
|
+
link: {
|
|
22
|
+
type: string;
|
|
23
|
+
additionalProperties: boolean;
|
|
24
|
+
required: string[];
|
|
25
|
+
properties: {
|
|
26
|
+
text: {
|
|
27
|
+
type: string;
|
|
28
|
+
contentType: string;
|
|
29
|
+
};
|
|
30
|
+
url: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
urlTitle: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
arrow: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
theme: {
|
|
40
|
+
type: string;
|
|
41
|
+
enum: string[];
|
|
42
|
+
};
|
|
43
|
+
textSize: {
|
|
44
|
+
type: string;
|
|
45
|
+
enum: string[];
|
|
46
|
+
};
|
|
47
|
+
target: {
|
|
48
|
+
type: string;
|
|
49
|
+
enum: string[];
|
|
50
|
+
};
|
|
51
|
+
analyticsEvents: {
|
|
52
|
+
oneOf: ({
|
|
53
|
+
optionName: string;
|
|
54
|
+
type: string;
|
|
55
|
+
additionalProperties: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
required: string[];
|
|
59
|
+
properties: {
|
|
60
|
+
name: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
type: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
counters: {
|
|
67
|
+
type: string;
|
|
68
|
+
additionalProperties: boolean;
|
|
69
|
+
required: never[];
|
|
70
|
+
properties: {
|
|
71
|
+
include: {
|
|
72
|
+
type: string;
|
|
73
|
+
items: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
exclude: {
|
|
78
|
+
type: string;
|
|
79
|
+
items: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
context: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
items?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
type: string;
|
|
92
|
+
items: {
|
|
93
|
+
type: string;
|
|
94
|
+
additionalProperties: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
required: string[];
|
|
98
|
+
properties: {
|
|
99
|
+
name: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
type: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
counters: {
|
|
106
|
+
type: string;
|
|
107
|
+
additionalProperties: boolean;
|
|
108
|
+
required: never[];
|
|
109
|
+
properties: {
|
|
110
|
+
include: {
|
|
111
|
+
type: string;
|
|
112
|
+
items: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
exclude: {
|
|
117
|
+
type: string;
|
|
118
|
+
items: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
context: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
optionName: string;
|
|
130
|
+
})[];
|
|
131
|
+
};
|
|
132
|
+
type: {};
|
|
133
|
+
when: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
textSize: {
|
|
139
|
+
type: string;
|
|
140
|
+
enum: string[];
|
|
141
|
+
};
|
|
142
|
+
bottomSpace: {
|
|
143
|
+
type: string;
|
|
144
|
+
enum: string[];
|
|
145
|
+
};
|
|
146
|
+
centered: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
url: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
urlTitle: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
resetMargin: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
contentType?: undefined;
|
|
160
|
+
})[];
|
|
8
161
|
};
|
|
9
162
|
text: {
|
|
10
163
|
type: string;
|
|
@@ -6,7 +6,16 @@ exports.UnicornCardsBlock = {
|
|
|
6
6
|
'unicorn-cards-block': {
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: false,
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
|
|
10
|
+
oneOf: [
|
|
11
|
+
{
|
|
12
|
+
type: 'string',
|
|
13
|
+
contentType: 'text',
|
|
14
|
+
optionName: 'text',
|
|
15
|
+
},
|
|
16
|
+
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
17
|
+
],
|
|
18
|
+
}, text: { type: 'string' }, unicornSdkUrl: { type: 'string' }, items: {
|
|
10
19
|
type: 'array',
|
|
11
20
|
items: {
|
|
12
21
|
type: 'object',
|
|
@@ -25,19 +25,6 @@ unpredictable css rules order in build */
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
text-align: center;
|
|
27
27
|
}
|
|
28
|
-
.pc-whats-new-block__title {
|
|
29
|
-
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
30
|
-
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
31
|
-
margin: 0;
|
|
32
|
-
font-weight: var(--g-text-accent-font-weight);
|
|
33
|
-
color: var(--g-color-text-primary);
|
|
34
|
-
}
|
|
35
|
-
@media (max-width: 769px) {
|
|
36
|
-
.pc-whats-new-block__title {
|
|
37
|
-
font-size: var(--g-text-display-1-font-size, var(--pc-text-display-1-font-size));
|
|
38
|
-
line-height: var(--g-text-display-1-line-height, var(--pc-text-display-1-line-height));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
28
|
.pc-whats-new-block__footer {
|
|
42
29
|
display: flex;
|
|
43
30
|
justify-content: space-between;
|
|
@@ -3,15 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const components_1 = require("../../components");
|
|
6
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
6
7
|
const NewsCard_1 = tslib_1.__importDefault(require("../../sub-blocks/NewsCard/NewsCard"));
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
8
9
|
const Scroller_1 = tslib_1.__importDefault(require("../Scroller/Scroller"));
|
|
9
10
|
const b = (0, utils_1.block)('whats-new-block');
|
|
10
11
|
const WhatsNew = ({ title, items, footnote, links, animated, infinite, autoScroll, autoScrollInterval, }) => {
|
|
12
|
+
const titleProps = !title || typeof title === 'string'
|
|
13
|
+
? { text: title, textSize: 'l' }
|
|
14
|
+
: title;
|
|
11
15
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
|
|
12
16
|
react_1.default.createElement("div", { className: b('root') },
|
|
13
17
|
title && (react_1.default.createElement("div", { className: b('head') },
|
|
14
|
-
react_1.default.createElement(
|
|
18
|
+
react_1.default.createElement(TitleItem_1.default, Object.assign({}, titleProps)))),
|
|
15
19
|
react_1.default.createElement(Scroller_1.default, { fullWidth: true, infinite: infinite, autoScroll: autoScroll !== null && autoScroll !== void 0 ? autoScroll : true, autoScrollInterval: autoScrollInterval }, items.map((item, index) => (react_1.default.createElement(NewsCard_1.default, Object.assign({ key: index }, item))))),
|
|
16
20
|
(footnote || (links === null || links === void 0 ? void 0 : links.length)) && (react_1.default.createElement("div", { className: b('footer') },
|
|
17
21
|
footnote && react_1.default.createElement("div", { className: b('footnote') }, footnote),
|
|
@@ -68,6 +68,7 @@ export declare const WhatsNewBlock: {
|
|
|
68
68
|
title: {
|
|
69
69
|
oneOf: ({
|
|
70
70
|
type: string;
|
|
71
|
+
contentType: string;
|
|
71
72
|
optionName: string;
|
|
72
73
|
} | {
|
|
73
74
|
optionName: string;
|
|
@@ -217,13 +218,9 @@ export declare const WhatsNewBlock: {
|
|
|
217
218
|
type: string;
|
|
218
219
|
};
|
|
219
220
|
};
|
|
221
|
+
contentType?: undefined;
|
|
220
222
|
})[];
|
|
221
223
|
};
|
|
222
|
-
description: {
|
|
223
|
-
type: string;
|
|
224
|
-
contentType: string;
|
|
225
|
-
inputType: string;
|
|
226
|
-
};
|
|
227
224
|
animated: {
|
|
228
225
|
type: string;
|
|
229
226
|
};
|
|
@@ -7,7 +7,16 @@ exports.WhatsNewBlock = {
|
|
|
7
7
|
'whats-new-block': {
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
required: ['items'],
|
|
10
|
-
properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps),
|
|
10
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
|
|
11
|
+
oneOf: [
|
|
12
|
+
{
|
|
13
|
+
type: 'string',
|
|
14
|
+
contentType: 'text',
|
|
15
|
+
optionName: 'text',
|
|
16
|
+
},
|
|
17
|
+
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
18
|
+
],
|
|
19
|
+
} }), schema_1.ScrollerControlsProps), { items: {
|
|
11
20
|
type: 'array',
|
|
12
21
|
items: {
|
|
13
22
|
type: 'object',
|
|
@@ -9,7 +9,6 @@ export { default as SliderBlock } from './Slider/Slider';
|
|
|
9
9
|
export { default as SliderNewBlock } from './SliderNew/Slider';
|
|
10
10
|
export { default as ExtendedFeaturesBlock } from './ExtendedFeatures/ExtendedFeatures';
|
|
11
11
|
export { default as PromoFeaturesBlock } from './PromoFeaturesBlock/PromoFeaturesBlock';
|
|
12
|
-
export { default as AdvantagesBlock } from './Advantages/Advantages';
|
|
13
12
|
export { default as BenefitsBlock } from './Benefits/Benefits';
|
|
14
13
|
export { default as ScrollerBlock } from './Scroller/Scroller';
|
|
15
14
|
export { default as QuestionsBlock } from './Questions/Questions';
|
|
@@ -23,7 +22,6 @@ export { default as IconsBlock } from './Icons/Icons';
|
|
|
23
22
|
export { default as HeaderSliderBlock } from './HeaderSlider/HeaderSlider';
|
|
24
23
|
export { default as CardLayoutBlock } from './CardLayout/CardLayout';
|
|
25
24
|
export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
|
|
26
|
-
export { default as BannerMinifyBlock } from './BannerMinify/BannerMinify';
|
|
27
25
|
export { default as ShareBlock } from './Share/Share';
|
|
28
26
|
export { default as FilterBlock } from './FilterBlock/FilterBlock';
|
|
29
27
|
export { default as FilterCardLayoutBlock } from './FilterCardLayout/FilterCardLayout';
|