@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
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exampleConfig = exports.blockConfig = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
const textSizeEnum = common_1.textSize.map((size) => ({ value: size, content: size }));
|
|
6
|
+
exports.blockConfig = {
|
|
7
|
+
name: 'Slider Block',
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
type: 'oneOf',
|
|
11
|
+
name: 'title',
|
|
12
|
+
title: 'Title Object',
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
title: 'Simple',
|
|
16
|
+
value: 'simple',
|
|
17
|
+
properties: [
|
|
18
|
+
{
|
|
19
|
+
type: 'text',
|
|
20
|
+
name: '',
|
|
21
|
+
title: 'Title',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: 'Complex',
|
|
27
|
+
value: 'complex',
|
|
28
|
+
properties: [
|
|
29
|
+
{
|
|
30
|
+
type: 'text',
|
|
31
|
+
name: 'text',
|
|
32
|
+
title: 'Title',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'select',
|
|
36
|
+
name: 'textSize',
|
|
37
|
+
title: 'Text Size',
|
|
38
|
+
enum: textSizeEnum,
|
|
39
|
+
view: 'select',
|
|
40
|
+
mode: 'single',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: 'text',
|
|
44
|
+
name: 'url',
|
|
45
|
+
title: 'Url',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'text',
|
|
49
|
+
name: 'urlTitle',
|
|
50
|
+
title: 'Url',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'boolean',
|
|
54
|
+
name: 'resetMargin',
|
|
55
|
+
title: 'Reset Margin',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: 'textarea',
|
|
63
|
+
name: 'description',
|
|
64
|
+
title: 'Description',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
name: 'dots',
|
|
69
|
+
title: 'With dots',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: 'boolean',
|
|
73
|
+
name: 'arrows',
|
|
74
|
+
title: 'With Arrows',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: 'boolean',
|
|
78
|
+
name: 'randomOrder',
|
|
79
|
+
title: 'Random Order',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 'number',
|
|
83
|
+
name: 'autoplay',
|
|
84
|
+
title: 'Autoplay',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'object',
|
|
88
|
+
name: 'disclaimer',
|
|
89
|
+
title: 'Disclaimer',
|
|
90
|
+
properties: [
|
|
91
|
+
{
|
|
92
|
+
type: 'text',
|
|
93
|
+
name: 'text',
|
|
94
|
+
title: 'Text',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'select',
|
|
98
|
+
name: 'size',
|
|
99
|
+
title: 'Size',
|
|
100
|
+
enum: textSizeEnum,
|
|
101
|
+
view: 'select',
|
|
102
|
+
mode: 'single',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: 'oneOf',
|
|
108
|
+
name: 'slidesToShow',
|
|
109
|
+
title: 'Slides to Show',
|
|
110
|
+
options: [
|
|
111
|
+
{
|
|
112
|
+
title: 'Simple',
|
|
113
|
+
value: 'simple',
|
|
114
|
+
properties: [
|
|
115
|
+
{
|
|
116
|
+
type: 'number',
|
|
117
|
+
name: '',
|
|
118
|
+
title: 'Slides',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
title: 'Complex',
|
|
124
|
+
value: 'complex',
|
|
125
|
+
properties: common_1.sliderSizesArray.reduce((acc, size) => {
|
|
126
|
+
acc.push({ type: 'number', name: size, title: size });
|
|
127
|
+
return acc;
|
|
128
|
+
}, []),
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
type: 'array',
|
|
134
|
+
name: 'array',
|
|
135
|
+
title: 'Array Properties',
|
|
136
|
+
buttonText: 'Add new',
|
|
137
|
+
arrayType: 'object',
|
|
138
|
+
properties: [
|
|
139
|
+
{
|
|
140
|
+
type: 'text',
|
|
141
|
+
name: 'text',
|
|
142
|
+
title: 'Property',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: 'boolean',
|
|
146
|
+
name: 'boolean',
|
|
147
|
+
title: 'Property',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
};
|
|
153
|
+
exports.exampleConfig = {
|
|
154
|
+
name: 'Slider Block',
|
|
155
|
+
inputs: [
|
|
156
|
+
{
|
|
157
|
+
type: 'text',
|
|
158
|
+
name: 'title',
|
|
159
|
+
title: 'Text Property',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
type: 'boolean',
|
|
163
|
+
name: '<ID>',
|
|
164
|
+
title: 'Boolean Property',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'number',
|
|
168
|
+
name: '<ID>',
|
|
169
|
+
title: 'Number Property',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
type: 'textarea',
|
|
173
|
+
name: '<ID>',
|
|
174
|
+
title: 'TextArea Property',
|
|
175
|
+
showIf: `block.description === 'Test'`,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
type: 'select',
|
|
179
|
+
name: 'select',
|
|
180
|
+
title: 'Select Property',
|
|
181
|
+
enum: [
|
|
182
|
+
{ content: 'Option 1', value: 'option-1' },
|
|
183
|
+
{ content: 'Option 2', value: 'option-2' },
|
|
184
|
+
],
|
|
185
|
+
mode: 'single',
|
|
186
|
+
view: 'select',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: 'object',
|
|
190
|
+
name: 'object_data',
|
|
191
|
+
title: 'Object Property',
|
|
192
|
+
properties: [
|
|
193
|
+
{
|
|
194
|
+
type: 'text',
|
|
195
|
+
name: 'text',
|
|
196
|
+
title: 'Property',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: 'boolean',
|
|
200
|
+
name: 'boolean',
|
|
201
|
+
title: 'Property',
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: 'array',
|
|
207
|
+
name: 'array',
|
|
208
|
+
title: 'Array Properties',
|
|
209
|
+
buttonText: 'Add new',
|
|
210
|
+
arrayType: 'object',
|
|
211
|
+
properties: [
|
|
212
|
+
{
|
|
213
|
+
type: 'text',
|
|
214
|
+
name: 'text',
|
|
215
|
+
title: 'Property',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: 'boolean',
|
|
219
|
+
name: 'boolean',
|
|
220
|
+
title: 'Property',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const SliderBlockConfig: {
|
|
2
|
+
component: (props: import("../..").WithChildren<import("./Slider").SliderProps>) => JSX.Element;
|
|
3
|
+
schema: {
|
|
4
|
+
name: string;
|
|
5
|
+
inputs: import("../../types/dynamic-form").ConfigInput[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default SliderBlockConfig;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const form_generator_1 = require("../../utils/form-generator");
|
|
5
|
+
const Slider_1 = tslib_1.__importDefault(require("./Slider"));
|
|
6
|
+
const schema_1 = require("./schema");
|
|
7
|
+
const SliderBlockConfig = {
|
|
8
|
+
component: Slider_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Slider Block',
|
|
11
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.SliderBlock['slider-block']),
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.default = SliderBlockConfig;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const form_generator_1 = require("../../utils/form-generator");
|
|
5
|
+
const Table_1 = tslib_1.__importDefault(require("./Table"));
|
|
6
|
+
const schema_1 = require("./schema");
|
|
7
|
+
const TableBlockConfig = {
|
|
8
|
+
component: Table_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Table Block',
|
|
11
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.TableBlock['table-block']),
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.default = TableBlockConfig;
|
|
@@ -75,14 +75,15 @@ const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered
|
|
|
75
75
|
react_1.default.createElement(FullscreenImage_1.default, Object.assign({}, imageProps, { imageClassName: b('image', { border }) })))),
|
|
76
76
|
(activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (react_1.default.createElement("p", { className: b('caption'), id: captionId },
|
|
77
77
|
react_1.default.createElement(YFMWrapper_1.default, { content: activeTabData.caption, modifiers: { constructor: true }, id: captionId })))));
|
|
78
|
-
return (react_1.default.createElement(
|
|
79
|
-
react_1.default.createElement(
|
|
80
|
-
|
|
81
|
-
react_1.default.createElement(grid_1.
|
|
82
|
-
react_1.default.createElement(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
return (react_1.default.createElement(grid_1.Grid, null,
|
|
79
|
+
react_1.default.createElement(AnimateBlock_1.default, { className: b(), onScroll: () => setPlay(true), animate: animated },
|
|
80
|
+
react_1.default.createElement(Title_1.default, { title: title, subtitle: description, className: b('title', { centered: centered }) }),
|
|
81
|
+
react_1.default.createElement(grid_1.Row, null,
|
|
82
|
+
react_1.default.createElement(grid_1.Col, { sizes: tabsColSizes },
|
|
83
|
+
react_1.default.createElement(ButtonTabs_1.default, { items: tabs, onSelectTab: onSelectTab, activeTab: activeTab, className: b('tabs', { centered: centered }) }))),
|
|
84
|
+
activeTabData && (react_1.default.createElement(grid_1.Row, { className: b('row', { reverse: isReverse }) },
|
|
85
|
+
mediaContent,
|
|
86
|
+
textContent)))));
|
|
86
87
|
};
|
|
87
88
|
exports.TabsBlock = TabsBlock;
|
|
88
89
|
exports.default = exports.TabsBlock;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const TabsBlockConfig: {
|
|
2
|
+
component: ({ items, title, description, animated, tabsColSizes, centered, direction, contentSize, }: import("../..").TabsBlockProps) => JSX.Element;
|
|
3
|
+
schema: {
|
|
4
|
+
name: string;
|
|
5
|
+
inputs: import("../../types/dynamic-form").ConfigInput[];
|
|
6
|
+
default: {
|
|
7
|
+
title: string;
|
|
8
|
+
items: {
|
|
9
|
+
tabName: string;
|
|
10
|
+
text: string;
|
|
11
|
+
title: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default TabsBlockConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const form_generator_1 = require("../../utils/form-generator");
|
|
5
|
+
const Tabs_1 = tslib_1.__importDefault(require("./Tabs"));
|
|
6
|
+
const schema_1 = require("./schema");
|
|
7
|
+
const TabsBlockConfig = {
|
|
8
|
+
component: Tabs_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Tabs Block',
|
|
11
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.TabsBlock['tabs-block']),
|
|
12
|
+
default: {
|
|
13
|
+
title: 'Tabs Block',
|
|
14
|
+
items: [
|
|
15
|
+
{
|
|
16
|
+
tabName: 'First Tab',
|
|
17
|
+
text: 'First Tab Content',
|
|
18
|
+
title: 'First Tab Title',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
text: 'Second Tab Content',
|
|
22
|
+
title: 'Second Tab Title',
|
|
23
|
+
tabName: 'Second Tab',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
exports.default = TabsBlockConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestEditorBlock = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const b = (0, utils_1.block)('test-editor-block');
|
|
8
|
+
const TestEditorBlock = (props) => {
|
|
9
|
+
return react_1.default.createElement("div", { className: b() }, JSON.stringify(props, null, 2));
|
|
10
|
+
};
|
|
11
|
+
exports.TestEditorBlock = TestEditorBlock;
|
|
12
|
+
exports.default = exports.TestEditorBlock;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ArrayObjectInput, ArrayTextInput, BooleanInput, NumberInput, ObjectInput, OneOfInput, SelectMultipleInput, SelectSingleInput, TextAreaInput, TextInput } from '../../types/dynamic-form';
|
|
2
|
+
declare const _default: (TextInput | BooleanInput | NumberInput | TextAreaInput | SelectSingleInput | SelectMultipleInput | ObjectInput | ArrayTextInput | ArrayObjectInput | OneOfInput)[];
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const textInput = {
|
|
4
|
+
type: 'text',
|
|
5
|
+
name: 'text',
|
|
6
|
+
title: 'Text Input',
|
|
7
|
+
};
|
|
8
|
+
const textAreaInput = {
|
|
9
|
+
type: 'textarea',
|
|
10
|
+
name: 'textarea',
|
|
11
|
+
title: 'TextArea Input',
|
|
12
|
+
};
|
|
13
|
+
const booleanInput = {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
name: 'boolean',
|
|
16
|
+
title: 'Boolean Input',
|
|
17
|
+
};
|
|
18
|
+
const numberInput = {
|
|
19
|
+
type: 'number',
|
|
20
|
+
name: 'number',
|
|
21
|
+
title: 'Number Input',
|
|
22
|
+
};
|
|
23
|
+
const selectInput = {
|
|
24
|
+
type: 'select',
|
|
25
|
+
name: 'selectSingle',
|
|
26
|
+
title: 'Select Single Input',
|
|
27
|
+
mode: 'single',
|
|
28
|
+
view: 'select',
|
|
29
|
+
enum: [
|
|
30
|
+
{ value: 'id_1', content: 'Option 1' },
|
|
31
|
+
{ value: 'id_2', content: 'Option 2' },
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
const radioButtonsViewSingleInput = Object.assign(Object.assign({}, selectInput), { name: 'radioButtons', title: 'Radio Button Input', view: 'radiobutton' });
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
const selectMultipleModeInput = Object.assign(Object.assign({}, selectInput), { name: 'selectMultiple', title: 'Select Multiple Input', mode: 'multiple' });
|
|
37
|
+
const objectInput = {
|
|
38
|
+
type: 'object',
|
|
39
|
+
name: 'object',
|
|
40
|
+
title: 'Object Input',
|
|
41
|
+
properties: [textInput, textAreaInput, selectInput],
|
|
42
|
+
};
|
|
43
|
+
const arrayTextInput = {
|
|
44
|
+
type: 'array',
|
|
45
|
+
name: 'arrayText',
|
|
46
|
+
title: 'Array Text Input',
|
|
47
|
+
buttonText: 'Add Array Item',
|
|
48
|
+
arrayType: 'text',
|
|
49
|
+
};
|
|
50
|
+
const arrayObjectInput = {
|
|
51
|
+
type: 'array',
|
|
52
|
+
name: 'arrayObject',
|
|
53
|
+
title: 'Array Object Input',
|
|
54
|
+
buttonText: 'Add Array Item',
|
|
55
|
+
arrayType: 'object',
|
|
56
|
+
properties: [textInput, textAreaInput, selectInput],
|
|
57
|
+
};
|
|
58
|
+
const oneOfInput = {
|
|
59
|
+
type: 'oneOf',
|
|
60
|
+
name: 'oneOf',
|
|
61
|
+
key: 'oneOfKey',
|
|
62
|
+
title: 'Array Text Input',
|
|
63
|
+
options: [
|
|
64
|
+
{ value: 'text', title: 'Text', properties: [textInput] },
|
|
65
|
+
{ value: 'textarea', title: 'TextArea', properties: [textAreaInput] },
|
|
66
|
+
],
|
|
67
|
+
};
|
|
68
|
+
exports.default = [
|
|
69
|
+
textInput,
|
|
70
|
+
textAreaInput,
|
|
71
|
+
booleanInput,
|
|
72
|
+
numberInput,
|
|
73
|
+
selectInput,
|
|
74
|
+
radioButtonsViewSingleInput,
|
|
75
|
+
selectMultipleModeInput,
|
|
76
|
+
objectInput,
|
|
77
|
+
arrayTextInput,
|
|
78
|
+
arrayObjectInput,
|
|
79
|
+
oneOfInput,
|
|
80
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const TestEditorBlockConfig: {
|
|
2
|
+
component: (props: import("./TestEditorBlock").TestEditorBlockProps) => JSX.Element;
|
|
3
|
+
schema: {
|
|
4
|
+
name: string;
|
|
5
|
+
inputs: (import("../../types/dynamic-form").TextInput | import("../../types/dynamic-form").BooleanInput | import("../../types/dynamic-form").NumberInput | import("../../types/dynamic-form").TextAreaInput | import("../../types/dynamic-form").SelectSingleInput | import("../../types/dynamic-form").SelectMultipleInput | import("../../types/dynamic-form").ObjectInput | import("../../types/dynamic-form").ArrayTextInput | import("../../types/dynamic-form").ArrayObjectInput | import("../../types/dynamic-form").OneOfInput)[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const TestEditorBlockSchema: {
|
|
9
|
+
"test-editor-block": {};
|
|
10
|
+
};
|
|
11
|
+
export default TestEditorBlockConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestEditorBlockSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const TestEditorBlock_1 = tslib_1.__importDefault(require("./TestEditorBlock"));
|
|
6
|
+
const form_1 = tslib_1.__importDefault(require("./form"));
|
|
7
|
+
const TestEditorBlockConfig = {
|
|
8
|
+
component: TestEditorBlock_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Test Editor Block',
|
|
11
|
+
inputs: form_1.default,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.TestEditorBlockSchema = {
|
|
15
|
+
['test-editor-block']: {},
|
|
16
|
+
};
|
|
17
|
+
exports.default = TestEditorBlockConfig;
|
|
@@ -4,30 +4,25 @@ unpredictable css rules order in build */
|
|
|
4
4
|
--anchor-offset: 48px;
|
|
5
5
|
}
|
|
6
6
|
.pc-block-base.pc-block-base {
|
|
7
|
-
|
|
8
|
-
padding: 0 0 48px;
|
|
7
|
+
padding: 48px 0;
|
|
9
8
|
}
|
|
10
|
-
.pc-block-base.pc-block-base:first-child {
|
|
11
|
-
margin-top: var(--pc-first-block-indent, 96px);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
9
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_0 {
|
|
15
|
-
|
|
10
|
+
padding-top: 0;
|
|
16
11
|
}
|
|
17
12
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_xs {
|
|
18
|
-
|
|
13
|
+
padding-top: 16px;
|
|
19
14
|
}
|
|
20
15
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_s {
|
|
21
|
-
|
|
16
|
+
padding-top: 24px;
|
|
22
17
|
}
|
|
23
18
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_m {
|
|
24
|
-
|
|
19
|
+
padding-top: 32px;
|
|
25
20
|
}
|
|
26
21
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_l {
|
|
27
|
-
|
|
22
|
+
padding-top: 48px;
|
|
28
23
|
}
|
|
29
24
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_xl {
|
|
30
|
-
|
|
25
|
+
padding-top: 64px;
|
|
31
26
|
}
|
|
32
27
|
.pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentBottom_0 {
|
|
33
28
|
padding-bottom: 0;
|
|
@@ -50,12 +45,9 @@ unpredictable css rules order in build */
|
|
|
50
45
|
|
|
51
46
|
@media only screen and (max-width: 577px) {
|
|
52
47
|
.pc-block-base.pc-block-base {
|
|
53
|
-
|
|
48
|
+
padding-top: 32px;
|
|
54
49
|
padding-bottom: 32px;
|
|
55
50
|
}
|
|
56
|
-
.pc-block-base.pc-block-base:first-child {
|
|
57
|
-
margin-top: var(--pc-first-block-mobile-indent, 64px);
|
|
58
|
-
}
|
|
59
51
|
}
|
|
60
52
|
|
|
61
53
|
.pc-block-base_reset-paddings.pc-block-base.pc-block-base_reset-paddings.pc-block-base {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.imageInputs = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
|
+
const devices = ['desktop', 'tablet', 'mobile'];
|
|
7
|
+
const imageBaseInputs = [
|
|
8
|
+
{
|
|
9
|
+
type: 'text',
|
|
10
|
+
name: 'alt',
|
|
11
|
+
title: 'Alternative',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
name: 'disableCompress',
|
|
16
|
+
title: 'Disable Compress',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
const imageStyleInputs = [
|
|
20
|
+
{
|
|
21
|
+
type: 'text',
|
|
22
|
+
name: 'style.backgroundColor',
|
|
23
|
+
title: 'Background Color',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 'text',
|
|
27
|
+
name: 'style.height',
|
|
28
|
+
title: 'Height',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: 'text',
|
|
32
|
+
name: 'style.width',
|
|
33
|
+
title: 'Width',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'text',
|
|
37
|
+
name: 'style.color',
|
|
38
|
+
title: 'Color',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
const devicesInputs = devices.map((device) => ({
|
|
42
|
+
type: 'text',
|
|
43
|
+
title: lodash_1.default.capitalize(device),
|
|
44
|
+
name: `${device}`,
|
|
45
|
+
}));
|
|
46
|
+
exports.imageInputs = [
|
|
47
|
+
{
|
|
48
|
+
type: 'oneOf',
|
|
49
|
+
name: '',
|
|
50
|
+
key: 'imageType',
|
|
51
|
+
title: 'Image Type',
|
|
52
|
+
options: [
|
|
53
|
+
{
|
|
54
|
+
title: 'Simple',
|
|
55
|
+
value: 'simple',
|
|
56
|
+
properties: [
|
|
57
|
+
{
|
|
58
|
+
type: 'text',
|
|
59
|
+
name: '',
|
|
60
|
+
title: 'Image URL',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: 'Complex',
|
|
66
|
+
value: 'complex',
|
|
67
|
+
properties: [
|
|
68
|
+
{
|
|
69
|
+
type: 'text',
|
|
70
|
+
name: 'src',
|
|
71
|
+
title: 'Source',
|
|
72
|
+
},
|
|
73
|
+
...imageStyleInputs,
|
|
74
|
+
...imageBaseInputs,
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: 'Device Based',
|
|
79
|
+
value: 'deviseBased',
|
|
80
|
+
properties: [...devicesInputs, ...imageBaseInputs],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
];
|