@cloudflare/realtimekit-ui 1.1.0-staging.10 → 1.1.0-staging.11
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/{TextMessage-1dc6f8b9.js → TextMessage-75b55b60.js} +1 -1
- package/dist/cjs/{chat-2ae6f058.js → chat-90670f84.js} +1 -16
- package/dist/cjs/{config-0a88d50b.js → config-60d594e2.js} +2 -2
- package/dist/cjs/{debounce-b06b27ca.js → debounce-677e65cb.js} +1 -1
- package/dist/cjs/index-05554ce6.js +6 -22
- package/dist/cjs/{index-e4244d7d.js → index-5442bdba.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{merge-c46cfa17.js → merge-7ce7986a.js} +1 -1
- package/dist/cjs/{notification-f3750b61.js → notification-b9d42aa0.js} +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +3 -3
- package/dist/cjs/rtk-ai.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +3 -3
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
- package/dist/cjs/{rtk-avatar_24.cjs.entry.js → rtk-avatar_23.cjs.entry.js} +42 -338
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +6 -6
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +11 -11
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +10 -24
- package/dist/cjs/rtk-chat-message.cjs.entry.js +4 -4
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +5 -5
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-clock.cjs.entry.js +5 -5
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar.cjs.entry.js +3 -3
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +3 -3
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +12 -12
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +3 -3
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +3 -3
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +3 -3
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/rtk-leave-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -6
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +3 -3
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +6 -6
- package/dist/cjs/rtk-notifications.cjs.entry.js +4 -4
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +4 -4
- package/dist/cjs/rtk-participant_2.cjs.entry.js +17 -17
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +6 -6
- package/dist/cjs/rtk-poll_2.cjs.entry.js +5 -5
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +7 -7
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
- package/dist/cjs/{sidebar-0eb1e4ef.js → sidebar-e172c4ae.js} +1 -1
- package/dist/cjs/{ui-store-6c2d680f.js → ui-store-594688bf.js} +1 -7
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +3 -3
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +4 -4
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +3 -3
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +3 -3
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -4
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +2 -2
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
- package/dist/collection/components/rtk-chat/rtk-chat.css +0 -37
- package/dist/collection/components/rtk-chat/rtk-chat.js +8 -153
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +12 -48
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +4 -4
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +5 -5
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +8 -71
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +3 -3
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +2 -2
- package/dist/collection/components/rtk-clock/rtk-clock.js +4 -4
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +3 -3
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +3 -3
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +4 -4
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +3 -3
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +3 -3
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +3 -3
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +3 -3
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +3 -3
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +4 -4
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +2 -2
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +4 -4
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
- package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
- package/dist/collection/components/rtk-header/rtk-header.js +3 -3
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +3 -3
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +6 -6
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +5 -5
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +3 -3
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -2
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +3 -3
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +3 -3
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +4 -4
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +2 -2
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
- package/dist/collection/components/rtk-menu/rtk-menu.js +4 -4
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +3 -3
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +3 -3
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +2 -2
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +2 -2
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +2 -2
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +4 -4
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +3 -3
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +3 -3
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
- package/dist/collection/components/rtk-notification/rtk-notification.js +4 -4
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +3 -3
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
- package/dist/collection/components/rtk-participant/rtk-participant.js +14 -14
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +4 -4
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +2 -2
- package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +3 -3
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +3 -3
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +3 -3
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +2 -2
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +3 -3
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
- package/dist/collection/components/rtk-poll/rtk-poll.js +3 -3
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +4 -4
- package/dist/collection/components/rtk-polls/rtk-polls.js +5 -5
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +3 -3
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +2 -2
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +7 -7
- package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +3 -3
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +2 -2
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +2 -2
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +4 -4
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +3 -3
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
- package/dist/collection/components/rtk-switch/rtk-switch.js +3 -3
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +2 -2
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +3 -3
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +4 -4
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +2 -2
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +3 -3
- package/dist/collection/lib/icons/default-icon-pack.js +0 -2
- package/dist/collection/lib/lang/default-language.js +1 -4
- package/dist/collection/utils/chat.js +0 -4
- package/dist/collection/utils/flags.js +0 -1
- package/dist/components/index.js +7 -7
- package/dist/components/{p-1a9e3806.js → p-0899c09f.js} +3 -3
- package/dist/components/{p-e443d803.js → p-19d83dd6.js} +3 -3
- package/dist/components/{p-05df465d.js → p-1c5cc842.js} +1 -1
- package/dist/components/{p-7bde2b2d.js → p-1c678eab.js} +5 -5
- package/dist/components/{p-f0e4633e.js → p-1e9999d7.js} +3 -3
- package/dist/components/{p-524d7900.js → p-1ea0d406.js} +4 -4
- package/dist/components/{p-7c8096c2.js → p-206acdcd.js} +3 -3
- package/dist/components/{p-5f1b84f7.js → p-21becaf3.js} +8 -8
- package/dist/components/{p-dd89aff2.js → p-23d37f65.js} +5 -5
- package/dist/components/{p-e72a0f16.js → p-24481cb4.js} +4 -4
- package/dist/components/{p-19b037c5.js → p-2ec120cd.js} +3 -3
- package/dist/components/{p-f7bd10f1.js → p-3245ace2.js} +4 -4
- package/dist/components/{p-44a203bd.js → p-33db910f.js} +5 -5
- package/dist/components/{p-abdff498.js → p-34654ffc.js} +8 -8
- package/dist/components/{p-b6869c32.js → p-410cef02.js} +3 -3
- package/dist/components/{p-1da807a2.js → p-4c82be72.js} +3 -3
- package/dist/components/{p-7b6356e2.js → p-5194f4d6.js} +3 -3
- package/dist/components/{p-fefc57f9.js → p-51ef5a21.js} +5 -5
- package/dist/components/{p-43bf8953.js → p-52e95364.js} +3 -3
- package/dist/components/{p-39e8b34a.js → p-541e6de7.js} +3 -3
- package/dist/components/{p-aae4c250.js → p-56134994.js} +1 -1
- package/dist/components/{p-b76e3950.js → p-565c8389.js} +4 -4
- package/dist/components/{p-72fffe3e.js → p-5791a91d.js} +2 -2
- package/dist/components/{p-fb836f65.js → p-63c79efa.js} +1 -1
- package/dist/components/{p-35e93724.js → p-63e06c50.js} +2 -2
- package/dist/components/{p-e64e3cec.js → p-63e51be4.js} +4 -4
- package/dist/components/{p-74356882.js → p-645b761e.js} +7 -7
- package/dist/components/{p-586482a8.js → p-6614c9e7.js} +5 -5
- package/dist/components/{p-0a31ef52.js → p-66ba4031.js} +2 -2
- package/dist/components/{p-fb7666ce.js → p-66d10db2.js} +4 -4
- package/dist/components/{p-193d8051.js → p-6e10fc42.js} +2 -2
- package/dist/components/{p-5476e3f3.js → p-71f12515.js} +4 -4
- package/dist/components/{p-e4888ccc.js → p-770c0fd7.js} +21 -43
- package/dist/components/{p-e375b50d.js → p-777aa628.js} +4 -4
- package/dist/components/{p-ad873f2d.js → p-7a424d82.js} +1 -1
- package/dist/components/{p-d9f6db4f.js → p-7c84212d.js} +5 -5
- package/dist/components/{p-819cb785.js → p-7e6ca4af.js} +3 -3
- package/dist/components/{p-ecb016da.js → p-7f790526.js} +4 -4
- package/dist/components/{p-cf8f725b.js → p-8222af8c.js} +2 -2
- package/dist/components/{p-dc3143c0.js → p-8e285a44.js} +2 -2
- package/dist/components/{p-d188f58b.js → p-901c2375.js} +2 -2
- package/dist/components/{p-977f9875.js → p-91bc86f4.js} +2 -2
- package/dist/components/{p-3e58e0f3.js → p-93947678.js} +3 -3
- package/dist/components/{p-dfb42075.js → p-93db20a6.js} +2 -2
- package/dist/components/{p-2447a26f.js → p-951a67af.js} +4 -4
- package/dist/components/{p-3972098e.js → p-97d1dcb7.js} +12 -12
- package/dist/components/{p-6f7c46d2.js → p-9c3c75a9.js} +1 -1
- package/dist/components/{p-6739a399.js → p-a6aea524.js} +2 -2
- package/dist/components/{p-da87cc71.js → p-a72d3d19.js} +1 -1
- package/dist/components/{p-33be3c19.js → p-a89ee2d2.js} +12 -12
- package/dist/components/{p-edd12f2f.js → p-a99b0889.js} +4 -4
- package/dist/components/{p-210862ae.js → p-ac80e7fc.js} +32 -177
- package/dist/components/{p-dab9d3d6.js → p-addb4be5.js} +1 -12
- package/dist/components/{p-600579a6.js → p-aeba1c02.js} +2 -2
- package/dist/components/{p-e57e8041.js → p-b2904963.js} +4 -4
- package/dist/components/{p-395ef9c8.js → p-b37f2227.js} +6 -6
- package/dist/components/{p-6f361314.js → p-b4a37662.js} +2 -2
- package/dist/components/{p-89eb65a9.js → p-b65d1760.js} +2 -2
- package/dist/components/{p-eeb37b16.js → p-b69a05ad.js} +3 -3
- package/dist/components/{p-1afc54bb.js → p-b92c53c7.js} +2 -2
- package/dist/components/{p-f6c2e822.js → p-bbffc0e1.js} +2 -2
- package/dist/components/{p-fb900e8f.js → p-c0942317.js} +4 -4
- package/dist/components/{p-6f8d2043.js → p-c402a1db.js} +2 -2
- package/dist/components/{p-44c32349.js → p-c643c410.js} +7 -7
- package/dist/components/{p-e552dc59.js → p-c66a52b7.js} +2 -2
- package/dist/components/{p-c05530c8.js → p-caaca684.js} +2 -2
- package/dist/components/{p-92729e09.js → p-cd8f62c9.js} +6 -6
- package/dist/components/{p-9bdc24b8.js → p-cec4d080.js} +3 -3
- package/dist/components/{p-7a27fdb5.js → p-d3414935.js} +8 -8
- package/dist/components/{p-e847fee9.js → p-dc9dde66.js} +1 -7
- package/dist/components/{p-fa5aba68.js → p-e09955f3.js} +18 -18
- package/dist/components/{p-6392204c.js → p-e583a838.js} +8 -8
- package/dist/components/{p-107e55c1.js → p-e60aa036.js} +3 -3
- package/dist/components/{p-45b4f6a1.js → p-efbfe5a0.js} +3 -3
- package/dist/components/{p-2309fb19.js → p-f247cacc.js} +4 -4
- package/dist/components/{p-282e8e83.js → p-f5101af9.js} +6 -6
- package/dist/components/{p-6c02b0d0.js → p-f5a3ee43.js} +5 -5
- package/dist/components/{p-89151c7a.js → p-f7a8a2d8.js} +3 -3
- package/dist/components/{p-46d99dd9.js → p-f8a13473.js} +5 -5
- package/dist/components/{p-851b90a6.js → p-f95c314b.js} +2 -2
- package/dist/components/{p-7148ec6a.js → p-fe648db5.js} +3 -3
- 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 +3 -3
- 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 +5 -5
- package/dist/components/rtk-caption-toggle.js +4 -4
- package/dist/components/rtk-chat-composer-ui.js +14 -31
- 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 +16 -16
- package/dist/components/rtk-chat-search-results.js +13 -13
- 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 +5 -5
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +3 -3
- 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 +5 -5
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +22 -22
- 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 +3 -3
- 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 +3 -3
- package/dist/components/rtk-grid.js +8 -8
- package/dist/components/rtk-header.js +3 -3
- package/dist/components/rtk-idle-screen.js +5 -5
- 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 +3 -3
- package/dist/components/rtk-information-tooltip.js +3 -3
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +5 -5
- 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 +3 -3
- package/dist/components/rtk-meeting.js +26 -32
- 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 +6 -6
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +5 -5
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +6 -6
- package/dist/components/rtk-more-toggle.js +6 -6
- package/dist/components/rtk-mute-all-button.js +5 -5
- 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 +5 -5
- 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 +4 -4
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +4 -4
- 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 +14 -14
- 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 +3 -3
- package/dist/components/rtk-recording-toggle.js +4 -4
- package/dist/components/rtk-screen-share-toggle.js +5 -5
- package/dist/components/rtk-screenshare-view.js +8 -8
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +5 -5
- 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 +4 -4
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +5 -5
- package/dist/components/rtk-stage.js +3 -3
- 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-tooltip.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-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +4 -4
- package/dist/docs/docs-components.json +3816 -14913
- package/dist/docs/docs-vscode.json +0 -93
- package/dist/esm/{TextMessage-0d8be8c5.js → TextMessage-0aed30b2.js} +1 -1
- package/dist/esm/{chat-b2bea75f.js → chat-a170fc58.js} +2 -13
- package/dist/esm/{config-325caca3.js → config-cea9cd37.js} +2 -2
- package/dist/esm/{debounce-3139f9e3.js → debounce-b7ba967e.js} +1 -1
- package/dist/esm/index-c1fb98bb.js +6 -22
- package/dist/esm/{index-6eb882e7.js → index-d08145ca.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +917 -1675
- package/dist/esm/{merge-bc2a0775.js → merge-88832ad1.js} +1 -1
- package/dist/esm/{notification-4beb1e0d.js → notification-6fa40b68.js} +1 -1
- 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 +3 -3
- package/dist/esm/rtk-ai.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +3 -3
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
- package/dist/esm/{rtk-avatar_24.entry.js → rtk-avatar_23.entry.js} +43 -338
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +6 -6
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +11 -11
- 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/esm/rtk-chat-composer-ui.entry.js +10 -24
- package/dist/esm/rtk-chat-message.entry.js +4 -4
- package/dist/esm/rtk-chat-messages-ui.entry.js +5 -5
- package/dist/esm/rtk-chat-search-results.entry.js +3 -3
- 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 +5 -5
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +3 -3
- package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +3 -3
- package/dist/esm/rtk-dialog-manager.entry.js +2 -2
- package/dist/esm/rtk-dialog.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +3 -3
- package/dist/esm/rtk-file-message_3.entry.js +12 -12
- 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 +3 -3
- package/dist/esm/rtk-idle-screen.entry.js +3 -3
- package/dist/esm/rtk-image-viewer.entry.js +3 -3
- package/dist/esm/rtk-information-tooltip.entry.js +3 -3
- package/dist/esm/rtk-leave-button.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +6 -6
- 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 +4 -4
- 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 +6 -6
- package/dist/esm/rtk-notifications.entry.js +4 -4
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +4 -4
- package/dist/esm/rtk-participant_2.entry.js +17 -17
- package/dist/esm/rtk-participants-audio.entry.js +3 -3
- package/dist/esm/rtk-participants-stage-list_4.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
- package/dist/esm/rtk-plugins_2.entry.js +6 -6
- package/dist/esm/rtk-poll_2.entry.js +5 -5
- package/dist/esm/rtk-polls-toggle.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +3 -3
- 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 +7 -7
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +3 -3
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +3 -3
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
- 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 +3 -3
- package/dist/esm/rtk-transcript.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/{sidebar-376c9917.js → sidebar-dd9a38aa.js} +1 -1
- package/dist/esm/{ui-store-12132d9c.js → ui-store-5a66fa71.js} +1 -7
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-639601b7.entry.js → p-00fbc77d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b51e813e.entry.js → p-085b70ca.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5892c1e0.entry.js → p-0a6840aa.entry.js} +1 -1
- package/dist/realtimekit-ui/p-0a9761b4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f266302c.entry.js → p-0d173282.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-14569a57.entry.js → p-0d6b6c0d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cd0c5440.js → p-0e513482.js} +1 -1
- package/dist/realtimekit-ui/{p-05d1b9d5.entry.js → p-136d3fe2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e78ba202.entry.js → p-186d21ad.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ebfde234.entry.js → p-194ca93a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cd56beb7.entry.js → p-1b6b75a7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-1d9ba38f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-342b4926.entry.js → p-1dbbb8cb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7a9a226e.entry.js → p-1e8a9290.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9b550ec4.js → p-1ff96b0f.js} +1 -1
- package/dist/realtimekit-ui/{p-a680da64.entry.js → p-245c5d74.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cc226b51.entry.js → p-25a5687a.entry.js} +1 -1
- package/dist/realtimekit-ui/p-29c66766.entry.js +1 -0
- package/dist/realtimekit-ui/p-2afa0984.entry.js +1 -0
- package/dist/realtimekit-ui/{p-30dcb4cc.entry.js → p-2be75f31.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-323d1aa4.entry.js → p-2e996dd5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-426bf45e.entry.js → p-3229431b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-45f90b95.js → p-328d53bd.js} +1 -1
- package/dist/realtimekit-ui/{p-85b3c0c4.entry.js → p-334f3f6d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8778b3e6.entry.js → p-38fb340d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-afa7211c.js → p-3a14da51.js} +1 -1
- package/dist/realtimekit-ui/{p-6896e819.entry.js → p-3a309e80.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a40cc665.entry.js → p-3c003b71.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cda276d6.entry.js → p-3cc15c7a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4b638184.entry.js → p-3eb5a72d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-423ff132.entry.js +1 -0
- package/dist/realtimekit-ui/p-55074d37.entry.js +1 -0
- package/dist/realtimekit-ui/{p-515a17ce.entry.js → p-574fa8db.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-701cdf1b.entry.js → p-59ac307d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cb54bd67.entry.js → p-5cd2b5e0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-369648b9.entry.js → p-605e418e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-685adc5f.entry.js → p-63c32e2d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0baa78d7.entry.js → p-6407dc7e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fa86682c.entry.js → p-6560e903.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c8773db0.entry.js → p-6acda400.entry.js} +1 -1
- package/dist/realtimekit-ui/p-6f8f175b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a7172c2d.entry.js → p-731bcf94.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1462cbd9.entry.js → p-740444e7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-616dc312.entry.js → p-75087c10.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d3e520e5.js → p-79731cb6.js} +1 -1
- package/dist/realtimekit-ui/{p-ad5e9fdb.entry.js → p-7aa48099.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e0c73820.entry.js → p-7c9ac5df.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-95fb25d6.entry.js → p-8000d8de.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ec5ed8a4.entry.js → p-81beeff4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-872a05b0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b25f7d7b.entry.js → p-8bd79e77.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1834416c.entry.js → p-904119a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-11a469d9.js → p-91d15089.js} +1 -1
- package/dist/realtimekit-ui/{p-44d69c6b.entry.js → p-91efc377.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f32aecbc.entry.js → p-9b206390.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1fe6003b.entry.js → p-9b35d38b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a67e2a25.entry.js → p-9b5c6928.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a9190330.entry.js → p-9c7449a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-be03944b.entry.js → p-a37a936c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4485414e.entry.js → p-a417984b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a0d39ea3.entry.js → p-a6bccc60.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3dd04263.entry.js → p-a71320ec.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a852e0cf.entry.js → p-ab5b09f9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ae9de69a.js +1 -0
- package/dist/realtimekit-ui/{p-be5bdd0a.entry.js → p-aef75bbb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f6c82f1b.entry.js → p-b89736c6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-bf87c56f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-94a37c73.entry.js → p-c09f774c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64206b62.entry.js → p-c0b75ca2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-85b45c3b.entry.js → p-c33b0b90.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-43530cd3.entry.js → p-c4fada74.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-af58f450.entry.js → p-c77d9110.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ac6c8ebe.entry.js → p-cb72ae59.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-532e1a53.entry.js → p-d543f03a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4b33b435.entry.js → p-d6071b1d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-67ead213.entry.js → p-d644eed7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fcb7a6e2.entry.js → p-d679ea25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a7e0277f.js → p-d7b92a52.js} +1 -1
- package/dist/realtimekit-ui/{p-bf717b8c.entry.js → p-d7c040f0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6914a616.entry.js → p-d9117aa2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-573187b4.entry.js → p-dfd41e7d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1669c53d.entry.js → p-e16f5890.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e1f2d163.entry.js +1 -0
- package/dist/realtimekit-ui/p-e829a20f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7d01d588.entry.js → p-f0054be9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2441260e.entry.js → p-f19fe2c3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f39b89a3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-75f53ae6.entry.js → p-f4025c97.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5b00a8fa.entry.js → p-f6cd4525.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f89bb70f.js +1 -0
- package/dist/realtimekit-ui/{p-00445029.entry.js → p-fa39a651.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -14
- package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +0 -4
- package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +2 -12
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +0 -2
- package/dist/types/components.d.ts +6 -460
- package/dist/types/lib/icons/default-icon-pack.d.ts +0 -2
- package/dist/types/lib/lang/default-language.d.ts +1 -4
- package/dist/types/types/props.d.ts +0 -4
- package/dist/types/utils/chat.d.ts +1 -3
- package/dist/types/utils/flags.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/rtk-channel-creator.cjs.entry.js +0 -163
- package/dist/cjs/rtk-channel-details.cjs.entry.js +0 -49
- package/dist/cjs/rtk-channel-header.cjs.entry.js +0 -83
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +0 -147
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.css +0 -210
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +0 -290
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.css +0 -93
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +0 -149
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +0 -99
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +0 -256
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.css +0 -330
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +0 -286
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +0 -306
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +0 -341
- package/dist/components/p-33e73313.js +0 -85
- package/dist/components/p-c78c26b1.js +0 -203
- package/dist/components/rtk-channel-creator.d.ts +0 -11
- package/dist/components/rtk-channel-creator.js +0 -214
- package/dist/components/rtk-channel-details.d.ts +0 -11
- package/dist/components/rtk-channel-details.js +0 -6
- package/dist/components/rtk-channel-header.d.ts +0 -11
- package/dist/components/rtk-channel-header.js +0 -151
- package/dist/components/rtk-channel-selector-ui.d.ts +0 -11
- package/dist/components/rtk-channel-selector-ui.js +0 -194
- package/dist/components/rtk-channel-selector-view.d.ts +0 -11
- package/dist/components/rtk-channel-selector-view.js +0 -6
- package/dist/esm/rtk-channel-creator.entry.js +0 -159
- package/dist/esm/rtk-channel-details.entry.js +0 -45
- package/dist/esm/rtk-channel-header.entry.js +0 -79
- package/dist/esm/rtk-channel-selector-ui.entry.js +0 -143
- package/dist/realtimekit-ui/p-21d4bb9c.entry.js +0 -1
- package/dist/realtimekit-ui/p-25c4d10f.js +0 -1
- package/dist/realtimekit-ui/p-2b054928.entry.js +0 -1
- package/dist/realtimekit-ui/p-322957ed.entry.js +0 -1
- package/dist/realtimekit-ui/p-3f4120cc.entry.js +0 -1
- package/dist/realtimekit-ui/p-44531a97.entry.js +0 -1
- package/dist/realtimekit-ui/p-48c87789.entry.js +0 -1
- package/dist/realtimekit-ui/p-53680d55.entry.js +0 -1
- package/dist/realtimekit-ui/p-54a88fdf.entry.js +0 -1
- package/dist/realtimekit-ui/p-612a8d25.entry.js +0 -1
- package/dist/realtimekit-ui/p-7108d1cd.entry.js +0 -1
- package/dist/realtimekit-ui/p-80e51a73.entry.js +0 -1
- package/dist/realtimekit-ui/p-820dad23.entry.js +0 -1
- package/dist/realtimekit-ui/p-a1408db4.entry.js +0 -1
- package/dist/realtimekit-ui/p-a5900df2.js +0 -1
- package/dist/realtimekit-ui/p-c5f704a3.entry.js +0 -1
- package/dist/realtimekit-ui/p-d880fb69.entry.js +0 -1
- package/dist/realtimekit-ui/p-e5b426fa.entry.js +0 -1
- package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +0 -37
- package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +0 -16
- package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +0 -32
- package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +0 -35
- package/dist/types/components/rtk-channel-selector-view/rtk-channel-selector-view.d.ts +0 -62
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$1 = require('./index-05554ce6.js');
|
|
6
|
-
const uiStore = require('./ui-store-
|
|
6
|
+
const uiStore = require('./ui-store-594688bf.js');
|
|
7
7
|
const string = require('./string-9bce3253.js');
|
|
8
|
-
const index = require('./index-
|
|
9
|
-
const
|
|
10
|
-
const chat = require('./chat-2ae6f058.js');
|
|
8
|
+
const index = require('./index-5442bdba.js');
|
|
9
|
+
const chat = require('./chat-90670f84.js');
|
|
11
10
|
const file = require('./file-0b9afa34.js');
|
|
12
|
-
const merge = require('./merge-
|
|
11
|
+
const merge = require('./merge-7ce7986a.js');
|
|
13
12
|
const index$2 = require('./index-821d14b7.js');
|
|
14
|
-
const config = require('./config-
|
|
13
|
+
const config = require('./config-60d594e2.js');
|
|
15
14
|
const ResizeObserver_es = require('./ResizeObserver.es-ba961f16.js');
|
|
16
15
|
const floatingUi_dom_esm = require('./floating-ui.dom.esm-705e65f3.js');
|
|
17
16
|
const date = require('./date-61ffcd0a.js');
|
|
17
|
+
const debounce = require('./debounce-677e65cb.js');
|
|
18
18
|
|
|
19
19
|
const rtkAvatarCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px);align-items:center;justify-content:center;font-size:28px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));overflow:clip;border-radius:9999px;-webkit-user-select:none;-moz-user-select:none;user-select:none}rtk-icon{height:50%;width:50%}.image-ctr{display:flex;height:100%;width:100%;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}img{height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);-o-object-fit:cover;object-fit:cover}img.loaded{height:100%;width:100%}.initials{display:flex;height:100%;width:100%;align-items:center;justify-content:center;text-transform:uppercase}.image{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.image img{display:none;height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.image img.loaded{display:block}:host([variant='hexagon']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%)}:host([variant='square']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)}:host([size='sm']){height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);font-size:12px}:host([size='md']){height:var(--rtk-space-28, 112px);width:var(--rtk-space-28, 112px)}:host([size='lg']){height:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px)}";
|
|
20
20
|
const RtkAvatarStyle0 = rtkAvatarCss;
|
|
21
21
|
|
|
22
|
-
var __decorate$
|
|
22
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
23
23
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24
24
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
25
25
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -57,10 +57,10 @@ const RtkAvatar = class {
|
|
|
57
57
|
return (index$1.h(index$1.Host, { key: 'd7d3a7b03a3807984dc6798b5e35cec4418e06e7' }, this.getAvatar(), index$1.h("slot", { key: '25aa9fe632a132c1e2f8ef88ac98043bb8ef085a' })));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
__decorate$
|
|
60
|
+
__decorate$g([
|
|
61
61
|
index.SyncWithStore()
|
|
62
62
|
], RtkAvatar.prototype, "iconPack", void 0);
|
|
63
|
-
__decorate$
|
|
63
|
+
__decorate$g([
|
|
64
64
|
index.SyncWithStore()
|
|
65
65
|
], RtkAvatar.prototype, "t", void 0);
|
|
66
66
|
RtkAvatar.style = RtkAvatarStyle0;
|
|
@@ -89,147 +89,7 @@ const RtkButton = class {
|
|
|
89
89
|
};
|
|
90
90
|
RtkButton.style = RtkButtonStyle0;
|
|
91
91
|
|
|
92
|
-
const
|
|
93
|
-
const RtkChannelSelectorViewStyle0 = rtkChannelSelectorViewCss;
|
|
94
|
-
|
|
95
|
-
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
96
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
97
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
98
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
99
|
-
else
|
|
100
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
101
|
-
if (d = decorators[i])
|
|
102
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
103
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
104
|
-
};
|
|
105
|
-
const RtkChannelSelectorView = class {
|
|
106
|
-
constructor(hostRef) {
|
|
107
|
-
index$1.registerInstance(this, hostRef);
|
|
108
|
-
this.channelChange = index$1.createEvent(this, "channelChange", 7);
|
|
109
|
-
/** Disables search bar (default = false) */
|
|
110
|
-
this.disableSearch = false;
|
|
111
|
-
/** Hides avatar (default = false) */
|
|
112
|
-
this.hideAvatar = false;
|
|
113
|
-
/** Icon Pack */
|
|
114
|
-
this.iconPack = uiStore.defaultIconPack;
|
|
115
|
-
/** Language */
|
|
116
|
-
this.t = uiStore.useLanguage();
|
|
117
|
-
/** Render as dropdown or list (default = list) */
|
|
118
|
-
this.viewAs = 'list';
|
|
119
|
-
this.searchQuery = '';
|
|
120
|
-
this.showDropdown = false;
|
|
121
|
-
this.calculateListHeight = debounce.debounce(() => {
|
|
122
|
-
if (this.viewAs === 'list' && this.$listEl) {
|
|
123
|
-
let height = 0;
|
|
124
|
-
const slotEl = this.$el.shadowRoot.querySelector('slot[name="header"]');
|
|
125
|
-
if (slotEl) {
|
|
126
|
-
slotEl.assignedElements().forEach((e) => (height += e.offsetHeight));
|
|
127
|
-
}
|
|
128
|
-
if (this.$searchEl) {
|
|
129
|
-
height += this.$searchEl.offsetHeight;
|
|
130
|
-
}
|
|
131
|
-
this.$listEl.style.height = `${window.innerHeight - height - 16}px`;
|
|
132
|
-
}
|
|
133
|
-
}, 60);
|
|
134
|
-
this.getFilteredChannels = () => {
|
|
135
|
-
if (this.searchQuery.trim() === '') {
|
|
136
|
-
return this.channels;
|
|
137
|
-
}
|
|
138
|
-
return this.channels.filter((channel) => {
|
|
139
|
-
return channel['name'].toLowerCase().includes(this.searchQuery.toLowerCase());
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
this.toggleDropdown = () => {
|
|
143
|
-
this.showDropdown = !this.showDropdown;
|
|
144
|
-
};
|
|
145
|
-
this.getChannelById = (id) => {
|
|
146
|
-
return this.channels.find((channel) => channel.id === id);
|
|
147
|
-
};
|
|
148
|
-
this.getTotalUnreads = () => {
|
|
149
|
-
return this.channels.reduce((acc, curr) => {
|
|
150
|
-
return acc + curr.unreadCount;
|
|
151
|
-
}, 0);
|
|
152
|
-
};
|
|
153
|
-
this.onChannelClickHandler = (channel) => {
|
|
154
|
-
this.channelChange.emit(channel);
|
|
155
|
-
if (this.viewAs === 'dropdown') {
|
|
156
|
-
this.showDropdown = false;
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
connectedCallback() {
|
|
161
|
-
this.resizeObserver = new ResizeObserver(this.calculateListHeight);
|
|
162
|
-
}
|
|
163
|
-
componentDidLoad() {
|
|
164
|
-
this.resizeObserver.observe(this.$el);
|
|
165
|
-
this.calculateListHeight();
|
|
166
|
-
}
|
|
167
|
-
disconnectedCallback() {
|
|
168
|
-
var _a;
|
|
169
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
170
|
-
this.calculateListHeight.cancel();
|
|
171
|
-
}
|
|
172
|
-
getTimeLabel(messageDate) {
|
|
173
|
-
const today = new Date();
|
|
174
|
-
const yesterday = new Date(today);
|
|
175
|
-
yesterday.setDate(today.getDate() - 1);
|
|
176
|
-
const firstDayOfWeek = new Date(today);
|
|
177
|
-
firstDayOfWeek.setDate(today.getDate() - today.getDay() - 1);
|
|
178
|
-
if (messageDate.toDateString() === today.toDateString()) {
|
|
179
|
-
return messageDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
180
|
-
}
|
|
181
|
-
else if (messageDate.toDateString() === yesterday.toDateString()) {
|
|
182
|
-
return this.t('date.yesteday');
|
|
183
|
-
}
|
|
184
|
-
else if (messageDate > firstDayOfWeek) {
|
|
185
|
-
const weekdays = [
|
|
186
|
-
'date.sunday',
|
|
187
|
-
'date.monday',
|
|
188
|
-
'date.tuesday',
|
|
189
|
-
'date.wednesday',
|
|
190
|
-
'date.thursday',
|
|
191
|
-
'date.friday',
|
|
192
|
-
'date.saturday',
|
|
193
|
-
];
|
|
194
|
-
return this.t(weekdays[messageDate.getDay()]);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return Intl.DateTimeFormat([], {
|
|
198
|
-
day: '2-digit',
|
|
199
|
-
month: '2-digit',
|
|
200
|
-
year: '2-digit',
|
|
201
|
-
}).format(messageDate);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
render() {
|
|
205
|
-
const filteredChannels = this.getFilteredChannels();
|
|
206
|
-
const shouldShowDropdown = this.viewAs === 'list' || (this.viewAs === 'dropdown' && this.showDropdown);
|
|
207
|
-
return (index$1.h(index$1.Host, { key: '2c491dbe0ac19cb386f0880fff81f4501648a6ae' }, this.viewAs === 'list' && index$1.h("slot", { key: '0e87d59c7522543b19711813474738f75a0e02fe', name: "header" }), shouldShowDropdown && (index$1.h("div", { key: 'c60692c7f75aa9febd73c134cd79aab020f7c2a5', class: {
|
|
208
|
-
dropdown: this.viewAs === 'dropdown',
|
|
209
|
-
scrollbar: this.viewAs === 'dropdown',
|
|
210
|
-
list: this.viewAs === 'list',
|
|
211
|
-
} }, !this.disableSearch && (index$1.h("div", { key: '74c50b2fad4cba26a20278f87c77a1672a1d748d', class: "search-container", ref: (el) => (this.$searchEl = el) }, index$1.h("input", { key: 'ff22698874ed7df9d91e72cb485ec2901ddf2b3b', type: "text", placeholder: this.t('chat.search_conversations'), value: this.searchQuery, onInput: (e) => (this.searchQuery = e.target.value) }), index$1.h("rtk-icon", { key: '9c8a9dffc0cea5e56aeb828ee198d0582024f1fa', icon: this.iconPack.search }))), index$1.h("div", { key: '04607e8d3cd62f4e6ca10c2748d6e100a4df4039', class: "channels-container scrollbar", ref: (el) => (this.$listEl = el) }, filteredChannels.map((channel) => {
|
|
212
|
-
return (index$1.h("button", { class: { channel: true, active: this.selectedChannelId === channel.id }, onClick: () => this.onChannelClickHandler(channel) }, !this.hideAvatar && (index$1.h("div", null, channel.icon ? (index$1.h("rtk-icon", { class: "avatar-icon", icon: this.iconPack[channel.icon] })) : (index$1.h("rtk-avatar", { participant: {
|
|
213
|
-
name: channel.name,
|
|
214
|
-
picture: channel.avatarUrl,
|
|
215
|
-
} })))), index$1.h("div", { class: "channel-data" }, index$1.h("div", { class: "col" }, index$1.h("div", { class: "name" }, channel.name), channel.latestMessage && (index$1.h("div", { class: {
|
|
216
|
-
'last-message': true,
|
|
217
|
-
'no-message': !channel.latestMessage,
|
|
218
|
-
} }, index$1.h("rtk-text-message-view", { isMarkdown: true, text: channel.latestMessage })))), index$1.h("div", { class: "col channel-meta" }, channel.latestMessageTime && (index$1.h("time", { class: "time" }, this.getTimeLabel(channel.latestMessageTime))), channel.unreadCount > 0 && (index$1.h("div", { class: "unread-count" }, channel.unreadCount))))));
|
|
219
|
-
})))), this.viewAs === 'dropdown' && (index$1.h("button", { key: 'f710577dda08fe51f169c85318b9c51b89e765bb', class: "dropdown-trigger", onClick: this.toggleDropdown }, index$1.h("span", { key: '9bebec13a0bacb5651ef598ff47b96a2903ccf0f' }, index$1.h("rtk-icon", { key: '0ec4a41bcb7fa3086cdeacc0d6671c23c43a857f', icon: this.iconPack.participants }), this.selectedChannelId &&
|
|
220
|
-
`${this.t('to')} ${this.getChannelById(this.selectedChannelId).name}`, this.getTotalUnreads() > 0 && (index$1.h("div", { key: '043033c796d39c07a290350c5b7f92eafe03bbd2', class: "unread-count" }, this.getTotalUnreads()))), index$1.h("rtk-icon", { key: '12a2a92172d5741ac6ee99a39ee83158b98a8745', icon: this.showDropdown ? this.iconPack.chevron_up : this.iconPack.chevron_down })))));
|
|
221
|
-
}
|
|
222
|
-
get $el() { return index$1.getElement(this); }
|
|
223
|
-
};
|
|
224
|
-
__decorate$g([
|
|
225
|
-
index.SyncWithStore()
|
|
226
|
-
], RtkChannelSelectorView.prototype, "iconPack", void 0);
|
|
227
|
-
__decorate$g([
|
|
228
|
-
index.SyncWithStore()
|
|
229
|
-
], RtkChannelSelectorView.prototype, "t", void 0);
|
|
230
|
-
RtkChannelSelectorView.style = RtkChannelSelectorViewStyle0;
|
|
231
|
-
|
|
232
|
-
const rtkChatCss = ":host {\n line-height: initial;\n font-family: var(--rtk-font-family, sans-serif);\n\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n.scrollbar {\n /* For Firefox */\n scrollbar-width: thin;\n scrollbar-color: var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent);\n}\n\n/* For WebKit */\n.scrollbar::-webkit-scrollbar {\n height: var(--rtk-space-1\\.5, 6px);\n width: var(--rtk-space-1\\.5, 6px);\n border-radius: 9999px;\n background-color: var(--rtk-scrollbar-background, transparent);\n}\n\n.scrollbar::-webkit-scrollbar-thumb {\n border-radius: 9999px;\n background-color: var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)));\n}\n\n\n:host {\n display: flex;\n height: 100%;\n width: 100%;\n flex-direction: column;\n font-size: 14px;\n position: relative;\n color: rgb(var(--rtk-colors-text-1000, 255 255 255));\n}\n\nh3 {\n margin: var(--rtk-space-0, 0px);\n display: flex;\n height: var(--rtk-space-12, 48px);\n align-items: center;\n justify-content: center;\n font-size: 16px;\n font-weight: 400;\n color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));\n text-align: center;\n}\n\n#dropzone {\n position: absolute;\n top: var(--rtk-space-0, 0px);\n right: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n z-index: 10;\n display: none;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));\n color: rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));\n}\n\n#dropzone.active {\n display: flex;\n animation: 0.2s slide-up ease-in;\n}\n\nrtk-chat-messages-ui,\nrtk-chat-messages-ui-paginated {\n flex: 1 0 0;\n}\n\nrtk-chat-composer-view {\n margin: var(--rtk-space-2, 8px);\n}\n\n.chat-container {\n display: flex;\n height: 100%;\n width: 100%;\n flex-direction: row;\n container-type: size;\n container-name: chatcontainer;\n}\n\n@container chatcontainer (height < 360px) {\n rtk-channel-selector-view {\n height: var(--rtk-space-8, 32px);\n min-height: 24px;\n }\n}\n\n.chat {\n display: flex;\n flex: 1 1 0%;\n flex-direction: column;\n}\n\n.banner {\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.banner .welcome-new-channel {\n width: var(--rtk-space-48, 192px);\n}\n\n.banner .create-channel-illustration {\n height: var(--rtk-space-40, 160px);\n width: var(--rtk-space-40, 160px);\n}\n\n.channel-selector-header {\n box-sizing: border-box;\n height: var(--rtk-space-16, 64px);\n padding: var(--rtk-space-4, 16px);\n display: flex;\n justify-content: space-between;\n border-bottom: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-700, 44 44 44));\n}\n\n.channel-selector-header .channel-create-btn {\n width: var(--rtk-space-8, 32px);\n justify-content: center;\n}\n\n.channel-selector-header .channel-create-btn:hover {\n --tw-text-opacity: 1;\n color: rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));\n}\n\n.view-chats-btn {\n margin-top: var(--rtk-space-4, 16px);\n}\n\n.selector-container {\n z-index: 50;\n width: 100%;\n max-width: var(--rtk-space-80, 320px);\n border-right: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));\n}\n\n.selector-container.hide {\n display: none;\n}\n\n.mobile-close-btn {\n display: none;\n}\n\n.selector-container.mobile {\n height: 100%;\n width: 100%;\n max-width: 100%;\n position: absolute;\n top: var(--rtk-space-0, 0px);\n right: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n background-color: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);\n display: flex;\n}\n\n.selector-container.mobile rtk-channel-selector-view {\n max-width: var(--rtk-space-96, 384px);\n animation: 0.3s swipe-in;\n}\n\n.selector-container.mobile .mobile-close-btn {\n margin-top: var(--rtk-space-4, 16px);\n margin-bottom: var(--rtk-space-4, 16px);\n margin-left: var(--rtk-space-6, 24px);\n margin-right: var(--rtk-space-6, 24px);\n display: block;\n}\n\n.pinned-messages {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.pinned-messages-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--rtk-space-2, 8px);\n padding: var(--rtk-space-4, 16px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n font-size: 14px;\n cursor: pointer;\n}\n\n.pinned-messages-header div {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: var(--rtk-space-2, 8px);\n}\n\n.pinned-messages-header rtk-icon {\n height: var(--rtk-space-3, 12px);\n width: var(--rtk-space-3, 12px);\n}\n\n.pinned-messages-content {\n --tw-border-opacity: 1;\n border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));\n position: absolute;\n left: var(--rtk-space-0, 0px);\n top: 100%;\n z-index: 50;\n max-height: 30vh;\n width: 100%;\n overflow: auto;\n}\n\n.pinned-message {\n display: flex;\n cursor: pointer;\n flex-direction: row;\n align-items: center;\n gap: var(--rtk-space-2, 8px);\n --tw-border-opacity: 1;\n border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));\n padding: var(--rtk-space-4, 16px);\n border-bottom-width: var(--rtk-border-width-sm, 1px);\n border-right-width: var(--rtk-border-width-none, 0);\n border-left-width: var(--rtk-border-width-none, 0);\n border-top-width: var(--rtk-border-width-none, 0);\n border-style: solid;\n}\n\n.pinned-message-avatar {\n height: var(--rtk-space-6, 24px) !important;\n width: var(--rtk-space-6, 24px) !important;\n}\n\n@keyframes swipe-in {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n}\n";
|
|
92
|
+
const rtkChatCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px;position:relative;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}h3{margin:var(--rtk-space-0, 0px);display:flex;height:var(--rtk-space-12, 48px);align-items:center;justify-content:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}rtk-chat-messages-ui,rtk-chat-messages-ui-paginated{flex:1 0 0}rtk-chat-composer-view{margin:var(--rtk-space-2, 8px)}.chat-container{display:flex;height:100%;width:100%;flex-direction:row;container-type:size;container-name:chatcontainer}.chat{display:flex;flex:1 1 0%;flex-direction:column}.banner{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.view-chats-btn{margin-top:var(--rtk-space-4, 16px)}.selector-container{z-index:50;width:100%;max-width:var(--rtk-space-80, 320px);border-right:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.selector-container.hide{display:none}.mobile-close-btn{display:none}.selector-container.mobile{height:100%;width:100%;max-width:100%;position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);display:flex}.selector-container.mobile .mobile-close-btn{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);margin-left:var(--rtk-space-6, 24px);margin-right:var(--rtk-space-6, 24px);display:block}.pinned-messages{position:relative;display:flex;flex-direction:column}.pinned-messages-header{display:flex;align-items:center;justify-content:space-between;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-4, 16px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));font-size:14px;cursor:pointer}.pinned-messages-header div{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}.pinned-messages-header rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.pinned-messages-content{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));position:absolute;left:var(--rtk-space-0, 0px);top:100%;z-index:50;max-height:30vh;width:100%;overflow:auto}.pinned-message{display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px);--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));padding:var(--rtk-space-4, 16px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-top-width:var(--rtk-border-width-none, 0);border-style:solid}.pinned-message-avatar{height:var(--rtk-space-6, 24px) !important;width:var(--rtk-space-6, 24px) !important}@keyframes swipe-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}";
|
|
233
93
|
const RtkChatStyle0 = rtkChatCss;
|
|
234
94
|
|
|
235
95
|
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -247,8 +107,6 @@ const RtkChat = class {
|
|
|
247
107
|
index$1.registerInstance(this, hostRef);
|
|
248
108
|
this.stateUpdate = index$1.createEvent(this, "rtkStateUpdate", 7);
|
|
249
109
|
this.chatUpdateListener = ({ message }) => {
|
|
250
|
-
if (message.channelId)
|
|
251
|
-
return;
|
|
252
110
|
if (!this.displayFilter || this.displayFilter(message)) {
|
|
253
111
|
this.addToChatGroup(message);
|
|
254
112
|
// shallow copy to trigger render
|
|
@@ -299,15 +157,12 @@ const RtkChat = class {
|
|
|
299
157
|
this.emojiPickerEnabled = false;
|
|
300
158
|
this.chatRecipientId = 'everyone';
|
|
301
159
|
this.participants = [];
|
|
302
|
-
this.channels = [];
|
|
303
160
|
this.editingMessage = null;
|
|
304
161
|
this.replyMessage = null;
|
|
305
162
|
this.searchQuery = '';
|
|
306
163
|
this.selectorState = 'hide';
|
|
307
|
-
this.creatingChannel = false;
|
|
308
164
|
this.isSendingMessage = false;
|
|
309
165
|
this.showPinnedMessages = false;
|
|
310
|
-
this.channelMap = new Map();
|
|
311
166
|
this.onDragOver = (e) => {
|
|
312
167
|
e.preventDefault();
|
|
313
168
|
this.dropzoneActivated = true;
|
|
@@ -335,23 +190,14 @@ const RtkChat = class {
|
|
|
335
190
|
});
|
|
336
191
|
};
|
|
337
192
|
this.disconnectMeeting = (meeting) => {
|
|
338
|
-
var _a
|
|
193
|
+
var _a;
|
|
339
194
|
if (this.isPrivateChatSupported()) {
|
|
340
195
|
meeting === null || meeting === void 0 ? void 0 : meeting.participants.joined.removeListener('participantJoined', this.onParticipantUpdate);
|
|
341
196
|
meeting === null || meeting === void 0 ? void 0 : meeting.participants.joined.removeListener('participantLeft', this.onParticipantUpdate);
|
|
342
197
|
}
|
|
343
198
|
(_a = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _a === void 0 ? void 0 : _a.removeListener('chatUpdate', this.chatUpdateListener);
|
|
344
|
-
(_b = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _b === void 0 ? void 0 : _b.removeListener('channelCreate', this.onChannelCreateOrUpdate);
|
|
345
|
-
(_c = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _c === void 0 ? void 0 : _c.removeListener('channelUpdate', this.onChannelCreateOrUpdate);
|
|
346
|
-
(_d = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _d === void 0 ? void 0 : _d.removeListener('channelMessageUpdate', this.onChannelCreateOrUpdate);
|
|
347
|
-
(_f = (_e = meeting === null || meeting === void 0 ? void 0 : meeting.participants) === null || _e === void 0 ? void 0 : _e.all) === null || _f === void 0 ? void 0 : _f.removeListener('participantsUpdate', this.onChannelCreateOrUpdate);
|
|
348
199
|
meeting.self.permissions.removeListener('*', this.chatPermissionUpdateListener);
|
|
349
200
|
};
|
|
350
|
-
this.getFilteredParticipants = () => {
|
|
351
|
-
if (this.privatePresetFilter.length === 0)
|
|
352
|
-
return this.participants;
|
|
353
|
-
return this.participants.filter((p) => this.privatePresetFilter.includes(p.presetName));
|
|
354
|
-
};
|
|
355
201
|
this.onParticipantUpdate = () => {
|
|
356
202
|
this.participants = this.meeting.participants.joined
|
|
357
203
|
.toArray()
|
|
@@ -368,20 +214,6 @@ const RtkChat = class {
|
|
|
368
214
|
this.isPrivateChatSupported = () => {
|
|
369
215
|
return this.canPrivateMessage && !this.disablePrivateChat;
|
|
370
216
|
};
|
|
371
|
-
this.updateRecipients = (event) => {
|
|
372
|
-
const { id } = event.detail;
|
|
373
|
-
this.chatRecipientId = id;
|
|
374
|
-
this.selectedParticipant = this.participants.find((p) => p.userId === id);
|
|
375
|
-
if (this.chatRecipientId !== 'everyone') {
|
|
376
|
-
const allParticipants = [this.chatRecipientId, this.meeting.self.userId];
|
|
377
|
-
const targetKey = chat.generateChatGroupKey(allParticipants);
|
|
378
|
-
this.selectedGroup = targetKey;
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
this.selectedGroup = 'everyone';
|
|
382
|
-
}
|
|
383
|
-
this.updateUnreadCountGroups({ [this.selectedGroup]: 0 });
|
|
384
|
-
};
|
|
385
217
|
this.isTextMessagingAllowed = () => {
|
|
386
218
|
if (this.chatRecipientId === 'everyone') {
|
|
387
219
|
// public chat
|
|
@@ -398,91 +230,9 @@ const RtkChat = class {
|
|
|
398
230
|
// private chat
|
|
399
231
|
return this.canPrivateMessage && this.canSendPrivateFiles;
|
|
400
232
|
};
|
|
401
|
-
this.onChannelChanged = (e) => {
|
|
402
|
-
const channel = e.detail;
|
|
403
|
-
if (channel.id.includes(chat.TEMPORARY_CHANNEL_PREFIX)) {
|
|
404
|
-
this.createDMChannel(channel.id.replace(chat.TEMPORARY_CHANNEL_PREFIX, ''));
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
this.selectedChannelId = channel.id;
|
|
408
|
-
}
|
|
409
|
-
this.cleanup();
|
|
410
|
-
if (this.selectorState !== 'desktop') {
|
|
411
|
-
this.selectorState = 'hide';
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
this.createDMChannel = async (memberId) => {
|
|
415
|
-
this.creatingChannel = true;
|
|
416
|
-
const newChannel = await this.meeting.chat.createChannel('Direct Message', [memberId], {
|
|
417
|
-
visibility: 'private',
|
|
418
|
-
isDirectMessage: true,
|
|
419
|
-
});
|
|
420
|
-
this.creatingChannel = false;
|
|
421
|
-
this.selectedChannelId = newChannel.id;
|
|
422
|
-
};
|
|
423
|
-
this.cleanup = () => {
|
|
424
|
-
this.editingMessage = null;
|
|
425
|
-
this.replyMessage = null;
|
|
426
|
-
this.searchQuery = '';
|
|
427
|
-
};
|
|
428
233
|
this.onQuotedMessageDismiss = () => {
|
|
429
234
|
this.replyMessage = null;
|
|
430
235
|
};
|
|
431
|
-
this.onChannelCreateOrUpdate = (channel) => {
|
|
432
|
-
if (channel) {
|
|
433
|
-
this.channelMap.set(channel.id, channel);
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
this.meeting.chat.channels.forEach((chan) => this.channelMap.set(chan.id, chan));
|
|
437
|
-
}
|
|
438
|
-
const allChannels = Array.from(this.channelMap.values());
|
|
439
|
-
const channels = allChannels
|
|
440
|
-
.filter((channel) => !chat.isDirectMessageChannel(channel))
|
|
441
|
-
.sort((a, b) => chat.alphabeticalSorter(a.displayName, b.displayName));
|
|
442
|
-
const membersWithChannel = allChannels.filter(chat.isDirectMessageChannel).map((channel) => {
|
|
443
|
-
return Object.assign(Object.assign({}, channel), { displayName: this.getMemberDisplayName(channel) });
|
|
444
|
-
});
|
|
445
|
-
const membersWithoutChannel = this.meeting.participants.all
|
|
446
|
-
.toArray()
|
|
447
|
-
.filter((member) => {
|
|
448
|
-
if (member.userId === this.meeting.self.userId)
|
|
449
|
-
return false;
|
|
450
|
-
const matcher = chat.getDMComparator([this.meeting.self.userId, member.userId]);
|
|
451
|
-
return membersWithChannel.every((channel) => chat.getDMComparator(channel.memberIds) !== matcher);
|
|
452
|
-
})
|
|
453
|
-
.map((member) => {
|
|
454
|
-
return {
|
|
455
|
-
id: `${chat.TEMPORARY_CHANNEL_PREFIX}${member.userId}`,
|
|
456
|
-
displayName: member.name,
|
|
457
|
-
displayPictureUrl: member.picture,
|
|
458
|
-
isDirectMessage: true,
|
|
459
|
-
unreadCount: 0,
|
|
460
|
-
};
|
|
461
|
-
});
|
|
462
|
-
const dms = [...membersWithChannel, ...membersWithoutChannel].sort((a, b) => chat.alphabeticalSorter(a.displayName, b.displayName));
|
|
463
|
-
this.channels = [...channels, ...dms];
|
|
464
|
-
// select channel only if it is created in db
|
|
465
|
-
const nonTemporaryChannel = [...channels, ...membersWithChannel];
|
|
466
|
-
if (!this.selectedChannelId && nonTemporaryChannel.length !== 0) {
|
|
467
|
-
this.selectedChannelId = nonTemporaryChannel[0].id;
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
this.getMemberDisplayName = (channel) => {
|
|
471
|
-
var _a;
|
|
472
|
-
let id;
|
|
473
|
-
if (channel.memberIds.length === 1) {
|
|
474
|
-
// channel with self
|
|
475
|
-
id = channel.memberIds[0];
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
id =
|
|
479
|
-
channel.memberIds[0] === this.meeting.self.userId
|
|
480
|
-
? channel.memberIds[1]
|
|
481
|
-
: channel.memberIds[0];
|
|
482
|
-
}
|
|
483
|
-
const member = this.meeting.participants.all.toArray().find((member) => member.userId === id);
|
|
484
|
-
return (_a = member === null || member === void 0 ? void 0 : member.name) !== null && _a !== void 0 ? _a : id;
|
|
485
|
-
};
|
|
486
236
|
this.onNewMessageHandler = async (e) => {
|
|
487
237
|
const message = e.detail;
|
|
488
238
|
this.isSendingMessage = true;
|
|
@@ -497,7 +247,7 @@ const RtkChat = class {
|
|
|
497
247
|
var _a, _b;
|
|
498
248
|
this.isSendingMessage = true;
|
|
499
249
|
try {
|
|
500
|
-
await ((_b = (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.chat) === null || _b === void 0 ? void 0 : _b.editTextMessage(this.editingMessage.id, e.detail
|
|
250
|
+
await ((_b = (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.chat) === null || _b === void 0 ? void 0 : _b.editTextMessage(this.editingMessage.id, e.detail));
|
|
501
251
|
}
|
|
502
252
|
finally {
|
|
503
253
|
this.isSendingMessage = false;
|
|
@@ -546,25 +296,6 @@ const RtkChat = class {
|
|
|
546
296
|
this.replyMessage = null;
|
|
547
297
|
this.editingMessage = message;
|
|
548
298
|
};
|
|
549
|
-
this.getPrivateChatRecipients = () => {
|
|
550
|
-
const participants = this.getFilteredParticipants().map((participant) => {
|
|
551
|
-
const key = chat.generateChatGroupKey([participant.userId, this.meeting.self.userId]);
|
|
552
|
-
const result = {
|
|
553
|
-
id: participant.userId,
|
|
554
|
-
name: participant.name,
|
|
555
|
-
avatarUrl: participant.picture,
|
|
556
|
-
unreadCount: this.unreadCountGroups[key],
|
|
557
|
-
};
|
|
558
|
-
return result;
|
|
559
|
-
});
|
|
560
|
-
const everyone = {
|
|
561
|
-
id: 'everyone',
|
|
562
|
-
name: this.t('chat.everyone'),
|
|
563
|
-
icon: 'participants',
|
|
564
|
-
unreadCount: this.unreadCountGroups['everyone'],
|
|
565
|
-
};
|
|
566
|
-
return [everyone, ...participants];
|
|
567
|
-
};
|
|
568
299
|
this.getPinnedMessageLabel = (message) => {
|
|
569
300
|
if (message.type === 'text')
|
|
570
301
|
return message.message;
|
|
@@ -714,11 +445,7 @@ const RtkChat = class {
|
|
|
714
445
|
}
|
|
715
446
|
return peerIds;
|
|
716
447
|
}
|
|
717
|
-
channelSwitchListener(e) {
|
|
718
|
-
this.onChannelChanged(e);
|
|
719
|
-
}
|
|
720
448
|
renderComposerUI() {
|
|
721
|
-
var _a;
|
|
722
449
|
if (this.chatRecipientId === 'everyone') {
|
|
723
450
|
if (!this.canSendTextMessage && !this.canSendFiles)
|
|
724
451
|
return null;
|
|
@@ -730,21 +457,18 @@ const RtkChat = class {
|
|
|
730
457
|
const uiProps = { iconPack: this.iconPack, t: this.t, size: this.size };
|
|
731
458
|
const message = this.editingMessage ? this.editingMessage.message : '';
|
|
732
459
|
const quotedMessage = this.replyMessage ? this.replyMessage.message : '';
|
|
733
|
-
const draftStorageKey =
|
|
734
|
-
? `rtk-chat-draft-${this.selectedChannelId}`
|
|
735
|
-
: 'rtk-chat-draft';
|
|
460
|
+
const draftStorageKey = 'rtk-chat-draft';
|
|
736
461
|
const editStorageKey = this.editingMessage
|
|
737
|
-
? `rtk-chat-edit-${
|
|
462
|
+
? `rtk-chat-edit-${'no-channel'}-${this.editingMessage.id}`
|
|
738
463
|
: 'rtk-chat-edit';
|
|
739
464
|
const storageKey = this.editingMessage ? editStorageKey : draftStorageKey;
|
|
740
465
|
return (index$1.h("rtk-chat-composer-view", Object.assign({ message: message, storageKey: storageKey, quotedMessage: quotedMessage, isEditing: !!this.editingMessage, isSending: this.isSendingMessage, canSendTextMessage: this.isTextMessagingAllowed(), canSendFiles: this.isFileMessagingAllowed(), disableEmojiPicker: this.overrides.disableEmojiPicker, 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), index$1.h("slot", { name: "chat-addon", slot: "chat-addon" })));
|
|
741
466
|
}
|
|
742
467
|
render() {
|
|
743
|
-
var _a;
|
|
744
468
|
if (!this.meeting) {
|
|
745
469
|
return null;
|
|
746
470
|
}
|
|
747
|
-
return (index$1.h(index$1.Host, null, index$1.h("div", { class: "chat-container" }, index$1.h("div", { class: "chat" }, this.isFileMessagingAllowed() && (index$1.h("div", { id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, index$1.h("rtk-icon", { icon: this.iconPack.attach }), index$1.h("p", null, this.t('chat.send_attachment')))), this.renderPinnedMessagesHeader(),
|
|
471
|
+
return (index$1.h(index$1.Host, null, index$1.h("div", { class: "chat-container" }, index$1.h("div", { class: "chat" }, this.isFileMessagingAllowed() && (index$1.h("div", { id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, index$1.h("rtk-icon", { icon: this.iconPack.attach }), index$1.h("p", null, this.t('chat.send_attachment')))), this.renderPinnedMessagesHeader(), index$1.h("rtk-chat-messages-ui-paginated", { meeting: this.meeting, onPinMessage: this.onPinMessage, onEditMessage: this.onMessageEdit, onDeleteMessage: this.onDeleteMessage, size: this.size, iconPack: this.iconPack, t: this.t }), this.renderComposerUI()))));
|
|
748
472
|
}
|
|
749
473
|
get host() { return index$1.getElement(this); }
|
|
750
474
|
static get watchers() { return {
|
|
@@ -991,26 +715,14 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
991
715
|
this.leftAlign = false;
|
|
992
716
|
this.permissionsChanged = false;
|
|
993
717
|
this.pageSize = 25;
|
|
994
|
-
this.lastReadMessageIndex = -1;
|
|
995
718
|
this.permissionsUpdateListener = () => {
|
|
996
719
|
this.permissionsChanged = !this.permissionsChanged;
|
|
997
720
|
};
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
return;
|
|
1001
|
-
if (messages.length === 0)
|
|
1002
|
-
return;
|
|
1003
|
-
if (this.lastReadMessageIndex !== -1)
|
|
1004
|
-
return;
|
|
1005
|
-
const latestMsg = messages.at(0).time > messages.at(-1).time ? messages.at(0) : messages.at(-1);
|
|
1006
|
-
if (!latestMsg.channelIndex)
|
|
1007
|
-
return;
|
|
1008
|
-
this.lastReadMessageIndex = parseInt(latestMsg.channelIndex, 10);
|
|
1009
|
-
this.meeting.chat.markLastReadMessage(this.selectedChannelId, latestMsg);
|
|
1010
|
-
};
|
|
721
|
+
// TODO: Implement the logic to mark messages as read. Old usages have been kept as-is.
|
|
722
|
+
this.maybeMarkChatAsRead = (_messages) => { };
|
|
1011
723
|
this.getChatMessages = async (timestamp, size, reversed) => {
|
|
1012
|
-
const { messages } = await this.meeting.chat.getMessages(timestamp, size, reversed, undefined
|
|
1013
|
-
this.
|
|
724
|
+
const { messages } = await this.meeting.chat.getMessages(timestamp, size, reversed, undefined);
|
|
725
|
+
this.maybeMarkChatAsRead(messages);
|
|
1014
726
|
return messages;
|
|
1015
727
|
};
|
|
1016
728
|
this.createChatNodes = (data) => {
|
|
@@ -1092,12 +804,9 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
1092
804
|
} }))))))));
|
|
1093
805
|
};
|
|
1094
806
|
this.chatUpdateListener = (data) => {
|
|
1095
|
-
if (this.selectedChannelId && data.message.channelId !== this.selectedChannelId)
|
|
1096
|
-
return;
|
|
1097
807
|
if (data.action === 'add') {
|
|
1098
808
|
this.$paginatedListRef.onNewNode(data.message);
|
|
1099
|
-
this.
|
|
1100
|
-
this.maybeMarkChannelAsRead([data.message]);
|
|
809
|
+
this.maybeMarkChatAsRead([data.message]);
|
|
1101
810
|
}
|
|
1102
811
|
else if (data.action === 'delete') {
|
|
1103
812
|
this.$paginatedListRef.onNodeDelete(data.message.id);
|
|
@@ -1131,16 +840,12 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
1131
840
|
}
|
|
1132
841
|
this.permissionsUpdateListener();
|
|
1133
842
|
}
|
|
1134
|
-
channelChanged() {
|
|
1135
|
-
this.lastReadMessageIndex = -1;
|
|
1136
|
-
}
|
|
1137
843
|
render() {
|
|
1138
|
-
return (index$1.h(index$1.Host, { key: '
|
|
844
|
+
return (index$1.h(index$1.Host, { key: 'a574f0d8e0c7b1249568db270c73f45ad81fd8e2' }, index$1.h("rtk-paginated-list", { key: '279cf0d1c114c93f009a03779f026f6a7bb6ddf4', ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getChatMessages, createNodes: this.createChatNodes, emptyListLabel: this.t('chat.empty_chat') }, index$1.h("slot", { key: 'cf28a28970c38375cda7492518fa8ed17802580e' }))));
|
|
1139
845
|
}
|
|
1140
846
|
get host() { return index$1.getElement(this); }
|
|
1141
847
|
static get watchers() { return {
|
|
1142
|
-
"meeting": ["meetingChanged"]
|
|
1143
|
-
"selectedChannelId": ["channelChanged"]
|
|
848
|
+
"meeting": ["meetingChanged"]
|
|
1144
849
|
}; }
|
|
1145
850
|
};
|
|
1146
851
|
__decorate$d([
|
|
@@ -1208,7 +913,7 @@ const RtkDraftAttachmentView = class {
|
|
|
1208
913
|
this.onAttachmentChange();
|
|
1209
914
|
}
|
|
1210
915
|
render() {
|
|
1211
|
-
return (index$1.h(index$1.Host, { key: '
|
|
916
|
+
return (index$1.h(index$1.Host, { key: '5dc2f4f2904db3b33f3682f353010b7d5d3db2d5' }, index$1.h("div", { key: 'b10dfebd718959e55a18db4c31cded17af4fa9fd', class: "preview-overlay" }, index$1.h("div", { key: '3c4cff755b989547d7c348271ca8bd02618e50f5', class: "preview" }, index$1.h("rtk-tooltip", { key: '172e504a86963d269935a49da8b7a6c51da7dc71', label: this.t('chat.cancel_upload') }, index$1.h("rtk-button", { key: '421a172fd744cb65b066a4cb13f81d80e8fc7594', variant: "secondary", kind: "icon", onClick: this.onDeleteClickHandler }, index$1.h("rtk-icon", { key: '1b030c644ea7eec33cc760b947fbcc5d679a1abb', icon: this.iconPack.dismiss }))), this.attachment.type === 'image' ? (index$1.h("img", { class: "preview-image", src: this.filePreview })) : (index$1.h("div", { class: "preview-file" }, index$1.h("span", null, this.filePreview)))))));
|
|
1212
917
|
}
|
|
1213
918
|
static get watchers() { return {
|
|
1214
919
|
"attachment": ["onAttachmentChange"]
|
|
@@ -1293,7 +998,7 @@ const RtkEmojiPicker = class {
|
|
|
1293
998
|
return (index$1.h("div", { id: "emoji-grid", class: "scrollbar max-w-40" }, this.filteredEmojis.map((e) => (index$1.h("rtk-button", { key: `emoji-button-${e.name}`, class: "emoji", variant: "ghost", kind: "icon", title: e.name, onClick: () => this.handleEmojiClick(e.emoji) }, e.emoji)))));
|
|
1294
999
|
}
|
|
1295
1000
|
render() {
|
|
1296
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1001
|
+
return (index$1.h(index$1.Host, { key: '13b76b472a4edf495e7bfdf5ac5d09c02c8c383c' }, index$1.h("div", { key: '7cc0a162ffce7699ba8a52a03503b47bb5cf99ef', class: 'close-parent' }, index$1.h("rtk-button", { key: '4f42ddea82a1e67e01a05cbb66aa6de0116a424b', variant: "ghost", kind: "icon", class: "close", onClick: () => { var _a; return (_a = this.pickerClose) === null || _a === void 0 ? void 0 : _a.emit(); }, "aria-label": this.t('close') }, index$1.h("rtk-icon", { key: '47931529abc70c2cc0799254f7012bc3d622df39', icon: this.iconPack.dismiss }))), index$1.h("div", { key: '91c1356be602e7d894c29793df4ea4f83cc3e2a7', class: 'emoji-parent' }, index$1.h("input", { key: '2e141a5bf7f4e9376f9d83d443937b39637e1caf', value: this.filterVal, onInput: (event) => this.handleInputChange(event.target), placeholder: this.t('search'), ref: (el) => (this.inputElement = el) }), this.mapEmojiList())));
|
|
1297
1002
|
}
|
|
1298
1003
|
};
|
|
1299
1004
|
__decorate$b([
|
|
@@ -1326,7 +1031,7 @@ const RtkEmojiPickerButton = class {
|
|
|
1326
1031
|
this.t = uiStore.useLanguage();
|
|
1327
1032
|
}
|
|
1328
1033
|
render() {
|
|
1329
|
-
return (index$1.h("rtk-tooltip", { key: '
|
|
1034
|
+
return (index$1.h("rtk-tooltip", { key: '16b0af8b5d8bb121ebbeb80c2f6dd6bc5b53fc06', label: this.t('chat.send_emoji') }, index$1.h("rtk-button", { key: 'cb6d682ce5952173cbd2aceeaa9c20bbd7066c79', variant: "ghost", kind: "icon", class: { active: this.isActive }, title: this.t('chat.send_emoji') }, index$1.h("rtk-icon", { key: '2f414ed05d6cd4d00393fefbb7d4e745d49210a1', icon: this.iconPack.emoji_multiple }))));
|
|
1330
1035
|
}
|
|
1331
1036
|
};
|
|
1332
1037
|
__decorate$a([
|
|
@@ -1357,7 +1062,7 @@ const RtkFileMessageView = class {
|
|
|
1357
1062
|
this.iconPack = uiStore.defaultIconPack;
|
|
1358
1063
|
}
|
|
1359
1064
|
render() {
|
|
1360
|
-
return (index$1.h("div", { key: '
|
|
1065
|
+
return (index$1.h("div", { key: '8b4778c0c9cff1d4fc5b45e446cd450d7b8b9156', class: "file" }, index$1.h("rtk-button", { key: '6c72f68880e3bba50e8e5ebe7abd6127de227178', variant: "secondary", kind: "icon", onClick: () => file.downloadFile(string.sanitizeLink(this.url), { name: this.name, fallbackName: 'file' }), part: "button" }, index$1.h("rtk-icon", { key: '62be4e65fc87ca1721b3ab1e3e634afb6d45f3b4', icon: this.iconPack.download })), index$1.h("div", { key: '407c9ca4a0f1be967f5d2cb08f3c15b814d425bb', class: "file-data" }, index$1.h("div", { key: '89fdb171090b4f0500db05bd1ee2908c9f393036', class: "name" }, this.name), index$1.h("div", { key: 'fafc637f7077925b9f25dc9615124a18c47ff684', class: "file-data-split" }, index$1.h("div", { key: '80f45099fbe958ac7d951af08334509d4bada1e0', class: "ext" }, file.getExtension(this.name)), index$1.h("span", { key: 'befbc0bc7065dbf3cc76c2c20091fa30c2f30a52', class: "divider" }), index$1.h("div", { key: '75a2ad121ac602c079eb7e08390a5379ec35f4d8', class: "size" }, file.getFileSize(this.size))))));
|
|
1361
1066
|
}
|
|
1362
1067
|
};
|
|
1363
1068
|
__decorate$9([
|
|
@@ -1413,7 +1118,7 @@ const RtkFilePickerButton = class {
|
|
|
1413
1118
|
render() {
|
|
1414
1119
|
const label = this.label || this.t('chat.send_file');
|
|
1415
1120
|
const icon = this.iconPack[this.icon];
|
|
1416
|
-
return (index$1.h("rtk-tooltip", { key: '
|
|
1121
|
+
return (index$1.h("rtk-tooltip", { key: '9a4e6046f0ee0972678b64365e14ed1762a0a23a', label: label }, index$1.h("rtk-button", { key: 'e5cdac75458861a2e5258f4bf4af43f818ce599b', variant: "ghost", kind: "icon", onClick: () => this.uploadFile(), title: label }, index$1.h("rtk-icon", { key: '17407d82abb9352c64d37e26d1fc4fd407369703', icon: icon }))));
|
|
1417
1122
|
}
|
|
1418
1123
|
};
|
|
1419
1124
|
__decorate$8([
|
|
@@ -1473,7 +1178,7 @@ const RtkImageMessageView = class {
|
|
|
1473
1178
|
this.status = 'loading';
|
|
1474
1179
|
}
|
|
1475
1180
|
render() {
|
|
1476
|
-
return (index$1.h("div", { key: '
|
|
1181
|
+
return (index$1.h("div", { key: 'f74af6a1b2b3b93a7b267cda9e43d232c66ea520', class: { image: true, loaded: this.status === 'loaded' } }, index$1.h("img", { key: '779c07d162a10153753f646bca05a1af6f67a070', src: string.sanitizeLink(this.url), onLoad: () => {
|
|
1477
1182
|
this.status = 'loaded';
|
|
1478
1183
|
}, onError: () => {
|
|
1479
1184
|
this.status = 'errored';
|
|
@@ -1481,9 +1186,9 @@ const RtkImageMessageView = class {
|
|
|
1481
1186
|
if (this.status === 'loaded') {
|
|
1482
1187
|
this.onPreview.emit(this.url);
|
|
1483
1188
|
}
|
|
1484
|
-
} }), this.status === 'loading' && (index$1.h("div", { key: '
|
|
1189
|
+
} }), this.status === 'loading' && (index$1.h("div", { key: 'c6bb6bf418436dabc1a73d65ad0975d37beb048b', class: "image-spinner", title: this.t('chat.img.loading'), "aria-label": this.t('chat.img.loading') }, index$1.h("rtk-spinner", { key: 'ead3419ec79f0593ea13f5093ae2abebd7179a71', iconPack: this.iconPack }))), this.status === 'errored' && (index$1.h("div", { key: '871faf9faeba4878c8056d1311773e6b0da5489a', class: "image-errored", title: this.t('chat.error.img_not_found'), "aria-label": this.t('chat.error.img_not_found') }, index$1.h("rtk-icon", { key: 'b800d614db9abdefd60bef87133b0ecccee80a5e', icon: this.iconPack.image_off }))), this.status === 'loaded' && (index$1.h("div", { key: '75656710da042f44d995f570a3a58d741933095c', class: "actions" }, index$1.h("rtk-button", { key: 'bf62519599d17503ebaa2046d932748ad2e0b68f', class: "action", variant: "secondary", kind: "icon", onClick: () => {
|
|
1485
1190
|
this.onPreview.emit(this.url);
|
|
1486
|
-
} }, index$1.h("rtk-icon", { key: '
|
|
1191
|
+
} }, index$1.h("rtk-icon", { key: '200a6383f044f4744e575ac2bd65a9e6ecf26d4a', icon: this.iconPack.full_screen_maximize })), index$1.h("rtk-button", { key: 'ef63418289bf89db7f6ff8ab2a4f5cce44598d14', class: "action", variant: "secondary", kind: "icon", onClick: () => file.downloadFile(this.url, { fallbackName: 'image' }) }, index$1.h("rtk-icon", { key: '296f173d6cd72ec32181487ae74e7231212cd248', icon: this.iconPack.download }))))));
|
|
1487
1192
|
}
|
|
1488
1193
|
};
|
|
1489
1194
|
__decorate$7([
|
|
@@ -1574,7 +1279,7 @@ const RtkMarkdownView = class {
|
|
|
1574
1279
|
const slicedMessage = this.text.slice(0, this.maxLength);
|
|
1575
1280
|
const withReply = chat.extractReplyBlock(slicedMessage, true);
|
|
1576
1281
|
const withoutReply = chat.stripOutReplyBlock(slicedMessage);
|
|
1577
|
-
return (index$1.h("p", { key: '
|
|
1282
|
+
return (index$1.h("p", { key: '8ec8d139843454330a7c2a6da1c46fa7c7a6c02f' }, withReply.length !== 0 && index$1.h("blockquote", { key: 'a2b2a90ee98f45f1ceb5c15cc327391150245567' }, this.renderMessage(withReply)), withoutReply.length !== 0 && this.renderMessage(withoutReply)));
|
|
1578
1283
|
}
|
|
1579
1284
|
};
|
|
1580
1285
|
RtkMarkdownView.style = RtkMarkdownViewStyle0;
|
|
@@ -1955,7 +1660,7 @@ const RtkMenu$1 = class {
|
|
|
1955
1660
|
});
|
|
1956
1661
|
}
|
|
1957
1662
|
render() {
|
|
1958
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1663
|
+
return (index$1.h(index$1.Host, { key: 'c5de1fb710d48142e20c3ea8144cffb807d56c63' }, index$1.h("span", { key: '07cf0464bc09c7e6ab1d05c17ba4b4219e5a229f', id: "trigger", ref: (el) => (this.triggerEl = el), onClick: () => {
|
|
1959
1664
|
this.clickedThis = true;
|
|
1960
1665
|
if (this.menuListEl.style.display !== 'block') {
|
|
1961
1666
|
this.menuListEl.style.display = 'block';
|
|
@@ -1964,7 +1669,7 @@ const RtkMenu$1 = class {
|
|
|
1964
1669
|
else {
|
|
1965
1670
|
this.menuListEl.style.display = 'none';
|
|
1966
1671
|
}
|
|
1967
|
-
} }, index$1.h("slot", { key: '
|
|
1672
|
+
} }, index$1.h("slot", { key: 'ee7b8769fa9dd5b8408332c4d467b03962dc396c', name: "trigger" })), index$1.h("span", { key: 'ba37ce9d08b3aadc54db3bbb5c397021e8fe7395', part: "menu-list", id: "menu-list", ref: (el) => (this.menuListEl = el) }, index$1.h("slot", { key: '22200083796195d51f175f0ffdeab023e732c9e0' }))));
|
|
1968
1673
|
}
|
|
1969
1674
|
};
|
|
1970
1675
|
__decorate$6([
|
|
@@ -1999,7 +1704,7 @@ const RtkMenuItem = class {
|
|
|
1999
1704
|
this.t = uiStore.useLanguage();
|
|
2000
1705
|
}
|
|
2001
1706
|
render() {
|
|
2002
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1707
|
+
return (index$1.h(index$1.Host, { key: '613d2db512a5ccbdd1c8c9e1da6a15487e3f6811', class: { [this.menuVariant]: true } }, index$1.h("slot", { key: '3bb27b46542ed03a01ff77efe1dc69554f9188db', name: "start" }), index$1.h("slot", { key: 'efe49fe8df4b2c1e1e3c2d1b87ee0ec9e8380a29' }), index$1.h("slot", { key: '83491fef2a3f1ebc846081893b20f2a6e6cb12c9', name: "end" })));
|
|
2003
1708
|
}
|
|
2004
1709
|
};
|
|
2005
1710
|
__decorate$5([
|
|
@@ -2034,7 +1739,7 @@ const RtkMenuList = class {
|
|
|
2034
1739
|
this.t = uiStore.useLanguage();
|
|
2035
1740
|
}
|
|
2036
1741
|
render() {
|
|
2037
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1742
|
+
return (index$1.h(index$1.Host, { key: 'e7b720a26e59508951d35ef90f1b5d4e0cbd4b14', class: { [this.menuVariant]: true } }, index$1.h("slot", { key: '344410259db395ccafd311ee00a7575f0c2c746a' })));
|
|
2038
1743
|
}
|
|
2039
1744
|
};
|
|
2040
1745
|
__decorate$4([
|
|
@@ -2089,7 +1794,7 @@ const RtkMessageView = class {
|
|
|
2089
1794
|
}))));
|
|
2090
1795
|
}
|
|
2091
1796
|
render() {
|
|
2092
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1797
|
+
return (index$1.h(index$1.Host, { key: '3d53fc59bda6a82e4c4753e34f915c8f62611f6b' }, index$1.h("div", { key: '1f9cbd79c9e5526645fafd0c4436b91c6c612f08', class: { 'message-wrapper': true, [this.viewType]: true } }, !this.hideAvatar && (index$1.h("aside", { key: '23071b4dff9dd4ecc1385be9a1610ffbab98a9e9', class: "avatar", part: "avatar" }, index$1.h("rtk-avatar", { key: '9a4596ea3636188ef391e65f86d6a608b3aa02d5', participant: { name: this.authorName, picture: this.avatarUrl }, size: "sm" }))), index$1.h("div", { key: 'eefe1bf5803e371266a0b8ee230dd2f42a193dc2', class: "message", part: "message" }, !this.hideAuthorName && (index$1.h("div", { key: '45ba437f7a3ba2b253f22a1885d7e5be954a387e', class: "header" }, this.authorName, " ", this.isSelf ? ' (You)' : '')), index$1.h("div", { key: 'e9636fb45358423d5cc4e8144b6b47cf065117cc', class: { body: true, bubble: this.variant === 'bubble' } }, index$1.h("slot", { key: '1d6cd92eb8d4514b7ae4266fae8cd060a56ac1e3' }), !this.hideMetadata && !!this.time && (index$1.h("div", { key: '77b29974a960e4b4809025305ce005aeab8edebc', class: "metadata", title: date.formatDateTime(this.time) }, this.pinned && (index$1.h("span", { key: 'e6b99085f2cbcbc9505c20e5407a98c382306614', class: "metadata-content" }, index$1.h("rtk-icon", { key: '45ad875ef38b1db0105c85659cf938cc9bd792d8', icon: this.iconPack.pin, size: "sm" }), " \u2022")), this.isEdited && (index$1.h("span", { key: '48d5ecd659fe2308d8c33e94a2216049a2bea5ef', class: "metadata-content" }, index$1.h("span", { key: '9203ff6d3f65b81b875f5bc17231fd2c65c1c2c2' }, "Edited"), " \u2022")), date.elapsedDuration(this.time, new Date(Date.now())))), this.actions.length !== 0 && this.renderActions())))));
|
|
2093
1798
|
}
|
|
2094
1799
|
};
|
|
2095
1800
|
__decorate$3([
|
|
@@ -2435,9 +2140,9 @@ const RtkPaginatedList = class {
|
|
|
2435
2140
|
/**
|
|
2436
2141
|
* div.container is flex=column-reversewhich is why div#bottom-scroll comes before div#top-scroll
|
|
2437
2142
|
*/
|
|
2438
|
-
return (index$1.h(index$1.Host, { key: '
|
|
2143
|
+
return (index$1.h(index$1.Host, { key: '90112894b4d06b91240bcf4c1dfadad784097ec4' }, index$1.h("div", { key: '339f02629a39ce0f7d2552325b9f6a7c82ffa036', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, index$1.h("div", { key: '10de785a969cac74d840e0311087b85b67e97fb6', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, index$1.h("rtk-button", { key: '68991f70a24417ca79d6583cca50f2dd9f55892d', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
|
|
2439
2144
|
this.scrollToBottom();
|
|
2440
|
-
} }, this.shouldScrollToBottom ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.chevron_down })))), index$1.h("div", { key: '
|
|
2145
|
+
} }, this.shouldScrollToBottom ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.chevron_down })))), index$1.h("div", { key: '24098a445c1a9b1a3ef77436988c36c8f2a8c205', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && index$1.h("rtk-spinner", { key: '93c029599cf61fb61ae57651064f4f0a8c7ac39b', size: "sm" }), this.isLoading && this.pages.length < 1 && index$1.h("rtk-spinner", { key: 'd49e8bbbf34036bb6559b5b0e5c54d32513f6bc6', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (index$1.h("div", { class: "empty-list" }, this.t('list.empty'))) : (index$1.h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (index$1.h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && index$1.h("rtk-spinner", { key: '067d8da823c27e3c5fb18f138c58eb537a4b67f5', size: "sm" }), index$1.h("div", { key: '16fef008d5831bd5f6b4136e2a58cccc34e08064', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
|
|
2441
2146
|
}
|
|
2442
2147
|
};
|
|
2443
2148
|
__decorate$2([
|
|
@@ -2470,7 +2175,7 @@ const RtkSpinner = class {
|
|
|
2470
2175
|
this.size = 'md';
|
|
2471
2176
|
}
|
|
2472
2177
|
render() {
|
|
2473
|
-
return (index$1.h(index$1.Host, { key: '
|
|
2178
|
+
return (index$1.h(index$1.Host, { key: '5f6172eb684feb1d2a1bfa4933c4f3763534d479' }, index$1.h("rtk-icon", { key: '32a8707e5447a9e85e42c2aa57b55a46d0208f7e', class: "spinner", icon: this.iconPack.spinner })));
|
|
2474
2179
|
}
|
|
2475
2180
|
};
|
|
2476
2181
|
__decorate$1([
|
|
@@ -2548,7 +2253,7 @@ const RtkTextComposerView = class {
|
|
|
2548
2253
|
}
|
|
2549
2254
|
}
|
|
2550
2255
|
render() {
|
|
2551
|
-
return (index$1.h("div", { key: '
|
|
2256
|
+
return (index$1.h("div", { key: '3a49d368b3b798a6e423323905c4ca7f18493fd0', class: "chat-input", part: "chat-input-container" }, this.maxLengthBreached > 0 && (index$1.h("div", { key: '83c0c1c71fc5cc6f7a6bf1e6bc961665cb989104', class: 'text-error ' + (this.maxLengthBreached === this.maxLength ? 'breached' : '') }, index$1.h("rtk-icon", { key: '9fc1147d057011699bbd2ca6cf8240ed6c653e1f', id: "warning-indicator", icon: this.iconPack.warning, part: "warning-indicator" }), ' ', this.maxLengthBreached, " / ", this.maxLength, " ", this.t('chat.max_limit_warning'))), this.rateLimitBreached && (index$1.h("div", { key: '82599c564d95896d6b541f98f8167a0c193f4cf5', class: 'text-error breached' }, index$1.h("rtk-icon", { key: 'fc8984d07b8ac4aafd16d4f2388b4e93ab8feb69', id: "warning-indicator", icon: this.iconPack.warning, part: "warning-indicator" }), ' ', this.t('chat.rate_limit_error'))), index$1.h("textarea", { key: '62c972fdd2b54cf7ccfacadc32cacc8e7ceae1ca', ref: (el) => (this.$textArea = el), placeholder: this.placeholder, disabled: this.disabled, onInput: this.onInputHandler, onKeyDown: this.keyDownHandler, part: "chat-input", value: this.value })));
|
|
2552
2257
|
}
|
|
2553
2258
|
};
|
|
2554
2259
|
__decorate([
|
|
@@ -2569,7 +2274,7 @@ const RtkTextMessageView = class {
|
|
|
2569
2274
|
this.isMarkdown = false;
|
|
2570
2275
|
}
|
|
2571
2276
|
render() {
|
|
2572
|
-
return (index$1.h("p", { key: '
|
|
2277
|
+
return (index$1.h("p", { key: 'c10685a8a0339c3b8509fed80b46900c551924e6', class: { text: true, emoji: string.hasOnlyEmojis(this.text) } }, this.isMarkdown ? index$1.h("rtk-markdown-view", { text: this.text }) : this.text));
|
|
2573
2278
|
}
|
|
2574
2279
|
};
|
|
2575
2280
|
RtkTextMessageView.style = RtkTextMessageViewStyle0;
|
|
@@ -2675,7 +2380,7 @@ const RtkMenu = class {
|
|
|
2675
2380
|
});
|
|
2676
2381
|
}
|
|
2677
2382
|
render() {
|
|
2678
|
-
return (index$1.h(index$1.Host, { key: '
|
|
2383
|
+
return (index$1.h(index$1.Host, { key: 'ce9cb2211743e50c83b7f572b2e9dc5b02fa3ac8' }, index$1.h("span", { key: '74f73894f5a62519b3bf8c03a83e7102092ccd5c', part: "trigger", id: "trigger", ref: (el) => (this.triggerEl = el) }, index$1.h("slot", { key: '4551b2a438b1c57ca68e4a2973529186063a13c2' })), index$1.h("div", { key: 'e3dd196c6ee225cb363bcf54d35836ff17ed5969', part: "tooltip", class: "tooltip", id: "tooltip", role: "tooltip", ref: (el) => (this.tooltipEl = el) }, index$1.h("div", { key: '4eb8bb3af588160018ef9d8899afc09edf4b195d', id: "arrow", ref: (el) => (this.arrowEl = el), part: "arrow" }), this.label, index$1.h("slot", { key: 'c427ef3ef9953b764f9b1adcb4a8b7eee1fe91cd', name: "tooltip" }))));
|
|
2679
2384
|
}
|
|
2680
2385
|
static get watchers() { return {
|
|
2681
2386
|
"open": ["openChanged"]
|
|
@@ -2685,7 +2390,6 @@ RtkMenu.style = RtkTooltipStyle0;
|
|
|
2685
2390
|
|
|
2686
2391
|
exports.rtk_avatar = RtkAvatar;
|
|
2687
2392
|
exports.rtk_button = RtkButton;
|
|
2688
|
-
exports.rtk_channel_selector_view = RtkChannelSelectorView;
|
|
2689
2393
|
exports.rtk_chat = RtkChat;
|
|
2690
2394
|
exports.rtk_chat_composer_view = RtkChatComposerView;
|
|
2691
2395
|
exports.rtk_chat_messages_ui_paginated = RtkChatMessagesUiPaginated;
|