@upstart.gg/sdk 0.0.130 → 0.0.131
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 +13 -0
- package/dist/shared/ai/schemas.d.ts.map +1 -0
- package/dist/shared/ai/schemas.js +3 -0
- package/dist/shared/ai/types.d.ts +164 -0
- package/dist/shared/ai/types.d.ts.map +1 -0
- package/dist/shared/{chunk-EJGNYD4V.js → ai/types.js} +0 -1
- package/dist/shared/ajv.d.ts +2 -1
- package/dist/shared/ajv.d.ts.map +1 -1
- package/dist/shared/ajv.js +1 -1
- package/dist/shared/attributes.d.ts +300 -12
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +1 -1
- package/dist/shared/brick-manifest.d.ts +3 -1
- package/dist/shared/brick-manifest.d.ts.map +1 -1
- package/dist/shared/brick-manifest.js +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +4 -3
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js +1 -1
- package/dist/shared/bricks/manifests/all-manifests.d.ts +4 -1
- package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +1 -1
- package/dist/shared/bricks/manifests/box.manifest.d.ts +6 -4
- package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/box.manifest.js +1 -1
- package/dist/shared/bricks/manifests/button.manifest.d.ts +4 -3
- package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +1 -1
- package/dist/shared/bricks/manifests/card.manifest.d.ts +6 -5
- package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +6 -5
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +40 -5
- package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/form.manifest.d.ts +6 -5
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +4 -3
- package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
- package/dist/shared/bricks/manifests/html.manifest.d.ts +3 -2
- package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/html.manifest.js +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.d.ts +3 -2
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
- package/dist/shared/bricks/manifests/image.manifest.d.ts +10 -6
- package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +7 -6
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +1 -1
- package/dist/shared/bricks/manifests/map.manifest.d.ts +5 -4
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +42 -8
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +4 -3
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +5 -4
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts +3 -2
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +6 -5
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +1 -1
- package/dist/shared/bricks/manifests/text.manifest.d.ts +4 -3
- package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +1 -1
- package/dist/shared/bricks/manifests/video.manifest.d.ts +4 -3
- package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +1 -1
- package/dist/shared/bricks/props/align.d.ts.map +1 -1
- package/dist/shared/bricks/props/align.js +1 -1
- package/dist/shared/bricks/props/background.d.ts +6 -9
- package/dist/shared/bricks/props/background.d.ts.map +1 -1
- package/dist/shared/bricks/props/background.js +1 -1
- package/dist/shared/bricks/props/border.d.ts.map +1 -1
- package/dist/shared/bricks/props/border.js +1 -1
- package/dist/shared/bricks/props/color-preset.d.ts +3 -4
- package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
- package/dist/shared/bricks/props/color-preset.js +1 -1
- package/dist/shared/bricks/props/color.js +1 -1
- package/dist/shared/bricks/props/common.d.ts +6 -6
- package/dist/shared/bricks/props/common.d.ts.map +1 -1
- package/dist/shared/bricks/props/common.js +1 -1
- package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
- package/dist/shared/bricks/props/css-length.js +1 -1
- package/dist/shared/bricks/props/datasource.d.ts +1 -1
- package/dist/shared/bricks/props/datasource.js +1 -1
- package/dist/shared/bricks/props/date.d.ts.map +1 -1
- package/dist/shared/bricks/props/date.js +1 -1
- package/dist/shared/bricks/props/direction.d.ts.map +1 -1
- package/dist/shared/bricks/props/direction.js +1 -1
- package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
- package/dist/shared/bricks/props/dynamic.js +1 -1
- package/dist/shared/bricks/props/effects.d.ts +0 -1
- package/dist/shared/bricks/props/effects.d.ts.map +1 -1
- package/dist/shared/bricks/props/effects.js +1 -1
- package/dist/shared/bricks/props/file.d.ts.map +1 -1
- package/dist/shared/bricks/props/file.js +1 -1
- package/dist/shared/bricks/props/geolocation.js +1 -1
- package/dist/shared/bricks/props/helpers.d.ts +2 -2
- package/dist/shared/bricks/props/helpers.js +1 -1
- package/dist/shared/bricks/props/image.d.ts +4 -4
- package/dist/shared/bricks/props/image.d.ts.map +1 -1
- package/dist/shared/bricks/props/image.js +1 -1
- package/dist/shared/bricks/props/position.d.ts +0 -2
- package/dist/shared/bricks/props/position.d.ts.map +1 -1
- package/dist/shared/bricks/props/position.js +1 -1
- package/dist/shared/bricks/props/string.js +1 -1
- package/dist/shared/bricks/props/tags.d.ts.map +1 -1
- package/dist/shared/bricks/props/tags.js +1 -1
- package/dist/shared/bricks/props/text.js +1 -1
- package/dist/shared/bricks/props/types.d.ts +1 -2
- package/dist/shared/bricks/props/types.d.ts.map +1 -1
- package/dist/shared/bricks.d.ts +189 -18
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/chunk-2CYAFF56.js +3 -0
- package/dist/shared/chunk-2NLDX5FG.js +3 -0
- package/dist/shared/chunk-3FPFR5RA.js +3 -0
- package/dist/shared/chunk-3P36LG6T.js +3 -0
- package/dist/shared/chunk-3QOAHMV4.js +5 -0
- package/dist/shared/chunk-4GIZ6WSG.js +3 -0
- package/dist/shared/chunk-5WY7LYXK.js +3 -0
- package/dist/shared/chunk-5X5SX5N7.js +4 -0
- package/dist/shared/chunk-6L3Z5SZQ.js +3 -0
- package/dist/shared/{chunk-UU2MSQXY.js → chunk-6PGAWO4H.js} +1 -1
- package/dist/shared/chunk-6R76KIHZ.js +3 -0
- package/dist/shared/chunk-7UBMXMNJ.js +3 -0
- package/dist/shared/chunk-AB3IMRXZ.js +3 -0
- package/dist/shared/chunk-AMQAGDFH.js +3 -0
- package/dist/shared/chunk-ARMM6B47.js +3 -0
- package/dist/shared/chunk-ARYG4XMX.js +3 -0
- package/dist/shared/chunk-AZHH3XJJ.js +3 -0
- package/dist/shared/chunk-COT2ROEH.js +34 -0
- package/dist/shared/chunk-DHSWVVMI.js +3 -0
- package/dist/shared/chunk-DKNOZLA6.js +3 -0
- package/dist/shared/chunk-EVDZ2KND.js +6 -0
- package/dist/shared/chunk-F4JNKU7J.js +3 -0
- package/dist/shared/chunk-GC5OWY2Z.js +3 -0
- package/dist/shared/chunk-GXNHF6J5.js +3 -0
- package/dist/shared/chunk-HP7CZB2F.js +3 -0
- package/dist/shared/chunk-HSRXUIVM.js +3 -0
- package/dist/shared/chunk-ILIWVWHC.js +8 -0
- package/dist/shared/chunk-JRCVYDCD.js +3 -0
- package/dist/shared/chunk-L2HOZVBC.js +3 -0
- package/dist/shared/chunk-LEWKHCRI.js +3 -0
- package/dist/shared/chunk-LT4CW2F7.js +3 -0
- package/dist/shared/chunk-MVCVVKBY.js +3 -0
- package/dist/shared/chunk-NKIEDT7V.js +3 -0
- package/dist/shared/chunk-NQKXDMQ5.js +3 -0
- package/dist/shared/chunk-NXIF3UMD.js +3 -0
- package/dist/shared/chunk-PW5HRVMD.js +3 -0
- package/dist/shared/chunk-PZYX3ACO.js +3 -0
- package/dist/shared/chunk-QDJQAZIA.js +8 -0
- package/dist/shared/chunk-QGFQA7OZ.js +4 -0
- package/dist/shared/chunk-RJZZWCBD.js +3 -0
- package/dist/shared/chunk-SAJY7H6N.js +3 -0
- package/dist/shared/chunk-SFDRAHYP.js +3 -0
- package/dist/shared/chunk-STDCM2KD.js +3 -0
- package/dist/shared/chunk-TCTVRT4O.js +3 -0
- package/dist/shared/chunk-TH5SONR6.js +3 -0
- package/dist/shared/chunk-UCR2UZOY.js +3 -0
- package/dist/shared/chunk-UDQWYGSO.js +3 -0
- package/dist/shared/{chunk-LSPN22SI.js → chunk-URRCKLAS.js} +3 -3
- package/dist/shared/{chunk-OIOYMECS.js → chunk-US53TNMK.js} +1 -1
- package/dist/shared/chunk-VDX2J22H.js +3 -0
- package/dist/shared/chunk-VE3S4LGT.js +3 -0
- package/dist/shared/chunk-VK26ZZFR.js +3 -0
- package/dist/shared/chunk-VLXZMESE.js +3 -0
- package/dist/shared/chunk-WAML3IGZ.js +3 -0
- package/dist/shared/chunk-WXKRIUTA.js +3 -0
- package/dist/shared/chunk-X62OEAE6.js +3 -0
- package/dist/shared/chunk-XED6ARVN.js +3 -0
- package/dist/shared/chunk-Y3X4F4YJ.js +3 -0
- package/dist/shared/chunk-Z4YKRLOX.js +3 -0
- package/dist/shared/context.d.ts +4 -12
- package/dist/shared/context.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/handler.d.ts +22 -5
- package/dist/shared/datarecords/external/airtable/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/handler.js +1 -1
- package/dist/shared/datarecords/external/airtable/oauth/config.js +3 -0
- package/dist/shared/datarecords/external/airtable/types.d.ts +25 -0
- package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.js +3 -0
- package/dist/shared/datarecords/external/generic-webhook/handler.js +3 -0
- package/dist/shared/datarecords/external/generic-webhook/options.js +3 -0
- package/dist/shared/datarecords/external/google/sheets/client.js +3 -0
- package/dist/shared/datarecords/external/google/sheets/handler.d.ts +29 -5
- package/dist/shared/datarecords/external/google/sheets/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/handler.js +5 -4
- package/dist/shared/datarecords/external/google/sheets/{options.d.ts → types.d.ts} +1 -1
- package/dist/shared/datarecords/external/google/sheets/types.d.ts.map +1 -0
- package/dist/shared/datarecords/external/google/sheets/types.js +3 -0
- package/dist/shared/datarecords/external/notion/handler.d.ts +29 -7
- package/dist/shared/datarecords/external/notion/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/notion/handler.js +1 -1
- package/dist/shared/datarecords/external/notion/oauth/config.js +3 -0
- package/dist/shared/datarecords/external/notion/{options.d.ts → types.d.ts} +11 -1
- package/dist/shared/datarecords/external/notion/types.d.ts.map +1 -0
- package/dist/shared/datarecords/external/notion/types.js +3 -0
- package/dist/shared/datarecords/types.d.ts +17 -165
- package/dist/shared/datarecords/types.d.ts.map +1 -1
- package/dist/shared/datarecords/types.js +1 -1
- package/dist/shared/datarecords.d.ts +2 -2
- package/dist/shared/datarecords.d.ts.map +1 -1
- package/dist/shared/datarecords.js +1 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.js +3 -0
- package/dist/shared/datasources/external/facebook/posts/schema.js +3 -0
- package/dist/shared/datasources/external/http-json/fetcher.js +3 -0
- package/dist/shared/datasources/external/http-json/options.js +3 -0
- package/dist/shared/datasources/external/http-json/schema.js +3 -0
- package/dist/shared/datasources/external/instagram/feed/fetcher.js +3 -0
- package/dist/shared/datasources/external/instagram/feed/schema.js +3 -0
- package/dist/shared/datasources/external/mastodon/account/fetcher.js +3 -0
- package/dist/shared/datasources/external/mastodon/account/schema.js +3 -0
- package/dist/shared/datasources/external/mastodon/options.js +3 -0
- package/dist/shared/datasources/external/mastodon/status/fetcher.js +3 -0
- package/dist/shared/datasources/external/mastodon/status/sample.array.js +3 -0
- package/dist/shared/datasources/external/mastodon/status/sample.single.js +3 -0
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.js +3 -0
- package/dist/shared/datasources/external/meta/options.js +3 -0
- package/dist/shared/datasources/external/rss/fetcher.js +3 -0
- package/dist/shared/datasources/external/rss/options.js +3 -0
- package/dist/shared/datasources/external/rss/schema.js +3 -0
- package/dist/shared/datasources/external/threads/media/fetcher.js +3 -0
- package/dist/shared/datasources/external/threads/media/schema.js +3 -0
- package/dist/shared/datasources/external/tiktok/video/fetcher.js +3 -0
- package/dist/shared/datasources/external/tiktok/video/options.js +3 -0
- package/dist/shared/datasources/external/tiktok/video/schema.js +3 -0
- package/dist/shared/datasources/external/youtube/list/fetcher.js +3 -0
- package/dist/shared/datasources/external/youtube/list/options.js +3 -0
- package/dist/shared/datasources/external/youtube/list/schema.js +3 -0
- package/dist/shared/datasources/fetcher.js +2 -0
- package/dist/shared/datasources/internal/blog/schema.js +3 -0
- package/dist/shared/datasources/internal/changelog/schema.js +3 -0
- package/dist/shared/datasources/internal/contact-info/schema.js +3 -0
- package/dist/shared/datasources/internal/cv/schema.js +3 -0
- package/dist/shared/datasources/internal/faq/schema.js +3 -0
- package/dist/shared/datasources/internal/job-board/schema.js +3 -0
- package/dist/shared/datasources/internal/links/schema.js +3 -0
- package/dist/shared/datasources/internal/recipes/schema.js +3 -0
- package/dist/shared/datasources/internal/restaurant/schema.js +3 -0
- package/dist/shared/datasources/samples.js +3 -0
- package/dist/shared/datasources/schemas.d.ts +0 -49
- package/dist/shared/datasources/schemas.d.ts.map +1 -1
- package/dist/shared/datasources/schemas.js +1 -1
- package/dist/shared/datasources/types.d.ts +53 -130
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/datasources/types.js +1 -1
- package/dist/shared/datasources/utils.js +3 -0
- package/dist/shared/datasources.d.ts +7 -4
- package/dist/shared/datasources.d.ts.map +1 -1
- package/dist/shared/datasources.js +1 -1
- package/dist/shared/errors.js +1 -1
- package/dist/shared/images.d.ts +1 -12
- package/dist/shared/images.d.ts.map +1 -1
- package/dist/shared/images.js +1 -1
- package/dist/shared/index.js +3 -0
- package/dist/shared/manifest.js +3 -0
- package/dist/shared/page.d.ts +143 -12
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/site.d.ts +224 -114
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +1 -1
- package/dist/shared/sitemap.d.ts +167 -23
- package/dist/shared/sitemap.d.ts.map +1 -1
- package/dist/shared/sitemap.js +1 -1
- package/dist/shared/social-icons.js +3 -0
- package/dist/shared/theme.d.ts +41 -4
- package/dist/shared/theme.d.ts.map +1 -1
- package/dist/shared/theme.js +1 -1
- package/dist/shared/utils/invariant.js +1 -1
- package/dist/shared/utils/llm.d.ts +19 -0
- package/dist/shared/utils/llm.d.ts.map +1 -0
- package/dist/shared/utils/llm.js +3 -0
- package/dist/shared/utils/schema.d.ts +6 -1
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +1 -1
- package/dist/shared/utils/tests/schema.test.d.ts +2 -0
- package/dist/shared/utils/tests/schema.test.d.ts.map +1 -0
- package/dist/shared/utils/typed-ref.d.ts +1 -6
- package/dist/shared/utils/typed-ref.d.ts.map +1 -1
- package/dist/shared/utils/typed-ref.js +1 -1
- package/package.json +18 -19
- package/src/shared/ai/schemas.ts +33 -0
- package/src/shared/ai/types.ts +151 -0
- package/src/shared/ajv.ts +123 -0
- package/src/shared/analytics/init.ts +14 -0
- package/src/shared/analytics/track.ts +21 -0
- package/src/shared/analytics/types.ts +13 -0
- package/src/shared/attributes.ts +396 -0
- package/src/shared/brick-manifest.ts +119 -0
- package/src/shared/bricks/manifests/accordion.manifest.ts +482 -0
- package/src/shared/bricks/manifests/all-manifests.ts +121 -0
- package/src/shared/bricks/manifests/box.manifest.ts +551 -0
- package/src/shared/bricks/manifests/button.manifest.ts +208 -0
- package/src/shared/bricks/manifests/card.manifest.ts +320 -0
- package/src/shared/bricks/manifests/carousel.manifest.ts +708 -0
- package/src/shared/bricks/manifests/footer.manifest.ts +509 -0
- package/src/shared/bricks/manifests/form.manifest.ts +226 -0
- package/src/shared/bricks/manifests/hero.manifest.ts +365 -0
- package/src/shared/bricks/manifests/html.manifest.ts +127 -0
- package/src/shared/bricks/manifests/icon.manifest.ts +164 -0
- package/src/shared/bricks/manifests/image.manifest.ts +378 -0
- package/src/shared/bricks/manifests/images-gallery.manifest.ts +822 -0
- package/src/shared/bricks/manifests/map.manifest.ts +215 -0
- package/src/shared/bricks/manifests/navbar.manifest.ts +361 -0
- package/src/shared/bricks/manifests/sidebar.manifest.ts +88 -0
- package/src/shared/bricks/manifests/social-links.manifest.ts +497 -0
- package/src/shared/bricks/manifests/spacer.manifest.ts +54 -0
- package/src/shared/bricks/manifests/testimonials.manifest.ts +480 -0
- package/src/shared/bricks/manifests/tests/header.manifest.test.ts +10 -0
- package/src/shared/bricks/manifests/text.manifest.ts +245 -0
- package/src/shared/bricks/manifests/video.manifest.ts +115 -0
- package/src/shared/bricks/props/align.ts +63 -0
- package/src/shared/bricks/props/background.ts +79 -0
- package/src/shared/bricks/props/boolean.ts +7 -0
- package/src/shared/bricks/props/border.ts +86 -0
- package/src/shared/bricks/props/color-preset.ts +390 -0
- package/src/shared/bricks/props/color.ts +40 -0
- package/src/shared/bricks/props/common.ts +64 -0
- package/src/shared/bricks/props/css-length.ts +32 -0
- package/src/shared/bricks/props/datarecord.ts +11 -0
- package/src/shared/bricks/props/datasource.ts +82 -0
- package/src/shared/bricks/props/date.ts +21 -0
- package/src/shared/bricks/props/direction.ts +21 -0
- package/src/shared/bricks/props/dynamic.ts +112 -0
- package/src/shared/bricks/props/effects.ts +71 -0
- package/src/shared/bricks/props/enum.ts +38 -0
- package/src/shared/bricks/props/file.ts +10 -0
- package/src/shared/bricks/props/geolocation.ts +36 -0
- package/src/shared/bricks/props/helpers.ts +73 -0
- package/src/shared/bricks/props/image.ts +96 -0
- package/src/shared/bricks/props/number.ts +8 -0
- package/src/shared/bricks/props/position.ts +11 -0
- package/src/shared/bricks/props/string.ts +72 -0
- package/src/shared/bricks/props/tags.ts +26 -0
- package/src/shared/bricks/props/tests/background.test.ts +90 -0
- package/src/shared/bricks/props/tests/border.test.ts +12 -0
- package/src/shared/bricks/props/tests/effects.test.ts +37 -0
- package/src/shared/bricks/props/tests/helpers.test.ts +98 -0
- package/src/shared/bricks/props/tests/image.test.ts +71 -0
- package/src/shared/bricks/props/tests/string.test.ts +80 -0
- package/src/shared/bricks/props/text.ts +107 -0
- package/src/shared/bricks/props/types.ts +72 -0
- package/src/shared/bricks.ts +1237 -0
- package/src/shared/context.ts +32 -0
- package/src/shared/datarecords/external/airtable/handler.ts +501 -0
- package/src/shared/datarecords/external/airtable/oauth/config.ts +11 -0
- package/src/shared/datarecords/external/airtable/types.ts +63 -0
- package/src/shared/datarecords/external/generic-webhook/handler.ts +10 -0
- package/src/shared/datarecords/external/generic-webhook/options.ts +13 -0
- package/src/shared/datarecords/external/google/oauth/config.ts +30 -0
- package/src/shared/datarecords/external/google/sheets/client.ts +112 -0
- package/src/shared/datarecords/external/google/sheets/handler.ts +253 -0
- package/src/shared/datarecords/external/google/sheets/types.ts +10 -0
- package/src/shared/datarecords/external/notion/handler.ts +469 -0
- package/src/shared/datarecords/external/notion/oauth/config.ts +7 -0
- package/src/shared/datarecords/external/notion/types.ts +28 -0
- package/src/shared/datarecords/types.ts +165 -0
- package/src/shared/datarecords.ts +5 -0
- package/src/shared/datasources/README.md +3 -0
- package/src/shared/datasources/external/facebook/posts/fetcher.ts +52 -0
- package/src/shared/datasources/external/facebook/posts/sample.ts +35 -0
- package/src/shared/datasources/external/facebook/posts/schema.ts +33 -0
- package/src/shared/datasources/external/facebook/posts/tests/fetcher.test.ts +73 -0
- package/src/shared/datasources/external/http-json/fetcher.ts +31 -0
- package/src/shared/datasources/external/http-json/options.ts +8 -0
- package/src/shared/datasources/external/http-json/schema.ts +6 -0
- package/src/shared/datasources/external/http-json/tests/fetcher.test.ts +70 -0
- package/src/shared/datasources/external/instagram/feed/fetcher.ts +33 -0
- package/src/shared/datasources/external/instagram/feed/sample.ts +22 -0
- package/src/shared/datasources/external/instagram/feed/schema.ts +23 -0
- package/src/shared/datasources/external/instagram/feed/tests/fetcher.test.ts +64 -0
- package/src/shared/datasources/external/mastodon/account/fetcher.ts +24 -0
- package/src/shared/datasources/external/mastodon/account/sample.ts +33 -0
- package/src/shared/datasources/external/mastodon/account/schema.ts +45 -0
- package/src/shared/datasources/external/mastodon/account/tests/fetcher.test.ts +47 -0
- package/src/shared/datasources/external/mastodon/options.ts +6 -0
- package/src/shared/datasources/external/mastodon/status/fetcher.ts +35 -0
- package/src/shared/datasources/external/mastodon/status/sample.array.ts +59 -0
- package/src/shared/datasources/external/mastodon/status/sample.single.ts +55 -0
- package/src/shared/datasources/external/mastodon/status/schema.ts +125 -0
- package/src/shared/datasources/external/mastodon/status/tests/fetcher.test.ts +74 -0
- package/src/shared/datasources/external/meta/oauth/config.ts +16 -0
- package/src/shared/datasources/external/meta/options.ts +7 -0
- package/src/shared/datasources/external/rss/fetcher.ts +31 -0
- package/src/shared/datasources/external/rss/options.ts +7 -0
- package/src/shared/datasources/external/rss/sample.ts +22 -0
- package/src/shared/datasources/external/rss/schema.ts +42 -0
- package/src/shared/datasources/external/threads/media/fetcher.ts +53 -0
- package/src/shared/datasources/external/threads/media/sample.ts +44 -0
- package/src/shared/datasources/external/threads/media/schema.ts +37 -0
- package/src/shared/datasources/external/tiktok/oauth/config.ts +17 -0
- package/src/shared/datasources/external/tiktok/video/fetcher.ts +39 -0
- package/src/shared/datasources/external/tiktok/video/options.ts +8 -0
- package/src/shared/datasources/external/tiktok/video/sample.ts +26 -0
- package/src/shared/datasources/external/tiktok/video/schema.ts +27 -0
- package/src/shared/datasources/external/youtube/list/fetcher.ts +37 -0
- package/src/shared/datasources/external/youtube/list/options.ts +11 -0
- package/src/shared/datasources/external/youtube/list/sample.ts +33 -0
- package/src/shared/datasources/external/youtube/list/schema.ts +38 -0
- package/src/shared/datasources/external/youtube/oauth/config.ts +15 -0
- package/src/shared/datasources/fetcher.ts +16 -0
- package/src/shared/datasources/internal/blog/schema.ts +69 -0
- package/src/shared/datasources/internal/changelog/schema.ts +48 -0
- package/src/shared/datasources/internal/contact-info/schema.ts +20 -0
- package/src/shared/datasources/internal/cv/schema.ts +217 -0
- package/src/shared/datasources/internal/faq/schema.ts +27 -0
- package/src/shared/datasources/internal/job-board/schema.ts +228 -0
- package/src/shared/datasources/internal/links/schema.ts +15 -0
- package/src/shared/datasources/internal/recipes/schema.ts +42 -0
- package/src/shared/datasources/internal/restaurant/schema.ts +225 -0
- package/src/shared/datasources/samples.ts +26 -0
- package/src/shared/datasources/schemas.ts +48 -0
- package/src/shared/datasources/types.ts +490 -0
- package/src/shared/datasources/utils.ts +17 -0
- package/src/shared/datasources.ts +57 -0
- package/src/shared/env.ts +23 -0
- package/src/shared/errors.ts +1 -0
- package/src/shared/images.ts +44 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/layout-constants.ts +19 -0
- package/src/shared/manifest.ts +50 -0
- package/src/shared/oauth.ts +16 -0
- package/src/shared/page.ts +36 -0
- package/src/shared/prompt.ts +9 -0
- package/src/shared/responsive.ts +5 -0
- package/src/shared/site.ts +59 -0
- package/src/shared/sitemap.ts +98 -0
- package/src/shared/social-icons.ts +307 -0
- package/src/shared/tests/attributes.test.ts +31 -0
- package/src/shared/theme.ts +244 -0
- package/src/shared/themes/README.md +34 -0
- package/src/shared/themes/color-system.ts +146 -0
- package/src/shared/themes/tests/color-system.test.ts +170 -0
- package/src/shared/utils/canvas-data-uri.ts +2 -0
- package/src/shared/utils/invariant.ts +25 -0
- package/src/shared/utils/json-date.ts +8 -0
- package/src/shared/utils/llm.ts +282 -0
- package/src/shared/utils/merge.ts +12 -0
- package/src/shared/utils/object-hash.ts +7 -0
- package/src/shared/utils/schema.ts +359 -0
- package/src/shared/utils/string-enum.ts +12 -0
- package/src/shared/utils/tests/schema.test.ts +724 -0
- package/src/shared/utils/try-catch.ts +12 -0
- package/src/shared/utils/typed-ref.ts +53 -0
- package/dist/shared/bricks/props/container.d.ts +0 -11
- package/dist/shared/bricks/props/container.d.ts.map +0 -1
- package/dist/shared/bricks/props/container.js +0 -3
- package/dist/shared/bricks/props/gap.d.ts +0 -9
- package/dist/shared/bricks/props/gap.d.ts.map +0 -1
- package/dist/shared/bricks/props/gap.js +0 -3
- package/dist/shared/bricks/props/padding.d.ts +0 -5
- package/dist/shared/bricks/props/padding.d.ts.map +0 -1
- package/dist/shared/bricks/props/padding.js +0 -3
- package/dist/shared/bricks/props/tests/padding.d.ts +0 -2
- package/dist/shared/bricks/props/tests/padding.d.ts.map +0 -1
- package/dist/shared/chunk-2IYSJYNE.js +0 -3
- package/dist/shared/chunk-3EM3B4DX.js +0 -3
- package/dist/shared/chunk-4TH3C76A.js +0 -3
- package/dist/shared/chunk-5N6MBJJ4.js +0 -3
- package/dist/shared/chunk-6FITVVZX.js +0 -3
- package/dist/shared/chunk-6WCGUAQN.js +0 -3
- package/dist/shared/chunk-7DMUDZ4H.js +0 -3
- package/dist/shared/chunk-ACVLF55Q.js +0 -3
- package/dist/shared/chunk-AQPN5SE2.js +0 -3
- package/dist/shared/chunk-BZGNY7LB.js +0 -3
- package/dist/shared/chunk-C3VGP4CA.js +0 -3
- package/dist/shared/chunk-CT3EI7YN.js +0 -3
- package/dist/shared/chunk-DQXDGV67.js +0 -3
- package/dist/shared/chunk-E22E4XWE.js +0 -3
- package/dist/shared/chunk-ETYYRWLK.js +0 -3
- package/dist/shared/chunk-EYPREFMH.js +0 -3
- package/dist/shared/chunk-FKNNTHWX.js +0 -5
- package/dist/shared/chunk-HHO3ONTQ.js +0 -3
- package/dist/shared/chunk-I46VBMLF.js +0 -3
- package/dist/shared/chunk-IIFTGWFZ.js +0 -3
- package/dist/shared/chunk-JS4K5JRM.js +0 -5
- package/dist/shared/chunk-KHFNN4P3.js +0 -3
- package/dist/shared/chunk-L6WHBSRZ.js +0 -8
- package/dist/shared/chunk-LFQZRGHS.js +0 -3
- package/dist/shared/chunk-LGP6GWIY.js +0 -3
- package/dist/shared/chunk-NLEWXPVM.js +0 -3
- package/dist/shared/chunk-NNI225RG.js +0 -3
- package/dist/shared/chunk-QISTDGPP.js +0 -3
- package/dist/shared/chunk-QSZWDE3D.js +0 -3
- package/dist/shared/chunk-RGLVKILY.js +0 -3
- package/dist/shared/chunk-SLRU4CT6.js +0 -4
- package/dist/shared/chunk-T3LIA4YB.js +0 -3
- package/dist/shared/chunk-T4LMBG2G.js +0 -3
- package/dist/shared/chunk-TATG6SFZ.js +0 -3
- package/dist/shared/chunk-TF3JVVRU.js +0 -3
- package/dist/shared/chunk-TTTXV7TJ.js +0 -6
- package/dist/shared/chunk-TWBY2GOR.js +0 -3
- package/dist/shared/chunk-UAQHU6L6.js +0 -3
- package/dist/shared/chunk-UHF6IEKV.js +0 -3
- package/dist/shared/chunk-UMHXXXVP.js +0 -3
- package/dist/shared/chunk-VGRYSAXA.js +0 -3
- package/dist/shared/chunk-VPFCY4DH.js +0 -3
- package/dist/shared/chunk-VZPXXFVX.js +0 -3
- package/dist/shared/chunk-WU6Q4WYD.js +0 -3
- package/dist/shared/chunk-X43MB5WD.js +0 -3
- package/dist/shared/chunk-YBGPPF7T.js +0 -3
- package/dist/shared/chunk-YFFTZ5T6.js +0 -3
- package/dist/shared/chunk-ZQGNYK5I.js +0 -8
- package/dist/shared/chunk-ZTDUXSWH.js +0 -3
- package/dist/shared/datarecords/external/airtable/client.d.ts +0 -8
- package/dist/shared/datarecords/external/airtable/client.d.ts.map +0 -1
- package/dist/shared/datarecords/external/airtable/elements.d.ts +0 -21
- package/dist/shared/datarecords/external/airtable/elements.d.ts.map +0 -1
- package/dist/shared/datarecords/external/airtable/options.d.ts +0 -10
- package/dist/shared/datarecords/external/airtable/options.d.ts.map +0 -1
- package/dist/shared/datarecords/external/google/sheets/options.d.ts.map +0 -1
- package/dist/shared/datarecords/external/notion/client.d.ts +0 -8
- package/dist/shared/datarecords/external/notion/client.d.ts.map +0 -1
- package/dist/shared/datarecords/external/notion/options.d.ts.map +0 -1
- package/dist/shared/datarecords/external/notion/utils.d.ts +0 -5
- package/dist/shared/datarecords/external/notion/utils.d.ts.map +0 -1
- package/dist/shared/utils/schema-resolver.d.ts +0 -3
- package/dist/shared/utils/schema-resolver.d.ts.map +0 -1
- package/dist/shared/utils/schema-resolver.js +0 -3
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { type Static, Type } from "@sinclair/typebox";
|
|
2
|
+
import { FaWpforms } from "react-icons/fa6";
|
|
3
|
+
import { defineBrickManifest } from "~/shared/brick-manifest";
|
|
4
|
+
import { StringEnum } from "~/shared/utils/string-enum";
|
|
5
|
+
import { borderRef, roundingRef } from "../props/border";
|
|
6
|
+
import { datarecord } from "../props/datarecord";
|
|
7
|
+
import { defineProps, group } from "../props/helpers";
|
|
8
|
+
import { string } from "../props/string";
|
|
9
|
+
import type { BrickProps } from "../props/types";
|
|
10
|
+
import { fontSizeRef } from "../props/text";
|
|
11
|
+
import { colorPresetRef } from "../props/color-preset";
|
|
12
|
+
import { directionRef } from "../props/direction";
|
|
13
|
+
import { cssLengthRef } from "../props/css-length";
|
|
14
|
+
|
|
15
|
+
export const manifest = defineBrickManifest({
|
|
16
|
+
type: "form",
|
|
17
|
+
name: "Form",
|
|
18
|
+
description: "A form element.",
|
|
19
|
+
aiInstructions: `The form brick automatically renders form fields based on the datarecord id provided in the props.
|
|
20
|
+
There is no need to define the form fields manually and the form does not accept any children`,
|
|
21
|
+
isContainer: false,
|
|
22
|
+
icon: FaWpforms,
|
|
23
|
+
minWidth: {
|
|
24
|
+
desktop: 300,
|
|
25
|
+
},
|
|
26
|
+
props: defineProps({
|
|
27
|
+
datarecordId: datarecord("Datarecord ID", {
|
|
28
|
+
description: "The ID of the datarecord to use to generate the form fields. The datarecord must exist.",
|
|
29
|
+
"ui:responsive": "desktop",
|
|
30
|
+
}),
|
|
31
|
+
colorPreset: Type.Optional(
|
|
32
|
+
colorPresetRef({
|
|
33
|
+
title: "Color",
|
|
34
|
+
default: "base-200",
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
direction: Type.Optional(
|
|
38
|
+
directionRef({
|
|
39
|
+
title: "Direction",
|
|
40
|
+
description: "The direction of the form fields",
|
|
41
|
+
default: "flex-col",
|
|
42
|
+
"ui:responsive": "desktop",
|
|
43
|
+
"ui:desktop-only": true,
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
46
|
+
padding: Type.Optional(
|
|
47
|
+
cssLengthRef({
|
|
48
|
+
default: "2rem",
|
|
49
|
+
description: "Padding inside the form.",
|
|
50
|
+
title: "Padding",
|
|
51
|
+
"ui:responsive": true,
|
|
52
|
+
"ui:placeholder": "Not specified",
|
|
53
|
+
"ui:styleId": "styles:padding",
|
|
54
|
+
}),
|
|
55
|
+
),
|
|
56
|
+
rounding: Type.Optional(
|
|
57
|
+
roundingRef({
|
|
58
|
+
default: "rounded-md",
|
|
59
|
+
}),
|
|
60
|
+
),
|
|
61
|
+
border: Type.Optional(borderRef({})),
|
|
62
|
+
fontSize: Type.Optional(fontSizeRef({ default: "inherit", "ui:no-extra-large-sizes": true })),
|
|
63
|
+
button: group({
|
|
64
|
+
title: "Button",
|
|
65
|
+
children: {
|
|
66
|
+
color: Type.Optional(
|
|
67
|
+
StringEnum(["btn-neutral", "btn-primary", "btn-secondary", "btn-accent"], {
|
|
68
|
+
enumNames: ["Neutral", "Primary", "Secondary", "Accent"],
|
|
69
|
+
title: "Color",
|
|
70
|
+
default: "btn-primary",
|
|
71
|
+
}),
|
|
72
|
+
),
|
|
73
|
+
size: Type.Optional(
|
|
74
|
+
StringEnum(["block", "wide"], {
|
|
75
|
+
title: "Size",
|
|
76
|
+
description: "Button sizes.",
|
|
77
|
+
enumNames: ["Block", "Wide"],
|
|
78
|
+
default: "block",
|
|
79
|
+
"ui:responsive": "desktop",
|
|
80
|
+
}),
|
|
81
|
+
),
|
|
82
|
+
position: Type.Optional(
|
|
83
|
+
StringEnum(["justify-start", "justify-center", "justify-end"], {
|
|
84
|
+
title: "Button Position",
|
|
85
|
+
description: "The position of the button in the form",
|
|
86
|
+
enumNames: ["Left", "Center", "Right"],
|
|
87
|
+
default: "justify-end",
|
|
88
|
+
"ui:responsive": "desktop",
|
|
89
|
+
metadata: {
|
|
90
|
+
filter: (manifestProps: Manifest["props"], formData: Static<Manifest["props"]>) => {
|
|
91
|
+
return formData.button?.size !== "wide";
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
}),
|
|
95
|
+
),
|
|
96
|
+
rounding: Type.Optional(roundingRef({ default: "rounded-md" })),
|
|
97
|
+
},
|
|
98
|
+
}),
|
|
99
|
+
|
|
100
|
+
title: Type.Optional(
|
|
101
|
+
Type.String({
|
|
102
|
+
title: "Form title",
|
|
103
|
+
default: "My form",
|
|
104
|
+
metadata: {
|
|
105
|
+
category: "content",
|
|
106
|
+
},
|
|
107
|
+
}),
|
|
108
|
+
),
|
|
109
|
+
intro: Type.Optional(
|
|
110
|
+
Type.String({
|
|
111
|
+
title: "Intro",
|
|
112
|
+
description: "The intro text of the form",
|
|
113
|
+
"ui:multiline": true,
|
|
114
|
+
metadata: {
|
|
115
|
+
category: "content",
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
118
|
+
),
|
|
119
|
+
buttonLabel: Type.Optional(
|
|
120
|
+
string("Button Label", {
|
|
121
|
+
default: "Submit",
|
|
122
|
+
metadata: { category: "content" },
|
|
123
|
+
}),
|
|
124
|
+
),
|
|
125
|
+
successMessage: Type.Optional(
|
|
126
|
+
Type.String({
|
|
127
|
+
title: "Success Message",
|
|
128
|
+
description: "The message to display when the form is successfully submitted",
|
|
129
|
+
default: "Thank you for your submission!",
|
|
130
|
+
metadata: {
|
|
131
|
+
category: "content",
|
|
132
|
+
},
|
|
133
|
+
}),
|
|
134
|
+
),
|
|
135
|
+
errorMessage: Type.Optional(
|
|
136
|
+
Type.String({
|
|
137
|
+
title: "Error Message",
|
|
138
|
+
description: "The message to display when the form submission fails",
|
|
139
|
+
default: "There was an error submitting the form. Please try again later.",
|
|
140
|
+
metadata: {
|
|
141
|
+
category: "content",
|
|
142
|
+
},
|
|
143
|
+
}),
|
|
144
|
+
),
|
|
145
|
+
}),
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
export type Manifest = typeof manifest;
|
|
149
|
+
|
|
150
|
+
export const examples: {
|
|
151
|
+
description: string;
|
|
152
|
+
type: string;
|
|
153
|
+
props: BrickProps<Manifest>["brick"]["props"];
|
|
154
|
+
}[] = [
|
|
155
|
+
{
|
|
156
|
+
description: "Basic contact form",
|
|
157
|
+
type: "form",
|
|
158
|
+
props: {
|
|
159
|
+
title: "Contact Us",
|
|
160
|
+
intro: "We'd love to hear from you. Send us a message and we'll respond as soon as possible.",
|
|
161
|
+
direction: "flex-row",
|
|
162
|
+
datarecordId: "contacts",
|
|
163
|
+
buttonLabel: "Send Message",
|
|
164
|
+
button: {
|
|
165
|
+
size: "block",
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
description: "User registration form with large button",
|
|
171
|
+
type: "form",
|
|
172
|
+
props: {
|
|
173
|
+
title: "Create Account",
|
|
174
|
+
intro: "Join our platform and start your journey today.",
|
|
175
|
+
direction: "flex-row",
|
|
176
|
+
datarecordId: "user-registration",
|
|
177
|
+
buttonLabel: "Register",
|
|
178
|
+
button: {
|
|
179
|
+
size: "wide",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
description: "Newsletter subscription form (horizontal) with large padding",
|
|
185
|
+
type: "form",
|
|
186
|
+
props: {
|
|
187
|
+
title: "Stay Updated",
|
|
188
|
+
intro: "Subscribe to our newsletter for the latest updates and exclusive content.",
|
|
189
|
+
direction: "flex-col",
|
|
190
|
+
datarecordId: "newsletter-subscription",
|
|
191
|
+
padding: "3rem",
|
|
192
|
+
buttonLabel: "Subscribe",
|
|
193
|
+
button: {
|
|
194
|
+
size: "block",
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
description: "Event registration form",
|
|
200
|
+
type: "form",
|
|
201
|
+
props: {
|
|
202
|
+
title: "Conference Registration",
|
|
203
|
+
intro: "Register for the Annual Tech Conference 2025. Early bird pricing ends soon!",
|
|
204
|
+
direction: "flex-col",
|
|
205
|
+
datarecordId: "event-registration",
|
|
206
|
+
buttonLabel: "Register Now",
|
|
207
|
+
button: {
|
|
208
|
+
size: "block",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
description: "Job application form",
|
|
214
|
+
type: "form",
|
|
215
|
+
props: {
|
|
216
|
+
title: "Apply for Position",
|
|
217
|
+
intro: "We're excited to learn more about you! Please fill out this application form completely.",
|
|
218
|
+
direction: "flex-col",
|
|
219
|
+
datarecordId: "job-application",
|
|
220
|
+
buttonLabel: "Submit Application",
|
|
221
|
+
button: {
|
|
222
|
+
size: "block",
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
];
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { defineBrickManifest } from "~/shared/brick-manifest";
|
|
2
|
+
import { defineProps } from "../props/helpers";
|
|
3
|
+
import { textContentRef } from "../props/text";
|
|
4
|
+
import { BsAlphabetUppercase } from "react-icons/bs";
|
|
5
|
+
import type { BrickProps } from "../props/types";
|
|
6
|
+
import { Type } from "@sinclair/typebox";
|
|
7
|
+
import { shadowRef, textShadowRef } from "../props/effects";
|
|
8
|
+
import { borderRef, roundingRef } from "../props/border";
|
|
9
|
+
import { colorPresetRef } from "../props/color-preset";
|
|
10
|
+
import { alignItemsRef, justifyContentRef } from "../props/align";
|
|
11
|
+
import { cssLengthRef } from "../props/css-length";
|
|
12
|
+
|
|
13
|
+
export const manifest = defineBrickManifest({
|
|
14
|
+
type: "hero",
|
|
15
|
+
category: "basic",
|
|
16
|
+
name: "Hero",
|
|
17
|
+
description: "A big textual element for home pages.",
|
|
18
|
+
aiInstructions: `Displays a large text element that can be used to display a title and an optional tagline.
|
|
19
|
+
Typically used on home pages to grab the user's attention. It's better NOT to provide the colorPreset prop so that the Hero inherits the background of its parent box or section.`,
|
|
20
|
+
icon: BsAlphabetUppercase,
|
|
21
|
+
|
|
22
|
+
defaultWidth: { desktop: "60dvw", mobile: "auto" },
|
|
23
|
+
|
|
24
|
+
// Force the wrapper direction to be the same as the text direction
|
|
25
|
+
staticClasses: "flex-col",
|
|
26
|
+
|
|
27
|
+
props: defineProps({
|
|
28
|
+
content: textContentRef({
|
|
29
|
+
title: "Hero title",
|
|
30
|
+
default: "<h1 style='text-align:center'>Lorem Ipsum<br />dolor sit amet</h1>",
|
|
31
|
+
}),
|
|
32
|
+
tagline: Type.Optional(
|
|
33
|
+
textContentRef({
|
|
34
|
+
title: "Hero tagline",
|
|
35
|
+
default: "<p style='text-align:center'>Use our platform to build your business with confidence.</p>",
|
|
36
|
+
}),
|
|
37
|
+
),
|
|
38
|
+
colorPreset: Type.Optional(
|
|
39
|
+
colorPresetRef({
|
|
40
|
+
title: "Color",
|
|
41
|
+
}),
|
|
42
|
+
),
|
|
43
|
+
|
|
44
|
+
textShadow: Type.Optional(
|
|
45
|
+
textShadowRef({
|
|
46
|
+
default: "text-shadow-sm",
|
|
47
|
+
}),
|
|
48
|
+
),
|
|
49
|
+
padding: Type.Optional(
|
|
50
|
+
cssLengthRef({
|
|
51
|
+
default: "6rem",
|
|
52
|
+
description: "Padding inside the hero.",
|
|
53
|
+
"ai:instructions": "Use only a single value like '1rem' or '10px'",
|
|
54
|
+
title: "Padding",
|
|
55
|
+
"ui:responsive": true,
|
|
56
|
+
"ui:placeholder": "Not specified",
|
|
57
|
+
"ui:styleId": "styles:padding",
|
|
58
|
+
}),
|
|
59
|
+
),
|
|
60
|
+
rounding: Type.Optional(
|
|
61
|
+
roundingRef({
|
|
62
|
+
default: "rounded-md",
|
|
63
|
+
}),
|
|
64
|
+
),
|
|
65
|
+
border: Type.Optional(borderRef()),
|
|
66
|
+
shadow: Type.Optional(shadowRef()),
|
|
67
|
+
justifyContent: Type.Optional(
|
|
68
|
+
justifyContentRef({
|
|
69
|
+
default: "justify-center",
|
|
70
|
+
}),
|
|
71
|
+
),
|
|
72
|
+
alignItems: Type.Optional(
|
|
73
|
+
alignItemsRef({
|
|
74
|
+
default: "items-center",
|
|
75
|
+
}),
|
|
76
|
+
),
|
|
77
|
+
}),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export type Manifest = typeof manifest;
|
|
81
|
+
|
|
82
|
+
export const examples: {
|
|
83
|
+
description: string;
|
|
84
|
+
type: string;
|
|
85
|
+
props: BrickProps<Manifest>["brick"]["props"];
|
|
86
|
+
}[] = [
|
|
87
|
+
{
|
|
88
|
+
description: "Simple welcome hero with primary background",
|
|
89
|
+
type: "hero",
|
|
90
|
+
props: {
|
|
91
|
+
content: "Welcome to Our Platform",
|
|
92
|
+
tagline: "The future of productivity starts here",
|
|
93
|
+
padding: "3rem",
|
|
94
|
+
colorPreset: {
|
|
95
|
+
color: "primary-400",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
description: "Startup hero with primary gradient background to bottom-right",
|
|
101
|
+
type: "hero",
|
|
102
|
+
props: {
|
|
103
|
+
content: "Build Something Amazing",
|
|
104
|
+
tagline: "Turn your ideas into reality with our cutting-edge tools",
|
|
105
|
+
padding: "3rem",
|
|
106
|
+
colorPreset: {
|
|
107
|
+
color: "primary-500",
|
|
108
|
+
gradientDirection: "bg-gradient-to-br",
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
description: "Construction company hero with bold presence",
|
|
114
|
+
type: "hero",
|
|
115
|
+
props: {
|
|
116
|
+
content: "Building Tomorrow Today",
|
|
117
|
+
tagline: "Quality construction services for residential and commercial projects",
|
|
118
|
+
padding: "3rem",
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
description: "Fashion brand hero with modern appeal",
|
|
123
|
+
type: "hero",
|
|
124
|
+
props: {
|
|
125
|
+
content: "Express Your Style",
|
|
126
|
+
tagline: "Contemporary fashion that speaks to your individuality",
|
|
127
|
+
padding: "6rem",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
description: "Law firm hero with authoritative tone",
|
|
132
|
+
type: "hero",
|
|
133
|
+
props: {
|
|
134
|
+
content: "Justice You Can Trust",
|
|
135
|
+
tagline: "Experienced legal representation for individuals and businesses",
|
|
136
|
+
padding: "6rem",
|
|
137
|
+
colorPreset: {
|
|
138
|
+
color: "neutral-800",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
description: "Photography studio hero with artistic flair",
|
|
144
|
+
type: "hero",
|
|
145
|
+
props: {
|
|
146
|
+
content: "Capturing Life's Moments",
|
|
147
|
+
tagline: "Professional photography services for weddings, portraits, and events",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
description: "Restaurant hero with warm colors and rounded design",
|
|
152
|
+
type: "hero",
|
|
153
|
+
props: {
|
|
154
|
+
content: "Authentic Italian Cuisine",
|
|
155
|
+
tagline: "Fresh ingredients, traditional recipes, unforgettable flavors",
|
|
156
|
+
padding: "4rem",
|
|
157
|
+
colorPreset: {
|
|
158
|
+
color: "orange-600",
|
|
159
|
+
},
|
|
160
|
+
rounding: "rounded-xl",
|
|
161
|
+
shadow: "shadow-lg",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
description: "Tech company hero with success gradient and modern styling",
|
|
166
|
+
type: "hero",
|
|
167
|
+
props: {
|
|
168
|
+
content: "Innovation Redefined",
|
|
169
|
+
tagline: "Pushing the boundaries of what's possible with AI technology",
|
|
170
|
+
padding: "5rem",
|
|
171
|
+
colorPreset: {
|
|
172
|
+
color: "success-500",
|
|
173
|
+
gradientDirection: "bg-gradient-to-r",
|
|
174
|
+
},
|
|
175
|
+
textShadow: "text-shadow-lg",
|
|
176
|
+
border: {
|
|
177
|
+
width: "border-2",
|
|
178
|
+
color: "border-success-300",
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
description: "Medical practice hero with trust-inspiring design",
|
|
184
|
+
type: "hero",
|
|
185
|
+
props: {
|
|
186
|
+
content: "Your Health, Our Priority",
|
|
187
|
+
tagline: "Comprehensive healthcare services with compassionate care",
|
|
188
|
+
padding: "4rem",
|
|
189
|
+
colorPreset: {
|
|
190
|
+
color: "blue-500",
|
|
191
|
+
},
|
|
192
|
+
rounding: "rounded-lg",
|
|
193
|
+
justifyContent: "justify-start",
|
|
194
|
+
alignItems: "items-start",
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
description: "Creative agency hero with warning accent and diagonal gradient",
|
|
199
|
+
type: "hero",
|
|
200
|
+
props: {
|
|
201
|
+
content: "Creative Solutions",
|
|
202
|
+
tagline: "Bold designs that make your brand unforgettable",
|
|
203
|
+
padding: "3rem",
|
|
204
|
+
colorPreset: {
|
|
205
|
+
color: "warning-400",
|
|
206
|
+
gradientDirection: "bg-gradient-to-tl",
|
|
207
|
+
},
|
|
208
|
+
shadow: "shadow-xl",
|
|
209
|
+
border: {
|
|
210
|
+
width: "border",
|
|
211
|
+
color: "border-warning-200",
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
description: "Fitness studio hero with danger color and strong presence",
|
|
217
|
+
type: "hero",
|
|
218
|
+
props: {
|
|
219
|
+
content: "Transform Your Body",
|
|
220
|
+
tagline: "High-intensity training programs that deliver real results",
|
|
221
|
+
padding: "5rem",
|
|
222
|
+
colorPreset: {
|
|
223
|
+
color: "danger-600",
|
|
224
|
+
},
|
|
225
|
+
textShadow: "text-shadow-md",
|
|
226
|
+
rounding: "rounded-2xl",
|
|
227
|
+
justifyContent: "justify-center",
|
|
228
|
+
alignItems: "items-center",
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
description: "Minimalist hero with neutral tones and subtle effects",
|
|
233
|
+
type: "hero",
|
|
234
|
+
props: {
|
|
235
|
+
content: "Simplicity Perfected",
|
|
236
|
+
tagline: "Clean design solutions for modern businesses",
|
|
237
|
+
padding: "8rem",
|
|
238
|
+
colorPreset: {
|
|
239
|
+
color: "neutral-100",
|
|
240
|
+
},
|
|
241
|
+
shadow: "shadow-sm",
|
|
242
|
+
border: {
|
|
243
|
+
width: "border",
|
|
244
|
+
color: "border-neutral-300",
|
|
245
|
+
},
|
|
246
|
+
rounding: "rounded-md",
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
description: "Dynamic company hero using business query data",
|
|
251
|
+
type: "hero",
|
|
252
|
+
props: {
|
|
253
|
+
content: "Welcome to {{company.name}}",
|
|
254
|
+
tagline: "{{company.tagline}} - Serving {{company.location}} since {{company.foundedYear}}",
|
|
255
|
+
padding: "4rem",
|
|
256
|
+
colorPreset: {
|
|
257
|
+
color: "primary-500",
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
description: "Dynamic employee spotlight using employee query",
|
|
263
|
+
type: "hero",
|
|
264
|
+
props: {
|
|
265
|
+
content: "Meet {{employee.fullName}}",
|
|
266
|
+
tagline:
|
|
267
|
+
"{{employee.position}} at {{employee.department}} - {{employee.yearsExperience}} years of experience",
|
|
268
|
+
padding: "3rem",
|
|
269
|
+
colorPreset: {
|
|
270
|
+
color: "secondary-400",
|
|
271
|
+
gradientDirection: "bg-gradient-to-r",
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
description: "Dynamic product launch hero using product query",
|
|
277
|
+
type: "hero",
|
|
278
|
+
props: {
|
|
279
|
+
content: "Introducing {{product.name}}",
|
|
280
|
+
tagline: "{{product.description}} - Starting at ${{product.price}}",
|
|
281
|
+
padding: "5rem",
|
|
282
|
+
colorPreset: {
|
|
283
|
+
color: "accent-600",
|
|
284
|
+
},
|
|
285
|
+
shadow: "shadow-lg",
|
|
286
|
+
rounding: "rounded-xl",
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
description: "Dynamic event announcement using event query",
|
|
291
|
+
type: "hero",
|
|
292
|
+
props: {
|
|
293
|
+
content: "{{event.title}}",
|
|
294
|
+
tagline: "Join us on {{event.date}} at {{event.venue}} - {{event.city}}",
|
|
295
|
+
padding: "4rem",
|
|
296
|
+
colorPreset: {
|
|
297
|
+
color: "primary-400",
|
|
298
|
+
gradientDirection: "bg-gradient-to-br",
|
|
299
|
+
},
|
|
300
|
+
textShadow: "text-shadow-md",
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
description: "Dynamic blog post hero using article query",
|
|
305
|
+
type: "hero",
|
|
306
|
+
props: {
|
|
307
|
+
content: "{{article.title}}",
|
|
308
|
+
tagline: "By {{article.author}} • Published {{article.publishDate}} • {{article.readTime}} min read",
|
|
309
|
+
padding: "3rem",
|
|
310
|
+
colorPreset: {
|
|
311
|
+
color: "neutral-700",
|
|
312
|
+
},
|
|
313
|
+
justifyContent: "justify-start",
|
|
314
|
+
alignItems: "items-start",
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
description: "Dynamic service promotion using service query",
|
|
319
|
+
type: "hero",
|
|
320
|
+
props: {
|
|
321
|
+
content: "{{service.name}}",
|
|
322
|
+
tagline: "{{service.description}} - {{service.duration}} • Starting at ${{service.price}}",
|
|
323
|
+
padding: "6rem",
|
|
324
|
+
colorPreset: {
|
|
325
|
+
color: "secondary-500",
|
|
326
|
+
gradientDirection: "bg-gradient-to-tl",
|
|
327
|
+
},
|
|
328
|
+
border: {
|
|
329
|
+
width: "border-2",
|
|
330
|
+
color: "border-secondary-300",
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
description: "Dynamic property showcase using property query",
|
|
336
|
+
type: "hero",
|
|
337
|
+
props: {
|
|
338
|
+
content: "{{property.address}}",
|
|
339
|
+
tagline:
|
|
340
|
+
"${{property.price}} • {{property.bedrooms}} bed, {{property.bathrooms}} bath • {{property.squareFootage}} sq ft",
|
|
341
|
+
padding: "4rem",
|
|
342
|
+
colorPreset: {
|
|
343
|
+
color: "accent-500",
|
|
344
|
+
},
|
|
345
|
+
rounding: "rounded-lg",
|
|
346
|
+
shadow: "shadow-md",
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
description: "Dynamic course announcement using course query",
|
|
351
|
+
type: "hero",
|
|
352
|
+
props: {
|
|
353
|
+
content: "{{course.title}}",
|
|
354
|
+
tagline:
|
|
355
|
+
"Learn {{course.subject}} with {{course.instructor}} • {{course.duration}} • {{course.skillLevel}} level",
|
|
356
|
+
padding: "5rem",
|
|
357
|
+
colorPreset: {
|
|
358
|
+
color: "primary-600",
|
|
359
|
+
},
|
|
360
|
+
textShadow: "text-shadow-lg",
|
|
361
|
+
justifyContent: "justify-center",
|
|
362
|
+
alignItems: "items-center",
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
];
|