@cloudflare/realtimekit-ui 1.1.0-staging.11 → 1.1.0-staging.13
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-75b55b60.js → TextMessage-b9322340.js} +2 -2
- package/dist/cjs/{chat-90670f84.js → chat-f1a9fd6e.js} +1 -1
- package/dist/cjs/{config-60d594e2.js → config-86164f93.js} +2 -2
- package/dist/cjs/{debounce-677e65cb.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-5442bdba.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-7ce7986a.js → merge-bb096d88.js} +1 -1
- package/dist/cjs/{notification-b9d42aa0.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 +4 -4
- package/dist/cjs/rtk-ai.cjs.entry.js +3 -3
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +4 -4
- 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_23.cjs.entry.js → rtk-avatar_26.cjs.entry.js} +563 -255
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +6 -6
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +10 -10
- 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 -11
- 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 +3 -3
- 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 +7 -7
- 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-e172c4ae.js → sidebar-7df66d80.js} +1 -1
- package/dist/cjs/{ui-store-594688bf.js → ui-store-d0e80f30.js} +112 -27
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +2 -2
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +3 -3
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +3 -3
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +3 -3
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +2 -2
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
- package/dist/collection/components/rtk-chat/rtk-chat.css +2 -0
- package/dist/collection/components/rtk-chat/rtk-chat.js +27 -240
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +12 -11
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
- package/dist/collection/components/rtk-chat-header/rtk-chat-header.css +75 -0
- 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 +8 -8
- 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 +5 -5
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +91 -33
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +3 -3
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.css +142 -0
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +445 -0
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +7 -3
- package/dist/collection/components/rtk-clock/rtk-clock.js +4 -4
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +3 -3
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +3 -3
- package/dist/collection/components/rtk-counter/rtk-counter.css +0 -2
- package/dist/collection/components/rtk-counter/rtk-counter.js +3 -3
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +3 -3
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.css +1 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +2 -2
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.css +0 -2
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +2 -2
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +2 -2
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +2 -2
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +4 -4
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +3 -3
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
- package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.css +0 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
- package/dist/collection/components/rtk-header/rtk-header.js +3 -3
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +3 -3
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +6 -6
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +4 -4
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +3 -3
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +2 -2
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +2 -2
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +4 -4
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
- package/dist/collection/components/rtk-logo/rtk-logo.js +2 -2
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.css +1 -0
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +2 -2
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
- package/dist/collection/components/rtk-menu/rtk-menu.js +3 -3
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +1 -1
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +2 -2
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +3 -3
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +2 -2
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +4 -4
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +3 -3
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +3 -3
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +3 -3
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +3 -3
- package/dist/collection/components/rtk-notification/rtk-notification.js +3 -3
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +3 -3
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +96 -2
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +72 -26
- package/dist/collection/components/rtk-participant/rtk-participant.js +3 -3
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +4 -4
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +4 -4
- package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +3 -3
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +3 -3
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +3 -3
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.css +112 -0
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +319 -0
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +4 -4
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +3 -3
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
- package/dist/collection/components/rtk-poll/rtk-poll.js +4 -4
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +3 -3
- package/dist/collection/components/rtk-polls/rtk-polls.js +5 -5
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +3 -3
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +2 -2
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +8 -8
- package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +0 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +2 -2
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +4 -4
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
- package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +2 -2
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +4 -4
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-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 +2 -2
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +3 -3
- package/dist/collection/lib/lang/default-language.js +1 -1
- package/dist/collection/lib/overrides.js +1 -0
- package/dist/collection/utils/flags.js +0 -1
- package/dist/components/index.js +8 -8
- package/dist/components/{p-777aa628.js → p-06de876f.js} +7 -7
- package/dist/components/{p-f5a3ee43.js → p-08351fd6.js} +8 -8
- package/dist/components/{p-c643c410.js → p-0a36cb4b.js} +11 -11
- package/dist/components/{p-addb4be5.js → p-0db812c2.js} +1 -1
- package/dist/components/{p-1e9999d7.js → p-1099c0fe.js} +5 -5
- package/dist/components/{p-33db910f.js → p-128566e8.js} +43 -15
- package/dist/components/{p-b69a05ad.js → p-12b59b72.js} +4 -4
- package/dist/components/{p-63c79efa.js → p-15156a2c.js} +1 -1
- package/dist/components/{p-52e95364.js → p-154bed23.js} +6 -6
- package/dist/components/{p-caaca684.js → p-1b26fbf7.js} +3 -3
- package/dist/components/{p-1c678eab.js → p-2232de67.js} +2482 -1455
- package/dist/components/{p-c0942317.js → p-22827c53.js} +6 -6
- package/dist/components/{p-7a424d82.js → p-2305aa2d.js} +1 -1
- package/dist/components/{p-c402a1db.js → p-2690645d.js} +3 -3
- package/dist/components/{p-63e51be4.js → p-2976fcb0.js} +8 -8
- package/dist/components/{p-ac80e7fc.js → p-32a673c0.js} +82 -210
- package/dist/components/{p-6614c9e7.js → p-345a07e8.js} +8 -8
- package/dist/components/p-3a9d16e3.js +86 -0
- package/dist/components/{p-93db20a6.js → p-401ce922.js} +5 -5
- package/dist/components/{p-5791a91d.js → p-41bf1c3d.js} +5 -5
- package/dist/components/{p-21becaf3.js → p-45a9a385.js} +11 -11
- package/dist/components/{p-cd8f62c9.js → p-4942bfd2.js} +9 -9
- package/dist/components/{p-23d37f65.js → p-4a1144e2.js} +8 -8
- package/dist/components/{p-f8a13473.js → p-4a5d3b4c.js} +7 -7
- package/dist/components/{p-645b761e.js → p-52d9029f.js} +7 -7
- package/dist/components/{p-a72d3d19.js → p-583f9282.js} +1 -1
- package/dist/components/p-5f33c184.js +260 -0
- package/dist/components/{p-7f790526.js → p-6ac87493.js} +6 -6
- package/dist/components/{p-bbffc0e1.js → p-6e373d96.js} +4 -4
- package/dist/components/{p-56134994.js → p-707dced6.js} +2 -2
- package/dist/components/{p-b92c53c7.js → p-71fb663b.js} +4 -4
- package/dist/components/{p-51ef5a21.js → p-71fbfb8b.js} +7 -7
- package/dist/components/{p-f5101af9.js → p-7384c20c.js} +9 -9
- package/dist/components/{p-63e06c50.js → p-73db39b8.js} +2 -2
- package/dist/components/{p-6e10fc42.js → p-76c443b7.js} +3 -3
- package/dist/components/{p-2ec120cd.js → p-7adb3504.js} +5 -5
- package/dist/components/{p-410cef02.js → p-7f3bfc54.js} +6 -6
- package/dist/components/{p-d3414935.js → p-862ec1f9.js} +9 -9
- package/dist/components/{p-541e6de7.js → p-8861d5a3.js} +4 -4
- package/dist/components/{p-e583a838.js → p-88aded7d.js} +11 -11
- package/dist/components/{p-fe648db5.js → p-8a66a347.js} +5 -5
- package/dist/components/{p-1c5cc842.js → p-8cea6257.js} +1 -1
- package/dist/components/{p-aeba1c02.js → p-95a1fa70.js} +5 -5
- package/dist/components/{p-770c0fd7.js → p-9bcd6297.js} +80 -35
- package/dist/components/{p-24481cb4.js → p-9e1478a0.js} +7 -7
- package/dist/components/{p-91bc86f4.js → p-9f481b70.js} +5 -5
- package/dist/components/{p-73baf5ba.js → p-a3cc7425.js} +1 -1
- package/dist/components/{p-e09955f3.js → p-a4d13056.js} +10 -10
- package/dist/components/{p-e60aa036.js → p-a6c93f34.js} +5 -5
- package/dist/components/{p-c66a52b7.js → p-a74caccd.js} +4 -4
- package/dist/components/{p-a89ee2d2.js → p-a8d77615.js} +16 -16
- package/dist/components/{p-f247cacc.js → p-abf952f5.js} +5 -5
- package/dist/components/{p-b2904963.js → p-ac6a5fc5.js} +7 -7
- package/dist/components/{p-7c84212d.js → p-af2b1476.js} +8 -8
- package/dist/components/{p-565c8389.js → p-b226a124.js} +5 -5
- package/dist/components/{p-0899c09f.js → p-b2d5329f.js} +5 -5
- package/dist/components/{p-f7a8a2d8.js → p-b3240843.js} +5 -5
- package/dist/components/{p-4c82be72.js → p-bfc86230.js} +3 -3
- package/dist/components/{p-a54b82e9.js → p-c0790538.js} +1 -1
- package/dist/components/{p-b37f2227.js → p-c0ad28ff.js} +9 -9
- package/dist/components/{p-901c2375.js → p-c6c4c24e.js} +4 -4
- package/dist/components/{p-cec4d080.js → p-c9db1b82.js} +5 -5
- package/dist/components/{p-66d10db2.js → p-cd6656bf.js} +8 -8
- package/dist/components/{p-7e6ca4af.js → p-cd6f04ae.js} +5 -5
- package/dist/components/{p-3245ace2.js → p-d029dd2f.js} +8 -8
- package/dist/components/{p-8e285a44.js → p-d0f54eea.js} +3 -3
- package/dist/components/{p-a99b0889.js → p-d22fc130.js} +7 -7
- package/dist/components/{p-34654ffc.js → p-d2cbc2d1.js} +11 -11
- package/dist/components/{p-f95c314b.js → p-d6024528.js} +4 -4
- package/dist/components/{p-5194f4d6.js → p-d9626191.js} +6 -6
- package/dist/components/{p-66ba4031.js → p-dacaa250.js} +3 -3
- package/dist/components/{p-8222af8c.js → p-dd7832d2.js} +4 -4
- package/dist/components/{p-206acdcd.js → p-dd8a892e.js} +5 -5
- package/dist/components/{p-19d83dd6.js → p-dfdbb665.js} +5 -5
- package/dist/components/{p-1ea0d406.js → p-e0ef3893.js} +7 -7
- package/dist/components/{p-1391bef0.js → p-e229128b.js} +1 -1
- package/dist/components/{p-9c3c75a9.js → p-e334e15c.js} +2 -2
- package/dist/components/p-e39ec88e.js +218 -0
- package/dist/components/{p-71f12515.js → p-e544a590.js} +6 -6
- package/dist/components/{p-a6aea524.js → p-e73faa5e.js} +3 -3
- package/dist/components/{p-951a67af.js → p-e7b7abfe.js} +5 -5
- package/dist/components/{p-97d1dcb7.js → p-eb2c2c21.js} +15 -15
- package/dist/components/{p-efbfe5a0.js → p-ecbb4e46.js} +6 -6
- package/dist/components/{p-b4a37662.js → p-eff3c856.js} +6 -6
- package/dist/components/{p-dc9dde66.js → p-f19b4abc.js} +113 -28
- package/dist/components/{p-60fdbd75.js → p-f3c261ec.js} +1 -1
- package/dist/components/{p-b65d1760.js → p-fa8cf270.js} +3 -3
- package/dist/components/p-fdad14c9.js +4028 -0
- package/dist/components/{p-93947678.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 +4 -4
- 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 -17
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.d.ts +11 -0
- 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-chat-selector.d.ts +11 -0
- 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 +63 -45
- 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 +12543 -8721
- package/dist/docs/docs-vscode.json +46 -15
- package/dist/esm/{ChatHead-15c2f8d4.js → ChatHead-148558a8.js} +1 -1
- package/dist/esm/{TextMessage-0aed30b2.js → TextMessage-cdf76ced.js} +2 -2
- package/dist/esm/{chat-a170fc58.js → chat-12f27725.js} +2 -2
- package/dist/esm/{config-cea9cd37.js → config-74c02ff0.js} +2 -2
- package/dist/esm/{debounce-b7ba967e.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-d08145ca.js → index-e677f28b.js} +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/loader.js +5582 -1981
- package/dist/esm/{merge-88832ad1.js → merge-df16b7d2.js} +1 -1
- package/dist/esm/{notification-6fa40b68.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 +4 -4
- package/dist/esm/rtk-ai.entry.js +3 -3
- package/dist/esm/rtk-audio-grid.entry.js +4 -4
- 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_23.entry.js → rtk-avatar_26.entry.js} +561 -256
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +6 -6
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +10 -10
- 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 -11
- 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 +3 -3
- 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 +7 -7
- 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-dd9a38aa.js → sidebar-293fd302.js} +1 -1
- package/dist/esm/{ui-store-5a66fa71.js → ui-store-644e4cb0.js} +113 -28
- 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-2be75f31.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-d9117aa2.entry.js → p-15297e89.entry.js} +1 -1
- package/dist/realtimekit-ui/p-1e16ecb3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c77d9110.entry.js → p-1feec027.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fa39a651.entry.js → p-2251059d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-25f3e66a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7c9ac5df.entry.js → p-26b4e422.entry.js} +1 -1
- package/dist/realtimekit-ui/p-29549a05.entry.js +1 -0
- package/dist/realtimekit-ui/{p-ab5b09f9.entry.js → p-29d3f735.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d543f03a.entry.js → p-2b47921e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2f93d90b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3a14da51.js → p-2ff77d78.js} +1 -1
- package/dist/realtimekit-ui/p-309b8a96.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d679ea25.entry.js → p-30a3007c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1ff96b0f.js → p-315cd380.js} +1 -1
- package/dist/realtimekit-ui/{p-9b5c6928.entry.js → p-36f7accb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-136d3fe2.entry.js → p-3ec85ff3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0d6b6c0d.entry.js → p-40ab8b0f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-aef75bbb.entry.js → p-43fa4d95.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3229431b.entry.js → p-4814e742.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-75087c10.entry.js → p-4a5e203d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-731bcf94.entry.js → p-4e604bf1.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4ec77793.js +1 -0
- package/dist/realtimekit-ui/{p-186d21ad.entry.js → p-50aaac81.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2e996dd5.entry.js → p-5a425dac.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-904119a0.entry.js → p-5ef7cf76.entry.js} +1 -1
- package/dist/realtimekit-ui/p-60b3fbb2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-6acda400.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-5cd2b5e0.entry.js → p-6c2ef845.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6407dc7e.entry.js → p-6f913b9b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-71393f37.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d7b92a52.js → p-77e5605f.js} +1 -1
- package/dist/realtimekit-ui/{p-b89736c6.entry.js → p-8329d4ae.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-38fb340d.entry.js → p-84476389.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1dbbb8cb.entry.js → p-879459bb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f19fe2c3.entry.js → p-8e867ba8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-8fb52437.entry.js +1 -0
- package/dist/realtimekit-ui/p-8fc79c56.js +1 -0
- package/dist/realtimekit-ui/p-9599b2e4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f0054be9.entry.js → p-975cbc2e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9ff0dfdb.entry.js +1 -0
- package/dist/realtimekit-ui/{p-9b206390.entry.js → p-a43a7ffb.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a599f720.js +2 -0
- package/dist/realtimekit-ui/{p-8bd79e77.entry.js → p-abbee273.entry.js} +1 -1
- 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-574fa8db.entry.js → p-b0eaeddc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f89bb70f.js → p-b5e5e206.js} +1 -1
- package/dist/realtimekit-ui/p-bb907330.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f6cd4525.entry.js → p-bbaf3e7d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-be0cae77.entry.js +1 -0
- package/dist/realtimekit-ui/{p-91d15089.js → p-be0d2b90.js} +1 -1
- package/dist/realtimekit-ui/{p-c09f774c.entry.js → p-bea3ee08.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-194ca93a.entry.js → p-c0e5ddd4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9b35d38b.entry.js → p-c794adf9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c7ddf9a9.entry.js +1 -0
- package/dist/realtimekit-ui/{p-91efc377.entry.js → p-c8239122.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c8f0b23e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-dfd41e7d.entry.js → p-cbbb09a2.entry.js} +1 -1
- package/dist/realtimekit-ui/p-cbfe61b9.entry.js +1 -0
- package/dist/realtimekit-ui/p-cc71c33f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7aa48099.entry.js → p-cd086077.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3a309e80.entry.js → p-cedff249.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d107248e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3c003b71.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-d6071b1d.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-79731cb6.js → p-ddcb6b8b.js} +1 -1
- package/dist/realtimekit-ui/{p-a417984b.entry.js → p-de253745.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-605e418e.entry.js → p-de2fd3a4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a71320ec.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-6560e903.entry.js → p-f42001bb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a6bccc60.entry.js → p-f423e125.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bf87c56f.entry.js → p-f46787e0.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f4e8a0b3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-0e513482.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-1b6b75a7.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 -30
- package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +1 -0
- 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 +5 -4
- package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +54 -0
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +8 -2
- package/dist/types/components/rtk-pinned-message-selector/rtk-pinned-message-selector.d.ts +40 -0
- package/dist/types/components.d.ts +190 -44
- package/dist/types/lib/overrides.d.ts +5 -0
- package/dist/types/utils/flags.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/index-05554ce6.js +0 -2235
- package/dist/components/p-c3592601.js +0 -1641
- package/dist/esm/index-c1fb98bb.js +0 -2202
- package/dist/realtimekit-ui/p-00fbc77d.entry.js +0 -1
- package/dist/realtimekit-ui/p-085b70ca.entry.js +0 -1
- package/dist/realtimekit-ui/p-0a6840aa.entry.js +0 -1
- package/dist/realtimekit-ui/p-0a9761b4.entry.js +0 -1
- package/dist/realtimekit-ui/p-0d173282.entry.js +0 -1
- package/dist/realtimekit-ui/p-0ee570cd.js +0 -2
- package/dist/realtimekit-ui/p-1d9ba38f.entry.js +0 -1
- package/dist/realtimekit-ui/p-1e8a9290.entry.js +0 -1
- package/dist/realtimekit-ui/p-245c5d74.entry.js +0 -1
- package/dist/realtimekit-ui/p-25a5687a.entry.js +0 -1
- package/dist/realtimekit-ui/p-29c66766.entry.js +0 -1
- package/dist/realtimekit-ui/p-2afa0984.entry.js +0 -1
- package/dist/realtimekit-ui/p-328d53bd.js +0 -1
- package/dist/realtimekit-ui/p-334f3f6d.entry.js +0 -1
- package/dist/realtimekit-ui/p-3cc15c7a.entry.js +0 -1
- package/dist/realtimekit-ui/p-3eb5a72d.entry.js +0 -1
- package/dist/realtimekit-ui/p-423ff132.entry.js +0 -1
- package/dist/realtimekit-ui/p-55074d37.entry.js +0 -1
- package/dist/realtimekit-ui/p-59ac307d.entry.js +0 -1
- package/dist/realtimekit-ui/p-5b2d97fc.js +0 -1
- package/dist/realtimekit-ui/p-63c32e2d.entry.js +0 -1
- package/dist/realtimekit-ui/p-6f8f175b.entry.js +0 -1
- package/dist/realtimekit-ui/p-740444e7.entry.js +0 -1
- package/dist/realtimekit-ui/p-8000d8de.entry.js +0 -1
- package/dist/realtimekit-ui/p-81beeff4.entry.js +0 -1
- package/dist/realtimekit-ui/p-872a05b0.entry.js +0 -1
- package/dist/realtimekit-ui/p-9c7449a0.entry.js +0 -1
- package/dist/realtimekit-ui/p-a37a936c.entry.js +0 -1
- package/dist/realtimekit-ui/p-ae9de69a.js +0 -1
- package/dist/realtimekit-ui/p-c0b75ca2.entry.js +0 -1
- package/dist/realtimekit-ui/p-c33b0b90.entry.js +0 -1
- package/dist/realtimekit-ui/p-c4fada74.entry.js +0 -1
- package/dist/realtimekit-ui/p-cb72ae59.entry.js +0 -1
- package/dist/realtimekit-ui/p-d644eed7.entry.js +0 -1
- package/dist/realtimekit-ui/p-d7c040f0.entry.js +0 -1
- package/dist/realtimekit-ui/p-e16f5890.entry.js +0 -1
- package/dist/realtimekit-ui/p-e1f2d163.entry.js +0 -1
- package/dist/realtimekit-ui/p-e829a20f.entry.js +0 -1
- package/dist/realtimekit-ui/p-f39b89a3.entry.js +0 -1
- package/dist/realtimekit-ui/p-f4025c97.entry.js +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { e as defaultIconPack, i as useLanguage, c as createDefaultConfig, f as defaultOverrides, I as
|
|
1
|
+
import { r as registerInstance, h, a as Host, d as createEvent, g as getElement, e as writeTask } from './index-55463a54.js';
|
|
2
|
+
import { e as defaultIconPack, i as useLanguage, c as createDefaultConfig, f as defaultOverrides, I as gracefulStorage, u as uiStore, b as createPeerStore } from './ui-store-644e4cb0.js';
|
|
3
3
|
import { f as formatName, g as getInitials, s as sanitizeLink, h as hasOnlyEmojis } from './string-068ce30a.js';
|
|
4
|
-
import { S as SyncWithStore } from './index-
|
|
5
|
-
import { h as handleFilesDataTransfer,
|
|
4
|
+
import { S as SyncWithStore } from './index-e677f28b.js';
|
|
5
|
+
import { h as handleFilesDataTransfer, M as MAX_TEXT_LENGTH, p as parseRichText, e as extractReplyBlock, s as stripOutReplyBlock } from './chat-12f27725.js';
|
|
6
6
|
import { g as getExtension, a as getFileSize, d as downloadFile } from './file-6114f1a9.js';
|
|
7
|
-
import { p as provideRtkDesignSystem, d as deepMerge } from './merge-
|
|
8
|
-
import { R as Render } from './index-
|
|
9
|
-
import { g as generateConfig } from './config-
|
|
7
|
+
import { p as provideRtkDesignSystem, d as deepMerge } from './merge-df16b7d2.js';
|
|
8
|
+
import { R as Render } from './index-3f51790f.js';
|
|
9
|
+
import { g as generateConfig } from './config-74c02ff0.js';
|
|
10
10
|
import { i as index } from './ResizeObserver.es-02979d4e.js';
|
|
11
11
|
import { c as computePosition, o as offset, f as flip, s as shift, a as arrow } from './floating-ui.dom.esm-21c3d54e.js';
|
|
12
12
|
import { f as formatDateTime, e as elapsedDuration } from './date-b1f78dea.js';
|
|
13
|
-
import { d as debounce } from './debounce-
|
|
13
|
+
import { d as debounce } from './debounce-0c6e63e9.js';
|
|
14
14
|
|
|
15
15
|
const rtkAvatarCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px);align-items:center;justify-content:center;font-size:28px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));overflow:clip;border-radius:9999px;-webkit-user-select:none;-moz-user-select:none;user-select:none}rtk-icon{height:50%;width:50%}.image-ctr{display:flex;height:100%;width:100%;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}img{height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);-o-object-fit:cover;object-fit:cover}img.loaded{height:100%;width:100%}.initials{display:flex;height:100%;width:100%;align-items:center;justify-content:center;text-transform:uppercase}.image{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.image img{display:none;height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.image img.loaded{display:block}:host([variant='hexagon']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%)}:host([variant='square']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)}:host([size='sm']){height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);font-size:12px}:host([size='md']){height:var(--rtk-space-28, 112px);width:var(--rtk-space-28, 112px)}:host([size='lg']){height:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px)}";
|
|
16
16
|
const RtkAvatarStyle0 = rtkAvatarCss;
|
|
17
17
|
|
|
18
|
-
var __decorate$
|
|
18
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
21
21
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -53,10 +53,10 @@ const RtkAvatar = class {
|
|
|
53
53
|
return (h(Host, { key: 'd7d3a7b03a3807984dc6798b5e35cec4418e06e7' }, this.getAvatar(), h("slot", { key: '25aa9fe632a132c1e2f8ef88ac98043bb8ef085a' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
__decorate$
|
|
56
|
+
__decorate$i([
|
|
57
57
|
SyncWithStore()
|
|
58
58
|
], RtkAvatar.prototype, "iconPack", void 0);
|
|
59
|
-
__decorate$
|
|
59
|
+
__decorate$i([
|
|
60
60
|
SyncWithStore()
|
|
61
61
|
], RtkAvatar.prototype, "t", void 0);
|
|
62
62
|
RtkAvatar.style = RtkAvatarStyle0;
|
|
@@ -85,10 +85,10 @@ const RtkButton = class {
|
|
|
85
85
|
};
|
|
86
86
|
RtkButton.style = RtkButtonStyle0;
|
|
87
87
|
|
|
88
|
-
const rtkChatCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px;position:relative;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}h3{margin:var(--rtk-space-0, 0px);display:flex;height:var(--rtk-space-12, 48px);align-items:center;justify-content:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}rtk-chat-messages-ui,rtk-chat-messages-ui-paginated{flex:1 0 0}rtk-chat-composer-view{margin:var(--rtk-space-2, 8px)}.chat-container{display:flex;height:100%;width:100%;flex-direction:row;container-type:size;container-name:chatcontainer}.chat{display:flex;flex:1 1 0%;flex-direction:column}.banner{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.view-chats-btn{margin-top:var(--rtk-space-4, 16px)}.selector-container{z-index:50;width:100%;max-width:var(--rtk-space-80, 320px);border-right:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.selector-container.hide{display:none}.mobile-close-btn{display:none}.selector-container.mobile{height:100%;width:100%;max-width:100%;position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);display:flex}.selector-container.mobile .mobile-close-btn{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);margin-left:var(--rtk-space-6, 24px);margin-right:var(--rtk-space-6, 24px);display:block}.pinned-messages{position:relative;display:flex;flex-direction:column}.pinned-messages-header{display:flex;align-items:center;justify-content:space-between;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-4, 16px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));font-size:14px;cursor:pointer}.pinned-messages-header div{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}.pinned-messages-header rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.pinned-messages-content{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));position:absolute;left:var(--rtk-space-0, 0px);top:100%;z-index:50;max-height:30vh;width:100%;overflow:auto}.pinned-message{display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px);--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));padding:var(--rtk-space-4, 16px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-top-width:var(--rtk-border-width-none, 0);border-style:solid}.pinned-message-avatar{height:var(--rtk-space-6, 24px) !important;width:var(--rtk-space-6, 24px) !important}@keyframes swipe-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}";
|
|
88
|
+
const rtkChatCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px;position:relative;box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}h3{margin:var(--rtk-space-0, 0px);display:flex;height:var(--rtk-space-12, 48px);align-items:center;justify-content:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}rtk-chat-messages-ui,rtk-chat-messages-ui-paginated{flex:1 0 0}rtk-chat-composer-view{margin:var(--rtk-space-2, 8px)}.chat-container{display:flex;height:100%;width:100%;flex-direction:row;container-type:size;container-name:chatcontainer}.chat{box-sizing:border-box;display:flex;flex:1 1 0%;flex-direction:column}.banner{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.view-chats-btn{margin-top:var(--rtk-space-4, 16px)}.selector-container{z-index:50;width:100%;max-width:var(--rtk-space-80, 320px);border-right:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.selector-container.hide{display:none}.mobile-close-btn{display:none}.selector-container.mobile{height:100%;width:100%;max-width:100%;position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);display:flex}.selector-container.mobile .mobile-close-btn{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);margin-left:var(--rtk-space-6, 24px);margin-right:var(--rtk-space-6, 24px);display:block}.pinned-messages{position:relative;display:flex;flex-direction:column}.pinned-messages-header{display:flex;align-items:center;justify-content:space-between;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-4, 16px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));font-size:14px;cursor:pointer}.pinned-messages-header div{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}.pinned-messages-header rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.pinned-messages-content{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));position:absolute;left:var(--rtk-space-0, 0px);top:100%;z-index:50;max-height:30vh;width:100%;overflow:auto}.pinned-message{display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px);--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));padding:var(--rtk-space-4, 16px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-top-width:var(--rtk-border-width-none, 0);border-style:solid}.pinned-message-avatar{height:var(--rtk-space-6, 24px) !important;width:var(--rtk-space-6, 24px) !important}@keyframes swipe-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}";
|
|
89
89
|
const RtkChatStyle0 = rtkChatCss;
|
|
90
90
|
|
|
91
|
-
var __decorate$
|
|
91
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
92
92
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93
93
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
94
94
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -102,13 +102,6 @@ const RtkChat = class {
|
|
|
102
102
|
constructor(hostRef) {
|
|
103
103
|
registerInstance(this, hostRef);
|
|
104
104
|
this.stateUpdate = createEvent(this, "rtkStateUpdate", 7);
|
|
105
|
-
this.chatUpdateListener = ({ message }) => {
|
|
106
|
-
if (!this.displayFilter || this.displayFilter(message)) {
|
|
107
|
-
this.addToChatGroup(message);
|
|
108
|
-
// shallow copy to trigger render
|
|
109
|
-
this.chatGroups = Object.assign({}, this.chatGroups);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
105
|
this.chatPermissionUpdateListener = () => {
|
|
113
106
|
this.canSend = this.meeting.self.permissions.chatPublic.canSend;
|
|
114
107
|
this.canSendTextMessage = this.meeting.self.permissions.chatPublic.text;
|
|
@@ -122,25 +115,8 @@ const RtkChat = class {
|
|
|
122
115
|
this.t = useLanguage();
|
|
123
116
|
/** UI Overrides */
|
|
124
117
|
this.overrides = defaultOverrides;
|
|
125
|
-
/** disables private chat */
|
|
126
|
-
this.disablePrivateChat = false;
|
|
127
118
|
/** Can current user pin/unpin messages */
|
|
128
119
|
this.canPinMessages = false;
|
|
129
|
-
/**
|
|
130
|
-
* @deprecated
|
|
131
|
-
* Beta API, will change in future
|
|
132
|
-
* List of target presets allowed as private chat recipient
|
|
133
|
-
*/
|
|
134
|
-
this.privatePresetFilter = [];
|
|
135
|
-
/**
|
|
136
|
-
* @deprecated
|
|
137
|
-
* Beta API, will change in future
|
|
138
|
-
* A filter function for messages to be displayed
|
|
139
|
-
*/
|
|
140
|
-
this.displayFilter = undefined;
|
|
141
|
-
this.unreadCountGroups = {};
|
|
142
|
-
this.chatGroups = { everyone: [] };
|
|
143
|
-
this.selectedGroup = 'everyone';
|
|
144
120
|
this.now = new Date();
|
|
145
121
|
this.dropzoneActivated = false;
|
|
146
122
|
this.showLatestMessageButton = false;
|
|
@@ -151,7 +127,6 @@ const RtkChat = class {
|
|
|
151
127
|
this.canSendPrivateTexts = false;
|
|
152
128
|
this.canSendPrivateFiles = false;
|
|
153
129
|
this.emojiPickerEnabled = false;
|
|
154
|
-
this.chatRecipientId = 'everyone';
|
|
155
130
|
this.participants = [];
|
|
156
131
|
this.editingMessage = null;
|
|
157
132
|
this.replyMessage = null;
|
|
@@ -186,32 +161,10 @@ const RtkChat = class {
|
|
|
186
161
|
});
|
|
187
162
|
};
|
|
188
163
|
this.disconnectMeeting = (meeting) => {
|
|
189
|
-
var _a;
|
|
190
|
-
if (this.isPrivateChatSupported()) {
|
|
191
|
-
meeting === null || meeting === void 0 ? void 0 : meeting.participants.joined.removeListener('participantJoined', this.onParticipantUpdate);
|
|
192
|
-
meeting === null || meeting === void 0 ? void 0 : meeting.participants.joined.removeListener('participantLeft', this.onParticipantUpdate);
|
|
193
|
-
}
|
|
194
|
-
(_a = meeting === null || meeting === void 0 ? void 0 : meeting.chat) === null || _a === void 0 ? void 0 : _a.removeListener('chatUpdate', this.chatUpdateListener);
|
|
195
164
|
meeting.self.permissions.removeListener('*', this.chatPermissionUpdateListener);
|
|
196
165
|
};
|
|
197
|
-
this.onParticipantUpdate = () => {
|
|
198
|
-
this.participants = this.meeting.participants.joined
|
|
199
|
-
.toArray()
|
|
200
|
-
.filter((p) => this.privatePresetFilter.length === 0 || this.privatePresetFilter.includes(p.presetName));
|
|
201
|
-
// if selected participant leaves, reset state to everyone
|
|
202
|
-
if (this.selectedParticipant && !this.participants.includes(this.selectedParticipant)) {
|
|
203
|
-
this.selectedParticipant = null;
|
|
204
|
-
this.chatRecipientId = this.selectedGroup = 'everyone';
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
this.updateUnreadCountGroups = (obj) => {
|
|
208
|
-
this.unreadCountGroups = Object.assign(Object.assign({}, this.unreadCountGroups), obj);
|
|
209
|
-
};
|
|
210
|
-
this.isPrivateChatSupported = () => {
|
|
211
|
-
return this.canPrivateMessage && !this.disablePrivateChat;
|
|
212
|
-
};
|
|
213
166
|
this.isTextMessagingAllowed = () => {
|
|
214
|
-
if (this.
|
|
167
|
+
if (!this.selectedParticipant) {
|
|
215
168
|
// public chat
|
|
216
169
|
return this.canSend && this.canSendTextMessage;
|
|
217
170
|
}
|
|
@@ -219,7 +172,7 @@ const RtkChat = class {
|
|
|
219
172
|
return this.canPrivateMessage && this.canSendPrivateTexts;
|
|
220
173
|
};
|
|
221
174
|
this.isFileMessagingAllowed = () => {
|
|
222
|
-
if (this.
|
|
175
|
+
if (!this.selectedParticipant) {
|
|
223
176
|
// public chat
|
|
224
177
|
return this.canSend && this.canSendFiles;
|
|
225
178
|
}
|
|
@@ -292,26 +245,6 @@ const RtkChat = class {
|
|
|
292
245
|
this.replyMessage = null;
|
|
293
246
|
this.editingMessage = message;
|
|
294
247
|
};
|
|
295
|
-
this.getPinnedMessageLabel = (message) => {
|
|
296
|
-
if (message.type === 'text')
|
|
297
|
-
return message.message;
|
|
298
|
-
if (message.type === 'image')
|
|
299
|
-
return 'Image';
|
|
300
|
-
if (message.type === 'file')
|
|
301
|
-
return 'File';
|
|
302
|
-
return '';
|
|
303
|
-
};
|
|
304
|
-
this.renderPinnedMessagesHeader = () => {
|
|
305
|
-
if (this.meeting.chat.pinned.length === 0)
|
|
306
|
-
return null;
|
|
307
|
-
/**
|
|
308
|
-
* We do not display a picture against the avatar because the chatMessage API does not provide it.
|
|
309
|
-
*/
|
|
310
|
-
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) => {
|
|
311
|
-
const label = this.getPinnedMessageLabel(message);
|
|
312
|
-
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)));
|
|
313
|
-
})))));
|
|
314
|
-
};
|
|
315
248
|
}
|
|
316
249
|
connectedCallback() {
|
|
317
250
|
if (!this.meeting)
|
|
@@ -334,6 +267,16 @@ const RtkChat = class {
|
|
|
334
267
|
this.editingMessage = event.detail.payload;
|
|
335
268
|
}
|
|
336
269
|
}
|
|
270
|
+
onChatSelectorChange(event) {
|
|
271
|
+
var _a;
|
|
272
|
+
const selectedUser = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.selectedUser;
|
|
273
|
+
// Everyone
|
|
274
|
+
if (!selectedUser) {
|
|
275
|
+
this.selectedParticipant = null;
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
this.selectedParticipant = selectedUser;
|
|
279
|
+
}
|
|
337
280
|
disconnectedCallback() {
|
|
338
281
|
var _a;
|
|
339
282
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
@@ -343,7 +286,7 @@ const RtkChat = class {
|
|
|
343
286
|
this.host.removeEventListener('drop', this.onDrop);
|
|
344
287
|
}
|
|
345
288
|
meetingChanged(meeting, oldMeeting) {
|
|
346
|
-
var _a, _b, _c, _d
|
|
289
|
+
var _a, _b, _c, _d;
|
|
347
290
|
if (oldMeeting != undefined)
|
|
348
291
|
this.disconnectMeeting(oldMeeting);
|
|
349
292
|
if (meeting && !meeting.chat)
|
|
@@ -356,93 +299,16 @@ const RtkChat = class {
|
|
|
356
299
|
((_b = meeting.self.permissions.chatPrivate) === null || _b === void 0 ? void 0 : _b.canReceive));
|
|
357
300
|
this.canSendPrivateTexts = !!((_c = meeting.self.permissions.chatPrivate) === null || _c === void 0 ? void 0 : _c.text);
|
|
358
301
|
this.canSendPrivateFiles = !!((_d = meeting.self.permissions.chatPrivate) === null || _d === void 0 ? void 0 : _d.files);
|
|
359
|
-
this.canPinMessages =
|
|
360
|
-
((_e = meeting === null || meeting === void 0 ? void 0 : meeting.__internals__) === null || _e === void 0 ? void 0 : _e.features.hasFeature(FlagsmithFeatureFlags.PINNED_MESSAGES)) &&
|
|
361
|
-
meeting.self.permissions.pinParticipant;
|
|
362
|
-
this.initializeChatGroups();
|
|
363
|
-
// shallow copy to trigger render
|
|
364
|
-
this.chatGroups = Object.assign({}, this.chatGroups);
|
|
365
302
|
meeting.self.permissions.on('*', this.chatPermissionUpdateListener);
|
|
366
|
-
this.onParticipantUpdate();
|
|
367
|
-
(_f = meeting.chat) === null || _f === void 0 ? void 0 : _f.addListener('chatUpdate', this.chatUpdateListener);
|
|
368
|
-
if (this.isPrivateChatSupported()) {
|
|
369
|
-
meeting.participants.joined.addListener('participantJoined', this.onParticipantUpdate);
|
|
370
|
-
meeting.participants.joined.addListener('participantLeft', this.onParticipantUpdate);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
chatGroupsChanged(chatGroups) {
|
|
375
|
-
var _a, _b;
|
|
376
|
-
if (!this.isPrivateChatSupported()) {
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
const unreadCounts = {};
|
|
380
|
-
for (const key in chatGroups) {
|
|
381
|
-
const lastReadTimestamp = (_a = chatUnreadTimestamps[key]) !== null && _a !== void 0 ? _a : 0;
|
|
382
|
-
unreadCounts[key] = chatGroups[key].filter((c) => c.type == 'chat' &&
|
|
383
|
-
c.message.time > lastReadTimestamp &&
|
|
384
|
-
c.message.userId !== this.meeting.self.userId).length;
|
|
385
|
-
if (key ===
|
|
386
|
-
generateChatGroupKey([this.meeting.self.userId, (_b = this.selectedParticipant) === null || _b === void 0 ? void 0 : _b.userId]) ||
|
|
387
|
-
(key === 'everyone' && this.selectedParticipant === null)) {
|
|
388
|
-
unreadCounts[key] = 0;
|
|
389
|
-
chatUnreadTimestamps[key] = new Date();
|
|
390
|
-
}
|
|
391
303
|
}
|
|
392
|
-
this.updateUnreadCountGroups(unreadCounts);
|
|
393
|
-
}
|
|
394
|
-
initializeChatGroups() {
|
|
395
|
-
var _a;
|
|
396
|
-
(_a = this.meeting.chat) === null || _a === void 0 ? void 0 : _a.messages.forEach((message) => {
|
|
397
|
-
if (!this.displayFilter || this.displayFilter(message)) {
|
|
398
|
-
this.addToChatGroup(message);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
onDisplayFilterChanged(newFilter, oldFilter) {
|
|
403
|
-
if (newFilter !== oldFilter) {
|
|
404
|
-
this.chatGroups = {};
|
|
405
|
-
this.initializeChatGroups();
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
addToChatGroup(message) {
|
|
409
|
-
var _a;
|
|
410
|
-
const parsedMessage = parseMessageForTarget(message);
|
|
411
|
-
let key = 'everyone';
|
|
412
|
-
if (((_a = parsedMessage.targetUserIds) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
413
|
-
const allParticipants = new Set([
|
|
414
|
-
parsedMessage.userId,
|
|
415
|
-
...parsedMessage.targetUserIds,
|
|
416
|
-
]);
|
|
417
|
-
key = generateChatGroupKey(Array.from(allParticipants));
|
|
418
|
-
}
|
|
419
|
-
if (this.chatGroups[key] === undefined)
|
|
420
|
-
this.chatGroups[key] = [];
|
|
421
|
-
let isEditedMessage = false;
|
|
422
|
-
let messages = [];
|
|
423
|
-
this.chatGroups[key].forEach((chat) => {
|
|
424
|
-
if (chat.type === 'chat' && chat.message.id === message.id) {
|
|
425
|
-
isEditedMessage = true;
|
|
426
|
-
messages.push({ type: 'chat', message: parsedMessage });
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
messages.push(chat);
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
if (!isEditedMessage) {
|
|
433
|
-
messages.push({ type: 'chat', message: parsedMessage });
|
|
434
|
-
}
|
|
435
|
-
this.chatGroups[key] = messages;
|
|
436
304
|
}
|
|
437
305
|
getRecipientPeerIds() {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
return peerIds;
|
|
306
|
+
if (!this.selectedParticipant)
|
|
307
|
+
return [];
|
|
308
|
+
return [this.selectedParticipant.id];
|
|
443
309
|
}
|
|
444
310
|
renderComposerUI() {
|
|
445
|
-
if (this.
|
|
311
|
+
if (!this.selectedParticipant) {
|
|
446
312
|
if (!this.canSendTextMessage && !this.canSendFiles)
|
|
447
313
|
return null;
|
|
448
314
|
}
|
|
@@ -464,28 +330,26 @@ const RtkChat = class {
|
|
|
464
330
|
if (!this.meeting) {
|
|
465
331
|
return null;
|
|
466
332
|
}
|
|
467
|
-
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')))),
|
|
333
|
+
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')))), h("rtk-chat-header", null), h("rtk-chat-messages-ui-paginated", { meeting: this.meeting, privateChatRecipient: this.selectedParticipant, onPinMessage: this.onPinMessage, onEditMessage: this.onMessageEdit, onDeleteMessage: this.onDeleteMessage, size: this.size, iconPack: this.iconPack, t: this.t }), this.renderComposerUI()))));
|
|
468
334
|
}
|
|
469
335
|
get host() { return getElement(this); }
|
|
470
336
|
static get watchers() { return {
|
|
471
|
-
"meeting": ["meetingChanged"]
|
|
472
|
-
"chatGroups": ["chatGroupsChanged"],
|
|
473
|
-
"displayFilter": ["onDisplayFilterChanged"]
|
|
337
|
+
"meeting": ["meetingChanged"]
|
|
474
338
|
}; }
|
|
475
339
|
};
|
|
476
|
-
__decorate$
|
|
340
|
+
__decorate$h([
|
|
477
341
|
SyncWithStore()
|
|
478
342
|
], RtkChat.prototype, "meeting", void 0);
|
|
479
|
-
__decorate$
|
|
343
|
+
__decorate$h([
|
|
480
344
|
SyncWithStore()
|
|
481
345
|
], RtkChat.prototype, "config", void 0);
|
|
482
|
-
__decorate$
|
|
346
|
+
__decorate$h([
|
|
483
347
|
SyncWithStore()
|
|
484
348
|
], RtkChat.prototype, "iconPack", void 0);
|
|
485
|
-
__decorate$
|
|
349
|
+
__decorate$h([
|
|
486
350
|
SyncWithStore()
|
|
487
351
|
], RtkChat.prototype, "t", void 0);
|
|
488
|
-
__decorate$
|
|
352
|
+
__decorate$h([
|
|
489
353
|
SyncWithStore()
|
|
490
354
|
], RtkChat.prototype, "overrides", void 0);
|
|
491
355
|
RtkChat.style = RtkChatStyle0;
|
|
@@ -493,7 +357,7 @@ RtkChat.style = RtkChatStyle0;
|
|
|
493
357
|
const rtkChatComposerViewCss = ":host {\n display: flex;\n flex-direction: column;\n font-family: var(--rtk-font-family, sans-serif);\n font-size: 14px;\n position: relative;\n}\n\n.quoted-message-container {\n margin-bottom: var(--rtk-space-2, 8px);\n display: flex;\n justify-content: space-between;\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-1000, 255 255 255));\n border-radius: var(--rtk-border-radius-md, 8px);\n border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));\n}\n\n.quoted-message-container .quoted-message {\n flex: 1 1 0%;\n padding: var(--rtk-space-2, 8px);\n border-radius: var(--rtk-border-radius-md, 8px);\n max-height: var(--rtk-space-24, 96px);\n overflow-y: auto;\n word-break: break-all;\n}\n\n.quoted-message-container .quoted-message blockquote {\n display: none;\n}\n\n.quoted-message-container rtk-icon.dismiss {\n margin-left: auto;\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n padding: var(--rtk-space-2, 8px);\n border-radius: var(--rtk-border-radius-md, 8px);\n color: rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));\n}\n\n.quoted-message-container rtk-icon.dismiss:hover {\n cursor: pointer;\n color: rgb(var(--rtk-colors-text-1000, 255 255 255));\n}\n\n.quoted-message-container rtk-icon.dismiss {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.composer-container {\n position: relative;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));\n border-radius: var(--rtk-border-radius-md, 8px);\n overflow: hidden;\n border: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));\n}\n\n.composer-container > .composers {\n min-height: 60px;\n }\n\n@container chatcontainer (height < 360px) {\n .composer-container > .composers {\n min-height: 30px;\n }\n}\n\n.chat-buttons {\n padding: var(--rtk-space-3, 12px);\n display: flex;\n align-items: center;\n justify-content: space-between;\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-1000, 255 255 255));\n}\n\n.chat-buttons .right {\n z-index: 10;\n}\n\n.chat-buttons .right .edit-buttons {\n display: flex;\n gap: var(--rtk-space-2, 8px);\n}\n\n.chat-buttons > div {\n display: flex;\n align-items: center;\n}\n\nrtk-emoji-picker {\n z-index: 20;\n position: absolute;\n top: calc(var(--rtk-space-72, 288px) * -1);\n border-top: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));\n animation: 0.3s slide-up ease;\n}\n\n@keyframes slide-up {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0%);\n }\n}\n";
|
|
494
358
|
const RtkChatComposerViewStyle0 = rtkChatComposerViewCss;
|
|
495
359
|
|
|
496
|
-
var __decorate$
|
|
360
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
497
361
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
498
362
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
499
363
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -674,18 +538,43 @@ const RtkChatComposerView = class {
|
|
|
674
538
|
} }, uiProps))), h("slot", { key: '31208ad279dec430da4527d22730de8e418bc722', name: "chat-buttons" })))), h("div", { key: '04fcdd3f690548cbf1e257ffb2982785e557726b', class: "right", part: "chat-buttons-right" }, !this.isEditing && (h("rtk-tooltip", { key: '367bf710673a0a2276f46d52289409abb77fe27b', variant: "primary", label: this.t('chat.send_msg'), delay: 2000 }, h("rtk-button", { key: 'c677e3026636c375ed7eee411c596f6d2a802794', kind: "icon", disabled: this.disableSendButton || this.isSending, onClick: () => this.handleSendMessage(), title: this.t('chat.send_msg') }, this.isSending ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.send }))))), this.isEditing && (h("div", { key: '1e09e8868e4ae048b36bc8198b8aa1de92209a00', class: "edit-buttons" }, h("rtk-tooltip", { key: '29ff7a39bd168169fa7d104357b529a2c9efe0fd', variant: "secondary", label: this.t('cancel'), delay: 2000 }, h("rtk-button", { key: '27cf5353d0e8c2620fd8d4213994a9dcc83f83f3', kind: "icon", variant: "secondary", onClick: () => this.handleEditCancel(), title: this.t('cancel') }, h("rtk-icon", { key: 'aeb4c9df3993c6cebf952f64f6676eb8a3866bb0', icon: this.iconPack.dismiss }))), h("rtk-tooltip", { key: '835195d0f51a1db81e66a1b2d9076a71f2aaee4e', variant: "primary", label: this.t('chat.update_msg'), delay: 2000 }, h("rtk-button", { key: 'd524f01ba5d7ca52224d39e23e7f963972ad80c9', kind: "icon", onClick: () => this.handleEditMessage(), title: this.t('chat.send_msg') }, this.isSending ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.checkmark })))))))))));
|
|
675
539
|
}
|
|
676
540
|
};
|
|
677
|
-
__decorate$
|
|
541
|
+
__decorate$g([
|
|
678
542
|
SyncWithStore()
|
|
679
543
|
], RtkChatComposerView.prototype, "iconPack", void 0);
|
|
680
|
-
__decorate$
|
|
544
|
+
__decorate$g([
|
|
681
545
|
SyncWithStore()
|
|
682
546
|
], RtkChatComposerView.prototype, "t", void 0);
|
|
683
547
|
RtkChatComposerView.style = RtkChatComposerViewStyle0;
|
|
684
548
|
|
|
549
|
+
const rtkChatHeaderCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;gap:var(--rtk-space-2, 8px);font-size:14px;z-index:10;margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);overflow:hidden;border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));cursor:pointer}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}";
|
|
550
|
+
const RtkChatHeaderStyle0 = rtkChatHeaderCss;
|
|
551
|
+
|
|
552
|
+
const RtkChatHeader = class {
|
|
553
|
+
constructor(hostRef) {
|
|
554
|
+
registerInstance(this, hostRef);
|
|
555
|
+
this.onPinnedToggle = async (e) => {
|
|
556
|
+
var _a, _b, _c;
|
|
557
|
+
if ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.open) {
|
|
558
|
+
await ((_c = (_b = this.$chatSelector) === null || _b === void 0 ? void 0 : _b.close) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
this.onChatToggle = async (e) => {
|
|
562
|
+
var _a, _b, _c;
|
|
563
|
+
if ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.open) {
|
|
564
|
+
await ((_c = (_b = this.$pinnedSelector) === null || _b === void 0 ? void 0 : _b.close) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
render() {
|
|
569
|
+
return (h(Host, { key: 'af9956ff6e693f29fb63a6180ef773a0e64822e5' }, h("rtk-pinned-message-selector", { key: 'b0d9199d02d84453f8ee26c3a47e00c82047e4f6', ref: (el) => (this.$pinnedSelector = el), onRtkDropdownToggle: this.onPinnedToggle }), h("rtk-chat-selector", { key: '4d019562a85ebfeaf4ceae2e99d1b9c8c282127a', ref: (el) => (this.$chatSelector = el), onRtkDropdownToggle: this.onChatToggle })));
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
RtkChatHeader.style = RtkChatHeaderStyle0;
|
|
573
|
+
|
|
685
574
|
const rtkChatMessagesUiPaginatedCss = ":host{display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));flex:1 0 0px}";
|
|
686
575
|
const RtkChatMessagesUiPaginatedStyle0 = rtkChatMessagesUiPaginatedCss;
|
|
687
576
|
|
|
688
|
-
var __decorate$
|
|
577
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
689
578
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
690
579
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
691
580
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -707,19 +596,37 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
707
596
|
this.iconPack = defaultIconPack;
|
|
708
597
|
/** Language */
|
|
709
598
|
this.t = useLanguage();
|
|
710
|
-
/** Whether to align chat bubbles to the left */
|
|
711
|
-
this.leftAlign = false;
|
|
712
599
|
this.permissionsChanged = false;
|
|
713
600
|
this.pageSize = 25;
|
|
714
601
|
this.permissionsUpdateListener = () => {
|
|
715
602
|
this.permissionsChanged = !this.permissionsChanged;
|
|
716
603
|
};
|
|
717
|
-
// TODO: Implement the logic to mark messages as read. Old usages have been kept as-is.
|
|
718
|
-
this.maybeMarkChatAsRead = (_messages) => { };
|
|
719
604
|
this.getChatMessages = async (timestamp, size, reversed) => {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
605
|
+
if (this.privateChatRecipient) {
|
|
606
|
+
try {
|
|
607
|
+
const messages = await this.meeting.chat.fetchPrivateMessages({
|
|
608
|
+
timestamp,
|
|
609
|
+
limit: size,
|
|
610
|
+
direction: reversed ? 'before' : 'after',
|
|
611
|
+
userId: this.privateChatRecipient.userId,
|
|
612
|
+
});
|
|
613
|
+
return messages;
|
|
614
|
+
}
|
|
615
|
+
catch (err) {
|
|
616
|
+
return [];
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
try {
|
|
620
|
+
const messages = await this.meeting.chat.fetchMessages({
|
|
621
|
+
timestamp,
|
|
622
|
+
limit: size,
|
|
623
|
+
direction: reversed ? 'before' : 'after',
|
|
624
|
+
});
|
|
625
|
+
return messages;
|
|
626
|
+
}
|
|
627
|
+
catch (err) {
|
|
628
|
+
return [];
|
|
629
|
+
}
|
|
723
630
|
};
|
|
724
631
|
this.createChatNodes = (data) => {
|
|
725
632
|
/**
|
|
@@ -727,8 +634,11 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
727
634
|
* will fail in current implementation
|
|
728
635
|
*/
|
|
729
636
|
return data.map((message, idx) => {
|
|
730
|
-
var _a;
|
|
637
|
+
var _a, _b;
|
|
731
638
|
const isContinued = message.userId === ((_a = data[idx - 1]) === null || _a === void 0 ? void 0 : _a.userId);
|
|
639
|
+
// FIXME(ikabra): Socket sends private messages sent to the recipient as a part of public messages
|
|
640
|
+
if (!this.privateChatRecipient && ((_b = message.targetUserIds) === null || _b === void 0 ? void 0 : _b.length) > 0)
|
|
641
|
+
return;
|
|
732
642
|
return this.createChatNode(message, isContinued);
|
|
733
643
|
});
|
|
734
644
|
};
|
|
@@ -738,13 +648,17 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
738
648
|
(_b = this.meeting) === null || _b === void 0 ? void 0 : _b.self.permissions.removeListener('permissionsUpdate', this.permissionsUpdateListener);
|
|
739
649
|
};
|
|
740
650
|
this.getMessageActions = (message) => {
|
|
651
|
+
var _a;
|
|
741
652
|
const actions = [];
|
|
742
653
|
const messageBelongsToSelf = message.userId === this.meeting.self.userId;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
654
|
+
const isPrivateMessage = ((_a = message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
655
|
+
if (!isPrivateMessage) {
|
|
656
|
+
actions.push({
|
|
657
|
+
id: 'pin_message',
|
|
658
|
+
label: message.pinned ? this.t('unpin') : this.t('pin'),
|
|
659
|
+
icon: this.iconPack.pin,
|
|
660
|
+
});
|
|
661
|
+
}
|
|
748
662
|
if (messageBelongsToSelf) {
|
|
749
663
|
actions.push({
|
|
750
664
|
id: 'edit_message',
|
|
@@ -774,8 +688,6 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
774
688
|
};
|
|
775
689
|
this.createChatNode = (message, isContinued) => {
|
|
776
690
|
var _a, _b, _c, _d;
|
|
777
|
-
if (message.targetUserIds.length !== 0)
|
|
778
|
-
return null; // don't render private messages
|
|
779
691
|
let displayPicture;
|
|
780
692
|
if (this.meeting.meta.viewType === 'CHAT') {
|
|
781
693
|
displayPicture = (_a = this.meeting.participants.all
|
|
@@ -800,9 +712,18 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
800
712
|
} }))))))));
|
|
801
713
|
};
|
|
802
714
|
this.chatUpdateListener = (data) => {
|
|
715
|
+
var _a, _b, _c;
|
|
716
|
+
// if private message and not for privateChatRecipient, ignore
|
|
717
|
+
// if private message and public chat selected, ignore
|
|
718
|
+
if (((_a = data.message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
719
|
+
!data.message.targetUserIds.includes((_b = this.privateChatRecipient) === null || _b === void 0 ? void 0 : _b.userId))
|
|
720
|
+
return;
|
|
721
|
+
// if public message and private chat selected, ignore
|
|
722
|
+
if (this.privateChatRecipient && ((_c = data.message.targetUserIds) === null || _c === void 0 ? void 0 : _c.length) === 0) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
803
725
|
if (data.action === 'add') {
|
|
804
726
|
this.$paginatedListRef.onNewNode(data.message);
|
|
805
|
-
this.maybeMarkChatAsRead([data.message]);
|
|
806
727
|
}
|
|
807
728
|
else if (data.action === 'delete') {
|
|
808
729
|
this.$paginatedListRef.onNodeDelete(data.message.id);
|
|
@@ -821,9 +742,20 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
821
742
|
connectedCallback() {
|
|
822
743
|
this.meetingChanged(this.meeting);
|
|
823
744
|
}
|
|
745
|
+
async onPinnedMessageSelect(event) {
|
|
746
|
+
var _a, _b;
|
|
747
|
+
const message = event.detail;
|
|
748
|
+
if (!message)
|
|
749
|
+
return;
|
|
750
|
+
await ((_b = (_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.reset) === null || _b === void 0 ? void 0 : _b.call(_a, message.timeMs + 1));
|
|
751
|
+
}
|
|
824
752
|
disconnectedCallback() {
|
|
825
753
|
this.disconnectMeeting(this.meeting);
|
|
826
754
|
}
|
|
755
|
+
privateChatRecipientChanged() {
|
|
756
|
+
var _a;
|
|
757
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.reset();
|
|
758
|
+
}
|
|
827
759
|
meetingChanged(meeting, oldMeeting) {
|
|
828
760
|
var _a;
|
|
829
761
|
if (oldMeeting != undefined)
|
|
@@ -837,28 +769,219 @@ const RtkChatMessagesUiPaginated = class {
|
|
|
837
769
|
this.permissionsUpdateListener();
|
|
838
770
|
}
|
|
839
771
|
render() {
|
|
840
|
-
return (h(Host, { key: '
|
|
772
|
+
return (h(Host, { key: 'efacd583cb3477a4aa9bc305d2e2d175f1f01492' }, h("rtk-paginated-list", { key: 'c0d100b90c426f9f57840008185510db1ad769eb', ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getChatMessages, createNodes: this.createChatNodes, emptyListLabel: this.t('chat.empty_chat') }, h("slot", { key: 'f587f2644be8f00c31af09d46aa6d166ae7342fd' }))));
|
|
841
773
|
}
|
|
842
774
|
get host() { return getElement(this); }
|
|
843
775
|
static get watchers() { return {
|
|
776
|
+
"privateChatRecipient": ["privateChatRecipientChanged"],
|
|
844
777
|
"meeting": ["meetingChanged"]
|
|
845
778
|
}; }
|
|
846
779
|
};
|
|
847
|
-
__decorate$
|
|
780
|
+
__decorate$f([
|
|
848
781
|
SyncWithStore()
|
|
849
782
|
], RtkChatMessagesUiPaginated.prototype, "meeting", void 0);
|
|
850
|
-
__decorate$
|
|
783
|
+
__decorate$f([
|
|
851
784
|
SyncWithStore()
|
|
852
785
|
], RtkChatMessagesUiPaginated.prototype, "iconPack", void 0);
|
|
853
|
-
__decorate$
|
|
786
|
+
__decorate$f([
|
|
854
787
|
SyncWithStore()
|
|
855
788
|
], RtkChatMessagesUiPaginated.prototype, "t", void 0);
|
|
856
789
|
RtkChatMessagesUiPaginated.style = RtkChatMessagesUiPaginatedStyle0;
|
|
857
790
|
|
|
791
|
+
const rtkChatSelectorCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;font-size:14px;position:relative;box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}.dropdown{position:absolute;top:100%;z-index:10;padding:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));opacity:0;overflow:hidden;pointer-events:none;border-bottom-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);left:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);max-width:calc(100vw - var(--rtk-space-4, 16px));box-sizing:border-box}.dropdown.open{display:flex;flex-direction:column;max-height:30vh;opacity:1;overflow:hidden;pointer-events:auto;border-width:1px;border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity))}.dropdown rtk-paginated-list{display:flex;max-height:30vh;min-height:12vh;flex-direction:column}.public-chat-group-label{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-bottom-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}.public-chat-icon{display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-1, 4px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}";
|
|
792
|
+
const RtkChatSelectorStyle0 = rtkChatSelectorCss;
|
|
793
|
+
|
|
794
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
795
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
796
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
797
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
798
|
+
else
|
|
799
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
800
|
+
if (d = decorators[i])
|
|
801
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
802
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
803
|
+
};
|
|
804
|
+
const RtkChatSelector = class {
|
|
805
|
+
constructor(hostRef) {
|
|
806
|
+
registerInstance(this, hostRef);
|
|
807
|
+
this.dropdownToggle = createEvent(this, "rtkDropdownToggle", 7);
|
|
808
|
+
this.chatSelectorChange = createEvent(this, "rtkChatSelectorChange", 7);
|
|
809
|
+
/** Config */
|
|
810
|
+
this.config = createDefaultConfig();
|
|
811
|
+
/** Icon pack */
|
|
812
|
+
this.iconPack = defaultIconPack;
|
|
813
|
+
/** Language */
|
|
814
|
+
this.t = useLanguage();
|
|
815
|
+
/** UI Overrides */
|
|
816
|
+
this.overrides = defaultOverrides;
|
|
817
|
+
this.isOpen = false;
|
|
818
|
+
this.showPrivateChat = false;
|
|
819
|
+
this.selectedUser = undefined;
|
|
820
|
+
//NOTE(ikabra): Fix this value once backend supports pagination for participants
|
|
821
|
+
this.pageSize = 100000;
|
|
822
|
+
this.pagesAllowed = 3;
|
|
823
|
+
this.unreadMap = new Map();
|
|
824
|
+
this.disconnectMeeting = (meeting) => {
|
|
825
|
+
var _a, _b, _c, _d;
|
|
826
|
+
const { self, participants } = meeting || {};
|
|
827
|
+
(_a = meeting.chat) === null || _a === void 0 ? void 0 : _a.off('chatUpdate', this.chatUpdateListener);
|
|
828
|
+
(_b = self === null || self === void 0 ? void 0 : self.permissions) === null || _b === void 0 ? void 0 : _b.off('*', this.chatPermissionUpdateListener);
|
|
829
|
+
(_c = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _c === void 0 ? void 0 : _c.off('participantJoined', this.participantJoinedListener);
|
|
830
|
+
(_d = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _d === void 0 ? void 0 : _d.off('participantLeft', this.participantLeftListener);
|
|
831
|
+
};
|
|
832
|
+
this.toggle = (e) => {
|
|
833
|
+
e.preventDefault();
|
|
834
|
+
e.stopPropagation();
|
|
835
|
+
this.isOpen = !this.isOpen;
|
|
836
|
+
this.dropdownToggle.emit({ open: this.isOpen });
|
|
837
|
+
};
|
|
838
|
+
this.selectUser = async (user) => {
|
|
839
|
+
if (user === null || user === void 0 ? void 0 : user.userId) {
|
|
840
|
+
this.unreadMap.set(user.userId, false);
|
|
841
|
+
this.$paginatedListRef.rerenderList();
|
|
842
|
+
}
|
|
843
|
+
this.selectedUser = user;
|
|
844
|
+
this.chatSelectorChange.emit({ selectedUser: user });
|
|
845
|
+
await this.close();
|
|
846
|
+
};
|
|
847
|
+
this.chatPermissionUpdateListener = () => {
|
|
848
|
+
var _a, _b;
|
|
849
|
+
this.showPrivateChat = !!(((_a = this.meeting.self.permissions.chatPrivate) === null || _a === void 0 ? void 0 : _a.canSend) ||
|
|
850
|
+
((_b = this.meeting.self.permissions.chatPrivate) === null || _b === void 0 ? void 0 : _b.canReceive));
|
|
851
|
+
if (!this.showPrivateChat) {
|
|
852
|
+
this.selectedUser = undefined;
|
|
853
|
+
this.chatSelectorChange.emit({ selectedUser: undefined });
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
this.onParticipantUpdate = () => {
|
|
857
|
+
var _a, _b, _c, _d;
|
|
858
|
+
if (!this.selectedUser)
|
|
859
|
+
return;
|
|
860
|
+
const participants = ((_d = (_c = (_b = (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.participants) === null || _b === void 0 ? void 0 : _b.joined) === null || _c === void 0 ? void 0 : _c.toArray) === null || _d === void 0 ? void 0 : _d.call(_c)) || [];
|
|
861
|
+
if (!participants.some((p) => { var _a; return p.id === ((_a = this.selectedUser) === null || _a === void 0 ? void 0 : _a.id); })) {
|
|
862
|
+
this.selectedUser = undefined;
|
|
863
|
+
this.chatSelectorChange.emit({ selectedUser: undefined });
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
this.participantJoinedListener = (data) => {
|
|
867
|
+
this.$paginatedListRef.onNewNode(data);
|
|
868
|
+
};
|
|
869
|
+
this.participantLeftListener = (data) => {
|
|
870
|
+
this.$paginatedListRef.onNodeDelete(data.id);
|
|
871
|
+
this.onParticipantUpdate();
|
|
872
|
+
};
|
|
873
|
+
// @ts-ignore - unused params
|
|
874
|
+
this.getParticipants = async (timestamp, size, reversed) => {
|
|
875
|
+
const meeting = this.meeting;
|
|
876
|
+
if (!meeting)
|
|
877
|
+
return [];
|
|
878
|
+
/**
|
|
879
|
+
* FIXME(ikabra): This is a temporary hack in place to handle the initial load
|
|
880
|
+
* and not repeat participants when a user reaches the top of the list.
|
|
881
|
+
* This must be replaced by actual pagination APIs from backend for participants.
|
|
882
|
+
*/
|
|
883
|
+
if (!timestamp)
|
|
884
|
+
return [];
|
|
885
|
+
const participants = meeting.participants.joined.toArray();
|
|
886
|
+
return participants;
|
|
887
|
+
};
|
|
888
|
+
this.createPaticipantNodes = (data) => {
|
|
889
|
+
return data.map((participant) => {
|
|
890
|
+
var _a;
|
|
891
|
+
return (h("div", { class: "private-chat-label", id: participant.id, onClick: () => this.selectUser(participant) }, h("rtk-avatar", { size: "sm", participant: participant }), h("span", null, (_a = participant.name) !== null && _a !== void 0 ? _a : this.t('participant')), this.unreadMap.get(participant.userId) ? (h("div", { class: "private-chat-unread-badge" })) : null));
|
|
892
|
+
});
|
|
893
|
+
};
|
|
894
|
+
this.chatUpdateListener = (data) => {
|
|
895
|
+
var _a;
|
|
896
|
+
if (data.action !== 'add')
|
|
897
|
+
return;
|
|
898
|
+
if (!((_a = data.message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length))
|
|
899
|
+
return;
|
|
900
|
+
const selfUserId = this.meeting.self.userId;
|
|
901
|
+
const otherUserId = data.message.targetUserIds.find((id) => id !== selfUserId);
|
|
902
|
+
if (!otherUserId)
|
|
903
|
+
return;
|
|
904
|
+
this.unreadMap.set(otherUserId, true);
|
|
905
|
+
this.$paginatedListRef.rerenderList();
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
/** */
|
|
909
|
+
async close() {
|
|
910
|
+
if (!this.isOpen)
|
|
911
|
+
return;
|
|
912
|
+
this.isOpen = false;
|
|
913
|
+
this.dropdownToggle.emit({ open: false });
|
|
914
|
+
}
|
|
915
|
+
connectedCallback() {
|
|
916
|
+
this.meetingChanged(this.meeting);
|
|
917
|
+
this.overridesChanged(this.overrides);
|
|
918
|
+
}
|
|
919
|
+
disconnectedCallback() {
|
|
920
|
+
var _a, _b, _c;
|
|
921
|
+
if (!this.meeting)
|
|
922
|
+
return;
|
|
923
|
+
const { self, participants } = this.meeting;
|
|
924
|
+
(_a = self === null || self === void 0 ? void 0 : self.permissions) === null || _a === void 0 ? void 0 : _a.off('*', this.chatPermissionUpdateListener);
|
|
925
|
+
(_b = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _b === void 0 ? void 0 : _b.off('participantJoined', this.participantJoinedListener);
|
|
926
|
+
(_c = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _c === void 0 ? void 0 : _c.off('participantLeft', this.participantLeftListener);
|
|
927
|
+
}
|
|
928
|
+
overridesChanged(overrides) {
|
|
929
|
+
var _a, _b;
|
|
930
|
+
if (!this.meeting || this.meeting.self)
|
|
931
|
+
return;
|
|
932
|
+
this.showPrivateChat =
|
|
933
|
+
!!(((_a = this.meeting.self.permissions.chatPrivate) === null || _a === void 0 ? void 0 : _a.canSend) ||
|
|
934
|
+
((_b = this.meeting.self.permissions.chatPrivate) === null || _b === void 0 ? void 0 : _b.canReceive)) && !overrides.disablePrivateChat;
|
|
935
|
+
}
|
|
936
|
+
meetingChanged(meeting, oldMeeting) {
|
|
937
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
938
|
+
if (oldMeeting)
|
|
939
|
+
this.disconnectMeeting(oldMeeting);
|
|
940
|
+
if (!meeting || !meeting.chat)
|
|
941
|
+
return;
|
|
942
|
+
this.showPrivateChat =
|
|
943
|
+
!!(((_a = meeting.self.permissions.chatPrivate) === null || _a === void 0 ? void 0 : _a.canSend) ||
|
|
944
|
+
((_b = meeting.self.permissions.chatPrivate) === null || _b === void 0 ? void 0 : _b.canReceive)) && !this.overrides.disablePrivateChat;
|
|
945
|
+
this.onParticipantUpdate();
|
|
946
|
+
(_c = meeting.chat) === null || _c === void 0 ? void 0 : _c.on('chatUpdate', this.chatUpdateListener);
|
|
947
|
+
meeting.self.permissions.on('*', this.chatPermissionUpdateListener);
|
|
948
|
+
(_e = (_d = meeting === null || meeting === void 0 ? void 0 : meeting.participants) === null || _d === void 0 ? void 0 : _d.joined) === null || _e === void 0 ? void 0 : _e.on('participantJoined', this.participantJoinedListener);
|
|
949
|
+
(_g = (_f = meeting === null || meeting === void 0 ? void 0 : meeting.participants) === null || _f === void 0 ? void 0 : _f.joined) === null || _g === void 0 ? void 0 : _g.on('participantLeft', this.participantLeftListener);
|
|
950
|
+
}
|
|
951
|
+
render() {
|
|
952
|
+
if (!this.showPrivateChat)
|
|
953
|
+
return null;
|
|
954
|
+
return (h(Host, null, h("div", { class: "chat-header", onClick: this.toggle }, h("div", { class: "chat-header-label" }, h("rtk-icon", { icon: this.iconPack.participants, size: "sm" }), !this.selectedUser ? this.t('chat.everyone') : this.selectedUser.name), h("div", { class: "chevron" }, h("rtk-icon", { icon: this.isOpen ? this.iconPack.chevron_up : this.iconPack.chevron_down, size: "sm" }))), h("div", { class: { dropdown: true, open: this.isOpen, scrollbar: true } }, h("div", { class: "public-chat-group-label", onClick: () => this.selectUser(undefined) }, h("div", { class: "public-chat-icon" }, h("rtk-icon", { icon: this.iconPack.participants, size: "sm" })), this.t('chat.everyone')), h("rtk-paginated-list", { class: "chat-selector-paginated-list", ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getParticipants, createNodes: this.createPaticipantNodes, emptyListLabel: this.t('participants.empty_list') }, h("slot", null)))));
|
|
955
|
+
}
|
|
956
|
+
static get watchers() { return {
|
|
957
|
+
"overrides": ["overridesChanged"],
|
|
958
|
+
"meeting": ["meetingChanged"]
|
|
959
|
+
}; }
|
|
960
|
+
};
|
|
961
|
+
__decorate$e([
|
|
962
|
+
SyncWithStore()
|
|
963
|
+
], RtkChatSelector.prototype, "meeting", void 0);
|
|
964
|
+
__decorate$e([
|
|
965
|
+
SyncWithStore()
|
|
966
|
+
], RtkChatSelector.prototype, "states", void 0);
|
|
967
|
+
__decorate$e([
|
|
968
|
+
SyncWithStore()
|
|
969
|
+
], RtkChatSelector.prototype, "config", void 0);
|
|
970
|
+
__decorate$e([
|
|
971
|
+
SyncWithStore()
|
|
972
|
+
], RtkChatSelector.prototype, "iconPack", void 0);
|
|
973
|
+
__decorate$e([
|
|
974
|
+
SyncWithStore()
|
|
975
|
+
], RtkChatSelector.prototype, "t", void 0);
|
|
976
|
+
__decorate$e([
|
|
977
|
+
SyncWithStore()
|
|
978
|
+
], RtkChatSelector.prototype, "overrides", void 0);
|
|
979
|
+
RtkChatSelector.style = RtkChatSelectorStyle0;
|
|
980
|
+
|
|
858
981
|
const rtkDraftAttachmentViewCss = ":host{display:flex;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px)}.preview-overlay{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);background-color:inherit}.preview{position:absolute;top:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);max-width:-moz-fit-content;max-width:fit-content;max-height:var(--rtk-space-20, 80px)}.preview:hover rtk-tooltip{display:block}.preview rtk-tooltip{position:absolute;top:calc(var(--rtk-space-1, 4px) * -1);left:calc(var(--rtk-space-1, 4px) * -1);display:none;margin-left:calc(var(--rtk-space-1, 4px) * -1);margin-top:calc(var(--rtk-space-1, 4px) * -1)}.preview rtk-button{display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));border:1px solid rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview-image{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);-o-object-fit:cover;object-fit:cover;max-height:100%;max-width:100%;overflow:clip;border-radius:var(--rtk-border-radius-md, 8px)}.preview-file{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}";
|
|
859
982
|
const RtkDraftAttachmentViewStyle0 = rtkDraftAttachmentViewCss;
|
|
860
983
|
|
|
861
|
-
var __decorate$
|
|
984
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
862
985
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
863
986
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
864
987
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -909,16 +1032,16 @@ const RtkDraftAttachmentView = class {
|
|
|
909
1032
|
this.onAttachmentChange();
|
|
910
1033
|
}
|
|
911
1034
|
render() {
|
|
912
|
-
return (h(Host, { key: '
|
|
1035
|
+
return (h(Host, { key: '51ac9914a6c3626f3abd63d8101dd33d956f0cb0' }, h("div", { key: '9520035fca81e905b7bcc3696ec9803ca127a370', class: "preview-overlay" }, h("div", { key: '6c8139ece3ce95836f7853a160c0a01e298c2892', class: "preview" }, h("rtk-tooltip", { key: 'd3379d7a4a3b09c15d75ec4fce8bc7c2e89b1df4', label: this.t('chat.cancel_upload') }, h("rtk-button", { key: 'd5badd1b4a2fce0f2958d8923adde9353562eb8a', variant: "secondary", kind: "icon", onClick: this.onDeleteClickHandler }, h("rtk-icon", { key: '4acde8f6352eab6e2277f6317ef226d22defe4e0', 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)))))));
|
|
913
1036
|
}
|
|
914
1037
|
static get watchers() { return {
|
|
915
1038
|
"attachment": ["onAttachmentChange"]
|
|
916
1039
|
}; }
|
|
917
1040
|
};
|
|
918
|
-
__decorate$
|
|
1041
|
+
__decorate$d([
|
|
919
1042
|
SyncWithStore()
|
|
920
1043
|
], RtkDraftAttachmentView.prototype, "iconPack", void 0);
|
|
921
|
-
__decorate$
|
|
1044
|
+
__decorate$d([
|
|
922
1045
|
SyncWithStore()
|
|
923
1046
|
], RtkDraftAttachmentView.prototype, "t", void 0);
|
|
924
1047
|
RtkDraftAttachmentView.style = RtkDraftAttachmentViewStyle0;
|
|
@@ -937,10 +1060,10 @@ const fetchEmojis = async () => {
|
|
|
937
1060
|
return cachedEmojis;
|
|
938
1061
|
};
|
|
939
1062
|
|
|
940
|
-
const rtkEmojiPickerCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{width:100%}.emoji-parent{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-64, 256px);width:100%;max-width:640px;flex-direction:column;padding:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-0, 0px);-webkit-user-select:none;-moz-user-select:none;user-select:none;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.close-parent{display:flex;flex:1 1 0%;justify-content:flex-end;padding:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#emoji-grid{margin-top:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;overflow-x:hidden;overflow-y:scroll;height:100%;grid-auto-rows:minmax(min-content, max-content)}#loader{display:flex;height:100%;width:100%;align-items:center;justify-content:center}input{display:block;height:var(--rtk-space-8, 32px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;border-width:var(--rtk-border-width-none, 0);border-style:solid;border-style:none;border-color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}input::placeholder{color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}input{border-radius:var(--rtk-border-radius-sm, 4px);outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
|
|
1063
|
+
const rtkEmojiPickerCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{width:100%}.emoji-parent{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-64, 256px);width:100%;max-width:640px;flex-direction:column;padding:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-0, 0px);-webkit-user-select:none;-moz-user-select:none;user-select:none;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.close-parent{display:flex;flex:1 1 0%;justify-content:flex-end;padding:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#emoji-grid{margin-top:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;overflow-x:hidden;overflow-y:scroll;height:100%;grid-auto-rows:minmax(min-content, max-content)}#loader{display:flex;height:100%;width:100%;align-items:center;justify-content:center}input{display:block;height:var(--rtk-space-8, 32px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;border-width:var(--rtk-border-width-none, 0);border-style:solid;border-style:none;border-color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}input::placeholder{color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}input{border-radius:var(--rtk-border-radius-sm, 4px);outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-ring-opacity));--tw-ring-opacity:0.3}.emoji{height:var(--rtk-space-10, 40px);width:var(--rtk-space-10, 40px);font-size:20px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}";
|
|
941
1064
|
const RtkEmojiPickerStyle0 = rtkEmojiPickerCss;
|
|
942
1065
|
|
|
943
|
-
var __decorate$
|
|
1066
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
944
1067
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
945
1068
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
946
1069
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -994,13 +1117,13 @@ const RtkEmojiPicker = class {
|
|
|
994
1117
|
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)))));
|
|
995
1118
|
}
|
|
996
1119
|
render() {
|
|
997
|
-
return (h(Host, { key: '
|
|
1120
|
+
return (h(Host, { key: 'db0bbe8c8af774ca199ac800fb2a0fba9ef7ab6d' }, h("div", { key: '3e51dd2b14a87ebc0c65ee406ec67f92722296ab', class: 'close-parent' }, h("rtk-button", { key: 'a8697bf95723f0598de3e2b6f88729562466ed81', 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: 'dc787e4ccf8a6f170ccd1f0954602a08a85b12ad', icon: this.iconPack.dismiss }))), h("div", { key: '77f7377f40708c4f5fa3e531621660bf68f01b4b', class: 'emoji-parent' }, h("input", { key: '7db399dc58c0c6863db8ed1c80ac313417eab8c9', value: this.filterVal, onInput: (event) => this.handleInputChange(event.target), placeholder: this.t('search'), ref: (el) => (this.inputElement = el) }), this.mapEmojiList())));
|
|
998
1121
|
}
|
|
999
1122
|
};
|
|
1000
|
-
__decorate$
|
|
1123
|
+
__decorate$c([
|
|
1001
1124
|
SyncWithStore()
|
|
1002
1125
|
], RtkEmojiPicker.prototype, "iconPack", void 0);
|
|
1003
|
-
__decorate$
|
|
1126
|
+
__decorate$c([
|
|
1004
1127
|
SyncWithStore()
|
|
1005
1128
|
], RtkEmojiPicker.prototype, "t", void 0);
|
|
1006
1129
|
RtkEmojiPicker.style = RtkEmojiPickerStyle0;
|
|
@@ -1008,7 +1131,7 @@ RtkEmojiPicker.style = RtkEmojiPickerStyle0;
|
|
|
1008
1131
|
const rtkEmojiPickerButtonCss = ":host{}";
|
|
1009
1132
|
const RtkEmojiPickerButtonStyle0 = rtkEmojiPickerButtonCss;
|
|
1010
1133
|
|
|
1011
|
-
var __decorate$
|
|
1134
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1012
1135
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1013
1136
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1014
1137
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1027,13 +1150,13 @@ const RtkEmojiPickerButton = class {
|
|
|
1027
1150
|
this.t = useLanguage();
|
|
1028
1151
|
}
|
|
1029
1152
|
render() {
|
|
1030
|
-
return (h("rtk-tooltip", { key: '
|
|
1153
|
+
return (h("rtk-tooltip", { key: '82c39530cddfd5cab8672cc5f7f590587749f9cc', label: this.t('chat.send_emoji') }, h("rtk-button", { key: '8e7ee7dbe901b78482ad3f828bb28bda1fdc36b7', variant: "ghost", kind: "icon", class: { active: this.isActive }, title: this.t('chat.send_emoji') }, h("rtk-icon", { key: 'a83691903dae86b3cb7c8cf17fb488e4da13090b', icon: this.iconPack.emoji_multiple }))));
|
|
1031
1154
|
}
|
|
1032
1155
|
};
|
|
1033
|
-
__decorate$
|
|
1156
|
+
__decorate$b([
|
|
1034
1157
|
SyncWithStore()
|
|
1035
1158
|
], RtkEmojiPickerButton.prototype, "iconPack", void 0);
|
|
1036
|
-
__decorate$
|
|
1159
|
+
__decorate$b([
|
|
1037
1160
|
SyncWithStore()
|
|
1038
1161
|
], RtkEmojiPickerButton.prototype, "t", void 0);
|
|
1039
1162
|
RtkEmojiPickerButton.style = RtkEmojiPickerButtonStyle0;
|
|
@@ -1041,7 +1164,7 @@ RtkEmojiPickerButton.style = RtkEmojiPickerButtonStyle0;
|
|
|
1041
1164
|
const rtkFileMessageViewCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.file .file-data{margin-left:var(--rtk-space-1, 4px);flex:1 1 0%}.file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}";
|
|
1042
1165
|
const RtkFileMessageViewStyle0 = rtkFileMessageViewCss;
|
|
1043
1166
|
|
|
1044
|
-
var __decorate$
|
|
1167
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1045
1168
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1046
1169
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1047
1170
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1058,10 +1181,10 @@ const RtkFileMessageView = class {
|
|
|
1058
1181
|
this.iconPack = defaultIconPack;
|
|
1059
1182
|
}
|
|
1060
1183
|
render() {
|
|
1061
|
-
return (h("div", { key: '
|
|
1184
|
+
return (h("div", { key: '9fce348979b0354484f0deeddc6e55007ef70ae5', class: "file" }, h("rtk-button", { key: '22bc5f6cdff07ec4f9cdb1b588b64e5e604d0029', variant: "secondary", kind: "icon", onClick: () => downloadFile(sanitizeLink(this.url), { name: this.name, fallbackName: 'file' }), part: "button" }, h("rtk-icon", { key: '3d46920c69604896bba651ae8205d3a761ffdeb7', icon: this.iconPack.download })), h("div", { key: 'c42a4c9bdd415d4d307efcb4f375f575220e473a', class: "file-data" }, h("div", { key: 'fe9bd86c88ce3184ed0b38dfe312bf7ac0207551', class: "name" }, this.name), h("div", { key: '93aa6bf4c3933b292c59a1522b8398e96938aba3', class: "file-data-split" }, h("div", { key: '2807cbf9844af17617ec76db10689fc6dcb80e0e', class: "ext" }, getExtension(this.name)), h("span", { key: 'fa0a03cf79b2f4dee34a11fb0a0bf82a608ca3c1', class: "divider" }), h("div", { key: '0fd5d15e43aca15ffd3ae2fc6b176c0455ea5db3', class: "size" }, getFileSize(this.size))))));
|
|
1062
1185
|
}
|
|
1063
1186
|
};
|
|
1064
|
-
__decorate$
|
|
1187
|
+
__decorate$a([
|
|
1065
1188
|
SyncWithStore()
|
|
1066
1189
|
], RtkFileMessageView.prototype, "iconPack", void 0);
|
|
1067
1190
|
RtkFileMessageView.style = RtkFileMessageViewStyle0;
|
|
@@ -1069,7 +1192,7 @@ RtkFileMessageView.style = RtkFileMessageViewStyle0;
|
|
|
1069
1192
|
const rtkFilePickerButtonCss = ":host{}";
|
|
1070
1193
|
const RtkFilePickerButtonStyle0 = rtkFilePickerButtonCss;
|
|
1071
1194
|
|
|
1072
|
-
var __decorate$
|
|
1195
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1073
1196
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1074
1197
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1075
1198
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1114,13 +1237,13 @@ const RtkFilePickerButton = class {
|
|
|
1114
1237
|
render() {
|
|
1115
1238
|
const label = this.label || this.t('chat.send_file');
|
|
1116
1239
|
const icon = this.iconPack[this.icon];
|
|
1117
|
-
return (h("rtk-tooltip", { key: '
|
|
1240
|
+
return (h("rtk-tooltip", { key: 'c97c7e1e106e14f2443dd405fd6657a14d9d315c', label: label }, h("rtk-button", { key: 'cffa7ef14cc7fe0285e642ca76b658b6c70d4b42', variant: "ghost", kind: "icon", onClick: () => this.uploadFile(), title: label }, h("rtk-icon", { key: '47133f919946ce2a63e4f2b64977f1127a4eae7c', icon: icon }))));
|
|
1118
1241
|
}
|
|
1119
1242
|
};
|
|
1120
|
-
__decorate$
|
|
1243
|
+
__decorate$9([
|
|
1121
1244
|
SyncWithStore()
|
|
1122
1245
|
], RtkFilePickerButton.prototype, "iconPack", void 0);
|
|
1123
|
-
__decorate$
|
|
1246
|
+
__decorate$9([
|
|
1124
1247
|
SyncWithStore()
|
|
1125
1248
|
], RtkFilePickerButton.prototype, "t", void 0);
|
|
1126
1249
|
RtkFilePickerButton.style = RtkFilePickerButtonStyle0;
|
|
@@ -1153,7 +1276,7 @@ RtkIcon.style = RtkIconStyle0;
|
|
|
1153
1276
|
const rtkImageMessageViewCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}.image{display:block;font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));position:relative;height:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);cursor:pointer}.image img{display:none;height:100%;width:100%;border-radius:var(--rtk-border-radius-sm, 4px);-o-object-fit:cover;object-fit:cover}.image .image-spinner{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.image .image-spinner rtk-spinner{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.image .image-errored{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.image .actions{display:none;height:var(--rtk-space-8, 32px);align-items:center;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.image .actions .action{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-none, 0);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.image .actions .action:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.image.loaded img{display:block}.image.loaded .image-spinner{display:none}.image:hover .actions,.image:focus .actions{display:flex}";
|
|
1154
1277
|
const RtkImageMessageViewStyle0 = rtkImageMessageViewCss;
|
|
1155
1278
|
|
|
1156
|
-
var __decorate$
|
|
1279
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1157
1280
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1158
1281
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1159
1282
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1174,7 +1297,7 @@ const RtkImageMessageView = class {
|
|
|
1174
1297
|
this.status = 'loading';
|
|
1175
1298
|
}
|
|
1176
1299
|
render() {
|
|
1177
|
-
return (h("div", { key: '
|
|
1300
|
+
return (h("div", { key: '5fd48d25a86c8a1f3084ff4c27ba95ddca04482f', class: { image: true, loaded: this.status === 'loaded' } }, h("img", { key: '99d019ebaf2e4deb2f6f9f8541f1bd67bc089fee', src: sanitizeLink(this.url), onLoad: () => {
|
|
1178
1301
|
this.status = 'loaded';
|
|
1179
1302
|
}, onError: () => {
|
|
1180
1303
|
this.status = 'errored';
|
|
@@ -1182,20 +1305,20 @@ const RtkImageMessageView = class {
|
|
|
1182
1305
|
if (this.status === 'loaded') {
|
|
1183
1306
|
this.onPreview.emit(this.url);
|
|
1184
1307
|
}
|
|
1185
|
-
} }), this.status === 'loading' && (h("div", { key: '
|
|
1308
|
+
} }), this.status === 'loading' && (h("div", { key: '9e0eba0b06ee2039d0a36f598e2b55b79c6d4151', class: "image-spinner", title: this.t('chat.img.loading'), "aria-label": this.t('chat.img.loading') }, h("rtk-spinner", { key: '0488df56c74ff7fbcb30ae7a16f77eca57cdd50a', iconPack: this.iconPack }))), this.status === 'errored' && (h("div", { key: 'd4f2cc45d94be0a4519d93169e337522f30949cf', class: "image-errored", title: this.t('chat.error.img_not_found'), "aria-label": this.t('chat.error.img_not_found') }, h("rtk-icon", { key: 'a633902737fe1a4690f349092fedb6d0c7a18bbf', icon: this.iconPack.image_off }))), this.status === 'loaded' && (h("div", { key: 'bfb0b8f3f130315e1691dd87f9be6de211d669cd', class: "actions" }, h("rtk-button", { key: 'c0e200f62e7896b11f0cb1717e15db96223b2b45', class: "action", variant: "secondary", kind: "icon", onClick: () => {
|
|
1186
1309
|
this.onPreview.emit(this.url);
|
|
1187
|
-
} }, h("rtk-icon", { key: '
|
|
1310
|
+
} }, h("rtk-icon", { key: '2527495fac5a7760c7a320c7f3fc769b4321dd66', icon: this.iconPack.full_screen_maximize })), h("rtk-button", { key: '80f46436895374dc43f9a3fb1adf2472c82c328b', class: "action", variant: "secondary", kind: "icon", onClick: () => downloadFile(this.url, { fallbackName: 'image' }) }, h("rtk-icon", { key: '5650cc2537980b244b31b937a5d367a800d0b0f9', icon: this.iconPack.download }))))));
|
|
1188
1311
|
}
|
|
1189
1312
|
};
|
|
1190
|
-
__decorate$
|
|
1313
|
+
__decorate$8([
|
|
1191
1314
|
SyncWithStore()
|
|
1192
1315
|
], RtkImageMessageView.prototype, "iconPack", void 0);
|
|
1193
|
-
__decorate$
|
|
1316
|
+
__decorate$8([
|
|
1194
1317
|
SyncWithStore()
|
|
1195
1318
|
], RtkImageMessageView.prototype, "t", void 0);
|
|
1196
1319
|
RtkImageMessageView.style = RtkImageMessageViewStyle0;
|
|
1197
1320
|
|
|
1198
|
-
const rtkMarkdownViewCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{overflow-wrap:break-word}a{color:currentColor}.block-quote,blockquote{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px);--tw-border-spacing-x:1px;--tw-border-spacing-y:1px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-md, 2px);border-right-width:var(--rtk-border-width-none, 0);border-style:solid;padding:var(--rtk-space-0\\.5, 2px);padding-left:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);border-top-left-radius:var(--rtk-border-radius-none, 0);border-bottom-left-radius:var(--rtk-border-radius-none, 0)}pre{white-space:pre-wrap}";
|
|
1321
|
+
const rtkMarkdownViewCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{overflow-wrap:break-word}a{color:currentColor}.block-quote,blockquote{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px);--tw-border-spacing-x:1px;--tw-border-spacing-y:1px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-md, 2px);border-right-width:var(--rtk-border-width-none, 0);border-style:solid;padding:var(--rtk-space-0\\.5, 2px);padding-left:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);border-top-left-radius:var(--rtk-border-radius-none, 0);border-bottom-left-radius:var(--rtk-border-radius-none, 0)}pre{white-space:pre-wrap;width:300px}";
|
|
1199
1322
|
const RtkMarkdownViewStyle0 = rtkMarkdownViewCss;
|
|
1200
1323
|
|
|
1201
1324
|
const RtkMarkdownView = class {
|
|
@@ -1275,7 +1398,7 @@ const RtkMarkdownView = class {
|
|
|
1275
1398
|
const slicedMessage = this.text.slice(0, this.maxLength);
|
|
1276
1399
|
const withReply = extractReplyBlock(slicedMessage, true);
|
|
1277
1400
|
const withoutReply = stripOutReplyBlock(slicedMessage);
|
|
1278
|
-
return (h("p", { key: '
|
|
1401
|
+
return (h("p", { key: '8c05acbe5bf3ac4a006d572bf77739cf14bc3588' }, withReply.length !== 0 && h("blockquote", { key: '47f95aad469fd001f78dccf1caf5224f639c2d9e' }, this.renderMessage(withReply)), withoutReply.length !== 0 && this.renderMessage(withoutReply)));
|
|
1279
1402
|
}
|
|
1280
1403
|
};
|
|
1281
1404
|
RtkMarkdownView.style = RtkMarkdownViewStyle0;
|
|
@@ -1605,7 +1728,7 @@ RtkMeeting.style = RtkMeetingStyle0;
|
|
|
1605
1728
|
const rtkMenuCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20;display:none}";
|
|
1606
1729
|
const RtkMenuStyle0 = rtkMenuCss;
|
|
1607
1730
|
|
|
1608
|
-
var __decorate$
|
|
1731
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1609
1732
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1610
1733
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1611
1734
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1656,7 +1779,7 @@ const RtkMenu$1 = class {
|
|
|
1656
1779
|
});
|
|
1657
1780
|
}
|
|
1658
1781
|
render() {
|
|
1659
|
-
return (h(Host, { key: '
|
|
1782
|
+
return (h(Host, { key: '98d1a73c1fdd151945433a13dc1d9f11cfaaeb05' }, h("span", { key: '5cb225dca906f51ea4f9cfe999840af35cbbf865', id: "trigger", ref: (el) => (this.triggerEl = el), onClick: () => {
|
|
1660
1783
|
this.clickedThis = true;
|
|
1661
1784
|
if (this.menuListEl.style.display !== 'block') {
|
|
1662
1785
|
this.menuListEl.style.display = 'block';
|
|
@@ -1665,21 +1788,21 @@ const RtkMenu$1 = class {
|
|
|
1665
1788
|
else {
|
|
1666
1789
|
this.menuListEl.style.display = 'none';
|
|
1667
1790
|
}
|
|
1668
|
-
} }, h("slot", { key: '
|
|
1791
|
+
} }, h("slot", { key: '75146b82e06b27ec57e85d741f42b6112d740334', name: "trigger" })), h("span", { key: 'ef16bf3d6197fd16fa7fb9dca36bc97f9cafec52', part: "menu-list", id: "menu-list", ref: (el) => (this.menuListEl = el) }, h("slot", { key: 'fa8644e4eff65fa5832d80cd53a70e626ea0b1e9' }))));
|
|
1669
1792
|
}
|
|
1670
1793
|
};
|
|
1671
|
-
__decorate$
|
|
1794
|
+
__decorate$7([
|
|
1672
1795
|
SyncWithStore()
|
|
1673
1796
|
], RtkMenu$1.prototype, "iconPack", void 0);
|
|
1674
|
-
__decorate$
|
|
1797
|
+
__decorate$7([
|
|
1675
1798
|
SyncWithStore()
|
|
1676
1799
|
], RtkMenu$1.prototype, "t", void 0);
|
|
1677
1800
|
RtkMenu$1.style = RtkMenuStyle0;
|
|
1678
1801
|
|
|
1679
|
-
const rtkMenuItemCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px}::slotted([slot='start']){margin-right:var(--rtk-space-2, 8px)}::slotted([slot='end']){margin-left:var(--rtk-space-2, 8px)}:host(:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host(.primary:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-
|
|
1802
|
+
const rtkMenuItemCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px}::slotted([slot='start']){margin-right:var(--rtk-space-2, 8px)}::slotted([slot='end']){margin-left:var(--rtk-space-2, 8px)}:host(:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host(.primary:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-bg-opacity))}:host(.red){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";
|
|
1680
1803
|
const RtkMenuItemStyle0 = rtkMenuItemCss;
|
|
1681
1804
|
|
|
1682
|
-
var __decorate$
|
|
1805
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1683
1806
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1684
1807
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1685
1808
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1700,21 +1823,21 @@ const RtkMenuItem = class {
|
|
|
1700
1823
|
this.t = useLanguage();
|
|
1701
1824
|
}
|
|
1702
1825
|
render() {
|
|
1703
|
-
return (h(Host, { key: '
|
|
1826
|
+
return (h(Host, { key: 'd9b20b45e47b9fe8ab36a87a66eac6386b4c678c', class: { [this.menuVariant]: true } }, h("slot", { key: '639bd9af7b8ecd614ea87a21906e250023889a1c', name: "start" }), h("slot", { key: '9b6aa572707a1f78c8f82873b40132ec09290404' }), h("slot", { key: '02c7034af853977922e5cf3ac30f88e5f0148d75', name: "end" })));
|
|
1704
1827
|
}
|
|
1705
1828
|
};
|
|
1706
|
-
__decorate$
|
|
1829
|
+
__decorate$6([
|
|
1707
1830
|
SyncWithStore()
|
|
1708
1831
|
], RtkMenuItem.prototype, "iconPack", void 0);
|
|
1709
|
-
__decorate$
|
|
1832
|
+
__decorate$6([
|
|
1710
1833
|
SyncWithStore()
|
|
1711
1834
|
], RtkMenuItem.prototype, "t", void 0);
|
|
1712
1835
|
RtkMenuItem.style = RtkMenuItemStyle0;
|
|
1713
1836
|
|
|
1714
|
-
const rtkMenuListCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;width:-moz-max-content;width:max-content;flex-direction:column;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
1837
|
+
const rtkMenuListCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;width:-moz-max-content;width:max-content;flex-direction:column;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);backdrop-filter:blur(60px)}:host(.primary){--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity))}";
|
|
1715
1838
|
const RtkMenuListStyle0 = rtkMenuListCss;
|
|
1716
1839
|
|
|
1717
|
-
var __decorate$
|
|
1840
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1718
1841
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1719
1842
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1720
1843
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1735,13 +1858,13 @@ const RtkMenuList = class {
|
|
|
1735
1858
|
this.t = useLanguage();
|
|
1736
1859
|
}
|
|
1737
1860
|
render() {
|
|
1738
|
-
return (h(Host, { key: '
|
|
1861
|
+
return (h(Host, { key: '0ac5ed2be7991106090b3ca0aa5a66a59f0e8250', class: { [this.menuVariant]: true } }, h("slot", { key: 'cd8312cfd2de7eeb7d590e4189f482d620f59ef8' })));
|
|
1739
1862
|
}
|
|
1740
1863
|
};
|
|
1741
|
-
__decorate$
|
|
1864
|
+
__decorate$5([
|
|
1742
1865
|
SyncWithStore()
|
|
1743
1866
|
], RtkMenuList.prototype, "iconPack", void 0);
|
|
1744
|
-
__decorate$
|
|
1867
|
+
__decorate$5([
|
|
1745
1868
|
SyncWithStore()
|
|
1746
1869
|
], RtkMenuList.prototype, "t", void 0);
|
|
1747
1870
|
RtkMenuList.style = RtkMenuListStyle0;
|
|
@@ -1749,7 +1872,7 @@ RtkMenuList.style = RtkMenuListStyle0;
|
|
|
1749
1872
|
const rtkMessageViewCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{max-width:var(--rtk-space-96, 384px)}.message-wrapper{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:var(--rtk-space-2, 8px)}.message-wrapper.incoming{flex-direction:row}.message{display:flex;flex-direction:column;align-items:flex-end}.incoming .message{display:flex;flex-direction:column;align-items:flex-start}.header{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);align-self:flex-end;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));font-size:12px;font-weight:600}.incoming .header{align-self:flex-start}.body{display:flex;flex-direction:column;min-width:var(--rtk-space-24, 96px);font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));font-size:14px;line-height:1.375;position:relative}.bubble{max-width:90%;padding:var(--rtk-space-2, 8px);border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:var(--rtk-border-radius-md, 8px)}.incoming .bubble{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.metadata{margin-top:var(--rtk-space-2, 8px);display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px);align-self:flex-end;font-size:11px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.metadata-content{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px)}.avatar{display:none}rtk-menu{position:absolute;right:var(--rtk-space-1, 4px);top:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-lg, 12px)}rtk-menu rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);cursor:pointer}.actions{display:flex;align-items:center;justify-content:center;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none}.actions rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.incoming rtk-avatar{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.incoming .actions{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}@media (min-width: 400px){.avatar{display:flex;width:var(--rtk-space-6, 24px)}.avatar rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);font-size:10px;overflow:clip;border-radius:9999px}}@media (hover: hover){rtk-menu{visibility:hidden}.body:hover rtk-menu{visibility:visible}}";
|
|
1750
1873
|
const RtkMessageViewStyle0 = rtkMessageViewCss;
|
|
1751
1874
|
|
|
1752
|
-
var __decorate$
|
|
1875
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1753
1876
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1754
1877
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1755
1878
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1793,12 +1916,12 @@ const RtkMessageView = class {
|
|
|
1793
1916
|
return (h(Host, { key: '3d53fc59bda6a82e4c4753e34f915c8f62611f6b' }, h("div", { key: '1f9cbd79c9e5526645fafd0c4436b91c6c612f08', class: { 'message-wrapper': true, [this.viewType]: true } }, !this.hideAvatar && (h("aside", { key: '23071b4dff9dd4ecc1385be9a1610ffbab98a9e9', class: "avatar", part: "avatar" }, h("rtk-avatar", { key: '9a4596ea3636188ef391e65f86d6a608b3aa02d5', participant: { name: this.authorName, picture: this.avatarUrl }, size: "sm" }))), h("div", { key: 'eefe1bf5803e371266a0b8ee230dd2f42a193dc2', class: "message", part: "message" }, !this.hideAuthorName && (h("div", { key: '45ba437f7a3ba2b253f22a1885d7e5be954a387e', class: "header" }, this.authorName, " ", this.isSelf ? ' (You)' : '')), h("div", { key: 'e9636fb45358423d5cc4e8144b6b47cf065117cc', class: { body: true, bubble: this.variant === 'bubble' } }, h("slot", { key: '1d6cd92eb8d4514b7ae4266fae8cd060a56ac1e3' }), !this.hideMetadata && !!this.time && (h("div", { key: '77b29974a960e4b4809025305ce005aeab8edebc', class: "metadata", title: formatDateTime(this.time) }, this.pinned && (h("span", { key: 'e6b99085f2cbcbc9505c20e5407a98c382306614', class: "metadata-content" }, h("rtk-icon", { key: '45ad875ef38b1db0105c85659cf938cc9bd792d8', icon: this.iconPack.pin, size: "sm" }), " \u2022")), this.isEdited && (h("span", { key: '48d5ecd659fe2308d8c33e94a2216049a2bea5ef', class: "metadata-content" }, h("span", { key: '9203ff6d3f65b81b875f5bc17231fd2c65c1c2c2' }, "Edited"), " \u2022")), elapsedDuration(this.time, new Date(Date.now())))), this.actions.length !== 0 && this.renderActions())))));
|
|
1794
1917
|
}
|
|
1795
1918
|
};
|
|
1796
|
-
__decorate$
|
|
1919
|
+
__decorate$4([
|
|
1797
1920
|
SyncWithStore()
|
|
1798
1921
|
], RtkMessageView.prototype, "iconPack", void 0);
|
|
1799
1922
|
RtkMessageView.style = RtkMessageViewStyle0;
|
|
1800
1923
|
|
|
1801
|
-
const rtkPaginatedListCss = ".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;flex-direction:column;flex:1}.container{box-sizing:border-box;display:flex;flex-direction:column-reverse;padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);flex:1 0 0px;overflow-y:scroll}.file-picker{display:none}.chat *:first-child{margin-top:var(--rtk-space-0, 0px)}.chat .head{display:flex;align-items:center}.chat .head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.chat .head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);overflow-wrap:break-word;font-size:14px;line-height:1.375}.chat .body .emoji{font-size:24px}p{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px)}rtk-text-message,rtk-image-message,rtk-file-message{margin-top:var(--rtk-space-4, 16px);display:block;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));box-sizing:border-box}*[is-continued]{margin-top:var(--rtk-space-3, 12px)}rtk-text-message[is-continued]{margin-top:var(--rtk-space-2, 8px)}.chat .image{position:relative;height:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);cursor:pointer}.chat .image img{display:none;height:100%;width:100%;border-radius:var(--rtk-border-radius-sm, 4px);-o-object-fit:cover;object-fit:cover}.chat .image .image-spinner{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.chat .image .image-spinner rtk-spinner{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat .image .image-errored{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.chat .image .actions{display:none;height:var(--rtk-space-8, 32px);align-items:center;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.chat .image .actions .action{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-none, 0);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.chat .image .actions .action:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.image.loaded img{display:block}.image.loaded .image-spinner{display:none}.image:hover .actions,.image:focus .actions{display:flex}.chat .file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1\\.5, 6px);padding-bottom:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.chat .file .file-data{flex:1 1 0%}.chat .file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat .file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.chat .file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat .file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.chat .file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}.smallest-dom-element{width:1px}#top-scroll{transform:translateY(20vh);transform:translateY(20px)}a{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));text-decoration-line:none}a:hover{text-decoration-line:underline}.show-new-messages-ctr{position:absolute;bottom:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);z-index:10;margin-top:calc(var(--rtk-space-14, 56px) * -1);--tw-translate-y:var(--rtk-space-28, 112px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.show-new-messages-ctr.active{--tw-translate-y:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;opacity:1}.show-new-messages{pointer-events:auto;border-radius:9999px}.show-new-messages:hover{border-radius:9999px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-opacity:1;--tw-ring-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-ring-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}rtk-spinner,.empty-list{margin:auto}.page-wrapper{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px);display:flex;flex-direction:column-reverse}.message-wrapper{margin-bottom:var(--rtk-space-2, 8px)}.pinned .message-wrapper{position:relative}.pinned .pin-icon{position:absolute;right:calc(var(--rtk-space-1, 4px) * -1);top:calc(var(--rtk-space-1, 4px) * -1);display:flex;border-radius:var(--rtk-border-radius-sm, 4px)}.pinned rtk-message-view{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}.load-more-on-top-container{pointer-events:none;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-4, 16px);z-index:10}.load-more-icon{pointer-events:auto;border-radius:9999px}.load-more-icon:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-opacity:1;--tw-ring-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-ring-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";
|
|
1924
|
+
const rtkPaginatedListCss = ".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;flex-direction:column;flex:1}:host(.chat-selector-paginated-list) .container{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-2, 8px);flex:1 0 0px;overflow-y:scroll}:host(.chat-selector-paginated-list) .private-chat-label{display:flex;width:100%;cursor:pointer;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px)}:host(.chat-selector-paginated-list) .private-chat-label rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host(.chat-selector-paginated-list) .show-new-messages-ctr.active{display:none}.private-chat-unread-badge{height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host(.pinned-message-selector-paginated-list) .container{box-sizing:border-box;display:flex;flex-direction:column-reverse;padding:var(--rtk-space-2, 8px);flex:1 0 0px;overflow-y:scroll}:host(.pinned-message-selector-paginated-list) .page{position:relative;box-sizing:border-box}:host(.pinned-message-selector-paginated-list) .pinned-message{display:flex;width:100%;cursor:pointer;flex-direction:row;align-items:flex-start;gap:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}:host(.pinned-message-selector-paginated-list) .pinned-message:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host(.pinned-message-selector-paginated-list) .pinned-message-content{display:flex;min-width:var(--rtk-space-0, 0px);flex:1 1 0%;flex-direction:column}:host(.pinned-message-selector-paginated-list) .pinned-message-time{font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}:host(.pinned-message-selector-paginated-list) .pinned-message-preview{margin-bottom:var(--rtk-space-2, 8px);word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:host(.pinned-message-selector-paginated-list) rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}.container{box-sizing:border-box;display:flex;flex-direction:column-reverse;padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);flex:1 0 0px;overflow-y:scroll}.file-picker{display:none}.chat *:first-child{margin-top:var(--rtk-space-0, 0px)}.chat .head{display:flex;align-items:center}.chat .head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.chat .head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);overflow-wrap:break-word;font-size:14px;line-height:1.375}.chat .body .emoji{font-size:24px}p{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px)}rtk-text-message,rtk-image-message,rtk-file-message{margin-top:var(--rtk-space-4, 16px);display:block;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));box-sizing:border-box}*[is-continued]{margin-top:var(--rtk-space-3, 12px)}rtk-text-message[is-continued]{margin-top:var(--rtk-space-2, 8px)}.chat .image{position:relative;height:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);cursor:pointer}.chat .image img{display:none;height:100%;width:100%;border-radius:var(--rtk-border-radius-sm, 4px);-o-object-fit:cover;object-fit:cover}.chat .image .image-spinner{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.chat .image .image-spinner rtk-spinner{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat .image .image-errored{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.chat .image .actions{display:none;height:var(--rtk-space-8, 32px);align-items:center;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.chat .image .actions .action{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-none, 0);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.chat .image .actions .action:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.image.loaded img{display:block}.image.loaded .image-spinner{display:none}.image:hover .actions,.image:focus .actions{display:flex}.chat .file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1\\.5, 6px);padding-bottom:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.chat .file .file-data{flex:1 1 0%}.chat .file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat .file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.chat .file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat .file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.chat .file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}.smallest-dom-element{width:1px}#top-scroll{transform:translateY(20vh);transform:translateY(20px)}a{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));text-decoration-line:none}a:hover{text-decoration-line:underline}.show-new-messages-ctr{position:absolute;bottom:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);z-index:10;margin-top:calc(var(--rtk-space-14, 56px) * -1);--tw-translate-y:var(--rtk-space-28, 112px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.show-new-messages-ctr.active{--tw-translate-y:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;opacity:1}.show-new-messages{pointer-events:auto;border-radius:9999px}.show-new-messages:hover{border-radius:9999px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-opacity:1;--tw-ring-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-ring-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}rtk-spinner,.empty-list{margin:auto}.page-wrapper{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px);display:flex;flex-direction:column-reverse}.message-wrapper{margin-bottom:var(--rtk-space-2, 8px)}.pinned .message-wrapper{position:relative}.pinned .pin-icon{position:absolute;right:calc(var(--rtk-space-1, 4px) * -1);top:calc(var(--rtk-space-1, 4px) * -1);display:flex;border-radius:var(--rtk-border-radius-sm, 4px)}.pinned rtk-message-view{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}.load-more-on-top-container{pointer-events:none;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-4, 16px);z-index:10}.load-more-icon{pointer-events:auto;border-radius:9999px}.load-more-icon:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-opacity:1;--tw-ring-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-ring-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";
|
|
1802
1925
|
const RtkPaginatedListStyle0 = rtkPaginatedListCss;
|
|
1803
1926
|
|
|
1804
1927
|
/**
|
|
@@ -1827,7 +1950,7 @@ const RtkPaginatedListStyle0 = rtkPaginatedListCss;
|
|
|
1827
1950
|
* - If page is empty, delete it
|
|
1828
1951
|
* - Update timestamp curors
|
|
1829
1952
|
*/
|
|
1830
|
-
var __decorate$
|
|
1953
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1831
1954
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1832
1955
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1833
1956
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1841,7 +1964,7 @@ const RtkPaginatedList = class {
|
|
|
1841
1964
|
constructor(hostRef) {
|
|
1842
1965
|
registerInstance(this, hostRef);
|
|
1843
1966
|
// Timestamp pertaining to the oldest stored message
|
|
1844
|
-
this.oldestPaginatedTimestamp =
|
|
1967
|
+
this.oldestPaginatedTimestamp = 0;
|
|
1845
1968
|
// Timestamp pertaining to the latest stored message
|
|
1846
1969
|
this.latestPaginatedTimestamp = null;
|
|
1847
1970
|
// Timestamp pertaining to the latest message stored in backend
|
|
@@ -1870,6 +1993,12 @@ const RtkPaginatedList = class {
|
|
|
1870
1993
|
return rect.top >= 0 && rect.bottom <= window.innerHeight;
|
|
1871
1994
|
};
|
|
1872
1995
|
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Rerender paginated list
|
|
1998
|
+
*/
|
|
1999
|
+
async rerenderList() {
|
|
2000
|
+
this.rerenderBoolean = !this.rerenderBoolean;
|
|
2001
|
+
}
|
|
1873
2002
|
/**
|
|
1874
2003
|
* Adds a new node to the beginning of the paginated list
|
|
1875
2004
|
* @param {DataNode} node - The data node to add to the beginning of the list
|
|
@@ -1955,11 +2084,31 @@ const RtkPaginatedList = class {
|
|
|
1955
2084
|
if (index === -1)
|
|
1956
2085
|
continue;
|
|
1957
2086
|
// edit message
|
|
1958
|
-
this.pages[i][index] = node;
|
|
2087
|
+
this.pages[i][index] = Object.assign(Object.assign({}, this.pages[i][index]), node);
|
|
1959
2088
|
this.rerender();
|
|
1960
2089
|
break;
|
|
1961
2090
|
}
|
|
1962
2091
|
}
|
|
2092
|
+
/**
|
|
2093
|
+
* Resets the paginated list to a given timestamp
|
|
2094
|
+
*/
|
|
2095
|
+
async reset(timestamp = 0) {
|
|
2096
|
+
this.oldestPaginatedTimestamp = timestamp;
|
|
2097
|
+
this.latestPaginatedTimestamp = null;
|
|
2098
|
+
this.pages = [];
|
|
2099
|
+
this.shouldScrollToBottom = false;
|
|
2100
|
+
this.showNewMessagesCTR = false;
|
|
2101
|
+
this.pendingScrollAnchor = null;
|
|
2102
|
+
this.isLoading = false;
|
|
2103
|
+
this.isLoadingTop = false;
|
|
2104
|
+
this.isLoadingBottom = false;
|
|
2105
|
+
if (timestamp === 0) {
|
|
2106
|
+
// preserve latestMessageTimestamp if reseting to a particular message
|
|
2107
|
+
this.latestMessageTimestamp = null;
|
|
2108
|
+
}
|
|
2109
|
+
this.rerender();
|
|
2110
|
+
await this.loadPrevPage();
|
|
2111
|
+
}
|
|
1963
2112
|
connectedCallback() {
|
|
1964
2113
|
this.rerender = debounce(this.rerender.bind(this), 50, { maxWait: 200 });
|
|
1965
2114
|
}
|
|
@@ -1994,8 +2143,8 @@ const RtkPaginatedList = class {
|
|
|
1994
2143
|
if (this.isLoading)
|
|
1995
2144
|
return;
|
|
1996
2145
|
const scrollAnchor = this.getScrollAnchor('top');
|
|
1997
|
-
// if
|
|
1998
|
-
if (
|
|
2146
|
+
// if old timestamp is 0, it means we are at initial state
|
|
2147
|
+
if (this.oldestPaginatedTimestamp === 0)
|
|
1999
2148
|
this.oldestPaginatedTimestamp = new Date().getTime();
|
|
2000
2149
|
// load data
|
|
2001
2150
|
this.isLoading = true;
|
|
@@ -2133,22 +2282,178 @@ const RtkPaginatedList = class {
|
|
|
2133
2282
|
this.rerenderBoolean = !this.rerenderBoolean;
|
|
2134
2283
|
}
|
|
2135
2284
|
render() {
|
|
2285
|
+
var _a;
|
|
2136
2286
|
/**
|
|
2137
2287
|
* div.container is flex=column-reversewhich is why div#bottom-scroll comes before div#top-scroll
|
|
2138
2288
|
*/
|
|
2139
|
-
return (h(Host, { key: '
|
|
2289
|
+
return (h(Host, { key: 'bff4fc91b737334c5764e690fbf2adafa1444408' }, h("div", { key: 'f4efa98ef0bd178602ee03718d35fcb833487909', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, h("div", { key: '37403f6462812a6662efa9577ae9ed43d27f63d6', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, h("rtk-button", { key: 'ee7e04e6281370dddb1b1e10b753e96dc602d42a', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
|
|
2140
2290
|
this.scrollToBottom();
|
|
2141
|
-
} }, this.shouldScrollToBottom ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.chevron_down })))), h("div", { key: '
|
|
2291
|
+
} }, this.shouldScrollToBottom ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.chevron_down })))), h("div", { key: '91bcdadd2518313fa06306a172575f5acc786596', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && h("rtk-spinner", { key: '932af19af69c3ecd5af22dd3051a5eea5cb25e7a', size: "sm" }), this.isLoading && this.pages.length < 1 && h("rtk-spinner", { key: '9fa60fb784a09800a32a3accdc81d940476330d2', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && h("rtk-spinner", { key: '73103f58338bdb89be69f9f6dc742e3cdd2c95d8', size: "sm" }), h("div", { key: '9c4c43ffb6442d58040448fe1b2d7332505fc81e', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
|
|
2142
2292
|
}
|
|
2143
2293
|
};
|
|
2144
|
-
__decorate$
|
|
2294
|
+
__decorate$3([
|
|
2145
2295
|
SyncWithStore()
|
|
2146
2296
|
], RtkPaginatedList.prototype, "iconPack", void 0);
|
|
2147
|
-
__decorate$
|
|
2297
|
+
__decorate$3([
|
|
2148
2298
|
SyncWithStore()
|
|
2149
2299
|
], RtkPaginatedList.prototype, "t", void 0);
|
|
2150
2300
|
RtkPaginatedList.style = RtkPaginatedListStyle0;
|
|
2151
2301
|
|
|
2302
|
+
const rtkPinnedMessageSelectorCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;font-size:14px;position:relative;box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}.dropdown{position:absolute;top:100%;z-index:10;padding:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));max-height:var(--rtk-space-0, 0px);opacity:0;overflow:hidden;pointer-events:none;border-bottom-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);left:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);max-width:calc(100vw - var(--rtk-space-4, 16px));box-sizing:border-box}.dropdown.open{max-height:50vh;opacity:1;overflow:auto;pointer-events:auto;border-width:1px;border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity))}.dropdown rtk-paginated-list{box-sizing:border-box;display:flex;max-height:50vh;min-height:30vh;flex-direction:column}";
|
|
2303
|
+
const RtkPinnedMessageSelectorStyle0 = rtkPinnedMessageSelectorCss;
|
|
2304
|
+
|
|
2305
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2306
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2307
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2308
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2309
|
+
else
|
|
2310
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
2311
|
+
if (d = decorators[i])
|
|
2312
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2313
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2314
|
+
};
|
|
2315
|
+
const RtkPinnedMessageSelector = class {
|
|
2316
|
+
constructor(hostRef) {
|
|
2317
|
+
registerInstance(this, hostRef);
|
|
2318
|
+
this.dropdownToggle = createEvent(this, "rtkDropdownToggle", 7);
|
|
2319
|
+
this.pinnedMessageSelect = createEvent(this, "rtkPinnedMessageSelect", 7);
|
|
2320
|
+
this.isOpen = false;
|
|
2321
|
+
/** Icon pack */
|
|
2322
|
+
this.iconPack = defaultIconPack;
|
|
2323
|
+
/** Language */
|
|
2324
|
+
this.t = useLanguage();
|
|
2325
|
+
//NOTE(ikabra): Fix this value once backend supports pagination for participants
|
|
2326
|
+
this.pageSize = 25;
|
|
2327
|
+
this.pagesAllowed = 3;
|
|
2328
|
+
this.showPinnedMessages = true;
|
|
2329
|
+
this.toggle = (e) => {
|
|
2330
|
+
e.preventDefault();
|
|
2331
|
+
e.stopPropagation();
|
|
2332
|
+
this.isOpen = !this.isOpen;
|
|
2333
|
+
this.dropdownToggle.emit({ open: this.isOpen });
|
|
2334
|
+
};
|
|
2335
|
+
this.getPinnedChatMessages = async (timestamp, size, reversed) => {
|
|
2336
|
+
const localMeeting = this.meeting;
|
|
2337
|
+
if (!localMeeting)
|
|
2338
|
+
return [];
|
|
2339
|
+
try {
|
|
2340
|
+
const messages = await localMeeting.chat.fetchPinnedMessages({
|
|
2341
|
+
timestamp,
|
|
2342
|
+
limit: size,
|
|
2343
|
+
direction: reversed ? 'before' : 'after',
|
|
2344
|
+
});
|
|
2345
|
+
return messages;
|
|
2346
|
+
}
|
|
2347
|
+
catch (err) {
|
|
2348
|
+
return [];
|
|
2349
|
+
}
|
|
2350
|
+
};
|
|
2351
|
+
this.createPinnedChatNodes = (messages) => {
|
|
2352
|
+
return messages.map((message) => {
|
|
2353
|
+
const preview = message.type === 'text'
|
|
2354
|
+
? (message.message || '').replace(/\s+/g, ' ').trim()
|
|
2355
|
+
: message.type === 'file'
|
|
2356
|
+
? 'File Attachment'
|
|
2357
|
+
: message.type === 'image'
|
|
2358
|
+
? 'Image Attachment'
|
|
2359
|
+
: '';
|
|
2360
|
+
return (h("div", { class: "pinned-message", id: message.id, onClick: () => {
|
|
2361
|
+
this.pinnedMessageSelect.emit(message);
|
|
2362
|
+
this.close();
|
|
2363
|
+
} }, h("rtk-avatar", { size: "sm", participant: {
|
|
2364
|
+
name: message.displayName,
|
|
2365
|
+
picture: '',
|
|
2366
|
+
} }), h("div", { class: "pinned-message-content" }, h("div", { class: "pinned-message-preview", title: preview }, preview), h("div", { class: "pinned-message-meta" }, h("span", { class: "pinned-message-time" }, elapsedDuration(message.time, new Date(Date.now())))))));
|
|
2367
|
+
});
|
|
2368
|
+
};
|
|
2369
|
+
this.pinChatListener = (data) => {
|
|
2370
|
+
var _a, _b;
|
|
2371
|
+
if (((_a = data.message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
2372
|
+
// pinned messages are not supported for private chat
|
|
2373
|
+
return;
|
|
2374
|
+
}
|
|
2375
|
+
/**
|
|
2376
|
+
* FIXME(ikabra): This is a temporary hack to refresh the list when a new message is pinned.
|
|
2377
|
+
* This is done to avoid duplicate messages in the list.
|
|
2378
|
+
* Fix is being implemented by socket where they are updating the `updatedAt` timestamp when the message is pinned.
|
|
2379
|
+
*/
|
|
2380
|
+
(_b = this.$paginatedListRef) === null || _b === void 0 ? void 0 : _b.reset();
|
|
2381
|
+
};
|
|
2382
|
+
this.unpinChatListener = async (data) => {
|
|
2383
|
+
var _a, _b;
|
|
2384
|
+
if (((_a = data.message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
2385
|
+
// pinned messages are not supported for private chat
|
|
2386
|
+
return;
|
|
2387
|
+
}
|
|
2388
|
+
(_b = this.$paginatedListRef) === null || _b === void 0 ? void 0 : _b.onNodeDelete(data.message.id);
|
|
2389
|
+
};
|
|
2390
|
+
this.chatUpdateListener = async (data) => {
|
|
2391
|
+
if (data.action !== 'delete')
|
|
2392
|
+
return;
|
|
2393
|
+
this.unpinChatListener(data);
|
|
2394
|
+
};
|
|
2395
|
+
}
|
|
2396
|
+
connectedCallback() {
|
|
2397
|
+
this.meetingChanged(this.meeting);
|
|
2398
|
+
}
|
|
2399
|
+
disconnectedCallback() {
|
|
2400
|
+
this.disconnectMeeting(this.meeting);
|
|
2401
|
+
}
|
|
2402
|
+
disconnectMeeting(meeting) {
|
|
2403
|
+
var _a, _b, _c;
|
|
2404
|
+
(_a = meeting.chat) === null || _a === void 0 ? void 0 : _a.removeListener('pinMessage', this.pinChatListener);
|
|
2405
|
+
(_b = meeting.chat) === null || _b === void 0 ? void 0 : _b.removeListener('unpinMessage', this.unpinChatListener);
|
|
2406
|
+
(_c = meeting.chat) === null || _c === void 0 ? void 0 : _c.removeListener('chatUpdate', this.chatUpdateListener);
|
|
2407
|
+
}
|
|
2408
|
+
meetingChanged(meeting, oldMeeting) {
|
|
2409
|
+
var _a, _b, _c, _d;
|
|
2410
|
+
if (oldMeeting)
|
|
2411
|
+
this.disconnectMeeting(oldMeeting);
|
|
2412
|
+
if (!meeting)
|
|
2413
|
+
return;
|
|
2414
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.reset();
|
|
2415
|
+
(_b = meeting.chat) === null || _b === void 0 ? void 0 : _b.addListener('pinMessage', this.pinChatListener);
|
|
2416
|
+
(_c = meeting.chat) === null || _c === void 0 ? void 0 : _c.addListener('unpinMessage', this.unpinChatListener);
|
|
2417
|
+
(_d = meeting.chat) === null || _d === void 0 ? void 0 : _d.addListener('chatUpdate', this.chatUpdateListener);
|
|
2418
|
+
}
|
|
2419
|
+
/** */
|
|
2420
|
+
async close() {
|
|
2421
|
+
if (!this.isOpen)
|
|
2422
|
+
return;
|
|
2423
|
+
this.isOpen = false;
|
|
2424
|
+
this.dropdownToggle.emit({ open: false });
|
|
2425
|
+
}
|
|
2426
|
+
async onChatSelectorChange(event) {
|
|
2427
|
+
var _a;
|
|
2428
|
+
const selectedUser = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.selectedUser;
|
|
2429
|
+
// Everyone
|
|
2430
|
+
if (!selectedUser) {
|
|
2431
|
+
this.showPinnedMessages = true;
|
|
2432
|
+
}
|
|
2433
|
+
else {
|
|
2434
|
+
this.showPinnedMessages = false;
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
render() {
|
|
2438
|
+
if (!this.showPinnedMessages)
|
|
2439
|
+
return null;
|
|
2440
|
+
return (h(Host, null, h("div", { class: "chat-header", onClick: this.toggle }, h("div", { class: "chat-header-label" }, h("rtk-icon", { icon: this.iconPack.pin, size: "sm" }), this.t('chat.pinned_msgs')), h("div", { class: "chevron" }, h("rtk-icon", { icon: this.isOpen ? this.iconPack.chevron_up : this.iconPack.chevron_down, size: "sm" }))), h("div", { class: { dropdown: true, open: this.isOpen, scrollbar: true } }, h("rtk-paginated-list", { class: "pinned-message-selector-paginated-list", ref: (el) => (this.$paginatedListRef = el), pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.getPinnedChatMessages, createNodes: this.createPinnedChatNodes, emptyListLabel: this.t('chat.empty_search') }, h("slot", null)))));
|
|
2441
|
+
}
|
|
2442
|
+
static get watchers() { return {
|
|
2443
|
+
"meeting": ["meetingChanged"]
|
|
2444
|
+
}; }
|
|
2445
|
+
};
|
|
2446
|
+
__decorate$2([
|
|
2447
|
+
SyncWithStore()
|
|
2448
|
+
], RtkPinnedMessageSelector.prototype, "meeting", void 0);
|
|
2449
|
+
__decorate$2([
|
|
2450
|
+
SyncWithStore()
|
|
2451
|
+
], RtkPinnedMessageSelector.prototype, "iconPack", void 0);
|
|
2452
|
+
__decorate$2([
|
|
2453
|
+
SyncWithStore()
|
|
2454
|
+
], RtkPinnedMessageSelector.prototype, "t", void 0);
|
|
2455
|
+
RtkPinnedMessageSelector.style = RtkPinnedMessageSelectorStyle0;
|
|
2456
|
+
|
|
2152
2457
|
const rtkSpinnerCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:block;height:var(--rtk-space-10, 40px);width:var(--rtk-space-10, 40px);--rtk-spinner-color:currentColor}.spinner{height:100%;width:100%}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite;border-radius:9999px;background-color:transparent;animation-duration:1.3s}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}";
|
|
2153
2458
|
const RtkSpinnerStyle0 = rtkSpinnerCss;
|
|
2154
2459
|
|
|
@@ -2171,7 +2476,7 @@ const RtkSpinner = class {
|
|
|
2171
2476
|
this.size = 'md';
|
|
2172
2477
|
}
|
|
2173
2478
|
render() {
|
|
2174
|
-
return (h(Host, { key: '
|
|
2479
|
+
return (h(Host, { key: 'f9f0f938827fb04712fb9f406fb07d48c398865a' }, h("rtk-icon", { key: 'a2daa23191ea94007c8a980f221409c6dfe35d03', class: "spinner", icon: this.iconPack.spinner })));
|
|
2175
2480
|
}
|
|
2176
2481
|
};
|
|
2177
2482
|
__decorate$1([
|
|
@@ -2249,7 +2554,7 @@ const RtkTextComposerView = class {
|
|
|
2249
2554
|
}
|
|
2250
2555
|
}
|
|
2251
2556
|
render() {
|
|
2252
|
-
return (h("div", { key: '
|
|
2557
|
+
return (h("div", { key: '38a6c64bb92fd72f76109e0d55c04c00a77bb43a', class: "chat-input", part: "chat-input-container" }, this.maxLengthBreached > 0 && (h("div", { key: 'b3d3ed9cd0694edf05cb7ccda50dc8f6157315ef', class: 'text-error ' + (this.maxLengthBreached === this.maxLength ? 'breached' : '') }, h("rtk-icon", { key: 'c5cd3e9887e90970729dc808413997bc17835ae6', id: "warning-indicator", icon: this.iconPack.warning, part: "warning-indicator" }), ' ', this.maxLengthBreached, " / ", this.maxLength, " ", this.t('chat.max_limit_warning'))), this.rateLimitBreached && (h("div", { key: 'fd2c53dc324defba567638782d2fafd66f9be11b', class: 'text-error breached' }, h("rtk-icon", { key: '7f60d2b74f45a7c4e4cbe422066803ff750fa5ef', id: "warning-indicator", icon: this.iconPack.warning, part: "warning-indicator" }), ' ', this.t('chat.rate_limit_error'))), h("textarea", { key: 'd60bd094237e82a8a66e5afd6be464a242f43afa', ref: (el) => (this.$textArea = el), placeholder: this.placeholder, disabled: this.disabled, onInput: this.onInputHandler, onKeyDown: this.keyDownHandler, part: "chat-input", value: this.value })));
|
|
2253
2558
|
}
|
|
2254
2559
|
};
|
|
2255
2560
|
__decorate([
|
|
@@ -2270,7 +2575,7 @@ const RtkTextMessageView = class {
|
|
|
2270
2575
|
this.isMarkdown = false;
|
|
2271
2576
|
}
|
|
2272
2577
|
render() {
|
|
2273
|
-
return (h("p", { key: '
|
|
2578
|
+
return (h("p", { key: '415dec939e8fa149f006a5c3afc4bafc11f911af', class: { text: true, emoji: hasOnlyEmojis(this.text) } }, this.isMarkdown ? h("rtk-markdown-view", { text: this.text }) : this.text));
|
|
2274
2579
|
}
|
|
2275
2580
|
};
|
|
2276
2581
|
RtkTextMessageView.style = RtkTextMessageViewStyle0;
|
|
@@ -2384,4 +2689,4 @@ const RtkMenu = class {
|
|
|
2384
2689
|
};
|
|
2385
2690
|
RtkMenu.style = RtkTooltipStyle0;
|
|
2386
2691
|
|
|
2387
|
-
export { RtkAvatar as rtk_avatar, RtkButton as rtk_button, RtkChat as rtk_chat, RtkChatComposerView as rtk_chat_composer_view, RtkChatMessagesUiPaginated as rtk_chat_messages_ui_paginated, RtkDraftAttachmentView as rtk_draft_attachment_view, RtkEmojiPicker as rtk_emoji_picker, RtkEmojiPickerButton as rtk_emoji_picker_button, RtkFileMessageView as rtk_file_message_view, RtkFilePickerButton as rtk_file_picker_button, RtkIcon as rtk_icon, RtkImageMessageView as rtk_image_message_view, RtkMarkdownView as rtk_markdown_view, RtkMeeting as rtk_meeting, RtkMenu$1 as rtk_menu, RtkMenuItem as rtk_menu_item, RtkMenuList as rtk_menu_list, RtkMessageView as rtk_message_view, RtkPaginatedList as rtk_paginated_list, RtkSpinner as rtk_spinner, RtkTextComposerView as rtk_text_composer_view, RtkTextMessageView as rtk_text_message_view, RtkMenu as rtk_tooltip };
|
|
2692
|
+
export { RtkAvatar as rtk_avatar, RtkButton as rtk_button, RtkChat as rtk_chat, RtkChatComposerView as rtk_chat_composer_view, RtkChatHeader as rtk_chat_header, RtkChatMessagesUiPaginated as rtk_chat_messages_ui_paginated, RtkChatSelector as rtk_chat_selector, RtkDraftAttachmentView as rtk_draft_attachment_view, RtkEmojiPicker as rtk_emoji_picker, RtkEmojiPickerButton as rtk_emoji_picker_button, RtkFileMessageView as rtk_file_message_view, RtkFilePickerButton as rtk_file_picker_button, RtkIcon as rtk_icon, RtkImageMessageView as rtk_image_message_view, RtkMarkdownView as rtk_markdown_view, RtkMeeting as rtk_meeting, RtkMenu$1 as rtk_menu, RtkMenuItem as rtk_menu_item, RtkMenuList as rtk_menu_list, RtkMessageView as rtk_message_view, RtkPaginatedList as rtk_paginated_list, RtkPinnedMessageSelector as rtk_pinned_message_selector, RtkSpinner as rtk_spinner, RtkTextComposerView as rtk_text_composer_view, RtkTextMessageView as rtk_text_message_view, RtkMenu as rtk_tooltip };
|