@chaibuilder/sdk 4.0.0-beta.3 → 4.0.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -50
- package/dist/{2SSKDMRQ-BnsZi3K3.cjs → 2SSKDMRQ-BksFOLpD.cjs} +1 -1
- package/dist/{2SSKDMRQ-CnSDkQcy.js → 2SSKDMRQ-gmj-yWTy.js} +2 -2
- package/dist/{AP7HFJJL-B31839PG.cjs → AP7HFJJL-CO-deD_p.cjs} +1 -1
- package/dist/{AP7HFJJL-CymCmW14.js → AP7HFJJL-kVgc0R61.js} +1 -1
- package/dist/IconPicker-BJHUCDn4.cjs +1 -0
- package/dist/{IconPicker-B1rWC-Ex.js → IconPicker-D_GRfhwS.js} +8 -7
- package/dist/STRINGS-BExFecZW.js +8 -0
- package/dist/STRINGS-FNnfjF5H.cjs +1 -0
- package/dist/{WDYDFRGG-BUVnbAci.js → WDYDFRGG-C9_E3QW0.js} +2 -2
- package/dist/{WDYDFRGG-BxhOCHc3.cjs → WDYDFRGG-KPpWFul_.cjs} +1 -1
- package/dist/{actions-registery-CZ1w0NKa.js → actions-registery-Bj-j1k5i.js} +2668 -2585
- package/dist/actions-registery-Cy1lqUVI.cjs +481 -0
- package/dist/actions.cjs +1 -1
- package/dist/actions.d.ts +0 -158
- package/dist/actions.js +3 -3
- package/dist/active-in-another-tab-1GoKTVcF.js +35 -0
- package/dist/active-in-another-tab-iEd5fZD0.cjs +1 -0
- package/dist/{add-new-language-page-WmlCnytQ.js → add-new-language-page-B3GUvWdP.js} +54 -53
- package/dist/add-new-language-page-Cq8R42Ro.cjs +1 -0
- package/dist/{add-new-page-VW2wAYZp.js → add-new-page-C5HlQfzy.js} +2 -2
- package/dist/{add-new-page-soZ8GAkN.cjs → add-new-page-DiHnECAR.cjs} +1 -1
- package/dist/ai-panel-content-BPpawv4D.cjs +1 -0
- package/dist/{ai-panel-content-D_o7Q_A-.js → ai-panel-content-tExD3yhH.js} +12 -11
- package/dist/ai-panel-default-lang-C6N4wUUF.cjs +3 -0
- package/dist/ai-panel-default-lang-DnYLHSaS.js +317 -0
- package/dist/ai-panel-other-lang-C65lVVtZ.cjs +1 -0
- package/dist/ai-panel-other-lang-D1pCJluY.js +132 -0
- package/dist/{ai-prompt-input-Bhc0ds7X.js → ai-prompt-input-B2q30bhR.js} +59 -62
- package/dist/ai-prompt-input-Dws5BHhQ.cjs +1 -0
- package/dist/{ai-translation-prompt-CZ55HQmo.js → ai-translation-prompt-Dnn6i_t3.js} +2 -2
- package/dist/ai-translation-prompt-DnwG2BmF.cjs +1 -0
- package/dist/apply-binding-9XSrYzAE.cjs +1 -0
- package/dist/{apply-binding-6iwlED02.js → apply-binding-chfbBKi2.js} +238 -225
- package/dist/change-password-modal-C0MMizgl.js +137 -0
- package/dist/change-password-modal-LKtYY-8V.cjs +1 -0
- package/dist/code-display-BR-gij5j.cjs +1 -0
- package/dist/{code-display-DhD_RBcg.js → code-display-DdWcOQ_i.js} +1 -1
- package/dist/code-editor-CWOmKcUc.js +57 -0
- package/dist/code-editor-Cim6jQVF.cjs +1 -0
- package/dist/continue-editing-in-this-client-Dd6nKIvX.cjs +1 -0
- package/dist/{continue-editing-in-this-client-CS2aQ7yY.js → continue-editing-in-this-client-oxYWGWON.js} +10 -9
- package/dist/core-BWQrViOY.cjs +1 -0
- package/dist/core-QlWEXm1d.js +53 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +275 -105
- package/dist/core.js +59 -28
- package/dist/{css-import-modal-Byg6wV0O.js → css-import-modal-6bMTRlCg.js} +11 -9
- package/dist/css-import-modal-CXulmaB4.cjs +13 -0
- package/dist/delete-page-D0tdn6VW.cjs +1 -0
- package/dist/delete-page-LnzR01A8.js +71 -0
- package/dist/design-token-usage-D-hrcKz1.cjs +1 -0
- package/dist/{design-token-usage-xQs6SlaJ.js → design-token-usage-lf7N_uOk.js} +33 -32
- package/dist/{digital-asset-manager-DbtwzxRz.js → digital-asset-manager-DJhRhLGC.js} +6 -5
- package/dist/digital-asset-manager-eCJHNSjj.cjs +1 -0
- package/dist/{duplicate-page-BR7Dlo9d.js → duplicate-page-CXzYy7vx.js} +20 -19
- package/dist/duplicate-page-ChSp1TYN.cjs +1 -0
- package/dist/dynamic-page-selector-btGtkyyv.cjs +1 -0
- package/dist/{dynamic-page-selector-Cb5r_W8s.js → dynamic-page-selector-r5IR9_7k.js} +12 -11
- package/dist/fonts/bungee/Bungee-Regular.woff2 +0 -0
- package/dist/fonts/dm_sans/dm-sans-variable.woff2 +0 -0
- package/dist/fonts/geist/Geist-VariableFont_wght.ttf +0 -0
- package/dist/fonts/geist/Geist-VariableFont_wght.woff2 +0 -0
- package/dist/fonts/geist/geist-variable.woff2 +0 -0
- package/dist/fonts/geist-mono/GeistMono-VariableFont_wght.woff2 +0 -0
- package/dist/fonts/inter/inter-latin.woff2 +0 -0
- package/dist/fonts/inter/inter-variable.woff2 +1449 -0
- package/dist/fonts/lato/lato-variable.woff2 +0 -0
- package/dist/fonts/lavishly_yours/lavishly-yours.woff2 +11 -0
- package/dist/fonts/merriweather/merriweather-variable.woff2 +11 -0
- package/dist/fonts/montserrat/montserrat-variable.woff2 +0 -0
- package/dist/fonts/nunito_sans/nunito-sans-variable.woff2 +11 -0
- package/dist/fonts/open_sans/open-sans-variable.woff2 +0 -0
- package/dist/fonts/oswald/oswald-variable.woff2 +0 -0
- package/dist/fonts/playfair_display/playfair-display-variable.woff2 +11 -0
- package/dist/fonts/poppins/poppins-variable.woff2 +0 -0
- package/dist/fonts/raleway/raleway-variable.woff2 +0 -0
- package/dist/fonts/roboto/roboto-variable.woff2 +11 -0
- package/dist/fonts/source_sans_3/source-sans-3-variable.woff2 +11 -0
- package/dist/fonts/ubuntu/ubuntu-variable.woff2 +0 -0
- package/dist/fonts-B3UYxuJI.js +25 -0
- package/dist/fonts-D5fTqvSS.cjs +1 -0
- package/dist/get-chai-builder-tailwind-config-7CxFxEYL.cjs +1 -0
- package/dist/{get-chai-builder-tailwind-config-DjoVOuAf.js → get-chai-builder-tailwind-config-DC4sDOYK.js} +8 -8
- package/dist/{get-chai-builder-theme-Dl72X7cz.cjs → get-chai-builder-theme-B5RkBTsB.cjs} +1 -1
- package/dist/{get-chai-builder-theme-BYtp20KD.js → get-chai-builder-theme-BpuwSLeS.js} +1 -1
- package/dist/{image-editor-G-K28aTS.cjs → image-editor-BdW476J8.cjs} +1 -1
- package/dist/{image-editor-DV8kUKhl.js → image-editor-CilPMtAC.js} +1 -1
- package/dist/index-CAhDwfHE.cjs +5 -0
- package/dist/{index-Ct7ElCGK.js → index-DsQXiNA_.js} +5888 -6282
- package/dist/index-DtMksfXx.js +4932 -0
- package/dist/index-mPCp0j2h.cjs +160 -0
- package/dist/json-diff-viewer-BkrnLb3B.cjs +8 -0
- package/dist/{json-diff-viewer-krslPepD.js → json-diff-viewer-D3N3w3Ax.js} +100 -97
- package/dist/{lang-panel-BwIewMyw.js → lang-panel-BAaaP4Qc.js} +15 -14
- package/dist/lang-panel-BjDRrpwN.cjs +1 -0
- package/dist/library-blocks/bento/agency-showcase/agency-showcase.html +175 -0
- package/dist/library-blocks/bento/agency-showcase/agency-showcase.webp +0 -0
- package/dist/library-blocks/bento/creative-portfolio/creative-portfolio.html +116 -0
- package/dist/library-blocks/bento/creative-portfolio/creative-portfolio.webp +0 -0
- package/dist/library-blocks/bento/product-features/product-features.html +159 -0
- package/dist/library-blocks/bento/product-features/product-features.webp +0 -0
- package/dist/library-blocks/bento/saas-dashboard/saas-dashboard.html +182 -0
- package/dist/library-blocks/bento/saas-dashboard/saas-dashboard.webp +0 -0
- package/dist/library-blocks/bento/startup-metrics/startup-metrics.html +170 -0
- package/dist/library-blocks/bento/startup-metrics/startup-metrics.webp +0 -0
- package/dist/library-blocks/blocks-list.json +149 -0
- package/dist/library-blocks/feature/agency-services/agency-services.html +194 -0
- package/dist/library-blocks/feature/agency-services/agency-services.webp +0 -0
- package/dist/library-blocks/feature/consulting-firm/consulting-firm.html +219 -0
- package/dist/library-blocks/feature/consulting-firm/consulting-firm.webp +0 -0
- package/dist/library-blocks/feature/design-studio/design-studio.html +190 -0
- package/dist/library-blocks/feature/design-studio/design-studio.webp +0 -0
- package/dist/library-blocks/feature/freelancer-toolkit/freelancer-toolkit.html +195 -0
- package/dist/library-blocks/feature/freelancer-toolkit/freelancer-toolkit.webp +0 -0
- package/dist/library-blocks/feature/marketing-agency/marketing-agency.html +212 -0
- package/dist/library-blocks/feature/marketing-agency/marketing-agency.webp +0 -0
- package/dist/library-blocks/footer/creative-agency/creative-agency.html +64 -0
- package/dist/library-blocks/footer/creative-agency/creative-agency.webp +0 -0
- package/dist/library-blocks/footer/minimal-portfolio/minimal-portfolio.html +106 -0
- package/dist/library-blocks/footer/minimal-portfolio/minimal-portfolio.webp +0 -0
- package/dist/library-blocks/footer/saas-startup/saas-startup.html +117 -0
- package/dist/library-blocks/footer/saas-startup/saas-startup.webp +0 -0
- package/dist/library-blocks/hero/creative-agency/creative-agency.html +117 -0
- package/dist/library-blocks/hero/creative-agency/creative-agency.webp +0 -0
- package/dist/library-blocks/hero/developer-focused/developer-focused.html +124 -0
- package/dist/library-blocks/hero/developer-focused/developer-focused.webp +0 -0
- package/dist/library-blocks/hero/minimal-saas/minimal-saas.html +98 -0
- package/dist/library-blocks/hero/minimal-saas/minimal-saas.webp +0 -0
- package/dist/library-blocks/hero/portfolio-showcase/portfolio-showcase.html +148 -0
- package/dist/library-blocks/hero/portfolio-showcase/portfolio-showcase.webp +0 -0
- package/dist/library-blocks/hero/startup-landing/startup-landing.html +130 -0
- package/dist/library-blocks/hero/startup-landing/startup-landing.webp +0 -0
- package/dist/library-blocks/navbar/creative-agency/creative-agency.html +139 -0
- package/dist/library-blocks/navbar/creative-agency/creative-agency.webp +0 -0
- package/dist/library-blocks/navbar/minimal-portfolio/minimal-portfolio.html +164 -0
- package/dist/library-blocks/navbar/minimal-portfolio/minimal-portfolio.webp +0 -0
- package/dist/library-blocks/navbar/saas-startup/saas-startup.html +129 -0
- package/dist/library-blocks/navbar/saas-startup/saas-startup.webp +0 -0
- package/dist/manage-design-tokens-BknGNAKE.cjs +1 -0
- package/dist/manage-design-tokens-Co5677WS.js +428 -0
- package/dist/manage-design-tokens-modal-9qpcb-EC.js +161 -0
- package/dist/manage-design-tokens-modal-BcgdwEXE.cjs +1 -0
- package/dist/{mark-as-template-D295ZQtU.js → mark-as-template-DNHYNjI9.js} +17 -16
- package/dist/mark-as-template-IYRjta97.cjs +1 -0
- package/dist/{nested-path-selector-content-CKYYK-C5.js → nested-path-selector-content-Be-pbnVl.js} +24 -23
- package/dist/nested-path-selector-content-CWmPgU-L.cjs +1 -0
- package/dist/no-language-page-content-8_J6y-cm.cjs +1 -0
- package/dist/{no-language-page-content-BvqRBP6y.js → no-language-page-content-C-ltY7bj.js} +10 -9
- package/dist/{no-language-page-dialog-BcEoqyQB.cjs → no-language-page-dialog-BOZZZzqx.cjs} +1 -1
- package/dist/{no-language-page-dialog-PjNqTUpl.js → no-language-page-dialog-D5NXpDHi.js} +2 -2
- package/dist/{page-creator-DiOITEMw.js → page-creator-BuHHnqiQ.js} +242 -241
- package/dist/page-creator-wtbae2U7.cjs +1 -0
- package/dist/{page-lock-BdYmCks0.cjs → page-lock-DN4iJc-V.cjs} +1 -1
- package/dist/{page-lock-Bfbs6RgL.js → page-lock-pPGlTxj7.js} +2 -2
- package/dist/page-locked-dialog-B_vdgv24.cjs +1 -0
- package/dist/{page-locked-dialog-B6MKTRfY.js → page-locked-dialog-Bl-ojgIW.js} +26 -23
- package/dist/page-manager-new-5W5M9_ue.cjs +1 -0
- package/dist/page-manager-new-Bg8H6yrg.js +418 -0
- package/dist/page-manager-search-and-filter-CDXunXNd.cjs +1 -0
- package/dist/{page-manager-search-and-filter-CM0UMb6U.js → page-manager-search-and-filter-CyfO7O96.js} +20 -19
- package/dist/{page-revisions-content-NH9JK4Ey.js → page-revisions-content-B-egQgoZ.js} +131 -117
- package/dist/page-revisions-content-BKT8S9_g.cjs +1 -0
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.ts +300 -97
- package/dist/pages.js +22 -19
- package/dist/plugin-BSjgGgwo.js +248 -0
- package/dist/plugin-DHpuZZXz.cjs +22 -0
- package/dist/{publish-pages-content-D9aixMN5.js → publish-pages-content-D2B_ScCQ.js} +71 -70
- package/dist/publish-pages-content-WJHTVYnx.cjs +1 -0
- package/dist/register-chai-top-bar-D6GjnauV.js +237 -0
- package/dist/register-chai-top-bar-DyW9GPzV.cjs +1 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +22 -20
- package/dist/render.js +125 -118
- package/dist/rte-widget-modal-CC1KcrAT.cjs +1 -0
- package/dist/{rte-widget-modal-DOJEXLIf.js → rte-widget-modal-c3T09VeO.js} +10 -9
- package/dist/runtime-client.cjs +1 -0
- package/dist/runtime-client.d.ts +158 -0
- package/dist/runtime-client.js +32 -0
- package/dist/runtime.cjs +11 -1
- package/dist/runtime.d.ts +159 -114
- package/dist/runtime.js +107 -42
- package/dist/save-to-lib-CiM0wiIr.cjs +1 -0
- package/dist/{save-to-lib-eiOc_SSN.js → save-to-lib-dT1NDd5w.js} +156 -149
- package/dist/sdk.css +1 -1
- package/dist/{selected-block-display-CBFePS19.js → selected-block-display-BQndDPcY.js} +40 -39
- package/dist/selected-block-display-BgqcPsXI.cjs +16 -0
- package/dist/seo-panel-DXZvGYEM.cjs +2 -0
- package/dist/{seo-panel-C1-iMOR1.js → seo-panel-Z93Zf_bz.js} +23 -22
- package/dist/{shared-json-ld-B4PxAM_0.js → shared-json-ld-Ct68RlWD.js} +100 -99
- package/dist/shared-json-ld-DwvUDGAS.cjs +1 -0
- package/dist/{slug-input-AwNJs9im.js → slug-input-CAqkFZBq.js} +9 -8
- package/dist/slug-input-Curnt2n3.cjs +1 -0
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.d.ts +40 -1
- package/dist/supabase-actions.js +231 -192
- package/dist/{take-over-request-C4FeDtN_.js → take-over-request-C6ngP1QR.js} +15 -14
- package/dist/take-over-request-D6y2HcDr.cjs +1 -0
- package/dist/theme-panel-footer-CGZL2F7R.js +26 -0
- package/dist/theme-panel-footer-IgGj-_OA.cjs +1 -0
- package/dist/translation-warning-modal-B876S5yp.cjs +1 -0
- package/dist/{translation-warning-modal-B64YqlbI.js → translation-warning-modal-kRcfrPgo.js} +11 -10
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +743 -0
- package/dist/types.js +1 -0
- package/dist/{unmark-as-template-CZ9sQp_P.js → unmark-as-template-DeeWUTco.js} +12 -11
- package/dist/unmark-as-template-f1dl_YTz.cjs +1 -0
- package/dist/unpublish-page-DEPFjGuu.cjs +1 -0
- package/dist/unpublish-page-U_79Pwc0.js +28 -0
- package/dist/unpublished-partials-modal-CEFXp1D1.cjs +1 -0
- package/dist/unpublished-partials-modal-Ts5ZhAK9.js +41 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +8 -5
- package/dist/utils.js +2 -2
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +341 -332
- package/dist/{web-preview-Djy6WIyj.js → web-preview-CoT8r96b.js} +2 -2
- package/dist/web-preview-DTDoIE-c.cjs +1 -0
- package/package.json +36 -31
- package/dist/IconPicker-DREyo007.cjs +0 -1
- package/dist/actions-registery-YnFmU21O.cjs +0 -418
- package/dist/active-in-another-tab-B47YjQGN.cjs +0 -1
- package/dist/active-in-another-tab-CyjngVA6.js +0 -34
- package/dist/add-new-language-page-88xzrUy8.cjs +0 -1
- package/dist/ai-panel-content-7zCil042.cjs +0 -1
- package/dist/ai-panel-default-lang-COYaxNwn.cjs +0 -3
- package/dist/ai-panel-default-lang-DnElspF0.js +0 -341
- package/dist/ai-panel-other-lang-CkynNlAU.cjs +0 -1
- package/dist/ai-panel-other-lang-Dp0E9_Hx.js +0 -162
- package/dist/ai-prompt-input-CThbVp0_.cjs +0 -1
- package/dist/ai-translation-prompt-C2kJQFDX.cjs +0 -1
- package/dist/apply-binding-KKp5PnpZ.cjs +0 -1
- package/dist/code-display-BnqzqzoP.cjs +0 -1
- package/dist/code-editor-DRIAnNbb.js +0 -50
- package/dist/code-editor-o3___nu2.cjs +0 -1
- package/dist/continue-editing-in-this-client-CtMYsk-A.cjs +0 -1
- package/dist/core-BoRDjj4h.cjs +0 -1
- package/dist/core-yvI6kCyw.js +0 -56
- package/dist/css-import-modal-CyqkXWCO.cjs +0 -13
- package/dist/delete-design-token-BRZZiWtQ.js +0 -40
- package/dist/delete-design-token-DkVs1oBf.cjs +0 -1
- package/dist/delete-page-BzyX9TN-.js +0 -70
- package/dist/delete-page-DxX7PFIE.cjs +0 -1
- package/dist/design-token-usage-CAHzEGgJ.cjs +0 -1
- package/dist/digital-asset-manager--uO8Agia.cjs +0 -1
- package/dist/duplicate-page-CaNAbXwV.cjs +0 -1
- package/dist/dynamic-page-selector-Cxk_gjni.cjs +0 -1
- package/dist/fonts/GeistMonoVF.woff +0 -0
- package/dist/fonts/GeistVF.woff +0 -0
- package/dist/fonts-B-Xt29pe.cjs +0 -1
- package/dist/fonts-DRly3Wzd.js +0 -78
- package/dist/get-chai-builder-tailwind-config-B9rCyiQo.cjs +0 -1
- package/dist/index-B-rSiAp_.cjs +0 -1
- package/dist/index-DF5DEvqb.cjs +0 -160
- package/dist/index-Dxfyt4d4.js +0 -39
- package/dist/index-WQwzsC7A.cjs +0 -5
- package/dist/index-ZuacEL1j.js +0 -4732
- package/dist/json-diff-viewer-D7z4zNvv.cjs +0 -8
- package/dist/lang-panel-DT96k1xg.cjs +0 -1
- package/dist/manage-design-tokens-Caz_20VK.js +0 -240
- package/dist/manage-design-tokens-CrmLe7UT.cjs +0 -1
- package/dist/mark-as-template-W3LmpiqN.cjs +0 -1
- package/dist/nested-path-selector-content-CoS_d3dc.cjs +0 -1
- package/dist/no-language-page-content-DkfeMl90.cjs +0 -1
- package/dist/page-creator-C4gc5NSC.cjs +0 -1
- package/dist/page-locked-dialog-B1FAtK92.cjs +0 -1
- package/dist/page-manager-new-CHDueBDk.cjs +0 -1
- package/dist/page-manager-new-CzX22g2n.js +0 -394
- package/dist/page-manager-search-and-filter-DkkRIH86.cjs +0 -1
- package/dist/page-revisions-content-ChY-4f2V.cjs +0 -1
- package/dist/plugin-3ZKK6RXm.js +0 -245
- package/dist/plugin-C6rgJDNQ.cjs +0 -22
- package/dist/publish-pages-content-x-JuSFJ9.cjs +0 -1
- package/dist/rte-widget-modal-BaHIuEjF.cjs +0 -1
- package/dist/save-to-lib-Cgpxw8-g.cjs +0 -1
- package/dist/selected-block-display-BgRY82CT.cjs +0 -16
- package/dist/seo-panel-DfAb8U7W.cjs +0 -2
- package/dist/shared-json-ld-DzG398hr.cjs +0 -1
- package/dist/slug-input-C_ijLQ_X.cjs +0 -1
- package/dist/take-over-request-BNxcjY2j.cjs +0 -1
- package/dist/theme-panel-footer-Cq9pljro.cjs +0 -1
- package/dist/theme-panel-footer-uBQqSJXm.js +0 -25
- package/dist/translation-warning-modal-BZAcwM2_.cjs +0 -1
- package/dist/unmark-as-template-EVvk0vmp.cjs +0 -1
- package/dist/unpublish-page-D4VwOlxc.js +0 -27
- package/dist/unpublish-page-bdSmwAVQ.cjs +0 -1
- package/dist/web-preview-Cio70gk5.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isEmpty as w, get as C, map as T, isNull as F, omit as E, pick as M } from "lodash-es";
|
|
2
|
+
import { jsx as i, jsxs as h, Fragment as S } from "react/jsx-runtime";
|
|
3
|
+
import { registerChaiBlockProps as u, stylesProp as p } from "./runtime.js";
|
|
4
|
+
import { c as N, g as I } from "./common-functions-D2lMFR6K.js";
|
|
4
5
|
import * as b from "react";
|
|
5
6
|
import { createElement as x } from "react";
|
|
6
|
-
import { ButtonIcon as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: _("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ge = (e) => {
|
|
7
|
+
import { ButtonIcon as H, CodeIcon as $, FrameIcon as j, SketchLogoIcon as U, RowsIcon as D, LayoutIcon as Z, DividerHorizontalIcon as q, CheckboxIcon as G, FileTextIcon as W, InputIcon as V, LetterCaseToggleIcon as O, RadiobuttonIcon as Y, DropdownMenuIcon as Q, HeadingIcon as J, TableIcon as X, BorderTopIcon as K, BorderAllIcon as ee, ViewHorizontalIcon as te, DragHandleHorizontalIcon as oe, ImageIcon as le, Link1Icon as re, ColumnsIcon as ne, TextIcon as ie, CursorTextIcon as ae, SpaceBetweenVerticallyIcon as se, VideoIcon as ce, ChevronLeftIcon as pe, ChevronRightIcon as de, LoopIcon as z } from "@radix-ui/react-icons";
|
|
8
|
+
import { r as d, e as ue, c as me } from "./core-QlWEXm1d.js";
|
|
9
|
+
const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: N("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ye = (e) => {
|
|
10
10
|
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
|
|
11
11
|
let s = r;
|
|
12
|
-
r || (s = /* @__PURE__ */ i(
|
|
12
|
+
r || (s = /* @__PURE__ */ i(v, { inBuilder: t }));
|
|
13
13
|
let c = {};
|
|
14
14
|
return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...o, ...a, style: c }, s);
|
|
15
|
-
},
|
|
15
|
+
}, ge = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
description: "Similar to a div or section elements in HTML",
|
|
18
18
|
label: "Box",
|
|
19
19
|
category: "core",
|
|
20
20
|
group: "basic",
|
|
21
|
-
|
|
21
|
+
props: u({
|
|
22
22
|
properties: {
|
|
23
|
-
styles:
|
|
23
|
+
styles: p(""),
|
|
24
24
|
tag: {
|
|
25
25
|
type: "string",
|
|
26
26
|
default: "div",
|
|
@@ -54,15 +54,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
54
54
|
}
|
|
55
55
|
}),
|
|
56
56
|
canAcceptBlock: () => !0
|
|
57
|
-
},
|
|
58
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder:
|
|
57
|
+
}, be = (e) => {
|
|
58
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: g } = e, m = l, k = a || /* @__PURE__ */ h(S, { children: [
|
|
59
59
|
r && /* @__PURE__ */ i("span", { children: r }),
|
|
60
|
-
|
|
60
|
+
m && /* @__PURE__ */ i(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
style: { width: t + "px" },
|
|
64
64
|
className: s + " " + (r ? s === "order-first" ? "mr-2" : "ml-2" : "") || "",
|
|
65
|
-
dangerouslySetInnerHTML: { __html:
|
|
65
|
+
dangerouslySetInnerHTML: { __html: m }
|
|
66
66
|
}
|
|
67
67
|
)
|
|
68
68
|
] }), f = x(
|
|
@@ -73,19 +73,19 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
73
73
|
type: "button",
|
|
74
74
|
"aria-label": r
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
k
|
|
77
77
|
);
|
|
78
|
-
return w(
|
|
79
|
-
},
|
|
78
|
+
return w(C(c, "href")) ? f : g ? /* @__PURE__ */ i("span", { children: f }) : /* @__PURE__ */ i("a", { "aria-label": r, href: C(c, "href") || "/", target: C(c, "target", "_self"), children: f });
|
|
79
|
+
}, fe = {
|
|
80
80
|
type: "Button",
|
|
81
81
|
description: "similar to a button element in HTML",
|
|
82
82
|
label: "Button",
|
|
83
83
|
category: "core",
|
|
84
|
-
icon:
|
|
84
|
+
icon: H,
|
|
85
85
|
group: "basic",
|
|
86
|
-
|
|
86
|
+
props: u({
|
|
87
87
|
properties: {
|
|
88
|
-
styles:
|
|
88
|
+
styles: p("text-primary-foreground bg-primary px-4 py-2 rounded-lg flex items-center"),
|
|
89
89
|
content: {
|
|
90
90
|
type: "string",
|
|
91
91
|
title: "Button label",
|
|
@@ -132,7 +132,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
132
132
|
}),
|
|
133
133
|
i18nProps: ["content", "link"],
|
|
134
134
|
aiProps: ["content"]
|
|
135
|
-
},
|
|
135
|
+
}, he = (e) => {
|
|
136
136
|
const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
|
|
137
137
|
return r ? /* @__PURE__ */ h("div", { className: "relative", ...o, children: [
|
|
138
138
|
r ? /* @__PURE__ */ i("div", { ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
@@ -145,16 +145,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
145
145
|
...t,
|
|
146
146
|
dangerouslySetInnerHTML: { __html: l }
|
|
147
147
|
});
|
|
148
|
-
},
|
|
148
|
+
}, Ce = {
|
|
149
149
|
type: "CustomHTML",
|
|
150
150
|
description: "similar to a div or section elements in HTML",
|
|
151
151
|
label: "Custom HTML",
|
|
152
152
|
category: "core",
|
|
153
|
-
icon:
|
|
153
|
+
icon: $,
|
|
154
154
|
group: "advanced",
|
|
155
|
-
|
|
155
|
+
props: u({
|
|
156
156
|
properties: {
|
|
157
|
-
styles:
|
|
157
|
+
styles: p(""),
|
|
158
158
|
htmlCode: {
|
|
159
159
|
type: "string",
|
|
160
160
|
default: "<div><p>Enter your HTML code here...</p></div>",
|
|
@@ -163,18 +163,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
163
163
|
}
|
|
164
164
|
}),
|
|
165
165
|
i18nProps: ["htmlCode"]
|
|
166
|
-
},
|
|
166
|
+
}, ke = (e) => {
|
|
167
167
|
const { scripts: o, inBuilder: t, blockProps: l } = e;
|
|
168
|
-
return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className:
|
|
169
|
-
},
|
|
168
|
+
return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: N("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: { __html: o } });
|
|
169
|
+
}, xe = {
|
|
170
170
|
type: "CustomScript",
|
|
171
171
|
description: "similar to a script element in HTML",
|
|
172
172
|
label: "Custom Script",
|
|
173
173
|
category: "core",
|
|
174
|
-
icon:
|
|
174
|
+
icon: $,
|
|
175
175
|
hidden: !0,
|
|
176
176
|
group: "advanced",
|
|
177
|
-
|
|
177
|
+
props: u({
|
|
178
178
|
properties: {
|
|
179
179
|
scripts: {
|
|
180
180
|
type: "string",
|
|
@@ -185,7 +185,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
})
|
|
188
|
-
},
|
|
188
|
+
}, we = (e) => {
|
|
189
189
|
const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
|
|
190
190
|
return t && !r ? /* @__PURE__ */ h(
|
|
191
191
|
"div",
|
|
@@ -201,15 +201,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
201
201
|
]
|
|
202
202
|
}
|
|
203
203
|
) : b.createElement("span", { ...o }, l);
|
|
204
|
-
},
|
|
204
|
+
}, ve = {
|
|
205
205
|
type: "GlobalBlock",
|
|
206
206
|
description: "A global block component",
|
|
207
207
|
label: "Global Block",
|
|
208
|
-
icon:
|
|
208
|
+
icon: j,
|
|
209
209
|
category: "core",
|
|
210
210
|
group: "basic",
|
|
211
211
|
hidden: !0,
|
|
212
|
-
|
|
212
|
+
props: u({
|
|
213
213
|
properties: {
|
|
214
214
|
globalBlock: {
|
|
215
215
|
type: "string",
|
|
@@ -219,13 +219,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
})
|
|
222
|
-
},
|
|
222
|
+
}, _ = (e, ...o) => ({
|
|
223
223
|
...e,
|
|
224
|
-
className:
|
|
225
|
-
}),
|
|
226
|
-
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s =
|
|
224
|
+
className: N(e.className, ...o)
|
|
225
|
+
}), Ie = (e) => {
|
|
226
|
+
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = _(l, "");
|
|
227
227
|
if (w(t))
|
|
228
|
-
return /* @__PURE__ */ i(
|
|
228
|
+
return /* @__PURE__ */ i(v, { inBuilder: n, className: "h-8 w-14" });
|
|
229
229
|
const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
230
230
|
return b.createElement("span", {
|
|
231
231
|
...o,
|
|
@@ -236,16 +236,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
236
236
|
},
|
|
237
237
|
dangerouslySetInnerHTML: { __html: c }
|
|
238
238
|
});
|
|
239
|
-
},
|
|
239
|
+
}, Pe = {
|
|
240
240
|
type: "Icon",
|
|
241
241
|
label: "web_blocks.icon",
|
|
242
242
|
category: "core",
|
|
243
243
|
description: "Icon block is used to display an icon/svg.",
|
|
244
244
|
icon: U,
|
|
245
245
|
group: "media",
|
|
246
|
-
|
|
246
|
+
props: u({
|
|
247
247
|
properties: {
|
|
248
|
-
styles:
|
|
248
|
+
styles: p(""),
|
|
249
249
|
icon: {
|
|
250
250
|
type: "string",
|
|
251
251
|
title: "Icon",
|
|
@@ -264,7 +264,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, Le = (e) => {
|
|
268
268
|
const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
|
|
269
269
|
return t && !r ? /* @__PURE__ */ h(
|
|
270
270
|
"div",
|
|
@@ -280,15 +280,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
280
280
|
]
|
|
281
281
|
}
|
|
282
282
|
) : b.createElement("span", { ...o }, l);
|
|
283
|
-
},
|
|
283
|
+
}, Be = {
|
|
284
284
|
type: "PartialBlock",
|
|
285
285
|
description: "A partial block component. Partial blocks are global blocks that can be used in multiple pages.",
|
|
286
286
|
label: "Partial Block",
|
|
287
|
-
icon:
|
|
287
|
+
icon: j,
|
|
288
288
|
category: "core",
|
|
289
289
|
group: "basic",
|
|
290
290
|
hidden: !0,
|
|
291
|
-
|
|
291
|
+
props: u({
|
|
292
292
|
properties: {
|
|
293
293
|
partialBlockId: {
|
|
294
294
|
type: "string",
|
|
@@ -298,7 +298,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
})
|
|
301
|
-
},
|
|
301
|
+
}, L = {
|
|
302
302
|
SMALL: {
|
|
303
303
|
1: "col-span-1",
|
|
304
304
|
2: "col-span-2",
|
|
@@ -341,15 +341,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
341
341
|
11: "lg:col-span-11",
|
|
342
342
|
12: "lg:col-span-12"
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, Se = (e) => {
|
|
345
345
|
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
n ?
|
|
349
|
-
a ?
|
|
346
|
+
C(l, "className", ""),
|
|
347
|
+
C(L, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
|
|
348
|
+
n ? C(L, ["MEDIUM", n || r], "") : "",
|
|
349
|
+
a ? C(L, ["LARGE", n || r], "") : ""
|
|
350
350
|
].join(" ") };
|
|
351
351
|
return /* @__PURE__ */ i("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
352
|
-
},
|
|
352
|
+
}, Ne = {
|
|
353
353
|
type: "Column",
|
|
354
354
|
description: "A column component",
|
|
355
355
|
label: "Column",
|
|
@@ -361,9 +361,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
361
361
|
canDelete: () => !0,
|
|
362
362
|
canAcceptBlock: () => !0,
|
|
363
363
|
canBeNested: (e) => e === "Row",
|
|
364
|
-
|
|
364
|
+
props: u({
|
|
365
365
|
properties: {
|
|
366
|
-
styles:
|
|
366
|
+
styles: p(""),
|
|
367
367
|
colSpan: {
|
|
368
368
|
type: "number",
|
|
369
369
|
title: "Column Span",
|
|
@@ -386,15 +386,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
})
|
|
389
|
-
},
|
|
390
|
-
const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [
|
|
391
|
-
return typeof (l == null ? void 0 : l.style) == "object"
|
|
392
|
-
},
|
|
389
|
+
}, _e = (e) => {
|
|
390
|
+
const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [C(l, "className", ""), " grid grid-cols-12"].join() };
|
|
391
|
+
return typeof (l == null ? void 0 : l.style) == "object" && l.style !== null ? a.style = { ...l.style, gap: `${r}px` } : a.style = { gap: `${r}px` }, /* @__PURE__ */ i("div", { ...o, ...l, ...a, children: t });
|
|
392
|
+
}, Te = {
|
|
393
393
|
type: "Row",
|
|
394
394
|
description: "A row component",
|
|
395
395
|
label: "Row",
|
|
396
396
|
group: "basic",
|
|
397
|
-
icon:
|
|
397
|
+
icon: D,
|
|
398
398
|
hidden: !0,
|
|
399
399
|
blocks: () => [
|
|
400
400
|
{ _type: "Row", _id: "row", styles: "#styles:,p-1" },
|
|
@@ -404,9 +404,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
404
404
|
category: "core",
|
|
405
405
|
wrapper: !0,
|
|
406
406
|
canAcceptBlock: (e) => e === "Column",
|
|
407
|
-
|
|
407
|
+
props: u({
|
|
408
408
|
properties: {
|
|
409
|
-
styles:
|
|
409
|
+
styles: p(""),
|
|
410
410
|
colCount: {
|
|
411
411
|
type: "number",
|
|
412
412
|
default: 2,
|
|
@@ -421,34 +421,34 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
})
|
|
424
|
-
},
|
|
424
|
+
}, Re = (e) => {
|
|
425
425
|
const { blockProps: o, styles: t } = e;
|
|
426
426
|
return x("hr", { ...t, ...o });
|
|
427
|
-
},
|
|
427
|
+
}, Ae = {
|
|
428
428
|
type: "Divider",
|
|
429
429
|
description: "A horizontal line component",
|
|
430
430
|
label: "Divider",
|
|
431
431
|
category: "core",
|
|
432
432
|
icon: q,
|
|
433
433
|
group: "basic",
|
|
434
|
-
|
|
434
|
+
props: u({
|
|
435
435
|
properties: {
|
|
436
|
-
styles:
|
|
436
|
+
styles: p("bg-gray-900 h-0.5 py-2 my-1")
|
|
437
437
|
}
|
|
438
438
|
})
|
|
439
|
-
},
|
|
439
|
+
}, Ee = (e) => {
|
|
440
440
|
const { blockProps: o, styles: t, backgroundImage: l } = e;
|
|
441
441
|
let r = {};
|
|
442
442
|
return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...o, ...t, style: r });
|
|
443
|
-
},
|
|
443
|
+
}, Me = {
|
|
444
444
|
type: "EmptyBox",
|
|
445
445
|
description: "A box component with no children",
|
|
446
446
|
label: "Empty Box",
|
|
447
447
|
category: "core",
|
|
448
448
|
group: "basic",
|
|
449
|
-
|
|
449
|
+
props: u({
|
|
450
450
|
properties: {
|
|
451
|
-
styles:
|
|
451
|
+
styles: p(""),
|
|
452
452
|
backgroundImage: {
|
|
453
453
|
type: "string",
|
|
454
454
|
title: "Background Image",
|
|
@@ -457,7 +457,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
})
|
|
460
|
-
},
|
|
460
|
+
}, He = (e) => {
|
|
461
461
|
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
462
462
|
return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
|
|
463
463
|
/* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
|
|
@@ -474,16 +474,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
474
474
|
defaultChecked: s
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
|
-
},
|
|
477
|
+
}, $e = {
|
|
478
478
|
type: "Checkbox",
|
|
479
479
|
label: "web_blocks.checkbox",
|
|
480
480
|
category: "core",
|
|
481
481
|
icon: G,
|
|
482
482
|
group: "form",
|
|
483
|
-
|
|
483
|
+
props: u({
|
|
484
484
|
properties: {
|
|
485
|
-
styles:
|
|
486
|
-
inputStyles:
|
|
485
|
+
styles: p("flex items-center gap-x-2"),
|
|
486
|
+
inputStyles: p(""),
|
|
487
487
|
fieldName: {
|
|
488
488
|
type: "string",
|
|
489
489
|
title: "Field Name",
|
|
@@ -513,10 +513,10 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
513
513
|
}),
|
|
514
514
|
aiProps: ["label"],
|
|
515
515
|
i18nProps: ["label"]
|
|
516
|
-
},
|
|
516
|
+
}, je = (e) => {
|
|
517
517
|
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
|
|
518
518
|
let c = o;
|
|
519
|
-
return o || (c = /* @__PURE__ */ i(
|
|
519
|
+
return o || (c = /* @__PURE__ */ i(v, { inBuilder: s })), /* @__PURE__ */ h(
|
|
520
520
|
"form",
|
|
521
521
|
{
|
|
522
522
|
...{
|
|
@@ -538,7 +538,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
538
538
|
]
|
|
539
539
|
}
|
|
540
540
|
);
|
|
541
|
-
},
|
|
541
|
+
}, De = {
|
|
542
542
|
type: "Form",
|
|
543
543
|
label: "Form",
|
|
544
544
|
category: "core",
|
|
@@ -554,9 +554,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
554
554
|
styles: "#styles:bg-black text-white rounded px-3 py-1,"
|
|
555
555
|
}
|
|
556
556
|
],
|
|
557
|
-
|
|
557
|
+
props: u({
|
|
558
558
|
properties: {
|
|
559
|
-
styles:
|
|
559
|
+
styles: p(""),
|
|
560
560
|
action: {
|
|
561
561
|
type: "string",
|
|
562
562
|
title: "Submit URL",
|
|
@@ -579,7 +579,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
579
579
|
i18nProps: ["errorMessage", "successMessage"],
|
|
580
580
|
aiProps: ["errorMessage", "successMessage"],
|
|
581
581
|
canAcceptBlock: () => !0
|
|
582
|
-
},
|
|
582
|
+
}, Ve = (e) => {
|
|
583
583
|
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
|
|
584
584
|
return /* @__PURE__ */ h("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
|
|
585
585
|
l,
|
|
@@ -592,15 +592,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
592
592
|
}
|
|
593
593
|
)
|
|
594
594
|
] });
|
|
595
|
-
},
|
|
595
|
+
}, ze = {
|
|
596
596
|
type: "FormButton",
|
|
597
597
|
label: "Submit Button",
|
|
598
598
|
category: "core",
|
|
599
|
-
icon:
|
|
599
|
+
icon: H,
|
|
600
600
|
group: "form",
|
|
601
|
-
|
|
601
|
+
props: u({
|
|
602
602
|
properties: {
|
|
603
|
-
styles:
|
|
603
|
+
styles: p(
|
|
604
604
|
"text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
605
605
|
),
|
|
606
606
|
label: {
|
|
@@ -631,75 +631,75 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
631
631
|
}),
|
|
632
632
|
i18nProps: ["label"],
|
|
633
633
|
aiProps: ["label"]
|
|
634
|
-
},
|
|
635
|
-
const o = { type: "text",
|
|
636
|
-
return e ? ["text", "password", "number", "hidden", "range", "color", "date", "time"].includes(e) ? { type: e,
|
|
634
|
+
}, Fe = (e) => {
|
|
635
|
+
const o = { type: "text", autoComplete: "on" };
|
|
636
|
+
return e ? ["text", "password", "number", "hidden", "range", "color", "date", "time"].includes(e) ? { type: e, autoComplete: "on" } : e === "email" ? { type: "email", autoComplete: "email" } : e === "tel" ? { type: "tel", autoComplete: "tel" } : e === "url" ? { type: "url", autoComplete: "url" } : {
|
|
637
637
|
// Special cases
|
|
638
|
-
off: { type: "text",
|
|
639
|
-
on: { type: "text",
|
|
638
|
+
off: { type: "text", autoComplete: "off" },
|
|
639
|
+
on: { type: "text", autoComplete: "on" },
|
|
640
640
|
// Name related
|
|
641
|
-
name: { type: "text",
|
|
642
|
-
"honorific-prefix": { type: "text",
|
|
643
|
-
"given-name": { type: "text",
|
|
644
|
-
"additional-name": { type: "text",
|
|
645
|
-
"family-name": { type: "text",
|
|
646
|
-
"honorific-suffix": { type: "text",
|
|
647
|
-
nickname: { type: "text",
|
|
648
|
-
firstName: { type: "text",
|
|
649
|
-
lastName: { type: "text",
|
|
641
|
+
name: { type: "text", autoComplete: "name" },
|
|
642
|
+
"honorific-prefix": { type: "text", autoComplete: "honorific-prefix" },
|
|
643
|
+
"given-name": { type: "text", autoComplete: "given-name" },
|
|
644
|
+
"additional-name": { type: "text", autoComplete: "additional-name" },
|
|
645
|
+
"family-name": { type: "text", autoComplete: "family-name" },
|
|
646
|
+
"honorific-suffix": { type: "text", autoComplete: "honorific-suffix" },
|
|
647
|
+
nickname: { type: "text", autoComplete: "nickname" },
|
|
648
|
+
firstName: { type: "text", autoComplete: "given-name" },
|
|
649
|
+
lastName: { type: "text", autoComplete: "family-name" },
|
|
650
650
|
// Contact related
|
|
651
|
-
email: { type: "email",
|
|
652
|
-
tel: { type: "tel",
|
|
653
|
-
"tel-country-code": { type: "tel",
|
|
654
|
-
"tel-national": { type: "tel",
|
|
655
|
-
"tel-area-code": { type: "tel",
|
|
656
|
-
"tel-local": { type: "tel",
|
|
657
|
-
"tel-extension": { type: "tel",
|
|
651
|
+
email: { type: "email", autoComplete: "email" },
|
|
652
|
+
tel: { type: "tel", autoComplete: "tel" },
|
|
653
|
+
"tel-country-code": { type: "tel", autoComplete: "tel-country-code" },
|
|
654
|
+
"tel-national": { type: "tel", autoComplete: "tel-national" },
|
|
655
|
+
"tel-area-code": { type: "tel", autoComplete: "tel-area-code" },
|
|
656
|
+
"tel-local": { type: "tel", autoComplete: "tel-local" },
|
|
657
|
+
"tel-extension": { type: "tel", autoComplete: "tel-extension" },
|
|
658
658
|
// Address related
|
|
659
|
-
"street-address": { type: "text",
|
|
660
|
-
"address-line1": { type: "text",
|
|
661
|
-
"address-line2": { type: "text",
|
|
662
|
-
"address-line3": { type: "text",
|
|
663
|
-
"address-level1": { type: "text",
|
|
664
|
-
"address-level2": { type: "text",
|
|
665
|
-
"address-level3": { type: "text",
|
|
666
|
-
"address-level4": { type: "text",
|
|
667
|
-
country: { type: "text",
|
|
668
|
-
"country-name": { type: "text",
|
|
669
|
-
"postal-code": { type: "text",
|
|
659
|
+
"street-address": { type: "text", autoComplete: "street-address" },
|
|
660
|
+
"address-line1": { type: "text", autoComplete: "address-line1" },
|
|
661
|
+
"address-line2": { type: "text", autoComplete: "address-line2" },
|
|
662
|
+
"address-line3": { type: "text", autoComplete: "address-line3" },
|
|
663
|
+
"address-level1": { type: "text", autoComplete: "address-level1" },
|
|
664
|
+
"address-level2": { type: "text", autoComplete: "address-level2" },
|
|
665
|
+
"address-level3": { type: "text", autoComplete: "address-level3" },
|
|
666
|
+
"address-level4": { type: "text", autoComplete: "address-level4" },
|
|
667
|
+
country: { type: "text", autoComplete: "country" },
|
|
668
|
+
"country-name": { type: "text", autoComplete: "country-name" },
|
|
669
|
+
"postal-code": { type: "text", autoComplete: "postal-code" },
|
|
670
670
|
// Credit card related
|
|
671
|
-
"cc-name": { type: "text",
|
|
672
|
-
"cc-given-name": { type: "text",
|
|
673
|
-
"cc-additional-name": { type: "text",
|
|
674
|
-
"cc-family-name": { type: "text",
|
|
675
|
-
"cc-number": { type: "text",
|
|
676
|
-
"cc-exp": { type: "text",
|
|
677
|
-
"cc-exp-month": { type: "number",
|
|
678
|
-
"cc-exp-year": { type: "number",
|
|
679
|
-
"cc-csc": { type: "text",
|
|
680
|
-
"cc-type": { type: "text",
|
|
671
|
+
"cc-name": { type: "text", autoComplete: "cc-name" },
|
|
672
|
+
"cc-given-name": { type: "text", autoComplete: "cc-given-name" },
|
|
673
|
+
"cc-additional-name": { type: "text", autoComplete: "cc-additional-name" },
|
|
674
|
+
"cc-family-name": { type: "text", autoComplete: "cc-family-name" },
|
|
675
|
+
"cc-number": { type: "text", autoComplete: "cc-number" },
|
|
676
|
+
"cc-exp": { type: "text", autoComplete: "cc-exp" },
|
|
677
|
+
"cc-exp-month": { type: "number", autoComplete: "cc-exp-month" },
|
|
678
|
+
"cc-exp-year": { type: "number", autoComplete: "cc-exp-year" },
|
|
679
|
+
"cc-csc": { type: "text", autoComplete: "cc-csc" },
|
|
680
|
+
"cc-type": { type: "text", autoComplete: "cc-type" },
|
|
681
681
|
// Date related
|
|
682
|
-
bday: { type: "date",
|
|
683
|
-
"bday-day": { type: "number",
|
|
684
|
-
"bday-month": { type: "number",
|
|
685
|
-
"bday-year": { type: "number",
|
|
682
|
+
bday: { type: "date", autoComplete: "bday" },
|
|
683
|
+
"bday-day": { type: "number", autoComplete: "bday-day" },
|
|
684
|
+
"bday-month": { type: "number", autoComplete: "bday-month" },
|
|
685
|
+
"bday-year": { type: "number", autoComplete: "bday-year" },
|
|
686
686
|
// Login related
|
|
687
|
-
username: { type: "text",
|
|
688
|
-
"new-password": { type: "password",
|
|
689
|
-
"current-password": { type: "password",
|
|
690
|
-
"one-time-code": { type: "text",
|
|
687
|
+
username: { type: "text", autoComplete: "username" },
|
|
688
|
+
"new-password": { type: "password", autoComplete: "new-password" },
|
|
689
|
+
"current-password": { type: "password", autoComplete: "current-password" },
|
|
690
|
+
"one-time-code": { type: "text", autoComplete: "one-time-code" },
|
|
691
691
|
// Transaction related
|
|
692
|
-
"transaction-currency": { type: "text",
|
|
693
|
-
"transaction-amount": { type: "number",
|
|
692
|
+
"transaction-currency": { type: "text", autoComplete: "transaction-currency" },
|
|
693
|
+
"transaction-amount": { type: "number", autoComplete: "transaction-amount" },
|
|
694
694
|
// Other
|
|
695
|
-
url: { type: "url",
|
|
696
|
-
photo: { type: "url",
|
|
697
|
-
sex: { type: "text",
|
|
698
|
-
"organization-title": { type: "text",
|
|
699
|
-
organization: { type: "text",
|
|
700
|
-
language: { type: "text",
|
|
695
|
+
url: { type: "url", autoComplete: "url" },
|
|
696
|
+
photo: { type: "url", autoComplete: "photo" },
|
|
697
|
+
sex: { type: "text", autoComplete: "sex" },
|
|
698
|
+
"organization-title": { type: "text", autoComplete: "organization-title" },
|
|
699
|
+
organization: { type: "text", autoComplete: "organization" },
|
|
700
|
+
language: { type: "text", autoComplete: "language" }
|
|
701
701
|
}[e] || o : o;
|
|
702
|
-
},
|
|
702
|
+
}, Ue = (e) => {
|
|
703
703
|
const {
|
|
704
704
|
blockProps: o,
|
|
705
705
|
fieldName: t,
|
|
@@ -709,21 +709,22 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
709
709
|
inputStyles: a,
|
|
710
710
|
showLabel: s,
|
|
711
711
|
required: c,
|
|
712
|
-
inputType:
|
|
713
|
-
defaultValue:
|
|
714
|
-
} = e, { type:
|
|
712
|
+
inputType: g,
|
|
713
|
+
defaultValue: m
|
|
714
|
+
} = e, { type: k, autoComplete: f } = Fe(g);
|
|
715
715
|
return s ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
716
716
|
s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
717
717
|
/* @__PURE__ */ i(
|
|
718
718
|
"input",
|
|
719
719
|
{
|
|
720
720
|
name: t,
|
|
721
|
-
defaultValue:
|
|
721
|
+
defaultValue: m,
|
|
722
722
|
...a,
|
|
723
|
-
type:
|
|
723
|
+
type: k,
|
|
724
724
|
placeholder: r,
|
|
725
725
|
required: c,
|
|
726
|
-
autoComplete: f
|
|
726
|
+
autoComplete: f,
|
|
727
|
+
...k === "hidden" && m ? { value: m } : {}
|
|
727
728
|
}
|
|
728
729
|
)
|
|
729
730
|
] }) : /* @__PURE__ */ i(
|
|
@@ -733,23 +734,24 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
733
734
|
...o,
|
|
734
735
|
...a,
|
|
735
736
|
...n,
|
|
736
|
-
type:
|
|
737
|
+
type: k,
|
|
737
738
|
placeholder: r,
|
|
738
739
|
required: c,
|
|
739
740
|
autoComplete: f,
|
|
740
|
-
defaultValue:
|
|
741
|
+
defaultValue: m,
|
|
742
|
+
...k === "hidden" && m ? { value: m } : {}
|
|
741
743
|
}
|
|
742
744
|
);
|
|
743
|
-
},
|
|
745
|
+
}, Ze = {
|
|
744
746
|
type: "Input",
|
|
745
747
|
label: "web_blocks.input",
|
|
746
748
|
category: "core",
|
|
747
|
-
icon:
|
|
749
|
+
icon: V,
|
|
748
750
|
group: "form",
|
|
749
|
-
|
|
751
|
+
props: u({
|
|
750
752
|
properties: {
|
|
751
|
-
styles:
|
|
752
|
-
inputStyles:
|
|
753
|
+
styles: p(""),
|
|
754
|
+
inputStyles: p("w-full p-1"),
|
|
753
755
|
fieldName: {
|
|
754
756
|
type: "string",
|
|
755
757
|
title: "Field Name",
|
|
@@ -855,21 +857,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
855
857
|
}),
|
|
856
858
|
aiProps: ["label", "placeholder"],
|
|
857
859
|
i18nProps: ["label", "placeholder"]
|
|
858
|
-
},
|
|
860
|
+
}, qe = (e) => {
|
|
859
861
|
const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
|
|
860
862
|
return r ? b.createElement("label", n, r) : b.createElement("label", {
|
|
861
863
|
...n,
|
|
862
864
|
dangerouslySetInnerHTML: { __html: t }
|
|
863
865
|
});
|
|
864
|
-
},
|
|
866
|
+
}, Ge = {
|
|
865
867
|
type: "Label",
|
|
866
868
|
label: "Label",
|
|
867
869
|
category: "core",
|
|
868
870
|
icon: O,
|
|
869
871
|
group: "form",
|
|
870
|
-
|
|
872
|
+
props: u({
|
|
871
873
|
properties: {
|
|
872
|
-
styles:
|
|
874
|
+
styles: p(),
|
|
873
875
|
content: {
|
|
874
876
|
type: "string",
|
|
875
877
|
title: "Content",
|
|
@@ -879,7 +881,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
879
881
|
}),
|
|
880
882
|
aiProps: ["content"],
|
|
881
883
|
i18nProps: ["content"]
|
|
882
|
-
},
|
|
884
|
+
}, We = (e) => {
|
|
883
885
|
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
884
886
|
return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
|
|
885
887
|
/* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
|
|
@@ -896,16 +898,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
896
898
|
checked: s
|
|
897
899
|
}
|
|
898
900
|
);
|
|
899
|
-
},
|
|
901
|
+
}, Oe = {
|
|
900
902
|
type: "Radio",
|
|
901
903
|
label: "web_blocks.radio",
|
|
902
904
|
category: "core",
|
|
903
905
|
icon: Y,
|
|
904
906
|
group: "form",
|
|
905
|
-
|
|
907
|
+
props: u({
|
|
906
908
|
properties: {
|
|
907
|
-
styles:
|
|
908
|
-
inputStyles:
|
|
909
|
+
styles: p("flex items-center gap-x-2"),
|
|
910
|
+
inputStyles: p(""),
|
|
909
911
|
fieldName: {
|
|
910
912
|
type: "string",
|
|
911
913
|
title: "Field Name",
|
|
@@ -935,7 +937,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
935
937
|
}),
|
|
936
938
|
aiProps: ["label"],
|
|
937
939
|
i18nProps: ["label"]
|
|
938
|
-
},
|
|
940
|
+
}, Ye = (e) => {
|
|
939
941
|
const {
|
|
940
942
|
blockProps: o,
|
|
941
943
|
fieldName: t,
|
|
@@ -945,10 +947,10 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
945
947
|
inputStyles: a,
|
|
946
948
|
required: s,
|
|
947
949
|
showLabel: c,
|
|
948
|
-
_multiple:
|
|
949
|
-
options:
|
|
950
|
-
defaultValue:
|
|
951
|
-
} = e, f =
|
|
950
|
+
_multiple: g,
|
|
951
|
+
options: m,
|
|
952
|
+
defaultValue: k
|
|
953
|
+
} = e, f = g && k ? k.split(",").map((y) => y.trim()) : k || "";
|
|
952
954
|
return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
953
955
|
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
954
956
|
/* @__PURE__ */ h(
|
|
@@ -956,12 +958,12 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
956
958
|
{
|
|
957
959
|
...a,
|
|
958
960
|
required: s,
|
|
959
|
-
multiple:
|
|
961
|
+
multiple: g,
|
|
960
962
|
name: t,
|
|
961
963
|
defaultValue: f,
|
|
962
964
|
children: [
|
|
963
965
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
964
|
-
|
|
966
|
+
T(m, (y) => /* @__PURE__ */ i("option", { value: y == null ? void 0 : y.value, children: y == null ? void 0 : y.label }, y == null ? void 0 : y.value))
|
|
965
967
|
]
|
|
966
968
|
}
|
|
967
969
|
)
|
|
@@ -971,25 +973,25 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
971
973
|
...n,
|
|
972
974
|
...o,
|
|
973
975
|
required: s,
|
|
974
|
-
multiple:
|
|
976
|
+
multiple: g,
|
|
975
977
|
name: t,
|
|
976
978
|
defaultValue: f,
|
|
977
979
|
children: [
|
|
978
980
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
979
|
-
|
|
981
|
+
T(m, (y) => /* @__PURE__ */ i("option", { value: y == null ? void 0 : y.value, children: y == null ? void 0 : y.label }, y == null ? void 0 : y.value))
|
|
980
982
|
]
|
|
981
983
|
}
|
|
982
984
|
);
|
|
983
|
-
},
|
|
985
|
+
}, Qe = {
|
|
984
986
|
type: "Select",
|
|
985
987
|
label: "web_blocks.select",
|
|
986
988
|
category: "core",
|
|
987
989
|
icon: Q,
|
|
988
990
|
group: "form",
|
|
989
|
-
|
|
991
|
+
props: u({
|
|
990
992
|
properties: {
|
|
991
|
-
styles:
|
|
992
|
-
inputStyles:
|
|
993
|
+
styles: p(""),
|
|
994
|
+
inputStyles: p("w-full p-1"),
|
|
993
995
|
fieldName: {
|
|
994
996
|
type: "string",
|
|
995
997
|
title: "Field Name",
|
|
@@ -1049,8 +1051,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1049
1051
|
}),
|
|
1050
1052
|
aiProps: ["label", "placeholder"],
|
|
1051
1053
|
i18nProps: ["label", "placeholder"]
|
|
1052
|
-
},
|
|
1053
|
-
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required:
|
|
1054
|
+
}, Je = (e) => {
|
|
1055
|
+
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: g, defaultValue: m } = e;
|
|
1054
1056
|
return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
1055
1057
|
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
1056
1058
|
/* @__PURE__ */ i(
|
|
@@ -1060,8 +1062,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1060
1062
|
...a,
|
|
1061
1063
|
placeholder: r,
|
|
1062
1064
|
rows: s,
|
|
1063
|
-
required:
|
|
1064
|
-
defaultValue:
|
|
1065
|
+
required: g,
|
|
1066
|
+
defaultValue: m
|
|
1065
1067
|
}
|
|
1066
1068
|
)
|
|
1067
1069
|
] }) : /* @__PURE__ */ i(
|
|
@@ -1073,25 +1075,25 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1073
1075
|
...n,
|
|
1074
1076
|
placeholder: r,
|
|
1075
1077
|
rows: s,
|
|
1076
|
-
required:
|
|
1077
|
-
defaultValue:
|
|
1078
|
+
required: g,
|
|
1079
|
+
defaultValue: m
|
|
1078
1080
|
}
|
|
1079
1081
|
);
|
|
1080
|
-
},
|
|
1082
|
+
}, Xe = {
|
|
1081
1083
|
type: "TextArea",
|
|
1082
1084
|
label: "web_blocks.textarea",
|
|
1083
1085
|
category: "core",
|
|
1084
|
-
icon:
|
|
1086
|
+
icon: V,
|
|
1085
1087
|
group: "form",
|
|
1086
|
-
|
|
1088
|
+
props: u({
|
|
1087
1089
|
properties: {
|
|
1088
1090
|
fieldName: {
|
|
1089
1091
|
type: "string",
|
|
1090
1092
|
title: "Field Name",
|
|
1091
1093
|
default: "fieldName"
|
|
1092
1094
|
},
|
|
1093
|
-
styles:
|
|
1094
|
-
inputStyles:
|
|
1095
|
+
styles: p(""),
|
|
1096
|
+
inputStyles: p("w-full p-1"),
|
|
1095
1097
|
showLabel: {
|
|
1096
1098
|
type: "boolean",
|
|
1097
1099
|
title: "Show Label",
|
|
@@ -1128,21 +1130,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1128
1130
|
}),
|
|
1129
1131
|
aiProps: ["label", "placeholder"],
|
|
1130
1132
|
i18nProps: ["label", "placeholder"]
|
|
1131
|
-
},
|
|
1133
|
+
}, Ke = (e) => {
|
|
1132
1134
|
const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
|
|
1133
1135
|
return n ? b.createElement(r, { ...t, ...o }, n) : b.createElement(r, {
|
|
1134
1136
|
...t,
|
|
1135
1137
|
...o,
|
|
1136
1138
|
dangerouslySetInnerHTML: { __html: l }
|
|
1137
1139
|
});
|
|
1138
|
-
},
|
|
1140
|
+
}, et = {
|
|
1139
1141
|
type: "Heading",
|
|
1140
1142
|
description: "A heading component similar to h1, h2, h3, h4, h5, h6 elements in HTML",
|
|
1141
1143
|
label: "Heading",
|
|
1142
1144
|
category: "core",
|
|
1143
1145
|
icon: J,
|
|
1144
1146
|
group: "typography",
|
|
1145
|
-
|
|
1147
|
+
props: u({
|
|
1146
1148
|
properties: {
|
|
1147
1149
|
tag: {
|
|
1148
1150
|
type: "string",
|
|
@@ -1150,7 +1152,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1150
1152
|
title: "Level",
|
|
1151
1153
|
enum: ["h1", "h2", "h3", "h4", "h5", "h6"]
|
|
1152
1154
|
},
|
|
1153
|
-
styles:
|
|
1155
|
+
styles: p("text-3xl"),
|
|
1154
1156
|
content: {
|
|
1155
1157
|
type: "string",
|
|
1156
1158
|
default: "Heading goes here",
|
|
@@ -1162,110 +1164,110 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
|
|
|
1162
1164
|
aiProps: ["content"],
|
|
1163
1165
|
i18nProps: ["content"],
|
|
1164
1166
|
canAcceptBlock: () => !0
|
|
1165
|
-
},
|
|
1167
|
+
}, tt = (e) => {
|
|
1166
1168
|
const { blockProps: o, styles: t } = e;
|
|
1167
1169
|
return x("br", { ...o, ...t });
|
|
1168
|
-
},
|
|
1170
|
+
}, ot = {
|
|
1169
1171
|
type: "LineBreak",
|
|
1170
1172
|
label: "Line Break",
|
|
1171
1173
|
category: "core",
|
|
1172
1174
|
group: "basic",
|
|
1173
1175
|
hidden: !0,
|
|
1174
|
-
|
|
1176
|
+
props: u({
|
|
1175
1177
|
properties: {
|
|
1176
|
-
styles:
|
|
1178
|
+
styles: p("")
|
|
1177
1179
|
}
|
|
1178
1180
|
}),
|
|
1179
1181
|
canAcceptBlock: () => !0,
|
|
1180
1182
|
canDelete: () => !1,
|
|
1181
1183
|
canMove: () => !1,
|
|
1182
1184
|
canDuplicate: () => !1
|
|
1185
|
+
}, lt = (e) => {
|
|
1186
|
+
const { blockProps: o, children: t, styles: l } = e;
|
|
1187
|
+
return t ? x("table", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1183
1188
|
}, rt = (e) => {
|
|
1184
1189
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1185
|
-
return t ? x("
|
|
1190
|
+
return t ? x("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1186
1191
|
}, nt = (e) => {
|
|
1187
1192
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1188
|
-
return t ? x("
|
|
1193
|
+
return t ? x("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1189
1194
|
}, it = (e) => {
|
|
1190
1195
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1191
|
-
return t ? x("
|
|
1196
|
+
return t ? x("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1192
1197
|
}, at = (e) => {
|
|
1193
|
-
const { blockProps: o, children: t, styles: l } = e;
|
|
1194
|
-
return t ? x("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1195
|
-
}, st = (e) => {
|
|
1196
1198
|
const { blockProps: o, children: t, content: l, styles: r } = e;
|
|
1197
|
-
return !t && w(l) ? /* @__PURE__ */ i(
|
|
1199
|
+
return !t && w(l) ? /* @__PURE__ */ i(v, {}) : t ? x("td", { ...o, ...r }, t) : x("td", {
|
|
1198
1200
|
...o,
|
|
1199
1201
|
...r,
|
|
1200
1202
|
dangerouslySetInnerHTML: { __html: l }
|
|
1201
1203
|
});
|
|
1202
1204
|
};
|
|
1203
|
-
d(
|
|
1205
|
+
d(lt, {
|
|
1204
1206
|
type: "Table",
|
|
1205
1207
|
label: "Table",
|
|
1206
1208
|
category: "core",
|
|
1207
1209
|
group: "table",
|
|
1208
1210
|
hidden: !0,
|
|
1209
1211
|
icon: X,
|
|
1210
|
-
|
|
1212
|
+
props: u({
|
|
1211
1213
|
properties: {
|
|
1212
|
-
styles:
|
|
1214
|
+
styles: p("")
|
|
1213
1215
|
}
|
|
1214
1216
|
}),
|
|
1215
1217
|
blocks: P("Table")
|
|
1216
1218
|
});
|
|
1217
|
-
d(
|
|
1219
|
+
d(rt, {
|
|
1218
1220
|
type: "TableHead",
|
|
1219
1221
|
label: "Table Head",
|
|
1220
1222
|
category: "core",
|
|
1221
1223
|
group: "table",
|
|
1222
1224
|
hidden: !0,
|
|
1223
1225
|
icon: K,
|
|
1224
|
-
|
|
1226
|
+
props: u({
|
|
1225
1227
|
properties: {
|
|
1226
|
-
styles:
|
|
1228
|
+
styles: p("")
|
|
1227
1229
|
}
|
|
1228
1230
|
}),
|
|
1229
1231
|
blocks: P("TableHead")
|
|
1230
1232
|
});
|
|
1231
|
-
d(
|
|
1233
|
+
d(nt, {
|
|
1232
1234
|
type: "TableBody",
|
|
1233
1235
|
label: "Table Body",
|
|
1234
1236
|
category: "core",
|
|
1235
1237
|
group: "table",
|
|
1236
1238
|
hidden: !0,
|
|
1237
1239
|
icon: ee,
|
|
1238
|
-
|
|
1240
|
+
props: u({
|
|
1239
1241
|
properties: {
|
|
1240
|
-
styles:
|
|
1242
|
+
styles: p("")
|
|
1241
1243
|
}
|
|
1242
1244
|
}),
|
|
1243
1245
|
blocks: P("TableBody")
|
|
1244
1246
|
});
|
|
1245
|
-
d(
|
|
1247
|
+
d(it, {
|
|
1246
1248
|
type: "TableRow",
|
|
1247
1249
|
label: "Table Row",
|
|
1248
1250
|
category: "core",
|
|
1249
1251
|
group: "table",
|
|
1250
1252
|
hidden: !0,
|
|
1251
1253
|
icon: te,
|
|
1252
|
-
|
|
1254
|
+
props: u({
|
|
1253
1255
|
properties: {
|
|
1254
|
-
styles:
|
|
1256
|
+
styles: p("")
|
|
1255
1257
|
}
|
|
1256
1258
|
}),
|
|
1257
1259
|
blocks: P("TableRow")
|
|
1258
1260
|
});
|
|
1259
|
-
d(
|
|
1261
|
+
d(at, {
|
|
1260
1262
|
type: "TableCell",
|
|
1261
1263
|
label: "Table Cell",
|
|
1262
1264
|
category: "core",
|
|
1263
1265
|
group: "table",
|
|
1264
1266
|
hidden: !0,
|
|
1265
1267
|
icon: oe,
|
|
1266
|
-
|
|
1268
|
+
props: u({
|
|
1267
1269
|
properties: {
|
|
1268
|
-
styles:
|
|
1270
|
+
styles: p(""),
|
|
1269
1271
|
content: {
|
|
1270
1272
|
type: "string",
|
|
1271
1273
|
default: "Heading goes here",
|
|
@@ -1321,10 +1323,10 @@ function P(e) {
|
|
|
1321
1323
|
}
|
|
1322
1324
|
return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
|
|
1323
1325
|
}
|
|
1324
|
-
const
|
|
1325
|
-
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth:
|
|
1326
|
-
return w(t) ? /* @__PURE__ */ i(
|
|
1327
|
-
l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width:
|
|
1326
|
+
const st = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", ct = (e) => {
|
|
1327
|
+
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: g, mobileHeight: m } = e;
|
|
1328
|
+
return w(t) ? /* @__PURE__ */ i(v, { className: "h-36" }) : /* @__PURE__ */ h("picture", { children: [
|
|
1329
|
+
l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: g, height: m }),
|
|
1328
1330
|
/* @__PURE__ */ i(
|
|
1329
1331
|
"img",
|
|
1330
1332
|
{
|
|
@@ -1345,13 +1347,13 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1345
1347
|
category: "core",
|
|
1346
1348
|
icon: le,
|
|
1347
1349
|
group: "media",
|
|
1348
|
-
|
|
1350
|
+
props: u({
|
|
1349
1351
|
properties: {
|
|
1350
|
-
styles:
|
|
1352
|
+
styles: p("w-full h-full object-cover"),
|
|
1351
1353
|
image: {
|
|
1352
1354
|
type: "string",
|
|
1353
1355
|
title: "Image",
|
|
1354
|
-
default:
|
|
1356
|
+
default: st,
|
|
1355
1357
|
ui: { "ui:widget": "image" }
|
|
1356
1358
|
},
|
|
1357
1359
|
width: {
|
|
@@ -1399,7 +1401,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1399
1401
|
}),
|
|
1400
1402
|
aiProps: ["alt"],
|
|
1401
1403
|
i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
|
|
1402
|
-
},
|
|
1404
|
+
}, dt = (e) => {
|
|
1403
1405
|
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
|
|
1404
1406
|
let s = {};
|
|
1405
1407
|
return !l && w(a) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ i("span", { role: "link", ...o, style: s, ...r, children: l }) : x(
|
|
@@ -1422,16 +1424,16 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1422
1424
|
},
|
|
1423
1425
|
a
|
|
1424
1426
|
);
|
|
1425
|
-
},
|
|
1427
|
+
}, ut = {
|
|
1426
1428
|
type: "Link",
|
|
1427
1429
|
description: "A link component",
|
|
1428
1430
|
label: "Link",
|
|
1429
1431
|
category: "core",
|
|
1430
1432
|
icon: re,
|
|
1431
1433
|
group: "basic",
|
|
1432
|
-
|
|
1434
|
+
props: u({
|
|
1433
1435
|
properties: {
|
|
1434
|
-
styles:
|
|
1436
|
+
styles: p("block"),
|
|
1435
1437
|
content: {
|
|
1436
1438
|
type: "string",
|
|
1437
1439
|
default: "Link text goes here",
|
|
@@ -1463,19 +1465,19 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1463
1465
|
aiProps: ["content"],
|
|
1464
1466
|
i18nProps: ["content", "link"],
|
|
1465
1467
|
canAcceptBlock: (e) => e !== "Link"
|
|
1466
|
-
},
|
|
1468
|
+
}, mt = (e) => {
|
|
1467
1469
|
const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
|
|
1468
|
-
return !t && w(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(
|
|
1469
|
-
},
|
|
1470
|
+
return !t && w(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(v, { inBuilder: n }) : b.createElement(r || "ul", { ...o, ...l }, t);
|
|
1471
|
+
}, yt = {
|
|
1470
1472
|
type: "List",
|
|
1471
1473
|
description: "A list component",
|
|
1472
1474
|
label: "List",
|
|
1473
|
-
icon:
|
|
1475
|
+
icon: D,
|
|
1474
1476
|
category: "core",
|
|
1475
1477
|
group: "basic",
|
|
1476
|
-
|
|
1478
|
+
props: u({
|
|
1477
1479
|
properties: {
|
|
1478
|
-
styles:
|
|
1480
|
+
styles: p("")
|
|
1479
1481
|
}
|
|
1480
1482
|
}),
|
|
1481
1483
|
canAcceptBlock: (e) => e === "ListItem",
|
|
@@ -1503,23 +1505,23 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1503
1505
|
content: "Item 3"
|
|
1504
1506
|
}
|
|
1505
1507
|
]
|
|
1506
|
-
},
|
|
1508
|
+
}, gt = (e) => {
|
|
1507
1509
|
const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
|
|
1508
1510
|
return r ? b.createElement(n || "li", { ...l, ...o }, r) : b.createElement(n || "li", {
|
|
1509
1511
|
...l,
|
|
1510
1512
|
...o,
|
|
1511
1513
|
dangerouslySetInnerHTML: { __html: t }
|
|
1512
1514
|
});
|
|
1513
|
-
},
|
|
1515
|
+
}, bt = {
|
|
1514
1516
|
type: "ListItem",
|
|
1515
1517
|
description: "A list item component",
|
|
1516
1518
|
label: "List Item",
|
|
1517
1519
|
icon: ne,
|
|
1518
1520
|
category: "core",
|
|
1519
1521
|
group: "basic",
|
|
1520
|
-
|
|
1522
|
+
props: u({
|
|
1521
1523
|
properties: {
|
|
1522
|
-
styles:
|
|
1524
|
+
styles: p(""),
|
|
1523
1525
|
content: {
|
|
1524
1526
|
type: "string",
|
|
1525
1527
|
default: "List item",
|
|
@@ -1534,25 +1536,25 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1534
1536
|
aiProps: ["content"],
|
|
1535
1537
|
canAcceptBlock: (e) => e !== "ListItem",
|
|
1536
1538
|
canBeNested: (e) => e === "List" || e === "Repeater"
|
|
1537
|
-
},
|
|
1539
|
+
}, ft = (e) => {
|
|
1538
1540
|
const { blockProps: o, styles: t, content: l } = e;
|
|
1539
|
-
if (!
|
|
1540
|
-
const r =
|
|
1541
|
+
if (!F(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
|
|
1542
|
+
const r = _(t, "rte");
|
|
1541
1543
|
return b.createElement("div", {
|
|
1542
1544
|
...r,
|
|
1543
1545
|
...o,
|
|
1544
1546
|
dangerouslySetInnerHTML: { __html: l }
|
|
1545
1547
|
});
|
|
1546
|
-
},
|
|
1548
|
+
}, ht = {
|
|
1547
1549
|
type: "Paragraph",
|
|
1548
1550
|
description: "A paragraph component",
|
|
1549
1551
|
label: "Paragraph",
|
|
1550
1552
|
category: "core",
|
|
1551
1553
|
icon: ie,
|
|
1552
1554
|
group: "typography",
|
|
1553
|
-
|
|
1555
|
+
props: u({
|
|
1554
1556
|
properties: {
|
|
1555
|
-
styles:
|
|
1557
|
+
styles: p(""),
|
|
1556
1558
|
content: {
|
|
1557
1559
|
type: "string",
|
|
1558
1560
|
title: "Content",
|
|
@@ -1564,10 +1566,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1564
1566
|
i18nProps: ["content"],
|
|
1565
1567
|
aiProps: ["content"],
|
|
1566
1568
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
1567
|
-
},
|
|
1568
|
-
const { blockProps: o, content: t, styles: l } = e, r =
|
|
1569
|
+
}, Ct = (e) => {
|
|
1570
|
+
const { blockProps: o, content: t, styles: l } = e, r = _(l, "rte");
|
|
1569
1571
|
return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
|
|
1570
|
-
},
|
|
1572
|
+
}, kt = {
|
|
1571
1573
|
type: "RichText",
|
|
1572
1574
|
description: "A rich text block",
|
|
1573
1575
|
label: "Rich Text",
|
|
@@ -1575,9 +1577,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1575
1577
|
category: "core",
|
|
1576
1578
|
icon: ae,
|
|
1577
1579
|
group: "typography",
|
|
1578
|
-
|
|
1580
|
+
props: u({
|
|
1579
1581
|
properties: {
|
|
1580
|
-
styles:
|
|
1582
|
+
styles: p(""),
|
|
1581
1583
|
content: {
|
|
1582
1584
|
type: "string",
|
|
1583
1585
|
title: "Content",
|
|
@@ -1588,22 +1590,22 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1588
1590
|
}),
|
|
1589
1591
|
aiProps: ["content"],
|
|
1590
1592
|
i18nProps: ["content"]
|
|
1591
|
-
},
|
|
1593
|
+
}, xt = (e) => {
|
|
1592
1594
|
const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
|
|
1593
1595
|
return r ? b.createElement("span", { ...t, ...o }, r) : b.createElement(n || "span", {
|
|
1594
1596
|
...t,
|
|
1595
1597
|
...o,
|
|
1596
1598
|
dangerouslySetInnerHTML: { __html: l || "" }
|
|
1597
1599
|
});
|
|
1598
|
-
},
|
|
1600
|
+
}, wt = {
|
|
1599
1601
|
type: "Span",
|
|
1600
1602
|
description: "A span component",
|
|
1601
1603
|
label: "Span",
|
|
1602
1604
|
category: "core",
|
|
1603
1605
|
group: "basic",
|
|
1604
|
-
|
|
1606
|
+
props: u({
|
|
1605
1607
|
properties: {
|
|
1606
|
-
styles:
|
|
1608
|
+
styles: p(""),
|
|
1607
1609
|
content: {
|
|
1608
1610
|
type: "string",
|
|
1609
1611
|
title: "Content",
|
|
@@ -1615,7 +1617,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1615
1617
|
aiProps: ["content"],
|
|
1616
1618
|
i18nProps: ["content"],
|
|
1617
1619
|
canAcceptBlock: () => !0
|
|
1618
|
-
},
|
|
1620
|
+
}, vt = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, It = {
|
|
1619
1621
|
type: "Text",
|
|
1620
1622
|
description: "A text component with no styling",
|
|
1621
1623
|
label: "Text",
|
|
@@ -1623,9 +1625,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1623
1625
|
group: "typography",
|
|
1624
1626
|
blocks: () => [{ _id: "a", _type: "Text", _name: "Text", content: "" }],
|
|
1625
1627
|
icon: se,
|
|
1626
|
-
|
|
1628
|
+
props: u({
|
|
1627
1629
|
properties: {
|
|
1628
|
-
styles:
|
|
1630
|
+
styles: p("text-black"),
|
|
1629
1631
|
content: {
|
|
1630
1632
|
title: "Content",
|
|
1631
1633
|
type: "string",
|
|
@@ -1635,7 +1637,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1635
1637
|
}),
|
|
1636
1638
|
aiProps: ["content"],
|
|
1637
1639
|
i18nProps: ["content"]
|
|
1638
|
-
},
|
|
1640
|
+
}, B = {
|
|
1639
1641
|
type: "object",
|
|
1640
1642
|
title: "Controls",
|
|
1641
1643
|
default: {
|
|
@@ -1666,74 +1668,82 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1666
1668
|
default: !1
|
|
1667
1669
|
}
|
|
1668
1670
|
}
|
|
1669
|
-
},
|
|
1670
|
-
const t =
|
|
1671
|
-
if (
|
|
1672
|
-
const a = e.match(
|
|
1671
|
+
}, R = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, A = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Pt = (e, o) => {
|
|
1672
|
+
const t = C(o, "autoplay", !1), l = C(o, "controls", !1), r = C(o, "loop", !1), n = t || C(o, "muted", !0);
|
|
1673
|
+
if (R.test(e)) {
|
|
1674
|
+
const a = e.match(R);
|
|
1673
1675
|
if (a) {
|
|
1674
|
-
const s = a[4];
|
|
1675
|
-
|
|
1676
|
-
return y += r ? `&loop=1&playlist=${s}` : "", y += n ? "&mute=1&muted=1" : "", y += l ? "&controls=1" : "&controls=0", `${c}?${y}`;
|
|
1676
|
+
const s = a[4], c = `https://www.youtube.com/embed/${s}`, g = [];
|
|
1677
|
+
return t && g.push("autoplay=1"), r && g.push("loop=1", `playlist=${s}`), n && g.push("mute=1", "muted=1"), g.push(l ? "controls=1" : "controls=0"), `${c}?${g.join("&")}`;
|
|
1677
1678
|
}
|
|
1678
1679
|
}
|
|
1679
|
-
if (
|
|
1680
|
-
const a = e.match(
|
|
1680
|
+
if (A.test(e)) {
|
|
1681
|
+
const a = e.match(A);
|
|
1681
1682
|
if (a) {
|
|
1682
|
-
const s = a[1];
|
|
1683
|
-
|
|
1684
|
-
return c += t ? "autoplay=1" : "", c += l ? "&controls=1" : "&controls=0", c += n ? "&muted=1" : "", c += r ? "&loop=1" : "", `https://player.vimeo.com/video/${s}?${c}`;
|
|
1683
|
+
const s = a[1], c = [];
|
|
1684
|
+
return t && c.push("autoplay=1"), c.push(l ? "controls=1" : "controls=0"), n && c.push("muted=1"), r && c.push("loop=1"), `https://player.vimeo.com/video/${s}?${c.join("&")}`;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
1687
|
return null;
|
|
1688
|
-
},
|
|
1689
|
-
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c =
|
|
1690
|
-
return /* @__PURE__ */ h("div", { ...
|
|
1691
|
-
!c && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: w(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i(
|
|
1688
|
+
}, Lt = (e) => {
|
|
1689
|
+
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c = Pt(o, r);
|
|
1690
|
+
return /* @__PURE__ */ h("div", { ...E(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
1691
|
+
!c && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: w(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i(
|
|
1692
|
+
"iframe",
|
|
1693
|
+
{
|
|
1694
|
+
className: `absolute left-0 top-0 h-full w-full ${M(l, "className").className || ""}`,
|
|
1695
|
+
src: c ?? "",
|
|
1696
|
+
title: s || "Video player",
|
|
1697
|
+
loading: "lazy",
|
|
1698
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
1699
|
+
allowFullScreen: !0
|
|
1700
|
+
}
|
|
1701
|
+
),
|
|
1692
1702
|
a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
|
|
1693
1703
|
] });
|
|
1694
|
-
},
|
|
1704
|
+
}, Bt = (e) => {
|
|
1695
1705
|
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a, title: s } = e;
|
|
1696
1706
|
let c = n;
|
|
1697
|
-
const
|
|
1698
|
-
o && typeof o == "string" &&
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
return (c || !w(
|
|
1707
|
+
const g = [...C(r, "srcsets", []) || []];
|
|
1708
|
+
o && typeof o == "string" && g.push({ url: o, width: 9999 });
|
|
1709
|
+
const m = g.sort((f, y) => f.width - y.width).filter((f) => !w(f.url) && !w(f.width));
|
|
1710
|
+
m.length === 0 && !c && (c = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
|
|
1711
|
+
const k = C(l, "autoplay", !1) || C(l, "muted", !0);
|
|
1712
|
+
return (c || !w(m)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ x(
|
|
1703
1713
|
"video",
|
|
1704
1714
|
{
|
|
1705
1715
|
...t,
|
|
1706
1716
|
...a,
|
|
1707
1717
|
title: s || "Video player",
|
|
1708
|
-
key: JSON.stringify(
|
|
1709
|
-
controls:
|
|
1710
|
-
autoPlay:
|
|
1711
|
-
loop:
|
|
1718
|
+
key: JSON.stringify(m),
|
|
1719
|
+
controls: C(l, "controls", !1),
|
|
1720
|
+
autoPlay: C(l, "autoplay", !1),
|
|
1721
|
+
loop: C(l, "loop", !1),
|
|
1712
1722
|
poster: c,
|
|
1713
|
-
...
|
|
1723
|
+
...k ? { muted: !0 } : {}
|
|
1714
1724
|
},
|
|
1715
|
-
|
|
1725
|
+
m.map((f) => {
|
|
1716
1726
|
if (!f.url || f.url.length < 4 || isNaN(f.width)) return null;
|
|
1717
|
-
const
|
|
1718
|
-
return /* @__PURE__ */ i("source", { src: f.url, media:
|
|
1727
|
+
const y = `(max-width: ${f.width}px)`;
|
|
1728
|
+
return /* @__PURE__ */ i("source", { src: f.url, media: y, type: f.type }, f.url);
|
|
1719
1729
|
}),
|
|
1720
1730
|
"Your browser does not support the video tag."
|
|
1721
1731
|
) });
|
|
1722
|
-
},
|
|
1732
|
+
}, St = (e) => {
|
|
1723
1733
|
const { videoSource: o } = e;
|
|
1724
|
-
return o === "Custom" ? /* @__PURE__ */ i(
|
|
1734
|
+
return o === "Custom" ? /* @__PURE__ */ i(Bt, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Lt, { ...e }) : /* @__PURE__ */ h("div", { children: [
|
|
1725
1735
|
"Invalid video source : ",
|
|
1726
1736
|
o
|
|
1727
1737
|
] });
|
|
1728
|
-
},
|
|
1738
|
+
}, Nt = {
|
|
1729
1739
|
type: "Video",
|
|
1730
1740
|
label: "Video",
|
|
1731
1741
|
category: "core",
|
|
1732
1742
|
icon: ce,
|
|
1733
1743
|
group: "media",
|
|
1734
|
-
|
|
1744
|
+
props: u({
|
|
1735
1745
|
properties: {
|
|
1736
|
-
styles:
|
|
1746
|
+
styles: p("absolute h-full w-full object-cover"),
|
|
1737
1747
|
videoSource: {
|
|
1738
1748
|
type: "string",
|
|
1739
1749
|
default: "Custom",
|
|
@@ -1769,7 +1779,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1769
1779
|
type: "object",
|
|
1770
1780
|
default: { srcsets: [] }
|
|
1771
1781
|
},
|
|
1772
|
-
controls: { ...
|
|
1782
|
+
controls: { ...B }
|
|
1773
1783
|
}
|
|
1774
1784
|
}
|
|
1775
1785
|
},
|
|
@@ -1786,7 +1796,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1786
1796
|
title: "Youtube Video URL",
|
|
1787
1797
|
default: ""
|
|
1788
1798
|
},
|
|
1789
|
-
controls: { ...
|
|
1799
|
+
controls: { ...B }
|
|
1790
1800
|
}
|
|
1791
1801
|
}
|
|
1792
1802
|
},
|
|
@@ -1803,7 +1813,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1803
1813
|
title: "Vimeo Video URL",
|
|
1804
1814
|
default: ""
|
|
1805
1815
|
},
|
|
1806
|
-
controls: { ...
|
|
1816
|
+
controls: { ...B }
|
|
1807
1817
|
}
|
|
1808
1818
|
}
|
|
1809
1819
|
}
|
|
@@ -1815,15 +1825,15 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1815
1825
|
}
|
|
1816
1826
|
}),
|
|
1817
1827
|
i18nProps: ["url", "title"]
|
|
1818
|
-
},
|
|
1819
|
-
const { paginationStyles: o } = e, t =
|
|
1820
|
-
return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...
|
|
1828
|
+
}, _t = (e) => {
|
|
1829
|
+
const { paginationStyles: o } = e, t = ue("Pagination");
|
|
1830
|
+
return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...E(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ h(S, { children: [
|
|
1821
1831
|
/* @__PURE__ */ i(
|
|
1822
1832
|
"button",
|
|
1823
1833
|
{
|
|
1824
1834
|
className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1825
1835
|
disabled: !0,
|
|
1826
|
-
children: /* @__PURE__ */ i(
|
|
1836
|
+
children: /* @__PURE__ */ i(pe, { className: "h-4 w-4" })
|
|
1827
1837
|
}
|
|
1828
1838
|
),
|
|
1829
1839
|
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-blue-500 bg-blue-500 font-medium text-white", children: "1" }),
|
|
@@ -1831,27 +1841,27 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1831
1841
|
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "3" }),
|
|
1832
1842
|
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "4" }),
|
|
1833
1843
|
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "5" }),
|
|
1834
|
-
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50", children: /* @__PURE__ */ i(
|
|
1844
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50", children: /* @__PURE__ */ i(de, { className: "h-4 w-4" }) })
|
|
1835
1845
|
] }) });
|
|
1836
|
-
},
|
|
1846
|
+
}, Tt = (e) => {
|
|
1837
1847
|
const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
|
|
1838
1848
|
let c = o;
|
|
1839
|
-
return w(c) && s && (c = /* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? n && s ? Array.from({ length: 2 }).map((
|
|
1849
|
+
return w(c) && s && (c = /* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? n && s ? Array.from({ length: 2 }).map((g, m) => /* @__PURE__ */ h("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1840
1850
|
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1841
1851
|
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1842
|
-
] },
|
|
1852
|
+
] }, m)) : c : /* @__PURE__ */ h(S, { children: [
|
|
1843
1853
|
b.createElement(
|
|
1844
1854
|
t,
|
|
1845
1855
|
{ ...r, ...l },
|
|
1846
|
-
n && s ? Array.from({ length: 2 }).map((
|
|
1856
|
+
n && s ? Array.from({ length: 2 }).map((g, m) => /* @__PURE__ */ h("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1847
1857
|
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1848
1858
|
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1849
|
-
] },
|
|
1859
|
+
] }, m)) : c
|
|
1850
1860
|
),
|
|
1851
1861
|
a && /* @__PURE__ */ i(
|
|
1852
|
-
|
|
1862
|
+
_t,
|
|
1853
1863
|
{
|
|
1854
|
-
...
|
|
1864
|
+
...M(e, [
|
|
1855
1865
|
"limit",
|
|
1856
1866
|
"totalItems",
|
|
1857
1867
|
"paginationStrategy",
|
|
@@ -1863,10 +1873,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1863
1873
|
}
|
|
1864
1874
|
)
|
|
1865
1875
|
] });
|
|
1866
|
-
},
|
|
1876
|
+
}, Rt = {
|
|
1867
1877
|
type: "Repeater",
|
|
1868
1878
|
label: "Repeater",
|
|
1869
|
-
icon:
|
|
1879
|
+
icon: z,
|
|
1870
1880
|
group: "basic",
|
|
1871
1881
|
description: "Repeater block is used to display a list of items based on data binding in repeaterItems",
|
|
1872
1882
|
dataProviderMode: "live",
|
|
@@ -1875,10 +1885,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1875
1885
|
{ _id: "A", _type: "Repeater", tag: "ul" },
|
|
1876
1886
|
{ _id: "B", _name: "Repeater Item", _type: "RepeaterItem", parentTag: "ul", _parent: "A" }
|
|
1877
1887
|
],
|
|
1878
|
-
|
|
1888
|
+
props: u({
|
|
1879
1889
|
properties: {
|
|
1880
|
-
styles:
|
|
1881
|
-
paginationStyles:
|
|
1890
|
+
styles: p("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
|
|
1891
|
+
paginationStyles: p("flex items-center justify-center gap-2 p-4"),
|
|
1882
1892
|
repeaterItems: {
|
|
1883
1893
|
title: "Collection",
|
|
1884
1894
|
type: "string",
|
|
@@ -1926,8 +1936,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1926
1936
|
type: "string",
|
|
1927
1937
|
title: "Pagination Strategy",
|
|
1928
1938
|
default: "segment",
|
|
1929
|
-
enum: ["query", "segment"]
|
|
1930
|
-
enumNames: ["Query(/items?page=1)", "Segment(/items/1)"]
|
|
1939
|
+
enum: ["query", "segment"]
|
|
1931
1940
|
},
|
|
1932
1941
|
limit: {
|
|
1933
1942
|
type: "number",
|
|
@@ -1958,7 +1967,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1958
1967
|
]
|
|
1959
1968
|
}),
|
|
1960
1969
|
canAcceptBlock: (e) => e === "Pagination"
|
|
1961
|
-
},
|
|
1970
|
+
}, At = ({
|
|
1962
1971
|
children: e,
|
|
1963
1972
|
blockProps: o,
|
|
1964
1973
|
styles: t,
|
|
@@ -1981,41 +1990,41 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1981
1990
|
{ ...o, ...t },
|
|
1982
1991
|
/* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Add children to repeater item" })
|
|
1983
1992
|
) : b.createElement(n, { ...o, ...t }, e);
|
|
1984
|
-
},
|
|
1993
|
+
}, Et = {
|
|
1985
1994
|
type: "RepeaterItem",
|
|
1986
1995
|
label: "Repeater Item",
|
|
1987
|
-
icon:
|
|
1996
|
+
icon: z,
|
|
1988
1997
|
hidden: !0,
|
|
1989
1998
|
group: "basic",
|
|
1990
|
-
|
|
1999
|
+
props: u({
|
|
1991
2000
|
properties: {
|
|
1992
|
-
styles:
|
|
1993
|
-
parentTag:
|
|
2001
|
+
styles: p(""),
|
|
2002
|
+
parentTag: me("Repeater", "tag")
|
|
1994
2003
|
}
|
|
1995
2004
|
}),
|
|
1996
2005
|
canAcceptBlock: (e) => e !== "RepeaterItem",
|
|
1997
2006
|
canDelete: () => !1,
|
|
1998
2007
|
canMove: () => !1,
|
|
1999
2008
|
canDuplicate: () => !1
|
|
2000
|
-
},
|
|
2009
|
+
}, Mt = ({
|
|
2001
2010
|
children: e,
|
|
2002
2011
|
blockProps: o,
|
|
2003
2012
|
styles: t
|
|
2004
|
-
}) => b.createElement("div", { ...o, ...t }, e),
|
|
2013
|
+
}) => b.createElement("div", { ...o, ...t }, e), Ht = {
|
|
2005
2014
|
type: "RepeaterEmptyState",
|
|
2006
2015
|
label: "Empty State",
|
|
2007
2016
|
hidden: !0,
|
|
2008
2017
|
group: "basic",
|
|
2009
|
-
|
|
2010
|
-
properties: { styles:
|
|
2018
|
+
props: u({
|
|
2019
|
+
properties: { styles: p("p-5 flex items-center justify-center") }
|
|
2011
2020
|
}),
|
|
2012
2021
|
canAcceptBlock: () => !0,
|
|
2013
2022
|
canDelete: () => !1,
|
|
2014
2023
|
canMove: () => !1,
|
|
2015
2024
|
canDuplicate: () => !1
|
|
2016
|
-
},
|
|
2017
|
-
d(
|
|
2025
|
+
}, Zt = () => {
|
|
2026
|
+
d(ye, ge), d(Ee, Me), d(be, fe), d(Ke, et), d(ft, ht), d(xt, wt), d(Ct, kt), d(dt, ut), d(mt, yt), d(gt, bt), d(Ie, Pe), d(ct, pt), d(St, Nt), d(he, Ce), d(ke, xe), d(vt, It), d(je, De), d(Ve, ze), d(Ue, Ze), d(He, $e), d(We, Oe), d(Ye, Qe), d(Je, Xe), d(qe, Ge), d(tt, ot), d(Re, Ae), d(we, ve), d(Le, Be), d(_e, Te), d(Se, Ne), d(Tt, Rt), d(At, Et), d(Mt, Ht);
|
|
2018
2027
|
};
|
|
2019
2028
|
export {
|
|
2020
|
-
|
|
2029
|
+
Zt as loadWebBlocks
|
|
2021
2030
|
};
|