@chaibuilder/sdk 4.0.0-beta.4 → 4.0.0-beta.41
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-Difo_1pg.js → 2SSKDMRQ-CdpXONNF.js} +3 -3
- package/dist/{2SSKDMRQ-CopJgtZb.cjs → 2SSKDMRQ-Dq_oq6gn.cjs} +1 -1
- package/dist/{AP7HFJJL-BPuPBqj4.js → AP7HFJJL-CZb0rAxI.js} +1 -1
- package/dist/{AP7HFJJL-DYxDgaOs.cjs → AP7HFJJL-Do14BULM.cjs} +1 -1
- package/dist/{IconPicker-B2-oriq2.js → IconPicker-CvZSjXc6.js} +2 -2
- package/dist/{IconPicker-C0oycHbs.cjs → IconPicker-DUN9bxmQ.cjs} +1 -1
- package/dist/STRINGS-BExFecZW.js +8 -0
- package/dist/STRINGS-FNnfjF5H.cjs +1 -0
- package/dist/{WDYDFRGG-DbejaRPK.cjs → WDYDFRGG-DfczfcZ8.cjs} +1 -1
- package/dist/{WDYDFRGG-KK8pkcW1.js → WDYDFRGG-Dxa2zFdt.js} +4 -4
- package/dist/{actions-registery-y_ENc8zj.js → actions-registery-CMKfEXxX.js} +3397 -3202
- package/dist/actions-registery-CqhNZFV3.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-DkR2HWI4.js → active-in-another-tab-BREv3Xj8.js} +5 -5
- package/dist/{active-in-another-tab-Cu_ASKtx.cjs → active-in-another-tab-C9o276yY.cjs} +1 -1
- package/dist/{add-new-language-page-CBY0RR6q.js → add-new-language-page-C4PSVDV5.js} +4 -4
- package/dist/{add-new-language-page-BXuwluuU.cjs → add-new-language-page-jHLJjrl1.cjs} +1 -1
- package/dist/{add-new-page-C_PzKby8.cjs → add-new-page-BPPMxBYi.cjs} +1 -1
- package/dist/add-new-page-DomZuT16.js +31 -0
- package/dist/{ai-panel-content--YM01Aly.js → ai-panel-content-CsmUoTCg.js} +6 -6
- package/dist/{ai-panel-content-rRmJdH7L.cjs → ai-panel-content-DlS51Qef.cjs} +1 -1
- package/dist/ai-panel-default-lang-BRVlAMMU.js +317 -0
- package/dist/ai-panel-default-lang-DVKDEnbe.cjs +3 -0
- package/dist/ai-panel-other-lang-B-2xJz2W.cjs +1 -0
- package/dist/ai-panel-other-lang-BPVS6lO_.js +132 -0
- package/dist/{ai-prompt-input-DueQYNf-.js → ai-prompt-input-B0FMhaLB.js} +30 -34
- package/dist/{ai-prompt-input-N9PcYCFa.cjs → ai-prompt-input-CY2pBPzO.cjs} +1 -1
- package/dist/{ai-translation-prompt-B36F3d7K.js → ai-translation-prompt-6LlaU9LO.js} +2 -2
- package/dist/{ai-translation-prompt-IAdWMNZb.cjs → ai-translation-prompt-BwhKmgC3.cjs} +1 -1
- package/dist/apply-binding-BuwI_Uf5.cjs +41 -0
- package/dist/apply-binding-RQRSIe56.js +942 -0
- package/dist/change-password-modal-BlSTfit6.js +137 -0
- package/dist/change-password-modal-wbCcGfDM.cjs +1 -0
- package/dist/{code-display-DloSPyPr.cjs → code-display-BR-gij5j.cjs} +1 -1
- package/dist/{code-display-Ck81Id9K.js → code-display-DdWcOQ_i.js} +1 -1
- package/dist/code-editor-BC_saYAw.cjs +1 -0
- package/dist/code-editor-Be5VT6om.js +57 -0
- package/dist/{continue-editing-in-this-client-DmGFLHXw.cjs → continue-editing-in-this-client-Bs_3q1hH.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-Dm9cCj7K.js → continue-editing-in-this-client-Z1rBUPU8.js} +3 -3
- package/dist/core-czmLeR0h.cjs +1 -0
- package/dist/core-nSRy3D7z.js +54 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +285 -103
- package/dist/core.js +71 -42
- package/dist/{css-import-modal-9P_0uNa4.js → css-import-modal-DMZRgpy0.js} +8 -8
- package/dist/{css-import-modal-Rh1QAVxo.cjs → css-import-modal-QaTHJ7CT.cjs} +1 -1
- package/dist/delete-page-BoP3I06P.js +84 -0
- package/dist/delete-page-CjXYHAsS.cjs +1 -0
- package/dist/{design-token-usage-MNYsFlPG.js → design-token-usage-DFanW2r-.js} +26 -26
- package/dist/{design-token-usage-CXglXgcJ.cjs → design-token-usage-kEPgi-3C.cjs} +1 -1
- package/dist/{digital-asset-manager-CqCWBO0s.js → digital-asset-manager-BbI7Ye34.js} +6 -6
- package/dist/digital-asset-manager-N8tcW28y.cjs +1 -0
- package/dist/{duplicate-page-DzZByALW.cjs → duplicate-page-B-4nFU4j.cjs} +1 -1
- package/dist/{duplicate-page-BknLfqr0.js → duplicate-page-C6y7FdRQ.js} +7 -7
- package/dist/{dynamic-page-selector-WA007Sni.cjs → dynamic-page-selector-Cq4U-49i.cjs} +1 -1
- package/dist/{dynamic-page-selector-DoW7OyUB.js → dynamic-page-selector-DQCWphi0.js} +16 -16
- 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-BFePCEIS.cjs → get-chai-builder-tailwind-config-7CxFxEYL.cjs} +1 -1
- package/dist/{get-chai-builder-tailwind-config-BXf_xLHk.js → get-chai-builder-tailwind-config-DC4sDOYK.js} +5 -5
- package/dist/{get-chai-builder-theme-BApShjRz.cjs → get-chai-builder-theme-B5RkBTsB.cjs} +1 -1
- package/dist/{get-chai-builder-theme-DDVRJQ6Z.js → get-chai-builder-theme-BpuwSLeS.js} +1 -1
- package/dist/{image-compression-DsZ1oqpb.js → image-compression-DPFITwOL.js} +2 -2
- package/dist/image-compression-UaU7Bwqe.cjs +1 -0
- package/dist/{image-editor-CqwaVxO2.cjs → image-editor-565A0NpE.cjs} +1 -1
- package/dist/{image-editor-CQnNtak2.js → image-editor-Dz_HQ0I8.js} +1 -1
- package/dist/index-3pEi7VzS.cjs +5 -0
- package/dist/index-C3CV1lXL.cjs +160 -0
- package/dist/index-CDVuf3C1.js +5118 -0
- package/dist/{index-rAcNbjk_.js → index-wBr2Ml98.js} +6152 -6102
- package/dist/{json-diff-viewer-CLuUHiPU.cjs → json-diff-viewer-CMYFM6D6.cjs} +7 -7
- package/dist/{json-diff-viewer-CMvGUvJ2.js → json-diff-viewer-DG7a5-2B.js} +87 -85
- package/dist/{lang-panel-CnwTb05j.js → lang-panel-BvGiJJ8s.js} +26 -26
- package/dist/lang-panel-D97iJH-l.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-4Gu6TMKZ.js +446 -0
- package/dist/manage-design-tokens-Do9Kptp3.cjs +1 -0
- package/dist/manage-design-tokens-modal-Btbdgoun.cjs +1 -0
- package/dist/manage-design-tokens-modal-CkyFE8NW.js +161 -0
- package/dist/{mark-as-template-DBLshWb5.js → mark-as-template-Djhnj93U.js} +11 -11
- package/dist/{mark-as-template-CpWEBJGd.cjs → mark-as-template-QPJ0DqxL.cjs} +1 -1
- package/dist/{nested-path-selector-content-C2sD9dkq.cjs → nested-path-selector-content-BcmSxXxL.cjs} +1 -1
- package/dist/{nested-path-selector-content-6OBJ8LG8.js → nested-path-selector-content-DkPIHcVj.js} +2 -2
- package/dist/{no-language-page-content-CzENgtnu.js → no-language-page-content-DTq-5StU.js} +9 -9
- package/dist/{no-language-page-content-BvPDdccK.cjs → no-language-page-content-ZQz4Kr0-.cjs} +1 -1
- package/dist/{no-language-page-dialog-CbYI2cVg.js → no-language-page-dialog-2rA-YBbC.js} +2 -2
- package/dist/{no-language-page-dialog-CgW4yJBC.cjs → no-language-page-dialog-BsLkwJID.cjs} +1 -1
- package/dist/{page-creator-Cc83uQqw.js → page-creator-Dzpc0_dN.js} +143 -143
- package/dist/page-creator-lcDUpPjh.cjs +1 -0
- package/dist/{page-lock-CT7SmQqp.cjs → page-lock-B2GU-1YM.cjs} +1 -1
- package/dist/{page-lock-BJUkyxdh.js → page-lock-ulFtdOkt.js} +2 -2
- package/dist/{page-locked-dialog-DsEbWRed.js → page-locked-dialog-B9VpkvhN.js} +22 -22
- package/dist/page-locked-dialog-CJ53Z6sQ.cjs +1 -0
- package/dist/page-manager-new-CkoS0B1i.cjs +1 -0
- package/dist/page-manager-new-OoC8W7Yn.js +408 -0
- package/dist/{page-manager-search-and-filter-Bfm0j1gg.cjs → page-manager-search-and-filter-BosoN3wg.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-zq-LfhQ1.js → page-manager-search-and-filter-JfSTGlvp.js} +30 -29
- package/dist/{page-revisions-content-D38G2tJM.js → page-revisions-content-DsFh5itr.js} +133 -122
- package/dist/page-revisions-content-Dtd-t1N3.cjs +1 -0
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.ts +330 -96
- package/dist/pages.js +23 -19
- package/dist/plugin-BSjgGgwo.js +248 -0
- package/dist/plugin-DHpuZZXz.cjs +22 -0
- package/dist/publish-pages-content-C7oS7pkz.cjs +1 -0
- package/dist/{publish-pages-content-CS7f41Ac.js → publish-pages-content-DJc7iu8d.js} +39 -39
- package/dist/{register-chai-top-bar-ESJHs5s-.js → register-chai-top-bar-D6GjnauV.js} +87 -87
- package/dist/register-chai-top-bar-DyW9GPzV.cjs +1 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +20 -18
- package/dist/render.js +133 -132
- package/dist/{rte-widget-modal-BKNx2wln.cjs → rte-widget-modal-BKQaoxh9.cjs} +1 -1
- package/dist/{rte-widget-modal-D6Zik0Ta.js → rte-widget-modal-BdBYmqgs.js} +10 -10
- 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 +153 -270
- package/dist/runtime.js +107 -71
- package/dist/{save-to-lib-WwOzbgiF.js → save-to-lib-5nwSdZ9R.js} +153 -147
- package/dist/save-to-lib-D0WdH4lq.cjs +1 -0
- package/dist/sdk.css +1 -1
- package/dist/{selected-block-display-B1SG_UXw.js → selected-block-display-D8ROZHHv.js} +12 -12
- package/dist/{selected-block-display-BOgnQRLF.cjs → selected-block-display-DjYeUPdU.cjs} +1 -1
- package/dist/{seo-panel-BkOgRoWd.js → seo-panel-BbyRNAEo.js} +27 -27
- package/dist/seo-panel-DRjSxmk5.cjs +2 -0
- package/dist/shared-json-ld-BbNLdzCO.cjs +1 -0
- package/dist/{shared-json-ld-uka9TOgA.js → shared-json-ld-EPbpTI9V.js} +88 -88
- package/dist/{slug-input-Cyd6NR6J.cjs → slug-input-CIzxXknM.cjs} +1 -1
- package/dist/{slug-input-DHLmUNrH.js → slug-input-DSbJecNr.js} +8 -8
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.d.ts +45 -0
- package/dist/supabase-actions.js +380 -275
- package/dist/{take-over-request-Ca0X-qyf.js → take-over-request-BOGDk0H4.js} +13 -13
- package/dist/take-over-request-BXntCMdj.cjs +1 -0
- package/dist/{translation-warning-modal-pSZVKcNW.cjs → translation-warning-modal-DhJaOyLo.cjs} +1 -1
- package/dist/{translation-warning-modal-DrpFeI83.js → translation-warning-modal-reVr0L9e.js} +9 -9
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +756 -0
- package/dist/types.js +1 -0
- package/dist/{unmark-as-template-BMqgelv-.js → unmark-as-template-BM85Y7WK.js} +11 -11
- package/dist/{unmark-as-template-DF1Ms4VN.cjs → unmark-as-template-DOPyeU7R.cjs} +1 -1
- package/dist/unpublish-page-DHfds-1-.js +28 -0
- package/dist/{unpublish-page-Bsq2yEqQ.cjs → unpublish-page-Dz028Bzp.cjs} +1 -1
- package/dist/unpublished-partials-modal-BO5ZZdTw.js +52 -0
- package/dist/unpublished-partials-modal-CMqQa9-m.cjs +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +6 -6
- package/dist/utils.js +2 -2
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +360 -351
- package/dist/{web-preview-kres0aG7.cjs → web-preview-5MzixBt5.cjs} +1 -1
- package/dist/{web-preview-D6h1L2nV.js → web-preview-BNjG8s8A.js} +2 -2
- package/package.json +34 -35
- package/dist/actions-registery-JdxhXhT6.cjs +0 -418
- package/dist/add-new-page-DJLJFLAd.js +0 -31
- package/dist/ai-panel-default-lang-BZl0tPYo.js +0 -341
- package/dist/ai-panel-default-lang-D2zhXvKP.cjs +0 -3
- package/dist/ai-panel-other-lang-Bfjk2CYZ.js +0 -162
- package/dist/ai-panel-other-lang-Y4bEKHoG.cjs +0 -1
- package/dist/apply-binding-BvWfJCSZ.js +0 -841
- package/dist/apply-binding-IsUf6UWJ.cjs +0 -1
- package/dist/code-editor-Bb7JumZy.js +0 -51
- package/dist/code-editor-DQB8lAOk.cjs +0 -1
- package/dist/core-Dr7QYemB.js +0 -56
- package/dist/core-Y0lXLwkq.cjs +0 -1
- package/dist/delete-design-token-BG8yHcS5.cjs +0 -1
- package/dist/delete-design-token-COvR4G1S.js +0 -40
- package/dist/delete-page-CNucxe4P.js +0 -71
- package/dist/delete-page-DAvEjHwF.cjs +0 -1
- package/dist/digital-asset-manager-CB5MRBcW.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/image-compression-DZ9WMmyn.cjs +0 -1
- package/dist/index-B-rSiAp_.cjs +0 -1
- package/dist/index-C0-pgg_p.cjs +0 -5
- package/dist/index-C99FhuF1.cjs +0 -160
- package/dist/index-Dno42B0a.js +0 -4734
- package/dist/index-Dxfyt4d4.js +0 -39
- package/dist/lang-panel-fDCYm5Jm.cjs +0 -1
- package/dist/manage-design-tokens-BsSZE9Vs.js +0 -241
- package/dist/manage-design-tokens-BvH5KTJX.cjs +0 -1
- package/dist/page-creator-g8GqgcKH.cjs +0 -1
- package/dist/page-locked-dialog-Co5b9XIZ.cjs +0 -1
- package/dist/page-manager-new-5rFP5DyQ.js +0 -395
- package/dist/page-manager-new-BOkJImo2.cjs +0 -1
- package/dist/page-revisions-content-ag-MHBGr.cjs +0 -1
- package/dist/plugin-BGlQf0iy.cjs +0 -22
- package/dist/plugin-C-ht41UZ.js +0 -245
- package/dist/publish-pages-content-BiX-GMLw.cjs +0 -1
- package/dist/register-chai-top-bar-BqwKw4uy.cjs +0 -1
- package/dist/save-to-lib-ffjCZYJ5.cjs +0 -1
- package/dist/seo-panel-FjS1UF_y.cjs +0 -2
- package/dist/shared-json-ld-yJkXjENy.cjs +0 -1
- package/dist/take-over-request-CmpJVe9T.cjs +0 -1
- package/dist/theme-panel-footer-BUXIu252.js +0 -26
- package/dist/theme-panel-footer-CKO9YYwZ.cjs +0 -1
- package/dist/unpublish-page-BJ0Bsvt2.js +0 -28
package/dist/runtime.d.ts
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
1
|
import { default as default_2 } from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
2
|
import { RJSFSchema } from '@rjsf/utils';
|
|
5
3
|
import { UiSchema } from '@rjsf/utils';
|
|
6
4
|
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
export declare type AddBlockTab = {
|
|
10
|
-
id: string;
|
|
11
|
-
tab: React.ComponentType;
|
|
12
|
-
tabContent: React.ComponentType;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export declare const builderProp: (options: ChaiBlockPropSchema) => ChaiBlockPropSchema;
|
|
16
|
-
|
|
17
|
-
export declare const CHAI_BUILDER_PANELS: Record<string, ChaiSidebarPanel>;
|
|
5
|
+
export declare const builderProp: (options: ChaiBlockPropsSchema) => ChaiBlockPropsSchema;
|
|
18
6
|
|
|
19
7
|
export declare let CHAI_GLOBAL_DATA_PROVIDER: (args: {
|
|
20
8
|
lang: string;
|
|
@@ -22,25 +10,7 @@ export declare let CHAI_GLOBAL_DATA_PROVIDER: (args: {
|
|
|
22
10
|
inBuilder: boolean;
|
|
23
11
|
}) => Promise<any>;
|
|
24
12
|
|
|
25
|
-
declare type
|
|
26
|
-
url: string;
|
|
27
|
-
id?: string;
|
|
28
|
-
thumbnailUrl?: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
width?: number;
|
|
31
|
-
height?: number;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export declare type ChaiAsyncProp<T> = T | undefined;
|
|
35
|
-
|
|
36
|
-
export declare type ChaiBlock<BlockProps = Record<string, any>> = {
|
|
37
|
-
_id: string;
|
|
38
|
-
_type: string;
|
|
39
|
-
_name?: string;
|
|
40
|
-
_parent?: string | null;
|
|
41
|
-
} & BlockProps;
|
|
42
|
-
|
|
43
|
-
declare type ChaiBlock_2<T = Record<string, any>> = {
|
|
13
|
+
declare type ChaiBlock<T = Record<string, any>> = {
|
|
44
14
|
_id: string;
|
|
45
15
|
_name?: string;
|
|
46
16
|
_parent?: string | null | undefined;
|
|
@@ -49,15 +19,7 @@ declare type ChaiBlock_2<T = Record<string, any>> = {
|
|
|
49
19
|
partialBlockId?: string;
|
|
50
20
|
} & T;
|
|
51
21
|
|
|
52
|
-
declare type
|
|
53
|
-
_id: string;
|
|
54
|
-
_name?: string;
|
|
55
|
-
_parent?: string | null | undefined;
|
|
56
|
-
_type: string;
|
|
57
|
-
_libBlock?: string;
|
|
58
|
-
} & T;
|
|
59
|
-
|
|
60
|
-
export declare type ChaiBlockComponentProps<BlockProps, PageData = Record<string, unknown>> = ChaiBlock<BlockProps> & {
|
|
22
|
+
declare type ChaiBlockComponentProps<BlockProps = unknown, PageData = Record<string, unknown>> = ChaiBlock<BlockProps> & {
|
|
61
23
|
$loading?: boolean;
|
|
62
24
|
blockProps: Record<string, string>;
|
|
63
25
|
inBuilder: boolean;
|
|
@@ -68,8 +30,7 @@ export declare type ChaiBlockComponentProps<BlockProps, PageData = Record<string
|
|
|
68
30
|
children?: default_2.ReactNode;
|
|
69
31
|
};
|
|
70
32
|
|
|
71
|
-
|
|
72
|
-
component: default_2.ComponentType<ChaiBlockComponentProps<T>>;
|
|
33
|
+
declare interface ChaiBlockConfig {
|
|
73
34
|
type: string;
|
|
74
35
|
label: string;
|
|
75
36
|
group: string;
|
|
@@ -85,10 +46,20 @@ export declare interface ChaiBlockDefinition<T = Record<string, any>, K = Record
|
|
|
85
46
|
lang: string;
|
|
86
47
|
draft: boolean;
|
|
87
48
|
inBuilder: boolean;
|
|
88
|
-
block: ChaiBlock
|
|
49
|
+
block: ChaiBlock;
|
|
89
50
|
pageProps: ChaiPageProps;
|
|
90
|
-
}) =>
|
|
51
|
+
}) => Record<string, unknown>;
|
|
52
|
+
props?: {
|
|
53
|
+
schema: ChaiBlockSchema;
|
|
54
|
+
uiSchema: ChaiBlockUiSchema;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use props.schema instead
|
|
58
|
+
*/
|
|
91
59
|
schema?: ChaiBlockSchema;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use props.uiSchema instead
|
|
62
|
+
*/
|
|
92
63
|
uiSchema?: ChaiBlockUiSchema;
|
|
93
64
|
i18nProps?: string[];
|
|
94
65
|
aiProps?: string[];
|
|
@@ -100,36 +71,102 @@ export declare interface ChaiBlockDefinition<T = Record<string, any>, K = Record
|
|
|
100
71
|
canBeNested?: (type: string) => boolean;
|
|
101
72
|
}
|
|
102
73
|
|
|
103
|
-
declare type
|
|
74
|
+
declare type ChaiBlockPropsSchema = RJSFSchema & {
|
|
75
|
+
properties?: {
|
|
76
|
+
[key: string]: RJSFSchema;
|
|
77
|
+
} | undefined;
|
|
78
|
+
enumNames?: (string | number)[];
|
|
79
|
+
};
|
|
104
80
|
|
|
105
|
-
|
|
106
|
-
ui
|
|
107
|
-
|
|
81
|
+
declare type ChaiBlockRJSFSchemas = {
|
|
82
|
+
schema: object | Omit<ChaiBlockSchema, "ui">;
|
|
83
|
+
uiSchema: ChaiBlockUiSchema;
|
|
108
84
|
};
|
|
109
85
|
|
|
110
|
-
|
|
111
|
-
properties?: Record<string,
|
|
86
|
+
declare type ChaiBlockSchema = {
|
|
87
|
+
properties?: Record<string, ChaiBlockPropsSchema>;
|
|
112
88
|
allOf?: any[];
|
|
113
89
|
oneOf?: any[];
|
|
114
|
-
} & Partial<Pick<
|
|
90
|
+
} & Partial<Pick<ChaiBlockPropsSchema, "required" | "dependencies" | "ui" | "title" | "description" | "default">>;
|
|
115
91
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
92
|
+
declare type ChaiBlockUiSchema = UiSchema;
|
|
93
|
+
|
|
94
|
+
declare interface ChaiDesignTokens {
|
|
95
|
+
[uniqueId: string]: {
|
|
96
|
+
name: string;
|
|
97
|
+
value: string;
|
|
98
|
+
archived?: boolean;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare type ChaiFont = ChaiFontByUrl | ChaiFontBySrc | ChaiSystemFont;
|
|
103
|
+
|
|
104
|
+
declare type ChaiFontBySrc = {
|
|
105
|
+
family: string;
|
|
106
|
+
src: ChaiFontSource[];
|
|
107
|
+
fallback: string;
|
|
119
108
|
};
|
|
120
109
|
|
|
121
|
-
|
|
110
|
+
declare type ChaiFontByUrl = {
|
|
111
|
+
family: string;
|
|
112
|
+
url: string;
|
|
113
|
+
fallback: string;
|
|
114
|
+
};
|
|
122
115
|
|
|
123
|
-
declare type
|
|
116
|
+
declare type ChaiFontSource = {
|
|
117
|
+
url: string;
|
|
118
|
+
format: string;
|
|
119
|
+
fontWeight?: string;
|
|
120
|
+
fontStyle?: string;
|
|
121
|
+
fontDisplay?: string;
|
|
122
|
+
fontStretch?: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
declare type ChaiPage = {
|
|
124
126
|
id: string;
|
|
125
127
|
slug: string;
|
|
126
|
-
name: string;
|
|
127
128
|
lang: string;
|
|
129
|
+
name: string;
|
|
130
|
+
pageType: string;
|
|
131
|
+
blocks: ChaiBlock[];
|
|
132
|
+
createdAt: string;
|
|
133
|
+
lastSaved: string;
|
|
134
|
+
dynamic: boolean;
|
|
128
135
|
online: boolean;
|
|
129
|
-
seo:
|
|
136
|
+
seo: ChaiPageSeo;
|
|
137
|
+
app: string;
|
|
138
|
+
primaryPage?: string | null;
|
|
139
|
+
currentEditor?: string | null;
|
|
140
|
+
changes: object[];
|
|
141
|
+
parent?: string | null;
|
|
142
|
+
libRefId?: string | null;
|
|
143
|
+
dynamicSlugCustom?: string | null;
|
|
144
|
+
metadata?: object;
|
|
145
|
+
jsonld?: object;
|
|
146
|
+
globalJsonLds?: string[];
|
|
147
|
+
links?: string;
|
|
148
|
+
partialBlocks?: string;
|
|
149
|
+
designTokens?: ChaiDesignTokens;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
declare type ChaiPageProps<T = Record<string, any>> = {
|
|
153
|
+
slug: string;
|
|
154
|
+
searchParams?: Record<string, string>;
|
|
155
|
+
} & T;
|
|
156
|
+
|
|
157
|
+
declare type ChaiPageSeo = {
|
|
158
|
+
title?: string;
|
|
159
|
+
description?: string;
|
|
160
|
+
ogTitle?: string;
|
|
161
|
+
ogDescription?: string;
|
|
162
|
+
ogImage?: string;
|
|
163
|
+
canonicalUrl?: string;
|
|
164
|
+
noIndex?: boolean;
|
|
165
|
+
noFollow?: boolean;
|
|
166
|
+
jsonLD?: string;
|
|
130
167
|
};
|
|
131
168
|
|
|
132
|
-
declare type
|
|
169
|
+
declare type ChaiPageType = {
|
|
133
170
|
key: string;
|
|
134
171
|
helpText?: string;
|
|
135
172
|
icon?: string;
|
|
@@ -137,135 +174,36 @@ declare type ChaiBuilderPageType = {
|
|
|
137
174
|
name: string | (() => Promise<string>);
|
|
138
175
|
dynamicSegments?: string;
|
|
139
176
|
dynamicSlug?: string;
|
|
140
|
-
getDynamicPages?: ({ query, uuid }: {
|
|
177
|
+
getDynamicPages?: ({ query, uuid, }: {
|
|
141
178
|
query?: string;
|
|
142
179
|
uuid?: string;
|
|
143
|
-
}) => Promise<
|
|
144
|
-
search?: (query: string) => Promise<
|
|
180
|
+
}) => Promise<Pick<ChaiPage, "id" | "name" | "slug" | "primaryPage">[]>;
|
|
181
|
+
search?: (query: string) => Promise<Pick<ChaiPage, "id" | "name" | "slug">[] | Error>;
|
|
145
182
|
resolveLink?: (id: string, draft?: boolean, lang?: string) => Promise<string>;
|
|
146
|
-
onCreate?: (data:
|
|
147
|
-
|
|
148
|
-
|
|
183
|
+
onCreate?: (data: Partial<ChaiPage> & {
|
|
184
|
+
id: string;
|
|
185
|
+
}) => Promise<void>;
|
|
186
|
+
onUpdate?: (data: Partial<ChaiPage> & {
|
|
187
|
+
id: string;
|
|
188
|
+
}) => Promise<void>;
|
|
189
|
+
onDelete?: (data: Pick<ChaiPage, "id">) => Promise<void>;
|
|
149
190
|
dataProvider?: (args: {
|
|
150
191
|
lang: string;
|
|
151
192
|
draft: boolean;
|
|
152
193
|
inBuilder: boolean;
|
|
153
194
|
pageProps: ChaiPageProps;
|
|
154
195
|
}) => Promise<Record<string, any>>;
|
|
155
|
-
defaultTrackingInfo?: () => Record<string, any>;
|
|
156
196
|
defaultSeo?: () => Record<string, any>;
|
|
157
197
|
defaultJSONLD?: () => Record<string, any>;
|
|
158
198
|
defaultMetaTags?: () => Record<string, string>;
|
|
159
199
|
};
|
|
160
200
|
|
|
161
|
-
|
|
162
|
-
block: ChaiBlock<T>;
|
|
163
|
-
} & K;
|
|
164
|
-
|
|
165
|
-
declare type ChaiDynamicPage = {
|
|
166
|
-
id: string;
|
|
167
|
-
slug: string;
|
|
168
|
-
name: string;
|
|
169
|
-
primaryPage?: string;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
declare type ChaiFlagOptions = {
|
|
173
|
-
key: string;
|
|
174
|
-
value?: any;
|
|
175
|
-
description?: string;
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
export declare type ChaiFont = ChaiFontViaUrl | ChaiFontViaSrc;
|
|
179
|
-
|
|
180
|
-
export declare type ChaiFontViaSrc = {
|
|
181
|
-
family: string;
|
|
182
|
-
src: {
|
|
183
|
-
url: string;
|
|
184
|
-
format: string;
|
|
185
|
-
fontWeight?: string;
|
|
186
|
-
fontStyle?: string;
|
|
187
|
-
fontDisplay?: string;
|
|
188
|
-
fontStretch?: string;
|
|
189
|
-
}[];
|
|
190
|
-
fallback: string;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export declare type ChaiFontViaUrl = {
|
|
201
|
+
declare type ChaiSystemFont = {
|
|
194
202
|
family: string;
|
|
195
|
-
url: string;
|
|
196
203
|
fallback: string;
|
|
197
204
|
};
|
|
198
205
|
|
|
199
|
-
declare
|
|
200
|
-
id: string;
|
|
201
|
-
name: string;
|
|
202
|
-
blocks?: ChaiLibraryBlock[];
|
|
203
|
-
description?: string;
|
|
204
|
-
} & T;
|
|
205
|
-
|
|
206
|
-
declare type ChaiLibraryBlock<T = Record<string, any>> = {
|
|
207
|
-
id: string;
|
|
208
|
-
group: string;
|
|
209
|
-
name: string;
|
|
210
|
-
preview?: string;
|
|
211
|
-
tags?: string[];
|
|
212
|
-
description?: string;
|
|
213
|
-
} & T;
|
|
214
|
-
|
|
215
|
-
declare type ChaiLibraryConfig<T> = {
|
|
216
|
-
id: string;
|
|
217
|
-
name: string;
|
|
218
|
-
description: string;
|
|
219
|
-
getBlocksList: (library: ChaiLibrary) => Promise<ChaiLibraryBlock<T>[]>;
|
|
220
|
-
getBlock: ({ library, block, }: {
|
|
221
|
-
library: ChaiLibrary;
|
|
222
|
-
block: ChaiLibraryBlock<T>;
|
|
223
|
-
}) => Promise<HTMLString | ChaiBlock_2[]>;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export declare interface ChaiPageProps {
|
|
227
|
-
slug: string;
|
|
228
|
-
searchParams?: Record<string, string>;
|
|
229
|
-
[key: string]: any;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export declare type ChaiRuntimeProp<T> = T | undefined;
|
|
233
|
-
|
|
234
|
-
export declare interface ChaiServerBlockDefinition<T = Record<string, any>, K = Record<string, any>> {
|
|
235
|
-
component: default_2.ComponentType<ChaiBlockComponentProps<T>>;
|
|
236
|
-
type: string;
|
|
237
|
-
dataProvider?: (args: {
|
|
238
|
-
draft: boolean;
|
|
239
|
-
inBuilder: boolean;
|
|
240
|
-
lang: string;
|
|
241
|
-
block: ChaiBlock<T>;
|
|
242
|
-
pageProps: ChaiPageProps;
|
|
243
|
-
}) => Promise<K>;
|
|
244
|
-
suspenseFallback?: default_2.ComponentType<any>;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export declare interface ChaiSidebarPanel {
|
|
248
|
-
id: string;
|
|
249
|
-
position: "top" | "bottom";
|
|
250
|
-
view?: "standard" | "modal" | "overlay" | "drawer";
|
|
251
|
-
button: React.ComponentType<{
|
|
252
|
-
isActive: boolean;
|
|
253
|
-
show: () => void;
|
|
254
|
-
panelId: string;
|
|
255
|
-
position: "top" | "bottom";
|
|
256
|
-
}>;
|
|
257
|
-
label: string;
|
|
258
|
-
panel?: ComponentType;
|
|
259
|
-
width?: number;
|
|
260
|
-
isInternal?: boolean;
|
|
261
|
-
icon?: React.ReactNode;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export declare type ChaiStyles = {
|
|
265
|
-
[key: string]: string;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
export declare const closestBlockProp: (blockType: keyof typeof REGISTERED_CHAI_BLOCKS, prop: string) => ChaiBlockPropSchema;
|
|
206
|
+
export declare const closestBlockProp: (blockType: keyof typeof REGISTERED_CHAI_BLOCKS, prop: string) => ChaiBlockPropsSchema;
|
|
269
207
|
|
|
270
208
|
declare interface CollectionConfig<T> {
|
|
271
209
|
id: string;
|
|
@@ -301,14 +239,22 @@ export declare const COLLECTIONS: Record<string, CollectionConfig<any>>;
|
|
|
301
239
|
|
|
302
240
|
export declare const defaultChaiStyles: (classes: string) => string;
|
|
303
241
|
|
|
304
|
-
export declare const getAIBlockProps: (type: keyof typeof REGISTERED_CHAI_BLOCKS) =>
|
|
242
|
+
export declare const getAIBlockProps: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => never[] | (ChaiBlockConfig & {
|
|
243
|
+
component: default_2.ComponentType<ChaiBlockComponentProps>;
|
|
244
|
+
});
|
|
305
245
|
|
|
306
246
|
export declare const getAllRegisteredFonts: () => ChaiFont[];
|
|
307
247
|
|
|
248
|
+
export declare const getBlockDefaultProps: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => Record<string, any>;
|
|
249
|
+
|
|
308
250
|
export declare const getBlockFormSchemas: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => {
|
|
309
251
|
schema: RJSFSchema;
|
|
310
252
|
uiSchema: UiSchema;
|
|
311
|
-
} |
|
|
253
|
+
} | undefined;
|
|
254
|
+
|
|
255
|
+
/* Excluded from this release type: getBlockSchema */
|
|
256
|
+
|
|
257
|
+
/* Excluded from this release type: getBlockUiSchema */
|
|
312
258
|
|
|
313
259
|
export declare const getChaiCollection: (key: string) => CollectionConfig<any>;
|
|
314
260
|
|
|
@@ -320,63 +266,38 @@ export declare const getChaiGlobalData: (args: {
|
|
|
320
266
|
inBuilder: boolean;
|
|
321
267
|
}) => Promise<any>;
|
|
322
268
|
|
|
323
|
-
export declare const
|
|
324
|
-
|
|
325
|
-
export declare const getChaiPageType: (key: keyof typeof PAGE_TYPES) => ChaiBuilderPageType;
|
|
269
|
+
export declare const getChaiPageType: (key: keyof typeof PAGE_TYPES) => ChaiPageType;
|
|
326
270
|
|
|
327
|
-
export declare const getChaiPageTypes: () =>
|
|
271
|
+
export declare const getChaiPageTypes: () => ChaiPageType[];
|
|
328
272
|
|
|
329
273
|
export declare const getDefaultBlockProps: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => Record<string, any>;
|
|
330
274
|
|
|
331
|
-
export declare const
|
|
275
|
+
export declare const getFontStyles: (headingFont: string, bodyFont: string) => Promise<{
|
|
276
|
+
fontStyles: string;
|
|
277
|
+
preloads: string[];
|
|
278
|
+
}>;
|
|
332
279
|
|
|
333
|
-
export declare const
|
|
280
|
+
export declare const getI18nBlockProps: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => never[] | (ChaiBlockConfig & {
|
|
281
|
+
component: default_2.ComponentType<ChaiBlockComponentProps>;
|
|
282
|
+
});
|
|
334
283
|
|
|
335
|
-
export declare const getRegisteredChaiBlock: (type: keyof typeof REGISTERED_CHAI_BLOCKS) =>
|
|
284
|
+
export declare const getRegisteredChaiBlock: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => (ChaiBlockConfig & {
|
|
285
|
+
component: default_2.ComponentType<ChaiBlockComponentProps>;
|
|
286
|
+
}) | undefined;
|
|
336
287
|
|
|
337
288
|
export declare const getRegisteredFont: (family: string) => ChaiFont | undefined;
|
|
338
289
|
|
|
339
|
-
declare
|
|
290
|
+
export declare const PAGE_TYPES: Record<string, ChaiPageType>;
|
|
340
291
|
|
|
341
|
-
export declare const
|
|
342
|
-
flagKey: string;
|
|
343
|
-
children: React.ReactNode;
|
|
344
|
-
}) => ReactNode;
|
|
292
|
+
export declare const registerChaiBlock: (component: default_2.ComponentType<ChaiBlockComponentProps<any>>, options: ChaiBlockConfig) => void;
|
|
345
293
|
|
|
346
|
-
export declare
|
|
347
|
-
assetId?: string;
|
|
348
|
-
close: () => void;
|
|
349
|
-
onSelect: (assets: ChaiAsset | ChaiAsset[]) => void;
|
|
350
|
-
mode?: "image" | "video" | "audio";
|
|
351
|
-
};
|
|
294
|
+
export declare const registerChaiBlockProps: (blockSchema: ChaiBlockPropsSchema) => ChaiBlockRJSFSchemas;
|
|
352
295
|
|
|
353
|
-
export declare const
|
|
354
|
-
|
|
355
|
-
declare type PageTypeSearchResult = {
|
|
356
|
-
id: string;
|
|
357
|
-
name: string;
|
|
358
|
-
slug?: string;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
export declare const registerBlockSettingField: (id: string, component: React.ComponentType<any>) => void;
|
|
362
|
-
|
|
363
|
-
export declare const registerBlockSettingTemplate: (id: string, component: React.ComponentType<any>) => void;
|
|
364
|
-
|
|
365
|
-
export declare const registerBlockSettingWidget: (id: string, component: React.ComponentType<any>) => void;
|
|
366
|
-
|
|
367
|
-
export declare const registerChaiAddBlockTab: (id: string, tab: Omit<AddBlockTab, "id">) => void;
|
|
368
|
-
|
|
369
|
-
export declare const registerChaiBlock: <T extends Record<string, any> = Record<string, any>, K extends Record<string, any> = Record<string, any>>(component: default_2.ComponentType<ChaiBlockComponentProps<T>>, options: ChaiBlockDefinitionOptions<T, K>) => void;
|
|
370
|
-
|
|
371
|
-
export declare const registerChaiBlockSchema: (blockSchema: ChaiBlockSchema) => ChaiBlockSchemas;
|
|
296
|
+
export declare const registerChaiBlockSchema: (blockSchema: ChaiBlockPropsSchema) => ChaiBlockRJSFSchemas;
|
|
372
297
|
|
|
373
298
|
export declare function registerChaiCollection<T = Record<any, any>>(id: string, collection: Omit<CollectionConfig<T>, "id">): void;
|
|
374
299
|
|
|
375
|
-
export declare const
|
|
376
|
-
|
|
377
|
-
export declare const registerChaiFeatureFlags: (flags: Record<string, Omit<ChaiFlagOptions, "key">>) => void;
|
|
378
|
-
|
|
379
|
-
export declare const registerChaiFont: (family: string, font: Omit<ChaiFont, "family">) => void;
|
|
300
|
+
export declare const registerChaiFont: (family: string, font: Omit<ChaiFontBySrc, "family">) => void;
|
|
380
301
|
|
|
381
302
|
export declare const registerChaiGlobalDataProvider: <T>(globalDataProvider: (args: {
|
|
382
303
|
lang: string;
|
|
@@ -384,43 +305,19 @@ export declare const registerChaiGlobalDataProvider: <T>(globalDataProvider: (ar
|
|
|
384
305
|
inBuilder: boolean;
|
|
385
306
|
}) => Promise<T>) => void;
|
|
386
307
|
|
|
387
|
-
export declare const
|
|
388
|
-
|
|
389
|
-
export declare const registerChaiMediaManager: (component: React.ComponentType<MediaManagerProps>) => void;
|
|
390
|
-
|
|
391
|
-
export declare const registerChaiPageType: (key: string, pageTypeOptions: Omit<ChaiBuilderPageType, "key" | "hasSlug">) => void;
|
|
392
|
-
|
|
393
|
-
export declare const registerChaiPartialType: (key: string, pageTypeOptions: Omit<ChaiBuilderPageType, "key">) => void;
|
|
394
|
-
|
|
395
|
-
export declare const registerChaiPreImportHTMLHook: (fn: (code: string) => Promise<string>) => void;
|
|
396
|
-
|
|
397
|
-
export declare const registerChaiSaveToLibrary: (component: ComponentType<SaveToLibraryProps>) => void;
|
|
398
|
-
|
|
399
|
-
export declare const registerChaiServerBlock: <T extends Record<string, any> = Record<string, any>, K extends Record<string, any> = Record<string, any>>(component: default_2.ComponentType<ChaiBlockComponentProps<T>>, options: Pick<ChaiBlockDefinition<T, K>, "type" | "dataProvider" | "i18nProps" | "aiProps">) => void;
|
|
308
|
+
export declare const registerChaiPageType: (key: string, pageTypeOptions: Omit<ChaiPageType, "key" | "hasSlug">) => void;
|
|
400
309
|
|
|
401
|
-
export declare const
|
|
310
|
+
export declare const registerChaiPartialType: (key: string, pageTypeOptions: Omit<ChaiPageType, "key">) => void;
|
|
402
311
|
|
|
403
|
-
export declare const
|
|
312
|
+
export declare const registerChaiServerBlock: (component: default_2.ComponentType<ChaiBlockComponentProps<any>>, options: Pick<ChaiBlockConfig, "type" | "dataProvider" | "i18nProps" | "aiProps">) => void;
|
|
404
313
|
|
|
405
|
-
declare const REGISTERED_CHAI_BLOCKS: Record<string,
|
|
406
|
-
|
|
407
|
-
export declare const resetSaveToLibrary: () => void;
|
|
408
|
-
|
|
409
|
-
export declare const RJSF_EXTENSIONS: Record<string, {
|
|
410
|
-
id: string;
|
|
411
|
-
component: React.ComponentType<any>;
|
|
412
|
-
type: string;
|
|
314
|
+
declare const REGISTERED_CHAI_BLOCKS: Record<string, ChaiBlockConfig & {
|
|
315
|
+
component: default_2.ComponentType<ChaiBlockComponentProps>;
|
|
413
316
|
}>;
|
|
414
317
|
|
|
415
|
-
export declare const runtimeProp: (options:
|
|
318
|
+
export declare const runtimeProp: (options: ChaiBlockPropsSchema) => ChaiBlockPropsSchema;
|
|
416
319
|
|
|
417
|
-
export declare type
|
|
418
|
-
blockId: string;
|
|
419
|
-
blocks: ChaiBlock_3[];
|
|
420
|
-
close: () => void;
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
export declare const setChaiBlockComponent: <T extends Record<string, any> = Record<string, any>>(type: keyof typeof REGISTERED_CHAI_BLOCKS, component: default_2.ComponentType<ChaiBlockComponentProps<T>>) => void;
|
|
320
|
+
export declare const setChaiBlockComponent: (type: keyof typeof REGISTERED_CHAI_BLOCKS, component: default_2.ComponentType<ChaiBlockComponentProps<any>>) => void;
|
|
424
321
|
|
|
425
322
|
export declare const setChaiBlockDataProvider: <K extends Record<string, any> = Record<string, any>>(type: string, dataProvider: (args: {
|
|
426
323
|
lang: string;
|
|
@@ -438,36 +335,22 @@ export declare const setChaiServerBlockDataProvider: <K extends Record<string, a
|
|
|
438
335
|
pageProps: ChaiPageProps;
|
|
439
336
|
}) => Promise<K>) => void;
|
|
440
337
|
|
|
441
|
-
export declare const StylesProp: (defaultClasses?: string) =>
|
|
442
|
-
|
|
443
|
-
export declare const stylesProp: (defaultClasses?: string) => ChaiBlockPropSchema;
|
|
444
|
-
|
|
445
|
-
export declare const syncBlocksWithDefaults: (blocks: ChaiBlock[]) => ChaiBlock[];
|
|
446
|
-
|
|
447
|
-
export declare const useBlockSettingComponents: (type: "widget" | "field" | "template") => Record<string, React.ComponentType<any>>;
|
|
448
|
-
|
|
449
|
-
export declare const useChaiAddBlockTabs: () => AddBlockTab[];
|
|
450
|
-
|
|
451
|
-
export declare const useChaiFeatureFlag: (flagKey: string) => boolean;
|
|
338
|
+
export declare const StylesProp: (defaultClasses?: string) => ChaiBlockPropsSchema;
|
|
452
339
|
|
|
453
|
-
export declare const
|
|
340
|
+
export declare const stylesProp: (defaultClasses?: string) => ChaiBlockPropsSchema;
|
|
454
341
|
|
|
455
|
-
export declare const
|
|
342
|
+
export declare const syncBlocksWithDefaultProps: (blocks: ChaiBlock[]) => ChaiBlock[];
|
|
456
343
|
|
|
457
|
-
export declare const
|
|
458
|
-
|
|
459
|
-
export declare const useMediaManagerComponent: () => ComponentType<MediaManagerProps>;
|
|
344
|
+
export declare const syncBlocksWithDefaults: (blocks: ChaiBlock[]) => ChaiBlock[];
|
|
460
345
|
|
|
461
|
-
export declare const useRegisteredChaiBlock: (type: keyof typeof REGISTERED_CHAI_BLOCKS) =>
|
|
346
|
+
export declare const useRegisteredChaiBlock: (type: keyof typeof REGISTERED_CHAI_BLOCKS) => (ChaiBlockConfig & {
|
|
347
|
+
component: default_2.ComponentType<ChaiBlockComponentProps>;
|
|
348
|
+
}) | null;
|
|
462
349
|
|
|
463
|
-
export declare const useRegisteredChaiBlocks: () => Record<string,
|
|
350
|
+
export declare const useRegisteredChaiBlocks: () => Record<string, ChaiBlockConfig & {
|
|
351
|
+
component: default_2.ComponentType<ChaiBlockComponentProps>;
|
|
352
|
+
}>;
|
|
464
353
|
|
|
465
354
|
export declare const useRegisteredFonts: () => ChaiFont[];
|
|
466
355
|
|
|
467
|
-
export declare const useSaveToLibraryComponent: () => ComponentType<SaveToLibraryProps> | null;
|
|
468
|
-
|
|
469
|
-
export declare const useToggleChaiFeatureFlag: (flagKey: string) => () => void;
|
|
470
|
-
|
|
471
|
-
export declare const useTopBarComponent: () => ComponentType< {}>;
|
|
472
|
-
|
|
473
356
|
export { }
|