@upstart.gg/sdk 0.0.75 → 0.0.76

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 (138) hide show
  1. package/dist/node/cli/api.js +1 -1
  2. package/dist/node/cli/commands/login/cmd-login.js +4 -4
  3. package/dist/node/cli/commands/publish/cmd-publish.js +17 -17
  4. package/dist/node/cli/commands/publish/uploader.js +1 -1
  5. package/dist/node/cli/is-logged-in.js +1 -1
  6. package/dist/node/cli/program.js +1 -1
  7. package/dist/node/shared/config.js +3 -3
  8. package/dist/node/shared/logger.js +1 -1
  9. package/dist/shared/ajv.d.ts +1 -1
  10. package/dist/shared/ajv.d.ts.map +1 -1
  11. package/dist/shared/attributes.d.ts +5 -0
  12. package/dist/shared/attributes.d.ts.map +1 -1
  13. package/dist/shared/attributes.js +1 -1
  14. package/dist/shared/brick-manifest.d.ts +3 -1
  15. package/dist/shared/brick-manifest.d.ts.map +1 -1
  16. package/dist/shared/brick-manifest.js +1 -1
  17. package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
  18. package/dist/shared/bricks/manifests/all-manifests.js +1 -1
  19. package/dist/shared/bricks/manifests/button.manifest.d.ts +42 -24
  20. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  21. package/dist/shared/bricks/manifests/button.manifest.js +1 -1
  22. package/dist/shared/bricks/manifests/card.manifest.d.ts +72 -24
  23. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  24. package/dist/shared/bricks/manifests/card.manifest.js +1 -1
  25. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +36 -24
  26. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  27. package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
  28. package/dist/shared/bricks/manifests/countdown.manifest.d.ts +14 -26
  29. package/dist/shared/bricks/manifests/countdown.manifest.d.ts.map +1 -1
  30. package/dist/shared/bricks/manifests/countdown.manifest.js +1 -1
  31. package/dist/shared/bricks/manifests/footer.manifest.d.ts +14 -26
  32. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  33. package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
  34. package/dist/shared/bricks/manifests/form.manifest.d.ts +16 -26
  35. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  36. package/dist/shared/bricks/manifests/form.manifest.js +1 -1
  37. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts +113 -0
  38. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts.map +1 -0
  39. package/dist/shared/bricks/manifests/generic-component.manifest.js +3 -0
  40. package/dist/shared/bricks/manifests/header.manifest.d.ts +14 -26
  41. package/dist/shared/bricks/manifests/header.manifest.d.ts.map +1 -1
  42. package/dist/shared/bricks/manifests/header.manifest.js +1 -1
  43. package/dist/shared/bricks/manifests/hero.manifest.d.ts +42 -24
  44. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  45. package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
  46. package/dist/shared/bricks/manifests/icon.manifest.d.ts +14 -26
  47. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  48. package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
  49. package/dist/shared/bricks/manifests/image.manifest.d.ts +16 -26
  50. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  51. package/dist/shared/bricks/manifests/image.manifest.js +1 -1
  52. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts +16 -26
  53. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts.map +1 -1
  54. package/dist/shared/bricks/manifests/images-wall.manifest.js +1 -1
  55. package/dist/shared/bricks/manifests/loop.manifest.d.ts +93 -0
  56. package/dist/shared/bricks/manifests/loop.manifest.d.ts.map +1 -0
  57. package/dist/shared/bricks/manifests/loop.manifest.js +3 -0
  58. package/dist/shared/bricks/manifests/map.manifest.d.ts +6 -26
  59. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  60. package/dist/shared/bricks/manifests/map.manifest.js +1 -1
  61. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +14 -26
  62. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  63. package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
  64. package/dist/shared/bricks/manifests/text.manifest.d.ts +42 -22
  65. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  66. package/dist/shared/bricks/manifests/text.manifest.js +1 -1
  67. package/dist/shared/bricks/manifests/video.manifest.d.ts +8 -6
  68. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  69. package/dist/shared/bricks/manifests/video.manifest.js +1 -1
  70. package/dist/shared/bricks/props/common.d.ts +30 -7
  71. package/dist/shared/bricks/props/common.d.ts.map +1 -1
  72. package/dist/shared/bricks/props/common.js +1 -1
  73. package/dist/shared/bricks/props/style-props.d.ts +39 -7
  74. package/dist/shared/bricks/props/style-props.d.ts.map +1 -1
  75. package/dist/shared/bricks/props/style-props.js +1 -1
  76. package/dist/shared/bricks.d.ts +414 -365
  77. package/dist/shared/bricks.d.ts.map +1 -1
  78. package/dist/shared/bricks.js +1 -1
  79. package/dist/shared/{chunk-SL7GGSYB.js → chunk-2CWDNNLG.js} +1 -1
  80. package/dist/shared/chunk-4H4VCOKB.js +3 -0
  81. package/dist/shared/chunk-5SAUZF4N.js +32 -0
  82. package/dist/shared/chunk-6M2JPD36.js +13 -0
  83. package/dist/shared/chunk-7GCPTZVT.js +3 -0
  84. package/dist/shared/chunk-A66YBEIK.js +16 -0
  85. package/dist/shared/chunk-BIEJRPKG.js +16 -0
  86. package/dist/shared/chunk-FSUHIMOU.js +20 -0
  87. package/dist/shared/{chunk-V4SJKXET.js → chunk-GCZ4WSX2.js} +1 -1
  88. package/dist/shared/chunk-GEODA2ON.js +11 -0
  89. package/dist/shared/chunk-HMO5CIER.js +14 -0
  90. package/dist/shared/chunk-J45DOHTX.js +16 -0
  91. package/dist/shared/chunk-JSOZWQRQ.js +3 -0
  92. package/dist/shared/chunk-KXVIWTJN.js +3 -0
  93. package/dist/shared/chunk-LR6R5QDM.js +7 -0
  94. package/dist/shared/chunk-LRO2KHWL.js +11 -0
  95. package/dist/shared/chunk-MXONIPYM.js +13 -0
  96. package/dist/shared/chunk-POE5KCOE.js +9 -0
  97. package/dist/shared/chunk-PUHGH25O.js +3 -0
  98. package/dist/shared/chunk-RAFOQXXX.js +8 -0
  99. package/dist/shared/{chunk-QXB632SL.js → chunk-SN3PMMZ2.js} +2 -2
  100. package/dist/shared/chunk-TPVKGTAK.js +3 -0
  101. package/dist/shared/chunk-VGBLZSS6.js +9 -0
  102. package/dist/shared/chunk-X7ABR5GQ.js +3 -0
  103. package/dist/shared/chunk-Z4THNQZ7.js +20 -0
  104. package/dist/shared/datasources/internal/cv/schema.d.ts +69 -0
  105. package/dist/shared/datasources/internal/cv/schema.d.ts.map +1 -0
  106. package/dist/shared/datasources/internal/restaurant/schema.d.ts +80 -0
  107. package/dist/shared/datasources/internal/restaurant/schema.d.ts.map +1 -0
  108. package/dist/shared/datasources/schemas.d.ts +17 -0
  109. package/dist/shared/datasources/schemas.d.ts.map +1 -0
  110. package/dist/shared/datasources/schemas.js +3 -0
  111. package/dist/shared/datasources/types.js +1 -1
  112. package/dist/shared/page.d.ts +639 -547
  113. package/dist/shared/page.d.ts.map +1 -1
  114. package/dist/shared/page.js +1 -1
  115. package/dist/shared/theme.d.ts +1 -1
  116. package/dist/shared/theme.d.ts.map +1 -1
  117. package/dist/shared/theme.js +1 -1
  118. package/dist/shared/themes/color-system.d.ts.map +1 -1
  119. package/package.json +3 -4
  120. package/dist/shared/chunk-2MYSBGXT.js +0 -16
  121. package/dist/shared/chunk-2OS3QYKE.js +0 -20
  122. package/dist/shared/chunk-BND2TMDC.js +0 -13
  123. package/dist/shared/chunk-EU3VNNEO.js +0 -7
  124. package/dist/shared/chunk-FNY3QNEQ.js +0 -11
  125. package/dist/shared/chunk-J6I3OMQO.js +0 -9
  126. package/dist/shared/chunk-KBZEUEEY.js +0 -3
  127. package/dist/shared/chunk-KGJQ6Z5A.js +0 -32
  128. package/dist/shared/chunk-NCF46HSZ.js +0 -13
  129. package/dist/shared/chunk-QOPZIE3U.js +0 -3
  130. package/dist/shared/chunk-TVKRK6P4.js +0 -14
  131. package/dist/shared/chunk-VEXGLSUP.js +0 -9
  132. package/dist/shared/chunk-W4DP2HKI.js +0 -3
  133. package/dist/shared/chunk-W6X5NC5M.js +0 -3
  134. package/dist/shared/chunk-WF7I53QW.js +0 -20
  135. package/dist/shared/chunk-XBV2Q4OR.js +0 -16
  136. package/dist/shared/chunk-XL6LPHCI.js +0 -3
  137. package/dist/shared/chunk-YTITIU5G.js +0 -3
  138. package/dist/shared/chunk-Z4S5CCLQ.js +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"bricks.d.ts","sourceRoot":"","sources":["../../src/shared/bricks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAoBtD;;GAEG;AACH,eAAO,MAAM,UAAU,2BAAsF,CAAC;AAE9G,QAAA,MAAM,mBAAmB;;;;;;;EA2BvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE/D,QAAA,MAAM,0BAA0B;;;;;;EA6C9B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE7E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,KAAK,EAAE,CAAC;AACnC,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;AAEnD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAwCF,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,EAAE,CASzE;AAED;;;GAGG;AACH,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,GAAG;IAEnE,QAAQ,EAAE;QACR,MAAM,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;QACzC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;KAC1C,CAAC;CACH,CAAC;AAQF;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,YAAY,EAAE,CA4ChF"}
1
+ {"version":3,"file":"bricks.d.ts","sourceRoot":"","sources":["../../src/shared/bricks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAsBtD;;GAEG;AACH,eAAO,MAAM,UAAU,2BAAsF,CAAC;AAE9G,QAAA,MAAM,mBAAmB;;;;;;;EA2BvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE/D,QAAA,MAAM,0BAA0B;;;;;;EA6C9B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE7E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2FtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,KAAK,EAAE,CAAC;AACnC,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;AAEnD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAwCF,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,EAAE,CAWzE;AAED;;;GAGG;AACH,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,GAAG;IAEnE,QAAQ,EAAE;QACR,MAAM,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,GAAG;YAAE,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC/D,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,GAAG;YAAE,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAChE,CAAC;CACH,CAAC;AAQF;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,eAAe,EAAE,EACnD,MAAM,EAAE,CAAC,EACT,QAAQ;;;CAA4B,GACnC,YAAY,EAAE,CAuChB"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d}from"./chunk-W4DP2HKI.js";import"./chunk-WF7I53QW.js";import"./chunk-EU3VNNEO.js";import"./chunk-SL7GGSYB.js";import"./chunk-2OS3QYKE.js";import"./chunk-Z4S5CCLQ.js";import"./chunk-TVKRK6P4.js";import"./chunk-J6I3OMQO.js";import"./chunk-FNY3QNEQ.js";import"./chunk-VEXGLSUP.js";import"./chunk-BND2TMDC.js";import"./chunk-2MYSBGXT.js";import"./chunk-NCF46HSZ.js";import"./chunk-XBV2Q4OR.js";import"./chunk-QXB632SL.js";import"./chunk-KGJQ6Z5A.js";import"./chunk-XL6LPHCI.js";import"./chunk-W6X5NC5M.js";import"./chunk-QOPZIE3U.js";import"./chunk-PXAK7ZJ3.js";export{b as brickSchema,d as createRow,c as defineBricks,a as generateId};
3
+ import{a,b,c,d}from"./chunk-7GCPTZVT.js";import"./chunk-LRO2KHWL.js";import"./chunk-A66YBEIK.js";import"./chunk-Z4THNQZ7.js";import"./chunk-LR6R5QDM.js";import"./chunk-2CWDNNLG.js";import"./chunk-FSUHIMOU.js";import"./chunk-BIEJRPKG.js";import"./chunk-RAFOQXXX.js";import"./chunk-HMO5CIER.js";import"./chunk-POE5KCOE.js";import"./chunk-GEODA2ON.js";import"./chunk-VGBLZSS6.js";import"./chunk-MXONIPYM.js";import"./chunk-6M2JPD36.js";import"./chunk-J45DOHTX.js";import"./chunk-SN3PMMZ2.js";import"./chunk-4H4VCOKB.js";import"./chunk-5SAUZF4N.js";import"./chunk-PUHGH25O.js";import"./chunk-PXAK7ZJ3.js";import"./chunk-JSOZWQRQ.js";export{b as brickSchema,d as createRow,c as defineBricks,a as generateId};
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{a as i}from"./chunk-XL6LPHCI.js";import{a as o}from"./chunk-QOPZIE3U.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var p=o({type:"video",kind:"brick",title:"Video",description:"Youtube video",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
3
+ import{a as o}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as i}from"./chunk-JSOZWQRQ.js";import{Type as e}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var p=o({type:"video",kind:"brick",title:"Video",description:"Youtube video",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
4
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
5
5
  <rect
6
6
  x="5" y="15"
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{Type as t}from"@sinclair/typebox";var e={"ui:group":"border","ui:group:title":"Border"},i={"ui:group":"spacing","ui:group:title":"Spacing"},o={"ui:group":"effects","ui:group:title":"Effects"},r={"ui:group":"dimensions","ui:group:title":"Dimensions","ui:group:order":1},l={"ui:group":"colors","ui:group:title":"Colors","ui:group:order":2},d=t.Union([t.Literal("border-0",{title:"None"}),t.Literal("border",{title:"Small"}),t.Literal("border-2",{title:"Medium"}),t.Literal("border-4",{title:"Large"}),t.Literal("border-8",{title:"Extra large"})],{$id:"borderWidth",default:"border-0",title:"Border width","ui:field":"enum","ui:display":"button-group",...e}),n=t.String({$id:"borderColor",default:"transparent",title:"Border color","ui:field":"color","ui:color-type":"border",...e}),a=t.Union([t.Literal("border-solid",{title:"Solid"}),t.Literal("border-dashed",{title:"Dashed"}),t.Literal("border-dotted",{title:"Dotted"})],{$id:"borderStyle",default:"border-solid",title:"Border style",description:"The brick border style","ui:field":"enum","ui:display":"button-group",...e}),u=t.Union([t.Literal("rounded-none",{title:"None"}),t.Literal("rounded-sm",{title:"Small"}),t.Literal("rounded-md",{title:"Medium"}),t.Literal("rounded-lg",{title:"Large"}),t.Literal("rounded-xl",{title:"Extra large"}),t.Literal("rounded-full",{title:"Full"})],{$id:"borderRadius",default:"rounded-none",title:"Rounding",description:"Corners rounding","ui:field":"enum","ui:display":"button-group",...e}),s=t.Optional(t.Object({radius:u,style:a,color:n,width:d},{title:"Border style","ui:field":"border","ui:group":"Border","ui:group:title":"Border",default:{radius:"rounded-none",style:"border-solid",color:"#000000",width:"border-0"}})),p=t.Union([t.Literal("p-0",{title:"None"}),t.Literal("p-2",{title:"Small"}),t.Literal("p-4",{title:"Medium"}),t.Literal("p-8",{title:"Large"}),t.Literal("p-16",{title:"Extra large"})],{$id:"padding",default:"p-2",title:"Padding",description:"Space between the content and the border","ui:field":"enum","ui:display":"select",...i}),c=t.Object({height:t.Optional(t.Union([t.Literal("fixed",{title:"Fixed"}),t.Literal("auto",{title:"Auto"})])),padding:t.Optional(p)},{title:"Dimensions","ui:field":"dimensions",...r,default:{padding:"p-2",height:"fixed"}}),w=t.Union([t.Literal("m-0",{title:"0"}),t.Literal("m-1",{title:"1"}),t.Literal("m-2",{title:"2"}),t.Literal("m-4",{title:"3"}),t.Literal("m-8",{title:"4"}),t.Literal("m-16",{title:"5"}),t.Literal("m-32",{title:"6"}),t.Literal("m-auto",{title:"Auto"})],{default:"m-0",title:"Margin",description:"Outside space around the brick","ui:field":"enum","ui:display":"button-group",...i}),g=t.String({$id:"backgroundColor",default:"transparent",title:"Background color","ui:field":"color","ui:color-type":"background",...l}),f=t.Optional(t.Number({$id:"opacity",minimum:.1,maximum:1,default:1,multipleOf:.1,title:"Opacity",description:"Global opacity","ui:field":"slider",...o})),L=t.Union([t.Literal("shadow-none",{title:"None"}),t.Literal("shadow-sm",{title:"Small"}),t.Literal("shadow-md",{title:"Medium"}),t.Literal("shadow-lg",{title:"Large"}),t.Literal("shadow-xl",{title:"Extra large"}),t.Literal("shadow-2xl",{title:"Extra large (2x)"})],{$id:"shadow",default:"shadow-none",title:"Shadow",description:"Shadow","ui:field":"enum","ui:display":"button-group",...o}),x=t.Optional(t.Object({shadow:L,opacity:f},{title:"Effects","ui:field":"effects","ui:group":"effects","ui:group:title":"Effects",default:{shadow:"shadow-none",opacity:1}})),O=t.Object({dimensions:c,borders:s,effects:x,backgroundColor:g}),m=t.Optional(t.Union([t.Literal("text-left",{title:"Left",description:"Left align"}),t.Literal("text-center",{title:"Center",description:"Center align"}),t.Literal("text-right",{title:"Right",description:"Right align"}),t.Literal("text-justify",{title:"Justify",description:"Justify align"})],{$id:"textAlign",default:"text-left",title:"Text alignment",description:"The text alignment","ui:field":"enum","ui:group":"text"})),b=t.Union([t.Literal("text-xs",{title:"XS"}),t.Literal("text-sm",{title:"S"}),t.Literal("text-base",{title:"M"}),t.Literal("text-lg",{title:"L"}),t.Literal("text-xl",{title:"XL"}),t.Literal("text-2xl",{title:"2XL"}),t.Literal("text-3xl",{title:"3XL"}),t.Literal("text-4xl",{title:"4XL"}),t.Literal("text-5xl",{title:"5XL"}),t.Literal("text-6xl",{title:"6XL"}),t.Literal("text-7xl",{title:"7XL"})],{$id:"fontSize",default:"text-base",title:"Font size","ui:field":"enum","ui:display":"button-group","ui:group":"text"}),h=t.Union([t.Literal("font-normal",{title:"1"}),t.Literal("font-medium",{title:"2"}),t.Literal("font-semibold",{title:"3"}),t.Literal("font-bold",{title:"4"}),t.Literal("font-extrabold",{title:"5"})],{$id:"fontWeight",default:"font-normal",title:"Font weight",description:"The text font weight","ui:field":"enum","ui:display":"button-group","ui:group":"text"}),y=t.String({$id:"color",default:"transparent",title:"Text color","ui:field":"color","ui:color-type":"text","ui:group":"text"}),$=t.Object({color:y,textAlign:m,fontSize:b,fontWeight:h});export{d as a,n as b,a as c,u as d,s as e,p as f,c as g,g as h,x as i,O as j,y as k,$ as l};
@@ -0,0 +1,32 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as p}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as e,e as o}from"./chunk-JSOZWQRQ.js";import{Type as i}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var a=p({type:"countdown",kind:"widget",title:"Countdown",description:"A countdown timer",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container (centered) -->
5
+ <rect x="2" y="6" width="20" height="12" rx="1" ry="1"></rect>
6
+
7
+ <!-- Left digit -->
8
+ <path d="M4 9 L4 15"></path>
9
+ <path d="M4 9 L7 9"></path>
10
+ <path d="M4 12 L7 12"></path>
11
+ <path d="M4 15 L7 15"></path>
12
+ <path d="M7 9 L7 15"></path>
13
+
14
+ <!-- Second digit -->
15
+ <path d="M9 9 L9 15"></path>
16
+ <path d="M9 9 L12 9"></path>
17
+ <path d="M9 12 L12 12"></path>
18
+ <path d="M9 15 L12 15"></path>
19
+ <path d="M12 9 L12 15"></path>
20
+
21
+ <!-- Colon (tiny) -->
22
+ <circle cx="15" cy="10.5" r="0.15"></circle>
23
+ <circle cx="15" cy="13.5" r="0.15"></circle>
24
+
25
+ <!-- Third digit -->
26
+ <path d="M17 9 L17 15"></path>
27
+ <path d="M17 9 L20 9"></path>
28
+ <path d="M17 12 L20 12"></path>
29
+ <path d="M17 15 L20 15"></path>
30
+ <path d="M20 9 L20 15"></path>
31
+ </svg>
32
+ `,props:i.Composite([o,e])}),m=r.Create(a);export{a,m as b};
@@ -0,0 +1,13 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{j as r}from"./chunk-4H4VCOKB.js";import{a as i}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as o,e}from"./chunk-JSOZWQRQ.js";import{Type as n}from"@sinclair/typebox";import{Value as p}from"@sinclair/typebox/value";var m=i({type:"button",title:"Button",kind:"brick",description:"A button with text and optional icon",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
+ <!-- Main container -->
6
+
7
+ <!-- Button container -->
8
+ <rect x="4" y="11" width="16" height="6" rx="2"></rect>
9
+
10
+ <!-- Text line inside button -->
11
+ <line x1="9" y1="14" x2="15" y2="14"></line>
12
+ </svg>
13
+ `,props:n.Composite([e,o,r])}),k=p.Create(m);export{m as a,k as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as w}from"./chunk-LRO2KHWL.js";import{a as x}from"./chunk-A66YBEIK.js";import{a as L}from"./chunk-Z4THNQZ7.js";import{a as O}from"./chunk-LR6R5QDM.js";import{a as B}from"./chunk-2CWDNNLG.js";import{a as f}from"./chunk-FSUHIMOU.js";import{a as c}from"./chunk-BIEJRPKG.js";import{a as g}from"./chunk-RAFOQXXX.js";import{a as h}from"./chunk-HMO5CIER.js";import{a as b}from"./chunk-POE5KCOE.js";import{a as u}from"./chunk-GEODA2ON.js";import{a as y}from"./chunk-VGBLZSS6.js";import{a as k}from"./chunk-MXONIPYM.js";import{a}from"./chunk-6M2JPD36.js";import{a as m}from"./chunk-J45DOHTX.js";import{a as l}from"./chunk-SN3PMMZ2.js";import{a as d}from"./chunk-5SAUZF4N.js";import{a as n}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as R}from"nanoid";var D=R("1234567890azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),j=e.Object({x:e.Number({title:"X",description:"The column start (0-based) in grid units, not pixels."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Number({title:"Width",description:"The width in columns in grid units, not pixels."}),h:e.Number({title:"Height",description:"The height in rows in grid units, not pixels."}),manualHeight:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor."})),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))}),M=e.Object({x:e.Union([e.Number(),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"X",description:"The column start (0-based) in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Union([e.Number(),e.Literal("full"),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"Width",description:"The width in columns in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),h:e.Number({title:"Height",description:"The height in rows in grid units, not pixels."}),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))}),C=e.Composite([e.Union([e.Object({type:e.Literal("button"),props:a.properties.props}),e.Object({type:e.Literal("card"),props:m.properties.props}),e.Object({type:e.Literal("carousel"),props:l.properties.props}),e.Object({type:e.Literal("countdown"),props:d.properties.props}),e.Object({type:e.Literal("footer"),props:f.properties.props}),e.Object({type:e.Literal("form"),props:c.properties.props}),e.Object({type:e.Literal("header"),props:h.properties.props}),e.Object({type:e.Literal("hero"),props:b.properties.props}),e.Object({type:e.Literal("icon"),props:u.properties.props}),e.Object({type:e.Literal("image"),props:y.properties.props}),e.Object({type:e.Literal("images-wall"),props:k.properties.props}),e.Object({type:e.Literal("map"),props:x.properties.props}),e.Object({type:e.Literal("social-links"),props:L.properties.props}),e.Object({type:e.Literal("text"),props:O.properties.props}),e.Object({type:e.Literal("video"),props:B.properties.props}),e.Object({type:e.Literal("html-element"),props:e.Record(e.String(),e.Any())}),e.Object({type:e.Literal("generic-component"),props:g.properties.props}),e.Object({type:e.Literal("loop"),props:w.properties.props})]),e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),position:e.Object({mobile:j,desktop:j},{title:"Position",description:"The position of the brick in the layout."})})]),ee=e.Composite([e.Omit(C,["id","position","manifest"]),e.Object({position:e.Object({mobile:M,desktop:M})})]);function S(t,i,r=n){return{x:t.x==="quarter"?r[i]/4:t.x==="threeQuarter"?r[i]*.75:t.x==="half"?r[i]/2:t.x==="third"?r[i]/3:t.x==="twoThird"?r[i]*2/3:t.x,y:t.y,w:t.w==="full"?r[i]:t.w==="half"?r[i]/2:t.w==="third"?r[i]/3:t.w==="quarter"?r[i]/4:t.w==="twoThird"?r[i]*2/3:t.w==="threeQuarter"?r[i]*3/4:t.w,h:t.h,hidden:t.hidden}}function te(t){return t.map(i=>({id:`brick-${D()}`,...i,position:{mobile:S(i.position.mobile,"mobile"),desktop:S(i.position.desktop,"desktop")}}))}var p={mobile:0,desktop:0};function ie(t,i={desktop:0,mobile:0}){let r=t.map((o,N)=>{let s={...o,id:`brick-${D()}`,position:{desktop:{...o.position.desktop,y:o.position.desktop.forceY??p.desktop},...o.position.mobile?{mobile:{...o.position.mobile,y:o.position.mobile.forceY??p.mobile}}:null}};return s.position.mobile?.w===n.mobile&&N!==t.length-1&&(p.mobile+=s.position.mobile.h),s}),T=Math.max(...t.map(o=>o.position.desktop?.h??i.desktop)),P=Math.max(...t.map(o=>o.position.mobile?.h??i.mobile));return p.desktop+=T,p.mobile+=P,r}export{D as a,C as b,te as c,ie as d};
@@ -0,0 +1,16 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as o}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as e}from"./chunk-JSOZWQRQ.js";import{Type as i}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var p=o({type:"map",kind:"widget",title:"Map",description:"A map element with a location",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+
7
+ <!-- Map fold lines (even thinner) -->
8
+ <path d="M3 9 L21 9" stroke-width="0.3"></path>
9
+ <path d="M9 3 L9 21" stroke-width="0.3"></path>
10
+ <path d="M15 3 L15 21" stroke-width="0.3"></path>
11
+ <path d="M3 15 L21 15" stroke-width="0.3"></path>
12
+
13
+ <!-- Location pin (teardrop shape) -->
14
+ <path d="M12 5 C10.3431 5 9 6.34315 9 8 C9 9.3124 9.84285 10.4274 11 10.8229 L12 13 L13 10.8229 C14.1571 10.4274 15 9.3124 15 8 C15 6.34315 13.6569 5 12 5Z"></path>
15
+ </svg>
16
+ `,props:i.Composite([e])}),l=r.Create(p);export{p as a,l as b};
@@ -0,0 +1,16 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as i}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as e,e as o,f as r}from"./chunk-JSOZWQRQ.js";import{Type as n}from"@sinclair/typebox";import{Value as p}from"@sinclair/typebox/value";var m=i({type:"form",kind:"widget",title:"Form",description:"A form element",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+
7
+ <!-- Two input boxes -->
8
+ <rect x="6" y="6" width="12" height="3" rx="1"></rect>
9
+ <rect x="6" y="11" width="12" height="3" rx="1"></rect>
10
+
11
+ <!-- Right-aligned button -->
12
+ <rect x="12" y="17" width="6" height="2" rx="1"
13
+ fill="currentColor"
14
+ ></rect>
15
+ </svg>
16
+ `,props:n.Composite([o,e,r])}),f=p.Create(m);export{m as a,f as b};
@@ -0,0 +1,20 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as o}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as i,e as t}from"./chunk-JSOZWQRQ.js";import{Type as n}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var l=o({type:"footer",kind:"widget",title:"Footer",description:"A footer with links and social media icons",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="12" width="18" height="8" rx="2" ry="2"></rect>
6
+
7
+ <!-- First column: single line aligned with top -->
8
+ <line x1="6" y1="14.5" x2="8" y2="14.5"></line>
9
+
10
+ <!-- Middle column: three lines -->
11
+ <line x1="11" y1="14.5" x2="13" y2="14.5"></line>
12
+ <line x1="11" y1="16" x2="13" y2="16"></line>
13
+ <line x1="11" y1="17.5" x2="13" y2="17.5"></line>
14
+
15
+ <!-- Last column: three lines -->
16
+ <line x1="16" y1="14.5" x2="18" y2="14.5"></line>
17
+ <line x1="16" y1="16" x2="18" y2="16"></line>
18
+ <line x1="16" y1="17.5" x2="18" y2="17.5"></line>
19
+ </svg>
20
+ `,props:n.Composite([t,i])}),y=r.Create(l);export{l as a,y as b};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{Type as t}from"@sinclair/typebox";var a=t.Object({id:t.String({title:"ID",description:"The unique identifier of the theme"}),name:t.String({title:"Name",description:"The name of the theme"}),description:t.Optional(t.String({title:"Description",description:"The description of the theme"})),tags:t.Optional(t.Array(t.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:t.Object({primary:t.String({title:"Primary color",description:"The brand's primary color"}),secondary:t.String({title:"Secondary color",description:"The brand's second most used color"}),accent:t.String({title:"Accent color",description:"The brand's least used color"}),neutral:t.String({title:"Neutral color",description:"The base neutral color"})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors."}),typography:t.Object({base:t.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"}),t.String({title:"Custom font",description:"The custom font name from teh customFonts array","ui:option-hidden":!0})],{title:"Heading font",description:"Used for titles and headings.",default:"system-ui"}),body:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"}),t.String({title:"Custom font",description:"The custom font name from teh customFonts array","ui:option-hidden":!0})],{title:"Body font",description:"Used for paragraphs and body text",default:"system-ui"})}),customFonts:t.Optional(t.Array(t.Object({name:t.String({title:"Name",description:"The name of the font"}),src:t.String({title:"Font URL",description:"The URL of the font"}),display:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("swap",{title:"Swap"}),t.Literal("block",{title:"Block"}),t.Literal("fallback",{title:"Fallback"}),t.Literal("optional",{title:"Optional"}),t.String({title:"Custom"})],{title:"Display",default:"auto"})),stretch:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("ultra-condensed",{title:"Ultra condensed"}),t.Literal("extra-condensed",{title:"Extra condensed"}),t.Literal("condensed",{title:"Condensed"}),t.Literal("semi-condensed",{title:"Semi condensed"}),t.Literal("semi-expanded",{title:"Semi expanded"}),t.Literal("expanded",{title:"Expanded"}),t.Literal("extra-expanded",{title:"Extra expanded"}),t.Literal("ultra-expanded",{title:"Ultra expanded"}),t.String({title:"Custom"})],{title:"Stretch",default:"normal"})),style:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("italic",{title:"Italic"}),t.Literal("oblique",{title:"Oblique"}),t.String({title:"Custom"})],{title:"Style",default:"normal"})),weight:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("bold",{title:"Bold"}),t.Literal("bolder",{title:"Bolder"}),t.Literal("lighter",{title:"Lighter"}),t.Literal("100",{title:"100"}),t.Literal("200",{title:"200"}),t.Literal("300",{title:"300"}),t.Literal("400",{title:"400"}),t.Literal("500",{title:"500"}),t.Literal("600",{title:"600"}),t.Literal("700",{title:"700"}),t.Literal("800",{title:"800"}),t.Literal("900",{title:"900"}),t.String({title:"Custom"})],{title:"Weight",default:"normal"}))},{title:"Custom font"}),{title:"Custom fonts",description:"The custom fonts used in the theme"}))},{$id:"Theme"});function o(e,l){return l.customFonts?.length?{...e,properties:{...e.properties,typography:{...e.properties.typography,properties:{...e.properties.typography.properties,body:t.Union([...l.customFonts.map(i=>t.Literal(i.name,{title:i.name})),...e.properties.typography.properties.body.anyOf]),heading:t.Union([...l.customFonts.map(i=>t.Literal(i.name,{title:i.name})),...e.properties.typography.properties.heading.anyOf])}}}}:e}var n=t.Array(a);export{a,o as b,n as c};
3
+ import{Type as t}from"@sinclair/typebox";var l=t.Object({id:t.String({title:"ID",description:"The unique identifier of the theme"}),name:t.String({title:"Name",description:"The name of the theme"}),description:t.Optional(t.String({title:"Description",description:"The description of the theme"})),tags:t.Optional(t.Array(t.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:t.Object({primary:t.String({title:"Primary color",description:"The brand's primary color"}),secondary:t.String({title:"Secondary color",description:"The brand's second most used color"}),accent:t.String({title:"Accent color",description:"The brand's least used color"}),neutral:t.String({title:"Neutral color",description:"The base neutral color"})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors."}),typography:t.Object({base:t.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"}),t.String({title:"Custom font",description:"The custom font name from teh customFonts array","ui:option-hidden":!0})],{title:"Heading font",description:"Used for titles and headings.",default:"system-ui"}),body:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"}),t.String({title:"Custom font",description:"The custom font name from teh customFonts array","ui:option-hidden":!0})],{title:"Body font",description:"Used for paragraphs and body text",default:"system-ui"})}),customFonts:t.Optional(t.Array(t.Object({name:t.String({title:"Name",description:"The name of the font"}),src:t.String({title:"Font URL",description:"The URL of the font"}),display:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("swap",{title:"Swap"}),t.Literal("block",{title:"Block"}),t.Literal("fallback",{title:"Fallback"}),t.Literal("optional",{title:"Optional"}),t.String({title:"Custom"})],{title:"Display",default:"auto"})),stretch:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("ultra-condensed",{title:"Ultra condensed"}),t.Literal("extra-condensed",{title:"Extra condensed"}),t.Literal("condensed",{title:"Condensed"}),t.Literal("semi-condensed",{title:"Semi condensed"}),t.Literal("semi-expanded",{title:"Semi expanded"}),t.Literal("expanded",{title:"Expanded"}),t.Literal("extra-expanded",{title:"Extra expanded"}),t.Literal("ultra-expanded",{title:"Ultra expanded"}),t.String({title:"Custom"})],{title:"Stretch",default:"normal"})),style:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("italic",{title:"Italic"}),t.Literal("oblique",{title:"Oblique"}),t.String({title:"Custom"})],{title:"Style",default:"normal"})),weight:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("bold",{title:"Bold"}),t.Literal("bolder",{title:"Bolder"}),t.Literal("lighter",{title:"Lighter"}),t.Literal("100",{title:"100"}),t.Literal("200",{title:"200"}),t.Literal("300",{title:"300"}),t.Literal("400",{title:"400"}),t.Literal("500",{title:"500"}),t.Literal("600",{title:"600"}),t.Literal("700",{title:"700"}),t.Literal("800",{title:"800"}),t.Literal("900",{title:"900"}),t.String({title:"Custom"})],{title:"Weight",default:"normal"}))},{title:"Custom font"}),{title:"Custom fonts",description:"The custom fonts used in the theme"}))},{$id:"Theme"});function o(e,r){return r.customFonts?.length?{...e,properties:{...e.properties,typography:{...e.properties.typography,properties:{...e.properties.typography.properties,body:t.Union([...r.customFonts.map(i=>t.Literal(i.name,{title:i.name})),...e.properties.typography.properties.body.anyOf],{title:e.properties.typography.properties.body.title,description:e.properties.typography.properties.body.description,default:e.properties.typography.properties.body.default}),heading:t.Union([...r.customFonts.map(i=>t.Literal(i.name,{title:i.name})),...e.properties.typography.properties.heading.anyOf],{title:e.properties.typography.properties.heading.title,description:e.properties.typography.properties.heading.description,default:e.properties.typography.properties.heading.default})}}}}:e}var n=t.Array(l);export{l as a,o as b,n as c};
@@ -0,0 +1,11 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as i}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as e,e as o}from"./chunk-JSOZWQRQ.js";import{Type as r}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var p=i({type:"icon",title:"Icon",kind:"brick",description:"An icon with optional text",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
+ <!-- Main container -->
6
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
7
+
8
+ <!-- Diamond shape -->
9
+ <path d="M7 12 L12 7 L17 12 L12 17 Z"></path>
10
+ </svg>
11
+ `,props:r.Composite([o,e])}),f=n.Create(p);export{p as a,f as b};
@@ -0,0 +1,14 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as i}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as t,e as o}from"./chunk-JSOZWQRQ.js";import{Type as r}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var p=i({type:"header",kind:"widget",title:"Header",description:"A header with logo and navigation",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="11" width="18" height="8" rx="2" ry="2"></rect>
6
+
7
+ <!-- Logo area (rectangular) -->
8
+ <rect x="5" y="13" width="6" height="3" rx="1"></rect>
9
+
10
+ <!-- Navigation menu items (right-aligned, horizontal) -->
11
+ <line x1="13" y1="14" x2="15" y2="14"></line>
12
+ <line x1="17" y1="14" x2="19" y2="14"></line>
13
+ </svg>
14
+ `,props:r.Composite([o,t])}),c=n.Create(p);export{p as a,c as b};
@@ -0,0 +1,16 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{f as i,h as o,j as l}from"./chunk-4H4VCOKB.js";import{a as n}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as r}from"./chunk-JSOZWQRQ.js";import{Type as e}from"@sinclair/typebox";import{Value as d}from"@sinclair/typebox/value";var a=n({type:"card",kind:"widget",title:"Card",description:"A multi-purpose card that can have a title, subtitle, image, and content",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Card container -->
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+
7
+ <!-- Image area separator line -->
8
+ <line x1="3" y1="11" x2="21" y2="11"></line>
9
+
10
+ <!-- Title (shorter line) -->
11
+ <line x1="7" y1="14" x2="17" y2="14"></line>
12
+
13
+ <!-- Text content (shorter line) -->
14
+ <line x1="7" y1="17" x2="15" y2="17"></line>
15
+ </svg>
16
+ `,props:e.Composite([r,l,e.Object({cardTitle:e.Object({content:e.Object({text:e.String(),richText:e.Boolean()},{"ui:field":"mixed-content","ui:group":"card-title","ui:group:title":"Title","ui:group:order":0}),padding:i,backgroundColor:o},{title:"Title","ui:group":"card-title","ui:group:title":"Title","ui:group:order":0,default:{content:{text:"Edit my title",richText:!0}}}),cardImage:e.Optional(e.Object({image:e.String({title:"Image","ui:field":"file","ui:accept":"image/*","ui:show-img-search":!0})},{title:"Image","ui:group":"card-image","ui:group:title":"Image","ui:group:order":0})),cardBody:e.Object({content:e.Object({text:e.String(),richText:e.Boolean()},{"ui:field":"mixed-content","ui:group":"card-body","ui:group:title":"Body","ui:group:order":0}),padding:i,backgroundColor:o},{title:"Body","ui:group":"card-body","ui:group:title":"Body","ui:group:order":0,default:{content:{text:"Edit my content",richText:!0}}})})])}),y=d.Create(a);export{a,y as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{Type as e}from"@sinclair/typebox";var n=e.Object({className:e.String({default:"","ui:field":"hidden"}),lastTouched:e.Number({default:0,"ui:field":"hidden"}),editable:e.Boolean({description:"Allow editing. It is automatically set by the editor, so no need to specify it manually.",default:!1,"ui:field":"hidden"})}),r=e.Boolean({title:"Rich Text",description:"Allow rich text",default:!0,"ui:field":"hidden"}),t=e.Object({text:e.String(),richText:e.Boolean()},{default:{text:"some text here"},"ui:field":"mixed-content","ui:group":"content","ui:group:title":"Content","ui:group:order":3}),i=e.Object({src:e.String({default:"https://placehold.co/400x200",title:"Image"}),alt:e.String({title:"Alternate Text",description:"Alternative text for the image. Recommended for screen readers and SEO.","ui:placeholder":"Your image description"})},{"ui:group":"image","ui:group:title":"Image","ui:group:order":1,"ui:field":"image","ui:accept":"image/*","ui:show-img-search":!0,"ui:allow-url":!0}),a=e.Object({image:i},{default:{image:{src:"https://placehold.co/400x200",alt:"my image"}}}),c=e.Object({content:t},{default:{content:{text:"some text here"}}}),l=e.Object({container:e.Boolean({description:"True if the component is a container for other components. It is automatically set by the editor, so no need to specify it manually.",default:!0})});export{n as a,r as b,t as c,a as d,c as e,l as f};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{Type as o}from"@sinclair/typebox";var c=o.Array(o.Object({question:o.String({description:"Question"}),answer:o.String({description:"Answer"}),category:o.Optional(o.String({description:"Category"})),tags:o.Optional(o.Array(o.String(),{description:"Tags"})),order:o.Optional(o.Number({description:"Order number in the list"}))}),{description:"Schema representing a collection of frequently asked questions (FAQ)"});import{Type as n}from"@sinclair/typebox";var a=n.Array(n.Object({url:n.String({format:"uri",description:"URL"}),title:n.String({description:"Title"}),description:n.Optional(n.String({description:"Description"})),icon:n.Optional(n.String({description:"Icon"}))}),{description:"Schema representing a collection of links"});import{Type as i}from"@sinclair/typebox";var m=i.Object({email:i.String({format:"email"}),phone:i.Optional(i.String()),companyName:i.Optional(i.String()),firstName:i.Optional(i.String()),lastName:i.Optional(i.String()),url:i.Optional(i.String({format:"uri"})),address:i.Optional(i.String()),socialLinks:a},{description:"A generic schema representing a person or company contact information"});import{Type as t}from"@sinclair/typebox";var y=t.Array(t.Object({title:t.String({description:"Blog post title"}),content:t.String({description:"Blog post content"}),author:t.Object({name:t.String({description:"Author's name"})}),publishedAt:t.String({description:"Publication date in ISO format"}),updatedAt:t.Optional(t.String({description:"Last update date in ISO format"})),slug:t.String({description:"URL-friendly version of the title"}),status:t.Union([t.Literal("draft"),t.Literal("published"),t.Literal("archived")],{description:"Publication status of the blog post"}),categories:t.Optional(t.Array(t.String({description:"Blog post categories"}))),tags:t.Optional(t.Array(t.String({description:"Blog post tags"}))),metadata:t.Optional(t.Object({description:t.Optional(t.String()),featuredImage:t.Optional(t.String())},{description:"Additional metadata for the blog post"}))}));import{Type as e}from"@sinclair/typebox";var b=e.Array(e.Object({title:e.String({description:"Title of the release"}),version:e.Optional(e.String({description:"Version number"})),date:e.String({format:"date",description:"Release date in ISO format"}),changes:e.Array(e.Object({type:e.Union([e.Literal("added"),e.Literal("changed"),e.Literal("fixed"),e.Literal("improved"),e.Literal("deprecated"),e.Literal("removed")],{description:"Type of change"}),description:e.String({description:"Description of the change"})}))}));import{Type as r}from"@sinclair/typebox";var x=r.Array(r.Object({title:r.String({description:"Title of the recipe"}),description:r.String({description:"Description of the recipe"}),time:r.String({description:"Time to prepare the recipe"}),ingredients:r.Array(r.Object({name:r.String({description:"Name of the ingredient"}),quantity:r.String({description:"Quantity of the ingredient"})})),steps:r.Array(r.Object({title:r.String({description:"Step title"}),description:r.String({description:"Step description"})}))}),{description:"Schema representing a collection of recipes"});export{c as a,a as b,m as c,y as d,b as e,x as f};
@@ -0,0 +1,7 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{j as i}from"./chunk-4H4VCOKB.js";import{a as r}from"./chunk-PUHGH25O.js";import{a as o}from"./chunk-PXAK7ZJ3.js";import{a as t,e}from"./chunk-JSOZWQRQ.js";import{Type as p}from"@sinclair/typebox";import{Value as s}from"@sinclair/typebox/value";var m=r({type:"text",kind:"brick",title:"Text",description:"Text with formatting options",preferredWidth:{mobile:o.mobile/2,desktop:o.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
+ <path d="M4 7h16M4 12h16M4 17h16"></path>
6
+ </svg>
7
+ `,props:p.Composite([t,e,i])}),g=s.Create(m);export{m as a,g as b};
@@ -0,0 +1,11 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as i}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as o}from"./chunk-JSOZWQRQ.js";import{Type as t}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var p=i({type:"loop",kind:"widget",title:"Loop",description:"Allow users to loop through a list of items",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+
7
+ <!-- Loop arrow -->
8
+ <path d="M8 12 L12 16 L16 12"></path>
9
+ <path d="M8 12 L12 8 L16 12"></path>
10
+ </svg>
11
+ `,props:t.Composite([o,t.Object({layoutType:t.Union([t.Literal("vertical",{title:"Vertical"}),t.Literal("horizontal",{title:"Horizontal"}),t.Literal("grid",{title:"Grid"})]),gap:t.Optional(t.Number({default:0})),columns:t.Optional(t.Number({default:2})),children:t.Array(t.Any()),data:t.Union([t.Array(t.Any()),t.Object({datasourceId:t.String()})])})])}),m=r.Create(p);export{p as a,m as b};
@@ -0,0 +1,13 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as o}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as t,e as r,f as i}from"./chunk-JSOZWQRQ.js";import{Type as n}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";var p=o({type:"image-wall",kind:"widget",title:"Images wall",description:"An image collection",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+
7
+ <!-- Image rectangles in masonry layout -->
8
+ <rect x="5" y="5" width="6" height="5" rx="1"></rect>
9
+ <rect x="13" y="5" width="6" height="7" rx="1"></rect>
10
+ <rect x="5" y="12" width="6" height="7" rx="1"></rect>
11
+ <rect x="13" y="14" width="6" height="5" rx="1"></rect>
12
+ </svg>
13
+ `,props:n.Composite([r,t,i])}),h=m.Create(p);export{p as a,h as b};
@@ -0,0 +1,9 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{j as i}from"./chunk-4H4VCOKB.js";import{a as r}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as t,e as o}from"./chunk-JSOZWQRQ.js";import{Type as p}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";var s=r({type:"hero",title:"Hero",kind:"brick",description:"A big textual element for home pages",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
5
+ <rect x="10" y="10" width="80" height="80" rx="4" fill="none" stroke="currentColor" stroke-width="3"/>
6
+ <rect x="20" y="35" width="60" height="12" rx="2" fill="currentColor"/>
7
+ <rect x="20" y="52" width="40" height="12" rx="2" fill="currentColor"/>
8
+ </svg>
9
+ `,props:p.Composite([o,t,i])}),a=m.Create(s);export{s as a,a as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as t}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";function h({type:d,kind:b,title:p,description:m,preferredWidth:s,preferredHeight:l,minWidth:i,minHeight:r,maxWidth:c,icon:u,props:a,datasource:o,datarecord:n,hideInLibrary:f}){return e.Object({type:e.Literal(d),kind:e.Literal(b),title:e.Literal(p),description:e.Literal(m),icon:e.Literal(u),hideInLibrary:e.Boolean({default:f??!1}),preferredWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:s??i}),preferredHeight:e.Object({mobile:e.Number(),desktop:e.Number()},{default:l??r}),minWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:i??{mobile:1,desktop:1}}),maxWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:c??{mobile:t.mobile,desktop:t.desktop}}),minHeight:e.Object({mobile:e.Number(),desktop:e.Number()},{default:r??{mobile:1,desktop:1}}),...o&&{datasource:o},...n&&{datarecord:n},props:a})}export{h as a};
@@ -0,0 +1,8 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{j as i}from"./chunk-4H4VCOKB.js";import{a as r}from"./chunk-PUHGH25O.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{a as o}from"./chunk-JSOZWQRQ.js";import{Type as e}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var p=r({type:"generic-component",title:"Generic component",kind:"brick",description:"A generic component",hideInLibrary:!0,preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
+ <rect x="4" y="11" width="16" height="6" rx="2"></rect>
6
+ <line x1="9" y1="14" x2="15" y2="14"></line>
7
+ </svg>
8
+ `,props:e.Composite([o,i,e.Object({render:e.Function([e.Object({},{additionalProperties:!0})],e.Any(),{title:"React component"}),componentProps:e.Optional(e.Object({},{additionalProperties:!0}))})])}),k=n.Create(p);export{p as a,k as b};
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{a as o,d as r}from"./chunk-XL6LPHCI.js";import{a as i}from"./chunk-W6X5NC5M.js";import{a as l}from"./chunk-QOPZIE3U.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var c=l({type:"carousel",kind:"widget",title:"Carousel",description:"A carousel element",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
3
+ import{j as i}from"./chunk-4H4VCOKB.js";import{a as o}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as r,f as t}from"./chunk-JSOZWQRQ.js";import{Type as c}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var l=o({type:"carousel",kind:"widget",title:"Carousel",description:"A carousel element",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
4
  <!-- Main container -->
5
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
 
@@ -12,4 +12,4 @@ import{a as o,d as r}from"./chunk-XL6LPHCI.js";import{a as i}from"./chunk-W6X5NC
12
12
  <circle cx="12" cy="17" r="0.5" fill="currentColor"></circle>
13
13
  <circle cx="15" cy="17" r="0.5" fill="currentColor"></circle>
14
14
  </svg>
15
- `,props:e.Composite([r,o,i,e.Object({heroFontSize:e.Union([e.Literal("font-size-hero-1",{title:"1"}),e.Literal("font-size-hero-2",{title:"2"}),e.Literal("font-size-hero-3",{title:"3"}),e.Literal("font-size-hero-4",{title:"4"}),e.Literal("font-size-hero-5",{title:"5"})],{default:"font-size-hero-3",title:"Font size","ui:field":"enum","ui:display":"button-group","ui:group":"border"})})])}),h=n.Create(c);export{c as a,h as b};
15
+ `,props:c.Composite([r,t,i])}),g=n.Create(l);export{l as a,g as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as l}from"./chunk-6PCNIIO5.js";import{Type as o}from"@sinclair/typebox";function s(t){return JSON.parse(JSON.stringify(t))}function O(t){for(let e in t)if(e.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${e}") are reserved for internal use. Please rename it.`);return s(o.Object({...p,...t}))}var a={string(t,e="",i){return o.String({title:t,default:e,...i})},number(t,e=0,i){return o.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let r={"ui:field":"switch"};return o.Boolean({title:t,default:e,...r,...i})},enum(t,e,i){let r={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:u,displayAs:m,...g}=i;return o.Union(u.map(n=>o.Literal(typeof n=="string"?n:n.value,{title:typeof n=="string"?n:n.title,"ui:icon":typeof n=="string"?void 0:n.icon})),{title:t,default:e,...r,...g})},file(t,e="",i={}){return o.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return o.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let r={"ui:field":"color"};return o.String({title:t,default:e,...r,...i})},date(t,e=new Date,i={}){return o.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return o.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return o.Object({lat:o.Number({minimum:-90,maximum:90}),lng:o.Number({minimum:-180,maximum:180}),name:o.Optional(o.String({title:"Name"}))},{title:t,default:e,...i})}},p={$pageLanguage:a.enum("Language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ui:group":"meta","ui:group:title":"Page Meta tags (SEO)"}),$pagePath:a.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:group:order":1,"ui:field":"path"}),$pageTitle:a.string("Title","Untitled",{"ui:group":"meta","ui:group:title":"Page Meta tags (SEO)"}),$pageDescription:a.string("Description","",{"ui:widget":"textarea","ui:options":{rows:3,widget:"textarea"},"ui:group":"meta","ui:group:title":"Page Meta tags (SEO)"}),$pageKeywords:a.string("Keywords","",{"ui:group":"meta","ui:group:title":"Page Meta tags (SEO)"}),$pageLastUpdated:a.datetime("Last updated",void 0,{"ui:hidden":!0}),$pageWidth:a.enum("Page 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 page. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Layout & Design"}),$pagePadding:o.Object({vertical:a.enum("Vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Vertical spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),horizontal:a.enum("Horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Horizontal spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"})},{default:{vertical:"20",horizontal:"20"}}),$pagePaddingVertical:a.enum("Vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Vertical spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingHorizontal:a.enum("Horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Horizontal spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$backgroundColor:a.color("Background color","#ffffff",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$backgroundImage:a.color("Background image",void 0,{"ui:field":"image","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$textColor:a.color("Default text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design","ui:color-type":"page-text"})},v=o.Object(p);function b(t,e={}){let i=l.compile(t),r={...e};if(!i(r))throw console.log("invalid data attributes",r,i.errors),new Error(`Invalid attributes: ${i.errors}`);return r}export{O as a,a as b,v as c,b as d};
@@ -0,0 +1,9 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as o}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as t,d as i}from"./chunk-JSOZWQRQ.js";import{Type as r}from"@sinclair/typebox";import{Value as p}from"@sinclair/typebox/value";var m=o({type:"image",kind:"brick",title:"Image",description:"An image brick",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+ <circle cx="8.5" cy="8.5" r="1.5"></circle>
7
+ <polyline points="21 15 16 10 5 21"></polyline>
8
+ </svg>
9
+ `,props:r.Composite([i,t])}),f=p.Create(m);export{m as a,f as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as c,b as l,c as d,d as O,e as u,f}from"./chunk-KXVIWTJN.js";import{Type as t}from"@sinclair/typebox";import{Type as o}from"@sinclair/typebox";import{Type as s}from"@sinclair/typebox";var e=s.Object({refreshInterval:s.Optional(s.Number())});var y=o.Composite([e,o.Object({channelId:o.String(),order:o.Optional(o.String()),maxResults:o.Optional(o.Number()),regionCode:o.Optional(o.String()),relevanceLanguage:o.Optional(o.String())})]);import{Type as a}from"@sinclair/typebox";var p=a.Composite([e,a.Object({limit:a.Optional(a.Number())})]);import{Type as n}from"@sinclair/typebox";var b=n.Composite([e,n.Object({username:n.String()})]);import{Type as i}from"@sinclair/typebox";var h=i.Composite([e,i.Object({url:i.String({format:"uri"}),headers:i.Optional(i.Record(i.String(),i.String()))})]);import{Type as m}from"@sinclair/typebox";var v=m.Composite([e,m.Object({url:m.String({format:"uri"})})]);import{Type as r}from"@sinclair/typebox";var S=r.Composite([e,r.Object({maxCount:r.Optional(r.Number()),refreshInterval:r.Optional(r.Number())})]);var it=t.Union([t.Literal("facebook-posts"),t.Literal("instagram-feed"),t.Literal("mastodon-status"),t.Literal("rss"),t.Literal("threads-media"),t.Literal("tiktok-video"),t.Literal("youtube-list"),t.Literal("json")]),j=t.Union([t.Object({provider:t.Literal("youtube-list"),options:y}),t.Object({provider:t.Literal("facebook-posts"),options:p}),t.Object({provider:t.Literal("instragram-feed"),options:p}),t.Object({provider:t.Literal("threads-media"),options:p}),t.Object({provider:t.Literal("mastodon-status"),options:b}),t.Object({provider:t.Literal("rss"),options:v}),t.Object({provider:t.Literal("tiktok-video"),options:S}),t.Object({provider:t.Literal("json"),options:h,schema:t.Union([t.Array(t.Object({},{additionalProperties:!0})),t.Object({},{additionalProperties:!0})])}),t.Object({provider:t.Literal("internal-blog"),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:O}),t.Object({provider:t.Literal("internal-changelog"),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:u}),t.Object({provider:t.Literal("internal-contact-info"),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:d}),t.Object({provider:t.Literal("internal-faq"),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:c}),t.Object({provider:t.Literal("internal-links"),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:l}),t.Object({provider:t.Literal("internal-recipes"),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:f})]),L=t.Composite([j,t.Object({name:t.String({title:"Name of the datasource",comment:"For example, 'My data'"}),description:t.Optional(t.String({title:"Description of the datasource"})),sampleData:t.Optional(t.Any()),ttlMinutes:t.Optional(t.Number({title:"Time to live",description:"Time to live in minutes. If set to -1, it never expires and has to be manually refreshed. If set to 0, the datasource is always fetched live. If > 0, then the datasource is feteched every N minutes."})),refresh:t.Optional(t.Object({method:t.Union([t.Literal("interval"),t.Literal("manual"),t.Literal("live")]),interval:t.Optional(t.Number())},{title:"Refresh options",description:"Options to refresh the datasource"}))})]),x=t.Object({provider:t.Literal("custom",{title:"Custom",description:"Custom datasource saved locally in Upstart."}),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:t.Union([t.Array(t.Object({},{additionalProperties:!0})),t.Object({},{additionalProperties:!0})]),name:t.String({title:"Name of the datasource",comment:"For example, 'My data'"}),description:t.Optional(t.String({title:"Description of the datasource"})),sampleData:t.Optional(t.Any({title:"Sample data",description:"Sample data for the datasource. Should match the declared schema."}))}),rt=t.Record(t.String(),t.Union([x,L]),{title:"Datasources map",description:"The map of datasources available in the system"});export{it as a,rt as b};
@@ -0,0 +1,20 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as t}from"./chunk-PUHGH25O.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{a as i,e as o}from"./chunk-JSOZWQRQ.js";import{Type as r}from"@sinclair/typebox";import{Value as l}from"@sinclair/typebox/value";var n=t({type:"social-links",kind:"widget",title:"Social links",description:"A list of social media links",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
+ <!-- Main container -->
5
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
+
7
+ <!-- Dots and social info -->
8
+ <circle cx="8" cy="8" r="1" fill="currentColor"></circle>
9
+ <line x1="11" y1="7" x2="16" y2="7"></line>
10
+ <line x1="11" y1="9" x2="13" y2="9" stroke-width="0.5"></line>
11
+
12
+ <circle cx="8" cy="12" r="1" fill="currentColor"></circle>
13
+ <line x1="11" y1="11" x2="16" y2="11"></line>
14
+ <line x1="11" y1="13" x2="13.5" y2="13" stroke-width="0.5"></line>
15
+
16
+ <circle cx="8" cy="16" r="1" fill="currentColor"></circle>
17
+ <line x1="11" y1="15" x2="16" y2="15"></line>
18
+ <line x1="11" y1="17" x2="13" y2="17" stroke-width="0.5"></line>
19
+ </svg>
20
+ `,props:r.Composite([o,i])}),y=l.Create(n);export{n as a,y as b};
@@ -0,0 +1,69 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare const cvSchema: import("@sinclair/typebox").TObject<{
3
+ firstName: import("@sinclair/typebox").TString;
4
+ lastName: import("@sinclair/typebox").TString;
5
+ tagLine: import("@sinclair/typebox").TString;
6
+ email: import("@sinclair/typebox").TString;
7
+ phoneNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
+ address: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
+ socialLinks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
10
+ platform: import("@sinclair/typebox").TString;
11
+ url: import("@sinclair/typebox").TString;
12
+ }>>>;
13
+ professionalSummary: import("@sinclair/typebox").TString;
14
+ workExperience: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
15
+ company: import("@sinclair/typebox").TString;
16
+ position: import("@sinclair/typebox").TString;
17
+ location: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
+ startDate: import("@sinclair/typebox").TString;
19
+ endDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ current: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21
+ description: import("@sinclair/typebox").TString;
22
+ achievements: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
23
+ }>>;
24
+ education: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
25
+ institution: import("@sinclair/typebox").TString;
26
+ degree: import("@sinclair/typebox").TString;
27
+ field: import("@sinclair/typebox").TString;
28
+ startDate: import("@sinclair/typebox").TString;
29
+ endDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
+ gpa: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
31
+ honors: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
32
+ }>>;
33
+ skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
34
+ category: import("@sinclair/typebox").TString;
35
+ items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
36
+ name: import("@sinclair/typebox").TString;
37
+ level: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
38
+ }>>;
39
+ }>>;
40
+ certifications: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
41
+ name: import("@sinclair/typebox").TString;
42
+ issuer: import("@sinclair/typebox").TString;
43
+ dateObtained: import("@sinclair/typebox").TString;
44
+ expiryDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
+ credentialId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
46
+ }>>>;
47
+ languages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
48
+ language: import("@sinclair/typebox").TString;
49
+ proficiency: import("@sinclair/typebox").TString;
50
+ }>>>;
51
+ projects: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
52
+ name: import("@sinclair/typebox").TString;
53
+ description: import("@sinclair/typebox").TString;
54
+ url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
55
+ technologies: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
56
+ startDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
57
+ endDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
58
+ }>>>;
59
+ references: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
60
+ name: import("@sinclair/typebox").TString;
61
+ position: import("@sinclair/typebox").TString;
62
+ company: import("@sinclair/typebox").TString;
63
+ email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
64
+ phoneNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
65
+ relationship: import("@sinclair/typebox").TString;
66
+ }>>>;
67
+ }>;
68
+ export type CVschema = Static<typeof cvSchema>;
69
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datasources/internal/cv/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoNpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,QAAQ,CAAC,CAAC"}