@gravity-ui/page-constructor 8.19.0 → 8.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/blocks/Banner/schema.d.ts +3 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +529 -195
- package/build/cjs/blocks/CardLayout/schema.js +12 -13
- package/build/cjs/blocks/CardLayout/schema.js.map +1 -1
- package/build/cjs/blocks/Companies/schema.d.ts +88 -3
- package/build/cjs/blocks/Companies/schema.js +5 -20
- package/build/cjs/blocks/Companies/schema.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +258 -194
- package/build/cjs/blocks/ContentLayout/schema.js +1 -1
- package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +311 -39
- package/build/cjs/blocks/ExtendedFeatures/schema.js +18 -19
- package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/cjs/blocks/Footer/schema.d.ts +3 -6
- package/build/cjs/blocks/Form/schema.d.ts +197 -15
- package/build/cjs/blocks/Form/schema.js +15 -3
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +461 -206
- package/build/cjs/blocks/Header/schema.js +18 -2
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +150 -71
- package/build/cjs/blocks/Hero/schema.d.ts +19 -437
- package/build/cjs/blocks/Hero/schema.js +12 -3
- package/build/cjs/blocks/Hero/schema.js.map +1 -1
- package/build/cjs/blocks/Icons/Icons.js.map +1 -1
- package/build/cjs/blocks/Icons/schema.js +1 -1
- package/build/cjs/blocks/Icons/schema.js.map +1 -1
- package/build/cjs/blocks/Info/schema.d.ts +49 -1
- package/build/cjs/blocks/Info/schema.js +2 -2
- package/build/cjs/blocks/Info/schema.js.map +1 -1
- package/build/cjs/blocks/Map/schema.d.ts +7 -2
- package/build/cjs/blocks/Map/schema.js +1 -1
- package/build/cjs/blocks/Map/schema.js.map +1 -1
- package/build/cjs/blocks/Media/schema.d.ts +20 -9
- package/build/cjs/blocks/Media/schema.js +15 -2
- package/build/cjs/blocks/Media/schema.js.map +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
- package/build/cjs/blocks/Table/schema.d.ts +1 -0
- package/build/cjs/blocks/Table/schema.js +1 -0
- package/build/cjs/blocks/Table/schema.js.map +1 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +7 -6
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/Tabs/schema.js.map +1 -1
- package/build/cjs/components/Author/schema.d.ts +1 -2
- package/build/cjs/components/Image/schema.d.ts +33 -8
- package/build/cjs/components/Image/schema.js +22 -22
- package/build/cjs/components/Image/schema.js.map +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +1 -1
- package/build/cjs/models/constructor-items/common.js.map +1 -1
- package/build/cjs/navigation/schema.d.ts +1 -2
- package/build/cjs/navigation/schema.js +1 -0
- package/build/cjs/navigation/schema.js.map +1 -1
- package/build/cjs/schema/constants.d.ts +940 -29
- package/build/cjs/schema/constants.js +36 -40
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/validators/common.d.ts +11 -8
- package/build/cjs/schema/validators/common.js +10 -6
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +82 -2
- package/build/cjs/sub-blocks/BasicCard/schema.js +15 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/schema.d.ts +2 -5
- package/build/cjs/sub-blocks/Content/schema.js +1 -8
- package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +33 -17
- package/build/cjs/sub-blocks/ImageCard/schema.js +8 -1
- package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1023 -312
- package/build/cjs/sub-blocks/LayoutItem/schema.js +40 -9
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +2 -4
- package/build/cjs/sub-blocks/PriceCard/schema.d.ts +5 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/schema.d.ts +164 -6
- package/build/cjs/sub-blocks/Quote/schema.js +2 -0
- package/build/cjs/sub-blocks/Quote/schema.js.map +1 -1
- package/build/docs/blocks/Hero.md +15 -15
- package/build/docs/blocks/Icons.md +2 -2
- package/build/docs/blocks/Media.md +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +3 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +529 -195
- package/build/esm/blocks/CardLayout/schema.js +14 -15
- package/build/esm/blocks/CardLayout/schema.js.map +1 -1
- package/build/esm/blocks/Companies/schema.d.ts +88 -3
- package/build/esm/blocks/Companies/schema.js +5 -21
- package/build/esm/blocks/Companies/schema.js.map +1 -1
- package/build/esm/blocks/ContentLayout/schema.d.ts +258 -194
- package/build/esm/blocks/ContentLayout/schema.js +2 -2
- package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +311 -39
- package/build/esm/blocks/ExtendedFeatures/schema.js +17 -18
- package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/esm/blocks/Footer/schema.d.ts +3 -6
- package/build/esm/blocks/Form/schema.d.ts +197 -15
- package/build/esm/blocks/Form/schema.js +17 -5
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +446 -191
- package/build/esm/blocks/Header/schema.js +19 -3
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +150 -71
- package/build/esm/blocks/Hero/schema.d.ts +19 -437
- package/build/esm/blocks/Hero/schema.js +12 -3
- package/build/esm/blocks/Hero/schema.js.map +1 -1
- package/build/esm/blocks/Icons/Icons.js.map +1 -1
- package/build/esm/blocks/Icons/schema.js +1 -1
- package/build/esm/blocks/Icons/schema.js.map +1 -1
- package/build/esm/blocks/Info/schema.d.ts +49 -1
- package/build/esm/blocks/Info/schema.js +3 -3
- package/build/esm/blocks/Info/schema.js.map +1 -1
- package/build/esm/blocks/Map/schema.d.ts +7 -2
- package/build/esm/blocks/Map/schema.js +1 -1
- package/build/esm/blocks/Map/schema.js.map +1 -1
- package/build/esm/blocks/Media/schema.d.ts +20 -9
- package/build/esm/blocks/Media/schema.js +16 -3
- package/build/esm/blocks/Media/schema.js.map +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
- package/build/esm/blocks/Table/schema.d.ts +1 -0
- package/build/esm/blocks/Table/schema.js +1 -0
- package/build/esm/blocks/Table/schema.js.map +1 -1
- package/build/esm/blocks/Tabs/schema.d.ts +7 -6
- package/build/esm/blocks/Tabs/schema.js +2 -2
- package/build/esm/blocks/Tabs/schema.js.map +1 -1
- package/build/esm/components/Author/schema.d.ts +1 -2
- package/build/esm/components/Image/schema.d.ts +33 -8
- package/build/esm/components/Image/schema.js +22 -22
- package/build/esm/components/Image/schema.js.map +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +6 -5
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor-items/common.d.ts +1 -1
- package/build/esm/models/constructor-items/common.js.map +1 -1
- package/build/esm/navigation/schema.d.ts +1 -2
- package/build/esm/navigation/schema.js +2 -1
- package/build/esm/navigation/schema.js.map +1 -1
- package/build/esm/schema/constants.d.ts +940 -29
- package/build/esm/schema/constants.js +37 -41
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/validators/common.d.ts +11 -8
- package/build/esm/schema/validators/common.js +8 -4
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +82 -2
- package/build/esm/sub-blocks/BasicCard/schema.js +16 -2
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/schema.d.ts +2 -5
- package/build/esm/sub-blocks/Content/schema.js +1 -8
- package/build/esm/sub-blocks/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +33 -17
- package/build/esm/sub-blocks/ImageCard/schema.js +9 -2
- package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1023 -312
- package/build/esm/sub-blocks/LayoutItem/schema.js +37 -6
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +2 -4
- package/build/esm/sub-blocks/PriceCard/schema.d.ts +5 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.js +2 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/esm/sub-blocks/Quote/schema.d.ts +164 -6
- package/build/esm/sub-blocks/Quote/schema.js +3 -1
- package/build/esm/sub-blocks/Quote/schema.js.map +1 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +6 -5
- package/server/models/constructor-items/common.d.ts +1 -1
- package/widget/index.js +1 -1
|
@@ -1,17 +1,44 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ImageProps } from "../../components/Image/schema.js";
|
|
2
2
|
import metaInfo from "../../components/MetaInfo/schema.js";
|
|
3
|
-
import {
|
|
3
|
+
import { IconPosition } from "../../models/index.js";
|
|
4
|
+
import { BaseProps, CardLayoutProps, MediaProps, linkTargets, withTheme, } from "../../schema/validators/common.js";
|
|
4
5
|
import { AnalyticsEventSchema } from "../../schema/validators/event.js";
|
|
5
6
|
import { ContentBase } from "../Content/schema.js";
|
|
7
|
+
const LayoutItemIconImage = {
|
|
8
|
+
oneOf: ImageProps.oneOf.filter(({ type }) => type !== 'array'),
|
|
9
|
+
};
|
|
10
|
+
const LayoutItemIconPosition = [IconPosition.Top, IconPosition.Left];
|
|
11
|
+
const LayoutItemIcon = {
|
|
12
|
+
type: 'object',
|
|
13
|
+
additionalProperties: false,
|
|
14
|
+
required: ['value'],
|
|
15
|
+
properties: {
|
|
16
|
+
value: LayoutItemIconImage,
|
|
17
|
+
position: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: LayoutItemIconPosition,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
6
23
|
export const LayoutItem = {
|
|
7
24
|
type: 'object',
|
|
8
25
|
additionalProperties: false,
|
|
9
|
-
required: ['content'
|
|
26
|
+
required: ['content'],
|
|
10
27
|
properties: {
|
|
11
28
|
...BaseProps,
|
|
12
29
|
...CardLayoutProps,
|
|
13
|
-
media:
|
|
14
|
-
|
|
30
|
+
media: {
|
|
31
|
+
type: 'object',
|
|
32
|
+
additionalProperties: false,
|
|
33
|
+
required: [],
|
|
34
|
+
properties: MediaProps,
|
|
35
|
+
},
|
|
36
|
+
content: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
additionalProperties: false,
|
|
39
|
+
required: [],
|
|
40
|
+
properties: ContentBase,
|
|
41
|
+
},
|
|
15
42
|
contentMargin: {
|
|
16
43
|
type: 'string',
|
|
17
44
|
enum: ['m', 'l'],
|
|
@@ -24,6 +51,7 @@ export const LayoutItem = {
|
|
|
24
51
|
fullscreen: {
|
|
25
52
|
type: 'boolean',
|
|
26
53
|
},
|
|
54
|
+
icon: withTheme(LayoutItemIcon),
|
|
27
55
|
url: {
|
|
28
56
|
type: 'string',
|
|
29
57
|
},
|
|
@@ -32,7 +60,7 @@ export const LayoutItem = {
|
|
|
32
60
|
},
|
|
33
61
|
target: {
|
|
34
62
|
type: 'string',
|
|
35
|
-
enum:
|
|
63
|
+
enum: linkTargets,
|
|
36
64
|
},
|
|
37
65
|
analyticsEvents: {
|
|
38
66
|
oneOf: [
|
|
@@ -49,4 +77,7 @@ export const LayoutItem = {
|
|
|
49
77
|
},
|
|
50
78
|
},
|
|
51
79
|
};
|
|
80
|
+
export const LayoutItemBlock = {
|
|
81
|
+
'layout-item': LayoutItem,
|
|
82
|
+
};
|
|
52
83
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,oBAAoB,EAAC,yCAAsC;AACnE,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/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MetaInfo/schema';\nimport {IconPosition} from '../../models';\nimport {\n BaseProps,\n CardLayoutProps,\n MediaProps,\n linkTargets,\n withTheme,\n} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} 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: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n\nexport const LayoutItemBlock = {\n 'layout-item': LayoutItem,\n};\n"]}
|
|
@@ -101,9 +101,9 @@ export declare const MediaCardBlock: {
|
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
} | {
|
|
104
|
+
optionName: string;
|
|
104
105
|
type: string;
|
|
105
106
|
pattern: string;
|
|
106
|
-
optionName: string;
|
|
107
107
|
items?: undefined;
|
|
108
108
|
} | {
|
|
109
109
|
type: string;
|
|
@@ -116,7 +116,6 @@ export declare const MediaCardBlock: {
|
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
optionName: string;
|
|
119
|
-
pattern?: undefined;
|
|
120
119
|
})[];
|
|
121
120
|
type?: undefined;
|
|
122
121
|
items?: undefined;
|
|
@@ -131,9 +130,9 @@ export declare const MediaCardBlock: {
|
|
|
131
130
|
};
|
|
132
131
|
};
|
|
133
132
|
} | {
|
|
133
|
+
optionName: string;
|
|
134
134
|
type: string;
|
|
135
135
|
pattern: string;
|
|
136
|
-
optionName: string;
|
|
137
136
|
items?: undefined;
|
|
138
137
|
} | {
|
|
139
138
|
type: string;
|
|
@@ -146,7 +145,6 @@ export declare const MediaCardBlock: {
|
|
|
146
145
|
};
|
|
147
146
|
};
|
|
148
147
|
optionName: string;
|
|
149
|
-
pattern?: undefined;
|
|
150
148
|
})[];
|
|
151
149
|
};
|
|
152
150
|
optionName: string;
|
|
@@ -171,6 +171,7 @@ export declare const PriceCardBlock: {
|
|
|
171
171
|
theme: {
|
|
172
172
|
enum: string[];
|
|
173
173
|
};
|
|
174
|
+
required: string[];
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
177
|
then: {
|
|
@@ -213,6 +214,10 @@ export declare const PriceCardBlock: {
|
|
|
213
214
|
type: string;
|
|
214
215
|
enum: string[];
|
|
215
216
|
};
|
|
217
|
+
colorTheme: {
|
|
218
|
+
type: string;
|
|
219
|
+
enum: string[];
|
|
220
|
+
};
|
|
216
221
|
analyticsEvents: {
|
|
217
222
|
oneOf: ({
|
|
218
223
|
optionName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimatableProps, BaseProps, textSize } from "../../schema/validators/common.js";
|
|
1
|
+
import { AnimatableProps, BaseProps, CardBase, textSize } from "../../schema/validators/common.js";
|
|
2
2
|
import { AnalyticsEventSchema } from "../../schema/validators/event.js";
|
|
3
3
|
import { filteredArray } from "../../schema/validators/utils.js";
|
|
4
4
|
const PriceDetailedDetailsType = ['marked-list', 'settings'];
|
|
@@ -149,6 +149,7 @@ const PriceItem = {
|
|
|
149
149
|
additionalProperties: false,
|
|
150
150
|
required: ['title', 'description'],
|
|
151
151
|
properties: {
|
|
152
|
+
...CardBase,
|
|
152
153
|
...PriceDetailsProps,
|
|
153
154
|
...PriceDescriptionProps,
|
|
154
155
|
analyticsEvents: {
|
|
@@ -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,EAAC,0CAAuC;
|
|
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,oBAAoB,EAAC,yCAAsC;AACnE,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,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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R,GAAG,QAAQ;QACX,GAAG,iBAAiB;QACpB,GAAG,qBAAqB;QACxB,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,oBAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;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 {AnalyticsEventSchema} 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: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\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"]}
|
|
@@ -21,9 +21,9 @@ export declare const Quote: {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
} | {
|
|
24
|
+
optionName: string;
|
|
24
25
|
type: string;
|
|
25
26
|
pattern: string;
|
|
26
|
-
optionName: string;
|
|
27
27
|
items?: undefined;
|
|
28
28
|
} | {
|
|
29
29
|
type: string;
|
|
@@ -36,7 +36,6 @@ export declare const Quote: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
optionName: string;
|
|
39
|
-
pattern?: undefined;
|
|
40
39
|
})[];
|
|
41
40
|
} & {
|
|
42
41
|
optionName: string;
|
|
@@ -57,9 +56,9 @@ export declare const Quote: {
|
|
|
57
56
|
};
|
|
58
57
|
};
|
|
59
58
|
} | {
|
|
59
|
+
optionName: string;
|
|
60
60
|
type: string;
|
|
61
61
|
pattern: string;
|
|
62
|
-
optionName: string;
|
|
63
62
|
items?: undefined;
|
|
64
63
|
} | {
|
|
65
64
|
type: string;
|
|
@@ -72,7 +71,6 @@ export declare const Quote: {
|
|
|
72
71
|
};
|
|
73
72
|
};
|
|
74
73
|
optionName: string;
|
|
75
|
-
pattern?: undefined;
|
|
76
74
|
})[];
|
|
77
75
|
};
|
|
78
76
|
color: {
|
|
@@ -87,6 +85,163 @@ export declare const Quote: {
|
|
|
87
85
|
buttonText: {
|
|
88
86
|
type: string;
|
|
89
87
|
};
|
|
88
|
+
button: {
|
|
89
|
+
type: string;
|
|
90
|
+
additionalProperties: boolean;
|
|
91
|
+
properties: {
|
|
92
|
+
text: {
|
|
93
|
+
type: string;
|
|
94
|
+
contentType: string;
|
|
95
|
+
};
|
|
96
|
+
url: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
urlTitle: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
primary: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
size: {
|
|
106
|
+
type: string;
|
|
107
|
+
enum: string[];
|
|
108
|
+
};
|
|
109
|
+
theme: {
|
|
110
|
+
type: string;
|
|
111
|
+
enum: string[];
|
|
112
|
+
};
|
|
113
|
+
img: {
|
|
114
|
+
oneOf: ({
|
|
115
|
+
type: string;
|
|
116
|
+
optionName: string;
|
|
117
|
+
additionalProperties?: undefined;
|
|
118
|
+
required?: undefined;
|
|
119
|
+
properties?: undefined;
|
|
120
|
+
} | {
|
|
121
|
+
type: string;
|
|
122
|
+
additionalProperties: boolean;
|
|
123
|
+
required: string[];
|
|
124
|
+
properties: {
|
|
125
|
+
data: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
position: {
|
|
129
|
+
type: string;
|
|
130
|
+
enum: string[];
|
|
131
|
+
};
|
|
132
|
+
alt: {
|
|
133
|
+
type: string;
|
|
134
|
+
contentType: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
optionName: string;
|
|
138
|
+
})[];
|
|
139
|
+
};
|
|
140
|
+
analyticsEvents: {
|
|
141
|
+
oneOf: ({
|
|
142
|
+
optionName: string;
|
|
143
|
+
type: string;
|
|
144
|
+
additionalProperties: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
required: string[];
|
|
148
|
+
properties: {
|
|
149
|
+
name: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
type: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
counters: {
|
|
156
|
+
type: string;
|
|
157
|
+
additionalProperties: boolean;
|
|
158
|
+
required: never[];
|
|
159
|
+
properties: {
|
|
160
|
+
include: {
|
|
161
|
+
type: string;
|
|
162
|
+
items: {
|
|
163
|
+
type: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
exclude: {
|
|
167
|
+
type: string;
|
|
168
|
+
items: {
|
|
169
|
+
type: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
context: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
items?: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
type: string;
|
|
181
|
+
items: {
|
|
182
|
+
type: string;
|
|
183
|
+
additionalProperties: {
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
required: string[];
|
|
187
|
+
properties: {
|
|
188
|
+
name: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
type: {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
counters: {
|
|
195
|
+
type: string;
|
|
196
|
+
additionalProperties: boolean;
|
|
197
|
+
required: never[];
|
|
198
|
+
properties: {
|
|
199
|
+
include: {
|
|
200
|
+
type: string;
|
|
201
|
+
items: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
exclude: {
|
|
206
|
+
type: string;
|
|
207
|
+
items: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
context: {
|
|
214
|
+
type: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
optionName: string;
|
|
219
|
+
})[];
|
|
220
|
+
};
|
|
221
|
+
target: {
|
|
222
|
+
type: string;
|
|
223
|
+
enum: string[];
|
|
224
|
+
};
|
|
225
|
+
width: {
|
|
226
|
+
type: string;
|
|
227
|
+
enum: string[];
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
if: {
|
|
231
|
+
properties: {
|
|
232
|
+
theme: {
|
|
233
|
+
enum: string[];
|
|
234
|
+
};
|
|
235
|
+
required: string[];
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
then: {
|
|
239
|
+
required: string[];
|
|
240
|
+
};
|
|
241
|
+
else: {
|
|
242
|
+
required: string[];
|
|
243
|
+
};
|
|
244
|
+
};
|
|
90
245
|
theme: {
|
|
91
246
|
type: string;
|
|
92
247
|
enum: string[];
|
|
@@ -112,9 +267,9 @@ export declare const Quote: {
|
|
|
112
267
|
};
|
|
113
268
|
};
|
|
114
269
|
} | {
|
|
270
|
+
optionName: string;
|
|
115
271
|
type: string;
|
|
116
272
|
pattern: string;
|
|
117
|
-
optionName: string;
|
|
118
273
|
items?: undefined;
|
|
119
274
|
} | {
|
|
120
275
|
type: string;
|
|
@@ -127,7 +282,6 @@ export declare const Quote: {
|
|
|
127
282
|
};
|
|
128
283
|
};
|
|
129
284
|
optionName: string;
|
|
130
|
-
pattern?: undefined;
|
|
131
285
|
})[];
|
|
132
286
|
};
|
|
133
287
|
description: {
|
|
@@ -140,6 +294,10 @@ export declare const Quote: {
|
|
|
140
294
|
type: string;
|
|
141
295
|
enum: import("../../index.js").QuoteType[];
|
|
142
296
|
};
|
|
297
|
+
border: {
|
|
298
|
+
type: string;
|
|
299
|
+
enum: string[];
|
|
300
|
+
};
|
|
143
301
|
type: {};
|
|
144
302
|
when: {
|
|
145
303
|
type: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ImageProps } from "../../components/Image/schema.js";
|
|
2
|
-
import { BaseProps, ThemeProps, authorItem, quoteTypes, withTheme, } from "../../schema/validators/common.js";
|
|
2
|
+
import { BaseProps, ButtonBlock, CardBase, ThemeProps, authorItem, quoteTypes, withTheme, } from "../../schema/validators/common.js";
|
|
3
3
|
export const Quote = {
|
|
4
4
|
quote: {
|
|
5
5
|
additionalProperties: false,
|
|
6
6
|
required: ['image', 'logo'],
|
|
7
7
|
properties: {
|
|
8
8
|
...BaseProps,
|
|
9
|
+
...CardBase,
|
|
9
10
|
text: {
|
|
10
11
|
type: 'string',
|
|
11
12
|
contentType: 'text',
|
|
@@ -28,6 +29,7 @@ export const Quote = {
|
|
|
28
29
|
buttonText: {
|
|
29
30
|
type: 'string',
|
|
30
31
|
},
|
|
32
|
+
button: ButtonBlock,
|
|
31
33
|
theme: ThemeProps,
|
|
32
34
|
author: authorItem,
|
|
33
35
|
quoteType: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,GACZ,0CAAuC;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,KAAK,EAAE;QACH,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC;YAC5B,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;aACnB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BaseProps,\n ThemeProps,\n authorItem,\n quoteTypes,\n withTheme,\n} from '../../schema/validators/common';\n\nexport const Quote = {\n quote: {\n additionalProperties: false,\n required: ['image', 'logo'],\n properties: {\n ...BaseProps,\n text: {\n type: 'string',\n contentType: 'text',\n },\n yfmText: {\n type: 'string',\n contentType: 'text',\n },\n image: withTheme(ImageProps),\n logo: ImageProps,\n color: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n buttonText: {\n type: 'string',\n },\n theme: ThemeProps,\n author: authorItem,\n quoteType: {\n type: 'string',\n enum: quoteTypes,\n },\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,GACZ,0CAAuC;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,KAAK,EAAE;QACH,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC;YAC5B,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;aACjB;YACD,MAAM,EAAE,WAAW;YACnB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;aACnB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BaseProps,\n ButtonBlock,\n CardBase,\n ThemeProps,\n authorItem,\n quoteTypes,\n withTheme,\n} from '../../schema/validators/common';\n\nexport const Quote = {\n quote: {\n additionalProperties: false,\n required: ['image', 'logo'],\n properties: {\n ...BaseProps,\n ...CardBase,\n text: {\n type: 'string',\n contentType: 'text',\n },\n yfmText: {\n type: 'string',\n contentType: 'text',\n },\n image: withTheme(ImageProps),\n logo: ImageProps,\n color: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n buttonText: {\n type: 'string',\n },\n button: ButtonBlock,\n theme: ThemeProps,\n author: authorItem,\n quoteType: {\n type: 'string',\n enum: quoteTypes,\n },\n },\n },\n};\n"]}
|