@gravity-ui/page-constructor 8.23.0 → 8.23.2
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.js +1 -1
- package/build/cjs/blocks/Banner/schema.js.map +1 -1
- package/build/cjs/blocks/CardLayout/schema.d.ts +8 -2
- package/build/cjs/blocks/ContentLayout/schema.d.ts +9 -173
- package/build/cjs/blocks/ContentLayout/schema.js +0 -4
- package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +4 -1
- package/build/cjs/blocks/FilterBlock/schema.d.ts +8 -2
- package/build/cjs/blocks/FoldableList/schema.d.ts +4 -1
- package/build/cjs/blocks/Form/schema.d.ts +4 -1
- package/build/cjs/blocks/Header/schema.d.ts +12 -3
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +4 -1
- package/build/cjs/blocks/Hero/schema.d.ts +16 -4
- package/build/cjs/blocks/Icons/schema.d.ts +92 -92
- package/build/cjs/blocks/Icons/schema.js +1 -13
- package/build/cjs/blocks/Icons/schema.js.map +1 -1
- package/build/cjs/blocks/Info/schema.d.ts +8 -2
- package/build/cjs/blocks/Map/schema.d.ts +4 -1
- package/build/cjs/blocks/Media/schema.d.ts +16 -4
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +8 -2
- package/build/cjs/blocks/Questions/schema.d.ts +4 -1
- package/build/cjs/blocks/Slider/schema.d.ts +4 -1
- package/build/cjs/blocks/SliderOld/schema.d.ts +4 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +17 -4
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/Tabs/schema.js.map +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +4 -1
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/schema/constants.d.ts +20 -5
- package/build/cjs/schema/validators/common.d.ts +12 -3
- package/build/cjs/schema/validators/common.js +4 -25
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/schema/validators/event.d.ts +81 -0
- package/build/cjs/schema/validators/event.js +14 -1
- package/build/cjs/schema/validators/event.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +4 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +1 -13
- package/build/cjs/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +4 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js +1 -13
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/schema.d.ts +13 -3
- package/build/cjs/sub-blocks/Content/schema.js +1 -1
- package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +4 -1
- package/build/cjs/sub-blocks/ImageCard/schema.js +1 -13
- package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +16 -4
- package/build/cjs/sub-blocks/LayoutItem/schema.js +1 -13
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/schema.js +1 -13
- package/build/cjs/sub-blocks/MediaCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -13
- package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/esm/blocks/Banner/schema.js +1 -1
- package/build/esm/blocks/Banner/schema.js.map +1 -1
- package/build/esm/blocks/CardLayout/schema.d.ts +8 -2
- package/build/esm/blocks/ContentLayout/schema.d.ts +9 -173
- package/build/esm/blocks/ContentLayout/schema.js +0 -4
- package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +4 -1
- package/build/esm/blocks/FilterBlock/schema.d.ts +8 -2
- package/build/esm/blocks/FoldableList/schema.d.ts +4 -1
- package/build/esm/blocks/Form/schema.d.ts +4 -1
- package/build/esm/blocks/Header/schema.d.ts +12 -3
- package/build/esm/blocks/HeaderSlider/schema.d.ts +4 -1
- package/build/esm/blocks/Hero/schema.d.ts +16 -4
- package/build/esm/blocks/Icons/schema.d.ts +92 -92
- package/build/esm/blocks/Icons/schema.js +2 -14
- package/build/esm/blocks/Icons/schema.js.map +1 -1
- package/build/esm/blocks/Info/schema.d.ts +8 -2
- package/build/esm/blocks/Map/schema.d.ts +4 -1
- package/build/esm/blocks/Media/schema.d.ts +16 -4
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +8 -2
- package/build/esm/blocks/Questions/schema.d.ts +4 -1
- package/build/esm/blocks/Slider/schema.d.ts +4 -1
- package/build/esm/blocks/SliderOld/schema.d.ts +4 -1
- package/build/esm/blocks/Tabs/schema.d.ts +17 -4
- package/build/esm/blocks/Tabs/schema.js +2 -2
- package/build/esm/blocks/Tabs/schema.js.map +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +4 -1
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/schema/constants.d.ts +20 -5
- package/build/esm/schema/validators/common.d.ts +12 -3
- package/build/esm/schema/validators/common.js +5 -26
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/schema/validators/event.d.ts +81 -0
- package/build/esm/schema/validators/event.js +13 -0
- package/build/esm/schema/validators/event.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +4 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -14
- package/build/esm/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +4 -1
- package/build/esm/sub-blocks/BasicCard/schema.js +2 -14
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/schema.d.ts +13 -3
- package/build/esm/sub-blocks/Content/schema.js +2 -2
- package/build/esm/sub-blocks/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +4 -1
- package/build/esm/sub-blocks/ImageCard/schema.js +2 -14
- package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +16 -4
- package/build/esm/sub-blocks/LayoutItem/schema.js +2 -14
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/schema.js +2 -14
- package/build/esm/sub-blocks/MediaCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +2 -14
- package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +4 -1
- package/widget/index.js +1 -1
|
@@ -4,7 +4,7 @@ exports.BannerCard = exports.BannerBlock = exports.BannerCardProps = void 0;
|
|
|
4
4
|
const common_1 = require("../../schema/validators/common.js");
|
|
5
5
|
exports.BannerCardProps = {
|
|
6
6
|
additionalProperties: false,
|
|
7
|
-
required: ['title'
|
|
7
|
+
required: ['title'],
|
|
8
8
|
properties: {
|
|
9
9
|
...common_1.BaseProps,
|
|
10
10
|
...common_1.AnimatableProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Banner/schema.ts"],"names":[],"mappings":";;;AAAA,8DAOwC;AAE3B,QAAA,eAAe,GAAG;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Banner/schema.ts"],"names":[],"mappings":";;;AAAA,8DAOwC;AAE3B,QAAA,eAAe,GAAG;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,KAAK;SACrB;QACD,KAAK,EAAE,IAAA,kBAAS,EAAC;YACb,IAAI,EAAE,QAAQ;SACjB,CAAC;QACF,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,kBAAS;SAClB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,SAAS;SAClB;QACD,KAAK,EAAE,IAAA,kBAAS,EAAC;YACb,IAAI,EAAE,QAAQ;SACjB,CAAC;QACF,KAAK,EAAE,mBAAU;QACjB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SACxB;QACD,MAAM,EAAE,oBAAW;KACtB;CACJ,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,cAAc,EAAE,uBAAe;CAClC,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,aAAa,EAAE,uBAAe;CACjC,CAAC","sourcesContent":["import {\n AnimatableProps,\n BaseProps,\n ButtonBlock,\n ThemeProps,\n mediaView,\n withTheme,\n} from '../../schema/validators/common';\n\nexport const BannerCardProps = {\n additionalProperties: false,\n required: ['title'],\n properties: {\n ...BaseProps,\n ...AnimatableProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n subtitle: {\n type: 'string',\n contentType: 'yfm',\n },\n image: withTheme({\n type: 'string',\n }),\n mediaView: {\n type: 'string',\n enum: mediaView,\n },\n disableCompress: {\n type: 'boolean',\n },\n color: withTheme({\n type: 'string',\n }),\n theme: ThemeProps,\n width: {\n type: 'string',\n enum: ['s', 'm', 'l'],\n },\n button: ButtonBlock,\n },\n};\n\nexport const BannerBlock = {\n 'banner-block': BannerCardProps,\n};\n\nexport const BannerCard = {\n 'banner-card': BannerCardProps,\n};\n"]}
|
|
@@ -335,7 +335,8 @@ export declare const CardLayoutProps: {
|
|
|
335
335
|
type: string;
|
|
336
336
|
};
|
|
337
337
|
analyticsEvents: {
|
|
338
|
-
|
|
338
|
+
oneOf: ({
|
|
339
|
+
optionName: string;
|
|
339
340
|
type: string;
|
|
340
341
|
additionalProperties: {
|
|
341
342
|
type: string;
|
|
@@ -371,6 +372,7 @@ export declare const CardLayoutProps: {
|
|
|
371
372
|
type: string;
|
|
372
373
|
};
|
|
373
374
|
};
|
|
375
|
+
items?: undefined;
|
|
374
376
|
} | {
|
|
375
377
|
type: string;
|
|
376
378
|
items: {
|
|
@@ -410,6 +412,7 @@ export declare const CardLayoutProps: {
|
|
|
410
412
|
};
|
|
411
413
|
};
|
|
412
414
|
};
|
|
415
|
+
optionName: string;
|
|
413
416
|
})[];
|
|
414
417
|
};
|
|
415
418
|
};
|
|
@@ -815,7 +818,8 @@ export declare const CardLayoutBlock: {
|
|
|
815
818
|
type: string;
|
|
816
819
|
};
|
|
817
820
|
analyticsEvents: {
|
|
818
|
-
|
|
821
|
+
oneOf: ({
|
|
822
|
+
optionName: string;
|
|
819
823
|
type: string;
|
|
820
824
|
additionalProperties: {
|
|
821
825
|
type: string;
|
|
@@ -851,6 +855,7 @@ export declare const CardLayoutBlock: {
|
|
|
851
855
|
type: string;
|
|
852
856
|
};
|
|
853
857
|
};
|
|
858
|
+
items?: undefined;
|
|
854
859
|
} | {
|
|
855
860
|
type: string;
|
|
856
861
|
items: {
|
|
@@ -890,6 +895,7 @@ export declare const CardLayoutBlock: {
|
|
|
890
895
|
};
|
|
891
896
|
};
|
|
892
897
|
};
|
|
898
|
+
optionName: string;
|
|
893
899
|
})[];
|
|
894
900
|
};
|
|
895
901
|
};
|
|
@@ -171,7 +171,11 @@ export declare const ContentLayoutBlock: {
|
|
|
171
171
|
textContent: {
|
|
172
172
|
additionalProperties: boolean;
|
|
173
173
|
properties: {
|
|
174
|
-
colSizes: {
|
|
174
|
+
colSizes: {
|
|
175
|
+
type: string;
|
|
176
|
+
additionalProperties: boolean;
|
|
177
|
+
properties: {};
|
|
178
|
+
};
|
|
175
179
|
centered: {
|
|
176
180
|
type: string;
|
|
177
181
|
};
|
|
@@ -204,7 +208,8 @@ export declare const ContentLayoutBlock: {
|
|
|
204
208
|
type: string;
|
|
205
209
|
};
|
|
206
210
|
analyticsEvents: {
|
|
207
|
-
|
|
211
|
+
oneOf: ({
|
|
212
|
+
optionName: string;
|
|
208
213
|
type: string;
|
|
209
214
|
additionalProperties: {
|
|
210
215
|
type: string;
|
|
@@ -240,6 +245,7 @@ export declare const ContentLayoutBlock: {
|
|
|
240
245
|
type: string;
|
|
241
246
|
};
|
|
242
247
|
};
|
|
248
|
+
items?: undefined;
|
|
243
249
|
} | {
|
|
244
250
|
type: string;
|
|
245
251
|
items: {
|
|
@@ -279,6 +285,7 @@ export declare const ContentLayoutBlock: {
|
|
|
279
285
|
};
|
|
280
286
|
};
|
|
281
287
|
};
|
|
288
|
+
optionName: string;
|
|
282
289
|
})[];
|
|
283
290
|
};
|
|
284
291
|
};
|
|
@@ -352,177 +359,6 @@ export declare const ContentLayoutBlock: {
|
|
|
352
359
|
};
|
|
353
360
|
};
|
|
354
361
|
};
|
|
355
|
-
/**
|
|
356
|
-
* @deprecated Use params on top level instead
|
|
357
|
-
*/
|
|
358
|
-
properties: {
|
|
359
|
-
size: {
|
|
360
|
-
type: string;
|
|
361
|
-
enum: string[];
|
|
362
|
-
};
|
|
363
|
-
background: {
|
|
364
|
-
oneOf: (({
|
|
365
|
-
oneOf: ({
|
|
366
|
-
optionName: string;
|
|
367
|
-
type: string;
|
|
368
|
-
additionalProperties: boolean;
|
|
369
|
-
properties: {
|
|
370
|
-
src: {
|
|
371
|
-
type: string;
|
|
372
|
-
pattern: string;
|
|
373
|
-
};
|
|
374
|
-
style: {
|
|
375
|
-
type: string;
|
|
376
|
-
additionalProperties: boolean;
|
|
377
|
-
required: never[];
|
|
378
|
-
properties: {
|
|
379
|
-
backgroundColor: {
|
|
380
|
-
type: string;
|
|
381
|
-
};
|
|
382
|
-
height: {
|
|
383
|
-
type: string[];
|
|
384
|
-
};
|
|
385
|
-
width: {
|
|
386
|
-
type: string[];
|
|
387
|
-
};
|
|
388
|
-
color: {
|
|
389
|
-
type: string;
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
alt: {
|
|
394
|
-
type: string;
|
|
395
|
-
contentType: string;
|
|
396
|
-
};
|
|
397
|
-
disableCompress: {
|
|
398
|
-
type: string;
|
|
399
|
-
};
|
|
400
|
-
loading: {
|
|
401
|
-
type: string;
|
|
402
|
-
enum: string[];
|
|
403
|
-
};
|
|
404
|
-
fetchPriority: {
|
|
405
|
-
type: string;
|
|
406
|
-
enum: string[];
|
|
407
|
-
};
|
|
408
|
-
hide: {
|
|
409
|
-
oneOf: ({
|
|
410
|
-
type: string;
|
|
411
|
-
properties?: undefined;
|
|
412
|
-
} | {
|
|
413
|
-
type: string;
|
|
414
|
-
properties: {
|
|
415
|
-
mobile: {
|
|
416
|
-
type: string;
|
|
417
|
-
};
|
|
418
|
-
tablet: {
|
|
419
|
-
type: string;
|
|
420
|
-
};
|
|
421
|
-
desktop: {
|
|
422
|
-
type: string;
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
})[];
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
} | {
|
|
429
|
-
properties: {
|
|
430
|
-
style: {
|
|
431
|
-
type: string;
|
|
432
|
-
additionalProperties: boolean;
|
|
433
|
-
required: never[];
|
|
434
|
-
properties: {
|
|
435
|
-
backgroundColor: {
|
|
436
|
-
type: string;
|
|
437
|
-
};
|
|
438
|
-
height: {
|
|
439
|
-
type: string[];
|
|
440
|
-
};
|
|
441
|
-
width: {
|
|
442
|
-
type: string[];
|
|
443
|
-
};
|
|
444
|
-
color: {
|
|
445
|
-
type: string;
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
desktop: {
|
|
450
|
-
type: string;
|
|
451
|
-
pattern: string;
|
|
452
|
-
};
|
|
453
|
-
tablet: {
|
|
454
|
-
type: string;
|
|
455
|
-
pattern: string;
|
|
456
|
-
};
|
|
457
|
-
mobile: {
|
|
458
|
-
type: string;
|
|
459
|
-
pattern: string;
|
|
460
|
-
};
|
|
461
|
-
alt: {
|
|
462
|
-
type: string;
|
|
463
|
-
contentType: string;
|
|
464
|
-
};
|
|
465
|
-
disableCompress: {
|
|
466
|
-
type: string;
|
|
467
|
-
};
|
|
468
|
-
loading: {
|
|
469
|
-
type: string;
|
|
470
|
-
enum: string[];
|
|
471
|
-
};
|
|
472
|
-
fetchPriority: {
|
|
473
|
-
type: string;
|
|
474
|
-
enum: string[];
|
|
475
|
-
};
|
|
476
|
-
hide: {
|
|
477
|
-
oneOf: ({
|
|
478
|
-
type: string;
|
|
479
|
-
properties?: undefined;
|
|
480
|
-
} | {
|
|
481
|
-
type: string;
|
|
482
|
-
properties: {
|
|
483
|
-
mobile: {
|
|
484
|
-
type: string;
|
|
485
|
-
};
|
|
486
|
-
tablet: {
|
|
487
|
-
type: string;
|
|
488
|
-
};
|
|
489
|
-
desktop: {
|
|
490
|
-
type: string;
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
})[];
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
optionName: string;
|
|
497
|
-
type: string;
|
|
498
|
-
additionalProperties: boolean;
|
|
499
|
-
required: import("../../index.js").Device[];
|
|
500
|
-
anyOf: {
|
|
501
|
-
required: import("../../index.js").Device[];
|
|
502
|
-
}[];
|
|
503
|
-
})[];
|
|
504
|
-
} & {
|
|
505
|
-
optionName: string;
|
|
506
|
-
}) | {
|
|
507
|
-
type: string;
|
|
508
|
-
additionalProperties: boolean;
|
|
509
|
-
required: import("../../index.js").Theme[];
|
|
510
|
-
properties: {};
|
|
511
|
-
optionName: string;
|
|
512
|
-
})[];
|
|
513
|
-
};
|
|
514
|
-
centered: {
|
|
515
|
-
type: string;
|
|
516
|
-
};
|
|
517
|
-
theme: {
|
|
518
|
-
type: string;
|
|
519
|
-
enum: string[];
|
|
520
|
-
};
|
|
521
|
-
textWidth: {
|
|
522
|
-
type: string;
|
|
523
|
-
enum: string[];
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
362
|
anchor: {
|
|
527
363
|
type: string;
|
|
528
364
|
additionalProperties: boolean;
|
|
@@ -30,10 +30,6 @@ exports.ContentLayoutBlock = {
|
|
|
30
30
|
...common_1.BlockBaseProps,
|
|
31
31
|
textContent: schema_2.ContentBlock?.content,
|
|
32
32
|
fileContent: (0, utils_1.filteredArray)(common_1.FileLinkProps),
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use params on top level instead
|
|
35
|
-
*/
|
|
36
|
-
properties: ContentLayoutBlockProperties,
|
|
37
33
|
...ContentLayoutBlockProperties,
|
|
38
34
|
},
|
|
39
35
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/schema.ts"],"names":[],"mappings":";;;AAAA,6DAAmE;AACnE,8DAOwC;AACxC,4DAA4D;AAC5D,+DAA6D;AAE7D,MAAM,4BAA4B,GAAG;IACjC,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,qBAAY;KACrB;IACD,UAAU,EAAE,IAAA,kBAAS,EAAC,6BAAoB,CAAC;IAC3C,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;IACD,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,sBAAa;KACtB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,yBAAgB;KACzB;CACJ,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAC9B,sBAAsB,EAAE;QACpB,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,WAAW,EAAE,qBAAY,EAAE,OAAO;YAClC,WAAW,EAAE,IAAA,qBAAa,EAAC,sBAAa,CAAC;YACzC
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/schema.ts"],"names":[],"mappings":";;;AAAA,6DAAmE;AACnE,8DAOwC;AACxC,4DAA4D;AAC5D,+DAA6D;AAE7D,MAAM,4BAA4B,GAAG;IACjC,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,qBAAY;KACrB;IACD,UAAU,EAAE,IAAA,kBAAS,EAAC,6BAAoB,CAAC;IAC3C,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;IACD,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,sBAAa;KACtB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,yBAAgB;KACzB;CACJ,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAC9B,sBAAsB,EAAE;QACpB,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,uBAAc;YACjB,WAAW,EAAE,qBAAY,EAAE,OAAO;YAClC,WAAW,EAAE,IAAA,qBAAa,EAAC,sBAAa,CAAC;YACzC,GAAG,4BAA4B;SAClC;KACJ;CACJ,CAAC","sourcesContent":["import {BackgroundImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n FileLinkProps,\n contentSizes,\n contentTextWidth,\n contentThemes,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\nimport {ContentBlock} from '../../sub-blocks/Content/schema';\n\nconst ContentLayoutBlockProperties = {\n size: {\n type: 'string',\n enum: contentSizes,\n },\n background: withTheme(BackgroundImageProps),\n centered: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n textWidth: {\n type: 'string',\n enum: contentTextWidth,\n },\n};\n\nexport const ContentLayoutBlock = {\n 'content-layout-block': {\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n textContent: ContentBlock?.content,\n fileContent: filteredArray(FileLinkProps),\n ...ContentLayoutBlockProperties,\n },\n },\n};\n"]}
|
|
@@ -491,7 +491,8 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
491
491
|
type: string;
|
|
492
492
|
};
|
|
493
493
|
analyticsEvents: {
|
|
494
|
-
|
|
494
|
+
oneOf: ({
|
|
495
|
+
optionName: string;
|
|
495
496
|
type: string;
|
|
496
497
|
additionalProperties: {
|
|
497
498
|
type: string;
|
|
@@ -527,6 +528,7 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
527
528
|
type: string;
|
|
528
529
|
};
|
|
529
530
|
};
|
|
531
|
+
items?: undefined;
|
|
530
532
|
} | {
|
|
531
533
|
type: string;
|
|
532
534
|
items: {
|
|
@@ -566,6 +568,7 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
566
568
|
};
|
|
567
569
|
};
|
|
568
570
|
};
|
|
571
|
+
optionName: string;
|
|
569
572
|
})[];
|
|
570
573
|
};
|
|
571
574
|
};
|
|
@@ -185,7 +185,8 @@ export declare const FilterProps: {
|
|
|
185
185
|
type: string;
|
|
186
186
|
};
|
|
187
187
|
analyticsEvents: {
|
|
188
|
-
|
|
188
|
+
oneOf: ({
|
|
189
|
+
optionName: string;
|
|
189
190
|
type: string;
|
|
190
191
|
additionalProperties: {
|
|
191
192
|
type: string;
|
|
@@ -221,6 +222,7 @@ export declare const FilterProps: {
|
|
|
221
222
|
type: string;
|
|
222
223
|
};
|
|
223
224
|
};
|
|
225
|
+
items?: undefined;
|
|
224
226
|
} | {
|
|
225
227
|
type: string;
|
|
226
228
|
items: {
|
|
@@ -260,6 +262,7 @@ export declare const FilterProps: {
|
|
|
260
262
|
};
|
|
261
263
|
};
|
|
262
264
|
};
|
|
265
|
+
optionName: string;
|
|
263
266
|
})[];
|
|
264
267
|
};
|
|
265
268
|
};
|
|
@@ -450,7 +453,8 @@ export declare const FilterBlock: {
|
|
|
450
453
|
type: string;
|
|
451
454
|
};
|
|
452
455
|
analyticsEvents: {
|
|
453
|
-
|
|
456
|
+
oneOf: ({
|
|
457
|
+
optionName: string;
|
|
454
458
|
type: string;
|
|
455
459
|
additionalProperties: {
|
|
456
460
|
type: string;
|
|
@@ -486,6 +490,7 @@ export declare const FilterBlock: {
|
|
|
486
490
|
type: string;
|
|
487
491
|
};
|
|
488
492
|
};
|
|
493
|
+
items?: undefined;
|
|
489
494
|
} | {
|
|
490
495
|
type: string;
|
|
491
496
|
items: {
|
|
@@ -525,6 +530,7 @@ export declare const FilterBlock: {
|
|
|
525
530
|
};
|
|
526
531
|
};
|
|
527
532
|
};
|
|
533
|
+
optionName: string;
|
|
528
534
|
})[];
|
|
529
535
|
};
|
|
530
536
|
};
|
|
@@ -43,7 +43,8 @@ export declare const FoldableListBlock: {
|
|
|
43
43
|
type: string;
|
|
44
44
|
};
|
|
45
45
|
analyticsEvents: {
|
|
46
|
-
|
|
46
|
+
oneOf: ({
|
|
47
|
+
optionName: string;
|
|
47
48
|
type: string;
|
|
48
49
|
additionalProperties: {
|
|
49
50
|
type: string;
|
|
@@ -79,6 +80,7 @@ export declare const FoldableListBlock: {
|
|
|
79
80
|
type: string;
|
|
80
81
|
};
|
|
81
82
|
};
|
|
83
|
+
items?: undefined;
|
|
82
84
|
} | {
|
|
83
85
|
type: string;
|
|
84
86
|
items: {
|
|
@@ -118,6 +120,7 @@ export declare const FoldableListBlock: {
|
|
|
118
120
|
};
|
|
119
121
|
};
|
|
120
122
|
};
|
|
123
|
+
optionName: string;
|
|
121
124
|
})[];
|
|
122
125
|
};
|
|
123
126
|
};
|
|
@@ -113,7 +113,8 @@ export declare const FormBlock: {
|
|
|
113
113
|
type: string;
|
|
114
114
|
};
|
|
115
115
|
analyticsEvents: {
|
|
116
|
-
|
|
116
|
+
oneOf: ({
|
|
117
|
+
optionName: string;
|
|
117
118
|
type: string;
|
|
118
119
|
additionalProperties: {
|
|
119
120
|
type: string;
|
|
@@ -149,6 +150,7 @@ export declare const FormBlock: {
|
|
|
149
150
|
type: string;
|
|
150
151
|
};
|
|
151
152
|
};
|
|
153
|
+
items?: undefined;
|
|
152
154
|
} | {
|
|
153
155
|
type: string;
|
|
154
156
|
items: {
|
|
@@ -188,6 +190,7 @@ export declare const FormBlock: {
|
|
|
188
190
|
};
|
|
189
191
|
};
|
|
190
192
|
};
|
|
193
|
+
optionName: string;
|
|
191
194
|
})[];
|
|
192
195
|
};
|
|
193
196
|
};
|
|
@@ -321,7 +321,8 @@ export declare const HeaderBackgroundProps: {
|
|
|
321
321
|
type: string;
|
|
322
322
|
};
|
|
323
323
|
analyticsEvents: {
|
|
324
|
-
|
|
324
|
+
oneOf: ({
|
|
325
|
+
optionName: string;
|
|
325
326
|
type: string;
|
|
326
327
|
additionalProperties: {
|
|
327
328
|
type: string;
|
|
@@ -357,6 +358,7 @@ export declare const HeaderBackgroundProps: {
|
|
|
357
358
|
type: string;
|
|
358
359
|
};
|
|
359
360
|
};
|
|
361
|
+
items?: undefined;
|
|
360
362
|
} | {
|
|
361
363
|
type: string;
|
|
362
364
|
items: {
|
|
@@ -396,6 +398,7 @@ export declare const HeaderBackgroundProps: {
|
|
|
396
398
|
};
|
|
397
399
|
};
|
|
398
400
|
};
|
|
401
|
+
optionName: string;
|
|
399
402
|
})[];
|
|
400
403
|
};
|
|
401
404
|
ratio: {
|
|
@@ -951,7 +954,8 @@ export declare const HeaderProperties: {
|
|
|
951
954
|
type: string;
|
|
952
955
|
};
|
|
953
956
|
analyticsEvents: {
|
|
954
|
-
|
|
957
|
+
oneOf: ({
|
|
958
|
+
optionName: string;
|
|
955
959
|
type: string;
|
|
956
960
|
additionalProperties: {
|
|
957
961
|
type: string;
|
|
@@ -987,6 +991,7 @@ export declare const HeaderProperties: {
|
|
|
987
991
|
type: string;
|
|
988
992
|
};
|
|
989
993
|
};
|
|
994
|
+
items?: undefined;
|
|
990
995
|
} | {
|
|
991
996
|
type: string;
|
|
992
997
|
items: {
|
|
@@ -1026,6 +1031,7 @@ export declare const HeaderProperties: {
|
|
|
1026
1031
|
};
|
|
1027
1032
|
};
|
|
1028
1033
|
};
|
|
1034
|
+
optionName: string;
|
|
1029
1035
|
})[];
|
|
1030
1036
|
};
|
|
1031
1037
|
ratio: {
|
|
@@ -1633,7 +1639,8 @@ export declare const HeaderBlock: {
|
|
|
1633
1639
|
type: string;
|
|
1634
1640
|
};
|
|
1635
1641
|
analyticsEvents: {
|
|
1636
|
-
|
|
1642
|
+
oneOf: ({
|
|
1643
|
+
optionName: string;
|
|
1637
1644
|
type: string;
|
|
1638
1645
|
additionalProperties: {
|
|
1639
1646
|
type: string;
|
|
@@ -1669,6 +1676,7 @@ export declare const HeaderBlock: {
|
|
|
1669
1676
|
type: string;
|
|
1670
1677
|
};
|
|
1671
1678
|
};
|
|
1679
|
+
items?: undefined;
|
|
1672
1680
|
} | {
|
|
1673
1681
|
type: string;
|
|
1674
1682
|
items: {
|
|
@@ -1708,6 +1716,7 @@ export declare const HeaderBlock: {
|
|
|
1708
1716
|
};
|
|
1709
1717
|
};
|
|
1710
1718
|
};
|
|
1719
|
+
optionName: string;
|
|
1711
1720
|
})[];
|
|
1712
1721
|
};
|
|
1713
1722
|
ratio: {
|
|
@@ -529,7 +529,8 @@ export declare const HeaderSliderBlock: {
|
|
|
529
529
|
type: string;
|
|
530
530
|
};
|
|
531
531
|
analyticsEvents: {
|
|
532
|
-
|
|
532
|
+
oneOf: ({
|
|
533
|
+
optionName: string;
|
|
533
534
|
type: string;
|
|
534
535
|
additionalProperties: {
|
|
535
536
|
type: string;
|
|
@@ -565,6 +566,7 @@ export declare const HeaderSliderBlock: {
|
|
|
565
566
|
type: string;
|
|
566
567
|
};
|
|
567
568
|
};
|
|
569
|
+
items?: undefined;
|
|
568
570
|
} | {
|
|
569
571
|
type: string;
|
|
570
572
|
items: {
|
|
@@ -604,6 +606,7 @@ export declare const HeaderSliderBlock: {
|
|
|
604
606
|
};
|
|
605
607
|
};
|
|
606
608
|
};
|
|
609
|
+
optionName: string;
|
|
607
610
|
})[];
|
|
608
611
|
};
|
|
609
612
|
ratio: {
|
|
@@ -440,7 +440,8 @@ export declare const HeroBlockProps: {
|
|
|
440
440
|
type: string;
|
|
441
441
|
};
|
|
442
442
|
analyticsEvents: {
|
|
443
|
-
|
|
443
|
+
oneOf: ({
|
|
444
|
+
optionName: string;
|
|
444
445
|
type: string;
|
|
445
446
|
additionalProperties: {
|
|
446
447
|
type: string;
|
|
@@ -476,6 +477,7 @@ export declare const HeroBlockProps: {
|
|
|
476
477
|
type: string;
|
|
477
478
|
};
|
|
478
479
|
};
|
|
480
|
+
items?: undefined;
|
|
479
481
|
} | {
|
|
480
482
|
type: string;
|
|
481
483
|
items: {
|
|
@@ -515,6 +517,7 @@ export declare const HeroBlockProps: {
|
|
|
515
517
|
};
|
|
516
518
|
};
|
|
517
519
|
};
|
|
520
|
+
optionName: string;
|
|
518
521
|
})[];
|
|
519
522
|
};
|
|
520
523
|
ratio: {
|
|
@@ -776,7 +779,8 @@ export declare const HeroBlockProps: {
|
|
|
776
779
|
type: string;
|
|
777
780
|
};
|
|
778
781
|
analyticsEvents: {
|
|
779
|
-
|
|
782
|
+
oneOf: ({
|
|
783
|
+
optionName: string;
|
|
780
784
|
type: string;
|
|
781
785
|
additionalProperties: {
|
|
782
786
|
type: string;
|
|
@@ -812,6 +816,7 @@ export declare const HeroBlockProps: {
|
|
|
812
816
|
type: string;
|
|
813
817
|
};
|
|
814
818
|
};
|
|
819
|
+
items?: undefined;
|
|
815
820
|
} | {
|
|
816
821
|
type: string;
|
|
817
822
|
items: {
|
|
@@ -851,6 +856,7 @@ export declare const HeroBlockProps: {
|
|
|
851
856
|
};
|
|
852
857
|
};
|
|
853
858
|
};
|
|
859
|
+
optionName: string;
|
|
854
860
|
})[];
|
|
855
861
|
};
|
|
856
862
|
};
|
|
@@ -1158,7 +1164,8 @@ export declare const HeroBlock: {
|
|
|
1158
1164
|
type: string;
|
|
1159
1165
|
};
|
|
1160
1166
|
analyticsEvents: {
|
|
1161
|
-
|
|
1167
|
+
oneOf: ({
|
|
1168
|
+
optionName: string;
|
|
1162
1169
|
type: string;
|
|
1163
1170
|
additionalProperties: {
|
|
1164
1171
|
type: string;
|
|
@@ -1194,6 +1201,7 @@ export declare const HeroBlock: {
|
|
|
1194
1201
|
type: string;
|
|
1195
1202
|
};
|
|
1196
1203
|
};
|
|
1204
|
+
items?: undefined;
|
|
1197
1205
|
} | {
|
|
1198
1206
|
type: string;
|
|
1199
1207
|
items: {
|
|
@@ -1233,6 +1241,7 @@ export declare const HeroBlock: {
|
|
|
1233
1241
|
};
|
|
1234
1242
|
};
|
|
1235
1243
|
};
|
|
1244
|
+
optionName: string;
|
|
1236
1245
|
})[];
|
|
1237
1246
|
};
|
|
1238
1247
|
ratio: {
|
|
@@ -1494,7 +1503,8 @@ export declare const HeroBlock: {
|
|
|
1494
1503
|
type: string;
|
|
1495
1504
|
};
|
|
1496
1505
|
analyticsEvents: {
|
|
1497
|
-
|
|
1506
|
+
oneOf: ({
|
|
1507
|
+
optionName: string;
|
|
1498
1508
|
type: string;
|
|
1499
1509
|
additionalProperties: {
|
|
1500
1510
|
type: string;
|
|
@@ -1530,6 +1540,7 @@ export declare const HeroBlock: {
|
|
|
1530
1540
|
type: string;
|
|
1531
1541
|
};
|
|
1532
1542
|
};
|
|
1543
|
+
items?: undefined;
|
|
1533
1544
|
} | {
|
|
1534
1545
|
type: string;
|
|
1535
1546
|
items: {
|
|
@@ -1569,6 +1580,7 @@ export declare const HeroBlock: {
|
|
|
1569
1580
|
};
|
|
1570
1581
|
};
|
|
1571
1582
|
};
|
|
1583
|
+
optionName: string;
|
|
1572
1584
|
})[];
|
|
1573
1585
|
};
|
|
1574
1586
|
};
|