@cloudflare/realtimekit-ui 0.0.0 → 0.1.0
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/README.md +62 -0
- package/dist/browser.js +1 -0
- package/dist/cjs/ChatHead-d2f094ec.js +46 -0
- package/dist/cjs/ResizeObserver.es-ba961f16.js +930 -0
- package/dist/cjs/TextMessage-5e193665.js +69 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/chat-926e8f05.js +217 -0
- package/dist/cjs/clone-2e9a4cae.js +754 -0
- package/dist/cjs/config-10bea2dc.js +1183 -0
- package/dist/cjs/debounce-6080cc73.js +544 -0
- package/dist/cjs/debounce-6dabb441.js +331 -0
- package/dist/cjs/file-33e9ed90.js +61 -0
- package/dist/cjs/floating-ui.dom.esm-c3c35b98.js +1900 -0
- package/dist/cjs/full-screen-de3e9caf.js +55 -0
- package/dist/cjs/grid-edc342a7.js +99 -0
- package/dist/cjs/hark-c97d0a59.js +301 -0
- package/dist/cjs/index-05554ce6.js +2191 -0
- package/dist/cjs/index-821d14b7.js +227 -0
- package/dist/cjs/index-e33a89b6.js +26 -0
- package/dist/cjs/index.cjs.js +267 -0
- package/dist/cjs/isObjectLike-73d13a39.js +171 -0
- package/dist/cjs/keysIn-8bdbe83d.js +1438 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/notification-a3fb0b56.js +39 -0
- package/dist/cjs/realtimekit-ui.cjs.js +25 -0
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +76 -0
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +138 -0
- package/dist/cjs/rtk-ai.cjs.entry.js +91 -0
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +116 -0
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +130 -0
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +501 -0
- package/dist/cjs/rtk-avatar_54.cjs.entry.js +6377 -0
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +86 -0
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +281 -0
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +186 -0
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +84 -0
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +147 -0
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +315 -0
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +78 -0
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +138 -0
- package/dist/cjs/rtk-clock.cjs.entry.js +98 -0
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +49 -0
- package/dist/cjs/rtk-controlbar.cjs.entry.js +66 -0
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +61 -0
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +109 -0
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +60 -0
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +86 -0
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +159 -0
- package/dist/cjs/rtk-grid.cjs.entry.js +362 -0
- package/dist/cjs/rtk-header.cjs.entry.js +66 -0
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +47 -0
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +62 -0
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +37 -0
- package/dist/cjs/rtk-leave-button.cjs.entry.js +52 -0
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +29148 -0
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +142 -0
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +49 -0
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +285 -0
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +184 -0
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +226 -0
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +77 -0
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +79 -0
- package/dist/cjs/rtk-name-tag.cjs.entry.js +72 -0
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +86 -0
- package/dist/cjs/rtk-participant-count.cjs.entry.js +91 -0
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +118 -0
- package/dist/cjs/rtk-participant_2.cjs.entry.js +419 -0
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +207 -0
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +466 -0
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +150 -0
- package/dist/cjs/rtk-participants.cjs.entry.js +190 -0
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +88 -0
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +196 -0
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +106 -0
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +181 -0
- package/dist/cjs/rtk-poll_2.cjs.entry.js +142 -0
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +117 -0
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +70 -0
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +162 -0
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +265 -0
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +149 -0
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +150 -0
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +57 -0
- package/dist/cjs/rtk-settings.cjs.entry.js +124 -0
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +120 -0
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +80 -0
- package/dist/cjs/rtk-sidebar.cjs.entry.js +151 -0
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +118 -0
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +107 -0
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +85 -0
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +147 -0
- package/dist/cjs/rtk-stage.cjs.entry.js +43 -0
- package/dist/cjs/rtk-transcript.cjs.entry.js +58 -0
- package/dist/cjs/rtk-transcripts.cjs.entry.js +167 -0
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +168 -0
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +47 -0
- package/dist/cjs/scroll-c6404609.js +15 -0
- package/dist/cjs/sidebar-7189b8fd.js +50 -0
- package/dist/cjs/size-2a406e36.js +28 -0
- package/dist/cjs/string-a410fab6.js +64 -0
- package/dist/cjs/ui-store-81ede08e.js +1608 -0
- package/dist/collection/collection-manifest.json +149 -0
- package/dist/collection/components/rtk-ai/rtk-ai.css +69 -0
- package/dist/collection/components/rtk-ai/rtk-ai.js +292 -0
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.css +8 -0
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +257 -0
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.css +139 -0
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +221 -0
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.css +102 -0
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +292 -0
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.css +118 -0
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +308 -0
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.css +46 -0
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +324 -0
- package/dist/collection/components/rtk-avatar/rtk-avatar.css +117 -0
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +202 -0
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.css +272 -0
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +509 -0
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.css +269 -0
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +305 -0
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.css +17 -0
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +273 -0
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.css +379 -0
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +481 -0
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.css +111 -0
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +198 -0
- package/dist/collection/components/rtk-button/rtk-button.css +185 -0
- package/dist/collection/components/rtk-button/rtk-button.js +198 -0
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.css +146 -0
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +263 -0
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.css +22 -0
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +350 -0
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.css +17 -0
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +289 -0
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.css +210 -0
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +287 -0
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.css +93 -0
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +148 -0
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +99 -0
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +255 -0
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.css +330 -0
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +283 -0
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +306 -0
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +341 -0
- package/dist/collection/components/rtk-chat/components/ChatHead.js +6 -0
- package/dist/collection/components/rtk-chat/rtk-chat.css +224 -0
- package/dist/collection/components/rtk-chat/rtk-chat.js +866 -0
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.css +304 -0
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +583 -0
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.css +111 -0
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +535 -0
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.css +428 -0
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +569 -0
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.css +191 -0
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +420 -0
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.css +7 -0
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +465 -0
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.css +22 -0
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +170 -0
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.css +219 -0
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +245 -0
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.css +65 -0
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +338 -0
- package/dist/collection/components/rtk-clock/rtk-clock.css +46 -0
- package/dist/collection/components/rtk-clock/rtk-clock.js +163 -0
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.css +68 -0
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +198 -0
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.css +32 -0
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +259 -0
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.css +188 -0
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +248 -0
- package/dist/collection/components/rtk-counter/rtk-counter.css +64 -0
- package/dist/collection/components/rtk-counter/rtk-counter.js +219 -0
- package/dist/collection/components/rtk-debugger/rtk-debugger.css +262 -0
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +271 -0
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +180 -0
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +294 -0
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +175 -0
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +339 -0
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +176 -0
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +260 -0
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.css +17 -0
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +234 -0
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +180 -0
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +306 -0
- package/dist/collection/components/rtk-dialog/rtk-dialog.css +47 -0
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +322 -0
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.css +17 -0
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +343 -0
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.css +81 -0
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +180 -0
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.css +141 -0
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +192 -0
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.css +3 -0
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +113 -0
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.css +80 -0
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +270 -0
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.css +20 -0
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +162 -0
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +186 -0
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.css +76 -0
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +127 -0
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.css +3 -0
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +206 -0
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.css +22 -0
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +268 -0
- package/dist/collection/components/rtk-grid/rtk-grid.css +122 -0
- package/dist/collection/components/rtk-grid/rtk-grid.js +678 -0
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.css +174 -0
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +327 -0
- package/dist/collection/components/rtk-header/rtk-header.css +35 -0
- package/dist/collection/components/rtk-header/rtk-header.js +259 -0
- package/dist/collection/components/rtk-icon/rtk-icon.css +73 -0
- package/dist/collection/components/rtk-icon/rtk-icon.js +124 -0
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.css +40 -0
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +152 -0
- package/dist/collection/components/rtk-image-message/rtk-image-message.css +21 -0
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +235 -0
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.css +117 -0
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +152 -0
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.css +99 -0
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +183 -0
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.css +41 -0
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +65 -0
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.css +131 -0
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +310 -0
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.css +17 -0
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +182 -0
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.css +75 -0
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +239 -0
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.css +65 -0
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +180 -0
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.css +177 -0
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +485 -0
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.css +22 -0
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +315 -0
- package/dist/collection/components/rtk-logo/rtk-logo.css +34 -0
- package/dist/collection/components/rtk-logo/rtk-logo.js +177 -0
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.css +44 -0
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +136 -0
- package/dist/collection/components/rtk-meeting/rtk-meeting.css +43 -0
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +520 -0
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.css +38 -0
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +128 -0
- package/dist/collection/components/rtk-menu/rtk-menu.css +25 -0
- package/dist/collection/components/rtk-menu/rtk-menu.js +217 -0
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +46 -0
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +130 -0
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +30 -0
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +100 -0
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.css +68 -0
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +439 -0
- package/dist/collection/components/rtk-message-view/rtk-message-view.css +169 -0
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +283 -0
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.css +27 -0
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +348 -0
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.css +146 -0
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +276 -0
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.css +257 -0
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +577 -0
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.css +61 -0
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +210 -0
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.css +17 -0
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +237 -0
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.css +74 -0
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +185 -0
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.css +55 -0
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +253 -0
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.css +68 -0
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +213 -0
- package/dist/collection/components/rtk-notification/rtk-notification.css +161 -0
- package/dist/collection/components/rtk-notification/rtk-notification.js +226 -0
- package/dist/collection/components/rtk-notifications/rtk-notifications.css +30 -0
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +736 -0
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.css +41 -0
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +181 -0
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +337 -0
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +591 -0
- package/dist/collection/components/rtk-participant/rtk-participant.css +91 -0
- package/dist/collection/components/rtk-participant/rtk-participant.js +503 -0
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.css +42 -0
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +205 -0
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.css +111 -0
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +338 -0
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.css +283 -0
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +464 -0
- package/dist/collection/components/rtk-participants/rtk-participants.css +127 -0
- package/dist/collection/components/rtk-participants/rtk-participants.js +404 -0
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.css +46 -0
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +282 -0
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.css +61 -0
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +364 -0
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.css +116 -0
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +285 -0
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.css +50 -0
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +348 -0
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.css +58 -0
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +326 -0
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.css +107 -0
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +263 -0
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.css +110 -0
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +325 -0
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.css +22 -0
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +293 -0
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.css +89 -0
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +232 -0
- package/dist/collection/components/rtk-plugins/rtk-plugins.css +105 -0
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +251 -0
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.css +22 -0
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +301 -0
- package/dist/collection/components/rtk-poll/rtk-poll.css +153 -0
- package/dist/collection/components/rtk-poll/rtk-poll.js +202 -0
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.css +121 -0
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +175 -0
- package/dist/collection/components/rtk-polls/rtk-polls.css +69 -0
- package/dist/collection/components/rtk-polls/rtk-polls.js +242 -0
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.css +51 -0
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +315 -0
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.css +63 -0
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +184 -0
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.css +17 -0
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +342 -0
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.css +22 -0
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +469 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +294 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +394 -0
- package/dist/collection/components/rtk-settings/rtk-settings.css +241 -0
- package/dist/collection/components/rtk-settings/rtk-settings.js +286 -0
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.css +59 -0
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +230 -0
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.css +17 -0
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +216 -0
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.css +135 -0
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +256 -0
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +175 -0
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +309 -0
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.css +65 -0
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +417 -0
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.css +135 -0
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +289 -0
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.css +20 -0
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +343 -0
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.css +144 -0
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +299 -0
- package/dist/collection/components/rtk-spinner/rtk-spinner.css +52 -0
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +99 -0
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.css +88 -0
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +402 -0
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.css +102 -0
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +195 -0
- package/dist/collection/components/rtk-stage/rtk-stage.css +19 -0
- package/dist/collection/components/rtk-stage/rtk-stage.js +125 -0
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.css +22 -0
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +321 -0
- package/dist/collection/components/rtk-switch/rtk-switch.css +51 -0
- package/dist/collection/components/rtk-switch/rtk-switch.js +211 -0
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.css +194 -0
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +330 -0
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.css +81 -0
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +316 -0
- package/dist/collection/components/rtk-text-message/components/TextMessage.js +62 -0
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +185 -0
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.css +25 -0
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +68 -0
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.css +67 -0
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +349 -0
- package/dist/collection/components/rtk-transcript/rtk-transcript.css +96 -0
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +140 -0
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.css +32 -0
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +281 -0
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.css +5 -0
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +374 -0
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.css +61 -0
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +191 -0
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.css +4 -0
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +264 -0
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.css +45 -0
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +148 -0
- package/dist/collection/exports.js +16 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/lib/addons/index.js +19 -0
- package/dist/collection/lib/audio.js +54 -0
- package/dist/collection/lib/builder/index.js +203 -0
- package/dist/collection/lib/default-ui-config.js +324 -0
- package/dist/collection/lib/grid.js +94 -0
- package/dist/collection/lib/icons/default-icon-pack.js +87 -0
- package/dist/collection/lib/icons/index.js +20 -0
- package/dist/collection/lib/lang/default-language.js +415 -0
- package/dist/collection/lib/lang/index.js +17 -0
- package/dist/collection/lib/notification.js +34 -0
- package/dist/collection/lib/render/index.js +97 -0
- package/dist/collection/lib/render/utils.js +115 -0
- package/dist/collection/lib/visualizer.js +42 -0
- package/dist/collection/theme/colors.js +130 -0
- package/dist/collection/theme/index.js +65 -0
- package/dist/collection/theme/presets/border.js +46 -0
- package/dist/collection/theme/presets/themes.js +35 -0
- package/dist/collection/theme/space.js +17 -0
- package/dist/collection/theme/tests/space.spec.js +17 -0
- package/dist/collection/types/floating-ui.js +1 -0
- package/dist/collection/types/props.js +1 -0
- package/dist/collection/types/rtk-ai.js +1 -0
- package/dist/collection/types/rtk-client.js +10 -0
- package/dist/collection/types/ui-config/config.js +35 -0
- package/dist/collection/types/ui-config/design-tokens.js +1 -0
- package/dist/collection/types/ui-config/index.js +1 -0
- package/dist/collection/types/ui-config/root.js +1 -0
- package/dist/collection/utils/assets.js +13 -0
- package/dist/collection/utils/breakout-rooms-manager.js +299 -0
- package/dist/collection/utils/breakout-rooms.js +69 -0
- package/dist/collection/utils/chat.js +198 -0
- package/dist/collection/utils/clone.js +7 -0
- package/dist/collection/utils/color.js +175 -0
- package/dist/collection/utils/config.js +359 -0
- package/dist/collection/utils/date.js +30 -0
- package/dist/collection/utils/debugger-utils.js +83 -0
- package/dist/collection/utils/file.js +54 -0
- package/dist/collection/utils/flags.js +24 -0
- package/dist/collection/utils/full-screen.js +48 -0
- package/dist/collection/utils/graceful-storage.js +18 -0
- package/dist/collection/utils/livestream.js +100 -0
- package/dist/collection/utils/notification.js +15 -0
- package/dist/collection/utils/provide-design-system.js +114 -0
- package/dist/collection/utils/scroll.js +11 -0
- package/dist/collection/utils/sidebar.js +42 -0
- package/dist/collection/utils/size.js +14 -0
- package/dist/collection/utils/stage.js +9 -0
- package/dist/collection/utils/string.js +56 -0
- package/dist/collection/utils/sync-with-store/index.js +21 -0
- package/dist/collection/utils/sync-with-store/ui-store.js +56 -0
- package/dist/collection/utils/time.js +9 -0
- package/dist/collection/utils/troubleshooter.js +469 -0
- package/dist/collection/utils/user-prefs.js +20 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +246 -0
- package/dist/components/p-00905b54.js +108 -0
- package/dist/components/p-02f19345.js +50 -0
- package/dist/components/p-05d46a0e.js +307 -0
- package/dist/components/p-0752f2ba.js +13 -0
- package/dist/components/p-08020b3c.js +213 -0
- package/dist/components/p-0abe4b8a.js +200 -0
- package/dist/components/p-0b087be2.js +77 -0
- package/dist/components/p-0e02697c.js +85 -0
- package/dist/components/p-0e6f6af9.js +79 -0
- package/dist/components/p-0f77783d.js +951 -0
- package/dist/components/p-11a9a3ec.js +81 -0
- package/dist/components/p-132d39f6.js +131 -0
- package/dist/components/p-18164a2e.js +114 -0
- package/dist/components/p-190af711.js +125 -0
- package/dist/components/p-1b5e871d.js +199 -0
- package/dist/components/p-1ba98d57.js +628 -0
- package/dist/components/p-1edce9ef.js +68 -0
- package/dist/components/p-2134aa95.js +95 -0
- package/dist/components/p-2283539e.js +105 -0
- package/dist/components/p-24ac331b.js +83 -0
- package/dist/components/p-282cc869.js +128 -0
- package/dist/components/p-291cbe98.js +92 -0
- package/dist/components/p-2c3cda13.js +164 -0
- package/dist/components/p-2c95df3f.js +168 -0
- package/dist/components/p-2ca7a08a.js +95 -0
- package/dist/components/p-2f10ccec.js +93 -0
- package/dist/components/p-31964573.js +1892 -0
- package/dist/components/p-31a1dc4d.js +159 -0
- package/dist/components/p-3358d7dc.js +108 -0
- package/dist/components/p-338c7261.js +58 -0
- package/dist/components/p-34ee27d0.js +96 -0
- package/dist/components/p-3628bdcd.js +168 -0
- package/dist/components/p-382270d8.js +32 -0
- package/dist/components/p-39c19f58.js +103 -0
- package/dist/components/p-3d5ca4ac.js +156 -0
- package/dist/components/p-3d754c34.js +62 -0
- package/dist/components/p-3ed36ca2.js +161 -0
- package/dist/components/p-3f882e7c.js +299 -0
- package/dist/components/p-3fb24e88.js +264 -0
- package/dist/components/p-400d8f0d.js +85 -0
- package/dist/components/p-40b08033.js +86 -0
- package/dist/components/p-40b74b04.js +390 -0
- package/dist/components/p-43de959f.js +178 -0
- package/dist/components/p-46923b34.js +1409 -0
- package/dist/components/p-4ee52c16.js +37 -0
- package/dist/components/p-4f0299cf.js +155 -0
- package/dist/components/p-53d81684.js +194 -0
- package/dist/components/p-55910bec.js +116 -0
- package/dist/components/p-5cd5f7db.js +103 -0
- package/dist/components/p-60fdbd75.js +224 -0
- package/dist/components/p-62471047.js +204 -0
- package/dist/components/p-6a516f83.js +179 -0
- package/dist/components/p-736ab8a0.js +211 -0
- package/dist/components/p-74baedf6.js +309 -0
- package/dist/components/p-774b8b25.js +215 -0
- package/dist/components/p-7a0a4ea1.js +115 -0
- package/dist/components/p-7d3797ee.js +223 -0
- package/dist/components/p-80b25cac.js +305 -0
- package/dist/components/p-8149712f.js +105 -0
- package/dist/components/p-815a8bcc.js +97 -0
- package/dist/components/p-8198975c.js +124 -0
- package/dist/components/p-8302e30d.js +76 -0
- package/dist/components/p-838a4971.js +203 -0
- package/dist/components/p-8b197573.js +353 -0
- package/dist/components/p-8ec943fb.js +162 -0
- package/dist/components/p-8fd7ccbf.js +149 -0
- package/dist/components/p-92a1602c.js +64 -0
- package/dist/components/p-92e527ab.js +131 -0
- package/dist/components/p-96be234f.js +26 -0
- package/dist/components/p-96d5823f.js +57 -0
- package/dist/components/p-9bcf0d04.js +1544 -0
- package/dist/components/p-9fc565cf.js +57 -0
- package/dist/components/p-a08b5a59.js +329 -0
- package/dist/components/p-a262dd1a.js +227 -0
- package/dist/components/p-a2f4f9e3.js +67 -0
- package/dist/components/p-a53e3d25.js +316 -0
- package/dist/components/p-a5737efc.js +61 -0
- package/dist/components/p-a83ccdbd.js +40 -0
- package/dist/components/p-a96fd0a2.js +45 -0
- package/dist/components/p-ab98bb45.js +69 -0
- package/dist/components/p-afce90ce.js +150 -0
- package/dist/components/p-b13ddb7d.js +96 -0
- package/dist/components/p-b1f57d50.js +118 -0
- package/dist/components/p-b661e73e.js +24 -0
- package/dist/components/p-b7fe585f.js +134 -0
- package/dist/components/p-b9089444.js +119 -0
- package/dist/components/p-bcb91396.js +43 -0
- package/dist/components/p-bd20259b.js +63 -0
- package/dist/components/p-c15d924f.js +752 -0
- package/dist/components/p-c3592601.js +1641 -0
- package/dist/components/p-c746a8bd.js +357 -0
- package/dist/components/p-c9e399b4.js +29080 -0
- package/dist/components/p-cbdd7a99.js +542 -0
- package/dist/components/p-cf6253c5.js +127 -0
- package/dist/components/p-d80915fb.js +114 -0
- package/dist/components/p-de933b70.js +157 -0
- package/dist/components/p-dfd1dfed.js +101 -0
- package/dist/components/p-e36ef452.js +157 -0
- package/dist/components/p-e560b4b6.js +82 -0
- package/dist/components/p-e8385e2f.js +125 -0
- package/dist/components/p-e889cc60.js +95 -0
- package/dist/components/p-eae68017.js +107 -0
- package/dist/components/p-eb6e37e9.js +148 -0
- package/dist/components/p-ee449660.js +1178 -0
- package/dist/components/p-ee490919.js +148 -0
- package/dist/components/p-f0924403.js +120 -0
- package/dist/components/p-f1dd271e.js +182 -0
- package/dist/components/p-f47d4fe8.js +928 -0
- package/dist/components/p-febe3ebc.js +11 -0
- package/dist/components/p-ff033d49.js +153 -0
- package/dist/components/rtk-ai-toggle.d.ts +11 -0
- package/dist/components/rtk-ai-toggle.js +119 -0
- package/dist/components/rtk-ai-transcriptions.d.ts +11 -0
- package/dist/components/rtk-ai-transcriptions.js +6 -0
- package/dist/components/rtk-ai.d.ts +11 -0
- package/dist/components/rtk-ai.js +134 -0
- package/dist/components/rtk-audio-grid.d.ts +11 -0
- package/dist/components/rtk-audio-grid.js +145 -0
- package/dist/components/rtk-audio-tile.d.ts +11 -0
- package/dist/components/rtk-audio-tile.js +182 -0
- package/dist/components/rtk-audio-visualizer.d.ts +11 -0
- package/dist/components/rtk-audio-visualizer.js +6 -0
- package/dist/components/rtk-avatar.d.ts +11 -0
- package/dist/components/rtk-avatar.js +6 -0
- package/dist/components/rtk-breakout-room-manager.d.ts +11 -0
- package/dist/components/rtk-breakout-room-manager.js +6 -0
- package/dist/components/rtk-breakout-room-participants.d.ts +11 -0
- package/dist/components/rtk-breakout-room-participants.js +6 -0
- package/dist/components/rtk-breakout-rooms-manager.d.ts +11 -0
- package/dist/components/rtk-breakout-rooms-manager.js +6 -0
- package/dist/components/rtk-breakout-rooms-toggle.d.ts +11 -0
- package/dist/components/rtk-breakout-rooms-toggle.js +129 -0
- package/dist/components/rtk-broadcast-message-modal.d.ts +11 -0
- package/dist/components/rtk-broadcast-message-modal.js +6 -0
- package/dist/components/rtk-button.d.ts +11 -0
- package/dist/components/rtk-button.js +6 -0
- package/dist/components/rtk-camera-selector.d.ts +11 -0
- package/dist/components/rtk-camera-selector.js +6 -0
- package/dist/components/rtk-camera-toggle.d.ts +11 -0
- package/dist/components/rtk-camera-toggle.js +237 -0
- package/dist/components/rtk-caption-toggle.d.ts +11 -0
- package/dist/components/rtk-caption-toggle.js +129 -0
- package/dist/components/rtk-channel-creator.d.ts +11 -0
- package/dist/components/rtk-channel-creator.js +6 -0
- package/dist/components/rtk-channel-details.d.ts +11 -0
- package/dist/components/rtk-channel-details.js +6 -0
- package/dist/components/rtk-channel-header.d.ts +11 -0
- package/dist/components/rtk-channel-header.js +6 -0
- package/dist/components/rtk-channel-selector-ui.d.ts +11 -0
- package/dist/components/rtk-channel-selector-ui.js +194 -0
- package/dist/components/rtk-channel-selector-view.d.ts +11 -0
- package/dist/components/rtk-channel-selector-view.js +6 -0
- package/dist/components/rtk-chat-composer-ui.d.ts +11 -0
- package/dist/components/rtk-chat-composer-ui.js +383 -0
- package/dist/components/rtk-chat-composer-view.d.ts +11 -0
- package/dist/components/rtk-chat-composer-view.js +6 -0
- package/dist/components/rtk-chat-message.d.ts +11 -0
- package/dist/components/rtk-chat-message.js +6 -0
- package/dist/components/rtk-chat-messages-ui-paginated.d.ts +11 -0
- package/dist/components/rtk-chat-messages-ui-paginated.js +6 -0
- package/dist/components/rtk-chat-messages-ui.d.ts +11 -0
- package/dist/components/rtk-chat-messages-ui.js +6 -0
- package/dist/components/rtk-chat-search-results.d.ts +11 -0
- package/dist/components/rtk-chat-search-results.js +6 -0
- package/dist/components/rtk-chat-selector-ui.d.ts +11 -0
- package/dist/components/rtk-chat-selector-ui.js +108 -0
- package/dist/components/rtk-chat-toggle.d.ts +11 -0
- package/dist/components/rtk-chat-toggle.js +186 -0
- package/dist/components/rtk-chat.d.ts +11 -0
- package/dist/components/rtk-chat.js +6 -0
- package/dist/components/rtk-clock.d.ts +11 -0
- package/dist/components/rtk-clock.js +127 -0
- package/dist/components/rtk-confirmation-modal.d.ts +11 -0
- package/dist/components/rtk-confirmation-modal.js +6 -0
- package/dist/components/rtk-controlbar-button.d.ts +11 -0
- package/dist/components/rtk-controlbar-button.js +6 -0
- package/dist/components/rtk-controlbar.d.ts +11 -0
- package/dist/components/rtk-controlbar.js +91 -0
- package/dist/components/rtk-counter.d.ts +11 -0
- package/dist/components/rtk-counter.js +6 -0
- package/dist/components/rtk-debugger-audio.d.ts +11 -0
- package/dist/components/rtk-debugger-audio.js +6 -0
- package/dist/components/rtk-debugger-screenshare.d.ts +11 -0
- package/dist/components/rtk-debugger-screenshare.js +6 -0
- package/dist/components/rtk-debugger-system.d.ts +11 -0
- package/dist/components/rtk-debugger-system.js +6 -0
- package/dist/components/rtk-debugger-toggle.d.ts +11 -0
- package/dist/components/rtk-debugger-toggle.js +101 -0
- package/dist/components/rtk-debugger-video.d.ts +11 -0
- package/dist/components/rtk-debugger-video.js +6 -0
- package/dist/components/rtk-debugger.d.ts +11 -0
- package/dist/components/rtk-debugger.js +6 -0
- package/dist/components/rtk-dialog-manager.d.ts +11 -0
- package/dist/components/rtk-dialog-manager.js +6 -0
- package/dist/components/rtk-dialog.d.ts +11 -0
- package/dist/components/rtk-dialog.js +6 -0
- package/dist/components/rtk-draft-attachment-view.d.ts +11 -0
- package/dist/components/rtk-draft-attachment-view.js +6 -0
- package/dist/components/rtk-emoji-picker-button.d.ts +11 -0
- package/dist/components/rtk-emoji-picker-button.js +6 -0
- package/dist/components/rtk-emoji-picker.d.ts +11 -0
- package/dist/components/rtk-emoji-picker.js +6 -0
- package/dist/components/rtk-ended-screen.d.ts +11 -0
- package/dist/components/rtk-ended-screen.js +148 -0
- package/dist/components/rtk-file-dropzone.d.ts +11 -0
- package/dist/components/rtk-file-dropzone.js +87 -0
- package/dist/components/rtk-file-message-view.d.ts +11 -0
- package/dist/components/rtk-file-message-view.js +6 -0
- package/dist/components/rtk-file-message.d.ts +11 -0
- package/dist/components/rtk-file-message.js +6 -0
- package/dist/components/rtk-file-picker-button.d.ts +11 -0
- package/dist/components/rtk-file-picker-button.js +6 -0
- package/dist/components/rtk-fullscreen-toggle.d.ts +11 -0
- package/dist/components/rtk-fullscreen-toggle.js +6 -0
- package/dist/components/rtk-grid-pagination.d.ts +11 -0
- package/dist/components/rtk-grid-pagination.js +207 -0
- package/dist/components/rtk-grid.d.ts +11 -0
- package/dist/components/rtk-grid.js +454 -0
- package/dist/components/rtk-header.d.ts +11 -0
- package/dist/components/rtk-header.js +91 -0
- package/dist/components/rtk-icon.d.ts +11 -0
- package/dist/components/rtk-icon.js +6 -0
- package/dist/components/rtk-idle-screen.d.ts +11 -0
- package/dist/components/rtk-idle-screen.js +86 -0
- package/dist/components/rtk-image-message-view.d.ts +11 -0
- package/dist/components/rtk-image-message-view.js +6 -0
- package/dist/components/rtk-image-message.d.ts +11 -0
- package/dist/components/rtk-image-message.js +6 -0
- package/dist/components/rtk-image-viewer.d.ts +11 -0
- package/dist/components/rtk-image-viewer.js +94 -0
- package/dist/components/rtk-information-tooltip.d.ts +11 -0
- package/dist/components/rtk-information-tooltip.js +61 -0
- package/dist/components/rtk-join-stage.d.ts +11 -0
- package/dist/components/rtk-join-stage.js +6 -0
- package/dist/components/rtk-leave-button.d.ts +11 -0
- package/dist/components/rtk-leave-button.js +90 -0
- package/dist/components/rtk-leave-meeting.d.ts +11 -0
- package/dist/components/rtk-leave-meeting.js +6 -0
- package/dist/components/rtk-livestream-indicator.d.ts +11 -0
- package/dist/components/rtk-livestream-indicator.js +6 -0
- package/dist/components/rtk-livestream-player.d.ts +11 -0
- package/dist/components/rtk-livestream-player.js +6 -0
- package/dist/components/rtk-livestream-toggle.d.ts +11 -0
- package/dist/components/rtk-livestream-toggle.js +184 -0
- package/dist/components/rtk-logo.d.ts +11 -0
- package/dist/components/rtk-logo.js +6 -0
- package/dist/components/rtk-markdown-view.d.ts +11 -0
- package/dist/components/rtk-markdown-view.js +6 -0
- package/dist/components/rtk-meeting-title.d.ts +11 -0
- package/dist/components/rtk-meeting-title.js +74 -0
- package/dist/components/rtk-meeting.d.ts +11 -0
- package/dist/components/rtk-meeting.js +566 -0
- package/dist/components/rtk-menu-item.d.ts +11 -0
- package/dist/components/rtk-menu-item.js +6 -0
- package/dist/components/rtk-menu-list.d.ts +11 -0
- package/dist/components/rtk-menu-list.js +6 -0
- package/dist/components/rtk-menu.d.ts +11 -0
- package/dist/components/rtk-menu.js +6 -0
- package/dist/components/rtk-message-list-view.d.ts +11 -0
- package/dist/components/rtk-message-list-view.js +324 -0
- package/dist/components/rtk-message-view.d.ts +11 -0
- package/dist/components/rtk-message-view.js +6 -0
- package/dist/components/rtk-mic-toggle.d.ts +11 -0
- package/dist/components/rtk-mic-toggle.js +235 -0
- package/dist/components/rtk-microphone-selector.d.ts +11 -0
- package/dist/components/rtk-microphone-selector.js +6 -0
- package/dist/components/rtk-mixed-grid.d.ts +11 -0
- package/dist/components/rtk-mixed-grid.js +298 -0
- package/dist/components/rtk-more-toggle.d.ts +11 -0
- package/dist/components/rtk-more-toggle.js +115 -0
- package/dist/components/rtk-mute-all-button.d.ts +11 -0
- package/dist/components/rtk-mute-all-button.js +128 -0
- package/dist/components/rtk-mute-all-confirmation.d.ts +11 -0
- package/dist/components/rtk-mute-all-confirmation.js +6 -0
- package/dist/components/rtk-name-tag.d.ts +11 -0
- package/dist/components/rtk-name-tag.js +6 -0
- package/dist/components/rtk-network-indicator.d.ts +11 -0
- package/dist/components/rtk-network-indicator.js +117 -0
- package/dist/components/rtk-notification.d.ts +11 -0
- package/dist/components/rtk-notification.js +6 -0
- package/dist/components/rtk-notifications.d.ts +11 -0
- package/dist/components/rtk-notifications.js +6 -0
- package/dist/components/rtk-overlay-modal.d.ts +11 -0
- package/dist/components/rtk-overlay-modal.js +6 -0
- package/dist/components/rtk-paginated-list.d.ts +11 -0
- package/dist/components/rtk-paginated-list.js +6 -0
- package/dist/components/rtk-participant-count.d.ts +11 -0
- package/dist/components/rtk-participant-count.js +121 -0
- package/dist/components/rtk-participant-setup.d.ts +11 -0
- package/dist/components/rtk-participant-setup.js +149 -0
- package/dist/components/rtk-participant-tile.d.ts +11 -0
- package/dist/components/rtk-participant-tile.js +6 -0
- package/dist/components/rtk-participant.d.ts +11 -0
- package/dist/components/rtk-participant.js +6 -0
- package/dist/components/rtk-participants-audio.d.ts +11 -0
- package/dist/components/rtk-participants-audio.js +248 -0
- package/dist/components/rtk-participants-stage-list.d.ts +11 -0
- package/dist/components/rtk-participants-stage-list.js +6 -0
- package/dist/components/rtk-participants-stage-queue.d.ts +11 -0
- package/dist/components/rtk-participants-stage-queue.js +6 -0
- package/dist/components/rtk-participants-toggle.d.ts +11 -0
- package/dist/components/rtk-participants-toggle.js +199 -0
- package/dist/components/rtk-participants-viewer-list.d.ts +11 -0
- package/dist/components/rtk-participants-viewer-list.js +6 -0
- package/dist/components/rtk-participants-waiting-list.d.ts +11 -0
- package/dist/components/rtk-participants-waiting-list.js +6 -0
- package/dist/components/rtk-participants.d.ts +11 -0
- package/dist/components/rtk-participants.js +304 -0
- package/dist/components/rtk-permissions-message.d.ts +11 -0
- package/dist/components/rtk-permissions-message.js +6 -0
- package/dist/components/rtk-pip-toggle.d.ts +11 -0
- package/dist/components/rtk-pip-toggle.js +133 -0
- package/dist/components/rtk-plugin-main.d.ts +11 -0
- package/dist/components/rtk-plugin-main.js +6 -0
- package/dist/components/rtk-plugins-toggle.d.ts +11 -0
- package/dist/components/rtk-plugins-toggle.js +152 -0
- package/dist/components/rtk-plugins.d.ts +11 -0
- package/dist/components/rtk-plugins.js +6 -0
- package/dist/components/rtk-poll-form.d.ts +11 -0
- package/dist/components/rtk-poll-form.js +6 -0
- package/dist/components/rtk-poll.d.ts +11 -0
- package/dist/components/rtk-poll.js +6 -0
- package/dist/components/rtk-polls-toggle.d.ts +11 -0
- package/dist/components/rtk-polls-toggle.js +164 -0
- package/dist/components/rtk-polls.d.ts +11 -0
- package/dist/components/rtk-polls.js +6 -0
- package/dist/components/rtk-recording-indicator.d.ts +11 -0
- package/dist/components/rtk-recording-indicator.js +99 -0
- package/dist/components/rtk-recording-toggle.d.ts +11 -0
- package/dist/components/rtk-recording-toggle.js +206 -0
- package/dist/components/rtk-screen-share-toggle.d.ts +11 -0
- package/dist/components/rtk-screen-share-toggle.js +320 -0
- package/dist/components/rtk-screenshare-view.d.ts +11 -0
- package/dist/components/rtk-screenshare-view.js +197 -0
- package/dist/components/rtk-settings-audio.d.ts +11 -0
- package/dist/components/rtk-settings-audio.js +6 -0
- package/dist/components/rtk-settings-toggle.d.ts +11 -0
- package/dist/components/rtk-settings-toggle.js +96 -0
- package/dist/components/rtk-settings-video.d.ts +11 -0
- package/dist/components/rtk-settings-video.js +6 -0
- package/dist/components/rtk-settings.d.ts +11 -0
- package/dist/components/rtk-settings.js +211 -0
- package/dist/components/rtk-setup-screen.d.ts +11 -0
- package/dist/components/rtk-setup-screen.js +186 -0
- package/dist/components/rtk-sidebar-ui.d.ts +11 -0
- package/dist/components/rtk-sidebar-ui.js +6 -0
- package/dist/components/rtk-sidebar.d.ts +11 -0
- package/dist/components/rtk-sidebar.js +231 -0
- package/dist/components/rtk-simple-grid.d.ts +11 -0
- package/dist/components/rtk-simple-grid.js +147 -0
- package/dist/components/rtk-speaker-selector.d.ts +11 -0
- package/dist/components/rtk-speaker-selector.js +6 -0
- package/dist/components/rtk-spinner.d.ts +11 -0
- package/dist/components/rtk-spinner.js +6 -0
- package/dist/components/rtk-spotlight-grid.d.ts +11 -0
- package/dist/components/rtk-spotlight-grid.js +135 -0
- package/dist/components/rtk-spotlight-indicator.d.ts +11 -0
- package/dist/components/rtk-spotlight-indicator.js +6 -0
- package/dist/components/rtk-stage-toggle.d.ts +11 -0
- package/dist/components/rtk-stage-toggle.js +198 -0
- package/dist/components/rtk-stage.d.ts +11 -0
- package/dist/components/rtk-stage.js +61 -0
- package/dist/components/rtk-switch.d.ts +11 -0
- package/dist/components/rtk-switch.js +6 -0
- package/dist/components/rtk-tab-bar.d.ts +11 -0
- package/dist/components/rtk-tab-bar.js +6 -0
- package/dist/components/rtk-text-composer-view.d.ts +11 -0
- package/dist/components/rtk-text-composer-view.js +6 -0
- package/dist/components/rtk-text-message-view.d.ts +11 -0
- package/dist/components/rtk-text-message-view.js +6 -0
- package/dist/components/rtk-text-message.d.ts +11 -0
- package/dist/components/rtk-text-message.js +6 -0
- package/dist/components/rtk-tooltip.d.ts +11 -0
- package/dist/components/rtk-tooltip.js +6 -0
- package/dist/components/rtk-transcript.d.ts +11 -0
- package/dist/components/rtk-transcript.js +6 -0
- package/dist/components/rtk-transcripts.d.ts +11 -0
- package/dist/components/rtk-transcripts.js +197 -0
- package/dist/components/rtk-ui-provider.d.ts +11 -0
- package/dist/components/rtk-ui-provider.js +195 -0
- package/dist/components/rtk-viewer-count.d.ts +11 -0
- package/dist/components/rtk-viewer-count.js +6 -0
- package/dist/components/rtk-virtualized-participant-list.d.ts +11 -0
- package/dist/components/rtk-virtualized-participant-list.js +6 -0
- package/dist/components/rtk-waiting-screen.d.ts +11 -0
- package/dist/components/rtk-waiting-screen.js +74 -0
- package/dist/docs/docs-components.d.ts +443 -0
- package/dist/docs/docs-components.json +239263 -0
- package/dist/docs/docs-vscode.json +4429 -0
- package/dist/esm/ChatHead-cf7a7e22.js +41 -0
- package/dist/esm/ResizeObserver.es-02979d4e.js +928 -0
- package/dist/esm/TextMessage-276a0abf.js +67 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/chat-d85cc211.js +200 -0
- package/dist/esm/clone-acd4af50.js +752 -0
- package/dist/esm/config-59d761c0.js +1178 -0
- package/dist/esm/debounce-0169a54d.js +542 -0
- package/dist/esm/debounce-ea0579b2.js +329 -0
- package/dist/esm/file-1d408324.js +57 -0
- package/dist/esm/floating-ui.dom.esm-cf1488a2.js +1892 -0
- package/dist/esm/full-screen-1f58c594.js +50 -0
- package/dist/esm/grid-a3ca5a3e.js +96 -0
- package/dist/esm/hark-6327d91e.js +299 -0
- package/dist/esm/index-7c11af40.js +24 -0
- package/dist/esm/index-c1fb98bb.js +2158 -0
- package/dist/esm/index-d31a2e33.js +224 -0
- package/dist/esm/index.js +248 -0
- package/dist/esm/isObjectLike-773b9473.js +164 -0
- package/dist/esm/keysIn-310f65c1.js +1409 -0
- package/dist/esm/loader.js +56260 -0
- package/dist/esm/notification-c6d0d98f.js +37 -0
- package/dist/esm/realtimekit-ui.js +20 -0
- package/dist/esm/rtk-ai-toggle.entry.js +72 -0
- package/dist/esm/rtk-ai-transcriptions.entry.js +134 -0
- package/dist/esm/rtk-ai.entry.js +87 -0
- package/dist/esm/rtk-audio-grid.entry.js +112 -0
- package/dist/esm/rtk-audio-tile.entry.js +126 -0
- package/dist/esm/rtk-audio-visualizer_4.entry.js +494 -0
- package/dist/esm/rtk-avatar_54.entry.js +6320 -0
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +82 -0
- package/dist/esm/rtk-camera-selector_2.entry.js +276 -0
- package/dist/esm/rtk-camera-toggle.entry.js +182 -0
- package/dist/esm/rtk-caption-toggle.entry.js +80 -0
- package/dist/esm/rtk-channel-selector-ui.entry.js +143 -0
- package/dist/esm/rtk-chat-composer-ui.entry.js +311 -0
- package/dist/esm/rtk-chat-selector-ui.entry.js +74 -0
- package/dist/esm/rtk-chat-toggle.entry.js +134 -0
- package/dist/esm/rtk-clock.entry.js +94 -0
- package/dist/esm/rtk-controlbar-button.entry.js +45 -0
- package/dist/esm/rtk-controlbar.entry.js +62 -0
- package/dist/esm/rtk-debugger-toggle.entry.js +57 -0
- package/dist/esm/rtk-ended-screen.entry.js +105 -0
- package/dist/esm/rtk-file-dropzone.entry.js +56 -0
- package/dist/esm/rtk-fullscreen-toggle.entry.js +82 -0
- package/dist/esm/rtk-grid-pagination.entry.js +155 -0
- package/dist/esm/rtk-grid.entry.js +358 -0
- package/dist/esm/rtk-header.entry.js +62 -0
- package/dist/esm/rtk-idle-screen.entry.js +43 -0
- package/dist/esm/rtk-image-viewer.entry.js +58 -0
- package/dist/esm/rtk-information-tooltip.entry.js +33 -0
- package/dist/esm/rtk-leave-button.entry.js +48 -0
- package/dist/esm/rtk-livestream-indicator_3.entry.js +29142 -0
- package/dist/esm/rtk-livestream-toggle.entry.js +138 -0
- package/dist/esm/rtk-meeting-title.entry.js +45 -0
- package/dist/esm/rtk-message-list-view.entry.js +281 -0
- package/dist/esm/rtk-mic-toggle.entry.js +180 -0
- package/dist/esm/rtk-mixed-grid.entry.js +222 -0
- package/dist/esm/rtk-more-toggle.entry.js +73 -0
- package/dist/esm/rtk-mute-all-button.entry.js +75 -0
- package/dist/esm/rtk-name-tag.entry.js +68 -0
- package/dist/esm/rtk-network-indicator.entry.js +82 -0
- package/dist/esm/rtk-participant-count.entry.js +87 -0
- package/dist/esm/rtk-participant-setup.entry.js +114 -0
- package/dist/esm/rtk-participant_2.entry.js +414 -0
- package/dist/esm/rtk-participants-audio.entry.js +203 -0
- package/dist/esm/rtk-participants-stage-list_4.entry.js +459 -0
- package/dist/esm/rtk-participants-toggle.entry.js +146 -0
- package/dist/esm/rtk-participants.entry.js +186 -0
- package/dist/esm/rtk-pip-toggle.entry.js +84 -0
- package/dist/esm/rtk-plugin-main_2.entry.js +191 -0
- package/dist/esm/rtk-plugins-toggle.entry.js +102 -0
- package/dist/esm/rtk-plugins_2.entry.js +176 -0
- package/dist/esm/rtk-poll_2.entry.js +137 -0
- package/dist/esm/rtk-polls-toggle.entry.js +113 -0
- package/dist/esm/rtk-recording-indicator.entry.js +66 -0
- package/dist/esm/rtk-recording-toggle.entry.js +158 -0
- package/dist/esm/rtk-screen-share-toggle.entry.js +261 -0
- package/dist/esm/rtk-screenshare-view.entry.js +145 -0
- package/dist/esm/rtk-settings-audio_2.entry.js +145 -0
- package/dist/esm/rtk-settings-toggle.entry.js +53 -0
- package/dist/esm/rtk-settings.entry.js +120 -0
- package/dist/esm/rtk-setup-screen.entry.js +116 -0
- package/dist/esm/rtk-sidebar-ui.entry.js +76 -0
- package/dist/esm/rtk-sidebar.entry.js +147 -0
- package/dist/esm/rtk-simple-grid.entry.js +114 -0
- package/dist/esm/rtk-spotlight-grid.entry.js +103 -0
- package/dist/esm/rtk-spotlight-indicator.entry.js +81 -0
- package/dist/esm/rtk-stage-toggle.entry.js +143 -0
- package/dist/esm/rtk-stage.entry.js +39 -0
- package/dist/esm/rtk-transcript.entry.js +54 -0
- package/dist/esm/rtk-transcripts.entry.js +163 -0
- package/dist/esm/rtk-ui-provider.entry.js +164 -0
- package/dist/esm/rtk-waiting-screen.entry.js +43 -0
- package/dist/esm/scroll-2d8e810c.js +13 -0
- package/dist/esm/sidebar-5df37ae6.js +45 -0
- package/dist/esm/size-505ade24.js +26 -0
- package/dist/esm/string-ed1380fb.js +58 -0
- package/dist/esm/ui-store-9e11a7e4.js +1582 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/realtimekit-ui/index.esm.js +1 -0
- package/dist/realtimekit-ui/p-02f19345.js +1 -0
- package/dist/realtimekit-ui/p-03f59c3d.entry.js +1 -0
- package/dist/realtimekit-ui/p-0752f2ba.js +1 -0
- package/dist/realtimekit-ui/p-08bcc52f.js +1 -0
- package/dist/realtimekit-ui/p-096b684e.entry.js +1 -0
- package/dist/realtimekit-ui/p-0b1fabf5.js +1 -0
- package/dist/realtimekit-ui/p-0ee570cd.js +2 -0
- package/dist/realtimekit-ui/p-0fbab69a.entry.js +1 -0
- package/dist/realtimekit-ui/p-10d038f4.entry.js +1 -0
- package/dist/realtimekit-ui/p-135fecaf.entry.js +1 -0
- package/dist/realtimekit-ui/p-1489ae26.entry.js +1 -0
- package/dist/realtimekit-ui/p-16951364.entry.js +1 -0
- package/dist/realtimekit-ui/p-1d66185e.entry.js +1 -0
- package/dist/realtimekit-ui/p-1e624154.entry.js +1 -0
- package/dist/realtimekit-ui/p-1fdd6794.entry.js +1 -0
- package/dist/realtimekit-ui/p-21cbb4c2.entry.js +1 -0
- package/dist/realtimekit-ui/p-241230d3.entry.js +1 -0
- package/dist/realtimekit-ui/p-27478c0c.js +1 -0
- package/dist/realtimekit-ui/p-2c3cda13.js +1 -0
- package/dist/realtimekit-ui/p-300dc0f3.entry.js +1 -0
- package/dist/realtimekit-ui/p-31964573.js +1 -0
- package/dist/realtimekit-ui/p-338c7261.js +1 -0
- package/dist/realtimekit-ui/p-376ac678.entry.js +1 -0
- package/dist/realtimekit-ui/p-3b604624.entry.js +1 -0
- package/dist/realtimekit-ui/p-3ba364bd.entry.js +1 -0
- package/dist/realtimekit-ui/p-3e0b8db7.entry.js +1 -0
- package/dist/realtimekit-ui/p-3f42b7a8.entry.js +1 -0
- package/dist/realtimekit-ui/p-3f882e7c.js +1 -0
- package/dist/realtimekit-ui/p-41382f52.js +1 -0
- package/dist/realtimekit-ui/p-454f1abe.entry.js +1 -0
- package/dist/realtimekit-ui/p-46923b34.js +1 -0
- package/dist/realtimekit-ui/p-473e3bff.entry.js +1 -0
- package/dist/realtimekit-ui/p-48b31e6c.entry.js +1 -0
- package/dist/realtimekit-ui/p-4ad4a43b.js +1 -0
- package/dist/realtimekit-ui/p-4c04f719.entry.js +1 -0
- package/dist/realtimekit-ui/p-4e0ceba3.entry.js +1 -0
- package/dist/realtimekit-ui/p-538fba61.entry.js +1 -0
- package/dist/realtimekit-ui/p-56dace60.entry.js +1 -0
- package/dist/realtimekit-ui/p-5d060b1e.entry.js +1 -0
- package/dist/realtimekit-ui/p-5d4e5a90.entry.js +1 -0
- package/dist/realtimekit-ui/p-60fd7733.entry.js +1 -0
- package/dist/realtimekit-ui/p-61f5c8a5.entry.js +1 -0
- package/dist/realtimekit-ui/p-64021a4b.entry.js +1 -0
- package/dist/realtimekit-ui/p-67a64842.entry.js +1 -0
- package/dist/realtimekit-ui/p-6c828edd.entry.js +1 -0
- package/dist/realtimekit-ui/p-6d9cd1bc.entry.js +1 -0
- package/dist/realtimekit-ui/p-705df137.entry.js +1 -0
- package/dist/realtimekit-ui/p-70973f56.entry.js +1 -0
- package/dist/realtimekit-ui/p-70e6c27d.entry.js +1 -0
- package/dist/realtimekit-ui/p-7463e3d7.entry.js +1 -0
- package/dist/realtimekit-ui/p-74828b25.entry.js +1 -0
- package/dist/realtimekit-ui/p-74f3ec2d.entry.js +1 -0
- package/dist/realtimekit-ui/p-7be381d1.entry.js +1 -0
- package/dist/realtimekit-ui/p-7df5df90.entry.js +1 -0
- package/dist/realtimekit-ui/p-7f175a9d.entry.js +1 -0
- package/dist/realtimekit-ui/p-80ad2db7.entry.js +1 -0
- package/dist/realtimekit-ui/p-845a7826.entry.js +1 -0
- package/dist/realtimekit-ui/p-87fe69f0.entry.js +1 -0
- package/dist/realtimekit-ui/p-8b34bfb4.entry.js +1 -0
- package/dist/realtimekit-ui/p-9170059f.entry.js +1 -0
- package/dist/realtimekit-ui/p-936d63a2.entry.js +1 -0
- package/dist/realtimekit-ui/p-93e6efcb.entry.js +1 -0
- package/dist/realtimekit-ui/p-93f49750.entry.js +1 -0
- package/dist/realtimekit-ui/p-96a11481.entry.js +1 -0
- package/dist/realtimekit-ui/p-96be234f.js +1 -0
- package/dist/realtimekit-ui/p-98366449.entry.js +1 -0
- package/dist/realtimekit-ui/p-9c733fd3.js +1 -0
- package/dist/realtimekit-ui/p-9f6d4fd1.entry.js +1 -0
- package/dist/realtimekit-ui/p-9fc565cf.js +1 -0
- package/dist/realtimekit-ui/p-a0652de1.entry.js +1 -0
- package/dist/realtimekit-ui/p-a08b5a59.js +1 -0
- package/dist/realtimekit-ui/p-a85361b3.entry.js +1 -0
- package/dist/realtimekit-ui/p-aa62ab59.js +1 -0
- package/dist/realtimekit-ui/p-ac306160.entry.js +1 -0
- package/dist/realtimekit-ui/p-b13ddb7d.js +1 -0
- package/dist/realtimekit-ui/p-b241c54b.entry.js +1 -0
- package/dist/realtimekit-ui/p-b4eafb55.entry.js +1 -0
- package/dist/realtimekit-ui/p-b5486fed.entry.js +1 -0
- package/dist/realtimekit-ui/p-b748755c.entry.js +1 -0
- package/dist/realtimekit-ui/p-b797c190.entry.js +1 -0
- package/dist/realtimekit-ui/p-b7bb07db.entry.js +1 -0
- package/dist/realtimekit-ui/p-bb3beb04.entry.js +1 -0
- package/dist/realtimekit-ui/p-c15d924f.js +1 -0
- package/dist/realtimekit-ui/p-c3dc1858.entry.js +1 -0
- package/dist/realtimekit-ui/p-c8eaa707.js +1 -0
- package/dist/realtimekit-ui/p-cbdd7a99.js +1 -0
- package/dist/realtimekit-ui/p-cf98e0e6.entry.js +1 -0
- package/dist/realtimekit-ui/p-d2d6cd44.entry.js +1 -0
- package/dist/realtimekit-ui/p-ddd9ae08.entry.js +1 -0
- package/dist/realtimekit-ui/p-e1255160.js +1 -0
- package/dist/realtimekit-ui/p-e52c2a9c.entry.js +1 -0
- package/dist/realtimekit-ui/p-e6377f44.entry.js +1 -0
- package/dist/realtimekit-ui/p-e687f3c1.entry.js +1 -0
- package/dist/realtimekit-ui/p-ebc9cc63.entry.js +1 -0
- package/dist/realtimekit-ui/p-edee9b57.js +1 -0
- package/dist/realtimekit-ui/p-f47d4fe8.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -0
- package/dist/types/components/rtk-ai/rtk-ai.d.ts +31 -0
- package/dist/types/components/rtk-ai-toggle/rtk-ai-toggle.d.ts +26 -0
- package/dist/types/components/rtk-ai-transcriptions/rtk-ai-transcriptions.d.ts +26 -0
- package/dist/types/components/rtk-audio-grid/rtk-audio-grid.d.ts +29 -0
- package/dist/types/components/rtk-audio-tile/rtk-audio-tile.d.ts +33 -0
- package/dist/types/components/rtk-audio-visualizer/rtk-audio-visualizer.d.ts +42 -0
- package/dist/types/components/rtk-avatar/rtk-avatar.d.ts +26 -0
- package/dist/types/components/rtk-breakout-room-manager/rtk-breakout-room-manager.d.ts +70 -0
- package/dist/types/components/rtk-breakout-room-participants/rtk-breakout-room-participants.d.ts +46 -0
- package/dist/types/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.d.ts +34 -0
- package/dist/types/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.d.ts +82 -0
- package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +26 -0
- package/dist/types/components/rtk-button/rtk-button.d.ts +25 -0
- package/dist/types/components/rtk-camera-selector/rtk-camera-selector.d.ts +40 -0
- package/dist/types/components/rtk-camera-toggle/rtk-camera-toggle.d.ts +39 -0
- package/dist/types/components/rtk-caption-toggle/rtk-caption-toggle.d.ts +30 -0
- package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +34 -0
- package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +15 -0
- package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +31 -0
- package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +32 -0
- package/dist/types/components/rtk-channel-selector-view/rtk-channel-selector-view.d.ts +62 -0
- package/dist/types/components/rtk-chat/components/ChatHead.d.ts +8 -0
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +122 -0
- package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +84 -0
- package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +73 -0
- package/dist/types/components/rtk-chat-message/rtk-chat-message.d.ts +67 -0
- package/dist/types/components/rtk-chat-messages-ui/rtk-chat-messages-ui.d.ts +46 -0
- package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +61 -0
- package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +18 -0
- package/dist/types/components/rtk-chat-selector-ui/rtk-chat-selector-ui.d.ts +29 -0
- package/dist/types/components/rtk-chat-toggle/rtk-chat-toggle.d.ts +50 -0
- package/dist/types/components/rtk-clock/rtk-clock.d.ts +23 -0
- package/dist/types/components/rtk-confirmation-modal/rtk-confirmation-modal.d.ts +27 -0
- package/dist/types/components/rtk-controlbar/rtk-controlbar.d.ts +28 -0
- package/dist/types/components/rtk-controlbar-button/rtk-controlbar-button.d.ts +30 -0
- package/dist/types/components/rtk-counter/rtk-counter.d.ts +27 -0
- package/dist/types/components/rtk-debugger/rtk-debugger.d.ts +34 -0
- package/dist/types/components/rtk-debugger-audio/rtk-debugger-audio.d.ts +36 -0
- package/dist/types/components/rtk-debugger-screenshare/rtk-debugger-screenshare.d.ts +38 -0
- package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +40 -0
- package/dist/types/components/rtk-debugger-toggle/rtk-debugger-toggle.d.ts +24 -0
- package/dist/types/components/rtk-debugger-video/rtk-debugger-video.d.ts +36 -0
- package/dist/types/components/rtk-dialog/rtk-dialog.d.ts +38 -0
- package/dist/types/components/rtk-dialog-manager/rtk-dialog-manager.d.ts +41 -0
- package/dist/types/components/rtk-draft-attachment-view/rtk-draft-attachment-view.d.ts +26 -0
- package/dist/types/components/rtk-emoji-picker/rtk-emoji-picker.d.ts +32 -0
- package/dist/types/components/rtk-emoji-picker-button/rtk-emoji-picker-button.d.ts +10 -0
- package/dist/types/components/rtk-ended-screen/rtk-ended-screen.d.ts +30 -0
- package/dist/types/components/rtk-file-dropzone/rtk-file-dropzone.d.ts +15 -0
- package/dist/types/components/rtk-file-message/rtk-file-message.d.ts +21 -0
- package/dist/types/components/rtk-file-message-view/rtk-file-message-view.d.ts +15 -0
- package/dist/types/components/rtk-file-picker-button/rtk-file-picker-button.d.ts +21 -0
- package/dist/types/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.d.ts +32 -0
- package/dist/types/components/rtk-grid/rtk-grid.d.ts +83 -0
- package/dist/types/components/rtk-grid-pagination/rtk-grid-pagination.d.ts +40 -0
- package/dist/types/components/rtk-header/rtk-header.d.ts +28 -0
- package/dist/types/components/rtk-icon/rtk-icon.d.ts +14 -0
- package/dist/types/components/rtk-idle-screen/rtk-idle-screen.d.ts +19 -0
- package/dist/types/components/rtk-image-message/rtk-image-message.d.ts +26 -0
- package/dist/types/components/rtk-image-message-view/rtk-image-message-view.d.ts +17 -0
- package/dist/types/components/rtk-image-viewer/rtk-image-viewer.d.ts +25 -0
- package/dist/types/components/rtk-information-tooltip/rtk-information-tooltip.d.ts +6 -0
- package/dist/types/components/rtk-join-stage/rtk-join-stage.d.ts +38 -0
- package/dist/types/components/rtk-leave-button/rtk-leave-button.d.ts +22 -0
- package/dist/types/components/rtk-leave-meeting/rtk-leave-meeting.d.ts +35 -0
- package/dist/types/components/rtk-livestream-indicator/rtk-livestream-indicator.d.ts +18 -0
- package/dist/types/components/rtk-livestream-player/rtk-livestream-player.d.ts +60 -0
- package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +40 -0
- package/dist/types/components/rtk-logo/rtk-logo.d.ts +20 -0
- package/dist/types/components/rtk-markdown-view/rtk-markdown-view.d.ts +15 -0
- package/dist/types/components/rtk-meeting/rtk-meeting.d.ts +59 -0
- package/dist/types/components/rtk-meeting-title/rtk-meeting-title.d.ts +15 -0
- package/dist/types/components/rtk-menu/rtk-menu.d.ts +30 -0
- package/dist/types/components/rtk-menu-item/rtk-menu-item.d.ts +19 -0
- package/dist/types/components/rtk-menu-list/rtk-menu-list.d.ts +14 -0
- package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +62 -0
- package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +33 -0
- package/dist/types/components/rtk-mic-toggle/rtk-mic-toggle.d.ts +39 -0
- package/dist/types/components/rtk-microphone-selector/rtk-microphone-selector.d.ts +42 -0
- package/dist/types/components/rtk-mixed-grid/rtk-mixed-grid.d.ts +61 -0
- package/dist/types/components/rtk-more-toggle/rtk-more-toggle.d.ts +32 -0
- package/dist/types/components/rtk-mute-all-button/rtk-mute-all-button.d.ts +26 -0
- package/dist/types/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.d.ts +21 -0
- package/dist/types/components/rtk-name-tag/rtk-name-tag.d.ts +28 -0
- package/dist/types/components/rtk-network-indicator/rtk-network-indicator.d.ts +20 -0
- package/dist/types/components/rtk-notification/rtk-notification.d.ts +30 -0
- package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +69 -0
- package/dist/types/components/rtk-overlay-modal/rtk-overlay-modal.d.ts +22 -0
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +91 -0
- package/dist/types/components/rtk-participant/rtk-participant.d.ts +62 -0
- package/dist/types/components/rtk-participant-count/rtk-participant-count.d.ts +26 -0
- package/dist/types/components/rtk-participant-setup/rtk-participant-setup.d.ts +37 -0
- package/dist/types/components/rtk-participant-tile/rtk-participant-tile.d.ts +55 -0
- package/dist/types/components/rtk-participants/rtk-participants.d.ts +48 -0
- package/dist/types/components/rtk-participants-audio/rtk-participants-audio.d.ts +34 -0
- package/dist/types/components/rtk-participants-stage-list/rtk-participants-stage-list.d.ts +42 -0
- package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +29 -0
- package/dist/types/components/rtk-participants-toggle/rtk-participants-toggle.d.ts +49 -0
- package/dist/types/components/rtk-participants-viewer-list/rtk-participants-viewer-list.d.ts +33 -0
- package/dist/types/components/rtk-participants-waiting-list/rtk-participants-waiting-list.d.ts +29 -0
- package/dist/types/components/rtk-permissions-message/rtk-permissions-message.d.ts +40 -0
- package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +28 -0
- package/dist/types/components/rtk-plugin-main/rtk-plugin-main.d.ts +28 -0
- package/dist/types/components/rtk-plugins/rtk-plugins.d.ts +35 -0
- package/dist/types/components/rtk-plugins-toggle/rtk-plugins-toggle.d.ts +42 -0
- package/dist/types/components/rtk-poll/rtk-poll.d.ts +30 -0
- package/dist/types/components/rtk-poll-form/rtk-poll-form.d.ts +30 -0
- package/dist/types/components/rtk-polls/rtk-polls.d.ts +38 -0
- package/dist/types/components/rtk-polls-toggle/rtk-polls-toggle.d.ts +46 -0
- package/dist/types/components/rtk-recording-indicator/rtk-recording-indicator.d.ts +26 -0
- package/dist/types/components/rtk-recording-toggle/rtk-recording-toggle.d.ts +47 -0
- package/dist/types/components/rtk-screen-share-toggle/rtk-screen-share-toggle.d.ts +67 -0
- package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +52 -0
- package/dist/types/components/rtk-settings/rtk-settings.d.ts +38 -0
- package/dist/types/components/rtk-settings-audio/rtk-settings-audio.d.ts +32 -0
- package/dist/types/components/rtk-settings-toggle/rtk-settings-toggle.d.ts +30 -0
- package/dist/types/components/rtk-settings-video/rtk-settings-video.d.ts +37 -0
- package/dist/types/components/rtk-setup-screen/rtk-setup-screen.d.ts +40 -0
- package/dist/types/components/rtk-sidebar/rtk-sidebar.d.ts +49 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +120 -0
- package/dist/types/components/rtk-simple-grid/rtk-simple-grid.d.ts +43 -0
- package/dist/types/components/rtk-speaker-selector/rtk-speaker-selector.d.ts +44 -0
- package/dist/types/components/rtk-spinner/rtk-spinner.d.ts +12 -0
- package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +47 -0
- package/dist/types/components/rtk-spotlight-indicator/rtk-spotlight-indicator.d.ts +22 -0
- package/dist/types/components/rtk-stage/rtk-stage.d.ts +19 -0
- package/dist/types/components/rtk-stage-toggle/rtk-stage-toggle.d.ts +36 -0
- package/dist/types/components/rtk-switch/rtk-switch.d.ts +25 -0
- package/dist/types/components/rtk-tab-bar/rtk-tab-bar.d.ts +37 -0
- package/dist/types/components/rtk-text-composer-view/rtk-text-composer-view.d.ts +34 -0
- package/dist/types/components/rtk-text-message/components/TextMessage.d.ts +6 -0
- package/dist/types/components/rtk-text-message/rtk-text-message.d.ts +21 -0
- package/dist/types/components/rtk-text-message-view/rtk-text-message-view.d.ts +10 -0
- package/dist/types/components/rtk-tooltip/rtk-tooltip.d.ts +42 -0
- package/dist/types/components/rtk-transcript/rtk-transcript.d.ts +30 -0
- package/dist/types/components/rtk-transcripts/rtk-transcripts.d.ts +39 -0
- package/dist/types/components/rtk-ui-provider/rtk-ui-provider.d.ts +45 -0
- package/dist/types/components/rtk-viewer-count/rtk-viewer-count.d.ts +24 -0
- package/dist/types/components/rtk-virtualized-list/rtk-virtualized-participant-list.d.ts +30 -0
- package/dist/types/components/rtk-waiting-screen/rtk-waiting-screen.d.ts +15 -0
- package/dist/types/components.d.ts +11544 -0
- package/dist/types/exports.d.ts +20 -0
- package/dist/types/globals.d.ts +15 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/lib/addons/index.d.ts +27 -0
- package/dist/types/lib/audio.d.ts +18 -0
- package/dist/types/lib/builder/index.d.ts +42 -0
- package/dist/types/lib/default-ui-config.d.ts +5 -0
- package/dist/types/lib/grid.d.ts +43 -0
- package/dist/types/lib/icons/default-icon-pack.d.ts +88 -0
- package/dist/types/lib/icons/index.d.ts +9 -0
- package/dist/types/lib/lang/default-language.d.ts +415 -0
- package/dist/types/lib/lang/index.d.ts +16 -0
- package/dist/types/lib/notification.d.ts +19 -0
- package/dist/types/lib/render/index.d.ts +45 -0
- package/dist/types/lib/render/utils.d.ts +31 -0
- package/dist/types/lib/visualizer.d.ts +6 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/theme/presets/border.d.ts +13 -0
- package/dist/types/theme/presets/themes.d.ts +2 -0
- package/dist/types/types/floating-ui.d.ts +1 -0
- package/dist/types/types/props.d.ts +175 -0
- package/dist/types/types/rtk-ai.d.ts +9 -0
- package/dist/types/types/rtk-client.d.ts +16 -0
- package/dist/types/types/ui-config/config.d.ts +25 -0
- package/dist/types/types/ui-config/design-tokens.d.ts +41 -0
- package/dist/types/types/ui-config/index.d.ts +15 -0
- package/dist/types/types/ui-config/root.d.ts +23 -0
- package/dist/types/types/web-core.d.ts +9 -0
- package/dist/types/utils/assets.d.ts +6 -0
- package/dist/types/utils/breakout-rooms-manager.d.ts +100 -0
- package/dist/types/utils/breakout-rooms.d.ts +24 -0
- package/dist/types/utils/chat.d.ts +49 -0
- package/dist/types/utils/clone.d.ts +1 -0
- package/dist/types/utils/color.d.ts +69 -0
- package/dist/types/utils/config.d.ts +28 -0
- package/dist/types/utils/date.d.ts +3 -0
- package/dist/types/utils/debugger-utils.d.ts +40 -0
- package/dist/types/utils/file.d.ts +23 -0
- package/dist/types/utils/full-screen.d.ts +4 -0
- package/dist/types/utils/graceful-storage.d.ts +2 -0
- package/dist/types/utils/notification.d.ts +9 -0
- package/dist/types/utils/provide-design-system.d.ts +7 -0
- package/dist/types/utils/scroll.d.ts +7 -0
- package/dist/types/utils/sidebar.d.ts +5 -0
- package/dist/types/utils/size.d.ts +7 -0
- package/dist/types/utils/stage.d.ts +3 -0
- package/dist/types/utils/string.d.ts +24 -0
- package/dist/types/utils/sync-with-store/index.d.ts +3 -0
- package/dist/types/utils/sync-with-store/ui-store.d.ts +20 -0
- package/dist/types/utils/time.d.ts +1 -0
- package/dist/types/utils/troubleshooter.d.ts +151 -0
- package/dist/types/utils/user-prefs.d.ts +7 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +59 -3
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-c1fb98bb.js';
|
|
2
|
+
import { a as defaultIconPack, c as useLanguage } from './ui-store-9e11a7e4.js';
|
|
3
|
+
import { S as SyncWithStore } from './index-7c11af40.js';
|
|
4
|
+
import { T as TextMessageView } from './TextMessage-276a0abf.js';
|
|
5
|
+
import './chat-d85cc211.js';
|
|
6
|
+
|
|
7
|
+
const rtkChannelSelectorUiCss = ".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}.container{display:flex;height:100%;width:var(--rtk-space-96, 384px);flex-direction:column;position:absolute;--tw-translate-x:calc(var(--rtk-space-96, 384px) * -1);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));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-sm, 1px);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-right-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity));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}@keyframes fade{0%{opacity:0}100%{opacity:1}}.overlay-container{width:100vw;--tw-translate-x:var(--rtk-space-96, 384px);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));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));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;animation:fade 0.8s}.overlay-container .sidebar-btn{position:static;padding:var(--rtk-space-4, 16px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.sidebar-btn{position:absolute;right:calc(var(--rtk-space-9, 36px) * -1);top:var(--rtk-space-4, 16px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-7, 28px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px)}@media (orientation: landscape) and (min-width: 400px){.container{position:static;--tw-translate-x: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))}.sidebar-btn,.overlay-container{display:none}}.search-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-2, 8px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity))}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px);width:100%}.search .search-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);padding:var(--rtk-space-2, 8px);--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));border-top-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-right-radius:var(--rtk-border-radius-sm, 4px)}.search input{box-sizing:border-box;width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);--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-1000, 255 255 255));border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:14px;line-height:1.25rem}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input{border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px)}.channel-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);overflow-y:scroll}.channel-container .channel{display:flex;align-items:center;justify-content:space-between;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.channel-container .channel:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.channel-container .channel:hover .latest-msg-time,.channel-container .channel:hover .latest-msg,.channel-container .channel:hover .latest-msg.new{color:rgb(var(--rtk-colors-text-on-brand-700, var(--rtk-colors-text-700, 255 255 255 / 0.64)))}.channel-container .channel-display{display:flex;gap:var(--rtk-space-2, 8px);align-self:center;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-0, 0px)}.channel-container .channel-display rtk-avatar{height:var(--rtk-space-9, 36px);width:var(--rtk-space-9, 36px);flex-shrink:0;font-size:12px}.channel-container .channel-display rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0;padding: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));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.channel-container .channel-card{width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-1, 4px)}.channel-container .channel-card .channel-name{max-width:var(--rtk-space-60, 240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500}.channel-container .channel-card .latest-msg{margin:var(--rtk-space-0, 0px);max-width:var(--rtk-space-56, 224px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.channel-container .channel-card .latest-msg.new{font-weight:200;font-style:italic;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.channel-container .channel-card .latest-msg-time{font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.channel-container .channel-meta{width:var(--rtk-space-12, 48px);display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:var(--rtk-space-1\\.5, 6px);font-size:12px;font-weight:600}.channel-container .new-msgs-count{height:var(--rtk-space-4, 16px);min-width:var(--rtk-space-4, 16px);padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / 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-sm, 4px);text-align:center;font-size:12px}.channel-container .selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.channel-container .selected .latest-msg-time,.channel-container .selected .latest-msg,.channel-container .selected .latest-msg.new{color:rgb(var(--rtk-colors-text-on-brand-700, var(--rtk-colors-text-700, 255 255 255 / 0.64)))}.channel-container .highlight .channel-title span{font-weight:700}.latest-msg p{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-1, 4px);display:inline-block}.latest-msg blockquote{display:none}.recent-message-row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;justify-content:space-between}";
|
|
8
|
+
const RtkChannelSelectorUiStyle0 = rtkChannelSelectorUiCss;
|
|
9
|
+
|
|
10
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
13
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
14
|
+
else
|
|
15
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
16
|
+
if (d = decorators[i])
|
|
17
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
const RtkChannelSelectorUi = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
registerInstance(this, hostRef);
|
|
23
|
+
this.channelChanged = createEvent(this, "channelChanged", 7);
|
|
24
|
+
/** Icon pack */
|
|
25
|
+
this.iconPack = defaultIconPack;
|
|
26
|
+
/** Language */
|
|
27
|
+
this.t = useLanguage();
|
|
28
|
+
/** show recent message in channel */
|
|
29
|
+
this.showRecentMessage = false;
|
|
30
|
+
this.isHidden = false;
|
|
31
|
+
this.searchQuery = '';
|
|
32
|
+
this.handleResize = (e) => {
|
|
33
|
+
this.isHidden = !e.matches;
|
|
34
|
+
};
|
|
35
|
+
this.channelSelected = (channelId) => {
|
|
36
|
+
this.channelChanged.emit(channelId);
|
|
37
|
+
this.onRevealClicked();
|
|
38
|
+
};
|
|
39
|
+
this.onSearchInput = (e) => {
|
|
40
|
+
this.searchQuery = e.target.value;
|
|
41
|
+
};
|
|
42
|
+
this.onRevealClicked = () => {
|
|
43
|
+
if (this.matchMedia.matches)
|
|
44
|
+
return;
|
|
45
|
+
this.isHidden = !this.isHidden;
|
|
46
|
+
};
|
|
47
|
+
this.renderChannelDisplayPic = (channel) => {
|
|
48
|
+
const hasDisplayPic = channel.displayPictureUrl && channel.displayPictureUrl.length !== 0;
|
|
49
|
+
if (channel.isDirectMessage || hasDisplayPic) {
|
|
50
|
+
return (h("div", { class: "channel-display" }, h("rtk-avatar", { participant: {
|
|
51
|
+
name: channel.displayName,
|
|
52
|
+
picture: channel.displayPictureUrl,
|
|
53
|
+
} })));
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return (h("div", { class: "channel-display" }, h("rtk-icon", { icon: this.iconPack.people, slot: "start" })));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
this.renderRecentMessage = (channel) => {
|
|
60
|
+
if (!channel.latestMessage)
|
|
61
|
+
return h("p", { class: "latest-msg new" }, this.t('chat.start_conversation'));
|
|
62
|
+
let senderFragment = channel.isDirectMessage ? '' : `${channel.latestMessage.displayName}: `;
|
|
63
|
+
if (channel.latestMessage.type === 'text') {
|
|
64
|
+
return (h("p", { class: "latest-msg" }, senderFragment, h(TextMessageView, { message: channel.latestMessage.message })));
|
|
65
|
+
}
|
|
66
|
+
// non text
|
|
67
|
+
let messageFragment = '';
|
|
68
|
+
if (channel.latestMessage.type === 'image') {
|
|
69
|
+
messageFragment = this.t('image');
|
|
70
|
+
}
|
|
71
|
+
else if (channel.latestMessage.type === 'file') {
|
|
72
|
+
messageFragment = this.t('file');
|
|
73
|
+
}
|
|
74
|
+
return h("p", { class: "latest-msg" }, `${senderFragment}${messageFragment}`);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
connectedCallback() {
|
|
78
|
+
this.matchMedia = window.matchMedia(`(orientation: landscape) and (min-width: 400px)`);
|
|
79
|
+
this.matchMedia.addEventListener('change', this.handleResize);
|
|
80
|
+
this.isHidden = !this.matchMedia.matches;
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
this.matchMedia.removeEventListener('change', this.handleResize);
|
|
84
|
+
}
|
|
85
|
+
componentDidRender() {
|
|
86
|
+
this.$el.style.transform = this.isHidden ? 'translateX(-380px)' : 'translateX(0)';
|
|
87
|
+
}
|
|
88
|
+
getTimeLabel(message) {
|
|
89
|
+
const messageDate = message.time;
|
|
90
|
+
const today = new Date();
|
|
91
|
+
const yesterday = new Date(today);
|
|
92
|
+
yesterday.setDate(today.getDate() - 1);
|
|
93
|
+
const firstDayOfWeek = new Date(today);
|
|
94
|
+
firstDayOfWeek.setDate(today.getDate() - today.getDay() - 1);
|
|
95
|
+
if (messageDate.toDateString() === today.toDateString()) {
|
|
96
|
+
return messageDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
97
|
+
}
|
|
98
|
+
else if (messageDate.toDateString() === yesterday.toDateString()) {
|
|
99
|
+
return this.t('date.yesteday');
|
|
100
|
+
}
|
|
101
|
+
else if (messageDate > firstDayOfWeek) {
|
|
102
|
+
const weekdays = [
|
|
103
|
+
'date.sunday',
|
|
104
|
+
'date.monday',
|
|
105
|
+
'date.tuesday',
|
|
106
|
+
'date.wednesday',
|
|
107
|
+
'date.thursday',
|
|
108
|
+
'date.friday',
|
|
109
|
+
'date.saturday',
|
|
110
|
+
];
|
|
111
|
+
return this.t(weekdays[messageDate.getDay()]);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return Intl.DateTimeFormat([], {
|
|
115
|
+
day: '2-digit',
|
|
116
|
+
month: '2-digit',
|
|
117
|
+
year: '2-digit',
|
|
118
|
+
}).format(messageDate);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
render() {
|
|
122
|
+
return (h(Host, { key: 'b6684ad536955380fd011a8db8ed74508ce5c4e2' }, h("div", { key: '0b9bd04166de85df7043026fe6f80d8980d09fd8', class: "container", ref: (el) => (this.$el = el) }, this.isHidden && (h("rtk-button", { key: '5b2af8c992ae39a097db0c6bcb79f73720c0baf6', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '0713628a2ab34e4c7dbc8bf15a760331e0a4501b', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))), h("slot", { key: 'cba2cb4ec34adb4c852362af9aa6feef0c4f11b7', name: "header" }), h("div", { key: 'ca23085817b6b0ca7bcd7cbe87d5788bc3b091d6', class: "search-wrapper" }, h("div", { key: 'ac28f333fb7625024441c06039c86a651bf31a51', class: "search" }, h("input", { key: '34f1a069108d1610209bdc902afd40f168fd24a0', type: "search", autocomplete: "off", placeholder: this.t('chat.search_conversations'), onInput: this.onSearchInput }), h("rtk-icon", { key: '479b07ba42bbd7825e33f59efb4da26301553616', icon: this.iconPack.search, class: "search-icon" }))), h("div", { key: '4f97ff09587ab50ad957e6748ee31673f9097564', class: "channel-container scrollbar", role: "list" }, this.channels
|
|
123
|
+
.filter((channel) => this.searchQuery === '' || channel.displayName.includes(this.searchQuery))
|
|
124
|
+
.map((channel) => {
|
|
125
|
+
return (h("div", { class: {
|
|
126
|
+
channel: true,
|
|
127
|
+
selected: channel.id === this.selectedChannelId,
|
|
128
|
+
highlight: !!channel.unreadCount,
|
|
129
|
+
}, role: "listitem", onClick: () => {
|
|
130
|
+
this.channelSelected(channel.id);
|
|
131
|
+
} }, this.renderChannelDisplayPic(channel), h("div", { class: "channel-card", "is-direct-message": channel.isDirectMessage }, h("div", { class: 'recent-message-row' }, h("span", { class: "channel-name" }, channel.displayName), channel.latestMessage && (h("span", { class: "latest-msg-time" }, this.getTimeLabel(channel.latestMessage)))), h("div", { class: 'recent-message-row' }, this.renderRecentMessage(channel), channel.unreadCount > 0 && channel.id !== this.selectedChannelId ? (h("span", { class: "new-msgs-count" }, channel.unreadCount < 99 ? channel.unreadCount : '99+')) : null))));
|
|
132
|
+
}))), !this.isHidden && (h("div", { key: 'dbf1235ca2393f7978906cbbcd2530ea38801157', class: "overlay-container" }, h("rtk-button", { key: 'd2a37c163f32a251597ee8dd1332c48bacad1883', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: 'a13daad18a52bd8846dba2bbeab753d0a060463e', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))))));
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
__decorate([
|
|
136
|
+
SyncWithStore()
|
|
137
|
+
], RtkChannelSelectorUi.prototype, "iconPack", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
SyncWithStore()
|
|
140
|
+
], RtkChannelSelectorUi.prototype, "t", void 0);
|
|
141
|
+
RtkChannelSelectorUi.style = RtkChannelSelectorUiStyle0;
|
|
142
|
+
|
|
143
|
+
export { RtkChannelSelectorUi as rtk_channel_selector_ui };
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, w as writeTask, h, H as Host } from './index-c1fb98bb.js';
|
|
2
|
+
import { a as defaultIconPack, c as useLanguage, k as gracefulStorage } from './ui-store-9e11a7e4.js';
|
|
3
|
+
import { r as reverse, h as handleFilesDataTransfer, k as replyBlockPattern, j as extractReplyBlock, s as stripOutReplyBlock, M as MAX_TEXT_LENGTH } from './chat-d85cc211.js';
|
|
4
|
+
import { S as SyncWithStore } from './index-7c11af40.js';
|
|
5
|
+
|
|
6
|
+
const rtkChatComposerUiCss = ":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;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.chat-input{position:relative;margin:var(--rtk-space-2, 8px);z-index:10;box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}textarea{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));box-sizing:border-box;padding:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea{border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px);font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;resize:none;overflow-y:auto;border-width:var(--rtk-border-width-none, 0);border-style:none;min-height:60px;font-size:14px}.chat-buttons{border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-left-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;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)}.chat-buttons .left rtk-button{margin-right:var(--rtk-space-1, 4px)}.chat-buttons .left rtk-button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-buttons .right{z-index:10}.chat-buttons .right .edit-buttons{display:flex;gap:var(--rtk-space-2, 8px)}.chat-buttons>div{display:flex;align-items:center}rtk-emoji-picker{z-index:0;position:absolute;bottom:var(--rtk-space-32, 128px);border-top:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));animation:0.3s slide-up ease}@keyframes slide-up{from{transform:translateY(100%)}to{transform:translateY(0%)}}.member-list{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);padding:var(--rtk-space-0, 0px);position:absolute;bottom:var(--rtk-space-28, 112px);list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.member-list .member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-4, 16px);cursor:pointer}.member-list .member rtk-avatar{flex-shrink:0;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.member-list .member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-list .member:hover,.member-list .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.suggested-replies{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-3, 12px);display:flex;flex-wrap:nowrap;gap:var(--rtk-space-2, 8px);list-style-type:none;overflow-x:auto}.suggested-replies rtk-tooltip{flex-shrink:0}.suggested-replies li{padding:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.75);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));cursor:pointer}.suggested-replies li:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity))}.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);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px)}.file-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)}.file-preview:hover rtk-tooltip{display:block}.file-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)}.file-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))}.file-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-700, 44 44 44) / var(--tw-bg-opacity));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}@keyframes scroll-text{0%{transform:translateX(0%)}70%{transform:translateX(-100%)}80%{transform:translateX(0%)}100%{transform:translateX(0%)}}";
|
|
7
|
+
const RtkChatComposerUiStyle0 = rtkChatComposerUiCss;
|
|
8
|
+
|
|
9
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
12
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
13
|
+
else
|
|
14
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
15
|
+
if (d = decorators[i])
|
|
16
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
+
};
|
|
19
|
+
const MENTION_CHAR = '@';
|
|
20
|
+
const RtkChatComposerUi = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
registerInstance(this, hostRef);
|
|
23
|
+
this.onNewMessage = createEvent(this, "rtkNewMessage", 7);
|
|
24
|
+
this.onEditMessage = createEvent(this, "rtkEditMessage", 7);
|
|
25
|
+
this.onEditCancelled = createEvent(this, "rtkEditCancelled", 7);
|
|
26
|
+
/** Whether user can send text messages */
|
|
27
|
+
this.canSendTextMessage = false;
|
|
28
|
+
/** Whether user can send file messages */
|
|
29
|
+
this.canSendFiles = false;
|
|
30
|
+
/** Icon pack */
|
|
31
|
+
this.iconPack = defaultIconPack;
|
|
32
|
+
/** Language */
|
|
33
|
+
this.t = useLanguage();
|
|
34
|
+
/** Whether to show emoji picker */
|
|
35
|
+
this.disableEmojiPicker = false;
|
|
36
|
+
/** prefill the composer */
|
|
37
|
+
this.prefill = {};
|
|
38
|
+
/** list of members that can be mentioned */
|
|
39
|
+
this.members = [];
|
|
40
|
+
this.emojiPickerActive = false;
|
|
41
|
+
this.mentionQuery = '';
|
|
42
|
+
this.focusedMemberIndex = 0;
|
|
43
|
+
this.filePreview = null;
|
|
44
|
+
this.fileReader = new FileReader();
|
|
45
|
+
this.fileToUpload = null;
|
|
46
|
+
this.handleKeyDown = (e) => {
|
|
47
|
+
if (e.key === MENTION_CHAR && [undefined, ' '].includes(this.$textArea.value.at(-1))) {
|
|
48
|
+
// [undefined, ' '] checks if mention is start of text or start of new word
|
|
49
|
+
this.mentionQuery = MENTION_CHAR;
|
|
50
|
+
}
|
|
51
|
+
if (e.key === 'ArrowDown') {
|
|
52
|
+
this.focusedMemberIndex = Math.min(this.focusedMemberIndex + 1, this.getFilteredMembers().length - 1);
|
|
53
|
+
}
|
|
54
|
+
if (e.key === 'ArrowUp') {
|
|
55
|
+
this.focusedMemberIndex = Math.max(0, this.focusedMemberIndex - 1);
|
|
56
|
+
}
|
|
57
|
+
if (e.key === 'Escape' || (e.key === 'Backspace' && this.mentionQuery === MENTION_CHAR)) {
|
|
58
|
+
this.mentionQuery = '';
|
|
59
|
+
}
|
|
60
|
+
if (['Enter', 'Tab', ' '].includes(e.key) && this.mentionQuery !== '') {
|
|
61
|
+
const member = this.getFilteredMembers()[this.focusedMemberIndex];
|
|
62
|
+
this.onMemberSelect(member);
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
// slack like typing experience
|
|
67
|
+
if (e.key === 'Enter' && e.shiftKey) {
|
|
68
|
+
const height = this.$textArea.clientHeight;
|
|
69
|
+
if (height < 200) {
|
|
70
|
+
this.$textArea.style.height = this.$textArea.clientHeight + 20 + 'px';
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else if (e.key === 'Enter') {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
if (this.prefill.editMessage) {
|
|
76
|
+
this.handleEditMessage();
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this.handleSendMessage();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else if (e.key === 'Backspace') {
|
|
83
|
+
if (this.$textArea.value.endsWith('\n')) {
|
|
84
|
+
this.$textArea.style.height = this.$textArea.clientHeight - 20 + 'px';
|
|
85
|
+
}
|
|
86
|
+
else if (this.$textArea.value === '') {
|
|
87
|
+
this.$textArea.style.height = 'auto';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
this.handleKeyUp = (_e) => {
|
|
92
|
+
if (this.mentionQuery !== '') {
|
|
93
|
+
const reversed = reverse(this.$textArea.value.trim());
|
|
94
|
+
const query = reversed.substring(0, reversed.indexOf(MENTION_CHAR));
|
|
95
|
+
this.mentionQuery = `${MENTION_CHAR}${reverse(query)}`;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
this.onPaste = (e) => {
|
|
99
|
+
const data = e.clipboardData || e.originalEvent.clipboardData;
|
|
100
|
+
writeTask(() => {
|
|
101
|
+
if (data && data.items && data.items.length > 0) {
|
|
102
|
+
handleFilesDataTransfer(data.items, this.generateFilePreview);
|
|
103
|
+
this.$textArea.value = '';
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
this.generateFilePreview = (type, file) => {
|
|
108
|
+
this.fileToUpload = { type, image: file, file };
|
|
109
|
+
if (type === 'image') {
|
|
110
|
+
this.fileReader.readAsDataURL(file);
|
|
111
|
+
}
|
|
112
|
+
else if (type === 'file') {
|
|
113
|
+
this.filePreview = file.name;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
this.sendFile = () => {
|
|
117
|
+
if (!this.canSendFiles) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (this.fileToUpload.type === 'image') {
|
|
121
|
+
this.onNewMessage.emit({
|
|
122
|
+
type: 'image',
|
|
123
|
+
file: this.fileToUpload.image,
|
|
124
|
+
image: this.fileToUpload.image,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this.onNewMessage.emit({ type: 'file', file: this.fileToUpload.file });
|
|
129
|
+
}
|
|
130
|
+
this.cleanUpFileUpload();
|
|
131
|
+
};
|
|
132
|
+
this.handleSendMessage = () => {
|
|
133
|
+
if (!this.canSendTextMessage) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (this.fileToUpload !== null) {
|
|
137
|
+
this.sendFile();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const message = this.$textArea.value.trim();
|
|
141
|
+
if (message.length > 0) {
|
|
142
|
+
if (this.prefill.replyMessage) {
|
|
143
|
+
this.onNewMessage.emit({
|
|
144
|
+
type: 'text',
|
|
145
|
+
message,
|
|
146
|
+
replyTo: this.prefill.replyMessage,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
this.onNewMessage.emit({ type: 'text', message });
|
|
151
|
+
}
|
|
152
|
+
this.cleanup();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
this.cleanup = () => {
|
|
156
|
+
this.mentionQuery = '';
|
|
157
|
+
this.focusedMemberIndex = 0;
|
|
158
|
+
this.$textArea.value = '';
|
|
159
|
+
this.$textArea.style.height = 'auto';
|
|
160
|
+
gracefulStorage.setItem(this.storageKey, '');
|
|
161
|
+
};
|
|
162
|
+
this.handleEditMessage = () => {
|
|
163
|
+
var _a;
|
|
164
|
+
let editedMessage = this.$textArea.value.trim();
|
|
165
|
+
if (((_a = this.prefill.editMessage) === null || _a === void 0 ? void 0 : _a.message) &&
|
|
166
|
+
replyBlockPattern.test(this.prefill.editMessage.message)) {
|
|
167
|
+
// add back the reply block which we stripped out for editing
|
|
168
|
+
const replyBlock = extractReplyBlock(this.prefill.editMessage.message);
|
|
169
|
+
editedMessage = `${replyBlock}\n\n${editedMessage}`;
|
|
170
|
+
}
|
|
171
|
+
this.onEditMessage.emit({
|
|
172
|
+
id: this.prefill.editMessage.id,
|
|
173
|
+
message: editedMessage,
|
|
174
|
+
channelId: this.prefill.editMessage.channelId,
|
|
175
|
+
});
|
|
176
|
+
this.cleanup();
|
|
177
|
+
};
|
|
178
|
+
this.handleEditCancel = () => {
|
|
179
|
+
this.onEditCancelled.emit();
|
|
180
|
+
this.cleanup();
|
|
181
|
+
};
|
|
182
|
+
this.initializeTextField = (el) => {
|
|
183
|
+
this.$textArea = el;
|
|
184
|
+
const message = gracefulStorage.getItem(this.storageKey) || '';
|
|
185
|
+
this.$textArea.value = message;
|
|
186
|
+
};
|
|
187
|
+
this.onMemberSelect = (member) => {
|
|
188
|
+
const reversedQuery = reverse(this.mentionQuery);
|
|
189
|
+
const reversed = reverse(this.$textArea.value.trim()).replace(reversedQuery, '');
|
|
190
|
+
this.$textArea.value = reverse(reversed) + `${MENTION_CHAR}${member.name} `;
|
|
191
|
+
this.mentionQuery = '';
|
|
192
|
+
this.focusedMemberIndex = 0;
|
|
193
|
+
writeTask(() => this.$textArea.focus());
|
|
194
|
+
};
|
|
195
|
+
this.getFilteredMembers = () => {
|
|
196
|
+
const query = this.mentionQuery.replace(MENTION_CHAR, '');
|
|
197
|
+
return this.members.filter((member) => member.name.toLowerCase().includes(query.toLowerCase()));
|
|
198
|
+
};
|
|
199
|
+
this.cleanUpFileUpload = () => {
|
|
200
|
+
this.filePreview = null;
|
|
201
|
+
this.fileToUpload = null;
|
|
202
|
+
};
|
|
203
|
+
this.renderSuggestedReplies = () => {
|
|
204
|
+
if (!this.prefill.suggestedReplies)
|
|
205
|
+
return;
|
|
206
|
+
if (this.prefill.suggestedReplies.length === 0)
|
|
207
|
+
return;
|
|
208
|
+
return (h("ul", { class: "suggested-replies scrollbar" }, this.prefill.suggestedReplies.map((reply) => (h("rtk-tooltip", { label: this.t('chat.click_to_send') }, h("li", { onClick: () => this.onNewMessage.emit({ type: 'text', message: reply }) }, reply))))));
|
|
209
|
+
};
|
|
210
|
+
this.renderMenu = () => {
|
|
211
|
+
if (this.mentionQuery.length === 0)
|
|
212
|
+
return;
|
|
213
|
+
const filteredMembers = this.getFilteredMembers();
|
|
214
|
+
if (filteredMembers.length === 0)
|
|
215
|
+
return;
|
|
216
|
+
return (h("ul", { class: "member-list scrollbar" }, filteredMembers.map((member, index) => (h("li", { class: { member: true, selected: index === this.focusedMemberIndex }, onClick: () => this.onMemberSelect(member), ref: ($li) => {
|
|
217
|
+
if (index === this.focusedMemberIndex) {
|
|
218
|
+
writeTask(() => {
|
|
219
|
+
if ($li)
|
|
220
|
+
$li.scrollIntoView({ behavior: 'smooth', block: 'end', inline: 'nearest' });
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
} }, h("rtk-avatar", { participant: {
|
|
224
|
+
name: member.name,
|
|
225
|
+
picture: member.picture,
|
|
226
|
+
}, size: "sm" }), h("span", null, member.name))))));
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
connectedCallback() {
|
|
230
|
+
this.fileReader.onload = (e) => {
|
|
231
|
+
if (typeof e.target.result === 'string') {
|
|
232
|
+
this.filePreview = e.target.result;
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
// this.fileReader.onloadstart = () => {};
|
|
236
|
+
// this.fileReader.onloadend = () => {};
|
|
237
|
+
}
|
|
238
|
+
onChannelChanged() {
|
|
239
|
+
this.mentionQuery = '';
|
|
240
|
+
this.focusedMemberIndex = 0;
|
|
241
|
+
const message = gracefulStorage.getItem(this.storageKey) || '';
|
|
242
|
+
this.$textArea.value = message;
|
|
243
|
+
this.emojiPickerActive = false;
|
|
244
|
+
}
|
|
245
|
+
componentDidRender() {
|
|
246
|
+
if (this.prefill.editMessage || this.prefill.replyMessage) {
|
|
247
|
+
writeTask(() => this.$textArea.focus());
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
get storageKey() {
|
|
251
|
+
if (this.channelId) {
|
|
252
|
+
return `rtk-text-message-${this.channelId}`;
|
|
253
|
+
}
|
|
254
|
+
return 'rtk-text-message';
|
|
255
|
+
}
|
|
256
|
+
uploadFile(type) {
|
|
257
|
+
const input = document.createElement('input');
|
|
258
|
+
input.type = 'file';
|
|
259
|
+
if (type === 'image') {
|
|
260
|
+
input.accept = 'image/*';
|
|
261
|
+
}
|
|
262
|
+
input.onchange = (e) => {
|
|
263
|
+
const { validity, files: [file], } = e.target;
|
|
264
|
+
if (validity.valid) {
|
|
265
|
+
this.generateFilePreview(type, file);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
input.click();
|
|
269
|
+
}
|
|
270
|
+
renderFilePreview() {
|
|
271
|
+
if (typeof this.filePreview !== 'string')
|
|
272
|
+
return;
|
|
273
|
+
return (h("div", { class: "preview-overlay" }, h("div", { class: "file-preview" }, h("rtk-tooltip", { label: this.t('chat.cancel_upload') }, h("rtk-button", { variant: "secondary", kind: "icon", onClick: this.cleanUpFileUpload }, h("rtk-icon", { icon: this.iconPack.dismiss }))), this.fileToUpload.type === 'image' ? (h("img", { class: "preview-image", src: this.filePreview })) : (h("div", { class: "preview-file" }, h("span", null, this.filePreview))))));
|
|
274
|
+
}
|
|
275
|
+
render() {
|
|
276
|
+
var _a;
|
|
277
|
+
let defaultValue = '';
|
|
278
|
+
if ((_a = this.prefill.editMessage) === null || _a === void 0 ? void 0 : _a.message) {
|
|
279
|
+
defaultValue = stripOutReplyBlock(this.prefill.editMessage.message);
|
|
280
|
+
}
|
|
281
|
+
return (h(Host, { key: '8f0ee810fac56aa1c62254d3d8a997941475bb3a' }, this.canSendTextMessage && this.emojiPickerActive && (h("rtk-emoji-picker", { key: '368bdbbe0e995aafd13e70d12f62b59979a5691b', part: "emoji-picker", onPickerClose: () => {
|
|
282
|
+
this.emojiPickerActive = false;
|
|
283
|
+
}, onRtkEmojiClicked: (e) => {
|
|
284
|
+
this.$textArea.value += e.detail;
|
|
285
|
+
this.$textArea.focus();
|
|
286
|
+
}, t: this.t })), this.renderSuggestedReplies(), h("slot", { key: '166872db8c0b07d2ec2e407de0fddfce7f3d4969', name: "chat-addon" }), h("slot", { key: 'b383df2de3320e69fe2cb35a22296d1ee53b08df', name: "quote-block" }), h("div", { key: '89d5fdf625bf212acda92276e9ec10b60b55a179', class: "chat-input", part: "chat-input" }, this.renderMenu(), this.canSendTextMessage && (h("textarea", { key: '55192f10820a161189d42b6150819be6a346d1e9', class: "scrollbar", part: "textarea", ref: this.initializeTextField, autoFocus: true, placeholder: this.fileToUpload ? '' : this.t('chat.message_placeholder'), value: defaultValue, onPaste: this.onPaste, maxLength: MAX_TEXT_LENGTH, onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, onInput: (e) => {
|
|
287
|
+
gracefulStorage.setItem(this.storageKey, e.target.value);
|
|
288
|
+
}, disabled: !!this.filePreview })), h("div", { key: '6c3a94c43257041fdeed496c7bd8b57ce4be6510', class: "chat-buttons", part: "chat-buttons" }, h("div", { key: '76e6f7923484ee6a58359b6554e5e51009bc317f', class: "left", part: "chat-buttons-left" }, !this.prefill.editMessage &&
|
|
289
|
+
this.canSendFiles && [
|
|
290
|
+
h("rtk-tooltip", { key: 'dbc04471a85d1fe2987c7d18dd0781e61f85fa35', label: this.t('chat.send_file') }, h("rtk-button", { key: 'cb54c65b81559d4a00a316aacf2f4bb368f30799', variant: "ghost", kind: "icon", onClick: () => this.uploadFile('file'), title: this.t('chat.send_file') }, h("rtk-icon", { key: 'd3c542b0b1260ac305de3cfd5fbf5396f18d1f0e', icon: this.iconPack.attach }))),
|
|
291
|
+
h("rtk-tooltip", { key: '6aac421a0d9149fd6c188bcce25bf4152cb8c0dd', label: this.t('chat.send_img') }, h("rtk-button", { key: '5460407db51e83ab379bb8ade5af7d87bd04b64d', variant: "ghost", kind: "icon", onClick: () => this.uploadFile('image'), title: this.t('chat.send_img') }, h("rtk-icon", { key: '3f8732882dc03b5ddf23c59bdbe96329e551b070', icon: this.iconPack.image }))),
|
|
292
|
+
], !this.prefill.editMessage && this.canSendTextMessage && !this.disableEmojiPicker && (h("rtk-tooltip", { key: '8d032069a031d6a3b3e4847953a8e027eb5b3400', label: this.t('chat.send_emoji') }, h("rtk-button", { key: 'b96b0791ac68f142408f269354bde5385c08a4da', variant: "ghost", kind: "icon", class: { active: this.emojiPickerActive }, title: this.t('chat.send_emoji'), onClick: () => {
|
|
293
|
+
this.emojiPickerActive = !this.emojiPickerActive;
|
|
294
|
+
} }, h("rtk-icon", { key: 'cd9ac09500ed1151dad94ed285db35bea6260ed8', icon: this.iconPack.emoji_multiple }))))), !!this.filePreview && this.renderFilePreview(), this.canSendTextMessage && (h("div", { key: '43b9f9232a7476b5600519fb3517d6342143d76f', class: "right", part: "chat-buttons-right" }, !this.prefill.editMessage && (h("rtk-tooltip", { key: 'ec757e58571a0ff2e4ab9b1006ab388b334a77d3', variant: "primary", label: this.t('chat.send_msg'), delay: 2000 }, h("rtk-button", { key: '054e7b52bfcfe852ca53ce96c6b498585924e616', kind: "icon", onClick: () => this.handleSendMessage(), title: this.t('chat.send_msg') }, h("rtk-icon", { key: 'd085d0aae594a8e08f29d200e4cb0818c0eabdfd', icon: this.iconPack.send })))), this.prefill.editMessage && (h("div", { key: '7926d7cf394a7989d2fbae97c1ab5a974834b431', class: "edit-buttons" }, h("rtk-tooltip", { key: '66029024ca595880cc72fdb28999f8380a8a37fc', variant: "secondary", label: this.t('cancel'), delay: 2000 }, h("rtk-button", { key: 'cba0e1460d33a0b20593009acc588ba4e385d782', kind: "icon", variant: "secondary", onClick: () => this.handleEditCancel(), title: this.t('cancel') }, h("rtk-icon", { key: '2155257dea8a5660b6b2d9d9510da153192be16e', icon: this.iconPack.dismiss }))), h("rtk-tooltip", { key: 'b296276e6f08c128ec3ba3cc292f6637e3550a34', variant: "primary", label: this.t('chat.update_msg'), delay: 2000 }, h("rtk-button", { key: 'e3c50822510811d254f3e8d65ed967b70be97037', kind: "icon", onClick: () => this.handleEditMessage(), title: this.t('chat.send_msg') }, h("rtk-icon", { key: '016e23547285b95c2545784d627a37fb8c6359d5', icon: this.iconPack.checkmark })))))))))));
|
|
295
|
+
}
|
|
296
|
+
static get watchers() { return {
|
|
297
|
+
"channelId": ["onChannelChanged"]
|
|
298
|
+
}; }
|
|
299
|
+
};
|
|
300
|
+
__decorate([
|
|
301
|
+
SyncWithStore()
|
|
302
|
+
], RtkChatComposerUi.prototype, "size", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
SyncWithStore()
|
|
305
|
+
], RtkChatComposerUi.prototype, "iconPack", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
SyncWithStore()
|
|
308
|
+
], RtkChatComposerUi.prototype, "t", void 0);
|
|
309
|
+
RtkChatComposerUi.style = RtkChatComposerUiStyle0;
|
|
310
|
+
|
|
311
|
+
export { RtkChatComposerUi as rtk_chat_composer_ui };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-c1fb98bb.js';
|
|
2
|
+
import { a as defaultIconPack, c as useLanguage } from './ui-store-9e11a7e4.js';
|
|
3
|
+
import { g as generateChatGroupKey } from './chat-d85cc211.js';
|
|
4
|
+
import { S as SyncWithStore } from './index-7c11af40.js';
|
|
5
|
+
|
|
6
|
+
const rtkChatSelectorUiCss = ":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;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;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-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;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));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--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-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}";
|
|
7
|
+
const RtkChatSelectorUiStyle0 = rtkChatSelectorUiCss;
|
|
8
|
+
|
|
9
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
12
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
13
|
+
else
|
|
14
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
15
|
+
if (d = decorators[i])
|
|
16
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
+
};
|
|
19
|
+
const RtkChatSelectorUi = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
registerInstance(this, hostRef);
|
|
22
|
+
this.groupChanged = createEvent(this, "rtkChatGroupChanged", 7);
|
|
23
|
+
/** Unread counts */
|
|
24
|
+
this.unreadCounts = {};
|
|
25
|
+
/** Participants */
|
|
26
|
+
this.groups = [];
|
|
27
|
+
/** Icon pack */
|
|
28
|
+
this.iconPack = defaultIconPack;
|
|
29
|
+
/** Language */
|
|
30
|
+
this.t = useLanguage();
|
|
31
|
+
this.showParticipantsPanel = false;
|
|
32
|
+
this.query = '';
|
|
33
|
+
this.onScopeClick = (scope) => {
|
|
34
|
+
this.showParticipantsPanel = false;
|
|
35
|
+
this.groupChanged.emit(scope);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
toggleParticipants() {
|
|
39
|
+
this.showParticipantsPanel = !this.showParticipantsPanel;
|
|
40
|
+
}
|
|
41
|
+
getGroups() {
|
|
42
|
+
return this.groups.filter((participant) => participant.name.toLowerCase().includes(this.query.toLowerCase()));
|
|
43
|
+
}
|
|
44
|
+
getName() {
|
|
45
|
+
if (!this.selectedGroupId || this.selectedGroupId === 'everyone') {
|
|
46
|
+
return this.t('everyone');
|
|
47
|
+
}
|
|
48
|
+
const group = this.groups.find((g) => g.userId === this.selectedGroupId);
|
|
49
|
+
if (group) {
|
|
50
|
+
return group.name;
|
|
51
|
+
}
|
|
52
|
+
return this.t('everyone');
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const unreadCountTotal = Object.keys(this.unreadCounts).reduce((total, key) => {
|
|
56
|
+
return total + this.unreadCounts[key];
|
|
57
|
+
}, 0);
|
|
58
|
+
return (h(Host, null, h("div", { class: "chat-scope-selector" }, this.showParticipantsPanel && (h("div", { class: "participants-container" }, h("div", { class: "search", part: "search" }, h("rtk-icon", { icon: this.iconPack.search, part: "search-icon" }), h("input", { type: "search", autocomplete: "off", placeholder: this.t('search'), value: this.query, onInput: (e) => {
|
|
59
|
+
this.query = e.target.value;
|
|
60
|
+
}, part: "search-input" })), h("ul", { class: "scope-list scrollbar" }, this.query === '' && (h("li", { class: "scope scope-special", onClick: () => this.onScopeClick('everyone') }, h("div", { class: "everyone-icon" }, h("rtk-icon", { icon: this.iconPack.participants })), this.t('everyone'), this.unreadCounts['everyone'] > 0 && (h("div", { class: "unread-count", part: "unread-count" }, h("span", null, this.unreadCounts['everyone']))))), this.getGroups().map((group) => {
|
|
61
|
+
const count = this.unreadCounts[generateChatGroupKey([this.selfUserId, group.userId])];
|
|
62
|
+
return (h("li", { class: "scope", onClick: () => this.onScopeClick(group), key: group.userId }, group.name, count > 0 && (h("div", { class: "unread-count", part: "unread-count" }, h("span", null, count)))));
|
|
63
|
+
})))), h("button", { onClick: () => this.toggleParticipants() }, h("span", null, `${this.t('to')} ${this.getName()}`, ' ', unreadCountTotal > 0 && (h("div", { class: "unread-count selector" }, h("span", null, unreadCountTotal)))), h("rtk-icon", { icon: this.showParticipantsPanel ? this.iconPack.chevron_up : this.iconPack.chevron_down })))));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
__decorate([
|
|
67
|
+
SyncWithStore()
|
|
68
|
+
], RtkChatSelectorUi.prototype, "iconPack", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
SyncWithStore()
|
|
71
|
+
], RtkChatSelectorUi.prototype, "t", void 0);
|
|
72
|
+
RtkChatSelectorUi.style = RtkChatSelectorUiStyle0;
|
|
73
|
+
|
|
74
|
+
export { RtkChatSelectorUi as rtk_chat_selector_ui };
|