@gravity-ui/page-constructor 3.5.0-alpha.0 → 3.6.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 +46 -0
- package/README.md +2 -0
- package/build/cjs/blocks/Banner/schema.d.ts +63 -21
- package/build/cjs/blocks/CardLayout/schema.d.ts +10 -4
- package/build/cjs/blocks/Companies/schema.d.ts +5 -2
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +3 -2
- package/build/cjs/blocks/ContentLayout/schema.d.ts +107 -61
- package/build/cjs/blocks/ContentLayout/schema.js +23 -18
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +31 -4
- package/build/cjs/blocks/ExtendedFeatures/schema.js +2 -3
- package/build/cjs/blocks/FilterBlock/schema.d.ts +13 -5
- package/build/cjs/blocks/FilterBlock/schema.js +13 -2
- package/build/cjs/blocks/Header/Header.css +6 -7
- package/build/cjs/blocks/Header/schema.d.ts +92 -36
- package/build/cjs/blocks/Header/schema.js +1 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +48 -53
- package/build/cjs/blocks/HeaderSlider/schema.js +3 -1
- package/build/cjs/blocks/Icons/schema.d.ts +3 -1
- package/build/cjs/blocks/Icons/schema.js +2 -1
- package/build/cjs/blocks/Info/schema.d.ts +19 -8
- package/build/cjs/blocks/Map/schema.d.ts +17 -6
- package/build/cjs/blocks/Media/schema.d.ts +204 -152
- package/build/cjs/blocks/Media/schema.js +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +22 -8
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -0
- package/build/cjs/blocks/Questions/schema.d.ts +7 -3
- package/build/cjs/blocks/Slider/schema.d.ts +13 -18
- package/build/cjs/blocks/Slider/schema.js +4 -5
- package/build/cjs/blocks/Table/schema.d.ts +5 -2
- package/build/cjs/blocks/Table/schema.js +12 -2
- package/build/cjs/blocks/Tabs/schema.d.ts +43 -16
- 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 +1 -0
- package/build/cjs/components/Image/schema.js +3 -2
- 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 +5 -6
- 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/BlockForm/BlockForm.d.ts +12 -0
- package/build/cjs/editor/components/BlockForm/BlockForm.js +33 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +26 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +8 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +25 -0
- package/build/cjs/editor/components/ControlPanel/i18n/en.json +3 -0
- package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +2 -0
- package/build/cjs/editor/components/ControlPanel/i18n/index.js +8 -0
- package/build/cjs/editor/components/ControlPanel/i18n/ru.json +3 -0
- package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +13 -0
- package/build/cjs/editor/components/EditBlock/EditBlock.js +44 -0
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +13 -0
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +35 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +4 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +8 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +4 -0
- package/build/cjs/editor/components/Layout/Layout.css +39 -0
- package/build/cjs/editor/components/Layout/Layout.d.ts +16 -0
- package/build/cjs/editor/components/Layout/Layout.js +34 -0
- package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
- package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +17 -0
- package/build/cjs/editor/containers/Editor/Editor.d.ts +2 -0
- package/build/cjs/editor/containers/Editor/Editor.js +40 -0
- package/build/cjs/editor/containers/Form/Form.css +94 -0
- package/build/cjs/editor/containers/Form/Form.d.ts +11 -0
- package/build/cjs/editor/containers/Form/Form.js +47 -0
- package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
- package/build/cjs/editor/data/templates/banner-block.json +25 -0
- package/build/cjs/editor/data/templates/card-layout-block.json +39 -0
- package/build/cjs/editor/data/templates/companies-block.json +20 -0
- package/build/cjs/editor/data/templates/content-layout-block.json +56 -0
- package/build/cjs/editor/data/templates/extended-features-block.json +56 -0
- package/build/cjs/editor/data/templates/filter-block.json +62 -0
- package/build/cjs/editor/data/templates/header-block.json +19 -0
- package/build/cjs/editor/data/templates/header-slider-block.json +69 -0
- package/build/cjs/editor/data/templates/icons-block.json +32 -0
- package/build/cjs/editor/data/templates/info-block.json +40 -0
- package/build/cjs/editor/data/templates/link-table-block.json +10 -0
- package/build/cjs/editor/data/templates/map-block.json +48 -0
- package/build/cjs/editor/data/templates/media-block.json +15 -0
- package/build/cjs/editor/data/templates/preview-block.json +38 -0
- package/build/cjs/editor/data/templates/promo-features-block.json +52 -0
- package/build/cjs/editor/data/templates/questions-block.json +105 -0
- package/build/cjs/editor/data/templates/security-block.json +36 -0
- package/build/cjs/editor/data/templates/share-block.json +6 -0
- package/build/cjs/editor/data/templates/simple-block.json +7 -0
- package/build/cjs/editor/data/templates/slider-block.json +46 -0
- package/build/cjs/editor/data/templates/table-block.json +18 -0
- package/build/cjs/editor/data/templates/tabs-block.json +90 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +19 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +72 -0
- package/build/cjs/editor/dynamic-forms-custom/config.d.ts +2 -0
- package/build/cjs/editor/dynamic-forms-custom/config.js +13 -0
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +75 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +36 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/index.js +188 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +29 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/types.js +2 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/views.js +46 -0
- package/build/cjs/editor/hooks/useFormSpec.d.ts +2 -0
- package/build/cjs/editor/hooks/useFormSpec.js +13 -0
- package/build/cjs/editor/hooks/usePreviousValue.d.ts +1 -0
- package/build/cjs/editor/hooks/usePreviousValue.js +11 -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 +10 -11
- package/build/cjs/editor/store/index.js +66 -15
- package/build/cjs/editor/store/reducer.d.ts +24 -9
- package/build/cjs/editor/store/reducer.js +17 -31
- package/build/cjs/editor/store/utils.d.ts +1 -0
- package/build/cjs/editor/store/utils.js +3 -1
- package/build/cjs/editor/styles/root.css +5 -0
- package/build/cjs/editor/types/index.d.ts +15 -9
- package/build/cjs/editor/types/index.js +6 -0
- package/build/cjs/editor/utils/index.d.ts +4 -3
- package/build/cjs/editor/utils/index.js +6 -4
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +13 -8
- package/build/cjs/models/constructor.d.ts +2 -2
- package/build/cjs/models/customization.d.ts +3 -8
- package/build/cjs/models/navigation.d.ts +1 -0
- package/build/cjs/navigation/components/Header/Header.css +2 -0
- package/build/cjs/navigation/components/Header/Header.js +15 -4
- package/build/cjs/navigation/schema.d.ts +1 -0
- package/build/cjs/schema/constants.d.ts +908 -0
- package/build/cjs/schema/constants.js +42 -0
- package/build/cjs/schema/index.d.ts +9 -228
- package/build/cjs/schema/index.js +8 -46
- package/build/cjs/schema/validators/common.d.ts +71 -27
- package/build/cjs/schema/validators/common.js +50 -17
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +12 -5
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +8 -3
- package/build/cjs/sub-blocks/Content/schema.d.ts +14 -6
- package/build/cjs/sub-blocks/Content/schema.js +9 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +23 -9
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +16 -6
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +5 -1
- package/build/cjs/sub-blocks/Quote/schema.d.ts +6 -2
- package/build/esm/blocks/Banner/schema.d.ts +63 -21
- package/build/esm/blocks/CardLayout/schema.d.ts +10 -4
- package/build/esm/blocks/Companies/schema.d.ts +5 -2
- package/build/esm/blocks/ContentLayout/ContentLayout.js +3 -2
- package/build/esm/blocks/ContentLayout/schema.d.ts +107 -61
- package/build/esm/blocks/ContentLayout/schema.js +23 -18
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +31 -4
- package/build/esm/blocks/ExtendedFeatures/schema.js +3 -4
- package/build/esm/blocks/FilterBlock/schema.d.ts +13 -5
- package/build/esm/blocks/FilterBlock/schema.js +13 -2
- package/build/esm/blocks/Header/Header.css +6 -7
- package/build/esm/blocks/Header/schema.d.ts +92 -36
- package/build/esm/blocks/Header/schema.js +1 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +48 -53
- package/build/esm/blocks/HeaderSlider/schema.js +2 -1
- package/build/esm/blocks/Icons/schema.d.ts +3 -1
- package/build/esm/blocks/Icons/schema.js +2 -1
- package/build/esm/blocks/Info/schema.d.ts +19 -8
- package/build/esm/blocks/Map/schema.d.ts +17 -6
- package/build/esm/blocks/Media/schema.d.ts +204 -152
- package/build/esm/blocks/Media/schema.js +2 -2
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +22 -8
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -0
- package/build/esm/blocks/Questions/schema.d.ts +7 -3
- package/build/esm/blocks/Slider/schema.d.ts +13 -18
- package/build/esm/blocks/Slider/schema.js +4 -5
- package/build/esm/blocks/Table/schema.d.ts +5 -2
- package/build/esm/blocks/Table/schema.js +12 -2
- package/build/esm/blocks/Tabs/schema.d.ts +43 -16
- 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 +1 -0
- package/build/esm/components/Image/schema.js +3 -2
- 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/BlockForm/BlockForm.d.ts +12 -0
- package/build/esm/editor/components/BlockForm/BlockForm.js +30 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +26 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +9 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +23 -0
- package/build/esm/editor/components/ControlPanel/i18n/en.json +3 -0
- package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +2 -0
- package/build/esm/editor/components/ControlPanel/i18n/index.js +5 -0
- package/build/esm/editor/components/ControlPanel/i18n/ru.json +3 -0
- package/build/esm/editor/components/EditBlock/EditBlock.d.ts +14 -0
- package/build/esm/editor/components/EditBlock/EditBlock.js +41 -0
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +14 -0
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +31 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/en.json +4 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/index.js +5 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +4 -0
- package/build/esm/editor/components/Layout/Layout.css +39 -0
- package/build/esm/editor/components/Layout/Layout.d.ts +17 -0
- package/build/esm/editor/components/Layout/Layout.js +32 -0
- package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
- package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +13 -0
- package/build/esm/editor/containers/Editor/Editor.d.ts +2 -0
- package/build/esm/editor/containers/Editor/Editor.js +36 -0
- package/build/esm/editor/containers/Form/Form.css +94 -0
- package/build/esm/editor/containers/Form/Form.d.ts +12 -0
- package/build/esm/editor/containers/Form/Form.js +45 -0
- package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
- package/build/esm/editor/data/templates/banner-block.json +25 -0
- package/build/esm/editor/data/templates/card-layout-block.json +39 -0
- package/build/esm/editor/data/templates/companies-block.json +20 -0
- package/build/esm/editor/data/templates/content-layout-block.json +56 -0
- package/build/esm/editor/data/templates/extended-features-block.json +56 -0
- package/build/esm/editor/data/templates/filter-block.json +62 -0
- package/build/esm/editor/data/templates/header-block.json +19 -0
- package/build/esm/editor/data/templates/header-slider-block.json +69 -0
- package/build/esm/editor/data/templates/icons-block.json +32 -0
- package/build/esm/editor/data/templates/info-block.json +40 -0
- package/build/esm/editor/data/templates/link-table-block.json +10 -0
- package/build/esm/editor/data/templates/map-block.json +48 -0
- package/build/esm/editor/data/templates/media-block.json +15 -0
- package/build/esm/editor/data/templates/preview-block.json +38 -0
- package/build/esm/editor/data/templates/promo-features-block.json +52 -0
- package/build/esm/editor/data/templates/questions-block.json +105 -0
- package/build/esm/editor/data/templates/security-block.json +36 -0
- package/build/esm/editor/data/templates/share-block.json +6 -0
- package/build/esm/editor/data/templates/simple-block.json +7 -0
- package/build/esm/editor/data/templates/slider-block.json +46 -0
- package/build/esm/editor/data/templates/table-block.json +18 -0
- package/build/esm/editor/data/templates/tabs-block.json +90 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +20 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +68 -0
- package/build/esm/editor/dynamic-forms-custom/config.d.ts +2 -0
- package/build/esm/editor/dynamic-forms-custom/config.js +9 -0
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +69 -0
- package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
- package/build/esm/editor/dynamic-forms-custom/parser/detect.js +32 -0
- package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
- package/build/esm/editor/dynamic-forms-custom/parser/index.js +186 -0
- package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +29 -0
- package/build/esm/editor/dynamic-forms-custom/parser/types.js +1 -0
- package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
- package/build/esm/editor/dynamic-forms-custom/parser/views.js +39 -0
- package/build/esm/editor/hooks/useFormSpec.d.ts +2 -0
- package/build/esm/editor/hooks/useFormSpec.js +9 -0
- package/build/esm/editor/hooks/usePreviousValue.d.ts +1 -0
- package/build/esm/editor/hooks/usePreviousValue.js +8 -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 +10 -11
- package/build/esm/editor/store/index.js +68 -17
- package/build/esm/editor/store/reducer.d.ts +24 -9
- package/build/esm/editor/store/reducer.js +15 -29
- package/build/esm/editor/store/utils.d.ts +1 -0
- package/build/esm/editor/store/utils.js +1 -0
- package/build/esm/editor/styles/root.css +5 -0
- package/build/esm/editor/types/index.d.ts +15 -9
- package/build/esm/editor/types/index.js +5 -1
- package/build/esm/editor/utils/index.d.ts +4 -3
- package/build/esm/editor/utils/index.js +4 -3
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +13 -8
- package/build/esm/models/constructor.d.ts +2 -2
- package/build/esm/models/customization.d.ts +3 -8
- package/build/esm/models/navigation.d.ts +1 -0
- package/build/esm/navigation/components/Header/Header.css +2 -0
- package/build/esm/navigation/components/Header/Header.js +16 -5
- package/build/esm/navigation/schema.d.ts +1 -0
- package/build/esm/schema/constants.d.ts +908 -0
- package/build/esm/schema/constants.js +39 -0
- package/build/esm/schema/index.d.ts +9 -228
- package/build/esm/schema/index.js +4 -42
- package/build/esm/schema/validators/common.d.ts +71 -27
- package/build/esm/schema/validators/common.js +49 -16
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +12 -5
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +8 -3
- package/build/esm/sub-blocks/Content/schema.d.ts +14 -6
- package/build/esm/sub-blocks/Content/schema.js +9 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +23 -9
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +16 -6
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +1 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.js +5 -1
- package/build/esm/sub-blocks/Quote/schema.d.ts +6 -2
- package/package.json +39 -7
- package/server/models/constructor-items/blocks.d.ts +13 -8
- package/server/models/constructor.d.ts +2 -2
- package/server/models/customization.d.ts +3 -8
- package/server/models/navigation.d.ts +1 -0
- package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +0 -7
- package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +0 -4
- package/build/cjs/editor/Components/EditBlock/EditBlock.js +0 -32
- package/build/cjs/editor/Containers/Editor.d.ts +0 -2
- package/build/cjs/editor/Containers/Editor.js +0 -24
- package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +0 -8
- package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +0 -5
- package/build/esm/editor/Components/EditBlock/EditBlock.js +0 -30
- package/build/esm/editor/Containers/Editor.d.ts +0 -2
- package/build/esm/editor/Containers/Editor.js +0 -20
- /package/build/cjs/editor/{Components → components}/EditBlock/EditBlock.css +0 -0
- /package/build/esm/editor/{Components → components}/EditBlock/EditBlock.css +0 -0
|
@@ -29,12 +29,14 @@ export declare const containerSizesObject: {
|
|
|
29
29
|
properties: {};
|
|
30
30
|
};
|
|
31
31
|
export declare const sliderSizesObject: {
|
|
32
|
-
|
|
32
|
+
oneOf: ({
|
|
33
33
|
type: string;
|
|
34
34
|
additionalProperties: boolean;
|
|
35
35
|
properties: {};
|
|
36
|
+
optionName: string;
|
|
36
37
|
} | {
|
|
37
38
|
type: string;
|
|
39
|
+
optionName: string;
|
|
38
40
|
additionalProperties?: undefined;
|
|
39
41
|
properties?: undefined;
|
|
40
42
|
})[];
|
|
@@ -69,7 +71,7 @@ export declare const LoopProps: {
|
|
|
69
71
|
};
|
|
70
72
|
};
|
|
71
73
|
};
|
|
72
|
-
export declare const
|
|
74
|
+
export declare const PlayButtonProps: {
|
|
73
75
|
type: string;
|
|
74
76
|
additionalProperties: boolean;
|
|
75
77
|
properties: {
|
|
@@ -99,7 +101,8 @@ export declare const VideoProps: {
|
|
|
99
101
|
};
|
|
100
102
|
};
|
|
101
103
|
loop: {
|
|
102
|
-
|
|
104
|
+
oneOf: ({
|
|
105
|
+
optionName: string;
|
|
103
106
|
type: string;
|
|
104
107
|
additionalProperties: boolean;
|
|
105
108
|
required: string[];
|
|
@@ -113,6 +116,7 @@ export declare const VideoProps: {
|
|
|
113
116
|
};
|
|
114
117
|
} | {
|
|
115
118
|
type: string;
|
|
119
|
+
optionName: string;
|
|
116
120
|
})[];
|
|
117
121
|
};
|
|
118
122
|
type: {
|
|
@@ -122,13 +126,13 @@ export declare const VideoProps: {
|
|
|
122
126
|
muted: {
|
|
123
127
|
type: string;
|
|
124
128
|
};
|
|
125
|
-
|
|
129
|
+
autoplay: {
|
|
126
130
|
type: string;
|
|
127
131
|
};
|
|
128
132
|
elapsedTime: {
|
|
129
133
|
type: string;
|
|
130
134
|
};
|
|
131
|
-
|
|
135
|
+
playButton: {
|
|
132
136
|
type: string;
|
|
133
137
|
additionalProperties: boolean;
|
|
134
138
|
properties: {
|
|
@@ -176,6 +180,10 @@ export declare const DataLensObjectProps: {
|
|
|
176
180
|
};
|
|
177
181
|
export declare const DataLensProps: {
|
|
178
182
|
oneOf: ({
|
|
183
|
+
type: string;
|
|
184
|
+
optionName: string;
|
|
185
|
+
} | {
|
|
186
|
+
optionName: string;
|
|
179
187
|
type: string;
|
|
180
188
|
additionalProperties: boolean;
|
|
181
189
|
required: string[];
|
|
@@ -188,8 +196,6 @@ export declare const DataLensProps: {
|
|
|
188
196
|
enum: string[];
|
|
189
197
|
};
|
|
190
198
|
};
|
|
191
|
-
} | {
|
|
192
|
-
type: string;
|
|
193
199
|
})[];
|
|
194
200
|
};
|
|
195
201
|
export declare const BackgroundProps: {
|
|
@@ -206,6 +212,7 @@ export declare const BackgroundProps: {
|
|
|
206
212
|
} | {
|
|
207
213
|
type: string;
|
|
208
214
|
pattern: string;
|
|
215
|
+
optionName: string;
|
|
209
216
|
})[];
|
|
210
217
|
};
|
|
211
218
|
color: {
|
|
@@ -223,7 +230,8 @@ export declare const BackgroundProps: {
|
|
|
223
230
|
};
|
|
224
231
|
};
|
|
225
232
|
loop: {
|
|
226
|
-
|
|
233
|
+
oneOf: ({
|
|
234
|
+
optionName: string;
|
|
227
235
|
type: string;
|
|
228
236
|
additionalProperties: boolean;
|
|
229
237
|
required: string[];
|
|
@@ -237,6 +245,7 @@ export declare const BackgroundProps: {
|
|
|
237
245
|
};
|
|
238
246
|
} | {
|
|
239
247
|
type: string;
|
|
248
|
+
optionName: string;
|
|
240
249
|
})[];
|
|
241
250
|
};
|
|
242
251
|
type: {
|
|
@@ -246,13 +255,13 @@ export declare const BackgroundProps: {
|
|
|
246
255
|
muted: {
|
|
247
256
|
type: string;
|
|
248
257
|
};
|
|
249
|
-
|
|
258
|
+
autoplay: {
|
|
250
259
|
type: string;
|
|
251
260
|
};
|
|
252
261
|
elapsedTime: {
|
|
253
262
|
type: string;
|
|
254
263
|
};
|
|
255
|
-
|
|
264
|
+
playButton: {
|
|
256
265
|
type: string;
|
|
257
266
|
additionalProperties: boolean;
|
|
258
267
|
properties: {
|
|
@@ -322,7 +331,8 @@ export declare const LinkProps: {
|
|
|
322
331
|
enum: string[];
|
|
323
332
|
};
|
|
324
333
|
analyticsEvents: {
|
|
325
|
-
|
|
334
|
+
oneOf: ({
|
|
335
|
+
optionName: string;
|
|
326
336
|
type: string;
|
|
327
337
|
additionalProperties: {
|
|
328
338
|
type: string;
|
|
@@ -358,6 +368,7 @@ export declare const LinkProps: {
|
|
|
358
368
|
type: string;
|
|
359
369
|
};
|
|
360
370
|
};
|
|
371
|
+
items?: undefined;
|
|
361
372
|
} | {
|
|
362
373
|
type: string;
|
|
363
374
|
items: {
|
|
@@ -397,6 +408,7 @@ export declare const LinkProps: {
|
|
|
397
408
|
};
|
|
398
409
|
};
|
|
399
410
|
};
|
|
411
|
+
optionName: string;
|
|
400
412
|
})[];
|
|
401
413
|
};
|
|
402
414
|
type: {};
|
|
@@ -471,8 +483,9 @@ export declare const ButtonProps: {
|
|
|
471
483
|
enum: string[];
|
|
472
484
|
};
|
|
473
485
|
img: {
|
|
474
|
-
|
|
486
|
+
oneOf: ({
|
|
475
487
|
type: string;
|
|
488
|
+
optionName: string;
|
|
476
489
|
additionalProperties?: undefined;
|
|
477
490
|
required?: undefined;
|
|
478
491
|
properties?: undefined;
|
|
@@ -493,14 +506,16 @@ export declare const ButtonProps: {
|
|
|
493
506
|
contentType: string;
|
|
494
507
|
};
|
|
495
508
|
};
|
|
509
|
+
optionName: string;
|
|
496
510
|
})[];
|
|
497
511
|
};
|
|
498
512
|
/**
|
|
499
513
|
* @deprecated Metrika will be deleted
|
|
500
514
|
*/
|
|
501
515
|
metrikaGoals: {
|
|
502
|
-
|
|
516
|
+
oneOf: ({
|
|
503
517
|
type: string;
|
|
518
|
+
optionName: string;
|
|
504
519
|
items?: undefined;
|
|
505
520
|
} | {
|
|
506
521
|
type: string;
|
|
@@ -510,6 +525,7 @@ export declare const ButtonProps: {
|
|
|
510
525
|
required?: undefined;
|
|
511
526
|
properties?: undefined;
|
|
512
527
|
};
|
|
528
|
+
optionName: string;
|
|
513
529
|
} | {
|
|
514
530
|
type: string;
|
|
515
531
|
items: {
|
|
@@ -525,6 +541,7 @@ export declare const ButtonProps: {
|
|
|
525
541
|
};
|
|
526
542
|
};
|
|
527
543
|
};
|
|
544
|
+
optionName: string;
|
|
528
545
|
})[];
|
|
529
546
|
};
|
|
530
547
|
/**
|
|
@@ -587,7 +604,8 @@ export declare const ButtonProps: {
|
|
|
587
604
|
};
|
|
588
605
|
};
|
|
589
606
|
analyticsEvents: {
|
|
590
|
-
|
|
607
|
+
oneOf: ({
|
|
608
|
+
optionName: string;
|
|
591
609
|
type: string;
|
|
592
610
|
additionalProperties: {
|
|
593
611
|
type: string;
|
|
@@ -623,6 +641,7 @@ export declare const ButtonProps: {
|
|
|
623
641
|
type: string;
|
|
624
642
|
};
|
|
625
643
|
};
|
|
644
|
+
items?: undefined;
|
|
626
645
|
} | {
|
|
627
646
|
type: string;
|
|
628
647
|
items: {
|
|
@@ -662,6 +681,7 @@ export declare const ButtonProps: {
|
|
|
662
681
|
};
|
|
663
682
|
};
|
|
664
683
|
};
|
|
684
|
+
optionName: string;
|
|
665
685
|
})[];
|
|
666
686
|
};
|
|
667
687
|
target: {
|
|
@@ -679,12 +699,15 @@ export declare const MenuProps: {
|
|
|
679
699
|
};
|
|
680
700
|
};
|
|
681
701
|
};
|
|
682
|
-
export declare function withTheme<T>(value: T): {
|
|
683
|
-
oneOf: (T
|
|
702
|
+
export declare function withTheme<T extends object>(value: T): {
|
|
703
|
+
oneOf: ((T & {
|
|
704
|
+
optionName: string;
|
|
705
|
+
}) | {
|
|
684
706
|
type: string;
|
|
685
707
|
additionalProperties: boolean;
|
|
686
708
|
required: Theme[];
|
|
687
709
|
properties: {};
|
|
710
|
+
optionName: string;
|
|
688
711
|
})[];
|
|
689
712
|
};
|
|
690
713
|
export declare const AnchorProps: {
|
|
@@ -773,8 +796,9 @@ export declare const ButtonBlock: {
|
|
|
773
796
|
enum: string[];
|
|
774
797
|
};
|
|
775
798
|
img: {
|
|
776
|
-
|
|
799
|
+
oneOf: ({
|
|
777
800
|
type: string;
|
|
801
|
+
optionName: string;
|
|
778
802
|
additionalProperties?: undefined;
|
|
779
803
|
required?: undefined;
|
|
780
804
|
properties?: undefined;
|
|
@@ -795,14 +819,16 @@ export declare const ButtonBlock: {
|
|
|
795
819
|
contentType: string;
|
|
796
820
|
};
|
|
797
821
|
};
|
|
822
|
+
optionName: string;
|
|
798
823
|
})[];
|
|
799
824
|
};
|
|
800
825
|
/**
|
|
801
826
|
* @deprecated Metrika will be deleted
|
|
802
827
|
*/
|
|
803
828
|
metrikaGoals: {
|
|
804
|
-
|
|
829
|
+
oneOf: ({
|
|
805
830
|
type: string;
|
|
831
|
+
optionName: string;
|
|
806
832
|
items?: undefined;
|
|
807
833
|
} | {
|
|
808
834
|
type: string;
|
|
@@ -812,6 +838,7 @@ export declare const ButtonBlock: {
|
|
|
812
838
|
required?: undefined;
|
|
813
839
|
properties?: undefined;
|
|
814
840
|
};
|
|
841
|
+
optionName: string;
|
|
815
842
|
} | {
|
|
816
843
|
type: string;
|
|
817
844
|
items: {
|
|
@@ -827,6 +854,7 @@ export declare const ButtonBlock: {
|
|
|
827
854
|
};
|
|
828
855
|
};
|
|
829
856
|
};
|
|
857
|
+
optionName: string;
|
|
830
858
|
})[];
|
|
831
859
|
};
|
|
832
860
|
/**
|
|
@@ -889,7 +917,8 @@ export declare const ButtonBlock: {
|
|
|
889
917
|
};
|
|
890
918
|
};
|
|
891
919
|
analyticsEvents: {
|
|
892
|
-
|
|
920
|
+
oneOf: ({
|
|
921
|
+
optionName: string;
|
|
893
922
|
type: string;
|
|
894
923
|
additionalProperties: {
|
|
895
924
|
type: string;
|
|
@@ -925,6 +954,7 @@ export declare const ButtonBlock: {
|
|
|
925
954
|
type: string;
|
|
926
955
|
};
|
|
927
956
|
};
|
|
957
|
+
items?: undefined;
|
|
928
958
|
} | {
|
|
929
959
|
type: string;
|
|
930
960
|
items: {
|
|
@@ -964,6 +994,7 @@ export declare const ButtonBlock: {
|
|
|
964
994
|
};
|
|
965
995
|
};
|
|
966
996
|
};
|
|
997
|
+
optionName: string;
|
|
967
998
|
})[];
|
|
968
999
|
};
|
|
969
1000
|
target: {
|
|
@@ -990,7 +1021,8 @@ export declare const MediaProps: {
|
|
|
990
1021
|
type: string;
|
|
991
1022
|
};
|
|
992
1023
|
image: {
|
|
993
|
-
|
|
1024
|
+
oneOf: ({
|
|
1025
|
+
optionName: string;
|
|
994
1026
|
oneOf: ({
|
|
995
1027
|
type: string;
|
|
996
1028
|
properties: {
|
|
@@ -1001,7 +1033,10 @@ export declare const MediaProps: {
|
|
|
1001
1033
|
} | {
|
|
1002
1034
|
type: string;
|
|
1003
1035
|
pattern: string;
|
|
1036
|
+
optionName: string;
|
|
1004
1037
|
})[];
|
|
1038
|
+
type?: undefined;
|
|
1039
|
+
items?: undefined;
|
|
1005
1040
|
} | {
|
|
1006
1041
|
type: string;
|
|
1007
1042
|
items: {
|
|
@@ -1015,8 +1050,10 @@ export declare const MediaProps: {
|
|
|
1015
1050
|
} | {
|
|
1016
1051
|
type: string;
|
|
1017
1052
|
pattern: string;
|
|
1053
|
+
optionName: string;
|
|
1018
1054
|
})[];
|
|
1019
1055
|
};
|
|
1056
|
+
optionName: string;
|
|
1020
1057
|
})[];
|
|
1021
1058
|
};
|
|
1022
1059
|
video: {
|
|
@@ -1031,7 +1068,8 @@ export declare const MediaProps: {
|
|
|
1031
1068
|
};
|
|
1032
1069
|
};
|
|
1033
1070
|
loop: {
|
|
1034
|
-
|
|
1071
|
+
oneOf: ({
|
|
1072
|
+
optionName: string;
|
|
1035
1073
|
type: string;
|
|
1036
1074
|
additionalProperties: boolean;
|
|
1037
1075
|
required: string[];
|
|
@@ -1045,6 +1083,7 @@ export declare const MediaProps: {
|
|
|
1045
1083
|
};
|
|
1046
1084
|
} | {
|
|
1047
1085
|
type: string;
|
|
1086
|
+
optionName: string;
|
|
1048
1087
|
})[];
|
|
1049
1088
|
};
|
|
1050
1089
|
type: {
|
|
@@ -1054,13 +1093,13 @@ export declare const MediaProps: {
|
|
|
1054
1093
|
muted: {
|
|
1055
1094
|
type: string;
|
|
1056
1095
|
};
|
|
1057
|
-
|
|
1096
|
+
autoplay: {
|
|
1058
1097
|
type: string;
|
|
1059
1098
|
};
|
|
1060
1099
|
elapsedTime: {
|
|
1061
1100
|
type: string;
|
|
1062
1101
|
};
|
|
1063
|
-
|
|
1102
|
+
playButton: {
|
|
1064
1103
|
type: string;
|
|
1065
1104
|
additionalProperties: boolean;
|
|
1066
1105
|
properties: {
|
|
@@ -1098,6 +1137,10 @@ export declare const MediaProps: {
|
|
|
1098
1137
|
};
|
|
1099
1138
|
dataLens: {
|
|
1100
1139
|
oneOf: ({
|
|
1140
|
+
type: string;
|
|
1141
|
+
optionName: string;
|
|
1142
|
+
} | {
|
|
1143
|
+
optionName: string;
|
|
1101
1144
|
type: string;
|
|
1102
1145
|
additionalProperties: boolean;
|
|
1103
1146
|
required: string[];
|
|
@@ -1110,8 +1153,6 @@ export declare const MediaProps: {
|
|
|
1110
1153
|
enum: string[];
|
|
1111
1154
|
};
|
|
1112
1155
|
};
|
|
1113
|
-
} | {
|
|
1114
|
-
type: string;
|
|
1115
1156
|
})[];
|
|
1116
1157
|
};
|
|
1117
1158
|
fullscreen: {
|
|
@@ -1305,6 +1346,10 @@ export declare const CardBase: {
|
|
|
1305
1346
|
export declare const BlockHeaderProps: {
|
|
1306
1347
|
title: {
|
|
1307
1348
|
oneOf: ({
|
|
1349
|
+
type: string;
|
|
1350
|
+
optionName: string;
|
|
1351
|
+
} | {
|
|
1352
|
+
optionName: string;
|
|
1308
1353
|
type: string;
|
|
1309
1354
|
additionalProperties: boolean;
|
|
1310
1355
|
required: string[];
|
|
@@ -1324,12 +1369,11 @@ export declare const BlockHeaderProps: {
|
|
|
1324
1369
|
type: string;
|
|
1325
1370
|
};
|
|
1326
1371
|
};
|
|
1327
|
-
} | {
|
|
1328
|
-
type: string;
|
|
1329
1372
|
})[];
|
|
1330
1373
|
};
|
|
1331
1374
|
description: {
|
|
1332
1375
|
type: string;
|
|
1333
1376
|
contentType: string;
|
|
1377
|
+
inputType: string;
|
|
1334
1378
|
};
|
|
1335
1379
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlockHeaderProps = exports.CardBase = 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.
|
|
3
|
+
exports.BlockHeaderProps = exports.CardBase = 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.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = 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");
|
|
@@ -29,14 +29,16 @@ exports.containerSizesObject = {
|
|
|
29
29
|
properties: exports.containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: exports.sizeNumber })), {}),
|
|
30
30
|
};
|
|
31
31
|
exports.sliderSizesObject = {
|
|
32
|
-
|
|
32
|
+
oneOf: [
|
|
33
33
|
{
|
|
34
34
|
type: 'object',
|
|
35
35
|
additionalProperties: false,
|
|
36
36
|
properties: exports.sliderSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: exports.sizeNumber })), {}),
|
|
37
|
+
optionName: 'custom',
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
type: 'number',
|
|
41
|
+
optionName: 'constant',
|
|
40
42
|
},
|
|
41
43
|
],
|
|
42
44
|
};
|
|
@@ -66,7 +68,7 @@ exports.LoopProps = {
|
|
|
66
68
|
},
|
|
67
69
|
},
|
|
68
70
|
};
|
|
69
|
-
exports.
|
|
71
|
+
exports.PlayButtonProps = {
|
|
70
72
|
type: 'object',
|
|
71
73
|
additionalProperties: false,
|
|
72
74
|
properties: {
|
|
@@ -96,10 +98,11 @@ exports.VideoProps = {
|
|
|
96
98
|
},
|
|
97
99
|
},
|
|
98
100
|
loop: {
|
|
99
|
-
|
|
100
|
-
exports.LoopProps,
|
|
101
|
+
oneOf: [
|
|
102
|
+
Object.assign(Object.assign({}, exports.LoopProps), { optionName: 'options' }),
|
|
101
103
|
{
|
|
102
104
|
type: 'boolean',
|
|
105
|
+
optionName: 'enabled',
|
|
103
106
|
},
|
|
104
107
|
],
|
|
105
108
|
},
|
|
@@ -110,13 +113,13 @@ exports.VideoProps = {
|
|
|
110
113
|
muted: {
|
|
111
114
|
type: 'boolean',
|
|
112
115
|
},
|
|
113
|
-
|
|
116
|
+
autoplay: {
|
|
114
117
|
type: 'boolean',
|
|
115
118
|
},
|
|
116
119
|
elapsedTime: {
|
|
117
120
|
type: 'number',
|
|
118
121
|
},
|
|
119
|
-
|
|
122
|
+
playButton: exports.PlayButtonProps,
|
|
120
123
|
controls: {
|
|
121
124
|
type: 'string',
|
|
122
125
|
enum: exports.videoControlsTypes,
|
|
@@ -143,7 +146,13 @@ exports.DataLensObjectProps = {
|
|
|
143
146
|
},
|
|
144
147
|
};
|
|
145
148
|
exports.DataLensProps = {
|
|
146
|
-
oneOf: [
|
|
149
|
+
oneOf: [
|
|
150
|
+
{
|
|
151
|
+
type: 'string',
|
|
152
|
+
optionName: 'id',
|
|
153
|
+
},
|
|
154
|
+
Object.assign(Object.assign({}, exports.DataLensObjectProps), { optionName: 'options' }),
|
|
155
|
+
],
|
|
147
156
|
};
|
|
148
157
|
exports.BackgroundProps = {
|
|
149
158
|
additionalProperties: false,
|
|
@@ -181,7 +190,14 @@ exports.LinkProps = {
|
|
|
181
190
|
type: 'string',
|
|
182
191
|
enum: ['_blank', '_parent', '_top', '_self'],
|
|
183
192
|
}, analyticsEvents: {
|
|
184
|
-
|
|
193
|
+
oneOf: [
|
|
194
|
+
Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
|
|
195
|
+
{
|
|
196
|
+
type: 'array',
|
|
197
|
+
items: event_1.AnalyticsEventSchema,
|
|
198
|
+
optionName: 'list',
|
|
199
|
+
},
|
|
200
|
+
],
|
|
185
201
|
} }),
|
|
186
202
|
};
|
|
187
203
|
exports.FileLinkProps = {
|
|
@@ -290,9 +306,10 @@ exports.ButtonProps = {
|
|
|
290
306
|
],
|
|
291
307
|
},
|
|
292
308
|
img: {
|
|
293
|
-
|
|
309
|
+
oneOf: [
|
|
294
310
|
{
|
|
295
311
|
type: 'string',
|
|
312
|
+
optionName: 'url',
|
|
296
313
|
},
|
|
297
314
|
{
|
|
298
315
|
type: 'object',
|
|
@@ -311,6 +328,7 @@ exports.ButtonProps = {
|
|
|
311
328
|
contentType: 'text',
|
|
312
329
|
},
|
|
313
330
|
},
|
|
331
|
+
optionName: 'options',
|
|
314
332
|
},
|
|
315
333
|
],
|
|
316
334
|
},
|
|
@@ -318,9 +336,9 @@ exports.ButtonProps = {
|
|
|
318
336
|
* @deprecated Metrika will be deleted
|
|
319
337
|
*/
|
|
320
338
|
metrikaGoals: {
|
|
321
|
-
|
|
322
|
-
{ type: 'string' },
|
|
323
|
-
{ type: 'array', items: { type: 'string' } },
|
|
339
|
+
oneOf: [
|
|
340
|
+
{ type: 'string', optionName: 'single' },
|
|
341
|
+
{ type: 'array', items: { type: 'string' }, optionName: 'list' },
|
|
324
342
|
{
|
|
325
343
|
type: 'array',
|
|
326
344
|
items: {
|
|
@@ -336,6 +354,7 @@ exports.ButtonProps = {
|
|
|
336
354
|
},
|
|
337
355
|
},
|
|
338
356
|
},
|
|
357
|
+
optionName: 'list-extended',
|
|
339
358
|
},
|
|
340
359
|
],
|
|
341
360
|
},
|
|
@@ -344,7 +363,10 @@ exports.ButtonProps = {
|
|
|
344
363
|
*/
|
|
345
364
|
pixelEvents: pixel_1.pixelEvents,
|
|
346
365
|
analyticsEvents: {
|
|
347
|
-
|
|
366
|
+
oneOf: [
|
|
367
|
+
Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
|
|
368
|
+
{ type: 'array', items: event_1.AnalyticsEventSchema, optionName: 'list' },
|
|
369
|
+
],
|
|
348
370
|
},
|
|
349
371
|
target: {
|
|
350
372
|
type: 'string',
|
|
@@ -364,12 +386,13 @@ exports.MenuProps = {
|
|
|
364
386
|
function withTheme(value) {
|
|
365
387
|
return {
|
|
366
388
|
oneOf: [
|
|
367
|
-
value,
|
|
389
|
+
Object.assign(Object.assign({}, value), { optionName: 'no theme' }),
|
|
368
390
|
{
|
|
369
391
|
type: 'object',
|
|
370
392
|
additionalProperties: false,
|
|
371
393
|
required: [models_1.Theme.Light],
|
|
372
394
|
properties: Object.values(models_1.Theme).reduce((result, themeName) => (Object.assign(Object.assign({}, result), { [themeName]: value })), {}),
|
|
395
|
+
optionName: 'themes',
|
|
373
396
|
},
|
|
374
397
|
],
|
|
375
398
|
};
|
|
@@ -441,7 +464,10 @@ exports.MediaProps = {
|
|
|
441
464
|
type: 'string',
|
|
442
465
|
},
|
|
443
466
|
image: {
|
|
444
|
-
|
|
467
|
+
oneOf: [
|
|
468
|
+
Object.assign(Object.assign({}, schema_1.ImageProps), { optionName: 'single' }),
|
|
469
|
+
{ type: 'array', items: schema_1.ImageProps, optionName: 'list' },
|
|
470
|
+
],
|
|
445
471
|
},
|
|
446
472
|
video: exports.VideoProps,
|
|
447
473
|
youtube: {
|
|
@@ -520,10 +546,17 @@ exports.CardBase = {
|
|
|
520
546
|
};
|
|
521
547
|
exports.BlockHeaderProps = {
|
|
522
548
|
title: {
|
|
523
|
-
oneOf: [
|
|
549
|
+
oneOf: [
|
|
550
|
+
{
|
|
551
|
+
type: 'string',
|
|
552
|
+
optionName: 'text',
|
|
553
|
+
},
|
|
554
|
+
Object.assign(Object.assign({}, exports.TitleProps), { optionName: 'options' }),
|
|
555
|
+
],
|
|
524
556
|
},
|
|
525
557
|
description: {
|
|
526
558
|
type: 'string',
|
|
527
559
|
contentType: 'yfm',
|
|
560
|
+
inputType: 'textarea',
|
|
528
561
|
},
|
|
529
562
|
};
|
|
@@ -7,7 +7,7 @@ export declare const BackgroundCard: {
|
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
9
|
background: {
|
|
10
|
-
oneOf: ({
|
|
10
|
+
oneOf: (({
|
|
11
11
|
type: string;
|
|
12
12
|
additionalProperties: boolean;
|
|
13
13
|
required: string[];
|
|
@@ -24,11 +24,14 @@ export declare const BackgroundCard: {
|
|
|
24
24
|
type: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
}
|
|
27
|
+
} & {
|
|
28
|
+
optionName: string;
|
|
29
|
+
}) | {
|
|
28
30
|
type: string;
|
|
29
31
|
additionalProperties: boolean;
|
|
30
32
|
required: import("../..").Theme[];
|
|
31
33
|
properties: {};
|
|
34
|
+
optionName: string;
|
|
32
35
|
})[];
|
|
33
36
|
};
|
|
34
37
|
backgroundColor: {
|
|
@@ -40,6 +43,11 @@ export declare const BackgroundCard: {
|
|
|
40
43
|
};
|
|
41
44
|
title: {
|
|
42
45
|
oneOf: ({
|
|
46
|
+
type: string;
|
|
47
|
+
contentType: string;
|
|
48
|
+
optionName: string;
|
|
49
|
+
} | {
|
|
50
|
+
optionName: string;
|
|
43
51
|
type: string;
|
|
44
52
|
additionalProperties: boolean;
|
|
45
53
|
required: string[];
|
|
@@ -59,14 +67,13 @@ export declare const BackgroundCard: {
|
|
|
59
67
|
type: string;
|
|
60
68
|
};
|
|
61
69
|
};
|
|
62
|
-
|
|
63
|
-
type: string;
|
|
64
|
-
contentType: string;
|
|
70
|
+
contentType?: undefined;
|
|
65
71
|
})[];
|
|
66
72
|
};
|
|
67
73
|
text: {
|
|
68
74
|
type: string;
|
|
69
75
|
contentType: string;
|
|
76
|
+
inputType: string;
|
|
70
77
|
};
|
|
71
78
|
theme: {
|
|
72
79
|
type: string;
|
|
@@ -17,6 +17,7 @@ export declare const BasicCard: {
|
|
|
17
17
|
} | {
|
|
18
18
|
type: string;
|
|
19
19
|
pattern: string;
|
|
20
|
+
optionName: string;
|
|
20
21
|
})[];
|
|
21
22
|
};
|
|
22
23
|
target: {
|
|
@@ -25,6 +26,11 @@ export declare const BasicCard: {
|
|
|
25
26
|
};
|
|
26
27
|
title: {
|
|
27
28
|
oneOf: ({
|
|
29
|
+
type: string;
|
|
30
|
+
contentType: string;
|
|
31
|
+
optionName: string;
|
|
32
|
+
} | {
|
|
33
|
+
optionName: string;
|
|
28
34
|
type: string;
|
|
29
35
|
additionalProperties: boolean;
|
|
30
36
|
required: string[];
|
|
@@ -44,14 +50,13 @@ export declare const BasicCard: {
|
|
|
44
50
|
type: string;
|
|
45
51
|
};
|
|
46
52
|
};
|
|
47
|
-
|
|
48
|
-
type: string;
|
|
49
|
-
contentType: string;
|
|
53
|
+
contentType?: undefined;
|
|
50
54
|
})[];
|
|
51
55
|
};
|
|
52
56
|
text: {
|
|
53
57
|
type: string;
|
|
54
58
|
contentType: string;
|
|
59
|
+
inputType: string;
|
|
55
60
|
};
|
|
56
61
|
additionalInfo: {
|
|
57
62
|
type: string;
|