@upstart.gg/sdk 0.0.119 → 0.0.121
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/ajv.d.ts +1 -1
- package/dist/shared/ajv.d.ts.map +1 -1
- package/dist/shared/ajv.js +1 -1
- package/dist/shared/attributes.js +1 -1
- package/dist/shared/brick-manifest.d.ts +7 -7
- 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 +15 -53
- 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.js +1 -1
- package/dist/shared/bricks/manifests/box.manifest.d.ts +80 -0
- package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/box.manifest.js +3 -0
- package/dist/shared/bricks/manifests/button.manifest.d.ts +9 -13
- 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 +7 -17
- 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 +21 -30
- 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/{vbox.manifest.d.ts → dynamic.manifest.d.ts} +21 -30
- package/dist/shared/bricks/manifests/dynamic.manifest.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/dynamic.manifest.js +3 -0
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +8 -7
- 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 +22 -9
- 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 +14 -7
- 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/icon.manifest.d.ts +7 -5
- 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 +6 -19
- 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 +27 -25
- 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 +11 -30
- 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 +15 -25
- 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 +7 -52
- 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 +13 -24
- 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 +5 -4
- 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 +15 -30
- 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 +14 -22
- 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 +6 -17
- 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 +5 -18
- 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 +2 -2
- 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 +6 -27
- 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.d.ts +4 -1
- package/dist/shared/bricks/props/color.d.ts.map +1 -1
- package/dist/shared/bricks/props/color.js +1 -1
- package/dist/shared/bricks/props/common.d.ts +2 -1
- 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/container.d.ts +1 -2
- package/dist/shared/bricks/props/container.d.ts.map +1 -1
- package/dist/shared/bricks/props/container.js +1 -1
- package/dist/shared/bricks/props/css-length.js +1 -1
- package/dist/shared/bricks/props/datasource-ref.d.ts +14 -0
- package/dist/shared/bricks/props/datasource-ref.d.ts.map +1 -0
- package/dist/shared/bricks/props/datasource-ref.js +3 -0
- package/dist/shared/bricks/props/datasource.d.ts +10 -8
- package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
- package/dist/shared/bricks/props/datasource.js +1 -1
- package/dist/shared/bricks/props/direction.d.ts +5 -0
- package/dist/shared/bricks/props/direction.d.ts.map +1 -0
- package/dist/shared/bricks/props/direction.js +3 -0
- package/dist/shared/bricks/props/effects.d.ts +1 -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/gap.d.ts +9 -0
- package/dist/shared/bricks/props/gap.d.ts.map +1 -0
- package/dist/shared/bricks/props/gap.js +3 -0
- package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
- package/dist/shared/bricks/props/geolocation.js +1 -1
- package/dist/shared/bricks/props/helpers.d.ts +3 -2
- package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
- package/dist/shared/bricks/props/helpers.js +1 -1
- 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/padding.d.ts +2 -2
- package/dist/shared/bricks/props/padding.d.ts.map +1 -1
- package/dist/shared/bricks/props/padding.js +1 -1
- package/dist/shared/bricks/props/preset.d.ts +1 -12
- package/dist/shared/bricks/props/preset.d.ts.map +1 -1
- package/dist/shared/bricks/props/preset.js +1 -1
- package/dist/shared/bricks/props/string.d.ts +10 -6
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +1 -1
- package/dist/shared/bricks/props/text.d.ts +4 -3
- package/dist/shared/bricks/props/text.d.ts.map +1 -1
- package/dist/shared/bricks/props/text.js +1 -1
- package/dist/shared/bricks/props/types.d.ts +2 -1
- package/dist/shared/bricks/props/types.d.ts.map +1 -1
- package/dist/shared/bricks.d.ts +9 -8
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/chunk-23RG3W2X.js +3 -0
- package/dist/shared/{chunk-KVY3XSFM.js → chunk-2IYSJYNE.js} +1 -1
- package/dist/shared/chunk-3CXVWU5K.js +3 -0
- package/dist/shared/chunk-3D7E2JXE.js +4 -0
- package/dist/shared/chunk-3EA3PDY3.js +3 -0
- package/dist/shared/chunk-3EM3B4DX.js +3 -0
- package/dist/shared/{chunk-Y7CEEEVW.js → chunk-3L4QG6AJ.js} +1 -1
- package/dist/shared/chunk-3OGAJIKA.js +3 -0
- package/dist/shared/{chunk-KHQV2YZC.js → chunk-47QOYVES.js} +1 -1
- package/dist/shared/chunk-6XTAAT6E.js +3 -0
- package/dist/shared/chunk-ASUBTHRW.js +3 -0
- package/dist/shared/{chunk-RZN35CZP.js → chunk-B2J5U5HX.js} +1 -1
- package/dist/shared/chunk-B5BHH5ZS.js +3 -0
- package/dist/shared/{chunk-G77ZZFCM.js → chunk-BEPCQWZN.js} +1 -1
- package/dist/shared/chunk-BXWH4YCJ.js +3 -0
- package/dist/shared/chunk-CUC7CI6R.js +6 -0
- package/dist/shared/chunk-DBSKZ77G.js +3 -0
- package/dist/shared/chunk-EB5C6DYF.js +3 -0
- package/dist/shared/chunk-EJGNYD4V.js +3 -0
- package/dist/shared/chunk-FP5CRUZH.js +3 -0
- package/dist/shared/chunk-FYZJUJEF.js +3 -0
- package/dist/shared/chunk-G23RXTRB.js +3 -0
- package/dist/shared/chunk-G7PZ4H5H.js +5 -0
- package/dist/shared/chunk-GJMMLM6H.js +3 -0
- package/dist/shared/chunk-GWILRHYI.js +3 -0
- package/dist/shared/chunk-GWYPUQKB.js +6 -0
- package/dist/shared/chunk-I6GBLCBK.js +3 -0
- package/dist/shared/chunk-JVEHSONJ.js +3 -0
- package/dist/shared/chunk-JWDS7DVS.js +3 -0
- package/dist/shared/chunk-L6O4UKSS.js +3 -0
- package/dist/shared/chunk-L7BZGNB2.js +3 -0
- package/dist/shared/chunk-M56NNPVI.js +3 -0
- package/dist/shared/chunk-N3FHTP5P.js +3 -0
- package/dist/shared/chunk-OKGREWGM.js +3 -0
- package/dist/shared/chunk-PYR54IIV.js +3 -0
- package/dist/shared/chunk-R3KGKTMJ.js +3 -0
- package/dist/shared/chunk-RUEIDZT6.js +3 -0
- package/dist/shared/chunk-VU7NBXYI.js +3 -0
- package/dist/shared/chunk-VW5IBZWH.js +8 -0
- package/dist/shared/chunk-WCZVFBSW.js +3 -0
- package/dist/shared/chunk-WJLCWOXX.js +3 -0
- package/dist/shared/chunk-WVZGGVII.js +3 -0
- package/dist/shared/chunk-YAH55ZYR.js +3 -0
- package/dist/shared/chunk-YGLHFAEP.js +3 -0
- package/dist/shared/chunk-YJGNZ3MY.js +3 -0
- package/dist/shared/chunk-Z7UVZLR3.js +3 -0
- package/dist/shared/chunk-ZFBCYXBD.js +3 -0
- package/dist/shared/chunk-ZKGRZ5CN.js +3 -0
- package/dist/shared/datarecords/types.d.ts +3 -6
- 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/types.d.ts +3 -11
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/datasources/types.js +1 -1
- package/dist/shared/datasources.d.ts +3 -3
- package/dist/shared/datasources.d.ts.map +1 -1
- package/dist/shared/datasources.js +1 -1
- package/dist/shared/layout-constants.js +1 -1
- package/dist/shared/page.d.ts +8 -7
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/site.d.ts +11 -11
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +1 -1
- package/dist/shared/utils/schema-resolver.js +1 -1
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +1 -1
- package/dist/shared/utils/typed-ref.d.ts +18 -10
- package/dist/shared/utils/typed-ref.d.ts.map +1 -1
- package/dist/shared/utils/typed-ref.js +1 -1
- package/package.json +2 -2
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts +0 -127
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +0 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +0 -3
- package/dist/shared/bricks/manifests/vbox.manifest.d.ts.map +0 -1
- package/dist/shared/bricks/manifests/vbox.manifest.js +0 -3
- package/dist/shared/bricks/props/_style-presets.d.ts +0 -18
- package/dist/shared/bricks/props/_style-presets.d.ts.map +0 -1
- package/dist/shared/bricks/props/_style-presets.js +0 -3
- package/dist/shared/bricks/props/tests/align.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/align.test.d.ts.map +0 -1
- package/dist/shared/chunk-2NLENMXL.js +0 -7
- package/dist/shared/chunk-34KLKC7D.js +0 -3
- package/dist/shared/chunk-3SJF2FMO.js +0 -3
- package/dist/shared/chunk-4JBVVUVM.js +0 -3
- package/dist/shared/chunk-4ZUR7K74.js +0 -5
- package/dist/shared/chunk-5C6YS7H3.js +0 -3
- package/dist/shared/chunk-5WHMFZQF.js +0 -3
- package/dist/shared/chunk-6ROBSJRQ.js +0 -3
- package/dist/shared/chunk-72CMZ7I4.js +0 -4
- package/dist/shared/chunk-7ETOZECR.js +0 -6
- package/dist/shared/chunk-7RCISOBG.js +0 -3
- package/dist/shared/chunk-A5CTYB3S.js +0 -3
- package/dist/shared/chunk-AXSKYJTL.js +0 -3
- package/dist/shared/chunk-BSNVXPIC.js +0 -3
- package/dist/shared/chunk-CDM5BFRG.js +0 -3
- package/dist/shared/chunk-DNGQLHDZ.js +0 -3
- package/dist/shared/chunk-DXBTSJYY.js +0 -3
- package/dist/shared/chunk-FE6PIS6N.js +0 -3
- package/dist/shared/chunk-H3RYVSVS.js +0 -3
- package/dist/shared/chunk-HTHIRSIW.js +0 -3
- package/dist/shared/chunk-J27BW3WS.js +0 -3
- package/dist/shared/chunk-JA6PIQX4.js +0 -8
- package/dist/shared/chunk-JETRSMDQ.js +0 -3
- package/dist/shared/chunk-JKHX2JMJ.js +0 -3
- package/dist/shared/chunk-LYRE7PSQ.js +0 -3
- package/dist/shared/chunk-MJQMJKX4.js +0 -3
- package/dist/shared/chunk-ML2Z54ZY.js +0 -3
- package/dist/shared/chunk-MZB4NFIY.js +0 -3
- package/dist/shared/chunk-N5Z7O3UP.js +0 -3
- package/dist/shared/chunk-NUZZ4AJ5.js +0 -3
- package/dist/shared/chunk-PIDZNG77.js +0 -3
- package/dist/shared/chunk-QLCJ52FH.js +0 -3
- package/dist/shared/chunk-QMVW2BT6.js +0 -3
- package/dist/shared/chunk-RXZKWH2W.js +0 -3
- package/dist/shared/chunk-SCKFS7W6.js +0 -3
- package/dist/shared/chunk-UFKFCMG5.js +0 -3
- package/dist/shared/chunk-YBCG2363.js +0 -3
- package/dist/shared/chunk-ZAHMW4A6.js +0 -3
- package/dist/shared/chunk-ZBLSXB2C.js +0 -3
- package/dist/shared/chunk-ZI5FRDND.js +0 -3
- package/dist/shared/chunk-ZS7NIR2D.js +0 -6
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as l}from"./chunk-EB5C6DYF.js";import{d as r}from"./chunk-DBSKZ77G.js";import{b as c}from"./chunk-M56NNPVI.js";import{b as i}from"./chunk-WCZVFBSW.js";import{b as n,d as o}from"./chunk-VU7NBXYI.js";import{a as d}from"./chunk-JWDS7DVS.js";import{c as s}from"./chunk-R3KGKTMJ.js";import{a}from"./chunk-SFKZAUPW.js";import{BsCardText as g}from"react-icons/bs";import{Type as e}from"@sinclair/typebox";var T=d({type:"card",name:"Card",description:"A card that can have a title, image, and content",repeatable:!0,icon:g,defaultWidth:{desktop:"400px",mobile:"100%"},minWidth:{desktop:400},minHeight:{mobile:200,desktop:200},maxWidth:{desktop:650},props:s({colorPreset:e.Optional(c({title:"Color preset","ui:presets":{"primary-light":{previewBgClass:"bg-primary-light text-primary-content-light",value:{container:"bg-primary-light text-primary-content-light border-primary-light"},label:"Primary light"},"primary-light-gradient":{previewBgClass:"bg-gradient-to-br from-primary-300 to-primary-500 text-primary-content-light",value:{container:"from-primary-300 to-primary-500 text-primary-content-light border-primary"},label:"Primary light gradient"},primary:{previewBgClass:"bg-primary text-primary-content",label:"Primary",value:{container:"bg-primary text-primary-content border-primary"}},"primary-gradient":{previewBgClass:"bg-gradient-to-br from-primary-500 to-primary-700 text-primary-content",label:"Primary gradient",value:{container:"from-primary-500 to-primary-700 text-primary-content border-primary"}},"primary-dark":{previewBgClass:"bg-primary-dark text-primary-content",label:"Primary dark",value:{container:"bg-primary-dark text-primary-content border-primary-dark"}},"primary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-primary-700 to-primary-900 text-primary-content",label:"Primary dark gradient",value:{container:"from-primary-700 to-primary-900 text-primary-content border-primary-dark"}},"secondary-light":{previewBgClass:"bg-secondary-light text-secondary-content-light",label:"Secondary light",value:{container:"bg-secondary-light text-secondary-content-light border-secondary-light"}},"secondary-light-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-300 to-secondary-500 text-secondary-content-light",label:"Secondary light gradient",value:{container:"from-secondary-300 to-secondary-500 text-secondary-content-light border-secondary"}},secondary:{previewBgClass:"bg-secondary text-secondary-content",label:"Secondary",value:{container:"bg-secondary text-secondary-content border-secondary"}},"secondary-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-500 to-secondary-700 text-secondary-content",label:"Secondary gradient",value:{container:"from-secondary-500 to-secondary-700 text-secondary-content border-secondary"}},"secondary-dark":{previewBgClass:"bg-secondary-dark text-secondary-content",label:"Secondary dark",value:{container:"bg-secondary-dark text-secondary-content border-secondary-dark"}},"secondary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-700 to-secondary-900 text-secondary-content",label:"Secondary dark gradient",value:{container:"from-secondary-700 to-secondary-900 text-secondary-content border-secondary-dark"}},"accent-light":{previewBgClass:"bg-accent-light text-accent-content-light",label:"Accent lighter",value:{container:"bg-accent-light text-accent-content-light border-accent-light"}},"accent-light-gradient":{previewBgClass:"bg-gradient-to-br from-accent-300 to-accent-500 text-accent-content-light",label:"Accent light gradient",value:{container:"from-accent-300 to-accent-500 text-accent-content-light border-accent"}},accent:{previewBgClass:"bg-accent text-accent-content",label:"Accent",value:{container:"bg-accent text-accent-content border-accent"}},"accent-gradient":{previewBgClass:"bg-gradient-to-br from-accent-500 to-accent-700 text-accent-content",label:"Accent gradient",value:{container:"from-accent-500 to-accent-700 text-accent-content border-accent"}},"accent-dark":{previewBgClass:"bg-accent-dark text-accent-content",label:"Accent dark",value:{container:"bg-accent-dark text-accent-content border-accent-dark"}},"accent-dark-gradient":{previewBgClass:"bg-gradient-to-br from-accent-700 to-accent-900 text-accent-content",label:"Accent dark gradient",value:{container:"from-accent-700 to-accent-900 text-accent-content border-accent-dark"}},"neutral-light":{previewBgClass:"bg-neutral-light text-neutral-content-light",label:"Neutral light",value:{container:"bg-neutral-light text-neutral-content-light border-neutral-light"}},"neutral-light-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-300 to-neutral-500 text-neutral-content-light",label:"Neutral light gradient",value:{container:"from-neutral-300 to-neutral-500 text-neutral-content-light border-neutral"}},neutral:{previewBgClass:"bg-neutral text-neutral-content",label:"Neutral",value:{container:"bg-neutral text-neutral-content border-neutral"}},"neutral-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-500 to-neutral-700 text-neutral-content",label:"Neutral gradient",value:{container:"from-neutral-500 to-neutral-700 text-neutral-content border-neutral"}},"neutral-dark":{previewBgClass:"bg-neutral-dark text-neutral-content",label:"Neutral dark",value:{container:"bg-neutral-dark text-neutral-content border-neutral-dark"}},"neutral-dark-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-700 to-neutral-900 text-neutral-content",label:"Neutral dark gradient",value:{container:"from-neutral-700 to-neutral-900 text-neutral-content border-neutral-dark"}},base100:{previewBgClass:"bg-base-100 text-base-content border-base-200 border-2",label:"Base 100",value:{container:"bg-base-100 text-base-content border-base-200"}},base100_primary:{previewBgClass:"bg-base-100 text-base-content border-primary border-2",label:"Base 100 / Primary",value:{container:"bg-base-100 text-base-content border-primary"}},base100_secondary:{previewBgClass:"bg-base-100 text-base-content border-secondary border-2",label:"Base 100 / Secondary",value:{container:"bg-base-100 text-base-content border-secondary"}},base100_accent:{previewBgClass:"bg-base-100 text-base-content border-accent border-2",label:"Base 100 / Accent",value:{container:"bg-base-100 text-base-content border-accent"}},none:{label:"None",value:{}}},default:"primary"})),gradientDirection:e.Optional(a(["bg-gradient-to-t","bg-gradient-to-r","bg-gradient-to-b","bg-gradient-to-l","bg-gradient-to-tl","bg-gradient-to-tr","bg-gradient-to-br","bg-gradient-to-bl"],{title:"Gradient direction",description:"The direction of the gradient. Only applies when color preset is a gradient.",enumNames:["Top","Right","Bottom","Left","Top left","Top right","Bottom right","Bottom left"],default:"bg-gradient-to-br","ui:responsive":"desktop","ui:styleId":"styles:gradientDirection",metadata:{filter:(p,t)=>t.colorPreset?.includes("gradient")===!0}})),cardImage:e.Optional(l({"ui:responsive":"desktop",metadata:{category:"content"}})),imagePosition:e.Optional(e.Union([e.Literal("top",{title:"Top"}),e.Literal("middle",{title:"Middle"}),e.Literal("bottom",{title:"Bottom"}),e.Literal("overlay",{title:"Overlay"}),e.Literal("side",{title:"Side"})],{title:"Image Position",description:"Where the image should be placed in the card",default:"top","ui:responsive":"desktop",metadata:{category:"content",filter:(p,t)=>!!t.cardImage?.src}})),noTitle:e.Optional(e.Boolean({title:"No Title",description:"Whether to hide the card title",default:!1,"ui:responsive":"desktop"})),cardTitle:e.Optional(r({title:"Title"})),cardBody:e.Optional(r({title:"Body"})),rounding:e.Optional(o({default:"rounded-md"})),border:e.Optional(n({default:"border"})),shadow:e.Optional(i())})}),P=[{description:"A simple card with a title and content",type:"card",props:{cardTitle:"Card Title",cardBody:"This is the body of the card."}},{description:"Card with image and overlay text",type:"card",props:{cardImage:{src:"https://via.placeholder.com/400x300",alt:"Placeholder image"},cardTitle:"Overlay Title",cardBody:"Beautiful overlay content with semi-transparent background."}},{description:"Product card with image on the left",type:"card",props:{cardImage:{src:"https://via.placeholder.com/200x200",alt:"Product image"},cardTitle:"Premium Headphones",cardBody:"High-quality wireless headphones with noise cancellation and 30-hour battery life."}},{description:"Feature card with large padding and background",type:"card",props:{cardTitle:"Key Feature",cardBody:"This feature provides exceptional value and enhances user experience significantly."}},{description:"Blog post card with image at the bottom",type:"card",props:{cardTitle:"The Future of Technology",cardBody:"Exploring emerging trends and innovations that will shape our digital landscape in the coming decade.",cardImage:{src:"https://via.placeholder.com/400x200",alt:"Technology concept"}}},{description:"Testimonial card with right-side image",type:"card",props:{cardTitle:"Customer Review",cardBody:'"This product exceeded my expectations. The quality is outstanding and the customer service is top-notch!"',cardImage:{src:"https://via.placeholder.com/150x150",alt:"Customer photo"}}},{description:"Minimal centered card without image",type:"card",props:{cardTitle:"Simple Announcement",cardBody:"Important updates will be posted here regularly."}},{description:"Event card with multiple variants",type:"card",props:{cardImage:{src:"https://via.placeholder.com/400x250",alt:"Event venue"},cardTitle:"Annual Conference 2025",cardBody:"Join us for three days of inspiring talks, networking opportunities, and hands-on workshops."}},{description:"News article card with compact layout",type:"card",props:{cardImage:{src:"https://via.placeholder.com/120x120",alt:"News thumbnail"},cardTitle:"Breaking News Update",cardBody:"Latest developments in the ongoing story with expert analysis and community reactions."}},{description:"Call-to-action card with prominent styling",type:"card",props:{cardTitle:"Get Started Today",cardBody:"Transform your workflow with our powerful tools. Sign up now and get 30 days free!"}}];export{T as a,P as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as e}from"./chunk-SFKZAUPW.js";import{a as i}from"./chunk-EJGNYD4V.js";function n(t={}){return e(["flex-row","flex-col"],{title:"Direction",enumNames:["Horizontal","Vertical"],$id:"styles:direction","ui:styleId":"styles:direction",...t})}function p(t={}){return i("styles:direction",t)}export{n as a,p as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as o}from"./chunk-ZKGRZ5CN.js";import{b as e}from"./chunk-WCZVFBSW.js";import{b as t}from"./chunk-OKGREWGM.js";import{a as i}from"./chunk-JWDS7DVS.js";import{c as p}from"./chunk-R3KGKTMJ.js";import{RxVideo as d}from"react-icons/rx";import{Type as r}from"@sinclair/typebox";var w=i({type:"video",name:"Video",category:"media",description:"Youtube video",repeatable:!0,icon:d,minWidth:{mobile:380,desktop:380},minHeight:{mobile:168,desktop:168},props:p({url:o("Video URL",{description:"URL of the video to embed. It can be a YouTube link or an embed link.",default:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}),padding:r.Optional(t()),shadow:r.Optional(e())})}),b=[{description:"A YouTube video",type:"video",props:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}},{description:"An embedded YouTube video",type:"video",props:{url:"https://www.youtube.com/embed/dQw4w9WgXcQ"}},{description:"A Vimeo video",type:"video",props:{url:"https://vimeo.com/123456789"}}];export{w as a,b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{c as i}from"./chunk-2IYSJYNE.js";import{a as t}from"./chunk-SFKZAUPW.js";import{a as o}from"./chunk-EJGNYD4V.js";import{Type as e}from"@sinclair/typebox";function a(){return e.Object({desktop:e.Boolean(),mobile:e.Boolean()},{$id:"styles:hidden",title:"Hidden",description:"Used to hide the brick on desktop or mobile.","ui:field":"hidden"})}var s={lastTouched:e.Optional(e.Number({"ui:field":"hidden","ai:hidden":!0})),hidden:e.Optional(o("styles:hidden")),editable:e.Optional(e.Boolean({description:"Do not use. It is used internally by the editor.","ui:field":"hidden","ai:hidden":!0})),width:e.Optional(i({title:"Fixed Width",description:"Set a fixed width for the brick. If not set, the brick will be responsive and will follow the flex layout of its parent section.","ai:instructions":"Use percentage values to make the width responsive, like '50%'","ui:field":"hidden"})),height:e.Optional(i({title:"Fixed height",description:"Set a fixed height for the brick. If not set, the brick will be responsive and will follow the flex layout of its parent section.","ui:field":"hidden"})),growHorizontally:e.Optional(e.Boolean({title:"Expand horizontally",description:"If set, the brick will grow to fill the available width of its parent section. If not set, the brick will have a fixed width.","ui:styleId":"styles:growHorizontally"})),alignSelf:e.Optional(t(["self-auto","self-start","self-center","self-end"],{title:"Vertical position","ui:field":"hidden","ui:display":"icon-group",description:"How the brick vertically aligns itself within its parent section.",enumNames:["Auto","Top","Center","Bottom"],"ui:icons":["fluent:auto-fit-height-20-regular","fluent:align-start-vertical-20-regular","fluent:center-vertical-20-regular","fluent:align-end-vertical-20-regular"],default:"self-auto","ui:placeholder":"Not specified","ui:styleId":"styles:alignSelf"})),dynamicContent:e.Optional(e.Boolean({title:"Use dynamic content",description:"If enabled, the brick will use dynamic content from the closest 'Dynamic' brick.","ai:instructions":"If set, the brick will use dynamic content from the closest brick of type 'dynamic'. It can only be set to true if the brick is a child of a 'dynamic' brick.",metadata:{category:"content"},"ui:field":"hidden"}))};export{a,s as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as t,f as i}from"./chunk-ZKGRZ5CN.js";import{b as r}from"./chunk-DBSKZ77G.js";import{b as n}from"./chunk-M56NNPVI.js";import{d as a}from"./chunk-PYR54IIV.js";import{b as l}from"./chunk-WVZGGVII.js";import{b as o}from"./chunk-OKGREWGM.js";import{a as c}from"./chunk-JWDS7DVS.js";import{c as s}from"./chunk-R3KGKTMJ.js";import{Type as e}from"@sinclair/typebox";import{TiSocialFlickr as d}from"react-icons/ti";var w=c({type:"social-links",name:"Social links",description:"A list of social media links",icon:d,defaultWidth:{mobile:"100%"},props:s({color:e.Optional(n({title:"Color","ui:presets":{"primary-light":{previewBgClass:"bg-primary-light text-primary-content-light",value:{main:"bg-primary-light text-primary-content-light border-primary-light"},label:"Primary light"},"primary-light-gradient":{previewBgClass:"bg-gradient-to-br from-primary-300 to-primary-500 text-primary-content-light",value:{main:"from-primary-300 to-primary-500 text-primary-content-light border-primary"},label:"Primary light gradient"},primary:{previewBgClass:"bg-primary text-primary-content",label:"Primary",value:{main:"bg-primary text-primary-content border-primary"}},"primary-gradient":{previewBgClass:"bg-gradient-to-br from-primary-500 to-primary-700 text-primary-content",label:"Primary gradient",value:{main:"from-primary-500 to-primary-700 text-primary-content border-primary"}},"primary-dark":{previewBgClass:"bg-primary-dark text-primary-content",label:"Primary dark",value:{main:"bg-primary-dark text-primary-content border-primary-dark"}},"primary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-primary-700 to-primary-900 text-primary-content",label:"Primary dark gradient",value:{main:"from-primary-700 to-primary-900 text-primary-content border-primary-dark"}},"secondary-light":{previewBgClass:"bg-secondary-light text-secondary-content-light",label:"Secondary light",value:{main:"bg-secondary-light text-secondary-content-light border-secondary-light"}},"secondary-light-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-300 to-secondary-500 text-secondary-content-light",label:"Secondary light gradient",value:{main:"from-secondary-300 to-secondary-500 text-secondary-content-light border-secondary"}},secondary:{previewBgClass:"bg-secondary text-secondary-content",label:"Secondary",value:{main:"bg-secondary text-secondary-content border-secondary"}},"secondary-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-500 to-secondary-700 text-secondary-content",label:"Secondary gradient",value:{main:"from-secondary-500 to-secondary-700 text-secondary-content border-secondary"}},"secondary-dark":{previewBgClass:"bg-secondary-dark text-secondary-content",label:"Secondary dark",value:{main:"bg-secondary-dark text-secondary-content border-secondary-dark"}},"secondary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-700 to-secondary-900 text-secondary-content",label:"Secondary dark gradient",value:{main:"from-secondary-700 to-secondary-900 text-secondary-content border-secondary-dark"}},"accent-light":{previewBgClass:"bg-accent-light text-accent-content-light",label:"Accent lighter",value:{main:"bg-accent-light text-accent-content-light border-accent-light"}},"accent-light-gradient":{previewBgClass:"bg-gradient-to-br from-accent-300 to-accent-500 text-accent-content-light",label:"Accent light gradient",value:{main:"from-accent-300 to-accent-500 text-accent-content-light border-accent"}},accent:{previewBgClass:"bg-accent text-accent-content",label:"Accent",value:{main:"bg-accent text-accent-content border-accent"}},"accent-gradient":{previewBgClass:"bg-gradient-to-br from-accent-500 to-accent-700 text-accent-content",label:"Accent gradient",value:{main:"from-accent-500 to-accent-700 text-accent-content border-accent"}},"accent-dark":{previewBgClass:"bg-accent-dark text-accent-content",label:"Accent dark",value:{main:"bg-accent-dark text-accent-content border-accent-dark"}},"accent-dark-gradient":{previewBgClass:"bg-gradient-to-br from-accent-700 to-accent-900 text-accent-content",label:"Accent dark gradient",value:{main:"from-accent-700 to-accent-900 text-accent-content border-accent-dark"}},"neutral-light":{previewBgClass:"bg-neutral-light text-neutral-content-light",label:"Neutral light",value:{main:"bg-neutral-light text-neutral-content-light border-neutral-light"}},"neutral-light-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-300 to-neutral-500 text-neutral-content-light",label:"Neutral light gradient",value:{main:"from-neutral-300 to-neutral-500 text-neutral-content-light border-neutral"}},neutral:{previewBgClass:"bg-neutral text-neutral-content",label:"Neutral",value:{main:"bg-neutral text-neutral-content border-neutral"}},"neutral-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-500 to-neutral-700 text-neutral-content",label:"Neutral gradient",value:{main:"from-neutral-500 to-neutral-700 text-neutral-content border-neutral"}},"neutral-dark":{previewBgClass:"bg-neutral-dark text-neutral-content",label:"Neutral dark",value:{main:"bg-neutral-dark text-neutral-content border-neutral-dark"}},"neutral-dark-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-700 to-neutral-900 text-neutral-content",label:"Neutral dark gradient",value:{main:"from-neutral-700 to-neutral-900 text-neutral-content border-neutral-dark"}},base100:{previewBgClass:"bg-base-100 text-base-content border-base-200 border-2",label:"Base 100",value:{main:"bg-base-100 text-base-content border-base-200"}},base100_primary:{previewBgClass:"bg-base-100 text-base-content border-primary border-2",label:"Base 100 / Primary",value:{main:"bg-base-100 text-base-content border-primary"}},base100_secondary:{previewBgClass:"bg-base-100 text-base-content border-secondary border-2",label:"Base 100 / Secondary",value:{main:"bg-base-100 text-base-content border-secondary"}},base100_accent:{previewBgClass:"bg-base-100 text-base-content border-accent border-2",label:"Base 100 / Accent",value:{main:"bg-base-100 text-base-content border-accent"}},none:{label:"None",value:{}}},default:"none"})),gradientDirection:e.Optional(a("color",{default:"bg-gradient-to-br"})),links:e.Array(e.Object({icon:e.Optional(i({"ui:default-icon-collection":"cib"})),label:e.Optional(t("Label")),href:t("Link")}),{title:"Social Links",description:"List of social media links",default:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}],"ui:widget":"array","ui:displayField":"label","ui:options":{orderable:!0,removable:!0,addable:!0},metadata:{category:"content"}}),direction:e.Optional(l({default:"flex-row"})),fontSize:e.Optional(r()),padding:e.Optional(o({default:"p-2"})),icononly:e.Optional(e.Boolean({title:"Only icons",description:"If set, the brick will only display the icons without labels."}))})}),x=[{description:"Social icons displayed horizontally, without labels",type:"social-links",props:{icononly:!0,links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}]}},{description:"Social icons displayed vertically, without labels",type:"social-links",props:{icononly:!0,direction:"flex-col",links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}]}},{description:"Social icons displayed horizontally, with labels",type:"social-links",props:{icononly:!1,links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Social icons displayed vertically, with labels",type:"social-links",props:{icononly:!1,direction:"flex-col",links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Professional social links with labels",type:"social-links",props:{icononly:!1,links:[{href:"https://linkedin.com/in/johndoe",label:"Connect on LinkedIn",icon:"mdi:linkedin"},{href:"https://github.com/johndoe",label:"View GitHub Profile",icon:"mdi:github"},{href:"https://twitter.com/johndoe",label:"Follow on Twitter",icon:"mdi:twitter"},{href:"mailto:john@example.com",label:"Send Email",icon:"mdi:email"}]}},{description:"Creative portfolio social links (icon-only inline)",type:"social-links",props:{icononly:!0,links:[{href:"https://dribbble.com/designer",label:"Dribbble",icon:"mdi:dribbble"},{href:"https://behance.net/designer",label:"Behance",icon:"mdi:behance"},{href:"https://instagram.com/designer",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/designer",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/designer",label:"YouTube",icon:"mdi:youtube"}]}},{description:"Developer/tech social links with labels",type:"social-links",props:{icononly:!1,direction:"flex-col",links:[{href:"https://github.com/developer",label:"GitHub",icon:"mdi:github"},{href:"https://stackoverflow.com/users/developer",label:"Stack Overflow",icon:"mdi:stack-overflow"},{href:"https://dev.to/developer",label:"Dev.to",icon:"mdi:dev-to"},{href:"https://codepen.io/developer",label:"CodePen",icon:"mdi:codepen"}]}},{description:"Music artist social platforms (block layout)",type:"social-links",props:{icononly:!0,direction:"flex-col",links:[{href:"https://spotify.com/artist/musician",label:"Listen on Spotify",icon:"mdi:spotify"},{href:"https://music.apple.com/artist/musician",label:"Apple Music",icon:"mdi:apple"},{href:"https://soundcloud.com/musician",label:"SoundCloud",icon:"mdi:soundcloud"},{href:"https://youtube.com/musician",label:"YouTube Channel",icon:"mdi:youtube"},{href:"https://bandcamp.com/musician",label:"Bandcamp",icon:"mdi:bandcamp"}]}},{description:"Business contact icons only",type:"social-links",props:{icononly:!0,links:[{href:"tel:+1234567890",label:"Phone",icon:"mdi:phone"},{href:"mailto:contact@business.com",label:"Email",icon:"mdi:email"},{href:"https://maps.google.com/business",label:"Location",icon:"mdi:map-marker"},{href:"https://business.com",label:"Website",icon:"mdi:web"}]}},{description:"Gaming content creator links (inline with labels)",type:"social-links",props:{icononly:!1,links:[{href:"https://twitch.tv/gamer",label:"Twitch",icon:"mdi:twitch"},{href:"https://youtube.com/gamer",label:"YouTube",icon:"mdi:youtube"},{href:"https://discord.gg/gamer",label:"Discord",icon:"mdi:discord"},{href:"https://tiktok.com/@gamer",label:"TikTok",icon:"mdi:tiktok"}]}},{description:"Restaurant social presence (block layout)",type:"social-links",props:{icononly:!1,direction:"flex-col",links:[{href:"https://facebook.com/restaurant",label:"Follow us on Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/restaurant",label:"See photos on Instagram",icon:"mdi:instagram"},{href:"https://yelp.com/restaurant",label:"Review us on Yelp",icon:"mdi:yelp"},{href:"https://tripadvisor.com/restaurant",label:"TripAdvisor Reviews",icon:"mdi:tripadvisor"},{href:"tel:+1234567890",label:"Call for Reservations",icon:"mdi:phone"}]}},{description:"Minimal footer social icons",type:"social-links",props:{icononly:!0,direction:"flex-row",links:[{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"},{href:"mailto:hello@company.com",label:"Email",icon:"mdi:email"}]}},{description:"E-commerce store social channels (inline with labels)",type:"social-links",props:{icononly:!1,direction:"flex-row",links:[{href:"https://facebook.com/store",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/store",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/store",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/store",label:"YouTube",icon:"mdi:youtube"},{href:"https://tiktok.com/@store",label:"TikTok",icon:"mdi:tiktok"}]}}];export{w as a,x as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as r}from"./chunk-EJGNYD4V.js";import{Type as e}from"@sinclair/typebox";function s(t={}){let{default:a,colorType:o="background",...i}=t;return e.Object({color:e.Optional(e.String({default:a?.color,title:"Color",description:"Use `bg-<variant>-<shade>`, variants being 'primary', 'secondary', 'accent' and 'neutral', and shades between 50 and 900. Can also be a gradient using 'bg-gradient-to-<direction> from-<color> to-<color>'",examples:["bg-primary","bg-base-100","bg-primary-50","bg-primary-500","bg-accent-900"]})),image:e.Optional(e.String({title:"Image",description:"The background image. Can be a URL or a data URI",examples:["https://example.com/image.png","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."]})),size:e.Optional(e.Union([e.Literal("auto",{title:"Auto"}),e.Literal("cover",{title:"Cover"}),e.Literal("contain",{title:"Contain"})],{default:a?.size??"auto","ai:instructions":"Only use this when the image is set."})),repeat:e.Optional(e.Union([e.Literal("no-repeat",{title:"No repeat"}),e.Literal("repeat",{title:"Repeat"}),e.Literal("repeat-x",{title:"Repeat horizontally"}),e.Literal("repeat-y",{title:"Repeat vertically"}),e.Literal("space",{title:"Space"}),e.Literal("round",{title:"Round"})],{default:a?.repeat??"no-repeat","ai:instructions":"Only use this when the image is set."}))},{$id:"styles:background","ui:styleId":"styles:background","ui:field":"background","ui:group":"background","ui:group:title":"Background","ui:color-type":o,title:"Background",default:a?{color:a.color,size:a.size,repeat:a.repeat}:void 0,...i})}function c(t={}){return r("styles:background",t)}function p(t={}){return e.String({title:"Background color",$id:"styles:backgroundColor","ai:instructions":"Can be set to transparent, hex/rgb/rgba color, or classes like `bg-<variant>-<shade>`, variants being primary, secondary, accent and neutral, and shades between 100 and 900. Use bg-<variant>-<shade> classes as much as possible.","ui:field":"color","ui:color-type":"background","ui:styleId":"styles:backgroundColor",...t})}function u(t={}){return r("styles:backgroundColor",t)}export{s as a,c as b,p as c,u as d};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as s}from"./chunk-EB5C6DYF.js";import{a as t,f as n}from"./chunk-ZKGRZ5CN.js";import{b as o}from"./chunk-DBSKZ77G.js";import{b as c}from"./chunk-M56NNPVI.js";import{b as i}from"./chunk-OKGREWGM.js";import{a as l}from"./chunk-JWDS7DVS.js";import{c as d}from"./chunk-R3KGKTMJ.js";import{c as r}from"./chunk-2IYSJYNE.js";import{a}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";import{HiOutlineChatBubbleBottomCenter as m}from"react-icons/hi2";var I=l({type:"testimonials",name:"Testimonials",description:"Display testimonials from users",defaultWidth:{desktop:"100%"},repeatable:!1,icon:m,props:d({color:e.Optional(c({title:"Color","ui:presets":{"primary-light":{previewBgClass:"bg-primary-light text-primary-content-light",value:{card:"bg-primary-light text-primary-content-light border-primary-light"},label:"Primary light"},"primary-light-gradient":{previewBgClass:"bg-gradient-to-br from-primary-300 to-primary-500 text-primary-content-light",value:{card:"from-primary-300 to-primary-500 text-primary-content-light border-primary"},label:"Primary light gradient"},primary:{previewBgClass:"bg-primary text-primary-content",label:"Primary",value:{card:"bg-primary text-primary-content border-primary"}},"primary-gradient":{previewBgClass:"bg-gradient-to-br from-primary-500 to-primary-700 text-primary-content",label:"Primary gradient",value:{card:"from-primary-500 to-primary-700 text-primary-content border-primary"}},"primary-dark":{previewBgClass:"bg-primary-dark text-primary-content",label:"Primary dark",value:{card:"bg-primary-dark text-primary-content border-primary-dark"}},"primary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-primary-700 to-primary-900 text-primary-content",label:"Primary dark gradient",value:{card:"from-primary-700 to-primary-900 text-primary-content border-primary-dark"}},"secondary-light":{previewBgClass:"bg-secondary-light text-secondary-content-light",label:"Secondary light",value:{card:"bg-secondary-light text-secondary-content-light border-secondary-light"}},"secondary-light-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-300 to-secondary-500 text-secondary-content-light",label:"Secondary light gradient",value:{card:"from-secondary-300 to-secondary-500 text-secondary-content-light border-secondary"}},secondary:{previewBgClass:"bg-secondary text-secondary-content",label:"Secondary",value:{card:"bg-secondary text-secondary-content border-secondary"}},"secondary-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-500 to-secondary-700 text-secondary-content",label:"Secondary gradient",value:{card:"from-secondary-500 to-secondary-700 text-secondary-content border-secondary"}},"secondary-dark":{previewBgClass:"bg-secondary-dark text-secondary-content",label:"Secondary dark",value:{card:"bg-secondary-dark text-secondary-content border-secondary-dark"}},"secondary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-700 to-secondary-900 text-secondary-content",label:"Secondary dark gradient",value:{card:"from-secondary-700 to-secondary-900 text-secondary-content border-secondary-dark"}},"accent-light":{previewBgClass:"bg-accent-light text-accent-content-light",label:"Accent lighter",value:{card:"bg-accent-light text-accent-content-light border-accent-light"}},"accent-light-gradient":{previewBgClass:"bg-gradient-to-br from-accent-300 to-accent-500 text-accent-content-light",label:"Accent light gradient",value:{card:"from-accent-300 to-accent-500 text-accent-content-light border-accent"}},accent:{previewBgClass:"bg-accent text-accent-content",label:"Accent",value:{card:"bg-accent text-accent-content border-accent"}},"accent-gradient":{previewBgClass:"bg-gradient-to-br from-accent-500 to-accent-700 text-accent-content",label:"Accent gradient",value:{card:"from-accent-500 to-accent-700 text-accent-content border-accent"}},"accent-dark":{previewBgClass:"bg-accent-dark text-accent-content",label:"Accent dark",value:{card:"bg-accent-dark text-accent-content border-accent-dark"}},"accent-dark-gradient":{previewBgClass:"bg-gradient-to-br from-accent-700 to-accent-900 text-accent-content",label:"Accent dark gradient",value:{card:"from-accent-700 to-accent-900 text-accent-content border-accent-dark"}},"neutral-light":{previewBgClass:"bg-neutral-light text-neutral-content-light",label:"Neutral light",value:{card:"bg-neutral-light text-neutral-content-light border-neutral-light"}},"neutral-light-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-300 to-neutral-500 text-neutral-content-light",label:"Neutral light gradient",value:{card:"from-neutral-300 to-neutral-500 text-neutral-content-light border-neutral"}},neutral:{previewBgClass:"bg-neutral text-neutral-content",label:"Neutral",value:{card:"bg-neutral text-neutral-content border-neutral"}},"neutral-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-500 to-neutral-700 text-neutral-content",label:"Neutral gradient",value:{card:"from-neutral-500 to-neutral-700 text-neutral-content border-neutral"}},"neutral-dark":{previewBgClass:"bg-neutral-dark text-neutral-content",label:"Neutral dark",value:{card:"bg-neutral-dark text-neutral-content border-neutral-dark"}},"neutral-dark-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-700 to-neutral-900 text-neutral-content",label:"Neutral dark gradient",value:{card:"from-neutral-700 to-neutral-900 text-neutral-content border-neutral-dark"}},base100:{previewBgClass:"bg-base-100 text-base-content border-base-200 border-2",label:"Base 100",value:{card:"bg-base-100 text-base-content border-base-200"}},base100_primary:{previewBgClass:"bg-base-100 text-base-content border-primary border-2",label:"Base 100 / Primary",value:{card:"bg-base-100 text-base-content border-primary"}},base100_secondary:{previewBgClass:"bg-base-100 text-base-content border-secondary border-2",label:"Base 100 / Secondary",value:{card:"bg-base-100 text-base-content border-secondary"}},base100_accent:{previewBgClass:"bg-base-100 text-base-content border-accent border-2",label:"Base 100 / Accent",value:{card:"bg-base-100 text-base-content border-accent"}},none:{label:"None",value:{}}},default:"base100"})),gradientDirection:e.Optional(a(["bg-gradient-to-t","bg-gradient-to-r","bg-gradient-to-b","bg-gradient-to-l","bg-gradient-to-tl","bg-gradient-to-tr","bg-gradient-to-br","bg-gradient-to-bl"],{title:"Gradient direction",description:"The direction of the gradient. Only applies when color preset is a gradient.",enumNames:["Top","Right","Bottom","Left","Top left","Top right","Bottom right","Bottom left"],default:"bg-gradient-to-br","ui:responsive":"desktop","ui:styleId":"styles:gradientDirection",metadata:{filter:(g,p)=>p.color?.includes("gradient")===!0}})),fontSize:e.Optional(o({"ui:no-extra-large-sizes":!0})),padding:e.Optional(i()),gap:e.Optional(r({title:"Gap",default:"26px",description:"Space between bricks.","ai:instructions":"Can be a tailwind gap class like 'gap-1' or 'gap-2', or a custom value like '10px'","ui:placeholder":"Not specified","ui:styleId":"styles:gap"})),testimonials:e.Array(e.Object({text:t("Text",{default:"Amazing product!","ui:multiline":!0,"ui:textarea-class":"h-20"}),author:t("Author",{default:"John Doe"}),company:e.Optional(t("Company")),avatar:e.Optional(s({title:"Avatar"})),socialIcon:e.Optional(n())}),{title:"Testimonials",description:"List of testimonials",default:[],"ui:tab":"content","ui:widget":"array","ui:displayField":"author","ui:options":{orderable:!0,removable:!0,addable:!0},metadata:{category:"content"}})},{default:{orientation:"horizontal"}})}),T=[{description:"SaaS platform testimonials with avatars",type:"testimonials",props:{testimonials:[{author:"Sarah Johnson",company:"TechCorp Solutions",text:"This platform has completely transformed how we manage our projects. The intuitive interface and powerful automation features have saved us countless hours.",avatar:{src:"https://via.placeholder.com/80x80.png?text=SJ",alt:"Sarah Johnson profile photo"},socialIcon:"mdi:linkedin"},{author:"Mike Chen",company:"StartupFlow",text:"Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!",avatar:{src:"https://via.placeholder.com/80x80.png?text=MC",alt:"Mike Chen profile photo"},socialIcon:"mdi:twitter"},{author:"Emily Rodriguez",company:"Digital Agency Pro",text:"The automation capabilities are game-changing. What used to take us days now happens automatically. It's like having an extra team member.",avatar:{src:"https://via.placeholder.com/80x80.png?text=ER",alt:"Emily Rodriguez profile photo"},socialIcon:"mdi:linkedin"}]}},{description:"E-commerce customer reviews",type:"testimonials",props:{testimonials:[{author:"Jessica Williams",company:"Happy Customer",text:"Amazing product quality and fast shipping! The item exceeded my expectations and the customer service was excellent when I had questions.",avatar:{src:"https://via.placeholder.com/60x60.png?text=JW",alt:"Jessica Williams customer photo"},socialIcon:"mdi:star"},{author:"David Park",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.",avatar:{src:"https://via.placeholder.com/60x60.png?text=DP",alt:"David Park customer photo"},socialIcon:"mdi:thumbs-up"}]}},{description:"Agency client testimonials with company info",type:"testimonials",props:{testimonials:[{author:"Rachel Thompson",company:"Global Enterprises",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.",avatar:{src:"https://via.placeholder.com/70x70.png?text=RT",alt:"Rachel Thompson headshot"},socialIcon:"mdi:briefcase"},{author:"Alex Kumar",company:"Innovation Labs",text:"Working with this agency was a game-changer for our digital presence. They understood our vision and brought it to life beautifully.",avatar:{src:"https://via.placeholder.com/70x70.png?text=AK",alt:"Alex Kumar profile"},socialIcon:"mdi:lightbulb"},{author:"Maria Santos",company:"Retail Plus",text:"Professional, creative, and results-driven. Our website traffic increased by 200% after their redesign. Couldn't be happier!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MS",alt:"Maria Santos photo"},socialIcon:"mdi:chart-line"}]}},{description:"App user feedback",type:"testimonials",props:{testimonials:[{author:"Tom Wilson",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.",avatar:{src:"https://via.placeholder.com/65x65.png?text=TW",alt:"Tom Wilson user photo"},socialIcon:"mdi:cellphone"},{author:"Lisa Chang",text:"Been using this app for months and it's become essential to my workflow. The latest update with AI features is incredibly impressive.",avatar:{src:"https://via.placeholder.com/65x65.png?text=LC",alt:"Lisa Chang profile picture"},socialIcon:"mdi:robot"},{author:"James Miller",text:"Simple, powerful, and reliable. Exactly what I was looking for. The customer support team is also very responsive and helpful.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JM",alt:"James Miller avatar"},socialIcon:"mdi:heart"}]}},{description:"Course/education testimonials with social icons",type:"testimonials",props:{testimonials:[{author:"Amanda Foster",company:"UX Designer",text:"This course completely changed my career trajectory. The practical projects and expert feedback helped me land my dream job in just 3 months.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AF",alt:"Amanda Foster student photo"},socialIcon:"mdi:school"},{author:"Carlos Rodriguez",company:"Software Engineer",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.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CR",alt:"Carlos Rodriguez profile"},socialIcon:"mdi:code-tags"}]}},{description:"Simple testimonials without avatars",type:"testimonials",props:{testimonials:[{author:"Anonymous User",text:"Great service and excellent value for money. Would definitely recommend to others looking for a reliable solution.",socialIcon:"mdi:account-circle"},{author:"Verified Customer",text:"Quick delivery and exactly as described. Very satisfied with my purchase and the overall experience.",socialIcon:"mdi:check-circle"},{author:"Beta Tester",text:"Been using the beta version and it's already impressive. Looking forward to the full release with even more features.",socialIcon:"mdi:beta"}]}},{description:"Consultant testimonials with professional focus",type:"testimonials",props:{testimonials:[{author:"Dr. Patricia Lee",company:"Medical Practice Solutions",text:"The consulting services provided were invaluable to our practice. Revenue increased by 40% and patient satisfaction scores improved significantly.",avatar:{src:"https://via.placeholder.com/80x80.png?text=PL",alt:"Dr. Patricia Lee headshot"},socialIcon:"mdi:medical-bag"},{author:"Robert Kim",company:"Manufacturing Inc.",text:"Their strategic insights helped us streamline operations and reduce costs by 25%. The ROI was evident within the first quarter.",avatar:{src:"https://via.placeholder.com/80x80.png?text=RK",alt:"Robert Kim executive photo"},socialIcon:"mdi:factory"}]}},{description:"Event testimonials with social media icons",type:"testimonials",props:{testimonials:[{author:"Jennifer Adams",company:"Marketing Director",text:"Best conference I've attended in years! The networking opportunities were incredible and the speakers were top-notch industry leaders.",avatar:{src:"https://via.placeholder.com/70x70.png?text=JA",alt:"Jennifer Adams conference attendee"},socialIcon:"mdi:twitter"},{author:"Michael Brown",company:"Tech Startup Founder",text:"The workshops were incredibly practical and I left with actionable strategies I could implement immediately. Already planning to attend next year!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MB",alt:"Michael Brown participant photo"},socialIcon:"mdi:linkedin"},{author:"Sophie Chen",company:"Product Manager",text:"Amazing organization and valuable content. Met so many like-minded professionals and learned cutting-edge techniques I'm excited to try.",avatar:{src:"https://via.placeholder.com/70x70.png?text=SC",alt:"Sophie Chen attendee photo"},socialIcon:"mdi:instagram"}]}}];export{I as a,T as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as n}from"./chunk-EJGNYD4V.js";import{Type as e}from"@sinclair/typebox";function p(t,i={}){return e.String({title:t,...i})}function l(t="URL",i){return e.String({title:t,format:"uri","ui:field":"url",default:i})}var r=e.String({"ui:field":"page-id"});function u(t="URL or Page ID",i){return e.Union([e.String({format:"uri"}),r],{$id:"content:urlOrPageId",default:i,title:t,"ui:field":"url-page-id","ai:instructions":"This field can be a URL or a page ID. Use the page ID when linking to a internal page, and a URL for external links."})}function s(t={}){return n("content:urlOrPageId",{...t})}function d(t,i={}){return e.String({title:t??"Icon","ai:instructions":"Use a iconify reference like 'mdi:heart' or 'fa-solid:coffee'.","ui:field":"iconify",$id:"assets:icon",...i})}function c(t={}){return n("assets:icon",t)}export{p as a,l as b,u as c,s as d,d as e,c as f};
|
|
@@ -51,17 +51,14 @@ export declare const internalDatarecordManifest: import("@sinclair/typebox").TOb
|
|
|
51
51
|
unique: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
52
52
|
}>>;
|
|
53
53
|
}>;
|
|
54
|
-
export type
|
|
55
|
-
export declare const
|
|
54
|
+
export type Datarecord = Static<typeof datarecordManifest>;
|
|
55
|
+
export declare const datarecordsList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
56
56
|
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
|
|
57
57
|
schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
|
|
58
58
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
59
59
|
id: import("@sinclair/typebox").TString;
|
|
60
60
|
label: import("@sinclair/typebox").TString;
|
|
61
61
|
}>>;
|
|
62
|
-
export type
|
|
63
|
-
export type DatarecordResolved<T extends DatarecordsMap> = {
|
|
64
|
-
[K in keyof T]: unknown;
|
|
65
|
-
};
|
|
62
|
+
export type DatarecordsList = Static<typeof datarecordsList>;
|
|
66
63
|
export {};
|
|
67
64
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datarecords/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,eAAe,0PAO1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAmFjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuBhC,CAAC;AAcH,QAAA,MAAM,kBAAkB;;;;;;EAA8D,CAAC;AAEvF,eAAO,MAAM,0BAA0B;;;;;;;;;;;EAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datarecords/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,eAAe,0PAO1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAmFjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuBhC,CAAC;AAcH,QAAA,MAAM,kBAAkB;;;;;;EAA8D,CAAC;AAEvF,eAAO,MAAM,0BAA0B;;;;;;;;;;;EAA2D,CAAC;AACnG,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE3D,eAAO,MAAM,eAAe;;;;;;GAAiC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c,d}from"../chunk-
|
|
3
|
+
import{a,b,c,d}from"../chunk-47QOYVES.js";export{a as connectorSchema,b as datarecordsConnectors,d as datarecordsList,c as internalDatarecordManifest};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function defineDataRecords<T extends
|
|
1
|
+
import type { DatarecordsList } from "./datarecords/types";
|
|
2
|
+
export declare function defineDataRecords<T extends DatarecordsList>(datarecords: T): T;
|
|
3
3
|
//# sourceMappingURL=datarecords.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datarecords.d.ts","sourceRoot":"","sources":["../../src/shared/datarecords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"datarecords.d.ts","sourceRoot":"","sources":["../../src/shared/datarecords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,eAAe,EAAE,WAAW,EAAE,CAAC,KAE1E"}
|
|
@@ -104,7 +104,8 @@ export declare const datasourceManifest: import("@sinclair/typebox").TUnion<[TOb
|
|
|
104
104
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
105
105
|
}>>;
|
|
106
106
|
}>]>;
|
|
107
|
-
export
|
|
107
|
+
export type Datasource = Static<typeof datasourceManifest>;
|
|
108
|
+
export declare const datasourcesList: TArray<import("@sinclair/typebox").TUnion<[TObject<{
|
|
108
109
|
id: import("@sinclair/typebox").TString;
|
|
109
110
|
provider: import("@sinclair/typebox").TLiteral<"custom">;
|
|
110
111
|
options: import("@sinclair/typebox").TOptional<TObject<{}>>;
|
|
@@ -153,15 +154,6 @@ export declare const datasourcesMap: import("@sinclair/typebox").TRecord<import(
|
|
|
153
154
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
154
155
|
}>>;
|
|
155
156
|
}>]>>;
|
|
156
|
-
export type
|
|
157
|
-
schema: (typeof datasourceCustomManifest)["schema"];
|
|
158
|
-
}) | (Omit<Static<typeof datasourceJsonManifest>, "schema"> & {
|
|
159
|
-
schema: (typeof datasourceJsonManifest)["schema"];
|
|
160
|
-
}) | (Omit<Static<typeof datasourceProviderManifest>, "schema"> & {
|
|
161
|
-
schema?: (typeof datasourceProviderManifest)["schema"];
|
|
162
|
-
})>;
|
|
163
|
-
export type DatasourcesResolved<T extends DatasourcesMap = DatasourcesMap> = {
|
|
164
|
-
[K in keyof T]: unknown;
|
|
165
|
-
};
|
|
157
|
+
export type DatasourcesList = Static<typeof datasourcesList>;
|
|
166
158
|
export {};
|
|
167
159
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datasources/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datasources/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKjF,eAAO,MAAM,eAAe,udAmB1B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AA2FhE,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;EAkC9B,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;EAsC7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EA2C1B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEhF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI7B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAiC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c}from"../chunk-
|
|
3
|
+
import{a,b,c}from"../chunk-3L4QG6AJ.js";export{b as datasourceManifest,c as datasourcesList,a as providersSchema};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
export declare function defineDataSources(datasources:
|
|
1
|
+
import type { DatasourcesList } from "./datasources/types";
|
|
2
|
+
import type { TArray } from "@sinclair/typebox";
|
|
3
|
+
export declare function defineDataSources<T extends DatasourcesList>(datasources: T): T;
|
|
4
4
|
/**
|
|
5
5
|
* Map a datasource schema to include $id, $createdAt, and $updatedAt properties.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasources.d.ts","sourceRoot":"","sources":["../../src/shared/datasources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"datasources.d.ts","sourceRoot":"","sources":["../../src/shared/datasources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,eAAe,EAAE,WAAW,EAAE,CAAC,GAKlE,CAAC,CACT;AAMD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM;;;;;;;;;EAkBjD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
3
|
+
import{a as r}from"./chunk-3VZACK2Y.js";function p(e){return e.map(t=>({...t,schema:"schema"in t?t.schema:o(t.provider)}))}function o(e){return r[e]}function d(e){let{items:t,title:i,description:a}=e;return{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"ID"},$createdAt:{type:"string",format:"date-time",title:"Created At"},$updatedAt:{type:"string",format:"date-time",title:"Updated At"},...t.properties},required:["$id","$createdAt","$updatedAt",...t.required]},title:i,description:a}}export{p as defineDataSources,d as mapDatasourceSchema};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import{a,b,c}from"./chunk-BEPCQWZN.js";export{b as LAYOUT_BREAKPOINTS,a as LAYOUT_COLS,c as LAYOUT_ROW_HEIGHT};
|
package/dist/shared/page.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { type Attributes, type AttributesSchema } from "./attributes";
|
|
|
2
2
|
import { type Section } from "./bricks";
|
|
3
3
|
import type { Theme } from "./theme";
|
|
4
4
|
import { type Static } from "@sinclair/typebox";
|
|
5
|
-
import type {
|
|
5
|
+
import type { DatasourcesList } from "./datasources/types";
|
|
6
6
|
import type { PageInfo, Sitemap } from "./sitemap";
|
|
7
7
|
/**
|
|
8
8
|
* The Page config represents the page configuration (datasources, attributes, etc)
|
|
9
9
|
*/
|
|
10
|
-
export type PageConfig<D extends
|
|
10
|
+
export type PageConfig<D extends DatasourcesList> = PageInfo & {
|
|
11
11
|
/**
|
|
12
12
|
* Data sources manifests for the page. Undefined if no data sources are defined.
|
|
13
13
|
*/
|
|
@@ -16,7 +16,7 @@ export type PageConfig<D extends DatasourcesMap> = PageInfo & {
|
|
|
16
16
|
* Resolved static data sources for the page.
|
|
17
17
|
* Undefined if no data sources are defined.
|
|
18
18
|
*/
|
|
19
|
-
data?:
|
|
19
|
+
data?: Record<string, unknown[]>;
|
|
20
20
|
/**
|
|
21
21
|
* Page attributes. (can override site attributes)
|
|
22
22
|
*/
|
|
@@ -28,7 +28,7 @@ export type PageConfig<D extends DatasourcesMap> = PageInfo & {
|
|
|
28
28
|
sections: Section[];
|
|
29
29
|
tags: string[];
|
|
30
30
|
};
|
|
31
|
-
export type GenericPageConfig = PageConfig<
|
|
31
|
+
export type GenericPageConfig = PageConfig<DatasourcesList>;
|
|
32
32
|
/**
|
|
33
33
|
* Page context has attr (possibly inherited from site) but not attributes declaration, as they are not needed to render the page.
|
|
34
34
|
* It alwso have the sitemap and theme.
|
|
@@ -39,6 +39,7 @@ export type GenericPageContext = Omit<GenericPageConfig, "attr" | "attributes">
|
|
|
39
39
|
theme: Theme;
|
|
40
40
|
sitemap: Sitemap;
|
|
41
41
|
attr: Attributes;
|
|
42
|
+
pathParams?: Record<string, string>;
|
|
42
43
|
};
|
|
43
44
|
export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
44
45
|
id: import("@sinclair/typebox").TString;
|
|
@@ -55,7 +56,7 @@ export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
|
55
56
|
purpose: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"navbar" | "sidebar">>;
|
|
56
57
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
57
58
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
58
|
-
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-
|
|
59
|
+
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end">>;
|
|
59
60
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
60
61
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
61
62
|
}>;
|
|
@@ -66,7 +67,7 @@ export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
|
66
67
|
purpose: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"navbar" | "sidebar">>;
|
|
67
68
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
68
69
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
69
|
-
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-
|
|
70
|
+
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end">>;
|
|
70
71
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
71
72
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
72
73
|
}>>;
|
|
@@ -74,7 +75,7 @@ export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
|
74
75
|
id: import("@sinclair/typebox").TString;
|
|
75
76
|
type: import("@sinclair/typebox").TUnsafe<string>;
|
|
76
77
|
props: import("@sinclair/typebox").TAny;
|
|
77
|
-
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
78
|
+
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
78
79
|
}>>;
|
|
79
80
|
}>>;
|
|
80
81
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/shared/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA2B,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/shared/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA2B,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,eAAe,IAAI,QAAQ,GAAG;IAC7D;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,YAAY,CAAC,GAAG;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/shared/page.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a}from"./chunk-
|
|
3
|
+
import{a}from"./chunk-GWILRHYI.js";import"./chunk-BXWH4YCJ.js";import"./chunk-MPBYGS6W.js";import"./chunk-B2J5U5HX.js";import"./chunk-L42YBY5I.js";import"./chunk-TATG6SFZ.js";import"./chunk-L7BZGNB2.js";import"./chunk-G7PZ4H5H.js";import"./chunk-YAH55ZYR.js";import"./chunk-RUEIDZT6.js";import"./chunk-23RG3W2X.js";import"./chunk-OELIU5BZ.js";import"./chunk-3OGAJIKA.js";import"./chunk-IFEIRRZ2.js";import"./chunk-3CXVWU5K.js";import"./chunk-GWYPUQKB.js";import"./chunk-QSZWDE3D.js";import"./chunk-YJGNZ3MY.js";import"./chunk-ASUBTHRW.js";import"./chunk-ZFBCYXBD.js";import"./chunk-I6GBLCBK.js";import"./chunk-BEPCQWZN.js";import"./chunk-WJLCWOXX.js";import"./chunk-B5BHH5ZS.js";import"./chunk-3EA3PDY3.js";import"./chunk-GJMMLM6H.js";import"./chunk-FYZJUJEF.js";import"./chunk-3D7E2JXE.js";import"./chunk-MKIXZXWS.js";import"./chunk-CUC7CI6R.js";import"./chunk-L6O4UKSS.js";import"./chunk-EB5C6DYF.js";import"./chunk-ZKGRZ5CN.js";import"./chunk-VW5IBZWH.js";import"./chunk-G23RXTRB.js";import"./chunk-DBSKZ77G.js";import"./chunk-M56NNPVI.js";import"./chunk-YIFNKP4J.js";import"./chunk-PYR54IIV.js";import"./chunk-FP5CRUZH.js";import"./chunk-3EM3B4DX.js";import"./chunk-WVZGGVII.js";import"./chunk-WCZVFBSW.js";import"./chunk-6XTAAT6E.js";import"./chunk-VU7NBXYI.js";import"./chunk-OKGREWGM.js";import"./chunk-Z7UVZLR3.js";import"./chunk-JWDS7DVS.js";import"./chunk-N3FHTP5P.js";import"./chunk-R3KGKTMJ.js";import"./chunk-YGLHFAEP.js";import"./chunk-2IYSJYNE.js";import"./chunk-SFKZAUPW.js";import"./chunk-EJGNYD4V.js";export{a as pageSchema};
|
package/dist/shared/site.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare const siteSchema: import("@sinclair/typebox").TObject<{
|
|
|
54
54
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
55
55
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
56
56
|
}>;
|
|
57
|
-
datasources: import("@sinclair/typebox").
|
|
57
|
+
datasources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
58
58
|
id: import("@sinclair/typebox").TString;
|
|
59
59
|
provider: import("@sinclair/typebox").TLiteral<"custom">;
|
|
60
60
|
options: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
|
|
@@ -102,14 +102,14 @@ export declare const siteSchema: import("@sinclair/typebox").TObject<{
|
|
|
102
102
|
method: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"interval">, import("@sinclair/typebox").TLiteral<"manual">, import("@sinclair/typebox").TLiteral<"live">]>;
|
|
103
103
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
104
104
|
}>>;
|
|
105
|
-
}>]
|
|
106
|
-
datarecords: import("@sinclair/typebox").
|
|
105
|
+
}>]>>;
|
|
106
|
+
datarecords: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
107
107
|
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
|
|
108
108
|
schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
|
|
109
109
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
110
110
|
id: import("@sinclair/typebox").TString;
|
|
111
111
|
label: import("@sinclair/typebox").TString;
|
|
112
|
-
}
|
|
112
|
+
}>>;
|
|
113
113
|
themes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
114
114
|
id: import("@sinclair/typebox").TString;
|
|
115
115
|
name: import("@sinclair/typebox").TString;
|
|
@@ -286,7 +286,7 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
286
286
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
287
287
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
288
288
|
}>;
|
|
289
|
-
datasources: import("@sinclair/typebox").
|
|
289
|
+
datasources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
290
290
|
id: import("@sinclair/typebox").TString;
|
|
291
291
|
provider: import("@sinclair/typebox").TLiteral<"custom">;
|
|
292
292
|
options: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
|
|
@@ -334,14 +334,14 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
334
334
|
method: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"interval">, import("@sinclair/typebox").TLiteral<"manual">, import("@sinclair/typebox").TLiteral<"live">]>;
|
|
335
335
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
336
336
|
}>>;
|
|
337
|
-
}>]
|
|
338
|
-
datarecords: import("@sinclair/typebox").
|
|
337
|
+
}>]>>;
|
|
338
|
+
datarecords: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
339
339
|
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
|
|
340
340
|
schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
|
|
341
341
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
342
342
|
id: import("@sinclair/typebox").TString;
|
|
343
343
|
label: import("@sinclair/typebox").TString;
|
|
344
|
-
}
|
|
344
|
+
}>>;
|
|
345
345
|
themes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
346
346
|
id: import("@sinclair/typebox").TString;
|
|
347
347
|
name: import("@sinclair/typebox").TString;
|
|
@@ -439,7 +439,7 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
439
439
|
purpose: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"navbar" | "sidebar">>;
|
|
440
440
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
441
441
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
442
|
-
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-
|
|
442
|
+
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end">>;
|
|
443
443
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
444
444
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
445
445
|
}>;
|
|
@@ -450,7 +450,7 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
450
450
|
purpose: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"navbar" | "sidebar">>;
|
|
451
451
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
452
452
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
453
|
-
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-
|
|
453
|
+
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end">>;
|
|
454
454
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
455
455
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
456
456
|
}>>;
|
|
@@ -458,7 +458,7 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
458
458
|
id: import("@sinclair/typebox").TString;
|
|
459
459
|
type: import("@sinclair/typebox").TUnsafe<string>;
|
|
460
460
|
props: import("@sinclair/typebox").TAny;
|
|
461
|
-
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
461
|
+
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
462
462
|
}>>;
|
|
463
463
|
}>>;
|
|
464
464
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAA8C,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AASjG,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,EAAE,YAAY,CAAC,GAAG;IACjE,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,KAAK,yBAAyB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,GAAG;QACxC,UAAU,EAAE,gBAAgB,CAAC;KAC9B,CAAC;IACF,KAAK,EAAE,KAAK,CACV,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,GAAG;QAC/D,UAAU,CAAC,EAAE,gBAAgB,CAAC;KAC/B,CACF,CAAC;CACH,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAA8C,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AASjG,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,EAAE,YAAY,CAAC,GAAG;IACjE,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,KAAK,yBAAyB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,GAAG;QACxC,UAAU,EAAE,gBAAgB,CAAC;KAC9B,CAAC;IACF,KAAK,EAAE,KAAK,CACV,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,GAAG;QAC/D,UAAU,CAAC,EAAE,gBAAgB,CAAC;KAC/B,CACF,CAAC;CACH,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CA0hCxE"}
|
package/dist/shared/site.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as c,d}from"./chunk-Y6IWAOSW.js";import{b as o,d as m}from"./chunk-BIW4XH5V.js";import{a as n}from"./chunk-DXBTSJYY.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{d as l}from"./chunk-KHQV2YZC.js";import{a as t}from"./chunk-MJQMJKX4.js";import"./chunk-MPBYGS6W.js";import{c as s}from"./chunk-Y7CEEEVW.js";import{c as a,f as r}from"./chunk-RZN35CZP.js";import"./chunk-TATG6SFZ.js";import"./chunk-L42YBY5I.js";import"./chunk-CDM5BFRG.js";import"./chunk-7RCISOBG.js";import"./chunk-AXSKYJTL.js";import"./chunk-BSNVXPIC.js";import"./chunk-QLCJ52FH.js";import"./chunk-IFEIRRZ2.js";import"./chunk-DNGQLHDZ.js";import"./chunk-7ETOZECR.js";import"./chunk-QSZWDE3D.js";import"./chunk-HTHIRSIW.js";import"./chunk-J27BW3WS.js";import"./chunk-H3RYVSVS.js";import"./chunk-4ZUR7K74.js";import"./chunk-2NLENMXL.js";import"./chunk-LYRE7PSQ.js";import"./chunk-PIDZNG77.js";import"./chunk-N5Z7O3UP.js";import"./chunk-JKHX2JMJ.js";import"./chunk-72CMZ7I4.js";import"./chunk-MKIXZXWS.js";import"./chunk-ZS7NIR2D.js";import"./chunk-YBCG2363.js";import"./chunk-6ROBSJRQ.js";import"./chunk-UFKFCMG5.js";import"./chunk-OELIU5BZ.js";import"./chunk-5WHMFZQF.js";import"./chunk-ZI5FRDND.js";import"./chunk-ML2Z54ZY.js";import"./chunk-JA6PIQX4.js";import"./chunk-SCKFS7W6.js";import"./chunk-QMVW2BT6.js";import"./chunk-MZB4NFIY.js";import"./chunk-5C6YS7H3.js";import"./chunk-YIFNKP4J.js";import"./chunk-3SJF2FMO.js";import"./chunk-JETRSMDQ.js";import"./chunk-ZAHMW4A6.js";import"./chunk-ZBLSXB2C.js";import"./chunk-NUZZ4AJ5.js";import"./chunk-A5CTYB3S.js";import"./chunk-FE6PIS6N.js";import"./chunk-RXZKWH2W.js";import"./chunk-KVY3XSFM.js";import"./chunk-SFKZAUPW.js";import"./chunk-G77ZZFCM.js";import{Type as e}from"@sinclair/typebox";var b=e.Object({id:e.String(),label:e.String(),hostname:e.String(),attributes:a,attr:a,datasources:e.Optional(s),datarecords:e.Optional(l),themes:e.Array(o),theme:o,sitemap:d,sitePrompt:p}),v=e.Object({site:e.Omit(b,["attributes"]),pages:e.Array(e.Composite([e.Omit(n,["attributes"]),c]))});function I(u){let i=0;return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:u,theme:m,themes:[],sitemap:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",tags:[],sectionsPlan:[]},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",tags:[],sectionsPlan:[]}],attributes:a,attr:r(),datarecords:{"a7f26d80-d68e-4b7a-a4a3-e41c454670ce":{id:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",label:"Simple Datarecord",schema:{type:"object",properties:{lastName:{type:"string",title:"Last Name","ui:placeholder":"Enter your last name",metadata:{order:0}},firstName:{type:"string",title:"First Name","ui:placeholder":"Enter your first name",metadata:{order:1}}}},provider:"internal"},"aacfe76d-4309-466c-83ad-fda8b02b043d":{id:"aacfe76d-4309-466c-83ad-fda8b02b043d",label:"Complex Datarecord",schema:{type:"object",required:["firstName","lastName"],properties:{lastName:{type:"string",title:"Last Name",metadata:{order:1}},firstName:{type:"string",title:"First Name",metadata:{order:0}},multiline2:{type:"string",title:"Message",metadata:{order:4,"ui:multiline":!0},maxLength:30,minLength:1},age:{type:"number",title:"age",minimum:1,metadata:{order:2}},url:{type:"string",title:"personal web site",format:"uri",metadata:{order:3,"ui:placeholder":"https://mysite.example"},description:"your personal website url"},agree:{type:"boolean",title:"agree",metadata:{order:5}},favoriteColor:{enum:["blue","green","red","yellow","purple"],type:"string",title:"Favorite Color",metadata:{order:6},description:"Select your favorite color"},favoriteSeason:{enum:["spring","summer","autumn","winter"],type:"string",title:"Favorite Season",metadata:{order:6,"ui:widget":"radio"},description:"Select your favorite season"},favoriteMusic:{enum:["technology","politics","sports","music","movies"],type:"string",title:"Interests",metadata:{order:6,"ui:widget":"checkbox"},description:"What kind of subjects are you interested in?"},registrationDate:{type:"string",title:"Registration date",format:"date",metadata:{order:7}},email:{type:"string",title:"Email",format:"email",metadata:{order:8}},address:{type:"string",title:"Address",metadata:{order:9}},multiline1:{type:"string",title:"some text",metadata:{order:10,"ui:multiline":!0}},datetimes:{type:"string",title:"A datetime",format:"date-time",metadata:{order:11}}}},provider:"internal"}}},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",sections:[{id:`s_${t()}`,label:"Top",order:++i,props:{purpose:"navbar"},bricks:[{id:t(),type:"navbar",props:{backgroundColor:"neutral-dark-gradient",brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,label:"Testimonial",order:2,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{type:"testimonials",props:{alignSelf:"self-auto",orientation:"horizontal",testimonials:[{author:"Billy Gates",text:"Upstart rocks!",socialIcon:"mdi:twitter",company:"Microsoft"},{author:"Jeff Bezos",text:"Amazing product!",socialIcon:"mdi:facebook",company:"Amazon"}],height:"144.828125px",width:"45.82331730769231%",growHorizontally:!1,lastTouched:1752581827291},id:"s_uuqtYzo"}]},{id:`s_${t()}`,label:"SocialLinks",order:++i,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{type:"social-links",props:{alignSelf:"self-auto",links:[{href:"https://facebook.com",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com",label:"Instagram",icon:"mdi:instagram"},{href:"https://x.com",label:"X",icon:"mdi:twitter"}],variants:["icon-only","display-inline"],height:"138.6000000000001px"},id:t()},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button"},id:t()}]},{id:`s_${t()}`,label:"Form",order:++i,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",buttonLabel:"Register",align:"horizontal"}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",buttonLabel:"Submit Form"}}]},{id:`s_content-${t()}`,label:"Hero",order:++i,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{}}]},{id:`s_content-${t()}`,label:"Content",order:++i,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"vbox",props:{$children:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"spacer",props:{width:"20px"},mobileProps:{width:"100%"}},{id:`b_${t()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++i,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:a,attr:r()},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",sections:[{id:`s_${t()}`,label:"Top",order:++i,props:{purpose:"navbar"},bricks:[{id:t(),type:"navbar",props:{backgroundColor:"neutral-dark-gradient",brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,label:"Form",order:++i,props:{justifyContent:"justify-center"},bricks:[{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",buttonLabel:"Register",align:"horizontal"}},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button"},id:t()},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",buttonLabel:"Submit Form"}}]},{id:`s_content-${t()}`,label:"Hero",order:++i,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{}}]},{id:`s_content-${t()}`,label:"Content",order:++i,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"vbox",props:{$children:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"spacer",props:{}},{id:`b_${t()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++i,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:a,attr:r()}]}}export{I as createEmptyConfig,b as siteSchema};
|
|
3
|
+
import{a as d,d as m}from"./chunk-Y6IWAOSW.js";import{b as o,d as c}from"./chunk-BIW4XH5V.js";import{d as l}from"./chunk-47QOYVES.js";import{a as n}from"./chunk-GWILRHYI.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{c as s}from"./chunk-3L4QG6AJ.js";import{a as t}from"./chunk-BXWH4YCJ.js";import"./chunk-MPBYGS6W.js";import{c as r,f as a}from"./chunk-B2J5U5HX.js";import"./chunk-L42YBY5I.js";import"./chunk-TATG6SFZ.js";import"./chunk-L7BZGNB2.js";import"./chunk-G7PZ4H5H.js";import"./chunk-YAH55ZYR.js";import"./chunk-RUEIDZT6.js";import"./chunk-23RG3W2X.js";import"./chunk-OELIU5BZ.js";import"./chunk-3OGAJIKA.js";import"./chunk-IFEIRRZ2.js";import"./chunk-3CXVWU5K.js";import"./chunk-GWYPUQKB.js";import"./chunk-QSZWDE3D.js";import"./chunk-YJGNZ3MY.js";import"./chunk-ASUBTHRW.js";import"./chunk-ZFBCYXBD.js";import"./chunk-I6GBLCBK.js";import"./chunk-BEPCQWZN.js";import"./chunk-WJLCWOXX.js";import"./chunk-B5BHH5ZS.js";import"./chunk-3EA3PDY3.js";import"./chunk-GJMMLM6H.js";import"./chunk-FYZJUJEF.js";import"./chunk-3D7E2JXE.js";import"./chunk-MKIXZXWS.js";import"./chunk-CUC7CI6R.js";import"./chunk-L6O4UKSS.js";import"./chunk-EB5C6DYF.js";import"./chunk-ZKGRZ5CN.js";import"./chunk-VW5IBZWH.js";import"./chunk-G23RXTRB.js";import"./chunk-DBSKZ77G.js";import"./chunk-M56NNPVI.js";import"./chunk-YIFNKP4J.js";import"./chunk-PYR54IIV.js";import"./chunk-FP5CRUZH.js";import"./chunk-3EM3B4DX.js";import"./chunk-WVZGGVII.js";import"./chunk-WCZVFBSW.js";import"./chunk-6XTAAT6E.js";import"./chunk-VU7NBXYI.js";import"./chunk-OKGREWGM.js";import"./chunk-Z7UVZLR3.js";import"./chunk-JWDS7DVS.js";import"./chunk-N3FHTP5P.js";import"./chunk-R3KGKTMJ.js";import"./chunk-YGLHFAEP.js";import"./chunk-2IYSJYNE.js";import"./chunk-SFKZAUPW.js";import"./chunk-EJGNYD4V.js";import{Type as i}from"@sinclair/typebox";var b=i.Object({id:i.String(),label:i.String(),hostname:i.String(),attributes:r,attr:r,datasources:s,datarecords:l,themes:i.Array(o),theme:o,sitemap:m,sitePrompt:p}),$=i.Object({site:i.Omit(b,["attributes"]),pages:i.Array(i.Composite([i.Omit(n,["attributes"]),d]))});function v(u){let e=0;return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:u,theme:c,themes:[],sitemap:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",tags:[],sectionsPlan:[]},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",tags:[],sectionsPlan:[]}],attributes:r,attr:a(),datarecords:[{id:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",label:"Simple Datarecord",schema:{type:"object",properties:{lastName:{type:"string",title:"Last Name","ui:placeholder":"Enter your last name",metadata:{order:0}},firstName:{type:"string",title:"First Name","ui:placeholder":"Enter your first name",metadata:{order:1}}}},provider:"internal"},{id:"aacfe76d-4309-466c-83ad-fda8b02b043d",label:"Complex Datarecord",schema:{type:"object",required:["firstName","lastName"],properties:{lastName:{type:"string",title:"Last Name",metadata:{order:1}},firstName:{type:"string",title:"First Name",metadata:{order:0}},multiline2:{type:"string",title:"Message",metadata:{order:4,"ui:multiline":!0},maxLength:30,minLength:1},age:{type:"number",title:"age",minimum:1,metadata:{order:2}},url:{type:"string",title:"personal web site",format:"uri",metadata:{order:3,"ui:placeholder":"https://mysite.example"},description:"your personal website url"},agree:{type:"boolean",title:"agree",metadata:{order:5}},favoriteColor:{enum:["blue","green","red","yellow","purple"],type:"string",title:"Favorite Color",metadata:{order:6},description:"Select your favorite color"},favoriteSeason:{enum:["spring","summer","autumn","winter"],type:"string",title:"Favorite Season",metadata:{order:6,"ui:widget":"radio"},description:"Select your favorite season"},favoriteMusic:{enum:["technology","politics","sports","music","movies"],type:"string",title:"Interests",metadata:{order:6,"ui:widget":"checkbox"},description:"What kind of subjects are you interested in?"},registrationDate:{type:"string",title:"Registration date",format:"date",metadata:{order:7}},email:{type:"string",title:"Email",format:"email",metadata:{order:8}},address:{type:"string",title:"Address",metadata:{order:9}},multiline1:{type:"string",title:"some text",metadata:{order:10,"ui:multiline":!0}},datetimes:{type:"string",title:"A datetime",format:"date-time",metadata:{order:11}}}},provider:"internal"}],datasources:[{id:"employees",name:"Company employees",provider:"custom",schema:{type:"array",items:{type:"object",properties:{firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},email:{type:"string",format:"email",title:"Email"},height:{type:"number",title:"Height"},admin:{type:"boolean",title:"Is Admin"},startedOn:{type:"string",format:"date",title:"Started On"}},required:["firstName","lastName","email"]}},indexes:[{fields:["email"],unique:!0,name:"idx_unique_email"},{fields:["lastName"],unique:!0,name:"idx_unique_lastName"},{fields:["height"],name:"idx_unique_height"},{fields:["admin"],name:"idx_unique_admin"},{fields:["startedOn"],name:"idx_unique_startedOn"}],sampleData:[{firstName:"John",lastName:"Doe",email:"john.doe@example.com"}]},{id:"employees2",name:"Company employees 2",provider:"custom",schema:{type:"array",items:{type:"object",properties:{firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"}},required:["firstName","lastName"]}},indexes:[{fields:["lastName"],unique:!0,name:"idx_unique_lastName"}],sampleData:[{firstName:"John",lastName:"Doe",email:"john.doe@example.com"}]}]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{purpose:"navbar"},bricks:[{id:t(),type:"navbar",props:{backgroundColor:"neutral-dark-gradient",brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,order:++e,label:"Media",props:{},bricks:[{id:t(),type:"video",props:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}},{id:t(),type:"image",props:{image:{alt:"Sample Image"},width:"300px",height:"200px"}},{id:t(),type:"icon",props:{icon:"mdi:heart"}}]},{id:`s_${t()}`,order:++e,label:"Containers",props:{},bricks:[{id:t(),type:"box",props:{direction:"flex-row",$children:[{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}}]}},{id:t(),type:"box",props:{direction:"flex-col",$children:[{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}}]}},{id:t(),type:"dynamic",props:{direction:"flex-col",$children:[{id:t(),type:"text",props:{width:"45%"}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}}]}}]},{id:`s_${t()}`,order:++e,label:"Dynamic",bricks:[{type:"dynamic",props:{alignSelf:"self-auto",datasource:{},$children:[],height:"104.390625px",width:"29.03826810534016%",growHorizontally:!1,lastTouched:1753359079542},id:t()}],props:{}},{id:`s_${t()}`,order:++e,label:"Section 8",bricks:[{type:"form",props:{alignSelf:"self-auto",color:"base100",gradientDirection:"bg-gradient-to-br",align:"vertical",padding:"p-4",fontSize:"inherit",button:{color:"btn-color-primary",size:"block",rounding:"rounded-md",border:{width:"border",rounding:"rounded-md"}},title:"My form",buttonLabel:"Submit",successMessage:"Thank you for your submission!",errorMessage:"There was an error submitting the form. Please try again later.",height:"104.4px"},id:"brick-OKkJLZl"}],props:{}},{id:`s_${t()}`,label:"Testimonial",order:++e,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{type:"testimonials",props:{alignSelf:"self-auto",orientation:"horizontal",testimonials:[{author:"Billy Gates",text:"Upstart rocks! I love the flexibility and ease of use. Can't wait to see more features!",socialIcon:"mdi:twitter",company:"Microsoft"},{author:"Jeff Bezos",text:"Amazing product! Upstart has transformed the way I build websites. Highly recommend it!",socialIcon:"mdi:facebook",company:"Amazon"},{author:"Elon Musk",text:"Upstart is a game changer! The possibilities are endless.",socialIcon:"mdi:linkedin",company:"SpaceX"},{author:"Mark Zuckerberg",text:"Upstart is a fantastic tool for building modern websites. I'm impressed!",socialIcon:"mdi:facebook",company:"Meta"}]},id:"s_uuqtYzo"}]},{id:`s_${t()}`,label:"SocialLinks",order:++e,props:{justifyContent:"justify-center"},bricks:[{type:"social-links",props:{alignSelf:"self-auto",links:[{href:"https://facebook.com",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com",label:"Instagram",icon:"mdi:instagram"},{href:"https://x.com",label:"X",icon:"mdi:twitter"}]},id:t()},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button",modifier:"btn-block",color:"btn-color-primary",width:"20.834446225071225%",height:"42px",growHorizontally:!1},id:t()}]},{id:`s_${t()}`,label:"Form",order:++e,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{id:t(),type:"images-gallery",props:{}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",button:{label:"Register",size:"block",borderRadius:"rounded-lg",color:"btn-color-primary"}}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",button:{label:"Submit Form",borderRadius:"rounded-md",color:"btn-color-accent"}}}]},{id:`s_content-${t()}`,label:"Hero",order:++e,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{}}]},{id:`s_content-${t()}`,label:"Content",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{text:"This is some sample content for the second page."}},{id:`b_${t()}`,type:"spacer",props:{width:"20px"},mobileProps:{width:"100%"}},{id:`b_${t()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:r,attr:a()},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{purpose:"navbar"},bricks:[{id:t(),type:"navbar",props:{backgroundColor:"neutral-dark-gradient",brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,label:"Form",order:++e,props:{justifyContent:"justify-center"},bricks:[{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",button:{label:"Register",position:"center",borderRadius:"rounded-lg",color:"btn-color-primary"},align:"horizontal"}},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button"},id:t()},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",button:{label:"Register 2",position:"left",borderRadius:"rounded-lg",color:"btn-color-primary"}}}]},{id:`s_content-${t()}`,label:"Hero",order:++e,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{color:"primary"}}]},{id:`s_content-${t()}`,label:"Content",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"vbox",props:{$children:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"spacer",props:{}},{id:`b_${t()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:r,attr:a()}]}}export{v as createEmptyConfig,b as siteSchema};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as o}from"../chunk-
|
|
3
|
+
import{a as o}from"../chunk-JVEHSONJ.js";import"../chunk-EB5C6DYF.js";import"../chunk-ZKGRZ5CN.js";import"../chunk-G23RXTRB.js";import"../chunk-DBSKZ77G.js";import"../chunk-M56NNPVI.js";import"../chunk-PYR54IIV.js";import"../chunk-WVZGGVII.js";import"../chunk-WCZVFBSW.js";import"../chunk-6XTAAT6E.js";import"../chunk-VU7NBXYI.js";import"../chunk-OKGREWGM.js";import"../chunk-Z7UVZLR3.js";import"../chunk-YGLHFAEP.js";import"../chunk-2IYSJYNE.js";import"../chunk-SFKZAUPW.js";import"../chunk-EJGNYD4V.js";function c(e){if(!e.$ref)return e;let r=o.getSchema(e.$ref)?.schema;if(!r||typeof e!="object")throw new Error(`Schema not found for reference: ${e.$ref}`);let{$ref:f,...t}=e;return{...r,...t}}export{c as resolveSchema};
|