@cloudflare/realtimekit-ui 1.1.0-staging.3 → 1.1.0-staging.5
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/loader.cjs.js +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +1 -1
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +1 -1
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-avatar_24.cjs.entry.js +267 -247
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +4 -4
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +9 -9
- package/dist/cjs/rtk-channel-creator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-channel-details.cjs.entry.js +1 -1
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +27 -22
- package/dist/cjs/rtk-clock.cjs.entry.js +3 -3
- package/dist/cjs/rtk-controlbar.cjs.entry.js +1 -1
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +1 -1
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +8 -8
- package/dist/cjs/rtk-header.cjs.entry.js +1 -1
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +1 -1
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +1 -1
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/rtk-leave-button.cjs.entry.js +1 -1
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +1 -1
- package/dist/cjs/rtk-notification.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +14 -14
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +4 -4
- package/dist/cjs/rtk-poll_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +1 -1
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +5 -5
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +1 -1
- package/dist/cjs/rtk-transcript.cjs.entry.js +1 -1
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +1 -1
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +2 -2
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +1 -1
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +2 -2
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +29 -29
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +2 -2
- package/dist/collection/components/rtk-chat/rtk-chat.css +45 -8
- package/dist/collection/components/rtk-chat/rtk-chat.js +15 -7
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +2 -2
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +3 -3
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +3 -3
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.css +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +27 -26
- package/dist/collection/components/rtk-clock/rtk-clock.js +3 -3
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +2 -2
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
- package/dist/collection/components/rtk-header/rtk-header.js +1 -1
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +4 -4
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +3 -3
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +3 -3
- package/dist/collection/components/rtk-message-view/rtk-message-view.css +5 -1
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +23 -1
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
- package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +5 -5
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +272 -256
- package/dist/collection/components/rtk-participant/rtk-participant.js +12 -12
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
- package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
- package/dist/collection/components/rtk-polls/rtk-polls.js +3 -3
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +5 -5
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
- package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/components/{p-9f7b9764.js → p-00bb4abb.js} +6 -6
- package/dist/components/{p-5248ee44.js → p-02b840f8.js} +3 -3
- package/dist/components/{p-a54ac879.js → p-0b2b3442.js} +2 -2
- package/dist/components/p-0d472019.js +362 -0
- package/dist/components/{p-94ba6c49.js → p-0e5cc539.js} +2 -2
- package/dist/components/{p-8901c589.js → p-0f2de0f8.js} +10 -7
- package/dist/components/{p-3a3650bd.js → p-107e55c1.js} +1 -1
- package/dist/components/{p-e62d961a.js → p-1a9e3806.js} +1 -1
- package/dist/components/{p-1da75fdd.js → p-1f5a4682.js} +2 -2
- package/dist/components/{p-bb55fa0c.js → p-2309fb19.js} +2 -2
- package/dist/components/{p-ff320cbb.js → p-241a8245.js} +1 -1
- package/dist/components/{p-93069a8c.js → p-2447a26f.js} +2 -2
- package/dist/components/{p-3bc68ec4.js → p-28170a8d.js} +9 -9
- package/dist/components/{p-ffe562b1.js → p-294cda89.js} +3 -3
- package/dist/components/{p-9c88019e.js → p-2a65883d.js} +1 -1
- package/dist/components/{p-d9845780.js → p-32c6e86d.js} +36 -28
- package/dist/components/{p-0c512fd1.js → p-39e8b34a.js} +1 -1
- package/dist/components/{p-ff8753e8.js → p-3e58e0f3.js} +1 -1
- package/dist/components/{p-2e6987aa.js → p-43d6a221.js} +2 -2
- package/dist/components/{p-7e8d976d.js → p-45220ce9.js} +2 -2
- package/dist/components/{p-962c2e24.js → p-46d99dd9.js} +2 -2
- package/dist/components/{p-9ff37f98.js → p-48acb953.js} +1 -1
- package/dist/components/{p-d9b1945a.js → p-4902c5cf.js} +1 -1
- package/dist/components/{p-5ac9b786.js → p-4aede34c.js} +1 -1
- package/dist/components/{p-6366df1e.js → p-4e5a54c2.js} +10 -10
- package/dist/components/{p-8b4e32b7.js → p-4ebf9684.js} +1 -1
- package/dist/components/{p-94bd91b3.js → p-540d8eb9.js} +1 -1
- package/dist/components/{p-ad7cabcc.js → p-5476e3f3.js} +2 -2
- package/dist/components/{p-471a529a.js → p-5669b6e7.js} +4 -4
- package/dist/components/{p-626c7a5f.js → p-598dc3f2.js} +2 -2
- package/dist/components/{p-c36a303c.js → p-616ae7ab.js} +2 -2
- package/dist/components/{p-a94b2e67.js → p-6739a399.js} +2 -2
- package/dist/components/{p-ad331530.js → p-6c9a833e.js} +1 -1
- package/dist/components/{p-1614fe8f.js → p-713c7ed7.js} +3 -3
- package/dist/components/{p-222454dc.js → p-7148ec6a.js} +1 -1
- package/dist/components/{p-ef493e1b.js → p-761c0e78.js} +1 -1
- package/dist/components/{p-3b6af603.js → p-7f489600.js} +1 -1
- package/dist/components/{p-0e8ff1cc.js → p-819cb785.js} +1 -1
- package/dist/components/{p-68af4225.js → p-89025409.js} +3 -3
- package/dist/components/{p-7a04f0cc.js → p-8cfdac0d.js} +5 -5
- package/dist/components/{p-41224895.js → p-8d6b21d5.js} +3 -3
- package/dist/components/{p-6c20da11.js → p-a25f3aca.js} +2 -2
- package/dist/components/{p-d0c5e808.js → p-a51db0d6.js} +16 -16
- package/dist/components/{p-a48e2cf0.js → p-a73665b4.js} +7 -7
- package/dist/components/{p-a24156ce.js → p-a8a6496d.js} +1 -1
- package/dist/components/{p-b58a185f.js → p-ae376177.js} +14 -14
- package/dist/components/{p-01c968b1.js → p-af3b99f4.js} +2 -2
- package/dist/components/{p-d81ba93a.js → p-bb4983b8.js} +2 -2
- package/dist/components/{p-c2b64e33.js → p-c334f0e5.js} +2 -2
- package/dist/components/{p-88bef213.js → p-cf8f725b.js} +1 -1
- package/dist/components/{p-d6146a96.js → p-d765dbe4.js} +6 -6
- package/dist/components/{p-6523d14b.js → p-da9018ea.js} +6 -6
- package/dist/components/{p-0d582365.js → p-dc3143c0.js} +2 -2
- package/dist/components/{p-58b56794.js → p-e0510925.js} +1 -1
- package/dist/components/{p-5e67d672.js → p-eeb37b16.js} +1 -1
- package/dist/components/{p-f2a47b5b.js → p-fa476519.js} +5 -5
- package/dist/components/{p-fa8f6b4a.js → p-fb836f65.js} +1 -1
- package/dist/components/{p-ba788f9e.js → p-fb900e8f.js} +2 -2
- package/dist/components/{p-262671ff.js → p-fef53de3.js} +1 -1
- package/dist/components/rtk-ai-toggle.js +2 -2
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +3 -3
- 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 +2 -2
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-toggle.js +3 -3
- package/dist/components/rtk-caption-toggle.js +2 -2
- package/dist/components/rtk-channel-creator.js +4 -4
- package/dist/components/rtk-channel-details.js +1 -1
- package/dist/components/rtk-channel-header.js +4 -4
- package/dist/components/rtk-channel-selector-ui.js +4 -4
- package/dist/components/rtk-channel-selector-view.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +4 -4
- 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 +14 -14
- package/dist/components/rtk-chat-search-results.js +11 -11
- package/dist/components/rtk-chat-toggle.js +30 -26
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +3 -3
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +3 -3
- package/dist/components/rtk-dialog-manager.js +14 -14
- 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-file-dropzone.js +1 -1
- 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 +1 -1
- package/dist/components/rtk-grid.js +4 -4
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +2 -2
- 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 +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +3 -3
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +2 -2
- package/dist/components/rtk-markdown-view.js +1 -1
- package/dist/components/rtk-meeting-title.js +1 -1
- package/dist/components/rtk-meeting.js +21 -21
- 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 +4 -4
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +3 -3
- package/dist/components/rtk-mixed-grid.js +3 -3
- package/dist/components/rtk-more-toggle.js +4 -4
- package/dist/components/rtk-mute-all-button.js +3 -3
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-setup.js +2 -2
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +1 -1
- 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 +2 -2
- 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 +11 -11
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pip-toggle.js +2 -2
- package/dist/components/rtk-plugins-toggle.js +2 -2
- 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 +2 -2
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +1 -1
- package/dist/components/rtk-recording-toggle.js +2 -2
- package/dist/components/rtk-screen-share-toggle.js +3 -3
- package/dist/components/rtk-screenshare-view.js +6 -6
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +3 -3
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +3 -3
- package/dist/components/rtk-setup-screen.js +1 -1
- package/dist/components/rtk-sidebar.js +5 -5
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +2 -2
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +3 -3
- package/dist/components/rtk-stage.js +1 -1
- 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 +1 -1
- package/dist/components/rtk-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +88 -66
- package/dist/docs/docs-vscode.json +4 -0
- package/dist/esm/loader.js +397 -371
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-transcriptions.entry.js +1 -1
- package/dist/esm/rtk-audio-grid.entry.js +1 -1
- package/dist/esm/rtk-audio-visualizer_4.entry.js +1 -1
- package/dist/esm/rtk-avatar_24.entry.js +267 -247
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +4 -4
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +9 -9
- package/dist/esm/rtk-channel-creator.entry.js +2 -2
- package/dist/esm/rtk-channel-details.entry.js +1 -1
- package/dist/esm/rtk-channel-selector-ui.entry.js +2 -2
- package/dist/esm/rtk-chat-message.entry.js +2 -2
- package/dist/esm/rtk-chat-messages-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-search-results.entry.js +1 -1
- package/dist/esm/rtk-chat-toggle.entry.js +27 -22
- package/dist/esm/rtk-clock.entry.js +3 -3
- package/dist/esm/rtk-controlbar.entry.js +1 -1
- package/dist/esm/rtk-debugger-toggle.entry.js +1 -1
- package/dist/esm/rtk-file-dropzone.entry.js +1 -1
- package/dist/esm/rtk-file-message_3.entry.js +8 -8
- package/dist/esm/rtk-header.entry.js +1 -1
- package/dist/esm/rtk-idle-screen.entry.js +1 -1
- package/dist/esm/rtk-image-viewer.entry.js +1 -1
- package/dist/esm/rtk-information-tooltip.entry.js +1 -1
- package/dist/esm/rtk-leave-button.entry.js +1 -1
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +1 -1
- package/dist/esm/rtk-notification.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +14 -14
- package/dist/esm/rtk-participants-audio.entry.js +1 -1
- package/dist/esm/rtk-participants-stage-list_4.entry.js +1 -1
- package/dist/esm/rtk-plugins_2.entry.js +4 -4
- package/dist/esm/rtk-poll_2.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +1 -1
- package/dist/esm/rtk-screenshare-view.entry.js +5 -5
- package/dist/esm/rtk-settings-toggle.entry.js +1 -1
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +1 -1
- package/dist/esm/rtk-transcript.entry.js +1 -1
- package/dist/esm/rtk-waiting-screen.entry.js +1 -1
- package/dist/realtimekit-ui/{p-d2a92f27.entry.js → p-00445029.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-42989f41.entry.js → p-02c6b025.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-af6436dd.entry.js → p-0baa78d7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6ba99cc3.entry.js → p-1fe6003b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-21d4bb9c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-ed34d8a1.entry.js → p-23784be6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f19668ba.entry.js → p-2441260e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-322957ed.entry.js +1 -0
- package/dist/realtimekit-ui/{p-9ac1b986.entry.js → p-323d1aa4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-44d69c6b.entry.js +1 -0
- package/dist/realtimekit-ui/p-48c87789.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c43c2382.entry.js → p-53680d55.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5ebc57f8.entry.js → p-54a88fdf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-beedd1b5.entry.js → p-5892c1e0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b64eae39.entry.js → p-612a8d25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6437ff4e.entry.js → p-64206b62.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2f9211b9.entry.js → p-67ead213.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-29c11bdb.entry.js → p-6896e819.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-73a56e4f.entry.js → p-7a9a226e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-298befae.entry.js → p-80e51a73.entry.js} +1 -1
- package/dist/realtimekit-ui/p-820dad23.entry.js +1 -0
- package/dist/realtimekit-ui/p-83db4de1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-844143f8.entry.js → p-85b3c0c4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b4975a33.entry.js → p-8778b3e6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-447ffea0.entry.js → p-a1408db4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1a78c129.entry.js → p-a67e2a25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3d5ebc77.entry.js → p-a680da64.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b6cee65a.entry.js → p-a7172c2d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-78968008.entry.js → p-a852e0cf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-503371f7.entry.js → p-ac6c8ebe.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-132fca40.entry.js → p-b25f7d7b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-b51e813e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f6918dd7.entry.js → p-be5bdd0a.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c5f704a3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a849f2b3.entry.js → p-cc226b51.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6928aa8e.entry.js → p-cda276d6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d880fb69.entry.js +1 -0
- package/dist/realtimekit-ui/p-f457ae6f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3482a231.entry.js → p-f6c82f1b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-fa86682c.entry.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -1
- package/dist/types/components/rtk-chat-toggle/rtk-chat-toggle.d.ts +4 -6
- package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +2 -0
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +68 -53
- package/dist/types/components.d.ts +17 -5
- package/package.json +1 -1
- package/dist/components/p-8e160343.js +0 -357
- package/dist/realtimekit-ui/p-02889d02.entry.js +0 -1
- package/dist/realtimekit-ui/p-0485834f.entry.js +0 -1
- package/dist/realtimekit-ui/p-190523f5.entry.js +0 -1
- package/dist/realtimekit-ui/p-2f6fd6de.entry.js +0 -1
- package/dist/realtimekit-ui/p-3a4e302b.entry.js +0 -1
- package/dist/realtimekit-ui/p-93e9fb59.entry.js +0 -1
- package/dist/realtimekit-ui/p-a9cb6a16.entry.js +0 -1
- package/dist/realtimekit-ui/p-bf234650.entry.js +0 -1
- package/dist/realtimekit-ui/p-ce5a911d.entry.js +0 -1
- package/dist/realtimekit-ui/p-d5144f9d.entry.js +0 -1
- package/dist/realtimekit-ui/p-db831ab6.entry.js +0 -1
|
@@ -124,8 +124,8 @@ export class RtkChannelSelectorView {
|
|
|
124
124
|
'last-message': true,
|
|
125
125
|
'no-message': !channel.latestMessage,
|
|
126
126
|
} }, h("rtk-text-message-view", { isMarkdown: true, text: channel.latestMessage })))), h("div", { class: "col channel-meta" }, channel.latestMessageTime && (h("time", { class: "time" }, this.getTimeLabel(channel.latestMessageTime))), channel.unreadCount > 0 && (h("div", { class: "unread-count" }, channel.unreadCount))))));
|
|
127
|
-
})))), this.viewAs === 'dropdown' && (h("button", { key: '0c87f90d6d0fe22284995ab7259689f80a862829', class: "dropdown-trigger", onClick: this.toggleDropdown }, h("span", { key: 'd1a364f2c5c57d19702d0b8707ca661c1dc4c14f' }, this.selectedChannelId &&
|
|
128
|
-
`${this.t('to')} ${this.getChannelById(this.selectedChannelId).name}`, this.getTotalUnreads() > 0 && (h("div", { key: '
|
|
127
|
+
})))), this.viewAs === 'dropdown' && (h("button", { key: '0c87f90d6d0fe22284995ab7259689f80a862829', class: "dropdown-trigger", onClick: this.toggleDropdown }, h("span", { key: 'd1a364f2c5c57d19702d0b8707ca661c1dc4c14f' }, h("rtk-icon", { key: 'a4a028e536459fab6de2884e25b0312d2a36bc32', icon: this.iconPack.participants }), this.selectedChannelId &&
|
|
128
|
+
`${this.t('to')} ${this.getChannelById(this.selectedChannelId).name}`, this.getTotalUnreads() > 0 && (h("div", { key: '83c8efae8daed7dce4c4fdb55b523876c71a9a85', class: "unread-count" }, this.getTotalUnreads()))), h("rtk-icon", { key: '855ff62e593c7c14f448bbd5b8cf898e13d5d391', icon: this.showDropdown ? this.iconPack.chevron_up : this.iconPack.chevron_down })))));
|
|
129
129
|
}
|
|
130
130
|
static get is() { return "rtk-channel-selector-view"; }
|
|
131
131
|
static get encapsulation() { return "shadow"; }
|
|
@@ -188,30 +188,67 @@ rtk-chat-composer-view {
|
|
|
188
188
|
display: block;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
.pinned-messages {
|
|
192
|
+
position: relative;
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
}
|
|
196
|
+
|
|
191
197
|
.pinned-messages-header {
|
|
192
198
|
display: flex;
|
|
193
199
|
align-items: center;
|
|
200
|
+
justify-content: space-between;
|
|
194
201
|
gap: var(--rtk-space-2, 8px);
|
|
195
|
-
padding: var(--rtk-space-
|
|
202
|
+
padding: var(--rtk-space-4, 16px);
|
|
196
203
|
--tw-bg-opacity: 1;
|
|
197
|
-
background-color: rgba(var(--rtk-colors-background-
|
|
198
|
-
font-size:
|
|
204
|
+
background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
|
|
205
|
+
font-size: 14px;
|
|
199
206
|
cursor: pointer;
|
|
200
207
|
}
|
|
201
208
|
|
|
209
|
+
.pinned-messages-header div {
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: row;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: var(--rtk-space-2, 8px);
|
|
214
|
+
}
|
|
215
|
+
|
|
202
216
|
.pinned-messages-header rtk-icon {
|
|
203
217
|
height: var(--rtk-space-3, 12px);
|
|
204
218
|
width: var(--rtk-space-3, 12px);
|
|
205
219
|
}
|
|
206
220
|
|
|
207
|
-
.pinned-messages-
|
|
221
|
+
.pinned-messages-content {
|
|
222
|
+
--tw-border-opacity: 1;
|
|
223
|
+
border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));
|
|
208
224
|
--tw-bg-opacity: 1;
|
|
209
|
-
background-color: rgba(var(--rtk-colors-
|
|
225
|
+
background-color: rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));
|
|
226
|
+
position: absolute;
|
|
227
|
+
left: var(--rtk-space-0, 0px);
|
|
228
|
+
top: 100%;
|
|
229
|
+
z-index: 50;
|
|
230
|
+
width: 100%;
|
|
210
231
|
}
|
|
211
232
|
|
|
212
|
-
.pinned-
|
|
213
|
-
|
|
214
|
-
|
|
233
|
+
.pinned-message {
|
|
234
|
+
display: flex;
|
|
235
|
+
cursor: pointer;
|
|
236
|
+
flex-direction: row;
|
|
237
|
+
align-items: center;
|
|
238
|
+
gap: var(--rtk-space-2, 8px);
|
|
239
|
+
--tw-border-opacity: 1;
|
|
240
|
+
border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));
|
|
241
|
+
padding: var(--rtk-space-4, 16px);
|
|
242
|
+
border-bottom-width: var(--rtk-border-width-sm, 1px);
|
|
243
|
+
border-right-width: var(--rtk-border-width-none, 0);
|
|
244
|
+
border-left-width: var(--rtk-border-width-none, 0);
|
|
245
|
+
border-top-width: var(--rtk-border-width-none, 0);
|
|
246
|
+
border-style: solid;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.pinned-message-avatar {
|
|
250
|
+
height: var(--rtk-space-6, 24px) !important;
|
|
251
|
+
width: var(--rtk-space-6, 24px) !important;
|
|
215
252
|
}
|
|
216
253
|
|
|
217
254
|
@keyframes swipe-in {
|
|
@@ -302,13 +302,25 @@ export class RtkChat {
|
|
|
302
302
|
};
|
|
303
303
|
return [everyone, ...participants];
|
|
304
304
|
};
|
|
305
|
-
this.
|
|
306
|
-
|
|
305
|
+
this.getPinnedMessageLabel = (message) => {
|
|
306
|
+
if (message.type === 'text')
|
|
307
|
+
return message.message;
|
|
308
|
+
if (message.type === 'image')
|
|
309
|
+
return 'Image';
|
|
310
|
+
if (message.type === 'file')
|
|
311
|
+
return 'File';
|
|
312
|
+
return '';
|
|
307
313
|
};
|
|
308
314
|
this.renderPinnedMessagesHeader = () => {
|
|
309
315
|
if (this.meeting.chat.pinned.length === 0)
|
|
310
316
|
return null;
|
|
311
|
-
|
|
317
|
+
/**
|
|
318
|
+
* We do not display a picture against the avatar because the chatMessage API does not provide it.
|
|
319
|
+
*/
|
|
320
|
+
return (h("div", { class: "pinned-messages" }, h("div", { class: "pinned-messages-header", onClick: () => (this.showPinnedMessages = !this.showPinnedMessages) }, h("div", null, h("rtk-icon", { icon: this.iconPack.pin, size: "sm" }), this.t('chat.pinned_msgs'), ` (${this.meeting.chat.pinned.length})`), h("rtk-icon", { icon: this.showPinnedMessages ? this.iconPack.chevron_up : this.iconPack.chevron_down, size: "sm" })), this.showPinnedMessages && (h("div", { class: "pinned-messages-content" }, this.meeting.chat.pinned.map((message) => {
|
|
321
|
+
const label = this.getPinnedMessageLabel(message);
|
|
322
|
+
return (h("div", { class: "pinned-message" }, h("rtk-avatar", { class: "pinned-message-avatar", participant: { name: message.displayName, picture: '' }, size: "sm" }), h("span", null, label.length > 20 ? `${label.substring(0, 20)}...` : label)));
|
|
323
|
+
})))));
|
|
312
324
|
};
|
|
313
325
|
}
|
|
314
326
|
connectedCallback() {
|
|
@@ -462,10 +474,6 @@ export class RtkChat {
|
|
|
462
474
|
if (!this.meeting) {
|
|
463
475
|
return null;
|
|
464
476
|
}
|
|
465
|
-
let chatMessages = this.chatGroups[this.selectedGroup] || [];
|
|
466
|
-
if (this.showPinnedMessages && this.meeting.chat.pinned.length !== 0) {
|
|
467
|
-
chatMessages = chatMessages.filter((chat) => chat.type === 'chat' && chat.message.pinned);
|
|
468
|
-
}
|
|
469
477
|
return (h(Host, null, h("div", { class: "chat-container" }, h("div", { class: "chat" }, this.isFileMessagingAllowed() && (h("div", { id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, h("rtk-icon", { icon: this.iconPack.attach }), h("p", null, this.t('chat.send_attachment')))), this.renderPinnedMessagesHeader(), this.isPrivateChatSupported() && (h("rtk-channel-selector-view", { channels: this.getPrivateChatRecipients(), selectedChannelId: ((_a = this.selectedParticipant) === null || _a === void 0 ? void 0 : _a.userId) || 'everyone', onChannelChange: this.updateRecipients, t: this.t, viewAs: "dropdown" })), h("rtk-chat-messages-ui-paginated", { meeting: this.meeting, onPinMessage: this.onPinMessage, onDeleteMessage: this.onDeleteMessage, size: this.size, iconPack: this.iconPack, t: this.t }), this.renderComposerUI()))));
|
|
470
478
|
}
|
|
471
479
|
static get is() { return "rtk-chat"; }
|
|
@@ -85,11 +85,11 @@ export class RtkChatMessage {
|
|
|
85
85
|
} })));
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'f6a727c485be5af8f6213c40a9b897debac1c62d' }, h("div", { key: '03fff27269d7e3976463692e0e4f15106e4f1cc6', class: {
|
|
89
89
|
'message-wrapper': true,
|
|
90
90
|
'align-right': this.alignRight,
|
|
91
91
|
'left-align': this.leftAlign,
|
|
92
|
-
}, "is-continued": this.isContinued }, this.renderAvatar(), h("div", { key: '
|
|
92
|
+
}, "is-continued": this.isContinued }, this.renderAvatar(), h("div", { key: 'd62eaa8b99853d7c38586dc2ac1c8163ad4effcf', class: {
|
|
93
93
|
message: true,
|
|
94
94
|
'show-on-hover': !this.isTouchDevice(),
|
|
95
95
|
}, "is-continued": this.isContinued }, this.renderMessage(), this.renderControls()))));
|
|
@@ -162,7 +162,7 @@ export class RtkChatMessagesUi {
|
|
|
162
162
|
var _a;
|
|
163
163
|
let prevMessage = null;
|
|
164
164
|
let reachedFirstUnread = false;
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '1e00d65234971f64cb44cfc9f3f27523ef4184eb' }, h("div", { key: '6f1f50001914707a79782e2b035f7f056545bd73', class: "chat-container scrollbar", ref: (el) => (this.$chat = el), part: "container" }, h("div", { key: '0e2513409c533ce131341d8d636f95cde39bd1e4', class: "spacer", part: "spacer" }), h("div", { key: 'c677a4a1f80fb07f59157358aff8008d2cf52569', class: "chat", part: "chat" }, (_a = this.messages) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
166
166
|
if (item.type === 'chat') {
|
|
167
167
|
const { message } = item;
|
|
168
168
|
const isSelfMessage = message.userId === this.selfUserId;
|
|
@@ -181,10 +181,10 @@ export class RtkChatMessagesUi {
|
|
|
181
181
|
} })))), message.pinned && (h("div", { class: "pin-button", part: "pin-button" }, h("rtk-tooltip", { label: this.t('unpin') }, h("rtk-button", { kind: "icon", variant: "ghost", onClick: () => this.onMessageActionHandler('pin_message', message), disabled: !this.canPinMessages }, h("rtk-icon", { icon: this.iconPack.pin, size: "sm" }))))))));
|
|
182
182
|
}
|
|
183
183
|
return null;
|
|
184
|
-
}))), h("div", { key: '
|
|
184
|
+
}))), h("div", { key: 'b0cd46132b3cd70b784f94a8c97a3fbeef57900f', class: "show-new-messages-ctr" }, h("rtk-button", { key: 'd8faf61563052ad61ef2cc19e6f8d91993bae58d', class: {
|
|
185
185
|
'show-new-messages': true,
|
|
186
186
|
active: this.showLatestMessageButton,
|
|
187
|
-
}, kind: "icon", part: "show-new-messages", onClick: this.scrollToBottom }, h("rtk-icon", { key: '
|
|
187
|
+
}, kind: "icon", part: "show-new-messages", onClick: this.scrollToBottom }, h("rtk-icon", { key: 'ef37ed2fc35d087ac95a75393a2470ce9def4670', icon: this.iconPack.chevron_down })))));
|
|
188
188
|
}
|
|
189
189
|
static get is() { return "rtk-chat-messages-ui"; }
|
|
190
190
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js
CHANGED
|
@@ -121,9 +121,9 @@ export class RtkChatMessagesUiPaginated {
|
|
|
121
121
|
}
|
|
122
122
|
const isSelf = message.userId === this.meeting.self.userId;
|
|
123
123
|
const viewType = isSelf ? 'outgoing' : 'incoming';
|
|
124
|
-
return (h("div",
|
|
124
|
+
return (h("div", null, h("div", { class: "message-wrapper" }, h("rtk-message-view", { pinned: message.pinned, time: message.time, actions: this.getMessageActions(message), authorName: message.displayName, isSelf: isSelf, avatarUrl: displayPicture, hideAuthorName: isContinued, viewType: viewType, variant: "bubble", onAction: (event) => this.onMessageActionHandler(event.detail, message) }, h("div", null, h("div", { class: "body" }, message.type === 'text' && (h("rtk-text-message-view", { text: message.message, isMarkdown: true })), message.type === 'file' && (h("rtk-file-message-view", { name: message.name, url: message.link, size: message.size })), message.type === 'image' && (h("rtk-image-message-view", { url: message.link, onPreview: () => {
|
|
125
125
|
this.stateUpdate.emit({ image: message });
|
|
126
|
-
} })))
|
|
126
|
+
} }))))))));
|
|
127
127
|
};
|
|
128
128
|
this.chatUpdateListener = (data) => {
|
|
129
129
|
if (this.selectedChannelId && data.message.channelId !== this.selectedChannelId)
|
|
@@ -169,7 +169,7 @@ export class RtkChatMessagesUiPaginated {
|
|
|
169
169
|
this.lastReadMessageIndex = -1;
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '012b7189dfbdccfd8017cc9023263e6a7e9afd44' }, h("rtk-paginated-list", { key: '0ea37ee880fda0acdd7460b6da5f03e11ac304bf', ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getChatMessages, createNodes: this.createChatNodes, selectedItemId: this.selectedChannelId, emptyListLabel: this.t('chat.empty_channel') }, h("slot", { key: '53cb197b6d9319f470e87fe73d7ca0d158778e3f' }))));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "rtk-chat-messages-ui-paginated"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +32,7 @@ export class RtkChatSearchResults {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: 'e71457e70093c4de4d453d3905aaeedf7ef91df3' }, h("rtk-paginated-list", { key: '4a8f9360d483804ed31c512ddc9ae91454ab1c89', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer, selectedItemId: this.query })));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "rtk-chat-search-results"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
11
11
|
import { Host, h } from "@stencil/core";
|
|
12
12
|
import { defaultIconPack } from "../../lib/icons";
|
|
13
13
|
import { useLanguage } from "../../lib/lang";
|
|
14
|
-
import { usePaginatedChat } from "../../utils/flags";
|
|
15
14
|
import { canViewChat } from "../../utils/sidebar";
|
|
16
15
|
import { SyncWithStore } from "../../utils/sync-with-store";
|
|
17
16
|
/**
|
|
@@ -36,17 +35,15 @@ export class RtkChatToggle {
|
|
|
36
35
|
this.t = useLanguage();
|
|
37
36
|
this.chatActive = false;
|
|
38
37
|
this.canViewChat = false;
|
|
39
|
-
|
|
40
|
-
* Only used when paginated chat is enabled
|
|
41
|
-
*/
|
|
42
|
-
this.hasNewMessages = false;
|
|
38
|
+
this.pageSize = 11;
|
|
43
39
|
this.onChatUpdate = ({ action, message }) => {
|
|
44
40
|
var _a;
|
|
45
41
|
if (this.chatActive)
|
|
46
42
|
return;
|
|
47
43
|
if (action === 'add' && message.userId !== ((_a = this.meeting) === null || _a === void 0 ? void 0 : _a.self.userId)) {
|
|
48
|
-
this.
|
|
49
|
-
|
|
44
|
+
if (this.unreadMessageCount <= 10) {
|
|
45
|
+
this.unreadMessageCount += 1;
|
|
46
|
+
}
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
this.toggleChat = () => {
|
|
@@ -54,7 +51,6 @@ export class RtkChatToggle {
|
|
|
54
51
|
this.chatActive = !((states === null || states === void 0 ? void 0 : states.activeSidebar) && (states === null || states === void 0 ? void 0 : states.sidebar) === 'chat');
|
|
55
52
|
if (this.chatActive) {
|
|
56
53
|
this.unreadMessageCount = 0;
|
|
57
|
-
this.hasNewMessages = false;
|
|
58
54
|
}
|
|
59
55
|
this.stateUpdate.emit({
|
|
60
56
|
activeSidebar: this.chatActive,
|
|
@@ -78,27 +74,36 @@ export class RtkChatToggle {
|
|
|
78
74
|
(_f = (_e = this.meeting) === null || _e === void 0 ? void 0 : _e.self) === null || _f === void 0 ? void 0 : _f.permissions.removeListener('chatUpdate', this.updateCanView);
|
|
79
75
|
}
|
|
80
76
|
meetingChanged(meeting) {
|
|
81
|
-
var _a, _b, _c
|
|
77
|
+
var _a, _b, _c;
|
|
82
78
|
if (!meeting)
|
|
83
79
|
return;
|
|
84
|
-
|
|
85
|
-
var _a;
|
|
86
|
-
if ((_a = res === null || res === void 0 ? void 0 : res.messages) === null || _a === void 0 ? void 0 : _a.length)
|
|
87
|
-
this.hasNewMessages = true;
|
|
88
|
-
});
|
|
89
|
-
const meetingStartedTimeMs = (_c = (_b = meeting.meta) === null || _b === void 0 ? void 0 : _b.meetingStartedTimestamp.getTime()) !== null && _c !== void 0 ? _c : 0;
|
|
90
|
-
const newMessages = (_d = meeting.chat) === null || _d === void 0 ? void 0 : _d.messages.filter((m) => m.timeMs > meetingStartedTimeMs);
|
|
91
|
-
this.unreadMessageCount = newMessages.length || 0;
|
|
92
|
-
(_e = meeting.chat) === null || _e === void 0 ? void 0 : _e.addListener('chatUpdate', this.onChatUpdate);
|
|
80
|
+
this.setUnreadMessageCount();
|
|
93
81
|
this.canViewChat = canViewChat(meeting);
|
|
94
|
-
(
|
|
95
|
-
(
|
|
82
|
+
(_a = meeting.chat) === null || _a === void 0 ? void 0 : _a.addListener('chatUpdate', this.onChatUpdate);
|
|
83
|
+
(_b = meeting === null || meeting === void 0 ? void 0 : meeting.stage) === null || _b === void 0 ? void 0 : _b.on('stageStatusUpdate', this.updateCanView);
|
|
84
|
+
(_c = meeting === null || meeting === void 0 ? void 0 : meeting.self) === null || _c === void 0 ? void 0 : _c.permissions.on('chatUpdate', this.updateCanView);
|
|
96
85
|
}
|
|
97
86
|
statesChanged(states) {
|
|
98
87
|
if (states != null) {
|
|
99
88
|
this.chatActive = states.activeSidebar === true && states.sidebar === 'chat';
|
|
100
89
|
}
|
|
101
90
|
}
|
|
91
|
+
async setUnreadMessageCount() {
|
|
92
|
+
var _a, _b;
|
|
93
|
+
const chat = this.meeting.chat;
|
|
94
|
+
if (!chat)
|
|
95
|
+
return;
|
|
96
|
+
const { messages } = await chat.getMessages(new Date().getTime(), this.pageSize, true);
|
|
97
|
+
const meetingStartedTimeMs = (_b = (_a = this.meeting.meta) === null || _a === void 0 ? void 0 : _a.meetingStartedTimestamp.getTime()) !== null && _b !== void 0 ? _b : 0;
|
|
98
|
+
const newMessages = messages.filter((m) => m.timeMs > meetingStartedTimeMs);
|
|
99
|
+
if (newMessages.length === messages.length && messages.length > 0) {
|
|
100
|
+
// all messages are new, so we can't know the exact count, but we know there are at least pageSize - 1 new messages
|
|
101
|
+
this.unreadMessageCount = this.pageSize - 1;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this.unreadMessageCount = newMessages.length;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
102
107
|
handleChatActiveChange() {
|
|
103
108
|
// Chat sidebar closed without opening a different sidebar
|
|
104
109
|
if (!this.chatActive && !this.states.activeSidebar) {
|
|
@@ -110,10 +115,7 @@ export class RtkChatToggle {
|
|
|
110
115
|
return null;
|
|
111
116
|
if (!this.canViewChat)
|
|
112
117
|
return h(Host, { "data-hidden": true });
|
|
113
|
-
return (h(Host, { title: this.t('chat') },
|
|
114
|
-
? this.hasNewMessages && h("div", { class: "unread-count-dot", part: "unread-count-dot" })
|
|
115
|
-
: this.unreadMessageCount !== 0 &&
|
|
116
|
-
!this.chatActive && (h("div", { class: "unread-count", part: "unread-count" }, h("span", null, this.unreadMessageCount <= 100 ? this.unreadMessageCount : '99+'))), h("rtk-controlbar-button", { ref: (el) => (this.buttonEl = el), part: "controlbar-button", size: this.size, iconPack: this.iconPack, class: { active: this.chatActive }, onClick: this.toggleChat, icon: this.iconPack.chat, label: this.t('chat'), variant: this.variant })));
|
|
118
|
+
return (h(Host, { title: this.t('chat') }, this.unreadMessageCount !== 0 && !this.chatActive && (h("div", { class: "unread-count", part: "unread-count" }, h("span", null, this.unreadMessageCount < this.pageSize ? this.unreadMessageCount : '10+'))), h("rtk-controlbar-button", { ref: (el) => (this.buttonEl = el), part: "controlbar-button", size: this.size, iconPack: this.iconPack, class: { active: this.chatActive }, onClick: this.toggleChat, icon: this.iconPack.chat, label: this.t('chat'), variant: this.variant })));
|
|
117
119
|
}
|
|
118
120
|
static get is() { return "rtk-chat-toggle"; }
|
|
119
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -280,8 +282,7 @@ export class RtkChatToggle {
|
|
|
280
282
|
return {
|
|
281
283
|
"unreadMessageCount": {},
|
|
282
284
|
"chatActive": {},
|
|
283
|
-
"canViewChat": {}
|
|
284
|
-
"hasNewMessages": {}
|
|
285
|
+
"canViewChat": {}
|
|
285
286
|
};
|
|
286
287
|
}
|
|
287
288
|
static get events() {
|
|
@@ -71,9 +71,9 @@ export class RtkClock {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
const showClock = this.startedTime !== undefined;
|
|
74
|
-
return (h(Host, { key: '
|
|
75
|
-
h("rtk-icon", { key: '
|
|
76
|
-
h("span", { key: '
|
|
74
|
+
return (h(Host, { key: 'a389e7c6a9fc8183f3228564bfa61f606ceaf979', "data-hidden": !showClock, tabIndex: 0, role: "timer", "aria-live": "off" }, this.startedTime !== undefined && [
|
|
75
|
+
h("rtk-icon", { key: '5fe283d25031c367f018d7a99ea46ed0c0d46a86', icon: this.iconPack.clock, "aria-hidden": true, tabIndex: -1, part: "icon" }),
|
|
76
|
+
h("span", { key: 'e5e134c951f7bbb3f161ae01d88d9c83ed85c798', part: "text" }, this.getFormattedTime()),
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "rtk-clock"; }
|
|
@@ -47,7 +47,7 @@ export class RtkConfirmationModal {
|
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
49
|
const state = this.states.activeConfirmationModal;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '22ee38d06ab212134ac17a656da1251a3dc05372' }, h("div", { key: 'ed29620d69abd3202a823de32c06d7b2fb71f828', class: "leave-modal" }, h("div", { key: '07466875c79feb312e7df26cec679e62a4fc2991', class: "header" }, h("h2", { key: '4ebc7ab0dc5c2175cb234575435a30e4d1ce7a13', class: "title" }, state.header ? this.t(state.header) : this.t('cta.confirmation'))), state.content && h("p", { key: 'a9fcfa27f006dfb6ee1be60529b2c02611edc4cd', class: "message" }, this.t(state.content)), h("div", { key: '940cb8e8344bd99ba5d5266e284cc5161e666748', class: "content" }, h("div", { key: 'b8862b1db1f77121f9c2032e1f8213eeced5217d', class: "leave-meeting" }, h("rtk-button", { key: '0b4e17540009e0a465097e628904b36c54e17462', variant: "secondary", title: state.cancelText ? this.t(state.cancelText) : this.t('cancel'), onClick: this.close, class: "br-secondary-btn" }, state.cancelText ? this.t(state.cancelText) : this.t('cancel')), h("rtk-button", { key: '5f8c65ea6678c14855ece31827cb4aff714a0965', onClick: () => this.onConfirmation(), variant: (_b = (_a = this.states.activeConfirmationModal) === null || _a === void 0 ? void 0 : _a.variant) !== null && _b !== void 0 ? _b : 'danger', title: state.ctaText ? this.t(state.ctaText) : this.t('yes') }, state.ctaText ? this.t(state.ctaText) : this.t('yes')))))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "rtk-confirmation-modal"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class RtkControlbar {
|
|
|
40
40
|
iconPack: this.iconPack,
|
|
41
41
|
size: this.size,
|
|
42
42
|
};
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'f42df94eb381604cc1e4e9716e7908cab55da6b2' }, !this.disableRender && (h(Render, { key: '2c961c3e2546e7610cd2e18ea8aeaf72dbdd1075', element: "rtk-controlbar", defaults: defaults, onlyChildren: true })), h("slot", { key: '9e2a7239b36ba2f4c40bf7c7d63441c833927a97' })));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "rtk-controlbar"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class RtkCounter {
|
|
|
40
40
|
this.input = Math.max(this.minValue, parseInt(this.input) - 1).toString();
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'd30fe362d84f5e387dfe67dc761683b91785bafb' }, h("rtk-button", { key: '5c60d8e4fed3f53236b1099f8360c341df36aa32', kind: "icon", variant: "ghost", onClick: () => this.decrement() }, h("rtk-icon", { key: 'b76e7889f6d94144aa1632159c52fb9580f931f7', icon: this.iconPack.subtract })), h("input", { key: 'cfd43551b1df8dca486b1dfc4f03d427c7e32caf', type: "number", value: this.input, min: this.minValue, onInput: (e) => {
|
|
44
44
|
const val = parseInt(e.target.value, 10);
|
|
45
45
|
if (isNaN(val) || val < this.minValue) {
|
|
46
46
|
this.input = this.minValue.toString();
|
|
@@ -48,7 +48,7 @@ export class RtkCounter {
|
|
|
48
48
|
else {
|
|
49
49
|
this.input = val.toString();
|
|
50
50
|
}
|
|
51
|
-
} }), h("rtk-button", { key: '
|
|
51
|
+
} }), h("rtk-button", { key: '4cfe34a4483d12ddbd35b82a6f5d099424b24be3', kind: "icon", variant: "ghost", onClick: () => this.increment() }, h("rtk-icon", { key: 'a06553be5801039bfefb1a2c2542d01c7426a605', icon: this.iconPack.add }))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "rtk-counter"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,7 +29,7 @@ export class RtkDebuggerToggle {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '38be7c2de47b57a51bb6feedc0f8ea05801eec58', title: this.t('Troubleshooting') }, h("rtk-controlbar-button", { key: '18d8b11e7a57d4930c2d300eaeb60b9a77c45c5c', size: this.size, iconPack: this.iconPack, onClick: () => this.toggleDebugger(), icon: this.iconPack.debug, label: this.t('Troubleshooting'), variant: this.variant })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "rtk-debugger-toggle"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class RtkDraftAttachmentView {
|
|
|
53
53
|
this.onAttachmentChange();
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'f6ede093bcdf8100807baab4de2a296fc4960a07' }, h("div", { key: 'b19bbe9b2ea58ea4adccc2028a1b24ea6bc9f0a9', class: "preview-overlay" }, h("div", { key: 'cbb2bfcb3a50e6e7fbfd4109eb340ba51d6a162d', class: "preview" }, h("rtk-tooltip", { key: '15b50c547470b0fa22014e0992a1c7e26b234573', label: this.t('chat.cancel_upload') }, h("rtk-button", { key: '940332a51747af3368ffec497d5ef76fa64ecf75', variant: "secondary", kind: "icon", onClick: this.onDeleteClickHandler }, h("rtk-icon", { key: 'cc04b0ac70753e970ff638f187ad5f702dc3656b', icon: this.iconPack.dismiss }))), this.attachment.type === 'image' ? (h("img", { class: "preview-image", src: this.filePreview })) : (h("div", { class: "preview-file" }, h("span", null, this.filePreview)))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "rtk-draft-attachment-view"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class RtkEmojiPicker {
|
|
|
57
57
|
return (h("div", { id: "emoji-grid", class: "scrollbar max-w-40" }, this.filteredEmojis.map((e) => (h("rtk-button", { key: `emoji-button-${e.name}`, class: "emoji", variant: "ghost", kind: "icon", title: e.name, onClick: () => this.handleEmojiClick(e.emoji) }, e.emoji)))));
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '6581d26d75a7b869d0ba00243ec74ee06b927e7d' }, h("div", { key: '3705d8c557ac3e05769171998e9176e7e40a232c', class: 'close-parent' }, h("rtk-button", { key: 'b437e579cb828a709de255ddfa6b751e4bdfbe51', 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') }, h("rtk-icon", { key: '7fac79a21c6be57156d17ceeff9ceb2834bbf709', icon: this.iconPack.dismiss }))), h("div", { key: '46cb2af6654ef36b7258baf47e3cd9e5bd60bf89', class: 'emoji-parent' }, h("input", { key: 'cfde33638d531f9bac1b1bf25d966a369f4dfb38', value: this.filterVal, onInput: (event) => this.handleInputChange(event.target), placeholder: this.t('search'), ref: (el) => (this.inputElement = el) }), this.mapEmojiList())));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "rtk-emoji-picker"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class RtkEmojiPickerButton {
|
|
|
19
19
|
this.t = useLanguage();
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h("rtk-tooltip", { key: '
|
|
22
|
+
return (h("rtk-tooltip", { key: '45ef1f18da6d1ecc3c02882590cd22e930461562', label: this.t('chat.send_emoji') }, h("rtk-button", { key: '6504abab2f1c6537443699c53a8cbdcf13530cba', variant: "ghost", kind: "icon", class: { active: this.isActive }, title: this.t('chat.send_emoji') }, h("rtk-icon", { key: 'd730c81abce72d9c3226f1f666941e1136bee77f', icon: this.iconPack.emoji_multiple }))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "rtk-emoji-picker-button"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class RtkFileDropzone {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '6a205001d1e1e1f7c54855005cab34b81e95c9b9' }, h("div", { key: 'b87bcc6c90819127b2783665e541b69ce49f1032', id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, h("rtk-icon", { key: '1f603086a79a170a4fc3f3df53df9cfdfbae73fe', icon: this.iconPack.attach }), h("p", { key: '0b4914a3fb881006b1af20533750e6b273a82a48' }, this.t('chat.send_attachment')))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "rtk-file-dropzone"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,10 +34,10 @@ export class RtkFileMessage {
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
const link = sanitizeLink(this.message.link);
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '7e77bf95a78614fce8aac5a517e96b766d05684c' }, !this.isContinued && (h(ChatHead, { key: '2369a52afdf95e5d3850ae2e55ccf62212841797', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: '21b0fc1a24e50d2487292c812b6d37189f219fdb', class: {
|
|
38
38
|
body: true,
|
|
39
39
|
bubble: this.showBubble,
|
|
40
|
-
}, part: "body" }, h("div", { key: '
|
|
40
|
+
}, part: "body" }, h("div", { key: '8dca01f88c22a64a3b70b26ebaabdcd46afa73a7', class: "file" }, h("div", { key: 'a6bf3e516ce45acc1671df528f998ef057926539', class: "file-data" }, h("div", { key: '8680af670beb6d1fc08e0d47508667b357ff466f', class: "name" }, this.message.name), h("div", { key: '4fcd3cf05e9e14d798e04150337c93577b47104c', class: "file-data-split" }, h("div", { key: '618e81eb6011f9ebde2782f4c039fd787cba666c', class: "ext" }, getExtension(this.message.name)), h("span", { key: 'ac5faddf53f94aab3d1f8f05d8523960de8a300f', class: "divider" }), h("div", { key: 'd28b3acf0f19d99c399f008d0d41c1a8977a821f', class: "size" }, getFileSize(this.message.size)))), h("rtk-button", { key: '4f562573b8b0765a5a94c064ebb9c60e26eb9c1a', variant: "secondary", kind: "icon", onClick: () => downloadFile(link, { name: this.message.name, fallbackName: 'file' }), part: "button" }, h("rtk-icon", { key: '062a9cb80ab29f81fac9b6d76caaa5f5846d3837', icon: this.iconPack.download }))))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "rtk-file-message"; }
|
|
43
43
|
static get properties() {
|
|
@@ -22,7 +22,7 @@ export class RtkFileMessageView {
|
|
|
22
22
|
this.iconPack = defaultIconPack;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '5cc29b4780f581a2f8b045e5051bcc66f3fdaf55', class: "file" }, h("rtk-button", { key: '4100b47bc1d72f08ec5fe645291bfbb58e3a6486', variant: "secondary", kind: "icon", onClick: () => downloadFile(sanitizeLink(this.url), { name: this.name, fallbackName: 'file' }), part: "button" }, h("rtk-icon", { key: '52ae14abb7c27b89861d5ba4c907d606257628c9', icon: this.iconPack.download })), h("div", { key: '02c9ad8d173172a85cc474273a966607d456360e', class: "file-data" }, h("div", { key: '6ceca21685d04f175006ba35a6de194cc98879ad', class: "name" }, this.name), h("div", { key: 'b07d07bcaedee3fd6fbcfe81ce2f6bf757655b5f', class: "file-data-split" }, h("div", { key: '280635ef486de02bc68ca3e774be14fa5a461d1c', class: "ext" }, getExtension(this.name)), h("span", { key: '84f72d8b37b7d15c257faed036b76c737eec780b', class: "divider" }), h("div", { key: '1b88f48f51afe3fceb57920c3d17f586e848a25f', class: "size" }, getFileSize(this.size))))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "rtk-file-message-view"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class RtkFilePickerButton {
|
|
|
44
44
|
render() {
|
|
45
45
|
const label = this.label || this.t('chat.send_file');
|
|
46
46
|
const icon = this.iconPack[this.icon];
|
|
47
|
-
return (h("rtk-tooltip", { key: '
|
|
47
|
+
return (h("rtk-tooltip", { key: '057a0a5a714dbbde228e3481e53adea4f88fb3ad', label: label }, h("rtk-button", { key: '04193df1053b14687fb9464a122b9158707bdda1', variant: "ghost", kind: "icon", onClick: () => this.uploadFile(), title: label }, h("rtk-icon", { key: 'ed2fce30b93dfce9dd6b967d5993c93496cf3388', icon: icon }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "rtk-file-picker-button"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class RtkHeader {
|
|
|
40
40
|
iconPack: this.iconPack,
|
|
41
41
|
size: this.size,
|
|
42
42
|
};
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'cc998eacd57a6ab5492229b6eb900caf9aa6cfaa' }, !this.disableRender && h(Render, { key: 'c8bfb68227fcea6955c7e4d07cfe3d1eb9d7906d', element: "rtk-header", defaults: defaults, onlyChildren: true }), h("slot", { key: '50848506efeeccf7a6bd4539d65374eb64279d17' })));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "rtk-header"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class RtkIdleScreen {
|
|
|
27
27
|
this.t = useLanguage();
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '9542c3ce51e79f077f59e3c260884b117ee8d327' }, h("slot", { key: 'b0d7e6f916ef6bc00eb77c89a6ee6c4f55fe81c5' }, h("div", { key: '028702fec102195179abb5ad93803478cda2cd4d', class: "ctr", part: "container" }, h("rtk-logo", { key: '5fa9163f969de1ee7f9f02b585138e16d583bf2b', meeting: this.meeting, config: this.config, t: this.t, part: "logo" }), h("rtk-spinner", { key: 'cbf0b91e0455cb2be65059766d6eb713674f2dcb', "aria-label": "Idle, waiting for meeting data", part: "spinner", iconPack: this.iconPack })))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "rtk-idle-screen"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,10 +34,10 @@ export class RtkImageMessage {
|
|
|
34
34
|
this.status = 'loading';
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '4d83696c62cb30b3c50201c054aed059f9d087fb' }, !this.isContinued && (h(ChatHead, { key: 'b1f8ca2684e487f9f51106562af2fb7bb7d0ae5e', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: '0ffd97ca74224fb7e464b5bbde3d79c8b11c6105', class: {
|
|
38
38
|
body: true,
|
|
39
39
|
bubble: this.showBubble,
|
|
40
|
-
}, part: "body" }, h("div", { key: '
|
|
40
|
+
}, part: "body" }, h("div", { key: 'de64e6fff4b952e08eea1895f6b02ce6de7ea528', class: { image: true, loaded: this.status === 'loaded' } }, h("img", { key: 'fae1d0126e403da11c8d4aeb036ad29484af2bf6', src: sanitizeLink(this.message.link), onLoad: () => {
|
|
41
41
|
this.status = 'loaded';
|
|
42
42
|
}, onError: () => {
|
|
43
43
|
this.status = 'errored';
|
|
@@ -45,9 +45,9 @@ export class RtkImageMessage {
|
|
|
45
45
|
if (this.status === 'loaded') {
|
|
46
46
|
this.stateUpdate.emit({ image: this.message });
|
|
47
47
|
}
|
|
48
|
-
} }), this.status === 'loading' && (h("div", { key: '
|
|
48
|
+
} }), this.status === 'loading' && (h("div", { key: 'b5e4c17c94f065f06a513d8601564ca6512d38a9', class: "image-spinner", title: this.t('chat.img.loading'), "aria-label": this.t('chat.img.loading') }, h("rtk-spinner", { key: '4819886ed836fc94d35b48fd2f185bed2f142db6', iconPack: this.iconPack }))), this.status === 'errored' && (h("div", { key: '7d2381426f1867524b59963d025ed6728d0bee34', class: "image-errored", title: this.t('chat.error.img_not_found'), "aria-label": this.t('chat.error.img_not_found') }, h("rtk-icon", { key: 'abe064f6b5ecf9740611362c8c836a1fcf886223', icon: this.iconPack.image_off }))), this.status === 'loaded' && (h("div", { key: '863b9db15ee68f5bd5939b70f7b24f215b250a19', class: "actions" }, h("rtk-button", { key: '6b9d6e415a485fbbe8844a38a3b2d2401aa7ad22', class: "action", variant: "secondary", kind: "icon", onClick: () => {
|
|
49
49
|
this.stateUpdate.emit({ image: this.message });
|
|
50
|
-
} }, h("rtk-icon", { key: '
|
|
50
|
+
} }, h("rtk-icon", { key: 'a40d297b50b7667b08b9a5d08223b7326c3314be', icon: this.iconPack.full_screen_maximize })), h("rtk-button", { key: 'cb344d52dbcc0c6a55da8017b5664b8a160dd339', class: "action", variant: "secondary", kind: "icon", onClick: () => downloadFile(this.message.link, { fallbackName: 'image' }) }, h("rtk-icon", { key: 'e4a5cee14a5fae2496930dbbdaa3199a6b2d9b6b', icon: this.iconPack.download }))))))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "rtk-image-message"; }
|
|
53
53
|
static get originalStyleUrls() {
|
|
@@ -25,7 +25,7 @@ export class RtkImageMessageView {
|
|
|
25
25
|
this.status = 'loading';
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: '066606e6ae62634b2466bb46b453e0c2d91b17ea', class: { image: true, loaded: this.status === 'loaded' } }, h("img", { key: 'f042e5d3c1a6341e9fc0845e6643016f1be5b5f7', src: sanitizeLink(this.url), onLoad: () => {
|
|
29
29
|
this.status = 'loaded';
|
|
30
30
|
}, onError: () => {
|
|
31
31
|
this.status = 'errored';
|
|
@@ -33,9 +33,9 @@ export class RtkImageMessageView {
|
|
|
33
33
|
if (this.status === 'loaded') {
|
|
34
34
|
this.onPreview.emit(this.url);
|
|
35
35
|
}
|
|
36
|
-
} }), this.status === 'loading' && (h("div", { key: '
|
|
36
|
+
} }), this.status === 'loading' && (h("div", { key: 'd4a5030468fbf70afae62bd55ae4d0fa989e15c2', class: "image-spinner", title: this.t('chat.img.loading'), "aria-label": this.t('chat.img.loading') }, h("rtk-spinner", { key: '216aba361a46cc100e7d26cc2daf1ffb0948d695', iconPack: this.iconPack }))), this.status === 'errored' && (h("div", { key: '01f5da8f70872c9fa22dc9a9b70b046b0001d05b', class: "image-errored", title: this.t('chat.error.img_not_found'), "aria-label": this.t('chat.error.img_not_found') }, h("rtk-icon", { key: '0f7e6fed2730f6366d07fc6afddb2b247e9b7d3a', icon: this.iconPack.image_off }))), this.status === 'loaded' && (h("div", { key: '5ac0e61c65a88a8d6b9ee54c900b856854d1b84b', class: "actions" }, h("rtk-button", { key: 'fd83dfecd7b5d9c3976374c3c55731b1f026fc0a', class: "action", variant: "secondary", kind: "icon", onClick: () => {
|
|
37
37
|
this.onPreview.emit(this.url);
|
|
38
|
-
} }, h("rtk-icon", { key: '
|
|
38
|
+
} }, h("rtk-icon", { key: '3ca7384fa28e6716345acacf9225ae9471ff8d63', icon: this.iconPack.full_screen_maximize })), h("rtk-button", { key: '198787808c389e4df48d3609a53c2d27cf2e7fb3', class: "action", variant: "secondary", kind: "icon", onClick: () => downloadFile(this.url, { fallbackName: 'image' }) }, h("rtk-icon", { key: 'f38fe3da48d1fc854001c719164c95f0673808c5', icon: this.iconPack.download }))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "rtk-image-message-view"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class RtkImageViewer {
|
|
|
39
39
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'd3d145c8bd304fbe0e9420e7746ea15872772f3b', class: "scrollbar", onClick: (e) => e.stopPropagation() }, h("div", { key: '3f9ceed6d177439c39438dbb6ac60d08d630bf0e', class: "header" }, h("div", { key: '3944264dcf9903e55b544bda02dfa8d6643ba3ff', class: "shared-by-user" }, this.t('chat.img.shared_by'), ' ', h("span", { key: '540b69c4f1abdd437a003fa4ba9c9ddf8aa71dd8', class: "displayName" }, formatName(shorten(this.image.displayName)))), h("div", { key: 'ed632e11bcdf8fa46a2c1bd0f6b02884ee635b5a', class: "actions" }, h("rtk-button", { key: '677ef4df0f7235a27c925b1e742a61222c90049f', onClick: () => downloadFile(this.image.link, { fallbackName: 'image' }) }, h("rtk-icon", { key: '2479f3a5e2f9eff5359d377625d06337b2023e8c', icon: this.iconPack.download, slot: "start" }), "Download"), h("rtk-button", { key: '6ff009deb6e385481254e9fa6a7ae30f1676cff0', kind: "icon", variant: "secondary", onClick: () => this.close.emit() }, h("rtk-icon", { key: '6ad51918f8e76980f61c02c10b9a2cccfe5a2a7f', icon: this.iconPack.dismiss })))), h("div", { key: '5fd522972d26d9b4815ffe37d2d418b784e751ae', class: "image-ctr" }, h("img", { key: 'a45df563ecdf79e020e3269f6fd055aee27cfab0', src: this.image.link }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "rtk-image-viewer"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|