@gravity-ui/page-constructor 5.14.3 → 5.14.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -1
- 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/common/hooks/usePostMessage.d.ts +11 -0
- package/build/cjs/common/hooks/usePostMessage.js +94 -0
- package/build/cjs/common/types/actions/codes.d.ts +16 -0
- package/build/cjs/common/types/actions/codes.js +26 -0
- package/build/cjs/common/types/actions/index.d.ts +20 -0
- package/build/cjs/common/types/actions/index.js +10 -0
- package/build/cjs/common/types/actions/initial.d.ts +23 -0
- package/build/cjs/common/types/actions/initial.js +2 -0
- package/build/cjs/common/types/actions/insert.d.ts +19 -0
- package/build/cjs/common/types/actions/insert.js +2 -0
- package/build/cjs/common/types/actions/other.d.ts +16 -0
- package/build/cjs/common/types/actions/other.js +2 -0
- package/build/cjs/common/types/actions/overlay.d.ts +16 -0
- package/build/cjs/common/types/actions/overlay.js +2 -0
- package/build/cjs/common/types/actions/reorder.d.ts +19 -0
- package/build/cjs/common/types/actions/reorder.js +2 -0
- package/build/cjs/common/types/actions/select.d.ts +16 -0
- package/build/cjs/common/types/actions/select.js +2 -0
- package/build/cjs/common/types/common.d.ts +14 -0
- package/build/cjs/common/types/common.js +2 -0
- package/build/cjs/common/types/forms.d.ts +93 -0
- package/build/cjs/common/types/forms.js +2 -0
- package/build/cjs/common/types/index.d.ts +4 -0
- package/build/cjs/common/types/index.js +7 -0
- package/build/cjs/common/types/messages.d.ts +14 -0
- package/build/cjs/common/types/messages.js +2 -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 +24 -6
- package/build/cjs/constructor-items.js +73 -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 +13 -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 +27 -0
- package/build/cjs/context/messagesContext/store.d.ts +24 -0
- package/build/cjs/context/messagesContext/store.js +17 -0
- package/build/cjs/editor/data/templates/test-editor-block.json +18 -0
- package/build/cjs/editor-v2/components/BigOverlay/BigOverlay.css +33 -0
- package/build/cjs/editor-v2/components/BigOverlay/BigOverlay.d.ts +6 -0
- package/build/cjs/editor-v2/components/BigOverlay/BigOverlay.js +37 -0
- package/build/cjs/editor-v2/components/BlockConfig/BlockConfig.css +33 -0
- package/build/cjs/editor-v2/components/BlockConfig/BlockConfig.d.ts +6 -0
- package/build/cjs/editor-v2/components/BlockConfig/BlockConfig.js +35 -0
- package/build/cjs/editor-v2/components/BlocksList/BlocksList.css +42 -0
- package/build/cjs/editor-v2/components/BlocksList/BlocksList.d.ts +7 -0
- package/build/cjs/editor-v2/components/BlocksList/BlocksList.js +22 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +2 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +11 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +118 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +61 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +12 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +32 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +38 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +13 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +83 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +11 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +28 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +9 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +14 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +9 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +17 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.css +5 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +12 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +16 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +8 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +11 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +34 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +12 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +16 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +9 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +14 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +9 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +14 -0
- package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +3 -0
- package/build/cjs/editor-v2/components/DynamicForm/utils.js +22 -0
- package/build/cjs/editor-v2/components/GlobalConfig/GlobalConfig.css +22 -0
- package/build/cjs/editor-v2/components/GlobalConfig/GlobalConfig.d.ts +6 -0
- package/build/cjs/editor-v2/components/GlobalConfig/GlobalConfig.js +18 -0
- package/build/cjs/editor-v2/components/MiddleScreen/MiddleScreen.css +51 -0
- package/build/cjs/editor-v2/components/MiddleScreen/MiddleScreen.d.ts +6 -0
- package/build/cjs/editor-v2/components/MiddleScreen/MiddleScreen.js +29 -0
- package/build/cjs/editor-v2/components/Overlay/Overlay.css +56 -0
- package/build/cjs/editor-v2/components/Overlay/Overlay.d.ts +6 -0
- package/build/cjs/editor-v2/components/Overlay/Overlay.js +71 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +66 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +7 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +68 -0
- package/build/cjs/editor-v2/components/Source/Source.css +21 -0
- package/build/cjs/editor-v2/components/Source/Source.d.ts +6 -0
- package/build/cjs/editor-v2/components/Source/Source.js +30 -0
- package/build/cjs/editor-v2/components/SourceCode/SourceCode.css +32 -0
- package/build/cjs/editor-v2/components/SourceCode/SourceCode.d.ts +6 -0
- package/build/cjs/editor-v2/components/SourceCode/SourceCode.js +34 -0
- package/build/cjs/editor-v2/components/TopBar/TopBar.css +34 -0
- package/build/cjs/editor-v2/components/TopBar/TopBar.d.ts +6 -0
- package/build/cjs/editor-v2/components/TopBar/TopBar.js +15 -0
- package/build/cjs/editor-v2/components/Tree/Tree.css +148 -0
- package/build/cjs/editor-v2/components/Tree/Tree.d.ts +7 -0
- package/build/cjs/editor-v2/components/Tree/Tree.js +32 -0
- package/build/cjs/editor-v2/components/ViewSwitches/ViewSwitches.css +16 -0
- package/build/cjs/editor-v2/components/ViewSwitches/ViewSwitches.d.ts +8 -0
- package/build/cjs/editor-v2/components/ViewSwitches/ViewSwitches.js +25 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.css +54 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +9 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.js +66 -0
- package/build/cjs/editor-v2/containers/Editor/hooks/useAdminInitialize.d.ts +2 -0
- package/build/cjs/editor-v2/containers/Editor/hooks/useAdminInitialize.js +25 -0
- package/build/cjs/editor-v2/context/contentConfig/contentConfigContext.d.ts +10 -0
- package/build/cjs/editor-v2/context/contentConfig/contentConfigContext.js +9 -0
- package/build/cjs/editor-v2/context/contentConfig/contentConfigProvider.d.ts +8 -0
- package/build/cjs/editor-v2/context/contentConfig/contentConfigProvider.js +19 -0
- package/build/cjs/editor-v2/context/contentConfig/hooks/useContentConfigStore.d.ts +2 -0
- package/build/cjs/editor-v2/context/contentConfig/hooks/useContentConfigStore.js +15 -0
- package/build/cjs/editor-v2/context/contentConfig/index.d.ts +4 -0
- package/build/cjs/editor-v2/context/contentConfig/index.js +7 -0
- package/build/cjs/editor-v2/context/contentConfig/store.d.ts +35 -0
- package/build/cjs/editor-v2/context/contentConfig/store.js +106 -0
- package/build/cjs/editor-v2/context/editorContext/editorContext.d.ts +11 -0
- package/build/cjs/editor-v2/context/editorContext/editorContext.js +10 -0
- package/build/cjs/editor-v2/context/editorContext/editorProvider.d.ts +2 -0
- package/build/cjs/editor-v2/context/editorContext/editorProvider.js +15 -0
- package/build/cjs/editor-v2/context/editorContext/hooks/useEditorStore.d.ts +2 -0
- package/build/cjs/editor-v2/context/editorContext/hooks/useEditorStore.js +15 -0
- package/build/cjs/editor-v2/context/editorContext/index.d.ts +4 -0
- package/build/cjs/editor-v2/context/editorContext/index.js +7 -0
- package/build/cjs/editor-v2/context/editorContext/store.d.ts +26 -0
- package/build/cjs/editor-v2/context/editorContext/store.js +55 -0
- package/build/cjs/editor-v2/context/iframeContext/hooks/useIframeStore.d.ts +2 -0
- package/build/cjs/editor-v2/context/iframeContext/hooks/useIframeStore.js +15 -0
- package/build/cjs/editor-v2/context/iframeContext/iframeContext.d.ts +13 -0
- package/build/cjs/editor-v2/context/iframeContext/iframeContext.js +9 -0
- package/build/cjs/editor-v2/context/iframeContext/iframeProvider.d.ts +7 -0
- package/build/cjs/editor-v2/context/iframeContext/iframeProvider.js +23 -0
- package/build/cjs/editor-v2/context/iframeContext/index.d.ts +4 -0
- package/build/cjs/editor-v2/context/iframeContext/index.js +7 -0
- package/build/cjs/editor-v2/context/iframeContext/store.d.ts +22 -0
- package/build/cjs/editor-v2/context/iframeContext/store.js +19 -0
- package/build/cjs/editor-v2/context/messagesContext/hooks/useMessageObserver.d.ts +4 -0
- package/build/cjs/editor-v2/context/messagesContext/hooks/useMessageObserver.js +17 -0
- package/build/cjs/editor-v2/context/messagesContext/hooks/useMessageSender.d.ts +2 -0
- package/build/cjs/editor-v2/context/messagesContext/hooks/useMessageSender.js +11 -0
- package/build/cjs/editor-v2/context/messagesContext/hooks/useMessagesStore.d.ts +2 -0
- package/build/cjs/editor-v2/context/messagesContext/hooks/useMessagesStore.js +15 -0
- package/build/cjs/editor-v2/context/messagesContext/index.d.ts +5 -0
- package/build/cjs/editor-v2/context/messagesContext/index.js +8 -0
- package/build/cjs/editor-v2/context/messagesContext/messagesContext.d.ts +13 -0
- package/build/cjs/editor-v2/context/messagesContext/messagesContext.js +12 -0
- package/build/cjs/editor-v2/context/messagesContext/messagesProvider.d.ts +2 -0
- package/build/cjs/editor-v2/context/messagesContext/messagesProvider.js +35 -0
- package/build/cjs/editor-v2/context/messagesContext/store.d.ts +22 -0
- package/build/cjs/editor-v2/context/messagesContext/store.js +17 -0
- package/build/cjs/editor-v2/icons/Tablet.d.ts +2 -0
- package/build/cjs/editor-v2/icons/Tablet.js +9 -0
- package/build/cjs/editor-v2/index.d.ts +2 -0
- package/build/cjs/editor-v2/index.js +7 -0
- package/build/cjs/editor-v2/styles/mixins.css +0 -0
- package/build/cjs/editor-v2/styles/root.css +9 -0
- package/build/cjs/editor-v2/styles/variables.css +0 -0
- package/build/cjs/editor-v2/utils/code.d.ts +6 -0
- package/build/cjs/editor-v2/utils/code.js +11 -0
- package/build/cjs/editor-v2/utils/index.d.ts +17 -0
- package/build/cjs/editor-v2/utils/index.js +151 -0
- package/build/cjs/editor-v2/utils/store.d.ts +14 -0
- package/build/cjs/editor-v2/utils/store.js +9 -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/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/common/hooks/usePostMessage.d.ts +11 -0
- package/build/esm/common/hooks/usePostMessage.js +90 -0
- package/build/esm/common/types/actions/codes.d.ts +16 -0
- package/build/esm/common/types/actions/codes.js +23 -0
- package/build/esm/common/types/actions/index.d.ts +20 -0
- package/build/esm/common/types/actions/index.js +7 -0
- package/build/esm/common/types/actions/initial.d.ts +23 -0
- package/build/esm/common/types/actions/initial.js +1 -0
- package/build/esm/common/types/actions/insert.d.ts +19 -0
- package/build/esm/common/types/actions/insert.js +1 -0
- package/build/esm/common/types/actions/other.d.ts +16 -0
- package/build/esm/common/types/actions/other.js +1 -0
- package/build/esm/common/types/actions/overlay.d.ts +16 -0
- package/build/esm/common/types/actions/overlay.js +1 -0
- package/build/esm/common/types/actions/reorder.d.ts +19 -0
- package/build/esm/common/types/actions/reorder.js +1 -0
- package/build/esm/common/types/actions/select.d.ts +16 -0
- package/build/esm/common/types/actions/select.js +1 -0
- package/build/esm/common/types/common.d.ts +14 -0
- package/build/esm/common/types/common.js +1 -0
- package/build/esm/common/types/forms.d.ts +93 -0
- package/build/esm/common/types/forms.js +1 -0
- package/build/esm/common/types/index.d.ts +4 -0
- package/build/esm/common/types/index.js +4 -0
- package/build/esm/common/types/messages.d.ts +14 -0
- package/build/esm/common/types/messages.js +1 -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 +24 -6
- package/build/esm/constructor-items.js +72 -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 +13 -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 +22 -0
- package/build/esm/context/messagesContext/store.d.ts +24 -0
- package/build/esm/context/messagesContext/store.js +14 -0
- package/build/esm/editor/data/templates/test-editor-block.json +18 -0
- package/build/esm/editor-v2/components/BigOverlay/BigOverlay.css +33 -0
- package/build/esm/editor-v2/components/BigOverlay/BigOverlay.d.ts +7 -0
- package/build/esm/editor-v2/components/BigOverlay/BigOverlay.js +35 -0
- package/build/esm/editor-v2/components/BlockConfig/BlockConfig.css +33 -0
- package/build/esm/editor-v2/components/BlockConfig/BlockConfig.d.ts +7 -0
- package/build/esm/editor-v2/components/BlockConfig/BlockConfig.js +33 -0
- package/build/esm/editor-v2/components/BlocksList/BlocksList.css +42 -0
- package/build/esm/editor-v2/components/BlocksList/BlocksList.d.ts +8 -0
- package/build/esm/editor-v2/components/BlocksList/BlocksList.js +20 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +2 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +12 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +116 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +61 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +13 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +30 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +38 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +14 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +81 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +11 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +25 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +9 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +11 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +9 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +14 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.css +5 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +13 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +14 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +8 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +12 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +32 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +12 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js +13 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +9 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +11 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +9 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +11 -0
- package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +3 -0
- package/build/esm/editor-v2/components/DynamicForm/utils.js +16 -0
- package/build/esm/editor-v2/components/GlobalConfig/GlobalConfig.css +22 -0
- package/build/esm/editor-v2/components/GlobalConfig/GlobalConfig.d.ts +7 -0
- package/build/esm/editor-v2/components/GlobalConfig/GlobalConfig.js +16 -0
- package/build/esm/editor-v2/components/MiddleScreen/MiddleScreen.css +51 -0
- package/build/esm/editor-v2/components/MiddleScreen/MiddleScreen.d.ts +7 -0
- package/build/esm/editor-v2/components/MiddleScreen/MiddleScreen.js +27 -0
- package/build/esm/editor-v2/components/Overlay/Overlay.css +56 -0
- package/build/esm/editor-v2/components/Overlay/Overlay.d.ts +7 -0
- package/build/esm/editor-v2/components/Overlay/Overlay.js +69 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.css +66 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +8 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.js +64 -0
- package/build/esm/editor-v2/components/Source/Source.css +21 -0
- package/build/esm/editor-v2/components/Source/Source.d.ts +7 -0
- package/build/esm/editor-v2/components/Source/Source.js +28 -0
- package/build/esm/editor-v2/components/SourceCode/SourceCode.css +32 -0
- package/build/esm/editor-v2/components/SourceCode/SourceCode.d.ts +7 -0
- package/build/esm/editor-v2/components/SourceCode/SourceCode.js +32 -0
- package/build/esm/editor-v2/components/TopBar/TopBar.css +34 -0
- package/build/esm/editor-v2/components/TopBar/TopBar.d.ts +7 -0
- package/build/esm/editor-v2/components/TopBar/TopBar.js +13 -0
- package/build/esm/editor-v2/components/Tree/Tree.css +148 -0
- package/build/esm/editor-v2/components/Tree/Tree.d.ts +8 -0
- package/build/esm/editor-v2/components/Tree/Tree.js +30 -0
- package/build/esm/editor-v2/components/ViewSwitches/ViewSwitches.css +16 -0
- package/build/esm/editor-v2/components/ViewSwitches/ViewSwitches.d.ts +9 -0
- package/build/esm/editor-v2/components/ViewSwitches/ViewSwitches.js +22 -0
- package/build/esm/editor-v2/containers/Editor/Editor.css +54 -0
- package/build/esm/editor-v2/containers/Editor/Editor.d.ts +10 -0
- package/build/esm/editor-v2/containers/Editor/Editor.js +62 -0
- package/build/esm/editor-v2/containers/Editor/hooks/useAdminInitialize.d.ts +2 -0
- package/build/esm/editor-v2/containers/Editor/hooks/useAdminInitialize.js +23 -0
- package/build/esm/editor-v2/context/contentConfig/contentConfigContext.d.ts +10 -0
- package/build/esm/editor-v2/context/contentConfig/contentConfigContext.js +5 -0
- package/build/esm/editor-v2/context/contentConfig/contentConfigProvider.d.ts +8 -0
- package/build/esm/editor-v2/context/contentConfig/contentConfigProvider.js +14 -0
- package/build/esm/editor-v2/context/contentConfig/hooks/useContentConfigStore.d.ts +2 -0
- package/build/esm/editor-v2/context/contentConfig/hooks/useContentConfigStore.js +11 -0
- package/build/esm/editor-v2/context/contentConfig/index.d.ts +4 -0
- package/build/esm/editor-v2/context/contentConfig/index.js +4 -0
- package/build/esm/editor-v2/context/contentConfig/store.d.ts +35 -0
- package/build/esm/editor-v2/context/contentConfig/store.js +102 -0
- package/build/esm/editor-v2/context/editorContext/editorContext.d.ts +11 -0
- package/build/esm/editor-v2/context/editorContext/editorContext.js +6 -0
- package/build/esm/editor-v2/context/editorContext/editorProvider.d.ts +2 -0
- package/build/esm/editor-v2/context/editorContext/editorProvider.js +10 -0
- package/build/esm/editor-v2/context/editorContext/hooks/useEditorStore.d.ts +2 -0
- package/build/esm/editor-v2/context/editorContext/hooks/useEditorStore.js +11 -0
- package/build/esm/editor-v2/context/editorContext/index.d.ts +4 -0
- package/build/esm/editor-v2/context/editorContext/index.js +4 -0
- package/build/esm/editor-v2/context/editorContext/store.d.ts +26 -0
- package/build/esm/editor-v2/context/editorContext/store.js +52 -0
- package/build/esm/editor-v2/context/iframeContext/hooks/useIframeStore.d.ts +2 -0
- package/build/esm/editor-v2/context/iframeContext/hooks/useIframeStore.js +11 -0
- package/build/esm/editor-v2/context/iframeContext/iframeContext.d.ts +13 -0
- package/build/esm/editor-v2/context/iframeContext/iframeContext.js +5 -0
- package/build/esm/editor-v2/context/iframeContext/iframeProvider.d.ts +7 -0
- package/build/esm/editor-v2/context/iframeContext/iframeProvider.js +18 -0
- package/build/esm/editor-v2/context/iframeContext/index.d.ts +4 -0
- package/build/esm/editor-v2/context/iframeContext/index.js +4 -0
- package/build/esm/editor-v2/context/iframeContext/store.d.ts +22 -0
- package/build/esm/editor-v2/context/iframeContext/store.js +16 -0
- package/build/esm/editor-v2/context/messagesContext/hooks/useMessageObserver.d.ts +4 -0
- package/build/esm/editor-v2/context/messagesContext/hooks/useMessageObserver.js +12 -0
- package/build/esm/editor-v2/context/messagesContext/hooks/useMessageSender.d.ts +2 -0
- package/build/esm/editor-v2/context/messagesContext/hooks/useMessageSender.js +7 -0
- package/build/esm/editor-v2/context/messagesContext/hooks/useMessagesStore.d.ts +2 -0
- package/build/esm/editor-v2/context/messagesContext/hooks/useMessagesStore.js +11 -0
- package/build/esm/editor-v2/context/messagesContext/index.d.ts +5 -0
- package/build/esm/editor-v2/context/messagesContext/index.js +5 -0
- package/build/esm/editor-v2/context/messagesContext/messagesContext.d.ts +13 -0
- package/build/esm/editor-v2/context/messagesContext/messagesContext.js +8 -0
- package/build/esm/editor-v2/context/messagesContext/messagesProvider.d.ts +2 -0
- package/build/esm/editor-v2/context/messagesContext/messagesProvider.js +30 -0
- package/build/esm/editor-v2/context/messagesContext/store.d.ts +22 -0
- package/build/esm/editor-v2/context/messagesContext/store.js +14 -0
- package/build/esm/editor-v2/icons/Tablet.d.ts +2 -0
- package/build/esm/editor-v2/icons/Tablet.js +4 -0
- package/build/esm/editor-v2/index.d.ts +2 -0
- package/build/esm/editor-v2/index.js +2 -0
- package/build/esm/editor-v2/styles/mixins.css +0 -0
- package/build/esm/editor-v2/styles/root.css +9 -0
- package/build/esm/editor-v2/styles/variables.css +0 -0
- package/build/esm/editor-v2/utils/code.d.ts +6 -0
- package/build/esm/editor-v2/utils/code.js +6 -0
- package/build/esm/editor-v2/utils/index.d.ts +17 -0
- package/build/esm/editor-v2/utils/index.js +134 -0
- package/build/esm/editor-v2/utils/store.d.ts +14 -0
- package/build/esm/editor-v2/utils/store.js +5 -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/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 +15 -3
- 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,23 @@
|
|
|
1
|
+
import { ConfigInput } from '../../../common/types';
|
|
2
|
+
import { ItemConfig } from '../index';
|
|
3
|
+
import { ActionTypes } from './codes';
|
|
4
|
+
import { UnknownAction } from './index';
|
|
5
|
+
export interface IframeReadyAction extends UnknownAction {
|
|
6
|
+
type: ActionTypes.IframeReady;
|
|
7
|
+
payload: {
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface EditorReadyAction extends UnknownAction {
|
|
12
|
+
type: ActionTypes.EditorReady;
|
|
13
|
+
payload: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface BlocksConfigsAction extends UnknownAction {
|
|
16
|
+
type: ActionTypes.BlocksConfigs;
|
|
17
|
+
payload: {
|
|
18
|
+
blocks: ItemConfig[];
|
|
19
|
+
subBlocks: ItemConfig[];
|
|
20
|
+
global: ConfigInput[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export type InitialActions = BlocksConfigsAction | IframeReadyAction | EditorReadyAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionTypes } from './codes';
|
|
2
|
+
import { UnknownAction } from './index';
|
|
3
|
+
export interface InsertBlockAction extends UnknownAction {
|
|
4
|
+
type: ActionTypes.InsertBlock;
|
|
5
|
+
payload: {
|
|
6
|
+
path: number[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface InsertModeEnableAction extends UnknownAction {
|
|
10
|
+
type: ActionTypes.InsertModeEnable;
|
|
11
|
+
payload: {
|
|
12
|
+
blockType: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface InsertModeDisableAction extends UnknownAction {
|
|
16
|
+
type: ActionTypes.InsertModeDisable;
|
|
17
|
+
payload: undefined;
|
|
18
|
+
}
|
|
19
|
+
export type InsertActions = InsertBlockAction | InsertModeEnableAction | InsertModeDisableAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PageContent } from '../../../models';
|
|
2
|
+
import { ActionTypes } from './codes';
|
|
3
|
+
import { UnknownAction } from './index';
|
|
4
|
+
export interface UpdateConfigsAction extends UnknownAction {
|
|
5
|
+
type: ActionTypes.UpdateConfigs;
|
|
6
|
+
payload: {
|
|
7
|
+
content: PageContent;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface SetHeightAction extends UnknownAction {
|
|
11
|
+
type: ActionTypes.SetHeight;
|
|
12
|
+
payload: {
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export type OtherActions = UpdateConfigsAction | SetHeightAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActionTypes } from './codes';
|
|
2
|
+
import { UnknownAction } from './index';
|
|
3
|
+
export interface OverlayModeOnMoveAction extends UnknownAction {
|
|
4
|
+
type: ActionTypes.OverlayModeOnMove;
|
|
5
|
+
payload: {
|
|
6
|
+
block?: {
|
|
7
|
+
rect: DOMRect;
|
|
8
|
+
cursorPosition: 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
};
|
|
10
|
+
cursor: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export type OverlayActions = OverlayModeOnMoveAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionTypes } from './codes';
|
|
2
|
+
import { UnknownAction } from './index';
|
|
3
|
+
export interface ReorderModeEnableAction extends UnknownAction {
|
|
4
|
+
type: ActionTypes.ReorderModeEnable;
|
|
5
|
+
payload: {
|
|
6
|
+
path: number[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface ReorderModeDisableAction extends UnknownAction {
|
|
10
|
+
type: ActionTypes.ReorderModeDisable;
|
|
11
|
+
payload: undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface ReorderBlocksAction extends UnknownAction {
|
|
14
|
+
type: ActionTypes.ReorderBlocks;
|
|
15
|
+
payload: {
|
|
16
|
+
path: number[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export type ReorderActions = ReorderBlocksAction | ReorderModeEnableAction | ReorderModeDisableAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActionTypes } from './codes';
|
|
2
|
+
import { UnknownAction } from './index';
|
|
3
|
+
export interface SelectBlockAction extends UnknownAction {
|
|
4
|
+
type: ActionTypes.SelectBlock;
|
|
5
|
+
payload: {
|
|
6
|
+
path: number[];
|
|
7
|
+
rect: DOMRect;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateSelectedBlockRectAction extends UnknownAction {
|
|
11
|
+
type: ActionTypes.UpdateSelectedBlockRect;
|
|
12
|
+
payload: {
|
|
13
|
+
rect: DOMRect;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export type SelectActions = SelectBlockAction | UpdateSelectedBlockRectAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from './actions';
|
|
2
|
+
import { BlockConfig } from './forms';
|
|
3
|
+
import { Meta } from './messages';
|
|
4
|
+
export interface ItemConfig {
|
|
5
|
+
type: string;
|
|
6
|
+
schema: BlockConfig;
|
|
7
|
+
}
|
|
8
|
+
export interface WithStoreReducer {
|
|
9
|
+
reducer: (action: Action, meta: Meta) => void;
|
|
10
|
+
}
|
|
11
|
+
export type Subscriber<A extends Action = Action> = {
|
|
12
|
+
action: A['type'];
|
|
13
|
+
handler: (payload: A['payload'], meta: Meta) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export interface BlockConfig {
|
|
2
|
+
name: string;
|
|
3
|
+
inputs: Array<ConfigInput>;
|
|
4
|
+
default?: object;
|
|
5
|
+
}
|
|
6
|
+
export interface TextInput {
|
|
7
|
+
type: 'text';
|
|
8
|
+
name: string;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BooleanInput {
|
|
12
|
+
type: 'boolean';
|
|
13
|
+
name: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}
|
|
16
|
+
export interface NumberInput {
|
|
17
|
+
type: 'number';
|
|
18
|
+
name: string;
|
|
19
|
+
title: string;
|
|
20
|
+
}
|
|
21
|
+
export interface TextAreaInput {
|
|
22
|
+
type: 'textarea';
|
|
23
|
+
name: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}
|
|
26
|
+
export interface SelectBaseInput {
|
|
27
|
+
type: 'select';
|
|
28
|
+
name: string;
|
|
29
|
+
title: string;
|
|
30
|
+
view: 'select' | 'radiobutton';
|
|
31
|
+
mode: 'single' | 'multiple';
|
|
32
|
+
enum: Array<{
|
|
33
|
+
content: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
export interface SelectSingleInput extends SelectBaseInput {
|
|
38
|
+
type: 'select';
|
|
39
|
+
name: string;
|
|
40
|
+
title: string;
|
|
41
|
+
view: 'select' | 'radiobutton';
|
|
42
|
+
mode: 'single';
|
|
43
|
+
enum: Array<{
|
|
44
|
+
content: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
export interface SelectMultipleInput extends SelectBaseInput {
|
|
49
|
+
type: 'select';
|
|
50
|
+
name: string;
|
|
51
|
+
title: string;
|
|
52
|
+
view: 'select';
|
|
53
|
+
mode: 'multiple';
|
|
54
|
+
enum: Array<{
|
|
55
|
+
content: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
export interface ObjectInput {
|
|
60
|
+
type: 'object';
|
|
61
|
+
name: string;
|
|
62
|
+
title: string;
|
|
63
|
+
properties: Array<ConfigInput>;
|
|
64
|
+
}
|
|
65
|
+
export interface ArrayBaseInput {
|
|
66
|
+
type: 'array';
|
|
67
|
+
arrayType: 'object' | 'text';
|
|
68
|
+
name: string;
|
|
69
|
+
title: string;
|
|
70
|
+
buttonText: string;
|
|
71
|
+
}
|
|
72
|
+
export interface ArrayTextInput extends ArrayBaseInput {
|
|
73
|
+
arrayType: 'text';
|
|
74
|
+
}
|
|
75
|
+
export interface ArrayObjectInput extends ArrayBaseInput {
|
|
76
|
+
arrayType: 'object';
|
|
77
|
+
properties: Array<ConfigInput>;
|
|
78
|
+
}
|
|
79
|
+
export interface OneOfInput {
|
|
80
|
+
type: 'oneOf';
|
|
81
|
+
name: string;
|
|
82
|
+
key?: string;
|
|
83
|
+
title: string;
|
|
84
|
+
options: {
|
|
85
|
+
value: string;
|
|
86
|
+
title: string;
|
|
87
|
+
properties: Array<ConfigInput>;
|
|
88
|
+
}[];
|
|
89
|
+
}
|
|
90
|
+
export interface GeneralProps {
|
|
91
|
+
showIf?: string;
|
|
92
|
+
}
|
|
93
|
+
export type ConfigInput = (TextInput | BooleanInput | NumberInput | TextAreaInput | SelectSingleInput | SelectMultipleInput | ObjectInput | ArrayTextInput | ArrayObjectInput | OneOfInput) & GeneralProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from './actions';
|
|
2
|
+
export interface SendOptions {
|
|
3
|
+
direction?: MetaSource | 'both';
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface PostMessageArgs {
|
|
7
|
+
action: Action;
|
|
8
|
+
debug: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type SubscriptionFunc = <A extends Action>(type: A['type'], payloadCallback: (payload: A['payload'], meta: Meta) => void) => void;
|
|
11
|
+
export type MetaSource = 'pc' | 'editor';
|
|
12
|
+
export interface Meta {
|
|
13
|
+
source: MetaSource;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,80 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
const devices = ['desktop', 'tablet', 'mobile'];
|
|
3
|
+
const imageBaseInputs = [
|
|
4
|
+
{
|
|
5
|
+
type: 'text',
|
|
6
|
+
name: 'alt',
|
|
7
|
+
title: 'Alternative',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
name: 'disableCompress',
|
|
12
|
+
title: 'Disable Compress',
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
const imageStyleInputs = [
|
|
16
|
+
{
|
|
17
|
+
type: 'text',
|
|
18
|
+
name: 'style.backgroundColor',
|
|
19
|
+
title: 'Background Color',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'text',
|
|
23
|
+
name: 'style.height',
|
|
24
|
+
title: 'Height',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: 'text',
|
|
28
|
+
name: 'style.width',
|
|
29
|
+
title: 'Width',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'text',
|
|
33
|
+
name: 'style.color',
|
|
34
|
+
title: 'Color',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
const devicesInputs = devices.map((device) => ({
|
|
38
|
+
type: 'text',
|
|
39
|
+
title: _.capitalize(device),
|
|
40
|
+
name: `${device}`,
|
|
41
|
+
}));
|
|
42
|
+
export const imageInputs = [
|
|
43
|
+
{
|
|
44
|
+
type: 'oneOf',
|
|
45
|
+
name: '',
|
|
46
|
+
key: 'imageType',
|
|
47
|
+
title: 'Image Type',
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
title: 'Simple',
|
|
51
|
+
value: 'simple',
|
|
52
|
+
properties: [
|
|
53
|
+
{
|
|
54
|
+
type: 'text',
|
|
55
|
+
name: '',
|
|
56
|
+
title: 'Image URL',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: 'Complex',
|
|
62
|
+
value: 'complex',
|
|
63
|
+
properties: [
|
|
64
|
+
{
|
|
65
|
+
type: 'text',
|
|
66
|
+
name: 'src',
|
|
67
|
+
title: 'Source',
|
|
68
|
+
},
|
|
69
|
+
...imageStyleInputs,
|
|
70
|
+
...imageBaseInputs,
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: 'Device Based',
|
|
75
|
+
value: 'deviseBased',
|
|
76
|
+
properties: [...devicesInputs, ...imageBaseInputs],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import './ChildrenWrap.css';
|
|
3
|
+
export interface ChildrenWrapProps extends PropsWithChildren {
|
|
4
|
+
checkChildren?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const ChildrenWrap: (props: ChildrenWrapProps) => JSX.Element;
|
|
7
|
+
export default ChildrenWrap;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import useEditorBlockMouseEvents from '../../../containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents';
|
|
3
|
+
import { BlockIdContext } from '../../../context/blockIdContext';
|
|
4
|
+
import { block } from '../../../utils';
|
|
5
|
+
import './ChildrenWrap.css';
|
|
6
|
+
const b = block('children-wrap');
|
|
7
|
+
const ChildrenWrap = (props) => {
|
|
8
|
+
const { children } = props;
|
|
9
|
+
const parentBlockId = useContext(BlockIdContext);
|
|
10
|
+
const { onMouseUp, onMouseMove } = useEditorBlockMouseEvents([parentBlockId, 0]);
|
|
11
|
+
return (React.createElement("div", { className: b(), onMouseMove: onMouseMove, onMouseUp: onMouseUp }, children));
|
|
12
|
+
};
|
|
13
|
+
export default ChildrenWrap;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import useEditorBlockMouseEvents from '../../../containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents';
|
|
3
|
+
import { BlockIdContext } from '../../../context/blockIdContext';
|
|
4
|
+
import { block } from '../../../utils';
|
|
5
|
+
import './ItemWrap.css';
|
|
6
|
+
const b = block('item-wrap');
|
|
7
|
+
const ItemWrap = (props) => {
|
|
8
|
+
const { children, index } = props;
|
|
9
|
+
const parentBlockId = useContext(BlockIdContext);
|
|
10
|
+
const adminBlockMouseEvents = useEditorBlockMouseEvents([parentBlockId, index]);
|
|
11
|
+
return (React.createElement("div", Object.assign({ className: b() }, adminBlockMouseEvents), children));
|
|
12
|
+
};
|
|
13
|
+
export default ItemWrap;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConfigInput } from './common/types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use blockDataMap
|
|
5
|
+
**/
|
|
1
6
|
export declare const blockMap: {
|
|
2
7
|
"slider-block": (props: import("./models").WithChildren<import("./blocks/Slider/Slider").SliderProps>) => JSX.Element;
|
|
3
8
|
"extended-features-block": ({ title, description, items, colSizes, animated, }: import("./models").ExtendedFeaturesProps) => JSX.Element;
|
|
@@ -12,13 +17,17 @@ export declare const blockMap: {
|
|
|
12
17
|
"header-block": (props: import("./models").WithChildren<import("./models").HeaderBlockProps & import("./models").ClassNameProps>) => JSX.Element;
|
|
13
18
|
"icons-block": ({ title, description, size, colSizes, items }: import("./models").IconsBlockProps) => JSX.Element;
|
|
14
19
|
"header-slider-block": ({ items, arrows, ...props }: import("./models").HeaderSliderBlockProps) => JSX.Element;
|
|
15
|
-
"card-layout-block":
|
|
20
|
+
"card-layout-block": React.FC<import("./blocks/CardLayout/CardLayout").CardLayoutBlockProps>;
|
|
16
21
|
"content-layout-block": (props: import("./models").ContentLayoutBlockProps) => JSX.Element;
|
|
17
22
|
"share-block": ({ items, title }: import("./models").ShareBlockProps) => JSX.Element;
|
|
18
23
|
"map-block": ({ map, border, disableShadow, ...props }: import("./models").MapBlockProps) => JSX.Element;
|
|
19
|
-
"filter-block":
|
|
20
|
-
"form-block":
|
|
24
|
+
"filter-block": React.FC<import("./models").FilterBlockProps>;
|
|
25
|
+
"form-block": React.FC<import("./models").FormBlockProps>;
|
|
26
|
+
"test-editor-block": (props: import("./blocks/TestEditorBlock/TestEditorBlock").TestEditorBlockProps) => JSX.Element;
|
|
21
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated use blockDataMap
|
|
30
|
+
**/
|
|
22
31
|
export declare const subBlockMap: {
|
|
23
32
|
divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
|
|
24
33
|
"price-detailed": (props: import("./models").PriceDetailedProps) => JSX.Element;
|
|
@@ -33,9 +42,18 @@ export declare const subBlockMap: {
|
|
|
33
42
|
"image-card": (props: import("./models").ImageCardProps) => JSX.Element;
|
|
34
43
|
};
|
|
35
44
|
export declare const navItemMap: {
|
|
36
|
-
button:
|
|
37
|
-
social:
|
|
45
|
+
button: React.FC<Pick<import("./navigation/models").NavigationItemProps, "className"> & import("./models").ButtonProps>;
|
|
46
|
+
social: React.FC<import("./navigation/components/SocialIcon/SocialIcon").NavigationSocialItemOwnProps>;
|
|
38
47
|
dropdown: ({ text, icon, className, iconSize, hidePopup, items, isActive, ...props }: import("./navigation/models").NavigationItemProps & import("./models").NavigationDropdownItem) => JSX.Element;
|
|
39
|
-
link:
|
|
48
|
+
link: React.FC<import("./navigation/models").NavigationItemProps & import("./models").NavigationLinkItem>;
|
|
40
49
|
"github-button": ({ text, url, className, label, size, icon, urlTitle, }: import("./navigation/models").NavigationItemProps & import("./models").NavigationGithubButton) => JSX.Element;
|
|
41
50
|
};
|
|
51
|
+
export interface BlockData {
|
|
52
|
+
component: React.ComponentType<any>;
|
|
53
|
+
schema: {
|
|
54
|
+
name: string;
|
|
55
|
+
inputs: ConfigInput[];
|
|
56
|
+
default?: object;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export declare const blockDataMap: Record<string, BlockData>;
|
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
import { BannerBlock, CardLayoutBlock, CompaniesBlock, ContentLayoutBlock, ExtendedFeaturesBlock, FilterBlock, FormBlock, HeaderBlock, HeaderSliderBlock, IconsBlock, InfoBlock, MapBlock, MediaBlock, PromoFeaturesBlock, QuestionsBlock, ShareBlock, SliderBlock, TableBlock, TabsBlock, } from './blocks';
|
|
2
|
+
import BannerBlockConfig from './blocks/Banner';
|
|
3
|
+
import CardLayoutBlockConfig from './blocks/CardLayout';
|
|
4
|
+
import CompaniesBlockConfig from './blocks/Companies';
|
|
5
|
+
import ContentLayoutBlockConfig from './blocks/ContentLayout';
|
|
6
|
+
import ExtendedFeaturesBlockConfig from './blocks/ExtendedFeatures';
|
|
7
|
+
import FilterBlockConfig from './blocks/FilterBlock';
|
|
8
|
+
import FormBlockConfig from './blocks/Form';
|
|
9
|
+
import HeaderBlockConfig from './blocks/Header';
|
|
10
|
+
import HeaderSliderBlockConfig from './blocks/HeaderSlider';
|
|
11
|
+
import IconsBlockConfig from './blocks/Icons';
|
|
12
|
+
import InfoBlockConfig from './blocks/Info';
|
|
13
|
+
import MapBlockConfig from './blocks/Map';
|
|
14
|
+
import MediaBlockConfig from './blocks/Media';
|
|
15
|
+
import PromoFeaturesBlockConfig from './blocks/PromoFeaturesBlock';
|
|
16
|
+
import QuestionsBlockConfig from './blocks/Questions';
|
|
17
|
+
import ShareBlockConfig from './blocks/Share';
|
|
18
|
+
import SliderBlockConfig from './blocks/Slider';
|
|
19
|
+
import TableBlockConfig from './blocks/Table';
|
|
20
|
+
import TabsBlockConfig from './blocks/Tabs';
|
|
21
|
+
import TestEditorBlockConfig from './blocks/TestEditorBlock';
|
|
22
|
+
import TestEditorBlock from './blocks/TestEditorBlock/TestEditorBlock';
|
|
2
23
|
import { BlockType, NavigationItemType, SubBlockType } from './models';
|
|
3
24
|
import { GithubButton, NavigationButton, NavigationDropdown, NavigationLink, } from './navigation/components/NavigationItem';
|
|
4
25
|
import SocialIcon from './navigation/components/SocialIcon/SocialIcon';
|
|
5
26
|
import { BackgroundCard, BannerCard, BasicCard, Content, Divider, ImageCard, LayoutItem, MediaCard, PriceCard, PriceDetailed, Quote, } from './sub-blocks';
|
|
27
|
+
import BackgroundCardConfig from './sub-blocks/BackgroundCard';
|
|
28
|
+
import BannerCardConfig from './sub-blocks/BannerCard';
|
|
29
|
+
import BasicCardConfig from './sub-blocks/BasicCard';
|
|
30
|
+
import ContentConfig from './sub-blocks/Content';
|
|
31
|
+
import DividerConfig from './sub-blocks/Divider';
|
|
32
|
+
import ImageCardConfig from './sub-blocks/ImageCard';
|
|
33
|
+
import LayoutItemConfig from './sub-blocks/LayoutItem/form';
|
|
34
|
+
import MediaCardConfig from './sub-blocks/MediaCard';
|
|
35
|
+
import PriceCardConfig from './sub-blocks/PriceCard';
|
|
36
|
+
import PriceDetailedConfig from './sub-blocks/PriceDetailed';
|
|
37
|
+
import QuoteConfig from './sub-blocks/Quote';
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use blockDataMap
|
|
40
|
+
**/
|
|
6
41
|
export const blockMap = {
|
|
7
42
|
[BlockType.SliderBlock]: SliderBlock,
|
|
8
43
|
[BlockType.ExtendedFeaturesBlock]: ExtendedFeaturesBlock,
|
|
@@ -23,7 +58,11 @@ export const blockMap = {
|
|
|
23
58
|
[BlockType.MapBlock]: MapBlock,
|
|
24
59
|
[BlockType.FilterBlock]: FilterBlock,
|
|
25
60
|
[BlockType.FormBlock]: FormBlock,
|
|
61
|
+
[BlockType.TestEditorBlock]: TestEditorBlock,
|
|
26
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated use blockDataMap
|
|
65
|
+
**/
|
|
27
66
|
export const subBlockMap = {
|
|
28
67
|
[SubBlockType.Divider]: Divider,
|
|
29
68
|
[SubBlockType.PriceDetailed]: PriceDetailed,
|
|
@@ -44,3 +83,36 @@ export const navItemMap = {
|
|
|
44
83
|
[NavigationItemType.Link]: NavigationLink,
|
|
45
84
|
[NavigationItemType.GithubButton]: GithubButton,
|
|
46
85
|
};
|
|
86
|
+
export const blockDataMap = {
|
|
87
|
+
[BlockType.ExtendedFeaturesBlock]: ExtendedFeaturesBlockConfig,
|
|
88
|
+
[BlockType.PromoFeaturesBlock]: PromoFeaturesBlockConfig,
|
|
89
|
+
[BlockType.QuestionsBlock]: QuestionsBlockConfig,
|
|
90
|
+
[BlockType.BannerBlock]: BannerBlockConfig,
|
|
91
|
+
[BlockType.CompaniesBlock]: CompaniesBlockConfig,
|
|
92
|
+
[BlockType.MediaBlock]: MediaBlockConfig,
|
|
93
|
+
[BlockType.InfoBlock]: InfoBlockConfig,
|
|
94
|
+
[BlockType.TableBlock]: TableBlockConfig,
|
|
95
|
+
[BlockType.TabsBlock]: TabsBlockConfig,
|
|
96
|
+
[BlockType.HeaderBlock]: HeaderBlockConfig,
|
|
97
|
+
[BlockType.IconsBlock]: IconsBlockConfig,
|
|
98
|
+
[BlockType.HeaderSliderBlock]: HeaderSliderBlockConfig,
|
|
99
|
+
[BlockType.CardLayoutBlock]: CardLayoutBlockConfig,
|
|
100
|
+
[BlockType.ContentLayoutBlock]: ContentLayoutBlockConfig,
|
|
101
|
+
[BlockType.ShareBlock]: ShareBlockConfig,
|
|
102
|
+
[BlockType.MapBlock]: MapBlockConfig,
|
|
103
|
+
[BlockType.FilterBlock]: FilterBlockConfig,
|
|
104
|
+
[BlockType.FormBlock]: FormBlockConfig,
|
|
105
|
+
[BlockType.TestEditorBlock]: TestEditorBlockConfig,
|
|
106
|
+
[BlockType.SliderBlock]: SliderBlockConfig,
|
|
107
|
+
[SubBlockType.Divider]: DividerConfig,
|
|
108
|
+
[SubBlockType.PriceDetailed]: PriceDetailedConfig,
|
|
109
|
+
[SubBlockType.MediaCard]: MediaCardConfig,
|
|
110
|
+
[SubBlockType.BannerCard]: BannerCardConfig,
|
|
111
|
+
[SubBlockType.LayoutItem]: LayoutItemConfig,
|
|
112
|
+
[SubBlockType.BackgroundCard]: BackgroundCardConfig,
|
|
113
|
+
[SubBlockType.BasicCard]: BasicCardConfig,
|
|
114
|
+
[SubBlockType.Content]: ContentConfig,
|
|
115
|
+
[SubBlockType.Quote]: QuoteConfig,
|
|
116
|
+
[SubBlockType.PriceCard]: PriceCardConfig,
|
|
117
|
+
[SubBlockType.ImageCard]: ImageCardConfig,
|
|
118
|
+
};
|