@gravity-ui/page-constructor 1.2.3-alpha.3 → 1.2.4
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/CHANGELOG.md +6 -0
- package/build/cjs/blocks/Companies/Companies.js +6 -2
- package/build/cjs/blocks/ContentLayout/schema.js +1 -2
- package/build/cjs/blocks/Header/Header.css +9 -2
- package/build/cjs/blocks/Header/Header.js +9 -6
- package/build/cjs/blocks/Header/schema.d.ts +244 -196
- package/build/cjs/blocks/Header/schema.js +23 -3
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +122 -98
- package/build/cjs/blocks/Tabs/Tabs.js +2 -3
- package/build/cjs/blocks/Tabs/schema.js +1 -2
- package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
- package/build/cjs/components/FullscreenImage/FullscreenImage.d.ts +2 -2
- package/build/cjs/components/Image/Image.d.ts +5 -3
- package/build/cjs/components/Image/Image.js +5 -9
- package/build/cjs/components/Media/Image/Image.js +3 -3
- package/build/cjs/components/Media/Image/utils.d.ts +2 -2
- package/build/cjs/models/constructor-items/blocks.d.ts +9 -5
- package/build/cjs/models/constructor-items/common.d.ts +7 -11
- package/build/cjs/models/guards.d.ts +3 -2
- package/build/cjs/models/guards.js +5 -1
- package/build/cjs/schema/validators/common.d.ts +31 -0
- package/build/cjs/schema/validators/common.js +32 -5
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +1 -2
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js +1 -2
- package/build/cjs/sub-blocks/Content/Content.css +2 -1
- package/build/cjs/sub-blocks/Partner/Partner.js +1 -1
- package/build/cjs/sub-blocks/Partner/schema.js +1 -2
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -3
- package/build/cjs/sub-blocks/Quote/schema.js +3 -4
- package/build/cjs/sub-blocks/TutorialCard/TutorialCard.js +2 -2
- package/build/cjs/sub-blocks/TutorialCard/schema.js +1 -2
- package/build/esm/blocks/Companies/Companies.js +6 -2
- package/build/esm/blocks/ContentLayout/schema.js +1 -2
- package/build/esm/blocks/Header/Header.css +9 -2
- package/build/esm/blocks/Header/Header.js +10 -7
- package/build/esm/blocks/Header/schema.d.ts +244 -196
- package/build/esm/blocks/Header/schema.js +23 -3
- package/build/esm/blocks/HeaderSlider/schema.d.ts +122 -98
- package/build/esm/blocks/Tabs/Tabs.js +2 -3
- package/build/esm/blocks/Tabs/schema.js +1 -2
- package/build/esm/components/BackgroundImage/BackgroundImage.js +2 -2
- package/build/esm/components/FullscreenImage/FullscreenImage.d.ts +2 -2
- package/build/esm/components/Image/Image.d.ts +5 -3
- package/build/esm/components/Image/Image.js +5 -9
- package/build/esm/components/Media/Image/Image.js +3 -3
- package/build/esm/components/Media/Image/utils.d.ts +2 -2
- package/build/esm/models/constructor-items/blocks.d.ts +9 -5
- package/build/esm/models/constructor-items/common.d.ts +7 -11
- package/build/esm/models/guards.d.ts +3 -2
- package/build/esm/models/guards.js +3 -0
- package/build/esm/schema/validators/common.d.ts +31 -0
- package/build/esm/schema/validators/common.js +28 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.js +1 -2
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.js +1 -2
- package/build/esm/sub-blocks/Content/Content.css +2 -1
- package/build/esm/sub-blocks/Partner/Partner.js +1 -1
- package/build/esm/sub-blocks/Partner/schema.js +1 -2
- package/build/esm/sub-blocks/Quote/Quote.js +2 -3
- package/build/esm/sub-blocks/Quote/schema.js +1 -2
- package/build/esm/sub-blocks/TutorialCard/TutorialCard.js +2 -2
- package/build/esm/sub-blocks/TutorialCard/schema.js +1 -2
- package/package.json +1 -4
- package/server/models/constructor-items/blocks.d.ts +9 -5
- package/server/models/constructor-items/common.d.ts +7 -11
- package/server/models/guards.d.ts +3 -2
- package/server/models/guards.js +5 -1
- package/build/cjs/components/Image/schema.d.ts +0 -56
- package/build/cjs/components/Image/schema.js +0 -54
- package/build/esm/components/Image/schema.d.ts +0 -56
- package/build/esm/components/Image/schema.js +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.4](https://github.com/gravity-ui/page-constructor/compare/v1.2.3...v1.2.4) (2022-10-19)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* buttons specificities fixes ([96a4cf6](https://github.com/gravity-ui/page-constructor/commit/96a4cf6aee58d19b42e9e649ee3969c86d94be2a))
|
|
8
|
+
|
|
3
9
|
## [1.2.3](https://github.com/gravity-ui/page-constructor/compare/v1.2.2...v1.2.3) (2022-10-14)
|
|
4
10
|
|
|
5
11
|
|
|
@@ -5,17 +5,21 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const AnimateBlock_1 = (0, tslib_1.__importDefault)(require("../../components/AnimateBlock/AnimateBlock"));
|
|
8
|
+
const constants_1 = require("../../constants");
|
|
8
9
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
9
|
-
const components_1 = require("../../components");
|
|
10
10
|
const b = (0, utils_1.block)('companies-block');
|
|
11
11
|
const CompaniesBlock = ({ title, images, animated }) => {
|
|
12
12
|
const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
|
|
13
13
|
const themedImages = (0, utils_1.getThemedValue)(images, theme) || {};
|
|
14
|
+
const { desktop, mobile, tablet, alt } = themedImages;
|
|
14
15
|
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), offset: 150, animate: animated },
|
|
15
16
|
react_1.default.createElement("div", { className: b('content') },
|
|
16
17
|
react_1.default.createElement("h2", { className: b('title') }, title),
|
|
17
18
|
react_1.default.createElement("div", { className: b('images') },
|
|
18
|
-
react_1.default.createElement(
|
|
19
|
+
react_1.default.createElement("picture", null,
|
|
20
|
+
react_1.default.createElement("source", { srcSet: desktop, media: `(min-width: ${constants_1.BREAKPOINTS.md}px)` }),
|
|
21
|
+
react_1.default.createElement("source", { srcSet: tablet, media: `(min-width: ${constants_1.BREAKPOINTS.sm}px)` }),
|
|
22
|
+
react_1.default.createElement("img", { className: b('image'), srcSet: mobile, alt: alt }))))));
|
|
19
23
|
};
|
|
20
24
|
exports.CompaniesBlock = CompaniesBlock;
|
|
21
25
|
exports.default = exports.CompaniesBlock;
|
|
@@ -4,7 +4,6 @@ exports.ContentLayoutBlock = void 0;
|
|
|
4
4
|
const schema_1 = require("../../sub-blocks/Content/schema");
|
|
5
5
|
const utils_1 = require("../../schema/validators/utils");
|
|
6
6
|
const common_1 = require("../../schema/validators/common");
|
|
7
|
-
const schema_2 = require("../../components/Image/schema");
|
|
8
7
|
exports.ContentLayoutBlock = {
|
|
9
8
|
'content-layout-block': {
|
|
10
9
|
additionalProperties: false,
|
|
@@ -13,7 +12,7 @@ exports.ContentLayoutBlock = {
|
|
|
13
12
|
type: 'string',
|
|
14
13
|
enum: common_1.contentSizes,
|
|
15
14
|
},
|
|
16
|
-
background:
|
|
15
|
+
background: common_1.ImageObjectProps,
|
|
17
16
|
centered: {
|
|
18
17
|
type: 'boolean',
|
|
19
18
|
},
|
|
@@ -9,7 +9,6 @@ unpredictable css rules order in build */
|
|
|
9
9
|
margin: 16px 0;
|
|
10
10
|
}
|
|
11
11
|
.pc-header-block_full-width {
|
|
12
|
-
--pc-border-radius: 0;
|
|
13
12
|
padding: 16px 0;
|
|
14
13
|
margin: 0 0 16px;
|
|
15
14
|
}
|
|
@@ -87,10 +86,11 @@ unpredictable css rules order in build */
|
|
|
87
86
|
.pc-header-block__buttons {
|
|
88
87
|
margin-top: 16px;
|
|
89
88
|
}
|
|
90
|
-
.pc-header-block__button {
|
|
89
|
+
.pc-header-block__button.pc-header-block__button {
|
|
91
90
|
margin-top: 16px;
|
|
92
91
|
margin-right: 16px;
|
|
93
92
|
}
|
|
93
|
+
|
|
94
94
|
.pc-header-block__media {
|
|
95
95
|
position: absolute;
|
|
96
96
|
display: none;
|
|
@@ -150,7 +150,11 @@ unpredictable css rules order in build */
|
|
|
150
150
|
width: 100%;
|
|
151
151
|
object-fit: cover;
|
|
152
152
|
}
|
|
153
|
+
.pc-header-block__background_full-width-media {
|
|
154
|
+
--pc-border-radius: 0;
|
|
155
|
+
}
|
|
153
156
|
.pc-header-block__background_full-width {
|
|
157
|
+
--pc-border-radius: 0;
|
|
154
158
|
left: 0;
|
|
155
159
|
transform: none;
|
|
156
160
|
max-width: none;
|
|
@@ -186,6 +190,9 @@ unpredictable css rules order in build */
|
|
|
186
190
|
.pc-header-block_has-media .pc-header-block__content {
|
|
187
191
|
padding-top: 48px;
|
|
188
192
|
}
|
|
193
|
+
.pc-header-block_has-background .pc-header-block__background-img {
|
|
194
|
+
display: none;
|
|
195
|
+
}
|
|
189
196
|
.pc-header-block .pc-header-block__content_vertical-offset_s, .pc-header-block .pc-header-block__content_vertical-offset_m, .pc-header-block .pc-header-block__content_vertical-offset_l, .pc-header-block .pc-header-block__content_vertical-offset_xl {
|
|
190
197
|
padding: calc(96px - 16px) 0;
|
|
191
198
|
}
|
|
@@ -4,18 +4,17 @@ exports.HeaderBlock = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
|
+
const guards_1 = require("../../models/guards");
|
|
7
8
|
const components_1 = require("../../components");
|
|
8
9
|
const grid_1 = require("../../grid");
|
|
9
10
|
const utils_2 = require("./utils");
|
|
10
11
|
const YFMWrapper_1 = (0, tslib_1.__importDefault)(require("../../components/YFMWrapper/YFMWrapper"));
|
|
11
12
|
const HeaderBreadcrumbs_1 = (0, tslib_1.__importDefault)(require("../../components/HeaderBreadcrumbs/HeaderBreadcrumbs"));
|
|
12
13
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
13
|
-
const utils_3 = require("../../components/Media/Image/utils");
|
|
14
14
|
const b = (0, utils_1.block)('header-block');
|
|
15
15
|
const Background = ({ background }) => {
|
|
16
|
-
const { url,
|
|
17
|
-
|
|
18
|
-
return (react_1.default.createElement(components_1.BackgroundMedia, Object.assign({}, background, { image: imageObject, animated: false, parallax: false, mediaClassName: b('background-media'), className: b('background', { media: true, 'full-width-media': fullWidthMedia }) })));
|
|
16
|
+
const { url, color, disableCompress, fullWidth, fullWidthMedia } = background;
|
|
17
|
+
return (0, guards_1.headerHasMediaBackground)(background) ? (react_1.default.createElement(components_1.BackgroundMedia, Object.assign({}, background, { mediaClassName: b('background-media'), className: b('background', { media: true, 'full-width-media': fullWidthMedia }) }))) : (react_1.default.createElement(components_1.BackgroundImage, { src: url, className: b('background', { 'full-width-media': fullWidthMedia }), imageClassName: b('background-img'), style: { backgroundColor: fullWidth ? 'none' : color }, disableCompress: disableCompress }));
|
|
19
18
|
};
|
|
20
19
|
const FullWidthBackground = ({ background }) => (react_1.default.createElement("div", { className: b('background', { ['full-width']: true }), style: { backgroundColor: background === null || background === void 0 ? void 0 : background.color } }));
|
|
21
20
|
const HeaderBlock = (props) => {
|
|
@@ -31,8 +30,12 @@ const HeaderBlock = (props) => {
|
|
|
31
30
|
const backgroundThemed = background && (0, utils_1.getThemedValue)(background, theme);
|
|
32
31
|
const imageThemed = image && (0, utils_1.getThemedValue)(image, theme);
|
|
33
32
|
const videoThemed = video && (0, utils_1.getThemedValue)(video, theme);
|
|
34
|
-
const fullWidth = backgroundThemed === null || backgroundThemed === void 0 ? void 0 : backgroundThemed.fullWidth;
|
|
35
|
-
return (react_1.default.createElement("header", { className: b({
|
|
33
|
+
const fullWidth = Boolean(backgroundThemed === null || backgroundThemed === void 0 ? void 0 : backgroundThemed.fullWidth);
|
|
34
|
+
return (react_1.default.createElement("header", { className: b({
|
|
35
|
+
['has-media']: hasMedia,
|
|
36
|
+
['has-background']: Boolean(background),
|
|
37
|
+
['full-width']: fullWidth,
|
|
38
|
+
}, className) },
|
|
36
39
|
backgroundThemed && fullWidth && react_1.default.createElement(FullWidthBackground, { background: backgroundThemed }),
|
|
37
40
|
backgroundThemed && react_1.default.createElement(Background, { background: backgroundThemed }),
|
|
38
41
|
react_1.default.createElement(grid_1.Grid, { containerClass: b('container-fluid') },
|
|
@@ -140,139 +140,163 @@ export declare const HeaderProperties: {
|
|
|
140
140
|
};
|
|
141
141
|
background: {
|
|
142
142
|
oneOf: ({
|
|
143
|
-
|
|
144
|
-
type: string;
|
|
145
|
-
};
|
|
146
|
-
fullWidthMedia: {
|
|
147
|
-
type: string;
|
|
148
|
-
};
|
|
149
|
-
color: {
|
|
143
|
+
oneOf: ({
|
|
150
144
|
type: string;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
145
|
+
additionalProperties: boolean;
|
|
146
|
+
required: never[];
|
|
147
|
+
properties: {
|
|
148
|
+
fullWidth: {
|
|
155
149
|
type: string;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
type: string;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
} | {
|
|
150
|
+
};
|
|
151
|
+
color: {
|
|
162
152
|
type: string;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
type: string;
|
|
153
|
+
};
|
|
154
|
+
image: {
|
|
155
|
+
anyOf: ({
|
|
156
|
+
oneOf: ({
|
|
157
|
+
type: string;
|
|
158
|
+
properties: {
|
|
159
|
+
when: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
173
162
|
};
|
|
174
|
-
}
|
|
163
|
+
} | {
|
|
164
|
+
type: string;
|
|
165
|
+
pattern: string;
|
|
166
|
+
})[];
|
|
175
167
|
} | {
|
|
176
168
|
type: string;
|
|
177
|
-
|
|
169
|
+
items: {
|
|
170
|
+
oneOf: ({
|
|
171
|
+
type: string;
|
|
172
|
+
properties: {
|
|
173
|
+
when: {
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
type: string;
|
|
179
|
+
pattern: string;
|
|
180
|
+
})[];
|
|
181
|
+
};
|
|
178
182
|
})[];
|
|
179
183
|
};
|
|
180
|
-
|
|
181
|
-
};
|
|
182
|
-
video: {
|
|
183
|
-
type: string;
|
|
184
|
-
additionalProperties: boolean;
|
|
185
|
-
required: string[];
|
|
186
|
-
properties: {
|
|
187
|
-
src: {
|
|
184
|
+
video: {
|
|
188
185
|
type: string;
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
additionalProperties: boolean;
|
|
187
|
+
required: string[];
|
|
188
|
+
properties: {
|
|
189
|
+
src: {
|
|
190
|
+
type: string;
|
|
191
|
+
items: {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
loop: {
|
|
196
|
+
anyOf: ({
|
|
197
|
+
type: string;
|
|
198
|
+
additionalProperties: boolean;
|
|
199
|
+
required: string[];
|
|
200
|
+
properties: {
|
|
201
|
+
start: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
end: {
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
} | {
|
|
209
|
+
type: string;
|
|
210
|
+
})[];
|
|
211
|
+
};
|
|
212
|
+
type: {
|
|
213
|
+
type: string;
|
|
214
|
+
enum: string[];
|
|
215
|
+
};
|
|
216
|
+
muted: {
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
219
|
+
playing: {
|
|
220
|
+
type: string;
|
|
221
|
+
};
|
|
222
|
+
elapsedTime: {
|
|
223
|
+
type: string;
|
|
224
|
+
};
|
|
225
|
+
playIcon: {
|
|
226
|
+
type: string;
|
|
227
|
+
additionalProperties: boolean;
|
|
228
|
+
properties: {
|
|
229
|
+
type: {
|
|
230
|
+
type: string;
|
|
231
|
+
enum: string[];
|
|
232
|
+
};
|
|
233
|
+
theme: {
|
|
234
|
+
type: string;
|
|
235
|
+
enum: string[];
|
|
236
|
+
};
|
|
237
|
+
text: {
|
|
238
|
+
type: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
controls: {
|
|
243
|
+
type: string;
|
|
244
|
+
enum: string[];
|
|
245
|
+
};
|
|
191
246
|
};
|
|
192
247
|
};
|
|
193
|
-
|
|
194
|
-
|
|
248
|
+
youtube: {
|
|
249
|
+
type: string;
|
|
250
|
+
};
|
|
251
|
+
parallax: {
|
|
252
|
+
type: string;
|
|
253
|
+
};
|
|
254
|
+
height: {
|
|
255
|
+
type: string;
|
|
256
|
+
};
|
|
257
|
+
previewImg: {
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
dataLens: {
|
|
261
|
+
oneOf: ({
|
|
195
262
|
type: string;
|
|
196
263
|
additionalProperties: boolean;
|
|
197
264
|
required: string[];
|
|
198
265
|
properties: {
|
|
199
|
-
|
|
266
|
+
id: {
|
|
200
267
|
type: string;
|
|
201
268
|
};
|
|
202
|
-
|
|
269
|
+
theme: {
|
|
203
270
|
type: string;
|
|
271
|
+
enum: string[];
|
|
204
272
|
};
|
|
205
273
|
};
|
|
206
274
|
} | {
|
|
207
275
|
type: string;
|
|
208
276
|
})[];
|
|
209
277
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
278
|
+
};
|
|
279
|
+
} | {
|
|
280
|
+
type: string;
|
|
281
|
+
additionalProperties: boolean;
|
|
282
|
+
properties: {
|
|
283
|
+
color: {
|
|
215
284
|
type: string;
|
|
216
285
|
};
|
|
217
|
-
|
|
286
|
+
url: {
|
|
218
287
|
type: string;
|
|
219
288
|
};
|
|
220
|
-
|
|
289
|
+
disableCompress: {
|
|
221
290
|
type: string;
|
|
222
291
|
};
|
|
223
|
-
|
|
292
|
+
fullWidth: {
|
|
224
293
|
type: string;
|
|
225
|
-
additionalProperties: boolean;
|
|
226
|
-
properties: {
|
|
227
|
-
type: {
|
|
228
|
-
type: string;
|
|
229
|
-
enum: string[];
|
|
230
|
-
};
|
|
231
|
-
theme: {
|
|
232
|
-
type: string;
|
|
233
|
-
enum: string[];
|
|
234
|
-
};
|
|
235
|
-
text: {
|
|
236
|
-
type: string;
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
294
|
};
|
|
240
|
-
|
|
295
|
+
fullWidthMedia: {
|
|
241
296
|
type: string;
|
|
242
|
-
enum: string[];
|
|
243
297
|
};
|
|
244
298
|
};
|
|
245
|
-
};
|
|
246
|
-
youtube: {
|
|
247
|
-
type: string;
|
|
248
|
-
};
|
|
249
|
-
parallax: {
|
|
250
|
-
type: string;
|
|
251
|
-
};
|
|
252
|
-
height: {
|
|
253
|
-
type: string;
|
|
254
|
-
};
|
|
255
|
-
previewImg: {
|
|
256
|
-
type: string;
|
|
257
|
-
};
|
|
258
|
-
dataLens: {
|
|
259
|
-
oneOf: ({
|
|
260
|
-
type: string;
|
|
261
|
-
additionalProperties: boolean;
|
|
262
|
-
required: string[];
|
|
263
|
-
properties: {
|
|
264
|
-
id: {
|
|
265
|
-
type: string;
|
|
266
|
-
};
|
|
267
|
-
theme: {
|
|
268
|
-
type: string;
|
|
269
|
-
enum: string[];
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
} | {
|
|
273
|
-
type: string;
|
|
274
|
-
})[];
|
|
275
|
-
};
|
|
299
|
+
})[];
|
|
276
300
|
} | {
|
|
277
301
|
type: string;
|
|
278
302
|
additionalProperties: boolean;
|
|
@@ -461,139 +485,163 @@ export declare const HeaderBlock: {
|
|
|
461
485
|
};
|
|
462
486
|
background: {
|
|
463
487
|
oneOf: ({
|
|
464
|
-
|
|
465
|
-
type: string;
|
|
466
|
-
};
|
|
467
|
-
fullWidthMedia: {
|
|
468
|
-
type: string;
|
|
469
|
-
};
|
|
470
|
-
color: {
|
|
488
|
+
oneOf: ({
|
|
471
489
|
type: string;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
490
|
+
additionalProperties: boolean;
|
|
491
|
+
required: never[];
|
|
492
|
+
properties: {
|
|
493
|
+
fullWidth: {
|
|
476
494
|
type: string;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
type: string;
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
} | {
|
|
495
|
+
};
|
|
496
|
+
color: {
|
|
483
497
|
type: string;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
type: string;
|
|
498
|
+
};
|
|
499
|
+
image: {
|
|
500
|
+
anyOf: ({
|
|
501
|
+
oneOf: ({
|
|
502
|
+
type: string;
|
|
503
|
+
properties: {
|
|
504
|
+
when: {
|
|
505
|
+
type: string;
|
|
506
|
+
};
|
|
494
507
|
};
|
|
495
|
-
}
|
|
508
|
+
} | {
|
|
509
|
+
type: string;
|
|
510
|
+
pattern: string;
|
|
511
|
+
})[];
|
|
496
512
|
} | {
|
|
497
513
|
type: string;
|
|
498
|
-
|
|
514
|
+
items: {
|
|
515
|
+
oneOf: ({
|
|
516
|
+
type: string;
|
|
517
|
+
properties: {
|
|
518
|
+
when: {
|
|
519
|
+
type: string;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
} | {
|
|
523
|
+
type: string;
|
|
524
|
+
pattern: string;
|
|
525
|
+
})[];
|
|
526
|
+
};
|
|
499
527
|
})[];
|
|
500
528
|
};
|
|
501
|
-
|
|
502
|
-
};
|
|
503
|
-
video: {
|
|
504
|
-
type: string;
|
|
505
|
-
additionalProperties: boolean;
|
|
506
|
-
required: string[];
|
|
507
|
-
properties: {
|
|
508
|
-
src: {
|
|
529
|
+
video: {
|
|
509
530
|
type: string;
|
|
510
|
-
|
|
511
|
-
|
|
531
|
+
additionalProperties: boolean;
|
|
532
|
+
required: string[];
|
|
533
|
+
properties: {
|
|
534
|
+
src: {
|
|
535
|
+
type: string;
|
|
536
|
+
items: {
|
|
537
|
+
type: string;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
loop: {
|
|
541
|
+
anyOf: ({
|
|
542
|
+
type: string;
|
|
543
|
+
additionalProperties: boolean;
|
|
544
|
+
required: string[];
|
|
545
|
+
properties: {
|
|
546
|
+
start: {
|
|
547
|
+
type: string;
|
|
548
|
+
};
|
|
549
|
+
end: {
|
|
550
|
+
type: string;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
} | {
|
|
554
|
+
type: string;
|
|
555
|
+
})[];
|
|
556
|
+
};
|
|
557
|
+
type: {
|
|
558
|
+
type: string;
|
|
559
|
+
enum: string[];
|
|
560
|
+
};
|
|
561
|
+
muted: {
|
|
562
|
+
type: string;
|
|
563
|
+
};
|
|
564
|
+
playing: {
|
|
565
|
+
type: string;
|
|
566
|
+
};
|
|
567
|
+
elapsedTime: {
|
|
568
|
+
type: string;
|
|
569
|
+
};
|
|
570
|
+
playIcon: {
|
|
571
|
+
type: string;
|
|
572
|
+
additionalProperties: boolean;
|
|
573
|
+
properties: {
|
|
574
|
+
type: {
|
|
575
|
+
type: string;
|
|
576
|
+
enum: string[];
|
|
577
|
+
};
|
|
578
|
+
theme: {
|
|
579
|
+
type: string;
|
|
580
|
+
enum: string[];
|
|
581
|
+
};
|
|
582
|
+
text: {
|
|
583
|
+
type: string;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
controls: {
|
|
588
|
+
type: string;
|
|
589
|
+
enum: string[];
|
|
590
|
+
};
|
|
512
591
|
};
|
|
513
592
|
};
|
|
514
|
-
|
|
515
|
-
|
|
593
|
+
youtube: {
|
|
594
|
+
type: string;
|
|
595
|
+
};
|
|
596
|
+
parallax: {
|
|
597
|
+
type: string;
|
|
598
|
+
};
|
|
599
|
+
height: {
|
|
600
|
+
type: string;
|
|
601
|
+
};
|
|
602
|
+
previewImg: {
|
|
603
|
+
type: string;
|
|
604
|
+
};
|
|
605
|
+
dataLens: {
|
|
606
|
+
oneOf: ({
|
|
516
607
|
type: string;
|
|
517
608
|
additionalProperties: boolean;
|
|
518
609
|
required: string[];
|
|
519
610
|
properties: {
|
|
520
|
-
|
|
611
|
+
id: {
|
|
521
612
|
type: string;
|
|
522
613
|
};
|
|
523
|
-
|
|
614
|
+
theme: {
|
|
524
615
|
type: string;
|
|
616
|
+
enum: string[];
|
|
525
617
|
};
|
|
526
618
|
};
|
|
527
619
|
} | {
|
|
528
620
|
type: string;
|
|
529
621
|
})[];
|
|
530
622
|
};
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
623
|
+
};
|
|
624
|
+
} | {
|
|
625
|
+
type: string;
|
|
626
|
+
additionalProperties: boolean;
|
|
627
|
+
properties: {
|
|
628
|
+
color: {
|
|
536
629
|
type: string;
|
|
537
630
|
};
|
|
538
|
-
|
|
631
|
+
url: {
|
|
539
632
|
type: string;
|
|
540
633
|
};
|
|
541
|
-
|
|
634
|
+
disableCompress: {
|
|
542
635
|
type: string;
|
|
543
636
|
};
|
|
544
|
-
|
|
637
|
+
fullWidth: {
|
|
545
638
|
type: string;
|
|
546
|
-
additionalProperties: boolean;
|
|
547
|
-
properties: {
|
|
548
|
-
type: {
|
|
549
|
-
type: string;
|
|
550
|
-
enum: string[];
|
|
551
|
-
};
|
|
552
|
-
theme: {
|
|
553
|
-
type: string;
|
|
554
|
-
enum: string[];
|
|
555
|
-
};
|
|
556
|
-
text: {
|
|
557
|
-
type: string;
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
639
|
};
|
|
561
|
-
|
|
640
|
+
fullWidthMedia: {
|
|
562
641
|
type: string;
|
|
563
|
-
enum: string[];
|
|
564
642
|
};
|
|
565
643
|
};
|
|
566
|
-
};
|
|
567
|
-
youtube: {
|
|
568
|
-
type: string;
|
|
569
|
-
};
|
|
570
|
-
parallax: {
|
|
571
|
-
type: string;
|
|
572
|
-
};
|
|
573
|
-
height: {
|
|
574
|
-
type: string;
|
|
575
|
-
};
|
|
576
|
-
previewImg: {
|
|
577
|
-
type: string;
|
|
578
|
-
};
|
|
579
|
-
dataLens: {
|
|
580
|
-
oneOf: ({
|
|
581
|
-
type: string;
|
|
582
|
-
additionalProperties: boolean;
|
|
583
|
-
required: string[];
|
|
584
|
-
properties: {
|
|
585
|
-
id: {
|
|
586
|
-
type: string;
|
|
587
|
-
};
|
|
588
|
-
theme: {
|
|
589
|
-
type: string;
|
|
590
|
-
enum: string[];
|
|
591
|
-
};
|
|
592
|
-
};
|
|
593
|
-
} | {
|
|
594
|
-
type: string;
|
|
595
|
-
})[];
|
|
596
|
-
};
|
|
644
|
+
})[];
|
|
597
645
|
} | {
|
|
598
646
|
type: string;
|
|
599
647
|
additionalProperties: boolean;
|