@cloudflare/realtimekit-ui 2.0.3-staging.1 → 2.0.3-staging.10

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 (559) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-CXP5MCz2.js → TextMessage-cfaZckxh.js} +1 -1
  3. package/dist/cjs/{chat-BJwmnHGm.js → chat-Dmb93Uku.js} +1 -1
  4. package/dist/cjs/{config-lVBc97X8.js → config-wbyoqfPs.js} +2 -2
  5. package/dist/cjs/{debounce-BfjpS8nk.js → debounce-B5TJRWkG.js} +1 -1
  6. package/dist/cjs/index-Bi2L8zQ7.js +10 -6
  7. package/dist/cjs/{index-iml9xkbo.js → index-CmhPLhux.js} +1 -1
  8. package/dist/cjs/index.cjs.js +5 -5
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{merge-BJWi-sVV.js → merge-B7Yr5DGf.js} +1 -1
  11. package/dist/cjs/{notification-BM6CUHyL.js → notification-Bny5fHfy.js} +3 -3
  12. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  13. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-audio-tile.cjs.entry.js +5 -2
  18. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
  19. package/dist/cjs/rtk-avatar_26.cjs.entry.js +25 -25
  20. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  21. package/dist/cjs/{rtk-breakout-rooms-manager_9.cjs.entry.js → rtk-breakout-rooms-manager_8.cjs.entry.js} +19 -112
  22. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  27. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  31. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +10 -16
  36. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-debugger.cjs.entry.js +99 -0
  38. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +3 -3
  39. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  43. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-grid.cjs.entry.js +10 -10
  46. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -6
  56. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  63. package/dist/cjs/rtk-notifications.cjs.entry.js +4 -4
  64. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  67. package/dist/cjs/rtk-participants-audio.cjs.entry.js +57 -14
  68. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  71. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +4 -4
  85. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  88. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  90. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  91. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  93. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  94. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  95. package/dist/cjs/{ui-store-C8bSJOfE.js → ui-store-C7CyFWPZ.js} +1 -1
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +2 -4
  97. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +3 -0
  98. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -6
  99. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +8 -7
  100. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +9 -10
  101. package/dist/collection/components/rtk-debugger/rtk-debugger.css +28 -18
  102. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  103. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +8 -15
  104. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  105. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +8 -15
  106. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  107. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +7 -14
  108. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -8
  109. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +8 -15
  110. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  111. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  112. package/dist/collection/components/rtk-grid/rtk-grid.js +8 -8
  113. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -4
  114. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
  115. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
  116. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -4
  117. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -4
  118. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +4 -6
  119. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  120. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  121. package/dist/collection/lib/audio.js +55 -12
  122. package/dist/collection/lib/notification.js +3 -3
  123. package/dist/collection/utils/clone.js +1 -1
  124. package/dist/components/index.js +1 -1
  125. package/dist/components/{p-BssX9KwA.js → p--CEA0NQj.js} +1 -1
  126. package/dist/components/{p-CWHbCyoL.js → p--VK1POSX.js} +1 -1
  127. package/dist/components/{p-kwrAj1JQ.js → p-5i84b0Gw.js} +1 -1
  128. package/dist/components/{p-DCtgO53p.js → p-93ZUKlQ1.js} +1 -1
  129. package/dist/components/{p-DXSMSSbW.js → p-B0SC1Zj-.js} +1 -1
  130. package/dist/components/{p-CPF_oopS.js → p-B1HaRABx.js} +1 -1
  131. package/dist/components/{p-Dy1vyj0N.js → p-B1oyTNvb.js} +1 -1
  132. package/dist/components/{p-BQkUbUdr.js → p-B3dQhqRr.js} +1 -1
  133. package/dist/components/{p-Bgm0SnIA.js → p-B4dw_Fnl.js} +1 -1
  134. package/dist/components/p-B56IYWsZ.js +1 -0
  135. package/dist/components/{p-BNRJKXAG.js → p-BHHJ7_MS.js} +1 -1
  136. package/dist/components/{p-Bj4I4jh7.js → p-BQJoMtIK.js} +1 -1
  137. package/dist/components/{p-Bqf3TobZ.js → p-BXHUa6x_.js} +1 -1
  138. package/dist/components/p-BY_rxRub.js +1 -0
  139. package/dist/components/p-BbE6o8zj.js +1 -0
  140. package/dist/components/{p-CwNP8xfN.js → p-Bf-HIBwL.js} +1 -1
  141. package/dist/components/{p-CfFkjBT0.js → p-Bf-vQ6U9.js} +1 -1
  142. package/dist/components/{p-BbtnaCk4.js → p-Bn6JMUc9.js} +1 -1
  143. package/dist/components/{p-CVfA5R2h.js → p-BoqfUgTL.js} +1 -1
  144. package/dist/components/{p-vBjvMv_5.js → p-Bux-kSlP.js} +1 -1
  145. package/dist/components/{p-Chf25Wxh.js → p-BvLjh5Yy.js} +1 -1
  146. package/dist/components/{p-C9KgVl-d.js → p-BxPmWGqJ.js} +1 -1
  147. package/dist/components/p-ByPpyWt6.js +1 -0
  148. package/dist/components/{p-C-ZKbHGI.js → p-C0ESgBoj.js} +1 -1
  149. package/dist/components/p-C5kkSbkd.js +1 -0
  150. package/dist/components/{p-B17zaVfB.js → p-C6AgOKhg.js} +1 -1
  151. package/dist/components/{p-CXK5Hixp.js → p-C7WazpNf.js} +1 -1
  152. package/dist/components/{p-Bvn365hl.js → p-C9UuqXCX.js} +1 -1
  153. package/dist/components/{p-DcBUj_Ju.js → p-CAMtxcI_.js} +1 -1
  154. package/dist/components/{p-C71rbtpI.js → p-CAsupO2z.js} +1 -1
  155. package/dist/components/p-CBWhDYEo.js +1 -0
  156. package/dist/components/{p-Ba4odlrT.js → p-CCxMYXjI.js} +1 -1
  157. package/dist/components/{p-mm-pzvJ-.js → p-CEK_XoGw.js} +1 -1
  158. package/dist/components/{p-DPxfGgCX.js → p-CFBS-gbK.js} +1 -1
  159. package/dist/components/p-CHOs-ZsL.js +1 -0
  160. package/dist/components/p-CHh7GAdL.js +1 -0
  161. package/dist/components/{p-DnGHVpK1.js → p-CJGAvEk3.js} +1 -1
  162. package/dist/components/{p-Bjmpb3KI.js → p-CMyYEHgz.js} +1 -1
  163. package/dist/components/{p-BUosYxgI.js → p-CNaazJXM.js} +1 -1
  164. package/dist/components/{p-BGMQOFEz.js → p-CTuYqZY2.js} +1 -1
  165. package/dist/components/{p-oNFda96T.js → p-CU7xL-hP.js} +1 -1
  166. package/dist/components/{p-fEIEB26m.js → p-CW-FAeNP.js} +1 -1
  167. package/dist/components/{p-iZinM7-j.js → p-CfIrQkMg.js} +1 -1
  168. package/dist/components/{p-V9huV8XH.js → p-CjstGmGh.js} +1 -1
  169. package/dist/components/{p-CkA8t9GX.js → p-CkB6Me6q.js} +1 -1
  170. package/dist/components/{p-Cj0CCucK.js → p-CnPYfRgf.js} +1 -1
  171. package/dist/components/{p-nkadiHul.js → p-CpD_SehU.js} +1 -1
  172. package/dist/components/{p-iaFYN7Sj.js → p-CuRSxmeD.js} +1 -1
  173. package/dist/components/{p-66poN2qn.js → p-DMbGWtns.js} +1 -1
  174. package/dist/components/{p-D__Gipxn.js → p-DONfrqzk.js} +1 -1
  175. package/dist/components/{p-CIfkVpTJ.js → p-DSUStc8e.js} +1 -1
  176. package/dist/components/{p-BIdrWJJD.js → p-DSe3wsBa.js} +1 -1
  177. package/dist/components/{p-B77rBORD.js → p-DViKr-34.js} +1 -1
  178. package/dist/components/{p-B2GVx1qA.js → p-DZcwJOUW.js} +1 -1
  179. package/dist/components/p-D_AEDHUV.js +1 -0
  180. package/dist/components/{p-BhG6UsF5.js → p-DdSpe6Sb.js} +1 -1
  181. package/dist/components/{p-nad0N2DI.js → p-Dh8N1Wv8.js} +1 -1
  182. package/dist/components/{p-C8Dgpnzx.js → p-DhG2PF_5.js} +1 -1
  183. package/dist/components/p-DhwysA2e.js +1 -0
  184. package/dist/components/{p-DfGTdsn0.js → p-DjOiGHfI.js} +1 -1
  185. package/dist/components/{p-CAgV-5OF.js → p-DnOzzBR9.js} +1 -1
  186. package/dist/components/{p-CNv9-uKL.js → p-DnkJztTd.js} +1 -1
  187. package/dist/components/{p-Cz9_MmLt.js → p-Dq8iLPzP.js} +1 -1
  188. package/dist/components/{p-DSm20Isy.js → p-E1D1eNFh.js} +1 -1
  189. package/dist/components/{p-CuqFnmgF.js → p-M0IaFpEv.js} +1 -1
  190. package/dist/components/{p-ebQT96VB.js → p-NKK4fZcP.js} +1 -1
  191. package/dist/components/{p-jyZncre7.js → p-ObGKzmP7.js} +1 -1
  192. package/dist/components/{p-D_tCWiMP.js → p-Ryaxu6vl.js} +1 -1
  193. package/dist/components/{p-CSO-O3S1.js → p-Smh6fH4v.js} +1 -1
  194. package/dist/components/{p-COCm8rOB.js → p-VHRH6fkb.js} +1 -1
  195. package/dist/components/{p-CSt7vW9Z.js → p-Z8VMlEx7.js} +1 -1
  196. package/dist/components/{p-DL4GSZ2e.js → p-bRRQr4xn.js} +1 -1
  197. package/dist/components/{p-B6TKlHLV.js → p-gixOLeKl.js} +1 -1
  198. package/dist/components/{p-BRPrcA0X.js → p-mgE9e3Hm.js} +1 -1
  199. package/dist/components/{p-RjS7wlRV.js → p-pcKO_EeI.js} +1 -1
  200. package/dist/components/{p-CRr8LXGp.js → p-vqPkhXWC.js} +1 -1
  201. package/dist/components/{p-D3IRX-4x.js → p-y_feb08f.js} +1 -1
  202. package/dist/components/rtk-ai-toggle.js +1 -1
  203. package/dist/components/rtk-ai-transcriptions.js +1 -1
  204. package/dist/components/rtk-ai.js +1 -1
  205. package/dist/components/rtk-audio-grid.js +1 -1
  206. package/dist/components/rtk-audio-tile.js +1 -1
  207. package/dist/components/rtk-audio-visualizer.js +1 -1
  208. package/dist/components/rtk-avatar.js +1 -1
  209. package/dist/components/rtk-breakout-room-manager.js +1 -1
  210. package/dist/components/rtk-breakout-room-participants.js +1 -1
  211. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  212. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  213. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  214. package/dist/components/rtk-camera-selector.js +1 -1
  215. package/dist/components/rtk-camera-toggle.js +1 -1
  216. package/dist/components/rtk-caption-toggle.js +1 -1
  217. package/dist/components/rtk-chat-composer-ui.js +1 -1
  218. package/dist/components/rtk-chat-composer-view.js +1 -1
  219. package/dist/components/rtk-chat-header.js +1 -1
  220. package/dist/components/rtk-chat-message.js +1 -1
  221. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  222. package/dist/components/rtk-chat-messages-ui.js +1 -1
  223. package/dist/components/rtk-chat-search-results.js +1 -1
  224. package/dist/components/rtk-chat-selector-ui.js +1 -1
  225. package/dist/components/rtk-chat-selector.js +1 -1
  226. package/dist/components/rtk-chat-toggle.js +1 -1
  227. package/dist/components/rtk-chat.js +1 -1
  228. package/dist/components/rtk-clock.js +1 -1
  229. package/dist/components/rtk-confirmation-modal.js +1 -1
  230. package/dist/components/rtk-controlbar-button.js +1 -1
  231. package/dist/components/rtk-controlbar.js +1 -1
  232. package/dist/components/rtk-counter.js +1 -1
  233. package/dist/components/rtk-debugger-audio.js +1 -1
  234. package/dist/components/rtk-debugger-screenshare.js +1 -1
  235. package/dist/components/rtk-debugger-system.js +1 -1
  236. package/dist/components/rtk-debugger-toggle.js +1 -1
  237. package/dist/components/rtk-debugger-video.js +1 -1
  238. package/dist/components/rtk-debugger.js +1 -1
  239. package/dist/components/rtk-dialog-manager.js +1 -1
  240. package/dist/components/rtk-dialog.js +1 -1
  241. package/dist/components/rtk-draft-attachment-view.js +1 -1
  242. package/dist/components/rtk-emoji-picker-button.js +1 -1
  243. package/dist/components/rtk-emoji-picker.js +1 -1
  244. package/dist/components/rtk-ended-screen.js +1 -1
  245. package/dist/components/rtk-file-dropzone.js +1 -1
  246. package/dist/components/rtk-file-message-view.js +1 -1
  247. package/dist/components/rtk-file-message.js +1 -1
  248. package/dist/components/rtk-file-picker-button.js +1 -1
  249. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  250. package/dist/components/rtk-grid-pagination.js +1 -1
  251. package/dist/components/rtk-grid.js +1 -1
  252. package/dist/components/rtk-header.js +1 -1
  253. package/dist/components/rtk-idle-screen.js +1 -1
  254. package/dist/components/rtk-image-message-view.js +1 -1
  255. package/dist/components/rtk-image-message.js +1 -1
  256. package/dist/components/rtk-image-viewer.js +1 -1
  257. package/dist/components/rtk-information-tooltip.js +1 -1
  258. package/dist/components/rtk-join-stage.js +1 -1
  259. package/dist/components/rtk-leave-button.js +1 -1
  260. package/dist/components/rtk-leave-meeting.js +1 -1
  261. package/dist/components/rtk-livestream-indicator.js +1 -1
  262. package/dist/components/rtk-livestream-player.js +1 -1
  263. package/dist/components/rtk-livestream-toggle.js +1 -1
  264. package/dist/components/rtk-logo.js +1 -1
  265. package/dist/components/rtk-meeting-title.js +1 -1
  266. package/dist/components/rtk-meeting.js +1 -1
  267. package/dist/components/rtk-menu-item.js +1 -1
  268. package/dist/components/rtk-menu-list.js +1 -1
  269. package/dist/components/rtk-menu.js +1 -1
  270. package/dist/components/rtk-message-list-view.js +1 -1
  271. package/dist/components/rtk-message-view.js +1 -1
  272. package/dist/components/rtk-mic-toggle.js +1 -1
  273. package/dist/components/rtk-microphone-selector.js +1 -1
  274. package/dist/components/rtk-mixed-grid.js +1 -1
  275. package/dist/components/rtk-more-toggle.js +1 -1
  276. package/dist/components/rtk-mute-all-button.js +1 -1
  277. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  278. package/dist/components/rtk-name-tag.js +1 -1
  279. package/dist/components/rtk-network-indicator.js +1 -1
  280. package/dist/components/rtk-notification.js +1 -1
  281. package/dist/components/rtk-notifications.js +1 -1
  282. package/dist/components/rtk-overlay-modal.js +1 -1
  283. package/dist/components/rtk-paginated-list.js +1 -1
  284. package/dist/components/rtk-participant-count.js +1 -1
  285. package/dist/components/rtk-participant-setup.js +1 -1
  286. package/dist/components/rtk-participant-tile.js +1 -1
  287. package/dist/components/rtk-participant.js +1 -1
  288. package/dist/components/rtk-participants-audio.js +1 -1
  289. package/dist/components/rtk-participants-stage-list.js +1 -1
  290. package/dist/components/rtk-participants-stage-queue.js +1 -1
  291. package/dist/components/rtk-participants-toggle.js +1 -1
  292. package/dist/components/rtk-participants-viewer-list.js +1 -1
  293. package/dist/components/rtk-participants-waiting-list.js +1 -1
  294. package/dist/components/rtk-participants.js +1 -1
  295. package/dist/components/rtk-permissions-message.js +1 -1
  296. package/dist/components/rtk-pinned-message-selector.js +1 -1
  297. package/dist/components/rtk-pip-toggle.js +1 -1
  298. package/dist/components/rtk-plugin-main.js +1 -1
  299. package/dist/components/rtk-plugins-toggle.js +1 -1
  300. package/dist/components/rtk-plugins.js +1 -1
  301. package/dist/components/rtk-poll-form.js +1 -1
  302. package/dist/components/rtk-poll.js +1 -1
  303. package/dist/components/rtk-polls-toggle.js +1 -1
  304. package/dist/components/rtk-polls.js +1 -1
  305. package/dist/components/rtk-recording-indicator.js +1 -1
  306. package/dist/components/rtk-recording-toggle.js +1 -1
  307. package/dist/components/rtk-screen-share-toggle.js +1 -1
  308. package/dist/components/rtk-screenshare-view.js +1 -1
  309. package/dist/components/rtk-settings-audio.js +1 -1
  310. package/dist/components/rtk-settings-toggle.js +1 -1
  311. package/dist/components/rtk-settings-video.js +1 -1
  312. package/dist/components/rtk-settings.js +1 -1
  313. package/dist/components/rtk-setup-screen.js +1 -1
  314. package/dist/components/rtk-sidebar-ui.js +1 -1
  315. package/dist/components/rtk-sidebar.js +1 -1
  316. package/dist/components/rtk-simple-grid.js +1 -1
  317. package/dist/components/rtk-speaker-selector.js +1 -1
  318. package/dist/components/rtk-spinner.js +1 -1
  319. package/dist/components/rtk-spotlight-grid.js +1 -1
  320. package/dist/components/rtk-spotlight-indicator.js +1 -1
  321. package/dist/components/rtk-stage-toggle.js +1 -1
  322. package/dist/components/rtk-stage.js +1 -1
  323. package/dist/components/rtk-switch.js +1 -1
  324. package/dist/components/rtk-tab-bar.js +1 -1
  325. package/dist/components/rtk-text-composer-view.js +1 -1
  326. package/dist/components/rtk-text-message.js +1 -1
  327. package/dist/components/rtk-transcript.js +1 -1
  328. package/dist/components/rtk-transcripts.js +1 -1
  329. package/dist/components/rtk-ui-provider.js +1 -1
  330. package/dist/components/rtk-viewer-count.js +1 -1
  331. package/dist/components/rtk-waiting-screen.js +1 -1
  332. package/dist/docs/docs-components.json +12 -27
  333. package/dist/docs/docs-vscode.json +8 -8
  334. package/dist/esm/{TextMessage-C1lPu3R8.js → TextMessage-B-38YeFE.js} +1 -1
  335. package/dist/esm/{chat-DRqOBXqN.js → chat-a6CRyl2K.js} +1 -1
  336. package/dist/esm/{config-BiYmSYD9.js → config-wP0cqv4b.js} +2 -2
  337. package/dist/esm/{debounce-BmgYF10w.js → debounce-lqMlEJcq.js} +1 -1
  338. package/dist/esm/{index-BnFmFXDx.js → index-CP1LPkYZ.js} +1 -1
  339. package/dist/esm/index-gJCRRBX0.js +10 -6
  340. package/dist/esm/index.js +7 -7
  341. package/dist/esm/loader.js +1079 -1033
  342. package/dist/esm/{merge-Bnx8tW3F.js → merge-BWjuIacB.js} +1 -1
  343. package/dist/esm/{notification-DcR6dHfn.js → notification-DZgheLdK.js} +3 -3
  344. package/dist/esm/realtimekit-ui.js +1 -1
  345. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  346. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  347. package/dist/esm/rtk-ai_3.entry.js +2 -2
  348. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  349. package/dist/esm/rtk-audio-tile.entry.js +5 -2
  350. package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
  351. package/dist/esm/rtk-avatar_26.entry.js +25 -25
  352. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  353. package/dist/esm/{rtk-breakout-rooms-manager_9.entry.js → rtk-breakout-rooms-manager_8.entry.js} +20 -112
  354. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  355. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  356. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  357. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  358. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  359. package/dist/esm/rtk-chat-message.entry.js +2 -2
  360. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  361. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  362. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  363. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  364. package/dist/esm/rtk-clock.entry.js +2 -2
  365. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  366. package/dist/esm/rtk-controlbar.entry.js +2 -2
  367. package/dist/esm/rtk-debugger-audio_4.entry.js +10 -16
  368. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  369. package/dist/esm/rtk-debugger.entry.js +97 -0
  370. package/dist/esm/rtk-dialog-manager.entry.js +3 -3
  371. package/dist/esm/rtk-dialog.entry.js +2 -2
  372. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  373. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  374. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  375. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  376. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  377. package/dist/esm/rtk-grid.entry.js +10 -10
  378. package/dist/esm/rtk-header.entry.js +2 -2
  379. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  380. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  381. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  382. package/dist/esm/rtk-leave-button.entry.js +2 -2
  383. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  384. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  385. package/dist/esm/rtk-logo.entry.js +2 -2
  386. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  387. package/dist/esm/rtk-message-list-view.entry.js +6 -6
  388. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  389. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  390. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  391. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  392. package/dist/esm/rtk-name-tag.entry.js +2 -2
  393. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  394. package/dist/esm/rtk-notification.entry.js +4 -4
  395. package/dist/esm/rtk-notifications.entry.js +4 -4
  396. package/dist/esm/rtk-participant-count.entry.js +2 -2
  397. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  398. package/dist/esm/rtk-participant_2.entry.js +3 -3
  399. package/dist/esm/rtk-participants-audio.entry.js +57 -14
  400. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  401. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  402. package/dist/esm/rtk-participants.entry.js +3 -3
  403. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  404. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  405. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  406. package/dist/esm/rtk-poll_2.entry.js +2 -2
  407. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  408. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  409. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  410. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  411. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  412. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  413. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  414. package/dist/esm/rtk-settings.entry.js +2 -2
  415. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  416. package/dist/esm/rtk-sidebar-ui.entry.js +4 -4
  417. package/dist/esm/rtk-sidebar.entry.js +2 -2
  418. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  419. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  420. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  421. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  422. package/dist/esm/rtk-stage.entry.js +2 -2
  423. package/dist/esm/rtk-transcript.entry.js +2 -2
  424. package/dist/esm/rtk-transcripts.entry.js +2 -2
  425. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  426. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  427. package/dist/esm/{ui-store-CkvSNsmd.js → ui-store-Ctcbman-.js} +1 -1
  428. package/dist/realtimekit-ui/index.esm.js +1 -1
  429. package/dist/realtimekit-ui/p-0051564a.entry.js +1 -0
  430. package/dist/realtimekit-ui/{p-b7f7e42a.entry.js → p-0195bd60.entry.js} +1 -1
  431. package/dist/realtimekit-ui/{p-0c1a8f1a.entry.js → p-01c014e4.entry.js} +1 -1
  432. package/dist/realtimekit-ui/{p-f2380597.entry.js → p-0264d57f.entry.js} +1 -1
  433. package/dist/realtimekit-ui/{p-eeb3d851.entry.js → p-09ce95b2.entry.js} +1 -1
  434. package/dist/realtimekit-ui/{p-b90a0bf4.entry.js → p-194ebf74.entry.js} +1 -1
  435. package/dist/realtimekit-ui/{p-ee470245.entry.js → p-20734a3a.entry.js} +1 -1
  436. package/dist/realtimekit-ui/{p-71b0d221.entry.js → p-21b69da3.entry.js} +1 -1
  437. package/dist/realtimekit-ui/{p-d9061f53.entry.js → p-21f69c50.entry.js} +1 -1
  438. package/dist/realtimekit-ui/{p-e3015917.entry.js → p-23e14ccd.entry.js} +1 -1
  439. package/dist/realtimekit-ui/{p-607f649e.entry.js → p-27751707.entry.js} +1 -1
  440. package/dist/realtimekit-ui/{p-11a08757.entry.js → p-286ce4d7.entry.js} +1 -1
  441. package/dist/realtimekit-ui/{p-ec9d4173.entry.js → p-2fd5255e.entry.js} +1 -1
  442. package/dist/realtimekit-ui/{p-ff436b41.entry.js → p-384db558.entry.js} +1 -1
  443. package/dist/realtimekit-ui/{p-12fa2370.entry.js → p-3ed792bf.entry.js} +1 -1
  444. package/dist/realtimekit-ui/{p-588dcb34.entry.js → p-401b9ed3.entry.js} +1 -1
  445. package/dist/realtimekit-ui/{p-af7bffbb.entry.js → p-462d4e8f.entry.js} +1 -1
  446. package/dist/realtimekit-ui/p-47abb821.entry.js +1 -0
  447. package/dist/realtimekit-ui/{p-458e87f0.entry.js → p-481e75eb.entry.js} +1 -1
  448. package/dist/realtimekit-ui/{p-d79a49f3.entry.js → p-4a1ec4a2.entry.js} +1 -1
  449. package/dist/realtimekit-ui/{p-e1542a67.entry.js → p-4aa24ae6.entry.js} +1 -1
  450. package/dist/realtimekit-ui/{p-cf8e7495.entry.js → p-4add313e.entry.js} +1 -1
  451. package/dist/realtimekit-ui/{p-d1c91dad.entry.js → p-4bd89bff.entry.js} +1 -1
  452. package/dist/realtimekit-ui/{p-7bf3de16.entry.js → p-4ed011a1.entry.js} +1 -1
  453. package/dist/realtimekit-ui/{p-ad1157e0.entry.js → p-5361cd19.entry.js} +1 -1
  454. package/dist/realtimekit-ui/{p-727fa3f2.entry.js → p-55ec635e.entry.js} +1 -1
  455. package/dist/realtimekit-ui/{p-2438cd32.entry.js → p-56df9c19.entry.js} +1 -1
  456. package/dist/realtimekit-ui/p-5810f0c4.entry.js +1 -0
  457. package/dist/realtimekit-ui/{p-f95e96b7.entry.js → p-58366145.entry.js} +1 -1
  458. package/dist/realtimekit-ui/p-61032e04.entry.js +1 -0
  459. package/dist/realtimekit-ui/{p-64224592.entry.js → p-62a46799.entry.js} +1 -1
  460. package/dist/realtimekit-ui/{p-b04cc83e.entry.js → p-67ee7fdd.entry.js} +1 -1
  461. package/dist/realtimekit-ui/{p-e010a673.entry.js → p-6ab2602a.entry.js} +1 -1
  462. package/dist/realtimekit-ui/{p-d10a73b2.entry.js → p-6b387775.entry.js} +1 -1
  463. package/dist/realtimekit-ui/{p-d438c98e.entry.js → p-6e0f43e4.entry.js} +1 -1
  464. package/dist/realtimekit-ui/{p-b1da05d3.entry.js → p-80b42139.entry.js} +1 -1
  465. package/dist/realtimekit-ui/{p-3e34195d.entry.js → p-815d9724.entry.js} +1 -1
  466. package/dist/realtimekit-ui/{p-92f6959e.entry.js → p-893da38a.entry.js} +1 -1
  467. package/dist/realtimekit-ui/{p-1e4ffceb.entry.js → p-8cdd8307.entry.js} +1 -1
  468. package/dist/realtimekit-ui/{p-8cb45932.entry.js → p-959917cc.entry.js} +1 -1
  469. package/dist/realtimekit-ui/{p-932c7070.entry.js → p-9aac22a5.entry.js} +1 -1
  470. package/dist/realtimekit-ui/{p-b491565f.entry.js → p-9ce9b595.entry.js} +1 -1
  471. package/dist/realtimekit-ui/{p-ae82b88b.entry.js → p-9fa91df2.entry.js} +1 -1
  472. package/dist/realtimekit-ui/{p-676d4a41.entry.js → p-9fb75436.entry.js} +1 -1
  473. package/dist/realtimekit-ui/{p-1de6c388.entry.js → p-9fd3cb5e.entry.js} +1 -1
  474. package/dist/realtimekit-ui/p-B56IYWsZ.js +1 -0
  475. package/dist/realtimekit-ui/{p-3h3Qc6lD.js → p-B91vjjSJ.js} +1 -1
  476. package/dist/realtimekit-ui/{p-Dy41dnX2.js → p-BmRffDYW.js} +1 -1
  477. package/dist/realtimekit-ui/{p-BmaxriWP.js → p-CQ2xadpP.js} +1 -1
  478. package/dist/realtimekit-ui/{p-Cm8ENd-O.js → p-CfUJPUNx.js} +1 -1
  479. package/dist/realtimekit-ui/p-DI7wP4CL.js +1 -0
  480. package/dist/realtimekit-ui/{p-BTwUl5G9.js → p-MlOz-emx.js} +1 -1
  481. package/dist/realtimekit-ui/{p-2d1b8896.entry.js → p-a34a267b.entry.js} +1 -1
  482. package/dist/realtimekit-ui/p-a646f038.entry.js +1 -0
  483. package/dist/realtimekit-ui/{p-df4122cb.entry.js → p-ab63946e.entry.js} +1 -1
  484. package/dist/realtimekit-ui/p-ac4c182d.entry.js +1 -0
  485. package/dist/realtimekit-ui/{p-d089d2bb.entry.js → p-ac79ef88.entry.js} +1 -1
  486. package/dist/realtimekit-ui/{p-207aa239.entry.js → p-b27db286.entry.js} +1 -1
  487. package/dist/realtimekit-ui/{p-cffb7c0e.entry.js → p-b41fc081.entry.js} +1 -1
  488. package/dist/realtimekit-ui/{p-066359c2.entry.js → p-b46d416b.entry.js} +1 -1
  489. package/dist/realtimekit-ui/{p-7e0daf2a.entry.js → p-b9f47f88.entry.js} +1 -1
  490. package/dist/realtimekit-ui/{p-86b027f8.entry.js → p-ba7fb049.entry.js} +1 -1
  491. package/dist/realtimekit-ui/{p-9e855d5f.entry.js → p-bcc20509.entry.js} +1 -1
  492. package/dist/realtimekit-ui/{p-ecac916f.entry.js → p-bcc42454.entry.js} +1 -1
  493. package/dist/realtimekit-ui/{p-34e01092.entry.js → p-bd848924.entry.js} +1 -1
  494. package/dist/realtimekit-ui/{p-a74a3bd7.entry.js → p-bdd8ebec.entry.js} +1 -1
  495. package/dist/realtimekit-ui/{p-cb9955f1.entry.js → p-bf54cdd9.entry.js} +1 -1
  496. package/dist/realtimekit-ui/p-c6d03162.entry.js +1 -0
  497. package/dist/realtimekit-ui/{p-fc6bfa36.entry.js → p-c6f6afcd.entry.js} +1 -1
  498. package/dist/realtimekit-ui/{p-8f4c582b.entry.js → p-cd5069ea.entry.js} +1 -1
  499. package/dist/realtimekit-ui/p-ce81ffaa.entry.js +1 -0
  500. package/dist/realtimekit-ui/{p-cb9a3294.entry.js → p-d29c5a04.entry.js} +1 -1
  501. package/dist/realtimekit-ui/{p-538b2ecf.entry.js → p-d4ff2477.entry.js} +1 -1
  502. package/dist/realtimekit-ui/{p-4d2fcc46.entry.js → p-d52b8b3d.entry.js} +1 -1
  503. package/dist/realtimekit-ui/{p-9139643b.entry.js → p-d85e142c.entry.js} +1 -1
  504. package/dist/realtimekit-ui/p-d9c7c4d8.entry.js +1 -0
  505. package/dist/realtimekit-ui/{p-CKXY5S4J.js → p-dYOM3dvx.js} +1 -1
  506. package/dist/realtimekit-ui/{p-6fa0e07e.entry.js → p-da9c7efe.entry.js} +1 -1
  507. package/dist/realtimekit-ui/{p-5f9fdbf1.entry.js → p-dc7a28a6.entry.js} +1 -1
  508. package/dist/realtimekit-ui/{p-8f362ed0.entry.js → p-dd6fa0d8.entry.js} +1 -1
  509. package/dist/realtimekit-ui/{p-7b94fb4f.entry.js → p-de4ecd17.entry.js} +1 -1
  510. package/dist/realtimekit-ui/{p-691a610d.entry.js → p-e347e0d8.entry.js} +1 -1
  511. package/dist/realtimekit-ui/p-e38967d0.entry.js +1 -0
  512. package/dist/realtimekit-ui/{p-c2ea0c8a.entry.js → p-e8e6a1c8.entry.js} +1 -1
  513. package/dist/realtimekit-ui/p-f2de718a.entry.js +1 -0
  514. package/dist/realtimekit-ui/{p-bbe8664e.entry.js → p-f5377574.entry.js} +1 -1
  515. package/dist/realtimekit-ui/{p-260169b4.entry.js → p-f5809d7c.entry.js} +1 -1
  516. package/dist/realtimekit-ui/{p-2bbc4dfc.entry.js → p-f6085321.entry.js} +1 -1
  517. package/dist/realtimekit-ui/{p-255290c6.entry.js → p-fb0a9fa6.entry.js} +1 -1
  518. package/dist/realtimekit-ui/p-ff89f0f6.entry.js +1 -0
  519. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  520. package/dist/types/components/rtk-ai/rtk-ai.d.ts +2 -4
  521. package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +2 -4
  522. package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
  523. package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +1 -1
  524. package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +0 -3
  525. package/dist/types/components/rtk-grid/rtk-grid.d.ts +1 -2
  526. package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +2 -4
  527. package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +1 -1
  528. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +1 -1
  529. package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +2 -4
  530. package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +2 -4
  531. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -4
  532. package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +1 -1
  533. package/dist/types/components.d.ts +57 -79
  534. package/dist/types/lib/audio.d.ts +6 -3
  535. package/package.json +1 -1
  536. package/dist/components/p-48gPeJ33.js +0 -1
  537. package/dist/components/p-BCuMxcZN.js +0 -1
  538. package/dist/components/p-BoeW-RxV.js +0 -1
  539. package/dist/components/p-BsxEHBW2.js +0 -1
  540. package/dist/components/p-BthnOddY.js +0 -1
  541. package/dist/components/p-CEjlztlu.js +0 -1
  542. package/dist/components/p-DX_XkIXf.js +0 -1
  543. package/dist/components/p-DjSGHZA8.js +0 -1
  544. package/dist/components/p-UCR1gRqj.js +0 -1
  545. package/dist/components/p-xmJ8IJTr.js +0 -1
  546. package/dist/components/p-yIxFaBq2.js +0 -1
  547. package/dist/realtimekit-ui/p-0872cae4.entry.js +0 -1
  548. package/dist/realtimekit-ui/p-14204827.entry.js +0 -1
  549. package/dist/realtimekit-ui/p-27dd7099.entry.js +0 -1
  550. package/dist/realtimekit-ui/p-56a5c456.entry.js +0 -1
  551. package/dist/realtimekit-ui/p-94f25ba4.entry.js +0 -1
  552. package/dist/realtimekit-ui/p-98b33e56.entry.js +0 -1
  553. package/dist/realtimekit-ui/p-BCuMxcZN.js +0 -1
  554. package/dist/realtimekit-ui/p-D9rFUUCb.js +0 -1
  555. package/dist/realtimekit-ui/p-c6be9e1f.entry.js +0 -1
  556. package/dist/realtimekit-ui/p-c8f68298.entry.js +0 -1
  557. package/dist/realtimekit-ui/p-de1b894a.entry.js +0 -1
  558. package/dist/realtimekit-ui/p-f182042f.entry.js +0 -1
  559. package/dist/realtimekit-ui/p-f5a30d5b.entry.js +0 -1
@@ -41,7 +41,7 @@ p {
41
41
  width: 100%;
42
42
  color: rgb(var(--rtk-colors-text-1000, 255 255 255));
43
43
  --tw-bg-opacity: 1;
44
- background-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
44
+ background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
45
45
  }
46
46
 
47
47
  .tab-body::-webkit-scrollbar {
@@ -64,25 +64,18 @@ h3 {
64
64
  font-weight: 600;
65
65
  }
66
66
 
67
- #header {
68
- margin-top: var(--rtk-space-2, 8px);
69
- margin-bottom: var(--rtk-space-5, 20px);
70
- display: flex;
71
- align-items: center;
72
- justify-content: space-evenly;
73
- }
74
-
75
67
  .tab-body {
76
68
  margin: var(--rtk-space-4, 16px);
77
69
  display: flex;
78
- height: 100%;
70
+ min-height: 0px;
71
+ flex: 1 1 0%;
79
72
  flex-direction: column;
80
73
  justify-content: space-between;
81
74
  overflow-y: auto;
82
75
  }
83
76
 
84
77
  .status-container {
85
- border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
78
+ border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
86
79
  border-radius: 8px;
87
80
  padding: 16px;
88
81
  }
@@ -100,11 +93,11 @@ h3 {
100
93
  padding: 8px 0;
101
94
  }
102
95
 
103
- .section-header.only-child{
96
+ .section-header.only-child {
104
97
  justify-content: center;
105
98
  }
106
99
 
107
- .section-body.missing-stats{
100
+ .section-body.missing-stats {
108
101
  display: flex;
109
102
  text-align: center;
110
103
  justify-content: center;
@@ -120,7 +113,7 @@ h3 {
120
113
  }
121
114
 
122
115
  .network-table {
123
- border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
116
+ border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
124
117
  border-radius: 8px;
125
118
  margin-top: 8px;
126
119
  overflow: hidden;
@@ -130,7 +123,7 @@ h3 {
130
123
  display: flex;
131
124
  justify-content: space-between;
132
125
  padding: 12px;
133
- border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
126
+ border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
134
127
  }
135
128
 
136
129
  .network-row:last-child {
@@ -158,7 +158,7 @@ export class RtkDebuggerScreenShare {
158
158
  if (!this.meeting) {
159
159
  return;
160
160
  }
161
- return (h(Host, null, h("div", { id: "header" }), h("div", { class: "tab-body" }, h("div", { class: "status-container" }, h("div", { class: "status-section" }, h("div", { class: `section-header ${!this.networkBasedMediaHealth ? 'only-child' : ''}` }, h("span", null, this.t('debugger.screenshare.sections.network_media')), this.networkBasedMediaHealth && (h("span", { class: `status ${(_a = this.networkBasedMediaHealth) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = this.networkBasedMediaHealth) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)))), this.isNetworkOpen && !this.videoProducerFormattedStats.length && (h("div", { class: "section-body missing-stats" }, this.meeting.self.screenShareEnabled ? (h("span", null, this.t('debugger.screenshare.messages.generating_report'))) : (h("span", null, this.t('debugger.screenshare.messages.enable_media'))))), this.isNetworkOpen && !!this.videoProducerFormattedStats.length && (h("div", { class: "section-body network-table" }, this.videoProducerFormattedStats.map((formattedStatsObj) => {
161
+ return (h(Host, null, h("div", { class: "tab-body" }, h("div", { class: "status-container" }, h("div", { class: "status-section" }, h("div", { class: `section-header ${!this.networkBasedMediaHealth ? 'only-child' : ''}` }, h("span", null, this.t('debugger.screenshare.sections.network_media')), this.networkBasedMediaHealth && (h("span", { class: `status ${(_a = this.networkBasedMediaHealth) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = this.networkBasedMediaHealth) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)))), this.isNetworkOpen && !this.videoProducerFormattedStats.length && (h("div", { class: "section-body missing-stats" }, this.meeting.self.screenShareEnabled ? (h("span", null, this.t('debugger.screenshare.messages.generating_report'))) : (h("span", null, this.t('debugger.screenshare.messages.enable_media'))))), this.isNetworkOpen && !!this.videoProducerFormattedStats.length && (h("div", { class: "section-body network-table" }, this.videoProducerFormattedStats.map((formattedStatsObj) => {
162
162
  var _a, _b;
163
163
  return (h("div", { class: "network-row" }, h("div", { class: "network-cell label" }, h("strong", null, formattedStatsObj.name), h("span", { class: "description" }, formattedStatsObj.description)), h("div", { class: "network-cell value" }, h("span", { class: `status ${(_a = formattedStatsObj.verdict) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = formattedStatsObj.verdict) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)), h("span", { class: "value" }, formattedStatsObj.value))));
164
164
  }))))))));
@@ -41,7 +41,7 @@ p {
41
41
  width: 100%;
42
42
  color: rgb(var(--rtk-colors-text-1000, 255 255 255));
43
43
  --tw-bg-opacity: 1;
44
- background-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
44
+ background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
45
45
  }
46
46
 
47
47
  .tab-body::-webkit-scrollbar {
@@ -64,25 +64,18 @@ h3 {
64
64
  font-weight: 600;
65
65
  }
66
66
 
67
- #header {
68
- margin-top: var(--rtk-space-2, 8px);
69
- margin-bottom: var(--rtk-space-5, 20px);
70
- display: flex;
71
- align-items: center;
72
- justify-content: space-evenly;
73
- }
74
-
75
67
  .tab-body {
76
68
  margin: var(--rtk-space-4, 16px);
77
69
  display: flex;
78
- height: 100%;
70
+ min-height: 0px;
71
+ flex: 1 1 0%;
79
72
  flex-direction: column;
80
73
  justify-content: space-between;
81
74
  overflow-y: auto;
82
75
  }
83
76
 
84
77
  .status-container {
85
- border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
78
+ border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
86
79
  border-radius: 8px;
87
80
  padding: 16px;
88
81
  }
@@ -100,7 +93,7 @@ h3 {
100
93
  padding: 8px 0;
101
94
  }
102
95
 
103
- .section-body.missing-stats{
96
+ .section-body.missing-stats {
104
97
  display: flex;
105
98
  text-align: center;
106
99
  justify-content: center;
@@ -116,7 +109,7 @@ h3 {
116
109
  }
117
110
 
118
111
  .battery-table {
119
- border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
112
+ border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
120
113
  border-radius: 8px;
121
114
  margin-top: 8px;
122
115
  overflow: hidden;
@@ -126,7 +119,7 @@ h3 {
126
119
  display: flex;
127
120
  justify-content: space-between;
128
121
  padding: 12px;
129
- border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
122
+ border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
130
123
  }
131
124
 
132
125
  .battery-row:last-child {
@@ -19,8 +19,6 @@ export class RtkDebuggerSystem {
19
19
  this.iconPack = defaultIconPack;
20
20
  /** Language */
21
21
  this.t = useLanguage();
22
- /** Is Network section expanded */
23
- this.isBatterySectionOpen = true;
24
22
  /** Summarised health of network stats */
25
23
  this.batterySectionHealth = null;
26
24
  /** Battery manager */
@@ -57,10 +55,6 @@ export class RtkDebuggerSystem {
57
55
  this.batteryFormattedStats = newBatteryStats;
58
56
  };
59
57
  }
60
- toggleSection(section) {
61
- if (section === 'battery')
62
- this.isBatterySectionOpen = !this.isBatterySectionOpen;
63
- }
64
58
  connectedCallback() {
65
59
  this.meetingChanged(this.meeting);
66
60
  }
@@ -88,7 +82,7 @@ export class RtkDebuggerSystem {
88
82
  if (!this.meeting) {
89
83
  return;
90
84
  }
91
- return (h(Host, null, h("div", { id: "header" }), h("div", { class: "tab-body" }, h("div", { class: "status-container" }, h("div", { class: "status-section" }, h("div", { class: "section-header", onClick: () => this.toggleSection('battery') }, h("span", null, this.t('debugger.system.sections.battery')), this.batterySectionHealth && (h("span", { class: `status ${(_a = this.batterySectionHealth) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = this.batterySectionHealth) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)))), this.isBatterySectionOpen && !!this.batteryFormattedStats.length && (h("div", { class: "section-body battery-table" }, this.batteryFormattedStats.map((formattedStatsObj) => {
85
+ return (h(Host, null, h("div", { class: "tab-body" }, h("div", { class: "status-container" }, h("div", { class: "status-section" }, h("div", { class: "section-header" }, h("span", null, this.t('debugger.system.sections.battery')), this.batterySectionHealth && (h("span", { class: `status ${(_a = this.batterySectionHealth) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = this.batterySectionHealth) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)))), !!this.batteryFormattedStats.length && (h("div", { class: "section-body battery-table" }, this.batteryFormattedStats.map((formattedStatsObj) => {
92
86
  var _a, _b;
93
87
  return (h("div", { class: "battery-row" }, h("div", { class: "battery-cell label" }, h("strong", null, formattedStatsObj.name), h("span", { class: "description" }, formattedStatsObj.description)), h("div", { class: "battery-cell value" }, h("span", { class: `status ${(_a = formattedStatsObj.verdict) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = formattedStatsObj.verdict) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)), h("span", { class: "value" }, formattedStatsObj.value))));
94
88
  }))))))));
@@ -235,7 +229,6 @@ export class RtkDebuggerSystem {
235
229
  }
236
230
  static get states() {
237
231
  return {
238
- "isBatterySectionOpen": {},
239
232
  "batterySectionHealth": {},
240
233
  "battery": {},
241
234
  "batteryFormattedStats": {}
@@ -41,7 +41,7 @@ p {
41
41
  width: 100%;
42
42
  color: rgb(var(--rtk-colors-text-1000, 255 255 255));
43
43
  --tw-bg-opacity: 1;
44
- background-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
44
+ background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
45
45
  }
46
46
 
47
47
  .tab-body::-webkit-scrollbar {
@@ -64,25 +64,18 @@ h3 {
64
64
  font-weight: 600;
65
65
  }
66
66
 
67
- #header {
68
- margin-top: var(--rtk-space-2, 8px);
69
- margin-bottom: var(--rtk-space-5, 20px);
70
- display: flex;
71
- align-items: center;
72
- justify-content: space-evenly;
73
- }
74
-
75
67
  .tab-body {
76
68
  margin: var(--rtk-space-4, 16px);
77
69
  display: flex;
78
- height: 100%;
70
+ min-height: 0px;
71
+ flex: 1 1 0%;
79
72
  flex-direction: column;
80
73
  justify-content: space-between;
81
74
  overflow-y: auto;
82
75
  }
83
76
 
84
77
  .status-container {
85
- border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
78
+ border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
86
79
  border-radius: 8px;
87
80
  padding: 16px;
88
81
  }
@@ -100,11 +93,11 @@ h3 {
100
93
  padding: 8px 0;
101
94
  }
102
95
 
103
- .section-header.only-child{
96
+ .section-header.only-child {
104
97
  justify-content: center;
105
98
  }
106
99
 
107
- .section-body.missing-stats{
100
+ .section-body.missing-stats {
108
101
  display: flex;
109
102
  text-align: center;
110
103
  justify-content: center;
@@ -120,7 +113,7 @@ h3 {
120
113
  }
121
114
 
122
115
  .network-table {
123
- border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
116
+ border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
124
117
  border-radius: 8px;
125
118
  margin-top: 8px;
126
119
  overflow: hidden;
@@ -130,7 +123,7 @@ h3 {
130
123
  display: flex;
131
124
  justify-content: space-between;
132
125
  padding: 12px;
133
- border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
126
+ border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));
134
127
  }
135
128
 
136
129
  .network-row:last-child {
@@ -129,7 +129,7 @@ export class RtkDebuggerVideo {
129
129
  // iconPack: this.iconPack,
130
130
  // t: this.t,
131
131
  // };
132
- return (h(Host, null, h("div", { id: "header" }), h("div", { class: "tab-body" }, h("div", { class: "status-container" }, h("div", { class: "status-section" }, h("div", { class: `section-header ${!this.networkBasedMediaHealth ? 'only-child' : ''}` }, h("span", null, this.t('debugger.video.sections.network_media')), this.networkBasedMediaHealth && (h("span", { class: `status ${(_a = this.networkBasedMediaHealth) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = this.networkBasedMediaHealth) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)))), this.isNetworkOpen && !this.videoProducerFormattedStats.length && (h("div", { class: "section-body missing-stats" }, this.meeting.self.videoEnabled ? (h("span", null, this.t('debugger.video.messages.generating_report'))) : (h("span", null, this.t('debugger.video.messages.enable_media'))))), this.isNetworkOpen && !!this.videoProducerFormattedStats.length && (h("div", { class: "section-body network-table" }, this.videoProducerFormattedStats.map((formattedStatsObj) => {
132
+ return (h(Host, null, h("div", { class: "tab-body" }, h("div", { class: "status-container" }, h("div", { class: "status-section" }, h("div", { class: `section-header ${!this.networkBasedMediaHealth ? 'only-child' : ''}` }, h("span", null, this.t('debugger.video.sections.network_media')), this.networkBasedMediaHealth && (h("span", { class: `status ${(_a = this.networkBasedMediaHealth) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = this.networkBasedMediaHealth) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)))), this.isNetworkOpen && !this.videoProducerFormattedStats.length && (h("div", { class: "section-body missing-stats" }, this.meeting.self.videoEnabled ? (h("span", null, this.t('debugger.video.messages.generating_report'))) : (h("span", null, this.t('debugger.video.messages.enable_media'))))), this.isNetworkOpen && !!this.videoProducerFormattedStats.length && (h("div", { class: "section-body network-table" }, this.videoProducerFormattedStats.map((formattedStatsObj) => {
133
133
  var _a, _b;
134
134
  return (h("div", { class: "network-row" }, h("div", { class: "network-cell label" }, h("strong", null, formattedStatsObj.name), h("span", { class: "description" }, formattedStatsObj.description)), h("div", { class: "network-cell value" }, h("span", { class: `status ${(_a = formattedStatsObj.verdict) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` }, this.t(`debugger.quality.${(_b = formattedStatsObj.verdict) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`)), h("span", { class: "value" }, formattedStatsObj.value))));
135
135
  }))))))));
@@ -93,7 +93,7 @@ export class RtkDialogManager {
93
93
  return (h(Host, null, h("rtk-dialog", { open: true, onRtkDialogClose: () => this.updateStoreState('activeSettings', false), iconPack: this.iconPack, t: this.t }, h(Render, { element: "rtk-settings", defaults: defaults }))));
94
94
  }
95
95
  else if ((states === null || states === void 0 ? void 0 : states.activeDebugger) === true) {
96
- return (h(Host, null, h("rtk-dialog", { open: true, onRtkDialogClose: () => this.updateStoreState('activeDebugger', false), iconPack: this.iconPack, t: this.t }, h("rtk-debugger", Object.assign({}, defaults)))));
96
+ return (h(Host, null, h("rtk-dialog", { open: true, onRtkDialogClose: () => this.updateStoreState('activeDebugger', false), iconPack: this.iconPack, t: this.t }, h(Render, { element: "rtk-debugger", defaults: defaults }))));
97
97
  }
98
98
  else if ((states === null || states === void 0 ? void 0 : states.activeLeaveConfirmation) === true) {
99
99
  return (h(Host, null, h("rtk-dialog", { open: true, onRtkDialogClose: () => this.updateStoreState('activeLeaveConfirmation', false), iconPack: this.iconPack, t: this.t }, h("rtk-leave-meeting", Object.assign({}, defaults)))));
@@ -76,10 +76,7 @@ export class RtkGrid {
76
76
  return;
77
77
  this.updateActiveParticipants();
78
78
  };
79
- this.onParticipantJoined = debounce(() => {
80
- this.updateActiveParticipants();
81
- }, MASS_ACTIONS_DEBOUNCE_TIMER);
82
- this.onParticipantLeft = debounce(() => {
79
+ this.refreshParticipants = debounce(() => {
83
80
  this.updateActiveParticipants();
84
81
  }, MASS_ACTIONS_DEBOUNCE_TIMER);
85
82
  this.stageStatusListener = () => {
@@ -146,6 +143,7 @@ export class RtkGrid {
146
143
  var _a;
147
144
  if (!meeting)
148
145
  return;
146
+ this.refreshParticipants.cancel();
149
147
  this.participants = [];
150
148
  this.plugins = [];
151
149
  const { self, participants, plugins } = meeting;
@@ -158,8 +156,9 @@ export class RtkGrid {
158
156
  plugins === null || plugins === void 0 ? void 0 : plugins.all.removeListener('stateUpdate', this.onPluginStateUpdate);
159
157
  (_a = meeting.stage) === null || _a === void 0 ? void 0 : _a.removeListener('stageStatusUpdate', this.stageStatusListener);
160
158
  participants.removeListener('viewModeChanged', this.onViewModeChanged);
161
- participants.active.removeListener('participantLeft', this.onParticipantLeft);
162
- participants.active.removeListener('participantJoined', this.onParticipantJoined);
159
+ participants.active.removeListener('participantLeft', this.refreshParticipants);
160
+ participants.active.removeListener('participantJoined', this.refreshParticipants);
161
+ participants.active.removeListener('participantsUpdate', this.refreshParticipants);
163
162
  participants.pinned.removeListener('participantJoined', this.onParticipantPinned);
164
163
  participants.pinned.removeListener('participantLeft', this.onParticipantUnpinned);
165
164
  participants.joined.removeListener('screenShareUpdate', this.onScreenShareUpdate);
@@ -214,10 +213,11 @@ export class RtkGrid {
214
213
  stage === null || stage === void 0 ? void 0 : stage.addListener('stageStatusUpdate', this.stageStatusListener);
215
214
  plugins === null || plugins === void 0 ? void 0 : plugins.all.addListener('stateUpdate', this.onPluginStateUpdate);
216
215
  participants.addListener('viewModeChanged', this.onViewModeChanged);
217
- participants.active.addListener('participantLeft', this.onParticipantLeft);
216
+ participants.active.addListener('participantLeft', this.refreshParticipants);
218
217
  (_c = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _c === void 0 ? void 0 : _c.on('stageStatusUpdate', this.peerStageStatusListener);
219
218
  participants.joined.addListener('screenShareUpdate', this.onScreenShareUpdate);
220
- participants.active.addListener('participantJoined', this.onParticipantJoined);
219
+ participants.active.addListener('participantJoined', this.refreshParticipants);
220
+ participants.active.addListener('participantsUpdate', this.refreshParticipants);
221
221
  participants.pinned.addListener('participantJoined', this.onParticipantPinned);
222
222
  participants.pinned.addListener('participantLeft', this.onParticipantUnpinned);
223
223
  if ((_d = meeting.stage) === null || _d === void 0 ? void 0 : _d.status) {
@@ -14,10 +14,8 @@ import { useLanguage } from "../../lib/lang";
14
14
  import { isLiveStreamHost } from "../../utils/livestream";
15
15
  import { SyncWithStore } from "../../utils/sync-with-store";
16
16
  /**
17
- * A toggle button for starting/stopping livestream broadcasting.
18
- *
19
- * Only visible to users with livestream permissions. Allows hosts to
20
- * broadcast the meeting to external streaming platforms.
17
+ * A button for starting or stopping a meeting livestream. It appears only for
18
+ * participants who have permission to host the livestream.
21
19
  */
22
20
  export class RtkLivestreamToggle {
23
21
  constructor() {
@@ -260,11 +260,11 @@ export class RtkMessageListView {
260
260
  this.updateTotalHeight();
261
261
  }
262
262
  render() {
263
- return (h("div", { key: '6564a301cf646ed53993d924111206cf4a382833', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: '81469bde1e421f0a881c3ad33b30a601fc54901c', class: "scroller" }, h("div", { key: '5e0c8dd617aa7ed5517cde108539dc23265a29e2', style: {
263
+ return (h("div", { key: '8da5ac7ee83f43da54ce1af023e178d206436b80', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: '3aeec25e25aeb2864b7ce0d68a08d58bb2b63cef', class: "scroller" }, h("div", { key: 'b65b2fb4471307f38c08480d268adfaafdb696fb', style: {
264
264
  height: `${this.totalHeight}px`,
265
- } }), h("div", { key: 'f994d2627b4787f803b9c7ac00f574dbd034f924', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: '4de62649e894f024ecb7d5767f6eefc702544964', class: "content", style: {
265
+ } }), h("div", { key: '08aa1dcf4740ce438b152527e8d60aff28704e8a', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: '48ba3788f83f2329174fb3ddd107eaf4da91699a', class: "content", style: {
266
266
  transform: `translateY(${this.getRangeSize(0, this.range.start)}px)`,
267
- } }, this.isFetching && (h("div", { key: 'dfa9a9abbc190896f80aa90191ab654fee7b7d8f', class: "loader" }, h("rtk-spinner", { key: '416b800f9d481689860340aff00fe30f30255603', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
267
+ } }, this.isFetching && (h("div", { key: '1a53b6b02899df6ce80c781b44fcd71802105fdf', class: "loader" }, h("rtk-spinner", { key: '222bdf5ad19f45914f48c91afb65075e3fef277f', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
268
268
  }
269
269
  static get is() { return "rtk-message-list-view"; }
270
270
  static get originalStyleUrls() {
@@ -348,7 +348,7 @@ export class RtkMessageListView {
348
348
  "optional": false,
349
349
  "docs": {
350
350
  "tags": [],
351
- "text": "Function to load more messages.\nMessages returned from this will be preprended"
351
+ "text": "Function to load more messages.\nMessages returned from this will be prepended"
352
352
  },
353
353
  "getter": false,
354
354
  "setter": false
@@ -151,7 +151,7 @@ export class RtkPaginatedList {
151
151
  }
152
152
  }
153
153
  /**
154
- * Updates a new node anywhere in the list
154
+ * Updates an existing node in the paginated list.
155
155
  * @param {string} id - The id of the node to update
156
156
  * @param {DataNode} node - The updated data node
157
157
  * */
@@ -364,9 +364,9 @@ export class RtkPaginatedList {
364
364
  /**
365
365
  * div.container is flex=column-reversewhich is why div#bottom-scroll comes before div#top-scroll
366
366
  */
367
- return (h(Host, { key: 'bff4fc91b737334c5764e690fbf2adafa1444408' }, h("div", { key: 'f4efa98ef0bd178602ee03718d35fcb833487909', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, h("div", { key: '37403f6462812a6662efa9577ae9ed43d27f63d6', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, h("rtk-button", { key: 'ee7e04e6281370dddb1b1e10b753e96dc602d42a', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
367
+ return (h(Host, { key: '836a2ef0f7929b35b7e3ce5a62291f58fc35a2bc' }, h("div", { key: '6bad7209030f715fc93942e1a29b174d1564ea5e', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, h("div", { key: '069d4f398daca2bb2cea90c8b2c8d76848f52bd8', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, h("rtk-button", { key: 'a2d7c5600a691c3440260150cefec78bdd145c92', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
368
368
  this.scrollToBottom();
369
- } }, this.shouldScrollToBottom ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.chevron_down })))), h("div", { key: '91bcdadd2518313fa06306a172575f5acc786596', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && h("rtk-spinner", { key: '932af19af69c3ecd5af22dd3051a5eea5cb25e7a', size: "sm" }), this.isLoading && this.pages.length < 1 && h("rtk-spinner", { key: '9fa60fb784a09800a32a3accdc81d940476330d2', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && h("rtk-spinner", { key: '73103f58338bdb89be69f9f6dc742e3cdd2c95d8', size: "sm" }), h("div", { key: '9c4c43ffb6442d58040448fe1b2d7332505fc81e', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
369
+ } }, this.shouldScrollToBottom ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.chevron_down })))), h("div", { key: '0b40605499a35ff03ac7c048aaaac32432a453ad', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && h("rtk-spinner", { key: 'fdcc9685d9cbcc4f4642c6ea1b716d3e57744883', size: "sm" }), this.isLoading && this.pages.length < 1 && h("rtk-spinner", { key: '9999a8e7008059a2742cbbc43f303e21825d44e5', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && h("rtk-spinner", { key: '923d826998193b190dc89a8bafe16fb38495f3ba', size: "sm" }), h("div", { key: '92b528919596a4fbe32c3a7f023de8d6494d57c7', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
370
370
  }
371
371
  static get is() { return "rtk-paginated-list"; }
372
372
  static get encapsulation() { return "shadow"; }
@@ -664,7 +664,7 @@ export class RtkPaginatedList {
664
664
  "return": "Promise<void>"
665
665
  },
666
666
  "docs": {
667
- "text": "Updates a new node anywhere in the list",
667
+ "text": "Updates an existing node in the paginated list.",
668
668
  "tags": [{
669
669
  "name": "param",
670
670
  "text": "id - The id of the node to update"
@@ -13,10 +13,8 @@ import { defaultIconPack, createDefaultConfig, } from "../../exports";
13
13
  import { useLanguage } from "../../lib/lang";
14
14
  import { SyncWithStore } from "../../utils/sync-with-store";
15
15
  /**
16
- * A component that displays participants waiting in the stage queue.
17
- *
18
- * Shows users who are waiting to be promoted to the stage in meetings
19
- * with stage functionality enabled.
16
+ * Displays participants who have requested access to the stage. The list includes
17
+ * controls for accepting or denying their requests.
20
18
  */
21
19
  export class RtkParticipantsStaged {
22
20
  constructor() {
@@ -13,10 +13,8 @@ import { createDefaultConfig, defaultIconPack, } from "../../exports";
13
13
  import { useLanguage } from "../../lib/lang";
14
14
  import { SyncWithStore } from "../../utils/sync-with-store";
15
15
  /**
16
- * A toggle button for enabling/disabling Picture-in-Picture mode.
17
- *
18
- * Allows users to switch the video display to a floating window that stays
19
- * on top of other applications.
16
+ * A button to turn Picture-in-Picture mode on or off when available. For example,
17
+ * a participant can keep the meeting video visible while using another app.
20
18
  */
21
19
  export class RtkPipToggle {
22
20
  constructor() {
@@ -12,10 +12,8 @@ import { Host, h } from "@stencil/core";
12
12
  import { SyncWithStore } from "../../utils/sync-with-store";
13
13
  import { defaultIconPack, useLanguage } from "../../exports";
14
14
  /**
15
- * A sidebar UI component with tabbed navigation.
16
- *
17
- * Provides a container for sidebar content with tab switching functionality.
18
- * Can be displayed as a sidebar or in full-screen mode.
15
+ * A tabbed container for meeting panels, such as chat and participants. It shows
16
+ * the selected panel in a sidebar or full-screen view.
19
17
  */
20
18
  export class RtkSidebarUi {
21
19
  constructor() {
@@ -68,11 +66,11 @@ export class RtkSidebarUi {
68
66
  render() {
69
67
  const isFullScreen = this.view === 'full-screen';
70
68
  const activeTab = this.tabs.find((tab) => tab.id === this.currentTab);
71
- return (h(Host, { key: '239f279ceccceeaa57181d4a71f3e04ede4132ce', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (h("rtk-button", { key: '921847fd946de305dce6f1fc7fe8a9ff175e38ee', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, h("rtk-icon", { key: '1de9f1edf8ecce2d0390b7b8a1253de02affd9d1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (h("header", { key: '4cd288feeb658e62d3ad1efd47aea237119918e1', class: "main-header" }, h("h3", { key: 'd6c4129537b4e090f3c429c66057be9a1072a864' }, activeTab.name), h("slot", { key: 'dfb1ea30cfa476b515a3a4b628c036083f1fe0a5', name: "pinned-state" }))), isFullScreen && (h("header", { key: '7dafb426628960ba26718530417854a533de3664', class: "mobile-tabs" }, this.tabs.map((tab) => (h("button", { onClick: () => {
69
+ return (h(Host, { key: '850aa92eeb61bf2729b12e30be8a43a9ff3a1acf', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (h("rtk-button", { key: 'f52d00bc36c398403eb7ac8ab5625f3cecd5da4f', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, h("rtk-icon", { key: '4d970f5a9f02839dc297ccb2b7c85806025f7ef1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (h("header", { key: '8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2', class: "main-header" }, h("h3", { key: '6f9faffac3acd82cd4645189459212026b10bf1d' }, activeTab.name), h("slot", { key: '20b3cff89b8805600eafbce17aabc4880e473a56', name: "pinned-state" }))), isFullScreen && (h("header", { key: '86bf499aadbe7b57868a135a35100cc1e430520e', class: "mobile-tabs" }, this.tabs.map((tab) => (h("button", { onClick: () => {
72
70
  this.tabChange.emit(tab.id);
73
71
  }, class: {
74
72
  active: this.currentTab === tab.id,
75
- } }, tab.name))))), h("slot", { key: '2696ccd9fcad418ad7738164cd5a9e6305320899', name: this.currentTab })));
73
+ } }, tab.name))))), h("slot", { key: 'd19ec28aa918a2bfd9556c64ef758b2faf6a195d', name: this.currentTab })));
76
74
  }
77
75
  static get is() { return "rtk-sidebar-ui"; }
78
76
  static get encapsulation() { return "shadow"; }
@@ -61,7 +61,7 @@ export class RtkSpeakerSelector {
61
61
  var _a, _b, _c;
62
62
  (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.self.removeListener('deviceListUpdate', this.deviceListUpdateListener);
63
63
  (_b = this.meeting) === null || _b === void 0 ? void 0 : _b.self.removeListener('deviceUpdate', this.deviceUpdateListener);
64
- (_c = this.meeting) === null || _c === void 0 ? void 0 : _c.self.addListener('mediaPermissionUpdate', this.mediaPermissionUpdate);
64
+ (_c = this.meeting) === null || _c === void 0 ? void 0 : _c.self.removeListener('mediaPermissionUpdate', this.mediaPermissionUpdate);
65
65
  }
66
66
  meetingChanged(meeting) {
67
67
  if (!meeting)
@@ -18,7 +18,7 @@ import { SyncWithStore } from "../../utils/sync-with-store";
18
18
  /**
19
19
  * A grid component that renders two lists of participants: `pinnedParticipants` and `participants`.
20
20
  *
21
- * You can customize the layout to a `column` view, by default is is `row`.
21
+ * You can customize the layout to a `column` view, by default is `row`.
22
22
  *
23
23
  * - Participants from `pinnedParticipants[]` are rendered inside a larger grid.
24
24
  * - Participants from `participants[]` array are rendered in a smaller grid.
@@ -72,13 +72,13 @@ export class RtkSpotlightGrid {
72
72
  t: this.t,
73
73
  };
74
74
  const nonPinnedParticipants = this.participants.filter((p) => this.pinnedParticipants.some((pt) => pt.id != p.id));
75
- return (h(Host, { key: '1cb846cc92b660a8244d16a74f48dfadcef903b6' }, h("main", { key: '8564f8b0bf6e7bd668132e2833fe73c73855d090', part: "main" }, h(Render, { key: '61b96f305727dc74de15f4c3c645069d6300afd9', element: "rtk-simple-grid", defaults: defaults, props: {
75
+ return (h(Host, { key: '61c335032f64054d173a44639ab41ead131d0cdf' }, h("main", { key: '6dd23dc9d8b600d1747213396968b9601e04f83e', part: "main" }, h(Render, { key: 'efa5e5be367c3423e7fdd280fd9ec66ce5d50134', element: "rtk-simple-grid", defaults: defaults, props: {
76
76
  part: 'main-grid',
77
77
  participants: this.pinnedParticipants,
78
78
  aspectRatio: this.aspectRatio,
79
79
  gap: this.gap,
80
80
  size: this.getAdaptiveSize(this.pinnedParticipants.length),
81
- } })), nonPinnedParticipants.length > 0 && (h("aside", { key: '2e297a8d83c1f7241d8688b643c055331d69299b', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: '2c1969c610018dfb0a23308316f072e3b8d87a6e', element: "rtk-simple-grid", defaults: defaults, props: {
81
+ } })), nonPinnedParticipants.length > 0 && (h("aside", { key: '183ea410b2afb776dec7fc9fd2dbcd33d1ae285a', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: 'cb763ff9d4c6358f63e974d1984de3c67ffee3b5', element: "rtk-simple-grid", defaults: defaults, props: {
82
82
  part: 'aside-grid',
83
83
  participants: nonPinnedParticipants,
84
84
  aspectRatio: this.aspectRatio,
@@ -10,21 +10,64 @@ export default class RTKAudio {
10
10
  this.logger = meeting.__internals__.logger;
11
11
  this.audioStream = new MediaStream();
12
12
  this.audio.srcObject = this.audioStream;
13
- this.audioTracks = [];
13
+ this.trackIdByAudioIdMap = new Map();
14
+ this.trackOwners = new Map();
14
15
  }
15
- addTrack(id, track) {
16
- // Remove the track if it already exists, with the same id
17
- this.removeTrack(id);
18
- this.audioTracks.push({ id, track });
19
- this.audioStream.addTrack(track);
16
+ addTrack(audioId, track) {
17
+ /**
18
+ * NOTE(ravindra-cloudflare):
19
+ * audioId format: audio-${peerId} or screenshare-${peerId}.
20
+ *
21
+ * During reconnection, the old and new peer IDs of the same participant
22
+ * can temporarily co-own the same track.
23
+ *
24
+ * Before adding track, we should check if the track is already added with a different audio ID.
25
+ */
26
+ const currentTrackId = this.trackIdByAudioIdMap.get(audioId);
27
+ // Track already added, just play it
28
+ if (currentTrackId === track.id) {
29
+ this.play();
30
+ return;
31
+ }
32
+ // A logical audio ID owns one track. Release its previous track before replacing it.
33
+ if (currentTrackId)
34
+ this.removeTrack(audioId);
35
+ this.trackIdByAudioIdMap.set(audioId, track.id);
36
+ const owners = this.trackOwners.get(track.id);
37
+ if (owners) {
38
+ // Set membership is idempotent when reconnect events repeat or arrive out of order.
39
+ owners.audioIds.add(audioId);
40
+ }
41
+ else {
42
+ // If you are the first owner of this track, add it to the audio stream
43
+ this.trackOwners.set(track.id, { track, audioIds: new Set([audioId]) });
44
+ this.audioStream.addTrack(track);
45
+ }
20
46
  this.play();
21
47
  }
22
- removeTrack(id) {
23
- const track = this.audioTracks.find((a) => a.id === id);
24
- if (track != null) {
25
- this.audioStream.removeTrack(track.track);
26
- this.audioTracks = this.audioTracks.filter((a) => a.id !== id);
27
- }
48
+ removeTrack(audioId) {
49
+ /**
50
+ * NOTE(ravindra-cloudflare):
51
+ * audioId format: audio-${peerId} or screenshare-${peerId}.
52
+ *
53
+ * During reconnection, the old and new peer IDs of the same participant
54
+ * can temporarily co-own the same track.
55
+ *
56
+ * Before removing track, we should check if the track is still owned by other audio IDs.
57
+ */
58
+ const trackId = this.trackIdByAudioIdMap.get(audioId);
59
+ if (!trackId)
60
+ return;
61
+ this.trackIdByAudioIdMap.delete(audioId);
62
+ const owners = this.trackOwners.get(trackId);
63
+ if (!owners)
64
+ return;
65
+ owners.audioIds.delete(audioId);
66
+ if (owners.audioIds.size > 0)
67
+ return;
68
+ // Remove the physical track only after its final logical owner is gone.
69
+ this.audioStream.removeTrack(owners.track);
70
+ this.trackOwners.delete(trackId);
28
71
  }
29
72
  async play() {
30
73
  var _a;
@@ -1,8 +1,8 @@
1
1
  import { isFirefox } from "../utils/browser";
2
2
  const SOUNDS = {
3
- joined: 'https://rtk-uploads.realtime.cloudflare.com/notification_join.mp3',
4
- left: 'https://rtk-uploads.realtime.cloudflare.com/notification_join.mp3',
5
- message: 'https://rtk-uploads.realtime.cloudflare.com/notification_message.mp3',
3
+ joined: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
4
+ left: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
5
+ message: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_message.mp3',
6
6
  };
7
7
  /**
8
8
  * Handles notification sounds in a meeting
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep } from "lodash-es";
2
2
  export default function clone(obj) {
3
- if (structuredClone) {
3
+ if (typeof structuredClone === 'function') {
4
4
  return structuredClone(obj);
5
5
  }
6
6
  return cloneDeep(obj);
@@ -1 +1 @@
1
- export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BBHQOrFK.js";export{B as BreakoutRoomsManager}from"./p-DxDYE5-a.js";export{p as provideRtkDesignSystem}from"./p-iZinM7-j.js";import{g as t}from"./p-Bgm0SnIA.js";export{e as extendConfig}from"./p-Bgm0SnIA.js";import{c as o}from"./p-BthnOddY.js";export{b as createPeerStore,d as defaultConfig,e as defaultIconPack,h as defaultLanguage,f as defaultOverrides,g as getInitialStates,a as uiState,u as uiStore,i as useLanguage}from"./p-BthnOddY.js";export{R as RtkNotificationsAudio}from"./p-BCuMxcZN.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-Bj1kNPpe.js";const n=(t,s)=>{if("undefined"==typeof document)return!1;const e=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:s}),composed:!0});return document.dispatchEvent(e)};function l(t){return s=>Array.isArray(s)?s[0]===t:s===t}function m(t){return s=>Array.isArray(s)?s[0]!==t:s!==t}function v(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class y{constructor(t,s,e){this.elem=t,this.config=s,this.keyString=e}add(t,s={}){var e;let r=t=v(t);return Object.keys(s).length>0&&(r=[t,s]),Array.isArray(this.elem)?this.elem.push(r):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,r]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(l(t))?this.elem.remove=this.elem.remove.filter(m(t)):("add"in this.elem||(this.elem.add=[]),null===(e=this.elem.add)||void 0===e||e.push(r)),this}remove(t){var s;if(t=v(t),Array.isArray(this.elem)){const s=this.elem.findIndex(l(t));s>-1&&this.elem.splice(s,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(m(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((s=>s===t))?this.elem.add=this.elem.add.filter(m(t)):("remove"in this.elem||(this.elem.remove=[]),null===(s=this.elem.remove)||void 0===s||s.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,s){console.log(this.keyString,t,s)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class A{constructor(t){this.config=t||o()}find(t,s={}){t=v(t);const e=[],r=[];Object.keys(s||{}).forEach((t=>{"boolean"==typeof s[t]?e.push(t):r.push([t,s[t]])})),e.sort();const i=this.config.root;if(void 0===i)return;let o=t,n="";e.length>0&&(n="."+e.join("."),o=`${t}${n}`,Array.isArray(i[t])&&(i[t]={states:[],children:i[t]}),void 0===i[t].states&&(i[t].states=[]),e.forEach((s=>{var e,r;-1===(null===(e=i[t].states)||void 0===e?void 0:e.indexOf(s))&&(null===(r=i[t].states)||void 0===r||r.push(s))}))),r.length>0&&r.forEach((s=>{o=`${t}[${s[0]}=${s[1]}]${n}`,Array.isArray(i[t])&&(i[t]={state:s[0],children:i[t]})}));let a=i[o];return void 0===a&&(i[o]={},a=i[o]),new y(a,this.config,o)}build(){return this.config}}function j(s,e,r){if(!r){const s=t(e.self.config,e);r=s.config}return s.map((t=>{r=t.register(r,e,(t=>new A(t)))})),r}export{A as RtkUiBuilder,o as createDefaultConfig,t as generateConfig,j as registerAddons,n as sendNotification}
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BBHQOrFK.js";export{B as BreakoutRoomsManager}from"./p-DxDYE5-a.js";export{p as provideRtkDesignSystem}from"./p-CfIrQkMg.js";import{g as t}from"./p-B4dw_Fnl.js";export{e as extendConfig}from"./p-B4dw_Fnl.js";import{c as o}from"./p-DhwysA2e.js";export{b as createPeerStore,d as defaultConfig,e as defaultIconPack,h as defaultLanguage,f as defaultOverrides,g as getInitialStates,a as uiState,u as uiStore,i as useLanguage}from"./p-DhwysA2e.js";export{R as RtkNotificationsAudio}from"./p-B56IYWsZ.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-Bj1kNPpe.js";const n=(t,s)=>{if("undefined"==typeof document)return!1;const e=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:s}),composed:!0});return document.dispatchEvent(e)};function l(t){return s=>Array.isArray(s)?s[0]===t:s===t}function m(t){return s=>Array.isArray(s)?s[0]!==t:s!==t}function y(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class v{constructor(t,s,e){this.elem=t,this.config=s,this.keyString=e}add(t,s={}){var e;let r=t=y(t);return Object.keys(s).length>0&&(r=[t,s]),Array.isArray(this.elem)?this.elem.push(r):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,r]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(l(t))?this.elem.remove=this.elem.remove.filter(m(t)):("add"in this.elem||(this.elem.add=[]),null===(e=this.elem.add)||void 0===e||e.push(r)),this}remove(t){var s;if(t=y(t),Array.isArray(this.elem)){const s=this.elem.findIndex(l(t));s>-1&&this.elem.splice(s,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(m(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((s=>s===t))?this.elem.add=this.elem.add.filter(m(t)):("remove"in this.elem||(this.elem.remove=[]),null===(s=this.elem.remove)||void 0===s||s.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,s){console.log(this.keyString,t,s)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class A{constructor(t){this.config=t||o()}find(t,s={}){t=y(t);const e=[],r=[];Object.keys(s||{}).forEach((t=>{"boolean"==typeof s[t]?e.push(t):r.push([t,s[t]])})),e.sort();const i=this.config.root;if(void 0===i)return;let o=t,a="";e.length>0&&(a="."+e.join("."),o=`${t}${a}`,Array.isArray(i[t])&&(i[t]={states:[],children:i[t]}),void 0===i[t].states&&(i[t].states=[]),e.forEach((s=>{var e,r;-1===(null===(e=i[t].states)||void 0===e?void 0:e.indexOf(s))&&(null===(r=i[t].states)||void 0===r||r.push(s))}))),r.length>0&&r.forEach((s=>{o=`${t}[${s[0]}=${s[1]}]${a}`,Array.isArray(i[t])&&(i[t]={state:s[0],children:i[t]})}));let n=i[o];return void 0===n&&(i[o]={},n=i[o]),new v(n,this.config,o)}build(){return this.config}}function j(s,e,r){if(!r){const s=t(e.self.config,e);r=s.config}return s.map((t=>{r=t.register(r,e,(t=>new A(t)))})),r}export{A as RtkUiBuilder,o as createDefaultConfig,t as generateConfig,j as registerAddons,n as sendNotification}