@upstart.gg/sdk 0.0.127 → 0.0.129

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.
Files changed (42) hide show
  1. package/dist/shared/bricks/manifests/all-manifests.js +1 -1
  2. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  3. package/dist/shared/bricks/manifests/card.manifest.js +1 -1
  4. package/dist/shared/bricks/manifests/form.manifest.js +1 -1
  5. package/dist/shared/bricks/props/helpers.d.ts +1 -1
  6. package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
  7. package/dist/shared/bricks.js +1 -1
  8. package/dist/shared/chunk-6K3KZDFC.js +3 -0
  9. package/dist/shared/{chunk-YP2VDRSF.js → chunk-AQPN5SE2.js} +1 -1
  10. package/dist/shared/{chunk-UA4XNW27.js → chunk-C2S243PB.js} +1 -1
  11. package/dist/shared/chunk-IIFTGWFZ.js +3 -0
  12. package/dist/shared/{chunk-O3ILJEK4.js → chunk-NLEWXPVM.js} +1 -1
  13. package/dist/shared/chunk-SLRU4CT6.js +4 -0
  14. package/dist/shared/{chunk-27E2MKTU.js → chunk-VTBI7WX3.js} +1 -1
  15. package/dist/shared/datarecords/external/airtable/elements.d.ts +21 -0
  16. package/dist/shared/datarecords/external/airtable/elements.d.ts.map +1 -0
  17. package/dist/shared/datarecords/external/airtable/handler.d.ts +1 -1
  18. package/dist/shared/datarecords/external/airtable/handler.d.ts.map +1 -1
  19. package/dist/shared/datarecords/external/airtable/oauth/config.d.ts +11 -0
  20. package/dist/shared/datarecords/external/airtable/oauth/config.d.ts.map +1 -0
  21. package/dist/shared/datarecords/external/airtable/options.d.ts +4 -2
  22. package/dist/shared/datarecords/external/airtable/options.d.ts.map +1 -1
  23. package/dist/shared/datarecords/external/google/sheets/options.d.ts +3 -1
  24. package/dist/shared/datarecords/external/google/sheets/options.d.ts.map +1 -1
  25. package/dist/shared/datarecords/external/notion/oauth/config.d.ts +7 -0
  26. package/dist/shared/datarecords/external/notion/oauth/config.d.ts.map +1 -0
  27. package/dist/shared/datarecords/external/notion/options.d.ts +9 -0
  28. package/dist/shared/datarecords/external/notion/options.d.ts.map +1 -0
  29. package/dist/shared/datarecords/types.d.ts +20 -7
  30. package/dist/shared/datarecords/types.d.ts.map +1 -1
  31. package/dist/shared/datarecords/types.js +1 -1
  32. package/dist/shared/page.js +1 -1
  33. package/dist/shared/site.d.ts +5 -7
  34. package/dist/shared/site.d.ts.map +1 -1
  35. package/dist/shared/site.js +1 -1
  36. package/dist/shared/sitemap.js +1 -1
  37. package/dist/shared/themes/color-system.d.ts.map +1 -1
  38. package/dist/shared/themes/color-system.js +1 -1
  39. package/package.json +7 -24
  40. package/dist/shared/chunk-6E4DU2E7.js +0 -4
  41. package/dist/shared/chunk-SDASH4F4.js +0 -3
  42. package/dist/shared/chunk-WAV35LMH.js +0 -3
@@ -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-YP2VDRSF.js";import"../../chunk-DQXDGV67.js";import"../../chunk-IFEIRRZ2.js";import"../../chunk-7DMUDZ4H.js";import"../../chunk-LSPN22SI.js";import"../../chunk-QSZWDE3D.js";import"../../chunk-ETYYRWLK.js";import"../../chunk-4TH3C76A.js";import"../../chunk-FKNNTHWX.js";import"../../chunk-JS4K5JRM.js";import"../../chunk-WU6Q4WYD.js";import"../../chunk-QISTDGPP.js";import"../../chunk-LFQZRGHS.js";import"../../chunk-6E4DU2E7.js";import"../../chunk-MKIXZXWS.js";import"../../chunk-TTTXV7TJ.js";import"../../chunk-UHF6IEKV.js";import"../../chunk-LGP6GWIY.js";import"../../chunk-X43MB5WD.js";import"../../chunk-NNI225RG.js";import"../../chunk-ZQGNYK5I.js";import"../../chunk-KHFNN4P3.js";import"../../chunk-3EM3B4DX.js";import"../../chunk-BZGNY7LB.js";import"../../chunk-SDASH4F4.js";import"../../chunk-OIOYMECS.js";import"../../chunk-VPFCY4DH.js";import"../../chunk-TWBY2GOR.js";import"../../chunk-CT3EI7YN.js";import"../../chunk-6WCGUAQN.js";import"../../chunk-T4LMBG2G.js";import"../../chunk-C3VGP4CA.js";import"../../chunk-ACVLF55Q.js";import"../../chunk-6FITVVZX.js";import"../../chunk-YIFNKP4J.js";import"../../chunk-UU2MSQXY.js";import"../../chunk-T3LIA4YB.js";import"../../chunk-RGLVKILY.js";import"../../chunk-YBGPPF7T.js";import"../../chunk-VZPXXFVX.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-5N6MBJJ4.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-VGRYSAXA.js";import"../../chunk-I46VBMLF.js";export{b as defaultProps,c as examples,a as manifests};
3
+ import{a,b,c}from"../../chunk-AQPN5SE2.js";import"../../chunk-DQXDGV67.js";import"../../chunk-IFEIRRZ2.js";import"../../chunk-7DMUDZ4H.js";import"../../chunk-LSPN22SI.js";import"../../chunk-QSZWDE3D.js";import"../../chunk-ETYYRWLK.js";import"../../chunk-4TH3C76A.js";import"../../chunk-FKNNTHWX.js";import"../../chunk-JS4K5JRM.js";import"../../chunk-WU6Q4WYD.js";import"../../chunk-QISTDGPP.js";import"../../chunk-LFQZRGHS.js";import"../../chunk-SLRU4CT6.js";import"../../chunk-MKIXZXWS.js";import"../../chunk-TTTXV7TJ.js";import"../../chunk-UHF6IEKV.js";import"../../chunk-LGP6GWIY.js";import"../../chunk-X43MB5WD.js";import"../../chunk-NNI225RG.js";import"../../chunk-ZQGNYK5I.js";import"../../chunk-KHFNN4P3.js";import"../../chunk-3EM3B4DX.js";import"../../chunk-BZGNY7LB.js";import"../../chunk-IIFTGWFZ.js";import"../../chunk-OIOYMECS.js";import"../../chunk-VPFCY4DH.js";import"../../chunk-TWBY2GOR.js";import"../../chunk-CT3EI7YN.js";import"../../chunk-6WCGUAQN.js";import"../../chunk-T4LMBG2G.js";import"../../chunk-C3VGP4CA.js";import"../../chunk-ACVLF55Q.js";import"../../chunk-6FITVVZX.js";import"../../chunk-YIFNKP4J.js";import"../../chunk-UU2MSQXY.js";import"../../chunk-T3LIA4YB.js";import"../../chunk-RGLVKILY.js";import"../../chunk-YBGPPF7T.js";import"../../chunk-VZPXXFVX.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-5N6MBJJ4.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-VGRYSAXA.js";import"../../chunk-I46VBMLF.js";export{b as defaultProps,c as examples,a as manifests};
@@ -1 +1 @@
1
- {"version":3,"file":"card.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/card.manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACZ,CAAC;eAER,CAAF;;;cAAiE,CAAC;eAEhE,CAAD;;;cACa,CAAC;eACT,CAAC;;;cAEL,CAAD;eACG,CAAJ;;;;;CA6DE,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EAyGA,CAAC"}
1
+ {"version":3,"file":"card.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/card.manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACZ,CAAC;eAER,CAAF;;;cAAiE,CAAC;eAEhE,CAAD;;;cACa,CAAC;eACT,CAAC;;;cAEL,CAAD;eACG,CAAJ;;;;;CAiEE,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EAyGA,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}from"../../chunk-SDASH4F4.js";import"../../chunk-T4LMBG2G.js";import"../../chunk-C3VGP4CA.js";import"../../chunk-ACVLF55Q.js";import"../../chunk-6FITVVZX.js";import"../../chunk-UU2MSQXY.js";import"../../chunk-RGLVKILY.js";import"../../chunk-YBGPPF7T.js";import"../../chunk-VZPXXFVX.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-5N6MBJJ4.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-VGRYSAXA.js";import"../../chunk-I46VBMLF.js";export{b as examples,a as manifest};
3
+ import{a,b}from"../../chunk-IIFTGWFZ.js";import"../../chunk-T4LMBG2G.js";import"../../chunk-C3VGP4CA.js";import"../../chunk-ACVLF55Q.js";import"../../chunk-6FITVVZX.js";import"../../chunk-UU2MSQXY.js";import"../../chunk-RGLVKILY.js";import"../../chunk-YBGPPF7T.js";import"../../chunk-VZPXXFVX.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-5N6MBJJ4.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-VGRYSAXA.js";import"../../chunk-I46VBMLF.js";export{b as examples,a as manifest};
@@ -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}from"../../chunk-6E4DU2E7.js";import"../../chunk-MKIXZXWS.js";import"../../chunk-CT3EI7YN.js";import"../../chunk-6WCGUAQN.js";import"../../chunk-C3VGP4CA.js";import"../../chunk-ACVLF55Q.js";import"../../chunk-6FITVVZX.js";import"../../chunk-UU2MSQXY.js";import"../../chunk-T3LIA4YB.js";import"../../chunk-VZPXXFVX.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-VGRYSAXA.js";import"../../chunk-I46VBMLF.js";export{b as examples,a as manifest};
3
+ import{a,b}from"../../chunk-SLRU4CT6.js";import"../../chunk-MKIXZXWS.js";import"../../chunk-CT3EI7YN.js";import"../../chunk-6WCGUAQN.js";import"../../chunk-C3VGP4CA.js";import"../../chunk-ACVLF55Q.js";import"../../chunk-6FITVVZX.js";import"../../chunk-UU2MSQXY.js";import"../../chunk-T3LIA4YB.js";import"../../chunk-VZPXXFVX.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-VGRYSAXA.js";import"../../chunk-I46VBMLF.js";export{b as examples,a as manifest};
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type TProperties, type TSchema, type TObject, type ObjectOptions } from "@sinclair/typebox";
5
5
  import type { PartialBy, PropGroup, GroupMetadata } from "./types";
6
- export declare function group<T extends TProperties>({ title, children, category, metadata, options, }: PartialBy<PropGroup<T>, "category">): TObject<T> | TObject<import("@sinclair/typebox").Evaluate<import("@sinclair/typebox").TSetDistinct<[...import("@sinclair/typebox").UnionToTuple<keyof T, [], import("@sinclair/typebox").UnionLast<keyof T>>], []> extends infer T_1 ? T_1 extends import("@sinclair/typebox").TSetDistinct<[...import("@sinclair/typebox").UnionToTuple<keyof T, [], import("@sinclair/typebox").UnionLast<keyof T>>], []> ? T_1 extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? /*elided*/ any : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_5 ? T_5 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_5 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_6 ? T_6 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_6 extends import("@sinclair/typebox").TNever ? [] : [T_6] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_7 ? T_7 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_7 extends import("@sinclair/typebox").TNever ? [T_5] : [T_5, T_7] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_8 ? T_8 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_8 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_9 ? T_9 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_9 extends import("@sinclair/typebox").TNever ? [] : [T_9] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_10 ? T_10 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_10 extends import("@sinclair/typebox").TNever ? [T_8] : [T_8, T_10] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_11 ? T_11 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_11 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_12 ? T_12 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_12 extends import("@sinclair/typebox").TNever ? [] : [T_12] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_13 ? T_13 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_13 extends import("@sinclair/typebox").TNever ? [T_11] : [T_11, T_13] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_14 ? T_14 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_14 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_15 ? T_15 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_15 extends import("@sinclair/typebox").TNever ? [] : [T_15] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_16 ? T_16 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_16 extends import("@sinclair/typebox").TNever ? [T_14] : [T_14, T_16] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_17 ? T_17 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_17 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_18 ? T_18 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_18 extends import("@sinclair/typebox").TNever ? [] : [T_18] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_19 ? T_19 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_19 extends import("@sinclair/typebox").TNever ? [T_17] : [T_17, T_19] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_20 ? T_20 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_20 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_21 ? T_21 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_21 extends import("@sinclair/typebox").TNever ? [] : [T_21] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_22 ? T_22 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_22 extends import("@sinclair/typebox").TNever ? [T_20] : [T_20, T_22] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_23 ? T_23 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_23 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_24 ? T_24 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_24 extends import("@sinclair/typebox").TNever ? [] : [T_24] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_25 ? T_25 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_25 extends import("@sinclair/typebox").TNever ? [T_23] : [T_23, T_25] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_26 ? T_26 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_26 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_27 ? T_27 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_27 extends import("@sinclair/typebox").TNever ? [] : [T_27] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_28 ? T_28 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_28 extends import("@sinclair/typebox").TNever ? [T_26] : [T_26, T_28] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_29 ? T_29 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_29 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_30 ? T_30 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_30 extends import("@sinclair/typebox").TNever ? [] : [T_30] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_31 ? T_31 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_31 extends import("@sinclair/typebox").TNever ? [T_29] : [T_29, T_31] : never : never : never : never>; } : {} : never : never>>;
6
+ export declare function group<T extends TProperties>({ title, children, category, metadata, options, }: PartialBy<PropGroup<T>, "category">): TObject<T> | TObject<import("@sinclair/typebox").Evaluate<import("@sinclair/typebox").TSetDistinct<[...import("@sinclair/typebox").UnionToTuple<keyof T, [], import("@sinclair/typebox").UnionLast<keyof T>>], []> extends infer T_1 ? T_1 extends import("@sinclair/typebox").TSetDistinct<[...import("@sinclair/typebox").UnionToTuple<keyof T, [], import("@sinclair/typebox").UnionLast<keyof T>>], []> ? T_1 extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? /*elided*/ any : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : {} : never : never>>;
7
7
  export declare function getGroupInfo(schema: TSchema): {
8
8
  title: string | undefined;
9
9
  meta: GroupMetadata;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,WAAW,EAAQ,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE3G,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAMnE,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,EAC3C,KAAK,EACL,QAAQ,EACR,QAAqB,EACrB,QAAQ,EACR,OAAO,GACR,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,8xrBAyBrC;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO;WAGW,MAAM,GAAG,SAAS;;;EAIxE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAC/C,KAAK,EAAE,CAAC,EACR,OAAO,CAAC,EAAE,aAAa,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;;;;;;;;;;OAUF;AAGD,eAAO,MAAM,KAAK,qIAAa,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,WAAW,EAAQ,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE3G,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAMnE,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,EAC3C,KAAK,EACL,QAAQ,EACR,QAAqB,EACrB,QAAQ,EACR,OAAO,GACR,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,+rrBAyBrC;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO;WAGW,MAAM,GAAG,SAAS;;;EAIxE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAC/C,KAAK,EAAE,CAAC,EACR,OAAO,CAAC,EAAE,aAAa,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;;;;;;;;;;OAUF;AAGD,eAAO,MAAM,KAAK,qIAAa,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,e,f,g,h}from"./chunk-O3ILJEK4.js";import"./chunk-L42YBY5I.js";import"./chunk-YP2VDRSF.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-6E4DU2E7.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-SDASH4F4.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{c as brickSchema,b as brickTypeSchema,h as createEmptyBrick,a as generateId,g as processBrick,f as processSections,d as sectionProps,e as sectionSchema};
3
+ import{a,b,c,d,e,f,g,h}from"./chunk-NLEWXPVM.js";import"./chunk-L42YBY5I.js";import"./chunk-AQPN5SE2.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-SLRU4CT6.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-IIFTGWFZ.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{c as brickSchema,b as brickTypeSchema,h as createEmptyBrick,a as generateId,g as processBrick,f as processSections,d as sectionProps,e as sectionSchema};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{Type as t}from"@sinclair/typebox";import{Type as e}from"@sinclair/typebox";var n=e.Object({externalUrl:e.Optional(e.String()),baseId:e.String({pattern:"^app[A-Za-z0-9]+$",description:'Airtable Base ID starting with "app"'}),baseName:e.Optional(e.String({description:"Airtable Base Name"})),tableId:e.String({pattern:"^tbl[A-Za-z0-9]+$",description:'Airtable Table ID starting with "tbl"'}),tableName:e.Optional(e.String({description:"Table name as shown in Airtable interface"}))});import{Type as r}from"@sinclair/typebox";var s=r.Object({url:r.String({format:"uri",title:"Webhook URL"}),headers:r.Optional(r.Record(r.String(),r.String(),{title:"Headers",description:"Additional headers to include in the webhook request"}))});import{Type as i}from"@sinclair/typebox";var p=i.Object({spreadsheetId:i.String(),spreadsheetUrl:i.Optional(i.String()),spreadsheetName:i.Optional(i.String()),externalUrl:i.Optional(i.String())});import{Type as o}from"@sinclair/typebox";var l=o.Object({url:o.Optional(o.String()),id:o.String({pattern:"^[A-Za-z0-9\\-]+$",description:"Notion Database ID"}),name:o.String({description:"Notion Database Name"}),properties:o.Any()});var D=t.Union([t.Literal("airtable"),t.Literal("google-sheets"),t.Literal("notion"),t.Literal("generic-webhook"),t.Literal("internal")]),c=t.Object({provider:t.Literal("internal"),schema:t.Any({title:"Schema",description:"JSON Schema of the datarecord. Always of type 'object' and representing a row that will be saved.",examples:[{type:"object",properties:{firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},email:{type:"string",format:"email",title:"Email"}},required:["email"],title:"Newsletter Subscription"}]}),indexes:t.Array(t.Object({name:t.String({title:"Index name"}),fields:t.Array(t.String(),{title:"Fields to index"}),unique:t.Optional(t.Boolean({title:"Unique index",default:!1}))}),{title:"Indexes",description:"IMPORTANT: Indexes to create on the datarecord. use it to enforce uniqueness or improve query performance."})},{examples:[{provider:"internal",schema:{type:"object",properties:{firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},email:{type:"string",format:"email",title:"Email"}},required:["email"],title:"Newsletter Subscription"},indexes:[{name:"email_index",fields:["email"],unique:!0}]}]}),a=t.Object({schema:t.Any({title:"Schema",description:"JSON Schema of the datarecord. Always of type 'object' and representing a row that will be saved.",examples:[{type:"object",properties:{firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},email:{type:"string",format:"email",title:"Email"}},required:["email"],title:"Newsletter Subscription"}]})}),d=t.Union([t.Composite([t.Object({provider:t.Literal("airtable"),options:n}),a]),t.Composite([t.Object({provider:t.Literal("google-sheets"),options:p}),a]),t.Composite([t.Object({provider:t.Literal("notion"),options:l}),a]),t.Composite([t.Object({provider:t.Literal("generic-webhook"),options:s}),a]),c]),m=t.Object({id:t.String({title:"Datarecord ID",comment:"A unique identifier for the datarecord, e.g., 'newsletter_subscriptions'"}),label:t.String({title:"Name of the datarecord",comment:"For example, 'Newsletter Subscriptions'"}),description:t.Optional(t.String({title:"Description of the datarecord"}))}),b=t.Composite([d,m]),I=t.Composite([m,c]),q=t.Array(b);export{D as a,d as b,I as c,q as d};
@@ -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{b as l,c as w}from"./chunk-DQXDGV67.js";import{a as x,b as z}from"./chunk-7DMUDZ4H.js";import{a as c,b as A}from"./chunk-LSPN22SI.js";import{a as M,b as C}from"./chunk-ETYYRWLK.js";import{a as E,b as F}from"./chunk-4TH3C76A.js";import{a as d,b as G}from"./chunk-FKNNTHWX.js";import{a as g,b as H}from"./chunk-JS4K5JRM.js";import{a as b,b as I}from"./chunk-WU6Q4WYD.js";import{a as m,b as D}from"./chunk-QISTDGPP.js";import{a as i,b as R}from"./chunk-LFQZRGHS.js";import{a as o,b as L}from"./chunk-6E4DU2E7.js";import{a as r,b as W}from"./chunk-TTTXV7TJ.js";import{a as u,b as J}from"./chunk-UHF6IEKV.js";import{a as f,b as P}from"./chunk-LGP6GWIY.js";import{a as n,b as j}from"./chunk-X43MB5WD.js";import{a as y,b as q}from"./chunk-NNI225RG.js";import{a as t,b as k}from"./chunk-ZQGNYK5I.js";import{a,b as B}from"./chunk-KHFNN4P3.js";import{a as s,b as h}from"./chunk-BZGNY7LB.js";import{a as p,b as v}from"./chunk-SDASH4F4.js";import{b as e}from"./chunk-VGRYSAXA.js";var re={[g.type]:g,[r.type]:r,[n.type]:n,[b.type]:b,[p.type]:p,[l.type]:l,[o.type]:o,[c.type]:c,[y.type]:y,[m.type]:m,[x.type]:x,[i.type]:i,[s.type]:s,[f.type]:f,[M.type]:M,[a.type]:a,[E.type]:E,[d.type]:d,[t.type]:t,[u.type]:u},fe={[g.type]:e(g),[r.type]:e(r),[n.type]:e(n),[b.type]:e(b),[p.type]:e(p),[c.type]:e(c),[l.type]:e(l),[o.type]:e(o),[y.type]:e(y),[m.type]:e(m),[x.type]:e(x),[i.type]:e(i),[s.type]:e(s),[f.type]:e(f),[M.type]:e(M),[a.type]:e(a),[E.type]:e(E),[d.type]:e(d),[t.type]:e(t),[u.type]:e(u)},ne={[g.type]:H,[r.type]:W,[n.type]:j,[b.type]:I,[p.type]:v,[l.type]:w,[o.type]:L,[c.type]:A,[y.type]:q,[m.type]:D,[x.type]:z,[i.type]:R,[s.type]:h,[f.type]:P,[M.type]:C,[a.type]:B,[E.type]:F,[d.type]:G,[t.type]:k,[u.type]:J};export{re as a,fe as b,ne as c};
3
+ import{b as l,c as w}from"./chunk-DQXDGV67.js";import{a as x,b as z}from"./chunk-7DMUDZ4H.js";import{a as c,b as A}from"./chunk-LSPN22SI.js";import{a as M,b as C}from"./chunk-ETYYRWLK.js";import{a as E,b as F}from"./chunk-4TH3C76A.js";import{a as d,b as G}from"./chunk-FKNNTHWX.js";import{a as g,b as H}from"./chunk-JS4K5JRM.js";import{a as b,b as I}from"./chunk-WU6Q4WYD.js";import{a as m,b as D}from"./chunk-QISTDGPP.js";import{a as i,b as R}from"./chunk-LFQZRGHS.js";import{a as o,b as L}from"./chunk-SLRU4CT6.js";import{a as r,b as W}from"./chunk-TTTXV7TJ.js";import{a as u,b as J}from"./chunk-UHF6IEKV.js";import{a as f,b as P}from"./chunk-LGP6GWIY.js";import{a as n,b as j}from"./chunk-X43MB5WD.js";import{a as y,b as q}from"./chunk-NNI225RG.js";import{a as t,b as k}from"./chunk-ZQGNYK5I.js";import{a,b as B}from"./chunk-KHFNN4P3.js";import{a as s,b as h}from"./chunk-BZGNY7LB.js";import{a as p,b as v}from"./chunk-IIFTGWFZ.js";import{b as e}from"./chunk-VGRYSAXA.js";var re={[g.type]:g,[r.type]:r,[n.type]:n,[b.type]:b,[p.type]:p,[l.type]:l,[o.type]:o,[c.type]:c,[y.type]:y,[m.type]:m,[x.type]:x,[i.type]:i,[s.type]:s,[f.type]:f,[M.type]:M,[a.type]:a,[E.type]:E,[d.type]:d,[t.type]:t,[u.type]:u},fe={[g.type]:e(g),[r.type]:e(r),[n.type]:e(n),[b.type]:e(b),[p.type]:e(p),[c.type]:e(c),[l.type]:e(l),[o.type]:e(o),[y.type]:e(y),[m.type]:e(m),[x.type]:e(x),[i.type]:e(i),[s.type]:e(s),[f.type]:e(f),[M.type]:e(M),[a.type]:e(a),[E.type]:e(E),[d.type]:e(d),[t.type]:e(t),[u.type]:e(u)},ne={[g.type]:H,[r.type]:W,[n.type]:j,[b.type]:I,[p.type]:v,[l.type]:w,[o.type]:L,[c.type]:A,[y.type]:q,[m.type]:D,[x.type]:z,[i.type]:R,[s.type]:h,[f.type]:P,[M.type]:C,[a.type]:B,[E.type]:F,[d.type]:G,[t.type]:k,[u.type]:J};export{re as a,fe as b,ne as c};
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a}from"./chunk-27E2MKTU.js";import{a as t}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";var i=e.Pick(a,["id","label","path"]),o=e.Array(e.Object({id:e.String({title:"Section ID (slug format)"}),name:e.String({title:"Section name"}),description:e.String({title:"A long description of the section",description:`You must elaborate a clear and detailled plan that describes:
3
+ import{a}from"./chunk-VTBI7WX3.js";import{a as t}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";var i=e.Pick(a,["id","label","path"]),o=e.Array(e.Object({id:e.String({title:"Section ID (slug format)"}),name:e.String({title:"Section name"}),description:e.String({title:"A long description of the section",description:`You must elaborate a clear and detailled plan that describes:
4
4
  - The section purpose in the page, in detail.
5
5
  - The section structure, look & feel, and structural/design organization, in detail
6
6
  - the types of bricks (e.g. "container", "text", "video", "carousel", etc) that will be used and their purpose, in detail
@@ -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 r}from"./chunk-T4LMBG2G.js";import{f as e}from"./chunk-C3VGP4CA.js";import{b as i,d as o}from"./chunk-ACVLF55Q.js";import{c as s}from"./chunk-UU2MSQXY.js";import{b as p}from"./chunk-RGLVKILY.js";import{e as n}from"./chunk-YBGPPF7T.js";import{e as a}from"./chunk-VZPXXFVX.js";import{a as d}from"./chunk-VGRYSAXA.js";import{BsCardText as c}from"react-icons/bs";import{Type as t}from"@sinclair/typebox";var b=d({type:"card",name:"Card",description:"A card that can have a title, image, and content",icon:c,defaultWidth:{desktop:"400px",mobile:"100%"},minWidth:{desktop:300},minHeight:{mobile:200,desktop:200},maxWidth:{desktop:650},props:s({colorPreset:t.Optional(a({title:"Color preset",default:{color:"base-100"}})),cardImage:t.Optional(p({"ui:responsive":"desktop",metadata:{category:"content"}})),imagePosition:t.Optional(t.Union([t.Literal("top",{title:"Top"}),t.Literal("middle",{title:"Middle"}),t.Literal("bottom",{title:"Bottom"}),t.Literal("left",{title:"Left"}),t.Literal("right",{title:"Right"})],{title:"Image Position",description:"Where the image should be placed in the card",default:"top","ui:responsive":"desktop",metadata:{category:"content",filter:(m,l)=>!!l.cardImage?.src}})),noTitle:t.Optional(t.Boolean({title:"No Title",description:"Whether to hide the card title",default:!1,"ui:responsive":"desktop"})),title:t.Optional(e({title:"Title"})),text:t.Optional(e({title:"Text"})),rounding:t.Optional(o({default:"rounded-md"})),border:t.Optional(i({})),shadow:t.Optional(r({default:"shadow-sm"})),loop:t.Optional(n())})}),P=[{description:"A simple card with a title and content",type:"card",props:{title:"Card Title",text:"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"},title:"Overlay Title",text:"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"},title:"Premium Headphones",text:"High-quality wireless headphones with noise cancellation and 30-hour battery life."}},{description:"Feature card with large padding and background",type:"card",props:{title:"Key Feature",text:"This feature provides exceptional value and enhances user experience significantly."}},{description:"Blog post card with image at the bottom",type:"card",props:{title:"The Future of Technology",text:"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:{title:"Customer Review",text:'"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:{title:"Simple Announcement",text:"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"},title:"Annual Conference 2025",text:"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"},title:"Breaking News Update",text:"Latest developments in the ongoing story with expert analysis and community reactions."}},{description:"Call-to-action card with prominent styling",type:"card",props:{title:"Get Started Today",text:"Transform your workflow with our powerful tools. Sign up now and get 30 days free!"}}];export{b as a,P as b};
@@ -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 f}from"./chunk-L42YBY5I.js";import{b as o}from"./chunk-YP2VDRSF.js";import{a as r}from"./chunk-MPBYGS6W.js";import{b as u}from"./chunk-CT3EI7YN.js";import{b as d}from"./chunk-6WCGUAQN.js";import{e as m}from"./chunk-VZPXXFVX.js";import{c as s}from"./chunk-2IYSJYNE.js";import{b as l,d as c}from"./chunk-E22E4XWE.js";import{a as n}from"./chunk-SFKZAUPW.js";import{b as p}from"./chunk-I46VBMLF.js";import{Type as t}from"@sinclair/typebox";import{customAlphabet as g}from"nanoid";var k=g("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),N=t.Object({left:t.Optional(t.String({title:"top",description:"The left position in css unit."})),top:t.Optional(t.String({title:"top",description:"The top position in css unit."})),right:t.Optional(t.String({title:"right",description:"The right position in css unit."})),bottom:t.Optional(t.String({title:"bottom",description:"The bottom position in css unit."})),inset:t.Optional(t.String({title:"inset",description:"The inset position in css unit."})),translateX:t.Optional(t.String({title:"translateX",description:"The translateX position in css unit."})),translateY:t.Optional(t.String({title:"translateY",description:"The translateY position in css unit."})),rotate:t.Optional(t.String({title:"rotate",description:"The rotate position in css unit."}))}),O=n(Object.keys(o),{title:"Brick type"}),S=t.Object({id:t.String({title:"ID",description:"A unique identifier for the brick."}),type:O,props:t.Any({title:"Props",description:"The static props of the brick. The available props depends on the brick type."}),mobileProps:t.Optional(t.Any({title:"Props",description:"The overriden props for mobile, merged with desktop props."})),propsMapping:t.Optional(t.Object({},{description:"Dynamic props mapping for the brick. Used to map dynamic content to the brick's props. Can only be used if the brick is a child of a 'dynamic' brick. One can only reference the fields from the database that is specified in the dynamic brick.","ui:field":"hidden",examples:[{"$.property1":"$.databaseField1","$.property2":"$.databaseField2.subField1","$.property3.subProp1":"$.databaseField3","$.property3.subProp3":"$.databaseField4.subField2"}],additionalProperties:!0}))},{$id:"brick",additionalProperties:!0}),h=t.Object({colorPreset:t.Optional(m({title:"Color"})),direction:t.Optional(u({default:"flex-row",title:"Direction",description:"The direction of the section. Only apply to desktop. On mobile, it is always vertical.","ui:responsive":"desktop"})),minHeight:t.Optional(s({title:"Min height",default:"fit-content",description:"The min height of the section","ui:field":"hidden"})),variant:t.Optional(n(["navbar","footer","sidebar"],{title:"Custom section variant",description:"Used for custom styling and layout.",enumNames:["Navbar","Footer","Sidebar"],"ui:field":"hidden"})),maxWidth:t.Optional(f("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only",displayAs:"button-group","ui:responsive":"desktop"})),justifyContent:t.Optional(l({default:"justify-center"})),alignItems:t.Optional(c({default:"items-center",description:"The vertical alignment of bricks within the section."})),padding:t.Optional(d({default:"p-4",description:"The padding of the section.","ui:responsive":!0,"default:mobile":"p-3"})),gap:t.Optional(s({title:"Gap",description:"The gap between the bricks in the section.",default:"20px","ui:styleId":"styles:gap"})),lastTouched:t.Optional(t.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden","ai:hidden":!0}))},{additionalProperties:!0,"ai:instructions":"Do not use the border prop"}),b=t.Object({id:t.String({description:"The unique ID of the section. Use a human readable url-safe slug"}),label:t.Optional(t.String({description:"The label (name) of the section. Used for editor purposes only."})),order:t.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:h,mobileProps:t.Optional(t.Partial(h,{additionalProperties:!1})),bricks:t.Array(S)},{$id:"section",description:"Sections are direct children of the page that are stacked vertically, but they always align their children horizontally (flex-row)."}),P=p(b.properties.props,"desktop"),T=p(b.properties.mobileProps,"mobile");function U(e){return e.map(i=>({...i,props:r({},P,i.props),mobileProps:r({},T,i.mobileProps||{}),bricks:i.bricks.map(y).filter(Boolean)}))}function y(e){let i=o[e.type];return i?{...e,props:r({},i.props,{...e.props,...e.props.$children?{$children:e.props.$children.map(y).filter(Boolean)}:{}})}:(console.warn(`No default props found for brick type: ${e.type}`),!1)}function X(e,i=!1){let a={...o[e].props,ghost:i};return{id:`b-${k()}`,type:e,props:a}}export{k as a,O as b,S as c,h as d,b as e,U as f,y as g,X as h};
3
+ import{a as f}from"./chunk-L42YBY5I.js";import{b as o}from"./chunk-AQPN5SE2.js";import{a as r}from"./chunk-MPBYGS6W.js";import{b as u}from"./chunk-CT3EI7YN.js";import{b as d}from"./chunk-6WCGUAQN.js";import{e as m}from"./chunk-VZPXXFVX.js";import{c as s}from"./chunk-2IYSJYNE.js";import{b as l,d as c}from"./chunk-E22E4XWE.js";import{a as n}from"./chunk-SFKZAUPW.js";import{b as p}from"./chunk-I46VBMLF.js";import{Type as t}from"@sinclair/typebox";import{customAlphabet as g}from"nanoid";var k=g("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),N=t.Object({left:t.Optional(t.String({title:"top",description:"The left position in css unit."})),top:t.Optional(t.String({title:"top",description:"The top position in css unit."})),right:t.Optional(t.String({title:"right",description:"The right position in css unit."})),bottom:t.Optional(t.String({title:"bottom",description:"The bottom position in css unit."})),inset:t.Optional(t.String({title:"inset",description:"The inset position in css unit."})),translateX:t.Optional(t.String({title:"translateX",description:"The translateX position in css unit."})),translateY:t.Optional(t.String({title:"translateY",description:"The translateY position in css unit."})),rotate:t.Optional(t.String({title:"rotate",description:"The rotate position in css unit."}))}),O=n(Object.keys(o),{title:"Brick type"}),S=t.Object({id:t.String({title:"ID",description:"A unique identifier for the brick."}),type:O,props:t.Any({title:"Props",description:"The static props of the brick. The available props depends on the brick type."}),mobileProps:t.Optional(t.Any({title:"Props",description:"The overriden props for mobile, merged with desktop props."})),propsMapping:t.Optional(t.Object({},{description:"Dynamic props mapping for the brick. Used to map dynamic content to the brick's props. Can only be used if the brick is a child of a 'dynamic' brick. One can only reference the fields from the database that is specified in the dynamic brick.","ui:field":"hidden",examples:[{"$.property1":"$.databaseField1","$.property2":"$.databaseField2.subField1","$.property3.subProp1":"$.databaseField3","$.property3.subProp3":"$.databaseField4.subField2"}],additionalProperties:!0}))},{$id:"brick",additionalProperties:!0}),h=t.Object({colorPreset:t.Optional(m({title:"Color"})),direction:t.Optional(u({default:"flex-row",title:"Direction",description:"The direction of the section. Only apply to desktop. On mobile, it is always vertical.","ui:responsive":"desktop"})),minHeight:t.Optional(s({title:"Min height",default:"fit-content",description:"The min height of the section","ui:field":"hidden"})),variant:t.Optional(n(["navbar","footer","sidebar"],{title:"Custom section variant",description:"Used for custom styling and layout.",enumNames:["Navbar","Footer","Sidebar"],"ui:field":"hidden"})),maxWidth:t.Optional(f("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only",displayAs:"button-group","ui:responsive":"desktop"})),justifyContent:t.Optional(l({default:"justify-center"})),alignItems:t.Optional(c({default:"items-center",description:"The vertical alignment of bricks within the section."})),padding:t.Optional(d({default:"p-4",description:"The padding of the section.","ui:responsive":!0,"default:mobile":"p-3"})),gap:t.Optional(s({title:"Gap",description:"The gap between the bricks in the section.",default:"20px","ui:styleId":"styles:gap"})),lastTouched:t.Optional(t.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden","ai:hidden":!0}))},{additionalProperties:!0,"ai:instructions":"Do not use the border prop"}),b=t.Object({id:t.String({description:"The unique ID of the section. Use a human readable url-safe slug"}),label:t.Optional(t.String({description:"The label (name) of the section. Used for editor purposes only."})),order:t.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:h,mobileProps:t.Optional(t.Partial(h,{additionalProperties:!1})),bricks:t.Array(S)},{$id:"section",description:"Sections are direct children of the page that are stacked vertically, but they always align their children horizontally (flex-row)."}),P=p(b.properties.props,"desktop"),T=p(b.properties.mobileProps,"mobile");function U(e){return e.map(i=>({...i,props:r({},P,i.props),mobileProps:r({},T,i.mobileProps||{}),bricks:i.bricks.map(y).filter(Boolean)}))}function y(e){let i=o[e.type];return i?{...e,props:r({},i.props,{...e.props,...e.props.$children?{$children:e.props.$children.map(y).filter(Boolean)}:{}})}:(console.warn(`No default props found for brick type: ${e.type}`),!1)}function X(e,i=!1){let a={...o[e].props,ghost:i};return{id:`b-${k()}`,type:e,props:a}}export{k as a,O as b,S as c,h as d,b as e,U as f,y as g,X as h};
@@ -0,0 +1,4 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a as f}from"./chunk-MKIXZXWS.js";import{b as l}from"./chunk-CT3EI7YN.js";import{b as a}from"./chunk-6WCGUAQN.js";import{b as r}from"./chunk-C3VGP4CA.js";import{b as i,d as o}from"./chunk-ACVLF55Q.js";import{a as d,c as p}from"./chunk-UU2MSQXY.js";import{a as n}from"./chunk-T3LIA4YB.js";import{e as s}from"./chunk-VZPXXFVX.js";import{a as e}from"./chunk-SFKZAUPW.js";import{a as c}from"./chunk-VGRYSAXA.js";import{Type as t}from"@sinclair/typebox";import{FaWpforms as u}from"react-icons/fa6";var M=c({type:"form",name:"Form",description:"A form element",aiInstructions:`The form brick automatically renders form fields based on the datarecord id provided in the props.
4
+ There is no need to define the form fields manually and the form does not accept any children`,isContainer:!1,icon:u,minWidth:{desktop:300},props:p({datarecordId:f("Datarecord ID",{description:"The ID of the datarecord to use to generate the form fields","ui:responsive":"desktop"}),colorPreset:t.Optional(s({title:"Color",default:"base-200"})),direction:t.Optional(l({title:"Direction",description:"The direction of the form fields",default:"flex-col","ui:responsive":"desktop","ui:desktop-only":!0})),padding:t.Optional(a({default:"p-4"})),rounding:t.Optional(o({default:"rounded-md"})),border:t.Optional(i({})),fontSize:t.Optional(r({default:"inherit","ui:no-extra-large-sizes":!0})),button:d({title:"Button",children:{color:t.Optional(t.Union([t.Literal("btn-neutral",{title:"Neutral"}),t.Literal("btn-primary",{title:"Primary"}),t.Literal("btn-secondary",{title:"Secondary"}),t.Literal("btn-accent",{title:"Accent"})],{title:"Color",default:"btn-primary"})),size:t.Optional(e(["block","wide"],{title:"Size",description:"Button sizes.",enumNames:["Block","Wide"],default:"block","ui:responsive":"desktop"})),position:t.Optional(e(["justify-start","justify-center","justify-end"],{title:"Button Position",description:"The position of the button in the form",enumNames:["Left","Center","Right"],default:"justify-end","ui:responsive":"desktop",metadata:{filter:(b,m)=>m.button?.size!=="wide"}})),rounding:t.Optional(o({default:"rounded-md"}))}}),title:t.Optional(t.String({title:"Form title",default:"My form",metadata:{category:"content"}})),intro:t.Optional(t.String({title:"Intro",description:"The intro text of the form","ui:multiline":!0,metadata:{category:"content"}})),buttonLabel:t.Optional(n("Button Label",{default:"Submit",metadata:{category:"content"}})),successMessage:t.Optional(t.String({title:"Success Message",description:"The message to display when the form is successfully submitted",default:"Thank you for your submission!",metadata:{category:"content"}})),errorMessage:t.Optional(t.String({title:"Error Message",description:"The message to display when the form submission fails",default:"There was an error submitting the form. Please try again later.",metadata:{category:"content"}}))})}),P=[{description:"Basic contact form",type:"form",props:{title:"Contact Us",intro:"We'd love to hear from you. Send us a message and we'll respond as soon as possible.",direction:"flex-row",datarecordId:"contacts",buttonLabel:"Send Message",button:{size:"block"}}},{description:"User registration form with large button",type:"form",props:{title:"Create Account",intro:"Join our platform and start your journey today.",direction:"flex-row",datarecordId:"user-registration",buttonLabel:"Register",button:{size:"wide"}}},{description:"Newsletter subscription form (horizontal)",type:"form",props:{title:"Stay Updated",intro:"Subscribe to our newsletter for the latest updates and exclusive content.",direction:"flex-col",datarecordId:"newsletter-subscription",buttonLabel:"Subscribe",button:{size:"block"}}},{description:"Event registration form",type:"form",props:{title:"Conference Registration",intro:"Register for the Annual Tech Conference 2025. Early bird pricing ends soon!",direction:"flex-col",datarecordId:"event-registration",buttonLabel:"Register Now",button:{size:"block"}}},{description:"Job application form",type:"form",props:{title:"Apply for Position",intro:"We're excited to learn more about you! Please fill out this application form completely.",direction:"flex-col",datarecordId:"job-application",buttonLabel:"Submit Application",button:{size:"block"}}}];export{M as a,P as b};
@@ -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 t}from"./chunk-EYPREFMH.js";import{e as a}from"./chunk-O3ILJEK4.js";import{Type as e}from"@sinclair/typebox";var s=e.Object({id:e.String({description:"The unique ID of the page. Use a human readable url-safe slug"}),label:e.String({description:"The label (name) of the page"}),path:e.String({description:"The path of the page in the URL. Should be unique"}),sections:e.Array(a,{description:"The sections of the page. See the Section schema"}),tags:e.Array(e.String(),{description:"The tags of the page, used for organizating and filtering pages"}),attributes:t});export{s as a};
3
+ import{a as t}from"./chunk-EYPREFMH.js";import{e as a}from"./chunk-NLEWXPVM.js";import{Type as e}from"@sinclair/typebox";var s=e.Object({id:e.String({description:"The unique ID of the page. Use a human readable url-safe slug"}),label:e.String({description:"The label (name) of the page"}),path:e.String({description:"The path of the page in the URL. Should be unique"}),sections:e.Array(a,{description:"The sections of the page. See the Section schema"}),tags:e.Array(e.String(),{description:"The tags of the page, used for organizating and filtering pages"}),attributes:t});export{s as a};
@@ -0,0 +1,21 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare const airtableTable: import("@sinclair/typebox").TObject<{
3
+ id: import("@sinclair/typebox").TString;
4
+ name: import("@sinclair/typebox").TString;
5
+ primaryFieldId: import("@sinclair/typebox").TString;
6
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
+ }>;
8
+ export type AirtableTable = Static<typeof airtableTable>;
9
+ export declare const airtableBase: import("@sinclair/typebox").TObject<{
10
+ id: import("@sinclair/typebox").TString;
11
+ name: import("@sinclair/typebox").TString;
12
+ permissionLevel: import("@sinclair/typebox").TString;
13
+ tables: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
14
+ id: import("@sinclair/typebox").TString;
15
+ name: import("@sinclair/typebox").TString;
16
+ primaryFieldId: import("@sinclair/typebox").TString;
17
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
+ }>>;
19
+ }>;
20
+ export type AirtableBase = Static<typeof airtableBase>;
21
+ //# sourceMappingURL=elements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/airtable/elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,aAAa;;;;;EAKxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,YAAY;;;;;;;;;;EAKvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -4,5 +4,5 @@ import type { AirtableOptions } from "./options";
4
4
  *
5
5
  * @todo test this function in a real environment
6
6
  */
7
- export default function airtableHandler(formData: FormData, options: AirtableOptions): Promise<boolean>;
7
+ export default function airtableHandler(formData: FormData, options: AirtableOptions, accessToken: string): Promise<boolean>;
8
8
  //# sourceMappingURL=handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/airtable/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD;;;;GAIG;AACH,wBAA8B,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,oBAazF"}
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/airtable/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD;;;;GAIG;AACH,wBAA8B,eAAe,CAC3C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,MAAM,oBAcpB"}
@@ -0,0 +1,11 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare const airtableOAuthTokenSchema: import("@sinclair/typebox").TObject<{
3
+ scope: import("@sinclair/typebox").TString;
4
+ token_type: import("@sinclair/typebox").TString;
5
+ expires_in: import("@sinclair/typebox").TNumber;
6
+ access_token: import("@sinclair/typebox").TString;
7
+ refresh_token: import("@sinclair/typebox").TString;
8
+ refresh_expires_in: import("@sinclair/typebox").TNumber;
9
+ }>;
10
+ export type AirtableOAuthToken = Static<typeof airtableOAuthTokenSchema>;
11
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datarecords/external/airtable/oauth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { type Static } from "@sinclair/typebox";
2
2
  export declare const airtableOptions: import("@sinclair/typebox").TObject<{
3
- accessToken: import("@sinclair/typebox").TString;
3
+ externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
4
  baseId: import("@sinclair/typebox").TString;
5
- tableIdOrName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
5
+ baseName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ tableId: import("@sinclair/typebox").TString;
7
+ tableName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
8
  }>;
7
9
  export type AirtableOptions = Static<typeof airtableOptions>;
8
10
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/airtable/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,eAAe;;;;EAiB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/airtable/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,eAAe;;;;;;EAoB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { type Static } from "@sinclair/typebox";
2
2
  export declare const googleSheetsOptions: import("@sinclair/typebox").TObject<{
3
3
  spreadsheetId: import("@sinclair/typebox").TString;
4
- sheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
+ spreadsheetUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ spreadsheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
7
  }>;
6
8
  export type GoogleSheetsOptions = Static<typeof googleSheetsOptions>;
7
9
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datarecords/external/google/sheets/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;EAI9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datarecords/external/google/sheets/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare const notionOAuthTokenSchema: import("@sinclair/typebox").TObject<{
3
+ access_token: import("@sinclair/typebox").TString;
4
+ refresh_token: import("@sinclair/typebox").TString;
5
+ }>;
6
+ export type NotionOAuthToken = Static<typeof notionOAuthTokenSchema>;
7
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datarecords/external/notion/oauth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,sBAAsB;;;EAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare const notionOptions: import("@sinclair/typebox").TObject<{
3
+ url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
+ id: import("@sinclair/typebox").TString;
5
+ name: import("@sinclair/typebox").TString;
6
+ properties: import("@sinclair/typebox").TAny;
7
+ }>;
8
+ export type NotionOptions = Static<typeof notionOptions>;
9
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/notion/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,aAAa;;;;;EAUxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -4,16 +4,29 @@ export type DatarecordConnector = Static<typeof connectorSchema>;
4
4
  export declare const datarecordsConnectors: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
5
5
  provider: import("@sinclair/typebox").TLiteral<"airtable">;
6
6
  options: import("@sinclair/typebox").TObject<{
7
- accessToken: import("@sinclair/typebox").TString;
7
+ externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
8
  baseId: import("@sinclair/typebox").TString;
9
- tableIdOrName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
9
+ baseName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ tableId: import("@sinclair/typebox").TString;
11
+ tableName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
12
  }>;
11
13
  schema: import("@sinclair/typebox").TAny;
12
14
  }>, import("@sinclair/typebox").TObject<{
13
15
  provider: import("@sinclair/typebox").TLiteral<"google-sheets">;
14
16
  options: import("@sinclair/typebox").TObject<{
15
17
  spreadsheetId: import("@sinclair/typebox").TString;
16
- sheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
+ spreadsheetUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
+ spreadsheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
+ }>;
22
+ schema: import("@sinclair/typebox").TAny;
23
+ }>, import("@sinclair/typebox").TObject<{
24
+ provider: import("@sinclair/typebox").TLiteral<"notion">;
25
+ options: import("@sinclair/typebox").TObject<{
26
+ url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
27
+ id: import("@sinclair/typebox").TString;
28
+ name: import("@sinclair/typebox").TString;
29
+ properties: import("@sinclair/typebox").TAny;
17
30
  }>;
18
31
  schema: import("@sinclair/typebox").TAny;
19
32
  }>, import("@sinclair/typebox").TObject<{
@@ -33,8 +46,8 @@ export declare const datarecordsConnectors: import("@sinclair/typebox").TUnion<[
33
46
  }>>;
34
47
  }>]>;
35
48
  declare const datarecordManifest: import("@sinclair/typebox").TObject<{
36
- 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">]>;
37
- schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
49
+ provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"notion">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
50
+ schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
38
51
  id: import("@sinclair/typebox").TString;
39
52
  label: import("@sinclair/typebox").TString;
40
53
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -53,8 +66,8 @@ export declare const internalDatarecordManifest: import("@sinclair/typebox").TOb
53
66
  }>;
54
67
  export type Datarecord = Static<typeof datarecordManifest>;
55
68
  export declare const datarecordsList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
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
- schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
69
+ provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"notion">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
70
+ schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
58
71
  id: import("@sinclair/typebox").TString;
59
72
  label: import("@sinclair/typebox").TString;
60
73
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -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,0SAO1B,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
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datarecords/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMtD,eAAO,MAAM,eAAe,0SAO1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAmFjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8BhC,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-WAV35LMH.js";export{a as connectorSchema,b as datarecordsConnectors,d as datarecordsList,c as internalDatarecordManifest};
3
+ import{a,b,c,d}from"../chunk-6K3KZDFC.js";export{a as connectorSchema,b as datarecordsConnectors,d as datarecordsList,c as internalDatarecordManifest};
@@ -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-27E2MKTU.js";import"./chunk-EYPREFMH.js";import"./chunk-TATG6SFZ.js";import"./chunk-O3ILJEK4.js";import"./chunk-L42YBY5I.js";import"./chunk-YP2VDRSF.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-6E4DU2E7.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-SDASH4F4.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{a as pageSchema};
3
+ import{a}from"./chunk-VTBI7WX3.js";import"./chunk-EYPREFMH.js";import"./chunk-TATG6SFZ.js";import"./chunk-NLEWXPVM.js";import"./chunk-L42YBY5I.js";import"./chunk-AQPN5SE2.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-SLRU4CT6.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-IIFTGWFZ.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{a as pageSchema};
@@ -120,8 +120,8 @@ export declare const siteSchema: import("@sinclair/typebox").TObject<{
120
120
  }>>;
121
121
  }>]>>;
122
122
  datarecords: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
123
- 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">]>;
124
- schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
123
+ provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"notion">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
124
+ schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
125
125
  id: import("@sinclair/typebox").TString;
126
126
  label: import("@sinclair/typebox").TString;
127
127
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -214,10 +214,8 @@ export declare const siteSchema: import("@sinclair/typebox").TObject<{
214
214
  }>>;
215
215
  sitePrompt: import("@sinclair/typebox").TString;
216
216
  }>;
217
- /**
218
- * Site config has always attributes and attr.
219
- */
220
217
  export type Site = Static<typeof siteSchema>;
218
+ export type PublicSite = Omit<Site, "sitePrompt">;
221
219
  declare const siteAndPagesSchema: import("@sinclair/typebox").TObject<{
222
220
  site: import("@sinclair/typebox").TObject<{
223
221
  id: import("@sinclair/typebox").TString;
@@ -340,8 +338,8 @@ declare const siteAndPagesSchema: import("@sinclair/typebox").TObject<{
340
338
  }>>;
341
339
  }>]>>;
342
340
  datarecords: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
343
- 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">]>;
344
- schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
341
+ provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"generic-webhook">, import("@sinclair/typebox").TLiteral<"notion">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
342
+ schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
345
343
  id: import("@sinclair/typebox").TString;
346
344
  label: import("@sinclair/typebox").TString;
347
345
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -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;AAUtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE7C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAmwCxE"}
1
+ {"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAUtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAElD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAmwCxE"}
@@ -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{d as m}from"./chunk-UA4XNW27.js";import{b as o,d as c}from"./chunk-HHO3ONTQ.js";import{d}from"./chunk-WAV35LMH.js";import{a as n}from"./chunk-27E2MKTU.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{b as s,c as a,d as l}from"./chunk-EYPREFMH.js";import"./chunk-TATG6SFZ.js";import{a as t}from"./chunk-O3ILJEK4.js";import"./chunk-L42YBY5I.js";import"./chunk-YP2VDRSF.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-6E4DU2E7.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-SDASH4F4.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import{c as r}from"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";import{Type as i}from"@sinclair/typebox";var b=i.Object({id:i.String(),label:i.String(),hostname:i.String(),attributes:s,datasources:r,datarecords:d,themes:i.Array(o),theme:o,sitemap:m,sitePrompt:p}),v=i.Object({site:b,pages:i.Array(n)});function w(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:l(),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",label:"Company employees",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"Id",format:"nanoid"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",format:"slug",title:"Slug"},avatarUrl:{title:"Avatar URL",type:"string",format:"uri",default:"https://placehold.co/100x100"},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"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","email","$id","$slug","$publicationDate","$lastModificationDate"]},examples:[{$id:"example-1",$publicationDate:"2023-01-01T00:00:00Z",$lastModificationDate:"2023-01-01T00:00:00Z",$slug:"john-doe",firstName:"John",lastName:"Doe",email:"john.doe@example.com",avatarUrl:"https://placehold.co/100x100",height:180,admin:!1,startedOn:"2020-01-01",tags:["developer","javascript"]},{$id:"example-2",$publicationDate:"2023-01-02T00:00:00Z",$lastModificationDate:"2023-01-02T00:00:00Z",$slug:"jane-smith",firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",avatarUrl:"https://placehold.co/100x100",height:165,admin:!1,startedOn:"2020-01-01",tags:["designer","figma"]},{$id:"example-3",$publicationDate:"2023-01-03T00:00:00Z",$lastModificationDate:"2023-01-03T00:00:00Z",$slug:"alice-johnson",firstName:"Alice",lastName:"Johnson",email:"alice.johnson@example.com",avatarUrl:"https://placehold.co/100x100",height:170,admin:!1,startedOn:"2020-01-01",tags:["developer","react"]},{$id:"example-4",$publicationDate:"2023-01-04T00:00:00Z",$lastModificationDate:"2023-01-04T00:00:00Z",$slug:"bob-brown",firstName:"Bob",lastName:"Brown",email:"bob.brown@example.com",avatarUrl:"https://placehold.co/100x100",height:175,admin:!1,startedOn:"2020-01-01",tags:["developer","vue"]},{$id:"example-5",$publicationDate:"2023-01-05T00:00:00Z",$lastModificationDate:"2023-01-05T00:00:00Z",$slug:"charlie-white",firstName:"Charlie",lastName:"White",email:"charlie.white@example.com",avatarUrl:"https://placehold.co/100x100",height:160,admin:!1,startedOn:"2020-01-01",tags:["designer","figma"]}]},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["email"],name:"idx_unique_email"},{fields:["admin"],name:"idx_unique_admin"},{fields:["startedOn"],name:"idx_unique_startedOn"},{fields:["tags"],name:"idx_unique_tags"}]},{id:"employees2",label:"Company employees 2",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"ID"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",title:"Slug"},firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","$id","$slug","$publicationDate","$lastModificationDate"]}},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["lastName"],name:"idx_unique_lastName"},{fields:["tags"],name:"idx_unique_tags"}]}]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/blog/:slug",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{variant:"navbar"},bricks:[{id:t(),type:"navbar",props:{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"},height:"200px"}},{id:t(),type:"icon",props:{icon:"mdi:heart"}}]},{id:`s_${t()}`,order:++e,label:"Containers",props:{},bricks:[{id:t(),type:"box",props:{loop:{over:"allEmployees"},direction:"flex-row",$children:[{id:t(),type:"button",props:{label:"Button #1"}},{id:t(),type:"button",props:{label:"Button #2"}},{id:t(),type:"button",props:{label:"Button #3"}},{id:t(),type:"button",props:{label:"Button #4"}}]}},{id:t(),type:"box",props:{direction:"flex-col",datasource:{id:"employees"},$children:[{id:t(),type:"text",props:{content:"Hello this is the first text in the dynamic box.<br />I'm on a new line explicitly.<br />I'm the third line and I'm the longest of them all! Yeah!"}},{id:t(),type:"button",props:{label:"Button #1 in dynamic box with a {{$slug}}"}},{id:t(),type:"button",props:{label:"Small label"}},{id:t(),type:"button",props:{label:"Button #3 with the largest label"}}]}}]},{id:`s_${t()}`,order:++e,label:"Dynamic",bricks:[{type:"box",props:{alignSelf:"self-auto",datasource:{},$children:[]},id:t()}],props:{}},{id:`s_${t()}`,order:++e,label:"Section 8",bricks:[{type:"form",props:{alignSelf:"self-auto",color:"base100",align:"vertical",padding:"p-4",fontSize:"inherit",button:{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:[{id:t(),type:"box",props:{alignSelf:"self-auto",datasource:{id:"employees2"},$children:[{id:t(),type:"testimonials",props:{testimonials:{author:"{{firstName}} {{lastName}}",text:"{{testimonial}}",socialIcon:"{{icon}}",company:"{{company}}"}}}]}},{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:"hey ho!",justifyContent:"justify-center",type:"button",height:"42px"},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"}}},{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"}},{id:`b_${t()}`,type:"card",props:{title:"Welcome to My Site",text:"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:a({path:"/blog/:slug",queries:[{queryId:"get-employee",alias:"employee",params:[{field:"$id",op:"eq",value:":slug"}]},{queryId:"get-employees",alias:"allEmployees"}]})},{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:{variant:"navbar"},bricks:[{id:t(),type:"navbar",props:{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"},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",borderRadius:"rounded-lg"}}}]},{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:{title:"Welcome to My Site",text:"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:{direction:"flex-row"},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()}]}}export{w as createEmptyConfig,b as siteSchema};
3
+ import{d as m}from"./chunk-C2S243PB.js";import{b as o,d as c}from"./chunk-HHO3ONTQ.js";import{d}from"./chunk-6K3KZDFC.js";import{a as n}from"./chunk-VTBI7WX3.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{b as s,c as a,d as l}from"./chunk-EYPREFMH.js";import"./chunk-TATG6SFZ.js";import{a as t}from"./chunk-NLEWXPVM.js";import"./chunk-L42YBY5I.js";import"./chunk-AQPN5SE2.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-SLRU4CT6.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-IIFTGWFZ.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import{c as r}from"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";import{Type as i}from"@sinclair/typebox";var b=i.Object({id:i.String(),label:i.String(),hostname:i.String(),attributes:s,datasources:r,datarecords:d,themes:i.Array(o),theme:o,sitemap:m,sitePrompt:p}),v=i.Object({site:b,pages:i.Array(n)});function w(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:l(),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",label:"Company employees",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"Id",format:"nanoid"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",format:"slug",title:"Slug"},avatarUrl:{title:"Avatar URL",type:"string",format:"uri",default:"https://placehold.co/100x100"},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"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","email","$id","$slug","$publicationDate","$lastModificationDate"]},examples:[{$id:"example-1",$publicationDate:"2023-01-01T00:00:00Z",$lastModificationDate:"2023-01-01T00:00:00Z",$slug:"john-doe",firstName:"John",lastName:"Doe",email:"john.doe@example.com",avatarUrl:"https://placehold.co/100x100",height:180,admin:!1,startedOn:"2020-01-01",tags:["developer","javascript"]},{$id:"example-2",$publicationDate:"2023-01-02T00:00:00Z",$lastModificationDate:"2023-01-02T00:00:00Z",$slug:"jane-smith",firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",avatarUrl:"https://placehold.co/100x100",height:165,admin:!1,startedOn:"2020-01-01",tags:["designer","figma"]},{$id:"example-3",$publicationDate:"2023-01-03T00:00:00Z",$lastModificationDate:"2023-01-03T00:00:00Z",$slug:"alice-johnson",firstName:"Alice",lastName:"Johnson",email:"alice.johnson@example.com",avatarUrl:"https://placehold.co/100x100",height:170,admin:!1,startedOn:"2020-01-01",tags:["developer","react"]},{$id:"example-4",$publicationDate:"2023-01-04T00:00:00Z",$lastModificationDate:"2023-01-04T00:00:00Z",$slug:"bob-brown",firstName:"Bob",lastName:"Brown",email:"bob.brown@example.com",avatarUrl:"https://placehold.co/100x100",height:175,admin:!1,startedOn:"2020-01-01",tags:["developer","vue"]},{$id:"example-5",$publicationDate:"2023-01-05T00:00:00Z",$lastModificationDate:"2023-01-05T00:00:00Z",$slug:"charlie-white",firstName:"Charlie",lastName:"White",email:"charlie.white@example.com",avatarUrl:"https://placehold.co/100x100",height:160,admin:!1,startedOn:"2020-01-01",tags:["designer","figma"]}]},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["email"],name:"idx_unique_email"},{fields:["admin"],name:"idx_unique_admin"},{fields:["startedOn"],name:"idx_unique_startedOn"},{fields:["tags"],name:"idx_unique_tags"}]},{id:"employees2",label:"Company employees 2",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"ID"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",title:"Slug"},firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","$id","$slug","$publicationDate","$lastModificationDate"]}},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["lastName"],name:"idx_unique_lastName"},{fields:["tags"],name:"idx_unique_tags"}]}]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/blog/:slug",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{variant:"navbar"},bricks:[{id:t(),type:"navbar",props:{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"},height:"200px"}},{id:t(),type:"icon",props:{icon:"mdi:heart"}}]},{id:`s_${t()}`,order:++e,label:"Containers",props:{},bricks:[{id:t(),type:"box",props:{loop:{over:"allEmployees"},direction:"flex-row",$children:[{id:t(),type:"button",props:{label:"Button #1"}},{id:t(),type:"button",props:{label:"Button #2"}},{id:t(),type:"button",props:{label:"Button #3"}},{id:t(),type:"button",props:{label:"Button #4"}}]}},{id:t(),type:"box",props:{direction:"flex-col",datasource:{id:"employees"},$children:[{id:t(),type:"text",props:{content:"Hello this is the first text in the dynamic box.<br />I'm on a new line explicitly.<br />I'm the third line and I'm the longest of them all! Yeah!"}},{id:t(),type:"button",props:{label:"Button #1 in dynamic box with a {{$slug}}"}},{id:t(),type:"button",props:{label:"Small label"}},{id:t(),type:"button",props:{label:"Button #3 with the largest label"}}]}}]},{id:`s_${t()}`,order:++e,label:"Dynamic",bricks:[{type:"box",props:{alignSelf:"self-auto",datasource:{},$children:[]},id:t()}],props:{}},{id:`s_${t()}`,order:++e,label:"Section 8",bricks:[{type:"form",props:{alignSelf:"self-auto",color:"base100",align:"vertical",padding:"p-4",fontSize:"inherit",button:{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:[{id:t(),type:"box",props:{alignSelf:"self-auto",datasource:{id:"employees2"},$children:[{id:t(),type:"testimonials",props:{testimonials:{author:"{{firstName}} {{lastName}}",text:"{{testimonial}}",socialIcon:"{{icon}}",company:"{{company}}"}}}]}},{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:"hey ho!",justifyContent:"justify-center",type:"button",height:"42px"},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"}}},{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"}},{id:`b_${t()}`,type:"card",props:{title:"Welcome to My Site",text:"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:a({path:"/blog/:slug",queries:[{queryId:"get-employee",alias:"employee",params:[{field:"$id",op:"eq",value:":slug"}]},{queryId:"get-employees",alias:"allEmployees"}]})},{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:{variant:"navbar"},bricks:[{id:t(),type:"navbar",props:{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"},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",borderRadius:"rounded-lg"}}}]},{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:{title:"Welcome to My Site",text:"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:{direction:"flex-row"},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()}]}}export{w 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,b,c,d}from"./chunk-UA4XNW27.js";import"./chunk-27E2MKTU.js";import"./chunk-EYPREFMH.js";import"./chunk-TATG6SFZ.js";import"./chunk-O3ILJEK4.js";import"./chunk-L42YBY5I.js";import"./chunk-YP2VDRSF.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-6E4DU2E7.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-SDASH4F4.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{a as pageInfoSchema,b as sectionsPlanSchema,c as sitemapEntry,d as sitemapSchema};
3
+ import{a,b,c,d}from"./chunk-C2S243PB.js";import"./chunk-VTBI7WX3.js";import"./chunk-EYPREFMH.js";import"./chunk-TATG6SFZ.js";import"./chunk-NLEWXPVM.js";import"./chunk-L42YBY5I.js";import"./chunk-AQPN5SE2.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-FKNNTHWX.js";import"./chunk-JS4K5JRM.js";import"./chunk-WU6Q4WYD.js";import"./chunk-QISTDGPP.js";import"./chunk-LFQZRGHS.js";import"./chunk-SLRU4CT6.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-LGP6GWIY.js";import"./chunk-X43MB5WD.js";import"./chunk-NNI225RG.js";import"./chunk-ZQGNYK5I.js";import"./chunk-KHFNN4P3.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-IIFTGWFZ.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-YBGPPF7T.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-5N6MBJJ4.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{a as pageInfoSchema,b as sectionsPlanSchema,c as sitemapEntry,d as sitemapSchema};
@@ -1 +1 @@
1
- {"version":3,"file":"color-system.d.ts","sourceRoot":"","sources":["../../../src/shared/themes/color-system.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC;AAI9C,MAAM,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE/F,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAQhD,CAAC;AAEF,eAAO,MAAM,YAAY,4DAA6D,CAAC;AASvF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,WAEjF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYvD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,sBAM7E;AAED,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,EACtC,iBAAiB,SAAM,GACtB,MAAM,CA8BR;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,sBAKlF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,0BA0C9C"}
1
+ {"version":3,"file":"color-system.d.ts","sourceRoot":"","sources":["../../../src/shared/themes/color-system.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC;AAI9C,MAAM,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE/F,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAQhD,CAAC;AAEF,eAAO,MAAM,YAAY,4DAA6D,CAAC;AASvF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,WAEjF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYvD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,sBAM7E;AAED,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,EACtC,iBAAiB,SAAM,GACtB,MAAM,CA8BR;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,sBAKlF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,0BAgD9C"}
@@ -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 c from"chroma-js";import{default as A}from"chroma-js";import{kebabCase as y}from"lodash-es";import{css as C}from"@upstart.gg/style-system/twind";var k={primary:"Primary color",secondary:"Secondary color",accent:"Accent color",neutral:"Neutral color",base100:"Base color",base200:"Base (level 2)",base300:"Base (level 3)"},x=[900,800,700,600,500,400,300,200,100,50],l={100:"subtle",300:"light",700:"dark"};function T(t,o){return[]}function p(t){return typeof t!="string"?!1:t.startsWith("oklch")||t.startsWith("oklab")||t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("#")||t.startsWith("var(--")}function S(t,o){if(!(typeof t>"u"))return p(t)||typeof t=="number"?C({[o]:t}):t}function b(t,o=3.5){let i=c(t),n="#ffffff",r="#000000",e=c.contrast(i,n),a=c.contrast(i,r);return e>=o&&a>=o||e>=o?n:a>=o?r:e>=a?n:r}function B(t,o){if(!(typeof t>"u"))return p(t)||typeof t=="number"?`${o}-[${t}]`:t}function E(t){let o={};return Object.keys(k).forEach(n=>{let r=t.colors[n],e=y(n);o[`color-${e}`]=r;let a=b(r);o[`color-${e}-content`]=a;let d=c(r).darken(2.5),g=c(r).brighten(3.5),h=c.scale([g,r,d]).domain([50,500,900]).mode("lch");e.startsWith("base")||x.forEach(s=>{let f=`color-${e}-${s}`,u=h(s);o[f]=u.css("oklch");let m=b(u);o[`color-${e}-${s}-content`]=m,l[s]&&(o[`color-${e}-${l[s]}`]=o[f],o[`color-${e}-${l[s]}-content`]=m)})}),o}export{k as baseColors,A as chroma,E as generateColorsVars,T as getColorsSuggestions,b as getContrastingTextColor,p as isStandardColor,B as propToClass,S as propToStyle,x as shadeNumbers};
3
+ import a from"chroma-js";import{default as O}from"chroma-js";import{kebabCase as C}from"lodash-es";import{css as k}from"@upstart.gg/style-system/twind";var x={primary:"Primary color",secondary:"Secondary color",accent:"Accent color",neutral:"Neutral color",base100:"Base color",base200:"Base (level 2)",base300:"Base (level 3)"},$=[900,800,700,600,500,400,300,200,100,50],f={100:"subtle",300:"light",700:"dark"};function S(t,o){return[]}function g(t){return typeof t!="string"?!1:t.startsWith("oklch")||t.startsWith("oklab")||t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("#")||t.startsWith("var(--")}function B(t,o){if(!(typeof t>"u"))return g(t)||typeof t=="number"?k({[o]:t}):t}function p(t,o=3.5){let i=a(t),n="#ffffff",e="#000000",r=a.contrast(i,n),c=a.contrast(i,e);return r>=o&&c>=o||r>=o?n:c>=o?e:r>=c?n:e}function E(t,o){if(!(typeof t>"u"))return g(t)||typeof t=="number"?`${o}-[${t}]`:t}function w(t){let o={};return Object.keys(x).forEach(n=>{let e=t.colors[n],r=C(n);o[`color-${r}`]=e,o[`color-${r}-500`]=e;let c=p(e);o[`color-${r}-content`]=c,o[`color-${r}-500-content`]=c;let l=a(e),d=l.darken(2.5),h=l.brighten(3.5),y=a.scale([h,l,d]).domain([50,500,900]).mode("oklch");r.startsWith("base")||$.forEach(s=>{if(s===500)return;let u=`color-${r}-${s}`,m=y(s);o[u]=m.css("oklch");let b=p(m);o[`color-${r}-${s}-content`]=b,f[s]&&(o[`color-${r}-${f[s]}`]=o[u],o[`color-${r}-${f[s]}-content`]=b)})}),o}export{x as baseColors,O as chroma,w as generateColorsVars,S as getColorsSuggestions,p as getContrastingTextColor,g as isStandardColor,E as propToClass,B as propToStyle,$ as shadeNumbers};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstart.gg/sdk",
3
- "version": "0.0.127",
3
+ "version": "0.0.129",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -28,37 +28,27 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@date-fns/utc": "1.2.0",
31
- "@inquirer/prompts": "5.3.8",
32
- "@radix-ui/react-context-menu": "2.2.2",
33
- "@radix-ui/react-toggle-group": "1.1.0",
34
- "@radix-ui/themes": "3.1.4",
31
+ "@radix-ui/themes": "3.2.1",
35
32
  "@rowanmanning/feed-parser": "2.1.0",
36
33
  "@sinclair/typebox": "0.33.7",
37
34
  "ajv": "8.17.1",
38
35
  "ajv-formats": "3.0.1",
39
- "chalk": "5.3.0",
40
36
  "chroma-js": "3.1.2",
41
- "commander": "12.1.0",
42
- "conf": "13.0.1",
43
37
  "date-fns": "3.6.0",
44
38
  "debug": "4.3.6",
45
- "fast-glob": "3.3.2",
46
- "form-data": "4.0.0",
39
+ "form-data": "4.0.4",
47
40
  "get-port": "7.1.0",
48
41
  "http-errors-enhanced": "2.0.8",
49
42
  "immer": "10.1.1",
50
43
  "lodash-es": "4.17.21",
51
- "nanoid": "5.0.7",
52
- "open": "10.1.0",
53
- "ora": "8.1.0",
54
- "p-queue": "8.0.1",
44
+ "nanoid": "5.1.5",
55
45
  "react-hotkeys-hook": "4.5.1",
56
46
  "react-icons": "5.5.0",
57
47
  "react-selecto": "1.26.3",
58
48
  "usehooks-ts": "3.1.0",
59
49
  "zundo": "2.3.0",
60
50
  "zustand": "4.5.5",
61
- "@upstart.gg/style-system": "0.0.127"
51
+ "@upstart.gg/style-system": "0.0.129"
62
52
  },
63
53
  "peerDependencies": {
64
54
  "@headlessui/react": "^2.2.1",
@@ -67,7 +57,7 @@
67
57
  },
68
58
  "devDependencies": {
69
59
  "@cloudflare/workers-types": "4.20240806.0",
70
- "@types/chroma-js": "2.4.4",
60
+ "@types/chroma-js": "3.1.1",
71
61
  "@types/cli-progress": "3.11.6",
72
62
  "@types/debug": "4.1.12",
73
63
  "@types/express": "^4.17.21",
@@ -76,17 +66,10 @@
76
66
  "@types/react": "18.3.3",
77
67
  "@types/react-dom": "^18.3.0",
78
68
  "@types/sortablejs": "1.15.8",
79
- "@vitejs/plugin-react": "^5.0.1",
80
69
  "concurrently": "8.2.2",
81
70
  "express": "^4.21.2",
82
71
  "rimraf": "6.0.1",
83
- "tsup": "8.2.4",
84
- "vite": "5.4.6",
85
- "vite-plugin-dts": "4.2.1",
86
- "vite-plugin-image-optimizer": "1.1.8",
87
- "vite-plugin-inspect": "0.8.7",
88
- "vite-plugin-virtual": "0.3.0",
89
- "vite-tsconfig-paths": "5.0.1"
72
+ "tsup": "^8.5.0"
90
73
  },
91
74
  "author": "Matthias Etienne",
92
75
  "publishConfig": {
@@ -1,4 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{a as f}from"./chunk-MKIXZXWS.js";import{b as l}from"./chunk-CT3EI7YN.js";import{b as a}from"./chunk-6WCGUAQN.js";import{b as r}from"./chunk-C3VGP4CA.js";import{b as i,d as o}from"./chunk-ACVLF55Q.js";import{a as d,c as p}from"./chunk-UU2MSQXY.js";import{a as n}from"./chunk-T3LIA4YB.js";import{e as s}from"./chunk-VZPXXFVX.js";import{a as e}from"./chunk-SFKZAUPW.js";import{a as c}from"./chunk-VGRYSAXA.js";import{Type as t}from"@sinclair/typebox";import{FaWpforms as u}from"react-icons/fa6";var M=c({type:"form",name:"Form",description:"A form element",aiInstructions:`The form brick automatically renders form fields based on the datarecord id provided in the props.
4
- There is no need to define the form fields manually and the form does not accept any children`,isContainer:!1,icon:u,minWidth:{desktop:300},props:p({datarecordId:f("Datarecord ID",{description:"The ID of the datarecord to use to generate the form fields","ui:responsive":"desktop"}),colorPreset:t.Optional(s({title:"Color",default:"bg-base-100 text-base-100-content"})),direction:t.Optional(l({title:"Direction",description:"The direction of the form fields",default:"flex-col","ui:responsive":"desktop","ui:desktop-only":!0})),padding:t.Optional(a({default:"p-4"})),rounding:t.Optional(o({default:"rounded-md"})),border:t.Optional(i({})),fontSize:t.Optional(r({default:"inherit","ui:no-extra-large-sizes":!0})),button:d({title:"Button",children:{color:t.Optional(t.Union([t.Literal("btn-neutral",{title:"Neutral"}),t.Literal("btn-primary",{title:"Primary"}),t.Literal("btn-secondary",{title:"Secondary"}),t.Literal("btn-accent",{title:"Accent"})],{title:"Color",default:"btn-primary"})),size:t.Optional(e(["block","wide"],{title:"Size",description:"Button sizes.",enumNames:["Block","Wide"],default:"block","ui:responsive":"desktop"})),position:t.Optional(e(["justify-start","justify-center","justify-end"],{title:"Button Position",description:"The position of the button in the form",enumNames:["Left","Center","Right"],default:"justify-end","ui:responsive":"desktop",metadata:{filter:(b,m)=>m.button?.size!=="wide"}})),rounding:t.Optional(o({default:"rounded-md"}))}}),title:t.Optional(t.String({title:"Form title",default:"My form",metadata:{category:"content"}})),intro:t.Optional(t.String({title:"Intro",description:"The intro text of the form","ui:multiline":!0,metadata:{category:"content"}})),buttonLabel:t.Optional(n("Button Label",{default:"Submit",metadata:{category:"content"}})),successMessage:t.Optional(t.String({title:"Success Message",description:"The message to display when the form is successfully submitted",default:"Thank you for your submission!",metadata:{category:"content"}})),errorMessage:t.Optional(t.String({title:"Error Message",description:"The message to display when the form submission fails",default:"There was an error submitting the form. Please try again later.",metadata:{category:"content"}}))})}),P=[{description:"Basic contact form",type:"form",props:{title:"Contact Us",intro:"We'd love to hear from you. Send us a message and we'll respond as soon as possible.",direction:"flex-row",datarecordId:"contacts",buttonLabel:"Send Message",button:{size:"block"}}},{description:"User registration form with large button",type:"form",props:{title:"Create Account",intro:"Join our platform and start your journey today.",direction:"flex-row",datarecordId:"user-registration",buttonLabel:"Register",button:{size:"wide"}}},{description:"Newsletter subscription form (horizontal)",type:"form",props:{title:"Stay Updated",intro:"Subscribe to our newsletter for the latest updates and exclusive content.",direction:"flex-col",datarecordId:"newsletter-subscription",buttonLabel:"Subscribe",button:{size:"block"}}},{description:"Event registration form",type:"form",props:{title:"Conference Registration",intro:"Register for the Annual Tech Conference 2025. Early bird pricing ends soon!",direction:"flex-col",datarecordId:"event-registration",buttonLabel:"Register Now",button:{size:"block"}}},{description:"Job application form",type:"form",props:{title:"Apply for Position",intro:"We're excited to learn more about you! Please fill out this application form completely.",direction:"flex-col",datarecordId:"job-application",buttonLabel:"Submit Application",button:{size:"block"}}}];export{M as a,P as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{b as r}from"./chunk-T4LMBG2G.js";import{f as e}from"./chunk-C3VGP4CA.js";import{b as i,d as o}from"./chunk-ACVLF55Q.js";import{c as s}from"./chunk-UU2MSQXY.js";import{b as n}from"./chunk-RGLVKILY.js";import{e as p}from"./chunk-YBGPPF7T.js";import{e as a}from"./chunk-VZPXXFVX.js";import{a as d}from"./chunk-VGRYSAXA.js";import{BsCardText as c}from"react-icons/bs";import{Type as t}from"@sinclair/typebox";var k=d({type:"card",name:"Card",description:"A card that can have a title, image, and content",icon:c,defaultWidth:{desktop:"400px",mobile:"100%"},minWidth:{desktop:300},minHeight:{mobile:200,desktop:200},maxWidth:{desktop:650},props:s({colorPreset:t.Optional(a({title:"Color preset",default:{color:"bg-base-100 text-base-content"}})),cardImage:t.Optional(n({"ui:responsive":"desktop",metadata:{category:"content"}})),imagePosition:t.Optional(t.Union([t.Literal("top",{title:"Top"}),t.Literal("middle",{title:"Middle"}),t.Literal("bottom",{title:"Bottom"}),t.Literal("left",{title:"Left"}),t.Literal("right",{title:"Right"})],{title:"Image Position",description:"Where the image should be placed in the card",default:"top","ui:responsive":"desktop",metadata:{category:"content",filter:(m,l)=>!!l.cardImage?.src}})),noTitle:t.Optional(t.Boolean({title:"No Title",description:"Whether to hide the card title",default:!1,"ui:responsive":"desktop"})),title:t.Optional(e({title:"Title"})),text:t.Optional(e({title:"Text"})),rounding:t.Optional(o({default:"rounded-md"})),border:t.Optional(i({default:{width:"border",color:"border-primary-300"}})),shadow:t.Optional(r()),loop:t.Optional(p())})}),P=[{description:"A simple card with a title and content",type:"card",props:{title:"Card Title",text:"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"},title:"Overlay Title",text:"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"},title:"Premium Headphones",text:"High-quality wireless headphones with noise cancellation and 30-hour battery life."}},{description:"Feature card with large padding and background",type:"card",props:{title:"Key Feature",text:"This feature provides exceptional value and enhances user experience significantly."}},{description:"Blog post card with image at the bottom",type:"card",props:{title:"The Future of Technology",text:"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:{title:"Customer Review",text:'"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:{title:"Simple Announcement",text:"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"},title:"Annual Conference 2025",text:"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"},title:"Breaking News Update",text:"Latest developments in the ongoing story with expert analysis and community reactions."}},{description:"Call-to-action card with prominent styling",type:"card",props:{title:"Get Started Today",text:"Transform your workflow with our powerful tools. Sign up now and get 30 days free!"}}];export{k as a,P as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{Type as e}from"@sinclair/typebox";import{Type as t}from"@sinclair/typebox";var a=t.Object({accessToken:t.String({description:"Airtable Personal Token or OAuth Access Token"}),baseId:t.String({pattern:"^app[A-Za-z0-9]+$",description:'Airtable Base ID starting with "app"'}),tableIdOrName:t.Union([t.String({pattern:"^tbl[A-Za-z0-9]+$",description:'Airtable Table ID starting with "tbl"'}),t.String({description:"Table name as shown in Airtable interface"})])});import{Type as i}from"@sinclair/typebox";var n=i.Object({url:i.String({format:"uri",title:"Webhook URL"}),headers:i.Optional(i.Record(i.String(),i.String(),{title:"Headers",description:"Additional headers to include in the webhook request"}))});import{Type as r}from"@sinclair/typebox";var s=r.Object({spreadsheetId:r.String(),sheetName:r.Optional(r.String())});var A=e.Union([e.Literal("airtable"),e.Literal("google-sheets"),e.Literal("notion"),e.Literal("generic-webhook"),e.Literal("internal")]),p=e.Object({provider:e.Literal("internal"),schema:e.Any({title:"Schema",description:"JSON Schema of the datarecord. Always of type 'object' and representing a row that will be saved.",examples:[{type:"object",properties:{firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},email:{type:"string",format:"email",title:"Email"}},required:["email"],title:"Newsletter Subscription"}]}),indexes:e.Array(e.Object({name:e.String({title:"Index name"}),fields:e.Array(e.String(),{title:"Fields to index"}),unique:e.Optional(e.Boolean({title:"Unique index",default:!1}))}),{title:"Indexes",description:"IMPORTANT: Indexes to create on the datarecord. use it to enforce uniqueness or improve query performance."})},{examples:[{provider:"internal",schema:{type:"object",properties:{firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},email:{type:"string",format:"email",title:"Email"}},required:["email"],title:"Newsletter Subscription"},indexes:[{name:"email_index",fields:["email"],unique:!0}]}]}),o=e.Object({schema:e.Any({title:"Schema",description:"JSON Schema of the datarecord. Always of type 'object' and representing a row that will be saved.",examples:[{type:"object",properties:{firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},email:{type:"string",format:"email",title:"Email"}},required:["email"],title:"Newsletter Subscription"}]})}),c=e.Union([e.Composite([e.Object({provider:e.Literal("airtable"),options:a}),o]),e.Composite([e.Object({provider:e.Literal("google-sheets"),options:s}),o]),e.Composite([e.Object({provider:e.Literal("generic-webhook"),options:n}),o]),p]),l=e.Object({id:e.String({title:"Datarecord ID",comment:"A unique identifier for the datarecord, e.g., 'newsletter_subscriptions'"}),label:e.String({title:"Name of the datarecord",comment:"For example, 'Newsletter Subscriptions'"}),description:e.Optional(e.String({title:"Description of the datarecord"}))}),d=e.Composite([c,l]),w=e.Composite([l,p]),L=e.Array(d);export{A as a,c as b,w as c,L as d};