@gravity-ui/page-constructor 5.14.3 → 5.14.4-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/build/cjs/blocks/Banner/Banner.js +3 -1
- package/build/cjs/blocks/Banner/index.d.ts +3 -0
- package/build/cjs/blocks/Banner/index.js +22 -0
- package/build/cjs/blocks/CardLayout/CardLayout.css +1 -0
- package/build/cjs/blocks/CardLayout/CardLayout.js +11 -6
- package/build/cjs/blocks/CardLayout/index.d.ts +5 -0
- package/build/cjs/blocks/CardLayout/index.js +166 -0
- package/build/cjs/blocks/Companies/Companies.js +6 -4
- package/build/cjs/blocks/Companies/index.d.ts +3 -0
- package/build/cjs/blocks/Companies/index.js +18 -0
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +6 -5
- package/build/cjs/blocks/ContentLayout/index.d.ts +11 -0
- package/build/cjs/blocks/ContentLayout/index.js +17 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +1 -0
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +22 -20
- package/build/cjs/blocks/ExtendedFeatures/index.d.ts +12 -0
- package/build/cjs/blocks/ExtendedFeatures/index.js +18 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +1 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -0
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +11 -10
- package/build/cjs/blocks/FilterBlock/index.d.ts +11 -0
- package/build/cjs/blocks/FilterBlock/index.js +17 -0
- package/build/cjs/blocks/Form/index.d.ts +12 -0
- package/build/cjs/blocks/Form/index.js +18 -0
- package/build/cjs/blocks/Header/dynamic-form.d.ts +2 -0
- package/build/cjs/blocks/Header/dynamic-form.js +730 -0
- package/build/cjs/blocks/Header/index.d.ts +8 -0
- package/build/cjs/blocks/Header/index.js +14 -0
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +3 -2
- package/build/cjs/blocks/HeaderSlider/index.d.ts +31 -0
- package/build/cjs/blocks/HeaderSlider/index.js +38 -0
- package/build/cjs/blocks/Icons/Icons.js +9 -6
- package/build/cjs/blocks/Icons/index.d.ts +13 -0
- package/build/cjs/blocks/Icons/index.js +19 -0
- package/build/cjs/blocks/Info/index.d.ts +21 -0
- package/build/cjs/blocks/Info/index.js +41 -0
- package/build/cjs/blocks/Map/index.d.ts +11 -0
- package/build/cjs/blocks/Map/index.js +17 -0
- package/build/cjs/blocks/Media/index.d.ts +14 -0
- package/build/cjs/blocks/Media/index.js +20 -0
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +19 -16
- package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +12 -0
- package/build/cjs/blocks/PromoFeaturesBlock/index.js +18 -0
- package/build/cjs/blocks/Questions/Questions.js +12 -10
- package/build/cjs/blocks/Questions/index.d.ts +29 -0
- package/build/cjs/blocks/Questions/index.js +47 -0
- package/build/cjs/blocks/Share/Share.js +11 -10
- package/build/cjs/blocks/Share/index.d.ts +12 -0
- package/build/cjs/blocks/Share/index.js +18 -0
- package/build/cjs/blocks/Slider/Slider.js +22 -17
- package/build/cjs/blocks/Slider/dynamic-form.d.ts +3 -0
- package/build/cjs/blocks/Slider/dynamic-form.js +225 -0
- package/build/cjs/blocks/Slider/index.d.ts +8 -0
- package/build/cjs/blocks/Slider/index.js +14 -0
- package/build/cjs/blocks/Table/index.d.ts +8 -0
- package/build/cjs/blocks/Table/index.js +14 -0
- package/build/cjs/blocks/Table/schema.d.ts +1 -0
- package/build/cjs/blocks/Table/schema.js +1 -0
- package/build/cjs/blocks/Tabs/Tabs.js +9 -8
- package/build/cjs/blocks/Tabs/index.d.ts +16 -0
- package/build/cjs/blocks/Tabs/index.js +29 -0
- package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
- package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js +12 -0
- package/build/cjs/blocks/TestEditorBlock/form.d.ts +3 -0
- package/build/cjs/blocks/TestEditorBlock/form.js +80 -0
- package/build/cjs/blocks/TestEditorBlock/index.d.ts +11 -0
- package/build/cjs/blocks/TestEditorBlock/index.js +17 -0
- package/build/cjs/components/BlockBase/BlockBase.css +8 -16
- package/build/cjs/components/Image/dynamic-form.d.ts +2 -0
- package/build/cjs/components/Image/dynamic-form.js +84 -0
- package/build/cjs/components/editor/ChildrenWrap/ChildrenWrap.css +5 -0
- package/build/cjs/components/editor/ChildrenWrap/ChildrenWrap.d.ts +6 -0
- package/build/cjs/components/editor/ChildrenWrap/ChildrenWrap.js +15 -0
- package/build/cjs/components/editor/ItemWrap/ItemWrap.css +9 -0
- package/build/cjs/components/editor/ItemWrap/ItemWrap.d.ts +6 -0
- package/build/cjs/components/editor/ItemWrap/ItemWrap.js +15 -0
- package/build/cjs/constructor-items.d.ts +18 -6
- package/build/cjs/constructor-items.js +67 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +16 -13
- package/build/cjs/containers/PageConstructor/Provider.js +4 -0
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +5 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.d.ts +8 -0
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.js +109 -0
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -3
- package/build/cjs/context/blockIdContext/blockIdContext.d.ts +2 -2
- package/build/cjs/context/blockIdContext/blockIdContext.js +1 -1
- package/build/cjs/context/editorContext/editorContext.d.ts +13 -0
- package/build/cjs/context/editorContext/editorContext.js +10 -0
- package/build/cjs/context/editorContext/editorProvider.d.ts +2 -0
- package/build/cjs/context/editorContext/editorProvider.js +20 -0
- package/build/cjs/context/editorContext/hooks/useEditorStore.d.ts +2 -0
- package/build/cjs/context/editorContext/hooks/useEditorStore.js +15 -0
- package/build/cjs/context/editorContext/index.d.ts +4 -0
- package/build/cjs/context/editorContext/index.js +7 -0
- package/build/cjs/context/editorContext/store.d.ts +24 -0
- package/build/cjs/context/editorContext/store.js +39 -0
- package/build/cjs/context/messagesContext/hooks/useMessageObserver.d.ts +4 -0
- package/build/cjs/context/messagesContext/hooks/useMessageObserver.js +16 -0
- package/build/cjs/context/messagesContext/hooks/useMessageSender.d.ts +2 -0
- package/build/cjs/context/messagesContext/hooks/useMessageSender.js +11 -0
- package/build/cjs/context/messagesContext/hooks/useMessagesStore.d.ts +2 -0
- package/build/cjs/context/messagesContext/hooks/useMessagesStore.js +15 -0
- package/build/cjs/context/messagesContext/index.d.ts +5 -0
- package/build/cjs/context/messagesContext/index.js +8 -0
- package/build/cjs/context/messagesContext/messagesContext.d.ts +14 -0
- package/build/cjs/context/messagesContext/messagesContext.js +12 -0
- package/build/cjs/context/messagesContext/messagesProvider.d.ts +2 -0
- package/build/cjs/context/messagesContext/messagesProvider.js +73 -0
- package/build/cjs/context/messagesContext/store.d.ts +25 -0
- package/build/cjs/context/messagesContext/store.js +17 -0
- package/build/cjs/context/messagesContext/types.d.ts +14 -0
- package/build/cjs/context/messagesContext/types.js +2 -0
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/grid/Grid/Grid.css +2 -6
- package/build/cjs/hooks/useAnalytics.js +1 -1
- package/build/cjs/hooks/useEditorInitialize.d.ts +7 -0
- package/build/cjs/hooks/useEditorInitialize.js +90 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -1
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +4 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
- package/build/cjs/navigation/containers/Layout/Layout.css +0 -1
- package/build/cjs/schema/constants.d.ts +1 -1
- package/build/cjs/schema/constants.js +2 -1
- package/build/cjs/schema/index.d.ts +227 -0
- package/build/cjs/schema/index.js +7 -3
- package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
- package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js +81 -0
- package/build/cjs/sub-blocks/BackgroundCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/BackgroundCard/index.js +19 -0
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +4 -3
- package/build/cjs/sub-blocks/BannerCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/BannerCard/index.js +22 -0
- package/build/cjs/sub-blocks/BasicCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/BasicCard/index.js +18 -0
- package/build/cjs/sub-blocks/Content/index.d.ts +3 -0
- package/build/cjs/sub-blocks/Content/index.js +18 -0
- package/build/cjs/sub-blocks/Content/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/Content/schema.js +1 -0
- package/build/cjs/sub-blocks/Divider/index.d.ts +3 -0
- package/build/cjs/sub-blocks/Divider/index.js +15 -0
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js +2 -2
- package/build/cjs/sub-blocks/ImageCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/ImageCard/index.js +18 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
- package/build/cjs/sub-blocks/LayoutItem/form.d.ts +8 -0
- package/build/cjs/sub-blocks/LayoutItem/form.js +14 -0
- package/build/cjs/sub-blocks/LayoutItem/index.d.ts +3 -0
- package/build/cjs/sub-blocks/LayoutItem/index.js +20 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +254 -246
- package/build/cjs/sub-blocks/LayoutItem/schema.js +7 -3
- package/build/cjs/sub-blocks/MediaCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/MediaCard/index.js +20 -0
- package/build/cjs/sub-blocks/PriceCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/PriceCard/index.js +31 -0
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/index.d.ts +4 -0
- package/build/cjs/sub-blocks/PriceDetailed/index.js +33 -0
- package/build/cjs/sub-blocks/Quote/index.d.ts +3 -0
- package/build/cjs/sub-blocks/Quote/index.js +21 -0
- package/build/cjs/types/actions/codes.d.ts +16 -0
- package/build/cjs/types/actions/codes.js +26 -0
- package/build/cjs/types/actions/index.d.ts +20 -0
- package/build/cjs/types/actions/index.js +10 -0
- package/build/cjs/types/actions/initial.d.ts +23 -0
- package/build/cjs/types/actions/initial.js +2 -0
- package/build/cjs/types/actions/insert.d.ts +19 -0
- package/build/cjs/types/actions/insert.js +2 -0
- package/build/cjs/types/actions/other.d.ts +16 -0
- package/build/cjs/types/actions/other.js +2 -0
- package/build/cjs/types/actions/overlay.d.ts +16 -0
- package/build/cjs/types/actions/overlay.js +2 -0
- package/build/cjs/types/actions/reorder.d.ts +17 -0
- package/build/cjs/types/actions/reorder.js +2 -0
- package/build/cjs/types/actions/select.d.ts +16 -0
- package/build/cjs/types/actions/select.js +2 -0
- package/build/cjs/types/dynamic-form.d.ts +92 -0
- package/build/cjs/types/dynamic-form.js +2 -0
- package/build/cjs/types/index.d.ts +14 -0
- package/build/cjs/types/index.js +2 -0
- package/build/cjs/utils/editor.d.ts +2 -0
- package/build/cjs/utils/editor.js +24 -0
- package/build/cjs/utils/form-generator.d.ts +9 -0
- package/build/cjs/utils/form-generator.js +126 -0
- package/build/cjs/utils/store.d.ts +16 -0
- package/build/cjs/utils/store.js +9 -0
- package/build/esm/blocks/Banner/Banner.js +3 -1
- package/build/esm/blocks/Banner/index.d.ts +3 -0
- package/build/esm/blocks/Banner/index.js +19 -0
- package/build/esm/blocks/CardLayout/CardLayout.css +1 -0
- package/build/esm/blocks/CardLayout/CardLayout.js +12 -7
- package/build/esm/blocks/CardLayout/index.d.ts +5 -0
- package/build/esm/blocks/CardLayout/index.js +162 -0
- package/build/esm/blocks/Companies/Companies.js +6 -4
- package/build/esm/blocks/Companies/index.d.ts +3 -0
- package/build/esm/blocks/Companies/index.js +15 -0
- package/build/esm/blocks/ContentLayout/ContentLayout.js +7 -6
- package/build/esm/blocks/ContentLayout/index.d.ts +11 -0
- package/build/esm/blocks/ContentLayout/index.js +14 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +1 -0
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +23 -21
- package/build/esm/blocks/ExtendedFeatures/index.d.ts +12 -0
- package/build/esm/blocks/ExtendedFeatures/index.js +15 -0
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +1 -0
- package/build/esm/blocks/ExtendedFeatures/schema.js +1 -0
- package/build/esm/blocks/FilterBlock/FilterBlock.js +12 -11
- package/build/esm/blocks/FilterBlock/index.d.ts +11 -0
- package/build/esm/blocks/FilterBlock/index.js +14 -0
- package/build/esm/blocks/Form/index.d.ts +12 -0
- package/build/esm/blocks/Form/index.js +15 -0
- package/build/esm/blocks/Header/dynamic-form.d.ts +2 -0
- package/build/esm/blocks/Header/dynamic-form.js +727 -0
- package/build/esm/blocks/Header/index.d.ts +8 -0
- package/build/esm/blocks/Header/index.js +11 -0
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js +3 -2
- package/build/esm/blocks/HeaderSlider/index.d.ts +31 -0
- package/build/esm/blocks/HeaderSlider/index.js +35 -0
- package/build/esm/blocks/Icons/Icons.js +9 -6
- package/build/esm/blocks/Icons/index.d.ts +13 -0
- package/build/esm/blocks/Icons/index.js +16 -0
- package/build/esm/blocks/Info/index.d.ts +21 -0
- package/build/esm/blocks/Info/index.js +38 -0
- package/build/esm/blocks/Map/index.d.ts +11 -0
- package/build/esm/blocks/Map/index.js +14 -0
- package/build/esm/blocks/Media/index.d.ts +14 -0
- package/build/esm/blocks/Media/index.js +17 -0
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +19 -16
- package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +12 -0
- package/build/esm/blocks/PromoFeaturesBlock/index.js +15 -0
- package/build/esm/blocks/Questions/Questions.js +13 -11
- package/build/esm/blocks/Questions/index.d.ts +29 -0
- package/build/esm/blocks/Questions/index.js +44 -0
- package/build/esm/blocks/Share/Share.js +11 -10
- package/build/esm/blocks/Share/index.d.ts +12 -0
- package/build/esm/blocks/Share/index.js +15 -0
- package/build/esm/blocks/Slider/Slider.js +22 -17
- package/build/esm/blocks/Slider/dynamic-form.d.ts +3 -0
- package/build/esm/blocks/Slider/dynamic-form.js +222 -0
- package/build/esm/blocks/Slider/index.d.ts +8 -0
- package/build/esm/blocks/Slider/index.js +11 -0
- package/build/esm/blocks/Table/index.d.ts +8 -0
- package/build/esm/blocks/Table/index.js +11 -0
- package/build/esm/blocks/Table/schema.d.ts +1 -0
- package/build/esm/blocks/Table/schema.js +1 -0
- package/build/esm/blocks/Tabs/Tabs.js +10 -9
- package/build/esm/blocks/Tabs/index.d.ts +16 -0
- package/build/esm/blocks/Tabs/index.js +26 -0
- package/build/esm/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
- package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js +7 -0
- package/build/esm/blocks/TestEditorBlock/form.d.ts +3 -0
- package/build/esm/blocks/TestEditorBlock/form.js +78 -0
- package/build/esm/blocks/TestEditorBlock/index.d.ts +11 -0
- package/build/esm/blocks/TestEditorBlock/index.js +13 -0
- package/build/esm/components/BlockBase/BlockBase.css +8 -16
- package/build/esm/components/Image/dynamic-form.d.ts +2 -0
- package/build/esm/components/Image/dynamic-form.js +80 -0
- package/build/esm/components/editor/ChildrenWrap/ChildrenWrap.css +5 -0
- package/build/esm/components/editor/ChildrenWrap/ChildrenWrap.d.ts +7 -0
- package/build/esm/components/editor/ChildrenWrap/ChildrenWrap.js +13 -0
- package/build/esm/components/editor/ItemWrap/ItemWrap.css +9 -0
- package/build/esm/components/editor/ItemWrap/ItemWrap.d.ts +7 -0
- package/build/esm/components/editor/ItemWrap/ItemWrap.js +13 -0
- package/build/esm/constructor-items.d.ts +18 -6
- package/build/esm/constructor-items.js +66 -0
- package/build/esm/containers/PageConstructor/PageConstructor.js +19 -16
- package/build/esm/containers/PageConstructor/Provider.js +4 -0
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +5 -2
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.d.ts +8 -0
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.js +107 -0
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -3
- package/build/esm/context/blockIdContext/blockIdContext.d.ts +2 -2
- package/build/esm/context/blockIdContext/blockIdContext.js +1 -1
- package/build/esm/context/editorContext/editorContext.d.ts +13 -0
- package/build/esm/context/editorContext/editorContext.js +6 -0
- package/build/esm/context/editorContext/editorProvider.d.ts +2 -0
- package/build/esm/context/editorContext/editorProvider.js +15 -0
- package/build/esm/context/editorContext/hooks/useEditorStore.d.ts +2 -0
- package/build/esm/context/editorContext/hooks/useEditorStore.js +11 -0
- package/build/esm/context/editorContext/index.d.ts +4 -0
- package/build/esm/context/editorContext/index.js +4 -0
- package/build/esm/context/editorContext/store.d.ts +24 -0
- package/build/esm/context/editorContext/store.js +36 -0
- package/build/esm/context/messagesContext/hooks/useMessageObserver.d.ts +4 -0
- package/build/esm/context/messagesContext/hooks/useMessageObserver.js +12 -0
- package/build/esm/context/messagesContext/hooks/useMessageSender.d.ts +2 -0
- package/build/esm/context/messagesContext/hooks/useMessageSender.js +7 -0
- package/build/esm/context/messagesContext/hooks/useMessagesStore.d.ts +2 -0
- package/build/esm/context/messagesContext/hooks/useMessagesStore.js +11 -0
- package/build/esm/context/messagesContext/index.d.ts +5 -0
- package/build/esm/context/messagesContext/index.js +5 -0
- package/build/esm/context/messagesContext/messagesContext.d.ts +14 -0
- package/build/esm/context/messagesContext/messagesContext.js +8 -0
- package/build/esm/context/messagesContext/messagesProvider.d.ts +2 -0
- package/build/esm/context/messagesContext/messagesProvider.js +68 -0
- package/build/esm/context/messagesContext/store.d.ts +25 -0
- package/build/esm/context/messagesContext/store.js +14 -0
- package/build/esm/context/messagesContext/types.d.ts +14 -0
- package/build/esm/context/messagesContext/types.js +1 -0
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/grid/Grid/Grid.css +2 -6
- package/build/esm/hooks/useAnalytics.js +1 -1
- package/build/esm/hooks/useEditorInitialize.d.ts +7 -0
- package/build/esm/hooks/useEditorInitialize.js +87 -0
- package/build/esm/models/constructor-items/blocks.d.ts +2 -1
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/models/constructor-items/sub-blocks.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +4 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
- package/build/esm/navigation/containers/Layout/Layout.css +0 -1
- package/build/esm/schema/constants.d.ts +1 -1
- package/build/esm/schema/constants.js +2 -1
- package/build/esm/schema/index.d.ts +227 -0
- package/build/esm/schema/index.js +6 -2
- package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
- package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js +78 -0
- package/build/esm/sub-blocks/BackgroundCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/BackgroundCard/index.js +16 -0
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +4 -3
- package/build/esm/sub-blocks/BannerCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/BannerCard/index.js +19 -0
- package/build/esm/sub-blocks/BasicCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/BasicCard/index.js +15 -0
- package/build/esm/sub-blocks/Content/index.d.ts +3 -0
- package/build/esm/sub-blocks/Content/index.js +15 -0
- package/build/esm/sub-blocks/Content/schema.d.ts +1 -0
- package/build/esm/sub-blocks/Content/schema.js +1 -0
- package/build/esm/sub-blocks/Divider/index.d.ts +3 -0
- package/build/esm/sub-blocks/Divider/index.js +12 -0
- package/build/esm/sub-blocks/ImageCard/ImageCard.js +2 -2
- package/build/esm/sub-blocks/ImageCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/ImageCard/index.js +15 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
- package/build/esm/sub-blocks/LayoutItem/form.d.ts +8 -0
- package/build/esm/sub-blocks/LayoutItem/form.js +11 -0
- package/build/esm/sub-blocks/LayoutItem/index.d.ts +3 -0
- package/build/esm/sub-blocks/LayoutItem/index.js +17 -0
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +254 -246
- package/build/esm/sub-blocks/LayoutItem/schema.js +6 -2
- package/build/esm/sub-blocks/MediaCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/MediaCard/index.js +17 -0
- package/build/esm/sub-blocks/PriceCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/PriceCard/index.js +28 -0
- package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/index.d.ts +4 -0
- package/build/esm/sub-blocks/PriceDetailed/index.js +30 -0
- package/build/esm/sub-blocks/Quote/index.d.ts +3 -0
- package/build/esm/sub-blocks/Quote/index.js +18 -0
- package/build/esm/types/actions/codes.d.ts +16 -0
- package/build/esm/types/actions/codes.js +23 -0
- package/build/esm/types/actions/index.d.ts +20 -0
- package/build/esm/types/actions/index.js +7 -0
- package/build/esm/types/actions/initial.d.ts +23 -0
- package/build/esm/types/actions/initial.js +1 -0
- package/build/esm/types/actions/insert.d.ts +19 -0
- package/build/esm/types/actions/insert.js +1 -0
- package/build/esm/types/actions/other.d.ts +16 -0
- package/build/esm/types/actions/other.js +1 -0
- package/build/esm/types/actions/overlay.d.ts +16 -0
- package/build/esm/types/actions/overlay.js +1 -0
- package/build/esm/types/actions/reorder.d.ts +17 -0
- package/build/esm/types/actions/reorder.js +1 -0
- package/build/esm/types/actions/select.d.ts +16 -0
- package/build/esm/types/actions/select.js +1 -0
- package/build/esm/types/dynamic-form.d.ts +92 -0
- package/build/esm/types/dynamic-form.js +1 -0
- package/build/esm/types/index.d.ts +14 -0
- package/build/esm/types/index.js +1 -0
- package/build/esm/utils/editor.d.ts +2 -0
- package/build/esm/utils/editor.js +20 -0
- package/build/esm/utils/form-generator.d.ts +9 -0
- package/build/esm/utils/form-generator.js +121 -0
- package/build/esm/utils/store.d.ts +16 -0
- package/build/esm/utils/store.js +5 -0
- package/package.json +5 -2
- package/server/models/constructor-items/blocks.d.ts +2 -1
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/models/constructor-items/sub-blocks.d.ts +1 -1
- package/styles/mixins.scss +9 -9
- package/widget/index.js +1 -1
|
@@ -4,29 +4,16 @@ export declare const LayoutItem: {
|
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
6
|
media: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
type: string;
|
|
8
|
+
additionalProperties: boolean;
|
|
9
|
+
required: never[];
|
|
10
|
+
properties: {
|
|
11
|
+
color: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
image: {
|
|
13
15
|
oneOf: ({
|
|
14
|
-
type: string;
|
|
15
|
-
properties: {
|
|
16
|
-
when: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
} | {
|
|
21
|
-
type: string;
|
|
22
|
-
pattern: string;
|
|
23
16
|
optionName: string;
|
|
24
|
-
})[];
|
|
25
|
-
type?: undefined;
|
|
26
|
-
items?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
type: string;
|
|
29
|
-
items: {
|
|
30
17
|
oneOf: ({
|
|
31
18
|
type: string;
|
|
32
19
|
properties: {
|
|
@@ -39,175 +26,154 @@ export declare const LayoutItem: {
|
|
|
39
26
|
pattern: string;
|
|
40
27
|
optionName: string;
|
|
41
28
|
})[];
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
disableImageSliderForArrayInput: {
|
|
47
|
-
type: string;
|
|
48
|
-
};
|
|
49
|
-
video: {
|
|
50
|
-
type: string;
|
|
51
|
-
additionalProperties: boolean;
|
|
52
|
-
required: string[];
|
|
53
|
-
properties: {
|
|
54
|
-
src: {
|
|
29
|
+
type?: undefined;
|
|
30
|
+
items?: undefined;
|
|
31
|
+
} | {
|
|
55
32
|
type: string;
|
|
56
33
|
items: {
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
loop: {
|
|
61
|
-
oneOf: ({
|
|
62
|
-
optionName: string;
|
|
63
|
-
type: string;
|
|
64
|
-
additionalProperties: boolean;
|
|
65
|
-
required: string[];
|
|
66
|
-
properties: {
|
|
67
|
-
start: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
end: {
|
|
71
|
-
type: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
} | {
|
|
75
|
-
type: string;
|
|
76
|
-
optionName: string;
|
|
77
|
-
})[];
|
|
78
|
-
};
|
|
79
|
-
type: {
|
|
80
|
-
type: string;
|
|
81
|
-
enum: string[];
|
|
82
|
-
};
|
|
83
|
-
muted: {
|
|
84
|
-
type: string;
|
|
85
|
-
};
|
|
86
|
-
autoplay: {
|
|
87
|
-
type: string;
|
|
88
|
-
};
|
|
89
|
-
elapsedTime: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
playButton: {
|
|
93
|
-
type: string;
|
|
94
|
-
additionalProperties: boolean;
|
|
95
|
-
properties: {
|
|
96
|
-
type: {
|
|
97
|
-
type: string;
|
|
98
|
-
enum: string[];
|
|
99
|
-
};
|
|
100
|
-
theme: {
|
|
34
|
+
oneOf: ({
|
|
101
35
|
type: string;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
controls: {
|
|
111
|
-
type: string;
|
|
112
|
-
enum: import("../..").MediaVideoControlsType[];
|
|
113
|
-
};
|
|
114
|
-
customControlsOptions: {
|
|
115
|
-
type: string;
|
|
116
|
-
additionalProperties: boolean;
|
|
117
|
-
properties: {
|
|
118
|
-
type: {
|
|
119
|
-
type: string;
|
|
120
|
-
enum: import("../..").CustomControlsType[];
|
|
121
|
-
};
|
|
122
|
-
muteButtonShown: {
|
|
123
|
-
type: string;
|
|
124
|
-
};
|
|
125
|
-
positioning: {
|
|
36
|
+
properties: {
|
|
37
|
+
when: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
126
42
|
type: string;
|
|
127
|
-
|
|
128
|
-
|
|
43
|
+
pattern: string;
|
|
44
|
+
optionName: string;
|
|
45
|
+
})[];
|
|
129
46
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type: string;
|
|
133
|
-
};
|
|
47
|
+
optionName: string;
|
|
48
|
+
})[];
|
|
134
49
|
};
|
|
135
|
-
|
|
136
|
-
youtube: {
|
|
137
|
-
type: string;
|
|
138
|
-
};
|
|
139
|
-
parallax: {
|
|
140
|
-
type: string;
|
|
141
|
-
};
|
|
142
|
-
height: {
|
|
143
|
-
type: string;
|
|
144
|
-
};
|
|
145
|
-
previewImg: {
|
|
146
|
-
type: string;
|
|
147
|
-
};
|
|
148
|
-
dataLens: {
|
|
149
|
-
oneOf: ({
|
|
50
|
+
disableImageSliderForArrayInput: {
|
|
150
51
|
type: string;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
optionName: string;
|
|
52
|
+
};
|
|
53
|
+
video: {
|
|
154
54
|
type: string;
|
|
155
55
|
additionalProperties: boolean;
|
|
156
56
|
required: string[];
|
|
157
57
|
properties: {
|
|
158
|
-
|
|
58
|
+
src: {
|
|
159
59
|
type: string;
|
|
60
|
+
items: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
loop: {
|
|
65
|
+
oneOf: ({
|
|
66
|
+
optionName: string;
|
|
67
|
+
type: string;
|
|
68
|
+
additionalProperties: boolean;
|
|
69
|
+
required: string[];
|
|
70
|
+
properties: {
|
|
71
|
+
start: {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
end: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
} | {
|
|
79
|
+
type: string;
|
|
80
|
+
optionName: string;
|
|
81
|
+
})[];
|
|
160
82
|
};
|
|
161
|
-
|
|
83
|
+
type: {
|
|
162
84
|
type: string;
|
|
163
85
|
enum: string[];
|
|
164
86
|
};
|
|
165
|
-
|
|
166
|
-
})[];
|
|
167
|
-
};
|
|
168
|
-
fullscreen: {
|
|
169
|
-
type: string;
|
|
170
|
-
};
|
|
171
|
-
analyticsEvents: {
|
|
172
|
-
anyOf: ({
|
|
173
|
-
type: string;
|
|
174
|
-
additionalProperties: {
|
|
175
|
-
type: string;
|
|
176
|
-
};
|
|
177
|
-
required: string[];
|
|
178
|
-
properties: {
|
|
179
|
-
name: {
|
|
87
|
+
muted: {
|
|
180
88
|
type: string;
|
|
181
89
|
};
|
|
182
|
-
|
|
90
|
+
autoplay: {
|
|
183
91
|
type: string;
|
|
184
92
|
};
|
|
185
|
-
|
|
93
|
+
elapsedTime: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
playButton: {
|
|
186
97
|
type: string;
|
|
187
98
|
additionalProperties: boolean;
|
|
188
|
-
required: never[];
|
|
189
99
|
properties: {
|
|
190
|
-
|
|
100
|
+
type: {
|
|
191
101
|
type: string;
|
|
192
|
-
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
102
|
+
enum: string[];
|
|
195
103
|
};
|
|
196
|
-
|
|
104
|
+
theme: {
|
|
197
105
|
type: string;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
106
|
+
enum: string[];
|
|
107
|
+
};
|
|
108
|
+
text: {
|
|
109
|
+
type: string;
|
|
110
|
+
contentType: string;
|
|
201
111
|
};
|
|
202
112
|
};
|
|
203
113
|
};
|
|
204
|
-
|
|
114
|
+
controls: {
|
|
115
|
+
type: string;
|
|
116
|
+
enum: import("../..").MediaVideoControlsType[];
|
|
117
|
+
};
|
|
118
|
+
customControlsOptions: {
|
|
119
|
+
type: string;
|
|
120
|
+
additionalProperties: boolean;
|
|
121
|
+
properties: {
|
|
122
|
+
type: {
|
|
123
|
+
type: string;
|
|
124
|
+
enum: import("../..").CustomControlsType[];
|
|
125
|
+
};
|
|
126
|
+
muteButtonShown: {
|
|
127
|
+
type: string;
|
|
128
|
+
};
|
|
129
|
+
positioning: {
|
|
130
|
+
type: string;
|
|
131
|
+
enum: import("../..").CustomControlsButtonPositioning[];
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
ariaLabel: {
|
|
205
136
|
type: string;
|
|
206
137
|
};
|
|
207
138
|
};
|
|
208
|
-
}
|
|
139
|
+
};
|
|
140
|
+
youtube: {
|
|
209
141
|
type: string;
|
|
210
|
-
|
|
142
|
+
};
|
|
143
|
+
parallax: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
height: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
previewImg: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
dataLens: {
|
|
153
|
+
oneOf: ({
|
|
154
|
+
type: string;
|
|
155
|
+
optionName: string;
|
|
156
|
+
} | {
|
|
157
|
+
optionName: string;
|
|
158
|
+
type: string;
|
|
159
|
+
additionalProperties: boolean;
|
|
160
|
+
required: string[];
|
|
161
|
+
properties: {
|
|
162
|
+
id: {
|
|
163
|
+
type: string;
|
|
164
|
+
};
|
|
165
|
+
theme: {
|
|
166
|
+
type: string;
|
|
167
|
+
enum: string[];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
})[];
|
|
171
|
+
};
|
|
172
|
+
fullscreen: {
|
|
173
|
+
type: string;
|
|
174
|
+
};
|
|
175
|
+
analyticsEvents: {
|
|
176
|
+
anyOf: ({
|
|
211
177
|
type: string;
|
|
212
178
|
additionalProperties: {
|
|
213
179
|
type: string;
|
|
@@ -243,126 +209,168 @@ export declare const LayoutItem: {
|
|
|
243
209
|
type: string;
|
|
244
210
|
};
|
|
245
211
|
};
|
|
246
|
-
}
|
|
247
|
-
})[];
|
|
248
|
-
};
|
|
249
|
-
ratio: {
|
|
250
|
-
type: string;
|
|
251
|
-
};
|
|
252
|
-
iframe: {
|
|
253
|
-
type: string;
|
|
254
|
-
additionalProperties: boolean;
|
|
255
|
-
required: string[];
|
|
256
|
-
properties: {
|
|
257
|
-
src: {
|
|
258
|
-
type: string;
|
|
259
|
-
};
|
|
260
|
-
name: {
|
|
261
|
-
type: string;
|
|
262
|
-
};
|
|
263
|
-
title: {
|
|
264
|
-
type: string;
|
|
265
|
-
};
|
|
266
|
-
height: {
|
|
267
|
-
type: string;
|
|
268
|
-
};
|
|
269
|
-
width: {
|
|
212
|
+
} | {
|
|
270
213
|
type: string;
|
|
271
|
-
|
|
214
|
+
items: {
|
|
215
|
+
type: string;
|
|
216
|
+
additionalProperties: {
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
219
|
+
required: string[];
|
|
220
|
+
properties: {
|
|
221
|
+
name: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
type: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
counters: {
|
|
228
|
+
type: string;
|
|
229
|
+
additionalProperties: boolean;
|
|
230
|
+
required: never[];
|
|
231
|
+
properties: {
|
|
232
|
+
include: {
|
|
233
|
+
type: string;
|
|
234
|
+
items: {
|
|
235
|
+
type: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
exclude: {
|
|
239
|
+
type: string;
|
|
240
|
+
items: {
|
|
241
|
+
type: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
context: {
|
|
247
|
+
type: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
})[];
|
|
272
252
|
};
|
|
273
|
-
|
|
274
|
-
margins: {
|
|
275
|
-
type: string;
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
content: Partial<{
|
|
279
|
-
title: {
|
|
280
|
-
oneOf: ({
|
|
253
|
+
ratio: {
|
|
281
254
|
type: string;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
} | {
|
|
285
|
-
optionName: string;
|
|
255
|
+
};
|
|
256
|
+
iframe: {
|
|
286
257
|
type: string;
|
|
287
258
|
additionalProperties: boolean;
|
|
288
259
|
required: string[];
|
|
289
260
|
properties: {
|
|
290
|
-
|
|
261
|
+
src: {
|
|
291
262
|
type: string;
|
|
292
|
-
contentType: string;
|
|
293
263
|
};
|
|
294
|
-
|
|
264
|
+
name: {
|
|
295
265
|
type: string;
|
|
296
|
-
enum: string[];
|
|
297
266
|
};
|
|
298
|
-
|
|
267
|
+
title: {
|
|
299
268
|
type: string;
|
|
300
269
|
};
|
|
301
|
-
|
|
270
|
+
height: {
|
|
302
271
|
type: string;
|
|
303
272
|
};
|
|
304
|
-
|
|
273
|
+
width: {
|
|
305
274
|
type: string;
|
|
306
275
|
};
|
|
307
276
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
type: string;
|
|
313
|
-
contentType: string;
|
|
314
|
-
inputType: string;
|
|
315
|
-
};
|
|
316
|
-
additionalInfo: {
|
|
317
|
-
type: string;
|
|
318
|
-
contentType: string;
|
|
319
|
-
};
|
|
320
|
-
size: {
|
|
321
|
-
type: string;
|
|
322
|
-
enum: string[];
|
|
277
|
+
};
|
|
278
|
+
margins: {
|
|
279
|
+
type: string;
|
|
280
|
+
};
|
|
323
281
|
};
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
282
|
+
};
|
|
283
|
+
content: {
|
|
284
|
+
type: string;
|
|
285
|
+
properties: Partial<{
|
|
286
|
+
title: {
|
|
287
|
+
oneOf: ({
|
|
288
|
+
type: string;
|
|
289
|
+
contentType: string;
|
|
290
|
+
optionName: string;
|
|
291
|
+
} | {
|
|
292
|
+
optionName: string;
|
|
293
|
+
type: string;
|
|
294
|
+
additionalProperties: boolean;
|
|
295
|
+
required: string[];
|
|
296
|
+
properties: {
|
|
297
|
+
text: {
|
|
298
|
+
type: string;
|
|
299
|
+
contentType: string;
|
|
300
|
+
};
|
|
301
|
+
textSize: {
|
|
302
|
+
type: string;
|
|
303
|
+
enum: string[];
|
|
304
|
+
};
|
|
305
|
+
url: {
|
|
306
|
+
type: string;
|
|
307
|
+
};
|
|
308
|
+
urlTitle: {
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
resetMargin: {
|
|
312
|
+
type: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
contentType?: undefined;
|
|
316
|
+
})[];
|
|
317
|
+
};
|
|
318
|
+
text: {
|
|
327
319
|
type: string;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
320
|
+
contentType: string;
|
|
321
|
+
inputType: string;
|
|
322
|
+
};
|
|
323
|
+
additionalInfo: {
|
|
324
|
+
type: string;
|
|
325
|
+
contentType: string;
|
|
326
|
+
};
|
|
327
|
+
size: {
|
|
328
|
+
type: string;
|
|
329
|
+
enum: string[];
|
|
330
|
+
};
|
|
331
|
+
links: {
|
|
332
|
+
type: string;
|
|
333
|
+
items: {
|
|
334
|
+
type: string;
|
|
335
|
+
properties: {
|
|
336
|
+
when: {
|
|
337
|
+
type: string;
|
|
338
|
+
};
|
|
331
339
|
};
|
|
332
340
|
};
|
|
333
341
|
};
|
|
334
|
-
|
|
335
|
-
buttons: {
|
|
336
|
-
type: string;
|
|
337
|
-
items: {
|
|
342
|
+
buttons: {
|
|
338
343
|
type: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
344
|
+
items: {
|
|
345
|
+
type: string;
|
|
346
|
+
properties: {
|
|
347
|
+
when: {
|
|
348
|
+
type: string;
|
|
349
|
+
};
|
|
342
350
|
};
|
|
343
351
|
};
|
|
344
352
|
};
|
|
345
|
-
|
|
346
|
-
theme: {
|
|
347
|
-
type: string;
|
|
348
|
-
enum: string[];
|
|
349
|
-
};
|
|
350
|
-
list: {
|
|
351
|
-
type: string;
|
|
352
|
-
items: {
|
|
353
|
+
theme: {
|
|
353
354
|
type: string;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
enum: string[];
|
|
356
|
+
};
|
|
357
|
+
list: {
|
|
358
|
+
type: string;
|
|
359
|
+
items: {
|
|
360
|
+
type: string;
|
|
361
|
+
properties: {
|
|
362
|
+
when: {
|
|
363
|
+
type: string;
|
|
364
|
+
};
|
|
357
365
|
};
|
|
358
366
|
};
|
|
359
367
|
};
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
}
|
|
368
|
+
controlPosition: {
|
|
369
|
+
type: string;
|
|
370
|
+
enum: string[];
|
|
371
|
+
};
|
|
372
|
+
}>;
|
|
373
|
+
};
|
|
366
374
|
metaInfo: {
|
|
367
375
|
type: string;
|
|
368
376
|
items: {
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import omit from 'lodash/omit';
|
|
2
|
+
import { Media } from '../../blocks/Media/schema';
|
|
2
3
|
import metaInfo from '../../components/MetaInfo/schema';
|
|
3
|
-
import { BaseProps, CardLayoutProps
|
|
4
|
+
import { BaseProps, CardLayoutProps } from '../../schema/validators/common';
|
|
4
5
|
import { AnalyticsEventSchema } from '../../schema/validators/event';
|
|
5
6
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
6
7
|
export const LayoutItem = {
|
|
7
8
|
type: 'object',
|
|
8
9
|
additionalProperties: false,
|
|
9
10
|
required: ['content', 'media'],
|
|
10
|
-
properties: Object.assign(Object.assign(Object.assign({}, BaseProps), CardLayoutProps), { media:
|
|
11
|
+
properties: Object.assign(Object.assign(Object.assign({}, BaseProps), CardLayoutProps), { media: Media, content: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: omit(ContentBase, ['colSize', 'size', 'centered']),
|
|
14
|
+
}, metaInfo: metaInfo, border: {
|
|
11
15
|
type: 'boolean',
|
|
12
16
|
}, fullscreen: {
|
|
13
17
|
type: 'boolean',
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { generateFromAJV } from '../../utils/form-generator';
|
|
2
|
+
import MediaCard from './MediaCard';
|
|
3
|
+
import { MediaCardBlock as MediaCardSchema } from './schema';
|
|
4
|
+
const MediaCardConfig = {
|
|
5
|
+
component: MediaCard,
|
|
6
|
+
schema: {
|
|
7
|
+
name: 'Media Card',
|
|
8
|
+
inputs: generateFromAJV(MediaCardSchema['media-card']),
|
|
9
|
+
default: {
|
|
10
|
+
content: {
|
|
11
|
+
title: 'Media Card',
|
|
12
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
export default MediaCardConfig;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { generateFromAJV } from '../../utils/form-generator';
|
|
2
|
+
import PriceCard from './PriceCard';
|
|
3
|
+
import { PriceCardBlock as PriceCardSchema } from './schema';
|
|
4
|
+
const PriceCardConfig = {
|
|
5
|
+
component: PriceCard,
|
|
6
|
+
schema: {
|
|
7
|
+
name: 'Price Card',
|
|
8
|
+
inputs: generateFromAJV(PriceCardSchema['price-card']),
|
|
9
|
+
default: {
|
|
10
|
+
type: 'price-card',
|
|
11
|
+
border: 'line',
|
|
12
|
+
title: 'Basic',
|
|
13
|
+
price: '100 $',
|
|
14
|
+
pricePeriod: 'month',
|
|
15
|
+
priceDetails: '+ 5% from check',
|
|
16
|
+
description: 'For any purposes',
|
|
17
|
+
buttons: [
|
|
18
|
+
{
|
|
19
|
+
url: '/',
|
|
20
|
+
text: 'Read More',
|
|
21
|
+
width: 'max',
|
|
22
|
+
theme: 'action',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export default PriceCardConfig;
|
|
@@ -7,7 +7,7 @@ import SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed
|
|
|
7
7
|
// eslint-disable-next-line valid-jsdoc
|
|
8
8
|
/** @deprecated */
|
|
9
9
|
const PriceDetailed = (props) => {
|
|
10
|
-
const { priceType = PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
10
|
+
const { priceType = PriceDetailsType.SETTINGS, items = [], numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
11
11
|
const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
|
|
12
12
|
const { titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm' } = details || {};
|
|
13
13
|
const getDescriptionComponent = (priceDescription) => {
|