@blinkpage/composer-tools 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EventEmitter.ts +40 -0
- package/InlineEditorProvider.tsx +30 -0
- package/composer-base-components/base/base.module.scss +638 -0
- package/composer-base-components/base/base.tsx +692 -0
- package/composer-base-components/base/utitilities/iconList.ts +65 -0
- package/composer-base-components/base/utitilities/viewports.module.scss +2 -0
- package/composer-base-components/close/close.module.scss +16 -0
- package/composer-base-components/close/close.tsx +14 -0
- package/composer-base-components/embeded-link/embeded-link.tsx +38 -0
- package/composer-base-components/map/map.tsx +267 -0
- package/composer-base-components/media/media.tsx +0 -0
- package/composer-base-components/modal/index.ts +4 -0
- package/composer-base-components/modal/modal.module.scss +19 -0
- package/composer-base-components/modal/modal.service.ts +27 -0
- package/composer-base-components/modal/modal.tsx +22 -0
- package/composer-base-components/slider/slider.tsx +120 -0
- package/composer-base-components/ui/accordion/Accordion.module.scss +46 -0
- package/composer-base-components/ui/accordion/Accordion.tsx +48 -0
- package/composer-base-components/ui/cookie/Cookie.module.scss +473 -0
- package/composer-base-components/ui/cookie/Cookie.tsx +69 -0
- package/composer-base-components/ui/dropdown/Dropdown.module.scss +79 -0
- package/composer-base-components/ui/dropdown/Dropdown.tsx +133 -0
- package/context/DataContext.tsx +79 -0
- package/custom-component-loader.ts +84 -0
- package/custom-hooks/hex-to-rgb.tsx +6 -0
- package/custom-hooks/input-templates.tsx +243 -0
- package/custom-hooks/load-font.tsx +9 -0
- package/custom-hooks/placeholder-filler.tsx +23 -0
- package/custom-hooks/project.ts +9 -0
- package/editor-components/ComponentRegistery.tsx +42 -0
- package/editor-components/EditorComponent.tsx +1103 -0
- package/editor-components/Image_gallery/image_gallery_1/image-gallery1.module.scss +130 -0
- package/editor-components/Image_gallery/image_gallery_1/image-gallery1.tsx +619 -0
- package/editor-components/Image_gallery/image_gallery_10/image-gallery10.module.scss +179 -0
- package/editor-components/Image_gallery/image_gallery_10/image-gallery10.tsx +682 -0
- package/editor-components/Image_gallery/image_gallery_11/image-gallery11.module.scss +394 -0
- package/editor-components/Image_gallery/image_gallery_11/image-gallery11.tsx +595 -0
- package/editor-components/Image_gallery/image_gallery_2/image-gallery2.module.scss +267 -0
- package/editor-components/Image_gallery/image_gallery_2/image-gallery2.tsx +1028 -0
- package/editor-components/Image_gallery/image_gallery_3/image-gallery3.module.scss +158 -0
- package/editor-components/Image_gallery/image_gallery_3/image-gallery3.tsx +320 -0
- package/editor-components/Image_gallery/image_gallery_4/image-gallery4.module.scss +264 -0
- package/editor-components/Image_gallery/image_gallery_4/image-gallery4.tsx +787 -0
- package/editor-components/Image_gallery/image_gallery_5/image-gallery5.module.scss +216 -0
- package/editor-components/Image_gallery/image_gallery_5/image-gallery5.tsx +404 -0
- package/editor-components/Image_gallery/image_gallery_6/image-gallery6.module.scss +359 -0
- package/editor-components/Image_gallery/image_gallery_6/image-gallery6.tsx +824 -0
- package/editor-components/Image_gallery/image_gallery_7/image-gallery7.module.scss +142 -0
- package/editor-components/Image_gallery/image_gallery_7/image-gallery7.tsx +515 -0
- package/editor-components/Image_gallery/image_gallery_8/image-gallery8.module.scss +96 -0
- package/editor-components/Image_gallery/image_gallery_8/image-gallery8.tsx +443 -0
- package/editor-components/Image_gallery/image_gallery_9/image-gallery9.module.scss +196 -0
- package/editor-components/Image_gallery/image_gallery_9/image-gallery9.tsx +627 -0
- package/editor-components/about/about1/about1.module.scss +162 -0
- package/editor-components/about/about1/about1.tsx +343 -0
- package/editor-components/about/about10/about10.module.scss +273 -0
- package/editor-components/about/about10/about10.tsx +297 -0
- package/editor-components/about/about11/about11.module.scss +191 -0
- package/editor-components/about/about11/about11.tsx +267 -0
- package/editor-components/about/about12/about12.module.scss +195 -0
- package/editor-components/about/about12/about12.tsx +204 -0
- package/editor-components/about/about13/about13.module.scss +144 -0
- package/editor-components/about/about13/about13.tsx +118 -0
- package/editor-components/about/about14/about14.module.scss +193 -0
- package/editor-components/about/about14/about14.tsx +183 -0
- package/editor-components/about/about15/about15.module.scss +190 -0
- package/editor-components/about/about15/about15.tsx +194 -0
- package/editor-components/about/about16/about16.module.scss +198 -0
- package/editor-components/about/about16/about16.tsx +280 -0
- package/editor-components/about/about2/about2.module.scss +139 -0
- package/editor-components/about/about2/about2.tsx +121 -0
- package/editor-components/about/about3/about3.module.scss +249 -0
- package/editor-components/about/about3/about3.tsx +270 -0
- package/editor-components/about/about4/about4.module.scss +50 -0
- package/editor-components/about/about4/about4.tsx +88 -0
- package/editor-components/about/about5/about5.module.scss +188 -0
- package/editor-components/about/about5/about5.tsx +187 -0
- package/editor-components/about/about6/about6.module.scss +84 -0
- package/editor-components/about/about6/about6.tsx +141 -0
- package/editor-components/about/about7/about7.module.scss +268 -0
- package/editor-components/about/about7/about7.tsx +272 -0
- package/editor-components/about/about8/about8.module.scss +159 -0
- package/editor-components/about/about8/about8.tsx +240 -0
- package/editor-components/about/about9/about9.module.scss +79 -0
- package/editor-components/about/about9/about9.tsx +142 -0
- package/editor-components/blog/blog1/blog1.module.scss +542 -0
- package/editor-components/blog/blog1/blog1.tsx +540 -0
- package/editor-components/blog/blog2/blog2.module.scss +377 -0
- package/editor-components/blog/blog2/blog2.tsx +317 -0
- package/editor-components/blog/blog3/blog3.module.scss +477 -0
- package/editor-components/blog/blog3/blog3.tsx +709 -0
- package/editor-components/breadcrumb/breadcrumb1/breadcrumb1.module.scss +142 -0
- package/editor-components/breadcrumb/breadcrumb1/breadcrumb1.tsx +236 -0
- package/editor-components/breadcrumb/breadcrumb2/breadcrumb2.module.scss +139 -0
- package/editor-components/breadcrumb/breadcrumb2/breadcrumb2.tsx +224 -0
- package/editor-components/breadcrumb/breadcrumb3/breadcrumb3.module.scss +193 -0
- package/editor-components/breadcrumb/breadcrumb3/breadcrumb3.tsx +218 -0
- package/editor-components/breadcrumb/breadcrumb4/breadcrumb4.module.scss +201 -0
- package/editor-components/breadcrumb/breadcrumb4/breadcrumb4.tsx +297 -0
- package/editor-components/breadcrumb/breadcrumb5/breadcrumb5.module.scss +90 -0
- package/editor-components/breadcrumb/breadcrumb5/breadcrumb5.tsx +161 -0
- package/editor-components/breadcrumb/breadcrumb6/breadcrumb6.module.scss +168 -0
- package/editor-components/breadcrumb/breadcrumb6/breadcrumb6.tsx +235 -0
- package/editor-components/call_to_action/call_to_action1/call_to_action1.module.scss +41 -0
- package/editor-components/call_to_action/call_to_action1/call_to_action1.tsx +84 -0
- package/editor-components/call_to_action/call_to_action10/call_to_action10.module.scss +96 -0
- package/editor-components/call_to_action/call_to_action10/call_to_action10.tsx +233 -0
- package/editor-components/call_to_action/call_to_action11/call_to_action11.module.scss +99 -0
- package/editor-components/call_to_action/call_to_action11/call_to_action11.tsx +73 -0
- package/editor-components/call_to_action/call_to_action12/call_to_action12.module.scss +146 -0
- package/editor-components/call_to_action/call_to_action12/call_to_action12.tsx +147 -0
- package/editor-components/call_to_action/call_to_action13/call_to_action13.module.scss +149 -0
- package/editor-components/call_to_action/call_to_action13/call_to_action13.tsx +127 -0
- package/editor-components/call_to_action/call_to_action14/call_to_action14.module.scss +176 -0
- package/editor-components/call_to_action/call_to_action14/call_to_action14.tsx +99 -0
- package/editor-components/call_to_action/call_to_action15/call_to_action15.module.scss +32 -0
- package/editor-components/call_to_action/call_to_action15/call_to_action15.tsx +87 -0
- package/editor-components/call_to_action/call_to_action16/call_to_action16.module.scss +54 -0
- package/editor-components/call_to_action/call_to_action16/call_to_action16.tsx +95 -0
- package/editor-components/call_to_action/call_to_action17/call_to_action17.module.scss +43 -0
- package/editor-components/call_to_action/call_to_action17/call_to_action17.tsx +80 -0
- package/editor-components/call_to_action/call_to_action18/call_to_action18.module.scss +88 -0
- package/editor-components/call_to_action/call_to_action18/call_to_action18.tsx +104 -0
- package/editor-components/call_to_action/call_to_action2/call_to_action2.module.scss +271 -0
- package/editor-components/call_to_action/call_to_action2/call_to_action2.tsx +221 -0
- package/editor-components/call_to_action/call_to_action20/call_to_action20.module.scss +89 -0
- package/editor-components/call_to_action/call_to_action20/call_to_action20.tsx +96 -0
- package/editor-components/call_to_action/call_to_action21/call_to_action21.module.scss +84 -0
- package/editor-components/call_to_action/call_to_action21/call_to_action21.tsx +111 -0
- package/editor-components/call_to_action/call_to_action22/call_to_action22.module.scss +83 -0
- package/editor-components/call_to_action/call_to_action22/call_to_action22.tsx +118 -0
- package/editor-components/call_to_action/call_to_action3/call_to_action3.module.scss +94 -0
- package/editor-components/call_to_action/call_to_action3/call_to_action3.tsx +121 -0
- package/editor-components/call_to_action/call_to_action4/call_to_action4.module.scss +96 -0
- package/editor-components/call_to_action/call_to_action4/call_to_action4.tsx +253 -0
- package/editor-components/call_to_action/call_to_action5/call_to_action5.module.scss +185 -0
- package/editor-components/call_to_action/call_to_action5/call_to_action5.tsx +168 -0
- package/editor-components/call_to_action/call_to_action6/call_to_action6.module.scss +188 -0
- package/editor-components/call_to_action/call_to_action6/call_to_action6.tsx +230 -0
- package/editor-components/call_to_action/call_to_action7/call_to_action7.module.scss +158 -0
- package/editor-components/call_to_action/call_to_action7/call_to_action7.tsx +193 -0
- package/editor-components/call_to_action/call_to_action8/call_to_action8.module.scss +75 -0
- package/editor-components/call_to_action/call_to_action8/call_to_action8.tsx +113 -0
- package/editor-components/call_to_action/call_to_action9/call_to_action9.module.scss +71 -0
- package/editor-components/call_to_action/call_to_action9/call_to_action9.tsx +258 -0
- package/editor-components/coming-soon/coming-soon1/coming-soon1.module.scss +100 -0
- package/editor-components/coming-soon/coming-soon1/coming-soon1.tsx +200 -0
- package/editor-components/coming-soon/coming-soon2/coming-soon2.module.scss +230 -0
- package/editor-components/coming-soon/coming-soon2/coming-soon2.tsx +355 -0
- package/editor-components/coming-soon/coming-soon3/coming-soon3.module.scss +205 -0
- package/editor-components/coming-soon/coming-soon3/coming-soon3.tsx +250 -0
- package/editor-components/coming-soon/coming-soon4/coming-soon4.module.scss +139 -0
- package/editor-components/coming-soon/coming-soon4/coming-soon4.tsx +228 -0
- package/editor-components/comparison/comparison1/comparison1.module.scss +320 -0
- package/editor-components/comparison/comparison1/comparison1.tsx +315 -0
- package/editor-components/contacts/form1/form1.module.scss +77 -0
- package/editor-components/contacts/form1/form1.tsx +300 -0
- package/editor-components/contacts/form2/form2.module.scss +183 -0
- package/editor-components/contacts/form2/form2.tsx +425 -0
- package/editor-components/contacts/form3/form3.module.scss +496 -0
- package/editor-components/contacts/form3/form3.tsx +782 -0
- package/editor-components/contacts/form4/form4.module.scss +192 -0
- package/editor-components/contacts/form4/form4.tsx +593 -0
- package/editor-components/contacts/form5/form5.module.scss +159 -0
- package/editor-components/contacts/form5/form5.tsx +615 -0
- package/editor-components/contacts/form6/form6.module.scss +177 -0
- package/editor-components/contacts/form6/form6.tsx +580 -0
- package/editor-components/contacts/form7/form7.module.scss +167 -0
- package/editor-components/contacts/form7/form7.tsx +417 -0
- package/editor-components/contacts/form8/form8.module.scss +151 -0
- package/editor-components/contacts/form8/form8.tsx +506 -0
- package/editor-components/contacts/form9/form9.module.scss +314 -0
- package/editor-components/contacts/form9/form9.tsx +923 -0
- package/editor-components/download/download1/download1.module.scss +109 -0
- package/editor-components/download/download1/download1.tsx +119 -0
- package/editor-components/download/download10/download10.module.scss +142 -0
- package/editor-components/download/download10/download10.tsx +254 -0
- package/editor-components/download/download11/download11.module.scss +201 -0
- package/editor-components/download/download11/download11.tsx +253 -0
- package/editor-components/download/download2/download2.module.scss +95 -0
- package/editor-components/download/download2/download2.tsx +249 -0
- package/editor-components/download/download3/download3.module.scss +359 -0
- package/editor-components/download/download3/download3.tsx +185 -0
- package/editor-components/download/download4/download4.module.scss +102 -0
- package/editor-components/download/download4/download4.tsx +119 -0
- package/editor-components/download/download5/download5.module.scss +135 -0
- package/editor-components/download/download5/download5.tsx +135 -0
- package/editor-components/download/download6/download6.module.scss +83 -0
- package/editor-components/download/download6/download6.tsx +122 -0
- package/editor-components/download/download7/download7.module.scss +136 -0
- package/editor-components/download/download7/download7.tsx +135 -0
- package/editor-components/download/download8/download8.module.scss +316 -0
- package/editor-components/download/download8/download8.tsx +248 -0
- package/editor-components/download/download9/download9.module.scss +284 -0
- package/editor-components/download/download9/download9.tsx +154 -0
- package/editor-components/e-commerce/e-commerce1/e-commerce1.module.scss +459 -0
- package/editor-components/e-commerce/e-commerce1/e-commerce1.tsx +809 -0
- package/editor-components/e-commerce/e-commerce2/e-commerce2.module.scss +318 -0
- package/editor-components/e-commerce/e-commerce2/e-commerce2.tsx +3361 -0
- package/editor-components/e-commerce/e-commerce3/e-commerce3.module.scss +94 -0
- package/editor-components/e-commerce/e-commerce3/e-commerce3.tsx +350 -0
- package/editor-components/e-commerce/e-commerce4/e-commerce4.module.scss +289 -0
- package/editor-components/e-commerce/e-commerce4/e-commerce4.tsx +2234 -0
- package/editor-components/e-commerce/e-commerce5/e-commerce5.module.scss +264 -0
- package/editor-components/e-commerce/e-commerce5/e-commerce5.tsx +542 -0
- package/editor-components/e-commerce/e-commerce6/e-commerce6.module.scss +489 -0
- package/editor-components/e-commerce/e-commerce6/e-commerce6.tsx +518 -0
- package/editor-components/e-commerce/e-commerce7/e-commerce7.module.scss +688 -0
- package/editor-components/e-commerce/e-commerce7/e-commerce7.tsx +1442 -0
- package/editor-components/e-commerce/e-commerce8/e-commerce8.module.scss +310 -0
- package/editor-components/e-commerce/e-commerce8/e-commerce8.tsx +957 -0
- package/editor-components/faq/faq1/faq1.module.scss +93 -0
- package/editor-components/faq/faq1/faq1.tsx +195 -0
- package/editor-components/faq/faq10/faq10.module.scss +153 -0
- package/editor-components/faq/faq10/faq10.tsx +452 -0
- package/editor-components/faq/faq2/faq2.module.scss +123 -0
- package/editor-components/faq/faq2/faq2.tsx +374 -0
- package/editor-components/faq/faq3/faq3.module.scss +144 -0
- package/editor-components/faq/faq3/faq3.tsx +407 -0
- package/editor-components/faq/faq4/faq4.module.scss +124 -0
- package/editor-components/faq/faq4/faq4.tsx +303 -0
- package/editor-components/faq/faq5/faq5.module.scss +151 -0
- package/editor-components/faq/faq5/faq5.tsx +614 -0
- package/editor-components/faq/faq6/faq6.module.scss +116 -0
- package/editor-components/faq/faq6/faq6.tsx +241 -0
- package/editor-components/faq/faq7/faq7.module.scss +98 -0
- package/editor-components/faq/faq7/faq7.tsx +298 -0
- package/editor-components/faq/faq8/faq8.module.scss +217 -0
- package/editor-components/faq/faq8/faq8.tsx +796 -0
- package/editor-components/faq/faq9/faq9.module.scss +137 -0
- package/editor-components/faq/faq9/faq9.tsx +466 -0
- package/editor-components/feature/feature1/feature1.module.scss +115 -0
- package/editor-components/feature/feature1/feature1.tsx +148 -0
- package/editor-components/feature/feature10/feature10.module.scss +191 -0
- package/editor-components/feature/feature10/feature10.tsx +468 -0
- package/editor-components/feature/feature11/feature11.module.scss +99 -0
- package/editor-components/feature/feature11/feature11.tsx +337 -0
- package/editor-components/feature/feature12/feature12.module.scss +169 -0
- package/editor-components/feature/feature12/feature12.tsx +325 -0
- package/editor-components/feature/feature13/feature13.module.scss +151 -0
- package/editor-components/feature/feature13/feature13.tsx +680 -0
- package/editor-components/feature/feature14/feature14.module.scss +119 -0
- package/editor-components/feature/feature14/feature14.tsx +284 -0
- package/editor-components/feature/feature15/feature15.module.scss +214 -0
- package/editor-components/feature/feature15/feature15.tsx +344 -0
- package/editor-components/feature/feature16/feature16.module.scss +234 -0
- package/editor-components/feature/feature16/feature16.tsx +527 -0
- package/editor-components/feature/feature17/feature17.module.scss +187 -0
- package/editor-components/feature/feature17/feature17.tsx +527 -0
- package/editor-components/feature/feature18/feature18.module.scss +213 -0
- package/editor-components/feature/feature18/feature18.tsx +405 -0
- package/editor-components/feature/feature19/feature19.module.scss +212 -0
- package/editor-components/feature/feature19/feature19.tsx +239 -0
- package/editor-components/feature/feature2/feature2.module.scss +120 -0
- package/editor-components/feature/feature2/feature2.tsx +246 -0
- package/editor-components/feature/feature20/feature20.module.scss +239 -0
- package/editor-components/feature/feature20/feature20.tsx +238 -0
- package/editor-components/feature/feature21/feature21.module.scss +268 -0
- package/editor-components/feature/feature21/feature21.tsx +352 -0
- package/editor-components/feature/feature22/feature22.module.scss +191 -0
- package/editor-components/feature/feature22/feature22.tsx +266 -0
- package/editor-components/feature/feature24/feature24.module.scss +121 -0
- package/editor-components/feature/feature24/feature24.tsx +381 -0
- package/editor-components/feature/feature25/feature25.module.scss +213 -0
- package/editor-components/feature/feature25/feature25.tsx +398 -0
- package/editor-components/feature/feature26/feature26.module.scss +188 -0
- package/editor-components/feature/feature26/feature26.tsx +139 -0
- package/editor-components/feature/feature27/feature27.module.scss +155 -0
- package/editor-components/feature/feature27/feature27.tsx +164 -0
- package/editor-components/feature/feature28/feature28.module.scss +89 -0
- package/editor-components/feature/feature28/feature28.tsx +123 -0
- package/editor-components/feature/feature29/feature29.module.scss +285 -0
- package/editor-components/feature/feature29/feature29.tsx +482 -0
- package/editor-components/feature/feature3/feature3.module.scss +335 -0
- package/editor-components/feature/feature3/feature3.tsx +418 -0
- package/editor-components/feature/feature30/feature30.module.scss +85 -0
- package/editor-components/feature/feature30/feature30.tsx +316 -0
- package/editor-components/feature/feature31/feature31.module.scss +101 -0
- package/editor-components/feature/feature31/feature31.tsx +315 -0
- package/editor-components/feature/feature32/feature32.module.scss +131 -0
- package/editor-components/feature/feature32/feature32.tsx +226 -0
- package/editor-components/feature/feature33/feature33.module.scss +168 -0
- package/editor-components/feature/feature33/feature33.tsx +285 -0
- package/editor-components/feature/feature34/feature34.module.scss +151 -0
- package/editor-components/feature/feature34/feature34.tsx +207 -0
- package/editor-components/feature/feature35/feature35.module.scss +145 -0
- package/editor-components/feature/feature35/feature35.tsx +422 -0
- package/editor-components/feature/feature36/feature36.module.scss +106 -0
- package/editor-components/feature/feature36/feature36.tsx +194 -0
- package/editor-components/feature/feature37/feature37.module.scss +145 -0
- package/editor-components/feature/feature37/feature37.tsx +249 -0
- package/editor-components/feature/feature38/feature38.module.scss +174 -0
- package/editor-components/feature/feature38/feature38.tsx +402 -0
- package/editor-components/feature/feature39/feature39.module.scss +198 -0
- package/editor-components/feature/feature39/feature39.tsx +367 -0
- package/editor-components/feature/feature4/feature4.module.scss +220 -0
- package/editor-components/feature/feature4/feature4.tsx +543 -0
- package/editor-components/feature/feature40/feature40.module.scss +211 -0
- package/editor-components/feature/feature40/feature40.tsx +424 -0
- package/editor-components/feature/feature41/feature41.module.scss +142 -0
- package/editor-components/feature/feature41/feature41.tsx +255 -0
- package/editor-components/feature/feature43/feature43.module.scss +133 -0
- package/editor-components/feature/feature43/feature43.tsx +305 -0
- package/editor-components/feature/feature44/feature44.module.scss +211 -0
- package/editor-components/feature/feature44/feature44.tsx +331 -0
- package/editor-components/feature/feature45/feature45.module.scss +144 -0
- package/editor-components/feature/feature45/feature45.tsx +482 -0
- package/editor-components/feature/feature46/feature46.module.scss +131 -0
- package/editor-components/feature/feature46/feature46.tsx +352 -0
- package/editor-components/feature/feature47/feature47.module.scss +88 -0
- package/editor-components/feature/feature47/feature47.tsx +356 -0
- package/editor-components/feature/feature48/feature48.module.scss +143 -0
- package/editor-components/feature/feature48/feature48.tsx +302 -0
- package/editor-components/feature/feature49/feature49.module.scss +141 -0
- package/editor-components/feature/feature49/feature49.tsx +294 -0
- package/editor-components/feature/feature5/feature5.module.scss +534 -0
- package/editor-components/feature/feature5/feature5.tsx +509 -0
- package/editor-components/feature/feature6/feature6.module.scss +150 -0
- package/editor-components/feature/feature6/feature6.tsx +268 -0
- package/editor-components/feature/feature7/feature7.module.scss +159 -0
- package/editor-components/feature/feature7/feature7.tsx +263 -0
- package/editor-components/feature/feature8/feature8.module.scss +106 -0
- package/editor-components/feature/feature8/feature8.tsx +474 -0
- package/editor-components/feature/feature9/feature9.module.scss +172 -0
- package/editor-components/feature/feature9/feature9.tsx +377 -0
- package/editor-components/feedback/feedbackmodal1/feedbackmodal1.module.scss +305 -0
- package/editor-components/feedback/feedbackmodal1/feedbackmodal1.tsx +386 -0
- package/editor-components/footer/footer1/footer1.module.scss +445 -0
- package/editor-components/footer/footer1/footer1.tsx +474 -0
- package/editor-components/footer/footer10/footer10.module.scss +391 -0
- package/editor-components/footer/footer10/footer10.tsx +371 -0
- package/editor-components/footer/footer11/footer11.module.scss +143 -0
- package/editor-components/footer/footer11/footer11.tsx +196 -0
- package/editor-components/footer/footer12/footer12.module.scss +293 -0
- package/editor-components/footer/footer12/footer12.tsx +568 -0
- package/editor-components/footer/footer2/footer2.module.scss +154 -0
- package/editor-components/footer/footer2/footer2.tsx +385 -0
- package/editor-components/footer/footer3/footer3.module.scss +420 -0
- package/editor-components/footer/footer3/footer3.tsx +875 -0
- package/editor-components/footer/footer4/footer4.module.scss +477 -0
- package/editor-components/footer/footer4/footer4.tsx +703 -0
- package/editor-components/footer/footer5/footer5.module.scss +283 -0
- package/editor-components/footer/footer5/footer5.tsx +208 -0
- package/editor-components/footer/footer6/footer6.module.scss +155 -0
- package/editor-components/footer/footer6/footer6.tsx +372 -0
- package/editor-components/footer/footer7/footer7.module.scss +197 -0
- package/editor-components/footer/footer7/footer7.tsx +190 -0
- package/editor-components/footer/footer8/footer8.module.scss +456 -0
- package/editor-components/footer/footer8/footer8.tsx +715 -0
- package/editor-components/footer/footer9/footer9.module.scss +386 -0
- package/editor-components/footer/footer9/footer9.tsx +514 -0
- package/editor-components/hero-section/hero-section1/hero-section1.module.scss +578 -0
- package/editor-components/hero-section/hero-section1/hero-section1.tsx +493 -0
- package/editor-components/hero-section/hero-section10/hero-section10.module.scss +492 -0
- package/editor-components/hero-section/hero-section10/hero-section10.tsx +611 -0
- package/editor-components/hero-section/hero-section11/hero-section11.module.scss +295 -0
- package/editor-components/hero-section/hero-section11/hero-section11.tsx +224 -0
- package/editor-components/hero-section/hero-section12/hero-section12.module.scss +504 -0
- package/editor-components/hero-section/hero-section12/hero-section12.tsx +974 -0
- package/editor-components/hero-section/hero-section13/hero-section13.module.scss +171 -0
- package/editor-components/hero-section/hero-section13/hero-section13.tsx +417 -0
- package/editor-components/hero-section/hero-section14/hero-section14.module.scss +210 -0
- package/editor-components/hero-section/hero-section14/hero-section14.tsx +333 -0
- package/editor-components/hero-section/hero-section15/hero-section15.module.scss +330 -0
- package/editor-components/hero-section/hero-section15/hero-section15.tsx +254 -0
- package/editor-components/hero-section/hero-section16/hero-section16.module.scss +392 -0
- package/editor-components/hero-section/hero-section16/hero-section16.tsx +369 -0
- package/editor-components/hero-section/hero-section17/hero-section17.module.scss +240 -0
- package/editor-components/hero-section/hero-section17/hero-section17.tsx +263 -0
- package/editor-components/hero-section/hero-section18/hero-section18.module.scss +403 -0
- package/editor-components/hero-section/hero-section18/hero-section18.tsx +569 -0
- package/editor-components/hero-section/hero-section19/hero-section19.module.scss +333 -0
- package/editor-components/hero-section/hero-section19/hero-section19.tsx +384 -0
- package/editor-components/hero-section/hero-section2/hero-section2.module.scss +329 -0
- package/editor-components/hero-section/hero-section2/hero-section2.tsx +393 -0
- package/editor-components/hero-section/hero-section20/hero-section20.module.scss +475 -0
- package/editor-components/hero-section/hero-section20/hero-section20.tsx +994 -0
- package/editor-components/hero-section/hero-section21/hero-section21.module.scss +264 -0
- package/editor-components/hero-section/hero-section21/hero-section21.tsx +249 -0
- package/editor-components/hero-section/hero-section22/hero-section22.module.scss +394 -0
- package/editor-components/hero-section/hero-section22/hero-section22.tsx +421 -0
- package/editor-components/hero-section/hero-section23/hero-section23.module.scss +573 -0
- package/editor-components/hero-section/hero-section23/hero-section23.tsx +592 -0
- package/editor-components/hero-section/hero-section24/hero-section24.module.scss +531 -0
- package/editor-components/hero-section/hero-section24/hero-section24.tsx +462 -0
- package/editor-components/hero-section/hero-section25/hero-section25.module.scss +538 -0
- package/editor-components/hero-section/hero-section25/hero-section25.tsx +656 -0
- package/editor-components/hero-section/hero-section26/hero-section26.module.scss +242 -0
- package/editor-components/hero-section/hero-section26/hero-section26.tsx +441 -0
- package/editor-components/hero-section/hero-section27/hero-section27.module.scss +684 -0
- package/editor-components/hero-section/hero-section27/hero-section27.tsx +717 -0
- package/editor-components/hero-section/hero-section28/hero-section28.module.scss +368 -0
- package/editor-components/hero-section/hero-section28/hero-section28.tsx +477 -0
- package/editor-components/hero-section/hero-section29/hero-section29.module.scss +298 -0
- package/editor-components/hero-section/hero-section29/hero-section29.tsx +334 -0
- package/editor-components/hero-section/hero-section3/hero-section3.module.scss +810 -0
- package/editor-components/hero-section/hero-section3/hero-section3.tsx +468 -0
- package/editor-components/hero-section/hero-section30/hero-section30.module.scss +234 -0
- package/editor-components/hero-section/hero-section30/hero-section30.tsx +208 -0
- package/editor-components/hero-section/hero-section31/hero-section31.module.scss +468 -0
- package/editor-components/hero-section/hero-section31/hero-section31.tsx +1083 -0
- package/editor-components/hero-section/hero-section32/hero-section32.module.scss +488 -0
- package/editor-components/hero-section/hero-section32/hero-section32.tsx +530 -0
- package/editor-components/hero-section/hero-section33/hero-section33.module.scss +401 -0
- package/editor-components/hero-section/hero-section33/hero-section33.tsx +471 -0
- package/editor-components/hero-section/hero-section34/hero-section34.module.scss +384 -0
- package/editor-components/hero-section/hero-section34/hero-section34.tsx +465 -0
- package/editor-components/hero-section/hero-section35/hero-section35.module.scss +522 -0
- package/editor-components/hero-section/hero-section35/hero-section35.tsx +441 -0
- package/editor-components/hero-section/hero-section38/hero-section38.module.scss +617 -0
- package/editor-components/hero-section/hero-section38/hero-section38.tsx +458 -0
- package/editor-components/hero-section/hero-section4/hero-section4.module.scss +283 -0
- package/editor-components/hero-section/hero-section4/hero-section4.tsx +292 -0
- package/editor-components/hero-section/hero-section5/hero-section5.module.scss +178 -0
- package/editor-components/hero-section/hero-section5/hero-section5.tsx +159 -0
- package/editor-components/hero-section/hero-section6/hero-section6.module.scss +339 -0
- package/editor-components/hero-section/hero-section6/hero-section6.tsx +244 -0
- package/editor-components/hero-section/hero-section7/hero-section7.module.scss +117 -0
- package/editor-components/hero-section/hero-section7/hero-section7.tsx +277 -0
- package/editor-components/hero-section/hero-section8/hero-section8.module.scss +296 -0
- package/editor-components/hero-section/hero-section8/hero-section8.tsx +500 -0
- package/editor-components/hero-section/hero-section9/hero-section9.module.scss +292 -0
- package/editor-components/hero-section/hero-section9/hero-section9.tsx +536 -0
- package/editor-components/intro-section/intro-section1/intro-section1.module.scss +392 -0
- package/editor-components/intro-section/intro-section1/intro-section1.tsx +263 -0
- package/editor-components/intro-section/intro-section10/intro-section10.module.scss +182 -0
- package/editor-components/intro-section/intro-section10/intro-section10.tsx +167 -0
- package/editor-components/intro-section/intro-section11/intro-section11.module.scss +121 -0
- package/editor-components/intro-section/intro-section11/intro-section11.tsx +142 -0
- package/editor-components/intro-section/intro-section2/intro-section2.module.scss +125 -0
- package/editor-components/intro-section/intro-section2/intro-section2.tsx +147 -0
- package/editor-components/intro-section/intro-section3/intro-section3.module.scss +106 -0
- package/editor-components/intro-section/intro-section3/intro-section3.tsx +140 -0
- package/editor-components/intro-section/intro-section4/intro-section4.module.scss +102 -0
- package/editor-components/intro-section/intro-section4/intro-section4.tsx +128 -0
- package/editor-components/intro-section/intro-section5/intro-section5.module.scss +185 -0
- package/editor-components/intro-section/intro-section5/intro-section5.tsx +142 -0
- package/editor-components/intro-section/intro-section6/intro-section6.module.scss +219 -0
- package/editor-components/intro-section/intro-section6/intro-section6.tsx +269 -0
- package/editor-components/intro-section/intro-section7/intro-section7.module.scss +147 -0
- package/editor-components/intro-section/intro-section7/intro-section7.tsx +161 -0
- package/editor-components/intro-section/intro-section8/intro-section8.module.scss +151 -0
- package/editor-components/intro-section/intro-section8/intro-section8.tsx +182 -0
- package/editor-components/intro-section/intro-section9/intro-section9.module.scss +66 -0
- package/editor-components/intro-section/intro-section9/intro-section9.tsx +132 -0
- package/editor-components/legal/privacy-policy.module.scss +19 -0
- package/editor-components/legal/privacy-policy.tsx +126 -0
- package/editor-components/list/list1/list1.module.scss +224 -0
- package/editor-components/list/list1/list1.tsx +386 -0
- package/editor-components/list/list10/list10.module.scss +293 -0
- package/editor-components/list/list10/list10.tsx +240 -0
- package/editor-components/list/list11/list11.module.scss +164 -0
- package/editor-components/list/list11/list11.tsx +277 -0
- package/editor-components/list/list12/list12.module.scss +207 -0
- package/editor-components/list/list12/list12.tsx +241 -0
- package/editor-components/list/list2/list2.module.scss +178 -0
- package/editor-components/list/list2/list2.tsx +416 -0
- package/editor-components/list/list3/list3.module.scss +239 -0
- package/editor-components/list/list3/list3.tsx +337 -0
- package/editor-components/list/list4/list4.module.scss +243 -0
- package/editor-components/list/list4/list4.tsx +221 -0
- package/editor-components/list/list5/list5.module.scss +183 -0
- package/editor-components/list/list5/list5.tsx +323 -0
- package/editor-components/list/list6/list6.module.scss +230 -0
- package/editor-components/list/list6/list6.tsx +263 -0
- package/editor-components/list/list7/list7.module.scss +127 -0
- package/editor-components/list/list7/list7.tsx +178 -0
- package/editor-components/list/list8/list8.module.scss +146 -0
- package/editor-components/list/list8/list8.tsx +256 -0
- package/editor-components/list/list9/list9.module.scss +320 -0
- package/editor-components/list/list9/list9.tsx +265 -0
- package/editor-components/location/location1/location1.module.scss +218 -0
- package/editor-components/location/location1/location1.tsx +387 -0
- package/editor-components/location/location2/location2.module.scss +181 -0
- package/editor-components/location/location2/location2.tsx +507 -0
- package/editor-components/location/location3/location3.module.scss +118 -0
- package/editor-components/location/location3/location3.tsx +347 -0
- package/editor-components/location/location4/location4.module.scss +138 -0
- package/editor-components/location/location4/location4.tsx +221 -0
- package/editor-components/location/location5/location5.module.scss +89 -0
- package/editor-components/location/location5/location5.tsx +258 -0
- package/editor-components/location/location6/location6.module.scss +211 -0
- package/editor-components/location/location6/location6.tsx +476 -0
- package/editor-components/location/location7/location7.module.scss +245 -0
- package/editor-components/location/location7/location7.tsx +347 -0
- package/editor-components/location/themes.tsx +229 -0
- package/editor-components/logo-clouds/logo-comp1/logo-comp1.module.scss +36 -0
- package/editor-components/logo-clouds/logo-comp1/logo-comp1.tsx +119 -0
- package/editor-components/logo-clouds/logo-comp10/logo-comp10.module.scss +83 -0
- package/editor-components/logo-clouds/logo-comp10/logo-comp10.tsx +336 -0
- package/editor-components/logo-clouds/logo-comp2/logo-comp2.module.scss +90 -0
- package/editor-components/logo-clouds/logo-comp2/logo-comp2.tsx +139 -0
- package/editor-components/logo-clouds/logo-comp3/logo-comp3.module.scss +110 -0
- package/editor-components/logo-clouds/logo-comp3/logo-comp3.tsx +144 -0
- package/editor-components/logo-clouds/logo-comp4/logo-comp4.module.scss +96 -0
- package/editor-components/logo-clouds/logo-comp4/logo-comp4.tsx +151 -0
- package/editor-components/logo-clouds/logo-comp5/logo-comp5.module.scss +70 -0
- package/editor-components/logo-clouds/logo-comp5/logo-comp5.tsx +116 -0
- package/editor-components/logo-clouds/logo-comp6/logo-comp6.module.scss +58 -0
- package/editor-components/logo-clouds/logo-comp6/logo-comp6.tsx +245 -0
- package/editor-components/logo-clouds/logo-comp7/logo-comp7.module.scss +114 -0
- package/editor-components/logo-clouds/logo-comp7/logo-comp7.tsx +100 -0
- package/editor-components/logo-clouds/logo-comp8/logo-comp8.module.scss +116 -0
- package/editor-components/logo-clouds/logo-comp8/logo-comp8.tsx +275 -0
- package/editor-components/logo-clouds/logo-comp9/logo-comp9.module.scss +130 -0
- package/editor-components/logo-clouds/logo-comp9/logo-comp9.tsx +206 -0
- package/editor-components/modal/confirmation-modal-2/confirmation-modal-2.module.scss +384 -0
- package/editor-components/modal/confirmation-modal-2/confirmation-modal-2.tsx +355 -0
- package/editor-components/modal/confirmation-modal1/confirmationmodal1.module.scss +113 -0
- package/editor-components/modal/confirmation-modal1/confirmationmodal1.tsx +106 -0
- package/editor-components/modal/formmodal1/formmodal1.module.scss +156 -0
- package/editor-components/modal/formmodal1/formmodal1.tsx +563 -0
- package/editor-components/modal/notice-modal/notice.module.scss +92 -0
- package/editor-components/modal/notice-modal/notice.tsx +97 -0
- package/editor-components/modal/notification-modal1/notificationmodal1.module.scss +166 -0
- package/editor-components/modal/notification-modal1/notificationmodal1.tsx +136 -0
- package/editor-components/modal/notificationmodal2/notificationmodal2.module.scss +134 -0
- package/editor-components/modal/notificationmodal2/notificationmodal2.tsx +170 -0
- package/editor-components/modal/subscription-modal/subscription-modal.module.scss +151 -0
- package/editor-components/modal/subscription-modal/subscription-modal.tsx +141 -0
- package/editor-components/modal/survey-modal/survey-modal.module.scss +277 -0
- package/editor-components/modal/survey-modal/survey-modal.tsx +327 -0
- package/editor-components/modal/terms-of-use/terms-of-use.module.scss +214 -0
- package/editor-components/modal/terms-of-use/terms-of-use.tsx +142 -0
- package/editor-components/navigators/navbar1/navbar1.module.scss +633 -0
- package/editor-components/navigators/navbar1/navbar1.tsx +1644 -0
- package/editor-components/navigators/navbar10/navbar10.module.scss +961 -0
- package/editor-components/navigators/navbar10/navbar10.tsx +3070 -0
- package/editor-components/navigators/navbar2/navbar2.module.scss +559 -0
- package/editor-components/navigators/navbar2/navbar2.tsx +1009 -0
- package/editor-components/navigators/navbar3/navbar3.module.scss +583 -0
- package/editor-components/navigators/navbar3/navbar3.tsx +1790 -0
- package/editor-components/navigators/navbar4/navbar4.module.scss +708 -0
- package/editor-components/navigators/navbar4/navbar4.tsx +1864 -0
- package/editor-components/navigators/navbar5/navbar5.module.scss +415 -0
- package/editor-components/navigators/navbar5/navbar5.tsx +639 -0
- package/editor-components/navigators/navbar6/navbar6.module.scss +586 -0
- package/editor-components/navigators/navbar6/navbar6.tsx +1613 -0
- package/editor-components/navigators/navbar7/navbar7.module.scss +598 -0
- package/editor-components/navigators/navbar7/navbar7.tsx +1638 -0
- package/editor-components/navigators/navbar8/navbar8.module.scss +444 -0
- package/editor-components/navigators/navbar8/navbar8.tsx +637 -0
- package/editor-components/navigators/navbar9/navbar9.module.scss +604 -0
- package/editor-components/navigators/navbar9/navbar9.tsx +1610 -0
- package/editor-components/portfolio/portfolio1/portfolio1.module.scss +333 -0
- package/editor-components/portfolio/portfolio1/portfolio1.tsx +815 -0
- package/editor-components/portfolio/portfolio2/portfolio2.module.scss +164 -0
- package/editor-components/portfolio/portfolio2/portfolio2.tsx +332 -0
- package/editor-components/portfolio/portfolio3/portfolio3.module.scss +438 -0
- package/editor-components/portfolio/portfolio3/portfolio3.tsx +915 -0
- package/editor-components/pricing-table/pricing-table1/pricing-table1.module.scss +204 -0
- package/editor-components/pricing-table/pricing-table1/pricing-table1.tsx +698 -0
- package/editor-components/pricing-table/pricing-table2/pricing-table2.module.scss +142 -0
- package/editor-components/pricing-table/pricing-table2/pricing-table2.tsx +703 -0
- package/editor-components/pricing-table/pricing-table3/pricing-table3.module.scss +210 -0
- package/editor-components/pricing-table/pricing-table3/pricing-table3.tsx +430 -0
- package/editor-components/pricing-table/pricing-table4/pricing-table4.module.scss +170 -0
- package/editor-components/pricing-table/pricing-table4/pricing-table4.tsx +594 -0
- package/editor-components/pricing-table/pricing-table5/pricing-table5.module.scss +316 -0
- package/editor-components/pricing-table/pricing-table5/pricing-table5.tsx +267 -0
- package/editor-components/pricing-table/pricing-table6/pricing-table6.module.scss +409 -0
- package/editor-components/pricing-table/pricing-table6/pricing-table6.tsx +1189 -0
- package/editor-components/pricing-table/pricing-table7/pricing-table7.module.scss +269 -0
- package/editor-components/pricing-table/pricing-table7/pricing-table7.tsx +1161 -0
- package/editor-components/pricing-table/pricing-table8/pricing-table8.module.scss +366 -0
- package/editor-components/pricing-table/pricing-table8/pricing-table8.tsx +574 -0
- package/editor-components/pricing-table/pricing-table9/pricing-table9.module.scss +357 -0
- package/editor-components/pricing-table/pricing-table9/pricing-table9.tsx +857 -0
- package/editor-components/registerables.tsx +681 -0
- package/editor-components/slider/slider1/slider1.module.scss +324 -0
- package/editor-components/slider/slider1/slider1.tsx +254 -0
- package/editor-components/slider/slider10/slider10.module.scss +287 -0
- package/editor-components/slider/slider10/slider10.tsx +446 -0
- package/editor-components/slider/slider11/slider11.module.scss +216 -0
- package/editor-components/slider/slider11/slider11.tsx +366 -0
- package/editor-components/slider/slider12/slider12.module.scss +273 -0
- package/editor-components/slider/slider12/slider12.tsx +535 -0
- package/editor-components/slider/slider2/slider2.module.scss +213 -0
- package/editor-components/slider/slider2/slider2.tsx +331 -0
- package/editor-components/slider/slider3/slider3.module.scss +227 -0
- package/editor-components/slider/slider3/slider3.tsx +280 -0
- package/editor-components/slider/slider4/slider4.module.scss +221 -0
- package/editor-components/slider/slider4/slider4.tsx +334 -0
- package/editor-components/slider/slider5/slider5.module.scss +39 -0
- package/editor-components/slider/slider5/slider5.tsx +106 -0
- package/editor-components/slider/slider6/slider6.module.scss +205 -0
- package/editor-components/slider/slider6/slider6.tsx +337 -0
- package/editor-components/slider/slider7/slider7.module.scss +134 -0
- package/editor-components/slider/slider7/slider7.tsx +270 -0
- package/editor-components/slider/slider8/slider8.module.scss +580 -0
- package/editor-components/slider/slider8/slider8.tsx +350 -0
- package/editor-components/slider/slider9/slider9.module.scss +1160 -0
- package/editor-components/slider/slider9/slider9.tsx +556 -0
- package/editor-components/social/social1/social1.module.scss +229 -0
- package/editor-components/social/social1/social1.tsx +726 -0
- package/editor-components/social/social2/social2.module.scss +299 -0
- package/editor-components/social/social2/social2.tsx +1086 -0
- package/editor-components/social/social3/social3.module.scss +131 -0
- package/editor-components/social/social3/social3.tsx +296 -0
- package/editor-components/social/social4/social4.module.scss +405 -0
- package/editor-components/social/social4/social4.tsx +1940 -0
- package/editor-components/social_widget/social_widget1/social_widget1.module.scss +10 -0
- package/editor-components/social_widget/social_widget1/social_widget1.tsx +31 -0
- package/editor-components/social_widget/social_widget2/social_widget2.module.scss +10 -0
- package/editor-components/social_widget/social_widget2/social_widget2.tsx +35 -0
- package/editor-components/social_widget/social_widget3/social_widget3.module.scss +10 -0
- package/editor-components/social_widget/social_widget3/social_widget3.tsx +32 -0
- package/editor-components/social_widget/social_widget4/social_widget4.module.scss +10 -0
- package/editor-components/social_widget/social_widget4/social_widget4.tsx +32 -0
- package/editor-components/social_widget/social_widget5/social_widget5.module.scss +10 -0
- package/editor-components/social_widget/social_widget5/social_widget5.tsx +32 -0
- package/editor-components/stats/stats1/stats1.module.scss +153 -0
- package/editor-components/stats/stats1/stats1.tsx +279 -0
- package/editor-components/stats/stats10/stats10.module.scss +346 -0
- package/editor-components/stats/stats10/stats10.tsx +364 -0
- package/editor-components/stats/stats11/stats11.module.scss +167 -0
- package/editor-components/stats/stats11/stats11.tsx +242 -0
- package/editor-components/stats/stats12/stats12.module.scss +244 -0
- package/editor-components/stats/stats12/stats12.tsx +174 -0
- package/editor-components/stats/stats13/stats13.module.scss +311 -0
- package/editor-components/stats/stats13/stats13.tsx +432 -0
- package/editor-components/stats/stats14/stats14.module.scss +192 -0
- package/editor-components/stats/stats14/stats14.tsx +222 -0
- package/editor-components/stats/stats15/stats15.module.scss +174 -0
- package/editor-components/stats/stats15/stats15.tsx +242 -0
- package/editor-components/stats/stats2/stats2.module.scss +243 -0
- package/editor-components/stats/stats2/stats2.tsx +333 -0
- package/editor-components/stats/stats3/stats3.module.scss +302 -0
- package/editor-components/stats/stats3/stats3.tsx +212 -0
- package/editor-components/stats/stats4/stats4.module.scss +133 -0
- package/editor-components/stats/stats4/stats4.tsx +467 -0
- package/editor-components/stats/stats5/stats5.module.scss +104 -0
- package/editor-components/stats/stats5/stats5.tsx +257 -0
- package/editor-components/stats/stats6/stats6.module.scss +76 -0
- package/editor-components/stats/stats6/stats6.tsx +241 -0
- package/editor-components/stats/stats7/stats7.module.scss +101 -0
- package/editor-components/stats/stats7/stats7.tsx +184 -0
- package/editor-components/stats/stats8/stats8.module.scss +321 -0
- package/editor-components/stats/stats8/stats8.tsx +358 -0
- package/editor-components/stats/stats9/stats9.module.scss +282 -0
- package/editor-components/stats/stats9/stats9.tsx +330 -0
- package/editor-components/team/team-1/team1.module.scss +247 -0
- package/editor-components/team/team-1/team1.tsx +357 -0
- package/editor-components/team/team-10/team10.module.scss +307 -0
- package/editor-components/team/team-10/team10.tsx +510 -0
- package/editor-components/team/team-11/team11.module.scss +245 -0
- package/editor-components/team/team-11/team11.tsx +435 -0
- package/editor-components/team/team-12/team12.module.scss +186 -0
- package/editor-components/team/team-12/team12.tsx +305 -0
- package/editor-components/team/team-13/team13.module.scss +271 -0
- package/editor-components/team/team-13/team13.tsx +255 -0
- package/editor-components/team/team-14/team14.module.scss +203 -0
- package/editor-components/team/team-14/team14.tsx +202 -0
- package/editor-components/team/team-15/team15.module.scss +275 -0
- package/editor-components/team/team-15/team15.tsx +417 -0
- package/editor-components/team/team-16/team16.module.scss +145 -0
- package/editor-components/team/team-16/team16.tsx +219 -0
- package/editor-components/team/team-2/team2.module.scss +175 -0
- package/editor-components/team/team-2/team2.tsx +397 -0
- package/editor-components/team/team-3/team3.module.scss +251 -0
- package/editor-components/team/team-3/team3.tsx +380 -0
- package/editor-components/team/team-4/team4.module.scss +66 -0
- package/editor-components/team/team-4/team4.tsx +194 -0
- package/editor-components/team/team-5/team5.module.scss +219 -0
- package/editor-components/team/team-5/team5.tsx +492 -0
- package/editor-components/team/team-6/team6.module.scss +157 -0
- package/editor-components/team/team-6/team6.tsx +620 -0
- package/editor-components/team/team-7/team7.module.scss +211 -0
- package/editor-components/team/team-7/team7.tsx +333 -0
- package/editor-components/team/team-8/team8.module.scss +214 -0
- package/editor-components/team/team-8/team8.tsx +349 -0
- package/editor-components/team/team-9/team9.module.scss +307 -0
- package/editor-components/team/team-9/team9.tsx +363 -0
- package/editor-components/testimonials/testimonials1/testimonials1.module.scss +156 -0
- package/editor-components/testimonials/testimonials1/testimonials1.tsx +190 -0
- package/editor-components/testimonials/testimonials10/testimonials10.module.scss +281 -0
- package/editor-components/testimonials/testimonials10/testimonials10.tsx +360 -0
- package/editor-components/testimonials/testimonials11/testimonials11.module.scss +78 -0
- package/editor-components/testimonials/testimonials11/testimonials11.tsx +267 -0
- package/editor-components/testimonials/testimonials12/testimonials12.module.scss +115 -0
- package/editor-components/testimonials/testimonials12/testimonials12.tsx +293 -0
- package/editor-components/testimonials/testimonials13/testimonials13.module.scss +220 -0
- package/editor-components/testimonials/testimonials13/testimonials13.tsx +357 -0
- package/editor-components/testimonials/testimonials14/testimonials14.module.scss +216 -0
- package/editor-components/testimonials/testimonials14/testimonials14.tsx +364 -0
- package/editor-components/testimonials/testimonials15/testimonials15.module.scss +685 -0
- package/editor-components/testimonials/testimonials15/testimonials15.tsx +422 -0
- package/editor-components/testimonials/testimonials16/testimonials16.module.scss +754 -0
- package/editor-components/testimonials/testimonials16/testimonials16.tsx +625 -0
- package/editor-components/testimonials/testimonials2/testimonials2.module.scss +100 -0
- package/editor-components/testimonials/testimonials2/testimonials2.tsx +301 -0
- package/editor-components/testimonials/testimonials3/testimonials3.module.scss +37 -0
- package/editor-components/testimonials/testimonials3/testimonials3.tsx +148 -0
- package/editor-components/testimonials/testimonials4/testimonials4.module.scss +205 -0
- package/editor-components/testimonials/testimonials4/testimonials4.tsx +266 -0
- package/editor-components/testimonials/testimonials5/testimonials5.module.scss +221 -0
- package/editor-components/testimonials/testimonials5/testimonials5.tsx +319 -0
- package/editor-components/testimonials/testimonials6/testimonials6.module.scss +82 -0
- package/editor-components/testimonials/testimonials6/testimonials6.tsx +344 -0
- package/editor-components/testimonials/testimonials7/testimonials7.module.scss +316 -0
- package/editor-components/testimonials/testimonials7/testimonials7.tsx +248 -0
- package/editor-components/testimonials/testimonials8/testimonials8.module.scss +197 -0
- package/editor-components/testimonials/testimonials8/testimonials8.tsx +287 -0
- package/editor-components/testimonials/testimonials9/testimonials9.module.scss +137 -0
- package/editor-components/testimonials/testimonials9/testimonials9.tsx +372 -0
- package/index.ts +103 -0
- package/package.json +40 -0
- package/utils/css-processor.ts +131 -0
- package/utils/currency.ts +89 -0
|
@@ -0,0 +1,1103 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { getProjectHook } from "../custom-hooks/project";
|
|
3
|
+
import { EventEmitter, EVENTS } from "../EventEmitter";
|
|
4
|
+
import sanitizeHtml from "sanitize-html";
|
|
5
|
+
import { renderToString } from "react-dom/server";
|
|
6
|
+
import { THEMES, TTheme } from "./location/themes";
|
|
7
|
+
import { getInlineEditor } from "../InlineEditorProvider";
|
|
8
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
9
|
+
import { CurrencyCode } from "composer-tools/utils/currency";
|
|
10
|
+
import { INPUTS } from "composer-tools/custom-hooks/input-templates";
|
|
11
|
+
|
|
12
|
+
export const LANGUAGES = [
|
|
13
|
+
{ code: "en", name: "English", nativeName: "English" },
|
|
14
|
+
{ code: "ab", name: "Abkhaz", nativeName: "аҧсуа" },
|
|
15
|
+
{ code: "aa", name: "Afar", nativeName: "Afaraf" },
|
|
16
|
+
{ code: "af", name: "Afrikaans", nativeName: "Afrikaans" },
|
|
17
|
+
{ code: "ak", name: "Akan", nativeName: "Akan" },
|
|
18
|
+
{ code: "sq", name: "Albanian", nativeName: "Shqip" },
|
|
19
|
+
{ code: "am", name: "Amharic", nativeName: "አማርኛ" },
|
|
20
|
+
{ code: "ar", name: "Arabic", nativeName: "العربية" },
|
|
21
|
+
{ code: "an", name: "Aragonese", nativeName: "Aragonés" },
|
|
22
|
+
{ code: "hy", name: "Armenian", nativeName: "Հայերեն" },
|
|
23
|
+
{ code: "as", name: "Assamese", nativeName: "অসমীয়া" },
|
|
24
|
+
{ code: "av", name: "Avaric", nativeName: "авар мацӀ, магӀарул мацӀ" },
|
|
25
|
+
{ code: "ae", name: "Avestan", nativeName: "avesta" },
|
|
26
|
+
{ code: "ay", name: "Aymara", nativeName: "aymar aru" },
|
|
27
|
+
{ code: "az", name: "Azerbaijani", nativeName: "azərbaycan dili" },
|
|
28
|
+
{ code: "bm", name: "Bambara", nativeName: "bamanankan" },
|
|
29
|
+
{ code: "ba", name: "Bashkir", nativeName: "башҡорт теле" },
|
|
30
|
+
{ code: "eu", name: "Basque", nativeName: "euskara, euskera" },
|
|
31
|
+
{ code: "be", name: "Belarusian", nativeName: "Беларуская" },
|
|
32
|
+
{ code: "bn", name: "Bengali", nativeName: "বাংলা" },
|
|
33
|
+
{ code: "bh", name: "Bihari", nativeName: "भोजपुरी" },
|
|
34
|
+
{ code: "bi", name: "Bislama", nativeName: "Bislama" },
|
|
35
|
+
{ code: "bs", name: "Bosnian", nativeName: "bosanski jezik" },
|
|
36
|
+
{ code: "br", name: "Breton", nativeName: "brezhoneg" },
|
|
37
|
+
{ code: "bg", name: "Bulgarian", nativeName: "български език" },
|
|
38
|
+
{ code: "my", name: "Burmese", nativeName: "ဗမာစာ" },
|
|
39
|
+
{ code: "ca", name: "Catalan; Valencian", nativeName: "Català" },
|
|
40
|
+
{ code: "ch", name: "Chamorro", nativeName: "Chamoru" },
|
|
41
|
+
{ code: "ce", name: "Chechen", nativeName: "нохчийн мотт" },
|
|
42
|
+
{ code: "ny", name: "Chichewa; Chewa; Nyanja", nativeName: "chiCheŵa, chinyanja" },
|
|
43
|
+
{ code: "zh", name: "Chinese", nativeName: "中文 (Zhōngwén), 汉语, 漢語" },
|
|
44
|
+
{ code: "cv", name: "Chuvash", nativeName: "чӑваш чӗлхи" },
|
|
45
|
+
{ code: "kw", name: "Cornish", nativeName: "Kernewek" },
|
|
46
|
+
{ code: "co", name: "Corsican", nativeName: "corsu, lingua corsa" },
|
|
47
|
+
{ code: "cr", name: "Cree", nativeName: "ᓀᐦᐃᔭᐍᐏᐣ" },
|
|
48
|
+
{ code: "hr", name: "Croatian", nativeName: "hrvatski" },
|
|
49
|
+
{ code: "cs", name: "Czech", nativeName: "česky, čeština" },
|
|
50
|
+
{ code: "da", name: "Danish", nativeName: "dansk" },
|
|
51
|
+
{ code: "dv", name: "Divehi; Dhivehi; Maldivian;", nativeName: "ދިވެހި" },
|
|
52
|
+
{ code: "nl", name: "Dutch", nativeName: "Nederlands, Vlaams" },
|
|
53
|
+
{ code: "eo", name: "Esperanto", nativeName: "Esperanto" },
|
|
54
|
+
{ code: "et", name: "Estonian", nativeName: "eesti, eesti keel" },
|
|
55
|
+
{ code: "ee", name: "Ewe", nativeName: "Eʋegbe" },
|
|
56
|
+
{ code: "fo", name: "Faroese", nativeName: "føroyskt" },
|
|
57
|
+
{ code: "fj", name: "Fijian", nativeName: "vosa Vakaviti" },
|
|
58
|
+
{ code: "fi", name: "Finnish", nativeName: "suomi, suomen kieli" },
|
|
59
|
+
{ code: "fr", name: "French", nativeName: "français, langue française" },
|
|
60
|
+
{ code: "gl", name: "Galician", nativeName: "Galego" },
|
|
61
|
+
{ code: "ka", name: "Georgian", nativeName: "ქართული" },
|
|
62
|
+
{ code: "de", name: "German", nativeName: "Deutsch" },
|
|
63
|
+
{ code: "el", name: "Greek, Modern", nativeName: "Ελληνικά" },
|
|
64
|
+
{ code: "gn", name: "Guaraní", nativeName: "Avañeẽ" },
|
|
65
|
+
{ code: "gu", name: "Gujarati", nativeName: "ગુજરાતી" },
|
|
66
|
+
{ code: "ht", name: "Haitian; Haitian Creole", nativeName: "Kreyòl ayisyen" },
|
|
67
|
+
{ code: "ha", name: "Hausa", nativeName: "Hausa, هَوُسَ" },
|
|
68
|
+
{ code: "he", name: "Hebrew (modern)", nativeName: "עברית" },
|
|
69
|
+
{ code: "hz", name: "Herero", nativeName: "Otjiherero" },
|
|
70
|
+
{ code: "hi", name: "Hindi", nativeName: "हिन्दी, हिंदी" },
|
|
71
|
+
{ code: "ho", name: "Hiri Motu", nativeName: "Hiri Motu" },
|
|
72
|
+
{ code: "hu", name: "Hungarian", nativeName: "Magyar" },
|
|
73
|
+
{ code: "ia", name: "Interlingua", nativeName: "Interlingua" },
|
|
74
|
+
{ code: "id", name: "Indonesian", nativeName: "Bahasa Indonesia" },
|
|
75
|
+
{ code: "ga", name: "Irish", nativeName: "Gaeilge" },
|
|
76
|
+
{ code: "ig", name: "Igbo", nativeName: "Asụsụ Igbo" },
|
|
77
|
+
{ code: "ik", name: "Inupiaq", nativeName: "Iñupiaq, Iñupiatun" },
|
|
78
|
+
{ code: "io", name: "Ido", nativeName: "Ido" },
|
|
79
|
+
{ code: "is", name: "Icelandic", nativeName: "Íslenska" },
|
|
80
|
+
{ code: "it", name: "Italian", nativeName: "Italiano" },
|
|
81
|
+
{ code: "iu", name: "Inuktitut", nativeName: "ᐃᓄᒃᑎᑐᑦ" },
|
|
82
|
+
{ code: "ja", name: "Japanese", nativeName: "日本語 (にほんご/にっぽんご)" },
|
|
83
|
+
{ code: "jv", name: "Javanese", nativeName: "basa Jawa" },
|
|
84
|
+
{ code: "kn", name: "Kannada", nativeName: "ಕನ್ನಡ" },
|
|
85
|
+
{ code: "kr", name: "Kanuri", nativeName: "Kanuri" },
|
|
86
|
+
{ code: "ks", name: "Kashmiri", nativeName: "कश्मीरी, كشميري" },
|
|
87
|
+
{ code: "kk", name: "Kazakh", nativeName: "Қазақ тілі" },
|
|
88
|
+
{ code: "km", name: "Khmer", nativeName: "ភាសាខ្មែរ" },
|
|
89
|
+
{ code: "ki", name: "Kikuyu, Gikuyu", nativeName: "Gĩkũyũ" },
|
|
90
|
+
{ code: "rw", name: "Kinyarwanda", nativeName: "Ikinyarwanda" },
|
|
91
|
+
{ code: "ky", name: "Kirghiz, Kyrgyz", nativeName: "кыргыз тили" },
|
|
92
|
+
{ code: "kv", name: "Komi", nativeName: "коми кыв" },
|
|
93
|
+
{ code: "kg", name: "Kongo", nativeName: "KiKongo" },
|
|
94
|
+
{ code: "ko", name: "Korean", nativeName: "한국어 (韓國語), 조선말 (朝鮮語)" },
|
|
95
|
+
{ code: "ku", name: "Kurdish", nativeName: "Kurdî, كوردی" },
|
|
96
|
+
{ code: "kj", name: "Kwanyama, Kuanyama", nativeName: "Kuanyama" },
|
|
97
|
+
{ code: "la", name: "Latin", nativeName: "latine, lingua latina" },
|
|
98
|
+
{ code: "lb", name: "Luxembourgish, Letzeburgesch", nativeName: "Lëtzebuergesch" },
|
|
99
|
+
{ code: "lg", name: "Luganda", nativeName: "Luganda" },
|
|
100
|
+
{ code: "li", name: "Limburgish, Limburgan, Limburger", nativeName: "Limburgs" },
|
|
101
|
+
{ code: "ln", name: "Lingala", nativeName: "Lingála" },
|
|
102
|
+
{ code: "lo", name: "Lao", nativeName: "ພາສາລາວ" },
|
|
103
|
+
{ code: "lt", name: "Lithuanian", nativeName: "lietuvių kalba" },
|
|
104
|
+
{ code: "lu", name: "Luba-Katanga", nativeName: "" },
|
|
105
|
+
{ code: "lv", name: "Latvian", nativeName: "latviešu valoda" },
|
|
106
|
+
{ code: "gv", name: "Manx", nativeName: "Gaelg, Gailck" },
|
|
107
|
+
{ code: "mk", name: "Macedonian", nativeName: "македонски јазик" },
|
|
108
|
+
{ code: "mg", name: "Malagasy", nativeName: "Malagasy fiteny" },
|
|
109
|
+
{ code: "ms", name: "Malay", nativeName: "bahasa Melayu, بهاس ملايو" },
|
|
110
|
+
{ code: "ml", name: "Malayalam", nativeName: "മലയാളം" },
|
|
111
|
+
{ code: "mt", name: "Maltese", nativeName: "Malti" },
|
|
112
|
+
{ code: "mi", name: "Māori", nativeName: "te reo Māori" },
|
|
113
|
+
{ code: "mr", name: "Marathi (Marāṭhī)", nativeName: "मराठी" },
|
|
114
|
+
{ code: "mh", name: "Marshallese", nativeName: "Kajin M̧ajeļ" },
|
|
115
|
+
{ code: "mn", name: "Mongolian", nativeName: "монгол" },
|
|
116
|
+
{ code: "na", name: "Nauru", nativeName: "Ekakairũ Naoero" },
|
|
117
|
+
{ code: "nv", name: "Navajo, Navaho", nativeName: "Diné bizaad, Dinékʼehǰí" },
|
|
118
|
+
{ code: "nb", name: "Norwegian Bokmål", nativeName: "Norsk bokmål" },
|
|
119
|
+
{ code: "nd", name: "North Ndebele", nativeName: "isiNdebele" },
|
|
120
|
+
{ code: "ne", name: "Nepali", nativeName: "नेपाली" },
|
|
121
|
+
{ code: "ng", name: "Ndonga", nativeName: "Owambo" },
|
|
122
|
+
{ code: "nn", name: "Norwegian Nynorsk", nativeName: "Norsk nynorsk" },
|
|
123
|
+
{ code: "no", name: "Norwegian", nativeName: "Norsk" },
|
|
124
|
+
{ code: "ii", name: "Nuosu", nativeName: "ꆈꌠ꒿ Nuosuhxop" },
|
|
125
|
+
{ code: "nr", name: "South Ndebele", nativeName: "isiNdebele" },
|
|
126
|
+
{ code: "oc", name: "Occitan", nativeName: "Occitan" },
|
|
127
|
+
{ code: "oj", name: "Ojibwe, Ojibwa", nativeName: "ᐊᓂᔑᓈᐯᒧᐎᓐ" },
|
|
128
|
+
{ code: "om", name: "Oromo", nativeName: "Afaan Oromoo" },
|
|
129
|
+
{ code: "or", name: "Oriya", nativeName: "ଓଡ଼ିଆ" },
|
|
130
|
+
{ code: "os", name: "Ossetian, Ossetic", nativeName: "ирон æвзаг" },
|
|
131
|
+
{ code: "pa", name: "Panjabi, Punjabi", nativeName: "ਪੰਜਾਬੀ, پنجابی" },
|
|
132
|
+
{ code: "pi", name: "Pāli", nativeName: "पाऴि" },
|
|
133
|
+
{ code: "fa", name: "Persian", nativeName: "فارسی" },
|
|
134
|
+
{ code: "pl", name: "Polish", nativeName: "polski" },
|
|
135
|
+
{ code: "ps", name: "Pashto, Pushto", nativeName: "پښتو" },
|
|
136
|
+
{ code: "pt", name: "Portuguese", nativeName: "Português" },
|
|
137
|
+
{ code: "qu", name: "Quechua", nativeName: "Runa Simi, Kichwa" },
|
|
138
|
+
{ code: "rm", name: "Romansh", nativeName: "rumantsch grischun" },
|
|
139
|
+
{ code: "rn", name: "Kirundi", nativeName: "kiRundi" },
|
|
140
|
+
{ code: "ro", name: "Romanian, Moldavian, Moldovan", nativeName: "română" },
|
|
141
|
+
{ code: "ru", name: "Russian", nativeName: "русский язык" },
|
|
142
|
+
{ code: "sa", name: "Sanskrit (Saṁskṛta)", nativeName: "संस्कृतम्" },
|
|
143
|
+
{ code: "sc", name: "Sardinian", nativeName: "sardu" },
|
|
144
|
+
{ code: "sd", name: "Sindhi", nativeName: "सिन्धी, سنڌي، سندھی" },
|
|
145
|
+
{ code: "se", name: "Northern Sami", nativeName: "Davvisámegiella" },
|
|
146
|
+
{ code: "sm", name: "Samoan", nativeName: "gagana faa Samoa" },
|
|
147
|
+
{ code: "sg", name: "Sango", nativeName: "yângâ tî sängö" },
|
|
148
|
+
{ code: "sr", name: "Serbian", nativeName: "српски језик" },
|
|
149
|
+
{ code: "gd", name: "Scottish Gaelic; Gaelic", nativeName: "Gàidhlig" },
|
|
150
|
+
{ code: "sn", name: "Shona", nativeName: "chiShona" },
|
|
151
|
+
{ code: "si", name: "Sinhala, Sinhalese", nativeName: "සිංහල" },
|
|
152
|
+
{ code: "sk", name: "Slovak", nativeName: "slovenčina" },
|
|
153
|
+
{ code: "sl", name: "Slovene", nativeName: "slovenščina" },
|
|
154
|
+
{ code: "so", name: "Somali", nativeName: "Soomaaliga, af Soomaali" },
|
|
155
|
+
{ code: "st", name: "Southern Sotho", nativeName: "Sesotho" },
|
|
156
|
+
{ code: "es", name: "Spanish; Castilian", nativeName: "español, castellano" },
|
|
157
|
+
{ code: "su", name: "Sundanese", nativeName: "Basa Sunda" },
|
|
158
|
+
{ code: "sw", name: "Swahili", nativeName: "Kiswahili" },
|
|
159
|
+
{ code: "ss", name: "Swati", nativeName: "SiSwati" },
|
|
160
|
+
{ code: "sv", name: "Swedish", nativeName: "svenska" },
|
|
161
|
+
{ code: "ta", name: "Tamil", nativeName: "தமிழ்" },
|
|
162
|
+
{ code: "te", name: "Telugu", nativeName: "తెలుగు" },
|
|
163
|
+
{ code: "tg", name: "Tajik", nativeName: "тоҷикӣ, toğikī, تاجیکی" },
|
|
164
|
+
{ code: "th", name: "Thai", nativeName: "ไทย" },
|
|
165
|
+
{ code: "ti", name: "Tigrinya", nativeName: "ትግርኛ" },
|
|
166
|
+
{ code: "bo", name: "Tibetan Standard, Tibetan, Central", nativeName: "བོད་ཡིག" },
|
|
167
|
+
{ code: "tk", name: "Turkmen", nativeName: "Türkmen, Түркмен" },
|
|
168
|
+
{ code: "tl", name: "Tagalog", nativeName: "Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔" },
|
|
169
|
+
{ code: "tn", name: "Tswana", nativeName: "Setswana" },
|
|
170
|
+
{ code: "to", name: "Tonga (Tonga Islands)", nativeName: "faka Tonga" },
|
|
171
|
+
{ code: "tr", name: "Turkish", nativeName: "Türkçe" },
|
|
172
|
+
{ code: "ts", name: "Tsonga", nativeName: "Xitsonga" },
|
|
173
|
+
{ code: "tt", name: "Tatar", nativeName: "татарча, tatarça, تاتارچا" },
|
|
174
|
+
{ code: "tw", name: "Twi", nativeName: "Twi" },
|
|
175
|
+
{ code: "ty", name: "Tahitian", nativeName: "Reo Tahiti" },
|
|
176
|
+
{ code: "ug", name: "Uighur, Uyghur", nativeName: "Uyƣurqə, ئۇيغۇرچە" },
|
|
177
|
+
{ code: "uk", name: "Ukrainian", nativeName: "українська" },
|
|
178
|
+
{ code: "ur", name: "Urdu", nativeName: "اردو" },
|
|
179
|
+
{ code: "uz", name: "Uzbek", nativeName: "zbek, Ўзбек, أۇزبېك" },
|
|
180
|
+
{ code: "ve", name: "Venda", nativeName: "Tshivenḓa" },
|
|
181
|
+
{ code: "vi", name: "Vietnamese", nativeName: "Tiếng Việt" },
|
|
182
|
+
{ code: "vo", name: "Volapük", nativeName: "Volapük" },
|
|
183
|
+
{ code: "wa", name: "Walloon", nativeName: "Walon" },
|
|
184
|
+
{ code: "cy", name: "Welsh", nativeName: "Cymraeg" },
|
|
185
|
+
{ code: "wo", name: "Wolof", nativeName: "Wollof" },
|
|
186
|
+
{ code: "fy", name: "Western Frisian", nativeName: "Frysk" },
|
|
187
|
+
{ code: "xh", name: "Xhosa", nativeName: "isiXhosa" },
|
|
188
|
+
{ code: "yi", name: "Yiddish", nativeName: "ייִדיש" },
|
|
189
|
+
{ code: "yo", name: "Yoruba", nativeName: "Yorùbá" },
|
|
190
|
+
{ code: "za", name: "Zhuang, Chuang", nativeName: "Saɯ cueŋƅ, Saw cuengh" },
|
|
191
|
+
];
|
|
192
|
+
|
|
193
|
+
export function generateComponentId(){
|
|
194
|
+
return uuidv4();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type PreSufFix = {
|
|
198
|
+
label: string;
|
|
199
|
+
className: string;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export type InteractionType ={
|
|
203
|
+
type?: string,
|
|
204
|
+
modal?: string,
|
|
205
|
+
trigger_action?: string,
|
|
206
|
+
visible_on?: string,
|
|
207
|
+
show_once?: false,
|
|
208
|
+
};
|
|
209
|
+
export type PageInteractionType ={
|
|
210
|
+
type?: string;
|
|
211
|
+
modal?: string;
|
|
212
|
+
scroll_depth?: number;
|
|
213
|
+
delay_time?: number;
|
|
214
|
+
visible_on?: string;
|
|
215
|
+
show_once?: boolean;
|
|
216
|
+
trigger_action?: string;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export type TypeLocation = {
|
|
220
|
+
lng: number;
|
|
221
|
+
lat: number;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export type TypeMediaInputValue =
|
|
225
|
+
| { type: "image"; url: string }
|
|
226
|
+
| { type: "icon"; name: string }
|
|
227
|
+
| {
|
|
228
|
+
type: "lottie";
|
|
229
|
+
url: string;
|
|
230
|
+
settings?: {
|
|
231
|
+
autoplay?: boolean;
|
|
232
|
+
loop?: boolean;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
| {
|
|
236
|
+
type: "video";
|
|
237
|
+
url: string;
|
|
238
|
+
settings?: {
|
|
239
|
+
autoplay?: boolean;
|
|
240
|
+
controls?: boolean;
|
|
241
|
+
loop?: boolean;
|
|
242
|
+
muted?: boolean;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export type MediaType = "icon" | "image" | "video" | "lottie";
|
|
247
|
+
|
|
248
|
+
type currencyAdditionalParams ={
|
|
249
|
+
showCode?: boolean;
|
|
250
|
+
showSymbol?:boolean;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
type GetPropValueProperties = {
|
|
254
|
+
parent_object?: TypeUsableComponentProps[];
|
|
255
|
+
as_string?: boolean;
|
|
256
|
+
suffix?: PreSufFix;
|
|
257
|
+
prefix?: PreSufFix;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
type RangeInputAdditionalParams = {
|
|
261
|
+
maxRange?: number;
|
|
262
|
+
minRange?: number;
|
|
263
|
+
step?: number;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export type CSSClass = {
|
|
267
|
+
id: string;
|
|
268
|
+
class: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type TypeCSSProp = { [key: string]: CSSClass[] };
|
|
272
|
+
|
|
273
|
+
export interface iComponent {
|
|
274
|
+
render(): any;
|
|
275
|
+
getInstanceName(): string;
|
|
276
|
+
getName(): string;
|
|
277
|
+
getProps(): TypeUsableComponentProps[];
|
|
278
|
+
getShadowProps(): TypeUsableComponentProps[];
|
|
279
|
+
getPropValue(
|
|
280
|
+
propName: string,
|
|
281
|
+
properties?: GetPropValueProperties
|
|
282
|
+
): TypeUsableComponentProps;
|
|
283
|
+
getExportedCSSClasses(): { [key: string]: string };
|
|
284
|
+
getCSSClasses(): TypeCSSProp;
|
|
285
|
+
getCSSClasses(sectionName: string | null): CSSClass[];
|
|
286
|
+
getCSSClasses(sectionName?: string | null): TypeCSSProp | CSSClass[];
|
|
287
|
+
getInteractions(sectionName?: string | null): any;
|
|
288
|
+
addProp(prop: TypeUsableComponentProps): void;
|
|
289
|
+
setProp(key: string, value: any): void;
|
|
290
|
+
setCSSClasses(key: string, value: { id: string; class: string }[]): void;
|
|
291
|
+
setInteraction(key: string, value: InteractionType[]): void;
|
|
292
|
+
decorateCSS(cssValue: string): string;
|
|
293
|
+
getCategory(): CATEGORIES;
|
|
294
|
+
initializeProp(prop: TypeUsableComponentProps): void;
|
|
295
|
+
id: string;
|
|
296
|
+
}
|
|
297
|
+
type AvailablePropTypes =
|
|
298
|
+
| { type: "string"; value: string }
|
|
299
|
+
| { type: "number"; value: number }
|
|
300
|
+
| { type: "boolean"; value: boolean }
|
|
301
|
+
| { type: "page"; value: string }
|
|
302
|
+
| { type: "array"; value: TypeUsableComponentProps[] }
|
|
303
|
+
| { type: "object"; value: TypeUsableComponentProps[] }
|
|
304
|
+
| { type: "image"; value: string }
|
|
305
|
+
| { type: "lottie"; value: string }
|
|
306
|
+
| { type: "video"; value: string }
|
|
307
|
+
| { type: "select"; value: string }
|
|
308
|
+
| { type: "color"; value: string }
|
|
309
|
+
| { type: "icon"; value: string }
|
|
310
|
+
| { type: "email"; value: string }
|
|
311
|
+
| { type: "location"; value: TypeLocation }
|
|
312
|
+
| { type: "range"; value: string; additionalParams?: RangeInputAdditionalParams}
|
|
313
|
+
| { type: "currency"; value: { value: string; currency?: CurrencyCode }; additionalParams?: currencyAdditionalParams}
|
|
314
|
+
| { type: "tag"; value: string[]}
|
|
315
|
+
| { type: "phone"; value: string, additionalParams?: { countriesEnabled?: boolean; phonePattern?: "US" | "US_PARENTHESES" | "DOTTED" | "SPACED" } }
|
|
316
|
+
| { type: "dateTime"; value: string ; additionalParams? : {mode?:string, timeInterval?:number, yearRange? : number, yearStart?: number}}
|
|
317
|
+
| { type: "multiSelect"; value: string[] }
|
|
318
|
+
| { type: "file"; value: string }
|
|
319
|
+
| { type: "media"; value: TypeMediaInputValue }
|
|
320
|
+
| { type: "embededLink"; value: string }
|
|
321
|
+
|
|
322
|
+
export type TypeReactComponent = {
|
|
323
|
+
type: string;
|
|
324
|
+
props?: TypeUsableComponentProps[];
|
|
325
|
+
cssClasses?: TypeCSSProp;
|
|
326
|
+
interactions?: Record<string, InteractionType[]>;
|
|
327
|
+
id?: string;
|
|
328
|
+
customComponentId?: string;
|
|
329
|
+
customComponentVersion?: string;
|
|
330
|
+
};
|
|
331
|
+
export type TypeUsableComponentProps = {
|
|
332
|
+
id?: string;
|
|
333
|
+
key: string;
|
|
334
|
+
displayer: string;
|
|
335
|
+
additionalParams?: { selectItems?: string[]; maxElementCount?: number; availableTypes?: MediaType[]};
|
|
336
|
+
max?: number;
|
|
337
|
+
} & AvailablePropTypes & {
|
|
338
|
+
getPropValue?: (
|
|
339
|
+
propName: string,
|
|
340
|
+
properties?: GetPropValueProperties
|
|
341
|
+
) => any;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
type MemorizedElement = {
|
|
345
|
+
jsxElement?: React.JSX.Element,
|
|
346
|
+
value?: string;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export enum CATEGORIES {
|
|
350
|
+
NAVIGATOR = "navigator",
|
|
351
|
+
TESTIMONIALS = "testimonials",
|
|
352
|
+
LIST = "list",
|
|
353
|
+
HERO_SECTION = "heroSection",
|
|
354
|
+
INTRO_SECTION = "introSection",
|
|
355
|
+
PRICING = "pricing",
|
|
356
|
+
FOOTER = "footer",
|
|
357
|
+
TEAM = "team",
|
|
358
|
+
BLOG = "blog",
|
|
359
|
+
FORM = "form",
|
|
360
|
+
DOWNLOAD = "download",
|
|
361
|
+
CALLTOACTION = "callToAction",
|
|
362
|
+
SLIDER = "slider",
|
|
363
|
+
FAQ = "faq",
|
|
364
|
+
MODAL = "modal",
|
|
365
|
+
LOGOCLOUDS = "logoClouds",
|
|
366
|
+
STATS = "stats",
|
|
367
|
+
FEATURE = "feature",
|
|
368
|
+
IMAGEGALLERY = "imageGallery",
|
|
369
|
+
LOCATION = "location",
|
|
370
|
+
// TOP_BANNER = "topBanner",
|
|
371
|
+
SOCIAL = "social",
|
|
372
|
+
SOCIALWIDGET = "socialWidget",
|
|
373
|
+
ECOMMERCE = "ecommerce",
|
|
374
|
+
LEGAL = "legal",
|
|
375
|
+
COMINGSOON = "comingSoon",
|
|
376
|
+
// STICKY = "sticky",
|
|
377
|
+
BREADCRUMB = "breadcrumb",
|
|
378
|
+
ABOUT = "about",
|
|
379
|
+
PORTFOLIO = "portfolio",
|
|
380
|
+
COMPARISON = "comparison",
|
|
381
|
+
CUSTOM = "custom",
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export function generateId(key: string): string {
|
|
385
|
+
return key + "-" + Math.round(Math.random() * 1000000000).toString();
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
//@ts-ignore
|
|
390
|
+
export abstract class Component
|
|
391
|
+
extends React.Component<{}, { states: any; componentProps: any }>
|
|
392
|
+
implements iComponent
|
|
393
|
+
{
|
|
394
|
+
private shadowProps: TypeUsableComponentProps[] = [];
|
|
395
|
+
private styles: any;
|
|
396
|
+
public id: string;
|
|
397
|
+
static category: CATEGORIES;
|
|
398
|
+
private memorizedElements: {[id: string]: MemorizedElement} = {};
|
|
399
|
+
|
|
400
|
+
componentDidUpdate(
|
|
401
|
+
prevProps: Readonly<{}>,
|
|
402
|
+
prevState: Readonly<{ states: any; componentProps: any; }>,
|
|
403
|
+
snapshot?: any
|
|
404
|
+
): void {
|
|
405
|
+
EventEmitter.emit(EVENTS.COMPONENT_DID_UPDATE, { data: this });
|
|
406
|
+
this.onComponentDidUpdate?.(prevProps, prevState, snapshot);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
componentDidMount(): void {
|
|
410
|
+
this.onComponentDidMount?.();
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
componentWillUnmount(): void {
|
|
414
|
+
this.onComponentWillUnmount?.();
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
shouldComponentUpdate(
|
|
418
|
+
nextProps: Readonly<{}>,
|
|
419
|
+
nextState: Readonly<{ states: any; componentProps: any; }>
|
|
420
|
+
): boolean {
|
|
421
|
+
return this.onShouldComponentUpdate?.(nextProps, nextState) ?? true;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
componentDidCatch(error: Error, info: { componentStack: string }): void {
|
|
426
|
+
this.onComponentDidCatch?.(error, info);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
constructor(props: any, styles: any) {
|
|
430
|
+
super(props);
|
|
431
|
+
this.styles = styles;
|
|
432
|
+
this.id = props?.id || generateComponentId();
|
|
433
|
+
|
|
434
|
+
let sectionsKeyValue: any = {};
|
|
435
|
+
Object.keys(this.styles).forEach((key, index) => {
|
|
436
|
+
sectionsKeyValue[key] = [];
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
const compProps = (props?.props || []).map((p: TypeUsableComponentProps) =>
|
|
440
|
+
this.attachValueGetter(p)
|
|
441
|
+
);
|
|
442
|
+
this.state = {
|
|
443
|
+
states: {},
|
|
444
|
+
componentProps: {
|
|
445
|
+
props: compProps,
|
|
446
|
+
cssClasses: props?.cssClasses || {...sectionsKeyValue},
|
|
447
|
+
interactions: props?.interactions || {...sectionsKeyValue}
|
|
448
|
+
},
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
EventEmitter.emit(EVENTS.COMPONENT_ADDED, { data: this });
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
componentWillMount(){
|
|
456
|
+
this.getProps().forEach(({key, value}) => {
|
|
457
|
+
const propIndex = this.state.componentProps.props.findIndex((prop: any) => prop.key === key);
|
|
458
|
+
if (propIndex === -1) return;
|
|
459
|
+
|
|
460
|
+
const propInState: TypeUsableComponentProps = this.state.componentProps.props[propIndex];
|
|
461
|
+
const shadowProp = this.getShadowProp(key);
|
|
462
|
+
if (!shadowProp) {
|
|
463
|
+
this.state.componentProps.props.splice(propIndex, 1);
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
const isComplexType = propInState.type === "array" || propInState.type === "object";
|
|
468
|
+
const isTypeChanged = propInState.type !== shadowProp.type;
|
|
469
|
+
|
|
470
|
+
if (isTypeChanged) {
|
|
471
|
+
|
|
472
|
+
propInState.type = shadowProp.type;
|
|
473
|
+
value = structuredClone(shadowProp.value);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (isComplexType) {
|
|
477
|
+
this.syncComplexValue(
|
|
478
|
+
structuredClone(shadowProp.value) as TypeUsableComponentProps[],
|
|
479
|
+
value as TypeUsableComponentProps[]
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
const isMatchingValue =
|
|
484
|
+
(!isComplexType && propInState.value === value) ||
|
|
485
|
+
(isComplexType && propInState.value.every((item) => item.getPropValue) && propInState.value === value);
|
|
486
|
+
|
|
487
|
+
if (isMatchingValue) return;
|
|
488
|
+
|
|
489
|
+
this.state.componentProps.props[propIndex].value = value;
|
|
490
|
+
this.state.componentProps.props[propIndex] = this.attachValueGetter(
|
|
491
|
+
this.state.componentProps.props[propIndex]
|
|
492
|
+
);
|
|
493
|
+
|
|
494
|
+
})
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
static getName(): string {
|
|
498
|
+
// console.error("Static Method Not Implemented", this.name);
|
|
499
|
+
return this.name;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
getName(): string {
|
|
503
|
+
// console.error("Static Method Not Implemented", this.name);
|
|
504
|
+
return (this.constructor as typeof Component).getName();
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
static getInstanceName(): string {
|
|
508
|
+
// console.error("Static Method Not Implemented", this.name);
|
|
509
|
+
return this.name;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
getInstanceName(): string {
|
|
513
|
+
return (this.constructor as typeof Component).name;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static getCategory(): CATEGORIES {
|
|
517
|
+
return this.category;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
getCategory(): CATEGORIES {
|
|
521
|
+
return (this.constructor as typeof Component).category;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
getProps(): TypeUsableComponentProps[] {
|
|
525
|
+
return this.state.componentProps.props;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
getShadowProps(): TypeUsableComponentProps[] {
|
|
529
|
+
return this.shadowProps;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
private getFilteredProp(key: string, props: TypeUsableComponentProps[]): TypeUsableComponentProps | null {
|
|
533
|
+
return props.find((prop: TypeUsableComponentProps) => prop.key === key) || null;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
getShadowProp(key: string): TypeUsableComponentProps | null {
|
|
537
|
+
return this.getFilteredProp(key, this.shadowProps);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
getProp(key: string): TypeUsableComponentProps | null {
|
|
541
|
+
return this.getFilteredProp(key, this.state.componentProps.props);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
getPropValue(propName: string, properties?: GetPropValueProperties): any {
|
|
545
|
+
let prop =
|
|
546
|
+
properties?.parent_object?.filter(
|
|
547
|
+
(prop: TypeUsableComponentProps) => prop.key === propName
|
|
548
|
+
)[0] || this.getProp(propName);
|
|
549
|
+
|
|
550
|
+
const isStringMustBeElement =
|
|
551
|
+
prop?.type == "string" && !properties?.as_string;
|
|
552
|
+
|
|
553
|
+
return isStringMustBeElement
|
|
554
|
+
? this.getPropValueAsElement(prop, properties)
|
|
555
|
+
: prop?.value;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
removeSuffixesAndPrefixes(htmlString: any) {
|
|
559
|
+
const parser = new DOMParser();
|
|
560
|
+
const doc = parser.parseFromString(htmlString, "text/html");
|
|
561
|
+
|
|
562
|
+
const elementsWithClass = doc.querySelectorAll("[class]");
|
|
563
|
+
elementsWithClass.forEach((element) => {
|
|
564
|
+
const isSuffixOrPrefixElement =
|
|
565
|
+
element.className.includes("suffix-prefix-elem");
|
|
566
|
+
if (isSuffixOrPrefixElement) element.remove();
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
return doc.body.innerHTML;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
getPropValueAsElement(
|
|
574
|
+
prop: TypeUsableComponentProps,
|
|
575
|
+
properties?: GetPropValueProperties
|
|
576
|
+
) {
|
|
577
|
+
const sanitize = (dirty: string, options: sanitizeHtml.IOptions) => ({
|
|
578
|
+
__html: sanitizeHtml(dirty, {
|
|
579
|
+
allowedAttributes: {
|
|
580
|
+
a: ["href", "name", "target"],
|
|
581
|
+
"*": ["style", "class"],
|
|
582
|
+
},
|
|
583
|
+
parseStyleAttributes: false,
|
|
584
|
+
}),
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
const preSufFixToElement = (elem?: PreSufFix) => {
|
|
588
|
+
if (!elem) return null;
|
|
589
|
+
|
|
590
|
+
return React.createElement("span", {
|
|
591
|
+
className: `${elem.className} suffix-prefix-elem`,
|
|
592
|
+
children: elem.label,
|
|
593
|
+
});
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
const SanitizeHTML = ({ html, options }: any) => {
|
|
597
|
+
const prefix = preSufFixToElement(properties?.prefix);
|
|
598
|
+
const suffix = preSufFixToElement(properties?.suffix);
|
|
599
|
+
|
|
600
|
+
const stringPrefix = renderToString(prefix || <></>);
|
|
601
|
+
const stringSuffix = renderToString(suffix || <></>);
|
|
602
|
+
|
|
603
|
+
const hasHtmlTag = html.indexOf("<");
|
|
604
|
+
|
|
605
|
+
if (hasHtmlTag != 0 && hasHtmlTag != -1) {
|
|
606
|
+
html = `<p> ${html} </p>`;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
const firstTagStartIndex = html.indexOf(">") + 1;
|
|
610
|
+
const firstTagEndIndex = html.lastIndexOf("<");
|
|
611
|
+
|
|
612
|
+
const htmlWithPrefixAndSuffix =
|
|
613
|
+
html.substring(0, firstTagStartIndex) +
|
|
614
|
+
stringPrefix +
|
|
615
|
+
html.substring(firstTagStartIndex, firstTagEndIndex) +
|
|
616
|
+
stringSuffix +
|
|
617
|
+
html.substring(firstTagEndIndex);
|
|
618
|
+
|
|
619
|
+
const sanitizedHtml = sanitize(htmlWithPrefixAndSuffix, options);
|
|
620
|
+
|
|
621
|
+
const InlineEditor = getInlineEditor();
|
|
622
|
+
return (
|
|
623
|
+
<InlineEditor
|
|
624
|
+
id={prop.id}
|
|
625
|
+
value={prop.value as string}
|
|
626
|
+
props={this.getProps()}
|
|
627
|
+
sanitizedHtml={sanitizedHtml}
|
|
628
|
+
componentId={this.id}
|
|
629
|
+
/>
|
|
630
|
+
);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
if(!this.memorizedElements[prop.id]) {
|
|
635
|
+
this.memorizedElements[prop.id] = {};
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
const memorizedElement: MemorizedElement = this.memorizedElements[prop.id];
|
|
639
|
+
const isValueChanged = (!!memorizedElement?.value || memorizedElement?.value == "")
|
|
640
|
+
&& prop.value != memorizedElement?.value;
|
|
641
|
+
|
|
642
|
+
if(!memorizedElement.jsxElement || isValueChanged){
|
|
643
|
+
memorizedElement["jsxElement"] = <SanitizeHTML html={prop?.value}></SanitizeHTML>;
|
|
644
|
+
memorizedElement["value"] = prop.value as string;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
return memorizedElement.jsxElement;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
getExportedCSSClasses() {
|
|
651
|
+
return this.styles;
|
|
652
|
+
}
|
|
653
|
+
getCSSClasses(): TypeCSSProp;
|
|
654
|
+
getCSSClasses(sectionName: string | null): CSSClass[];
|
|
655
|
+
getCSSClasses(sectionName: string | null = null): TypeCSSProp | CSSClass[] {
|
|
656
|
+
const { cssClasses } = this.state.componentProps;
|
|
657
|
+
|
|
658
|
+
return sectionName
|
|
659
|
+
? cssClasses[sectionName]
|
|
660
|
+
: cssClasses;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
private attachPropId(_prop: TypeUsableComponentProps) {
|
|
664
|
+
if (_prop.type == "array" || _prop.type == "object") {
|
|
665
|
+
(_prop.value as TypeUsableComponentProps[]).forEach(
|
|
666
|
+
(v: TypeUsableComponentProps) => this.attachPropId(v)
|
|
667
|
+
);
|
|
668
|
+
} else {
|
|
669
|
+
_prop.id = generateId(_prop.key)
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
return _prop;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
addProp(prop: TypeUsableComponentProps) {
|
|
676
|
+
this.shadowProps.push(JSON.parse(JSON.stringify(prop)));
|
|
677
|
+
if (this.getProp(prop.key)) return;
|
|
678
|
+
this.initializeProp(prop);
|
|
679
|
+
this.state.componentProps.props.push(prop);
|
|
680
|
+
EventEmitter.emit(EVENTS.RENDER_CONTENT_TAB)
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
removeProp(key: string) {
|
|
684
|
+
this.shadowProps = this.shadowProps.filter((el) => el.key !== key);
|
|
685
|
+
this.state.componentProps.props = this.state.componentProps.props.filter(
|
|
686
|
+
(el: any) => el.key !== key
|
|
687
|
+
);
|
|
688
|
+
|
|
689
|
+
EventEmitter.emit(EVENTS.RENDER_CONTENT_TAB)
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
private syncComplexValue(source: TypeUsableComponentProps[], target: TypeUsableComponentProps[]): void {
|
|
693
|
+
source.forEach(sourceProp => {
|
|
694
|
+
const targetIndex = target.findIndex(prop => prop.key === sourceProp.key);
|
|
695
|
+
if (targetIndex === -1) return;
|
|
696
|
+
|
|
697
|
+
const targetProp = target[targetIndex];
|
|
698
|
+
|
|
699
|
+
const isTypeChanged = targetProp.type !== sourceProp.type;
|
|
700
|
+
const isComplexType = sourceProp.type === "array" || sourceProp.type === "object";
|
|
701
|
+
|
|
702
|
+
if (isTypeChanged) {
|
|
703
|
+
targetProp.type = sourceProp.type;
|
|
704
|
+
targetProp.value = sourceProp.value;
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
if (isComplexType) {
|
|
709
|
+
this.syncComplexValue(
|
|
710
|
+
sourceProp.value as TypeUsableComponentProps[],
|
|
711
|
+
targetProp.value as TypeUsableComponentProps[]
|
|
712
|
+
);
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
setProp(key: string, value: any): void {
|
|
718
|
+
let i = this.state.componentProps.props
|
|
719
|
+
.map((prop: any) => prop.key)
|
|
720
|
+
.indexOf(key);
|
|
721
|
+
|
|
722
|
+
const prop: TypeUsableComponentProps = this.state.componentProps.props[i];
|
|
723
|
+
|
|
724
|
+
const isInvalidIndex = i === -1;
|
|
725
|
+
const isMatchingSimpleValue =
|
|
726
|
+
prop.type !== "array" && prop.type !== "object" && prop.value === value;
|
|
727
|
+
const isMatchingComplexValue =
|
|
728
|
+
(prop.type === "array" || prop.type === "object") &&
|
|
729
|
+
prop.value.every((item) => item.getPropValue) &&
|
|
730
|
+
prop.value === value;
|
|
731
|
+
|
|
732
|
+
if (isInvalidIndex || isMatchingSimpleValue || isMatchingComplexValue) {
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
this.state.componentProps.props[i].value = value;
|
|
737
|
+
this.state.componentProps.props[i] = this.attachValueGetter(
|
|
738
|
+
this.state.componentProps.props[i]
|
|
739
|
+
);
|
|
740
|
+
this.setState({ componentProps: { ...this.state.componentProps } });
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
setComponentState(key: string, value: any): void {
|
|
744
|
+
const isSameValue = this.state.states[key] === value;
|
|
745
|
+
if(isSameValue) return;
|
|
746
|
+
this.state.states[key] = value;
|
|
747
|
+
this.setState({ ...this.state });
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
getComponentState(key: string): any {
|
|
751
|
+
return this.state.states[key];
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
setCSSClasses(key: string, value: { id: string; class: string }[]) {
|
|
755
|
+
this.state.componentProps.cssClasses[key] = value;
|
|
756
|
+
this.setState({ componentProps: this.state.componentProps });
|
|
757
|
+
}
|
|
758
|
+
setInteraction(key: string, value: InteractionType[]) {
|
|
759
|
+
this.state.componentProps.interactions[key] = value;
|
|
760
|
+
this.setState({ componentProps: this.state.componentProps });
|
|
761
|
+
}
|
|
762
|
+
getInteractions(sectionName: string | null = null): string {
|
|
763
|
+
return sectionName
|
|
764
|
+
? this.state.componentProps.interactions[sectionName]
|
|
765
|
+
: this.state.componentProps.interactions;
|
|
766
|
+
}
|
|
767
|
+
decorateCSS(section: string) {
|
|
768
|
+
let cssClass = [this.styles[section]];
|
|
769
|
+
|
|
770
|
+
let cssManuplations = Object.entries(this.getCSSClasses()).filter(
|
|
771
|
+
([p, v]) => v.length > 0
|
|
772
|
+
);
|
|
773
|
+
|
|
774
|
+
cssManuplations.forEach(([key, value]: any) => {
|
|
775
|
+
if (key === section) {
|
|
776
|
+
value.forEach((el: any) => {
|
|
777
|
+
cssClass.push(el.class);
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
|
|
782
|
+
cssClass.push(
|
|
783
|
+
generateAutoClassName(this.id, section)
|
|
784
|
+
);
|
|
785
|
+
|
|
786
|
+
return cssClass.join(" ");
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
private attachValueGetter(propValue: TypeUsableComponentProps) {
|
|
790
|
+
if (Array.isArray(propValue.value)) {
|
|
791
|
+
if (propValue.type === "multiSelect") {
|
|
792
|
+
propValue.value = propValue.value.filter((value) => typeof value === "string") as string[];
|
|
793
|
+
return propValue;
|
|
794
|
+
}
|
|
795
|
+
propValue.value = propValue.value.filter((value) => value != null);
|
|
796
|
+
propValue.value = propValue.value.map(
|
|
797
|
+
(propValueItem: TypeUsableComponentProps) => {
|
|
798
|
+
if (Array.isArray(propValueItem.value)) {
|
|
799
|
+
propValueItem = this.attachValueGetter(propValueItem);
|
|
800
|
+
propValueItem["getPropValue"] = (
|
|
801
|
+
propName: string,
|
|
802
|
+
properties?: GetPropValueProperties
|
|
803
|
+
) => {
|
|
804
|
+
if (!properties) properties = {};
|
|
805
|
+
properties.parent_object =
|
|
806
|
+
propValueItem.value as TypeUsableComponentProps[];
|
|
807
|
+
return this.getPropValue(propName, properties);
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
return propValueItem;
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
return propValue;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
castToObject<Type>(propName: string): Type {
|
|
820
|
+
let i = this.state.componentProps.props
|
|
821
|
+
.map((prop: any) => prop.key)
|
|
822
|
+
.indexOf(propName);
|
|
823
|
+
|
|
824
|
+
let castedObject = this.castingProcess(this.state.componentProps.props[i]);
|
|
825
|
+
return castedObject;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
castToString(elem: React.JSX.Element): string | React.JSX.Element {
|
|
829
|
+
const isValid = React.isValidElement(elem);
|
|
830
|
+
return isValid ? elem.props?.html?.replace(/<\/?[^>]+(>|$)/g, ""): elem;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
private castingProcess(object: any) {
|
|
834
|
+
let casted = object.value.map((propValue: any) => {
|
|
835
|
+
let clonedPropValue = { ...propValue };
|
|
836
|
+
if (clonedPropValue.hasOwnProperty("getPropValue")) {
|
|
837
|
+
clonedPropValue.value.forEach((nestedObject: any, index: number) => {
|
|
838
|
+
clonedPropValue[nestedObject.key] = clonedPropValue.getPropValue(
|
|
839
|
+
nestedObject.key
|
|
840
|
+
);
|
|
841
|
+
if (nestedObject.hasOwnProperty("getPropValue")) {
|
|
842
|
+
clonedPropValue[nestedObject.key] =
|
|
843
|
+
this.castingProcess(nestedObject);
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
} else {
|
|
847
|
+
const value = this.getPropValue(clonedPropValue.key, {
|
|
848
|
+
parent_object: object.value,
|
|
849
|
+
});
|
|
850
|
+
clonedPropValue = {
|
|
851
|
+
key: clonedPropValue.key,
|
|
852
|
+
value,
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
return clonedPropValue;
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
if (object.type == "object") {
|
|
859
|
+
const isObjectContainsAnotherObject = object.value.some(
|
|
860
|
+
(val: TypeUsableComponentProps) => val.type == "object"
|
|
861
|
+
);
|
|
862
|
+
|
|
863
|
+
let tmpCasted = [...casted];
|
|
864
|
+
casted = {};
|
|
865
|
+
|
|
866
|
+
tmpCasted.forEach((manipulatedValue) => {
|
|
867
|
+
const initialProp = manipulatedValue;
|
|
868
|
+
let value: any = {};
|
|
869
|
+
|
|
870
|
+
if (initialProp.type == "object" && isObjectContainsAnotherObject) {
|
|
871
|
+
initialProp.value.forEach((propVal: any) => {
|
|
872
|
+
value[propVal.key] = initialProp[propVal.key];
|
|
873
|
+
});
|
|
874
|
+
} else {
|
|
875
|
+
value = manipulatedValue.value;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
casted[manipulatedValue.key] = value;
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
return casted;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
insertForm(name: string, data: Object) {
|
|
886
|
+
const inputData: { [key: string]: any } = {};
|
|
887
|
+
const entries = Object.entries(data);
|
|
888
|
+
entries.forEach(([_, value], index) => {
|
|
889
|
+
inputData[`input_${index}`] = value;
|
|
890
|
+
});
|
|
891
|
+
|
|
892
|
+
EventEmitter.emit(EVENTS.INSERT_FORM, { name, data: inputData });
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Assigns a unique ID to the given property and integrates a method for retrieving its current value.
|
|
897
|
+
* This ensures each property is distinct and always reflects the latest state.
|
|
898
|
+
* The function directly modifies the prop object in place so it's not necessary to return it.
|
|
899
|
+
*/
|
|
900
|
+
initializeProp(prop: TypeUsableComponentProps) {
|
|
901
|
+
this.attachPropId(prop);
|
|
902
|
+
this.attachValueGetter(prop);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
onComponentDidMount() {
|
|
907
|
+
// Called once, immediately after the component is inserted into the DOM
|
|
908
|
+
// Override in child components
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
onComponentDidUpdate(
|
|
912
|
+
prevProps: Readonly<any>,
|
|
913
|
+
prevState: Readonly<any>,
|
|
914
|
+
snapshot?: any
|
|
915
|
+
) {
|
|
916
|
+
// Called immediately after updating occurs
|
|
917
|
+
// Override in child components
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
onComponentWillUnmount() {
|
|
921
|
+
// Called immediately before a component is destroyed
|
|
922
|
+
// Override in child components
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
onShouldComponentUpdate(
|
|
926
|
+
nextProps: Readonly<any>,
|
|
927
|
+
nextState: Readonly<any>
|
|
928
|
+
): boolean {
|
|
929
|
+
// Return true to re-render, false to skip rendering
|
|
930
|
+
// Override in child components
|
|
931
|
+
return true;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
onComponentDidCatch(error: Error, info: { componentStack: string }) {
|
|
936
|
+
// Error boundary: catch errors in descendants
|
|
937
|
+
// Override in child components
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export abstract class BaseNavigator extends Component {
|
|
942
|
+
static category = CATEGORIES.NAVIGATOR;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
export abstract class Testimonials extends Component {
|
|
946
|
+
static category = CATEGORIES.TESTIMONIALS;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export abstract class BaseList extends Component {
|
|
950
|
+
static category = CATEGORIES.LIST;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export abstract class BaseHeroSection extends Component {
|
|
954
|
+
static category = CATEGORIES.HERO_SECTION;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export abstract class BaseIntroSection extends Component {
|
|
958
|
+
static category = CATEGORIES.INTRO_SECTION;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export abstract class BasePricingTable extends Component {
|
|
962
|
+
static category = CATEGORIES.PRICING;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export abstract class BaseFooter extends Component {
|
|
966
|
+
static category = CATEGORIES.FOOTER;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export abstract class Team extends Component {
|
|
970
|
+
static category = CATEGORIES.TEAM;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export abstract class BaseBlog extends Component {
|
|
974
|
+
static category = CATEGORIES.BLOG;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export abstract class BaseDownload extends Component {
|
|
978
|
+
static category = CATEGORIES.DOWNLOAD;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
export abstract class BaseCallToAction extends Component {
|
|
982
|
+
static category = CATEGORIES.CALLTOACTION;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export abstract class BaseSlider extends Component {
|
|
986
|
+
static category = CATEGORIES.SLIDER;
|
|
987
|
+
|
|
988
|
+
transformSliderValues = (
|
|
989
|
+
sliderProps: TypeUsableComponentProps[]
|
|
990
|
+
): INPUTS.TYPE_SLIDER_SETTINGS => {
|
|
991
|
+
const flatObject: Record<string, any> = {};
|
|
992
|
+
sliderProps.forEach((prop: TypeUsableComponentProps) => {
|
|
993
|
+
flatObject[prop.key] = prop.value;
|
|
994
|
+
});
|
|
995
|
+
return flatObject;
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export abstract class BaseFAQ extends Component {
|
|
1000
|
+
static category = CATEGORIES.FAQ;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export abstract class BaseImageGallery extends Component {
|
|
1004
|
+
static category = CATEGORIES.IMAGEGALLERY;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export abstract class BaseModal extends Component {
|
|
1008
|
+
static category = CATEGORIES.MODAL;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export abstract class BaseLegal extends Component {
|
|
1012
|
+
static category = CATEGORIES.LEGAL;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export abstract class LogoClouds extends Component {
|
|
1016
|
+
static category = CATEGORIES.LOGOCLOUDS;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export abstract class BaseTopBanner extends Component {
|
|
1020
|
+
static category = CATEGORIES.TOP_BANNER;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export abstract class Location extends Component {
|
|
1024
|
+
static category = CATEGORIES.LOCATION;
|
|
1025
|
+
protected themes: TTheme[] = THEMES;
|
|
1026
|
+
|
|
1027
|
+
constructor(props: any, styles: any) {
|
|
1028
|
+
super(props, styles);
|
|
1029
|
+
this.addProp({
|
|
1030
|
+
type: "select",
|
|
1031
|
+
key: "theme",
|
|
1032
|
+
displayer: "Map Theme",
|
|
1033
|
+
value: "",
|
|
1034
|
+
additionalParams: {
|
|
1035
|
+
selectItems: [
|
|
1036
|
+
"Theme-0",
|
|
1037
|
+
"Theme-1",
|
|
1038
|
+
"Theme-2",
|
|
1039
|
+
"Theme-3",
|
|
1040
|
+
"Theme-4",
|
|
1041
|
+
"Theme-5",
|
|
1042
|
+
],
|
|
1043
|
+
},
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
selectTheme(selectedTheme: string) {
|
|
1048
|
+
return this.themes.find((theme: TTheme) => {
|
|
1049
|
+
return theme.name == selectedTheme;
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
export abstract class BaseStats extends Component {
|
|
1055
|
+
static category = CATEGORIES.STATS;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export abstract class BaseContacts extends Component {
|
|
1059
|
+
static category = CATEGORIES.FORM;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export abstract class BaseFeature extends Component {
|
|
1063
|
+
static category = CATEGORIES.FEATURE;
|
|
1064
|
+
}
|
|
1065
|
+
export abstract class BaseSocial extends Component {
|
|
1066
|
+
static category = CATEGORIES.SOCIAL;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export abstract class BaseSocialWidget extends Component {
|
|
1070
|
+
static category = CATEGORIES.SOCIALWIDGET;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export function generateAutoClassName(componentId: string, section: string){
|
|
1074
|
+
return `auto-generate-${componentId}-${section}`;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
export abstract class BaseECommerce extends Component {
|
|
1078
|
+
static category = CATEGORIES.ECOMMERCE;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export abstract class BaseComingSoon extends Component {
|
|
1082
|
+
static category = CATEGORIES.COMINGSOON;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export abstract class BaseSticky extends Component {
|
|
1086
|
+
static category = CATEGORIES.STICKY;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export abstract class BaseBreadcrumb extends Component {
|
|
1090
|
+
static category = CATEGORIES.BREADCRUMB;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
export abstract class BaseAbout extends Component {
|
|
1094
|
+
static category = CATEGORIES.ABOUT;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export abstract class BasePortfolio extends Component {
|
|
1098
|
+
static category = CATEGORIES.PORTFOLIO;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export abstract class BaseComparison extends Component {
|
|
1102
|
+
static category = CATEGORIES.COMPARISON;
|
|
1103
|
+
}
|