@cloudflare/realtimekit-ui 1.0.3 → 1.0.4-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/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-87c1e5a0.js → TextMessage-b9599251.js} +1 -1
- package/dist/cjs/{chat-6d305b71.js → chat-aac81e73.js} +1 -1
- package/dist/cjs/{debounce-6dabb441.js → debounce-8ebb7833.js} +6 -6
- package/dist/cjs/index-2ae99c70.js +88 -0
- package/dist/cjs/index.cjs.js +17 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/merge-ee976be5.js +575 -0
- package/dist/cjs/{config-9632c81a.js → notification-541b7cfa.js} +39 -576
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +4 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +4 -7
- package/dist/cjs/rtk-ai.cjs.entry.js +8 -3
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +6 -3
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +8 -3
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +11 -11
- package/dist/cjs/rtk-avatar_54.cjs.entry.js +385 -297
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +4 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +12 -7
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +4 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +8 -3
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +6 -6
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +6 -4
- package/dist/cjs/rtk-clock.cjs.entry.js +5 -5
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-controlbar.cjs.entry.js +7 -4
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +8 -3
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +3 -3
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +7 -5
- package/dist/cjs/rtk-grid.cjs.entry.js +14 -11
- package/dist/cjs/rtk-header.cjs.entry.js +7 -4
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +7 -4
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +3 -3
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/rtk-leave-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +4 -4
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +6 -6
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -7
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +4 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +10 -5
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +4 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +3 -3
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +8 -5
- package/dist/cjs/rtk-participant_2.cjs.entry.js +21 -19
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +5 -5
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +29 -13
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +5 -5
- package/dist/cjs/rtk-participants.cjs.entry.js +13 -9
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +8 -3
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +7 -4
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +15 -9
- package/dist/cjs/rtk-poll_2.cjs.entry.js +5 -5
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +5 -5
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +7 -7
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +5 -5
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-settings.cjs.entry.js +3 -3
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +11 -5
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar.cjs.entry.js +13 -4
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +9 -4
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +8 -5
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +10 -10
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +127 -57
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +7 -4
- package/dist/cjs/{sidebar-8256d60e.js → sidebar-8b82a470.js} +1 -1
- package/dist/cjs/{ui-store-7807fa2a.js → ui-store-af000a8e.js} +2419 -13
- package/dist/collection/components/rtk-ai/rtk-ai.js +8 -3
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -0
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +4 -1
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +6 -1
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +3 -3
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +11 -9
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +4 -4
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -0
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +2 -0
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +8 -3
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +2 -2
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +2 -2
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +2 -2
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +4 -4
- package/dist/collection/components/rtk-chat/rtk-chat.js +8 -4
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +2 -2
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +7 -7
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +4 -4
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +4 -4
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +3 -1
- package/dist/collection/components/rtk-clock/rtk-clock.js +3 -3
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +7 -4
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +6 -3
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +9 -3
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +8 -3
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +3 -3
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
- package/dist/collection/components/rtk-grid/rtk-grid.js +14 -12
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +5 -3
- package/dist/collection/components/rtk-header/rtk-header.js +7 -4
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +7 -4
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +5 -5
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +3 -3
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +2 -2
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +7 -4
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +4 -4
- package/dist/collection/components/rtk-logo/rtk-logo.js +6 -3
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +119 -64
- package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +3 -3
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +2 -0
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +3 -3
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +11 -6
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -0
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
- package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +13 -7
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
- package/dist/collection/components/rtk-participant/rtk-participant.js +18 -15
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +8 -5
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +10 -5
- package/dist/collection/components/rtk-participants/rtk-participants.js +12 -7
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +3 -3
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +10 -7
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +9 -4
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +9 -4
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +7 -4
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +8 -3
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +7 -4
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
- package/dist/collection/components/rtk-poll/rtk-poll.js +2 -2
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
- package/dist/collection/components/rtk-polls/rtk-polls.js +10 -7
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +3 -3
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +5 -5
- package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +11 -5
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +12 -3
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +9 -4
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +8 -5
- package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -3
- package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +7 -4
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +9 -6
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.css +41 -3
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +162 -93
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +7 -4
- package/dist/collection/exports.js +2 -2
- package/dist/collection/lib/builder/index.js +2 -2
- package/dist/collection/lib/default-ui-config.js +4 -0
- package/dist/collection/utils/config.js +2 -2
- package/dist/collection/utils/sync-with-store/index.js +66 -4
- package/dist/collection/utils/sync-with-store/ui-store.js +77 -15
- package/dist/components/index.js +6 -6
- package/dist/components/{p-cc6ff913.js → p-04dc0331.js} +17 -12
- package/dist/components/{p-a09473cb.js → p-095e6b83.js} +2 -2
- package/dist/components/{p-01788fc5.js → p-09ec425b.js} +6 -6
- package/dist/components/{p-79534847.js → p-0a0515d9.js} +4 -4
- package/dist/components/{p-cfbb9bd9.js → p-0b9cf1da.js} +4 -4
- package/dist/components/{p-de567bdf.js → p-0c855484.js} +6 -6
- package/dist/components/{p-6631e984.js → p-0f10661d.js} +3 -3
- package/dist/components/{p-20c74379.js → p-1035acb6.js} +3 -3
- package/dist/components/{p-afc2ce7b.js → p-12e64755.js} +3 -3
- package/dist/components/{p-7916d083.js → p-17ac0da7.js} +6 -3
- package/dist/components/{p-a08b5a59.js → p-1dca17d1.js} +1 -1
- package/dist/components/{p-a0000935.js → p-1f5e21d0.js} +11 -8
- package/dist/components/{p-23d64784.js → p-24c3ffc2.js} +4 -4
- package/dist/components/{p-fc4484ae.js → p-2b523e10.js} +2233 -14
- package/dist/components/{p-1f0c5462.js → p-2d58e36e.js} +6 -6
- package/dist/components/{p-77338347.js → p-2ee6390c.js} +11 -8
- package/dist/components/{p-c1f57f6b.js → p-2f9525bf.js} +4 -4
- package/dist/components/{p-ff6d9602.js → p-3081fabf.js} +5 -5
- package/dist/components/{p-eab1b7c1.js → p-310a03ac.js} +16 -16
- package/dist/components/{p-9b7dc3b2.js → p-32584f88.js} +6 -6
- package/dist/components/{p-153e1ac6.js → p-36b8529e.js} +6 -6
- package/dist/components/{p-efda30dd.js → p-37f70cfb.js} +4 -4
- package/dist/components/{p-b76deed8.js → p-384919de.js} +15 -15
- package/dist/components/{p-9007d4aa.js → p-388b17ad.js} +6 -6
- package/dist/components/p-3968315b.js +86 -0
- package/dist/components/{p-c86a0f9e.js → p-40870ba7.js} +9 -9
- package/dist/components/{p-8804314e.js → p-47a6f5a0.js} +3 -4
- package/dist/components/{p-cac807c5.js → p-47f6fdfa.js} +4 -4
- package/dist/components/{p-14c496c6.js → p-483894c7.js} +9 -6
- package/dist/components/{p-8c391f68.js → p-4bb5e9bb.js} +14 -14
- package/dist/components/{p-2507c6c8.js → p-4c2acc5c.js} +1 -1
- package/dist/components/{p-d8be719c.js → p-4f585ec2.js} +13 -13
- package/dist/components/{p-6d3c8a73.js → p-5255d2f8.js} +10 -10
- package/dist/components/{p-65e9c741.js → p-52628938.js} +6 -6
- package/dist/components/{p-b1161cb8.js → p-54de25c6.js} +3 -3
- package/dist/components/{p-97ce630d.js → p-557d4076.js} +15 -12
- package/dist/components/{p-22f2908e.js → p-5677f439.js} +4 -4
- package/dist/components/{p-ed0df5b1.js → p-57973e22.js} +4 -4
- package/dist/components/{p-2e9c3dd2.js → p-616cfbd8.js} +12 -9
- package/dist/components/{p-2c3cda13.js → p-632cbbe7.js} +25 -25
- package/dist/components/{p-11048ea8.js → p-65980189.js} +18 -16
- package/dist/components/{p-4b89a5d6.js → p-6b4eccd6.js} +6 -6
- package/dist/components/{p-b29a58cd.js → p-6c351e40.js} +14 -9
- package/dist/components/{p-f0df8c15.js → p-7525d343.js} +4 -4
- package/dist/components/{p-eba76ab4.js → p-7764b66b.js} +32 -26
- package/dist/components/{p-2df5f773.js → p-792de3bc.js} +3 -3
- package/dist/components/{p-7afb8f24.js → p-7ac93e47.js} +2 -2
- package/dist/components/{p-40a18d12.js → p-7d95084a.js} +7 -7
- package/dist/components/{p-9b675f4f.js → p-7f4b9092.js} +24 -21
- package/dist/components/{p-07c5a2da.js → p-80efd900.js} +17 -11
- package/dist/components/{p-cbc8e449.js → p-81a13bf2.js} +5 -5
- package/dist/components/{p-8d07e4b3.js → p-8320939f.js} +9 -9
- package/dist/components/{p-01b76741.js → p-87ae32cb.js} +9 -9
- package/dist/components/{p-1cc409c6.js → p-885dad3e.js} +5 -5
- package/dist/components/{p-1590eea9.js → p-889bc7b9.js} +5 -5
- package/dist/components/{p-ba8208ac.js → p-8afd3f68.js} +5 -5
- package/dist/components/{p-f77fe02e.js → p-8d93417e.js} +8 -8
- package/dist/components/{p-a575deb5.js → p-93355c43.js} +1 -1
- package/dist/components/{p-f634f020.js → p-938ee31c.js} +4 -4
- package/dist/components/{p-e9c999f4.js → p-96362151.js} +6 -6
- package/dist/components/{p-783ab170.js → p-96e2ff79.js} +8 -8
- package/dist/components/{p-7a1b0433.js → p-99303d10.js} +1 -1
- package/dist/components/{p-eaa808b7.js → p-9f843e5a.js} +9 -9
- package/dist/components/{p-3d5214b4.js → p-9f86929b.js} +8 -8
- package/dist/components/{p-60b29ed0.js → p-a10339f4.js} +5 -5
- package/dist/components/{p-ebb19a87.js → p-ab84cfbb.js} +8 -5
- package/dist/components/{p-b2b2e917.js → p-acbb932e.js} +2 -2
- package/dist/components/{p-11b00854.js → p-b53c309c.js} +6 -6
- package/dist/components/{p-c1a12313.js → p-b8baba9f.js} +60 -56
- package/dist/components/p-b8fe19b6.js +574 -0
- package/dist/components/{p-3358d7dc.js → p-b9e78c21.js} +1 -1
- package/dist/components/{p-5597fe9f.js → p-bee7d918.js} +9 -9
- package/dist/components/{p-1c22a3a0.js → p-bf72bb45.js} +10 -10
- package/dist/components/{p-85665c03.js → p-c254f63b.js} +9 -6
- package/dist/{esm/config-407ad80b.js → components/p-c5fd7cc6.js} +4 -575
- package/dist/components/{p-e902ab68.js → p-c65aaf73.js} +18 -18
- package/dist/components/{p-a73161da.js → p-cadee920.js} +1 -1
- package/dist/components/{p-b1030316.js → p-d1084f45.js} +2 -2
- package/dist/components/{p-8eea1b4d.js → p-d4f3d3d2.js} +11 -6
- package/dist/components/{p-9e5b47ea.js → p-dc3143c0.js} +3 -3
- package/dist/components/{p-b5dc3971.js → p-e10e8a56.js} +12 -12
- package/dist/components/{p-a59e060b.js → p-ea160150.js} +2 -2
- package/dist/components/{p-7dcce90b.js → p-f1a781b0.js} +4 -4
- package/dist/components/{p-65da3d17.js → p-f31839f4.js} +5 -5
- package/dist/components/{p-7d76715d.js → p-f3f1b0c0.js} +3 -3
- package/dist/components/{p-287eadbd.js → p-f3fbe2fb.js} +6 -6
- package/dist/components/{p-fab54b49.js → p-f44a0212.js} +4 -4
- package/dist/components/{p-f4158e29.js → p-f8594d8e.js} +2 -2
- package/dist/components/{p-d5ce79e0.js → p-fb038bd0.js} +6 -6
- package/dist/components/{p-0daa472f.js → p-fbe523dc.js} +8 -8
- package/dist/components/{p-273196ec.js → p-fc56c6ea.js} +6 -6
- package/dist/components/rtk-ai-toggle.js +7 -5
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +11 -6
- package/dist/components/rtk-audio-grid.js +6 -3
- package/dist/components/rtk-audio-tile.js +12 -7
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +7 -5
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-button.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +8 -6
- package/dist/components/rtk-caption-toggle.js +11 -6
- package/dist/components/rtk-channel-creator.js +1 -1
- package/dist/components/rtk-channel-details.js +1 -1
- package/dist/components/rtk-channel-header.js +1 -1
- package/dist/components/rtk-channel-selector-ui.js +8 -8
- package/dist/components/rtk-channel-selector-view.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +8 -8
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +3 -3
- package/dist/components/rtk-chat-toggle.js +9 -7
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +6 -6
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +7 -4
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +6 -6
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +10 -5
- package/dist/components/rtk-file-dropzone.js +4 -4
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +10 -8
- package/dist/components/rtk-grid.js +22 -19
- package/dist/components/rtk-header.js +7 -4
- package/dist/components/rtk-icon.js +1 -1
- package/dist/components/rtk-idle-screen.js +10 -7
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +5 -5
- package/dist/components/rtk-information-tooltip.js +4 -4
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +6 -6
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +9 -9
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-markdown-view.js +1 -1
- package/dist/components/rtk-meeting-title.js +3 -3
- package/dist/components/rtk-meeting.js +173 -109
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +8 -8
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +8 -6
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +16 -11
- package/dist/components/rtk-more-toggle.js +7 -7
- package/dist/components/rtk-mute-all-button.js +8 -6
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +3 -3
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +3 -3
- package/dist/components/rtk-participant-setup.js +8 -5
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +8 -8
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +8 -8
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +27 -22
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pip-toggle.js +11 -6
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +7 -7
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +6 -6
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +4 -4
- package/dist/components/rtk-recording-toggle.js +8 -8
- package/dist/components/rtk-screen-share-toggle.js +6 -6
- package/dist/components/rtk-screenshare-view.js +10 -10
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +6 -6
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +13 -13
- package/dist/components/rtk-setup-screen.js +17 -11
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +21 -12
- package/dist/components/rtk-simple-grid.js +9 -4
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +8 -5
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +8 -8
- package/dist/components/rtk-stage.js +3 -3
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-tooltip.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +10 -8
- package/dist/components/rtk-ui-provider.js +130 -58
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +8 -5
- package/dist/docs/docs-components.json +84 -122
- package/dist/docs/docs-vscode.json +10 -2
- package/dist/esm/{TextMessage-3e08c5e1.js → TextMessage-a699d8da.js} +1 -1
- package/dist/esm/{chat-927074dc.js → chat-0fec85e9.js} +1 -1
- package/dist/esm/{debounce-ea0579b2.js → debounce-29e3a983.js} +1 -1
- package/dist/esm/index-21637ec2.js +86 -0
- package/dist/esm/index.js +7 -9
- package/dist/esm/loader.js +18560 -18143
- package/dist/esm/merge-ef938315.js +573 -0
- package/dist/{components/p-31f1e8e5.js → esm/notification-deef1123.js} +38 -575
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +4 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +3 -6
- package/dist/esm/rtk-ai.entry.js +8 -3
- package/dist/esm/rtk-audio-grid.entry.js +6 -3
- package/dist/esm/rtk-audio-tile.entry.js +8 -3
- package/dist/esm/rtk-audio-visualizer_4.entry.js +11 -11
- package/dist/esm/rtk-avatar_54.entry.js +382 -294
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +4 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +12 -7
- package/dist/esm/rtk-camera-toggle.entry.js +4 -2
- package/dist/esm/rtk-caption-toggle.entry.js +8 -3
- package/dist/esm/rtk-channel-selector-ui.entry.js +6 -6
- package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +6 -4
- package/dist/esm/rtk-clock.entry.js +5 -5
- package/dist/esm/rtk-controlbar-button.entry.js +3 -3
- package/dist/esm/rtk-controlbar.entry.js +7 -4
- package/dist/esm/rtk-debugger-toggle.entry.js +3 -3
- package/dist/esm/rtk-ended-screen.entry.js +8 -3
- package/dist/esm/rtk-file-dropzone.entry.js +3 -3
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +7 -5
- package/dist/esm/rtk-grid.entry.js +14 -11
- package/dist/esm/rtk-header.entry.js +7 -4
- package/dist/esm/rtk-idle-screen.entry.js +7 -4
- package/dist/esm/rtk-image-viewer.entry.js +3 -3
- package/dist/esm/rtk-information-tooltip.entry.js +3 -3
- package/dist/esm/rtk-leave-button.entry.js +3 -3
- package/dist/esm/rtk-livestream-indicator_3.entry.js +4 -4
- package/dist/esm/rtk-livestream-toggle.entry.js +6 -6
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +6 -7
- package/dist/esm/rtk-mic-toggle.entry.js +4 -2
- package/dist/esm/rtk-mixed-grid.entry.js +10 -5
- package/dist/esm/rtk-more-toggle.entry.js +4 -4
- package/dist/esm/rtk-mute-all-button.entry.js +4 -2
- package/dist/esm/rtk-name-tag.entry.js +3 -3
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +8 -5
- package/dist/esm/rtk-participant_2.entry.js +21 -19
- package/dist/esm/rtk-participants-audio.entry.js +5 -5
- package/dist/esm/rtk-participants-stage-list_4.entry.js +29 -13
- package/dist/esm/rtk-participants-toggle.entry.js +5 -5
- package/dist/esm/rtk-participants.entry.js +13 -9
- package/dist/esm/rtk-pip-toggle.entry.js +8 -3
- package/dist/esm/rtk-plugin-main_2.entry.js +7 -4
- package/dist/esm/rtk-plugins-toggle.entry.js +4 -4
- package/dist/esm/rtk-plugins_2.entry.js +15 -9
- package/dist/esm/rtk-poll_2.entry.js +5 -5
- package/dist/esm/rtk-polls-toggle.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +3 -3
- package/dist/esm/rtk-recording-toggle.entry.js +5 -5
- package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
- package/dist/esm/rtk-screenshare-view.entry.js +7 -7
- package/dist/esm/rtk-settings-audio_2.entry.js +5 -5
- package/dist/esm/rtk-settings-toggle.entry.js +3 -3
- package/dist/esm/rtk-settings.entry.js +3 -3
- package/dist/esm/rtk-setup-screen.entry.js +11 -5
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +13 -4
- package/dist/esm/rtk-simple-grid.entry.js +9 -4
- package/dist/esm/rtk-spotlight-grid.entry.js +8 -5
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +4 -4
- package/dist/esm/rtk-stage.entry.js +3 -3
- package/dist/esm/rtk-transcript.entry.js +3 -3
- package/dist/esm/rtk-transcripts.entry.js +9 -9
- package/dist/esm/rtk-ui-provider.entry.js +127 -57
- package/dist/esm/rtk-waiting-screen.entry.js +7 -4
- package/dist/esm/{sidebar-50d89918.js → sidebar-c47b86b4.js} +1 -1
- package/dist/esm/{ui-store-1b477153.js → ui-store-fabf2b32.js} +2395 -14
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/p-05b3a3fa.entry.js +1 -0
- package/dist/realtimekit-ui/p-08628c03.entry.js +1 -0
- package/dist/realtimekit-ui/p-0f5681eb.entry.js +1 -0
- package/dist/realtimekit-ui/p-116eabc9.entry.js +1 -0
- package/dist/realtimekit-ui/p-17c4a39a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-fa03ab98.entry.js → p-18618102.entry.js} +1 -1
- package/dist/realtimekit-ui/p-18ca0ccd.entry.js +1 -0
- package/dist/realtimekit-ui/p-199f622a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c203aff3.js → p-1f3bfcdb.js} +1 -1
- package/dist/realtimekit-ui/p-23893740.entry.js +1 -0
- package/dist/realtimekit-ui/{p-da56f340.entry.js → p-28ac7dfd.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2bd5be73.js +1 -0
- package/dist/realtimekit-ui/p-2d0676a9.entry.js +1 -0
- package/dist/realtimekit-ui/p-309def3e.entry.js +1 -0
- package/dist/realtimekit-ui/p-30fe4bbf.entry.js +1 -0
- package/dist/realtimekit-ui/p-33c173a8.entry.js +1 -0
- package/dist/realtimekit-ui/p-375c10a2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-9a2536ed.entry.js → p-37a218a8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-38c18a6b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-efbe07a6.entry.js → p-393ff18f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a08b5a59.js → p-3956d569.js} +1 -1
- package/dist/realtimekit-ui/p-3b14c478.entry.js +1 -0
- package/dist/realtimekit-ui/{p-0787a8a4.entry.js → p-3eb310d3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6f487b93.entry.js → p-420629b1.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4265c450.entry.js +1 -0
- package/dist/realtimekit-ui/p-458b4f23.entry.js +1 -0
- package/dist/realtimekit-ui/p-4a2d51d2.entry.js +1 -0
- package/dist/realtimekit-ui/p-51fd9745.js +1 -0
- package/dist/realtimekit-ui/p-526f1a76.js +1 -0
- package/dist/realtimekit-ui/p-52b25934.js +1 -0
- package/dist/realtimekit-ui/p-542f52e9.entry.js +1 -0
- package/dist/realtimekit-ui/p-586b8e78.entry.js +1 -0
- package/dist/realtimekit-ui/p-59837fe1.entry.js +1 -0
- package/dist/realtimekit-ui/p-59cd209a.entry.js +1 -0
- package/dist/realtimekit-ui/p-5d60f101.entry.js +1 -0
- package/dist/realtimekit-ui/{p-221efc53.entry.js → p-67ff2615.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bf5ecc7c.js → p-6cd96b58.js} +1 -1
- package/dist/realtimekit-ui/p-6f24d78f.entry.js +1 -0
- package/dist/realtimekit-ui/p-716f90a3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d9138a0d.entry.js → p-76bcc78d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-7bae9d05.entry.js +1 -0
- package/dist/realtimekit-ui/p-82520fc0.entry.js +1 -0
- package/dist/realtimekit-ui/p-86d3632a.entry.js +1 -0
- package/dist/realtimekit-ui/p-87a8cbc2.entry.js +1 -0
- package/dist/realtimekit-ui/p-881f7e61.entry.js +1 -0
- package/dist/realtimekit-ui/p-9b8a0f9b.entry.js +1 -0
- package/dist/realtimekit-ui/p-9c5cb84c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7965a765.entry.js → p-a02141f1.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a29ad4d8.entry.js +1 -0
- package/dist/realtimekit-ui/p-a33714b1.entry.js +1 -0
- package/dist/realtimekit-ui/p-a5512788.entry.js +1 -0
- package/dist/realtimekit-ui/p-a6802383.entry.js +1 -0
- package/dist/realtimekit-ui/p-a80ce945.entry.js +1 -0
- package/dist/realtimekit-ui/p-ad5fc6df.entry.js +1 -0
- package/dist/realtimekit-ui/p-af81e9cf.entry.js +1 -0
- package/dist/realtimekit-ui/p-af95d40e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4bace64f.entry.js → p-b616deb3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-bd103adc.entry.js +1 -0
- package/dist/realtimekit-ui/p-c2f35fc7.entry.js +1 -0
- package/dist/realtimekit-ui/p-c31bcf97.entry.js +1 -0
- package/dist/realtimekit-ui/p-cde200c4.entry.js +1 -0
- package/dist/realtimekit-ui/p-d0ec8218.entry.js +1 -0
- package/dist/realtimekit-ui/p-d2998b1e.entry.js +1 -0
- package/dist/realtimekit-ui/p-de42b31f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c4fc57c1.entry.js → p-e0303097.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e368f30f.entry.js +1 -0
- package/dist/realtimekit-ui/p-e48166db.entry.js +1 -0
- package/dist/realtimekit-ui/p-e77e5cef.entry.js +1 -0
- package/dist/realtimekit-ui/p-e872d214.entry.js +1 -0
- package/dist/realtimekit-ui/p-e8e68c22.entry.js +1 -0
- package/dist/realtimekit-ui/p-eae4e83b.js +1 -0
- package/dist/realtimekit-ui/p-ef3ac9e9.entry.js +1 -0
- package/dist/realtimekit-ui/{p-629258de.entry.js → p-efc9cddb.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f16ed5c8.entry.js +1 -0
- package/dist/realtimekit-ui/p-f2af9690.entry.js +1 -0
- package/dist/realtimekit-ui/p-f7cc7f81.entry.js +1 -0
- package/dist/realtimekit-ui/p-fdc0d8cc.entry.js +1 -0
- package/dist/realtimekit-ui/p-fdec3315.entry.js +1 -0
- package/dist/realtimekit-ui/p-ff4f156f.entry.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-meeting/rtk-meeting.d.ts +13 -3
- package/dist/types/components/rtk-ui-provider/rtk-ui-provider.d.ts +13 -8
- package/dist/types/components.d.ts +10 -10
- package/dist/types/exports.d.ts +2 -2
- package/dist/types/lib/default-ui-config.d.ts +1 -0
- package/dist/types/utils/sync-with-store/ui-store.d.ts +23 -7
- package/package.json +2 -3
- package/dist/cjs/clone-2e9a4cae.js +0 -754
- package/dist/cjs/index-49c92728.js +0 -26
- package/dist/cjs/isObjectLike-73d13a39.js +0 -171
- package/dist/cjs/keysIn-8bdbe83d.js +0 -1438
- package/dist/cjs/notification-6d70e3a8.js +0 -39
- package/dist/components/p-46923b34.js +0 -1409
- package/dist/components/p-989a34c9.js +0 -24
- package/dist/components/p-c15d924f.js +0 -752
- package/dist/esm/clone-acd4af50.js +0 -752
- package/dist/esm/index-3481d5b2.js +0 -24
- package/dist/esm/isObjectLike-773b9473.js +0 -164
- package/dist/esm/keysIn-310f65c1.js +0 -1409
- package/dist/esm/notification-2ab22a76.js +0 -37
- package/dist/realtimekit-ui/p-0215809e.entry.js +0 -1
- package/dist/realtimekit-ui/p-076d6fb1.entry.js +0 -1
- package/dist/realtimekit-ui/p-0df0bc3b.entry.js +0 -1
- package/dist/realtimekit-ui/p-0f91e886.entry.js +0 -1
- package/dist/realtimekit-ui/p-11a81411.entry.js +0 -1
- package/dist/realtimekit-ui/p-14284891.entry.js +0 -1
- package/dist/realtimekit-ui/p-14350b0d.entry.js +0 -1
- package/dist/realtimekit-ui/p-15e0e0fc.entry.js +0 -1
- package/dist/realtimekit-ui/p-17588509.entry.js +0 -1
- package/dist/realtimekit-ui/p-1abb4841.entry.js +0 -1
- package/dist/realtimekit-ui/p-293547d1.entry.js +0 -1
- package/dist/realtimekit-ui/p-2c3cda13.js +0 -1
- package/dist/realtimekit-ui/p-2ed8953f.entry.js +0 -1
- package/dist/realtimekit-ui/p-3c46bebb.entry.js +0 -1
- package/dist/realtimekit-ui/p-3e54f3e8.entry.js +0 -1
- package/dist/realtimekit-ui/p-4023c083.js +0 -1
- package/dist/realtimekit-ui/p-44c22bd9.entry.js +0 -1
- package/dist/realtimekit-ui/p-46923b34.js +0 -1
- package/dist/realtimekit-ui/p-49602b35.entry.js +0 -1
- package/dist/realtimekit-ui/p-4bcf9db7.entry.js +0 -1
- package/dist/realtimekit-ui/p-5444d39b.entry.js +0 -1
- package/dist/realtimekit-ui/p-546ff22a.entry.js +0 -1
- package/dist/realtimekit-ui/p-5b277ae0.entry.js +0 -1
- package/dist/realtimekit-ui/p-63064c88.entry.js +0 -1
- package/dist/realtimekit-ui/p-64514c63.entry.js +0 -1
- package/dist/realtimekit-ui/p-67a1126f.entry.js +0 -1
- package/dist/realtimekit-ui/p-67dcfbf3.entry.js +0 -1
- package/dist/realtimekit-ui/p-6f56ad30.entry.js +0 -1
- package/dist/realtimekit-ui/p-6fd65de6.entry.js +0 -1
- package/dist/realtimekit-ui/p-7597f3ea.entry.js +0 -1
- package/dist/realtimekit-ui/p-7ade6183.entry.js +0 -1
- package/dist/realtimekit-ui/p-7e96fb7b.entry.js +0 -1
- package/dist/realtimekit-ui/p-86afa8c3.entry.js +0 -1
- package/dist/realtimekit-ui/p-8819f726.entry.js +0 -1
- package/dist/realtimekit-ui/p-89543b39.entry.js +0 -1
- package/dist/realtimekit-ui/p-8e869d13.entry.js +0 -1
- package/dist/realtimekit-ui/p-9274e173.entry.js +0 -1
- package/dist/realtimekit-ui/p-9d038c16.entry.js +0 -1
- package/dist/realtimekit-ui/p-9d8e8a27.entry.js +0 -1
- package/dist/realtimekit-ui/p-9de3f942.entry.js +0 -1
- package/dist/realtimekit-ui/p-a42c0e83.entry.js +0 -1
- package/dist/realtimekit-ui/p-a4922241.js +0 -1
- package/dist/realtimekit-ui/p-a845c29f.entry.js +0 -1
- package/dist/realtimekit-ui/p-a8b7c6a2.entry.js +0 -1
- package/dist/realtimekit-ui/p-ac8a0151.entry.js +0 -1
- package/dist/realtimekit-ui/p-acd86770.entry.js +0 -1
- package/dist/realtimekit-ui/p-b15377a2.entry.js +0 -1
- package/dist/realtimekit-ui/p-b5af8a86.entry.js +0 -1
- package/dist/realtimekit-ui/p-b965ac1d.entry.js +0 -1
- package/dist/realtimekit-ui/p-c15d924f.js +0 -1
- package/dist/realtimekit-ui/p-c1db5ef9.entry.js +0 -1
- package/dist/realtimekit-ui/p-c6837853.entry.js +0 -1
- package/dist/realtimekit-ui/p-c6eb9963.entry.js +0 -1
- package/dist/realtimekit-ui/p-d3bf4348.js +0 -1
- package/dist/realtimekit-ui/p-d560f5c8.entry.js +0 -1
- package/dist/realtimekit-ui/p-d8c2b553.entry.js +0 -1
- package/dist/realtimekit-ui/p-da59b75c.js +0 -1
- package/dist/realtimekit-ui/p-dac97779.js +0 -1
- package/dist/realtimekit-ui/p-dd6d2ca9.entry.js +0 -1
- package/dist/realtimekit-ui/p-e0450660.entry.js +0 -1
- package/dist/realtimekit-ui/p-e0a80608.entry.js +0 -1
- package/dist/realtimekit-ui/p-ea1736c3.entry.js +0 -1
- package/dist/realtimekit-ui/p-eb4025c0.entry.js +0 -1
- package/dist/realtimekit-ui/p-ed87ad1f.entry.js +0 -1
- package/dist/realtimekit-ui/p-f2ba56ec.entry.js +0 -1
- package/dist/realtimekit-ui/p-f3d02201.entry.js +0 -1
- package/dist/realtimekit-ui/p-f78cecba.entry.js +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { e as disableSettingSinkId } from './ui-store-1b477153.js';
|
|
2
|
-
|
|
3
|
-
const SOUNDS = {
|
|
4
|
-
joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
|
|
5
|
-
left: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
|
|
6
|
-
message: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_message.mp3',
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Handles notification sounds in a meeting
|
|
10
|
-
*/
|
|
11
|
-
class RTKNotificationsAudio {
|
|
12
|
-
constructor(meeting) {
|
|
13
|
-
this.meeting = meeting;
|
|
14
|
-
this.audio = document.createElement('audio');
|
|
15
|
-
this.audio.volume = 0.3;
|
|
16
|
-
}
|
|
17
|
-
play(sound, duration = 3000) {
|
|
18
|
-
var _a;
|
|
19
|
-
if (this.playing)
|
|
20
|
-
return;
|
|
21
|
-
this.playing = true;
|
|
22
|
-
this.audio.src = SOUNDS[sound];
|
|
23
|
-
this.audio.volume = 0.3;
|
|
24
|
-
(_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((_) => { });
|
|
25
|
-
setTimeout(() => {
|
|
26
|
-
this.playing = false;
|
|
27
|
-
}, duration);
|
|
28
|
-
}
|
|
29
|
-
async setDevice(id) {
|
|
30
|
-
var _a, _b, _c;
|
|
31
|
-
if (disableSettingSinkId(this.meeting))
|
|
32
|
-
return;
|
|
33
|
-
await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((_) => { }));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { RTKNotificationsAudio as R };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as a}from"./p-0ee570cd.js";import{a as e,c as n}from"./p-d3bf4348.js";import{a as r}from"./p-bf5ecc7c.js";import{S as h}from"./p-dac97779.js";var o=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=r(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;null!=this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;null!=t&&(this.canViewParticipants=r(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1,activeAI:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return s(a,{"data-hidden":!0});const t=this.t("participants");return s(a,{title:t},0!==this.badgeCount&&!this.participantsActive&&s("div",{class:"waiting-participants-count",part:"waiting-participants-count"},s("span",null,this.badgeCount<=100?this.badgeCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],participantsActive:["handleParticipantsActiveChange"]}}};o([h()],c.prototype,"meeting",void 0),o([h()],c.prototype,"states",void 0),o([h()],c.prototype,"size",void 0),o([h()],c.prototype,"iconPack",void 0),o([h()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}";export{c as rtk_participants_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a,c as o}from"./p-d3bf4348.js";import{S as r}from"./p-dac97779.js";var n=function(t,i,s,e){var a,o=arguments.length,r=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(i,s,r):a(i,s))||r);return o>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.aiActive=!1}statesChanged(t){this.aiActive=t.activeAI}toggleAI(){var t;this.aiActive=!(null===(t=this.states)||void 0===t?void 0:t.activeAI),this.stateUpdate.emit({activeAI:this.aiActive,activeMoreMenu:!1,activeSidebar:!1})}render(){var t,i;const a=this.t("ai.meeting_ai");return(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled?s(e,{title:a},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.aiActive},onClick:()=>this.toggleAI(),icon:this.iconPack.meeting_ai,label:a,variant:this.variant,brandIcon:!0})):s(e,{"data-hidden":!0})}static get watchers(){return{states:["statesChanged"]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"size",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a as o,c as a}from"./p-d3bf4348.js";import{S as r}from"./p-dac97779.js";var n=function(t,i,s,e){var o,a=arguments.length,r=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(i,s,r):o(i,s))||r);return a>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=o,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return s(e,{key:"11653f887305c7ba74c0e62197b0b8502f64bb22",title:t},s("rtk-controlbar-button",{key:"4e4985182d0c63d2f9f8f2fc8173f2cd10edf91d",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"size",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as t,H as r}from"./p-0ee570cd.js";import{a as i,c as e}from"./p-d3bf4348.js";import{h as o}from"./p-3f882e7c.js";import{S as s}from"./p-dac97779.js";var c=function(a,t,r,i){var e,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(a,t,r,i);else for(var c=a.length-1;c>=0;c--)(e=a[c])&&(s=(o<3?e(s):o>3?e(t,r,s):e(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};const d=class{constructor(t){a(this,t),this.iconPack=i,this.t=e(),this.audioEnabled=!1,this.volume=0,this.onAudioUpdate=({audioEnabled:a,audioTrack:t})=>{if(this.participant)if(a&&t){const a=new MediaStream;a.addTrack(t),this.calcVolume(a),this.audioEnabled=!0}else this.volume=0,this.audioEnabled=!1}}connectedCallback(){this.participantChanged(this.participant)}disconnectedCallback(){var a,t;null===(a=this.hark)||void 0===a||a.stop(),null===(t=this.participant)||void 0===t||t.removeListener("audioUpdate",this.onAudioUpdate)}participantChanged(a){a&&(this.audioEnabled=a.audioEnabled,a.addListener("audioUpdate",this.onAudioUpdate))}calcVolume(a){this.hark=o(a,{play:!1,interval:100}),this.hark.on("volume_change",(a=>{const t=this.volume;let r=Math.round(10**(a/115)*10);r<3&&(r=0);let i=Math.round((2*t+r)/3);t!==i&&(this.volume=i)}))}render(){const a={meeting:this.meeting,size:this.size,config:this.config,states:this.states,iconPack:this.iconPack,t:this.t};let e="bar-0";return e=this.volume>5?"bar-5":this.volume<0?"bar-0":"bar-"+this.volume,t(r,{key:"cff0c840f6dcd8ae6514ee4b8b0c6680d4ebf8ff"},t("div",{key:"c43dbfcc26c20d0d7487a234624709ad9bf14f6f",class:{"avatar-ctr":!0,speaking:this.audioEnabled,[e]:!0}},t("rtk-avatar",{key:"5a638ea3a636f645eaab2638353fb49697a431c0",participant:this.participant,size:this.size},!this.audioEnabled&&t("div",{key:"f8a6bc0a24906df10870c827faeca7f8f343306a",class:"mic-icon"},t("rtk-icon",{key:"a7777ba5bb5b78329556b6af19495425827915ec",icon:i.mic_off})))),t("rtk-name-tag",Object.assign({key:"a7d4bea44bfde23323e52917ee197c5558cef8ba",variant:"text",participant:this.participant},a)),t("slot",{key:"370b16462a7be42a663a58288105ad46c0e6f3d3"}))}static get watchers(){return{participant:["participantChanged"]}}};c([s()],d.prototype,"meeting",void 0),c([s()],d.prototype,"size",void 0),c([s()],d.prototype,"states",void 0),c([s()],d.prototype,"iconPack",void 0),c([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column}.avatar-ctr{box-sizing:border-box;width:100%;flex:1 1 0%;padding:var(--rtk-space-1\\.5, 6px);border:2px solid transparent;border-radius:calc(var(--rtk-border-radius-xl, 40px) + var(--rtk-space-1\\.5, 6px))}.avatar-ctr.speaking{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.bar-0{box-shadow:none}.bar-1{box-shadow:0 0 4px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-2{box-shadow:0 0 8px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-3{box-shadow:0 0 16px 1px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-4{box-shadow:0 0 20px 3px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-5{box-shadow:0 0 24px 6px rgb(var(--rtk-colors-brand-500, 33 96 253))}rtk-avatar{aspect-ratio:1 / 1;height:100%;width:100%;position:relative;border-radius:var(--rtk-border-radius-xl, 40px)}rtk-name-tag{display:block;height:var(--rtk-space-10, 40px);width:100%;text-align:center;line-height:2.5rem}:host([size='sm']) .avatar-ctr{border-radius:calc(var(--rtk-border-radius-lg, 12px) + var(--rtk-space-1\\.5, 6px))}:host([size='sm']) rtk-name-tag{height:var(--rtk-space-7, 28px);line-height:1.75rem}:host([size='sm']) rtk-avatar{border-radius:var(--rtk-border-radius-lg, 12px)}.mic-icon{position:absolute;bottom:calc(var(--rtk-space-1, 4px) * -1);right:calc(var(--rtk-space-1, 4px) * -1);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.mic-icon rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) .mic-icon rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='md']) .mic-icon rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}";export{d as rtk_audio_tile}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i}from"./p-0ee570cd.js";import{d as r,a,c as o}from"./p-d3bf4348.js";import{S as s}from"./p-dac97779.js";var n=function(t,e,i,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const d=class{constructor(e){t(this,e),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=r,this.variant="solid",this.iconPack=a,this.t=o(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const e=new MediaStream;e.addTrack(t.videoTrack),this.videoEl.srcObject=e}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const e=this.states,i=null===(t=null==e?void 0:e.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof i)return i}return!1}render(){var t,r,a,o;return e(i,{key:"69573519e7127835dd9304dcfb507ebbb94e0de8"},e("video",{key:"75c047e3029721e655016da9a40e2b94770a5234",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(r=this.config)||void 0===r?void 0:r.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),e("slot",{key:"3bdccee7fb4e001425249fe832b4bdcb01751306"}))}static get watchers(){return{participant:["participantsChanged"],videoState:["videoStateChanged"]}}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"size",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}";export{d as rtk_participant_setup}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,H as a}from"./p-0ee570cd.js";import{a as o,c as i}from"./p-d3bf4348.js";import{S as e}from"./p-dac97779.js";var s=function(t,r,a,o){var i,e=arguments.length,s=e<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,a,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(e<3?i(s):e>3?i(r,a,s):i(r,a))||s);return e>3&&s&&Object.defineProperty(r,a,s),s};const c=class{constructor(r){t(this,r),this.iconPack=o,this.t=i(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:a})=>{("video"===t||this.isScreenShare&&r)&&(this.score=a)}}connectedCallback(){this.participantChanged(this.participant)}participantChanged(t){t&&t.addListener("mediaScoreUpdate",this.onMediaScoreUpdate)}disconnectedCallback(){var t;null===(t=this.participant)||void 0===t||t.removeListener("mediaScoreUpdate",this.onMediaScoreUpdate)}render(){let t=Math.round(this.score/2),o="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:o="poor";break;case 1:o="poorest"}return r(a,null,r("rtk-icon",{icon:this.iconPack[`signal_${t}`],class:o}),r("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}static get watchers(){return{participant:["participantChanged"]}}};s([e()],c.prototype,"meeting",void 0),s([e()],c.prototype,"iconPack",void 0),s([e()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block;height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}rtk-icon{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;height:100%;width:100%;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.bg-signal{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:0;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}";export{c as rtk_network_indicator}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,a}from"./p-0ee570cd.js";import{a as h,c as n,d as c,F as o}from"./p-d3bf4348.js";import{l as r,R as d}from"./p-c8eaa707.js";import{f as l,s as f}from"./p-338c7261.js";import{c as p,b,o as v,s as k,h as m}from"./p-94cc1b33.js";import{S as u}from"./p-dac97779.js";import{d as g}from"./p-a08b5a59.js";import"./p-2c3cda13.js";var y=function(t,i,s,e){var a,h=arguments.length,n=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const x=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=c,this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");p(t,i,{placement:"bottom-end",middleware:[b({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),v(4),k({padding:8}),m()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){var i,s,e,a,h,n,c;if(null!=t){const{self:r}=t;this.canDisableParticipantAudio=r.permissions.canAllowParticipantAudio||r.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=r.permissions.canAllowParticipantVideo||r.permissions.canDisableParticipantVideo,this.canKickParticipant=r.permissions.kickParticipant&&!0!==(null===(i=this.meeting)||void 0===i?void 0:i.__internals__.features.hasFeature(o.DISABLE_KICKING))&&(!0!==(null===(s=this.meeting)||void 0===s?void 0:s.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(e=this.participant)||void 0===e?void 0:e.presetName)),this.canPinParticipant=r.permissions.pinParticipant,this.canAllowParticipantOnStage=r.permissions.acceptStageRequests&&r.permissions.stageEnabled&&(!0!==(null===(a=this.meeting)||void 0===a?void 0:a.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(h=this.participant)||void 0===h?void 0:h.presetName))&&(!0!==(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(o.CANTINVITE_VIEWER))||"webinar_viewer"!==(null===(c=this.participant)||void 0===c?void 0:c.presetName)),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,c,o,p,b;const v="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),k=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,m=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!v||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,u=l((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"9a717049edf15cfec3e497a30a37f873dcb37fd8"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"4e161f74ce11be1050c95556065867289ab618b2",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"c1e71db1ba1ed2e8defbbb9802c22df8b64670fc",class:"name",title:u},f(u,16)," ",(null===(c=this.meeting)||void 0===c?void 0:c.self.id)===(null===(o=this.participant)||void 0===o?void 0:o.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"165e14ba9f5e063820c6f440dc9eb03344e7bcdf",class:"right"},g&&s("rtk-icon",{key:"d6651dc9e7eb12ed56742f08096ef239bd4429c1",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!v&&s("rtk-icon",{key:"89506d158acdb3e2629a7a2ab51aef475f9f3b75",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(m||r({element:"rtk-participant",defaults:y,childProps:{participant:this.participant}})>0)&&s("div",{key:"202a957dfe004c8c1f2195bf93c9ce9ce167a96f",class:"menu"},s("span",{key:"a01163f9da5fab4a1d7922f8abfe5a2e4a4dcf2c",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"144e0c418b6a038d560f8087825471b649229ecb",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"18abb20a0969e0332d8fe2b5dcfe41bfc66955f7",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"3a22ebe5a21228b6ea6e15933d961b24085dce44",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"86688ad10d1440c5b534fe2f002225e0368ae24a",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!v&&s("rtk-menu-item",{key:"c22833b86d8583bdaec723a269afa7298cb0ca0d",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"9cdde53aaffca1f0042a69048b77f31fc10c69d6",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),k&&s("rtk-menu-item",{key:"b651953a9b02065ca223c46dd7dbadedc8401031",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"e63383cca42314f8ac0a9a03d13948b4eb5ced8c",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"86f670083fa1000cc99c5a57d4da2cb789c88aee",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"d75504ef4431c83efea2d281baad6a10c8a2e3b3",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"2634fae26bc72fec773f3a7f85fad7ebc1cfca11",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"57d51380b52a20a8f9dfc51931401712f4d67f26",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(p=this.participant)||void 0===p?void 0:p.id)!==(null===(b=this.meeting)||void 0===b?void 0:b.self.id)&&s("rtk-menu-item",{key:"64ab2f51f494b8d3d445ae9aece430e8c0fca673",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"5633f66f3679bfc3b6e87a55cfb884e63260767c",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!k&&this.canKickParticipant&&s("rtk-menu-item",{key:"664e9b1c843aa0cc7a47062b4f353a8e1105a368",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i;null===(t=this.meeting)||void 0===t||t.participants.kick(null===(i=this.participant)||void 0===i?void 0:i.id)}},s("rtk-icon",{key:"10cb3a42b4c861241d983d9cb1ebfe594500fbc3",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"ed681666f5bb8bf06a6fac4b929853d9b6bc704c"},s(d,{key:"8177a2248bf03ffbe26a7f0f560eb81439a00fb3",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],participant:["participantChanged"]}}};y([u()],x.prototype,"meeting",void 0),y([u()],x.prototype,"states",void 0),y([u()],x.prototype,"iconPack",void 0),y([u()],x.prototype,"t",void 0),x.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;top:var(--rtk-space-8, 32px) !important;right:var(--rtk-space-4, 16px) !important;z-index:20}";const w=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=g((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"02cd1150b5e7b65f25178c0ce673ee823feec9d8",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"0f886b79c861b3010d60df73a7b343955e97a8f2",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"d290097b0d363d9a580e71da1260e87456248dc4",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:["itemsChanged"]}}};w.style=":host{height:100%;width:100%}";export{x as rtk_participant,w as rtk_virtualized_participant_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,H as i}from"./p-0ee570cd.js";import{a,c as o}from"./p-d3bf4348.js";import{S as s}from"./p-dac97779.js";import{d as e}from"./p-cbdd7a99.js";var n=function(t,r,i,a){var o,s=arguments.length,e=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(e=(s<3?o(e):s>3?o(r,i,e):o(r,i))||e);return s>3&&e&&Object.defineProperty(r,i,e),e};const c=class{constructor(r){t(this,r),this.variant="rounded",this.iconPack=a,this.t=o(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=e((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:o}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,s="sm"===this.size?a:o,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<s)}),50),this.onParticipantJoin=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(null==this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(null==this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(null==this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?r(i,null,r("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},r("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&r("div",{class:"center"},r("span",{class:"page"},0===this.pageCount?r("rtk-tooltip",{label:this.t("layout.auto")},r("rtk-button",{kind:"icon",class:"auto"},r("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[r("span",{class:"slash"},"/"),r("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&r("div",{class:"dots"},[...Array(this.pageCount)].map(((t,i)=>r("div",{key:`dot-${i}`,class:{dot:!0,active:i+1===this.page}})))),r("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},r("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):r(i,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"],size:["sizeChanged"]}}};n([s()],c.prototype,"meeting",void 0),n([s()],c.prototype,"states",void 0),n([s()],c.prototype,"size",void 0),n([s()],c.prototype,"iconPack",void 0),n([s()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}";export{c as rtk_grid_pagination}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as r,h as o,H as e,a}from"./p-0ee570cd.js";import{a as i,c}from"./p-d3bf4348.js";import{S as s}from"./p-dac97779.js";var n=function(t,r,o,e){var a,i=arguments.length,c=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,o,e);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(c=(i<3?a(c):i>3?a(r,o,c):a(r,o))||c);return i>3&&c&&Object.defineProperty(r,o,c),c};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=c(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"cc4c42c7e70920678ccd5504299cc2ea132ba082",title:t},this.states.activeMoreMenu&&o("div",{key:"4e15d624377561cc3bfac660822041079387d15c",class:"more-menu"},o("slot",{key:"83c8c81d94edbed4d30143fe4a0a9fc77f7c3883",name:"more-elements"})),o("rtk-controlbar-button",{key:"1b88da49b3bd62fc05f43e83743935cbe1848bdf",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"06155b80eabc3aa0c8495c5bc447af457acdd038",name:"expanded"}))}get host(){return a(this)}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"size",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,F as r,H as a}from"./p-0ee570cd.js";import{s as o}from"./p-338c7261.js";import{d as n,a as s,c,k as d}from"./p-d3bf4348.js";import{R as l}from"./p-c8eaa707.js";import{S as p}from"./p-dac97779.js";var b=function(t,e,i,r){var a,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};const h=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.config=n,this.iconPack=s,this.t=c(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){this.isJoining=!0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),d.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.joinRoom())}catch(t){this.isJoining=!1}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,n,s,c,d;const p=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,b={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},h=null===(s=null===(n=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===n?void 0:n.meetingTitle)||void 0===s?void 0:s.trim();return i(a,{key:"81fce073b274287e6a4cd3a8d6fb28d2db0ec1db"},i("div",{key:"a4b0426c067ff9d5d380759ad535157bd1aa8210",class:"container"},i("div",{key:"1a65db35ffed6f8dd2e68e20b45e5bc6bc0bb99e",class:"container-tile"},i(l,{key:"7f78f7a68292c27a5531b6aea9c100b3c0d2ab86",element:"rtk-participant-tile",defaults:b,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(d=this.meeting)||void 0===d?void 0:d.self,size:"md"},deepProps:!0}),i("div",{key:"bbd220ce356d23388f1c45db5ea9b1934e4df7a3",class:"media-selectors"},i("rtk-microphone-selector",Object.assign({key:"986377b85493dfd45ec10c7bc3a7c06f743d94ee"},b,{variant:"inline"})),i("rtk-camera-selector",Object.assign({key:"020ad2c9a5a4e6a710c15b0d834baae0e3fd46df"},b,{variant:"inline"})),i("rtk-speaker-selector",Object.assign({key:"82db6a6a721da0187e2b14926cb794bf5c83bbfe"},b,{variant:"inline"})))),i("div",{key:"8c9139f72ed1da7b9f316970ee17dcc56e83f259",class:"metadata"},h&&""!==h&&i("div",{key:"b5f7164a51aabed7a4355d9a5dcaa7148a7eee0c",class:"meeting-title"},h),this.canEditName?i(r,null,i("div",{class:"join-as"},this.t("setup_screen.join_in_as")),i("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):i("div",{class:"uneditable-name"},i("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",i("div",{class:"name"},o(this.displayName,20))),i("rtk-button",{key:"df8528e0fa5e31775a0f70a24b5dd00cf913a00e",size:"lg",kind:"wide",onClick:this.join,disabled:p},this.isJoining?i("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),"connected"!==this.connectionState&&i("div",{key:"e60c7bb5d1a8ae53251fae2099c403752c330a08",class:"no-network-badge"},i("rtk-icon",{key:"f494e5882c9f6488ac7237784fb79983fe560093",size:"md",variant:"danger",icon:this.iconPack.disconnected}),this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")))))}static get watchers(){return{meeting:["meetingChanged"]}}};b([p()],h.prototype,"meeting",void 0),b([p()],h.prototype,"states",void 0),b([p()],h.prototype,"size",void 0),b([p()],h.prototype,"iconPack",void 0),b([p()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}";export{h as rtk_setup_screen}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as r,H as e}from"./p-0ee570cd.js";import{d as a,a as s,c as o}from"./p-d3bf4348.js";import{S as n}from"./p-dac97779.js";var c=function(t,i,r,e){var a,s=arguments.length,o=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(i,r,o):a(i,r))||o);return s>3&&o&&Object.defineProperty(i,r,o),o};const l=class{constructor(r){t(this,r),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=a,this.iconPack=s,this.t=o(),this.view="sidebar",this.close=()=>{this.stateUpdate.emit({activeAI:!1})}}connectedCallback(){this.viewChanged(this.view)}disconnectedCallback(){this.keydownListener&&document.removeEventListener("keydown",this.keydownListener)}viewChanged(t){"full-screen"===t&&(this.keydownListener=t=>{"Escape"===t.key&&this.close()},document.addEventListener("keydown",this.keydownListener))}render(){var t,i,a;if(!(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled||!(null===(a=this.states)||void 0===a?void 0:a.activeAI))return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return r(e,null,r("h3",{class:"title"},this.t("ai.transcriptions")),r("rtk-button",{variant:"ghost",kind:"icon",class:"close",onClick:this.close,"aria-label":this.t("close")},r("rtk-icon",{icon:this.iconPack.dismiss})),r("rtk-ai-transcriptions",Object.assign({},s)))}static get watchers(){return{view:["viewChanged"]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"states",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),c([n()],l.prototype,"size",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;box-sizing:border-box;display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden}.close{position:absolute;top:var(--rtk-space-3, 12px);left:var(--rtk-space-3, 12px)}.title{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-2, 8px);-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:var(--rtk-space-0, 0px);text-align:center;font-size:14px;font-weight:400}rtk-ai-transcriptions{flex:1}:host([view='sidebar']){margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:50;max-width:100%;border:none}";export{l as rtk_ai}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t="object"==typeof global&&global&&global.Object===Object&&global;var e="object"==typeof self&&self&&self.Object===Object&&self;const n=t||e||Function("return this")(),o=n.Symbol;var c=Object.prototype,l=c.hasOwnProperty,r=c.toString,a=o?o.toStringTag:void 0,u=Object.prototype.toString,b=o?o.toStringTag:void 0;function f(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?function(t){var e=l.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(t){}var c=r.call(t);return o&&(e?t[a]=n:delete t[a]),c}(t):function(t){return u.call(t)}(t)}function i(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function s(t){return null!=t&&"object"==typeof t}export{o as S,i as a,f as b,t as f,s as i,n as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{d as a,a as n,c as r,q as h,l as o}from"./p-d3bf4348.js";import{d as p}from"./p-cbdd7a99.js";import{R as c}from"./p-c8eaa707.js";import{S as l}from"./p-dac97779.js";import{d}from"./p-b13ddb7d.js";var g=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const v=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=a,this.iconPack=n,this.t=r(),this.gridSize=d,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{null!=this.meeting&&this.updateActiveParticipants()},this.onParticipantJoined=p((()=>{this.updateActiveParticipants()}),50),this.onParticipantLeft=p((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=h(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(null==t)return;this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:a}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==a||a.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.onParticipantLeft),e.active.removeListener("participantJoined",this.onParticipantJoined),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,a,n;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:r,plugins:h,stage:o}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...r.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...r.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=r.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==h?void 0:h.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||p.canPresent,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==o||o.addListener("stageStatusUpdate",this.stageStatusListener),null==h||h.all.addListener("stateUpdate",this.onPluginStateUpdate),r.addListener("viewModeChanged",this.onViewModeChanged),r.active.addListener("participantLeft",this.onParticipantLeft),null===(a=null==r?void 0:r.joined)||void 0===a||a.on("stageStatusUpdate",this.peerStageStatusListener),r.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),r.active.addListener("participantJoined",this.onParticipantJoined),r.pinned.addListener("participantJoined",this.onParticipantPinned),r.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(n=t.stage)||void 0===n?void 0:n.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!o.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),o.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!o.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),o.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!o.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),o.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),..."ACTIVE_GRID"!==s.viewMode||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){const t={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return this.invalidRoomStates.includes(this.roomState)?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),s("h3",null,this.t("disconnected")),s("p",null,this.t("disconnected.description")))):"disconnected"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("offline")),s("p",null,this.t("offline.description")))):"failed"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("failed")),s("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?s(e,null,s("rtk-livestream-player",{meeting:this.meeting,size:this.size}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?s(e,null,s("div",{class:"webinar-stage"},s("div",{class:"center"},this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_host")),s("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):s(e,null,s(c,{element:"rtk-grid",defaults:t,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:["meetingChanged"],overrides:["overridesChanged"],screenShareParticipants:["screenShareParticipantsChanged"],plugins:["pluginsChanged"],pinnedParticipants:["pinnedParticipantsChanged"]}}};g([l()],v.prototype,"meeting",void 0),g([l()],v.prototype,"size",void 0),g([l()],v.prototype,"states",void 0),g([l()],v.prototype,"iconPack",void 0),g([l()],v.prototype,"t",void 0),v.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}";export{v as rtk_grid}
|