@gravity-ui/page-constructor 8.19.0 → 8.20.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/build/cjs/blocks/Banner/schema.d.ts +3 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +529 -195
- package/build/cjs/blocks/CardLayout/schema.js +12 -13
- package/build/cjs/blocks/CardLayout/schema.js.map +1 -1
- package/build/cjs/blocks/Companies/schema.d.ts +88 -3
- package/build/cjs/blocks/Companies/schema.js +5 -20
- package/build/cjs/blocks/Companies/schema.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +258 -194
- package/build/cjs/blocks/ContentLayout/schema.js +1 -1
- package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +311 -39
- package/build/cjs/blocks/ExtendedFeatures/schema.js +18 -19
- package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/cjs/blocks/Footer/schema.d.ts +3 -6
- package/build/cjs/blocks/Form/schema.d.ts +197 -15
- package/build/cjs/blocks/Form/schema.js +15 -3
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +461 -206
- package/build/cjs/blocks/Header/schema.js +18 -2
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +150 -71
- package/build/cjs/blocks/Hero/schema.d.ts +19 -437
- package/build/cjs/blocks/Hero/schema.js +12 -3
- package/build/cjs/blocks/Hero/schema.js.map +1 -1
- package/build/cjs/blocks/Icons/Icons.js.map +1 -1
- package/build/cjs/blocks/Icons/schema.js +1 -1
- package/build/cjs/blocks/Icons/schema.js.map +1 -1
- package/build/cjs/blocks/Info/schema.d.ts +49 -1
- package/build/cjs/blocks/Info/schema.js +2 -2
- package/build/cjs/blocks/Info/schema.js.map +1 -1
- package/build/cjs/blocks/Map/schema.d.ts +7 -2
- package/build/cjs/blocks/Map/schema.js +1 -1
- package/build/cjs/blocks/Map/schema.js.map +1 -1
- package/build/cjs/blocks/Media/schema.d.ts +20 -9
- package/build/cjs/blocks/Media/schema.js +15 -2
- package/build/cjs/blocks/Media/schema.js.map +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
- package/build/cjs/blocks/Table/schema.d.ts +1 -0
- package/build/cjs/blocks/Table/schema.js +1 -0
- package/build/cjs/blocks/Table/schema.js.map +1 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +7 -6
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/Tabs/schema.js.map +1 -1
- package/build/cjs/components/Author/schema.d.ts +1 -2
- package/build/cjs/components/Image/schema.d.ts +33 -8
- package/build/cjs/components/Image/schema.js +22 -22
- package/build/cjs/components/Image/schema.js.map +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +1 -1
- package/build/cjs/models/constructor-items/common.js.map +1 -1
- package/build/cjs/navigation/schema.d.ts +1 -2
- package/build/cjs/navigation/schema.js +1 -0
- package/build/cjs/navigation/schema.js.map +1 -1
- package/build/cjs/schema/constants.d.ts +940 -29
- package/build/cjs/schema/constants.js +36 -40
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/validators/common.d.ts +11 -8
- package/build/cjs/schema/validators/common.js +10 -6
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +82 -2
- package/build/cjs/sub-blocks/BasicCard/schema.js +15 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/schema.d.ts +2 -5
- package/build/cjs/sub-blocks/Content/schema.js +1 -8
- package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +33 -17
- package/build/cjs/sub-blocks/ImageCard/schema.js +8 -1
- package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1023 -312
- package/build/cjs/sub-blocks/LayoutItem/schema.js +40 -9
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +2 -4
- package/build/cjs/sub-blocks/PriceCard/schema.d.ts +5 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/schema.d.ts +164 -6
- package/build/cjs/sub-blocks/Quote/schema.js +2 -0
- package/build/cjs/sub-blocks/Quote/schema.js.map +1 -1
- package/build/docs/blocks/Hero.md +15 -15
- package/build/docs/blocks/Icons.md +2 -2
- package/build/docs/blocks/Media.md +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +3 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +529 -195
- package/build/esm/blocks/CardLayout/schema.js +14 -15
- package/build/esm/blocks/CardLayout/schema.js.map +1 -1
- package/build/esm/blocks/Companies/schema.d.ts +88 -3
- package/build/esm/blocks/Companies/schema.js +5 -21
- package/build/esm/blocks/Companies/schema.js.map +1 -1
- package/build/esm/blocks/ContentLayout/schema.d.ts +258 -194
- package/build/esm/blocks/ContentLayout/schema.js +2 -2
- package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +311 -39
- package/build/esm/blocks/ExtendedFeatures/schema.js +17 -18
- package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/esm/blocks/Footer/schema.d.ts +3 -6
- package/build/esm/blocks/Form/schema.d.ts +197 -15
- package/build/esm/blocks/Form/schema.js +17 -5
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +446 -191
- package/build/esm/blocks/Header/schema.js +19 -3
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +150 -71
- package/build/esm/blocks/Hero/schema.d.ts +19 -437
- package/build/esm/blocks/Hero/schema.js +12 -3
- package/build/esm/blocks/Hero/schema.js.map +1 -1
- package/build/esm/blocks/Icons/Icons.js.map +1 -1
- package/build/esm/blocks/Icons/schema.js +1 -1
- package/build/esm/blocks/Icons/schema.js.map +1 -1
- package/build/esm/blocks/Info/schema.d.ts +49 -1
- package/build/esm/blocks/Info/schema.js +3 -3
- package/build/esm/blocks/Info/schema.js.map +1 -1
- package/build/esm/blocks/Map/schema.d.ts +7 -2
- package/build/esm/blocks/Map/schema.js +1 -1
- package/build/esm/blocks/Map/schema.js.map +1 -1
- package/build/esm/blocks/Media/schema.d.ts +20 -9
- package/build/esm/blocks/Media/schema.js +16 -3
- package/build/esm/blocks/Media/schema.js.map +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
- package/build/esm/blocks/Table/schema.d.ts +1 -0
- package/build/esm/blocks/Table/schema.js +1 -0
- package/build/esm/blocks/Table/schema.js.map +1 -1
- package/build/esm/blocks/Tabs/schema.d.ts +7 -6
- package/build/esm/blocks/Tabs/schema.js +2 -2
- package/build/esm/blocks/Tabs/schema.js.map +1 -1
- package/build/esm/components/Author/schema.d.ts +1 -2
- package/build/esm/components/Image/schema.d.ts +33 -8
- package/build/esm/components/Image/schema.js +22 -22
- package/build/esm/components/Image/schema.js.map +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +6 -5
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor-items/common.d.ts +1 -1
- package/build/esm/models/constructor-items/common.js.map +1 -1
- package/build/esm/navigation/schema.d.ts +1 -2
- package/build/esm/navigation/schema.js +2 -1
- package/build/esm/navigation/schema.js.map +1 -1
- package/build/esm/schema/constants.d.ts +940 -29
- package/build/esm/schema/constants.js +37 -41
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/validators/common.d.ts +11 -8
- package/build/esm/schema/validators/common.js +8 -4
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +82 -2
- package/build/esm/sub-blocks/BasicCard/schema.js +16 -2
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/schema.d.ts +2 -5
- package/build/esm/sub-blocks/Content/schema.js +1 -8
- package/build/esm/sub-blocks/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +33 -17
- package/build/esm/sub-blocks/ImageCard/schema.js +9 -2
- package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1023 -312
- package/build/esm/sub-blocks/LayoutItem/schema.js +37 -6
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +2 -4
- package/build/esm/sub-blocks/PriceCard/schema.d.ts +5 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.js +2 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/esm/sub-blocks/Quote/schema.d.ts +164 -6
- package/build/esm/sub-blocks/Quote/schema.js +3 -1
- package/build/esm/sub-blocks/Quote/schema.js.map +1 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +6 -5
- package/server/models/constructor-items/common.d.ts +1 -1
- package/widget/index.js +1 -1
|
@@ -1,146 +1,10 @@
|
|
|
1
1
|
export declare const HeroBlockButton: {
|
|
2
2
|
type: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
properties: Partial<{
|
|
6
|
-
text: {
|
|
7
|
-
type: string;
|
|
8
|
-
contentType: string;
|
|
9
|
-
};
|
|
10
|
-
url: {
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
urlTitle: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
primary: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
size: {
|
|
20
|
-
type: string;
|
|
21
|
-
enum: string[];
|
|
22
|
-
};
|
|
23
|
-
theme: {
|
|
24
|
-
type: string;
|
|
25
|
-
enum: string[];
|
|
26
|
-
};
|
|
27
|
-
img: {
|
|
28
|
-
oneOf: ({
|
|
29
|
-
type: string;
|
|
30
|
-
optionName: string;
|
|
31
|
-
additionalProperties?: undefined;
|
|
32
|
-
required?: undefined;
|
|
33
|
-
properties?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
type: string;
|
|
36
|
-
additionalProperties: boolean;
|
|
37
|
-
required: string[];
|
|
38
|
-
properties: {
|
|
39
|
-
data: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
position: {
|
|
43
|
-
type: string;
|
|
44
|
-
enum: string[];
|
|
45
|
-
};
|
|
46
|
-
alt: {
|
|
47
|
-
type: string;
|
|
48
|
-
contentType: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
optionName: string;
|
|
52
|
-
})[];
|
|
53
|
-
};
|
|
54
|
-
analyticsEvents: {
|
|
55
|
-
oneOf: ({
|
|
56
|
-
optionName: string;
|
|
57
|
-
type: string;
|
|
58
|
-
additionalProperties: {
|
|
59
|
-
type: string;
|
|
60
|
-
};
|
|
61
|
-
required: string[];
|
|
62
|
-
properties: {
|
|
63
|
-
name: {
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
type: {
|
|
67
|
-
type: string;
|
|
68
|
-
};
|
|
69
|
-
counters: {
|
|
70
|
-
type: string;
|
|
71
|
-
additionalProperties: boolean;
|
|
72
|
-
required: never[];
|
|
73
|
-
properties: {
|
|
74
|
-
include: {
|
|
75
|
-
type: string;
|
|
76
|
-
items: {
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
exclude: {
|
|
81
|
-
type: string;
|
|
82
|
-
items: {
|
|
83
|
-
type: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
context: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
items?: undefined;
|
|
93
|
-
} | {
|
|
94
|
-
type: string;
|
|
95
|
-
items: {
|
|
96
|
-
type: string;
|
|
97
|
-
additionalProperties: {
|
|
98
|
-
type: string;
|
|
99
|
-
};
|
|
100
|
-
required: string[];
|
|
101
|
-
properties: {
|
|
102
|
-
name: {
|
|
103
|
-
type: string;
|
|
104
|
-
};
|
|
105
|
-
type: {
|
|
106
|
-
type: string;
|
|
107
|
-
};
|
|
108
|
-
counters: {
|
|
109
|
-
type: string;
|
|
110
|
-
additionalProperties: boolean;
|
|
111
|
-
required: never[];
|
|
112
|
-
properties: {
|
|
113
|
-
include: {
|
|
114
|
-
type: string;
|
|
115
|
-
items: {
|
|
116
|
-
type: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
exclude: {
|
|
120
|
-
type: string;
|
|
121
|
-
items: {
|
|
122
|
-
type: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
context: {
|
|
128
|
-
type: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
optionName: string;
|
|
133
|
-
})[];
|
|
134
|
-
};
|
|
135
|
-
target: {
|
|
136
|
-
type: string;
|
|
137
|
-
enum: string[];
|
|
138
|
-
};
|
|
139
|
-
width: {
|
|
3
|
+
properties: {
|
|
4
|
+
when: {
|
|
140
5
|
type: string;
|
|
141
|
-
enum: string[];
|
|
142
6
|
};
|
|
143
|
-
}
|
|
7
|
+
};
|
|
144
8
|
};
|
|
145
9
|
export declare const HeroBlockBackground: {
|
|
146
10
|
type: string;
|
|
@@ -251,9 +115,9 @@ export declare const HeroBlockBackground: {
|
|
|
251
115
|
};
|
|
252
116
|
};
|
|
253
117
|
} | {
|
|
118
|
+
optionName: string;
|
|
254
119
|
type: string;
|
|
255
120
|
pattern: string;
|
|
256
|
-
optionName: string;
|
|
257
121
|
items?: undefined;
|
|
258
122
|
} | {
|
|
259
123
|
type: string;
|
|
@@ -266,7 +130,6 @@ export declare const HeroBlockBackground: {
|
|
|
266
130
|
};
|
|
267
131
|
};
|
|
268
132
|
optionName: string;
|
|
269
|
-
pattern?: undefined;
|
|
270
133
|
})[];
|
|
271
134
|
type?: undefined;
|
|
272
135
|
items?: undefined;
|
|
@@ -281,9 +144,9 @@ export declare const HeroBlockBackground: {
|
|
|
281
144
|
};
|
|
282
145
|
};
|
|
283
146
|
} | {
|
|
147
|
+
optionName: string;
|
|
284
148
|
type: string;
|
|
285
149
|
pattern: string;
|
|
286
|
-
optionName: string;
|
|
287
150
|
items?: undefined;
|
|
288
151
|
} | {
|
|
289
152
|
type: string;
|
|
@@ -296,7 +159,6 @@ export declare const HeroBlockBackground: {
|
|
|
296
159
|
};
|
|
297
160
|
};
|
|
298
161
|
optionName: string;
|
|
299
|
-
pattern?: undefined;
|
|
300
162
|
})[];
|
|
301
163
|
};
|
|
302
164
|
optionName: string;
|
|
@@ -355,147 +217,11 @@ export declare const HeroBlockProps: {
|
|
|
355
217
|
items: {
|
|
356
218
|
oneOf: (({
|
|
357
219
|
type: string;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
properties: Partial<{
|
|
361
|
-
text: {
|
|
362
|
-
type: string;
|
|
363
|
-
contentType: string;
|
|
364
|
-
};
|
|
365
|
-
url: {
|
|
366
|
-
type: string;
|
|
367
|
-
};
|
|
368
|
-
urlTitle: {
|
|
369
|
-
type: string;
|
|
370
|
-
};
|
|
371
|
-
primary: {
|
|
372
|
-
type: string;
|
|
373
|
-
};
|
|
374
|
-
size: {
|
|
375
|
-
type: string;
|
|
376
|
-
enum: string[];
|
|
377
|
-
};
|
|
378
|
-
theme: {
|
|
379
|
-
type: string;
|
|
380
|
-
enum: string[];
|
|
381
|
-
};
|
|
382
|
-
img: {
|
|
383
|
-
oneOf: ({
|
|
384
|
-
type: string;
|
|
385
|
-
optionName: string;
|
|
386
|
-
additionalProperties?: undefined;
|
|
387
|
-
required?: undefined;
|
|
388
|
-
properties?: undefined;
|
|
389
|
-
} | {
|
|
390
|
-
type: string;
|
|
391
|
-
additionalProperties: boolean;
|
|
392
|
-
required: string[];
|
|
393
|
-
properties: {
|
|
394
|
-
data: {
|
|
395
|
-
type: string;
|
|
396
|
-
};
|
|
397
|
-
position: {
|
|
398
|
-
type: string;
|
|
399
|
-
enum: string[];
|
|
400
|
-
};
|
|
401
|
-
alt: {
|
|
402
|
-
type: string;
|
|
403
|
-
contentType: string;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
optionName: string;
|
|
407
|
-
})[];
|
|
408
|
-
};
|
|
409
|
-
analyticsEvents: {
|
|
410
|
-
oneOf: ({
|
|
411
|
-
optionName: string;
|
|
412
|
-
type: string;
|
|
413
|
-
additionalProperties: {
|
|
414
|
-
type: string;
|
|
415
|
-
};
|
|
416
|
-
required: string[];
|
|
417
|
-
properties: {
|
|
418
|
-
name: {
|
|
419
|
-
type: string;
|
|
420
|
-
};
|
|
421
|
-
type: {
|
|
422
|
-
type: string;
|
|
423
|
-
};
|
|
424
|
-
counters: {
|
|
425
|
-
type: string;
|
|
426
|
-
additionalProperties: boolean;
|
|
427
|
-
required: never[];
|
|
428
|
-
properties: {
|
|
429
|
-
include: {
|
|
430
|
-
type: string;
|
|
431
|
-
items: {
|
|
432
|
-
type: string;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
exclude: {
|
|
436
|
-
type: string;
|
|
437
|
-
items: {
|
|
438
|
-
type: string;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
context: {
|
|
444
|
-
type: string;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
items?: undefined;
|
|
448
|
-
} | {
|
|
449
|
-
type: string;
|
|
450
|
-
items: {
|
|
451
|
-
type: string;
|
|
452
|
-
additionalProperties: {
|
|
453
|
-
type: string;
|
|
454
|
-
};
|
|
455
|
-
required: string[];
|
|
456
|
-
properties: {
|
|
457
|
-
name: {
|
|
458
|
-
type: string;
|
|
459
|
-
};
|
|
460
|
-
type: {
|
|
461
|
-
type: string;
|
|
462
|
-
};
|
|
463
|
-
counters: {
|
|
464
|
-
type: string;
|
|
465
|
-
additionalProperties: boolean;
|
|
466
|
-
required: never[];
|
|
467
|
-
properties: {
|
|
468
|
-
include: {
|
|
469
|
-
type: string;
|
|
470
|
-
items: {
|
|
471
|
-
type: string;
|
|
472
|
-
};
|
|
473
|
-
};
|
|
474
|
-
exclude: {
|
|
475
|
-
type: string;
|
|
476
|
-
items: {
|
|
477
|
-
type: string;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
context: {
|
|
483
|
-
type: string;
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
|
-
optionName: string;
|
|
488
|
-
})[];
|
|
489
|
-
};
|
|
490
|
-
target: {
|
|
491
|
-
type: string;
|
|
492
|
-
enum: string[];
|
|
493
|
-
};
|
|
494
|
-
width: {
|
|
220
|
+
properties: {
|
|
221
|
+
when: {
|
|
495
222
|
type: string;
|
|
496
|
-
enum: string[];
|
|
497
223
|
};
|
|
498
|
-
}
|
|
224
|
+
};
|
|
499
225
|
} & {
|
|
500
226
|
optionName: string;
|
|
501
227
|
}) | {
|
|
@@ -530,9 +256,9 @@ export declare const HeroBlockProps: {
|
|
|
530
256
|
};
|
|
531
257
|
};
|
|
532
258
|
} | {
|
|
259
|
+
optionName: string;
|
|
533
260
|
type: string;
|
|
534
261
|
pattern: string;
|
|
535
|
-
optionName: string;
|
|
536
262
|
items?: undefined;
|
|
537
263
|
} | {
|
|
538
264
|
type: string;
|
|
@@ -545,7 +271,6 @@ export declare const HeroBlockProps: {
|
|
|
545
271
|
};
|
|
546
272
|
};
|
|
547
273
|
optionName: string;
|
|
548
|
-
pattern?: undefined;
|
|
549
274
|
})[];
|
|
550
275
|
type?: undefined;
|
|
551
276
|
items?: undefined;
|
|
@@ -560,9 +285,9 @@ export declare const HeroBlockProps: {
|
|
|
560
285
|
};
|
|
561
286
|
};
|
|
562
287
|
} | {
|
|
288
|
+
optionName: string;
|
|
563
289
|
type: string;
|
|
564
290
|
pattern: string;
|
|
565
|
-
optionName: string;
|
|
566
291
|
items?: undefined;
|
|
567
292
|
} | {
|
|
568
293
|
type: string;
|
|
@@ -575,7 +300,6 @@ export declare const HeroBlockProps: {
|
|
|
575
300
|
};
|
|
576
301
|
};
|
|
577
302
|
optionName: string;
|
|
578
|
-
pattern?: undefined;
|
|
579
303
|
})[];
|
|
580
304
|
};
|
|
581
305
|
optionName: string;
|
|
@@ -950,9 +674,9 @@ export declare const HeroBlockProps: {
|
|
|
950
674
|
};
|
|
951
675
|
};
|
|
952
676
|
} | {
|
|
677
|
+
optionName: string;
|
|
953
678
|
type: string;
|
|
954
679
|
pattern: string;
|
|
955
|
-
optionName: string;
|
|
956
680
|
items?: undefined;
|
|
957
681
|
} | {
|
|
958
682
|
type: string;
|
|
@@ -965,7 +689,6 @@ export declare const HeroBlockProps: {
|
|
|
965
689
|
};
|
|
966
690
|
};
|
|
967
691
|
optionName: string;
|
|
968
|
-
pattern?: undefined;
|
|
969
692
|
})[];
|
|
970
693
|
type?: undefined;
|
|
971
694
|
items?: undefined;
|
|
@@ -980,9 +703,9 @@ export declare const HeroBlockProps: {
|
|
|
980
703
|
};
|
|
981
704
|
};
|
|
982
705
|
} | {
|
|
706
|
+
optionName: string;
|
|
983
707
|
type: string;
|
|
984
708
|
pattern: string;
|
|
985
|
-
optionName: string;
|
|
986
709
|
items?: undefined;
|
|
987
710
|
} | {
|
|
988
711
|
type: string;
|
|
@@ -995,7 +718,6 @@ export declare const HeroBlockProps: {
|
|
|
995
718
|
};
|
|
996
719
|
};
|
|
997
720
|
optionName: string;
|
|
998
|
-
pattern?: undefined;
|
|
999
721
|
})[];
|
|
1000
722
|
};
|
|
1001
723
|
optionName: string;
|
|
@@ -1213,147 +935,11 @@ export declare const HeroBlock: {
|
|
|
1213
935
|
items: {
|
|
1214
936
|
oneOf: (({
|
|
1215
937
|
type: string;
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
properties: Partial<{
|
|
1219
|
-
text: {
|
|
1220
|
-
type: string;
|
|
1221
|
-
contentType: string;
|
|
1222
|
-
};
|
|
1223
|
-
url: {
|
|
1224
|
-
type: string;
|
|
1225
|
-
};
|
|
1226
|
-
urlTitle: {
|
|
1227
|
-
type: string;
|
|
1228
|
-
};
|
|
1229
|
-
primary: {
|
|
1230
|
-
type: string;
|
|
1231
|
-
};
|
|
1232
|
-
size: {
|
|
1233
|
-
type: string;
|
|
1234
|
-
enum: string[];
|
|
1235
|
-
};
|
|
1236
|
-
theme: {
|
|
1237
|
-
type: string;
|
|
1238
|
-
enum: string[];
|
|
1239
|
-
};
|
|
1240
|
-
img: {
|
|
1241
|
-
oneOf: ({
|
|
1242
|
-
type: string;
|
|
1243
|
-
optionName: string;
|
|
1244
|
-
additionalProperties?: undefined;
|
|
1245
|
-
required?: undefined;
|
|
1246
|
-
properties?: undefined;
|
|
1247
|
-
} | {
|
|
1248
|
-
type: string;
|
|
1249
|
-
additionalProperties: boolean;
|
|
1250
|
-
required: string[];
|
|
1251
|
-
properties: {
|
|
1252
|
-
data: {
|
|
1253
|
-
type: string;
|
|
1254
|
-
};
|
|
1255
|
-
position: {
|
|
1256
|
-
type: string;
|
|
1257
|
-
enum: string[];
|
|
1258
|
-
};
|
|
1259
|
-
alt: {
|
|
1260
|
-
type: string;
|
|
1261
|
-
contentType: string;
|
|
1262
|
-
};
|
|
1263
|
-
};
|
|
1264
|
-
optionName: string;
|
|
1265
|
-
})[];
|
|
1266
|
-
};
|
|
1267
|
-
analyticsEvents: {
|
|
1268
|
-
oneOf: ({
|
|
1269
|
-
optionName: string;
|
|
1270
|
-
type: string;
|
|
1271
|
-
additionalProperties: {
|
|
1272
|
-
type: string;
|
|
1273
|
-
};
|
|
1274
|
-
required: string[];
|
|
1275
|
-
properties: {
|
|
1276
|
-
name: {
|
|
1277
|
-
type: string;
|
|
1278
|
-
};
|
|
1279
|
-
type: {
|
|
1280
|
-
type: string;
|
|
1281
|
-
};
|
|
1282
|
-
counters: {
|
|
1283
|
-
type: string;
|
|
1284
|
-
additionalProperties: boolean;
|
|
1285
|
-
required: never[];
|
|
1286
|
-
properties: {
|
|
1287
|
-
include: {
|
|
1288
|
-
type: string;
|
|
1289
|
-
items: {
|
|
1290
|
-
type: string;
|
|
1291
|
-
};
|
|
1292
|
-
};
|
|
1293
|
-
exclude: {
|
|
1294
|
-
type: string;
|
|
1295
|
-
items: {
|
|
1296
|
-
type: string;
|
|
1297
|
-
};
|
|
1298
|
-
};
|
|
1299
|
-
};
|
|
1300
|
-
};
|
|
1301
|
-
context: {
|
|
1302
|
-
type: string;
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
items?: undefined;
|
|
1306
|
-
} | {
|
|
1307
|
-
type: string;
|
|
1308
|
-
items: {
|
|
1309
|
-
type: string;
|
|
1310
|
-
additionalProperties: {
|
|
1311
|
-
type: string;
|
|
1312
|
-
};
|
|
1313
|
-
required: string[];
|
|
1314
|
-
properties: {
|
|
1315
|
-
name: {
|
|
1316
|
-
type: string;
|
|
1317
|
-
};
|
|
1318
|
-
type: {
|
|
1319
|
-
type: string;
|
|
1320
|
-
};
|
|
1321
|
-
counters: {
|
|
1322
|
-
type: string;
|
|
1323
|
-
additionalProperties: boolean;
|
|
1324
|
-
required: never[];
|
|
1325
|
-
properties: {
|
|
1326
|
-
include: {
|
|
1327
|
-
type: string;
|
|
1328
|
-
items: {
|
|
1329
|
-
type: string;
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
exclude: {
|
|
1333
|
-
type: string;
|
|
1334
|
-
items: {
|
|
1335
|
-
type: string;
|
|
1336
|
-
};
|
|
1337
|
-
};
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
context: {
|
|
1341
|
-
type: string;
|
|
1342
|
-
};
|
|
1343
|
-
};
|
|
1344
|
-
};
|
|
1345
|
-
optionName: string;
|
|
1346
|
-
})[];
|
|
1347
|
-
};
|
|
1348
|
-
target: {
|
|
1349
|
-
type: string;
|
|
1350
|
-
enum: string[];
|
|
1351
|
-
};
|
|
1352
|
-
width: {
|
|
938
|
+
properties: {
|
|
939
|
+
when: {
|
|
1353
940
|
type: string;
|
|
1354
|
-
enum: string[];
|
|
1355
941
|
};
|
|
1356
|
-
}
|
|
942
|
+
};
|
|
1357
943
|
} & {
|
|
1358
944
|
optionName: string;
|
|
1359
945
|
}) | {
|
|
@@ -1388,9 +974,9 @@ export declare const HeroBlock: {
|
|
|
1388
974
|
};
|
|
1389
975
|
};
|
|
1390
976
|
} | {
|
|
977
|
+
optionName: string;
|
|
1391
978
|
type: string;
|
|
1392
979
|
pattern: string;
|
|
1393
|
-
optionName: string;
|
|
1394
980
|
items?: undefined;
|
|
1395
981
|
} | {
|
|
1396
982
|
type: string;
|
|
@@ -1403,7 +989,6 @@ export declare const HeroBlock: {
|
|
|
1403
989
|
};
|
|
1404
990
|
};
|
|
1405
991
|
optionName: string;
|
|
1406
|
-
pattern?: undefined;
|
|
1407
992
|
})[];
|
|
1408
993
|
type?: undefined;
|
|
1409
994
|
items?: undefined;
|
|
@@ -1418,9 +1003,9 @@ export declare const HeroBlock: {
|
|
|
1418
1003
|
};
|
|
1419
1004
|
};
|
|
1420
1005
|
} | {
|
|
1006
|
+
optionName: string;
|
|
1421
1007
|
type: string;
|
|
1422
1008
|
pattern: string;
|
|
1423
|
-
optionName: string;
|
|
1424
1009
|
items?: undefined;
|
|
1425
1010
|
} | {
|
|
1426
1011
|
type: string;
|
|
@@ -1433,7 +1018,6 @@ export declare const HeroBlock: {
|
|
|
1433
1018
|
};
|
|
1434
1019
|
};
|
|
1435
1020
|
optionName: string;
|
|
1436
|
-
pattern?: undefined;
|
|
1437
1021
|
})[];
|
|
1438
1022
|
};
|
|
1439
1023
|
optionName: string;
|
|
@@ -1808,9 +1392,9 @@ export declare const HeroBlock: {
|
|
|
1808
1392
|
};
|
|
1809
1393
|
};
|
|
1810
1394
|
} | {
|
|
1395
|
+
optionName: string;
|
|
1811
1396
|
type: string;
|
|
1812
1397
|
pattern: string;
|
|
1813
|
-
optionName: string;
|
|
1814
1398
|
items?: undefined;
|
|
1815
1399
|
} | {
|
|
1816
1400
|
type: string;
|
|
@@ -1823,7 +1407,6 @@ export declare const HeroBlock: {
|
|
|
1823
1407
|
};
|
|
1824
1408
|
};
|
|
1825
1409
|
optionName: string;
|
|
1826
|
-
pattern?: undefined;
|
|
1827
1410
|
})[];
|
|
1828
1411
|
type?: undefined;
|
|
1829
1412
|
items?: undefined;
|
|
@@ -1838,9 +1421,9 @@ export declare const HeroBlock: {
|
|
|
1838
1421
|
};
|
|
1839
1422
|
};
|
|
1840
1423
|
} | {
|
|
1424
|
+
optionName: string;
|
|
1841
1425
|
type: string;
|
|
1842
1426
|
pattern: string;
|
|
1843
|
-
optionName: string;
|
|
1844
1427
|
items?: undefined;
|
|
1845
1428
|
} | {
|
|
1846
1429
|
type: string;
|
|
@@ -1853,7 +1436,6 @@ export declare const HeroBlock: {
|
|
|
1853
1436
|
};
|
|
1854
1437
|
};
|
|
1855
1438
|
optionName: string;
|
|
1856
|
-
pattern?: undefined;
|
|
1857
1439
|
})[];
|
|
1858
1440
|
};
|
|
1859
1441
|
optionName: string;
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import pick from "lodash/pick.js";
|
|
2
2
|
import { BlockBaseProps, ButtonProps, HeaderBreadcrumbsProps, MediaProps, withTheme, } from "../../schema/validators/common.js";
|
|
3
|
+
import { filteredItem } from "../../schema/validators/utils.js";
|
|
3
4
|
import { ContentBase } from "../../sub-blocks/Content/schema.js";
|
|
4
|
-
export const HeroBlockButton = {
|
|
5
|
+
export const HeroBlockButton = filteredItem({
|
|
5
6
|
type: 'object',
|
|
6
7
|
additionalProperties: false,
|
|
7
8
|
required: ['text', 'url'],
|
|
8
|
-
properties: pick(ButtonProps, [
|
|
9
|
-
|
|
9
|
+
properties: pick(ButtonProps, [
|
|
10
|
+
'text',
|
|
11
|
+
'url',
|
|
12
|
+
'theme',
|
|
13
|
+
'primary',
|
|
14
|
+
'size', // ignored at runtime — hero buttons always render at `xl`; kept for backward compatibility
|
|
15
|
+
'target',
|
|
16
|
+
'analyticsEvents',
|
|
17
|
+
]),
|
|
18
|
+
});
|
|
10
19
|
export const HeroBlockBackground = {
|
|
11
20
|
type: 'object',
|
|
12
21
|
additionalProperties: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Hero/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EACH,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,UAAU,EACV,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,WAAW,EAAC,2CAAwC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Hero/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EACH,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,UAAU,EACV,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,YAAY,EAAC,yCAAsC;AAC3D,OAAO,EAAC,WAAW,EAAC,2CAAwC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;IACxC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;IACzB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;QAC1B,MAAM;QACN,KAAK;QACL,OAAO;QACP,SAAS;QACT,MAAM,EAAE,2FAA2F;QACnG,QAAQ;QACR,iBAAiB;KACpB,CAAC;CACL,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACpF,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnF,WAAW,EAAE,sBAAsB;IACnC,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,MAAM;KACtB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC;KACpC;IACD,KAAK,EAAE,SAAS,CAAC;QACb,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,UAAU;YACb,YAAY,EAAE;gBACV,IAAI,EAAE,SAAS;aAClB;SACJ;KACJ,CAAC;IACF,SAAS,EAAE;QACP,IAAI,EAAE,SAAS;KAClB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;KAC9B;IACD,UAAU,EAAE,SAAS,CAAC,mBAAmB,CAAC;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,cAAc;SACpB;KACJ;CACJ,CAAC","sourcesContent":["import pick from 'lodash/pick';\n\nimport {\n BlockBaseProps,\n ButtonProps,\n HeaderBreadcrumbsProps,\n MediaProps,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredItem} from '../../schema/validators/utils';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nexport const HeroBlockButton = filteredItem({\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: pick(ButtonProps, [\n 'text',\n 'url',\n 'theme',\n 'primary',\n 'size', // ignored at runtime — hero buttons always render at `xl`; kept for backward compatibility\n 'target',\n 'analyticsEvents',\n ]),\n});\n\nexport const HeroBlockBackground = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n ...pick(MediaProps, ['image', 'video', 'parallax', 'height', 'ratio', 'previewImg']),\n color: {\n type: 'string',\n },\n },\n};\n\nexport const HeroBlockProps = {\n ...pick(ContentBase, ['title', 'text', 'list', 'additionalInfo', 'links', 'theme']),\n breadcrumbs: HeaderBreadcrumbsProps,\n overtitle: {\n type: 'string',\n contentType: 'text',\n },\n buttons: {\n type: 'array',\n items: withTheme(HeroBlockButton),\n },\n media: withTheme({\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n ...MediaProps,\n roundCorners: {\n type: 'boolean',\n },\n },\n }),\n fullWidth: {\n type: 'boolean',\n },\n verticalOffset: {\n type: 'string',\n enum: ['s', 'm', 'l', 'xl'],\n },\n background: withTheme(HeroBlockBackground),\n};\n\nexport const HeroBlock = {\n 'hero-block': {\n additionalProperties: false,\n required: ['title'],\n properties: {\n ...BlockBaseProps,\n ...HeroBlockProps,\n },\n },\n};\n"]}
|