chaipro 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/IconPicker-I7VNLYZ4.js +5 -0
- package/dist/actions-DM00SIUk.d.cts +899 -0
- package/dist/actions-DM00SIUk.d.ts +899 -0
- package/dist/actions-registery-SEJTZE5Q.js +1 -0
- package/dist/active-in-another-tab-SONDAONP.js +1 -0
- package/dist/add-new-language-page-TI6DUYYX.js +1 -0
- package/dist/add-new-page-LBHXICXO.js +1 -0
- package/dist/ai-block-floating-prompt-input-ESY5GQLZ.js +1 -0
- package/dist/ai-panel-content-62I6FDQF.css +1 -0
- package/dist/ai-panel-content-UZJZ463W.js +1 -0
- package/dist/ai-panel-default-lang-2ZXZYQRT.js +6 -0
- package/dist/ai-panel-default-lang-ETFOFFEF.css +1 -0
- package/dist/ai-panel-for-image-LADQP6VY.js +1 -0
- package/dist/ai-panel-other-lang-WDLC3M2M.js +1 -0
- package/dist/ai-panel-page-chat-7ZISZWY4.js +4 -0
- package/dist/ai-panel-page-chat-N4YFJGAM.css +1 -0
- package/dist/ai-prompt-input-CPT5ETQ4.js +1 -0
- package/dist/ai-theme-generator-7PS4BX52.js +1 -0
- package/dist/ai-translation-prompt-3VE2ECGR.js +1 -0
- package/dist/blocks-CMvgDlxw.d.ts +72 -0
- package/dist/blocks-CP-Pngaz.d.cts +72 -0
- package/dist/build-config-CCERdThN.d.ts +80 -0
- package/dist/build-config-DrerOPd9.d.cts +80 -0
- package/dist/builder.cjs +243 -0
- package/dist/builder.css +1 -0
- package/dist/builder.d.cts +352 -0
- package/dist/builder.d.ts +352 -0
- package/dist/builder.js +1 -0
- package/dist/chaibuilder-instance-DNz3Q-dY.d.cts +579 -0
- package/dist/chaibuilder-instance-qroszVwI.d.ts +579 -0
- package/dist/change-password-modal-NJL7ZLTY.js +1 -0
- package/dist/chunk-2AFM6557.js +3 -0
- package/dist/chunk-2N4IJZOR.js +1 -0
- package/dist/chunk-2NYUIXUX.js +1 -0
- package/dist/chunk-2PJZUYIZ.js +1 -0
- package/dist/chunk-32HH35VD.js +1 -0
- package/dist/chunk-346H4FEX.js +1 -0
- package/dist/chunk-34HIOUTE.js +1 -0
- package/dist/chunk-374QEK4F.js +1 -0
- package/dist/chunk-3E72DJSP.js +1 -0
- package/dist/chunk-3IT7IIAV.js +1 -0
- package/dist/chunk-3UEPBBE4.js +11 -0
- package/dist/chunk-3XSKJBPH.js +1 -0
- package/dist/chunk-45ELAD2J.js +1 -0
- package/dist/chunk-4JBHWPMO.js +1 -0
- package/dist/chunk-4P25MV5E.js +1 -0
- package/dist/chunk-4PQNBY3V.js +1 -0
- package/dist/chunk-4VNLL2IA.js +1 -0
- package/dist/chunk-55SU3QPU.js +1 -0
- package/dist/chunk-5ZC65NB6.js +1 -0
- package/dist/chunk-6M7V7BOM.js +1 -0
- package/dist/chunk-6TXCHU4K.js +1 -0
- package/dist/chunk-777N6WHB.js +1 -0
- package/dist/chunk-7C4EQOAR.js +12 -0
- package/dist/chunk-7EXZXKW2.js +1 -0
- package/dist/chunk-7QWMLDCG.js +1 -0
- package/dist/chunk-AOJE5WI3.js +1 -0
- package/dist/chunk-ATLMLDBS.js +1 -0
- package/dist/chunk-AVGF3YLU.js +17 -0
- package/dist/chunk-BQSLQHLD.js +1 -0
- package/dist/chunk-BWORNCTE.js +1 -0
- package/dist/chunk-BYGD5CDT.js +1 -0
- package/dist/chunk-CA5PVX24.js +1 -0
- package/dist/chunk-CFNOB42V.js +1 -0
- package/dist/chunk-CJP3BQH2.js +1 -0
- package/dist/chunk-CRJENCPR.js +1 -0
- package/dist/chunk-D5SKCKSB.js +1 -0
- package/dist/chunk-DZ72OHTD.js +1 -0
- package/dist/chunk-EPGOG22Q.js +0 -0
- package/dist/chunk-ERCY63ZW.js +1 -0
- package/dist/chunk-ESCX7KEH.js +1 -0
- package/dist/chunk-F2V4N3LT.js +156 -0
- package/dist/chunk-F7YMHPEA.js +1 -0
- package/dist/chunk-FERH2TPR.js +1 -0
- package/dist/chunk-FLSV2QGU.js +1 -0
- package/dist/chunk-FOKGOT6B.js +1 -0
- package/dist/chunk-GJOOCKUE.js +1 -0
- package/dist/chunk-HA7LF3RV.js +1 -0
- package/dist/chunk-HAKJOMCL.js +1 -0
- package/dist/chunk-HEKCKC7N.js +1 -0
- package/dist/chunk-HELRVKD2.js +3 -0
- package/dist/chunk-I7ODKVVX.js +1 -0
- package/dist/chunk-IAKCX2WB.js +1 -0
- package/dist/chunk-IB2C3TWH.js +1 -0
- package/dist/chunk-IH562KSP.js +1 -0
- package/dist/chunk-IP4JBQOX.js +1 -0
- package/dist/chunk-ITX7QWN6.js +1 -0
- package/dist/chunk-IUACZ3E6.js +6 -0
- package/dist/chunk-J7Q62EP7.js +1 -0
- package/dist/chunk-JBB5IJFA.js +1 -0
- package/dist/chunk-JPJRO4NU.js +1 -0
- package/dist/chunk-JUIS55JT.js +1 -0
- package/dist/chunk-JYBTQ3YX.js +5 -0
- package/dist/chunk-K5YWQY4U.js +1 -0
- package/dist/chunk-K6RHR4HT.js +1 -0
- package/dist/chunk-LNV5MRGV.js +1 -0
- package/dist/chunk-LRJREWRD.js +1 -0
- package/dist/chunk-LWYDGDPW.js +1 -0
- package/dist/chunk-MDMGXS5B.js +1 -0
- package/dist/chunk-MEROMQQX.js +1 -0
- package/dist/chunk-N7Z4RFFI.js +1 -0
- package/dist/chunk-NSQEQYEM.js +1 -0
- package/dist/chunk-OD3K76M6.js +1 -0
- package/dist/chunk-ODSL3KXG.js +1 -0
- package/dist/chunk-OJJDRACB.js +1 -0
- package/dist/chunk-ONSZ462E.js +1 -0
- package/dist/chunk-OQZ4EPOM.js +1 -0
- package/dist/chunk-OR7KKUYT.js +1 -0
- package/dist/chunk-OSGXFZTA.js +1 -0
- package/dist/chunk-PM3JNOZH.js +1 -0
- package/dist/chunk-PQHFT4TE.js +1 -0
- package/dist/chunk-QGVCH2NI.js +1 -0
- package/dist/chunk-QIGSSVEY.js +1 -0
- package/dist/chunk-R5ZTCDFD.js +1 -0
- package/dist/chunk-RBDZDQZR.js +1 -0
- package/dist/chunk-ROQRBSK6.js +1 -0
- package/dist/chunk-SSENH35Y.js +1 -0
- package/dist/chunk-SYPALJAE.js +1 -0
- package/dist/chunk-T2YYNX6Z.js +1 -0
- package/dist/chunk-T32TW3XV.js +1 -0
- package/dist/chunk-T56KQBE2.js +1 -0
- package/dist/chunk-TEL5ACJE.js +1 -0
- package/dist/chunk-TGJQC6VC.js +1 -0
- package/dist/chunk-TQ34DGOT.js +1 -0
- package/dist/chunk-TVF77C53.js +1 -0
- package/dist/chunk-UIDBBTCZ.js +3 -0
- package/dist/chunk-VKSRWZCO.js +1 -0
- package/dist/chunk-VL5WBPVV.js +1 -0
- package/dist/chunk-VUWHFLT7.js +22 -0
- package/dist/chunk-WEVKAJMV.js +1 -0
- package/dist/chunk-WHPIYGCY.js +1 -0
- package/dist/chunk-WNESLH23.js +1 -0
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-WSQ5SQBD.js +1 -0
- package/dist/chunk-XY4UJKHE.js +1 -0
- package/dist/chunk-Y2BHO7OO.js +1 -0
- package/dist/chunk-YDOQEFOK.js +1 -0
- package/dist/chunk-YEFMD4DS.js +1 -0
- package/dist/chunk-YQ5QQCRD.js +1 -0
- package/dist/chunk-YQPOFRXU.js +1 -0
- package/dist/chunk-YTPQSO7V.js +801 -0
- package/dist/chunk-ZAU65LBG.js +1 -0
- package/dist/chunk-ZRFCEMYU.js +1 -0
- package/dist/chunk-ZU2B5YT6.js +1 -0
- package/dist/chunk-ZXKKBKGV.js +1 -0
- package/dist/code-display-7346IUCO.js +1 -0
- package/dist/code-editor-UBGTTX2L.js +1 -0
- package/dist/components/ui/accordion.cjs +1 -0
- package/dist/components/ui/accordion.d.cts +9 -0
- package/dist/components/ui/accordion.d.ts +9 -0
- package/dist/components/ui/accordion.js +1 -0
- package/dist/components/ui/alert-dialog.cjs +1 -0
- package/dist/components/ui/alert-dialog.d.cts +23 -0
- package/dist/components/ui/alert-dialog.d.ts +23 -0
- package/dist/components/ui/alert-dialog.js +1 -0
- package/dist/components/ui/alert.cjs +1 -0
- package/dist/components/ui/alert.d.cts +11 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.js +1 -0
- package/dist/components/ui/avatar.cjs +1 -0
- package/dist/components/ui/avatar.d.cts +8 -0
- package/dist/components/ui/avatar.d.ts +8 -0
- package/dist/components/ui/avatar.js +1 -0
- package/dist/components/ui/badge.cjs +1 -0
- package/dist/components/ui/badge.d.cts +13 -0
- package/dist/components/ui/badge.d.ts +13 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/button.cjs +1 -0
- package/dist/components/ui/button.d.cts +15 -0
- package/dist/components/ui/button.d.ts +15 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/card.cjs +1 -0
- package/dist/components/ui/card.d.cts +10 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.js +1 -0
- package/dist/components/ui/checkbox.cjs +1 -0
- package/dist/components/ui/checkbox.d.cts +6 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/command.cjs +1 -0
- package/dist/components/ui/command.d.cts +83 -0
- package/dist/components/ui/command.d.ts +83 -0
- package/dist/components/ui/command.js +1 -0
- package/dist/components/ui/context-menu.cjs +1 -0
- package/dist/components/ui/context-menu.d.cts +30 -0
- package/dist/components/ui/context-menu.d.ts +30 -0
- package/dist/components/ui/context-menu.js +1 -0
- package/dist/components/ui/dialog.cjs +1 -0
- package/dist/components/ui/dialog.d.cts +22 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dialog.js +1 -0
- package/dist/components/ui/dropdown-menu.cjs +1 -0
- package/dist/components/ui/dropdown-menu.d.cts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.js +1 -0
- package/dist/components/ui/hover-card.cjs +1 -0
- package/dist/components/ui/hover-card.d.cts +8 -0
- package/dist/components/ui/hover-card.d.ts +8 -0
- package/dist/components/ui/hover-card.js +1 -0
- package/dist/components/ui/input.cjs +1 -0
- package/dist/components/ui/input.d.cts +5 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/label.cjs +1 -0
- package/dist/components/ui/label.d.cts +8 -0
- package/dist/components/ui/label.d.ts +8 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/loader.cjs +1 -0
- package/dist/components/ui/loader.d.cts +12 -0
- package/dist/components/ui/loader.d.ts +12 -0
- package/dist/components/ui/loader.js +1 -0
- package/dist/components/ui/navigation-menu.cjs +1 -0
- package/dist/components/ui/navigation-menu.d.cts +15 -0
- package/dist/components/ui/navigation-menu.d.ts +15 -0
- package/dist/components/ui/navigation-menu.js +1 -0
- package/dist/components/ui/popover.cjs +1 -0
- package/dist/components/ui/popover.d.cts +9 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/popover.js +1 -0
- package/dist/components/ui/progress.cjs +1 -0
- package/dist/components/ui/progress.d.cts +8 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.js +1 -0
- package/dist/components/ui/scroll-area.cjs +1 -0
- package/dist/components/ui/scroll-area.d.cts +7 -0
- package/dist/components/ui/scroll-area.d.ts +7 -0
- package/dist/components/ui/scroll-area.js +1 -0
- package/dist/components/ui/select.cjs +1 -0
- package/dist/components/ui/select.d.cts +15 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/select.js +1 -0
- package/dist/components/ui/separator.cjs +1 -0
- package/dist/components/ui/separator.d.cts +6 -0
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.js +1 -0
- package/dist/components/ui/sheet.cjs +1 -0
- package/dist/components/ui/sheet.d.cts +29 -0
- package/dist/components/ui/sheet.d.ts +29 -0
- package/dist/components/ui/sheet.js +1 -0
- package/dist/components/ui/skeleton.cjs +1 -0
- package/dist/components/ui/skeleton.d.cts +5 -0
- package/dist/components/ui/skeleton.d.ts +5 -0
- package/dist/components/ui/skeleton.js +1 -0
- package/dist/components/ui/slider.cjs +1 -0
- package/dist/components/ui/slider.d.cts +6 -0
- package/dist/components/ui/slider.d.ts +6 -0
- package/dist/components/ui/slider.js +1 -0
- package/dist/components/ui/switch.cjs +1 -0
- package/dist/components/ui/switch.d.cts +9 -0
- package/dist/components/ui/switch.d.ts +9 -0
- package/dist/components/ui/switch.js +1 -0
- package/dist/components/ui/tabs.cjs +1 -0
- package/dist/components/ui/tabs.d.cts +9 -0
- package/dist/components/ui/tabs.d.ts +9 -0
- package/dist/components/ui/tabs.js +1 -0
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.d.cts +5 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/toggle.cjs +1 -0
- package/dist/components/ui/toggle.d.cts +15 -0
- package/dist/components/ui/toggle.d.ts +15 -0
- package/dist/components/ui/toggle.js +1 -0
- package/dist/components/ui/tooltip.cjs +1 -0
- package/dist/components/ui/tooltip.d.cts +9 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.js +1 -0
- package/dist/config-registry-RSJCAKY5.js +1 -0
- package/dist/continue-editing-in-this-client-QBMOFRLL.js +1 -0
- package/dist/core-BNe4bA6z.d.cts +5455 -0
- package/dist/core-BNe4bA6z.d.ts +5455 -0
- package/dist/css-import-modal-NMFRQGCY.js +13 -0
- package/dist/db/better-sqlite3.cjs +1 -0
- package/dist/db/better-sqlite3.d.cts +16 -0
- package/dist/db/better-sqlite3.d.ts +16 -0
- package/dist/db/better-sqlite3.js +1 -0
- package/dist/db/d1.cjs +1 -0
- package/dist/db/d1.d.cts +17 -0
- package/dist/db/d1.d.ts +17 -0
- package/dist/db/d1.js +1 -0
- package/dist/db/libsql.cjs +1 -0
- package/dist/db/libsql.d.cts +23 -0
- package/dist/db/libsql.d.ts +23 -0
- package/dist/db/libsql.js +1 -0
- package/dist/db/node-pg.cjs +1 -0
- package/dist/db/node-pg.d.cts +21 -0
- package/dist/db/node-pg.d.ts +21 -0
- package/dist/db/node-pg.js +1 -0
- package/dist/db/postgres.cjs +1 -0
- package/dist/db/postgres.d.cts +28 -0
- package/dist/db/postgres.d.ts +28 -0
- package/dist/db/postgres.js +1 -0
- package/dist/delete-page-CGR6VXZC.css +1 -0
- package/dist/delete-page-FQYTEMBN.js +1 -0
- package/dist/digital-asset-manager-PIZMJEMX.js +1 -0
- package/dist/digital-asset-manager-PSTDGMY2.css +1 -0
- package/dist/dispatch-action-3IV56BNY.js +1 -0
- package/dist/duplicate-page-HPPMQRL3.js +1 -0
- package/dist/dynamic-page-selector-LFHJQLYY.js +1 -0
- package/dist/dynamic-page-selector-SXJQAIGL.css +1 -0
- package/dist/edit-url-panel-Q3NJCV55.js +1 -0
- package/dist/get-blocks-styles-SLZ5NDUF.js +1 -0
- package/dist/get-page-styles-Q4FWW5LX.js +1 -0
- package/dist/image-editor-PLXDYVKE.css +1 -0
- package/dist/image-editor-RSEHWRGV.js +1 -0
- package/dist/json-diff-viewer-FQYK2FUX.js +8 -0
- package/dist/lang-panel-57UGEL6B.css +1 -0
- package/dist/lang-panel-HH5LEOF4.js +1 -0
- package/dist/license-overlay-4Q525E53.js +1 -0
- package/dist/log-ai-request-LHPKU2C5.js +1 -0
- package/dist/manage-design-tokens-264H25A2.js +1 -0
- package/dist/manage-design-tokens-modal-OIWIZ53K.js +1 -0
- package/dist/mark-as-template-7TCCEMGC.js +1 -0
- package/dist/nested-path-selector-content-N4XN7QUS.js +1 -0
- package/dist/nextjs/render-client.cjs +1 -0
- package/dist/nextjs/render-client.css +1 -0
- package/dist/nextjs/render-client.d.cts +14 -0
- package/dist/nextjs/render-client.d.ts +14 -0
- package/dist/nextjs/render-client.js +1 -0
- package/dist/nextjs/render.cjs +829 -0
- package/dist/nextjs/render.d.cts +78 -0
- package/dist/nextjs/render.d.ts +78 -0
- package/dist/nextjs/render.js +1 -0
- package/dist/nextjs/server.cjs +807 -0
- package/dist/nextjs/server.d.cts +329 -0
- package/dist/nextjs/server.d.ts +329 -0
- package/dist/nextjs/server.js +1 -0
- package/dist/nextjs.cjs +1 -0
- package/dist/nextjs.d.cts +17 -0
- package/dist/nextjs.d.ts +17 -0
- package/dist/nextjs.js +1 -0
- package/dist/no-language-page-content-NQIROTIL.js +1 -0
- package/dist/no-language-page-dialog-CWG5PI7N.js +1 -0
- package/dist/page-creator-2L6L6EFV.js +1 -0
- package/dist/page-lock-7HMG34UJ.js +1 -0
- package/dist/page-locked-dialog-ACMWVAZX.js +1 -0
- package/dist/page-manager-new-SCZFNGKO.js +1 -0
- package/dist/page-manager-new-VWRASZTI.css +1 -0
- package/dist/page-manager-search-and-filter-7CHPYAPV.js +1 -0
- package/dist/page-manager-sheet-KZZBKQ6M.js +1 -0
- package/dist/page-manager-sheet-U5YEB5CS.css +1 -0
- package/dist/page-revisions-content-DHPEQ4CA.js +1 -0
- package/dist/page-revisions-trigger-XGC4HOTL.js +1 -0
- package/dist/pages-DlMX1Lj2.d.cts +21 -0
- package/dist/pages-Dol4CXrN.d.ts +21 -0
- package/dist/payload/builder.cjs +243 -0
- package/dist/payload/builder.css +1 -0
- package/dist/payload/builder.d.cts +13 -0
- package/dist/payload/builder.d.ts +13 -0
- package/dist/payload/builder.js +1 -0
- package/dist/payload.cjs +807 -0
- package/dist/payload.d.cts +603 -0
- package/dist/payload.d.ts +603 -0
- package/dist/payload.js +1 -0
- package/dist/preview-banner-SDDZGGRW.js +1 -0
- package/dist/publish-pages-content-3AZ45DYH.js +1 -0
- package/dist/registry.cjs +11 -0
- package/dist/registry.d.cts +74 -0
- package/dist/registry.d.ts +74 -0
- package/dist/registry.js +1 -0
- package/dist/relations-DDBTFCMR.js +1 -0
- package/dist/revalidate-G2DEOH4Z.js +1 -0
- package/dist/rte-widget-modal-7RXFEYHK.js +1 -0
- package/dist/save-to-lib-65EGTZE5.js +1 -0
- package/dist/schema-IVNMPI4V.js +1 -0
- package/dist/schema.sqlite-CYBLikNv.d.cts +5852 -0
- package/dist/schema.sqlite-CYBLikNv.d.ts +5852 -0
- package/dist/seo-panel-WQ47FNP4.css +1 -0
- package/dist/seo-panel-Z6OBXHQ4.js +2 -0
- package/dist/server-config-b29G6_aQ.d.cts +116 -0
- package/dist/server-config-oPlt3V1X.d.ts +116 -0
- package/dist/state-RAP56WXS.js +1 -0
- package/dist/take-over-request-EB464ZGU.js +1 -0
- package/dist/translation-warning-modal-EES6I2QV.js +1 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.cts +38 -0
- package/dist/types.d.ts +38 -0
- package/dist/types.js +1 -0
- package/dist/unmark-as-template-6STMTBP5.js +1 -0
- package/dist/unpublish-page-CE3CJK5C.js +1 -0
- package/dist/unpublished-partials-modal-OZBWBCLN.js +1 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.cts +168 -0
- package/dist/utils.d.ts +168 -0
- package/dist/utils.js +1 -0
- package/dist/web-blocks.cjs +1 -0
- package/dist/web-blocks.d.cts +3 -0
- package/dist/web-blocks.d.ts +3 -0
- package/dist/web-blocks.js +1 -0
- package/dist/web-preview-EIWOXGPY.js +1 -0
- package/package.json +322 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { a4 as ChaiTheme, J as ChaiFontByUrl, k as ChaiBlock, S as ChaiPageProps, G as ChaiDesignTokens } from '../actions-DM00SIUk.cjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { C as ChaiFullPage } from '../pages-DlMX1Lj2.cjs';
|
|
4
|
+
import { a as ChaiBlockComponentProps, f as ChaiStyles } from '../blocks-CP-Pngaz.cjs';
|
|
5
|
+
import 'ai';
|
|
6
|
+
import '@rjsf/utils';
|
|
7
|
+
import 'react';
|
|
8
|
+
|
|
9
|
+
declare const getChaiThemeCssVariables: ({ theme }: {
|
|
10
|
+
theme: ChaiTheme;
|
|
11
|
+
}) => string;
|
|
12
|
+
declare const getThemeFontsLinkMarkup: (fonts: ChaiFontByUrl[]) => string;
|
|
13
|
+
declare const getThemeFontsCSSImport: (fonts: ChaiFontByUrl[]) => string;
|
|
14
|
+
|
|
15
|
+
declare function getMergedPartialBlocks(blocks: ChaiBlock[], partials: Record<string, ChaiBlock[]>): ChaiBlock[];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get the tailwind css for the blocks
|
|
19
|
+
* @param blocks - The blocks to get the tailwind css for
|
|
20
|
+
* @param includeBaseStyles - Whether to include the base styles
|
|
21
|
+
* @returns The tailwind css for the blocks
|
|
22
|
+
*/
|
|
23
|
+
declare const getStylesForBlocks: (blocks: ChaiBlock[], includeBaseStyles?: boolean) => Promise<string>;
|
|
24
|
+
|
|
25
|
+
declare const ChaiPageCSS: (props: {
|
|
26
|
+
page: ChaiFullPage;
|
|
27
|
+
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
28
|
+
declare const ChaiPageJSONLD: (props: {
|
|
29
|
+
page: ChaiFullPage;
|
|
30
|
+
pageData?: Record<string, any>;
|
|
31
|
+
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
32
|
+
|
|
33
|
+
type ButtonBlockProps = {
|
|
34
|
+
styles: ChaiStyles;
|
|
35
|
+
content: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
iconSize: number;
|
|
38
|
+
iconPos: "order-first" | "order-last";
|
|
39
|
+
link: {
|
|
40
|
+
type: "page" | "pageType" | "url" | "email" | "telephone" | "element";
|
|
41
|
+
target: "_self" | "_blank";
|
|
42
|
+
href: string;
|
|
43
|
+
};
|
|
44
|
+
prefetchLink?: boolean;
|
|
45
|
+
};
|
|
46
|
+
type ImageBlockProps = {
|
|
47
|
+
height: string;
|
|
48
|
+
width: string;
|
|
49
|
+
alt: string;
|
|
50
|
+
styles: ChaiStyles;
|
|
51
|
+
lazyLoading: boolean;
|
|
52
|
+
image: string;
|
|
53
|
+
};
|
|
54
|
+
type LinkBlockProps = {
|
|
55
|
+
styles: ChaiStyles;
|
|
56
|
+
content: string;
|
|
57
|
+
link: {
|
|
58
|
+
type: "page" | "pageType" | "url" | "email" | "telephone" | "element";
|
|
59
|
+
target: "_self" | "_blank";
|
|
60
|
+
href: string;
|
|
61
|
+
};
|
|
62
|
+
prefetchLink?: boolean;
|
|
63
|
+
};
|
|
64
|
+
type ComponentType<T> = React.ComponentType<T> | Promise<React.ComponentType<T>>;
|
|
65
|
+
declare const NextJSRenderChaiBlocks: ({ pageData, settings, page, pageProps, linkComponent, imageComponent, buttonComponent, designTokens, withRenderPhase, dataProviders, }: {
|
|
66
|
+
pageData: Record<string, any>;
|
|
67
|
+
settings: Record<string, any>;
|
|
68
|
+
page: ChaiFullPage;
|
|
69
|
+
pageProps: ChaiPageProps;
|
|
70
|
+
designTokens?: ChaiDesignTokens;
|
|
71
|
+
linkComponent?: ComponentType<ChaiBlockComponentProps<LinkBlockProps>>;
|
|
72
|
+
imageComponent?: ComponentType<ChaiBlockComponentProps<ImageBlockProps>>;
|
|
73
|
+
buttonComponent?: ComponentType<ChaiBlockComponentProps<ButtonBlockProps>>;
|
|
74
|
+
withRenderPhase?: <T>(label: string, fn: () => T | Promise<T>, detail?: string) => Promise<T>;
|
|
75
|
+
dataProviders?: Record<string, Promise<Record<string, any>>>;
|
|
76
|
+
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
77
|
+
|
|
78
|
+
export { ChaiPageCSS, ChaiPageJSONLD, NextJSRenderChaiBlocks as RenderChaiBlocks, getChaiThemeCssVariables, getMergedPartialBlocks, getStylesForBlocks, getThemeFontsCSSImport, getThemeFontsLinkMarkup };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { a4 as ChaiTheme, J as ChaiFontByUrl, k as ChaiBlock, S as ChaiPageProps, G as ChaiDesignTokens } from '../actions-DM00SIUk.js';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { C as ChaiFullPage } from '../pages-Dol4CXrN.js';
|
|
4
|
+
import { a as ChaiBlockComponentProps, f as ChaiStyles } from '../blocks-CMvgDlxw.js';
|
|
5
|
+
import 'ai';
|
|
6
|
+
import '@rjsf/utils';
|
|
7
|
+
import 'react';
|
|
8
|
+
|
|
9
|
+
declare const getChaiThemeCssVariables: ({ theme }: {
|
|
10
|
+
theme: ChaiTheme;
|
|
11
|
+
}) => string;
|
|
12
|
+
declare const getThemeFontsLinkMarkup: (fonts: ChaiFontByUrl[]) => string;
|
|
13
|
+
declare const getThemeFontsCSSImport: (fonts: ChaiFontByUrl[]) => string;
|
|
14
|
+
|
|
15
|
+
declare function getMergedPartialBlocks(blocks: ChaiBlock[], partials: Record<string, ChaiBlock[]>): ChaiBlock[];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get the tailwind css for the blocks
|
|
19
|
+
* @param blocks - The blocks to get the tailwind css for
|
|
20
|
+
* @param includeBaseStyles - Whether to include the base styles
|
|
21
|
+
* @returns The tailwind css for the blocks
|
|
22
|
+
*/
|
|
23
|
+
declare const getStylesForBlocks: (blocks: ChaiBlock[], includeBaseStyles?: boolean) => Promise<string>;
|
|
24
|
+
|
|
25
|
+
declare const ChaiPageCSS: (props: {
|
|
26
|
+
page: ChaiFullPage;
|
|
27
|
+
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
28
|
+
declare const ChaiPageJSONLD: (props: {
|
|
29
|
+
page: ChaiFullPage;
|
|
30
|
+
pageData?: Record<string, any>;
|
|
31
|
+
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
32
|
+
|
|
33
|
+
type ButtonBlockProps = {
|
|
34
|
+
styles: ChaiStyles;
|
|
35
|
+
content: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
iconSize: number;
|
|
38
|
+
iconPos: "order-first" | "order-last";
|
|
39
|
+
link: {
|
|
40
|
+
type: "page" | "pageType" | "url" | "email" | "telephone" | "element";
|
|
41
|
+
target: "_self" | "_blank";
|
|
42
|
+
href: string;
|
|
43
|
+
};
|
|
44
|
+
prefetchLink?: boolean;
|
|
45
|
+
};
|
|
46
|
+
type ImageBlockProps = {
|
|
47
|
+
height: string;
|
|
48
|
+
width: string;
|
|
49
|
+
alt: string;
|
|
50
|
+
styles: ChaiStyles;
|
|
51
|
+
lazyLoading: boolean;
|
|
52
|
+
image: string;
|
|
53
|
+
};
|
|
54
|
+
type LinkBlockProps = {
|
|
55
|
+
styles: ChaiStyles;
|
|
56
|
+
content: string;
|
|
57
|
+
link: {
|
|
58
|
+
type: "page" | "pageType" | "url" | "email" | "telephone" | "element";
|
|
59
|
+
target: "_self" | "_blank";
|
|
60
|
+
href: string;
|
|
61
|
+
};
|
|
62
|
+
prefetchLink?: boolean;
|
|
63
|
+
};
|
|
64
|
+
type ComponentType<T> = React.ComponentType<T> | Promise<React.ComponentType<T>>;
|
|
65
|
+
declare const NextJSRenderChaiBlocks: ({ pageData, settings, page, pageProps, linkComponent, imageComponent, buttonComponent, designTokens, withRenderPhase, dataProviders, }: {
|
|
66
|
+
pageData: Record<string, any>;
|
|
67
|
+
settings: Record<string, any>;
|
|
68
|
+
page: ChaiFullPage;
|
|
69
|
+
pageProps: ChaiPageProps;
|
|
70
|
+
designTokens?: ChaiDesignTokens;
|
|
71
|
+
linkComponent?: ComponentType<ChaiBlockComponentProps<LinkBlockProps>>;
|
|
72
|
+
imageComponent?: ComponentType<ChaiBlockComponentProps<ImageBlockProps>>;
|
|
73
|
+
buttonComponent?: ComponentType<ChaiBlockComponentProps<ButtonBlockProps>>;
|
|
74
|
+
withRenderPhase?: <T>(label: string, fn: () => T | Promise<T>, detail?: string) => Promise<T>;
|
|
75
|
+
dataProviders?: Record<string, Promise<Record<string, any>>>;
|
|
76
|
+
}) => Promise<react_jsx_runtime.JSX.Element>;
|
|
77
|
+
|
|
78
|
+
export { ChaiPageCSS, ChaiPageJSONLD, NextJSRenderChaiBlocks as RenderChaiBlocks, getChaiThemeCssVariables, getMergedPartialBlocks, getStylesForBlocks, getThemeFontsCSSImport, getThemeFontsLinkMarkup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as Z}from"../chunk-TGJQC6VC.js";import{j as ae}from"../chunk-UIDBBTCZ.js";import"../chunk-4PQNBY3V.js";import"../chunk-IB2C3TWH.js";import"../chunk-MDMGXS5B.js";import{x as oe}from"../chunk-YTPQSO7V.js";import{a as re}from"../chunk-JYBTQ3YX.js";import"../chunk-346H4FEX.js";import"../chunk-CFNOB42V.js";import"../chunk-DZ72OHTD.js";import"../chunk-OSGXFZTA.js";import"../chunk-OQZ4EPOM.js";import"../chunk-ESCX7KEH.js";import"../chunk-CRJENCPR.js";import"../chunk-6M7V7BOM.js";import{a as ee,b as B,e as te}from"../chunk-K6RHR4HT.js";import{e as x,f as Se,h as _e,k as q,l as G,m as U,n as Q,p as X,q as Y,r as v}from"../chunk-VUWHFLT7.js";import"../chunk-OR7KKUYT.js";import"../chunk-T56KQBE2.js";import{a as W}from"../chunk-YDOQEFOK.js";import"../chunk-ITX7QWN6.js";import"../chunk-LWYDGDPW.js";import"../chunk-VKSRWZCO.js";import{f as V,j,m as P,o as H}from"../chunk-3UEPBBE4.js";import"../chunk-WOT6VMZA.js";import{cloneDeep as Te,flattenDeep as yt,get as w,isEmpty as Re,last as kt}from"lodash-es";function Le(t,e){let o=t.filter(n=>n._type==="GlobalBlock"||n._type==="PartialBlock");for(let n=0;n<o.length;n++){let a=o[n],s=w(a,"partialBlockId",w(a,"globalBlock",""));if(s==="")continue;let l=Te(w(e,s,[]));a._parent&&(l==null?void 0:l.length)>0&&(l=l.map(i=>(Re(i._parent)&&(i._parent=a._parent),i)));let r=t.indexOf(a);t.splice(r,1,...l)}return t}import xe from"@tailwindcss/container-queries";import ve from"@tailwindcss/forms";import we from"@tailwindcss/typography";async function De(t,e=[],o=!1){return re({markupStrings:t,safelist:e,includeBaseStyles:o,config:{darkMode:"class",theme:{extend:{...te(),keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}},plugins:[ve,we,xe,ee],corePlugins:{preflight:o}}})}var Ie=(t,e)=>{let o=JSON.stringify(t).replace(/#styles:([^"]*)/g,(n,a)=>`#styles:${a.replace(/^,/g," ")}`.replace(/#styles:/g,""));return De([o],[],e)},Fe=async(t,e=!1)=>await Ie(t,e);import{get as b}from"lodash-es";import{jsx as $e}from"react/jsx-runtime";var ne=t=>{try{let e=JSON.parse(t);return Object.keys(e).length>0}catch(e){return!1}},se=async({jsonLD:t,pageData:e={}})=>{if(!t||!ne(t))return null;let o={};try{o=JSON.parse(t)}catch(a){return null}let n=U(o,e);return ne(n)?$e("script",{type:"application/ld+json",children:n},"jsonld"):null};import{Fragment as Ke,jsx as f,jsxs as Oe}from"react/jsx-runtime";var Ne=async t=>{let{page:e}=t,o=await ae(oe()),n=o.withRenderPhase,a=await n("ChaiPageCSS.getSiteSettings",()=>o.getSiteSettings()),s=b(a,"theme",{}),l={...W,...b(a,"designTokens",{})},r=await n("ChaiPageCSS.themeVariables",async()=>x({theme:s})),i=await n("ChaiPageCSS.applyDesignTokens",async()=>{var p;return B((p=e.blocks)!=null?p:[],l)}),g=e?await n("ChaiPageCSS.getPageStyles",()=>o.getPageStyles(e.id,i)):null,c=b(s,"fontFamily.body","Arial"),d=b(s,"fontFamily.heading","Arial"),{fontStyles:m,preloads:y}=await n("ChaiPageCSS.getFontStyles",()=>H(d,c));return Oe(Ke,{children:[y.length>0&&y.map(p=>f("link",{rel:"preload",href:p,as:"font",type:"font/woff2",crossOrigin:"anonymous"},p)),f("style",{id:"theme-variables",dangerouslySetInnerHTML:{__html:r}}),g?f("style",{id:"page-styles",dangerouslySetInnerHTML:{__html:g}}):null,m?f("style",{id:"fonts-styles",dangerouslySetInnerHTML:{__html:m}}):null]})},Ee=async t=>{var n;let{page:e,pageData:o={}}=t;return f(se,{jsonLD:(n=e==null?void 0:e.seo)==null?void 0:n.jsonLD,pageData:o})};import{isEmpty as pt}from"lodash-es";import{find as $,get as me,isEmpty as T}from"lodash-es";import{filter as ge,get as de,has as qe,isArray as Ge,isEmpty as Ue,map as Qe,uniqBy as Xe}from"lodash-es";import{get as C,has as Ae,isArray as ie,isFunction as Ve,isNull as je,isString as He}from"lodash-es";import{createElement as I,Suspense as le}from"react";import{has as Me,isFunction as ze,omit as Je}from"lodash-es";async function D(t){let e={pageProps:t.pageProps,block:t.block,lang:t.lang,draft:t.draft,inBuilder:!1},o=await t.dataProvider(e);return Me(o,"$metadata")&&ze(t.dataProviderMetadataCallback)&&t.dataProviderMetadataCallback(t.block,o.$metadata),t.children({...Je(o,"$metadata")})}import{jsx as S}from"react/jsx-runtime";var We=()=>S("div",{}),ce=t=>{var M;let{block:e,lang:o,fallbackLang:n,children:a,externalData:s,blocks:l,draft:r,pageProps:i,dataProviderMetadataCallback:g}=t,c=V(e._type),d=C(c,"component",null),m=C(t.repeaterData,"index",-1),y=C(t.repeaterData,"dataKey",""),p=o===n?"":o!=null?o:"",h=G(Q(e,p,c),s!=null?s:{},{index:m,key:y}),u=X(e,!1),K=pe(l,e._id,Y(e._type)),R=Ae(c,"dataProvider")&&Ve(c.dataProvider),L={...h,...u,...K},O={blockProps:{},inBuilder:!1,lang:o||n||"en",draft:r!=null?r:!1,pageData:s!=null?s:{},...L},k=C(L,"_show",!0);if(He(k)&&k.startsWith("{{")&&(k=q(k,s)!=="false"),je(d)||!k)return null;if(R){let z=C(c,"suspenseFallback",We),J=t.dataProviders?t.dataProviders[e._id]:void 0;return S(le,{fallback:I(z),children:S(D,{lang:o!=null?o:"",pageProps:i,block:L,dataProvider:J?()=>J:c.dataProvider,...g?{dataProviderMetadataCallback:g}:{},draft:r!=null?r:!1,children:be=>{var A;return I(d,{...O,...be},a({_id:e._id,_type:e._type,...ie(h.repeaterItems)?{repeaterItems:v(h.repeaterItems,e),$repeaterItemsKey:h.$repeaterItemsKey,repeaterTotalItems:(A=h.repeaterTotalItems)!=null?A:-1}:{}}))}})})}return S(le,{children:I(d,{...O},a({_id:e._id,_type:e._type,...ie(h.repeaterItems)?{repeaterItems:v(h.repeaterItems,e),$repeaterItemsKey:h.$repeaterItemsKey,repeaterTotalItems:(M=h.repeaterTotalItems)!=null?M:-1}:{}}))})};import{createElement as F}from"react";var _=t=>{let{blocks:e,parent:o,repeaterData:n,type:a}=t,s=Xe(ge(e,r=>qe(r,"_id")&&(Ue(o)?!r._parent:r._parent===o)),"_id"),l=r=>ge(e,i=>i._parent===r).length>0;return(a==="Heading"||a==="Paragraph"||a==="Link"||a==="Span")&&(s=Z(s)),Qe(s,(r,i)=>r?F(ce,{...t,key:r._id?`${r._id}-${i}`:`block-${i}`,block:r},({_id:g,_type:c,repeaterItems:d,$repeaterItemsKey:m})=>c==="Repeater"?Ge(d)&&d.map((y,p)=>F(_,{...t,parent:r._id,key:`${de(r,"_parent","root")}-${r._id}-${i}-${p}`,repeaterData:{index:p,dataKey:m}})):l(g)?F(_,{...t,parent:r._id,key:`${de(r,"_parent","root")}-${r._id}-${i}`,repeaterData:n,type:r._type}):null):null)};import{jsx as Ye}from"react/jsx-runtime";var pe=(t,e,o)=>T(o)?{}:Object.entries(o).reduce((n,[a,s])=>{let l=[],r=$(t,{_id:e});for(;r;)l.push(r),r=$(t,{_id:r._parent});let i=$(l,{_type:s.block});return i&&(n[a]=me(i,me(s,"prop"),null)),n},{});function he(t){var a,s;if(T(t.lang)&&!T(t.fallbackLang))throw new Error("lang prop is required when fallbackLang is provided");if(T(t.blocks))return null;let e=(a=t.lang)!=null?a:"en",o=(s=t.fallbackLang)!=null?s:e,n=j(t.blocks);return Ye(_,{...t,blocks:n,lang:e,fallbackLang:o})}import{get as ye,isEmpty as Ze}from"lodash-es";import et from"next/link";import*as ke from"react";import{Fragment as ot,jsx as N,jsxs as rt}from"react/jsx-runtime";var tt=t=>t.replace(/[^\d]/g,""),fe=t=>{let{blockProps:e,iconSize:o,icon:n,content:a,styles:s,children:l,iconPos:r,link:i,prefetchLink:g}=t,c=n,d=l||rt(ot,{children:[a&&N("span",{children:a}),c&&N("div",{style:{width:o+"px"},className:r+" "+(a?r==="order-first"?"mr-2":"ml-2":"")||"",dangerouslySetInnerHTML:{__html:c}})]}),m=ke.createElement("button",{...e,...s,type:"button","aria-label":a},d),y=ye(i,"href");if(!Ze(y)){let p=(i==null?void 0:i.type)==="telephone"?`tel:${tt(y)}`:y;return N(et,{"aria-label":a,href:p||"/",target:ye(i,"target","_self"),...g?{prefetch:!0}:{},children:m})}return m};import{first as at,isArray as nt}from"lodash-es";import st from"next/image";import*as E from"react";var Ce=t=>{var g;let{image:e,styles:o,alt:n,height:a,width:s,lazyLoading:l}=t,r=!s||!a||isNaN(parseInt(s))||isNaN(parseInt(a)),i=E.createElement(st,{...o,src:nt(e)?(g=at(e))==null?void 0:g.trimEnd():e==null?void 0:e.trimEnd(),alt:n||"",priority:!l,fill:r,height:r?void 0:parseInt(a),width:r?void 0:parseInt(s),style:r?{objectFit:"cover"}:void 0,unoptimized:!0});return r?E.createElement("div",{className:"relative flex w-full h-full"},i):i};import ue from"next/link";import*as Pe from"react";import{jsx as ct}from"react/jsx-runtime";var lt=t=>t.replace(/[^\d]/g,""),Be=t=>{let{link:e,styles:o,children:n,content:a,prefetchLink:s}=t,l=(e==null?void 0:e.type)==="telephone"?`tel:${lt(e==null?void 0:e.href)}`:e==null?void 0:e.href;return n?ct(ue,{href:l||"#/",target:e==null?void 0:e.target,"aria-label":a,...o,...s?{prefetch:!0}:{},children:n}):Pe.createElement(ue,{...o,href:l,target:(e==null?void 0:e.target)||"_self","aria-label":a,...s?{prefetch:!0}:{}},a)};import{jsx as dt}from"react/jsx-runtime";var gt=async({pageData:t,settings:e,page:o,pageProps:n,linkComponent:a=Be,imageComponent:s=Ce,buttonComponent:l=fe,designTokens:r={},withRenderPhase:i,dataProviders:g})=>{var p,h,u;let c=i!=null?i:(async(K,R)=>R());await c("RenderChaiBlocks.registerComponents",async()=>{P("Link",await a),P("Image",await s),P("Button",await l)});let d=(p=e==null?void 0:e.designTokens)!=null?p:r,m=(u=(h=o.blocks)==null?void 0:h.length)!=null?u:0,y=await c("RenderChaiBlocks.applyDesignTokens",async()=>pt(d)?o.blocks:B(o.blocks,d),`blocks=${m}`);return c("RenderChaiBlocks.renderSDK",async()=>dt(he,{externalData:t,blocks:y,fallbackLang:e==null?void 0:e.fallbackLang,lang:o.lang,pageProps:n,dataProviders:g}),`blocks=${m}`)};export{Ne as ChaiPageCSS,Ee as ChaiPageJSONLD,gt as RenderChaiBlocks,x as getChaiThemeCssVariables,Le as getMergedPartialBlocks,Fe as getStylesForBlocks,_e as getThemeFontsCSSImport,Se as getThemeFontsLinkMarkup};
|