@gravity-ui/page-constructor 4.51.0 → 4.51.1
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 +12 -0
- package/build/cjs/blocks/Banner/schema.js +4 -1
- package/build/cjs/blocks/Header/schema.js +1 -1
- package/build/cjs/schema/constants.d.ts +4 -0
- package/build/cjs/schema/validators/common.d.ts +1 -0
- package/build/cjs/schema/validators/common.js +2 -1
- package/build/esm/blocks/Banner/schema.d.ts +12 -0
- package/build/esm/blocks/Banner/schema.js +5 -2
- package/build/esm/blocks/Header/schema.js +2 -2
- package/build/esm/schema/constants.d.ts +4 -0
- package/build/esm/schema/validators/common.d.ts +1 -0
- package/build/esm/schema/validators/common.js +1 -0
- package/package.json +1 -1
|
@@ -23,6 +23,10 @@ export declare const BannerCardProps: {
|
|
|
23
23
|
optionName: string;
|
|
24
24
|
})[];
|
|
25
25
|
};
|
|
26
|
+
mediaView: {
|
|
27
|
+
type: string;
|
|
28
|
+
enum: string[];
|
|
29
|
+
};
|
|
26
30
|
disableCompress: {
|
|
27
31
|
type: string;
|
|
28
32
|
};
|
|
@@ -326,6 +330,10 @@ export declare const BannerBlock: {
|
|
|
326
330
|
optionName: string;
|
|
327
331
|
})[];
|
|
328
332
|
};
|
|
333
|
+
mediaView: {
|
|
334
|
+
type: string;
|
|
335
|
+
enum: string[];
|
|
336
|
+
};
|
|
329
337
|
disableCompress: {
|
|
330
338
|
type: string;
|
|
331
339
|
};
|
|
@@ -630,6 +638,10 @@ export declare const BannerCard: {
|
|
|
630
638
|
optionName: string;
|
|
631
639
|
})[];
|
|
632
640
|
};
|
|
641
|
+
mediaView: {
|
|
642
|
+
type: string;
|
|
643
|
+
enum: string[];
|
|
644
|
+
};
|
|
633
645
|
disableCompress: {
|
|
634
646
|
type: string;
|
|
635
647
|
};
|
|
@@ -13,7 +13,10 @@ exports.BannerCardProps = {
|
|
|
13
13
|
contentType: 'yfm',
|
|
14
14
|
}, image: (0, common_1.withTheme)({
|
|
15
15
|
type: 'string',
|
|
16
|
-
}),
|
|
16
|
+
}), mediaView: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
enum: common_1.mediaView,
|
|
19
|
+
}, disableCompress: {
|
|
17
20
|
type: 'boolean',
|
|
18
21
|
}, color: (0, common_1.withTheme)({
|
|
19
22
|
type: 'string',
|
|
@@ -20,6 +20,7 @@ export declare const sizeNumber: {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const contentThemes: string[];
|
|
22
22
|
export declare const quoteTypes: QuoteType[];
|
|
23
|
+
export declare const mediaView: string[];
|
|
23
24
|
export declare const customControlsType: CustomControlsType[];
|
|
24
25
|
export declare const customControlsButtonPositioning: CustomControlsButtonPositioning[];
|
|
25
26
|
export declare const BaseProps: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlockHeaderProps = exports.CardBase = exports.BorderProps = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.CustomControlsOptionsProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.customControlsButtonPositioning = exports.customControlsType = exports.quoteTypes = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
3
|
+
exports.BlockHeaderProps = exports.CardBase = exports.BorderProps = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.CustomControlsOptionsProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.customControlsButtonPositioning = exports.customControlsType = exports.mediaView = exports.quoteTypes = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
4
4
|
const schema_1 = require("../../components/Image/schema");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
6
|
const event_1 = require("./event");
|
|
@@ -20,6 +20,7 @@ exports.dividerEnum = { enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xx
|
|
|
20
20
|
exports.sizeNumber = { type: 'number', maximum: 12, minimum: 1 };
|
|
21
21
|
exports.contentThemes = ['default', 'dark', 'light'];
|
|
22
22
|
exports.quoteTypes = Object.values(models_1.QuoteType);
|
|
23
|
+
exports.mediaView = ['fit', 'full'];
|
|
23
24
|
exports.customControlsType = [
|
|
24
25
|
models_1.CustomControlsType.WithMuteButton,
|
|
25
26
|
models_1.CustomControlsType.WithPlayPauseButton,
|
|
@@ -23,6 +23,10 @@ export declare const BannerCardProps: {
|
|
|
23
23
|
optionName: string;
|
|
24
24
|
})[];
|
|
25
25
|
};
|
|
26
|
+
mediaView: {
|
|
27
|
+
type: string;
|
|
28
|
+
enum: string[];
|
|
29
|
+
};
|
|
26
30
|
disableCompress: {
|
|
27
31
|
type: string;
|
|
28
32
|
};
|
|
@@ -326,6 +330,10 @@ export declare const BannerBlock: {
|
|
|
326
330
|
optionName: string;
|
|
327
331
|
})[];
|
|
328
332
|
};
|
|
333
|
+
mediaView: {
|
|
334
|
+
type: string;
|
|
335
|
+
enum: string[];
|
|
336
|
+
};
|
|
329
337
|
disableCompress: {
|
|
330
338
|
type: string;
|
|
331
339
|
};
|
|
@@ -630,6 +638,10 @@ export declare const BannerCard: {
|
|
|
630
638
|
optionName: string;
|
|
631
639
|
})[];
|
|
632
640
|
};
|
|
641
|
+
mediaView: {
|
|
642
|
+
type: string;
|
|
643
|
+
enum: string[];
|
|
644
|
+
};
|
|
633
645
|
disableCompress: {
|
|
634
646
|
type: string;
|
|
635
647
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimatableProps, BaseProps, ButtonBlock, ThemeProps, withTheme, } from '../../schema/validators/common';
|
|
1
|
+
import { AnimatableProps, BaseProps, ButtonBlock, ThemeProps, mediaView, withTheme, } from '../../schema/validators/common';
|
|
2
2
|
export const BannerCardProps = {
|
|
3
3
|
additionalProperties: false,
|
|
4
4
|
required: ['title', 'button'],
|
|
@@ -10,7 +10,10 @@ export const BannerCardProps = {
|
|
|
10
10
|
contentType: 'yfm',
|
|
11
11
|
}, image: withTheme({
|
|
12
12
|
type: 'string',
|
|
13
|
-
}),
|
|
13
|
+
}), mediaView: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: mediaView,
|
|
16
|
+
}, disableCompress: {
|
|
14
17
|
type: 'boolean',
|
|
15
18
|
}, color: withTheme({
|
|
16
19
|
type: 'string',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from '../../components/Image/schema';
|
|
2
|
-
import { BlockBaseProps, ButtonBlock, MediaProps, VideoProps, withTheme, } from '../../schema/validators/common';
|
|
2
|
+
import { BlockBaseProps, ButtonBlock, MediaProps, VideoProps, mediaView, withTheme, } from '../../schema/validators/common';
|
|
3
3
|
import { filteredArray } from '../../schema/validators/utils';
|
|
4
4
|
export const HeaderBackgroundProps = {
|
|
5
5
|
type: 'object',
|
|
@@ -34,7 +34,7 @@ export const HeaderProperties = {
|
|
|
34
34
|
video: withTheme(VideoProps),
|
|
35
35
|
mediaView: {
|
|
36
36
|
type: 'string',
|
|
37
|
-
enum:
|
|
37
|
+
enum: mediaView,
|
|
38
38
|
},
|
|
39
39
|
backLink: {
|
|
40
40
|
type: 'object',
|
|
@@ -20,6 +20,7 @@ export declare const sizeNumber: {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const contentThemes: string[];
|
|
22
22
|
export declare const quoteTypes: QuoteType[];
|
|
23
|
+
export declare const mediaView: string[];
|
|
23
24
|
export declare const customControlsType: CustomControlsType[];
|
|
24
25
|
export declare const customControlsButtonPositioning: CustomControlsButtonPositioning[];
|
|
25
26
|
export declare const BaseProps: {
|
|
@@ -17,6 +17,7 @@ export const dividerEnum = { enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'
|
|
|
17
17
|
export const sizeNumber = { type: 'number', maximum: 12, minimum: 1 };
|
|
18
18
|
export const contentThemes = ['default', 'dark', 'light'];
|
|
19
19
|
export const quoteTypes = Object.values(QuoteType);
|
|
20
|
+
export const mediaView = ['fit', 'full'];
|
|
20
21
|
export const customControlsType = [
|
|
21
22
|
CustomControlsType.WithMuteButton,
|
|
22
23
|
CustomControlsType.WithPlayPauseButton,
|