@mieweb/ui 0.6.1 → 0.7.0-dev.179
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.
- package/README.md +90 -53
- package/dist/CsvBlock-2A5VEDD3.cjs +15 -0
- package/dist/CsvBlock-2A5VEDD3.cjs.map +1 -0
- package/dist/CsvBlock-D6PWAJ5X.js +6 -0
- package/dist/CsvBlock-D6PWAJ5X.js.map +1 -0
- package/dist/HtmlPreviewBlock-PEHTJ6C3.js +6 -0
- package/dist/HtmlPreviewBlock-PEHTJ6C3.js.map +1 -0
- package/dist/HtmlPreviewBlock-SYXCV5RH.cjs +15 -0
- package/dist/HtmlPreviewBlock-SYXCV5RH.cjs.map +1 -0
- package/dist/MedicationEditor-Bp4NLy7y.d.cts +352 -0
- package/dist/MedicationEditor-Bp4NLy7y.d.ts +352 -0
- package/dist/MermaidBlock-7NK3AVK2.js +6 -0
- package/dist/MermaidBlock-7NK3AVK2.js.map +1 -0
- package/dist/MermaidBlock-AFXNP5NK.cjs +15 -0
- package/dist/MermaidBlock-AFXNP5NK.cjs.map +1 -0
- package/dist/SurveyBlock-6KRNKFH5.cjs +15 -0
- package/dist/SurveyBlock-6KRNKFH5.cjs.map +1 -0
- package/dist/SurveyBlock-NNDGXGG4.js +6 -0
- package/dist/SurveyBlock-NNDGXGG4.js.map +1 -0
- package/dist/ag-grid.cjs +6 -6
- package/dist/ag-grid.cjs.map +1 -1
- package/dist/ag-grid.js +2 -2
- package/dist/ag-grid.js.map +1 -1
- package/dist/brands/index.cjs +17 -17
- package/dist/brands/index.js +4 -4
- package/dist/chunk-372IIHUA.cjs +2017 -0
- package/dist/chunk-372IIHUA.cjs.map +1 -0
- package/dist/{chunk-2DS3RJ2D.js → chunk-3TERETXH.js} +112 -3
- package/dist/chunk-3TERETXH.js.map +1 -0
- package/dist/chunk-44CK4CT2.cjs +336 -0
- package/dist/chunk-44CK4CT2.cjs.map +1 -0
- package/dist/{chunk-FSBFQBNE.cjs → chunk-4GXECTPS.cjs} +2 -2
- package/dist/{chunk-FSBFQBNE.cjs.map → chunk-4GXECTPS.cjs.map} +1 -1
- package/dist/chunk-4LVPQ44A.js +228 -0
- package/dist/chunk-4LVPQ44A.js.map +1 -0
- package/dist/{chunk-6555OYRU.js → chunk-5BQE6BEL.js} +2 -2
- package/dist/{chunk-6555OYRU.js.map → chunk-5BQE6BEL.js.map} +1 -1
- package/dist/chunk-62ZOA6PX.js +31 -0
- package/dist/chunk-62ZOA6PX.js.map +1 -0
- package/dist/chunk-63KVQHGQ.cjs +1802 -0
- package/dist/chunk-63KVQHGQ.cjs.map +1 -0
- package/dist/chunk-6AHYYWVB.js +78 -0
- package/dist/chunk-6AHYYWVB.js.map +1 -0
- package/dist/chunk-6I7IDZ4A.js +51 -0
- package/dist/chunk-6I7IDZ4A.js.map +1 -0
- package/dist/chunk-6ZYE6JUK.cjs +80 -0
- package/dist/chunk-6ZYE6JUK.cjs.map +1 -0
- package/dist/chunk-7QXG5BBB.cjs +164 -0
- package/dist/chunk-7QXG5BBB.cjs.map +1 -0
- package/dist/chunk-7WMSUXOQ.js +182 -0
- package/dist/chunk-7WMSUXOQ.js.map +1 -0
- package/dist/chunk-7XUN3OQT.js +3 -0
- package/dist/{chunk-V2DF2GUE.js.map → chunk-7XUN3OQT.js.map} +1 -1
- package/dist/chunk-7ZVTLTJF.js +109 -0
- package/dist/chunk-7ZVTLTJF.js.map +1 -0
- package/dist/chunk-AES2BKEW.cjs +229 -0
- package/dist/chunk-AES2BKEW.cjs.map +1 -0
- package/dist/chunk-AFKKJEV5.cjs +72 -0
- package/dist/chunk-AFKKJEV5.cjs.map +1 -0
- package/dist/chunk-AT732HC6.cjs +4 -0
- package/dist/{chunk-74K3RRU7.cjs.map → chunk-AT732HC6.cjs.map} +1 -1
- package/dist/chunk-BB4WQ4LV.cjs +137 -0
- package/dist/chunk-BB4WQ4LV.cjs.map +1 -0
- package/dist/chunk-BIT27PPD.js +49 -0
- package/dist/chunk-BIT27PPD.js.map +1 -0
- package/dist/chunk-BLPCYP4D.cjs +537 -0
- package/dist/chunk-BLPCYP4D.cjs.map +1 -0
- package/dist/chunk-BT3ZQJGT.cjs +130 -0
- package/dist/chunk-BT3ZQJGT.cjs.map +1 -0
- package/dist/chunk-BX6BTDTR.js +34 -0
- package/dist/chunk-BX6BTDTR.js.map +1 -0
- package/dist/chunk-C2544GKZ.js +313 -0
- package/dist/chunk-C2544GKZ.js.map +1 -0
- package/dist/chunk-C7RVKV25.cjs +25 -0
- package/dist/chunk-C7RVKV25.cjs.map +1 -0
- package/dist/chunk-CKD554XR.cjs +100 -0
- package/dist/chunk-CKD554XR.cjs.map +1 -0
- package/dist/chunk-CVC4NWFA.cjs +154 -0
- package/dist/chunk-CVC4NWFA.cjs.map +1 -0
- package/dist/{chunk-K3IVCUPP.js → chunk-CYMZ2QS5.js} +2 -2
- package/dist/{chunk-K3IVCUPP.js.map → chunk-CYMZ2QS5.js.map} +1 -1
- package/dist/{chunk-FRT6RQND.cjs → chunk-DAPZPT5N.cjs} +92 -56
- package/dist/chunk-DAPZPT5N.cjs.map +1 -0
- package/dist/chunk-DHKYGVP7.js +3 -0
- package/dist/{chunk-LEMY57MI.js.map → chunk-DHKYGVP7.js.map} +1 -1
- package/dist/chunk-DLNJLCNO.cjs +101 -0
- package/dist/chunk-DLNJLCNO.cjs.map +1 -0
- package/dist/chunk-DUPR6FEL.js +43 -0
- package/dist/chunk-DUPR6FEL.js.map +1 -0
- package/dist/{chunk-4FALCEJI.cjs → chunk-EL2RSQTJ.cjs} +2 -2
- package/dist/{chunk-4FALCEJI.cjs.map → chunk-EL2RSQTJ.cjs.map} +1 -1
- package/dist/chunk-ERLPVXOV.js +22 -0
- package/dist/chunk-ERLPVXOV.js.map +1 -0
- package/dist/chunk-FIWKHLWY.js +197 -0
- package/dist/chunk-FIWKHLWY.js.map +1 -0
- package/dist/chunk-FJH7P5WG.js +513 -0
- package/dist/chunk-FJH7P5WG.js.map +1 -0
- package/dist/chunk-FSGEDDF2.cjs +33 -0
- package/dist/chunk-FSGEDDF2.cjs.map +1 -0
- package/dist/chunk-GLXTVCHN.cjs +4 -0
- package/dist/{chunk-4ZU53GNR.cjs.map → chunk-GLXTVCHN.cjs.map} +1 -1
- package/dist/chunk-HRS6W74P.js +1568 -0
- package/dist/chunk-HRS6W74P.js.map +1 -0
- package/dist/chunk-I2W24RHW.js +196 -0
- package/dist/chunk-I2W24RHW.js.map +1 -0
- package/dist/chunk-I6CY5C6A.js +12 -0
- package/dist/chunk-I6CY5C6A.js.map +1 -0
- package/dist/chunk-IQ4KQJAO.js +3 -0
- package/dist/chunk-IQ4KQJAO.js.map +1 -0
- package/dist/chunk-IWDQPSJN.cjs +1452 -0
- package/dist/chunk-IWDQPSJN.cjs.map +1 -0
- package/dist/chunk-J7KWQJOB.js +14 -0
- package/dist/chunk-J7KWQJOB.js.map +1 -0
- package/dist/{chunk-R25H4N4Z.js → chunk-J7Z7467B.js} +92 -56
- package/dist/chunk-J7Z7467B.js.map +1 -0
- package/dist/{chunk-NINI4WVS.cjs → chunk-JC6Y3LGF.cjs} +297 -84
- package/dist/chunk-JC6Y3LGF.cjs.map +1 -0
- package/dist/chunk-JCNPVK74.cjs +347 -0
- package/dist/chunk-JCNPVK74.cjs.map +1 -0
- package/dist/chunk-JFLC7SHM.cjs +35 -0
- package/dist/chunk-JFLC7SHM.cjs.map +1 -0
- package/dist/chunk-JHYFHEHS.js +1967 -0
- package/dist/chunk-JHYFHEHS.js.map +1 -0
- package/dist/{chunk-IBZXDX4L.cjs → chunk-JQEY53SH.cjs} +112 -3
- package/dist/chunk-JQEY53SH.cjs.map +1 -0
- package/dist/chunk-JTBQNOSL.cjs +1605 -0
- package/dist/chunk-JTBQNOSL.cjs.map +1 -0
- package/dist/chunk-JYZW2PZS.cjs +166 -0
- package/dist/chunk-JYZW2PZS.cjs.map +1 -0
- package/dist/chunk-KBEKQMVY.cjs +198 -0
- package/dist/chunk-KBEKQMVY.cjs.map +1 -0
- package/dist/chunk-KJ5BSGEO.cjs +258 -0
- package/dist/chunk-KJ5BSGEO.cjs.map +1 -0
- package/dist/{chunk-DNPRRYPQ.js → chunk-KL2S36FM.js} +2 -2
- package/dist/chunk-KL2S36FM.js.map +1 -0
- package/dist/chunk-LIH3IZYK.js +689 -0
- package/dist/chunk-LIH3IZYK.js.map +1 -0
- package/dist/chunk-MAMY5HTT.cjs +1177 -0
- package/dist/chunk-MAMY5HTT.cjs.map +1 -0
- package/dist/{chunk-WFS6R2F5.js → chunk-MKWGKASO.js} +114 -101
- package/dist/chunk-MKWGKASO.js.map +1 -0
- package/dist/{chunk-CV4CVGLO.cjs → chunk-MZPF2QGM.cjs} +95 -74
- package/dist/chunk-MZPF2QGM.cjs.map +1 -0
- package/dist/chunk-NQME7MCK.js +1416 -0
- package/dist/chunk-NQME7MCK.js.map +1 -0
- package/dist/chunk-NTYGCBCL.js +543 -0
- package/dist/chunk-NTYGCBCL.js.map +1 -0
- package/dist/chunk-OF7NTZ2I.js +3 -0
- package/dist/chunk-OF7NTZ2I.js.map +1 -0
- package/dist/chunk-OXYFTCRW.cjs +57 -0
- package/dist/chunk-OXYFTCRW.cjs.map +1 -0
- package/dist/chunk-QA6ZDHFP.js +117 -0
- package/dist/chunk-QA6ZDHFP.js.map +1 -0
- package/dist/chunk-RHNPILZQ.cjs +4 -0
- package/dist/chunk-RHNPILZQ.cjs.map +1 -0
- package/dist/chunk-RHYIFIT5.js +98 -0
- package/dist/chunk-RHYIFIT5.js.map +1 -0
- package/dist/chunk-RI56YPED.cjs +201 -0
- package/dist/chunk-RI56YPED.cjs.map +1 -0
- package/dist/chunk-RISZWWEQ.js +3 -0
- package/dist/chunk-RISZWWEQ.js.map +1 -0
- package/dist/chunk-S6Z3KDEM.js +140 -0
- package/dist/chunk-S6Z3KDEM.js.map +1 -0
- package/dist/chunk-S7JQ3FV5.cjs +16 -0
- package/dist/chunk-S7JQ3FV5.cjs.map +1 -0
- package/dist/{chunk-OXGUG57G.cjs → chunk-SNEQXSC5.cjs} +2 -2
- package/dist/{chunk-OXGUG57G.cjs.map → chunk-SNEQXSC5.cjs.map} +1 -1
- package/dist/chunk-SQHMGT4W.js +164 -0
- package/dist/chunk-SQHMGT4W.js.map +1 -0
- package/dist/{chunk-JHPFOG2N.cjs → chunk-ST2RE5UB.cjs} +30 -18
- package/dist/chunk-ST2RE5UB.cjs.map +1 -0
- package/dist/{chunk-QVJBUWJQ.js → chunk-STPK44AU.js} +46 -12
- package/dist/chunk-STPK44AU.js.map +1 -0
- package/dist/chunk-T3C4RNJ4.js +106 -0
- package/dist/chunk-T3C4RNJ4.js.map +1 -0
- package/dist/chunk-T3RWXOCM.js +148 -0
- package/dist/chunk-T3RWXOCM.js.map +1 -0
- package/dist/{chunk-DCER2QQB.js → chunk-T42BCIUA.js} +2 -2
- package/dist/{chunk-DCER2QQB.js.map → chunk-T42BCIUA.js.map} +1 -1
- package/dist/{chunk-OYKS2JBB.cjs → chunk-TN33E2VN.cjs} +2 -2
- package/dist/chunk-TN33E2VN.cjs.map +1 -0
- package/dist/{chunk-K7IGBNZA.cjs → chunk-TR2OJKQ4.cjs} +46 -12
- package/dist/chunk-TR2OJKQ4.cjs.map +1 -0
- package/dist/chunk-UFYXU7KV.js +135 -0
- package/dist/chunk-UFYXU7KV.js.map +1 -0
- package/dist/chunk-UM6NA7HL.js +1145 -0
- package/dist/chunk-UM6NA7HL.js.map +1 -0
- package/dist/chunk-UO3KEUYK.cjs +220 -0
- package/dist/chunk-UO3KEUYK.cjs.map +1 -0
- package/dist/chunk-UOOH356R.cjs +66 -0
- package/dist/chunk-UOOH356R.cjs.map +1 -0
- package/dist/{chunk-4ZU53GNR.cjs → chunk-UTYUT5YY.cjs} +62 -2
- package/dist/chunk-UTYUT5YY.cjs.map +1 -0
- package/dist/chunk-UVSODK6V.cjs +53 -0
- package/dist/chunk-UVSODK6V.cjs.map +1 -0
- package/dist/chunk-V25Z5GR6.cjs +184 -0
- package/dist/chunk-V25Z5GR6.cjs.map +1 -0
- package/dist/chunk-VBWRH4UW.cjs +4 -0
- package/dist/chunk-VBWRH4UW.cjs.map +1 -0
- package/dist/chunk-VJOVJTFP.cjs +370 -0
- package/dist/chunk-VJOVJTFP.cjs.map +1 -0
- package/dist/{chunk-7BARESXI.cjs → chunk-VPNURIAY.cjs} +114 -101
- package/dist/chunk-VPNURIAY.cjs.map +1 -0
- package/dist/{chunk-I56VBDSC.js → chunk-XDFDVF2O.js} +30 -18
- package/dist/chunk-XDFDVF2O.js.map +1 -0
- package/dist/chunk-XL7TTKHP.js +327 -0
- package/dist/chunk-XL7TTKHP.js.map +1 -0
- package/dist/chunk-Y2S6QMKU.js +78 -0
- package/dist/chunk-Y2S6QMKU.js.map +1 -0
- package/dist/chunk-Y4ESBDQ5.cjs +552 -0
- package/dist/chunk-Y4ESBDQ5.cjs.map +1 -0
- package/dist/chunk-Y5KEFV5O.js +192 -0
- package/dist/chunk-Y5KEFV5O.js.map +1 -0
- package/dist/chunk-YBLIDESO.js +365 -0
- package/dist/chunk-YBLIDESO.js.map +1 -0
- package/dist/chunk-YVLP3ATI.js +1776 -0
- package/dist/chunk-YVLP3ATI.js.map +1 -0
- package/dist/chunk-YVPC65ZJ.cjs +134 -0
- package/dist/chunk-YVPC65ZJ.cjs.map +1 -0
- package/dist/{chunk-MPOWJVV4.js → chunk-YZT62IMX.js} +95 -74
- package/dist/chunk-YZT62IMX.js.map +1 -0
- package/dist/chunk-ZAIEQWRA.js +207 -0
- package/dist/chunk-ZAIEQWRA.js.map +1 -0
- package/dist/chunk-ZDEYV373.cjs +139 -0
- package/dist/chunk-ZDEYV373.cjs.map +1 -0
- package/dist/{chunk-Q7NBJFEB.js → chunk-ZGSC2CB2.js} +2 -2
- package/dist/{chunk-Q7NBJFEB.js.map → chunk-ZGSC2CB2.js.map} +1 -1
- package/dist/{chunk-3M4P2KMG.cjs → chunk-ZHBANUBI.cjs} +2 -2
- package/dist/{chunk-3M4P2KMG.cjs.map → chunk-ZHBANUBI.cjs.map} +1 -1
- package/dist/components/AlertDialog/index.cjs +18 -0
- package/dist/components/AlertDialog/index.cjs.map +1 -0
- package/dist/components/AlertDialog/index.d.cts +56 -0
- package/dist/components/AlertDialog/index.d.ts +56 -0
- package/dist/components/AlertDialog/index.js +9 -0
- package/dist/components/AlertDialog/index.js.map +1 -0
- package/dist/components/AudioRecorder/index.d.cts +1 -1
- package/dist/components/AudioRecorder/index.d.ts +1 -1
- package/dist/components/Autocomplete/index.cjs +16 -0
- package/dist/components/Autocomplete/index.cjs.map +1 -0
- package/dist/components/Autocomplete/index.d.cts +77 -0
- package/dist/components/Autocomplete/index.d.ts +77 -0
- package/dist/components/Autocomplete/index.js +7 -0
- package/dist/components/Autocomplete/index.js.map +1 -0
- package/dist/components/Badge/index.cjs +4 -3
- package/dist/components/Badge/index.js +2 -1
- package/dist/components/Card/index.cjs +16 -15
- package/dist/components/Card/index.js +2 -1
- package/dist/components/Collapsible/index.cjs +21 -0
- package/dist/components/Collapsible/index.cjs.map +1 -0
- package/dist/components/Collapsible/index.d.cts +33 -0
- package/dist/components/Collapsible/index.d.ts +33 -0
- package/dist/components/Collapsible/index.js +4 -0
- package/dist/components/Collapsible/index.js.map +1 -0
- package/dist/components/CountryCodeDropdown/index.cjs +6 -5
- package/dist/components/CountryCodeDropdown/index.js +3 -2
- package/dist/components/DateInput/index.cjs +2 -2
- package/dist/components/DateInput/index.d.cts +8 -2
- package/dist/components/DateInput/index.d.ts +8 -2
- package/dist/components/DateInput/index.js +1 -1
- package/dist/components/Dropdown/index.cjs +9 -8
- package/dist/components/Dropdown/index.d.cts +2 -1
- package/dist/components/Dropdown/index.d.ts +2 -1
- package/dist/components/Dropdown/index.js +3 -2
- package/dist/components/FloatingWindow/index.cjs +18 -0
- package/dist/components/FloatingWindow/index.cjs.map +1 -0
- package/dist/components/FloatingWindow/index.d.cts +64 -0
- package/dist/components/FloatingWindow/index.d.ts +64 -0
- package/dist/components/FloatingWindow/index.js +5 -0
- package/dist/components/FloatingWindow/index.js.map +1 -0
- package/dist/components/Label/index.cjs +17 -0
- package/dist/components/Label/index.cjs.map +1 -0
- package/dist/components/Label/index.d.cts +23 -0
- package/dist/components/Label/index.d.ts +23 -0
- package/dist/components/Label/index.js +4 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +51 -0
- package/dist/components/Markdown/index.cjs.map +1 -0
- package/dist/components/Markdown/index.css +331 -0
- package/dist/components/Markdown/index.css.map +1 -0
- package/dist/components/Markdown/index.d.cts +82 -0
- package/dist/components/Markdown/index.d.ts +82 -0
- package/dist/components/Markdown/index.js +10 -0
- package/dist/components/Markdown/index.js.map +1 -0
- package/dist/components/Markdown/styles.css +354 -0
- package/dist/components/MediaEditor/index.cjs +44 -0
- package/dist/components/MediaEditor/index.cjs.map +1 -0
- package/dist/components/MediaEditor/index.d.cts +151 -0
- package/dist/components/MediaEditor/index.d.ts +151 -0
- package/dist/components/MediaEditor/index.js +19 -0
- package/dist/components/MediaEditor/index.js.map +1 -0
- package/dist/components/MediaPlayer/index.cjs +24 -0
- package/dist/components/MediaPlayer/index.cjs.map +1 -0
- package/dist/components/MediaPlayer/index.d.cts +71 -0
- package/dist/components/MediaPlayer/index.d.ts +71 -0
- package/dist/components/MediaPlayer/index.js +7 -0
- package/dist/components/MediaPlayer/index.js.map +1 -0
- package/dist/components/RecordButton/index.cjs +4 -4
- package/dist/components/RecordButton/index.js +1 -1
- package/dist/components/RichTextEditor/index.cjs +33 -0
- package/dist/components/RichTextEditor/index.cjs.map +1 -0
- package/dist/components/RichTextEditor/index.d.cts +62 -0
- package/dist/components/RichTextEditor/index.d.ts +62 -0
- package/dist/components/RichTextEditor/index.js +12 -0
- package/dist/components/RichTextEditor/index.js.map +1 -0
- package/dist/components/ScrollArea/index.cjs +17 -0
- package/dist/components/ScrollArea/index.cjs.map +1 -0
- package/dist/components/ScrollArea/index.d.cts +22 -0
- package/dist/components/ScrollArea/index.d.ts +22 -0
- package/dist/components/ScrollArea/index.js +4 -0
- package/dist/components/ScrollArea/index.js.map +1 -0
- package/dist/components/Select/index.cjs +5 -3
- package/dist/components/Select/index.js +3 -1
- package/dist/components/Separator/index.cjs +17 -0
- package/dist/components/Separator/index.cjs.map +1 -0
- package/dist/components/Separator/index.d.cts +27 -0
- package/dist/components/Separator/index.d.ts +27 -0
- package/dist/components/Separator/index.js +4 -0
- package/dist/components/Separator/index.js.map +1 -0
- package/dist/components/Sheet/index.cjs +48 -0
- package/dist/components/Sheet/index.cjs.map +1 -0
- package/dist/components/Sheet/index.d.cts +62 -0
- package/dist/components/Sheet/index.d.ts +62 -0
- package/dist/components/Sheet/index.js +7 -0
- package/dist/components/Sheet/index.js.map +1 -0
- package/dist/components/SuperChat/index.cjs +1373 -0
- package/dist/components/SuperChat/index.cjs.map +1 -0
- package/dist/components/SuperChat/index.d.cts +189 -0
- package/dist/components/SuperChat/index.d.ts +189 -0
- package/dist/components/SuperChat/index.js +1336 -0
- package/dist/components/SuperChat/index.js.map +1 -0
- package/dist/components/SuperChat/plugins/index.cjs +1292 -0
- package/dist/components/SuperChat/plugins/index.cjs.map +1 -0
- package/dist/components/SuperChat/plugins/index.d.cts +233 -0
- package/dist/components/SuperChat/plugins/index.d.ts +233 -0
- package/dist/components/SuperChat/plugins/index.js +1252 -0
- package/dist/components/SuperChat/plugins/index.js.map +1 -0
- package/dist/components/Table/index.cjs +9 -9
- package/dist/components/Table/index.d.cts +4 -0
- package/dist/components/Table/index.d.ts +4 -0
- package/dist/components/Table/index.js +1 -1
- package/dist/components/ThemeProvider/index.cjs +7 -7
- package/dist/components/ThemeProvider/index.js +1 -1
- package/dist/components/Toggle/index.cjs +17 -0
- package/dist/components/Toggle/index.cjs.map +1 -0
- package/dist/components/Toggle/index.d.cts +28 -0
- package/dist/components/Toggle/index.d.ts +28 -0
- package/dist/components/Toggle/index.js +4 -0
- package/dist/components/Toggle/index.js.map +1 -0
- package/dist/components/TranscriptView/index.cjs +21 -0
- package/dist/components/TranscriptView/index.cjs.map +1 -0
- package/dist/components/TranscriptView/index.d.cts +55 -0
- package/dist/components/TranscriptView/index.d.ts +55 -0
- package/dist/components/TranscriptView/index.js +4 -0
- package/dist/components/TranscriptView/index.js.map +1 -0
- package/dist/datavis.cjs +268 -227
- package/dist/datavis.cjs.map +1 -1
- package/dist/datavis.d.cts +83 -9
- package/dist/datavis.d.ts +83 -9
- package/dist/datavis.js +235 -229
- package/dist/datavis.js.map +1 -1
- package/dist/esheet.cjs +184 -0
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.d.cts +117 -0
- package/dist/esheet.d.ts +117 -0
- package/dist/esheet.js +163 -0
- package/dist/esheet.js.map +1 -1
- package/dist/hey-buddy-CLUVAY2X.cjs +1133 -0
- package/dist/hey-buddy-CLUVAY2X.cjs.map +1 -0
- package/dist/hey-buddy-NMSWZ4TN.js +1131 -0
- package/dist/hey-buddy-NMSWZ4TN.js.map +1 -0
- package/dist/hooks/index.cjs +76 -16
- package/dist/hooks/index.d.cts +151 -2
- package/dist/hooks/index.d.ts +151 -2
- package/dist/hooks/index.js +6 -2
- package/dist/html-MdxqSzjD.d.cts +13 -0
- package/dist/html-MdxqSzjD.d.ts +13 -0
- package/dist/index.cjs +10394 -6565
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +331 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +2022 -249
- package/dist/index.d.ts +2022 -249
- package/dist/index.js +9223 -5969
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +119 -0
- package/dist/kerebron.cjs.map +1 -0
- package/dist/kerebron.css +11 -0
- package/dist/kerebron.d.cts +23 -0
- package/dist/kerebron.d.ts +23 -0
- package/dist/kerebron.js +116 -0
- package/dist/kerebron.js.map +1 -0
- package/dist/nitroTableGrid-3J2GY6CK.cjs +47 -0
- package/dist/nitroTableGrid-3J2GY6CK.cjs.map +1 -0
- package/dist/nitroTableGrid-SIMT7635.js +25 -0
- package/dist/nitroTableGrid-SIMT7635.js.map +1 -0
- package/dist/orderRows-BUJYgSc7.d.cts +221 -0
- package/dist/orderRows-BUJYgSc7.d.ts +221 -0
- package/dist/speaker-verify-5GTWAN5Y.cjs +357 -0
- package/dist/speaker-verify-5GTWAN5Y.cjs.map +1 -0
- package/dist/speaker-verify-R67P433H.js +355 -0
- package/dist/speaker-verify-R67P433H.js.map +1 -0
- package/dist/styles/init.css +5 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/transcript-oaWqY3yr.d.cts +81 -0
- package/dist/transcript-oaWqY3yr.d.ts +81 -0
- package/dist/types-BYnLjEFg.d.cts +248 -0
- package/dist/types-BYnLjEFg.d.ts +248 -0
- package/dist/types-CBh8Zlje.d.cts +240 -0
- package/dist/types-CyCwYBlr.d.ts +240 -0
- package/dist/useAnchoredPosition-nXdSFKHf.d.cts +65 -0
- package/dist/useAnchoredPosition-nXdSFKHf.d.ts +65 -0
- package/dist/useTranscriptEdits-BUylQFg0.d.cts +168 -0
- package/dist/useTranscriptEdits-CWYnjbGP.d.ts +168 -0
- package/dist/utils/index.cjs +27 -18
- package/dist/utils/index.d.cts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -2
- package/package.json +180 -55
- package/dist/chunk-2DS3RJ2D.js.map +0 -1
- package/dist/chunk-74K3RRU7.cjs +0 -4
- package/dist/chunk-7BARESXI.cjs.map +0 -1
- package/dist/chunk-CV4CVGLO.cjs.map +0 -1
- package/dist/chunk-DNPRRYPQ.js.map +0 -1
- package/dist/chunk-FRT6RQND.cjs.map +0 -1
- package/dist/chunk-HYEJLKXI.js +0 -476
- package/dist/chunk-HYEJLKXI.js.map +0 -1
- package/dist/chunk-I56VBDSC.js.map +0 -1
- package/dist/chunk-IBZXDX4L.cjs.map +0 -1
- package/dist/chunk-IKMR2ADM.cjs +0 -25
- package/dist/chunk-IKMR2ADM.cjs.map +0 -1
- package/dist/chunk-JHPFOG2N.cjs.map +0 -1
- package/dist/chunk-K7IGBNZA.cjs.map +0 -1
- package/dist/chunk-LEMY57MI.js +0 -3
- package/dist/chunk-MPOWJVV4.js.map +0 -1
- package/dist/chunk-NINI4WVS.cjs.map +0 -1
- package/dist/chunk-OKBR6PX4.js +0 -23
- package/dist/chunk-OKBR6PX4.js.map +0 -1
- package/dist/chunk-OYKS2JBB.cjs.map +0 -1
- package/dist/chunk-QVJBUWJQ.js.map +0 -1
- package/dist/chunk-R25H4N4Z.js.map +0 -1
- package/dist/chunk-V2DF2GUE.js +0 -3
- package/dist/chunk-WFS6R2F5.js.map +0 -1
- package/dist/ozwell.cjs +0 -385
- package/dist/ozwell.cjs.map +0 -1
- package/dist/ozwell.d.cts +0 -15
- package/dist/ozwell.d.ts +0 -15
- package/dist/ozwell.js +0 -360
- package/dist/ozwell.js.map +0 -1
package/dist/tailwind-preset.cjs
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkJQEY53SH_cjs = require('./chunk-JQEY53SH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "default", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkJQEY53SH_cjs.tailwind_preset_default; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "miewebUIPreset", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkJQEY53SH_cjs.miewebUIPreset; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "miewebUISafelist", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkJQEY53SH_cjs.miewebUISafelist; }
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=tailwind-preset.cjs.map
|
|
22
22
|
//# sourceMappingURL=tailwind-preset.cjs.map
|
package/dist/tailwind-preset.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { tailwind_preset_default as default, miewebUIPreset, miewebUISafelist } from './chunk-
|
|
1
|
+
export { tailwind_preset_default as default, miewebUIPreset, miewebUISafelist } from './chunk-3TERETXH.js';
|
|
2
2
|
//# sourceMappingURL=tailwind-preset.js.map
|
|
3
3
|
//# sourceMappingURL=tailwind-preset.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
/** Reference to original word in transcript.words */
|
|
48
|
+
originalIndex: number;
|
|
49
|
+
/** The word data (from original transcript) */
|
|
50
|
+
word: TranscriptWord;
|
|
51
|
+
/** Whether this word is marked as deleted */
|
|
52
|
+
deleted: boolean;
|
|
53
|
+
/** Whether this word was inserted (pasted from clipboard) */
|
|
54
|
+
inserted?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Represents a contiguous segment of playback from the original media.
|
|
58
|
+
* Used when playing back an edited timeline with potentially reordered/deleted words.
|
|
59
|
+
*/
|
|
60
|
+
interface PlaybackSegment {
|
|
61
|
+
startMs: number;
|
|
62
|
+
endMs: number;
|
|
63
|
+
/** Indices into the editedWords array that this segment covers */
|
|
64
|
+
editedIndices: number[];
|
|
65
|
+
}
|
|
66
|
+
/** Available playback speed multipliers */
|
|
67
|
+
type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
|
|
68
|
+
/** Array of all available speed options for dropdowns */
|
|
69
|
+
declare const PLAYBACK_SPEEDS: PlaybackSpeed[];
|
|
70
|
+
/**
|
|
71
|
+
* A speed marker applied to a word in the transcript.
|
|
72
|
+
* The speed applies from this word until the next speed marker or end of transcript.
|
|
73
|
+
*/
|
|
74
|
+
interface SpeedMarker {
|
|
75
|
+
/** Index in the editedWords array where the speed marker is placed */
|
|
76
|
+
wordIndex: number;
|
|
77
|
+
/** The playback speed multiplier */
|
|
78
|
+
speed: PlaybackSpeed;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
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 };
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
/** Reference to original word in transcript.words */
|
|
48
|
+
originalIndex: number;
|
|
49
|
+
/** The word data (from original transcript) */
|
|
50
|
+
word: TranscriptWord;
|
|
51
|
+
/** Whether this word is marked as deleted */
|
|
52
|
+
deleted: boolean;
|
|
53
|
+
/** Whether this word was inserted (pasted from clipboard) */
|
|
54
|
+
inserted?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Represents a contiguous segment of playback from the original media.
|
|
58
|
+
* Used when playing back an edited timeline with potentially reordered/deleted words.
|
|
59
|
+
*/
|
|
60
|
+
interface PlaybackSegment {
|
|
61
|
+
startMs: number;
|
|
62
|
+
endMs: number;
|
|
63
|
+
/** Indices into the editedWords array that this segment covers */
|
|
64
|
+
editedIndices: number[];
|
|
65
|
+
}
|
|
66
|
+
/** Available playback speed multipliers */
|
|
67
|
+
type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
|
|
68
|
+
/** Array of all available speed options for dropdowns */
|
|
69
|
+
declare const PLAYBACK_SPEEDS: PlaybackSpeed[];
|
|
70
|
+
/**
|
|
71
|
+
* A speed marker applied to a word in the transcript.
|
|
72
|
+
* The speed applies from this word until the next speed marker or end of transcript.
|
|
73
|
+
*/
|
|
74
|
+
interface SpeedMarker {
|
|
75
|
+
/** Index in the editedWords array where the speed marker is placed */
|
|
76
|
+
wordIndex: number;
|
|
77
|
+
/** The playback speed multiplier */
|
|
78
|
+
speed: PlaybackSpeed;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
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 };
|
|
@@ -0,0 +1,248 @@
|
|
|
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
|
+
/**
|
|
172
|
+
* Suggested action/prompt
|
|
173
|
+
*/
|
|
174
|
+
interface AISuggestedAction {
|
|
175
|
+
/** Unique identifier */
|
|
176
|
+
id: string;
|
|
177
|
+
/** Display label */
|
|
178
|
+
label: string;
|
|
179
|
+
/** Full prompt text */
|
|
180
|
+
prompt: string;
|
|
181
|
+
/** Icon name */
|
|
182
|
+
icon?: string;
|
|
183
|
+
/** Category for grouping */
|
|
184
|
+
category?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* AI Chat session
|
|
188
|
+
*/
|
|
189
|
+
interface AIChatSession {
|
|
190
|
+
/** Unique session identifier */
|
|
191
|
+
id: string;
|
|
192
|
+
/** Session title */
|
|
193
|
+
title?: string;
|
|
194
|
+
/** Messages in the session */
|
|
195
|
+
messages: AIMessage[];
|
|
196
|
+
/** Available tools */
|
|
197
|
+
availableTools?: MCPToolInfo[];
|
|
198
|
+
/** Created timestamp */
|
|
199
|
+
createdAt: Date | string;
|
|
200
|
+
/** Last updated timestamp */
|
|
201
|
+
updatedAt: Date | string;
|
|
202
|
+
/** Whether the assistant is currently generating */
|
|
203
|
+
isGenerating: boolean;
|
|
204
|
+
/** Context information */
|
|
205
|
+
context?: {
|
|
206
|
+
/** Current page/location */
|
|
207
|
+
page?: string;
|
|
208
|
+
/** Selected entity */
|
|
209
|
+
entity?: MCPResource;
|
|
210
|
+
/** Additional context */
|
|
211
|
+
custom?: Record<string, unknown>;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Information about an available MCP tool
|
|
216
|
+
*/
|
|
217
|
+
interface MCPToolInfo {
|
|
218
|
+
/** Tool name */
|
|
219
|
+
name: string;
|
|
220
|
+
/** Human-readable description */
|
|
221
|
+
description: string;
|
|
222
|
+
/** Input schema */
|
|
223
|
+
inputSchema?: Record<string, unknown>;
|
|
224
|
+
/** Category for grouping */
|
|
225
|
+
category?: string;
|
|
226
|
+
/** Whether the tool is enabled */
|
|
227
|
+
enabled?: boolean;
|
|
228
|
+
}
|
|
229
|
+
interface AIChatCallbacks {
|
|
230
|
+
/** Called when user sends a message */
|
|
231
|
+
onSendMessage?: (message: string) => void | Promise<void>;
|
|
232
|
+
/** Called when a tool call is initiated */
|
|
233
|
+
onToolCall?: (toolCall: MCPToolCall) => void | Promise<void>;
|
|
234
|
+
/** Called when a tool call completes */
|
|
235
|
+
onToolComplete?: (toolCall: MCPToolCall, result: MCPToolResult) => void;
|
|
236
|
+
/** Called when user clicks a resource link */
|
|
237
|
+
onResourceClick?: (resource: MCPResource | MCPResourceLink) => void;
|
|
238
|
+
/** Called when user selects a suggested action */
|
|
239
|
+
onSuggestedAction?: (action: AISuggestedAction) => void;
|
|
240
|
+
/** Called when user wants to cancel generation */
|
|
241
|
+
onCancel?: () => void;
|
|
242
|
+
/** Called when user wants to retry */
|
|
243
|
+
onRetry?: () => void;
|
|
244
|
+
/** Called when session is cleared */
|
|
245
|
+
onClear?: () => void;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
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, AIChatCallbacks as g, AIChatSession as h, AISuggestedAction as i, AIMessageRole as j, MCPResource as k, MCPToolInfo as l, MCPToolParameter as m, MCPToolResult as n };
|
|
@@ -0,0 +1,248 @@
|
|
|
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
|
+
/**
|
|
172
|
+
* Suggested action/prompt
|
|
173
|
+
*/
|
|
174
|
+
interface AISuggestedAction {
|
|
175
|
+
/** Unique identifier */
|
|
176
|
+
id: string;
|
|
177
|
+
/** Display label */
|
|
178
|
+
label: string;
|
|
179
|
+
/** Full prompt text */
|
|
180
|
+
prompt: string;
|
|
181
|
+
/** Icon name */
|
|
182
|
+
icon?: string;
|
|
183
|
+
/** Category for grouping */
|
|
184
|
+
category?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* AI Chat session
|
|
188
|
+
*/
|
|
189
|
+
interface AIChatSession {
|
|
190
|
+
/** Unique session identifier */
|
|
191
|
+
id: string;
|
|
192
|
+
/** Session title */
|
|
193
|
+
title?: string;
|
|
194
|
+
/** Messages in the session */
|
|
195
|
+
messages: AIMessage[];
|
|
196
|
+
/** Available tools */
|
|
197
|
+
availableTools?: MCPToolInfo[];
|
|
198
|
+
/** Created timestamp */
|
|
199
|
+
createdAt: Date | string;
|
|
200
|
+
/** Last updated timestamp */
|
|
201
|
+
updatedAt: Date | string;
|
|
202
|
+
/** Whether the assistant is currently generating */
|
|
203
|
+
isGenerating: boolean;
|
|
204
|
+
/** Context information */
|
|
205
|
+
context?: {
|
|
206
|
+
/** Current page/location */
|
|
207
|
+
page?: string;
|
|
208
|
+
/** Selected entity */
|
|
209
|
+
entity?: MCPResource;
|
|
210
|
+
/** Additional context */
|
|
211
|
+
custom?: Record<string, unknown>;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Information about an available MCP tool
|
|
216
|
+
*/
|
|
217
|
+
interface MCPToolInfo {
|
|
218
|
+
/** Tool name */
|
|
219
|
+
name: string;
|
|
220
|
+
/** Human-readable description */
|
|
221
|
+
description: string;
|
|
222
|
+
/** Input schema */
|
|
223
|
+
inputSchema?: Record<string, unknown>;
|
|
224
|
+
/** Category for grouping */
|
|
225
|
+
category?: string;
|
|
226
|
+
/** Whether the tool is enabled */
|
|
227
|
+
enabled?: boolean;
|
|
228
|
+
}
|
|
229
|
+
interface AIChatCallbacks {
|
|
230
|
+
/** Called when user sends a message */
|
|
231
|
+
onSendMessage?: (message: string) => void | Promise<void>;
|
|
232
|
+
/** Called when a tool call is initiated */
|
|
233
|
+
onToolCall?: (toolCall: MCPToolCall) => void | Promise<void>;
|
|
234
|
+
/** Called when a tool call completes */
|
|
235
|
+
onToolComplete?: (toolCall: MCPToolCall, result: MCPToolResult) => void;
|
|
236
|
+
/** Called when user clicks a resource link */
|
|
237
|
+
onResourceClick?: (resource: MCPResource | MCPResourceLink) => void;
|
|
238
|
+
/** Called when user selects a suggested action */
|
|
239
|
+
onSuggestedAction?: (action: AISuggestedAction) => void;
|
|
240
|
+
/** Called when user wants to cancel generation */
|
|
241
|
+
onCancel?: () => void;
|
|
242
|
+
/** Called when user wants to retry */
|
|
243
|
+
onRetry?: () => void;
|
|
244
|
+
/** Called when session is cleared */
|
|
245
|
+
onClear?: () => void;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
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, AIChatCallbacks as g, AIChatSession as h, AISuggestedAction as i, AIMessageRole as j, MCPResource as k, MCPToolInfo as l, MCPToolParameter as m, MCPToolResult as n };
|