@cloudflare/realtimekit-ui 1.2.1-staging.4 → 1.2.1-staging.6

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 (515) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-e4aa2ae5.js → TextMessage-ca569f12.js} +1 -1
  3. package/dist/cjs/{chat-c11dcc22.js → chat-a1c8f378.js} +1 -1
  4. package/dist/cjs/{config-0a5170cb.js → config-8ce93a9c.js} +2 -2
  5. package/dist/cjs/{debounce-166c1a63.js → debounce-43f12da4.js} +1 -1
  6. package/dist/cjs/{floating-ui.dom.esm-705e65f3.js → floating-ui.dom.esm-9d940028.js} +142 -130
  7. package/dist/cjs/{index-c77d9e9c.js → index-3f8e5441.js} +1 -1
  8. package/dist/cjs/index.cjs.js +4 -4
  9. package/dist/cjs/{merge-76bc078c.js → merge-ff059743.js} +1 -1
  10. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  11. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-avatar_26.cjs.entry.js +9 -9
  17. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +7 -11
  19. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  24. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +6 -10
  27. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  28. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +3 -3
  29. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  39. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-grid.cjs.entry.js +7 -3
  42. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +87 -14
  48. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  52. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  59. package/dist/cjs/rtk-notifications.cjs.entry.js +5 -5
  60. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-participant_2.cjs.entry.js +8 -8
  63. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +3 -3
  66. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  67. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +3 -3
  70. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
  72. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-setup-screen.cjs.entry.js +3 -3
  80. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-sidebar.cjs.entry.js +3 -3
  82. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-ui-provider.cjs.entry.js +3 -3
  90. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  91. package/dist/cjs/{sidebar-5aab4432.js → sidebar-0166350b.js} +1 -1
  92. package/dist/cjs/{ui-store-4387207b.js → ui-store-583d205a.js} +1 -5
  93. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +4 -8
  94. package/dist/collection/components/rtk-grid/rtk-grid.js +5 -1
  95. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +5 -9
  96. package/dist/collection/components/rtk-meeting/rtk-meeting.js +2 -2
  97. package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
  98. package/dist/collection/components/rtk-participant/rtk-participant.js +4 -4
  99. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  100. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  101. package/dist/collection/utils/breakout-rooms.js +1 -5
  102. package/dist/components/index.js +5 -5
  103. package/dist/components/{p-9ed64f3a.js → p-0031a3c0.js} +3 -3
  104. package/dist/components/{p-af14bbaa.js → p-00e98940.js} +3 -3
  105. package/dist/components/{p-66af89b3.js → p-02d63986.js} +2 -2
  106. package/dist/components/{p-54a5a9d9.js → p-02f091dd.js} +2 -2
  107. package/dist/components/{p-cd1c31ca.js → p-0304f83a.js} +2 -2
  108. package/dist/components/{p-da8b7f0a.js → p-06bfb00c.js} +5 -5
  109. package/dist/components/{p-71d09e9f.js → p-070aa695.js} +1 -1
  110. package/dist/components/{p-41ea5359.js → p-0a836b64.js} +2 -2
  111. package/dist/components/{p-490f7547.js → p-0c8d2918.js} +11 -11
  112. package/dist/components/{p-0f559b0c.js → p-0da52a33.js} +3 -3
  113. package/dist/components/{p-9432ec0c.js → p-0e5b6daf.js} +3 -3
  114. package/dist/components/{p-3acb4ec0.js → p-10552fa5.js} +7 -7
  115. package/dist/components/{p-935ee413.js → p-13a05c55.js} +2 -2
  116. package/dist/components/{p-19575460.js → p-165dddf4.js} +2 -2
  117. package/dist/components/{p-0edd6df3.js → p-1804e307.js} +2 -2
  118. package/dist/components/{p-3cde4dd0.js → p-1a6308ec.js} +3 -3
  119. package/dist/components/{p-bd3f941d.js → p-20612910.js} +2 -2
  120. package/dist/components/{p-23337f79.js → p-21453136.js} +2 -2
  121. package/dist/components/{p-263b72fd.js → p-241583c3.js} +3 -3
  122. package/dist/components/{p-35585fc1.js → p-27d6399a.js} +1 -1
  123. package/dist/components/{p-75088feb.js → p-2e897160.js} +4 -4
  124. package/dist/components/{p-c0dc1eee.js → p-32b624f9.js} +2 -2
  125. package/dist/components/{p-bb6f1440.js → p-344db48b.js} +3 -3
  126. package/dist/components/{p-fdfee0ac.js → p-3e49e36a.js} +2 -2
  127. package/dist/components/{p-fc96ecd7.js → p-3ff755e5.js} +3 -3
  128. package/dist/components/{p-184d0c8b.js → p-42aa9cd9.js} +5 -5
  129. package/dist/components/{p-8e61f2e4.js → p-4594b213.js} +2 -2
  130. package/dist/components/{p-83b0039d.js → p-465af231.js} +9 -9
  131. package/dist/components/{p-a70c7550.js → p-477d076c.js} +2 -2
  132. package/dist/components/{p-6a1384e5.js → p-49619802.js} +5 -5
  133. package/dist/components/{p-1b4de4ce.js → p-4a34e1d0.js} +6 -6
  134. package/dist/components/{p-f51f5f56.js → p-4c3d522b.js} +2 -2
  135. package/dist/components/{p-0743c681.js → p-4f889007.js} +2 -2
  136. package/dist/components/{p-5b6b7538.js → p-550ddac7.js} +2 -2
  137. package/dist/components/{p-43834118.js → p-5644d937.js} +2 -2
  138. package/dist/components/{p-7b72c962.js → p-5b3a7f00.js} +1 -5
  139. package/dist/components/{p-5c5d9287.js → p-5ba840d9.js} +2 -2
  140. package/dist/components/{p-9311d3c4.js → p-5ba9c3d1.js} +3 -3
  141. package/dist/components/{p-a30a5b6f.js → p-5d232d53.js} +11 -11
  142. package/dist/components/{p-8b292ee2.js → p-60d401f8.js} +3 -3
  143. package/dist/components/{p-011fcf99.js → p-670b184f.js} +2 -2
  144. package/dist/components/{p-d3a1de01.js → p-6ccdf3c3.js} +2 -2
  145. package/dist/components/{p-f7c1ac0b.js → p-6fa03a7f.js} +2 -2
  146. package/dist/components/{p-3bcae7b5.js → p-7071c775.js} +2 -2
  147. package/dist/components/{p-15518cbf.js → p-73901fd8.js} +2 -2
  148. package/dist/components/{p-46cd757c.js → p-7c6602b9.js} +2 -2
  149. package/dist/components/{p-df752a44.js → p-7dd3acf5.js} +3 -3
  150. package/dist/components/{p-a9e36fd3.js → p-7e34f516.js} +1 -1
  151. package/dist/components/{p-8b25e9f4.js → p-8564f93d.js} +3 -3
  152. package/dist/components/{p-6df21eeb.js → p-88e8bca6.js} +2 -2
  153. package/dist/components/{p-abd8953a.js → p-9033d188.js} +5 -5
  154. package/dist/components/{p-eb12d1dc.js → p-9068e892.js} +2 -2
  155. package/dist/components/{p-ff635cba.js → p-a2de6dfc.js} +2 -2
  156. package/dist/components/{p-464893b1.js → p-a3bf84d7.js} +3 -3
  157. package/dist/components/{p-7e20f300.js → p-a642ad81.js} +22 -22
  158. package/dist/components/{p-813075c7.js → p-a9e7fa80.js} +6 -6
  159. package/dist/components/{p-b5ffdb09.js → p-adf6dfcc.js} +2 -2
  160. package/dist/components/{p-769bb885.js → p-b1a93be0.js} +142 -130
  161. package/dist/components/{p-08bd9a6a.js → p-b220448d.js} +2 -2
  162. package/dist/components/{p-eb9d693b.js → p-b350d09f.js} +2 -2
  163. package/dist/components/{p-d663061f.js → p-b3a98a90.js} +5 -5
  164. package/dist/components/{p-02308402.js → p-bc5c1265.js} +10 -10
  165. package/dist/components/{p-53e4f280.js → p-bd5c9c89.js} +2 -2
  166. package/dist/components/{p-98c3a8f8.js → p-bece0226.js} +1 -1
  167. package/dist/components/{p-729a1651.js → p-c0931990.js} +2 -2
  168. package/dist/components/{p-cc7495c3.js → p-c1ab8045.js} +2 -2
  169. package/dist/components/{p-5bc7ecc8.js → p-c232dfce.js} +4 -4
  170. package/dist/components/{p-83632dd0.js → p-c5ef686a.js} +5 -5
  171. package/dist/components/{p-55ac4ece.js → p-c6700b7b.js} +2 -2
  172. package/dist/components/{p-5cdfe14a.js → p-cb6f4d4b.js} +2 -2
  173. package/dist/components/{p-7eb94f88.js → p-cc8af588.js} +7 -7
  174. package/dist/components/{p-b7c1a17e.js → p-d0abd8bc.js} +5 -5
  175. package/dist/components/{p-6e5022d2.js → p-d414fa54.js} +7 -11
  176. package/dist/components/{p-b12f8b81.js → p-d4c852fe.js} +90 -17
  177. package/dist/components/{p-53b7ce6b.js → p-d6a71424.js} +5 -5
  178. package/dist/components/{p-5492bc23.js → p-e1f78de7.js} +2 -2
  179. package/dist/components/{p-523c9e18.js → p-e6245534.js} +2 -2
  180. package/dist/components/{p-6da3aab3.js → p-ecb802ad.js} +2 -2
  181. package/dist/components/{p-be6f601b.js → p-f4a5c8ff.js} +5 -5
  182. package/dist/components/{p-2b1416aa.js → p-f74bd10e.js} +8 -8
  183. package/dist/components/rtk-ai-toggle.js +4 -4
  184. package/dist/components/rtk-ai-transcriptions.js +1 -1
  185. package/dist/components/rtk-ai.js +1 -1
  186. package/dist/components/rtk-audio-grid.js +2 -2
  187. package/dist/components/rtk-audio-tile.js +5 -5
  188. package/dist/components/rtk-audio-visualizer.js +1 -1
  189. package/dist/components/rtk-avatar.js +1 -1
  190. package/dist/components/rtk-breakout-room-manager.js +1 -1
  191. package/dist/components/rtk-breakout-room-participants.js +1 -1
  192. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  193. package/dist/components/rtk-breakout-rooms-toggle.js +4 -4
  194. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  195. package/dist/components/rtk-camera-selector.js +1 -1
  196. package/dist/components/rtk-camera-toggle.js +5 -5
  197. package/dist/components/rtk-caption-toggle.js +4 -4
  198. package/dist/components/rtk-chat-composer-ui.js +6 -6
  199. package/dist/components/rtk-chat-composer-view.js +1 -1
  200. package/dist/components/rtk-chat-header.js +1 -1
  201. package/dist/components/rtk-chat-message.js +1 -1
  202. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  203. package/dist/components/rtk-chat-messages-ui.js +11 -11
  204. package/dist/components/rtk-chat-search-results.js +16 -20
  205. package/dist/components/rtk-chat-selector-ui.js +2 -2
  206. package/dist/components/rtk-chat-selector.js +1 -1
  207. package/dist/components/rtk-chat-toggle.js +5 -5
  208. package/dist/components/rtk-chat.js +1 -1
  209. package/dist/components/rtk-clock.js +2 -2
  210. package/dist/components/rtk-confirmation-modal.js +1 -1
  211. package/dist/components/rtk-controlbar-button.js +1 -1
  212. package/dist/components/rtk-controlbar.js +2 -2
  213. package/dist/components/rtk-counter.js +1 -1
  214. package/dist/components/rtk-debugger-audio.js +1 -1
  215. package/dist/components/rtk-debugger-screenshare.js +1 -1
  216. package/dist/components/rtk-debugger-system.js +1 -1
  217. package/dist/components/rtk-debugger-toggle.js +4 -4
  218. package/dist/components/rtk-debugger-video.js +1 -1
  219. package/dist/components/rtk-debugger.js +1 -1
  220. package/dist/components/rtk-dialog-manager.js +22 -22
  221. package/dist/components/rtk-dialog.js +1 -1
  222. package/dist/components/rtk-draft-attachment-view.js +1 -1
  223. package/dist/components/rtk-emoji-picker-button.js +1 -1
  224. package/dist/components/rtk-emoji-picker.js +1 -1
  225. package/dist/components/rtk-ended-screen.js +3 -3
  226. package/dist/components/rtk-file-dropzone.js +2 -2
  227. package/dist/components/rtk-file-message-view.js +1 -1
  228. package/dist/components/rtk-file-message.js +1 -1
  229. package/dist/components/rtk-file-picker-button.js +1 -1
  230. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  231. package/dist/components/rtk-grid-pagination.js +3 -3
  232. package/dist/components/rtk-grid.js +13 -9
  233. package/dist/components/rtk-header.js +2 -2
  234. package/dist/components/rtk-idle-screen.js +4 -4
  235. package/dist/components/rtk-image-message-view.js +1 -1
  236. package/dist/components/rtk-image-message.js +1 -1
  237. package/dist/components/rtk-image-viewer.js +2 -2
  238. package/dist/components/rtk-information-tooltip.js +2 -2
  239. package/dist/components/rtk-join-stage.js +1 -1
  240. package/dist/components/rtk-leave-button.js +4 -4
  241. package/dist/components/rtk-leave-meeting.js +1 -1
  242. package/dist/components/rtk-livestream-indicator.js +1 -1
  243. package/dist/components/rtk-livestream-player.js +1 -1
  244. package/dist/components/rtk-livestream-toggle.js +4 -4
  245. package/dist/components/rtk-logo.js +1 -1
  246. package/dist/components/rtk-meeting-title.js +3 -3
  247. package/dist/components/rtk-meeting.js +26 -26
  248. package/dist/components/rtk-menu-item.js +1 -1
  249. package/dist/components/rtk-menu-list.js +1 -1
  250. package/dist/components/rtk-menu.js +1 -1
  251. package/dist/components/rtk-message-list-view.js +3 -3
  252. package/dist/components/rtk-message-view.js +1 -1
  253. package/dist/components/rtk-mic-toggle.js +5 -5
  254. package/dist/components/rtk-microphone-selector.js +1 -1
  255. package/dist/components/rtk-mixed-grid.js +6 -6
  256. package/dist/components/rtk-more-toggle.js +4 -4
  257. package/dist/components/rtk-mute-all-button.js +5 -5
  258. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  259. package/dist/components/rtk-name-tag.js +1 -1
  260. package/dist/components/rtk-network-indicator.js +2 -2
  261. package/dist/components/rtk-notification.js +1 -1
  262. package/dist/components/rtk-notifications.js +5 -5
  263. package/dist/components/rtk-overlay-modal.js +1 -1
  264. package/dist/components/rtk-paginated-list.js +1 -1
  265. package/dist/components/rtk-participant-count.js +2 -2
  266. package/dist/components/rtk-participant-setup.js +2 -2
  267. package/dist/components/rtk-participant-tile.js +1 -1
  268. package/dist/components/rtk-participant.js +1 -1
  269. package/dist/components/rtk-participants-audio.js +3 -3
  270. package/dist/components/rtk-participants-stage-list.js +1 -1
  271. package/dist/components/rtk-participants-stage-queue.js +1 -1
  272. package/dist/components/rtk-participants-toggle.js +5 -5
  273. package/dist/components/rtk-participants-viewer-list.js +1 -1
  274. package/dist/components/rtk-participants-waiting-list.js +1 -1
  275. package/dist/components/rtk-participants.js +13 -13
  276. package/dist/components/rtk-permissions-message.js +1 -1
  277. package/dist/components/rtk-pinned-message-selector.js +1 -1
  278. package/dist/components/rtk-pip-toggle.js +4 -4
  279. package/dist/components/rtk-plugin-main.js +1 -1
  280. package/dist/components/rtk-plugins-toggle.js +5 -5
  281. package/dist/components/rtk-plugins.js +1 -1
  282. package/dist/components/rtk-poll-form.js +1 -1
  283. package/dist/components/rtk-poll.js +1 -1
  284. package/dist/components/rtk-polls-toggle.js +5 -5
  285. package/dist/components/rtk-polls.js +1 -1
  286. package/dist/components/rtk-recording-indicator.js +2 -2
  287. package/dist/components/rtk-recording-toggle.js +4 -4
  288. package/dist/components/rtk-screen-share-toggle.js +5 -5
  289. package/dist/components/rtk-screenshare-view.js +3 -3
  290. package/dist/components/rtk-settings-audio.js +1 -1
  291. package/dist/components/rtk-settings-toggle.js +4 -4
  292. package/dist/components/rtk-settings-video.js +1 -1
  293. package/dist/components/rtk-settings.js +10 -10
  294. package/dist/components/rtk-setup-screen.js +7 -7
  295. package/dist/components/rtk-sidebar-ui.js +1 -1
  296. package/dist/components/rtk-sidebar.js +11 -11
  297. package/dist/components/rtk-simple-grid.js +2 -2
  298. package/dist/components/rtk-speaker-selector.js +1 -1
  299. package/dist/components/rtk-spinner.js +1 -1
  300. package/dist/components/rtk-spotlight-grid.js +2 -2
  301. package/dist/components/rtk-spotlight-indicator.js +1 -1
  302. package/dist/components/rtk-stage-toggle.js +5 -5
  303. package/dist/components/rtk-stage.js +2 -2
  304. package/dist/components/rtk-switch.js +1 -1
  305. package/dist/components/rtk-tab-bar.js +1 -1
  306. package/dist/components/rtk-text-composer-view.js +1 -1
  307. package/dist/components/rtk-text-message.js +1 -1
  308. package/dist/components/rtk-tooltip.js +1 -1
  309. package/dist/components/rtk-transcript.js +1 -1
  310. package/dist/components/rtk-transcripts.js +3 -3
  311. package/dist/components/rtk-ui-provider.js +3 -3
  312. package/dist/components/rtk-viewer-count.js +1 -1
  313. package/dist/components/rtk-waiting-screen.js +3 -3
  314. package/dist/docs/docs-components.json +1 -1
  315. package/dist/esm/{TextMessage-31a1055f.js → TextMessage-2acfc44b.js} +1 -1
  316. package/dist/esm/{chat-e5f7c9a9.js → chat-269c61ba.js} +1 -1
  317. package/dist/esm/{config-3ee0b77d.js → config-4bdf983d.js} +2 -2
  318. package/dist/esm/{debounce-76bf7eef.js → debounce-296a3316.js} +1 -1
  319. package/dist/esm/{floating-ui.dom.esm-21c3d54e.js → floating-ui.dom.esm-78a1e61c.js} +142 -130
  320. package/dist/esm/{index-674e5834.js → index-dafb4b7f.js} +1 -1
  321. package/dist/esm/index.js +6 -6
  322. package/dist/esm/loader.js +252 -175
  323. package/dist/esm/{merge-bb3b8189.js → merge-86cf8b27.js} +1 -1
  324. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  325. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  326. package/dist/esm/rtk-ai_3.entry.js +2 -2
  327. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  328. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  329. package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
  330. package/dist/esm/rtk-avatar_26.entry.js +9 -9
  331. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  332. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +7 -11
  333. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  334. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  335. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  336. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  337. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  338. package/dist/esm/rtk-chat-message.entry.js +2 -2
  339. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  340. package/dist/esm/rtk-chat-search-results.entry.js +6 -10
  341. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  342. package/dist/esm/rtk-chat-toggle.entry.js +3 -3
  343. package/dist/esm/rtk-clock.entry.js +2 -2
  344. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  345. package/dist/esm/rtk-controlbar.entry.js +2 -2
  346. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  347. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  348. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  349. package/dist/esm/rtk-dialog.entry.js +2 -2
  350. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  351. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  352. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  353. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  354. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  355. package/dist/esm/rtk-grid.entry.js +7 -3
  356. package/dist/esm/rtk-header.entry.js +2 -2
  357. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  358. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  359. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  360. package/dist/esm/rtk-leave-button.entry.js +2 -2
  361. package/dist/esm/rtk-livestream-indicator_3.entry.js +87 -14
  362. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  363. package/dist/esm/rtk-logo.entry.js +2 -2
  364. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  365. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  366. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  367. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  368. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  369. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  370. package/dist/esm/rtk-name-tag.entry.js +2 -2
  371. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  372. package/dist/esm/rtk-notification.entry.js +4 -4
  373. package/dist/esm/rtk-notifications.entry.js +5 -5
  374. package/dist/esm/rtk-participant-count.entry.js +2 -2
  375. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  376. package/dist/esm/rtk-participant_2.entry.js +8 -8
  377. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  378. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  379. package/dist/esm/rtk-participants-toggle.entry.js +3 -3
  380. package/dist/esm/rtk-participants.entry.js +3 -3
  381. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  382. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  383. package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
  384. package/dist/esm/rtk-poll_2.entry.js +2 -2
  385. package/dist/esm/rtk-polls-toggle.entry.js +3 -3
  386. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  387. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  388. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  389. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  390. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  391. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  392. package/dist/esm/rtk-settings.entry.js +2 -2
  393. package/dist/esm/rtk-setup-screen.entry.js +3 -3
  394. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  395. package/dist/esm/rtk-sidebar.entry.js +3 -3
  396. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  397. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  398. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  399. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  400. package/dist/esm/rtk-stage.entry.js +2 -2
  401. package/dist/esm/rtk-transcript.entry.js +2 -2
  402. package/dist/esm/rtk-transcripts.entry.js +2 -2
  403. package/dist/esm/rtk-ui-provider.entry.js +3 -3
  404. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  405. package/dist/esm/{sidebar-b617fa34.js → sidebar-4b23298b.js} +1 -1
  406. package/dist/esm/{ui-store-8c88e8bd.js → ui-store-76bb0e8e.js} +1 -5
  407. package/dist/realtimekit-ui/index.esm.js +1 -1
  408. package/dist/realtimekit-ui/{p-b6afdb2b.entry.js → p-003a95fc.entry.js} +1 -1
  409. package/dist/realtimekit-ui/p-06f49c32.entry.js +1 -0
  410. package/dist/realtimekit-ui/{p-5340ca99.entry.js → p-0928d88d.entry.js} +1 -1
  411. package/dist/realtimekit-ui/p-0b892bb4.entry.js +1 -0
  412. package/dist/realtimekit-ui/{p-1881d92e.entry.js → p-0d674434.entry.js} +1 -1
  413. package/dist/realtimekit-ui/{p-b6604ddb.entry.js → p-0e11efb7.entry.js} +1 -1
  414. package/dist/realtimekit-ui/{p-e4e7a8da.js → p-0fa0e7d1.js} +1 -1
  415. package/dist/realtimekit-ui/{p-076e8873.entry.js → p-113467fc.entry.js} +1 -1
  416. package/dist/realtimekit-ui/{p-a27c59b3.entry.js → p-153cdff6.entry.js} +1 -1
  417. package/dist/realtimekit-ui/p-1eb9b441.entry.js +1 -0
  418. package/dist/realtimekit-ui/{p-eac158e1.entry.js → p-1f8208c4.entry.js} +1 -1
  419. package/dist/realtimekit-ui/{p-925ca884.entry.js → p-238e36c9.entry.js} +1 -1
  420. package/dist/realtimekit-ui/{p-85e5c7a8.entry.js → p-242afbdf.entry.js} +1 -1
  421. package/dist/realtimekit-ui/p-29097dbf.entry.js +1 -0
  422. package/dist/realtimekit-ui/{p-204ad2bb.entry.js → p-2af1d7f6.entry.js} +1 -1
  423. package/dist/realtimekit-ui/{p-221d161d.entry.js → p-2cb8e246.entry.js} +1 -1
  424. package/dist/realtimekit-ui/{p-4bd66d53.entry.js → p-2fac891e.entry.js} +1 -1
  425. package/dist/realtimekit-ui/{p-1fce947c.js → p-32915a9a.js} +1 -1
  426. package/dist/realtimekit-ui/{p-27f02ea3.entry.js → p-3390e8ab.entry.js} +1 -1
  427. package/dist/realtimekit-ui/{p-7f8cb2ac.entry.js → p-35a53de8.entry.js} +1 -1
  428. package/dist/realtimekit-ui/{p-ed5c4c4e.entry.js → p-35a5637a.entry.js} +1 -1
  429. package/dist/realtimekit-ui/{p-e39f23e1.entry.js → p-386d54ee.entry.js} +1 -1
  430. package/dist/realtimekit-ui/{p-52b9add3.entry.js → p-3b221671.entry.js} +1 -1
  431. package/dist/realtimekit-ui/p-412cdd31.entry.js +1 -0
  432. package/dist/realtimekit-ui/{p-96d27e12.entry.js → p-44832865.entry.js} +1 -1
  433. package/dist/realtimekit-ui/{p-56e9412d.entry.js → p-4490e4a5.entry.js} +1 -1
  434. package/dist/realtimekit-ui/{p-9b24930d.entry.js → p-44b0cd83.entry.js} +1 -1
  435. package/dist/realtimekit-ui/p-44ea537a.entry.js +1 -0
  436. package/dist/realtimekit-ui/{p-bfed2368.entry.js → p-48af2624.entry.js} +1 -1
  437. package/dist/realtimekit-ui/{p-e309dd38.entry.js → p-48d5f1f4.entry.js} +1 -1
  438. package/dist/realtimekit-ui/{p-7eda08df.entry.js → p-52a632bf.entry.js} +1 -1
  439. package/dist/realtimekit-ui/{p-4ffbbe73.entry.js → p-52e08862.entry.js} +1 -1
  440. package/dist/realtimekit-ui/{p-5c8df43e.js → p-52ff99d3.js} +1 -1
  441. package/dist/realtimekit-ui/p-560cea5a.js +1 -0
  442. package/dist/realtimekit-ui/{p-af99af7b.entry.js → p-5e408139.entry.js} +1 -1
  443. package/dist/realtimekit-ui/{p-d52eeb73.entry.js → p-62e9fbff.entry.js} +1 -1
  444. package/dist/realtimekit-ui/{p-c6642878.entry.js → p-63ee927b.entry.js} +1 -1
  445. package/dist/realtimekit-ui/{p-2536f6a6.entry.js → p-67ed9214.entry.js} +1 -1
  446. package/dist/realtimekit-ui/{p-cdb32b58.entry.js → p-6a609ccb.entry.js} +1 -1
  447. package/dist/realtimekit-ui/{p-ced9130e.entry.js → p-6f6376d7.entry.js} +1 -1
  448. package/dist/realtimekit-ui/{p-d0430abf.entry.js → p-722aa34d.entry.js} +1 -1
  449. package/dist/realtimekit-ui/{p-1f1f9055.entry.js → p-77bdd9b4.entry.js} +1 -1
  450. package/dist/realtimekit-ui/{p-53c0ddc5.js → p-792d3d16.js} +1 -1
  451. package/dist/realtimekit-ui/{p-258d2fc9.entry.js → p-7c4a22cd.entry.js} +1 -1
  452. package/dist/realtimekit-ui/{p-c2fabc46.entry.js → p-7d059801.entry.js} +1 -1
  453. package/dist/realtimekit-ui/p-8202a654.entry.js +1 -0
  454. package/dist/realtimekit-ui/{p-5a55f6ea.entry.js → p-84a52bdf.entry.js} +1 -1
  455. package/dist/realtimekit-ui/{p-b4b35ca3.entry.js → p-8865b8c8.entry.js} +1 -1
  456. package/dist/realtimekit-ui/{p-1a1ee2db.entry.js → p-8d6f2c1d.entry.js} +1 -1
  457. package/dist/realtimekit-ui/{p-0769d0b9.js → p-901c1d40.js} +1 -1
  458. package/dist/realtimekit-ui/{p-cddc7e9b.entry.js → p-9566f8ce.entry.js} +1 -1
  459. package/dist/realtimekit-ui/{p-52af43ec.entry.js → p-977fb594.entry.js} +1 -1
  460. package/dist/realtimekit-ui/p-9811c98c.js +1 -0
  461. package/dist/realtimekit-ui/{p-0937ddd1.entry.js → p-9a3880ea.entry.js} +1 -1
  462. package/dist/realtimekit-ui/{p-a070157b.entry.js → p-9a3d1fe3.entry.js} +1 -1
  463. package/dist/realtimekit-ui/{p-7ff232ee.entry.js → p-9baa1a27.entry.js} +1 -1
  464. package/dist/realtimekit-ui/p-9e211b0c.entry.js +1 -0
  465. package/dist/realtimekit-ui/{p-89805e9c.entry.js → p-9e4200f3.entry.js} +1 -1
  466. package/dist/realtimekit-ui/{p-ea127f94.entry.js → p-a1260195.entry.js} +1 -1
  467. package/dist/realtimekit-ui/{p-92057a00.entry.js → p-a1af8ff8.entry.js} +1 -1
  468. package/dist/realtimekit-ui/{p-4691f987.entry.js → p-a2367cc6.entry.js} +1 -1
  469. package/dist/realtimekit-ui/{p-93fe6cc7.entry.js → p-a6a139d0.entry.js} +1 -1
  470. package/dist/realtimekit-ui/{p-897ba0b8.entry.js → p-a74e0a97.entry.js} +1 -1
  471. package/dist/realtimekit-ui/{p-8ba34ca9.entry.js → p-a9441717.entry.js} +1 -1
  472. package/dist/realtimekit-ui/{p-1b41ba11.js → p-af705ed1.js} +1 -1
  473. package/dist/realtimekit-ui/{p-9d454c75.entry.js → p-b10872dc.entry.js} +1 -1
  474. package/dist/realtimekit-ui/p-b1a93be0.js +1 -0
  475. package/dist/realtimekit-ui/{p-cd52728a.entry.js → p-bbfa215e.entry.js} +1 -1
  476. package/dist/realtimekit-ui/{p-a67d2980.entry.js → p-bcfa5ae6.entry.js} +1 -1
  477. package/dist/realtimekit-ui/p-c31cc651.entry.js +1 -0
  478. package/dist/realtimekit-ui/{p-f1bba123.entry.js → p-c370864b.entry.js} +1 -1
  479. package/dist/realtimekit-ui/{p-c4426323.entry.js → p-c63ba546.entry.js} +1 -1
  480. package/dist/realtimekit-ui/{p-c252748f.entry.js → p-cdc266b8.entry.js} +1 -1
  481. package/dist/realtimekit-ui/{p-15cc7a83.entry.js → p-ce7a7178.entry.js} +1 -1
  482. package/dist/realtimekit-ui/p-d879ebe0.entry.js +1 -0
  483. package/dist/realtimekit-ui/{p-93a3d9ef.entry.js → p-d9a5d325.entry.js} +1 -1
  484. package/dist/realtimekit-ui/p-dc6a9973.entry.js +1 -0
  485. package/dist/realtimekit-ui/{p-52ef4fec.entry.js → p-e0957448.entry.js} +1 -1
  486. package/dist/realtimekit-ui/{p-0572737c.entry.js → p-e49b1288.entry.js} +1 -1
  487. package/dist/realtimekit-ui/{p-d3498d94.entry.js → p-e7ec420f.entry.js} +1 -1
  488. package/dist/realtimekit-ui/{p-15079b93.entry.js → p-e80dea09.entry.js} +1 -1
  489. package/dist/realtimekit-ui/{p-56860ab9.entry.js → p-eb9ebb93.entry.js} +1 -1
  490. package/dist/realtimekit-ui/{p-b39bcc95.entry.js → p-ebfa6492.entry.js} +1 -1
  491. package/dist/realtimekit-ui/{p-1430558a.entry.js → p-f10b9cc3.entry.js} +1 -1
  492. package/dist/realtimekit-ui/{p-da45cdc0.entry.js → p-f1684041.entry.js} +1 -1
  493. package/dist/realtimekit-ui/{p-731b75a2.entry.js → p-f20f9ec3.entry.js} +1 -1
  494. package/dist/realtimekit-ui/{p-b9417ac5.entry.js → p-f44b2e72.entry.js} +1 -1
  495. package/dist/realtimekit-ui/{p-6c73ea2e.entry.js → p-f4d6b673.entry.js} +1 -1
  496. package/dist/realtimekit-ui/p-ff29818e.entry.js +1 -0
  497. package/dist/realtimekit-ui/{p-4bb3bd4d.entry.js → p-fff385a0.entry.js} +1 -1
  498. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  499. package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +1 -0
  500. package/package.json +1 -1
  501. package/dist/realtimekit-ui/p-032bedbe.entry.js +0 -1
  502. package/dist/realtimekit-ui/p-0b7bda80.entry.js +0 -1
  503. package/dist/realtimekit-ui/p-3506c2ea.entry.js +0 -1
  504. package/dist/realtimekit-ui/p-3ac61086.entry.js +0 -1
  505. package/dist/realtimekit-ui/p-402c516a.entry.js +0 -1
  506. package/dist/realtimekit-ui/p-613dd40b.entry.js +0 -1
  507. package/dist/realtimekit-ui/p-769bb885.js +0 -1
  508. package/dist/realtimekit-ui/p-8709edc6.entry.js +0 -1
  509. package/dist/realtimekit-ui/p-91cea045.entry.js +0 -1
  510. package/dist/realtimekit-ui/p-95214bc5.entry.js +0 -1
  511. package/dist/realtimekit-ui/p-acd26490.entry.js +0 -1
  512. package/dist/realtimekit-ui/p-c3415f79.entry.js +0 -1
  513. package/dist/realtimekit-ui/p-de70cab0.entry.js +0 -1
  514. package/dist/realtimekit-ui/p-efad3c75.js +0 -1
  515. package/dist/realtimekit-ui/p-fbd7f684.js +0 -1
@@ -4234,8 +4234,7 @@ function splitCollection(collection, parts) {
4234
4234
  return result.filter((res) => res.length);
4235
4235
  }
4236
4236
  function participantIdentifier(participant) {
4237
- var _a;
4238
- return (_a = participant.customParticipantId) !== null && _a !== void 0 ? _a : participant.clientSpecificId;
4237
+ return participant.customParticipantId;
4239
4238
  }
4240
4239
  function getAllConnectedParticipants(meeting) {
4241
4240
  // TODO: remove this once we start getting display pics from socket
@@ -4257,9 +4256,6 @@ function getAllConnectedParticipants(meeting) {
4257
4256
  });
4258
4257
  }
4259
4258
  const canToggleBreakout = (meeting) => {
4260
- var _a;
4261
- if (!((_a = meeting === null || meeting === void 0 ? void 0 : meeting.connectedMeetings) === null || _a === void 0 ? void 0 : _a.supportsConnectedMeetings))
4262
- return false;
4263
4259
  const permissions = meeting.self.permissions.connectedMeetings;
4264
4260
  // for host - always show toggle
4265
4261
  if (permissions.canAlterConnectedMeetings)
@@ -10829,10 +10825,6 @@ const oppositeSideMap = {
10829
10825
  bottom: 'top',
10830
10826
  top: 'bottom'
10831
10827
  };
10832
- const oppositeAlignmentMap = {
10833
- start: 'end',
10834
- end: 'start'
10835
- };
10836
10828
  function clamp(start, value, end) {
10837
10829
  return max(start, min(value, end));
10838
10830
  }
@@ -10851,9 +10843,9 @@ function getOppositeAxis(axis) {
10851
10843
  function getAxisLength(axis) {
10852
10844
  return axis === 'y' ? 'height' : 'width';
10853
10845
  }
10854
- const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
10855
10846
  function getSideAxis(placement) {
10856
- return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
10847
+ const firstChar = placement[0];
10848
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
10857
10849
  }
10858
10850
  function getAlignmentAxis(placement) {
10859
10851
  return getOppositeAxis(getSideAxis(placement));
@@ -10876,7 +10868,7 @@ function getExpandedPlacements(placement) {
10876
10868
  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
10877
10869
  }
10878
10870
  function getOppositeAlignmentPlacement(placement) {
10879
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
10871
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
10880
10872
  }
10881
10873
  const lrPlacement = ['left', 'right'];
10882
10874
  const rlPlacement = ['right', 'left'];
@@ -10907,7 +10899,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
10907
10899
  return list;
10908
10900
  }
10909
10901
  function getOppositePlacement(placement) {
10910
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
10902
+ const side = getSide(placement);
10903
+ return oppositeSideMap[side] + placement.slice(side.length);
10911
10904
  }
10912
10905
  function expandPaddingObject(padding) {
10913
10906
  return {
@@ -11001,6 +10994,74 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
11001
10994
  return coords;
11002
10995
  }
11003
10996
 
10997
+ /**
10998
+ * Resolves with an object of overflow side offsets that determine how much the
10999
+ * element is overflowing a given clipping boundary on each side.
11000
+ * - positive = overflowing the boundary by that number of pixels
11001
+ * - negative = how many pixels left before it will overflow
11002
+ * - 0 = lies flush with the boundary
11003
+ * @see https://floating-ui.com/docs/detectOverflow
11004
+ */
11005
+ async function detectOverflow(state, options) {
11006
+ var _await$platform$isEle;
11007
+ if (options === void 0) {
11008
+ options = {};
11009
+ }
11010
+ const {
11011
+ x,
11012
+ y,
11013
+ platform,
11014
+ rects,
11015
+ elements,
11016
+ strategy
11017
+ } = state;
11018
+ const {
11019
+ boundary = 'clippingAncestors',
11020
+ rootBoundary = 'viewport',
11021
+ elementContext = 'floating',
11022
+ altBoundary = false,
11023
+ padding = 0
11024
+ } = evaluate(options, state);
11025
+ const paddingObject = getPaddingObject(padding);
11026
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
11027
+ const element = elements[altBoundary ? altContext : elementContext];
11028
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
11029
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
11030
+ boundary,
11031
+ rootBoundary,
11032
+ strategy
11033
+ }));
11034
+ const rect = elementContext === 'floating' ? {
11035
+ x,
11036
+ y,
11037
+ width: rects.floating.width,
11038
+ height: rects.floating.height
11039
+ } : rects.reference;
11040
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
11041
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
11042
+ x: 1,
11043
+ y: 1
11044
+ } : {
11045
+ x: 1,
11046
+ y: 1
11047
+ };
11048
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
11049
+ elements,
11050
+ rect,
11051
+ offsetParent,
11052
+ strategy
11053
+ }) : rect);
11054
+ return {
11055
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
11056
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
11057
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
11058
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
11059
+ };
11060
+ }
11061
+
11062
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
11063
+ const MAX_RESET_COUNT = 50;
11064
+
11004
11065
  /**
11005
11066
  * Computes the `x` and `y` coordinates that will place the floating element
11006
11067
  * next to a given reference element.
@@ -11015,7 +11076,10 @@ const computePosition$1 = async (reference, floating, config) => {
11015
11076
  middleware = [],
11016
11077
  platform
11017
11078
  } = config;
11018
- const validMiddleware = middleware.filter(Boolean);
11079
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
11080
+ ...platform,
11081
+ detectOverflow
11082
+ };
11019
11083
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
11020
11084
  let rects = await platform.getElementRects({
11021
11085
  reference,
@@ -11027,13 +11091,17 @@ const computePosition$1 = async (reference, floating, config) => {
11027
11091
  y
11028
11092
  } = computeCoordsFromPlacement(rects, placement, rtl);
11029
11093
  let statefulPlacement = placement;
11030
- let middlewareData = {};
11031
11094
  let resetCount = 0;
11032
- for (let i = 0; i < validMiddleware.length; i++) {
11095
+ const middlewareData = {};
11096
+ for (let i = 0; i < middleware.length; i++) {
11097
+ const currentMiddleware = middleware[i];
11098
+ if (!currentMiddleware) {
11099
+ continue;
11100
+ }
11033
11101
  const {
11034
11102
  name,
11035
11103
  fn
11036
- } = validMiddleware[i];
11104
+ } = currentMiddleware;
11037
11105
  const {
11038
11106
  x: nextX,
11039
11107
  y: nextY,
@@ -11047,7 +11115,7 @@ const computePosition$1 = async (reference, floating, config) => {
11047
11115
  strategy,
11048
11116
  middlewareData,
11049
11117
  rects,
11050
- platform,
11118
+ platform: platformWithDetectOverflow,
11051
11119
  elements: {
11052
11120
  reference,
11053
11121
  floating
@@ -11055,14 +11123,11 @@ const computePosition$1 = async (reference, floating, config) => {
11055
11123
  });
11056
11124
  x = nextX != null ? nextX : x;
11057
11125
  y = nextY != null ? nextY : y;
11058
- middlewareData = {
11059
- ...middlewareData,
11060
- [name]: {
11061
- ...middlewareData[name],
11062
- ...data
11063
- }
11126
+ middlewareData[name] = {
11127
+ ...middlewareData[name],
11128
+ ...data
11064
11129
  };
11065
- if (reset && resetCount <= 50) {
11130
+ if (reset && resetCount < MAX_RESET_COUNT) {
11066
11131
  resetCount++;
11067
11132
  if (typeof reset === 'object') {
11068
11133
  if (reset.placement) {
@@ -11092,71 +11157,6 @@ const computePosition$1 = async (reference, floating, config) => {
11092
11157
  };
11093
11158
  };
11094
11159
 
11095
- /**
11096
- * Resolves with an object of overflow side offsets that determine how much the
11097
- * element is overflowing a given clipping boundary on each side.
11098
- * - positive = overflowing the boundary by that number of pixels
11099
- * - negative = how many pixels left before it will overflow
11100
- * - 0 = lies flush with the boundary
11101
- * @see https://floating-ui.com/docs/detectOverflow
11102
- */
11103
- async function detectOverflow(state, options) {
11104
- var _await$platform$isEle;
11105
- if (options === void 0) {
11106
- options = {};
11107
- }
11108
- const {
11109
- x,
11110
- y,
11111
- platform,
11112
- rects,
11113
- elements,
11114
- strategy
11115
- } = state;
11116
- const {
11117
- boundary = 'clippingAncestors',
11118
- rootBoundary = 'viewport',
11119
- elementContext = 'floating',
11120
- altBoundary = false,
11121
- padding = 0
11122
- } = evaluate(options, state);
11123
- const paddingObject = getPaddingObject(padding);
11124
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
11125
- const element = elements[altBoundary ? altContext : elementContext];
11126
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
11127
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
11128
- boundary,
11129
- rootBoundary,
11130
- strategy
11131
- }));
11132
- const rect = elementContext === 'floating' ? {
11133
- x,
11134
- y,
11135
- width: rects.floating.width,
11136
- height: rects.floating.height
11137
- } : rects.reference;
11138
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
11139
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
11140
- x: 1,
11141
- y: 1
11142
- } : {
11143
- x: 1,
11144
- y: 1
11145
- };
11146
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
11147
- elements,
11148
- rect,
11149
- offsetParent,
11150
- strategy
11151
- }) : rect);
11152
- return {
11153
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
11154
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
11155
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
11156
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
11157
- };
11158
- }
11159
-
11160
11160
  /**
11161
11161
  * Provides data to position an inner element of the floating element so that it
11162
11162
  * appears centered to the reference element.
@@ -11278,7 +11278,7 @@ const autoPlacement$1 = function (options) {
11278
11278
  ...detectOverflowOptions
11279
11279
  } = evaluate(options, state);
11280
11280
  const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
11281
- const overflow = await detectOverflow(state, detectOverflowOptions);
11281
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
11282
11282
  const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
11283
11283
  const currentPlacement = placements$1[currentIndex];
11284
11284
  if (currentPlacement == null) {
@@ -11392,7 +11392,7 @@ const flip$1 = function (options) {
11392
11392
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
11393
11393
  }
11394
11394
  const placements = [initialPlacement, ...fallbackPlacements];
11395
- const overflow = await detectOverflow(state, detectOverflowOptions);
11395
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
11396
11396
  const overflows = [];
11397
11397
  let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
11398
11398
  if (checkMainAxis) {
@@ -11499,7 +11499,8 @@ const hide$1 = function (options) {
11499
11499
  options,
11500
11500
  async fn(state) {
11501
11501
  const {
11502
- rects
11502
+ rects,
11503
+ platform
11503
11504
  } = state;
11504
11505
  const {
11505
11506
  strategy = 'referenceHidden',
@@ -11508,7 +11509,7 @@ const hide$1 = function (options) {
11508
11509
  switch (strategy) {
11509
11510
  case 'referenceHidden':
11510
11511
  {
11511
- const overflow = await detectOverflow(state, {
11512
+ const overflow = await platform.detectOverflow(state, {
11512
11513
  ...detectOverflowOptions,
11513
11514
  elementContext: 'reference'
11514
11515
  });
@@ -11522,7 +11523,7 @@ const hide$1 = function (options) {
11522
11523
  }
11523
11524
  case 'escaped':
11524
11525
  {
11525
- const overflow = await detectOverflow(state, {
11526
+ const overflow = await platform.detectOverflow(state, {
11526
11527
  ...detectOverflowOptions,
11527
11528
  altBoundary: true
11528
11529
  });
@@ -11645,7 +11646,8 @@ const shift$1 = function (options) {
11645
11646
  const {
11646
11647
  x,
11647
11648
  y,
11648
- placement
11649
+ placement,
11650
+ platform
11649
11651
  } = state;
11650
11652
  const {
11651
11653
  mainAxis: checkMainAxis = true,
@@ -11668,7 +11670,7 @@ const shift$1 = function (options) {
11668
11670
  x,
11669
11671
  y
11670
11672
  };
11671
- const overflow = await detectOverflow(state, detectOverflowOptions);
11673
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
11672
11674
  const crossAxis = getSideAxis(getSide(placement));
11673
11675
  const mainAxis = getOppositeAxis(crossAxis);
11674
11676
  let mainAxisCoord = coords[mainAxis];
@@ -11751,7 +11753,6 @@ function isShadowRoot(value) {
11751
11753
  }
11752
11754
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
11753
11755
  }
11754
- const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
11755
11756
  function isOverflowElement(element) {
11756
11757
  const {
11757
11758
  overflow,
@@ -11759,32 +11760,35 @@ function isOverflowElement(element) {
11759
11760
  overflowY,
11760
11761
  display
11761
11762
  } = getComputedStyle$1(element);
11762
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
11763
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
11763
11764
  }
11764
- const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
11765
11765
  function isTableElement(element) {
11766
- return tableElements.has(getNodeName(element));
11766
+ return /^(table|td|th)$/.test(getNodeName(element));
11767
11767
  }
11768
- const topLayerSelectors = [':popover-open', ':modal'];
11769
11768
  function isTopLayer(element) {
11770
- return topLayerSelectors.some(selector => {
11771
- try {
11772
- return element.matches(selector);
11773
- } catch (_e) {
11774
- return false;
11769
+ try {
11770
+ if (element.matches(':popover-open')) {
11771
+ return true;
11775
11772
  }
11776
- });
11773
+ } catch (_e) {
11774
+ // no-op
11775
+ }
11776
+ try {
11777
+ return element.matches(':modal');
11778
+ } catch (_e) {
11779
+ return false;
11780
+ }
11777
11781
  }
11778
- const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
11779
- const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
11780
- const containValues = ['paint', 'layout', 'strict', 'content'];
11782
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
11783
+ const containRe = /paint|layout|strict|content/;
11784
+ const isNotNone = value => !!value && value !== 'none';
11785
+ let isWebKitValue;
11781
11786
  function isContainingBlock(elementOrCss) {
11782
- const webkit = isWebKit();
11783
11787
  const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
11784
11788
 
11785
11789
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
11786
11790
  // https://drafts.csswg.org/css-transforms-2/#individual-transforms
11787
- return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
11791
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
11788
11792
  }
11789
11793
  function getContainingBlock(element) {
11790
11794
  let currentNode = getParentNode(element);
@@ -11799,12 +11803,13 @@ function getContainingBlock(element) {
11799
11803
  return null;
11800
11804
  }
11801
11805
  function isWebKit() {
11802
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
11803
- return CSS.supports('-webkit-backdrop-filter', 'none');
11806
+ if (isWebKitValue == null) {
11807
+ isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
11808
+ }
11809
+ return isWebKitValue;
11804
11810
  }
11805
- const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
11806
11811
  function isLastTraversableNode(node) {
11807
- return lastTraversableNodeNames.has(getNodeName(node));
11812
+ return /^(html|body|#document)$/.test(getNodeName(node));
11808
11813
  }
11809
11814
  function getComputedStyle$1(element) {
11810
11815
  return getWindow(element).getComputedStyle(element);
@@ -11857,8 +11862,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
11857
11862
  if (isBody) {
11858
11863
  getFrameElement(win);
11859
11864
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
11865
+ } else {
11866
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
11860
11867
  }
11861
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
11862
11868
  }
11863
11869
  function getFrameElement(win) {
11864
11870
  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
@@ -12035,7 +12041,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
12035
12041
  if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
12036
12042
  scroll = getNodeScroll(offsetParent);
12037
12043
  }
12038
- if (isHTMLElement(offsetParent)) {
12044
+ if (isOffsetParentAnElement) {
12039
12045
  const offsetRect = getBoundingClientRect(offsetParent);
12040
12046
  scale = getScale(offsetParent);
12041
12047
  offsets.x = offsetRect.x + offsetParent.clientLeft;
@@ -12123,7 +12129,6 @@ function getViewportRect(element, strategy) {
12123
12129
  };
12124
12130
  }
12125
12131
 
12126
- const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
12127
12132
  // Returns the inner client rect, subtracting scrollbars if present.
12128
12133
  function getInnerBoundingClientRect(element, strategy) {
12129
12134
  const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
@@ -12188,7 +12193,7 @@ function getClippingElementAncestors(element, cache) {
12188
12193
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
12189
12194
  currentContainingBlockComputedStyle = null;
12190
12195
  }
12191
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
12196
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
12192
12197
  if (shouldDropCurrentNode) {
12193
12198
  // Drop non-containing blocks.
12194
12199
  result = result.filter(ancestor => ancestor !== currentNode);
@@ -12213,20 +12218,23 @@ function getClippingRect(_ref) {
12213
12218
  } = _ref;
12214
12219
  const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
12215
12220
  const clippingAncestors = [...elementClippingAncestors, rootBoundary];
12216
- const firstClippingAncestor = clippingAncestors[0];
12217
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
12218
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
12219
- accRect.top = max(rect.top, accRect.top);
12220
- accRect.right = min(rect.right, accRect.right);
12221
- accRect.bottom = min(rect.bottom, accRect.bottom);
12222
- accRect.left = max(rect.left, accRect.left);
12223
- return accRect;
12224
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
12221
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
12222
+ let top = firstRect.top;
12223
+ let right = firstRect.right;
12224
+ let bottom = firstRect.bottom;
12225
+ let left = firstRect.left;
12226
+ for (let i = 1; i < clippingAncestors.length; i++) {
12227
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
12228
+ top = max(rect.top, top);
12229
+ right = min(rect.right, right);
12230
+ bottom = min(rect.bottom, bottom);
12231
+ left = max(rect.left, left);
12232
+ }
12225
12233
  return {
12226
- width: clippingRect.right - clippingRect.left,
12227
- height: clippingRect.bottom - clippingRect.top,
12228
- x: clippingRect.left,
12229
- y: clippingRect.top
12234
+ width: right - left,
12235
+ height: bottom - top,
12236
+ x: left,
12237
+ y: top
12230
12238
  };
12231
12239
  }
12232
12240
 
@@ -14301,7 +14309,7 @@ const RtkMeeting = class {
14301
14309
  disconnectedCallback() {
14302
14310
  var _a;
14303
14311
  if (this.leaveOnUnmount) {
14304
- (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leaveRoom();
14312
+ (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leave();
14305
14313
  }
14306
14314
  this.resizeObserver.disconnect();
14307
14315
  window.removeEventListener('rtkError', this.authErrorListener);
@@ -14426,7 +14434,7 @@ const RtkMeeting = class {
14426
14434
  }
14427
14435
  else {
14428
14436
  meeting
14429
- .joinRoom()
14437
+ .join()
14430
14438
  .then(() => {
14431
14439
  this.updateStates({ joinError: undefined, joinErrorCode: undefined });
14432
14440
  })
@@ -16986,20 +16994,16 @@ const RtkChatSearchResults = class {
16986
16994
  /** Language */
16987
16995
  this.t = useLanguage();
16988
16996
  this.pageSize = 50;
16989
- this.searchMessages = async (timestamp, size, reversed) => {
16990
- return this.meeting.chat.searchMessages(this.query, {
16991
- channelId: this.channelId,
16992
- timestamp,
16993
- size,
16994
- reversed,
16995
- });
16997
+ /** NOTE(ikabra): Core APIs need to be implemented for this, this component is not being used inside chat UI and was broken as standalone. */
16998
+ this.searchMessages = async (_timestamp, _size, _reversed) => {
16999
+ return [];
16996
17000
  };
16997
17001
  this.nodeRenderer = (messages) => {
16998
17002
  return messages.map((message) => (h("rtk-chat-message", { key: message.id, message: message, disableControls: true })));
16999
17003
  };
17000
17004
  }
17001
17005
  render() {
17002
- return (h(Host, { key: 'fc3d7cb74b06656269c6cfc6aabaae16e875f598' }, h("rtk-paginated-list", { key: '8a9431648f5270f4c1f34435f4ac3c424a9b5b22', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer })));
17006
+ return (h(Host, { key: '4ea17889c442ac91c4bb54896c600d17290c0715' }, h("rtk-paginated-list", { key: '8fa700caf9b3a2c7329fb555baf1a979231fa71c', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer })));
17003
17007
  }
17004
17008
  };
17005
17009
  __decorate$16([
@@ -18614,7 +18618,11 @@ const RtkGrid = class {
18614
18618
  .filter((participant) => participant.screenShareEnabled);
18615
18619
  this.plugins = (plugins === null || plugins === void 0 ? void 0 : plugins.active.toArray()) || [];
18616
18620
  if (permissions === null || permissions === void 0 ? void 0 : permissions.stageEnabled) {
18617
- this.canCurrentPeerHost = permissions.acceptStageRequests || permissions.canPresent;
18621
+ this.canCurrentPeerHost =
18622
+ permissions.acceptStageRequests ||
18623
+ permissions.canProduceAudio === 'ALLOWED' ||
18624
+ permissions.canProduceVideo === 'ALLOWED' ||
18625
+ permissions.canProduceScreenshare === 'ALLOWED';
18618
18626
  this.updateStage();
18619
18627
  }
18620
18628
  this.hidden = meeting.self.hidden;
@@ -20673,7 +20681,7 @@ const RtkNotifications = class {
20673
20681
  button: {
20674
20682
  text: this.t('end'),
20675
20683
  variant: 'danger',
20676
- onClick: () => { var _a; return (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leaveRoom(); },
20684
+ onClick: () => { var _a; return (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leave(); },
20677
20685
  },
20678
20686
  });
20679
20687
  }
@@ -20695,7 +20703,7 @@ const RtkNotifications = class {
20695
20703
  button: {
20696
20704
  text: this.t('end'),
20697
20705
  variant: 'danger',
20698
- onClick: () => { var _a; return (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leaveRoom(); },
20706
+ onClick: () => { var _a; return (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leave(); },
20699
20707
  },
20700
20708
  });
20701
20709
  break;
@@ -22833,7 +22841,7 @@ const RtkSetupScreen = class {
22833
22841
  (_b = this.meeting) === null || _b === void 0 ? void 0 : _b.self.setName(this.displayName);
22834
22842
  gracefulStorage$1.setItem('rtk-display-name', this.displayName);
22835
22843
  try {
22836
- await ((_c = this.meeting) === null || _c === void 0 ? void 0 : _c.joinRoom());
22844
+ await ((_c = this.meeting) === null || _c === void 0 ? void 0 : _c.join());
22837
22845
  }
22838
22846
  catch (e) {
22839
22847
  this.isJoining = false;
@@ -23816,7 +23824,7 @@ const RtkUiProvider = class {
23816
23824
  this.updateStates({ meeting: 'setup' });
23817
23825
  }
23818
23826
  else {
23819
- meeting.joinRoom();
23827
+ meeting.join();
23820
23828
  }
23821
23829
  }
23822
23830
  window.removeEventListener('rtkError', this.authErrorListener);
@@ -24790,7 +24798,7 @@ const RtkLeaveMeeting = class {
24790
24798
  };
24791
24799
  this.handleLeave = () => {
24792
24800
  var _a;
24793
- (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leaveRoom();
24801
+ (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.leave();
24794
24802
  this.close();
24795
24803
  };
24796
24804
  this.handleJoinMainRoom = () => {
@@ -24814,20 +24822,16 @@ const RtkLeaveMeeting = class {
24814
24822
  }
24815
24823
  meetingChanged(meeting) {
24816
24824
  if (meeting != null) {
24817
- this.isBreakoutRoomsActive =
24818
- this.meeting.connectedMeetings.supportsConnectedMeetings &&
24819
- this.meeting.connectedMeetings.isActive;
24820
- this.isChildMeeting =
24821
- this.meeting.connectedMeetings.supportsConnectedMeetings &&
24822
- this.meeting.connectedMeetings.meetings.some((cMeet) => cMeet.id === meeting.meta.meetingId);
24825
+ this.isBreakoutRoomsActive = this.meeting.connectedMeetings.isActive;
24826
+ this.isChildMeeting = this.meeting.connectedMeetings.meetings.some((cMeet) => cMeet.id === meeting.meta.meetingId);
24823
24827
  this.meeting.self.permissions.addListener('permissionsUpdate', this.permissionsUpdateListener);
24824
24828
  this.permissionsUpdateListener();
24825
24829
  }
24826
24830
  }
24827
24831
  render() {
24828
- return (h(Host, { key: 'cf23fc37c30feb2f37b806cf44194f593ddc97e8' }, h("div", { key: 'f17422caa8fdcd1dac6e1bb99cc7c0de4f67a898', class: "leave-modal" }, h("div", { key: '6815bfeb196fa73bd662fdb73b441fa257c60ff8', class: "header" }, h("h2", { key: 'c5f68925398cbeb4c6904eaca18be2795bcd35aa', class: "title" }, this.t('leave'))), h("p", { key: '297f84c07e7ea5c97aab77cab278c0079c6d75d4', class: "message" }, this.isBreakoutRoomsActive && this.isChildMeeting
24832
+ return (h(Host, { key: '93a88022c62d7e1dbcd512fa19ad72e7e938e6cc' }, h("div", { key: '526c2dc395fe41a2e980c881c0d3d145c86e7c76', class: "leave-modal" }, h("div", { key: 'ecd34ea2ecc74099a9377ced64a24667aa2e24aa', class: "header" }, h("h2", { key: '51c05788210388df22e871bad265c05c40b7dd75', class: "title" }, this.t('leave'))), h("p", { key: 'fd6a2f2cc6f75c808f995bff3bf5e8628806a0b1', class: "message" }, this.isBreakoutRoomsActive && this.isChildMeeting
24829
24833
  ? this.t('breakout_rooms.leave_confirmation')
24830
- : this.t('leave_confirmation')), h("div", { key: '00efb9ec4d7584c99c52cf0a6e8d5c591870610b', class: "content" }, h("rtk-button", { key: '753aa3193058f8f1d27175025a3f4a5187f1a66f', variant: "secondary", onClick: this.close, class: "secondary-btn" }, this.t('cancel')), this.isBreakoutRoomsActive && this.isChildMeeting && this.canJoinMainRoom && (h("rtk-button", { key: '81cc47e61e60fb434fa50b7e95b1de5a9a32764e', variant: "secondary", onClick: this.handleJoinMainRoom, class: "secondary-btn" }, this.t('breakout_rooms.leave_confirmation.main_room_btn'))), h("rtk-button", { key: '909bbc04ee8fb623a53842e2a724f436ae4c45c7', variant: "danger", title: this.t('leave'), onClick: this.handleLeave }, this.t('leave')), this.canEndMeeting && (h("rtk-button", { key: '3bc081e85aba62c8ed045b8bff304745cab20c0f', variant: "danger", class: "secondary-btn secondary-danger-btn", onClick: this.handleEndMeeting }, this.t('end.all')))))));
24834
+ : this.t('leave_confirmation')), h("div", { key: '6ed0ae860e10f08858707aea9eae9530cfb0eb88', class: "content" }, h("rtk-button", { key: '8ecc5aca329f6bb5eac183dc5e997834c9b511ae', variant: "secondary", onClick: this.close, class: "secondary-btn" }, this.t('cancel')), this.isBreakoutRoomsActive && this.isChildMeeting && this.canJoinMainRoom && (h("rtk-button", { key: '8a31fdea844a2ce4b3b4aeba4114ef0178e2df0b', variant: "secondary", onClick: this.handleJoinMainRoom, class: "secondary-btn" }, this.t('breakout_rooms.leave_confirmation.main_room_btn'))), h("rtk-button", { key: 'e8d815dccf9ea30ab9290f4789f855412b2c9baa', variant: "danger", title: this.t('leave'), onClick: this.handleLeave }, this.t('leave')), this.canEndMeeting && (h("rtk-button", { key: '64073a99ca9ee3beee04ce0aaa4ec4346d5c4de1', variant: "danger", class: "secondary-btn secondary-danger-btn", onClick: this.handleEndMeeting }, this.t('end.all')))))));
24831
24835
  }
24832
24836
  static get watchers() { return {
24833
24837
  "meeting": ["meetingChanged"]
@@ -25833,7 +25837,7 @@ function enableLogs(debugConfig, context, id) {
25833
25837
  // Some browsers don't allow to use bind on console object anyway
25834
25838
  // fallback to default if needed
25835
25839
  try {
25836
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.15"}`);
25840
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.16"}`);
25837
25841
  } catch (e) {
25838
25842
  /* log fn threw an exception. All logger methods are no-ops. */
25839
25843
  return createLogger();
@@ -25971,7 +25975,7 @@ var hasRequiredUrlToolkit;
25971
25975
  function requireUrlToolkit () {
25972
25976
  if (hasRequiredUrlToolkit) return urlToolkit.exports;
25973
25977
  hasRequiredUrlToolkit = 1;
25974
- (function (module, exports$1) {
25978
+ (function (module, exports) {
25975
25979
  // see https://tools.ietf.org/html/rfc1808
25976
25980
 
25977
25981
  (function (root) {
@@ -34788,6 +34792,23 @@ class BaseStreamController extends TaskLoop {
34788
34792
  }
34789
34793
  return Math.min(maxBufLen, config.maxMaxBufferLength);
34790
34794
  }
34795
+ exceedsMaxBuffer(bufferInfo, maxBufLen, selected) {
34796
+ const nextStart = bufferInfo.nextStart;
34797
+ if (nextStart && selected.start > nextStart) {
34798
+ const bufferedRanges = bufferInfo.buffered;
34799
+ if (bufferedRanges) {
34800
+ let fullBufferLength = bufferInfo.len;
34801
+ const bufferedIndex = bufferInfo.bufferedIndex;
34802
+ for (let i = bufferedRanges.length - 1; i > bufferedIndex; i--) {
34803
+ if (bufferedRanges[i].start < selected.start) {
34804
+ fullBufferLength += bufferedRanges[i].end - bufferedRanges[i].start;
34805
+ }
34806
+ }
34807
+ return fullBufferLength >= maxBufLen;
34808
+ }
34809
+ }
34810
+ return false;
34811
+ }
34791
34812
  reduceMaxBufferLength(threshold, fragDuration) {
34792
34813
  const config = this.config;
34793
34814
  const minLength = Math.max(Math.min(threshold - fragDuration, config.maxBufferLength), fragDuration);
@@ -34818,7 +34839,7 @@ class BaseStreamController extends TaskLoop {
34818
34839
  const {
34819
34840
  config
34820
34841
  } = this;
34821
- const start = fragments[0].start;
34842
+ const playlistStart = levelDetails.fragmentStart;
34822
34843
  const canLoadParts = config.lowLatencyMode && !!levelDetails.partList;
34823
34844
  let frag = null;
34824
34845
  if (levelDetails.live) {
@@ -34831,20 +34852,43 @@ class BaseStreamController extends TaskLoop {
34831
34852
  // In order to discover the range, we load the best matching fragment for that level and demux it.
34832
34853
  // Do not load using live logic if the starting frag is requested - we want to use getFragmentAtPosition() so that
34833
34854
  // we get the fragment matching that start time
34834
- if (!levelDetails.PTSKnown && !this.startFragRequested && this.startPosition === -1 || pos < start) {
34855
+ if (!levelDetails.PTSKnown && !this.startFragRequested && this.startPosition === -1 || pos < playlistStart) {
34835
34856
  var _frag;
34836
34857
  if (canLoadParts && !this.loadingParts) {
34837
34858
  this.log(`LL-Part loading ON for initial live fragment`);
34838
34859
  this.loadingParts = true;
34839
34860
  }
34840
34861
  frag = this.getInitialLiveFragment(levelDetails);
34862
+ const configValue = this.config.startPosition;
34841
34863
  const mainStart = this.hls.startPosition;
34842
34864
  const liveSyncPosition = this.hls.liveSyncPosition;
34843
- const startPosition = frag ? (mainStart !== -1 && mainStart >= start ? mainStart : liveSyncPosition) || frag.start : pos;
34844
- this.log(`Setting startPosition to ${startPosition} to match start frag at live edge. mainStart: ${mainStart} liveSyncPosition: ${liveSyncPosition} frag.start: ${(_frag = frag) == null ? void 0 : _frag.start}`);
34845
- this.startPosition = this.nextLoadPosition = startPosition;
34865
+ const fragStart = ((_frag = frag) == null ? void 0 : _frag.start) || 0;
34866
+ let startPosition;
34867
+ let reason;
34868
+ if (mainStart !== -1 && mainStart >= playlistStart) {
34869
+ startPosition = mainStart;
34870
+ reason = mainStart === configValue ? 'config' : 'next load start';
34871
+ } else if (liveSyncPosition !== null) {
34872
+ startPosition = liveSyncPosition;
34873
+ reason = 'live edge';
34874
+ } else {
34875
+ startPosition = pos;
34876
+ reason = 'buffer pos';
34877
+ }
34878
+ if (startPosition < fragStart) {
34879
+ startPosition = fragStart;
34880
+ reason = 'live frag start';
34881
+ }
34882
+ if (startPosition < playlistStart) {
34883
+ startPosition = playlistStart;
34884
+ reason = 'playlist start';
34885
+ }
34886
+ if (this.startPosition != startPosition || this.nextLoadPosition != startPosition) {
34887
+ this.log(`Setting startPosition to ${startPosition.toFixed(3)} ${mainStart === -1 ? '' : `(from ${configValue}) `}based on ${reason}. live edge: ${liveSyncPosition} live frag start: ${fragStart.toFixed(3)} playlist start: ${playlistStart.toFixed(3)} buffer pos: ${pos}`);
34888
+ this.startPosition = this.nextLoadPosition = startPosition;
34889
+ }
34846
34890
  }
34847
- } else if (pos <= start) {
34891
+ } else if (pos <= playlistStart) {
34848
34892
  // VoD playlist: if loadPosition before start of playlist, load first fragment
34849
34893
  frag = fragments[0];
34850
34894
  }
@@ -34862,8 +34906,11 @@ class BaseStreamController extends TaskLoop {
34862
34906
  return this.mapToInitFragWhenRequired(programFrag);
34863
34907
  }
34864
34908
  isLoopLoading(frag, targetBufferTime) {
34909
+ if (this.nextLoadPosition <= targetBufferTime) {
34910
+ return false;
34911
+ }
34865
34912
  const trackerState = this.fragmentTracker.getState(frag);
34866
- return (trackerState === FragmentState.OK || trackerState === FragmentState.PARTIAL && !!frag.gap) && this.nextLoadPosition > targetBufferTime;
34913
+ return trackerState === FragmentState.OK || trackerState === FragmentState.PARTIAL && !!frag.gap;
34867
34914
  }
34868
34915
  getNextFragmentLoopLoading(frag, levelDetails, bufferInfo, playlistType, maxBufLen) {
34869
34916
  let nextFragment = null;
@@ -34996,8 +35043,10 @@ class BaseStreamController extends TaskLoop {
34996
35043
  if (fragPrevious) {
34997
35044
  if (levelDetails.hasProgramDateTime) {
34998
35045
  // Prefer using PDT, because it can be accurate enough to choose the correct fragment without knowing the level sliding
34999
- this.log(`Live playlist, switching playlist, load frag with same PDT: ${fragPrevious.programDateTime}`);
35000
35046
  frag = findFragmentByPDT(fragments, fragPrevious.endProgramDateTime, this.config.maxFragLookUpTolerance);
35047
+ if (frag) {
35048
+ this.log(`Live playlist, switching playlist, load frag with same PDT: ${fragPrevious.programDateTime}`);
35049
+ }
35001
35050
  }
35002
35051
  if (!frag) {
35003
35052
  // SN does not need to be accurate between renditions, but depending on the packaging it may be so.
@@ -35852,7 +35901,7 @@ function requireEventemitter3 () {
35852
35901
  var eventemitter3Exports = requireEventemitter3();
35853
35902
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
35854
35903
 
35855
- const version = "1.6.15";
35904
+ const version = "1.6.16";
35856
35905
 
35857
35906
  // ensure the worker ends up in the bundle
35858
35907
  // If the worker should not be included this gets aliased to empty.js
@@ -42408,6 +42457,9 @@ class AudioStreamController extends BaseStreamController {
42408
42457
  this.bufferFlushed = true;
42409
42458
  return;
42410
42459
  }
42460
+ if (this.exceedsMaxBuffer(bufferInfo, maxBufLen, frag)) {
42461
+ return;
42462
+ }
42411
42463
 
42412
42464
  // Request audio segments up to one fragment ahead of main stream-controller
42413
42465
  let mainFragLoading = ((_this$mainFragLoading2 = this.mainFragLoading) == null ? void 0 : _this$mainFragLoading2.frag) || null;
@@ -50480,6 +50532,9 @@ class InterstitialsController extends Logger {
50480
50532
  return;
50481
50533
  }
50482
50534
  const backwardSeek = diff <= -0.01;
50535
+ if (this.timelinePos === -1 && !this.effectivePlayingItem) {
50536
+ this.checkStart();
50537
+ }
50483
50538
  this.timelinePos = currentTime;
50484
50539
  this.bufferedPos = currentTime;
50485
50540
 
@@ -50552,6 +50607,9 @@ class InterstitialsController extends Logger {
50552
50607
  if (currentTime === undefined || this.playbackDisabled) {
50553
50608
  return;
50554
50609
  }
50610
+ if (this.timelinePos === -1 && !this.effectivePlayingItem) {
50611
+ this.checkStart();
50612
+ }
50555
50613
 
50556
50614
  // Only allow timeupdate to advance primary position, seeking is used for jumping back
50557
50615
  // this prevents primaryPos from being reset to 0 after re-attach
@@ -51274,17 +51332,25 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))} pos: ${this.timeline
51274
51332
  const effectivePlayingItem = this.effectivePlayingItem;
51275
51333
  if (timelinePos === -1) {
51276
51334
  const startPosition = this.hls.startPosition;
51277
- this.log(timelineMessage('checkStart', startPosition));
51278
51335
  this.timelinePos = startPosition;
51279
- if (interstitialEvents.length && interstitialEvents[0].cue.pre) {
51336
+ if (interstitialEvents.length === 0) {
51337
+ this.setSchedulePosition(0);
51338
+ } else if (interstitialEvents[0].cue.pre) {
51339
+ this.log(timelineMessage('checkStart (preroll)', startPosition));
51280
51340
  const index = schedule.findEventIndex(interstitialEvents[0].identifier);
51281
51341
  this.setSchedulePosition(index);
51282
51342
  } else if (startPosition >= 0 || !this.primaryLive) {
51343
+ this.log(timelineMessage('checkStart', startPosition));
51283
51344
  const start = this.timelinePos = startPosition > 0 ? startPosition : 0;
51284
51345
  const index = schedule.findItemIndexAtTime(start);
51285
51346
  this.setSchedulePosition(index);
51347
+ } else if (this.hls.liveSyncPosition === 0) {
51348
+ this.setSchedulePosition(0);
51349
+ } else {
51350
+ this.log('[checkStart] waiting for live start');
51286
51351
  }
51287
51352
  } else if (effectivePlayingItem && !this.playingItem) {
51353
+ this.log(timelineMessage('checkStart (playing item)', effectivePlayingItem.start));
51288
51354
  const index = schedule.findItemIndex(effectivePlayingItem);
51289
51355
  this.setSchedulePosition(index);
51290
51356
  }
@@ -58986,6 +59052,9 @@ class StreamController extends BaseStreamController {
58986
59052
  if (!frag) {
58987
59053
  return;
58988
59054
  }
59055
+ if (this.exceedsMaxBuffer(bufferInfo, maxBufLen, frag)) {
59056
+ return;
59057
+ }
58989
59058
  if (frag.initSegment && !frag.initSegment.data && !this.bitrateTest) {
58990
59059
  frag = frag.initSegment;
58991
59060
  }
@@ -59027,6 +59096,14 @@ class StreamController extends BaseStreamController {
59027
59096
  immediateLevelSwitch() {
59028
59097
  this.abortCurrentFrag();
59029
59098
  this.flushMainBuffer(0, Number.POSITIVE_INFINITY);
59099
+ if (this.altAudio !== 0) {
59100
+ var _this$getLevelDetails;
59101
+ // If behind the live window, remove audio too to keep buffered media aligned
59102
+ const liveWindowStart = ((_this$getLevelDetails = this.getLevelDetails()) == null ? void 0 : _this$getLevelDetails.fragmentStart) || 0;
59103
+ if (liveWindowStart > this.lastCurrentTime) {
59104
+ super.flushMainBuffer(0, Number.POSITIVE_INFINITY, 'audio');
59105
+ }
59106
+ }
59030
59107
  }
59031
59108
 
59032
59109
  /**
@@ -65674,10 +65751,10 @@ const RtkParticipant = class {
65674
65751
  ? this.iconPack.leave_stage
65675
65752
  : this.iconPack.join_stage, slot: "start" }), this.isOnStage
65676
65753
  ? this.t('stage.remove_from_stage')
65677
- : this.t('stage.add_to_stage'))), !isSelf && this.canKickParticipant && (h("rtk-menu-item", { key: '94ab4ac5ff623120259eefc4fde3d1cfc3906be9', iconPack: this.iconPack, t: this.t, class: "red", onClick: () => {
65678
- var _a, _b;
65679
- (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.participants.kick((_b = this.participant) === null || _b === void 0 ? void 0 : _b.id);
65680
- } }, h("rtk-icon", { key: '89366c87999b7cba4437999d99c36fea55da52a7', icon: this.iconPack.dismiss, slot: "start" }), this.t('kick'))), h("slot", { key: '05bc7bda52eb6e9183a3c90628c64ac7fb1baa8c' }, h(Render, { key: '39fbd70a6d9d5a0014befedd7c12b16723e4ad01', element: "rtk-participant", defaults: defaults, childProps: {
65754
+ : this.t('stage.add_to_stage'))), !isSelf && this.canKickParticipant && (h("rtk-menu-item", { key: '0e5fe7c7f6e61599293843466c5b473226348d26', iconPack: this.iconPack, t: this.t, class: "red", onClick: () => {
65755
+ var _a, _b, _c;
65756
+ (_c = (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.participants.joined.get((_b = this.participant) === null || _b === void 0 ? void 0 : _b.id)) === null || _c === void 0 ? void 0 : _c.kick();
65757
+ } }, h("rtk-icon", { key: 'c7d370837be33a1a14fb32f64a35da3fdceafe28', icon: this.iconPack.dismiss, slot: "start" }), this.t('kick'))), h("slot", { key: 'ec5dea9563b71323776808d8ef1991cda87e625f' }, h(Render, { key: '6c423497a1c2f31a7190305913dce0019cf943f1', element: "rtk-participant", defaults: defaults, childProps: {
65681
65758
  participant: this.participant,
65682
65759
  }, deepProps: true, onlyChildren: true })))))))))));
65683
65760
  }