@cloudflare/realtimekit-ui 0.0.0 → 1.0.0-staging.2
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 +61 -0
- package/dist/browser.js +1 -0
- package/dist/cjs/ChatHead-94cee2c7.js +46 -0
- package/dist/cjs/ResizeObserver.es-ba961f16.js +930 -0
- package/dist/cjs/TextMessage-4b80b4f5.js +69 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/chat-7e13b43e.js +217 -0
- package/dist/cjs/clone-2e9a4cae.js +754 -0
- package/dist/cjs/config-a123c409.js +1177 -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-2154d3c1.js +26 -0
- package/dist/cjs/index-333077f7.js +227 -0
- package/dist/cjs/index-d3eba4b9.js +2188 -0
- package/dist/cjs/index.cjs.js +268 -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/logger-3df9c75d.js +5 -0
- package/dist/cjs/notification-30f14d01.js +44 -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 +6355 -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 +131 -0
- package/dist/cjs/rtk-clock.cjs.entry.js +97 -0
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +48 -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 +467 -0
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +144 -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 +99 -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 +110 -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 +266 -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 +58 -0
- package/dist/cjs/rtk-sidebar.cjs.entry.js +158 -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-864a0b7a.js +50 -0
- package/dist/cjs/size-2a406e36.js +28 -0
- package/dist/cjs/string-a410fab6.js +64 -0
- package/dist/cjs/ui-store-790d3fec.js +1602 -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 +197 -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 +63 -0
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +329 -0
- package/dist/collection/components/rtk-clock/rtk-clock.css +45 -0
- package/dist/collection/components/rtk-clock/rtk-clock.js +162 -0
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.css +72 -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 +187 -0
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +247 -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 +76 -0
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +307 -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 +178 -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 +242 -0
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.css +60 -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 +35 -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 +153 -0
- package/dist/collection/components/rtk-notification/rtk-notification.js +196 -0
- package/dist/collection/components/rtk-notifications/rtk-notifications.css +30 -0
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +734 -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 +41 -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 +286 -0
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.css +48 -0
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +340 -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 +292 -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 +49 -0
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +306 -0
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.css +60 -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 +470 -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 +424 -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 +244 -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 +60 -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 +318 -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 +39 -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 +353 -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/logger.js +1 -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-028999b4.js +103 -0
- package/dist/components/p-02f19345.js +50 -0
- package/dist/components/p-0646bdc7.js +227 -0
- package/dist/components/p-0752f2ba.js +13 -0
- package/dist/components/p-09e6eab9.js +125 -0
- package/dist/components/p-0abe4b8a.js +200 -0
- package/dist/components/p-0d6af270.js +42 -0
- package/dist/components/p-0e02697c.js +85 -0
- package/dist/components/p-12aa04c2.js +168 -0
- package/dist/components/p-13ca3cc7.js +148 -0
- package/dist/components/p-158fc95d.js +92 -0
- package/dist/components/p-174eea40.js +149 -0
- package/dist/components/p-1ca992c5.js +95 -0
- package/dist/components/p-1cda12a9.js +11 -0
- package/dist/components/p-1d055d3f.js +57 -0
- package/dist/components/p-1d8ecb94.js +77 -0
- package/dist/components/p-1dcb723e.js +91 -0
- package/dist/components/p-1f633de4.js +101 -0
- package/dist/components/p-212ce4b8.js +95 -0
- package/dist/components/p-22605d4a.js +120 -0
- package/dist/components/p-25969351.js +153 -0
- package/dist/components/p-2c3cda13.js +164 -0
- package/dist/components/p-2f01fa36.js +161 -0
- package/dist/components/p-2f0318c7.js +150 -0
- package/dist/components/p-31964573.js +1892 -0
- package/dist/components/p-338c7261.js +58 -0
- package/dist/components/p-382270d8.js +32 -0
- package/dist/components/p-39af1790.js +316 -0
- package/dist/components/p-3b8741ca.js +67 -0
- package/dist/components/p-3bfd5b6d.js +1638 -0
- package/dist/components/p-3e2ba737.js +29080 -0
- package/dist/components/p-3f882e7c.js +299 -0
- package/dist/components/p-4611af78.js +97 -0
- package/dist/components/p-46923b34.js +1409 -0
- package/dist/components/p-46ab4375.js +180 -0
- package/dist/components/p-46ff9ad9.js +114 -0
- package/dist/components/p-483752a4.js +178 -0
- package/dist/components/p-4b5caa33.js +125 -0
- package/dist/components/p-512c3bef.js +156 -0
- package/dist/components/p-51b56b52.js +159 -0
- package/dist/components/p-53b020e2.js +1538 -0
- package/dist/components/p-550aa089.js +1172 -0
- package/dist/components/p-5605a420.js +3 -0
- package/dist/components/p-5c0da120.js +182 -0
- package/dist/components/p-5d2cf697.js +76 -0
- package/dist/components/p-60db99e3.js +215 -0
- package/dist/components/p-613b7d98.js +353 -0
- package/dist/components/p-624f14ef.js +951 -0
- package/dist/components/p-63e92eda.js +264 -0
- package/dist/components/p-641ba920.js +61 -0
- package/dist/components/p-6453124f.js +211 -0
- package/dist/components/p-64a6ea33.js +194 -0
- package/dist/components/p-65bf60df.js +81 -0
- package/dist/components/p-6fa3c2fa.js +93 -0
- package/dist/components/p-71133697.js +112 -0
- package/dist/components/p-746ae804.js +103 -0
- package/dist/components/p-749efee6.js +85 -0
- package/dist/components/p-77167e1b.js +162 -0
- package/dist/components/p-78349933.js +213 -0
- package/dist/components/p-7ad5bf75.js +82 -0
- package/dist/components/p-82fbdbf4.js +105 -0
- package/dist/components/p-87480646.js +309 -0
- package/dist/components/p-87d8706e.js +114 -0
- package/dist/components/p-89bbfe71.js +203 -0
- package/dist/components/p-906cb5bf.js +82 -0
- package/dist/components/p-90bd27de.js +199 -0
- package/dist/components/p-915562c0.js +307 -0
- package/dist/components/p-9217dbe9.js +115 -0
- package/dist/components/p-94443423.js +45 -0
- package/dist/components/p-963d619f.js +626 -0
- package/dist/components/p-96be234f.js +26 -0
- package/dist/components/p-971097d5.js +108 -0
- package/dist/components/p-98ae3e41.js +86 -0
- package/dist/components/p-9c2796e3.js +68 -0
- package/dist/components/p-9fc565cf.js +57 -0
- package/dist/components/p-a08b5a59.js +329 -0
- package/dist/components/p-a4182a97.js +118 -0
- package/dist/components/p-a83ccdbd.js +40 -0
- package/dist/components/p-abbbb5f3.js +69 -0
- package/dist/components/p-ad50fcdc.js +95 -0
- package/dist/components/p-ae1931dd.js +79 -0
- package/dist/components/p-aec1ab2d.js +96 -0
- package/dist/components/p-b13ddb7d.js +96 -0
- package/dist/components/p-ba1a0ebf.js +63 -0
- package/dist/components/p-baea3e90.js +119 -0
- package/dist/components/p-bb4322af.js +131 -0
- package/dist/components/p-bb7c5e38.js +134 -0
- package/dist/components/p-bc68e74e.js +128 -0
- package/dist/components/p-bed2e1b5.js +62 -0
- package/dist/components/p-bffc1ba5.js +155 -0
- package/dist/components/p-c15d924f.js +752 -0
- package/dist/components/p-c4482ff1.js +157 -0
- package/dist/components/p-c8a6dfb8.js +305 -0
- package/dist/components/p-cbdd7a99.js +542 -0
- package/dist/components/p-cdfe8250.js +390 -0
- package/dist/components/p-d17beb97.js +223 -0
- package/dist/components/p-d978ca76.js +124 -0
- package/dist/components/p-da00b09a.js +148 -0
- package/dist/components/p-dca85942.js +108 -0
- package/dist/components/p-de7f1269.js +224 -0
- package/dist/components/p-df1632fd.js +204 -0
- package/dist/components/p-df6f9a3f.js +24 -0
- package/dist/components/p-eb0fc611.js +43 -0
- package/dist/components/p-eebae590.js +357 -0
- package/dist/components/p-efc19d8d.js +63 -0
- package/dist/components/p-f22929f5.js +105 -0
- package/dist/components/p-f47d4fe8.js +928 -0
- package/dist/components/p-f5e4f0bb.js +168 -0
- package/dist/components/p-f9aece94.js +96 -0
- package/dist/components/p-fb535f2c.js +157 -0
- package/dist/components/p-fd0abb3e.js +134 -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 +178 -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 +126 -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 +192 -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 +144 -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 +156 -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 +321 -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 +238 -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 +239216 -0
- package/dist/docs/docs-vscode.json +4421 -0
- package/dist/esm/ChatHead-4ef9f354.js +41 -0
- package/dist/esm/ResizeObserver.es-02979d4e.js +928 -0
- package/dist/esm/TextMessage-0683cfdd.js +67 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/chat-d82f457b.js +200 -0
- package/dist/esm/clone-acd4af50.js +752 -0
- package/dist/esm/config-233d8f24.js +1172 -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-25a91036.js +2155 -0
- package/dist/esm/index-27e158ce.js +24 -0
- package/dist/esm/index-3f9d8968.js +224 -0
- package/dist/esm/index.js +249 -0
- package/dist/esm/isObjectLike-773b9473.js +164 -0
- package/dist/esm/keysIn-310f65c1.js +1409 -0
- package/dist/esm/loader.js +56184 -0
- package/dist/esm/logger-31448943.js +3 -0
- package/dist/esm/notification-90f2d20b.js +42 -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 +6298 -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 +127 -0
- package/dist/esm/rtk-clock.entry.js +93 -0
- package/dist/esm/rtk-controlbar-button.entry.js +44 -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 +460 -0
- package/dist/esm/rtk-participants-toggle.entry.js +140 -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 +95 -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 +106 -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 +262 -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 +54 -0
- package/dist/esm/rtk-sidebar.entry.js +154 -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-aa5e43a2.js +45 -0
- package/dist/esm/size-505ade24.js +26 -0
- package/dist/esm/string-ed1380fb.js +58 -0
- package/dist/esm/ui-store-5383d525.js +1576 -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-0218a56b.js +1 -0
- package/dist/realtimekit-ui/p-02f19345.js +1 -0
- package/dist/realtimekit-ui/p-0336caf2.entry.js +1 -0
- package/dist/realtimekit-ui/p-03ac511d.entry.js +1 -0
- package/dist/realtimekit-ui/p-06f1ed80.entry.js +1 -0
- package/dist/realtimekit-ui/p-0752f2ba.js +1 -0
- package/dist/realtimekit-ui/p-0c011730.entry.js +1 -0
- package/dist/realtimekit-ui/p-0d9929ac.js +1 -0
- package/dist/realtimekit-ui/p-0e8213ad.entry.js +1 -0
- package/dist/realtimekit-ui/p-0ec000c9.entry.js +1 -0
- package/dist/realtimekit-ui/p-0f5a23ce.entry.js +1 -0
- package/dist/realtimekit-ui/p-1206b9a4.entry.js +1 -0
- package/dist/realtimekit-ui/p-1567a135.js +1 -0
- package/dist/realtimekit-ui/p-15b14b92.entry.js +1 -0
- package/dist/realtimekit-ui/p-1b0b0f2d.js +1 -0
- package/dist/realtimekit-ui/p-1be4070c.entry.js +1 -0
- package/dist/realtimekit-ui/p-1fac5c7d.entry.js +1 -0
- package/dist/realtimekit-ui/p-24905c85.entry.js +1 -0
- package/dist/realtimekit-ui/p-2573cda1.entry.js +1 -0
- package/dist/realtimekit-ui/p-2738468d.entry.js +1 -0
- package/dist/realtimekit-ui/p-2c3cda13.js +1 -0
- package/dist/realtimekit-ui/p-31964573.js +1 -0
- package/dist/realtimekit-ui/p-31cb9664.entry.js +1 -0
- package/dist/realtimekit-ui/p-3207575b.entry.js +1 -0
- package/dist/realtimekit-ui/p-338c7261.js +1 -0
- package/dist/realtimekit-ui/p-36990601.entry.js +1 -0
- package/dist/realtimekit-ui/p-3cf531c1.js +1 -0
- package/dist/realtimekit-ui/p-3e83ff84.js +1 -0
- package/dist/realtimekit-ui/p-3f882e7c.js +1 -0
- package/dist/realtimekit-ui/p-46923b34.js +1 -0
- package/dist/realtimekit-ui/p-46c3367c.entry.js +1 -0
- package/dist/realtimekit-ui/p-46ea4a0d.entry.js +1 -0
- package/dist/realtimekit-ui/p-4caa353f.entry.js +1 -0
- package/dist/realtimekit-ui/p-533ce032.entry.js +1 -0
- package/dist/realtimekit-ui/p-533ecbf2.js +2 -0
- package/dist/realtimekit-ui/p-5359c5bf.entry.js +1 -0
- package/dist/realtimekit-ui/p-551b32ce.entry.js +1 -0
- package/dist/realtimekit-ui/p-5605a420.js +1 -0
- package/dist/realtimekit-ui/p-59f22e0a.entry.js +1 -0
- package/dist/realtimekit-ui/p-5a7d71b0.entry.js +1 -0
- package/dist/realtimekit-ui/p-5da1339e.entry.js +1 -0
- package/dist/realtimekit-ui/p-61f4443f.entry.js +1 -0
- package/dist/realtimekit-ui/p-63fabdb8.entry.js +1 -0
- package/dist/realtimekit-ui/p-646b89d6.entry.js +1 -0
- package/dist/realtimekit-ui/p-6481cc88.entry.js +1 -0
- package/dist/realtimekit-ui/p-6964a8f6.entry.js +1 -0
- package/dist/realtimekit-ui/p-6a4fb57a.entry.js +1 -0
- package/dist/realtimekit-ui/p-6ad690e8.entry.js +1 -0
- package/dist/realtimekit-ui/p-6b50f9b5.entry.js +1 -0
- package/dist/realtimekit-ui/p-6c894b6b.entry.js +1 -0
- package/dist/realtimekit-ui/p-6e0f9e5d.entry.js +1 -0
- package/dist/realtimekit-ui/p-701e8cc1.entry.js +1 -0
- package/dist/realtimekit-ui/p-7895b888.entry.js +1 -0
- package/dist/realtimekit-ui/p-7d970fe1.entry.js +1 -0
- package/dist/realtimekit-ui/p-7edbcd5e.entry.js +1 -0
- package/dist/realtimekit-ui/p-8d04a9a1.entry.js +1 -0
- package/dist/realtimekit-ui/p-8edd80c2.entry.js +1 -0
- package/dist/realtimekit-ui/p-93f69d20.entry.js +1 -0
- package/dist/realtimekit-ui/p-96be234f.js +1 -0
- package/dist/realtimekit-ui/p-997830fd.entry.js +1 -0
- package/dist/realtimekit-ui/p-9c378706.entry.js +1 -0
- package/dist/realtimekit-ui/p-9fc565cf.js +1 -0
- package/dist/realtimekit-ui/p-a08b5a59.js +1 -0
- package/dist/realtimekit-ui/p-a268fabd.entry.js +1 -0
- package/dist/realtimekit-ui/p-a467c711.entry.js +1 -0
- package/dist/realtimekit-ui/p-a7ec3e7f.js +1 -0
- package/dist/realtimekit-ui/p-b13ddb7d.js +1 -0
- package/dist/realtimekit-ui/p-b2ad78a0.entry.js +1 -0
- package/dist/realtimekit-ui/p-b7183272.entry.js +1 -0
- package/dist/realtimekit-ui/p-b8ea8298.entry.js +1 -0
- package/dist/realtimekit-ui/p-bac4d3cc.entry.js +1 -0
- package/dist/realtimekit-ui/p-badcfa98.entry.js +1 -0
- package/dist/realtimekit-ui/p-bfe04e6b.entry.js +1 -0
- package/dist/realtimekit-ui/p-c15d924f.js +1 -0
- package/dist/realtimekit-ui/p-c1c88e62.entry.js +1 -0
- package/dist/realtimekit-ui/p-c5aabfb2.entry.js +1 -0
- package/dist/realtimekit-ui/p-c9474ab6.entry.js +1 -0
- package/dist/realtimekit-ui/p-ca1a26a8.entry.js +1 -0
- package/dist/realtimekit-ui/p-cadc29e0.entry.js +1 -0
- package/dist/realtimekit-ui/p-cbdd7a99.js +1 -0
- package/dist/realtimekit-ui/p-cc0c49b8.entry.js +1 -0
- package/dist/realtimekit-ui/p-cdb45819.entry.js +1 -0
- package/dist/realtimekit-ui/p-d4ad4027.entry.js +1 -0
- package/dist/realtimekit-ui/p-d7509ae5.entry.js +1 -0
- package/dist/realtimekit-ui/p-d9a0b571.entry.js +1 -0
- package/dist/realtimekit-ui/p-db9371e5.js +1 -0
- package/dist/realtimekit-ui/p-e05e4c26.entry.js +1 -0
- package/dist/realtimekit-ui/p-e1255160.js +1 -0
- package/dist/realtimekit-ui/p-e1b5df5c.entry.js +1 -0
- package/dist/realtimekit-ui/p-e4686e58.entry.js +1 -0
- package/dist/realtimekit-ui/p-e9a4f3d2.entry.js +1 -0
- package/dist/realtimekit-ui/p-eb3c426f.entry.js +1 -0
- package/dist/realtimekit-ui/p-f0d98e40.entry.js +1 -0
- package/dist/realtimekit-ui/p-f47d4fe8.js +1 -0
- package/dist/realtimekit-ui/p-faf1d40a.js +1 -0
- package/dist/realtimekit-ui/p-fb2ddda7.entry.js +1 -0
- package/dist/realtimekit-ui/p-fdad06d2.entry.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 +48 -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 +36 -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 +26 -0
- package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +68 -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 +47 -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 +40 -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 +44 -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 +50 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +112 -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 +11528 -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 +17 -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/logger.d.ts +1 -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 +58 -3
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-3bfd5b6d.js';
|
|
2
|
+
import { M as MAX_TEXT_LENGTH, p as parseRichText, e as extractReplyBlock, s as stripOutReplyBlock } from './p-0abe4b8a.js';
|
|
3
|
+
|
|
4
|
+
const rtkMarkdownViewCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{overflow-wrap:break-word}a{color:currentColor}.block-quote,blockquote{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px);--tw-border-spacing-x:1px;--tw-border-spacing-y:1px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-md, 2px);border-right-width:var(--rtk-border-width-none, 0);border-style:solid;padding:var(--rtk-space-0\\.5, 2px);padding-left:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);border-top-left-radius:var(--rtk-border-radius-none, 0);border-bottom-left-radius:var(--rtk-border-radius-none, 0)}pre{white-space:pre-wrap}";
|
|
5
|
+
const RtkMarkdownViewStyle0 = rtkMarkdownViewCss;
|
|
6
|
+
|
|
7
|
+
const RtkMarkdownView = /*@__PURE__*/ proxyCustomElement(class RtkMarkdownView extends H {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
/** max length of text to render as markdown */
|
|
13
|
+
this.maxLength = MAX_TEXT_LENGTH;
|
|
14
|
+
this.restoreEmpty = (content, tag, renderCallback) => {
|
|
15
|
+
return content.trim().length === 0 ? `${tag}${content}${tag}` : renderCallback(content);
|
|
16
|
+
};
|
|
17
|
+
this.renderLink = (content) => {
|
|
18
|
+
return (h("a", { class: "link", href: content, target: "_blank", rel: "noopener noreferrer" }, content));
|
|
19
|
+
};
|
|
20
|
+
this.renderBold = (content) => {
|
|
21
|
+
if (typeof content === 'string') {
|
|
22
|
+
return this.restoreEmpty(content, '*', (c) => h("b", null, c));
|
|
23
|
+
}
|
|
24
|
+
return h("b", null, this.renderTokens(content));
|
|
25
|
+
};
|
|
26
|
+
this.renderItalic = (content) => {
|
|
27
|
+
if (typeof content === 'string') {
|
|
28
|
+
return this.restoreEmpty(content, '_', (c) => h("i", null, c));
|
|
29
|
+
}
|
|
30
|
+
return h("i", null, this.renderTokens(content));
|
|
31
|
+
};
|
|
32
|
+
this.renderStrikethrough = (content) => {
|
|
33
|
+
if (typeof content === 'string') {
|
|
34
|
+
return this.restoreEmpty(content, '~', (c) => h("s", null, c));
|
|
35
|
+
}
|
|
36
|
+
return h("b", null, this.renderTokens(content));
|
|
37
|
+
};
|
|
38
|
+
this.renderPlainText = (content) => {
|
|
39
|
+
if (typeof content === 'string') {
|
|
40
|
+
return content;
|
|
41
|
+
}
|
|
42
|
+
return h("p", null, this.renderTokens(content));
|
|
43
|
+
};
|
|
44
|
+
this.renderTokens = (tokens) => {
|
|
45
|
+
return tokens.map((token) => {
|
|
46
|
+
switch (token.type) {
|
|
47
|
+
case 'a':
|
|
48
|
+
if (typeof token.content === 'string') {
|
|
49
|
+
return this.renderLink(token.content);
|
|
50
|
+
}
|
|
51
|
+
case 'b':
|
|
52
|
+
return this.renderBold(token.content);
|
|
53
|
+
case 'i':
|
|
54
|
+
return this.renderItalic(token.content);
|
|
55
|
+
case 's':
|
|
56
|
+
return this.renderStrikethrough(token.content);
|
|
57
|
+
case 'q':
|
|
58
|
+
return h("span", { class: "block-quote" });
|
|
59
|
+
case 'plain_text':
|
|
60
|
+
default:
|
|
61
|
+
return this.renderPlainText(token.content);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
renderMessage(text) {
|
|
67
|
+
let lines = text.split('\n');
|
|
68
|
+
let isCodeBlock = false;
|
|
69
|
+
if (lines[0] === '```' && lines[lines.length - 1] === '```') {
|
|
70
|
+
isCodeBlock = true;
|
|
71
|
+
lines = lines.slice(1, -1);
|
|
72
|
+
}
|
|
73
|
+
const message = lines.map((line) => {
|
|
74
|
+
const tokens = parseRichText(line);
|
|
75
|
+
return h("p", null, this.renderTokens(tokens));
|
|
76
|
+
});
|
|
77
|
+
if (isCodeBlock) {
|
|
78
|
+
return h("pre", { style: { whiteSpace: 'pre', overflow: 'scroll' } }, lines.join('\n'));
|
|
79
|
+
}
|
|
80
|
+
return message;
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
const slicedMessage = this.text.slice(0, this.maxLength);
|
|
84
|
+
const withReply = extractReplyBlock(slicedMessage, true);
|
|
85
|
+
const withoutReply = stripOutReplyBlock(slicedMessage);
|
|
86
|
+
return (h("p", { key: '0edda34be90038b70316ff2732939a7ea42f2b30' }, withReply.length !== 0 && h("blockquote", { key: 'c58ade9478aee1080c922c29245509dc94672fc4' }, this.renderMessage(withReply)), withoutReply.length !== 0 && this.renderMessage(withoutReply)));
|
|
87
|
+
}
|
|
88
|
+
static get style() { return RtkMarkdownViewStyle0; }
|
|
89
|
+
}, [1, "rtk-markdown-view", {
|
|
90
|
+
"text": [1],
|
|
91
|
+
"maxLength": [2, "max-length"]
|
|
92
|
+
}]);
|
|
93
|
+
function defineCustomElement() {
|
|
94
|
+
if (typeof customElements === "undefined") {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const components = ["rtk-markdown-view"];
|
|
98
|
+
components.forEach(tagName => { switch (tagName) {
|
|
99
|
+
case "rtk-markdown-view":
|
|
100
|
+
if (!customElements.get(tagName)) {
|
|
101
|
+
customElements.define(tagName, RtkMarkdownView);
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
} });
|
|
105
|
+
}
|
|
106
|
+
defineCustomElement();
|
|
107
|
+
|
|
108
|
+
export { RtkMarkdownView as R, defineCustomElement as d };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, e as Host } from './p-3bfd5b6d.js';
|
|
2
|
+
import { a as defaultIconPack, c as useLanguage } from './p-53b020e2.js';
|
|
3
|
+
import { S as SyncWithStore } from './p-df6f9a3f.js';
|
|
4
|
+
import { s as shorten, f as formatName, g as getInitials } from './p-338c7261.js';
|
|
5
|
+
import { d as defineCustomElement$1 } from './p-bffc1ba5.js';
|
|
6
|
+
|
|
7
|
+
const rtkPollCss = ":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)))}.ctr{margin-bottom:var(--rtk-space-3, 12px);display:flex;width:100%;flex-direction:column;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.poll-title{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-4, 16px);font-size:12px}.poll{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));display:flex;flex-direction:column;padding:var(--rtk-space-4, 16px)}.poll-question{padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;overflow-wrap:break-word}.poll-answers{display:flex;flex-direction:row;justify-content:space-between;font-size:12px;margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-3, 12px)}.poll-option{display:flex;flex-direction:column;margin-top:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);word-break:break-word}.poll-option.open-vote:hover{cursor:pointer}.poll-option label{display:flex;flex-direction:row;cursor:inherit}.poll-option-header{display:flex;flex-direction:row;justify-content:space-between;padding:var(--rtk-space-1, 4px)}.poll-option-header[data-disabled='true']:hover{cursor:default}.poll-option-header input{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-2, 8px);cursor:inherit}.poll-option-header .counter{color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:12px}.votes{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;flex-wrap:wrap}.vote{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);display:flex;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-none, 0);clip-path:circle()}.active{--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-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.active .counter{color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}";
|
|
8
|
+
const RtkPollStyle0 = rtkPollCss;
|
|
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 RtkPolls = /*@__PURE__*/ proxyCustomElement(class RtkPolls extends H {
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
this.__registerHost();
|
|
24
|
+
this.__attachShadow();
|
|
25
|
+
this.onVote = createEvent(this, "rtkVotePoll", 7);
|
|
26
|
+
/** Icon pack */
|
|
27
|
+
this.iconPack = defaultIconPack;
|
|
28
|
+
/** Language */
|
|
29
|
+
this.t = useLanguage();
|
|
30
|
+
this.MAX_VOTES_RENDER = 10;
|
|
31
|
+
}
|
|
32
|
+
vote(e, index) {
|
|
33
|
+
if (this.poll.voted.includes(this.self)) {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.onVote.emit({ id: this.poll.id, index });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
const hasVoted = this.poll.voted.includes(this.self);
|
|
42
|
+
return (h(Host, { key: 'd37f42807d5e9ff32cd1a675d917a15ef38c1a50' }, h("div", { key: '2defb5e6817c6e52ef9d174e9139106d9f971304', class: "ctr" }, h("p", { key: '1f62d9493e4412fb8120dd6a1cdac8102d4bfd3f', class: "poll-title" }, this.t('polls.by'), " ", shorten(formatName(this.poll.createdBy), 20)), h("div", { key: '75315b70802cd4040f3a9feafe424f329fd2b397', class: "poll" }, h("p", { key: '562f274b9c9a37c181491ec2a10bc60dfb9b2f2e', class: "poll-question" }, this.poll.question), h("div", { key: 'b683a6f2d4f019f2abc0ede2db00559ee251601d', class: "poll-answers" }, h("span", { key: '8470f3dfc7e3ae98af53264e395678bf4a1df7af' }, this.t('polls.answers')), h("span", { key: '2a8bbbb9b06b5ae990b6076028c1305f7c8551b8' }, this.poll.voted.length)), this.poll.options.map((item, index) => (h("div", { class: {
|
|
43
|
+
active: item.votes.some((x) => x.id === this.self),
|
|
44
|
+
'open-vote': this.permissions.polls.canVote && !hasVoted,
|
|
45
|
+
'poll-option': true,
|
|
46
|
+
} }, h("div", { class: "poll-option-header", "data-disabled": !this.permissions.polls.canVote }, h("label", null, !hasVoted && (h("input", { disabled: !this.permissions.polls.canVote, readOnly: hasVoted, type: "radio", checked: item.votes.some((x) => x.id === this.self), onClick: (e) => this.vote(e, index) })), h("p", null, item.text)), h("span", { class: "counter" }, item.count)), h("div", { class: "votes" }, item.votes.slice(0, this.MAX_VOTES_RENDER).map((vote) => {
|
|
47
|
+
if (this.poll.anonymous && this.self !== this.poll.createdByUserId)
|
|
48
|
+
return;
|
|
49
|
+
return (h("rtk-tooltip", { label: vote.name }, h("div", { class: "vote" }, getInitials(vote.name))));
|
|
50
|
+
}), item.votes.length > this.MAX_VOTES_RENDER && (h("rtk-tooltip", { label: `+${item.votes.length - this.MAX_VOTES_RENDER} more ` }, h("div", { class: "vote" }, "+", item.votes.length - this.MAX_VOTES_RENDER)))))))))));
|
|
51
|
+
}
|
|
52
|
+
static get style() { return RtkPollStyle0; }
|
|
53
|
+
}, [1, "rtk-poll", {
|
|
54
|
+
"poll": [16],
|
|
55
|
+
"self": [1],
|
|
56
|
+
"permissions": [16],
|
|
57
|
+
"iconPack": [16],
|
|
58
|
+
"t": [16]
|
|
59
|
+
}]);
|
|
60
|
+
__decorate([
|
|
61
|
+
SyncWithStore()
|
|
62
|
+
], RtkPolls.prototype, "iconPack", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
SyncWithStore()
|
|
65
|
+
], RtkPolls.prototype, "t", void 0);
|
|
66
|
+
function defineCustomElement() {
|
|
67
|
+
if (typeof customElements === "undefined") {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const components = ["rtk-poll", "rtk-tooltip"];
|
|
71
|
+
components.forEach(tagName => { switch (tagName) {
|
|
72
|
+
case "rtk-poll":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
customElements.define(tagName, RtkPolls);
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "rtk-tooltip":
|
|
78
|
+
if (!customElements.get(tagName)) {
|
|
79
|
+
defineCustomElement$1();
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
} });
|
|
83
|
+
}
|
|
84
|
+
defineCustomElement();
|
|
85
|
+
|
|
86
|
+
export { RtkPolls as R, defineCustomElement as d };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, e as Host } from './p-3bfd5b6d.js';
|
|
2
|
+
import { a as defaultIconPack, c as useLanguage } from './p-53b020e2.js';
|
|
3
|
+
import { h as hasOnlyEmojis } from './p-338c7261.js';
|
|
4
|
+
import { C as ChatHead } from './p-1cda12a9.js';
|
|
5
|
+
import { S as SyncWithStore } from './p-df6f9a3f.js';
|
|
6
|
+
import { T as TextMessageView } from './p-3b8741ca.js';
|
|
7
|
+
|
|
8
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
11
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
12
|
+
else
|
|
13
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
14
|
+
if (d = decorators[i])
|
|
15
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
const RtkTextMessage = /*@__PURE__*/ proxyCustomElement(class RtkTextMessage extends H {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
/** Date object of now, to calculate distance between dates */
|
|
23
|
+
this.now = new Date();
|
|
24
|
+
/** Whether the message is continued by same user */
|
|
25
|
+
this.isContinued = false;
|
|
26
|
+
/** Icon pack */
|
|
27
|
+
this.iconPack = defaultIconPack;
|
|
28
|
+
/** Language */
|
|
29
|
+
this.t = useLanguage();
|
|
30
|
+
/** show message in bubble */
|
|
31
|
+
this.showBubble = false;
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return (h(Host, { key: '2f3f5211b82e0ae80453d606bb962c3e1f1c5f4b' }, !this.isContinued && (h(ChatHead, { key: 'd41c973244580ef48141414c40eaff6a9429b33a', name: this.message.displayName, time: this.message.time, now: this.now })), h("div", { key: '3b4bf9ad47b959c79d9e70d3523b9ec46e6bdb8f', class: {
|
|
35
|
+
body: true,
|
|
36
|
+
bubble: this.showBubble,
|
|
37
|
+
}, part: "body" }, h("div", { key: 'a3d9a56aa79c80d7f6c837a5ca32e574c0cf9c5a', class: { text: true, emoji: hasOnlyEmojis(this.message.message) } }, h(TextMessageView, { key: '69f15f8de5596d483ccb8724993c2274a46ed186', message: this.message.message })))));
|
|
38
|
+
}
|
|
39
|
+
}, [0, "rtk-text-message", {
|
|
40
|
+
"message": [16],
|
|
41
|
+
"now": [16],
|
|
42
|
+
"isContinued": [516, "is-continued"],
|
|
43
|
+
"iconPack": [16],
|
|
44
|
+
"t": [16],
|
|
45
|
+
"showBubble": [4, "show-bubble"]
|
|
46
|
+
}]);
|
|
47
|
+
__decorate([
|
|
48
|
+
SyncWithStore()
|
|
49
|
+
], RtkTextMessage.prototype, "iconPack", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
SyncWithStore()
|
|
52
|
+
], RtkTextMessage.prototype, "t", void 0);
|
|
53
|
+
function defineCustomElement() {
|
|
54
|
+
if (typeof customElements === "undefined") {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const components = ["rtk-text-message"];
|
|
58
|
+
components.forEach(tagName => { switch (tagName) {
|
|
59
|
+
case "rtk-text-message":
|
|
60
|
+
if (!customElements.get(tagName)) {
|
|
61
|
+
customElements.define(tagName, RtkTextMessage);
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
} });
|
|
65
|
+
}
|
|
66
|
+
defineCustomElement();
|
|
67
|
+
|
|
68
|
+
export { RtkTextMessage as R, defineCustomElement as d };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { a as sanitizeLink } from './p-338c7261.js';
|
|
2
|
+
|
|
3
|
+
const getExtension = (name) => {
|
|
4
|
+
// split query and hash from url, then get the filename
|
|
5
|
+
return name.split(/[#?]/)[0].split('.').pop().trim();
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Formats size in bytes to human readable formats
|
|
9
|
+
* @param size Size in bytes
|
|
10
|
+
* @returns Human readable file size
|
|
11
|
+
*/
|
|
12
|
+
const getFileSize = (size) => {
|
|
13
|
+
if (!size)
|
|
14
|
+
return '0 B';
|
|
15
|
+
const i = Math.floor(Math.log(size) / Math.log(1024));
|
|
16
|
+
return `${(size / 1024 ** i).toFixed(2)} ${['B', 'kB', 'MB', 'GB', 'TB'][i]}`;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Extracts the file name from a URL.
|
|
20
|
+
* @param link The URL of the file
|
|
21
|
+
* @param fallback Fallback filename
|
|
22
|
+
* @returns File name
|
|
23
|
+
*/
|
|
24
|
+
const getFileName = (link, fallback = 'file') => {
|
|
25
|
+
try {
|
|
26
|
+
const url = new URL(link);
|
|
27
|
+
const name = url.pathname.split('/').pop();
|
|
28
|
+
return name !== '/' ? name : fallback;
|
|
29
|
+
}
|
|
30
|
+
catch (_) {
|
|
31
|
+
return fallback;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Downloads file from a given URL without leaving the current page
|
|
36
|
+
* @param link URL of the file to download
|
|
37
|
+
* @param options Optional Options for file download - `name` and `fallbackName`
|
|
38
|
+
*/
|
|
39
|
+
const downloadFile = async (link, options) => {
|
|
40
|
+
link = sanitizeLink(link);
|
|
41
|
+
let name = options === null || options === void 0 ? void 0 : options.name;
|
|
42
|
+
const res = await fetch(link);
|
|
43
|
+
if (!res.ok) {
|
|
44
|
+
// if unable to download file (CORS or some other error)
|
|
45
|
+
// open the URL in new tab
|
|
46
|
+
window.open(link, '_blank');
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const blobURL = URL.createObjectURL(await res.blob());
|
|
50
|
+
// Creates an anchor tag and simulates download
|
|
51
|
+
const a = document.createElement('a');
|
|
52
|
+
a.href = blobURL;
|
|
53
|
+
a.download = name !== null && name !== void 0 ? name : getFileName(link, options === null || options === void 0 ? void 0 : options.fallbackName);
|
|
54
|
+
a.click();
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { getFileSize as a, downloadFile as d, getExtension as g };
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { i as isObjectLike, b as baseGetTag, a as isObject, r as root } from './p-2c3cda13.js';
|
|
2
|
+
|
|
3
|
+
/** `Object#toString` result references. */
|
|
4
|
+
var symbolTag = '[object Symbol]';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
8
|
+
*
|
|
9
|
+
* @static
|
|
10
|
+
* @memberOf _
|
|
11
|
+
* @since 4.0.0
|
|
12
|
+
* @category Lang
|
|
13
|
+
* @param {*} value The value to check.
|
|
14
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* _.isSymbol(Symbol.iterator);
|
|
18
|
+
* // => true
|
|
19
|
+
*
|
|
20
|
+
* _.isSymbol('abc');
|
|
21
|
+
* // => false
|
|
22
|
+
*/
|
|
23
|
+
function isSymbol(value) {
|
|
24
|
+
return typeof value == 'symbol' ||
|
|
25
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Used to match a single whitespace character. */
|
|
29
|
+
var reWhitespace = /\s/;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
33
|
+
* character of `string`.
|
|
34
|
+
*
|
|
35
|
+
* @private
|
|
36
|
+
* @param {string} string The string to inspect.
|
|
37
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
38
|
+
*/
|
|
39
|
+
function trimmedEndIndex(string) {
|
|
40
|
+
var index = string.length;
|
|
41
|
+
|
|
42
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
43
|
+
return index;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Used to match leading whitespace. */
|
|
47
|
+
var reTrimStart = /^\s+/;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The base implementation of `_.trim`.
|
|
51
|
+
*
|
|
52
|
+
* @private
|
|
53
|
+
* @param {string} string The string to trim.
|
|
54
|
+
* @returns {string} Returns the trimmed string.
|
|
55
|
+
*/
|
|
56
|
+
function baseTrim(string) {
|
|
57
|
+
return string
|
|
58
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
59
|
+
: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Used as references for various `Number` constants. */
|
|
63
|
+
var NAN = 0 / 0;
|
|
64
|
+
|
|
65
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
66
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
67
|
+
|
|
68
|
+
/** Used to detect binary string values. */
|
|
69
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
70
|
+
|
|
71
|
+
/** Used to detect octal string values. */
|
|
72
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
73
|
+
|
|
74
|
+
/** Built-in method references without a dependency on `root`. */
|
|
75
|
+
var freeParseInt = parseInt;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Converts `value` to a number.
|
|
79
|
+
*
|
|
80
|
+
* @static
|
|
81
|
+
* @memberOf _
|
|
82
|
+
* @since 4.0.0
|
|
83
|
+
* @category Lang
|
|
84
|
+
* @param {*} value The value to process.
|
|
85
|
+
* @returns {number} Returns the number.
|
|
86
|
+
* @example
|
|
87
|
+
*
|
|
88
|
+
* _.toNumber(3.2);
|
|
89
|
+
* // => 3.2
|
|
90
|
+
*
|
|
91
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
92
|
+
* // => 5e-324
|
|
93
|
+
*
|
|
94
|
+
* _.toNumber(Infinity);
|
|
95
|
+
* // => Infinity
|
|
96
|
+
*
|
|
97
|
+
* _.toNumber('3.2');
|
|
98
|
+
* // => 3.2
|
|
99
|
+
*/
|
|
100
|
+
function toNumber(value) {
|
|
101
|
+
if (typeof value == 'number') {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
if (isSymbol(value)) {
|
|
105
|
+
return NAN;
|
|
106
|
+
}
|
|
107
|
+
if (isObject(value)) {
|
|
108
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
109
|
+
value = isObject(other) ? (other + '') : other;
|
|
110
|
+
}
|
|
111
|
+
if (typeof value != 'string') {
|
|
112
|
+
return value === 0 ? value : +value;
|
|
113
|
+
}
|
|
114
|
+
value = baseTrim(value);
|
|
115
|
+
var isBinary = reIsBinary.test(value);
|
|
116
|
+
return (isBinary || reIsOctal.test(value))
|
|
117
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
118
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
123
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
124
|
+
*
|
|
125
|
+
* @static
|
|
126
|
+
* @memberOf _
|
|
127
|
+
* @since 2.4.0
|
|
128
|
+
* @category Date
|
|
129
|
+
* @returns {number} Returns the timestamp.
|
|
130
|
+
* @example
|
|
131
|
+
*
|
|
132
|
+
* _.defer(function(stamp) {
|
|
133
|
+
* console.log(_.now() - stamp);
|
|
134
|
+
* }, _.now());
|
|
135
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
136
|
+
*/
|
|
137
|
+
var now = function() {
|
|
138
|
+
return root.Date.now();
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const now$1 = now;
|
|
142
|
+
|
|
143
|
+
/** Error message constants. */
|
|
144
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
145
|
+
|
|
146
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
147
|
+
var nativeMax = Math.max,
|
|
148
|
+
nativeMin = Math.min;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
152
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
153
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
154
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
155
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
156
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
157
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
158
|
+
* calls to the debounced function return the result of the last `func`
|
|
159
|
+
* invocation.
|
|
160
|
+
*
|
|
161
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
162
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
163
|
+
* is invoked more than once during the `wait` timeout.
|
|
164
|
+
*
|
|
165
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
166
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
167
|
+
*
|
|
168
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
169
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
170
|
+
*
|
|
171
|
+
* @static
|
|
172
|
+
* @memberOf _
|
|
173
|
+
* @since 0.1.0
|
|
174
|
+
* @category Function
|
|
175
|
+
* @param {Function} func The function to debounce.
|
|
176
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
177
|
+
* @param {Object} [options={}] The options object.
|
|
178
|
+
* @param {boolean} [options.leading=false]
|
|
179
|
+
* Specify invoking on the leading edge of the timeout.
|
|
180
|
+
* @param {number} [options.maxWait]
|
|
181
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
182
|
+
* @param {boolean} [options.trailing=true]
|
|
183
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
184
|
+
* @returns {Function} Returns the new debounced function.
|
|
185
|
+
* @example
|
|
186
|
+
*
|
|
187
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
188
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
189
|
+
*
|
|
190
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
191
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
192
|
+
* 'leading': true,
|
|
193
|
+
* 'trailing': false
|
|
194
|
+
* }));
|
|
195
|
+
*
|
|
196
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
197
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
198
|
+
* var source = new EventSource('/stream');
|
|
199
|
+
* jQuery(source).on('message', debounced);
|
|
200
|
+
*
|
|
201
|
+
* // Cancel the trailing debounced invocation.
|
|
202
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
203
|
+
*/
|
|
204
|
+
function debounce(func, wait, options) {
|
|
205
|
+
var lastArgs,
|
|
206
|
+
lastThis,
|
|
207
|
+
maxWait,
|
|
208
|
+
result,
|
|
209
|
+
timerId,
|
|
210
|
+
lastCallTime,
|
|
211
|
+
lastInvokeTime = 0,
|
|
212
|
+
leading = false,
|
|
213
|
+
maxing = false,
|
|
214
|
+
trailing = true;
|
|
215
|
+
|
|
216
|
+
if (typeof func != 'function') {
|
|
217
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
218
|
+
}
|
|
219
|
+
wait = toNumber(wait) || 0;
|
|
220
|
+
if (isObject(options)) {
|
|
221
|
+
leading = !!options.leading;
|
|
222
|
+
maxing = 'maxWait' in options;
|
|
223
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
224
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function invokeFunc(time) {
|
|
228
|
+
var args = lastArgs,
|
|
229
|
+
thisArg = lastThis;
|
|
230
|
+
|
|
231
|
+
lastArgs = lastThis = undefined;
|
|
232
|
+
lastInvokeTime = time;
|
|
233
|
+
result = func.apply(thisArg, args);
|
|
234
|
+
return result;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function leadingEdge(time) {
|
|
238
|
+
// Reset any `maxWait` timer.
|
|
239
|
+
lastInvokeTime = time;
|
|
240
|
+
// Start the timer for the trailing edge.
|
|
241
|
+
timerId = setTimeout(timerExpired, wait);
|
|
242
|
+
// Invoke the leading edge.
|
|
243
|
+
return leading ? invokeFunc(time) : result;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function remainingWait(time) {
|
|
247
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
248
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
249
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
250
|
+
|
|
251
|
+
return maxing
|
|
252
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
253
|
+
: timeWaiting;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function shouldInvoke(time) {
|
|
257
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
258
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
259
|
+
|
|
260
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
261
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
262
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
263
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
264
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function timerExpired() {
|
|
268
|
+
var time = now$1();
|
|
269
|
+
if (shouldInvoke(time)) {
|
|
270
|
+
return trailingEdge(time);
|
|
271
|
+
}
|
|
272
|
+
// Restart the timer.
|
|
273
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function trailingEdge(time) {
|
|
277
|
+
timerId = undefined;
|
|
278
|
+
|
|
279
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
280
|
+
// debounced at least once.
|
|
281
|
+
if (trailing && lastArgs) {
|
|
282
|
+
return invokeFunc(time);
|
|
283
|
+
}
|
|
284
|
+
lastArgs = lastThis = undefined;
|
|
285
|
+
return result;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function cancel() {
|
|
289
|
+
if (timerId !== undefined) {
|
|
290
|
+
clearTimeout(timerId);
|
|
291
|
+
}
|
|
292
|
+
lastInvokeTime = 0;
|
|
293
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function flush() {
|
|
297
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function debounced() {
|
|
301
|
+
var time = now$1(),
|
|
302
|
+
isInvoking = shouldInvoke(time);
|
|
303
|
+
|
|
304
|
+
lastArgs = arguments;
|
|
305
|
+
lastThis = this;
|
|
306
|
+
lastCallTime = time;
|
|
307
|
+
|
|
308
|
+
if (isInvoking) {
|
|
309
|
+
if (timerId === undefined) {
|
|
310
|
+
return leadingEdge(lastCallTime);
|
|
311
|
+
}
|
|
312
|
+
if (maxing) {
|
|
313
|
+
// Handle invocations in a tight loop.
|
|
314
|
+
clearTimeout(timerId);
|
|
315
|
+
timerId = setTimeout(timerExpired, wait);
|
|
316
|
+
return invokeFunc(lastCallTime);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if (timerId === undefined) {
|
|
320
|
+
timerId = setTimeout(timerExpired, wait);
|
|
321
|
+
}
|
|
322
|
+
return result;
|
|
323
|
+
}
|
|
324
|
+
debounced.cancel = cancel;
|
|
325
|
+
debounced.flush = flush;
|
|
326
|
+
return debounced;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export { debounce as d };
|