@100mslive/roomkit-react 0.4.3-alpha.2 → 0.4.3-alpha.4
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/Prebuilt/App.d.ts +0 -1
- package/dist/Prebuilt/AppContext.d.ts +0 -1
- package/dist/index.cjs.css +194 -219
- package/dist/index.cjs.css.map +3 -3
- package/dist/index.cjs.js +8 -56
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +194 -219
- package/dist/index.css.map +3 -3
- package/dist/index.js +8 -56
- package/dist/index.js.map +3 -3
- package/dist/meta.cjs.json +23 -41
- package/dist/meta.esbuild.json +23 -41
- package/package.json +8 -9
- package/src/Accordion/Accordion.tsx +0 -88
- package/src/Accordion/index.ts +0 -8
- package/src/AudioLevel/AudioLevel.tsx +0 -84
- package/src/AudioLevel/audio-level.png +0 -0
- package/src/AudioLevel/index.ts +0 -2
- package/src/AudioLevel/useBorderAudioLevel.tsx +0 -34
- package/src/Avatar/Avatar.tsx +0 -60
- package/src/Avatar/getAvatarBg.ts +0 -50
- package/src/Avatar/index.ts +0 -1
- package/src/Button/Button.tsx +0 -210
- package/src/Button/index.tsx +0 -1
- package/src/Checkbox/Checkbox.tsx +0 -35
- package/src/Checkbox/index.tsx +0 -1
- package/src/Collapsible/Collapsible.tsx +0 -34
- package/src/Collapsible/index.tsx +0 -1
- package/src/Diagnostics/AudioTest.tsx +0 -188
- package/src/Diagnostics/BrowserTest.tsx +0 -141
- package/src/Diagnostics/ConnectivityTest.tsx +0 -383
- package/src/Diagnostics/DeviceSelector.jsx +0 -71
- package/src/Diagnostics/Diagnostics.tsx +0 -190
- package/src/Diagnostics/DiagnosticsContext.ts +0 -46
- package/src/Diagnostics/VideoTest.tsx +0 -72
- package/src/Diagnostics/components.tsx +0 -70
- package/src/Diagnostics/index.ts +0 -1
- package/src/Divider/Divider.tsx +0 -45
- package/src/Divider/index.ts +0 -1
- package/src/Dropdown/Dropdown.tsx +0 -145
- package/src/Dropdown/index.tsx +0 -1
- package/src/Fieldset/Fieldset.tsx +0 -11
- package/src/Fieldset/index.tsx +0 -1
- package/src/Footer/Footer.tsx +0 -47
- package/src/Footer/index.tsx +0 -1
- package/src/IconButton/IconButton.tsx +0 -43
- package/src/IconButton/index.tsx +0 -1
- package/src/Input/Input.tsx +0 -109
- package/src/Input/index.tsx +0 -1
- package/src/Label/Label.tsx +0 -8
- package/src/Label/index.ts +0 -1
- package/src/Layout/Box.tsx +0 -3
- package/src/Layout/Flex.tsx +0 -76
- package/src/Layout/index.tsx +0 -2
- package/src/Link/Link.tsx +0 -54
- package/src/Link/index.tsx +0 -2
- package/src/Loading/Loading.tsx +0 -30
- package/src/Loading/index.ts +0 -1
- package/src/Modal/Dialog.tsx +0 -57
- package/src/Modal/DialogContent.tsx +0 -65
- package/src/Modal/index.ts +0 -1
- package/src/Pagination/StyledPagination.tsx +0 -70
- package/src/Pagination/index.tsx +0 -1
- package/src/Popover/index.tsx +0 -34
- package/src/Prebuilt/App.tsx +0 -323
- package/src/Prebuilt/AppContext.tsx +0 -34
- package/src/Prebuilt/AppStateContext.tsx +0 -95
- package/src/Prebuilt/IconButton.tsx +0 -26
- package/src/Prebuilt/common/PeersSorter.ts +0 -111
- package/src/Prebuilt/common/constants.ts +0 -151
- package/src/Prebuilt/common/hooks.ts +0 -257
- package/src/Prebuilt/common/utils.js +0 -185
- package/src/Prebuilt/components/AppData/AppData.tsx +0 -208
- package/src/Prebuilt/components/AppData/useChatState.js +0 -18
- package/src/Prebuilt/components/AppData/useSheet.ts +0 -33
- package/src/Prebuilt/components/AppData/useSidepane.js +0 -99
- package/src/Prebuilt/components/AppData/useSidepaneResetOnLayoutUpdate.tsx +0 -22
- package/src/Prebuilt/components/AppData/useUISettings.js +0 -212
- package/src/Prebuilt/components/AudioVideoToggle.tsx +0 -411
- package/src/Prebuilt/components/AuthToken.tsx +0 -148
- package/src/Prebuilt/components/CaptionIcon.tsx +0 -27
- package/src/Prebuilt/components/Chat/ArrowNavigation.tsx +0 -44
- package/src/Prebuilt/components/Chat/Chat.tsx +0 -190
- package/src/Prebuilt/components/Chat/ChatActions.tsx +0 -314
- package/src/Prebuilt/components/Chat/ChatBody.tsx +0 -493
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +0 -316
- package/src/Prebuilt/components/Chat/ChatSelector.tsx +0 -228
- package/src/Prebuilt/components/Chat/ChatSelectorContainer.tsx +0 -158
- package/src/Prebuilt/components/Chat/ChatStates.tsx +0 -73
- package/src/Prebuilt/components/Chat/EmptyChat.tsx +0 -58
- package/src/Prebuilt/components/Chat/MwebChatOption.tsx +0 -24
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +0 -140
- package/src/Prebuilt/components/Chat/StickIndicator.tsx +0 -24
- package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +0 -32
- package/src/Prebuilt/components/Chat/useUnreadCount.ts +0 -19
- package/src/Prebuilt/components/Chat/utils.ts +0 -11
- package/src/Prebuilt/components/ChatSettings.tsx +0 -68
- package/src/Prebuilt/components/Chip.tsx +0 -40
- package/src/Prebuilt/components/ConferenceScreen.tsx +0 -205
- package/src/Prebuilt/components/Connection/ConnectionIndicator.tsx +0 -89
- package/src/Prebuilt/components/Connection/TileConnection.tsx +0 -93
- package/src/Prebuilt/components/Connection/connectionQualityUtils.js +0 -37
- package/src/Prebuilt/components/EmojiReaction.jsx +0 -100
- package/src/Prebuilt/components/EndCallFeedback/Feedback.tsx +0 -71
- package/src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx +0 -381
- package/src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx +0 -64
- package/src/Prebuilt/components/ErrorBoundary.jsx +0 -102
- package/src/Prebuilt/components/Footer/ChatToggle.tsx +0 -53
- package/src/Prebuilt/components/Footer/EmojiCard.jsx +0 -34
- package/src/Prebuilt/components/Footer/Footer.tsx +0 -115
- package/src/Prebuilt/components/Footer/PaginatedParticipants.tsx +0 -124
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +0 -478
- package/src/Prebuilt/components/Footer/PollsToggle.tsx +0 -37
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +0 -183
- package/src/Prebuilt/components/Footer/RoleOptions.tsx +0 -215
- package/src/Prebuilt/components/Footer/WhiteboardToggle.tsx +0 -52
- package/src/Prebuilt/components/FullPageProgress.tsx +0 -22
- package/src/Prebuilt/components/HMSVideo/Controls.jsx +0 -22
- package/src/Prebuilt/components/HMSVideo/FullscreenButton.tsx +0 -13
- package/src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx +0 -72
- package/src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx +0 -15
- package/src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx +0 -248
- package/src/Prebuilt/components/HMSVideo/HMSVideo.jsx +0 -75
- package/src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx +0 -86
- package/src/Prebuilt/components/HMSVideo/PlayPauseButton.tsx +0 -27
- package/src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx +0 -158
- package/src/Prebuilt/components/HMSVideo/PlayerContext.tsx +0 -15
- package/src/Prebuilt/components/HMSVideo/SeekControl.tsx +0 -22
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +0 -100
- package/src/Prebuilt/components/HMSVideo/VideoTime.tsx +0 -52
- package/src/Prebuilt/components/HMSVideo/VolumeControl.tsx +0 -70
- package/src/Prebuilt/components/HMSVideo/index.ts +0 -24
- package/src/Prebuilt/components/HMSVideo/utils.ts +0 -37
- package/src/Prebuilt/components/Header/Header.tsx +0 -52
- package/src/Prebuilt/components/Header/HeaderComponents.jsx +0 -57
- package/src/Prebuilt/components/Header/ParticipantFilter.jsx +0 -89
- package/src/Prebuilt/components/Header/RoomDetailsHeader.tsx +0 -51
- package/src/Prebuilt/components/Header/StreamActions.tsx +0 -297
- package/src/Prebuilt/components/Header/common.jsx +0 -196
- package/src/Prebuilt/components/Header/index.tsx +0 -1
- package/src/Prebuilt/components/HlsStatsOverlay.jsx +0 -89
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx +0 -167
- package/src/Prebuilt/components/Input/KeyboardInputManager.js +0 -107
- package/src/Prebuilt/components/InsetTile.tsx +0 -136
- package/src/Prebuilt/components/LayoutModeSelector.tsx +0 -112
- package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +0 -166
- package/src/Prebuilt/components/Leave/EndSessionContent.tsx +0 -64
- package/src/Prebuilt/components/Leave/LeaveAtoms.tsx +0 -26
- package/src/Prebuilt/components/Leave/LeaveCard.tsx +0 -36
- package/src/Prebuilt/components/Leave/LeaveRoom.tsx +0 -82
- package/src/Prebuilt/components/Leave/LeaveSessionContent.tsx +0 -61
- package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +0 -135
- package/src/Prebuilt/components/LeaveScreen.tsx +0 -71
- package/src/Prebuilt/components/MoreSettings/ActionTile.jsx +0 -60
- package/src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx +0 -139
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +0 -143
- package/src/Prebuilt/components/MoreSettings/CaptionModal.tsx +0 -37
- package/src/Prebuilt/components/MoreSettings/ChangeNameContent.tsx +0 -123
- package/src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx +0 -78
- package/src/Prebuilt/components/MoreSettings/EmbedUrl.jsx +0 -81
- package/src/Prebuilt/components/MoreSettings/FullScreenItem.tsx +0 -26
- package/src/Prebuilt/components/MoreSettings/MoreSettings.tsx +0 -29
- package/src/Prebuilt/components/MoreSettings/MuteAllContent.tsx +0 -81
- package/src/Prebuilt/components/MoreSettings/MuteAllModal.tsx +0 -72
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +0 -282
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +0 -387
- package/src/Prebuilt/components/MoreSettings/constants.ts +0 -14
- package/src/Prebuilt/components/MwebLandscapePrompt.tsx +0 -81
- package/src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx +0 -39
- package/src/Prebuilt/components/Notifications/ChatNotifications.tsx +0 -34
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
- package/src/Prebuilt/components/Notifications/DeviceInUseError.tsx +0 -86
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
- package/src/Prebuilt/components/Notifications/HLSFailureModal.tsx +0 -71
- package/src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx +0 -78
- package/src/Prebuilt/components/Notifications/InitErrorModal.tsx +0 -42
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
- package/src/Prebuilt/components/Notifications/Notifications.tsx +0 -65
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +0 -52
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +0 -144
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +0 -33
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +0 -24
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +0 -61
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +0 -41
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +0 -63
- package/src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx +0 -58
- package/src/Prebuilt/components/Notifications/index.tsx +0 -1
- package/src/Prebuilt/components/PIP/PIPChat.tsx +0 -292
- package/src/Prebuilt/components/PIP/PIPChatOption.tsx +0 -18
- package/src/Prebuilt/components/PIP/PIPComponent.tsx +0 -90
- package/src/Prebuilt/components/PIP/PIPManager.ts +0 -335
- package/src/Prebuilt/components/PIP/PIPProvider.tsx +0 -56
- package/src/Prebuilt/components/PIP/PIPWindow.tsx +0 -13
- package/src/Prebuilt/components/PIP/SetupMediaSession.js +0 -60
- package/src/Prebuilt/components/PIP/context.ts +0 -10
- package/src/Prebuilt/components/PIP/index.jsx +0 -6
- package/src/Prebuilt/components/PIP/pip.test.js +0 -72
- package/src/Prebuilt/components/PIP/pipUtils.js +0 -183
- package/src/Prebuilt/components/PIP/usePIPChat.tsx +0 -105
- package/src/Prebuilt/components/PIP/usePIPWindow.tsx +0 -12
- package/src/Prebuilt/components/Pagination.tsx +0 -60
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +0 -248
- package/src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx +0 -142
- package/src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx +0 -74
- package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +0 -324
- package/src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx +0 -64
- package/src/Prebuilt/components/Polls/Polls.tsx +0 -31
- package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +0 -76
- package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +0 -116
- package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +0 -60
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +0 -221
- package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +0 -47
- package/src/Prebuilt/components/Polls/Voting/StatisticBox.tsx +0 -20
- package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +0 -55
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +0 -143
- package/src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx +0 -50
- package/src/Prebuilt/components/Polls/common/Line.tsx +0 -4
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +0 -115
- package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +0 -38
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +0 -140
- package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +0 -35
- package/src/Prebuilt/components/Polls/common/VoteCount.tsx +0 -15
- package/src/Prebuilt/components/Polls/common/VoteProgress.tsx +0 -18
- package/src/Prebuilt/components/Polls/common/constants.ts +0 -5
- package/src/Prebuilt/components/Polls/common/utils.ts +0 -22
- package/src/Prebuilt/components/Preview/PreviewForm.tsx +0 -94
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +0 -292
- package/src/Prebuilt/components/Preview/PreviewScreen.tsx +0 -38
- package/src/Prebuilt/components/PreviousRoleInMetadata.tsx +0 -20
- package/src/Prebuilt/components/RaiseHand.tsx +0 -30
- package/src/Prebuilt/components/RemoveParticipant.tsx +0 -35
- package/src/Prebuilt/components/RoleChangeModal.tsx +0 -188
- package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +0 -75
- package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +0 -94
- package/src/Prebuilt/components/RoomDetails/Duration.tsx +0 -26
- package/src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx +0 -63
- package/src/Prebuilt/components/RoomDetails/RoomDetailsRow.tsx +0 -23
- package/src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx +0 -45
- package/src/Prebuilt/components/ScreenShareToggle.jsx +0 -58
- package/src/Prebuilt/components/ScreenshareDisplay.tsx +0 -39
- package/src/Prebuilt/components/ScreenshareTile.tsx +0 -134
- package/src/Prebuilt/components/SecondaryTiles.tsx +0 -81
- package/src/Prebuilt/components/Settings/DeviceSettings.jsx +0 -208
- package/src/Prebuilt/components/Settings/LayoutSettings.tsx +0 -74
- package/src/Prebuilt/components/Settings/NotificationSettings.tsx +0 -66
- package/src/Prebuilt/components/Settings/SettingsModal.jsx +0 -301
- package/src/Prebuilt/components/Settings/StartRecording.jsx +0 -101
- package/src/Prebuilt/components/Settings/SwitchWithLabel.tsx +0 -53
- package/src/Prebuilt/components/Settings/common.ts +0 -16
- package/src/Prebuilt/components/ShareMenuIcon.jsx +0 -27
- package/src/Prebuilt/components/SidePaneTabs.tsx +0 -214
- package/src/Prebuilt/components/StatsForNerds.jsx +0 -373
- package/src/Prebuilt/components/Streaming/Common.jsx +0 -143
- package/src/Prebuilt/components/Streaming/ResolutionInput.jsx +0 -88
- package/src/Prebuilt/components/TileMenu/TileMenu.tsx +0 -148
- package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +0 -393
- package/src/Prebuilt/components/TileMenu/utils.ts +0 -7
- package/src/Prebuilt/components/Toast/Toast.jsx +0 -17
- package/src/Prebuilt/components/Toast/ToastBatcher.js +0 -64
- package/src/Prebuilt/components/Toast/ToastConfig.jsx +0 -177
- package/src/Prebuilt/components/Toast/ToastContainer.jsx +0 -30
- package/src/Prebuilt/components/Toast/ToastManager.js +0 -44
- package/src/Prebuilt/components/VideoLayouts/EqualProminence.tsx +0 -62
- package/src/Prebuilt/components/VideoLayouts/Grid.tsx +0 -43
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +0 -155
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +0 -91
- package/src/Prebuilt/components/VideoLayouts/RoleProminence.tsx +0 -66
- package/src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx +0 -74
- package/src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx +0 -93
- package/src/Prebuilt/components/VideoLayouts/interface.ts +0 -11
- package/src/Prebuilt/components/VideoTile.tsx +0 -203
- package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +0 -52
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +0 -130
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +0 -57
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +0 -252
- package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +0 -50
- package/src/Prebuilt/components/hooks/useAudioOutputTest.tsx +0 -20
- package/src/Prebuilt/components/hooks/useAutoStartStreaming.tsx +0 -70
- package/src/Prebuilt/components/hooks/useChatBlacklist.ts +0 -29
- package/src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx +0 -17
- package/src/Prebuilt/components/hooks/useDropdownList.ts +0 -24
- package/src/Prebuilt/components/hooks/useDropdownSelection.jsx +0 -3
- package/src/Prebuilt/components/hooks/useFullscreen.ts +0 -46
- package/src/Prebuilt/components/hooks/useGroupOnStageActions.tsx +0 -54
- package/src/Prebuilt/components/hooks/useMetadata.tsx +0 -56
- package/src/Prebuilt/components/hooks/usePeerOnStageActions.tsx +0 -49
- package/src/Prebuilt/components/hooks/usePinnedBy.tsx +0 -22
- package/src/Prebuilt/components/hooks/usePinnedMessages.ts +0 -78
- package/src/Prebuilt/components/hooks/usePlaylist.js +0 -25
- package/src/Prebuilt/components/hooks/usePlaylistMusic.js +0 -35
- package/src/Prebuilt/components/hooks/useRedirectToLeave.tsx +0 -23
- package/src/Prebuilt/components/hooks/useRoleProminencePeers.tsx +0 -39
- package/src/Prebuilt/components/hooks/useScreenshareAudio.js +0 -28
- package/src/Prebuilt/components/hooks/useTileLayout.tsx +0 -128
- package/src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx +0 -17
- package/src/Prebuilt/components/hooks/useUserPreferences.jsx +0 -26
- package/src/Prebuilt/components/hooks/useVideoTileLayout.ts +0 -26
- package/src/Prebuilt/components/init/Init.jsx +0 -31
- package/src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx +0 -42
- package/src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx +0 -31
- package/src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx +0 -32
- package/src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx +0 -211
- package/src/Prebuilt/components/pdfAnnotator/submitPdf.jsx +0 -48
- package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +0 -71
- package/src/Prebuilt/components/peerTileUtils.tsx +0 -42
- package/src/Prebuilt/images/android-perm-1.png +0 -0
- package/src/Prebuilt/images/empty-chat.svg +0 -12
- package/src/Prebuilt/images/ios-perm-0.png +0 -0
- package/src/Prebuilt/images/pdf-share.png +0 -0
- package/src/Prebuilt/images/rtmp.png +0 -0
- package/src/Prebuilt/images/screen-share.png +0 -0
- package/src/Prebuilt/images/transaction_error.svg +0 -12
- package/src/Prebuilt/index.ts +0 -1
- package/src/Prebuilt/layouts/EmbedView.jsx +0 -94
- package/src/Prebuilt/layouts/HLSView.jsx +0 -794
- package/src/Prebuilt/layouts/PDFView.jsx +0 -67
- package/src/Prebuilt/layouts/Sheet.tsx +0 -14
- package/src/Prebuilt/layouts/SidePane.tsx +0 -241
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +0 -164
- package/src/Prebuilt/layouts/WaitingView.tsx +0 -52
- package/src/Prebuilt/plugins/CaptionsViewer.tsx +0 -261
- package/src/Prebuilt/plugins/FlyingEmoji.jsx +0 -154
- package/src/Prebuilt/plugins/RemoteStopScreenshare.jsx +0 -18
- package/src/Prebuilt/plugins/transcription/Transcriber.js +0 -216
- package/src/Prebuilt/plugins/transcription/TranscriptionButton.jsx +0 -138
- package/src/Prebuilt/plugins/transcription/index.jsx +0 -1
- package/src/Prebuilt/primitives/DialogContent.jsx +0 -285
- package/src/Prebuilt/primitives/DropdownTrigger.jsx +0 -46
- package/src/Prebuilt/provider/roomLayoutProvider/constants/index.ts +0 -60
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts +0 -88
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useInsetEnabled.ts +0 -10
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +0 -112
- package/src/Prebuilt/provider/roomLayoutProvider/index.tsx +0 -53
- package/src/Prebuilt/services/FeatureFlags.jsx +0 -46
- package/src/Progress/index.tsx +0 -17
- package/src/QRCode/QRCode.tsx +0 -6
- package/src/QRCode/index.tsx +0 -1
- package/src/RadioGroup/RadioGroup.tsx +0 -33
- package/src/RadioGroup/index.tsx +0 -1
- package/src/ReactSelect/ReactSelect.tsx +0 -97
- package/src/ReactSelect/index.ts +0 -1
- package/src/Select/Select.tsx +0 -63
- package/src/Select/index.ts +0 -1
- package/src/Sheet/Sheet.tsx +0 -122
- package/src/Sheet/index.ts +0 -1
- package/src/Slider/Slider.tsx +0 -70
- package/src/Slider/index.ts +0 -1
- package/src/Stats/Stats.tsx +0 -243
- package/src/Stats/StyledStats.tsx +0 -57
- package/src/Stats/formatBytes.ts +0 -19
- package/src/Stats/index.tsx +0 -2
- package/src/Stats/useQoE.ts +0 -79
- package/src/Switch/Switch.tsx +0 -52
- package/src/Switch/index.ts +0 -1
- package/src/Tabs/Tabs.tsx +0 -41
- package/src/Tabs/index.tsx +0 -1
- package/src/Text/Text.tsx +0 -149
- package/src/Text/index.tsx +0 -1
- package/src/TextArea/TextArea.tsx +0 -30
- package/src/TextArea/index.tsx +0 -1
- package/src/Theme/ThemeProvider.tsx +0 -98
- package/src/Theme/base.config.ts +0 -236
- package/src/Theme/index.tsx +0 -2
- package/src/Theme/stitches.config.ts +0 -88
- package/src/Theme/useSSR.tsx +0 -24
- package/src/TileMenu/StyledMenuTile.tsx +0 -105
- package/src/TileMenu/TileMenu.tsx +0 -98
- package/src/TileMenu/index.tsx +0 -1
- package/src/Toast/Toast.tsx +0 -170
- package/src/Toast/index.tsx +0 -1
- package/src/Tooltip/Tooltip.tsx +0 -79
- package/src/Tooltip/index.ts +0 -1
- package/src/Video/Video.tsx +0 -61
- package/src/Video/index.tsx +0 -1
- package/src/VideoList/StyledVideoList.tsx +0 -39
- package/src/VideoList/index.tsx +0 -2
- package/src/VideoList/videoListUtils.tsx +0 -20
- package/src/VideoTile/StyledVideoTile.tsx +0 -146
- package/src/VideoTile/index.tsx +0 -1
- package/src/context/DialogContext.tsx +0 -13
- package/src/fixtures/chats.ts +0 -25
- package/src/fixtures/peers.ts +0 -27
- package/src/fixtures/tracks.ts +0 -11
- package/src/hooks/useDialogContainerSelector.tsx +0 -7
- package/src/index.ts +0 -41
- package/src/store/SetupFakeStore.ts +0 -33
- package/src/store/StorybookSDK.ts +0 -231
- package/src/utils/animations.ts +0 -114
- package/src/utils/index.ts +0 -2
- package/src/utils/styles.ts +0 -22
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { useMedia } from 'react-use';
|
|
3
|
-
import { Rating } from '@100mslive/types-prebuilt/elements/feedback';
|
|
4
|
-
import { useHMSActions } from '@100mslive/react-sdk';
|
|
5
|
-
import { CheckIcon, CrossIcon } from '@100mslive/react-icons';
|
|
6
|
-
import { Button } from '../../../Button';
|
|
7
|
-
import { Checkbox } from '../../../Checkbox';
|
|
8
|
-
import { Label } from '../../../Label';
|
|
9
|
-
import { Flex } from '../../../Layout';
|
|
10
|
-
import { Dialog } from '../../../Modal';
|
|
11
|
-
import { Sheet } from '../../../Sheet';
|
|
12
|
-
import { Text } from '../../../Text';
|
|
13
|
-
import { TextArea } from '../../../TextArea';
|
|
14
|
-
import { config as cssConfig } from '../../../Theme';
|
|
15
|
-
import { useHMSPrebuiltContext } from '../../AppContext';
|
|
16
|
-
import { useRoomLayoutLeaveScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
|
17
|
-
|
|
18
|
-
export const FEEBACK_INDEX = {
|
|
19
|
-
THANK_YOU: -10,
|
|
20
|
-
INIT: -1,
|
|
21
|
-
};
|
|
22
|
-
export const FeedbackModal = ({
|
|
23
|
-
ratings,
|
|
24
|
-
index,
|
|
25
|
-
setIndex,
|
|
26
|
-
}: {
|
|
27
|
-
ratings: Rating[];
|
|
28
|
-
index: number;
|
|
29
|
-
setIndex: (index: number) => void;
|
|
30
|
-
}) => {
|
|
31
|
-
const isMobile = useMedia(cssConfig.media.md);
|
|
32
|
-
const onOpenChange = () => {
|
|
33
|
-
setIndex(FEEBACK_INDEX.INIT);
|
|
34
|
-
};
|
|
35
|
-
const avoidDefaultDomBehavior = (e: Event) => {
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
};
|
|
38
|
-
if (isMobile) {
|
|
39
|
-
return (
|
|
40
|
-
<Sheet.Root open={index !== FEEBACK_INDEX.INIT} onOpenChange={onOpenChange}>
|
|
41
|
-
<Sheet.Content
|
|
42
|
-
css={{ bg: '$surface_dim', p: '$10', overflowY: 'auto' }}
|
|
43
|
-
onPointerDownOutside={avoidDefaultDomBehavior}
|
|
44
|
-
onInteractOutside={avoidDefaultDomBehavior}
|
|
45
|
-
>
|
|
46
|
-
<FeedbackContent ratings={ratings} indexSelected={index} setIndex={setIndex} />
|
|
47
|
-
</Sheet.Content>
|
|
48
|
-
</Sheet.Root>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
return (
|
|
52
|
-
<Dialog.Root open={index !== FEEBACK_INDEX.INIT} onOpenChange={onOpenChange}>
|
|
53
|
-
<Dialog.Portal>
|
|
54
|
-
<Dialog.Overlay />
|
|
55
|
-
<Dialog.Content
|
|
56
|
-
css={{ bg: '$surface_dim', width: '528px', p: '$12' }}
|
|
57
|
-
onPointerDownOutside={avoidDefaultDomBehavior}
|
|
58
|
-
onInteractOutside={avoidDefaultDomBehavior}
|
|
59
|
-
>
|
|
60
|
-
<FeedbackContent ratings={ratings} indexSelected={index} setIndex={setIndex} />
|
|
61
|
-
</Dialog.Content>
|
|
62
|
-
</Dialog.Portal>
|
|
63
|
-
</Dialog.Root>
|
|
64
|
-
);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const FeedbackContent = ({
|
|
68
|
-
ratings,
|
|
69
|
-
indexSelected,
|
|
70
|
-
setIndex,
|
|
71
|
-
}: {
|
|
72
|
-
ratings: Rating[];
|
|
73
|
-
indexSelected: number;
|
|
74
|
-
setIndex: (index: number) => void;
|
|
75
|
-
}) => {
|
|
76
|
-
const { feedback } = useRoomLayoutLeaveScreen();
|
|
77
|
-
const { endpoints } = useHMSPrebuiltContext();
|
|
78
|
-
const isMobile = useMedia(cssConfig.media.md);
|
|
79
|
-
const hmsActions = useHMSActions();
|
|
80
|
-
const [comment, setComment] = useState('');
|
|
81
|
-
const [selectedReasons, setSelectedReasons] = useState(new Set<number>());
|
|
82
|
-
const handleCheckedChange = (checked: boolean | string, index: number) => {
|
|
83
|
-
const newSelected = new Set(selectedReasons);
|
|
84
|
-
if (checked) {
|
|
85
|
-
newSelected.add(index);
|
|
86
|
-
} else {
|
|
87
|
-
newSelected.delete(index);
|
|
88
|
-
}
|
|
89
|
-
setSelectedReasons(newSelected);
|
|
90
|
-
};
|
|
91
|
-
const submitFeedback = async () => {
|
|
92
|
-
if (indexSelected < 0 || ratings.length <= indexSelected) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
try {
|
|
96
|
-
const reasons = [...selectedReasons].map((value: number) => ratings[indexSelected]?.reasons?.[value] || '');
|
|
97
|
-
await hmsActions.submitSessionFeedback(
|
|
98
|
-
{
|
|
99
|
-
question: `${feedback?.title} | ${ratings[indexSelected].question || ''}`,
|
|
100
|
-
rating: ratings[indexSelected].value || 1,
|
|
101
|
-
min_rating: 1,
|
|
102
|
-
max_rating: ratings.length,
|
|
103
|
-
reasons: selectedReasons.size === 0 ? [] : reasons,
|
|
104
|
-
comment: comment,
|
|
105
|
-
},
|
|
106
|
-
endpoints?.event,
|
|
107
|
-
);
|
|
108
|
-
} catch (e) {
|
|
109
|
-
console.error(e);
|
|
110
|
-
}
|
|
111
|
-
// always submit and take it to thankyou page
|
|
112
|
-
setIndex(FEEBACK_INDEX.THANK_YOU);
|
|
113
|
-
};
|
|
114
|
-
return (
|
|
115
|
-
<Flex
|
|
116
|
-
css={{
|
|
117
|
-
p: indexSelected === FEEBACK_INDEX.INIT ? '$12 !important' : '0',
|
|
118
|
-
bg: '$surface_dim',
|
|
119
|
-
r: '$3',
|
|
120
|
-
gap: '$10',
|
|
121
|
-
}}
|
|
122
|
-
direction="column"
|
|
123
|
-
>
|
|
124
|
-
<FeedbackHeader
|
|
125
|
-
ratings={ratings}
|
|
126
|
-
indexSelected={indexSelected}
|
|
127
|
-
onEmojiClicked={(value: number) => {
|
|
128
|
-
setSelectedReasons(new Set<number>());
|
|
129
|
-
setIndex(value);
|
|
130
|
-
}}
|
|
131
|
-
/>
|
|
132
|
-
<FeedbackForm
|
|
133
|
-
rating={ratings[indexSelected]}
|
|
134
|
-
comment={comment}
|
|
135
|
-
setComment={setComment}
|
|
136
|
-
selectedReasons={selectedReasons}
|
|
137
|
-
handleCheckedChange={handleCheckedChange}
|
|
138
|
-
/>
|
|
139
|
-
<Button
|
|
140
|
-
type="submit"
|
|
141
|
-
icon
|
|
142
|
-
css={{
|
|
143
|
-
alignSelf: isMobile ? '' : 'end',
|
|
144
|
-
}}
|
|
145
|
-
onClick={submitFeedback}
|
|
146
|
-
>
|
|
147
|
-
{feedback?.submit_btn_label || 'Submit Feedback'}
|
|
148
|
-
</Button>
|
|
149
|
-
</Flex>
|
|
150
|
-
);
|
|
151
|
-
};
|
|
152
|
-
export const FeedbackHeader = ({
|
|
153
|
-
onEmojiClicked,
|
|
154
|
-
ratings,
|
|
155
|
-
indexSelected = FEEBACK_INDEX.INIT,
|
|
156
|
-
}: {
|
|
157
|
-
onEmojiClicked: (index: number) => void;
|
|
158
|
-
ratings: Rating[];
|
|
159
|
-
indexSelected?: number;
|
|
160
|
-
}) => {
|
|
161
|
-
const isMobile = useMedia(cssConfig.media.md);
|
|
162
|
-
const { feedback } = useRoomLayoutLeaveScreen();
|
|
163
|
-
return (
|
|
164
|
-
<>
|
|
165
|
-
<Flex align="center">
|
|
166
|
-
<Flex
|
|
167
|
-
direction="column"
|
|
168
|
-
css={{
|
|
169
|
-
flex: '1 1 0',
|
|
170
|
-
}}
|
|
171
|
-
>
|
|
172
|
-
<Text
|
|
173
|
-
variant={isMobile ? 'h6' : 'h5'}
|
|
174
|
-
css={{
|
|
175
|
-
c: '$on_surface_high',
|
|
176
|
-
fontStyle: 'normal',
|
|
177
|
-
}}
|
|
178
|
-
>
|
|
179
|
-
{feedback?.title || 'How was your experience?'}
|
|
180
|
-
</Text>
|
|
181
|
-
<Text
|
|
182
|
-
variant={isMobile ? 'body2' : 'body1'}
|
|
183
|
-
css={{
|
|
184
|
-
c: '$on_surface_medium',
|
|
185
|
-
opacity: 0.9,
|
|
186
|
-
fontWeight: '$regular',
|
|
187
|
-
}}
|
|
188
|
-
>
|
|
189
|
-
{feedback?.sub_title || 'Your answers help us improve the quality.'}
|
|
190
|
-
</Text>
|
|
191
|
-
</Flex>
|
|
192
|
-
{indexSelected !== FEEBACK_INDEX.INIT ? (
|
|
193
|
-
<CrossIcon width="24px" height="24px" color="white" onClick={() => onEmojiClicked(FEEBACK_INDEX.INIT)} />
|
|
194
|
-
) : null}
|
|
195
|
-
</Flex>
|
|
196
|
-
<Flex
|
|
197
|
-
justify="between"
|
|
198
|
-
css={{
|
|
199
|
-
gap: '$17',
|
|
200
|
-
c: '$on_surface_high',
|
|
201
|
-
'@md': {
|
|
202
|
-
gap: '0',
|
|
203
|
-
},
|
|
204
|
-
}}
|
|
205
|
-
>
|
|
206
|
-
{ratings.map((element, index) => {
|
|
207
|
-
return (
|
|
208
|
-
<Flex
|
|
209
|
-
align="center"
|
|
210
|
-
direction="column"
|
|
211
|
-
css={{
|
|
212
|
-
c:
|
|
213
|
-
indexSelected === index || indexSelected === FEEBACK_INDEX.INIT
|
|
214
|
-
? '$on_surface_high'
|
|
215
|
-
: '$on_surface_default',
|
|
216
|
-
gap: '$4',
|
|
217
|
-
}}
|
|
218
|
-
onClick={() => onEmojiClicked(index)}
|
|
219
|
-
key={`${index}`}
|
|
220
|
-
>
|
|
221
|
-
<Text
|
|
222
|
-
css={{
|
|
223
|
-
fontWeight: '$semiBold',
|
|
224
|
-
fontSize: '$h4',
|
|
225
|
-
pb: '$1',
|
|
226
|
-
cursor: 'pointer',
|
|
227
|
-
opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2,
|
|
228
|
-
'@md': {
|
|
229
|
-
fontSize: '$h5',
|
|
230
|
-
},
|
|
231
|
-
}}
|
|
232
|
-
>
|
|
233
|
-
{element.emoji}
|
|
234
|
-
</Text>
|
|
235
|
-
<Text
|
|
236
|
-
variant={isMobile ? 'body2' : 'body1'}
|
|
237
|
-
css={{
|
|
238
|
-
c:
|
|
239
|
-
indexSelected === index || indexSelected === FEEBACK_INDEX.INIT
|
|
240
|
-
? '$on_surface_medium'
|
|
241
|
-
: '$on_surface_low',
|
|
242
|
-
fontWeight: '$regular',
|
|
243
|
-
}}
|
|
244
|
-
>
|
|
245
|
-
{element.label}
|
|
246
|
-
</Text>
|
|
247
|
-
</Flex>
|
|
248
|
-
);
|
|
249
|
-
})}
|
|
250
|
-
</Flex>
|
|
251
|
-
</>
|
|
252
|
-
);
|
|
253
|
-
};
|
|
254
|
-
export const FeedbackForm = ({
|
|
255
|
-
rating,
|
|
256
|
-
comment,
|
|
257
|
-
setComment,
|
|
258
|
-
selectedReasons,
|
|
259
|
-
handleCheckedChange,
|
|
260
|
-
}: {
|
|
261
|
-
rating: Rating;
|
|
262
|
-
comment: string;
|
|
263
|
-
setComment: (value: string) => void;
|
|
264
|
-
selectedReasons: Set<number>;
|
|
265
|
-
handleCheckedChange: (checked: string | boolean, index: number) => void;
|
|
266
|
-
}) => {
|
|
267
|
-
const { feedback } = useRoomLayoutLeaveScreen();
|
|
268
|
-
return (
|
|
269
|
-
<>
|
|
270
|
-
{rating.reasons && rating.reasons.length > 0 && (
|
|
271
|
-
<Flex
|
|
272
|
-
direction="column"
|
|
273
|
-
css={{
|
|
274
|
-
gap: '$4',
|
|
275
|
-
}}
|
|
276
|
-
>
|
|
277
|
-
<Text
|
|
278
|
-
variant="sub2"
|
|
279
|
-
css={{
|
|
280
|
-
c: '$on_surface_high',
|
|
281
|
-
fontWeight: '$semiBold',
|
|
282
|
-
fontSize: '$sm',
|
|
283
|
-
px: '$2',
|
|
284
|
-
}}
|
|
285
|
-
>
|
|
286
|
-
{rating.question || 'What do you like/dislike here?'}
|
|
287
|
-
</Text>
|
|
288
|
-
<Flex
|
|
289
|
-
css={{
|
|
290
|
-
alignItems: 'flex-start',
|
|
291
|
-
alignSelf: 'stretch',
|
|
292
|
-
flexWrap: 'wrap',
|
|
293
|
-
gap: '$6',
|
|
294
|
-
flex: '1 1 calc(25% - 12px)',
|
|
295
|
-
'@md': {
|
|
296
|
-
flex: '1 1 calc(50% - 12px)',
|
|
297
|
-
},
|
|
298
|
-
'@sm': {
|
|
299
|
-
flex: '1 1 100%',
|
|
300
|
-
},
|
|
301
|
-
}}
|
|
302
|
-
>
|
|
303
|
-
{rating.reasons.map((option: string, index: number) => {
|
|
304
|
-
return (
|
|
305
|
-
<Flex
|
|
306
|
-
align="center"
|
|
307
|
-
gap="2"
|
|
308
|
-
key={index}
|
|
309
|
-
css={{
|
|
310
|
-
border: '1px solid $border_bright',
|
|
311
|
-
r: '$1',
|
|
312
|
-
p: '$6',
|
|
313
|
-
}}
|
|
314
|
-
>
|
|
315
|
-
<Checkbox.Root
|
|
316
|
-
id={`${option}-${index}`}
|
|
317
|
-
checked={selectedReasons.has(index)}
|
|
318
|
-
onCheckedChange={checked => handleCheckedChange(checked, index)}
|
|
319
|
-
css={{
|
|
320
|
-
cursor: 'pointer',
|
|
321
|
-
flexShrink: 0,
|
|
322
|
-
bg: '$on_secondary_low',
|
|
323
|
-
border: '1px solid $border_bright',
|
|
324
|
-
}}
|
|
325
|
-
>
|
|
326
|
-
<Checkbox.Indicator>
|
|
327
|
-
<CheckIcon width={12} height={12} />
|
|
328
|
-
</Checkbox.Indicator>
|
|
329
|
-
</Checkbox.Root>
|
|
330
|
-
<Label
|
|
331
|
-
htmlFor={`${option}-${index}`}
|
|
332
|
-
css={{
|
|
333
|
-
color: '$on_surface_high',
|
|
334
|
-
fontSize: '$sm',
|
|
335
|
-
fontWeight: '$regular',
|
|
336
|
-
lineHeight: '20px' /* 142.857% */,
|
|
337
|
-
}}
|
|
338
|
-
>
|
|
339
|
-
{option}
|
|
340
|
-
</Label>
|
|
341
|
-
</Flex>
|
|
342
|
-
);
|
|
343
|
-
})}
|
|
344
|
-
</Flex>
|
|
345
|
-
</Flex>
|
|
346
|
-
)}
|
|
347
|
-
{feedback?.comment && (
|
|
348
|
-
<Flex
|
|
349
|
-
direction="column"
|
|
350
|
-
css={{
|
|
351
|
-
gap: '$4',
|
|
352
|
-
}}
|
|
353
|
-
>
|
|
354
|
-
<Text
|
|
355
|
-
variant="body2"
|
|
356
|
-
css={{
|
|
357
|
-
c: '$on_surface_high',
|
|
358
|
-
fontWeight: '$regular',
|
|
359
|
-
fontSize: '$sm',
|
|
360
|
-
}}
|
|
361
|
-
>
|
|
362
|
-
{feedback?.comment.label || 'Additional comments (optional)'}
|
|
363
|
-
</Text>
|
|
364
|
-
<TextArea
|
|
365
|
-
maxLength={1024}
|
|
366
|
-
placeholder={feedback?.comment.placeholder || 'Tell us more...'}
|
|
367
|
-
css={{
|
|
368
|
-
backgroundColor: '$surface_bright',
|
|
369
|
-
border: '1px solid $border_bright',
|
|
370
|
-
resize: 'none',
|
|
371
|
-
height: '$36',
|
|
372
|
-
display: 'flex',
|
|
373
|
-
}}
|
|
374
|
-
value={comment}
|
|
375
|
-
onChange={event => setComment(event.target.value.trimStart())}
|
|
376
|
-
/>
|
|
377
|
-
</Flex>
|
|
378
|
-
)}
|
|
379
|
-
</>
|
|
380
|
-
);
|
|
381
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { useMedia } from 'react-use';
|
|
3
|
-
import { CrossIcon, UserMusicIcon } from '@100mslive/react-icons';
|
|
4
|
-
import { Flex } from '../../../Layout';
|
|
5
|
-
import { Text } from '../../../Text';
|
|
6
|
-
import { config as cssConfig } from '../../../Theme';
|
|
7
|
-
|
|
8
|
-
export const ThankyouView = () => {
|
|
9
|
-
const [isVisible, setIsVisible] = useState(true);
|
|
10
|
-
const isMobile = useMedia(cssConfig.media.md);
|
|
11
|
-
|
|
12
|
-
if (!isVisible) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Flex
|
|
18
|
-
direction={isMobile ? 'column' : 'row'}
|
|
19
|
-
align="center"
|
|
20
|
-
css={{
|
|
21
|
-
gap: '$10',
|
|
22
|
-
border: '1px solid $border_default',
|
|
23
|
-
borderRadius: !isMobile ? '$3' : '$3 $3 0 0',
|
|
24
|
-
bg: '$surface_dim',
|
|
25
|
-
w: !isMobile ? '528px' : '410px',
|
|
26
|
-
p: '$12',
|
|
27
|
-
pb: isMobile ? '$16' : '$12',
|
|
28
|
-
'@md': {
|
|
29
|
-
position: 'absolute',
|
|
30
|
-
bottom: '0',
|
|
31
|
-
},
|
|
32
|
-
}}
|
|
33
|
-
>
|
|
34
|
-
{isMobile && (
|
|
35
|
-
<CrossIcon
|
|
36
|
-
width="24px"
|
|
37
|
-
height="24px"
|
|
38
|
-
color="white"
|
|
39
|
-
onClick={() => setIsVisible(false)}
|
|
40
|
-
style={{
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
top: '8px',
|
|
43
|
-
right: '16px',
|
|
44
|
-
cursor: 'pointer',
|
|
45
|
-
}}
|
|
46
|
-
/>
|
|
47
|
-
)}
|
|
48
|
-
<UserMusicIcon width="64px" height="64px" />
|
|
49
|
-
<Flex direction="column" align={isMobile ? 'center' : 'start'}>
|
|
50
|
-
<Text variant="h5">Thank you for your feedback</Text>
|
|
51
|
-
<Text
|
|
52
|
-
variant="body1"
|
|
53
|
-
css={{
|
|
54
|
-
fontWeight: '$regular',
|
|
55
|
-
fontSize: '$md',
|
|
56
|
-
opacity: '0.9',
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
Your answers help us improve.
|
|
60
|
-
</Text>
|
|
61
|
-
</Flex>
|
|
62
|
-
</Flex>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import { CopyIcon } from '@100mslive/react-icons';
|
|
3
|
-
import { Button } from '../../Button';
|
|
4
|
-
import { Box, Flex } from '../../Layout';
|
|
5
|
-
import { Text } from '../../Text';
|
|
6
|
-
import { Tooltip } from '../../Tooltip';
|
|
7
|
-
|
|
8
|
-
export class ErrorBoundary extends Component {
|
|
9
|
-
constructor(props) {
|
|
10
|
-
super(props);
|
|
11
|
-
this.state = { error: null, errorInfo: null, isErrorCopied: false };
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
componentDidCatch(error, errorInfo) {
|
|
15
|
-
console.error(`react error boundary - ${error.message}`, error, errorInfo);
|
|
16
|
-
// Catch errors in any components below and re-render with error message
|
|
17
|
-
this.setState({
|
|
18
|
-
error: error?.message,
|
|
19
|
-
errorInfo: errorInfo,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
render() {
|
|
24
|
-
if (this.state.errorInfo) {
|
|
25
|
-
return (
|
|
26
|
-
<Flex
|
|
27
|
-
align="center"
|
|
28
|
-
justify="center"
|
|
29
|
-
css={{
|
|
30
|
-
size: '100%',
|
|
31
|
-
height: '100vh',
|
|
32
|
-
width: '100%',
|
|
33
|
-
color: '$on_primary_high',
|
|
34
|
-
backgroundColor: '$background_default',
|
|
35
|
-
}}
|
|
36
|
-
>
|
|
37
|
-
<Box css={{ position: 'relative', overflow: 'hidden', r: '$3', height: '100%', width: '100%' }}>
|
|
38
|
-
<Flex
|
|
39
|
-
direction="column"
|
|
40
|
-
css={{
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
size: '100%',
|
|
43
|
-
top: '33.33%',
|
|
44
|
-
left: 0,
|
|
45
|
-
}}
|
|
46
|
-
>
|
|
47
|
-
<div style={{ margin: '1.5rem', width: '100%' }}>
|
|
48
|
-
<Text>Something went wrong</Text>
|
|
49
|
-
<Text>Message: ${this.state.error}</Text>
|
|
50
|
-
<br />
|
|
51
|
-
Please reload to see if it works. If you think this is a mistake on our side, please reach out to us
|
|
52
|
-
on
|
|
53
|
-
<a href="https://dashboard.100ms.live/dashboard" target="_blank" rel="noreferrer">
|
|
54
|
-
Dashboard
|
|
55
|
-
</a>
|
|
56
|
-
</div>
|
|
57
|
-
<Flex>
|
|
58
|
-
<Tooltip title="Reload page">
|
|
59
|
-
<Button
|
|
60
|
-
onClick={() => {
|
|
61
|
-
window.location.reload();
|
|
62
|
-
}}
|
|
63
|
-
css={{ mx: '$8' }}
|
|
64
|
-
data-testid="join_again_btn"
|
|
65
|
-
>
|
|
66
|
-
Reload
|
|
67
|
-
</Button>
|
|
68
|
-
</Tooltip>
|
|
69
|
-
<Tooltip title="Copy error details to clipboard">
|
|
70
|
-
<Button
|
|
71
|
-
onClick={() => {
|
|
72
|
-
const { error, errorInfo } = this.state;
|
|
73
|
-
navigator.clipboard.writeText(
|
|
74
|
-
JSON.stringify({
|
|
75
|
-
error,
|
|
76
|
-
errorInfo,
|
|
77
|
-
}),
|
|
78
|
-
);
|
|
79
|
-
this.setState({ isErrorCopied: true });
|
|
80
|
-
}}
|
|
81
|
-
css={{ mx: '$8' }}
|
|
82
|
-
data-testid="join_again_btn"
|
|
83
|
-
>
|
|
84
|
-
<CopyIcon /> {this.state.isErrorCopied ? 'Copied' : 'Copy Details'}
|
|
85
|
-
</Button>
|
|
86
|
-
</Tooltip>
|
|
87
|
-
</Flex>
|
|
88
|
-
|
|
89
|
-
<details style={{ whiteSpace: 'pre-wrap', margin: '1.5rem' }}>
|
|
90
|
-
<Text>{this.state.error && this.state.error.toString()}</Text>
|
|
91
|
-
<br />
|
|
92
|
-
<Text>{JSON.stringify(this.state.errorInfo)}</Text>
|
|
93
|
-
</details>
|
|
94
|
-
</Flex>
|
|
95
|
-
</Box>
|
|
96
|
-
</Flex>
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return this.props.children;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { selectUnreadHMSMessagesCount, useHMSStore } from '@100mslive/react-sdk';
|
|
3
|
-
import { ChatIcon } from '@100mslive/react-icons';
|
|
4
|
-
import { Box, Flex, Text, Tooltip } from '../../..';
|
|
5
|
-
// @ts-ignore: No implicit Any
|
|
6
|
-
import IconButton from '../../IconButton';
|
|
7
|
-
// @ts-ignore: No implicit Any
|
|
8
|
-
import { useIsSidepaneTypeOpen, useSidepaneToggle } from '../AppData/useSidepane';
|
|
9
|
-
// @ts-ignore: No implicit Any
|
|
10
|
-
import { SIDE_PANE_OPTIONS } from '../../common/constants';
|
|
11
|
-
|
|
12
|
-
export const ChatToggle = ({ onClick }: { onClick?: () => void }) => {
|
|
13
|
-
const countUnreadMessages = useHMSStore(selectUnreadHMSMessagesCount);
|
|
14
|
-
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
15
|
-
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<Box
|
|
19
|
-
css={{
|
|
20
|
-
position: 'relative',
|
|
21
|
-
}}
|
|
22
|
-
>
|
|
23
|
-
<Tooltip key="chat" title={`${isChatOpen ? 'Close' : 'Open'} chat`}>
|
|
24
|
-
<IconButton
|
|
25
|
-
onClick={() => (onClick ? onClick() : toggleChat())}
|
|
26
|
-
css={{ bg: isChatOpen ? '$surface_brighter' : '' }}
|
|
27
|
-
data-testid="chat_btn"
|
|
28
|
-
>
|
|
29
|
-
<ChatIcon />
|
|
30
|
-
</IconButton>
|
|
31
|
-
</Tooltip>
|
|
32
|
-
{countUnreadMessages > 0 && (
|
|
33
|
-
<Flex
|
|
34
|
-
css={{
|
|
35
|
-
height: '$8',
|
|
36
|
-
p: '$4 4.5px',
|
|
37
|
-
justifyContent: 'center',
|
|
38
|
-
alignItems: 'center',
|
|
39
|
-
position: 'absolute',
|
|
40
|
-
top: '-$4',
|
|
41
|
-
right: '-$4',
|
|
42
|
-
borderRadius: '$space$14',
|
|
43
|
-
background: '$primary_default',
|
|
44
|
-
}}
|
|
45
|
-
>
|
|
46
|
-
<Text variant="overline" css={{ color: '$on_primary_high' }}>
|
|
47
|
-
{countUnreadMessages > 99 ? '99+' : countUnreadMessages}
|
|
48
|
-
</Text>
|
|
49
|
-
</Flex>
|
|
50
|
-
)}
|
|
51
|
-
</Box>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Flex } from '../../../Layout';
|
|
3
|
-
import { styled } from '../../../Theme';
|
|
4
|
-
|
|
5
|
-
// When changing emojis in the grid, keep in mind that the payload used in sendHLSTimedMetadata has a limit of 100 characters. Using bigger emoji Ids can cause the limit to be exceeded.
|
|
6
|
-
const emojiReactionList = [
|
|
7
|
-
[{ emojiId: '+1' }, { emojiId: '-1' }, { emojiId: 'wave' }, { emojiId: 'clap' }, { emojiId: 'fire' }],
|
|
8
|
-
[{ emojiId: 'tada' }, { emojiId: 'heart_eyes' }, { emojiId: 'joy' }, { emojiId: 'open_mouth' }, { emojiId: 'sob' }],
|
|
9
|
-
];
|
|
10
|
-
|
|
11
|
-
export const EmojiCard = ({ sendReaction }) => {
|
|
12
|
-
return emojiReactionList.map((emojiLine, index) => (
|
|
13
|
-
<Flex key={index} justify="between" css={{ mb: '$8' }}>
|
|
14
|
-
{emojiLine.map(emoji => (
|
|
15
|
-
<EmojiContainer key={emoji.emojiId} onClick={() => sendReaction(emoji.emojiId)}>
|
|
16
|
-
<em-emoji id={emoji.emojiId} size="100%" set="apple"></em-emoji>
|
|
17
|
-
</EmojiContainer>
|
|
18
|
-
))}
|
|
19
|
-
</Flex>
|
|
20
|
-
));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const EmojiContainer = styled('span', {
|
|
24
|
-
position: 'relative',
|
|
25
|
-
cursor: 'pointer',
|
|
26
|
-
width: '$16',
|
|
27
|
-
height: '$16',
|
|
28
|
-
p: '$4',
|
|
29
|
-
'&:hover': {
|
|
30
|
-
p: '7px',
|
|
31
|
-
bg: '$surface_brighter',
|
|
32
|
-
borderRadius: '$1',
|
|
33
|
-
},
|
|
34
|
-
});
|