@cloudflare/realtimekit-ui 1.0.4-staging.1 → 1.0.4-staging.3
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-b9599251.js → TextMessage-87a57af2.js} +1 -1
- package/dist/cjs/{chat-aac81e73.js → chat-5f3ed9c3.js} +1 -1
- package/dist/cjs/{debounce-8ebb7833.js → debounce-d5375a75.js} +1 -1
- package/dist/cjs/{index-2ae99c70.js → index-618e08d7.js} +10 -2
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{merge-ee976be5.js → merge-b6b71419.js} +250 -1
- package/dist/cjs/{notification-541b7cfa.js → notification-bc9915bb.js} +4 -252
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-avatar_54.cjs.entry.js +9 -9
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +4 -4
- 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 +3 -3
- package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +2 -2
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
- package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +7 -2
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
- package/dist/cjs/{sidebar-8b82a470.js → sidebar-d8acee5c.js} +1 -1
- package/dist/cjs/{ui-store-af000a8e.js → ui-store-e94b055c.js} +4 -4
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +6 -1
- package/dist/collection/utils/sync-with-store/index.js +9 -1
- package/dist/collection/utils/sync-with-store/ui-store.js +4 -4
- package/dist/components/index.js +6 -5
- package/dist/components/{p-99303d10.js → p-00525429.js} +1 -1
- package/dist/components/{p-b8baba9f.js → p-0321cc25.js} +52 -52
- package/dist/components/{p-24c3ffc2.js → p-0748e03c.js} +3 -3
- package/dist/components/{p-0c855484.js → p-0b4e9e8e.js} +5 -5
- package/dist/components/{p-bf72bb45.js → p-167d8f4f.js} +10 -10
- package/dist/components/{p-557d4076.js → p-16e69e08.js} +7 -7
- package/dist/components/{p-4bb5e9bb.js → p-1813d589.js} +12 -12
- package/dist/components/{p-6b4eccd6.js → p-186d395c.js} +5 -5
- package/dist/components/{p-fc56c6ea.js → p-186daafc.js} +4 -4
- package/dist/components/{p-0a0515d9.js → p-191793b5.js} +3 -3
- package/dist/components/{p-a10339f4.js → p-1c0cb465.js} +3 -3
- package/dist/components/{p-96362151.js → p-1fe1a8f3.js} +5 -5
- package/dist/components/{p-52628938.js → p-22ea80c5.js} +3 -3
- package/dist/components/{p-0b9cf1da.js → p-26dd55cb.js} +4 -4
- package/dist/components/{p-388b17ad.js → p-288c22bd.js} +3 -3
- package/dist/components/{p-c65aaf73.js → p-2942a50f.js} +13 -13
- package/dist/components/{p-2d58e36e.js → p-385b713f.js} +5 -5
- package/dist/components/{p-93355c43.js → p-3a795fe6.js} +1 -1
- package/dist/components/{p-310a03ac.js → p-3ce582b1.js} +13 -13
- package/dist/components/{p-3081fabf.js → p-4093562b.js} +4 -4
- package/dist/components/{p-f1a781b0.js → p-4151f04e.js} +3 -3
- package/dist/components/{p-c254f63b.js → p-41c98037.js} +4 -4
- package/dist/components/{p-2ee6390c.js → p-49481600.js} +2 -2
- package/dist/components/{p-938ee31c.js → p-4a0b3b5c.js} +3 -3
- package/dist/components/{p-f8594d8e.js → p-52511dc3.js} +2 -2
- package/dist/components/{p-96e2ff79.js → p-52ab94d1.js} +7 -7
- package/dist/components/{p-bee7d918.js → p-589a900d.js} +8 -8
- package/dist/components/{p-acbb932e.js → p-5c2b1ba2.js} +1 -1
- package/dist/components/{p-384919de.js → p-5c7742d3.js} +14 -14
- package/dist/components/{p-12e64755.js → p-60981c2e.js} +3 -3
- package/dist/components/{p-7ac93e47.js → p-65f8f581.js} +2 -2
- package/dist/components/{p-04dc0331.js → p-69488ced.js} +9 -9
- package/dist/components/{p-17ac0da7.js → p-6eba9a98.js} +2 -2
- package/dist/components/{p-7f4b9092.js → p-6efe5771.js} +8 -8
- package/dist/components/{p-4f585ec2.js → p-6f9489ac.js} +11 -11
- package/dist/components/{p-54de25c6.js → p-74f9ac6e.js} +2 -2
- package/dist/components/{p-7764b66b.js → p-779cbb7f.js} +25 -25
- package/dist/components/{p-87ae32cb.js → p-853eb11a.js} +9 -9
- package/dist/components/{p-1035acb6.js → p-863cd01a.js} +2 -2
- package/dist/components/{p-fbe523dc.js → p-8a617c86.js} +6 -6
- package/dist/components/{p-3968315b.js → p-8bbaf6c2.js} +10 -2
- package/dist/components/{p-8320939f.js → p-8dbab1d8.js} +8 -8
- package/dist/components/{p-09ec425b.js → p-8e257589.js} +4 -4
- package/dist/components/{p-36b8529e.js → p-9115e02b.js} +4 -4
- package/dist/components/{p-792de3bc.js → p-928df9d1.js} +2 -2
- package/dist/components/{p-8d93417e.js → p-932be1f6.js} +6 -6
- package/dist/components/{p-0f10661d.js → p-93907842.js} +2 -2
- package/dist/components/{p-32584f88.js → p-94df3a16.js} +4 -4
- package/dist/components/{p-80efd900.js → p-9b702bd2.js} +6 -6
- package/dist/components/{p-5677f439.js → p-9fdacb6b.js} +3 -3
- package/dist/components/{p-d1084f45.js → p-a8f83ab1.js} +2 -2
- package/dist/components/{p-57973e22.js → p-a9755f31.js} +4 -4
- package/dist/components/{p-2f9525bf.js → p-ac30ed19.js} +2 -2
- package/dist/components/{p-47f6fdfa.js → p-adafaabb.js} +3 -3
- package/dist/components/{p-f3fbe2fb.js → p-b2a9a468.js} +4 -4
- package/dist/components/{p-ea160150.js → p-b38b3c28.js} +2 -2
- package/dist/components/{p-483894c7.js → p-b6951b1c.js} +4 -4
- package/dist/components/{p-616cfbd8.js → p-b6b43c4a.js} +7 -7
- package/dist/components/{p-b8fe19b6.js → p-ba0e5882.js} +249 -2
- package/dist/components/{p-f44a0212.js → p-bb54487e.js} +3 -3
- package/dist/components/{p-7d95084a.js → p-bb69bba9.js} +5 -5
- package/dist/components/{p-8afd3f68.js → p-bb8050bc.js} +4 -4
- package/dist/components/{p-37f70cfb.js → p-bdae67ed.js} +4 -4
- package/dist/components/{p-f31839f4.js → p-bfc8d680.js} +4 -4
- package/dist/components/{p-9f86929b.js → p-c21c02e9.js} +5 -5
- package/dist/components/{p-cadee920.js → p-c722ac0b.js} +1 -1
- package/dist/components/{p-1f5e21d0.js → p-cc23c4f1.js} +6 -6
- package/dist/components/{p-e10e8a56.js → p-cc39d855.js} +5 -5
- package/dist/components/{p-65980189.js → p-cccd3ae4.js} +7 -7
- package/dist/components/{p-4c2acc5c.js → p-ce2007d7.js} +1 -1
- package/dist/components/{p-9f843e5a.js → p-cecf2f70.js} +8 -8
- package/dist/components/{p-7525d343.js → p-cfbca110.js} +2 -2
- package/dist/components/{p-d4f3d3d2.js → p-d40480b3.js} +3 -3
- package/dist/components/{p-885dad3e.js → p-e381240e.js} +3 -3
- package/dist/components/{p-c5fd7cc6.js → p-e595c078.js} +3 -250
- package/dist/components/{p-f3f1b0c0.js → p-e956f8f7.js} +2 -2
- package/dist/components/{p-5255d2f8.js → p-eb71b424.js} +6 -6
- package/dist/components/{p-fb038bd0.js → p-efa4bd9d.js} +4 -4
- package/dist/components/{p-2b523e10.js → p-f367f8a7.js} +5 -5
- package/dist/components/{p-81a13bf2.js → p-f40dc5a5.js} +4 -4
- package/dist/components/{p-889bc7b9.js → p-f5f209ef.js} +5 -5
- package/dist/components/{p-47a6f5a0.js → p-fa52dc04.js} +2 -2
- package/dist/components/{p-6c351e40.js → p-fa82d418.js} +7 -7
- package/dist/components/{p-b53c309c.js → p-faac8c00.js} +5 -5
- package/dist/components/{p-40870ba7.js → p-fc7e870e.js} +5 -5
- package/dist/components/{p-ab84cfbb.js → p-fd370f5f.js} +4 -4
- package/dist/components/rtk-ai-toggle.js +5 -5
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +5 -5
- package/dist/components/rtk-audio-grid.js +2 -2
- package/dist/components/rtk-audio-tile.js +6 -6
- 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 +5 -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 +6 -6
- package/dist/components/rtk-caption-toggle.js +5 -5
- 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 +6 -6
- 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 +6 -6
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +3 -3
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +2 -2
- 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 +5 -5
- 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 +4 -4
- package/dist/components/rtk-file-dropzone.js +3 -3
- 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 +5 -5
- package/dist/components/rtk-grid.js +10 -10
- package/dist/components/rtk-header.js +2 -2
- package/dist/components/rtk-icon.js +1 -1
- package/dist/components/rtk-idle-screen.js +5 -5
- 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 +4 -4
- package/dist/components/rtk-information-tooltip.js +3 -3
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +5 -5
- 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 +5 -5
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-meeting-title.js +3 -3
- package/dist/components/rtk-meeting.js +54 -54
- 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 +4 -4
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +6 -6
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +8 -8
- package/dist/components/rtk-more-toggle.js +5 -5
- package/dist/components/rtk-mute-all-button.js +6 -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 +2 -2
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +5 -5
- 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 +6 -6
- 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 +15 -15
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pip-toggle.js +5 -5
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +6 -6
- 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 +3 -3
- package/dist/components/rtk-recording-toggle.js +5 -5
- package/dist/components/rtk-screen-share-toggle.js +6 -6
- package/dist/components/rtk-screenshare-view.js +5 -5
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +5 -5
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +12 -12
- package/dist/components/rtk-setup-screen.js +8 -8
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +11 -11
- package/dist/components/rtk-simple-grid.js +2 -2
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +2 -2
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +6 -6
- package/dist/components/rtk-stage.js +2 -2
- 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.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 +3 -3
- package/dist/components/rtk-ui-provider.js +7 -2
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-waiting-screen.js +3 -3
- package/dist/docs/docs-components.json +1 -1
- package/dist/esm/{TextMessage-a699d8da.js → TextMessage-8f228811.js} +1 -1
- package/dist/esm/{chat-0fec85e9.js → chat-923c5f59.js} +1 -1
- package/dist/esm/{debounce-29e3a983.js → debounce-5b758f09.js} +1 -1
- package/dist/esm/{index-21637ec2.js → index-02905f52.js} +10 -2
- package/dist/esm/index.js +6 -6
- package/dist/esm/loader.js +265 -252
- package/dist/esm/{merge-ef938315.js → merge-1a2358a4.js} +249 -2
- package/dist/esm/{notification-deef1123.js → notification-c1e1a387.js} +3 -250
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
- package/dist/esm/rtk-ai.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +2 -2
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
- package/dist/esm/rtk-avatar_54.entry.js +7 -7
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/esm/rtk-channel-selector-ui.entry.js +4 -4
- 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 +3 -3
- package/dist/esm/rtk-clock.entry.js +2 -2
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +2 -2
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +2 -2
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/rtk-participant_2.entry.js +3 -3
- package/dist/esm/rtk-participants-audio.entry.js +2 -2
- package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
- package/dist/esm/rtk-participants-toggle.entry.js +3 -3
- package/dist/esm/rtk-participants.entry.js +3 -3
- package/dist/esm/rtk-pip-toggle.entry.js +2 -2
- package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
- package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
- package/dist/esm/rtk-plugins_2.entry.js +2 -2
- package/dist/esm/rtk-poll_2.entry.js +2 -2
- package/dist/esm/rtk-polls-toggle.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +2 -2
- package/dist/esm/rtk-recording-toggle.entry.js +2 -2
- package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
- package/dist/esm/rtk-screenshare-view.entry.js +2 -2
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +2 -2
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +3 -3
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +2 -2
- package/dist/esm/rtk-transcript.entry.js +2 -2
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +7 -2
- package/dist/esm/rtk-waiting-screen.entry.js +2 -2
- package/dist/esm/{sidebar-c47b86b4.js → sidebar-c1c11b00.js} +1 -1
- package/dist/esm/{ui-store-fabf2b32.js → ui-store-51db54bf.js} +5 -5
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-3b14c478.entry.js → p-031768d2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fdc0d8cc.entry.js → p-032bc8ec.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-de42b31f.entry.js → p-041ccf2d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f7cc7f81.entry.js → p-044d1450.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-59cd209a.entry.js → p-0f0395d8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3956d569.js → p-1109b664.js} +1 -1
- package/dist/realtimekit-ui/{p-ef3ac9e9.entry.js → p-12a74bef.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f2af9690.entry.js → p-14b02cf2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-82520fc0.entry.js → p-16740763.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-af95d40e.entry.js → p-19519e2f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-86d3632a.entry.js → p-19d80239.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-30fe4bbf.entry.js → p-19fc2b31.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-309def3e.entry.js → p-1d10833d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-33c173a8.entry.js → p-222314de.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e8e68c22.entry.js → p-23ed9798.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ad5fc6df.entry.js → p-250f499c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9b8a0f9b.entry.js → p-2e4037c8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e48166db.entry.js → p-2e7f8a0f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-3146a35e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-af81e9cf.entry.js → p-38491702.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2d0676a9.entry.js → p-388e2f79.entry.js} +1 -1
- package/dist/realtimekit-ui/p-390dc08f.js +1 -0
- package/dist/realtimekit-ui/{p-a02141f1.entry.js → p-395391d7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-59837fe1.entry.js → p-3d2ef042.entry.js} +1 -1
- package/dist/realtimekit-ui/p-449677c1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-67ff2615.entry.js → p-4f2175a1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-05b3a3fa.entry.js → p-51a4f593.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e77e5cef.entry.js → p-5ab26b36.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f16ed5c8.entry.js → p-5ea5ea4c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-375c10a2.entry.js → p-60d7e2c8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a29ad4d8.entry.js → p-63636a8d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cde200c4.entry.js → p-699eb823.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-23893740.entry.js → p-6c8231d7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1f3bfcdb.js → p-6cfb6e51.js} +1 -1
- package/dist/realtimekit-ui/p-6f182ec9.js +1 -0
- package/dist/realtimekit-ui/{p-e872d214.entry.js → p-6f507413.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-881f7e61.entry.js → p-70aaf146.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-542f52e9.entry.js → p-71224b79.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-199f622a.entry.js → p-7137eecf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-37a218a8.entry.js → p-75800b61.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-458b4f23.entry.js → p-767e2042.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9c5cb84c.entry.js → p-7909526f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-87a8cbc2.entry.js → p-7e5c5598.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-17c4a39a.entry.js → p-8434ab99.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-08628c03.entry.js → p-857772f2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a80ce945.entry.js → p-8dc49c21.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-eae4e83b.js → p-912c0afc.js} +1 -1
- package/dist/realtimekit-ui/{p-0f5681eb.entry.js → p-9253e9de.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-393ff18f.entry.js → p-94e84860.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4265c450.entry.js → p-9c6b98e6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ff4f156f.entry.js → p-a4897c11.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6cd96b58.js → p-a72b4dcc.js} +1 -1
- package/dist/realtimekit-ui/p-aa3acda3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-116eabc9.entry.js → p-ab5dff6b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a5512788.entry.js → p-ab63d245.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-18ca0ccd.entry.js → p-afa01352.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-76bcc78d.entry.js → p-b213af17.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d2998b1e.entry.js → p-b2e11d64.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-18618102.entry.js → p-b54302a9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-28ac7dfd.entry.js → p-b5e5e509.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e0303097.entry.js → p-baebb0a9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-586b8e78.entry.js → p-c0b19188.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e368f30f.entry.js → p-c3d7db06.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c31bcf97.entry.js → p-c8f43c80.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d0ec8218.entry.js → p-c9462f98.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-420629b1.entry.js → p-cba3e470.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c2f35fc7.entry.js → p-cceb1491.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4a2d51d2.entry.js → p-d123b26e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a6802383.entry.js → p-d26b4447.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b616deb3.entry.js → p-d3807280.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d7d8af87.js +1 -0
- package/dist/realtimekit-ui/{p-bd103adc.entry.js → p-d7f0ac1e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6f24d78f.entry.js → p-dbabfce1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a33714b1.entry.js → p-e3f333c8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f243302d.js +1 -0
- package/dist/realtimekit-ui/{p-5d60f101.entry.js → p-f422cd58.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3eb310d3.entry.js → p-f71f017f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-efc9cddb.entry.js → p-f851a5e5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-38c18a6b.entry.js → p-fbe67582.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/package.json +1 -1
- package/dist/realtimekit-ui/p-2bd5be73.js +0 -1
- package/dist/realtimekit-ui/p-51fd9745.js +0 -1
- package/dist/realtimekit-ui/p-526f1a76.js +0 -1
- package/dist/realtimekit-ui/p-52b25934.js +0 -1
- package/dist/realtimekit-ui/p-716f90a3.entry.js +0 -1
- package/dist/realtimekit-ui/p-7bae9d05.entry.js +0 -1
- package/dist/realtimekit-ui/p-fdec3315.entry.js +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -5775,12 +5775,12 @@ const elementsMap = new Map();
|
|
|
5775
5775
|
// Attach elementsMap to global store for consistency
|
|
5776
5776
|
uiStore.elementsMap = elementsMap;
|
|
5777
5777
|
uiStore.use({
|
|
5778
|
-
set: (propName, newValue
|
|
5778
|
+
set: (propName, newValue) => {
|
|
5779
5779
|
const elements = elementsMap.get(propName);
|
|
5780
5780
|
if (elements) {
|
|
5781
5781
|
elementsMap.set(propName, elements.filter((element) => {
|
|
5782
5782
|
const currentValue = element[propName];
|
|
5783
|
-
if (currentValue
|
|
5783
|
+
if (currentValue !== newValue) {
|
|
5784
5784
|
element[propName] = newValue;
|
|
5785
5785
|
return true;
|
|
5786
5786
|
}
|
|
@@ -5810,12 +5810,12 @@ function createPeerStore({ meeting, config, providerId, iconPack, t, size }) {
|
|
|
5810
5810
|
// Attach elementsMap to store so appendElement/removeElement can access it
|
|
5811
5811
|
store.elementsMap = peerElementsMap;
|
|
5812
5812
|
store.use({
|
|
5813
|
-
set: (propName, newValue
|
|
5813
|
+
set: (propName, newValue) => {
|
|
5814
5814
|
const elements = peerElementsMap.get(propName);
|
|
5815
5815
|
if (elements) {
|
|
5816
5816
|
peerElementsMap.set(propName, elements.filter((element) => {
|
|
5817
5817
|
const currentValue = element[propName];
|
|
5818
|
-
if (currentValue
|
|
5818
|
+
if (currentValue !== newValue) {
|
|
5819
5819
|
element[propName] = newValue;
|
|
5820
5820
|
return true;
|
|
5821
5821
|
}
|
|
@@ -5948,7 +5948,15 @@ function SyncWithStore() {
|
|
|
5948
5948
|
if (event.detail.requestId === requestId) {
|
|
5949
5949
|
// Blindly put peer specific store's value for propName in host propName
|
|
5950
5950
|
const storeValue = event.detail.store.state[propName];
|
|
5951
|
-
host
|
|
5951
|
+
host.componentOnReady().then(() => {
|
|
5952
|
+
/**
|
|
5953
|
+
* NOTE(ravindra-dyte):
|
|
5954
|
+
* https://stenciljs.com/docs/api#componentonready
|
|
5955
|
+
* This psudo ready callback is to ensure that the component is ready to accept props
|
|
5956
|
+
* Without this, changing the prop would not trigger @Watch of prop in the initial mount phase
|
|
5957
|
+
* */
|
|
5958
|
+
host[propName] = storeValue;
|
|
5959
|
+
});
|
|
5952
5960
|
appendElement(propName, host, event.detail.store);
|
|
5953
5961
|
host[`_rtkStoreToCleanup-${propName}`] = event.detail.store;
|
|
5954
5962
|
// Since peer specific store is available, remove element prop from global store
|
|
@@ -6803,6 +6811,253 @@ const downloadFile = async (link, options) => {
|
|
|
6803
6811
|
a.click();
|
|
6804
6812
|
};
|
|
6805
6813
|
|
|
6814
|
+
const spacingScale = [
|
|
6815
|
+
0,
|
|
6816
|
+
0.5,
|
|
6817
|
+
1,
|
|
6818
|
+
1.5,
|
|
6819
|
+
2,
|
|
6820
|
+
3,
|
|
6821
|
+
4,
|
|
6822
|
+
5,
|
|
6823
|
+
6,
|
|
6824
|
+
7,
|
|
6825
|
+
8,
|
|
6826
|
+
9,
|
|
6827
|
+
10,
|
|
6828
|
+
12,
|
|
6829
|
+
14,
|
|
6830
|
+
16,
|
|
6831
|
+
20,
|
|
6832
|
+
24,
|
|
6833
|
+
28,
|
|
6834
|
+
32,
|
|
6835
|
+
36,
|
|
6836
|
+
40,
|
|
6837
|
+
44,
|
|
6838
|
+
48,
|
|
6839
|
+
52,
|
|
6840
|
+
56,
|
|
6841
|
+
60,
|
|
6842
|
+
64,
|
|
6843
|
+
72,
|
|
6844
|
+
80,
|
|
6845
|
+
96
|
|
6846
|
+
];
|
|
6847
|
+
|
|
6848
|
+
const THEMES = {
|
|
6849
|
+
darkest: {
|
|
6850
|
+
background: {
|
|
6851
|
+
1000: '#080808',
|
|
6852
|
+
900: '#1A1A1A',
|
|
6853
|
+
800: '#1E1E1E',
|
|
6854
|
+
700: '#2C2C2C',
|
|
6855
|
+
600: '#393939',
|
|
6856
|
+
},
|
|
6857
|
+
text: '#FFFFFF',
|
|
6858
|
+
},
|
|
6859
|
+
dark: {
|
|
6860
|
+
background: {
|
|
6861
|
+
1000: '#252525',
|
|
6862
|
+
900: '#2F2F2F',
|
|
6863
|
+
800: '#323232',
|
|
6864
|
+
700: '#3E3E3E',
|
|
6865
|
+
600: '#4A4A4A',
|
|
6866
|
+
},
|
|
6867
|
+
text: '#F5F5F5',
|
|
6868
|
+
'video-bg': '#1C1C1C',
|
|
6869
|
+
},
|
|
6870
|
+
light: {
|
|
6871
|
+
background: {
|
|
6872
|
+
1000: '#FFFFFF',
|
|
6873
|
+
900: '#F5F5F5',
|
|
6874
|
+
800: '#EBEBEB',
|
|
6875
|
+
700: '#E0E0E0',
|
|
6876
|
+
600: '#D6D6D6',
|
|
6877
|
+
},
|
|
6878
|
+
text: '#111111',
|
|
6879
|
+
'text-on-brand': '#ffffff',
|
|
6880
|
+
'video-bg': '#DADADA',
|
|
6881
|
+
},
|
|
6882
|
+
};
|
|
6883
|
+
|
|
6884
|
+
const BORDER_WIDTHS = {
|
|
6885
|
+
none: {
|
|
6886
|
+
none: 0,
|
|
6887
|
+
sm: 0,
|
|
6888
|
+
md: 0,
|
|
6889
|
+
lg: 0,
|
|
6890
|
+
},
|
|
6891
|
+
thin: {
|
|
6892
|
+
none: 0,
|
|
6893
|
+
sm: 1,
|
|
6894
|
+
md: 2,
|
|
6895
|
+
lg: 4,
|
|
6896
|
+
},
|
|
6897
|
+
fat: {
|
|
6898
|
+
none: 0,
|
|
6899
|
+
sm: 2,
|
|
6900
|
+
md: 4,
|
|
6901
|
+
lg: 8,
|
|
6902
|
+
},
|
|
6903
|
+
};
|
|
6904
|
+
const BORDER_RADII = {
|
|
6905
|
+
sharp: {
|
|
6906
|
+
none: 0,
|
|
6907
|
+
sm: 0,
|
|
6908
|
+
md: 0,
|
|
6909
|
+
lg: 0,
|
|
6910
|
+
},
|
|
6911
|
+
rounded: {
|
|
6912
|
+
none: 0,
|
|
6913
|
+
sm: 4,
|
|
6914
|
+
md: 8,
|
|
6915
|
+
lg: 12,
|
|
6916
|
+
},
|
|
6917
|
+
'extra-rounded': {
|
|
6918
|
+
none: 0,
|
|
6919
|
+
sm: 8,
|
|
6920
|
+
md: 16,
|
|
6921
|
+
lg: 24,
|
|
6922
|
+
},
|
|
6923
|
+
circular: {
|
|
6924
|
+
none: 9999,
|
|
6925
|
+
sm: 9999,
|
|
6926
|
+
md: 9999,
|
|
6927
|
+
lg: 9999,
|
|
6928
|
+
},
|
|
6929
|
+
};
|
|
6930
|
+
|
|
6931
|
+
function hexToRGB(h) {
|
|
6932
|
+
h = h.trim();
|
|
6933
|
+
let r = '0', g = '0', b = '0';
|
|
6934
|
+
if (h.length == 4) {
|
|
6935
|
+
r = '0x' + h[1] + h[1];
|
|
6936
|
+
g = '0x' + h[2] + h[2];
|
|
6937
|
+
b = '0x' + h[3] + h[3];
|
|
6938
|
+
}
|
|
6939
|
+
else if (h.length > 6) {
|
|
6940
|
+
r = '0x' + h[1] + h[2];
|
|
6941
|
+
g = '0x' + h[3] + h[4];
|
|
6942
|
+
b = '0x' + h[5] + h[6];
|
|
6943
|
+
}
|
|
6944
|
+
return [+r, +g, +b];
|
|
6945
|
+
}
|
|
6946
|
+
const isValidHexColor = (color) => {
|
|
6947
|
+
return typeof color === 'string' && color.length === 7 && color.startsWith('#');
|
|
6948
|
+
};
|
|
6949
|
+
|
|
6950
|
+
const DEFAULT_CSS_TOKEN_PREFIX = '--rtk-';
|
|
6951
|
+
function getToken(token, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) {
|
|
6952
|
+
return tokenPrefix + token;
|
|
6953
|
+
}
|
|
6954
|
+
const provideGoogleFont = (fontFamily) => {
|
|
6955
|
+
const weights = [400, 500, 700];
|
|
6956
|
+
const links = [];
|
|
6957
|
+
if (document.querySelector('link[data-rtk-font]') == null) {
|
|
6958
|
+
/**
|
|
6959
|
+
* Adds the following preconnect link tags for faster google font loading
|
|
6960
|
+
* <link rel="preconnect" href="https://fonts.googleapis.com">
|
|
6961
|
+
* <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
6962
|
+
*/
|
|
6963
|
+
const p1 = document.createElement('link');
|
|
6964
|
+
p1.rel = 'preconnect';
|
|
6965
|
+
p1.setAttribute('data-rtk-font', 'true');
|
|
6966
|
+
p1.href = 'https://fonts.googleapis.com';
|
|
6967
|
+
const p2 = p1.cloneNode(true);
|
|
6968
|
+
p2.href = 'https://fonts.gstatic.com';
|
|
6969
|
+
p2.crossOrigin = '';
|
|
6970
|
+
links.push(p1, p2);
|
|
6971
|
+
}
|
|
6972
|
+
const link = document.createElement('link');
|
|
6973
|
+
link.rel = 'stylesheet';
|
|
6974
|
+
link.setAttribute('data-rtk-font', fontFamily);
|
|
6975
|
+
link.href = encodeURI(`https://fonts.googleapis.com/css2?family=${fontFamily}:wght@${weights.join(';')}&display=swap`);
|
|
6976
|
+
links.push(link);
|
|
6977
|
+
document.head.append(...links);
|
|
6978
|
+
};
|
|
6979
|
+
const provideSpacing = (el, spacingBase, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
6980
|
+
spacingScale.forEach((space) => {
|
|
6981
|
+
el.style.setProperty(getToken(`space-${space}`, tokenPrefix), `${space * spacingBase}px`);
|
|
6982
|
+
});
|
|
6983
|
+
};
|
|
6984
|
+
const provideBorderWidth = (el, borderWidth, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
6985
|
+
if (borderWidth in BORDER_WIDTHS) {
|
|
6986
|
+
const widths = BORDER_WIDTHS[borderWidth];
|
|
6987
|
+
Object.keys(widths).forEach((type) => {
|
|
6988
|
+
el.style.setProperty(getToken(`border-width-${type}`, tokenPrefix), `${widths[type]}px`);
|
|
6989
|
+
});
|
|
6990
|
+
}
|
|
6991
|
+
};
|
|
6992
|
+
const provideBorderRadius = (el, borderRadius, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
6993
|
+
if (borderRadius in BORDER_RADII) {
|
|
6994
|
+
const radii = BORDER_RADII[borderRadius];
|
|
6995
|
+
Object.keys(radii).forEach((type) => {
|
|
6996
|
+
el.style.setProperty(getToken(`border-radius-${type}`, tokenPrefix), `${radii[type]}px`);
|
|
6997
|
+
});
|
|
6998
|
+
}
|
|
6999
|
+
};
|
|
7000
|
+
const provideColors = (el, colors, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
7001
|
+
Object.keys(colors).forEach((color) => {
|
|
7002
|
+
const colorValue = colors[color];
|
|
7003
|
+
if (typeof colorValue === 'string') {
|
|
7004
|
+
if (color === 'text' || color === 'text-on-brand') {
|
|
7005
|
+
const rgb = hexToRGB(colorValue).join(' ');
|
|
7006
|
+
el.style.setProperty(getToken(`colors-${color}-1000`, tokenPrefix), `${rgb}`);
|
|
7007
|
+
el.style.setProperty(getToken(`colors-${color}-900`, tokenPrefix), `${rgb} / 0.88`);
|
|
7008
|
+
el.style.setProperty(getToken(`colors-${color}-800`, tokenPrefix), `${rgb} / 0.76`);
|
|
7009
|
+
el.style.setProperty(getToken(`colors-${color}-700`, tokenPrefix), `${rgb} / 0.64`);
|
|
7010
|
+
el.style.setProperty(getToken(`colors-${color}-600`, tokenPrefix), `${rgb} / 0.52`);
|
|
7011
|
+
}
|
|
7012
|
+
else {
|
|
7013
|
+
const rgb = hexToRGB(colorValue).join(' ');
|
|
7014
|
+
el.style.setProperty(getToken(`colors-${color}`, tokenPrefix), rgb);
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
else if (typeof colorValue === 'object') {
|
|
7018
|
+
Object.keys(colorValue).forEach((shade) => {
|
|
7019
|
+
const shadeValue = colorValue[shade];
|
|
7020
|
+
const rgb = hexToRGB(shadeValue).join(' ');
|
|
7021
|
+
el.style.setProperty(getToken(`colors-${color}-${shade}`, tokenPrefix), rgb);
|
|
7022
|
+
});
|
|
7023
|
+
}
|
|
7024
|
+
});
|
|
7025
|
+
};
|
|
7026
|
+
/**
|
|
7027
|
+
* Provides the design system new tokens to consume values from for styling the RealtimeKit UI components.
|
|
7028
|
+
* @param el The element/node you want to _provide_ RTK Design system.
|
|
7029
|
+
* @param tokens The design tokens you want to updated.
|
|
7030
|
+
*/
|
|
7031
|
+
const provideRtkDesignSystem = (el, { spacingBase, borderRadius, borderWidth, colors, fontFamily, googleFont, theme, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX, }) => {
|
|
7032
|
+
if (typeof el !== 'object') {
|
|
7033
|
+
throw new Error('[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element');
|
|
7034
|
+
}
|
|
7035
|
+
if (typeof googleFont === 'string') {
|
|
7036
|
+
provideGoogleFont(googleFont);
|
|
7037
|
+
el.style.setProperty(getToken('font-family', tokenPrefix), googleFont);
|
|
7038
|
+
}
|
|
7039
|
+
if (typeof fontFamily === 'string') {
|
|
7040
|
+
el.style.setProperty(getToken('font-family', tokenPrefix), fontFamily);
|
|
7041
|
+
}
|
|
7042
|
+
if (typeof spacingBase === 'number') {
|
|
7043
|
+
provideSpacing(el, spacingBase, tokenPrefix);
|
|
7044
|
+
}
|
|
7045
|
+
if (typeof borderWidth === 'string') {
|
|
7046
|
+
provideBorderWidth(el, borderWidth, tokenPrefix);
|
|
7047
|
+
}
|
|
7048
|
+
if (typeof borderRadius === 'string') {
|
|
7049
|
+
provideBorderRadius(el, borderRadius, tokenPrefix);
|
|
7050
|
+
}
|
|
7051
|
+
if (typeof theme === 'string') {
|
|
7052
|
+
const colors = THEMES[theme];
|
|
7053
|
+
if (colors != null)
|
|
7054
|
+
provideColors(el, colors, tokenPrefix);
|
|
7055
|
+
}
|
|
7056
|
+
if (typeof colors === 'object') {
|
|
7057
|
+
provideColors(el, colors, tokenPrefix);
|
|
7058
|
+
}
|
|
7059
|
+
};
|
|
7060
|
+
|
|
6806
7061
|
/**
|
|
6807
7062
|
* This method returns the first argument it receives.
|
|
6808
7063
|
*
|
|
@@ -7393,253 +7648,6 @@ const getSize = (width) => {
|
|
|
7393
7648
|
return 'sm';
|
|
7394
7649
|
};
|
|
7395
7650
|
|
|
7396
|
-
const spacingScale = [
|
|
7397
|
-
0,
|
|
7398
|
-
0.5,
|
|
7399
|
-
1,
|
|
7400
|
-
1.5,
|
|
7401
|
-
2,
|
|
7402
|
-
3,
|
|
7403
|
-
4,
|
|
7404
|
-
5,
|
|
7405
|
-
6,
|
|
7406
|
-
7,
|
|
7407
|
-
8,
|
|
7408
|
-
9,
|
|
7409
|
-
10,
|
|
7410
|
-
12,
|
|
7411
|
-
14,
|
|
7412
|
-
16,
|
|
7413
|
-
20,
|
|
7414
|
-
24,
|
|
7415
|
-
28,
|
|
7416
|
-
32,
|
|
7417
|
-
36,
|
|
7418
|
-
40,
|
|
7419
|
-
44,
|
|
7420
|
-
48,
|
|
7421
|
-
52,
|
|
7422
|
-
56,
|
|
7423
|
-
60,
|
|
7424
|
-
64,
|
|
7425
|
-
72,
|
|
7426
|
-
80,
|
|
7427
|
-
96
|
|
7428
|
-
];
|
|
7429
|
-
|
|
7430
|
-
const THEMES = {
|
|
7431
|
-
darkest: {
|
|
7432
|
-
background: {
|
|
7433
|
-
1000: '#080808',
|
|
7434
|
-
900: '#1A1A1A',
|
|
7435
|
-
800: '#1E1E1E',
|
|
7436
|
-
700: '#2C2C2C',
|
|
7437
|
-
600: '#393939',
|
|
7438
|
-
},
|
|
7439
|
-
text: '#FFFFFF',
|
|
7440
|
-
},
|
|
7441
|
-
dark: {
|
|
7442
|
-
background: {
|
|
7443
|
-
1000: '#252525',
|
|
7444
|
-
900: '#2F2F2F',
|
|
7445
|
-
800: '#323232',
|
|
7446
|
-
700: '#3E3E3E',
|
|
7447
|
-
600: '#4A4A4A',
|
|
7448
|
-
},
|
|
7449
|
-
text: '#F5F5F5',
|
|
7450
|
-
'video-bg': '#1C1C1C',
|
|
7451
|
-
},
|
|
7452
|
-
light: {
|
|
7453
|
-
background: {
|
|
7454
|
-
1000: '#FFFFFF',
|
|
7455
|
-
900: '#F5F5F5',
|
|
7456
|
-
800: '#EBEBEB',
|
|
7457
|
-
700: '#E0E0E0',
|
|
7458
|
-
600: '#D6D6D6',
|
|
7459
|
-
},
|
|
7460
|
-
text: '#111111',
|
|
7461
|
-
'text-on-brand': '#ffffff',
|
|
7462
|
-
'video-bg': '#DADADA',
|
|
7463
|
-
},
|
|
7464
|
-
};
|
|
7465
|
-
|
|
7466
|
-
const BORDER_WIDTHS = {
|
|
7467
|
-
none: {
|
|
7468
|
-
none: 0,
|
|
7469
|
-
sm: 0,
|
|
7470
|
-
md: 0,
|
|
7471
|
-
lg: 0,
|
|
7472
|
-
},
|
|
7473
|
-
thin: {
|
|
7474
|
-
none: 0,
|
|
7475
|
-
sm: 1,
|
|
7476
|
-
md: 2,
|
|
7477
|
-
lg: 4,
|
|
7478
|
-
},
|
|
7479
|
-
fat: {
|
|
7480
|
-
none: 0,
|
|
7481
|
-
sm: 2,
|
|
7482
|
-
md: 4,
|
|
7483
|
-
lg: 8,
|
|
7484
|
-
},
|
|
7485
|
-
};
|
|
7486
|
-
const BORDER_RADII = {
|
|
7487
|
-
sharp: {
|
|
7488
|
-
none: 0,
|
|
7489
|
-
sm: 0,
|
|
7490
|
-
md: 0,
|
|
7491
|
-
lg: 0,
|
|
7492
|
-
},
|
|
7493
|
-
rounded: {
|
|
7494
|
-
none: 0,
|
|
7495
|
-
sm: 4,
|
|
7496
|
-
md: 8,
|
|
7497
|
-
lg: 12,
|
|
7498
|
-
},
|
|
7499
|
-
'extra-rounded': {
|
|
7500
|
-
none: 0,
|
|
7501
|
-
sm: 8,
|
|
7502
|
-
md: 16,
|
|
7503
|
-
lg: 24,
|
|
7504
|
-
},
|
|
7505
|
-
circular: {
|
|
7506
|
-
none: 9999,
|
|
7507
|
-
sm: 9999,
|
|
7508
|
-
md: 9999,
|
|
7509
|
-
lg: 9999,
|
|
7510
|
-
},
|
|
7511
|
-
};
|
|
7512
|
-
|
|
7513
|
-
function hexToRGB(h) {
|
|
7514
|
-
h = h.trim();
|
|
7515
|
-
let r = '0', g = '0', b = '0';
|
|
7516
|
-
if (h.length == 4) {
|
|
7517
|
-
r = '0x' + h[1] + h[1];
|
|
7518
|
-
g = '0x' + h[2] + h[2];
|
|
7519
|
-
b = '0x' + h[3] + h[3];
|
|
7520
|
-
}
|
|
7521
|
-
else if (h.length > 6) {
|
|
7522
|
-
r = '0x' + h[1] + h[2];
|
|
7523
|
-
g = '0x' + h[3] + h[4];
|
|
7524
|
-
b = '0x' + h[5] + h[6];
|
|
7525
|
-
}
|
|
7526
|
-
return [+r, +g, +b];
|
|
7527
|
-
}
|
|
7528
|
-
const isValidHexColor = (color) => {
|
|
7529
|
-
return typeof color === 'string' && color.length === 7 && color.startsWith('#');
|
|
7530
|
-
};
|
|
7531
|
-
|
|
7532
|
-
const DEFAULT_CSS_TOKEN_PREFIX = '--rtk-';
|
|
7533
|
-
function getToken(token, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) {
|
|
7534
|
-
return tokenPrefix + token;
|
|
7535
|
-
}
|
|
7536
|
-
const provideGoogleFont = (fontFamily) => {
|
|
7537
|
-
const weights = [400, 500, 700];
|
|
7538
|
-
const links = [];
|
|
7539
|
-
if (document.querySelector('link[data-rtk-font]') == null) {
|
|
7540
|
-
/**
|
|
7541
|
-
* Adds the following preconnect link tags for faster google font loading
|
|
7542
|
-
* <link rel="preconnect" href="https://fonts.googleapis.com">
|
|
7543
|
-
* <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
7544
|
-
*/
|
|
7545
|
-
const p1 = document.createElement('link');
|
|
7546
|
-
p1.rel = 'preconnect';
|
|
7547
|
-
p1.setAttribute('data-rtk-font', 'true');
|
|
7548
|
-
p1.href = 'https://fonts.googleapis.com';
|
|
7549
|
-
const p2 = p1.cloneNode(true);
|
|
7550
|
-
p2.href = 'https://fonts.gstatic.com';
|
|
7551
|
-
p2.crossOrigin = '';
|
|
7552
|
-
links.push(p1, p2);
|
|
7553
|
-
}
|
|
7554
|
-
const link = document.createElement('link');
|
|
7555
|
-
link.rel = 'stylesheet';
|
|
7556
|
-
link.setAttribute('data-rtk-font', fontFamily);
|
|
7557
|
-
link.href = encodeURI(`https://fonts.googleapis.com/css2?family=${fontFamily}:wght@${weights.join(';')}&display=swap`);
|
|
7558
|
-
links.push(link);
|
|
7559
|
-
document.head.append(...links);
|
|
7560
|
-
};
|
|
7561
|
-
const provideSpacing = (el, spacingBase, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
7562
|
-
spacingScale.forEach((space) => {
|
|
7563
|
-
el.style.setProperty(getToken(`space-${space}`, tokenPrefix), `${space * spacingBase}px`);
|
|
7564
|
-
});
|
|
7565
|
-
};
|
|
7566
|
-
const provideBorderWidth = (el, borderWidth, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
7567
|
-
if (borderWidth in BORDER_WIDTHS) {
|
|
7568
|
-
const widths = BORDER_WIDTHS[borderWidth];
|
|
7569
|
-
Object.keys(widths).forEach((type) => {
|
|
7570
|
-
el.style.setProperty(getToken(`border-width-${type}`, tokenPrefix), `${widths[type]}px`);
|
|
7571
|
-
});
|
|
7572
|
-
}
|
|
7573
|
-
};
|
|
7574
|
-
const provideBorderRadius = (el, borderRadius, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
7575
|
-
if (borderRadius in BORDER_RADII) {
|
|
7576
|
-
const radii = BORDER_RADII[borderRadius];
|
|
7577
|
-
Object.keys(radii).forEach((type) => {
|
|
7578
|
-
el.style.setProperty(getToken(`border-radius-${type}`, tokenPrefix), `${radii[type]}px`);
|
|
7579
|
-
});
|
|
7580
|
-
}
|
|
7581
|
-
};
|
|
7582
|
-
const provideColors = (el, colors, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
7583
|
-
Object.keys(colors).forEach((color) => {
|
|
7584
|
-
const colorValue = colors[color];
|
|
7585
|
-
if (typeof colorValue === 'string') {
|
|
7586
|
-
if (color === 'text' || color === 'text-on-brand') {
|
|
7587
|
-
const rgb = hexToRGB(colorValue).join(' ');
|
|
7588
|
-
el.style.setProperty(getToken(`colors-${color}-1000`, tokenPrefix), `${rgb}`);
|
|
7589
|
-
el.style.setProperty(getToken(`colors-${color}-900`, tokenPrefix), `${rgb} / 0.88`);
|
|
7590
|
-
el.style.setProperty(getToken(`colors-${color}-800`, tokenPrefix), `${rgb} / 0.76`);
|
|
7591
|
-
el.style.setProperty(getToken(`colors-${color}-700`, tokenPrefix), `${rgb} / 0.64`);
|
|
7592
|
-
el.style.setProperty(getToken(`colors-${color}-600`, tokenPrefix), `${rgb} / 0.52`);
|
|
7593
|
-
}
|
|
7594
|
-
else {
|
|
7595
|
-
const rgb = hexToRGB(colorValue).join(' ');
|
|
7596
|
-
el.style.setProperty(getToken(`colors-${color}`, tokenPrefix), rgb);
|
|
7597
|
-
}
|
|
7598
|
-
}
|
|
7599
|
-
else if (typeof colorValue === 'object') {
|
|
7600
|
-
Object.keys(colorValue).forEach((shade) => {
|
|
7601
|
-
const shadeValue = colorValue[shade];
|
|
7602
|
-
const rgb = hexToRGB(shadeValue).join(' ');
|
|
7603
|
-
el.style.setProperty(getToken(`colors-${color}-${shade}`, tokenPrefix), rgb);
|
|
7604
|
-
});
|
|
7605
|
-
}
|
|
7606
|
-
});
|
|
7607
|
-
};
|
|
7608
|
-
/**
|
|
7609
|
-
* Provides the design system new tokens to consume values from for styling the RealtimeKit UI components.
|
|
7610
|
-
* @param el The element/node you want to _provide_ RTK Design system.
|
|
7611
|
-
* @param tokens The design tokens you want to updated.
|
|
7612
|
-
*/
|
|
7613
|
-
const provideRtkDesignSystem = (el, { spacingBase, borderRadius, borderWidth, colors, fontFamily, googleFont, theme, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX, }) => {
|
|
7614
|
-
if (typeof el !== 'object') {
|
|
7615
|
-
throw new Error('[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element');
|
|
7616
|
-
}
|
|
7617
|
-
if (typeof googleFont === 'string') {
|
|
7618
|
-
provideGoogleFont(googleFont);
|
|
7619
|
-
el.style.setProperty(getToken('font-family', tokenPrefix), googleFont);
|
|
7620
|
-
}
|
|
7621
|
-
if (typeof fontFamily === 'string') {
|
|
7622
|
-
el.style.setProperty(getToken('font-family', tokenPrefix), fontFamily);
|
|
7623
|
-
}
|
|
7624
|
-
if (typeof spacingBase === 'number') {
|
|
7625
|
-
provideSpacing(el, spacingBase, tokenPrefix);
|
|
7626
|
-
}
|
|
7627
|
-
if (typeof borderWidth === 'string') {
|
|
7628
|
-
provideBorderWidth(el, borderWidth, tokenPrefix);
|
|
7629
|
-
}
|
|
7630
|
-
if (typeof borderRadius === 'string') {
|
|
7631
|
-
provideBorderRadius(el, borderRadius, tokenPrefix);
|
|
7632
|
-
}
|
|
7633
|
-
if (typeof theme === 'string') {
|
|
7634
|
-
const colors = THEMES[theme];
|
|
7635
|
-
if (colors != null)
|
|
7636
|
-
provideColors(el, colors, tokenPrefix);
|
|
7637
|
-
}
|
|
7638
|
-
if (typeof colors === 'object') {
|
|
7639
|
-
provideColors(el, colors, tokenPrefix);
|
|
7640
|
-
}
|
|
7641
|
-
};
|
|
7642
|
-
|
|
7643
7651
|
/**
|
|
7644
7652
|
* Extend the default UI Config with your own
|
|
7645
7653
|
* @param config Your extended UI Config
|
|
@@ -24638,6 +24646,11 @@ const RtkUiProvider = class {
|
|
|
24638
24646
|
if (this.peerStore) {
|
|
24639
24647
|
this.peerStore.state.config = config;
|
|
24640
24648
|
}
|
|
24649
|
+
if ((config === null || config === void 0 ? void 0 : config.designTokens) &&
|
|
24650
|
+
typeof document !== 'undefined' &&
|
|
24651
|
+
(this.peerStore || uiStore).state.states.activeDebugger !== true) {
|
|
24652
|
+
provideRtkDesignSystem(document.documentElement, config.designTokens);
|
|
24653
|
+
}
|
|
24641
24654
|
}
|
|
24642
24655
|
onSizeChange(newSize) {
|
|
24643
24656
|
if (this.peerStore) {
|