@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
|
@@ -33,4 +33,17 @@ export const AnalyticsEventSchema = {
|
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
|
+
export const AnalyticsEvents = {
|
|
37
|
+
oneOf: [
|
|
38
|
+
{
|
|
39
|
+
...AnalyticsEventSchema,
|
|
40
|
+
optionName: 'single',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: 'array',
|
|
44
|
+
items: AnalyticsEventSchema,
|
|
45
|
+
optionName: 'list',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
36
49
|
//# sourceMappingURL=event.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"../../../../src","sources":["schema/validators/event.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,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,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,KAAK,EAAE;QACH;YACI,GAAG,oBAAoB;YACvB,UAAU,EAAE,QAAQ;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,oBAAoB;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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import omit from "lodash/omit.js";
|
|
2
2
|
import { ImageObjectProps } from "../../components/Image/schema.js";
|
|
3
3
|
import { BaseProps, CardBase, CardLayoutProps, containerSizesObject, withTheme, } from "../../schema/validators/common.js";
|
|
4
|
-
import {
|
|
4
|
+
import { AnalyticsEvents } from "../../schema/validators/event.js";
|
|
5
5
|
import { ContentBase } from "../Content/schema.js";
|
|
6
6
|
const BackgroundCardContentProps = omit(ContentBase, ['controlPosition']);
|
|
7
7
|
export const BackgroundCard = {
|
|
@@ -27,19 +27,7 @@ export const BackgroundCard = {
|
|
|
27
27
|
type: 'string',
|
|
28
28
|
enum: ['s', 'm', 'l', 'xl'],
|
|
29
29
|
},
|
|
30
|
-
analyticsEvents:
|
|
31
|
-
oneOf: [
|
|
32
|
-
{
|
|
33
|
-
...AnalyticsEventSchema,
|
|
34
|
-
optionName: 'single',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
type: 'array',
|
|
38
|
-
items: AnalyticsEventSchema,
|
|
39
|
-
optionName: 'list',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
30
|
+
analyticsEvents: AnalyticsEvents,
|
|
43
31
|
controlPosition: {
|
|
44
32
|
type: 'string',
|
|
45
33
|
enum: ['content', 'footer'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,gBAAgB,EAAC,yCAAsC;AAC/D,OAAO,EACH,SAAS,EACT,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,gBAAgB,EAAC,yCAAsC;AAC/D,OAAO,EACH,SAAS,EACT,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,eAAe,EAAC,yCAAsC;AAC9D,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,iBAAiB,EAAE;QACf,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,GAAG,eAAe;YAClB,GAAG,0BAA0B;YAC7B,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE,SAAS,CAAC,gBAAgB,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,eAAe;YAChC,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;aAC9B;YACD,QAAQ,EAAE,oBAAoB;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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import omit from "lodash/omit.js";
|
|
2
2
|
import { ImageProps } from "../../components/Image/schema.js";
|
|
3
3
|
import { BaseProps, CardBase, CardLayoutProps, GravityIconProps, linkTargets, } from "../../schema/validators/common.js";
|
|
4
|
-
import {
|
|
4
|
+
import { AnalyticsEvents } from "../../schema/validators/event.js";
|
|
5
5
|
import { ContentBase } from "../Content/schema.js";
|
|
6
6
|
const BasicCardContentProps = omit(ContentBase, ['theme', 'controlPosition']);
|
|
7
7
|
export const BasicCard = {
|
|
@@ -39,19 +39,7 @@ export const BasicCard = {
|
|
|
39
39
|
hoverBackgroundColor: {
|
|
40
40
|
type: 'string',
|
|
41
41
|
},
|
|
42
|
-
analyticsEvents:
|
|
43
|
-
oneOf: [
|
|
44
|
-
{
|
|
45
|
-
...AnalyticsEventSchema,
|
|
46
|
-
optionName: 'single',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: 'array',
|
|
50
|
-
items: AnalyticsEventSchema,
|
|
51
|
-
optionName: 'list',
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
42
|
+
analyticsEvents: AnalyticsEvents,
|
|
55
43
|
},
|
|
56
44
|
},
|
|
57
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,SAAS,EACT,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,WAAW,GACd,0CAAuC;AACxC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,SAAS,EACT,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,WAAW,GACd,0CAAuC;AACxC,OAAO,EAAC,eAAe,EAAC,yCAAsC;AAC9D,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,GAAG,eAAe;YAClB,GAAG,qBAAqB;YACxB,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,WAAW;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,eAAe;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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import omit from "lodash/omit.js";
|
|
2
2
|
import { BaseProps, CardBase, CardLayoutProps, linkTargets, withTheme, } from "../../schema/validators/common.js";
|
|
3
3
|
import { ImageProps } from "../../schema/validators/components.js";
|
|
4
|
-
import {
|
|
4
|
+
import { AnalyticsEvents } from "../../schema/validators/event.js";
|
|
5
5
|
import { ContentBase } from "../Content/schema.js";
|
|
6
6
|
const ImageCardBlockContentProps = omit(ContentBase, ['centered', 'colSizes', 'controlPosition']);
|
|
7
7
|
export const ImageCard = {
|
|
@@ -38,19 +38,7 @@ export const ImageCard = {
|
|
|
38
38
|
type: 'string',
|
|
39
39
|
enum: linkTargets,
|
|
40
40
|
},
|
|
41
|
-
analyticsEvents:
|
|
42
|
-
oneOf: [
|
|
43
|
-
{
|
|
44
|
-
...AnalyticsEventSchema,
|
|
45
|
-
optionName: 'single',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: 'array',
|
|
49
|
-
items: AnalyticsEventSchema,
|
|
50
|
-
optionName: 'list',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
41
|
+
analyticsEvents: AnalyticsEvents,
|
|
54
42
|
},
|
|
55
43
|
},
|
|
56
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EACH,SAAS,EACT,QAAQ,EAC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AE,WAAW;aACpB;YACD,eAAe,EAAE,eAAe;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
|
};
|
|
@@ -2,7 +2,7 @@ import { ImageProps } from "../../components/Image/schema.js";
|
|
|
2
2
|
import metaInfo from "../../components/MetaInfo/schema.js";
|
|
3
3
|
import { IconPosition } from "../../models/index.js";
|
|
4
4
|
import { BaseProps, CardLayoutProps, MediaProps, linkTargets, withTheme, } from "../../schema/validators/common.js";
|
|
5
|
-
import {
|
|
5
|
+
import { AnalyticsEvents } from "../../schema/validators/event.js";
|
|
6
6
|
import { ContentBase } from "../Content/schema.js";
|
|
7
7
|
const LayoutItemIconImage = {
|
|
8
8
|
oneOf: ImageProps.oneOf.filter(({ type }) => type !== 'array'),
|
|
@@ -62,19 +62,7 @@ export const LayoutItem = {
|
|
|
62
62
|
type: 'string',
|
|
63
63
|
enum: linkTargets,
|
|
64
64
|
},
|
|
65
|
-
analyticsEvents:
|
|
66
|
-
oneOf: [
|
|
67
|
-
{
|
|
68
|
-
...AnalyticsEventSchema,
|
|
69
|
-
optionName: 'single',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: 'array',
|
|
73
|
-
items: AnalyticsEventSchema,
|
|
74
|
-
optionName: 'list',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
65
|
+
analyticsEvents: AnalyticsEvents,
|
|
78
66
|
},
|
|
79
67
|
};
|
|
80
68
|
export const LayoutItemBlock = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,QAAQ,4CAAyC;AACxD,OAAO,EAAC,YAAY,EAAC,8BAAqB;AAC1C,OAAO,EACH,SAAS,EACT,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,QAAQ,4CAAyC;AACxD,OAAO,EAAC,YAAY,EAAC,8BAAqB;AAC1C,OAAO,EACH,SAAS,EACT,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,eAAe,EAAC,yCAAsC;AAC9D,OAAO,EAAC,WAAW,EAAC,6BAAwC;AAE5D,MAAM,mBAAmB,GAAG;IACxB,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;CAC/D,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,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;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,GAAG,SAAS;QACZ,GAAG,eAAe;QAClB,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,UAAU;SACzB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,WAAW;SAC1B;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE,SAAS,CAAC,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,WAAW;SACpB;QACD,eAAe,EAAE,eAAe;KACnC;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,aAAa,EAAE,UAAU;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"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnimatableProps, BaseProps, CardBase, MediaProps } from "../../schema/validators/common.js";
|
|
2
|
-
import {
|
|
2
|
+
import { AnalyticsEvents } from "../../schema/validators/event.js";
|
|
3
3
|
export const MediaCardBlock = {
|
|
4
4
|
'media-card': {
|
|
5
5
|
additionalProperties: false,
|
|
@@ -9,19 +9,7 @@ export const MediaCardBlock = {
|
|
|
9
9
|
...CardBase,
|
|
10
10
|
...MediaProps,
|
|
11
11
|
...AnimatableProps,
|
|
12
|
-
analyticsEvents:
|
|
13
|
-
oneOf: [
|
|
14
|
-
{
|
|
15
|
-
...AnalyticsEventSchema,
|
|
16
|
-
optionName: 'single',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
type: 'array',
|
|
20
|
-
items: AnalyticsEventSchema,
|
|
21
|
-
optionName: 'list',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
12
|
+
analyticsEvents: AnalyticsEvents,
|
|
25
13
|
},
|
|
26
14
|
},
|
|
27
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/MediaCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAC,0CAAuC;AAChG,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/MediaCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAC,0CAAuC;AAChG,OAAO,EAAC,eAAe,EAAC,yCAAsC;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,GAAG,UAAU;YACb,GAAG,eAAe;YAClB,eAAe,EAAE,eAAe;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"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnimatableProps, BaseProps, CardBase, textSize } from "../../schema/validators/common.js";
|
|
2
|
-
import {
|
|
2
|
+
import { AnalyticsEvents } from "../../schema/validators/event.js";
|
|
3
3
|
import { filteredArray } from "../../schema/validators/utils.js";
|
|
4
4
|
const PriceDetailedDetailsType = ['marked-list', 'settings'];
|
|
5
5
|
const PriceDetailedDescriptionColor = ['cornflower', 'black'];
|
|
@@ -152,19 +152,7 @@ const PriceItem = {
|
|
|
152
152
|
...CardBase,
|
|
153
153
|
...PriceDetailsProps,
|
|
154
154
|
...PriceDescriptionProps,
|
|
155
|
-
analyticsEvents:
|
|
156
|
-
oneOf: [
|
|
157
|
-
{
|
|
158
|
-
...AnalyticsEventSchema,
|
|
159
|
-
optionName: 'single',
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
type: 'array',
|
|
163
|
-
items: AnalyticsEventSchema,
|
|
164
|
-
optionName: 'list',
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
},
|
|
155
|
+
analyticsEvents: AnalyticsEvents,
|
|
168
156
|
},
|
|
169
157
|
};
|
|
170
158
|
/** @deprecated */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,0CAAuC;AAC9F,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,0CAAuC;AAC9F,OAAO,EAAC,eAAe,EAAC,yCAAsC;AAC9D,OAAO,EAAC,aAAa,EAAC,yCAAsC;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,CAA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B;iBAC3B,CAAC;gBACF,UAAU,EAAE,aAAa;aAC5B;YACD;gBACI,GAAG,aAAa,CAAC;oBACb,GAAG,yBAAyB;iBAC/B,CAAC;gBACF,UAAU,EAAE,UAAU;aACzB;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC;IAClC,UAAU,EAAE;QACR,GAAG,QAAQ;QACX,GAAG,iBAAiB;QACpB,GAAG,qBAAqB;QACxB,eAAe,EAAE,eAAe;KACnC;CACJ,CAAC;AAEF,kBAAkB;AAClB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,gBAAgB,EAAE;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,eAAe;YAClB,KAAK,EAAE,aAAa,CAAC,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"]}
|