@upstart.gg/sdk 0.0.137 → 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 (802) 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 -475
  20. package/dist/shared/attributes.d.ts.map +1 -1
  21. package/dist/shared/attributes.js +369 -44
  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 -23
  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 -60
  37. package/dist/shared/bricks/manifests/all-manifests.js.map +1 -1
  38. package/dist/shared/bricks/manifests/all-props.d.ts +1510 -1495
  39. package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -1
  40. package/dist/shared/bricks/manifests/all-props.js +167 -240
  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 -26
  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 -22
  49. package/dist/shared/bricks/manifests/button.manifest.js.map +1 -1
  50. package/dist/shared/bricks/manifests/card.manifest.d.ts +96 -87
  51. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  52. package/dist/shared/bricks/manifests/card.manifest.js +392 -27
  53. package/dist/shared/bricks/manifests/card.manifest.js.map +1 -1
  54. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +86 -78
  55. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  56. package/dist/shared/bricks/manifests/carousel.manifest.js +775 -25
  57. package/dist/shared/bricks/manifests/carousel.manifest.js.map +1 -1
  58. package/dist/shared/bricks/manifests/footer.manifest.d.ts +117 -108
  59. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  60. package/dist/shared/bricks/manifests/footer.manifest.js +864 -24
  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 -24
  65. package/dist/shared/bricks/manifests/form.manifest.js.map +1 -1
  66. package/dist/shared/bricks/manifests/hero.manifest.d.ts +80 -75
  67. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  68. package/dist/shared/bricks/manifests/hero.manifest.js +202 -23
  69. package/dist/shared/bricks/manifests/hero.manifest.js.map +1 -1
  70. package/dist/shared/bricks/manifests/html.manifest.d.ts +68 -60
  71. package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
  72. package/dist/shared/bricks/manifests/html.manifest.js +95 -17
  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 -23
  77. package/dist/shared/bricks/manifests/icon.manifest.js.map +1 -1
  78. package/dist/shared/bricks/manifests/image.manifest.d.ts +97 -89
  79. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  80. package/dist/shared/bricks/manifests/image.manifest.js +456 -26
  81. package/dist/shared/bricks/manifests/image.manifest.js.map +1 -1
  82. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +93 -84
  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 -24
  85. package/dist/shared/bricks/manifests/images-gallery.manifest.js.map +1 -1
  86. package/dist/shared/bricks/manifests/map.manifest.d.ts +78 -70
  87. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  88. package/dist/shared/bricks/manifests/map.manifest.js +138 -22
  89. package/dist/shared/bricks/manifests/map.manifest.js.map +1 -1
  90. package/dist/shared/bricks/manifests/navbar.manifest.d.ts +117 -108
  91. package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
  92. package/dist/shared/bricks/manifests/navbar.manifest.js +370 -27
  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 -23
  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 -23
  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 -17
  105. package/dist/shared/bricks/manifests/spacer.manifest.js.map +1 -1
  106. package/dist/shared/bricks/manifests/table.manifest.d.ts +93 -85
  107. package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
  108. package/dist/shared/bricks/manifests/table.manifest.js +771 -24
  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 -24
  113. package/dist/shared/bricks/manifests/tabs.manifest.js.map +1 -1
  114. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +97 -88
  115. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
  116. package/dist/shared/bricks/manifests/testimonials.manifest.js +223 -27
  117. package/dist/shared/bricks/manifests/testimonials.manifest.js.map +1 -1
  118. package/dist/shared/bricks/manifests/text.manifest.d.ts +76 -72
  119. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  120. package/dist/shared/bricks/manifests/text.manifest.js +199 -22
  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 -24
  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 -20
  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 -12
  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 +8 -0
  195. package/dist/shared/bricks/props/grow.d.ts.map +1 -0
  196. package/dist/shared/bricks/props/grow.js +16 -0
  197. package/dist/shared/bricks/props/grow.js.map +1 -0
  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 -18
  201. package/dist/shared/bricks/props/helpers.js.map +1 -1
  202. package/dist/shared/bricks/props/image.d.ts +15 -11
  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 -178
  230. package/dist/shared/bricks.d.ts.map +1 -1
  231. package/dist/shared/bricks.js +271 -77
  232. package/dist/shared/bricks.js.map +1 -1
  233. package/dist/shared/context.d.ts +405 -394
  234. package/dist/shared/context.d.ts.map +1 -1
  235. package/dist/shared/context.js +22 -92
  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 -241
  498. package/dist/shared/page.d.ts.map +1 -1
  499. package/dist/shared/page.js +29 -61
  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 -615
  510. package/dist/shared/site.d.ts.map +1 -1
  511. package/dist/shared/site.js +56 -69
  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 -62
  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 -15
  554. package/dist/shared/utils/schema.d.ts.map +1 -1
  555. package/dist/shared/utils/schema.js +91 -16
  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 +6 -4
  567. package/src/shared/ai/types.ts +2 -2
  568. package/src/shared/attributes.ts +10 -6
  569. package/src/shared/bricks/manifests/card.manifest.ts +27 -173
  570. package/src/shared/bricks/manifests/hero.manifest.ts +44 -249
  571. package/src/shared/bricks/manifests/html.manifest.ts +6 -0
  572. package/src/shared/bricks/manifests/icon.manifest.ts +1 -89
  573. package/src/shared/bricks/manifests/image.manifest.ts +1 -9
  574. package/src/shared/bricks/manifests/images-gallery.manifest.ts +8 -0
  575. package/src/shared/bricks/manifests/map.manifest.ts +9 -65
  576. package/src/shared/bricks/manifests/sidebar.manifest.ts +0 -1
  577. package/src/shared/bricks/manifests/social-links.manifest.ts +0 -1
  578. package/src/shared/bricks/manifests/spacer.manifest.ts +0 -1
  579. package/src/shared/bricks/manifests/table.manifest.ts +6 -0
  580. package/src/shared/bricks/manifests/tabs.manifest.ts +12 -429
  581. package/src/shared/bricks/manifests/testimonials.manifest.ts +28 -226
  582. package/src/shared/bricks/manifests/text.manifest.ts +16 -44
  583. package/src/shared/bricks/props/background.ts +2 -1
  584. package/src/shared/bricks/props/color.ts +6 -2
  585. package/src/shared/bricks/props/common.ts +2 -8
  586. package/src/shared/bricks/props/dynamic.ts +4 -1
  587. package/src/shared/bricks/props/grow.ts +11 -0
  588. package/src/shared/bricks/props/image.ts +41 -2
  589. package/src/shared/bricks/props/string.ts +2 -0
  590. package/src/shared/bricks.ts +35 -24
  591. package/src/shared/datarecords/types.ts +41 -33
  592. package/src/shared/datasources/external/rss/fetcher.ts +0 -6
  593. package/src/shared/datasources.ts +13 -5
  594. package/src/shared/page.ts +1 -0
  595. package/src/shared/prompt.ts +1 -1
  596. package/src/shared/site.ts +3 -1
  597. package/src/shared/sitemap.ts +7 -0
  598. package/src/shared/utils/schema.ts +31 -52
  599. package/src/shared/utils/tests/schema.test.ts +239 -7
  600. package/dist/shared/ai/types.js.map +0 -1
  601. package/dist/shared/ajv.d.ts +0 -7
  602. package/dist/shared/ajv.d.ts.map +0 -1
  603. package/dist/shared/ajv.js +0 -6865
  604. package/dist/shared/ajv.js.map +0 -1
  605. package/dist/shared/analytics/types.js.map +0 -1
  606. package/dist/shared/bricks/manifests/_types.js.map +0 -1
  607. package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts +0 -2
  608. package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts.map +0 -1
  609. package/dist/shared/bricks/props/tests/background.test.d.ts +0 -2
  610. package/dist/shared/bricks/props/tests/background.test.d.ts.map +0 -1
  611. package/dist/shared/bricks/props/tests/border.test.d.ts +0 -2
  612. package/dist/shared/bricks/props/tests/border.test.d.ts.map +0 -1
  613. package/dist/shared/bricks/props/tests/effects.test.d.ts +0 -2
  614. package/dist/shared/bricks/props/tests/effects.test.d.ts.map +0 -1
  615. package/dist/shared/bricks/props/tests/helpers.test.d.ts +0 -2
  616. package/dist/shared/bricks/props/tests/helpers.test.d.ts.map +0 -1
  617. package/dist/shared/bricks/props/tests/image.test.d.ts +0 -2
  618. package/dist/shared/bricks/props/tests/image.test.d.ts.map +0 -1
  619. package/dist/shared/bricks/props/tests/string.test.d.ts +0 -2
  620. package/dist/shared/bricks/props/tests/string.test.d.ts.map +0 -1
  621. package/dist/shared/bricks/props/types.js.map +0 -1
  622. package/dist/shared/chunk-2BPYOTKA.js +0 -21
  623. package/dist/shared/chunk-2BPYOTKA.js.map +0 -1
  624. package/dist/shared/chunk-2O5HVPID.js +0 -41
  625. package/dist/shared/chunk-2O5HVPID.js.map +0 -1
  626. package/dist/shared/chunk-2U5U3CCJ.js +0 -90
  627. package/dist/shared/chunk-2U5U3CCJ.js.map +0 -1
  628. package/dist/shared/chunk-3ZDN5BWN.js +0 -18
  629. package/dist/shared/chunk-3ZDN5BWN.js.map +0 -1
  630. package/dist/shared/chunk-4KY7OZWD.js +0 -368
  631. package/dist/shared/chunk-4KY7OZWD.js.map +0 -1
  632. package/dist/shared/chunk-55C6MTX2.js +0 -21
  633. package/dist/shared/chunk-55C6MTX2.js.map +0 -1
  634. package/dist/shared/chunk-5RCC2STG.js +0 -58
  635. package/dist/shared/chunk-5RCC2STG.js.map +0 -1
  636. package/dist/shared/chunk-6AE7UD73.js +0 -272
  637. package/dist/shared/chunk-6AE7UD73.js.map +0 -1
  638. package/dist/shared/chunk-6TVVKUWM.js +0 -15
  639. package/dist/shared/chunk-6TVVKUWM.js.map +0 -1
  640. package/dist/shared/chunk-6WIMWLCJ.js +0 -17
  641. package/dist/shared/chunk-6WIMWLCJ.js.map +0 -1
  642. package/dist/shared/chunk-7LAWWRU7.js +0 -21
  643. package/dist/shared/chunk-7LAWWRU7.js.map +0 -1
  644. package/dist/shared/chunk-7U5WPHXB.js +0 -346
  645. package/dist/shared/chunk-7U5WPHXB.js.map +0 -1
  646. package/dist/shared/chunk-BHARJBEK.js +0 -27
  647. package/dist/shared/chunk-BHARJBEK.js.map +0 -1
  648. package/dist/shared/chunk-BZTWZC77.js +0 -530
  649. package/dist/shared/chunk-BZTWZC77.js.map +0 -1
  650. package/dist/shared/chunk-DCM4732T.js +0 -146
  651. package/dist/shared/chunk-DCM4732T.js.map +0 -1
  652. package/dist/shared/chunk-DRQKKPTX.js +0 -86
  653. package/dist/shared/chunk-DRQKKPTX.js.map +0 -1
  654. package/dist/shared/chunk-EID5HPF3.js +0 -63
  655. package/dist/shared/chunk-EID5HPF3.js.map +0 -1
  656. package/dist/shared/chunk-EMF5TCPX.js +0 -389
  657. package/dist/shared/chunk-EMF5TCPX.js.map +0 -1
  658. package/dist/shared/chunk-FD7YYFRI.js +0 -225
  659. package/dist/shared/chunk-FD7YYFRI.js.map +0 -1
  660. package/dist/shared/chunk-FHA4DFIM.js +0 -537
  661. package/dist/shared/chunk-FHA4DFIM.js.map +0 -1
  662. package/dist/shared/chunk-FUUSAMN3.js +0 -847
  663. package/dist/shared/chunk-FUUSAMN3.js.map +0 -1
  664. package/dist/shared/chunk-GDYCCB3B.js +0 -22
  665. package/dist/shared/chunk-GDYCCB3B.js.map +0 -1
  666. package/dist/shared/chunk-GLV6QIIM.js +0 -41
  667. package/dist/shared/chunk-GLV6QIIM.js.map +0 -1
  668. package/dist/shared/chunk-H6TMBELF.js +0 -374
  669. package/dist/shared/chunk-H6TMBELF.js.map +0 -1
  670. package/dist/shared/chunk-HPCCD6V5.js +0 -17
  671. package/dist/shared/chunk-HPCCD6V5.js.map +0 -1
  672. package/dist/shared/chunk-HUWMIXNN.js +0 -570
  673. package/dist/shared/chunk-HUWMIXNN.js.map +0 -1
  674. package/dist/shared/chunk-HY7JOP3J.js +0 -150
  675. package/dist/shared/chunk-HY7JOP3J.js.map +0 -1
  676. package/dist/shared/chunk-IEMCCHM4.js +0 -389
  677. package/dist/shared/chunk-IEMCCHM4.js.map +0 -1
  678. package/dist/shared/chunk-J45LSQT6.js +0 -56
  679. package/dist/shared/chunk-J45LSQT6.js.map +0 -1
  680. package/dist/shared/chunk-JF52BBFD.js +0 -461
  681. package/dist/shared/chunk-JF52BBFD.js.map +0 -1
  682. package/dist/shared/chunk-JLDAS3VE.js +0 -498
  683. package/dist/shared/chunk-JLDAS3VE.js.map +0 -1
  684. package/dist/shared/chunk-JSDKK5QN.js +0 -31
  685. package/dist/shared/chunk-JSDKK5QN.js.map +0 -1
  686. package/dist/shared/chunk-JW7MQAU4.js +0 -354
  687. package/dist/shared/chunk-JW7MQAU4.js.map +0 -1
  688. package/dist/shared/chunk-KKWT3OXF.js +0 -60
  689. package/dist/shared/chunk-KKWT3OXF.js.map +0 -1
  690. package/dist/shared/chunk-KNREHAPN.js +0 -13
  691. package/dist/shared/chunk-KNREHAPN.js.map +0 -1
  692. package/dist/shared/chunk-KQH6V22E.js +0 -213
  693. package/dist/shared/chunk-KQH6V22E.js.map +0 -1
  694. package/dist/shared/chunk-KT7SSWMM.js +0 -24
  695. package/dist/shared/chunk-KT7SSWMM.js.map +0 -1
  696. package/dist/shared/chunk-LGDDJJHK.js +0 -616
  697. package/dist/shared/chunk-LGDDJJHK.js.map +0 -1
  698. package/dist/shared/chunk-LGGPCCCY.js +0 -59
  699. package/dist/shared/chunk-LGGPCCCY.js.map +0 -1
  700. package/dist/shared/chunk-LPAQ47C6.js +0 -422
  701. package/dist/shared/chunk-LPAQ47C6.js.map +0 -1
  702. package/dist/shared/chunk-MO6CRLQA.js +0 -73
  703. package/dist/shared/chunk-MO6CRLQA.js.map +0 -1
  704. package/dist/shared/chunk-MYOLWTB2.js +0 -516
  705. package/dist/shared/chunk-MYOLWTB2.js.map +0 -1
  706. package/dist/shared/chunk-O24RDXZS.js +0 -505
  707. package/dist/shared/chunk-O24RDXZS.js.map +0 -1
  708. package/dist/shared/chunk-O5PQISX4.js +0 -51
  709. package/dist/shared/chunk-O5PQISX4.js.map +0 -1
  710. package/dist/shared/chunk-OJ6KL7FU.js +0 -32
  711. package/dist/shared/chunk-OJ6KL7FU.js.map +0 -1
  712. package/dist/shared/chunk-OJP4HMJT.js +0 -22
  713. package/dist/shared/chunk-OJP4HMJT.js.map +0 -1
  714. package/dist/shared/chunk-OSJ6KGPX.js +0 -16
  715. package/dist/shared/chunk-OSJ6KGPX.js.map +0 -1
  716. package/dist/shared/chunk-OXYXZHP2.js +0 -48
  717. package/dist/shared/chunk-OXYXZHP2.js.map +0 -1
  718. package/dist/shared/chunk-PF75LW33.js +0 -834
  719. package/dist/shared/chunk-PF75LW33.js.map +0 -1
  720. package/dist/shared/chunk-QEJGPYTB.js +0 -462
  721. package/dist/shared/chunk-QEJGPYTB.js.map +0 -1
  722. package/dist/shared/chunk-QLQVDZIL.js +0 -11
  723. package/dist/shared/chunk-QLQVDZIL.js.map +0 -1
  724. package/dist/shared/chunk-SK2O7GFC.js +0 -229
  725. package/dist/shared/chunk-SK2O7GFC.js.map +0 -1
  726. package/dist/shared/chunk-SQXZNGQF.js +0 -55
  727. package/dist/shared/chunk-SQXZNGQF.js.map +0 -1
  728. package/dist/shared/chunk-SRYBJ6NQ.js +0 -83
  729. package/dist/shared/chunk-SRYBJ6NQ.js.map +0 -1
  730. package/dist/shared/chunk-T6C3NG2L.js +0 -422
  731. package/dist/shared/chunk-T6C3NG2L.js.map +0 -1
  732. package/dist/shared/chunk-TBT2PTGB.js +0 -440
  733. package/dist/shared/chunk-TBT2PTGB.js.map +0 -1
  734. package/dist/shared/chunk-TKMWY2VN.js +0 -18
  735. package/dist/shared/chunk-TKMWY2VN.js.map +0 -1
  736. package/dist/shared/chunk-U4KZUX37.js +0 -104
  737. package/dist/shared/chunk-U4KZUX37.js.map +0 -1
  738. package/dist/shared/chunk-VSLRTXLF.js +0 -37
  739. package/dist/shared/chunk-VSLRTXLF.js.map +0 -1
  740. package/dist/shared/chunk-VTCHJT4O.js +0 -67
  741. package/dist/shared/chunk-VTCHJT4O.js.map +0 -1
  742. package/dist/shared/chunk-W2RFDII5.js +0 -129
  743. package/dist/shared/chunk-W2RFDII5.js.map +0 -1
  744. package/dist/shared/chunk-WPZV3LYL.js +0 -24
  745. package/dist/shared/chunk-WPZV3LYL.js.map +0 -1
  746. package/dist/shared/chunk-XCWMZVF5.js +0 -89
  747. package/dist/shared/chunk-XCWMZVF5.js.map +0 -1
  748. package/dist/shared/chunk-XCZVD5H6.js +0 -13
  749. package/dist/shared/chunk-XCZVD5H6.js.map +0 -1
  750. package/dist/shared/chunk-XFZQGRRL.js +0 -101
  751. package/dist/shared/chunk-XFZQGRRL.js.map +0 -1
  752. package/dist/shared/chunk-XK2CERPB.js +0 -364
  753. package/dist/shared/chunk-XK2CERPB.js.map +0 -1
  754. package/dist/shared/chunk-XNRSL6FL.js +0 -78
  755. package/dist/shared/chunk-XNRSL6FL.js.map +0 -1
  756. package/dist/shared/chunk-XXPSM6UA.js +0 -71
  757. package/dist/shared/chunk-XXPSM6UA.js.map +0 -1
  758. package/dist/shared/chunk-XZ6WJZHN.js +0 -10
  759. package/dist/shared/chunk-XZ6WJZHN.js.map +0 -1
  760. package/dist/shared/chunk-ZEFOWKYP.js +0 -44
  761. package/dist/shared/chunk-ZEFOWKYP.js.map +0 -1
  762. package/dist/shared/chunk-ZGQ3AQBG.js +0 -33
  763. package/dist/shared/chunk-ZGQ3AQBG.js.map +0 -1
  764. package/dist/shared/chunk-ZRBTAC3G.js +0 -53
  765. package/dist/shared/chunk-ZRBTAC3G.js.map +0 -1
  766. package/dist/shared/chunk-ZVJNRKT4.js +0 -129
  767. package/dist/shared/chunk-ZVJNRKT4.js.map +0 -1
  768. package/dist/shared/datasources/external/facebook/posts/sample.d.ts +0 -26
  769. package/dist/shared/datasources/external/facebook/posts/sample.d.ts.map +0 -1
  770. package/dist/shared/datasources/external/facebook/posts/tests/fetcher.test.d.ts +0 -2
  771. package/dist/shared/datasources/external/facebook/posts/tests/fetcher.test.d.ts.map +0 -1
  772. package/dist/shared/datasources/external/http-json/tests/fetcher.test.d.ts +0 -2
  773. package/dist/shared/datasources/external/http-json/tests/fetcher.test.d.ts.map +0 -1
  774. package/dist/shared/datasources/external/instagram/feed/sample.d.ts +0 -3
  775. package/dist/shared/datasources/external/instagram/feed/sample.d.ts.map +0 -1
  776. package/dist/shared/datasources/external/instagram/feed/tests/fetcher.test.d.ts +0 -2
  777. package/dist/shared/datasources/external/instagram/feed/tests/fetcher.test.d.ts.map +0 -1
  778. package/dist/shared/datasources/external/mastodon/account/sample.d.ts +0 -30
  779. package/dist/shared/datasources/external/mastodon/account/sample.d.ts.map +0 -1
  780. package/dist/shared/datasources/external/mastodon/account/tests/fetcher.test.d.ts +0 -2
  781. package/dist/shared/datasources/external/mastodon/account/tests/fetcher.test.d.ts.map +0 -1
  782. package/dist/shared/datasources/external/mastodon/status/tests/fetcher.test.d.ts +0 -2
  783. package/dist/shared/datasources/external/mastodon/status/tests/fetcher.test.d.ts.map +0 -1
  784. package/dist/shared/datasources/external/rss/sample.d.ts +0 -3
  785. package/dist/shared/datasources/external/rss/sample.d.ts.map +0 -1
  786. package/dist/shared/datasources/external/threads/media/sample.d.ts +0 -40
  787. package/dist/shared/datasources/external/threads/media/sample.d.ts.map +0 -1
  788. package/dist/shared/datasources/external/tiktok/video/sample.d.ts +0 -15
  789. package/dist/shared/datasources/external/tiktok/video/sample.d.ts.map +0 -1
  790. package/dist/shared/datasources/external/youtube/list/sample.d.ts +0 -29
  791. package/dist/shared/datasources/external/youtube/list/sample.d.ts.map +0 -1
  792. package/dist/shared/datasources/fetcher.js.map +0 -1
  793. package/dist/shared/env.js.map +0 -1
  794. package/dist/shared/errors.d.ts.map +0 -1
  795. package/dist/shared/errors.js.map +0 -1
  796. package/dist/shared/tests/attributes.test.d.ts +0 -2
  797. package/dist/shared/tests/attributes.test.d.ts.map +0 -1
  798. package/dist/shared/themes/tests/color-system.test.d.ts +0 -2
  799. package/dist/shared/themes/tests/color-system.test.d.ts.map +0 -1
  800. package/dist/shared/utils/tests/schema.test.d.ts +0 -2
  801. package/dist/shared/utils/tests/schema.test.d.ts.map +0 -1
  802. package/src/shared/ajv.ts +0 -123
@@ -1,19 +1,97 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
1
+ import { defineBrickManifest } from "../../brick-manifest.js";
2
+ import { grow } from "../props/grow.js";
3
+ import { defineProps } from "../props/helpers.js";
4
+ import { Type } from "@sinclair/typebox";
5
+ import { BsCodeSquare } from "react-icons/bs";
2
6
 
3
- import {
4
- examples,
5
- manifest
6
- } from "../../chunk-W2RFDII5.js";
7
- import "../../chunk-VTCHJT4O.js";
8
- import "../../chunk-XXPSM6UA.js";
9
- import "../../chunk-OJ6KL7FU.js";
10
- import "../../chunk-ZRBTAC3G.js";
11
- import "../../chunk-J45LSQT6.js";
12
- import "../../chunk-HY7JOP3J.js";
13
- import "../../chunk-GDYCCB3B.js";
14
- import "../../chunk-ZGQ3AQBG.js";
15
- export {
16
- examples,
17
- manifest
18
- };
7
+ //#region src/shared/bricks/manifests/html.manifest.ts
8
+ const manifest = defineBrickManifest({
9
+ type: "html",
10
+ name: "Html",
11
+ category: "widgets",
12
+ description: "A flexible brick that accepts HTML content. Useful for embeding custom HTML or third-party widgets.",
13
+ aiInstructions: "Use only this brick type when integrating third party widgets or custom HTML content. Most of the time, you should use other bricks that are more secure and easier to use.",
14
+ staticClasses: "self-stretch",
15
+ defaultWidth: {
16
+ mobile: "auto",
17
+ desktop: "300px"
18
+ },
19
+ icon: BsCodeSquare,
20
+ props: defineProps({
21
+ html: Type.String({
22
+ title: "HTML Content",
23
+ description: "The HTML content to render. Use with caution, as it can introduce security risks.",
24
+ default: "<div>Your HTML content here</div>",
25
+ "ui:placeholder": "<div>Your HTML content here</div>",
26
+ "ui:multiline": true,
27
+ metadata: { category: "content" }
28
+ }),
29
+ grow: Type.Optional(grow({ default: true }))
30
+ })
31
+ });
32
+ const examples = [
33
+ {
34
+ description: "A tally form",
35
+ type: "html",
36
+ props: { html: "<iframe data-tally-src=\"https://tally.so/embed/wQZpd8?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1\" loading=\"lazy\" width=\"100%\" height=\"282\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" title=\"test\"></iframe>" }
37
+ },
38
+ {
39
+ description: "YouTube video embed",
40
+ type: "html",
41
+ props: { html: "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/dQw4w9WgXcQ\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen></iframe>" }
42
+ },
43
+ {
44
+ description: "Google Maps embed",
45
+ type: "html",
46
+ props: { html: "<iframe src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3024.309059887159!2d-74.00849368459473!3d40.71278097932847!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c25a165bedccab%3A0xa2008c34c27bfb67!2sWall%20St%2C%20New%20York%2C%20NY%2C%20USA!5e0!3m2!1sen!2sus!4v1620000000000\" width=\"100%\" height=\"300\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>" }
47
+ },
48
+ {
49
+ description: "Twitter tweet embed",
50
+ type: "html",
51
+ props: { html: "<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">Just setting up my twttr</p>&mdash; Jack Dorsey (@jack) <a href=\"https://twitter.com/jack/status/20?ref_src=twsrc%5Etfw\">March 21, 2006</a></blockquote> <script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"><\/script>" }
52
+ },
53
+ {
54
+ description: "CodePen embed for code showcase",
55
+ type: "html",
56
+ props: { html: "<iframe height=\"300\" style=\"width: 100%;\" scrolling=\"no\" title=\"CSS Animation Example\" src=\"https://codepen.io/team/codepen/embed/PNaGbb?height=300&theme-id=light&default-tab=result\" frameborder=\"no\" loading=\"lazy\" allowtransparency=\"true\" allowfullscreen=\"true\"></iframe>" }
57
+ },
58
+ {
59
+ description: "Calendly scheduling widget",
60
+ type: "html",
61
+ props: { html: "<div class=\"calendly-inline-widget\" data-url=\"https://calendly.com/your-name/30min\" style=\"min-width:320px;height:630px;\"></div><script type=\"text/javascript\" src=\"https://assets.calendly.com/assets/external/widget.js\" async><\/script>" }
62
+ },
63
+ {
64
+ description: "Custom pricing table with CSS styling",
65
+ type: "html",
66
+ props: { html: "<div style=\"display: flex; gap: 20px; justify-content: center;\"><div style=\"border: 2px solid #e2e8f0; border-radius: 12px; padding: 24px; text-align: center; background: white;\"><h3 style=\"margin: 0 0 16px; color: #1e293b;\">Basic</h3><div style=\"font-size: 32px; font-weight: bold; color: #0ea5e9;\">$9</div><p style=\"color: #64748b; margin: 8px 0 20px;\">per month</p><ul style=\"list-style: none; padding: 0; margin: 0;\"><li style=\"padding: 8px 0;\">✓ 5 Projects</li><li style=\"padding: 8px 0;\">✓ 10GB Storage</li><li style=\"padding: 8px 0;\">✓ Email Support</li></ul></div></div>" }
67
+ },
68
+ {
69
+ description: "Mailchimp newsletter signup form",
70
+ type: "html",
71
+ props: { html: "<div id=\"mc_embed_signup\"><form action=\"https://your-domain.us1.list-manage.com/subscribe/post?u=123456789&amp;id=abcdefghij\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\" novalidate><div id=\"mc_embed_signup_scroll\"><div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address</label><input type=\"email\" value=\"\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" style=\"width: 100%; padding: 10px; margin: 8px 0; border: 1px solid #ccc; border-radius: 4px;\"></div><div id=\"mce-responses\" class=\"clear\"><div class=\"response\" id=\"mce-error-response\" style=\"display:none\"></div><div class=\"response\" id=\"mce-success-response\" style=\"display:none\"></div></div><div style=\"position: absolute; left: -5000px;\" aria-hidden=\"true\"><input type=\"text\" name=\"b_123456789_abcdefghij\" tabindex=\"-1\" value=\"\"></div><div class=\"clear\"><input type=\"submit\" value=\"Subscribe\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" style=\"background: #007cba; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer;\"></div></div></form></div>" }
72
+ },
73
+ {
74
+ description: "Stripe payment button integration",
75
+ type: "html",
76
+ props: { html: "<script async src=\"https://js.stripe.com/v3/buy-button.js\"><\/script><stripe-buy-button buy-button-id=\"buy_btn_1234567890\" publishable-key=\"pk_test_1234567890\"></stripe-buy-button>" }
77
+ },
78
+ {
79
+ description: "Instagram post embed",
80
+ type: "html",
81
+ props: { html: "<blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-permalink=\"https://www.instagram.com/p/ABC123/\" data-instgrm-version=\"14\" style=\"background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"></blockquote><script async src=\"//www.instagram.com/embed.js\"><\/script>" }
82
+ },
83
+ {
84
+ description: "Custom countdown timer widget",
85
+ type: "html",
86
+ props: { html: "<div style=\"text-align: center; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; color: white;\"><h3 style=\"margin: 0 0 20px; font-size: 24px;\">Event Countdown</h3><div id=\"countdown\" style=\"display: flex; justify-content: center; gap: 20px;\"><div style=\"text-align: center;\"><div style=\"font-size: 32px; font-weight: bold;\">10</div><div style=\"font-size: 14px; opacity: 0.8;\">DAYS</div></div><div style=\"text-align: center;\"><div style=\"font-size: 32px; font-weight: bold;\">15</div><div style=\"font-size: 14px; opacity: 0.8;\">HOURS</div></div><div style=\"text-align: center;\"><div style=\"font-size: 32px; font-weight: bold;\">30</div><div style=\"font-size: 14px; opacity: 0.8;\">MINUTES</div></div></div></div>" }
87
+ },
88
+ {
89
+ description: "Interactive feedback widget with rating stars",
90
+ type: "html",
91
+ props: { html: "<div style=\"border: 1px solid #e2e8f0; border-radius: 8px; padding: 24px; background: #f8fafc;\"><h4 style=\"margin: 0 0 16px; color: #1e293b;\">How was your experience?</h4><div style=\"display: flex; gap: 8px; margin: 16px 0;\"><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #d1d5db;\">★</span></div><textarea placeholder=\"Tell us more about your experience...\" style=\"width: 100%; height: 80px; padding: 12px; border: 1px solid #d1d5db; border-radius: 6px; resize: vertical; font-family: inherit;\"></textarea><button style=\"margin-top: 12px; background: #3b82f6; color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer;\">Submit Feedback</button></div>" }
92
+ }
93
+ ];
94
+
95
+ //#endregion
96
+ export { examples, manifest };
19
97
  //# sourceMappingURL=html.manifest.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"html.manifest.js","names":["examples: BrickExample<Manifest>[]"],"sources":["../../../../src/shared/bricks/manifests/html.manifest.ts"],"sourcesContent":["import { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport type { BrickProps } from \"../props/types\";\nimport { BsCodeSquare } from \"react-icons/bs\";\n\nimport { Type } from \"@sinclair/typebox\";\nimport type { BrickExample } from \"./_types\";\nimport { grow } from \"../props/grow\";\n\nexport const manifest = defineBrickManifest({\n type: \"html\",\n name: \"Html\",\n category: \"widgets\",\n description:\n \"A flexible brick that accepts HTML content. Useful for embeding custom HTML or third-party widgets.\",\n aiInstructions:\n \"Use only this brick type when integrating third party widgets or custom HTML content. Most of the time, you should use other bricks that are more secure and easier to use.\",\n staticClasses: \"self-stretch\",\n defaultWidth: {\n mobile: \"auto\",\n desktop: \"300px\",\n },\n icon: BsCodeSquare,\n props: defineProps({\n html: Type.String({\n title: \"HTML Content\",\n description: \"The HTML content to render. Use with caution, as it can introduce security risks.\",\n default: \"<div>Your HTML content here</div>\",\n \"ui:placeholder\": \"<div>Your HTML content here</div>\",\n \"ui:multiline\": true,\n metadata: {\n category: \"content\",\n },\n }),\n grow: Type.Optional(\n grow({\n default: true,\n }),\n ),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: BrickExample<Manifest>[] = [\n {\n description: \"A tally form\",\n type: \"html\",\n props: {\n html: '<iframe data-tally-src=\"https://tally.so/embed/wQZpd8?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1\" loading=\"lazy\" width=\"100%\" height=\"282\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" title=\"test\"></iframe>',\n },\n },\n {\n description: \"YouTube video embed\",\n type: \"html\",\n props: {\n html: '<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/dQw4w9WgXcQ\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen></iframe>',\n },\n },\n {\n description: \"Google Maps embed\",\n type: \"html\",\n props: {\n html: '<iframe src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3024.309059887159!2d-74.00849368459473!3d40.71278097932847!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c25a165bedccab%3A0xa2008c34c27bfb67!2sWall%20St%2C%20New%20York%2C%20NY%2C%20USA!5e0!3m2!1sen!2sus!4v1620000000000\" width=\"100%\" height=\"300\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>',\n },\n },\n {\n description: \"Twitter tweet embed\",\n type: \"html\",\n props: {\n html: '<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">Just setting up my twttr</p>&mdash; Jack Dorsey (@jack) <a href=\"https://twitter.com/jack/status/20?ref_src=twsrc%5Etfw\">March 21, 2006</a></blockquote> <script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>',\n },\n },\n {\n description: \"CodePen embed for code showcase\",\n type: \"html\",\n props: {\n html: '<iframe height=\"300\" style=\"width: 100%;\" scrolling=\"no\" title=\"CSS Animation Example\" src=\"https://codepen.io/team/codepen/embed/PNaGbb?height=300&theme-id=light&default-tab=result\" frameborder=\"no\" loading=\"lazy\" allowtransparency=\"true\" allowfullscreen=\"true\"></iframe>',\n },\n },\n {\n description: \"Calendly scheduling widget\",\n type: \"html\",\n props: {\n html: '<div class=\"calendly-inline-widget\" data-url=\"https://calendly.com/your-name/30min\" style=\"min-width:320px;height:630px;\"></div><script type=\"text/javascript\" src=\"https://assets.calendly.com/assets/external/widget.js\" async></script>',\n },\n },\n {\n description: \"Custom pricing table with CSS styling\",\n type: \"html\",\n props: {\n html: '<div style=\"display: flex; gap: 20px; justify-content: center;\"><div style=\"border: 2px solid #e2e8f0; border-radius: 12px; padding: 24px; text-align: center; background: white;\"><h3 style=\"margin: 0 0 16px; color: #1e293b;\">Basic</h3><div style=\"font-size: 32px; font-weight: bold; color: #0ea5e9;\">$9</div><p style=\"color: #64748b; margin: 8px 0 20px;\">per month</p><ul style=\"list-style: none; padding: 0; margin: 0;\"><li style=\"padding: 8px 0;\">✓ 5 Projects</li><li style=\"padding: 8px 0;\">✓ 10GB Storage</li><li style=\"padding: 8px 0;\">✓ Email Support</li></ul></div></div>',\n },\n },\n {\n description: \"Mailchimp newsletter signup form\",\n type: \"html\",\n props: {\n html: '<div id=\"mc_embed_signup\"><form action=\"https://your-domain.us1.list-manage.com/subscribe/post?u=123456789&amp;id=abcdefghij\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\" novalidate><div id=\"mc_embed_signup_scroll\"><div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address</label><input type=\"email\" value=\"\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" style=\"width: 100%; padding: 10px; margin: 8px 0; border: 1px solid #ccc; border-radius: 4px;\"></div><div id=\"mce-responses\" class=\"clear\"><div class=\"response\" id=\"mce-error-response\" style=\"display:none\"></div><div class=\"response\" id=\"mce-success-response\" style=\"display:none\"></div></div><div style=\"position: absolute; left: -5000px;\" aria-hidden=\"true\"><input type=\"text\" name=\"b_123456789_abcdefghij\" tabindex=\"-1\" value=\"\"></div><div class=\"clear\"><input type=\"submit\" value=\"Subscribe\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" style=\"background: #007cba; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer;\"></div></div></form></div>',\n },\n },\n {\n description: \"Stripe payment button integration\",\n type: \"html\",\n props: {\n html: '<script async src=\"https://js.stripe.com/v3/buy-button.js\"></script><stripe-buy-button buy-button-id=\"buy_btn_1234567890\" publishable-key=\"pk_test_1234567890\"></stripe-buy-button>',\n },\n },\n {\n description: \"Instagram post embed\",\n type: \"html\",\n props: {\n html: '<blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-permalink=\"https://www.instagram.com/p/ABC123/\" data-instgrm-version=\"14\" style=\"background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"></blockquote><script async src=\"//www.instagram.com/embed.js\"></script>',\n },\n },\n {\n description: \"Custom countdown timer widget\",\n type: \"html\",\n props: {\n html: '<div style=\"text-align: center; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; color: white;\"><h3 style=\"margin: 0 0 20px; font-size: 24px;\">Event Countdown</h3><div id=\"countdown\" style=\"display: flex; justify-content: center; gap: 20px;\"><div style=\"text-align: center;\"><div style=\"font-size: 32px; font-weight: bold;\">10</div><div style=\"font-size: 14px; opacity: 0.8;\">DAYS</div></div><div style=\"text-align: center;\"><div style=\"font-size: 32px; font-weight: bold;\">15</div><div style=\"font-size: 14px; opacity: 0.8;\">HOURS</div></div><div style=\"text-align: center;\"><div style=\"font-size: 32px; font-weight: bold;\">30</div><div style=\"font-size: 14px; opacity: 0.8;\">MINUTES</div></div></div></div>',\n },\n },\n {\n description: \"Interactive feedback widget with rating stars\",\n type: \"html\",\n props: {\n html: '<div style=\"border: 1px solid #e2e8f0; border-radius: 8px; padding: 24px; background: #f8fafc;\"><h4 style=\"margin: 0 0 16px; color: #1e293b;\">How was your experience?</h4><div style=\"display: flex; gap: 8px; margin: 16px 0;\"><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #fbbf24;\">★</span><span style=\"font-size: 24px; cursor: pointer; color: #d1d5db;\">★</span></div><textarea placeholder=\"Tell us more about your experience...\" style=\"width: 100%; height: 80px; padding: 12px; border: 1px solid #d1d5db; border-radius: 6px; resize: vertical; font-family: inherit;\"></textarea><button style=\"margin-top: 12px; background: #3b82f6; color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer;\">Submit Feedback</button></div>',\n },\n },\n];\n"],"mappings":";;;;;;;AASA,MAAa,WAAW,oBAAoB;CAC1C,MAAM;CACN,MAAM;CACN,UAAU;CACV,aACE;CACF,gBACE;CACF,eAAe;CACf,cAAc;EACZ,QAAQ;EACR,SAAS;EACV;CACD,MAAM;CACN,OAAO,YAAY;EACjB,MAAM,KAAK,OAAO;GAChB,OAAO;GACP,aAAa;GACb,SAAS;GACT,kBAAkB;GAClB,gBAAgB;GAChB,UAAU,EACR,UAAU,WACX;GACF,CAAC;EACF,MAAM,KAAK,SACT,KAAK,EACH,SAAS,MACV,CAAC,CACH;EACF,CAAC;CACH,CAAC;AAIF,MAAaA,WAAqC;CAChD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,2PACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,mRACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,+YACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,wTACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,sSACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,yPACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,wlBACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,urCACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,8LACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,meACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,oxBACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,q+BACP;EACF;CACF"}
@@ -1,69 +1,76 @@
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
- icon: import("@sinclair/typebox").TString;
17
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
- link: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>>;
20
- loop: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
21
- over: import("@sinclair/typebox").TString;
22
- overrideLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
23
- }>>;
24
- }>;
25
- readonly category: import("~/shared/brick-manifest").BrickCategory;
26
- readonly defaultInspectorTab: "content" | "style" | "preset";
27
- readonly hideInLibrary: boolean;
28
- readonly deletable: boolean;
29
- readonly movable: boolean;
30
- readonly resizable: boolean | "horizontal" | "vertical";
31
- readonly duplicatable: boolean;
32
- readonly isContainer: boolean;
33
- readonly isGlobalBrick: boolean;
34
- readonly defaultWidth: {
35
- readonly mobile: string;
36
- readonly desktop: string;
37
- };
38
- readonly defaultHeight: {
39
- readonly mobile: string;
40
- readonly desktop: string;
41
- };
42
- readonly type: string;
43
- readonly name: string;
44
- readonly iconClassName?: string;
45
- readonly staticClasses?: string;
46
- readonly description?: string;
47
- readonly minWidth?: {
48
- mobile?: number;
49
- desktop?: number;
50
- };
51
- readonly maxWidth?: {
52
- mobile?: number;
53
- desktop?: number;
54
- };
55
- readonly minHeight?: {
56
- mobile?: number;
57
- desktop?: number;
58
- };
59
- readonly maxHeight?: {
60
- mobile?: number;
61
- desktop?: number;
62
- };
63
- readonly consumesMultipleQueryRows?: boolean;
64
- readonly inlineDragDisabled?: boolean;
65
- readonly aiInstructions?: string;
1
+ import { BrickCategory } from "../../brick-manifest.js";
2
+ import { BrickExample } from "./_types.js";
3
+ import * as _sinclair_typebox5044 from "@sinclair/typebox";
4
+ import * as react_icons_lib10 from "react-icons/lib";
5
+
6
+ //#region src/shared/bricks/manifests/icon.manifest.d.ts
7
+ declare const manifest: {
8
+ readonly icon: react_icons_lib10.IconType;
9
+ readonly props: _sinclair_typebox5044.TObject<{
10
+ lastTouched: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TNumber>;
11
+ hidden: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TObject<{
12
+ desktop: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TBoolean>;
13
+ mobile: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TBoolean>;
14
+ }>>;
15
+ editable: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TBoolean>;
16
+ width: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TString>;
17
+ height: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TString>;
18
+ grow: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TBoolean>;
19
+ alignSelf: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TUnsafe<"self-auto" | "self-start" | "self-center" | "self-end" | "self-stretch">>;
20
+ } & {
21
+ icon: _sinclair_typebox5044.TString;
22
+ size: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TString>;
23
+ color: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TString>;
24
+ link: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TUnion<[_sinclair_typebox5044.TString, _sinclair_typebox5044.TString]>>;
25
+ loop: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TObject<{
26
+ over: _sinclair_typebox5044.TString;
27
+ overrideLimit: _sinclair_typebox5044.TOptional<_sinclair_typebox5044.TNumber>;
28
+ }>>;
29
+ }>;
30
+ readonly category: BrickCategory;
31
+ readonly defaultInspectorTab: "preset" | "style" | "content";
32
+ readonly hideInLibrary: boolean;
33
+ readonly deletable: boolean;
34
+ readonly movable: boolean;
35
+ readonly resizable: boolean | "horizontal" | "vertical";
36
+ readonly duplicatable: boolean;
37
+ readonly isContainer: boolean;
38
+ readonly isGlobalBrick: boolean;
39
+ readonly defaultWidth: {
40
+ readonly mobile: string;
41
+ readonly desktop: string;
42
+ };
43
+ readonly defaultHeight: {
44
+ readonly mobile: string;
45
+ readonly desktop: string;
46
+ };
47
+ readonly type: string;
48
+ readonly name: string;
49
+ readonly iconClassName?: string;
50
+ readonly staticClasses?: string;
51
+ readonly description?: string;
52
+ readonly minWidth?: {
53
+ mobile?: number;
54
+ desktop?: number;
55
+ };
56
+ readonly maxWidth?: {
57
+ mobile?: number;
58
+ desktop?: number;
59
+ };
60
+ readonly minHeight?: {
61
+ mobile?: number;
62
+ desktop?: number;
63
+ };
64
+ readonly maxHeight?: {
65
+ mobile?: number;
66
+ desktop?: number;
67
+ };
68
+ readonly consumesMultipleQueryRows?: boolean;
69
+ readonly inlineDragDisabled?: boolean;
70
+ readonly aiInstructions?: string;
66
71
  };
67
- export type Manifest = typeof manifest;
68
- export declare const examples: BrickExample<Manifest>[];
72
+ type Manifest = typeof manifest;
73
+ declare const examples: BrickExample<Manifest>[];
74
+ //#endregion
75
+ export { Manifest, examples, manifest };
69
76
  //# sourceMappingURL=icon.manifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/icon.manifest.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGjB,CAAC;eACA,CAAC;;;cACsC,CAAC;eAAqB,CAAC;;;cAGhE,CAAC;eAAqB,CAAC;;;cACgB,CAAC;eACzC,CAAC;;;;;CAoED,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EA0P5C,CAAC"}
1
+ {"version":3,"file":"icon.manifest.d.ts","names":[],"sources":["../../../../src/shared/bricks/manifests/icon.manifest.ts"],"sourcesContent":[],"mappings":";;;;;;cAUa;iBAyEX,iBAAA,CAAA;;;;MAzEW,OAyEX,iCAAA,gCAAA;MAAA,MAAA,iCAAA,gCAAA;IAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEU,SAAA,aAAQ,CAAU,EAAA,MAAA;EAEjB,SAAA,WAuKZ,CAAA,EAAA,MAAA;EAAA,SAAA,QAAA,CAAA,EAAA;IAvKmC,MAAA,CAAA,EAAA,MAAA;IAAb,OAAA,CAAA,EAAA,MAAA;EAAY,CAAA;;;;;;;;;;;;;;;;;KAFvB,QAAA,UAAkB;cAEjB,UAAU,aAAa"}
@@ -1,24 +1,240 @@
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-JW7MQAU4.js";
7
- import "../../chunk-JSDKK5QN.js";
8
- import "../../chunk-VTCHJT4O.js";
9
- import "../../chunk-SQXZNGQF.js";
10
- import "../../chunk-XXPSM6UA.js";
11
- import "../../chunk-OJ6KL7FU.js";
12
- import "../../chunk-XFZQGRRL.js";
13
- import "../../chunk-ZRBTAC3G.js";
14
- import "../../chunk-EMF5TCPX.js";
15
- import "../../chunk-MO6CRLQA.js";
16
- import "../../chunk-J45LSQT6.js";
17
- import "../../chunk-HY7JOP3J.js";
18
- import "../../chunk-GDYCCB3B.js";
19
- import "../../chunk-ZGQ3AQBG.js";
20
- export {
21
- examples,
22
- manifest
23
- };
1
+ import { defineBrickManifest } from "../../brick-manifest.js";
2
+ import { cssLength } from "../props/css-length.js";
3
+ import { defineProps } from "../props/helpers.js";
4
+ import { icon, urlOrPageId } from "../props/string.js";
5
+ import { loop } from "../props/dynamic.js";
6
+ import { color } from "../props/color.js";
7
+ import { Type } from "@sinclair/typebox";
8
+ import { PiConfetti } from "react-icons/pi";
9
+
10
+ //#region src/shared/bricks/manifests/icon.manifest.ts
11
+ const manifest = defineBrickManifest({
12
+ type: "icon",
13
+ name: "Icon",
14
+ category: "basic",
15
+ description: "An icon.",
16
+ aiInstructions: `Use the icon component for adding visual symbols and interactive elements throughout your design.
17
+
18
+ WHEN TO USE:
19
+ - Navigation elements (menu, close, arrow buttons)
20
+ - Contact information (email, phone, location markers)
21
+ - User interface actions (search, shopping cart, download)
22
+ - Content enhancement (stars, hearts, thumbs up)
23
+ - Feature highlights (checkmarks, shields, awards)
24
+
25
+ ICON SELECTION:
26
+ - Use Iconify format: "mdi:icon-name", "lucide:icon-name", "heroicons:icon-name"
27
+ - Examples: "mdi:heart", "lucide:star", "heroicons:envelope", "mdi:facebook"
28
+
29
+ SIZING GUIDELINES:
30
+ - size: "1em" for inline text icons, "1.5em" for buttons, "2em" for headers
31
+ - Use "em" units to scale with text, "px" for fixed sizes
32
+ - Large decorative icons: "3em", "4em", or "48px", "64px"
33
+
34
+ COLOR OPTIONS:
35
+ - color: "currentColor" inherits text color (default)
36
+ - Match color scheme: warnings (orange/yellow), errors (red), success (green)
37
+
38
+ INTERACTIVE ICONS:
39
+ - Add link property for clickable icons
40
+ - External links: "https://facebook.com/yourpage"
41
+ - Email links: "mailto:contact@example.com"
42
+ - Phone links: "tel:+1234567890"
43
+ - For internal pages, use page IDs: "page_12345"
44
+
45
+ DYNAMIC CONTENT:
46
+ - Use template variables: icon: "{{ service.iconName }}"
47
+ - Dynamic colors: color: "{{ brand.primaryColor }}"
48
+ - Loop over data for icon lists or social media sets
49
+
50
+ AVOID:
51
+ - Oversized icons that dominate content
52
+ - Poor contrast (light icons on light backgrounds)
53
+ - Inconsistent icon styles within the same design
54
+ - Missing alt text context when icons convey important information`,
55
+ resizable: false,
56
+ staticClasses: "!grow-0",
57
+ icon: PiConfetti,
58
+ props: defineProps({
59
+ icon: icon({ default: "mdi:heart" }),
60
+ size: Type.Optional(cssLength({
61
+ title: "Size",
62
+ description: "The size of the icon. Can be a CSS length value (e.g. '2em', '24px')",
63
+ default: "1em",
64
+ "ui:css-units": [
65
+ "em",
66
+ "rem",
67
+ "px"
68
+ ],
69
+ "ai:instructions": "Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'"
70
+ })),
71
+ color: Type.Optional(color({
72
+ title: "Color",
73
+ default: "currentColor",
74
+ "ui:hide-color-label": true
75
+ })),
76
+ link: Type.Optional(urlOrPageId({ title: "Link" })),
77
+ loop: Type.Optional(loop())
78
+ }, { noGrow: true })
79
+ });
80
+ const examples = [
81
+ {
82
+ description: "Heart icon with default styling - Inherits text color and size",
83
+ type: "icon",
84
+ props: { icon: "mdi:heart" }
85
+ },
86
+ {
87
+ description: "Star icon with gold color - Perfect for ratings and reviews",
88
+ type: "icon",
89
+ props: {
90
+ icon: "mdi:star",
91
+ size: "1.2em",
92
+ color: "#fbbf24"
93
+ }
94
+ },
95
+ {
96
+ description: "Menu hamburger icon - Mobile navigation toggle",
97
+ type: "icon",
98
+ props: {
99
+ icon: "mdi:menu",
100
+ size: "1.8em",
101
+ color: "#374151"
102
+ }
103
+ },
104
+ {
105
+ description: "Search icon - Search functionality indicator",
106
+ type: "icon",
107
+ props: {
108
+ icon: "mdi:magnify",
109
+ size: "1.2em",
110
+ color: "#6b7280"
111
+ }
112
+ },
113
+ {
114
+ description: "Shopping cart icon - E-commerce navigation",
115
+ type: "icon",
116
+ props: {
117
+ icon: "mdi:cart",
118
+ size: "1.4em",
119
+ color: "#059669"
120
+ }
121
+ },
122
+ {
123
+ description: "Arrow right icon - Navigation and call-to-action",
124
+ type: "icon",
125
+ props: {
126
+ icon: "mdi:arrow-right",
127
+ size: "1.1em",
128
+ color: "currentColor"
129
+ }
130
+ },
131
+ {
132
+ description: "Facebook icon with official brand color and link",
133
+ type: "icon",
134
+ props: {
135
+ icon: "mdi:facebook",
136
+ size: "1.5em",
137
+ color: "#1877f2",
138
+ link: "https://facebook.com/yourpage"
139
+ }
140
+ },
141
+ {
142
+ description: "Twitter/X icon with link - Social media engagement",
143
+ type: "icon",
144
+ props: {
145
+ icon: "mdi:twitter",
146
+ size: "1.5em",
147
+ color: "#000000",
148
+ link: "https://x.com/yourhandle"
149
+ }
150
+ },
151
+ {
152
+ description: "Instagram icon with gradient-inspired color",
153
+ type: "icon",
154
+ props: {
155
+ icon: "mdi:instagram",
156
+ size: "1.5em",
157
+ color: "#e1306c",
158
+ link: "https://instagram.com/yourprofile"
159
+ }
160
+ },
161
+ {
162
+ description: "LinkedIn icon with professional blue",
163
+ type: "icon",
164
+ props: {
165
+ icon: "mdi:linkedin",
166
+ size: "1.5em",
167
+ color: "#0077b5",
168
+ link: "https://linkedin.com/company/yourcompany"
169
+ }
170
+ },
171
+ {
172
+ description: "Email icon with link - Contact information",
173
+ type: "icon",
174
+ props: {
175
+ icon: "mdi:email",
176
+ size: "1.3em",
177
+ color: "#4f46e5",
178
+ link: "mailto:contact@example.com"
179
+ }
180
+ },
181
+ {
182
+ description: "Phone icon with clickable link - Direct calling",
183
+ type: "icon",
184
+ props: {
185
+ icon: "mdi:phone",
186
+ size: "1.4em",
187
+ color: "#10b981",
188
+ link: "tel:+1234567890"
189
+ }
190
+ },
191
+ {
192
+ description: "Location marker icon - Address and directions",
193
+ type: "icon",
194
+ props: {
195
+ icon: "mdi:map-marker",
196
+ size: "1.6em",
197
+ color: "#ef4444"
198
+ }
199
+ },
200
+ {
201
+ description: "Success checkmark icon - Confirmation and completion",
202
+ type: "icon",
203
+ props: {
204
+ icon: "mdi:check-circle",
205
+ size: "1.5em",
206
+ color: "#10b981"
207
+ }
208
+ },
209
+ {
210
+ description: "Warning icon - Alerts and cautions",
211
+ type: "icon",
212
+ props: {
213
+ icon: "mdi:alert-triangle",
214
+ size: "1.5em",
215
+ color: "#f59e0b"
216
+ }
217
+ },
218
+ {
219
+ description: "Error icon - Problems and failures",
220
+ type: "icon",
221
+ props: {
222
+ icon: "mdi:alert-circle",
223
+ size: "1.5em",
224
+ color: "#ef4444"
225
+ }
226
+ },
227
+ {
228
+ description: "Information icon - Help and guidance",
229
+ type: "icon",
230
+ props: {
231
+ icon: "mdi:information",
232
+ size: "1.4em",
233
+ color: "#3b82f6"
234
+ }
235
+ }
236
+ ];
237
+
238
+ //#endregion
239
+ export { examples, manifest };
24
240
  //# sourceMappingURL=icon.manifest.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"icon.manifest.js","names":["examples: BrickExample<Manifest>[]"],"sources":["../../../../src/shared/bricks/manifests/icon.manifest.ts"],"sourcesContent":["import { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { PiConfetti } from \"react-icons/pi\";\nimport { icon, urlOrPageId } from \"../props/string\";\nimport { Type } from \"@sinclair/typebox\";\nimport { cssLength } from \"../props/css-length\";\nimport { color } from \"../props/color\";\nimport { loop } from \"../props/dynamic\";\nimport type { BrickExample } from \"./_types\";\n\nexport const manifest = defineBrickManifest({\n type: \"icon\",\n name: \"Icon\",\n category: \"basic\",\n description: \"An icon.\",\n aiInstructions: `Use the icon component for adding visual symbols and interactive elements throughout your design.\n\nWHEN TO USE:\n- Navigation elements (menu, close, arrow buttons)\n- Contact information (email, phone, location markers)\n- User interface actions (search, shopping cart, download)\n- Content enhancement (stars, hearts, thumbs up)\n- Feature highlights (checkmarks, shields, awards)\n\nICON SELECTION:\n- Use Iconify format: \"mdi:icon-name\", \"lucide:icon-name\", \"heroicons:icon-name\"\n- Examples: \"mdi:heart\", \"lucide:star\", \"heroicons:envelope\", \"mdi:facebook\"\n\nSIZING GUIDELINES:\n- size: \"1em\" for inline text icons, \"1.5em\" for buttons, \"2em\" for headers\n- Use \"em\" units to scale with text, \"px\" for fixed sizes\n- Large decorative icons: \"3em\", \"4em\", or \"48px\", \"64px\"\n\nCOLOR OPTIONS:\n- color: \"currentColor\" inherits text color (default)\n- Match color scheme: warnings (orange/yellow), errors (red), success (green)\n\nINTERACTIVE ICONS:\n- Add link property for clickable icons\n- External links: \"https://facebook.com/yourpage\"\n- Email links: \"mailto:contact@example.com\"\n- Phone links: \"tel:+1234567890\"\n- For internal pages, use page IDs: \"page_12345\"\n\nDYNAMIC CONTENT:\n- Use template variables: icon: \"{{ service.iconName }}\"\n- Dynamic colors: color: \"{{ brand.primaryColor }}\"\n- Loop over data for icon lists or social media sets\n\nAVOID:\n- Oversized icons that dominate content\n- Poor contrast (light icons on light backgrounds)\n- Inconsistent icon styles within the same design\n- Missing alt text context when icons convey important information`,\n resizable: false,\n staticClasses: \"!grow-0\",\n icon: PiConfetti,\n props: defineProps(\n {\n icon: icon({\n default: \"mdi:heart\",\n }),\n size: Type.Optional(\n cssLength({\n title: \"Size\",\n description: \"The size of the icon. Can be a CSS length value (e.g. '2em', '24px')\",\n default: \"1em\",\n \"ui:css-units\": [\"em\", \"rem\", \"px\"],\n \"ai:instructions\": \"Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'\",\n }),\n ),\n color: Type.Optional(\n color({\n title: \"Color\",\n default: \"currentColor\",\n \"ui:hide-color-label\": true,\n }),\n ),\n link: Type.Optional(urlOrPageId({ title: \"Link\" })),\n loop: Type.Optional(loop()),\n },\n { noGrow: true },\n ),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: BrickExample<Manifest>[] = [\n // BASIC ICONS\n {\n description: \"Heart icon with default styling - Inherits text color and size\",\n type: \"icon\",\n props: {\n icon: \"mdi:heart\",\n },\n },\n {\n description: \"Star icon with gold color - Perfect for ratings and reviews\",\n type: \"icon\",\n props: {\n icon: \"mdi:star\",\n size: \"1.2em\",\n color: \"#fbbf24\",\n },\n },\n\n // NAVIGATION ICONS\n {\n description: \"Menu hamburger icon - Mobile navigation toggle\",\n type: \"icon\",\n props: {\n icon: \"mdi:menu\",\n size: \"1.8em\",\n color: \"#374151\",\n },\n },\n {\n description: \"Search icon - Search functionality indicator\",\n type: \"icon\",\n props: {\n icon: \"mdi:magnify\",\n size: \"1.2em\",\n color: \"#6b7280\",\n },\n },\n {\n description: \"Shopping cart icon - E-commerce navigation\",\n type: \"icon\",\n props: {\n icon: \"mdi:cart\",\n size: \"1.4em\",\n color: \"#059669\",\n },\n },\n {\n description: \"Arrow right icon - Navigation and call-to-action\",\n type: \"icon\",\n props: {\n icon: \"mdi:arrow-right\",\n size: \"1.1em\",\n color: \"currentColor\",\n },\n },\n\n // SOCIAL MEDIA ICONS\n {\n description: \"Facebook icon with official brand color and link\",\n type: \"icon\",\n props: {\n icon: \"mdi:facebook\",\n size: \"1.5em\",\n color: \"#1877f2\",\n link: \"https://facebook.com/yourpage\",\n },\n },\n {\n description: \"Twitter/X icon with link - Social media engagement\",\n type: \"icon\",\n props: {\n icon: \"mdi:twitter\",\n size: \"1.5em\",\n color: \"#000000\",\n link: \"https://x.com/yourhandle\",\n },\n },\n {\n description: \"Instagram icon with gradient-inspired color\",\n type: \"icon\",\n props: {\n icon: \"mdi:instagram\",\n size: \"1.5em\",\n color: \"#e1306c\",\n link: \"https://instagram.com/yourprofile\",\n },\n },\n {\n description: \"LinkedIn icon with professional blue\",\n type: \"icon\",\n props: {\n icon: \"mdi:linkedin\",\n size: \"1.5em\",\n color: \"#0077b5\",\n link: \"https://linkedin.com/company/yourcompany\",\n },\n },\n\n // CONTACT INFORMATION ICONS\n {\n description: \"Email icon with link - Contact information\",\n type: \"icon\",\n props: {\n icon: \"mdi:email\",\n size: \"1.3em\",\n color: \"#4f46e5\",\n link: \"mailto:contact@example.com\",\n },\n },\n {\n description: \"Phone icon with clickable link - Direct calling\",\n type: \"icon\",\n props: {\n icon: \"mdi:phone\",\n size: \"1.4em\",\n color: \"#10b981\",\n link: \"tel:+1234567890\",\n },\n },\n {\n description: \"Location marker icon - Address and directions\",\n type: \"icon\",\n props: {\n icon: \"mdi:map-marker\",\n size: \"1.6em\",\n color: \"#ef4444\",\n },\n },\n\n // STATUS & FEEDBACK ICONS\n {\n description: \"Success checkmark icon - Confirmation and completion\",\n type: \"icon\",\n props: {\n icon: \"mdi:check-circle\",\n size: \"1.5em\",\n color: \"#10b981\",\n },\n },\n {\n description: \"Warning icon - Alerts and cautions\",\n type: \"icon\",\n props: {\n icon: \"mdi:alert-triangle\",\n size: \"1.5em\",\n color: \"#f59e0b\",\n },\n },\n {\n description: \"Error icon - Problems and failures\",\n type: \"icon\",\n props: {\n icon: \"mdi:alert-circle\",\n size: \"1.5em\",\n color: \"#ef4444\",\n },\n },\n {\n description: \"Information icon - Help and guidance\",\n type: \"icon\",\n props: {\n icon: \"mdi:information\",\n size: \"1.4em\",\n color: \"#3b82f6\",\n },\n },\n];\n"],"mappings":";;;;;;;;;;AAUA,MAAa,WAAW,oBAAoB;CAC1C,MAAM;CACN,MAAM;CACN,UAAU;CACV,aAAa;CACb,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuChB,WAAW;CACX,eAAe;CACf,MAAM;CACN,OAAO,YACL;EACE,MAAM,KAAK,EACT,SAAS,aACV,CAAC;EACF,MAAM,KAAK,SACT,UAAU;GACR,OAAO;GACP,aAAa;GACb,SAAS;GACT,gBAAgB;IAAC;IAAM;IAAO;IAAK;GACnC,mBAAmB;GACpB,CAAC,CACH;EACD,OAAO,KAAK,SACV,MAAM;GACJ,OAAO;GACP,SAAS;GACT,uBAAuB;GACxB,CAAC,CACH;EACD,MAAM,KAAK,SAAS,YAAY,EAAE,OAAO,QAAQ,CAAC,CAAC;EACnD,MAAM,KAAK,SAAS,MAAM,CAAC;EAC5B,EACD,EAAE,QAAQ,MAAM,CACjB;CACF,CAAC;AAIF,MAAaA,WAAqC;CAEhD;EACE,aAAa;EACb,MAAM;EACN,OAAO,EACL,MAAM,aACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CAGD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CAGD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,MAAM;GACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,MAAM;GACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,MAAM;GACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,MAAM;GACP;EACF;CAGD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,MAAM;GACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,MAAM;GACP;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CAGD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACD;EACE,aAAa;EACb,MAAM;EACN,OAAO;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACR;EACF;CACF"}