@upstart.gg/sdk 0.0.136 → 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.map +1 -1
- package/dist/shared/ai/schemas.js +24 -29
- package/dist/shared/ai/schemas.js.map +1 -1
- package/dist/shared/ai/types.d.ts +13 -61
- 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 +83 -85
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +20 -23
- 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/accordion.manifest.d.ts +2 -2
- 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.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 +2 -2
- 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 +3 -6
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +2 -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 +2 -2
- 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 +1 -1
- 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 +5 -5
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -6
- 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 +7 -7
- 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 +1 -1
- 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 -154
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +47 -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-LTIJI7Y3.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-KIDICX3Y.js → chunk-6AE7UD73.js} +27 -33
- package/dist/shared/chunk-6AE7UD73.js.map +1 -0
- package/dist/shared/{chunk-CRS7QCPZ.js → chunk-7U5WPHXB.js} +65 -27
- 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-H5JM2M2T.js → chunk-BZTWZC77.js} +46 -31
- package/dist/shared/chunk-BZTWZC77.js.map +1 -0
- package/dist/shared/{chunk-LLNPH3XR.js → chunk-DCM4732T.js} +6 -8
- 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-36PLZKMW.js → chunk-FHA4DFIM.js} +26 -27
- package/dist/shared/chunk-FHA4DFIM.js.map +1 -0
- package/dist/shared/{chunk-L6C7HUSA.js → chunk-FUUSAMN3.js} +21 -24
- 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-YWOTQWIQ.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-EVLRH6VG.js → chunk-J45LSQT6.js} +2 -2
- package/dist/shared/chunk-J45LSQT6.js.map +1 -0
- package/dist/shared/{chunk-DFAFDBYZ.js → chunk-JF52BBFD.js} +27 -28
- package/dist/shared/chunk-JF52BBFD.js.map +1 -0
- package/dist/shared/{chunk-ZR6R6Z6O.js → chunk-JLDAS3VE.js} +34 -32
- 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-KILJYJFE.js → chunk-JW7MQAU4.js} +19 -19
- 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-N3BEBLWF.js → chunk-KQH6V22E.js} +34 -34
- package/dist/shared/{chunk-GFAQWQER.js → chunk-LGDDJJHK.js} +33 -35
- package/dist/shared/chunk-LGDDJJHK.js.map +1 -0
- package/dist/shared/{chunk-FOGAVJC2.js → chunk-LGGPCCCY.js} +3 -3
- package/dist/shared/{chunk-4MNWMEMM.js → chunk-LPAQ47C6.js} +23 -23
- 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-GQTZPN5D.js → chunk-MYOLWTB2.js} +29 -32
- package/dist/shared/chunk-MYOLWTB2.js.map +1 -0
- package/dist/shared/{chunk-KEM5N6GJ.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-LCJ2VFPM.js → chunk-PF75LW33.js} +24 -27
- package/dist/shared/chunk-PF75LW33.js.map +1 -0
- package/dist/shared/{chunk-U5ZECCJM.js → chunk-QEJGPYTB.js} +32 -34
- package/dist/shared/chunk-QEJGPYTB.js.map +1 -0
- package/dist/shared/{chunk-2VDR4ZYY.js → chunk-SK2O7GFC.js} +17 -18
- package/dist/shared/chunk-SK2O7GFC.js.map +1 -0
- package/dist/shared/{chunk-N3ZTQD5I.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-UXTASZ23.js → chunk-T6C3NG2L.js} +66 -63
- package/dist/shared/chunk-T6C3NG2L.js.map +1 -0
- package/dist/shared/{chunk-ZRRAK5NS.js → chunk-TBT2PTGB.js} +41 -33
- package/dist/shared/chunk-TBT2PTGB.js.map +1 -0
- package/dist/shared/{chunk-2IHKVMKW.js → chunk-U4KZUX37.js} +18 -19
- package/dist/shared/chunk-U4KZUX37.js.map +1 -0
- package/dist/shared/{chunk-FQDR2BBZ.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-GIGFNQBO.js → chunk-W2RFDII5.js} +3 -3
- 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-42OUNI7C.js → chunk-XK2CERPB.js} +27 -29
- 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-F247VKAE.js → chunk-ZVJNRKT4.js} +18 -20
- package/dist/shared/chunk-ZVJNRKT4.js.map +1 -0
- package/dist/shared/context.d.ts +402 -23
- 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 +3 -3
- package/dist/shared/datarecords/types.d.ts.map +1 -1
- package/dist/shared/datarecords/types.js +3 -2
- 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/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/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 +74 -191
- 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 +4 -326
- 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 +24 -29
- package/src/shared/ai/types.ts +22 -88
- package/src/shared/attributes.ts +53 -51
- package/src/shared/brick-manifest.ts +5 -6
- package/src/shared/bricks/manifests/accordion.manifest.ts +11 -11
- package/src/shared/bricks/manifests/all-props.ts +165 -0
- package/src/shared/bricks/manifests/box.manifest.ts +19 -21
- package/src/shared/bricks/manifests/button.manifest.ts +54 -16
- package/src/shared/bricks/manifests/card.manifest.ts +32 -18
- package/src/shared/bricks/manifests/carousel.manifest.ts +11 -13
- package/src/shared/bricks/manifests/footer.manifest.ts +16 -15
- package/src/shared/bricks/manifests/form.manifest.ts +14 -15
- package/src/shared/bricks/manifests/hero.manifest.ts +18 -20
- package/src/shared/bricks/manifests/icon.manifest.ts +9 -10
- package/src/shared/bricks/manifests/image.manifest.ts +22 -19
- package/src/shared/bricks/manifests/images-gallery.manifest.ts +13 -15
- package/src/shared/bricks/manifests/map.manifest.ts +10 -10
- package/src/shared/bricks/manifests/navbar.manifest.ts +20 -21
- package/src/shared/bricks/manifests/sidebar.manifest.ts +9 -9
- package/src/shared/bricks/manifests/social-links.manifest.ts +17 -19
- package/src/shared/bricks/manifests/table.manifest.ts +15 -15
- package/src/shared/bricks/manifests/tabs.manifest.ts +14 -16
- package/src/shared/bricks/manifests/testimonials.manifest.ts +21 -20
- package/src/shared/bricks/manifests/text.manifest.ts +16 -19
- package/src/shared/bricks/manifests/timeline.manifest.ts +29 -24
- package/src/shared/bricks/manifests/video.manifest.ts +9 -10
- 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 +5 -18
- 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 +156 -1020
- package/src/shared/context.ts +24 -24
- package/src/shared/datarecords/external/airtable/types.ts +12 -11
- package/src/shared/datarecords/types.ts +2 -34
- 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/images.ts +12 -18
- package/src/shared/page.ts +9 -1
- package/src/shared/sitemap.ts +3 -70
- 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 +70 -313
- package/dist/shared/chunk-2IHKVMKW.js.map +0 -1
- package/dist/shared/chunk-2RK3CPYJ.js.map +0 -1
- package/dist/shared/chunk-2VDR4ZYY.js.map +0 -1
- package/dist/shared/chunk-36PLZKMW.js.map +0 -1
- package/dist/shared/chunk-42OUNI7C.js.map +0 -1
- package/dist/shared/chunk-4MNWMEMM.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-BPBKHEQ5.js.map +0 -1
- package/dist/shared/chunk-CRS7QCPZ.js.map +0 -1
- package/dist/shared/chunk-CSF2WQX2.js.map +0 -1
- package/dist/shared/chunk-DFAFDBYZ.js.map +0 -1
- package/dist/shared/chunk-DV3G7X34.js +0 -244
- package/dist/shared/chunk-DV3G7X34.js.map +0 -1
- package/dist/shared/chunk-EVLRH6VG.js.map +0 -1
- package/dist/shared/chunk-F22LDHEO.js.map +0 -1
- package/dist/shared/chunk-F247VKAE.js.map +0 -1
- package/dist/shared/chunk-FQDR2BBZ.js.map +0 -1
- package/dist/shared/chunk-GFAQWQER.js.map +0 -1
- package/dist/shared/chunk-GQTZPN5D.js.map +0 -1
- package/dist/shared/chunk-H5JM2M2T.js.map +0 -1
- package/dist/shared/chunk-HTUSL2U7.js +0 -260
- package/dist/shared/chunk-HTUSL2U7.js.map +0 -1
- package/dist/shared/chunk-IQIISR22.js +0 -794
- package/dist/shared/chunk-IQIISR22.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-KEM5N6GJ.js.map +0 -1
- package/dist/shared/chunk-KIDICX3Y.js.map +0 -1
- package/dist/shared/chunk-KILJYJFE.js.map +0 -1
- package/dist/shared/chunk-L6C7HUSA.js.map +0 -1
- package/dist/shared/chunk-LCJ2VFPM.js.map +0 -1
- package/dist/shared/chunk-LLNPH3XR.js.map +0 -1
- package/dist/shared/chunk-LTIJI7Y3.js.map +0 -1
- package/dist/shared/chunk-MFNHFN2B.js +0 -103
- package/dist/shared/chunk-MFNHFN2B.js.map +0 -1
- package/dist/shared/chunk-N3ZTQD5I.js.map +0 -1
- package/dist/shared/chunk-NTLAKMMQ.js.map +0 -1
- package/dist/shared/chunk-Q4NPPLEU.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-TFGGYU6Y.js.map +0 -1
- package/dist/shared/chunk-TNMNMYOB.js.map +0 -1
- package/dist/shared/chunk-TNTFKLCR.js +0 -1225
- package/dist/shared/chunk-TNTFKLCR.js.map +0 -1
- package/dist/shared/chunk-U5ZECCJM.js.map +0 -1
- package/dist/shared/chunk-UXTASZ23.js.map +0 -1
- package/dist/shared/chunk-W6MRYRGJ.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-Y74LZNND.js.map +0 -1
- package/dist/shared/chunk-YWOTQWIQ.js.map +0 -1
- package/dist/shared/chunk-ZLYIRH2B.js.map +0 -1
- package/dist/shared/chunk-ZR6R6Z6O.js.map +0 -1
- package/dist/shared/chunk-ZRRAK5NS.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/schema-registry.js.map +0 -1
- 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/tests/schema-registry.test.ts +0 -12
- 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/{chunk-N3BEBLWF.js.map → chunk-KQH6V22E.js.map} +0 -0
- /package/dist/shared/{chunk-FOGAVJC2.js.map → chunk-LGGPCCCY.js.map} +0 -0
- /package/dist/shared/{chunk-GIGFNQBO.js.map → chunk-W2RFDII5.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
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
|
{
|
|
@@ -112,7 +135,7 @@ export function makeFullBrickSchemaForLLM(type: string, otherTypes?: string[]) {
|
|
|
112
135
|
description: "A unique identifier for the brick.",
|
|
113
136
|
}),
|
|
114
137
|
type: Type.Literal(type),
|
|
115
|
-
props
|
|
138
|
+
props,
|
|
116
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
|
|
@@ -123,116 +146,112 @@ export function makeFullBrickSchemaForLLM(type: string, otherTypes?: string[]) {
|
|
|
123
146
|
|
|
124
147
|
export type Brick = Omit<Static<typeof brickSchema>, "props" | "mobileProps"> & {
|
|
125
148
|
props: CommonBrickProps & Record<string, unknown>;
|
|
126
|
-
mobileProps?: CommonBrickProps & Record<string, unknown
|
|
149
|
+
mobileProps?: Partial<CommonBrickProps & Record<string, unknown>>;
|
|
127
150
|
};
|
|
128
151
|
|
|
129
|
-
export const sectionProps = Type.Object(
|
|
130
|
-
|
|
131
|
-
colorPreset
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
),
|
|
143
|
-
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({
|
|
144
165
|
default: "flex-row",
|
|
145
166
|
title: "Direction",
|
|
146
|
-
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.",
|
|
147
169
|
"ui:responsive": "desktop",
|
|
148
170
|
}),
|
|
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
|
-
|
|
184
|
-
default
|
|
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
|
-
|
|
233
|
-
additionalProperties: false,
|
|
234
|
-
},
|
|
235
|
-
);
|
|
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
|
+
});
|
|
236
255
|
|
|
237
256
|
export const sectionSchema = Type.Object(
|
|
238
257
|
{
|
|
@@ -248,7 +267,7 @@ export const sectionSchema = Type.Object(
|
|
|
248
267
|
description: "Determines section order in the page (lower numbers appear first). 0-based",
|
|
249
268
|
}),
|
|
250
269
|
props: sectionProps,
|
|
251
|
-
mobileProps: Type.Optional(Type.Partial(sectionProps
|
|
270
|
+
mobileProps: Type.Optional(Type.Partial(sectionProps)),
|
|
252
271
|
bricks: Type.Array(brickSchema),
|
|
253
272
|
},
|
|
254
273
|
{
|
|
@@ -256,12 +275,9 @@ export const sectionSchema = Type.Object(
|
|
|
256
275
|
},
|
|
257
276
|
);
|
|
258
277
|
|
|
259
|
-
export const sectionSchemaLLM = toLLMSchema(sectionSchema);
|
|
260
278
|
export const sectionSchemaNoBricks = Type.Omit(sectionSchema, ["bricks"]);
|
|
261
279
|
export type SectionSchemaNoBricks = Static<typeof sectionSchemaNoBricks>;
|
|
262
280
|
|
|
263
|
-
export const sectionSchemaNoBricksLLM = toLLMSchema(sectionSchemaNoBricks);
|
|
264
|
-
|
|
265
281
|
const sectionDefaultprops = getSchemaDefaults(sectionSchema.properties.props, "desktop") as Section["props"];
|
|
266
282
|
const sectionMobileDefaultprops = getSchemaDefaults(
|
|
267
283
|
sectionSchema.properties.mobileProps,
|
|
@@ -367,883 +383,3 @@ export function createEmptyBrick(type: string, ghost = false): Brick {
|
|
|
367
383
|
};
|
|
368
384
|
return newBrick;
|
|
369
385
|
}
|
|
370
|
-
|
|
371
|
-
export const sectionsExamples: { label: string; description: string; example: Section }[] = [
|
|
372
|
-
{
|
|
373
|
-
label: "Hero section with centered 'hero' and 'button' bricks",
|
|
374
|
-
description: `A simple hero section with a title and a light primary background.
|
|
375
|
-
The "hero" brick does not have a colorPreset so it is transparent and inherits the background/text-color settings from the section.
|
|
376
|
-
Bricks are centered both vertically and horizontally using justifyContent and alignItems.
|
|
377
|
-
Bricks are stacked vertically using the "direction" set to "flex-col".
|
|
378
|
-
`,
|
|
379
|
-
example: {
|
|
380
|
-
id: "hero-section",
|
|
381
|
-
label: "Hero",
|
|
382
|
-
order: 0,
|
|
383
|
-
props: {
|
|
384
|
-
colorPreset: { color: "primary-100" },
|
|
385
|
-
direction: "flex-col",
|
|
386
|
-
padding: "6rem",
|
|
387
|
-
gap: "3rem",
|
|
388
|
-
justifyContent: "justify-center",
|
|
389
|
-
alignItems: "items-center",
|
|
390
|
-
},
|
|
391
|
-
bricks: [
|
|
392
|
-
{
|
|
393
|
-
id: "hero",
|
|
394
|
-
type: "hero",
|
|
395
|
-
label: "Main hero title",
|
|
396
|
-
props: {
|
|
397
|
-
content: "<h1 style='text-align:center'>Welcome to my SaaS</h1>",
|
|
398
|
-
tagline: "The future of productivity starts here",
|
|
399
|
-
},
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
id: "cta-button",
|
|
403
|
-
type: "button",
|
|
404
|
-
label: "Call to action button",
|
|
405
|
-
props: {
|
|
406
|
-
label: "Get Started",
|
|
407
|
-
href: "/signup",
|
|
408
|
-
colorPreset: { color: "primary-500", variant: "solid" },
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
],
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
label: "Contact section with a text and a form",
|
|
416
|
-
description: `A contact section with a title and a form.
|
|
417
|
-
The section has a light gray background using a colorPreset.
|
|
418
|
-
Bricks are stacked vertically using the "direction" set to "flex-col".
|
|
419
|
-
`,
|
|
420
|
-
example: {
|
|
421
|
-
id: "contact-section",
|
|
422
|
-
label: "Contact",
|
|
423
|
-
order: 1,
|
|
424
|
-
props: {
|
|
425
|
-
colorPreset: { color: "gray-100" },
|
|
426
|
-
direction: "flex-col",
|
|
427
|
-
padding: "4rem",
|
|
428
|
-
gap: "2rem",
|
|
429
|
-
justifyContent: "justify-center",
|
|
430
|
-
alignItems: "items-center",
|
|
431
|
-
},
|
|
432
|
-
bricks: [
|
|
433
|
-
{
|
|
434
|
-
id: "contact-title",
|
|
435
|
-
type: "text",
|
|
436
|
-
props: {
|
|
437
|
-
content: "<h2>Get in Touch</h2>",
|
|
438
|
-
},
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
id: "contact-form",
|
|
442
|
-
type: "form",
|
|
443
|
-
props: {
|
|
444
|
-
title: "Contact Us",
|
|
445
|
-
fields: [
|
|
446
|
-
{ name: "name", label: "Name", type: "text", required: true },
|
|
447
|
-
{ name: "email", label: "Email", type: "email", required: true },
|
|
448
|
-
{ name: "message", label: "Message", type: "textarea", required: true },
|
|
449
|
-
],
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
],
|
|
453
|
-
},
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
label: "Feature showcase with horizontal layout and container brick",
|
|
457
|
-
description: `A features section using horizontal layout with a container "box" brick that holds multiple feature items.
|
|
458
|
-
The box brick is the only container type that can hold $children (other bricks).
|
|
459
|
-
This demonstrates nested brick structure where the box contains multiple feature bricks.`,
|
|
460
|
-
example: {
|
|
461
|
-
id: "features-section",
|
|
462
|
-
label: "Features",
|
|
463
|
-
order: 2,
|
|
464
|
-
props: {
|
|
465
|
-
direction: "flex-col",
|
|
466
|
-
padding: "5rem",
|
|
467
|
-
gap: "3rem",
|
|
468
|
-
maxWidth: "max-w-screen-xl",
|
|
469
|
-
justifyContent: "justify-center",
|
|
470
|
-
alignItems: "items-center",
|
|
471
|
-
},
|
|
472
|
-
bricks: [
|
|
473
|
-
{
|
|
474
|
-
id: "features-title",
|
|
475
|
-
type: "text",
|
|
476
|
-
props: {
|
|
477
|
-
content: "<h2 style='text-align:center'>Our Features</h2>",
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
id: "features-container",
|
|
482
|
-
type: "box",
|
|
483
|
-
props: {
|
|
484
|
-
direction: "flex-row",
|
|
485
|
-
gap: "2rem",
|
|
486
|
-
padding: "2rem",
|
|
487
|
-
$children: [
|
|
488
|
-
{
|
|
489
|
-
id: "feature-1",
|
|
490
|
-
type: "text",
|
|
491
|
-
props: {
|
|
492
|
-
content: "<h3>Fast</h3><p>Lightning-fast performance for your needs.</p>",
|
|
493
|
-
colorPreset: { color: "blue-500" },
|
|
494
|
-
},
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
id: "feature-2",
|
|
498
|
-
type: "text",
|
|
499
|
-
props: {
|
|
500
|
-
content: "<h3>Secure</h3><p>Enterprise-grade security built-in.</p>",
|
|
501
|
-
colorPreset: { color: "green-500" },
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
id: "feature-3",
|
|
506
|
-
type: "text",
|
|
507
|
-
props: {
|
|
508
|
-
content: "<h3>Scalable</h3><p>Grows with your business seamlessly.</p>",
|
|
509
|
-
colorPreset: { color: "purple-500" },
|
|
510
|
-
},
|
|
511
|
-
},
|
|
512
|
-
],
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
],
|
|
516
|
-
},
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
label: "Media-rich section with image and text side by side",
|
|
520
|
-
description: `A content section using horizontal layout to place an image next to text content.
|
|
521
|
-
Demonstrates how direction "flex-row" arranges bricks horizontally.
|
|
522
|
-
The section uses responsive mobile overrides to stack vertically on mobile.`,
|
|
523
|
-
example: {
|
|
524
|
-
id: "about-section",
|
|
525
|
-
label: "About",
|
|
526
|
-
order: 3,
|
|
527
|
-
props: {
|
|
528
|
-
direction: "flex-row",
|
|
529
|
-
padding: "4rem",
|
|
530
|
-
gap: "3rem",
|
|
531
|
-
alignItems: "items-center",
|
|
532
|
-
maxWidth: "max-w-screen-xl",
|
|
533
|
-
},
|
|
534
|
-
mobileProps: {
|
|
535
|
-
direction: "flex-col",
|
|
536
|
-
padding: "2rem",
|
|
537
|
-
},
|
|
538
|
-
bricks: [
|
|
539
|
-
{
|
|
540
|
-
id: "about-image",
|
|
541
|
-
type: "image",
|
|
542
|
-
props: {
|
|
543
|
-
src: "https://example.com/about-image.jpg",
|
|
544
|
-
alt: "About our company",
|
|
545
|
-
width: "400px",
|
|
546
|
-
height: "300px",
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
id: "about-text",
|
|
551
|
-
type: "text",
|
|
552
|
-
props: {
|
|
553
|
-
content:
|
|
554
|
-
"<h2>About Us</h2><p>We are a leading company in innovative solutions, dedicated to transforming how businesses operate in the digital age.</p>",
|
|
555
|
-
},
|
|
556
|
-
},
|
|
557
|
-
],
|
|
558
|
-
},
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
label: "Complex nested layout with multiple container levels",
|
|
562
|
-
description: `Advanced example showing deeply nested brick structure using multiple box containers.
|
|
563
|
-
Demonstrates how box bricks can contain other box bricks, creating sophisticated layouts.
|
|
564
|
-
Shows responsive design with different mobile arrangements.`,
|
|
565
|
-
example: {
|
|
566
|
-
id: "complex-layout-section",
|
|
567
|
-
label: "Complex layout",
|
|
568
|
-
order: 4,
|
|
569
|
-
props: {
|
|
570
|
-
direction: "flex-col",
|
|
571
|
-
padding: "4rem",
|
|
572
|
-
gap: "2rem",
|
|
573
|
-
backgroundImage: { image: "https://example.com/bg.jpg" },
|
|
574
|
-
},
|
|
575
|
-
bricks: [
|
|
576
|
-
{
|
|
577
|
-
id: "main-container",
|
|
578
|
-
type: "box",
|
|
579
|
-
props: {
|
|
580
|
-
direction: "flex-row",
|
|
581
|
-
gap: "2rem",
|
|
582
|
-
padding: "2rem",
|
|
583
|
-
$children: [
|
|
584
|
-
{
|
|
585
|
-
id: "left-column",
|
|
586
|
-
type: "box",
|
|
587
|
-
props: {
|
|
588
|
-
direction: "flex-col",
|
|
589
|
-
gap: "1rem",
|
|
590
|
-
colorPreset: { color: "gray-50" },
|
|
591
|
-
padding: "1.5rem",
|
|
592
|
-
$children: [
|
|
593
|
-
{
|
|
594
|
-
id: "left-title",
|
|
595
|
-
type: "text",
|
|
596
|
-
props: {
|
|
597
|
-
content: "<h3>Left Column</h3>",
|
|
598
|
-
},
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
id: "left-button",
|
|
602
|
-
type: "button",
|
|
603
|
-
props: {
|
|
604
|
-
label: "Learn More",
|
|
605
|
-
href: "/learn",
|
|
606
|
-
colorPreset: { color: "blue-500", variant: "outline" },
|
|
607
|
-
},
|
|
608
|
-
},
|
|
609
|
-
],
|
|
610
|
-
},
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
id: "right-column",
|
|
614
|
-
type: "box",
|
|
615
|
-
props: {
|
|
616
|
-
direction: "flex-col",
|
|
617
|
-
gap: "1rem",
|
|
618
|
-
colorPreset: { color: "blue-50" },
|
|
619
|
-
padding: "1.5rem",
|
|
620
|
-
$children: [
|
|
621
|
-
{
|
|
622
|
-
id: "right-image",
|
|
623
|
-
type: "image",
|
|
624
|
-
props: {
|
|
625
|
-
src: "https://example.com/feature.jpg",
|
|
626
|
-
alt: "Feature showcase",
|
|
627
|
-
width: "100%",
|
|
628
|
-
},
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
id: "right-text",
|
|
632
|
-
type: "text",
|
|
633
|
-
props: {
|
|
634
|
-
content: "<p>Detailed description of our amazing features and capabilities.</p>",
|
|
635
|
-
},
|
|
636
|
-
},
|
|
637
|
-
],
|
|
638
|
-
},
|
|
639
|
-
},
|
|
640
|
-
],
|
|
641
|
-
mobileProps: {
|
|
642
|
-
direction: "flex-col",
|
|
643
|
-
},
|
|
644
|
-
},
|
|
645
|
-
},
|
|
646
|
-
],
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
label: "Footer-style section with multiple columns",
|
|
651
|
-
description: `A footer-like section demonstrating horizontal layout with multiple informational columns.
|
|
652
|
-
Uses the footer variant for special styling and contains multiple text bricks arranged horizontally.
|
|
653
|
-
Shows how to create multi-column layouts using direction and gap properties.`,
|
|
654
|
-
example: {
|
|
655
|
-
id: "info-footer-section",
|
|
656
|
-
label: "Info footer",
|
|
657
|
-
order: 5,
|
|
658
|
-
props: {
|
|
659
|
-
variant: "footer",
|
|
660
|
-
direction: "flex-row",
|
|
661
|
-
padding: "3rem",
|
|
662
|
-
gap: "4rem",
|
|
663
|
-
colorPreset: { color: "gray-800" },
|
|
664
|
-
justifyContent: "justify-center",
|
|
665
|
-
},
|
|
666
|
-
mobileProps: {
|
|
667
|
-
direction: "flex-col",
|
|
668
|
-
gap: "2rem",
|
|
669
|
-
},
|
|
670
|
-
bricks: [
|
|
671
|
-
{
|
|
672
|
-
id: "company-info",
|
|
673
|
-
type: "text",
|
|
674
|
-
props: {
|
|
675
|
-
content:
|
|
676
|
-
"<h4 style='color:white'>Company</h4><p style='color:gray'>About Us<br>Careers<br>Contact</p>",
|
|
677
|
-
},
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
id: "product-info",
|
|
681
|
-
type: "text",
|
|
682
|
-
props: {
|
|
683
|
-
content:
|
|
684
|
-
"<h4 style='color:white'>Product</h4><p style='color:gray'>Features<br>Pricing<br>Documentation</p>",
|
|
685
|
-
},
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
id: "support-info",
|
|
689
|
-
type: "text",
|
|
690
|
-
props: {
|
|
691
|
-
content:
|
|
692
|
-
"<h4 style='color:white'>Support</h4><p style='color:gray'>Help Center<br>Community<br>Status</p>",
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
],
|
|
696
|
-
},
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
label: "Video showcase section with title and description",
|
|
700
|
-
description: `A media section featuring a YouTube video with accompanying text.
|
|
701
|
-
Shows how to use video bricks for multimedia content.
|
|
702
|
-
The section uses a light background to make the video stand out.`,
|
|
703
|
-
example: {
|
|
704
|
-
id: "video-showcase-section",
|
|
705
|
-
label: "Video showcase",
|
|
706
|
-
order: 6,
|
|
707
|
-
props: {
|
|
708
|
-
direction: "flex-col",
|
|
709
|
-
padding: "4rem",
|
|
710
|
-
gap: "2rem",
|
|
711
|
-
colorPreset: { color: "gray-50" },
|
|
712
|
-
alignItems: "items-center",
|
|
713
|
-
maxWidth: "max-w-screen-lg",
|
|
714
|
-
},
|
|
715
|
-
bricks: [
|
|
716
|
-
{
|
|
717
|
-
id: "video-title",
|
|
718
|
-
type: "text",
|
|
719
|
-
props: {
|
|
720
|
-
content: "<h2 style='text-align:center'>Watch Our Demo</h2>",
|
|
721
|
-
},
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
id: "demo-video",
|
|
725
|
-
type: "video",
|
|
726
|
-
props: {
|
|
727
|
-
url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
|
|
728
|
-
title: "Product Demo Video",
|
|
729
|
-
},
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
id: "video-description",
|
|
733
|
-
type: "text",
|
|
734
|
-
props: {
|
|
735
|
-
content:
|
|
736
|
-
"<p style='text-align:center'>See how our platform can transform your workflow in just 2 minutes.</p>",
|
|
737
|
-
},
|
|
738
|
-
},
|
|
739
|
-
],
|
|
740
|
-
},
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
label: "Image gallery section with carousel",
|
|
744
|
-
description: `A media-rich section showcasing an image carousel.
|
|
745
|
-
Demonstrates how to use carousel bricks for displaying multiple images.
|
|
746
|
-
Perfect for portfolios, product showcases, or photo galleries.`,
|
|
747
|
-
example: {
|
|
748
|
-
id: "gallery-section",
|
|
749
|
-
label: "Gallery",
|
|
750
|
-
order: 7,
|
|
751
|
-
props: {
|
|
752
|
-
direction: "flex-col",
|
|
753
|
-
padding: "4rem",
|
|
754
|
-
gap: "2rem",
|
|
755
|
-
alignItems: "items-center",
|
|
756
|
-
},
|
|
757
|
-
bricks: [
|
|
758
|
-
{
|
|
759
|
-
id: "gallery-title",
|
|
760
|
-
type: "text",
|
|
761
|
-
props: {
|
|
762
|
-
content: "<h2 style='text-align:center'>Our Portfolio</h2>",
|
|
763
|
-
},
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
id: "portfolio-carousel",
|
|
767
|
-
type: "carousel",
|
|
768
|
-
props: {
|
|
769
|
-
images: [
|
|
770
|
-
{ src: "https://example.com/project1.jpg", alt: "Project 1" },
|
|
771
|
-
{ src: "https://example.com/project2.jpg", alt: "Project 2" },
|
|
772
|
-
{ src: "https://example.com/project3.jpg", alt: "Project 3" },
|
|
773
|
-
],
|
|
774
|
-
autoplay: true,
|
|
775
|
-
showDots: true,
|
|
776
|
-
},
|
|
777
|
-
},
|
|
778
|
-
],
|
|
779
|
-
},
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
label: "Interactive form section with styled inputs",
|
|
783
|
-
description: `A comprehensive form section for user registration or contact.
|
|
784
|
-
Shows how to create forms with various field types and validation.
|
|
785
|
-
Uses a card-like appearance with rounded corners and shadow.`,
|
|
786
|
-
example: {
|
|
787
|
-
id: "signup-form-section",
|
|
788
|
-
label: "Signup form",
|
|
789
|
-
order: 8,
|
|
790
|
-
props: {
|
|
791
|
-
direction: "flex-col",
|
|
792
|
-
padding: "4rem",
|
|
793
|
-
gap: "2rem",
|
|
794
|
-
colorPreset: { color: "blue-50" },
|
|
795
|
-
alignItems: "items-center",
|
|
796
|
-
},
|
|
797
|
-
bricks: [
|
|
798
|
-
{
|
|
799
|
-
id: "form-header",
|
|
800
|
-
type: "text",
|
|
801
|
-
props: {
|
|
802
|
-
content:
|
|
803
|
-
"<h2 style='text-align:center'>Join Our Platform</h2><p style='text-align:center'>Create your account and start building today.</p>",
|
|
804
|
-
},
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
id: "registration-form",
|
|
808
|
-
type: "form",
|
|
809
|
-
props: {
|
|
810
|
-
title: "Sign Up",
|
|
811
|
-
submitLabel: "Create Account",
|
|
812
|
-
fields: [
|
|
813
|
-
{ name: "firstName", label: "First Name", type: "text", required: true },
|
|
814
|
-
{ name: "lastName", label: "Last Name", type: "text", required: true },
|
|
815
|
-
{ name: "email", label: "Email Address", type: "email", required: true },
|
|
816
|
-
{ name: "password", label: "Password", type: "password", required: true },
|
|
817
|
-
{ name: "company", label: "Company", type: "text", required: false },
|
|
818
|
-
{ name: "newsletter", label: "Subscribe to newsletter", type: "checkbox", required: false },
|
|
819
|
-
],
|
|
820
|
-
colorPreset: { color: "white" },
|
|
821
|
-
shadow: "shadow-lg",
|
|
822
|
-
rounding: "rounded-lg",
|
|
823
|
-
padding: "2rem",
|
|
824
|
-
},
|
|
825
|
-
},
|
|
826
|
-
],
|
|
827
|
-
},
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
label: "Testimonials section with customer feedback",
|
|
831
|
-
description: `A social proof section using the testimonials brick to display customer feedback.
|
|
832
|
-
Shows how to structure testimonials with avatars, company information, and social icons.
|
|
833
|
-
Perfect for building trust and credibility with potential customers.`,
|
|
834
|
-
example: {
|
|
835
|
-
id: "testimonials-section",
|
|
836
|
-
label: "Testimonials",
|
|
837
|
-
order: 9,
|
|
838
|
-
props: {
|
|
839
|
-
direction: "flex-col",
|
|
840
|
-
padding: "5rem",
|
|
841
|
-
gap: "3rem",
|
|
842
|
-
colorPreset: { color: "purple-50" },
|
|
843
|
-
alignItems: "items-center",
|
|
844
|
-
},
|
|
845
|
-
bricks: [
|
|
846
|
-
{
|
|
847
|
-
id: "testimonials-title",
|
|
848
|
-
type: "text",
|
|
849
|
-
props: {
|
|
850
|
-
content: "<h2 style='text-align:center'>What Our Customers Say</h2>",
|
|
851
|
-
},
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
id: "customer-testimonials",
|
|
855
|
-
type: "testimonials",
|
|
856
|
-
props: {
|
|
857
|
-
testimonials: [
|
|
858
|
-
{
|
|
859
|
-
text: "This platform has completely transformed how we handle our projects. The automation features and intuitive interface have saved us countless hours every week.",
|
|
860
|
-
author: "Sarah Johnson",
|
|
861
|
-
company: "TechCorp Solutions",
|
|
862
|
-
avatar: {
|
|
863
|
-
src: "https://via.placeholder.com/80x80.png?text=SJ",
|
|
864
|
-
alt: "Sarah Johnson profile photo",
|
|
865
|
-
},
|
|
866
|
-
socialIcon: "mdi:linkedin",
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
text: "Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!",
|
|
870
|
-
author: "Mike Chen",
|
|
871
|
-
company: "StartupFlow",
|
|
872
|
-
avatar: {
|
|
873
|
-
src: "https://via.placeholder.com/80x80.png?text=MC",
|
|
874
|
-
alt: "Mike Chen profile photo",
|
|
875
|
-
},
|
|
876
|
-
socialIcon: "mdi:twitter",
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
text: "The results speak for themselves - our productivity increased by 40% after implementing this solution. It's like having an extra team member.",
|
|
880
|
-
author: "Emily Rodriguez",
|
|
881
|
-
company: "Digital Agency Pro",
|
|
882
|
-
avatar: {
|
|
883
|
-
src: "https://via.placeholder.com/80x80.png?text=ER",
|
|
884
|
-
alt: "Emily Rodriguez profile photo",
|
|
885
|
-
},
|
|
886
|
-
socialIcon: "mdi:briefcase",
|
|
887
|
-
},
|
|
888
|
-
],
|
|
889
|
-
colorPreset: { color: "white" },
|
|
890
|
-
shadow: "shadow-lg",
|
|
891
|
-
padding: "2rem",
|
|
892
|
-
gap: "2rem",
|
|
893
|
-
},
|
|
894
|
-
},
|
|
895
|
-
],
|
|
896
|
-
},
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
label: "Location and contact information with map",
|
|
900
|
-
description: `A contact section featuring an interactive map alongside contact details.
|
|
901
|
-
Shows how to combine map bricks with text and contact information.
|
|
902
|
-
Perfect for businesses with physical locations.`,
|
|
903
|
-
example: {
|
|
904
|
-
id: "location-section",
|
|
905
|
-
label: "Location",
|
|
906
|
-
order: 10,
|
|
907
|
-
props: {
|
|
908
|
-
direction: "flex-row",
|
|
909
|
-
padding: "4rem",
|
|
910
|
-
gap: "3rem",
|
|
911
|
-
alignItems: "items-start",
|
|
912
|
-
},
|
|
913
|
-
mobileProps: {
|
|
914
|
-
direction: "flex-col",
|
|
915
|
-
},
|
|
916
|
-
bricks: [
|
|
917
|
-
{
|
|
918
|
-
id: "contact-details",
|
|
919
|
-
type: "box",
|
|
920
|
-
props: {
|
|
921
|
-
direction: "flex-col",
|
|
922
|
-
gap: "2rem",
|
|
923
|
-
padding: "2rem",
|
|
924
|
-
colorPreset: { color: "gray-50" },
|
|
925
|
-
rounding: "rounded-lg",
|
|
926
|
-
$children: [
|
|
927
|
-
{
|
|
928
|
-
id: "office-title",
|
|
929
|
-
type: "text",
|
|
930
|
-
props: {
|
|
931
|
-
content: "<h3>Visit Our Office</h3>",
|
|
932
|
-
},
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
id: "address",
|
|
936
|
-
type: "text",
|
|
937
|
-
props: {
|
|
938
|
-
content:
|
|
939
|
-
"<p><strong>Address:</strong><br>123 Business Street<br>Suite 100<br>San Francisco, CA 94105</p>",
|
|
940
|
-
},
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
id: "contact-info",
|
|
944
|
-
type: "text",
|
|
945
|
-
props: {
|
|
946
|
-
content:
|
|
947
|
-
"<p><strong>Phone:</strong> +1 (555) 123-4567<br><strong>Email:</strong> hello@company.com</p>",
|
|
948
|
-
},
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
id: "hours",
|
|
952
|
-
type: "text",
|
|
953
|
-
props: {
|
|
954
|
-
content:
|
|
955
|
-
"<p><strong>Business Hours:</strong><br>Monday - Friday: 9:00 AM - 6:00 PM<br>Saturday: 10:00 AM - 4:00 PM</p>",
|
|
956
|
-
},
|
|
957
|
-
},
|
|
958
|
-
],
|
|
959
|
-
},
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
id: "office-map",
|
|
963
|
-
type: "map",
|
|
964
|
-
props: {
|
|
965
|
-
address: "123 Business Street, San Francisco, CA 94105",
|
|
966
|
-
zoom: 15,
|
|
967
|
-
height: "400px",
|
|
968
|
-
},
|
|
969
|
-
},
|
|
970
|
-
],
|
|
971
|
-
},
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
label: "Statistics showcase with icons and numbers",
|
|
975
|
-
description: `A metrics section displaying key statistics using icon and text bricks.
|
|
976
|
-
Demonstrates how to create compelling data visualizations.
|
|
977
|
-
Uses horizontal layout with consistent spacing and visual hierarchy.`,
|
|
978
|
-
example: {
|
|
979
|
-
id: "stats-section",
|
|
980
|
-
label: "Stats",
|
|
981
|
-
order: 11,
|
|
982
|
-
props: {
|
|
983
|
-
direction: "flex-col",
|
|
984
|
-
padding: "5rem",
|
|
985
|
-
gap: "3rem",
|
|
986
|
-
colorPreset: { color: "gradient", gradientDirection: "bg-gradient-to-r" },
|
|
987
|
-
alignItems: "items-center",
|
|
988
|
-
},
|
|
989
|
-
bricks: [
|
|
990
|
-
{
|
|
991
|
-
id: "stats-title",
|
|
992
|
-
type: "text",
|
|
993
|
-
props: {
|
|
994
|
-
content: "<h2 style='text-align:center; color:white'>Our Impact</h2>",
|
|
995
|
-
},
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
id: "stats-container",
|
|
999
|
-
type: "box",
|
|
1000
|
-
props: {
|
|
1001
|
-
direction: "flex-row",
|
|
1002
|
-
gap: "4rem",
|
|
1003
|
-
justifyContent: "justify-center",
|
|
1004
|
-
$children: [
|
|
1005
|
-
{
|
|
1006
|
-
id: "users-stat",
|
|
1007
|
-
type: "box",
|
|
1008
|
-
props: {
|
|
1009
|
-
direction: "flex-col",
|
|
1010
|
-
gap: "1rem",
|
|
1011
|
-
alignItems: "items-center",
|
|
1012
|
-
$children: [
|
|
1013
|
-
{
|
|
1014
|
-
id: "users-icon",
|
|
1015
|
-
type: "icon",
|
|
1016
|
-
props: {
|
|
1017
|
-
icon: "users",
|
|
1018
|
-
size: "3rem",
|
|
1019
|
-
color: "white",
|
|
1020
|
-
},
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
id: "users-number",
|
|
1024
|
-
type: "text",
|
|
1025
|
-
props: {
|
|
1026
|
-
content:
|
|
1027
|
-
"<h3 style='color:white; text-align:center'>50K+</h3><p style='color:white; text-align:center'>Active Users</p>",
|
|
1028
|
-
},
|
|
1029
|
-
},
|
|
1030
|
-
],
|
|
1031
|
-
},
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
id: "projects-stat",
|
|
1035
|
-
type: "box",
|
|
1036
|
-
props: {
|
|
1037
|
-
direction: "flex-col",
|
|
1038
|
-
gap: "1rem",
|
|
1039
|
-
alignItems: "items-center",
|
|
1040
|
-
$children: [
|
|
1041
|
-
{
|
|
1042
|
-
id: "projects-icon",
|
|
1043
|
-
type: "icon",
|
|
1044
|
-
props: {
|
|
1045
|
-
icon: "briefcase",
|
|
1046
|
-
size: "3rem",
|
|
1047
|
-
color: "white",
|
|
1048
|
-
},
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
id: "projects-number",
|
|
1052
|
-
type: "text",
|
|
1053
|
-
props: {
|
|
1054
|
-
content:
|
|
1055
|
-
"<h3 style='color:white; text-align:center'>100K+</h3><p style='color:white; text-align:center'>Projects Created</p>",
|
|
1056
|
-
},
|
|
1057
|
-
},
|
|
1058
|
-
],
|
|
1059
|
-
},
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
id: "satisfaction-stat",
|
|
1063
|
-
type: "box",
|
|
1064
|
-
props: {
|
|
1065
|
-
direction: "flex-col",
|
|
1066
|
-
gap: "1rem",
|
|
1067
|
-
alignItems: "items-center",
|
|
1068
|
-
$children: [
|
|
1069
|
-
{
|
|
1070
|
-
id: "satisfaction-icon",
|
|
1071
|
-
type: "icon",
|
|
1072
|
-
props: {
|
|
1073
|
-
icon: "star",
|
|
1074
|
-
size: "3rem",
|
|
1075
|
-
color: "white",
|
|
1076
|
-
},
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
id: "satisfaction-number",
|
|
1080
|
-
type: "text",
|
|
1081
|
-
props: {
|
|
1082
|
-
content:
|
|
1083
|
-
"<h3 style='color:white; text-align:center'>98%</h3><p style='color:white; text-align:center'>Satisfaction Rate</p>",
|
|
1084
|
-
},
|
|
1085
|
-
},
|
|
1086
|
-
],
|
|
1087
|
-
},
|
|
1088
|
-
},
|
|
1089
|
-
],
|
|
1090
|
-
mobileProps: {
|
|
1091
|
-
direction: "flex-col",
|
|
1092
|
-
gap: "2rem",
|
|
1093
|
-
},
|
|
1094
|
-
},
|
|
1095
|
-
},
|
|
1096
|
-
],
|
|
1097
|
-
},
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
label: "Social links and newsletter signup",
|
|
1101
|
-
description: `A community engagement section combining social media links with newsletter signup.
|
|
1102
|
-
Shows how to use social-links bricks and forms together.
|
|
1103
|
-
Creates a cohesive call-to-action for community building.`,
|
|
1104
|
-
example: {
|
|
1105
|
-
id: "community-section",
|
|
1106
|
-
label: "Community",
|
|
1107
|
-
order: 12,
|
|
1108
|
-
props: {
|
|
1109
|
-
direction: "flex-col",
|
|
1110
|
-
padding: "4rem",
|
|
1111
|
-
gap: "3rem",
|
|
1112
|
-
colorPreset: { color: "indigo-100" },
|
|
1113
|
-
alignItems: "items-center",
|
|
1114
|
-
maxWidth: "max-w-full",
|
|
1115
|
-
},
|
|
1116
|
-
bricks: [
|
|
1117
|
-
{
|
|
1118
|
-
id: "community-title",
|
|
1119
|
-
type: "text",
|
|
1120
|
-
props: {
|
|
1121
|
-
content:
|
|
1122
|
-
"<h2 style='text-align:center'>Stay Connected</h2><p style='text-align:center'>Join our community and never miss an update.</p>",
|
|
1123
|
-
},
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
id: "social-links",
|
|
1127
|
-
type: "social-links",
|
|
1128
|
-
props: {
|
|
1129
|
-
links: [
|
|
1130
|
-
{ platform: "twitter", url: "https://twitter.com/company" },
|
|
1131
|
-
{ platform: "linkedin", url: "https://linkedin.com/company/company" },
|
|
1132
|
-
{ platform: "github", url: "https://github.com/company" },
|
|
1133
|
-
{ platform: "youtube", url: "https://youtube.com/company" },
|
|
1134
|
-
],
|
|
1135
|
-
size: "large",
|
|
1136
|
-
style: "filled",
|
|
1137
|
-
},
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
id: "newsletter-form",
|
|
1141
|
-
type: "form",
|
|
1142
|
-
props: {
|
|
1143
|
-
title: "Subscribe to Our Newsletter",
|
|
1144
|
-
subtitle: "Get weekly updates and exclusive content delivered to your inbox.",
|
|
1145
|
-
submitLabel: "Subscribe",
|
|
1146
|
-
fields: [
|
|
1147
|
-
{
|
|
1148
|
-
name: "email",
|
|
1149
|
-
label: "Email Address",
|
|
1150
|
-
type: "email",
|
|
1151
|
-
required: true,
|
|
1152
|
-
placeholder: "your@email.com",
|
|
1153
|
-
},
|
|
1154
|
-
],
|
|
1155
|
-
colorPreset: { color: "white" },
|
|
1156
|
-
rounding: "rounded-lg",
|
|
1157
|
-
padding: "2rem",
|
|
1158
|
-
shadow: "shadow-md",
|
|
1159
|
-
},
|
|
1160
|
-
},
|
|
1161
|
-
],
|
|
1162
|
-
},
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
label: "Pricing table with multiple options",
|
|
1166
|
-
description: `A pricing section using card bricks to create a comparison table.
|
|
1167
|
-
Demonstrates how to structure pricing tiers with different features.
|
|
1168
|
-
Uses consistent styling with highlighted premium option.`,
|
|
1169
|
-
example: {
|
|
1170
|
-
id: "pricing-section",
|
|
1171
|
-
label: "Pricing",
|
|
1172
|
-
order: 13,
|
|
1173
|
-
props: {
|
|
1174
|
-
direction: "flex-col",
|
|
1175
|
-
padding: "5rem",
|
|
1176
|
-
gap: "3rem",
|
|
1177
|
-
alignItems: "items-center",
|
|
1178
|
-
},
|
|
1179
|
-
bricks: [
|
|
1180
|
-
{
|
|
1181
|
-
id: "pricing-header",
|
|
1182
|
-
type: "text",
|
|
1183
|
-
props: {
|
|
1184
|
-
content:
|
|
1185
|
-
"<h2 style='text-align:center'>Choose Your Plan</h2><p style='text-align:center'>Select the perfect plan for your needs.</p>",
|
|
1186
|
-
},
|
|
1187
|
-
},
|
|
1188
|
-
{
|
|
1189
|
-
id: "pricing-cards",
|
|
1190
|
-
type: "box",
|
|
1191
|
-
props: {
|
|
1192
|
-
direction: "flex-row",
|
|
1193
|
-
gap: "2rem",
|
|
1194
|
-
justifyContent: "justify-center",
|
|
1195
|
-
$children: [
|
|
1196
|
-
{
|
|
1197
|
-
id: "basic-plan",
|
|
1198
|
-
type: "card",
|
|
1199
|
-
props: {
|
|
1200
|
-
title: "Basic",
|
|
1201
|
-
subtitle: "$9/month",
|
|
1202
|
-
content: "• 5 Projects<br>• 10GB Storage<br>• Email Support<br>• Basic Templates",
|
|
1203
|
-
colorPreset: { color: "white" },
|
|
1204
|
-
border: { width: "border-2", color: "border-gray-200" },
|
|
1205
|
-
rounding: "rounded-lg",
|
|
1206
|
-
padding: "2rem",
|
|
1207
|
-
shadow: "shadow-md",
|
|
1208
|
-
},
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
id: "pro-plan",
|
|
1212
|
-
type: "card",
|
|
1213
|
-
props: {
|
|
1214
|
-
title: "Pro",
|
|
1215
|
-
subtitle: "$29/month",
|
|
1216
|
-
content:
|
|
1217
|
-
"• Unlimited Projects<br>• 100GB Storage<br>• Priority Support<br>• Premium Templates<br>• Advanced Analytics",
|
|
1218
|
-
colorPreset: { color: "blue-500" },
|
|
1219
|
-
rounding: "rounded-lg",
|
|
1220
|
-
padding: "2rem",
|
|
1221
|
-
shadow: "shadow-lg",
|
|
1222
|
-
border: { width: "border-2", color: "border-blue-400" },
|
|
1223
|
-
},
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
id: "enterprise-plan",
|
|
1227
|
-
type: "card",
|
|
1228
|
-
props: {
|
|
1229
|
-
title: "Enterprise",
|
|
1230
|
-
subtitle: "Custom",
|
|
1231
|
-
content:
|
|
1232
|
-
"• Everything in Pro<br>• Unlimited Storage<br>• 24/7 Phone Support<br>• Custom Integrations<br>• Dedicated Account Manager",
|
|
1233
|
-
colorPreset: { color: "white" },
|
|
1234
|
-
border: { width: "border-2", color: "border-gray-200" },
|
|
1235
|
-
rounding: "rounded-lg",
|
|
1236
|
-
padding: "2rem",
|
|
1237
|
-
shadow: "shadow-md",
|
|
1238
|
-
},
|
|
1239
|
-
},
|
|
1240
|
-
],
|
|
1241
|
-
mobileProps: {
|
|
1242
|
-
direction: "flex-col",
|
|
1243
|
-
},
|
|
1244
|
-
},
|
|
1245
|
-
},
|
|
1246
|
-
],
|
|
1247
|
-
},
|
|
1248
|
-
},
|
|
1249
|
-
];
|