@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
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
defineProps
|
|
5
|
-
} from "./chunk-BHC2A43S.js";
|
|
6
|
-
import {
|
|
7
|
-
defineBrickManifest
|
|
8
|
-
} from "./chunk-TB3X4LRQ.js";
|
|
9
|
-
import {
|
|
10
|
-
fontSizeRef
|
|
11
|
-
} from "./chunk-F22LDHEO.js";
|
|
12
|
-
import {
|
|
13
|
-
string,
|
|
14
|
-
urlOrPageIdRef
|
|
15
|
-
} from "./chunk-UQF52PWK.js";
|
|
16
|
-
import {
|
|
17
|
-
borderRef,
|
|
18
|
-
roundingRef
|
|
19
|
-
} from "./chunk-NTLAKMMQ.js";
|
|
20
|
-
import {
|
|
21
|
-
colorPresetRef
|
|
22
|
-
} from "./chunk-TFGGYU6Y.js";
|
|
23
|
-
|
|
24
|
-
// src/shared/bricks/manifests/button.manifest.ts
|
|
25
|
-
import { Type } from "@sinclair/typebox";
|
|
26
|
-
import { RxButton } from "react-icons/rx";
|
|
27
|
-
var manifest = defineBrickManifest({
|
|
28
|
-
type: "button",
|
|
29
|
-
name: "Button",
|
|
30
|
-
category: "basic",
|
|
31
|
-
description: "A button",
|
|
32
|
-
aiInstructions: "A clickable button that can link to a URL or a page within the site. It can be styled with different colors, font sizes, and border radii. Don't use it in forms since forms have their own submit button.",
|
|
33
|
-
resizable: "horizontal",
|
|
34
|
-
icon: RxButton,
|
|
35
|
-
minWidth: {
|
|
36
|
-
desktop: 120,
|
|
37
|
-
mobile: 120
|
|
38
|
-
},
|
|
39
|
-
defaultWidth: {
|
|
40
|
-
mobile: "100%"
|
|
41
|
-
},
|
|
42
|
-
props: defineProps(
|
|
43
|
-
{
|
|
44
|
-
colorPreset: Type.Optional(
|
|
45
|
-
colorPresetRef({
|
|
46
|
-
default: { color: "primary-500" },
|
|
47
|
-
title: "Color",
|
|
48
|
-
"ui:default-gradient-direction": "bg-gradient-to-b"
|
|
49
|
-
})
|
|
50
|
-
),
|
|
51
|
-
label: string("Label", { default: "My button", metadata: { category: "content" } }),
|
|
52
|
-
fontSize: Type.Optional(
|
|
53
|
-
fontSizeRef({
|
|
54
|
-
title: "Font size",
|
|
55
|
-
description: "The font size of the button text.",
|
|
56
|
-
default: "text-base",
|
|
57
|
-
"ui:responsive": "desktop",
|
|
58
|
-
"ui:no-extra-large-sizes": true
|
|
59
|
-
})
|
|
60
|
-
),
|
|
61
|
-
rounding: Type.Optional(
|
|
62
|
-
roundingRef({
|
|
63
|
-
default: "rounded-md"
|
|
64
|
-
})
|
|
65
|
-
),
|
|
66
|
-
border: Type.Optional(borderRef({ default: { width: "border-0" }, "ui:responsive": "desktop" })),
|
|
67
|
-
link: urlOrPageIdRef({
|
|
68
|
-
title: "Link",
|
|
69
|
-
"ui:placeholder": "https://example.com",
|
|
70
|
-
metadata: { category: "content" }
|
|
71
|
-
})
|
|
72
|
-
},
|
|
73
|
-
{ noGrow: true }
|
|
74
|
-
)
|
|
75
|
-
});
|
|
76
|
-
var examples = [
|
|
77
|
-
{
|
|
78
|
-
description: "Primary button, full width, linking to an external URL",
|
|
79
|
-
type: "button",
|
|
80
|
-
props: {
|
|
81
|
-
label: "Click me",
|
|
82
|
-
link: "https://example.com",
|
|
83
|
-
colorPreset: { color: "primary-500" }
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
description: "Secondary button, block width, linking to a page id",
|
|
88
|
-
type: "button",
|
|
89
|
-
props: {
|
|
90
|
-
label: "Go to page",
|
|
91
|
-
link: "page-id-123",
|
|
92
|
-
colorPreset: { color: "secondary-500" }
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
description: "Neutral colored button with large text and rounded corners and external link",
|
|
97
|
-
type: "button",
|
|
98
|
-
props: {
|
|
99
|
-
label: "Submit",
|
|
100
|
-
fontSize: "text-lg",
|
|
101
|
-
rounding: "rounded-full",
|
|
102
|
-
link: "https://example.com",
|
|
103
|
-
colorPreset: { color: "neutral-500" }
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
description: "Dynamic label from a page query alias named 'employee'",
|
|
108
|
-
type: "button",
|
|
109
|
-
props: {
|
|
110
|
-
label: "Go to profile of {{employee.name}}",
|
|
111
|
-
link: "/employees/{{employee.$slug}}",
|
|
112
|
-
fontSize: "text-lg",
|
|
113
|
-
rounding: "rounded-full",
|
|
114
|
-
colorPreset: { color: "neutral-500" }
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
description: "Accent colored call-to-action button with medium text and subtle border",
|
|
119
|
-
type: "button",
|
|
120
|
-
props: {
|
|
121
|
-
label: "Get Started",
|
|
122
|
-
link: "/signup",
|
|
123
|
-
fontSize: "text-base",
|
|
124
|
-
rounding: "rounded-lg",
|
|
125
|
-
colorPreset: { color: "accent-600" },
|
|
126
|
-
border: { width: "border", color: "border-accent-700" }
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
description: "Small text button with sharp corners for minimal design",
|
|
131
|
-
type: "button",
|
|
132
|
-
props: {
|
|
133
|
-
label: "Learn More",
|
|
134
|
-
link: "/about",
|
|
135
|
-
fontSize: "text-sm",
|
|
136
|
-
rounding: "rounded-none",
|
|
137
|
-
colorPreset: { color: "primary-400" }
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
description: "Large download button with thick border and rounded corners",
|
|
142
|
-
type: "button",
|
|
143
|
-
props: {
|
|
144
|
-
label: "Download Now",
|
|
145
|
-
link: "https://download.example.com/file.zip",
|
|
146
|
-
fontSize: "text-xl",
|
|
147
|
-
rounding: "rounded-xl",
|
|
148
|
-
colorPreset: { color: "secondary-600" },
|
|
149
|
-
border: { width: "border-2", color: "border-secondary-800" }
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
description: "Contact button with neutral colors and medium border radius",
|
|
154
|
-
type: "button",
|
|
155
|
-
props: {
|
|
156
|
-
label: "Contact Us",
|
|
157
|
-
link: "/contact",
|
|
158
|
-
fontSize: "text-base",
|
|
159
|
-
rounding: "rounded-md",
|
|
160
|
-
colorPreset: { color: "neutral-600" },
|
|
161
|
-
border: { width: "border", color: "border-neutral-400" }
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
description: "Newsletter signup button with gradient background and full rounding",
|
|
166
|
-
type: "button",
|
|
167
|
-
props: {
|
|
168
|
-
label: "Subscribe to Newsletter",
|
|
169
|
-
link: "/newsletter",
|
|
170
|
-
fontSize: "text-lg",
|
|
171
|
-
rounding: "rounded-full",
|
|
172
|
-
colorPreset: {
|
|
173
|
-
color: "primary-500",
|
|
174
|
-
gradientDirection: "bg-gradient-to-r"
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
description: "Shop now button with accent colors and extra large text",
|
|
180
|
-
type: "button",
|
|
181
|
-
props: {
|
|
182
|
-
label: "Shop Now",
|
|
183
|
-
link: "/shop",
|
|
184
|
-
fontSize: "text-xl",
|
|
185
|
-
rounding: "rounded-lg",
|
|
186
|
-
colorPreset: { color: "accent-500" }
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
description: "Dynamic product button using product query data",
|
|
191
|
-
type: "button",
|
|
192
|
-
props: {
|
|
193
|
-
label: "Buy {{product.name}} - ${{product.price}}",
|
|
194
|
-
link: "/products/{{product.id}}/purchase",
|
|
195
|
-
fontSize: "text-base",
|
|
196
|
-
rounding: "rounded-md",
|
|
197
|
-
colorPreset: { color: "primary-600" },
|
|
198
|
-
border: { width: "border", color: "border-primary-800" }
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
description: "Event registration button with secondary gradient and medium text",
|
|
203
|
-
type: "button",
|
|
204
|
-
props: {
|
|
205
|
-
label: "Register for Event",
|
|
206
|
-
link: "/events/register",
|
|
207
|
-
fontSize: "text-base",
|
|
208
|
-
rounding: "rounded-lg",
|
|
209
|
-
colorPreset: {
|
|
210
|
-
color: "secondary-500",
|
|
211
|
-
gradientDirection: "bg-gradient-to-br"
|
|
212
|
-
},
|
|
213
|
-
border: { width: "border", color: "border-secondary-300" }
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
];
|
|
217
|
-
|
|
218
|
-
export {
|
|
219
|
-
manifest,
|
|
220
|
-
examples
|
|
221
|
-
};
|
|
222
|
-
//# sourceMappingURL=chunk-X6N463D4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/bricks/manifests/button.manifest.ts"],"sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { RxButton } from \"react-icons/rx\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { string, urlOrPageIdRef } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { borderRef, roundingRef } from \"../props/border\";\nimport { fontSizeRef } from \"../props/text\";\nimport { colorPresetRef } from \"../props/color-preset\";\n\nexport const manifest = defineBrickManifest({\n type: \"button\",\n name: \"Button\",\n category: \"basic\",\n description: \"A button\",\n aiInstructions:\n \"A clickable button that can link to a URL or a page within the site. It can be styled with different colors, font sizes, and border radii. Don't use it in forms since forms have their own submit button.\",\n resizable: \"horizontal\",\n icon: RxButton,\n minWidth: {\n desktop: 120,\n mobile: 120,\n },\n defaultWidth: {\n mobile: \"100%\",\n },\n props: defineProps(\n {\n colorPreset: Type.Optional(\n colorPresetRef({\n default: { color: \"primary-500\" },\n title: \"Color\",\n \"ui:default-gradient-direction\": \"bg-gradient-to-b\",\n }),\n ),\n label: string(\"Label\", { default: \"My button\", metadata: { category: \"content\" } }),\n fontSize: Type.Optional(\n fontSizeRef({\n title: \"Font size\",\n description: \"The font size of the button text.\",\n default: \"text-base\",\n \"ui:responsive\": \"desktop\",\n \"ui:no-extra-large-sizes\": true,\n }),\n ),\n rounding: Type.Optional(\n roundingRef({\n default: \"rounded-md\",\n }),\n ),\n border: Type.Optional(borderRef({ default: { width: \"border-0\" }, \"ui:responsive\": \"desktop\" })),\n link: urlOrPageIdRef({\n title: \"Link\",\n \"ui:placeholder\": \"https://example.com\",\n metadata: { category: \"content\" },\n }),\n },\n { noGrow: true },\n ),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"Primary button, full width, linking to an external URL\",\n type: \"button\",\n props: {\n label: \"Click me\",\n link: \"https://example.com\",\n colorPreset: { color: \"primary-500\" },\n },\n },\n {\n description: \"Secondary button, block width, linking to a page id\",\n type: \"button\",\n props: {\n label: \"Go to page\",\n link: \"page-id-123\",\n colorPreset: { color: \"secondary-500\" },\n },\n },\n {\n description: \"Neutral colored button with large text and rounded corners and external link\",\n type: \"button\",\n props: {\n label: \"Submit\",\n fontSize: \"text-lg\",\n rounding: \"rounded-full\",\n link: \"https://example.com\",\n colorPreset: { color: \"neutral-500\" },\n },\n },\n {\n description: \"Dynamic label from a page query alias named 'employee'\",\n type: \"button\",\n props: {\n label: \"Go to profile of {{employee.name}}\",\n link: \"/employees/{{employee.$slug}}\",\n fontSize: \"text-lg\",\n rounding: \"rounded-full\",\n colorPreset: { color: \"neutral-500\" },\n },\n },\n {\n description: \"Accent colored call-to-action button with medium text and subtle border\",\n type: \"button\",\n props: {\n label: \"Get Started\",\n link: \"/signup\",\n fontSize: \"text-base\",\n rounding: \"rounded-lg\",\n colorPreset: { color: \"accent-600\" },\n border: { width: \"border\", color: \"border-accent-700\" },\n },\n },\n {\n description: \"Small text button with sharp corners for minimal design\",\n type: \"button\",\n props: {\n label: \"Learn More\",\n link: \"/about\",\n fontSize: \"text-sm\",\n rounding: \"rounded-none\",\n colorPreset: { color: \"primary-400\" },\n },\n },\n {\n description: \"Large download button with thick border and rounded corners\",\n type: \"button\",\n props: {\n label: \"Download Now\",\n link: \"https://download.example.com/file.zip\",\n fontSize: \"text-xl\",\n rounding: \"rounded-xl\",\n colorPreset: { color: \"secondary-600\" },\n border: { width: \"border-2\", color: \"border-secondary-800\" },\n },\n },\n {\n description: \"Contact button with neutral colors and medium border radius\",\n type: \"button\",\n props: {\n label: \"Contact Us\",\n link: \"/contact\",\n fontSize: \"text-base\",\n rounding: \"rounded-md\",\n colorPreset: { color: \"neutral-600\" },\n border: { width: \"border\", color: \"border-neutral-400\" },\n },\n },\n {\n description: \"Newsletter signup button with gradient background and full rounding\",\n type: \"button\",\n props: {\n label: \"Subscribe to Newsletter\",\n link: \"/newsletter\",\n fontSize: \"text-lg\",\n rounding: \"rounded-full\",\n colorPreset: {\n color: \"primary-500\",\n gradientDirection: \"bg-gradient-to-r\",\n },\n },\n },\n {\n description: \"Shop now button with accent colors and extra large text\",\n type: \"button\",\n props: {\n label: \"Shop Now\",\n link: \"/shop\",\n fontSize: \"text-xl\",\n rounding: \"rounded-lg\",\n colorPreset: { color: \"accent-500\" },\n },\n },\n {\n description: \"Dynamic product button using product query data\",\n type: \"button\",\n props: {\n label: \"Buy {{product.name}} - ${{product.price}}\",\n link: \"/products/{{product.id}}/purchase\",\n fontSize: \"text-base\",\n rounding: \"rounded-md\",\n colorPreset: { color: \"primary-600\" },\n border: { width: \"border\", color: \"border-primary-800\" },\n },\n },\n {\n description: \"Event registration button with secondary gradient and medium text\",\n type: \"button\",\n props: {\n label: \"Register for Event\",\n link: \"/events/register\",\n fontSize: \"text-base\",\n rounding: \"rounded-lg\",\n colorPreset: {\n color: \"secondary-500\",\n gradientDirection: \"bg-gradient-to-br\",\n },\n border: { width: \"border\", color: \"border-secondary-300\" },\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,gBAAgB;AASlB,IAAM,WAAW,oBAAoB;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,gBACE;AAAA,EACF,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AAAA,EACA,cAAc;AAAA,IACZ,QAAQ;AAAA,EACV;AAAA,EACA,OAAO;AAAA,IACL;AAAA,MACE,aAAa,KAAK;AAAA,QAChB,eAAe;AAAA,UACb,SAAS,EAAE,OAAO,cAAc;AAAA,UAChC,OAAO;AAAA,UACP,iCAAiC;AAAA,QACnC,CAAC;AAAA,MACH;AAAA,MACA,OAAO,OAAO,SAAS,EAAE,SAAS,aAAa,UAAU,EAAE,UAAU,UAAU,EAAE,CAAC;AAAA,MAClF,UAAU,KAAK;AAAA,QACb,YAAY;AAAA,UACV,OAAO;AAAA,UACP,aAAa;AAAA,UACb,SAAS;AAAA,UACT,iBAAiB;AAAA,UACjB,2BAA2B;AAAA,QAC7B,CAAC;AAAA,MACH;AAAA,MACA,UAAU,KAAK;AAAA,QACb,YAAY;AAAA,UACV,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,MACA,QAAQ,KAAK,SAAS,UAAU,EAAE,SAAS,EAAE,OAAO,WAAW,GAAG,iBAAiB,UAAU,CAAC,CAAC;AAAA,MAC/F,MAAM,eAAe;AAAA,QACnB,OAAO;AAAA,QACP,kBAAkB;AAAA,QAClB,UAAU,EAAE,UAAU,UAAU;AAAA,MAClC,CAAC;AAAA,IACH;AAAA,IACA,EAAE,QAAQ,KAAK;AAAA,EACj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AAQ,EAAE,OAAO,UAAU,OAAO,uBAAuB;AAAA,IAC3D;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
defineProps
|
|
5
|
-
} from "./chunk-BHC2A43S.js";
|
|
6
|
-
import {
|
|
7
|
-
defineBrickManifest
|
|
8
|
-
} from "./chunk-TB3X4LRQ.js";
|
|
9
|
-
import {
|
|
10
|
-
loopRef
|
|
11
|
-
} from "./chunk-BW6EFRSF.js";
|
|
12
|
-
import {
|
|
13
|
-
iconRef,
|
|
14
|
-
urlOrPageIdRef
|
|
15
|
-
} from "./chunk-UQF52PWK.js";
|
|
16
|
-
import {
|
|
17
|
-
colorRef
|
|
18
|
-
} from "./chunk-SE6O65HC.js";
|
|
19
|
-
import {
|
|
20
|
-
cssLengthRef
|
|
21
|
-
} from "./chunk-BPBKHEQ5.js";
|
|
22
|
-
|
|
23
|
-
// src/shared/bricks/manifests/icon.manifest.ts
|
|
24
|
-
import { PiConfetti } from "react-icons/pi";
|
|
25
|
-
import { Type } from "@sinclair/typebox";
|
|
26
|
-
var manifest = defineBrickManifest({
|
|
27
|
-
type: "icon",
|
|
28
|
-
name: "Icon",
|
|
29
|
-
category: "basic",
|
|
30
|
-
description: "An icon.",
|
|
31
|
-
aiInstructions: "Uses iconify references",
|
|
32
|
-
resizable: false,
|
|
33
|
-
staticClasses: "!grow-0",
|
|
34
|
-
icon: PiConfetti,
|
|
35
|
-
props: defineProps(
|
|
36
|
-
{
|
|
37
|
-
icon: iconRef({
|
|
38
|
-
default: "mdi:heart"
|
|
39
|
-
}),
|
|
40
|
-
size: Type.Optional(
|
|
41
|
-
cssLengthRef({
|
|
42
|
-
title: "Size",
|
|
43
|
-
description: "The size of the icon. Can be a CSS length value (e.g. '2em', '24px')",
|
|
44
|
-
default: "1em",
|
|
45
|
-
"ui:css-units": ["em", "rem", "px"],
|
|
46
|
-
"ai:instructions": "Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'"
|
|
47
|
-
})
|
|
48
|
-
),
|
|
49
|
-
color: Type.Optional(
|
|
50
|
-
colorRef({
|
|
51
|
-
title: "Color",
|
|
52
|
-
default: "currentColor",
|
|
53
|
-
"ui:hide-color-label": true
|
|
54
|
-
})
|
|
55
|
-
),
|
|
56
|
-
link: Type.Optional(urlOrPageIdRef({ title: "Link" })),
|
|
57
|
-
loop: Type.Optional(loopRef())
|
|
58
|
-
},
|
|
59
|
-
{ noGrow: true }
|
|
60
|
-
)
|
|
61
|
-
});
|
|
62
|
-
var examples = [
|
|
63
|
-
{
|
|
64
|
-
description: "Large heart icon with inherited color and size",
|
|
65
|
-
type: "icon",
|
|
66
|
-
props: {
|
|
67
|
-
icon: "mdi:heart"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "Shopping cart icon",
|
|
72
|
-
type: "icon",
|
|
73
|
-
props: {
|
|
74
|
-
icon: "mdi:cart",
|
|
75
|
-
size: "1.2em"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
description: "Social media icon with blue color and link",
|
|
80
|
-
type: "icon",
|
|
81
|
-
props: {
|
|
82
|
-
icon: "mdi:facebook",
|
|
83
|
-
size: "1.5em",
|
|
84
|
-
color: "#1877f2",
|
|
85
|
-
link: "https://facebook.com/yourpage"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
description: "Warning icon with orange color for alerts",
|
|
90
|
-
type: "icon",
|
|
91
|
-
props: {
|
|
92
|
-
icon: "mdi:alert-triangle",
|
|
93
|
-
size: "1.8em",
|
|
94
|
-
color: "#f59e0b"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
description: "Email contact icon with link",
|
|
99
|
-
type: "icon",
|
|
100
|
-
props: {
|
|
101
|
-
icon: "mdi:email",
|
|
102
|
-
size: "1.3em",
|
|
103
|
-
color: "#4f46e5",
|
|
104
|
-
link: "mailto:contact@example.com"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
description: "Phone icon with green color",
|
|
109
|
-
type: "icon",
|
|
110
|
-
props: {
|
|
111
|
-
icon: "mdi:phone",
|
|
112
|
-
size: "1.4em",
|
|
113
|
-
color: "#10b981"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
description: "Location pin icon with red color",
|
|
118
|
-
type: "icon",
|
|
119
|
-
props: {
|
|
120
|
-
icon: "mdi:map-marker",
|
|
121
|
-
size: "2.2em",
|
|
122
|
-
color: "#ef4444"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
description: "Twitter/X icon with custom color and link",
|
|
127
|
-
type: "icon",
|
|
128
|
-
props: {
|
|
129
|
-
icon: "mdi:twitter",
|
|
130
|
-
size: "1.6em",
|
|
131
|
-
color: "#000000",
|
|
132
|
-
link: "https://x.com/yourhandle"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
description: "Star rating icon with gold color",
|
|
137
|
-
type: "icon",
|
|
138
|
-
props: {
|
|
139
|
-
icon: "mdi:star",
|
|
140
|
-
size: "1.2em",
|
|
141
|
-
color: "#fbbf24"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
description: "Download icon with link and purple color",
|
|
146
|
-
type: "icon",
|
|
147
|
-
props: {
|
|
148
|
-
icon: "mdi:download",
|
|
149
|
-
size: "1.5em",
|
|
150
|
-
color: "#8b5cf6",
|
|
151
|
-
link: "/files/brochure.pdf"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
description: "Menu hamburger icon for navigation",
|
|
156
|
-
type: "icon",
|
|
157
|
-
props: {
|
|
158
|
-
icon: "mdi:menu",
|
|
159
|
-
size: "1.8em",
|
|
160
|
-
color: "#374151"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
description: "Search icon with dark color",
|
|
165
|
-
type: "icon",
|
|
166
|
-
props: {
|
|
167
|
-
icon: "mdi:magnify",
|
|
168
|
-
size: "1.1em",
|
|
169
|
-
color: "#1f2937"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
];
|
|
173
|
-
|
|
174
|
-
export {
|
|
175
|
-
manifest,
|
|
176
|
-
examples
|
|
177
|
-
};
|
|
178
|
-
//# sourceMappingURL=chunk-X75YV73Q.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/bricks/manifests/icon.manifest.ts"],"sourcesContent":["import { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { PiConfetti } from \"react-icons/pi\";\nimport { iconRef, urlOrPageIdRef } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { Type } from \"@sinclair/typebox\";\nimport { cssLengthRef } from \"../props/css-length\";\nimport { colorRef } from \"../props/color\";\nimport { loopRef } from \"../props/dynamic\";\n\nexport const manifest = defineBrickManifest({\n type: \"icon\",\n name: \"Icon\",\n category: \"basic\",\n description: \"An icon.\",\n aiInstructions: \"Uses iconify references\",\n resizable: false,\n staticClasses: \"!grow-0\",\n icon: PiConfetti,\n props: defineProps(\n {\n icon: iconRef({\n default: \"mdi:heart\",\n }),\n size: Type.Optional(\n cssLengthRef({\n title: \"Size\",\n description: \"The size of the icon. Can be a CSS length value (e.g. '2em', '24px')\",\n default: \"1em\",\n \"ui:css-units\": [\"em\", \"rem\", \"px\"],\n \"ai:instructions\": \"Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'\",\n }),\n ),\n color: Type.Optional(\n colorRef({\n title: \"Color\",\n default: \"currentColor\",\n \"ui:hide-color-label\": true,\n }),\n ),\n link: Type.Optional(urlOrPageIdRef({ title: \"Link\" })),\n loop: Type.Optional(loopRef()),\n },\n { noGrow: true },\n ),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"Large heart icon with inherited color and size\",\n type: \"icon\",\n props: {\n icon: \"mdi:heart\",\n },\n },\n {\n description: \"Shopping cart icon\",\n type: \"icon\",\n props: {\n icon: \"mdi:cart\",\n size: \"1.2em\",\n },\n },\n {\n description: \"Social media icon with blue color and link\",\n type: \"icon\",\n props: {\n icon: \"mdi:facebook\",\n size: \"1.5em\",\n color: \"#1877f2\",\n link: \"https://facebook.com/yourpage\",\n },\n },\n {\n description: \"Warning icon with orange color for alerts\",\n type: \"icon\",\n props: {\n icon: \"mdi:alert-triangle\",\n size: \"1.8em\",\n color: \"#f59e0b\",\n },\n },\n {\n description: \"Email contact icon with link\",\n type: \"icon\",\n props: {\n icon: \"mdi:email\",\n size: \"1.3em\",\n color: \"#4f46e5\",\n link: \"mailto:contact@example.com\",\n },\n },\n {\n description: \"Phone icon with green color\",\n type: \"icon\",\n props: {\n icon: \"mdi:phone\",\n size: \"1.4em\",\n color: \"#10b981\",\n },\n },\n {\n description: \"Location pin icon with red color\",\n type: \"icon\",\n props: {\n icon: \"mdi:map-marker\",\n size: \"2.2em\",\n color: \"#ef4444\",\n },\n },\n {\n description: \"Twitter/X icon with custom color and link\",\n type: \"icon\",\n props: {\n icon: \"mdi:twitter\",\n size: \"1.6em\",\n color: \"#000000\",\n link: \"https://x.com/yourhandle\",\n },\n },\n {\n description: \"Star rating icon with gold color\",\n type: \"icon\",\n props: {\n icon: \"mdi:star\",\n size: \"1.2em\",\n color: \"#fbbf24\",\n },\n },\n {\n description: \"Download icon with link and purple color\",\n type: \"icon\",\n props: {\n icon: \"mdi:download\",\n size: \"1.5em\",\n color: \"#8b5cf6\",\n link: \"/files/brochure.pdf\",\n },\n },\n {\n description: \"Menu hamburger icon for navigation\",\n type: \"icon\",\n props: {\n icon: \"mdi:menu\",\n size: \"1.8em\",\n color: \"#374151\",\n },\n },\n {\n description: \"Search icon with dark color\",\n type: \"icon\",\n props: {\n icon: \"mdi:magnify\",\n size: \"1.1em\",\n color: \"#1f2937\",\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,kBAAkB;AAG3B,SAAS,YAAY;AAKd,IAAM,WAAW,oBAAoB;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,eAAe;AAAA,EACf,MAAM;AAAA,EACN,OAAO;AAAA,IACL;AAAA,MACE,MAAM,QAAQ;AAAA,QACZ,SAAS;AAAA,MACX,CAAC;AAAA,MACD,MAAM,KAAK;AAAA,QACT,aAAa;AAAA,UACX,OAAO;AAAA,UACP,aAAa;AAAA,UACb,SAAS;AAAA,UACT,gBAAgB,CAAC,MAAM,OAAO,IAAI;AAAA,UAClC,mBAAmB;AAAA,QACrB,CAAC;AAAA,MACH;AAAA,MACA,OAAO,KAAK;AAAA,QACV,SAAS;AAAA,UACP,OAAO;AAAA,UACP,SAAS;AAAA,UACT,uBAAuB;AAAA,QACzB,CAAC;AAAA,MACH;AAAA,MACA,MAAM,KAAK,SAAS,eAAe,EAAE,OAAO,OAAO,CAAC,CAAC;AAAA,MACrD,MAAM,KAAK,SAAS,QAAQ,CAAC;AAAA,IAC/B;AAAA,IACA,EAAE,QAAQ,KAAK;AAAA,EACjB;AACF,CAAC;AAIM,IAAM,WAIP;AAAA,EACJ;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA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EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/bricks/props/direction.ts"],"sourcesContent":["import { type SchemaOptions, type Static, type StringOptions, Type } from \"@sinclair/typebox\";\nimport { StringEnum } from \"~/shared/utils/string-enum\";\nimport { typedRef } from \"~/shared/utils/typed-ref\";\n\nexport function direction(options: StringOptions = {}) {\n return StringEnum([\"flex-row\", \"flex-col\"], {\n title: \"Direction\",\n description: \"The direction of the layout\",\n enumNames: [\"Horizontal\", \"Vertical\"],\n // $id: \"styles:direction\",\n \"ui:styleId\": \"styles:direction\",\n examples: [\"flex-row\", \"flex-col\"],\n ...options,\n });\n}\n\nexport type DirectionSettings = Static<ReturnType<typeof direction>>;\n\nexport function directionRef(options: SchemaOptions = {}) {\n return typedRef(\"styles:direction\", options);\n}\n"],"mappings":";;;;;;;;;;AAIO,SAAS,UAAU,UAAyB,CAAC,GAAG;AACrD,SAAO,WAAW,CAAC,YAAY,UAAU,GAAG;AAAA,IAC1C,OAAO;AAAA,IACP,aAAa;AAAA,IACb,WAAW,CAAC,cAAc,UAAU;AAAA;AAAA,IAEpC,cAAc;AAAA,IACd,UAAU,CAAC,YAAY,UAAU;AAAA,IACjC,GAAG;AAAA,EACL,CAAC;AACH;AAIO,SAAS,aAAa,UAAyB,CAAC,GAAG;AACxD,SAAO,SAAS,oBAAoB,OAAO;AAC7C;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/bricks/manifests/testimonials.manifest.ts"],"sourcesContent":["import { type Static, type TObject, Type } from \"@sinclair/typebox\";\nimport { HiOutlineChatBubbleBottomCenter } from \"react-icons/hi2\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { imageRef } from \"../props/image\";\nimport { iconRef, string } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { fontSizeRef } from \"../props/text\";\nimport { colorPresetRef } from \"../props/color-preset\";\nimport { cssLengthRef } from \"../props/css-length\";\nimport { loopRef } from \"../props/dynamic\";\nimport { borderRef } from \"../props/border\";\nimport { shadowRef } from \"../props/effects\";\n\nexport const manifest = defineBrickManifest({\n type: \"testimonials\",\n name: \"Testimonials\",\n description: \"Display testimonials from users\",\n defaultWidth: { desktop: \"100%\" },\n icon: HiOutlineChatBubbleBottomCenter,\n consumesMultipleQueryRows: true,\n aiInstructions: `This brick displays user testimonials with optional avatars and social icons.\nIt is typically used to showcase customer feedback or endorsements.\nOptionally either use an avatar or a social icon but not both at the same time.`,\n props: defineProps(\n {\n colorPreset: Type.Optional(\n colorPresetRef({\n title: \"Color\",\n default: \"base-100\",\n }),\n ),\n border: Type.Optional(\n borderRef({\n title: \"Border\",\n description: \"Customize the border of the testimonial cards.\",\n default: {\n width: \"border\",\n color: \"border-accent-500\",\n },\n }),\n ),\n fontSize: Type.Optional(\n fontSizeRef({\n \"ui:no-extra-large-sizes\": true,\n }),\n ),\n padding: Type.Optional(\n cssLengthRef({\n default: \"1rem\",\n description: \"Padding inside the main container.\",\n \"ai:instructions\": \"Use only a single value like '1rem' or '10px'\",\n title: \"Padding\",\n \"ui:responsive\": true,\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n gap: Type.Optional(\n cssLengthRef({\n title: \"Gap\",\n default: \"26px\",\n description: \"Space between bricks.\",\n \"ai:instructions\":\n \"Can be a tailwind gap class like 'gap-1' or 'gap-2', or a custom value like '10px'\",\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:gap\",\n }),\n ),\n shadow: Type.Optional(shadowRef()),\n loop: Type.Optional(\n loopRef({\n // title: \"Use dynamic content\",\n description:\n \"If enabled, each row from the query result will be used to create a testimonial. Otherwise, the testimonials will be static.\",\n \"ui:placeholder\": \"Not specified (static)\",\n }),\n ),\n testimonials: Type.Optional(\n Type.Array(\n Type.Object({\n text: string(\"Text\", {\n default: \"Amazing product!\",\n \"ui:multiline\": true,\n \"ui:textarea-class\": \"h-20\",\n }),\n author: string(\"Author\", { default: \"John Doe\" }),\n company: Type.Optional(string(\"Company\")),\n avatar: Type.Optional(\n imageRef({\n title: \"Avatar\",\n \"ui:placeholder\": \"https://via.placeholder.com/80x80.png?text=JD\",\n noObjectOptions: true,\n }),\n ),\n socialIcon: Type.Optional(iconRef()),\n }),\n {\n title: \"Testimonials\",\n default: [], // Empty array by default\n \"ui:displayField\": \"author\", // Affiche le nom de l'auteur dans la vue compacte\n \"ui:options\": {\n orderable: true, // Enable drag & drop reordering\n removable: true, // Enable delete button\n addable: true, // Enable add button\n },\n metadata: {\n category: \"content\",\n consumeQuery: true,\n },\n examples: [\n {\n text: \"This is a great product! It has changed my life.\",\n author: \"John Doe\",\n company: \"Acme Inc.\",\n avatar: {\n src: \"https://via.placeholder.com/80x80.png?text=JD\",\n alt: \"John Doe profile photo\",\n },\n socialIcon: \"mdi:linkedin\",\n },\n ],\n },\n ),\n ),\n },\n {\n default: {\n orientation: \"horizontal\",\n },\n },\n ),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"SaaS platform testimonials with avatars\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Sarah Johnson\",\n company: \"TechCorp Solutions\",\n text: \"This platform has completely transformed how we manage our projects. The intuitive interface and powerful automation features have saved us countless hours.\",\n avatar: {\n src: \"https://via.placeholder.com/80x80.png?text=SJ\",\n alt: \"Sarah Johnson profile photo\",\n },\n socialIcon: \"mdi:linkedin\",\n },\n {\n author: \"Mike Chen\",\n company: \"StartupFlow\",\n text: \"Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!\",\n avatar: {\n src: \"https://via.placeholder.com/80x80.png?text=MC\",\n alt: \"Mike Chen profile photo\",\n },\n socialIcon: \"mdi:twitter\",\n },\n {\n author: \"Emily Rodriguez\",\n company: \"Digital Agency Pro\",\n text: \"The automation capabilities are game-changing. What used to take us days now happens automatically. It's like having an extra team member.\",\n avatar: {\n src: \"https://via.placeholder.com/80x80.png?text=ER\",\n alt: \"Emily Rodriguez profile photo\",\n },\n socialIcon: \"mdi:linkedin\",\n },\n ],\n },\n },\n {\n description: \"E-commerce customer reviews\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Jessica Williams\",\n company: \"Happy Customer\",\n text: \"Amazing product quality and fast shipping! The item exceeded my expectations and the customer service was excellent when I had questions.\",\n avatar: {\n src: \"https://via.placeholder.com/60x60.png?text=JW\",\n alt: \"Jessica Williams customer photo\",\n },\n socialIcon: \"mdi:star\",\n },\n {\n author: \"David Park\",\n text: \"Five stars! Been using this product for 6 months and it's still going strong. Definitely worth the investment and I've already recommended it to friends.\",\n avatar: {\n src: \"https://via.placeholder.com/60x60.png?text=DP\",\n alt: \"David Park customer photo\",\n },\n socialIcon: \"mdi:thumbs-up\",\n },\n ],\n },\n },\n {\n description: \"Agency client testimonials with company info\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Rachel Thompson\",\n company: \"Global Enterprises\",\n text: \"The team delivered exceptional results on time and within budget. Their creative approach and attention to detail made all the difference for our brand.\",\n avatar: {\n src: \"https://via.placeholder.com/70x70.png?text=RT\",\n alt: \"Rachel Thompson headshot\",\n },\n socialIcon: \"mdi:briefcase\",\n },\n {\n author: \"Alex Kumar\",\n company: \"Innovation Labs\",\n text: \"Working with this agency was a game-changer for our digital presence. They understood our vision and brought it to life beautifully.\",\n avatar: {\n src: \"https://via.placeholder.com/70x70.png?text=AK\",\n alt: \"Alex Kumar profile\",\n },\n socialIcon: \"mdi:lightbulb\",\n },\n {\n author: \"Maria Santos\",\n company: \"Retail Plus\",\n text: \"Professional, creative, and results-driven. Our website traffic increased by 200% after their redesign. Couldn't be happier!\",\n avatar: {\n src: \"https://via.placeholder.com/70x70.png?text=MS\",\n alt: \"Maria Santos photo\",\n },\n socialIcon: \"mdi:chart-line\",\n },\n ],\n },\n },\n {\n description: \"App user feedback\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Tom Wilson\",\n text: \"This app has made my daily routine so much easier. Love the clean interface and how everything just works seamlessly across all my devices.\",\n avatar: {\n src: \"https://via.placeholder.com/65x65.png?text=TW\",\n alt: \"Tom Wilson user photo\",\n },\n socialIcon: \"mdi:cellphone\",\n },\n {\n author: \"Lisa Chang\",\n text: \"Been using this app for months and it's become essential to my workflow. The latest update with AI features is incredibly impressive.\",\n avatar: {\n src: \"https://via.placeholder.com/65x65.png?text=LC\",\n alt: \"Lisa Chang profile picture\",\n },\n socialIcon: \"mdi:robot\",\n },\n {\n author: \"James Miller\",\n text: \"Simple, powerful, and reliable. Exactly what I was looking for. The customer support team is also very responsive and helpful.\",\n avatar: {\n src: \"https://via.placeholder.com/65x65.png?text=JM\",\n alt: \"James Miller avatar\",\n },\n socialIcon: \"mdi:heart\",\n },\n ],\n },\n },\n {\n description: \"Course/education testimonials with social icons\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Amanda Foster\",\n company: \"UX Designer\",\n text: \"This course completely changed my career trajectory. The practical projects and expert feedback helped me land my dream job in just 3 months.\",\n avatar: {\n src: \"https://via.placeholder.com/75x75.png?text=AF\",\n alt: \"Amanda Foster student photo\",\n },\n socialIcon: \"mdi:school\",\n },\n {\n author: \"Carlos Rodriguez\",\n company: \"Software Engineer\",\n text: \"The instructors are industry experts and the content is always up-to-date. I've taken three courses here and each one exceeded my expectations.\",\n avatar: {\n src: \"https://via.placeholder.com/75x75.png?text=CR\",\n alt: \"Carlos Rodriguez profile\",\n },\n socialIcon: \"mdi:code-tags\",\n },\n ],\n },\n },\n {\n description: \"Simple testimonials without avatars\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Anonymous User\",\n text: \"Great service and excellent value for money. Would definitely recommend to others looking for a reliable solution.\",\n socialIcon: \"mdi:account-circle\",\n },\n {\n author: \"Verified Customer\",\n text: \"Quick delivery and exactly as described. Very satisfied with my purchase and the overall experience.\",\n socialIcon: \"mdi:check-circle\",\n },\n {\n author: \"Beta Tester\",\n text: \"Been using the beta version and it's already impressive. Looking forward to the full release with even more features.\",\n socialIcon: \"mdi:beta\",\n },\n ],\n },\n },\n {\n description: \"Consultant testimonials with professional focus\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Dr. Patricia Lee\",\n company: \"Medical Practice Solutions\",\n text: \"The consulting services provided were invaluable to our practice. Revenue increased by 40% and patient satisfaction scores improved significantly.\",\n avatar: {\n src: \"https://via.placeholder.com/80x80.png?text=PL\",\n alt: \"Dr. Patricia Lee headshot\",\n },\n socialIcon: \"mdi:medical-bag\",\n },\n {\n author: \"Robert Kim\",\n company: \"Manufacturing Inc.\",\n text: \"Their strategic insights helped us streamline operations and reduce costs by 25%. The ROI was evident within the first quarter.\",\n avatar: {\n src: \"https://via.placeholder.com/80x80.png?text=RK\",\n alt: \"Robert Kim executive photo\",\n },\n socialIcon: \"mdi:factory\",\n },\n ],\n },\n },\n {\n description: \"Event testimonials with social media icons\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"Jennifer Adams\",\n company: \"Marketing Director\",\n text: \"Best conference I've attended in years! The networking opportunities were incredible and the speakers were top-notch industry leaders.\",\n avatar: {\n src: \"https://via.placeholder.com/70x70.png?text=JA\",\n alt: \"Jennifer Adams conference attendee\",\n },\n socialIcon: \"mdi:twitter\",\n },\n {\n author: \"Michael Brown\",\n company: \"Tech Startup Founder\",\n text: \"The workshops were incredibly practical and I left with actionable strategies I could implement immediately. Already planning to attend next year!\",\n avatar: {\n src: \"https://via.placeholder.com/70x70.png?text=MB\",\n alt: \"Michael Brown participant photo\",\n },\n socialIcon: \"mdi:linkedin\",\n },\n {\n author: \"Sophie Chen\",\n company: \"Product Manager\",\n text: \"Amazing organization and valuable content. Met so many like-minded professionals and learned cutting-edge techniques I'm excited to try.\",\n avatar: {\n src: \"https://via.placeholder.com/70x70.png?text=SC\",\n alt: \"Sophie Chen attendee photo\",\n },\n socialIcon: \"mdi:instagram\",\n },\n ],\n },\n },\n {\n description: \"Dynamic customer testimonials using customerReviews query\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"{{customerReviews.customerName}}\",\n company: \"{{customerReviews.company}}\",\n text: \"{{customerReviews.reviewText}}\",\n avatar: {\n src: \"{{customerReviews.customerPhoto}}\",\n alt: \"{{customerReviews.customerName}} photo\",\n },\n socialIcon: \"{{customerReviews.socialPlatform}}\",\n },\n ],\n loop: {\n over: \"customerReviews\",\n },\n },\n },\n {\n description: \"Dynamic client testimonials using clientFeedback query\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"{{clientFeedback.clientName}}\",\n company: \"{{clientFeedback.companyName}} - {{clientFeedback.position}}\",\n text: \"{{clientFeedback.testimonial}}\",\n avatar: {\n src: \"{{clientFeedback.headshot}}\",\n alt: \"{{clientFeedback.clientName}} headshot\",\n },\n socialIcon: \"{{clientFeedback.preferredIcon}}\",\n },\n ],\n loop: {\n over: \"clientFeedback\",\n },\n },\n },\n {\n description: \"Dynamic product reviews using productReviews query\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"{{productReviews.reviewerName}}\",\n text: \"{{productReviews.review}} - {{productReviews.rating}}/5 stars\",\n avatar: {\n src: \"{{productReviews.userAvatar}}\",\n alt: \"{{productReviews.reviewerName}} profile\",\n },\n socialIcon: \"mdi:star\",\n },\n ],\n loop: {\n over: \"productReviews\",\n },\n },\n },\n {\n description: \"Dynamic employee testimonials using teamTestimonials query\",\n type: \"testimonials\",\n props: {\n testimonials: [\n {\n author: \"{{teamTestimonials.employeeName}}\",\n company: \"{{teamTestimonials.department}} - {{teamTestimonials.jobTitle}}\",\n text: \"{{teamTestimonials.testimonial}}\",\n avatar: {\n src: \"{{teamTestimonials.profilePhoto}}\",\n alt: \"{{teamTestimonials.employeeName}} profile photo\",\n },\n socialIcon: \"{{teamTestimonials.socialIcon}}\",\n },\n ],\n loop: {\n over: \"teamTestimonials\",\n },\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAoC,YAAY;AAChD,SAAS,uCAAuC;AAazC,IAAM,WAAW,oBAAoB;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc,EAAE,SAAS,OAAO;AAAA,EAChC,MAAM;AAAA,EACN,2BAA2B;AAAA,EAC3B,gBAAgB;AAAA;AAAA;AAAA,EAGhB,OAAO;AAAA,IACL;AAAA,MACE,aAAa,KAAK;AAAA,QAChB,eAAe;AAAA,UACb,OAAO;AAAA,UACP,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,MACA,QAAQ,KAAK;AAAA,QACX,UAAU;AAAA,UACR,OAAO;AAAA,UACP,aAAa;AAAA,UACb,SAAS;AAAA,YACP,OAAO;AAAA,YACP,OAAO;AAAA,UACT;AAAA,QACF,CAAC;AAAA,MACH;AAAA,MACA,UAAU,KAAK;AAAA,QACb,YAAY;AAAA,UACV,2BAA2B;AAAA,QAC7B,CAAC;AAAA,MACH;AAAA,MACA,SAAS,KAAK;AAAA,QACZ,aAAa;AAAA,UACX,SAAS;AAAA,UACT,aAAa;AAAA,UACb,mBAAmB;AAAA,UACnB,OAAO;AAAA,UACP,iBAAiB;AAAA,UACjB,kBAAkB;AAAA,UAClB,cAAc;AAAA,QAChB,CAAC;AAAA,MACH;AAAA,MACA,KAAK,KAAK;AAAA,QACR,aAAa;AAAA,UACX,OAAO;AAAA,UACP,SAAS;AAAA,UACT,aAAa;AAAA,UACb,mBACE;AAAA,UACF,kBAAkB;AAAA,UAClB,cAAc;AAAA,QAChB,CAAC;AAAA,MACH;AAAA,MACA,QAAQ,K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,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/bricks/manifests/video.manifest.ts"],"sourcesContent":["import { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { RxVideo } from \"react-icons/rx\";\nimport { string } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { borderRef, roundingRef } from \"../props/border\";\nimport { shadowRef } from \"../props/effects\";\nimport { Type } from \"@sinclair/typebox\";\nimport { cssLengthRef } from \"../props/css-length\";\n\nexport const manifest = defineBrickManifest({\n type: \"video\",\n name: \"Video\",\n category: \"media\",\n description: \"An embedded video player for YouTube / Vimeo / Wistia links\",\n icon: RxVideo,\n defaultWidth: {\n mobile: \"auto\",\n desktop: `${(360 * 16) / 9}px`, // 16:9 aspect ratio\n },\n defaultHeight: {\n mobile: \"168px\",\n desktop: \"360px\", // 16:9 aspect ratio\n },\n minWidth: {\n mobile: 300,\n desktop: (360 * 16) / 9,\n },\n minHeight: {\n mobile: 168,\n desktop: 360, // 16:9 aspect ratio\n },\n props: defineProps({\n url: string(\"Video URL\", {\n description:\n \"URL of the video to embed. It can be a YouTube link or an embed link. It also supports Vimeo and Wistia links.\",\n default: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\n metadata: {\n category: \"content\",\n \"ui:responsive\": \"desktop\",\n },\n }),\n padding: Type.Optional(\n cssLengthRef({\n description: \"Padding inside the video player.\",\n \"ai:instructions\": \"Use only a single value like '1rem' or '10px'\",\n title: \"Padding\",\n \"ui:responsive\": true,\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n rounding: Type.Optional(\n roundingRef({\n default: \"rounded-md\",\n }),\n ),\n border: Type.Optional(borderRef()),\n shadow: Type.Optional(shadowRef()),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"A YouTube video\",\n type: \"video\",\n props: {\n url: \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\n },\n },\n {\n description: \"An embedded YouTube video\",\n type: \"video\",\n props: {\n url: \"https://www.youtube.com/embed/dQw4w9WgXcQ\",\n },\n },\n {\n description: \"A Vimeo video\",\n type: \"video\",\n props: {\n url: \"https://vimeo.com/123456789\",\n },\n },\n {\n description: \"Dynamic course video using course query\",\n type: \"video\",\n props: {\n url: \"{{course.videoUrl}}\",\n padding: \"1rem\",\n rounding: \"rounded-lg\",\n shadow: \"shadow-md\",\n },\n },\n {\n description: \"Dynamic product demo video using product query\",\n type: \"video\",\n props: {\n url: \"{{product.demoVideoUrl}}\",\n padding: \"0.5rem\",\n rounding: \"rounded-xl\",\n shadow: \"shadow-lg\",\n border: {\n width: \"border-2\",\n color: \"border-primary-300\",\n },\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,eAAe;AAKxB,SAAS,YAAY;AAGd,IAAM,WAAW,oBAAoB;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,MAAM;AAAA,EACN,cAAc;AAAA,IACZ,QAAQ;AAAA,IACR,SAAS,GAAI,MAAM,KAAM,CAAC;AAAA;AAAA,EAC5B;AAAA,EACA,eAAe;AAAA,IACb,QAAQ;AAAA,IACR,SAAS;AAAA;AAAA,EACX;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,SAAU,MAAM,KAAM;AAAA,EACxB;AAAA,EACA,WAAW;AAAA,IACT,QAAQ;AAAA,IACR,SAAS;AAAA;AAAA,EACX;AAAA,EACA,OAAO,YAAY;AAAA,IACjB,KAAK,OAAO,aAAa;AAAA,MACvB,aACE;AAAA,MACF,SAAS;AAAA,MACT,UAAU;AAAA,QACR,UAAU;AAAA,QACV,iBAAiB;AAAA,MACnB;AAAA,IACF,CAAC;AAAA,IACD,SAAS,KAAK;AAAA,MACZ,aAAa;AAAA,QACX,aAAa;AAAA,QACb,mBAAmB;AAAA,QACnB,OAAO;AAAA,QACP,iBAAiB;AAAA,QACjB,kBAAkB;AAAA,QAClB,cAAc;AAAA,MAChB,CAAC;AAAA,IACH;AAAA,IACA,UAAU,KAAK;AAAA,MACb,YAAY;AAAA,QACV,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA,IACA,QAAQ,KAAK,SAAS,UAAU,CAAC;AAAA,IACjC,QAAQ,KAAK,SAAS,UAAU,CAAC;AAAA,EACnC,CAAC;AACH,CAAC;AAIM,IAAM,WAIP;AAAA,EACJ;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,KAAK;AAAA,IACP;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,KAAK;AAAA,IACP;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,KAAK;AAAA,IACP;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,KAAK;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,KAAK;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,QACN,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/bricks/props/align.ts"],"sourcesContent":["import type { Static, StringOptions } from \"@sinclair/typebox\";\nimport { StringEnum } from \"~/shared/utils/string-enum\";\nimport { typedRef } from \"~/shared/utils/typed-ref\";\n\nexport function justifyContent(options: StringOptions = {}) {\n return StringEnum(\n [\"justify-start\", \"justify-center\", \"justify-end\", \"justify-between\", \"justify-around\", \"justify-evenly\"],\n {\n enumNames: [\"Start\", \"Center\", \"End\", \"Between\", \"Around\", \"Evenly\"],\n // $id: \"styles:justifyContent\",\n title: \"Justify bricks\",\n \"ui:field\": \"justify-content\",\n \"ui:responsive\": true,\n \"ui:styleId\": \"styles:justifyContent\",\n examples: [\"justify-center\", \"justify-evenly\"],\n ...options,\n },\n );\n}\n\nexport type JustifyContentSettings = Static<ReturnType<typeof justifyContent>>;\n\nexport function justifyContentRef(options: StringOptions = {}) {\n return typedRef(\"styles:justifyContent\", options);\n}\n\nexport function alignItems(options: StringOptions = {}) {\n return StringEnum([\"items-start\", \"items-center\", \"items-end\", \"items-stretch\"], {\n enumNames: [\"Start\", \"Center\", \"End\", \"Stretch\"],\n // $id: \"styles:alignItems\",\n title: \"Align bricks\",\n \"ui:field\": \"align-items\",\n \"ui:responsive\": true,\n \"ui:styleId\": \"styles:alignItems\",\n examples: [\"items-center\", \"items-stretch\"],\n ...options,\n });\n}\n\nexport type AlignItemsSettings = Static<ReturnType<typeof alignItems>>;\n\nexport function alignItemsRef(options: StringOptions = {}) {\n return typedRef(\"styles:alignItems\", options);\n}\n\nexport function alignSelf(options: StringOptions = {}) {\n return StringEnum([\"self-auto\", \"self-start\", \"self-center\", \"self-end\", \"self-stretch\"], {\n enumNames: [\"Auto\", \"Start\", \"Center\", \"End\", \"Stretch\"],\n default: \"self-auto\",\n // $id: \"styles:alignSelf\",\n title: \"Align self\",\n \"ui:field\": \"align-self\",\n \"ui:responsive\": true,\n \"ui:styleId\": \"styles:alignSelf\",\n ...options,\n });\n}\n\nexport type AlignSelfSettings = Static<ReturnType<typeof alignSelf>>;\n\nexport function alignSelfRef(options: StringOptions = {}) {\n return typedRef(\"styles:alignSelf\", options);\n}\n"],"mappings":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
-
import type { TSchema } from "@sinclair/typebox";
|
|
2
|
-
export declare const schemaRegistry: Map<string, TSchema>;
|
|
3
|
-
export declare function registerSchema(id: string, schema: TSchema): void;
|
|
4
|
-
export declare function unregisterSchema(id: string): void;
|
|
5
|
-
//# sourceMappingURL=schema-registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-registry.d.ts","sourceRoot":"","sources":["../../src/shared/schema-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAgBjD,eAAO,MAAM,cAAc,sBAA6B,CAAC;AAEzD,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,QAEzD;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,QAE1C"}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
loop,
|
|
5
|
-
queryUse
|
|
6
|
-
} from "./chunk-BW6EFRSF.js";
|
|
7
|
-
import {
|
|
8
|
-
tags
|
|
9
|
-
} from "./chunk-Q4NPPLEU.js";
|
|
10
|
-
import {
|
|
11
|
-
fontSize,
|
|
12
|
-
textContent
|
|
13
|
-
} from "./chunk-F22LDHEO.js";
|
|
14
|
-
import {
|
|
15
|
-
direction
|
|
16
|
-
} from "./chunk-Y74LZNND.js";
|
|
17
|
-
import {
|
|
18
|
-
shadow,
|
|
19
|
-
textShadow
|
|
20
|
-
} from "./chunk-TNMNMYOB.js";
|
|
21
|
-
import {
|
|
22
|
-
icon,
|
|
23
|
-
urlOrPageId
|
|
24
|
-
} from "./chunk-UQF52PWK.js";
|
|
25
|
-
import {
|
|
26
|
-
image
|
|
27
|
-
} from "./chunk-W6MRYRGJ.js";
|
|
28
|
-
import {
|
|
29
|
-
border,
|
|
30
|
-
rounding
|
|
31
|
-
} from "./chunk-NTLAKMMQ.js";
|
|
32
|
-
import {
|
|
33
|
-
colorPreset
|
|
34
|
-
} from "./chunk-TFGGYU6Y.js";
|
|
35
|
-
import {
|
|
36
|
-
borderColor,
|
|
37
|
-
color
|
|
38
|
-
} from "./chunk-SE6O65HC.js";
|
|
39
|
-
import {
|
|
40
|
-
hidden
|
|
41
|
-
} from "./chunk-2RK3CPYJ.js";
|
|
42
|
-
import {
|
|
43
|
-
cssLength
|
|
44
|
-
} from "./chunk-BPBKHEQ5.js";
|
|
45
|
-
import {
|
|
46
|
-
alignItems,
|
|
47
|
-
alignSelf,
|
|
48
|
-
justifyContent
|
|
49
|
-
} from "./chunk-ZLYIRH2B.js";
|
|
50
|
-
import {
|
|
51
|
-
background,
|
|
52
|
-
backgroundColor
|
|
53
|
-
} from "./chunk-RV7AYVFV.js";
|
|
54
|
-
import "./chunk-A2QPY54H.js";
|
|
55
|
-
import "./chunk-JK2FWFJU.js";
|
|
56
|
-
import "./chunk-ZGQ3AQBG.js";
|
|
57
|
-
|
|
58
|
-
// src/shared/schema-registry.ts
|
|
59
|
-
var schemaRegistry = /* @__PURE__ */ new Map();
|
|
60
|
-
function registerSchema(id, schema) {
|
|
61
|
-
schemaRegistry.set(id, schema);
|
|
62
|
-
}
|
|
63
|
-
function unregisterSchema(id) {
|
|
64
|
-
schemaRegistry.delete(id);
|
|
65
|
-
}
|
|
66
|
-
registerSchema("styles:background", background());
|
|
67
|
-
registerSchema("styles:backgroundColor", backgroundColor());
|
|
68
|
-
registerSchema("styles:justifyContent", justifyContent());
|
|
69
|
-
registerSchema("styles:alignItems", alignItems());
|
|
70
|
-
registerSchema("styles:alignSelf", alignSelf());
|
|
71
|
-
registerSchema("styles:rounding", rounding());
|
|
72
|
-
registerSchema("styles:fontSize", fontSize());
|
|
73
|
-
registerSchema("styles:hidden", hidden());
|
|
74
|
-
registerSchema("styles:direction", direction());
|
|
75
|
-
registerSchema("styles:border", border());
|
|
76
|
-
registerSchema("styles:color", color());
|
|
77
|
-
registerSchema("styles:borderColor", borderColor());
|
|
78
|
-
registerSchema("styles:shadow", shadow());
|
|
79
|
-
registerSchema("styles:textShadow", textShadow());
|
|
80
|
-
registerSchema("styles:cssLength", cssLength());
|
|
81
|
-
registerSchema("assets:image", image());
|
|
82
|
-
registerSchema("assets:icon", icon());
|
|
83
|
-
registerSchema("content:text", textContent());
|
|
84
|
-
registerSchema("content:urlOrPageId", urlOrPageId());
|
|
85
|
-
registerSchema("content:loop", loop());
|
|
86
|
-
registerSchema("content:queryUse", queryUse());
|
|
87
|
-
registerSchema("presets:color", colorPreset());
|
|
88
|
-
registerSchema("content:tags", tags());
|
|
89
|
-
function consolidateRefs() {
|
|
90
|
-
function resolveRefs(schema, visited = /* @__PURE__ */ new Set()) {
|
|
91
|
-
if (!schema || typeof schema !== "object" || visited.has(schema)) return schema;
|
|
92
|
-
visited.add(schema);
|
|
93
|
-
if ("$ref" in schema && typeof schema.$ref === "string") {
|
|
94
|
-
const refSchema = schemaRegistry.get(schema.$ref);
|
|
95
|
-
if (refSchema) {
|
|
96
|
-
return resolveRefs(refSchema, visited);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
for (const key of Object.keys(schema)) {
|
|
100
|
-
const value = schema[key];
|
|
101
|
-
if (Array.isArray(value)) {
|
|
102
|
-
schema[key] = value.map((item) => resolveRefs(item, visited));
|
|
103
|
-
} else if (typeof value === "object" && value !== null) {
|
|
104
|
-
schema[key] = resolveRefs(value, visited);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return schema;
|
|
108
|
-
}
|
|
109
|
-
for (const [id, schema] of schemaRegistry.entries()) {
|
|
110
|
-
schemaRegistry.set(id, resolveRefs(schema));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
consolidateRefs();
|
|
114
|
-
export {
|
|
115
|
-
registerSchema,
|
|
116
|
-
schemaRegistry,
|
|
117
|
-
unregisterSchema
|
|
118
|
-
};
|
|
119
|
-
//# sourceMappingURL=schema-registry.js.map
|