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

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 (498) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/ChatHead-e13f3b0e.js +13 -0
  3. package/dist/cjs/{TextMessage-4f9299ff.js → TextMessage-7bb3e1fd.js} +1 -1
  4. package/dist/cjs/{chat-04fd67b4.js → chat-717e517d.js} +1 -1
  5. package/dist/cjs/{notification-6f17add8.js → config-8c9ac89a.js} +0 -35
  6. package/dist/cjs/{ChatHead-6416d6cf.js → date-61ffcd0a.js} +0 -10
  7. package/dist/cjs/index-05554ce6.js +62 -2
  8. package/dist/cjs/index.cjs.js +11 -10
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/notification-567fe887.js +39 -0
  11. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -1
  13. package/dist/cjs/rtk-avatar_24.cjs.entry.js +2568 -0
  14. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +397 -0
  15. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +986 -0
  16. package/dist/cjs/rtk-channel-creator.cjs.entry.js +163 -0
  17. package/dist/cjs/rtk-channel-details.cjs.entry.js +49 -0
  18. package/dist/cjs/rtk-channel-header.cjs.entry.js +83 -0
  19. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +4 -4
  20. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +1 -1
  21. package/dist/cjs/rtk-chat-message.cjs.entry.js +118 -0
  22. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +200 -0
  23. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +57 -0
  24. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +1 -1
  25. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +686 -0
  26. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +154 -0
  27. package/dist/cjs/rtk-dialog.cjs.entry.js +93 -0
  28. package/dist/cjs/rtk-file-message_3.cjs.entry.js +148 -0
  29. package/dist/cjs/rtk-logo.cjs.entry.js +77 -0
  30. package/dist/cjs/rtk-notification.cjs.entry.js +71 -0
  31. package/dist/cjs/rtk-notifications.cjs.entry.js +588 -0
  32. package/dist/cjs/rtk-sidebar.cjs.entry.js +1 -1
  33. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +5 -2
  34. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +2 -1
  35. package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +1 -0
  36. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +5 -2
  37. package/dist/collection/components/rtk-chat/rtk-chat.js +5 -102
  38. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +3 -2
  39. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +13 -4
  40. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +4 -2
  41. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -1
  42. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +0 -6
  43. package/dist/collection/components/rtk-file-message/rtk-file-message.js +3 -2
  44. package/dist/collection/components/rtk-image-message/rtk-image-message.js +5 -4
  45. package/dist/collection/components/rtk-message-view/rtk-message-view.css +26 -12
  46. package/dist/collection/components/rtk-message-view/rtk-message-view.js +23 -1
  47. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +2 -1
  48. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +3 -19
  49. package/dist/collection/components/rtk-sidebar/rtk-sidebar.css +2 -0
  50. package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -2
  51. package/dist/collection/utils/chat.js +1 -1
  52. package/dist/components/index.js +7 -7
  53. package/dist/components/{p-91a9efcf.js → p-013ffc19.js} +3 -3
  54. package/dist/components/{p-7f0ee3c6.js → p-024ef28a.js} +2 -2
  55. package/dist/components/{p-39a6a6a6.js → p-027ec380.js} +6 -6
  56. package/dist/components/{p-c663f9b1.js → p-06e20f42.js} +2 -2
  57. package/dist/components/{p-731ee854.js → p-08382c59.js} +5 -5
  58. package/dist/components/{p-65b9931e.js → p-0bbd0056.js} +2 -2
  59. package/dist/components/{p-a5a40d7e.js → p-102b6df8.js} +2 -2
  60. package/dist/components/{p-4772f368.js → p-121e073d.js} +2 -2
  61. package/dist/components/{p-c5dfd548.js → p-1f320625.js} +48 -325
  62. package/dist/components/{p-03fe0979.js → p-244cbe7b.js} +2 -2
  63. package/dist/components/{p-9ea5df8f.js → p-2508ac98.js} +2 -2
  64. package/dist/components/{p-9730c398.js → p-2590f470.js} +3 -3
  65. package/dist/components/{p-f46a0782.js → p-25ca06f2.js} +2 -2
  66. package/dist/components/{p-2b955eb0.js → p-27fea689.js} +4 -4
  67. package/dist/components/{p-cc5ecd67.js → p-2d08ab28.js} +2 -2
  68. package/dist/components/{p-ddb2df62.js → p-2ea7652f.js} +2 -2
  69. package/dist/components/{p-4c8cff29.js → p-30ac9705.js} +6 -21
  70. package/dist/components/{p-989d36e2.js → p-31c44fed.js} +6 -6
  71. package/dist/components/{p-c3582bf3.js → p-32609f9f.js} +12 -9
  72. package/dist/components/{p-3a80e3ab.js → p-32bf6a44.js} +4 -4
  73. package/dist/components/{p-c7413ac8.js → p-335f937c.js} +2 -2
  74. package/dist/components/{p-7119673c.js → p-33a87325.js} +2 -2
  75. package/dist/components/{p-3df2211d.js → p-3d3fa677.js} +2 -2
  76. package/dist/components/{p-1a60f5b0.js → p-3fa8f1e1.js} +2 -2
  77. package/dist/components/{p-af35ac31.js → p-47c25f64.js} +1 -1
  78. package/dist/components/{p-511ed3f8.js → p-498c01a6.js} +2 -2
  79. package/dist/components/{p-54dba22f.js → p-4b542718.js} +2 -2
  80. package/dist/components/{p-17867774.js → p-4c7f1a19.js} +2 -2
  81. package/dist/components/{p-b373754d.js → p-51de7af3.js} +1 -1
  82. package/dist/components/{p-52b090fc.js → p-52d1525c.js} +2 -2
  83. package/dist/components/{p-f5f0b499.js → p-560e7a4f.js} +1 -1
  84. package/dist/components/{p-93e1439e.js → p-566c1155.js} +1 -1
  85. package/dist/components/{p-49967150.js → p-5b03154d.js} +3 -3
  86. package/dist/components/{p-ed8955d0.js → p-5f26bba3.js} +2 -2
  87. package/dist/components/{p-12d2b558.js → p-63953295.js} +2 -2
  88. package/dist/components/{p-3438fd71.js → p-6756b222.js} +2 -2
  89. package/dist/components/{p-bccc21f8.js → p-68c9100f.js} +2 -2
  90. package/dist/components/{p-1d29b7c3.js → p-6c1b380d.js} +12 -12
  91. package/dist/components/{p-f9faeffc.js → p-6cbaf90a.js} +2 -2
  92. package/dist/components/{p-551bed08.js → p-6eabd1ad.js} +3 -3
  93. package/dist/components/{p-df25c2a7.js → p-6f340109.js} +1 -1
  94. package/dist/components/{p-840ef7fe.js → p-724074c4.js} +5 -5
  95. package/dist/components/{p-a09aefba.js → p-7481511c.js} +2 -2
  96. package/dist/components/{p-6bd3b767.js → p-78b61cce.js} +1 -1
  97. package/dist/components/{p-fb427023.js → p-7a322c43.js} +3 -3
  98. package/dist/components/{p-037e572f.js → p-7fc0dc2f.js} +1 -1
  99. package/dist/components/{p-a9d5d165.js → p-82c678d6.js} +7 -7
  100. package/dist/components/{p-314b1504.js → p-82f8c924.js} +2 -2
  101. package/dist/components/{p-6d49cf9f.js → p-84e5b453.js} +2 -2
  102. package/dist/components/{p-04aaec79.js → p-88e50eea.js} +17 -15
  103. package/dist/components/{p-f4ff7d70.js → p-97e1e186.js} +2 -2
  104. package/dist/components/{p-fb46d041.js → p-9c2c0760.js} +7 -7
  105. package/dist/components/{p-dc4b6fc4.js → p-9e87b2c9.js} +2 -2
  106. package/dist/components/{p-0a7f6a8a.js → p-9fd18352.js} +2 -2
  107. package/dist/components/{p-d2b37264.js → p-a0c8422f.js} +4 -4
  108. package/dist/components/{p-f734a4cf.js → p-a10b9faa.js} +2 -2
  109. package/dist/components/{p-d2c3870a.js → p-a159952c.js} +2 -2
  110. package/dist/components/{p-f81c7fda.js → p-a29c01fc.js} +2 -2
  111. package/dist/components/{p-897a04be.js → p-a4b26604.js} +4 -4
  112. package/dist/components/{p-a2f4f9e3.js → p-aae4c250.js} +1 -1
  113. package/dist/components/{p-72346e7f.js → p-afe77b50.js} +2 -2
  114. package/dist/components/{p-6fe2233b.js → p-b1338b4f.js} +3 -3
  115. package/dist/components/{p-e2e22bf8.js → p-b397a600.js} +4 -4
  116. package/dist/components/{p-34b580c9.js → p-b6ee1a32.js} +2 -2
  117. package/dist/components/{p-3fe1bb0d.js → p-b762cf1e.js} +11 -11
  118. package/dist/components/{p-4edd666b.js → p-bb8f2597.js} +6 -6
  119. package/dist/components/{p-b804a5f5.js → p-be9fe914.js} +7 -7
  120. package/dist/components/{p-9149c02e.js → p-c078ae06.js} +2 -2
  121. package/dist/components/{p-26055088.js → p-c07e3e6d.js} +2 -2
  122. package/dist/components/{p-40c5ca62.js → p-c515acba.js} +2 -2
  123. package/dist/components/{p-12437468.js → p-cf503999.js} +2 -2
  124. package/dist/components/{p-66bae0d9.js → p-d06d1eac.js} +2 -2
  125. package/dist/components/{p-0abe4b8a.js → p-dab9d3d6.js} +1 -1
  126. package/dist/components/{p-01a50790.js → p-e48cd596.js} +4 -4
  127. package/dist/components/{p-aba9b612.js → p-e732b5ee.js} +4 -4
  128. package/dist/components/{p-22d9d3ff.js → p-e87b68de.js} +5 -5
  129. package/dist/components/{p-22a734a8.js → p-eb7df0eb.js} +6 -6
  130. package/dist/components/{p-c40166a9.js → p-ef71b75e.js} +5 -5
  131. package/dist/components/{p-00ebd1dc.js → p-fa7412e2.js} +2 -2
  132. package/dist/components/{p-1986022b.js → p-fc21299d.js} +2 -2
  133. package/dist/components/{p-3051f5f5.js → p-fdb67d1f.js} +2 -2
  134. package/dist/components/rtk-ai-toggle.js +4 -4
  135. package/dist/components/rtk-ai-transcriptions.js +1 -1
  136. package/dist/components/rtk-ai.js +3 -3
  137. package/dist/components/rtk-audio-grid.js +2 -2
  138. package/dist/components/rtk-audio-tile.js +5 -5
  139. package/dist/components/rtk-audio-visualizer.js +1 -1
  140. package/dist/components/rtk-avatar.js +1 -1
  141. package/dist/components/rtk-breakout-room-manager.js +1 -1
  142. package/dist/components/rtk-breakout-room-participants.js +1 -1
  143. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  144. package/dist/components/rtk-breakout-rooms-toggle.js +4 -4
  145. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  146. package/dist/components/rtk-camera-selector.js +1 -1
  147. package/dist/components/rtk-camera-toggle.js +4 -4
  148. package/dist/components/rtk-caption-toggle.js +4 -4
  149. package/dist/components/rtk-channel-creator.js +209 -1
  150. package/dist/components/rtk-channel-details.js +1 -1
  151. package/dist/components/rtk-channel-header.js +146 -1
  152. package/dist/components/rtk-channel-selector-ui.js +7 -7
  153. package/dist/components/rtk-channel-selector-view.js +1 -1
  154. package/dist/components/rtk-chat-composer-ui.js +6 -6
  155. package/dist/components/rtk-chat-composer-view.js +1 -1
  156. package/dist/components/rtk-chat-message.js +1 -1
  157. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  158. package/dist/components/rtk-chat-messages-ui.js +302 -1
  159. package/dist/components/rtk-chat-search-results.js +146 -1
  160. package/dist/components/rtk-chat-selector-ui.js +3 -3
  161. package/dist/components/rtk-chat-toggle.js +5 -5
  162. package/dist/components/rtk-chat.js +1 -1
  163. package/dist/components/rtk-clock.js +2 -2
  164. package/dist/components/rtk-confirmation-modal.js +1 -1
  165. package/dist/components/rtk-controlbar-button.js +1 -1
  166. package/dist/components/rtk-controlbar.js +2 -2
  167. package/dist/components/rtk-counter.js +1 -1
  168. package/dist/components/rtk-debugger-audio.js +1 -1
  169. package/dist/components/rtk-debugger-screenshare.js +1 -1
  170. package/dist/components/rtk-debugger-system.js +1 -1
  171. package/dist/components/rtk-debugger-toggle.js +4 -4
  172. package/dist/components/rtk-debugger-video.js +1 -1
  173. package/dist/components/rtk-debugger.js +1 -1
  174. package/dist/components/rtk-dialog-manager.js +305 -1
  175. package/dist/components/rtk-dialog.js +1 -1
  176. package/dist/components/rtk-draft-attachment-view.js +1 -1
  177. package/dist/components/rtk-emoji-picker-button.js +1 -1
  178. package/dist/components/rtk-emoji-picker.js +1 -1
  179. package/dist/components/rtk-ended-screen.js +3 -3
  180. package/dist/components/rtk-file-dropzone.js +2 -2
  181. package/dist/components/rtk-file-message-view.js +1 -1
  182. package/dist/components/rtk-file-message.js +1 -1
  183. package/dist/components/rtk-file-picker-button.js +1 -1
  184. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  185. package/dist/components/rtk-grid-pagination.js +2 -2
  186. package/dist/components/rtk-grid.js +8 -8
  187. package/dist/components/rtk-header.js +2 -2
  188. package/dist/components/rtk-idle-screen.js +4 -4
  189. package/dist/components/rtk-image-message-view.js +1 -1
  190. package/dist/components/rtk-image-message.js +1 -1
  191. package/dist/components/rtk-image-viewer.js +2 -2
  192. package/dist/components/rtk-information-tooltip.js +2 -2
  193. package/dist/components/rtk-join-stage.js +1 -1
  194. package/dist/components/rtk-leave-button.js +4 -4
  195. package/dist/components/rtk-leave-meeting.js +1 -1
  196. package/dist/components/rtk-livestream-indicator.js +1 -1
  197. package/dist/components/rtk-livestream-player.js +1 -1
  198. package/dist/components/rtk-livestream-toggle.js +4 -4
  199. package/dist/components/rtk-logo.js +1 -1
  200. package/dist/components/rtk-markdown-view.js +1 -1
  201. package/dist/components/rtk-meeting-title.js +2 -2
  202. package/dist/components/rtk-meeting.js +46 -226
  203. package/dist/components/rtk-menu-item.js +1 -1
  204. package/dist/components/rtk-menu-list.js +1 -1
  205. package/dist/components/rtk-menu.js +1 -1
  206. package/dist/components/rtk-message-list-view.js +3 -3
  207. package/dist/components/rtk-message-view.js +1 -1
  208. package/dist/components/rtk-mic-toggle.js +4 -4
  209. package/dist/components/rtk-microphone-selector.js +1 -1
  210. package/dist/components/rtk-mixed-grid.js +5 -5
  211. package/dist/components/rtk-more-toggle.js +4 -4
  212. package/dist/components/rtk-mute-all-button.js +4 -4
  213. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  214. package/dist/components/rtk-name-tag.js +1 -1
  215. package/dist/components/rtk-network-indicator.js +2 -2
  216. package/dist/components/rtk-notification.js +1 -1
  217. package/dist/components/rtk-notifications.js +629 -1
  218. package/dist/components/rtk-overlay-modal.js +1 -1
  219. package/dist/components/rtk-paginated-list.js +1 -1
  220. package/dist/components/rtk-participant-count.js +2 -2
  221. package/dist/components/rtk-participant-setup.js +2 -2
  222. package/dist/components/rtk-participant-tile.js +1 -1
  223. package/dist/components/rtk-participant.js +1 -1
  224. package/dist/components/rtk-participants-audio.js +3 -3
  225. package/dist/components/rtk-participants-stage-list.js +1 -1
  226. package/dist/components/rtk-participants-stage-queue.js +1 -1
  227. package/dist/components/rtk-participants-toggle.js +5 -5
  228. package/dist/components/rtk-participants-viewer-list.js +1 -1
  229. package/dist/components/rtk-participants-waiting-list.js +1 -1
  230. package/dist/components/rtk-participants.js +12 -12
  231. package/dist/components/rtk-permissions-message.js +1 -1
  232. package/dist/components/rtk-pip-toggle.js +4 -4
  233. package/dist/components/rtk-plugin-main.js +1 -1
  234. package/dist/components/rtk-plugins-toggle.js +5 -5
  235. package/dist/components/rtk-plugins.js +1 -1
  236. package/dist/components/rtk-poll-form.js +1 -1
  237. package/dist/components/rtk-poll.js +1 -1
  238. package/dist/components/rtk-polls-toggle.js +5 -5
  239. package/dist/components/rtk-polls.js +1 -1
  240. package/dist/components/rtk-recording-indicator.js +2 -2
  241. package/dist/components/rtk-recording-toggle.js +4 -4
  242. package/dist/components/rtk-screen-share-toggle.js +4 -4
  243. package/dist/components/rtk-screenshare-view.js +2 -2
  244. package/dist/components/rtk-settings-audio.js +1 -1
  245. package/dist/components/rtk-settings-toggle.js +4 -4
  246. package/dist/components/rtk-settings-video.js +1 -1
  247. package/dist/components/rtk-settings.js +10 -10
  248. package/dist/components/rtk-setup-screen.js +6 -6
  249. package/dist/components/rtk-sidebar-ui.js +1 -1
  250. package/dist/components/rtk-sidebar.js +9 -9
  251. package/dist/components/rtk-simple-grid.js +2 -2
  252. package/dist/components/rtk-speaker-selector.js +1 -1
  253. package/dist/components/rtk-spinner.js +1 -1
  254. package/dist/components/rtk-spotlight-grid.js +2 -2
  255. package/dist/components/rtk-spotlight-indicator.js +1 -1
  256. package/dist/components/rtk-stage-toggle.js +4 -4
  257. package/dist/components/rtk-stage.js +2 -2
  258. package/dist/components/rtk-switch.js +1 -1
  259. package/dist/components/rtk-tab-bar.js +1 -1
  260. package/dist/components/rtk-text-composer-view.js +1 -1
  261. package/dist/components/rtk-text-message-view.js +1 -1
  262. package/dist/components/rtk-text-message.js +1 -1
  263. package/dist/components/rtk-transcript.js +1 -1
  264. package/dist/components/rtk-transcripts.js +3 -3
  265. package/dist/components/rtk-ui-provider.js +2 -2
  266. package/dist/components/rtk-viewer-count.js +1 -1
  267. package/dist/components/rtk-waiting-screen.js +3 -3
  268. package/dist/docs/docs-components.json +140 -384
  269. package/dist/docs/docs-vscode.json +7 -3
  270. package/dist/esm/ChatHead-15c2f8d4.js +11 -0
  271. package/dist/esm/{TextMessage-07d53134.js → TextMessage-ca92045e.js} +1 -1
  272. package/dist/esm/{chat-32ac0c2b.js → chat-ff185374.js} +2 -2
  273. package/dist/esm/{notification-0794a8cc.js → config-e684aa4d.js} +3 -37
  274. package/dist/esm/{ChatHead-11b92a26.js → date-b1f78dea.js} +1 -10
  275. package/dist/esm/{debounce-6ec038d3.js → debounce-3ea4df36.js} +1 -1
  276. package/dist/esm/{file-849468c1.js → file-6114f1a9.js} +1 -1
  277. package/dist/esm/index-c1fb98bb.js +62 -2
  278. package/dist/esm/{index-849b9dd9.js → index-e65afca5.js} +1 -1
  279. package/dist/esm/index.js +7 -6
  280. package/dist/esm/loader.js +13266 -13290
  281. package/dist/esm/{merge-f5f3ca10.js → merge-7ffc04b3.js} +1 -1
  282. package/dist/esm/notification-78afaabf.js +37 -0
  283. package/dist/esm/realtimekit-ui.js +1 -1
  284. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  285. package/dist/esm/rtk-ai-transcriptions.entry.js +5 -4
  286. package/dist/esm/rtk-ai.entry.js +2 -2
  287. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  288. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  289. package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
  290. package/dist/esm/rtk-avatar_24.entry.js +2541 -0
  291. package/dist/esm/rtk-breakout-room-manager_3.entry.js +391 -0
  292. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +974 -0
  293. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  294. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  295. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  296. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  297. package/dist/{components/p-c9a7cf06.js → esm/rtk-channel-creator.entry.js} +12 -64
  298. package/dist/esm/rtk-channel-details.entry.js +45 -0
  299. package/dist/{components/p-0c11d195.js → esm/rtk-channel-header.entry.js} +9 -78
  300. package/dist/esm/rtk-channel-selector-ui.entry.js +6 -6
  301. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  302. package/dist/esm/rtk-chat-message.entry.js +114 -0
  303. package/dist/{components/p-0e07ea51.js → esm/rtk-chat-messages-ui.entry.js} +14 -122
  304. package/dist/esm/rtk-chat-search-results.entry.js +53 -0
  305. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  306. package/dist/esm/rtk-chat-toggle.entry.js +3 -3
  307. package/dist/esm/rtk-clock.entry.js +2 -2
  308. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  309. package/dist/esm/rtk-controlbar.entry.js +2 -2
  310. package/dist/esm/rtk-debugger-audio_4.entry.js +679 -0
  311. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  312. package/dist/{components/p-3042f998.js → esm/rtk-dialog-manager.entry.js} +10 -179
  313. package/dist/esm/rtk-dialog.entry.js +89 -0
  314. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  315. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  316. package/dist/esm/rtk-file-message_3.entry.js +142 -0
  317. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  318. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  319. package/dist/esm/rtk-grid.entry.js +2 -2
  320. package/dist/esm/rtk-header.entry.js +2 -2
  321. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  322. package/dist/esm/rtk-image-viewer.entry.js +4 -4
  323. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  324. package/dist/esm/rtk-leave-button.entry.js +2 -2
  325. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  326. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  327. package/dist/esm/rtk-logo.entry.js +73 -0
  328. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  329. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  330. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  331. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  332. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  333. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  334. package/dist/esm/rtk-name-tag.entry.js +3 -3
  335. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  336. package/dist/esm/rtk-notification.entry.js +67 -0
  337. package/dist/{components/p-7a336667.js → esm/rtk-notifications.entry.js} +13 -60
  338. package/dist/esm/rtk-participant-count.entry.js +2 -2
  339. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  340. package/dist/esm/rtk-participant_2.entry.js +4 -4
  341. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  342. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  343. package/dist/esm/rtk-participants-toggle.entry.js +3 -3
  344. package/dist/esm/rtk-participants.entry.js +3 -3
  345. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  346. package/dist/esm/rtk-plugin-main_2.entry.js +3 -3
  347. package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
  348. package/dist/esm/rtk-plugins_2.entry.js +2 -2
  349. package/dist/esm/rtk-poll_2.entry.js +3 -3
  350. package/dist/esm/rtk-polls-toggle.entry.js +3 -3
  351. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  352. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  353. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  354. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  355. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  356. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  357. package/dist/esm/rtk-settings.entry.js +2 -2
  358. package/dist/esm/rtk-setup-screen.entry.js +3 -3
  359. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  360. package/dist/esm/rtk-sidebar.entry.js +4 -4
  361. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  362. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  363. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  364. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  365. package/dist/esm/rtk-stage.entry.js +2 -2
  366. package/dist/esm/rtk-transcript.entry.js +2 -2
  367. package/dist/esm/rtk-transcripts.entry.js +2 -2
  368. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  369. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  370. package/dist/esm/{sidebar-76cae1f0.js → sidebar-030fff49.js} +1 -1
  371. package/dist/esm/{string-5e8dab07.js → string-068ce30a.js} +1 -1
  372. package/dist/esm/{ui-store-2965ff1a.js → ui-store-9e486e1b.js} +1 -1
  373. package/dist/realtimekit-ui/index.esm.js +1 -1
  374. package/dist/realtimekit-ui/{p-a7ba0456.entry.js → p-013ae8ca.entry.js} +1 -1
  375. package/dist/realtimekit-ui/{p-ff19ee1e.entry.js → p-0689d68b.entry.js} +1 -1
  376. package/dist/realtimekit-ui/{p-2318c3af.js → p-084b6f30.js} +1 -1
  377. package/dist/realtimekit-ui/{p-53ffaa9f.entry.js → p-0898c8ee.entry.js} +1 -1
  378. package/dist/realtimekit-ui/{p-e6f1e6aa.entry.js → p-09869644.entry.js} +1 -1
  379. package/dist/realtimekit-ui/{p-b6c83f82.entry.js → p-11c964cf.entry.js} +1 -1
  380. package/dist/realtimekit-ui/{p-b2b8b421.entry.js → p-124eb1c7.entry.js} +1 -1
  381. package/dist/realtimekit-ui/{p-2857144e.js → p-12e4cb4a.js} +1 -1
  382. package/dist/realtimekit-ui/{p-00b5bdeb.entry.js → p-158b1b0c.entry.js} +1 -1
  383. package/dist/realtimekit-ui/{p-2d729cec.entry.js → p-17c6d2fa.entry.js} +1 -1
  384. package/dist/realtimekit-ui/{p-404207e0.entry.js → p-2b373e53.entry.js} +1 -1
  385. package/dist/realtimekit-ui/p-2d7b969d.entry.js +1 -0
  386. package/dist/realtimekit-ui/{p-d7a5c237.entry.js → p-32030329.entry.js} +1 -1
  387. package/dist/realtimekit-ui/p-3369f405.entry.js +1 -0
  388. package/dist/realtimekit-ui/p-382270d8.js +1 -0
  389. package/dist/realtimekit-ui/{p-f1ab4672.entry.js → p-38aec474.entry.js} +1 -1
  390. package/dist/realtimekit-ui/{p-368420fc.entry.js → p-3a325310.entry.js} +1 -1
  391. package/dist/realtimekit-ui/{p-51a8a9e5.entry.js → p-3b8de127.entry.js} +1 -1
  392. package/dist/realtimekit-ui/{p-83a8cd29.entry.js → p-3d0c4257.entry.js} +1 -1
  393. package/dist/realtimekit-ui/{p-6495f016.entry.js → p-3e02ec0b.entry.js} +1 -1
  394. package/dist/realtimekit-ui/p-40be18ee.js +1 -0
  395. package/dist/realtimekit-ui/{p-dfa4a588.entry.js → p-4554a674.entry.js} +1 -1
  396. package/dist/realtimekit-ui/p-474ba04f.entry.js +1 -0
  397. package/dist/realtimekit-ui/p-487e808a.entry.js +1 -0
  398. package/dist/realtimekit-ui/p-4ab26f1f.entry.js +1 -0
  399. package/dist/realtimekit-ui/{p-2aa2727b.entry.js → p-4eba1baa.entry.js} +1 -1
  400. package/dist/realtimekit-ui/{p-1185eec6.entry.js → p-50157a65.entry.js} +1 -1
  401. package/dist/realtimekit-ui/p-51e949d6.entry.js +1 -0
  402. package/dist/realtimekit-ui/{p-2d09aeb4.entry.js → p-53ac3d30.entry.js} +1 -1
  403. package/dist/realtimekit-ui/{p-e32c13e0.entry.js → p-54a31e02.entry.js} +1 -1
  404. package/dist/realtimekit-ui/{p-95ab3abe.entry.js → p-5a2d8313.entry.js} +1 -1
  405. package/dist/realtimekit-ui/p-5b2d97fc.js +1 -0
  406. package/dist/realtimekit-ui/{p-f16345d6.entry.js → p-5bbfdabe.entry.js} +1 -1
  407. package/dist/realtimekit-ui/p-60a29b69.entry.js +1 -0
  408. package/dist/realtimekit-ui/{p-3144bec3.entry.js → p-60b39e38.entry.js} +1 -1
  409. package/dist/realtimekit-ui/{p-77f71d40.entry.js → p-61d3f74f.entry.js} +1 -1
  410. package/dist/realtimekit-ui/{p-2dc496f0.entry.js → p-62e0a141.entry.js} +1 -1
  411. package/dist/realtimekit-ui/{p-0ab52f70.entry.js → p-643194e4.entry.js} +1 -1
  412. package/dist/realtimekit-ui/p-6a45f305.js +1 -0
  413. package/dist/realtimekit-ui/{p-e65d2f04.entry.js → p-6adb2de4.entry.js} +1 -1
  414. package/dist/realtimekit-ui/{p-efabd2ce.js → p-6f211c3e.js} +1 -1
  415. package/dist/realtimekit-ui/{p-c1d92065.entry.js → p-74e1b5a6.entry.js} +1 -1
  416. package/dist/realtimekit-ui/p-7786e9a7.entry.js +1 -0
  417. package/dist/realtimekit-ui/{p-5cb4f925.entry.js → p-77e04fb7.entry.js} +1 -1
  418. package/dist/realtimekit-ui/{p-1f328e83.entry.js → p-788f26c4.entry.js} +1 -1
  419. package/dist/realtimekit-ui/p-78d19559.entry.js +1 -0
  420. package/dist/realtimekit-ui/{p-f5560043.entry.js → p-7b999408.entry.js} +1 -1
  421. package/dist/realtimekit-ui/{p-2799d5b2.js → p-80c856cd.js} +1 -1
  422. package/dist/realtimekit-ui/{p-2d6c5160.entry.js → p-871d8fbf.entry.js} +1 -1
  423. package/dist/realtimekit-ui/{p-64aa0fae.entry.js → p-882d07c9.entry.js} +1 -1
  424. package/dist/realtimekit-ui/{p-7fab2c53.entry.js → p-8b189438.entry.js} +1 -1
  425. package/dist/realtimekit-ui/{p-ac1ff0f8.entry.js → p-8c55a630.entry.js} +1 -1
  426. package/dist/realtimekit-ui/{p-e24289b8.entry.js → p-8f512d69.entry.js} +1 -1
  427. package/dist/realtimekit-ui/{p-c6c86fd8.js → p-91ea043c.js} +1 -1
  428. package/dist/realtimekit-ui/{p-145caa6b.js → p-91fd286c.js} +1 -1
  429. package/dist/realtimekit-ui/p-930f0255.entry.js +1 -0
  430. package/dist/realtimekit-ui/p-93b84c22.js +1 -0
  431. package/dist/realtimekit-ui/{p-34350578.entry.js → p-941f159e.entry.js} +1 -1
  432. package/dist/realtimekit-ui/{p-f3998c17.entry.js → p-949b2b6a.entry.js} +1 -1
  433. package/dist/realtimekit-ui/{p-47e89714.entry.js → p-986e7389.entry.js} +1 -1
  434. package/dist/realtimekit-ui/{p-db9dd8ea.entry.js → p-98ee3341.entry.js} +1 -1
  435. package/dist/realtimekit-ui/p-99801804.entry.js +1 -0
  436. package/dist/realtimekit-ui/{p-7fbca8d1.entry.js → p-9ad2c746.entry.js} +1 -1
  437. package/dist/realtimekit-ui/p-9c1f42dd.entry.js +1 -0
  438. package/dist/realtimekit-ui/{p-6334ca51.entry.js → p-9cbf286a.entry.js} +1 -1
  439. package/dist/realtimekit-ui/{p-62949a7d.entry.js → p-9d3cf603.entry.js} +1 -1
  440. package/dist/realtimekit-ui/{p-f5a3ccc0.entry.js → p-a0563ab4.entry.js} +1 -1
  441. package/dist/realtimekit-ui/{p-0b93c12d.entry.js → p-a319e81f.entry.js} +1 -1
  442. package/dist/realtimekit-ui/{p-7f896d33.entry.js → p-a4372f65.entry.js} +1 -1
  443. package/dist/realtimekit-ui/{p-e7a89e24.entry.js → p-a9126c12.entry.js} +1 -1
  444. package/dist/realtimekit-ui/{p-a55863be.entry.js → p-a9dd63ef.entry.js} +1 -1
  445. package/dist/realtimekit-ui/{p-3263d76d.entry.js → p-aa757cd3.entry.js} +1 -1
  446. package/dist/realtimekit-ui/{p-9b6d809b.entry.js → p-ad26f7fd.entry.js} +1 -1
  447. package/dist/realtimekit-ui/{p-560fc162.entry.js → p-ad887be1.entry.js} +1 -1
  448. package/dist/realtimekit-ui/{p-ead8970b.entry.js → p-ae7319ac.entry.js} +1 -1
  449. package/dist/realtimekit-ui/p-b387e9a1.entry.js +1 -0
  450. package/dist/realtimekit-ui/{p-22313959.entry.js → p-b388b4c6.entry.js} +1 -1
  451. package/dist/realtimekit-ui/{p-9ba26c9f.entry.js → p-bbf76104.entry.js} +1 -1
  452. package/dist/realtimekit-ui/p-bc1a2b04.entry.js +1 -0
  453. package/dist/realtimekit-ui/p-c1d026d1.entry.js +1 -0
  454. package/dist/realtimekit-ui/{p-543dcdc1.entry.js → p-c5c965b8.entry.js} +1 -1
  455. package/dist/realtimekit-ui/p-c7711712.entry.js +1 -0
  456. package/dist/realtimekit-ui/p-cdacd242.entry.js +1 -0
  457. package/dist/realtimekit-ui/{p-0979ba30.entry.js → p-cdf8bc21.entry.js} +1 -1
  458. package/dist/realtimekit-ui/{p-bfd7cd5a.entry.js → p-d0384d90.entry.js} +1 -1
  459. package/dist/realtimekit-ui/{p-81d1334c.entry.js → p-d0bba739.entry.js} +1 -1
  460. package/dist/realtimekit-ui/p-d8962ea0.entry.js +1 -0
  461. package/dist/realtimekit-ui/{p-616f3a25.entry.js → p-d95ce443.entry.js} +1 -1
  462. package/dist/realtimekit-ui/{p-35b87831.entry.js → p-d9cad67f.entry.js} +1 -1
  463. package/dist/realtimekit-ui/{p-a449b5cd.entry.js → p-dbd07824.entry.js} +1 -1
  464. package/dist/realtimekit-ui/{p-0266e82b.entry.js → p-de75d48d.entry.js} +1 -1
  465. package/dist/realtimekit-ui/{p-4b62d6f9.entry.js → p-e62593a2.entry.js} +1 -1
  466. package/dist/realtimekit-ui/{p-fa2ee341.js → p-e720b51e.js} +1 -1
  467. package/dist/realtimekit-ui/{p-9ac89beb.entry.js → p-e7b83772.entry.js} +1 -1
  468. package/dist/realtimekit-ui/{p-8046e263.js → p-e87928f7.js} +1 -1
  469. package/dist/realtimekit-ui/{p-39d0ad4d.entry.js → p-e925ca8a.entry.js} +1 -1
  470. package/dist/realtimekit-ui/{p-e0dd5f79.entry.js → p-f0f6c282.entry.js} +1 -1
  471. package/dist/realtimekit-ui/{p-47d8e5c8.entry.js → p-f775be53.entry.js} +1 -1
  472. package/dist/realtimekit-ui/{p-bad807c1.entry.js → p-fee7bd4f.entry.js} +1 -1
  473. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  474. package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +3 -0
  475. package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +1 -0
  476. package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +1 -0
  477. package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +3 -0
  478. package/dist/types/components/rtk-chat/rtk-chat.d.ts +0 -9
  479. package/dist/types/components/rtk-chat-message/rtk-chat-message.d.ts +1 -0
  480. package/dist/types/components/rtk-chat-messages-ui/rtk-chat-messages-ui.d.ts +3 -0
  481. package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +1 -0
  482. package/dist/types/components/rtk-file-message/rtk-file-message.d.ts +1 -0
  483. package/dist/types/components/rtk-image-message/rtk-image-message.d.ts +1 -0
  484. package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +2 -0
  485. package/dist/types/components/rtk-text-message/rtk-text-message.d.ts +1 -0
  486. package/dist/types/components.d.ts +104 -0
  487. package/dist/types/types/props.d.ts +1 -0
  488. package/dist/types/utils/chat.d.ts +1 -1
  489. package/package.json +1 -1
  490. package/dist/cjs/rtk-avatar_54.cjs.entry.js +0 -6417
  491. package/dist/components/p-6a47e2ee.js +0 -148
  492. package/dist/esm/rtk-avatar_54.entry.js +0 -6360
  493. package/dist/realtimekit-ui/p-173457a5.js +0 -1
  494. package/dist/realtimekit-ui/p-34c90f1c.entry.js +0 -1
  495. package/dist/realtimekit-ui/p-47314bc7.js +0 -1
  496. package/dist/realtimekit-ui/p-4ea418c9.js +0 -1
  497. package/dist/realtimekit-ui/p-55f181be.entry.js +0 -1
  498. package/dist/realtimekit-ui/p-bfed80f3.entry.js +0 -1
@@ -12,6 +12,9 @@ import { Host, h } from "@stencil/core";
12
12
  import { defaultIconPack, useLanguage } from "../../exports";
13
13
  import { SyncWithStore } from "../../utils/sync-with-store";
14
14
  import { TextMessageView } from "../rtk-text-message/components/TextMessage";
15
+ /**
16
+ * @deprecated `rtk-channel-selector-ui` is deprecated and will be removed soon.
17
+ */
15
18
  export class RtkChannelSelectorUi {
16
19
  constructor() {
17
20
  /** Icon pack */
@@ -112,7 +115,7 @@ export class RtkChannelSelectorUi {
112
115
  }
113
116
  }
114
117
  render() {
115
- return (h(Host, { key: '5a2393ac0ac3f67bfae1acf2ec06c2e3ced317f7' }, h("div", { key: '73361a84f8078584b80bca96f1f1f9c9f04d74b9', class: "container", ref: (el) => (this.$el = el) }, this.isHidden && (h("rtk-button", { key: 'ea1f4caf8e5e7aeb633cdec506952fad6f168900', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '165420751ca42a7fe1040152bae366964e2dfe9f', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))), h("slot", { key: '4a04c6acd67fd6a243e66cbadfb527f70c95c416', name: "header" }), h("div", { key: 'd994d7c80ddab2ab5d87e8b7bfbaf24283f400f6', class: "search-wrapper" }, h("div", { key: '6d3c72ccf0576bb1c682c9b687fd769f8720501a', class: "search" }, h("input", { key: '65eaf233392c435772a3a2da1a33f819e4760f66', type: "search", autocomplete: "off", placeholder: this.t('chat.search_conversations'), onInput: this.onSearchInput }), h("rtk-icon", { key: 'c70df6fb76af5815837461f4f9382631acc8f336', icon: this.iconPack.search, class: "search-icon" }))), h("div", { key: '9b298879a017f3ac5c0919ec5869cb644839c31f', class: "channel-container scrollbar", role: "list" }, this.channels
118
+ return (h(Host, { key: 'ffa818ba0f1e156753c7517e124a59d55061ca1d' }, h("div", { key: 'd6c010e0d21df2cd8ed3e2d897adf162bbf25ead', class: "container", ref: (el) => (this.$el = el) }, this.isHidden && (h("rtk-button", { key: '84f3bc3e7f09b1017606463013d5a85f48c51a51', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '5b4c509b3db4bb4d0cffa798d0c9c6539f7055f9', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))), h("slot", { key: '0feaabcc00be0e7c9aff55f1148fda0aa140cca2', name: "header" }), h("div", { key: '67be9ee605baa6d253e2398f6e546ff834382435', class: "search-wrapper" }, h("div", { key: '47bb31dda1a5106267a7ff3151c6771fd540908a', class: "search" }, h("input", { key: '7d0a7290c2c1dfa57c4f7093fa867a0d9e0e28eb', type: "search", autocomplete: "off", placeholder: this.t('chat.search_conversations'), onInput: this.onSearchInput }), h("rtk-icon", { key: '1ca7138de4ab92c224100da5e16d292d8a9fcca8', icon: this.iconPack.search, class: "search-icon" }))), h("div", { key: '01aed740c65ea7c883e10edc19a5e9b193340bcd', class: "channel-container scrollbar", role: "list" }, this.channels
116
119
  .filter((channel) => this.searchQuery === '' || channel.displayName.includes(this.searchQuery))
117
120
  .map((channel) => {
118
121
  return (h("div", { class: {
@@ -122,7 +125,7 @@ export class RtkChannelSelectorUi {
122
125
  }, role: "listitem", onClick: () => {
123
126
  this.channelSelected(channel.id);
124
127
  } }, this.renderChannelDisplayPic(channel), h("div", { class: "channel-card", "is-direct-message": channel.isDirectMessage }, h("div", { class: 'recent-message-row' }, h("span", { class: "channel-name" }, channel.displayName), channel.latestMessage && (h("span", { class: "latest-msg-time" }, this.getTimeLabel(channel.latestMessage)))), h("div", { class: 'recent-message-row' }, this.renderRecentMessage(channel), channel.unreadCount > 0 && channel.id !== this.selectedChannelId ? (h("span", { class: "new-msgs-count" }, channel.unreadCount < 99 ? channel.unreadCount : '99+')) : null))));
125
- }))), !this.isHidden && (h("div", { key: '3d760da990293e4ed28a2408d9db7987012c2bd4', class: "overlay-container" }, h("rtk-button", { key: 'ae83483508d71df77f4de75a92d99b89d148eefe', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '482ab05f50c151ee956611db128cdd197df6ad11', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))))));
128
+ }))), !this.isHidden && (h("div", { key: '9351939e9838c91054b57171b8fc999c3d5639ef', class: "overlay-container" }, h("rtk-button", { key: '72b17edfe3552a080fdf5f8b1a87d10b0cfdf77e', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '2b6de345134d8169c776bd1bffa4a50a8543ed79', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))))));
126
129
  }
127
130
  static get is() { return "rtk-channel-selector-ui"; }
128
131
  static get encapsulation() { return "shadow"; }
@@ -8,10 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
9
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10
10
  };
11
- import { Host, h, Fragment, } from "@stencil/core";
11
+ import { Host, h, } from "@stencil/core";
12
12
  import { defaultIconPack } from "../../lib/icons";
13
13
  import { useLanguage } from "../../lib/lang";
14
- import { TEMPORARY_CHANNEL_PREFIX, alphabeticalSorter, getDMComparator, generateChatGroupKey, handleFilesDataTransfer, isDirectMessageChannel, parseMessageForTarget, stripOutReplyBlock, } from "../../utils/chat";
14
+ import { TEMPORARY_CHANNEL_PREFIX, alphabeticalSorter, getDMComparator, generateChatGroupKey, handleFilesDataTransfer, isDirectMessageChannel, parseMessageForTarget, } from "../../utils/chat";
15
15
  import { chatUnreadTimestamps } from "../../utils/user-prefs";
16
16
  import { FlagsmithFeatureFlags } from "../../utils/flags";
17
17
  import { createDefaultConfig } from "../../exports";
@@ -134,11 +134,6 @@ export class RtkChat {
134
134
  this.chatRecipientId = this.selectedGroup = 'everyone';
135
135
  }
136
136
  };
137
- this.usePaginatedChat = () => {
138
- if (this.isGroupCall && this.showPinnedMessages)
139
- return false;
140
- return this.selectedGroup === 'everyone';
141
- };
142
137
  this.updateUnreadCountGroups = (obj) => {
143
138
  this.unreadCountGroups = Object.assign(Object.assign({}, this.unreadCountGroups), obj);
144
139
  };
@@ -262,17 +257,7 @@ export class RtkChat {
262
257
  };
263
258
  this.onNewMessageHandler = async (e) => {
264
259
  const message = e.detail;
265
- if (this.isChatViewType) {
266
- await this.meeting.chat.sendMessageToChannel(message, this.selectedChannelId, this.replyMessage
267
- ? {
268
- replyTo: this.replyMessage,
269
- }
270
- : {});
271
- this.replyMessage = null;
272
- }
273
- else {
274
- this.meeting.chat.sendMessage(message, this.getRecipientPeerIds());
275
- }
260
+ this.meeting.chat.sendMessage(message, this.getRecipientPeerIds());
276
261
  };
277
262
  this.onEditMessageHandler = async (e) => {
278
263
  var _a, _b;
@@ -282,15 +267,6 @@ export class RtkChat {
282
267
  this.onEditCancel = () => {
283
268
  this.editingMessage = null;
284
269
  };
285
- this.onSearchHandler = async (e) => {
286
- this.searchQuery = e.detail;
287
- };
288
- this.onSearchDismissed = () => {
289
- this.searchQuery = '';
290
- };
291
- this.onChannelCreateClicked = () => {
292
- this.stateUpdate.emit({ activeChannelCreator: true });
293
- };
294
270
  this.onPinMessage = (event) => {
295
271
  const message = event.detail;
296
272
  if (message.pinned) {
@@ -304,23 +280,6 @@ export class RtkChat {
304
280
  const message = event.detail;
305
281
  this.meeting.chat.deleteMessage(message.id);
306
282
  };
307
- this.getChannelItems = () => {
308
- return this.channels.map((channel) => {
309
- const result = {
310
- id: channel.id,
311
- name: channel.displayName,
312
- avatarUrl: channel.displayPictureUrl,
313
- };
314
- if (channel.latestMessage) {
315
- result.latestMessage =
316
- channel.latestMessage.type === 'text'
317
- ? stripOutReplyBlock(channel.latestMessage.message)
318
- : '';
319
- result.latestMessageTime = channel.latestMessage.time;
320
- }
321
- return result;
322
- });
323
- };
324
283
  this.getPrivateChatRecipients = () => {
325
284
  const participants = this.getFilteredParticipants().map((participant) => {
326
285
  const key = generateChatGroupKey([participant.userId, this.meeting.self.userId]);
@@ -395,31 +354,6 @@ export class RtkChat {
395
354
  this.canPinMessages =
396
355
  ((_e = meeting === null || meeting === void 0 ? void 0 : meeting.__internals__) === null || _e === void 0 ? void 0 : _e.features.hasFeature(FlagsmithFeatureFlags.PINNED_MESSAGES)) &&
397
356
  meeting.self.permissions.pinParticipant;
398
- this.isGroupCall = meeting.meta.viewType === 'GROUP_CALL';
399
- this.isChatViewType = meeting.meta.viewType === 'CHAT';
400
- if (this.isChatViewType) {
401
- this.onChannelCreateOrUpdate();
402
- const validChannels = this.channels.filter((channel) => !channel.id.includes(TEMPORARY_CHANNEL_PREFIX));
403
- if (validChannels.length) {
404
- this.selectedChannelId = this.channels[0].id;
405
- }
406
- if (this.resizeObserver) {
407
- this.resizeObserver.disconnect();
408
- }
409
- this.resizeObserver = new ResizeObserver((entries) => {
410
- for (const entry of entries) {
411
- if (entry.contentBoxSize[0].inlineSize < 758) {
412
- this.selectorState = 'hide';
413
- }
414
- else {
415
- this.selectorState = 'desktop';
416
- }
417
- }
418
- });
419
- if (this.isChatViewType) {
420
- this.resizeObserver.observe(this.host);
421
- }
422
- }
423
357
  this.initializeChatGroups();
424
358
  // shallow copy to trigger render
425
359
  this.chatGroups = Object.assign({}, this.chatGroups);
@@ -430,12 +364,6 @@ export class RtkChat {
430
364
  meeting.participants.joined.addListener('participantJoined', this.onParticipantUpdate);
431
365
  meeting.participants.joined.addListener('participantLeft', this.onParticipantUpdate);
432
366
  }
433
- if (this.isChatViewType) {
434
- meeting.chat.addListener('channelCreate', this.onChannelCreateOrUpdate);
435
- meeting.chat.addListener('channelUpdate', this.onChannelCreateOrUpdate);
436
- meeting.chat.addListener('channelMessageUpdate', this.onChannelCreateOrUpdate);
437
- meeting.participants.all.addListener('participantsUpdate', this.onChannelCreateOrUpdate);
438
- }
439
367
  }
440
368
  }
441
369
  chatGroupsChanged(chatGroups) {
@@ -511,17 +439,8 @@ export class RtkChat {
511
439
  channelSwitchListener(e) {
512
440
  this.onChannelChanged(e);
513
441
  }
514
- renderHeadlessComponents() {
515
- return (h(Fragment, null, h("rtk-dialog-manager", { meeting: this.meeting }), h("rtk-notifications", { meeting: this.meeting })));
516
- }
517
442
  renderComposerUI() {
518
443
  var _a, _b, _c;
519
- if (this.isChatViewType && this.channels.length === 0)
520
- return null;
521
- if (this.isChatViewType && this.searchQuery !== '')
522
- return null;
523
- if (this.isChatViewType && !this.selectedChannelId)
524
- return null;
525
444
  if (this.chatRecipientId === 'everyone') {
526
445
  if (!this.canSendTextMessage && !this.canSendFiles)
527
446
  return null;
@@ -535,32 +454,16 @@ export class RtkChat {
535
454
  const quotedMessage = this.replyMessage ? this.replyMessage.message : '';
536
455
  return (h("rtk-chat-composer-view", Object.assign({ message: message, storageKey: (_a = this.selectedChannelId) !== null && _a !== void 0 ? _a : `draft-${this.selectedChannelId}`, quotedMessage: quotedMessage, isEditing: !!this.editingMessage, canSendTextMessage: this.isTextMessagingAllowed(), canSendFiles: this.isFileMessagingAllowed(), disableEmojiPicker: !!((_c = (_b = this.meeting) === null || _b === void 0 ? void 0 : _b.__internals__) === null || _c === void 0 ? void 0 : _c.features.hasFeature(FlagsmithFeatureFlags.DISABLE_EMOJI_PICKER)), maxLength: this.meeting.chat.maxTextLimit, rateLimits: this.meeting.chat.rateLimits, inputTextPlaceholder: this.t('chat.message_placeholder'), onNewMessage: this.onNewMessageHandler, onEditMessage: this.onEditMessageHandler, onEditCancel: this.onEditCancel, onQuotedMessageDismiss: this.onQuotedMessageDismiss }, uiProps), h("slot", { name: "chat-addon", slot: "chat-addon" })));
537
456
  }
538
- renderFullChat() {
539
- if (this.creatingChannel) {
540
- return (h("div", { class: "banner" }, h("rtk-spinner", { size: "lg" })));
541
- }
542
- if (this.channels.length === 0 || !this.selectedChannelId) {
543
- return (h("div", { class: "banner" }, h("rtk-icon", { icon: this.iconPack.create_channel_illustration, slot: "start", class: 'create-channel-illustration' }), h("rtk-button", { kind: "wide", variant: "primary", size: "md", onClick: this.onChannelCreateClicked, class: "welcome-new-channel" }, h("rtk-icon", { icon: this.iconPack.add, slot: "start" }), h("span", null, this.t('chat.new_channel'))), (this.selectorState === 'mobile' || this.selectorState === 'hide') && (h("rtk-button", { kind: "button", variant: "secondary", size: "md", class: "view-chats-btn", onClick: () => {
544
- this.selectorState = 'mobile';
545
- } }, h("rtk-icon", { icon: this.iconPack.chat, slot: "start" }), h("span", null, this.t('chat.view_chats'))))));
546
- }
547
- const selectedChannel = this.channels.find((channel) => channel.id === this.selectedChannelId);
548
- return (h("div", { class: "chat" }, h("rtk-channel-header", { slot: "header", meeting: this.meeting, channel: selectedChannel, onSearch: this.onSearchHandler, onSearchDismissed: this.onSearchDismissed, showBackButton: this.selectorState === 'mobile' || this.selectorState === 'hide', onBack: () => {
549
- this.selectorState = 'mobile';
550
- } }), this.searchQuery !== '' && (h("rtk-chat-search-results", { meeting: this.meeting, query: this.searchQuery, channelId: this.selectedChannelId })), this.searchQuery === '' && (h("rtk-chat-messages-ui-paginated", { meeting: this.meeting, size: this.size, iconPack: this.iconPack, t: this.t, selectedChannelId: this.selectedChannelId, selectedChannel: selectedChannel }))));
551
- }
552
457
  render() {
553
- var _a, _b;
458
+ var _a;
554
459
  if (!this.meeting) {
555
460
  return null;
556
461
  }
557
- const uiProps = { iconPack: this.iconPack, t: this.t, size: this.size };
558
- const selfUserId = (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.self.userId;
559
462
  let chatMessages = this.chatGroups[this.selectedGroup] || [];
560
463
  if (this.showPinnedMessages && this.meeting.chat.pinned.length !== 0) {
561
464
  chatMessages = chatMessages.filter((chat) => chat.type === 'chat' && chat.message.pinned);
562
465
  }
563
- return (h(Host, null, this.isChatViewType && this.renderHeadlessComponents(), h("div", { class: "chat-container" }, this.isChatViewType && (h("div", { class: { 'selector-container': true, [this.selectorState]: true } }, h("rtk-channel-selector-view", { channels: this.getChannelItems(), selectedChannelId: this.selectedChannelId, onChannelChange: this.onChannelChanged, t: this.t }, h("div", { class: "channel-selector-header", slot: "header" }, h("rtk-logo", { meeting: this.meeting, config: this.config, t: this.t }), h("rtk-tooltip", { label: this.t('chat.new_channel') }, h("rtk-button", { kind: "button", variant: "ghost", size: "md", onClick: this.onChannelCreateClicked, class: "channel-create-btn" }, h("rtk-icon", { icon: this.iconPack.add }))))), h("rtk-button", { kind: "icon", variant: "ghost", class: "mobile-close-btn", onClick: () => (this.selectorState = 'hide') }, h("rtk-icon", { icon: this.iconPack.dismiss })))), h("div", { class: "chat" }, this.isFileMessagingAllowed() && (h("div", { id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, h("rtk-icon", { icon: this.iconPack.attach }), h("p", null, this.t('chat.send_attachment')))), this.renderPinnedMessagesHeader(), this.isPrivateChatSupported() && (h("rtk-channel-selector-view", { channels: this.getPrivateChatRecipients(), selectedChannelId: ((_b = this.selectedParticipant) === null || _b === void 0 ? void 0 : _b.userId) || 'everyone', onChannelChange: this.updateRecipients, t: this.t, viewAs: "dropdown" })), this.isChatViewType ? (this.renderFullChat()) : this.usePaginatedChat() ? (h("rtk-chat-messages-ui-paginated", { meeting: this.meeting, onPinMessage: this.onPinMessage, onDeleteMessage: this.onDeleteMessage, size: this.size, iconPack: this.iconPack, t: this.t })) : (h("rtk-chat-messages-ui", Object.assign({ messages: chatMessages, selfUserId: selfUserId, selectedGroup: this.selectedGroup, onPinMessage: this.onPinMessage, canPinMessages: this.canPinMessages }, uiProps))), this.renderComposerUI()))));
466
+ return (h(Host, null, h("div", { class: "chat-container" }, h("div", { class: "chat" }, this.isFileMessagingAllowed() && (h("div", { id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, h("rtk-icon", { icon: this.iconPack.attach }), h("p", null, this.t('chat.send_attachment')))), this.renderPinnedMessagesHeader(), this.isPrivateChatSupported() && (h("rtk-channel-selector-view", { channels: this.getPrivateChatRecipients(), selectedChannelId: ((_a = this.selectedParticipant) === null || _a === void 0 ? void 0 : _a.userId) || 'everyone', onChannelChange: this.updateRecipients, t: this.t, viewAs: "dropdown" })), h("rtk-chat-messages-ui-paginated", { meeting: this.meeting, onPinMessage: this.onPinMessage, onDeleteMessage: this.onDeleteMessage, size: this.size, iconPack: this.iconPack, t: this.t }), this.renderComposerUI()))));
564
467
  }
565
468
  static get is() { return "rtk-chat"; }
566
469
  static get encapsulation() { return "shadow"; }
@@ -12,6 +12,7 @@ import { Host, h } from "@stencil/core";
12
12
  import { defaultIconPack } from "../../exports";
13
13
  import { useLanguage } from "../../lib/lang";
14
14
  import { SyncWithStore } from "../../utils/sync-with-store";
15
+ /** @deprecated `rtk-chat-message` is deprecated and will be removed soon. Use `rtk-message-view` instead. */
15
16
  export class RtkChatMessage {
16
17
  constructor() {
17
18
  /** Icon pack */
@@ -84,11 +85,11 @@ export class RtkChatMessage {
84
85
  } })));
85
86
  }
86
87
  render() {
87
- return (h(Host, { key: '50c4021e3c717d8d2c7e035ce6541adca05ca3d2' }, h("div", { key: '1f5a0d679baea7ea72855846f57fa8419e46f019', class: {
88
+ return (h(Host, { key: 'bb57da6f918abbb5ac45ad27918b324e06f5f47d' }, h("div", { key: '3133549cf8398237362d4d10840d4f9c8bdf1768', class: {
88
89
  'message-wrapper': true,
89
90
  'align-right': this.alignRight,
90
91
  'left-align': this.leftAlign,
91
- }, "is-continued": this.isContinued }, this.renderAvatar(), h("div", { key: '1f11244450725426035076a80fcc41a76ef0b7a4', class: {
92
+ }, "is-continued": this.isContinued }, this.renderAvatar(), h("div", { key: '472129bc5b809f989b36d48fd898c9b62a5eddcc', class: {
92
93
  message: true,
93
94
  'show-on-hover': !this.isTouchDevice(),
94
95
  }, "is-continued": this.isContinued }, this.renderMessage(), this.renderControls()))));
@@ -8,13 +8,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
9
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10
10
  };
11
- import { Host, h, writeTask, } from "@stencil/core";
11
+ import { Build, Host, h, writeTask, } from "@stencil/core";
12
12
  import { defaultIconPack } from "../../exports";
13
13
  import { useLanguage } from "../../lib/lang";
14
14
  import { differenceInMinutes, elapsedDuration, formatDateTime } from "../../utils/date";
15
15
  import { smoothScrollToBottom } from "../../utils/scroll";
16
16
  import { chatUnreadTimestamps } from "../../utils/user-prefs";
17
17
  import { SyncWithStore } from "../../utils/sync-with-store";
18
+ let hasShownDeprecationWarning = false;
19
+ /**
20
+ * @deprecated Use `rtk-chat-messages-ui-paginated` instead.
21
+ */
18
22
  export class RtkChatMessagesUi {
19
23
  constructor() {
20
24
  this.observingEl = [];
@@ -80,6 +84,11 @@ export class RtkChatMessagesUi {
80
84
  }
81
85
  connectedCallback() {
82
86
  var _a;
87
+ if (Build.isDev && !hasShownDeprecationWarning) {
88
+ hasShownDeprecationWarning = true;
89
+ // eslint-disable-next-line no-console
90
+ 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.');
91
+ }
83
92
  this.lastReadTimestamp = (_a = chatUnreadTimestamps['everyone']) !== null && _a !== void 0 ? _a : new Date('0001-01-01T00:00:00Z');
84
93
  this.intersectionObserver = new IntersectionObserver((entries) => {
85
94
  if (!document.hasFocus())
@@ -153,7 +162,7 @@ export class RtkChatMessagesUi {
153
162
  var _a;
154
163
  let prevMessage = null;
155
164
  let reachedFirstUnread = false;
156
- return (h(Host, { key: '1e44ac8e6bd0eabff25aaedb905d80fb4007903d' }, h("div", { key: 'ffbb1fe97efc2408e2ee7e4bccef1cc8a3100b66', class: "chat-container scrollbar", ref: (el) => (this.$chat = el), part: "container" }, h("div", { key: '58d11c81a25a0760d3bdd9e60a8a6d0a96c022c2', class: "spacer", part: "spacer" }), h("div", { key: 'be68b5ccfd53bc7ec4c7dc23b10fe325a7c54314', class: "chat", part: "chat" }, (_a = this.messages) === null || _a === void 0 ? void 0 : _a.map((item) => {
165
+ return (h(Host, { key: '5ca3e127c9abed47f6c172eb4c53fc6b398b4d41' }, h("div", { key: 'cd8dafbc18b733c313c49ecb6d117f70db9584b0', class: "chat-container scrollbar", ref: (el) => (this.$chat = el), part: "container" }, h("div", { key: 'd4d325263ff65ef30032ad15f086557b3ac10315', class: "spacer", part: "spacer" }), h("div", { key: 'd05b4717dd5f5b4fba9b7fc313073aed6b01e856', class: "chat", part: "chat" }, (_a = this.messages) === null || _a === void 0 ? void 0 : _a.map((item) => {
157
166
  if (item.type === 'chat') {
158
167
  const { message } = item;
159
168
  const isSelfMessage = message.userId === this.selfUserId;
@@ -172,10 +181,10 @@ export class RtkChatMessagesUi {
172
181
  } })))), 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" }))))))));
173
182
  }
174
183
  return null;
175
- }))), h("div", { key: 'ae321cae98279cb45e61968b5fab1806d8ae2f33', class: "show-new-messages-ctr" }, h("rtk-button", { key: 'e593e952615692612b2423e49975f97bb22df0fe', class: {
184
+ }))), h("div", { key: '0079564252ee7102e54b7c62c162d7a1f3e18294', class: "show-new-messages-ctr" }, h("rtk-button", { key: '90531cde507557fe0068c4e97cef7ce98df6acff', class: {
176
185
  'show-new-messages': true,
177
186
  active: this.showLatestMessageButton,
178
- }, kind: "icon", part: "show-new-messages", onClick: this.scrollToBottom }, h("rtk-icon", { key: '454e7ecb90b1660b882bb6f988beb1d7d0494d5f', icon: this.iconPack.chevron_down })))));
187
+ }, kind: "icon", part: "show-new-messages", onClick: this.scrollToBottom }, h("rtk-icon", { key: '027cd1315f035a7ae3c093fb2ed22c6eda2cdae5', icon: this.iconPack.chevron_down })))));
179
188
  }
180
189
  static get is() { return "rtk-chat-messages-ui"; }
181
190
  static get encapsulation() { return "shadow"; }
@@ -123,7 +123,9 @@ export class RtkChatMessagesUiPaginated {
123
123
  .find((member) => member.userId === message.userId)) === null || _b === void 0 ? void 0 : _b.picture) !== null && _c !== void 0 ? _c : (_d = this.meeting.participants.waitlisted.toArray().find((p) => p.userId === message.userId)) === null || _d === void 0 ? void 0 : _d.picture;
124
124
  }
125
125
  }
126
- return (h("div", { class: { pinned: message.pinned } }, h("div", { class: "message-wrapper" }, h("rtk-message-view", { time: message.time, actions: this.getMessageActions(message), authorName: message.displayName, avatarUrl: displayPicture, hideAuthorName: isContinued, viewType: 'incoming', variant: "bubble", onAction: (event) => this.onMessageActionHandler(event.detail, message) }, h("div", null, 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: () => {
126
+ const isSelf = message.userId === this.meeting.self.userId;
127
+ const viewType = isSelf ? 'outgoing' : 'incoming';
128
+ return (h("div", { class: { pinned: message.pinned } }, h("div", { class: "message-wrapper" }, h("rtk-message-view", { time: message.time, actions: this.getMessageActions(message), authorName: message.displayName, isSelf: isSelf, avatarUrl: displayPicture, hideAuthorName: isContinued, viewType: viewType, variant: "bubble", onAction: (event) => this.onMessageActionHandler(event.detail, message) }, h("div", null, 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: () => {
127
129
  this.stateUpdate.emit({ image: message });
128
130
  } }))), message.pinned && (h("div", { class: "pin-icon", part: "pin-icon" }, h("rtk-icon", { icon: this.iconPack.pin, size: "sm" }))))))));
129
131
  };
@@ -171,7 +173,7 @@ export class RtkChatMessagesUiPaginated {
171
173
  this.lastReadMessageIndex = -1;
172
174
  }
173
175
  render() {
174
- return (h(Host, { key: 'd0ae21ca32589c18ede4b1e4b4682f5b82b58320' }, h("rtk-paginated-list", { key: 'bff3bdae7c6bbefed8dd8b478ac60370067c75a6', ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getChatMessages, createNodes: this.createChatNodes, selectedItemId: this.selectedChannelId, emptyListLabel: this.t('chat.empty_channel') }, h("slot", { key: '043cfe627a1056c2267dd00705ff33e7e96f1f89' }))));
176
+ return (h(Host, { key: '9716b4db0dbae3308a056693341635d93c0d1227' }, h("rtk-paginated-list", { key: '4b540e565aa0d7031ad8c84f35cadb07d207abfe', ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getChatMessages, createNodes: this.createChatNodes, selectedItemId: this.selectedChannelId, emptyListLabel: this.t('chat.empty_channel') }, h("slot", { key: '41ffb56aea7e02f3c20f8ea261638d6fd9d80232' }))));
175
177
  }
176
178
  static get is() { return "rtk-chat-messages-ui-paginated"; }
177
179
  static get encapsulation() { return "shadow"; }
@@ -11,6 +11,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
11
11
  import { h, Host } from "@stencil/core";
12
12
  import { defaultIconPack, useLanguage } from "../../exports";
13
13
  import { SyncWithStore } from "../../utils/sync-with-store";
14
+ /** @deprecated `rtk-chat-search-results` is deprecated and will be removed soon. Use `rtk-chat-messages-ui-paginated` instead. -*/
14
15
  export class RtkChatSearchResults {
15
16
  constructor() {
16
17
  /** Icon pack */
@@ -31,7 +32,7 @@ export class RtkChatSearchResults {
31
32
  };
32
33
  }
33
34
  render() {
34
- return (h(Host, { key: '9947c793cb766158d4ed3d81871bbdb8b60274af' }, h("rtk-paginated-list", { key: '0d91dc8818b08c7ed053728074c483f159811a41', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer, selectedItemId: this.query })));
35
+ return (h(Host, { key: '6876b825ec6df02a21a40b29084dbd7cefed7b03' }, h("rtk-paginated-list", { key: 'ab78b5cf7955f090038eb28665d66101fd5297f9', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer, selectedItemId: this.query })));
35
36
  }
36
37
  static get is() { return "rtk-chat-search-results"; }
37
38
  static get encapsulation() { return "shadow"; }
@@ -132,12 +132,6 @@ export class RtkDialogManager {
132
132
  this.updateStoreState('activeMuteAllConfirmation', false);
133
133
  }, iconPack: this.iconPack, t: this.t }, h("rtk-mute-all-confirmation", Object.assign({}, defaults)))));
134
134
  }
135
- else if (states === null || states === void 0 ? void 0 : states.activeChannelCreator) {
136
- return (h(Host, null, h("rtk-dialog", { open: true, onRtkDialogClose: () => {
137
- this.updateStoreState('activeChannelCreator', false);
138
- }, iconPack: this.iconPack, t: this.t }, h("rtk-channel-creator", Object.assign({}, defaults)))));
139
- }
140
- return null;
141
135
  }
142
136
  static get is() { return "rtk-dialog-manager"; }
143
137
  static get encapsulation() { return "shadow"; }
@@ -16,6 +16,7 @@ import { downloadFile, getExtension, getFileSize } from "../../utils/file";
16
16
  import { SyncWithStore } from "../../utils/sync-with-store";
17
17
  import { useLanguage } from "../../lib/lang";
18
18
  /**
19
+ * @deprecated `rtk-file-message` is deprecated and will be removed soon. Use `rtk-file-message-view` instead.
19
20
  * A component which renders a file message from chat.
20
21
  */
21
22
  export class RtkFileMessage {
@@ -33,10 +34,10 @@ export class RtkFileMessage {
33
34
  }
34
35
  render() {
35
36
  const link = sanitizeLink(this.message.link);
36
- return (h(Host, { key: '771fc8ccb2700a3fba83f04676a0c4396c1a8a41' }, !this.isContinued && (h(ChatHead, { key: 'ef2d83897dcae870bb7a2b0eeef397585b873b77', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: '841039fcad32f254653bd490a98f268479345b44', class: {
37
+ return (h(Host, { key: '8796e55e793db9aeb4ede2d57524bc38aa817ddf' }, !this.isContinued && (h(ChatHead, { key: '7018209894272b21e1f5225d7bad92de5107d0d7', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: 'd30878670f4e90b35578ac616761645e5744c7cd', class: {
37
38
  body: true,
38
39
  bubble: this.showBubble,
39
- }, part: "body" }, h("div", { key: '65e3c8aafa4e9fa55a24264685bb0cf20841048a', class: "file" }, h("div", { key: '1b1e97b1518c5471964ea91889f4500fc0e01e03', class: "file-data" }, h("div", { key: 'ff9d3071b528162f6e796ccb49e2472df2e8d364', class: "name" }, this.message.name), h("div", { key: '1d3ccb1f5bc2a94983de216e77a8ebc0ae07d669', class: "file-data-split" }, h("div", { key: 'ebab32b642e097b3c1c1903269a8d76fbd586f5c', class: "ext" }, getExtension(this.message.name)), h("span", { key: '81ee3600ba18a7689706504befebcf02697a56e7', class: "divider" }), h("div", { key: 'e969a8d6221d8af560a26510c38a92406a18ef2a', class: "size" }, getFileSize(this.message.size)))), h("rtk-button", { key: '482c27659f71cfebf9f88fdf538e32baa6b87073', variant: "secondary", kind: "icon", onClick: () => downloadFile(link, { name: this.message.name, fallbackName: 'file' }), part: "button" }, h("rtk-icon", { key: '4efaeb927b4ea2010eed09227eb7f511b9253017', icon: this.iconPack.download }))))));
40
+ }, part: "body" }, h("div", { key: '73ba1a2b1aaacec88930605d5a826d32ad56581e', class: "file" }, h("div", { key: '17234fd57360f3a7953ce898282240e03b94eb58', class: "file-data" }, h("div", { key: '07424973ceeb567efee25cb45eca09792482cd21', class: "name" }, this.message.name), h("div", { key: '255087ceadb46be8da915d2b9134b3922f9a50b7', class: "file-data-split" }, h("div", { key: 'a01185efdf779d87548e1b7d73dfad823dbbd611', class: "ext" }, getExtension(this.message.name)), h("span", { key: 'a129cb26284432bbfad635dc3774309fbadc8fec', class: "divider" }), h("div", { key: '0af8af2f2d18c0a1d72bc5040bdabb1f06209840', class: "size" }, getFileSize(this.message.size)))), h("rtk-button", { key: '522a0378351016927ca644cce5db710336bf348b', variant: "secondary", kind: "icon", onClick: () => downloadFile(link, { name: this.message.name, fallbackName: 'file' }), part: "button" }, h("rtk-icon", { key: '8d49abfffb8149adc9fd3e9f214b54a1f642edc3', icon: this.iconPack.download }))))));
40
41
  }
41
42
  static get is() { return "rtk-file-message"; }
42
43
  static get properties() {
@@ -16,6 +16,7 @@ import { downloadFile } from "../../utils/file";
16
16
  import { useLanguage } from "../../lib/lang";
17
17
  import { SyncWithStore } from "../../utils/sync-with-store";
18
18
  /**
19
+ * @deprecated `rtk-image-message` is deprecated and will be removed soon. Use `rtk-image-message-view` instead.
19
20
  * A component which renders an image message from chat.
20
21
  */
21
22
  export class RtkImageMessage {
@@ -33,10 +34,10 @@ export class RtkImageMessage {
33
34
  this.status = 'loading';
34
35
  }
35
36
  render() {
36
- return (h(Host, { key: '7e0fc95aff5f4db94f4ec0ba3c4dcd4d2ee9ffa6' }, !this.isContinued && (h(ChatHead, { key: 'cc7f214502f49fe2869f3e9bdfd797926987ef74', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: '2e61a7320c1941df7c0d13082a9257e47ec5df58', class: {
37
+ return (h(Host, { key: 'bcbf806340704a0f288efdf06bc0712e2e296e1b' }, !this.isContinued && (h(ChatHead, { key: 'c7c64c22e4a0d37dd405d83f537e0ac858ee85f4', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: '61bff7a6569ea50b9c6bc54fe71c1591a4079bb0', class: {
37
38
  body: true,
38
39
  bubble: this.showBubble,
39
- }, part: "body" }, h("div", { key: 'bf2eec18c82aae79f31c40d44711ec7db2ab5bf1', class: { image: true, loaded: this.status === 'loaded' } }, h("img", { key: 'acb8f5ef169bd0c663dbc74c1d43b4186f81004a', src: sanitizeLink(this.message.link), onLoad: () => {
40
+ }, part: "body" }, h("div", { key: '56740ce9648a6b580c338dc69eec4f0bb09e200b', class: { image: true, loaded: this.status === 'loaded' } }, h("img", { key: '46616303b6eaca3831083a5603aade677e8e27f1', src: sanitizeLink(this.message.link), onLoad: () => {
40
41
  this.status = 'loaded';
41
42
  }, onError: () => {
42
43
  this.status = 'errored';
@@ -44,9 +45,9 @@ export class RtkImageMessage {
44
45
  if (this.status === 'loaded') {
45
46
  this.stateUpdate.emit({ image: this.message });
46
47
  }
47
- } }), this.status === 'loading' && (h("div", { key: '92a6610a937088e03200f9048146da0e4f749054', class: "image-spinner", title: this.t('chat.img.loading'), "aria-label": this.t('chat.img.loading') }, h("rtk-spinner", { key: 'b85fa3e9dd0580f1d7e18360e74670a933e74367', iconPack: this.iconPack }))), this.status === 'errored' && (h("div", { key: 'b1046aff30dfe244498c957799f33c3a7c26ecb8', class: "image-errored", title: this.t('chat.error.img_not_found'), "aria-label": this.t('chat.error.img_not_found') }, h("rtk-icon", { key: '833e3ea7f7734a17450c98077e52b9db4fb5404a', icon: this.iconPack.image_off }))), this.status === 'loaded' && (h("div", { key: '2545e3685f6e586b4fdc1304da08bbece5ec2cda', class: "actions" }, h("rtk-button", { key: 'bb5e37862d82702f6350f48c275100825dd494fa', class: "action", variant: "secondary", kind: "icon", onClick: () => {
48
+ } }), this.status === 'loading' && (h("div", { key: 'dac71a4e7e4d02b7e92386f92e2b066d31dc1c94', class: "image-spinner", title: this.t('chat.img.loading'), "aria-label": this.t('chat.img.loading') }, h("rtk-spinner", { key: '6c7b01868932f2ed0e6602d68caecb9b38d4f47b', iconPack: this.iconPack }))), this.status === 'errored' && (h("div", { key: '87c343f4a62662bc100361acf7aba9d3df31705f', class: "image-errored", title: this.t('chat.error.img_not_found'), "aria-label": this.t('chat.error.img_not_found') }, h("rtk-icon", { key: '35851cf346c3d873cf0f27d8520df278c9b7cfa1', icon: this.iconPack.image_off }))), this.status === 'loaded' && (h("div", { key: '37e07aef242ef26e57a5ec96e4a127d8ad27dc82', class: "actions" }, h("rtk-button", { key: 'f32b44c453061e7ba41a67f1c266f634ad0a6cc3', class: "action", variant: "secondary", kind: "icon", onClick: () => {
48
49
  this.stateUpdate.emit({ image: this.message });
49
- } }, h("rtk-icon", { key: '247f754dfe4c9b63634906105a71bb2146154eaa', icon: this.iconPack.full_screen_maximize })), h("rtk-button", { key: 'ab2712266ddce6f79abf1fca68379abcb4a3c9a1', class: "action", variant: "secondary", kind: "icon", onClick: () => downloadFile(this.message.link, { fallbackName: 'image' }) }, h("rtk-icon", { key: 'ffafa0e22d7752b125d0e1e50cfc03d858d29365', icon: this.iconPack.download }))))))));
50
+ } }, h("rtk-icon", { key: '4a6c1cfe87d356e1f39db04b3536f9e9e3ca1b34', icon: this.iconPack.full_screen_maximize })), h("rtk-button", { key: 'e22f94520b0ead2db124e6a65ad110ea029855f3', class: "action", variant: "secondary", kind: "icon", onClick: () => downloadFile(this.message.link, { fallbackName: 'image' }) }, h("rtk-icon", { key: 'a5f7b58d27a12e8754db70c9d56facc547883d4f', icon: this.iconPack.download }))))))));
50
51
  }
51
52
  static get is() { return "rtk-image-message"; }
52
53
  static get originalStyleUrls() {
@@ -37,6 +37,7 @@ p {
37
37
  .message-wrapper {
38
38
  display: flex;
39
39
  flex-direction: row-reverse;
40
+ align-items: flex-start;
40
41
  gap: var(--rtk-space-2, 8px);
41
42
  }
42
43
  .message-wrapper.incoming {
@@ -45,15 +46,23 @@ p {
45
46
  .message {
46
47
  display: flex;
47
48
  flex-direction: column;
49
+ align-items: flex-end;
48
50
  }
51
+
52
+ .incoming .message {
53
+ display: flex;
54
+ flex-direction: column;
55
+ align-items: flex-start;
56
+ }
57
+
49
58
  .header {
59
+ margin-top: var(--rtk-space-1, 4px);
50
60
  margin-bottom: var(--rtk-space-1, 4px);
51
61
  align-self: flex-end;
52
62
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
53
- font-size: 14px;
63
+ font-size: 12px;
54
64
  font-weight: 600;
55
65
  }
56
-
57
66
  .incoming .header {
58
67
  align-self: flex-start;
59
68
  }
@@ -69,29 +78,34 @@ p {
69
78
  position: relative;
70
79
  }
71
80
 
72
- .body .metadata {
73
- margin-top: var(--rtk-space-2, 8px);
74
- align-self: flex-end;
75
- font-size: 10px;
76
- }
77
-
78
81
  .bubble {
79
- max-width: var(--rtk-space-96, 384px);
82
+ max-width: 90%;
80
83
  padding: var(--rtk-space-2, 8px);
84
+ border-width: 1px;
85
+ border-style: solid;
86
+ --tw-border-opacity: 1;
87
+ border-color: rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));
81
88
  --tw-bg-opacity: 1;
82
- background-color: rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));
89
+ background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
83
90
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
84
91
  border-radius: var(--rtk-border-radius-md, 8px);
85
92
  }
86
93
 
87
94
  .incoming .bubble {
88
- width: -moz-fit-content;
89
- width: fit-content;
95
+ --tw-border-opacity: 1;
96
+ border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));
90
97
  --tw-bg-opacity: 1;
91
98
  background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
92
99
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
93
100
  }
94
101
 
102
+ .metadata {
103
+ margin-top: var(--rtk-space-2, 8px);
104
+ align-self: flex-end;
105
+ font-size: 10px;
106
+ color: rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76));
107
+ }
108
+
95
109
  .avatar {
96
110
  display: none;
97
111
  }
@@ -22,6 +22,8 @@ export class RtkMessageView {
22
22
  this.viewType = 'outgoing';
23
23
  /** Hides avatar */
24
24
  this.hideAvatar = false;
25
+ /** Is the message sent by the current user */
26
+ this.isSelf = false;
25
27
  /** Hides author display label */
26
28
  this.hideAuthorName = false;
27
29
  /** Hides metadata (time) */
@@ -33,7 +35,7 @@ export class RtkMessageView {
33
35
  return (h("rtk-menu", { placement: "top-end", offset: 1 }, h("button", { slot: "trigger", class: "actions" }, h("rtk-icon", { icon: this.iconPack.chevron_down })), h("rtk-menu-list", null, this.actions.map((action) => (h("rtk-menu-item", { onClick: () => this.onAction.emit(action.id) }, action.icon && h("rtk-icon", { icon: action.icon, slot: "start" }), action.label))))));
34
36
  }
35
37
  render() {
36
- return (h(Host, { key: '9fafe4370eee525631023ecde39b3293059e8c22' }, h("div", { key: '1718981905d4458d0862c34c3c342f7335f0921b', class: { 'message-wrapper': true, [this.viewType]: true } }, !this.hideAvatar && (h("aside", { key: 'c6ea0c46283a7faa4bb937cb4196e2e1d548c721', class: "avatar", part: "avatar" }, h("rtk-avatar", { key: 'e3181a831b75b5c79f212da64076dbf6b47fecca', participant: { name: this.authorName, picture: this.avatarUrl }, size: "sm" }))), h("div", { key: '5565b5711055f1cd543cfaa36c03789b82fb94fa', class: "message", part: "message" }, !this.hideAuthorName && h("div", { key: '613098d825ba1c33aaca53579c883a306ed1239d', class: "header" }, this.authorName), h("div", { key: '166dd3e4fb33876cd74f94a7ac193064e8778f81', class: { body: true, bubble: this.variant === 'bubble' } }, h("slot", { key: 'd04e722b66c4d7cb7c20952a9e7c70d048e66410' }), !this.hideMetadata && !!this.time && (h("div", { key: 'f12d8c9dd8320202a6906c10298d3357aff5d762', class: "metadata", title: formatDateTime(this.time) }, elapsedDuration(this.time, new Date(Date.now())))), this.actions.length !== 0 && this.renderActions())))));
38
+ return (h(Host, { key: '61882011f477f816296277a4f2d5622d224e47f0' }, h("div", { key: 'ae21bfc0c499879da6a2167f0cad5203475de696', class: { 'message-wrapper': true, [this.viewType]: true } }, !this.hideAvatar && (h("aside", { key: '73b10ebb1dccdc4e2c9258f185eb14f07d11d542', class: "avatar", part: "avatar" }, h("rtk-avatar", { key: 'e07971bf9d7738fb2dcc015d339a13d5dca7c6f7', participant: { name: this.authorName, picture: this.avatarUrl }, size: "sm" }))), h("div", { key: '1e24801f717589e598c4160bea7ab10a59acfcc2', class: "message", part: "message" }, !this.hideAuthorName && (h("div", { key: '3178f750ad798b7d83508f82ead36ee5407fee4c', class: "header" }, this.authorName, " ", this.isSelf ? ' (You)' : '')), h("div", { key: '056445ef0c557d7d756330df5778ad8bc2d41e60', class: { body: true, bubble: this.variant === 'bubble' } }, h("slot", { key: '6d5486666ce2238e4387c2621d562b24704a9317' }), !this.hideMetadata && !!this.time && (h("div", { key: '1d4b9bdbb3aaf288dce4b43a31354df3d413b2b4', class: "metadata", title: formatDateTime(this.time) }, elapsedDuration(this.time, new Date(Date.now())))), this.actions.length !== 0 && this.renderActions())))));
37
39
  }
38
40
  static get is() { return "rtk-message-view"; }
39
41
  static get encapsulation() { return "shadow"; }
@@ -171,6 +173,26 @@ export class RtkMessageView {
171
173
  "attribute": "author-name",
172
174
  "reflect": false
173
175
  },
176
+ "isSelf": {
177
+ "type": "boolean",
178
+ "mutable": false,
179
+ "complexType": {
180
+ "original": "boolean",
181
+ "resolved": "boolean",
182
+ "references": {}
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": "Is the message sent by the current user"
189
+ },
190
+ "getter": false,
191
+ "setter": false,
192
+ "attribute": "is-self",
193
+ "reflect": false,
194
+ "defaultValue": "false"
195
+ },
174
196
  "hideAuthorName": {
175
197
  "type": "boolean",
176
198
  "mutable": false,
@@ -32,9 +32,10 @@
32
32
  flex-direction: column-reverse;
33
33
  padding-top: var(--rtk-space-4, 16px);
34
34
  padding-bottom: var(--rtk-space-4, 16px);
35
+ padding-left: var(--rtk-space-2, 8px);
36
+ padding-right: var(--rtk-space-2, 8px);
35
37
  flex: 1 0 0px;
36
38
  overflow-y: scroll;
37
- /* overflow-anchor: none; */
38
39
  }
39
40
  .file-picker {
40
41
  display: none;
@@ -16,8 +16,6 @@ import { SyncWithStore } from "../../utils/sync-with-store";
16
16
  import { smoothScrollToBottom } from "../../utils/scroll";
17
17
  export class RtkPaginatedList {
18
18
  constructor() {
19
- /** auto scroll list to bottom */
20
- this.autoScroll = true;
21
19
  /** Icon pack */
22
20
  this.iconPack = defaultIconPack;
23
21
  /** Language */
@@ -101,6 +99,7 @@ export class RtkPaginatedList {
101
99
  }
102
100
  connectedCallback() {
103
101
  this.rerender = debounce(this.rerender.bind(this), 50, { maxWait: 200 });
102
+ this.autoScroll = true;
104
103
  this.intersectionObserver = new IntersectionObserver((entries) => {
105
104
  writeTask(() => {
106
105
  for (const entry of entries) {
@@ -236,20 +235,6 @@ export class RtkPaginatedList {
236
235
  onPageRendered([]);
237
236
  return;
238
237
  }
239
- // const page = this.createNodes(data);
240
- // const lastNodeToBeRendered = page[page.length - 1];
241
- // let lastNodeToBeRenderedProxy = new Proxy(lastNodeToBeRendered, {
242
- // set(obj, prop, value) {
243
- // /**
244
- // * Whenever the last node has the 'elm' property added to it
245
- // * we can assume it has been rendered
246
- // */
247
- // if (prop === '$elm$' && value && !obj.$elm$) onPageRendered();
248
- // obj[prop] = value;
249
- // return true;
250
- // },
251
- // });
252
- // page[page.length - 1] = lastNodeToBeRenderedProxy;
253
238
  data.forEach((node) => this.addNodeToRender(node, reversed));
254
239
  this.rerender();
255
240
  onPageRendered(data);
@@ -278,7 +263,7 @@ export class RtkPaginatedList {
278
263
  * which is why div#bottom-scroll comes before div#top-scroll
279
264
  * div.page-wrapper prevents reversal of messages
280
265
  */
281
- return (h(Host, { key: '4f1521c422a134079a5def745ed85631c48a132a' }, h("div", { key: '0cadd9723fbc844bab7e595d18b6174ecb6ba10c', class: "scrollbar container", part: "container", ref: (el) => (this.$paginatedList = el) }, h("div", { key: '35a9b009d74a81159c7b856b9412b670051c9893', class: { 'show-new-messages-ctr': true, active: !this.shouldRenderNewNodes } }, h("rtk-button", { key: '2798fbf3da7200db72dfe1f985d4570163d77ff8', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => this.onDownArrowClicked() }, h("rtk-icon", { key: '08b47cd4f472b240174cee559d4d39cf796aa788', icon: this.iconPack.chevron_down }))), h("div", { key: 'ae30f2391936a8a4f258384cc8da4300bf2c350c', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoading && this.pagesToRender.flat().length === 0 && h("rtk-spinner", { key: '72f866d03e6d0d954a46443aa19d95f7033dfbe9', size: "lg" }), this.pagesToRender.flat().length === 0 && this.showEmptyListLabel ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pagesToRender.map((page) => this.createNodes(page)))), h("div", { key: 'c96065eee8e01c56c0f6cb419b5e26ceef564678', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
266
+ return (h(Host, { key: 'bb4971c301060a02d6a9ad536fb633c0c87519c4' }, h("div", { key: '92a9524264d790fff447aefb7cc20a9da6958687', class: "scrollbar container", part: "container", ref: (el) => (this.$paginatedList = el) }, h("div", { key: 'e64bd91ea1e869b9a1f5e861959ee78306c17bee', class: { 'show-new-messages-ctr': true, active: !this.shouldRenderNewNodes } }, h("rtk-button", { key: '2471e6614616aa33c9ecd5d0c1f47d09fa00b481', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => this.onDownArrowClicked() }, h("rtk-icon", { key: 'ed0b255c69fbaeecc883c0492fd5b810b8d429b8', icon: this.iconPack.chevron_down }))), h("div", { key: '509aa620d47e853fd4e73d5b6c30433156b0f1da', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoading && this.pagesToRender.flat().length === 0 && h("rtk-spinner", { key: '47e60a2fcb103200d763b9af257babfca5ee6e3c', size: "lg" }), this.pagesToRender.flat().length === 0 && this.showEmptyListLabel ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pagesToRender.map((page) => this.createNodes(page)))), h("div", { key: '64ab66547b004130f9f3d0b0976c27c5aeeb720e', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
282
267
  }
283
268
  static get is() { return "rtk-paginated-list"; }
284
269
  static get encapsulation() { return "shadow"; }
@@ -413,8 +398,7 @@ export class RtkPaginatedList {
413
398
  "getter": false,
414
399
  "setter": false,
415
400
  "attribute": "auto-scroll",
416
- "reflect": false,
417
- "defaultValue": "true"
401
+ "reflect": false
418
402
  },
419
403
  "iconPack": {
420
404
  "type": "unknown",