@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
|
@@ -35,3 +35,84 @@ export declare const AnalyticsEventSchema: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
+
export declare const AnalyticsEvents: {
|
|
39
|
+
oneOf: ({
|
|
40
|
+
optionName: string;
|
|
41
|
+
type: string;
|
|
42
|
+
additionalProperties: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
required: string[];
|
|
46
|
+
properties: {
|
|
47
|
+
name: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
counters: {
|
|
54
|
+
type: string;
|
|
55
|
+
additionalProperties: boolean;
|
|
56
|
+
required: never[];
|
|
57
|
+
properties: {
|
|
58
|
+
include: {
|
|
59
|
+
type: string;
|
|
60
|
+
items: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
exclude: {
|
|
65
|
+
type: string;
|
|
66
|
+
items: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
context: {
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
items?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
type: string;
|
|
79
|
+
items: {
|
|
80
|
+
type: string;
|
|
81
|
+
additionalProperties: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
required: string[];
|
|
85
|
+
properties: {
|
|
86
|
+
name: {
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
89
|
+
type: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
counters: {
|
|
93
|
+
type: string;
|
|
94
|
+
additionalProperties: boolean;
|
|
95
|
+
required: never[];
|
|
96
|
+
properties: {
|
|
97
|
+
include: {
|
|
98
|
+
type: string;
|
|
99
|
+
items: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
exclude: {
|
|
104
|
+
type: string;
|
|
105
|
+
items: {
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
context: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
optionName: string;
|
|
117
|
+
})[];
|
|
118
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnalyticsEventSchema = void 0;
|
|
3
|
+
exports.AnalyticsEvents = exports.AnalyticsEventSchema = void 0;
|
|
4
4
|
exports.AnalyticsEventSchema = {
|
|
5
5
|
type: 'object',
|
|
6
6
|
additionalProperties: { type: 'string' },
|
|
@@ -36,4 +36,17 @@ exports.AnalyticsEventSchema = {
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
|
+
exports.AnalyticsEvents = {
|
|
40
|
+
oneOf: [
|
|
41
|
+
{
|
|
42
|
+
...exports.AnalyticsEventSchema,
|
|
43
|
+
optionName: 'single',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'array',
|
|
47
|
+
items: exports.AnalyticsEventSchema,
|
|
48
|
+
optionName: 'list',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
};
|
|
39
52
|
//# sourceMappingURL=event.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"../../../../src","sources":["schema/validators/event.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;qBACjB;iBACJ;gBACD,OAAO,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;qBACjB;iBACJ;aACJ;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC","sourcesContent":["export const AnalyticsEventSchema = {\n type: 'object',\n additionalProperties: {type: 'string'},\n required: ['name'],\n properties: {\n name: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n counters: {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n include: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n exclude: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n },\n context: {\n type: 'string',\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"../../../../src","sources":["schema/validators/event.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;qBACjB;iBACJ;gBACD,OAAO,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;qBACjB;iBACJ;aACJ;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAEW,QAAA,eAAe,GAAG;IAC3B,KAAK,EAAE;QACH;YACI,GAAG,4BAAoB;YACvB,UAAU,EAAE,QAAQ;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,4BAAoB;YAC3B,UAAU,EAAE,MAAM;SACrB;KACJ;CACJ,CAAC","sourcesContent":["export const AnalyticsEventSchema = {\n type: 'object',\n additionalProperties: {type: 'string'},\n required: ['name'],\n properties: {\n name: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n counters: {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n include: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n exclude: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n },\n context: {\n type: 'string',\n },\n },\n};\n\nexport const AnalyticsEvents = {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n};\n"]}
|
|
@@ -209,7 +209,8 @@ export declare const BackgroundCard: {
|
|
|
209
209
|
type: string;
|
|
210
210
|
};
|
|
211
211
|
analyticsEvents: {
|
|
212
|
-
|
|
212
|
+
oneOf: ({
|
|
213
|
+
optionName: string;
|
|
213
214
|
type: string;
|
|
214
215
|
additionalProperties: {
|
|
215
216
|
type: string;
|
|
@@ -245,6 +246,7 @@ export declare const BackgroundCard: {
|
|
|
245
246
|
type: string;
|
|
246
247
|
};
|
|
247
248
|
};
|
|
249
|
+
items?: undefined;
|
|
248
250
|
} | {
|
|
249
251
|
type: string;
|
|
250
252
|
items: {
|
|
@@ -284,6 +286,7 @@ export declare const BackgroundCard: {
|
|
|
284
286
|
};
|
|
285
287
|
};
|
|
286
288
|
};
|
|
289
|
+
optionName: string;
|
|
287
290
|
})[];
|
|
288
291
|
};
|
|
289
292
|
};
|
|
@@ -31,19 +31,7 @@ exports.BackgroundCard = {
|
|
|
31
31
|
type: 'string',
|
|
32
32
|
enum: ['s', 'm', 'l', 'xl'],
|
|
33
33
|
},
|
|
34
|
-
analyticsEvents:
|
|
35
|
-
oneOf: [
|
|
36
|
-
{
|
|
37
|
-
...event_1.AnalyticsEventSchema,
|
|
38
|
-
optionName: 'single',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: 'array',
|
|
42
|
-
items: event_1.AnalyticsEventSchema,
|
|
43
|
-
optionName: 'list',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
34
|
+
analyticsEvents: event_1.AnalyticsEvents,
|
|
47
35
|
controlPosition: {
|
|
48
36
|
type: 'string',
|
|
49
37
|
enum: ['content', 'footer'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,6DAA+D;AAC/D,8DAMwC;AACxC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,6DAA+D;AAC/D,8DAMwC;AACxC,4DAA8D;AAC9D,iDAA8C;AAE9C,MAAM,0BAA0B,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAE7D,QAAA,cAAc,GAAG;IAC1B,iBAAiB,EAAE;QACf,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,GAAG,wBAAe;YAClB,GAAG,0BAA0B;YAC7B,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE,IAAA,kBAAS,EAAC,yBAAgB,CAAC;YACvC,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB;YACD,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;aAC9B;YACD,eAAe,EAAE,uBAAe;YAChC,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;aAC9B;YACD,QAAQ,EAAE,6BAAoB;SACjC;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageObjectProps} from '../../components/Image/schema';\nimport {\n BaseProps,\n CardBase,\n CardLayoutProps,\n containerSizesObject,\n withTheme,\n} from '../../schema/validators/common';\nimport {AnalyticsEvents} from '../../schema/validators/event';\nimport {ContentBase} from '../Content/schema';\n\nconst BackgroundCardContentProps = omit(ContentBase, ['controlPosition']);\n\nexport const BackgroundCard = {\n 'background-card': {\n additionalProperties: false,\n required: ['title', 'text'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...BackgroundCardContentProps,\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n background: withTheme(ImageObjectProps),\n backgroundColor: {\n type: 'string',\n },\n paddingBottom: {\n type: 'string',\n enum: ['s', 'm', 'l', 'xl'],\n },\n analyticsEvents: AnalyticsEvents,\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n colSizes: containerSizesObject,\n },\n },\n};\n"]}
|
|
@@ -184,7 +184,8 @@ export declare const BasicCard: {
|
|
|
184
184
|
type: string;
|
|
185
185
|
};
|
|
186
186
|
analyticsEvents: {
|
|
187
|
-
|
|
187
|
+
oneOf: ({
|
|
188
|
+
optionName: string;
|
|
188
189
|
type: string;
|
|
189
190
|
additionalProperties: {
|
|
190
191
|
type: string;
|
|
@@ -220,6 +221,7 @@ export declare const BasicCard: {
|
|
|
220
221
|
type: string;
|
|
221
222
|
};
|
|
222
223
|
};
|
|
224
|
+
items?: undefined;
|
|
223
225
|
} | {
|
|
224
226
|
type: string;
|
|
225
227
|
items: {
|
|
@@ -259,6 +261,7 @@ export declare const BasicCard: {
|
|
|
259
261
|
};
|
|
260
262
|
};
|
|
261
263
|
};
|
|
264
|
+
optionName: string;
|
|
262
265
|
})[];
|
|
263
266
|
};
|
|
264
267
|
};
|
|
@@ -43,19 +43,7 @@ exports.BasicCard = {
|
|
|
43
43
|
hoverBackgroundColor: {
|
|
44
44
|
type: 'string',
|
|
45
45
|
},
|
|
46
|
-
analyticsEvents:
|
|
47
|
-
oneOf: [
|
|
48
|
-
{
|
|
49
|
-
...event_1.AnalyticsEventSchema,
|
|
50
|
-
optionName: 'single',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: 'array',
|
|
54
|
-
items: event_1.AnalyticsEventSchema,
|
|
55
|
-
optionName: 'list',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
46
|
+
analyticsEvents: event_1.AnalyticsEvents,
|
|
59
47
|
},
|
|
60
48
|
},
|
|
61
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,6DAAyD;AACzD,8DAMwC;AACxC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,6DAAyD;AACzD,8DAMwC;AACxC,4DAA8D;AAC9D,iDAA8C;AAE9C,MAAM,qBAAqB,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEjE,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,GAAG,wBAAe;YAClB,GAAG,qBAAqB;YACxB,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE,mBAAU;YAChB,WAAW,EAAE,yBAAgB;YAC7B,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,oBAAW;aACpB;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;aACxB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;aAC9B;YACD;;eAEG;YACH,oBAAoB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACjB;YACD,eAAe,EAAE,uBAAe;SACnC;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageProps} from '../../components/Image/schema';\nimport {\n BaseProps,\n CardBase,\n CardLayoutProps,\n GravityIconProps,\n linkTargets,\n} from '../../schema/validators/common';\nimport {AnalyticsEvents} from '../../schema/validators/event';\nimport {ContentBase} from '../Content/schema';\n\nconst BasicCardContentProps = omit(ContentBase, ['theme', 'controlPosition']);\n\nexport const BasicCard = {\n 'basic-card': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...BasicCardContentProps,\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n icon: ImageProps,\n gravityIcon: GravityIconProps,\n target: {\n type: 'string',\n enum: linkTargets,\n },\n iconPosition: {\n type: 'string',\n enum: ['top', 'left'],\n },\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n /**\n * @deprecated This property will be removed in future versions\n */\n hoverBackgroundColor: {\n type: 'string',\n },\n analyticsEvents: AnalyticsEvents,\n },\n },\n};\n"]}
|
|
@@ -109,7 +109,8 @@ export declare const ContentBase: {
|
|
|
109
109
|
type: string;
|
|
110
110
|
};
|
|
111
111
|
analyticsEvents: {
|
|
112
|
-
|
|
112
|
+
oneOf: ({
|
|
113
|
+
optionName: string;
|
|
113
114
|
type: string;
|
|
114
115
|
additionalProperties: {
|
|
115
116
|
type: string;
|
|
@@ -145,6 +146,7 @@ export declare const ContentBase: {
|
|
|
145
146
|
type: string;
|
|
146
147
|
};
|
|
147
148
|
};
|
|
149
|
+
items?: undefined;
|
|
148
150
|
} | {
|
|
149
151
|
type: string;
|
|
150
152
|
items: {
|
|
@@ -184,6 +186,7 @@ export declare const ContentBase: {
|
|
|
184
186
|
};
|
|
185
187
|
};
|
|
186
188
|
};
|
|
189
|
+
optionName: string;
|
|
187
190
|
})[];
|
|
188
191
|
};
|
|
189
192
|
};
|
|
@@ -249,7 +252,11 @@ export declare const ContentBlock: {
|
|
|
249
252
|
content: {
|
|
250
253
|
additionalProperties: boolean;
|
|
251
254
|
properties: {
|
|
252
|
-
colSizes: {
|
|
255
|
+
colSizes: {
|
|
256
|
+
type: string;
|
|
257
|
+
additionalProperties: boolean;
|
|
258
|
+
properties: {};
|
|
259
|
+
};
|
|
253
260
|
centered: {
|
|
254
261
|
type: string;
|
|
255
262
|
};
|
|
@@ -282,7 +289,8 @@ export declare const ContentBlock: {
|
|
|
282
289
|
type: string;
|
|
283
290
|
};
|
|
284
291
|
analyticsEvents: {
|
|
285
|
-
|
|
292
|
+
oneOf: ({
|
|
293
|
+
optionName: string;
|
|
286
294
|
type: string;
|
|
287
295
|
additionalProperties: {
|
|
288
296
|
type: string;
|
|
@@ -318,6 +326,7 @@ export declare const ContentBlock: {
|
|
|
318
326
|
type: string;
|
|
319
327
|
};
|
|
320
328
|
};
|
|
329
|
+
items?: undefined;
|
|
321
330
|
} | {
|
|
322
331
|
type: string;
|
|
323
332
|
items: {
|
|
@@ -357,6 +366,7 @@ export declare const ContentBlock: {
|
|
|
357
366
|
};
|
|
358
367
|
};
|
|
359
368
|
};
|
|
369
|
+
optionName: string;
|
|
360
370
|
})[];
|
|
361
371
|
};
|
|
362
372
|
};
|
|
@@ -64,7 +64,7 @@ exports.ContentBlock = {
|
|
|
64
64
|
additionalProperties: false,
|
|
65
65
|
properties: {
|
|
66
66
|
...exports.ContentBase,
|
|
67
|
-
colSizes: common_1.
|
|
67
|
+
colSizes: common_1.containerSizesObject,
|
|
68
68
|
centered: {
|
|
69
69
|
type: 'boolean',
|
|
70
70
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/schema.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/schema.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,8DASwC;AACxC,4DAA4D;AAE/C,QAAA,WAAW,GAAG;IACvB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,KAAK;SACrB;QACD,IAAI,EAAE,IAAA,kBAAS,EAAC,mBAAU,CAAC;QAC3B,WAAW,EAAE,IAAA,kBAAS,EAAC,yBAAgB,CAAC;KAC3C;CACJ,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,KAAK,EAAE;QACH,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE,MAAM;aACrB;YACD;gBACI,GAAG,mBAAU;gBACb,UAAU,EAAE,SAAS;aACxB;SACJ;KACJ;IACD,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,UAAU;KACxB;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;KACrB;IACD,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,qBAAY;KACrB;IACD,KAAK,EAAE,IAAA,qBAAa,EAAC,kBAAS,CAAC;IAC/B,OAAO,EAAE,IAAA,qBAAa,EAAC,oBAAW,CAAC;IACnC,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,sBAAa;KACtB;IACD,IAAI,EAAE,IAAA,qBAAa,EAAC,mBAAW,CAAC;IAChC,eAAe,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;KAC9B;CACJ,CAAC;AAEW,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE;QACL,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,mBAAW;YACd,QAAQ,EAAE,6BAAoB;YAC9B,QAAQ,EAAE;gBACN,IAAI,EAAE,SAAS;aAClB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n ButtonBlock,\n GravityIconProps,\n LinkProps,\n TitleProps,\n containerSizesObject,\n contentSizes,\n contentThemes,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const ContentItem = {\n additionalProperties: false,\n required: [],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n icon: withTheme(ImageProps),\n gravityIcon: withTheme(GravityIconProps),\n },\n};\n\nexport const ContentBase = {\n title: {\n oneOf: [\n {\n type: 'string',\n contentType: 'text',\n optionName: 'text',\n },\n {\n ...TitleProps,\n optionName: 'options',\n },\n ],\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n additionalInfo: {\n type: 'string',\n contentType: 'yfm',\n },\n size: {\n type: 'string',\n enum: contentSizes,\n },\n links: filteredArray(LinkProps),\n buttons: filteredArray(ButtonBlock),\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n list: filteredArray(ContentItem),\n controlPosition: {\n type: 'string',\n enum: ['default', 'bottom'],\n },\n};\n\nexport const ContentBlock = {\n content: {\n additionalProperties: false,\n properties: {\n ...ContentBase,\n colSizes: containerSizesObject,\n centered: {\n type: 'boolean',\n },\n },\n },\n};\n"]}
|
|
@@ -173,7 +173,8 @@ export declare const ImageCard: {
|
|
|
173
173
|
type: string;
|
|
174
174
|
};
|
|
175
175
|
analyticsEvents: {
|
|
176
|
-
|
|
176
|
+
oneOf: ({
|
|
177
|
+
optionName: string;
|
|
177
178
|
type: string;
|
|
178
179
|
additionalProperties: {
|
|
179
180
|
type: string;
|
|
@@ -209,6 +210,7 @@ export declare const ImageCard: {
|
|
|
209
210
|
type: string;
|
|
210
211
|
};
|
|
211
212
|
};
|
|
213
|
+
items?: undefined;
|
|
212
214
|
} | {
|
|
213
215
|
type: string;
|
|
214
216
|
items: {
|
|
@@ -248,6 +250,7 @@ export declare const ImageCard: {
|
|
|
248
250
|
};
|
|
249
251
|
};
|
|
250
252
|
};
|
|
253
|
+
optionName: string;
|
|
251
254
|
})[];
|
|
252
255
|
};
|
|
253
256
|
};
|
|
@@ -42,19 +42,7 @@ exports.ImageCard = {
|
|
|
42
42
|
type: 'string',
|
|
43
43
|
enum: common_1.linkTargets,
|
|
44
44
|
},
|
|
45
|
-
analyticsEvents:
|
|
46
|
-
oneOf: [
|
|
47
|
-
{
|
|
48
|
-
...event_1.AnalyticsEventSchema,
|
|
49
|
-
optionName: 'single',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
type: 'array',
|
|
53
|
-
items: event_1.AnalyticsEventSchema,
|
|
54
|
-
optionName: 'list',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
45
|
+
analyticsEvents: event_1.AnalyticsEvents,
|
|
58
46
|
},
|
|
59
47
|
},
|
|
60
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DAMwC;AACxC,sEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,8DAMwC;AACxC,sEAA8D;AAC9D,4DAA8D;AAC9D,iDAA8C;AAE9C,MAAM,0BAA0B,GAAG,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAErF,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,GAAG,wBAAe;YAClB,GAAG,0BAA0B;YAC7B,KAAK,EAAE,IAAA,kBAAS,EAAC,uBAAU,CAAC;YAC5B,uBAAuB,EAAE;gBACrB,IAAI,EAAE,SAAS;aAClB;YACD,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;aAC9B;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;aACnB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,oBAAW;aACpB;YACD,eAAe,EAAE,uBAAe;SACnC;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {\n BaseProps,\n CardBase,\n CardLayoutProps,\n linkTargets,\n withTheme,\n} from '../../schema/validators/common';\nimport {ImageProps} from '../../schema/validators/components';\nimport {AnalyticsEvents} from '../../schema/validators/event';\nimport {ContentBase} from '../Content/schema';\n\nconst ImageCardBlockContentProps = omit(ContentBase, ['centered', 'colSizes', 'controlPosition']);\n\nexport const ImageCard = {\n 'image-card': {\n additionalProperties: false,\n required: ['image'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...ImageCardBlockContentProps,\n image: withTheme(ImageProps),\n enableImageBorderRadius: {\n type: 'boolean',\n },\n direction: {\n type: 'string',\n enum: ['direct', 'reverse'],\n },\n margins: {\n type: 'string',\n enum: ['s', 'm'],\n },\n backgroundColor: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n target: {\n type: 'string',\n enum: linkTargets,\n },\n analyticsEvents: AnalyticsEvents,\n },\n },\n};\n"]}
|
|
@@ -207,7 +207,8 @@ export declare const LayoutItem: {
|
|
|
207
207
|
type: string;
|
|
208
208
|
};
|
|
209
209
|
analyticsEvents: {
|
|
210
|
-
|
|
210
|
+
oneOf: ({
|
|
211
|
+
optionName: string;
|
|
211
212
|
type: string;
|
|
212
213
|
additionalProperties: {
|
|
213
214
|
type: string;
|
|
@@ -243,6 +244,7 @@ export declare const LayoutItem: {
|
|
|
243
244
|
type: string;
|
|
244
245
|
};
|
|
245
246
|
};
|
|
247
|
+
items?: undefined;
|
|
246
248
|
} | {
|
|
247
249
|
type: string;
|
|
248
250
|
items: {
|
|
@@ -282,6 +284,7 @@ export declare const LayoutItem: {
|
|
|
282
284
|
};
|
|
283
285
|
};
|
|
284
286
|
};
|
|
287
|
+
optionName: string;
|
|
285
288
|
})[];
|
|
286
289
|
};
|
|
287
290
|
ratio: {
|
|
@@ -349,7 +352,8 @@ export declare const LayoutItem: {
|
|
|
349
352
|
type: string;
|
|
350
353
|
};
|
|
351
354
|
analyticsEvents: {
|
|
352
|
-
|
|
355
|
+
oneOf: ({
|
|
356
|
+
optionName: string;
|
|
353
357
|
type: string;
|
|
354
358
|
additionalProperties: {
|
|
355
359
|
type: string;
|
|
@@ -385,6 +389,7 @@ export declare const LayoutItem: {
|
|
|
385
389
|
type: string;
|
|
386
390
|
};
|
|
387
391
|
};
|
|
392
|
+
items?: undefined;
|
|
388
393
|
} | {
|
|
389
394
|
type: string;
|
|
390
395
|
items: {
|
|
@@ -424,6 +429,7 @@ export declare const LayoutItem: {
|
|
|
424
429
|
};
|
|
425
430
|
};
|
|
426
431
|
};
|
|
432
|
+
optionName: string;
|
|
427
433
|
})[];
|
|
428
434
|
};
|
|
429
435
|
};
|
|
@@ -861,7 +867,8 @@ export declare const LayoutItemBlock: {
|
|
|
861
867
|
type: string;
|
|
862
868
|
};
|
|
863
869
|
analyticsEvents: {
|
|
864
|
-
|
|
870
|
+
oneOf: ({
|
|
871
|
+
optionName: string;
|
|
865
872
|
type: string;
|
|
866
873
|
additionalProperties: {
|
|
867
874
|
type: string;
|
|
@@ -897,6 +904,7 @@ export declare const LayoutItemBlock: {
|
|
|
897
904
|
type: string;
|
|
898
905
|
};
|
|
899
906
|
};
|
|
907
|
+
items?: undefined;
|
|
900
908
|
} | {
|
|
901
909
|
type: string;
|
|
902
910
|
items: {
|
|
@@ -936,6 +944,7 @@ export declare const LayoutItemBlock: {
|
|
|
936
944
|
};
|
|
937
945
|
};
|
|
938
946
|
};
|
|
947
|
+
optionName: string;
|
|
939
948
|
})[];
|
|
940
949
|
};
|
|
941
950
|
ratio: {
|
|
@@ -1003,7 +1012,8 @@ export declare const LayoutItemBlock: {
|
|
|
1003
1012
|
type: string;
|
|
1004
1013
|
};
|
|
1005
1014
|
analyticsEvents: {
|
|
1006
|
-
|
|
1015
|
+
oneOf: ({
|
|
1016
|
+
optionName: string;
|
|
1007
1017
|
type: string;
|
|
1008
1018
|
additionalProperties: {
|
|
1009
1019
|
type: string;
|
|
@@ -1039,6 +1049,7 @@ export declare const LayoutItemBlock: {
|
|
|
1039
1049
|
type: string;
|
|
1040
1050
|
};
|
|
1041
1051
|
};
|
|
1052
|
+
items?: undefined;
|
|
1042
1053
|
} | {
|
|
1043
1054
|
type: string;
|
|
1044
1055
|
items: {
|
|
@@ -1078,6 +1089,7 @@ export declare const LayoutItemBlock: {
|
|
|
1078
1089
|
};
|
|
1079
1090
|
};
|
|
1080
1091
|
};
|
|
1092
|
+
optionName: string;
|
|
1081
1093
|
})[];
|
|
1082
1094
|
};
|
|
1083
1095
|
};
|
|
@@ -66,19 +66,7 @@ exports.LayoutItem = {
|
|
|
66
66
|
type: 'string',
|
|
67
67
|
enum: common_1.linkTargets,
|
|
68
68
|
},
|
|
69
|
-
analyticsEvents:
|
|
70
|
-
oneOf: [
|
|
71
|
-
{
|
|
72
|
-
...event_1.AnalyticsEventSchema,
|
|
73
|
-
optionName: 'single',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'array',
|
|
77
|
-
items: event_1.AnalyticsEventSchema,
|
|
78
|
-
optionName: 'list',
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
},
|
|
69
|
+
analyticsEvents: event_1.AnalyticsEvents,
|
|
82
70
|
},
|
|
83
71
|
};
|
|
84
72
|
exports.LayoutItemBlock = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,6DAAyD;AACzD,yFAAwD;AACxD,kDAA0C;AAC1C,8DAMwC;AACxC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,6DAAyD;AACzD,yFAAwD;AACxD,kDAA0C;AAC1C,8DAMwC;AACxC,4DAA8D;AAC9D,iDAA4D;AAE5D,MAAM,mBAAmB,GAAG;IACxB,KAAK,EAAE,mBAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;CAC/D,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,qBAAY,CAAC,GAAG,EAAE,qBAAY,CAAC,IAAI,CAAC,CAAC;AAErE,MAAM,cAAc,GAAG;IACnB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE,mBAAmB;QAC1B,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,sBAAsB;SAC/B;KACJ;CACJ,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,mBAAU;SACzB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,oBAAW;SAC1B;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,gBAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE,IAAA,kBAAS,EAAC,cAAc,CAAC;QAC/B,GAAG,EAAE;YACD,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oBAAW;SACpB;QACD,eAAe,EAAE,uBAAe;KACnC;CACJ,CAAC;AAEW,QAAA,eAAe,GAAG;IAC3B,aAAa,EAAE,kBAAU;CAC5B,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport metaInfo from '../../components/MetaInfo/schema';\nimport {IconPosition} from '../../models';\nimport {\n BaseProps,\n CardLayoutProps,\n MediaProps,\n linkTargets,\n withTheme,\n} from '../../schema/validators/common';\nimport {AnalyticsEvents} from '../../schema/validators/event';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nconst LayoutItemIconImage = {\n oneOf: ImageProps.oneOf.filter(({type}) => type !== 'array'),\n};\n\nconst LayoutItemIconPosition = [IconPosition.Top, IconPosition.Left];\n\nconst LayoutItemIcon = {\n type: 'object',\n additionalProperties: false,\n required: ['value'],\n properties: {\n value: LayoutItemIconImage,\n position: {\n type: 'string',\n enum: LayoutItemIconPosition,\n },\n },\n};\n\nexport const LayoutItem = {\n type: 'object',\n additionalProperties: false,\n required: ['content'],\n properties: {\n ...BaseProps,\n ...CardLayoutProps,\n media: {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: MediaProps,\n },\n content: {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: ContentBase,\n },\n contentMargin: {\n type: 'string',\n enum: ['m', 'l'],\n default: 'm',\n },\n metaInfo: metaInfo,\n border: {\n type: 'boolean',\n },\n fullscreen: {\n type: 'boolean',\n },\n icon: withTheme(LayoutItemIcon),\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n target: {\n type: 'string',\n enum: linkTargets,\n },\n analyticsEvents: AnalyticsEvents,\n },\n};\n\nexport const LayoutItemBlock = {\n 'layout-item': LayoutItem,\n};\n"]}
|
|
@@ -12,19 +12,7 @@ exports.MediaCardBlock = {
|
|
|
12
12
|
...common_1.CardBase,
|
|
13
13
|
...common_1.MediaProps,
|
|
14
14
|
...common_1.AnimatableProps,
|
|
15
|
-
analyticsEvents:
|
|
16
|
-
oneOf: [
|
|
17
|
-
{
|
|
18
|
-
...event_1.AnalyticsEventSchema,
|
|
19
|
-
optionName: 'single',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
type: 'array',
|
|
23
|
-
items: event_1.AnalyticsEventSchema,
|
|
24
|
-
optionName: 'list',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
15
|
+
analyticsEvents: event_1.AnalyticsEvents,
|
|
28
16
|
},
|
|
29
17
|
},
|
|
30
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/MediaCard/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/MediaCard/schema.ts"],"names":[],"mappings":";;;AAAA,8DAAgG;AAChG,4DAA8D;AAEjD,QAAA,cAAc,GAAG;IAC1B,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,iBAAQ;YACX,GAAG,mBAAU;YACb,GAAG,wBAAe;YAClB,eAAe,EAAE,uBAAe;SACnC;KACJ;CACJ,CAAC","sourcesContent":["import {AnimatableProps, BaseProps, CardBase, MediaProps} from '../../schema/validators/common';\nimport {AnalyticsEvents} from '../../schema/validators/event';\n\nexport const MediaCardBlock = {\n 'media-card': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...MediaProps,\n ...AnimatableProps,\n analyticsEvents: AnalyticsEvents,\n },\n },\n};\n"]}
|
|
@@ -155,19 +155,7 @@ const PriceItem = {
|
|
|
155
155
|
...common_1.CardBase,
|
|
156
156
|
...PriceDetailsProps,
|
|
157
157
|
...PriceDescriptionProps,
|
|
158
|
-
analyticsEvents:
|
|
159
|
-
oneOf: [
|
|
160
|
-
{
|
|
161
|
-
...event_1.AnalyticsEventSchema,
|
|
162
|
-
optionName: 'single',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
type: 'array',
|
|
166
|
-
items: event_1.AnalyticsEventSchema,
|
|
167
|
-
optionName: 'list',
|
|
168
|
-
},
|
|
169
|
-
],
|
|
170
|
-
},
|
|
158
|
+
analyticsEvents: event_1.AnalyticsEvents,
|
|
171
159
|
},
|
|
172
160
|
};
|
|
173
161
|
/** @deprecated */
|