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

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 (399) 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.css +115 -0
  329. package/dist/kerebron.d.cts +37 -0
  330. package/dist/kerebron.d.ts +37 -0
  331. package/dist/kerebron.js +58 -19
  332. package/dist/kerebron.js.map +1 -1
  333. package/dist/motion.cjs +7 -7
  334. package/dist/motion.d.cts +186 -2
  335. package/dist/motion.d.ts +186 -2
  336. package/dist/motion.js +2 -2
  337. package/dist/q.d.cts +25 -3
  338. package/dist/q.d.ts +25 -3
  339. package/dist/{speaker-verify-5GTWAN5Y.cjs → speaker-verify-4NEJAK6C.cjs} +57 -90
  340. package/dist/speaker-verify-4NEJAK6C.cjs.map +1 -0
  341. package/dist/{speaker-verify-R67P433H.js → speaker-verify-AWSKI6DI.js} +57 -90
  342. package/dist/speaker-verify-AWSKI6DI.js.map +1 -0
  343. package/dist/styles/effects.css +33 -0
  344. package/dist/styles.css +1 -1
  345. package/dist/tailwind-preset.cjs +4 -4
  346. package/dist/tailwind-preset.js +1 -1
  347. package/dist/templates.cjs +103 -0
  348. package/dist/templates.cjs.map +1 -0
  349. package/dist/templates.d.cts +560 -0
  350. package/dist/templates.d.ts +560 -0
  351. package/dist/templates.js +10 -0
  352. package/dist/templates.js.map +1 -0
  353. package/dist/types-C3HQe74F.d.cts +86 -0
  354. package/dist/types-C3HQe74F.d.ts +86 -0
  355. package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
  356. package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
  357. package/dist/utils/index.d.cts +13 -2
  358. package/dist/utils/index.d.ts +13 -2
  359. package/package.json +29 -12
  360. package/dist/Animated-XmH6k8pZ.d.cts +0 -188
  361. package/dist/Animated-XmH6k8pZ.d.ts +0 -188
  362. package/dist/CsvBlock-ROJCKJDP.cjs +0 -16
  363. package/dist/CsvBlock-UWPMTLE2.js +0 -7
  364. package/dist/HtmlPreviewBlock-DWFN6EUB.cjs +0 -16
  365. package/dist/HtmlPreviewBlock-ME5U3XNS.js +0 -7
  366. package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
  367. package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
  368. package/dist/MermaidBlock-2B6CPD6Y.js +0 -7
  369. package/dist/MermaidBlock-D2UC5M55.cjs +0 -16
  370. package/dist/SurveyBlock-4CD4AYMJ.cjs +0 -16
  371. package/dist/SurveyBlock-4DO62RBT.js +0 -7
  372. package/dist/chunk-22CYDCXA.js.map +0 -1
  373. package/dist/chunk-ACCAXVOG.js.map +0 -1
  374. package/dist/chunk-GOALNQZ2.js.map +0 -1
  375. package/dist/chunk-JHULS3EC.js.map +0 -1
  376. package/dist/chunk-JI244Y7C.js.map +0 -1
  377. package/dist/chunk-NV2CWBI2.cjs.map +0 -1
  378. package/dist/chunk-U42F3HLE.cjs.map +0 -1
  379. package/dist/chunk-VNYW4C4J.cjs.map +0 -1
  380. package/dist/chunk-WIAQQNFU.cjs.map +0 -1
  381. package/dist/chunk-WNAA6CLE.cjs.map +0 -1
  382. package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
  383. package/dist/chunk-XCP454Q6.js.map +0 -1
  384. package/dist/html-MdxqSzjD.d.cts +0 -13
  385. package/dist/html-MdxqSzjD.d.ts +0 -13
  386. package/dist/orderRows-BUJYgSc7.d.cts +0 -221
  387. package/dist/orderRows-BUJYgSc7.d.ts +0 -221
  388. package/dist/speaker-verify-5GTWAN5Y.cjs.map +0 -1
  389. package/dist/speaker-verify-R67P433H.js.map +0 -1
  390. package/dist/transcript-Cg7uSW-C.d.cts +0 -84
  391. package/dist/transcript-Cg7uSW-C.d.ts +0 -84
  392. package/dist/types-CnPEwzlp.d.cts +0 -254
  393. package/dist/types-CnPEwzlp.d.ts +0 -254
  394. package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
  395. package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
  396. package/dist/useTheme-B9SWu6ui.d.cts +0 -24
  397. package/dist/useTheme-B9SWu6ui.d.ts +0 -24
  398. package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
  399. package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
@@ -1,76 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type AnchoredPlacement = 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top' | 'right-start' | 'right-end' | 'right' | 'left-start' | 'left-end' | 'left';
4
- type AnchoredSide = 'top' | 'bottom' | 'left' | 'right';
5
- interface UseAnchoredPositionOptions {
6
- /** Whether the floating element is currently shown */
7
- open: boolean;
8
- /** Preferred placement relative to the anchor (flips when out of space) */
9
- placement?: AnchoredPlacement;
10
- /** Gap between the anchor and the floating element, in px */
11
- offset?: number;
12
- /** Force the floating element to the anchor's width */
13
- matchWidth?: boolean;
14
- /** Use the anchor's width as the floating element's minimum width */
15
- matchMinWidth?: boolean;
16
- /** Minimum distance from the viewport edges, in px */
17
- viewportPadding?: number;
18
- /** Flip to the opposite vertical side when the preferred side is cramped */
19
- allowFlip?: boolean;
20
- /** Optional element whose visible rectangle also constrains the popup */
21
- boundaryRef?: React.RefObject<HTMLElement | null>;
22
- /**
23
- * Additional cap on the floating element's height, in px. The height is
24
- * always clamped to the available viewport space; this only lowers that
25
- * limit further (omitting it does not remove the viewport constraint).
26
- */
27
- maxHeight?: number;
28
- }
29
- interface UseAnchoredPositionReturn<TAnchor extends HTMLElement, TFloating extends HTMLElement> {
30
- /** Attach to the element the popup is anchored to (trigger/input) */
31
- anchorRef: React.RefObject<TAnchor | null>;
32
- /** Attach to the floating element (menu/listbox/panel) */
33
- floatingRef: React.RefObject<TFloating | null>;
34
- /** Fixed-position style for the floating element — spread onto it */
35
- style: React.CSSProperties;
36
- /**
37
- * Side of the anchor in use after flipping.
38
- *
39
- * Widened from `'top' | 'bottom'` to {@link AnchoredSide} in 0.8.0 alongside
40
- * the new horizontal (`left*` / `right*`) placements — consumers that
41
- * annotate this as `'top' | 'bottom'` need to widen their annotation.
42
- */
43
- actualSide: AnchoredSide;
44
- /** Recompute the position (e.g. after async content loads) */
45
- update: () => void;
46
- }
47
- /**
48
- * Positions a floating element (dropdown menu, autocomplete listbox,
49
- * date-picker calendar, …) relative to an anchor using `position: fixed`,
50
- * so it is never clipped by `overflow: hidden` ancestors.
51
- *
52
- * Render the floating element through `createPortal(..., document.body)`
53
- * and spread the returned `style` onto it. The hook:
54
- * - flips vertically when there is not enough space on the preferred side
55
- * - clamps horizontally to the viewport or optional boundary element
56
- * - constrains `maxHeight` to the available space (add `overflow-auto`)
57
- * - tracks scroll, resize, and anchor/content size changes while open
58
- *
59
- * @example
60
- * ```tsx
61
- * const { anchorRef, floatingRef, style } = useAnchoredPosition<
62
- * HTMLButtonElement,
63
- * HTMLDivElement
64
- * >({ open, placement: 'bottom-start' });
65
- *
66
- * <button ref={anchorRef} onClick={() => setOpen(!open)}>Open</button>
67
- * {open &&
68
- * createPortal(
69
- * <div ref={floatingRef} style={style} className="overflow-auto …">…</div>,
70
- * document.body
71
- * )}
72
- * ```
73
- */
74
- declare function useAnchoredPosition<TAnchor extends HTMLElement = HTMLElement, TFloating extends HTMLElement = HTMLElement>({ open, placement, offset, matchWidth, matchMinWidth, viewportPadding, allowFlip, boundaryRef, maxHeight, }: UseAnchoredPositionOptions): UseAnchoredPositionReturn<TAnchor, TFloating>;
75
-
76
- export { type AnchoredPlacement as A, type UseAnchoredPositionOptions as U, type UseAnchoredPositionReturn as a, useAnchoredPosition as u };
@@ -1,76 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type AnchoredPlacement = 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top' | 'right-start' | 'right-end' | 'right' | 'left-start' | 'left-end' | 'left';
4
- type AnchoredSide = 'top' | 'bottom' | 'left' | 'right';
5
- interface UseAnchoredPositionOptions {
6
- /** Whether the floating element is currently shown */
7
- open: boolean;
8
- /** Preferred placement relative to the anchor (flips when out of space) */
9
- placement?: AnchoredPlacement;
10
- /** Gap between the anchor and the floating element, in px */
11
- offset?: number;
12
- /** Force the floating element to the anchor's width */
13
- matchWidth?: boolean;
14
- /** Use the anchor's width as the floating element's minimum width */
15
- matchMinWidth?: boolean;
16
- /** Minimum distance from the viewport edges, in px */
17
- viewportPadding?: number;
18
- /** Flip to the opposite vertical side when the preferred side is cramped */
19
- allowFlip?: boolean;
20
- /** Optional element whose visible rectangle also constrains the popup */
21
- boundaryRef?: React.RefObject<HTMLElement | null>;
22
- /**
23
- * Additional cap on the floating element's height, in px. The height is
24
- * always clamped to the available viewport space; this only lowers that
25
- * limit further (omitting it does not remove the viewport constraint).
26
- */
27
- maxHeight?: number;
28
- }
29
- interface UseAnchoredPositionReturn<TAnchor extends HTMLElement, TFloating extends HTMLElement> {
30
- /** Attach to the element the popup is anchored to (trigger/input) */
31
- anchorRef: React.RefObject<TAnchor | null>;
32
- /** Attach to the floating element (menu/listbox/panel) */
33
- floatingRef: React.RefObject<TFloating | null>;
34
- /** Fixed-position style for the floating element — spread onto it */
35
- style: React.CSSProperties;
36
- /**
37
- * Side of the anchor in use after flipping.
38
- *
39
- * Widened from `'top' | 'bottom'` to {@link AnchoredSide} in 0.8.0 alongside
40
- * the new horizontal (`left*` / `right*`) placements — consumers that
41
- * annotate this as `'top' | 'bottom'` need to widen their annotation.
42
- */
43
- actualSide: AnchoredSide;
44
- /** Recompute the position (e.g. after async content loads) */
45
- update: () => void;
46
- }
47
- /**
48
- * Positions a floating element (dropdown menu, autocomplete listbox,
49
- * date-picker calendar, …) relative to an anchor using `position: fixed`,
50
- * so it is never clipped by `overflow: hidden` ancestors.
51
- *
52
- * Render the floating element through `createPortal(..., document.body)`
53
- * and spread the returned `style` onto it. The hook:
54
- * - flips vertically when there is not enough space on the preferred side
55
- * - clamps horizontally to the viewport or optional boundary element
56
- * - constrains `maxHeight` to the available space (add `overflow-auto`)
57
- * - tracks scroll, resize, and anchor/content size changes while open
58
- *
59
- * @example
60
- * ```tsx
61
- * const { anchorRef, floatingRef, style } = useAnchoredPosition<
62
- * HTMLButtonElement,
63
- * HTMLDivElement
64
- * >({ open, placement: 'bottom-start' });
65
- *
66
- * <button ref={anchorRef} onClick={() => setOpen(!open)}>Open</button>
67
- * {open &&
68
- * createPortal(
69
- * <div ref={floatingRef} style={style} className="overflow-auto …">…</div>,
70
- * document.body
71
- * )}
72
- * ```
73
- */
74
- declare function useAnchoredPosition<TAnchor extends HTMLElement = HTMLElement, TFloating extends HTMLElement = HTMLElement>({ open, placement, offset, matchWidth, matchMinWidth, viewportPadding, allowFlip, boundaryRef, maxHeight, }: UseAnchoredPositionOptions): UseAnchoredPositionReturn<TAnchor, TFloating>;
75
-
76
- export { type AnchoredPlacement as A, type UseAnchoredPositionOptions as U, type UseAnchoredPositionReturn as a, useAnchoredPosition as u };
@@ -1,24 +0,0 @@
1
- type Theme = 'light' | 'dark' | 'system';
2
- type ResolvedTheme = 'light' | 'dark';
3
- /**
4
- * Hook for managing theme state with localStorage persistence and system preference support.
5
- *
6
- * @example
7
- * ```tsx
8
- * function ThemeToggle() {
9
- * const { theme, setTheme, resolvedTheme } = useTheme();
10
- * return (
11
- * <button onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')}>
12
- * {resolvedTheme === 'dark' ? '☀️' : '🌙'}
13
- * </button>
14
- * );
15
- * }
16
- * ```
17
- */
18
- declare function useTheme(): {
19
- theme: Theme;
20
- setTheme: (newTheme: Theme) => void;
21
- resolvedTheme: ResolvedTheme;
22
- };
23
-
24
- export { type ResolvedTheme as R, type Theme as T, useTheme as u };
@@ -1,24 +0,0 @@
1
- type Theme = 'light' | 'dark' | 'system';
2
- type ResolvedTheme = 'light' | 'dark';
3
- /**
4
- * Hook for managing theme state with localStorage persistence and system preference support.
5
- *
6
- * @example
7
- * ```tsx
8
- * function ThemeToggle() {
9
- * const { theme, setTheme, resolvedTheme } = useTheme();
10
- * return (
11
- * <button onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')}>
12
- * {resolvedTheme === 'dark' ? '☀️' : '🌙'}
13
- * </button>
14
- * );
15
- * }
16
- * ```
17
- */
18
- declare function useTheme(): {
19
- theme: Theme;
20
- setTheme: (newTheme: Theme) => void;
21
- resolvedTheme: ResolvedTheme;
22
- };
23
-
24
- export { type ResolvedTheme as R, type Theme as T, useTheme as u };
@@ -1,182 +0,0 @@
1
- import { E as EditableWord, T as Transcript, S as SpeedMarker, P as PlaybackSpeed, a as PlaybackSegment, b as TranscriptWord } from './transcript-Cg7uSW-C.cjs';
2
-
3
- /**
4
- * useTranscriptEdits — headless transcript-editing state hook.
5
- *
6
- * Extracted from pulseclip's TranscriptViewer for @mieweb/ui. Holds the
7
- * edited word timeline (deletions, insertions, text edits, silence
8
- * splitting), a single-level undo stack, an internal clipboard, speed
9
- * markers, and derived playback/statistics data.
10
- *
11
- * Controlled + persistence-agnostic: no DOM, no fetches. Selection lives in
12
- * the UI layer — mutations take explicit indices. State flows out via
13
- * `onChange` and back in via `initialEditedWords` / `initialUndoStack`.
14
- */
15
-
16
- /** Default filler words offered for removal */
17
- declare const DEFAULT_FILLER_WORDS: string[];
18
- /** Default minimum silence duration in milliseconds to detect and insert */
19
- declare const DEFAULT_MIN_SILENCE_MS = 400;
20
- /** Default threshold for "newline" silences - longer pauses that indicate paragraph breaks */
21
- declare const DEFAULT_NL_SILENCE_MS = 1500;
22
- /** Clipboard data for cut/copy/paste operations */
23
- interface TranscriptClipboard {
24
- words: EditableWord[];
25
- operation: 'cut' | 'copy';
26
- }
27
- /** Count and total duration of silences above a given threshold (seconds) */
28
- interface SilenceThresholdCount {
29
- threshold: number;
30
- count: number;
31
- durationMs: number;
32
- }
33
- /**
34
- * Builds playback segments from the edited word list.
35
- * Consecutive words in original order are merged into single segments.
36
- * Inserted (pasted) words each get their own segment since they may be duplicates.
37
- */
38
- declare function buildPlaybackSegments(editedWords: EditableWord[]): PlaybackSegment[];
39
- /**
40
- * Get the effective playback speed at a given word index.
41
- * Finds the most recent speed marker at or before the word index,
42
- * or returns the default speed if no marker applies.
43
- */
44
- declare function getSpeedAtIndex(wordIndex: number, speedMarkers: SpeedMarker[], defaultSpeed: PlaybackSpeed): PlaybackSpeed;
45
- /**
46
- * Detect silences between words and return a new array with silence pseudo-words inserted.
47
- * Silences are detected as gaps between the endMs of one word and startMs of the next.
48
- * Silences >= nlSilenceMs are marked as 'silence-newline' for visual line breaks.
49
- */
50
- declare function insertSilences(words: TranscriptWord[], minSilenceMs?: number, nlSilenceMs?: number): TranscriptWord[];
51
- /** Initialize editable words from transcript, inserting detected silences */
52
- declare function initEditableWords(transcript: Transcript, minSilenceMs?: number, nlSilenceMs?: number): EditableWord[];
53
- interface UseTranscriptEditsOptions {
54
- /** The source transcript (canonical, immutable) */
55
- transcript: Transcript;
56
- /** Initial edited words (from saved edits) */
57
- initialEditedWords?: EditableWord[];
58
- /** Initial undo stack (from saved edits) */
59
- initialUndoStack?: EditableWord[][];
60
- /** Fired after every mutation (for persistence) */
61
- onChange?: (editedWords: EditableWord[], undoStack: EditableWord[][]) => void;
62
- /** Minimum silence duration (ms) to detect and insert. Default 400 */
63
- minSilenceMs?: number;
64
- /** Threshold (ms) for "newline" silences (paragraph breaks). Default 1500 */
65
- nlSilenceMs?: number;
66
- /** Initial speed markers (from saved edits) */
67
- initialSpeedMarkers?: SpeedMarker[];
68
- /** Initial default playback speed (from saved edits). Default 1 */
69
- initialDefaultSpeed?: PlaybackSpeed;
70
- }
71
- interface TranscriptEditStats {
72
- /** Non-deleted spoken words (silences excluded) */
73
- activeWordCount: number;
74
- /** Non-deleted silence entries */
75
- activeSilenceCount: number;
76
- /** Deleted spoken words */
77
- deletedWordCount: number;
78
- /** Deleted silence entries */
79
- deletedSilenceCount: number;
80
- /** Total duration of non-deleted entries, adjusted for speed markers */
81
- editedDurationMs: number;
82
- }
83
- interface FillerAnalysis {
84
- /** Occurrence count per normalized word (fillers and every active word) */
85
- matchCounts: Map<string, number>;
86
- /** Total duration (ms) per normalized word */
87
- durations: Map<string, number>;
88
- /** Count + total duration of active silences above each analysis threshold */
89
- silenceCounts: SilenceThresholdCount[];
90
- /** The built-in filler word list */
91
- defaultFillerWords: string[];
92
- }
93
- interface UseTranscriptEditsResult {
94
- /** The edited timeline (words + silence pseudo-words) */
95
- editedWords: EditableWord[];
96
- /** Undo snapshots, oldest first */
97
- undoStack: EditableWord[][];
98
- /** Internal clipboard from the last cut/copy, or null */
99
- clipboard: TranscriptClipboard | null;
100
- /** Whether any edit has been made (deletions, insertions, text edits, speed markers) */
101
- hasEdits: boolean;
102
- /** Push the current editedWords onto the undo stack (call before external batch mutations) */
103
- pushUndo: () => void;
104
- /** Restore the most recent undo snapshot */
105
- undo: () => void;
106
- /** Step forward again after an undo. Cleared by any new edit. */
107
- redo: () => void;
108
- /** Whether there is anything to redo */
109
- canRedo: boolean;
110
- /** Toggle the deleted flag on a single word */
111
- toggleWordDeleted: (index: number) => void;
112
- /**
113
- * Toggle the deleted state of a contiguous range. The first index acts as
114
- * the anchor: all words are set to the opposite of the anchor's state
115
- * (delete all if anchor active, restore all if anchor deleted).
116
- */
117
- deleteRange: (indices: number[]) => void;
118
- /** Cut words at the given indices into the clipboard (marks them deleted) */
119
- cut: (indices: number[]) => void;
120
- /** Copy non-deleted words at the given indices into the clipboard */
121
- copy: (indices: number[]) => void;
122
- /**
123
- * Paste the clipboard at a word index. `before` (default true) inserts
124
- * before the word at `atIndex`; false inserts after it. Returns the index
125
- * where the first pasted word landed, or null if the clipboard was empty.
126
- */
127
- paste: (atIndex: number, before?: boolean) => number | null;
128
- /** Replace a word's text (no-op if unchanged) */
129
- setWordText: (index: number, text: string) => void;
130
- /** Split a silence at the given index into segments with the given durations (seconds) */
131
- splitSilence: (index: number, durationsSec: number[]) => void;
132
- /** Toggle the word at the index deleted (editor "delete" action) */
133
- deleteWord: (index: number) => void;
134
- /** Replace the entire edit state from an external source (e.g. an editable script view); undo-safe */
135
- replaceEditedWords: (next: EditableWord[]) => void;
136
- /** Mark matching filler words (and silences above the given seconds threshold) deleted */
137
- removeFillers: (fillerWords: string[], removeSilenceAboveSec: number | null) => void;
138
- /** Rebuild silence detection with new thresholds, preserving word deletions.
139
- * Not undoable — clears the undo stack (prior snapshots reference the old silence layout). */
140
- setSilenceThresholds: (minMs: number, nlMs: number) => void;
141
- /** Current silence detection thresholds (ms) */
142
- silenceThresholds: {
143
- minSilenceMs: number;
144
- nlSilenceMs: number;
145
- };
146
- /** Speed markers, sorted by word index */
147
- speedMarkers: SpeedMarker[];
148
- /** Default playback speed when no marker applies */
149
- defaultSpeed: PlaybackSpeed;
150
- /** Set the default playback speed (undoable) */
151
- setDefaultSpeed: (speed: PlaybackSpeed) => void;
152
- /** Add/update/remove a speed marker (re-selecting the same speed removes it; undoable) */
153
- toggleSpeedMarker: (index: number, speed: PlaybackSpeed) => void;
154
- /** Remove the speed marker at a word index, if any (undoable) */
155
- removeSpeedMarker: (index: number) => void;
156
- /**
157
- * Apply one speed across an index range (typically the selection): marks the
158
- * start, restores the prior effective speed after the end. One undo step.
159
- */
160
- setSpeedForRange: (startIndex: number, endIndex: number, speed: PlaybackSpeed) => void;
161
- /** Effective playback speed at a word index */
162
- getSpeedAtIndex: (index: number) => PlaybackSpeed;
163
- /** The speed marker at a word index, if any */
164
- getSpeedMarkerAtIndex: (index: number) => SpeedMarker | undefined;
165
- /** Contiguous playback segments built from the edited timeline */
166
- playbackSegments: PlaybackSegment[];
167
- /** Word/silence counts and speed-adjusted edited duration */
168
- stats: TranscriptEditStats;
169
- /** Filler word and silence analysis for removal UIs */
170
- fillerAnalysis: FillerAnalysis;
171
- }
172
- /**
173
- * Headless transcript-editing hook. See module docs for scope.
174
- *
175
- * Undo semantics: each mutation snapshots the full `editedWords` array onto
176
- * a single-level stack before applying; `undo` pops one snapshot. Speed
177
- * markers and silence-threshold changes are NOT part of the undo stack
178
- * (matching the source component).
179
- */
180
- declare function useTranscriptEdits(options: UseTranscriptEditsOptions): UseTranscriptEditsResult;
181
-
182
- export { DEFAULT_FILLER_WORDS as D, type FillerAnalysis as F, type SilenceThresholdCount as S, type TranscriptClipboard as T, type UseTranscriptEditsOptions as U, DEFAULT_MIN_SILENCE_MS as a, DEFAULT_NL_SILENCE_MS as b, type TranscriptEditStats as c, type UseTranscriptEditsResult as d, buildPlaybackSegments as e, insertSilences as f, getSpeedAtIndex as g, initEditableWords as i, useTranscriptEdits as u };
@@ -1,182 +0,0 @@
1
- import { E as EditableWord, T as Transcript, S as SpeedMarker, P as PlaybackSpeed, a as PlaybackSegment, b as TranscriptWord } from './transcript-Cg7uSW-C.js';
2
-
3
- /**
4
- * useTranscriptEdits — headless transcript-editing state hook.
5
- *
6
- * Extracted from pulseclip's TranscriptViewer for @mieweb/ui. Holds the
7
- * edited word timeline (deletions, insertions, text edits, silence
8
- * splitting), a single-level undo stack, an internal clipboard, speed
9
- * markers, and derived playback/statistics data.
10
- *
11
- * Controlled + persistence-agnostic: no DOM, no fetches. Selection lives in
12
- * the UI layer — mutations take explicit indices. State flows out via
13
- * `onChange` and back in via `initialEditedWords` / `initialUndoStack`.
14
- */
15
-
16
- /** Default filler words offered for removal */
17
- declare const DEFAULT_FILLER_WORDS: string[];
18
- /** Default minimum silence duration in milliseconds to detect and insert */
19
- declare const DEFAULT_MIN_SILENCE_MS = 400;
20
- /** Default threshold for "newline" silences - longer pauses that indicate paragraph breaks */
21
- declare const DEFAULT_NL_SILENCE_MS = 1500;
22
- /** Clipboard data for cut/copy/paste operations */
23
- interface TranscriptClipboard {
24
- words: EditableWord[];
25
- operation: 'cut' | 'copy';
26
- }
27
- /** Count and total duration of silences above a given threshold (seconds) */
28
- interface SilenceThresholdCount {
29
- threshold: number;
30
- count: number;
31
- durationMs: number;
32
- }
33
- /**
34
- * Builds playback segments from the edited word list.
35
- * Consecutive words in original order are merged into single segments.
36
- * Inserted (pasted) words each get their own segment since they may be duplicates.
37
- */
38
- declare function buildPlaybackSegments(editedWords: EditableWord[]): PlaybackSegment[];
39
- /**
40
- * Get the effective playback speed at a given word index.
41
- * Finds the most recent speed marker at or before the word index,
42
- * or returns the default speed if no marker applies.
43
- */
44
- declare function getSpeedAtIndex(wordIndex: number, speedMarkers: SpeedMarker[], defaultSpeed: PlaybackSpeed): PlaybackSpeed;
45
- /**
46
- * Detect silences between words and return a new array with silence pseudo-words inserted.
47
- * Silences are detected as gaps between the endMs of one word and startMs of the next.
48
- * Silences >= nlSilenceMs are marked as 'silence-newline' for visual line breaks.
49
- */
50
- declare function insertSilences(words: TranscriptWord[], minSilenceMs?: number, nlSilenceMs?: number): TranscriptWord[];
51
- /** Initialize editable words from transcript, inserting detected silences */
52
- declare function initEditableWords(transcript: Transcript, minSilenceMs?: number, nlSilenceMs?: number): EditableWord[];
53
- interface UseTranscriptEditsOptions {
54
- /** The source transcript (canonical, immutable) */
55
- transcript: Transcript;
56
- /** Initial edited words (from saved edits) */
57
- initialEditedWords?: EditableWord[];
58
- /** Initial undo stack (from saved edits) */
59
- initialUndoStack?: EditableWord[][];
60
- /** Fired after every mutation (for persistence) */
61
- onChange?: (editedWords: EditableWord[], undoStack: EditableWord[][]) => void;
62
- /** Minimum silence duration (ms) to detect and insert. Default 400 */
63
- minSilenceMs?: number;
64
- /** Threshold (ms) for "newline" silences (paragraph breaks). Default 1500 */
65
- nlSilenceMs?: number;
66
- /** Initial speed markers (from saved edits) */
67
- initialSpeedMarkers?: SpeedMarker[];
68
- /** Initial default playback speed (from saved edits). Default 1 */
69
- initialDefaultSpeed?: PlaybackSpeed;
70
- }
71
- interface TranscriptEditStats {
72
- /** Non-deleted spoken words (silences excluded) */
73
- activeWordCount: number;
74
- /** Non-deleted silence entries */
75
- activeSilenceCount: number;
76
- /** Deleted spoken words */
77
- deletedWordCount: number;
78
- /** Deleted silence entries */
79
- deletedSilenceCount: number;
80
- /** Total duration of non-deleted entries, adjusted for speed markers */
81
- editedDurationMs: number;
82
- }
83
- interface FillerAnalysis {
84
- /** Occurrence count per normalized word (fillers and every active word) */
85
- matchCounts: Map<string, number>;
86
- /** Total duration (ms) per normalized word */
87
- durations: Map<string, number>;
88
- /** Count + total duration of active silences above each analysis threshold */
89
- silenceCounts: SilenceThresholdCount[];
90
- /** The built-in filler word list */
91
- defaultFillerWords: string[];
92
- }
93
- interface UseTranscriptEditsResult {
94
- /** The edited timeline (words + silence pseudo-words) */
95
- editedWords: EditableWord[];
96
- /** Undo snapshots, oldest first */
97
- undoStack: EditableWord[][];
98
- /** Internal clipboard from the last cut/copy, or null */
99
- clipboard: TranscriptClipboard | null;
100
- /** Whether any edit has been made (deletions, insertions, text edits, speed markers) */
101
- hasEdits: boolean;
102
- /** Push the current editedWords onto the undo stack (call before external batch mutations) */
103
- pushUndo: () => void;
104
- /** Restore the most recent undo snapshot */
105
- undo: () => void;
106
- /** Step forward again after an undo. Cleared by any new edit. */
107
- redo: () => void;
108
- /** Whether there is anything to redo */
109
- canRedo: boolean;
110
- /** Toggle the deleted flag on a single word */
111
- toggleWordDeleted: (index: number) => void;
112
- /**
113
- * Toggle the deleted state of a contiguous range. The first index acts as
114
- * the anchor: all words are set to the opposite of the anchor's state
115
- * (delete all if anchor active, restore all if anchor deleted).
116
- */
117
- deleteRange: (indices: number[]) => void;
118
- /** Cut words at the given indices into the clipboard (marks them deleted) */
119
- cut: (indices: number[]) => void;
120
- /** Copy non-deleted words at the given indices into the clipboard */
121
- copy: (indices: number[]) => void;
122
- /**
123
- * Paste the clipboard at a word index. `before` (default true) inserts
124
- * before the word at `atIndex`; false inserts after it. Returns the index
125
- * where the first pasted word landed, or null if the clipboard was empty.
126
- */
127
- paste: (atIndex: number, before?: boolean) => number | null;
128
- /** Replace a word's text (no-op if unchanged) */
129
- setWordText: (index: number, text: string) => void;
130
- /** Split a silence at the given index into segments with the given durations (seconds) */
131
- splitSilence: (index: number, durationsSec: number[]) => void;
132
- /** Toggle the word at the index deleted (editor "delete" action) */
133
- deleteWord: (index: number) => void;
134
- /** Replace the entire edit state from an external source (e.g. an editable script view); undo-safe */
135
- replaceEditedWords: (next: EditableWord[]) => void;
136
- /** Mark matching filler words (and silences above the given seconds threshold) deleted */
137
- removeFillers: (fillerWords: string[], removeSilenceAboveSec: number | null) => void;
138
- /** Rebuild silence detection with new thresholds, preserving word deletions.
139
- * Not undoable — clears the undo stack (prior snapshots reference the old silence layout). */
140
- setSilenceThresholds: (minMs: number, nlMs: number) => void;
141
- /** Current silence detection thresholds (ms) */
142
- silenceThresholds: {
143
- minSilenceMs: number;
144
- nlSilenceMs: number;
145
- };
146
- /** Speed markers, sorted by word index */
147
- speedMarkers: SpeedMarker[];
148
- /** Default playback speed when no marker applies */
149
- defaultSpeed: PlaybackSpeed;
150
- /** Set the default playback speed (undoable) */
151
- setDefaultSpeed: (speed: PlaybackSpeed) => void;
152
- /** Add/update/remove a speed marker (re-selecting the same speed removes it; undoable) */
153
- toggleSpeedMarker: (index: number, speed: PlaybackSpeed) => void;
154
- /** Remove the speed marker at a word index, if any (undoable) */
155
- removeSpeedMarker: (index: number) => void;
156
- /**
157
- * Apply one speed across an index range (typically the selection): marks the
158
- * start, restores the prior effective speed after the end. One undo step.
159
- */
160
- setSpeedForRange: (startIndex: number, endIndex: number, speed: PlaybackSpeed) => void;
161
- /** Effective playback speed at a word index */
162
- getSpeedAtIndex: (index: number) => PlaybackSpeed;
163
- /** The speed marker at a word index, if any */
164
- getSpeedMarkerAtIndex: (index: number) => SpeedMarker | undefined;
165
- /** Contiguous playback segments built from the edited timeline */
166
- playbackSegments: PlaybackSegment[];
167
- /** Word/silence counts and speed-adjusted edited duration */
168
- stats: TranscriptEditStats;
169
- /** Filler word and silence analysis for removal UIs */
170
- fillerAnalysis: FillerAnalysis;
171
- }
172
- /**
173
- * Headless transcript-editing hook. See module docs for scope.
174
- *
175
- * Undo semantics: each mutation snapshots the full `editedWords` array onto
176
- * a single-level stack before applying; `undo` pops one snapshot. Speed
177
- * markers and silence-threshold changes are NOT part of the undo stack
178
- * (matching the source component).
179
- */
180
- declare function useTranscriptEdits(options: UseTranscriptEditsOptions): UseTranscriptEditsResult;
181
-
182
- export { DEFAULT_FILLER_WORDS as D, type FillerAnalysis as F, type SilenceThresholdCount as S, type TranscriptClipboard as T, type UseTranscriptEditsOptions as U, DEFAULT_MIN_SILENCE_MS as a, DEFAULT_NL_SILENCE_MS as b, type TranscriptEditStats as c, type UseTranscriptEditsResult as d, buildPlaybackSegments as e, insertSilences as f, getSpeedAtIndex as g, initEditableWords as i, useTranscriptEdits as u };