@mieweb/ui 0.10.0-dev.2 → 0.10.0-dev.20

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 (398) hide show
  1. package/agent/mieweb-ui.instructions.md +13 -1
  2. package/dist/CsvBlock-FX5YNGNE.cjs +17 -0
  3. package/dist/{CsvBlock-ROJCKJDP.cjs.map → CsvBlock-FX5YNGNE.cjs.map} +1 -1
  4. package/dist/CsvBlock-VLMG7GUO.js +8 -0
  5. package/dist/{CsvBlock-UWPMTLE2.js.map → CsvBlock-VLMG7GUO.js.map} +1 -1
  6. package/dist/HtmlPreviewBlock-5JE7L3GR.js +8 -0
  7. package/dist/{HtmlPreviewBlock-ME5U3XNS.js.map → HtmlPreviewBlock-5JE7L3GR.js.map} +1 -1
  8. package/dist/HtmlPreviewBlock-UO37JQ3K.cjs +17 -0
  9. package/dist/{HtmlPreviewBlock-DWFN6EUB.cjs.map → HtmlPreviewBlock-UO37JQ3K.cjs.map} +1 -1
  10. package/dist/Input-yN516s5_.d.cts +3 -0
  11. package/dist/Input-yN516s5_.d.ts +3 -0
  12. package/dist/MermaidBlock-3XHFBAMV.js +8 -0
  13. package/dist/{MermaidBlock-2B6CPD6Y.js.map → MermaidBlock-3XHFBAMV.js.map} +1 -1
  14. package/dist/MermaidBlock-RZ75RPZA.cjs +17 -0
  15. package/dist/{MermaidBlock-D2UC5M55.cjs.map → MermaidBlock-RZ75RPZA.cjs.map} +1 -1
  16. package/dist/SurveyBlock-MUVJ3JUI.js +8 -0
  17. package/dist/{SurveyBlock-4DO62RBT.js.map → SurveyBlock-MUVJ3JUI.js.map} +1 -1
  18. package/dist/SurveyBlock-VH47YXZC.cjs +17 -0
  19. package/dist/{SurveyBlock-4CD4AYMJ.cjs.map → SurveyBlock-VH47YXZC.cjs.map} +1 -1
  20. package/dist/ag-grid.d.cts +142 -1
  21. package/dist/ag-grid.d.ts +142 -1
  22. package/dist/{chunk-ACCAXVOG.js → chunk-2ABWFQQH.js} +133 -55
  23. package/dist/chunk-2ABWFQQH.js.map +1 -0
  24. package/dist/{chunk-Y5HFM7LO.js → chunk-2BARVD4C.js} +3 -3
  25. package/dist/{chunk-Y5HFM7LO.js.map → chunk-2BARVD4C.js.map} +1 -1
  26. package/dist/{chunk-G3JX3UAU.cjs → chunk-3KPDQG5O.cjs} +5 -5
  27. package/dist/{chunk-G3JX3UAU.cjs.map → chunk-3KPDQG5O.cjs.map} +1 -1
  28. package/dist/chunk-3YBS4WUQ.js +52 -0
  29. package/dist/chunk-3YBS4WUQ.js.map +1 -0
  30. package/dist/chunk-4HC2IBOX.js +258 -0
  31. package/dist/chunk-4HC2IBOX.js.map +1 -0
  32. package/dist/chunk-4IS3QCOQ.cjs +453 -0
  33. package/dist/chunk-4IS3QCOQ.cjs.map +1 -0
  34. package/dist/chunk-4NCDU5IG.cjs +56 -0
  35. package/dist/chunk-4NCDU5IG.cjs.map +1 -0
  36. package/dist/{chunk-E4IBHYJ7.cjs → chunk-6N6LIAUJ.cjs} +9 -9
  37. package/dist/{chunk-E4IBHYJ7.cjs.map → chunk-6N6LIAUJ.cjs.map} +1 -1
  38. package/dist/chunk-74ENCTIK.js +162 -0
  39. package/dist/chunk-74ENCTIK.js.map +1 -0
  40. package/dist/{chunk-GOALNQZ2.js → chunk-7YO7DNUV.js} +4 -83
  41. package/dist/chunk-7YO7DNUV.js.map +1 -0
  42. package/dist/{chunk-VILW53UZ.js → chunk-BIQ7GSO2.js} +3 -3
  43. package/dist/{chunk-VILW53UZ.js.map → chunk-BIQ7GSO2.js.map} +1 -1
  44. package/dist/chunk-BM35CACB.js +148 -0
  45. package/dist/chunk-BM35CACB.js.map +1 -0
  46. package/dist/{chunk-XI34EGK5.cjs → chunk-CPPUT74P.cjs} +9 -9
  47. package/dist/{chunk-XI34EGK5.cjs.map → chunk-CPPUT74P.cjs.map} +1 -1
  48. package/dist/{chunk-WNM7IZJ7.js → chunk-DSB4DKWG.js} +7 -7
  49. package/dist/{chunk-WNM7IZJ7.js.map → chunk-DSB4DKWG.js.map} +1 -1
  50. package/dist/chunk-DXEPYK3I.cjs +92 -0
  51. package/dist/chunk-DXEPYK3I.cjs.map +1 -0
  52. package/dist/{chunk-JI244Y7C.js → chunk-EK3BCET6.js} +57 -4
  53. package/dist/chunk-EK3BCET6.js.map +1 -0
  54. package/dist/{chunk-5JJ2DAE4.js → chunk-ENMXHZNE.js} +3 -3
  55. package/dist/{chunk-5JJ2DAE4.js.map → chunk-ENMXHZNE.js.map} +1 -1
  56. package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
  57. package/dist/chunk-F4N67NAF.js.map +1 -0
  58. package/dist/{chunk-VKELAMAZ.js → chunk-FBLVPM2K.js} +3 -3
  59. package/dist/{chunk-VKELAMAZ.js.map → chunk-FBLVPM2K.js.map} +1 -1
  60. package/dist/{chunk-VU6UTJRM.js → chunk-FIKO4WR6.js} +3 -3
  61. package/dist/{chunk-VU6UTJRM.js.map → chunk-FIKO4WR6.js.map} +1 -1
  62. package/dist/{chunk-DEDN5HAG.js → chunk-FZURBQJ2.js} +3 -3
  63. package/dist/{chunk-DEDN5HAG.js.map → chunk-FZURBQJ2.js.map} +1 -1
  64. package/dist/{chunk-ENKFJJZX.js → chunk-G45FBKKV.js} +5 -5
  65. package/dist/{chunk-ENKFJJZX.js.map → chunk-G45FBKKV.js.map} +1 -1
  66. package/dist/{chunk-JHULS3EC.js → chunk-GBUVIGD5.js} +89 -3
  67. package/dist/chunk-GBUVIGD5.js.map +1 -0
  68. package/dist/chunk-GU5OS7JJ.cjs +281 -0
  69. package/dist/chunk-GU5OS7JJ.cjs.map +1 -0
  70. package/dist/{chunk-V7D3YGUV.js → chunk-GVLNXPJX.js} +4 -4
  71. package/dist/{chunk-V7D3YGUV.js.map → chunk-GVLNXPJX.js.map} +1 -1
  72. package/dist/chunk-GVM6DTR5.js +90 -0
  73. package/dist/chunk-GVM6DTR5.js.map +1 -0
  74. package/dist/{chunk-3QEVGSFG.cjs → chunk-GYXUS65N.cjs} +5 -5
  75. package/dist/{chunk-3QEVGSFG.cjs.map → chunk-GYXUS65N.cjs.map} +1 -1
  76. package/dist/{chunk-WGPLUCBD.js → chunk-H2IAMSHK.js} +3 -3
  77. package/dist/{chunk-WGPLUCBD.js.map → chunk-H2IAMSHK.js.map} +1 -1
  78. package/dist/{chunk-7ZXAQTV4.cjs → chunk-HIZWOAWY.cjs} +8 -8
  79. package/dist/{chunk-7ZXAQTV4.cjs.map → chunk-HIZWOAWY.cjs.map} +1 -1
  80. package/dist/{chunk-ELPW32ZI.cjs → chunk-HQ4CGVWX.cjs} +41 -41
  81. package/dist/{chunk-ELPW32ZI.cjs.map → chunk-HQ4CGVWX.cjs.map} +1 -1
  82. package/dist/{chunk-6EN3IQQI.cjs → chunk-I4LXSHKO.cjs} +4 -4
  83. package/dist/{chunk-6EN3IQQI.cjs.map → chunk-I4LXSHKO.cjs.map} +1 -1
  84. package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
  85. package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
  86. package/dist/{chunk-2YCERQWC.js → chunk-IH55BEB3.js} +4 -4
  87. package/dist/{chunk-2YCERQWC.js.map → chunk-IH55BEB3.js.map} +1 -1
  88. package/dist/chunk-IT775BYG.js +179 -0
  89. package/dist/chunk-IT775BYG.js.map +1 -0
  90. package/dist/chunk-IYWG72DM.js +166 -0
  91. package/dist/chunk-IYWG72DM.js.map +1 -0
  92. package/dist/{chunk-IX6KFB3K.cjs → chunk-JELTRRR5.cjs} +9 -9
  93. package/dist/{chunk-IX6KFB3K.cjs.map → chunk-JELTRRR5.cjs.map} +1 -1
  94. package/dist/{chunk-FXO5ARBB.cjs → chunk-KDW6BD4O.cjs} +4 -4
  95. package/dist/{chunk-FXO5ARBB.cjs.map → chunk-KDW6BD4O.cjs.map} +1 -1
  96. package/dist/chunk-KHSFJTEX.js +1924 -0
  97. package/dist/chunk-KHSFJTEX.js.map +1 -0
  98. package/dist/{chunk-UV2FVNWT.cjs → chunk-LFPJ3OUM.cjs} +5 -5
  99. package/dist/{chunk-UV2FVNWT.cjs.map → chunk-LFPJ3OUM.cjs.map} +1 -1
  100. package/dist/{chunk-WNAA6CLE.cjs → chunk-LHBWRMNC.cjs} +94 -2
  101. package/dist/chunk-LHBWRMNC.cjs.map +1 -0
  102. package/dist/{chunk-X4XPNTCZ.cjs → chunk-LJZKEMAH.cjs} +135 -57
  103. package/dist/chunk-LJZKEMAH.cjs.map +1 -0
  104. package/dist/{chunk-2QKBTPUC.cjs → chunk-MQPG3KVK.cjs} +8 -8
  105. package/dist/{chunk-2QKBTPUC.cjs.map → chunk-MQPG3KVK.cjs.map} +1 -1
  106. package/dist/{chunk-WIAQQNFU.cjs → chunk-MYHV2ND3.cjs} +37 -3
  107. package/dist/chunk-MYHV2ND3.cjs.map +1 -0
  108. package/dist/{chunk-OE5CKRUC.js → chunk-MZNCLXXU.js} +4 -4
  109. package/dist/{chunk-OE5CKRUC.js.map → chunk-MZNCLXXU.js.map} +1 -1
  110. package/dist/{chunk-XEAT7XJG.cjs → chunk-N2CJJHHB.cjs} +4 -4
  111. package/dist/{chunk-XEAT7XJG.cjs.map → chunk-N2CJJHHB.cjs.map} +1 -1
  112. package/dist/chunk-N7C4OEP7.cjs +356 -0
  113. package/dist/chunk-N7C4OEP7.cjs.map +1 -0
  114. package/dist/chunk-OGNADPM4.cjs +170 -0
  115. package/dist/chunk-OGNADPM4.cjs.map +1 -0
  116. package/dist/{chunk-5GUOOLPR.cjs → chunk-P5CMZZRZ.cjs} +5 -5
  117. package/dist/{chunk-5GUOOLPR.cjs.map → chunk-P5CMZZRZ.cjs.map} +1 -1
  118. package/dist/{chunk-U42F3HLE.cjs → chunk-QNDP6PE5.cjs} +57 -4
  119. package/dist/chunk-QNDP6PE5.cjs.map +1 -0
  120. package/dist/{chunk-H4ZXMQQW.js → chunk-QOVJ6Z6R.js} +3 -3
  121. package/dist/{chunk-H4ZXMQQW.js.map → chunk-QOVJ6Z6R.js.map} +1 -1
  122. package/dist/{chunk-GD7EBGC4.cjs → chunk-R2O72G6Z.cjs} +19 -19
  123. package/dist/{chunk-GD7EBGC4.cjs.map → chunk-R2O72G6Z.cjs.map} +1 -1
  124. package/dist/{chunk-TMMVIUUN.js → chunk-R6KPWIGO.js} +4 -4
  125. package/dist/{chunk-TMMVIUUN.js.map → chunk-R6KPWIGO.js.map} +1 -1
  126. package/dist/{chunk-VPWJCJCX.cjs → chunk-S45EERW3.cjs} +5 -5
  127. package/dist/{chunk-VPWJCJCX.cjs.map → chunk-S45EERW3.cjs.map} +1 -1
  128. package/dist/{chunk-WNZAYBVB.cjs → chunk-SQ2D7AON.cjs} +45 -45
  129. package/dist/{chunk-WNZAYBVB.cjs.map → chunk-SQ2D7AON.cjs.map} +1 -1
  130. package/dist/{chunk-P2CA3XGI.js → chunk-SYRLCTDV.js} +3 -3
  131. package/dist/{chunk-P2CA3XGI.js.map → chunk-SYRLCTDV.js.map} +1 -1
  132. package/dist/{chunk-7ZDPD5ZX.cjs → chunk-T4L7Q5FA.cjs} +7 -7
  133. package/dist/{chunk-7ZDPD5ZX.cjs.map → chunk-T4L7Q5FA.cjs.map} +1 -1
  134. package/dist/{chunk-ZGRCSNPK.js → chunk-TF7YWJHU.js} +3 -3
  135. package/dist/{chunk-ZGRCSNPK.js.map → chunk-TF7YWJHU.js.map} +1 -1
  136. package/dist/{chunk-2IZLKPUW.js → chunk-THLIL6PY.js} +3 -3
  137. package/dist/{chunk-2IZLKPUW.js.map → chunk-THLIL6PY.js.map} +1 -1
  138. package/dist/{chunk-N6IY47YA.cjs → chunk-TTSSUOEV.cjs} +8 -8
  139. package/dist/{chunk-N6IY47YA.cjs.map → chunk-TTSSUOEV.cjs.map} +1 -1
  140. package/dist/{chunk-5MCBWTIF.cjs → chunk-TYE5K5WV.cjs} +4 -4
  141. package/dist/{chunk-5MCBWTIF.cjs.map → chunk-TYE5K5WV.cjs.map} +1 -1
  142. package/dist/{chunk-22CYDCXA.js → chunk-TZJQB4P2.js} +37 -4
  143. package/dist/chunk-TZJQB4P2.js.map +1 -0
  144. package/dist/{chunk-VOKVG3ER.js → chunk-UBSH27C2.js} +4 -4
  145. package/dist/{chunk-VOKVG3ER.js.map → chunk-UBSH27C2.js.map} +1 -1
  146. package/dist/chunk-VINZZQBD.cjs +323 -0
  147. package/dist/chunk-VINZZQBD.cjs.map +1 -0
  148. package/dist/chunk-VPTASZ2O.cjs +171 -0
  149. package/dist/chunk-VPTASZ2O.cjs.map +1 -0
  150. package/dist/{chunk-SGFYA22I.cjs → chunk-VYPPQPSZ.cjs} +7 -7
  151. package/dist/{chunk-SGFYA22I.cjs.map → chunk-VYPPQPSZ.cjs.map} +1 -1
  152. package/dist/chunk-WCDJFMZO.cjs +1967 -0
  153. package/dist/chunk-WCDJFMZO.cjs.map +1 -0
  154. package/dist/{chunk-VNYW4C4J.cjs → chunk-X6A27RGO.cjs} +4 -84
  155. package/dist/chunk-X6A27RGO.cjs.map +1 -0
  156. package/dist/chunk-XBTKZCZF.js +333 -0
  157. package/dist/chunk-XBTKZCZF.js.map +1 -0
  158. package/dist/chunk-XDIMTPZU.cjs +202 -0
  159. package/dist/chunk-XDIMTPZU.cjs.map +1 -0
  160. package/dist/chunk-XVW5DPPP.js +429 -0
  161. package/dist/chunk-XVW5DPPP.js.map +1 -0
  162. package/dist/chunk-Y4E2WRUR.cjs +188 -0
  163. package/dist/chunk-Y4E2WRUR.cjs.map +1 -0
  164. package/dist/chunk-Y4QNLW7W.js +300 -0
  165. package/dist/chunk-Y4QNLW7W.js.map +1 -0
  166. package/dist/{chunk-KZFBQ7GY.js → chunk-YU55JD35.js} +3 -3
  167. package/dist/{chunk-KZFBQ7GY.js.map → chunk-YU55JD35.js.map} +1 -1
  168. package/dist/{chunk-OD47TTAW.cjs → chunk-Z4JR23IB.cjs} +9 -9
  169. package/dist/{chunk-OD47TTAW.cjs.map → chunk-Z4JR23IB.cjs.map} +1 -1
  170. package/dist/{chunk-3M7TAXNR.js → chunk-ZTW4KODY.js} +3 -3
  171. package/dist/{chunk-3M7TAXNR.js.map → chunk-ZTW4KODY.js.map} +1 -1
  172. package/dist/{chunk-3QGS6CXD.js → chunk-ZYL4SNOR.js} +3 -3
  173. package/dist/{chunk-3QGS6CXD.js.map → chunk-ZYL4SNOR.js.map} +1 -1
  174. package/dist/components/Alert/index.d.cts +1 -1
  175. package/dist/components/Alert/index.d.ts +1 -1
  176. package/dist/components/AlertDialog/index.cjs +6 -5
  177. package/dist/components/AlertDialog/index.d.cts +28 -3
  178. package/dist/components/AlertDialog/index.d.ts +28 -3
  179. package/dist/components/AlertDialog/index.js +5 -4
  180. package/dist/components/AudioRecorder/index.d.cts +2 -2
  181. package/dist/components/AudioRecorder/index.d.ts +2 -2
  182. package/dist/components/Autocomplete/index.d.cts +8 -2
  183. package/dist/components/Autocomplete/index.d.ts +8 -2
  184. package/dist/components/Avatar/index.d.cts +1 -1
  185. package/dist/components/Avatar/index.d.ts +1 -1
  186. package/dist/components/Badge/index.d.cts +1 -1
  187. package/dist/components/Badge/index.d.ts +1 -1
  188. package/dist/components/BoardView/index.cjs +24 -0
  189. package/dist/components/BoardView/index.cjs.map +1 -0
  190. package/dist/components/BoardView/index.d.cts +129 -0
  191. package/dist/components/BoardView/index.d.ts +129 -0
  192. package/dist/components/BoardView/index.js +7 -0
  193. package/dist/components/BoardView/index.js.map +1 -0
  194. package/dist/components/Button/index.cjs +4 -3
  195. package/dist/components/Button/index.d.cts +2 -1
  196. package/dist/components/Button/index.d.ts +2 -1
  197. package/dist/components/Button/index.js +2 -1
  198. package/dist/components/CalendarView/index.cjs +23 -0
  199. package/dist/components/CalendarView/index.cjs.map +1 -0
  200. package/dist/components/CalendarView/index.d.cts +39 -0
  201. package/dist/components/CalendarView/index.d.ts +39 -0
  202. package/dist/components/CalendarView/index.js +10 -0
  203. package/dist/components/CalendarView/index.js.map +1 -0
  204. package/dist/components/Card/index.d.cts +3 -3
  205. package/dist/components/Card/index.d.ts +3 -3
  206. package/dist/components/Collapsible/index.cjs +5 -5
  207. package/dist/components/Collapsible/index.js +2 -2
  208. package/dist/components/CustomizableDashboard/index.cjs +10 -9
  209. package/dist/components/CustomizableDashboard/index.js +3 -2
  210. package/dist/components/Dropdown/index.cjs +9 -9
  211. package/dist/components/Dropdown/index.d.cts +2 -1
  212. package/dist/components/Dropdown/index.d.ts +2 -1
  213. package/dist/components/Dropdown/index.js +2 -2
  214. package/dist/components/FloatingWindow/index.cjs +5 -4
  215. package/dist/components/FloatingWindow/index.js +3 -2
  216. package/dist/components/GanttView/index.cjs +20 -0
  217. package/dist/components/GanttView/index.cjs.map +1 -0
  218. package/dist/components/GanttView/index.d.cts +36 -0
  219. package/dist/components/GanttView/index.d.ts +36 -0
  220. package/dist/components/GanttView/index.js +7 -0
  221. package/dist/components/GanttView/index.js.map +1 -0
  222. package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
  223. package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
  224. package/dist/components/ListView/index.cjs +23 -0
  225. package/dist/components/ListView/index.cjs.map +1 -0
  226. package/dist/components/ListView/index.d.cts +124 -0
  227. package/dist/components/ListView/index.d.ts +124 -0
  228. package/dist/components/ListView/index.js +10 -0
  229. package/dist/components/ListView/index.js.map +1 -0
  230. package/dist/components/Markdown/index.cjs +20 -19
  231. package/dist/components/Markdown/index.js +8 -7
  232. package/dist/components/MediaEditor/index.cjs +11 -10
  233. package/dist/components/MediaEditor/index.d.cts +91 -2
  234. package/dist/components/MediaEditor/index.d.ts +91 -2
  235. package/dist/components/MediaEditor/index.js +6 -5
  236. package/dist/components/MediaPlayer/index.cjs +6 -5
  237. package/dist/components/MediaPlayer/index.d.cts +1 -1
  238. package/dist/components/MediaPlayer/index.d.ts +1 -1
  239. package/dist/components/MediaPlayer/index.js +3 -2
  240. package/dist/components/MegaMenu/index.cjs +6 -5
  241. package/dist/components/MegaMenu/index.js +3 -2
  242. package/dist/components/Modal/index.cjs +10 -10
  243. package/dist/components/Modal/index.js +2 -2
  244. package/dist/components/Pagination/index.d.cts +1 -1
  245. package/dist/components/Pagination/index.d.ts +1 -1
  246. package/dist/components/PhoneInput/index.d.cts +36 -3
  247. package/dist/components/PhoneInput/index.d.ts +36 -3
  248. package/dist/components/Progress/index.d.cts +1 -1
  249. package/dist/components/Progress/index.d.ts +1 -1
  250. package/dist/components/Q/index.d.cts +2 -2
  251. package/dist/components/Q/index.d.ts +2 -2
  252. package/dist/components/QuickAction/index.d.cts +1 -1
  253. package/dist/components/QuickAction/index.d.ts +1 -1
  254. package/dist/components/RadialExplorer/index.cjs +4 -3
  255. package/dist/components/RadialExplorer/index.js +3 -2
  256. package/dist/components/RecordButton/index.d.cts +1 -1
  257. package/dist/components/RecordButton/index.d.ts +1 -1
  258. package/dist/components/RichTextEditor/index.cjs +8 -7
  259. package/dist/components/RichTextEditor/index.d.cts +7 -2
  260. package/dist/components/RichTextEditor/index.d.ts +7 -2
  261. package/dist/components/RichTextEditor/index.js +5 -4
  262. package/dist/components/ScrollArea/index.d.cts +1 -1
  263. package/dist/components/ScrollArea/index.d.ts +1 -1
  264. package/dist/components/SectionSpyNav/index.cjs +4 -3
  265. package/dist/components/SectionSpyNav/index.js +3 -2
  266. package/dist/components/Select/index.d.cts +1 -2
  267. package/dist/components/Select/index.d.ts +1 -2
  268. package/dist/components/Skeleton/index.d.cts +1 -1
  269. package/dist/components/Skeleton/index.d.ts +1 -1
  270. package/dist/components/Slider/index.d.cts +2 -2
  271. package/dist/components/Slider/index.d.ts +2 -2
  272. package/dist/components/Spinner/index.d.cts +2 -2
  273. package/dist/components/Spinner/index.d.ts +2 -2
  274. package/dist/components/SuperChat/index.cjs +478 -281
  275. package/dist/components/SuperChat/index.cjs.map +1 -1
  276. package/dist/components/SuperChat/index.d.cts +2 -4
  277. package/dist/components/SuperChat/index.d.ts +2 -4
  278. package/dist/components/SuperChat/index.js +468 -271
  279. package/dist/components/SuperChat/index.js.map +1 -1
  280. package/dist/components/SuperChat/plugins/index.cjs +5 -5
  281. package/dist/components/SuperChat/plugins/index.d.cts +2 -3
  282. package/dist/components/SuperChat/plugins/index.d.ts +2 -3
  283. package/dist/components/SuperChat/plugins/index.js +4 -4
  284. package/dist/components/Text/index.d.cts +3 -3
  285. package/dist/components/Text/index.d.ts +3 -3
  286. package/dist/components/Textarea/index.d.cts +1 -2
  287. package/dist/components/Textarea/index.d.ts +1 -2
  288. package/dist/components/ThemeProvider/index.d.cts +3 -1
  289. package/dist/components/ThemeProvider/index.d.ts +3 -1
  290. package/dist/components/TranscriptView/index.d.cts +85 -4
  291. package/dist/components/TranscriptView/index.d.ts +85 -4
  292. package/dist/components/ViewSet/index.cjs +24 -0
  293. package/dist/components/ViewSet/index.cjs.map +1 -0
  294. package/dist/components/ViewSet/index.d.cts +300 -0
  295. package/dist/components/ViewSet/index.d.ts +300 -0
  296. package/dist/components/ViewSet/index.js +15 -0
  297. package/dist/components/ViewSet/index.js.map +1 -0
  298. package/dist/components/ViewSwitcher/index.cjs +20 -0
  299. package/dist/components/ViewSwitcher/index.cjs.map +1 -0
  300. package/dist/components/ViewSwitcher/index.d.cts +57 -0
  301. package/dist/components/ViewSwitcher/index.d.ts +57 -0
  302. package/dist/components/ViewSwitcher/index.js +7 -0
  303. package/dist/components/ViewSwitcher/index.js.map +1 -0
  304. package/dist/datavis.cjs +3 -2
  305. package/dist/datavis.cjs.map +1 -1
  306. package/dist/datavis.d.cts +167 -13
  307. package/dist/datavis.d.ts +167 -13
  308. package/dist/datavis.js +2 -1
  309. package/dist/datavis.js.map +1 -1
  310. package/dist/esheet.cjs +9 -8
  311. package/dist/esheet.cjs.map +1 -1
  312. package/dist/esheet.d.cts +183 -1
  313. package/dist/esheet.d.ts +183 -1
  314. package/dist/esheet.js +6 -5
  315. package/dist/esheet.js.map +1 -1
  316. package/dist/hooks/index.cjs +49 -16
  317. package/dist/hooks/index.d.cts +590 -31
  318. package/dist/hooks/index.d.ts +590 -31
  319. package/dist/hooks/index.js +3 -2
  320. package/dist/index.cjs +1375 -1088
  321. package/dist/index.cjs.map +1 -1
  322. package/dist/index.d.cts +8596 -683
  323. package/dist/index.d.ts +8596 -683
  324. package/dist/index.js +433 -340
  325. package/dist/index.js.map +1 -1
  326. package/dist/kerebron.cjs +58 -19
  327. package/dist/kerebron.cjs.map +1 -1
  328. package/dist/kerebron.d.cts +37 -0
  329. package/dist/kerebron.d.ts +37 -0
  330. package/dist/kerebron.js +58 -19
  331. package/dist/kerebron.js.map +1 -1
  332. package/dist/motion.cjs +7 -7
  333. package/dist/motion.d.cts +186 -2
  334. package/dist/motion.d.ts +186 -2
  335. package/dist/motion.js +2 -2
  336. package/dist/q.d.cts +25 -3
  337. package/dist/q.d.ts +25 -3
  338. package/dist/{speaker-verify-5GTWAN5Y.cjs → speaker-verify-4NEJAK6C.cjs} +57 -90
  339. package/dist/speaker-verify-4NEJAK6C.cjs.map +1 -0
  340. package/dist/{speaker-verify-R67P433H.js → speaker-verify-AWSKI6DI.js} +57 -90
  341. package/dist/speaker-verify-AWSKI6DI.js.map +1 -0
  342. package/dist/styles/effects.css +33 -0
  343. package/dist/styles.css +1 -1
  344. package/dist/tailwind-preset.cjs +4 -4
  345. package/dist/tailwind-preset.js +1 -1
  346. package/dist/templates.cjs +103 -0
  347. package/dist/templates.cjs.map +1 -0
  348. package/dist/templates.d.cts +560 -0
  349. package/dist/templates.d.ts +560 -0
  350. package/dist/templates.js +10 -0
  351. package/dist/templates.js.map +1 -0
  352. package/dist/types-C3HQe74F.d.cts +86 -0
  353. package/dist/types-C3HQe74F.d.ts +86 -0
  354. package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
  355. package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
  356. package/dist/utils/index.d.cts +13 -2
  357. package/dist/utils/index.d.ts +13 -2
  358. package/package.json +21 -4
  359. package/dist/Animated-XmH6k8pZ.d.cts +0 -188
  360. package/dist/Animated-XmH6k8pZ.d.ts +0 -188
  361. package/dist/CsvBlock-ROJCKJDP.cjs +0 -16
  362. package/dist/CsvBlock-UWPMTLE2.js +0 -7
  363. package/dist/HtmlPreviewBlock-DWFN6EUB.cjs +0 -16
  364. package/dist/HtmlPreviewBlock-ME5U3XNS.js +0 -7
  365. package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
  366. package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
  367. package/dist/MermaidBlock-2B6CPD6Y.js +0 -7
  368. package/dist/MermaidBlock-D2UC5M55.cjs +0 -16
  369. package/dist/SurveyBlock-4CD4AYMJ.cjs +0 -16
  370. package/dist/SurveyBlock-4DO62RBT.js +0 -7
  371. package/dist/chunk-22CYDCXA.js.map +0 -1
  372. package/dist/chunk-ACCAXVOG.js.map +0 -1
  373. package/dist/chunk-GOALNQZ2.js.map +0 -1
  374. package/dist/chunk-JHULS3EC.js.map +0 -1
  375. package/dist/chunk-JI244Y7C.js.map +0 -1
  376. package/dist/chunk-NV2CWBI2.cjs.map +0 -1
  377. package/dist/chunk-U42F3HLE.cjs.map +0 -1
  378. package/dist/chunk-VNYW4C4J.cjs.map +0 -1
  379. package/dist/chunk-WIAQQNFU.cjs.map +0 -1
  380. package/dist/chunk-WNAA6CLE.cjs.map +0 -1
  381. package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
  382. package/dist/chunk-XCP454Q6.js.map +0 -1
  383. package/dist/html-MdxqSzjD.d.cts +0 -13
  384. package/dist/html-MdxqSzjD.d.ts +0 -13
  385. package/dist/orderRows-BUJYgSc7.d.cts +0 -221
  386. package/dist/orderRows-BUJYgSc7.d.ts +0 -221
  387. package/dist/speaker-verify-5GTWAN5Y.cjs.map +0 -1
  388. package/dist/speaker-verify-R67P433H.js.map +0 -1
  389. package/dist/transcript-Cg7uSW-C.d.cts +0 -84
  390. package/dist/transcript-Cg7uSW-C.d.ts +0 -84
  391. package/dist/types-CnPEwzlp.d.cts +0 -254
  392. package/dist/types-CnPEwzlp.d.ts +0 -254
  393. package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
  394. package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
  395. package/dist/useTheme-B9SWu6ui.d.cts +0 -24
  396. package/dist/useTheme-B9SWu6ui.d.ts +0 -24
  397. package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
  398. package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
@@ -1,84 +0,0 @@
1
- /**
2
- * Transcript schema for @mieweb/ui media components.
3
- *
4
- * Provider-agnostic and persistence-agnostic. Canonical time unit is
5
- * **milliseconds** (consumers with seconds-based data, e.g. osheet, adapt
6
- * at the boundary).
7
- *
8
- * Shared by TranscriptView, MediaEditor, and useTranscriptEdits.
9
- */
10
- /** Type of transcript word - 'word' for spoken content, 'silence' for detected gaps, 'silence-newline' for longer pauses */
11
- type WordType = 'word' | 'silence' | 'silence-newline';
12
- interface TranscriptWord {
13
- text: string;
14
- startMs: number;
15
- endMs: number;
16
- /** References Speaker.id when diarization is available */
17
- speakerId?: string;
18
- confidence?: number;
19
- /** Type of word: 'word' for spoken content, 'silence' for detected gaps. Defaults to 'word' */
20
- wordType?: WordType;
21
- }
22
- /** A diarized segment of contiguous speech (osheet-style granularity) */
23
- interface TranscriptSegment {
24
- text: string;
25
- startMs: number;
26
- endMs: number;
27
- /** References Speaker.id when diarization is available */
28
- speakerId?: string;
29
- words: TranscriptWord[];
30
- }
31
- interface Speaker {
32
- id: string;
33
- /** Display name (e.g. 'Clinician', 'Patient'). Hosts may remap via speakerLabels props. */
34
- name?: string;
35
- }
36
- interface Transcript {
37
- durationMs: number;
38
- speakers?: Speaker[];
39
- words: TranscriptWord[];
40
- segments?: TranscriptSegment[];
41
- }
42
- /**
43
- * An editable word that references the original transcript word.
44
- * Used in the edited timeline to track deletions and reordering.
45
- */
46
- interface EditableWord {
47
- /** Index into the SILENCE-INSERTED baseline timeline (transcript.words
48
- * with detected silence pseudo-words interleaved) — NOT into
49
- * transcript.words. -1 for split/inserted entries with no baseline slot.
50
- * Consumers persisting edits should key by this timeline. */
51
- originalIndex: number;
52
- /** The word data (from original transcript) */
53
- word: TranscriptWord;
54
- /** Whether this word is marked as deleted */
55
- deleted: boolean;
56
- /** Whether this word was inserted (pasted from clipboard) */
57
- inserted?: boolean;
58
- }
59
- /**
60
- * Represents a contiguous segment of playback from the original media.
61
- * Used when playing back an edited timeline with potentially reordered/deleted words.
62
- */
63
- interface PlaybackSegment {
64
- startMs: number;
65
- endMs: number;
66
- /** Indices into the editedWords array that this segment covers */
67
- editedIndices: number[];
68
- }
69
- /** Available playback speed multipliers */
70
- type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
71
- /** Array of all available speed options for dropdowns */
72
- declare const PLAYBACK_SPEEDS: PlaybackSpeed[];
73
- /**
74
- * A speed marker applied to a word in the transcript.
75
- * The speed applies from this word until the next speed marker or end of transcript.
76
- */
77
- interface SpeedMarker {
78
- /** Index in the editedWords array where the speed marker is placed */
79
- wordIndex: number;
80
- /** The playback speed multiplier */
81
- speed: PlaybackSpeed;
82
- }
83
-
84
- export { type EditableWord as E, type PlaybackSpeed as P, type SpeedMarker as S, type Transcript as T, type WordType as W, type PlaybackSegment as a, type TranscriptWord as b, PLAYBACK_SPEEDS as c, type Speaker as d, type TranscriptSegment as e };
@@ -1,84 +0,0 @@
1
- /**
2
- * Transcript schema for @mieweb/ui media components.
3
- *
4
- * Provider-agnostic and persistence-agnostic. Canonical time unit is
5
- * **milliseconds** (consumers with seconds-based data, e.g. osheet, adapt
6
- * at the boundary).
7
- *
8
- * Shared by TranscriptView, MediaEditor, and useTranscriptEdits.
9
- */
10
- /** Type of transcript word - 'word' for spoken content, 'silence' for detected gaps, 'silence-newline' for longer pauses */
11
- type WordType = 'word' | 'silence' | 'silence-newline';
12
- interface TranscriptWord {
13
- text: string;
14
- startMs: number;
15
- endMs: number;
16
- /** References Speaker.id when diarization is available */
17
- speakerId?: string;
18
- confidence?: number;
19
- /** Type of word: 'word' for spoken content, 'silence' for detected gaps. Defaults to 'word' */
20
- wordType?: WordType;
21
- }
22
- /** A diarized segment of contiguous speech (osheet-style granularity) */
23
- interface TranscriptSegment {
24
- text: string;
25
- startMs: number;
26
- endMs: number;
27
- /** References Speaker.id when diarization is available */
28
- speakerId?: string;
29
- words: TranscriptWord[];
30
- }
31
- interface Speaker {
32
- id: string;
33
- /** Display name (e.g. 'Clinician', 'Patient'). Hosts may remap via speakerLabels props. */
34
- name?: string;
35
- }
36
- interface Transcript {
37
- durationMs: number;
38
- speakers?: Speaker[];
39
- words: TranscriptWord[];
40
- segments?: TranscriptSegment[];
41
- }
42
- /**
43
- * An editable word that references the original transcript word.
44
- * Used in the edited timeline to track deletions and reordering.
45
- */
46
- interface EditableWord {
47
- /** Index into the SILENCE-INSERTED baseline timeline (transcript.words
48
- * with detected silence pseudo-words interleaved) — NOT into
49
- * transcript.words. -1 for split/inserted entries with no baseline slot.
50
- * Consumers persisting edits should key by this timeline. */
51
- originalIndex: number;
52
- /** The word data (from original transcript) */
53
- word: TranscriptWord;
54
- /** Whether this word is marked as deleted */
55
- deleted: boolean;
56
- /** Whether this word was inserted (pasted from clipboard) */
57
- inserted?: boolean;
58
- }
59
- /**
60
- * Represents a contiguous segment of playback from the original media.
61
- * Used when playing back an edited timeline with potentially reordered/deleted words.
62
- */
63
- interface PlaybackSegment {
64
- startMs: number;
65
- endMs: number;
66
- /** Indices into the editedWords array that this segment covers */
67
- editedIndices: number[];
68
- }
69
- /** Available playback speed multipliers */
70
- type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
71
- /** Array of all available speed options for dropdowns */
72
- declare const PLAYBACK_SPEEDS: PlaybackSpeed[];
73
- /**
74
- * A speed marker applied to a word in the transcript.
75
- * The speed applies from this word until the next speed marker or end of transcript.
76
- */
77
- interface SpeedMarker {
78
- /** Index in the editedWords array where the speed marker is placed */
79
- wordIndex: number;
80
- /** The playback speed multiplier */
81
- speed: PlaybackSpeed;
82
- }
83
-
84
- export { type EditableWord as E, type PlaybackSpeed as P, type SpeedMarker as S, type Transcript as T, type WordType as W, type PlaybackSegment as a, type TranscriptWord as b, PLAYBACK_SPEEDS as c, type Speaker as d, type TranscriptSegment as e };
@@ -1,254 +0,0 @@
1
- import * as React from 'react';
2
-
3
- /**
4
- * AI Component Types
5
- *
6
- * Type definitions for AI-related components including MCP (Model Context Protocol)
7
- * interactions, tool calls, and chat messages.
8
- */
9
-
10
- /**
11
- * Status of an MCP tool invocation
12
- */
13
- type MCPToolStatus = 'pending' | 'running' | 'success' | 'error' | 'cancelled';
14
- /**
15
- * MCP Tool parameter definition
16
- */
17
- interface MCPToolParameter {
18
- name: string;
19
- type: string;
20
- value: unknown;
21
- description?: string;
22
- }
23
- /**
24
- * MCP Tool invocation
25
- */
26
- interface MCPToolCall {
27
- /** Unique identifier for this tool call */
28
- id: string;
29
- /** Name of the tool being invoked */
30
- toolName: string;
31
- /** Human-readable description of what the tool does */
32
- description?: string;
33
- /** Parameters passed to the tool */
34
- parameters: MCPToolParameter[];
35
- /** Current status of the tool execution */
36
- status: MCPToolStatus;
37
- /** Timestamp when tool was invoked */
38
- startedAt: Date | string;
39
- /** Timestamp when tool completed */
40
- completedAt?: Date | string;
41
- /** Duration in milliseconds */
42
- duration?: number;
43
- /** Result data if successful */
44
- result?: MCPToolResult;
45
- /** Error message if failed */
46
- error?: string;
47
- }
48
- /**
49
- * Result from an MCP tool execution
50
- */
51
- interface MCPToolResult {
52
- /** Type of result data */
53
- type: 'text' | 'json' | 'link' | 'resource' | 'error';
54
- /** The result data */
55
- data: unknown;
56
- /** Human-readable summary of the result */
57
- summary?: string;
58
- /** Link to a resource (for link type) */
59
- link?: MCPResourceLink;
60
- /** Resources created or modified */
61
- resources?: MCPResource[];
62
- }
63
- /**
64
- * Link to a resource
65
- */
66
- interface MCPResourceLink {
67
- /** URL or path to the resource */
68
- href: string;
69
- /** Display text for the link */
70
- label: string;
71
- /** Type of resource */
72
- type?: 'patient' | 'document' | 'appointment' | 'order' | 'provider' | 'external' | 'internal';
73
- /** Icon name or component */
74
- icon?: string;
75
- }
76
- /**
77
- * MCP Resource definition
78
- */
79
- interface MCPResource {
80
- /** Unique identifier */
81
- id: string;
82
- /** Resource type (e.g., 'patient', 'appointment', 'document') */
83
- type: string;
84
- /** Display name */
85
- name: string;
86
- /** URL to access the resource */
87
- uri?: string;
88
- /** Brief description */
89
- description?: string;
90
- /** Additional metadata */
91
- metadata?: Record<string, unknown>;
92
- }
93
- /**
94
- * Role of the message sender
95
- */
96
- type AIMessageRole = 'user' | 'assistant' | 'system' | 'tool';
97
- /**
98
- * Status of an AI message
99
- */
100
- type AIMessageStatus = 'pending' | 'streaming' | 'complete' | 'error';
101
- /**
102
- * Content block within a message
103
- */
104
- interface AIMessageContent {
105
- /** Type of content */
106
- type: 'text' | 'tool_use' | 'tool_result' | 'thinking' | 'code' | 'image' | 'file' | 'audio' | 'video';
107
- /** Text content (also used as the label for `audio` and `video` blocks) */
108
- text?: string;
109
- /** Tool call reference */
110
- toolCall?: MCPToolCall;
111
- /** Language for code blocks */
112
- language?: string;
113
- /** Whether this content is collapsed by default */
114
- collapsed?: boolean;
115
- /** Image source URL (for `image` blocks) */
116
- imageUrl?: string;
117
- /** Alt text / file name (for `image` and `file` blocks) */
118
- name?: string;
119
- /** File size in bytes (for `file` blocks) */
120
- fileSize?: number;
121
- /** MIME type (for `file`, `audio`, and `video` blocks) */
122
- mimeType?: string;
123
- /** Download/open URL (for `file` blocks) */
124
- fileUrl?: string;
125
- /** Source URL for `audio` blocks */
126
- audioUrl?: string;
127
- /** Source URL for `video` blocks */
128
- videoUrl?: string;
129
- /** Duration in seconds for `audio` blocks */
130
- duration?: number;
131
- }
132
- /**
133
- * AI Chat Message
134
- */
135
- interface AIMessage {
136
- /** Unique identifier */
137
- id: string;
138
- /** Role of sender */
139
- role: AIMessageRole;
140
- /** Message content blocks */
141
- content: AIMessageContent[];
142
- /** Timestamp */
143
- timestamp: Date | string;
144
- /** Current status */
145
- status: AIMessageStatus;
146
- /** Model used (for assistant messages) */
147
- model?: string;
148
- /** Token usage info */
149
- usage?: {
150
- promptTokens?: number;
151
- completionTokens?: number;
152
- totalTokens?: number;
153
- };
154
- /** Custom metadata */
155
- metadata?: Record<string, unknown>;
156
- }
157
- /** Context passed to a custom text content renderer. */
158
- interface AITextRenderContext {
159
- /** id of the parent message (useful as a render cache key) */
160
- messageId: string;
161
- /** true while the message is still streaming */
162
- streaming: boolean;
163
- /** role of the parent message */
164
- role: AIMessage['role'];
165
- }
166
- /**
167
- * Render-prop for customizing `text` content blocks. Host is responsible
168
- * for sanitizing untrusted input.
169
- */
170
- type AIRenderTextContent = (text: string, ctx: AITextRenderContext) => React.ReactNode;
171
- /** Render-prop for appending custom content below a message bubble. */
172
- type AIRenderMessageFooter = (message: AIMessage) => React.ReactNode;
173
- /**
174
- * Suggested action/prompt
175
- */
176
- interface AISuggestedAction {
177
- /** Unique identifier */
178
- id: string;
179
- /** Display label */
180
- label: string;
181
- /** Full prompt text */
182
- prompt: string;
183
- /** Icon name */
184
- icon?: string;
185
- /** Category for grouping */
186
- category?: string;
187
- }
188
- /**
189
- * AI Chat session
190
- */
191
- interface AIChatSession {
192
- /** Unique session identifier */
193
- id: string;
194
- /** Session title */
195
- title?: string;
196
- /** Messages in the session */
197
- messages: AIMessage[];
198
- /** Available tools */
199
- availableTools?: MCPToolInfo[];
200
- /** Created timestamp */
201
- createdAt: Date | string;
202
- /** Last updated timestamp */
203
- updatedAt: Date | string;
204
- /** Whether the assistant is currently generating */
205
- isGenerating: boolean;
206
- /** Context information */
207
- context?: {
208
- /** Current page/location */
209
- page?: string;
210
- /** Selected entity */
211
- entity?: MCPResource;
212
- /** Additional context */
213
- custom?: Record<string, unknown>;
214
- };
215
- }
216
- /**
217
- * Information about an available MCP tool
218
- */
219
- interface MCPToolInfo {
220
- /** Tool name */
221
- name: string;
222
- /** Human-readable description */
223
- description: string;
224
- /** Input schema */
225
- inputSchema?: Record<string, unknown>;
226
- /** Category for grouping */
227
- category?: string;
228
- /** Whether the tool is enabled */
229
- enabled?: boolean;
230
- }
231
- interface AIChatCallbacks {
232
- /**
233
- * Called when user sends a message. When attachments are enabled via
234
- * `composerProps`, the staged files arrive as the second argument
235
- * (attachment-only sends invoke this with an empty string).
236
- */
237
- onSendMessage?: (message: string, attachments?: File[]) => void | Promise<void>;
238
- /** Called when a tool call is initiated */
239
- onToolCall?: (toolCall: MCPToolCall) => void | Promise<void>;
240
- /** Called when a tool call completes */
241
- onToolComplete?: (toolCall: MCPToolCall, result: MCPToolResult) => void;
242
- /** Called when user clicks a resource link */
243
- onResourceClick?: (resource: MCPResource | MCPResourceLink) => void;
244
- /** Called when user selects a suggested action */
245
- onSuggestedAction?: (action: AISuggestedAction) => void;
246
- /** Called when user wants to cancel generation */
247
- onCancel?: () => void;
248
- /** Called when user wants to retry */
249
- onRetry?: () => void;
250
- /** Called when session is cleared */
251
- onClear?: () => void;
252
- }
253
-
254
- export type { AIMessageContent as A, MCPResourceLink as M, AIMessageStatus as a, AIRenderTextContent as b, AITextRenderContext as c, MCPToolCall as d, MCPToolStatus as e, AIMessage as f, AIRenderMessageFooter as g, AIChatCallbacks as h, AIChatSession as i, AISuggestedAction as j, AIMessageRole as k, MCPResource as l, MCPToolInfo as m, MCPToolParameter as n, MCPToolResult as o };
@@ -1,254 +0,0 @@
1
- import * as React from 'react';
2
-
3
- /**
4
- * AI Component Types
5
- *
6
- * Type definitions for AI-related components including MCP (Model Context Protocol)
7
- * interactions, tool calls, and chat messages.
8
- */
9
-
10
- /**
11
- * Status of an MCP tool invocation
12
- */
13
- type MCPToolStatus = 'pending' | 'running' | 'success' | 'error' | 'cancelled';
14
- /**
15
- * MCP Tool parameter definition
16
- */
17
- interface MCPToolParameter {
18
- name: string;
19
- type: string;
20
- value: unknown;
21
- description?: string;
22
- }
23
- /**
24
- * MCP Tool invocation
25
- */
26
- interface MCPToolCall {
27
- /** Unique identifier for this tool call */
28
- id: string;
29
- /** Name of the tool being invoked */
30
- toolName: string;
31
- /** Human-readable description of what the tool does */
32
- description?: string;
33
- /** Parameters passed to the tool */
34
- parameters: MCPToolParameter[];
35
- /** Current status of the tool execution */
36
- status: MCPToolStatus;
37
- /** Timestamp when tool was invoked */
38
- startedAt: Date | string;
39
- /** Timestamp when tool completed */
40
- completedAt?: Date | string;
41
- /** Duration in milliseconds */
42
- duration?: number;
43
- /** Result data if successful */
44
- result?: MCPToolResult;
45
- /** Error message if failed */
46
- error?: string;
47
- }
48
- /**
49
- * Result from an MCP tool execution
50
- */
51
- interface MCPToolResult {
52
- /** Type of result data */
53
- type: 'text' | 'json' | 'link' | 'resource' | 'error';
54
- /** The result data */
55
- data: unknown;
56
- /** Human-readable summary of the result */
57
- summary?: string;
58
- /** Link to a resource (for link type) */
59
- link?: MCPResourceLink;
60
- /** Resources created or modified */
61
- resources?: MCPResource[];
62
- }
63
- /**
64
- * Link to a resource
65
- */
66
- interface MCPResourceLink {
67
- /** URL or path to the resource */
68
- href: string;
69
- /** Display text for the link */
70
- label: string;
71
- /** Type of resource */
72
- type?: 'patient' | 'document' | 'appointment' | 'order' | 'provider' | 'external' | 'internal';
73
- /** Icon name or component */
74
- icon?: string;
75
- }
76
- /**
77
- * MCP Resource definition
78
- */
79
- interface MCPResource {
80
- /** Unique identifier */
81
- id: string;
82
- /** Resource type (e.g., 'patient', 'appointment', 'document') */
83
- type: string;
84
- /** Display name */
85
- name: string;
86
- /** URL to access the resource */
87
- uri?: string;
88
- /** Brief description */
89
- description?: string;
90
- /** Additional metadata */
91
- metadata?: Record<string, unknown>;
92
- }
93
- /**
94
- * Role of the message sender
95
- */
96
- type AIMessageRole = 'user' | 'assistant' | 'system' | 'tool';
97
- /**
98
- * Status of an AI message
99
- */
100
- type AIMessageStatus = 'pending' | 'streaming' | 'complete' | 'error';
101
- /**
102
- * Content block within a message
103
- */
104
- interface AIMessageContent {
105
- /** Type of content */
106
- type: 'text' | 'tool_use' | 'tool_result' | 'thinking' | 'code' | 'image' | 'file' | 'audio' | 'video';
107
- /** Text content (also used as the label for `audio` and `video` blocks) */
108
- text?: string;
109
- /** Tool call reference */
110
- toolCall?: MCPToolCall;
111
- /** Language for code blocks */
112
- language?: string;
113
- /** Whether this content is collapsed by default */
114
- collapsed?: boolean;
115
- /** Image source URL (for `image` blocks) */
116
- imageUrl?: string;
117
- /** Alt text / file name (for `image` and `file` blocks) */
118
- name?: string;
119
- /** File size in bytes (for `file` blocks) */
120
- fileSize?: number;
121
- /** MIME type (for `file`, `audio`, and `video` blocks) */
122
- mimeType?: string;
123
- /** Download/open URL (for `file` blocks) */
124
- fileUrl?: string;
125
- /** Source URL for `audio` blocks */
126
- audioUrl?: string;
127
- /** Source URL for `video` blocks */
128
- videoUrl?: string;
129
- /** Duration in seconds for `audio` blocks */
130
- duration?: number;
131
- }
132
- /**
133
- * AI Chat Message
134
- */
135
- interface AIMessage {
136
- /** Unique identifier */
137
- id: string;
138
- /** Role of sender */
139
- role: AIMessageRole;
140
- /** Message content blocks */
141
- content: AIMessageContent[];
142
- /** Timestamp */
143
- timestamp: Date | string;
144
- /** Current status */
145
- status: AIMessageStatus;
146
- /** Model used (for assistant messages) */
147
- model?: string;
148
- /** Token usage info */
149
- usage?: {
150
- promptTokens?: number;
151
- completionTokens?: number;
152
- totalTokens?: number;
153
- };
154
- /** Custom metadata */
155
- metadata?: Record<string, unknown>;
156
- }
157
- /** Context passed to a custom text content renderer. */
158
- interface AITextRenderContext {
159
- /** id of the parent message (useful as a render cache key) */
160
- messageId: string;
161
- /** true while the message is still streaming */
162
- streaming: boolean;
163
- /** role of the parent message */
164
- role: AIMessage['role'];
165
- }
166
- /**
167
- * Render-prop for customizing `text` content blocks. Host is responsible
168
- * for sanitizing untrusted input.
169
- */
170
- type AIRenderTextContent = (text: string, ctx: AITextRenderContext) => React.ReactNode;
171
- /** Render-prop for appending custom content below a message bubble. */
172
- type AIRenderMessageFooter = (message: AIMessage) => React.ReactNode;
173
- /**
174
- * Suggested action/prompt
175
- */
176
- interface AISuggestedAction {
177
- /** Unique identifier */
178
- id: string;
179
- /** Display label */
180
- label: string;
181
- /** Full prompt text */
182
- prompt: string;
183
- /** Icon name */
184
- icon?: string;
185
- /** Category for grouping */
186
- category?: string;
187
- }
188
- /**
189
- * AI Chat session
190
- */
191
- interface AIChatSession {
192
- /** Unique session identifier */
193
- id: string;
194
- /** Session title */
195
- title?: string;
196
- /** Messages in the session */
197
- messages: AIMessage[];
198
- /** Available tools */
199
- availableTools?: MCPToolInfo[];
200
- /** Created timestamp */
201
- createdAt: Date | string;
202
- /** Last updated timestamp */
203
- updatedAt: Date | string;
204
- /** Whether the assistant is currently generating */
205
- isGenerating: boolean;
206
- /** Context information */
207
- context?: {
208
- /** Current page/location */
209
- page?: string;
210
- /** Selected entity */
211
- entity?: MCPResource;
212
- /** Additional context */
213
- custom?: Record<string, unknown>;
214
- };
215
- }
216
- /**
217
- * Information about an available MCP tool
218
- */
219
- interface MCPToolInfo {
220
- /** Tool name */
221
- name: string;
222
- /** Human-readable description */
223
- description: string;
224
- /** Input schema */
225
- inputSchema?: Record<string, unknown>;
226
- /** Category for grouping */
227
- category?: string;
228
- /** Whether the tool is enabled */
229
- enabled?: boolean;
230
- }
231
- interface AIChatCallbacks {
232
- /**
233
- * Called when user sends a message. When attachments are enabled via
234
- * `composerProps`, the staged files arrive as the second argument
235
- * (attachment-only sends invoke this with an empty string).
236
- */
237
- onSendMessage?: (message: string, attachments?: File[]) => void | Promise<void>;
238
- /** Called when a tool call is initiated */
239
- onToolCall?: (toolCall: MCPToolCall) => void | Promise<void>;
240
- /** Called when a tool call completes */
241
- onToolComplete?: (toolCall: MCPToolCall, result: MCPToolResult) => void;
242
- /** Called when user clicks a resource link */
243
- onResourceClick?: (resource: MCPResource | MCPResourceLink) => void;
244
- /** Called when user selects a suggested action */
245
- onSuggestedAction?: (action: AISuggestedAction) => void;
246
- /** Called when user wants to cancel generation */
247
- onCancel?: () => void;
248
- /** Called when user wants to retry */
249
- onRetry?: () => void;
250
- /** Called when session is cleared */
251
- onClear?: () => void;
252
- }
253
-
254
- export type { AIMessageContent as A, MCPResourceLink as M, AIMessageStatus as a, AIRenderTextContent as b, AITextRenderContext as c, MCPToolCall as d, MCPToolStatus as e, AIMessage as f, AIRenderMessageFooter as g, AIChatCallbacks as h, AIChatSession as i, AISuggestedAction as j, AIMessageRole as k, MCPResource as l, MCPToolInfo as m, MCPToolParameter as n, MCPToolResult as o };