@gravity-ui/page-constructor 6.3.1 → 6.3.2-alpha.2
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 +2 -1
- package/build/cjs/blocks/Banner/Banner.js.map +1 -1
- package/build/cjs/blocks/Banner/index.d.ts +3 -0
- package/build/cjs/blocks/Banner/index.js +24 -0
- package/build/cjs/blocks/Banner/index.js.map +1 -0
- package/build/cjs/blocks/CardLayout/CardLayout.css +1 -0
- package/build/cjs/blocks/CardLayout/CardLayout.js +4 -3
- package/build/cjs/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/cjs/blocks/CardLayout/index.d.ts +5 -0
- package/build/cjs/blocks/CardLayout/index.js +186 -0
- package/build/cjs/blocks/CardLayout/index.js.map +1 -0
- package/build/cjs/blocks/Companies/Companies.js +2 -1
- package/build/cjs/blocks/Companies/Companies.js.map +1 -1
- package/build/cjs/blocks/Companies/index.d.ts +3 -0
- package/build/cjs/blocks/Companies/index.js +20 -0
- package/build/cjs/blocks/Companies/index.js.map +1 -0
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -1
- package/build/cjs/blocks/ContentLayout/ContentLayout.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/index.d.ts +41 -0
- package/build/cjs/blocks/ContentLayout/index.js +81 -0
- package/build/cjs/blocks/ContentLayout/index.js.map +1 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +1 -0
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +13 -12
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/index.d.ts +58 -0
- package/build/cjs/blocks/ExtendedFeatures/index.js +77 -0
- package/build/cjs/blocks/ExtendedFeatures/index.js.map +1 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +1 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +5 -5
- package/build/cjs/blocks/FilterBlock/FilterBlock.js.map +1 -1
- package/build/cjs/blocks/FilterBlock/index.d.ts +29 -0
- package/build/cjs/blocks/FilterBlock/index.js +98 -0
- package/build/cjs/blocks/FilterBlock/index.js.map +1 -0
- package/build/cjs/blocks/Form/index.d.ts +13 -0
- package/build/cjs/blocks/Form/index.js +20 -0
- package/build/cjs/blocks/Form/index.js.map +1 -0
- package/build/cjs/blocks/Header/dynamic-form.d.ts +2 -0
- package/build/cjs/blocks/Header/dynamic-form.js +731 -0
- package/build/cjs/blocks/Header/dynamic-form.js.map +1 -0
- package/build/cjs/blocks/Header/index.d.ts +20 -0
- package/build/cjs/blocks/Header/index.js +34 -0
- package/build/cjs/blocks/Header/index.js.map +1 -0
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +2 -1
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/index.d.ts +32 -0
- package/build/cjs/blocks/HeaderSlider/index.js +40 -0
- package/build/cjs/blocks/HeaderSlider/index.js.map +1 -0
- package/build/cjs/blocks/Icons/Icons.js +8 -6
- package/build/cjs/blocks/Icons/Icons.js.map +1 -1
- package/build/cjs/blocks/Icons/index.d.ts +20 -0
- package/build/cjs/blocks/Icons/index.js +64 -0
- package/build/cjs/blocks/Icons/index.js.map +1 -0
- package/build/cjs/blocks/Info/index.d.ts +22 -0
- package/build/cjs/blocks/Info/index.js +43 -0
- package/build/cjs/blocks/Info/index.js.map +1 -0
- package/build/cjs/blocks/Map/index.d.ts +12 -0
- package/build/cjs/blocks/Map/index.js +19 -0
- package/build/cjs/blocks/Map/index.js.map +1 -0
- package/build/cjs/blocks/Media/index.d.ts +39 -0
- package/build/cjs/blocks/Media/index.js +57 -0
- package/build/cjs/blocks/Media/index.js.map +1 -0
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +15 -13
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +22 -0
- package/build/cjs/blocks/PromoFeaturesBlock/index.js +49 -0
- package/build/cjs/blocks/PromoFeaturesBlock/index.js.map +1 -0
- package/build/cjs/blocks/Questions/Questions.js +6 -5
- package/build/cjs/blocks/Questions/Questions.js.map +1 -1
- package/build/cjs/blocks/Questions/index.d.ts +30 -0
- package/build/cjs/blocks/Questions/index.js +49 -0
- package/build/cjs/blocks/Questions/index.js.map +1 -0
- package/build/cjs/blocks/Share/Share.js +11 -10
- package/build/cjs/blocks/Share/Share.js.map +1 -1
- package/build/cjs/blocks/Share/index.d.ts +13 -0
- package/build/cjs/blocks/Share/index.js +20 -0
- package/build/cjs/blocks/Share/index.js.map +1 -0
- package/build/cjs/blocks/Slider/Slider.js +12 -10
- package/build/cjs/blocks/Slider/Slider.js.map +1 -1
- package/build/cjs/blocks/Slider/dynamic-form.d.ts +3 -0
- package/build/cjs/blocks/Slider/dynamic-form.js +226 -0
- package/build/cjs/blocks/Slider/dynamic-form.js.map +1 -0
- package/build/cjs/blocks/Slider/index.d.ts +28 -0
- package/build/cjs/blocks/Slider/index.js +47 -0
- package/build/cjs/blocks/Slider/index.js.map +1 -0
- package/build/cjs/blocks/Table/index.d.ts +18 -0
- package/build/cjs/blocks/Table/index.js +32 -0
- package/build/cjs/blocks/Table/index.js.map +1 -0
- package/build/cjs/blocks/Table/schema.d.ts +1 -0
- package/build/cjs/blocks/Table/schema.js +1 -0
- package/build/cjs/blocks/Table/schema.js.map +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +4 -4
- package/build/cjs/blocks/Tabs/Tabs.js.map +1 -1
- package/build/cjs/blocks/Tabs/index.d.ts +17 -0
- package/build/cjs/blocks/Tabs/index.js +31 -0
- package/build/cjs/blocks/Tabs/index.js.map +1 -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/TestEditorBlock.js.map +1 -0
- package/build/cjs/blocks/TestEditorBlock/form.d.ts +3 -0
- package/build/cjs/blocks/TestEditorBlock/form.js +91 -0
- package/build/cjs/blocks/TestEditorBlock/form.js.map +1 -0
- package/build/cjs/blocks/TestEditorBlock/index.d.ts +11 -0
- package/build/cjs/blocks/TestEditorBlock/index.js +18 -0
- package/build/cjs/blocks/TestEditorBlock/index.js.map +1 -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 +85 -0
- package/build/cjs/components/Image/dynamic-form.js.map +1 -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 +12 -0
- package/build/cjs/components/editor/ItemWrap/ItemWrap.js.map +1 -0
- package/build/cjs/constructor-items.d.ts +22 -6
- package/build/cjs/constructor-items.js +80 -6
- package/build/cjs/constructor-items.js.map +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +18 -10
- package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
- package/build/cjs/containers/PageConstructor/Provider.js +2 -0
- package/build/cjs/containers/PageConstructor/Provider.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +3 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
- package/build/cjs/context/blockIdContext/blockIdContext.d.ts +2 -2
- package/build/cjs/context/blockIdContext/blockIdContext.js +1 -1
- package/build/cjs/context/blockIdContext/blockIdContext.js.map +1 -1
- package/build/cjs/context/editorStoreContext/PCEditorStoreContext.d.ts +7 -0
- package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js +10 -0
- package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js.map +1 -0
- package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.d.ts +5 -0
- package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js +34 -0
- package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -0
- package/build/cjs/context/editorStoreContext/index.d.ts +2 -0
- package/build/cjs/context/editorStoreContext/index.js +6 -0
- package/build/cjs/context/editorStoreContext/index.js.map +1 -0
- package/build/cjs/editor/components/CodeEditor/CodeEditor.d.ts +1 -2
- package/build/cjs/editor/components/CodeEditor/CodeEditor.js +5 -6
- package/build/cjs/editor/components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/cjs/editor/data/templates/test-editor-block.json +18 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +9 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +115 -0
- package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +89 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +12 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +27 -0
- package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +37 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +11 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +68 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +22 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +8 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +13 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +16 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +12 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +9 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +35 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +11 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +14 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +13 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +13 -0
- package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
- package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +3 -0
- package/build/cjs/editor-v2/components/DynamicForm/utils.js +23 -0
- package/build/cjs/editor-v2/components/DynamicForm/utils.js.map +1 -0
- package/build/cjs/editor-v2/components/Panels/Panels.css +37 -0
- package/build/cjs/editor-v2/components/Panels/Panels.d.ts +8 -0
- package/build/cjs/editor-v2/components/Panels/Panels.js +28 -0
- package/build/cjs/editor-v2/components/Panels/Panels.js.map +1 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +24 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +10 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +13 -0
- package/build/cjs/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
- package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.css +29 -0
- package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.d.ts +6 -0
- package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.js +17 -0
- package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.js.map +1 -0
- package/build/cjs/editor-v2/components/Tabs/Tabs.css +26 -0
- package/build/cjs/editor-v2/components/Tabs/Tabs.d.ts +13 -0
- package/build/cjs/editor-v2/components/Tabs/Tabs.js +32 -0
- package/build/cjs/editor-v2/components/Tabs/Tabs.js.map +1 -0
- package/build/cjs/editor-v2/constants.d.ts +1 -0
- package/build/cjs/editor-v2/constants.js +5 -0
- package/build/cjs/editor-v2/constants.js.map +1 -0
- package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.css +35 -0
- package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.d.ts +4 -0
- package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +58 -0
- package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
- package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.css +33 -0
- package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.d.ts +5 -0
- package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.js +28 -0
- package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.js.map +1 -0
- package/build/cjs/editor-v2/containers/BlocksList/BlocksList.css +65 -0
- package/build/cjs/editor-v2/containers/BlocksList/BlocksList.d.ts +2 -0
- package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js +43 -0
- package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.css +51 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +21 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.js +40 -0
- package/build/cjs/editor-v2/containers/Editor/Editor.js.map +1 -0
- package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.css +24 -0
- package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +5 -0
- package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js +17 -0
- package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
- package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.css +62 -0
- package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +7 -0
- package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js +34 -0
- package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
- package/build/cjs/editor-v2/containers/Overlay/Overlay.css +60 -0
- package/build/cjs/editor-v2/containers/Overlay/Overlay.d.ts +6 -0
- package/build/cjs/editor-v2/containers/Overlay/Overlay.js +90 -0
- package/build/cjs/editor-v2/containers/Overlay/Overlay.js.map +1 -0
- package/build/cjs/editor-v2/containers/Source/Source.css +27 -0
- package/build/cjs/editor-v2/containers/Source/Source.d.ts +2 -0
- package/build/cjs/editor-v2/containers/Source/Source.js +28 -0
- package/build/cjs/editor-v2/containers/Source/Source.js.map +1 -0
- package/build/cjs/editor-v2/containers/SourceCode/SourceCode.css +50 -0
- package/build/cjs/editor-v2/containers/SourceCode/SourceCode.d.ts +6 -0
- package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js +41 -0
- package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
- package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +3 -0
- package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +7 -0
- package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +18 -0
- package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
- package/build/cjs/editor-v2/containers/Tree/DragContext.css +38 -0
- package/build/cjs/editor-v2/containers/Tree/DragContext.d.ts +14 -0
- package/build/cjs/editor-v2/containers/Tree/DragContext.js +49 -0
- package/build/cjs/editor-v2/containers/Tree/DragContext.js.map +1 -0
- package/build/cjs/editor-v2/containers/Tree/Tree.css +23 -0
- package/build/cjs/editor-v2/containers/Tree/Tree.d.ts +2 -0
- package/build/cjs/editor-v2/containers/Tree/Tree.js +36 -0
- package/build/cjs/editor-v2/containers/Tree/Tree.js.map +1 -0
- package/build/cjs/editor-v2/containers/Tree/TreeContent.css +28 -0
- package/build/cjs/editor-v2/containers/Tree/TreeContent.d.ts +16 -0
- package/build/cjs/editor-v2/containers/Tree/TreeContent.js +61 -0
- package/build/cjs/editor-v2/containers/Tree/TreeContent.js.map +1 -0
- package/build/cjs/editor-v2/containers/Tree/TreeItem.css +66 -0
- package/build/cjs/editor-v2/containers/Tree/TreeItem.d.ts +13 -0
- package/build/cjs/editor-v2/containers/Tree/TreeItem.js +144 -0
- package/build/cjs/editor-v2/containers/Tree/TreeItem.js.map +1 -0
- package/build/cjs/editor-v2/containers/Tree/index.d.ts +4 -0
- package/build/cjs/editor-v2/containers/Tree/index.js +10 -0
- package/build/cjs/editor-v2/containers/Tree/index.js.map +1 -0
- package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.css +23 -0
- package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +3 -0
- package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js +54 -0
- package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
- package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
- package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js +10 -0
- package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
- package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
- package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js +35 -0
- package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
- package/build/cjs/editor-v2/context/editorStore/index.d.ts +2 -0
- package/build/cjs/editor-v2/context/editorStore/index.js +6 -0
- package/build/cjs/editor-v2/context/editorStore/index.js.map +1 -0
- package/build/cjs/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
- package/build/cjs/editor-v2/context/iframeContext/IframeContext.js +14 -0
- package/build/cjs/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
- package/build/cjs/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
- package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js +21 -0
- package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
- package/build/cjs/editor-v2/context/iframeContext/index.d.ts +2 -0
- package/build/cjs/editor-v2/context/iframeContext/index.js +6 -0
- package/build/cjs/editor-v2/context/iframeContext/index.js.map +1 -0
- package/build/cjs/editor-v2/hooks/useEditorTabs.d.ts +16 -0
- package/build/cjs/editor-v2/hooks/useEditorTabs.js +77 -0
- package/build/cjs/editor-v2/hooks/useEditorTabs.js.map +1 -0
- package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +2 -0
- package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +31 -0
- package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
- package/build/cjs/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
- package/build/cjs/editor-v2/hooks/useMainEditorStore.js +13 -0
- package/build/cjs/editor-v2/hooks/useMainEditorStore.js.map +1 -0
- package/build/cjs/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
- package/build/cjs/editor-v2/hooks/usePostMessageEvents.js +19 -0
- package/build/cjs/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
- package/build/cjs/editor-v2/index.d.ts +2 -0
- package/build/cjs/editor-v2/index.js +8 -0
- package/build/cjs/editor-v2/index.js.map +1 -0
- package/build/cjs/editor-v2/store.d.ts +48 -0
- package/build/cjs/editor-v2/store.js +181 -0
- package/build/cjs/editor-v2/store.js.map +1 -0
- package/build/cjs/editor-v2/styles/mixins.css +0 -0
- package/build/cjs/editor-v2/styles/root.css +12 -0
- package/build/cjs/editor-v2/styles/variables.css +0 -0
- package/build/cjs/editor-v2/utils/cn.d.ts +2 -0
- package/build/cjs/editor-v2/utils/cn.js +7 -0
- package/build/cjs/editor-v2/utils/cn.js.map +1 -0
- package/build/cjs/editor-v2/utils/code.d.ts +6 -0
- package/build/cjs/editor-v2/utils/code.js +13 -0
- package/build/cjs/editor-v2/utils/code.js.map +1 -0
- package/build/cjs/editor-v2/utils/index.d.ts +18 -0
- package/build/cjs/editor-v2/utils/index.js +159 -0
- package/build/cjs/editor-v2/utils/index.js.map +1 -0
- package/build/cjs/grid/Grid/Grid.css +2 -6
- package/build/cjs/hooks/useAnalytics.js +1 -1
- package/build/cjs/hooks/useAnalytics.js.map +1 -1
- package/build/cjs/hooks/usePCEditorBlockMouseEvents.d.ts +8 -0
- package/build/cjs/hooks/usePCEditorBlockMouseEvents.js +50 -0
- package/build/cjs/hooks/usePCEditorBlockMouseEvents.js.map +1 -0
- package/build/cjs/hooks/usePCEditorBlockSelection.d.ts +2 -0
- package/build/cjs/hooks/usePCEditorBlockSelection.js +30 -0
- package/build/cjs/hooks/usePCEditorBlockSelection.js.map +1 -0
- package/build/cjs/hooks/usePCEditorInitializeEvents.d.ts +7 -0
- package/build/cjs/hooks/usePCEditorInitializeEvents.js +63 -0
- package/build/cjs/hooks/usePCEditorInitializeEvents.js.map +1 -0
- package/build/cjs/hooks/usePCEditorItemWrap.d.ts +10 -0
- package/build/cjs/hooks/usePCEditorItemWrap.js +21 -0
- package/build/cjs/hooks/usePCEditorItemWrap.js.map +1 -0
- package/build/cjs/hooks/usePCEditorStore.d.ts +1 -0
- package/build/cjs/hooks/usePCEditorStore.js +13 -0
- package/build/cjs/hooks/usePCEditorStore.js.map +1 -0
- package/build/cjs/hooks/usePostMessageAPI.d.ts +4 -0
- package/build/cjs/hooks/usePostMessageAPI.js +30 -0
- package/build/cjs/hooks/usePostMessageAPI.js.map +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor.d.ts +4 -1
- package/build/cjs/models/constructor.js.map +1 -1
- package/build/cjs/models/navigation.d.ts +2 -2
- package/build/cjs/models/navigation.js.map +1 -1
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +1 -1
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
- package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/cjs/navigation/components/Navigation/Navigation.js +1 -1
- package/build/cjs/navigation/components/Navigation/Navigation.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +4 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
- package/build/cjs/navigation/containers/Layout/Layout.css +0 -1
- package/build/cjs/navigation/containers/Layout/Layout.js +1 -0
- package/build/cjs/navigation/containers/Layout/Layout.js.map +1 -1
- package/build/cjs/navigation/models.d.ts +1 -1
- package/build/cjs/navigation/models.js.map +1 -1
- package/build/cjs/schema/constants.js +2 -0
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/index.d.ts +256 -0
- package/build/cjs/schema/index.js +12 -6
- package/build/cjs/schema/index.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
- package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js +82 -0
- package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -0
- package/build/cjs/sub-blocks/BackgroundCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/BackgroundCard/index.js +22 -0
- package/build/cjs/sub-blocks/BackgroundCard/index.js.map +1 -0
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +2 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/cjs/sub-blocks/BannerCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/BannerCard/index.js +24 -0
- package/build/cjs/sub-blocks/BannerCard/index.js.map +1 -0
- package/build/cjs/sub-blocks/BasicCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/BasicCard/index.js +20 -0
- package/build/cjs/sub-blocks/BasicCard/index.js.map +1 -0
- package/build/cjs/sub-blocks/Content/index.d.ts +3 -0
- package/build/cjs/sub-blocks/Content/index.js +20 -0
- package/build/cjs/sub-blocks/Content/index.js.map +1 -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/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Divider/index.d.ts +3 -0
- package/build/cjs/sub-blocks/Divider/index.js +16 -0
- package/build/cjs/sub-blocks/Divider/index.js.map +1 -0
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -1
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/ImageCard/index.js +20 -0
- package/build/cjs/sub-blocks/ImageCard/index.js.map +1 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/index.d.ts +3 -0
- package/build/cjs/sub-blocks/LayoutItem/index.js +26 -0
- package/build/cjs/sub-blocks/LayoutItem/index.js.map +1 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +211 -206
- package/build/cjs/sub-blocks/LayoutItem/schema.js +6 -5
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/MediaCard/index.js +23 -0
- package/build/cjs/sub-blocks/MediaCard/index.js.map +1 -0
- package/build/cjs/sub-blocks/PriceCard/index.d.ts +3 -0
- package/build/cjs/sub-blocks/PriceCard/index.js +33 -0
- package/build/cjs/sub-blocks/PriceCard/index.js.map +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/index.d.ts +4 -0
- package/build/cjs/sub-blocks/PriceDetailed/index.js +35 -0
- package/build/cjs/sub-blocks/PriceDetailed/index.js.map +1 -0
- package/build/cjs/sub-blocks/Quote/index.d.ts +3 -0
- package/build/cjs/sub-blocks/Quote/index.js +23 -0
- package/build/cjs/sub-blocks/Quote/index.js.map +1 -0
- package/build/cjs/utils/editor.d.ts +2 -0
- package/build/cjs/utils/editor.js +25 -0
- package/build/cjs/utils/editor.js.map +1 -0
- package/build/cjs/utils/form-generator.d.ts +9 -0
- package/build/cjs/utils/form-generator.js +131 -0
- package/build/cjs/utils/form-generator.js.map +1 -0
- package/build/cjs/utils/index.d.ts +1 -0
- package/build/cjs/utils/index.js +1 -0
- package/build/cjs/utils/index.js.map +1 -1
- package/build/cjs/utils/navigation.d.ts +3 -0
- package/build/cjs/utils/navigation.js +14 -0
- package/build/cjs/utils/navigation.js.map +1 -0
- package/build/esm/blocks/Banner/Banner.js +2 -1
- package/build/esm/blocks/Banner/Banner.js.map +1 -1
- package/build/esm/blocks/Banner/index.d.ts +3 -0
- package/build/esm/blocks/Banner/index.js +21 -0
- package/build/esm/blocks/Banner/index.js.map +1 -0
- package/build/esm/blocks/CardLayout/CardLayout.css +1 -0
- package/build/esm/blocks/CardLayout/CardLayout.js +5 -4
- package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/esm/blocks/CardLayout/index.d.ts +5 -0
- package/build/esm/blocks/CardLayout/index.js +182 -0
- package/build/esm/blocks/CardLayout/index.js.map +1 -0
- package/build/esm/blocks/Companies/Companies.js +2 -1
- package/build/esm/blocks/Companies/Companies.js.map +1 -1
- package/build/esm/blocks/Companies/index.d.ts +3 -0
- package/build/esm/blocks/Companies/index.js +17 -0
- package/build/esm/blocks/Companies/index.js.map +1 -0
- package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -2
- package/build/esm/blocks/ContentLayout/ContentLayout.js.map +1 -1
- package/build/esm/blocks/ContentLayout/index.d.ts +41 -0
- package/build/esm/blocks/ContentLayout/index.js +78 -0
- package/build/esm/blocks/ContentLayout/index.js.map +1 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +1 -0
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +14 -13
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/index.d.ts +58 -0
- package/build/esm/blocks/ExtendedFeatures/index.js +74 -0
- package/build/esm/blocks/ExtendedFeatures/index.js.map +1 -0
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +1 -0
- package/build/esm/blocks/ExtendedFeatures/schema.js +1 -0
- package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/esm/blocks/FilterBlock/FilterBlock.js +6 -6
- package/build/esm/blocks/FilterBlock/FilterBlock.js.map +1 -1
- package/build/esm/blocks/FilterBlock/index.d.ts +29 -0
- package/build/esm/blocks/FilterBlock/index.js +95 -0
- package/build/esm/blocks/FilterBlock/index.js.map +1 -0
- package/build/esm/blocks/Form/index.d.ts +13 -0
- package/build/esm/blocks/Form/index.js +17 -0
- package/build/esm/blocks/Form/index.js.map +1 -0
- package/build/esm/blocks/Header/dynamic-form.d.ts +2 -0
- package/build/esm/blocks/Header/dynamic-form.js +728 -0
- package/build/esm/blocks/Header/dynamic-form.js.map +1 -0
- package/build/esm/blocks/Header/index.d.ts +20 -0
- package/build/esm/blocks/Header/index.js +31 -0
- package/build/esm/blocks/Header/index.js.map +1 -0
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js +2 -1
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/index.d.ts +32 -0
- package/build/esm/blocks/HeaderSlider/index.js +37 -0
- package/build/esm/blocks/HeaderSlider/index.js.map +1 -0
- package/build/esm/blocks/Icons/Icons.js +8 -6
- package/build/esm/blocks/Icons/Icons.js.map +1 -1
- package/build/esm/blocks/Icons/index.d.ts +20 -0
- package/build/esm/blocks/Icons/index.js +61 -0
- package/build/esm/blocks/Icons/index.js.map +1 -0
- package/build/esm/blocks/Info/index.d.ts +22 -0
- package/build/esm/blocks/Info/index.js +40 -0
- package/build/esm/blocks/Info/index.js.map +1 -0
- package/build/esm/blocks/Map/index.d.ts +12 -0
- package/build/esm/blocks/Map/index.js +16 -0
- package/build/esm/blocks/Map/index.js.map +1 -0
- package/build/esm/blocks/Media/index.d.ts +39 -0
- package/build/esm/blocks/Media/index.js +54 -0
- package/build/esm/blocks/Media/index.js.map +1 -0
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +15 -13
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +22 -0
- package/build/esm/blocks/PromoFeaturesBlock/index.js +46 -0
- package/build/esm/blocks/PromoFeaturesBlock/index.js.map +1 -0
- package/build/esm/blocks/Questions/Questions.js +7 -6
- package/build/esm/blocks/Questions/Questions.js.map +1 -1
- package/build/esm/blocks/Questions/index.d.ts +30 -0
- package/build/esm/blocks/Questions/index.js +46 -0
- package/build/esm/blocks/Questions/index.js.map +1 -0
- package/build/esm/blocks/Share/Share.js +11 -10
- package/build/esm/blocks/Share/Share.js.map +1 -1
- package/build/esm/blocks/Share/index.d.ts +13 -0
- package/build/esm/blocks/Share/index.js +17 -0
- package/build/esm/blocks/Share/index.js.map +1 -0
- package/build/esm/blocks/Slider/Slider.js +12 -10
- package/build/esm/blocks/Slider/Slider.js.map +1 -1
- package/build/esm/blocks/Slider/dynamic-form.d.ts +3 -0
- package/build/esm/blocks/Slider/dynamic-form.js +223 -0
- package/build/esm/blocks/Slider/dynamic-form.js.map +1 -0
- package/build/esm/blocks/Slider/index.d.ts +28 -0
- package/build/esm/blocks/Slider/index.js +44 -0
- package/build/esm/blocks/Slider/index.js.map +1 -0
- package/build/esm/blocks/Table/index.d.ts +18 -0
- package/build/esm/blocks/Table/index.js +29 -0
- package/build/esm/blocks/Table/index.js.map +1 -0
- package/build/esm/blocks/Table/schema.d.ts +1 -0
- package/build/esm/blocks/Table/schema.js +1 -0
- package/build/esm/blocks/Table/schema.js.map +1 -1
- package/build/esm/blocks/Tabs/Tabs.js +5 -5
- package/build/esm/blocks/Tabs/Tabs.js.map +1 -1
- package/build/esm/blocks/Tabs/index.d.ts +17 -0
- package/build/esm/blocks/Tabs/index.js +28 -0
- package/build/esm/blocks/Tabs/index.js.map +1 -0
- package/build/esm/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
- package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js +8 -0
- package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js.map +1 -0
- package/build/esm/blocks/TestEditorBlock/form.d.ts +3 -0
- package/build/esm/blocks/TestEditorBlock/form.js +89 -0
- package/build/esm/blocks/TestEditorBlock/form.js.map +1 -0
- package/build/esm/blocks/TestEditorBlock/index.d.ts +11 -0
- package/build/esm/blocks/TestEditorBlock/index.js +14 -0
- package/build/esm/blocks/TestEditorBlock/index.js.map +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 +81 -0
- package/build/esm/components/Image/dynamic-form.js.map +1 -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 +11 -0
- package/build/esm/components/editor/ItemWrap/ItemWrap.js.map +1 -0
- package/build/esm/constructor-items.d.ts +22 -6
- package/build/esm/constructor-items.js +75 -1
- package/build/esm/constructor-items.js.map +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.js +20 -12
- package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
- package/build/esm/containers/PageConstructor/Provider.js +2 -0
- package/build/esm/containers/PageConstructor/Provider.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +3 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -1
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -1
- package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -2
- package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
- package/build/esm/context/blockIdContext/blockIdContext.d.ts +2 -2
- package/build/esm/context/blockIdContext/blockIdContext.js +1 -1
- package/build/esm/context/blockIdContext/blockIdContext.js.map +1 -1
- package/build/esm/context/editorStoreContext/PCEditorStoreContext.d.ts +7 -0
- package/build/esm/context/editorStoreContext/PCEditorStoreContext.js +6 -0
- package/build/esm/context/editorStoreContext/PCEditorStoreContext.js.map +1 -0
- package/build/esm/context/editorStoreContext/PCEditorStoreProvider.d.ts +5 -0
- package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js +29 -0
- package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -0
- package/build/esm/context/editorStoreContext/index.d.ts +2 -0
- package/build/esm/context/editorStoreContext/index.js +3 -0
- package/build/esm/context/editorStoreContext/index.js.map +1 -0
- package/build/esm/editor/components/CodeEditor/CodeEditor.d.ts +1 -2
- package/build/esm/editor/components/CodeEditor/CodeEditor.js +4 -6
- package/build/esm/editor/components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/esm/editor/data/templates/test-editor-block.json +18 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +10 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +113 -0
- package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +89 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +13 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +25 -0
- package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +37 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +12 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +66 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +19 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -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/Boolean/Boolean.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +13 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +9 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +10 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +33 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -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 +12 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +10 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +10 -0
- package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
- package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +3 -0
- package/build/esm/editor-v2/components/DynamicForm/utils.js +17 -0
- package/build/esm/editor-v2/components/DynamicForm/utils.js.map +1 -0
- package/build/esm/editor-v2/components/Panels/Panels.css +37 -0
- package/build/esm/editor-v2/components/Panels/Panels.d.ts +9 -0
- package/build/esm/editor-v2/components/Panels/Panels.js +24 -0
- package/build/esm/editor-v2/components/Panels/Panels.js.map +1 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.css +24 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +11 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.js +9 -0
- package/build/esm/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
- package/build/esm/editor-v2/components/StoreViewer/StoreViewer.css +29 -0
- package/build/esm/editor-v2/components/StoreViewer/StoreViewer.d.ts +7 -0
- package/build/esm/editor-v2/components/StoreViewer/StoreViewer.js +15 -0
- package/build/esm/editor-v2/components/StoreViewer/StoreViewer.js.map +1 -0
- package/build/esm/editor-v2/components/Tabs/Tabs.css +26 -0
- package/build/esm/editor-v2/components/Tabs/Tabs.d.ts +14 -0
- package/build/esm/editor-v2/components/Tabs/Tabs.js +30 -0
- package/build/esm/editor-v2/components/Tabs/Tabs.js.map +1 -0
- package/build/esm/editor-v2/constants.d.ts +1 -0
- package/build/esm/editor-v2/constants.js +2 -0
- package/build/esm/editor-v2/constants.js.map +1 -0
- package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.css +35 -0
- package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.d.ts +5 -0
- package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +56 -0
- package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
- package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.css +33 -0
- package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.d.ts +6 -0
- package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.js +26 -0
- package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.js.map +1 -0
- package/build/esm/editor-v2/containers/BlocksList/BlocksList.css +65 -0
- package/build/esm/editor-v2/containers/BlocksList/BlocksList.d.ts +3 -0
- package/build/esm/editor-v2/containers/BlocksList/BlocksList.js +41 -0
- package/build/esm/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
- package/build/esm/editor-v2/containers/Editor/Editor.css +51 -0
- package/build/esm/editor-v2/containers/Editor/Editor.d.ts +22 -0
- package/build/esm/editor-v2/containers/Editor/Editor.js +36 -0
- package/build/esm/editor-v2/containers/Editor/Editor.js.map +1 -0
- package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.css +24 -0
- package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +6 -0
- package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js +15 -0
- package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
- package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.css +62 -0
- package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +8 -0
- package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js +32 -0
- package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
- package/build/esm/editor-v2/containers/Overlay/Overlay.css +60 -0
- package/build/esm/editor-v2/containers/Overlay/Overlay.d.ts +7 -0
- package/build/esm/editor-v2/containers/Overlay/Overlay.js +88 -0
- package/build/esm/editor-v2/containers/Overlay/Overlay.js.map +1 -0
- package/build/esm/editor-v2/containers/Source/Source.css +27 -0
- package/build/esm/editor-v2/containers/Source/Source.d.ts +3 -0
- package/build/esm/editor-v2/containers/Source/Source.js +26 -0
- package/build/esm/editor-v2/containers/Source/Source.js.map +1 -0
- package/build/esm/editor-v2/containers/SourceCode/SourceCode.css +50 -0
- package/build/esm/editor-v2/containers/SourceCode/SourceCode.d.ts +7 -0
- package/build/esm/editor-v2/containers/SourceCode/SourceCode.js +39 -0
- package/build/esm/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
- package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +3 -0
- package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +8 -0
- package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +14 -0
- package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
- package/build/esm/editor-v2/containers/Tree/DragContext.css +38 -0
- package/build/esm/editor-v2/containers/Tree/DragContext.d.ts +15 -0
- package/build/esm/editor-v2/containers/Tree/DragContext.js +45 -0
- package/build/esm/editor-v2/containers/Tree/DragContext.js.map +1 -0
- package/build/esm/editor-v2/containers/Tree/Tree.css +23 -0
- package/build/esm/editor-v2/containers/Tree/Tree.d.ts +3 -0
- package/build/esm/editor-v2/containers/Tree/Tree.js +34 -0
- package/build/esm/editor-v2/containers/Tree/Tree.js.map +1 -0
- package/build/esm/editor-v2/containers/Tree/TreeContent.css +28 -0
- package/build/esm/editor-v2/containers/Tree/TreeContent.d.ts +17 -0
- package/build/esm/editor-v2/containers/Tree/TreeContent.js +57 -0
- package/build/esm/editor-v2/containers/Tree/TreeContent.js.map +1 -0
- package/build/esm/editor-v2/containers/Tree/TreeItem.css +66 -0
- package/build/esm/editor-v2/containers/Tree/TreeItem.d.ts +14 -0
- package/build/esm/editor-v2/containers/Tree/TreeItem.js +140 -0
- package/build/esm/editor-v2/containers/Tree/TreeItem.js.map +1 -0
- package/build/esm/editor-v2/containers/Tree/index.d.ts +4 -0
- package/build/esm/editor-v2/containers/Tree/index.js +5 -0
- package/build/esm/editor-v2/containers/Tree/index.js.map +1 -0
- package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.css +23 -0
- package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +4 -0
- package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js +52 -0
- package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
- package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
- package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js +6 -0
- package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
- package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
- package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js +30 -0
- package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
- package/build/esm/editor-v2/context/editorStore/index.d.ts +2 -0
- package/build/esm/editor-v2/context/editorStore/index.js +3 -0
- package/build/esm/editor-v2/context/editorStore/index.js.map +1 -0
- package/build/esm/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
- package/build/esm/editor-v2/context/iframeContext/IframeContext.js +10 -0
- package/build/esm/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
- package/build/esm/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
- package/build/esm/editor-v2/context/iframeContext/IframeProvider.js +16 -0
- package/build/esm/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
- package/build/esm/editor-v2/context/iframeContext/index.d.ts +2 -0
- package/build/esm/editor-v2/context/iframeContext/index.js +3 -0
- package/build/esm/editor-v2/context/iframeContext/index.js.map +1 -0
- package/build/esm/editor-v2/hooks/useEditorTabs.d.ts +16 -0
- package/build/esm/editor-v2/hooks/useEditorTabs.js +72 -0
- package/build/esm/editor-v2/hooks/useEditorTabs.js.map +1 -0
- package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +2 -0
- package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +29 -0
- package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
- package/build/esm/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
- package/build/esm/editor-v2/hooks/useMainEditorStore.js +8 -0
- package/build/esm/editor-v2/hooks/useMainEditorStore.js.map +1 -0
- package/build/esm/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
- package/build/esm/editor-v2/hooks/usePostMessageEvents.js +15 -0
- package/build/esm/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
- package/build/esm/editor-v2/index.d.ts +2 -0
- package/build/esm/editor-v2/index.js +3 -0
- package/build/esm/editor-v2/index.js.map +1 -0
- package/build/esm/editor-v2/store.d.ts +48 -0
- package/build/esm/editor-v2/store.js +177 -0
- package/build/esm/editor-v2/store.js.map +1 -0
- package/build/esm/editor-v2/styles/mixins.css +0 -0
- package/build/esm/editor-v2/styles/root.css +12 -0
- package/build/esm/editor-v2/styles/variables.css +0 -0
- package/build/esm/editor-v2/utils/cn.d.ts +2 -0
- package/build/esm/editor-v2/utils/cn.js +4 -0
- package/build/esm/editor-v2/utils/cn.js.map +1 -0
- package/build/esm/editor-v2/utils/code.d.ts +6 -0
- package/build/esm/editor-v2/utils/code.js +9 -0
- package/build/esm/editor-v2/utils/code.js.map +1 -0
- package/build/esm/editor-v2/utils/index.d.ts +18 -0
- package/build/esm/editor-v2/utils/index.js +141 -0
- package/build/esm/editor-v2/utils/index.js.map +1 -0
- package/build/esm/grid/Grid/Grid.css +2 -6
- package/build/esm/hooks/useAnalytics.js +1 -1
- package/build/esm/hooks/useAnalytics.js.map +1 -1
- package/build/esm/hooks/usePCEditorBlockMouseEvents.d.ts +8 -0
- package/build/esm/hooks/usePCEditorBlockMouseEvents.js +47 -0
- package/build/esm/hooks/usePCEditorBlockMouseEvents.js.map +1 -0
- package/build/esm/hooks/usePCEditorBlockSelection.d.ts +2 -0
- package/build/esm/hooks/usePCEditorBlockSelection.js +27 -0
- package/build/esm/hooks/usePCEditorBlockSelection.js.map +1 -0
- package/build/esm/hooks/usePCEditorInitializeEvents.d.ts +7 -0
- package/build/esm/hooks/usePCEditorInitializeEvents.js +58 -0
- package/build/esm/hooks/usePCEditorInitializeEvents.js.map +1 -0
- package/build/esm/hooks/usePCEditorItemWrap.d.ts +10 -0
- package/build/esm/hooks/usePCEditorItemWrap.js +17 -0
- package/build/esm/hooks/usePCEditorItemWrap.js.map +1 -0
- package/build/esm/hooks/usePCEditorStore.d.ts +1 -0
- package/build/esm/hooks/usePCEditorStore.js +8 -0
- package/build/esm/hooks/usePCEditorStore.js.map +1 -0
- package/build/esm/hooks/usePostMessageAPI.d.ts +4 -0
- package/build/esm/hooks/usePostMessageAPI.js +24 -0
- package/build/esm/hooks/usePostMessageAPI.js.map +1 -0
- package/build/esm/models/constructor-items/blocks.d.ts +1 -0
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor.d.ts +4 -1
- package/build/esm/models/constructor.js.map +1 -1
- package/build/esm/models/navigation.d.ts +2 -2
- package/build/esm/models/navigation.js.map +1 -1
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +2 -2
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
- package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/esm/navigation/components/Navigation/Navigation.js +1 -1
- package/build/esm/navigation/components/Navigation/Navigation.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +4 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
- package/build/esm/navigation/containers/Layout/Layout.css +0 -1
- package/build/esm/navigation/containers/Layout/Layout.js +2 -1
- package/build/esm/navigation/containers/Layout/Layout.js.map +1 -1
- package/build/esm/navigation/models.d.ts +1 -1
- package/build/esm/navigation/models.js.map +1 -1
- package/build/esm/schema/constants.js +2 -0
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/index.d.ts +256 -0
- package/build/esm/schema/index.js +11 -5
- package/build/esm/schema/index.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
- package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js +79 -0
- package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -0
- package/build/esm/sub-blocks/BackgroundCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/BackgroundCard/index.js +19 -0
- package/build/esm/sub-blocks/BackgroundCard/index.js.map +1 -0
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +2 -1
- package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/esm/sub-blocks/BannerCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/BannerCard/index.js +21 -0
- package/build/esm/sub-blocks/BannerCard/index.js.map +1 -0
- package/build/esm/sub-blocks/BasicCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/BasicCard/index.js +17 -0
- package/build/esm/sub-blocks/BasicCard/index.js.map +1 -0
- package/build/esm/sub-blocks/Content/index.d.ts +3 -0
- package/build/esm/sub-blocks/Content/index.js +17 -0
- package/build/esm/sub-blocks/Content/index.js.map +1 -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/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/Divider/index.d.ts +3 -0
- package/build/esm/sub-blocks/Divider/index.js +13 -0
- package/build/esm/sub-blocks/Divider/index.js.map +1 -0
- package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -1
- package/build/esm/sub-blocks/ImageCard/ImageCard.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/ImageCard/index.js +17 -0
- package/build/esm/sub-blocks/ImageCard/index.js.map +1 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/index.d.ts +3 -0
- package/build/esm/sub-blocks/LayoutItem/index.js +23 -0
- package/build/esm/sub-blocks/LayoutItem/index.js.map +1 -0
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +211 -206
- package/build/esm/sub-blocks/LayoutItem/schema.js +3 -2
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/MediaCard/index.js +20 -0
- package/build/esm/sub-blocks/MediaCard/index.js.map +1 -0
- package/build/esm/sub-blocks/PriceCard/index.d.ts +3 -0
- package/build/esm/sub-blocks/PriceCard/index.js +30 -0
- package/build/esm/sub-blocks/PriceCard/index.js.map +1 -0
- package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/index.d.ts +4 -0
- package/build/esm/sub-blocks/PriceDetailed/index.js +32 -0
- package/build/esm/sub-blocks/PriceDetailed/index.js.map +1 -0
- package/build/esm/sub-blocks/Quote/index.d.ts +3 -0
- package/build/esm/sub-blocks/Quote/index.js +20 -0
- package/build/esm/sub-blocks/Quote/index.js.map +1 -0
- package/build/esm/utils/editor.d.ts +2 -0
- package/build/esm/utils/editor.js +21 -0
- package/build/esm/utils/editor.js.map +1 -0
- package/build/esm/utils/form-generator.d.ts +9 -0
- package/build/esm/utils/form-generator.js +126 -0
- package/build/esm/utils/form-generator.js.map +1 -0
- package/build/esm/utils/index.d.ts +1 -0
- package/build/esm/utils/index.js +1 -0
- package/build/esm/utils/index.js.map +1 -1
- package/build/esm/utils/navigation.d.ts +3 -0
- package/build/esm/utils/navigation.js +9 -0
- package/build/esm/utils/navigation.js.map +1 -0
- package/package.json +15 -3
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -0
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/models/constructor.d.ts +4 -1
- package/server/models/navigation.d.ts +2 -2
- package/server/utils/index.d.ts +1 -0
- package/server/utils/index.js +1 -0
- package/server/utils/navigation.d.ts +3 -0
- package/server/utils/navigation.js +15 -0
- package/styles/mixins.scss +9 -9
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LayoutItem = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
|
|
6
|
-
const schema_1 =
|
|
6
|
+
const schema_1 = require("../../blocks/Media/schema.js");
|
|
7
|
+
const schema_2 = tslib_1.__importDefault(require("../../components/MetaInfo/schema.js"));
|
|
7
8
|
const common_1 = require("../../schema/validators/common.js");
|
|
8
9
|
const event_1 = require("../../schema/validators/event.js");
|
|
9
|
-
const
|
|
10
|
+
const schema_3 = require("../Content/schema.js");
|
|
10
11
|
exports.LayoutItem = {
|
|
11
12
|
type: 'object',
|
|
12
13
|
additionalProperties: false,
|
|
@@ -14,14 +15,14 @@ exports.LayoutItem = {
|
|
|
14
15
|
properties: {
|
|
15
16
|
...common_1.BaseProps,
|
|
16
17
|
...common_1.CardLayoutProps,
|
|
17
|
-
media:
|
|
18
|
-
content: (0, omit_1.default)(
|
|
18
|
+
media: schema_1.Media,
|
|
19
|
+
content: (0, omit_1.default)(schema_3.ContentBase, ['colSize', 'size', 'centered']),
|
|
19
20
|
contentMargin: {
|
|
20
21
|
type: 'string',
|
|
21
22
|
enum: ['m', 'l'],
|
|
22
23
|
default: 'm',
|
|
23
24
|
},
|
|
24
|
-
metaInfo:
|
|
25
|
+
metaInfo: schema_2.default,
|
|
25
26
|
border: {
|
|
26
27
|
type: 'boolean',
|
|
27
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,yFAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,yDAAgD;AAChD,yFAAwD;AACxD,8DAA0E;AAC1E,4DAAmE;AACnE,iDAA4D;AAE/C,QAAA,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE,cAAK;QACZ,OAAO,EAAE,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC3D,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,gBAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,4BAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,4BAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {Media} from '../../blocks/Media/schema';\nimport metaInfo from '../../components/MetaInfo/schema';\nimport {BaseProps, CardLayoutProps} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nexport const LayoutItem = {\n type: 'object',\n additionalProperties: false,\n required: ['content', 'media'],\n properties: {\n ...BaseProps,\n ...CardLayoutProps,\n media: Media,\n content: omit(ContentBase, ['colSize', 'size', 'centered']),\n contentMargin: {\n type: 'string',\n enum: ['m', 'l'],\n default: 'm',\n },\n metaInfo: metaInfo,\n border: {\n type: 'boolean',\n },\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.js");
|
|
5
|
+
const MediaCard_1 = tslib_1.__importDefault(require("./MediaCard.js"));
|
|
6
|
+
const schema_1 = require("./schema.js");
|
|
7
|
+
const MediaCardConfig = {
|
|
8
|
+
component: MediaCard_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Media Card',
|
|
11
|
+
group: 'cards',
|
|
12
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.MediaCardBlock['media-card']),
|
|
13
|
+
default: {
|
|
14
|
+
content: {
|
|
15
|
+
title: 'Media Card',
|
|
16
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
17
|
+
},
|
|
18
|
+
image: 'https://storage.yandexcloud.net/yc-www-community-images/event_ecaf1ef1-bc3a-40fa-adef-827b0959e6c3.jpg',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
exports.default = MediaCardConfig;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/MediaCard/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,uEAAoC;AACpC,wCAA2D;AAE3D,MAAM,eAAe,GAAc;IAC/B,SAAS,EAAE,mBAAS;IACpB,MAAM,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EAAC,uBAAe,CAAC,YAAY,CAAkC,CAAC;QACvF,OAAO,EAAE;YACL,OAAO,EAAE;gBACL,KAAK,EAAE,YAAY;gBACnB,IAAI,EAAE,6HAA6H;aACtI;YACD,KAAK,EAAE,wGAAwG;SAClH;KACJ;CACJ,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport MediaCard from './MediaCard';\nimport {MediaCardBlock as MediaCardSchema} from './schema';\n\nconst MediaCardConfig: BlockData = {\n component: MediaCard,\n schema: {\n name: 'Media Card',\n group: 'cards',\n inputs: generateFromAJV(MediaCardSchema['media-card'] as unknown as JSONSchemaType<{}>),\n default: {\n content: {\n title: 'Media Card',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n image: 'https://storage.yandexcloud.net/yc-www-community-images/event_ecaf1ef1-bc3a-40fa-adef-827b0959e6c3.jpg',\n },\n },\n};\n\nexport default MediaCardConfig;\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.js");
|
|
5
|
+
const PriceCard_1 = tslib_1.__importDefault(require("./PriceCard.js"));
|
|
6
|
+
const schema_1 = require("./schema.js");
|
|
7
|
+
const PriceCardConfig = {
|
|
8
|
+
component: PriceCard_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Price Card',
|
|
11
|
+
group: 'cards',
|
|
12
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.PriceCardBlock['price-card']),
|
|
13
|
+
default: {
|
|
14
|
+
type: 'price-card',
|
|
15
|
+
border: 'line',
|
|
16
|
+
title: 'Basic',
|
|
17
|
+
price: '100 $',
|
|
18
|
+
pricePeriod: 'month',
|
|
19
|
+
priceDetails: '+ 5% from check',
|
|
20
|
+
description: 'For any purposes',
|
|
21
|
+
buttons: [
|
|
22
|
+
{
|
|
23
|
+
url: '/',
|
|
24
|
+
text: 'Read More',
|
|
25
|
+
width: 'max',
|
|
26
|
+
theme: 'action',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
exports.default = PriceCardConfig;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceCard/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,uEAAoC;AACpC,wCAA2D;AAE3D,MAAM,eAAe,GAAc;IAC/B,SAAS,EAAE,mBAAS;IACpB,MAAM,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EAAC,uBAAe,CAAC,YAAY,CAAkC,CAAC;QACvF,OAAO,EAAE;YACL,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,iBAAiB;YAC/B,WAAW,EAAE,kBAAkB;YAC/B,OAAO,EAAE;gBACL;oBACI,GAAG,EAAE,GAAG;oBACR,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,KAAK;oBACZ,KAAK,EAAE,QAAQ;iBAClB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport PriceCard from './PriceCard';\nimport {PriceCardBlock as PriceCardSchema} from './schema';\n\nconst PriceCardConfig: BlockData = {\n component: PriceCard,\n schema: {\n name: 'Price Card',\n group: 'cards',\n inputs: generateFromAJV(PriceCardSchema['price-card'] as unknown as JSONSchemaType<{}>),\n default: {\n type: 'price-card',\n border: 'line',\n title: 'Basic',\n price: '100 $',\n pricePeriod: 'month',\n priceDetails: '+ 5% from check',\n description: 'For any purposes',\n buttons: [\n {\n url: '/',\n text: 'Read More',\n width: 'max',\n theme: 'action',\n },\n ],\n },\n },\n};\n\nexport default PriceCardConfig;\n"]}
|
|
@@ -11,7 +11,7 @@ const SeparatePriceDetailed_1 = tslib_1.__importDefault(require("./SeparatePrice
|
|
|
11
11
|
// eslint-disable-next-line valid-jsdoc
|
|
12
12
|
/** @deprecated */
|
|
13
13
|
const PriceDetailed = (props) => {
|
|
14
|
-
const { priceType = models_1.PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
14
|
+
const { priceType = models_1.PriceDetailsType.SETTINGS, items = [], numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
15
15
|
const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
|
|
16
16
|
const { titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm' } = details || {};
|
|
17
17
|
const getDescriptionComponent = (priceDescription) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceDetailed.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/PriceDetailed.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,kDAMsB;AAEtB,qHAAkF;AAClF,sGAAmE;AACnE,0FAAuD;AACvD,qHAAkF;AAElF,uCAAuC;AACvC,kBAAkB;AAClB,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAChD,MAAM,EACF,SAAS,GAAG,yBAAgB,CAAC,QAAQ,EACrC,KAAK,
|
|
1
|
+
{"version":3,"file":"PriceDetailed.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/PriceDetailed.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,kDAMsB;AAEtB,qHAAkF;AAClF,sGAAmE;AACnE,0FAAuD;AACvD,qHAAkF;AAElF,uCAAuC;AACvC,kBAAkB;AAClB,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAChD,MAAM,EACF,SAAS,GAAG,yBAAgB,CAAC,QAAQ,EACrC,KAAK,GAAG,EAAE,EACV,gBAAgB,GAAG,CAAC,EACpB,WAAW,EACX,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,UAAU,GAAG,KAAK,EAClB,YAAY,GAAG,KAAK,EACpB,MAAM,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,EACF,SAAS,EAAE,oBAAoB,GAAG,GAAG,EACrC,eAAe,GAAG,GAAG,EACrB,UAAU,EAAE,qBAAqB,GAAG,YAAY,GACnD,GAAG,WAAW,IAAI,EAAE,CAAC;IAEtB,MAAM,EAAC,SAAS,EAAE,gBAAgB,GAAG,GAAG,EAAE,eAAe,EAAE,sBAAsB,GAAG,GAAG,EAAC,GACpF,OAAO,IAAI,EAAE,CAAC;IAElB,MAAM,uBAAuB,GAAG,CAAC,gBAAuC,EAAE,EAAE;QACxE,OAAO,CACH,uBAAC,0BAAgB,OACT,gBAAgB,EACpB,SAAS,EAAE,oBAAoB,EAC/B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,qBAAqB,EACjC,iBAAiB,EAAE,iBAAiB,GACtC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CACxB,YAAoE,EACtE,EAAE;QACA,OAAO,CACH,uBAAC,sBAAY,IACT,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,sBAAsB,EACvC,YAAY,EAAE,YAAY,GAC5B,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,uBAAC,KAAK,CAAC,QAAQ,cACV,UAAU,CAAC,CAAC,CAAC,CACV,uBAAC,+BAAqB,IAClB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC,CAAC,CAAC,CACA,uBAAC,+BAAqB,IAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,GACY,CACpB,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {\n PriceDescriptionProps,\n PriceDetailedProps,\n PriceDetailsListProps,\n PriceDetailsSettingsProps,\n PriceDetailsType,\n} from '../../models';\n\nimport CombinedPriceDetailed from './CombinedPriceDetailed/CombinedPriceDetailed';\nimport PriceDescription from './PriceDescription/PriceDescription';\nimport PriceDetails from './PriceDetails/PriceDetails';\nimport SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed';\n\n// eslint-disable-next-line valid-jsdoc\n/** @deprecated */\nconst PriceDetailed = (props: PriceDetailedProps) => {\n const {\n priceType = PriceDetailsType.SETTINGS,\n items = [],\n numberGroupItems = 1,\n description,\n details,\n foldable,\n labelsDefaultText,\n isCombined = false,\n useMixedView = false,\n border,\n } = props;\n\n const {\n titleSize: descriptionTitleSize = 'l',\n descriptionSize = 'm',\n titleColor: descriptionTitleColor = 'cornflower',\n } = description || {};\n\n const {titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm'} =\n details || {};\n\n const getDescriptionComponent = (priceDescription: PriceDescriptionProps) => {\n return (\n <PriceDescription\n {...priceDescription}\n titleSize={descriptionTitleSize}\n descriptionSize={descriptionSize}\n colorTitle={descriptionTitleColor}\n labelsDefaultText={labelsDefaultText}\n />\n );\n };\n\n const getDetailsComponent = (\n priceDetails?: PriceDetailsSettingsProps[] | PriceDetailsListProps[],\n ) => {\n return (\n <PriceDetails\n items={priceDetails}\n type={priceType}\n foldable={foldable}\n titleSize={detailsTitleSize}\n descriptionSize={detailsDescriptionSize}\n useMixedView={useMixedView}\n />\n );\n };\n\n return (\n <React.Fragment>\n {isCombined ? (\n <CombinedPriceDetailed\n items={items}\n numberGroupItems={numberGroupItems}\n border={border}\n useMixedView={useMixedView}\n getDescriptionComponent={getDescriptionComponent}\n getDetailsComponent={getDetailsComponent}\n />\n ) : (\n <SeparatePriceDetailed\n items={items}\n border={border}\n getDescriptionComponent={getDescriptionComponent}\n getDetailsComponent={getDetailsComponent}\n />\n )}\n </React.Fragment>\n );\n};\n\nexport default PriceDetailed;\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.js");
|
|
5
|
+
const PriceDetailed_1 = tslib_1.__importDefault(require("./PriceDetailed.js"));
|
|
6
|
+
const schema_1 = require("./schema.js");
|
|
7
|
+
/** @deprecated */
|
|
8
|
+
const PriceDetailedConfig = {
|
|
9
|
+
component: PriceDetailed_1.default,
|
|
10
|
+
schema: {
|
|
11
|
+
name: 'Price Detailed',
|
|
12
|
+
group: 'cards',
|
|
13
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.PriceDetailedBlock['price-detailed']),
|
|
14
|
+
default: {
|
|
15
|
+
priceType: 'marked-list',
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
title: '100$',
|
|
19
|
+
description: 'Basic edition',
|
|
20
|
+
detailedTitle: 'per year',
|
|
21
|
+
items: [
|
|
22
|
+
{
|
|
23
|
+
text: 'First item',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
text: 'Second item',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
exports.default = PriceDetailedConfig;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,+EAA4C;AAC5C,wCAAmE;AAEnE,kBAAkB;AAClB,MAAM,mBAAmB,GAAc;IACnC,SAAS,EAAE,uBAAa;IACxB,MAAM,EAAE;QACJ,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EACnB,2BAAmB,CAAC,gBAAgB,CAAkC,CACzE;QACD,OAAO,EAAE;YACL,SAAS,EAAE,aAAa;YACxB,KAAK,EAAE;gBACH;oBACI,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,eAAe;oBAC5B,aAAa,EAAE,UAAU;oBACzB,KAAK,EAAE;wBACH;4BACI,IAAI,EAAE,YAAY;yBACrB;wBACD;4BACI,IAAI,EAAE,aAAa;yBACtB;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAe,mBAAmB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport PriceDetailed from './PriceDetailed';\nimport {PriceDetailedBlock as PriceDetailedSchema} from './schema';\n\n/** @deprecated */\nconst PriceDetailedConfig: BlockData = {\n component: PriceDetailed,\n schema: {\n name: 'Price Detailed',\n group: 'cards',\n inputs: generateFromAJV(\n PriceDetailedSchema['price-detailed'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n priceType: 'marked-list',\n items: [\n {\n title: '100$',\n description: 'Basic edition',\n detailedTitle: 'per year',\n items: [\n {\n text: 'First item',\n },\n {\n text: 'Second item',\n },\n ],\n },\n ],\n },\n },\n};\n\nexport default PriceDetailedConfig;\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.js");
|
|
5
|
+
const Quote_1 = tslib_1.__importDefault(require("./Quote.js"));
|
|
6
|
+
const schema_1 = require("./schema.js");
|
|
7
|
+
const QuoteConfig = {
|
|
8
|
+
component: Quote_1.default,
|
|
9
|
+
schema: {
|
|
10
|
+
name: 'Quote',
|
|
11
|
+
group: 'cards',
|
|
12
|
+
inputs: (0, form_generator_1.generateFromAJV)(schema_1.Quote['quote']),
|
|
13
|
+
default: {
|
|
14
|
+
text: 'A good decision is based on knowledge and not on numbers.',
|
|
15
|
+
author: {
|
|
16
|
+
firstName: ' Plato',
|
|
17
|
+
description: 'Greek philosopher',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
exports.default = QuoteConfig;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,+DAA4B;AAC5B,wCAA8C;AAE9C,MAAM,WAAW,GAAc;IAC3B,SAAS,EAAE,eAAK;IAChB,MAAM,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EAAC,cAAW,CAAC,OAAO,CAAkC,CAAC;QAC9E,OAAO,EAAE;YACL,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE;gBACJ,SAAS,EAAE,QAAQ;gBACnB,WAAW,EAAE,mBAAmB;aACnC;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAe,WAAW,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport Quote from './Quote';\nimport {Quote as QuoteSchema} from './schema';\n\nconst QuoteConfig: BlockData = {\n component: Quote,\n schema: {\n name: 'Quote',\n group: 'cards',\n inputs: generateFromAJV(QuoteSchema['quote'] as unknown as JSONSchemaType<{}>),\n default: {\n text: 'A good decision is based on knowledge and not on numbers.',\n author: {\n firstName: ' Plato',\n description: 'Greek philosopher',\n },\n },\n },\n};\n\nexport default QuoteConfig;\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCursorPositionOverElement = void 0;
|
|
4
|
+
const getCursorPositionOverElement = (elementRect, mouseEvent) => {
|
|
5
|
+
const cursorPositionY = elementRect.height - (mouseEvent.clientY - elementRect.y);
|
|
6
|
+
const cursorPositionX = elementRect.width - (mouseEvent.clientX - elementRect.x);
|
|
7
|
+
const cursorRatioY = elementRect.height / 2 / cursorPositionY;
|
|
8
|
+
const cursorRatioX = elementRect.width / 2 / cursorPositionX;
|
|
9
|
+
if (cursorRatioY > cursorRatioX) {
|
|
10
|
+
if (cursorRatioY >= 1) {
|
|
11
|
+
return 'bottom';
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return 'left';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
else if (cursorRatioX >= 1) {
|
|
18
|
+
return 'right';
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return 'top';
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.getCursorPositionOverElement = getCursorPositionOverElement;
|
|
25
|
+
//# sourceMappingURL=editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"../../../src","sources":["utils/editor.ts"],"names":[],"mappings":";;;AAEO,MAAM,4BAA4B,GAAG,CACxC,WAAoB,EACpB,UAA4B,EAC9B,EAAE;IACA,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,UAAU,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAClF,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,GAAG,CAAC,UAAU,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IACjF,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,GAAG,eAAe,CAAC;IAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,GAAG,CAAC,GAAG,eAAe,CAAC;IAE7D,IAAI,YAAY,GAAG,YAAY,EAAE,CAAC;QAC9B,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QACpB,CAAC;aAAM,CAAC;YACJ,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;SAAM,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QAC3B,OAAO,OAAO,CAAC;IACnB,CAAC;SAAM,CAAC;QACJ,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC,CAAC;AApBW,QAAA,4BAA4B,gCAoBvC","sourcesContent":["import * as React from 'react';\n\nexport const getCursorPositionOverElement = (\n elementRect: DOMRect,\n mouseEvent: React.MouseEvent,\n) => {\n const cursorPositionY = elementRect.height - (mouseEvent.clientY - elementRect.y);\n const cursorPositionX = elementRect.width - (mouseEvent.clientX - elementRect.x);\n const cursorRatioY = elementRect.height / 2 / cursorPositionY;\n const cursorRatioX = elementRect.width / 2 / cursorPositionX;\n\n if (cursorRatioY > cursorRatioX) {\n if (cursorRatioY >= 1) {\n return 'bottom';\n } else {\n return 'left';\n }\n } else if (cursorRatioX >= 1) {\n return 'right';\n } else {\n return 'top';\n }\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSONSchemaType } from 'ajv';
|
|
2
|
+
import { ArrayBaseInput, BooleanInput, ConfigInput, NumberInput, ObjectInput, SelectBaseInput, TextAreaInput, TextInput } from "../../common/types/index.js";
|
|
3
|
+
export declare const generateFromAJV: (schema: JSONSchemaType<{}>) => ConfigInput[];
|
|
4
|
+
export declare const generateSingleEntity: (key: string, schema: JSONSchemaType<{}>) => TextInput | BooleanInput | NumberInput | TextAreaInput | SelectBaseInput | ObjectInput | ArrayBaseInput | {
|
|
5
|
+
type: string;
|
|
6
|
+
name: string;
|
|
7
|
+
title: string;
|
|
8
|
+
options: any;
|
|
9
|
+
} | undefined;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateSingleEntity = exports.generateFromAJV = void 0;
|
|
4
|
+
const generateFromAJV = (schema) => {
|
|
5
|
+
if (schema && schema.properties) {
|
|
6
|
+
const obj = Object.entries(schema.properties).map(([key, value]) => {
|
|
7
|
+
const innerSchema = value;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
9
|
+
return (0, exports.generateSingleEntity)(key, innerSchema);
|
|
10
|
+
});
|
|
11
|
+
return obj.filter(Boolean);
|
|
12
|
+
}
|
|
13
|
+
return [];
|
|
14
|
+
};
|
|
15
|
+
exports.generateFromAJV = generateFromAJV;
|
|
16
|
+
const generateSingleEntity = (key, schema) => {
|
|
17
|
+
const type = schema.type;
|
|
18
|
+
if (!type && schema.enum) {
|
|
19
|
+
return {
|
|
20
|
+
type: 'select',
|
|
21
|
+
view: 'select',
|
|
22
|
+
name: key,
|
|
23
|
+
title: key,
|
|
24
|
+
enum: schema.enum.map((enumValue) => ({
|
|
25
|
+
content: enumValue,
|
|
26
|
+
value: enumValue,
|
|
27
|
+
})),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
if (schema.oneOf) {
|
|
31
|
+
return {
|
|
32
|
+
type: 'oneOf',
|
|
33
|
+
name: key,
|
|
34
|
+
title: key,
|
|
35
|
+
options: schema.oneOf.map((item) => {
|
|
36
|
+
let properties;
|
|
37
|
+
if (item.properties) {
|
|
38
|
+
properties = (0, exports.generateFromAJV)(item);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
properties = [
|
|
42
|
+
(0, exports.generateSingleEntity)('', {
|
|
43
|
+
...item,
|
|
44
|
+
name: '',
|
|
45
|
+
title: item.optionName,
|
|
46
|
+
}),
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
value: item.optionName,
|
|
51
|
+
title: item.optionName,
|
|
52
|
+
properties: properties,
|
|
53
|
+
};
|
|
54
|
+
}),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
switch (type) {
|
|
58
|
+
case 'string': {
|
|
59
|
+
if (schema.inputType === 'textarea') {
|
|
60
|
+
return {
|
|
61
|
+
type: 'textarea',
|
|
62
|
+
name: key,
|
|
63
|
+
title: key,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (schema.enum) {
|
|
67
|
+
return {
|
|
68
|
+
type: 'select',
|
|
69
|
+
view: 'select',
|
|
70
|
+
name: key,
|
|
71
|
+
title: key,
|
|
72
|
+
enum: schema.enum.map((enumValue) => ({
|
|
73
|
+
content: enumValue,
|
|
74
|
+
value: enumValue,
|
|
75
|
+
})),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
type: 'text',
|
|
80
|
+
name: key,
|
|
81
|
+
title: key,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
case 'number': {
|
|
85
|
+
return {
|
|
86
|
+
type: 'number',
|
|
87
|
+
name: key,
|
|
88
|
+
title: key,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
case 'object': {
|
|
92
|
+
return {
|
|
93
|
+
type: 'object',
|
|
94
|
+
name: key,
|
|
95
|
+
title: key,
|
|
96
|
+
properties: (0, exports.generateFromAJV)(schema),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
case 'boolean': {
|
|
100
|
+
return {
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
name: key,
|
|
103
|
+
title: key,
|
|
104
|
+
properties: (0, exports.generateFromAJV)(schema),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
case 'array': {
|
|
108
|
+
if (schema.items.type === 'string') {
|
|
109
|
+
return {
|
|
110
|
+
type: 'array',
|
|
111
|
+
name: key,
|
|
112
|
+
title: key,
|
|
113
|
+
properties: (0, exports.generateFromAJV)(schema.items),
|
|
114
|
+
buttonText: 'Add',
|
|
115
|
+
arrayType: 'text',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
type: 'array',
|
|
120
|
+
name: key,
|
|
121
|
+
title: key,
|
|
122
|
+
properties: (0, exports.generateFromAJV)(schema.items),
|
|
123
|
+
buttonText: 'Add',
|
|
124
|
+
arrayType: 'object',
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return undefined;
|
|
129
|
+
};
|
|
130
|
+
exports.generateSingleEntity = generateSingleEntity;
|
|
131
|
+
//# sourceMappingURL=form-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-generator.js","sourceRoot":"../../../src","sources":["utils/form-generator.ts"],"names":[],"mappings":";;;AAaO,MAAM,eAAe,GAAG,CAAC,MAA0B,EAAiB,EAAE;IACzE,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC/D,MAAM,WAAW,GAAG,KAA2B,CAAC;YAChD,mEAAmE;YACnE,OAAO,IAAA,4BAAoB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,CAAkB,CAAC;IAChD,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,eAAe,mBAW1B;AAEK,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAE,MAA0B,EAAE,EAAE;IAC5E,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAEzB,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QACvB,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,CAAC;gBAC1C,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,SAAS;aACnB,CAAC,CAAC;SACa,CAAC;IACzB,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,OAAO;YACH,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAwB,EAAE,EAAE;gBACnD,IAAI,UAAU,CAAC;gBACf,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;oBAClB,UAAU,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,CAAC;gBACvC,CAAC;qBAAM,CAAC;oBACJ,UAAU,GAAG;wBACT,IAAA,4BAAoB,EAAC,EAAE,EAAE;4BACrB,GAAG,IAAI;4BACP,IAAI,EAAE,EAAE;4BACR,KAAK,EAAE,IAAI,CAAC,UAAU;yBACzB,CAAC;qBACL,CAAC;gBACN,CAAC;gBAED,OAAO;oBACH,KAAK,EAAE,IAAI,CAAC,UAAU;oBACtB,KAAK,EAAE,IAAI,CAAC,UAAU;oBACtB,UAAU,EAAE,UAAU;iBACzB,CAAC;YACN,CAAC,CAAC;SACL,CAAC;IACN,CAAC;IAED,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,QAAQ,CAAC,CAAC,CAAC;YACZ,IAAI,MAAM,CAAC,SAAS,KAAK,UAAU,EAAE,CAAC;gBAClC,OAAO;oBACH,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,GAAG;oBACT,KAAK,EAAE,GAAG;iBACI,CAAC;YACvB,CAAC;YACD,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;gBACd,OAAO;oBACH,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,GAAG;oBACT,KAAK,EAAE,GAAG;oBACV,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,CAAC;wBAC1C,OAAO,EAAE,SAAS;wBAClB,KAAK,EAAE,SAAS;qBACnB,CAAC,CAAC;iBACa,CAAC;YACzB,CAAC;YACD,OAAO;gBACH,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACA,CAAC;QACnB,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACZ,OAAO;gBACH,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACE,CAAC;QACrB,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACZ,OAAO;gBACH,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC;aACvB,CAAC;QACrB,CAAC;QACD,KAAK,SAAS,CAAC,CAAC,CAAC;YACb,OAAO;gBACH,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC;aACtB,CAAC;QACtB,CAAC;QACD,KAAK,OAAO,CAAC,CAAC,CAAC;YACX,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACjC,OAAO;oBACH,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,GAAG;oBACT,KAAK,EAAE,GAAG;oBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC,KAAK,CAAC;oBACzC,UAAU,EAAE,KAAK;oBACjB,SAAS,EAAE,MAAM;iBACF,CAAC;YACxB,CAAC;YAED,OAAO;gBACH,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC,KAAK,CAAC;gBACzC,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,QAAQ;aACJ,CAAC;QACxB,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAtHW,QAAA,oBAAoB,wBAsH/B","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {\n ArrayBaseInput,\n BooleanInput,\n ConfigInput,\n NumberInput,\n ObjectInput,\n SelectBaseInput,\n TextAreaInput,\n TextInput,\n} from '../../common/types';\n\nexport const generateFromAJV = (schema: JSONSchemaType<{}>): ConfigInput[] => {\n if (schema && schema.properties) {\n const obj = Object.entries(schema.properties).map(([key, value]) => {\n const innerSchema = value as JSONSchemaType<{}>;\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return generateSingleEntity(key, innerSchema);\n });\n\n return obj.filter(Boolean) as ConfigInput[];\n }\n return [];\n};\n\nexport const generateSingleEntity = (key: string, schema: JSONSchemaType<{}>) => {\n const type = schema.type;\n\n if (!type && schema.enum) {\n return {\n type: 'select',\n view: 'select',\n name: key,\n title: key,\n enum: schema.enum.map((enumValue: string) => ({\n content: enumValue,\n value: enumValue,\n })),\n } as SelectBaseInput;\n }\n\n if (schema.oneOf) {\n return {\n type: 'oneOf',\n name: key,\n title: key,\n options: schema.oneOf.map((item: JSONSchemaType<{}>) => {\n let properties;\n if (item.properties) {\n properties = generateFromAJV(item);\n } else {\n properties = [\n generateSingleEntity('', {\n ...item,\n name: '',\n title: item.optionName,\n }),\n ];\n }\n\n return {\n value: item.optionName,\n title: item.optionName,\n properties: properties,\n };\n }),\n };\n }\n\n switch (type) {\n case 'string': {\n if (schema.inputType === 'textarea') {\n return {\n type: 'textarea',\n name: key,\n title: key,\n } as TextAreaInput;\n }\n if (schema.enum) {\n return {\n type: 'select',\n view: 'select',\n name: key,\n title: key,\n enum: schema.enum.map((enumValue: string) => ({\n content: enumValue,\n value: enumValue,\n })),\n } as SelectBaseInput;\n }\n return {\n type: 'text',\n name: key,\n title: key,\n } as TextInput;\n }\n case 'number': {\n return {\n type: 'number',\n name: key,\n title: key,\n } as NumberInput;\n }\n case 'object': {\n return {\n type: 'object',\n name: key,\n title: key,\n properties: generateFromAJV(schema),\n } as ObjectInput;\n }\n case 'boolean': {\n return {\n type: 'boolean',\n name: key,\n title: key,\n properties: generateFromAJV(schema),\n } as BooleanInput;\n }\n case 'array': {\n if (schema.items.type === 'string') {\n return {\n type: 'array',\n name: key,\n title: key,\n properties: generateFromAJV(schema.items),\n buttonText: 'Add',\n arrayType: 'text',\n } as ArrayBaseInput;\n }\n\n return {\n type: 'array',\n name: key,\n title: key,\n properties: generateFromAJV(schema.items),\n buttonText: 'Add',\n arrayType: 'object',\n } as ArrayBaseInput;\n }\n }\n\n return undefined;\n};\n"]}
|
|
@@ -5,5 +5,6 @@ export * from "./url.js";
|
|
|
5
5
|
export * from "./cn.js";
|
|
6
6
|
export * from "./url.js";
|
|
7
7
|
export * from "./theme.js";
|
|
8
|
+
export * from "./navigation.js";
|
|
8
9
|
export type { HubspotEventData, HubspotEventHandlers, HubspotEventName } from "./hubspot.js";
|
|
9
10
|
export { isHubspotEventData } from "./hubspot.js";
|
package/build/cjs/utils/index.js
CHANGED
|
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./url.js"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./cn.js"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./url.js"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./theme.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./navigation.js"), exports);
|
|
12
13
|
var hubspot_1 = require("./hubspot.js");
|
|
13
14
|
Object.defineProperty(exports, "isHubspotEventData", { enumerable: true, get: function () { return hubspot_1.isHubspotEventData; } });
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["utils/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAyB;AACzB,yDAA4B;AAC5B,sDAAyB;AACzB,mDAAsB;AACtB,kDAAqB;AACrB,mDAAsB;AACtB,qDAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["utils/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAyB;AACzB,yDAA4B;AAC5B,sDAAyB;AACzB,mDAAsB;AACtB,kDAAqB;AACrB,mDAAsB;AACtB,qDAAwB;AACxB,0DAA6B;AAG7B,wCAA6C;AAArC,6GAAA,kBAAkB,OAAA","sourcesContent":["export * from './common';\nexport * from './analytics';\nexport * from './blocks';\nexport * from './url';\nexport * from './cn';\nexport * from './url';\nexport * from './theme';\nexport * from './navigation';\n\nexport type {HubspotEventData, HubspotEventHandlers, HubspotEventName} from './hubspot';\nexport {isHubspotEventData} from './hubspot';\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isLogoSet = isLogoSet;
|
|
4
|
+
exports.isHeaderSet = isHeaderSet;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const get_1 = tslib_1.__importDefault(require("lodash/get.js"));
|
|
7
|
+
const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty.js"));
|
|
8
|
+
function isLogoSet(logo) {
|
|
9
|
+
return Boolean((0, get_1.default)(logo, 'icon') || (0, get_1.default)(logo, 'light.icon'));
|
|
10
|
+
}
|
|
11
|
+
function isHeaderSet(header) {
|
|
12
|
+
return !(0, isEmpty_1.default)(header?.leftItems);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.js","sourceRoot":"../../../src","sources":["utils/navigation.ts"],"names":[],"mappings":";;AAKA,8BAEC;AAED,kCAEC;;AAXD,gEAA8B;AAC9B,wEAAsC;AAItC,SAAgB,SAAS,CAAC,IAA+B;IACrD,OAAO,OAAO,CAAC,IAAA,aAAI,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAA,aAAI,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,WAAW,CAAC,MAAmB;IAC3C,OAAO,CAAC,IAAA,iBAAQ,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import _get from 'lodash/get';\nimport _isEmpty from 'lodash/isEmpty';\n\nimport {HeaderData, ThemedNavigationLogoData} from '../models';\n\nexport function isLogoSet(logo?: ThemedNavigationLogoData): logo is ThemedNavigationLogoData {\n return Boolean(_get(logo, 'icon') || _get(logo, 'light.icon'));\n}\n\nexport function isHeaderSet(header?: HeaderData): header is HeaderData {\n return !_isEmpty(header?.leftItems);\n}\n"]}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import AnimateBlock from "../../components/AnimateBlock/AnimateBlock.js";
|
|
3
|
+
import { Grid } from "../../grid/index.js";
|
|
3
4
|
import { BannerCard } from "../../sub-blocks/index.js";
|
|
4
5
|
import { block } from "../../utils/index.js";
|
|
5
6
|
import './Banner.css';
|
|
6
7
|
const b = block('banner-block');
|
|
7
8
|
export const BannerBlock = (props) => {
|
|
8
9
|
const { animated, className, ...bannerProps } = props;
|
|
9
|
-
return (_jsx(AnimateBlock, { className: b(null, className), animate: animated, children: _jsx(BannerCard, { ...bannerProps }) }));
|
|
10
|
+
return (_jsx(AnimateBlock, { className: b(null, className), animate: animated, children: _jsx(Grid, { children: _jsx(BannerCard, { ...bannerProps }) }) }));
|
|
10
11
|
};
|
|
11
12
|
export default BannerBlock;
|
|
12
13
|
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.js","sourceRoot":"../../../../src","sources":["blocks/Banner/Banner.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,sDAAmD;
|
|
1
|
+
{"version":3,"file":"Banner.js","sourceRoot":"../../../../src","sources":["blocks/Banner/Banner.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,sDAAmD;AACtE,OAAO,EAAC,IAAI,EAAC,4BAAmB;AAEhC,OAAO,EAAC,UAAU,EAAC,kCAAyB;AAC5C,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,MAAM,EAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,WAAW,EAAC,GAAG,KAAK,CAAC;IAEpD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,YAC1D,KAAC,IAAI,cACD,KAAC,UAAU,OAAK,WAAW,GAAI,GAC5B,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {Grid} from '../../grid';\nimport {BannerBlockProps} from '../../models';\nimport {BannerCard} from '../../sub-blocks';\nimport {block} from '../../utils';\n\nimport './Banner.scss';\n\nconst b = block('banner-block');\n\nexport const BannerBlock = (props: BannerBlockProps) => {\n const {animated, className, ...bannerProps} = props;\n\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n <Grid>\n <BannerCard {...bannerProps} />\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default BannerBlock;\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { generateFromAJV } from "../../utils/form-generator.js";
|
|
2
|
+
import BannerBlock from "./Banner.js";
|
|
3
|
+
import { BannerCardProps } from "./schema.js";
|
|
4
|
+
const BannerBlockConfig = {
|
|
5
|
+
component: BannerBlock,
|
|
6
|
+
schema: {
|
|
7
|
+
name: 'Banner Block',
|
|
8
|
+
group: 'block',
|
|
9
|
+
inputs: generateFromAJV(BannerCardProps),
|
|
10
|
+
default: {
|
|
11
|
+
color: 'rgba(54, 151, 241, 0.4)',
|
|
12
|
+
title: 'Banner Block',
|
|
13
|
+
subtitle: 'Some sort of description.',
|
|
14
|
+
button: {
|
|
15
|
+
text: 'Read more',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export default BannerBlockConfig;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Banner/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,WAAW,oBAAiB;AACnC,OAAO,EAAC,eAAe,EAAC,oBAAiB;AAEzC,MAAM,iBAAiB,GAAc;IACjC,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE;QACJ,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,eAAe,CAAC,eAAgD,CAAC;QACzE,OAAO,EAAE;YACL,KAAK,EAAE,yBAAyB;YAChC,KAAK,EAAE,cAAc;YACrB,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE;gBACJ,IAAI,EAAE,WAAW;aACpB;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport BannerBlock from './Banner';\nimport {BannerCardProps} from './schema';\n\nconst BannerBlockConfig: BlockData = {\n component: BannerBlock,\n schema: {\n name: 'Banner Block',\n group: 'block',\n inputs: generateFromAJV(BannerCardProps as unknown as JSONSchemaType<{}>),\n default: {\n color: 'rgba(54, 151, 241, 0.4)',\n title: 'Banner Block',\n subtitle: 'Some sort of description.',\n button: {\n text: 'Read more',\n },\n },\n },\n};\n\nexport default BannerBlockConfig;\n"]}
|
|
@@ -2,8 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import isEmpty from "lodash/isEmpty.js";
|
|
4
4
|
import { AnimateBlock, BackgroundImage, Title } from "../../components/index.js";
|
|
5
|
+
import ItemWrap from "../../components/editor/ItemWrap/ItemWrap.js";
|
|
5
6
|
import { useTheme } from "../../context/theme/index.js";
|
|
6
|
-
import { Col, Row } from "../../grid/index.js";
|
|
7
|
+
import { Col, Grid, Row } from "../../grid/index.js";
|
|
7
8
|
import { block, getThemedValue } from "../../utils/index.js";
|
|
8
9
|
import './CardLayout.css';
|
|
9
10
|
const DEFAULT_SIZES = {
|
|
@@ -15,9 +16,9 @@ const b = block('card-layout-block');
|
|
|
15
16
|
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, background, }) => {
|
|
16
17
|
const theme = useTheme();
|
|
17
18
|
const { border, ...backgroundImageProps } = getThemedValue(background || {}, theme);
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return (_jsx(AnimateBlock, { className: b(null, className), animate: animated, children: _jsxs(Grid, { children: [(title || description) && (_jsx(Title, { title: title, subtitle: description, className: titleClassName })), _jsxs("div", { className: b('content', {
|
|
20
|
+
'with-background': !isEmpty(background),
|
|
21
|
+
}), children: [_jsx(BackgroundImage, { className: b('image', { border }), ...backgroundImageProps }), _jsx(Row, { children: React.Children.map(children, (child, index) => (_jsx(Col, { sizes: colSizes, className: b('item'), children: _jsx(ItemWrap, { index: index, children: child }) }, index))) })] })] }) }));
|
|
21
22
|
};
|
|
22
23
|
export default CardLayout;
|
|
23
24
|
//# sourceMappingURL=CardLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardLayout.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/CardLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,OAAO,0BAAuB;AAErC,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,KAAK,EAAC,kCAAyB;AACtE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAuB,GAAG,EAAC,4BAAmB;
|
|
1
|
+
{"version":3,"file":"CardLayout.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/CardLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,OAAO,0BAAuB;AAErC,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,KAAK,EAAC,kCAAyB;AACtE,OAAO,QAAQ,qDAAkD;AACjE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAuB,GAAG,EAAC,4BAAmB;AAE/D,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,aAAa,GAAwB;IACvC,GAAG,EAAE,EAAE;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACR,CAAC;AAMF,MAAM,CAAC,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAErC,MAAM,UAAU,GAAmC,CAAC,EAChD,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,GAAG,aAAa,EACxB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,UAAU,GACb,EAAE,EAAE;IACD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAC,MAAM,EAAE,GAAG,oBAAoB,EAAC,GAAG,cAAc,CAAC,UAAU,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IAClF,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,YAC1D,MAAC,IAAI,eACA,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CACvB,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,GAAI,CAC5E,EACD,eACI,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE;wBACpB,iBAAiB,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;qBAC1C,CAAC,aAEF,KAAC,eAAe,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,MAAM,EAAC,CAAC,KAAM,oBAAoB,GAAI,EAE9E,KAAC,GAAG,cACC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,KAAC,GAAG,IAAa,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAClD,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,KAAK,GAAY,IADpC,KAAK,CAET,CACT,CAAC,GACA,IACJ,IACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import * as React from 'react';\nimport isEmpty from 'lodash/isEmpty';\n\nimport {AnimateBlock, BackgroundImage, Title} from '../../components';\nimport ItemWrap from '../../components/editor/ItemWrap/ItemWrap';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid, GridColumnSizesType, Row} from '../../grid';\nimport {CardLayoutBlockProps as CardLayoutBlockParams, ClassNameProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './CardLayout.scss';\n\nconst DEFAULT_SIZES: GridColumnSizesType = {\n all: 12,\n sm: 6,\n md: 4,\n};\nexport type CardLayoutBlockProps = React.PropsWithChildren<\n Omit<CardLayoutBlockParams, 'children'>\n> &\n ClassNameProps;\n\nconst b = block('card-layout-block');\n\nconst CardLayout: React.FC<CardLayoutBlockProps> = ({\n title,\n description,\n animated,\n colSizes = DEFAULT_SIZES,\n children,\n className,\n titleClassName,\n background,\n}) => {\n const theme = useTheme();\n const {border, ...backgroundImageProps} = getThemedValue(background || {}, theme);\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n <Grid>\n {(title || description) && (\n <Title title={title} subtitle={description} className={titleClassName} />\n )}\n <div\n className={b('content', {\n 'with-background': !isEmpty(background),\n })}\n >\n <BackgroundImage className={b('image', {border})} {...backgroundImageProps} />\n\n <Row>\n {React.Children.map(children, (child, index) => (\n <Col key={index} sizes={colSizes} className={b('item')}>\n <ItemWrap index={index}>{child}</ItemWrap>\n </Col>\n ))}\n </Row>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default CardLayout;\n"]}
|