@upstart.gg/sdk 0.0.79 → 0.0.80

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 (204) hide show
  1. package/dist/node/cli/api.js +2 -2
  2. package/dist/node/cli/commands/login/cmd-login.js +7 -7
  3. package/dist/node/cli/commands/logout/cmd-logout.js +2 -2
  4. package/dist/node/cli/commands/publish/cmd-publish.js +18 -18
  5. package/dist/node/cli/commands/publish/parse-gitignore.d.ts +1 -1
  6. package/dist/node/cli/commands/publish/parse-gitignore.js +1 -1
  7. package/dist/node/cli/commands/publish/uploader.js +5 -5
  8. package/dist/node/cli/constants.d.ts +2 -2
  9. package/dist/node/cli/constants.d.ts.map +1 -1
  10. package/dist/node/cli/constants.js +1 -1
  11. package/dist/node/cli/is-logged-in.js +2 -2
  12. package/dist/node/cli/program.js +15 -15
  13. package/dist/node/cli/store.js +1 -1
  14. package/dist/node/shared/config.d.ts +1 -1
  15. package/dist/node/shared/config.d.ts.map +1 -1
  16. package/dist/node/shared/config.js +5 -5
  17. package/dist/node/shared/logger.d.ts +2 -2
  18. package/dist/node/shared/logger.d.ts.map +1 -1
  19. package/dist/node/shared/logger.js +2 -2
  20. package/dist/shared/attributes.d.ts +11 -32
  21. package/dist/shared/attributes.d.ts.map +1 -1
  22. package/dist/shared/attributes.js +1 -1
  23. package/dist/shared/brick-manifest.d.ts +6 -2
  24. package/dist/shared/brick-manifest.d.ts.map +1 -1
  25. package/dist/shared/brick-manifest.js +1 -1
  26. package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
  27. package/dist/shared/bricks/manifests/all-manifests.js +1 -1
  28. package/dist/shared/bricks/manifests/button.manifest.d.ts +2 -1
  29. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  30. package/dist/shared/bricks/manifests/button.manifest.js +1 -1
  31. package/dist/shared/bricks/manifests/card.manifest.d.ts +22 -1
  32. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  33. package/dist/shared/bricks/manifests/card.manifest.js +1 -1
  34. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +2 -1
  35. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  36. package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
  37. package/dist/shared/bricks/manifests/container.manifest.d.ts +134 -15
  38. package/dist/shared/bricks/manifests/container.manifest.d.ts.map +1 -1
  39. package/dist/shared/bricks/manifests/container.manifest.js +1 -1
  40. package/dist/shared/bricks/manifests/countdown.manifest.d.ts +2 -1
  41. package/dist/shared/bricks/manifests/countdown.manifest.d.ts.map +1 -1
  42. package/dist/shared/bricks/manifests/countdown.manifest.js +1 -1
  43. package/dist/shared/bricks/manifests/footer.manifest.d.ts +8 -1
  44. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  45. package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
  46. package/dist/shared/bricks/manifests/form.manifest.d.ts +2 -1
  47. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  48. package/dist/shared/bricks/manifests/form.manifest.js +1 -1
  49. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts +2 -1
  50. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts.map +1 -1
  51. package/dist/shared/bricks/manifests/generic-component.manifest.js +1 -1
  52. package/dist/shared/bricks/manifests/header.manifest.d.ts +121 -6
  53. package/dist/shared/bricks/manifests/header.manifest.d.ts.map +1 -1
  54. package/dist/shared/bricks/manifests/header.manifest.js +1 -1
  55. package/dist/shared/bricks/manifests/hero.manifest.d.ts +68 -37
  56. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  57. package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
  58. package/dist/shared/bricks/manifests/icon.manifest.d.ts +2 -1
  59. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  60. package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
  61. package/dist/shared/bricks/manifests/image.manifest.d.ts +19 -6
  62. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  63. package/dist/shared/bricks/manifests/image.manifest.js +1 -1
  64. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +184 -0
  65. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -0
  66. package/dist/shared/bricks/manifests/images-gallery.manifest.js +3 -0
  67. package/dist/shared/bricks/manifests/map.manifest.d.ts +2 -1
  68. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  69. package/dist/shared/bricks/manifests/map.manifest.js +1 -1
  70. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +57 -0
  71. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -0
  72. package/dist/shared/bricks/manifests/sidebar.manifest.js +3 -0
  73. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +2 -1
  74. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  75. package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
  76. package/dist/shared/bricks/manifests/text.manifest.d.ts +39 -4
  77. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  78. package/dist/shared/bricks/manifests/text.manifest.js +1 -1
  79. package/dist/shared/bricks/manifests/video.manifest.d.ts +2 -1
  80. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  81. package/dist/shared/bricks/manifests/video.manifest.js +1 -1
  82. package/dist/shared/bricks/props/_docs-common-styles.d.ts +59 -0
  83. package/dist/shared/bricks/props/_docs-common-styles.d.ts.map +1 -0
  84. package/dist/shared/bricks/props/_docs-common-styles.js +3 -0
  85. package/dist/shared/bricks/props/align.js +1 -1
  86. package/dist/shared/bricks/props/background.d.ts.map +1 -1
  87. package/dist/shared/bricks/props/background.js +1 -1
  88. package/dist/shared/bricks/props/boolean.js +1 -1
  89. package/dist/shared/bricks/props/border.d.ts +10 -10
  90. package/dist/shared/bricks/props/border.d.ts.map +1 -1
  91. package/dist/shared/bricks/props/border.js +1 -1
  92. package/dist/shared/bricks/props/container.d.ts +43 -20
  93. package/dist/shared/bricks/props/container.d.ts.map +1 -1
  94. package/dist/shared/bricks/props/container.js +1 -1
  95. package/dist/shared/bricks/props/datasource.js +1 -1
  96. package/dist/shared/bricks/props/effects.d.ts +18 -0
  97. package/dist/shared/bricks/props/effects.d.ts.map +1 -1
  98. package/dist/shared/bricks/props/effects.js +1 -1
  99. package/dist/shared/bricks/props/helpers.d.ts +2 -1
  100. package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
  101. package/dist/shared/bricks/props/helpers.js +1 -1
  102. package/dist/shared/bricks/props/image.d.ts.map +1 -1
  103. package/dist/shared/bricks/props/image.js +1 -1
  104. package/dist/shared/bricks/props/number.js +1 -1
  105. package/dist/shared/bricks/props/padding.d.ts.map +1 -1
  106. package/dist/shared/bricks/props/padding.js +1 -1
  107. package/dist/shared/bricks/props/position.js +1 -1
  108. package/dist/shared/bricks/props/string.js +1 -1
  109. package/dist/shared/bricks/props/text.d.ts +1 -2
  110. package/dist/shared/bricks/props/text.d.ts.map +1 -1
  111. package/dist/shared/bricks/props/text.js +1 -1
  112. package/dist/shared/bricks/props/types.d.ts +2 -2
  113. package/dist/shared/bricks/props/types.d.ts.map +1 -1
  114. package/dist/shared/bricks.d.ts +59 -8
  115. package/dist/shared/bricks.d.ts.map +1 -1
  116. package/dist/shared/bricks.js +1 -1
  117. package/dist/shared/chunk-3CY6AZG7.js +3 -0
  118. package/dist/shared/chunk-3YDMOB7M.js +3 -0
  119. package/dist/shared/chunk-6I4PY5WS.js +3 -0
  120. package/dist/shared/chunk-AZ63RF3K.js +3 -0
  121. package/dist/shared/chunk-BK6LBWDI.js +3 -0
  122. package/dist/shared/chunk-BMDB2V7J.js +3 -0
  123. package/dist/shared/chunk-CSBX76ZN.js +3 -0
  124. package/dist/shared/chunk-DAPQ4JPP.js +3 -0
  125. package/dist/shared/chunk-EFJQECVB.js +3 -0
  126. package/dist/shared/chunk-F2ZVIFHO.js +3 -0
  127. package/dist/shared/{chunk-346JVEOR.js → chunk-FGU4BGP4.js} +1 -1
  128. package/dist/shared/chunk-H6L4KRCJ.js +3 -0
  129. package/dist/shared/{chunk-764EAJFR.js → chunk-HIZPJNEM.js} +1 -1
  130. package/dist/shared/chunk-HW5TY2QW.js +3 -0
  131. package/dist/shared/chunk-IWSVY2VC.js +3 -0
  132. package/dist/shared/{chunk-4EEQT7D6.js → chunk-JVDUEZYO.js} +1 -1
  133. package/dist/shared/chunk-KB4HY432.js +3 -0
  134. package/dist/shared/chunk-LDOM2LJF.js +3 -0
  135. package/dist/shared/chunk-NFU5BF6G.js +3 -0
  136. package/dist/shared/chunk-P5FVZ5PL.js +3 -0
  137. package/dist/shared/chunk-P7WL7MYK.js +3 -0
  138. package/dist/shared/chunk-PD7P5KSV.js +3 -0
  139. package/dist/shared/chunk-PJ6HA55L.js +3 -0
  140. package/dist/shared/{chunk-OMOYRWNX.js → chunk-Q4MXTCE4.js} +1 -1
  141. package/dist/shared/chunk-QRBMK5UX.js +3 -0
  142. package/dist/shared/{chunk-2Y3ZNNGU.js → chunk-RBYYMUOZ.js} +1 -1
  143. package/dist/shared/chunk-SO5M7CYA.js +3 -0
  144. package/dist/shared/{chunk-M4CXYZTI.js → chunk-SQVL4WSX.js} +1 -1
  145. package/dist/shared/chunk-TQ23UATQ.js +3 -0
  146. package/dist/shared/chunk-U44NTSIO.js +3 -0
  147. package/dist/shared/chunk-U4R5EGBK.js +3 -0
  148. package/dist/shared/{chunk-BNKXJJ2R.js → chunk-WJ5CDDXW.js} +1 -1
  149. package/dist/shared/chunk-WOEBR25A.js +3 -0
  150. package/dist/shared/chunk-WPTVLIYS.js +3 -0
  151. package/dist/shared/{chunk-3EUA65QC.js → chunk-XBX6II3M.js} +1 -1
  152. package/dist/shared/chunk-XEQ2XZLQ.js +3 -0
  153. package/dist/shared/chunk-XGCBIXOO.js +3 -0
  154. package/dist/shared/chunk-XYID4ZEA.js +3 -0
  155. package/dist/shared/datarecords/types.d.ts +2 -2
  156. package/dist/shared/datasources/types.d.ts +2 -2
  157. package/dist/shared/env.d.ts +6 -6
  158. package/dist/shared/env.d.ts.map +1 -1
  159. package/dist/shared/layout-constants.js +1 -1
  160. package/dist/shared/page.d.ts +21 -33
  161. package/dist/shared/page.d.ts.map +1 -1
  162. package/dist/shared/page.js +1 -1
  163. package/dist/shared/template.d.ts +31 -0
  164. package/dist/shared/template.d.ts.map +1 -0
  165. package/dist/shared/template.js +3 -0
  166. package/dist/shared/tests/test-config.d.ts +1 -1
  167. package/dist/shared/tests/test-config.d.ts.map +1 -1
  168. package/dist/shared/theme.d.ts.map +1 -1
  169. package/dist/shared/theme.js +1 -1
  170. package/dist/shared/themes/color-system.d.ts.map +1 -1
  171. package/dist/shared/themes/color-system.js +1 -1
  172. package/package.json +6 -5
  173. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts +0 -111
  174. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts.map +0 -1
  175. package/dist/shared/bricks/manifests/images-wall.manifest.js +0 -3
  176. package/dist/shared/chunk-4IMPKXJT.js +0 -14
  177. package/dist/shared/chunk-4JJHQZYB.js +0 -3
  178. package/dist/shared/chunk-4SMJ4E32.js +0 -19
  179. package/dist/shared/chunk-56QQPQIE.js +0 -3
  180. package/dist/shared/chunk-5JEYUV4C.js +0 -11
  181. package/dist/shared/chunk-ANZZVPQC.js +0 -22
  182. package/dist/shared/chunk-EIODRGFP.js +0 -5
  183. package/dist/shared/chunk-FHJRL7LV.js +0 -9
  184. package/dist/shared/chunk-FKUGABKJ.js +0 -11
  185. package/dist/shared/chunk-FM2MSU7Z.js +0 -6
  186. package/dist/shared/chunk-FNCNEYJX.js +0 -8
  187. package/dist/shared/chunk-GNZYWNA4.js +0 -3
  188. package/dist/shared/chunk-GOUUN46E.js +0 -7
  189. package/dist/shared/chunk-HL7WRX6G.js +0 -7
  190. package/dist/shared/chunk-HMQPELFK.js +0 -3
  191. package/dist/shared/chunk-HUNU6HSF.js +0 -8
  192. package/dist/shared/chunk-IEB7RHDF.js +0 -3
  193. package/dist/shared/chunk-K4NJQWFB.js +0 -3
  194. package/dist/shared/chunk-KGZMWRZS.js +0 -3
  195. package/dist/shared/chunk-O3JLMHK3.js +0 -3
  196. package/dist/shared/chunk-PUPVTFFY.js +0 -3
  197. package/dist/shared/chunk-R7HRU3T4.js +0 -3
  198. package/dist/shared/chunk-RGKPN4LE.js +0 -3
  199. package/dist/shared/chunk-RQT64JJW.js +0 -9
  200. package/dist/shared/chunk-VYNIBP33.js +0 -7
  201. package/dist/shared/chunk-WNS3A3LT.js +0 -7
  202. package/dist/shared/chunk-X3JYHXIE.js +0 -6
  203. package/dist/shared/chunk-X3LVSMNF.js +0 -3
  204. package/dist/shared/chunk-XIXSVFY6.js +0 -3
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- var c="enpage-cli";var N=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",I=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",P=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";import p from"conf";import r from"node:path";import a from"node:crypto";import o from"node:fs";import{fileURLToPath as _}from"node:url";function i(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}import u from"chalk";var m=_(new URL(".",import.meta.url)),E=g(),d=new p({projectName:c,encryptionKey:E,clearInvalidConfig:!0});function R(){let e=d.get("access_token");if(!e){let t=i();throw new Error(`Access token not found. Please run ${u.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function f(){let e=m;for(;e!==r.parse(e).root;){let t=r.join(e,"node_modules");if(o.existsSync(t))return t;e=r.dirname(e)}return null}function g(){let e=f();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=r.join(e,".enpage-tmp");o.existsSync(t)||o.mkdirSync(t,{recursive:!0,mode:448});let n=r.join(t,".enpage-key");if(!o.existsSync(n)){let s=a.randomBytes(32).toString("hex");return o.writeFileSync(n,s,{mode:384,flush:!0}),s}return o.readFileSync(n,"utf8")}export{d as accessStore,R as getTokenOrThrow};
3
+ var c="upstart-cli";var I=process.env.PUBLIC_UPSTART_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",T=process.env.PUBLIC_UPSTART_API_BASE_URL??"https://api.upstart.gg",P=process.env.PUBLIC_UPSTART_EDITOR_BASE_URL??"https://upstart.gg";import p from"conf";import r from"node:path";import a from"node:crypto";import o from"node:fs";import{fileURLToPath as _}from"node:url";function i(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}import u from"chalk";var m=_(new URL(".",import.meta.url)),d=l(),f=new p({projectName:c,encryptionKey:d,clearInvalidConfig:!0});function k(){let e=f.get("access_token");if(!e){let t=i();throw new Error(`Access token not found. Please run ${u.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function g(){let e=m;for(;e!==r.parse(e).root;){let t=r.join(e,"node_modules");if(o.existsSync(t))return t;e=r.dirname(e)}return null}function l(){let e=g();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=r.join(e,".enpage-tmp");o.existsSync(t)||o.mkdirSync(t,{recursive:!0,mode:448});let n=r.join(t,".enpage-key");if(!o.existsSync(n)){let s=a.randomBytes(32).toString("hex");return o.writeFileSync(n,s,{mode:384,flush:!0}),s}return o.readFileSync(n,"utf8")}export{f as accessStore,k as getTokenOrThrow};
@@ -1,5 +1,5 @@
1
1
  import { type Logger } from "./logger";
2
- import type { TemplateConfig } from "~/shared/page";
2
+ import type { TemplateConfig } from "~/shared/template";
3
3
  export declare function loadConfigFromJsFile(configPath: string, logger?: {
4
4
  success: (message: string, options?: import("vite").LogOptions) => void;
5
5
  error: (message: string, options?: import("vite").LogOptions) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/shared/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAA2B,MAAM,UAAU,CAAC;AAGhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,MAAM;;;;;;;;;;CAAgB,GACrB,OAAO,CAAC,cAAc,CAAC,CAgCzB;AAED,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAM/F;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,kBAmB5E"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/shared/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAA2B,MAAM,UAAU,CAAC;AAGhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,MAAM;;;;;;;;;;CAAgB,GACrB,OAAO,CAAC,cAAc,CAAC,CAgCzB;AAED,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAM/F;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,kBAmB5E"}
@@ -1,13 +1,13 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{Type as e}from"@sinclair/typebox";var c=e.Object({id:e.Optional(e.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:e.String({title:"Template Name"}),description:e.Optional(e.String({title:"Show template description"})),readme:e.Optional(e.Record(e.RegExp(/^[a-z]{2}$/),e.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:e.Optional(e.Array(e.String(),{title:"Tags"})),author:e.Optional(e.String({title:"Author name"})),thumbnail:e.Optional(e.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:e.Optional(e.String({title:"Homepage",description:"A URL to the homepage of the template."}))});import d from"node:fs";import{readFile as x}from"node:fs/promises";import L from"fast-glob";import{createLogger as b}from"vite";var g="0.0.79";import n from"chalk";function v(r,i,a=!1){let t=b(r==="debug"?"info":r,{prefix:"[enpage]",allowClearScreen:i});return a&&t.info(n.hex("#7270c6").bold(`\u{1F680} Enpage v${g}
4
- `)),{...t,success:(s,o)=>t.info(n.green(s),o),error:(s,o)=>t.error(n.red(s),o),warn:(s,o)=>t.warn(n.yellow(s),o),warnOnce:(s,o)=>t.warnOnce(n.yellow(s),o),debug:(s,o)=>{r==="debug"&&t.info(n.gray(s),o)}}}var u=v();import{fromError as O}from"zod-validation-error";import{basename as f,dirname as w,extname as S}from"node:path";async function P(r,i=u){d.existsSync(r)||(i.error(`\u{1F534} No enpage.config.js found!
3
+ import{Type as e}from"@sinclair/typebox";var m=e.Object({id:e.Optional(e.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:e.String({title:"Template Name"}),description:e.Optional(e.String({title:"Show template description"})),readme:e.Optional(e.Record(e.RegExp(/^[a-z]{2}$/),e.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:e.Optional(e.Array(e.String(),{title:"Tags"})),author:e.Optional(e.String({title:"Author name"})),thumbnail:e.Optional(e.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:e.Optional(e.String({title:"Homepage",description:"A URL to the homepage of the template."}))});import d from"node:fs";import{readFile as x}from"node:fs/promises";import L from"fast-glob";import{createLogger as b}from"vite";var g="0.0.80";import n from"chalk";function v(r,i,a=!1){let t=b(r==="debug"?"info":r,{prefix:"[upstart]",allowClearScreen:i});return a&&t.info(n.hex("#7270c6").bold(`\u{1F680} Upstart v${g}
4
+ `)),{...t,success:(s,o)=>t.info(n.green(s),o),error:(s,o)=>t.error(n.red(s),o),warn:(s,o)=>t.warn(n.yellow(s),o),warnOnce:(s,o)=>t.warnOnce(n.yellow(s),o),debug:(s,o)=>{r==="debug"&&t.info(n.gray(s),o)}}}var u=v();import{fromError as O}from"zod-validation-error";import{basename as f,dirname as w,extname as S}from"node:path";async function U(r,i=u){d.existsSync(r)||(i.error(`\u{1F534} No enpage.config.js found!
5
5
  Your project must have an enpage.config.js file in the root directory.
6
6
 
7
- `),process.exit(1));let a=await import(r),t=w(r),s={},o=await L(["README.enpage.md","README.enpage.*.md"],{cwd:t,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of o){let y=f(p,".md"),l=S(y),m=(l===".enpage"?"en":l.substring(1)).toLowerCase();i.debug(`Found template readme file (${m}): ${f(p)}`),s[m]=await x(p,"utf-8")}return a.manifest&&(a.manifest.readme=s),a}function B(r,i){return d.existsSync(r)||(i.error(`\u{1F534} No enpage.manifest.json found!
7
+ `),process.exit(1));let a=await import(r),t=w(r),s={},o=await L(["README.enpage.md","README.enpage.*.md"],{cwd:t,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of o){let y=f(p,".md"),c=S(y),l=(c===".enpage"?"en":c.substring(1)).toLowerCase();i.debug(`Found template readme file (${l}): ${f(p)}`),s[l]=await x(p,"utf-8")}return a.manifest&&(a.manifest.readme=s),a}function P(r,i){return d.existsSync(r)||(i.error(`\u{1F534} No enpage.manifest.json found!
8
8
  You may want to 'build' your template.
9
9
 
10
- `),process.exit(1)),JSON.parse(d.readFileSync(r,"utf-8"))}function H(r,i){for(let t in r.datasources)if(r.datasources[t].provider==="json"&&!r.datasources[t].sampleData)throw i.error(`\u{1F534} Error: Datasource "${t}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${t} datasource.`),new Error(`Missing sample data for datasource "${t}"`);let a=c.safeParse(r.manifest);if(!a.success){i.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
10
+ `),process.exit(1)),JSON.parse(d.readFileSync(r,"utf-8"))}function B(r,i){for(let t in r.datasources)if(r.datasources[t].provider==="json"&&!r.datasources[t].sampleData)throw i.error(`\u{1F534} Error: Datasource "${t}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${t} datasource.`),new Error(`Missing sample data for datasource "${t}"`);let a=m.safeParse(r.manifest);if(!a.success){i.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
11
11
  `);let t=O(a.error);i.error(`Hint: ${t.toString()}
12
12
 
13
- `),process.exit(1)}return r}export{P as loadConfigFromJsFile,B as loadConfigFromManifestFile,H as validateTemplateConfig};
13
+ `),process.exit(1)}return r}export{U as loadConfigFromJsFile,P as loadConfigFromManifestFile,B as validateTemplateConfig};
@@ -1,6 +1,6 @@
1
1
  import { type LogLevel, type LogOptions, type Logger as BaseLogger } from "vite";
2
- type EnpageLoggerLevel = LogLevel | "debug";
3
- export declare function createLogger(level?: EnpageLoggerLevel, allowClearScreen?: boolean, showVersion?: boolean): {
2
+ type UpstartLoggerLevel = LogLevel | "debug";
3
+ export declare function createLogger(level?: UpstartLoggerLevel, allowClearScreen?: boolean, showVersion?: boolean): {
4
4
  success: (message: string, options?: LogOptions) => void;
5
5
  error: (message: string, options?: LogOptions) => void;
6
6
  warn: (message: string, options?: LogOptions) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/node/shared/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,MAAM,IAAI,UAAU,EAC1B,MAAM,MAAM,CAAC;AAId,KAAK,iBAAiB,GAAG,Q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AC7B,MAAM,YAAY,UAAU;wBACxB,MAAM,YAAY,UAAU;qBAC/B,MAAM,YAAY,UAAU;;;;;CAQb,CAAC;AAErC,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG;IAChC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACzD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACxD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{createLogger as d}from"vite";var i="0.0.79";import r from"chalk";function g(o,a,n=!1){let s=d(o==="debug"?"info":o,{prefix:"[enpage]",allowClearScreen:a});return n&&s.info(r.hex("#7270c6").bold(`\u{1F680} Enpage v${i}
4
- `)),{...s,success:(e,t)=>s.info(r.green(e),t),error:(e,t)=>s.error(r.red(e),t),warn:(e,t)=>s.warn(r.yellow(e),t),warnOnce:(e,t)=>s.warnOnce(r.yellow(e),t),debug:(e,t)=>{o==="debug"&&s.info(r.gray(e),t)}}}var y=g();export{g as createLogger,y as logger};
3
+ import{createLogger as d}from"vite";var i="0.0.80";import r from"chalk";function c(o,a,n=!1){let s=d(o==="debug"?"info":o,{prefix:"[upstart]",allowClearScreen:a});return n&&s.info(r.hex("#7270c6").bold(`\u{1F680} Upstart v${i}
4
+ `)),{...s,success:(e,t)=>s.info(r.green(e),t),error:(e,t)=>s.error(r.red(e),t),warn:(e,t)=>s.warn(r.yellow(e),t),warnOnce:(e,t)=>s.warnOnce(r.yellow(e),t),debug:(e,t)=>{o==="debug"&&s.info(r.gray(e),t)}}}var y=c();export{c as createLogger,y as logger};
@@ -21,32 +21,11 @@ type GeoPoint = {
21
21
  lng: number;
22
22
  name?: string;
23
23
  };
24
- export declare function defineAttributes(attrs: TProperties): TObject<{
25
- $pageLanguage: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>;
26
- $pageOgImage: import("@sinclair/typebox").TString;
27
- $robotsIndexing: import("@sinclair/typebox").TBoolean;
28
- $siteOgImage: import("@sinclair/typebox").TString;
29
- $pagePath: import("@sinclair/typebox").TString;
30
- $pageTitle: import("@sinclair/typebox").TString;
31
- $pageDescription: import("@sinclair/typebox").TString;
32
- $pageKeywords: import("@sinclair/typebox").TString;
33
- $pageLastUpdated: import("@sinclair/typebox").TString;
34
- $bodyBackground: TObject<{
35
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
36
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
37
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
38
- image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
- }>;
40
- $pageBackground: TObject<{
41
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
42
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
43
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
44
- image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
- }>;
46
- $textColor: import("@sinclair/typebox").TString;
47
- $siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
48
- $siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
49
- }>;
24
+ export declare function defineAttributes(attrs: TProperties): TObject<TProperties>;
25
+ /**
26
+ * Retuns the custom attributes schema merged with the default attributes schema
27
+ */
28
+ export declare function processAttributesSchema(customAttributes: TObject): TObject;
50
29
  export type { JSONSchemaType };
51
30
  export type AttributesSchema = JSONSchemaType<Attributes>;
52
31
  export declare const attr: {
@@ -109,21 +88,21 @@ export declare const defaultAttributesSchema: TObject<{
109
88
  $pageKeywords: import("@sinclair/typebox").TString;
110
89
  $pageLastUpdated: import("@sinclair/typebox").TString;
111
90
  $bodyBackground: TObject<{
112
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
113
91
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
114
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
115
92
  image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
93
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
94
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
116
95
  }>;
117
96
  $pageBackground: TObject<{
118
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
119
97
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
120
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
121
98
  image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
99
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
100
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
122
101
  }>;
123
102
  $textColor: import("@sinclair/typebox").TString;
124
103
  $siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
125
104
  $siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
126
105
  }>;
127
- export type Attributes = Static<typeof defaultAttributesSchema> & Record<string, unknown>;
128
- export declare function resolveAttributes(attributesSchema: TObject<TProperties>, initialData?: Record<string, unknown>): Attributes;
106
+ export type Attributes<T extends Record<string, unknown> = Record<string, unknown>> = Static<typeof defaultAttributesSchema> & T;
107
+ export declare function resolveAttributes(customAttrsSchema: TObject, initialData?: Record<string, unknown>): Attributes<Static<typeof customAttrsSchema>>;
129
108
  //# sourceMappingURL=attributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/shared/attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,OAAO,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,GAAG,CAAC,CAAC;AAEN,KAAK,QAAQ,GAAG;IAAE,GAAG,EAAE,MAAM,C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.js";import"./chunk-IEB7RHDF.js";import"./chunk-XIXSVFY6.js";import"./chunk-PSSJMWGU.js";export{b as attr,c as defaultAttributesSchema,a as defineAttributes,d as resolveAttributes};
3
+ import{a,b,c,d,e}from"./chunk-P7WL7MYK.js";import"./chunk-ZWVJMSTT.js";import"./chunk-P5FVZ5PL.js";import"./chunk-BMDB2V7J.js";import"./chunk-PSSJMWGU.js";export{c as attr,d as defaultAttributesSchema,a as defineAttributes,b as processAttributesSchema,e as resolveAttributes};
@@ -1,10 +1,13 @@
1
1
  import type { TObject, TProperties, TArray, Static } from "@sinclair/typebox";
2
+ import type { FC } from "react";
3
+ import type { IconBaseProps } from "react-icons/lib";
2
4
  type BrickKind = "brick" | "widget" | "container";
3
5
  type BrickManifestProps<BProps extends TProperties, DSSchema extends TObject | TArray<TObject>> = {
4
6
  type: string;
5
7
  kind?: BrickKind;
6
8
  name: string;
7
- icon: string;
9
+ icon: string | FC<IconBaseProps>;
10
+ iconClassName?: string;
8
11
  description?: string;
9
12
  minWidth?: {
10
13
  mobile: number;
@@ -81,7 +84,8 @@ export declare function defineBrickManifest<BProps extends TProperties, DSSchema
81
84
  } | undefined;
82
85
  readonly type: string;
83
86
  readonly name: string;
84
- readonly icon: string;
87
+ readonly icon: string | FC<IconBaseProps>;
88
+ readonly iconClassName?: string;
85
89
  readonly description?: string;
86
90
  readonly maxWidth?: {
87
91
  mobile: number;
@@ -1 +1 @@
1
- {"version":3,"file":"brick-manifest.d.ts","sourceRoot":"","sources":["../../src/shared/brick-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG9E,KAAK,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAElD,KAAK,kBAAkB,CAAC,MAAM,SAAS,WAAW,EAAE,QAAQ,SAAS,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI;IAChG,IA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AChB,MAAM;2BACR,MAAM;wBAKT;QACT,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB;yBAKW;QACV,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB;EAiEF;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEnE,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,aAAa,EAAE,QAAQ,EAAE,CAAC;;;;;;;;;;;;;EAQ5E;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,aAAa,EACb,cAAc,GAAG,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CACnG,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"./chunk-GNZYWNA4.js";export{a as defineBrickManifest,b as getBrickManifestDefaults};
3
+ import{a,b}from"./chunk-WPTVLIYS.js";export{a as defineBrickManifest,b as getBrickManifestDefaults};
@@ -1 +1 @@
1
- {"version":3,"file":"all-manifests.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/all-manifests.ts"],"names":[],"mappings":"AAkBA,OAAO,EAA4B,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExG,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAkBnD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAkBtD,CAAC"}
1
+ {"version":3,"file":"all-manifests.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/all-manifests.ts"],"names":[],"mappings":"AAmBA,OAAO,EAA4B,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExG,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAmBnD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAmBtD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"../../chunk-HMQPELFK.js";import"../../chunk-FHJRL7LV.js";import"../../chunk-FKUGABKJ.js";import"../../chunk-4IMPKXJT.js";import"../../chunk-EIODRGFP.js";import"../../chunk-4SMJ4E32.js";import"../../chunk-ANZZVPQC.js";import"../../chunk-5JEYUV4C.js";import"../../chunk-764EAJFR.js";import"../../chunk-RQT64JJW.js";import"../../chunk-OMOYRWNX.js";import"../../chunk-FNCNEYJX.js";import"../../chunk-4EEQT7D6.js";import"../../chunk-346JVEOR.js";import"../../chunk-3EUA65QC.js";import"../../chunk-FM2MSU7Z.js";import"../../chunk-2Y3ZNNGU.js";import"../../chunk-X3JYHXIE.js";import"../../chunk-VYNIBP33.js";import"../../chunk-X3LVSMNF.js";import"../../chunk-PUPVTFFY.js";import"../../chunk-K4NJQWFB.js";import"../../chunk-WNS3A3LT.js";import"../../chunk-GOUUN46E.js";import"../../chunk-KGZMWRZS.js";import"../../chunk-56QQPQIE.js";import"../../chunk-HUNU6HSF.js";import"../../chunk-HL7WRX6G.js";import"../../chunk-O3JLMHK3.js";import"../../chunk-M4CXYZTI.js";import"../../chunk-IEB7RHDF.js";import"../../chunk-GNZYWNA4.js";import"../../chunk-XIXSVFY6.js";import"../../chunk-PSSJMWGU.js";export{b as defaultProps,a as manifests};
3
+ import{a,b}from"../../chunk-CSBX76ZN.js";import"../../chunk-TQ23UATQ.js";import"../../chunk-XYID4ZEA.js";import"../../chunk-DAPQ4JPP.js";import"../../chunk-WOEBR25A.js";import"../../chunk-BK6LBWDI.js";import"../../chunk-6I4PY5WS.js";import"../../chunk-3CY6AZG7.js";import"../../chunk-HW5TY2QW.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-PJ6HA55L.js";import"../../chunk-U4R5EGBK.js";import"../../chunk-HIZPJNEM.js";import"../../chunk-KB4HY432.js";import"../../chunk-Q4MXTCE4.js";import"../../chunk-QRBMK5UX.js";import"../../chunk-JVDUEZYO.js";import"../../chunk-FGU4BGP4.js";import"../../chunk-XGCBIXOO.js";import"../../chunk-SQVL4WSX.js";import"../../chunk-XBX6II3M.js";import"../../chunk-XEQ2XZLQ.js";import"../../chunk-RBYYMUOZ.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-F2ZVIFHO.js";import"../../chunk-NFU5BF6G.js";import"../../chunk-EFJQECVB.js";import"../../chunk-U44NTSIO.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-PD7P5KSV.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{b as defaultProps,a as manifests};
@@ -44,7 +44,8 @@ export declare const manifest: {
44
44
  } | undefined;
45
45
  readonly type: string;
46
46
  readonly name: string;
47
- readonly icon: string;
47
+ readonly icon: string | import("react").FC<import("react-icons/lib").IconBaseProps>;
48
+ readonly iconClassName?: string;
48
49
  readonly description?: string;
49
50
  readonly maxWidth?: {
50
51
  mobile: number;
@@ -1 +1 @@
1
- {"version":3,"file":"button.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/button.manifest.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"button.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/button.manifest.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a}from"../../chunk-WNS3A3LT.js";import"../../chunk-56QQPQIE.js";import"../../chunk-GNZYWNA4.js";import"../../chunk-XIXSVFY6.js";import"../../chunk-PSSJMWGU.js";export{a as manifest};
3
+ import{a}from"../../chunk-NFU5BF6G.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as manifest};
@@ -9,14 +9,24 @@ export declare const manifest: {
9
9
  content: import("@sinclair/typebox").TString;
10
10
  padding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>;
11
11
  backgroundColor: import("@sinclair/typebox").TString;
12
+ }> | import("@sinclair/typebox").TObject<{
13
+ backgroundColor: import("@sinclair/typebox").TString;
14
+ content: import("@sinclair/typebox").TString;
15
+ padding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>;
12
16
  }>;
13
17
  cardImage: import("@sinclair/typebox").TObject<{
14
18
  image: import("@sinclair/typebox").TString;
19
+ }> | import("@sinclair/typebox").TObject<{
20
+ image: import("@sinclair/typebox").TString;
15
21
  }>;
16
22
  cardBody: import("@sinclair/typebox").TObject<{
17
23
  content: import("@sinclair/typebox").TString;
18
24
  padding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>;
19
25
  backgroundColor: import("@sinclair/typebox").TString;
26
+ }> | import("@sinclair/typebox").TObject<{
27
+ backgroundColor: import("@sinclair/typebox").TString;
28
+ content: import("@sinclair/typebox").TString;
29
+ padding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>;
20
30
  }>;
21
31
  }>;
22
32
  readonly presets: Record<string, {
@@ -30,14 +40,24 @@ export declare const manifest: {
30
40
  backgroundColor: string;
31
41
  content: string;
32
42
  padding: "p-0" | "p-1" | "p-2" | "p-4" | "p-8" | "p-16";
43
+ } | {
44
+ backgroundColor: string;
45
+ content: string;
46
+ padding: "p-0" | "p-1" | "p-2" | "p-4" | "p-8" | "p-16";
33
47
  };
34
48
  cardImage: {
35
49
  image: string;
50
+ } | {
51
+ image: string;
36
52
  };
37
53
  cardBody: {
38
54
  backgroundColor: string;
39
55
  content: string;
40
56
  padding: "p-0" | "p-1" | "p-2" | "p-4" | "p-8" | "p-16";
57
+ } | {
58
+ backgroundColor: string;
59
+ content: string;
60
+ padding: "p-0" | "p-1" | "p-2" | "p-4" | "p-8" | "p-16";
41
61
  };
42
62
  }>;
43
63
  }> | undefined;
@@ -68,7 +88,8 @@ export declare const manifest: {
68
88
  } | undefined;
69
89
  readonly type: string;
70
90
  readonly name: string;
71
- readonly icon: string;
91
+ readonly icon: string | import("react").FC<import("react-icons/lib").IconBaseProps>;
92
+ readonly iconClassName?: string;
72
93
  readonly description?: string;
73
94
  readonly maxWidth?: {
74
95
  mobile: number;
@@ -1 +1 @@
1
- {"version":3,"file":"card.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/card.manifest.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"card.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/card.manifest.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a}from"../../chunk-GOUUN46E.js";import"../../chunk-KGZMWRZS.js";import"../../chunk-56QQPQIE.js";import"../../chunk-IEB7RHDF.js";import"../../chunk-GNZYWNA4.js";import"../../chunk-XIXSVFY6.js";import"../../chunk-PSSJMWGU.js";export{a as manifest};
3
+ import{a}from"../../chunk-EFJQECVB.js";import"../../chunk-U44NTSIO.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as manifest};
@@ -41,7 +41,8 @@ export declare const manifest: {
41
41
  } | undefined;
42
42
  readonly type: string;
43
43
  readonly name: string;
44
- readonly icon: string;
44
+ readonly icon: string | import("react").FC<import("react-icons/lib").IconBaseProps>;
45
+ readonly iconClassName?: string;
45
46
  readonly description?: string;
46
47
  readonly maxWidth?: {
47
48
  mobile: number;
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/carousel.manifest.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"carousel.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/carousel.manifest.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a}from"../../chunk-HUNU6HSF.js";import"../../chunk-GNZYWNA4.js";import"../../chunk-XIXSVFY6.js";import"../../chunk-PSSJMWGU.js";export{a as manifest};
3
+ import{a}from"../../chunk-PD7P5KSV.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as manifest};
@@ -8,14 +8,54 @@ export declare const manifest: {
8
8
  } & {
9
9
  $childrenType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
10
  $children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
11
- styles: import("@sinclair/typebox").TObject<{
12
- background: import("@sinclair/typebox").TObject<{
13
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
- image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
16
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
17
- }>;
11
+ layout: import("@sinclair/typebox").TObject<{
12
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex">, import("@sinclair/typebox").TLiteral<"grid">]>;
13
+ gap: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"gap-0">, import("@sinclair/typebox").TLiteral<"gap-1">, import("@sinclair/typebox").TLiteral<"gap-2">, import("@sinclair/typebox").TLiteral<"gap-4">, import("@sinclair/typebox").TLiteral<"gap-8">, import("@sinclair/typebox").TLiteral<"gap-16">]>;
14
+ direction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex-row">, import("@sinclair/typebox").TLiteral<"flex-col">]>>;
15
+ columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
16
+ wrap: import("@sinclair/typebox").TBoolean;
17
+ fillSpace: import("@sinclair/typebox").TBoolean;
18
+ justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"justify-start">, import("@sinclair/typebox").TLiteral<"justify-center">, import("@sinclair/typebox").TLiteral<"justify-end">, import("@sinclair/typebox").TLiteral<"justify-between">, import("@sinclair/typebox").TLiteral<"justify-around">, import("@sinclair/typebox").TLiteral<"justify-evenly">, import("@sinclair/typebox").TLiteral<"justify-stretch">]>>;
19
+ alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"items-start">, import("@sinclair/typebox").TLiteral<"items-center">, import("@sinclair/typebox").TLiteral<"items-end">, import("@sinclair/typebox").TLiteral<"items-stretch">]>>;
20
+ }> | import("@sinclair/typebox").TObject<{
21
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex">, import("@sinclair/typebox").TLiteral<"grid">]>;
22
+ alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"items-start">, import("@sinclair/typebox").TLiteral<"items-center">, import("@sinclair/typebox").TLiteral<"items-end">, import("@sinclair/typebox").TLiteral<"items-stretch">]>>;
23
+ direction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex-row">, import("@sinclair/typebox").TLiteral<"flex-col">]>>;
24
+ justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"justify-start">, import("@sinclair/typebox").TLiteral<"justify-center">, import("@sinclair/typebox").TLiteral<"justify-end">, import("@sinclair/typebox").TLiteral<"justify-between">, import("@sinclair/typebox").TLiteral<"justify-around">, import("@sinclair/typebox").TLiteral<"justify-evenly">, import("@sinclair/typebox").TLiteral<"justify-stretch">]>>;
25
+ columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
26
+ gap: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"gap-0">, import("@sinclair/typebox").TLiteral<"gap-1">, import("@sinclair/typebox").TLiteral<"gap-2">, import("@sinclair/typebox").TLiteral<"gap-4">, import("@sinclair/typebox").TLiteral<"gap-8">, import("@sinclair/typebox").TLiteral<"gap-16">]>;
27
+ wrap: import("@sinclair/typebox").TBoolean;
28
+ fillSpace: import("@sinclair/typebox").TBoolean;
18
29
  }>;
30
+ background: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
31
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
32
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
34
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
35
+ }>>;
36
+ border: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
37
+ rounding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"rounded-auto">, import("@sinclair/typebox").TLiteral<"rounded-none">, import("@sinclair/typebox").TLiteral<"rounded-sm">, import("@sinclair/typebox").TLiteral<"rounded-md">, import("@sinclair/typebox").TLiteral<"rounded-lg">, import("@sinclair/typebox").TLiteral<"rounded-xl">, import("@sinclair/typebox").TLiteral<"rounded-2xl">, import("@sinclair/typebox").TLiteral<"rounded-3xl">, import("@sinclair/typebox").TLiteral<"rounded-full">]>;
38
+ width: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-0">, import("@sinclair/typebox").TLiteral<"border">, import("@sinclair/typebox").TLiteral<"border-2">, import("@sinclair/typebox").TLiteral<"border-4">, import("@sinclair/typebox").TLiteral<"border-8">]>;
39
+ color: import("@sinclair/typebox").TString;
40
+ sides: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-l">, import("@sinclair/typebox").TLiteral<"border-t">, import("@sinclair/typebox").TLiteral<"border-r">, import("@sinclair/typebox").TLiteral<"border-b">]>>>;
41
+ style: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-solid">, import("@sinclair/typebox").TLiteral<"border-dashed">, import("@sinclair/typebox").TLiteral<"border-dotted">]>;
42
+ }>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
43
+ color: import("@sinclair/typebox").TString;
44
+ width: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-0">, import("@sinclair/typebox").TLiteral<"border">, import("@sinclair/typebox").TLiteral<"border-2">, import("@sinclair/typebox").TLiteral<"border-4">, import("@sinclair/typebox").TLiteral<"border-8">]>;
45
+ style: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-solid">, import("@sinclair/typebox").TLiteral<"border-dashed">, import("@sinclair/typebox").TLiteral<"border-dotted">]>;
46
+ rounding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"rounded-auto">, import("@sinclair/typebox").TLiteral<"rounded-none">, import("@sinclair/typebox").TLiteral<"rounded-sm">, import("@sinclair/typebox").TLiteral<"rounded-md">, import("@sinclair/typebox").TLiteral<"rounded-lg">, import("@sinclair/typebox").TLiteral<"rounded-xl">, import("@sinclair/typebox").TLiteral<"rounded-2xl">, import("@sinclair/typebox").TLiteral<"rounded-3xl">, import("@sinclair/typebox").TLiteral<"rounded-full">]>;
47
+ sides: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-l">, import("@sinclair/typebox").TLiteral<"border-t">, import("@sinclair/typebox").TLiteral<"border-r">, import("@sinclair/typebox").TLiteral<"border-b">]>>>;
48
+ }>>;
49
+ padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>>;
50
+ effects: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
51
+ textShadow?: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text-shadow-none">, import("@sinclair/typebox").TLiteral<"text-shadow-sm">, import("@sinclair/typebox").TLiteral<"text-shadow-md">, import("@sinclair/typebox").TLiteral<"text-shadow-lg">, import("@sinclair/typebox").TLiteral<"text-shadow-xl">]> | undefined;
52
+ opacity: import("@sinclair/typebox").TNumber;
53
+ shadow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"shadow-none">, import("@sinclair/typebox").TLiteral<"shadow-sm">, import("@sinclair/typebox").TLiteral<"shadow-md">, import("@sinclair/typebox").TLiteral<"shadow-lg">, import("@sinclair/typebox").TLiteral<"shadow-xl">, import("@sinclair/typebox").TLiteral<"shadow-2xl">]>;
54
+ }>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
55
+ shadow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"shadow-none">, import("@sinclair/typebox").TLiteral<"shadow-sm">, import("@sinclair/typebox").TLiteral<"shadow-md">, import("@sinclair/typebox").TLiteral<"shadow-lg">, import("@sinclair/typebox").TLiteral<"shadow-xl">, import("@sinclair/typebox").TLiteral<"shadow-2xl">]>;
56
+ opacity: import("@sinclair/typebox").TNumber;
57
+ textShadow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text-shadow-none">, import("@sinclair/typebox").TLiteral<"text-shadow-sm">, import("@sinclair/typebox").TLiteral<"text-shadow-md">, import("@sinclair/typebox").TLiteral<"text-shadow-lg">, import("@sinclair/typebox").TLiteral<"text-shadow-xl">]>;
58
+ }>>;
19
59
  datasource: import("@sinclair/typebox").TObject<{
20
60
  ds: import("@sinclair/typebox").TObject<{
21
61
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -32,16 +72,80 @@ export declare const manifest: {
32
72
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
33
73
  }>>;
34
74
  }>;
75
+ }> | import("@sinclair/typebox").TObject<{
76
+ ds: import("@sinclair/typebox").TObject<{
77
+ isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
78
+ useExistingDatasource: import("@sinclair/typebox").TBoolean;
79
+ datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
80
+ id: import("@sinclair/typebox").TString;
81
+ mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
82
+ filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
83
+ op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"eq">, import("@sinclair/typebox").TLiteral<"ne">, import("@sinclair/typebox").TLiteral<"lt">, import("@sinclair/typebox").TLiteral<"lte">, import("@sinclair/typebox").TLiteral<"gt">, import("@sinclair/typebox").TLiteral<"gte">, import("@sinclair/typebox").TLiteral<"in">, import("@sinclair/typebox").TLiteral<"nin">, import("@sinclair/typebox").TLiteral<"contains">, import("@sinclair/typebox").TLiteral<"startsWith">, import("@sinclair/typebox").TLiteral<"endsWith">]>;
84
+ value: import("@sinclair/typebox").TString;
85
+ }>>>;
86
+ sort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>>;
87
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
88
+ offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
89
+ }>>;
90
+ }>;
35
91
  }>;
36
92
  }>;
37
93
  readonly presets: Record<string, {
38
94
  label: string;
39
95
  previewClasses: string;
40
96
  props: Partial<{
97
+ background?: {
98
+ repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | "round" | "space" | undefined;
99
+ color?: string | undefined;
100
+ size?: "contain" | "auto" | "cover" | undefined;
101
+ image?: string | undefined;
102
+ } | undefined;
103
+ border?: {
104
+ sides?: ("border-l" | "border-t" | "border-r" | "border-b")[] | undefined;
105
+ color: string;
106
+ width: "border" | "border-0" | "border-2" | "border-4" | "border-8";
107
+ style: "border-solid" | "border-dashed" | "border-dotted";
108
+ rounding: "rounded-auto" | "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-full";
109
+ } | {
110
+ sides?: ("border-l" | "border-t" | "border-r" | "border-b")[] | undefined;
111
+ color: string;
112
+ width: "border" | "border-0" | "border-2" | "border-4" | "border-8";
113
+ style: "border-solid" | "border-dashed" | "border-dotted";
114
+ rounding: "rounded-auto" | "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-full";
115
+ } | undefined;
116
+ padding?: "p-0" | "p-1" | "p-2" | "p-4" | "p-8" | "p-16" | undefined;
117
+ effects?: {
118
+ shadow: "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl" | "shadow-2xl";
119
+ opacity: number;
120
+ textShadow: "text-shadow-none" | "text-shadow-sm" | "text-shadow-md" | "text-shadow-lg" | "text-shadow-xl";
121
+ } | {
122
+ shadow: "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl" | "shadow-2xl";
123
+ opacity: number;
124
+ textShadow: "text-shadow-none" | "text-shadow-sm" | "text-shadow-md" | "text-shadow-lg" | "text-shadow-xl";
125
+ } | undefined;
41
126
  className?: string | undefined;
42
127
  lastTouched?: number | undefined;
43
128
  editable?: boolean | undefined;
44
129
  $childrenType?: string | undefined;
130
+ layout: {
131
+ alignItems?: "items-center" | "items-start" | "items-end" | "items-stretch" | undefined;
132
+ direction?: "flex-row" | "flex-col" | undefined;
133
+ justifyContent?: "justify-start" | "justify-center" | "justify-end" | "justify-stretch" | "justify-between" | "justify-around" | "justify-evenly" | undefined;
134
+ columns?: number | undefined;
135
+ type: "flex" | "grid";
136
+ gap: "gap-1" | "gap-0" | "gap-2" | "gap-4" | "gap-8" | "gap-16";
137
+ wrap: boolean;
138
+ fillSpace: boolean;
139
+ } | {
140
+ alignItems?: "items-center" | "items-start" | "items-end" | "items-stretch" | undefined;
141
+ direction?: "flex-row" | "flex-col" | undefined;
142
+ justifyContent?: "justify-start" | "justify-center" | "justify-end" | "justify-stretch" | "justify-between" | "justify-around" | "justify-evenly" | undefined;
143
+ columns?: number | undefined;
144
+ type: "flex" | "grid";
145
+ gap: "gap-1" | "gap-0" | "gap-2" | "gap-4" | "gap-8" | "gap-16";
146
+ wrap: boolean;
147
+ fillSpace: boolean;
148
+ };
45
149
  datasource: {
46
150
  ds: {
47
151
  datasource?: {
@@ -64,13 +168,27 @@ export declare const manifest: {
64
168
  isDynamic?: boolean | undefined;
65
169
  useExistingDatasource: boolean;
66
170
  };
67
- };
68
- styles: {
69
- background: {
70
- repeat?: "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | "round" | "space" | undefined;
71
- color?: string | undefined;
72
- size?: "contain" | "auto" | "cover" | undefined;
73
- image?: string | undefined;
171
+ } | {
172
+ ds: {
173
+ datasource?: {
174
+ sort?: {
175
+ [x: string]: "asc" | "desc";
176
+ } | undefined;
177
+ offset?: number | undefined;
178
+ filters?: {
179
+ [x: string]: {
180
+ value: string;
181
+ op: "endsWith" | "startsWith" | "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "nin";
182
+ };
183
+ } | undefined;
184
+ limit?: number | undefined;
185
+ id: string;
186
+ mapping: {
187
+ [x: string]: string;
188
+ };
189
+ } | undefined;
190
+ isDynamic?: boolean | undefined;
191
+ useExistingDatasource: boolean;
74
192
  };
75
193
  };
76
194
  $children: any[];
@@ -103,7 +221,8 @@ export declare const manifest: {
103
221
  } | undefined;
104
222
  readonly type: string;
105
223
  readonly name: string;
106
- readonly icon: string;
224
+ readonly icon: string | import("react").FC<import("react-icons/lib").IconBaseProps>;
225
+ readonly iconClassName?: string;
107
226
  readonly description?: string;
108
227
  readonly maxWidth?: {
109
228
  mobile: number;
@@ -1 +1 @@
1
- {"version":3,"file":"container.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/container.manifest.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,6EAA8D,CAAC;AAGtF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"container.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/container.manifest.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,6EAA8D,CAAC;AAGtF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC"}