@cloudflare/realtimekit-ui 2.0.1 → 2.0.2-staging.2

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 (927) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/ChatHead-DzH-mYX1.js +11 -0
  3. package/dist/cjs/{TextMessage-492778db.js → TextMessage-5iqcrDk9.js} +9 -11
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
  5. package/dist/cjs/breakout-rooms-46jWgGiL.js +72 -0
  6. package/dist/cjs/breakout-rooms-manager-Bgk5FEK1.js +303 -0
  7. package/dist/cjs/{chat-4f5c28ca.js → chat-CiRLOYTj.js} +1 -1
  8. package/dist/cjs/{config-705c8f2c.js → config-Dr-kt-RY.js} +6 -5
  9. package/dist/cjs/debounce-BgZ6dvDk.js +659 -0
  10. package/dist/cjs/{debounce-7fa6354d.js → debounce-padcVDRF.js} +4 -6
  11. package/dist/cjs/{file-0b9afa34.js → file-BfaJmhHW.js} +1 -1
  12. package/dist/cjs/{floating-ui.dom.esm-9d940028.js → floating-ui.dom-D8vZii24.js} +3 -310
  13. package/dist/cjs/hark-qJk9qiLr.js +322 -0
  14. package/dist/cjs/{index-4366eb3b.js → index-BOQMsbCN.js} +2 -2
  15. package/dist/cjs/{index-2e5758b6.js → index-Bi2L8zQ7.js} +1202 -555
  16. package/dist/cjs/{index-6f8c1928.js → index-Ck9E7Wf2.js} +22 -31
  17. package/dist/cjs/index.cjs.js +14 -13
  18. package/dist/cjs/{init-error-70ccf3b6.js → init-error-BC4ECjPk.js} +10 -2
  19. package/dist/cjs/livestream-B1z1fq_f.js +78 -0
  20. package/dist/cjs/loader.cjs.js +3 -5
  21. package/dist/cjs/{merge-79537b1d.js → merge-CSoi4R44.js} +136 -17
  22. package/dist/cjs/{notification-8f4db150.js → notification-BM6CUHyL.js} +1 -1
  23. package/dist/cjs/realtimekit-ui.cjs.js +7 -7
  24. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +8 -9
  25. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +15 -14
  26. package/dist/cjs/rtk-ai_3.cjs.entry.js +19 -17
  27. package/dist/cjs/rtk-audio-grid.cjs.entry.js +12 -10
  28. package/dist/cjs/rtk-audio-tile.cjs.entry.js +13 -10
  29. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +26 -23
  30. package/dist/cjs/rtk-avatar_26.cjs.entry.js +124 -125
  31. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +33 -27
  32. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +38 -41
  33. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +11 -11
  34. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +20 -15
  35. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +8 -9
  36. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +11 -9
  37. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +9 -9
  38. package/dist/cjs/rtk-chat-message.cjs.entry.js +8 -8
  39. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +16 -12
  40. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +8 -8
  41. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +9 -9
  42. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +16 -12
  43. package/dist/cjs/rtk-clock.cjs.entry.js +11 -10
  44. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +5 -8
  45. package/dist/cjs/rtk-controlbar.cjs.entry.js +9 -9
  46. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +42 -48
  47. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +5 -8
  48. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +9 -10
  49. package/dist/cjs/rtk-dialog.cjs.entry.js +5 -8
  50. package/dist/cjs/rtk-ended-screen.cjs.entry.js +11 -9
  51. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +8 -8
  52. package/dist/cjs/rtk-file-message_3.cjs.entry.js +11 -14
  53. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +6 -9
  54. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +17 -15
  55. package/dist/cjs/rtk-grid.cjs.entry.js +28 -19
  56. package/dist/cjs/rtk-header.cjs.entry.js +9 -9
  57. package/dist/cjs/rtk-idle-screen.cjs.entry.js +14 -10
  58. package/dist/cjs/rtk-image-viewer.cjs.entry.js +7 -10
  59. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +8 -8
  60. package/dist/cjs/rtk-leave-button.cjs.entry.js +5 -8
  61. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +41 -52
  62. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +10 -10
  63. package/dist/cjs/rtk-logo.cjs.entry.js +14 -10
  64. package/dist/cjs/rtk-meeting-title.cjs.entry.js +5 -8
  65. package/dist/cjs/rtk-message-list-view.cjs.entry.js +12 -10
  66. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +8 -9
  67. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +16 -13
  68. package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -8
  69. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +11 -9
  70. package/dist/cjs/rtk-name-tag.cjs.entry.js +9 -10
  71. package/dist/cjs/rtk-network-indicator.cjs.entry.js +11 -9
  72. package/dist/cjs/rtk-notification.cjs.entry.js +13 -12
  73. package/dist/cjs/rtk-notifications.cjs.entry.js +22 -16
  74. package/dist/cjs/rtk-participant-count.cjs.entry.js +11 -11
  75. package/dist/cjs/rtk-participant-setup.cjs.entry.js +14 -10
  76. package/dist/cjs/rtk-participant_2.cjs.entry.js +29 -28
  77. package/dist/cjs/rtk-participants-audio.cjs.entry.js +11 -11
  78. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +33 -24
  79. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +16 -12
  80. package/dist/cjs/rtk-participants.cjs.entry.js +15 -11
  81. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +11 -9
  82. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +11 -13
  83. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +16 -12
  84. package/dist/cjs/rtk-poll_2.cjs.entry.js +8 -12
  85. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +16 -12
  86. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +8 -9
  87. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +8 -9
  88. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +8 -9
  89. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +9 -10
  90. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +10 -12
  91. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +5 -8
  92. package/dist/cjs/rtk-settings.cjs.entry.js +8 -9
  93. package/dist/cjs/rtk-setup-screen.cjs.entry.js +11 -12
  94. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +11 -9
  95. package/dist/cjs/rtk-sidebar.cjs.entry.js +17 -13
  96. package/dist/cjs/rtk-simple-grid.cjs.entry.js +11 -12
  97. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +7 -10
  98. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +8 -9
  99. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +11 -9
  100. package/dist/cjs/rtk-stage.cjs.entry.js +5 -8
  101. package/dist/cjs/rtk-transcript.cjs.entry.js +8 -9
  102. package/dist/cjs/rtk-transcripts.cjs.entry.js +14 -10
  103. package/dist/cjs/rtk-ui-provider.cjs.entry.js +32 -20
  104. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +8 -8
  105. package/dist/cjs/{sidebar-3d8abb05.js → sidebar-CaEYxWaS.js} +2 -2
  106. package/dist/cjs/{ui-store-b1ac9e83.js → ui-store-CTof0Q5V.js} +100 -813
  107. package/dist/collection/collection-manifest.json +3 -2
  108. package/dist/collection/components/rtk-ai/rtk-ai.js +16 -10
  109. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +18 -11
  110. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +9 -5
  111. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +16 -10
  112. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +18 -11
  113. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +15 -11
  114. package/dist/collection/components/rtk-avatar/rtk-avatar.js +15 -10
  115. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +18 -13
  116. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +7 -4
  117. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +19 -12
  118. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +12 -7
  119. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +11 -6
  120. package/dist/collection/components/rtk-button/rtk-button.js +9 -8
  121. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +12 -8
  122. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +16 -10
  123. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +20 -12
  124. package/dist/collection/components/rtk-chat/rtk-chat.js +19 -11
  125. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -11
  126. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +16 -14
  127. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +34 -26
  128. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +20 -14
  129. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +24 -14
  130. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +11 -8
  131. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +20 -12
  132. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +10 -8
  133. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +18 -11
  134. package/dist/collection/components/rtk-clock/rtk-clock.js +8 -5
  135. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +11 -6
  136. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +17 -11
  137. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +16 -14
  138. package/dist/collection/components/rtk-counter/rtk-counter.js +12 -9
  139. package/dist/collection/components/rtk-debugger/rtk-debugger.js +15 -9
  140. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +13 -8
  141. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +13 -8
  142. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +13 -8
  143. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +18 -11
  144. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +13 -8
  145. package/dist/collection/components/rtk-dialog/rtk-dialog.js +18 -12
  146. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +17 -10
  147. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +5 -3
  148. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +6 -4
  149. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +7 -5
  150. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +15 -9
  151. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +5 -3
  152. package/dist/collection/components/rtk-file-message/rtk-file-message.js +9 -6
  153. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +8 -7
  154. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +13 -10
  155. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +16 -10
  156. package/dist/collection/components/rtk-grid/rtk-grid.js +22 -15
  157. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +14 -9
  158. package/dist/collection/components/rtk-header/rtk-header.js +17 -11
  159. package/dist/collection/components/rtk-icon/rtk-icon.js +6 -5
  160. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +11 -6
  161. package/dist/collection/components/rtk-image-message/rtk-image-message.js +11 -7
  162. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +7 -5
  163. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +11 -7
  164. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -1
  165. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +17 -10
  166. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +14 -9
  167. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +11 -6
  168. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +11 -7
  169. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +11 -7
  170. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +16 -10
  171. package/dist/collection/components/rtk-logo/rtk-logo.js +9 -6
  172. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +4 -4
  173. package/dist/collection/components/rtk-meeting/rtk-meeting.js +31 -21
  174. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +7 -4
  175. package/dist/collection/components/rtk-menu/rtk-menu.js +13 -9
  176. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +10 -7
  177. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +6 -4
  178. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +5 -4
  179. package/dist/collection/components/rtk-message-view/rtk-message-view.js +19 -17
  180. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +16 -10
  181. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +12 -8
  182. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +31 -19
  183. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +13 -8
  184. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +16 -10
  185. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +11 -6
  186. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +16 -11
  187. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +11 -7
  188. package/dist/collection/components/rtk-notification/rtk-notification.js +13 -9
  189. package/dist/collection/components/rtk-notifications/rtk-notifications.js +15 -9
  190. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +11 -6
  191. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +14 -11
  192. package/dist/collection/components/rtk-participant/rtk-participant.js +15 -9
  193. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +11 -7
  194. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +19 -13
  195. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +26 -17
  196. package/dist/collection/components/rtk-participants/rtk-participants.js +18 -11
  197. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +7 -4
  198. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +20 -13
  199. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +16 -10
  200. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +18 -11
  201. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +18 -12
  202. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +16 -10
  203. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +11 -6
  204. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +9 -5
  205. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +20 -12
  206. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +10 -6
  207. package/dist/collection/components/rtk-plugins/rtk-plugins.js +15 -9
  208. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +18 -11
  209. package/dist/collection/components/rtk-poll/rtk-poll.js +12 -8
  210. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +7 -4
  211. package/dist/collection/components/rtk-polls/rtk-polls.js +13 -8
  212. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +18 -11
  213. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +11 -7
  214. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +15 -10
  215. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +18 -11
  216. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +21 -14
  217. package/dist/collection/components/rtk-settings/rtk-settings.js +15 -9
  218. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +15 -9
  219. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +16 -10
  220. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +15 -9
  221. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +17 -10
  222. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +23 -14
  223. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +9 -8
  224. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +19 -12
  225. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +14 -9
  226. package/dist/collection/components/rtk-spinner/rtk-spinner.js +5 -3
  227. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +27 -17
  228. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +11 -7
  229. package/dist/collection/components/rtk-stage/rtk-stage.js +7 -4
  230. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +18 -11
  231. package/dist/collection/components/rtk-switch/rtk-switch.js +8 -6
  232. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +18 -11
  233. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +13 -11
  234. package/dist/collection/components/rtk-text-message/rtk-text-message.js +9 -6
  235. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +3 -3
  236. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +13 -11
  237. package/dist/collection/components/rtk-transcript/rtk-transcript.js +5 -3
  238. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +9 -5
  239. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +22 -13
  240. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +8 -5
  241. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +6 -4
  242. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +9 -5
  243. package/dist/collection/utils/init-error.js +10 -2
  244. package/dist/collection/utils/livestream.js +1 -1
  245. package/dist/collection/utils/sync-with-store/ui-store.js +1 -1
  246. package/dist/components/index.d.ts +2 -0
  247. package/dist/components/index.js +1 -247
  248. package/dist/components/p-1sLF61J1.js +1 -0
  249. package/dist/components/p-7zlNLqpS.js +1 -0
  250. package/dist/components/p-B-k80wnP.js +1 -0
  251. package/dist/components/p-B1SWgSTZ.js +1 -0
  252. package/dist/components/p-B1wrArJr.js +1 -0
  253. package/dist/components/p-B4TnXODX.js +1 -0
  254. package/dist/components/p-B5-LNbkp.js +1 -0
  255. package/dist/components/p-B9MPybze.js +1 -0
  256. package/dist/components/p-BA_UY9k8.js +1 -0
  257. package/dist/components/p-BBHQOrFK.js +2 -0
  258. package/dist/{realtimekit-ui/p-598b792e.js → components/p-BCuMxcZN.js} +1 -1
  259. package/dist/components/p-BEOq_QN5.js +1 -0
  260. package/dist/components/p-BFTU3MAI.js +1 -0
  261. package/dist/components/p-BJKSFJeB.js +1 -0
  262. package/dist/components/p-BOYkqKBb.js +1 -0
  263. package/dist/components/p-BRbb3tLk.js +1 -0
  264. package/dist/components/p-BWNToYSb.js +1 -0
  265. package/dist/components/p-BYIBbfJ8.js +1 -0
  266. package/dist/components/p-BbJzI1u1.js +1 -0
  267. package/dist/components/p-BcCYogfR.js +1 -0
  268. package/dist/components/p-Bf4LuZWa.js +1 -0
  269. package/dist/{realtimekit-ui/p-1e62d63b.js → components/p-Bj1kNPpe.js} +1 -1
  270. package/dist/components/p-BjF9F_tX.js +1 -0
  271. package/dist/components/p-BoGbJ5PX.js +1 -0
  272. package/dist/components/p-BuZhKlht.js +1 -0
  273. package/dist/{realtimekit-ui/p-fa9759f4.js → components/p-Bx38FZhs.js} +1 -1
  274. package/dist/components/p-C-OVY3ug.js +1 -0
  275. package/dist/components/p-C0H4DNJM.js +1 -0
  276. package/dist/components/p-C0vp-Q7v.js +1 -0
  277. package/dist/components/p-C3Z3GLQh.js +1 -0
  278. package/dist/components/p-C4IJ0f9O.js +1 -0
  279. package/dist/components/p-C9EBo56b.js +1 -0
  280. package/dist/components/p-CABfszIM.js +1 -0
  281. package/dist/components/p-CB5hzEOM.js +1 -0
  282. package/dist/components/p-CBJjerDR.js +1 -0
  283. package/dist/components/p-CBLUz_2s.js +1 -0
  284. package/dist/components/p-CJsXePY3.js +1 -0
  285. package/dist/components/p-CKX6X8es.js +1 -0
  286. package/dist/components/p-COEreDeR.js +1 -0
  287. package/dist/components/p-COZSdc5O.js +1 -0
  288. package/dist/components/p-CQAMoQlr.js +1 -0
  289. package/dist/components/p-Cd-WpR0J.js +1 -0
  290. package/dist/components/p-CdV0xzjB.js +1 -0
  291. package/dist/components/p-Ce-9kgl0.js +1 -0
  292. package/dist/components/p-ChuKD7QS.js +1 -0
  293. package/dist/components/p-Cj44pA_c.js +1 -0
  294. package/dist/components/p-Cmu_4ZYL.js +1 -0
  295. package/dist/components/p-CnJQLwM-.js +1 -0
  296. package/dist/components/p-CpOL3OJd.js +1 -0
  297. package/dist/components/p-CphAED3J.js +1 -0
  298. package/dist/components/p-CqEcYX16.js +1 -0
  299. package/dist/components/p-CrExxJHe.js +1 -0
  300. package/dist/components/p-D0bZYAmS.js +1 -0
  301. package/dist/components/p-D1zAGrQ9.js +1 -0
  302. package/dist/components/p-D6vw6bT2.js +1 -0
  303. package/dist/{realtimekit-ui/p-6befaf17.js → components/p-D9HGXWKc.js} +1 -1
  304. package/dist/components/p-DBjcFAtV.js +1 -0
  305. package/dist/components/p-DCEjf6bL.js +1 -0
  306. package/dist/components/p-DD3_OTZn.js +1 -0
  307. package/dist/{realtimekit-ui/p-40be18ee.js → components/p-DDaHXyCC.js} +1 -1
  308. package/dist/components/p-DE1s0fDa.js +1 -0
  309. package/dist/components/p-DEOaS443.js +1 -0
  310. package/dist/components/p-DHSRRtn3.js +1 -0
  311. package/dist/components/p-DKjr_UXt.js +1 -0
  312. package/dist/components/p-DLocSBO3.js +1 -0
  313. package/dist/components/p-DNkzP2hS.js +1 -0
  314. package/dist/components/p-DP4RUNa1.js +1 -0
  315. package/dist/components/p-DU5mNJqK.js +1 -0
  316. package/dist/components/p-DY8ll5IU.js +1 -0
  317. package/dist/components/p-DZC8m5f_.js +1 -0
  318. package/dist/components/p-Daj_55_i.js +1 -0
  319. package/dist/components/p-DbHOlaHU.js +1 -0
  320. package/dist/components/p-De8YQHVd.js +1 -0
  321. package/dist/components/p-Deo_3EhX.js +1 -0
  322. package/dist/components/p-Df2S0-LE.js +1 -0
  323. package/dist/components/p-DfWuSKCq.js +1 -0
  324. package/dist/components/p-Dguuxuf6.js +1 -0
  325. package/dist/components/p-Dkd2PDJ-.js +1 -0
  326. package/dist/components/p-DlKMnwxL.js +1 -0
  327. package/dist/components/p-DmVA5ArE.js +1 -0
  328. package/dist/components/p-DnQYtb0h.js +1 -0
  329. package/dist/components/p-DuOnRaMu.js +1 -0
  330. package/dist/components/p-DxDYE5-a.js +1 -0
  331. package/dist/components/p-EuNHmu13.js +1 -0
  332. package/dist/components/p-FVFlyS1y.js +1 -0
  333. package/dist/components/p-FdeAvICb.js +1 -0
  334. package/dist/components/p-J1kxEVHe.js +1 -0
  335. package/dist/components/p-JyC3dswA.js +1 -0
  336. package/dist/components/p-KpmupjxR.js +1 -0
  337. package/dist/components/p-L9yK33Cu.js +1 -0
  338. package/dist/components/p-PXVZ-Szx.js +1 -0
  339. package/dist/components/p-ViKGg-Ct.js +1 -0
  340. package/dist/components/p-aS2wpIc0.js +1 -0
  341. package/dist/components/p-ak2clYhw.js +1 -0
  342. package/dist/components/p-e-OVL-Mg.js +1 -0
  343. package/dist/components/p-j2J2Tn1F.js +1 -0
  344. package/dist/components/p-oXrlIvqH.js +1 -0
  345. package/dist/components/p-pb5wDMuJ.js +1 -0
  346. package/dist/components/p-s-jAl7lc.js +1 -0
  347. package/dist/components/p-sSs7a3Ms.js +1 -0
  348. package/dist/components/p-t72veIFj.js +1 -0
  349. package/dist/components/p-uOh9MOi7.js +1 -0
  350. package/dist/components/p-wemYeTS7.js +1 -0
  351. package/dist/components/p-wl6GEzgG.js +1 -0
  352. package/dist/components/p-zBoy9v8V.js +1 -0
  353. package/dist/components/rtk-ai-toggle.js +1 -122
  354. package/dist/components/rtk-ai-transcriptions.js +1 -6
  355. package/dist/components/rtk-ai.js +1 -6
  356. package/dist/components/rtk-audio-grid.js +1 -145
  357. package/dist/components/rtk-audio-tile.js +1 -184
  358. package/dist/components/rtk-audio-visualizer.js +1 -6
  359. package/dist/components/rtk-avatar.js +1 -6
  360. package/dist/components/rtk-breakout-room-manager.js +1 -6
  361. package/dist/components/rtk-breakout-room-participants.js +1 -6
  362. package/dist/components/rtk-breakout-rooms-manager.js +1 -6
  363. package/dist/components/rtk-breakout-rooms-toggle.js +1 -128
  364. package/dist/components/rtk-broadcast-message-modal.js +1 -6
  365. package/dist/components/rtk-button.js +1 -6
  366. package/dist/components/rtk-camera-selector.js +1 -6
  367. package/dist/components/rtk-camera-toggle.js +1 -236
  368. package/dist/components/rtk-caption-toggle.js +1 -131
  369. package/dist/components/rtk-chat-composer-ui.js +1 -363
  370. package/dist/components/rtk-chat-composer-view.js +1 -6
  371. package/dist/components/rtk-chat-header.js +1 -6
  372. package/dist/components/rtk-chat-message.js +1 -6
  373. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -6
  374. package/dist/components/rtk-chat-messages-ui.js +1 -313
  375. package/dist/components/rtk-chat-search-results.js +1 -147
  376. package/dist/components/rtk-chat-selector-ui.js +1 -108
  377. package/dist/components/rtk-chat-selector.js +1 -6
  378. package/dist/components/rtk-chat-toggle.js +1 -181
  379. package/dist/components/rtk-chat.js +1 -6
  380. package/dist/components/rtk-clock.js +1 -128
  381. package/dist/components/rtk-confirmation-modal.js +1 -6
  382. package/dist/components/rtk-controlbar-button.js +1 -6
  383. package/dist/components/rtk-controlbar.js +1 -91
  384. package/dist/components/rtk-counter.js +1 -6
  385. package/dist/components/rtk-debugger-audio.js +1 -6
  386. package/dist/components/rtk-debugger-screenshare.js +1 -6
  387. package/dist/components/rtk-debugger-system.js +1 -6
  388. package/dist/components/rtk-debugger-toggle.js +1 -98
  389. package/dist/components/rtk-debugger-video.js +1 -6
  390. package/dist/components/rtk-debugger.js +1 -6
  391. package/dist/components/rtk-dialog-manager.js +1 -310
  392. package/dist/components/rtk-dialog.js +1 -6
  393. package/dist/components/rtk-draft-attachment-view.js +1 -6
  394. package/dist/components/rtk-emoji-picker-button.js +1 -6
  395. package/dist/components/rtk-emoji-picker.js +1 -6
  396. package/dist/components/rtk-ended-screen.js +1 -150
  397. package/dist/components/rtk-file-dropzone.js +1 -87
  398. package/dist/components/rtk-file-message-view.js +1 -6
  399. package/dist/components/rtk-file-message.js +1 -6
  400. package/dist/components/rtk-file-picker-button.js +1 -6
  401. package/dist/components/rtk-fullscreen-toggle.js +1 -6
  402. package/dist/components/rtk-grid-pagination.js +1 -206
  403. package/dist/components/rtk-grid.js +1 -468
  404. package/dist/components/rtk-header.js +1 -91
  405. package/dist/components/rtk-icon.js +1 -6
  406. package/dist/components/rtk-idle-screen.js +1 -139
  407. package/dist/components/rtk-image-message-view.js +1 -6
  408. package/dist/components/rtk-image-message.js +1 -6
  409. package/dist/components/rtk-image-viewer.js +1 -91
  410. package/dist/components/rtk-information-tooltip.js +1 -61
  411. package/dist/components/rtk-join-stage.js +1 -6
  412. package/dist/components/rtk-leave-button.js +1 -87
  413. package/dist/components/rtk-leave-meeting.js +1 -6
  414. package/dist/components/rtk-livestream-indicator.js +1 -6
  415. package/dist/components/rtk-livestream-player.js +1 -6
  416. package/dist/components/rtk-livestream-toggle.js +1 -181
  417. package/dist/components/rtk-logo.js +1 -6
  418. package/dist/components/rtk-markdown-view.js +1 -6
  419. package/dist/components/rtk-meeting-title.js +1 -74
  420. package/dist/components/rtk-meeting.js +1 -533
  421. package/dist/components/rtk-menu-item.js +1 -6
  422. package/dist/components/rtk-menu-list.js +1 -6
  423. package/dist/components/rtk-menu.js +1 -6
  424. package/dist/components/rtk-message-list-view.js +1 -324
  425. package/dist/components/rtk-message-view.js +1 -6
  426. package/dist/components/rtk-mic-toggle.js +1 -234
  427. package/dist/components/rtk-microphone-selector.js +1 -6
  428. package/dist/components/rtk-mixed-grid.js +1 -300
  429. package/dist/components/rtk-more-toggle.js +1 -112
  430. package/dist/components/rtk-mute-all-button.js +1 -127
  431. package/dist/components/rtk-mute-all-confirmation.js +1 -6
  432. package/dist/components/rtk-name-tag.js +1 -6
  433. package/dist/components/rtk-network-indicator.js +1 -117
  434. package/dist/components/rtk-notification.js +1 -6
  435. package/dist/components/rtk-notifications.js +1 -637
  436. package/dist/components/rtk-overlay-modal.js +1 -6
  437. package/dist/components/rtk-paginated-list.js +1 -6
  438. package/dist/components/rtk-participant-count.js +1 -118
  439. package/dist/components/rtk-participant-setup.js +1 -149
  440. package/dist/components/rtk-participant-tile.js +1 -6
  441. package/dist/components/rtk-participant.js +1 -6
  442. package/dist/components/rtk-participants-audio.js +1 -249
  443. package/dist/components/rtk-participants-stage-list.js +1 -6
  444. package/dist/components/rtk-participants-stage-queue.js +1 -6
  445. package/dist/components/rtk-participants-toggle.js +1 -195
  446. package/dist/components/rtk-participants-viewer-list.js +1 -6
  447. package/dist/components/rtk-participants-waiting-list.js +1 -6
  448. package/dist/components/rtk-participants.js +1 -306
  449. package/dist/components/rtk-permissions-message.js +1 -6
  450. package/dist/components/rtk-pinned-message-selector.js +1 -6
  451. package/dist/components/rtk-pip-toggle.js +1 -135
  452. package/dist/components/rtk-plugin-main.js +1 -6
  453. package/dist/components/rtk-plugins-toggle.js +1 -148
  454. package/dist/components/rtk-plugins.js +1 -6
  455. package/dist/components/rtk-poll-form.js +1 -6
  456. package/dist/components/rtk-poll.js +1 -6
  457. package/dist/components/rtk-polls-toggle.js +1 -160
  458. package/dist/components/rtk-polls.js +1 -6
  459. package/dist/components/rtk-recording-indicator.js +1 -96
  460. package/dist/components/rtk-recording-toggle.js +1 -203
  461. package/dist/components/rtk-screen-share-toggle.js +1 -317
  462. package/dist/components/rtk-screenshare-view.js +1 -194
  463. package/dist/components/rtk-settings-audio.js +1 -6
  464. package/dist/components/rtk-settings-toggle.js +1 -93
  465. package/dist/components/rtk-settings-video.js +1 -6
  466. package/dist/components/rtk-settings.js +1 -208
  467. package/dist/components/rtk-setup-screen.js +1 -215
  468. package/dist/components/rtk-sidebar-ui.js +1 -6
  469. package/dist/components/rtk-sidebar.js +1 -253
  470. package/dist/components/rtk-simple-grid.js +1 -149
  471. package/dist/components/rtk-speaker-selector.js +1 -6
  472. package/dist/components/rtk-spinner.js +1 -6
  473. package/dist/components/rtk-spotlight-grid.js +1 -135
  474. package/dist/components/rtk-spotlight-indicator.js +1 -6
  475. package/dist/components/rtk-stage-toggle.js +1 -195
  476. package/dist/components/rtk-stage.js +1 -61
  477. package/dist/components/rtk-switch.js +1 -6
  478. package/dist/components/rtk-tab-bar.js +1 -6
  479. package/dist/components/rtk-text-composer-view.js +1 -6
  480. package/dist/components/rtk-text-message-view.js +1 -6
  481. package/dist/components/rtk-text-message.js +1 -6
  482. package/dist/components/rtk-tooltip.js +1 -6
  483. package/dist/components/rtk-transcript.js +1 -6
  484. package/dist/components/rtk-transcripts.js +1 -199
  485. package/dist/components/rtk-ui-provider.js +1 -281
  486. package/dist/components/rtk-viewer-count.js +1 -6
  487. package/dist/components/rtk-virtualized-participant-list.js +1 -6
  488. package/dist/components/rtk-waiting-screen.js +1 -77
  489. package/dist/docs/docs-components.d.ts +37 -0
  490. package/dist/docs/docs-components.json +5693 -3069
  491. package/dist/docs/docs-vscode.json +78 -78
  492. package/dist/esm/ChatHead-BV_pLIJ6.js +9 -0
  493. package/dist/{components/p-1a950769.js → esm/TextMessage-DRvjfMBy.js} +9 -11
  494. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  495. package/dist/esm/breakout-rooms-Daj_55_i.js +64 -0
  496. package/dist/esm/breakout-rooms-manager-B1Qky9zO.js +301 -0
  497. package/dist/esm/{chat-1107a64f.js → chat-Zou036qQ.js} +1 -1
  498. package/dist/{components/p-9f0c9162.js → esm/config-BYcrCEso.js} +5 -4
  499. package/dist/esm/debounce-BLQbB67V.js +657 -0
  500. package/dist/{components/p-1dca17d1.js → esm/debounce-BYqYBLuN.js} +4 -6
  501. package/dist/{components/p-47314bc7.js → esm/file-6Fkktc2w.js} +1 -1
  502. package/dist/esm/{floating-ui.dom.esm-78a1e61c.js → floating-ui.dom-B1SWgSTZ.js} +3 -310
  503. package/dist/esm/hark-Dwnntwzh.js +320 -0
  504. package/dist/{components/p-bd10fae6.js → esm/index-7w76SzJW.js} +2 -2
  505. package/dist/{components/p-88bd1053.js → esm/index-BUsisVB6.js} +22 -31
  506. package/dist/esm/{index-55463a54.js → index-gJCRRBX0.js} +1198 -549
  507. package/dist/esm/index.js +13 -10
  508. package/dist/esm/{init-error-ff5ead9a.js → init-error-DE1s0fDa.js} +10 -2
  509. package/dist/esm/livestream-C0vp-Q7v.js +73 -0
  510. package/dist/esm/loader.js +3630 -2785
  511. package/dist/{components/p-556de366.js → esm/merge-CiWMx7_3.js} +133 -15
  512. package/dist/{components/p-598b792e.js → esm/notification-DcR6dHfn.js} +1 -1
  513. package/dist/esm/realtimekit-ui.js +6 -5
  514. package/dist/esm/rtk-ai-toggle.entry.js +8 -7
  515. package/dist/esm/rtk-ai-transcriptions.entry.js +15 -12
  516. package/dist/esm/rtk-ai_3.entry.js +19 -15
  517. package/dist/esm/rtk-audio-grid.entry.js +12 -8
  518. package/dist/esm/rtk-audio-tile.entry.js +13 -8
  519. package/dist/esm/rtk-audio-visualizer_4.entry.js +26 -21
  520. package/dist/esm/rtk-avatar_26.entry.js +120 -119
  521. package/dist/esm/rtk-breakout-room-manager_3.entry.js +25 -17
  522. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +33 -34
  523. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +9 -7
  524. package/dist/esm/rtk-camera-selector_2.entry.js +20 -13
  525. package/dist/esm/rtk-camera-toggle.entry.js +8 -7
  526. package/dist/esm/rtk-caption-toggle.entry.js +11 -7
  527. package/dist/esm/rtk-chat-composer-ui.entry.js +9 -7
  528. package/dist/esm/rtk-chat-message.entry.js +8 -6
  529. package/dist/esm/rtk-chat-messages-ui.entry.js +16 -10
  530. package/dist/esm/rtk-chat-search-results.entry.js +8 -6
  531. package/dist/esm/rtk-chat-selector-ui.entry.js +9 -7
  532. package/dist/esm/rtk-chat-toggle.entry.js +16 -10
  533. package/dist/esm/rtk-clock.entry.js +11 -8
  534. package/dist/esm/rtk-controlbar-button.entry.js +5 -6
  535. package/dist/esm/rtk-controlbar.entry.js +9 -7
  536. package/dist/esm/rtk-debugger-audio_4.entry.js +42 -46
  537. package/dist/esm/rtk-debugger-toggle.entry.js +5 -6
  538. package/dist/esm/rtk-dialog-manager.entry.js +9 -8
  539. package/dist/esm/rtk-dialog.entry.js +5 -6
  540. package/dist/esm/rtk-ended-screen.entry.js +11 -7
  541. package/dist/esm/rtk-file-dropzone.entry.js +8 -6
  542. package/dist/esm/rtk-file-message_3.entry.js +11 -12
  543. package/dist/esm/rtk-fullscreen-toggle.entry.js +6 -7
  544. package/dist/esm/rtk-grid-pagination.entry.js +17 -13
  545. package/dist/esm/rtk-grid.entry.js +27 -16
  546. package/dist/esm/rtk-header.entry.js +9 -7
  547. package/dist/esm/rtk-idle-screen.entry.js +14 -8
  548. package/dist/esm/rtk-image-viewer.entry.js +7 -8
  549. package/dist/esm/rtk-information-tooltip.entry.js +8 -6
  550. package/dist/esm/rtk-leave-button.entry.js +5 -6
  551. package/dist/esm/rtk-livestream-indicator_3.entry.js +26 -35
  552. package/dist/esm/rtk-livestream-toggle.entry.js +9 -7
  553. package/dist/esm/rtk-logo.entry.js +14 -8
  554. package/dist/esm/rtk-meeting-title.entry.js +5 -6
  555. package/dist/esm/rtk-message-list-view.entry.js +12 -8
  556. package/dist/esm/rtk-mic-toggle.entry.js +8 -7
  557. package/dist/esm/rtk-mixed-grid.entry.js +16 -11
  558. package/dist/esm/rtk-more-toggle.entry.js +5 -6
  559. package/dist/esm/rtk-mute-all-button.entry.js +11 -7
  560. package/dist/esm/rtk-name-tag.entry.js +9 -8
  561. package/dist/esm/rtk-network-indicator.entry.js +11 -7
  562. package/dist/esm/rtk-notification.entry.js +13 -10
  563. package/dist/esm/rtk-notifications.entry.js +21 -13
  564. package/dist/esm/rtk-participant-count.entry.js +9 -7
  565. package/dist/esm/rtk-participant-setup.entry.js +14 -8
  566. package/dist/esm/rtk-participant_2.entry.js +24 -21
  567. package/dist/esm/rtk-participants-audio.entry.js +10 -8
  568. package/dist/esm/rtk-participants-stage-list_4.entry.js +33 -22
  569. package/dist/esm/rtk-participants-toggle.entry.js +16 -10
  570. package/dist/esm/rtk-participants.entry.js +15 -9
  571. package/dist/esm/rtk-pip-toggle.entry.js +11 -7
  572. package/dist/esm/rtk-plugin-main_2.entry.js +11 -11
  573. package/dist/esm/rtk-plugins-toggle.entry.js +16 -10
  574. package/dist/esm/rtk-poll_2.entry.js +8 -10
  575. package/dist/esm/rtk-polls-toggle.entry.js +16 -10
  576. package/dist/esm/rtk-recording-indicator.entry.js +8 -7
  577. package/dist/esm/rtk-recording-toggle.entry.js +8 -7
  578. package/dist/esm/rtk-screen-share-toggle.entry.js +8 -7
  579. package/dist/esm/rtk-screenshare-view.entry.js +9 -8
  580. package/dist/esm/rtk-settings-audio_2.entry.js +10 -10
  581. package/dist/esm/rtk-settings-toggle.entry.js +5 -6
  582. package/dist/esm/rtk-settings.entry.js +8 -7
  583. package/dist/esm/rtk-setup-screen.entry.js +11 -10
  584. package/dist/esm/rtk-sidebar-ui.entry.js +11 -7
  585. package/dist/esm/rtk-sidebar.entry.js +17 -11
  586. package/dist/esm/rtk-simple-grid.entry.js +11 -10
  587. package/dist/esm/rtk-spotlight-grid.entry.js +7 -8
  588. package/dist/esm/rtk-spotlight-indicator.entry.js +8 -7
  589. package/dist/esm/rtk-stage-toggle.entry.js +11 -7
  590. package/dist/esm/rtk-stage.entry.js +5 -6
  591. package/dist/esm/rtk-transcript.entry.js +8 -7
  592. package/dist/esm/rtk-transcripts.entry.js +14 -8
  593. package/dist/esm/rtk-ui-provider.entry.js +32 -18
  594. package/dist/esm/rtk-waiting-screen.entry.js +8 -6
  595. package/dist/{components/p-a3fc952e.js → esm/sidebar-B3trLKC3.js} +1 -1
  596. package/dist/{components/p-d5a12339.js → esm/ui-store-BtrgoOOT.js} +258 -762
  597. package/dist/realtimekit-ui/index.esm.js +1 -1
  598. package/dist/realtimekit-ui/p-04237239.entry.js +1 -0
  599. package/dist/realtimekit-ui/p-070294a1.entry.js +1 -0
  600. package/dist/realtimekit-ui/p-0d5719ea.entry.js +1 -0
  601. package/dist/realtimekit-ui/p-0fe1ced3.entry.js +1 -0
  602. package/dist/realtimekit-ui/p-105e4115.entry.js +1 -0
  603. package/dist/realtimekit-ui/{p-30fa04e9.entry.js → p-117f34c2.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-069cc080.entry.js → p-149c0b9c.entry.js} +1 -1
  605. package/dist/realtimekit-ui/p-15d96f62.entry.js +1 -0
  606. package/dist/realtimekit-ui/p-16fe4fca.entry.js +1 -0
  607. package/dist/realtimekit-ui/p-17690ef8.entry.js +1 -0
  608. package/dist/realtimekit-ui/p-1ae8c9ea.entry.js +1 -0
  609. package/dist/realtimekit-ui/p-1f114cc0.entry.js +1 -0
  610. package/dist/realtimekit-ui/{p-d93b1e9c.entry.js → p-213b9942.entry.js} +1 -1
  611. package/dist/realtimekit-ui/p-243e3c22.entry.js +1 -0
  612. package/dist/realtimekit-ui/p-25374ae7.entry.js +1 -0
  613. package/dist/realtimekit-ui/{p-71a44776.entry.js → p-26ba0489.entry.js} +1 -1
  614. package/dist/realtimekit-ui/p-27dcaef7.entry.js +1 -0
  615. package/dist/realtimekit-ui/p-2906e52d.entry.js +1 -0
  616. package/dist/realtimekit-ui/{p-58b2f1a1.entry.js → p-2baa2443.entry.js} +1 -1
  617. package/dist/realtimekit-ui/p-2bd8f726.entry.js +1 -0
  618. package/dist/realtimekit-ui/p-2c5a9a4d.entry.js +1 -0
  619. package/dist/realtimekit-ui/p-2f438543.entry.js +1 -0
  620. package/dist/realtimekit-ui/{p-b5f0c31d.entry.js → p-34ebceb7.entry.js} +1 -1
  621. package/dist/realtimekit-ui/p-3df3b56b.entry.js +1 -0
  622. package/dist/realtimekit-ui/{p-03db9946.entry.js → p-3f297e22.entry.js} +1 -1
  623. package/dist/realtimekit-ui/p-405addc8.entry.js +1 -0
  624. package/dist/realtimekit-ui/p-450803e1.entry.js +1 -0
  625. package/dist/realtimekit-ui/p-49f22238.entry.js +1 -0
  626. package/dist/realtimekit-ui/{p-4b9450d3.entry.js → p-49feda1f.entry.js} +1 -1
  627. package/dist/realtimekit-ui/p-4c1b7ee2.entry.js +1 -0
  628. package/dist/realtimekit-ui/{p-234a709e.entry.js → p-4f264d60.entry.js} +1 -1
  629. package/dist/realtimekit-ui/{p-64b59d46.entry.js → p-560dcff9.entry.js} +1 -1
  630. package/dist/realtimekit-ui/p-56261662.entry.js +1 -0
  631. package/dist/realtimekit-ui/p-5a1918a1.entry.js +1 -0
  632. package/dist/realtimekit-ui/p-5bd05c88.entry.js +1 -0
  633. package/dist/realtimekit-ui/p-5c5ca185.entry.js +1 -0
  634. package/dist/realtimekit-ui/p-6092b383.entry.js +1 -0
  635. package/dist/realtimekit-ui/p-650339c3.entry.js +1 -0
  636. package/dist/realtimekit-ui/p-65c856c3.entry.js +1 -0
  637. package/dist/realtimekit-ui/p-69ddb3a9.entry.js +1 -0
  638. package/dist/realtimekit-ui/p-6bc7af7a.entry.js +1 -0
  639. package/dist/realtimekit-ui/p-73bd1b57.entry.js +1 -0
  640. package/dist/realtimekit-ui/p-768c3c20.entry.js +1 -0
  641. package/dist/realtimekit-ui/p-779bd93e.entry.js +1 -0
  642. package/dist/realtimekit-ui/{p-72461b1f.entry.js → p-7d4e36b0.entry.js} +1 -1
  643. package/dist/realtimekit-ui/{p-1b26c15d.entry.js → p-7ff08b19.entry.js} +1 -1
  644. package/dist/realtimekit-ui/p-836455f1.entry.js +1 -0
  645. package/dist/realtimekit-ui/p-8dcf542b.entry.js +1 -0
  646. package/dist/realtimekit-ui/{p-91795fd7.entry.js → p-9810aada.entry.js} +1 -1
  647. package/dist/realtimekit-ui/p-9b089f06.entry.js +1 -0
  648. package/dist/realtimekit-ui/p-9b93c273.entry.js +1 -0
  649. package/dist/realtimekit-ui/p-9c5cf5a3.entry.js +1 -0
  650. package/dist/realtimekit-ui/p-9cb3685c.entry.js +1 -0
  651. package/dist/realtimekit-ui/p-B1SWgSTZ.js +1 -0
  652. package/dist/realtimekit-ui/{p-7e3c2d64.js → p-BCaKYPpD.js} +1 -1
  653. package/dist/realtimekit-ui/p-BCuMxcZN.js +1 -0
  654. package/dist/realtimekit-ui/p-BFTU3MAI.js +1 -0
  655. package/dist/realtimekit-ui/p-BIplIdLH.js +1 -0
  656. package/dist/realtimekit-ui/p-BJvHNbaa.js +1 -0
  657. package/dist/realtimekit-ui/p-BSWYrdZA.js +1 -0
  658. package/dist/realtimekit-ui/p-BWNToYSb.js +1 -0
  659. package/dist/realtimekit-ui/p-Bbls2zyp.js +1 -0
  660. package/dist/realtimekit-ui/p-C0vp-Q7v.js +1 -0
  661. package/dist/realtimekit-ui/p-C5Ah4uY5.js +1 -0
  662. package/dist/realtimekit-ui/p-CAqYddlg.js +1 -0
  663. package/dist/realtimekit-ui/{p-eccb6d78.js → p-CTFO-5XH.js} +1 -1
  664. package/dist/realtimekit-ui/p-CmmyVCoN.js +1 -0
  665. package/dist/realtimekit-ui/p-CqWk07gT.js +1 -0
  666. package/dist/realtimekit-ui/p-D9HGXWKc.js +1 -0
  667. package/dist/realtimekit-ui/p-DE1s0fDa.js +1 -0
  668. package/dist/realtimekit-ui/p-Daj_55_i.js +1 -0
  669. package/dist/realtimekit-ui/p-Dg4b2aZr.js +1 -0
  670. package/dist/realtimekit-ui/p-DpAk_WQ6.js +1 -0
  671. package/dist/realtimekit-ui/p-DxDYE5-a.js +1 -0
  672. package/dist/realtimekit-ui/p-FdeAvICb.js +1 -0
  673. package/dist/realtimekit-ui/p-GSFejkz7.js +1 -0
  674. package/dist/realtimekit-ui/{p-3306b122.entry.js → p-a060fa07.entry.js} +1 -1
  675. package/dist/realtimekit-ui/{p-e0426f17.entry.js → p-a8b77530.entry.js} +1 -1
  676. package/dist/realtimekit-ui/p-ae94a77b.entry.js +1 -0
  677. package/dist/realtimekit-ui/p-b77aab62.entry.js +1 -0
  678. package/dist/realtimekit-ui/p-b81bfd1b.entry.js +1 -0
  679. package/dist/realtimekit-ui/p-bb7b542e.entry.js +1 -0
  680. package/dist/realtimekit-ui/p-c0fb33e4.entry.js +1 -0
  681. package/dist/realtimekit-ui/{p-88a01a0c.entry.js → p-c25c6602.entry.js} +1 -1
  682. package/dist/realtimekit-ui/p-c90deeae.entry.js +1 -0
  683. package/dist/realtimekit-ui/p-ce4105e5.entry.js +1 -0
  684. package/dist/realtimekit-ui/p-d0baf267.entry.js +1 -0
  685. package/dist/realtimekit-ui/p-d39bd2e9.entry.js +1 -0
  686. package/dist/realtimekit-ui/p-d5ccf7d6.entry.js +1 -0
  687. package/dist/realtimekit-ui/{p-b89873a4.entry.js → p-d75ea8a3.entry.js} +1 -1
  688. package/dist/realtimekit-ui/p-db957a5c.entry.js +1 -0
  689. package/dist/realtimekit-ui/{p-d4a2594a.entry.js → p-ddd3808d.entry.js} +1 -1
  690. package/dist/realtimekit-ui/p-e0837ae7.entry.js +1 -0
  691. package/dist/realtimekit-ui/p-e12de42e.entry.js +1 -0
  692. package/dist/realtimekit-ui/p-e2f9a4fc.entry.js +1 -0
  693. package/dist/realtimekit-ui/{p-20390946.entry.js → p-e5293ed6.entry.js} +1 -1
  694. package/dist/realtimekit-ui/p-e87aa0f9.entry.js +1 -0
  695. package/dist/realtimekit-ui/p-e8823daa.entry.js +1 -0
  696. package/dist/realtimekit-ui/p-f101d6f9.entry.js +1 -0
  697. package/dist/realtimekit-ui/p-f4c228c8.entry.js +1 -0
  698. package/dist/realtimekit-ui/p-f5688e34.entry.js +1 -0
  699. package/dist/realtimekit-ui/p-fb973221.entry.js +1 -0
  700. package/dist/realtimekit-ui/p-fcde019e.entry.js +1 -0
  701. package/dist/realtimekit-ui/p-fd29249a.entry.js +1 -0
  702. package/dist/realtimekit-ui/p-gJCRRBX0.js +2 -0
  703. package/dist/realtimekit-ui/p-jvwnrxra.js +1 -0
  704. package/dist/realtimekit-ui/p-t72veIFj.js +1 -0
  705. package/dist/realtimekit-ui/p-uIA60Puf.js +1 -0
  706. package/dist/realtimekit-ui/p-vBfDtD_u.js +1 -0
  707. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  708. package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -1
  709. package/dist/types/components.d.ts +1752 -255
  710. package/dist/types/stencil-public-runtime.d.ts +193 -12
  711. package/dist/types/utils/init-error.d.ts +6 -2
  712. package/dist/types/utils/livestream.d.ts +60 -0
  713. package/dist/types/utils/sync-with-store/ui-store.d.ts +1 -1
  714. package/package.json +2 -3
  715. package/dist/cjs/ChatHead-777e6a2d.js +0 -13
  716. package/dist/cjs/debounce-6080cc73.js +0 -544
  717. package/dist/cjs/hark-c97d0a59.js +0 -301
  718. package/dist/components/p-00568bea.js +0 -159
  719. package/dist/components/p-026049ee.js +0 -81
  720. package/dist/components/p-03e354cd.js +0 -82
  721. package/dist/components/p-04ac37d4.js +0 -69
  722. package/dist/components/p-0529c72c.js +0 -218
  723. package/dist/components/p-084f7d6c.js +0 -95
  724. package/dist/components/p-08e39399.js +0 -199
  725. package/dist/components/p-0db812c2.js +0 -189
  726. package/dist/components/p-0e02697c.js +0 -85
  727. package/dist/components/p-1a7dd46a.js +0 -390
  728. package/dist/components/p-1cb276df.js +0 -104
  729. package/dist/components/p-240d48d1.js +0 -96
  730. package/dist/components/p-278a613b.js +0 -115
  731. package/dist/components/p-29e60132.js +0 -437
  732. package/dist/components/p-2f2b07a1.js +0 -168
  733. package/dist/components/p-303a7f1f.js +0 -122
  734. package/dist/components/p-32b95100.js +0 -128
  735. package/dist/components/p-32f14b1a.js +0 -260
  736. package/dist/components/p-36ad7fe2.js +0 -98
  737. package/dist/components/p-38d22d57.js +0 -11
  738. package/dist/components/p-3ae130f7.js +0 -178
  739. package/dist/components/p-3e0452c4.js +0 -48
  740. package/dist/components/p-3eedb9db.js +0 -68
  741. package/dist/components/p-3f882e7c.js +0 -299
  742. package/dist/components/p-42c2e598.js +0 -103
  743. package/dist/components/p-4351785c.js +0 -103
  744. package/dist/components/p-467abb0c.js +0 -159
  745. package/dist/components/p-48b6fb95.js +0 -327
  746. package/dist/components/p-4e02ee0f.js +0 -131
  747. package/dist/components/p-51b6f520.js +0 -43
  748. package/dist/components/p-549ab58f.js +0 -108
  749. package/dist/components/p-5654365f.js +0 -94
  750. package/dist/components/p-592cd396.js +0 -105
  751. package/dist/components/p-5995471c.js +0 -125
  752. package/dist/components/p-5c55e43b.js +0 -115
  753. package/dist/components/p-5d3174d1.js +0 -127
  754. package/dist/components/p-632cbbe7.js +0 -164
  755. package/dist/components/p-695e5dc5.js +0 -223
  756. package/dist/components/p-6a0a1a25.js +0 -101
  757. package/dist/components/p-6bd3b29c.js +0 -97
  758. package/dist/components/p-6c6cefb0.js +0 -224
  759. package/dist/components/p-70c0c7ce.js +0 -179
  760. package/dist/components/p-78db5933.js +0 -92
  761. package/dist/components/p-7d8d9693.js +0 -119
  762. package/dist/components/p-8133c228.js +0 -79
  763. package/dist/components/p-82df4307.js +0 -114
  764. package/dist/components/p-84deab1d.js +0 -126
  765. package/dist/components/p-85587a5c.js +0 -50
  766. package/dist/components/p-92ac782c.js +0 -37205
  767. package/dist/components/p-95721bd2.js +0 -159
  768. package/dist/components/p-96be6716.js +0 -120
  769. package/dist/components/p-9c89d7b1.js +0 -131
  770. package/dist/components/p-9f5d24b0.js +0 -191
  771. package/dist/components/p-a0a863fa.js +0 -61
  772. package/dist/components/p-a3c85ced.js +0 -177
  773. package/dist/components/p-a6cf88b5.js +0 -146
  774. package/dist/components/p-a83ccdbd.js +0 -40
  775. package/dist/components/p-a9d577bb.js +0 -271
  776. package/dist/components/p-ab37c121.js +0 -181
  777. package/dist/components/p-ae373651.js +0 -4028
  778. package/dist/components/p-b1a93be0.js +0 -1945
  779. package/dist/components/p-b1a9a7c4.js +0 -214
  780. package/dist/components/p-b1aeb013.js +0 -113
  781. package/dist/components/p-b29d03cf.js +0 -77
  782. package/dist/components/p-b4068392.js +0 -60
  783. package/dist/components/p-b75297d7.js +0 -299
  784. package/dist/components/p-b98fd0eb.js +0 -102
  785. package/dist/components/p-bece0226.js +0 -141
  786. package/dist/components/p-bf64e0af.js +0 -76
  787. package/dist/components/p-c3c8f309.js +0 -127
  788. package/dist/components/p-c82e13b1.js +0 -92
  789. package/dist/components/p-c9f704c4.js +0 -349
  790. package/dist/components/p-cbdd7a99.js +0 -542
  791. package/dist/components/p-cedfbbd4.js +0 -105
  792. package/dist/components/p-cf1903b1.js +0 -60
  793. package/dist/components/p-cfa0b5c7.js +0 -26
  794. package/dist/components/p-d411c80b.js +0 -463
  795. package/dist/components/p-d48b4170.js +0 -159
  796. package/dist/components/p-d83124b1.js +0 -86
  797. package/dist/components/p-de0b23a0.js +0 -210
  798. package/dist/components/p-e0129657.js +0 -201
  799. package/dist/components/p-e8809896.js +0 -147
  800. package/dist/components/p-ea359bb7.js +0 -90
  801. package/dist/components/p-ea4aa3bf.js +0 -86
  802. package/dist/components/p-ed0fad6d.js +0 -166
  803. package/dist/components/p-efabd2ce.js +0 -58
  804. package/dist/components/p-f179a6ff.js +0 -80
  805. package/dist/components/p-f867ebba.js +0 -122
  806. package/dist/components/p-f9cbb223.js +0 -127
  807. package/dist/components/p-f9f08610.js +0 -157
  808. package/dist/esm/ChatHead-148558a8.js +0 -11
  809. package/dist/esm/ResizeObserver.es-02979d4e.js +0 -928
  810. package/dist/esm/TextMessage-0ab2db20.js +0 -67
  811. package/dist/esm/browser-24d8ab3e.js +0 -3
  812. package/dist/esm/config-f3f01b9a.js +0 -352
  813. package/dist/esm/date-b1f78dea.js +0 -32
  814. package/dist/esm/debounce-0169a54d.js +0 -542
  815. package/dist/esm/debounce-430cbf00.js +0 -329
  816. package/dist/esm/file-6114f1a9.js +0 -57
  817. package/dist/esm/full-screen-d36ffc68.js +0 -50
  818. package/dist/esm/grid-a3ca5a3e.js +0 -96
  819. package/dist/esm/hark-6327d91e.js +0 -299
  820. package/dist/esm/index-3f51790f.js +0 -224
  821. package/dist/esm/index-b81ca899.js +0 -92
  822. package/dist/esm/join-error-e87be64a.js +0 -29
  823. package/dist/esm/merge-201ecd5c.js +0 -820
  824. package/dist/esm/notification-1ebf7700.js +0 -37
  825. package/dist/esm/scroll-2d8e810c.js +0 -13
  826. package/dist/esm/sidebar-a13dc215.js +0 -49
  827. package/dist/esm/ui-store-1bc7abc6.js +0 -4033
  828. package/dist/realtimekit-ui/p-012cd22a.entry.js +0 -1
  829. package/dist/realtimekit-ui/p-026e8157.entry.js +0 -1
  830. package/dist/realtimekit-ui/p-083e53cc.entry.js +0 -1
  831. package/dist/realtimekit-ui/p-0bd95245.entry.js +0 -1
  832. package/dist/realtimekit-ui/p-1e19ef2c.entry.js +0 -1
  833. package/dist/realtimekit-ui/p-217dcd9f.entry.js +0 -1
  834. package/dist/realtimekit-ui/p-26ffb189.entry.js +0 -1
  835. package/dist/realtimekit-ui/p-3540d2b0.entry.js +0 -1
  836. package/dist/realtimekit-ui/p-3707f1e0.entry.js +0 -1
  837. package/dist/realtimekit-ui/p-39c48b22.entry.js +0 -1
  838. package/dist/realtimekit-ui/p-3f882e7c.js +0 -1
  839. package/dist/realtimekit-ui/p-41fa7b4f.js +0 -1
  840. package/dist/realtimekit-ui/p-44fb5d40.entry.js +0 -1
  841. package/dist/realtimekit-ui/p-4564c9ff.entry.js +0 -1
  842. package/dist/realtimekit-ui/p-4ec77793.js +0 -1
  843. package/dist/realtimekit-ui/p-548f72ee.entry.js +0 -1
  844. package/dist/realtimekit-ui/p-5564adad.entry.js +0 -1
  845. package/dist/realtimekit-ui/p-5623d82e.entry.js +0 -1
  846. package/dist/realtimekit-ui/p-5862bcba.entry.js +0 -1
  847. package/dist/realtimekit-ui/p-62c4d1ba.entry.js +0 -1
  848. package/dist/realtimekit-ui/p-667c84b1.js +0 -1
  849. package/dist/realtimekit-ui/p-6b177ee6.entry.js +0 -1
  850. package/dist/realtimekit-ui/p-6c9a2464.entry.js +0 -1
  851. package/dist/realtimekit-ui/p-7649168e.entry.js +0 -1
  852. package/dist/realtimekit-ui/p-76f87172.entry.js +0 -1
  853. package/dist/realtimekit-ui/p-79060698.entry.js +0 -1
  854. package/dist/realtimekit-ui/p-7bdd688b.entry.js +0 -1
  855. package/dist/realtimekit-ui/p-7e4a3510.entry.js +0 -1
  856. package/dist/realtimekit-ui/p-80be0156.entry.js +0 -1
  857. package/dist/realtimekit-ui/p-85818728.entry.js +0 -1
  858. package/dist/realtimekit-ui/p-873a645c.entry.js +0 -1
  859. package/dist/realtimekit-ui/p-8c971978.entry.js +0 -1
  860. package/dist/realtimekit-ui/p-8cc4f116.entry.js +0 -1
  861. package/dist/realtimekit-ui/p-8edfe6fa.entry.js +0 -1
  862. package/dist/realtimekit-ui/p-8fa0ea33.entry.js +0 -1
  863. package/dist/realtimekit-ui/p-91c8f9d1.entry.js +0 -1
  864. package/dist/realtimekit-ui/p-93f88675.entry.js +0 -1
  865. package/dist/realtimekit-ui/p-9727a165.js +0 -1
  866. package/dist/realtimekit-ui/p-a0471508.entry.js +0 -1
  867. package/dist/realtimekit-ui/p-a056fd35.entry.js +0 -1
  868. package/dist/realtimekit-ui/p-a2693bee.entry.js +0 -1
  869. package/dist/realtimekit-ui/p-a47c017b.entry.js +0 -1
  870. package/dist/realtimekit-ui/p-a599f720.js +0 -2
  871. package/dist/realtimekit-ui/p-a9ab826e.entry.js +0 -1
  872. package/dist/realtimekit-ui/p-ae0bb894.js +0 -1
  873. package/dist/realtimekit-ui/p-b1a93be0.js +0 -1
  874. package/dist/realtimekit-ui/p-b27886ff.entry.js +0 -1
  875. package/dist/realtimekit-ui/p-b3f1ad3b.entry.js +0 -1
  876. package/dist/realtimekit-ui/p-b86e3e01.entry.js +0 -1
  877. package/dist/realtimekit-ui/p-bde05d24.entry.js +0 -1
  878. package/dist/realtimekit-ui/p-c57e0778.entry.js +0 -1
  879. package/dist/realtimekit-ui/p-c6a8ef1e.entry.js +0 -1
  880. package/dist/realtimekit-ui/p-c8bc3bb1.entry.js +0 -1
  881. package/dist/realtimekit-ui/p-c8f7b427.entry.js +0 -1
  882. package/dist/realtimekit-ui/p-c9d62ba7.entry.js +0 -1
  883. package/dist/realtimekit-ui/p-cbdd7a99.js +0 -1
  884. package/dist/realtimekit-ui/p-cfa0b5c7.js +0 -1
  885. package/dist/realtimekit-ui/p-d0959773.entry.js +0 -1
  886. package/dist/realtimekit-ui/p-d59e0ecc.entry.js +0 -1
  887. package/dist/realtimekit-ui/p-d790f2be.entry.js +0 -1
  888. package/dist/realtimekit-ui/p-d7fd359f.entry.js +0 -1
  889. package/dist/realtimekit-ui/p-daf01d45.entry.js +0 -1
  890. package/dist/realtimekit-ui/p-db2a6aed.entry.js +0 -1
  891. package/dist/realtimekit-ui/p-de170ad4.entry.js +0 -1
  892. package/dist/realtimekit-ui/p-de31f5b0.entry.js +0 -1
  893. package/dist/realtimekit-ui/p-deaae495.entry.js +0 -1
  894. package/dist/realtimekit-ui/p-e59cc7d0.entry.js +0 -1
  895. package/dist/realtimekit-ui/p-ea03b1a0.entry.js +0 -1
  896. package/dist/realtimekit-ui/p-ede50497.entry.js +0 -1
  897. package/dist/realtimekit-ui/p-f47d4fe8.js +0 -1
  898. package/dist/realtimekit-ui/p-f52fdfb4.entry.js +0 -1
  899. package/dist/realtimekit-ui/p-fd80c28e.entry.js +0 -1
  900. package/dist/realtimekit-ui/p-ff971eea.entry.js +0 -1
  901. package/loader/package.json +0 -11
  902. /package/dist/cjs/{ResizeObserver.es-ba961f16.js → ResizeObserver.es-26EdCpEA.js} +0 -0
  903. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  904. /package/dist/cjs/{browser-5538db4d.js → browser-qKzDfwbO.js} +0 -0
  905. /package/dist/cjs/{date-61ffcd0a.js → date-CObAPgSZ.js} +0 -0
  906. /package/dist/cjs/{full-screen-b02d13dd.js → full-screen-BRlJJI9n.js} +0 -0
  907. /package/dist/cjs/{grid-edc342a7.js → grid-D_7WOWNI.js} +0 -0
  908. /package/dist/cjs/{join-error-c1eed98e.js → join-error-CZSJQxsP.js} +0 -0
  909. /package/dist/cjs/{scroll-c6404609.js → scroll-uQ4eWvC-.js} +0 -0
  910. /package/dist/cjs/{string-9bce3253.js → string-C1A6N-tA.js} +0 -0
  911. /package/dist/{realtimekit-ui/p-0752f2ba.js → components/p-BIplIdLH.js} +0 -0
  912. /package/dist/{realtimekit-ui/p-05186172.js → components/p-CAqYddlg.js} +0 -0
  913. /package/dist/{realtimekit-ui/p-b13ddb7d.js → components/p-CmmyVCoN.js} +0 -0
  914. /package/dist/{realtimekit-ui/p-3974d97a.js → components/p-GSFejkz7.js} +0 -0
  915. /package/dist/{realtimekit-ui/p-382270d8.js → components/p-jvwnrxra.js} +0 -0
  916. /package/dist/{realtimekit-ui/p-f7c2daba.js → components/p-vBfDtD_u.js} +0 -0
  917. /package/dist/{components/p-f47d4fe8.js → esm/ResizeObserver.es-FdeAvICb.js} +0 -0
  918. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  919. /package/dist/{components/p-05186172.js → esm/browser-CAqYddlg.js} +0 -0
  920. /package/dist/{components/p-382270d8.js → esm/date-jvwnrxra.js} +0 -0
  921. /package/dist/{components/p-3974d97a.js → esm/full-screen-GSFejkz7.js} +0 -0
  922. /package/dist/{components/p-b13ddb7d.js → esm/grid-CmmyVCoN.js} +0 -0
  923. /package/dist/{components/p-f7c2daba.js → esm/join-error-vBfDtD_u.js} +0 -0
  924. /package/dist/{components/p-0752f2ba.js → esm/scroll-BIplIdLH.js} +0 -0
  925. /package/dist/esm/{string-068ce30a.js → string-vBD2htwQ.js} +0 -0
  926. /package/dist/realtimekit-ui/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  927. /package/dist/realtimekit-ui/{p-6f211c3e.js → p-vBD2htwQ.js} +0 -0
@@ -1,313 +1 @@
1
- import { p as proxyCustomElement, H, e as createEvent, w as writeTask, h, c as Host, B as Build } from './p-ae373651.js';
2
- import { e as defaultIconPack, i as useLanguage } from './p-d5a12339.js';
3
- import { c as chatUnreadTimestamps } from './p-a83ccdbd.js';
4
- import { d as differenceInMinutes, f as formatDateTime, e as elapsedDuration } from './p-382270d8.js';
5
- import { s as smoothScrollToBottom } from './p-0752f2ba.js';
6
- import { S as SyncWithStore } from './p-bd10fae6.js';
7
- import { d as defineCustomElement$e } from './p-ea359bb7.js';
8
- import { d as defineCustomElement$d } from './p-85587a5c.js';
9
- import { d as defineCustomElement$c } from './p-04ac37d4.js';
10
- import { d as defineCustomElement$b } from './p-3e0452c4.js';
11
- import { d as defineCustomElement$a } from './p-78db5933.js';
12
- import { d as defineCustomElement$9 } from './p-549ab58f.js';
13
- import { d as defineCustomElement$8 } from './p-b98fd0eb.js';
14
- import { d as defineCustomElement$7 } from './p-a0a863fa.js';
15
- import { d as defineCustomElement$6 } from './p-b4068392.js';
16
- import { d as defineCustomElement$5 } from './p-84deab1d.js';
17
- import { d as defineCustomElement$4 } from './p-cf1903b1.js';
18
- import { d as defineCustomElement$3 } from './p-51b6f520.js';
19
- import { d as defineCustomElement$2 } from './p-bece0226.js';
20
-
21
- const rtkChatMessagesUiCss = ":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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));word-break:break-word}.chat-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);flex:1 0 0px;overflow-y:scroll}.chat-container .spacer{flex:1 1 auto}.chat-container .chat{flex:0 0 auto}.file-picker{display:none}.chat .head{margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.chat .head .name{margin-right:var(--rtk-space-2, 8px);font-size:12px;font-weight:700}.chat .head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat .body{overflow-wrap:break-word;line-height:1.5}.chat .body .emoji{font-size:24px}p{margin:var(--rtk-space-0, 0px);line-height:1.5}rtk-message-view{margin-top:var(--rtk-space-2, 8px);display:block;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));box-sizing:border-box}rtk-message-view::part(message){flex-grow:1}*[is-continued] rtk-message-view{margin-top:var(--rtk-space-1, 4px)}.pinned .message-wrapper{position:relative}.pinned .pin-button{position:absolute;right:var(--rtk-space-4, 16px);top:calc(var(--rtk-space-4, 16px) * -1);display:flex;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.pinned .pin-button:hover rtk-button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-bg-opacity))}.pinned rtk-message-view{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}a{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));text-decoration-line:none}a:hover{text-decoration-line:underline}.new-chat-marker{display:flex;width:100%;align-items:center;gap:var(--rtk-space-2, 8px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.new-chat-marker::before{content:'';height:1px;flex:1 1 0%;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.show-new-messages-ctr{pointer-events:none;display:flex;justify-content:flex-end;padding:var(--rtk-space-3, 12px);z-index:0;margin-top:calc(var(--rtk-space-14, 56px) * -1)}.show-new-messages{pointer-events:auto;--tw-translate-y:var(--rtk-space-16, 64px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.show-new-messages.active{--tw-translate-y:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}";
22
- const RtkChatMessagesUiStyle0 = rtkChatMessagesUiCss;
23
-
24
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
25
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
26
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
27
- r = Reflect.decorate(decorators, target, key, desc);
28
- else
29
- for (var i = decorators.length - 1; i >= 0; i--)
30
- if (d = decorators[i])
31
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
32
- return c > 3 && r && Object.defineProperty(target, key, r), r;
33
- };
34
- let hasShownDeprecationWarning = false;
35
- const RtkChatMessagesUi$1 = /*@__PURE__*/ proxyCustomElement(class RtkChatMessagesUi extends H {
36
- constructor() {
37
- super();
38
- this.__registerHost();
39
- this.__attachShadow();
40
- this.onPinMessage = createEvent(this, "pinMessage", 7);
41
- this.stateUpdate = createEvent(this, "rtkStateUpdate", 7);
42
- this.observingEl = [];
43
- this.autoScrollEnabled = true;
44
- /** Chat Messages */
45
- this.messages = [];
46
- /** Can current user pin/unpin messages */
47
- this.canPinMessages = false;
48
- /** Icon pack */
49
- this.iconPack = defaultIconPack;
50
- /** Language */
51
- this.t = useLanguage();
52
- this.now = new Date();
53
- this.showLatestMessageButton = false;
54
- this.onScroll = (e) => {
55
- const target = e.target;
56
- writeTask(() => {
57
- const { scrollTop, clientHeight, scrollHeight } = target;
58
- const fromTop = scrollTop + clientHeight;
59
- if (fromTop + 10 >= scrollHeight) {
60
- // at bottom
61
- this.autoScrollEnabled = true;
62
- this.showLatestMessageButton = false;
63
- }
64
- else {
65
- // not at bottom
66
- this.autoScrollEnabled = false;
67
- }
68
- });
69
- };
70
- this.scrollToBottom = () => {
71
- smoothScrollToBottom(this.$chat);
72
- };
73
- this.observeMessage = (el) => {
74
- if (el) {
75
- this.observingEl.push(el);
76
- }
77
- try {
78
- this.intersectionObserver.observe(el);
79
- }
80
- catch (_a) { }
81
- };
82
- this.getMessageActions = (message) => {
83
- const actions = [];
84
- if (!message.pinned && this.canPinMessages) {
85
- actions.push({
86
- id: 'pin_message',
87
- label: this.t('pin'),
88
- icon: this.iconPack.pin,
89
- });
90
- }
91
- return actions;
92
- };
93
- this.onMessageActionHandler = (actionId, message) => {
94
- switch (actionId) {
95
- case 'pin_message':
96
- this.onPinMessage.emit(message);
97
- break;
98
- }
99
- };
100
- }
101
- connectedCallback() {
102
- var _a;
103
- if (Build.isDev && !hasShownDeprecationWarning) {
104
- hasShownDeprecationWarning = true;
105
- // eslint-disable-next-line no-console
106
- console.warn('[realtimekit-ui] `rtk-chat-messages-ui` is deprecated and will be removed in a future release. Use `rtk-chat-messages-ui-paginated` instead.');
107
- }
108
- this.lastReadTimestamp = (_a = chatUnreadTimestamps['everyone']) !== null && _a !== void 0 ? _a : new Date('0001-01-01T00:00:00Z');
109
- this.intersectionObserver = new IntersectionObserver((entries) => {
110
- if (!document.hasFocus())
111
- return;
112
- writeTask(() => {
113
- for (const entry of entries) {
114
- if (entry.isIntersecting) {
115
- const currTimestamp = parseInt(entry.target.getAttribute('data-timestamp'));
116
- if (currTimestamp > this.lastReadTimestamp.getTime()) {
117
- // this.lastReadTimestamp = new Date();
118
- chatUnreadTimestamps[this.selectedGroup] = new Date();
119
- }
120
- }
121
- }
122
- });
123
- });
124
- // update current time every minute
125
- const updateNow = () => {
126
- this.now = new Date();
127
- this.timeout = setTimeout(() => {
128
- if (this.request != null) {
129
- this.request = requestAnimationFrame(updateNow);
130
- }
131
- }, 60 * 1000);
132
- };
133
- this.request = requestAnimationFrame(updateNow);
134
- this.chatChanged(this.messages);
135
- }
136
- componentDidLoad() {
137
- this.$chat.addEventListener('scroll', this.onScroll);
138
- this.$chat.scrollTop = this.$chat.scrollHeight;
139
- }
140
- componentDidRender() {
141
- if (this.autoScrollEnabled) {
142
- smoothScrollToBottom(this.$chat);
143
- }
144
- else if (this.autoScrollEnabled == null) {
145
- // scroll to bottom on first render
146
- smoothScrollToBottom(this.$chat, false);
147
- }
148
- }
149
- chatChanged(messages) {
150
- if (this.$chat == null)
151
- return;
152
- if (this.autoScrollEnabled || this.$chat.clientHeight === this.$chat.scrollHeight)
153
- return;
154
- for (let i = messages.length - 1; i >= 0; i--) {
155
- if (messages[i].message.time > this.lastReadTimestamp &&
156
- messages[i].message.userId !== this.selfUserId) {
157
- // show latest message button when you have new messages
158
- // and chat container is scrollable and autoscroll is not enabled
159
- this.showLatestMessageButton = true;
160
- break;
161
- }
162
- }
163
- }
164
- selectedBucketChanged() {
165
- this.autoScrollEnabled = undefined;
166
- this.observingEl.forEach((el) => {
167
- this.intersectionObserver.unobserve(el);
168
- });
169
- this.observingEl = [];
170
- }
171
- disconnectedCallback() {
172
- this.$chat.removeEventListener('scroll', this.onScroll);
173
- this.intersectionObserver.disconnect();
174
- clearTimeout(this.timeout);
175
- cancelAnimationFrame(this.request);
176
- }
177
- render() {
178
- var _a;
179
- let prevMessage = null;
180
- let reachedFirstUnread = false;
181
- return (h(Host, { key: '5fa9062dc2937e4eb9d1210808a91c430a54535d' }, h("div", { key: '6a45ba033904cc222f4461262049d71c801a8b7c', class: "chat-container scrollbar", ref: (el) => (this.$chat = el), part: "container" }, h("div", { key: 'f9cfd2960e08ddf5f024cce91f9aa6f247ebe54f', class: "spacer", part: "spacer" }), h("div", { key: 'ec66c68f1d3876be4767279fe25022ca6994f1a0', class: "chat", part: "chat" }, (_a = this.messages) === null || _a === void 0 ? void 0 : _a.map((item) => {
182
- if (item.type === 'chat') {
183
- const { message } = item;
184
- const isSelfMessage = message.userId === this.selfUserId;
185
- const isUnread = !isSelfMessage &&
186
- !this.autoScrollEnabled &&
187
- !reachedFirstUnread &&
188
- message.time > this.lastReadTimestamp;
189
- if (isUnread)
190
- reachedFirstUnread = isUnread;
191
- const isContinued = !isUnread &&
192
- message.userId === (prevMessage === null || prevMessage === void 0 ? void 0 : prevMessage.userId) &&
193
- differenceInMinutes(message.time, prevMessage === null || prevMessage === void 0 ? void 0 : prevMessage.time) < 2;
194
- prevMessage = message;
195
- return (h("div", { "is-continued": isContinued, key: item.message.id, ref: this.observeMessage, "data-timestamp": message.time.getTime(), class: message.pinned ? 'pinned' : '' }, isUnread && (h("div", { class: "new-chat-marker", part: "new-chat-marker" }, this.t('chat.new'))), h("div", { class: "message-wrapper" }, h("rtk-message-view", { time: message.time, actions: this.getMessageActions(message), authorName: message.displayName, hideAuthorName: true, hideAvatar: true, hideMetadata: true, viewType: 'incoming', variant: "bubble", onAction: (event) => this.onMessageActionHandler(event.detail, message) }, !isContinued && (h("div", { class: "head" }, h("div", { class: "name" }, message.displayName), !!message.time && (h("div", { class: "time", title: formatDateTime(message.time) }, elapsedDuration(message.time, new Date(Date.now())))))), h("div", { class: "body" }, message.type === 'text' && (h("rtk-text-message-view", { text: message.message, isMarkdown: true })), message.type === 'file' && (h("rtk-file-message-view", { name: message.name, url: message.link, size: message.size })), message.type === 'image' && (h("rtk-image-message-view", { url: message.link, onPreview: () => {
196
- this.stateUpdate.emit({ image: message });
197
- } })))), message.pinned && (h("div", { class: "pin-button", part: "pin-button" }, h("rtk-tooltip", { label: this.t('unpin') }, h("rtk-button", { kind: "icon", variant: "ghost", onClick: () => this.onMessageActionHandler('pin_message', message), disabled: !this.canPinMessages }, h("rtk-icon", { icon: this.iconPack.pin, size: "sm" }))))))));
198
- }
199
- return null;
200
- }))), h("div", { key: 'eae0a23fbe7ba44722539e98ac74eb1406bbc162', class: "show-new-messages-ctr" }, h("rtk-button", { key: '05c860848174c514a28bb475157c2d81c78538ff', class: {
201
- 'show-new-messages': true,
202
- active: this.showLatestMessageButton,
203
- }, kind: "icon", part: "show-new-messages", onClick: this.scrollToBottom }, h("rtk-icon", { key: '99b6ad3515cfbdf400cb96ca9cc2bbfd83a7deb9', icon: this.iconPack.chevron_down })))));
204
- }
205
- static get watchers() { return {
206
- "messages": ["chatChanged"],
207
- "selectedGroup": ["selectedBucketChanged"]
208
- }; }
209
- static get style() { return RtkChatMessagesUiStyle0; }
210
- }, [1, "rtk-chat-messages-ui", {
211
- "selectedGroup": [1, "selected-group"],
212
- "messages": [16],
213
- "selfUserId": [1, "self-user-id"],
214
- "canPinMessages": [4, "can-pin-messages"],
215
- "size": [513],
216
- "iconPack": [16],
217
- "t": [16],
218
- "now": [32],
219
- "showLatestMessageButton": [32]
220
- }, undefined, {
221
- "messages": ["chatChanged"],
222
- "selectedGroup": ["selectedBucketChanged"]
223
- }]);
224
- __decorate([
225
- SyncWithStore()
226
- ], RtkChatMessagesUi$1.prototype, "iconPack", void 0);
227
- __decorate([
228
- SyncWithStore()
229
- ], RtkChatMessagesUi$1.prototype, "t", void 0);
230
- function defineCustomElement$1() {
231
- if (typeof customElements === "undefined") {
232
- return;
233
- }
234
- const components = ["rtk-chat-messages-ui", "rtk-avatar", "rtk-button", "rtk-file-message-view", "rtk-icon", "rtk-image-message-view", "rtk-markdown-view", "rtk-menu", "rtk-menu-item", "rtk-menu-list", "rtk-message-view", "rtk-spinner", "rtk-text-message-view", "rtk-tooltip"];
235
- components.forEach(tagName => { switch (tagName) {
236
- case "rtk-chat-messages-ui":
237
- if (!customElements.get(tagName)) {
238
- customElements.define(tagName, RtkChatMessagesUi$1);
239
- }
240
- break;
241
- case "rtk-avatar":
242
- if (!customElements.get(tagName)) {
243
- defineCustomElement$e();
244
- }
245
- break;
246
- case "rtk-button":
247
- if (!customElements.get(tagName)) {
248
- defineCustomElement$d();
249
- }
250
- break;
251
- case "rtk-file-message-view":
252
- if (!customElements.get(tagName)) {
253
- defineCustomElement$c();
254
- }
255
- break;
256
- case "rtk-icon":
257
- if (!customElements.get(tagName)) {
258
- defineCustomElement$b();
259
- }
260
- break;
261
- case "rtk-image-message-view":
262
- if (!customElements.get(tagName)) {
263
- defineCustomElement$a();
264
- }
265
- break;
266
- case "rtk-markdown-view":
267
- if (!customElements.get(tagName)) {
268
- defineCustomElement$9();
269
- }
270
- break;
271
- case "rtk-menu":
272
- if (!customElements.get(tagName)) {
273
- defineCustomElement$8();
274
- }
275
- break;
276
- case "rtk-menu-item":
277
- if (!customElements.get(tagName)) {
278
- defineCustomElement$7();
279
- }
280
- break;
281
- case "rtk-menu-list":
282
- if (!customElements.get(tagName)) {
283
- defineCustomElement$6();
284
- }
285
- break;
286
- case "rtk-message-view":
287
- if (!customElements.get(tagName)) {
288
- defineCustomElement$5();
289
- }
290
- break;
291
- case "rtk-spinner":
292
- if (!customElements.get(tagName)) {
293
- defineCustomElement$4();
294
- }
295
- break;
296
- case "rtk-text-message-view":
297
- if (!customElements.get(tagName)) {
298
- defineCustomElement$3();
299
- }
300
- break;
301
- case "rtk-tooltip":
302
- if (!customElements.get(tagName)) {
303
- defineCustomElement$2();
304
- }
305
- break;
306
- } });
307
- }
308
- defineCustomElement$1();
309
-
310
- const RtkChatMessagesUi = RtkChatMessagesUi$1;
311
- const defineCustomElement = defineCustomElement$1;
312
-
313
- export { RtkChatMessagesUi, defineCustomElement };
1
+ import{p as t,H as e,c as a,w as s,B as r,h as i,d as o,t as c}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as n,i as l}from"./p-De8YQHVd.js";import{c as p}from"./p-Dguuxuf6.js";import{d,f as m,e as h}from"./p-jvwnrxra.js";import{s as k}from"./p-BIplIdLH.js";import{S as b}from"./p-CphAED3J.js";import{d as g}from"./p-DEOaS443.js";import{d as v}from"./p-D6vw6bT2.js";import{d as u}from"./p-B5-LNbkp.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-DU5mNJqK.js";import{d as x}from"./p-oXrlIvqH.js";import{d as y}from"./p-D0bZYAmS.js";import{d as j}from"./p-CqEcYX16.js";import{d as E}from"./p-7zlNLqpS.js";import{d as D}from"./p-ChuKD7QS.js";import{d as C}from"./p-BoGbJ5PX.js";import{d as B}from"./p-sSs7a3Ms.js";import{d as z}from"./p-DHSRRtn3.js";var Y=function(t,e,a,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(o=(i<3?r(o):i>3?r(e,a,o):r(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};let A=!1;const S=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onPinMessage=a(this,"pinMessage",7),this.stateUpdate=a(this,"rtkStateUpdate",7),this.observingEl=[],this.autoScrollEnabled=!0,this.messages=[],this.canPinMessages=!1,this.iconPack=n,this.t=l(),this.now=new Date,this.showLatestMessageButton=!1,this.onScroll=t=>{const e=t.target;s((()=>{const{scrollTop:t,clientHeight:a,scrollHeight:s}=e;t+a+10>=s?(this.autoScrollEnabled=!0,this.showLatestMessageButton=!1):this.autoScrollEnabled=!1}))},this.scrollToBottom=()=>{k(this.$chat)},this.observeMessage=t=>{t&&this.observingEl.push(t);try{this.intersectionObserver.observe(t)}catch(t){}},this.getMessageActions=t=>{const e=[];return!t.pinned&&this.canPinMessages&&e.push({id:"pin_message",label:this.t("pin"),icon:this.iconPack.pin}),e},this.onMessageActionHandler=(t,e)=>{"pin_message"===t&&this.onPinMessage.emit(e)}}connectedCallback(){var t;r.isDev&&!A&&(A=!0,console.warn("[realtimekit-ui] `rtk-chat-messages-ui` is deprecated and will be removed in a future release. Use `rtk-chat-messages-ui-paginated` instead.")),this.lastReadTimestamp=null!==(t=p.everyone)&&void 0!==t?t:new Date("0001-01-01T00:00:00Z"),this.intersectionObserver=new IntersectionObserver((t=>{document.hasFocus()&&s((()=>{for(const e of t)e.isIntersecting&&parseInt(e.target.getAttribute("data-timestamp"))>this.lastReadTimestamp.getTime()&&(p[this.selectedGroup]=new Date)}))}));const e=()=>{this.now=new Date,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(e))}),6e4)};this.request=requestAnimationFrame(e),this.chatChanged(this.messages)}componentDidLoad(){this.$chat.addEventListener("scroll",this.onScroll),this.$chat.scrollTop=this.$chat.scrollHeight}componentDidRender(){this.autoScrollEnabled?k(this.$chat):null==this.autoScrollEnabled&&k(this.$chat,!1)}chatChanged(t){if(null!=this.$chat&&!this.autoScrollEnabled&&this.$chat.clientHeight!==this.$chat.scrollHeight)for(let e=t.length-1;e>=0;e--)if(t[e].message.time>this.lastReadTimestamp&&t[e].message.userId!==this.selfUserId){this.showLatestMessageButton=!0;break}}selectedBucketChanged(){this.autoScrollEnabled=void 0,this.observingEl.forEach((t=>{this.intersectionObserver.unobserve(t)})),this.observingEl=[]}disconnectedCallback(){this.$chat.removeEventListener("scroll",this.onScroll),this.intersectionObserver.disconnect(),clearTimeout(this.timeout),cancelAnimationFrame(this.request)}render(){var t;let e=null,a=!1;return i(o,{key:"5fa9062dc2937e4eb9d1210808a91c430a54535d"},i("div",{key:"6a45ba033904cc222f4461262049d71c801a8b7c",class:"chat-container scrollbar",ref:t=>this.$chat=t,part:"container"},i("div",{key:"f9cfd2960e08ddf5f024cce91f9aa6f247ebe54f",class:"spacer",part:"spacer"}),i("div",{key:"ec66c68f1d3876be4767279fe25022ca6994f1a0",class:"chat",part:"chat"},null===(t=this.messages)||void 0===t?void 0:t.map((t=>{if("chat"===t.type){const{message:s}=t,r=!(s.userId===this.selfUserId)&&!this.autoScrollEnabled&&!a&&s.time>this.lastReadTimestamp;r&&(a=r);const o=!r&&s.userId===(null==e?void 0:e.userId)&&d(s.time,null==e?void 0:e.time)<2;return e=s,i("div",{"is-continued":o,key:t.message.id,ref:this.observeMessage,"data-timestamp":s.time.getTime(),class:s.pinned?"pinned":""},r&&i("div",{class:"new-chat-marker",part:"new-chat-marker"},this.t("chat.new")),i("div",{class:"message-wrapper"},i("rtk-message-view",{time:s.time,actions:this.getMessageActions(s),authorName:s.displayName,hideAuthorName:!0,hideAvatar:!0,hideMetadata:!0,viewType:"incoming",variant:"bubble",onAction:t=>this.onMessageActionHandler(t.detail,s)},!o&&i("div",{class:"head"},i("div",{class:"name"},s.displayName),!!s.time&&i("div",{class:"time",title:m(s.time)},h(s.time,new Date(Date.now())))),i("div",{class:"body"},"text"===s.type&&i("rtk-text-message-view",{text:s.message,isMarkdown:!0}),"file"===s.type&&i("rtk-file-message-view",{name:s.name,url:s.link,size:s.size}),"image"===s.type&&i("rtk-image-message-view",{url:s.link,onPreview:()=>{this.stateUpdate.emit({image:s})}}))),s.pinned&&i("div",{class:"pin-button",part:"pin-button"},i("rtk-tooltip",{label:this.t("unpin")},i("rtk-button",{kind:"icon",variant:"ghost",onClick:()=>this.onMessageActionHandler("pin_message",s),disabled:!this.canPinMessages},i("rtk-icon",{icon:this.iconPack.pin,size:"sm"}))))))}return null})))),i("div",{key:"eae0a23fbe7ba44722539e98ac74eb1406bbc162",class:"show-new-messages-ctr"},i("rtk-button",{key:"05c860848174c514a28bb475157c2d81c78538ff",class:{"show-new-messages":!0,active:this.showLatestMessageButton},kind:"icon",part:"show-new-messages",onClick:this.scrollToBottom},i("rtk-icon",{key:"99b6ad3515cfbdf400cb96ca9cc2bbfd83a7deb9",icon:this.iconPack.chevron_down}))))}static get watchers(){return{messages:[{chatChanged:0}],selectedGroup:[{selectedBucketChanged:0}]}}static get style(){return":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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));word-break:break-word}.chat-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);flex:1 0 0px;overflow-y:scroll}.chat-container .spacer{flex:1 1 auto}.chat-container .chat{flex:0 0 auto}.file-picker{display:none}.chat .head{margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.chat .head .name{margin-right:var(--rtk-space-2, 8px);font-size:12px;font-weight:700}.chat .head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat .body{overflow-wrap:break-word;line-height:1.5}.chat .body .emoji{font-size:24px}p{margin:var(--rtk-space-0, 0px);line-height:1.5}rtk-message-view{margin-top:var(--rtk-space-2, 8px);display:block;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));box-sizing:border-box}rtk-message-view::part(message){flex-grow:1}*[is-continued] rtk-message-view{margin-top:var(--rtk-space-1, 4px)}.pinned .message-wrapper{position:relative}.pinned .pin-button{position:absolute;right:var(--rtk-space-4, 16px);top:calc(var(--rtk-space-4, 16px) * -1);display:flex;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.pinned .pin-button:hover rtk-button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-bg-opacity))}.pinned rtk-message-view{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}a{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));text-decoration-line:none}a:hover{text-decoration-line:underline}.new-chat-marker{display:flex;width:100%;align-items:center;gap:var(--rtk-space-2, 8px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.new-chat-marker::before{content:'';height:1px;flex:1 1 0%;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.show-new-messages-ctr{pointer-events:none;display:flex;justify-content:flex-end;padding:var(--rtk-space-3, 12px);z-index:0;margin-top:calc(var(--rtk-space-14, 56px) * -1)}.show-new-messages{pointer-events:auto;--tw-translate-y:var(--rtk-space-16, 64px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.show-new-messages.active{--tw-translate-y:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}"}},[1,"rtk-chat-messages-ui",{selectedGroup:[1,"selected-group"],messages:[16],selfUserId:[1,"self-user-id"],canPinMessages:[4,"can-pin-messages"],size:[513],iconPack:[16],t:[16],now:[32],showLatestMessageButton:[32]},void 0,{messages:[{chatChanged:0}],selectedGroup:[{selectedBucketChanged:0}]}]);function H(){"undefined"!=typeof customElements&&["rtk-chat-messages-ui","rtk-avatar","rtk-button","rtk-file-message-view","rtk-icon","rtk-image-message-view","rtk-markdown-view","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-message-view","rtk-spinner","rtk-text-message-view","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-chat-messages-ui":customElements.get(c(t))||customElements.define(c(t),S);break;case"rtk-avatar":customElements.get(c(t))||g();break;case"rtk-button":customElements.get(c(t))||v();break;case"rtk-file-message-view":customElements.get(c(t))||u();break;case"rtk-icon":customElements.get(c(t))||f();break;case"rtk-image-message-view":customElements.get(c(t))||w();break;case"rtk-markdown-view":customElements.get(c(t))||x();break;case"rtk-menu":customElements.get(c(t))||y();break;case"rtk-menu-item":customElements.get(c(t))||j();break;case"rtk-menu-list":customElements.get(c(t))||E();break;case"rtk-message-view":customElements.get(c(t))||D();break;case"rtk-spinner":customElements.get(c(t))||C();break;case"rtk-text-message-view":customElements.get(c(t))||B();break;case"rtk-tooltip":customElements.get(c(t))||z()}}))}Y([b()],S.prototype,"iconPack",void 0),Y([b()],S.prototype,"t",void 0),H();const I=S,X=H;export{I as RtkChatMessagesUi,X as defineCustomElement}
@@ -1,147 +1 @@
1
- import { p as proxyCustomElement, H, h, c as Host } from './p-ae373651.js';
2
- import { e as defaultIconPack, i as useLanguage } from './p-d5a12339.js';
3
- import './p-a83ccdbd.js';
4
- import { S as SyncWithStore } from './p-bd10fae6.js';
5
- import { d as defineCustomElement$d } from './p-ea359bb7.js';
6
- import { d as defineCustomElement$c } from './p-85587a5c.js';
7
- import { d as defineCustomElement$b } from './p-de0b23a0.js';
8
- import { d as defineCustomElement$a } from './p-026049ee.js';
9
- import { d as defineCustomElement$9 } from './p-3e0452c4.js';
10
- import { d as defineCustomElement$8 } from './p-4351785c.js';
11
- import { d as defineCustomElement$7 } from './p-b98fd0eb.js';
12
- import { d as defineCustomElement$6 } from './p-a0a863fa.js';
13
- import { d as defineCustomElement$5 } from './p-b4068392.js';
14
- import { d as defineCustomElement$4 } from './p-29e60132.js';
15
- import { d as defineCustomElement$3 } from './p-cf1903b1.js';
16
- import { d as defineCustomElement$2 } from './p-3eedb9db.js';
17
-
18
- const rtkChatSearchResultsCss = ":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{display:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}";
19
- const RtkChatSearchResultsStyle0 = rtkChatSearchResultsCss;
20
-
21
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
24
- r = Reflect.decorate(decorators, target, key, desc);
25
- else
26
- for (var i = decorators.length - 1; i >= 0; i--)
27
- if (d = decorators[i])
28
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
29
- return c > 3 && r && Object.defineProperty(target, key, r), r;
30
- };
31
- const RtkChatSearchResults$1 = /*@__PURE__*/ proxyCustomElement(class RtkChatSearchResults extends H {
32
- constructor() {
33
- super();
34
- this.__registerHost();
35
- this.__attachShadow();
36
- /** Icon pack */
37
- this.iconPack = defaultIconPack;
38
- /** Language */
39
- this.t = useLanguage();
40
- this.pageSize = 50;
41
- /** NOTE(ikabra): Core APIs need to be implemented for this, this component is not being used inside chat UI and was broken as standalone. */
42
- this.searchMessages = async (_timestamp, _size, _reversed) => {
43
- return [];
44
- };
45
- this.nodeRenderer = (messages) => {
46
- return messages.map((message) => (h("rtk-chat-message", { key: message.id, message: message, disableControls: true })));
47
- };
48
- }
49
- render() {
50
- return (h(Host, { key: '4ea17889c442ac91c4bb54896c600d17290c0715' }, h("rtk-paginated-list", { key: '8fa700caf9b3a2c7329fb555baf1a979231fa71c', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer })));
51
- }
52
- static get style() { return RtkChatSearchResultsStyle0; }
53
- }, [1, "rtk-chat-search-results", {
54
- "meeting": [16],
55
- "query": [1],
56
- "channelId": [1, "channel-id"],
57
- "iconPack": [16],
58
- "t": [16]
59
- }]);
60
- __decorate([
61
- SyncWithStore()
62
- ], RtkChatSearchResults$1.prototype, "meeting", void 0);
63
- __decorate([
64
- SyncWithStore()
65
- ], RtkChatSearchResults$1.prototype, "iconPack", void 0);
66
- __decorate([
67
- SyncWithStore()
68
- ], RtkChatSearchResults$1.prototype, "t", void 0);
69
- function defineCustomElement$1() {
70
- if (typeof customElements === "undefined") {
71
- return;
72
- }
73
- const components = ["rtk-chat-search-results", "rtk-avatar", "rtk-button", "rtk-chat-message", "rtk-file-message", "rtk-icon", "rtk-image-message", "rtk-menu", "rtk-menu-item", "rtk-menu-list", "rtk-paginated-list", "rtk-spinner", "rtk-text-message"];
74
- components.forEach(tagName => { switch (tagName) {
75
- case "rtk-chat-search-results":
76
- if (!customElements.get(tagName)) {
77
- customElements.define(tagName, RtkChatSearchResults$1);
78
- }
79
- break;
80
- case "rtk-avatar":
81
- if (!customElements.get(tagName)) {
82
- defineCustomElement$d();
83
- }
84
- break;
85
- case "rtk-button":
86
- if (!customElements.get(tagName)) {
87
- defineCustomElement$c();
88
- }
89
- break;
90
- case "rtk-chat-message":
91
- if (!customElements.get(tagName)) {
92
- defineCustomElement$b();
93
- }
94
- break;
95
- case "rtk-file-message":
96
- if (!customElements.get(tagName)) {
97
- defineCustomElement$a();
98
- }
99
- break;
100
- case "rtk-icon":
101
- if (!customElements.get(tagName)) {
102
- defineCustomElement$9();
103
- }
104
- break;
105
- case "rtk-image-message":
106
- if (!customElements.get(tagName)) {
107
- defineCustomElement$8();
108
- }
109
- break;
110
- case "rtk-menu":
111
- if (!customElements.get(tagName)) {
112
- defineCustomElement$7();
113
- }
114
- break;
115
- case "rtk-menu-item":
116
- if (!customElements.get(tagName)) {
117
- defineCustomElement$6();
118
- }
119
- break;
120
- case "rtk-menu-list":
121
- if (!customElements.get(tagName)) {
122
- defineCustomElement$5();
123
- }
124
- break;
125
- case "rtk-paginated-list":
126
- if (!customElements.get(tagName)) {
127
- defineCustomElement$4();
128
- }
129
- break;
130
- case "rtk-spinner":
131
- if (!customElements.get(tagName)) {
132
- defineCustomElement$3();
133
- }
134
- break;
135
- case "rtk-text-message":
136
- if (!customElements.get(tagName)) {
137
- defineCustomElement$2();
138
- }
139
- break;
140
- } });
141
- }
142
- defineCustomElement$1();
143
-
144
- const RtkChatSearchResults = RtkChatSearchResults$1;
145
- const defineCustomElement = defineCustomElement$1;
146
-
147
- export { RtkChatSearchResults, defineCustomElement };
1
+ import{p as t,H as e,h as s,d as a,t as r}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as o,i as m}from"./p-De8YQHVd.js";import"./p-Dguuxuf6.js";import{S as i}from"./p-CphAED3J.js";import{d as c}from"./p-DEOaS443.js";import{d as n}from"./p-D6vw6bT2.js";import{d as p}from"./p-CQAMoQlr.js";import{d as l}from"./p-BRbb3tLk.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as f}from"./p-CBLUz_2s.js";import{d as u}from"./p-D0bZYAmS.js";import{d}from"./p-CqEcYX16.js";import{d as b}from"./p-7zlNLqpS.js";import{d as g}from"./p-ak2clYhw.js";import{d as h}from"./p-BoGbJ5PX.js";import{d as j}from"./p-BEOq_QN5.js";var E=function(t,e,s,a){var r,o=arguments.length,m=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)m=Reflect.decorate(t,e,s,a);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(m=(o<3?r(m):o>3?r(e,s,m):r(e,s))||m);return o>3&&m&&Object.defineProperty(e,s,m),m};const v=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=m(),this.pageSize=50,this.searchMessages=async()=>[],this.nodeRenderer=t=>t.map((t=>s("rtk-chat-message",{key:t.id,message:t,disableControls:!0})))}render(){return s(a,{key:"4ea17889c442ac91c4bb54896c600d17290c0715"},s("rtk-paginated-list",{key:"8fa700caf9b3a2c7329fb555baf1a979231fa71c",pageSize:this.pageSize,pagesAllowed:3,fetchData:this.searchMessages,createNodes:this.nodeRenderer}))}static get style(){return":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{display:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}"}},[1,"rtk-chat-search-results",{meeting:[16],query:[1],channelId:[1,"channel-id"],iconPack:[16],t:[16]}]);function y(){"undefined"!=typeof customElements&&["rtk-chat-search-results","rtk-avatar","rtk-button","rtk-chat-message","rtk-file-message","rtk-icon","rtk-image-message","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-paginated-list","rtk-spinner","rtk-text-message"].forEach((t=>{switch(t){case"rtk-chat-search-results":customElements.get(r(t))||customElements.define(r(t),v);break;case"rtk-avatar":customElements.get(r(t))||c();break;case"rtk-button":customElements.get(r(t))||n();break;case"rtk-chat-message":customElements.get(r(t))||p();break;case"rtk-file-message":customElements.get(r(t))||l();break;case"rtk-icon":customElements.get(r(t))||k();break;case"rtk-image-message":customElements.get(r(t))||f();break;case"rtk-menu":customElements.get(r(t))||u();break;case"rtk-menu-item":customElements.get(r(t))||d();break;case"rtk-menu-list":customElements.get(r(t))||b();break;case"rtk-paginated-list":customElements.get(r(t))||g();break;case"rtk-spinner":customElements.get(r(t))||h();break;case"rtk-text-message":customElements.get(r(t))||j()}}))}E([i()],v.prototype,"meeting",void 0),E([i()],v.prototype,"iconPack",void 0),E([i()],v.prototype,"t",void 0),y();const x=v,D=y;export{x as RtkChatSearchResults,D as defineCustomElement}
@@ -1,108 +1 @@
1
- import { p as proxyCustomElement, H, e as createEvent, h, c as Host } from './p-ae373651.js';
2
- import { e as defaultIconPack, i as useLanguage } from './p-d5a12339.js';
3
- import { g as generateChatGroupKey } from './p-0db812c2.js';
4
- import { S as SyncWithStore } from './p-bd10fae6.js';
5
- import { d as defineCustomElement$2 } from './p-3e0452c4.js';
6
-
7
- const rtkChatSelectorUiCss = ":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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}";
8
- const RtkChatSelectorUiStyle0 = rtkChatSelectorUiCss;
9
-
10
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13
- r = Reflect.decorate(decorators, target, key, desc);
14
- else
15
- for (var i = decorators.length - 1; i >= 0; i--)
16
- if (d = decorators[i])
17
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- const RtkChatSelectorUi$1 = /*@__PURE__*/ proxyCustomElement(class RtkChatSelectorUi extends H {
21
- constructor() {
22
- super();
23
- this.__registerHost();
24
- this.__attachShadow();
25
- this.groupChanged = createEvent(this, "rtkChatGroupChanged", 7);
26
- /** Unread counts */
27
- this.unreadCounts = {};
28
- /** Participants */
29
- this.groups = [];
30
- /** Icon pack */
31
- this.iconPack = defaultIconPack;
32
- /** Language */
33
- this.t = useLanguage();
34
- this.showParticipantsPanel = false;
35
- this.query = '';
36
- this.onScopeClick = (scope) => {
37
- this.showParticipantsPanel = false;
38
- this.groupChanged.emit(scope);
39
- };
40
- }
41
- toggleParticipants() {
42
- this.showParticipantsPanel = !this.showParticipantsPanel;
43
- }
44
- getGroups() {
45
- return this.groups.filter((participant) => participant.name.toLowerCase().includes(this.query.toLowerCase()));
46
- }
47
- getName() {
48
- if (!this.selectedGroupId || this.selectedGroupId === 'everyone') {
49
- return this.t('everyone');
50
- }
51
- const group = this.groups.find((g) => g.userId === this.selectedGroupId);
52
- if (group) {
53
- return group.name;
54
- }
55
- return this.t('everyone');
56
- }
57
- render() {
58
- const unreadCountTotal = Object.keys(this.unreadCounts).reduce((total, key) => {
59
- return total + this.unreadCounts[key];
60
- }, 0);
61
- return (h(Host, null, h("div", { class: "chat-scope-selector" }, this.showParticipantsPanel && (h("div", { class: "participants-container" }, h("div", { class: "search", part: "search" }, h("rtk-icon", { icon: this.iconPack.search, part: "search-icon" }), h("input", { type: "search", autocomplete: "off", placeholder: this.t('search'), value: this.query, onInput: (e) => {
62
- this.query = e.target.value;
63
- }, part: "search-input" })), h("ul", { class: "scope-list scrollbar" }, this.query === '' && (h("li", { class: "scope scope-special", onClick: () => this.onScopeClick('everyone') }, h("div", { class: "everyone-icon" }, h("rtk-icon", { icon: this.iconPack.participants })), this.t('everyone'), this.unreadCounts['everyone'] > 0 && (h("div", { class: "unread-count", part: "unread-count" }, h("span", null, this.unreadCounts['everyone']))))), this.getGroups().map((group) => {
64
- const count = this.unreadCounts[generateChatGroupKey([this.selfUserId, group.userId])];
65
- return (h("li", { class: "scope", onClick: () => this.onScopeClick(group), key: group.userId }, group.name, count > 0 && (h("div", { class: "unread-count", part: "unread-count" }, h("span", null, count)))));
66
- })))), h("button", { onClick: () => this.toggleParticipants() }, h("span", null, `${this.t('to')} ${this.getName()}`, ' ', unreadCountTotal > 0 && (h("div", { class: "unread-count selector" }, h("span", null, unreadCountTotal)))), h("rtk-icon", { icon: this.showParticipantsPanel ? this.iconPack.chevron_up : this.iconPack.chevron_down })))));
67
- }
68
- static get style() { return RtkChatSelectorUiStyle0; }
69
- }, [1, "rtk-chat-selector-ui", {
70
- "selfUserId": [1, "self-user-id"],
71
- "selectedGroupId": [1, "selected-group-id"],
72
- "unreadCounts": [16],
73
- "groups": [16],
74
- "iconPack": [16],
75
- "t": [16],
76
- "showParticipantsPanel": [32],
77
- "query": [32]
78
- }]);
79
- __decorate([
80
- SyncWithStore()
81
- ], RtkChatSelectorUi$1.prototype, "iconPack", void 0);
82
- __decorate([
83
- SyncWithStore()
84
- ], RtkChatSelectorUi$1.prototype, "t", void 0);
85
- function defineCustomElement$1() {
86
- if (typeof customElements === "undefined") {
87
- return;
88
- }
89
- const components = ["rtk-chat-selector-ui", "rtk-icon"];
90
- components.forEach(tagName => { switch (tagName) {
91
- case "rtk-chat-selector-ui":
92
- if (!customElements.get(tagName)) {
93
- customElements.define(tagName, RtkChatSelectorUi$1);
94
- }
95
- break;
96
- case "rtk-icon":
97
- if (!customElements.get(tagName)) {
98
- defineCustomElement$2();
99
- }
100
- break;
101
- } });
102
- }
103
- defineCustomElement$1();
104
-
105
- const RtkChatSelectorUi = RtkChatSelectorUi$1;
106
- const defineCustomElement = defineCustomElement$1;
107
-
108
- export { RtkChatSelectorUi, defineCustomElement };
1
+ import{p as r,H as t,c as e,h as o,d as a,t as s}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as c,i}from"./p-De8YQHVd.js";import{g as n}from"./p-Bj1kNPpe.js";import{S as p}from"./p-CphAED3J.js";import{d as l}from"./p-BYIBbfJ8.js";var h=function(r,t,e,o){var a,s=arguments.length,c=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,e,o);else for(var i=r.length-1;i>=0;i--)(a=r[i])&&(c=(s<3?a(c):s>3?a(t,e,c):a(t,e))||c);return s>3&&c&&Object.defineProperty(t,e,c),c};const d=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.groupChanged=e(this,"rtkChatGroupChanged",7),this.unreadCounts={},this.groups=[],this.iconPack=c,this.t=i(),this.showParticipantsPanel=!1,this.query="",this.onScopeClick=r=>{this.showParticipantsPanel=!1,this.groupChanged.emit(r)}}toggleParticipants(){this.showParticipantsPanel=!this.showParticipantsPanel}getGroups(){return this.groups.filter((r=>r.name.toLowerCase().includes(this.query.toLowerCase())))}getName(){if(!this.selectedGroupId||"everyone"===this.selectedGroupId)return this.t("everyone");const r=this.groups.find((r=>r.userId===this.selectedGroupId));return r?r.name:this.t("everyone")}render(){const r=Object.keys(this.unreadCounts).reduce(((r,t)=>r+this.unreadCounts[t]),0);return o(a,null,o("div",{class:"chat-scope-selector"},this.showParticipantsPanel&&o("div",{class:"participants-container"},o("div",{class:"search",part:"search"},o("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),o("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),value:this.query,onInput:r=>{this.query=r.target.value},part:"search-input"})),o("ul",{class:"scope-list scrollbar"},""===this.query&&o("li",{class:"scope scope-special",onClick:()=>this.onScopeClick("everyone")},o("div",{class:"everyone-icon"},o("rtk-icon",{icon:this.iconPack.participants})),this.t("everyone"),this.unreadCounts.everyone>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,this.unreadCounts.everyone))),this.getGroups().map((r=>{const t=this.unreadCounts[n([this.selfUserId,r.userId])];return o("li",{class:"scope",onClick:()=>this.onScopeClick(r),key:r.userId},r.name,t>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,t)))})))),o("button",{onClick:()=>this.toggleParticipants()},o("span",null,`${this.t("to")} ${this.getName()}`," ",r>0&&o("div",{class:"unread-count selector"},o("span",null,r))),o("rtk-icon",{icon:this.showParticipantsPanel?this.iconPack.chevron_up:this.iconPack.chevron_down}))))}static get style(){return":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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}"}},[1,"rtk-chat-selector-ui",{selfUserId:[1,"self-user-id"],selectedGroupId:[1,"selected-group-id"],unreadCounts:[16],groups:[16],iconPack:[16],t:[16],showParticipantsPanel:[32],query:[32]}]);function g(){"undefined"!=typeof customElements&&["rtk-chat-selector-ui","rtk-icon"].forEach((r=>{switch(r){case"rtk-chat-selector-ui":customElements.get(s(r))||customElements.define(s(r),d);break;case"rtk-icon":customElements.get(s(r))||l()}}))}h([p()],d.prototype,"iconPack",void 0),h([p()],d.prototype,"t",void 0),g();const k=d,b=g;export{k as RtkChatSelectorUi,b as defineCustomElement}
@@ -1,6 +1 @@
1
- import { R as RtkChatSelector$1, d as defineCustomElement$1 } from './p-32f14b1a.js';
2
-
3
- const RtkChatSelector = RtkChatSelector$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { RtkChatSelector, defineCustomElement };
1
+ import{R as o,d as s}from"./p-J1kxEVHe.js";const p=o,r=s;export{p as RtkChatSelector,r as defineCustomElement}