@gravity-ui/page-constructor 3.4.0 → 3.5.0-alpha.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/CHANGELOG.md +0 -27
- package/README.md +0 -2
- package/build/cjs/blocks/Banner/schema.d.ts +21 -63
- package/build/cjs/blocks/CardLayout/schema.d.ts +4 -10
- package/build/cjs/blocks/Companies/schema.d.ts +2 -5
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +2 -3
- package/build/cjs/blocks/ContentLayout/schema.d.ts +61 -107
- package/build/cjs/blocks/ContentLayout/schema.js +18 -23
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +4 -31
- package/build/cjs/blocks/ExtendedFeatures/schema.js +3 -2
- package/build/cjs/blocks/FilterBlock/schema.d.ts +5 -13
- package/build/cjs/blocks/FilterBlock/schema.js +2 -13
- package/build/cjs/blocks/Header/Header.css +7 -6
- package/build/cjs/blocks/Header/schema.d.ts +36 -92
- package/build/cjs/blocks/Header/schema.js +0 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +53 -48
- package/build/cjs/blocks/HeaderSlider/schema.js +1 -3
- package/build/cjs/blocks/Icons/schema.d.ts +1 -3
- package/build/cjs/blocks/Icons/schema.js +1 -2
- package/build/cjs/blocks/Info/schema.d.ts +8 -19
- package/build/cjs/blocks/Map/schema.d.ts +6 -17
- package/build/cjs/blocks/Media/schema.d.ts +152 -204
- package/build/cjs/blocks/Media/schema.js +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +8 -22
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +0 -1
- package/build/cjs/blocks/Questions/schema.d.ts +3 -7
- package/build/cjs/blocks/Slider/schema.d.ts +18 -13
- package/build/cjs/blocks/Slider/schema.js +5 -4
- package/build/cjs/blocks/Table/schema.d.ts +2 -5
- package/build/cjs/blocks/Table/schema.js +2 -12
- package/build/cjs/blocks/Tabs/schema.d.ts +16 -43
- package/build/cjs/components/BlockBase/BlockBase.js +2 -2
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/cjs/components/Image/schema.d.ts +0 -1
- package/build/cjs/components/Image/schema.js +2 -3
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/cjs/customization/BlockDecoration.d.ts +1 -1
- package/build/cjs/customization/BlockDecoration.js +6 -5
- package/build/cjs/editor/{components → Components}/AddBlock/AddBlock.css +1 -1
- package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +7 -0
- package/build/cjs/editor/{components → Components}/AddBlock/AddBlock.js +2 -2
- package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +4 -0
- package/build/cjs/editor/Components/EditBlock/EditBlock.js +32 -0
- package/build/cjs/editor/Containers/Editor.d.ts +2 -0
- package/build/cjs/editor/Containers/Editor.js +24 -0
- package/build/cjs/editor/index.d.ts +1 -1
- package/build/cjs/editor/index.js +1 -1
- package/build/cjs/editor/store/index.d.ts +11 -10
- package/build/cjs/editor/store/index.js +15 -66
- package/build/cjs/editor/store/reducer.d.ts +9 -24
- package/build/cjs/editor/store/reducer.js +31 -17
- package/build/cjs/editor/store/utils.d.ts +0 -1
- package/build/cjs/editor/store/utils.js +1 -3
- package/build/cjs/editor/types/index.d.ts +9 -15
- package/build/cjs/editor/types/index.js +0 -6
- package/build/cjs/editor/utils/index.d.ts +3 -4
- package/build/cjs/editor/utils/index.js +4 -6
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +8 -13
- package/build/cjs/models/constructor.d.ts +2 -2
- package/build/cjs/models/customization.d.ts +8 -3
- package/build/cjs/models/navigation.d.ts +0 -1
- package/build/cjs/navigation/components/Header/Header.css +0 -2
- package/build/cjs/navigation/components/Header/Header.js +4 -15
- package/build/cjs/navigation/schema.d.ts +0 -1
- package/build/cjs/schema/index.d.ts +228 -9
- package/build/cjs/schema/index.js +46 -8
- package/build/cjs/schema/validators/common.d.ts +27 -71
- package/build/cjs/schema/validators/common.js +17 -50
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +5 -12
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +3 -8
- package/build/cjs/sub-blocks/Content/schema.d.ts +6 -14
- package/build/cjs/sub-blocks/Content/schema.js +1 -9
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +9 -23
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +6 -16
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -5
- package/build/cjs/sub-blocks/Quote/schema.d.ts +2 -6
- package/build/cjs/text-transform/utils.js +6 -1
- package/build/esm/blocks/Banner/schema.d.ts +21 -63
- package/build/esm/blocks/CardLayout/schema.d.ts +4 -10
- package/build/esm/blocks/Companies/schema.d.ts +2 -5
- package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -3
- package/build/esm/blocks/ContentLayout/schema.d.ts +61 -107
- package/build/esm/blocks/ContentLayout/schema.js +18 -23
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +4 -31
- package/build/esm/blocks/ExtendedFeatures/schema.js +4 -3
- package/build/esm/blocks/FilterBlock/schema.d.ts +5 -13
- package/build/esm/blocks/FilterBlock/schema.js +2 -13
- package/build/esm/blocks/Header/Header.css +7 -6
- package/build/esm/blocks/Header/schema.d.ts +36 -92
- package/build/esm/blocks/Header/schema.js +0 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +53 -48
- package/build/esm/blocks/HeaderSlider/schema.js +1 -2
- package/build/esm/blocks/Icons/schema.d.ts +1 -3
- package/build/esm/blocks/Icons/schema.js +1 -2
- package/build/esm/blocks/Info/schema.d.ts +8 -19
- package/build/esm/blocks/Map/schema.d.ts +6 -17
- package/build/esm/blocks/Media/schema.d.ts +152 -204
- package/build/esm/blocks/Media/schema.js +2 -2
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +8 -22
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +0 -1
- package/build/esm/blocks/Questions/schema.d.ts +3 -7
- package/build/esm/blocks/Slider/schema.d.ts +18 -13
- package/build/esm/blocks/Slider/schema.js +5 -4
- package/build/esm/blocks/Table/schema.d.ts +2 -5
- package/build/esm/blocks/Table/schema.js +2 -12
- package/build/esm/blocks/Tabs/schema.d.ts +16 -43
- package/build/esm/components/BlockBase/BlockBase.js +2 -2
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/esm/components/Image/schema.d.ts +0 -1
- package/build/esm/components/Image/schema.js +2 -3
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/esm/customization/BlockDecoration.d.ts +1 -1
- package/build/esm/customization/BlockDecoration.js +6 -6
- package/build/esm/editor/{components → Components}/AddBlock/AddBlock.css +1 -1
- package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +8 -0
- package/build/esm/editor/{components → Components}/AddBlock/AddBlock.js +2 -2
- package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +5 -0
- package/build/esm/editor/Components/EditBlock/EditBlock.js +30 -0
- package/build/esm/editor/Containers/Editor.d.ts +2 -0
- package/build/esm/editor/Containers/Editor.js +20 -0
- package/build/esm/editor/index.d.ts +1 -1
- package/build/esm/editor/index.js +1 -1
- package/build/esm/editor/store/index.d.ts +11 -10
- package/build/esm/editor/store/index.js +17 -68
- package/build/esm/editor/store/reducer.d.ts +9 -24
- package/build/esm/editor/store/reducer.js +29 -15
- package/build/esm/editor/store/utils.d.ts +0 -1
- package/build/esm/editor/store/utils.js +0 -1
- package/build/esm/editor/types/index.d.ts +9 -15
- package/build/esm/editor/types/index.js +1 -5
- package/build/esm/editor/utils/index.d.ts +3 -4
- package/build/esm/editor/utils/index.js +3 -4
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +8 -13
- package/build/esm/models/constructor.d.ts +2 -2
- package/build/esm/models/customization.d.ts +8 -3
- package/build/esm/models/navigation.d.ts +0 -1
- package/build/esm/navigation/components/Header/Header.css +0 -2
- package/build/esm/navigation/components/Header/Header.js +5 -16
- package/build/esm/navigation/schema.d.ts +0 -1
- package/build/esm/schema/index.d.ts +228 -9
- package/build/esm/schema/index.js +42 -4
- package/build/esm/schema/validators/common.d.ts +27 -71
- package/build/esm/schema/validators/common.js +16 -49
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +5 -12
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +3 -8
- package/build/esm/sub-blocks/Content/schema.d.ts +6 -14
- package/build/esm/sub-blocks/Content/schema.js +1 -9
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +9 -23
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +6 -16
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +1 -5
- package/build/esm/sub-blocks/Quote/schema.d.ts +2 -6
- package/build/esm/text-transform/utils.js +6 -1
- package/package.json +4 -5
- package/server/models/constructor-items/blocks.d.ts +8 -13
- package/server/models/constructor.d.ts +2 -2
- package/server/models/customization.d.ts +8 -3
- package/server/models/navigation.d.ts +0 -1
- package/server/text-transform/utils.js +6 -1
- package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +0 -7
- package/build/cjs/editor/components/BlockForm/BlockForm.d.ts +0 -12
- package/build/cjs/editor/components/BlockForm/BlockForm.js +0 -33
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +0 -26
- package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +0 -8
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +0 -24
- package/build/cjs/editor/components/ControlPanel/i18n/en.json +0 -3
- package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +0 -2
- package/build/cjs/editor/components/ControlPanel/i18n/index.js +0 -8
- package/build/cjs/editor/components/ControlPanel/i18n/ru.json +0 -3
- package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +0 -13
- package/build/cjs/editor/components/EditBlock/EditBlock.js +0 -44
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +0 -27
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +0 -13
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +0 -35
- package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +0 -4
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +0 -2
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +0 -8
- package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +0 -4
- package/build/cjs/editor/components/Layout/Layout.css +0 -36
- package/build/cjs/editor/components/Layout/Layout.d.ts +0 -16
- package/build/cjs/editor/components/Layout/Layout.js +0 -34
- package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +0 -10
- package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +0 -17
- package/build/cjs/editor/containers/Editor/Editor.d.ts +0 -2
- package/build/cjs/editor/containers/Editor/Editor.js +0 -40
- package/build/cjs/editor/containers/Form/Form.css +0 -94
- package/build/cjs/editor/containers/Form/Form.d.ts +0 -11
- package/build/cjs/editor/containers/Form/Form.js +0 -47
- package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +0 -27
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +0 -19
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +0 -72
- package/build/cjs/editor/dynamic-forms-custom/config.d.ts +0 -2
- package/build/cjs/editor/dynamic-forms-custom/config.js +0 -13
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +0 -12
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +0 -75
- package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +0 -9
- package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +0 -36
- package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +0 -28
- package/build/cjs/editor/dynamic-forms-custom/parser/index.js +0 -188
- package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +0 -29
- package/build/cjs/editor/dynamic-forms-custom/parser/types.js +0 -2
- package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +0 -37
- package/build/cjs/editor/dynamic-forms-custom/parser/views.js +0 -46
- package/build/cjs/editor/hooks/useFormSpec.d.ts +0 -2
- package/build/cjs/editor/hooks/useFormSpec.js +0 -13
- package/build/cjs/editor/hooks/usePreviousValue.d.ts +0 -1
- package/build/cjs/editor/hooks/usePreviousValue.js +0 -11
- package/build/cjs/editor/styles/root.css +0 -5
- package/build/cjs/schema/constants.d.ts +0 -908
- package/build/cjs/schema/constants.js +0 -42
- package/build/esm/editor/components/AddBlock/AddBlock.d.ts +0 -8
- package/build/esm/editor/components/BlockForm/BlockForm.d.ts +0 -12
- package/build/esm/editor/components/BlockForm/BlockForm.js +0 -30
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +0 -26
- package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +0 -9
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +0 -22
- package/build/esm/editor/components/ControlPanel/i18n/en.json +0 -3
- package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +0 -2
- package/build/esm/editor/components/ControlPanel/i18n/index.js +0 -5
- package/build/esm/editor/components/ControlPanel/i18n/ru.json +0 -3
- package/build/esm/editor/components/EditBlock/EditBlock.d.ts +0 -14
- package/build/esm/editor/components/EditBlock/EditBlock.js +0 -41
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +0 -27
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +0 -14
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +0 -31
- package/build/esm/editor/components/ErrorBoundary/i18n/en.json +0 -4
- package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +0 -2
- package/build/esm/editor/components/ErrorBoundary/i18n/index.js +0 -5
- package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +0 -4
- package/build/esm/editor/components/Layout/Layout.css +0 -36
- package/build/esm/editor/components/Layout/Layout.d.ts +0 -17
- package/build/esm/editor/components/Layout/Layout.js +0 -32
- package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +0 -10
- package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +0 -13
- package/build/esm/editor/containers/Editor/Editor.d.ts +0 -2
- package/build/esm/editor/containers/Editor/Editor.js +0 -36
- package/build/esm/editor/containers/Form/Form.css +0 -94
- package/build/esm/editor/containers/Form/Form.d.ts +0 -12
- package/build/esm/editor/containers/Form/Form.js +0 -45
- package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +0 -27
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +0 -20
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +0 -68
- package/build/esm/editor/dynamic-forms-custom/config.d.ts +0 -2
- package/build/esm/editor/dynamic-forms-custom/config.js +0 -9
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +0 -12
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +0 -69
- package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +0 -9
- package/build/esm/editor/dynamic-forms-custom/parser/detect.js +0 -32
- package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +0 -28
- package/build/esm/editor/dynamic-forms-custom/parser/index.js +0 -186
- package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +0 -29
- package/build/esm/editor/dynamic-forms-custom/parser/types.js +0 -1
- package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +0 -37
- package/build/esm/editor/dynamic-forms-custom/parser/views.js +0 -39
- package/build/esm/editor/hooks/useFormSpec.d.ts +0 -2
- package/build/esm/editor/hooks/useFormSpec.js +0 -9
- package/build/esm/editor/hooks/usePreviousValue.d.ts +0 -1
- package/build/esm/editor/hooks/usePreviousValue.js +0 -8
- package/build/esm/editor/styles/root.css +0 -5
- package/build/esm/schema/constants.d.ts +0 -908
- package/build/esm/schema/constants.js +0 -39
- /package/build/cjs/editor/{components → Components}/EditBlock/EditBlock.css +0 -0
- /package/build/esm/editor/{components → Components}/EditBlock/EditBlock.css +0 -0
|
@@ -7,8 +7,7 @@ export declare const Media: {
|
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
9
|
image: {
|
|
10
|
-
|
|
11
|
-
optionName: string;
|
|
10
|
+
anyOf: ({
|
|
12
11
|
oneOf: ({
|
|
13
12
|
type: string;
|
|
14
13
|
properties: {
|
|
@@ -19,10 +18,7 @@ export declare const Media: {
|
|
|
19
18
|
} | {
|
|
20
19
|
type: string;
|
|
21
20
|
pattern: string;
|
|
22
|
-
optionName: string;
|
|
23
21
|
})[];
|
|
24
|
-
type?: undefined;
|
|
25
|
-
items?: undefined;
|
|
26
22
|
} | {
|
|
27
23
|
type: string;
|
|
28
24
|
items: {
|
|
@@ -36,10 +32,8 @@ export declare const Media: {
|
|
|
36
32
|
} | {
|
|
37
33
|
type: string;
|
|
38
34
|
pattern: string;
|
|
39
|
-
optionName: string;
|
|
40
35
|
})[];
|
|
41
36
|
};
|
|
42
|
-
optionName: string;
|
|
43
37
|
})[];
|
|
44
38
|
};
|
|
45
39
|
video: {
|
|
@@ -54,8 +48,7 @@ export declare const Media: {
|
|
|
54
48
|
};
|
|
55
49
|
};
|
|
56
50
|
loop: {
|
|
57
|
-
|
|
58
|
-
optionName: string;
|
|
51
|
+
anyOf: ({
|
|
59
52
|
type: string;
|
|
60
53
|
additionalProperties: boolean;
|
|
61
54
|
required: string[];
|
|
@@ -69,7 +62,6 @@ export declare const Media: {
|
|
|
69
62
|
};
|
|
70
63
|
} | {
|
|
71
64
|
type: string;
|
|
72
|
-
optionName: string;
|
|
73
65
|
})[];
|
|
74
66
|
};
|
|
75
67
|
type: {
|
|
@@ -79,13 +71,13 @@ export declare const Media: {
|
|
|
79
71
|
muted: {
|
|
80
72
|
type: string;
|
|
81
73
|
};
|
|
82
|
-
|
|
74
|
+
playing: {
|
|
83
75
|
type: string;
|
|
84
76
|
};
|
|
85
77
|
elapsedTime: {
|
|
86
78
|
type: string;
|
|
87
79
|
};
|
|
88
|
-
|
|
80
|
+
playIcon: {
|
|
89
81
|
type: string;
|
|
90
82
|
additionalProperties: boolean;
|
|
91
83
|
properties: {
|
|
@@ -123,10 +115,6 @@ export declare const Media: {
|
|
|
123
115
|
};
|
|
124
116
|
dataLens: {
|
|
125
117
|
oneOf: ({
|
|
126
|
-
type: string;
|
|
127
|
-
optionName: string;
|
|
128
|
-
} | {
|
|
129
|
-
optionName: string;
|
|
130
118
|
type: string;
|
|
131
119
|
additionalProperties: boolean;
|
|
132
120
|
required: string[];
|
|
@@ -139,6 +127,8 @@ export declare const Media: {
|
|
|
139
127
|
enum: string[];
|
|
140
128
|
};
|
|
141
129
|
};
|
|
130
|
+
} | {
|
|
131
|
+
type: string;
|
|
142
132
|
})[];
|
|
143
133
|
};
|
|
144
134
|
fullscreen: {
|
|
@@ -269,9 +259,8 @@ export declare const MediaBlockBaseProps: {
|
|
|
269
259
|
enum: string[];
|
|
270
260
|
};
|
|
271
261
|
img: {
|
|
272
|
-
|
|
262
|
+
anyOf: ({
|
|
273
263
|
type: string;
|
|
274
|
-
optionName: string;
|
|
275
264
|
additionalProperties?: undefined;
|
|
276
265
|
required?: undefined;
|
|
277
266
|
properties?: undefined;
|
|
@@ -292,13 +281,11 @@ export declare const MediaBlockBaseProps: {
|
|
|
292
281
|
contentType: string;
|
|
293
282
|
};
|
|
294
283
|
};
|
|
295
|
-
optionName: string;
|
|
296
284
|
})[];
|
|
297
285
|
};
|
|
298
286
|
metrikaGoals: {
|
|
299
|
-
|
|
287
|
+
anyOf: ({
|
|
300
288
|
type: string;
|
|
301
|
-
optionName: string;
|
|
302
289
|
items?: undefined;
|
|
303
290
|
} | {
|
|
304
291
|
type: string;
|
|
@@ -308,7 +295,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
308
295
|
required?: undefined;
|
|
309
296
|
properties?: undefined;
|
|
310
297
|
};
|
|
311
|
-
optionName: string;
|
|
312
298
|
} | {
|
|
313
299
|
type: string;
|
|
314
300
|
items: {
|
|
@@ -324,7 +310,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
324
310
|
};
|
|
325
311
|
};
|
|
326
312
|
};
|
|
327
|
-
optionName: string;
|
|
328
313
|
})[];
|
|
329
314
|
};
|
|
330
315
|
pixelEvents: {
|
|
@@ -384,8 +369,7 @@ export declare const MediaBlockBaseProps: {
|
|
|
384
369
|
};
|
|
385
370
|
};
|
|
386
371
|
analyticsEvents: {
|
|
387
|
-
|
|
388
|
-
optionName: string;
|
|
372
|
+
anyOf: ({
|
|
389
373
|
type: string;
|
|
390
374
|
additionalProperties: {
|
|
391
375
|
type: string;
|
|
@@ -421,7 +405,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
421
405
|
type: string;
|
|
422
406
|
};
|
|
423
407
|
};
|
|
424
|
-
items?: undefined;
|
|
425
408
|
} | {
|
|
426
409
|
type: string;
|
|
427
410
|
items: {
|
|
@@ -461,7 +444,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
461
444
|
};
|
|
462
445
|
};
|
|
463
446
|
};
|
|
464
|
-
optionName: string;
|
|
465
447
|
})[];
|
|
466
448
|
};
|
|
467
449
|
target: {
|
|
@@ -485,11 +467,6 @@ export declare const MediaBlockBaseProps: {
|
|
|
485
467
|
};
|
|
486
468
|
title: {
|
|
487
469
|
oneOf: ({
|
|
488
|
-
type: string;
|
|
489
|
-
contentType: string;
|
|
490
|
-
optionName: string;
|
|
491
|
-
} | {
|
|
492
|
-
optionName: string;
|
|
493
470
|
type: string;
|
|
494
471
|
additionalProperties: boolean;
|
|
495
472
|
required: string[];
|
|
@@ -509,7 +486,9 @@ export declare const MediaBlockBaseProps: {
|
|
|
509
486
|
type: string;
|
|
510
487
|
};
|
|
511
488
|
};
|
|
512
|
-
|
|
489
|
+
} | {
|
|
490
|
+
type: string;
|
|
491
|
+
contentType: string;
|
|
513
492
|
})[];
|
|
514
493
|
};
|
|
515
494
|
size: {
|
|
@@ -578,17 +557,29 @@ export declare const MediaBlock: {
|
|
|
578
557
|
required: string[];
|
|
579
558
|
properties: {
|
|
580
559
|
media: {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
560
|
+
type: string;
|
|
561
|
+
additionalProperties: boolean;
|
|
562
|
+
required: never[];
|
|
563
|
+
properties: {
|
|
564
|
+
color: {
|
|
565
|
+
type: string;
|
|
566
|
+
};
|
|
567
|
+
image: {
|
|
568
|
+
anyOf: ({
|
|
590
569
|
oneOf: ({
|
|
591
|
-
|
|
570
|
+
type: string;
|
|
571
|
+
properties: {
|
|
572
|
+
when: {
|
|
573
|
+
type: string;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
} | {
|
|
577
|
+
type: string;
|
|
578
|
+
pattern: string;
|
|
579
|
+
})[];
|
|
580
|
+
} | {
|
|
581
|
+
type: string;
|
|
582
|
+
items: {
|
|
592
583
|
oneOf: ({
|
|
593
584
|
type: string;
|
|
594
585
|
properties: {
|
|
@@ -599,133 +590,148 @@ export declare const MediaBlock: {
|
|
|
599
590
|
} | {
|
|
600
591
|
type: string;
|
|
601
592
|
pattern: string;
|
|
602
|
-
optionName: string;
|
|
603
593
|
})[];
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
594
|
+
};
|
|
595
|
+
})[];
|
|
596
|
+
};
|
|
597
|
+
video: {
|
|
598
|
+
type: string;
|
|
599
|
+
additionalProperties: boolean;
|
|
600
|
+
required: string[];
|
|
601
|
+
properties: {
|
|
602
|
+
src: {
|
|
607
603
|
type: string;
|
|
608
604
|
items: {
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
605
|
+
type: string;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
loop: {
|
|
609
|
+
anyOf: ({
|
|
610
|
+
type: string;
|
|
611
|
+
additionalProperties: boolean;
|
|
612
|
+
required: string[];
|
|
613
|
+
properties: {
|
|
614
|
+
start: {
|
|
615
|
+
type: string;
|
|
615
616
|
};
|
|
616
|
-
|
|
617
|
+
end: {
|
|
618
|
+
type: string;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
} | {
|
|
622
|
+
type: string;
|
|
623
|
+
})[];
|
|
624
|
+
};
|
|
625
|
+
type: {
|
|
626
|
+
type: string;
|
|
627
|
+
enum: string[];
|
|
628
|
+
};
|
|
629
|
+
muted: {
|
|
630
|
+
type: string;
|
|
631
|
+
};
|
|
632
|
+
playing: {
|
|
633
|
+
type: string;
|
|
634
|
+
};
|
|
635
|
+
elapsedTime: {
|
|
636
|
+
type: string;
|
|
637
|
+
};
|
|
638
|
+
playIcon: {
|
|
639
|
+
type: string;
|
|
640
|
+
additionalProperties: boolean;
|
|
641
|
+
properties: {
|
|
642
|
+
type: {
|
|
643
|
+
type: string;
|
|
644
|
+
enum: string[];
|
|
645
|
+
};
|
|
646
|
+
theme: {
|
|
617
647
|
type: string;
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
648
|
+
enum: string[];
|
|
649
|
+
};
|
|
650
|
+
text: {
|
|
651
|
+
type: string;
|
|
652
|
+
contentType: string;
|
|
653
|
+
};
|
|
621
654
|
};
|
|
622
|
-
|
|
623
|
-
|
|
655
|
+
};
|
|
656
|
+
controls: {
|
|
657
|
+
type: string;
|
|
658
|
+
enum: string[];
|
|
659
|
+
};
|
|
624
660
|
};
|
|
625
|
-
|
|
661
|
+
};
|
|
662
|
+
youtube: {
|
|
663
|
+
type: string;
|
|
664
|
+
};
|
|
665
|
+
parallax: {
|
|
666
|
+
type: string;
|
|
667
|
+
};
|
|
668
|
+
height: {
|
|
669
|
+
type: string;
|
|
670
|
+
};
|
|
671
|
+
previewImg: {
|
|
672
|
+
type: string;
|
|
673
|
+
};
|
|
674
|
+
dataLens: {
|
|
675
|
+
oneOf: ({
|
|
626
676
|
type: string;
|
|
627
677
|
additionalProperties: boolean;
|
|
628
678
|
required: string[];
|
|
629
679
|
properties: {
|
|
630
|
-
|
|
680
|
+
id: {
|
|
631
681
|
type: string;
|
|
632
|
-
items: {
|
|
633
|
-
type: string;
|
|
634
|
-
};
|
|
635
682
|
};
|
|
636
|
-
|
|
637
|
-
oneOf: ({
|
|
638
|
-
optionName: string;
|
|
639
|
-
type: string;
|
|
640
|
-
additionalProperties: boolean;
|
|
641
|
-
required: string[];
|
|
642
|
-
properties: {
|
|
643
|
-
start: {
|
|
644
|
-
type: string;
|
|
645
|
-
};
|
|
646
|
-
end: {
|
|
647
|
-
type: string;
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
} | {
|
|
651
|
-
type: string;
|
|
652
|
-
optionName: string;
|
|
653
|
-
})[];
|
|
654
|
-
};
|
|
655
|
-
type: {
|
|
683
|
+
theme: {
|
|
656
684
|
type: string;
|
|
657
685
|
enum: string[];
|
|
658
686
|
};
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
687
|
+
};
|
|
688
|
+
} | {
|
|
689
|
+
type: string;
|
|
690
|
+
})[];
|
|
691
|
+
};
|
|
692
|
+
fullscreen: {
|
|
693
|
+
type: string;
|
|
694
|
+
};
|
|
695
|
+
analyticsEvents: {
|
|
696
|
+
anyOf: ({
|
|
697
|
+
type: string;
|
|
698
|
+
additionalProperties: {
|
|
699
|
+
type: string;
|
|
700
|
+
};
|
|
701
|
+
required: string[];
|
|
702
|
+
properties: {
|
|
703
|
+
name: {
|
|
663
704
|
type: string;
|
|
664
705
|
};
|
|
665
|
-
|
|
706
|
+
type: {
|
|
666
707
|
type: string;
|
|
667
708
|
};
|
|
668
|
-
|
|
709
|
+
counters: {
|
|
669
710
|
type: string;
|
|
670
711
|
additionalProperties: boolean;
|
|
712
|
+
required: never[];
|
|
671
713
|
properties: {
|
|
672
|
-
|
|
673
|
-
type: string;
|
|
674
|
-
enum: string[];
|
|
675
|
-
};
|
|
676
|
-
theme: {
|
|
714
|
+
include: {
|
|
677
715
|
type: string;
|
|
678
|
-
|
|
716
|
+
items: {
|
|
717
|
+
type: string;
|
|
718
|
+
};
|
|
679
719
|
};
|
|
680
|
-
|
|
720
|
+
exclude: {
|
|
681
721
|
type: string;
|
|
682
|
-
|
|
722
|
+
items: {
|
|
723
|
+
type: string;
|
|
724
|
+
};
|
|
683
725
|
};
|
|
684
726
|
};
|
|
685
727
|
};
|
|
686
|
-
|
|
728
|
+
context: {
|
|
687
729
|
type: string;
|
|
688
|
-
enum: string[];
|
|
689
730
|
};
|
|
690
731
|
};
|
|
691
|
-
}
|
|
692
|
-
youtube: {
|
|
693
|
-
type: string;
|
|
694
|
-
};
|
|
695
|
-
parallax: {
|
|
696
|
-
type: string;
|
|
697
|
-
};
|
|
698
|
-
height: {
|
|
699
|
-
type: string;
|
|
700
|
-
};
|
|
701
|
-
previewImg: {
|
|
702
|
-
type: string;
|
|
703
|
-
};
|
|
704
|
-
dataLens: {
|
|
705
|
-
oneOf: ({
|
|
706
|
-
type: string;
|
|
707
|
-
optionName: string;
|
|
708
|
-
} | {
|
|
709
|
-
optionName: string;
|
|
710
|
-
type: string;
|
|
711
|
-
additionalProperties: boolean;
|
|
712
|
-
required: string[];
|
|
713
|
-
properties: {
|
|
714
|
-
id: {
|
|
715
|
-
type: string;
|
|
716
|
-
};
|
|
717
|
-
theme: {
|
|
718
|
-
type: string;
|
|
719
|
-
enum: string[];
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
})[];
|
|
723
|
-
};
|
|
724
|
-
fullscreen: {
|
|
732
|
+
} | {
|
|
725
733
|
type: string;
|
|
726
|
-
|
|
727
|
-
analyticsEvents: {
|
|
728
|
-
anyOf: ({
|
|
734
|
+
items: {
|
|
729
735
|
type: string;
|
|
730
736
|
additionalProperties: {
|
|
731
737
|
type: string;
|
|
@@ -761,57 +767,10 @@ export declare const MediaBlock: {
|
|
|
761
767
|
type: string;
|
|
762
768
|
};
|
|
763
769
|
};
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
items: {
|
|
767
|
-
type: string;
|
|
768
|
-
additionalProperties: {
|
|
769
|
-
type: string;
|
|
770
|
-
};
|
|
771
|
-
required: string[];
|
|
772
|
-
properties: {
|
|
773
|
-
name: {
|
|
774
|
-
type: string;
|
|
775
|
-
};
|
|
776
|
-
type: {
|
|
777
|
-
type: string;
|
|
778
|
-
};
|
|
779
|
-
counters: {
|
|
780
|
-
type: string;
|
|
781
|
-
additionalProperties: boolean;
|
|
782
|
-
required: never[];
|
|
783
|
-
properties: {
|
|
784
|
-
include: {
|
|
785
|
-
type: string;
|
|
786
|
-
items: {
|
|
787
|
-
type: string;
|
|
788
|
-
};
|
|
789
|
-
};
|
|
790
|
-
exclude: {
|
|
791
|
-
type: string;
|
|
792
|
-
items: {
|
|
793
|
-
type: string;
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
context: {
|
|
799
|
-
type: string;
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
};
|
|
803
|
-
})[];
|
|
804
|
-
};
|
|
770
|
+
};
|
|
771
|
+
})[];
|
|
805
772
|
};
|
|
806
|
-
}
|
|
807
|
-
optionName: string;
|
|
808
|
-
}) | {
|
|
809
|
-
type: string;
|
|
810
|
-
additionalProperties: boolean;
|
|
811
|
-
required: import("../..").Theme[];
|
|
812
|
-
properties: {};
|
|
813
|
-
optionName: string;
|
|
814
|
-
})[];
|
|
773
|
+
};
|
|
815
774
|
};
|
|
816
775
|
description: {
|
|
817
776
|
type: string;
|
|
@@ -857,9 +816,8 @@ export declare const MediaBlock: {
|
|
|
857
816
|
enum: string[];
|
|
858
817
|
};
|
|
859
818
|
img: {
|
|
860
|
-
|
|
819
|
+
anyOf: ({
|
|
861
820
|
type: string;
|
|
862
|
-
optionName: string;
|
|
863
821
|
additionalProperties?: undefined;
|
|
864
822
|
required?: undefined;
|
|
865
823
|
properties?: undefined;
|
|
@@ -880,13 +838,11 @@ export declare const MediaBlock: {
|
|
|
880
838
|
contentType: string;
|
|
881
839
|
};
|
|
882
840
|
};
|
|
883
|
-
optionName: string;
|
|
884
841
|
})[];
|
|
885
842
|
};
|
|
886
843
|
metrikaGoals: {
|
|
887
|
-
|
|
844
|
+
anyOf: ({
|
|
888
845
|
type: string;
|
|
889
|
-
optionName: string;
|
|
890
846
|
items?: undefined;
|
|
891
847
|
} | {
|
|
892
848
|
type: string;
|
|
@@ -896,7 +852,6 @@ export declare const MediaBlock: {
|
|
|
896
852
|
required?: undefined;
|
|
897
853
|
properties?: undefined;
|
|
898
854
|
};
|
|
899
|
-
optionName: string;
|
|
900
855
|
} | {
|
|
901
856
|
type: string;
|
|
902
857
|
items: {
|
|
@@ -912,7 +867,6 @@ export declare const MediaBlock: {
|
|
|
912
867
|
};
|
|
913
868
|
};
|
|
914
869
|
};
|
|
915
|
-
optionName: string;
|
|
916
870
|
})[];
|
|
917
871
|
};
|
|
918
872
|
pixelEvents: {
|
|
@@ -972,8 +926,7 @@ export declare const MediaBlock: {
|
|
|
972
926
|
};
|
|
973
927
|
};
|
|
974
928
|
analyticsEvents: {
|
|
975
|
-
|
|
976
|
-
optionName: string;
|
|
929
|
+
anyOf: ({
|
|
977
930
|
type: string;
|
|
978
931
|
additionalProperties: {
|
|
979
932
|
type: string;
|
|
@@ -1009,7 +962,6 @@ export declare const MediaBlock: {
|
|
|
1009
962
|
type: string;
|
|
1010
963
|
};
|
|
1011
964
|
};
|
|
1012
|
-
items?: undefined;
|
|
1013
965
|
} | {
|
|
1014
966
|
type: string;
|
|
1015
967
|
items: {
|
|
@@ -1049,7 +1001,6 @@ export declare const MediaBlock: {
|
|
|
1049
1001
|
};
|
|
1050
1002
|
};
|
|
1051
1003
|
};
|
|
1052
|
-
optionName: string;
|
|
1053
1004
|
})[];
|
|
1054
1005
|
};
|
|
1055
1006
|
target: {
|
|
@@ -1073,11 +1024,6 @@ export declare const MediaBlock: {
|
|
|
1073
1024
|
};
|
|
1074
1025
|
title: {
|
|
1075
1026
|
oneOf: ({
|
|
1076
|
-
type: string;
|
|
1077
|
-
contentType: string;
|
|
1078
|
-
optionName: string;
|
|
1079
|
-
} | {
|
|
1080
|
-
optionName: string;
|
|
1081
1027
|
type: string;
|
|
1082
1028
|
additionalProperties: boolean;
|
|
1083
1029
|
required: string[];
|
|
@@ -1097,7 +1043,9 @@ export declare const MediaBlock: {
|
|
|
1097
1043
|
type: string;
|
|
1098
1044
|
};
|
|
1099
1045
|
};
|
|
1100
|
-
|
|
1046
|
+
} | {
|
|
1047
|
+
type: string;
|
|
1048
|
+
contentType: string;
|
|
1101
1049
|
})[];
|
|
1102
1050
|
};
|
|
1103
1051
|
size: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { omit } from 'lodash';
|
|
2
|
-
import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection,
|
|
2
|
+
import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection, } from '../../schema/validators/common';
|
|
3
3
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
4
4
|
export const Media = {
|
|
5
5
|
type: 'object',
|
|
@@ -28,6 +28,6 @@ export const MediaBlock = {
|
|
|
28
28
|
'media-block': {
|
|
29
29
|
additionalProperties: false,
|
|
30
30
|
required: ['title', 'media'],
|
|
31
|
-
properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { media:
|
|
31
|
+
properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { media: Media }),
|
|
32
32
|
},
|
|
33
33
|
};
|