@upstart.gg/sdk 0.0.136 → 0.0.137

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 (447) hide show
  1. package/dist/shared/ai/schemas.d.ts.map +1 -1
  2. package/dist/shared/ai/schemas.js +24 -29
  3. package/dist/shared/ai/schemas.js.map +1 -1
  4. package/dist/shared/ai/types.d.ts +13 -61
  5. package/dist/shared/ai/types.d.ts.map +1 -1
  6. package/dist/shared/ajv.js +33 -32
  7. package/dist/shared/ajv.js.map +1 -1
  8. package/dist/shared/attributes.d.ts +83 -85
  9. package/dist/shared/attributes.d.ts.map +1 -1
  10. package/dist/shared/attributes.js +20 -23
  11. package/dist/shared/brick-manifest.d.ts +8 -5
  12. package/dist/shared/brick-manifest.d.ts.map +1 -1
  13. package/dist/shared/brick-manifest.js +3 -18
  14. package/dist/shared/bricks/manifests/accordion.manifest.d.ts +2 -2
  15. package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
  16. package/dist/shared/bricks/manifests/accordion.manifest.js +13 -20
  17. package/dist/shared/bricks/manifests/all-manifests.js +44 -43
  18. package/dist/shared/bricks/manifests/all-props.d.ts +1501 -0
  19. package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -0
  20. package/dist/shared/bricks/manifests/all-props.js +243 -0
  21. package/dist/shared/bricks/manifests/all-props.js.map +1 -0
  22. package/dist/shared/bricks/manifests/box.manifest.d.ts +2 -2
  23. package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
  24. package/dist/shared/bricks/manifests/box.manifest.js +16 -20
  25. package/dist/shared/bricks/manifests/button.manifest.d.ts +3 -6
  26. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  27. package/dist/shared/bricks/manifests/button.manifest.js +13 -20
  28. package/dist/shared/bricks/manifests/card.manifest.d.ts +3 -3
  29. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  30. package/dist/shared/bricks/manifests/card.manifest.js +18 -20
  31. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +2 -2
  32. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  33. package/dist/shared/bricks/manifests/carousel.manifest.js +15 -20
  34. package/dist/shared/bricks/manifests/footer.manifest.d.ts +3 -3
  35. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  36. package/dist/shared/bricks/manifests/footer.manifest.js +13 -20
  37. package/dist/shared/bricks/manifests/form.manifest.d.ts +3 -3
  38. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  39. package/dist/shared/bricks/manifests/form.manifest.js +13 -20
  40. package/dist/shared/bricks/manifests/hero.manifest.d.ts +2 -2
  41. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  42. package/dist/shared/bricks/manifests/hero.manifest.js +13 -20
  43. package/dist/shared/bricks/manifests/html.manifest.d.ts +1 -1
  44. package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
  45. package/dist/shared/bricks/manifests/html.manifest.js +8 -20
  46. package/dist/shared/bricks/manifests/icon.manifest.d.ts +1 -1
  47. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  48. package/dist/shared/bricks/manifests/icon.manifest.js +13 -20
  49. package/dist/shared/bricks/manifests/image.manifest.d.ts +2 -2
  50. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  51. package/dist/shared/bricks/manifests/image.manifest.js +16 -20
  52. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +2 -2
  53. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
  54. package/dist/shared/bricks/manifests/images-gallery.manifest.js +15 -20
  55. package/dist/shared/bricks/manifests/map.manifest.d.ts +1 -1
  56. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  57. package/dist/shared/bricks/manifests/map.manifest.js +11 -20
  58. package/dist/shared/bricks/manifests/navbar.manifest.d.ts +5 -5
  59. package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
  60. package/dist/shared/bricks/manifests/navbar.manifest.js +15 -20
  61. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +1 -1
  62. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
  63. package/dist/shared/bricks/manifests/sidebar.manifest.js +13 -20
  64. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +2 -2
  65. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  66. package/dist/shared/bricks/manifests/social-links.manifest.js +14 -20
  67. package/dist/shared/bricks/manifests/spacer.manifest.d.ts +1 -1
  68. package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
  69. package/dist/shared/bricks/manifests/spacer.manifest.js +8 -20
  70. package/dist/shared/bricks/manifests/table.manifest.d.ts +4 -4
  71. package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
  72. package/dist/shared/bricks/manifests/table.manifest.js +15 -20
  73. package/dist/shared/bricks/manifests/tabs.manifest.d.ts +4 -4
  74. package/dist/shared/bricks/manifests/tabs.manifest.d.ts.map +1 -1
  75. package/dist/shared/bricks/manifests/tabs.manifest.js +15 -20
  76. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +2 -2
  77. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
  78. package/dist/shared/bricks/manifests/testimonials.manifest.js +18 -20
  79. package/dist/shared/bricks/manifests/text.manifest.d.ts +2 -6
  80. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  81. package/dist/shared/bricks/manifests/text.manifest.js +13 -20
  82. package/dist/shared/bricks/manifests/timeline.manifest.d.ts +7 -7
  83. package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
  84. package/dist/shared/bricks/manifests/timeline.manifest.js +15 -20
  85. package/dist/shared/bricks/manifests/video.manifest.d.ts +1 -1
  86. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  87. package/dist/shared/bricks/manifests/video.manifest.js +11 -20
  88. package/dist/shared/bricks/props/align.d.ts +0 -3
  89. package/dist/shared/bricks/props/align.d.ts.map +1 -1
  90. package/dist/shared/bricks/props/align.js +4 -11
  91. package/dist/shared/bricks/props/background.d.ts +2 -8
  92. package/dist/shared/bricks/props/background.d.ts.map +1 -1
  93. package/dist/shared/bricks/props/background.js +4 -9
  94. package/dist/shared/bricks/props/border.d.ts +0 -7
  95. package/dist/shared/bricks/props/border.d.ts.map +1 -1
  96. package/dist/shared/bricks/props/border.js +5 -10
  97. package/dist/shared/bricks/props/color-preset.d.ts +316 -6
  98. package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
  99. package/dist/shared/bricks/props/color-preset.js +2 -5
  100. package/dist/shared/bricks/props/color.d.ts +3 -5
  101. package/dist/shared/bricks/props/color.d.ts.map +1 -1
  102. package/dist/shared/bricks/props/color.js +3 -8
  103. package/dist/shared/bricks/props/common.d.ts.map +1 -1
  104. package/dist/shared/bricks/props/common.js +4 -5
  105. package/dist/shared/bricks/props/css-length.d.ts +0 -1
  106. package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
  107. package/dist/shared/bricks/props/css-length.js +1 -4
  108. package/dist/shared/bricks/props/datasource.d.ts +3 -3
  109. package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
  110. package/dist/shared/bricks/props/datasource.js +74 -76
  111. package/dist/shared/bricks/props/datasource.js.map +1 -1
  112. package/dist/shared/bricks/props/date.js +21 -4
  113. package/dist/shared/bricks/props/date.js.map +1 -1
  114. package/dist/shared/bricks/props/direction.d.ts +1 -2
  115. package/dist/shared/bricks/props/direction.d.ts.map +1 -1
  116. package/dist/shared/bricks/props/direction.js +4 -7
  117. package/dist/shared/bricks/props/dynamic.d.ts +5 -67
  118. package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
  119. package/dist/shared/bricks/props/dynamic.js +6 -24
  120. package/dist/shared/bricks/props/effects.d.ts +1 -3
  121. package/dist/shared/bricks/props/effects.d.ts.map +1 -1
  122. package/dist/shared/bricks/props/effects.js +4 -9
  123. package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
  124. package/dist/shared/bricks/props/geolocation.js +3 -6
  125. package/dist/shared/bricks/props/geolocation.js.map +1 -1
  126. package/dist/shared/bricks/props/helpers.js +5 -6
  127. package/dist/shared/bricks/props/image.d.ts +2 -8
  128. package/dist/shared/bricks/props/image.d.ts.map +1 -1
  129. package/dist/shared/bricks/props/image.js +4 -7
  130. package/dist/shared/bricks/props/string.d.ts +2 -5
  131. package/dist/shared/bricks/props/string.d.ts.map +1 -1
  132. package/dist/shared/bricks/props/string.js +3 -10
  133. package/dist/shared/bricks/props/tags.d.ts +0 -1
  134. package/dist/shared/bricks/props/tags.d.ts.map +1 -1
  135. package/dist/shared/bricks/props/tags.js +3 -6
  136. package/dist/shared/bricks/props/text.d.ts +0 -3
  137. package/dist/shared/bricks/props/text.d.ts.map +1 -1
  138. package/dist/shared/bricks/props/text.js +4 -11
  139. package/dist/shared/bricks/props/types.d.ts +2 -2
  140. package/dist/shared/bricks/props/types.d.ts.map +1 -1
  141. package/dist/shared/bricks.d.ts +64 -154
  142. package/dist/shared/bricks.d.ts.map +1 -1
  143. package/dist/shared/bricks.js +47 -52
  144. package/dist/shared/chunk-2O5HVPID.js +41 -0
  145. package/dist/shared/chunk-2O5HVPID.js.map +1 -0
  146. package/dist/shared/{chunk-F22LDHEO.js → chunk-2U5U3CCJ.js} +3 -18
  147. package/dist/shared/chunk-2U5U3CCJ.js.map +1 -0
  148. package/dist/shared/{chunk-LTIJI7Y3.js → chunk-4KY7OZWD.js} +35 -35
  149. package/dist/shared/chunk-4KY7OZWD.js.map +1 -0
  150. package/dist/shared/{chunk-TNMNMYOB.js → chunk-5RCC2STG.js} +2 -13
  151. package/dist/shared/chunk-5RCC2STG.js.map +1 -0
  152. package/dist/shared/{chunk-KIDICX3Y.js → chunk-6AE7UD73.js} +27 -33
  153. package/dist/shared/chunk-6AE7UD73.js.map +1 -0
  154. package/dist/shared/{chunk-CRS7QCPZ.js → chunk-7U5WPHXB.js} +65 -27
  155. package/dist/shared/chunk-7U5WPHXB.js.map +1 -0
  156. package/dist/shared/{chunk-Q4NPPLEU.js → chunk-BHARJBEK.js} +2 -9
  157. package/dist/shared/chunk-BHARJBEK.js.map +1 -0
  158. package/dist/shared/{chunk-H5JM2M2T.js → chunk-BZTWZC77.js} +46 -31
  159. package/dist/shared/chunk-BZTWZC77.js.map +1 -0
  160. package/dist/shared/{chunk-LLNPH3XR.js → chunk-DCM4732T.js} +6 -8
  161. package/dist/shared/chunk-DCM4732T.js.map +1 -0
  162. package/dist/shared/{chunk-W6MRYRGJ.js → chunk-DRQKKPTX.js} +6 -20
  163. package/dist/shared/chunk-DRQKKPTX.js.map +1 -0
  164. package/dist/shared/{chunk-CSF2WQX2.js → chunk-EID5HPF3.js} +15 -12
  165. package/dist/shared/chunk-EID5HPF3.js.map +1 -0
  166. package/dist/shared/chunk-EMF5TCPX.js +389 -0
  167. package/dist/shared/chunk-EMF5TCPX.js.map +1 -0
  168. package/dist/shared/chunk-FD7YYFRI.js +225 -0
  169. package/dist/shared/chunk-FD7YYFRI.js.map +1 -0
  170. package/dist/shared/{chunk-36PLZKMW.js → chunk-FHA4DFIM.js} +26 -27
  171. package/dist/shared/chunk-FHA4DFIM.js.map +1 -0
  172. package/dist/shared/{chunk-L6C7HUSA.js → chunk-FUUSAMN3.js} +21 -24
  173. package/dist/shared/chunk-FUUSAMN3.js.map +1 -0
  174. package/dist/shared/chunk-GDYCCB3B.js +22 -0
  175. package/dist/shared/chunk-GDYCCB3B.js.map +1 -0
  176. package/dist/shared/chunk-GLV6QIIM.js +41 -0
  177. package/dist/shared/chunk-GLV6QIIM.js.map +1 -0
  178. package/dist/shared/chunk-H6TMBELF.js +374 -0
  179. package/dist/shared/chunk-H6TMBELF.js.map +1 -0
  180. package/dist/shared/{chunk-YWOTQWIQ.js → chunk-HUWMIXNN.js} +26 -28
  181. package/dist/shared/chunk-HUWMIXNN.js.map +1 -0
  182. package/dist/shared/chunk-HY7JOP3J.js +150 -0
  183. package/dist/shared/chunk-HY7JOP3J.js.map +1 -0
  184. package/dist/shared/{chunk-TFGGYU6Y.js → chunk-IEMCCHM4.js} +7 -12
  185. package/dist/shared/chunk-IEMCCHM4.js.map +1 -0
  186. package/dist/shared/{chunk-EVLRH6VG.js → chunk-J45LSQT6.js} +2 -2
  187. package/dist/shared/chunk-J45LSQT6.js.map +1 -0
  188. package/dist/shared/{chunk-DFAFDBYZ.js → chunk-JF52BBFD.js} +27 -28
  189. package/dist/shared/chunk-JF52BBFD.js.map +1 -0
  190. package/dist/shared/{chunk-ZR6R6Z6O.js → chunk-JLDAS3VE.js} +34 -32
  191. package/dist/shared/chunk-JLDAS3VE.js.map +1 -0
  192. package/dist/shared/{chunk-SE6O65HC.js → chunk-JSDKK5QN.js} +10 -23
  193. package/dist/shared/chunk-JSDKK5QN.js.map +1 -0
  194. package/dist/shared/{chunk-KILJYJFE.js → chunk-JW7MQAU4.js} +19 -19
  195. package/dist/shared/chunk-JW7MQAU4.js.map +1 -0
  196. package/dist/shared/{chunk-RV7AYVFV.js → chunk-KKWT3OXF.js} +4 -19
  197. package/dist/shared/chunk-KKWT3OXF.js.map +1 -0
  198. package/dist/shared/{chunk-N3BEBLWF.js → chunk-KQH6V22E.js} +34 -34
  199. package/dist/shared/{chunk-GFAQWQER.js → chunk-LGDDJJHK.js} +33 -35
  200. package/dist/shared/chunk-LGDDJJHK.js.map +1 -0
  201. package/dist/shared/{chunk-FOGAVJC2.js → chunk-LGGPCCCY.js} +3 -3
  202. package/dist/shared/{chunk-4MNWMEMM.js → chunk-LPAQ47C6.js} +23 -23
  203. package/dist/shared/chunk-LPAQ47C6.js.map +1 -0
  204. package/dist/shared/chunk-MO6CRLQA.js +73 -0
  205. package/dist/shared/chunk-MO6CRLQA.js.map +1 -0
  206. package/dist/shared/{chunk-GQTZPN5D.js → chunk-MYOLWTB2.js} +29 -32
  207. package/dist/shared/chunk-MYOLWTB2.js.map +1 -0
  208. package/dist/shared/{chunk-KEM5N6GJ.js → chunk-O24RDXZS.js} +34 -34
  209. package/dist/shared/chunk-O24RDXZS.js.map +1 -0
  210. package/dist/shared/{chunk-BPBKHEQ5.js → chunk-OJ6KL7FU.js} +1 -8
  211. package/dist/shared/chunk-OJ6KL7FU.js.map +1 -0
  212. package/dist/shared/{chunk-LCJ2VFPM.js → chunk-PF75LW33.js} +24 -27
  213. package/dist/shared/chunk-PF75LW33.js.map +1 -0
  214. package/dist/shared/{chunk-U5ZECCJM.js → chunk-QEJGPYTB.js} +32 -34
  215. package/dist/shared/chunk-QEJGPYTB.js.map +1 -0
  216. package/dist/shared/{chunk-2VDR4ZYY.js → chunk-SK2O7GFC.js} +17 -18
  217. package/dist/shared/chunk-SK2O7GFC.js.map +1 -0
  218. package/dist/shared/{chunk-N3ZTQD5I.js → chunk-SQXZNGQF.js} +8 -23
  219. package/dist/shared/chunk-SQXZNGQF.js.map +1 -0
  220. package/dist/shared/{chunk-NTLAKMMQ.js → chunk-SRYBJ6NQ.js} +6 -17
  221. package/dist/shared/chunk-SRYBJ6NQ.js.map +1 -0
  222. package/dist/shared/{chunk-UXTASZ23.js → chunk-T6C3NG2L.js} +66 -63
  223. package/dist/shared/chunk-T6C3NG2L.js.map +1 -0
  224. package/dist/shared/{chunk-ZRRAK5NS.js → chunk-TBT2PTGB.js} +41 -33
  225. package/dist/shared/chunk-TBT2PTGB.js.map +1 -0
  226. package/dist/shared/{chunk-2IHKVMKW.js → chunk-U4KZUX37.js} +18 -19
  227. package/dist/shared/chunk-U4KZUX37.js.map +1 -0
  228. package/dist/shared/{chunk-FQDR2BBZ.js → chunk-VSLRTXLF.js} +11 -4
  229. package/dist/shared/chunk-VSLRTXLF.js.map +1 -0
  230. package/dist/shared/{chunk-BHC2A43S.js → chunk-VTCHJT4O.js} +3 -3
  231. package/dist/shared/{chunk-BHC2A43S.js.map → chunk-VTCHJT4O.js.map} +1 -1
  232. package/dist/shared/{chunk-GIGFNQBO.js → chunk-W2RFDII5.js} +3 -3
  233. package/dist/shared/{chunk-Y74LZNND.js → chunk-WPZV3LYL.js} +4 -10
  234. package/dist/shared/chunk-WPZV3LYL.js.map +1 -0
  235. package/dist/shared/chunk-XFZQGRRL.js +101 -0
  236. package/dist/shared/chunk-XFZQGRRL.js.map +1 -0
  237. package/dist/shared/{chunk-42OUNI7C.js → chunk-XK2CERPB.js} +27 -29
  238. package/dist/shared/chunk-XK2CERPB.js.map +1 -0
  239. package/dist/shared/chunk-XNRSL6FL.js +78 -0
  240. package/dist/shared/chunk-XNRSL6FL.js.map +1 -0
  241. package/dist/shared/{chunk-2RK3CPYJ.js → chunk-XXPSM6UA.js} +9 -12
  242. package/dist/shared/chunk-XXPSM6UA.js.map +1 -0
  243. package/dist/shared/{chunk-ZLYIRH2B.js → chunk-ZRBTAC3G.js} +3 -18
  244. package/dist/shared/chunk-ZRBTAC3G.js.map +1 -0
  245. package/dist/shared/{chunk-F247VKAE.js → chunk-ZVJNRKT4.js} +18 -20
  246. package/dist/shared/chunk-ZVJNRKT4.js.map +1 -0
  247. package/dist/shared/context.d.ts +402 -23
  248. package/dist/shared/context.d.ts.map +1 -1
  249. package/dist/shared/context.js +93 -0
  250. package/dist/shared/context.js.map +1 -1
  251. package/dist/shared/datarecords/external/airtable/types.d.ts +1 -1
  252. package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
  253. package/dist/shared/datarecords/external/airtable/types.js +2 -1
  254. package/dist/shared/datarecords/types.d.ts +3 -3
  255. package/dist/shared/datarecords/types.d.ts.map +1 -1
  256. package/dist/shared/datarecords/types.js +3 -2
  257. package/dist/shared/datasources/external/instagram/feed/schema.d.ts +1 -1
  258. package/dist/shared/datasources/external/instagram/feed/schema.d.ts.map +1 -1
  259. package/dist/shared/datasources/external/instagram/feed/schema.js +4 -1
  260. package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -1
  261. package/dist/shared/datasources/external/mastodon/status/schema.d.ts +6 -6
  262. package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
  263. package/dist/shared/datasources/external/mastodon/status/schema.js +6 -19
  264. package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -1
  265. package/dist/shared/datasources/external/meta/oauth/config.d.ts +2 -2
  266. package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
  267. package/dist/shared/datasources/external/meta/oauth/config.js +4 -1
  268. package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -1
  269. package/dist/shared/datasources/external/threads/media/schema.d.ts +1 -1
  270. package/dist/shared/datasources/external/threads/media/schema.d.ts.map +1 -1
  271. package/dist/shared/datasources/external/threads/media/schema.js +4 -8
  272. package/dist/shared/datasources/external/threads/media/schema.js.map +1 -1
  273. package/dist/shared/datasources/internal/blog/schema.d.ts +1 -1
  274. package/dist/shared/datasources/internal/blog/schema.d.ts.map +1 -1
  275. package/dist/shared/datasources/internal/blog/schema.js +4 -1
  276. package/dist/shared/datasources/internal/blog/schema.js.map +1 -1
  277. package/dist/shared/datasources/types.d.ts +25 -25
  278. package/dist/shared/datasources/types.d.ts.map +1 -1
  279. package/dist/shared/datasources/types.js +3 -16
  280. package/dist/shared/images.d.ts +1 -1
  281. package/dist/shared/images.d.ts.map +1 -1
  282. package/dist/shared/images.js +4 -38
  283. package/dist/shared/images.js.map +1 -1
  284. package/dist/shared/page.d.ts +139 -22
  285. package/dist/shared/page.d.ts.map +1 -1
  286. package/dist/shared/page.js +51 -49
  287. package/dist/shared/responsive.js +1 -1
  288. package/dist/shared/site.d.ts +74 -191
  289. package/dist/shared/site.d.ts.map +1 -1
  290. package/dist/shared/site.js +55 -114
  291. package/dist/shared/site.js.map +1 -1
  292. package/dist/shared/sitemap.d.ts +4 -326
  293. package/dist/shared/sitemap.d.ts.map +1 -1
  294. package/dist/shared/sitemap.js +50 -58
  295. package/dist/shared/theme.d.ts +0 -37
  296. package/dist/shared/theme.d.ts.map +1 -1
  297. package/dist/shared/theme.js +4 -21
  298. package/dist/shared/utils/llm.d.ts +1 -10
  299. package/dist/shared/utils/llm.d.ts.map +1 -1
  300. package/dist/shared/utils/llm.js +1 -18
  301. package/dist/shared/utils/schema.d.ts +3 -2
  302. package/dist/shared/utils/schema.d.ts.map +1 -1
  303. package/dist/shared/utils/schema.js +2 -17
  304. package/dist/shared/utils/string-enum.d.ts +9 -3
  305. package/dist/shared/utils/string-enum.d.ts.map +1 -1
  306. package/dist/shared/utils/string-enum.js +1 -1
  307. package/package.json +21 -5
  308. package/src/shared/ai/schemas.ts +24 -29
  309. package/src/shared/ai/types.ts +22 -88
  310. package/src/shared/attributes.ts +53 -51
  311. package/src/shared/brick-manifest.ts +5 -6
  312. package/src/shared/bricks/manifests/accordion.manifest.ts +11 -11
  313. package/src/shared/bricks/manifests/all-props.ts +165 -0
  314. package/src/shared/bricks/manifests/box.manifest.ts +19 -21
  315. package/src/shared/bricks/manifests/button.manifest.ts +54 -16
  316. package/src/shared/bricks/manifests/card.manifest.ts +32 -18
  317. package/src/shared/bricks/manifests/carousel.manifest.ts +11 -13
  318. package/src/shared/bricks/manifests/footer.manifest.ts +16 -15
  319. package/src/shared/bricks/manifests/form.manifest.ts +14 -15
  320. package/src/shared/bricks/manifests/hero.manifest.ts +18 -20
  321. package/src/shared/bricks/manifests/icon.manifest.ts +9 -10
  322. package/src/shared/bricks/manifests/image.manifest.ts +22 -19
  323. package/src/shared/bricks/manifests/images-gallery.manifest.ts +13 -15
  324. package/src/shared/bricks/manifests/map.manifest.ts +10 -10
  325. package/src/shared/bricks/manifests/navbar.manifest.ts +20 -21
  326. package/src/shared/bricks/manifests/sidebar.manifest.ts +9 -9
  327. package/src/shared/bricks/manifests/social-links.manifest.ts +17 -19
  328. package/src/shared/bricks/manifests/table.manifest.ts +15 -15
  329. package/src/shared/bricks/manifests/tabs.manifest.ts +14 -16
  330. package/src/shared/bricks/manifests/testimonials.manifest.ts +21 -20
  331. package/src/shared/bricks/manifests/text.manifest.ts +16 -19
  332. package/src/shared/bricks/manifests/timeline.manifest.ts +29 -24
  333. package/src/shared/bricks/manifests/video.manifest.ts +9 -10
  334. package/src/shared/bricks/props/align.ts +0 -13
  335. package/src/shared/bricks/props/background.ts +1 -14
  336. package/src/shared/bricks/props/border.ts +2 -13
  337. package/src/shared/bricks/props/color-preset.ts +9 -10
  338. package/src/shared/bricks/props/color.ts +7 -18
  339. package/src/shared/bricks/props/common.ts +6 -7
  340. package/src/shared/bricks/props/css-length.ts +0 -5
  341. package/src/shared/bricks/props/datasource.ts +72 -74
  342. package/src/shared/bricks/props/direction.ts +1 -5
  343. package/src/shared/bricks/props/dynamic.ts +0 -11
  344. package/src/shared/bricks/props/effects.ts +0 -9
  345. package/src/shared/bricks/props/geolocation.ts +3 -3
  346. package/src/shared/bricks/props/helpers.ts +1 -1
  347. package/src/shared/bricks/props/image.ts +4 -16
  348. package/src/shared/bricks/props/string.ts +5 -18
  349. package/src/shared/bricks/props/tags.ts +0 -5
  350. package/src/shared/bricks/props/tests/background.test.ts +1 -15
  351. package/src/shared/bricks/props/tests/image.test.ts +3 -9
  352. package/src/shared/bricks/props/tests/string.test.ts +2 -26
  353. package/src/shared/bricks/props/text.ts +0 -12
  354. package/src/shared/bricks/props/types.ts +4 -3
  355. package/src/shared/bricks.ts +156 -1020
  356. package/src/shared/context.ts +24 -24
  357. package/src/shared/datarecords/external/airtable/types.ts +12 -11
  358. package/src/shared/datarecords/types.ts +2 -34
  359. package/src/shared/datasources/external/instagram/feed/schema.ts +2 -1
  360. package/src/shared/datasources/external/mastodon/status/schema.ts +4 -19
  361. package/src/shared/datasources/external/meta/oauth/config.ts +2 -1
  362. package/src/shared/datasources/external/threads/media/schema.ts +2 -8
  363. package/src/shared/datasources/internal/blog/schema.ts +2 -1
  364. package/src/shared/datasources/types.ts +64 -79
  365. package/src/shared/images.ts +12 -18
  366. package/src/shared/page.ts +9 -1
  367. package/src/shared/sitemap.ts +3 -70
  368. package/src/shared/tests/attributes.test.ts +2 -0
  369. package/src/shared/theme.ts +81 -96
  370. package/src/shared/utils/llm.ts +5 -191
  371. package/src/shared/utils/schema.ts +71 -244
  372. package/src/shared/utils/string-enum.ts +25 -4
  373. package/src/shared/utils/tests/schema.test.ts +70 -313
  374. package/dist/shared/chunk-2IHKVMKW.js.map +0 -1
  375. package/dist/shared/chunk-2RK3CPYJ.js.map +0 -1
  376. package/dist/shared/chunk-2VDR4ZYY.js.map +0 -1
  377. package/dist/shared/chunk-36PLZKMW.js.map +0 -1
  378. package/dist/shared/chunk-42OUNI7C.js.map +0 -1
  379. package/dist/shared/chunk-4MNWMEMM.js.map +0 -1
  380. package/dist/shared/chunk-A2QPY54H.js +0 -13
  381. package/dist/shared/chunk-A2QPY54H.js.map +0 -1
  382. package/dist/shared/chunk-BPBKHEQ5.js.map +0 -1
  383. package/dist/shared/chunk-CRS7QCPZ.js.map +0 -1
  384. package/dist/shared/chunk-CSF2WQX2.js.map +0 -1
  385. package/dist/shared/chunk-DFAFDBYZ.js.map +0 -1
  386. package/dist/shared/chunk-DV3G7X34.js +0 -244
  387. package/dist/shared/chunk-DV3G7X34.js.map +0 -1
  388. package/dist/shared/chunk-EVLRH6VG.js.map +0 -1
  389. package/dist/shared/chunk-F22LDHEO.js.map +0 -1
  390. package/dist/shared/chunk-F247VKAE.js.map +0 -1
  391. package/dist/shared/chunk-FQDR2BBZ.js.map +0 -1
  392. package/dist/shared/chunk-GFAQWQER.js.map +0 -1
  393. package/dist/shared/chunk-GQTZPN5D.js.map +0 -1
  394. package/dist/shared/chunk-H5JM2M2T.js.map +0 -1
  395. package/dist/shared/chunk-HTUSL2U7.js +0 -260
  396. package/dist/shared/chunk-HTUSL2U7.js.map +0 -1
  397. package/dist/shared/chunk-IQIISR22.js +0 -794
  398. package/dist/shared/chunk-IQIISR22.js.map +0 -1
  399. package/dist/shared/chunk-JK2FWFJU.js +0 -15
  400. package/dist/shared/chunk-JK2FWFJU.js.map +0 -1
  401. package/dist/shared/chunk-KEM5N6GJ.js.map +0 -1
  402. package/dist/shared/chunk-KIDICX3Y.js.map +0 -1
  403. package/dist/shared/chunk-KILJYJFE.js.map +0 -1
  404. package/dist/shared/chunk-L6C7HUSA.js.map +0 -1
  405. package/dist/shared/chunk-LCJ2VFPM.js.map +0 -1
  406. package/dist/shared/chunk-LLNPH3XR.js.map +0 -1
  407. package/dist/shared/chunk-LTIJI7Y3.js.map +0 -1
  408. package/dist/shared/chunk-MFNHFN2B.js +0 -103
  409. package/dist/shared/chunk-MFNHFN2B.js.map +0 -1
  410. package/dist/shared/chunk-N3ZTQD5I.js.map +0 -1
  411. package/dist/shared/chunk-NTLAKMMQ.js.map +0 -1
  412. package/dist/shared/chunk-Q4NPPLEU.js.map +0 -1
  413. package/dist/shared/chunk-RV7AYVFV.js.map +0 -1
  414. package/dist/shared/chunk-SE6O65HC.js.map +0 -1
  415. package/dist/shared/chunk-TFGGYU6Y.js.map +0 -1
  416. package/dist/shared/chunk-TNMNMYOB.js.map +0 -1
  417. package/dist/shared/chunk-TNTFKLCR.js +0 -1225
  418. package/dist/shared/chunk-TNTFKLCR.js.map +0 -1
  419. package/dist/shared/chunk-U5ZECCJM.js.map +0 -1
  420. package/dist/shared/chunk-UXTASZ23.js.map +0 -1
  421. package/dist/shared/chunk-W6MRYRGJ.js.map +0 -1
  422. package/dist/shared/chunk-WKN566LN.js +0 -29
  423. package/dist/shared/chunk-WKN566LN.js.map +0 -1
  424. package/dist/shared/chunk-Y74LZNND.js.map +0 -1
  425. package/dist/shared/chunk-YWOTQWIQ.js.map +0 -1
  426. package/dist/shared/chunk-ZLYIRH2B.js.map +0 -1
  427. package/dist/shared/chunk-ZR6R6Z6O.js.map +0 -1
  428. package/dist/shared/chunk-ZRRAK5NS.js.map +0 -1
  429. package/dist/shared/tests/schema-registry.test.d.ts +0 -2
  430. package/dist/shared/tests/schema-registry.test.d.ts.map +0 -1
  431. package/dist/shared/utils/schema-registry.d.ts +0 -5
  432. package/dist/shared/utils/schema-registry.d.ts.map +0 -1
  433. package/dist/shared/utils/schema-registry.js +0 -29
  434. package/dist/shared/utils/schema-registry.js.map +0 -1
  435. package/dist/shared/utils/tests/schema-registry.test.d.ts +0 -2
  436. package/dist/shared/utils/tests/schema-registry.test.d.ts.map +0 -1
  437. package/dist/shared/utils/typed-ref.d.ts +0 -43
  438. package/dist/shared/utils/typed-ref.d.ts.map +0 -1
  439. package/dist/shared/utils/typed-ref.js +0 -10
  440. package/dist/shared/utils/typed-ref.js.map +0 -1
  441. package/src/shared/tests/schema-registry.test.ts +0 -12
  442. package/src/shared/utils/schema-registry.ts +0 -82
  443. package/src/shared/utils/tests/schema-registry.test.ts +0 -13
  444. package/src/shared/utils/typed-ref.ts +0 -53
  445. /package/dist/shared/{chunk-N3BEBLWF.js.map → chunk-KQH6V22E.js.map} +0 -0
  446. /package/dist/shared/{chunk-FOGAVJC2.js.map → chunk-LGGPCCCY.js.map} +0 -0
  447. /package/dist/shared/{chunk-GIGFNQBO.js.map → chunk-W2RFDII5.js.map} +0 -0
@@ -1,7 +1,6 @@
1
1
  import { type Static, type TString, Type } from "@sinclair/typebox";
2
- import { typedRef } from "~/shared/utils/typed-ref";
3
- import { cssLengthRef } from "./css-length";
4
- import { alignSelfRef } from "./align";
2
+ import { cssLength } from "./css-length";
3
+ import { alignSelf } from "./align";
5
4
 
6
5
  export function hidden() {
7
6
  return Type.Object(
@@ -25,7 +24,7 @@ export const commonProps = {
25
24
  "ai:hidden": true,
26
25
  }),
27
26
  ),
28
- hidden: Type.Optional(typedRef("styles:hidden")),
27
+ hidden: Type.Optional(hidden()),
29
28
  editable: Type.Optional(
30
29
  Type.Boolean({
31
30
  "ui:field": "hidden",
@@ -33,7 +32,7 @@ export const commonProps = {
33
32
  }),
34
33
  ),
35
34
  width: Type.Optional(
36
- cssLengthRef({
35
+ cssLength({
37
36
  title: "Fixed Width",
38
37
  description:
39
38
  "Set a fixed width for the brick. If not set, the brick will be responsive and will follow the flex layout of its parent section.",
@@ -42,7 +41,7 @@ export const commonProps = {
42
41
  }) as TString,
43
42
  ),
44
43
  height: Type.Optional(
45
- cssLengthRef({
44
+ cssLength({
46
45
  title: "Fixed height",
47
46
  description:
48
47
  "Set a fixed height for the brick. If not set, the brick will be responsive and will follow the flex layout of its parent section.",
@@ -57,7 +56,7 @@ export const commonProps = {
57
56
  "ui:responsive": true,
58
57
  }),
59
58
  ),
60
- alignSelf: Type.Optional(alignSelfRef()),
59
+ alignSelf: Type.Optional(alignSelf()),
61
60
  };
62
61
 
63
62
  const commonPropsSchema = Type.Object(commonProps);
@@ -1,5 +1,4 @@
1
1
  import { type Static, Type, type StringOptions } from "@sinclair/typebox";
2
- import { typedRef } from "~/shared/utils/typed-ref";
3
2
 
4
3
  export const cssUnits = ["px", "%", "em", "rem", "vh", "vw", "dvh", "dvw", "rlh", "lh", "cqh", "cqw"];
5
4
 
@@ -18,10 +17,6 @@ export function cssLength(options: StringOptions = {}) {
18
17
 
19
18
  export type CssLength = Static<ReturnType<typeof cssLength>>;
20
19
 
21
- export function cssLengthRef(options: StringOptions = {}) {
22
- return typedRef("styles:cssLength", options);
23
- }
24
-
25
20
  export function isCssLength(value: string | number | undefined): boolean {
26
21
  if (typeof value !== "string") {
27
22
  return false;
@@ -1,82 +1,80 @@
1
1
  import { Type, type Static } from "@sinclair/typebox";
2
2
  import { StringEnum } from "~/shared/utils/string-enum";
3
3
 
4
- export function datasource(title = "Database") {
5
- return Type.Object(
6
- {
7
- id: Type.String({
8
- title: "Database",
4
+ export const deprecated_datasourceField = Type.Object(
5
+ {
6
+ id: Type.String({
7
+ title: "Database",
8
+ }),
9
+ offset: Type.Optional(
10
+ Type.Number({
11
+ title: "Offset",
12
+ description: "Offset the records to fetch from the datasource",
13
+ minimum: 0,
14
+ default: 0,
9
15
  }),
10
- offset: Type.Optional(
11
- Type.Number({
12
- title: "Offset",
13
- description: "Offset the records to fetch from the datasource",
14
- minimum: 0,
15
- default: 0,
16
- }),
17
- ),
18
- limit: Type.Optional(
19
- Type.Number({
20
- title: "Limit",
21
- description:
22
- "Limit the number of records to fetch from the datasource. Setting to 1 will fetch and render only one item.",
23
- minimum: 1,
24
- default: 3,
25
- }),
26
- ),
27
- sortDirection: Type.Optional(
28
- StringEnum(["asc", "desc"], {
29
- title: "Sort",
30
- enumNames: ["Ascending", "Descending"],
31
- description: "Direction to sort the records by",
32
- default: "desc",
33
- }),
34
- ),
35
- sortField: Type.Optional(
36
- Type.String({
37
- title: "Sort Field",
38
- description: "Select a field to sort by (must be indexed)",
39
- default: "$publicationDate",
16
+ ),
17
+ limit: Type.Optional(
18
+ Type.Number({
19
+ title: "Limit",
20
+ description:
21
+ "Limit the number of records to fetch from the datasource. Setting to 1 will fetch and render only one item.",
22
+ minimum: 1,
23
+ default: 3,
24
+ }),
25
+ ),
26
+ sortDirection: Type.Optional(
27
+ StringEnum(["asc", "desc"], {
28
+ title: "Sort",
29
+ enumNames: ["Ascending", "Descending"],
30
+ description: "Direction to sort the records by",
31
+ default: "desc",
32
+ }),
33
+ ),
34
+ sortField: Type.Optional(
35
+ Type.String({
36
+ title: "Sort Field",
37
+ description: "Select a field to sort by (must be indexed)",
38
+ default: "$publicationDate",
39
+ }),
40
+ ),
41
+ filters: Type.Optional(
42
+ Type.Array(
43
+ Type.Object({
44
+ field: Type.String(),
45
+ op: StringEnum([
46
+ "eq",
47
+ "ne",
48
+ "lt",
49
+ "lte",
50
+ "gt",
51
+ "gte",
52
+ "in",
53
+ "nin",
54
+ "contains",
55
+ "notContains",
56
+ "startsWith",
57
+ "notStartsWith",
58
+ "endsWith",
59
+ "notEndsWith",
60
+ "before",
61
+ "after",
62
+ ]),
63
+ value: Type.Union([Type.String(), Type.Number(), Type.Boolean()]),
40
64
  }),
65
+ {
66
+ default: [],
67
+ },
41
68
  ),
42
- filters: Type.Optional(
43
- Type.Array(
44
- Type.Object({
45
- field: Type.String(),
46
- op: StringEnum([
47
- "eq",
48
- "ne",
49
- "lt",
50
- "lte",
51
- "gt",
52
- "gte",
53
- "in",
54
- "nin",
55
- "contains",
56
- "notContains",
57
- "startsWith",
58
- "notStartsWith",
59
- "endsWith",
60
- "notEndsWith",
61
- "before",
62
- "after",
63
- ]),
64
- value: Type.Union([Type.String(), Type.Number(), Type.Boolean()]),
65
- }),
66
- {
67
- default: [],
68
- },
69
- ),
70
- ),
71
- },
72
- {
73
- "ui:field": "datasource",
74
- title,
75
- metadata: {
76
- category: "content",
77
- },
69
+ ),
70
+ },
71
+ {
72
+ "ui:field": "datasource",
73
+ title: "Database",
74
+ metadata: {
75
+ category: "content",
78
76
  },
79
- );
80
- }
77
+ },
78
+ );
81
79
 
82
- export type DatasourceSettings = Static<ReturnType<typeof datasource>>;
80
+ export type DeprecatedDatasourceSettings = Static<typeof deprecated_datasourceField>;
@@ -1,12 +1,12 @@
1
1
  import { type SchemaOptions, type Static, type StringOptions, Type } from "@sinclair/typebox";
2
2
  import { StringEnum } from "~/shared/utils/string-enum";
3
- import { typedRef } from "~/shared/utils/typed-ref";
4
3
 
5
4
  export function direction(options: StringOptions = {}) {
6
5
  return StringEnum(["flex-row", "flex-col"], {
7
6
  title: "Direction",
8
7
  description: "The direction of the layout",
9
8
  enumNames: ["Horizontal", "Vertical"],
9
+ default: "flex-row",
10
10
  // $id: "styles:direction",
11
11
  "ui:styleId": "styles:direction",
12
12
  examples: ["flex-row", "flex-col"],
@@ -15,7 +15,3 @@ export function direction(options: StringOptions = {}) {
15
15
  }
16
16
 
17
17
  export type DirectionSettings = Static<ReturnType<typeof direction>>;
18
-
19
- export function directionRef(options: SchemaOptions = {}) {
20
- return typedRef("styles:direction", options);
21
- }
@@ -1,4 +1,3 @@
1
- import { typedRef } from "~/shared/utils/typed-ref";
2
1
  import { type ObjectOptions, Type, type Static } from "@sinclair/typebox";
3
2
  import { queryFilter } from "~/shared/datasources/types";
4
3
 
@@ -53,14 +52,8 @@ export function queryUse() {
53
52
  );
54
53
  }
55
54
 
56
- export const queryUseSchema = queryUseRef();
57
-
58
55
  export type QueryUseSettings = Static<ReturnType<typeof queryUse>>;
59
56
 
60
- export function queryUseRef(options: ObjectOptions = {}) {
61
- return typedRef("content:queryUse", options);
62
- }
63
-
64
57
  export function loop(options: ObjectOptions = {}) {
65
58
  return Type.Object(
66
59
  {
@@ -105,7 +98,3 @@ export function loop(options: ObjectOptions = {}) {
105
98
  }
106
99
 
107
100
  export type LoopSettings = Static<ReturnType<typeof loop>>;
108
-
109
- export function loopRef(options: ObjectOptions = {}) {
110
- return typedRef("content:loop", options);
111
- }
@@ -1,5 +1,4 @@
1
1
  import { type SchemaOptions, Type, type Static } from "@sinclair/typebox";
2
- import { typedRef } from "~/shared/utils/typed-ref";
3
2
  import { StringEnum, type StringEnumOptions } from "~/shared/utils/string-enum";
4
3
 
5
4
  export function shadow(options: StringEnumOptions = {}) {
@@ -19,10 +18,6 @@ export function shadow(options: StringEnumOptions = {}) {
19
18
 
20
19
  export type ShadowSettings = Static<ReturnType<typeof shadow>>;
21
20
 
22
- export function shadowRef(options: StringEnumOptions = {}) {
23
- return typedRef("styles:shadow", options);
24
- }
25
-
26
21
  /**
27
22
  * This function is used in ajv and type ref translations, but should not be used directly in bricks
28
23
  */
@@ -43,10 +38,6 @@ export function textShadow(options: StringEnumOptions = {}) {
43
38
  );
44
39
  }
45
40
 
46
- export function textShadowRef(options: SchemaOptions = {}) {
47
- return typedRef("styles:textShadow", options);
48
- }
49
-
50
41
  export type TextShadowSettings = Static<ReturnType<typeof textShadow>>;
51
42
 
52
43
  type OpacityOptions = {
@@ -1,6 +1,5 @@
1
1
  import { type ObjectOptions, Type, type Static } from "@sinclair/typebox";
2
2
  import { number } from "./number";
3
- import { string } from "./string";
4
3
 
5
4
  export function geolocation(opts: ObjectOptions & { defaultZoom?: number } = {}) {
6
5
  const { title = "Location", defaultZoom } = opts;
@@ -8,10 +7,11 @@ export function geolocation(opts: ObjectOptions & { defaultZoom?: number } = {})
8
7
  {
9
8
  lat: number("Latitude", { "ui:field": "hidden" }),
10
9
  lng: number("Longitude", { "ui:field": "hidden" }),
11
- address: string("Address", {
10
+ address: Type.String({
11
+ title: "Address",
12
12
  "ui:field": "geoaddress",
13
13
  }),
14
- tooltip: Type.Optional(string("Tooltip", {})),
14
+ tooltip: Type.Optional(Type.String({ title: "Tooltip" })),
15
15
  zoom: Type.Optional(
16
16
  number("Zoom", {
17
17
  description: "Zoom level for the map",
@@ -66,7 +66,7 @@ export function defineProps<P extends TProperties>(
66
66
  ...(options?.noAlignSelf ? {} : { alignSelf }),
67
67
  ...(options?.noGrow ? {} : { grow }),
68
68
  } as typeof allProps;
69
- return Type.Object(finalProps, { ...options, additionalProperties: false });
69
+ return Type.Object(finalProps, options);
70
70
  }
71
71
 
72
72
  // export const optional = Type.Optional;
@@ -1,6 +1,5 @@
1
- import { type SchemaOptions, Type, type Static, type ObjectOptions } from "@sinclair/typebox";
1
+ import { Type, type Static, type ObjectOptions } from "@sinclair/typebox";
2
2
  import { StringEnum } from "~/shared/utils/string-enum";
3
- import { typedRef } from "~/shared/utils/typed-ref";
4
3
 
5
4
  type PropImageOptions = {
6
5
  defaultImageUrl?: string;
@@ -8,13 +7,12 @@ type PropImageOptions = {
8
7
  noObjectOptions?: boolean;
9
8
  } & ObjectOptions;
10
9
 
11
- export function image(title = "Image", options: PropImageOptions = {}) {
10
+ export function image(options: PropImageOptions = {}) {
12
11
  const { defaultImageUrl, showImgSearch = false, noObjectOptions = false } = options;
13
12
  const schema = Type.Object(
14
13
  {
15
14
  src: Type.String({
16
- default: defaultImageUrl,
17
- title,
15
+ title: options.title ?? "Image URL",
18
16
  description: "Image URL. Can be a link to an image or a data URI",
19
17
  }),
20
18
  alt: Type.Optional(
@@ -29,7 +27,6 @@ export function image(title = "Image", options: PropImageOptions = {}) {
29
27
  enumNames: ["None", "Contain", "Cover", "Fill", "Scale down"],
30
28
  title: "Fit",
31
29
  description: "How the image should be resized to fit its container",
32
- default: "object-cover",
33
30
  "ui:field": "enum",
34
31
  "ui:styleId": "styles:objectFit",
35
32
  }),
@@ -69,16 +66,11 @@ export function image(title = "Image", options: PropImageOptions = {}) {
69
66
  },
70
67
  {
71
68
  // $id: "assets:image",
72
- title,
69
+ title: "Image",
73
70
  "ui:field": "image",
74
71
  "ui:accept": "image/*",
75
72
  "ui:show-img-search": showImgSearch,
76
73
  "ui:no-object-options": noObjectOptions,
77
- default: {
78
- alt: "Image",
79
- fit: "object-cover",
80
- position: "object-center",
81
- },
82
74
  // "ui:responsive": "desktop",
83
75
  metadata: {
84
76
  category: "content",
@@ -89,8 +81,4 @@ export function image(title = "Image", options: PropImageOptions = {}) {
89
81
  return schema;
90
82
  }
91
83
 
92
- export function imageRef(options: PropImageOptions & SchemaOptions = {}) {
93
- return typedRef("assets:image", options);
94
- }
95
-
96
84
  export type ImageProps = Static<ReturnType<typeof image>>;
@@ -1,16 +1,11 @@
1
1
  import { type Static, Type, type StringOptions } from "@sinclair/typebox";
2
2
  import type { FieldMetadata } from "./types";
3
- import { typedRef } from "~/shared/utils/typed-ref";
4
3
 
5
4
  type StrFieldOptions = StringOptions &
6
5
  FieldMetadata & {
7
6
  "ui:multiline"?: boolean;
8
7
  };
9
8
 
10
- export function string(title: string, options: StrFieldOptions = {}) {
11
- return Type.String({ title, ...options });
12
- }
13
-
14
9
  export function url(title = "URL", defaultValue?: string) {
15
10
  return Type.String({
16
11
  title,
@@ -24,7 +19,7 @@ const pageIdSchema = Type.String({
24
19
  "ui:field": "page-id",
25
20
  });
26
21
 
27
- export function urlOrPageId(title = "URL", defaultValue?: string) {
22
+ export function urlOrPageId(options: StringOptions = {}) {
28
23
  return Type.Union(
29
24
  [
30
25
  Type.String({
@@ -34,29 +29,25 @@ export function urlOrPageId(title = "URL", defaultValue?: string) {
34
29
  ],
35
30
  {
36
31
  // $id: "content:urlOrPageId",
37
- default: defaultValue,
38
- title,
32
+ title: "URL",
39
33
  metadata: {
40
34
  category: "content",
41
35
  },
42
36
  "ui:field": "url-page-id",
43
37
  "ai:instructions":
44
38
  "This field can be a URL or a page ID. Use the page ID when linking to a internal page, and a URL for external links. It can also contain page queries refrences like '/products/{{ categories.$slug }}' or '/blog/{{ blogPosts.$slug }}'.",
39
+ ...options,
45
40
  },
46
41
  );
47
42
  }
48
43
 
49
44
  export type UrlOrPageIdSettings = Static<ReturnType<typeof urlOrPageId>>;
50
45
 
51
- export function urlOrPageIdRef(options: StrFieldOptions = {}) {
52
- return typedRef("content:urlOrPageId", { ...options });
53
- }
54
-
55
46
  type IconOptions = StrFieldOptions & { "ui:default-icon-collection"?: string };
56
47
 
57
- export function icon(title?: string, options: IconOptions = {}) {
48
+ export function icon(options: IconOptions = {}) {
58
49
  return Type.String({
59
- title: title ?? "Icon",
50
+ title: "Icon",
60
51
  "ai:instructions": "Use a iconify reference like 'mdi:heart' or 'fa-solid:coffee'.",
61
52
  "ui:field": "iconify",
62
53
  // $id: "assets:icon",
@@ -66,7 +57,3 @@ export function icon(title?: string, options: IconOptions = {}) {
66
57
  ...options,
67
58
  });
68
59
  }
69
-
70
- export function iconRef(options: IconOptions = {}) {
71
- return typedRef("assets:icon", options);
72
- }
@@ -1,5 +1,4 @@
1
1
  import { type Static, Type, type StringOptions } from "@sinclair/typebox";
2
- import { typedRef } from "~/shared/utils/typed-ref";
3
2
 
4
3
  export function tags(options?: StringOptions) {
5
4
  return Type.Array(
@@ -20,7 +19,3 @@ export function tags(options?: StringOptions) {
20
19
  }
21
20
 
22
21
  export type TagsSettings = Static<ReturnType<typeof tags>>;
23
-
24
- export function tagsRef(options: StringOptions = {}) {
25
- return typedRef("content:tags", { ...options });
26
- }
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { background, backgroundRef, backgroundColor } from "../background";
2
+ import { background, backgroundColor } from "../background";
3
3
 
4
4
  describe("Background prop test suite", () => {
5
5
  describe("background", () => {
@@ -47,20 +47,6 @@ describe("Background prop test suite", () => {
47
47
  expect(imageProp.type).toBe("string");
48
48
  });
49
49
  });
50
-
51
- describe("size property", () => {
52
- it("should have correct metadata", () => {
53
- const sizeProp = background().properties.size;
54
- expect(sizeProp.default).toBe("auto");
55
- });
56
- });
57
-
58
- describe("repeat property", () => {
59
- it("should have correct metadata", () => {
60
- const repeatProp = background().properties.repeat;
61
- expect(repeatProp.default).toBe("no-repeat");
62
- });
63
- });
64
50
  });
65
51
 
66
52
  describe("backgroundColor", () => {
@@ -9,7 +9,7 @@ describe("Image prop test suite", () => {
9
9
  });
10
10
 
11
11
  it("should have a custom title when provided", () => {
12
- const imageProp = image("Custom Image");
12
+ const imageProp = image({ title: "Custom Image" });
13
13
  expect(imageProp.title).toBe("Custom Image");
14
14
  });
15
15
 
@@ -29,21 +29,15 @@ describe("Image prop test suite", () => {
29
29
  });
30
30
 
31
31
  it("should show image search when specified", () => {
32
- const imageProp = image("Image", { showImgSearch: true });
32
+ const imageProp = image({ showImgSearch: true });
33
33
  expect(imageProp["ui:show-img-search"]).toBe(true);
34
34
  });
35
35
 
36
36
  describe("src property", () => {
37
37
  it("should have correct src title", () => {
38
- const imageProp = image("Custom Image");
38
+ const imageProp = image({ title: "Custom Image" });
39
39
  expect(imageProp.properties?.src.title).toBe("Custom Image");
40
40
  });
41
-
42
- it("should have default image URL when specified", () => {
43
- const defaultUrl = "https://example.com/image.jpg";
44
- const imageProp = image("Image", { defaultImageUrl: defaultUrl });
45
- expect(imageProp.properties?.src.default).toBe(defaultUrl);
46
- });
47
41
  });
48
42
 
49
43
  describe("alt property", () => {
@@ -1,31 +1,7 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { string, url, urlOrPageId } from "../string";
2
+ import { url, urlOrPageId } from "../string";
3
3
 
4
4
  describe("String prop test suite", () => {
5
- describe("string", () => {
6
- it("should have the correct title", () => {
7
- const stringProp = string("Test String");
8
- expect(stringProp.title).toBe("Test String");
9
- });
10
-
11
- it("should have the correct default value when provided", () => {
12
- const stringProp = string("Test String", { default: "Default value" });
13
- expect(stringProp.default).toBe("Default value");
14
- });
15
-
16
- it("should apply additional options when provided", () => {
17
- const stringProp = string("Test String", { minLength: 5, maxLength: 10 });
18
- expect(stringProp.minLength).toBe(5);
19
- expect(stringProp.maxLength).toBe(10);
20
- expect(stringProp.default).toBeUndefined();
21
- });
22
-
23
- it("should apply UI field options when provided", () => {
24
- const stringProp = string("Test String", { "ui:field": "textarea" });
25
- expect(stringProp["ui:field"]).toBe("textarea");
26
- });
27
- });
28
-
29
5
  describe("url", () => {
30
6
  it("should have the correct title", () => {
31
7
  const urlProp = url();
@@ -55,7 +31,7 @@ describe("String prop test suite", () => {
55
31
  });
56
32
 
57
33
  it("should have custom title when provided", () => {
58
- const prop = urlOrPageId("Custom Link");
34
+ const prop = urlOrPageId({ title: "Custom Link" });
59
35
  expect(prop.title).toBe("Custom Link");
60
36
  });
61
37
 
@@ -1,6 +1,5 @@
1
1
  import { type StringOptions, Type, type Static } from "@sinclair/typebox";
2
2
  import { StringEnum } from "~/shared/utils/string-enum";
3
- import { typedRef } from "~/shared/utils/typed-ref";
4
3
 
5
4
  type Options = StringOptions & {
6
5
  "ui:no-extra-large-sizes"?: boolean;
@@ -21,10 +20,6 @@ export function fontSize(options: Options = {}) {
21
20
 
22
21
  export type FontSizeSettings = Static<ReturnType<typeof fontSize>>;
23
22
 
24
- export function fontSizeRef(options: Options = {}) {
25
- return typedRef("styles:fontSize", options);
26
- }
27
-
28
23
  export function fontSizeXL(options: Options = {}) {
29
24
  return StringEnum(
30
25
  [
@@ -66,9 +61,6 @@ export function fontSizeXL(options: Options = {}) {
66
61
  },
67
62
  );
68
63
  }
69
- export function fontSizeXLRef(options: Options = {}) {
70
- return typedRef("styles:fontSizeXL", options);
71
- }
72
64
 
73
65
  type TextContentOptions = {
74
66
  showInSettings?: boolean;
@@ -101,7 +93,3 @@ export function textContent({
101
93
  }
102
94
 
103
95
  export type TextContentSettings = Static<ReturnType<typeof textContent>>;
104
-
105
- export function textContentRef(options: TextContentOptions & StringOptions = {}) {
106
- return typedRef("content:text", options);
107
- }
@@ -1,13 +1,14 @@
1
- import type { Static, TObject, TProperties, TSchema } from "@sinclair/typebox";
1
+ import type { Static, TObject, TProperties, TSchema, StaticDecode } from "@sinclair/typebox";
2
2
  import type { BrickManifest } from "~/shared/brick-manifest";
3
3
  import type { Brick } from "~/shared/bricks";
4
4
 
5
5
  export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
6
6
 
7
7
  export type BrickProps<T extends BrickManifest> = {
8
+ // brick: Brick;
8
9
  brick: Omit<Brick, "props" | "mobileProps"> & {
9
- props: Static<T["props"]>;
10
- mobileProps?: Partial<Static<T["props"]>>;
10
+ props: Static<T["props"]> & {};
11
+ mobileProps?: Partial<Static<T["props"]>> & {};
11
12
  };
12
13
  /**
13
14
  * True if we are in the context of the Editor