@upstart.gg/sdk 0.0.76 → 0.0.78

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 (140) hide show
  1. package/dist/node/cli/api.js +1 -1
  2. package/dist/node/cli/commands/login/cmd-login.js +1 -1
  3. package/dist/node/cli/commands/publish/cmd-publish.js +1 -1
  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 +1 -1
  8. package/dist/node/shared/logger.js +1 -1
  9. package/dist/shared/attributes.d.ts +14 -5
  10. package/dist/shared/attributes.d.ts.map +1 -1
  11. package/dist/shared/attributes.js +1 -1
  12. package/dist/shared/brick-manifest.d.ts +3 -1
  13. package/dist/shared/brick-manifest.d.ts.map +1 -1
  14. package/dist/shared/brick-manifest.js +1 -1
  15. package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
  16. package/dist/shared/bricks/manifests/all-manifests.js +1 -1
  17. package/dist/shared/bricks/manifests/button.manifest.d.ts +49 -25
  18. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  19. package/dist/shared/bricks/manifests/button.manifest.js +1 -1
  20. package/dist/shared/bricks/manifests/card.manifest.d.ts +56 -38
  21. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  22. package/dist/shared/bricks/manifests/card.manifest.js +1 -1
  23. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +48 -18
  24. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  25. package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
  26. package/dist/shared/bricks/manifests/container.manifest.d.ts +155 -0
  27. package/dist/shared/bricks/manifests/container.manifest.d.ts.map +1 -0
  28. package/dist/shared/bricks/manifests/container.manifest.js +3 -0
  29. package/dist/shared/bricks/manifests/countdown.manifest.d.ts +14 -8
  30. package/dist/shared/bricks/manifests/countdown.manifest.d.ts.map +1 -1
  31. package/dist/shared/bricks/manifests/countdown.manifest.js +1 -1
  32. package/dist/shared/bricks/manifests/footer.manifest.d.ts +14 -8
  33. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  34. package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
  35. package/dist/shared/bricks/manifests/form.manifest.d.ts +14 -8
  36. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  37. package/dist/shared/bricks/manifests/form.manifest.js +1 -1
  38. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts +48 -18
  39. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts.map +1 -1
  40. package/dist/shared/bricks/manifests/generic-component.manifest.js +1 -1
  41. package/dist/shared/bricks/manifests/header.manifest.d.ts +14 -8
  42. package/dist/shared/bricks/manifests/header.manifest.d.ts.map +1 -1
  43. package/dist/shared/bricks/manifests/header.manifest.js +1 -1
  44. package/dist/shared/bricks/manifests/hero.manifest.d.ts +49 -25
  45. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  46. package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
  47. package/dist/shared/bricks/manifests/icon.manifest.d.ts +14 -8
  48. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  49. package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
  50. package/dist/shared/bricks/manifests/image.manifest.d.ts +16 -8
  51. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  52. package/dist/shared/bricks/manifests/image.manifest.js +1 -1
  53. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts +14 -8
  54. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts.map +1 -1
  55. package/dist/shared/bricks/manifests/images-wall.manifest.js +1 -1
  56. package/dist/shared/bricks/manifests/loop.manifest.d.ts +14 -2
  57. package/dist/shared/bricks/manifests/loop.manifest.d.ts.map +1 -1
  58. package/dist/shared/bricks/manifests/loop.manifest.js +1 -1
  59. package/dist/shared/bricks/manifests/map.manifest.d.ts +12 -0
  60. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  61. package/dist/shared/bricks/manifests/map.manifest.js +1 -1
  62. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +14 -8
  63. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  64. package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
  65. package/dist/shared/bricks/manifests/text.manifest.d.ts +48 -24
  66. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  67. package/dist/shared/bricks/manifests/text.manifest.js +1 -1
  68. package/dist/shared/bricks/manifests/video.manifest.d.ts +13 -1
  69. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  70. package/dist/shared/bricks/manifests/video.manifest.js +1 -1
  71. package/dist/shared/bricks/props/common.d.ts +19 -14
  72. package/dist/shared/bricks/props/common.d.ts.map +1 -1
  73. package/dist/shared/bricks/props/common.js +1 -1
  74. package/dist/shared/bricks/props/style-presets.d.ts +10 -0
  75. package/dist/shared/bricks/props/style-presets.d.ts.map +1 -0
  76. package/dist/shared/bricks/props/style-presets.js +3 -0
  77. package/dist/shared/bricks/props/style-props.d.ts +46 -8
  78. package/dist/shared/bricks/props/style-props.d.ts.map +1 -1
  79. package/dist/shared/bricks/props/style-props.js +1 -1
  80. package/dist/shared/bricks.d.ts +1242 -196
  81. package/dist/shared/bricks.d.ts.map +1 -1
  82. package/dist/shared/bricks.js +1 -1
  83. package/dist/shared/{chunk-5SAUZF4N.js → chunk-3PPIJUXG.js} +1 -1
  84. package/dist/shared/{chunk-HMO5CIER.js → chunk-3T2OW4FE.js} +1 -1
  85. package/dist/shared/{chunk-SN3PMMZ2.js → chunk-5PE57DBS.js} +2 -2
  86. package/dist/shared/chunk-6G2OUITX.js +3 -0
  87. package/dist/shared/chunk-AVHF4FLR.js +3 -0
  88. package/dist/shared/{chunk-MXONIPYM.js → chunk-G42AE2ZC.js} +1 -1
  89. package/dist/shared/chunk-G4K7GJZO.js +3 -0
  90. package/dist/shared/chunk-GBKDJDGW.js +3 -0
  91. package/dist/shared/{chunk-2CWDNNLG.js → chunk-GUOQD446.js} +1 -1
  92. package/dist/shared/chunk-MEMG6QPT.js +3 -0
  93. package/dist/shared/chunk-NYPOZ5T2.js +13 -0
  94. package/dist/shared/chunk-PZCWP77P.js +3 -0
  95. package/dist/shared/chunk-QQ7YEIHB.js +3 -0
  96. package/dist/shared/{chunk-VGBLZSS6.js → chunk-RRTB52G4.js} +1 -1
  97. package/dist/shared/chunk-UIKVMZNI.js +13 -0
  98. package/dist/shared/{chunk-FSUHIMOU.js → chunk-WGWJHVOE.js} +1 -1
  99. package/dist/shared/{chunk-LRO2KHWL.js → chunk-WX4P2YIR.js} +1 -1
  100. package/dist/shared/{chunk-A66YBEIK.js → chunk-WXSQ2ZEK.js} +1 -1
  101. package/dist/shared/{chunk-BIEJRPKG.js → chunk-XS5WCEA6.js} +1 -1
  102. package/dist/shared/{chunk-POE5KCOE.js → chunk-Y3TOGUNY.js} +2 -2
  103. package/dist/shared/{chunk-Z4THNQZ7.js → chunk-YSMFNK4R.js} +1 -1
  104. package/dist/shared/chunk-YXGFGLKH.js +16 -0
  105. package/dist/shared/chunk-ZDZXB45C.js +7 -0
  106. package/dist/shared/{chunk-RAFOQXXX.js → chunk-ZWYM64YA.js} +2 -2
  107. package/dist/shared/{chunk-GEODA2ON.js → chunk-ZYVXEGAM.js} +1 -1
  108. package/dist/shared/datarecords/external/airtable/handler.d.ts +8 -0
  109. package/dist/shared/datarecords/external/airtable/handler.d.ts.map +1 -0
  110. package/dist/shared/datarecords/external/airtable/options.d.ts +1 -2
  111. package/dist/shared/datarecords/external/airtable/options.d.ts.map +1 -1
  112. package/dist/shared/datarecords/external/generic-webhook/handler.d.ts +3 -0
  113. package/dist/shared/datarecords/external/generic-webhook/handler.d.ts.map +1 -0
  114. package/dist/shared/datarecords/external/generic-webhook/options.d.ts.map +1 -1
  115. package/dist/shared/datarecords/external/google/sheets/handler.d.ts +8 -0
  116. package/dist/shared/datarecords/external/google/sheets/handler.d.ts.map +1 -0
  117. package/dist/shared/datarecords/types.d.ts +2 -4
  118. package/dist/shared/datarecords/types.d.ts.map +1 -1
  119. package/dist/shared/datarecords/types.js +1 -1
  120. package/dist/shared/page.d.ts +1988 -381
  121. package/dist/shared/page.d.ts.map +1 -1
  122. package/dist/shared/page.js +1 -1
  123. package/dist/shared/tests/test-config.d.ts.map +1 -1
  124. package/dist/shared/theme.d.ts +48 -28
  125. package/dist/shared/theme.d.ts.map +1 -1
  126. package/dist/shared/theme.js +1 -1
  127. package/dist/shared/themes/all-themes.d.ts.map +1 -1
  128. package/dist/shared/themes/all-themes.js +1 -1
  129. package/dist/shared/themes/color-system.d.ts.map +1 -1
  130. package/dist/shared/themes/color-system.js +1 -1
  131. package/package.json +3 -3
  132. package/dist/shared/chunk-4H4VCOKB.js +0 -3
  133. package/dist/shared/chunk-6M2JPD36.js +0 -13
  134. package/dist/shared/chunk-7GCPTZVT.js +0 -3
  135. package/dist/shared/chunk-GCZ4WSX2.js +0 -3
  136. package/dist/shared/chunk-J45DOHTX.js +0 -16
  137. package/dist/shared/chunk-JSOZWQRQ.js +0 -3
  138. package/dist/shared/chunk-LR6R5QDM.js +0 -7
  139. package/dist/shared/chunk-PUHGH25O.js +0 -3
  140. package/dist/shared/chunk-TPVKGTAK.js +0 -3
@@ -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;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
+ {"version":3,"file":"bricks.d.ts","sourceRoot":"","sources":["../../src/shared/bricks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAuBtD;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqHtB,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,CAkCzE;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-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};
3
+ import{a,b,c,d}from"./chunk-6G2OUITX.js";import"./chunk-WX4P2YIR.js";import"./chunk-GBKDJDGW.js";import"./chunk-G42AE2ZC.js";import"./chunk-WXSQ2ZEK.js";import"./chunk-YSMFNK4R.js";import"./chunk-ZDZXB45C.js";import"./chunk-GUOQD446.js";import"./chunk-3PPIJUXG.js";import"./chunk-WGWJHVOE.js";import"./chunk-XS5WCEA6.js";import"./chunk-ZWYM64YA.js";import"./chunk-3T2OW4FE.js";import"./chunk-Y3TOGUNY.js";import"./chunk-ZYVXEGAM.js";import"./chunk-RRTB52G4.js";import"./chunk-NYPOZ5T2.js";import"./chunk-YXGFGLKH.js";import"./chunk-5PE57DBS.js";import"./chunk-UIKVMZNI.js";import"./chunk-QQ7YEIHB.js";import"./chunk-PXAK7ZJ3.js";import"./chunk-PZCWP77P.js";import"./chunk-MEMG6QPT.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 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">
3
+ import{a as p}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as o}from"./chunk-PZCWP77P.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
4
  <!-- Main container (centered) -->
5
5
  <rect x="2" y="6" width="20" height="12" rx="1" ry="1"></rect>
6
6
 
@@ -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-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">
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,f as o}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="11" width="18" height="8" rx="2" ry="2"></rect>
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
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">
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,h as o}from"./chunk-PZCWP77P.js";import{n as r}from"./chunk-MEMG6QPT.js";import{Type as c}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var l=i({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{j as i}from"./chunk-4H4VCOKB.js";import{a as o}from"./chunk-PUHGH25O.js";
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:c.Composite([r,t,i])}),g=n.Create(l);export{l as a,g as b};
15
+ `,props:c.Composite([t,o,r])}),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 g}from"./chunk-WX4P2YIR.js";import{b as M}from"./chunk-GBKDJDGW.js";import{a as P}from"./chunk-G42AE2ZC.js";import{a as k}from"./chunk-WXSQ2ZEK.js";import{a as L}from"./chunk-YSMFNK4R.js";import{a as x}from"./chunk-ZDZXB45C.js";import{a as B}from"./chunk-GUOQD446.js";import{a as f}from"./chunk-3PPIJUXG.js";import{a as c}from"./chunk-WGWJHVOE.js";import{a as b}from"./chunk-XS5WCEA6.js";import{a as j}from"./chunk-ZWYM64YA.js";import{a as h}from"./chunk-3T2OW4FE.js";import{a as u}from"./chunk-Y3TOGUNY.js";import{a as y}from"./chunk-ZYVXEGAM.js";import{a as O}from"./chunk-RRTB52G4.js";import{a as l}from"./chunk-NYPOZ5T2.js";import{a as m}from"./chunk-YXGFGLKH.js";import{a as d}from"./chunk-5PE57DBS.js";import{a as w}from"./chunk-UIKVMZNI.js";import{a}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as I}from"nanoid";var S=I("1234567890azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),D=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."}))}),T=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."}))}),v=e.Composite([e.Union([e.Object({type:e.Literal("button"),props:l.properties.props,mobileProps:e.Optional(e.Partial(l.properties.props))}),e.Object({type:e.Literal("card"),props:m.properties.props,mobileProps:e.Optional(e.Partial(m.properties.props))}),e.Object({type:e.Literal("carousel"),props:d.properties.props,mobileProps:e.Optional(e.Partial(d.properties.props))}),e.Object({type:e.Literal("countdown"),props:f.properties.props,mobileProps:e.Optional(e.Partial(f.properties.props))}),e.Object({type:e.Literal("footer"),props:c.properties.props,mobileProps:e.Optional(e.Partial(c.properties.props))}),e.Object({type:e.Literal("form"),props:b.properties.props,mobileProps:e.Optional(e.Partial(b.properties.props))}),e.Object({type:e.Literal("header"),props:h.properties.props,mobileProps:e.Optional(e.Partial(h.properties.props))}),e.Object({type:e.Literal("hero"),props:u.properties.props,mobileProps:e.Optional(e.Partial(u.properties.props))}),e.Object({type:e.Literal("icon"),props:y.properties.props,mobileProps:e.Optional(e.Partial(y.properties.props))}),e.Object({type:e.Literal("image"),props:O.properties.props,mobileProps:e.Optional(e.Partial(O.properties.props))}),e.Object({type:e.Literal("images-wall"),props:P.properties.props,mobileProps:e.Optional(e.Partial(P.properties.props))}),e.Object({type:e.Literal("map"),props:k.properties.props,mobileProps:e.Optional(e.Partial(k.properties.props))}),e.Object({type:e.Literal("social-links"),props:L.properties.props,mobileProps:e.Optional(e.Partial(L.properties.props))}),e.Object({type:e.Literal("text"),props:x.properties.props,mobileProps:e.Optional(e.Partial(x.properties.props))}),e.Object({type:e.Literal("video"),props:B.properties.props,mobileProps:e.Optional(e.Partial(B.properties.props))}),e.Object({type:e.Literal("html-element"),props:e.Record(e.String(),e.Any()),mobileProps:e.Optional(e.Record(e.String(),e.Any()))}),e.Object({type:e.Literal("generic-component"),props:j.properties.props,mobileProps:e.Optional(e.Partial(j.properties.props))}),e.Object({type:e.Literal("loop"),props:g.properties.props,mobileProps:e.Optional(e.Partial(g.properties.props))}),e.Object({type:e.Literal("container"),props:w.properties.props,mobileProps:e.Optional(e.Partial(w.properties.props))})]),e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),isContainer:e.Optional(e.Boolean({default:!1})),parentId:e.Optional(e.String()),hideInLibrary:e.Optional(e.Boolean()),position:e.Object({mobile:D,desktop:D},{title:"Position",description:"The position of the brick in the layout."})})]),re=e.Composite([e.Omit(v,["id","position","manifest"]),e.Object({position:e.Object({mobile:T,desktop:T})})]);function R(t,i,o=a){return{x:t.x==="quarter"?o[i]/4:t.x==="threeQuarter"?o[i]*.75:t.x==="half"?o[i]/2:t.x==="third"?o[i]/3:t.x==="twoThird"?o[i]*2/3:t.x,y:t.y,w:t.w==="full"?o[i]:t.w==="half"?o[i]/2:t.w==="third"?o[i]/3:t.w==="quarter"?o[i]/4:t.w==="twoThird"?o[i]*2/3:t.w==="threeQuarter"?o[i]*3/4:t.w,h:t.h,hidden:t.hidden}}function pe(t){return t.map(i=>{let o=`brick-${S()}`;return{id:o,...M[i.type],...i,props:{...i.props,..."children"in i.props?{children:i.props.children.map(p=>({id:`brick-${S()}`,...M[p.type],...p,parentId:o,..."position"in p?{}:{position:{mobile:{},desktop:{}}}}))}:{}},position:{mobile:R(i.position.mobile,"mobile"),desktop:R(i.position.desktop,"desktop")}}})}var s={mobile:0,desktop:0};function se(t,i={desktop:0,mobile:0}){let o=t.map((r,N)=>{let n={...r,id:`brick-${S()}`,position:{desktop:{...r.position.desktop,y:r.position.desktop.forceY??s.desktop},...r.position.mobile?{mobile:{...r.position.mobile,y:r.position.mobile.forceY??s.mobile}}:null}};return n.position.mobile?.w===a.mobile&&N!==t.length-1&&(s.mobile+=n.position.mobile.h),n}),p=Math.max(...t.map(r=>r.position.desktop?.h??i.desktop)),C=Math.max(...t.map(r=>r.position.mobile?.h??i.mobile));return s.desktop+=p,s.mobile+=C,o}export{S as a,v as b,pe as c,se as d};
@@ -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{i as s}from"./chunk-MEMG6QPT.js";import{Type as r}from"@sinclair/typebox";function p(t){return JSON.parse(JSON.stringify(t))}function b(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 p(r.Object({...g,...t}))}var a={string(t,e="",i){return r.String({title:t,default:e,...i})},number(t,e=0,i){return r.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let o={"ui:field":"switch"};return r.Boolean({title:t,default:e,...o,...i})},enum(t,e,i){let o={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:u,displayAs:c,...d}=i;return r.Union(u.map(n=>r.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,...o,...d})},file(t,e="",i={}){return r.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return r.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let o={"ui:field":"color"};return r.String({title:t,default:e,...o,...i})},date(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return r.Object({lat:r.Number({minimum:-90,maximum:90}),lng:r.Number({minimum:-180,maximum:180}),name:r.Optional(r.String({title:"Name"}))},{title:t,default:e,...i})}},g={$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":"Meta tags"}),$pageOgImage:a.string("Social share image","",{description:"Image shown when page is shared on social media","ui:group":"meta"}),$robotsIndexing:a.boolean("Allow search engines to index this site",!0,{description:"Disabling this will prevent search engines from indexing this site","ui:group":"seo","ui:group:title":"SEO","ui:scope":"site"}),$siteOgImage:a.string("Social share image","",{description:"Image shown when this site is shared on social media","ui:field":"image","ui:group":"meta","ui:group:title":"Meta tags","ui:scope":"site"}),$pagePath:a.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location"}),$pageTitle:a.string("Title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags",description:"The title of the page. Appears in the browser tab and search results."}),$pageDescription:a.string("Description","",{"ui:widget":"textarea","ui:group":"meta","ui:group:title":"Meta tags",description:"A short description of the page. Used by search engines."}),$pageKeywords:a.string("Keywords","",{"ui:group":"meta","ui:group:title":"Meta tags",description:"Keywords related to the page. Used by search engines."}),$pageLastUpdated:a.datetime("Last updated",void 0,{"ui:hidden":!0}),$pagePadding:r.Object({vertical:a.enum("Vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"Small"},{value:"20",title:"Medium"},{value:"30",title:"Large"},{value:"50",title:"Extra large"}],description:"Desktop only.",displayAs:"select","ui:group":"layout","ui:group:title":"Page Layout"}),horizontal:a.enum("Horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"Small"},{value:"20",title:"Medium"},{value:"30",title:"Large"},{value:"50",title:"Extra large"}],description:"Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout"})},{default:{vertical:"20",horizontal:"20"},"ui:field":"padding","ui:group":"layout","ui:group:title":"Layout"}),$pageWidth:a.enum("Page width","max-w-full",{options:[{value:"max-w-screen-lg",title:"Medium",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"Large",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"Extra large",description:"Common width"},{value:"max-w-full",title:"Full width",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only.",displayAs:"select","ui:group":"layout","ui:group:title":"Layout"}),$background:r.Composite([s,r.Object({},{title:"Background"})],{default:{color:"#ffffff",image:"https://placehold.co/400x200"},title:"Background","ui:field":"background","ui:show-img-search":!0,"ui:group":"background","ui:group:title":"Background","ui:group:order":4}),$textColor:a.color("Text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout","ui:color-type":"page-text"}),$siteHeadTags:r.Optional(r.String({title:"Head tags",description:"Add custom tags to the <head> of your site. Useful for analytics tags, custom scripts, etc.","ui:multiline":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"})),$siteBodyTags:r.Optional(r.String({title:"Body tags",description:"Add custom tags to the <body> of your site. Useful for analytics tags, custom scripts, etc.","ui:multiline":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"}))},S=r.Object(g);function v(t,e={}){let i=l.compile(t),o={...e};if(!i(o))throw console.log("invalid data attributes",o,i.errors),new Error(`Invalid attributes: ${i.errors}`);return o}export{b as a,a as b,S as c,v as d};
@@ -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}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">
3
+ import{a as o}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,f as r,h as i}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
 
@@ -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 l=[{value:"system-ui",label:"System UI"},{value:"transitional",label:"Transitional"},{value:"old-style",label:"Old style"},{value:"humanist",label:"Humanist"},{value:"geometric-humanist",label:"Geometric humanist"},{value:"classical-humanist",label:"Classical humanist"},{value:"neo-grotesque",label:"Neo-grotesque"},{value:"monospace-slab-serif",label:"Monospace slab serif"},{value:"monospace-code",label:"Monospace code"},{value:"industrial",label:"Industrial"},{value:"rounded-sans",label:"Rounded sans"},{value:"slab-serif",label:"Slab serif"},{value:"antique",label:"Antique"},{value:"didone",label:"Didone"},{value:"handwritten",label:"Handwritten"}],t=e.Object({type:e.Union([e.Literal("stack"),e.Literal("theme"),e.Literal("google")],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Headings font",description:"Used for titles and headings.",default:{type:"stack",family:"system-ui"}}),a=e.Object({type:e.Union([e.Literal("stack"),e.Literal("theme"),e.Literal("google")],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Body font",description:"Used for paragraphs and body text.",default:{type:"stack",family:"system-ui"}}),o=e.Object({id:e.String({title:"ID",description:"The unique identifier of the theme"}),name:e.String({title:"Name",description:"The name of the theme"}),description:e.Optional(e.String({title:"Description",description:"The description of the theme"})),tags:e.Optional(e.Array(e.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:e.Object({primary:e.String({title:"Primary color",description:"The brand's primary color"}),secondary:e.String({title:"Secondary color",description:"The brand's second most used color"}),accent:e.String({title:"Accent color",description:"The brand's least used color"}),neutral:e.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:e.Object({base:e.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t,body:a,alternatives:e.Optional(e.Array(e.Object({body:a,heading:t}),{title:"Alternative fonts that can be suggested to the user"}))})},{$id:"Theme"}),n=e.Array(o);export{l as a,o as b,n as c};
@@ -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,b as p}from"./chunk-G42AE2ZC.js";import{a as R,b as l}from"./chunk-WXSQ2ZEK.js";import{a as S,b as u}from"./chunk-YSMFNK4R.js";import{a as W,b as y}from"./chunk-ZDZXB45C.js";import{a as j,b as d}from"./chunk-GUOQD446.js";import{a as x,b as s}from"./chunk-3PPIJUXG.js";import{a as b,b as f}from"./chunk-WGWJHVOE.js";import{a as h,b as i}from"./chunk-XS5WCEA6.js";import{a as z,b as M}from"./chunk-ZWYM64YA.js";import{a as B,b as o}from"./chunk-3T2OW4FE.js";import{a as v,b as m}from"./chunk-Y3TOGUNY.js";import{a as w,b as r}from"./chunk-ZYVXEGAM.js";import{a as C,b as n}from"./chunk-RRTB52G4.js";import{a as D,b as t}from"./chunk-NYPOZ5T2.js";import{a as g,b as e}from"./chunk-YXGFGLKH.js";import{a as k,b as a}from"./chunk-5PE57DBS.js";import{a as q,b as c}from"./chunk-UIKVMZNI.js";var Z={[m.type]:v,[n.type]:C,[y.type]:W,[d.type]:j,[e.type]:g,[l.type]:R,[i.type]:h,[p.type]:L,[a.type]:k,[o.type]:B,[f.type]:b,[t.type]:D,[r.type]:w,[u.type]:S,[s.type]:x,[M.type]:z,[c.type]:q},_={[m.type]:m,[n.type]:n,[y.type]:y,[d.type]:d,[e.type]:e,[l.type]:l,[i.type]:i,[p.type]:p,[a.type]:a,[o.type]:o,[f.type]:f,[t.type]:t,[r.type]:r,[u.type]:u,[s.type]:s,[M.type]:M,[c.type]:c};export{Z as a,_ 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}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:`
3
+ import{a as o}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as i}from"./chunk-PZCWP77P.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"},l={"ui:group":"effects","ui:group:title":"Effects"},a={"ui:group":"colors","ui:group:title":"Colors","ui:group:order":2},r={"ui:group":"layout","ui:group:title":"Layout","ui:group:order":0},n=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}),u=t.String({$id:"borderColor",default:"transparent",title:"Border color","ui:field":"color","ui:color-type":"border",...e}),d=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}),p=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:p,style:d,color:u,width:n},{title:"Border style","ui:field":"border","ui:group":"borders","ui:group:title":"Borders",default:{radius:"rounded-none",style:"border-solid",color:"#000000",width:"border-0"}})),c=t.Union([t.Literal("p-0",{title:"None"}),t.Literal("p-1",{title:"Small"}),t.Literal("p-2",{title:"Medium"}),t.Literal("p-4",{title:"Large"}),t.Literal("p-8",{title:"Extra large"}),t.Literal("p-16",{title:"Extra large (v2)"})],{$id:"padding",default:"p-2",title:"Padding",description:"Space between the content and the border","ui:field":"enum","ui:display":"select",...i}),g=t.Object({height:t.Optional(t.Union([t.Literal("fixed",{title:"Fixed"}),t.Literal("auto",{title:"Auto"})])),padding:t.Optional(c)},{title:"Layout","ui:field":"layout",...r,default:{padding:"p-2",height:"fixed"}}),O=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}),j=t.String({$id:"backgroundColor",default:"transparent",title:"Background color","ui:field":"color","ui:color-type":"background",...a}),f=t.Object({color:t.Optional(t.String({default:"transparent",title:"Color"})),image:t.Optional(t.String({default:"https://placehold.co/400x200",title:"Image"})),size:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("cover",{title:"Cover"}),t.Literal("contain",{title:"Contain"})],{default:"auto"})),repeat:t.Optional(t.Union([t.Literal("no-repeat",{title:"No repeat"}),t.Literal("repeat",{title:"Repeat"}),t.Literal("repeat-x",{title:"Repeat horizontally"}),t.Literal("repeat-y",{title:"Repeat vertically"}),t.Literal("space",{title:"Space"}),t.Literal("round",{title:"Round"})],{default:"no-repeat"}))},{"ui:field":"background","ui:group":"background","ui:group:title":"Background","ui:show-img-search":!0,title:"Background",default:{size:"auto",repeat:"no-repeat"}}),x=t.Optional(t.Number({$id:"opacity",minimum:.1,maximum:1,default:1,multipleOf:.1,title:"Opacity",description:"Global opacity","ui:field":"slider",...l})),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",...l}),m=t.Optional(t.Object({shadow:L,opacity:x},{title:"Effects","ui:field":"effects","ui:group":"effects","ui:group:title":"Effects",default:{shadow:"shadow-none",opacity:1}})),y=t.Object({direction:t.Union([t.Literal("flex-row",{title:"Row"}),t.Literal("flex-col",{title:"Column"})],{title:"Direction",description:"The direction of the container","ui:field":"enum","ui:display":"button-group","ui:group":"layout"}),wrap:t.Union([t.Literal("flex-wrap",{title:"Wrap"}),t.Literal("flex-nowrap",{title:"No wrap"})],{title:"Wrap",description:"Wrap items","ui:field":"enum","ui:display":"button-group","ui:group":"layout"}),justify:t.Union([t.Literal("justify-start",{title:"Start"}),t.Literal("justify-center",{title:"Center"}),t.Literal("justify-end",{title:"End"}),t.Literal("justify-between",{title:"Between"}),t.Literal("justify-around",{title:"Around"}),t.Literal("justify-evenly",{title:"Evenly"})],{title:"Justify",description:"Justify content","ui:field":"enum","ui:group":"layout"}),align:t.Union([t.Literal("items-start",{title:"Start"}),t.Literal("items-center",{title:"Center"}),t.Literal("items-end",{title:"End"}),t.Literal("items-baseline",{title:"Baseline"}),t.Literal("items-stretch",{title:"Stretch"})],{title:"Align",description:"Align items","ui:field":"enum","ui:group":"layout"}),gap:t.Union([t.Literal("gap-0",{title:"None"}),t.Literal("gap-1",{title:"Small"}),t.Literal("gap-2",{title:"Medium"}),t.Literal("gap-4",{title:"Large"}),t.Literal("gap-8",{title:"Extra large"}),t.Literal("gap-16",{title:"Extra large (2x)"})],{title:"Gap",description:"Space between items","ui:field":"enum","ui:group":"layout"})},{title:"Layout","ui:field":"flex",default:{direction:"flex-row",gap:"gap-1",wrap:"flex-wrap",justify:"justify-start",align:"items-stretch"},...r}),U=t.Object({flex:y,children:t.Array(t.Any(),{"ui:field":"hidden"})}),o=t.Union([t.Literal("inherit",{title:"Inherit from page/container"}),t.Literal("text-xs",{title:"Extra small"}),t.Literal("text-sm",{title:"Small"}),t.Literal("text-base",{title:"Base size"}),t.Literal("text-lg",{title:"Large"}),t.Literal("text-xl",{title:"Extra large"}),t.Literal("text-2xl",{title:"Extra large (x2)"}),t.Literal("text-3xl",{title:"Extra large (x3)"}),t.Literal("text-4xl",{title:"Extra large (x4)"}),t.Literal("text-5xl",{title:"Extra large (x5)"}),t.Literal("text-6xl",{title:"Extra large (x6)"}),t.Literal("text-7xl",{title:"Extra large (x7)"})],{default:"inherit",title:"Default size","ui:field":"enum","ui:display":"select","ui:group":"text"}),b=t.Object({size:o,color:t.Optional(t.String({default:"transparent",title:"Default Color","ui:field":"color","ui:color-type":"text"}))},{title:"Text style","ui:group":"text","ui:group:title":"Text",default:{size:"text-base",color:"inherit"}}),C=t.Object({dimensions:g,border:s,effects:m,background:f,text:b}),h=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"})),S=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"}),w=t.String({$id:"color",default:"transparent",title:"Text color","ui:field":"color","ui:color-type":"text","ui:group":"text"}),B=t.Object({color:w,textAlign:h,fontSize:o,fontWeight:S});export{n as a,u as b,d as c,p as d,s as e,c as f,g,j as h,f as i,m as j,y as k,U as l,b as m,C as n,w as o,B as p};
@@ -0,0 +1,13 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as r}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as i}from"./chunk-PZCWP77P.js";import{n as o}from"./chunk-MEMG6QPT.js";import{Type as n}from"@sinclair/typebox";import{Value as p}from"@sinclair/typebox/value";var m=r({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([i,e,o])}),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{Type as e}from"@sinclair/typebox";var t=e.Object({style:e.Union([e.Literal("ghost",{title:"Ghost",description:"Minimal style with transparent background and no border"}),e.Literal("plain",{title:"Plain",description:"Simple style with solid dark background and basic border"}),e.Literal("plain2",{title:"Plain 2",description:"Simple style with solid dark background and basic border"}),e.Literal("plain3",{title:"Plain 3",description:"Simple style with solid dark background and basic border"}),e.Literal("modern",{title:"Modern",description:"Bold borders with generous spacing and sharp corners"}),e.Literal("modern2",{title:"Modern 2",description:"Bold borders with generous spacing and sharp corners"}),e.Literal("soft",{title:"Soft",description:"Gentle curves and muted colors for a comfortable feel"}),e.Literal("glass",{title:"Glass",description:"Translucent backdrop with blur effect for depth"}),e.Literal("elevated",{title:"Elevated",description:"Floating appearance with shadow depth and no borders"}),e.Literal("outlined",{title:"Outlined",description:"Simple outline with hover effect and no background"}),e.Literal("paper",{title:"Paper",description:"Subtle texture and slight rotation for a paper-like appearance"}),e.Literal("gradient",{title:"Gradient",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient2",{title:"Gradient 2",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient3",{title:"Gradient 3",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient4",{title:"Gradient 4",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient5",{title:"Gradient 5",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient6",{title:"Gradient 6",description:"Smooth color gradients background with soft edges"}),e.Literal("callout",{title:"Callout",description:"Prominent style for important information or CTAs"})]),variant:e.Union([e.Literal("primary",{title:"Primary",description:"Uses the theme primary color as the main color"}),e.Literal("secondary",{title:"Secondary",description:"Uses the theme secondary color as the main color"}),e.Literal("accent",{title:"Accent",description:"Uses the theme accent color as the main color"}),e.Literal("neutral",{title:"Neutral",description:"Uses the theme neutral color as the main color"})])},{"ui:field":"hidden"}),n=e.Object({id:e.String({title:"Brick ID","ui:field":"hidden"}),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"}),stylePreset:t}),i=e.String({default:"some text here","ui:field":"hidden","ui:group":"content","ui:group:title":"Content","ui:group:order":3}),r=e.String({default:"<h1>some text here</h1>","ui:field":"hidden","ui:paragraph-mode":"hero","ui:group":"content","ui:group:title":"Content","ui:group:order":3}),o=e.Object({src:e.String({default:"/placeholder.svg",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}),l=e.Object(o.properties,{default:{src:"https://placehold.co/400x200",alt:"my image"}}),d=e.Object({content:i}),s=e.Object({content:r}),c=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{t as a,n as b,i as c,r as d,l as e,d as f,s as g,c as h};
@@ -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 y({type:d,kind:b,title:p,description:s,preferredWidth:m,preferredHeight:l,minWidth:i,minHeight:r,maxWidth:a,icon:u,props:c,datasource:o,datarecord:n,isContainer:f,hideInLibrary:k}){return e.Object({type:e.Literal(d),kind:e.Literal(b),title:e.Literal(p),description:e.Literal(s),icon:e.Literal(u),hideInLibrary:e.Boolean({default:k??!1}),isContainer:e.Boolean({default:f??!1}),preferredWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:m??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:a??{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:c})}export{y as a};
@@ -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}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:`
3
+ import{a as o}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,e as i}from"./chunk-PZCWP77P.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
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
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
  <circle cx="8.5" cy="8.5" r="1.5"></circle>
@@ -0,0 +1,13 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as r}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as i}from"./chunk-PZCWP77P.js";import{l as o,n as t}from"./chunk-MEMG6QPT.js";import{Type as n}from"@sinclair/typebox";import{Value as l}from"@sinclair/typebox/value";var p=r({type:"container",kind:"brick",title:"Container",description:"A container that can hold other bricks and align them horizontally or vertically",isContainer:!0,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
+ <!-- Horizontal line -->
8
+ <line x1="3" y1="12" x2="21" y2="12"></line>
9
+
10
+ <!-- Vertical line -->
11
+ <line x1="12" y1="3" x2="12" y2="21"></line>
12
+ </svg>
13
+ `,props:n.Composite([o,i,t])}),g=l.Create(p);export{p as a,g 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}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">
3
+ import{a as o}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as i,f as t}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="12" width="18" height="8" rx="2" ry="2"></rect>
6
6
 
@@ -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-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">
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as o}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
 
@@ -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}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">
3
+ import{a as o}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
 
@@ -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-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">
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as o,h as r}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
 
@@ -1,9 +1,9 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
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:`
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as o,g as r}from"./chunk-PZCWP77P.js";import{n as t}from"./chunk-MEMG6QPT.js";import{Type as p}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";var s=i({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
4
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
5
5
  <rect x="10" y="10" width="80" height="80" rx="4" fill="none" stroke="currentColor" stroke-width="3"/>
6
6
  <rect x="20" y="35" width="60" height="12" rx="2" fill="currentColor"/>
7
7
  <rect x="20" y="52" width="40" height="12" rx="2" fill="currentColor"/>
8
8
  </svg>
9
- `,props:p.Composite([o,t,i])}),a=m.Create(s);export{s as a,a as b};
9
+ `,props:p.Composite([r,o,t])}),x=m.Create(s);export{s as a,x 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 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">
3
+ import{a as t}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as i,f as o}from"./chunk-PZCWP77P.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
4
  <!-- Main container -->
5
5
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
6
 
@@ -0,0 +1,16 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as d}from"./chunk-QQ7YEIHB.js";import{a as r}from"./chunk-PXAK7ZJ3.js";import{b as n}from"./chunk-PZCWP77P.js";import{f as t,h as i,n as o}from"./chunk-MEMG6QPT.js";import{Type as e}from"@sinclair/typebox";import{Value as l}from"@sinclair/typebox/value";var p=d({type:"card",kind:"widget",title:"Card",description:"A multi-purpose card that can have a title, subtitle, image, and content",preferredWidth:{mobile:r.mobile/2,desktop:r.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([n,o,e.Object({cardTitle:e.Object({content:e.String({"ui:field":"hidden","ui:group":"card-title","ui:group:title":"Title","ui:group:order":0}),padding:t,backgroundColor:i},{title:"Title","ui:group":"card-title","ui:group:title":"Title","ui:group:order":0,default:"Edit my title"}),cardImage:e.Optional(e.Object({image:e.String({title:"Image","ui:field":"image","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.String({"ui:field":"hidden","ui:group":"card-body","ui:group:title":"Body","ui:group:order":0}),padding:t,backgroundColor:i},{title:"Body","ui:group":"card-body","ui:group:title":"Body","ui:group:order":0,default:{content:"Edit my content"}})})])}),x=l.Create(p);export{p as a,x as b};
@@ -0,0 +1,7 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
+
3
+ import{a as r}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as i}from"./chunk-PZCWP77P.js";import{n as o}from"./chunk-MEMG6QPT.js";import{Type as p}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";var n=r({type:"text",kind:"brick",title:"Text",description:"Text with formatting options",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
+ <path d="M4 7h16M4 12h16M4 17h16"></path>
6
+ </svg>
7
+ `,props:p.Composite([e,i,o])}),h=m.Create(n);export{n as a,h as b};
@@ -1,8 +1,8 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
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:`
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as r}from"./chunk-PZCWP77P.js";import{n as o}from"./chunk-MEMG6QPT.js";import{Type as e}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var p=i({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
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
5
  <rect x="4" y="11" width="16" height="6" rx="2"></rect>
6
6
  <line x1="9" y1="14" x2="15" y2="14"></line>
7
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};
8
+ `,props:e.Composite([r,o,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 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:`
3
+ import{a as i}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as o}from"./chunk-PZCWP77P.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
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
5
  <!-- Main container -->
6
6
  <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
@@ -0,0 +1,8 @@
1
+ import type { AirtableOptions } from "./options";
2
+ /**
3
+ * WARNING: not tested yet!!
4
+ *
5
+ * @todo test this function in a real environment
6
+ */
7
+ export default function airtableHandler(formData: FormData, options: AirtableOptions): Promise<boolean>;
8
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +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,9 +1,8 @@
1
1
  import { type Static } from "@sinclair/typebox";
2
2
  export declare const airtableOptions: import("@sinclair/typebox").TObject<{
3
- apiKey: import("@sinclair/typebox").TString;
3
+ accessToken: import("@sinclair/typebox").TString;
4
4
  baseId: import("@sinclair/typebox").TString;
5
5
  tableIdOrName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
6
- view: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
6
  }>;
8
7
  export type AirtableOptions = Static<typeof airtableOptions>;
9
8
  //# 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;;;;;EAuB1B,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;;;;EAiB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { GenericWebhookOptions } from "./options";
2
+ export default function genericWebhookHandler(formData: FormData, options: GenericWebhookOptions): Promise<boolean>;
3
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/generic-webhook/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,wBAA8B,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,oBAOrG"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/generic-webhook/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,qBAAqB;;;EAGhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datarecords/external/generic-webhook/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,qBAAqB;;;EAQhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { GoogleSheetsOptions } from "./options";
2
+ /**
3
+ * WARNING: not tested yet!!
4
+ *
5
+ * @todo test this function in a real environment
6
+ */
7
+ export default function googleSheetsHandler(formData: FormData, options: GoogleSheetsOptions, accessToken: string): Promise<boolean>;
8
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datarecords/external/google/sheets/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD;;;;GAIG;AACH,wBAA8B,mBAAmB,CAC/C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,mBAAmB,EAC5B,WAAW,EAAE,MAAM,oBAepB"}
@@ -9,10 +9,9 @@ declare const datarecordManifest: import("@sinclair/typebox").TObject<{
9
9
  spreadsheetId: import("@sinclair/typebox").TString;
10
10
  sheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
11
  }>, import("@sinclair/typebox").TObject<{
12
- apiKey: import("@sinclair/typebox").TString;
12
+ accessToken: import("@sinclair/typebox").TString;
13
13
  baseId: import("@sinclair/typebox").TString;
14
14
  tableIdOrName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
15
- view: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
16
15
  }>]>;
17
16
  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">]>;
18
17
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -27,10 +26,9 @@ export declare const datarecordsMap: import("@sinclair/typebox").TRecord<import(
27
26
  spreadsheetId: import("@sinclair/typebox").TString;
28
27
  sheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
29
28
  }>, import("@sinclair/typebox").TObject<{
30
- apiKey: import("@sinclair/typebox").TString;
29
+ accessToken: import("@sinclair/typebox").TString;
31
30
  baseId: import("@sinclair/typebox").TString;
32
31
  tableIdOrName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
33
- view: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
34
32
  }>]>;
35
33
  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">]>;
36
34
  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,0PAO1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAyBjE,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAStB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;GAGzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI;KACxD,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO;CACxB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datarecords/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,eAAe,0PAO1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAyBjE,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;EAStB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;GAGzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI;KACxD,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO;CACxB,CAAC"}
@@ -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";import{Type as e}from"@sinclair/typebox";var i=e.Object({apiKey:e.String({pattern:"^pat[A-Za-z0-9]+$",description:'Airtable Personal Access Token starting with "pat"'}),baseId:e.String({pattern:"^app[A-Za-z0-9]+$",description:'Airtable Base ID starting with "app"'}),tableIdOrName:e.Union([e.String({pattern:"^tbl[A-Za-z0-9]+$",description:'Airtable Table ID starting with "tbl"'}),e.String({description:"Table name as shown in Airtable interface"})]),view:e.Optional(e.String({description:"Optional view name or ID"}))});import{Type as r}from"@sinclair/typebox";var a=r.Object({spreadsheetId:r.String(),sheetName:r.Optional(r.String())});import{Type as o}from"@sinclair/typebox";var n=o.Object({url:o.String({format:"uri"}),headers:o.Optional(o.Record(o.String(),o.String()))});var f=t.Union([t.Literal("airtable"),t.Literal("google-sheets"),t.Literal("generic-webhook"),t.Literal("internal")]),p=t.Union([t.Object({provider:t.Literal("airtable"),options:i}),t.Object({provider:t.Literal("google-sheets"),options:a}),t.Object({provider:t.Literal("generic-webhook"),options:n}),t.Object({provider:t.Literal("internal"),options:t.Any(),schema:t.Union([t.Array(t.Object({},{additionalProperties:!0})),t.Object({},{additionalProperties:!0})])})]),s=t.Composite([p,t.Object({name:t.String({title:"Name of the datarecord",comment:"For example, 'Newsletter Subscriptions'"}),description:t.Optional(t.String({title:"Description of the datarecord"}))})]),x=t.Record(t.String(),s,{title:"Datarecords map",description:"The map of Datarecords available"});export{f as connectorSchema,x as datarecordsMap};
3
+ import{Type as t}from"@sinclair/typebox";import{Type as e}from"@sinclair/typebox";var i=e.Object({accessToken:e.String({description:"Airtable Personal Token or OAuth Access Token"}),baseId:e.String({pattern:"^app[A-Za-z0-9]+$",description:'Airtable Base ID starting with "app"'}),tableIdOrName:e.Union([e.String({pattern:"^tbl[A-Za-z0-9]+$",description:'Airtable Table ID starting with "tbl"'}),e.String({description:"Table name as shown in Airtable interface"})])});import{Type as r}from"@sinclair/typebox";var a=r.Object({spreadsheetId:r.String(),sheetName:r.Optional(r.String())});import{Type as o}from"@sinclair/typebox";var n=o.Object({url:o.String({format:"uri",title:"Webhook URL"}),headers:o.Optional(o.Record(o.String(),o.String(),{title:"Headers",description:"Additional headers to include in the webhook request"}))});var f=t.Union([t.Literal("airtable"),t.Literal("google-sheets"),t.Literal("generic-webhook"),t.Literal("internal")]),p=t.Union([t.Object({provider:t.Literal("airtable"),options:i}),t.Object({provider:t.Literal("google-sheets"),options:a}),t.Object({provider:t.Literal("generic-webhook"),options:n}),t.Object({provider:t.Literal("internal"),options:t.Any(),schema:t.Union([t.Array(t.Object({},{additionalProperties:!0})),t.Object({},{additionalProperties:!0})])})]),s=t.Composite([p,t.Object({name:t.String({title:"Name of the datarecord",comment:"For example, 'Newsletter Subscriptions'"}),description:t.Optional(t.String({title:"Description of the datarecord"}))})]),x=t.Record(t.String(),s,{title:"Datarecords map",description:"The map of Datarecords available"});export{f as connectorSchema,x as datarecordsMap};