@upstart.gg/sdk 0.0.138 → 0.0.139

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 (786) hide show
  1. package/dist/shared/ai/schemas.d.ts +20 -15
  2. package/dist/shared/ai/schemas.d.ts.map +1 -1
  3. package/dist/shared/ai/schemas.js +31 -57
  4. package/dist/shared/ai/schemas.js.map +1 -1
  5. package/dist/shared/ai/types.d.ts +193 -190
  6. package/dist/shared/ai/types.d.ts.map +1 -1
  7. package/dist/shared/ai/types.js +1 -3
  8. package/dist/shared/analytics/init.d.ts +4 -1
  9. package/dist/shared/analytics/init.d.ts.map +1 -1
  10. package/dist/shared/analytics/init.js +14 -20
  11. package/dist/shared/analytics/init.js.map +1 -1
  12. package/dist/shared/analytics/track.d.ts +6 -2
  13. package/dist/shared/analytics/track.d.ts.map +1 -1
  14. package/dist/shared/analytics/track.js +14 -24
  15. package/dist/shared/analytics/track.js.map +1 -1
  16. package/dist/shared/analytics/types.d.ts +10 -8
  17. package/dist/shared/analytics/types.d.ts.map +1 -1
  18. package/dist/shared/analytics/types.js +1 -3
  19. package/dist/shared/attributes.d.ts +488 -483
  20. package/dist/shared/attributes.d.ts.map +1 -1
  21. package/dist/shared/attributes.js +369 -45
  22. package/dist/shared/attributes.js.map +1 -1
  23. package/dist/shared/brick-manifest.d.ts +126 -108
  24. package/dist/shared/brick-manifest.d.ts.map +1 -1
  25. package/dist/shared/brick-manifest.js +36 -12
  26. package/dist/shared/brick-manifest.js.map +1 -1
  27. package/dist/shared/bricks/manifests/_types.d.ts +11 -7
  28. package/dist/shared/bricks/manifests/_types.d.ts.map +1 -1
  29. package/dist/shared/bricks/manifests/_types.js +1 -3
  30. package/dist/shared/bricks/manifests/accordion.manifest.d.ts +83 -76
  31. package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
  32. package/dist/shared/bricks/manifests/accordion.manifest.js +389 -24
  33. package/dist/shared/bricks/manifests/accordion.manifest.js.map +1 -1
  34. package/dist/shared/bricks/manifests/all-manifests.d.ts +15 -10
  35. package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
  36. package/dist/shared/bricks/manifests/all-manifests.js +128 -61
  37. package/dist/shared/bricks/manifests/all-manifests.js.map +1 -1
  38. package/dist/shared/bricks/manifests/all-props.d.ts +1510 -1505
  39. package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -1
  40. package/dist/shared/bricks/manifests/all-props.js +167 -241
  41. package/dist/shared/bricks/manifests/all-props.js.map +1 -1
  42. package/dist/shared/bricks/manifests/box.manifest.d.ts +87 -80
  43. package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
  44. package/dist/shared/bricks/manifests/box.manifest.js +548 -27
  45. package/dist/shared/bricks/manifests/box.manifest.js.map +1 -1
  46. package/dist/shared/bricks/manifests/button.manifest.d.ts +75 -68
  47. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  48. package/dist/shared/bricks/manifests/button.manifest.js +308 -23
  49. package/dist/shared/bricks/manifests/button.manifest.js.map +1 -1
  50. package/dist/shared/bricks/manifests/card.manifest.d.ts +96 -89
  51. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  52. package/dist/shared/bricks/manifests/card.manifest.js +392 -28
  53. package/dist/shared/bricks/manifests/card.manifest.js.map +1 -1
  54. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +86 -79
  55. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  56. package/dist/shared/bricks/manifests/carousel.manifest.js +775 -26
  57. package/dist/shared/bricks/manifests/carousel.manifest.js.map +1 -1
  58. package/dist/shared/bricks/manifests/footer.manifest.d.ts +117 -110
  59. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  60. package/dist/shared/bricks/manifests/footer.manifest.js +864 -25
  61. package/dist/shared/bricks/manifests/footer.manifest.js.map +1 -1
  62. package/dist/shared/bricks/manifests/form.manifest.d.ts +94 -87
  63. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  64. package/dist/shared/bricks/manifests/form.manifest.js +324 -25
  65. package/dist/shared/bricks/manifests/form.manifest.js.map +1 -1
  66. package/dist/shared/bricks/manifests/hero.manifest.d.ts +80 -73
  67. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  68. package/dist/shared/bricks/manifests/hero.manifest.js +202 -24
  69. package/dist/shared/bricks/manifests/hero.manifest.js.map +1 -1
  70. package/dist/shared/bricks/manifests/html.manifest.d.ts +68 -61
  71. package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
  72. package/dist/shared/bricks/manifests/html.manifest.js +95 -18
  73. package/dist/shared/bricks/manifests/html.manifest.js.map +1 -1
  74. package/dist/shared/bricks/manifests/icon.manifest.d.ts +74 -67
  75. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  76. package/dist/shared/bricks/manifests/icon.manifest.js +239 -24
  77. package/dist/shared/bricks/manifests/icon.manifest.js.map +1 -1
  78. package/dist/shared/bricks/manifests/image.manifest.d.ts +97 -90
  79. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  80. package/dist/shared/bricks/manifests/image.manifest.js +456 -27
  81. package/dist/shared/bricks/manifests/image.manifest.js.map +1 -1
  82. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +93 -86
  83. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
  84. package/dist/shared/bricks/manifests/images-gallery.manifest.js +598 -25
  85. package/dist/shared/bricks/manifests/images-gallery.manifest.js.map +1 -1
  86. package/dist/shared/bricks/manifests/map.manifest.d.ts +78 -71
  87. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  88. package/dist/shared/bricks/manifests/map.manifest.js +138 -23
  89. package/dist/shared/bricks/manifests/map.manifest.js.map +1 -1
  90. package/dist/shared/bricks/manifests/navbar.manifest.d.ts +117 -110
  91. package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
  92. package/dist/shared/bricks/manifests/navbar.manifest.js +370 -28
  93. package/dist/shared/bricks/manifests/navbar.manifest.js.map +1 -1
  94. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +94 -87
  95. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
  96. package/dist/shared/bricks/manifests/sidebar.manifest.js +69 -24
  97. package/dist/shared/bricks/manifests/sidebar.manifest.js.map +1 -1
  98. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +84 -77
  99. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  100. package/dist/shared/bricks/manifests/social-links.manifest.js +465 -24
  101. package/dist/shared/bricks/manifests/social-links.manifest.js.map +1 -1
  102. package/dist/shared/bricks/manifests/spacer.manifest.d.ts +65 -58
  103. package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
  104. package/dist/shared/bricks/manifests/spacer.manifest.js +39 -18
  105. package/dist/shared/bricks/manifests/spacer.manifest.js.map +1 -1
  106. package/dist/shared/bricks/manifests/table.manifest.d.ts +93 -86
  107. package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
  108. package/dist/shared/bricks/manifests/table.manifest.js +771 -25
  109. package/dist/shared/bricks/manifests/table.manifest.js.map +1 -1
  110. package/dist/shared/bricks/manifests/tabs.manifest.d.ts +91 -84
  111. package/dist/shared/bricks/manifests/tabs.manifest.d.ts.map +1 -1
  112. package/dist/shared/bricks/manifests/tabs.manifest.js +119 -25
  113. package/dist/shared/bricks/manifests/tabs.manifest.js.map +1 -1
  114. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +97 -90
  115. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
  116. package/dist/shared/bricks/manifests/testimonials.manifest.js +223 -28
  117. package/dist/shared/bricks/manifests/testimonials.manifest.js.map +1 -1
  118. package/dist/shared/bricks/manifests/text.manifest.d.ts +76 -69
  119. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  120. package/dist/shared/bricks/manifests/text.manifest.js +199 -23
  121. package/dist/shared/bricks/manifests/text.manifest.js.map +1 -1
  122. package/dist/shared/bricks/manifests/timeline.manifest.d.ts +102 -95
  123. package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
  124. package/dist/shared/bricks/manifests/timeline.manifest.js +401 -25
  125. package/dist/shared/bricks/manifests/timeline.manifest.js.map +1 -1
  126. package/dist/shared/bricks/manifests/video.manifest.d.ts +74 -67
  127. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  128. package/dist/shared/bricks/manifests/video.manifest.js +97 -21
  129. package/dist/shared/bricks/manifests/video.manifest.js.map +1 -1
  130. package/dist/shared/bricks/props/align.d.ts +12 -7
  131. package/dist/shared/bricks/props/align.d.ts.map +1 -1
  132. package/dist/shared/bricks/props/align.js +74 -13
  133. package/dist/shared/bricks/props/align.js.map +1 -1
  134. package/dist/shared/bricks/props/background.d.ts +21 -17
  135. package/dist/shared/bricks/props/background.d.ts.map +1 -1
  136. package/dist/shared/bricks/props/background.js +63 -11
  137. package/dist/shared/bricks/props/background.js.map +1 -1
  138. package/dist/shared/bricks/props/boolean.d.ts +6 -2
  139. package/dist/shared/bricks/props/boolean.d.ts.map +1 -1
  140. package/dist/shared/bricks/props/boolean.js +12 -8
  141. package/dist/shared/bricks/props/boolean.js.map +1 -1
  142. package/dist/shared/bricks/props/border.d.ts +12 -7
  143. package/dist/shared/bricks/props/border.d.ts.map +1 -1
  144. package/dist/shared/bricks/props/border.js +85 -12
  145. package/dist/shared/bricks/props/border.js.map +1 -1
  146. package/dist/shared/bricks/props/color-preset.d.ts +331 -327
  147. package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
  148. package/dist/shared/bricks/props/color-preset.js +378 -10
  149. package/dist/shared/bricks/props/color-preset.js.map +1 -1
  150. package/dist/shared/bricks/props/color.d.ts +10 -5
  151. package/dist/shared/bricks/props/color.d.ts.map +1 -1
  152. package/dist/shared/bricks/props/color.js +27 -10
  153. package/dist/shared/bricks/props/color.js.map +1 -1
  154. package/dist/shared/bricks/props/common.d.ts +32 -28
  155. package/dist/shared/bricks/props/common.d.ts.map +1 -1
  156. package/dist/shared/bricks/props/common.js +42 -13
  157. package/dist/shared/bricks/props/common.js.map +1 -1
  158. package/dist/shared/bricks/props/css-length.d.ts +10 -5
  159. package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
  160. package/dist/shared/bricks/props/css-length.js +39 -12
  161. package/dist/shared/bricks/props/css-length.js.map +1 -1
  162. package/dist/shared/bricks/props/datarecord.d.ts +8 -3
  163. package/dist/shared/bricks/props/datarecord.d.ts.map +1 -1
  164. package/dist/shared/bricks/props/datarecord.js +12 -8
  165. package/dist/shared/bricks/props/datarecord.js.map +1 -1
  166. package/dist/shared/bricks/props/datasource.d.ts +18 -13
  167. package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
  168. package/dist/shared/bricks/props/datasource.js +61 -84
  169. package/dist/shared/bricks/props/datasource.js.map +1 -1
  170. package/dist/shared/bricks/props/date.d.ts +8 -3
  171. package/dist/shared/bricks/props/date.d.ts.map +1 -1
  172. package/dist/shared/bricks/props/date.js +19 -23
  173. package/dist/shared/bricks/props/date.js.map +1 -1
  174. package/dist/shared/bricks/props/direction.d.ts +8 -3
  175. package/dist/shared/bricks/props/direction.d.ts.map +1 -1
  176. package/dist/shared/bricks/props/direction.js +16 -9
  177. package/dist/shared/bricks/props/direction.js.map +1 -1
  178. package/dist/shared/bricks/props/dynamic.d.ts +39 -34
  179. package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
  180. package/dist/shared/bricks/props/dynamic.js +92 -13
  181. package/dist/shared/bricks/props/dynamic.js.map +1 -1
  182. package/dist/shared/bricks/props/effects.d.ts +18 -11
  183. package/dist/shared/bricks/props/effects.d.ts.map +1 -1
  184. package/dist/shared/bricks/props/effects.js +81 -13
  185. package/dist/shared/bricks/props/effects.js.map +1 -1
  186. package/dist/shared/bricks/props/file.d.ts +6 -1
  187. package/dist/shared/bricks/props/file.d.ts.map +1 -1
  188. package/dist/shared/bricks/props/file.js +11 -14
  189. package/dist/shared/bricks/props/file.js.map +1 -1
  190. package/dist/shared/bricks/props/geolocation.d.ts +15 -10
  191. package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
  192. package/dist/shared/bricks/props/geolocation.js +28 -40
  193. package/dist/shared/bricks/props/geolocation.js.map +1 -1
  194. package/dist/shared/bricks/props/grow.d.ts +7 -2
  195. package/dist/shared/bricks/props/grow.d.ts.map +1 -1
  196. package/dist/shared/bricks/props/grow.js +14 -8
  197. package/dist/shared/bricks/props/grow.js.map +1 -1
  198. package/dist/shared/bricks/props/helpers.d.ts +32 -24
  199. package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
  200. package/dist/shared/bricks/props/helpers.js +50 -19
  201. package/dist/shared/bricks/props/helpers.js.map +1 -1
  202. package/dist/shared/bricks/props/image.d.ts +15 -12
  203. package/dist/shared/bricks/props/image.d.ts.map +1 -1
  204. package/dist/shared/bricks/props/image.js +109 -9
  205. package/dist/shared/bricks/props/image.js.map +1 -1
  206. package/dist/shared/bricks/props/number.d.ts +8 -4
  207. package/dist/shared/bricks/props/number.d.ts.map +1 -1
  208. package/dist/shared/bricks/props/number.js +11 -8
  209. package/dist/shared/bricks/props/number.js.map +1 -1
  210. package/dist/shared/bricks/props/position.d.ts +8 -3
  211. package/dist/shared/bricks/props/position.d.ts.map +1 -1
  212. package/dist/shared/bricks/props/position.js +12 -8
  213. package/dist/shared/bricks/props/position.js.map +1 -1
  214. package/dist/shared/bricks/props/string.d.ts +13 -9
  215. package/dist/shared/bricks/props/string.d.ts.map +1 -1
  216. package/dist/shared/bricks/props/string.js +34 -12
  217. package/dist/shared/bricks/props/string.js.map +1 -1
  218. package/dist/shared/bricks/props/tags.d.ts +8 -3
  219. package/dist/shared/bricks/props/tags.d.ts.map +1 -1
  220. package/dist/shared/bricks/props/tags.js +16 -8
  221. package/dist/shared/bricks/props/tags.js.map +1 -1
  222. package/dist/shared/bricks/props/text.d.ts +22 -11
  223. package/dist/shared/bricks/props/text.d.ts.map +1 -1
  224. package/dist/shared/bricks/props/text.js +79 -13
  225. package/dist/shared/bricks/props/text.js.map +1 -1
  226. package/dist/shared/bricks/props/types.d.ts +52 -49
  227. package/dist/shared/bricks/props/types.d.ts.map +1 -1
  228. package/dist/shared/bricks/props/types.js +1 -3
  229. package/dist/shared/bricks.d.ts +183 -179
  230. package/dist/shared/bricks.d.ts.map +1 -1
  231. package/dist/shared/bricks.js +271 -78
  232. package/dist/shared/bricks.js.map +1 -1
  233. package/dist/shared/context.d.ts +405 -398
  234. package/dist/shared/context.d.ts.map +1 -1
  235. package/dist/shared/context.js +22 -93
  236. package/dist/shared/context.js.map +1 -1
  237. package/dist/shared/datarecords/external/airtable/handler.d.ts +40 -20
  238. package/dist/shared/datarecords/external/airtable/handler.d.ts.map +1 -1
  239. package/dist/shared/datarecords/external/airtable/handler.js +242 -366
  240. package/dist/shared/datarecords/external/airtable/handler.js.map +1 -1
  241. package/dist/shared/datarecords/external/airtable/oauth/config.d.ts +14 -9
  242. package/dist/shared/datarecords/external/airtable/oauth/config.d.ts.map +1 -1
  243. package/dist/shared/datarecords/external/airtable/oauth/config.js +12 -15
  244. package/dist/shared/datarecords/external/airtable/oauth/config.js.map +1 -1
  245. package/dist/shared/datarecords/external/airtable/types.d.ts +39 -35
  246. package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
  247. package/dist/shared/datarecords/external/airtable/types.js +44 -13
  248. package/dist/shared/datarecords/external/airtable/types.js.map +1 -1
  249. package/dist/shared/datarecords/external/generic-webhook/handler.d.ts +6 -2
  250. package/dist/shared/datarecords/external/generic-webhook/handler.d.ts.map +1 -1
  251. package/dist/shared/datarecords/external/generic-webhook/handler.js +9 -14
  252. package/dist/shared/datarecords/external/generic-webhook/handler.js.map +1 -1
  253. package/dist/shared/datarecords/external/generic-webhook/options.d.ts +10 -5
  254. package/dist/shared/datarecords/external/generic-webhook/options.d.ts.map +1 -1
  255. package/dist/shared/datarecords/external/generic-webhook/options.js +14 -16
  256. package/dist/shared/datarecords/external/generic-webhook/options.js.map +1 -1
  257. package/dist/shared/datarecords/external/google/oauth/config.d.ts +28 -24
  258. package/dist/shared/datarecords/external/google/oauth/config.d.ts.map +1 -1
  259. package/dist/shared/datarecords/external/google/oauth/config.js +25 -34
  260. package/dist/shared/datarecords/external/google/oauth/config.js.map +1 -1
  261. package/dist/shared/datarecords/external/google/sheets/client.d.ts +11 -9
  262. package/dist/shared/datarecords/external/google/sheets/client.d.ts.map +1 -1
  263. package/dist/shared/datarecords/external/google/sheets/client.js +75 -8
  264. package/dist/shared/datarecords/external/google/sheets/client.js.map +1 -1
  265. package/dist/shared/datarecords/external/google/sheets/handler.d.ts +36 -18
  266. package/dist/shared/datarecords/external/google/sheets/handler.d.ts.map +1 -1
  267. package/dist/shared/datarecords/external/google/sheets/handler.js +103 -176
  268. package/dist/shared/datarecords/external/google/sheets/handler.js.map +1 -1
  269. package/dist/shared/datarecords/external/google/sheets/types.d.ts +12 -7
  270. package/dist/shared/datarecords/external/google/sheets/types.d.ts.map +1 -1
  271. package/dist/shared/datarecords/external/google/sheets/types.js +11 -8
  272. package/dist/shared/datarecords/external/google/sheets/types.js.map +1 -1
  273. package/dist/shared/datarecords/external/notion/handler.d.ts +48 -26
  274. package/dist/shared/datarecords/external/notion/handler.d.ts.map +1 -1
  275. package/dist/shared/datarecords/external/notion/handler.js +233 -386
  276. package/dist/shared/datarecords/external/notion/handler.js.map +1 -1
  277. package/dist/shared/datarecords/external/notion/oauth/config.d.ts +10 -5
  278. package/dist/shared/datarecords/external/notion/oauth/config.d.ts.map +1 -1
  279. package/dist/shared/datarecords/external/notion/oauth/config.js +8 -11
  280. package/dist/shared/datarecords/external/notion/oauth/config.js.map +1 -1
  281. package/dist/shared/datarecords/external/notion/types.d.ts +20 -15
  282. package/dist/shared/datarecords/external/notion/types.d.ts.map +1 -1
  283. package/dist/shared/datarecords/external/notion/types.js +14 -8
  284. package/dist/shared/datarecords/external/notion/types.js.map +1 -1
  285. package/dist/shared/datarecords/types.d.ts +24 -19
  286. package/dist/shared/datarecords/types.d.ts.map +1 -1
  287. package/dist/shared/datarecords/types.js +144 -16
  288. package/dist/shared/datarecords/types.js.map +1 -1
  289. package/dist/shared/datarecords.d.ts +6 -2
  290. package/dist/shared/datarecords.d.ts.map +1 -1
  291. package/dist/shared/datarecords.js +5 -9
  292. package/dist/shared/datarecords.js.map +1 -1
  293. package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts +8 -5
  294. package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts.map +1 -1
  295. package/dist/shared/datasources/external/facebook/posts/fetcher.js +38 -48
  296. package/dist/shared/datasources/external/facebook/posts/fetcher.js.map +1 -1
  297. package/dist/shared/datasources/external/facebook/posts/schema.d.ts +30 -25
  298. package/dist/shared/datasources/external/facebook/posts/schema.d.ts.map +1 -1
  299. package/dist/shared/datasources/external/facebook/posts/schema.js +29 -36
  300. package/dist/shared/datasources/external/facebook/posts/schema.js.map +1 -1
  301. package/dist/shared/datasources/external/http-json/fetcher.d.ts +7 -3
  302. package/dist/shared/datasources/external/http-json/fetcher.d.ts.map +1 -1
  303. package/dist/shared/datasources/external/http-json/fetcher.js +16 -28
  304. package/dist/shared/datasources/external/http-json/fetcher.js.map +1 -1
  305. package/dist/shared/datasources/external/http-json/options.d.ts +10 -5
  306. package/dist/shared/datasources/external/http-json/options.d.ts.map +1 -1
  307. package/dist/shared/datasources/external/http-json/options.js +8 -11
  308. package/dist/shared/datasources/external/http-json/options.js.map +1 -1
  309. package/dist/shared/datasources/external/http-json/schema.d.ts +9 -4
  310. package/dist/shared/datasources/external/http-json/schema.d.ts.map +1 -1
  311. package/dist/shared/datasources/external/http-json/schema.js +6 -10
  312. package/dist/shared/datasources/external/http-json/schema.js.map +1 -1
  313. package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts +8 -5
  314. package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts.map +1 -1
  315. package/dist/shared/datasources/external/instagram/feed/fetcher.js +26 -28
  316. package/dist/shared/datasources/external/instagram/feed/fetcher.js.map +1 -1
  317. package/dist/shared/datasources/external/instagram/feed/schema.d.ts +22 -17
  318. package/dist/shared/datasources/external/instagram/feed/schema.d.ts.map +1 -1
  319. package/dist/shared/datasources/external/instagram/feed/schema.js +26 -29
  320. package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -1
  321. package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts +7 -4
  322. package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts.map +1 -1
  323. package/dist/shared/datasources/external/mastodon/account/fetcher.js +10 -8
  324. package/dist/shared/datasources/external/mastodon/account/fetcher.js.map +1 -1
  325. package/dist/shared/datasources/external/mastodon/account/schema.d.ts +43 -38
  326. package/dist/shared/datasources/external/mastodon/account/schema.d.ts.map +1 -1
  327. package/dist/shared/datasources/external/mastodon/account/schema.js +42 -8
  328. package/dist/shared/datasources/external/mastodon/account/schema.js.map +1 -1
  329. package/dist/shared/datasources/external/mastodon/options.d.ts +9 -4
  330. package/dist/shared/datasources/external/mastodon/options.d.ts.map +1 -1
  331. package/dist/shared/datasources/external/mastodon/options.js +5 -10
  332. package/dist/shared/datasources/external/mastodon/options.js.map +1 -1
  333. package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts +7 -4
  334. package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts.map +1 -1
  335. package/dist/shared/datasources/external/mastodon/status/fetcher.js +20 -31
  336. package/dist/shared/datasources/external/mastodon/status/fetcher.js.map +1 -1
  337. package/dist/shared/datasources/external/mastodon/status/sample.array.d.ts +50 -47
  338. package/dist/shared/datasources/external/mastodon/status/sample.array.d.ts.map +1 -1
  339. package/dist/shared/datasources/external/mastodon/status/sample.array.js +54 -62
  340. package/dist/shared/datasources/external/mastodon/status/sample.array.js.map +1 -1
  341. package/dist/shared/datasources/external/mastodon/status/sample.single.d.ts +50 -47
  342. package/dist/shared/datasources/external/mastodon/status/sample.single.d.ts.map +1 -1
  343. package/dist/shared/datasources/external/mastodon/status/sample.single.js +54 -60
  344. package/dist/shared/datasources/external/mastodon/status/sample.single.js.map +1 -1
  345. package/dist/shared/datasources/external/mastodon/status/schema.d.ts +252 -247
  346. package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
  347. package/dist/shared/datasources/external/mastodon/status/schema.js +108 -108
  348. package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -1
  349. package/dist/shared/datasources/external/meta/oauth/config.d.ts +29 -25
  350. package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
  351. package/dist/shared/datasources/external/meta/oauth/config.js +15 -20
  352. package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -1
  353. package/dist/shared/datasources/external/meta/options.d.ts +9 -4
  354. package/dist/shared/datasources/external/meta/options.d.ts.map +1 -1
  355. package/dist/shared/datasources/external/meta/options.js +5 -10
  356. package/dist/shared/datasources/external/meta/options.js.map +1 -1
  357. package/dist/shared/datasources/external/rss/fetcher.d.ts +7 -4
  358. package/dist/shared/datasources/external/rss/fetcher.d.ts.map +1 -1
  359. package/dist/shared/datasources/external/rss/fetcher.js +14 -25
  360. package/dist/shared/datasources/external/rss/fetcher.js.map +1 -1
  361. package/dist/shared/datasources/external/rss/options.d.ts +9 -4
  362. package/dist/shared/datasources/external/rss/options.d.ts.map +1 -1
  363. package/dist/shared/datasources/external/rss/options.js +5 -10
  364. package/dist/shared/datasources/external/rss/options.js.map +1 -1
  365. package/dist/shared/datasources/external/rss/sample.js +25 -0
  366. package/dist/shared/datasources/external/rss/sample.js.map +1 -0
  367. package/dist/shared/datasources/external/rss/schema.d.ts +13 -8
  368. package/dist/shared/datasources/external/rss/schema.d.ts.map +1 -1
  369. package/dist/shared/datasources/external/rss/schema.js +30 -8
  370. package/dist/shared/datasources/external/rss/schema.js.map +1 -1
  371. package/dist/shared/datasources/external/threads/media/fetcher.d.ts +9 -5
  372. package/dist/shared/datasources/external/threads/media/fetcher.d.ts.map +1 -1
  373. package/dist/shared/datasources/external/threads/media/fetcher.js +37 -46
  374. package/dist/shared/datasources/external/threads/media/fetcher.js.map +1 -1
  375. package/dist/shared/datasources/external/threads/media/schema.d.ts +29 -24
  376. package/dist/shared/datasources/external/threads/media/schema.d.ts.map +1 -1
  377. package/dist/shared/datasources/external/threads/media/schema.js +32 -36
  378. package/dist/shared/datasources/external/threads/media/schema.js.map +1 -1
  379. package/dist/shared/datasources/external/tiktok/oauth/config.d.ts +31 -27
  380. package/dist/shared/datasources/external/tiktok/oauth/config.d.ts.map +1 -1
  381. package/dist/shared/datasources/external/tiktok/oauth/config.js +15 -18
  382. package/dist/shared/datasources/external/tiktok/oauth/config.js.map +1 -1
  383. package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts +8 -5
  384. package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts.map +1 -1
  385. package/dist/shared/datasources/external/tiktok/video/fetcher.js +31 -33
  386. package/dist/shared/datasources/external/tiktok/video/fetcher.js.map +1 -1
  387. package/dist/shared/datasources/external/tiktok/video/options.d.ts +10 -5
  388. package/dist/shared/datasources/external/tiktok/video/options.d.ts.map +1 -1
  389. package/dist/shared/datasources/external/tiktok/video/options.js +8 -11
  390. package/dist/shared/datasources/external/tiktok/video/options.js.map +1 -1
  391. package/dist/shared/datasources/external/tiktok/video/schema.d.ts +24 -19
  392. package/dist/shared/datasources/external/tiktok/video/schema.d.ts.map +1 -1
  393. package/dist/shared/datasources/external/tiktok/video/schema.js +23 -30
  394. package/dist/shared/datasources/external/tiktok/video/schema.js.map +1 -1
  395. package/dist/shared/datasources/external/youtube/list/fetcher.d.ts +8 -5
  396. package/dist/shared/datasources/external/youtube/list/fetcher.d.ts.map +1 -1
  397. package/dist/shared/datasources/external/youtube/list/fetcher.js +20 -31
  398. package/dist/shared/datasources/external/youtube/list/fetcher.js.map +1 -1
  399. package/dist/shared/datasources/external/youtube/list/options.d.ts +13 -8
  400. package/dist/shared/datasources/external/youtube/list/options.d.ts.map +1 -1
  401. package/dist/shared/datasources/external/youtube/list/options.js +11 -14
  402. package/dist/shared/datasources/external/youtube/list/options.js.map +1 -1
  403. package/dist/shared/datasources/external/youtube/list/sample.js +33 -0
  404. package/dist/shared/datasources/external/youtube/list/sample.js.map +1 -0
  405. package/dist/shared/datasources/external/youtube/list/schema.d.ts +33 -28
  406. package/dist/shared/datasources/external/youtube/list/schema.d.ts.map +1 -1
  407. package/dist/shared/datasources/external/youtube/list/schema.js +36 -8
  408. package/dist/shared/datasources/external/youtube/list/schema.js.map +1 -1
  409. package/dist/shared/datasources/external/youtube/oauth/config.d.ts +22 -18
  410. package/dist/shared/datasources/external/youtube/oauth/config.d.ts.map +1 -1
  411. package/dist/shared/datasources/external/youtube/oauth/config.js +15 -18
  412. package/dist/shared/datasources/external/youtube/oauth/config.js.map +1 -1
  413. package/dist/shared/datasources/fetcher.d.ts +10 -6
  414. package/dist/shared/datasources/fetcher.d.ts.map +1 -1
  415. package/dist/shared/datasources/fetcher.js +1 -3
  416. package/dist/shared/datasources/internal/blog/schema.d.ts +20 -15
  417. package/dist/shared/datasources/internal/blog/schema.d.ts.map +1 -1
  418. package/dist/shared/datasources/internal/blog/schema.js +59 -75
  419. package/dist/shared/datasources/internal/blog/schema.js.map +1 -1
  420. package/dist/shared/datasources/internal/changelog/schema.d.ts +15 -10
  421. package/dist/shared/datasources/internal/changelog/schema.d.ts.map +1 -1
  422. package/dist/shared/datasources/internal/changelog/schema.js +36 -51
  423. package/dist/shared/datasources/internal/changelog/schema.js.map +1 -1
  424. package/dist/shared/datasources/internal/contact-info/schema.d.ts +21 -16
  425. package/dist/shared/datasources/internal/contact-info/schema.d.ts.map +1 -1
  426. package/dist/shared/datasources/internal/contact-info/schema.js +21 -25
  427. package/dist/shared/datasources/internal/contact-info/schema.js.map +1 -1
  428. package/dist/shared/datasources/internal/cv/schema.d.ts +71 -66
  429. package/dist/shared/datasources/internal/cv/schema.d.ts.map +1 -1
  430. package/dist/shared/datasources/internal/cv/schema.js +155 -222
  431. package/dist/shared/datasources/internal/cv/schema.js.map +1 -1
  432. package/dist/shared/datasources/internal/faq/schema.d.ts +13 -8
  433. package/dist/shared/datasources/internal/faq/schema.d.ts.map +1 -1
  434. package/dist/shared/datasources/internal/faq/schema.js +20 -30
  435. package/dist/shared/datasources/internal/faq/schema.js.map +1 -1
  436. package/dist/shared/datasources/internal/job-board/schema.d.ts +86 -81
  437. package/dist/shared/datasources/internal/job-board/schema.d.ts.map +1 -1
  438. package/dist/shared/datasources/internal/job-board/schema.js +194 -224
  439. package/dist/shared/datasources/internal/job-board/schema.js.map +1 -1
  440. package/dist/shared/datasources/internal/links/schema.d.ts +12 -7
  441. package/dist/shared/datasources/internal/links/schema.d.ts.map +1 -1
  442. package/dist/shared/datasources/internal/links/schema.js +20 -8
  443. package/dist/shared/datasources/internal/links/schema.js.map +1 -1
  444. package/dist/shared/datasources/internal/recipes/schema.d.ts +19 -14
  445. package/dist/shared/datasources/internal/recipes/schema.d.ts.map +1 -1
  446. package/dist/shared/datasources/internal/recipes/schema.js +23 -45
  447. package/dist/shared/datasources/internal/recipes/schema.js.map +1 -1
  448. package/dist/shared/datasources/internal/restaurant/schema.d.ts +82 -77
  449. package/dist/shared/datasources/internal/restaurant/schema.d.ts.map +1 -1
  450. package/dist/shared/datasources/internal/restaurant/schema.js +154 -226
  451. package/dist/shared/datasources/internal/restaurant/schema.js.map +1 -1
  452. package/dist/shared/datasources/samples.d.ts +7 -3
  453. package/dist/shared/datasources/samples.d.ts.map +1 -1
  454. package/dist/shared/datasources/samples.js +9 -69
  455. package/dist/shared/datasources/samples.js.map +1 -1
  456. package/dist/shared/datasources/schemas.d.ts +43 -38
  457. package/dist/shared/datasources/schemas.d.ts.map +1 -1
  458. package/dist/shared/datasources/schemas.js +10 -34
  459. package/dist/shared/datasources/schemas.js.map +1 -1
  460. package/dist/shared/datasources/types.d.ts +142 -138
  461. package/dist/shared/datasources/types.d.ts.map +1 -1
  462. package/dist/shared/datasources/types.js +384 -20
  463. package/dist/shared/datasources/types.js.map +1 -1
  464. package/dist/shared/datasources/utils.d.ts +8 -4
  465. package/dist/shared/datasources/utils.d.ts.map +1 -1
  466. package/dist/shared/datasources/utils.js +15 -12
  467. package/dist/shared/datasources/utils.js.map +1 -1
  468. package/dist/shared/datasources.d.ts +22 -9
  469. package/dist/shared/datasources.d.ts.map +1 -1
  470. package/dist/shared/datasources.js +65 -44
  471. package/dist/shared/datasources.js.map +1 -1
  472. package/dist/shared/env.d.ts +25 -21
  473. package/dist/shared/env.d.ts.map +1 -1
  474. package/dist/shared/env.js +1 -3
  475. package/dist/shared/errors.d.ts +2 -2
  476. package/dist/shared/errors.js +2 -9
  477. package/dist/shared/images.d.ts +21 -16
  478. package/dist/shared/images.d.ts.map +1 -1
  479. package/dist/shared/images.js +24 -11
  480. package/dist/shared/images.js.map +1 -1
  481. package/dist/shared/index.d.ts +4 -2
  482. package/dist/shared/index.d.ts.map +1 -1
  483. package/dist/shared/index.js +4 -10
  484. package/dist/shared/index.js.map +1 -1
  485. package/dist/shared/layout-constants.d.ts +8 -5
  486. package/dist/shared/layout-constants.d.ts.map +1 -1
  487. package/dist/shared/layout-constants.js +15 -15
  488. package/dist/shared/layout-constants.js.map +1 -1
  489. package/dist/shared/manifest.d.ts +17 -12
  490. package/dist/shared/manifest.d.ts.map +1 -1
  491. package/dist/shared/manifest.js +26 -52
  492. package/dist/shared/manifest.js.map +1 -1
  493. package/dist/shared/oauth.d.ts +14 -9
  494. package/dist/shared/oauth.d.ts.map +1 -1
  495. package/dist/shared/oauth.js +14 -9
  496. package/dist/shared/oauth.js.map +1 -1
  497. package/dist/shared/page.d.ts +250 -243
  498. package/dist/shared/page.d.ts.map +1 -1
  499. package/dist/shared/page.js +29 -62
  500. package/dist/shared/page.js.map +1 -1
  501. package/dist/shared/prompt.d.ts +8 -3
  502. package/dist/shared/prompt.d.ts.map +1 -1
  503. package/dist/shared/prompt.js +10 -8
  504. package/dist/shared/prompt.js.map +1 -1
  505. package/dist/shared/responsive.d.ts +8 -3
  506. package/dist/shared/responsive.d.ts.map +1 -1
  507. package/dist/shared/responsive.js +5 -10
  508. package/dist/shared/responsive.js.map +1 -1
  509. package/dist/shared/site.d.ts +629 -622
  510. package/dist/shared/site.d.ts.map +1 -1
  511. package/dist/shared/site.js +56 -70
  512. package/dist/shared/site.js.map +1 -1
  513. package/dist/shared/sitemap.d.ts +21 -14
  514. package/dist/shared/sitemap.d.ts.map +1 -1
  515. package/dist/shared/sitemap.js +29 -63
  516. package/dist/shared/sitemap.js.map +1 -1
  517. package/dist/shared/social-icons.d.ts +6 -3
  518. package/dist/shared/social-icons.d.ts.map +1 -1
  519. package/dist/shared/social-icons.js +309 -313
  520. package/dist/shared/social-icons.js.map +1 -1
  521. package/dist/shared/theme.d.ts +83 -78
  522. package/dist/shared/theme.d.ts.map +1 -1
  523. package/dist/shared/theme.js +261 -18
  524. package/dist/shared/theme.js.map +1 -1
  525. package/dist/shared/themes/color-system.d.ts +16 -12
  526. package/dist/shared/themes/color-system.d.ts.map +1 -1
  527. package/dist/shared/themes/color-system.js +81 -89
  528. package/dist/shared/themes/color-system.js.map +1 -1
  529. package/dist/shared/utils/canvas-data-uri.d.ts +4 -1
  530. package/dist/shared/utils/canvas-data-uri.d.ts.map +1 -1
  531. package/dist/shared/utils/canvas-data-uri.js +4 -8
  532. package/dist/shared/utils/canvas-data-uri.js.map +1 -1
  533. package/dist/shared/utils/invariant.d.ts +4 -1
  534. package/dist/shared/utils/invariant.d.ts.map +1 -1
  535. package/dist/shared/utils/invariant.js +10 -8
  536. package/dist/shared/utils/invariant.js.map +1 -1
  537. package/dist/shared/utils/json-date.d.ts +9 -4
  538. package/dist/shared/utils/json-date.d.ts.map +1 -1
  539. package/dist/shared/utils/json-date.js +6 -8
  540. package/dist/shared/utils/json-date.js.map +1 -1
  541. package/dist/shared/utils/llm.d.ts +7 -2
  542. package/dist/shared/utils/llm.d.ts.map +1 -1
  543. package/dist/shared/utils/llm.js +57 -8
  544. package/dist/shared/utils/llm.js.map +1 -1
  545. package/dist/shared/utils/merge.d.ts +4 -1
  546. package/dist/shared/utils/merge.d.ts.map +1 -1
  547. package/dist/shared/utils/merge.js +11 -8
  548. package/dist/shared/utils/merge.js.map +1 -1
  549. package/dist/shared/utils/object-hash.d.ts +4 -1
  550. package/dist/shared/utils/object-hash.d.ts.map +1 -1
  551. package/dist/shared/utils/object-hash.js +8 -13
  552. package/dist/shared/utils/object-hash.js.map +1 -1
  553. package/dist/shared/utils/schema.d.ts +13 -10
  554. package/dist/shared/utils/schema.d.ts.map +1 -1
  555. package/dist/shared/utils/schema.js +91 -14
  556. package/dist/shared/utils/schema.js.map +1 -1
  557. package/dist/shared/utils/string-enum.d.ts +13 -8
  558. package/dist/shared/utils/string-enum.d.ts.map +1 -1
  559. package/dist/shared/utils/string-enum.js +18 -8
  560. package/dist/shared/utils/string-enum.js.map +1 -1
  561. package/dist/shared/utils/try-catch.d.ts +4 -2
  562. package/dist/shared/utils/try-catch.d.ts.map +1 -1
  563. package/dist/shared/utils/try-catch.js +12 -13
  564. package/dist/shared/utils/try-catch.js.map +1 -1
  565. package/package.json +10 -20
  566. package/src/shared/ai/schemas.ts +5 -3
  567. package/src/shared/attributes.ts +10 -6
  568. package/src/shared/bricks/manifests/card.manifest.ts +2 -5
  569. package/src/shared/bricks/manifests/image.manifest.ts +1 -5
  570. package/src/shared/bricks/props/color.ts +3 -2
  571. package/src/shared/bricks/props/dynamic.ts +4 -1
  572. package/src/shared/bricks/props/image.ts +2 -3
  573. package/src/shared/bricks.ts +3 -2
  574. package/src/shared/datarecords/types.ts +41 -33
  575. package/src/shared/datasources/external/rss/fetcher.ts +0 -6
  576. package/src/shared/datasources.ts +13 -5
  577. package/src/shared/prompt.ts +1 -1
  578. package/src/shared/site.ts +2 -1
  579. package/src/shared/sitemap.ts +7 -0
  580. package/src/shared/utils/schema.ts +12 -43
  581. package/src/shared/utils/tests/schema.test.ts +53 -28
  582. package/dist/shared/ai/types.js.map +0 -1
  583. package/dist/shared/ajv.d.ts +0 -7
  584. package/dist/shared/ajv.d.ts.map +0 -1
  585. package/dist/shared/ajv.js +0 -6866
  586. package/dist/shared/ajv.js.map +0 -1
  587. package/dist/shared/analytics/types.js.map +0 -1
  588. package/dist/shared/bricks/manifests/_types.js.map +0 -1
  589. package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts +0 -2
  590. package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts.map +0 -1
  591. package/dist/shared/bricks/props/tests/background.test.d.ts +0 -2
  592. package/dist/shared/bricks/props/tests/background.test.d.ts.map +0 -1
  593. package/dist/shared/bricks/props/tests/border.test.d.ts +0 -2
  594. package/dist/shared/bricks/props/tests/border.test.d.ts.map +0 -1
  595. package/dist/shared/bricks/props/tests/effects.test.d.ts +0 -2
  596. package/dist/shared/bricks/props/tests/effects.test.d.ts.map +0 -1
  597. package/dist/shared/bricks/props/tests/helpers.test.d.ts +0 -2
  598. package/dist/shared/bricks/props/tests/helpers.test.d.ts.map +0 -1
  599. package/dist/shared/bricks/props/tests/image.test.d.ts +0 -2
  600. package/dist/shared/bricks/props/tests/image.test.d.ts.map +0 -1
  601. package/dist/shared/bricks/props/tests/string.test.d.ts +0 -2
  602. package/dist/shared/bricks/props/tests/string.test.d.ts.map +0 -1
  603. package/dist/shared/bricks/props/types.js.map +0 -1
  604. package/dist/shared/chunk-2BPYOTKA.js +0 -21
  605. package/dist/shared/chunk-2BPYOTKA.js.map +0 -1
  606. package/dist/shared/chunk-2EOCK66Z.js +0 -19
  607. package/dist/shared/chunk-2EOCK66Z.js.map +0 -1
  608. package/dist/shared/chunk-2U5U3CCJ.js +0 -90
  609. package/dist/shared/chunk-2U5U3CCJ.js.map +0 -1
  610. package/dist/shared/chunk-2UEPTT5J.js +0 -67
  611. package/dist/shared/chunk-2UEPTT5J.js.map +0 -1
  612. package/dist/shared/chunk-2Z5WOCFS.js +0 -126
  613. package/dist/shared/chunk-2Z5WOCFS.js.map +0 -1
  614. package/dist/shared/chunk-34IUWNRX.js +0 -346
  615. package/dist/shared/chunk-34IUWNRX.js.map +0 -1
  616. package/dist/shared/chunk-3ZDN5BWN.js +0 -18
  617. package/dist/shared/chunk-3ZDN5BWN.js.map +0 -1
  618. package/dist/shared/chunk-55C6MTX2.js +0 -21
  619. package/dist/shared/chunk-55C6MTX2.js.map +0 -1
  620. package/dist/shared/chunk-57NRTXRA.js +0 -309
  621. package/dist/shared/chunk-57NRTXRA.js.map +0 -1
  622. package/dist/shared/chunk-5HJT5NJ3.js +0 -422
  623. package/dist/shared/chunk-5HJT5NJ3.js.map +0 -1
  624. package/dist/shared/chunk-5J4Y43RM.js +0 -388
  625. package/dist/shared/chunk-5J4Y43RM.js.map +0 -1
  626. package/dist/shared/chunk-5OVOXUFX.js +0 -61
  627. package/dist/shared/chunk-5OVOXUFX.js.map +0 -1
  628. package/dist/shared/chunk-5RCC2STG.js +0 -58
  629. package/dist/shared/chunk-5RCC2STG.js.map +0 -1
  630. package/dist/shared/chunk-5SNSUC6Q.js +0 -364
  631. package/dist/shared/chunk-5SNSUC6Q.js.map +0 -1
  632. package/dist/shared/chunk-6TVVKUWM.js +0 -15
  633. package/dist/shared/chunk-6TVVKUWM.js.map +0 -1
  634. package/dist/shared/chunk-6WIMWLCJ.js +0 -17
  635. package/dist/shared/chunk-6WIMWLCJ.js.map +0 -1
  636. package/dist/shared/chunk-7LAWWRU7.js +0 -21
  637. package/dist/shared/chunk-7LAWWRU7.js.map +0 -1
  638. package/dist/shared/chunk-B5T2LFV2.js +0 -494
  639. package/dist/shared/chunk-B5T2LFV2.js.map +0 -1
  640. package/dist/shared/chunk-BHARJBEK.js +0 -27
  641. package/dist/shared/chunk-BHARJBEK.js.map +0 -1
  642. package/dist/shared/chunk-DCM4732T.js +0 -146
  643. package/dist/shared/chunk-DCM4732T.js.map +0 -1
  644. package/dist/shared/chunk-E3ZW57HF.js +0 -843
  645. package/dist/shared/chunk-E3ZW57HF.js.map +0 -1
  646. package/dist/shared/chunk-EID5HPF3.js +0 -63
  647. package/dist/shared/chunk-EID5HPF3.js.map +0 -1
  648. package/dist/shared/chunk-EMF5TCPX.js +0 -389
  649. package/dist/shared/chunk-EMF5TCPX.js.map +0 -1
  650. package/dist/shared/chunk-EUFVTHAG.js +0 -33
  651. package/dist/shared/chunk-EUFVTHAG.js.map +0 -1
  652. package/dist/shared/chunk-FC52EHCC.js +0 -104
  653. package/dist/shared/chunk-FC52EHCC.js.map +0 -1
  654. package/dist/shared/chunk-FD7YYFRI.js +0 -225
  655. package/dist/shared/chunk-FD7YYFRI.js.map +0 -1
  656. package/dist/shared/chunk-FVV27R73.js +0 -269
  657. package/dist/shared/chunk-FVV27R73.js.map +0 -1
  658. package/dist/shared/chunk-FYGFB5U5.js +0 -57
  659. package/dist/shared/chunk-FYGFB5U5.js.map +0 -1
  660. package/dist/shared/chunk-GDYCCB3B.js +0 -22
  661. package/dist/shared/chunk-GDYCCB3B.js.map +0 -1
  662. package/dist/shared/chunk-GLV6QIIM.js +0 -41
  663. package/dist/shared/chunk-GLV6QIIM.js.map +0 -1
  664. package/dist/shared/chunk-GNTJT7MR.js +0 -56
  665. package/dist/shared/chunk-GNTJT7MR.js.map +0 -1
  666. package/dist/shared/chunk-HHUFGV7J.js +0 -259
  667. package/dist/shared/chunk-HHUFGV7J.js.map +0 -1
  668. package/dist/shared/chunk-HPCCD6V5.js +0 -17
  669. package/dist/shared/chunk-HPCCD6V5.js.map +0 -1
  670. package/dist/shared/chunk-IEMCCHM4.js +0 -389
  671. package/dist/shared/chunk-IEMCCHM4.js.map +0 -1
  672. package/dist/shared/chunk-IMDOF55E.js +0 -137
  673. package/dist/shared/chunk-IMDOF55E.js.map +0 -1
  674. package/dist/shared/chunk-IPWYNE6Y.js +0 -213
  675. package/dist/shared/chunk-IPWYNE6Y.js.map +0 -1
  676. package/dist/shared/chunk-J6R3GSKS.js +0 -386
  677. package/dist/shared/chunk-J6R3GSKS.js.map +0 -1
  678. package/dist/shared/chunk-KNREHAPN.js +0 -13
  679. package/dist/shared/chunk-KNREHAPN.js.map +0 -1
  680. package/dist/shared/chunk-KRODRZNS.js +0 -440
  681. package/dist/shared/chunk-KRODRZNS.js.map +0 -1
  682. package/dist/shared/chunk-KT7SSWMM.js +0 -24
  683. package/dist/shared/chunk-KT7SSWMM.js.map +0 -1
  684. package/dist/shared/chunk-KTA7XES3.js +0 -168
  685. package/dist/shared/chunk-KTA7XES3.js.map +0 -1
  686. package/dist/shared/chunk-L4W4B2RQ.js +0 -174
  687. package/dist/shared/chunk-L4W4B2RQ.js.map +0 -1
  688. package/dist/shared/chunk-MO6CRLQA.js +0 -73
  689. package/dist/shared/chunk-MO6CRLQA.js.map +0 -1
  690. package/dist/shared/chunk-NTP6BKRU.js +0 -516
  691. package/dist/shared/chunk-NTP6BKRU.js.map +0 -1
  692. package/dist/shared/chunk-O53V22BK.js +0 -469
  693. package/dist/shared/chunk-O53V22BK.js.map +0 -1
  694. package/dist/shared/chunk-O5PQISX4.js +0 -51
  695. package/dist/shared/chunk-O5PQISX4.js.map +0 -1
  696. package/dist/shared/chunk-OJ6KL7FU.js +0 -32
  697. package/dist/shared/chunk-OJ6KL7FU.js.map +0 -1
  698. package/dist/shared/chunk-OJP4HMJT.js +0 -22
  699. package/dist/shared/chunk-OJP4HMJT.js.map +0 -1
  700. package/dist/shared/chunk-ORIUCOED.js +0 -129
  701. package/dist/shared/chunk-ORIUCOED.js.map +0 -1
  702. package/dist/shared/chunk-OSJ6KGPX.js +0 -16
  703. package/dist/shared/chunk-OSJ6KGPX.js.map +0 -1
  704. package/dist/shared/chunk-OXYXZHP2.js +0 -48
  705. package/dist/shared/chunk-OXYXZHP2.js.map +0 -1
  706. package/dist/shared/chunk-PFZMRSHJ.js +0 -616
  707. package/dist/shared/chunk-PFZMRSHJ.js.map +0 -1
  708. package/dist/shared/chunk-QHKOAIOK.js +0 -243
  709. package/dist/shared/chunk-QHKOAIOK.js.map +0 -1
  710. package/dist/shared/chunk-QLQVDZIL.js +0 -11
  711. package/dist/shared/chunk-QLQVDZIL.js.map +0 -1
  712. package/dist/shared/chunk-RDOCVLCF.js +0 -422
  713. package/dist/shared/chunk-RDOCVLCF.js.map +0 -1
  714. package/dist/shared/chunk-RFH7PEVS.js +0 -38
  715. package/dist/shared/chunk-RFH7PEVS.js.map +0 -1
  716. package/dist/shared/chunk-T3UPW5OW.js +0 -79
  717. package/dist/shared/chunk-T3UPW5OW.js.map +0 -1
  718. package/dist/shared/chunk-TGKNA2JS.js +0 -847
  719. package/dist/shared/chunk-TGKNA2JS.js.map +0 -1
  720. package/dist/shared/chunk-TKMWY2VN.js +0 -18
  721. package/dist/shared/chunk-TKMWY2VN.js.map +0 -1
  722. package/dist/shared/chunk-TZ6X7ZM5.js +0 -158
  723. package/dist/shared/chunk-TZ6X7ZM5.js.map +0 -1
  724. package/dist/shared/chunk-UC75KRLX.js +0 -67
  725. package/dist/shared/chunk-UC75KRLX.js.map +0 -1
  726. package/dist/shared/chunk-VMIJ6MG5.js +0 -368
  727. package/dist/shared/chunk-VMIJ6MG5.js.map +0 -1
  728. package/dist/shared/chunk-VYA2FCTY.js +0 -83
  729. package/dist/shared/chunk-VYA2FCTY.js.map +0 -1
  730. package/dist/shared/chunk-WPZV3LYL.js +0 -24
  731. package/dist/shared/chunk-WPZV3LYL.js.map +0 -1
  732. package/dist/shared/chunk-XCWMZVF5.js +0 -89
  733. package/dist/shared/chunk-XCWMZVF5.js.map +0 -1
  734. package/dist/shared/chunk-XCZVD5H6.js +0 -13
  735. package/dist/shared/chunk-XCZVD5H6.js.map +0 -1
  736. package/dist/shared/chunk-XFZQGRRL.js +0 -101
  737. package/dist/shared/chunk-XFZQGRRL.js.map +0 -1
  738. package/dist/shared/chunk-XYWSIMZ6.js +0 -59
  739. package/dist/shared/chunk-XYWSIMZ6.js.map +0 -1
  740. package/dist/shared/chunk-XZ6WJZHN.js +0 -10
  741. package/dist/shared/chunk-XZ6WJZHN.js.map +0 -1
  742. package/dist/shared/chunk-ZEFOWKYP.js +0 -44
  743. package/dist/shared/chunk-ZEFOWKYP.js.map +0 -1
  744. package/dist/shared/chunk-ZGQ3AQBG.js +0 -33
  745. package/dist/shared/chunk-ZGQ3AQBG.js.map +0 -1
  746. package/dist/shared/chunk-ZRBTAC3G.js +0 -53
  747. package/dist/shared/chunk-ZRBTAC3G.js.map +0 -1
  748. package/dist/shared/chunk-ZYQZUWF7.js +0 -537
  749. package/dist/shared/chunk-ZYQZUWF7.js.map +0 -1
  750. package/dist/shared/chunk-ZZVYD4BG.js +0 -41
  751. package/dist/shared/chunk-ZZVYD4BG.js.map +0 -1
  752. package/dist/shared/datasources/external/facebook/posts/sample.d.ts +0 -26
  753. package/dist/shared/datasources/external/facebook/posts/sample.d.ts.map +0 -1
  754. package/dist/shared/datasources/external/facebook/posts/tests/fetcher.test.d.ts +0 -2
  755. package/dist/shared/datasources/external/facebook/posts/tests/fetcher.test.d.ts.map +0 -1
  756. package/dist/shared/datasources/external/http-json/tests/fetcher.test.d.ts +0 -2
  757. package/dist/shared/datasources/external/http-json/tests/fetcher.test.d.ts.map +0 -1
  758. package/dist/shared/datasources/external/instagram/feed/sample.d.ts +0 -3
  759. package/dist/shared/datasources/external/instagram/feed/sample.d.ts.map +0 -1
  760. package/dist/shared/datasources/external/instagram/feed/tests/fetcher.test.d.ts +0 -2
  761. package/dist/shared/datasources/external/instagram/feed/tests/fetcher.test.d.ts.map +0 -1
  762. package/dist/shared/datasources/external/mastodon/account/sample.d.ts +0 -30
  763. package/dist/shared/datasources/external/mastodon/account/sample.d.ts.map +0 -1
  764. package/dist/shared/datasources/external/mastodon/account/tests/fetcher.test.d.ts +0 -2
  765. package/dist/shared/datasources/external/mastodon/account/tests/fetcher.test.d.ts.map +0 -1
  766. package/dist/shared/datasources/external/mastodon/status/tests/fetcher.test.d.ts +0 -2
  767. package/dist/shared/datasources/external/mastodon/status/tests/fetcher.test.d.ts.map +0 -1
  768. package/dist/shared/datasources/external/rss/sample.d.ts +0 -3
  769. package/dist/shared/datasources/external/rss/sample.d.ts.map +0 -1
  770. package/dist/shared/datasources/external/threads/media/sample.d.ts +0 -40
  771. package/dist/shared/datasources/external/threads/media/sample.d.ts.map +0 -1
  772. package/dist/shared/datasources/external/tiktok/video/sample.d.ts +0 -15
  773. package/dist/shared/datasources/external/tiktok/video/sample.d.ts.map +0 -1
  774. package/dist/shared/datasources/external/youtube/list/sample.d.ts +0 -29
  775. package/dist/shared/datasources/external/youtube/list/sample.d.ts.map +0 -1
  776. package/dist/shared/datasources/fetcher.js.map +0 -1
  777. package/dist/shared/env.js.map +0 -1
  778. package/dist/shared/errors.d.ts.map +0 -1
  779. package/dist/shared/errors.js.map +0 -1
  780. package/dist/shared/tests/attributes.test.d.ts +0 -2
  781. package/dist/shared/tests/attributes.test.d.ts.map +0 -1
  782. package/dist/shared/themes/tests/color-system.test.d.ts +0 -2
  783. package/dist/shared/themes/tests/color-system.test.d.ts.map +0 -1
  784. package/dist/shared/utils/tests/schema.test.d.ts +0 -2
  785. package/dist/shared/utils/tests/schema.test.d.ts.map +0 -1
  786. package/src/shared/ajv.ts +0 -123
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"form.manifest.js","names":["examples: BrickExample<Manifest>[]"],"sources":["../../../../src/shared/bricks/manifests/form.manifest.ts"],"sourcesContent":["import { type Static, Type } from \"@sinclair/typebox\";\nimport { FaWpforms } from \"react-icons/fa6\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { StringEnum } from \"~/shared/utils/string-enum\";\nimport { border, rounding } from \"../props/border\";\nimport { datarecord } from \"../props/datarecord\";\nimport { defineProps, group } from \"../props/helpers\";\nimport { fontSize } from \"../props/text\";\nimport { colorPreset } from \"../props/color-preset\";\nimport { direction } from \"../props/direction\";\nimport { cssLength } from \"../props/css-length\";\nimport type { BrickExample } from \"./_types\";\n\nexport const manifest = defineBrickManifest({\n type: \"form\",\n name: \"Form\",\n description: \"A form element.\",\n aiInstructions: `PURPOSE\nDynamic form generator. Fields are inferred from the referenced datarecord schema (datarecordId). You NEVER list fields manually and the form does not accept children.\n\nREQUIRED\n• datarecordId must reference an existing datarecord definition.\n\nCOLOR & STYLE\n• Optional colorPreset sets background + text. If omitted the form inherits parent background.\n• Allowed tokens: primary-/secondary-/accent-/neutral-/base-*** (and gradient variants). Do NOT invent success, warning, danger, info, etc. Map them (success->secondary or primary; warning->accent; danger->accent/primary).\n• Use rounding + border + padding for emphasis. Keep padding modest (1–3rem) unless it's a feature form hero (max ~4rem).\n\nLAYOUT\n• direction controls stacking (flex-col vs flex-row). Wide multi-column layouts usually flex-row on desktop, stacked (flex-col) on mobile.\n• Use mobileProps to reduce padding or switch direction ONLY if necessary. (If switching direction, you must repeat required props.)\n\nBUTTON GROUP\n• Only supply button overrides you actually change (color, size, position, rounding). Unspecified values fallback to defaults.\n• If button.size = wide then hide position (handled by schema metadata automatically—don't circumvent).\n\nCONTENT STRINGS\n• title, intro, buttonLabel, successMessage, errorMessage should be concise.\n• Avoid marketing fluff inside intro beyond one short paragraph.\n\nDYNAMIC DATA\n• Do not interpolate inside datarecordId (it must be a static id).\n• You MAY interpolate page queries aliases in title/intro (e.g. \"Apply for {{job.title}}\") if those fields exist in surrounding dataset context.\n\nDON'TS\n✗ Don't invent props.\n✗ Don't add HTML tags except basic inline markup if absolutely needed (prefer plain text).\n✗ Don't set impossible color tokens.\n\nDO\n✓ Keep examples lean.\n✓ Use semantic color mapping guidelines.\n✓ Provide accessible, human-readable labels.\n`,\n isContainer: false,\n icon: FaWpforms,\n minWidth: {\n desktop: 300,\n },\n props: defineProps({\n datarecordId: datarecord(\"Datarecord ID\", {\n description: \"The ID of the datarecord to use to generate the form fields. The datarecord must exist.\",\n \"ui:responsive\": \"desktop\",\n }),\n colorPreset: Type.Optional(\n colorPreset({\n title: \"Color\",\n default: \"base-200\",\n }),\n ),\n direction: Type.Optional(\n direction({\n title: \"Direction\",\n description: \"The direction of the form fields\",\n default: \"flex-col\",\n \"ui:responsive\": \"desktop\",\n \"ui:desktop-only\": true,\n }),\n ),\n padding: Type.Optional(\n cssLength({\n default: \"2rem\",\n description: \"Padding inside the form.\",\n title: \"Padding\",\n \"ui:responsive\": true,\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n rounding: Type.Optional(\n rounding({\n default: \"rounded-md\",\n }),\n ),\n border: Type.Optional(border({})),\n fontSize: Type.Optional(fontSize({ default: \"inherit\", \"ui:no-extra-large-sizes\": true })),\n button: group({\n title: \"Button\",\n children: {\n color: Type.Optional(\n StringEnum([\"btn-neutral\", \"btn-primary\", \"btn-secondary\", \"btn-accent\"], {\n enumNames: [\"Neutral\", \"Primary\", \"Secondary\", \"Accent\"],\n title: \"Color\",\n default: \"btn-primary\",\n }),\n ),\n size: Type.Optional(\n StringEnum([\"block\", \"wide\"], {\n title: \"Size\",\n description: \"Button sizes.\",\n enumNames: [\"Block\", \"Wide\"],\n default: \"block\",\n \"ui:responsive\": \"desktop\",\n }),\n ),\n position: Type.Optional(\n StringEnum([\"justify-start\", \"justify-center\", \"justify-end\"], {\n title: \"Button Position\",\n description: \"The position of the button in the form\",\n enumNames: [\"Left\", \"Center\", \"Right\"],\n default: \"justify-end\",\n \"ui:responsive\": \"desktop\",\n metadata: {\n filter: (manifestProps: Manifest[\"props\"], formData: Static<Manifest[\"props\"]>) => {\n return formData.button?.size !== \"wide\";\n },\n },\n }),\n ),\n rounding: rounding({ default: \"rounded-md\" }),\n },\n }),\n\n title: Type.Optional(\n Type.String({\n title: \"Form title\",\n default: \"My form\",\n metadata: {\n category: \"content\",\n },\n }),\n ),\n intro: Type.Optional(\n Type.String({\n title: \"Intro\",\n description: \"The intro text of the form\",\n \"ui:multiline\": true,\n metadata: {\n category: \"content\",\n },\n }),\n ),\n buttonLabel: Type.Optional(\n Type.String({\n title: \"Button label\",\n default: \"Submit\",\n metadata: { category: \"content\" },\n }),\n ),\n successMessage: Type.Optional(\n Type.String({\n title: \"Success Message\",\n description: \"The message to display when the form is successfully submitted\",\n default: \"Thank you for your submission!\",\n metadata: {\n category: \"content\",\n },\n }),\n ),\n errorMessage: Type.Optional(\n Type.String({\n title: \"Error Message\",\n description: \"The message to display when the form submission fails\",\n default: \"There was an error submitting the form. Please try again later.\",\n metadata: {\n category: \"content\",\n },\n }),\n ),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: BrickExample<Manifest>[] = [\n {\n description: \"Basic contact form\",\n type: \"form\",\n props: {\n title: \"Contact Us\",\n intro: \"We'd love to hear from you. Send us a message and we'll respond as soon as possible.\",\n direction: \"flex-row\",\n datarecordId: \"contacts\",\n buttonLabel: \"Send Message\",\n button: {\n size: \"block\",\n },\n },\n },\n {\n description: \"User registration form with large button\",\n type: \"form\",\n props: {\n title: \"Create Account\",\n intro: \"Join our platform and start your journey today.\",\n direction: \"flex-row\",\n datarecordId: \"user-registration\",\n buttonLabel: \"Register\",\n button: {\n size: \"wide\",\n },\n },\n },\n {\n description: \"Responsive newsletter subscription: desktop horizontal -> mobile vertical\",\n type: \"form\",\n props: {\n title: \"Stay Updated\",\n intro: \"Subscribe for product news and occasional tips.\",\n direction: \"flex-row\",\n datarecordId: \"newsletter-subscription\",\n padding: \"3rem\",\n buttonLabel: \"Subscribe\",\n button: { size: \"block\" },\n colorPreset: { color: \"neutral-100\" },\n },\n mobileProps: {\n title: \"Stay Updated\",\n intro: \"Subscribe for product news and occasional tips.\",\n direction: \"flex-col\",\n datarecordId: \"newsletter-subscription\",\n padding: \"2rem\",\n buttonLabel: \"Subscribe\",\n button: { size: \"block\" },\n colorPreset: { color: \"neutral-100\" },\n },\n },\n {\n description: \"Newsletter subscription form (horizontal) with large padding\",\n type: \"form\",\n props: {\n title: \"Stay Updated\",\n intro: \"Subscribe to our newsletter for the latest updates and exclusive content.\",\n direction: \"flex-col\",\n datarecordId: \"newsletter-subscription\",\n padding: \"3rem\",\n buttonLabel: \"Subscribe\",\n button: {\n size: \"block\",\n },\n },\n },\n {\n description: \"Minimal inline signup form (no background colorPreset, inherits parent)\",\n type: \"form\",\n props: {\n title: \"Join Beta\",\n intro: \"Access early features before public launch.\",\n direction: \"flex-row\",\n datarecordId: \"beta-signup\",\n buttonLabel: \"Request Access\",\n button: { size: \"block\" },\n padding: \"1.5rem\",\n },\n },\n {\n description: \"Dark themed form using neutral-800 background and accent button\",\n type: \"form\",\n props: {\n title: \"Feedback\",\n intro: \"Tell us how we can improve the product.\",\n direction: \"flex-col\",\n datarecordId: \"product-feedback\",\n buttonLabel: \"Send Feedback\",\n colorPreset: { color: \"neutral-800\" },\n padding: \"2.5rem\",\n button: { color: \"btn-accent\" },\n rounding: \"rounded-lg\",\n border: { width: \"border\", color: \"border-neutral-700\" },\n },\n },\n {\n description: \"Gradient emphasis form (primary gradient) for event signup\",\n type: \"form\",\n props: {\n title: \"Conference RSVP\",\n intro: \"Reserve your seat for {{event.title}}.\",\n direction: \"flex-col\",\n datarecordId: \"event-registration\",\n buttonLabel: \"Reserve Seat\",\n colorPreset: { color: \"primary-gradient-400\", gradientDirection: \"bg-gradient-to-br\" },\n padding: \"3rem\",\n button: { color: \"btn-secondary\" },\n rounding: \"rounded-xl\",\n border: { width: \"border-2\", color: \"border-primary-300\" },\n },\n },\n {\n description: \"Event registration form\",\n type: \"form\",\n props: {\n title: \"Conference Registration\",\n intro: \"Register for the Annual Tech Conference 2025. Early bird pricing ends soon!\",\n direction: \"flex-col\",\n datarecordId: \"event-registration\",\n buttonLabel: \"Register Now\",\n button: {\n size: \"block\",\n },\n },\n },\n {\n description: \"Job application form\",\n type: \"form\",\n props: {\n title: \"Apply for Position\",\n intro: \"We're excited to learn more about you! Please fill out this application form completely.\",\n direction: \"flex-col\",\n datarecordId: \"job-application\",\n buttonLabel: \"Submit Application\",\n button: {\n size: \"block\",\n },\n },\n },\n {\n description: \"Dynamic job application (title interpolated) mapping dataset field\",\n type: \"form\",\n props: {\n title: \"Apply for {{job.title}}\",\n intro: \"Join our team in {{job.location}}.\",\n direction: \"flex-col\",\n datarecordId: \"job-application\",\n buttonLabel: \"Apply Now\",\n colorPreset: { color: \"secondary-100\" },\n button: { size: \"block\", color: \"btn-primary\" },\n padding: \"2rem\",\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,WAAW,oBAAoB;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChB,aAAa;CACb,MAAM;CACN,UAAU,EACR,SAAS,KACV;CACD,OAAO,YAAY;EACjB,cAAc,WAAW,iBAAiB;GACxC,aAAa;GACb,iBAAiB;GAClB,CAAC;EACF,aAAa,KAAK,SAChB,YAAY;GACV,OAAO;GACP,SAAS;GACV,CAAC,CACH;EACD,WAAW,KAAK,SACd,UAAU;GACR,OAAO;GACP,aAAa;GACb,SAAS;GACT,iBAAiB;GACjB,mBAAmB;GACpB,CAAC,CACH;EACD,SAAS,KAAK,SACZ,UAAU;GACR,SAAS;GACT,aAAa;GACb,OAAO;GACP,iBAAiB;GACjB,kBAAkB;GAClB,cAAc;GACf,CAAC,CACH;EACD,UAAU,KAAK,SACb,SAAS,EACP,SAAS,cACV,CAAC,CACH;EACD,QAAQ,KAAK,SAAS,OAAO,EAAE,CAAC,CAAC;EACjC,UAAU,KAAK,SAAS,SAAS;GAAE,SAAS;GAAW,2BAA2B;GAAM,CAAC,CAAC;EAC1F,QAAQ,MAAM;GACZ,OAAO;GACP,UAAU;IACR,OAAO,KAAK,SACV,WAAW;KAAC;KAAe;KAAe;KAAiB;KAAa,EAAE;KACxE,WAAW;MAAC;MAAW;MAAW;MAAa;MAAS;KACxD,OAAO;KACP,SAAS;KACV,CAAC,CACH;IACD,MAAM,KAAK,SACT,WAAW,CAAC,SAAS,OAAO,EAAE;KAC5B,OAAO;KACP,aAAa;KACb,WAAW,CAAC,SAAS,OAAO;KAC5B,SAAS;KACT,iBAAiB;KAClB,CAAC,CACH;IACD,UAAU,KAAK,SACb,WAAW;KAAC;KAAiB;KAAkB;KAAc,EAAE;KAC7D,OAAO;KACP,aAAa;KACb,WAAW;MAAC;MAAQ;MAAU;MAAQ;KACtC,SAAS;KACT,iBAAiB;KACjB,UAAU,EACR,SAAS,eAAkC,aAAwC;AACjF,aAAO,SAAS,QAAQ,SAAS;QAEpC;KACF,CAAC,CACH;IACD,UAAU,SAAS,EAAE,SAAS,cAAc,CAAC;IAC9C;GACF,CAAC;EAEF,OAAO,KAAK,SACV,KAAK,OAAO;GACV,OAAO;GACP,SAAS;GACT,UAAU,EACR,UAAU,WACX;GACF,CAAC,CACH;EACD,OAAO,KAAK,SACV,KAAK,OAAO;GACV,OAAO;GACP,aAAa;GACb,gBAAgB;GAChB,UAAU,EACR,UAAU,WACX;GACF,CAAC,CACH;EACD,aAAa,KAAK,SAChB,KAAK,OAAO;GACV,OAAO;GACP,SAAS;GACT,UAAU,EAAE,UAAU,WAAW;GAClC,CAAC,CACH;EACD,gBAAgB,KAAK,SACnB,KAAK,OAAO;GACV,OAAO;GACP,aAAa;GACb,SAAS;GACT,UAAU,EACR,UAAU,WACX;GACF,CAAC,CACH;EACD,cAAc,KAAK,SACjB,KAAK,OAAO;GACV,OAAO;GACP,aAAa;GACb,SAAS;GACT,UAAU,EACR,UAAU,WACX;GACF,CAAC,CACH;EACF,CAAC;CACH,CAAC;AAIF,MAAaA,WAAqC;CAChD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,QAAQ,EACN,MAAM,SACP;GACF;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,QAAQ,EACN,MAAM,QACP;GACF;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,SAAS;GACT,aAAa;GACb,QAAQ,EAAE,MAAM,SAAS;GACzB,aAAa,EAAE,OAAO,eAAe;GACtC;EACD,aAAa;GACX,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,SAAS;GACT,aAAa;GACb,QAAQ,EAAE,MAAM,SAAS;GACzB,aAAa,EAAE,OAAO,eAAe;GACtC;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,SAAS;GACT,aAAa;GACb,QAAQ,EACN,MAAM,SACP;GACF;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,QAAQ,EAAE,MAAM,SAAS;GACzB,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,aAAa,EAAE,OAAO,eAAe;GACrC,SAAS;GACT,QAAQ,EAAE,OAAO,cAAc;GAC/B,UAAU;GACV,QAAQ;IAAE,OAAO;IAAU,OAAO;IAAsB;GACzD;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,aAAa;IAAE,OAAO;IAAwB,mBAAmB;IAAqB;GACtF,SAAS;GACT,QAAQ,EAAE,OAAO,iBAAiB;GAClC,UAAU;GACV,QAAQ;IAAE,OAAO;IAAY,OAAO;IAAsB;GAC3D;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,QAAQ,EACN,MAAM,SACP;GACF;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,QAAQ,EACN,MAAM,SACP;GACF;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,OAAO;GACP,OAAO;GACP,WAAW;GACX,cAAc;GACd,aAAa;GACb,aAAa,EAAE,OAAO,iBAAiB;GACvC,QAAQ;IAAE,MAAM;IAAS,OAAO;IAAe;GAC/C,SAAS;GACV;EACF;CACF"}
@@ -1,75 +1,82 @@
1
- import type { BrickExample } from "./_types";
2
- export declare const manifest: {
3
- readonly icon: import("react-icons/lib").IconType;
4
- readonly props: import("@sinclair/typebox").TObject<{
5
- lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
6
- hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
7
- desktop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
- mobile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
- }>>;
10
- editable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11
- width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
12
- height: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
- grow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14
- alignSelf: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"self-auto" | "self-start" | "self-center" | "self-end" | "self-stretch">>;
15
- } & {
16
- content: import("@sinclair/typebox").TString;
17
- tagline: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
- backgroundColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
- textShadow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"text-shadow-none" | "text-shadow-sm" | "text-shadow-md" | "text-shadow-lg" | "text-shadow-xl">>;
21
- padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
- rounding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"rounded-auto" | "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xl" | "rounded-2xl" | "rounded-full">>;
23
- border: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
24
- width: import("@sinclair/typebox").TUnsafe<"border" | "border-0" | "border-2" | "border-4" | "border-8">;
25
- color: import("@sinclair/typebox").TString;
26
- }>>;
27
- shadow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl" | "shadow-2xl">>;
28
- justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
29
- alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end" | "items-stretch">>;
30
- }>;
31
- readonly category: import("~/shared/brick-manifest").BrickCategory;
32
- readonly defaultInspectorTab: "content" | "style" | "preset";
33
- readonly hideInLibrary: boolean;
34
- readonly deletable: boolean;
35
- readonly movable: boolean;
36
- readonly resizable: boolean | "horizontal" | "vertical";
37
- readonly duplicatable: boolean;
38
- readonly isContainer: boolean;
39
- readonly isGlobalBrick: boolean;
40
- readonly defaultWidth: {
41
- readonly mobile: string;
42
- readonly desktop: string;
43
- };
44
- readonly defaultHeight: {
45
- readonly mobile: string;
46
- readonly desktop: string;
47
- };
48
- readonly type: string;
49
- readonly name: string;
50
- readonly iconClassName?: string;
51
- readonly staticClasses?: string;
52
- readonly description?: string;
53
- readonly minWidth?: {
54
- mobile?: number;
55
- desktop?: number;
56
- };
57
- readonly maxWidth?: {
58
- mobile?: number;
59
- desktop?: number;
60
- };
61
- readonly minHeight?: {
62
- mobile?: number;
63
- desktop?: number;
64
- };
65
- readonly maxHeight?: {
66
- mobile?: number;
67
- desktop?: number;
68
- };
69
- readonly consumesMultipleQueryRows?: boolean;
70
- readonly inlineDragDisabled?: boolean;
71
- readonly aiInstructions?: string;
1
+ import { BrickCategory } from "../../brick-manifest.js";
2
+ import { BrickExample } from "./_types.js";
3
+ import * as _sinclair_typebox4898 from "@sinclair/typebox";
4
+ import * as react_icons_lib6 from "react-icons/lib";
5
+
6
+ //#region src/shared/bricks/manifests/hero.manifest.d.ts
7
+ declare const manifest: {
8
+ readonly icon: react_icons_lib6.IconType;
9
+ readonly props: _sinclair_typebox4898.TObject<{
10
+ lastTouched: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TNumber>;
11
+ hidden: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TObject<{
12
+ desktop: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TBoolean>;
13
+ mobile: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TBoolean>;
14
+ }>>;
15
+ editable: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TBoolean>;
16
+ width: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TString>;
17
+ height: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TString>;
18
+ grow: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TBoolean>;
19
+ alignSelf: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TUnsafe<"self-auto" | "self-start" | "self-center" | "self-end" | "self-stretch">>;
20
+ } & {
21
+ content: _sinclair_typebox4898.TString;
22
+ tagline: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TString>;
23
+ backgroundColor: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TString>;
24
+ color: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TString>;
25
+ textShadow: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TUnsafe<"text-shadow-sm" | "text-shadow-none" | "text-shadow-md" | "text-shadow-lg" | "text-shadow-xl">>;
26
+ padding: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TString>;
27
+ rounding: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TUnsafe<"rounded-md" | "rounded-auto" | "rounded-none" | "rounded-sm" | "rounded-lg" | "rounded-xl" | "rounded-2xl" | "rounded-full">>;
28
+ border: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TObject<{
29
+ width: _sinclair_typebox4898.TUnsafe<"border" | "border-0" | "border-2" | "border-4" | "border-8">;
30
+ color: _sinclair_typebox4898.TString;
31
+ }>>;
32
+ shadow: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TUnsafe<"shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl" | "shadow-2xl">>;
33
+ justifyContent: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TUnsafe<"justify-center" | "justify-start" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
34
+ alignItems: _sinclair_typebox4898.TOptional<_sinclair_typebox4898.TUnsafe<"items-center" | "items-start" | "items-end" | "items-stretch">>;
35
+ }>;
36
+ readonly category: BrickCategory;
37
+ readonly defaultInspectorTab: "preset" | "style" | "content";
38
+ readonly hideInLibrary: boolean;
39
+ readonly deletable: boolean;
40
+ readonly movable: boolean;
41
+ readonly resizable: boolean | "horizontal" | "vertical";
42
+ readonly duplicatable: boolean;
43
+ readonly isContainer: boolean;
44
+ readonly isGlobalBrick: boolean;
45
+ readonly defaultWidth: {
46
+ readonly mobile: string;
47
+ readonly desktop: string;
48
+ };
49
+ readonly defaultHeight: {
50
+ readonly mobile: string;
51
+ readonly desktop: string;
52
+ };
53
+ readonly type: string;
54
+ readonly name: string;
55
+ readonly iconClassName?: string;
56
+ readonly staticClasses?: string;
57
+ readonly description?: string;
58
+ readonly minWidth?: {
59
+ mobile?: number;
60
+ desktop?: number;
61
+ };
62
+ readonly maxWidth?: {
63
+ mobile?: number;
64
+ desktop?: number;
65
+ };
66
+ readonly minHeight?: {
67
+ mobile?: number;
68
+ desktop?: number;
69
+ };
70
+ readonly maxHeight?: {
71
+ mobile?: number;
72
+ desktop?: number;
73
+ };
74
+ readonly consumesMultipleQueryRows?: boolean;
75
+ readonly inlineDragDisabled?: boolean;
76
+ readonly aiInstructions?: string;
72
77
  };
73
- export type Manifest = typeof manifest;
74
- export declare const examples: BrickExample<Manifest>[];
78
+ type Manifest = typeof manifest;
79
+ declare const examples: BrickExample<Manifest>[];
80
+ //#endregion
81
+ export { Manifest, examples, manifest };
75
82
  //# sourceMappingURL=hero.manifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hero.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/hero.manifest.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAN2B,CAAC;eACxC,CAAC;;;cACiB,CAAA;eACzB,CAAC;;;cACY,CAAC;eAAqB,CAAC;;;cAIpC,CAAC;eACA,CAAC;;;;;CAyGF,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EAmH5C,CAAC"}
1
+ {"version":3,"file":"hero.manifest.d.ts","names":[],"sources":["../../../../src/shared/bricks/manifests/hero.manifest.ts"],"sourcesContent":[],"mappings":";;;;;;cAea;iBA4GX,gBAAA,CAAA;;;;MA5GW,OA4GX,iCAAA,gCAAA;MAAA,MAAA,iCAAA,gCAAA;IAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEU,MAAA,CAAQ,EAAA,MAAA;IAEP,OAmHZ,CAAA,EAAA,MAAA;EAAA,CAAA;WAnHmC,QAAA,CAAA,EAAA;IAAb,MAAA,CAAA,EAAA,MAAA;IAAY,OAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;KAFvB,QAAA,UAAkB;cAEjB,UAAU,aAAa"}
@@ -1,25 +1,203 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import {
4
- examples,
5
- manifest
6
- } from "../../chunk-HHUFGV7J.js";
7
- import "../../chunk-VYA2FCTY.js";
8
- import "../../chunk-EUFVTHAG.js";
9
- import "../../chunk-UC75KRLX.js";
10
- import "../../chunk-5OVOXUFX.js";
11
- import "../../chunk-5RCC2STG.js";
12
- import "../../chunk-2U5U3CCJ.js";
13
- import "../../chunk-2UEPTT5J.js";
14
- import "../../chunk-2EOCK66Z.js";
15
- import "../../chunk-OJ6KL7FU.js";
16
- import "../../chunk-ZRBTAC3G.js";
17
- import "../../chunk-GNTJT7MR.js";
18
- import "../../chunk-TZ6X7ZM5.js";
19
- import "../../chunk-GDYCCB3B.js";
20
- import "../../chunk-ZGQ3AQBG.js";
21
- export {
22
- examples,
23
- manifest
24
- };
1
+ import { defineBrickManifest } from "../../brick-manifest.js";
2
+ import { cssLength } from "../props/css-length.js";
3
+ import { alignItems, justifyContent } from "../props/align.js";
4
+ import { defineProps } from "../props/helpers.js";
5
+ import { textContent } from "../props/text.js";
6
+ import { shadow, textShadow } from "../props/effects.js";
7
+ import { backgroundColor } from "../props/background.js";
8
+ import { color } from "../props/color.js";
9
+ import { border, rounding } from "../props/border.js";
10
+ import { Type } from "@sinclair/typebox";
11
+ import { BsAlphabetUppercase } from "react-icons/bs";
12
+
13
+ //#region src/shared/bricks/manifests/hero.manifest.ts
14
+ const manifest = defineBrickManifest({
15
+ type: "hero",
16
+ category: "basic",
17
+ name: "Hero",
18
+ description: "A big textual element for home pages.",
19
+ aiInstructions: `PURPOSE
20
+ A prominent textual block (main heading + optional tagline) used to introduce a page, product, event, company, or dynamic entity.
21
+
22
+ STRUCTURE
23
+ 1. Always supply 'content' (can be plain text or simple HTML like <h1>, <strong>, <br/>).
24
+ 2. 'tagline' is optional. Prefer concise value (1 short sentence). Omit if not needed.
25
+ 3. Do NOT add buttons, images, forms, lists, or unrelated HTML here (use dedicated bricks for that).
26
+ 4. Hero should be placed in vertical sections, except for very specific cases.
27
+
28
+ COLOR & BACKGROUND
29
+ - Prefer omitting "colorPreset" so the hero inherits its parent section background.
30
+ - If you do set "colorPreset", ensure sufficient contrast between text and background.
31
+
32
+ LAYOUT & SPACING
33
+ • Use padding suited to visual weight: landing hero: 5-8rem desktop; simple page intro: 2-4rem.
34
+ • You may provide a mobile override via mobileProps (e.g. smaller padding such as 2rem).
35
+ • Keep justifyContent + alignItems consistent (usually center/center or start/start). Avoid mixing center with start.
36
+
37
+ TYPOGRAPHY
38
+ • 'content' should typically render ONE main heading concept (avoid stacking multiple unrelated headings). Use <br/> to split lines when stylistic.
39
+ • Avoid overly long taglines (>140 chars).
40
+
41
+ DYNAMIC DATA
42
+ • You may interpolate page queries fields fields: {{company.name}}, {{product.name}}, etc.
43
+ • Ensure dynamic tokens exist in the referenced query context. Don't fabricate field names.
44
+
45
+ RESPONSIVE
46
+ • Use "mobileProps" only for necessary reductions (padding, alignment). Do not duplicate unchanged properties.
47
+
48
+ DON'TS
49
+ ✗ Don't add properties that are not in the schema.
50
+ ✗ Don't wrap everything with extraneous HTML containers.
51
+ ✗ Don't use colorPreset plus a conflicting parent background rationale—choose one.
52
+
53
+ DO
54
+ ✓ Keep content focused.
55
+ ✓ Wrap tagline in <p> for alignment control.
56
+ `,
57
+ icon: BsAlphabetUppercase,
58
+ defaultWidth: {
59
+ desktop: "60dvw",
60
+ mobile: "auto"
61
+ },
62
+ staticClasses: "flex-col",
63
+ props: defineProps({
64
+ content: textContent({
65
+ title: "Hero title",
66
+ default: "<h1 style='text-align:center'>Lorem Ipsum<br />dolor sit amet</h1>"
67
+ }),
68
+ tagline: Type.Optional(textContent({ title: "Hero tagline" })),
69
+ backgroundColor: Type.Optional(backgroundColor({ title: "Background color" })),
70
+ color: Type.Optional(color({
71
+ title: "Text color",
72
+ default: "text-inherit"
73
+ })),
74
+ textShadow: Type.Optional(textShadow({ default: "text-shadow-sm" })),
75
+ padding: Type.Optional(cssLength({
76
+ default: "6rem",
77
+ description: "Padding inside the hero.",
78
+ "ai:instructions": "Use only a single value like '1rem' or '10px'",
79
+ title: "Padding",
80
+ "ui:responsive": true,
81
+ "ui:placeholder": "Not specified",
82
+ "ui:styleId": "styles:padding"
83
+ })),
84
+ rounding: rounding({ default: "rounded-md" }),
85
+ border: Type.Optional(border({ "ai:hidden": true })),
86
+ shadow: Type.Optional(shadow()),
87
+ justifyContent: Type.Optional(justifyContent({ default: "justify-center" })),
88
+ alignItems: Type.Optional(alignItems({ default: "items-center" }))
89
+ })
90
+ });
91
+ const examples = [
92
+ {
93
+ description: "Simple welcome hero with primary background, centered",
94
+ type: "hero",
95
+ props: {
96
+ content: "Welcome to Our Platform",
97
+ tagline: "<p style='text-align:center'>The future of productivity starts here</p>",
98
+ padding: "3rem"
99
+ }
100
+ },
101
+ {
102
+ description: "Startup hero with primary gradient background to bottom-right",
103
+ type: "hero",
104
+ props: {
105
+ content: "Build Something Amazing",
106
+ tagline: "<p style='text-align:center'>Turn your ideas into reality with our cutting-edge tools</p>",
107
+ padding: "3rem"
108
+ }
109
+ },
110
+ {
111
+ description: "Construction company hero with bold presence",
112
+ type: "hero",
113
+ props: {
114
+ content: "Building Tomorrow Today",
115
+ tagline: "<p style='text-align:center'>Quality construction services for residential and commercial projects</p>",
116
+ padding: "3rem"
117
+ }
118
+ },
119
+ {
120
+ description: "Fitness studio hero with accent strong presence",
121
+ type: "hero",
122
+ props: {
123
+ content: "Transform Your Body",
124
+ tagline: "<p style='text-align:center'>High-intensity training programs that deliver real results</p>",
125
+ padding: "5rem",
126
+ textShadow: "text-shadow-md",
127
+ rounding: "rounded-2xl",
128
+ justifyContent: "justify-center",
129
+ alignItems: "items-center"
130
+ }
131
+ },
132
+ {
133
+ description: "Responsive hero with large desktop padding and reduced mobile padding",
134
+ type: "hero",
135
+ props: {
136
+ content: "All-In-One Platform",
137
+ tagline: "<p style='text-align:center'>Design • <i>Launch</i> • Grow</p>",
138
+ padding: "8rem"
139
+ },
140
+ mobileProps: { padding: "3rem" }
141
+ },
142
+ {
143
+ description: "Hero using dynamic product dataset with light text shadow for contrast",
144
+ type: "hero",
145
+ props: {
146
+ content: "Introducing {{product.name}}",
147
+ tagline: "<p style='text-align:center'>{{product.shortTagline}}</p>",
148
+ padding: "5rem",
149
+ textShadow: "text-shadow-sm"
150
+ }
151
+ },
152
+ {
153
+ description: "Dynamic company hero using business query data; no tagline",
154
+ type: "hero",
155
+ props: {
156
+ content: "Welcome to {{company.name}}",
157
+ padding: "4rem"
158
+ }
159
+ },
160
+ {
161
+ description: "Dynamic employee spotlight using employee query",
162
+ type: "hero",
163
+ props: {
164
+ content: "Meet {{employee.fullName}}",
165
+ tagline: "<p style='text-align:center'>{{employee.position}} at {{employee.department}} - {{employee.yearsExperience}} years of experience</p>",
166
+ padding: "3rem"
167
+ }
168
+ },
169
+ {
170
+ description: "Dynamic product launch hero using product query",
171
+ type: "hero",
172
+ props: {
173
+ content: "Introducing {{product.name}}",
174
+ tagline: "<p style='text-align:center'>{{product.description}} - Starting at ${{product.price}}</p>",
175
+ padding: "5rem"
176
+ }
177
+ },
178
+ {
179
+ description: "Dynamic event announcement using 'allEvents' query, text shadow for contrast",
180
+ type: "hero",
181
+ props: {
182
+ content: "{{allEvents.title}}",
183
+ tagline: "<p style='text-align:center'>Join us on {{allEvents.date}} at {{allEvents.venue}} - {{allEvents.city}}</p>",
184
+ padding: "4rem",
185
+ textShadow: "text-shadow-md"
186
+ }
187
+ },
188
+ {
189
+ description: "Dynamic blog post hero using article query, alignment to left-center to be able to arrange a brick on its right",
190
+ type: "hero",
191
+ props: {
192
+ content: "{{article.title}}",
193
+ tagline: "<p style='text-align:center'>By {{article.author}} • Published {{article.publishDate}} • {{article.readTime}} min read</p>",
194
+ padding: "3rem",
195
+ justifyContent: "justify-start",
196
+ alignItems: "items-center"
197
+ }
198
+ }
199
+ ];
200
+
201
+ //#endregion
202
+ export { examples, manifest };
25
203
  //# sourceMappingURL=hero.manifest.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"hero.manifest.js","names":["examples: BrickExample<Manifest>[]"],"sources":["../../../../src/shared/bricks/manifests/hero.manifest.ts"],"sourcesContent":["import { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { textContent } from \"../props/text\";\nimport { BsAlphabetUppercase } from \"react-icons/bs\";\nimport type { BrickProps } from \"../props/types\";\nimport { Type } from \"@sinclair/typebox\";\nimport { shadow, textShadow } from \"../props/effects\";\nimport { border, rounding } from \"../props/border\";\nimport { colorPreset } from \"../props/color-preset\";\nimport { alignItems, justifyContent } from \"../props/align\";\nimport { cssLength } from \"../props/css-length\";\nimport type { BrickExample } from \"./_types\";\nimport { backgroundColor } from \"../props/background\";\nimport { color } from \"../props/color\";\n\nexport const manifest = defineBrickManifest({\n type: \"hero\",\n category: \"basic\",\n name: \"Hero\",\n description: \"A big textual element for home pages.\",\n aiInstructions: `PURPOSE\nA prominent textual block (main heading + optional tagline) used to introduce a page, product, event, company, or dynamic entity.\n\nSTRUCTURE\n1. Always supply 'content' (can be plain text or simple HTML like <h1>, <strong>, <br/>).\n2. 'tagline' is optional. Prefer concise value (1 short sentence). Omit if not needed.\n3. Do NOT add buttons, images, forms, lists, or unrelated HTML here (use dedicated bricks for that).\n4. Hero should be placed in vertical sections, except for very specific cases.\n\nCOLOR & BACKGROUND\n- Prefer omitting \"colorPreset\" so the hero inherits its parent section background.\n- If you do set \"colorPreset\", ensure sufficient contrast between text and background.\n\nLAYOUT & SPACING\n• Use padding suited to visual weight: landing hero: 5-8rem desktop; simple page intro: 2-4rem.\n• You may provide a mobile override via mobileProps (e.g. smaller padding such as 2rem).\n• Keep justifyContent + alignItems consistent (usually center/center or start/start). Avoid mixing center with start.\n\nTYPOGRAPHY\n• 'content' should typically render ONE main heading concept (avoid stacking multiple unrelated headings). Use <br/> to split lines when stylistic.\n• Avoid overly long taglines (>140 chars).\n\nDYNAMIC DATA\n• You may interpolate page queries fields fields: {{company.name}}, {{product.name}}, etc.\n• Ensure dynamic tokens exist in the referenced query context. Don't fabricate field names.\n\nRESPONSIVE\n• Use \"mobileProps\" only for necessary reductions (padding, alignment). Do not duplicate unchanged properties.\n\nDON'TS\n✗ Don't add properties that are not in the schema.\n✗ Don't wrap everything with extraneous HTML containers.\n✗ Don't use colorPreset plus a conflicting parent background rationale—choose one.\n\nDO\n✓ Keep content focused.\n✓ Wrap tagline in <p> for alignment control.\n`,\n icon: BsAlphabetUppercase,\n\n defaultWidth: { desktop: \"60dvw\", mobile: \"auto\" },\n\n // Force the wrapper direction to be the same as the text direction\n staticClasses: \"flex-col\",\n\n props: defineProps({\n content: textContent({\n title: \"Hero title\",\n default: \"<h1 style='text-align:center'>Lorem Ipsum<br />dolor sit amet</h1>\",\n }),\n tagline: Type.Optional(\n textContent({\n title: \"Hero tagline\",\n // default: \"<p style='text-align:center'>Use our platform to build your business with confidence.</p>\",\n }),\n ),\n backgroundColor: Type.Optional(\n backgroundColor({\n title: \"Background color\",\n }),\n ),\n color: Type.Optional(\n color({\n title: \"Text color\",\n default: \"text-inherit\",\n }),\n ),\n textShadow: Type.Optional(\n textShadow({\n default: \"text-shadow-sm\",\n }),\n ),\n padding: Type.Optional(\n cssLength({\n default: \"6rem\",\n description: \"Padding inside the hero.\",\n \"ai:instructions\": \"Use only a single value like '1rem' or '10px'\",\n title: \"Padding\",\n \"ui:responsive\": true,\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n rounding: rounding({\n default: \"rounded-md\",\n }),\n border: Type.Optional(\n border({\n \"ai:hidden\": true,\n }),\n ),\n shadow: Type.Optional(shadow()),\n justifyContent: Type.Optional(\n justifyContent({\n default: \"justify-center\",\n }),\n ),\n alignItems: Type.Optional(\n alignItems({\n default: \"items-center\",\n }),\n ),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: BrickExample<Manifest>[] = [\n {\n description: \"Simple welcome hero with primary background, centered\",\n type: \"hero\",\n props: {\n content: \"Welcome to Our Platform\",\n tagline: \"<p style='text-align:center'>The future of productivity starts here</p>\",\n padding: \"3rem\",\n },\n },\n {\n description: \"Startup hero with primary gradient background to bottom-right\",\n type: \"hero\",\n props: {\n content: \"Build Something Amazing\",\n tagline: \"<p style='text-align:center'>Turn your ideas into reality with our cutting-edge tools</p>\",\n padding: \"3rem\",\n },\n },\n {\n description: \"Construction company hero with bold presence\",\n type: \"hero\",\n props: {\n content: \"Building Tomorrow Today\",\n tagline:\n \"<p style='text-align:center'>Quality construction services for residential and commercial projects</p>\",\n padding: \"3rem\",\n },\n },\n {\n description: \"Fitness studio hero with accent strong presence\",\n type: \"hero\",\n props: {\n content: \"Transform Your Body\",\n tagline: \"<p style='text-align:center'>High-intensity training programs that deliver real results</p>\",\n padding: \"5rem\",\n textShadow: \"text-shadow-md\",\n rounding: \"rounded-2xl\",\n justifyContent: \"justify-center\",\n alignItems: \"items-center\",\n },\n },\n {\n description: \"Responsive hero with large desktop padding and reduced mobile padding\",\n type: \"hero\",\n props: {\n content: \"All-In-One Platform\",\n tagline: \"<p style='text-align:center'>Design • <i>Launch</i> • Grow</p>\",\n padding: \"8rem\",\n },\n mobileProps: {\n padding: \"3rem\",\n },\n },\n {\n description: \"Hero using dynamic product dataset with light text shadow for contrast\",\n type: \"hero\",\n props: {\n content: \"Introducing {{product.name}}\",\n tagline: \"<p style='text-align:center'>{{product.shortTagline}}</p>\",\n padding: \"5rem\",\n textShadow: \"text-shadow-sm\",\n },\n },\n {\n description: \"Dynamic company hero using business query data; no tagline\",\n type: \"hero\",\n props: {\n content: \"Welcome to {{company.name}}\",\n padding: \"4rem\",\n },\n },\n {\n description: \"Dynamic employee spotlight using employee query\",\n type: \"hero\",\n props: {\n content: \"Meet {{employee.fullName}}\",\n tagline:\n \"<p style='text-align:center'>{{employee.position}} at {{employee.department}} - {{employee.yearsExperience}} years of experience</p>\",\n padding: \"3rem\",\n },\n },\n {\n description: \"Dynamic product launch hero using product query\",\n type: \"hero\",\n props: {\n content: \"Introducing {{product.name}}\",\n tagline: \"<p style='text-align:center'>{{product.description}} - Starting at ${{product.price}}</p>\",\n padding: \"5rem\",\n },\n },\n {\n description: \"Dynamic event announcement using 'allEvents' query, text shadow for contrast\",\n type: \"hero\",\n props: {\n content: \"{{allEvents.title}}\",\n tagline:\n \"<p style='text-align:center'>Join us on {{allEvents.date}} at {{allEvents.venue}} - {{allEvents.city}}</p>\",\n padding: \"4rem\",\n textShadow: \"text-shadow-md\",\n },\n },\n {\n description:\n \"Dynamic blog post hero using article query, alignment to left-center to be able to arrange a brick on its right\",\n type: \"hero\",\n props: {\n content: \"{{article.title}}\",\n tagline:\n \"<p style='text-align:center'>By {{article.author}} • Published {{article.publishDate}} • {{article.readTime}} min read</p>\",\n padding: \"3rem\",\n justifyContent: \"justify-start\",\n alignItems: \"items-center\",\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;AAeA,MAAa,WAAW,oBAAoB;CAC1C,MAAM;CACN,UAAU;CACV,MAAM;CACN,aAAa;CACb,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsChB,MAAM;CAEN,cAAc;EAAE,SAAS;EAAS,QAAQ;EAAQ;CAGlD,eAAe;CAEf,OAAO,YAAY;EACjB,SAAS,YAAY;GACnB,OAAO;GACP,SAAS;GACV,CAAC;EACF,SAAS,KAAK,SACZ,YAAY,EACV,OAAO,gBAER,CAAC,CACH;EACD,iBAAiB,KAAK,SACpB,gBAAgB,EACd,OAAO,oBACR,CAAC,CACH;EACD,OAAO,KAAK,SACV,MAAM;GACJ,OAAO;GACP,SAAS;GACV,CAAC,CACH;EACD,YAAY,KAAK,SACf,WAAW,EACT,SAAS,kBACV,CAAC,CACH;EACD,SAAS,KAAK,SACZ,UAAU;GACR,SAAS;GACT,aAAa;GACb,mBAAmB;GACnB,OAAO;GACP,iBAAiB;GACjB,kBAAkB;GAClB,cAAc;GACf,CAAC,CACH;EACD,UAAU,SAAS,EACjB,SAAS,cACV,CAAC;EACF,QAAQ,KAAK,SACX,OAAO,EACL,aAAa,MACd,CAAC,CACH;EACD,QAAQ,KAAK,SAAS,QAAQ,CAAC;EAC/B,gBAAgB,KAAK,SACnB,eAAe,EACb,SAAS,kBACV,CAAC,CACH;EACD,YAAY,KAAK,SACf,WAAW,EACT,SAAS,gBACV,CAAC,CACH;EACF,CAAC;CACH,CAAC;AAIF,MAAaA,WAAqC;CAChD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACT,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACT,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SACE;GACF,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACT,SAAS;GACT,YAAY;GACZ,UAAU;GACV,gBAAgB;GAChB,YAAY;GACb;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACT,SAAS;GACV;EACD,aAAa,EACX,SAAS,QACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACT,SAAS;GACT,YAAY;GACb;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SACE;GACF,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SAAS;GACT,SAAS;GACV;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,SAAS;GACT,SACE;GACF,SAAS;GACT,YAAY;GACb;EACF;CACD;EACE,aACE;EACF,MAAM;EACN,OAAO;GACL,SAAS;GACT,SACE;GACF,SAAS;GACT,gBAAgB;GAChB,YAAY;GACb;EACF;CACF"}
@@ -1,63 +1,70 @@
1
- import type { BrickExample } from "./_types";
2
- export declare const manifest: {
3
- readonly icon: import("react-icons/lib").IconType;
4
- readonly props: import("@sinclair/typebox").TObject<{
5
- lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
6
- hidden: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
7
- desktop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
- mobile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
- }>>;
10
- editable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11
- width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
12
- height: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
- grow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14
- alignSelf: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"self-auto" | "self-start" | "self-center" | "self-end" | "self-stretch">>;
15
- } & {
16
- html: import("@sinclair/typebox").TString;
17
- grow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
18
- }>;
19
- readonly category: import("~/shared/brick-manifest").BrickCategory;
20
- readonly defaultInspectorTab: "content" | "style" | "preset";
21
- readonly hideInLibrary: boolean;
22
- readonly deletable: boolean;
23
- readonly movable: boolean;
24
- readonly resizable: boolean | "horizontal" | "vertical";
25
- readonly duplicatable: boolean;
26
- readonly isContainer: boolean;
27
- readonly isGlobalBrick: boolean;
28
- readonly defaultWidth: {
29
- readonly mobile: string;
30
- readonly desktop: string;
31
- };
32
- readonly defaultHeight: {
33
- readonly mobile: string;
34
- readonly desktop: string;
35
- };
36
- readonly type: string;
37
- readonly name: string;
38
- readonly iconClassName?: string;
39
- readonly staticClasses?: string;
40
- readonly description?: string;
41
- readonly minWidth?: {
42
- mobile?: number;
43
- desktop?: number;
44
- };
45
- readonly maxWidth?: {
46
- mobile?: number;
47
- desktop?: number;
48
- };
49
- readonly minHeight?: {
50
- mobile?: number;
51
- desktop?: number;
52
- };
53
- readonly maxHeight?: {
54
- mobile?: number;
55
- desktop?: number;
56
- };
57
- readonly consumesMultipleQueryRows?: boolean;
58
- readonly inlineDragDisabled?: boolean;
59
- readonly aiInstructions?: string;
1
+ import { BrickCategory } from "../../brick-manifest.js";
2
+ import { BrickExample } from "./_types.js";
3
+ import * as _sinclair_typebox5003 from "@sinclair/typebox";
4
+ import * as react_icons_lib8 from "react-icons/lib";
5
+
6
+ //#region src/shared/bricks/manifests/html.manifest.d.ts
7
+ declare const manifest: {
8
+ readonly icon: react_icons_lib8.IconType;
9
+ readonly props: _sinclair_typebox5003.TObject<{
10
+ lastTouched: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TNumber>;
11
+ hidden: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TObject<{
12
+ desktop: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TBoolean>;
13
+ mobile: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TBoolean>;
14
+ }>>;
15
+ editable: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TBoolean>;
16
+ width: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TString>;
17
+ height: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TString>;
18
+ grow: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TBoolean>;
19
+ alignSelf: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TUnsafe<"self-auto" | "self-start" | "self-center" | "self-end" | "self-stretch">>;
20
+ } & {
21
+ html: _sinclair_typebox5003.TString;
22
+ grow: _sinclair_typebox5003.TOptional<_sinclair_typebox5003.TBoolean>;
23
+ }>;
24
+ readonly category: BrickCategory;
25
+ readonly defaultInspectorTab: "preset" | "style" | "content";
26
+ readonly hideInLibrary: boolean;
27
+ readonly deletable: boolean;
28
+ readonly movable: boolean;
29
+ readonly resizable: boolean | "horizontal" | "vertical";
30
+ readonly duplicatable: boolean;
31
+ readonly isContainer: boolean;
32
+ readonly isGlobalBrick: boolean;
33
+ readonly defaultWidth: {
34
+ readonly mobile: string;
35
+ readonly desktop: string;
36
+ };
37
+ readonly defaultHeight: {
38
+ readonly mobile: string;
39
+ readonly desktop: string;
40
+ };
41
+ readonly type: string;
42
+ readonly name: string;
43
+ readonly iconClassName?: string;
44
+ readonly staticClasses?: string;
45
+ readonly description?: string;
46
+ readonly minWidth?: {
47
+ mobile?: number;
48
+ desktop?: number;
49
+ };
50
+ readonly maxWidth?: {
51
+ mobile?: number;
52
+ desktop?: number;
53
+ };
54
+ readonly minHeight?: {
55
+ mobile?: number;
56
+ desktop?: number;
57
+ };
58
+ readonly maxHeight?: {
59
+ mobile?: number;
60
+ desktop?: number;
61
+ };
62
+ readonly consumesMultipleQueryRows?: boolean;
63
+ readonly inlineDragDisabled?: boolean;
64
+ readonly aiInstructions?: string;
60
65
  };
61
- export type Manifest = typeof manifest;
62
- export declare const examples: BrickExample<Manifest>[];
66
+ type Manifest = typeof manifest;
67
+ declare const examples: BrickExample<Manifest>[];
68
+ //#endregion
69
+ export { Manifest, examples, manifest };
63
70
  //# sourceMappingURL=html.manifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/html.manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKqC,CAAC;eAAsB,CAAA;;;cAE5D,CAAC;eAAqB,CAAC;;;cAAmE,CAAC;eAAqB,CAAC;;;cAChH,CAAC;eACZ,CAAC;;;;;CAsBV,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EAqF5C,CAAC"}
1
+ {"version":3,"file":"html.manifest.d.ts","names":[],"sources":["../../../../src/shared/bricks/manifests/html.manifest.ts"],"sourcesContent":[],"mappings":";;;;;;cASa;iBA+BX,gBAAA,CAAA;;;;MA/BW,OA+BX,iCAAA,gCAAA;MAAA,MAAA,iCAAA,gCAAA;IAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;IAEU,SAAQ,OAAA,EAAA,MAAU;EAEjB,CAAA;EAqFZ,SAAA,IAAA,EAAA,MAAA;WArFmC,IAAA,EAAA,MAAA;WAAb,aAAA,CAAA,EAAA,MAAA;EAAY,SAAA,aAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;KAFvB,QAAA,UAAkB;cAEjB,UAAU,aAAa"}