@100mslive/roomkit-react 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/dist/Accordion/Accordion.d.ts +964 -0
- package/dist/Accordion/index.d.ts +979 -0
- package/dist/ActiveSpeakerView-H3VYXANB.js +39 -0
- package/dist/ActiveSpeakerView-H3VYXANB.js.map +7 -0
- package/dist/ActiveSpeakerView-REZLWPPI.css +11 -0
- package/dist/ActiveSpeakerView-REZLWPPI.css.map +7 -0
- package/dist/AudioLevel/AudioLevel.d.ts +8 -0
- package/dist/AudioLevel/index.d.ts +1 -0
- package/dist/Avatar/Avatar.d.ts +487 -0
- package/dist/Avatar/getAvatarBg.d.ts +7 -0
- package/dist/Avatar/index.d.ts +1 -0
- package/dist/Button/Button.d.ts +488 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Checkbox/Checkbox.d.ts +958 -0
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/Collapsible/Collapsible.d.ts +1434 -0
- package/dist/Collapsible/index.d.ts +1 -0
- package/dist/Divider/Divider.d.ts +958 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Dropdown/Dropdown.d.ts +5728 -0
- package/dist/Dropdown/index.d.ts +1 -0
- package/dist/Fieldset/Fieldset.d.ts +477 -0
- package/dist/Fieldset/index.d.ts +1 -0
- package/dist/Footer/Footer.d.ts +3834 -0
- package/dist/Footer/index.d.ts +1 -0
- package/dist/HLSView-3RDXRV7Y.js +689 -0
- package/dist/HLSView-3RDXRV7Y.js.map +7 -0
- package/dist/HLSView-6BVBCQM7.css +11 -0
- package/dist/HLSView-6BVBCQM7.css.map +7 -0
- package/dist/IconButton/IconButton.d.ts +479 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +2917 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Label/Label.d.ts +479 -0
- package/dist/Label/index.d.ts +1 -0
- package/dist/Layout/Box.d.ts +477 -0
- package/dist/Layout/Flex.d.ts +482 -0
- package/dist/Layout/index.d.ts +2 -0
- package/dist/Link/Link.d.ts +489 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Loading/Loading.d.ts +14 -0
- package/dist/Loading/index.d.ts +1 -0
- package/dist/Modal/Dialog.d.ts +3826 -0
- package/dist/Modal/DialogContent.d.ts +3343 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Pagination/StyledPagination.d.ts +1918 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/PinnedTrackView-453PELNU.js +70 -0
- package/dist/PinnedTrackView-453PELNU.js.map +7 -0
- package/dist/PinnedTrackView-QQ5FDXJX.css +11 -0
- package/dist/PinnedTrackView-QQ5FDXJX.css.map +7 -0
- package/dist/Popover/index.d.ts +1436 -0
- package/dist/Progress/index.d.ts +957 -0
- package/dist/QRCode/QRCode.d.ts +3 -0
- package/dist/QRCode/index.d.ts +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +1435 -0
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/ReactSelect/ReactSelect.d.ts +4778 -0
- package/dist/ReactSelect/index.d.ts +1 -0
- package/dist/Select/Select.d.ts +1437 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/Slider/Slider.d.ts +488 -0
- package/dist/Slider/index.d.ts +1 -0
- package/dist/Stats/Stats.d.ts +19 -0
- package/dist/Stats/StyledStats.d.ts +2872 -0
- package/dist/Stats/formatBytes.d.ts +1 -0
- package/dist/Stats/index.d.ts +1 -0
- package/dist/Switch/Switch.d.ts +482 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Tabs/Tabs.d.ts +1912 -0
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Text/Text.d.ts +605 -0
- package/dist/Text/index.d.ts +1 -0
- package/dist/Theme/ThemeProvider.d.ts +397 -0
- package/dist/Theme/base.config.d.ts +417 -0
- package/dist/Theme/index.d.ts +3 -0
- package/dist/Theme/stitches.config.d.ts +4702 -0
- package/dist/Theme/themes.d.ts +64 -0
- package/dist/Theme/useSSR.d.ts +6 -0
- package/dist/TileMenu/StyledMenuTile.d.ts +3351 -0
- package/dist/TileMenu/TileMenu.d.ts +6 -0
- package/dist/TileMenu/index.d.ts +1 -0
- package/dist/Toast/Toast.d.ts +2881 -0
- package/dist/Toast/index.d.ts +1 -0
- package/dist/Tooltip/Tooltip.d.ts +14 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Video/Video.d.ts +499 -0
- package/dist/Video/index.d.ts +1 -0
- package/dist/VideoList/StyledVideoList.d.ts +1438 -0
- package/dist/VideoList/index.d.ts +2 -0
- package/dist/VideoList/videoListUtils.d.ts +1 -0
- package/dist/VideoTile/StyledVideoTile.d.ts +4309 -0
- package/dist/VideoTile/index.d.ts +1 -0
- package/dist/VirtualBackground-LHYBWUT5.js +158 -0
- package/dist/VirtualBackground-LHYBWUT5.js.map +7 -0
- package/dist/chunk-7YUYZ64D.js +6843 -0
- package/dist/chunk-7YUYZ64D.js.map +7 -0
- package/dist/chunk-HCAGFNXW.js +8270 -0
- package/dist/chunk-HCAGFNXW.js.map +7 -0
- package/dist/chunk-KYYP6ZVK.js +907 -0
- package/dist/chunk-KYYP6ZVK.js.map +7 -0
- package/dist/chunk-ULXGBUSC.js +65 -0
- package/dist/chunk-ULXGBUSC.js.map +7 -0
- package/dist/chunk-XRJXE6UO.js +243 -0
- package/dist/chunk-XRJXE6UO.js.map +7 -0
- package/dist/conference-IDNRO4WK.js +3812 -0
- package/dist/conference-IDNRO4WK.js.map +7 -0
- package/dist/conference-KN6OKGDU.css +11 -0
- package/dist/conference-KN6OKGDU.css.map +7 -0
- package/dist/fixtures/chats.d.ts +4 -0
- package/dist/fixtures/peers.d.ts +3 -0
- package/dist/fixtures/tracks.d.ts +2 -0
- package/dist/index.cjs.css +11 -0
- package/dist/index.cjs.css.map +7 -0
- package/dist/index.cjs.js +22987 -0
- package/dist/index.cjs.js.map +7 -0
- package/dist/index.css +11 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +133 -0
- package/dist/index.js.map +7 -0
- package/dist/meta.cjs.json +13085 -0
- package/dist/meta.esbuild.json +13693 -0
- package/dist/transcription-BTSB7FZH.js +356 -0
- package/dist/transcription-BTSB7FZH.js.map +7 -0
- package/dist/utils/animations.d.ts +92 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/styles.d.ts +21 -0
- package/package.json +116 -0
- package/src/Accordion/Accordion.stories.tsx +50 -0
- package/src/Accordion/Accordion.tsx +88 -0
- package/src/Accordion/index.ts +8 -0
- package/src/AudioLevel/AudioLevel.tsx +34 -0
- package/src/AudioLevel/index.ts +1 -0
- package/src/Avatar/Avatar.stories.tsx +33 -0
- package/src/Avatar/Avatar.tsx +55 -0
- package/src/Avatar/getAvatarBg.ts +46 -0
- package/src/Avatar/index.ts +1 -0
- package/src/Button/Button.mdx +43 -0
- package/src/Button/Button.stories.tsx +52 -0
- package/src/Button/Button.tsx +144 -0
- package/src/Button/index.tsx +1 -0
- package/src/Chat/Chat.mdx +39 -0
- package/src/Chat/Chat.stories.tsx +39 -0
- package/src/Checkbox/Checkbox.stories.tsx +61 -0
- package/src/Checkbox/Checkbox.tsx +33 -0
- package/src/Checkbox/index.tsx +1 -0
- package/src/Collapsible/Collapsible.tsx +34 -0
- package/src/Collapsible/index.tsx +1 -0
- package/src/Divider/Divider.tsx +45 -0
- package/src/Divider/HorizontalDivider.stories.tsx +34 -0
- package/src/Divider/VerticalDivider.stories.tsx +40 -0
- package/src/Divider/index.ts +1 -0
- package/src/Dropdown/Dropdown.stories.tsx +94 -0
- package/src/Dropdown/Dropdown.tsx +142 -0
- package/src/Dropdown/index.tsx +1 -0
- package/src/Fieldset/Fieldset.stories.tsx +29 -0
- package/src/Fieldset/Fieldset.tsx +11 -0
- package/src/Fieldset/index.tsx +1 -0
- package/src/Footer/Footer.stories.tsx +61 -0
- package/src/Footer/Footer.tsx +47 -0
- package/src/Footer/index.tsx +1 -0
- package/src/IconButton/IconButton.tsx +45 -0
- package/src/IconButton/index.tsx +1 -0
- package/src/Icons/Icons.stories.mdx +10 -0
- package/src/Icons/IconsList.jsx +17 -0
- package/src/Input/Input.stories.tsx +25 -0
- package/src/Input/Input.tsx +105 -0
- package/src/Input/PasswordInput.stories.tsx +53 -0
- package/src/Input/index.tsx +1 -0
- package/src/Introduction/Integrating.stories.mdx +100 -0
- package/src/Introduction/Introduction.stories.mdx +9 -0
- package/src/Label/Label.tsx +8 -0
- package/src/Label/index.ts +1 -0
- package/src/Layout/Box.tsx +3 -0
- package/src/Layout/Flex.tsx +76 -0
- package/src/Layout/index.tsx +2 -0
- package/src/Link/Link.stories.tsx +18 -0
- package/src/Link/Link.tsx +54 -0
- package/src/Link/index.tsx +2 -0
- package/src/Loading/Loading.mdx +15 -0
- package/src/Loading/Loading.stories.tsx +37 -0
- package/src/Loading/Loading.tsx +33 -0
- package/src/Loading/index.ts +1 -0
- package/src/Modal/Dialog.mdx +19 -0
- package/src/Modal/Dialog.stories.tsx +68 -0
- package/src/Modal/Dialog.tsx +26 -0
- package/src/Modal/DialogContent.tsx +63 -0
- package/src/Modal/index.ts +1 -0
- package/src/Pagination/StyledPagination.stories.tsx +80 -0
- package/src/Pagination/StyledPagination.tsx +68 -0
- package/src/Pagination/index.tsx +1 -0
- package/src/Popover/Popover.mdx +9 -0
- package/src/Popover/Popover.stories.tsx +95 -0
- package/src/Popover/index.tsx +26 -0
- package/src/Prebuilt/App.jsx +273 -0
- package/src/Prebuilt/AppContext.jsx +21 -0
- package/src/Prebuilt/IconButton.jsx +19 -0
- package/src/Prebuilt/Prebuilt.stories.tsx +20 -0
- package/src/Prebuilt/common/PeersSorter.js +89 -0
- package/src/Prebuilt/common/constants.js +208 -0
- package/src/Prebuilt/common/hooks.js +47 -0
- package/src/Prebuilt/common/roles.js +4 -0
- package/src/Prebuilt/common/useSortedPeers.js +28 -0
- package/src/Prebuilt/common/utils.js +91 -0
- package/src/Prebuilt/components/AppData/AppData.jsx +189 -0
- package/src/Prebuilt/components/AppData/useAppConfig.js +7 -0
- package/src/Prebuilt/components/AppData/useAppLayout.js +6 -0
- package/src/Prebuilt/components/AppData/useChatState.js +18 -0
- package/src/Prebuilt/components/AppData/useSidepane.js +49 -0
- package/src/Prebuilt/components/AppData/useUISettings.js +164 -0
- package/src/Prebuilt/components/AudioLevel/BeamSpeakerLabelsLogging.jsx +16 -0
- package/src/Prebuilt/components/AudioVideoToggle.jsx +67 -0
- package/src/Prebuilt/components/AuthToken.jsx +133 -0
- package/src/Prebuilt/components/BottomActionSheet/BottomActionSheet.jsx +96 -0
- package/src/Prebuilt/components/BottomActionSheet/BottomActionSheet.stories.tsx +46 -0
- package/src/Prebuilt/components/Chat/Chat.jsx +155 -0
- package/src/Prebuilt/components/Chat/ChatBody.jsx +370 -0
- package/src/Prebuilt/components/Chat/ChatFooter.jsx +150 -0
- package/src/Prebuilt/components/Chat/ChatHeader.jsx +67 -0
- package/src/Prebuilt/components/Chat/ChatSelector.jsx +162 -0
- package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +30 -0
- package/src/Prebuilt/components/Chat/useUnreadCount.js +17 -0
- package/src/Prebuilt/components/Connection/ConnectionIndicator.jsx +80 -0
- package/src/Prebuilt/components/Connection/TileConnection.jsx +40 -0
- package/src/Prebuilt/components/Connection/connectionQualityUtils.js +39 -0
- package/src/Prebuilt/components/EmojiReaction.jsx +138 -0
- package/src/Prebuilt/components/ErrorBoundary.jsx +105 -0
- package/src/Prebuilt/components/FirstPersonDisplay.jsx +50 -0
- package/src/Prebuilt/components/Footer/ChatToggle.jsx +27 -0
- package/src/Prebuilt/components/Footer/ConferencingFooter.jsx +104 -0
- package/src/Prebuilt/components/Footer/StreamingFooter.jsx +71 -0
- package/src/Prebuilt/components/Footer.jsx +8 -0
- package/src/Prebuilt/components/FullPageProgress.jsx +11 -0
- package/src/Prebuilt/components/GoLiveButton.jsx +45 -0
- package/src/Prebuilt/components/HMSVideo/Controls.jsx +21 -0
- package/src/Prebuilt/components/HMSVideo/FullscreenButton.jsx +18 -0
- package/src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.jsx +35 -0
- package/src/Prebuilt/components/HMSVideo/HLSQualitySelector.jsx +82 -0
- package/src/Prebuilt/components/HMSVideo/HMSVIdeoUtils.js +27 -0
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +11 -0
- package/src/Prebuilt/components/HMSVideo/PlayButton.jsx +13 -0
- package/src/Prebuilt/components/HMSVideo/VideoProgress.jsx +77 -0
- package/src/Prebuilt/components/HMSVideo/VideoTime.jsx +31 -0
- package/src/Prebuilt/components/HMSVideo/VolumeControl.jsx +39 -0
- package/src/Prebuilt/components/HMSVideo/index.js +19 -0
- package/src/Prebuilt/components/Header/AdditionalRoomState.jsx +217 -0
- package/src/Prebuilt/components/Header/AmbientMusic.jsx +88 -0
- package/src/Prebuilt/components/Header/ConferencingHeader.jsx +29 -0
- package/src/Prebuilt/components/Header/Header.jsx +8 -0
- package/src/Prebuilt/components/Header/HeaderComponents.jsx +41 -0
- package/src/Prebuilt/components/Header/ParticipantFilter.jsx +91 -0
- package/src/Prebuilt/components/Header/ParticipantList.jsx +337 -0
- package/src/Prebuilt/components/Header/StreamActions.jsx +225 -0
- package/src/Prebuilt/components/Header/StreamingHeader.jsx +55 -0
- package/src/Prebuilt/components/Header/index.jsx +1 -0
- package/src/Prebuilt/components/HlsStatsOverlay.jsx +101 -0
- package/src/Prebuilt/components/Image.jsx +7 -0
- package/src/Prebuilt/components/Input/KeyboardInputManager.js +107 -0
- package/src/Prebuilt/components/LeaveRoom.jsx +202 -0
- package/src/Prebuilt/components/MetaActions.jsx +45 -0
- package/src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx +139 -0
- package/src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx +92 -0
- package/src/Prebuilt/components/MoreSettings/ChangeSelfRole.jsx +67 -0
- package/src/Prebuilt/components/MoreSettings/EmbedUrl.jsx +106 -0
- package/src/Prebuilt/components/MoreSettings/FullScreenItem.jsx +29 -0
- package/src/Prebuilt/components/MoreSettings/MoreSettings.jsx +225 -0
- package/src/Prebuilt/components/MoreSettings/MuteAllModal.jsx +90 -0
- package/src/Prebuilt/components/Notifications/AutoplayBlockedModal.jsx +38 -0
- package/src/Prebuilt/components/Notifications/InitErrorModal.jsx +39 -0
- package/src/Prebuilt/components/Notifications/MessageNotifications.jsx +25 -0
- package/src/Prebuilt/components/Notifications/Notifications.jsx +151 -0
- package/src/Prebuilt/components/Notifications/PeerNotifications.jsx +45 -0
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.jsx +67 -0
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.jsx +69 -0
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.jsx +51 -0
- package/src/Prebuilt/components/Notifications/TrackNotifications.jsx +19 -0
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.jsx +49 -0
- package/src/Prebuilt/components/Notifications/index.jsx +1 -0
- package/src/Prebuilt/components/PIP/PIPComponent.jsx +82 -0
- package/src/Prebuilt/components/PIP/PIPManager.js +296 -0
- package/src/Prebuilt/components/PIP/SetupMediaSession.js +60 -0
- package/src/Prebuilt/components/PIP/index.jsx +11 -0
- package/src/Prebuilt/components/PIP/pip.test.js +72 -0
- package/src/Prebuilt/components/PIP/pipUtils.js +183 -0
- package/src/Prebuilt/components/Pagination.jsx +29 -0
- package/src/Prebuilt/components/Playlist/Playlist.jsx +129 -0
- package/src/Prebuilt/components/Playlist/PlaylistControls.jsx +172 -0
- package/src/Prebuilt/components/Playlist/PlaylistItem.jsx +51 -0
- package/src/Prebuilt/components/Playlist/VideoPlayer.jsx +95 -0
- package/src/Prebuilt/components/PostLeave.jsx +76 -0
- package/src/Prebuilt/components/Preview/PreviewContainer.jsx +51 -0
- package/src/Prebuilt/components/Preview/PreviewJoin.jsx +196 -0
- package/src/Prebuilt/components/Preview/PreviewName.jsx +37 -0
- package/src/Prebuilt/components/RoleChangeModal.jsx +185 -0
- package/src/Prebuilt/components/RoleChangeRequestModal.jsx +26 -0
- package/src/Prebuilt/components/ScreenShare.jsx +45 -0
- package/src/Prebuilt/components/ScreenshareDisplay.jsx +45 -0
- package/src/Prebuilt/components/ScreenshareHintModal.jsx +37 -0
- package/src/Prebuilt/components/ScreenshareTile.jsx +91 -0
- package/src/Prebuilt/components/Settings/DeviceSettings.jsx +220 -0
- package/src/Prebuilt/components/Settings/LayoutSettings.jsx +91 -0
- package/src/Prebuilt/components/Settings/NotificationSettings.jsx +61 -0
- package/src/Prebuilt/components/Settings/SettingsModal.jsx +171 -0
- package/src/Prebuilt/components/Settings/StartRecording.jsx +130 -0
- package/src/Prebuilt/components/Settings/SwitchWithLabel.jsx +40 -0
- package/src/Prebuilt/components/Settings/common.js +15 -0
- package/src/Prebuilt/components/ShareMenuIcon.jsx +26 -0
- package/src/Prebuilt/components/StatsForNerds.jsx +250 -0
- package/src/Prebuilt/components/Streaming/Common.jsx +132 -0
- package/src/Prebuilt/components/Streaming/HLSStreaming.jsx +226 -0
- package/src/Prebuilt/components/Streaming/RTMPIcon.jsx +24 -0
- package/src/Prebuilt/components/Streaming/RTMPStreaming.jsx +336 -0
- package/src/Prebuilt/components/Streaming/ResolutionInput.jsx +88 -0
- package/src/Prebuilt/components/Streaming/StreamingLanding.jsx +76 -0
- package/src/Prebuilt/components/TileMenu.jsx +275 -0
- package/src/Prebuilt/components/Toast/Toast.jsx +17 -0
- package/src/Prebuilt/components/Toast/ToastBatcher.js +57 -0
- package/src/Prebuilt/components/Toast/ToastConfig.jsx +134 -0
- package/src/Prebuilt/components/Toast/ToastContainer.jsx +30 -0
- package/src/Prebuilt/components/Toast/ToastManager.js +44 -0
- package/src/Prebuilt/components/VideoList.jsx +101 -0
- package/src/Prebuilt/components/VideoTile.jsx +177 -0
- package/src/Prebuilt/components/conference.jsx +164 -0
- package/src/Prebuilt/components/gridView.jsx +85 -0
- package/src/Prebuilt/components/hooks/useDropdownList.jsx +23 -0
- package/src/Prebuilt/components/hooks/useDropdownSelection.jsx +6 -0
- package/src/Prebuilt/components/hooks/useFeatures.js +22 -0
- package/src/Prebuilt/components/hooks/useFullscreen.js +43 -0
- package/src/Prebuilt/components/hooks/useMetadata.jsx +52 -0
- package/src/Prebuilt/components/hooks/useNavigation.js +19 -0
- package/src/Prebuilt/components/hooks/usePlaylist.js +25 -0
- package/src/Prebuilt/components/hooks/usePlaylistMusic.js +35 -0
- package/src/Prebuilt/components/hooks/useScreenshareAudio.js +28 -0
- package/src/Prebuilt/components/hooks/useSetPinnedMessage.js +38 -0
- package/src/Prebuilt/components/hooks/useSkipPreview.jsx +20 -0
- package/src/Prebuilt/components/hooks/useUserPreferences.jsx +25 -0
- package/src/Prebuilt/components/init/Init.jsx +58 -0
- package/src/Prebuilt/components/init/initUtils.js +90 -0
- package/src/Prebuilt/components/pdfAnnotator/pdfErrorView.jsx +29 -0
- package/src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx +108 -0
- package/src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx +31 -0
- package/src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx +32 -0
- package/src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx +233 -0
- package/src/Prebuilt/components/pdfAnnotator/submitPdf.jsx +89 -0
- package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +85 -0
- package/src/Prebuilt/components/peerTileUtils.jsx +27 -0
- package/src/Prebuilt/hms.js +7 -0
- package/src/Prebuilt/images/first_person.png +0 -0
- package/src/Prebuilt/index.d.ts +15 -0
- package/src/Prebuilt/index.js +2 -0
- package/src/Prebuilt/layouts/ActiveSpeakerView.jsx +34 -0
- package/src/Prebuilt/layouts/EmbedView.jsx +141 -0
- package/src/Prebuilt/layouts/HLSView.jsx +290 -0
- package/src/Prebuilt/layouts/InsetView.jsx +222 -0
- package/src/Prebuilt/layouts/NonPublisherView.jsx +51 -0
- package/src/Prebuilt/layouts/PDFView.jsx +122 -0
- package/src/Prebuilt/layouts/PinnedTrackView.jsx +59 -0
- package/src/Prebuilt/layouts/SidePane.jsx +51 -0
- package/src/Prebuilt/layouts/WaitingView.jsx +51 -0
- package/src/Prebuilt/layouts/WhiteboardView.jsx +66 -0
- package/src/Prebuilt/layouts/mainGridView.jsx +98 -0
- package/src/Prebuilt/layouts/mainView.jsx +113 -0
- package/src/Prebuilt/layouts/screenShareView.jsx +185 -0
- package/src/Prebuilt/plugins/FlyingEmoji.jsx +132 -0
- package/src/Prebuilt/plugins/RemoteStopScreenshare.jsx +18 -0
- package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +90 -0
- package/src/Prebuilt/plugins/VirtualBackground/vbutils.js +66 -0
- package/src/Prebuilt/plugins/confetti.jsx +60 -0
- package/src/Prebuilt/plugins/transcription/Transcriber.js +216 -0
- package/src/Prebuilt/plugins/transcription/TranscriptionButton.jsx +138 -0
- package/src/Prebuilt/plugins/transcription/index.jsx +1 -0
- package/src/Prebuilt/plugins/whiteboard/PusherCommunicationProvider.js +110 -0
- package/src/Prebuilt/plugins/whiteboard/README.md +29 -0
- package/src/Prebuilt/plugins/whiteboard/ToggleWhiteboard.jsx +43 -0
- package/src/Prebuilt/plugins/whiteboard/Whiteboard.css +12 -0
- package/src/Prebuilt/plugins/whiteboard/Whiteboard.jsx +11 -0
- package/src/Prebuilt/plugins/whiteboard/WhiteboardEvents.js +8 -0
- package/src/Prebuilt/plugins/whiteboard/index.js +3 -0
- package/src/Prebuilt/plugins/whiteboard/useMultiplayerState.js +212 -0
- package/src/Prebuilt/plugins/whiteboard/useWhiteboardMetadata.js +47 -0
- package/src/Prebuilt/primitives/DialogContent.jsx +280 -0
- package/src/Prebuilt/primitives/DropdownTrigger.jsx +46 -0
- package/src/Prebuilt/services/FeatureFlags.jsx +47 -0
- package/src/Prebuilt/services/tokenService.js +49 -0
- package/src/Progress/index.tsx +17 -0
- package/src/QRCode/QRCode.mdx +9 -0
- package/src/QRCode/QRCode.stories.tsx +29 -0
- package/src/QRCode/QRCode.tsx +6 -0
- package/src/QRCode/index.tsx +1 -0
- package/src/RadioGroup/RadioGroup.stories.tsx +32 -0
- package/src/RadioGroup/RadioGroup.tsx +33 -0
- package/src/RadioGroup/index.tsx +1 -0
- package/src/ReactSelect/ReactSelect.stories.tsx +83 -0
- package/src/ReactSelect/ReactSelect.tsx +97 -0
- package/src/ReactSelect/index.ts +1 -0
- package/src/Select/Select.stories.tsx +33 -0
- package/src/Select/Select.tsx +63 -0
- package/src/Select/index.ts +1 -0
- package/src/Slider/Slider.stories.tsx +21 -0
- package/src/Slider/Slider.tsx +70 -0
- package/src/Slider/index.ts +1 -0
- package/src/Stats/Stats.tsx +211 -0
- package/src/Stats/StyledStats.tsx +57 -0
- package/src/Stats/formatBytes.ts +19 -0
- package/src/Stats/index.tsx +1 -0
- package/src/Switch/Switch.mdx +11 -0
- package/src/Switch/Switch.stories.tsx +46 -0
- package/src/Switch/Switch.tsx +52 -0
- package/src/Switch/index.ts +1 -0
- package/src/Tabs/Tabs.stories.tsx +77 -0
- package/src/Tabs/Tabs.tsx +41 -0
- package/src/Tabs/index.tsx +1 -0
- package/src/Text/Text.stories.tsx +21 -0
- package/src/Text/Text.tsx +149 -0
- package/src/Text/index.tsx +1 -0
- package/src/Theme/Theme.stories.mdx +8 -0
- package/src/Theme/ThemeProvider.tsx +104 -0
- package/src/Theme/ThemeStory.jsx +58 -0
- package/src/Theme/base.config.ts +264 -0
- package/src/Theme/index.tsx +3 -0
- package/src/Theme/stitches.config.ts +100 -0
- package/src/Theme/themes.ts +70 -0
- package/src/Theme/useSSR.tsx +24 -0
- package/src/TileMenu/StyledMenuTile.tsx +101 -0
- package/src/TileMenu/TileMenu.tsx +96 -0
- package/src/TileMenu/index.tsx +1 -0
- package/src/Toast/AppToast.stories.tsx +56 -0
- package/src/Toast/Toast.mdx +19 -0
- package/src/Toast/Toast.stories.tsx +57 -0
- package/src/Toast/Toast.tsx +168 -0
- package/src/Toast/index.tsx +1 -0
- package/src/Tooltip/Tooltip.stories.tsx +62 -0
- package/src/Tooltip/Tooltip.tsx +79 -0
- package/src/Tooltip/index.ts +1 -0
- package/src/Video/UseVideo.mdx +22 -0
- package/src/Video/UseVideo.stories.tsx +26 -0
- package/src/Video/Video.mdx +24 -0
- package/src/Video/Video.stories.tsx +27 -0
- package/src/Video/Video.tsx +61 -0
- package/src/Video/index.tsx +1 -0
- package/src/VideoList/StyledVideoList.tsx +39 -0
- package/src/VideoList/VideoList.stories.tsx +92 -0
- package/src/VideoList/index.tsx +2 -0
- package/src/VideoList/videoListUtils.tsx +20 -0
- package/src/VideoTile/StyledVideoTile.tsx +148 -0
- package/src/VideoTile/VideoTile.mdx +28 -0
- package/src/VideoTile/VideoTile.stories.tsx +32 -0
- package/src/VideoTile/index.tsx +1 -0
- package/src/fixtures/chats.ts +25 -0
- package/src/fixtures/peers.ts +24 -0
- package/src/fixtures/tracks.ts +11 -0
- package/src/index.ts +38 -0
- package/src/store/SetupFakeStore.ts +33 -0
- package/src/store/StorybookSDK.ts +229 -0
- package/src/utils/animations.ts +90 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/styles.ts +22 -0
@@ -0,0 +1,907 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __defProps = Object.defineProperties;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
12
|
+
var __spreadValues = (a, b) => {
|
13
|
+
for (var prop in b || (b = {}))
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
16
|
+
if (__getOwnPropSymbols)
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
18
|
+
if (__propIsEnum.call(b, prop))
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
20
|
+
}
|
21
|
+
return a;
|
22
|
+
};
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
24
|
+
var __objRest = (source, exclude) => {
|
25
|
+
var target = {};
|
26
|
+
for (var prop in source)
|
27
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
28
|
+
target[prop] = source[prop];
|
29
|
+
if (source != null && __getOwnPropSymbols)
|
30
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
32
|
+
target[prop] = source[prop];
|
33
|
+
}
|
34
|
+
return target;
|
35
|
+
};
|
36
|
+
var __esm = (fn, res) => function __init() {
|
37
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
38
|
+
};
|
39
|
+
var __commonJS = (cb, mod) => function __require() {
|
40
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
41
|
+
};
|
42
|
+
var __export = (target, all) => {
|
43
|
+
for (var name in all)
|
44
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
45
|
+
};
|
46
|
+
var __copyProps = (to, from, except, desc) => {
|
47
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
48
|
+
for (let key of __getOwnPropNames(from))
|
49
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
50
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
51
|
+
}
|
52
|
+
return to;
|
53
|
+
};
|
54
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
55
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
56
|
+
// file that has been converted to a CommonJS file using a Babel-
|
57
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
58
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
59
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
60
|
+
mod
|
61
|
+
));
|
62
|
+
var __publicField = (obj, key, value) => {
|
63
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
64
|
+
return value;
|
65
|
+
};
|
66
|
+
var __accessCheck = (obj, member, msg) => {
|
67
|
+
if (!member.has(obj))
|
68
|
+
throw TypeError("Cannot " + msg);
|
69
|
+
};
|
70
|
+
var __privateGet = (obj, member, getter) => {
|
71
|
+
__accessCheck(obj, member, "read from private field");
|
72
|
+
return getter ? getter.call(obj) : member.get(obj);
|
73
|
+
};
|
74
|
+
var __privateAdd = (obj, member, value) => {
|
75
|
+
if (member.has(obj))
|
76
|
+
throw TypeError("Cannot add the same private member more than once");
|
77
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
78
|
+
};
|
79
|
+
var __privateSet = (obj, member, value, setter) => {
|
80
|
+
__accessCheck(obj, member, "write to private field");
|
81
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
82
|
+
return value;
|
83
|
+
};
|
84
|
+
var __async = (__this, __arguments, generator) => {
|
85
|
+
return new Promise((resolve, reject) => {
|
86
|
+
var fulfilled = (value) => {
|
87
|
+
try {
|
88
|
+
step(generator.next(value));
|
89
|
+
} catch (e) {
|
90
|
+
reject(e);
|
91
|
+
}
|
92
|
+
};
|
93
|
+
var rejected = (value) => {
|
94
|
+
try {
|
95
|
+
step(generator.throw(value));
|
96
|
+
} catch (e) {
|
97
|
+
reject(e);
|
98
|
+
}
|
99
|
+
};
|
100
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
101
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
102
|
+
});
|
103
|
+
};
|
104
|
+
|
105
|
+
// <define:process.env>
|
106
|
+
var define_process_env_default;
|
107
|
+
var init_define_process_env = __esm({
|
108
|
+
"<define:process.env>"() {
|
109
|
+
define_process_env_default = { NVM_INC: "/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/include/node", npm_package_dependencies_emoji_mart: "^5.2.2", npm_package_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", TERM_PROGRAM: "vscode", NODE: "/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin/node", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_scripts_types_build: "tsc -p tsconfig.json", INIT_CWD: "/Users/eswarprasadclintona/workspace/100ms/web-sdks/packages/roomkit-react", NVM_CD_FLAGS: "-q", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", npm_config_version_git_tag: "true", SHELL: "/usr/local/bin/zsh", TERM: "xterm-256color", npm_package_dependencies__radix_ui_react_dialog: "1.0.0", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", npm_package_dependencies_eventemitter2: "^6.4.7", npm_package_dependencies__radix_ui_react_toast: "1.0.0", TMPDIR: "/var/folders/fv/1kj9_dq51v30g3kvkn9wmhbw0000gn/T/", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies__100mslive_react_icons: "0.8.10", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "1.80.1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", FIG_NEW_SESSION: "1", ZDOTDIR: "/Users/eswarprasadclintona", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_pusher_js: "^7.0.3", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_sideEffects: "false", npm_config_registry: "https://registry.yarnpkg.com", npm_package_readmeFilename: "README.md", USER: "eswarprasadclintona", NVM_DIR: "/Users/eswarprasadclintona/.nvm", npm_package_dependencies_web_vitals: "^1.0.1", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__types_react: "^18.1.0", npm_package_license: "MIT", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "1.0.0", npm_package_scripts_build_storybook: "sb build", npm_package_exports___import: "./dist/index.js", npm_package_devDependencies__babel_core: "^7.18.2", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.w6Vsk9fkos/Listeners", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", npm_package_devDependencies__rollup_plugin_commonjs: "^21.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_module: "dist/index.js", npm_package_dependencies_react_use: "^17.4.0", npm_package_devDependencies__types_mdx: "2.0.2", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", npm_package_author_name: "100ms", npm_package_dependencies__stitches_react: "^1.2.8", PATH: "/var/folders/fv/1kj9_dq51v30g3kvkn9wmhbw0000gn/T/yarn--1690287110390-0.4365073569688922:/Users/eswarprasadclintona/workspace/100ms/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/eswarprasadclintona/.config/yarn/link/node_modules/.bin:/Users/eswarprasadclintona/workspace/100ms/web-sdks/node_modules/.bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/lib/node_modules/npm/bin/node-gyp-bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/fv/1kj9_dq51v30g3kvkn9wmhbw0000gn/T/yarn--1690287109123-0.7766215185623668:/Users/eswarprasadclintona/workspace/100ms/web-sdks/packages/roomkit-react/node_modules/.bin:/Users/eswarprasadclintona/.config/yarn/link/node_modules/.bin:/Users/eswarprasadclintona/workspace/100ms/web-sdks/node_modules/.bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/lib/node_modules/npm/bin/node-gyp-bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin/node_modules/npm/bin/node-gyp-bin:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin", npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_dependencies_zipyai: "^1.3.24", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_scripts_lint_fix: "yarn lint --fix", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_devDependencies_rollup: "^2.70.1", _: "/var/folders/fv/1kj9_dq51v30g3kvkn9wmhbw0000gn/T/yarn--1690287110390-0.4365073569688922/node", npm_package_dependencies__tldraw_tldraw: "^1.18.4", npm_package_dependencies__radix_ui_react_progress: "1.0.0", __CFBundleIdentifier: "com.microsoft.VSCode", USER_ZDOTDIR: "/Users/eswarprasadclintona", PWD: "/Users/eswarprasadclintona/workspace/100ms/web-sdks/packages/roomkit-react", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", npm_package_dependencies__100mslive_react_sdk: "0.8.10", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_lifecycle_event: "build:only", npm_package_dependencies_mobx: "^6.3.12", npm_package_dependencies_js_confetti: "^0.10.2", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", LANG: "en_US.UTF-8", npm_package_name: "@100mslive/roomkit-react", npm_package_dependencies__100mslive_hms_virtual_background: "1.11.10", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", npm_package_dependencies_react_router_dom: "^6.3.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^7.0.27", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_main: "dist/index.cjs.js", XPC_SERVICE_NAME: "0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_version: "0.1.0", VSCODE_INJECTION: "1", HOME: "/Users/eswarprasadclintona", SHLVL: "3", npm_package_dependencies_react_window: "^1.8.7", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_hls_js: "^1.3.0", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_source: "src/index.ts", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies__100mslive_hls_player: "0.1.10", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_popover: "1.0.0", npm_package_exports___default: "./dist/index.js", LOGNAME: "eswarprasadclintona", YARN_WRAP_OUTPUT: "false", npm_package_dependencies_qrcode_react: "^3.1.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_scripts_format: "prettier -w src/**", npm_package_typings: "dist/index.d.ts", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_exports___require: "./dist/index.cjs.js", VSCODE_GIT_IPC_HANDLE: "/var/folders/fv/1kj9_dq51v30g3kvkn9wmhbw0000gn/T/vscode-git-a84f96db27.sock", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_scripts_babel: "npx storybook@latest babelrc", NVM_BIN: "/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.10 npm/? node/v18.16.1 darwin x64", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", npm_package_dependencies__radix_ui_react_dropdown_menu: "1.0.0", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", npm_package_scripts_types: "tsc -w", npm_package_files_1: "src", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_files_0: "dist", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", npm_package_dependencies_react_draggable: "^4.4.5", COLORTERM: "truecolor", npm_node_execpath: "/Users/eswarprasadclintona/.nvm/versions/node/v18.16.1/bin/node", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_config_version_tag_prefix: "v" };
|
110
|
+
}
|
111
|
+
});
|
112
|
+
|
113
|
+
// src/Theme/themes.ts
|
114
|
+
init_define_process_env();
|
115
|
+
var darkTheme = {
|
116
|
+
colors: {
|
117
|
+
bgPrimary: "#0B0F15",
|
118
|
+
bgSecondary: "#1D232B",
|
119
|
+
bgTertiary: "#303740",
|
120
|
+
surfaceLight: "#1E232A",
|
121
|
+
surfaceLighter: "#282F39",
|
122
|
+
textPrimary: "#FFFFFFE6",
|
123
|
+
textSecondary: "#FFFFFFB8",
|
124
|
+
textDisabled: "#FFFFFF61",
|
125
|
+
textInvert: "rgba(0,0,0,0.9)",
|
126
|
+
textHighEmp: "#F5F9FFF2",
|
127
|
+
textMedEmp: "rgba(224, 236, 255, 0.8)",
|
128
|
+
iconBtn: "$white",
|
129
|
+
iconHoverBg: "rgba(255, 255, 255, 0.25)",
|
130
|
+
transparentBg: "rgba(0, 0, 0, 0.22)",
|
131
|
+
mainBg: "$black",
|
132
|
+
tileBg: "#0F1115",
|
133
|
+
secondaryDisabled: "#242A33",
|
134
|
+
previewBg: "#111111",
|
135
|
+
statsBg: "rgba(0,0,0,0.75)",
|
136
|
+
menuBg: "$grayDark",
|
137
|
+
inputBg: "$bgSecondary",
|
138
|
+
toastBg: "$menuBg",
|
139
|
+
borderDefault: "#1B1F26",
|
140
|
+
backgroundDefault: "#0B0D0F",
|
141
|
+
borderLighter: "#2D3440"
|
142
|
+
}
|
143
|
+
};
|
144
|
+
var lightTheme = {
|
145
|
+
colors: {
|
146
|
+
bgPrimary: "$white",
|
147
|
+
bgSecondary: "#F5F5F5",
|
148
|
+
bgTertiary: "#FFFFFF61",
|
149
|
+
twinYellow: "#ECC502",
|
150
|
+
textPrimary: "rgba(0,0,0, 0.9)",
|
151
|
+
textSecondary: "rgba(0,0,0, 0.72)",
|
152
|
+
textInvert: "#FFFFFFE6",
|
153
|
+
iconBtn: "#3b3b3b",
|
154
|
+
iconHoverBg: "rgba(0, 0, 0, 0.22)",
|
155
|
+
transparentBg: "#FFFFFF38",
|
156
|
+
mainBg: "$white",
|
157
|
+
tileBg: "#F2F2F2",
|
158
|
+
previewBg: "#FAFAFA",
|
159
|
+
statsBg: "#FFFFFFBF",
|
160
|
+
menuBg: "#d9d9d9",
|
161
|
+
inputBg: "$tileBg",
|
162
|
+
toastBg: "$menuBg",
|
163
|
+
secondaryDisabled: "#F6F7F9",
|
164
|
+
// text variants
|
165
|
+
textHighEmp: "#000000F2",
|
166
|
+
textMedEmp: "#000000CC",
|
167
|
+
textDisabled: "#00000066",
|
168
|
+
borderDefault: "#DDE2E9",
|
169
|
+
borderLight: "#BCC4D2",
|
170
|
+
borderLighter: "#DFE4EC",
|
171
|
+
surfaceDefault: "#EDEFF3",
|
172
|
+
surfaceLight: "#F6F7F9",
|
173
|
+
surfaceLighter: "#FCFCFD",
|
174
|
+
surfaceDark: "$surfaceLight",
|
175
|
+
backgroundDefault: "#E0E4EB",
|
176
|
+
backgroundDark: "#DADFE7",
|
177
|
+
backgroundDarker: "#D4DAE2"
|
178
|
+
}
|
179
|
+
};
|
180
|
+
|
181
|
+
// src/Theme/stitches.config.ts
|
182
|
+
init_define_process_env();
|
183
|
+
import { createStitches } from "@stitches/react";
|
184
|
+
import merge from "lodash.merge";
|
185
|
+
|
186
|
+
// src/Theme/base.config.ts
|
187
|
+
init_define_process_env();
|
188
|
+
import { defaultThemeMap as defaultStitchesThemeMap } from "@stitches/react";
|
189
|
+
var baseConfig = {
|
190
|
+
theme: {
|
191
|
+
colors: {
|
192
|
+
white: "#FFFFFF",
|
193
|
+
black: "#000000",
|
194
|
+
transparent: "#00000000",
|
195
|
+
orange: "#F69133",
|
196
|
+
cyan: "#8FF5FB",
|
197
|
+
tamarind: "#F79133",
|
198
|
+
yellow: "#FAC919",
|
199
|
+
twinYellow: "#ECC502",
|
200
|
+
green: "#00AE63",
|
201
|
+
darkgreen: "37F28D",
|
202
|
+
purple: "#6554C0",
|
203
|
+
borderDefault: "#1B1F26",
|
204
|
+
borderLight: "#2D3440",
|
205
|
+
borderAccent: "#2471ED",
|
206
|
+
success: "#36B37E",
|
207
|
+
error: "#CC525F",
|
208
|
+
errorTint: "#ED4C5AE6",
|
209
|
+
warning: "#FFAB00",
|
210
|
+
brandLight: "#74AAFF",
|
211
|
+
brandDefault: "#2F80FF",
|
212
|
+
brandDark: "#0B326F",
|
213
|
+
brandDisabled: "#D8E7FF",
|
214
|
+
grayLight: "#B0C3DB",
|
215
|
+
grayDefault: "#657080",
|
216
|
+
grayDark: "#303740",
|
217
|
+
secondaryGray: "#242A33",
|
218
|
+
grayDisabled: "#DCE4EF",
|
219
|
+
menuBg: "$grayDark",
|
220
|
+
textHighEmp: "#F5F9FFF2",
|
221
|
+
textMedEmp: "#E0ECFFCC",
|
222
|
+
textDisabled: "#C3D0E580",
|
223
|
+
// text variants when bg is accent (blue)
|
224
|
+
// same for both themes
|
225
|
+
textAccentHigh: "#FFFFFFFA",
|
226
|
+
textAccentMedium: "#FFFFFFB8",
|
227
|
+
textAccentDisabled: "#FFFFFF7A",
|
228
|
+
surfaceDefault: "#14171C",
|
229
|
+
surfaceLight: "#1D2229",
|
230
|
+
surfaceLighter: "#272E38",
|
231
|
+
surfaceDark: "#0F1115",
|
232
|
+
backgroundDefault: "#0B0D0F",
|
233
|
+
backgroundDark: "#090B0D",
|
234
|
+
backgroundDarker: "#040405",
|
235
|
+
primaryLight: "#66A1FF",
|
236
|
+
primaryDefault: "#2471ED",
|
237
|
+
primaryDark: "#143466",
|
238
|
+
primaryDisabled: "#3666B2",
|
239
|
+
secondaryLight: "#6B7D99",
|
240
|
+
secondaryDefault: "#475366",
|
241
|
+
secondaryDark: "#2D3440",
|
242
|
+
secondaryDisabled: "#242A33",
|
243
|
+
errorDefault: "#CC525F",
|
244
|
+
errorLight: "#D87983",
|
245
|
+
errorDark: "#9D2F3B",
|
246
|
+
errorDisabled: "#621D24"
|
247
|
+
},
|
248
|
+
shadows: {
|
249
|
+
sm: "0 0 4px 0 #0000004D",
|
250
|
+
md: "0 0 8px 0 #0000004D"
|
251
|
+
},
|
252
|
+
fonts: {
|
253
|
+
sans: "Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif"
|
254
|
+
},
|
255
|
+
fontSizes: {
|
256
|
+
h1: "6rem",
|
257
|
+
h2: "3.75rem",
|
258
|
+
h3: "3rem",
|
259
|
+
h4: "2.125rem",
|
260
|
+
h5: "1.5rem",
|
261
|
+
h6: "1.25rem",
|
262
|
+
tiny: "0.625rem",
|
263
|
+
xs: "0.75rem",
|
264
|
+
sm: "0.875rem",
|
265
|
+
md: "1rem",
|
266
|
+
lg: "1.125rem"
|
267
|
+
},
|
268
|
+
fontWeights: {
|
269
|
+
semiBold: 600,
|
270
|
+
medium: 500,
|
271
|
+
regular: 400
|
272
|
+
},
|
273
|
+
lineHeights: {
|
274
|
+
h1: "5.75rem",
|
275
|
+
h2: "3.5rem",
|
276
|
+
h3: "3.25rem",
|
277
|
+
h4: "2.5rem",
|
278
|
+
h5: "2rem",
|
279
|
+
h6: "1.5rem",
|
280
|
+
tiny: "1rem",
|
281
|
+
xs: "1rem",
|
282
|
+
sm: "1.25rem",
|
283
|
+
md: "1.5rem"
|
284
|
+
},
|
285
|
+
radii: {
|
286
|
+
"0": "0.25rem",
|
287
|
+
"1": "0.5rem",
|
288
|
+
"2": "0.75rem",
|
289
|
+
"3": "1rem",
|
290
|
+
"4": "1.5rem",
|
291
|
+
round: "100rem"
|
292
|
+
},
|
293
|
+
space: {
|
294
|
+
0: "0rem",
|
295
|
+
xs: "0.5rem",
|
296
|
+
sm: "0.75rem",
|
297
|
+
md: "1rem",
|
298
|
+
lg: "1.25rem",
|
299
|
+
xl: "2.25rem",
|
300
|
+
px: "1px",
|
301
|
+
1: "0.125rem",
|
302
|
+
2: "0.25rem",
|
303
|
+
3: "0.375rem",
|
304
|
+
4: "0.5rem",
|
305
|
+
5: "0.625rem",
|
306
|
+
6: "0.75rem",
|
307
|
+
7: "0.875rem",
|
308
|
+
8: "1rem",
|
309
|
+
9: "1.25rem",
|
310
|
+
10: "1.5rem",
|
311
|
+
11: "1.75rem",
|
312
|
+
12: "2rem",
|
313
|
+
13: "2.25rem",
|
314
|
+
14: "2.5rem",
|
315
|
+
15: "2.75rem",
|
316
|
+
16: "3rem",
|
317
|
+
17: "3.5rem",
|
318
|
+
18: "4rem",
|
319
|
+
19: "4.25rem",
|
320
|
+
20: "5rem",
|
321
|
+
24: "6rem",
|
322
|
+
28: "7rem",
|
323
|
+
32: "8rem",
|
324
|
+
36: "9rem",
|
325
|
+
40: "10rem",
|
326
|
+
44: "11rem",
|
327
|
+
48: "12rem",
|
328
|
+
52: "13rem",
|
329
|
+
56: "14rem",
|
330
|
+
60: "15rem",
|
331
|
+
64: "16rem",
|
332
|
+
72: "18rem",
|
333
|
+
80: "20rem",
|
334
|
+
96: "24rem",
|
335
|
+
100: "27rem"
|
336
|
+
},
|
337
|
+
borderWidths: {
|
338
|
+
light: "1px",
|
339
|
+
normal: "2px",
|
340
|
+
bold: "3px",
|
341
|
+
extrabold: "4px",
|
342
|
+
black: "5px"
|
343
|
+
}
|
344
|
+
}
|
345
|
+
};
|
346
|
+
var defaultUtils = {
|
347
|
+
bg: (value) => ({
|
348
|
+
backgroundColor: value
|
349
|
+
}),
|
350
|
+
c: (value) => ({
|
351
|
+
color: value
|
352
|
+
}),
|
353
|
+
r: (value) => ({
|
354
|
+
borderRadius: value
|
355
|
+
}),
|
356
|
+
fs: (value) => ({
|
357
|
+
fontSize: value
|
358
|
+
}),
|
359
|
+
size: (value) => ({
|
360
|
+
height: value,
|
361
|
+
width: value
|
362
|
+
}),
|
363
|
+
w: (value) => ({
|
364
|
+
width: value
|
365
|
+
}),
|
366
|
+
h: (value) => ({
|
367
|
+
height: value
|
368
|
+
}),
|
369
|
+
p: (value) => ({
|
370
|
+
padding: value
|
371
|
+
}),
|
372
|
+
pt: (value) => ({
|
373
|
+
paddingTop: value
|
374
|
+
}),
|
375
|
+
pr: (value) => ({
|
376
|
+
paddingRight: value
|
377
|
+
}),
|
378
|
+
pb: (value) => ({
|
379
|
+
paddingBottom: value
|
380
|
+
}),
|
381
|
+
pl: (value) => ({
|
382
|
+
paddingLeft: value
|
383
|
+
}),
|
384
|
+
px: (value) => ({
|
385
|
+
paddingLeft: value,
|
386
|
+
paddingRight: value
|
387
|
+
}),
|
388
|
+
py: (value) => ({
|
389
|
+
paddingTop: value,
|
390
|
+
paddingBottom: value
|
391
|
+
}),
|
392
|
+
m: (value) => ({
|
393
|
+
margin: value
|
394
|
+
}),
|
395
|
+
mt: (value) => ({
|
396
|
+
marginTop: value
|
397
|
+
}),
|
398
|
+
mr: (value) => ({
|
399
|
+
marginRight: value
|
400
|
+
}),
|
401
|
+
mb: (value) => ({
|
402
|
+
marginBottom: value
|
403
|
+
}),
|
404
|
+
ml: (value) => ({
|
405
|
+
marginLeft: value
|
406
|
+
}),
|
407
|
+
mx: (value) => ({
|
408
|
+
marginLeft: value,
|
409
|
+
marginRight: value
|
410
|
+
}),
|
411
|
+
my: (value) => ({
|
412
|
+
marginTop: value,
|
413
|
+
marginBottom: value
|
414
|
+
})
|
415
|
+
};
|
416
|
+
var defaultMedia = {
|
417
|
+
allowMotion: "(prefers-reduced-motion: no-preference)",
|
418
|
+
sm: "(max-width: 640px)",
|
419
|
+
md: "(max-width: 768px)",
|
420
|
+
lg: "(max-width: 1024px)",
|
421
|
+
xl: "(max-width: 1280px)",
|
422
|
+
"2xl": "(max-width: 1536px)",
|
423
|
+
ls: "(max-width: 1024px) and (orientation: landscape)"
|
424
|
+
};
|
425
|
+
var defaultThemeMap = __spreadProps(__spreadValues({}, defaultStitchesThemeMap), {
|
426
|
+
width: "space",
|
427
|
+
height: "space",
|
428
|
+
minWidth: "space",
|
429
|
+
maxWidth: "space",
|
430
|
+
minHeight: "space",
|
431
|
+
maxHeight: "space",
|
432
|
+
flexBasis: "space",
|
433
|
+
gridTemplateColumns: "space",
|
434
|
+
gridTemplateRows: "space",
|
435
|
+
blockSize: "space",
|
436
|
+
minBlockSize: "space",
|
437
|
+
maxBlockSize: "space",
|
438
|
+
inlineSize: "space",
|
439
|
+
minInlineSize: "space",
|
440
|
+
maxInlineSize: "space"
|
441
|
+
});
|
442
|
+
|
443
|
+
// src/Theme/stitches.config.ts
|
444
|
+
var HmsStitches = createStitches({
|
445
|
+
prefix: "hms-ui",
|
446
|
+
theme: __spreadProps(__spreadValues({}, baseConfig.theme), {
|
447
|
+
colors: __spreadValues(__spreadValues({}, baseConfig.theme.colors), darkTheme.colors)
|
448
|
+
}),
|
449
|
+
media: defaultMedia,
|
450
|
+
utils: defaultUtils,
|
451
|
+
themeMap: defaultThemeMap
|
452
|
+
});
|
453
|
+
var {
|
454
|
+
theme,
|
455
|
+
createTheme: createThemeBase,
|
456
|
+
styled,
|
457
|
+
globalCss,
|
458
|
+
keyframes,
|
459
|
+
css,
|
460
|
+
getCssText,
|
461
|
+
config
|
462
|
+
} = HmsStitches;
|
463
|
+
var globalStyles = globalCss({
|
464
|
+
"*": {
|
465
|
+
fontFamily: "$sans",
|
466
|
+
boxSizing: "border-box",
|
467
|
+
borderWidth: 0,
|
468
|
+
borderStyle: "solid"
|
469
|
+
},
|
470
|
+
body: {
|
471
|
+
margin: 0
|
472
|
+
},
|
473
|
+
"#root": {
|
474
|
+
height: "100%",
|
475
|
+
overscrollBehaviorY: "none"
|
476
|
+
},
|
477
|
+
"::-webkit-scrollbar-track": {
|
478
|
+
WebkitBoxShadow: "inset 0 0 6px rgba(0, 0, 0, 0.3)",
|
479
|
+
boxShadow: "inset 0 0 6px rgba(0, 0, 0, 0.3)",
|
480
|
+
backgroundColor: "transparent"
|
481
|
+
},
|
482
|
+
"::-webkit-scrollbar": {
|
483
|
+
width: "6px",
|
484
|
+
height: "6px",
|
485
|
+
backgroundColor: "transparent"
|
486
|
+
},
|
487
|
+
"::-webkit-scrollbar-thumb": {
|
488
|
+
backgroundColor: "#657080",
|
489
|
+
borderRadius: "5px"
|
490
|
+
},
|
491
|
+
/**
|
492
|
+
* needed for safari. Safari
|
493
|
+
* adds background color on its own
|
494
|
+
* on hls-viewer on fullscreen
|
495
|
+
*/
|
496
|
+
"#hls-viewer-dark:fullscreen": {
|
497
|
+
backgroundColor: "black !important"
|
498
|
+
},
|
499
|
+
"#hls-viewer-light:fullscreen": {
|
500
|
+
backgroundColor: "white !important"
|
501
|
+
}
|
502
|
+
});
|
503
|
+
var createTheme = ({
|
504
|
+
themeType,
|
505
|
+
theme: theme2,
|
506
|
+
className
|
507
|
+
}) => {
|
508
|
+
if (!themeType) {
|
509
|
+
throw new Error("Theme type is required");
|
510
|
+
}
|
511
|
+
return createThemeBase(
|
512
|
+
className || `${themeType}-theme`,
|
513
|
+
merge(baseConfig.theme, themeType === "dark" ? darkTheme : lightTheme, theme2 || {})
|
514
|
+
);
|
515
|
+
};
|
516
|
+
|
517
|
+
// src/utils/styles.ts
|
518
|
+
init_define_process_env();
|
519
|
+
var flexCenter = {
|
520
|
+
display: "flex",
|
521
|
+
justifyContent: "center",
|
522
|
+
alignItems: "center"
|
523
|
+
};
|
524
|
+
var textEllipsis = (width) => ({
|
525
|
+
maxWidth: width,
|
526
|
+
overflow: "hidden",
|
527
|
+
textOverflow: "ellipsis",
|
528
|
+
whiteSpace: "nowrap",
|
529
|
+
minWidth: 0
|
530
|
+
});
|
531
|
+
|
532
|
+
// src/IconButton/IconButton.tsx
|
533
|
+
init_define_process_env();
|
534
|
+
var IconButton = styled("button", __spreadProps(__spreadValues({}, flexCenter), {
|
535
|
+
outline: "none",
|
536
|
+
border: "none",
|
537
|
+
padding: "$2",
|
538
|
+
r: "$0",
|
539
|
+
cursor: "pointer",
|
540
|
+
backgroundColor: "transparent",
|
541
|
+
color: "$textPrimary",
|
542
|
+
"&:not([disabled]):focus-visible": {
|
543
|
+
boxShadow: "0 0 0 3px $colors$brandDefault"
|
544
|
+
},
|
545
|
+
"&:not([disabled]):focus": {
|
546
|
+
outline: "none"
|
547
|
+
},
|
548
|
+
"&:not([disabled]):hover": {
|
549
|
+
backgroundColor: "$iconHoverBg"
|
550
|
+
},
|
551
|
+
"&[disabled]": {
|
552
|
+
opacity: 0.5,
|
553
|
+
cursor: "not-allowed"
|
554
|
+
},
|
555
|
+
"&:focus": {
|
556
|
+
outline: "none"
|
557
|
+
},
|
558
|
+
variants: {
|
559
|
+
active: {
|
560
|
+
false: {
|
561
|
+
backgroundColor: "$secondaryDark",
|
562
|
+
color: "$textPrimary",
|
563
|
+
"&:not([disabled]):hover": {
|
564
|
+
backgroundColor: "$secondaryDefault"
|
565
|
+
}
|
566
|
+
},
|
567
|
+
true: {
|
568
|
+
"&:not([disabled]):hover": {
|
569
|
+
backgroundColor: "$iconHoverBg"
|
570
|
+
}
|
571
|
+
}
|
572
|
+
}
|
573
|
+
}
|
574
|
+
}));
|
575
|
+
|
576
|
+
// src/IconButton/index.tsx
|
577
|
+
init_define_process_env();
|
578
|
+
|
579
|
+
// src/utils/animations.ts
|
580
|
+
init_define_process_env();
|
581
|
+
var slideDown = (controller) => keyframes({
|
582
|
+
from: { height: 0 },
|
583
|
+
to: { height: `var(${controller})` }
|
584
|
+
});
|
585
|
+
var slideUp = (controller) => keyframes({
|
586
|
+
from: { height: `var(${controller})` },
|
587
|
+
to: { height: 0 }
|
588
|
+
});
|
589
|
+
var dialogOpen = keyframes({
|
590
|
+
"0%": { opacity: 0, transform: "translate(-50%, -48%) scale(.90)" },
|
591
|
+
"100%": { opacity: 1, transform: "translate(-50%, -50%) scale(1)" }
|
592
|
+
});
|
593
|
+
var dialogClose = keyframes({
|
594
|
+
"0%": { opacity: 1, transform: "translate(-50%, -50%) scale(1)" },
|
595
|
+
"100%": { opacity: 0, transform: "translate(-50%, -48%) scale(.90)" }
|
596
|
+
});
|
597
|
+
var slideUpAndFade = (start = "2px") => keyframes({
|
598
|
+
"0%": { opacity: 0, transform: `translateY(${start})` },
|
599
|
+
"100%": { opacity: 1, transform: "translateY(0)" }
|
600
|
+
});
|
601
|
+
var slideRightAndFade = (start = "-2px") => keyframes({
|
602
|
+
"0%": { opacity: 0, transform: `translateX(${start})` },
|
603
|
+
"100%": { opacity: 1, transform: "translateX(0)" }
|
604
|
+
});
|
605
|
+
var slideDownAndFade = (start = "-2px") => keyframes({
|
606
|
+
"0%": { opacity: 0, transform: `translateY(${start})` },
|
607
|
+
"100%": { opacity: 1, transform: "translateY(0)" }
|
608
|
+
});
|
609
|
+
var slideLeftAndFade = (start = "2px") => keyframes({
|
610
|
+
"0%": { opacity: 0, transform: `translateX(${start})` },
|
611
|
+
"100%": { opacity: 1, transform: "translateX(0)" }
|
612
|
+
});
|
613
|
+
var slideLeftAndFadeOut = (end = "-100%") => keyframes({
|
614
|
+
"0%": { opacity: 1, transform: `translateX(0)` },
|
615
|
+
"100%": { opacity: 0, transform: `translateX(${end})` }
|
616
|
+
});
|
617
|
+
var popoverAnimation = {
|
618
|
+
"@media (prefers-reduced-motion: no-preference)": {
|
619
|
+
animationDuration: "400ms",
|
620
|
+
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
621
|
+
willChange: "transform, opacity",
|
622
|
+
'&[data-state="open"]': {
|
623
|
+
'&[data-side="top"]': { animationName: slideDownAndFade() },
|
624
|
+
'&[data-side="right"]': { animationName: slideLeftAndFade() },
|
625
|
+
'&[data-side="bottom"]': { animationName: slideUpAndFade() },
|
626
|
+
'&[data-side="left"]': { animationName: slideRightAndFade() }
|
627
|
+
}
|
628
|
+
}
|
629
|
+
};
|
630
|
+
var toastAnimation = {
|
631
|
+
"@media (prefers-reduced-motion: no-preference)": {
|
632
|
+
animationDuration: "500ms",
|
633
|
+
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
634
|
+
willChange: "transform, opacity",
|
635
|
+
animationName: slideLeftAndFadeOut(),
|
636
|
+
'&[data-state="open"]': {
|
637
|
+
animationName: slideRightAndFade("-100%")
|
638
|
+
},
|
639
|
+
'&[data-swipe="move"]': {
|
640
|
+
transform: "translateX(var(--radix-toast-swipe-move-x))"
|
641
|
+
},
|
642
|
+
'&[data-swipe="cancel"]': {
|
643
|
+
transform: "translateX(0)",
|
644
|
+
transition: "transform 200ms ease-out"
|
645
|
+
},
|
646
|
+
'&[data-swipe="end"]': {
|
647
|
+
animation: `${slideLeftAndFadeOut()} 100ms ease-out forwards`
|
648
|
+
}
|
649
|
+
}
|
650
|
+
};
|
651
|
+
|
652
|
+
// src/Tooltip/Tooltip.tsx
|
653
|
+
init_define_process_env();
|
654
|
+
import React, { useState } from "react";
|
655
|
+
import * as BaseTooltip from "@radix-ui/react-tooltip";
|
656
|
+
var TooltipBox = styled(BaseTooltip.Content, {
|
657
|
+
fontFamily: "$sans",
|
658
|
+
borderRadius: "$2",
|
659
|
+
padding: "$2 $4",
|
660
|
+
fontSize: "$xs",
|
661
|
+
color: "$textHighEmp",
|
662
|
+
backgroundColor: "$surfaceLight",
|
663
|
+
"@media (prefers-reduced-motion: no-preference)": {
|
664
|
+
animationDuration: "400ms",
|
665
|
+
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
666
|
+
willChange: "transform, opacity",
|
667
|
+
'&[data-state="delayed-open"]': {
|
668
|
+
'&[data-side="top"]': { animationName: slideDownAndFade() },
|
669
|
+
'&[data-side="right"]': { animationName: slideLeftAndFade() },
|
670
|
+
'&[data-side="bottom"]': { animationName: slideUpAndFade() },
|
671
|
+
'&[data-side="left"]': { animationName: slideRightAndFade() }
|
672
|
+
}
|
673
|
+
},
|
674
|
+
variants: {
|
675
|
+
outlined: {
|
676
|
+
true: {
|
677
|
+
backgroundColor: "$backgroundDark",
|
678
|
+
border: "solid $space$px $borderLight"
|
679
|
+
}
|
680
|
+
}
|
681
|
+
}
|
682
|
+
});
|
683
|
+
var TooltipTrigger = styled(BaseTooltip.Trigger, {
|
684
|
+
fontFamily: "$sans"
|
685
|
+
});
|
686
|
+
var TooltipRoot = BaseTooltip.Root;
|
687
|
+
var Tooltip = ({
|
688
|
+
children,
|
689
|
+
title,
|
690
|
+
triggerCss,
|
691
|
+
boxCss,
|
692
|
+
outlined = true,
|
693
|
+
side = "bottom",
|
694
|
+
align = "center",
|
695
|
+
disabled = false,
|
696
|
+
delayDuration = 200
|
697
|
+
}) => {
|
698
|
+
const [open, setOpen] = useState(false);
|
699
|
+
return /* @__PURE__ */ React.createElement(BaseTooltip.Provider, null, /* @__PURE__ */ React.createElement(TooltipRoot, { delayDuration, open: open && !disabled, onOpenChange: setOpen }, /* @__PURE__ */ React.createElement(TooltipTrigger, { css: __spreadValues({}, triggerCss), asChild: true }, children), /* @__PURE__ */ React.createElement(TooltipBox, { sideOffset: 10, side, align, outlined, css: __spreadValues({}, boxCss) }, title)));
|
700
|
+
};
|
701
|
+
|
702
|
+
// src/Tooltip/index.ts
|
703
|
+
init_define_process_env();
|
704
|
+
|
705
|
+
// src/Prebuilt/common/constants.js
|
706
|
+
init_define_process_env();
|
707
|
+
import { parsedUserAgent } from "@100mslive/react-sdk";
|
708
|
+
var DEFAULT_HLS_ROLE_KEY = "HLS_VIEWER_ROLE";
|
709
|
+
var DEFAULT_HLS_VIEWER_ROLE = "hls-viewer";
|
710
|
+
var DEFAULT_WAITING_VIEWER_ROLE = "waiting-room";
|
711
|
+
var QUERY_PARAM_SKIP_PREVIEW = "skip_preview";
|
712
|
+
var QUERY_PARAM_SKIP_PREVIEW_HEADFUL = "skip_preview_headful";
|
713
|
+
var QUERY_PARAM_NAME = "name";
|
714
|
+
var QUERY_PARAM_VIEW_MODE = "ui_mode";
|
715
|
+
var QUERY_PARAM_AUTH_TOKEN = "auth_token";
|
716
|
+
var QUERY_PARAM_PREVIEW_AS_ROLE = "preview_as_role";
|
717
|
+
var UI_MODE_ACTIVE_SPEAKER = "activespeaker";
|
718
|
+
var UI_MODE_GRID = "grid";
|
719
|
+
var MAX_TOASTS = 5;
|
720
|
+
var RTMP_RECORD_RESOLUTION_MIN = 480;
|
721
|
+
var RTMP_RECORD_RESOLUTION_MAX = 1280;
|
722
|
+
var RTMP_RECORD_DEFAULT_RESOLUTION = {
|
723
|
+
width: 1280,
|
724
|
+
height: 720
|
725
|
+
};
|
726
|
+
var EMOJI_REACTION_TYPE = "EMOJI_REACTION";
|
727
|
+
var CHAT_SELECTOR = {
|
728
|
+
PEER_ID: "peer_id",
|
729
|
+
ROLE: "role"
|
730
|
+
};
|
731
|
+
var APP_DATA = {
|
732
|
+
uiSettings: "uiSettings",
|
733
|
+
chatOpen: "chatOpen",
|
734
|
+
chatSelector: "chatSelector",
|
735
|
+
chatDraft: "chatDraft",
|
736
|
+
appConfig: "appConfig",
|
737
|
+
recordingUrl: "recordingUrl",
|
738
|
+
sidePane: "sidePane",
|
739
|
+
hlsStats: "hlsStats",
|
740
|
+
hlsViewerRole: "hlsViewerRole",
|
741
|
+
waitingViewerRole: "waitingViewerRole",
|
742
|
+
subscribedNotifications: "subscribedNotifications",
|
743
|
+
logo: "logo",
|
744
|
+
tokenEndpoint: "tokenEndpoint",
|
745
|
+
appLayout: "appLayout",
|
746
|
+
hlsStarted: "hlsStarted",
|
747
|
+
rtmpStarted: "rtmpStarted",
|
748
|
+
recordingStarted: "recordingStarted",
|
749
|
+
embedConfig: "embedConfig",
|
750
|
+
pinnedTrackId: "pinnedTrackId",
|
751
|
+
dropdownList: "dropdownList",
|
752
|
+
authToken: "authToken",
|
753
|
+
pdfConfig: "pdfConfig"
|
754
|
+
};
|
755
|
+
var UI_SETTINGS = {
|
756
|
+
isAudioOnly: "isAudioOnly",
|
757
|
+
isHeadless: "isHeadless",
|
758
|
+
maxTileCount: "maxTileCount",
|
759
|
+
uiViewMode: "uiViewMode",
|
760
|
+
showStatsOnTiles: "showStatsOnTiles",
|
761
|
+
enableAmbientMusic: "enableAmbientMusic",
|
762
|
+
mirrorLocalVideo: "mirrorLocalVideo",
|
763
|
+
activeSpeakerSorting: "activeSpeakerSorting",
|
764
|
+
hideLocalVideo: "hideLocalVideo"
|
765
|
+
};
|
766
|
+
var SIDE_PANE_OPTIONS = {
|
767
|
+
PARTICIPANTS: "Participants",
|
768
|
+
CHAT: "Chat",
|
769
|
+
STREAMING: "STREAMING",
|
770
|
+
TILES: "TILES",
|
771
|
+
SCREEN_TILES: "SCREEN_TILES"
|
772
|
+
};
|
773
|
+
var SUBSCRIBED_NOTIFICATIONS = {
|
774
|
+
PEER_JOINED: "PEER_JOINED",
|
775
|
+
PEER_LEFT: "PEER_LEFT",
|
776
|
+
METADATA_UPDATED: "METADATA_UPDATED",
|
777
|
+
NEW_MESSAGE: "NEW_MESSAGE",
|
778
|
+
ERROR: "ERROR"
|
779
|
+
};
|
780
|
+
var HLS_TIMED_METADATA_DOC_URL = "https://www.100ms.live/docs/javascript/v2/how--to-guides/record-and-live-stream/hls/hls-timed-metadata";
|
781
|
+
var REMOTE_STOP_SCREENSHARE_TYPE = "REMOTE_STOP_SCREENSHARE";
|
782
|
+
var _a, _b;
|
783
|
+
var isChrome = ((_b = (_a = parsedUserAgent.getBrowser()) == null ? void 0 : _a.name) == null ? void 0 : _b.toLowerCase()) === "chrome";
|
784
|
+
var _a2, _b2;
|
785
|
+
var isFirefox = ((_b2 = (_a2 = parsedUserAgent.getBrowser()) == null ? void 0 : _a2.name) == null ? void 0 : _b2.toLowerCase()) === "firefox";
|
786
|
+
var _a3, _b3;
|
787
|
+
var isSafari = ((_b3 = (_a3 = parsedUserAgent.getBrowser()) == null ? void 0 : _a3.name) == null ? void 0 : _b3.toLowerCase()) === "safari";
|
788
|
+
var _a4, _b4;
|
789
|
+
var isIOS = ((_b4 = (_a4 = parsedUserAgent.getOS()) == null ? void 0 : _a4.name) == null ? void 0 : _b4.toLowerCase()) === "ios";
|
790
|
+
var _a5, _b5;
|
791
|
+
var isMacOS = ((_b5 = (_a5 = parsedUserAgent.getOS()) == null ? void 0 : _a5.name) == null ? void 0 : _b5.toLowerCase()) === "mac os";
|
792
|
+
var _a6, _b6;
|
793
|
+
var isAndroid = ((_b6 = (_a6 = parsedUserAgent.getOS()) == null ? void 0 : _a6.name) == null ? void 0 : _b6.toLowerCase()) === "android";
|
794
|
+
var isIPadOS = false;
|
795
|
+
var FEATURE_LIST = {
|
796
|
+
AUDIO_ONLY_SCREENSHARE: "audioscreenshare",
|
797
|
+
AUDIO_PLAYLIST: "audioplaylist",
|
798
|
+
VIDEO_PLAYLIST: "videoplaylist",
|
799
|
+
EMOJI_REACTION: "emojireaction",
|
800
|
+
AUDIO_PLUGINS: "audioplugins",
|
801
|
+
VIDEO_PLUGINS: "videoplugins",
|
802
|
+
WHITEBOARD: "whiteboard",
|
803
|
+
CHANGE_NAME: "changename",
|
804
|
+
FULLSCREEN: "fullscreen",
|
805
|
+
PICTURE_IN_PICTURE: "pip",
|
806
|
+
STARTS_FOR_NERDS: "statsfornerds",
|
807
|
+
EMBED_URL: "embedurl",
|
808
|
+
BRB: "brb",
|
809
|
+
HAND_RAISE: "handraise",
|
810
|
+
CHAT: "chat",
|
811
|
+
PIN_TILE: "pintile"
|
812
|
+
};
|
813
|
+
var SESSION_STORE_KEY = {
|
814
|
+
TRANSCRIPTION_STATE: "transcriptionState",
|
815
|
+
PINNED_MESSAGE: "pinnedMessage",
|
816
|
+
SPOTLIGHT: "spotlight"
|
817
|
+
};
|
818
|
+
|
819
|
+
// src/Prebuilt/IconButton.jsx
|
820
|
+
init_define_process_env();
|
821
|
+
var IconButton2 = styled(IconButton, {
|
822
|
+
width: "$14",
|
823
|
+
height: "$14",
|
824
|
+
border: "1px solid $borderLight",
|
825
|
+
r: "$1",
|
826
|
+
variants: {
|
827
|
+
active: {
|
828
|
+
false: {
|
829
|
+
border: "1px solid transparent",
|
830
|
+
color: "$white"
|
831
|
+
}
|
832
|
+
}
|
833
|
+
}
|
834
|
+
});
|
835
|
+
var IconButton_default = IconButton2;
|
836
|
+
|
837
|
+
export {
|
838
|
+
__spreadValues,
|
839
|
+
__spreadProps,
|
840
|
+
__objRest,
|
841
|
+
__commonJS,
|
842
|
+
__export,
|
843
|
+
__toESM,
|
844
|
+
__publicField,
|
845
|
+
__privateGet,
|
846
|
+
__privateAdd,
|
847
|
+
__privateSet,
|
848
|
+
__async,
|
849
|
+
init_define_process_env,
|
850
|
+
define_process_env_default,
|
851
|
+
darkTheme,
|
852
|
+
lightTheme,
|
853
|
+
theme,
|
854
|
+
createThemeBase,
|
855
|
+
styled,
|
856
|
+
globalCss,
|
857
|
+
keyframes,
|
858
|
+
css,
|
859
|
+
getCssText,
|
860
|
+
config,
|
861
|
+
globalStyles,
|
862
|
+
createTheme,
|
863
|
+
flexCenter,
|
864
|
+
textEllipsis,
|
865
|
+
IconButton,
|
866
|
+
slideDown,
|
867
|
+
slideUp,
|
868
|
+
dialogOpen,
|
869
|
+
dialogClose,
|
870
|
+
slideLeftAndFade,
|
871
|
+
popoverAnimation,
|
872
|
+
toastAnimation,
|
873
|
+
Tooltip,
|
874
|
+
DEFAULT_HLS_ROLE_KEY,
|
875
|
+
DEFAULT_HLS_VIEWER_ROLE,
|
876
|
+
DEFAULT_WAITING_VIEWER_ROLE,
|
877
|
+
QUERY_PARAM_SKIP_PREVIEW,
|
878
|
+
QUERY_PARAM_SKIP_PREVIEW_HEADFUL,
|
879
|
+
QUERY_PARAM_NAME,
|
880
|
+
QUERY_PARAM_VIEW_MODE,
|
881
|
+
QUERY_PARAM_AUTH_TOKEN,
|
882
|
+
QUERY_PARAM_PREVIEW_AS_ROLE,
|
883
|
+
UI_MODE_ACTIVE_SPEAKER,
|
884
|
+
UI_MODE_GRID,
|
885
|
+
MAX_TOASTS,
|
886
|
+
RTMP_RECORD_RESOLUTION_MIN,
|
887
|
+
RTMP_RECORD_RESOLUTION_MAX,
|
888
|
+
RTMP_RECORD_DEFAULT_RESOLUTION,
|
889
|
+
EMOJI_REACTION_TYPE,
|
890
|
+
CHAT_SELECTOR,
|
891
|
+
APP_DATA,
|
892
|
+
UI_SETTINGS,
|
893
|
+
SIDE_PANE_OPTIONS,
|
894
|
+
SUBSCRIBED_NOTIFICATIONS,
|
895
|
+
HLS_TIMED_METADATA_DOC_URL,
|
896
|
+
REMOTE_STOP_SCREENSHARE_TYPE,
|
897
|
+
isChrome,
|
898
|
+
isSafari,
|
899
|
+
isIOS,
|
900
|
+
isMacOS,
|
901
|
+
isAndroid,
|
902
|
+
isIPadOS,
|
903
|
+
FEATURE_LIST,
|
904
|
+
SESSION_STORE_KEY,
|
905
|
+
IconButton_default
|
906
|
+
};
|
907
|
+
//# sourceMappingURL=chunk-KYYP6ZVK.js.map
|