@gravity-ui/page-constructor 8.23.1 → 8.23.3
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 +4 -172
- 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 +12 -3
- package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -2
- 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 +8 -2
- 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 +4 -172
- 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 +12 -3
- package/build/esm/containers/PageConstructor/PageConstructor.css +1 -2
- 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 +8 -2
- 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/styles/root.scss +1 -2
- package/widget/index.js +1 -1
|
@@ -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
|
};
|
|
@@ -286,7 +289,8 @@ export declare const ContentBlock: {
|
|
|
286
289
|
type: string;
|
|
287
290
|
};
|
|
288
291
|
analyticsEvents: {
|
|
289
|
-
|
|
292
|
+
oneOf: ({
|
|
293
|
+
optionName: string;
|
|
290
294
|
type: string;
|
|
291
295
|
additionalProperties: {
|
|
292
296
|
type: string;
|
|
@@ -322,6 +326,7 @@ export declare const ContentBlock: {
|
|
|
322
326
|
type: string;
|
|
323
327
|
};
|
|
324
328
|
};
|
|
329
|
+
items?: undefined;
|
|
325
330
|
} | {
|
|
326
331
|
type: string;
|
|
327
332
|
items: {
|
|
@@ -361,6 +366,7 @@ export declare const ContentBlock: {
|
|
|
361
366
|
};
|
|
362
367
|
};
|
|
363
368
|
};
|
|
369
|
+
optionName: string;
|
|
364
370
|
})[];
|
|
365
371
|
};
|
|
366
372
|
};
|
|
@@ -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;IAC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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 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":";;;AAAA,8DAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":";;;AAAA,8DAA8F;AAC9F,4DAA8D;AAC9D,4DAA4D;AAE5D,MAAM,wBAAwB,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAC7D,MAAM,6BAA6B,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC9D,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAErE,MAAM,qBAAqB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;IACxE,OAAO;QACH,GAAG,MAAM;QACT,CAAC,UAAU,CAAC,EAAE;YACV,IAAI,EAAE,QAAQ;SACjB;KACJ,CAAC;AACN,CAAC,EAAE,EAAE,CAAC,CAAC;AAEP,MAAM,mCAAmC,GAAG;IACxC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,qBAAqB;CACpC,CAAC;AAEF,MAAM,iCAAiC,GAAG;IACtC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iBAAQ;SACj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AAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,kBAAS;YACZ,GAAG,wBAAe;YAClB,KAAK,EAAE,IAAA,qBAAa,EAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,6BAA6B;YAC1C,OAAO,EAAE,yBAAyB;YAClC,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,wBAAwB;gBAC9B,OAAO,EAAE,UAAU;aACtB;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aAClB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,SAAS;aAClB;YACD,QAAQ,EAAE,iCAAiC;YAC3C,iBAAiB,EAAE,mCAAmC;SACzD;KACJ;CACJ,CAAC","sourcesContent":["import {AnimatableProps, BaseProps, CardBase, textSize} from '../../schema/validators/common';\nimport {AnalyticsEvents} from '../../schema/validators/event';\nimport {filteredArray} from '../../schema/validators/utils';\n\nconst PriceDetailedDetailsType = ['marked-list', 'settings'];\nconst PriceDetailedDescriptionColor = ['cornflower', 'black'];\nconst PriceLabelColor = ['blue', 'green', 'yellow', 'purple', 'red'];\n\nconst LabelsDefaultTextProp = PriceLabelColor.reduce((result, labelColor) => {\n return {\n ...result,\n [labelColor]: {\n type: 'string',\n },\n };\n}, {});\n\nconst PriceDetailedLabelsDefaultTextProps = {\n additionalProperties: false,\n required: [],\n properties: LabelsDefaultTextProp,\n};\n\nconst PriceDetailedFoldableDetailsProps = {\n additionalProperties: false,\n required: ['title'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n titleColor: {\n type: 'string',\n enum: PriceDetailedDescriptionColor,\n },\n },\n};\n\nconst PriceDetailedDetailsProps = {\n additionalProperties: false,\n required: [],\n properties: {\n titleSize: {\n type: 'string',\n enum: textSize,\n },\n descriptionSize: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nconst PriceDetailedDescriptionProps = {\n additionalProperties: false,\n required: [],\n properties: {\n titleSize: {\n type: 'string',\n enum: textSize,\n },\n descriptionSize: {\n type: 'string',\n enum: textSize,\n },\n titleColor: {\n type: 'string',\n enum: PriceDetailedDescriptionColor,\n },\n },\n};\n\nconst PriceDescriptionLabelProps = {\n additionalProperties: false,\n required: ['color'],\n properties: {\n color: {\n type: 'string',\n enum: PriceLabelColor,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n size: {\n type: 'string',\n enum: textSize,\n },\n },\n};\n\nconst PriceDescriptionProps = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n detailedTitle: {\n type: 'string',\n contentType: 'text',\n },\n label: PriceDescriptionLabelProps,\n};\n\nconst PriceDetailsSettingsProps = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'description'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nconst PriceDetailsListProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nconst PriceDetailsProps = {\n items: {\n oneOf: [\n {\n ...filteredArray({\n ...PriceDetailsListProps,\n }),\n optionName: 'marked-list',\n },\n {\n ...filteredArray({\n ...PriceDetailsSettingsProps,\n }),\n optionName: 'settings',\n },\n ],\n },\n};\n\nconst PriceItem = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'description'],\n properties: {\n ...CardBase,\n ...PriceDetailsProps,\n ...PriceDescriptionProps,\n analyticsEvents: AnalyticsEvents,\n },\n};\n\n/** @deprecated */\nexport const PriceDetailedBlock = {\n 'price-detailed': {\n additionalProperties: false,\n required: ['items'],\n properties: {\n ...BaseProps,\n ...AnimatableProps,\n items: filteredArray(PriceItem),\n description: PriceDetailedDescriptionProps,\n details: PriceDetailedDetailsProps,\n priceType: {\n type: 'string',\n enum: PriceDetailedDetailsType,\n default: 'settings',\n },\n numberGroupItems: {\n type: 'number',\n enum: [3, 4, 5],\n },\n isCombined: {\n type: 'boolean',\n },\n useMixedView: {\n type: 'boolean',\n },\n foldable: PriceDetailedFoldableDetailsProps,\n labelsDefaultText: PriceDetailedLabelsDefaultTextProps,\n },\n },\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnimatableProps, BaseProps, ButtonBlock, ThemeProps, mediaView, withTheme, } from "../../schema/validators/common.js";
|
|
2
2
|
export const BannerCardProps = {
|
|
3
3
|
additionalProperties: false,
|
|
4
|
-
required: ['title'
|
|
4
|
+
required: ['title'],
|
|
5
5
|
properties: {
|
|
6
6
|
...BaseProps,
|
|
7
7
|
...AnimatableProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Banner/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,GACZ,0CAAuC;AAExC,MAAM,CAAC,MAAM,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,OAAO,EACH,eAAe,EACf,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,GACZ,0CAAuC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,GAAG,SAAS;QACZ,GAAG,eAAe;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,SAAS,CAAC;YACb,IAAI,EAAE,QAAQ;SACjB,CAAC;QACF,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,SAAS;SAClB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,SAAS;SAClB;QACD,KAAK,EAAE,SAAS,CAAC;YACb,IAAI,EAAE,QAAQ;SACjB,CAAC;QACF,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SACxB;QACD,MAAM,EAAE,WAAW;KACtB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE,eAAe;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,aAAa,EAAE,eAAe;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
|
};
|