@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.
- package/dist/browser.js +1 -1
- package/dist/cjs/ChatHead-e13f3b0e.js +13 -0
- package/dist/cjs/{TextMessage-4f9299ff.js → TextMessage-7bb3e1fd.js} +1 -1
- package/dist/cjs/{chat-04fd67b4.js → chat-717e517d.js} +1 -1
- package/dist/cjs/{notification-6f17add8.js → config-8c9ac89a.js} +0 -35
- package/dist/cjs/{ChatHead-6416d6cf.js → date-61ffcd0a.js} +0 -10
- package/dist/cjs/index-05554ce6.js +62 -2
- package/dist/cjs/index.cjs.js +11 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/notification-567fe887.js +39 -0
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -1
- package/dist/cjs/rtk-avatar_24.cjs.entry.js +2568 -0
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +397 -0
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +986 -0
- package/dist/cjs/rtk-channel-creator.cjs.entry.js +163 -0
- package/dist/cjs/rtk-channel-details.cjs.entry.js +49 -0
- package/dist/cjs/rtk-channel-header.cjs.entry.js +83 -0
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +4 -4
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-message.cjs.entry.js +118 -0
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +200 -0
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +57 -0
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +686 -0
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +154 -0
- package/dist/cjs/rtk-dialog.cjs.entry.js +93 -0
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +148 -0
- package/dist/cjs/rtk-logo.cjs.entry.js +77 -0
- package/dist/cjs/rtk-notification.cjs.entry.js +71 -0
- package/dist/cjs/rtk-notifications.cjs.entry.js +588 -0
- package/dist/cjs/rtk-sidebar.cjs.entry.js +1 -1
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +5 -2
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +2 -1
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +1 -0
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +5 -2
- package/dist/collection/components/rtk-chat/rtk-chat.js +5 -102
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +3 -2
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +13 -4
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +4 -2
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -1
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +0 -6
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +3 -2
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +5 -4
- package/dist/collection/components/rtk-message-view/rtk-message-view.css +26 -12
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +23 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +2 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +3 -19
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.css +2 -0
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -2
- package/dist/collection/utils/chat.js +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/{p-91a9efcf.js → p-013ffc19.js} +3 -3
- package/dist/components/{p-7f0ee3c6.js → p-024ef28a.js} +2 -2
- package/dist/components/{p-39a6a6a6.js → p-027ec380.js} +6 -6
- package/dist/components/{p-c663f9b1.js → p-06e20f42.js} +2 -2
- package/dist/components/{p-731ee854.js → p-08382c59.js} +5 -5
- package/dist/components/{p-65b9931e.js → p-0bbd0056.js} +2 -2
- package/dist/components/{p-a5a40d7e.js → p-102b6df8.js} +2 -2
- package/dist/components/{p-4772f368.js → p-121e073d.js} +2 -2
- package/dist/components/{p-c5dfd548.js → p-1f320625.js} +48 -325
- package/dist/components/{p-03fe0979.js → p-244cbe7b.js} +2 -2
- package/dist/components/{p-9ea5df8f.js → p-2508ac98.js} +2 -2
- package/dist/components/{p-9730c398.js → p-2590f470.js} +3 -3
- package/dist/components/{p-f46a0782.js → p-25ca06f2.js} +2 -2
- package/dist/components/{p-2b955eb0.js → p-27fea689.js} +4 -4
- package/dist/components/{p-cc5ecd67.js → p-2d08ab28.js} +2 -2
- package/dist/components/{p-ddb2df62.js → p-2ea7652f.js} +2 -2
- package/dist/components/{p-4c8cff29.js → p-30ac9705.js} +6 -21
- package/dist/components/{p-989d36e2.js → p-31c44fed.js} +6 -6
- package/dist/components/{p-c3582bf3.js → p-32609f9f.js} +12 -9
- package/dist/components/{p-3a80e3ab.js → p-32bf6a44.js} +4 -4
- package/dist/components/{p-c7413ac8.js → p-335f937c.js} +2 -2
- package/dist/components/{p-7119673c.js → p-33a87325.js} +2 -2
- package/dist/components/{p-3df2211d.js → p-3d3fa677.js} +2 -2
- package/dist/components/{p-1a60f5b0.js → p-3fa8f1e1.js} +2 -2
- package/dist/components/{p-af35ac31.js → p-47c25f64.js} +1 -1
- package/dist/components/{p-511ed3f8.js → p-498c01a6.js} +2 -2
- package/dist/components/{p-54dba22f.js → p-4b542718.js} +2 -2
- package/dist/components/{p-17867774.js → p-4c7f1a19.js} +2 -2
- package/dist/components/{p-b373754d.js → p-51de7af3.js} +1 -1
- package/dist/components/{p-52b090fc.js → p-52d1525c.js} +2 -2
- package/dist/components/{p-f5f0b499.js → p-560e7a4f.js} +1 -1
- package/dist/components/{p-93e1439e.js → p-566c1155.js} +1 -1
- package/dist/components/{p-49967150.js → p-5b03154d.js} +3 -3
- package/dist/components/{p-ed8955d0.js → p-5f26bba3.js} +2 -2
- package/dist/components/{p-12d2b558.js → p-63953295.js} +2 -2
- package/dist/components/{p-3438fd71.js → p-6756b222.js} +2 -2
- package/dist/components/{p-bccc21f8.js → p-68c9100f.js} +2 -2
- package/dist/components/{p-1d29b7c3.js → p-6c1b380d.js} +12 -12
- package/dist/components/{p-f9faeffc.js → p-6cbaf90a.js} +2 -2
- package/dist/components/{p-551bed08.js → p-6eabd1ad.js} +3 -3
- package/dist/components/{p-df25c2a7.js → p-6f340109.js} +1 -1
- package/dist/components/{p-840ef7fe.js → p-724074c4.js} +5 -5
- package/dist/components/{p-a09aefba.js → p-7481511c.js} +2 -2
- package/dist/components/{p-6bd3b767.js → p-78b61cce.js} +1 -1
- package/dist/components/{p-fb427023.js → p-7a322c43.js} +3 -3
- package/dist/components/{p-037e572f.js → p-7fc0dc2f.js} +1 -1
- package/dist/components/{p-a9d5d165.js → p-82c678d6.js} +7 -7
- package/dist/components/{p-314b1504.js → p-82f8c924.js} +2 -2
- package/dist/components/{p-6d49cf9f.js → p-84e5b453.js} +2 -2
- package/dist/components/{p-04aaec79.js → p-88e50eea.js} +17 -15
- package/dist/components/{p-f4ff7d70.js → p-97e1e186.js} +2 -2
- package/dist/components/{p-fb46d041.js → p-9c2c0760.js} +7 -7
- package/dist/components/{p-dc4b6fc4.js → p-9e87b2c9.js} +2 -2
- package/dist/components/{p-0a7f6a8a.js → p-9fd18352.js} +2 -2
- package/dist/components/{p-d2b37264.js → p-a0c8422f.js} +4 -4
- package/dist/components/{p-f734a4cf.js → p-a10b9faa.js} +2 -2
- package/dist/components/{p-d2c3870a.js → p-a159952c.js} +2 -2
- package/dist/components/{p-f81c7fda.js → p-a29c01fc.js} +2 -2
- package/dist/components/{p-897a04be.js → p-a4b26604.js} +4 -4
- package/dist/components/{p-a2f4f9e3.js → p-aae4c250.js} +1 -1
- package/dist/components/{p-72346e7f.js → p-afe77b50.js} +2 -2
- package/dist/components/{p-6fe2233b.js → p-b1338b4f.js} +3 -3
- package/dist/components/{p-e2e22bf8.js → p-b397a600.js} +4 -4
- package/dist/components/{p-34b580c9.js → p-b6ee1a32.js} +2 -2
- package/dist/components/{p-3fe1bb0d.js → p-b762cf1e.js} +11 -11
- package/dist/components/{p-4edd666b.js → p-bb8f2597.js} +6 -6
- package/dist/components/{p-b804a5f5.js → p-be9fe914.js} +7 -7
- package/dist/components/{p-9149c02e.js → p-c078ae06.js} +2 -2
- package/dist/components/{p-26055088.js → p-c07e3e6d.js} +2 -2
- package/dist/components/{p-40c5ca62.js → p-c515acba.js} +2 -2
- package/dist/components/{p-12437468.js → p-cf503999.js} +2 -2
- package/dist/components/{p-66bae0d9.js → p-d06d1eac.js} +2 -2
- package/dist/components/{p-0abe4b8a.js → p-dab9d3d6.js} +1 -1
- package/dist/components/{p-01a50790.js → p-e48cd596.js} +4 -4
- package/dist/components/{p-aba9b612.js → p-e732b5ee.js} +4 -4
- package/dist/components/{p-22d9d3ff.js → p-e87b68de.js} +5 -5
- package/dist/components/{p-22a734a8.js → p-eb7df0eb.js} +6 -6
- package/dist/components/{p-c40166a9.js → p-ef71b75e.js} +5 -5
- package/dist/components/{p-00ebd1dc.js → p-fa7412e2.js} +2 -2
- package/dist/components/{p-1986022b.js → p-fc21299d.js} +2 -2
- package/dist/components/{p-3051f5f5.js → p-fdb67d1f.js} +2 -2
- package/dist/components/rtk-ai-toggle.js +4 -4
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +3 -3
- package/dist/components/rtk-audio-grid.js +2 -2
- package/dist/components/rtk-audio-tile.js +5 -5
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +4 -4
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +4 -4
- package/dist/components/rtk-caption-toggle.js +4 -4
- package/dist/components/rtk-channel-creator.js +209 -1
- package/dist/components/rtk-channel-details.js +1 -1
- package/dist/components/rtk-channel-header.js +146 -1
- package/dist/components/rtk-channel-selector-ui.js +7 -7
- package/dist/components/rtk-channel-selector-view.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +6 -6
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +302 -1
- package/dist/components/rtk-chat-search-results.js +146 -1
- package/dist/components/rtk-chat-selector-ui.js +3 -3
- package/dist/components/rtk-chat-toggle.js +5 -5
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +2 -2
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +2 -2
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +4 -4
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +305 -1
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +3 -3
- package/dist/components/rtk-file-dropzone.js +2 -2
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +2 -2
- package/dist/components/rtk-grid.js +8 -8
- package/dist/components/rtk-header.js +2 -2
- package/dist/components/rtk-idle-screen.js +4 -4
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +2 -2
- package/dist/components/rtk-information-tooltip.js +2 -2
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +4 -4
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +4 -4
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-markdown-view.js +1 -1
- package/dist/components/rtk-meeting-title.js +2 -2
- package/dist/components/rtk-meeting.js +46 -226
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +3 -3
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +4 -4
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +5 -5
- package/dist/components/rtk-more-toggle.js +4 -4
- package/dist/components/rtk-mute-all-button.js +4 -4
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +2 -2
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +629 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +2 -2
- package/dist/components/rtk-participant-setup.js +2 -2
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +3 -3
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +5 -5
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +12 -12
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pip-toggle.js +4 -4
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +5 -5
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +5 -5
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +2 -2
- package/dist/components/rtk-recording-toggle.js +4 -4
- package/dist/components/rtk-screen-share-toggle.js +4 -4
- package/dist/components/rtk-screenshare-view.js +2 -2
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +4 -4
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +10 -10
- package/dist/components/rtk-setup-screen.js +6 -6
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +9 -9
- package/dist/components/rtk-simple-grid.js +2 -2
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +2 -2
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +4 -4
- package/dist/components/rtk-stage.js +2 -2
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +3 -3
- package/dist/components/rtk-ui-provider.js +2 -2
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-waiting-screen.js +3 -3
- package/dist/docs/docs-components.json +140 -384
- package/dist/docs/docs-vscode.json +7 -3
- package/dist/esm/ChatHead-15c2f8d4.js +11 -0
- package/dist/esm/{TextMessage-07d53134.js → TextMessage-ca92045e.js} +1 -1
- package/dist/esm/{chat-32ac0c2b.js → chat-ff185374.js} +2 -2
- package/dist/esm/{notification-0794a8cc.js → config-e684aa4d.js} +3 -37
- package/dist/esm/{ChatHead-11b92a26.js → date-b1f78dea.js} +1 -10
- package/dist/esm/{debounce-6ec038d3.js → debounce-3ea4df36.js} +1 -1
- package/dist/esm/{file-849468c1.js → file-6114f1a9.js} +1 -1
- package/dist/esm/index-c1fb98bb.js +62 -2
- package/dist/esm/{index-849b9dd9.js → index-e65afca5.js} +1 -1
- package/dist/esm/index.js +7 -6
- package/dist/esm/loader.js +13266 -13290
- package/dist/esm/{merge-f5f3ca10.js → merge-7ffc04b3.js} +1 -1
- package/dist/esm/notification-78afaabf.js +37 -0
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +5 -4
- package/dist/esm/rtk-ai.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +2 -2
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
- package/dist/esm/rtk-avatar_24.entry.js +2541 -0
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +391 -0
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +974 -0
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/{components/p-c9a7cf06.js → esm/rtk-channel-creator.entry.js} +12 -64
- package/dist/esm/rtk-channel-details.entry.js +45 -0
- package/dist/{components/p-0c11d195.js → esm/rtk-channel-header.entry.js} +9 -78
- package/dist/esm/rtk-channel-selector-ui.entry.js +6 -6
- package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-message.entry.js +114 -0
- package/dist/{components/p-0e07ea51.js → esm/rtk-chat-messages-ui.entry.js} +14 -122
- package/dist/esm/rtk-chat-search-results.entry.js +53 -0
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +3 -3
- package/dist/esm/rtk-clock.entry.js +2 -2
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +2 -2
- package/dist/esm/rtk-debugger-audio_4.entry.js +679 -0
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/{components/p-3042f998.js → esm/rtk-dialog-manager.entry.js} +10 -179
- package/dist/esm/rtk-dialog.entry.js +89 -0
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +2 -2
- package/dist/esm/rtk-file-message_3.entry.js +142 -0
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +4 -4
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +73 -0
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +3 -3
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +67 -0
- package/dist/{components/p-7a336667.js → esm/rtk-notifications.entry.js} +13 -60
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +4 -4
- package/dist/esm/rtk-participants-audio.entry.js +2 -2
- package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
- package/dist/esm/rtk-participants-toggle.entry.js +3 -3
- package/dist/esm/rtk-participants.entry.js +3 -3
- package/dist/esm/rtk-pip-toggle.entry.js +2 -2
- package/dist/esm/rtk-plugin-main_2.entry.js +3 -3
- package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
- package/dist/esm/rtk-plugins_2.entry.js +2 -2
- package/dist/esm/rtk-poll_2.entry.js +3 -3
- package/dist/esm/rtk-polls-toggle.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +2 -2
- package/dist/esm/rtk-recording-toggle.entry.js +2 -2
- package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
- package/dist/esm/rtk-screenshare-view.entry.js +2 -2
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +2 -2
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +3 -3
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +4 -4
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +2 -2
- package/dist/esm/rtk-transcript.entry.js +2 -2
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +2 -2
- package/dist/esm/rtk-waiting-screen.entry.js +2 -2
- package/dist/esm/{sidebar-76cae1f0.js → sidebar-030fff49.js} +1 -1
- package/dist/esm/{string-5e8dab07.js → string-068ce30a.js} +1 -1
- package/dist/esm/{ui-store-2965ff1a.js → ui-store-9e486e1b.js} +1 -1
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-a7ba0456.entry.js → p-013ae8ca.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ff19ee1e.entry.js → p-0689d68b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2318c3af.js → p-084b6f30.js} +1 -1
- package/dist/realtimekit-ui/{p-53ffaa9f.entry.js → p-0898c8ee.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e6f1e6aa.entry.js → p-09869644.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b6c83f82.entry.js → p-11c964cf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b2b8b421.entry.js → p-124eb1c7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2857144e.js → p-12e4cb4a.js} +1 -1
- package/dist/realtimekit-ui/{p-00b5bdeb.entry.js → p-158b1b0c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2d729cec.entry.js → p-17c6d2fa.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-404207e0.entry.js → p-2b373e53.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2d7b969d.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d7a5c237.entry.js → p-32030329.entry.js} +1 -1
- package/dist/realtimekit-ui/p-3369f405.entry.js +1 -0
- package/dist/realtimekit-ui/p-382270d8.js +1 -0
- package/dist/realtimekit-ui/{p-f1ab4672.entry.js → p-38aec474.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-368420fc.entry.js → p-3a325310.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-51a8a9e5.entry.js → p-3b8de127.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-83a8cd29.entry.js → p-3d0c4257.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6495f016.entry.js → p-3e02ec0b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-40be18ee.js +1 -0
- package/dist/realtimekit-ui/{p-dfa4a588.entry.js → p-4554a674.entry.js} +1 -1
- package/dist/realtimekit-ui/p-474ba04f.entry.js +1 -0
- package/dist/realtimekit-ui/p-487e808a.entry.js +1 -0
- package/dist/realtimekit-ui/p-4ab26f1f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2aa2727b.entry.js → p-4eba1baa.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1185eec6.entry.js → p-50157a65.entry.js} +1 -1
- package/dist/realtimekit-ui/p-51e949d6.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2d09aeb4.entry.js → p-53ac3d30.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e32c13e0.entry.js → p-54a31e02.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-95ab3abe.entry.js → p-5a2d8313.entry.js} +1 -1
- package/dist/realtimekit-ui/p-5b2d97fc.js +1 -0
- package/dist/realtimekit-ui/{p-f16345d6.entry.js → p-5bbfdabe.entry.js} +1 -1
- package/dist/realtimekit-ui/p-60a29b69.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3144bec3.entry.js → p-60b39e38.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-77f71d40.entry.js → p-61d3f74f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2dc496f0.entry.js → p-62e0a141.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0ab52f70.entry.js → p-643194e4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-6a45f305.js +1 -0
- package/dist/realtimekit-ui/{p-e65d2f04.entry.js → p-6adb2de4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-efabd2ce.js → p-6f211c3e.js} +1 -1
- package/dist/realtimekit-ui/{p-c1d92065.entry.js → p-74e1b5a6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-7786e9a7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-5cb4f925.entry.js → p-77e04fb7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1f328e83.entry.js → p-788f26c4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-78d19559.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f5560043.entry.js → p-7b999408.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2799d5b2.js → p-80c856cd.js} +1 -1
- package/dist/realtimekit-ui/{p-2d6c5160.entry.js → p-871d8fbf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64aa0fae.entry.js → p-882d07c9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7fab2c53.entry.js → p-8b189438.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ac1ff0f8.entry.js → p-8c55a630.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e24289b8.entry.js → p-8f512d69.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c6c86fd8.js → p-91ea043c.js} +1 -1
- package/dist/realtimekit-ui/{p-145caa6b.js → p-91fd286c.js} +1 -1
- package/dist/realtimekit-ui/p-930f0255.entry.js +1 -0
- package/dist/realtimekit-ui/p-93b84c22.js +1 -0
- package/dist/realtimekit-ui/{p-34350578.entry.js → p-941f159e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f3998c17.entry.js → p-949b2b6a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-47e89714.entry.js → p-986e7389.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-db9dd8ea.entry.js → p-98ee3341.entry.js} +1 -1
- package/dist/realtimekit-ui/p-99801804.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7fbca8d1.entry.js → p-9ad2c746.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9c1f42dd.entry.js +1 -0
- package/dist/realtimekit-ui/{p-6334ca51.entry.js → p-9cbf286a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-62949a7d.entry.js → p-9d3cf603.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f5a3ccc0.entry.js → p-a0563ab4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0b93c12d.entry.js → p-a319e81f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7f896d33.entry.js → p-a4372f65.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e7a89e24.entry.js → p-a9126c12.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a55863be.entry.js → p-a9dd63ef.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3263d76d.entry.js → p-aa757cd3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9b6d809b.entry.js → p-ad26f7fd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-560fc162.entry.js → p-ad887be1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ead8970b.entry.js → p-ae7319ac.entry.js} +1 -1
- package/dist/realtimekit-ui/p-b387e9a1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-22313959.entry.js → p-b388b4c6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9ba26c9f.entry.js → p-bbf76104.entry.js} +1 -1
- package/dist/realtimekit-ui/p-bc1a2b04.entry.js +1 -0
- package/dist/realtimekit-ui/p-c1d026d1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-543dcdc1.entry.js → p-c5c965b8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c7711712.entry.js +1 -0
- package/dist/realtimekit-ui/p-cdacd242.entry.js +1 -0
- package/dist/realtimekit-ui/{p-0979ba30.entry.js → p-cdf8bc21.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bfd7cd5a.entry.js → p-d0384d90.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-81d1334c.entry.js → p-d0bba739.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d8962ea0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-616f3a25.entry.js → p-d95ce443.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-35b87831.entry.js → p-d9cad67f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a449b5cd.entry.js → p-dbd07824.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0266e82b.entry.js → p-de75d48d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4b62d6f9.entry.js → p-e62593a2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fa2ee341.js → p-e720b51e.js} +1 -1
- package/dist/realtimekit-ui/{p-9ac89beb.entry.js → p-e7b83772.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8046e263.js → p-e87928f7.js} +1 -1
- package/dist/realtimekit-ui/{p-39d0ad4d.entry.js → p-e925ca8a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e0dd5f79.entry.js → p-f0f6c282.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-47d8e5c8.entry.js → p-f775be53.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bad807c1.entry.js → p-fee7bd4f.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +3 -0
- package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +1 -0
- package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +1 -0
- package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +3 -0
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +0 -9
- package/dist/types/components/rtk-chat-message/rtk-chat-message.d.ts +1 -0
- package/dist/types/components/rtk-chat-messages-ui/rtk-chat-messages-ui.d.ts +3 -0
- package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +1 -0
- package/dist/types/components/rtk-file-message/rtk-file-message.d.ts +1 -0
- package/dist/types/components/rtk-image-message/rtk-image-message.d.ts +1 -0
- package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +2 -0
- package/dist/types/components/rtk-text-message/rtk-text-message.d.ts +1 -0
- package/dist/types/components.d.ts +104 -0
- package/dist/types/types/props.d.ts +1 -0
- package/dist/types/utils/chat.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/rtk-avatar_54.cjs.entry.js +0 -6417
- package/dist/components/p-6a47e2ee.js +0 -148
- package/dist/esm/rtk-avatar_54.entry.js +0 -6360
- package/dist/realtimekit-ui/p-173457a5.js +0 -1
- package/dist/realtimekit-ui/p-34c90f1c.entry.js +0 -1
- package/dist/realtimekit-ui/p-47314bc7.js +0 -1
- package/dist/realtimekit-ui/p-4ea418c9.js +0 -1
- package/dist/realtimekit-ui/p-55f181be.entry.js +0 -1
- 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: '
|
|
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: '
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
|
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,
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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"; }
|
package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js
CHANGED
|
@@ -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
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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:
|
|
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:
|
|
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-
|
|
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
|
-
|
|
89
|
-
|
|
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: '
|
|
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: '
|
|
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",
|