@mieweb/ui 0.10.0-dev.9 → 0.11.0-dev.0

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 (807) hide show
  1. package/README.md +4 -4
  2. package/agent/mieweb-ui.instructions.md +77 -0
  3. package/dist/CsvBlock-CFXSDPBI.js +9 -0
  4. package/dist/{CsvBlock-UWPMTLE2.js.map → CsvBlock-CFXSDPBI.js.map} +1 -1
  5. package/dist/CsvBlock-RGO7JXHJ.cjs +18 -0
  6. package/dist/{CsvBlock-ROJCKJDP.cjs.map → CsvBlock-RGO7JXHJ.cjs.map} +1 -1
  7. package/dist/HtmlPreviewBlock-VBYXCXVT.cjs +18 -0
  8. package/dist/{HtmlPreviewBlock-DWFN6EUB.cjs.map → HtmlPreviewBlock-VBYXCXVT.cjs.map} +1 -1
  9. package/dist/HtmlPreviewBlock-Z2GCK325.js +9 -0
  10. package/dist/{HtmlPreviewBlock-ME5U3XNS.js.map → HtmlPreviewBlock-Z2GCK325.js.map} +1 -1
  11. package/dist/MermaidBlock-I2R2BQOX.cjs +18 -0
  12. package/dist/{MermaidBlock-D2UC5M55.cjs.map → MermaidBlock-I2R2BQOX.cjs.map} +1 -1
  13. package/dist/MermaidBlock-XCAK7IA5.js +9 -0
  14. package/dist/{MermaidBlock-2B6CPD6Y.js.map → MermaidBlock-XCAK7IA5.js.map} +1 -1
  15. package/dist/SurveyBlock-KI5JOWCL.js +9 -0
  16. package/dist/{SurveyBlock-4DO62RBT.js.map → SurveyBlock-KI5JOWCL.js.map} +1 -1
  17. package/dist/SurveyBlock-UKSGISRT.cjs +18 -0
  18. package/dist/{SurveyBlock-4CD4AYMJ.cjs.map → SurveyBlock-UKSGISRT.cjs.map} +1 -1
  19. package/dist/ag-grid.d.cts +142 -1
  20. package/dist/ag-grid.d.ts +142 -1
  21. package/dist/brands/bluehive.cjs +3 -3
  22. package/dist/brands/bluehive.css +3 -0
  23. package/dist/brands/bluehive.js +1 -1
  24. package/dist/brands/index.cjs +17 -17
  25. package/dist/brands/index.js +4 -4
  26. package/dist/{chunk-JYZW2PZS.cjs → chunk-254QK722.cjs} +7 -7
  27. package/dist/chunk-254QK722.cjs.map +1 -0
  28. package/dist/{chunk-4IS3QCOQ.cjs → chunk-2FZYZ4HT.cjs} +4 -3
  29. package/dist/chunk-2FZYZ4HT.cjs.map +1 -0
  30. package/dist/{chunk-VPIYTQCV.cjs → chunk-2I4IRQQG.cjs} +12 -5
  31. package/dist/chunk-2I4IRQQG.cjs.map +1 -0
  32. package/dist/{chunk-IT775BYG.js → chunk-2W73UQ3T.js} +4 -3
  33. package/dist/chunk-2W73UQ3T.js.map +1 -0
  34. package/dist/chunk-2X54ZLT6.js +874 -0
  35. package/dist/chunk-2X54ZLT6.js.map +1 -0
  36. package/dist/{chunk-5MCBWTIF.cjs → chunk-32ZCJOSR.cjs} +4 -4
  37. package/dist/{chunk-5MCBWTIF.cjs.map → chunk-32ZCJOSR.cjs.map} +1 -1
  38. package/dist/{chunk-WNJRS7Y7.cjs → chunk-3ZWCIPFT.cjs} +4 -2
  39. package/dist/chunk-3ZWCIPFT.cjs.map +1 -0
  40. package/dist/chunk-434L5RYF.js +314 -0
  41. package/dist/chunk-434L5RYF.js.map +1 -0
  42. package/dist/{chunk-TPWKM7JH.js → chunk-43K7OQ3E.js} +3 -3
  43. package/dist/{chunk-TPWKM7JH.js.map → chunk-43K7OQ3E.js.map} +1 -1
  44. package/dist/chunk-47P5QLX4.cjs +42 -0
  45. package/dist/chunk-47P5QLX4.cjs.map +1 -0
  46. package/dist/{chunk-CR2SDI23.cjs → chunk-4QYYWYFD.cjs} +8 -7
  47. package/dist/chunk-4QYYWYFD.cjs.map +1 -0
  48. package/dist/{chunk-76TBQDED.js → chunk-4RI3CQGE.js} +6 -6
  49. package/dist/{chunk-76TBQDED.js.map → chunk-4RI3CQGE.js.map} +1 -1
  50. package/dist/chunk-4ZB7RSMY.cjs +306 -0
  51. package/dist/chunk-4ZB7RSMY.cjs.map +1 -0
  52. package/dist/chunk-522WJIVI.js +99 -0
  53. package/dist/chunk-522WJIVI.js.map +1 -0
  54. package/dist/chunk-56VTM4OX.js +261 -0
  55. package/dist/chunk-56VTM4OX.js.map +1 -0
  56. package/dist/chunk-5HKZR6UG.js +248 -0
  57. package/dist/chunk-5HKZR6UG.js.map +1 -0
  58. package/dist/chunk-6BNZLN4B.cjs +548 -0
  59. package/dist/chunk-6BNZLN4B.cjs.map +1 -0
  60. package/dist/chunk-6N7NMOSV.js +233 -0
  61. package/dist/chunk-6N7NMOSV.js.map +1 -0
  62. package/dist/chunk-6TTCZY3P.cjs +4 -0
  63. package/dist/chunk-6TTCZY3P.cjs.map +1 -0
  64. package/dist/{chunk-YQDA366U.js → chunk-753ENNB6.js} +2 -2
  65. package/dist/{chunk-YQDA366U.js.map → chunk-753ENNB6.js.map} +1 -1
  66. package/dist/{chunk-N6IY47YA.cjs → chunk-7C5W744U.cjs} +8 -8
  67. package/dist/{chunk-N6IY47YA.cjs.map → chunk-7C5W744U.cjs.map} +1 -1
  68. package/dist/chunk-7E46YDOT.cjs +122 -0
  69. package/dist/chunk-7E46YDOT.cjs.map +1 -0
  70. package/dist/chunk-7HUTR6RX.js +178 -0
  71. package/dist/chunk-7HUTR6RX.js.map +1 -0
  72. package/dist/chunk-7IRTD4JT.cjs +61 -0
  73. package/dist/chunk-7IRTD4JT.cjs.map +1 -0
  74. package/dist/{chunk-KZFBQ7GY.js → chunk-7QW6TU4X.js} +3 -3
  75. package/dist/{chunk-KZFBQ7GY.js.map → chunk-7QW6TU4X.js.map} +1 -1
  76. package/dist/{chunk-MWVW4APN.cjs → chunk-7UTBDFFL.cjs} +4 -4
  77. package/dist/{chunk-MWVW4APN.cjs.map → chunk-7UTBDFFL.cjs.map} +1 -1
  78. package/dist/chunk-7WJ6MBF5.cjs +47 -0
  79. package/dist/chunk-7WJ6MBF5.cjs.map +1 -0
  80. package/dist/{chunk-FJ7YPVKV.js → chunk-7X6R3JIA.js} +3 -3
  81. package/dist/{chunk-FJ7YPVKV.js.map → chunk-7X6R3JIA.js.map} +1 -1
  82. package/dist/chunk-A4W5CSK7.cjs +216 -0
  83. package/dist/chunk-A4W5CSK7.cjs.map +1 -0
  84. package/dist/{chunk-2G75X6TS.cjs → chunk-AHHFFXJR.cjs} +3 -3
  85. package/dist/{chunk-2G75X6TS.cjs.map → chunk-AHHFFXJR.cjs.map} +1 -1
  86. package/dist/chunk-AJPFQF3H.cjs +896 -0
  87. package/dist/chunk-AJPFQF3H.cjs.map +1 -0
  88. package/dist/chunk-AMYFRY7K.js +3 -0
  89. package/dist/chunk-AMYFRY7K.js.map +1 -0
  90. package/dist/{chunk-VNYW4C4J.cjs → chunk-ANMX7YDL.cjs} +4 -84
  91. package/dist/chunk-ANMX7YDL.cjs.map +1 -0
  92. package/dist/chunk-ARIJ5OHW.cjs +139 -0
  93. package/dist/chunk-ARIJ5OHW.cjs.map +1 -0
  94. package/dist/{chunk-GD7EBGC4.cjs → chunk-ATRW3J5Z.cjs} +49 -19
  95. package/dist/chunk-ATRW3J5Z.cjs.map +1 -0
  96. package/dist/chunk-BJ6ABRSQ.cjs +256 -0
  97. package/dist/chunk-BJ6ABRSQ.cjs.map +1 -0
  98. package/dist/{chunk-G3JX3UAU.cjs → chunk-BWSZ2BHJ.cjs} +6 -6
  99. package/dist/{chunk-G3JX3UAU.cjs.map → chunk-BWSZ2BHJ.cjs.map} +1 -1
  100. package/dist/chunk-BXRQ6HEP.cjs +4 -0
  101. package/dist/chunk-BXRQ6HEP.cjs.map +1 -0
  102. package/dist/chunk-CBBKWRLG.js +213 -0
  103. package/dist/chunk-CBBKWRLG.js.map +1 -0
  104. package/dist/{chunk-UAMXCMST.cjs → chunk-CFI3TQMA.cjs} +3 -3
  105. package/dist/{chunk-UAMXCMST.cjs.map → chunk-CFI3TQMA.cjs.map} +1 -1
  106. package/dist/chunk-CLQW724U.cjs +271 -0
  107. package/dist/chunk-CLQW724U.cjs.map +1 -0
  108. package/dist/chunk-CPDNX3LS.cjs +47 -0
  109. package/dist/chunk-CPDNX3LS.cjs.map +1 -0
  110. package/dist/chunk-CVNPNZMX.js +44 -0
  111. package/dist/chunk-CVNPNZMX.js.map +1 -0
  112. package/dist/chunk-DGHS5IVD.js +305 -0
  113. package/dist/chunk-DGHS5IVD.js.map +1 -0
  114. package/dist/chunk-DHGCLPFZ.js +91 -0
  115. package/dist/chunk-DHGCLPFZ.js.map +1 -0
  116. package/dist/chunk-DO2YN46R.cjs +201 -0
  117. package/dist/chunk-DO2YN46R.cjs.map +1 -0
  118. package/dist/chunk-DVDT7TX7.js +151 -0
  119. package/dist/chunk-DVDT7TX7.js.map +1 -0
  120. package/dist/chunk-DXEPYK3I.cjs +92 -0
  121. package/dist/chunk-DXEPYK3I.cjs.map +1 -0
  122. package/dist/chunk-DXFP53KF.js +283 -0
  123. package/dist/chunk-DXFP53KF.js.map +1 -0
  124. package/dist/chunk-EACNRR3C.cjs +4 -0
  125. package/dist/chunk-EACNRR3C.cjs.map +1 -0
  126. package/dist/{chunk-TVTIGV7Q.js → chunk-EBKE4DLU.js} +18 -11
  127. package/dist/chunk-EBKE4DLU.js.map +1 -0
  128. package/dist/{chunk-ASSDGS4F.cjs → chunk-ECYIDXG6.cjs} +254 -4
  129. package/dist/chunk-ECYIDXG6.cjs.map +1 -0
  130. package/dist/chunk-EGPDT7SM.js +195 -0
  131. package/dist/chunk-EGPDT7SM.js.map +1 -0
  132. package/dist/chunk-EPCUPHEO.js +193 -0
  133. package/dist/chunk-EPCUPHEO.js.map +1 -0
  134. package/dist/{chunk-7ZXAQTV4.cjs → chunk-ERACGSDY.cjs} +8 -8
  135. package/dist/{chunk-7ZXAQTV4.cjs.map → chunk-ERACGSDY.cjs.map} +1 -1
  136. package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
  137. package/dist/chunk-F4N67NAF.js.map +1 -0
  138. package/dist/{chunk-WGPLUCBD.js → chunk-F6W62K4J.js} +4 -4
  139. package/dist/{chunk-WGPLUCBD.js.map → chunk-F6W62K4J.js.map} +1 -1
  140. package/dist/{chunk-XVW5DPPP.js → chunk-F7SZSOB3.js} +4 -3
  141. package/dist/chunk-F7SZSOB3.js.map +1 -0
  142. package/dist/chunk-FBCDYTWM.js +385 -0
  143. package/dist/chunk-FBCDYTWM.js.map +1 -0
  144. package/dist/{chunk-KQUI4BGS.cjs → chunk-FBN2VHUV.cjs} +68 -61
  145. package/dist/chunk-FBN2VHUV.cjs.map +1 -0
  146. package/dist/{chunk-V7D3YGUV.js → chunk-FGLIP6YR.js} +4 -4
  147. package/dist/{chunk-V7D3YGUV.js.map → chunk-FGLIP6YR.js.map} +1 -1
  148. package/dist/{chunk-VU6UTJRM.js → chunk-FIKO4WR6.js} +3 -3
  149. package/dist/{chunk-VU6UTJRM.js.map → chunk-FIKO4WR6.js.map} +1 -1
  150. package/dist/{chunk-OD47TTAW.cjs → chunk-FMEA6WAY.cjs} +9 -9
  151. package/dist/{chunk-OD47TTAW.cjs.map → chunk-FMEA6WAY.cjs.map} +1 -1
  152. package/dist/chunk-FSGJXCBG.cjs +318 -0
  153. package/dist/chunk-FSGJXCBG.cjs.map +1 -0
  154. package/dist/chunk-FSWHZY3T.cjs +328 -0
  155. package/dist/chunk-FSWHZY3T.cjs.map +1 -0
  156. package/dist/chunk-FTEZNCRI.js +29 -0
  157. package/dist/chunk-FTEZNCRI.js.map +1 -0
  158. package/dist/{chunk-YVPC65ZJ.cjs → chunk-GF2BE4FB.cjs} +91 -32
  159. package/dist/chunk-GF2BE4FB.cjs.map +1 -0
  160. package/dist/{chunk-JEIW7BSV.cjs → chunk-GKDHMNUA.cjs} +2 -52
  161. package/dist/chunk-GKDHMNUA.cjs.map +1 -0
  162. package/dist/{chunk-URAQIF67.cjs → chunk-GM32IDVL.cjs} +6 -6
  163. package/dist/{chunk-URAQIF67.cjs.map → chunk-GM32IDVL.cjs.map} +1 -1
  164. package/dist/chunk-GVM6DTR5.js +90 -0
  165. package/dist/chunk-GVM6DTR5.js.map +1 -0
  166. package/dist/{chunk-SQHMGT4W.js → chunk-GW4RFJZ5.js} +7 -7
  167. package/dist/chunk-GW4RFJZ5.js.map +1 -0
  168. package/dist/chunk-GY5SP4ST.js +3 -0
  169. package/dist/chunk-GY5SP4ST.js.map +1 -0
  170. package/dist/{chunk-OCSCBB52.cjs → chunk-GYXSF6BJ.cjs} +10 -10
  171. package/dist/{chunk-OCSCBB52.cjs.map → chunk-GYXSF6BJ.cjs.map} +1 -1
  172. package/dist/chunk-H2Y7HZV5.js +3 -0
  173. package/dist/chunk-H2Y7HZV5.js.map +1 -0
  174. package/dist/chunk-H3P7POFC.cjs +337 -0
  175. package/dist/chunk-H3P7POFC.cjs.map +1 -0
  176. package/dist/{chunk-JID7AZTO.cjs → chunk-H3ROMJYI.cjs} +4 -4
  177. package/dist/{chunk-JID7AZTO.cjs.map → chunk-H3ROMJYI.cjs.map} +1 -1
  178. package/dist/{chunk-462XSCP3.cjs → chunk-HCIXGFWR.cjs} +4 -4
  179. package/dist/{chunk-462XSCP3.cjs.map → chunk-HCIXGFWR.cjs.map} +1 -1
  180. package/dist/{chunk-H4ZXMQQW.js → chunk-HDY7YQFX.js} +3 -3
  181. package/dist/{chunk-H4ZXMQQW.js.map → chunk-HDY7YQFX.js.map} +1 -1
  182. package/dist/chunk-HNFFFFYH.cjs +114 -0
  183. package/dist/chunk-HNFFFFYH.cjs.map +1 -0
  184. package/dist/chunk-HNXLLDPN.js +25 -0
  185. package/dist/chunk-HNXLLDPN.js.map +1 -0
  186. package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
  187. package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
  188. package/dist/chunk-IEZXJWHJ.cjs +306 -0
  189. package/dist/chunk-IEZXJWHJ.cjs.map +1 -0
  190. package/dist/{chunk-3QEVGSFG.cjs → chunk-IGDO62KR.cjs} +5 -5
  191. package/dist/{chunk-3QEVGSFG.cjs.map → chunk-IGDO62KR.cjs.map} +1 -1
  192. package/dist/{chunk-N5O47VGS.cjs → chunk-IVGI353O.cjs} +2 -2
  193. package/dist/{chunk-N5O47VGS.cjs.map → chunk-IVGI353O.cjs.map} +1 -1
  194. package/dist/chunk-IWRBJHO3.cjs +51 -0
  195. package/dist/chunk-IWRBJHO3.cjs.map +1 -0
  196. package/dist/{chunk-2IZLKPUW.js → chunk-J2CKXXOW.js} +27 -6
  197. package/dist/chunk-J2CKXXOW.js.map +1 -0
  198. package/dist/{chunk-VILW53UZ.js → chunk-JMAZ2GKT.js} +3 -3
  199. package/dist/{chunk-VILW53UZ.js.map → chunk-JMAZ2GKT.js.map} +1 -1
  200. package/dist/{chunk-WWJIW2IH.cjs → chunk-JSXIB6EJ.cjs} +4 -4
  201. package/dist/{chunk-WWJIW2IH.cjs.map → chunk-JSXIB6EJ.cjs.map} +1 -1
  202. package/dist/{chunk-KRU6IGV7.js → chunk-JUJGWUAN.js} +28 -6
  203. package/dist/chunk-JUJGWUAN.js.map +1 -0
  204. package/dist/{chunk-FXO5ARBB.cjs → chunk-KDW6BD4O.cjs} +4 -4
  205. package/dist/{chunk-FXO5ARBB.cjs.map → chunk-KDW6BD4O.cjs.map} +1 -1
  206. package/dist/{chunk-Z5V7SAZ4.js → chunk-KFEN2SRZ.js} +3 -3
  207. package/dist/{chunk-Z5V7SAZ4.js.map → chunk-KFEN2SRZ.js.map} +1 -1
  208. package/dist/chunk-KIVEYQGA.cjs +319 -0
  209. package/dist/chunk-KIVEYQGA.cjs.map +1 -0
  210. package/dist/{chunk-XEAT7XJG.cjs → chunk-KQ6GLYFZ.cjs} +29 -13
  211. package/dist/chunk-KQ6GLYFZ.cjs.map +1 -0
  212. package/dist/{chunk-4A3W4TQF.js → chunk-KVTKSPX5.js} +254 -4
  213. package/dist/chunk-KVTKSPX5.js.map +1 -0
  214. package/dist/{chunk-6EN3IQQI.cjs → chunk-L5Y52F2E.cjs} +9 -9
  215. package/dist/chunk-L5Y52F2E.cjs.map +1 -0
  216. package/dist/chunk-L6K4PRZK.cjs +4 -0
  217. package/dist/chunk-L6K4PRZK.cjs.map +1 -0
  218. package/dist/chunk-LAN5VWGC.js +2540 -0
  219. package/dist/chunk-LAN5VWGC.js.map +1 -0
  220. package/dist/{chunk-7ZDPD5ZX.cjs → chunk-LC3JL2HB.cjs} +11 -7
  221. package/dist/chunk-LC3JL2HB.cjs.map +1 -0
  222. package/dist/chunk-LRAAJRE7.cjs +2707 -0
  223. package/dist/chunk-LRAAJRE7.cjs.map +1 -0
  224. package/dist/{chunk-OE5CKRUC.js → chunk-LX323IMT.js} +34 -4
  225. package/dist/chunk-LX323IMT.js.map +1 -0
  226. package/dist/chunk-M3VPGJMV.js +283 -0
  227. package/dist/chunk-M3VPGJMV.js.map +1 -0
  228. package/dist/{chunk-DVOQ3JNO.js → chunk-ME7EVT6F.js} +23 -9
  229. package/dist/chunk-ME7EVT6F.js.map +1 -0
  230. package/dist/{chunk-SQJFBZ42.js → chunk-MUYUFOGL.js} +8 -7
  231. package/dist/chunk-MUYUFOGL.js.map +1 -0
  232. package/dist/{chunk-VKELAMAZ.js → chunk-N54FYWG6.js} +27 -11
  233. package/dist/chunk-N54FYWG6.js.map +1 -0
  234. package/dist/chunk-N5JDL4VE.js +3 -0
  235. package/dist/chunk-N5JDL4VE.js.map +1 -0
  236. package/dist/{chunk-ZPSJ2UV6.cjs → chunk-NAH65KPK.cjs} +8 -8
  237. package/dist/{chunk-ZPSJ2UV6.cjs.map → chunk-NAH65KPK.cjs.map} +1 -1
  238. package/dist/{chunk-PYJDVWXM.js → chunk-NUB5HRKS.js} +3 -3
  239. package/dist/{chunk-PYJDVWXM.js.map → chunk-NUB5HRKS.js.map} +1 -1
  240. package/dist/{chunk-WNZAYBVB.cjs → chunk-O6BJMVGT.cjs} +48 -48
  241. package/dist/{chunk-WNZAYBVB.cjs.map → chunk-O6BJMVGT.cjs.map} +1 -1
  242. package/dist/{chunk-SVSHA7XV.js → chunk-O6XDA3SI.js} +31 -33
  243. package/dist/chunk-O6XDA3SI.js.map +1 -0
  244. package/dist/chunk-OIF34LEN.cjs +425 -0
  245. package/dist/chunk-OIF34LEN.cjs.map +1 -0
  246. package/dist/{chunk-J5CSLNCN.cjs → chunk-OODVC2UD.cjs} +2 -2
  247. package/dist/{chunk-J5CSLNCN.cjs.map → chunk-OODVC2UD.cjs.map} +1 -1
  248. package/dist/{chunk-LL6IWKI3.js → chunk-OW3SQJ7P.js} +3 -3
  249. package/dist/{chunk-LL6IWKI3.js.map → chunk-OW3SQJ7P.js.map} +1 -1
  250. package/dist/{chunk-ZGRCSNPK.js → chunk-OYUIEJPN.js} +17 -8
  251. package/dist/chunk-OYUIEJPN.js.map +1 -0
  252. package/dist/chunk-P22YCUVM.cjs +4 -0
  253. package/dist/chunk-P22YCUVM.cjs.map +1 -0
  254. package/dist/{chunk-CEQJGUAS.js → chunk-P4E3K3ND.js} +12 -5
  255. package/dist/chunk-P4E3K3ND.js.map +1 -0
  256. package/dist/{chunk-TMMVIUUN.js → chunk-P7D7BYFE.js} +4 -4
  257. package/dist/{chunk-TMMVIUUN.js.map → chunk-P7D7BYFE.js.map} +1 -1
  258. package/dist/{chunk-SGFYA22I.cjs → chunk-PINIBEIU.cjs} +21 -12
  259. package/dist/chunk-PINIBEIU.cjs.map +1 -0
  260. package/dist/{chunk-3T7QGLNB.js → chunk-PJEL5ZZV.js} +4 -2
  261. package/dist/chunk-PJEL5ZZV.js.map +1 -0
  262. package/dist/chunk-PWXDRFJL.cjs +218 -0
  263. package/dist/chunk-PWXDRFJL.cjs.map +1 -0
  264. package/dist/{chunk-XZNN3S3S.cjs → chunk-PYI2IWNX.cjs} +4 -4
  265. package/dist/{chunk-XZNN3S3S.cjs.map → chunk-PYI2IWNX.cjs.map} +1 -1
  266. package/dist/chunk-Q3YVLO52.cjs +174 -0
  267. package/dist/chunk-Q3YVLO52.cjs.map +1 -0
  268. package/dist/{chunk-MNILXWVY.js → chunk-QJ2L5RU6.js} +7 -7
  269. package/dist/{chunk-MNILXWVY.js.map → chunk-QJ2L5RU6.js.map} +1 -1
  270. package/dist/{chunk-X4LBUPJO.cjs → chunk-QX6AAVDE.cjs} +31 -33
  271. package/dist/chunk-QX6AAVDE.cjs.map +1 -0
  272. package/dist/{chunk-UV2FVNWT.cjs → chunk-RIUQP2QS.cjs} +5 -5
  273. package/dist/{chunk-UV2FVNWT.cjs.map → chunk-RIUQP2QS.cjs.map} +1 -1
  274. package/dist/chunk-RLVYWUXG.js +115 -0
  275. package/dist/chunk-RLVYWUXG.js.map +1 -0
  276. package/dist/{chunk-HACNIFO3.js → chunk-RM2HPQIC.js} +77 -14
  277. package/dist/chunk-RM2HPQIC.js.map +1 -0
  278. package/dist/{chunk-DEDN5HAG.js → chunk-RSJGTWLM.js} +3 -3
  279. package/dist/{chunk-DEDN5HAG.js.map → chunk-RSJGTWLM.js.map} +1 -1
  280. package/dist/{chunk-G4D6CLBT.js → chunk-RZSSQ7AT.js} +3 -3
  281. package/dist/{chunk-G4D6CLBT.js.map → chunk-RZSSQ7AT.js.map} +1 -1
  282. package/dist/{chunk-ENKFJJZX.js → chunk-S2JZL4JC.js} +6 -6
  283. package/dist/{chunk-ENKFJJZX.js.map → chunk-S2JZL4JC.js.map} +1 -1
  284. package/dist/{chunk-P7UMS4E6.cjs → chunk-S7AMZ4RD.cjs} +23 -9
  285. package/dist/chunk-S7AMZ4RD.cjs.map +1 -0
  286. package/dist/{chunk-VROIMIHB.cjs → chunk-SHBCUXFS.cjs} +28 -6
  287. package/dist/chunk-SHBCUXFS.cjs.map +1 -0
  288. package/dist/{chunk-RJ6NTJHC.js → chunk-SRMTRD7F.js} +3 -3
  289. package/dist/{chunk-RJ6NTJHC.js.map → chunk-SRMTRD7F.js.map} +1 -1
  290. package/dist/{chunk-IX6KFB3K.cjs → chunk-SW2E7XKY.cjs} +9 -9
  291. package/dist/{chunk-IX6KFB3K.cjs.map → chunk-SW2E7XKY.cjs.map} +1 -1
  292. package/dist/chunk-SZSRGUVO.js +402 -0
  293. package/dist/chunk-SZSRGUVO.js.map +1 -0
  294. package/dist/{chunk-NJ6MY6V5.js → chunk-T5BBZQ66.js} +3 -3
  295. package/dist/{chunk-NJ6MY6V5.js.map → chunk-T5BBZQ66.js.map} +1 -1
  296. package/dist/{chunk-HZ4MBUC3.js → chunk-TI3TQQ7F.js} +4 -53
  297. package/dist/chunk-TI3TQQ7F.js.map +1 -0
  298. package/dist/{chunk-ACCAXVOG.js → chunk-TJ4GWQPM.js} +137 -57
  299. package/dist/chunk-TJ4GWQPM.js.map +1 -0
  300. package/dist/{chunk-5JJ2DAE4.js → chunk-TWQSMUE6.js} +7 -3
  301. package/dist/chunk-TWQSMUE6.js.map +1 -0
  302. package/dist/{chunk-X4XPNTCZ.cjs → chunk-U2RS574O.cjs} +139 -59
  303. package/dist/chunk-U2RS574O.cjs.map +1 -0
  304. package/dist/{chunk-TAXD5ADA.cjs → chunk-UEDTZYGI.cjs} +3 -3
  305. package/dist/{chunk-TAXD5ADA.cjs.map → chunk-UEDTZYGI.cjs.map} +1 -1
  306. package/dist/{chunk-3QGS6CXD.js → chunk-UJDWFDKE.js} +3 -3
  307. package/dist/{chunk-3QGS6CXD.js.map → chunk-UJDWFDKE.js.map} +1 -1
  308. package/dist/{chunk-DZ5HFLRC.js → chunk-UNFDIBKJ.js} +3 -3
  309. package/dist/{chunk-DZ5HFLRC.js.map → chunk-UNFDIBKJ.js.map} +1 -1
  310. package/dist/{chunk-UQ3VVR6A.cjs → chunk-UPWIJC6I.cjs} +3 -3
  311. package/dist/{chunk-UQ3VVR6A.cjs.map → chunk-UPWIJC6I.cjs.map} +1 -1
  312. package/dist/chunk-UTIPENPW.cjs +286 -0
  313. package/dist/chunk-UTIPENPW.cjs.map +1 -0
  314. package/dist/{chunk-S7WCHDBO.js → chunk-VCI2Y7ST.js} +3 -3
  315. package/dist/{chunk-S7WCHDBO.js.map → chunk-VCI2Y7ST.js.map} +1 -1
  316. package/dist/{chunk-Y5HFM7LO.js → chunk-VOEXGDL5.js} +6 -6
  317. package/dist/chunk-VOEXGDL5.js.map +1 -0
  318. package/dist/{chunk-P2CA3XGI.js → chunk-VSRO4PAI.js} +23 -5
  319. package/dist/chunk-VSRO4PAI.js.map +1 -0
  320. package/dist/{chunk-L6MDULYB.js → chunk-VU3ZMJBN.js} +2 -2
  321. package/dist/{chunk-L6MDULYB.js.map → chunk-VU3ZMJBN.js.map} +1 -1
  322. package/dist/{chunk-XI34EGK5.cjs → chunk-VV2U36T6.cjs} +9 -9
  323. package/dist/{chunk-XI34EGK5.cjs.map → chunk-VV2U36T6.cjs.map} +1 -1
  324. package/dist/{chunk-VPWJCJCX.cjs → chunk-VXW7D5LR.cjs} +26 -8
  325. package/dist/chunk-VXW7D5LR.cjs.map +1 -0
  326. package/dist/{chunk-GOALNQZ2.js → chunk-WFBUBT54.js} +4 -83
  327. package/dist/chunk-WFBUBT54.js.map +1 -0
  328. package/dist/chunk-WQHBMZSC.js +295 -0
  329. package/dist/chunk-WQHBMZSC.js.map +1 -0
  330. package/dist/chunk-WSMBIXPU.cjs +2573 -0
  331. package/dist/chunk-WSMBIXPU.cjs.map +1 -0
  332. package/dist/chunk-X5JOEZVR.js +525 -0
  333. package/dist/chunk-X5JOEZVR.js.map +1 -0
  334. package/dist/chunk-XBAAHOCP.js +3 -0
  335. package/dist/chunk-XBAAHOCP.js.map +1 -0
  336. package/dist/chunk-XDU65GLW.js +21 -0
  337. package/dist/chunk-XDU65GLW.js.map +1 -0
  338. package/dist/{chunk-5GUOOLPR.cjs → chunk-XHK5VZ4L.cjs} +29 -8
  339. package/dist/chunk-XHK5VZ4L.cjs.map +1 -0
  340. package/dist/chunk-XI74P5F2.cjs +424 -0
  341. package/dist/chunk-XI74P5F2.cjs.map +1 -0
  342. package/dist/chunk-XNPDZANN.cjs +238 -0
  343. package/dist/chunk-XNPDZANN.cjs.map +1 -0
  344. package/dist/{chunk-XDIMTPZU.cjs → chunk-XPWFIDZM.cjs} +4 -3
  345. package/dist/chunk-XPWFIDZM.cjs.map +1 -0
  346. package/dist/{chunk-FS4VZUFV.cjs → chunk-XRVMYT5G.cjs} +77 -13
  347. package/dist/chunk-XRVMYT5G.cjs.map +1 -0
  348. package/dist/chunk-XXA4NZUC.js +3 -0
  349. package/dist/chunk-XXA4NZUC.js.map +1 -0
  350. package/dist/chunk-Y424YL55.js +59 -0
  351. package/dist/chunk-Y424YL55.js.map +1 -0
  352. package/dist/chunk-Y7ZJZLJY.js +2657 -0
  353. package/dist/chunk-Y7ZJZLJY.js.map +1 -0
  354. package/dist/chunk-YG7BR76Y.js +281 -0
  355. package/dist/chunk-YG7BR76Y.js.map +1 -0
  356. package/dist/chunk-YGS2TRMP.js +38 -0
  357. package/dist/chunk-YGS2TRMP.js.map +1 -0
  358. package/dist/chunk-YUMOM3KE.js +167 -0
  359. package/dist/chunk-YUMOM3KE.js.map +1 -0
  360. package/dist/chunk-YVKBXNPK.js +41 -0
  361. package/dist/chunk-YVKBXNPK.js.map +1 -0
  362. package/dist/chunk-YW2AKBLS.cjs +23 -0
  363. package/dist/chunk-YW2AKBLS.cjs.map +1 -0
  364. package/dist/{chunk-3M7TAXNR.js → chunk-YZCM7CXK.js} +3 -3
  365. package/dist/{chunk-3M7TAXNR.js.map → chunk-YZCM7CXK.js.map} +1 -1
  366. package/dist/chunk-Z3WMDVMR.cjs +46 -0
  367. package/dist/chunk-Z3WMDVMR.cjs.map +1 -0
  368. package/dist/chunk-ZNUMOJOI.cjs +4 -0
  369. package/dist/chunk-ZNUMOJOI.cjs.map +1 -0
  370. package/dist/components/Accordion/index.cjs +2 -2
  371. package/dist/components/Accordion/index.d.cts +6 -0
  372. package/dist/components/Accordion/index.d.ts +6 -0
  373. package/dist/components/Accordion/index.js +1 -1
  374. package/dist/components/ActionPlan/index.cjs +34 -0
  375. package/dist/components/ActionPlan/index.cjs.map +1 -0
  376. package/dist/components/ActionPlan/index.d.cts +65 -0
  377. package/dist/components/ActionPlan/index.d.ts +65 -0
  378. package/dist/components/ActionPlan/index.js +21 -0
  379. package/dist/components/ActionPlan/index.js.map +1 -0
  380. package/dist/components/ActivityFeed/index.cjs +31 -0
  381. package/dist/components/ActivityFeed/index.cjs.map +1 -0
  382. package/dist/components/ActivityFeed/index.d.cts +99 -0
  383. package/dist/components/ActivityFeed/index.d.ts +99 -0
  384. package/dist/components/ActivityFeed/index.js +18 -0
  385. package/dist/components/ActivityFeed/index.js.map +1 -0
  386. package/dist/components/Alert/index.d.cts +1 -1
  387. package/dist/components/Alert/index.d.ts +1 -1
  388. package/dist/components/AlertDialog/index.cjs +19 -5
  389. package/dist/components/AlertDialog/index.d.cts +94 -16
  390. package/dist/components/AlertDialog/index.d.ts +94 -16
  391. package/dist/components/AlertDialog/index.js +6 -4
  392. package/dist/components/AssociationList/index.cjs +29 -0
  393. package/dist/components/AssociationList/index.cjs.map +1 -0
  394. package/dist/components/AssociationList/index.d.cts +50 -0
  395. package/dist/components/AssociationList/index.d.ts +50 -0
  396. package/dist/components/AssociationList/index.js +16 -0
  397. package/dist/components/AssociationList/index.js.map +1 -0
  398. package/dist/components/AudioRecorder/index.d.cts +2 -2
  399. package/dist/components/AudioRecorder/index.d.ts +2 -2
  400. package/dist/components/Autocomplete/index.d.cts +8 -2
  401. package/dist/components/Autocomplete/index.d.ts +8 -2
  402. package/dist/components/Avatar/index.cjs +9 -7
  403. package/dist/components/Avatar/index.d.cts +46 -15
  404. package/dist/components/Avatar/index.d.ts +46 -15
  405. package/dist/components/Avatar/index.js +3 -1
  406. package/dist/components/AvatarGroup/index.cjs +20 -0
  407. package/dist/components/AvatarGroup/index.cjs.map +1 -0
  408. package/dist/components/AvatarGroup/index.d.cts +57 -0
  409. package/dist/components/AvatarGroup/index.d.ts +57 -0
  410. package/dist/components/AvatarGroup/index.js +7 -0
  411. package/dist/components/AvatarGroup/index.js.map +1 -0
  412. package/dist/components/Badge/index.cjs +3 -3
  413. package/dist/components/Badge/index.d.cts +16 -2
  414. package/dist/components/Badge/index.d.ts +16 -2
  415. package/dist/components/Badge/index.js +1 -1
  416. package/dist/components/BoardView/index.cjs +5 -4
  417. package/dist/components/BoardView/index.d.cts +2 -3
  418. package/dist/components/BoardView/index.d.ts +2 -3
  419. package/dist/components/BoardView/index.js +2 -1
  420. package/dist/components/Button/index.cjs +5 -3
  421. package/dist/components/Button/index.d.cts +2 -1
  422. package/dist/components/Button/index.d.ts +2 -1
  423. package/dist/components/Button/index.js +3 -1
  424. package/dist/components/CalendarHeatmap/index.cjs +18 -0
  425. package/dist/components/CalendarHeatmap/index.cjs.map +1 -0
  426. package/dist/components/CalendarHeatmap/index.d.cts +47 -0
  427. package/dist/components/CalendarHeatmap/index.d.ts +47 -0
  428. package/dist/components/CalendarHeatmap/index.js +5 -0
  429. package/dist/components/CalendarHeatmap/index.js.map +1 -0
  430. package/dist/components/CalendarView/index.cjs +6 -4
  431. package/dist/components/CalendarView/index.d.cts +1 -2
  432. package/dist/components/CalendarView/index.d.ts +1 -2
  433. package/dist/components/CalendarView/index.js +4 -2
  434. package/dist/components/Card/index.d.cts +3 -3
  435. package/dist/components/Card/index.d.ts +3 -3
  436. package/dist/components/ClampedText/index.cjs +3 -2
  437. package/dist/components/ClampedText/index.js +2 -1
  438. package/dist/components/CollabStatus/index.cjs +6 -4
  439. package/dist/components/CollabStatus/index.d.cts +11 -0
  440. package/dist/components/CollabStatus/index.d.ts +11 -0
  441. package/dist/components/CollabStatus/index.js +3 -1
  442. package/dist/components/Collapsible/index.cjs +6 -6
  443. package/dist/components/Collapsible/index.d.cts +6 -0
  444. package/dist/components/Collapsible/index.d.ts +6 -0
  445. package/dist/components/Collapsible/index.js +3 -3
  446. package/dist/components/CompletenessMeter/index.cjs +23 -0
  447. package/dist/components/CompletenessMeter/index.cjs.map +1 -0
  448. package/dist/components/CompletenessMeter/index.d.cts +52 -0
  449. package/dist/components/CompletenessMeter/index.d.ts +52 -0
  450. package/dist/components/CompletenessMeter/index.js +6 -0
  451. package/dist/components/CompletenessMeter/index.js.map +1 -0
  452. package/dist/components/CountryCodeDropdown/index.cjs +5 -5
  453. package/dist/components/CountryCodeDropdown/index.js +2 -2
  454. package/dist/components/CustomizableDashboard/index.cjs +12 -10
  455. package/dist/components/CustomizableDashboard/index.js +5 -3
  456. package/dist/components/DateInput/index.d.cts +36 -4
  457. package/dist/components/DateInput/index.d.ts +36 -4
  458. package/dist/components/Dropdown/index.cjs +12 -10
  459. package/dist/components/Dropdown/index.d.cts +6 -4
  460. package/dist/components/Dropdown/index.d.ts +6 -4
  461. package/dist/components/Dropdown/index.js +5 -3
  462. package/dist/components/EmailEditor/index.cjs +68 -0
  463. package/dist/components/EmailEditor/index.cjs.map +1 -0
  464. package/dist/components/EmailEditor/index.d.cts +347 -0
  465. package/dist/components/EmailEditor/index.d.ts +347 -0
  466. package/dist/components/EmailEditor/index.js +27 -0
  467. package/dist/components/EmailEditor/index.js.map +1 -0
  468. package/dist/components/FieldHistory/index.cjs +34 -0
  469. package/dist/components/FieldHistory/index.cjs.map +1 -0
  470. package/dist/components/FieldHistory/index.d.cts +66 -0
  471. package/dist/components/FieldHistory/index.d.ts +66 -0
  472. package/dist/components/FieldHistory/index.js +21 -0
  473. package/dist/components/FieldHistory/index.js.map +1 -0
  474. package/dist/components/FloatingWindow/index.cjs +6 -4
  475. package/dist/components/FloatingWindow/index.js +4 -2
  476. package/dist/components/GanttView/index.d.cts +1 -2
  477. package/dist/components/GanttView/index.d.ts +1 -2
  478. package/dist/components/GlossaryTooltip/index.cjs +3 -3
  479. package/dist/components/GlossaryTooltip/index.js +2 -2
  480. package/dist/components/InlineEdit/index.cjs +20 -0
  481. package/dist/components/InlineEdit/index.cjs.map +1 -0
  482. package/dist/components/InlineEdit/index.d.cts +56 -0
  483. package/dist/components/InlineEdit/index.d.ts +56 -0
  484. package/dist/components/InlineEdit/index.js +7 -0
  485. package/dist/components/InlineEdit/index.js.map +1 -0
  486. package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
  487. package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
  488. package/dist/components/ListView/index.cjs +6 -4
  489. package/dist/components/ListView/index.d.cts +91 -4
  490. package/dist/components/ListView/index.d.ts +91 -4
  491. package/dist/components/ListView/index.js +4 -2
  492. package/dist/components/LogoUploader/index.cjs +18 -0
  493. package/dist/components/LogoUploader/index.cjs.map +1 -0
  494. package/dist/components/LogoUploader/index.d.cts +49 -0
  495. package/dist/components/LogoUploader/index.d.ts +49 -0
  496. package/dist/components/LogoUploader/index.js +5 -0
  497. package/dist/components/LogoUploader/index.js.map +1 -0
  498. package/dist/components/Markdown/index.cjs +21 -19
  499. package/dist/components/Markdown/index.js +9 -7
  500. package/dist/components/MediaEditor/index.cjs +16 -14
  501. package/dist/components/MediaEditor/index.d.cts +91 -2
  502. package/dist/components/MediaEditor/index.d.ts +91 -2
  503. package/dist/components/MediaEditor/index.js +11 -9
  504. package/dist/components/MediaFeed/index.cjs +29 -0
  505. package/dist/components/MediaFeed/index.cjs.map +1 -0
  506. package/dist/components/MediaFeed/index.d.cts +104 -0
  507. package/dist/components/MediaFeed/index.d.ts +104 -0
  508. package/dist/components/MediaFeed/index.js +20 -0
  509. package/dist/components/MediaFeed/index.js.map +1 -0
  510. package/dist/components/MediaPlayer/index.cjs +8 -6
  511. package/dist/components/MediaPlayer/index.d.cts +19 -1
  512. package/dist/components/MediaPlayer/index.d.ts +19 -1
  513. package/dist/components/MediaPlayer/index.js +5 -3
  514. package/dist/components/MegaMenu/index.cjs +7 -5
  515. package/dist/components/MegaMenu/index.js +4 -2
  516. package/dist/components/Modal/index.cjs +10 -10
  517. package/dist/components/Modal/index.js +2 -2
  518. package/dist/components/Pagination/index.d.cts +1 -1
  519. package/dist/components/Pagination/index.d.ts +1 -1
  520. package/dist/components/PhiMask/index.cjs +18 -0
  521. package/dist/components/PhiMask/index.cjs.map +1 -0
  522. package/dist/components/PhiMask/index.d.cts +45 -0
  523. package/dist/components/PhiMask/index.d.ts +45 -0
  524. package/dist/components/PhiMask/index.js +5 -0
  525. package/dist/components/PhiMask/index.js.map +1 -0
  526. package/dist/components/Progress/index.cjs +6 -6
  527. package/dist/components/Progress/index.d.cts +8 -2
  528. package/dist/components/Progress/index.d.ts +8 -2
  529. package/dist/components/Progress/index.js +1 -1
  530. package/dist/components/PropertyList/index.cjs +25 -0
  531. package/dist/components/PropertyList/index.cjs.map +1 -0
  532. package/dist/components/PropertyList/index.d.cts +87 -0
  533. package/dist/components/PropertyList/index.d.ts +87 -0
  534. package/dist/components/PropertyList/index.js +12 -0
  535. package/dist/components/PropertyList/index.js.map +1 -0
  536. package/dist/components/Q/index.d.cts +2 -2
  537. package/dist/components/Q/index.d.ts +2 -2
  538. package/dist/components/QuickAction/index.d.cts +1 -1
  539. package/dist/components/QuickAction/index.d.ts +1 -1
  540. package/dist/components/RadialExplorer/index.cjs +7 -5
  541. package/dist/components/RadialExplorer/index.js +6 -4
  542. package/dist/components/Rating/index.cjs +28 -0
  543. package/dist/components/Rating/index.cjs.map +1 -0
  544. package/dist/components/Rating/index.d.cts +85 -0
  545. package/dist/components/Rating/index.d.ts +85 -0
  546. package/dist/components/Rating/index.js +7 -0
  547. package/dist/components/Rating/index.js.map +1 -0
  548. package/dist/components/RecordButton/index.d.cts +1 -1
  549. package/dist/components/RecordButton/index.d.ts +1 -1
  550. package/dist/components/RecordHeader/index.cjs +30 -0
  551. package/dist/components/RecordHeader/index.cjs.map +1 -0
  552. package/dist/components/RecordHeader/index.d.cts +96 -0
  553. package/dist/components/RecordHeader/index.d.ts +96 -0
  554. package/dist/components/RecordHeader/index.js +17 -0
  555. package/dist/components/RecordHeader/index.js.map +1 -0
  556. package/dist/components/RecordLayout/index.cjs +22 -0
  557. package/dist/components/RecordLayout/index.cjs.map +1 -0
  558. package/dist/components/RecordLayout/index.d.cts +40 -0
  559. package/dist/components/RecordLayout/index.d.ts +40 -0
  560. package/dist/components/RecordLayout/index.js +9 -0
  561. package/dist/components/RecordLayout/index.js.map +1 -0
  562. package/dist/components/RichTextEditor/index.cjs +12 -8
  563. package/dist/components/RichTextEditor/index.d.cts +12 -2
  564. package/dist/components/RichTextEditor/index.d.ts +12 -2
  565. package/dist/components/RichTextEditor/index.js +9 -5
  566. package/dist/components/ScrollArea/index.d.cts +1 -1
  567. package/dist/components/ScrollArea/index.d.ts +1 -1
  568. package/dist/components/SectionSpyNav/index.cjs +5 -3
  569. package/dist/components/SectionSpyNav/index.js +4 -2
  570. package/dist/components/Select/index.cjs +4 -4
  571. package/dist/components/Select/index.d.cts +2 -2
  572. package/dist/components/Select/index.d.ts +2 -2
  573. package/dist/components/Select/index.js +2 -2
  574. package/dist/components/Skeleton/index.d.cts +1 -1
  575. package/dist/components/Skeleton/index.d.ts +1 -1
  576. package/dist/components/Slider/index.d.cts +2 -2
  577. package/dist/components/Slider/index.d.ts +2 -2
  578. package/dist/components/SliderCalculator/index.cjs +4 -4
  579. package/dist/components/SliderCalculator/index.js +2 -2
  580. package/dist/components/SourceTip/index.cjs +3 -3
  581. package/dist/components/SourceTip/index.js +2 -2
  582. package/dist/components/Spinner/index.d.cts +2 -2
  583. package/dist/components/Spinner/index.d.ts +2 -2
  584. package/dist/components/SuperChat/index.cjs +735 -322
  585. package/dist/components/SuperChat/index.cjs.map +1 -1
  586. package/dist/components/SuperChat/index.d.cts +126 -8
  587. package/dist/components/SuperChat/index.d.ts +126 -8
  588. package/dist/components/SuperChat/index.js +721 -308
  589. package/dist/components/SuperChat/index.js.map +1 -1
  590. package/dist/components/SuperChat/plugins/index.cjs +8 -6
  591. package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
  592. package/dist/components/SuperChat/plugins/index.d.cts +2 -3
  593. package/dist/components/SuperChat/plugins/index.d.ts +2 -3
  594. package/dist/components/SuperChat/plugins/index.js +7 -5
  595. package/dist/components/SuperChat/plugins/index.js.map +1 -1
  596. package/dist/components/Tabs/index.cjs +10 -7
  597. package/dist/components/Tabs/index.d.cts +12 -1
  598. package/dist/components/Tabs/index.d.ts +12 -1
  599. package/dist/components/Tabs/index.js +4 -1
  600. package/dist/components/TagEditor/index.cjs +22 -0
  601. package/dist/components/TagEditor/index.cjs.map +1 -0
  602. package/dist/components/TagEditor/index.d.cts +46 -0
  603. package/dist/components/TagEditor/index.d.ts +46 -0
  604. package/dist/components/TagEditor/index.js +9 -0
  605. package/dist/components/TagEditor/index.js.map +1 -0
  606. package/dist/components/Text/index.d.cts +3 -3
  607. package/dist/components/Text/index.d.ts +3 -3
  608. package/dist/components/Textarea/index.d.cts +2 -2
  609. package/dist/components/Textarea/index.d.ts +2 -2
  610. package/dist/components/ThemeProvider/index.cjs +9 -9
  611. package/dist/components/ThemeProvider/index.d.cts +3 -1
  612. package/dist/components/ThemeProvider/index.d.ts +3 -1
  613. package/dist/components/ThemeProvider/index.js +3 -3
  614. package/dist/components/Tooltip/index.cjs +3 -3
  615. package/dist/components/Tooltip/index.js +2 -2
  616. package/dist/components/TranscriptView/index.d.cts +85 -4
  617. package/dist/components/TranscriptView/index.d.ts +85 -4
  618. package/dist/components/UserPicker/index.cjs +24 -0
  619. package/dist/components/UserPicker/index.cjs.map +1 -0
  620. package/dist/components/UserPicker/index.d.cts +60 -0
  621. package/dist/components/UserPicker/index.d.ts +60 -0
  622. package/dist/components/UserPicker/index.js +11 -0
  623. package/dist/components/UserPicker/index.js.map +1 -0
  624. package/dist/components/VideoCard/index.cjs +4 -4
  625. package/dist/components/VideoCard/index.js +2 -2
  626. package/dist/components/ViewSet/index.cjs +10 -7
  627. package/dist/components/ViewSet/index.d.cts +120 -8
  628. package/dist/components/ViewSet/index.d.ts +120 -8
  629. package/dist/components/ViewSet/index.js +9 -6
  630. package/dist/components/ViewSwitcher/index.cjs +4 -3
  631. package/dist/components/ViewSwitcher/index.d.cts +1 -2
  632. package/dist/components/ViewSwitcher/index.d.ts +1 -2
  633. package/dist/components/ViewSwitcher/index.js +2 -1
  634. package/dist/components/YearTimeline/index.cjs +5 -5
  635. package/dist/components/YearTimeline/index.js +1 -1
  636. package/dist/datavis.cjs +6 -4
  637. package/dist/datavis.cjs.map +1 -1
  638. package/dist/datavis.d.cts +167 -13
  639. package/dist/datavis.d.ts +167 -13
  640. package/dist/datavis.js +4 -2
  641. package/dist/datavis.js.map +1 -1
  642. package/dist/deck.cjs +3374 -0
  643. package/dist/deck.cjs.map +1 -0
  644. package/dist/deck.d.cts +712 -0
  645. package/dist/deck.d.ts +712 -0
  646. package/dist/deck.js +3330 -0
  647. package/dist/deck.js.map +1 -0
  648. package/dist/esheet.cjs +20 -16
  649. package/dist/esheet.cjs.map +1 -1
  650. package/dist/esheet.d.cts +183 -1
  651. package/dist/esheet.d.ts +183 -1
  652. package/dist/esheet.js +17 -13
  653. package/dist/esheet.js.map +1 -1
  654. package/dist/globe.cjs +2 -2
  655. package/dist/globe.js +1 -1
  656. package/dist/{hey-buddy-INNUFFJJ.cjs → hey-buddy-5WOBYZRJ.cjs} +22 -11
  657. package/dist/hey-buddy-5WOBYZRJ.cjs.map +1 -0
  658. package/dist/{hey-buddy-V6FC5UKB.js → hey-buddy-AHUHCDBC.js} +22 -11
  659. package/dist/hey-buddy-AHUHCDBC.js.map +1 -0
  660. package/dist/hooks/index.cjs +88 -33
  661. package/dist/hooks/index.d.cts +592 -36
  662. package/dist/hooks/index.d.ts +592 -36
  663. package/dist/hooks/index.js +9 -6
  664. package/dist/icons-wBacj6BW.d.cts +142 -0
  665. package/dist/icons-wBacj6BW.d.ts +142 -0
  666. package/dist/index.cjs +2056 -1349
  667. package/dist/index.cjs.map +1 -1
  668. package/dist/index.d.cts +10401 -637
  669. package/dist/index.d.ts +10401 -637
  670. package/dist/index.js +674 -352
  671. package/dist/index.js.map +1 -1
  672. package/dist/kerebron.css +115 -0
  673. package/dist/maps.cjs +160 -0
  674. package/dist/maps.cjs.map +1 -0
  675. package/dist/maps.d.cts +42 -0
  676. package/dist/maps.d.ts +42 -0
  677. package/dist/maps.js +138 -0
  678. package/dist/maps.js.map +1 -0
  679. package/dist/motion.cjs +7 -7
  680. package/dist/motion.d.cts +186 -2
  681. package/dist/motion.d.ts +186 -2
  682. package/dist/motion.js +2 -2
  683. package/dist/org-chart.cjs +1303 -0
  684. package/dist/org-chart.cjs.map +1 -0
  685. package/dist/org-chart.d.cts +164 -0
  686. package/dist/org-chart.d.ts +164 -0
  687. package/dist/org-chart.js +1278 -0
  688. package/dist/org-chart.js.map +1 -0
  689. package/dist/q.d.cts +25 -3
  690. package/dist/q.d.ts +25 -3
  691. package/dist/styles/effects.css +133 -0
  692. package/dist/styles/init.css +22 -3
  693. package/dist/styles.css +1 -1
  694. package/dist/tailwind-preset.cjs +4 -4
  695. package/dist/tailwind-preset.js +1 -1
  696. package/dist/templates.cjs +156 -0
  697. package/dist/templates.cjs.map +1 -0
  698. package/dist/templates.d.cts +734 -0
  699. package/dist/templates.d.ts +734 -0
  700. package/dist/templates.js +11 -0
  701. package/dist/templates.js.map +1 -0
  702. package/dist/{types-CbWXIKbe.d.cts → types-CDeBNZiE.d.cts} +1 -28
  703. package/dist/{types-CbWXIKbe.d.ts → types-CDeBNZiE.d.ts} +1 -28
  704. package/dist/types-Cx1FHLq2.d.cts +548 -0
  705. package/dist/types-Cx1FHLq2.d.ts +548 -0
  706. package/dist/types-DsdZvEI1.d.cts +92 -0
  707. package/dist/types-DsdZvEI1.d.ts +92 -0
  708. package/dist/utils/index.cjs +9 -9
  709. package/dist/utils/index.d.cts +13 -2
  710. package/dist/utils/index.d.ts +13 -2
  711. package/dist/utils/index.js +1 -1
  712. package/package.json +79 -15
  713. package/dist/Animated-XmH6k8pZ.d.cts +0 -188
  714. package/dist/Animated-XmH6k8pZ.d.ts +0 -188
  715. package/dist/CsvBlock-ROJCKJDP.cjs +0 -16
  716. package/dist/CsvBlock-UWPMTLE2.js +0 -7
  717. package/dist/HtmlPreviewBlock-DWFN6EUB.cjs +0 -16
  718. package/dist/HtmlPreviewBlock-ME5U3XNS.js +0 -7
  719. package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
  720. package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
  721. package/dist/MermaidBlock-2B6CPD6Y.js +0 -7
  722. package/dist/MermaidBlock-D2UC5M55.cjs +0 -16
  723. package/dist/SurveyBlock-4CD4AYMJ.cjs +0 -16
  724. package/dist/SurveyBlock-4DO62RBT.js +0 -7
  725. package/dist/chunk-2IZLKPUW.js.map +0 -1
  726. package/dist/chunk-3T7QGLNB.js.map +0 -1
  727. package/dist/chunk-4A3W4TQF.js.map +0 -1
  728. package/dist/chunk-4IS3QCOQ.cjs.map +0 -1
  729. package/dist/chunk-5GUOOLPR.cjs.map +0 -1
  730. package/dist/chunk-5JJ2DAE4.js.map +0 -1
  731. package/dist/chunk-6EN3IQQI.cjs.map +0 -1
  732. package/dist/chunk-6HFFWEM3.cjs +0 -22
  733. package/dist/chunk-6HFFWEM3.cjs.map +0 -1
  734. package/dist/chunk-7ZDPD5ZX.cjs.map +0 -1
  735. package/dist/chunk-7ZVTLTJF.js +0 -109
  736. package/dist/chunk-7ZVTLTJF.js.map +0 -1
  737. package/dist/chunk-ACCAXVOG.js.map +0 -1
  738. package/dist/chunk-AR7AKDM2.cjs +0 -143
  739. package/dist/chunk-AR7AKDM2.cjs.map +0 -1
  740. package/dist/chunk-ASSDGS4F.cjs.map +0 -1
  741. package/dist/chunk-AWJBOND5.js +0 -130
  742. package/dist/chunk-AWJBOND5.js.map +0 -1
  743. package/dist/chunk-BMSG4NBH.js +0 -56
  744. package/dist/chunk-BMSG4NBH.js.map +0 -1
  745. package/dist/chunk-CEQJGUAS.js.map +0 -1
  746. package/dist/chunk-CR2SDI23.cjs.map +0 -1
  747. package/dist/chunk-DVOQ3JNO.js.map +0 -1
  748. package/dist/chunk-E4IBHYJ7.cjs +0 -80
  749. package/dist/chunk-E4IBHYJ7.cjs.map +0 -1
  750. package/dist/chunk-FS4VZUFV.cjs.map +0 -1
  751. package/dist/chunk-GD7EBGC4.cjs.map +0 -1
  752. package/dist/chunk-GOALNQZ2.js.map +0 -1
  753. package/dist/chunk-HACNIFO3.js.map +0 -1
  754. package/dist/chunk-HB7C7NB5.js +0 -20
  755. package/dist/chunk-HB7C7NB5.js.map +0 -1
  756. package/dist/chunk-HZ4MBUC3.js.map +0 -1
  757. package/dist/chunk-IT775BYG.js.map +0 -1
  758. package/dist/chunk-JEIW7BSV.cjs.map +0 -1
  759. package/dist/chunk-JYZW2PZS.cjs.map +0 -1
  760. package/dist/chunk-KQUI4BGS.cjs.map +0 -1
  761. package/dist/chunk-KRU6IGV7.js.map +0 -1
  762. package/dist/chunk-NV2CWBI2.cjs.map +0 -1
  763. package/dist/chunk-OE5CKRUC.js.map +0 -1
  764. package/dist/chunk-P2CA3XGI.js.map +0 -1
  765. package/dist/chunk-P7UMS4E6.cjs.map +0 -1
  766. package/dist/chunk-SGFYA22I.cjs.map +0 -1
  767. package/dist/chunk-SQHMGT4W.js.map +0 -1
  768. package/dist/chunk-SQJFBZ42.js.map +0 -1
  769. package/dist/chunk-SVSHA7XV.js.map +0 -1
  770. package/dist/chunk-TVTIGV7Q.js.map +0 -1
  771. package/dist/chunk-VKELAMAZ.js.map +0 -1
  772. package/dist/chunk-VNYW4C4J.cjs.map +0 -1
  773. package/dist/chunk-VOKVG3ER.js +0 -78
  774. package/dist/chunk-VOKVG3ER.js.map +0 -1
  775. package/dist/chunk-VPIYTQCV.cjs.map +0 -1
  776. package/dist/chunk-VPWJCJCX.cjs.map +0 -1
  777. package/dist/chunk-VROIMIHB.cjs.map +0 -1
  778. package/dist/chunk-WNJRS7Y7.cjs.map +0 -1
  779. package/dist/chunk-X4LBUPJO.cjs.map +0 -1
  780. package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
  781. package/dist/chunk-XCP454Q6.js.map +0 -1
  782. package/dist/chunk-XDIMTPZU.cjs.map +0 -1
  783. package/dist/chunk-XEAT7XJG.cjs.map +0 -1
  784. package/dist/chunk-XVW5DPPP.js.map +0 -1
  785. package/dist/chunk-Y5HFM7LO.js.map +0 -1
  786. package/dist/chunk-YVL3XATO.cjs +0 -79
  787. package/dist/chunk-YVL3XATO.cjs.map +0 -1
  788. package/dist/chunk-YVPC65ZJ.cjs.map +0 -1
  789. package/dist/chunk-ZGRCSNPK.js.map +0 -1
  790. package/dist/hey-buddy-INNUFFJJ.cjs.map +0 -1
  791. package/dist/hey-buddy-V6FC5UKB.js.map +0 -1
  792. package/dist/html-MdxqSzjD.d.cts +0 -13
  793. package/dist/html-MdxqSzjD.d.ts +0 -13
  794. package/dist/orderRows-BUJYgSc7.d.cts +0 -221
  795. package/dist/orderRows-BUJYgSc7.d.ts +0 -221
  796. package/dist/transcript-Cg7uSW-C.d.cts +0 -84
  797. package/dist/transcript-Cg7uSW-C.d.ts +0 -84
  798. package/dist/types-B97JNRNQ.d.cts +0 -251
  799. package/dist/types-CnPEwzlp.d.cts +0 -254
  800. package/dist/types-CnPEwzlp.d.ts +0 -254
  801. package/dist/types-gZXrfLj6.d.ts +0 -251
  802. package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
  803. package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
  804. package/dist/useTheme-B9SWu6ui.d.cts +0 -24
  805. package/dist/useTheme-B9SWu6ui.d.ts +0 -24
  806. package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
  807. package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
@@ -1,31 +1,45 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
4
- var chunkFS4VZUFV_cjs = require('../../chunk-FS4VZUFV.cjs');
5
- var chunkX4XPNTCZ_cjs = require('../../chunk-X4XPNTCZ.cjs');
6
- var chunkSGFYA22I_cjs = require('../../chunk-SGFYA22I.cjs');
7
- var chunkJEIW7BSV_cjs = require('../../chunk-JEIW7BSV.cjs');
4
+ var chunkXRVMYT5G_cjs = require('../../chunk-XRVMYT5G.cjs');
5
+ var chunkU2RS574O_cjs = require('../../chunk-U2RS574O.cjs');
6
+ var chunkAJPFQF3H_cjs = require('../../chunk-AJPFQF3H.cjs');
7
+ require('../../chunk-GLXTVCHN.cjs');
8
+ var chunkKQ6GLYFZ_cjs = require('../../chunk-KQ6GLYFZ.cjs');
9
+ require('../../chunk-ZNUMOJOI.cjs');
10
+ var chunkPINIBEIU_cjs = require('../../chunk-PINIBEIU.cjs');
11
+ require('../../chunk-PJ6CC53R.cjs');
8
12
  require('../../chunk-VBWRH4UW.cjs');
9
13
  var chunkVPTASZ2O_cjs = require('../../chunk-VPTASZ2O.cjs');
10
- require('../../chunk-PJ6CC53R.cjs');
14
+ require('../../chunk-254QK722.cjs');
15
+ require('../../chunk-P22YCUVM.cjs');
16
+ require('../../chunk-Q3YVLO52.cjs');
17
+ var chunkGKDHMNUA_cjs = require('../../chunk-GKDHMNUA.cjs');
18
+ require('../../chunk-LC3JL2HB.cjs');
11
19
  require('../../chunk-I44YNYI6.cjs');
12
20
  require('../../chunk-Z5S5JEJD.cjs');
21
+ require('../../chunk-NNEFAUHV.cjs');
22
+ require('../../chunk-FHY3K6PL.cjs');
13
23
  require('../../chunk-FSGEDDF2.cjs');
14
24
  require('../../chunk-AOHJILLU.cjs');
15
- require('../../chunk-FHY3K6PL.cjs');
25
+ require('../../chunk-SCV7C55E.cjs');
16
26
  require('../../chunk-L7L5S2HO.cjs');
17
- var chunk6HFFWEM3_cjs = require('../../chunk-6HFFWEM3.cjs');
18
- var chunkYVL3XATO_cjs = require('../../chunk-YVL3XATO.cjs');
19
- require('../../chunk-NV2CWBI2.cjs');
27
+ var chunkYW2AKBLS_cjs = require('../../chunk-YW2AKBLS.cjs');
28
+ require('../../chunk-Z3WMDVMR.cjs');
29
+ var chunk7E46YDOT_cjs = require('../../chunk-7E46YDOT.cjs');
30
+ require('../../chunk-EACNRR3C.cjs');
31
+ var chunkANMX7YDL_cjs = require('../../chunk-ANMX7YDL.cjs');
32
+ require('../../chunk-DXEPYK3I.cjs');
33
+ var chunkIEY3ZJIT_cjs = require('../../chunk-IEY3ZJIT.cjs');
20
34
  var chunkS5RVSXDV_cjs = require('../../chunk-S5RVSXDV.cjs');
21
35
  require('../../chunk-EUAMEVVI.cjs');
22
36
  var React3 = require('react');
37
+ var lucideReact = require('lucide-react');
38
+ var classVarianceAuthority = require('class-variance-authority');
39
+ var jsxRuntime = require('react/jsx-runtime');
23
40
  var Markdown = require('react-markdown');
24
41
  var remarkGfm = require('remark-gfm');
25
42
  var rehypeSanitize = require('rehype-sanitize');
26
- var jsxRuntime = require('react/jsx-runtime');
27
- var classVarianceAuthority = require('class-variance-authority');
28
- var lucideReact = require('lucide-react');
29
43
  var reactVirtual = require('@tanstack/react-virtual');
30
44
 
31
45
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -53,269 +67,74 @@ var Markdown__default = /*#__PURE__*/_interopDefault(Markdown);
53
67
  var remarkGfm__default = /*#__PURE__*/_interopDefault(remarkGfm);
54
68
  var rehypeSanitize__default = /*#__PURE__*/_interopDefault(rehypeSanitize);
55
69
 
56
- function remarkPreserveLineBreaks() {
57
- const splitNode = (node) => {
58
- if (!node.children) return;
59
- const next = [];
60
- for (const child of node.children) {
61
- if (child.type === "text" && child.value && child.value.includes("\n")) {
62
- const segments = child.value.split("\n");
63
- segments.forEach((segment, i) => {
64
- if (i > 0) next.push({ type: "break" });
65
- if (segment) next.push({ type: "text", value: segment });
66
- });
67
- } else {
68
- splitNode(child);
69
- next.push(child);
70
- }
71
- }
72
- node.children = next;
73
- };
74
- return (tree) => splitNode(tree);
75
- }
76
- function baseSanitizeSchema() {
77
- const schema = JSON.parse(JSON.stringify(rehypeSanitize.defaultSchema));
78
- const attributes = schema.attributes ?? {};
79
- const allowClass = (tag) => {
80
- const existing = attributes[tag] ?? [];
81
- const withoutClass = existing.filter(
82
- (a) => !(Array.isArray(a) && a[0] === "className")
83
- );
84
- attributes[tag] = [...withoutClass, "className"];
85
- };
86
- allowClass("code");
87
- allowClass("pre");
88
- allowClass("span");
89
- allowClass("div");
90
- schema.attributes = attributes;
91
- return schema;
92
- }
93
- function mergeSanitizeSchema(base, extra) {
94
- if (!extra) return base;
95
- const out = { ...base };
96
- if (Array.isArray(extra.tagNames)) {
97
- const a = base.tagNames ?? [];
98
- out.tagNames = Array.from(/* @__PURE__ */ new Set([...a, ...extra.tagNames]));
99
- }
100
- if (extra.attributes && typeof extra.attributes === "object") {
101
- const baseAttrs = {
102
- ...base.attributes ?? {}
103
- };
104
- for (const [tag, attrs] of Object.entries(
105
- extra.attributes
106
- )) {
107
- baseAttrs[tag] = [...baseAttrs[tag] ?? [], ...attrs];
108
- }
109
- out.attributes = baseAttrs;
110
- }
111
- if (extra.protocols && typeof extra.protocols === "object") {
112
- const baseProtocols = {
113
- ...base.protocols ?? {}
114
- };
115
- for (const [attr, protocols] of Object.entries(
116
- extra.protocols
117
- )) {
118
- baseProtocols[attr] = Array.from(
119
- /* @__PURE__ */ new Set([...baseProtocols[attr] ?? [], ...protocols])
120
- );
121
- }
122
- out.protocols = baseProtocols;
123
- }
124
- for (const [k, v] of Object.entries(extra)) {
125
- if (k === "tagNames" || k === "attributes" || k === "protocols") continue;
126
- out[k] = v;
127
- }
128
- return out;
129
- }
130
- function baseComponents() {
131
- return {
132
- a: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
133
- "a",
134
- {
135
- ...props,
136
- className: chunkS5RVSXDV_cjs.cn(
137
- "text-primary-800 hover:text-primary-900 dark:text-primary-300 underline underline-offset-2",
138
- props.className
139
- ),
140
- target: props.target ?? "_blank",
141
- rel: props.rel ?? "noopener noreferrer",
142
- children
143
- }
144
- ),
145
- pre: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
146
- "pre",
147
- {
148
- ...props,
149
- tabIndex: 0,
150
- className: chunkS5RVSXDV_cjs.cn(
151
- "overflow-x-auto rounded-lg bg-neutral-900 p-3 text-sm text-neutral-100 dark:bg-neutral-950",
152
- props.className
153
- )
154
- }
155
- ),
156
- code: ({ node: _node, ...props }) => {
157
- const isBlock = typeof props.className === "string" && props.className.includes("language-");
158
- return /* @__PURE__ */ jsxRuntime.jsx(
159
- "code",
160
- {
161
- ...props,
162
- className: chunkS5RVSXDV_cjs.cn(
163
- !isBlock && "rounded bg-neutral-200 px-1 py-0.5 text-[0.85em] text-neutral-800 dark:bg-neutral-700 dark:text-neutral-100",
164
- props.className
165
- )
166
- }
167
- );
168
- },
169
- input: ({ node: _node, ...props }) => {
170
- if (props.type === "checkbox") {
171
- return /* @__PURE__ */ jsxRuntime.jsx(
172
- "input",
70
+ function MessageMedia({
71
+ attachment,
72
+ onOpen,
73
+ openLabel,
74
+ playLabel,
75
+ errorLabel,
76
+ retryLabel,
77
+ launchId
78
+ }) {
79
+ const playable = attachment.kind !== "image";
80
+ const actionLabel = playable ? playLabel : openLabel;
81
+ return /* @__PURE__ */ jsxRuntime.jsxs(
82
+ "div",
83
+ {
84
+ "data-slot": "superchat-message-media",
85
+ className: "mt-3 flex w-72 max-w-full flex-col gap-2",
86
+ children: [
87
+ attachment.title && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium", children: attachment.title }),
88
+ attachment.kind === "image" && attachment.src ? /* @__PURE__ */ jsxRuntime.jsx(
89
+ "img",
173
90
  {
174
- ...props,
175
- "aria-label": props["aria-label"] ?? (props["aria-labelledby"] ? void 0 : "Task list item")
91
+ src: attachment.src,
92
+ alt: attachment.alt ?? attachment.title ?? "",
93
+ loading: "lazy",
94
+ className: "max-h-72 w-full rounded-lg object-contain"
176
95
  }
177
- );
178
- }
179
- return /* @__PURE__ */ jsxRuntime.jsx("input", { ...props });
180
- },
181
- table: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-2 overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
182
- "table",
183
- {
184
- ...props,
185
- className: chunkS5RVSXDV_cjs.cn(
186
- "w-full border-collapse text-sm [&_td]:border [&_td]:border-neutral-200 [&_td]:px-2 [&_td]:py-1 dark:[&_td]:border-neutral-700 [&_th]:border [&_th]:border-neutral-200 [&_th]:px-2 [&_th]:py-1 [&_th]:text-start dark:[&_th]:border-neutral-700",
187
- props.className
188
- )
189
- }
190
- ) }),
191
- // Tailwind's preflight resets list markers/padding; restore them explicitly
192
- // so bullets/numbers show without depending on the typography plugin.
193
- ul: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("ul", { ...props, className: chunkS5RVSXDV_cjs.cn("list-disc ps-5", props.className) }),
194
- ol: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("ol", { ...props, className: chunkS5RVSXDV_cjs.cn("list-decimal ps-5", props.className) }),
195
- li: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("li", { ...props, className: chunkS5RVSXDV_cjs.cn("ps-1", props.className) }),
196
- // Preflight also flattens headings to body size/weight; restore a sensible
197
- // hierarchy without depending on the typography plugin.
198
- h1: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
199
- "h1",
200
- {
201
- ...props,
202
- className: chunkS5RVSXDV_cjs.cn("mt-3 mb-1 text-xl font-semibold", props.className),
203
- children
204
- }
205
- ),
206
- h2: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
207
- "h2",
208
- {
209
- ...props,
210
- className: chunkS5RVSXDV_cjs.cn("mt-3 mb-1 text-lg font-semibold", props.className),
211
- children
212
- }
213
- ),
214
- h3: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
215
- "h3",
216
- {
217
- ...props,
218
- className: chunkS5RVSXDV_cjs.cn("mt-2 mb-1 text-base font-semibold", props.className),
219
- children
220
- }
221
- ),
222
- h4: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
223
- "h4",
224
- {
225
- ...props,
226
- className: chunkS5RVSXDV_cjs.cn("mt-2 mb-1 text-sm font-semibold", props.className),
227
- children
228
- }
229
- ),
230
- h5: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
231
- "h5",
232
- {
233
- ...props,
234
- className: chunkS5RVSXDV_cjs.cn("mt-2 mb-1 text-sm font-semibold", props.className),
235
- children
236
- }
237
- ),
238
- h6: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
239
- "h6",
240
- {
241
- ...props,
242
- className: chunkS5RVSXDV_cjs.cn(
243
- "mt-2 mb-1 text-xs font-semibold tracking-wide uppercase",
244
- props.className
245
- ),
246
- children
247
- }
248
- ),
249
- hr: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
250
- "hr",
251
- {
252
- ...props,
253
- className: chunkS5RVSXDV_cjs.cn(
254
- "my-2 border-neutral-300 dark:border-neutral-600",
255
- props.className
256
- )
257
- }
258
- )
259
- };
260
- }
261
- function createMarkdownRenderer(options = {}) {
262
- const { plugins = [], trusted = false } = options;
263
- const remarkPlugins = [
264
- remarkGfm__default.default,
265
- remarkPreserveLineBreaks,
266
- ...plugins.flatMap((p) => p.remarkPlugins ?? [])
267
- ];
268
- const pluginRehype = plugins.flatMap(
269
- (p) => p.rehypePlugins ?? []
270
- );
271
- const sanitizeSchema = plugins.reduce(
272
- (acc, p) => mergeSanitizeSchema(acc, p.sanitizeSchema),
273
- baseSanitizeSchema()
274
- );
275
- const rehypePlugins = trusted ? pluginRehype : [...pluginRehype, [rehypeSanitize__default.default, sanitizeSchema]];
276
- const components = plugins.reduce(
277
- (acc, p) => ({ ...acc, ...p.components }),
278
- baseComponents()
279
- );
280
- const MarkdownRenderer = (text, ctx) => /* @__PURE__ */ jsxRuntime.jsx(
281
- MarkdownContent,
282
- {
283
- text,
284
- messageId: ctx.messageId,
285
- streaming: ctx.streaming,
286
- remarkPlugins,
287
- rehypePlugins,
288
- components
289
- },
290
- ctx.messageId
96
+ ) : (attachment.kind === "video" || attachment.kind === "audio") && attachment.src ? (
97
+ // An opaque themed surface: the player's semi-transparent states
98
+ // (error, loading) must never compose onto a colored chat bubble.
99
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-background overflow-hidden rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
100
+ chunkKQ6GLYFZ_cjs.MediaPlayer,
101
+ {
102
+ src: attachment.src,
103
+ kind: attachment.kind,
104
+ poster: attachment.poster,
105
+ "aria-label": attachment.alt ?? attachment.title ?? openLabel,
106
+ controls: !onOpen,
107
+ preload: "metadata",
108
+ labels: { error: errorLabel, retry: retryLabel },
109
+ className: "max-h-72"
110
+ }
111
+ ) })
112
+ ) : attachment.poster ? /* @__PURE__ */ jsxRuntime.jsx(
113
+ "img",
114
+ {
115
+ src: attachment.poster,
116
+ alt: attachment.alt ?? attachment.title ?? "",
117
+ loading: "lazy",
118
+ className: "max-h-72 w-full rounded-lg object-contain"
119
+ }
120
+ ) : null,
121
+ attachment.caption && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: attachment.caption }),
122
+ onOpen && /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.ButtonGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(
123
+ chunkANMX7YDL_cjs.Button,
124
+ {
125
+ "data-media-launch-id": launchId,
126
+ variant: "secondary",
127
+ size: "sm",
128
+ leftIcon: playable ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: "size-4", "aria-hidden": "true" }) : void 0,
129
+ "aria-label": playable && attachment.title ? `${playLabel} ${attachment.title}` : actionLabel,
130
+ onClick: () => onOpen(playable),
131
+ children: actionLabel
132
+ }
133
+ ) })
134
+ ]
135
+ }
291
136
  );
292
- return MarkdownRenderer;
293
137
  }
294
- var transformUrl = (url, key, node) => {
295
- if (key === "src" && node.tagName === "img" && (/^data:image\//i.test(url) || /^blob:/i.test(url))) {
296
- return url;
297
- }
298
- return Markdown.defaultUrlTransform(url);
299
- };
300
- var MarkdownContent = React3__namespace.memo(function MarkdownContent2({
301
- text,
302
- messageId,
303
- streaming,
304
- remarkPlugins,
305
- rehypePlugins,
306
- components
307
- }) {
308
- return /* @__PURE__ */ jsxRuntime.jsx(chunkJFLC7SHM_cjs.TextRenderContext.Provider, { value: { messageId, streaming }, children: /* @__PURE__ */ jsxRuntime.jsx(
309
- Markdown__default.default,
310
- {
311
- remarkPlugins,
312
- rehypePlugins,
313
- urlTransform: transformUrl,
314
- components,
315
- children: text
316
- }
317
- ) });
318
- });
319
138
  function formatTime(time) {
320
139
  return new Date(time).toLocaleTimeString(void 0, {
321
140
  hour: "numeric",
@@ -401,13 +220,13 @@ function ParticipantAvatar({
401
220
  const isAgent = participant?.kind === "agent";
402
221
  const backgroundColor = participant?.color ?? (isAgent ? "var(--mieweb-primary-700, #1f2937)" : "#64748b");
403
222
  return /* @__PURE__ */ jsxRuntime.jsx(
404
- chunkJEIW7BSV_cjs.Avatar,
223
+ chunkGKDHMNUA_cjs.Avatar,
405
224
  {
406
225
  size: "xs",
407
226
  src: participant?.avatar,
408
227
  alt: "",
409
228
  name: participant?.name ?? "?",
410
- fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkFS4VZUFV_cjs.SparklesIcon, { size: "sm" }) : void 0,
229
+ fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.SparklesIcon, { size: "sm" }) : void 0,
411
230
  style: { backgroundColor },
412
231
  "aria-hidden": "true",
413
232
  className: "shrink-0"
@@ -422,7 +241,7 @@ function ReferenceChip({
422
241
  const href = linkBuilder?.(reference);
423
242
  const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
424
243
  /* @__PURE__ */ jsxRuntime.jsx(
425
- chunkYVL3XATO_cjs.Badge,
244
+ chunk7E46YDOT_cjs.Badge,
426
245
  {
427
246
  variant: "default",
428
247
  size: "sm",
@@ -548,7 +367,7 @@ function ActionMenuItem({
548
367
  item,
549
368
  onSelect
550
369
  }) {
551
- return /* @__PURE__ */ jsxRuntime.jsx(chunkSGFYA22I_cjs.DropdownItem, { onClick: () => onSelect(item.onSelect), children: item.description ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex flex-col items-start", children: [
370
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkPINIBEIU_cjs.DropdownItem, { onClick: () => onSelect(item.onSelect), children: item.description ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex flex-col items-start", children: [
552
371
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label }),
553
372
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-normal text-neutral-400", children: item.description })
554
373
  ] }) : item.label });
@@ -580,7 +399,7 @@ function FooterActionButton({
580
399
  );
581
400
  if (!action.submenu) return button;
582
401
  return /* @__PURE__ */ jsxRuntime.jsx(
583
- chunkSGFYA22I_cjs.Dropdown,
402
+ chunkPINIBEIU_cjs.Dropdown,
584
403
  {
585
404
  open,
586
405
  onOpenChange: setOpen,
@@ -635,7 +454,7 @@ function MessageOverflowMenu({
635
454
  footerVisible && !open && "pointer-events-none invisible opacity-0"
636
455
  ),
637
456
  children: /* @__PURE__ */ jsxRuntime.jsx(
638
- chunkSGFYA22I_cjs.Dropdown,
457
+ chunkPINIBEIU_cjs.Dropdown,
639
458
  {
640
459
  open,
641
460
  onOpenChange: setOpen,
@@ -654,9 +473,9 @@ function MessageOverflowMenu({
654
473
  (action) => action.submenu ? (
655
474
  // Actions with variants collapse to just their submenu — a
656
475
  // top-level default item would duplicate the flyout's options.
657
- /* @__PURE__ */ jsxRuntime.jsx(chunkSGFYA22I_cjs.DropdownSubmenu, { label: action.submenu.label, children: action.submenu.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(ActionMenuItem, { item, onSelect: select }, item.id)) }, action.id)
476
+ /* @__PURE__ */ jsxRuntime.jsx(chunkPINIBEIU_cjs.DropdownSubmenu, { label: action.submenu.label, children: action.submenu.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(ActionMenuItem, { item, onSelect: select }, item.id)) }, action.id)
658
477
  ) : /* @__PURE__ */ jsxRuntime.jsx(
659
- chunkSGFYA22I_cjs.DropdownItem,
478
+ chunkPINIBEIU_cjs.DropdownItem,
660
479
  {
661
480
  onClick: () => select(action.onSelect),
662
481
  children: action.label
@@ -678,10 +497,15 @@ var MessageRow = React3__namespace.memo(function MessageRow2({
678
497
  onReferenceClick,
679
498
  editable,
680
499
  onMessageEdited,
681
- defaultCopyFormat = "rich"
500
+ defaultCopyFormat = "rich",
501
+ onOpenMedia,
502
+ openMediaLabel = "Open in media feed",
503
+ playMediaLabel = "Play",
504
+ mediaErrorLabel,
505
+ mediaRetryLabel
682
506
  }) {
683
507
  const streaming = message.status === "streaming";
684
- const hasBody = !!message.text || (message.content?.length ?? 0) > 0;
508
+ const hasBody = !!message.text || (message.content?.length ?? 0) > 0 || (message.media?.length ?? 0) > 0;
685
509
  const [isEditing, setIsEditing] = React3__namespace.useState(false);
686
510
  const [draft, setDraft] = React3__namespace.useState(message.text ?? "");
687
511
  const [editMinWidth, setEditMinWidth] = React3__namespace.useState();
@@ -938,7 +762,7 @@ ${block.text}
938
762
  isSelf ? "flex-row-reverse" : "flex-row"
939
763
  ),
940
764
  children: /* @__PURE__ */ jsxRuntime.jsx(
941
- chunkFS4VZUFV_cjs.ChatBubble,
765
+ chunkXRVMYT5G_cjs.ChatBubble,
942
766
  {
943
767
  ref: bubbleRef,
944
768
  "data-slot": "superchat-bubble",
@@ -1002,7 +826,7 @@ ${block.text}
1002
826
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1003
827
  message.content?.map((block, i) => {
1004
828
  if (block.type === "tool_use" && block.toolCall) {
1005
- return /* @__PURE__ */ jsxRuntime.jsx(chunkFS4VZUFV_cjs.MCPToolCallDisplay, { toolCall: block.toolCall }, i);
829
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.MCPToolCallDisplay, { toolCall: block.toolCall }, i);
1006
830
  }
1007
831
  if ((block.type === "text" || block.type === "thinking") && block.text) {
1008
832
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1042,7 +866,20 @@ ${block.text}
1042
866
  streaming,
1043
867
  role: participant?.kind === "human" ? "user" : "assistant"
1044
868
  }) }),
1045
- streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkFS4VZUFV_cjs.AITypingIndicator, {}) })
869
+ message.media?.map((attachment) => /* @__PURE__ */ jsxRuntime.jsx(
870
+ MessageMedia,
871
+ {
872
+ attachment,
873
+ openLabel: openMediaLabel,
874
+ playLabel: playMediaLabel,
875
+ errorLabel: mediaErrorLabel,
876
+ retryLabel: mediaRetryLabel,
877
+ launchId: JSON.stringify([message.id, attachment.id]),
878
+ onOpen: onOpenMedia ? (play) => onOpenMedia(message.id, attachment.id, play) : void 0
879
+ },
880
+ attachment.id
881
+ )),
882
+ streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.AITypingIndicator, {}) })
1046
883
  ] })
1047
884
  }
1048
885
  )
@@ -1051,22 +888,306 @@ ${block.text}
1051
888
  ]
1052
889
  }
1053
890
  )
1054
- ]
1055
- }
1056
- );
1057
- });
1058
- var sidebarItem = classVarianceAuthority.cva(
1059
- "flex w-full items-center gap-2 rounded-lg px-3 py-2 text-start text-sm transition-colors",
1060
- {
1061
- variants: {
1062
- active: {
1063
- true: "bg-primary-100 text-primary-900 dark:bg-primary-900/40 dark:text-primary-100",
1064
- false: "text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800"
891
+ ]
892
+ }
893
+ );
894
+ });
895
+ var sidebarItem = classVarianceAuthority.cva(
896
+ "flex w-full items-center gap-2 rounded-lg px-3 py-2 text-start text-sm transition-colors",
897
+ {
898
+ variants: {
899
+ active: {
900
+ true: "bg-primary-100 text-primary-900 dark:bg-primary-900/40 dark:text-primary-100",
901
+ false: "text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800"
902
+ }
903
+ },
904
+ defaultVariants: { active: false }
905
+ }
906
+ );
907
+
908
+ // src/components/SuperChat/media.ts
909
+ function getConversationMediaItems(conversation) {
910
+ const participants = new Map(
911
+ conversation.participants.map((participant) => [
912
+ participant.id,
913
+ participant
914
+ ])
915
+ );
916
+ return [...conversation.thread].sort(byTime).flatMap(
917
+ (message) => (message.media ?? []).map((attachment) => ({
918
+ // Tuple encoding prevents collisions when ids themselves contain a
919
+ // delimiter. Including the conversation keeps selection scoped to it.
920
+ id: JSON.stringify([conversation.id, message.id, attachment.id]),
921
+ conversationId: conversation.id,
922
+ message,
923
+ attachment,
924
+ participant: participants.get(message.participantId)
925
+ }))
926
+ );
927
+ }
928
+ function remarkPreserveLineBreaks() {
929
+ const splitNode = (node) => {
930
+ if (!node.children) return;
931
+ const next = [];
932
+ for (const child of node.children) {
933
+ if (child.type === "text" && child.value && child.value.includes("\n")) {
934
+ const segments = child.value.split("\n");
935
+ segments.forEach((segment, i) => {
936
+ if (i > 0) next.push({ type: "break" });
937
+ if (segment) next.push({ type: "text", value: segment });
938
+ });
939
+ } else {
940
+ splitNode(child);
941
+ next.push(child);
942
+ }
943
+ }
944
+ node.children = next;
945
+ };
946
+ return (tree) => splitNode(tree);
947
+ }
948
+ function baseSanitizeSchema() {
949
+ const schema = JSON.parse(JSON.stringify(rehypeSanitize.defaultSchema));
950
+ const attributes = schema.attributes ?? {};
951
+ const allowClass = (tag) => {
952
+ const existing = attributes[tag] ?? [];
953
+ const withoutClass = existing.filter(
954
+ (a) => !(Array.isArray(a) && a[0] === "className")
955
+ );
956
+ attributes[tag] = [...withoutClass, "className"];
957
+ };
958
+ allowClass("code");
959
+ allowClass("pre");
960
+ allowClass("span");
961
+ allowClass("div");
962
+ schema.attributes = attributes;
963
+ return schema;
964
+ }
965
+ function mergeSanitizeSchema(base, extra) {
966
+ if (!extra) return base;
967
+ const out = { ...base };
968
+ if (Array.isArray(extra.tagNames)) {
969
+ const a = base.tagNames ?? [];
970
+ out.tagNames = Array.from(/* @__PURE__ */ new Set([...a, ...extra.tagNames]));
971
+ }
972
+ if (extra.attributes && typeof extra.attributes === "object") {
973
+ const baseAttrs = {
974
+ ...base.attributes ?? {}
975
+ };
976
+ for (const [tag, attrs] of Object.entries(
977
+ extra.attributes
978
+ )) {
979
+ baseAttrs[tag] = [...baseAttrs[tag] ?? [], ...attrs];
980
+ }
981
+ out.attributes = baseAttrs;
982
+ }
983
+ if (extra.protocols && typeof extra.protocols === "object") {
984
+ const baseProtocols = {
985
+ ...base.protocols ?? {}
986
+ };
987
+ for (const [attr, protocols] of Object.entries(
988
+ extra.protocols
989
+ )) {
990
+ baseProtocols[attr] = Array.from(
991
+ /* @__PURE__ */ new Set([...baseProtocols[attr] ?? [], ...protocols])
992
+ );
993
+ }
994
+ out.protocols = baseProtocols;
995
+ }
996
+ for (const [k, v] of Object.entries(extra)) {
997
+ if (k === "tagNames" || k === "attributes" || k === "protocols") continue;
998
+ out[k] = v;
999
+ }
1000
+ return out;
1001
+ }
1002
+ function baseComponents() {
1003
+ return {
1004
+ a: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1005
+ "a",
1006
+ {
1007
+ ...props,
1008
+ className: chunkS5RVSXDV_cjs.cn(
1009
+ "text-primary-800 hover:text-primary-900 dark:text-primary-300 underline underline-offset-2",
1010
+ props.className
1011
+ ),
1012
+ target: props.target ?? "_blank",
1013
+ rel: props.rel ?? "noopener noreferrer",
1014
+ children
1015
+ }
1016
+ ),
1017
+ pre: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1018
+ "pre",
1019
+ {
1020
+ ...props,
1021
+ tabIndex: 0,
1022
+ className: chunkS5RVSXDV_cjs.cn(
1023
+ "overflow-x-auto rounded-lg bg-neutral-900 p-3 text-sm text-neutral-100 dark:bg-neutral-950",
1024
+ props.className
1025
+ )
1026
+ }
1027
+ ),
1028
+ code: ({ node: _node, ...props }) => {
1029
+ const isBlock = typeof props.className === "string" && props.className.includes("language-");
1030
+ return /* @__PURE__ */ jsxRuntime.jsx(
1031
+ "code",
1032
+ {
1033
+ ...props,
1034
+ className: chunkS5RVSXDV_cjs.cn(
1035
+ !isBlock && "rounded bg-neutral-200 px-1 py-0.5 text-[0.85em] text-neutral-800 dark:bg-neutral-700 dark:text-neutral-100",
1036
+ props.className
1037
+ )
1038
+ }
1039
+ );
1040
+ },
1041
+ input: ({ node: _node, ...props }) => {
1042
+ if (props.type === "checkbox") {
1043
+ return /* @__PURE__ */ jsxRuntime.jsx(
1044
+ "input",
1045
+ {
1046
+ ...props,
1047
+ "aria-label": props["aria-label"] ?? (props["aria-labelledby"] ? void 0 : "Task list item")
1048
+ }
1049
+ );
1050
+ }
1051
+ return /* @__PURE__ */ jsxRuntime.jsx("input", { ...props });
1052
+ },
1053
+ table: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-2 overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
1054
+ "table",
1055
+ {
1056
+ ...props,
1057
+ className: chunkS5RVSXDV_cjs.cn(
1058
+ "w-full border-collapse text-sm [&_td]:border [&_td]:border-neutral-200 [&_td]:px-2 [&_td]:py-1 dark:[&_td]:border-neutral-700 [&_th]:border [&_th]:border-neutral-200 [&_th]:px-2 [&_th]:py-1 [&_th]:text-start dark:[&_th]:border-neutral-700",
1059
+ props.className
1060
+ )
1061
+ }
1062
+ ) }),
1063
+ // Tailwind's preflight resets list markers/padding; restore them explicitly
1064
+ // so bullets/numbers show without depending on the typography plugin.
1065
+ ul: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("ul", { ...props, className: chunkS5RVSXDV_cjs.cn("list-disc ps-5", props.className) }),
1066
+ ol: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("ol", { ...props, className: chunkS5RVSXDV_cjs.cn("list-decimal ps-5", props.className) }),
1067
+ li: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("li", { ...props, className: chunkS5RVSXDV_cjs.cn("ps-1", props.className) }),
1068
+ // Preflight also flattens headings to body size/weight; restore a sensible
1069
+ // hierarchy without depending on the typography plugin.
1070
+ h1: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1071
+ "h1",
1072
+ {
1073
+ ...props,
1074
+ className: chunkS5RVSXDV_cjs.cn("mt-3 mb-1 text-xl font-semibold", props.className),
1075
+ children
1076
+ }
1077
+ ),
1078
+ h2: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1079
+ "h2",
1080
+ {
1081
+ ...props,
1082
+ className: chunkS5RVSXDV_cjs.cn("mt-3 mb-1 text-lg font-semibold", props.className),
1083
+ children
1084
+ }
1085
+ ),
1086
+ h3: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1087
+ "h3",
1088
+ {
1089
+ ...props,
1090
+ className: chunkS5RVSXDV_cjs.cn("mt-2 mb-1 text-base font-semibold", props.className),
1091
+ children
1092
+ }
1093
+ ),
1094
+ h4: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1095
+ "h4",
1096
+ {
1097
+ ...props,
1098
+ className: chunkS5RVSXDV_cjs.cn("mt-2 mb-1 text-sm font-semibold", props.className),
1099
+ children
1100
+ }
1101
+ ),
1102
+ h5: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1103
+ "h5",
1104
+ {
1105
+ ...props,
1106
+ className: chunkS5RVSXDV_cjs.cn("mt-2 mb-1 text-sm font-semibold", props.className),
1107
+ children
1108
+ }
1109
+ ),
1110
+ h6: ({ node: _node, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1111
+ "h6",
1112
+ {
1113
+ ...props,
1114
+ className: chunkS5RVSXDV_cjs.cn(
1115
+ "mt-2 mb-1 text-xs font-semibold tracking-wide uppercase",
1116
+ props.className
1117
+ ),
1118
+ children
1119
+ }
1120
+ ),
1121
+ hr: ({ node: _node, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1122
+ "hr",
1123
+ {
1124
+ ...props,
1125
+ className: chunkS5RVSXDV_cjs.cn(
1126
+ "my-2 border-neutral-300 dark:border-neutral-600",
1127
+ props.className
1128
+ )
1065
1129
  }
1130
+ )
1131
+ };
1132
+ }
1133
+ function createMarkdownRenderer(options = {}) {
1134
+ const { plugins = [], trusted = false } = options;
1135
+ const remarkPlugins = [
1136
+ remarkGfm__default.default,
1137
+ remarkPreserveLineBreaks,
1138
+ ...plugins.flatMap((p) => p.remarkPlugins ?? [])
1139
+ ];
1140
+ const pluginRehype = plugins.flatMap(
1141
+ (p) => p.rehypePlugins ?? []
1142
+ );
1143
+ const sanitizeSchema = plugins.reduce(
1144
+ (acc, p) => mergeSanitizeSchema(acc, p.sanitizeSchema),
1145
+ baseSanitizeSchema()
1146
+ );
1147
+ const rehypePlugins = trusted ? pluginRehype : [...pluginRehype, [rehypeSanitize__default.default, sanitizeSchema]];
1148
+ const components = plugins.reduce(
1149
+ (acc, p) => ({ ...acc, ...p.components }),
1150
+ baseComponents()
1151
+ );
1152
+ const MarkdownRenderer = (text, ctx) => /* @__PURE__ */ jsxRuntime.jsx(
1153
+ MarkdownContent,
1154
+ {
1155
+ text,
1156
+ messageId: ctx.messageId,
1157
+ streaming: ctx.streaming,
1158
+ remarkPlugins,
1159
+ rehypePlugins,
1160
+ components
1066
1161
  },
1067
- defaultVariants: { active: false }
1162
+ ctx.messageId
1163
+ );
1164
+ return MarkdownRenderer;
1165
+ }
1166
+ var transformUrl = (url, key, node) => {
1167
+ if (key === "src" && node.tagName === "img" && (/^data:image\//i.test(url) || /^blob:/i.test(url))) {
1168
+ return url;
1068
1169
  }
1069
- );
1170
+ return Markdown.defaultUrlTransform(url);
1171
+ };
1172
+ var MarkdownContent = React3__namespace.memo(function MarkdownContent2({
1173
+ text,
1174
+ messageId,
1175
+ streaming,
1176
+ remarkPlugins,
1177
+ rehypePlugins,
1178
+ components
1179
+ }) {
1180
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkJFLC7SHM_cjs.TextRenderContext.Provider, { value: { messageId, streaming }, children: /* @__PURE__ */ jsxRuntime.jsx(
1181
+ Markdown__default.default,
1182
+ {
1183
+ remarkPlugins,
1184
+ rehypePlugins,
1185
+ urlTransform: transformUrl,
1186
+ components,
1187
+ children: text
1188
+ }
1189
+ ) });
1190
+ });
1070
1191
  function VirtualThread({
1071
1192
  items,
1072
1193
  participantById,
@@ -1077,6 +1198,11 @@ function VirtualThread({
1077
1198
  editable,
1078
1199
  onMessageEdited,
1079
1200
  defaultCopyFormat,
1201
+ onOpenMedia,
1202
+ openMediaLabel,
1203
+ playMediaLabel,
1204
+ mediaErrorLabel,
1205
+ mediaRetryLabel,
1080
1206
  scrollRef,
1081
1207
  contentRef,
1082
1208
  containerProps
@@ -1125,7 +1251,12 @@ function VirtualThread({
1125
1251
  onReferenceClick,
1126
1252
  editable,
1127
1253
  onMessageEdited,
1128
- defaultCopyFormat
1254
+ defaultCopyFormat,
1255
+ onOpenMedia,
1256
+ openMediaLabel,
1257
+ playMediaLabel,
1258
+ mediaErrorLabel,
1259
+ mediaRetryLabel
1129
1260
  }
1130
1261
  ) })
1131
1262
  },
@@ -1137,6 +1268,11 @@ function VirtualThread({
1137
1268
  }
1138
1269
  function SuperChat({
1139
1270
  conversation,
1271
+ view,
1272
+ defaultView = "thread",
1273
+ onViewChange,
1274
+ mediaFeedProps,
1275
+ mediaLabels,
1140
1276
  currentParticipantId,
1141
1277
  renderPlugins,
1142
1278
  renderTextContent,
@@ -1148,6 +1284,17 @@ function SuperChat({
1148
1284
  linkBuilder,
1149
1285
  defaultCopyFormat,
1150
1286
  className,
1287
+ showHeader = true,
1288
+ placeholder,
1289
+ allowAttachments,
1290
+ agents,
1291
+ selectedAgent,
1292
+ onAgentChange,
1293
+ agentSelectorLabel,
1294
+ modelSelectorProps,
1295
+ isStreaming,
1296
+ onStop,
1297
+ stopLabel,
1151
1298
  onMessageSent,
1152
1299
  onMessageEdited,
1153
1300
  onConversationClosed,
@@ -1155,8 +1302,116 @@ function SuperChat({
1155
1302
  onBack
1156
1303
  }) {
1157
1304
  const headingId = React3__namespace.useId();
1305
+ const [internalView, setInternalView] = React3__namespace.useState({
1306
+ conversationId: conversation.id,
1307
+ view: defaultView
1308
+ });
1309
+ const activeView = view ?? (internalView.conversationId === conversation.id ? internalView.view : "thread");
1310
+ const labels = {
1311
+ backToConversation: "Back to conversation",
1312
+ openMedia: "Open in media feed",
1313
+ playMedia: "Play",
1314
+ unknownAuthor: "Unknown",
1315
+ ...mediaLabels
1316
+ };
1317
+ const mediaItems = React3__namespace.useMemo(() => {
1318
+ const items = getConversationMediaItems(conversation);
1319
+ return order === "desc" ? items.reverse() : items;
1320
+ }, [conversation, order]);
1321
+ const [mediaSelection, setMediaSelection] = React3__namespace.useState();
1322
+ const [manualPlaybackRequest, setManualPlaybackRequest] = React3__namespace.useState();
1323
+ const playbackRequestCounter = React3__namespace.useRef(0);
1324
+ const mediaFeedRef = React3__namespace.useRef(null);
1325
+ const backToConversationRef = React3__namespace.useRef(null);
1326
+ const focusMediaOnOpenRef = React3__namespace.useRef(false);
1327
+ const focusThreadOnBackRef = React3__namespace.useRef(false);
1328
+ const mediaReturnTargetRef = React3__namespace.useRef(void 0);
1329
+ const mediaContextRef = React3__namespace.useRef({
1330
+ conversation,
1331
+ view,
1332
+ onViewChange,
1333
+ mediaFeedProps,
1334
+ mediaItems
1335
+ });
1336
+ mediaContextRef.current = {
1337
+ conversation,
1338
+ view,
1339
+ onViewChange,
1340
+ mediaFeedProps,
1341
+ mediaItems
1342
+ };
1343
+ const setView = React3__namespace.useCallback((next) => {
1344
+ const context = mediaContextRef.current;
1345
+ if (context.view === void 0)
1346
+ setInternalView({ conversationId: context.conversation.id, view: next });
1347
+ context.onViewChange?.(next, { conversation: context.conversation });
1348
+ }, []);
1349
+ const handleMediaSelection = React3__namespace.useCallback((item) => {
1350
+ setMediaSelection({ conversationId: item.conversationId, itemId: item.id });
1351
+ mediaContextRef.current.mediaFeedProps?.onActiveItemChange?.(item);
1352
+ }, []);
1353
+ const handleOpenMedia = React3__namespace.useCallback(
1354
+ (messageId, attachmentId, play = false) => {
1355
+ const item = mediaContextRef.current.mediaItems.find(
1356
+ (candidate) => candidate.message.id === messageId && candidate.attachment.id === attachmentId
1357
+ );
1358
+ if (!item) return;
1359
+ handleMediaSelection(item);
1360
+ mediaReturnTargetRef.current = {
1361
+ conversationId: item.conversationId,
1362
+ messageId,
1363
+ attachmentId
1364
+ };
1365
+ focusMediaOnOpenRef.current = true;
1366
+ setManualPlaybackRequest(
1367
+ play ? {
1368
+ conversationId: item.conversationId,
1369
+ itemId: item.id,
1370
+ requestId: ++playbackRequestCounter.current
1371
+ } : void 0
1372
+ );
1373
+ setView("media");
1374
+ },
1375
+ [handleMediaSelection, setView]
1376
+ );
1377
+ const handleBackToConversation = React3__namespace.useCallback(() => {
1378
+ focusMediaOnOpenRef.current = false;
1379
+ focusThreadOnBackRef.current = true;
1380
+ setManualPlaybackRequest(void 0);
1381
+ setView("thread");
1382
+ }, [setView]);
1383
+ const hostPlaybackRequest = mediaFeedProps?.playbackRequest;
1384
+ const hostPlaybackKey = hostPlaybackRequest ? `${hostPlaybackRequest.itemId}\0${hostPlaybackRequest.requestId}` : void 0;
1158
1385
  React3__namespace.useEffect(() => {
1159
- chunkX4XPNTCZ_cjs.notifyComposerMigrationOnce("SuperChat");
1386
+ if (hostPlaybackKey === void 0) return;
1387
+ setManualPlaybackRequest(void 0);
1388
+ }, [hostPlaybackKey]);
1389
+ React3__namespace.useEffect(() => {
1390
+ if (internalView.conversationId !== conversation.id) {
1391
+ setInternalView({ conversationId: conversation.id, view: "thread" });
1392
+ }
1393
+ if (mediaReturnTargetRef.current?.conversationId !== conversation.id) {
1394
+ mediaReturnTargetRef.current = void 0;
1395
+ focusMediaOnOpenRef.current = false;
1396
+ focusThreadOnBackRef.current = false;
1397
+ setManualPlaybackRequest(void 0);
1398
+ }
1399
+ }, [conversation.id, internalView.conversationId]);
1400
+ React3__namespace.useEffect(() => {
1401
+ if (activeView !== "media" || !focusMediaOnOpenRef.current) return;
1402
+ const target = mediaFeedRef.current?.querySelector(
1403
+ 'article[tabindex="0"]'
1404
+ ) ?? mediaFeedRef.current?.querySelector('[role="feed"]');
1405
+ if (target) focusMediaOnOpenRef.current = false;
1406
+ (target ?? backToConversationRef.current)?.focus({ preventScroll: true });
1407
+ }, [
1408
+ activeView,
1409
+ mediaFeedProps?.loading,
1410
+ mediaFeedProps?.error,
1411
+ mediaItems.length
1412
+ ]);
1413
+ React3__namespace.useEffect(() => {
1414
+ chunkU2RS574O_cjs.notifyComposerMigrationOnce("SuperChat");
1160
1415
  }, []);
1161
1416
  const renderText = React3__namespace.useMemo(
1162
1417
  () => renderTextContent ?? createMarkdownRenderer({
@@ -1165,7 +1420,7 @@ function SuperChat({
1165
1420
  }),
1166
1421
  [renderTextContent, renderPlugins, trustedContent]
1167
1422
  );
1168
- const prefersReducedMotion = chunk6HFFWEM3_cjs.usePrefersReducedMotion();
1423
+ const prefersReducedMotion = chunkYW2AKBLS_cjs.usePrefersReducedMotion();
1169
1424
  const {
1170
1425
  containerRef: threadRef,
1171
1426
  contentRef: threadContentRef,
@@ -1174,12 +1429,36 @@ function SuperChat({
1174
1429
  anchorToTurnStart,
1175
1430
  followIfPinned,
1176
1431
  stopFollowing
1177
- } = chunkVPTASZ2O_cjs.useStickToBottom({ disabled: order === "desc" });
1432
+ } = chunkVPTASZ2O_cjs.useStickToBottom({
1433
+ disabled: order === "desc" || activeView === "media"
1434
+ });
1435
+ React3__namespace.useEffect(() => {
1436
+ if (activeView !== "thread") return;
1437
+ setManualPlaybackRequest(void 0);
1438
+ if (!focusThreadOnBackRef.current) return;
1439
+ focusThreadOnBackRef.current = false;
1440
+ const source = mediaReturnTargetRef.current;
1441
+ const launchId = source ? JSON.stringify([source.messageId, source.attachmentId]) : void 0;
1442
+ const launcher = source?.conversationId === conversation.id ? Array.from(
1443
+ threadRef.current?.querySelectorAll(
1444
+ "[data-media-launch-id]"
1445
+ ) ?? []
1446
+ ).find((button) => button.dataset.mediaLaunchId === launchId) : void 0;
1447
+ (launcher ?? threadRef.current)?.focus({ preventScroll: true });
1448
+ }, [activeView, conversation.id, threadRef]);
1178
1449
  const [hasNewBelow, setHasNewBelow] = React3__namespace.useState(false);
1179
1450
  const [turnStartId, setTurnStartId] = React3__namespace.useState(null);
1180
1451
  const [turnMinHeight, setTurnMinHeight] = React3__namespace.useState();
1181
1452
  const anchoredTurnRef = React3__namespace.useRef(null);
1453
+ const threadSnapshotRef = React3__namespace.useRef(void 0);
1454
+ const atBottomRef = React3__namespace.useRef(isAtBottom);
1455
+ atBottomRef.current = isAtBottom;
1456
+ const pendingMediaOwnSendRef = React3__namespace.useRef(false);
1457
+ const pendingMediaAppendRef = React3__namespace.useRef(false);
1182
1458
  React3__namespace.useEffect(() => {
1459
+ threadSnapshotRef.current = void 0;
1460
+ pendingMediaOwnSendRef.current = false;
1461
+ pendingMediaAppendRef.current = false;
1183
1462
  setTurnStartId(null);
1184
1463
  anchoredTurnRef.current = null;
1185
1464
  if (order === "desc") {
@@ -1213,6 +1492,7 @@ function SuperChat({
1213
1492
  if (threadLength === prevThreadLengthRef.current) return;
1214
1493
  const grew = threadLength > prevThreadLengthRef.current;
1215
1494
  prevThreadLengthRef.current = threadLength;
1495
+ if (grew && activeView === "media") pendingMediaAppendRef.current = true;
1216
1496
  if (order === "desc") {
1217
1497
  const el = threadRef.current;
1218
1498
  if (el) el.scrollTop = 0;
@@ -1228,6 +1508,7 @@ function SuperChat({
1228
1508
  }
1229
1509
  }
1230
1510
  if (turnStart) {
1511
+ if (activeView === "media") pendingMediaOwnSendRef.current = true;
1231
1512
  if (virtualized) {
1232
1513
  scrollToBottom("auto");
1233
1514
  } else {
@@ -1244,7 +1525,36 @@ function SuperChat({
1244
1525
  } else {
1245
1526
  followIfPinned("auto");
1246
1527
  }
1247
- }, [threadLength, order, isAtBottom, conversation.id]);
1528
+ }, [threadLength, order, isAtBottom, conversation.id, activeView]);
1529
+ React3__namespace.useLayoutEffect(() => {
1530
+ if (activeView !== "thread") return;
1531
+ const container = threadRef.current;
1532
+ if (!container) return;
1533
+ const snapshot = threadSnapshotRef.current;
1534
+ const sameThread = snapshot?.conversationId === conversation.id && snapshot.order === order;
1535
+ const ownSend = pendingMediaOwnSendRef.current;
1536
+ const appended = pendingMediaAppendRef.current;
1537
+ pendingMediaOwnSendRef.current = false;
1538
+ pendingMediaAppendRef.current = false;
1539
+ if (order === "desc") {
1540
+ container.scrollTop = sameThread && !appended ? snapshot.scrollTop : 0;
1541
+ } else if (ownSend && !virtualized) ; else if (sameThread && !ownSend && (!snapshot.atBottom || !appended)) {
1542
+ container.scrollTop = snapshot.scrollTop;
1543
+ if (!snapshot.atBottom) stopFollowing();
1544
+ } else {
1545
+ scrollToBottom("auto");
1546
+ if ([...conversation.thread].sort(byTime).at(-1)?.status === "streaming")
1547
+ stopFollowing();
1548
+ }
1549
+ return () => {
1550
+ threadSnapshotRef.current = {
1551
+ conversationId: conversation.id,
1552
+ order,
1553
+ scrollTop: container.scrollTop,
1554
+ atBottom: atBottomRef.current
1555
+ };
1556
+ };
1557
+ }, [conversation.id, order, activeView, virtualized]);
1248
1558
  React3__namespace.useLayoutEffect(() => {
1249
1559
  if (!turnStartId || anchoredTurnRef.current === turnStartId) return;
1250
1560
  const container = threadRef.current;
@@ -1266,7 +1576,8 @@ function SuperChat({
1266
1576
  turnMinHeight,
1267
1577
  anchorToTurnStart,
1268
1578
  prefersReducedMotion,
1269
- threadRef
1579
+ threadRef,
1580
+ activeView
1270
1581
  ]);
1271
1582
  React3__namespace.useEffect(() => {
1272
1583
  prevMessageIdsRef.current = new Set(
@@ -1319,7 +1630,12 @@ function SuperChat({
1319
1630
  onReferenceClick,
1320
1631
  editable,
1321
1632
  onMessageEdited: handleMessageEdited,
1322
- defaultCopyFormat
1633
+ defaultCopyFormat,
1634
+ onOpenMedia: handleOpenMedia,
1635
+ openMediaLabel: labels.openMedia,
1636
+ playMediaLabel: labels.playMedia,
1637
+ mediaErrorLabel: mediaFeedProps?.labels?.mediaError,
1638
+ mediaRetryLabel: mediaFeedProps?.labels?.retry
1323
1639
  },
1324
1640
  m.id
1325
1641
  );
@@ -1387,7 +1703,7 @@ function SuperChat({
1387
1703
  className
1388
1704
  ),
1389
1705
  children: [
1390
- /* @__PURE__ */ jsxRuntime.jsxs(
1706
+ showHeader ? /* @__PURE__ */ jsxRuntime.jsxs(
1391
1707
  "header",
1392
1708
  {
1393
1709
  "data-slot": "superchat-header",
@@ -1446,13 +1762,62 @@ function SuperChat({
1446
1762
  onClick: () => onConversationClosed(conversation),
1447
1763
  "aria-label": "Close conversation",
1448
1764
  className: "rounded-md p-1 text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800",
1449
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkFS4VZUFV_cjs.CloseIcon, {})
1765
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.CloseIcon, {})
1450
1766
  }
1451
1767
  )
1452
1768
  ]
1453
1769
  }
1770
+ ) : (
1771
+ // Keeps the panel's aria-labelledby reference valid without a visible header.
1772
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { id: headingId, className: "sr-only", children: conversation.title })
1454
1773
  ),
1455
- /* @__PURE__ */ jsxRuntime.jsxs(
1774
+ activeView === "media" ? /* @__PURE__ */ jsxRuntime.jsxs(
1775
+ "div",
1776
+ {
1777
+ "data-slot": "superchat-media-view",
1778
+ className: "flex min-h-0 flex-1 flex-col",
1779
+ children: [
1780
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.ButtonGroup, { className: "justify-start", children: /* @__PURE__ */ jsxRuntime.jsx(
1781
+ chunkANMX7YDL_cjs.Button,
1782
+ {
1783
+ ref: backToConversationRef,
1784
+ variant: "ghost",
1785
+ size: "sm",
1786
+ leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
1787
+ lucideReact.ArrowLeft,
1788
+ {
1789
+ className: "size-4 rtl:rotate-180",
1790
+ "aria-hidden": "true"
1791
+ }
1792
+ ),
1793
+ onClick: handleBackToConversation,
1794
+ children: labels.backToConversation
1795
+ }
1796
+ ) }) }),
1797
+ /* @__PURE__ */ React3.createElement(
1798
+ chunkAJPFQF3H_cjs.MediaFeed,
1799
+ {
1800
+ ...mediaFeedProps,
1801
+ ref: mediaFeedRef,
1802
+ key: conversation.id,
1803
+ items: mediaItems,
1804
+ getId: (item) => item.id,
1805
+ getMedia: (item) => item.attachment,
1806
+ getTitle: (item) => item.attachment.title ?? "",
1807
+ getCaption: (item) => item.attachment.caption ?? item.message.text,
1808
+ getAuthor: (item) => ({
1809
+ name: item.participant?.name ?? labels.unknownAuthor,
1810
+ avatar: item.participant?.avatar
1811
+ }),
1812
+ activeItemId: mediaFeedProps?.activeItemId ?? (mediaSelection?.conversationId === conversation.id ? mediaSelection.itemId : void 0),
1813
+ onActiveItemChange: handleMediaSelection,
1814
+ playbackRequest: manualPlaybackRequest?.conversationId === conversation.id ? manualPlaybackRequest : mediaFeedProps?.playbackRequest,
1815
+ className: chunkS5RVSXDV_cjs.cn("min-h-0 flex-1", mediaFeedProps?.className)
1816
+ }
1817
+ )
1818
+ ]
1819
+ }
1820
+ ) : /* @__PURE__ */ jsxRuntime.jsxs(
1456
1821
  "div",
1457
1822
  {
1458
1823
  "data-slot": "superchat-thread-viewport",
@@ -1470,6 +1835,11 @@ function SuperChat({
1470
1835
  editable,
1471
1836
  onMessageEdited: handleMessageEdited,
1472
1837
  defaultCopyFormat,
1838
+ onOpenMedia: handleOpenMedia,
1839
+ openMediaLabel: labels.openMedia,
1840
+ playMediaLabel: labels.playMedia,
1841
+ mediaErrorLabel: mediaFeedProps?.labels?.mediaError,
1842
+ mediaRetryLabel: mediaFeedProps?.labels?.retry,
1473
1843
  scrollRef: threadRef,
1474
1844
  contentRef: threadContentRef,
1475
1845
  containerProps: {
@@ -1506,32 +1876,51 @@ function SuperChat({
1506
1876
  ] })
1507
1877
  }
1508
1878
  ),
1509
- order !== "desc" && !isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
1510
- chunkFS4VZUFV_cjs.JumpToBottomButton,
1879
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIEY3ZJIT_cjs.AnimatedPresence, { children: order !== "desc" && !isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
1880
+ chunkIEY3ZJIT_cjs.Animated,
1511
1881
  {
1512
- dataSlot: "superchat-jump-to-bottom",
1513
- hasNewMessages: hasNewBelow,
1514
- onClick: handleJumpToBottom
1515
- }
1516
- )
1882
+ preset: "fade",
1883
+ mode: "presence",
1884
+ className: "absolute inset-x-0 bottom-0 z-20",
1885
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1886
+ chunkXRVMYT5G_cjs.JumpToBottomButton,
1887
+ {
1888
+ dataSlot: "superchat-jump-to-bottom",
1889
+ hasNewMessages: hasNewBelow,
1890
+ onClick: handleJumpToBottom
1891
+ }
1892
+ )
1893
+ },
1894
+ "jump-to-bottom"
1895
+ ) })
1517
1896
  ]
1518
1897
  }
1519
1898
  ),
1520
1899
  /* @__PURE__ */ jsxRuntime.jsx(
1521
- chunkX4XPNTCZ_cjs.ChatComposer,
1900
+ chunkU2RS574O_cjs.ChatComposer,
1522
1901
  {
1523
1902
  value: draft,
1524
1903
  onValueChange: handleDraftChange,
1525
1904
  onSend: handleComposerSend,
1526
1905
  disabled: readOnly,
1527
1906
  className: "px-4 pb-4",
1528
- placeholder: readOnly ? "Read-only conversation" : "Type a message\u2026 use @ to address an agent",
1907
+ placeholder: readOnly ? "Read-only conversation" : placeholder ?? "Type a message\u2026 use @ to address an agent",
1529
1908
  mentionOptions,
1530
- allowAttachments: !readOnly,
1909
+ allowAttachments: !readOnly && (allowAttachments ?? true),
1531
1910
  acceptedFileTypes: composerAccept,
1532
1911
  maxFileSize: 25 * 1024 * 1024,
1533
1912
  maxLength: 1e5,
1534
- inputLabel: "Message"
1913
+ inputLabel: "Message",
1914
+ showAgentSelector: !!agents?.length,
1915
+ agents,
1916
+ selectedAgent,
1917
+ onAgentChange,
1918
+ agentSelectorLabel,
1919
+ showModelSelector: !!modelSelectorProps,
1920
+ modelSelectorProps,
1921
+ isStreaming,
1922
+ onStop,
1923
+ stopLabel
1535
1924
  }
1536
1925
  )
1537
1926
  ]
@@ -1549,6 +1938,8 @@ function SuperChatConversations({
1549
1938
  const [internalActive, setInternalActive] = React3__namespace.useState(
1550
1939
  defaultActiveConversationId ?? conversations[0]?.id
1551
1940
  );
1941
+ const [hasMounted, setHasMounted] = React3__namespace.useState(false);
1942
+ React3__namespace.useEffect(() => setHasMounted(true), []);
1552
1943
  const requestedId = activeConversationId ?? internalActive;
1553
1944
  const activeId = conversations.some((c) => c.id === requestedId) ? requestedId : conversations[0]?.id;
1554
1945
  const sortedConversations = React3__namespace.useMemo(
@@ -1603,10 +1994,21 @@ function SuperChatConversations({
1603
1994
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate font-medium", children: c.title }),
1604
1995
  last?.text && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-neutral-600 dark:text-neutral-400", children: last.text })
1605
1996
  ] }),
1606
- !!c.unread && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "bg-primary-600 ms-1 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-[10px] font-semibold text-white", children: [
1607
- c.unread,
1608
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: " unread messages" })
1609
- ] })
1997
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIEY3ZJIT_cjs.AnimatedPresence, { initial: hasMounted, children: !!c.unread && /* @__PURE__ */ jsxRuntime.jsxs(
1998
+ chunkIEY3ZJIT_cjs.Animated,
1999
+ {
2000
+ as: "span",
2001
+ preset: "pop",
2002
+ mode: "presence",
2003
+ "data-slot": "superchat-unread-badge",
2004
+ className: "bg-primary-600 ms-1 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-[10px] font-semibold text-white",
2005
+ children: [
2006
+ c.unread,
2007
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: " unread messages" })
2008
+ ]
2009
+ },
2010
+ "unread"
2011
+ ) })
1610
2012
  ]
1611
2013
  }
1612
2014
  ) }, c.id);
@@ -1619,6 +2021,11 @@ function SuperChatConversations({
1619
2021
  }
1620
2022
  function SuperChatInbox({
1621
2023
  conversations,
2024
+ view,
2025
+ defaultView,
2026
+ onViewChange,
2027
+ mediaFeedProps,
2028
+ mediaLabels,
1622
2029
  activeConversationId,
1623
2030
  defaultActiveConversationId,
1624
2031
  currentParticipantId,
@@ -1680,6 +2087,11 @@ function SuperChatInbox({
1680
2087
  SuperChat,
1681
2088
  {
1682
2089
  conversation: active,
2090
+ view,
2091
+ defaultView,
2092
+ onViewChange,
2093
+ mediaFeedProps,
2094
+ mediaLabels,
1683
2095
  currentParticipantId,
1684
2096
  renderPlugins,
1685
2097
  renderTextContent,
@@ -1727,5 +2139,6 @@ exports.SuperChat = SuperChat;
1727
2139
  exports.SuperChatConversations = SuperChatConversations;
1728
2140
  exports.SuperChatInbox = SuperChatInbox;
1729
2141
  exports.createMarkdownRenderer = createMarkdownRenderer;
2142
+ exports.getConversationMediaItems = getConversationMediaItems;
1730
2143
  //# sourceMappingURL=index.cjs.map
1731
2144
  //# sourceMappingURL=index.cjs.map