@upstart.gg/sdk 0.0.135 → 0.0.137
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/dist/shared/ai/schemas.d.ts +11 -2
- package/dist/shared/ai/schemas.d.ts.map +1 -1
- package/dist/shared/ai/schemas.js +38 -8
- package/dist/shared/ai/schemas.js.map +1 -1
- package/dist/shared/ai/types.d.ts +93 -81
- package/dist/shared/ai/types.d.ts.map +1 -1
- package/dist/shared/ajv.js +33 -32
- package/dist/shared/ajv.js.map +1 -1
- package/dist/shared/attributes.d.ts +86 -86
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +22 -25
- package/dist/shared/brick-manifest.d.ts +8 -5
- package/dist/shared/brick-manifest.d.ts.map +1 -1
- package/dist/shared/brick-manifest.js +3 -18
- package/dist/shared/bricks/manifests/_types.d.ts +9 -0
- package/dist/shared/bricks/manifests/_types.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/_types.js +3 -0
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js +13 -20
- package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +44 -43
- package/dist/shared/bricks/manifests/all-props.d.ts +1501 -0
- package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/all-props.js +243 -0
- package/dist/shared/bricks/manifests/all-props.js.map +1 -0
- package/dist/shared/bricks/manifests/box.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/box.manifest.js +16 -20
- package/dist/shared/bricks/manifests/button.manifest.d.ts +5 -12
- package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +13 -20
- package/dist/shared/bricks/manifests/card.manifest.d.ts +10 -9
- package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +18 -20
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +15 -20
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +5 -9
- package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +13 -20
- package/dist/shared/bricks/manifests/form.manifest.d.ts +5 -9
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +13 -20
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +13 -20
- package/dist/shared/bricks/manifests/html.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/html.manifest.js +8 -20
- package/dist/shared/bricks/manifests/icon.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +13 -20
- package/dist/shared/bricks/manifests/image.manifest.d.ts +3 -2
- package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +16 -20
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +15 -20
- package/dist/shared/bricks/manifests/map.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +11 -20
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +7 -11
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +15 -20
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +13 -20
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +14 -20
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.js +8 -20
- package/dist/shared/bricks/manifests/table.manifest.d.ts +6 -10
- package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/table.manifest.js +15 -20
- package/dist/shared/bricks/manifests/tabs.manifest.d.ts +6 -10
- package/dist/shared/bricks/manifests/tabs.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/tabs.manifest.js +15 -20
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +18 -20
- package/dist/shared/bricks/manifests/text.manifest.d.ts +4 -12
- package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +13 -20
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts +9 -13
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +15 -20
- package/dist/shared/bricks/manifests/video.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +11 -20
- package/dist/shared/bricks/props/align.d.ts +0 -3
- package/dist/shared/bricks/props/align.d.ts.map +1 -1
- package/dist/shared/bricks/props/align.js +4 -11
- package/dist/shared/bricks/props/background.d.ts +2 -8
- package/dist/shared/bricks/props/background.d.ts.map +1 -1
- package/dist/shared/bricks/props/background.js +4 -9
- package/dist/shared/bricks/props/border.d.ts +0 -7
- package/dist/shared/bricks/props/border.d.ts.map +1 -1
- package/dist/shared/bricks/props/border.js +5 -10
- package/dist/shared/bricks/props/color-preset.d.ts +316 -6
- package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
- package/dist/shared/bricks/props/color-preset.js +2 -5
- package/dist/shared/bricks/props/color.d.ts +3 -5
- package/dist/shared/bricks/props/color.d.ts.map +1 -1
- package/dist/shared/bricks/props/color.js +3 -8
- package/dist/shared/bricks/props/common.d.ts.map +1 -1
- package/dist/shared/bricks/props/common.js +4 -5
- package/dist/shared/bricks/props/css-length.d.ts +0 -1
- package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
- package/dist/shared/bricks/props/css-length.js +1 -4
- package/dist/shared/bricks/props/datasource.d.ts +3 -3
- package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
- package/dist/shared/bricks/props/datasource.js +74 -76
- package/dist/shared/bricks/props/datasource.js.map +1 -1
- package/dist/shared/bricks/props/date.js +21 -4
- package/dist/shared/bricks/props/date.js.map +1 -1
- package/dist/shared/bricks/props/direction.d.ts +1 -2
- package/dist/shared/bricks/props/direction.d.ts.map +1 -1
- package/dist/shared/bricks/props/direction.js +4 -7
- package/dist/shared/bricks/props/dynamic.d.ts +5 -67
- package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
- package/dist/shared/bricks/props/dynamic.js +6 -24
- package/dist/shared/bricks/props/effects.d.ts +1 -3
- package/dist/shared/bricks/props/effects.d.ts.map +1 -1
- package/dist/shared/bricks/props/effects.js +4 -9
- package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
- package/dist/shared/bricks/props/geolocation.js +3 -6
- package/dist/shared/bricks/props/geolocation.js.map +1 -1
- package/dist/shared/bricks/props/helpers.js +5 -6
- package/dist/shared/bricks/props/image.d.ts +2 -8
- package/dist/shared/bricks/props/image.d.ts.map +1 -1
- package/dist/shared/bricks/props/image.js +4 -7
- package/dist/shared/bricks/props/string.d.ts +2 -5
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +3 -10
- package/dist/shared/bricks/props/tags.d.ts +0 -1
- package/dist/shared/bricks/props/tags.d.ts.map +1 -1
- package/dist/shared/bricks/props/tags.js +3 -6
- package/dist/shared/bricks/props/text.d.ts +0 -3
- package/dist/shared/bricks/props/text.d.ts.map +1 -1
- package/dist/shared/bricks/props/text.js +4 -11
- package/dist/shared/bricks/props/types.d.ts +2 -2
- package/dist/shared/bricks/props/types.d.ts.map +1 -1
- package/dist/shared/bricks.d.ts +64 -152
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +49 -52
- package/dist/shared/chunk-2O5HVPID.js +41 -0
- package/dist/shared/chunk-2O5HVPID.js.map +1 -0
- package/dist/shared/{chunk-F22LDHEO.js → chunk-2U5U3CCJ.js} +3 -18
- package/dist/shared/chunk-2U5U3CCJ.js.map +1 -0
- package/dist/shared/{chunk-LXAO3JA6.js → chunk-4KY7OZWD.js} +35 -35
- package/dist/shared/chunk-4KY7OZWD.js.map +1 -0
- package/dist/shared/{chunk-TNMNMYOB.js → chunk-5RCC2STG.js} +2 -13
- package/dist/shared/chunk-5RCC2STG.js.map +1 -0
- package/dist/shared/{chunk-V3UA3LRK.js → chunk-6AE7UD73.js} +56 -37
- package/dist/shared/chunk-6AE7UD73.js.map +1 -0
- package/dist/shared/chunk-7U5WPHXB.js +346 -0
- package/dist/shared/chunk-7U5WPHXB.js.map +1 -0
- package/dist/shared/{chunk-Q4NPPLEU.js → chunk-BHARJBEK.js} +2 -9
- package/dist/shared/chunk-BHARJBEK.js.map +1 -0
- package/dist/shared/chunk-BZTWZC77.js +530 -0
- package/dist/shared/chunk-BZTWZC77.js.map +1 -0
- package/dist/shared/{chunk-QSND5IWT.js → chunk-DCM4732T.js} +24 -43
- package/dist/shared/chunk-DCM4732T.js.map +1 -0
- package/dist/shared/{chunk-W6MRYRGJ.js → chunk-DRQKKPTX.js} +6 -20
- package/dist/shared/chunk-DRQKKPTX.js.map +1 -0
- package/dist/shared/{chunk-CSF2WQX2.js → chunk-EID5HPF3.js} +15 -12
- package/dist/shared/chunk-EID5HPF3.js.map +1 -0
- package/dist/shared/chunk-EMF5TCPX.js +389 -0
- package/dist/shared/chunk-EMF5TCPX.js.map +1 -0
- package/dist/shared/chunk-FD7YYFRI.js +225 -0
- package/dist/shared/chunk-FD7YYFRI.js.map +1 -0
- package/dist/shared/{chunk-MLZT7MRQ.js → chunk-FHA4DFIM.js} +26 -27
- package/dist/shared/chunk-FHA4DFIM.js.map +1 -0
- package/dist/shared/{chunk-GRMY35BU.js → chunk-FUUSAMN3.js} +165 -40
- package/dist/shared/chunk-FUUSAMN3.js.map +1 -0
- package/dist/shared/chunk-GDYCCB3B.js +22 -0
- package/dist/shared/chunk-GDYCCB3B.js.map +1 -0
- package/dist/shared/chunk-GLV6QIIM.js +41 -0
- package/dist/shared/chunk-GLV6QIIM.js.map +1 -0
- package/dist/shared/chunk-H6TMBELF.js +374 -0
- package/dist/shared/chunk-H6TMBELF.js.map +1 -0
- package/dist/shared/{chunk-BMWRR4DI.js → chunk-HUWMIXNN.js} +26 -28
- package/dist/shared/chunk-HUWMIXNN.js.map +1 -0
- package/dist/shared/chunk-HY7JOP3J.js +150 -0
- package/dist/shared/chunk-HY7JOP3J.js.map +1 -0
- package/dist/shared/{chunk-TFGGYU6Y.js → chunk-IEMCCHM4.js} +7 -12
- package/dist/shared/chunk-IEMCCHM4.js.map +1 -0
- package/dist/shared/{chunk-TB3X4LRQ.js → chunk-J45LSQT6.js} +2 -2
- package/dist/shared/chunk-J45LSQT6.js.map +1 -0
- package/dist/shared/{chunk-WGDUJSSS.js → chunk-JF52BBFD.js} +27 -28
- package/dist/shared/chunk-JF52BBFD.js.map +1 -0
- package/dist/shared/{chunk-GPCI2N2A.js → chunk-JLDAS3VE.js} +136 -33
- package/dist/shared/chunk-JLDAS3VE.js.map +1 -0
- package/dist/shared/{chunk-SE6O65HC.js → chunk-JSDKK5QN.js} +10 -23
- package/dist/shared/chunk-JSDKK5QN.js.map +1 -0
- package/dist/shared/chunk-JW7MQAU4.js +354 -0
- package/dist/shared/chunk-JW7MQAU4.js.map +1 -0
- package/dist/shared/{chunk-RV7AYVFV.js → chunk-KKWT3OXF.js} +4 -19
- package/dist/shared/chunk-KKWT3OXF.js.map +1 -0
- package/dist/shared/{chunk-TEO6TJOM.js → chunk-KQH6V22E.js} +36 -35
- package/dist/shared/{chunk-TEO6TJOM.js.map → chunk-KQH6V22E.js.map} +1 -1
- package/dist/shared/{chunk-3KLRW4I2.js → chunk-LGDDJJHK.js} +212 -156
- package/dist/shared/chunk-LGDDJJHK.js.map +1 -0
- package/dist/shared/{chunk-QL3T5HJQ.js → chunk-LGGPCCCY.js} +3 -3
- package/dist/shared/chunk-LGGPCCCY.js.map +1 -0
- package/dist/shared/{chunk-2HO4FHLM.js → chunk-LPAQ47C6.js} +137 -171
- package/dist/shared/chunk-LPAQ47C6.js.map +1 -0
- package/dist/shared/chunk-MO6CRLQA.js +73 -0
- package/dist/shared/chunk-MO6CRLQA.js.map +1 -0
- package/dist/shared/{chunk-SHUGHJ7V.js → chunk-MYOLWTB2.js} +29 -32
- package/dist/shared/chunk-MYOLWTB2.js.map +1 -0
- package/dist/shared/{chunk-Z2NTDFB4.js → chunk-O24RDXZS.js} +34 -34
- package/dist/shared/chunk-O24RDXZS.js.map +1 -0
- package/dist/shared/{chunk-BPBKHEQ5.js → chunk-OJ6KL7FU.js} +1 -8
- package/dist/shared/chunk-OJ6KL7FU.js.map +1 -0
- package/dist/shared/{chunk-GCQURRVB.js → chunk-PF75LW33.js} +24 -27
- package/dist/shared/chunk-PF75LW33.js.map +1 -0
- package/dist/shared/{chunk-EWSPTRDL.js → chunk-QEJGPYTB.js} +132 -48
- package/dist/shared/chunk-QEJGPYTB.js.map +1 -0
- package/dist/shared/{chunk-P3RH5URN.js → chunk-SK2O7GFC.js} +17 -18
- package/dist/shared/chunk-SK2O7GFC.js.map +1 -0
- package/dist/shared/{chunk-UQF52PWK.js → chunk-SQXZNGQF.js} +8 -23
- package/dist/shared/chunk-SQXZNGQF.js.map +1 -0
- package/dist/shared/{chunk-NTLAKMMQ.js → chunk-SRYBJ6NQ.js} +6 -17
- package/dist/shared/chunk-SRYBJ6NQ.js.map +1 -0
- package/dist/shared/{chunk-O5PLB3YB.js → chunk-T6C3NG2L.js} +68 -59
- package/dist/shared/chunk-T6C3NG2L.js.map +1 -0
- package/dist/shared/{chunk-U7TVEPKA.js → chunk-TBT2PTGB.js} +41 -33
- package/dist/shared/chunk-TBT2PTGB.js.map +1 -0
- package/dist/shared/{chunk-CKFRSHR2.js → chunk-U4KZUX37.js} +18 -19
- package/dist/shared/chunk-U4KZUX37.js.map +1 -0
- package/dist/shared/{chunk-4WI23M7W.js → chunk-VSLRTXLF.js} +11 -4
- package/dist/shared/chunk-VSLRTXLF.js.map +1 -0
- package/dist/shared/{chunk-BHC2A43S.js → chunk-VTCHJT4O.js} +3 -3
- package/dist/shared/{chunk-BHC2A43S.js.map → chunk-VTCHJT4O.js.map} +1 -1
- package/dist/shared/{chunk-DRTGM2UJ.js → chunk-W2RFDII5.js} +3 -3
- package/dist/shared/chunk-W2RFDII5.js.map +1 -0
- package/dist/shared/{chunk-Y74LZNND.js → chunk-WPZV3LYL.js} +4 -10
- package/dist/shared/chunk-WPZV3LYL.js.map +1 -0
- package/dist/shared/chunk-XFZQGRRL.js +101 -0
- package/dist/shared/chunk-XFZQGRRL.js.map +1 -0
- package/dist/shared/{chunk-QQQ3FYPG.js → chunk-XK2CERPB.js} +147 -31
- package/dist/shared/chunk-XK2CERPB.js.map +1 -0
- package/dist/shared/chunk-XNRSL6FL.js +78 -0
- package/dist/shared/chunk-XNRSL6FL.js.map +1 -0
- package/dist/shared/{chunk-2RK3CPYJ.js → chunk-XXPSM6UA.js} +9 -12
- package/dist/shared/chunk-XXPSM6UA.js.map +1 -0
- package/dist/shared/{chunk-ZLYIRH2B.js → chunk-ZRBTAC3G.js} +3 -18
- package/dist/shared/chunk-ZRBTAC3G.js.map +1 -0
- package/dist/shared/{chunk-Z35I5JM5.js → chunk-ZVJNRKT4.js} +18 -20
- package/dist/shared/chunk-ZVJNRKT4.js.map +1 -0
- package/dist/shared/context.d.ts +402 -22
- package/dist/shared/context.d.ts.map +1 -1
- package/dist/shared/context.js +93 -0
- package/dist/shared/context.js.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.d.ts +1 -1
- package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.js +2 -1
- package/dist/shared/datarecords/types.d.ts +10 -63
- package/dist/shared/datarecords/types.d.ts.map +1 -1
- package/dist/shared/datarecords/types.js +5 -6
- package/dist/shared/datasources/external/instagram/feed/schema.d.ts +1 -1
- package/dist/shared/datasources/external/instagram/feed/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/schema.js +4 -1
- package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts +6 -6
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.js +6 -19
- package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.d.ts +2 -2
- package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.js +4 -1
- package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.js +3 -3
- package/dist/shared/datasources/external/threads/media/schema.d.ts +1 -1
- package/dist/shared/datasources/external/threads/media/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/threads/media/schema.js +4 -8
- package/dist/shared/datasources/external/threads/media/schema.js.map +1 -1
- package/dist/shared/datasources/internal/blog/schema.d.ts +1 -1
- package/dist/shared/datasources/internal/blog/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/blog/schema.js +4 -1
- package/dist/shared/datasources/internal/blog/schema.js.map +1 -1
- package/dist/shared/datasources/types.d.ts +25 -25
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/datasources/types.js +3 -16
- package/dist/shared/datasources.d.ts +1 -1
- package/dist/shared/datasources.d.ts.map +1 -1
- package/dist/shared/datasources.js +1 -3
- package/dist/shared/datasources.js.map +1 -1
- package/dist/shared/images.d.ts +1 -1
- package/dist/shared/images.d.ts.map +1 -1
- package/dist/shared/images.js +4 -38
- package/dist/shared/images.js.map +1 -1
- package/dist/shared/page.d.ts +139 -22
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +51 -49
- package/dist/shared/responsive.js +1 -1
- package/dist/shared/site.d.ts +80 -197
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +55 -114
- package/dist/shared/site.js.map +1 -1
- package/dist/shared/sitemap.d.ts +6 -327
- package/dist/shared/sitemap.d.ts.map +1 -1
- package/dist/shared/sitemap.js +50 -58
- package/dist/shared/theme.d.ts +0 -37
- package/dist/shared/theme.d.ts.map +1 -1
- package/dist/shared/theme.js +4 -21
- package/dist/shared/utils/llm.d.ts +1 -10
- package/dist/shared/utils/llm.d.ts.map +1 -1
- package/dist/shared/utils/llm.js +1 -18
- package/dist/shared/utils/schema.d.ts +3 -2
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +2 -17
- package/dist/shared/utils/string-enum.d.ts +9 -3
- package/dist/shared/utils/string-enum.d.ts.map +1 -1
- package/dist/shared/utils/string-enum.js +1 -1
- package/package.json +21 -5
- package/src/shared/ai/schemas.ts +41 -10
- package/src/shared/ai/types.ts +78 -76
- package/src/shared/attributes.ts +56 -46
- package/src/shared/brick-manifest.ts +5 -6
- package/src/shared/bricks/manifests/_types.ts +9 -0
- package/src/shared/bricks/manifests/accordion.manifest.ts +138 -171
- package/src/shared/bricks/manifests/all-manifests.ts +1 -0
- package/src/shared/bricks/manifests/all-props.ts +165 -0
- package/src/shared/bricks/manifests/box.manifest.ts +214 -150
- package/src/shared/bricks/manifests/button.manifest.ts +204 -79
- package/src/shared/bricks/manifests/card.manifest.ts +229 -43
- package/src/shared/bricks/manifests/carousel.manifest.ts +165 -35
- package/src/shared/bricks/manifests/footer.manifest.ts +18 -20
- package/src/shared/bricks/manifests/form.manifest.ts +136 -22
- package/src/shared/bricks/manifests/hero.manifest.ts +121 -38
- package/src/shared/bricks/manifests/html.manifest.ts +2 -5
- package/src/shared/bricks/manifests/icon.manifest.ts +225 -46
- package/src/shared/bricks/manifests/image.manifest.ts +125 -21
- package/src/shared/bricks/manifests/images-gallery.manifest.ts +15 -20
- package/src/shared/bricks/manifests/map.manifest.ts +12 -15
- package/src/shared/bricks/manifests/navbar.manifest.ts +22 -26
- package/src/shared/bricks/manifests/sidebar.manifest.ts +11 -14
- package/src/shared/bricks/manifests/social-links.manifest.ts +19 -24
- package/src/shared/bricks/manifests/spacer.manifest.ts +2 -5
- package/src/shared/bricks/manifests/table.manifest.ts +17 -20
- package/src/shared/bricks/manifests/tabs.manifest.ts +16 -21
- package/src/shared/bricks/manifests/testimonials.manifest.ts +23 -25
- package/src/shared/bricks/manifests/text.manifest.ts +47 -29
- package/src/shared/bricks/manifests/timeline.manifest.ts +31 -29
- package/src/shared/bricks/manifests/video.manifest.ts +11 -15
- package/src/shared/bricks/props/align.ts +0 -13
- package/src/shared/bricks/props/background.ts +1 -14
- package/src/shared/bricks/props/border.ts +2 -13
- package/src/shared/bricks/props/color-preset.ts +9 -10
- package/src/shared/bricks/props/color.ts +7 -18
- package/src/shared/bricks/props/common.ts +6 -7
- package/src/shared/bricks/props/css-length.ts +0 -5
- package/src/shared/bricks/props/datasource.ts +72 -74
- package/src/shared/bricks/props/direction.ts +1 -5
- package/src/shared/bricks/props/dynamic.ts +0 -11
- package/src/shared/bricks/props/effects.ts +0 -9
- package/src/shared/bricks/props/geolocation.ts +3 -3
- package/src/shared/bricks/props/helpers.ts +1 -1
- package/src/shared/bricks/props/image.ts +4 -16
- package/src/shared/bricks/props/string.ts +6 -19
- package/src/shared/bricks/props/tags.ts +0 -5
- package/src/shared/bricks/props/tests/background.test.ts +1 -15
- package/src/shared/bricks/props/tests/image.test.ts +3 -9
- package/src/shared/bricks/props/tests/string.test.ts +2 -26
- package/src/shared/bricks/props/text.ts +0 -12
- package/src/shared/bricks/props/types.ts +4 -3
- package/src/shared/bricks.ts +164 -1025
- package/src/shared/context.ts +24 -23
- package/src/shared/datarecords/external/airtable/types.ts +12 -11
- package/src/shared/datarecords/types.ts +22 -44
- package/src/shared/datasources/external/instagram/feed/schema.ts +2 -1
- package/src/shared/datasources/external/mastodon/status/schema.ts +4 -19
- package/src/shared/datasources/external/meta/oauth/config.ts +2 -1
- package/src/shared/datasources/external/threads/media/schema.ts +2 -8
- package/src/shared/datasources/internal/blog/schema.ts +2 -1
- package/src/shared/datasources/types.ts +64 -79
- package/src/shared/datasources.ts +2 -4
- package/src/shared/images.ts +12 -18
- package/src/shared/page.ts +9 -2
- package/src/shared/site.ts +3 -3
- package/src/shared/sitemap.ts +3 -68
- package/src/shared/tests/attributes.test.ts +2 -0
- package/src/shared/theme.ts +81 -96
- package/src/shared/utils/llm.ts +5 -191
- package/src/shared/utils/schema.ts +71 -244
- package/src/shared/utils/string-enum.ts +25 -4
- package/src/shared/utils/tests/schema.test.ts +112 -314
- package/dist/shared/chunk-2HO4FHLM.js.map +0 -1
- package/dist/shared/chunk-2RK3CPYJ.js.map +0 -1
- package/dist/shared/chunk-3KLRW4I2.js.map +0 -1
- package/dist/shared/chunk-4WI23M7W.js.map +0 -1
- package/dist/shared/chunk-6E42XWFH.js +0 -103
- package/dist/shared/chunk-6E42XWFH.js.map +0 -1
- package/dist/shared/chunk-A2QPY54H.js +0 -13
- package/dist/shared/chunk-A2QPY54H.js.map +0 -1
- package/dist/shared/chunk-BMWRR4DI.js.map +0 -1
- package/dist/shared/chunk-BPBKHEQ5.js.map +0 -1
- package/dist/shared/chunk-BW6EFRSF.js +0 -794
- package/dist/shared/chunk-BW6EFRSF.js.map +0 -1
- package/dist/shared/chunk-CKFRSHR2.js.map +0 -1
- package/dist/shared/chunk-CSF2WQX2.js.map +0 -1
- package/dist/shared/chunk-D4YQ6ABM.js +0 -338
- package/dist/shared/chunk-D4YQ6ABM.js.map +0 -1
- package/dist/shared/chunk-DRTGM2UJ.js.map +0 -1
- package/dist/shared/chunk-EQMU6NIU.js +0 -1222
- package/dist/shared/chunk-EQMU6NIU.js.map +0 -1
- package/dist/shared/chunk-EWSPTRDL.js.map +0 -1
- package/dist/shared/chunk-F22LDHEO.js.map +0 -1
- package/dist/shared/chunk-FVU5PXRC.js +0 -244
- package/dist/shared/chunk-FVU5PXRC.js.map +0 -1
- package/dist/shared/chunk-GCQURRVB.js.map +0 -1
- package/dist/shared/chunk-GPCI2N2A.js.map +0 -1
- package/dist/shared/chunk-GRMY35BU.js.map +0 -1
- package/dist/shared/chunk-JK2FWFJU.js +0 -15
- package/dist/shared/chunk-JK2FWFJU.js.map +0 -1
- package/dist/shared/chunk-LXAO3JA6.js.map +0 -1
- package/dist/shared/chunk-MLZT7MRQ.js.map +0 -1
- package/dist/shared/chunk-NT3IW52F.js +0 -260
- package/dist/shared/chunk-NT3IW52F.js.map +0 -1
- package/dist/shared/chunk-NTLAKMMQ.js.map +0 -1
- package/dist/shared/chunk-O5PLB3YB.js.map +0 -1
- package/dist/shared/chunk-P3RH5URN.js.map +0 -1
- package/dist/shared/chunk-Q4NPPLEU.js.map +0 -1
- package/dist/shared/chunk-QL3T5HJQ.js.map +0 -1
- package/dist/shared/chunk-QQQ3FYPG.js.map +0 -1
- package/dist/shared/chunk-QSND5IWT.js.map +0 -1
- package/dist/shared/chunk-RV7AYVFV.js.map +0 -1
- package/dist/shared/chunk-SE6O65HC.js.map +0 -1
- package/dist/shared/chunk-SHUGHJ7V.js.map +0 -1
- package/dist/shared/chunk-TB3X4LRQ.js.map +0 -1
- package/dist/shared/chunk-TFGGYU6Y.js.map +0 -1
- package/dist/shared/chunk-TNMNMYOB.js.map +0 -1
- package/dist/shared/chunk-U7TVEPKA.js.map +0 -1
- package/dist/shared/chunk-UQF52PWK.js.map +0 -1
- package/dist/shared/chunk-V3UA3LRK.js.map +0 -1
- package/dist/shared/chunk-W6MRYRGJ.js.map +0 -1
- package/dist/shared/chunk-WGDUJSSS.js.map +0 -1
- package/dist/shared/chunk-WKN566LN.js +0 -29
- package/dist/shared/chunk-WKN566LN.js.map +0 -1
- package/dist/shared/chunk-X6N463D4.js +0 -222
- package/dist/shared/chunk-X6N463D4.js.map +0 -1
- package/dist/shared/chunk-X75YV73Q.js +0 -178
- package/dist/shared/chunk-X75YV73Q.js.map +0 -1
- package/dist/shared/chunk-Y74LZNND.js.map +0 -1
- package/dist/shared/chunk-Z2NTDFB4.js.map +0 -1
- package/dist/shared/chunk-Z35I5JM5.js.map +0 -1
- package/dist/shared/chunk-ZLYIRH2B.js.map +0 -1
- package/dist/shared/schema-registry.d.ts +0 -5
- package/dist/shared/schema-registry.d.ts.map +0 -1
- package/dist/shared/schema-registry.js +0 -119
- package/dist/shared/schema-registry.js.map +0 -1
- package/dist/shared/tests/schema-registry.test.d.ts +0 -2
- package/dist/shared/tests/schema-registry.test.d.ts.map +0 -1
- package/dist/shared/utils/schema-registry.d.ts +0 -5
- package/dist/shared/utils/schema-registry.d.ts.map +0 -1
- package/dist/shared/utils/schema-registry.js +0 -29
- package/dist/shared/utils/tests/schema-registry.test.d.ts +0 -2
- package/dist/shared/utils/tests/schema-registry.test.d.ts.map +0 -1
- package/dist/shared/utils/typed-ref.d.ts +0 -43
- package/dist/shared/utils/typed-ref.d.ts.map +0 -1
- package/dist/shared/utils/typed-ref.js +0 -10
- package/dist/shared/utils/typed-ref.js.map +0 -1
- package/src/shared/schema-registry.ts +0 -82
- package/src/shared/tests/schema-registry.test.ts +0 -14
- package/src/shared/utils/schema-registry.ts +0 -82
- package/src/shared/utils/tests/schema-registry.test.ts +0 -13
- package/src/shared/utils/typed-ref.ts +0 -53
- /package/dist/shared/{utils/schema-registry.js.map → bricks/manifests/_types.js.map} +0 -0
package/src/shared/bricks.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Type, type Static
|
|
1
|
+
import { Type, type Static } from "@sinclair/typebox";
|
|
2
2
|
import { customAlphabet } from "nanoid";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { defaultProps, manifests } from "./bricks/manifests/all-manifests";
|
|
4
|
+
import { cssLength } from "./bricks/props/css-length";
|
|
5
|
+
import { colorPreset } from "./bricks/props/color-preset";
|
|
6
6
|
import { mergeIgnoringArrays } from "./utils/merge";
|
|
7
7
|
import { getSchemaDefaults } from "./utils/schema";
|
|
8
8
|
import { StringEnum } from "./utils/string-enum";
|
|
9
|
-
import {
|
|
9
|
+
import { alignItems, justifyContent } from "./bricks/props/align";
|
|
10
10
|
import type { CommonBrickProps } from "./bricks/props/common";
|
|
11
|
-
import {
|
|
11
|
+
import { direction } from "./bricks/props/direction";
|
|
12
12
|
import type { PageAttributes, SiteAttributes } from "./attributes";
|
|
13
13
|
import { toLLMSchema } from "./utils/llm";
|
|
14
|
-
import {
|
|
14
|
+
import { background } from "./bricks/props/background";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Generates a unique identifier for bricks.
|
|
@@ -75,35 +75,58 @@ export const brickTypeSchema = StringEnum(Object.keys(defaultProps), {
|
|
|
75
75
|
title: "Brick type",
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
export const brickSchema = Type.Object(
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
export const brickSchema = Type.Object({
|
|
79
|
+
id: Type.String({
|
|
80
|
+
title: "ID",
|
|
81
|
+
description: "A unique identifier for the brick.",
|
|
82
|
+
}),
|
|
83
|
+
type: brickTypeSchema,
|
|
84
|
+
label: Type.Optional(
|
|
85
|
+
Type.String({
|
|
86
|
+
title: "Label",
|
|
87
|
+
description: "A human-readable label for the brick. Used for organization and identification.",
|
|
83
88
|
}),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
props: Type.Any({
|
|
89
|
+
),
|
|
90
|
+
props: Type.Any({
|
|
91
|
+
title: "Props",
|
|
92
|
+
description: "The static props of the brick. The available props depends on the brick type.",
|
|
93
|
+
}),
|
|
94
|
+
mobileProps: Type.Optional(
|
|
95
|
+
Type.Any({
|
|
92
96
|
title: "Props",
|
|
93
|
-
description:
|
|
97
|
+
description:
|
|
98
|
+
"The overriden props for mobile, merged with desktop props. Same type as props but partial.",
|
|
94
99
|
}),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
title: "Props",
|
|
98
|
-
description:
|
|
99
|
-
"The overriden props for mobile, merged with desktop props. Same type as props but partial.",
|
|
100
|
-
}),
|
|
101
|
-
),
|
|
102
|
-
},
|
|
103
|
-
{ additionalProperties: true },
|
|
104
|
-
);
|
|
100
|
+
),
|
|
101
|
+
});
|
|
105
102
|
|
|
106
|
-
export function makeFullBrickSchemaForLLM(type: string,
|
|
103
|
+
export function makeFullBrickSchemaForLLM(type: string, otherTypes?: string[]) {
|
|
104
|
+
const originalProps = Type.Pick(brickSchema, ["props"]);
|
|
105
|
+
const props = otherTypes
|
|
106
|
+
? Type.Composite([
|
|
107
|
+
Type.Omit(brickSchema, ["props"]),
|
|
108
|
+
Type.Object({
|
|
109
|
+
props: Type.Composite([
|
|
110
|
+
originalProps,
|
|
111
|
+
Type.Object({
|
|
112
|
+
$children: Type.Union(
|
|
113
|
+
otherTypes.map((t) =>
|
|
114
|
+
Type.Object({
|
|
115
|
+
id: Type.String({
|
|
116
|
+
title: "ID",
|
|
117
|
+
description: "A unique identifier for the brick.",
|
|
118
|
+
}),
|
|
119
|
+
type: Type.Literal(t),
|
|
120
|
+
props: manifests[t].props,
|
|
121
|
+
mobileProps: Type.Optional(Type.Partial(manifests[t].props)),
|
|
122
|
+
}),
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
}),
|
|
126
|
+
]),
|
|
127
|
+
}),
|
|
128
|
+
])
|
|
129
|
+
: manifests[type].props;
|
|
107
130
|
return toLLMSchema(
|
|
108
131
|
Type.Object(
|
|
109
132
|
{
|
|
@@ -113,125 +136,122 @@ export function makeFullBrickSchemaForLLM(type: string, props: TObject) {
|
|
|
113
136
|
}),
|
|
114
137
|
type: Type.Literal(type),
|
|
115
138
|
props,
|
|
116
|
-
mobileProps: Type.Optional(Type.Partial(props)),
|
|
139
|
+
mobileProps: Type.Optional(Type.Partial(manifests[type].props)),
|
|
117
140
|
},
|
|
118
|
-
|
|
141
|
+
// IMPORTANT: DO NOT set "additionalProperties" to `false` because it would break validation with Cabidela library
|
|
142
|
+
// { additionalProperties: false },
|
|
119
143
|
),
|
|
120
144
|
);
|
|
121
145
|
}
|
|
122
146
|
|
|
123
147
|
export type Brick = Omit<Static<typeof brickSchema>, "props" | "mobileProps"> & {
|
|
124
148
|
props: CommonBrickProps & Record<string, unknown>;
|
|
125
|
-
mobileProps?: CommonBrickProps & Record<string, unknown
|
|
149
|
+
mobileProps?: Partial<CommonBrickProps & Record<string, unknown>>;
|
|
126
150
|
};
|
|
127
151
|
|
|
128
|
-
export const sectionProps = Type.Object(
|
|
129
|
-
|
|
130
|
-
colorPreset
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
),
|
|
142
|
-
direction: directionRef({
|
|
152
|
+
export const sectionProps = Type.Object({
|
|
153
|
+
colorPreset: Type.Optional(
|
|
154
|
+
colorPreset({
|
|
155
|
+
title: "Color",
|
|
156
|
+
}),
|
|
157
|
+
),
|
|
158
|
+
backgroundImage: Type.Optional(
|
|
159
|
+
background({
|
|
160
|
+
title: "Background",
|
|
161
|
+
}),
|
|
162
|
+
),
|
|
163
|
+
direction: Type.Optional(
|
|
164
|
+
direction({
|
|
143
165
|
default: "flex-row",
|
|
144
166
|
title: "Direction",
|
|
145
|
-
description:
|
|
167
|
+
description:
|
|
168
|
+
"The direction of the section. Only apply to desktop. On mobile, it is always vertical. By default, horizontal (row), which is the most common.",
|
|
146
169
|
"ui:responsive": "desktop",
|
|
147
170
|
}),
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
default
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
additionalProperties: false,
|
|
233
|
-
},
|
|
234
|
-
);
|
|
171
|
+
),
|
|
172
|
+
minHeight: Type.Optional(
|
|
173
|
+
cssLength({
|
|
174
|
+
title: "Min height",
|
|
175
|
+
default: "fit-content",
|
|
176
|
+
description:
|
|
177
|
+
"The min height of the section. default is 'fit-content'. You can also use the keyword 'full' to make it full viewport height. Lastly, you can use any valid CSS length unit.",
|
|
178
|
+
"ui:field": "hidden",
|
|
179
|
+
}),
|
|
180
|
+
),
|
|
181
|
+
variant: Type.Optional(
|
|
182
|
+
StringEnum(["navbar", "footer", "sidebar"], {
|
|
183
|
+
title: "Custom section variant",
|
|
184
|
+
description: "Used for custom styling and layout.",
|
|
185
|
+
enumNames: ["Navbar", "Footer", "Sidebar"],
|
|
186
|
+
"ui:field": "hidden",
|
|
187
|
+
"ai:hidden": true,
|
|
188
|
+
}),
|
|
189
|
+
),
|
|
190
|
+
maxWidth: Type.Optional(
|
|
191
|
+
StringEnum(["max-w-screen-lg", "max-w-screen-xl", "max-w-screen-2xl", "max-w-full"], {
|
|
192
|
+
title: "Max width",
|
|
193
|
+
default: "max-w-full",
|
|
194
|
+
enumNames: ["M", "L", "XL", "Full"],
|
|
195
|
+
description: "The maximum width of the section. Desktop only",
|
|
196
|
+
"ai:instructions":
|
|
197
|
+
"Choose the most appropriate max width for the section. The value 'max-w-full' is the most common and the default. Use the same value for all sections on the same page unless there is a good reason to do otherwise.",
|
|
198
|
+
displayAs: "button-group",
|
|
199
|
+
"ui:responsive": "desktop",
|
|
200
|
+
}),
|
|
201
|
+
),
|
|
202
|
+
verticalMargin: Type.Optional(
|
|
203
|
+
cssLength({
|
|
204
|
+
title: "Vertical Margin",
|
|
205
|
+
description:
|
|
206
|
+
"The vertical margin of the section. By default, all sections touch each other with no space in between. If you want to add space between sections, set this value to e.g. '2rem' or '32px'. Adding a vertical margin will reveal the background color of the page.",
|
|
207
|
+
default: "0",
|
|
208
|
+
"ui:styleId": "styles:verticalMargin",
|
|
209
|
+
}),
|
|
210
|
+
),
|
|
211
|
+
justifyContent: Type.Optional(
|
|
212
|
+
justifyContent({
|
|
213
|
+
default: "justify-center",
|
|
214
|
+
}),
|
|
215
|
+
),
|
|
216
|
+
alignItems: Type.Optional(
|
|
217
|
+
alignItems({
|
|
218
|
+
default: "items-center",
|
|
219
|
+
}),
|
|
220
|
+
),
|
|
221
|
+
padding: Type.Optional(
|
|
222
|
+
cssLength({
|
|
223
|
+
default: "2rem",
|
|
224
|
+
description: "Padding inside the section.",
|
|
225
|
+
title: "Padding",
|
|
226
|
+
"ui:responsive": true,
|
|
227
|
+
"ui:placeholder": "Not specified",
|
|
228
|
+
"ui:styleId": "styles:padding",
|
|
229
|
+
}),
|
|
230
|
+
),
|
|
231
|
+
gap: Type.Optional(
|
|
232
|
+
cssLength({
|
|
233
|
+
title: "Gap",
|
|
234
|
+
description: "The gap between the bricks in the section.",
|
|
235
|
+
default: "2rem",
|
|
236
|
+
"ui:styleId": "styles:gap",
|
|
237
|
+
}),
|
|
238
|
+
),
|
|
239
|
+
wrap: Type.Optional(
|
|
240
|
+
Type.Boolean({
|
|
241
|
+
title: "Wrap",
|
|
242
|
+
description: "Wrap bricks if they overflow the section.",
|
|
243
|
+
default: true,
|
|
244
|
+
"ui:styleId": "styles:wrap",
|
|
245
|
+
}),
|
|
246
|
+
),
|
|
247
|
+
lastTouched: Type.Optional(
|
|
248
|
+
Type.Number({
|
|
249
|
+
description: "Do not use this field. It is used internally by the editor.",
|
|
250
|
+
"ui:field": "hidden",
|
|
251
|
+
"ai:hidden": true,
|
|
252
|
+
}),
|
|
253
|
+
),
|
|
254
|
+
});
|
|
235
255
|
|
|
236
256
|
export const sectionSchema = Type.Object(
|
|
237
257
|
{
|
|
@@ -247,7 +267,7 @@ export const sectionSchema = Type.Object(
|
|
|
247
267
|
description: "Determines section order in the page (lower numbers appear first). 0-based",
|
|
248
268
|
}),
|
|
249
269
|
props: sectionProps,
|
|
250
|
-
mobileProps: Type.Optional(Type.Partial(sectionProps
|
|
270
|
+
mobileProps: Type.Optional(Type.Partial(sectionProps)),
|
|
251
271
|
bricks: Type.Array(brickSchema),
|
|
252
272
|
},
|
|
253
273
|
{
|
|
@@ -255,9 +275,8 @@ export const sectionSchema = Type.Object(
|
|
|
255
275
|
},
|
|
256
276
|
);
|
|
257
277
|
|
|
258
|
-
export const sectionSchemaLLM = toLLMSchema(sectionSchema);
|
|
259
278
|
export const sectionSchemaNoBricks = Type.Omit(sectionSchema, ["bricks"]);
|
|
260
|
-
export
|
|
279
|
+
export type SectionSchemaNoBricks = Static<typeof sectionSchemaNoBricks>;
|
|
261
280
|
|
|
262
281
|
const sectionDefaultprops = getSchemaDefaults(sectionSchema.properties.props, "desktop") as Section["props"];
|
|
263
282
|
const sectionMobileDefaultprops = getSchemaDefaults(
|
|
@@ -348,13 +367,13 @@ export function processBrick<T extends Brick>(brick: T): T {
|
|
|
348
367
|
}),
|
|
349
368
|
};
|
|
350
369
|
|
|
351
|
-
if (!result.props.width) {
|
|
352
|
-
result.props.grow = true;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
370
|
return result;
|
|
356
371
|
}
|
|
357
372
|
|
|
373
|
+
export function getDefaultPropsForBrick(type: string) {
|
|
374
|
+
return defaultProps[type].props;
|
|
375
|
+
}
|
|
376
|
+
|
|
358
377
|
export function createEmptyBrick(type: string, ghost = false): Brick {
|
|
359
378
|
const props = { ...defaultProps[type].props, ghost };
|
|
360
379
|
const newBrick = {
|
|
@@ -364,883 +383,3 @@ export function createEmptyBrick(type: string, ghost = false): Brick {
|
|
|
364
383
|
};
|
|
365
384
|
return newBrick;
|
|
366
385
|
}
|
|
367
|
-
|
|
368
|
-
export const sectionsExamples: { label: string; description: string; example: Section }[] = [
|
|
369
|
-
{
|
|
370
|
-
label: "Hero section with centered 'hero' and 'button' bricks",
|
|
371
|
-
description: `A simple hero section with a title and a light primary background.
|
|
372
|
-
The "hero" brick does not have a colorPreset so it is transparent and inherits the background/text-color settings from the section.
|
|
373
|
-
Bricks are centered both vertically and horizontally using justifyContent and alignItems.
|
|
374
|
-
Bricks are stacked vertically using the "direction" set to "flex-col".
|
|
375
|
-
`,
|
|
376
|
-
example: {
|
|
377
|
-
id: "hero-section",
|
|
378
|
-
label: "Hero",
|
|
379
|
-
order: 0,
|
|
380
|
-
props: {
|
|
381
|
-
colorPreset: { color: "primary-100" },
|
|
382
|
-
direction: "flex-col",
|
|
383
|
-
padding: "6rem",
|
|
384
|
-
gap: "3rem",
|
|
385
|
-
justifyContent: "justify-center",
|
|
386
|
-
alignItems: "items-center",
|
|
387
|
-
},
|
|
388
|
-
bricks: [
|
|
389
|
-
{
|
|
390
|
-
id: "hero",
|
|
391
|
-
type: "hero",
|
|
392
|
-
label: "Main hero title",
|
|
393
|
-
props: {
|
|
394
|
-
content: "<h1 style='text-align:center'>Welcome to my SaaS</h1>",
|
|
395
|
-
tagline: "The future of productivity starts here",
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
id: "cta-button",
|
|
400
|
-
type: "button",
|
|
401
|
-
label: "Call to action button",
|
|
402
|
-
props: {
|
|
403
|
-
label: "Get Started",
|
|
404
|
-
href: "/signup",
|
|
405
|
-
colorPreset: { color: "primary-500", variant: "solid" },
|
|
406
|
-
},
|
|
407
|
-
},
|
|
408
|
-
],
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
label: "Contact section with a text and a form",
|
|
413
|
-
description: `A contact section with a title and a form.
|
|
414
|
-
The section has a light gray background using a colorPreset.
|
|
415
|
-
Bricks are stacked vertically using the "direction" set to "flex-col".
|
|
416
|
-
`,
|
|
417
|
-
example: {
|
|
418
|
-
id: "contact-section",
|
|
419
|
-
label: "Contact",
|
|
420
|
-
order: 1,
|
|
421
|
-
props: {
|
|
422
|
-
colorPreset: { color: "gray-100" },
|
|
423
|
-
direction: "flex-col",
|
|
424
|
-
padding: "4rem",
|
|
425
|
-
gap: "2rem",
|
|
426
|
-
justifyContent: "justify-center",
|
|
427
|
-
alignItems: "items-center",
|
|
428
|
-
},
|
|
429
|
-
bricks: [
|
|
430
|
-
{
|
|
431
|
-
id: "contact-title",
|
|
432
|
-
type: "text",
|
|
433
|
-
props: {
|
|
434
|
-
content: "<h2>Get in Touch</h2>",
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
id: "contact-form",
|
|
439
|
-
type: "form",
|
|
440
|
-
props: {
|
|
441
|
-
title: "Contact Us",
|
|
442
|
-
fields: [
|
|
443
|
-
{ name: "name", label: "Name", type: "text", required: true },
|
|
444
|
-
{ name: "email", label: "Email", type: "email", required: true },
|
|
445
|
-
{ name: "message", label: "Message", type: "textarea", required: true },
|
|
446
|
-
],
|
|
447
|
-
},
|
|
448
|
-
},
|
|
449
|
-
],
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
label: "Feature showcase with horizontal layout and container brick",
|
|
454
|
-
description: `A features section using horizontal layout with a container "box" brick that holds multiple feature items.
|
|
455
|
-
The box brick is the only container type that can hold $children (other bricks).
|
|
456
|
-
This demonstrates nested brick structure where the box contains multiple feature bricks.`,
|
|
457
|
-
example: {
|
|
458
|
-
id: "features-section",
|
|
459
|
-
label: "Features",
|
|
460
|
-
order: 2,
|
|
461
|
-
props: {
|
|
462
|
-
direction: "flex-col",
|
|
463
|
-
padding: "5rem",
|
|
464
|
-
gap: "3rem",
|
|
465
|
-
maxWidth: "max-w-screen-xl",
|
|
466
|
-
justifyContent: "justify-center",
|
|
467
|
-
alignItems: "items-center",
|
|
468
|
-
},
|
|
469
|
-
bricks: [
|
|
470
|
-
{
|
|
471
|
-
id: "features-title",
|
|
472
|
-
type: "text",
|
|
473
|
-
props: {
|
|
474
|
-
content: "<h2 style='text-align:center'>Our Features</h2>",
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
id: "features-container",
|
|
479
|
-
type: "box",
|
|
480
|
-
props: {
|
|
481
|
-
direction: "flex-row",
|
|
482
|
-
gap: "2rem",
|
|
483
|
-
padding: "2rem",
|
|
484
|
-
$children: [
|
|
485
|
-
{
|
|
486
|
-
id: "feature-1",
|
|
487
|
-
type: "text",
|
|
488
|
-
props: {
|
|
489
|
-
content: "<h3>Fast</h3><p>Lightning-fast performance for your needs.</p>",
|
|
490
|
-
colorPreset: { color: "blue-500" },
|
|
491
|
-
},
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
id: "feature-2",
|
|
495
|
-
type: "text",
|
|
496
|
-
props: {
|
|
497
|
-
content: "<h3>Secure</h3><p>Enterprise-grade security built-in.</p>",
|
|
498
|
-
colorPreset: { color: "green-500" },
|
|
499
|
-
},
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
id: "feature-3",
|
|
503
|
-
type: "text",
|
|
504
|
-
props: {
|
|
505
|
-
content: "<h3>Scalable</h3><p>Grows with your business seamlessly.</p>",
|
|
506
|
-
colorPreset: { color: "purple-500" },
|
|
507
|
-
},
|
|
508
|
-
},
|
|
509
|
-
],
|
|
510
|
-
},
|
|
511
|
-
},
|
|
512
|
-
],
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
label: "Media-rich section with image and text side by side",
|
|
517
|
-
description: `A content section using horizontal layout to place an image next to text content.
|
|
518
|
-
Demonstrates how direction "flex-row" arranges bricks horizontally.
|
|
519
|
-
The section uses responsive mobile overrides to stack vertically on mobile.`,
|
|
520
|
-
example: {
|
|
521
|
-
id: "about-section",
|
|
522
|
-
label: "About",
|
|
523
|
-
order: 3,
|
|
524
|
-
props: {
|
|
525
|
-
direction: "flex-row",
|
|
526
|
-
padding: "4rem",
|
|
527
|
-
gap: "3rem",
|
|
528
|
-
alignItems: "items-center",
|
|
529
|
-
maxWidth: "max-w-screen-xl",
|
|
530
|
-
},
|
|
531
|
-
mobileProps: {
|
|
532
|
-
direction: "flex-col",
|
|
533
|
-
padding: "2rem",
|
|
534
|
-
},
|
|
535
|
-
bricks: [
|
|
536
|
-
{
|
|
537
|
-
id: "about-image",
|
|
538
|
-
type: "image",
|
|
539
|
-
props: {
|
|
540
|
-
src: "https://example.com/about-image.jpg",
|
|
541
|
-
alt: "About our company",
|
|
542
|
-
width: "400px",
|
|
543
|
-
height: "300px",
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
id: "about-text",
|
|
548
|
-
type: "text",
|
|
549
|
-
props: {
|
|
550
|
-
content:
|
|
551
|
-
"<h2>About Us</h2><p>We are a leading company in innovative solutions, dedicated to transforming how businesses operate in the digital age.</p>",
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
|
-
],
|
|
555
|
-
},
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
label: "Complex nested layout with multiple container levels",
|
|
559
|
-
description: `Advanced example showing deeply nested brick structure using multiple box containers.
|
|
560
|
-
Demonstrates how box bricks can contain other box bricks, creating sophisticated layouts.
|
|
561
|
-
Shows responsive design with different mobile arrangements.`,
|
|
562
|
-
example: {
|
|
563
|
-
id: "complex-layout-section",
|
|
564
|
-
label: "Complex layout",
|
|
565
|
-
order: 4,
|
|
566
|
-
props: {
|
|
567
|
-
direction: "flex-col",
|
|
568
|
-
padding: "4rem",
|
|
569
|
-
gap: "2rem",
|
|
570
|
-
backgroundImage: { image: "https://example.com/bg.jpg" },
|
|
571
|
-
},
|
|
572
|
-
bricks: [
|
|
573
|
-
{
|
|
574
|
-
id: "main-container",
|
|
575
|
-
type: "box",
|
|
576
|
-
props: {
|
|
577
|
-
direction: "flex-row",
|
|
578
|
-
gap: "2rem",
|
|
579
|
-
padding: "2rem",
|
|
580
|
-
$children: [
|
|
581
|
-
{
|
|
582
|
-
id: "left-column",
|
|
583
|
-
type: "box",
|
|
584
|
-
props: {
|
|
585
|
-
direction: "flex-col",
|
|
586
|
-
gap: "1rem",
|
|
587
|
-
colorPreset: { color: "gray-50" },
|
|
588
|
-
padding: "1.5rem",
|
|
589
|
-
$children: [
|
|
590
|
-
{
|
|
591
|
-
id: "left-title",
|
|
592
|
-
type: "text",
|
|
593
|
-
props: {
|
|
594
|
-
content: "<h3>Left Column</h3>",
|
|
595
|
-
},
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
id: "left-button",
|
|
599
|
-
type: "button",
|
|
600
|
-
props: {
|
|
601
|
-
label: "Learn More",
|
|
602
|
-
href: "/learn",
|
|
603
|
-
colorPreset: { color: "blue-500", variant: "outline" },
|
|
604
|
-
},
|
|
605
|
-
},
|
|
606
|
-
],
|
|
607
|
-
},
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
id: "right-column",
|
|
611
|
-
type: "box",
|
|
612
|
-
props: {
|
|
613
|
-
direction: "flex-col",
|
|
614
|
-
gap: "1rem",
|
|
615
|
-
colorPreset: { color: "blue-50" },
|
|
616
|
-
padding: "1.5rem",
|
|
617
|
-
$children: [
|
|
618
|
-
{
|
|
619
|
-
id: "right-image",
|
|
620
|
-
type: "image",
|
|
621
|
-
props: {
|
|
622
|
-
src: "https://example.com/feature.jpg",
|
|
623
|
-
alt: "Feature showcase",
|
|
624
|
-
width: "100%",
|
|
625
|
-
},
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
id: "right-text",
|
|
629
|
-
type: "text",
|
|
630
|
-
props: {
|
|
631
|
-
content: "<p>Detailed description of our amazing features and capabilities.</p>",
|
|
632
|
-
},
|
|
633
|
-
},
|
|
634
|
-
],
|
|
635
|
-
},
|
|
636
|
-
},
|
|
637
|
-
],
|
|
638
|
-
mobileProps: {
|
|
639
|
-
direction: "flex-col",
|
|
640
|
-
},
|
|
641
|
-
},
|
|
642
|
-
},
|
|
643
|
-
],
|
|
644
|
-
},
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
label: "Footer-style section with multiple columns",
|
|
648
|
-
description: `A footer-like section demonstrating horizontal layout with multiple informational columns.
|
|
649
|
-
Uses the footer variant for special styling and contains multiple text bricks arranged horizontally.
|
|
650
|
-
Shows how to create multi-column layouts using direction and gap properties.`,
|
|
651
|
-
example: {
|
|
652
|
-
id: "info-footer-section",
|
|
653
|
-
label: "Info footer",
|
|
654
|
-
order: 5,
|
|
655
|
-
props: {
|
|
656
|
-
variant: "footer",
|
|
657
|
-
direction: "flex-row",
|
|
658
|
-
padding: "3rem",
|
|
659
|
-
gap: "4rem",
|
|
660
|
-
colorPreset: { color: "gray-800" },
|
|
661
|
-
justifyContent: "justify-center",
|
|
662
|
-
},
|
|
663
|
-
mobileProps: {
|
|
664
|
-
direction: "flex-col",
|
|
665
|
-
gap: "2rem",
|
|
666
|
-
},
|
|
667
|
-
bricks: [
|
|
668
|
-
{
|
|
669
|
-
id: "company-info",
|
|
670
|
-
type: "text",
|
|
671
|
-
props: {
|
|
672
|
-
content:
|
|
673
|
-
"<h4 style='color:white'>Company</h4><p style='color:gray'>About Us<br>Careers<br>Contact</p>",
|
|
674
|
-
},
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
id: "product-info",
|
|
678
|
-
type: "text",
|
|
679
|
-
props: {
|
|
680
|
-
content:
|
|
681
|
-
"<h4 style='color:white'>Product</h4><p style='color:gray'>Features<br>Pricing<br>Documentation</p>",
|
|
682
|
-
},
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
id: "support-info",
|
|
686
|
-
type: "text",
|
|
687
|
-
props: {
|
|
688
|
-
content:
|
|
689
|
-
"<h4 style='color:white'>Support</h4><p style='color:gray'>Help Center<br>Community<br>Status</p>",
|
|
690
|
-
},
|
|
691
|
-
},
|
|
692
|
-
],
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
label: "Video showcase section with title and description",
|
|
697
|
-
description: `A media section featuring a YouTube video with accompanying text.
|
|
698
|
-
Shows how to use video bricks for multimedia content.
|
|
699
|
-
The section uses a light background to make the video stand out.`,
|
|
700
|
-
example: {
|
|
701
|
-
id: "video-showcase-section",
|
|
702
|
-
label: "Video showcase",
|
|
703
|
-
order: 6,
|
|
704
|
-
props: {
|
|
705
|
-
direction: "flex-col",
|
|
706
|
-
padding: "4rem",
|
|
707
|
-
gap: "2rem",
|
|
708
|
-
colorPreset: { color: "gray-50" },
|
|
709
|
-
alignItems: "items-center",
|
|
710
|
-
maxWidth: "max-w-screen-lg",
|
|
711
|
-
},
|
|
712
|
-
bricks: [
|
|
713
|
-
{
|
|
714
|
-
id: "video-title",
|
|
715
|
-
type: "text",
|
|
716
|
-
props: {
|
|
717
|
-
content: "<h2 style='text-align:center'>Watch Our Demo</h2>",
|
|
718
|
-
},
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
id: "demo-video",
|
|
722
|
-
type: "video",
|
|
723
|
-
props: {
|
|
724
|
-
url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
|
|
725
|
-
title: "Product Demo Video",
|
|
726
|
-
},
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
id: "video-description",
|
|
730
|
-
type: "text",
|
|
731
|
-
props: {
|
|
732
|
-
content:
|
|
733
|
-
"<p style='text-align:center'>See how our platform can transform your workflow in just 2 minutes.</p>",
|
|
734
|
-
},
|
|
735
|
-
},
|
|
736
|
-
],
|
|
737
|
-
},
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
label: "Image gallery section with carousel",
|
|
741
|
-
description: `A media-rich section showcasing an image carousel.
|
|
742
|
-
Demonstrates how to use carousel bricks for displaying multiple images.
|
|
743
|
-
Perfect for portfolios, product showcases, or photo galleries.`,
|
|
744
|
-
example: {
|
|
745
|
-
id: "gallery-section",
|
|
746
|
-
label: "Gallery",
|
|
747
|
-
order: 7,
|
|
748
|
-
props: {
|
|
749
|
-
direction: "flex-col",
|
|
750
|
-
padding: "4rem",
|
|
751
|
-
gap: "2rem",
|
|
752
|
-
alignItems: "items-center",
|
|
753
|
-
},
|
|
754
|
-
bricks: [
|
|
755
|
-
{
|
|
756
|
-
id: "gallery-title",
|
|
757
|
-
type: "text",
|
|
758
|
-
props: {
|
|
759
|
-
content: "<h2 style='text-align:center'>Our Portfolio</h2>",
|
|
760
|
-
},
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
id: "portfolio-carousel",
|
|
764
|
-
type: "carousel",
|
|
765
|
-
props: {
|
|
766
|
-
images: [
|
|
767
|
-
{ src: "https://example.com/project1.jpg", alt: "Project 1" },
|
|
768
|
-
{ src: "https://example.com/project2.jpg", alt: "Project 2" },
|
|
769
|
-
{ src: "https://example.com/project3.jpg", alt: "Project 3" },
|
|
770
|
-
],
|
|
771
|
-
autoplay: true,
|
|
772
|
-
showDots: true,
|
|
773
|
-
},
|
|
774
|
-
},
|
|
775
|
-
],
|
|
776
|
-
},
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
label: "Interactive form section with styled inputs",
|
|
780
|
-
description: `A comprehensive form section for user registration or contact.
|
|
781
|
-
Shows how to create forms with various field types and validation.
|
|
782
|
-
Uses a card-like appearance with rounded corners and shadow.`,
|
|
783
|
-
example: {
|
|
784
|
-
id: "signup-form-section",
|
|
785
|
-
label: "Signup form",
|
|
786
|
-
order: 8,
|
|
787
|
-
props: {
|
|
788
|
-
direction: "flex-col",
|
|
789
|
-
padding: "4rem",
|
|
790
|
-
gap: "2rem",
|
|
791
|
-
colorPreset: { color: "blue-50" },
|
|
792
|
-
alignItems: "items-center",
|
|
793
|
-
},
|
|
794
|
-
bricks: [
|
|
795
|
-
{
|
|
796
|
-
id: "form-header",
|
|
797
|
-
type: "text",
|
|
798
|
-
props: {
|
|
799
|
-
content:
|
|
800
|
-
"<h2 style='text-align:center'>Join Our Platform</h2><p style='text-align:center'>Create your account and start building today.</p>",
|
|
801
|
-
},
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
id: "registration-form",
|
|
805
|
-
type: "form",
|
|
806
|
-
props: {
|
|
807
|
-
title: "Sign Up",
|
|
808
|
-
submitLabel: "Create Account",
|
|
809
|
-
fields: [
|
|
810
|
-
{ name: "firstName", label: "First Name", type: "text", required: true },
|
|
811
|
-
{ name: "lastName", label: "Last Name", type: "text", required: true },
|
|
812
|
-
{ name: "email", label: "Email Address", type: "email", required: true },
|
|
813
|
-
{ name: "password", label: "Password", type: "password", required: true },
|
|
814
|
-
{ name: "company", label: "Company", type: "text", required: false },
|
|
815
|
-
{ name: "newsletter", label: "Subscribe to newsletter", type: "checkbox", required: false },
|
|
816
|
-
],
|
|
817
|
-
colorPreset: { color: "white" },
|
|
818
|
-
shadow: "shadow-lg",
|
|
819
|
-
rounding: "rounded-lg",
|
|
820
|
-
padding: "2rem",
|
|
821
|
-
},
|
|
822
|
-
},
|
|
823
|
-
],
|
|
824
|
-
},
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
label: "Testimonials section with customer feedback",
|
|
828
|
-
description: `A social proof section using the testimonials brick to display customer feedback.
|
|
829
|
-
Shows how to structure testimonials with avatars, company information, and social icons.
|
|
830
|
-
Perfect for building trust and credibility with potential customers.`,
|
|
831
|
-
example: {
|
|
832
|
-
id: "testimonials-section",
|
|
833
|
-
label: "Testimonials",
|
|
834
|
-
order: 9,
|
|
835
|
-
props: {
|
|
836
|
-
direction: "flex-col",
|
|
837
|
-
padding: "5rem",
|
|
838
|
-
gap: "3rem",
|
|
839
|
-
colorPreset: { color: "purple-50" },
|
|
840
|
-
alignItems: "items-center",
|
|
841
|
-
},
|
|
842
|
-
bricks: [
|
|
843
|
-
{
|
|
844
|
-
id: "testimonials-title",
|
|
845
|
-
type: "text",
|
|
846
|
-
props: {
|
|
847
|
-
content: "<h2 style='text-align:center'>What Our Customers Say</h2>",
|
|
848
|
-
},
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
id: "customer-testimonials",
|
|
852
|
-
type: "testimonials",
|
|
853
|
-
props: {
|
|
854
|
-
testimonials: [
|
|
855
|
-
{
|
|
856
|
-
text: "This platform has completely transformed how we handle our projects. The automation features and intuitive interface have saved us countless hours every week.",
|
|
857
|
-
author: "Sarah Johnson",
|
|
858
|
-
company: "TechCorp Solutions",
|
|
859
|
-
avatar: {
|
|
860
|
-
src: "https://via.placeholder.com/80x80.png?text=SJ",
|
|
861
|
-
alt: "Sarah Johnson profile photo",
|
|
862
|
-
},
|
|
863
|
-
socialIcon: "mdi:linkedin",
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
text: "Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!",
|
|
867
|
-
author: "Mike Chen",
|
|
868
|
-
company: "StartupFlow",
|
|
869
|
-
avatar: {
|
|
870
|
-
src: "https://via.placeholder.com/80x80.png?text=MC",
|
|
871
|
-
alt: "Mike Chen profile photo",
|
|
872
|
-
},
|
|
873
|
-
socialIcon: "mdi:twitter",
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
text: "The results speak for themselves - our productivity increased by 40% after implementing this solution. It's like having an extra team member.",
|
|
877
|
-
author: "Emily Rodriguez",
|
|
878
|
-
company: "Digital Agency Pro",
|
|
879
|
-
avatar: {
|
|
880
|
-
src: "https://via.placeholder.com/80x80.png?text=ER",
|
|
881
|
-
alt: "Emily Rodriguez profile photo",
|
|
882
|
-
},
|
|
883
|
-
socialIcon: "mdi:briefcase",
|
|
884
|
-
},
|
|
885
|
-
],
|
|
886
|
-
colorPreset: { color: "white" },
|
|
887
|
-
shadow: "shadow-lg",
|
|
888
|
-
padding: "2rem",
|
|
889
|
-
gap: "2rem",
|
|
890
|
-
},
|
|
891
|
-
},
|
|
892
|
-
],
|
|
893
|
-
},
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
label: "Location and contact information with map",
|
|
897
|
-
description: `A contact section featuring an interactive map alongside contact details.
|
|
898
|
-
Shows how to combine map bricks with text and contact information.
|
|
899
|
-
Perfect for businesses with physical locations.`,
|
|
900
|
-
example: {
|
|
901
|
-
id: "location-section",
|
|
902
|
-
label: "Location",
|
|
903
|
-
order: 10,
|
|
904
|
-
props: {
|
|
905
|
-
direction: "flex-row",
|
|
906
|
-
padding: "4rem",
|
|
907
|
-
gap: "3rem",
|
|
908
|
-
alignItems: "items-start",
|
|
909
|
-
},
|
|
910
|
-
mobileProps: {
|
|
911
|
-
direction: "flex-col",
|
|
912
|
-
},
|
|
913
|
-
bricks: [
|
|
914
|
-
{
|
|
915
|
-
id: "contact-details",
|
|
916
|
-
type: "box",
|
|
917
|
-
props: {
|
|
918
|
-
direction: "flex-col",
|
|
919
|
-
gap: "2rem",
|
|
920
|
-
padding: "2rem",
|
|
921
|
-
colorPreset: { color: "gray-50" },
|
|
922
|
-
rounding: "rounded-lg",
|
|
923
|
-
$children: [
|
|
924
|
-
{
|
|
925
|
-
id: "office-title",
|
|
926
|
-
type: "text",
|
|
927
|
-
props: {
|
|
928
|
-
content: "<h3>Visit Our Office</h3>",
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
id: "address",
|
|
933
|
-
type: "text",
|
|
934
|
-
props: {
|
|
935
|
-
content:
|
|
936
|
-
"<p><strong>Address:</strong><br>123 Business Street<br>Suite 100<br>San Francisco, CA 94105</p>",
|
|
937
|
-
},
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
id: "contact-info",
|
|
941
|
-
type: "text",
|
|
942
|
-
props: {
|
|
943
|
-
content:
|
|
944
|
-
"<p><strong>Phone:</strong> +1 (555) 123-4567<br><strong>Email:</strong> hello@company.com</p>",
|
|
945
|
-
},
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
id: "hours",
|
|
949
|
-
type: "text",
|
|
950
|
-
props: {
|
|
951
|
-
content:
|
|
952
|
-
"<p><strong>Business Hours:</strong><br>Monday - Friday: 9:00 AM - 6:00 PM<br>Saturday: 10:00 AM - 4:00 PM</p>",
|
|
953
|
-
},
|
|
954
|
-
},
|
|
955
|
-
],
|
|
956
|
-
},
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
id: "office-map",
|
|
960
|
-
type: "map",
|
|
961
|
-
props: {
|
|
962
|
-
address: "123 Business Street, San Francisco, CA 94105",
|
|
963
|
-
zoom: 15,
|
|
964
|
-
height: "400px",
|
|
965
|
-
},
|
|
966
|
-
},
|
|
967
|
-
],
|
|
968
|
-
},
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
label: "Statistics showcase with icons and numbers",
|
|
972
|
-
description: `A metrics section displaying key statistics using icon and text bricks.
|
|
973
|
-
Demonstrates how to create compelling data visualizations.
|
|
974
|
-
Uses horizontal layout with consistent spacing and visual hierarchy.`,
|
|
975
|
-
example: {
|
|
976
|
-
id: "stats-section",
|
|
977
|
-
label: "Stats",
|
|
978
|
-
order: 11,
|
|
979
|
-
props: {
|
|
980
|
-
direction: "flex-col",
|
|
981
|
-
padding: "5rem",
|
|
982
|
-
gap: "3rem",
|
|
983
|
-
colorPreset: { color: "gradient", gradientDirection: "bg-gradient-to-r" },
|
|
984
|
-
alignItems: "items-center",
|
|
985
|
-
},
|
|
986
|
-
bricks: [
|
|
987
|
-
{
|
|
988
|
-
id: "stats-title",
|
|
989
|
-
type: "text",
|
|
990
|
-
props: {
|
|
991
|
-
content: "<h2 style='text-align:center; color:white'>Our Impact</h2>",
|
|
992
|
-
},
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
id: "stats-container",
|
|
996
|
-
type: "box",
|
|
997
|
-
props: {
|
|
998
|
-
direction: "flex-row",
|
|
999
|
-
gap: "4rem",
|
|
1000
|
-
justifyContent: "justify-center",
|
|
1001
|
-
$children: [
|
|
1002
|
-
{
|
|
1003
|
-
id: "users-stat",
|
|
1004
|
-
type: "box",
|
|
1005
|
-
props: {
|
|
1006
|
-
direction: "flex-col",
|
|
1007
|
-
gap: "1rem",
|
|
1008
|
-
alignItems: "items-center",
|
|
1009
|
-
$children: [
|
|
1010
|
-
{
|
|
1011
|
-
id: "users-icon",
|
|
1012
|
-
type: "icon",
|
|
1013
|
-
props: {
|
|
1014
|
-
icon: "users",
|
|
1015
|
-
size: "3rem",
|
|
1016
|
-
color: "white",
|
|
1017
|
-
},
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
id: "users-number",
|
|
1021
|
-
type: "text",
|
|
1022
|
-
props: {
|
|
1023
|
-
content:
|
|
1024
|
-
"<h3 style='color:white; text-align:center'>50K+</h3><p style='color:white; text-align:center'>Active Users</p>",
|
|
1025
|
-
},
|
|
1026
|
-
},
|
|
1027
|
-
],
|
|
1028
|
-
},
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
id: "projects-stat",
|
|
1032
|
-
type: "box",
|
|
1033
|
-
props: {
|
|
1034
|
-
direction: "flex-col",
|
|
1035
|
-
gap: "1rem",
|
|
1036
|
-
alignItems: "items-center",
|
|
1037
|
-
$children: [
|
|
1038
|
-
{
|
|
1039
|
-
id: "projects-icon",
|
|
1040
|
-
type: "icon",
|
|
1041
|
-
props: {
|
|
1042
|
-
icon: "briefcase",
|
|
1043
|
-
size: "3rem",
|
|
1044
|
-
color: "white",
|
|
1045
|
-
},
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
id: "projects-number",
|
|
1049
|
-
type: "text",
|
|
1050
|
-
props: {
|
|
1051
|
-
content:
|
|
1052
|
-
"<h3 style='color:white; text-align:center'>100K+</h3><p style='color:white; text-align:center'>Projects Created</p>",
|
|
1053
|
-
},
|
|
1054
|
-
},
|
|
1055
|
-
],
|
|
1056
|
-
},
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
id: "satisfaction-stat",
|
|
1060
|
-
type: "box",
|
|
1061
|
-
props: {
|
|
1062
|
-
direction: "flex-col",
|
|
1063
|
-
gap: "1rem",
|
|
1064
|
-
alignItems: "items-center",
|
|
1065
|
-
$children: [
|
|
1066
|
-
{
|
|
1067
|
-
id: "satisfaction-icon",
|
|
1068
|
-
type: "icon",
|
|
1069
|
-
props: {
|
|
1070
|
-
icon: "star",
|
|
1071
|
-
size: "3rem",
|
|
1072
|
-
color: "white",
|
|
1073
|
-
},
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
id: "satisfaction-number",
|
|
1077
|
-
type: "text",
|
|
1078
|
-
props: {
|
|
1079
|
-
content:
|
|
1080
|
-
"<h3 style='color:white; text-align:center'>98%</h3><p style='color:white; text-align:center'>Satisfaction Rate</p>",
|
|
1081
|
-
},
|
|
1082
|
-
},
|
|
1083
|
-
],
|
|
1084
|
-
},
|
|
1085
|
-
},
|
|
1086
|
-
],
|
|
1087
|
-
mobileProps: {
|
|
1088
|
-
direction: "flex-col",
|
|
1089
|
-
gap: "2rem",
|
|
1090
|
-
},
|
|
1091
|
-
},
|
|
1092
|
-
},
|
|
1093
|
-
],
|
|
1094
|
-
},
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
label: "Social links and newsletter signup",
|
|
1098
|
-
description: `A community engagement section combining social media links with newsletter signup.
|
|
1099
|
-
Shows how to use social-links bricks and forms together.
|
|
1100
|
-
Creates a cohesive call-to-action for community building.`,
|
|
1101
|
-
example: {
|
|
1102
|
-
id: "community-section",
|
|
1103
|
-
label: "Community",
|
|
1104
|
-
order: 12,
|
|
1105
|
-
props: {
|
|
1106
|
-
direction: "flex-col",
|
|
1107
|
-
padding: "4rem",
|
|
1108
|
-
gap: "3rem",
|
|
1109
|
-
colorPreset: { color: "indigo-100" },
|
|
1110
|
-
alignItems: "items-center",
|
|
1111
|
-
maxWidth: "max-w-full",
|
|
1112
|
-
},
|
|
1113
|
-
bricks: [
|
|
1114
|
-
{
|
|
1115
|
-
id: "community-title",
|
|
1116
|
-
type: "text",
|
|
1117
|
-
props: {
|
|
1118
|
-
content:
|
|
1119
|
-
"<h2 style='text-align:center'>Stay Connected</h2><p style='text-align:center'>Join our community and never miss an update.</p>",
|
|
1120
|
-
},
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
id: "social-links",
|
|
1124
|
-
type: "social-links",
|
|
1125
|
-
props: {
|
|
1126
|
-
links: [
|
|
1127
|
-
{ platform: "twitter", url: "https://twitter.com/company" },
|
|
1128
|
-
{ platform: "linkedin", url: "https://linkedin.com/company/company" },
|
|
1129
|
-
{ platform: "github", url: "https://github.com/company" },
|
|
1130
|
-
{ platform: "youtube", url: "https://youtube.com/company" },
|
|
1131
|
-
],
|
|
1132
|
-
size: "large",
|
|
1133
|
-
style: "filled",
|
|
1134
|
-
},
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
id: "newsletter-form",
|
|
1138
|
-
type: "form",
|
|
1139
|
-
props: {
|
|
1140
|
-
title: "Subscribe to Our Newsletter",
|
|
1141
|
-
subtitle: "Get weekly updates and exclusive content delivered to your inbox.",
|
|
1142
|
-
submitLabel: "Subscribe",
|
|
1143
|
-
fields: [
|
|
1144
|
-
{
|
|
1145
|
-
name: "email",
|
|
1146
|
-
label: "Email Address",
|
|
1147
|
-
type: "email",
|
|
1148
|
-
required: true,
|
|
1149
|
-
placeholder: "your@email.com",
|
|
1150
|
-
},
|
|
1151
|
-
],
|
|
1152
|
-
colorPreset: { color: "white" },
|
|
1153
|
-
rounding: "rounded-lg",
|
|
1154
|
-
padding: "2rem",
|
|
1155
|
-
shadow: "shadow-md",
|
|
1156
|
-
},
|
|
1157
|
-
},
|
|
1158
|
-
],
|
|
1159
|
-
},
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
label: "Pricing table with multiple options",
|
|
1163
|
-
description: `A pricing section using card bricks to create a comparison table.
|
|
1164
|
-
Demonstrates how to structure pricing tiers with different features.
|
|
1165
|
-
Uses consistent styling with highlighted premium option.`,
|
|
1166
|
-
example: {
|
|
1167
|
-
id: "pricing-section",
|
|
1168
|
-
label: "Pricing",
|
|
1169
|
-
order: 13,
|
|
1170
|
-
props: {
|
|
1171
|
-
direction: "flex-col",
|
|
1172
|
-
padding: "5rem",
|
|
1173
|
-
gap: "3rem",
|
|
1174
|
-
alignItems: "items-center",
|
|
1175
|
-
},
|
|
1176
|
-
bricks: [
|
|
1177
|
-
{
|
|
1178
|
-
id: "pricing-header",
|
|
1179
|
-
type: "text",
|
|
1180
|
-
props: {
|
|
1181
|
-
content:
|
|
1182
|
-
"<h2 style='text-align:center'>Choose Your Plan</h2><p style='text-align:center'>Select the perfect plan for your needs.</p>",
|
|
1183
|
-
},
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
id: "pricing-cards",
|
|
1187
|
-
type: "box",
|
|
1188
|
-
props: {
|
|
1189
|
-
direction: "flex-row",
|
|
1190
|
-
gap: "2rem",
|
|
1191
|
-
justifyContent: "justify-center",
|
|
1192
|
-
$children: [
|
|
1193
|
-
{
|
|
1194
|
-
id: "basic-plan",
|
|
1195
|
-
type: "card",
|
|
1196
|
-
props: {
|
|
1197
|
-
title: "Basic",
|
|
1198
|
-
subtitle: "$9/month",
|
|
1199
|
-
content: "• 5 Projects<br>• 10GB Storage<br>• Email Support<br>• Basic Templates",
|
|
1200
|
-
colorPreset: { color: "white" },
|
|
1201
|
-
border: { width: "border-2", color: "border-gray-200" },
|
|
1202
|
-
rounding: "rounded-lg",
|
|
1203
|
-
padding: "2rem",
|
|
1204
|
-
shadow: "shadow-md",
|
|
1205
|
-
},
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
id: "pro-plan",
|
|
1209
|
-
type: "card",
|
|
1210
|
-
props: {
|
|
1211
|
-
title: "Pro",
|
|
1212
|
-
subtitle: "$29/month",
|
|
1213
|
-
content:
|
|
1214
|
-
"• Unlimited Projects<br>• 100GB Storage<br>• Priority Support<br>• Premium Templates<br>• Advanced Analytics",
|
|
1215
|
-
colorPreset: { color: "blue-500" },
|
|
1216
|
-
rounding: "rounded-lg",
|
|
1217
|
-
padding: "2rem",
|
|
1218
|
-
shadow: "shadow-lg",
|
|
1219
|
-
border: { width: "border-2", color: "border-blue-400" },
|
|
1220
|
-
},
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
id: "enterprise-plan",
|
|
1224
|
-
type: "card",
|
|
1225
|
-
props: {
|
|
1226
|
-
title: "Enterprise",
|
|
1227
|
-
subtitle: "Custom",
|
|
1228
|
-
content:
|
|
1229
|
-
"• Everything in Pro<br>• Unlimited Storage<br>• 24/7 Phone Support<br>• Custom Integrations<br>• Dedicated Account Manager",
|
|
1230
|
-
colorPreset: { color: "white" },
|
|
1231
|
-
border: { width: "border-2", color: "border-gray-200" },
|
|
1232
|
-
rounding: "rounded-lg",
|
|
1233
|
-
padding: "2rem",
|
|
1234
|
-
shadow: "shadow-md",
|
|
1235
|
-
},
|
|
1236
|
-
},
|
|
1237
|
-
],
|
|
1238
|
-
mobileProps: {
|
|
1239
|
-
direction: "flex-col",
|
|
1240
|
-
},
|
|
1241
|
-
},
|
|
1242
|
-
},
|
|
1243
|
-
],
|
|
1244
|
-
},
|
|
1245
|
-
},
|
|
1246
|
-
];
|