@cloudflare/realtimekit-ui 2.0.1 → 2.0.2-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/ChatHead-DzH-mYX1.js +11 -0
- package/dist/cjs/{TextMessage-492778db.js → TextMessage-5iqcrDk9.js} +9 -11
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
- package/dist/cjs/breakout-rooms-46jWgGiL.js +72 -0
- package/dist/cjs/breakout-rooms-manager-Bgk5FEK1.js +303 -0
- package/dist/cjs/{chat-4f5c28ca.js → chat-CiRLOYTj.js} +1 -1
- package/dist/cjs/{config-705c8f2c.js → config-Dr-kt-RY.js} +6 -5
- package/dist/cjs/debounce-BgZ6dvDk.js +659 -0
- package/dist/cjs/{debounce-7fa6354d.js → debounce-padcVDRF.js} +4 -6
- package/dist/cjs/{file-0b9afa34.js → file-BfaJmhHW.js} +1 -1
- package/dist/cjs/{floating-ui.dom.esm-9d940028.js → floating-ui.dom-D8vZii24.js} +3 -310
- package/dist/cjs/hark-qJk9qiLr.js +322 -0
- package/dist/cjs/{index-4366eb3b.js → index-BOQMsbCN.js} +2 -2
- package/dist/cjs/{index-2e5758b6.js → index-Bi2L8zQ7.js} +1202 -555
- package/dist/cjs/{index-6f8c1928.js → index-Ck9E7Wf2.js} +22 -31
- package/dist/cjs/index.cjs.js +14 -13
- package/dist/cjs/{init-error-70ccf3b6.js → init-error-BC4ECjPk.js} +10 -2
- package/dist/cjs/livestream-B1z1fq_f.js +78 -0
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/{merge-79537b1d.js → merge-CSoi4R44.js} +136 -17
- package/dist/cjs/{notification-8f4db150.js → notification-BM6CUHyL.js} +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +7 -7
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +15 -14
- package/dist/cjs/rtk-ai_3.cjs.entry.js +19 -17
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +12 -10
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +13 -10
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +26 -23
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +124 -125
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +33 -27
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +38 -41
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +11 -11
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +20 -15
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +11 -9
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +9 -9
- package/dist/cjs/rtk-chat-message.cjs.entry.js +8 -8
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +16 -12
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +8 -8
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +9 -9
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-clock.cjs.entry.js +11 -10
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +5 -8
- package/dist/cjs/rtk-controlbar.cjs.entry.js +9 -9
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +42 -48
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +5 -8
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +9 -10
- package/dist/cjs/rtk-dialog.cjs.entry.js +5 -8
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +11 -9
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +8 -8
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +11 -14
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +6 -9
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +17 -15
- package/dist/cjs/rtk-grid.cjs.entry.js +28 -19
- package/dist/cjs/rtk-header.cjs.entry.js +9 -9
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +14 -10
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +7 -10
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/rtk-leave-button.cjs.entry.js +5 -8
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +41 -52
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +10 -10
- package/dist/cjs/rtk-logo.cjs.entry.js +14 -10
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +5 -8
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +12 -10
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +16 -13
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -8
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +11 -9
- package/dist/cjs/rtk-name-tag.cjs.entry.js +9 -10
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +11 -9
- package/dist/cjs/rtk-notification.cjs.entry.js +13 -12
- package/dist/cjs/rtk-notifications.cjs.entry.js +22 -16
- package/dist/cjs/rtk-participant-count.cjs.entry.js +11 -11
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +14 -10
- package/dist/cjs/rtk-participant_2.cjs.entry.js +29 -28
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +11 -11
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +33 -24
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-participants.cjs.entry.js +15 -11
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +11 -9
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +11 -13
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-poll_2.cjs.entry.js +8 -12
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +16 -12
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +8 -9
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +8 -9
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +9 -10
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +10 -12
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +5 -8
- package/dist/cjs/rtk-settings.cjs.entry.js +8 -9
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +11 -12
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +11 -9
- package/dist/cjs/rtk-sidebar.cjs.entry.js +17 -13
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +11 -12
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +7 -10
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +8 -9
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +11 -9
- package/dist/cjs/rtk-stage.cjs.entry.js +5 -8
- package/dist/cjs/rtk-transcript.cjs.entry.js +8 -9
- package/dist/cjs/rtk-transcripts.cjs.entry.js +14 -10
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +32 -20
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +8 -8
- package/dist/cjs/{sidebar-3d8abb05.js → sidebar-CaEYxWaS.js} +2 -2
- package/dist/cjs/{ui-store-b1ac9e83.js → ui-store-CTof0Q5V.js} +100 -813
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/rtk-ai/rtk-ai.js +16 -10
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +18 -11
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +9 -5
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +16 -10
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +18 -11
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +15 -11
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +15 -10
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +18 -13
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +7 -4
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +19 -12
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +12 -7
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +11 -6
- package/dist/collection/components/rtk-button/rtk-button.js +9 -8
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +12 -8
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +16 -10
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +20 -12
- package/dist/collection/components/rtk-chat/rtk-chat.js +19 -11
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -11
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +16 -14
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +34 -26
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +20 -14
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +24 -14
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +11 -8
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +20 -12
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +10 -8
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +18 -11
- package/dist/collection/components/rtk-clock/rtk-clock.js +8 -5
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +11 -6
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +17 -11
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +16 -14
- package/dist/collection/components/rtk-counter/rtk-counter.js +12 -9
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +15 -9
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +13 -8
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +13 -8
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +13 -8
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +18 -11
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +13 -8
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +18 -12
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +17 -10
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +5 -3
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +6 -4
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +7 -5
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +15 -9
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +5 -3
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +9 -6
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +8 -7
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +13 -10
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +16 -10
- package/dist/collection/components/rtk-grid/rtk-grid.js +22 -15
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +14 -9
- package/dist/collection/components/rtk-header/rtk-header.js +17 -11
- package/dist/collection/components/rtk-icon/rtk-icon.js +6 -5
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +11 -6
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +11 -7
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +7 -5
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +11 -7
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +17 -10
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +14 -9
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +11 -6
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +11 -7
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +11 -7
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +16 -10
- package/dist/collection/components/rtk-logo/rtk-logo.js +9 -6
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +4 -4
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +31 -21
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +7 -4
- package/dist/collection/components/rtk-menu/rtk-menu.js +13 -9
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +10 -7
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +6 -4
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +5 -4
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +19 -17
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +16 -10
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +12 -8
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +31 -19
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +13 -8
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +16 -10
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +11 -6
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +16 -11
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +11 -7
- package/dist/collection/components/rtk-notification/rtk-notification.js +13 -9
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +15 -9
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +11 -6
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +14 -11
- package/dist/collection/components/rtk-participant/rtk-participant.js +15 -9
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +11 -7
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +19 -13
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +26 -17
- package/dist/collection/components/rtk-participants/rtk-participants.js +18 -11
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +7 -4
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +20 -13
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +16 -10
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +18 -11
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +18 -12
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +16 -10
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +11 -6
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +9 -5
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +20 -12
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +10 -6
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +15 -9
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +18 -11
- package/dist/collection/components/rtk-poll/rtk-poll.js +12 -8
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +7 -4
- package/dist/collection/components/rtk-polls/rtk-polls.js +13 -8
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +18 -11
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +11 -7
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +15 -10
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +18 -11
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +21 -14
- package/dist/collection/components/rtk-settings/rtk-settings.js +15 -9
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +15 -9
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +16 -10
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +15 -9
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +17 -10
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +23 -14
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +9 -8
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +19 -12
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +14 -9
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +5 -3
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +27 -17
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +11 -7
- package/dist/collection/components/rtk-stage/rtk-stage.js +7 -4
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +18 -11
- package/dist/collection/components/rtk-switch/rtk-switch.js +8 -6
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +18 -11
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +13 -11
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +9 -6
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +3 -3
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +13 -11
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +5 -3
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +9 -5
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +22 -13
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +8 -5
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +6 -4
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +9 -5
- package/dist/collection/utils/init-error.js +10 -2
- package/dist/collection/utils/livestream.js +1 -1
- package/dist/collection/utils/sync-with-store/ui-store.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -247
- package/dist/components/p-1sLF61J1.js +1 -0
- package/dist/components/p-7zlNLqpS.js +1 -0
- package/dist/components/p-B-k80wnP.js +1 -0
- package/dist/components/p-B1SWgSTZ.js +1 -0
- package/dist/components/p-B1wrArJr.js +1 -0
- package/dist/components/p-B4TnXODX.js +1 -0
- package/dist/components/p-B5-LNbkp.js +1 -0
- package/dist/components/p-B9MPybze.js +1 -0
- package/dist/components/p-BA_UY9k8.js +1 -0
- package/dist/components/p-BBHQOrFK.js +2 -0
- package/dist/{realtimekit-ui/p-598b792e.js → components/p-BCuMxcZN.js} +1 -1
- package/dist/components/p-BEOq_QN5.js +1 -0
- package/dist/components/p-BFTU3MAI.js +1 -0
- package/dist/components/p-BJKSFJeB.js +1 -0
- package/dist/components/p-BOYkqKBb.js +1 -0
- package/dist/components/p-BRbb3tLk.js +1 -0
- package/dist/components/p-BWNToYSb.js +1 -0
- package/dist/components/p-BYIBbfJ8.js +1 -0
- package/dist/components/p-BbJzI1u1.js +1 -0
- package/dist/components/p-BcCYogfR.js +1 -0
- package/dist/components/p-Bf4LuZWa.js +1 -0
- package/dist/{realtimekit-ui/p-1e62d63b.js → components/p-Bj1kNPpe.js} +1 -1
- package/dist/components/p-BjF9F_tX.js +1 -0
- package/dist/components/p-BoGbJ5PX.js +1 -0
- package/dist/components/p-BuZhKlht.js +1 -0
- package/dist/{realtimekit-ui/p-fa9759f4.js → components/p-Bx38FZhs.js} +1 -1
- package/dist/components/p-C-OVY3ug.js +1 -0
- package/dist/components/p-C0H4DNJM.js +1 -0
- package/dist/components/p-C0vp-Q7v.js +1 -0
- package/dist/components/p-C3Z3GLQh.js +1 -0
- package/dist/components/p-C4IJ0f9O.js +1 -0
- package/dist/components/p-C9EBo56b.js +1 -0
- package/dist/components/p-CABfszIM.js +1 -0
- package/dist/components/p-CB5hzEOM.js +1 -0
- package/dist/components/p-CBJjerDR.js +1 -0
- package/dist/components/p-CBLUz_2s.js +1 -0
- package/dist/components/p-CJsXePY3.js +1 -0
- package/dist/components/p-CKX6X8es.js +1 -0
- package/dist/components/p-COEreDeR.js +1 -0
- package/dist/components/p-COZSdc5O.js +1 -0
- package/dist/components/p-CQAMoQlr.js +1 -0
- package/dist/components/p-Cd-WpR0J.js +1 -0
- package/dist/components/p-CdV0xzjB.js +1 -0
- package/dist/components/p-Ce-9kgl0.js +1 -0
- package/dist/components/p-ChuKD7QS.js +1 -0
- package/dist/components/p-Cj44pA_c.js +1 -0
- package/dist/components/p-Cmu_4ZYL.js +1 -0
- package/dist/components/p-CnJQLwM-.js +1 -0
- package/dist/components/p-CpOL3OJd.js +1 -0
- package/dist/components/p-CphAED3J.js +1 -0
- package/dist/components/p-CqEcYX16.js +1 -0
- package/dist/components/p-CrExxJHe.js +1 -0
- package/dist/components/p-D0bZYAmS.js +1 -0
- package/dist/components/p-D1zAGrQ9.js +1 -0
- package/dist/components/p-D6vw6bT2.js +1 -0
- package/dist/{realtimekit-ui/p-6befaf17.js → components/p-D9HGXWKc.js} +1 -1
- package/dist/components/p-DBjcFAtV.js +1 -0
- package/dist/components/p-DCEjf6bL.js +1 -0
- package/dist/components/p-DD3_OTZn.js +1 -0
- package/dist/{realtimekit-ui/p-40be18ee.js → components/p-DDaHXyCC.js} +1 -1
- package/dist/components/p-DE1s0fDa.js +1 -0
- package/dist/components/p-DEOaS443.js +1 -0
- package/dist/components/p-DHSRRtn3.js +1 -0
- package/dist/components/p-DKjr_UXt.js +1 -0
- package/dist/components/p-DLocSBO3.js +1 -0
- package/dist/components/p-DNkzP2hS.js +1 -0
- package/dist/components/p-DP4RUNa1.js +1 -0
- package/dist/components/p-DU5mNJqK.js +1 -0
- package/dist/components/p-DY8ll5IU.js +1 -0
- package/dist/components/p-DZC8m5f_.js +1 -0
- package/dist/components/p-Daj_55_i.js +1 -0
- package/dist/components/p-DbHOlaHU.js +1 -0
- package/dist/components/p-De8YQHVd.js +1 -0
- package/dist/components/p-Deo_3EhX.js +1 -0
- package/dist/components/p-Df2S0-LE.js +1 -0
- package/dist/components/p-DfWuSKCq.js +1 -0
- package/dist/components/p-Dguuxuf6.js +1 -0
- package/dist/components/p-Dkd2PDJ-.js +1 -0
- package/dist/components/p-DlKMnwxL.js +1 -0
- package/dist/components/p-DmVA5ArE.js +1 -0
- package/dist/components/p-DnQYtb0h.js +1 -0
- package/dist/components/p-DuOnRaMu.js +1 -0
- package/dist/components/p-DxDYE5-a.js +1 -0
- package/dist/components/p-EuNHmu13.js +1 -0
- package/dist/components/p-FVFlyS1y.js +1 -0
- package/dist/components/p-FdeAvICb.js +1 -0
- package/dist/components/p-J1kxEVHe.js +1 -0
- package/dist/components/p-JyC3dswA.js +1 -0
- package/dist/components/p-KpmupjxR.js +1 -0
- package/dist/components/p-L9yK33Cu.js +1 -0
- package/dist/components/p-PXVZ-Szx.js +1 -0
- package/dist/components/p-ViKGg-Ct.js +1 -0
- package/dist/components/p-aS2wpIc0.js +1 -0
- package/dist/components/p-ak2clYhw.js +1 -0
- package/dist/components/p-e-OVL-Mg.js +1 -0
- package/dist/components/p-j2J2Tn1F.js +1 -0
- package/dist/components/p-oXrlIvqH.js +1 -0
- package/dist/components/p-pb5wDMuJ.js +1 -0
- package/dist/components/p-s-jAl7lc.js +1 -0
- package/dist/components/p-sSs7a3Ms.js +1 -0
- package/dist/components/p-t72veIFj.js +1 -0
- package/dist/components/p-uOh9MOi7.js +1 -0
- package/dist/components/p-wemYeTS7.js +1 -0
- package/dist/components/p-wl6GEzgG.js +1 -0
- package/dist/components/p-zBoy9v8V.js +1 -0
- package/dist/components/rtk-ai-toggle.js +1 -122
- package/dist/components/rtk-ai-transcriptions.js +1 -6
- package/dist/components/rtk-ai.js +1 -6
- package/dist/components/rtk-audio-grid.js +1 -145
- package/dist/components/rtk-audio-tile.js +1 -184
- package/dist/components/rtk-audio-visualizer.js +1 -6
- package/dist/components/rtk-avatar.js +1 -6
- package/dist/components/rtk-breakout-room-manager.js +1 -6
- package/dist/components/rtk-breakout-room-participants.js +1 -6
- package/dist/components/rtk-breakout-rooms-manager.js +1 -6
- package/dist/components/rtk-breakout-rooms-toggle.js +1 -128
- package/dist/components/rtk-broadcast-message-modal.js +1 -6
- package/dist/components/rtk-button.js +1 -6
- package/dist/components/rtk-camera-selector.js +1 -6
- package/dist/components/rtk-camera-toggle.js +1 -236
- package/dist/components/rtk-caption-toggle.js +1 -131
- package/dist/components/rtk-chat-composer-ui.js +1 -363
- package/dist/components/rtk-chat-composer-view.js +1 -6
- package/dist/components/rtk-chat-header.js +1 -6
- package/dist/components/rtk-chat-message.js +1 -6
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -6
- package/dist/components/rtk-chat-messages-ui.js +1 -313
- package/dist/components/rtk-chat-search-results.js +1 -147
- package/dist/components/rtk-chat-selector-ui.js +1 -108
- package/dist/components/rtk-chat-selector.js +1 -6
- package/dist/components/rtk-chat-toggle.js +1 -181
- package/dist/components/rtk-chat.js +1 -6
- package/dist/components/rtk-clock.js +1 -128
- package/dist/components/rtk-confirmation-modal.js +1 -6
- package/dist/components/rtk-controlbar-button.js +1 -6
- package/dist/components/rtk-controlbar.js +1 -91
- package/dist/components/rtk-counter.js +1 -6
- package/dist/components/rtk-debugger-audio.js +1 -6
- package/dist/components/rtk-debugger-screenshare.js +1 -6
- package/dist/components/rtk-debugger-system.js +1 -6
- package/dist/components/rtk-debugger-toggle.js +1 -98
- package/dist/components/rtk-debugger-video.js +1 -6
- package/dist/components/rtk-debugger.js +1 -6
- package/dist/components/rtk-dialog-manager.js +1 -310
- package/dist/components/rtk-dialog.js +1 -6
- package/dist/components/rtk-draft-attachment-view.js +1 -6
- package/dist/components/rtk-emoji-picker-button.js +1 -6
- package/dist/components/rtk-emoji-picker.js +1 -6
- package/dist/components/rtk-ended-screen.js +1 -150
- package/dist/components/rtk-file-dropzone.js +1 -87
- package/dist/components/rtk-file-message-view.js +1 -6
- package/dist/components/rtk-file-message.js +1 -6
- package/dist/components/rtk-file-picker-button.js +1 -6
- package/dist/components/rtk-fullscreen-toggle.js +1 -6
- package/dist/components/rtk-grid-pagination.js +1 -206
- package/dist/components/rtk-grid.js +1 -468
- package/dist/components/rtk-header.js +1 -91
- package/dist/components/rtk-icon.js +1 -6
- package/dist/components/rtk-idle-screen.js +1 -139
- package/dist/components/rtk-image-message-view.js +1 -6
- package/dist/components/rtk-image-message.js +1 -6
- package/dist/components/rtk-image-viewer.js +1 -91
- package/dist/components/rtk-information-tooltip.js +1 -61
- package/dist/components/rtk-join-stage.js +1 -6
- package/dist/components/rtk-leave-button.js +1 -87
- package/dist/components/rtk-leave-meeting.js +1 -6
- package/dist/components/rtk-livestream-indicator.js +1 -6
- package/dist/components/rtk-livestream-player.js +1 -6
- package/dist/components/rtk-livestream-toggle.js +1 -181
- package/dist/components/rtk-logo.js +1 -6
- package/dist/components/rtk-markdown-view.js +1 -6
- package/dist/components/rtk-meeting-title.js +1 -74
- package/dist/components/rtk-meeting.js +1 -533
- package/dist/components/rtk-menu-item.js +1 -6
- package/dist/components/rtk-menu-list.js +1 -6
- package/dist/components/rtk-menu.js +1 -6
- package/dist/components/rtk-message-list-view.js +1 -324
- package/dist/components/rtk-message-view.js +1 -6
- package/dist/components/rtk-mic-toggle.js +1 -234
- package/dist/components/rtk-microphone-selector.js +1 -6
- package/dist/components/rtk-mixed-grid.js +1 -300
- package/dist/components/rtk-more-toggle.js +1 -112
- package/dist/components/rtk-mute-all-button.js +1 -127
- package/dist/components/rtk-mute-all-confirmation.js +1 -6
- package/dist/components/rtk-name-tag.js +1 -6
- package/dist/components/rtk-network-indicator.js +1 -117
- package/dist/components/rtk-notification.js +1 -6
- package/dist/components/rtk-notifications.js +1 -637
- package/dist/components/rtk-overlay-modal.js +1 -6
- package/dist/components/rtk-paginated-list.js +1 -6
- package/dist/components/rtk-participant-count.js +1 -118
- package/dist/components/rtk-participant-setup.js +1 -149
- package/dist/components/rtk-participant-tile.js +1 -6
- package/dist/components/rtk-participant.js +1 -6
- package/dist/components/rtk-participants-audio.js +1 -249
- package/dist/components/rtk-participants-stage-list.js +1 -6
- package/dist/components/rtk-participants-stage-queue.js +1 -6
- package/dist/components/rtk-participants-toggle.js +1 -195
- package/dist/components/rtk-participants-viewer-list.js +1 -6
- package/dist/components/rtk-participants-waiting-list.js +1 -6
- package/dist/components/rtk-participants.js +1 -306
- package/dist/components/rtk-permissions-message.js +1 -6
- package/dist/components/rtk-pinned-message-selector.js +1 -6
- package/dist/components/rtk-pip-toggle.js +1 -135
- package/dist/components/rtk-plugin-main.js +1 -6
- package/dist/components/rtk-plugins-toggle.js +1 -148
- package/dist/components/rtk-plugins.js +1 -6
- package/dist/components/rtk-poll-form.js +1 -6
- package/dist/components/rtk-poll.js +1 -6
- package/dist/components/rtk-polls-toggle.js +1 -160
- package/dist/components/rtk-polls.js +1 -6
- package/dist/components/rtk-recording-indicator.js +1 -96
- package/dist/components/rtk-recording-toggle.js +1 -203
- package/dist/components/rtk-screen-share-toggle.js +1 -317
- package/dist/components/rtk-screenshare-view.js +1 -194
- package/dist/components/rtk-settings-audio.js +1 -6
- package/dist/components/rtk-settings-toggle.js +1 -93
- package/dist/components/rtk-settings-video.js +1 -6
- package/dist/components/rtk-settings.js +1 -208
- package/dist/components/rtk-setup-screen.js +1 -215
- package/dist/components/rtk-sidebar-ui.js +1 -6
- package/dist/components/rtk-sidebar.js +1 -253
- package/dist/components/rtk-simple-grid.js +1 -149
- package/dist/components/rtk-speaker-selector.js +1 -6
- package/dist/components/rtk-spinner.js +1 -6
- package/dist/components/rtk-spotlight-grid.js +1 -135
- package/dist/components/rtk-spotlight-indicator.js +1 -6
- package/dist/components/rtk-stage-toggle.js +1 -195
- package/dist/components/rtk-stage.js +1 -61
- package/dist/components/rtk-switch.js +1 -6
- package/dist/components/rtk-tab-bar.js +1 -6
- package/dist/components/rtk-text-composer-view.js +1 -6
- package/dist/components/rtk-text-message-view.js +1 -6
- package/dist/components/rtk-text-message.js +1 -6
- package/dist/components/rtk-tooltip.js +1 -6
- package/dist/components/rtk-transcript.js +1 -6
- package/dist/components/rtk-transcripts.js +1 -199
- package/dist/components/rtk-ui-provider.js +1 -281
- package/dist/components/rtk-viewer-count.js +1 -6
- package/dist/components/rtk-virtualized-participant-list.js +1 -6
- package/dist/components/rtk-waiting-screen.js +1 -77
- package/dist/docs/docs-components.d.ts +37 -0
- package/dist/docs/docs-components.json +5693 -3069
- package/dist/docs/docs-vscode.json +78 -78
- package/dist/esm/ChatHead-BV_pLIJ6.js +9 -0
- package/dist/{components/p-1a950769.js → esm/TextMessage-DRvjfMBy.js} +9 -11
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
- package/dist/esm/breakout-rooms-Daj_55_i.js +64 -0
- package/dist/esm/breakout-rooms-manager-B1Qky9zO.js +301 -0
- package/dist/esm/{chat-1107a64f.js → chat-Zou036qQ.js} +1 -1
- package/dist/{components/p-9f0c9162.js → esm/config-BYcrCEso.js} +5 -4
- package/dist/esm/debounce-BLQbB67V.js +657 -0
- package/dist/{components/p-1dca17d1.js → esm/debounce-BYqYBLuN.js} +4 -6
- package/dist/{components/p-47314bc7.js → esm/file-6Fkktc2w.js} +1 -1
- package/dist/esm/{floating-ui.dom.esm-78a1e61c.js → floating-ui.dom-B1SWgSTZ.js} +3 -310
- package/dist/esm/hark-Dwnntwzh.js +320 -0
- package/dist/{components/p-bd10fae6.js → esm/index-7w76SzJW.js} +2 -2
- package/dist/{components/p-88bd1053.js → esm/index-BUsisVB6.js} +22 -31
- package/dist/esm/{index-55463a54.js → index-gJCRRBX0.js} +1198 -549
- package/dist/esm/index.js +13 -10
- package/dist/esm/{init-error-ff5ead9a.js → init-error-DE1s0fDa.js} +10 -2
- package/dist/esm/livestream-C0vp-Q7v.js +73 -0
- package/dist/esm/loader.js +3630 -2785
- package/dist/{components/p-556de366.js → esm/merge-CiWMx7_3.js} +133 -15
- package/dist/{components/p-598b792e.js → esm/notification-DcR6dHfn.js} +1 -1
- package/dist/esm/realtimekit-ui.js +6 -5
- package/dist/esm/rtk-ai-toggle.entry.js +8 -7
- package/dist/esm/rtk-ai-transcriptions.entry.js +15 -12
- package/dist/esm/rtk-ai_3.entry.js +19 -15
- package/dist/esm/rtk-audio-grid.entry.js +12 -8
- package/dist/esm/rtk-audio-tile.entry.js +13 -8
- package/dist/esm/rtk-audio-visualizer_4.entry.js +26 -21
- package/dist/esm/rtk-avatar_26.entry.js +120 -119
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +25 -17
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +33 -34
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +9 -7
- package/dist/esm/rtk-camera-selector_2.entry.js +20 -13
- package/dist/esm/rtk-camera-toggle.entry.js +8 -7
- package/dist/esm/rtk-caption-toggle.entry.js +11 -7
- package/dist/esm/rtk-chat-composer-ui.entry.js +9 -7
- package/dist/esm/rtk-chat-message.entry.js +8 -6
- package/dist/esm/rtk-chat-messages-ui.entry.js +16 -10
- package/dist/esm/rtk-chat-search-results.entry.js +8 -6
- package/dist/esm/rtk-chat-selector-ui.entry.js +9 -7
- package/dist/esm/rtk-chat-toggle.entry.js +16 -10
- package/dist/esm/rtk-clock.entry.js +11 -8
- package/dist/esm/rtk-controlbar-button.entry.js +5 -6
- package/dist/esm/rtk-controlbar.entry.js +9 -7
- package/dist/esm/rtk-debugger-audio_4.entry.js +42 -46
- package/dist/esm/rtk-debugger-toggle.entry.js +5 -6
- package/dist/esm/rtk-dialog-manager.entry.js +9 -8
- package/dist/esm/rtk-dialog.entry.js +5 -6
- package/dist/esm/rtk-ended-screen.entry.js +11 -7
- package/dist/esm/rtk-file-dropzone.entry.js +8 -6
- package/dist/esm/rtk-file-message_3.entry.js +11 -12
- package/dist/esm/rtk-fullscreen-toggle.entry.js +6 -7
- package/dist/esm/rtk-grid-pagination.entry.js +17 -13
- package/dist/esm/rtk-grid.entry.js +27 -16
- package/dist/esm/rtk-header.entry.js +9 -7
- package/dist/esm/rtk-idle-screen.entry.js +14 -8
- package/dist/esm/rtk-image-viewer.entry.js +7 -8
- package/dist/esm/rtk-information-tooltip.entry.js +8 -6
- package/dist/esm/rtk-leave-button.entry.js +5 -6
- package/dist/esm/rtk-livestream-indicator_3.entry.js +26 -35
- package/dist/esm/rtk-livestream-toggle.entry.js +9 -7
- package/dist/esm/rtk-logo.entry.js +14 -8
- package/dist/esm/rtk-meeting-title.entry.js +5 -6
- package/dist/esm/rtk-message-list-view.entry.js +12 -8
- package/dist/esm/rtk-mic-toggle.entry.js +8 -7
- package/dist/esm/rtk-mixed-grid.entry.js +16 -11
- package/dist/esm/rtk-more-toggle.entry.js +5 -6
- package/dist/esm/rtk-mute-all-button.entry.js +11 -7
- package/dist/esm/rtk-name-tag.entry.js +9 -8
- package/dist/esm/rtk-network-indicator.entry.js +11 -7
- package/dist/esm/rtk-notification.entry.js +13 -10
- package/dist/esm/rtk-notifications.entry.js +21 -13
- package/dist/esm/rtk-participant-count.entry.js +9 -7
- package/dist/esm/rtk-participant-setup.entry.js +14 -8
- package/dist/esm/rtk-participant_2.entry.js +24 -21
- package/dist/esm/rtk-participants-audio.entry.js +10 -8
- package/dist/esm/rtk-participants-stage-list_4.entry.js +33 -22
- package/dist/esm/rtk-participants-toggle.entry.js +16 -10
- package/dist/esm/rtk-participants.entry.js +15 -9
- package/dist/esm/rtk-pip-toggle.entry.js +11 -7
- package/dist/esm/rtk-plugin-main_2.entry.js +11 -11
- package/dist/esm/rtk-plugins-toggle.entry.js +16 -10
- package/dist/esm/rtk-poll_2.entry.js +8 -10
- package/dist/esm/rtk-polls-toggle.entry.js +16 -10
- package/dist/esm/rtk-recording-indicator.entry.js +8 -7
- package/dist/esm/rtk-recording-toggle.entry.js +8 -7
- package/dist/esm/rtk-screen-share-toggle.entry.js +8 -7
- package/dist/esm/rtk-screenshare-view.entry.js +9 -8
- package/dist/esm/rtk-settings-audio_2.entry.js +10 -10
- package/dist/esm/rtk-settings-toggle.entry.js +5 -6
- package/dist/esm/rtk-settings.entry.js +8 -7
- package/dist/esm/rtk-setup-screen.entry.js +11 -10
- package/dist/esm/rtk-sidebar-ui.entry.js +11 -7
- package/dist/esm/rtk-sidebar.entry.js +17 -11
- package/dist/esm/rtk-simple-grid.entry.js +11 -10
- package/dist/esm/rtk-spotlight-grid.entry.js +7 -8
- package/dist/esm/rtk-spotlight-indicator.entry.js +8 -7
- package/dist/esm/rtk-stage-toggle.entry.js +11 -7
- package/dist/esm/rtk-stage.entry.js +5 -6
- package/dist/esm/rtk-transcript.entry.js +8 -7
- package/dist/esm/rtk-transcripts.entry.js +14 -8
- package/dist/esm/rtk-ui-provider.entry.js +32 -18
- package/dist/esm/rtk-waiting-screen.entry.js +8 -6
- package/dist/{components/p-a3fc952e.js → esm/sidebar-B3trLKC3.js} +1 -1
- package/dist/{components/p-d5a12339.js → esm/ui-store-BtrgoOOT.js} +258 -762
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/p-04237239.entry.js +1 -0
- package/dist/realtimekit-ui/p-070294a1.entry.js +1 -0
- package/dist/realtimekit-ui/p-0d5719ea.entry.js +1 -0
- package/dist/realtimekit-ui/p-0fe1ced3.entry.js +1 -0
- package/dist/realtimekit-ui/p-105e4115.entry.js +1 -0
- package/dist/realtimekit-ui/{p-30fa04e9.entry.js → p-117f34c2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-069cc080.entry.js → p-149c0b9c.entry.js} +1 -1
- package/dist/realtimekit-ui/p-15d96f62.entry.js +1 -0
- package/dist/realtimekit-ui/p-16fe4fca.entry.js +1 -0
- package/dist/realtimekit-ui/p-17690ef8.entry.js +1 -0
- package/dist/realtimekit-ui/p-1ae8c9ea.entry.js +1 -0
- package/dist/realtimekit-ui/p-1f114cc0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d93b1e9c.entry.js → p-213b9942.entry.js} +1 -1
- package/dist/realtimekit-ui/p-243e3c22.entry.js +1 -0
- package/dist/realtimekit-ui/p-25374ae7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-71a44776.entry.js → p-26ba0489.entry.js} +1 -1
- package/dist/realtimekit-ui/p-27dcaef7.entry.js +1 -0
- package/dist/realtimekit-ui/p-2906e52d.entry.js +1 -0
- package/dist/realtimekit-ui/{p-58b2f1a1.entry.js → p-2baa2443.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2bd8f726.entry.js +1 -0
- package/dist/realtimekit-ui/p-2c5a9a4d.entry.js +1 -0
- package/dist/realtimekit-ui/p-2f438543.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b5f0c31d.entry.js → p-34ebceb7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-3df3b56b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-03db9946.entry.js → p-3f297e22.entry.js} +1 -1
- package/dist/realtimekit-ui/p-405addc8.entry.js +1 -0
- package/dist/realtimekit-ui/p-450803e1.entry.js +1 -0
- package/dist/realtimekit-ui/p-49f22238.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4b9450d3.entry.js → p-49feda1f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4c1b7ee2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-234a709e.entry.js → p-4f264d60.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64b59d46.entry.js → p-560dcff9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-56261662.entry.js +1 -0
- package/dist/realtimekit-ui/p-5a1918a1.entry.js +1 -0
- package/dist/realtimekit-ui/p-5bd05c88.entry.js +1 -0
- package/dist/realtimekit-ui/p-5c5ca185.entry.js +1 -0
- package/dist/realtimekit-ui/p-6092b383.entry.js +1 -0
- package/dist/realtimekit-ui/p-650339c3.entry.js +1 -0
- package/dist/realtimekit-ui/p-65c856c3.entry.js +1 -0
- package/dist/realtimekit-ui/p-69ddb3a9.entry.js +1 -0
- package/dist/realtimekit-ui/p-6bc7af7a.entry.js +1 -0
- package/dist/realtimekit-ui/p-73bd1b57.entry.js +1 -0
- package/dist/realtimekit-ui/p-768c3c20.entry.js +1 -0
- package/dist/realtimekit-ui/p-779bd93e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-72461b1f.entry.js → p-7d4e36b0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1b26c15d.entry.js → p-7ff08b19.entry.js} +1 -1
- package/dist/realtimekit-ui/p-836455f1.entry.js +1 -0
- package/dist/realtimekit-ui/p-8dcf542b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-91795fd7.entry.js → p-9810aada.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9b089f06.entry.js +1 -0
- package/dist/realtimekit-ui/p-9b93c273.entry.js +1 -0
- package/dist/realtimekit-ui/p-9c5cf5a3.entry.js +1 -0
- package/dist/realtimekit-ui/p-9cb3685c.entry.js +1 -0
- package/dist/realtimekit-ui/p-B1SWgSTZ.js +1 -0
- package/dist/realtimekit-ui/{p-7e3c2d64.js → p-BCaKYPpD.js} +1 -1
- package/dist/realtimekit-ui/p-BCuMxcZN.js +1 -0
- package/dist/realtimekit-ui/p-BFTU3MAI.js +1 -0
- package/dist/realtimekit-ui/p-BIplIdLH.js +1 -0
- package/dist/realtimekit-ui/p-BJvHNbaa.js +1 -0
- package/dist/realtimekit-ui/p-BSWYrdZA.js +1 -0
- package/dist/realtimekit-ui/p-BWNToYSb.js +1 -0
- package/dist/realtimekit-ui/p-Bbls2zyp.js +1 -0
- package/dist/realtimekit-ui/p-C0vp-Q7v.js +1 -0
- package/dist/realtimekit-ui/p-C5Ah4uY5.js +1 -0
- package/dist/realtimekit-ui/p-CAqYddlg.js +1 -0
- package/dist/realtimekit-ui/{p-eccb6d78.js → p-CTFO-5XH.js} +1 -1
- package/dist/realtimekit-ui/p-CmmyVCoN.js +1 -0
- package/dist/realtimekit-ui/p-CqWk07gT.js +1 -0
- package/dist/realtimekit-ui/p-D9HGXWKc.js +1 -0
- package/dist/realtimekit-ui/p-DE1s0fDa.js +1 -0
- package/dist/realtimekit-ui/p-Daj_55_i.js +1 -0
- package/dist/realtimekit-ui/p-Dg4b2aZr.js +1 -0
- package/dist/realtimekit-ui/p-DpAk_WQ6.js +1 -0
- package/dist/realtimekit-ui/p-DxDYE5-a.js +1 -0
- package/dist/realtimekit-ui/p-FdeAvICb.js +1 -0
- package/dist/realtimekit-ui/p-GSFejkz7.js +1 -0
- package/dist/realtimekit-ui/{p-3306b122.entry.js → p-a060fa07.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e0426f17.entry.js → p-a8b77530.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ae94a77b.entry.js +1 -0
- package/dist/realtimekit-ui/p-b77aab62.entry.js +1 -0
- package/dist/realtimekit-ui/p-b81bfd1b.entry.js +1 -0
- package/dist/realtimekit-ui/p-bb7b542e.entry.js +1 -0
- package/dist/realtimekit-ui/p-c0fb33e4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-88a01a0c.entry.js → p-c25c6602.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c90deeae.entry.js +1 -0
- package/dist/realtimekit-ui/p-ce4105e5.entry.js +1 -0
- package/dist/realtimekit-ui/p-d0baf267.entry.js +1 -0
- package/dist/realtimekit-ui/p-d39bd2e9.entry.js +1 -0
- package/dist/realtimekit-ui/p-d5ccf7d6.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b89873a4.entry.js → p-d75ea8a3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-db957a5c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d4a2594a.entry.js → p-ddd3808d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e0837ae7.entry.js +1 -0
- package/dist/realtimekit-ui/p-e12de42e.entry.js +1 -0
- package/dist/realtimekit-ui/p-e2f9a4fc.entry.js +1 -0
- package/dist/realtimekit-ui/{p-20390946.entry.js → p-e5293ed6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e87aa0f9.entry.js +1 -0
- package/dist/realtimekit-ui/p-e8823daa.entry.js +1 -0
- package/dist/realtimekit-ui/p-f101d6f9.entry.js +1 -0
- package/dist/realtimekit-ui/p-f4c228c8.entry.js +1 -0
- package/dist/realtimekit-ui/p-f5688e34.entry.js +1 -0
- package/dist/realtimekit-ui/p-fb973221.entry.js +1 -0
- package/dist/realtimekit-ui/p-fcde019e.entry.js +1 -0
- package/dist/realtimekit-ui/p-fd29249a.entry.js +1 -0
- package/dist/realtimekit-ui/p-gJCRRBX0.js +2 -0
- package/dist/realtimekit-ui/p-jvwnrxra.js +1 -0
- package/dist/realtimekit-ui/p-t72veIFj.js +1 -0
- package/dist/realtimekit-ui/p-uIA60Puf.js +1 -0
- package/dist/realtimekit-ui/p-vBfDtD_u.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -1
- package/dist/types/components.d.ts +1752 -255
- package/dist/types/stencil-public-runtime.d.ts +193 -12
- package/dist/types/utils/init-error.d.ts +6 -2
- package/dist/types/utils/livestream.d.ts +60 -0
- package/dist/types/utils/sync-with-store/ui-store.d.ts +1 -1
- package/package.json +2 -3
- package/dist/cjs/ChatHead-777e6a2d.js +0 -13
- package/dist/cjs/debounce-6080cc73.js +0 -544
- package/dist/cjs/hark-c97d0a59.js +0 -301
- package/dist/components/p-00568bea.js +0 -159
- package/dist/components/p-026049ee.js +0 -81
- package/dist/components/p-03e354cd.js +0 -82
- package/dist/components/p-04ac37d4.js +0 -69
- package/dist/components/p-0529c72c.js +0 -218
- package/dist/components/p-084f7d6c.js +0 -95
- package/dist/components/p-08e39399.js +0 -199
- package/dist/components/p-0db812c2.js +0 -189
- package/dist/components/p-0e02697c.js +0 -85
- package/dist/components/p-1a7dd46a.js +0 -390
- package/dist/components/p-1cb276df.js +0 -104
- package/dist/components/p-240d48d1.js +0 -96
- package/dist/components/p-278a613b.js +0 -115
- package/dist/components/p-29e60132.js +0 -437
- package/dist/components/p-2f2b07a1.js +0 -168
- package/dist/components/p-303a7f1f.js +0 -122
- package/dist/components/p-32b95100.js +0 -128
- package/dist/components/p-32f14b1a.js +0 -260
- package/dist/components/p-36ad7fe2.js +0 -98
- package/dist/components/p-38d22d57.js +0 -11
- package/dist/components/p-3ae130f7.js +0 -178
- package/dist/components/p-3e0452c4.js +0 -48
- package/dist/components/p-3eedb9db.js +0 -68
- package/dist/components/p-3f882e7c.js +0 -299
- package/dist/components/p-42c2e598.js +0 -103
- package/dist/components/p-4351785c.js +0 -103
- package/dist/components/p-467abb0c.js +0 -159
- package/dist/components/p-48b6fb95.js +0 -327
- package/dist/components/p-4e02ee0f.js +0 -131
- package/dist/components/p-51b6f520.js +0 -43
- package/dist/components/p-549ab58f.js +0 -108
- package/dist/components/p-5654365f.js +0 -94
- package/dist/components/p-592cd396.js +0 -105
- package/dist/components/p-5995471c.js +0 -125
- package/dist/components/p-5c55e43b.js +0 -115
- package/dist/components/p-5d3174d1.js +0 -127
- package/dist/components/p-632cbbe7.js +0 -164
- package/dist/components/p-695e5dc5.js +0 -223
- package/dist/components/p-6a0a1a25.js +0 -101
- package/dist/components/p-6bd3b29c.js +0 -97
- package/dist/components/p-6c6cefb0.js +0 -224
- package/dist/components/p-70c0c7ce.js +0 -179
- package/dist/components/p-78db5933.js +0 -92
- package/dist/components/p-7d8d9693.js +0 -119
- package/dist/components/p-8133c228.js +0 -79
- package/dist/components/p-82df4307.js +0 -114
- package/dist/components/p-84deab1d.js +0 -126
- package/dist/components/p-85587a5c.js +0 -50
- package/dist/components/p-92ac782c.js +0 -37205
- package/dist/components/p-95721bd2.js +0 -159
- package/dist/components/p-96be6716.js +0 -120
- package/dist/components/p-9c89d7b1.js +0 -131
- package/dist/components/p-9f5d24b0.js +0 -191
- package/dist/components/p-a0a863fa.js +0 -61
- package/dist/components/p-a3c85ced.js +0 -177
- package/dist/components/p-a6cf88b5.js +0 -146
- package/dist/components/p-a83ccdbd.js +0 -40
- package/dist/components/p-a9d577bb.js +0 -271
- package/dist/components/p-ab37c121.js +0 -181
- package/dist/components/p-ae373651.js +0 -4028
- package/dist/components/p-b1a93be0.js +0 -1945
- package/dist/components/p-b1a9a7c4.js +0 -214
- package/dist/components/p-b1aeb013.js +0 -113
- package/dist/components/p-b29d03cf.js +0 -77
- package/dist/components/p-b4068392.js +0 -60
- package/dist/components/p-b75297d7.js +0 -299
- package/dist/components/p-b98fd0eb.js +0 -102
- package/dist/components/p-bece0226.js +0 -141
- package/dist/components/p-bf64e0af.js +0 -76
- package/dist/components/p-c3c8f309.js +0 -127
- package/dist/components/p-c82e13b1.js +0 -92
- package/dist/components/p-c9f704c4.js +0 -349
- package/dist/components/p-cbdd7a99.js +0 -542
- package/dist/components/p-cedfbbd4.js +0 -105
- package/dist/components/p-cf1903b1.js +0 -60
- package/dist/components/p-cfa0b5c7.js +0 -26
- package/dist/components/p-d411c80b.js +0 -463
- package/dist/components/p-d48b4170.js +0 -159
- package/dist/components/p-d83124b1.js +0 -86
- package/dist/components/p-de0b23a0.js +0 -210
- package/dist/components/p-e0129657.js +0 -201
- package/dist/components/p-e8809896.js +0 -147
- package/dist/components/p-ea359bb7.js +0 -90
- package/dist/components/p-ea4aa3bf.js +0 -86
- package/dist/components/p-ed0fad6d.js +0 -166
- package/dist/components/p-efabd2ce.js +0 -58
- package/dist/components/p-f179a6ff.js +0 -80
- package/dist/components/p-f867ebba.js +0 -122
- package/dist/components/p-f9cbb223.js +0 -127
- package/dist/components/p-f9f08610.js +0 -157
- package/dist/esm/ChatHead-148558a8.js +0 -11
- package/dist/esm/ResizeObserver.es-02979d4e.js +0 -928
- package/dist/esm/TextMessage-0ab2db20.js +0 -67
- package/dist/esm/browser-24d8ab3e.js +0 -3
- package/dist/esm/config-f3f01b9a.js +0 -352
- package/dist/esm/date-b1f78dea.js +0 -32
- package/dist/esm/debounce-0169a54d.js +0 -542
- package/dist/esm/debounce-430cbf00.js +0 -329
- package/dist/esm/file-6114f1a9.js +0 -57
- package/dist/esm/full-screen-d36ffc68.js +0 -50
- package/dist/esm/grid-a3ca5a3e.js +0 -96
- package/dist/esm/hark-6327d91e.js +0 -299
- package/dist/esm/index-3f51790f.js +0 -224
- package/dist/esm/index-b81ca899.js +0 -92
- package/dist/esm/join-error-e87be64a.js +0 -29
- package/dist/esm/merge-201ecd5c.js +0 -820
- package/dist/esm/notification-1ebf7700.js +0 -37
- package/dist/esm/scroll-2d8e810c.js +0 -13
- package/dist/esm/sidebar-a13dc215.js +0 -49
- package/dist/esm/ui-store-1bc7abc6.js +0 -4033
- package/dist/realtimekit-ui/p-012cd22a.entry.js +0 -1
- package/dist/realtimekit-ui/p-026e8157.entry.js +0 -1
- package/dist/realtimekit-ui/p-083e53cc.entry.js +0 -1
- package/dist/realtimekit-ui/p-0bd95245.entry.js +0 -1
- package/dist/realtimekit-ui/p-1e19ef2c.entry.js +0 -1
- package/dist/realtimekit-ui/p-217dcd9f.entry.js +0 -1
- package/dist/realtimekit-ui/p-26ffb189.entry.js +0 -1
- package/dist/realtimekit-ui/p-3540d2b0.entry.js +0 -1
- package/dist/realtimekit-ui/p-3707f1e0.entry.js +0 -1
- package/dist/realtimekit-ui/p-39c48b22.entry.js +0 -1
- package/dist/realtimekit-ui/p-3f882e7c.js +0 -1
- package/dist/realtimekit-ui/p-41fa7b4f.js +0 -1
- package/dist/realtimekit-ui/p-44fb5d40.entry.js +0 -1
- package/dist/realtimekit-ui/p-4564c9ff.entry.js +0 -1
- package/dist/realtimekit-ui/p-4ec77793.js +0 -1
- package/dist/realtimekit-ui/p-548f72ee.entry.js +0 -1
- package/dist/realtimekit-ui/p-5564adad.entry.js +0 -1
- package/dist/realtimekit-ui/p-5623d82e.entry.js +0 -1
- package/dist/realtimekit-ui/p-5862bcba.entry.js +0 -1
- package/dist/realtimekit-ui/p-62c4d1ba.entry.js +0 -1
- package/dist/realtimekit-ui/p-667c84b1.js +0 -1
- package/dist/realtimekit-ui/p-6b177ee6.entry.js +0 -1
- package/dist/realtimekit-ui/p-6c9a2464.entry.js +0 -1
- package/dist/realtimekit-ui/p-7649168e.entry.js +0 -1
- package/dist/realtimekit-ui/p-76f87172.entry.js +0 -1
- package/dist/realtimekit-ui/p-79060698.entry.js +0 -1
- package/dist/realtimekit-ui/p-7bdd688b.entry.js +0 -1
- package/dist/realtimekit-ui/p-7e4a3510.entry.js +0 -1
- package/dist/realtimekit-ui/p-80be0156.entry.js +0 -1
- package/dist/realtimekit-ui/p-85818728.entry.js +0 -1
- package/dist/realtimekit-ui/p-873a645c.entry.js +0 -1
- package/dist/realtimekit-ui/p-8c971978.entry.js +0 -1
- package/dist/realtimekit-ui/p-8cc4f116.entry.js +0 -1
- package/dist/realtimekit-ui/p-8edfe6fa.entry.js +0 -1
- package/dist/realtimekit-ui/p-8fa0ea33.entry.js +0 -1
- package/dist/realtimekit-ui/p-91c8f9d1.entry.js +0 -1
- package/dist/realtimekit-ui/p-93f88675.entry.js +0 -1
- package/dist/realtimekit-ui/p-9727a165.js +0 -1
- package/dist/realtimekit-ui/p-a0471508.entry.js +0 -1
- package/dist/realtimekit-ui/p-a056fd35.entry.js +0 -1
- package/dist/realtimekit-ui/p-a2693bee.entry.js +0 -1
- package/dist/realtimekit-ui/p-a47c017b.entry.js +0 -1
- package/dist/realtimekit-ui/p-a599f720.js +0 -2
- package/dist/realtimekit-ui/p-a9ab826e.entry.js +0 -1
- package/dist/realtimekit-ui/p-ae0bb894.js +0 -1
- package/dist/realtimekit-ui/p-b1a93be0.js +0 -1
- package/dist/realtimekit-ui/p-b27886ff.entry.js +0 -1
- package/dist/realtimekit-ui/p-b3f1ad3b.entry.js +0 -1
- package/dist/realtimekit-ui/p-b86e3e01.entry.js +0 -1
- package/dist/realtimekit-ui/p-bde05d24.entry.js +0 -1
- package/dist/realtimekit-ui/p-c57e0778.entry.js +0 -1
- package/dist/realtimekit-ui/p-c6a8ef1e.entry.js +0 -1
- package/dist/realtimekit-ui/p-c8bc3bb1.entry.js +0 -1
- package/dist/realtimekit-ui/p-c8f7b427.entry.js +0 -1
- package/dist/realtimekit-ui/p-c9d62ba7.entry.js +0 -1
- package/dist/realtimekit-ui/p-cbdd7a99.js +0 -1
- package/dist/realtimekit-ui/p-cfa0b5c7.js +0 -1
- package/dist/realtimekit-ui/p-d0959773.entry.js +0 -1
- package/dist/realtimekit-ui/p-d59e0ecc.entry.js +0 -1
- package/dist/realtimekit-ui/p-d790f2be.entry.js +0 -1
- package/dist/realtimekit-ui/p-d7fd359f.entry.js +0 -1
- package/dist/realtimekit-ui/p-daf01d45.entry.js +0 -1
- package/dist/realtimekit-ui/p-db2a6aed.entry.js +0 -1
- package/dist/realtimekit-ui/p-de170ad4.entry.js +0 -1
- package/dist/realtimekit-ui/p-de31f5b0.entry.js +0 -1
- package/dist/realtimekit-ui/p-deaae495.entry.js +0 -1
- package/dist/realtimekit-ui/p-e59cc7d0.entry.js +0 -1
- package/dist/realtimekit-ui/p-ea03b1a0.entry.js +0 -1
- package/dist/realtimekit-ui/p-ede50497.entry.js +0 -1
- package/dist/realtimekit-ui/p-f47d4fe8.js +0 -1
- package/dist/realtimekit-ui/p-f52fdfb4.entry.js +0 -1
- package/dist/realtimekit-ui/p-fd80c28e.entry.js +0 -1
- package/dist/realtimekit-ui/p-ff971eea.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{ResizeObserver.es-ba961f16.js → ResizeObserver.es-26EdCpEA.js} +0 -0
- /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
- /package/dist/cjs/{browser-5538db4d.js → browser-qKzDfwbO.js} +0 -0
- /package/dist/cjs/{date-61ffcd0a.js → date-CObAPgSZ.js} +0 -0
- /package/dist/cjs/{full-screen-b02d13dd.js → full-screen-BRlJJI9n.js} +0 -0
- /package/dist/cjs/{grid-edc342a7.js → grid-D_7WOWNI.js} +0 -0
- /package/dist/cjs/{join-error-c1eed98e.js → join-error-CZSJQxsP.js} +0 -0
- /package/dist/cjs/{scroll-c6404609.js → scroll-uQ4eWvC-.js} +0 -0
- /package/dist/cjs/{string-9bce3253.js → string-C1A6N-tA.js} +0 -0
- /package/dist/{realtimekit-ui/p-0752f2ba.js → components/p-BIplIdLH.js} +0 -0
- /package/dist/{realtimekit-ui/p-05186172.js → components/p-CAqYddlg.js} +0 -0
- /package/dist/{realtimekit-ui/p-b13ddb7d.js → components/p-CmmyVCoN.js} +0 -0
- /package/dist/{realtimekit-ui/p-3974d97a.js → components/p-GSFejkz7.js} +0 -0
- /package/dist/{realtimekit-ui/p-382270d8.js → components/p-jvwnrxra.js} +0 -0
- /package/dist/{realtimekit-ui/p-f7c2daba.js → components/p-vBfDtD_u.js} +0 -0
- /package/dist/{components/p-f47d4fe8.js → esm/ResizeObserver.es-FdeAvICb.js} +0 -0
- /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
- /package/dist/{components/p-05186172.js → esm/browser-CAqYddlg.js} +0 -0
- /package/dist/{components/p-382270d8.js → esm/date-jvwnrxra.js} +0 -0
- /package/dist/{components/p-3974d97a.js → esm/full-screen-GSFejkz7.js} +0 -0
- /package/dist/{components/p-b13ddb7d.js → esm/grid-CmmyVCoN.js} +0 -0
- /package/dist/{components/p-f7c2daba.js → esm/join-error-vBfDtD_u.js} +0 -0
- /package/dist/{components/p-0752f2ba.js → esm/scroll-BIplIdLH.js} +0 -0
- /package/dist/esm/{string-068ce30a.js → string-vBD2htwQ.js} +0 -0
- /package/dist/realtimekit-ui/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
- /package/dist/realtimekit-ui/{p-6f211c3e.js → p-vBD2htwQ.js} +0 -0
|
@@ -1,820 +0,0 @@
|
|
|
1
|
-
import { j as defineProperty, k as isObject, l as isArrayLike, m as isIndex, n as eq, o as isObjectLike, p as baseGetTag, q as getPrototype, r as baseAssignValue, s as copyObject, t as keysIn, v as isArray, w as isBuffer, x as isTypedArray, y as copyArray, z as cloneBuffer, A as cloneTypedArray, C as isArguments, D as isFunction, E as initCloneObject, S as Stack } from './ui-store-1bc7abc6.js';
|
|
2
|
-
|
|
3
|
-
const spacingScale = [
|
|
4
|
-
0,
|
|
5
|
-
0.5,
|
|
6
|
-
1,
|
|
7
|
-
1.5,
|
|
8
|
-
2,
|
|
9
|
-
3,
|
|
10
|
-
4,
|
|
11
|
-
5,
|
|
12
|
-
6,
|
|
13
|
-
7,
|
|
14
|
-
8,
|
|
15
|
-
9,
|
|
16
|
-
10,
|
|
17
|
-
12,
|
|
18
|
-
14,
|
|
19
|
-
16,
|
|
20
|
-
20,
|
|
21
|
-
24,
|
|
22
|
-
28,
|
|
23
|
-
32,
|
|
24
|
-
36,
|
|
25
|
-
40,
|
|
26
|
-
44,
|
|
27
|
-
48,
|
|
28
|
-
52,
|
|
29
|
-
56,
|
|
30
|
-
60,
|
|
31
|
-
64,
|
|
32
|
-
72,
|
|
33
|
-
80,
|
|
34
|
-
96
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
const THEMES = {
|
|
38
|
-
darkest: {
|
|
39
|
-
background: {
|
|
40
|
-
1000: '#080808',
|
|
41
|
-
900: '#1A1A1A',
|
|
42
|
-
800: '#1E1E1E',
|
|
43
|
-
700: '#2C2C2C',
|
|
44
|
-
600: '#393939',
|
|
45
|
-
},
|
|
46
|
-
text: '#FFFFFF',
|
|
47
|
-
},
|
|
48
|
-
dark: {
|
|
49
|
-
background: {
|
|
50
|
-
1000: '#252525',
|
|
51
|
-
900: '#2F2F2F',
|
|
52
|
-
800: '#323232',
|
|
53
|
-
700: '#3E3E3E',
|
|
54
|
-
600: '#4A4A4A',
|
|
55
|
-
},
|
|
56
|
-
text: '#F5F5F5',
|
|
57
|
-
'video-bg': '#1C1C1C',
|
|
58
|
-
},
|
|
59
|
-
light: {
|
|
60
|
-
background: {
|
|
61
|
-
1000: '#FFFFFF',
|
|
62
|
-
900: '#F5F5F5',
|
|
63
|
-
800: '#EBEBEB',
|
|
64
|
-
700: '#E0E0E0',
|
|
65
|
-
600: '#D6D6D6',
|
|
66
|
-
},
|
|
67
|
-
text: '#111111',
|
|
68
|
-
'text-on-brand': '#ffffff',
|
|
69
|
-
'video-bg': '#DADADA',
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const BORDER_WIDTHS = {
|
|
74
|
-
none: {
|
|
75
|
-
none: 0,
|
|
76
|
-
sm: 0,
|
|
77
|
-
md: 0,
|
|
78
|
-
lg: 0,
|
|
79
|
-
},
|
|
80
|
-
thin: {
|
|
81
|
-
none: 0,
|
|
82
|
-
sm: 1,
|
|
83
|
-
md: 2,
|
|
84
|
-
lg: 4,
|
|
85
|
-
},
|
|
86
|
-
fat: {
|
|
87
|
-
none: 0,
|
|
88
|
-
sm: 2,
|
|
89
|
-
md: 4,
|
|
90
|
-
lg: 8,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
const BORDER_RADII = {
|
|
94
|
-
sharp: {
|
|
95
|
-
none: 0,
|
|
96
|
-
sm: 0,
|
|
97
|
-
md: 0,
|
|
98
|
-
lg: 0,
|
|
99
|
-
},
|
|
100
|
-
rounded: {
|
|
101
|
-
none: 0,
|
|
102
|
-
sm: 4,
|
|
103
|
-
md: 8,
|
|
104
|
-
lg: 12,
|
|
105
|
-
},
|
|
106
|
-
'extra-rounded': {
|
|
107
|
-
none: 0,
|
|
108
|
-
sm: 8,
|
|
109
|
-
md: 16,
|
|
110
|
-
lg: 24,
|
|
111
|
-
},
|
|
112
|
-
circular: {
|
|
113
|
-
none: 9999,
|
|
114
|
-
sm: 9999,
|
|
115
|
-
md: 9999,
|
|
116
|
-
lg: 9999,
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
function hexToRGB(h) {
|
|
121
|
-
h = h.trim();
|
|
122
|
-
let r = '0', g = '0', b = '0';
|
|
123
|
-
if (h.length == 4) {
|
|
124
|
-
r = '0x' + h[1] + h[1];
|
|
125
|
-
g = '0x' + h[2] + h[2];
|
|
126
|
-
b = '0x' + h[3] + h[3];
|
|
127
|
-
}
|
|
128
|
-
else if (h.length > 6) {
|
|
129
|
-
r = '0x' + h[1] + h[2];
|
|
130
|
-
g = '0x' + h[3] + h[4];
|
|
131
|
-
b = '0x' + h[5] + h[6];
|
|
132
|
-
}
|
|
133
|
-
return [+r, +g, +b];
|
|
134
|
-
}
|
|
135
|
-
const isValidHexColor = (color) => {
|
|
136
|
-
return typeof color === 'string' && color.length === 7 && color.startsWith('#');
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const DEFAULT_CSS_TOKEN_PREFIX = '--rtk-';
|
|
140
|
-
function getToken(token, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) {
|
|
141
|
-
return tokenPrefix + token;
|
|
142
|
-
}
|
|
143
|
-
const provideGoogleFont = (fontFamily) => {
|
|
144
|
-
const weights = [400, 500, 700];
|
|
145
|
-
const links = [];
|
|
146
|
-
if (document.querySelector('link[data-rtk-font]') == null) {
|
|
147
|
-
/**
|
|
148
|
-
* Adds the following preconnect link tags for faster google font loading
|
|
149
|
-
* <link rel="preconnect" href="https://fonts.googleapis.com">
|
|
150
|
-
* <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
151
|
-
*/
|
|
152
|
-
const p1 = document.createElement('link');
|
|
153
|
-
p1.rel = 'preconnect';
|
|
154
|
-
p1.setAttribute('data-rtk-font', 'true');
|
|
155
|
-
p1.href = 'https://fonts.googleapis.com';
|
|
156
|
-
const p2 = p1.cloneNode(true);
|
|
157
|
-
p2.href = 'https://fonts.gstatic.com';
|
|
158
|
-
p2.crossOrigin = '';
|
|
159
|
-
links.push(p1, p2);
|
|
160
|
-
}
|
|
161
|
-
const link = document.createElement('link');
|
|
162
|
-
link.rel = 'stylesheet';
|
|
163
|
-
link.setAttribute('data-rtk-font', fontFamily);
|
|
164
|
-
link.href = encodeURI(`https://fonts.googleapis.com/css2?family=${fontFamily}:wght@${weights.join(';')}&display=swap`);
|
|
165
|
-
links.push(link);
|
|
166
|
-
document.head.append(...links);
|
|
167
|
-
};
|
|
168
|
-
const provideSpacing = (el, spacingBase, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
169
|
-
spacingScale.forEach((space) => {
|
|
170
|
-
el.style.setProperty(getToken(`space-${space}`, tokenPrefix), `${space * spacingBase}px`);
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
const provideBorderWidth = (el, borderWidth, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
174
|
-
if (borderWidth in BORDER_WIDTHS) {
|
|
175
|
-
const widths = BORDER_WIDTHS[borderWidth];
|
|
176
|
-
Object.keys(widths).forEach((type) => {
|
|
177
|
-
el.style.setProperty(getToken(`border-width-${type}`, tokenPrefix), `${widths[type]}px`);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
const provideBorderRadius = (el, borderRadius, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
182
|
-
if (borderRadius in BORDER_RADII) {
|
|
183
|
-
const radii = BORDER_RADII[borderRadius];
|
|
184
|
-
Object.keys(radii).forEach((type) => {
|
|
185
|
-
el.style.setProperty(getToken(`border-radius-${type}`, tokenPrefix), `${radii[type]}px`);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
const provideColors = (el, colors, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX) => {
|
|
190
|
-
Object.keys(colors).forEach((color) => {
|
|
191
|
-
const colorValue = colors[color];
|
|
192
|
-
if (typeof colorValue === 'string') {
|
|
193
|
-
if (color === 'text' || color === 'text-on-brand') {
|
|
194
|
-
const rgb = hexToRGB(colorValue).join(' ');
|
|
195
|
-
el.style.setProperty(getToken(`colors-${color}-1000`, tokenPrefix), `${rgb}`);
|
|
196
|
-
el.style.setProperty(getToken(`colors-${color}-900`, tokenPrefix), `${rgb} / 0.88`);
|
|
197
|
-
el.style.setProperty(getToken(`colors-${color}-800`, tokenPrefix), `${rgb} / 0.76`);
|
|
198
|
-
el.style.setProperty(getToken(`colors-${color}-700`, tokenPrefix), `${rgb} / 0.64`);
|
|
199
|
-
el.style.setProperty(getToken(`colors-${color}-600`, tokenPrefix), `${rgb} / 0.52`);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
const rgb = hexToRGB(colorValue).join(' ');
|
|
203
|
-
el.style.setProperty(getToken(`colors-${color}`, tokenPrefix), rgb);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else if (typeof colorValue === 'object') {
|
|
207
|
-
Object.keys(colorValue).forEach((shade) => {
|
|
208
|
-
const shadeValue = colorValue[shade];
|
|
209
|
-
const rgb = hexToRGB(shadeValue).join(' ');
|
|
210
|
-
el.style.setProperty(getToken(`colors-${color}-${shade}`, tokenPrefix), rgb);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Provides the design system new tokens to consume values from for styling the RealtimeKit UI components.
|
|
217
|
-
* @param el The element/node you want to _provide_ RTK Design system.
|
|
218
|
-
* @param tokens The design tokens you want to updated.
|
|
219
|
-
*/
|
|
220
|
-
const provideRtkDesignSystem = (el, { spacingBase, borderRadius, borderWidth, colors, fontFamily, googleFont, theme, tokenPrefix = DEFAULT_CSS_TOKEN_PREFIX, }) => {
|
|
221
|
-
if (typeof el !== 'object') {
|
|
222
|
-
throw new Error('[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element');
|
|
223
|
-
}
|
|
224
|
-
if (typeof googleFont === 'string') {
|
|
225
|
-
provideGoogleFont(googleFont);
|
|
226
|
-
el.style.setProperty(getToken('font-family', tokenPrefix), googleFont);
|
|
227
|
-
}
|
|
228
|
-
if (typeof fontFamily === 'string') {
|
|
229
|
-
el.style.setProperty(getToken('font-family', tokenPrefix), fontFamily);
|
|
230
|
-
}
|
|
231
|
-
if (typeof spacingBase === 'number') {
|
|
232
|
-
provideSpacing(el, spacingBase, tokenPrefix);
|
|
233
|
-
}
|
|
234
|
-
if (typeof borderWidth === 'string') {
|
|
235
|
-
provideBorderWidth(el, borderWidth, tokenPrefix);
|
|
236
|
-
}
|
|
237
|
-
if (typeof borderRadius === 'string') {
|
|
238
|
-
provideBorderRadius(el, borderRadius, tokenPrefix);
|
|
239
|
-
}
|
|
240
|
-
if (typeof theme === 'string') {
|
|
241
|
-
const colors = THEMES[theme];
|
|
242
|
-
if (colors != null)
|
|
243
|
-
provideColors(el, colors, tokenPrefix);
|
|
244
|
-
}
|
|
245
|
-
if (typeof colors === 'object') {
|
|
246
|
-
provideColors(el, colors, tokenPrefix);
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* This method returns the first argument it receives.
|
|
252
|
-
*
|
|
253
|
-
* @static
|
|
254
|
-
* @since 0.1.0
|
|
255
|
-
* @memberOf _
|
|
256
|
-
* @category Util
|
|
257
|
-
* @param {*} value Any value.
|
|
258
|
-
* @returns {*} Returns `value`.
|
|
259
|
-
* @example
|
|
260
|
-
*
|
|
261
|
-
* var object = { 'a': 1 };
|
|
262
|
-
*
|
|
263
|
-
* console.log(_.identity(object) === object);
|
|
264
|
-
* // => true
|
|
265
|
-
*/
|
|
266
|
-
function identity(value) {
|
|
267
|
-
return value;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
272
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
273
|
-
*
|
|
274
|
-
* @private
|
|
275
|
-
* @param {Function} func The function to invoke.
|
|
276
|
-
* @param {*} thisArg The `this` binding of `func`.
|
|
277
|
-
* @param {Array} args The arguments to invoke `func` with.
|
|
278
|
-
* @returns {*} Returns the result of `func`.
|
|
279
|
-
*/
|
|
280
|
-
function apply(func, thisArg, args) {
|
|
281
|
-
switch (args.length) {
|
|
282
|
-
case 0: return func.call(thisArg);
|
|
283
|
-
case 1: return func.call(thisArg, args[0]);
|
|
284
|
-
case 2: return func.call(thisArg, args[0], args[1]);
|
|
285
|
-
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
286
|
-
}
|
|
287
|
-
return func.apply(thisArg, args);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
291
|
-
var HOT_COUNT = 800,
|
|
292
|
-
HOT_SPAN = 16;
|
|
293
|
-
|
|
294
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
295
|
-
var nativeNow = Date.now;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Creates a function that'll short out and invoke `identity` instead
|
|
299
|
-
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
300
|
-
* milliseconds.
|
|
301
|
-
*
|
|
302
|
-
* @private
|
|
303
|
-
* @param {Function} func The function to restrict.
|
|
304
|
-
* @returns {Function} Returns the new shortable function.
|
|
305
|
-
*/
|
|
306
|
-
function shortOut(func) {
|
|
307
|
-
var count = 0,
|
|
308
|
-
lastCalled = 0;
|
|
309
|
-
|
|
310
|
-
return function() {
|
|
311
|
-
var stamp = nativeNow(),
|
|
312
|
-
remaining = HOT_SPAN - (stamp - lastCalled);
|
|
313
|
-
|
|
314
|
-
lastCalled = stamp;
|
|
315
|
-
if (remaining > 0) {
|
|
316
|
-
if (++count >= HOT_COUNT) {
|
|
317
|
-
return arguments[0];
|
|
318
|
-
}
|
|
319
|
-
} else {
|
|
320
|
-
count = 0;
|
|
321
|
-
}
|
|
322
|
-
return func.apply(undefined, arguments);
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Creates a function that returns `value`.
|
|
328
|
-
*
|
|
329
|
-
* @static
|
|
330
|
-
* @memberOf _
|
|
331
|
-
* @since 2.4.0
|
|
332
|
-
* @category Util
|
|
333
|
-
* @param {*} value The value to return from the new function.
|
|
334
|
-
* @returns {Function} Returns the new constant function.
|
|
335
|
-
* @example
|
|
336
|
-
*
|
|
337
|
-
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
338
|
-
*
|
|
339
|
-
* console.log(objects);
|
|
340
|
-
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
341
|
-
*
|
|
342
|
-
* console.log(objects[0] === objects[1]);
|
|
343
|
-
* // => true
|
|
344
|
-
*/
|
|
345
|
-
function constant(value) {
|
|
346
|
-
return function() {
|
|
347
|
-
return value;
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* The base implementation of `setToString` without support for hot loop shorting.
|
|
353
|
-
*
|
|
354
|
-
* @private
|
|
355
|
-
* @param {Function} func The function to modify.
|
|
356
|
-
* @param {Function} string The `toString` result.
|
|
357
|
-
* @returns {Function} Returns `func`.
|
|
358
|
-
*/
|
|
359
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
360
|
-
return defineProperty(func, 'toString', {
|
|
361
|
-
'configurable': true,
|
|
362
|
-
'enumerable': false,
|
|
363
|
-
'value': constant(string),
|
|
364
|
-
'writable': true
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
const baseSetToString$1 = baseSetToString;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Sets the `toString` method of `func` to return `string`.
|
|
372
|
-
*
|
|
373
|
-
* @private
|
|
374
|
-
* @param {Function} func The function to modify.
|
|
375
|
-
* @param {Function} string The `toString` result.
|
|
376
|
-
* @returns {Function} Returns `func`.
|
|
377
|
-
*/
|
|
378
|
-
var setToString = shortOut(baseSetToString$1);
|
|
379
|
-
|
|
380
|
-
const setToString$1 = setToString;
|
|
381
|
-
|
|
382
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
383
|
-
var nativeMax = Math.max;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* A specialized version of `baseRest` which transforms the rest array.
|
|
387
|
-
*
|
|
388
|
-
* @private
|
|
389
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
390
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
391
|
-
* @param {Function} transform The rest array transform.
|
|
392
|
-
* @returns {Function} Returns the new function.
|
|
393
|
-
*/
|
|
394
|
-
function overRest(func, start, transform) {
|
|
395
|
-
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
396
|
-
return function() {
|
|
397
|
-
var args = arguments,
|
|
398
|
-
index = -1,
|
|
399
|
-
length = nativeMax(args.length - start, 0),
|
|
400
|
-
array = Array(length);
|
|
401
|
-
|
|
402
|
-
while (++index < length) {
|
|
403
|
-
array[index] = args[start + index];
|
|
404
|
-
}
|
|
405
|
-
index = -1;
|
|
406
|
-
var otherArgs = Array(start + 1);
|
|
407
|
-
while (++index < start) {
|
|
408
|
-
otherArgs[index] = args[index];
|
|
409
|
-
}
|
|
410
|
-
otherArgs[start] = transform(array);
|
|
411
|
-
return apply(func, this, otherArgs);
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
417
|
-
*
|
|
418
|
-
* @private
|
|
419
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
420
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
421
|
-
* @returns {Function} Returns the new function.
|
|
422
|
-
*/
|
|
423
|
-
function baseRest(func, start) {
|
|
424
|
-
return setToString$1(overRest(func, start, identity), func + '');
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Checks if the given arguments are from an iteratee call.
|
|
429
|
-
*
|
|
430
|
-
* @private
|
|
431
|
-
* @param {*} value The potential iteratee value argument.
|
|
432
|
-
* @param {*} index The potential iteratee index or key argument.
|
|
433
|
-
* @param {*} object The potential iteratee object argument.
|
|
434
|
-
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
435
|
-
* else `false`.
|
|
436
|
-
*/
|
|
437
|
-
function isIterateeCall(value, index, object) {
|
|
438
|
-
if (!isObject(object)) {
|
|
439
|
-
return false;
|
|
440
|
-
}
|
|
441
|
-
var type = typeof index;
|
|
442
|
-
if (type == 'number'
|
|
443
|
-
? (isArrayLike(object) && isIndex(index, object.length))
|
|
444
|
-
: (type == 'string' && index in object)
|
|
445
|
-
) {
|
|
446
|
-
return eq(object[index], value);
|
|
447
|
-
}
|
|
448
|
-
return false;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* Creates a function like `_.assign`.
|
|
453
|
-
*
|
|
454
|
-
* @private
|
|
455
|
-
* @param {Function} assigner The function to assign values.
|
|
456
|
-
* @returns {Function} Returns the new assigner function.
|
|
457
|
-
*/
|
|
458
|
-
function createAssigner(assigner) {
|
|
459
|
-
return baseRest(function(object, sources) {
|
|
460
|
-
var index = -1,
|
|
461
|
-
length = sources.length,
|
|
462
|
-
customizer = length > 1 ? sources[length - 1] : undefined,
|
|
463
|
-
guard = length > 2 ? sources[2] : undefined;
|
|
464
|
-
|
|
465
|
-
customizer = (assigner.length > 3 && typeof customizer == 'function')
|
|
466
|
-
? (length--, customizer)
|
|
467
|
-
: undefined;
|
|
468
|
-
|
|
469
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
470
|
-
customizer = length < 3 ? undefined : customizer;
|
|
471
|
-
length = 1;
|
|
472
|
-
}
|
|
473
|
-
object = Object(object);
|
|
474
|
-
while (++index < length) {
|
|
475
|
-
var source = sources[index];
|
|
476
|
-
if (source) {
|
|
477
|
-
assigner(object, source, index, customizer);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return object;
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/** `Object#toString` result references. */
|
|
485
|
-
var objectTag = '[object Object]';
|
|
486
|
-
|
|
487
|
-
/** Used for built-in method references. */
|
|
488
|
-
var funcProto = Function.prototype,
|
|
489
|
-
objectProto = Object.prototype;
|
|
490
|
-
|
|
491
|
-
/** Used to resolve the decompiled source of functions. */
|
|
492
|
-
var funcToString = funcProto.toString;
|
|
493
|
-
|
|
494
|
-
/** Used to check objects for own properties. */
|
|
495
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
496
|
-
|
|
497
|
-
/** Used to infer the `Object` constructor. */
|
|
498
|
-
var objectCtorString = funcToString.call(Object);
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
502
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
503
|
-
*
|
|
504
|
-
* @static
|
|
505
|
-
* @memberOf _
|
|
506
|
-
* @since 0.8.0
|
|
507
|
-
* @category Lang
|
|
508
|
-
* @param {*} value The value to check.
|
|
509
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
510
|
-
* @example
|
|
511
|
-
*
|
|
512
|
-
* function Foo() {
|
|
513
|
-
* this.a = 1;
|
|
514
|
-
* }
|
|
515
|
-
*
|
|
516
|
-
* _.isPlainObject(new Foo);
|
|
517
|
-
* // => false
|
|
518
|
-
*
|
|
519
|
-
* _.isPlainObject([1, 2, 3]);
|
|
520
|
-
* // => false
|
|
521
|
-
*
|
|
522
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
523
|
-
* // => true
|
|
524
|
-
*
|
|
525
|
-
* _.isPlainObject(Object.create(null));
|
|
526
|
-
* // => true
|
|
527
|
-
*/
|
|
528
|
-
function isPlainObject(value) {
|
|
529
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
530
|
-
return false;
|
|
531
|
-
}
|
|
532
|
-
var proto = getPrototype(value);
|
|
533
|
-
if (proto === null) {
|
|
534
|
-
return true;
|
|
535
|
-
}
|
|
536
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
537
|
-
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
538
|
-
funcToString.call(Ctor) == objectCtorString;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
543
|
-
*
|
|
544
|
-
* @private
|
|
545
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
546
|
-
* @returns {Function} Returns the new base function.
|
|
547
|
-
*/
|
|
548
|
-
function createBaseFor(fromRight) {
|
|
549
|
-
return function(object, iteratee, keysFunc) {
|
|
550
|
-
var index = -1,
|
|
551
|
-
iterable = Object(object),
|
|
552
|
-
props = keysFunc(object),
|
|
553
|
-
length = props.length;
|
|
554
|
-
|
|
555
|
-
while (length--) {
|
|
556
|
-
var key = props[fromRight ? length : ++index];
|
|
557
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
return object;
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* The base implementation of `baseForOwn` which iterates over `object`
|
|
567
|
-
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
568
|
-
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
569
|
-
*
|
|
570
|
-
* @private
|
|
571
|
-
* @param {Object} object The object to iterate over.
|
|
572
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
573
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
574
|
-
* @returns {Object} Returns `object`.
|
|
575
|
-
*/
|
|
576
|
-
var baseFor = createBaseFor();
|
|
577
|
-
|
|
578
|
-
const baseFor$1 = baseFor;
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* This function is like `assignValue` except that it doesn't assign
|
|
582
|
-
* `undefined` values.
|
|
583
|
-
*
|
|
584
|
-
* @private
|
|
585
|
-
* @param {Object} object The object to modify.
|
|
586
|
-
* @param {string} key The key of the property to assign.
|
|
587
|
-
* @param {*} value The value to assign.
|
|
588
|
-
*/
|
|
589
|
-
function assignMergeValue(object, key, value) {
|
|
590
|
-
if ((value !== undefined && !eq(object[key], value)) ||
|
|
591
|
-
(value === undefined && !(key in object))) {
|
|
592
|
-
baseAssignValue(object, key, value);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
598
|
-
* is an object.
|
|
599
|
-
*
|
|
600
|
-
* @static
|
|
601
|
-
* @memberOf _
|
|
602
|
-
* @since 4.0.0
|
|
603
|
-
* @category Lang
|
|
604
|
-
* @param {*} value The value to check.
|
|
605
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
606
|
-
* else `false`.
|
|
607
|
-
* @example
|
|
608
|
-
*
|
|
609
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
610
|
-
* // => true
|
|
611
|
-
*
|
|
612
|
-
* _.isArrayLikeObject(document.body.children);
|
|
613
|
-
* // => true
|
|
614
|
-
*
|
|
615
|
-
* _.isArrayLikeObject('abc');
|
|
616
|
-
* // => false
|
|
617
|
-
*
|
|
618
|
-
* _.isArrayLikeObject(_.noop);
|
|
619
|
-
* // => false
|
|
620
|
-
*/
|
|
621
|
-
function isArrayLikeObject(value) {
|
|
622
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
627
|
-
*
|
|
628
|
-
* @private
|
|
629
|
-
* @param {Object} object The object to query.
|
|
630
|
-
* @param {string} key The key of the property to get.
|
|
631
|
-
* @returns {*} Returns the property value.
|
|
632
|
-
*/
|
|
633
|
-
function safeGet(object, key) {
|
|
634
|
-
if (key === 'constructor' && typeof object[key] === 'function') {
|
|
635
|
-
return;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
if (key == '__proto__') {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
return object[key];
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Converts `value` to a plain object flattening inherited enumerable string
|
|
647
|
-
* keyed properties of `value` to own properties of the plain object.
|
|
648
|
-
*
|
|
649
|
-
* @static
|
|
650
|
-
* @memberOf _
|
|
651
|
-
* @since 3.0.0
|
|
652
|
-
* @category Lang
|
|
653
|
-
* @param {*} value The value to convert.
|
|
654
|
-
* @returns {Object} Returns the converted plain object.
|
|
655
|
-
* @example
|
|
656
|
-
*
|
|
657
|
-
* function Foo() {
|
|
658
|
-
* this.b = 2;
|
|
659
|
-
* }
|
|
660
|
-
*
|
|
661
|
-
* Foo.prototype.c = 3;
|
|
662
|
-
*
|
|
663
|
-
* _.assign({ 'a': 1 }, new Foo);
|
|
664
|
-
* // => { 'a': 1, 'b': 2 }
|
|
665
|
-
*
|
|
666
|
-
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
667
|
-
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
668
|
-
*/
|
|
669
|
-
function toPlainObject(value) {
|
|
670
|
-
return copyObject(value, keysIn(value));
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
675
|
-
* deep merges and tracks traversed objects enabling objects with circular
|
|
676
|
-
* references to be merged.
|
|
677
|
-
*
|
|
678
|
-
* @private
|
|
679
|
-
* @param {Object} object The destination object.
|
|
680
|
-
* @param {Object} source The source object.
|
|
681
|
-
* @param {string} key The key of the value to merge.
|
|
682
|
-
* @param {number} srcIndex The index of `source`.
|
|
683
|
-
* @param {Function} mergeFunc The function to merge values.
|
|
684
|
-
* @param {Function} [customizer] The function to customize assigned values.
|
|
685
|
-
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
686
|
-
* counterparts.
|
|
687
|
-
*/
|
|
688
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
689
|
-
var objValue = safeGet(object, key),
|
|
690
|
-
srcValue = safeGet(source, key),
|
|
691
|
-
stacked = stack.get(srcValue);
|
|
692
|
-
|
|
693
|
-
if (stacked) {
|
|
694
|
-
assignMergeValue(object, key, stacked);
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
var newValue = customizer
|
|
698
|
-
? customizer(objValue, srcValue, (key + ''), object, source, stack)
|
|
699
|
-
: undefined;
|
|
700
|
-
|
|
701
|
-
var isCommon = newValue === undefined;
|
|
702
|
-
|
|
703
|
-
if (isCommon) {
|
|
704
|
-
var isArr = isArray(srcValue),
|
|
705
|
-
isBuff = !isArr && isBuffer(srcValue),
|
|
706
|
-
isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
707
|
-
|
|
708
|
-
newValue = srcValue;
|
|
709
|
-
if (isArr || isBuff || isTyped) {
|
|
710
|
-
if (isArray(objValue)) {
|
|
711
|
-
newValue = objValue;
|
|
712
|
-
}
|
|
713
|
-
else if (isArrayLikeObject(objValue)) {
|
|
714
|
-
newValue = copyArray(objValue);
|
|
715
|
-
}
|
|
716
|
-
else if (isBuff) {
|
|
717
|
-
isCommon = false;
|
|
718
|
-
newValue = cloneBuffer(srcValue, true);
|
|
719
|
-
}
|
|
720
|
-
else if (isTyped) {
|
|
721
|
-
isCommon = false;
|
|
722
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
723
|
-
}
|
|
724
|
-
else {
|
|
725
|
-
newValue = [];
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
729
|
-
newValue = objValue;
|
|
730
|
-
if (isArguments(objValue)) {
|
|
731
|
-
newValue = toPlainObject(objValue);
|
|
732
|
-
}
|
|
733
|
-
else if (!isObject(objValue) || isFunction(objValue)) {
|
|
734
|
-
newValue = initCloneObject(srcValue);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
else {
|
|
738
|
-
isCommon = false;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
if (isCommon) {
|
|
742
|
-
// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
743
|
-
stack.set(srcValue, newValue);
|
|
744
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
745
|
-
stack['delete'](srcValue);
|
|
746
|
-
}
|
|
747
|
-
assignMergeValue(object, key, newValue);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* The base implementation of `_.merge` without support for multiple sources.
|
|
752
|
-
*
|
|
753
|
-
* @private
|
|
754
|
-
* @param {Object} object The destination object.
|
|
755
|
-
* @param {Object} source The source object.
|
|
756
|
-
* @param {number} srcIndex The index of `source`.
|
|
757
|
-
* @param {Function} [customizer] The function to customize merged values.
|
|
758
|
-
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
759
|
-
* counterparts.
|
|
760
|
-
*/
|
|
761
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
762
|
-
if (object === source) {
|
|
763
|
-
return;
|
|
764
|
-
}
|
|
765
|
-
baseFor$1(source, function(srcValue, key) {
|
|
766
|
-
stack || (stack = new Stack);
|
|
767
|
-
if (isObject(srcValue)) {
|
|
768
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
769
|
-
}
|
|
770
|
-
else {
|
|
771
|
-
var newValue = customizer
|
|
772
|
-
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
|
773
|
-
: undefined;
|
|
774
|
-
|
|
775
|
-
if (newValue === undefined) {
|
|
776
|
-
newValue = srcValue;
|
|
777
|
-
}
|
|
778
|
-
assignMergeValue(object, key, newValue);
|
|
779
|
-
}
|
|
780
|
-
}, keysIn);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* This method is like `_.assign` except that it recursively merges own and
|
|
785
|
-
* inherited enumerable string keyed properties of source objects into the
|
|
786
|
-
* destination object. Source properties that resolve to `undefined` are
|
|
787
|
-
* skipped if a destination value exists. Array and plain object properties
|
|
788
|
-
* are merged recursively. Other objects and value types are overridden by
|
|
789
|
-
* assignment. Source objects are applied from left to right. Subsequent
|
|
790
|
-
* sources overwrite property assignments of previous sources.
|
|
791
|
-
*
|
|
792
|
-
* **Note:** This method mutates `object`.
|
|
793
|
-
*
|
|
794
|
-
* @static
|
|
795
|
-
* @memberOf _
|
|
796
|
-
* @since 0.5.0
|
|
797
|
-
* @category Object
|
|
798
|
-
* @param {Object} object The destination object.
|
|
799
|
-
* @param {...Object} [sources] The source objects.
|
|
800
|
-
* @returns {Object} Returns `object`.
|
|
801
|
-
* @example
|
|
802
|
-
*
|
|
803
|
-
* var object = {
|
|
804
|
-
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
|
805
|
-
* };
|
|
806
|
-
*
|
|
807
|
-
* var other = {
|
|
808
|
-
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
|
809
|
-
* };
|
|
810
|
-
*
|
|
811
|
-
* _.merge(object, other);
|
|
812
|
-
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
813
|
-
*/
|
|
814
|
-
var merge = createAssigner(function(object, source, srcIndex) {
|
|
815
|
-
baseMerge(object, source, srcIndex);
|
|
816
|
-
});
|
|
817
|
-
|
|
818
|
-
const deepMerge = merge;
|
|
819
|
-
|
|
820
|
-
export { deepMerge as d, isValidHexColor as i, provideRtkDesignSystem as p };
|