@cloudflare/realtimekit-ui 1.1.0-staging.10 → 1.1.0-staging.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/{ChatHead-e13f3b0e.js → ChatHead-777e6a2d.js} +1 -1
- package/dist/cjs/{TextMessage-1dc6f8b9.js → TextMessage-b9322340.js} +2 -2
- package/dist/cjs/{chat-2ae6f058.js → chat-f1a9fd6e.js} +1 -16
- package/dist/cjs/{config-0a88d50b.js → config-86164f93.js} +2 -2
- package/dist/cjs/{debounce-b06b27ca.js → debounce-267777c1.js} +1 -1
- package/dist/cjs/index-2e5758b6.js +4403 -0
- package/dist/cjs/{index-821d14b7.js → index-6f8c1928.js} +1 -1
- package/dist/cjs/{index-e4244d7d.js → index-92947ea7.js} +2 -2
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{merge-c46cfa17.js → merge-bb096d88.js} +1 -1
- package/dist/cjs/{notification-f3750b61.js → notification-ef397c71.js} +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +30 -3
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +5 -5
- package/dist/cjs/rtk-ai.cjs.entry.js +3 -3
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +5 -5
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +3 -3
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +4 -4
- package/dist/cjs/{rtk-avatar_24.cjs.entry.js → rtk-avatar_26.cjs.entry.js} +538 -555
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +8 -8
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +13 -13
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +4 -4
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +11 -25
- package/dist/cjs/rtk-chat-message.cjs.entry.js +6 -6
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +13 -7
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +4 -4
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +4 -4
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +9 -5
- package/dist/cjs/rtk-clock.cjs.entry.js +6 -6
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-controlbar.cjs.entry.js +5 -5
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +3 -3
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +4 -4
- package/dist/cjs/rtk-dialog.cjs.entry.js +4 -4
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +3 -3
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +4 -4
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +14 -14
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +4 -4
- package/dist/cjs/rtk-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-header.cjs.entry.js +5 -5
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +4 -4
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +4 -4
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/rtk-leave-button.cjs.entry.js +4 -4
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2477 -1450
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-logo.cjs.entry.js +3 -3
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +3 -3
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +7 -7
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -5
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-name-tag.cjs.entry.js +4 -4
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +3 -3
- package/dist/cjs/rtk-notification.cjs.entry.js +7 -7
- package/dist/cjs/rtk-notifications.cjs.entry.js +5 -5
- package/dist/cjs/rtk-participant-count.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +5 -5
- package/dist/cjs/rtk-participant_2.cjs.entry.js +19 -19
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +4 -4
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +5 -5
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-participants.cjs.entry.js +4 -4
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +7 -7
- package/dist/cjs/rtk-poll_2.cjs.entry.js +6 -6
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +4 -4
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +8 -8
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-settings.cjs.entry.js +3 -3
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +5 -5
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +6 -6
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +3 -3
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-stage.cjs.entry.js +4 -4
- package/dist/cjs/rtk-transcript.cjs.entry.js +4 -4
- package/dist/cjs/rtk-transcripts.cjs.entry.js +3 -3
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +3 -3
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +4 -4
- package/dist/cjs/{sidebar-0eb1e4ef.js → sidebar-7df66d80.js} +1 -1
- package/dist/cjs/{ui-store-6c2d680f.js → ui-store-d0e80f30.js} +113 -34
- package/dist/collection/collection-manifest.json +4 -6
- package/dist/collection/components/rtk-ai/rtk-ai.js +3 -3
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +3 -3
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +3 -3
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +4 -4
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +4 -4
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +3 -3
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +3 -3
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +3 -3
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +5 -5
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +4 -4
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +4 -4
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +5 -5
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +3 -3
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +3 -3
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +3 -3
- package/dist/collection/components/rtk-chat/rtk-chat.css +2 -37
- package/dist/collection/components/rtk-chat/rtk-chat.js +27 -385
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -51
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
- package/dist/collection/components/{rtk-channel-details/rtk-channel-details.css → rtk-chat-header/rtk-chat-header.css} +28 -46
- package/dist/collection/components/rtk-chat-header/rtk-chat-header.js +32 -0
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.css +0 -2
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +9 -9
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.css +0 -2
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +6 -6
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +91 -96
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +4 -4
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.css +142 -0
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +421 -0
- 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 +8 -4
- package/dist/collection/components/rtk-clock/rtk-clock.js +5 -5
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +4 -4
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +4 -4
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.css +0 -2
- package/dist/collection/components/rtk-counter/rtk-counter.js +4 -4
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +3 -3
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +3 -3
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +3 -3
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +3 -3
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +4 -4
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +3 -3
- package/dist/collection/components/rtk-dialog/rtk-dialog.css +1 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +3 -3
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +3 -3
- 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.css +0 -2
- 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 +3 -3
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +3 -3
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +5 -5
- 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 +3 -3
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.css +0 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +3 -3
- package/dist/collection/components/rtk-header/rtk-header.js +4 -4
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +4 -4
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +7 -7
- 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 +4 -4
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -2
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +4 -4
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +3 -3
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +5 -5
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +3 -3
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +3 -3
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +3 -3
- package/dist/collection/components/rtk-logo/rtk-logo.js +2 -2
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +3 -3
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +3 -3
- package/dist/collection/components/rtk-menu/rtk-menu.js +4 -4
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +1 -1
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +3 -3
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +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 +3 -3
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +3 -3
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +3 -3
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +5 -5
- 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 +3 -3
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +4 -4
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +5 -5
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +4 -4
- package/dist/collection/components/rtk-notification/rtk-notification.js +4 -4
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +3 -3
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +4 -4
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +88 -2
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +50 -27
- package/dist/collection/components/rtk-participant/rtk-participant.js +16 -16
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +3 -3
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +5 -5
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +5 -5
- package/dist/collection/components/rtk-participants/rtk-participants.js +3 -3
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +4 -4
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +4 -4
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +3 -3
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +3 -3
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +3 -3
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +3 -3
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +4 -4
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.css +112 -0
- package/dist/collection/components/{rtk-channel-header/rtk-channel-header.js → rtk-pinned-message-selector/rtk-pinned-message-selector.js} +181 -118
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +3 -3
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +5 -5
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +4 -4
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +3 -3
- package/dist/collection/components/rtk-poll/rtk-poll.js +5 -5
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +4 -4
- package/dist/collection/components/rtk-polls/rtk-polls.js +6 -6
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +3 -3
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +4 -4
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +3 -3
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +3 -3
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +9 -9
- package/dist/collection/components/rtk-settings/rtk-settings.js +3 -3
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +3 -3
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +3 -3
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +3 -3
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +0 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +3 -3
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +3 -3
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +3 -3
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +3 -3
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +2 -2
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +5 -5
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +3 -3
- package/dist/collection/components/rtk-stage/rtk-stage.js +3 -3
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +3 -3
- package/dist/collection/components/rtk-switch/rtk-switch.js +3 -3
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +3 -3
- 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 +5 -5
- 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 +2 -2
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +3 -3
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +3 -3
- 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 +4 -4
- package/dist/collection/lib/icons/default-icon-pack.js +0 -2
- package/dist/collection/lib/lang/default-language.js +2 -5
- package/dist/collection/lib/overrides.js +1 -0
- package/dist/collection/utils/chat.js +0 -4
- package/dist/collection/utils/flags.js +0 -2
- package/dist/components/index.js +8 -8
- package/dist/components/{p-e375b50d.js → p-06de876f.js} +7 -7
- package/dist/components/{p-6c02b0d0.js → p-08351fd6.js} +8 -8
- package/dist/components/{p-44c32349.js → p-0a36cb4b.js} +11 -11
- package/dist/components/{p-dab9d3d6.js → p-0db812c2.js} +1 -12
- package/dist/components/{p-f0e4633e.js → p-1099c0fe.js} +5 -5
- package/dist/components/{p-eeb37b16.js → p-12b59b72.js} +5 -5
- package/dist/components/{p-fb836f65.js → p-15156a2c.js} +2 -2
- package/dist/components/{p-43bf8953.js → p-154bed23.js} +6 -6
- package/dist/components/{p-c05530c8.js → p-1b26fbf7.js} +3 -3
- package/dist/components/{p-7bde2b2d.js → p-2232de67.js} +2482 -1455
- package/dist/components/{p-fb900e8f.js → p-22827c53.js} +6 -6
- package/dist/components/{p-ad873f2d.js → p-2305aa2d.js} +1 -1
- package/dist/components/{p-6f8d2043.js → p-2690645d.js} +3 -3
- package/dist/components/{p-e64e3cec.js → p-2976fcb0.js} +8 -8
- package/dist/components/p-321a4aef.js +86 -0
- package/dist/components/{p-586482a8.js → p-345a07e8.js} +8 -8
- package/dist/components/{p-dfb42075.js → p-401ce922.js} +5 -5
- package/dist/components/{p-72fffe3e.js → p-41bf1c3d.js} +5 -5
- package/dist/components/{p-5f1b84f7.js → p-45a9a385.js} +11 -11
- package/dist/components/{p-3972098e.js → p-469f4396.js} +15 -15
- package/dist/components/{p-92729e09.js → p-4942bfd2.js} +9 -9
- package/dist/components/{p-dd89aff2.js → p-4a1144e2.js} +8 -8
- package/dist/components/{p-46d99dd9.js → p-4a5d3b4c.js} +7 -7
- package/dist/components/{p-74356882.js → p-52d9029f.js} +9 -9
- package/dist/components/p-54e0acc1.js +463 -0
- package/dist/components/{p-da87cc71.js → p-583f9282.js} +1 -1
- package/dist/components/{p-ecb016da.js → p-6ac87493.js} +6 -6
- package/dist/components/{p-f6c2e822.js → p-6e373d96.js} +4 -4
- package/dist/components/{p-aae4c250.js → p-707dced6.js} +2 -2
- package/dist/components/{p-1afc54bb.js → p-71fb663b.js} +4 -4
- package/dist/components/{p-fefc57f9.js → p-71fbfb8b.js} +7 -7
- package/dist/components/{p-282e8e83.js → p-7384c20c.js} +9 -9
- package/dist/components/{p-35e93724.js → p-73db39b8.js} +2 -2
- package/dist/components/{p-193d8051.js → p-76c443b7.js} +3 -3
- package/dist/components/{p-44a203bd.js → p-793f074d.js} +36 -15
- package/dist/components/{p-19b037c5.js → p-7adb3504.js} +5 -5
- package/dist/components/{p-b6869c32.js → p-7f3bfc54.js} +6 -6
- package/dist/components/p-7fcbd2dd.js +236 -0
- package/dist/components/{p-7a27fdb5.js → p-862ec1f9.js} +10 -10
- package/dist/components/{p-39e8b34a.js → p-8861d5a3.js} +4 -4
- package/dist/components/{p-6392204c.js → p-88aded7d.js} +11 -11
- package/dist/components/{p-7148ec6a.js → p-8a66a347.js} +5 -5
- package/dist/components/{p-05df465d.js → p-8cea6257.js} +1 -1
- package/dist/components/{p-cf8f725b.js → p-90420dc5.js} +3 -3
- package/dist/components/{p-600579a6.js → p-95a1fa70.js} +5 -5
- package/dist/components/{p-e72a0f16.js → p-9e1478a0.js} +7 -7
- package/dist/components/{p-977f9875.js → p-9f481b70.js} +5 -5
- package/dist/components/{p-73baf5ba.js → p-a3cc7425.js} +1 -1
- package/dist/components/{p-fa5aba68.js → p-a4d13056.js} +22 -22
- package/dist/components/{p-107e55c1.js → p-a6c93f34.js} +5 -5
- package/dist/components/{p-e552dc59.js → p-a74caccd.js} +4 -4
- package/dist/components/{p-33be3c19.js → p-a8d77615.js} +16 -16
- package/dist/components/{p-2309fb19.js → p-abf952f5.js} +5 -5
- package/dist/components/{p-e57e8041.js → p-ac6a5fc5.js} +7 -7
- package/dist/components/{p-d9f6db4f.js → p-af2b1476.js} +8 -8
- package/dist/components/{p-b76e3950.js → p-b226a124.js} +7 -7
- package/dist/components/{p-1a9e3806.js → p-b2d5329f.js} +5 -5
- package/dist/components/{p-89151c7a.js → p-b3240843.js} +5 -5
- package/dist/components/{p-1da807a2.js → p-bfc86230.js} +4 -4
- package/dist/components/{p-a54b82e9.js → p-c0790538.js} +1 -1
- package/dist/components/{p-395ef9c8.js → p-c0ad28ff.js} +9 -9
- package/dist/components/{p-d188f58b.js → p-c6c4c24e.js} +4 -4
- package/dist/components/{p-9bdc24b8.js → p-c9db1b82.js} +5 -5
- package/dist/components/{p-fb7666ce.js → p-cd6656bf.js} +8 -8
- package/dist/components/{p-819cb785.js → p-cd6f04ae.js} +5 -5
- package/dist/components/{p-f7bd10f1.js → p-d029dd2f.js} +8 -8
- package/dist/components/{p-dc3143c0.js → p-d0f54eea.js} +3 -3
- package/dist/components/{p-edd12f2f.js → p-d22fc130.js} +7 -7
- package/dist/components/{p-abdff498.js → p-d2cbc2d1.js} +11 -11
- package/dist/components/{p-851b90a6.js → p-d6024528.js} +4 -4
- package/dist/components/{p-7b6356e2.js → p-d9626191.js} +6 -6
- package/dist/components/p-d9fa18db.js +218 -0
- package/dist/components/{p-0a31ef52.js → p-dacaa250.js} +3 -3
- package/dist/components/{p-e4888ccc.js → p-db5556c3.js} +81 -58
- package/dist/components/{p-7c8096c2.js → p-dd8a892e.js} +5 -5
- package/dist/components/{p-e443d803.js → p-dfdbb665.js} +5 -5
- package/dist/components/{p-524d7900.js → p-e0ef3893.js} +7 -7
- package/dist/components/{p-1391bef0.js → p-e229128b.js} +1 -1
- package/dist/components/{p-6f7c46d2.js → p-e334e15c.js} +2 -2
- package/dist/components/{p-5476e3f3.js → p-e544a590.js} +6 -6
- package/dist/components/{p-2447a26f.js → p-e7b7abfe.js} +5 -5
- package/dist/components/{p-45b4f6a1.js → p-ecbb4e46.js} +7 -7
- package/dist/components/{p-6f361314.js → p-eff3c856.js} +6 -6
- package/dist/components/{p-e847fee9.js → p-f19b4abc.js} +114 -35
- package/dist/components/{p-60fdbd75.js → p-f3c261ec.js} +1 -1
- package/dist/components/{p-6739a399.js → p-f5aecaad.js} +3 -3
- package/dist/components/{p-89eb65a9.js → p-fa8cf270.js} +3 -3
- package/dist/components/p-fdad14c9.js +4028 -0
- package/dist/components/{p-3e58e0f3.js → p-fe0d125b.js} +4 -4
- package/dist/components/rtk-ai-toggle.js +6 -6
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +6 -6
- package/dist/components/rtk-audio-grid.js +5 -5
- package/dist/components/rtk-audio-tile.js +7 -7
- 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 +6 -6
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-button.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +7 -7
- package/dist/components/rtk-caption-toggle.js +6 -6
- package/dist/components/rtk-chat-composer-ui.js +17 -34
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/{rtk-channel-header.d.ts → rtk-chat-header.d.ts} +4 -4
- package/dist/components/rtk-chat-header.js +6 -0
- 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 +26 -20
- package/dist/components/rtk-chat-search-results.js +16 -16
- package/dist/components/rtk-chat-selector-ui.js +5 -5
- package/dist/components/{rtk-channel-creator.d.ts → rtk-chat-selector.d.ts} +4 -4
- package/dist/components/rtk-chat-selector.js +6 -0
- package/dist/components/rtk-chat-toggle.js +12 -8
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +7 -7
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +5 -5
- 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 +7 -7
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +26 -26
- 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 +5 -5
- package/dist/components/rtk-file-dropzone.js +5 -5
- 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 +7 -7
- package/dist/components/rtk-grid.js +12 -12
- package/dist/components/rtk-header.js +5 -5
- package/dist/components/rtk-icon.js +1 -1
- package/dist/components/rtk-idle-screen.js +7 -7
- 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 +6 -6
- package/dist/components/rtk-information-tooltip.js +5 -5
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +7 -7
- 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 +6 -6
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-markdown-view.js +1 -1
- package/dist/components/rtk-meeting-title.js +4 -4
- package/dist/components/rtk-meeting.js +59 -47
- 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 +8 -8
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +7 -7
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +10 -10
- package/dist/components/rtk-more-toggle.js +8 -8
- package/dist/components/rtk-mute-all-button.js +7 -7
- 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 +4 -4
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +8 -8
- 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 +4 -4
- package/dist/components/rtk-participant-setup.js +5 -5
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +7 -7
- 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 +7 -7
- 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 +17 -17
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pinned-message-selector.d.ts +11 -0
- package/dist/components/rtk-pinned-message-selector.js +6 -0
- package/dist/components/rtk-pip-toggle.js +6 -6
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +7 -7
- 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 +7 -7
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +5 -5
- package/dist/components/rtk-recording-toggle.js +6 -6
- package/dist/components/rtk-screen-share-toggle.js +7 -7
- package/dist/components/rtk-screenshare-view.js +11 -11
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +7 -7
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +13 -13
- package/dist/components/rtk-setup-screen.js +11 -11
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +13 -13
- package/dist/components/rtk-simple-grid.js +4 -4
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +6 -6
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +7 -7
- package/dist/components/rtk-stage.js +4 -4
- 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 +4 -4
- package/dist/components/rtk-ui-provider.js +3 -3
- 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 +5 -5
- package/dist/docs/docs-components.json +10739 -18036
- package/dist/docs/docs-vscode.json +46 -108
- package/dist/esm/{ChatHead-15c2f8d4.js → ChatHead-148558a8.js} +1 -1
- package/dist/esm/{TextMessage-0d8be8c5.js → TextMessage-cdf76ced.js} +2 -2
- package/dist/esm/{chat-b2bea75f.js → chat-12f27725.js} +2 -13
- package/dist/esm/{config-325caca3.js → config-74c02ff0.js} +2 -2
- package/dist/esm/{debounce-3139f9e3.js → debounce-0c6e63e9.js} +1 -1
- package/dist/esm/{index-d31a2e33.js → index-3f51790f.js} +1 -1
- package/dist/esm/index-55463a54.js +4365 -0
- package/dist/esm/{index-6eb882e7.js → index-e677f28b.js} +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/loader.js +6360 -3546
- package/dist/esm/{merge-bc2a0775.js → merge-df16b7d2.js} +1 -1
- package/dist/esm/{notification-4beb1e0d.js → notification-dd8b1d52.js} +1 -1
- package/dist/esm/realtimekit-ui.js +31 -4
- package/dist/esm/rtk-ai-toggle.entry.js +3 -3
- package/dist/esm/rtk-ai-transcriptions.entry.js +5 -5
- package/dist/esm/rtk-ai.entry.js +3 -3
- package/dist/esm/rtk-audio-grid.entry.js +5 -5
- package/dist/esm/rtk-audio-tile.entry.js +3 -3
- package/dist/esm/rtk-audio-visualizer_4.entry.js +4 -4
- package/dist/esm/{rtk-avatar_24.entry.js → rtk-avatar_26.entry.js} +536 -555
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +8 -8
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +13 -13
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +3 -3
- package/dist/esm/rtk-camera-selector_2.entry.js +4 -4
- package/dist/esm/rtk-camera-toggle.entry.js +3 -3
- package/dist/esm/rtk-caption-toggle.entry.js +3 -3
- package/dist/esm/rtk-chat-composer-ui.entry.js +11 -25
- package/dist/esm/rtk-chat-message.entry.js +6 -6
- package/dist/esm/rtk-chat-messages-ui.entry.js +13 -7
- package/dist/esm/rtk-chat-search-results.entry.js +4 -4
- package/dist/esm/rtk-chat-selector-ui.entry.js +4 -4
- package/dist/esm/rtk-chat-toggle.entry.js +9 -5
- package/dist/esm/rtk-clock.entry.js +6 -6
- package/dist/esm/rtk-controlbar-button.entry.js +3 -3
- package/dist/esm/rtk-controlbar.entry.js +5 -5
- package/dist/esm/rtk-debugger-audio_4.entry.js +3 -3
- package/dist/esm/rtk-debugger-toggle.entry.js +4 -4
- package/dist/esm/rtk-dialog-manager.entry.js +4 -4
- package/dist/esm/rtk-dialog.entry.js +4 -4
- package/dist/esm/rtk-ended-screen.entry.js +3 -3
- package/dist/esm/rtk-file-dropzone.entry.js +4 -4
- package/dist/esm/rtk-file-message_3.entry.js +14 -14
- package/dist/esm/rtk-fullscreen-toggle.entry.js +3 -3
- package/dist/esm/rtk-grid-pagination.entry.js +4 -4
- package/dist/esm/rtk-grid.entry.js +4 -4
- package/dist/esm/rtk-header.entry.js +5 -5
- package/dist/esm/rtk-idle-screen.entry.js +4 -4
- package/dist/esm/rtk-image-viewer.entry.js +4 -4
- package/dist/esm/rtk-information-tooltip.entry.js +4 -4
- package/dist/esm/rtk-leave-button.entry.js +4 -4
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2477 -1450
- package/dist/esm/rtk-livestream-toggle.entry.js +3 -3
- package/dist/esm/rtk-logo.entry.js +3 -3
- package/dist/esm/rtk-meeting-title.entry.js +3 -3
- package/dist/esm/rtk-message-list-view.entry.js +7 -7
- package/dist/esm/rtk-mic-toggle.entry.js +3 -3
- package/dist/esm/rtk-mixed-grid.entry.js +4 -4
- package/dist/esm/rtk-more-toggle.entry.js +5 -5
- package/dist/esm/rtk-mute-all-button.entry.js +3 -3
- package/dist/esm/rtk-name-tag.entry.js +4 -4
- package/dist/esm/rtk-network-indicator.entry.js +3 -3
- package/dist/esm/rtk-notification.entry.js +7 -7
- package/dist/esm/rtk-notifications.entry.js +5 -5
- package/dist/esm/rtk-participant-count.entry.js +3 -3
- package/dist/esm/rtk-participant-setup.entry.js +5 -5
- package/dist/esm/rtk-participant_2.entry.js +19 -19
- package/dist/esm/rtk-participants-audio.entry.js +4 -4
- package/dist/esm/rtk-participants-stage-list_4.entry.js +5 -5
- package/dist/esm/rtk-participants-toggle.entry.js +4 -4
- package/dist/esm/rtk-participants.entry.js +4 -4
- package/dist/esm/rtk-pip-toggle.entry.js +3 -3
- package/dist/esm/rtk-plugin-main_2.entry.js +3 -3
- package/dist/esm/rtk-plugins-toggle.entry.js +4 -4
- package/dist/esm/rtk-plugins_2.entry.js +7 -7
- package/dist/esm/rtk-poll_2.entry.js +6 -6
- package/dist/esm/rtk-polls-toggle.entry.js +4 -4
- package/dist/esm/rtk-recording-indicator.entry.js +4 -4
- package/dist/esm/rtk-recording-toggle.entry.js +3 -3
- package/dist/esm/rtk-screen-share-toggle.entry.js +3 -3
- package/dist/esm/rtk-screenshare-view.entry.js +8 -8
- package/dist/esm/rtk-settings-audio_2.entry.js +3 -3
- package/dist/esm/rtk-settings-toggle.entry.js +4 -4
- package/dist/esm/rtk-settings.entry.js +3 -3
- package/dist/esm/rtk-setup-screen.entry.js +5 -5
- package/dist/esm/rtk-sidebar-ui.entry.js +3 -3
- package/dist/esm/rtk-sidebar.entry.js +5 -5
- package/dist/esm/rtk-simple-grid.entry.js +4 -4
- package/dist/esm/rtk-spotlight-grid.entry.js +6 -6
- package/dist/esm/rtk-spotlight-indicator.entry.js +3 -3
- package/dist/esm/rtk-stage-toggle.entry.js +3 -3
- package/dist/esm/rtk-stage.entry.js +4 -4
- package/dist/esm/rtk-transcript.entry.js +4 -4
- package/dist/esm/rtk-transcripts.entry.js +3 -3
- package/dist/esm/rtk-ui-provider.entry.js +3 -3
- package/dist/esm/rtk-waiting-screen.entry.js +4 -4
- package/dist/esm/{sidebar-376c9917.js → sidebar-293fd302.js} +1 -1
- package/dist/esm/{ui-store-12132d9c.js → ui-store-644e4cb0.js} +114 -35
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/p-01ef7b4d.entry.js +1 -0
- package/dist/realtimekit-ui/p-06dcd55e.entry.js +1 -0
- package/dist/realtimekit-ui/p-0c3f571f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-30dcb4cc.entry.js → p-0cfee5d3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-10d4354c.entry.js +1 -0
- package/dist/realtimekit-ui/p-14dc10b8.entry.js +1 -0
- package/dist/realtimekit-ui/p-1517b428.entry.js +1 -0
- package/dist/realtimekit-ui/{p-6914a616.entry.js → p-15297e89.entry.js} +1 -1
- package/dist/realtimekit-ui/p-1e16ecb3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-af58f450.entry.js → p-1feec027.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-00445029.entry.js → p-2251059d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-25f3e66a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-e0c73820.entry.js → p-26b4e422.entry.js} +1 -1
- package/dist/realtimekit-ui/p-29549a05.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a852e0cf.entry.js → p-29d3f735.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-532e1a53.entry.js → p-2b47921e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2f93d90b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-afa7211c.js → p-2ff77d78.js} +1 -1
- package/dist/realtimekit-ui/{p-c5f704a3.entry.js → p-309b8a96.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fcb7a6e2.entry.js → p-30a3007c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9b550ec4.js → p-315cd380.js} +1 -1
- package/dist/realtimekit-ui/{p-a67e2a25.entry.js → p-36f7accb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-05d1b9d5.entry.js → p-3ec85ff3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-14569a57.entry.js → p-40ab8b0f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-be5bdd0a.entry.js → p-43fa4d95.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-426bf45e.entry.js → p-4814e742.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-616dc312.entry.js → p-4a5e203d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a7172c2d.entry.js → p-4e604bf1.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4ec77793.js +1 -0
- package/dist/realtimekit-ui/{p-e78ba202.entry.js → p-50aaac81.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-323d1aa4.entry.js → p-5a425dac.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1834416c.entry.js → p-5ef7cf76.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-85b3c0c4.entry.js → p-60b3fbb2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c8773db0.entry.js → p-6573487e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-67c674d4.entry.js +1 -0
- package/dist/realtimekit-ui/p-6acdcb4f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-cb54bd67.entry.js → p-6c2ef845.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0baa78d7.entry.js → p-6f913b9b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-71393f37.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a7e0277f.js → p-77e5605f.js} +1 -1
- package/dist/realtimekit-ui/{p-f6c82f1b.entry.js → p-8329d4ae.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8778b3e6.entry.js → p-84476389.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-342b4926.entry.js → p-879459bb.entry.js} +1 -1
- package/dist/realtimekit-ui/p-8cc26ae0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2441260e.entry.js → p-8e867ba8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-8fc79c56.js +1 -0
- package/dist/realtimekit-ui/p-9599b2e4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7d01d588.entry.js → p-975cbc2e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9ff0dfdb.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f32aecbc.entry.js → p-a43a7ffb.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a599f720.js +2 -0
- package/dist/realtimekit-ui/p-abbee273.entry.js +1 -0
- package/dist/realtimekit-ui/p-ad11a64a.entry.js +1 -0
- package/dist/realtimekit-ui/p-aee32120.entry.js +1 -0
- package/dist/realtimekit-ui/{p-515a17ce.entry.js → p-b0eaeddc.entry.js} +1 -1
- package/dist/realtimekit-ui/p-b5e5e206.js +1 -0
- package/dist/realtimekit-ui/p-bb907330.entry.js +1 -0
- package/dist/realtimekit-ui/{p-5b00a8fa.entry.js → p-bbaf3e7d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a1408db4.entry.js → p-be0cae77.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-11a469d9.js → p-be0d2b90.js} +1 -1
- package/dist/realtimekit-ui/{p-94a37c73.entry.js → p-bea3ee08.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ebfde234.entry.js → p-c0e5ddd4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1fe6003b.entry.js → p-c794adf9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c7ddf9a9.entry.js +1 -0
- package/dist/realtimekit-ui/{p-44d69c6b.entry.js → p-c8239122.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c8f0b23e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-573187b4.entry.js → p-cbbb09a2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-80e51a73.entry.js → p-cbfe61b9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cc226b51.entry.js → p-cc71c33f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ad5e9fdb.entry.js → p-cd086077.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6896e819.entry.js → p-cedff249.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d107248e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a40cc665.entry.js → p-d10fe6c7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d1256212.entry.js +1 -0
- package/dist/realtimekit-ui/p-d24dd330.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4b33b435.entry.js → p-d3d4e6de.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d432c842.entry.js +1 -0
- package/dist/realtimekit-ui/p-d6126ff7.js +1 -0
- package/dist/realtimekit-ui/p-d8e64814.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d3e520e5.js → p-ddcb6b8b.js} +1 -1
- package/dist/realtimekit-ui/{p-4485414e.entry.js → p-de253745.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-369648b9.entry.js → p-de2fd3a4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3dd04263.entry.js → p-e6fc5935.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c8eaa707.js → p-eccb6d78.js} +1 -1
- package/dist/realtimekit-ui/p-f1c4d507.entry.js +1 -0
- package/dist/realtimekit-ui/{p-fa86682c.entry.js → p-f42001bb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a0d39ea3.entry.js → p-f423e125.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f46787e0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f266302c.entry.js → p-f4e8a0b3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cd0c5440.js → p-f6fdb3c3.js} +1 -1
- package/dist/realtimekit-ui/p-f8089097.entry.js +1 -0
- package/dist/realtimekit-ui/p-fc0eb2e6.entry.js +1 -0
- package/dist/realtimekit-ui/p-ff86148c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-cd56beb7.entry.js → p-ffac36ba.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +5 -43
- package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +1 -4
- package/dist/types/components/rtk-chat-header/rtk-chat-header.d.ts +7 -0
- package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +6 -15
- package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +52 -0
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +4 -2
- package/dist/types/components/rtk-pinned-message-selector/rtk-pinned-message-selector.d.ts +40 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +0 -2
- package/dist/types/components.d.ts +186 -498
- 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/lib/overrides.d.ts +5 -0
- 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 -2
- package/package.json +1 -1
- package/dist/cjs/index-05554ce6.js +0 -2251
- 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.js +0 -149
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +0 -99
- 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-210862ae.js +0 -736
- package/dist/components/p-33e73313.js +0 -85
- package/dist/components/p-c3592601.js +0 -1641
- package/dist/components/p-c78c26b1.js +0 -203
- 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.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/index-c1fb98bb.js +0 -2218
- 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-0ee570cd.js +0 -2
- package/dist/realtimekit-ui/p-1462cbd9.entry.js +0 -1
- package/dist/realtimekit-ui/p-1669c53d.entry.js +0 -1
- 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-43530cd3.entry.js +0 -1
- package/dist/realtimekit-ui/p-44531a97.entry.js +0 -1
- package/dist/realtimekit-ui/p-45f90b95.js +0 -1
- package/dist/realtimekit-ui/p-48c87789.entry.js +0 -1
- package/dist/realtimekit-ui/p-4b638184.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-5892c1e0.entry.js +0 -1
- package/dist/realtimekit-ui/p-5b2d97fc.js +0 -1
- package/dist/realtimekit-ui/p-612a8d25.entry.js +0 -1
- package/dist/realtimekit-ui/p-639601b7.entry.js +0 -1
- package/dist/realtimekit-ui/p-64206b62.entry.js +0 -1
- package/dist/realtimekit-ui/p-67ead213.entry.js +0 -1
- package/dist/realtimekit-ui/p-685adc5f.entry.js +0 -1
- package/dist/realtimekit-ui/p-701cdf1b.entry.js +0 -1
- package/dist/realtimekit-ui/p-7108d1cd.entry.js +0 -1
- package/dist/realtimekit-ui/p-75f53ae6.entry.js +0 -1
- package/dist/realtimekit-ui/p-7a9a226e.entry.js +0 -1
- package/dist/realtimekit-ui/p-820dad23.entry.js +0 -1
- package/dist/realtimekit-ui/p-85b45c3b.entry.js +0 -1
- package/dist/realtimekit-ui/p-95fb25d6.entry.js +0 -1
- package/dist/realtimekit-ui/p-a5900df2.js +0 -1
- package/dist/realtimekit-ui/p-a680da64.entry.js +0 -1
- package/dist/realtimekit-ui/p-a9190330.entry.js +0 -1
- package/dist/realtimekit-ui/p-ac6c8ebe.entry.js +0 -1
- package/dist/realtimekit-ui/p-b25f7d7b.entry.js +0 -1
- package/dist/realtimekit-ui/p-b51e813e.entry.js +0 -1
- package/dist/realtimekit-ui/p-be03944b.entry.js +0 -1
- package/dist/realtimekit-ui/p-bf717b8c.entry.js +0 -1
- package/dist/realtimekit-ui/p-cda276d6.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/realtimekit-ui/p-ec5ed8a4.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
|
@@ -1,736 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as createEvent, h, e as Host } from './p-c3592601.js';
|
|
2
|
-
import { c as createDefaultConfig, e as defaultIconPack, i as useLanguage, f as defaultOverrides, L as FlagsmithFeatureFlags } from './p-e847fee9.js';
|
|
3
|
-
import { h as handleFilesDataTransfer, g as generateChatGroupKey, T as TEMPORARY_CHANNEL_PREFIX, i as isDirectMessageChannel, d as alphabeticalSorter, f as getDMComparator, j as parseMessageForTarget } from './p-dab9d3d6.js';
|
|
4
|
-
import { c as chatUnreadTimestamps } from './p-a83ccdbd.js';
|
|
5
|
-
import { S as SyncWithStore } from './p-6f7c46d2.js';
|
|
6
|
-
import { d as defineCustomElement$m } from './p-9bdc24b8.js';
|
|
7
|
-
import { d as defineCustomElement$l } from './p-1391bef0.js';
|
|
8
|
-
import { d as defineCustomElement$k } from './p-c78c26b1.js';
|
|
9
|
-
import { d as defineCustomElement$j } from './p-3972098e.js';
|
|
10
|
-
import { d as defineCustomElement$i } from './p-e4888ccc.js';
|
|
11
|
-
import { d as defineCustomElement$h } from './p-524d7900.js';
|
|
12
|
-
import { d as defineCustomElement$g } from './p-f7bd10f1.js';
|
|
13
|
-
import { d as defineCustomElement$f } from './p-e72a0f16.js';
|
|
14
|
-
import { d as defineCustomElement$e } from './p-43bf8953.js';
|
|
15
|
-
import { d as defineCustomElement$d } from './p-e375b50d.js';
|
|
16
|
-
import { d as defineCustomElement$c } from './p-73baf5ba.js';
|
|
17
|
-
import { d as defineCustomElement$b } from './p-282e8e83.js';
|
|
18
|
-
import { d as defineCustomElement$a } from './p-cf8f725b.js';
|
|
19
|
-
import { d as defineCustomElement$9 } from './p-2447a26f.js';
|
|
20
|
-
import { d as defineCustomElement$8 } from './p-819cb785.js';
|
|
21
|
-
import { d as defineCustomElement$7 } from './p-7148ec6a.js';
|
|
22
|
-
import { d as defineCustomElement$6 } from './p-7a27fdb5.js';
|
|
23
|
-
import { d as defineCustomElement$5 } from './p-44a203bd.js';
|
|
24
|
-
import { d as defineCustomElement$4 } from './p-e443d803.js';
|
|
25
|
-
import { d as defineCustomElement$3 } from './p-19b037c5.js';
|
|
26
|
-
import { d as defineCustomElement$2 } from './p-6739a399.js';
|
|
27
|
-
import { d as defineCustomElement$1 } from './p-fb836f65.js';
|
|
28
|
-
|
|
29
|
-
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";
|
|
30
|
-
const RtkChatStyle0 = rtkChatCss;
|
|
31
|
-
|
|
32
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
33
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
35
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
36
|
-
else
|
|
37
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
38
|
-
if (d = decorators[i])
|
|
39
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
-
};
|
|
42
|
-
const RtkChat = /*@__PURE__*/ proxyCustomElement(class RtkChat extends H {
|
|
43
|
-
constructor() {
|
|
44
|
-
super();
|
|
45
|
-
this.__registerHost();
|
|
46
|
-
this.__attachShadow();
|
|
47
|
-
this.stateUpdate = createEvent(this, "rtkStateUpdate", 7);
|
|
48
|
-
this.chatUpdateListener = ({ message }) => {
|
|
49
|
-
if (message.channelId)
|
|
50
|
-
return;
|
|
51
|
-
if (!this.displayFilter || this.displayFilter(message)) {
|
|
52
|
-
this.addToChatGroup(message);
|
|
53
|
-
// shallow copy to trigger render
|
|
54
|
-
this.chatGroups = Object.assign({}, this.chatGroups);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
this.chatPermissionUpdateListener = () => {
|
|
58
|
-
this.canSend = this.meeting.self.permissions.chatPublic.canSend;
|
|
59
|
-
this.canSendTextMessage = this.meeting.self.permissions.chatPublic.text;
|
|
60
|
-
this.canSendFiles = this.meeting.self.permissions.chatPublic.files;
|
|
61
|
-
};
|
|
62
|
-
/** Config */
|
|
63
|
-
this.config = createDefaultConfig();
|
|
64
|
-
/** Icon pack */
|
|
65
|
-
this.iconPack = defaultIconPack;
|
|
66
|
-
/** Language */
|
|
67
|
-
this.t = useLanguage();
|
|
68
|
-
/** UI Overrides */
|
|
69
|
-
this.overrides = defaultOverrides;
|
|
70
|
-
/** disables private chat */
|
|
71
|
-
this.disablePrivateChat = false;
|
|
72
|
-
/** Can current user pin/unpin messages */
|
|
73
|
-
this.canPinMessages = false;
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated
|
|
76
|
-
* Beta API, will change in future
|
|
77
|
-
* List of target presets allowed as private chat recipient
|
|
78
|
-
*/
|
|
79
|
-
this.privatePresetFilter = [];
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated
|
|
82
|
-
* Beta API, will change in future
|
|
83
|
-
* A filter function for messages to be displayed
|
|
84
|
-
*/
|
|
85
|
-
this.displayFilter = undefined;
|
|
86
|
-
this.unreadCountGroups = {};
|
|
87
|
-
this.chatGroups = { everyone: [] };
|
|
88
|
-
this.selectedGroup = 'everyone';
|
|
89
|
-
this.now = new Date();
|
|
90
|
-
this.dropzoneActivated = false;
|
|
91
|
-
this.showLatestMessageButton = false;
|
|
92
|
-
this.canSend = false;
|
|
93
|
-
this.canSendTextMessage = false;
|
|
94
|
-
this.canSendFiles = false;
|
|
95
|
-
this.canPrivateMessage = false;
|
|
96
|
-
this.canSendPrivateTexts = false;
|
|
97
|
-
this.canSendPrivateFiles = false;
|
|
98
|
-
this.emojiPickerEnabled = false;
|
|
99
|
-
this.chatRecipientId = 'everyone';
|
|
100
|
-
this.participants = [];
|
|
101
|
-
this.channels = [];
|
|
102
|
-
this.editingMessage = null;
|
|
103
|
-
this.replyMessage = null;
|
|
104
|
-
this.searchQuery = '';
|
|
105
|
-
this.selectorState = 'hide';
|
|
106
|
-
this.creatingChannel = false;
|
|
107
|
-
this.isSendingMessage = false;
|
|
108
|
-
this.showPinnedMessages = false;
|
|
109
|
-
this.channelMap = new Map();
|
|
110
|
-
this.onDragOver = (e) => {
|
|
111
|
-
e.preventDefault();
|
|
112
|
-
this.dropzoneActivated = true;
|
|
113
|
-
};
|
|
114
|
-
this.onDragLeave = () => {
|
|
115
|
-
this.dropzoneActivated = false;
|
|
116
|
-
};
|
|
117
|
-
this.onDrop = (e) => {
|
|
118
|
-
e.preventDefault();
|
|
119
|
-
this.dropzoneActivated = false;
|
|
120
|
-
handleFilesDataTransfer(e.dataTransfer.items, (type, file) => {
|
|
121
|
-
var _a, _b, _c, _d;
|
|
122
|
-
switch (type) {
|
|
123
|
-
case 'image':
|
|
124
|
-
if (this.isFileMessagingAllowed()) {
|
|
125
|
-
(_b = (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.chat) === null || _b === void 0 ? void 0 : _b.sendImageMessage(file, this.getRecipientPeerIds());
|
|
126
|
-
}
|
|
127
|
-
break;
|
|
128
|
-
case 'file':
|
|
129
|
-
if (this.isFileMessagingAllowed()) {
|
|
130
|
-
(_d = (_c = this.meeting) === null || _c === void 0 ? void 0 : _c.chat) === null || _d === void 0 ? void 0 : _d.sendFileMessage(file, this.getRecipientPeerIds());
|
|
131
|
-
}
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
this.disconnectMeeting = (meeting) => {
|
|
137
|
-
var _a, _b, _c, _d, _e, _f;
|
|
138
|
-
if (this.isPrivateChatSupported()) {
|
|
139
|
-
meeting === null || meeting === void 0 ? void 0 : meeting.participants.joined.removeListener('participantJoined', this.onParticipantUpdate);
|
|
140
|
-
meeting === null || meeting === void 0 ? void 0 : meeting.participants.joined.removeListener('participantLeft', this.onParticipantUpdate);
|
|
141
|
-
}
|
|
142
|
-
(_a = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _a === void 0 ? void 0 : _a.removeListener('chatUpdate', this.chatUpdateListener);
|
|
143
|
-
(_b = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _b === void 0 ? void 0 : _b.removeListener('channelCreate', this.onChannelCreateOrUpdate);
|
|
144
|
-
(_c = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _c === void 0 ? void 0 : _c.removeListener('channelUpdate', this.onChannelCreateOrUpdate);
|
|
145
|
-
(_d = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _d === void 0 ? void 0 : _d.removeListener('channelMessageUpdate', this.onChannelCreateOrUpdate);
|
|
146
|
-
(_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);
|
|
147
|
-
meeting.self.permissions.removeListener('*', this.chatPermissionUpdateListener);
|
|
148
|
-
};
|
|
149
|
-
this.getFilteredParticipants = () => {
|
|
150
|
-
if (this.privatePresetFilter.length === 0)
|
|
151
|
-
return this.participants;
|
|
152
|
-
return this.participants.filter((p) => this.privatePresetFilter.includes(p.presetName));
|
|
153
|
-
};
|
|
154
|
-
this.onParticipantUpdate = () => {
|
|
155
|
-
this.participants = this.meeting.participants.joined
|
|
156
|
-
.toArray()
|
|
157
|
-
.filter((p) => this.privatePresetFilter.length === 0 || this.privatePresetFilter.includes(p.presetName));
|
|
158
|
-
// if selected participant leaves, reset state to everyone
|
|
159
|
-
if (this.selectedParticipant && !this.participants.includes(this.selectedParticipant)) {
|
|
160
|
-
this.selectedParticipant = null;
|
|
161
|
-
this.chatRecipientId = this.selectedGroup = 'everyone';
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
this.updateUnreadCountGroups = (obj) => {
|
|
165
|
-
this.unreadCountGroups = Object.assign(Object.assign({}, this.unreadCountGroups), obj);
|
|
166
|
-
};
|
|
167
|
-
this.isPrivateChatSupported = () => {
|
|
168
|
-
return this.canPrivateMessage && !this.disablePrivateChat;
|
|
169
|
-
};
|
|
170
|
-
this.updateRecipients = (event) => {
|
|
171
|
-
const { id } = event.detail;
|
|
172
|
-
this.chatRecipientId = id;
|
|
173
|
-
this.selectedParticipant = this.participants.find((p) => p.userId === id);
|
|
174
|
-
if (this.chatRecipientId !== 'everyone') {
|
|
175
|
-
const allParticipants = [this.chatRecipientId, this.meeting.self.userId];
|
|
176
|
-
const targetKey = generateChatGroupKey(allParticipants);
|
|
177
|
-
this.selectedGroup = targetKey;
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
this.selectedGroup = 'everyone';
|
|
181
|
-
}
|
|
182
|
-
this.updateUnreadCountGroups({ [this.selectedGroup]: 0 });
|
|
183
|
-
};
|
|
184
|
-
this.isTextMessagingAllowed = () => {
|
|
185
|
-
if (this.chatRecipientId === 'everyone') {
|
|
186
|
-
// public chat
|
|
187
|
-
return this.canSend && this.canSendTextMessage;
|
|
188
|
-
}
|
|
189
|
-
// private chat
|
|
190
|
-
return this.canPrivateMessage && this.canSendPrivateTexts;
|
|
191
|
-
};
|
|
192
|
-
this.isFileMessagingAllowed = () => {
|
|
193
|
-
if (this.chatRecipientId === 'everyone') {
|
|
194
|
-
// public chat
|
|
195
|
-
return this.canSend && this.canSendFiles;
|
|
196
|
-
}
|
|
197
|
-
// private chat
|
|
198
|
-
return this.canPrivateMessage && this.canSendPrivateFiles;
|
|
199
|
-
};
|
|
200
|
-
this.onChannelChanged = (e) => {
|
|
201
|
-
const channel = e.detail;
|
|
202
|
-
if (channel.id.includes(TEMPORARY_CHANNEL_PREFIX)) {
|
|
203
|
-
this.createDMChannel(channel.id.replace(TEMPORARY_CHANNEL_PREFIX, ''));
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
this.selectedChannelId = channel.id;
|
|
207
|
-
}
|
|
208
|
-
this.cleanup();
|
|
209
|
-
if (this.selectorState !== 'desktop') {
|
|
210
|
-
this.selectorState = 'hide';
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
this.createDMChannel = async (memberId) => {
|
|
214
|
-
this.creatingChannel = true;
|
|
215
|
-
const newChannel = await this.meeting.chat.createChannel('Direct Message', [memberId], {
|
|
216
|
-
visibility: 'private',
|
|
217
|
-
isDirectMessage: true,
|
|
218
|
-
});
|
|
219
|
-
this.creatingChannel = false;
|
|
220
|
-
this.selectedChannelId = newChannel.id;
|
|
221
|
-
};
|
|
222
|
-
this.cleanup = () => {
|
|
223
|
-
this.editingMessage = null;
|
|
224
|
-
this.replyMessage = null;
|
|
225
|
-
this.searchQuery = '';
|
|
226
|
-
};
|
|
227
|
-
this.onQuotedMessageDismiss = () => {
|
|
228
|
-
this.replyMessage = null;
|
|
229
|
-
};
|
|
230
|
-
this.onChannelCreateOrUpdate = (channel) => {
|
|
231
|
-
if (channel) {
|
|
232
|
-
this.channelMap.set(channel.id, channel);
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
this.meeting.chat.channels.forEach((chan) => this.channelMap.set(chan.id, chan));
|
|
236
|
-
}
|
|
237
|
-
const allChannels = Array.from(this.channelMap.values());
|
|
238
|
-
const channels = allChannels
|
|
239
|
-
.filter((channel) => !isDirectMessageChannel(channel))
|
|
240
|
-
.sort((a, b) => alphabeticalSorter(a.displayName, b.displayName));
|
|
241
|
-
const membersWithChannel = allChannels.filter(isDirectMessageChannel).map((channel) => {
|
|
242
|
-
return Object.assign(Object.assign({}, channel), { displayName: this.getMemberDisplayName(channel) });
|
|
243
|
-
});
|
|
244
|
-
const membersWithoutChannel = this.meeting.participants.all
|
|
245
|
-
.toArray()
|
|
246
|
-
.filter((member) => {
|
|
247
|
-
if (member.userId === this.meeting.self.userId)
|
|
248
|
-
return false;
|
|
249
|
-
const matcher = getDMComparator([this.meeting.self.userId, member.userId]);
|
|
250
|
-
return membersWithChannel.every((channel) => getDMComparator(channel.memberIds) !== matcher);
|
|
251
|
-
})
|
|
252
|
-
.map((member) => {
|
|
253
|
-
return {
|
|
254
|
-
id: `${TEMPORARY_CHANNEL_PREFIX}${member.userId}`,
|
|
255
|
-
displayName: member.name,
|
|
256
|
-
displayPictureUrl: member.picture,
|
|
257
|
-
isDirectMessage: true,
|
|
258
|
-
unreadCount: 0,
|
|
259
|
-
};
|
|
260
|
-
});
|
|
261
|
-
const dms = [...membersWithChannel, ...membersWithoutChannel].sort((a, b) => alphabeticalSorter(a.displayName, b.displayName));
|
|
262
|
-
this.channels = [...channels, ...dms];
|
|
263
|
-
// select channel only if it is created in db
|
|
264
|
-
const nonTemporaryChannel = [...channels, ...membersWithChannel];
|
|
265
|
-
if (!this.selectedChannelId && nonTemporaryChannel.length !== 0) {
|
|
266
|
-
this.selectedChannelId = nonTemporaryChannel[0].id;
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
this.getMemberDisplayName = (channel) => {
|
|
270
|
-
var _a;
|
|
271
|
-
let id;
|
|
272
|
-
if (channel.memberIds.length === 1) {
|
|
273
|
-
// channel with self
|
|
274
|
-
id = channel.memberIds[0];
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
id =
|
|
278
|
-
channel.memberIds[0] === this.meeting.self.userId
|
|
279
|
-
? channel.memberIds[1]
|
|
280
|
-
: channel.memberIds[0];
|
|
281
|
-
}
|
|
282
|
-
const member = this.meeting.participants.all.toArray().find((member) => member.userId === id);
|
|
283
|
-
return (_a = member === null || member === void 0 ? void 0 : member.name) !== null && _a !== void 0 ? _a : id;
|
|
284
|
-
};
|
|
285
|
-
this.onNewMessageHandler = async (e) => {
|
|
286
|
-
const message = e.detail;
|
|
287
|
-
this.isSendingMessage = true;
|
|
288
|
-
try {
|
|
289
|
-
await this.meeting.chat.sendMessage(message, this.getRecipientPeerIds());
|
|
290
|
-
}
|
|
291
|
-
finally {
|
|
292
|
-
this.isSendingMessage = false;
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
this.onEditMessageHandler = async (e) => {
|
|
296
|
-
var _a, _b;
|
|
297
|
-
this.isSendingMessage = true;
|
|
298
|
-
try {
|
|
299
|
-
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, this.editingMessage.channelId));
|
|
300
|
-
}
|
|
301
|
-
finally {
|
|
302
|
-
this.isSendingMessage = false;
|
|
303
|
-
this.editingMessage = null;
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
this.onEditCancel = () => {
|
|
307
|
-
this.editingMessage = null;
|
|
308
|
-
};
|
|
309
|
-
this.onPinMessage = (event) => {
|
|
310
|
-
const message = event.detail;
|
|
311
|
-
if (message.pinned) {
|
|
312
|
-
this.meeting.chat.unpin(message.id);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
this.meeting.chat.pin(message.id);
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
this.onDeleteMessage = (event) => {
|
|
319
|
-
var _a;
|
|
320
|
-
const message = event.detail;
|
|
321
|
-
if (((_a = this.editingMessage) === null || _a === void 0 ? void 0 : _a.id) === message.id) {
|
|
322
|
-
this.editingMessage = null;
|
|
323
|
-
}
|
|
324
|
-
try {
|
|
325
|
-
if (typeof localStorage !== 'undefined') {
|
|
326
|
-
const keysToRemove = [];
|
|
327
|
-
for (let i = 0; i < localStorage.length; i++) {
|
|
328
|
-
const key = localStorage.key(i);
|
|
329
|
-
if (key && key.startsWith('rtk-chat-edit-') && key.endsWith(`-${message.id}`)) {
|
|
330
|
-
keysToRemove.push(key);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
keysToRemove.forEach((key) => localStorage.removeItem(key));
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
catch (_b) {
|
|
337
|
-
// ignore storage access errors
|
|
338
|
-
}
|
|
339
|
-
this.meeting.chat.deleteMessage(message.id);
|
|
340
|
-
};
|
|
341
|
-
this.onMessageEdit = (event) => {
|
|
342
|
-
const message = event.detail;
|
|
343
|
-
if (message.type !== 'text')
|
|
344
|
-
return;
|
|
345
|
-
this.replyMessage = null;
|
|
346
|
-
this.editingMessage = message;
|
|
347
|
-
};
|
|
348
|
-
this.getPrivateChatRecipients = () => {
|
|
349
|
-
const participants = this.getFilteredParticipants().map((participant) => {
|
|
350
|
-
const key = generateChatGroupKey([participant.userId, this.meeting.self.userId]);
|
|
351
|
-
const result = {
|
|
352
|
-
id: participant.userId,
|
|
353
|
-
name: participant.name,
|
|
354
|
-
avatarUrl: participant.picture,
|
|
355
|
-
unreadCount: this.unreadCountGroups[key],
|
|
356
|
-
};
|
|
357
|
-
return result;
|
|
358
|
-
});
|
|
359
|
-
const everyone = {
|
|
360
|
-
id: 'everyone',
|
|
361
|
-
name: this.t('chat.everyone'),
|
|
362
|
-
icon: 'participants',
|
|
363
|
-
unreadCount: this.unreadCountGroups['everyone'],
|
|
364
|
-
};
|
|
365
|
-
return [everyone, ...participants];
|
|
366
|
-
};
|
|
367
|
-
this.getPinnedMessageLabel = (message) => {
|
|
368
|
-
if (message.type === 'text')
|
|
369
|
-
return message.message;
|
|
370
|
-
if (message.type === 'image')
|
|
371
|
-
return 'Image';
|
|
372
|
-
if (message.type === 'file')
|
|
373
|
-
return 'File';
|
|
374
|
-
return '';
|
|
375
|
-
};
|
|
376
|
-
this.renderPinnedMessagesHeader = () => {
|
|
377
|
-
if (this.meeting.chat.pinned.length === 0)
|
|
378
|
-
return null;
|
|
379
|
-
/**
|
|
380
|
-
* We do not display a picture against the avatar because the chatMessage API does not provide it.
|
|
381
|
-
*/
|
|
382
|
-
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 scrollbar" }, this.meeting.chat.pinned.map((message) => {
|
|
383
|
-
const label = this.getPinnedMessageLabel(message);
|
|
384
|
-
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)));
|
|
385
|
-
})))));
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
connectedCallback() {
|
|
389
|
-
if (!this.meeting)
|
|
390
|
-
return;
|
|
391
|
-
this.meetingChanged(this.meeting);
|
|
392
|
-
if (this.meeting && !this.meeting.chat) {
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
if (this.isFileMessagingAllowed()) {
|
|
396
|
-
this.host.addEventListener('dragover', this.onDragOver);
|
|
397
|
-
this.host.addEventListener('dragleave', this.onDragLeave);
|
|
398
|
-
this.host.addEventListener('drop', this.onDrop);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
onEditMessageInit(event) {
|
|
402
|
-
if (event.detail.flags.isReply) {
|
|
403
|
-
this.replyMessage = event.detail.payload;
|
|
404
|
-
}
|
|
405
|
-
else if (event.detail.flags.isEdit) {
|
|
406
|
-
this.editingMessage = event.detail.payload;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
disconnectedCallback() {
|
|
410
|
-
var _a;
|
|
411
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
412
|
-
this.disconnectMeeting(this.meeting);
|
|
413
|
-
this.host.removeEventListener('dragover', this.onDragOver);
|
|
414
|
-
this.host.removeEventListener('dragleave', this.onDragLeave);
|
|
415
|
-
this.host.removeEventListener('drop', this.onDrop);
|
|
416
|
-
}
|
|
417
|
-
meetingChanged(meeting, oldMeeting) {
|
|
418
|
-
var _a, _b, _c, _d, _e, _f;
|
|
419
|
-
if (oldMeeting != undefined)
|
|
420
|
-
this.disconnectMeeting(oldMeeting);
|
|
421
|
-
if (meeting && !meeting.chat)
|
|
422
|
-
return;
|
|
423
|
-
if (meeting != null) {
|
|
424
|
-
this.canSend = meeting.self.permissions.chatPublic.canSend;
|
|
425
|
-
this.canSendTextMessage = meeting.self.permissions.chatPublic.text;
|
|
426
|
-
this.canSendFiles = meeting.self.permissions.chatPublic.files;
|
|
427
|
-
this.canPrivateMessage = !!(((_a = meeting.self.permissions.chatPrivate) === null || _a === void 0 ? void 0 : _a.canSend) ||
|
|
428
|
-
((_b = meeting.self.permissions.chatPrivate) === null || _b === void 0 ? void 0 : _b.canReceive));
|
|
429
|
-
this.canSendPrivateTexts = !!((_c = meeting.self.permissions.chatPrivate) === null || _c === void 0 ? void 0 : _c.text);
|
|
430
|
-
this.canSendPrivateFiles = !!((_d = meeting.self.permissions.chatPrivate) === null || _d === void 0 ? void 0 : _d.files);
|
|
431
|
-
this.canPinMessages =
|
|
432
|
-
((_e = meeting === null || meeting === void 0 ? void 0 : meeting.__internals__) === null || _e === void 0 ? void 0 : _e.features.hasFeature(FlagsmithFeatureFlags.PINNED_MESSAGES)) &&
|
|
433
|
-
meeting.self.permissions.pinParticipant;
|
|
434
|
-
this.initializeChatGroups();
|
|
435
|
-
// shallow copy to trigger render
|
|
436
|
-
this.chatGroups = Object.assign({}, this.chatGroups);
|
|
437
|
-
meeting.self.permissions.on('*', this.chatPermissionUpdateListener);
|
|
438
|
-
this.onParticipantUpdate();
|
|
439
|
-
(_f = meeting.chat) === null || _f === void 0 ? void 0 : _f.addListener('chatUpdate', this.chatUpdateListener);
|
|
440
|
-
if (this.isPrivateChatSupported()) {
|
|
441
|
-
meeting.participants.joined.addListener('participantJoined', this.onParticipantUpdate);
|
|
442
|
-
meeting.participants.joined.addListener('participantLeft', this.onParticipantUpdate);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
chatGroupsChanged(chatGroups) {
|
|
447
|
-
var _a, _b;
|
|
448
|
-
if (!this.isPrivateChatSupported()) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
const unreadCounts = {};
|
|
452
|
-
for (const key in chatGroups) {
|
|
453
|
-
const lastReadTimestamp = (_a = chatUnreadTimestamps[key]) !== null && _a !== void 0 ? _a : 0;
|
|
454
|
-
unreadCounts[key] = chatGroups[key].filter((c) => c.type == 'chat' &&
|
|
455
|
-
c.message.time > lastReadTimestamp &&
|
|
456
|
-
c.message.userId !== this.meeting.self.userId).length;
|
|
457
|
-
if (key ===
|
|
458
|
-
generateChatGroupKey([this.meeting.self.userId, (_b = this.selectedParticipant) === null || _b === void 0 ? void 0 : _b.userId]) ||
|
|
459
|
-
(key === 'everyone' && this.selectedParticipant === null)) {
|
|
460
|
-
unreadCounts[key] = 0;
|
|
461
|
-
chatUnreadTimestamps[key] = new Date();
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
this.updateUnreadCountGroups(unreadCounts);
|
|
465
|
-
}
|
|
466
|
-
initializeChatGroups() {
|
|
467
|
-
var _a;
|
|
468
|
-
(_a = this.meeting.chat) === null || _a === void 0 ? void 0 : _a.messages.forEach((message) => {
|
|
469
|
-
if (!this.displayFilter || this.displayFilter(message)) {
|
|
470
|
-
this.addToChatGroup(message);
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
onDisplayFilterChanged(newFilter, oldFilter) {
|
|
475
|
-
if (newFilter !== oldFilter) {
|
|
476
|
-
this.chatGroups = {};
|
|
477
|
-
this.initializeChatGroups();
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
addToChatGroup(message) {
|
|
481
|
-
var _a;
|
|
482
|
-
const parsedMessage = parseMessageForTarget(message);
|
|
483
|
-
let key = 'everyone';
|
|
484
|
-
if (((_a = parsedMessage.targetUserIds) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
485
|
-
const allParticipants = new Set([
|
|
486
|
-
parsedMessage.userId,
|
|
487
|
-
...parsedMessage.targetUserIds,
|
|
488
|
-
]);
|
|
489
|
-
key = generateChatGroupKey(Array.from(allParticipants));
|
|
490
|
-
}
|
|
491
|
-
if (this.chatGroups[key] === undefined)
|
|
492
|
-
this.chatGroups[key] = [];
|
|
493
|
-
let isEditedMessage = false;
|
|
494
|
-
let messages = [];
|
|
495
|
-
this.chatGroups[key].forEach((chat) => {
|
|
496
|
-
if (chat.type === 'chat' && chat.message.id === message.id) {
|
|
497
|
-
isEditedMessage = true;
|
|
498
|
-
messages.push({ type: 'chat', message: parsedMessage });
|
|
499
|
-
}
|
|
500
|
-
else {
|
|
501
|
-
messages.push(chat);
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
if (!isEditedMessage) {
|
|
505
|
-
messages.push({ type: 'chat', message: parsedMessage });
|
|
506
|
-
}
|
|
507
|
-
this.chatGroups[key] = messages;
|
|
508
|
-
}
|
|
509
|
-
getRecipientPeerIds() {
|
|
510
|
-
let peerIds = [];
|
|
511
|
-
if (this.chatRecipientId !== 'everyone') {
|
|
512
|
-
peerIds = [this.selectedParticipant.id];
|
|
513
|
-
}
|
|
514
|
-
return peerIds;
|
|
515
|
-
}
|
|
516
|
-
channelSwitchListener(e) {
|
|
517
|
-
this.onChannelChanged(e);
|
|
518
|
-
}
|
|
519
|
-
renderComposerUI() {
|
|
520
|
-
var _a;
|
|
521
|
-
if (this.chatRecipientId === 'everyone') {
|
|
522
|
-
if (!this.canSendTextMessage && !this.canSendFiles)
|
|
523
|
-
return null;
|
|
524
|
-
}
|
|
525
|
-
else {
|
|
526
|
-
if (!this.canSendPrivateTexts && !this.canSendPrivateFiles)
|
|
527
|
-
return null;
|
|
528
|
-
}
|
|
529
|
-
const uiProps = { iconPack: this.iconPack, t: this.t, size: this.size };
|
|
530
|
-
const message = this.editingMessage ? this.editingMessage.message : '';
|
|
531
|
-
const quotedMessage = this.replyMessage ? this.replyMessage.message : '';
|
|
532
|
-
const draftStorageKey = this.selectedChannelId
|
|
533
|
-
? `rtk-chat-draft-${this.selectedChannelId}`
|
|
534
|
-
: 'rtk-chat-draft';
|
|
535
|
-
const editStorageKey = this.editingMessage
|
|
536
|
-
? `rtk-chat-edit-${(_a = this.selectedChannelId) !== null && _a !== void 0 ? _a : 'no-channel'}-${this.editingMessage.id}`
|
|
537
|
-
: 'rtk-chat-edit';
|
|
538
|
-
const storageKey = this.editingMessage ? editStorageKey : draftStorageKey;
|
|
539
|
-
return (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), h("slot", { name: "chat-addon", slot: "chat-addon" })));
|
|
540
|
-
}
|
|
541
|
-
render() {
|
|
542
|
-
var _a;
|
|
543
|
-
if (!this.meeting) {
|
|
544
|
-
return null;
|
|
545
|
-
}
|
|
546
|
-
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, onEditMessage: this.onMessageEdit, onDeleteMessage: this.onDeleteMessage, size: this.size, iconPack: this.iconPack, t: this.t }), this.renderComposerUI()))));
|
|
547
|
-
}
|
|
548
|
-
get host() { return this; }
|
|
549
|
-
static get watchers() { return {
|
|
550
|
-
"meeting": ["meetingChanged"],
|
|
551
|
-
"chatGroups": ["chatGroupsChanged"],
|
|
552
|
-
"displayFilter": ["onDisplayFilterChanged"]
|
|
553
|
-
}; }
|
|
554
|
-
static get style() { return RtkChatStyle0; }
|
|
555
|
-
}, [1, "rtk-chat", {
|
|
556
|
-
"meeting": [16],
|
|
557
|
-
"config": [16],
|
|
558
|
-
"size": [513],
|
|
559
|
-
"iconPack": [16],
|
|
560
|
-
"t": [16],
|
|
561
|
-
"overrides": [16],
|
|
562
|
-
"disablePrivateChat": [4, "disable-private-chat"],
|
|
563
|
-
"privatePresetFilter": [16],
|
|
564
|
-
"displayFilter": [16],
|
|
565
|
-
"canPinMessages": [32],
|
|
566
|
-
"unreadCountGroups": [32],
|
|
567
|
-
"chatGroups": [32],
|
|
568
|
-
"selectedGroup": [32],
|
|
569
|
-
"now": [32],
|
|
570
|
-
"dropzoneActivated": [32],
|
|
571
|
-
"showLatestMessageButton": [32],
|
|
572
|
-
"canSend": [32],
|
|
573
|
-
"canSendTextMessage": [32],
|
|
574
|
-
"canSendFiles": [32],
|
|
575
|
-
"canPrivateMessage": [32],
|
|
576
|
-
"canSendPrivateTexts": [32],
|
|
577
|
-
"canSendPrivateFiles": [32],
|
|
578
|
-
"emojiPickerEnabled": [32],
|
|
579
|
-
"chatRecipientId": [32],
|
|
580
|
-
"participants": [32],
|
|
581
|
-
"selectedParticipant": [32],
|
|
582
|
-
"channels": [32],
|
|
583
|
-
"selectedChannelId": [32],
|
|
584
|
-
"editingMessage": [32],
|
|
585
|
-
"replyMessage": [32],
|
|
586
|
-
"searchQuery": [32],
|
|
587
|
-
"selectorState": [32],
|
|
588
|
-
"creatingChannel": [32],
|
|
589
|
-
"isSendingMessage": [32],
|
|
590
|
-
"showPinnedMessages": [32]
|
|
591
|
-
}, [[8, "editMessageInit", "onEditMessageInit"], [0, "switchChannel", "channelSwitchListener"]], {
|
|
592
|
-
"meeting": ["meetingChanged"],
|
|
593
|
-
"chatGroups": ["chatGroupsChanged"],
|
|
594
|
-
"displayFilter": ["onDisplayFilterChanged"]
|
|
595
|
-
}]);
|
|
596
|
-
__decorate([
|
|
597
|
-
SyncWithStore()
|
|
598
|
-
], RtkChat.prototype, "meeting", void 0);
|
|
599
|
-
__decorate([
|
|
600
|
-
SyncWithStore()
|
|
601
|
-
], RtkChat.prototype, "config", void 0);
|
|
602
|
-
__decorate([
|
|
603
|
-
SyncWithStore()
|
|
604
|
-
], RtkChat.prototype, "iconPack", void 0);
|
|
605
|
-
__decorate([
|
|
606
|
-
SyncWithStore()
|
|
607
|
-
], RtkChat.prototype, "t", void 0);
|
|
608
|
-
__decorate([
|
|
609
|
-
SyncWithStore()
|
|
610
|
-
], RtkChat.prototype, "overrides", void 0);
|
|
611
|
-
function defineCustomElement() {
|
|
612
|
-
if (typeof customElements === "undefined") {
|
|
613
|
-
return;
|
|
614
|
-
}
|
|
615
|
-
const components = ["rtk-chat", "rtk-avatar", "rtk-button", "rtk-channel-selector-view", "rtk-chat-composer-view", "rtk-chat-messages-ui-paginated", "rtk-draft-attachment-view", "rtk-emoji-picker", "rtk-emoji-picker-button", "rtk-file-message-view", "rtk-file-picker-button", "rtk-icon", "rtk-image-message-view", "rtk-markdown-view", "rtk-menu", "rtk-menu-item", "rtk-menu-list", "rtk-message-view", "rtk-paginated-list", "rtk-spinner", "rtk-text-composer-view", "rtk-text-message-view", "rtk-tooltip"];
|
|
616
|
-
components.forEach(tagName => { switch (tagName) {
|
|
617
|
-
case "rtk-chat":
|
|
618
|
-
if (!customElements.get(tagName)) {
|
|
619
|
-
customElements.define(tagName, RtkChat);
|
|
620
|
-
}
|
|
621
|
-
break;
|
|
622
|
-
case "rtk-avatar":
|
|
623
|
-
if (!customElements.get(tagName)) {
|
|
624
|
-
defineCustomElement$m();
|
|
625
|
-
}
|
|
626
|
-
break;
|
|
627
|
-
case "rtk-button":
|
|
628
|
-
if (!customElements.get(tagName)) {
|
|
629
|
-
defineCustomElement$l();
|
|
630
|
-
}
|
|
631
|
-
break;
|
|
632
|
-
case "rtk-channel-selector-view":
|
|
633
|
-
if (!customElements.get(tagName)) {
|
|
634
|
-
defineCustomElement$k();
|
|
635
|
-
}
|
|
636
|
-
break;
|
|
637
|
-
case "rtk-chat-composer-view":
|
|
638
|
-
if (!customElements.get(tagName)) {
|
|
639
|
-
defineCustomElement$j();
|
|
640
|
-
}
|
|
641
|
-
break;
|
|
642
|
-
case "rtk-chat-messages-ui-paginated":
|
|
643
|
-
if (!customElements.get(tagName)) {
|
|
644
|
-
defineCustomElement$i();
|
|
645
|
-
}
|
|
646
|
-
break;
|
|
647
|
-
case "rtk-draft-attachment-view":
|
|
648
|
-
if (!customElements.get(tagName)) {
|
|
649
|
-
defineCustomElement$h();
|
|
650
|
-
}
|
|
651
|
-
break;
|
|
652
|
-
case "rtk-emoji-picker":
|
|
653
|
-
if (!customElements.get(tagName)) {
|
|
654
|
-
defineCustomElement$g();
|
|
655
|
-
}
|
|
656
|
-
break;
|
|
657
|
-
case "rtk-emoji-picker-button":
|
|
658
|
-
if (!customElements.get(tagName)) {
|
|
659
|
-
defineCustomElement$f();
|
|
660
|
-
}
|
|
661
|
-
break;
|
|
662
|
-
case "rtk-file-message-view":
|
|
663
|
-
if (!customElements.get(tagName)) {
|
|
664
|
-
defineCustomElement$e();
|
|
665
|
-
}
|
|
666
|
-
break;
|
|
667
|
-
case "rtk-file-picker-button":
|
|
668
|
-
if (!customElements.get(tagName)) {
|
|
669
|
-
defineCustomElement$d();
|
|
670
|
-
}
|
|
671
|
-
break;
|
|
672
|
-
case "rtk-icon":
|
|
673
|
-
if (!customElements.get(tagName)) {
|
|
674
|
-
defineCustomElement$c();
|
|
675
|
-
}
|
|
676
|
-
break;
|
|
677
|
-
case "rtk-image-message-view":
|
|
678
|
-
if (!customElements.get(tagName)) {
|
|
679
|
-
defineCustomElement$b();
|
|
680
|
-
}
|
|
681
|
-
break;
|
|
682
|
-
case "rtk-markdown-view":
|
|
683
|
-
if (!customElements.get(tagName)) {
|
|
684
|
-
defineCustomElement$a();
|
|
685
|
-
}
|
|
686
|
-
break;
|
|
687
|
-
case "rtk-menu":
|
|
688
|
-
if (!customElements.get(tagName)) {
|
|
689
|
-
defineCustomElement$9();
|
|
690
|
-
}
|
|
691
|
-
break;
|
|
692
|
-
case "rtk-menu-item":
|
|
693
|
-
if (!customElements.get(tagName)) {
|
|
694
|
-
defineCustomElement$8();
|
|
695
|
-
}
|
|
696
|
-
break;
|
|
697
|
-
case "rtk-menu-list":
|
|
698
|
-
if (!customElements.get(tagName)) {
|
|
699
|
-
defineCustomElement$7();
|
|
700
|
-
}
|
|
701
|
-
break;
|
|
702
|
-
case "rtk-message-view":
|
|
703
|
-
if (!customElements.get(tagName)) {
|
|
704
|
-
defineCustomElement$6();
|
|
705
|
-
}
|
|
706
|
-
break;
|
|
707
|
-
case "rtk-paginated-list":
|
|
708
|
-
if (!customElements.get(tagName)) {
|
|
709
|
-
defineCustomElement$5();
|
|
710
|
-
}
|
|
711
|
-
break;
|
|
712
|
-
case "rtk-spinner":
|
|
713
|
-
if (!customElements.get(tagName)) {
|
|
714
|
-
defineCustomElement$4();
|
|
715
|
-
}
|
|
716
|
-
break;
|
|
717
|
-
case "rtk-text-composer-view":
|
|
718
|
-
if (!customElements.get(tagName)) {
|
|
719
|
-
defineCustomElement$3();
|
|
720
|
-
}
|
|
721
|
-
break;
|
|
722
|
-
case "rtk-text-message-view":
|
|
723
|
-
if (!customElements.get(tagName)) {
|
|
724
|
-
defineCustomElement$2();
|
|
725
|
-
}
|
|
726
|
-
break;
|
|
727
|
-
case "rtk-tooltip":
|
|
728
|
-
if (!customElements.get(tagName)) {
|
|
729
|
-
defineCustomElement$1();
|
|
730
|
-
}
|
|
731
|
-
break;
|
|
732
|
-
} });
|
|
733
|
-
}
|
|
734
|
-
defineCustomElement();
|
|
735
|
-
|
|
736
|
-
export { RtkChat as R, defineCustomElement as d };
|