@cloudflare/realtimekit-ui 1.0.9-staging.2 → 1.0.9-staging.4

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 (587) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/ChatHead-e13f3b0e.js +13 -0
  3. package/dist/cjs/{TextMessage-4f9299ff.js → TextMessage-7bb3e1fd.js} +1 -1
  4. package/dist/cjs/{chat-04fd67b4.js → chat-717e517d.js} +1 -1
  5. package/dist/cjs/{notification-6f17add8.js → config-8c9ac89a.js} +0 -35
  6. package/dist/cjs/{ChatHead-6416d6cf.js → date-61ffcd0a.js} +0 -10
  7. package/dist/cjs/index-05554ce6.js +62 -2
  8. package/dist/cjs/index.cjs.js +11 -10
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/notification-567fe887.js +39 -0
  11. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +3 -2
  13. package/dist/cjs/rtk-audio-grid.cjs.entry.js +1 -1
  14. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +1 -1
  15. package/dist/cjs/rtk-avatar_24.cjs.entry.js +2584 -0
  16. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +397 -0
  17. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +986 -0
  18. package/dist/cjs/rtk-channel-creator.cjs.entry.js +163 -0
  19. package/dist/cjs/rtk-channel-details.cjs.entry.js +49 -0
  20. package/dist/cjs/rtk-channel-header.cjs.entry.js +83 -0
  21. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +4 -4
  22. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +1 -1
  23. package/dist/cjs/rtk-chat-message.cjs.entry.js +118 -0
  24. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +200 -0
  25. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +57 -0
  26. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +1 -1
  27. package/dist/cjs/rtk-clock.cjs.entry.js +3 -3
  28. package/dist/cjs/rtk-controlbar.cjs.entry.js +1 -1
  29. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +686 -0
  30. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +1 -1
  31. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +154 -0
  32. package/dist/cjs/rtk-dialog.cjs.entry.js +93 -0
  33. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +1 -1
  34. package/dist/cjs/rtk-file-message_3.cjs.entry.js +148 -0
  35. package/dist/cjs/rtk-header.cjs.entry.js +1 -1
  36. package/dist/cjs/rtk-idle-screen.cjs.entry.js +1 -1
  37. package/dist/cjs/rtk-image-viewer.cjs.entry.js +1 -1
  38. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +1 -1
  39. package/dist/cjs/rtk-leave-button.cjs.entry.js +1 -1
  40. package/dist/cjs/rtk-logo.cjs.entry.js +77 -0
  41. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  42. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-notification.cjs.entry.js +71 -0
  44. package/dist/cjs/rtk-notifications.cjs.entry.js +588 -0
  45. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-participant_2.cjs.entry.js +14 -14
  47. package/dist/cjs/rtk-participants-audio.cjs.entry.js +1 -1
  48. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +1 -1
  49. package/dist/cjs/rtk-plugins_2.cjs.entry.js +4 -4
  50. package/dist/cjs/rtk-poll_2.cjs.entry.js +3 -3
  51. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +1 -1
  52. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +5 -5
  53. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +1 -1
  54. package/dist/cjs/rtk-sidebar.cjs.entry.js +1 -1
  55. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-stage.cjs.entry.js +1 -1
  57. package/dist/cjs/rtk-transcript.cjs.entry.js +1 -1
  58. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +1 -1
  59. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  60. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  61. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
  62. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
  63. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +5 -2
  64. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +2 -1
  65. package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +1 -0
  66. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +5 -2
  67. package/dist/collection/components/rtk-chat/rtk-chat.js +5 -102
  68. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +3 -2
  69. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +13 -4
  70. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +4 -2
  71. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -1
  72. package/dist/collection/components/rtk-clock/rtk-clock.js +3 -3
  73. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  74. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  75. package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
  76. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  77. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +0 -6
  78. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  79. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  80. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  81. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  82. package/dist/collection/components/rtk-file-message/rtk-file-message.js +3 -2
  83. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
  84. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  85. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  86. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  87. package/dist/collection/components/rtk-image-message/rtk-image-message.js +5 -4
  88. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +3 -3
  89. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  90. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
  91. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  92. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
  93. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
  94. package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
  95. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  96. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  97. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +3 -3
  98. package/dist/collection/components/rtk-message-view/rtk-message-view.css +26 -12
  99. package/dist/collection/components/rtk-message-view/rtk-message-view.js +23 -1
  100. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
  101. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  102. package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
  103. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  104. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +25 -1
  105. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +25 -22
  106. package/dist/collection/components/rtk-participant/rtk-participant.js +12 -12
  107. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
  108. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  109. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  110. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  111. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  112. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  113. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
  114. package/dist/collection/components/rtk-polls/rtk-polls.js +3 -3
  115. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  116. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +5 -5
  117. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  118. package/dist/collection/components/rtk-sidebar/rtk-sidebar.css +2 -0
  119. package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
  120. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +2 -2
  121. package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
  122. package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
  123. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
  124. package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -2
  125. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  126. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +1 -1
  127. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  128. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  129. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
  130. package/dist/collection/utils/chat.js +1 -1
  131. package/dist/components/index.js +7 -7
  132. package/dist/components/{p-26055088.js → p-080acf18.js} +3 -3
  133. package/dist/components/{p-34b580c9.js → p-0a35a909.js} +3 -3
  134. package/dist/components/{p-f9faeffc.js → p-0b4e526c.js} +3 -3
  135. package/dist/components/{p-a3ebfc10.js → p-0d582365.js} +2 -2
  136. package/dist/components/{p-c7413ac8.js → p-0d7bf41b.js} +4 -4
  137. package/dist/components/{p-a5a40d7e.js → p-102b6df8.js} +2 -2
  138. package/dist/components/{p-12d2b558.js → p-10ef077c.js} +3 -3
  139. package/dist/components/{p-4772f368.js → p-121e073d.js} +2 -2
  140. package/dist/components/{p-b804a5f5.js → p-188bfe87.js} +8 -8
  141. package/dist/components/{p-a9d5d165.js → p-190db142.js} +7 -7
  142. package/dist/components/{p-fb427023.js → p-20290b0b.js} +4 -4
  143. package/dist/components/{p-03fe0979.js → p-244cbe7b.js} +2 -2
  144. package/dist/components/{p-cc5ecd67.js → p-2d08ab28.js} +2 -2
  145. package/dist/components/{p-91a9efcf.js → p-2e282643.js} +5 -5
  146. package/dist/components/{p-aba9b612.js → p-2f82e0b0.js} +7 -7
  147. package/dist/components/{p-7119673c.js → p-33a87325.js} +2 -2
  148. package/dist/components/{p-511ed3f8.js → p-395d7140.js} +4 -4
  149. package/dist/components/{p-1a60f5b0.js → p-3da4880c.js} +4 -4
  150. package/dist/components/{p-af35ac31.js → p-47c25f64.js} +1 -1
  151. package/dist/components/{p-01a50790.js → p-488d88a8.js} +4 -4
  152. package/dist/components/{p-e2e22bf8.js → p-4d582a90.js} +5 -5
  153. package/dist/components/{p-b373754d.js → p-51de7af3.js} +1 -1
  154. package/dist/components/{p-65b9931e.js → p-55501201.js} +4 -4
  155. package/dist/components/{p-7f0ee3c6.js → p-563c785d.js} +3 -3
  156. package/dist/components/{p-c40166a9.js → p-5c92df32.js} +5 -5
  157. package/dist/components/{p-ed8955d0.js → p-5f26bba3.js} +2 -2
  158. package/dist/components/{p-0a7f6a8a.js → p-618864a0.js} +3 -3
  159. package/dist/components/{p-49967150.js → p-63ef7ea4.js} +6 -6
  160. package/dist/components/{p-00ebd1dc.js → p-65cd2fe3.js} +4 -4
  161. package/dist/components/{p-3438fd71.js → p-6756b222.js} +2 -2
  162. package/dist/components/{p-9730c398.js → p-6c2cfa0d.js} +3 -3
  163. package/dist/components/{p-3a80e3ab.js → p-6f272732.js} +8 -8
  164. package/dist/components/{p-df25c2a7.js → p-6f340109.js} +1 -1
  165. package/dist/components/{p-a09aefba.js → p-7481511c.js} +2 -2
  166. package/dist/components/{p-6bd3b767.js → p-78b61cce.js} +1 -1
  167. package/dist/components/{p-037e572f.js → p-7fc0dc2f.js} +1 -1
  168. package/dist/components/{p-314b1504.js → p-82f8c924.js} +2 -2
  169. package/dist/components/{p-6d49cf9f.js → p-84e5b453.js} +2 -2
  170. package/dist/components/{p-f5f0b499.js → p-88bef213.js} +2 -2
  171. package/dist/components/{p-f46a0782.js → p-8d25843a.js} +3 -3
  172. package/dist/components/{p-2b955eb0.js → p-914563e7.js} +5 -5
  173. package/dist/components/{p-04aaec79.js → p-94e867c2.js} +17 -15
  174. package/dist/components/{p-731ee854.js → p-9889bee5.js} +5 -5
  175. package/dist/components/{p-dc4b6fc4.js → p-9e87b2c9.js} +2 -2
  176. package/dist/components/{p-f734a4cf.js → p-a10b9faa.js} +2 -2
  177. package/dist/components/{p-f81c7fda.js → p-a29c01fc.js} +2 -2
  178. package/dist/components/{p-551bed08.js → p-a4a5ff5a.js} +4 -4
  179. package/dist/components/{p-1986022b.js → p-a6296b02.js} +3 -3
  180. package/dist/components/{p-93e1439e.js → p-a94b2e67.js} +2 -2
  181. package/dist/components/{p-4c8cff29.js → p-a9540d93.js} +28 -24
  182. package/dist/components/{p-a2f4f9e3.js → p-aae4c250.js} +1 -1
  183. package/dist/components/{p-3051f5f5.js → p-abe1dbe6.js} +4 -4
  184. package/dist/components/{p-840ef7fe.js → p-adf73364.js} +5 -5
  185. package/dist/components/{p-72346e7f.js → p-afe77b50.js} +2 -2
  186. package/dist/components/{p-f4ff7d70.js → p-b011763d.js} +3 -3
  187. package/dist/components/{p-9ea5df8f.js → p-b34865c7.js} +4 -4
  188. package/dist/components/{p-897a04be.js → p-b882f4a1.js} +4 -4
  189. package/dist/components/{p-4edd666b.js → p-bb8f2597.js} +6 -6
  190. package/dist/components/{p-9149c02e.js → p-c078ae06.js} +2 -2
  191. package/dist/components/{p-989d36e2.js → p-c3621e10.js} +6 -6
  192. package/dist/components/{p-40c5ca62.js → p-c515acba.js} +2 -2
  193. package/dist/components/{p-12437468.js → p-cf503999.js} +2 -2
  194. package/dist/components/{p-66bae0d9.js → p-d06d1eac.js} +2 -2
  195. package/dist/components/{p-17867774.js → p-d107e9f4.js} +3 -3
  196. package/dist/components/{p-c5dfd548.js → p-d37b8a32.js} +49 -326
  197. package/dist/components/{p-bccc21f8.js → p-d3de8b85.js} +3 -3
  198. package/dist/components/{p-22a734a8.js → p-d4e2ac64.js} +6 -6
  199. package/dist/components/{p-0abe4b8a.js → p-dab9d3d6.js} +1 -1
  200. package/dist/components/{p-52b090fc.js → p-dbfc9151.js} +3 -3
  201. package/dist/components/{p-d2c3870a.js → p-e4a080a5.js} +3 -3
  202. package/dist/components/{p-c663f9b1.js → p-e6710b76.js} +4 -4
  203. package/dist/components/{p-3df2211d.js → p-e675729a.js} +4 -4
  204. package/dist/components/{p-ddb2df62.js → p-e81fc1e8.js} +3 -3
  205. package/dist/components/{p-39a6a6a6.js → p-e8df7ac5.js} +18 -18
  206. package/dist/components/{p-1d29b7c3.js → p-ee98bbaf.js} +12 -12
  207. package/dist/components/{p-3fe1bb0d.js → p-f47894a6.js} +12 -12
  208. package/dist/components/{p-6fe2233b.js → p-f4e75ea9.js} +3 -3
  209. package/dist/components/{p-22d9d3ff.js → p-f7430e46.js} +5 -5
  210. package/dist/components/{p-d2b37264.js → p-f7eb9c47.js} +5 -5
  211. package/dist/components/{p-54dba22f.js → p-f8f5cb31.js} +4 -4
  212. package/dist/components/{p-03bdc4c0.js → p-fa8f6b4a.js} +1 -1
  213. package/dist/components/{p-fb46d041.js → p-fd68a52b.js} +8 -8
  214. package/dist/components/{p-c3582bf3.js → p-fe911889.js} +12 -9
  215. package/dist/components/rtk-ai-toggle.js +4 -4
  216. package/dist/components/rtk-ai-transcriptions.js +1 -1
  217. package/dist/components/rtk-ai.js +3 -3
  218. package/dist/components/rtk-audio-grid.js +3 -3
  219. package/dist/components/rtk-audio-tile.js +5 -5
  220. package/dist/components/rtk-audio-visualizer.js +1 -1
  221. package/dist/components/rtk-avatar.js +1 -1
  222. package/dist/components/rtk-breakout-room-manager.js +1 -1
  223. package/dist/components/rtk-breakout-room-participants.js +1 -1
  224. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  225. package/dist/components/rtk-breakout-rooms-toggle.js +4 -4
  226. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  227. package/dist/components/rtk-camera-selector.js +1 -1
  228. package/dist/components/rtk-camera-toggle.js +5 -5
  229. package/dist/components/rtk-caption-toggle.js +4 -4
  230. package/dist/components/rtk-channel-creator.js +209 -1
  231. package/dist/components/rtk-channel-details.js +1 -1
  232. package/dist/components/rtk-channel-header.js +146 -1
  233. package/dist/components/rtk-channel-selector-ui.js +7 -7
  234. package/dist/components/rtk-channel-selector-view.js +1 -1
  235. package/dist/components/rtk-chat-composer-ui.js +7 -7
  236. package/dist/components/rtk-chat-composer-view.js +1 -1
  237. package/dist/components/rtk-chat-message.js +1 -1
  238. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  239. package/dist/components/rtk-chat-messages-ui.js +302 -1
  240. package/dist/components/rtk-chat-search-results.js +146 -1
  241. package/dist/components/rtk-chat-selector-ui.js +3 -3
  242. package/dist/components/rtk-chat-toggle.js +5 -5
  243. package/dist/components/rtk-chat.js +1 -1
  244. package/dist/components/rtk-clock.js +5 -5
  245. package/dist/components/rtk-confirmation-modal.js +1 -1
  246. package/dist/components/rtk-controlbar-button.js +1 -1
  247. package/dist/components/rtk-controlbar.js +3 -3
  248. package/dist/components/rtk-counter.js +1 -1
  249. package/dist/components/rtk-debugger-audio.js +1 -1
  250. package/dist/components/rtk-debugger-screenshare.js +1 -1
  251. package/dist/components/rtk-debugger-system.js +1 -1
  252. package/dist/components/rtk-debugger-toggle.js +5 -5
  253. package/dist/components/rtk-debugger-video.js +1 -1
  254. package/dist/components/rtk-debugger.js +1 -1
  255. package/dist/components/rtk-dialog-manager.js +305 -1
  256. package/dist/components/rtk-dialog.js +1 -1
  257. package/dist/components/rtk-draft-attachment-view.js +1 -1
  258. package/dist/components/rtk-emoji-picker-button.js +1 -1
  259. package/dist/components/rtk-emoji-picker.js +1 -1
  260. package/dist/components/rtk-ended-screen.js +3 -3
  261. package/dist/components/rtk-file-dropzone.js +3 -3
  262. package/dist/components/rtk-file-message-view.js +1 -1
  263. package/dist/components/rtk-file-message.js +1 -1
  264. package/dist/components/rtk-file-picker-button.js +1 -1
  265. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  266. package/dist/components/rtk-grid-pagination.js +3 -3
  267. package/dist/components/rtk-grid.js +8 -8
  268. package/dist/components/rtk-header.js +3 -3
  269. package/dist/components/rtk-idle-screen.js +5 -5
  270. package/dist/components/rtk-image-message-view.js +1 -1
  271. package/dist/components/rtk-image-message.js +1 -1
  272. package/dist/components/rtk-image-viewer.js +3 -3
  273. package/dist/components/rtk-information-tooltip.js +3 -3
  274. package/dist/components/rtk-join-stage.js +1 -1
  275. package/dist/components/rtk-leave-button.js +5 -5
  276. package/dist/components/rtk-leave-meeting.js +1 -1
  277. package/dist/components/rtk-livestream-indicator.js +1 -1
  278. package/dist/components/rtk-livestream-player.js +1 -1
  279. package/dist/components/rtk-livestream-toggle.js +4 -4
  280. package/dist/components/rtk-logo.js +1 -1
  281. package/dist/components/rtk-markdown-view.js +1 -1
  282. package/dist/components/rtk-meeting-title.js +3 -3
  283. package/dist/components/rtk-meeting.js +47 -227
  284. package/dist/components/rtk-menu-item.js +1 -1
  285. package/dist/components/rtk-menu-list.js +1 -1
  286. package/dist/components/rtk-menu.js +1 -1
  287. package/dist/components/rtk-message-list-view.js +6 -6
  288. package/dist/components/rtk-message-view.js +1 -1
  289. package/dist/components/rtk-mic-toggle.js +5 -5
  290. package/dist/components/rtk-microphone-selector.js +1 -1
  291. package/dist/components/rtk-mixed-grid.js +6 -6
  292. package/dist/components/rtk-more-toggle.js +6 -6
  293. package/dist/components/rtk-mute-all-button.js +5 -5
  294. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  295. package/dist/components/rtk-name-tag.js +1 -1
  296. package/dist/components/rtk-network-indicator.js +2 -2
  297. package/dist/components/rtk-notification.js +1 -1
  298. package/dist/components/rtk-notifications.js +629 -1
  299. package/dist/components/rtk-overlay-modal.js +1 -1
  300. package/dist/components/rtk-paginated-list.js +1 -1
  301. package/dist/components/rtk-participant-count.js +2 -2
  302. package/dist/components/rtk-participant-setup.js +4 -4
  303. package/dist/components/rtk-participant-tile.js +1 -1
  304. package/dist/components/rtk-participant.js +1 -1
  305. package/dist/components/rtk-participants-audio.js +4 -4
  306. package/dist/components/rtk-participants-stage-list.js +1 -1
  307. package/dist/components/rtk-participants-stage-queue.js +1 -1
  308. package/dist/components/rtk-participants-toggle.js +5 -5
  309. package/dist/components/rtk-participants-viewer-list.js +1 -1
  310. package/dist/components/rtk-participants-waiting-list.js +1 -1
  311. package/dist/components/rtk-participants.js +14 -14
  312. package/dist/components/rtk-permissions-message.js +1 -1
  313. package/dist/components/rtk-pip-toggle.js +4 -4
  314. package/dist/components/rtk-plugin-main.js +1 -1
  315. package/dist/components/rtk-plugins-toggle.js +5 -5
  316. package/dist/components/rtk-plugins.js +1 -1
  317. package/dist/components/rtk-poll-form.js +1 -1
  318. package/dist/components/rtk-poll.js +1 -1
  319. package/dist/components/rtk-polls-toggle.js +5 -5
  320. package/dist/components/rtk-polls.js +1 -1
  321. package/dist/components/rtk-recording-indicator.js +3 -3
  322. package/dist/components/rtk-recording-toggle.js +4 -4
  323. package/dist/components/rtk-screen-share-toggle.js +5 -5
  324. package/dist/components/rtk-screenshare-view.js +8 -8
  325. package/dist/components/rtk-settings-audio.js +1 -1
  326. package/dist/components/rtk-settings-toggle.js +5 -5
  327. package/dist/components/rtk-settings-video.js +1 -1
  328. package/dist/components/rtk-settings.js +10 -10
  329. package/dist/components/rtk-setup-screen.js +6 -6
  330. package/dist/components/rtk-sidebar-ui.js +1 -1
  331. package/dist/components/rtk-sidebar.js +10 -10
  332. package/dist/components/rtk-simple-grid.js +2 -2
  333. package/dist/components/rtk-speaker-selector.js +1 -1
  334. package/dist/components/rtk-spinner.js +1 -1
  335. package/dist/components/rtk-spotlight-grid.js +4 -4
  336. package/dist/components/rtk-spotlight-indicator.js +1 -1
  337. package/dist/components/rtk-stage-toggle.js +5 -5
  338. package/dist/components/rtk-stage.js +3 -3
  339. package/dist/components/rtk-switch.js +1 -1
  340. package/dist/components/rtk-tab-bar.js +1 -1
  341. package/dist/components/rtk-text-composer-view.js +1 -1
  342. package/dist/components/rtk-text-message-view.js +1 -1
  343. package/dist/components/rtk-text-message.js +1 -1
  344. package/dist/components/rtk-tooltip.js +1 -1
  345. package/dist/components/rtk-transcript.js +1 -1
  346. package/dist/components/rtk-transcripts.js +3 -3
  347. package/dist/components/rtk-ui-provider.js +2 -2
  348. package/dist/components/rtk-viewer-count.js +1 -1
  349. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  350. package/dist/components/rtk-waiting-screen.js +4 -4
  351. package/dist/docs/docs-components.json +144 -384
  352. package/dist/docs/docs-vscode.json +7 -3
  353. package/dist/esm/ChatHead-15c2f8d4.js +11 -0
  354. package/dist/esm/{TextMessage-07d53134.js → TextMessage-ca92045e.js} +1 -1
  355. package/dist/esm/{chat-32ac0c2b.js → chat-ff185374.js} +2 -2
  356. package/dist/esm/{notification-0794a8cc.js → config-e684aa4d.js} +3 -37
  357. package/dist/esm/{ChatHead-11b92a26.js → date-b1f78dea.js} +1 -10
  358. package/dist/esm/{debounce-6ec038d3.js → debounce-3ea4df36.js} +1 -1
  359. package/dist/esm/{file-849468c1.js → file-6114f1a9.js} +1 -1
  360. package/dist/esm/index-c1fb98bb.js +62 -2
  361. package/dist/esm/{index-849b9dd9.js → index-e65afca5.js} +1 -1
  362. package/dist/esm/index.js +7 -6
  363. package/dist/esm/loader.js +13237 -13245
  364. package/dist/esm/{merge-f5f3ca10.js → merge-7ffc04b3.js} +1 -1
  365. package/dist/esm/notification-78afaabf.js +37 -0
  366. package/dist/esm/realtimekit-ui.js +1 -1
  367. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  368. package/dist/esm/rtk-ai-transcriptions.entry.js +6 -5
  369. package/dist/esm/rtk-ai.entry.js +2 -2
  370. package/dist/esm/rtk-audio-grid.entry.js +3 -3
  371. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  372. package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
  373. package/dist/esm/rtk-avatar_24.entry.js +2557 -0
  374. package/dist/esm/rtk-breakout-room-manager_3.entry.js +391 -0
  375. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +974 -0
  376. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  377. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  378. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  379. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  380. package/dist/{components/p-c9a7cf06.js → esm/rtk-channel-creator.entry.js} +12 -64
  381. package/dist/esm/rtk-channel-details.entry.js +45 -0
  382. package/dist/{components/p-0c11d195.js → esm/rtk-channel-header.entry.js} +9 -78
  383. package/dist/esm/rtk-channel-selector-ui.entry.js +6 -6
  384. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  385. package/dist/esm/rtk-chat-message.entry.js +114 -0
  386. package/dist/{components/p-0e07ea51.js → esm/rtk-chat-messages-ui.entry.js} +14 -122
  387. package/dist/esm/rtk-chat-search-results.entry.js +53 -0
  388. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  389. package/dist/esm/rtk-chat-toggle.entry.js +3 -3
  390. package/dist/esm/rtk-clock.entry.js +5 -5
  391. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  392. package/dist/esm/rtk-controlbar.entry.js +3 -3
  393. package/dist/esm/rtk-debugger-audio_4.entry.js +679 -0
  394. package/dist/esm/rtk-debugger-toggle.entry.js +3 -3
  395. package/dist/{components/p-3042f998.js → esm/rtk-dialog-manager.entry.js} +10 -179
  396. package/dist/esm/rtk-dialog.entry.js +89 -0
  397. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  398. package/dist/esm/rtk-file-dropzone.entry.js +3 -3
  399. package/dist/esm/rtk-file-message_3.entry.js +142 -0
  400. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  401. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  402. package/dist/esm/rtk-grid.entry.js +2 -2
  403. package/dist/esm/rtk-header.entry.js +3 -3
  404. package/dist/esm/rtk-idle-screen.entry.js +3 -3
  405. package/dist/esm/rtk-image-viewer.entry.js +5 -5
  406. package/dist/esm/rtk-information-tooltip.entry.js +3 -3
  407. package/dist/esm/rtk-leave-button.entry.js +3 -3
  408. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  409. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  410. package/dist/esm/rtk-logo.entry.js +73 -0
  411. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  412. package/dist/esm/rtk-message-list-view.entry.js +6 -6
  413. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  414. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  415. package/dist/esm/rtk-more-toggle.entry.js +4 -4
  416. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  417. package/dist/esm/rtk-name-tag.entry.js +3 -3
  418. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  419. package/dist/esm/rtk-notification.entry.js +67 -0
  420. package/dist/{components/p-7a336667.js → esm/rtk-notifications.entry.js} +13 -60
  421. package/dist/esm/rtk-participant-count.entry.js +2 -2
  422. package/dist/esm/rtk-participant-setup.entry.js +4 -4
  423. package/dist/esm/rtk-participant_2.entry.js +18 -18
  424. package/dist/esm/rtk-participants-audio.entry.js +3 -3
  425. package/dist/esm/rtk-participants-stage-list_4.entry.js +3 -3
  426. package/dist/esm/rtk-participants-toggle.entry.js +3 -3
  427. package/dist/esm/rtk-participants.entry.js +3 -3
  428. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  429. package/dist/esm/rtk-plugin-main_2.entry.js +3 -3
  430. package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
  431. package/dist/esm/rtk-plugins_2.entry.js +6 -6
  432. package/dist/esm/rtk-poll_2.entry.js +6 -6
  433. package/dist/esm/rtk-polls-toggle.entry.js +3 -3
  434. package/dist/esm/rtk-recording-indicator.entry.js +3 -3
  435. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  436. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  437. package/dist/esm/rtk-screenshare-view.entry.js +7 -7
  438. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  439. package/dist/esm/rtk-settings-toggle.entry.js +3 -3
  440. package/dist/esm/rtk-settings.entry.js +2 -2
  441. package/dist/esm/rtk-setup-screen.entry.js +3 -3
  442. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  443. package/dist/esm/rtk-sidebar.entry.js +4 -4
  444. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  445. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  446. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  447. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  448. package/dist/esm/rtk-stage.entry.js +3 -3
  449. package/dist/esm/rtk-transcript.entry.js +3 -3
  450. package/dist/esm/rtk-transcripts.entry.js +2 -2
  451. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  452. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  453. package/dist/esm/{sidebar-76cae1f0.js → sidebar-030fff49.js} +1 -1
  454. package/dist/esm/{string-5e8dab07.js → string-068ce30a.js} +1 -1
  455. package/dist/esm/{ui-store-2965ff1a.js → ui-store-9e486e1b.js} +1 -1
  456. package/dist/realtimekit-ui/index.esm.js +1 -1
  457. package/dist/realtimekit-ui/{p-ff19ee1e.entry.js → p-0689d68b.entry.js} +1 -1
  458. package/dist/realtimekit-ui/{p-2318c3af.js → p-084b6f30.js} +1 -1
  459. package/dist/realtimekit-ui/{p-e6f1e6aa.entry.js → p-09869644.entry.js} +1 -1
  460. package/dist/realtimekit-ui/{p-22313959.entry.js → p-0b8c47d9.entry.js} +1 -1
  461. package/dist/realtimekit-ui/{p-b6c83f82.entry.js → p-11c964cf.entry.js} +1 -1
  462. package/dist/realtimekit-ui/{p-2857144e.js → p-12e4cb4a.js} +1 -1
  463. package/dist/realtimekit-ui/{p-9ba26c9f.entry.js → p-1666857d.entry.js} +1 -1
  464. package/dist/realtimekit-ui/{p-7f896d33.entry.js → p-1bf58a84.entry.js} +1 -1
  465. package/dist/realtimekit-ui/{p-2d6c5160.entry.js → p-2a0ec1c6.entry.js} +1 -1
  466. package/dist/realtimekit-ui/{p-404207e0.entry.js → p-2b373e53.entry.js} +1 -1
  467. package/dist/realtimekit-ui/p-2f641bfa.entry.js +1 -0
  468. package/dist/realtimekit-ui/p-2fc5ef84.entry.js +1 -0
  469. package/dist/realtimekit-ui/{p-9b6d809b.entry.js → p-31f58b98.entry.js} +1 -1
  470. package/dist/realtimekit-ui/p-33228f0a.entry.js +1 -0
  471. package/dist/realtimekit-ui/p-3369f405.entry.js +1 -0
  472. package/dist/realtimekit-ui/p-36c8dfa0.entry.js +1 -0
  473. package/dist/realtimekit-ui/p-382270d8.js +1 -0
  474. package/dist/realtimekit-ui/{p-ac1ff0f8.entry.js → p-385fddbd.entry.js} +1 -1
  475. package/dist/realtimekit-ui/{p-f1ab4672.entry.js → p-38aec474.entry.js} +1 -1
  476. package/dist/realtimekit-ui/p-38f4773b.entry.js +1 -0
  477. package/dist/realtimekit-ui/{p-368420fc.entry.js → p-3a325310.entry.js} +1 -1
  478. package/dist/realtimekit-ui/{p-83a8cd29.entry.js → p-3d0c4257.entry.js} +1 -1
  479. package/dist/realtimekit-ui/{p-6495f016.entry.js → p-3e02ec0b.entry.js} +1 -1
  480. package/dist/realtimekit-ui/p-3eefefa3.entry.js +1 -0
  481. package/dist/realtimekit-ui/p-40be18ee.js +1 -0
  482. package/dist/realtimekit-ui/{p-f5a3ccc0.entry.js → p-481549ac.entry.js} +1 -1
  483. package/dist/realtimekit-ui/{p-2aa2727b.entry.js → p-4eba1baa.entry.js} +1 -1
  484. package/dist/realtimekit-ui/p-4eee77b0.entry.js +1 -0
  485. package/dist/realtimekit-ui/{p-1185eec6.entry.js → p-50157a65.entry.js} +1 -1
  486. package/dist/realtimekit-ui/p-50e861f9.entry.js +1 -0
  487. package/dist/realtimekit-ui/{p-a7ba0456.entry.js → p-5383fe87.entry.js} +1 -1
  488. package/dist/realtimekit-ui/{p-2d09aeb4.entry.js → p-53ac3d30.entry.js} +1 -1
  489. package/dist/realtimekit-ui/{p-e32c13e0.entry.js → p-54a31e02.entry.js} +1 -1
  490. package/dist/realtimekit-ui/p-57277553.entry.js +1 -0
  491. package/dist/realtimekit-ui/{p-95ab3abe.entry.js → p-5a2d8313.entry.js} +1 -1
  492. package/dist/realtimekit-ui/p-5b2d97fc.js +1 -0
  493. package/dist/realtimekit-ui/p-60a29b69.entry.js +1 -0
  494. package/dist/realtimekit-ui/{p-62949a7d.entry.js → p-61a16ccf.entry.js} +1 -1
  495. package/dist/realtimekit-ui/{p-47d8e5c8.entry.js → p-61a53713.entry.js} +1 -1
  496. package/dist/realtimekit-ui/{p-77f71d40.entry.js → p-61d3f74f.entry.js} +1 -1
  497. package/dist/realtimekit-ui/{p-2dc496f0.entry.js → p-62e0a141.entry.js} +1 -1
  498. package/dist/realtimekit-ui/{p-dfa4a588.entry.js → p-639ab9ad.entry.js} +1 -1
  499. package/dist/realtimekit-ui/{p-0ab52f70.entry.js → p-643194e4.entry.js} +1 -1
  500. package/dist/realtimekit-ui/p-6a45f305.js +1 -0
  501. package/dist/realtimekit-ui/{p-e65d2f04.entry.js → p-6adb2de4.entry.js} +1 -1
  502. package/dist/realtimekit-ui/{p-efabd2ce.js → p-6f211c3e.js} +1 -1
  503. package/dist/realtimekit-ui/{p-c1d92065.entry.js → p-74e1b5a6.entry.js} +1 -1
  504. package/dist/realtimekit-ui/{p-a449b5cd.entry.js → p-7613857e.entry.js} +1 -1
  505. package/dist/realtimekit-ui/p-7786e9a7.entry.js +1 -0
  506. package/dist/realtimekit-ui/{p-5cb4f925.entry.js → p-77e04fb7.entry.js} +1 -1
  507. package/dist/realtimekit-ui/{p-1f328e83.entry.js → p-788f26c4.entry.js} +1 -1
  508. package/dist/realtimekit-ui/{p-53ffaa9f.entry.js → p-7a8ca3f2.entry.js} +1 -1
  509. package/dist/realtimekit-ui/{p-f5560043.entry.js → p-7b999408.entry.js} +1 -1
  510. package/dist/realtimekit-ui/p-7f76de48.entry.js +1 -0
  511. package/dist/realtimekit-ui/{p-2799d5b2.js → p-80c856cd.js} +1 -1
  512. package/dist/realtimekit-ui/{p-64aa0fae.entry.js → p-882d07c9.entry.js} +1 -1
  513. package/dist/realtimekit-ui/{p-7fab2c53.entry.js → p-8b189438.entry.js} +1 -1
  514. package/dist/realtimekit-ui/{p-81d1334c.entry.js → p-8b341608.entry.js} +1 -1
  515. package/dist/realtimekit-ui/{p-e24289b8.entry.js → p-8f512d69.entry.js} +1 -1
  516. package/dist/realtimekit-ui/{p-c6c86fd8.js → p-91ea043c.js} +1 -1
  517. package/dist/realtimekit-ui/{p-145caa6b.js → p-91fd286c.js} +1 -1
  518. package/dist/realtimekit-ui/p-930f0255.entry.js +1 -0
  519. package/dist/realtimekit-ui/p-93b84c22.js +1 -0
  520. package/dist/realtimekit-ui/{p-34350578.entry.js → p-941f159e.entry.js} +1 -1
  521. package/dist/realtimekit-ui/{p-f3998c17.entry.js → p-949b2b6a.entry.js} +1 -1
  522. package/dist/realtimekit-ui/{p-3144bec3.entry.js → p-951a7b06.entry.js} +1 -1
  523. package/dist/realtimekit-ui/{p-616f3a25.entry.js → p-95f05e26.entry.js} +1 -1
  524. package/dist/realtimekit-ui/{p-db9dd8ea.entry.js → p-98ee3341.entry.js} +1 -1
  525. package/dist/realtimekit-ui/{p-7fbca8d1.entry.js → p-9ad2c746.entry.js} +1 -1
  526. package/dist/realtimekit-ui/p-9c1f42dd.entry.js +1 -0
  527. package/dist/realtimekit-ui/{p-6334ca51.entry.js → p-9cbf286a.entry.js} +1 -1
  528. package/dist/realtimekit-ui/{p-560fc162.entry.js → p-a1203856.entry.js} +1 -1
  529. package/dist/realtimekit-ui/{p-0b93c12d.entry.js → p-a319e81f.entry.js} +1 -1
  530. package/dist/realtimekit-ui/p-a4e223e8.entry.js +1 -0
  531. package/dist/realtimekit-ui/{p-e7a89e24.entry.js → p-a9126c12.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-a55863be.entry.js → p-a9dd63ef.entry.js} +1 -1
  533. package/dist/realtimekit-ui/p-aa70de39.entry.js +1 -0
  534. package/dist/realtimekit-ui/{p-ead8970b.entry.js → p-ae7319ac.entry.js} +1 -1
  535. package/dist/realtimekit-ui/p-b387e9a1.entry.js +1 -0
  536. package/dist/realtimekit-ui/p-b564d931.entry.js +1 -0
  537. package/dist/realtimekit-ui/{p-f16345d6.entry.js → p-ba51770e.entry.js} +1 -1
  538. package/dist/realtimekit-ui/{p-0979ba30.entry.js → p-c1b81873.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-543dcdc1.entry.js → p-c5c965b8.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-b2b8b421.entry.js → p-c638f666.entry.js} +1 -1
  541. package/dist/realtimekit-ui/p-c7711712.entry.js +1 -0
  542. package/dist/realtimekit-ui/{p-bfd7cd5a.entry.js → p-d0384d90.entry.js} +1 -1
  543. package/dist/realtimekit-ui/p-d7f16f24.entry.js +1 -0
  544. package/dist/realtimekit-ui/p-d81c0263.entry.js +1 -0
  545. package/dist/realtimekit-ui/{p-35b87831.entry.js → p-d9cad67f.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-0266e82b.entry.js → p-de75d48d.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-4b62d6f9.entry.js → p-e62593a2.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-fa2ee341.js → p-e720b51e.js} +1 -1
  549. package/dist/realtimekit-ui/{p-9ac89beb.entry.js → p-e7b83772.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-8046e263.js → p-e87928f7.js} +1 -1
  551. package/dist/realtimekit-ui/{p-39d0ad4d.entry.js → p-e925ca8a.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-e0dd5f79.entry.js → p-f0f6c282.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-51a8a9e5.entry.js → p-f40a55e3.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-47e89714.entry.js → p-f5aa8af7.entry.js} +1 -1
  555. package/dist/realtimekit-ui/p-f645b8bb.entry.js +1 -0
  556. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  557. package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +3 -0
  558. package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +1 -0
  559. package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +1 -0
  560. package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +3 -0
  561. package/dist/types/components/rtk-chat/rtk-chat.d.ts +0 -9
  562. package/dist/types/components/rtk-chat-message/rtk-chat-message.d.ts +1 -0
  563. package/dist/types/components/rtk-chat-messages-ui/rtk-chat-messages-ui.d.ts +3 -0
  564. package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +1 -0
  565. package/dist/types/components/rtk-file-message/rtk-file-message.d.ts +1 -0
  566. package/dist/types/components/rtk-image-message/rtk-image-message.d.ts +1 -0
  567. package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +2 -0
  568. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +5 -0
  569. package/dist/types/components/rtk-text-message/rtk-text-message.d.ts +1 -0
  570. package/dist/types/components.d.ts +104 -0
  571. package/dist/types/types/props.d.ts +1 -0
  572. package/dist/types/utils/chat.d.ts +1 -1
  573. package/package.json +1 -1
  574. package/dist/cjs/rtk-avatar_54.cjs.entry.js +0 -6417
  575. package/dist/components/p-6a47e2ee.js +0 -148
  576. package/dist/esm/rtk-avatar_54.entry.js +0 -6360
  577. package/dist/realtimekit-ui/p-00b5bdeb.entry.js +0 -1
  578. package/dist/realtimekit-ui/p-173457a5.js +0 -1
  579. package/dist/realtimekit-ui/p-2d729cec.entry.js +0 -1
  580. package/dist/realtimekit-ui/p-3263d76d.entry.js +0 -1
  581. package/dist/realtimekit-ui/p-34c90f1c.entry.js +0 -1
  582. package/dist/realtimekit-ui/p-47314bc7.js +0 -1
  583. package/dist/realtimekit-ui/p-4ea418c9.js +0 -1
  584. package/dist/realtimekit-ui/p-55f181be.entry.js +0 -1
  585. package/dist/realtimekit-ui/p-bad807c1.entry.js +0 -1
  586. package/dist/realtimekit-ui/p-bfed80f3.entry.js +0 -1
  587. package/dist/realtimekit-ui/p-d7a5c237.entry.js +0 -1
@@ -0,0 +1,71 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index$1 = require('./index-05554ce6.js');
6
+ const uiStore = require('./ui-store-1cb28da8.js');
7
+ const index = require('./index-8d07e125.js');
8
+ const TextMessage = require('./TextMessage-7bb3e1fd.js');
9
+ require('./chat-717e517d.js');
10
+
11
+ const rtkNotificationCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{pointer-events:none;display:block;height:var(--rtk-space-10, 40px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));animation:show 0.4s ease;transition:0.4s;z-index:100}.ctr{box-sizing:border-box;display:inline-flex;height:100%;min-width:var(--rtk-space-40, 160px);align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-2, 8px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto}img{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);border-radius:9999px}img.loaded{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}.message{margin-right:var(--rtk-space-2, 8px);max-width:var(--rtk-space-72, 288px) !important;font-size:14px !important;overflow:hidden !important;display:-webkit-box !important;-webkit-box-orient:vertical !important;-webkit-line-clamp:2 !important}.message p{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-1, 4px)}.message blockquote{display:none}rtk-icon.icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}button.dismiss{display:flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);align-items:center;justify-content:center;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));outline-width:1px;outline-color:rgb(var(--rtk-colors-text-1000, 255 255 255))}button.dismiss:hover{cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}button.dismiss:focus-visible{outline-style:solid}button.dismiss{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.dismiss rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}rtk-button{border-radius:var(--rtk-border-radius-sm, 4px)}.right{margin-left:auto;display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateX(-120px)}100%{opacity:1;transform:translateX(0px)}}@keyframes exit{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-120px)}}:host([size='sm']){font-size:14px}";
12
+ const RtkNotificationStyle0 = rtkNotificationCss;
13
+
14
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
17
+ r = Reflect.decorate(decorators, target, key, desc);
18
+ else
19
+ for (var i = decorators.length - 1; i >= 0; i--)
20
+ if (d = decorators[i])
21
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ const RtkNotification = class {
25
+ constructor(hostRef) {
26
+ index$1.registerInstance(this, hostRef);
27
+ this.dismiss = index$1.createEvent(this, "rtkNotificationDismiss", 7);
28
+ /** Icon pack */
29
+ this.iconPack = uiStore.defaultIconPack;
30
+ /** Language */
31
+ this.t = uiStore.useLanguage();
32
+ this.imageState = 'loading';
33
+ }
34
+ connectedCallback() {
35
+ this.notificationChanged(this.notification);
36
+ }
37
+ pausedChanged(paused) {
38
+ if (paused) {
39
+ clearTimeout(this.timeout);
40
+ }
41
+ else {
42
+ this.notificationChanged(this.notification);
43
+ }
44
+ }
45
+ notificationChanged(notification) {
46
+ if (notification != null && typeof notification.duration === 'number' && !this.paused) {
47
+ this.timeout = window.setTimeout(() => {
48
+ this.dismiss.emit(notification.id);
49
+ }, notification.duration);
50
+ }
51
+ }
52
+ render() {
53
+ var _a;
54
+ return (index$1.h(index$1.Host, { key: '8c854ce9c1fbed1d0078e37ddfe731bd09f60217' }, index$1.h("div", { key: 'e5110dfac0052c151ad0f0c702fd2183639c160c', class: "ctr" }, this.notification.icon != null && (index$1.h("rtk-icon", { key: '34c84299f20115d1576606443fd28035d604a282', class: "icon", icon: this.notification.icon, variant: (_a = this.notification.iconVariant) !== null && _a !== void 0 ? _a : 'primary' })), this.notification.image != null &&
55
+ this.notification.icon == null &&
56
+ this.imageState !== 'errored' && (index$1.h("img", { key: 'f8c7d6de5740e5e94be8b0bec312b44157c9999a', src: this.notification.image, class: { loaded: this.imageState === 'loaded' }, onLoad: () => (this.imageState = 'loaded'), onError: () => (this.imageState = 'errored') })), index$1.h("p", { key: 'cf22e099409eda906611ad43bb92192512c3b3f0', class: "message" }, index$1.h(TextMessage.TextMessageView, { key: '87e52e92ffa9d86b4ddc6a1c61b5bbb6a9f6c1d1', message: this.notification.message })), index$1.h("div", { key: '06195e55729bbc11fc48b188df7ee5f8a7b111d6', class: "right" }, this.notification.button != null && (index$1.h("rtk-button", { key: 'b1a8e8f05587fa9eaf66e9d8932dee6d4fc57e67', size: "sm", variant: this.notification.button.variant, onClick: () => this.notification.button.onClick() }, this.notification.button.text)), index$1.h("button", { key: '102260442e93358e972d72dbcfe2cc90f68523d9', onClick: () => this.dismiss.emit(this.notification.id), class: "dismiss" }, index$1.h("rtk-icon", { key: 'f585bf6153a7c34528bd46af850db3f8511805ff', "aria-label": this.t('dismiss'), icon: this.iconPack.dismiss }))))));
57
+ }
58
+ static get watchers() { return {
59
+ "paused": ["pausedChanged"],
60
+ "notification": ["notificationChanged"]
61
+ }; }
62
+ };
63
+ __decorate([
64
+ index.SyncWithStore()
65
+ ], RtkNotification.prototype, "iconPack", void 0);
66
+ __decorate([
67
+ index.SyncWithStore()
68
+ ], RtkNotification.prototype, "t", void 0);
69
+ RtkNotification.style = RtkNotificationStyle0;
70
+
71
+ exports.rtk_notification = RtkNotification;
@@ -0,0 +1,588 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index$1 = require('./index-05554ce6.js');
6
+ const notification = require('./notification-567fe887.js');
7
+ const string = require('./string-9bce3253.js');
8
+ const uiStore = require('./ui-store-1cb28da8.js');
9
+ const chat = require('./chat-717e517d.js');
10
+ const index = require('./index-8d07e125.js');
11
+
12
+ const DEFAULT_NOTIFICATION_DURATION = 2000;
13
+ const DEFAULT_NOTIFICATION_CONFIG = Object.freeze({
14
+ notifications: {
15
+ participant_joined: true,
16
+ participant_left: true,
17
+ participant_joined_waitlist: true,
18
+ chat: true,
19
+ polls: true,
20
+ webinar: true,
21
+ tab_sync: true,
22
+ recording_started: true,
23
+ recording_stopped: true,
24
+ },
25
+ notification_sounds: {
26
+ participant_joined: true,
27
+ participant_left: true,
28
+ chat: true,
29
+ polls: true,
30
+ webinar: true,
31
+ participant_joined_waitlist: true,
32
+ },
33
+ notification_duration: {
34
+ participant_joined: 2100,
35
+ participant_left: 2100,
36
+ participant_joined_waitlist: 4000,
37
+ chat: DEFAULT_NOTIFICATION_DURATION,
38
+ polls: DEFAULT_NOTIFICATION_DURATION,
39
+ webinar: DEFAULT_NOTIFICATION_DURATION,
40
+ tab_sync: DEFAULT_NOTIFICATION_DURATION,
41
+ recording_started: DEFAULT_NOTIFICATION_DURATION,
42
+ recording_stopped: DEFAULT_NOTIFICATION_DURATION,
43
+ },
44
+ participant_joined_sound_notification_limit: 10,
45
+ participant_chat_message_sound_notification_limit: 10,
46
+ });
47
+
48
+ const rtkNotificationsCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}";
49
+ const RtkNotificationsStyle0 = rtkNotificationsCss;
50
+
51
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
52
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
53
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
54
+ r = Reflect.decorate(decorators, target, key, desc);
55
+ else
56
+ for (var i = decorators.length - 1; i >= 0; i--)
57
+ if (d = decorators[i])
58
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+ };
61
+ function parseConfig(config) {
62
+ const permissions = Object.assign({}, DEFAULT_NOTIFICATION_CONFIG);
63
+ if (config == null)
64
+ return permissions;
65
+ Object.assign(permissions.notification_sounds, config.notification_sounds);
66
+ Object.assign(permissions.notifications, config.notifications);
67
+ Object.assign(permissions.notification_duration, config.notification_duration);
68
+ permissions.participant_chat_message_sound_notification_limit =
69
+ config.participant_chat_message_sound_notification_limit;
70
+ permissions.participant_joined_sound_notification_limit =
71
+ config.participant_joined_sound_notification_limit;
72
+ return permissions;
73
+ }
74
+ function getEnabledSounds(sounds) {
75
+ return Object.keys(sounds).filter((key) => sounds[key]);
76
+ }
77
+ const RtkNotifications = class {
78
+ constructor(hostRef) {
79
+ index$1.registerInstance(this, hostRef);
80
+ this.permissions = DEFAULT_NOTIFICATION_CONFIG;
81
+ this.enabledSounds = getEnabledSounds(DEFAULT_NOTIFICATION_CONFIG.notification_sounds);
82
+ /** Config object */
83
+ this.config = uiStore.createDefaultConfig();
84
+ /** Language */
85
+ this.t = uiStore.useLanguage();
86
+ /** Icon pack */
87
+ this.iconPack = uiStore.defaultIconPack;
88
+ this.notifications = [];
89
+ this.addStagePeersListeners = (meeting) => {
90
+ meeting.participants.joined.addListener('participantJoined', this.participantJoinedListener);
91
+ meeting.participants.joined.addListener('participantLeft', this.participantLeftListener);
92
+ };
93
+ this.removeStagePeersListeners = (meeting) => {
94
+ meeting.participants.joined.removeListener('participantJoined', this.participantJoinedListener);
95
+ meeting.participants.joined.removeListener('participantLeft', this.participantLeftListener);
96
+ };
97
+ this.onNotification = (e) => {
98
+ this.add(e.detail);
99
+ const playSound = e.detail.playSound;
100
+ if (playSound != undefined)
101
+ this.audio.play(playSound);
102
+ };
103
+ this.onRecordingUpdate = (recordingState) => {
104
+ var _a, _b;
105
+ if (recordingState === 'RECORDING' &&
106
+ this.permissions.notifications.recording_started !== false) {
107
+ this.add({
108
+ id: 'recording-started',
109
+ icon: this.iconPack.recording,
110
+ message: this.t('recording.started'),
111
+ duration: (_a = this.permissions.notification_duration.recording_started) !== null && _a !== void 0 ? _a : DEFAULT_NOTIFICATION_DURATION,
112
+ });
113
+ }
114
+ else if (recordingState === 'STOPPING' &&
115
+ this.permissions.notifications.recording_stopped !== false) {
116
+ this.add({
117
+ id: 'recording-stopped',
118
+ icon: this.iconPack.stop_recording,
119
+ message: this.t('recording.stopped'),
120
+ duration: (_b = this.permissions.notification_duration.recording_stopped) !== null && _b !== void 0 ? _b : DEFAULT_NOTIFICATION_DURATION,
121
+ });
122
+ }
123
+ };
124
+ this.paused = false;
125
+ }
126
+ connectedCallback() {
127
+ if (typeof document !== 'undefined') {
128
+ document === null || document === void 0 ? void 0 : document.addEventListener('rtkNotification', this.onNotification);
129
+ }
130
+ this.meetingChanged(this.meeting);
131
+ this.configChanged(this.config);
132
+ this.statesChanged(this.states);
133
+ }
134
+ clearListeners(meeting) {
135
+ var _a, _b, _c, _d, _e, _f, _g, _h;
136
+ const isLivestream = meeting.meta.viewType === 'LIVESTREAM';
137
+ if ((isLivestream && ((_a = meeting.stage) === null || _a === void 0 ? void 0 : _a.status) === 'ON_STAGE') || !isLivestream) {
138
+ this.removeStagePeersListeners(meeting);
139
+ }
140
+ this.chatUpdateListener && ((_b = meeting.chat) === null || _b === void 0 ? void 0 : _b.removeListener('chatUpdate', this.chatUpdateListener));
141
+ this.pollUpdateListener &&
142
+ ((_c = meeting.polls) === null || _c === void 0 ? void 0 : _c.removeListener('pollsUpdate', this.pollUpdateListener));
143
+ meeting.meta.removeListener('socketConnectionUpdate', this.socketConnectionUpdateListener);
144
+ this.stageRequestAccepted &&
145
+ ((_d = meeting.stage) === null || _d === void 0 ? void 0 : _d.removeListener('stageRequestApproved', this.stageRequestAccepted));
146
+ this.stageRequestRejected &&
147
+ ((_e = meeting.stage) === null || _e === void 0 ? void 0 : _e.removeListener('stageRequestRejected', this.stageRequestRejected));
148
+ this.newStageRequests &&
149
+ ((_f = meeting.stage) === null || _f === void 0 ? void 0 : _f.removeListener('newStageRequest', this.newStageRequests));
150
+ this.stageStatusUpdateListener &&
151
+ ((_g = meeting.stage) === null || _g === void 0 ? void 0 : _g.removeListener('stageStatusUpdate', this.stageStatusUpdateListener));
152
+ (_h = meeting.recording) === null || _h === void 0 ? void 0 : _h.removeListener('recordingUpdate', this.onRecordingUpdate);
153
+ clearTimeout(this.disconnectTimeout);
154
+ meeting.self.removeListener('deviceUpdate', this.deviceUpdateListener);
155
+ }
156
+ disconnectedCallback() {
157
+ var _a;
158
+ if (typeof document !== 'undefined') {
159
+ document === null || document === void 0 ? void 0 : document.removeEventListener('rtkNotification', this.onNotification);
160
+ }
161
+ if (!this.meeting)
162
+ return;
163
+ this.clearListeners(this.meeting);
164
+ this.waitlistedParticipantJoinedListener &&
165
+ this.meeting.participants.waitlisted.removeListener('participantJoined', this.waitlistedParticipantJoinedListener);
166
+ this.waitlistedParticipantLeftListener &&
167
+ this.meeting.participants.waitlisted.removeListener('participantLeft', this.waitlistedParticipantLeftListener);
168
+ this.activeTabUpdateListener &&
169
+ ((_a = this.meeting.meta) === null || _a === void 0 ? void 0 : _a.removeListener('activeTabUpdate', this.activeTabUpdateListener));
170
+ this.peerStageStatusListener &&
171
+ this.meeting.participants.joined.removeListener('stageStatusUpdate', this.peerStageStatusListener);
172
+ }
173
+ meetingChanged(meeting, oldMeeting) {
174
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
175
+ clearTimeout(this.disconnectTimeout);
176
+ if (oldMeeting)
177
+ this.clearListeners(oldMeeting);
178
+ if (!meeting)
179
+ return;
180
+ const isLivestream = meeting.meta.viewType === 'LIVESTREAM';
181
+ this.audio = new notification.RTKNotificationsAudio(meeting);
182
+ const { notifications, notification_duration, notification_sounds } = this.permissions;
183
+ this.participantJoinedListener = (participant) => {
184
+ if (notifications.participant_joined) {
185
+ this.add({
186
+ id: `${participant.id}-joined`,
187
+ message: `${string.formatName(participant.name)} ${this.t('notifications.joined')}`,
188
+ image: participant.picture,
189
+ duration: notification_duration.participant_joined,
190
+ });
191
+ }
192
+ if (notification_sounds.participant_joined && this.canPlayParticipantJoinedSound()) {
193
+ this.audio.play('joined');
194
+ }
195
+ };
196
+ this.participantLeftListener = (participant) => {
197
+ const { socketState: { state }, } = this.meeting.meta;
198
+ if (notifications.participant_left && state !== 'connected') {
199
+ this.add({
200
+ id: `${participant.id}-left`,
201
+ message: `${string.formatName(participant.name)} ${this.t('notifications.left')}`,
202
+ image: participant.picture,
203
+ duration: notification_duration.participant_left,
204
+ });
205
+ }
206
+ if (notification_sounds.participant_left && this.canPlayParticipantJoinedSound()) {
207
+ this.audio.play('left');
208
+ }
209
+ };
210
+ this.waitlistedParticipantJoinedListener = (participant) => {
211
+ if (!this.canAcceptWaitingRequests())
212
+ return;
213
+ const id = `${participant.id}-joined-waitlist`;
214
+ this.add({
215
+ id,
216
+ message: `${string.formatName(participant.name)} ${this.t('notifications.requesting_to_join_meeting')}`,
217
+ image: participant.picture,
218
+ duration: notification_duration.participant_joined_waitlist,
219
+ button: {
220
+ text: this.t('notifications.accept'),
221
+ variant: 'primary',
222
+ onClick: async () => {
223
+ await this.meeting.participants.acceptWaitingRoomRequest(participant.id);
224
+ this.remove(id);
225
+ },
226
+ },
227
+ });
228
+ if (notification_sounds.participant_joined_waitlist && this.canPlayParticipantJoinedSound()) {
229
+ this.audio.play('message');
230
+ }
231
+ };
232
+ this.waitlistedParticipantLeftListener = (participant) => {
233
+ this.remove(`${participant.id}-joined-waitlist`);
234
+ };
235
+ this.chatUpdateListener = ({ message }) => {
236
+ const parsedMessage = chat.parseMessageForTarget(message);
237
+ if (parsedMessage != null) {
238
+ if (parsedMessage.userId === meeting.self.userId) {
239
+ return;
240
+ }
241
+ if (parsedMessage.type === 'text') {
242
+ if (notifications.chat) {
243
+ this.add({
244
+ id: `message-${Math.random().toString(36)}`,
245
+ icon: this.iconPack.chat,
246
+ message: `${parsedMessage.displayName}: ${parsedMessage.message}`,
247
+ duration: notification_duration.chat,
248
+ });
249
+ }
250
+ if (notification_sounds.chat && this.canPlayChatSound()) {
251
+ this.audio.play('message');
252
+ }
253
+ }
254
+ }
255
+ };
256
+ this.pollUpdateListener = ({ polls, newPoll }) => {
257
+ if (newPoll === false)
258
+ return;
259
+ if (notifications.polls &&
260
+ this.meeting.self.userId !== polls[polls.length - 1].createdByUserId) {
261
+ this.add({
262
+ id: `poll-${Math.random().toString(36)}`,
263
+ icon: this.iconPack.poll,
264
+ message: `${this.t('notifications.new_poll_created_by')} ${polls[polls.length - 1].createdBy}`,
265
+ duration: notification_duration.polls,
266
+ });
267
+ }
268
+ if (notification_sounds.polls &&
269
+ this.meeting.self.userId !== polls[polls.length - 1].createdByUserId &&
270
+ this.canPlayChatSound()) {
271
+ this.audio.play('message');
272
+ }
273
+ };
274
+ this.deviceUpdateListener = ({ device, preview }) => {
275
+ if (preview)
276
+ return;
277
+ if (device.kind === 'audiooutput') {
278
+ this.audio.setDevice(device.deviceId);
279
+ this.remove(`speaker-switched`);
280
+ this.add({
281
+ id: `speaker-switched`,
282
+ message: `${this.t('notifications.connected_to')} ${device.label}`,
283
+ icon: this.iconPack.speaker,
284
+ duration: 5000,
285
+ });
286
+ }
287
+ if (device.kind === 'videoinput') {
288
+ this.remove(`camera-switched`);
289
+ this.add({
290
+ id: `camera-switched`,
291
+ message: `${this.t('notifications.connected_to')} ${device.label}`,
292
+ icon: this.meeting.self.videoEnabled ? this.iconPack.video_on : this.iconPack.video_off,
293
+ iconVariant: this.meeting.self.videoEnabled ? 'primary' : 'danger',
294
+ duration: 5000,
295
+ });
296
+ }
297
+ if (device.kind === 'audioinput') {
298
+ this.remove(`mic-switched`);
299
+ this.add({
300
+ id: `mic-switched`,
301
+ message: `${this.t('notifications.connected_to')} ${device.label}`,
302
+ icon: this.meeting.self.audioEnabled ? this.iconPack.mic_on : this.iconPack.mic_off,
303
+ iconVariant: this.meeting.self.audioEnabled ? 'primary' : 'danger',
304
+ duration: 5000,
305
+ });
306
+ }
307
+ };
308
+ this.socketConnectionUpdateListener = ({ state, reconnectionAttempt, reconnected }) => {
309
+ switch (state) {
310
+ case 'connected':
311
+ this.remove('socket');
312
+ if (reconnected)
313
+ this.add({
314
+ id: `socket`,
315
+ icon: this.iconPack.wifi,
316
+ message: this.t('network.restored'),
317
+ duration: 3000,
318
+ });
319
+ break;
320
+ case 'disconnected':
321
+ this.remove('socket');
322
+ this.add({
323
+ id: 'socket',
324
+ icon: this.iconPack.disconnected,
325
+ message: this.t('network.reconnecting'),
326
+ });
327
+ break;
328
+ case 'reconnecting':
329
+ if (reconnectionAttempt >= 6) {
330
+ this.remove('socket');
331
+ this.add({
332
+ id: 'socket',
333
+ icon: this.iconPack.disconnected,
334
+ message: this.t('network.disconnected'),
335
+ button: {
336
+ text: this.t('end'),
337
+ variant: 'danger',
338
+ onClick: () => { var _a; return (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leaveRoom(); },
339
+ },
340
+ });
341
+ }
342
+ else if (reconnectionAttempt >= 4) {
343
+ this.remove('socket');
344
+ this.add({
345
+ id: 'socket',
346
+ icon: this.iconPack.disconnected,
347
+ message: this.t('network.delay_extended'),
348
+ });
349
+ }
350
+ break;
351
+ case 'failed':
352
+ this.remove('socket');
353
+ this.add({
354
+ id: 'socket',
355
+ icon: this.iconPack.disconnected,
356
+ message: this.t('network.leaving'),
357
+ button: {
358
+ text: this.t('end'),
359
+ variant: 'danger',
360
+ onClick: () => { var _a; return (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leaveRoom(); },
361
+ },
362
+ });
363
+ break;
364
+ }
365
+ };
366
+ this.activeTabUpdateListener = (activeTab) => {
367
+ if (!notifications.tab_sync)
368
+ return;
369
+ switch (activeTab.type) {
370
+ case 'plugin':
371
+ const activePlugin = meeting.plugins.active
372
+ .toArray()
373
+ .find((plugin) => plugin.id == activeTab.id);
374
+ if (activePlugin != undefined) {
375
+ this.add({
376
+ id: 'activeTab',
377
+ message: `${this.t('notifications.plugin_switched_to')} ${activePlugin.name}`,
378
+ duration: notification_duration.participant_joined,
379
+ });
380
+ }
381
+ break;
382
+ case 'screenshare':
383
+ const screenShareParticipant = meeting.participants.joined
384
+ .toArray()
385
+ .filter((participant) => participant.screenShareEnabled)
386
+ .find((participant) => participant.id == activeTab.id);
387
+ if (screenShareParticipant != undefined) {
388
+ this.add({
389
+ id: 'spotlight',
390
+ message: `Now watching ${screenShareParticipant.name}'s screen`,
391
+ duration: notification_duration.webinar,
392
+ });
393
+ }
394
+ break;
395
+ }
396
+ };
397
+ this.peerStageStatusListener = (participant) => {
398
+ if (participant.stageStatus === 'REQUESTED_TO_JOIN_STAGE') {
399
+ this.add({
400
+ id: `stage-request-${participant.id}`,
401
+ message: `${participant.name} ${this.t('notifications.requested_to_join_stage')}`,
402
+ duration: notification_duration.webinar,
403
+ button: {
404
+ text: this.t('notifications.accept'),
405
+ variant: 'primary',
406
+ onClick: async () => {
407
+ await this.meeting.stage.grantAccess([participant.userId]);
408
+ this.remove(`stage-request-${participant.id}`);
409
+ },
410
+ },
411
+ });
412
+ if (notification_sounds.webinar) {
413
+ this.audio.play('joined');
414
+ }
415
+ }
416
+ if (participant.stageStatus === 'ON_STAGE') {
417
+ this.add({
418
+ id: `stage-joined-${participant.id}`,
419
+ message: `${participant.name} ${this.t('notifications.joined_stage')}`,
420
+ duration: notification_duration.webinar,
421
+ });
422
+ if (notification_sounds.webinar) {
423
+ this.audio.play('joined');
424
+ }
425
+ }
426
+ };
427
+ this.stageRequestAccepted = () => {
428
+ this.add({
429
+ id: 'stage-request-accepted',
430
+ message: this.t('notifications.request_to_join_accepted'),
431
+ duration: 3000,
432
+ });
433
+ };
434
+ this.stageRequestRejected = () => {
435
+ this.add({
436
+ id: 'stage-request-rejected',
437
+ message: this.t('notifications.request_to_join_rejected'),
438
+ duration: 3000,
439
+ });
440
+ };
441
+ this.newStageRequests = ({ count }) => {
442
+ this.add({
443
+ id: 'new-stage-request',
444
+ message: `You have ${count < 0 ? 'new stage' : `${count} pending`} request${count === 1 ? '' : 's'}`,
445
+ duration: 3000,
446
+ });
447
+ };
448
+ this.stageStatusUpdateListener = (status) => {
449
+ if (status === 'ON_STAGE')
450
+ this.addStagePeersListeners(meeting);
451
+ else
452
+ this.removeStagePeersListeners(meeting);
453
+ };
454
+ !uiStore.showLivestream(meeting) && ((_a = meeting.chat) === null || _a === void 0 ? void 0 : _a.addListener('chatUpdate', this.chatUpdateListener));
455
+ // temp fix for viewType mismatch with CHAT
456
+ if (((_b = meeting.self.config.viewType) === null || _b === void 0 ? void 0 : _b.toString()) === 'CHAT') {
457
+ return;
458
+ }
459
+ // all non Chat viewtype code from here
460
+ const currentDevices = meeting.self.getCurrentDevices();
461
+ if (currentDevices.speaker != null) {
462
+ this.audio.setDevice(currentDevices.speaker.deviceId);
463
+ }
464
+ if (isLivestream)
465
+ (_c = meeting.stage) === null || _c === void 0 ? void 0 : _c.on('stageStatusUpdate', this.stageStatusUpdateListener);
466
+ else
467
+ this.addStagePeersListeners(meeting);
468
+ if (this.canAcceptWaitingRequests()) {
469
+ meeting.participants.waitlisted.addListener('participantJoined', this.waitlistedParticipantJoinedListener);
470
+ meeting.participants.waitlisted.addListener('participantLeft', this.waitlistedParticipantLeftListener);
471
+ }
472
+ (_d = meeting.polls) === null || _d === void 0 ? void 0 : _d.addListener('pollsUpdate', this.pollUpdateListener);
473
+ meeting.self.addListener('deviceUpdate', this.deviceUpdateListener);
474
+ meeting.meta.addListener('socketConnectionUpdate', this.socketConnectionUpdateListener);
475
+ (_e = meeting.meta) === null || _e === void 0 ? void 0 : _e.addListener('activeTabUpdate', this.activeTabUpdateListener);
476
+ (_f = meeting.recording) === null || _f === void 0 ? void 0 : _f.addListener('recordingUpdate', this.onRecordingUpdate);
477
+ (_g = meeting.stage) === null || _g === void 0 ? void 0 : _g.addListener('stageRequestApproved', this.stageRequestAccepted);
478
+ (_h = meeting.stage) === null || _h === void 0 ? void 0 : _h.addListener('stageRequestRejected', this.stageRequestRejected);
479
+ if (meeting.self.permissions.stageEnabled && meeting.self.permissions.acceptStageRequests) {
480
+ (_j = meeting.stage) === null || _j === void 0 ? void 0 : _j.addListener('newStageRequest', this.newStageRequests);
481
+ }
482
+ }
483
+ configChanged(config) {
484
+ if (config != null) {
485
+ if ((config === null || config === void 0 ? void 0 : config.config) != null) {
486
+ this.permissions = parseConfig(config.config);
487
+ this.enabledSounds = getEnabledSounds(this.permissions.notification_sounds);
488
+ }
489
+ }
490
+ }
491
+ statesChanged(states) {
492
+ var _a;
493
+ if (states != null) {
494
+ const notificationSoundsEnabled = !((_a = states === null || states === void 0 ? void 0 : states.prefs) === null || _a === void 0 ? void 0 : _a.muteNotificationSounds);
495
+ // toggle only the notification sounds values which were enabled in the first place
496
+ for (const permission of this.enabledSounds) {
497
+ if (permission in this.permissions.notification_sounds) {
498
+ this.permissions.notification_sounds[permission] = notificationSoundsEnabled;
499
+ }
500
+ }
501
+ }
502
+ }
503
+ apiErrorListener({ detail }) {
504
+ const { trace, message } = detail;
505
+ this.add({
506
+ id: trace,
507
+ message,
508
+ duration: DEFAULT_NOTIFICATION_DURATION,
509
+ icon: this.iconPack.warning,
510
+ });
511
+ }
512
+ sendNotificationListener({ detail }) {
513
+ const { trace, message } = detail;
514
+ this.add({
515
+ id: trace,
516
+ message,
517
+ duration: DEFAULT_NOTIFICATION_DURATION,
518
+ });
519
+ }
520
+ add(notification) {
521
+ // show notifications only if tab is in focus and a maximum of 5 at a time
522
+ if (document.visibilityState === 'visible' && this.notifications.length < 5) {
523
+ // adds new notification to start of array so they appear at the bottom
524
+ this.notifications = [...this.notifications, notification];
525
+ }
526
+ }
527
+ remove(id) {
528
+ this.notifications = this.notifications.filter((notification) => notification.id !== id);
529
+ }
530
+ handleDismiss(e) {
531
+ e.stopPropagation();
532
+ const id = e.detail;
533
+ const el = this.host.shadowRoot.querySelector(`[data-id="${id}"]`);
534
+ // exit animation
535
+ el === null || el === void 0 ? void 0 : el.classList.add('exit');
536
+ setTimeout(() => {
537
+ index$1.writeTask(() => {
538
+ this.remove(id);
539
+ });
540
+ }, 400);
541
+ }
542
+ canPlayParticipantJoinedSound() {
543
+ return (this.permissions.participant_joined_sound_notification_limit == undefined ||
544
+ this.permissions.participant_joined_sound_notification_limit <= 0 ||
545
+ this.meeting.participants.count <=
546
+ this.permissions.participant_joined_sound_notification_limit);
547
+ }
548
+ canPlayChatSound() {
549
+ return (this.permissions.participant_chat_message_sound_notification_limit == undefined ||
550
+ this.permissions.participant_chat_message_sound_notification_limit <= 0 ||
551
+ this.meeting.participants.count <=
552
+ this.permissions.participant_chat_message_sound_notification_limit);
553
+ }
554
+ canAcceptWaitingRequests() {
555
+ return (this.permissions.notifications.participant_joined_waitlist &&
556
+ this.meeting.self.permissions.acceptWaitingRequests);
557
+ }
558
+ render() {
559
+ if (!this.meeting) {
560
+ return;
561
+ }
562
+ return (index$1.h(index$1.Host, null, index$1.h("div", { onMouseEnter: () => (this.paused = true), onFocusin: () => (this.paused = true), onMouseLeave: () => (this.paused = false), onFocusout: () => (this.paused = false) }, this.notifications.map((notification) => (index$1.h("rtk-notification", { size: this.size, key: notification.id, "data-id": notification.id, notification: notification, onRtkNotificationDismiss: (e) => this.handleDismiss(e), iconPack: this.iconPack, paused: this.paused, t: this.t }))))));
563
+ }
564
+ get host() { return index$1.getElement(this); }
565
+ static get watchers() { return {
566
+ "meeting": ["meetingChanged"],
567
+ "config": ["configChanged"],
568
+ "states": ["statesChanged"]
569
+ }; }
570
+ };
571
+ __decorate([
572
+ index.SyncWithStore()
573
+ ], RtkNotifications.prototype, "meeting", void 0);
574
+ __decorate([
575
+ index.SyncWithStore()
576
+ ], RtkNotifications.prototype, "states", void 0);
577
+ __decorate([
578
+ index.SyncWithStore()
579
+ ], RtkNotifications.prototype, "config", void 0);
580
+ __decorate([
581
+ index.SyncWithStore()
582
+ ], RtkNotifications.prototype, "t", void 0);
583
+ __decorate([
584
+ index.SyncWithStore()
585
+ ], RtkNotifications.prototype, "iconPack", void 0);
586
+ RtkNotifications.style = RtkNotificationsStyle0;
587
+
588
+ exports.rtk_notifications = RtkNotifications;