@nualang/nualang-ui-components 0.1.1400 → 0.2.0
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/package.json +1 -1
- package/dist/Assignments/AssignmentBotSelection/AssignmentBotSelection.js +0 -278
- package/dist/Assignments/AssignmentBotSelection/package.json +0 -6
- package/dist/Assignments/AssignmentCard/AssignmentCard.js +0 -297
- package/dist/Assignments/AssignmentCard/package.json +0 -6
- package/dist/Assignments/AssignmentCardsList/AssignmentCardsList.js +0 -389
- package/dist/Assignments/AssignmentCardsList/package.json +0 -6
- package/dist/Assignments/AssignmentCourseSelection/AssignmentCourseSelection.js +0 -280
- package/dist/Assignments/AssignmentCourseSelection/package.json +0 -6
- package/dist/Assignments/AssignmentExerciseSelection/AssignmentExerciseSelection.js +0 -1056
- package/dist/Assignments/AssignmentExerciseSelection/package.json +0 -6
- package/dist/Assignments/AssignmentExerciseSelector/AssignmentExerciseSelector.js +0 -53
- package/dist/Assignments/AssignmentExerciseSelector/package.json +0 -6
- package/dist/Assignments/AssignmentPhraseListSelection/AssignmentPhraseListSelection.js +0 -469
- package/dist/Assignments/AssignmentPhraseListSelection/package.json +0 -6
- package/dist/Assignments/AssignmentRoleplaySelection/AssignmentRoleplaySelection.js +0 -498
- package/dist/Assignments/AssignmentRoleplaySelection/package.json +0 -6
- package/dist/Assignments/AssignmentSelectExercise/AssignmentSelectExercise.js +0 -113
- package/dist/Assignments/CreateAssignmentDialog/CreateAssignmentDialog.js +0 -654
- package/dist/Assignments/CreateAssignmentDialog/package.json +0 -6
- package/dist/Assignments/SelectAssignmentTypeDialog/SelectAssignmentTypeDialog.js +0 -168
- package/dist/Assignments/SelectAssignmentTypeDialog/package.json +0 -6
- package/dist/Cards/Avatar/Avatar.js +0 -45
- package/dist/Cards/Bot/Bot.js +0 -399
- package/dist/Cards/Bot/Bot.test.js +0 -21
- package/dist/Cards/Bot/package.json +0 -6
- package/dist/Cards/CardElements/CardSubheader/CardSubheader.js +0 -28
- package/dist/Cards/CardElements/CardSubheader/package.json +0 -6
- package/dist/Cards/CardElements/CardTitle/CardTitle.js +0 -30
- package/dist/Cards/CardElements/CardTitle/package.json +0 -6
- package/dist/Cards/CardElements/CardVisibility/CardVisibility.js +0 -80
- package/dist/Cards/CardElements/CardVisibility/package.json +0 -6
- package/dist/Cards/CardElements/index.js +0 -181
- package/dist/Cards/Category/Category.js +0 -92
- package/dist/Cards/Category/sample.png +0 -0
- package/dist/Cards/Classroom/Classroom.js +0 -414
- package/dist/Cards/Classroom/Classroom.test.js +0 -30
- package/dist/Cards/Classroom/package.json +0 -6
- package/dist/Cards/Course/Course.js +0 -704
- package/dist/Cards/Course/Course.test.js +0 -30
- package/dist/Cards/Course/package.json +0 -6
- package/dist/Cards/FeedbackCard/FeedbackCard.js +0 -624
- package/dist/Cards/LoadingCard/LoadingCard.js +0 -39
- package/dist/Cards/PreviewCard/PreviewCard.js +0 -63
- package/dist/Cards/PreviewCard/PreviewCard.test.js +0 -20
- package/dist/Cards/RecordingCard/RecordingCard.js +0 -250
- package/dist/Cards/Roleplay/Roleplay.js +0 -398
- package/dist/Cards/Roleplay/Roleplay.test.js +0 -21
- package/dist/Cards/Roleplay/package.json +0 -6
- package/dist/Cards/ScheduleCard/ScheduleCard.js +0 -152
- package/dist/Cards/SubmissionsCard/SubmissionsCard.js +0 -138
- package/dist/Cards/SubscriptionPlan/SubscriptionPlan.js +0 -395
- package/dist/Cards/SubscriptionPlan/SubscriptionPlan.test.js +0 -20
- package/dist/Cards/SubscriptionPlan/nuala.svg +0 -28
- package/dist/Cards/SubscriptionPlan/package.json +0 -6
- package/dist/Cards/SubscriptionPlan/plus.svg +0 -4
- package/dist/Cards/Topic/Topic.js +0 -276
- package/dist/Cards/Topic/Topic.test.js +0 -21
- package/dist/Cards/Topic/package.json +0 -6
- package/dist/Cards/index.js +0 -2
- package/dist/Charts/Bar/Exercises/Exercises.js +0 -118
- package/dist/Charts/Bar/Exercises/package.json +0 -6
- package/dist/Charts/Bar/TotalGrades/TotalGrades.js +0 -123
- package/dist/Charts/Bar/TotalGrades/package.json +0 -6
- package/dist/Charts/Doughnut/AnswerMethod/AnswerMethod.js +0 -97
- package/dist/Charts/Doughnut/AnswerMethod/package.json +0 -6
- package/dist/Charts/Doughnut/AnswersBreakdown/AnswersBreakdown.js +0 -105
- package/dist/Charts/Doughnut/AnswersBreakdown/package.json +0 -6
- package/dist/Charts/Doughnut/RecordingAttendance/RecordingAttendance.js +0 -100
- package/dist/Charts/Doughnut/SubmittedRecordings/SubmittedRecordings.js +0 -87
- package/dist/Chat/BottomBar/BottomBar.js +0 -375
- package/dist/Chat/BottomBar/package.json +0 -6
- package/dist/Chat/Chat.js +0 -205
- package/dist/Chat/ChatLoading/ChatLoading.js +0 -224
- package/dist/Chat/ChatLoading/package.json +0 -6
- package/dist/Chat/Messages/Message/Message.js +0 -710
- package/dist/Chat/Messages/Message/package.json +0 -6
- package/dist/Chat/Messages/Messages.js +0 -270
- package/dist/Chat/Messages/Question/Question.js +0 -485
- package/dist/Chat/Messages/Question/package.json +0 -6
- package/dist/Chat/Messages/package.json +0 -6
- package/dist/Chat/TopBar/TopBar.js +0 -123
- package/dist/Chat/TopBar/package.json +0 -6
- package/dist/Chat/VoiceMessage/VoiceMessage.js +0 -144
- package/dist/Chat/VoiceMessage/package.json +0 -6
- package/dist/Chat/package.json +0 -6
- package/dist/Containers/App/App.js +0 -537
- package/dist/Containers/App/package.json +0 -6
- package/dist/Dialogs/AddToClassroom/AddToClassroom.js +0 -117
- package/dist/Dialogs/AddToClassroom/AddToClassroom.test.js +0 -15
- package/dist/Dialogs/AddToClassroom/package.json +0 -6
- package/dist/Dialogs/AddToCourse/AddToCourse.js +0 -73
- package/dist/Dialogs/Alternatives/Alternatives.js +0 -67
- package/dist/Dialogs/Alternatives/package.json +0 -6
- package/dist/Dialogs/AvatarDialog/AvatarDialog.js +0 -585
- package/dist/Dialogs/AvatarDialog/options.js +0 -120
- package/dist/Dialogs/BotPreview/BotPreview.js +0 -350
- package/dist/Dialogs/BotPreview/package.json +0 -6
- package/dist/Dialogs/Code/Code.js +0 -147
- package/dist/Dialogs/Code/Code.test.js +0 -20
- package/dist/Dialogs/Code/package.json +0 -6
- package/dist/Dialogs/ConfirmDeleteDiscussion/ConfirmDeleteDiscussion.js +0 -46
- package/dist/Dialogs/ConfirmDialog/ConfirmDialog.js +0 -198
- package/dist/Dialogs/CourseOutline/CourseOutline.js +0 -27
- package/dist/Dialogs/CourseOutline/CourseOutline.test.js +0 -28
- package/dist/Dialogs/CourseOutline/package.json +0 -6
- package/dist/Dialogs/CreatePhrase/CreatePhrase.js +0 -733
- package/dist/Dialogs/CreatePhrase/CreatePhrase.test.js +0 -20
- package/dist/Dialogs/CreatePhrase/package.json +0 -6
- package/dist/Dialogs/CreatePhraseGroupDialog/CreatePhraseGroupDialog.js +0 -188
- package/dist/Dialogs/CreatePhraseListFromSelectionDialog/CreatePhraseListFromSelectionDialog.js +0 -49
- package/dist/Dialogs/CreateQuestion/CreateQuestion.js +0 -282
- package/dist/Dialogs/CreateQuestion/CreateQuestion.test.js +0 -15
- package/dist/Dialogs/CreateQuestion/package.json +0 -6
- package/dist/Dialogs/CreateSection/CreateSection.js +0 -51
- package/dist/Dialogs/CreateSection/CreateSection.test.js +0 -15
- package/dist/Dialogs/CreateSection/package.json +0 -6
- package/dist/Dialogs/CreateTopic/CreateTopic.js +0 -135
- package/dist/Dialogs/CreateTopic/CreateTopic.test.js +0 -15
- package/dist/Dialogs/CreateTopic/package.json +0 -6
- package/dist/Dialogs/CreatorNotSubscribed/CreatorNotSubscribed.js +0 -19
- package/dist/Dialogs/CreatorNotSubscribedUpgrade/CreatorNotSubscribedUpgrade.js +0 -50
- package/dist/Dialogs/DynamicAIWarning/DynamicAIWarning.js +0 -183
- package/dist/Dialogs/DynamicAIWarning/owl.png +0 -0
- package/dist/Dialogs/EnrollmentKeyDialog/EnrollmentKeyDialog.js +0 -47
- package/dist/Dialogs/ExerciseMenu/ExerciseMenu.js +0 -92
- package/dist/Dialogs/ExerciseMenu/Menus/CloseBotPreview/CloseBotPreview.js +0 -20
- package/dist/Dialogs/ExerciseMenu/Menus/CloseBotPreview/package.json +0 -6
- package/dist/Dialogs/ExerciseMenu/Menus/CloseExercise/CloseExercise.js +0 -52
- package/dist/Dialogs/ExerciseMenu/Menus/CloseExercise/package.json +0 -6
- package/dist/Dialogs/ExerciseMenu/Menus/CompletedExcercise/CompletedExcercise.js +0 -60
- package/dist/Dialogs/ExerciseMenu/Menus/CompletedExcercise/package.json +0 -6
- package/dist/Dialogs/ExerciseMenu/Menus/InProgressExercise/InProgressExercise.js +0 -43
- package/dist/Dialogs/ExerciseMenu/Menus/InProgressExercise/package.json +0 -6
- package/dist/Dialogs/ExerciseMenu/package.json +0 -6
- package/dist/Dialogs/Feedback/FeedbackDialog.js +0 -86
- package/dist/Dialogs/FeedbackDialog/FeedbackDialog.js +0 -123
- package/dist/Dialogs/FeedbackInfoDialog/FeedbackInfoDialog.js +0 -39
- package/dist/Dialogs/FindTopicsDialog/FindTopicsDialog.js +0 -442
- package/dist/Dialogs/GenerateBot/GenerateBot.js +0 -429
- package/dist/Dialogs/GenerateBot/package.json +0 -6
- package/dist/Dialogs/GenerateDefinitions/GenerateDefinitions.js +0 -217
- package/dist/Dialogs/GenerateDefinitions/package.json +0 -6
- package/dist/Dialogs/GenerateDiscussion/GenerateDiscussion.js +0 -275
- package/dist/Dialogs/GeneratePhrases/GeneratePhrases.js +0 -379
- package/dist/Dialogs/GeneratePhrases/package.json +0 -6
- package/dist/Dialogs/GenerateQuestion/GenerateQuestion.js +0 -212
- package/dist/Dialogs/GenerateQuestion/package.json +0 -6
- package/dist/Dialogs/GenerateRoleplay/GenerateRoleplay.js +0 -735
- package/dist/Dialogs/GenerateRoleplay/package.json +0 -6
- package/dist/Dialogs/GroupedFeedbackDialog/GroupedFeedbackDialog.js +0 -711
- package/dist/Dialogs/GroupedFeedbackDialog/package.json +0 -6
- package/dist/Dialogs/Icons/Icons.js +0 -18
- package/dist/Dialogs/Icons/package.json +0 -6
- package/dist/Dialogs/ImageLibrary/ImageLibrary.js +0 -34
- package/dist/Dialogs/ImageLibrary/ImageLibrary.test.js +0 -20
- package/dist/Dialogs/ImageLibrary/package.json +0 -6
- package/dist/Dialogs/ImageLibraryDialog/ImageLibraryDialog.js +0 -33
- package/dist/Dialogs/InactivePopover/InactivePopover.js +0 -71
- package/dist/Dialogs/InviteDialog/InviteDialog.js +0 -695
- package/dist/Dialogs/InviteDialog/package.json +0 -6
- package/dist/Dialogs/InviteDialog/upload-emails-csv.png +0 -0
- package/dist/Dialogs/Listener/Listener.js +0 -87
- package/dist/Dialogs/Listener/Listener.test.js +0 -24
- package/dist/Dialogs/Listener/package.json +0 -6
- package/dist/Dialogs/LiveGameTutorial/LiveGameTutorial.js +0 -166
- package/dist/Dialogs/LiveGameTutorial/package.json +0 -6
- package/dist/Dialogs/Members/Members.js +0 -27
- package/dist/Dialogs/Members/Members.test.js +0 -20
- package/dist/Dialogs/Members/package.json +0 -6
- package/dist/Dialogs/ModeratedDialog/ModeratedDialog.js +0 -35
- package/dist/Dialogs/PDFViewer/PDFViewer.js +0 -252
- package/dist/Dialogs/PDFViewer/pdf24.pdf +0 -0
- package/dist/Dialogs/PDFViewer/rubrics/level1Rubric.pdf +0 -0
- package/dist/Dialogs/PDFViewer/rubrics/level2Rubric.pdf +0 -0
- package/dist/Dialogs/PDFViewer/rubrics/level3Rubric.pdf +0 -0
- package/dist/Dialogs/PDFViewer/rubrics/level4Rubric.pdf +0 -0
- package/dist/Dialogs/PhraseNameDialog/PhraseNameDialog.js +0 -30
- package/dist/Dialogs/QuickCreateClassroomDialog/QuickCreateClassroomDialog.js +0 -266
- package/dist/Dialogs/QuickCreateCourseDialog/QuickCreateCourseDialog.js +0 -283
- package/dist/Dialogs/QuickCreateTopicDialog/QuickCreateTopicDialog.js +0 -260
- package/dist/Dialogs/RecordingDialog/RecordingDialog.js +0 -288
- package/dist/Dialogs/ReportProblem/ReportProblem.js +0 -287
- package/dist/Dialogs/ReportProblem/ReportProblem.test.js +0 -15
- package/dist/Dialogs/ReportProblem/package.json +0 -6
- package/dist/Dialogs/ResponsiveDialog/ResponsiveDialog.js +0 -108
- package/dist/Dialogs/ResponsiveDialog/ResponsiveDialog.test.js +0 -15
- package/dist/Dialogs/ResponsiveDialog/package.json +0 -6
- package/dist/Dialogs/RewardEarned/RewardEarned.js +0 -111
- package/dist/Dialogs/RewardEarned/package.json +0 -6
- package/dist/Dialogs/RoleplayPreview/RoleplayPreview.js +0 -87
- package/dist/Dialogs/SearchTopic/SearchTopic.js +0 -87
- package/dist/Dialogs/SelectActor/SelectActor.js +0 -157
- package/dist/Dialogs/SelectActor/package.json +0 -6
- package/dist/Dialogs/SelectClassroom/SelectClassroom.js +0 -81
- package/dist/Dialogs/SelectClassroom/package.json +0 -6
- package/dist/Dialogs/SelectExercise/SelectExercise.js +0 -47
- package/dist/Dialogs/SelectExercise/package.json +0 -6
- package/dist/Dialogs/Substitution/Substitution.js +0 -82
- package/dist/Dialogs/Substitution/package.json +0 -6
- package/dist/Dialogs/Topic/Topic.js +0 -69
- package/dist/Dialogs/Topic/package.json +0 -6
- package/dist/Dialogs/TopicPreview/TopicPreview.js +0 -39
- package/dist/Dialogs/TopicPreview/package.json +0 -6
- package/dist/Dialogs/TransferPhrase/TransferPhrase.js +0 -115
- package/dist/Dialogs/Trigger/Trigger.js +0 -213
- package/dist/Dialogs/Trigger/package.json +0 -6
- package/dist/Dialogs/UpgradeSubscription/UpgradeSubscription.js +0 -40
- package/dist/Dialogs/UploadBotVars/UploadBotVars.jpeg +0 -0
- package/dist/Dialogs/UploadBotVars/UploadBotVars.js +0 -186
- package/dist/Dialogs/UploadBotVars/UploadBotVars.test.js +0 -20
- package/dist/Dialogs/UploadBotVars/package.json +0 -6
- package/dist/Dialogs/UploadPhrases/UploadPhrases.js +0 -553
- package/dist/Dialogs/UploadPhrases/UploadPhrases.test.js +0 -20
- package/dist/Dialogs/UploadPhrases/package.json +0 -6
- package/dist/Dialogs/UploadPhrases/upload-phrases-csv.png +0 -0
- package/dist/Dialogs/UploadRoleplayScript/UploadRoleplayScript.js +0 -287
- package/dist/Dialogs/UploadRoleplayScript/UploadRoleplayScript.test.js +0 -20
- package/dist/Dialogs/UploadRoleplayScript/package.json +0 -6
- package/dist/Dialogs/UploadRoleplayScript/roleplay-script-csv.png +0 -0
- package/dist/Dialogs/UploadVideo/UploadVideo.js +0 -80
- package/dist/Dialogs/UploadVideo/UploadVideo.test.js +0 -20
- package/dist/Dialogs/UploadVideo/package.json +0 -6
- package/dist/Dialogs/Variable/Variable.js +0 -74
- package/dist/Dialogs/Variable/package.json +0 -6
- package/dist/Dialogs/VideoViewer/VideoViewer.js +0 -61
- package/dist/Dialogs/ViewImageDialog/ViewImageDialog.js +0 -24
- package/dist/Dialogs/WaveformDialog/WaveformDialog.js +0 -110
- package/dist/Editors/Bot/Bot.js +0 -843
- package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/AddImageModal.js +0 -98
- package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/AddImageModal.test.js +0 -12
- package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/package.json +0 -6
- package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/AddLinkModal.js +0 -95
- package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/AddLinkModal.test.js +0 -12
- package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/package.json +0 -6
- package/dist/Editors/Bot/Editor/BotDesigner/AlternativesList.js +0 -88
- package/dist/Editors/Bot/Editor/BotDesigner/BotDesigner.js +0 -66
- package/dist/Editors/Bot/Editor/BotDesigner/BotDesigner.test.js +0 -34
- package/dist/Editors/Bot/Editor/BotDesigner/VarList.js +0 -324
- package/dist/Editors/Bot/Editor/BotDesigner/package.json +0 -6
- package/dist/Editors/Bot/Editor/Editor.js +0 -628
- package/dist/Editors/Bot/Editor/package.json +0 -6
- package/dist/Editors/Bot/Tutorial.js +0 -154
- package/dist/Editors/Bot/package.json +0 -6
- package/dist/Editors/PhraseList/PhraseList.js +0 -388
- package/dist/Editors/Phrases/Phrases.js +0 -617
- package/dist/Editors/Phrases/SpreadsheetEditor/SpreadsheetEditor.js +0 -146
- package/dist/Editors/Roleplay/Roleplay.js +0 -955
- package/dist/Editors/Roleplay/package.json +0 -6
- package/dist/Exercises/Bot/Bot.js +0 -716
- package/dist/Exercises/Bot/Bot.test.js +0 -25
- package/dist/Exercises/Bot/package.json +0 -6
- package/dist/Exercises/ListenAndSpeak/ListenAndSpeak.js +0 -968
- package/dist/Exercises/Listener/Listener.js +0 -1029
- package/dist/Exercises/Listener/Listener.test.js +0 -25
- package/dist/Exercises/Listener/package.json +0 -6
- package/dist/Exercises/Meaning/Meaning.js +0 -805
- package/dist/Exercises/MeaningReadWrite/MeaningReadWriteGame.js +0 -731
- package/dist/Exercises/PhraseGroup/Games/ListenAndSpeakGame/ListenAndSpeakGame.js +0 -97
- package/dist/Exercises/PhraseGroup/Games/ListeningGame/ListeningGame.js +0 -91
- package/dist/Exercises/PhraseGroup/Games/MeaningGame/MeaningGame.js +0 -90
- package/dist/Exercises/PhraseGroup/Games/MeaningReadWriteGame/MeaningReadWriteGame.js +0 -90
- package/dist/Exercises/PhraseGroup/Games/PronunciationGame/PronunciationGame.js +0 -87
- package/dist/Exercises/PhraseGroup/Games/TranslationGame/TranslationGame.js +0 -92
- package/dist/Exercises/PhraseGroup/Games/index.js +0 -7
- package/dist/Exercises/PhraseGroup/PhraseGroup.js +0 -271
- package/dist/Exercises/PhraseGroup/PhraseGroup.test.js +0 -28
- package/dist/Exercises/PhraseGroup/PhraseGroupGameOptions/PhraseGroupGame/PhraseGroupGame.js +0 -296
- package/dist/Exercises/PhraseGroup/PhraseGroupGameOptions/PhraseGroupGames.js +0 -70
- package/dist/Exercises/PhraseGroup/PhraseGroupInfo/PhraseGroupInfo.js +0 -135
- package/dist/Exercises/PhraseGroup/package.json +0 -7
- package/dist/Exercises/Pronouncer/Pronouncer.js +0 -978
- package/dist/Exercises/Pronouncer/Pronouncer.test.js +0 -23
- package/dist/Exercises/Pronouncer/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/ActItOutGame/ActItOutGame.js +0 -502
- package/dist/Exercises/Roleplay/Games/ActItOutGame/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/ActItOutGameListening/ActItOutGameListening.js +0 -505
- package/dist/Exercises/Roleplay/Games/ActItOutGameListening/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/ActItOutGameListeningAndSpeaking/ActItOutGame.js +0 -735
- package/dist/Exercises/Roleplay/Games/ActItOutGameListeningAndSpeaking/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/ActItOutGameSpeaking/ActItOutGame.js +0 -725
- package/dist/Exercises/Roleplay/Games/ActItOutGameSpeaking/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/BeforeElements.js +0 -68
- package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/FillInBlanks.js +0 -264
- package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/FillInTheBlanksGame.js +0 -360
- package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/StoryGame/StoryGame.js +0 -347
- package/dist/Exercises/Roleplay/Games/StoryGame/package.json +0 -6
- package/dist/Exercises/Roleplay/Games/TopBarActions.js +0 -336
- package/dist/Exercises/Roleplay/Games/Transition.js +0 -9
- package/dist/Exercises/Roleplay/Games/index.js +0 -7
- package/dist/Exercises/Roleplay/OriginalRoleplay.js +0 -946
- package/dist/Exercises/Roleplay/Roleplay.js +0 -399
- package/dist/Exercises/Roleplay/Roleplay.test.js +0 -30
- package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGame/RoleplayGame.js +0 -194
- package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGame/RoleplayGame.test.js +0 -23
- package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGame/package.json +0 -6
- package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGames.js +0 -61
- package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGames.test.js +0 -23
- package/dist/Exercises/Roleplay/RoleplayGameOptions/package.json +0 -6
- package/dist/Exercises/Roleplay/RoleplayInfo/RoleplayInfo.js +0 -153
- package/dist/Exercises/Roleplay/RoleplayInfo/RoleplayInfo.test.js +0 -23
- package/dist/Exercises/Roleplay/RoleplayInfo/package.json +0 -6
- package/dist/Exercises/Roleplay/package.json +0 -6
- package/dist/Exercises/Translator/Translator.js +0 -1028
- package/dist/Exercises/Translator/Translator.test.js +0 -29
- package/dist/Exercises/Translator/package.json +0 -6
- package/dist/Forms/AppContact/AppContact.js +0 -141
- package/dist/Forms/ChipInput/ChipInput.js +0 -74
- package/dist/Forms/ChipInput/package.json +0 -6
- package/dist/Forms/Contact/Contact.js +0 -363
- package/dist/Forms/CreateBot/CreateBot.js +0 -77
- package/dist/Forms/CreateBot/CreateBot.test.js +0 -20
- package/dist/Forms/CreateBot/Steps/BotInformation/BotInformation.js +0 -649
- package/dist/Forms/CreateBot/Steps/BotInformation/__mocks__/react-simplemde-editor.js +0 -8
- package/dist/Forms/CreateBot/Steps/BotInformation/package.json +0 -6
- package/dist/Forms/CreateBot/Steps/BotSettings/BotSettings.js +0 -199
- package/dist/Forms/CreateBot/Steps/BotSettings/package.json +0 -6
- package/dist/Forms/CreateBot/Steps/Confirmation/Confirmation.js +0 -237
- package/dist/Forms/CreateBot/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateBot/Steps/index.js +0 -4
- package/dist/Forms/CreateBot/package.json +0 -6
- package/dist/Forms/CreateClassroom/CreateClassroom.js +0 -53
- package/dist/Forms/CreateClassroom/CreateClassroom.test.js +0 -20
- package/dist/Forms/CreateClassroom/Steps/ClassroomInformation/ClassroomInformation.js +0 -168
- package/dist/Forms/CreateClassroom/Steps/ClassroomInformation/package.json +0 -6
- package/dist/Forms/CreateClassroom/Steps/ClassroomSettings/ClassroomSettings.js +0 -401
- package/dist/Forms/CreateClassroom/Steps/ClassroomSettings/package.json +0 -6
- package/dist/Forms/CreateClassroom/Steps/Confirmation/Confirmation.js +0 -117
- package/dist/Forms/CreateClassroom/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateClassroom/Steps/CourseSettings/CourseSettings.js +0 -340
- package/dist/Forms/CreateClassroom/Steps/CourseSettings/package.json +0 -6
- package/dist/Forms/CreateClassroom/Steps/Customization/Customization.js +0 -77
- package/dist/Forms/CreateClassroom/Steps/Customization/package.json +0 -6
- package/dist/Forms/CreateClassroom/Steps/index.js +0 -6
- package/dist/Forms/CreateClassroom/package.json +0 -6
- package/dist/Forms/CreateCourse/CreateCourse.js +0 -62
- package/dist/Forms/CreateCourse/CreateCourse.test.js +0 -20
- package/dist/Forms/CreateCourse/Steps/Confirmation/Confirmation.js +0 -117
- package/dist/Forms/CreateCourse/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateCourse/Steps/CourseInformation/CourseInformation.js +0 -194
- package/dist/Forms/CreateCourse/Steps/CourseInformation/package.json +0 -6
- package/dist/Forms/CreateCourse/Steps/CourseSettings/CourseSettings.js +0 -257
- package/dist/Forms/CreateCourse/Steps/CourseSettings/package.json +0 -6
- package/dist/Forms/CreateCourse/Steps/Customization/Customization.js +0 -77
- package/dist/Forms/CreateCourse/Steps/Customization/package.json +0 -6
- package/dist/Forms/CreateCourse/Steps/index.js +0 -5
- package/dist/Forms/CreateCourse/package.json +0 -6
- package/dist/Forms/CreateGroup/CreateGroup.js +0 -55
- package/dist/Forms/CreateGroup/CreateGroup.test.js +0 -20
- package/dist/Forms/CreateGroup/Steps/Confirmation/Confirmation.js +0 -172
- package/dist/Forms/CreateGroup/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateGroup/Steps/GroupInformation/GroupInformation.js +0 -130
- package/dist/Forms/CreateGroup/Steps/GroupInformation/package.json +0 -6
- package/dist/Forms/CreateGroup/Steps/GroupSettings/GroupSettings.js +0 -171
- package/dist/Forms/CreateGroup/Steps/GroupSettings/package.json +0 -6
- package/dist/Forms/CreateGroup/Steps/index.js +0 -4
- package/dist/Forms/CreateGroup/package.json +0 -6
- package/dist/Forms/CreateMeetingMultiStepForm/CreateMeetingMultiStepForm.js +0 -88
- package/dist/Forms/CreateMeetingMultiStepForm/GroupAssignment.js +0 -919
- package/dist/Forms/CreateMeetingMultiStepForm/MeetingForm.js +0 -501
- package/dist/Forms/CreateMeetingMultiStepForm/images/input1.js +0 -2
- package/dist/Forms/CreateMeetingMultiStepForm/images/input5.js +0 -2
- package/dist/Forms/CreateMeetingMultiStepForm/images/mode1.js +0 -2
- package/dist/Forms/CreateMeetingMultiStepForm/images/mode2.js +0 -2
- package/dist/Forms/CreateMeetingMultiStepForm/sampleTemplates.js +0 -44
- package/dist/Forms/CreateRoleplay/CreateRoleplay.js +0 -87
- package/dist/Forms/CreateRoleplay/CreateRoleplay.test.js +0 -20
- package/dist/Forms/CreateRoleplay/Steps/Confirmation/Confirmation.js +0 -166
- package/dist/Forms/CreateRoleplay/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateRoleplay/Steps/RoleplayInformation/RoleplayInformation.js +0 -501
- package/dist/Forms/CreateRoleplay/Steps/RoleplayInformation/package.json +0 -6
- package/dist/Forms/CreateRoleplay/Steps/RoleplaySettings/RoleplaySettings.js +0 -261
- package/dist/Forms/CreateRoleplay/Steps/RoleplaySettings/package.json +0 -6
- package/dist/Forms/CreateRoleplay/Steps/index.js +0 -4
- package/dist/Forms/CreateRoleplay/package.json +0 -6
- package/dist/Forms/CreateRoleplayHook/CreateRoleplayHook.js +0 -83
- package/dist/Forms/CreateRoleplayHook/CreateRoleplayHook.test.js +0 -20
- package/dist/Forms/CreateRoleplayHook/Steps/Confirmation/Confirmation.js +0 -174
- package/dist/Forms/CreateRoleplayHook/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateRoleplayHook/Steps/RoleplayInformation/RoleplayInformation.js +0 -487
- package/dist/Forms/CreateRoleplayHook/Steps/RoleplayInformation/package.json +0 -6
- package/dist/Forms/CreateRoleplayHook/Steps/RoleplaySettings/RoleplaySettings.js +0 -330
- package/dist/Forms/CreateRoleplayHook/Steps/RoleplaySettings/package.json +0 -6
- package/dist/Forms/CreateRoleplayHook/Steps/index.js +0 -4
- package/dist/Forms/CreateRoleplayHook/package.json +0 -6
- package/dist/Forms/CreateTopic/CreateTopic.js +0 -52
- package/dist/Forms/CreateTopic/CreateTopic.test.js +0 -20
- package/dist/Forms/CreateTopic/Steps/Confirmation/Confirmation.js +0 -111
- package/dist/Forms/CreateTopic/Steps/Confirmation/package.json +0 -6
- package/dist/Forms/CreateTopic/Steps/Customization/Customization.js +0 -77
- package/dist/Forms/CreateTopic/Steps/Customization/package.json +0 -6
- package/dist/Forms/CreateTopic/Steps/TopicInformation/TopicInformation.js +0 -190
- package/dist/Forms/CreateTopic/Steps/TopicInformation/package.json +0 -6
- package/dist/Forms/CreateTopic/Steps/TopicSettings/TopicSettings.js +0 -81
- package/dist/Forms/CreateTopic/Steps/TopicSettings/package.json +0 -6
- package/dist/Forms/CreateTopic/Steps/index.js +0 -4
- package/dist/Forms/CreateTopic/package.json +0 -6
- package/dist/Forms/CreateUser/CreateUser.js +0 -77
- package/dist/Forms/DiscussImageSelector/ImageSelector.js +0 -311
- package/dist/Forms/DiscussImageSelector/package.json +0 -6
- package/dist/Forms/DiscussMultiStepFormDialog/MultiStepFormDialog.js +0 -402
- package/dist/Forms/DiscussMultiStepFormDialog/package.json +0 -6
- package/dist/Forms/FeedbackForm/FeedbackForm.js +0 -1036
- package/dist/Forms/FeedbackInfo/FeedbackInfo.js +0 -233
- package/dist/Forms/ImageSelector/ImageSelector.js +0 -516
- package/dist/Forms/ImageSelector/package.json +0 -6
- package/dist/Forms/InputHelper/InputHelper.js +0 -277
- package/dist/Forms/InputHelper/package.json +0 -6
- package/dist/Forms/LanguageSelector/LanguageSelector.js +0 -49
- package/dist/Forms/LanguageSelector/LanguageSelector.test.js +0 -15
- package/dist/Forms/MarkdownEditor/MarkdownEditor.js +0 -72
- package/dist/Forms/MarkdownEditor/MarkdownEditor.test.js +0 -35
- package/dist/Forms/MarkdownEditor/package.json +0 -6
- package/dist/Forms/MultiStepForm/Debug.js +0 -38
- package/dist/Forms/MultiStepForm/MultiStepForm.js +0 -278
- package/dist/Forms/MultiStepForm/MultiStepForm.test.js +0 -20
- package/dist/Forms/MultiStepForm/package.json +0 -6
- package/dist/Forms/MultiStepFormDialog/MultiStepFormDialog.js +0 -354
- package/dist/Forms/MultiStepFormDialog/MultiStepFormDialog.test.js +0 -20
- package/dist/Forms/MultiStepFormDialog/package.json +0 -6
- package/dist/Forms/MultiStepFormHook/MultiStepFormHook.js +0 -279
- package/dist/Forms/PdfUploader/PdfUploader.js +0 -250
- package/dist/Forms/PdfUploader/package.json +0 -6
- package/dist/Forms/RecordingInfo/RecordingInfo.js +0 -140
- package/dist/Forms/Settings/Settings.js +0 -138
- package/dist/Forms/Settings/Tabs/Display/Display.js +0 -106
- package/dist/Forms/Settings/Tabs/Display/package.json +0 -6
- package/dist/Forms/Settings/Tabs/EmailNotifications/EmailNotifications.js +0 -108
- package/dist/Forms/Settings/Tabs/EmailNotifications/package.json +0 -6
- package/dist/Forms/Settings/Tabs/General/General.js +0 -534
- package/dist/Forms/Settings/Tabs/General/package.json +0 -6
- package/dist/Forms/Settings/Tabs/Subscription/Subscription.js +0 -259
- package/dist/Forms/Settings/Tabs/Subscription/package.json +0 -6
- package/dist/Forms/Settings/package.json +0 -6
- package/dist/Forms/SortBySelector/SortBySelector.js +0 -47
- package/dist/Forms/UpdateBot/UpdateBot.js +0 -234
- package/dist/Forms/UpdateBot/UpdateBot.test.js +0 -23
- package/dist/Forms/UpdateBot/package.json +0 -6
- package/dist/Forms/UpdateClassroom/UpdateClassroom.js +0 -368
- package/dist/Forms/UpdateClassroom/UpdateClassroom.test.js +0 -20
- package/dist/Forms/UpdateClassroom/package.json +0 -6
- package/dist/Forms/UpdateCourse/UpdateCourse.js +0 -260
- package/dist/Forms/UpdateCourse/UpdateCourse.test.js +0 -20
- package/dist/Forms/UpdateCourse/package.json +0 -6
- package/dist/Forms/UpdateGroup/UpdateGroup.js +0 -185
- package/dist/Forms/UpdateGroup/UpdateGroup.test.js +0 -25
- package/dist/Forms/UpdateGroup/package.json +0 -6
- package/dist/Forms/UpdatePhraseList/UpdatePhraseList.js +0 -529
- package/dist/Forms/UpdateRoleplay/UpdateRoleplay.js +0 -238
- package/dist/Forms/UpdateRoleplay/UpdateRoleplay.test.js +0 -20
- package/dist/Forms/UpdateRoleplay/package.json +0 -6
- package/dist/Forms/UpdateTopic/UpdateTopic.js +0 -248
- package/dist/Forms/UpdateTopic/UpdateTopic.test.js +0 -20
- package/dist/Forms/UpdateTopic/package.json +0 -6
- package/dist/Forms/VideoUploader/VideoUploader.js +0 -197
- package/dist/Forms/VideoUploader/package.json +0 -6
- package/dist/Forms/VoiceSelector/VoiceSelector.js +0 -343
- package/dist/Forms/VoiceSelector/VoiceSelector.test.js +0 -15
- package/dist/Forms/VoiceSelector/package.json +0 -6
- package/dist/Lists/Avatars/Avatars.js +0 -67
- package/dist/Lists/Bots/Bots.js +0 -208
- package/dist/Lists/Bots/Bots.test.js +0 -24
- package/dist/Lists/Bots/package.json +0 -6
- package/dist/Lists/Categories/Categories.js +0 -93
- package/dist/Lists/Categories/Categories.test.js +0 -22
- package/dist/Lists/Categories/package.json +0 -6
- package/dist/Lists/Categories/sample.png +0 -0
- package/dist/Lists/Classrooms/Classrooms.js +0 -117
- package/dist/Lists/Classrooms/Classrooms.test.js +0 -30
- package/dist/Lists/Classrooms/package.json +0 -6
- package/dist/Lists/CourseOutline/CourseOutline.js +0 -1542
- package/dist/Lists/CourseOutline/CourseOutline.test.js +0 -23
- package/dist/Lists/CourseOutline/package.json +0 -6
- package/dist/Lists/CourseSelection/CourseSelection.js +0 -166
- package/dist/Lists/Courses/Courses.js +0 -184
- package/dist/Lists/Courses/Courses.test.js +0 -30
- package/dist/Lists/Courses/package.json +0 -6
- package/dist/Lists/ExerciseSelection/ExerciseSelection.js +0 -523
- package/dist/Lists/Exercises/Exercises.js +0 -1630
- package/dist/Lists/Exercises/Exercises.test.js +0 -29
- package/dist/Lists/Exercises/package.json +0 -6
- package/dist/Lists/Leaderboard/Leaderboard.js +0 -405
- package/dist/Lists/Leaderboard/package.json +0 -6
- package/dist/Lists/ListElements/index.js +0 -35
- package/dist/Lists/Members/Members.js +0 -433
- package/dist/Lists/Members/Members.test.js +0 -20
- package/dist/Lists/Members/package.json +0 -6
- package/dist/Lists/ParseScriptErrors/ParseScriptErrors.js +0 -29
- package/dist/Lists/PhraseListSelection/PhraseListSelection.js +0 -238
- package/dist/Lists/Phrases/Phrases.js +0 -716
- package/dist/Lists/Phrases/Phrases.test.js +0 -28
- package/dist/Lists/Phrases/package.json +0 -6
- package/dist/Lists/RoleplaySelection/RoleplaySelection.js +0 -192
- package/dist/Lists/Roleplays/Roleplays.js +0 -218
- package/dist/Lists/Roleplays/Roleplays.test.js +0 -24
- package/dist/Lists/Roleplays/package.json +0 -6
- package/dist/Lists/Sections/Sections.js +0 -238
- package/dist/Lists/Sections/Sections.test.js +0 -20
- package/dist/Lists/Sections/package.json +0 -6
- package/dist/Lists/SubscriptionPlans/SubscriptionPlans.js +0 -49
- package/dist/Lists/SubscriptionPlans/SubscriptionPlans.test.js +0 -20
- package/dist/Lists/SubscriptionPlans/package.json +0 -6
- package/dist/Lists/Timeline/EventItem.js +0 -154
- package/dist/Lists/Timeline/EventList.js +0 -34
- package/dist/Lists/Timeline/TimelineLoaded.js +0 -65
- package/dist/Lists/Timeline/groupByDay.js +0 -24
- package/dist/Lists/TopicPreview/TopicPreview.js +0 -454
- package/dist/Lists/TopicPreview/package.json +0 -6
- package/dist/Lists/Topics/Topics.js +0 -123
- package/dist/Lists/Topics/Topics.test.js +0 -21
- package/dist/Lists/Topics/package.json +0 -6
- package/dist/Lists/Voices/Voices.js +0 -257
- package/dist/Lists/Voices/Voices.test.js +0 -15
- package/dist/Lists/Voices/horse.ogm +0 -0
- package/dist/Lists/Voices/package.json +0 -6
- package/dist/Live/Game/Game.js +0 -682
- package/dist/Live/Game/package.json +0 -6
- package/dist/Live/GameControls/GameControls.js +0 -69
- package/dist/Live/GameControls/package.json +0 -6
- package/dist/Live/GameMembers/GameMembers.js +0 -185
- package/dist/Live/GameMembers/package.json +0 -6
- package/dist/Live/GameQuestionResults/GameQuestionResults.js +0 -96
- package/dist/Live/GameQuestionResults/package.json +0 -6
- package/dist/Live/GameSettings/GameSettings.js +0 -248
- package/dist/Live/GameSettings/package.json +0 -6
- package/dist/Live/HowToJoin/HowToJoin.js +0 -120
- package/dist/Live/HowToJoin/package.json +0 -6
- package/dist/Live/LiveListener/LiveListener.js +0 -612
- package/dist/Live/LiveListener/package.json +0 -6
- package/dist/Live/LiveMeaning/LiveMeaning.js +0 -389
- package/dist/Live/LiveMeaningReadWrite/LiveMeaningReadWrite.js +0 -396
- package/dist/Live/LiveRoleplay/LiveStory/LiveStory.js +0 -260
- package/dist/Live/LiveRoleplay/LiveStory/package.json +0 -6
- package/dist/Live/LiveTranslator/LiveTranslator.js +0 -732
- package/dist/Live/Misc/FinalScoreDrawer/FinalScoreDrawer.js +0 -245
- package/dist/Live/Misc/FinalScoreDrawer/package.json +0 -6
- package/dist/Live/Misc/StudentAnswerDrawer/StudentAnswerDrawer.js +0 -146
- package/dist/Live/Misc/StudentAnswerDrawer/package.json +0 -6
- package/dist/Live/WaitingRoom/WaitingRoom.js +0 -422
- package/dist/Live/WaitingRoom/package.json +0 -6
- package/dist/Misc/AiExperienceIcon/AiExperienceIcon.js +0 -128
- package/dist/Misc/AnswerResult/AnswerResult.js +0 -882
- package/dist/Misc/AnswerResult/package.json +0 -6
- package/dist/Misc/AvatarSelector/AvatarSelector.js +0 -183
- package/dist/Misc/AvatarSwitcher/AvatarSwitcher.js +0 -57
- package/dist/Misc/AxiosRestExample/AxiosRestExample.js +0 -46
- package/dist/Misc/AxiosRestExample/AxiosRestPostExample.js +0 -65
- package/dist/Misc/CSVUploader/CSVUploader.js +0 -153
- package/dist/Misc/CSVUploader/package.json +0 -6
- package/dist/Misc/ChatBubble/ChatBubble.js +0 -71
- package/dist/Misc/ColorLinearProgress/ColorLinearProgress.js +0 -28
- package/dist/Misc/ColorLinearProgress/package.json +0 -6
- package/dist/Misc/ColorSelector/ColorSelector.js +0 -143
- package/dist/Misc/ColorSelector/package.json +0 -6
- package/dist/Misc/CustomChipInput/CustomChipInput.js +0 -391
- package/dist/Misc/CustomChipInput/package.json +0 -6
- package/dist/Misc/DefaultColourButton/DefaultColourButton.js +0 -39
- package/dist/Misc/DefaultColourButton/package.json +0 -6
- package/dist/Misc/DiscussionTopicSelector/TopicSelector.js +0 -191
- package/dist/Misc/DiscussionTopicSelector/package.json +0 -6
- package/dist/Misc/DragAndDropPreview/DragAndDropPreview.js +0 -40
- package/dist/Misc/DragAndDropPreview/package.json +0 -6
- package/dist/Misc/EmojiInput/EmojiInput.js +0 -83
- package/dist/Misc/EmojiInput/css/emoji-mart.css +0 -497
- package/dist/Misc/ExerciseBottomBar/ExerciseBottomBar.js +0 -95
- package/dist/Misc/ExerciseBottomBar/package.json +0 -6
- package/dist/Misc/ExerciseProgressBar/ExerciseProgressBar.js +0 -56
- package/dist/Misc/ExerciseProgressBar/package.json +0 -6
- package/dist/Misc/FabContainer/FabContainer.js +0 -42
- package/dist/Misc/FabContainer/package.json +0 -6
- package/dist/Misc/HideOnScroll/HideOnScroll.js +0 -27
- package/dist/Misc/HideOnScroll/package.json +0 -6
- package/dist/Misc/HoverText/HoverText.js +0 -303
- package/dist/Misc/HtmlTooltipComponent/HtmlTooltipComponent.js +0 -69
- package/dist/Misc/HtmlTooltipComponent/package.json +0 -6
- package/dist/Misc/ImageLibrary/ImageLibrary.js +0 -311
- package/dist/Misc/ImagePreview/ImagePreview.js +0 -43
- package/dist/Misc/InfiniteScroll/InfiniteScroll.js +0 -37
- package/dist/Misc/InfiniteScroll/package.json +0 -6
- package/dist/Misc/LanguageSelector/LanguageSelector.js +0 -163
- package/dist/Misc/LanguageSelector/package.json +0 -6
- package/dist/Misc/MedalSelector/BronzeMedal.js +0 -1362
- package/dist/Misc/MedalSelector/GoldMedal.js +0 -1322
- package/dist/Misc/MedalSelector/MedalSelector.js +0 -55
- package/dist/Misc/MedalSelector/SilverMedal.js +0 -1862
- package/dist/Misc/MedalSelector/styles.css +0 -24
- package/dist/Misc/NotFound/Bot.js +0 -62
- package/dist/Misc/NotFound/Bots.js +0 -75
- package/dist/Misc/NotFound/ClassCourses.js +0 -200
- package/dist/Misc/NotFound/Classroom.js +0 -61
- package/dist/Misc/NotFound/Classrooms.js +0 -93
- package/dist/Misc/NotFound/Course.js +0 -62
- package/dist/Misc/NotFound/Courses.js +0 -111
- package/dist/Misc/NotFound/Discussions.js +0 -52
- package/dist/Misc/NotFound/Members.js +0 -48
- package/dist/Misc/NotFound/Roleplay.js +0 -62
- package/dist/Misc/NotFound/Roleplays.js +0 -75
- package/dist/Misc/NotFound/Script.js +0 -47
- package/dist/Misc/NotFound/Sections.js +0 -63
- package/dist/Misc/NotFound/Topic.js +0 -62
- package/dist/Misc/Notes/Notes.js +0 -77
- package/dist/Misc/Notes/Notes.test.js +0 -20
- package/dist/Misc/Notes/package.json +0 -6
- package/dist/Misc/NualaCreating/Nuala1.js +0 -352
- package/dist/Misc/NualaCreating/Nuala2.js +0 -455
- package/dist/Misc/NualaCreating/Nuala3.js +0 -462
- package/dist/Misc/NualaCreating/NualaCreating.js +0 -23
- package/dist/Misc/NualaCreating/styles.css +0 -68
- package/dist/Misc/NualangVerifiedIcon/NualangVerifiedIcon.js +0 -19
- package/dist/Misc/OnboardingEnrolment/CheckIfCourse.js +0 -33
- package/dist/Misc/OnboardingEnrolment/ClassCodeInvalid.js +0 -14
- package/dist/Misc/OnboardingEnrolment/ClassroomCodeInvalid.js +0 -14
- package/dist/Misc/OnboardingEnrolment/EnrolKey.js +0 -14
- package/dist/Misc/Overlay/Overlay.js +0 -59
- package/dist/Misc/Overlay/package.json +0 -6
- package/dist/Misc/PhraseDisplay/PhraseDisplay.js +0 -123
- package/dist/Misc/ProgressiveCardMedia/ProgressiveCardMedia.js +0 -38
- package/dist/Misc/ProgressiveCardMedia/package.json +0 -6
- package/dist/Misc/PronunciationScore/PronunciationScore.js +0 -92
- package/dist/Misc/PronunciationScore/package.json +0 -6
- package/dist/Misc/QuickCreateNualaAnimations/ChatbotNualaAnimation.js +0 -154
- package/dist/Misc/QuickCreateNualaAnimations/ClassroomNualaAnimation.js +0 -201
- package/dist/Misc/QuickCreateNualaAnimations/CourseNualaAnimation.js +0 -154
- package/dist/Misc/QuickCreateNualaAnimations/PhraseListNualaAnimation.js +0 -268
- package/dist/Misc/QuickCreateNualaAnimations/ScenarioNualaAnimation.js +0 -128
- package/dist/Misc/QuickCreateNualaAnimations/TopicNualaAnimation.js +0 -134
- package/dist/Misc/QuickCreateNualaAnimations/characterMotion.js +0 -172
- package/dist/Misc/Recorder/Recorder.js +0 -151
- package/dist/Misc/Recorder/package.json +0 -6
- package/dist/Misc/ReportProblem/ReportProblem.js +0 -64
- package/dist/Misc/ReportProblem/package.json +0 -6
- package/dist/Misc/RoleplayChatWaveForm/RoleplayChatWaveForm.js +0 -199
- package/dist/Misc/RoleplayChatWaveForm/package.json +0 -6
- package/dist/Misc/RoleplayWaveform/RoleplayWaveform.js +0 -95
- package/dist/Misc/RoleplayWaveform/package.json +0 -6
- package/dist/Misc/RubyText/RubyText.js +0 -27
- package/dist/Misc/ShareButton/ShareButton.js +0 -69
- package/dist/Misc/ShareButton/ShareDrawer.js +0 -241
- package/dist/Misc/ShareButton/package.json +0 -6
- package/dist/Misc/SignOut/SignOut.js +0 -132
- package/dist/Misc/SignOut/package.json +0 -6
- package/dist/Misc/SiteLanguageSelector/SiteLanguageSelector.js +0 -107
- package/dist/Misc/SiteLanguageSelector/package.json +0 -6
- package/dist/Misc/Snackbar/Snackbar.js +0 -98
- package/dist/Misc/Snackbar/package.json +0 -6
- package/dist/Misc/SpeedDial/SpeedDial.js +0 -49
- package/dist/Misc/SpeedDial/package.json +0 -6
- package/dist/Misc/StudentWaitingMessage/StudentWaitingMessage.js +0 -38
- package/dist/Misc/SubmitTextField/SubmitTextField.js +0 -48
- package/dist/Misc/Testimonials/Testimonials.js +0 -82
- package/dist/Misc/Testimonials/package.json +0 -6
- package/dist/Misc/ThemeToggle/ThemeToggle.js +0 -39
- package/dist/Misc/ThemeToggle/package.json +0 -6
- package/dist/Misc/VoiceSpeed/VoiceSpeed.js +0 -68
- package/dist/Misc/VoiceSpeed/package.json +0 -6
- package/dist/Misc/WaveFormLite/WaveFormLite.js +0 -138
- package/dist/Misc/WaveFormLite/package.json +0 -6
- package/dist/Misc/Waveform/Waveform.js +0 -93
- package/dist/Misc/Waveform/package.json +0 -6
- package/dist/Misc/WhatsNew/WhatsNew.js +0 -105
- package/dist/Misc/WhatsNew/package.json +0 -6
- package/dist/Misc/WhatsNew/whatsnew.md +0 -41
- package/dist/Navigation/BottomBar/BottomBar.js +0 -72
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.js +0 -113
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.test.js +0 -24
- package/dist/Navigation/Breadcrumbs/package.json +0 -6
- package/dist/Navigation/Header/Header.js +0 -90
- package/dist/Navigation/Header/Header.test.js +0 -20
- package/dist/Navigation/Header/package.json +0 -6
- package/dist/Navigation/ResponsiveDrawer/ResponsiveDrawer.js +0 -532
- package/dist/Navigation/ResponsiveDrawer/ResponsiveDrawer.test.js +0 -23
- package/dist/Navigation/ResponsiveDrawer/package.json +0 -6
- package/dist/Navigation/ResponsiveStepper/ResponsiveStepper.js +0 -253
- package/dist/Navigation/ResponsiveStepper/ResponsiveStepper.test.js +0 -20
- package/dist/Navigation/ResponsiveStepper/package.json +0 -6
- package/dist/Navigation/ResponsiveTabs/ResponsiveTabs.js +0 -379
- package/dist/Navigation/ResponsiveTabs/TabContainer.js +0 -28
- package/dist/Navigation/ResponsiveTabs/package.json +0 -6
- package/dist/Navigation/_nav.js +0 -164
- package/dist/Payments/FreeTrial/FreeTrial.js +0 -106
- package/dist/Payments/FreeTrial/package.json +0 -6
- package/dist/Tables/Attempt/Attempt.js +0 -322
- package/dist/Tables/BotRows/BotRows.js +0 -132
- package/dist/Tables/BotRows/package.json +0 -6
- package/dist/Tables/Bots/Bots.js +0 -280
- package/dist/Tables/Bots/package.json +0 -6
- package/dist/Tables/Chart/Chart.js +0 -54
- package/dist/Tables/Chart/package.json +0 -5
- package/dist/Tables/ClassroomRows/ClassroomRows.js +0 -152
- package/dist/Tables/ClassroomRows/package.json +0 -6
- package/dist/Tables/Classrooms/Classrooms.js +0 -282
- package/dist/Tables/Classrooms/package.json +0 -6
- package/dist/Tables/CourseRows/CourseRows.js +0 -185
- package/dist/Tables/CourseRows/package.json +0 -6
- package/dist/Tables/Courses/Courses.js +0 -287
- package/dist/Tables/Courses/Courses.test.js +0 -29
- package/dist/Tables/Courses/package.json +0 -6
- package/dist/Tables/CreatedDiscussionsTable/CreatedDiscussionsTable.js +0 -188
- package/dist/Tables/GameRows/GameRows.js +0 -87
- package/dist/Tables/GameRows/package.json +0 -6
- package/dist/Tables/Games/Games.js +0 -258
- package/dist/Tables/Games/package.json +0 -6
- package/dist/Tables/MeetingPrompstList/MeetingPromptsList.js +0 -565
- package/dist/Tables/Phrases/Phrases.js +0 -200
- package/dist/Tables/Phrases/Phrases.test.js +0 -20
- package/dist/Tables/Phrases/package.json +0 -6
- package/dist/Tables/Plans/Plans.js +0 -74
- package/dist/Tables/Plans/plans.json +0 -162
- package/dist/Tables/Plans/plans2.json +0 -151
- package/dist/Tables/Progress/Header.js +0 -559
- package/dist/Tables/Progress/Progress.js +0 -502
- package/dist/Tables/Progress/ProgressList.js +0 -905
- package/dist/Tables/Progress/ProgressList.test.js +0 -48
- package/dist/Tables/Progress/ProgressTable.js +0 -882
- package/dist/Tables/Progress/ProgressTable.test.js +0 -258
- package/dist/Tables/Progress/ProgressTableRow.js +0 -295
- package/dist/Tables/Progress/README.md +0 -53
- package/dist/Tables/Progress/SelectMembers.js +0 -64
- package/dist/Tables/Progress/TableToolbar.js +0 -134
- package/dist/Tables/Progress/TableToolbar.test.js +0 -69
- package/dist/Tables/Progress/cells/index.js +0 -523
- package/dist/Tables/Progress/cells/index.test.js +0 -334
- package/dist/Tables/Progress/constants.js +0 -11
- package/dist/Tables/Progress/exportToExcel.js +0 -224
- package/dist/Tables/Progress/exportToExcel.test.js +0 -135
- package/dist/Tables/Progress/helpers.js +0 -42
- package/dist/Tables/Progress/helpers.test.js +0 -23
- package/dist/Tables/Progress/package.json +0 -6
- package/dist/Tables/Progress/sorting.js +0 -78
- package/dist/Tables/Progress/sorting.test.js +0 -69
- package/dist/Tables/Progress/styledComponents.js +0 -156
- package/dist/Tables/Progress/useProgressUrlParams.js +0 -162
- package/dist/Tables/Progress/useProgressUrlParams.test.js +0 -183
- package/dist/Tables/Progress/utils.js +0 -214
- package/dist/Tables/Progress/utils.test.js +0 -129
- package/dist/Tables/Progress/viewState.js +0 -27
- package/dist/Tables/RecordingListCards/RecordingListCards.js +0 -192
- package/dist/Tables/RoleplayRows/RoleplayRows.js +0 -129
- package/dist/Tables/RoleplayRows/package.json +0 -6
- package/dist/Tables/Roleplays/Roleplays.js +0 -280
- package/dist/Tables/Roleplays/package.json +0 -6
- package/dist/Tables/ScheduleListCards/ScheduleListCards.js +0 -92
- package/dist/Tables/SubmissionsTableCards/SubmissionsTableCards.js +0 -296
- package/dist/Tables/TrialUsers/TrialUsers.js +0 -155
- package/dist/Tables/Unanswered/Unanswered.js +0 -97
- package/dist/Tables/User/UserTable.js +0 -139
- package/dist/Tables/Users/UsersTable.js +0 -159
- package/dist/animations/celebrationCharacterMotion.js +0 -336
- package/dist/animations/index.js +0 -30
- package/dist/animations/nuala_10_celebrating.js +0 -233
- package/dist/animations/nuala_11_celebrating.js +0 -190
- package/dist/animations/nuala_12_celebrating.js +0 -172
- package/dist/animations/nuala_13_celebrating.js +0 -160
- package/dist/animations/nuala_14_celebrating.js +0 -135
- package/dist/animations/nuala_15_celebrating.js +0 -139
- package/dist/animations/nuala_16_celebrating.js +0 -121
- package/dist/animations/nuala_17_celebrating.js +0 -140
- package/dist/animations/nuala_18_celebrating.js +0 -134
- package/dist/animations/nuala_19_celebrating.js +0 -216
- package/dist/animations/nuala_1_celebrating.js +0 -131
- package/dist/animations/nuala_1_speaking.js +0 -163
- package/dist/animations/nuala_20_celebrating.js +0 -138
- package/dist/animations/nuala_21_celebrating.js +0 -137
- package/dist/animations/nuala_2_celebrating.js +0 -102
- package/dist/animations/nuala_2_speaking.js +0 -139
- package/dist/animations/nuala_3_celebrating.js +0 -104
- package/dist/animations/nuala_3_speaking.js +0 -136
- package/dist/animations/nuala_4_celebrating.js +0 -145
- package/dist/animations/nuala_5_celebrating.js +0 -131
- package/dist/animations/nuala_6_celebrating.js +0 -141
- package/dist/animations/nuala_7_celebrating.js +0 -160
- package/dist/animations/nuala_8_celebrating.js +0 -108
- package/dist/animations/nuala_9_celebrating.js +0 -119
- package/dist/animations/speakingCharacterMotion.js +0 -157
- package/dist/config.js +0 -414
- package/dist/hooks/handleBotVarsDownload.js +0 -40
- package/dist/hooks/handleScriptDownload.js +0 -93
- package/dist/hooks/useClassroomState.js +0 -55
- package/dist/hooks/useClassroomStateOld.js +0 -81
- package/dist/hooks/useConfirm.js +0 -19
- package/dist/hooks/useCourseState.js +0 -62
- package/dist/hooks/useCourseStateOld.js +0 -89
- package/dist/hooks/useDebounce.js +0 -20
- package/dist/hooks/useExerciseDocumentTitle.js +0 -15
- package/dist/hooks/useExerciseState.js +0 -2063
- package/dist/hooks/useLanguageTokens.js +0 -73
- package/dist/hooks/useListScroll.js +0 -19
- package/dist/hooks/usePhonetics.js +0 -64
- package/dist/hooks/usePhraseNameDialog.js +0 -10
- package/dist/hooks/useProgressiveImg.js +0 -21
- package/dist/hooks/useRecognition.js +0 -455
- package/dist/hooks/useSpreadsheetState.js +0 -87
- package/dist/hooks/useUrlQueryParam.js +0 -27
- package/dist/hooks/useWordBankFocus.js +0 -80
- package/dist/icons/AccountBalanceOff.js +0 -5
- package/dist/icons/KeyBoardOffDark.js +0 -22
- package/dist/icons/KeyBoardOffLight.js +0 -22
- package/dist/img/0-nuala-001.svg +0 -34
- package/dist/img/1-teacher-001.svg +0 -38
- package/dist/img/AudioNuala.svg +0 -165
- package/dist/img/Bronze Medal.svg +0 -545
- package/dist/img/Bronze.svg +0 -349
- package/dist/img/BronzeBadge.svg +0 -493
- package/dist/img/BronzeBadgeWithoutRibbon.svg +0 -317
- package/dist/img/Frame 51.svg +0 -98
- package/dist/img/Frame 52.svg +0 -131
- package/dist/img/Frame 53.svg +0 -139
- package/dist/img/Gold Badge.svg +0 -362
- package/dist/img/Gold Medal.svg +0 -481
- package/dist/img/GoldBadge.svg +0 -470
- package/dist/img/GoldBadgeWithoutRibbon.svg +0 -324
- package/dist/img/NewText.svg +0 -5
- package/dist/img/NualaCreateImage.svg +0 -129
- package/dist/img/NualaHeadphonesBackground.svg +0 -39
- package/dist/img/NualangLiveAnswerQuickly.svg +0 -103
- package/dist/img/NualangLiveAnwerQuicklyListening.svg +0 -3608
- package/dist/img/NualangLiveListen.png +0 -0
- package/dist/img/NualangLiveListen.svg +0 -42
- package/dist/img/NualangLiveListenQuickly.png +0 -0
- package/dist/img/NualangLiveListenToPhrase.svg +0 -4286
- package/dist/img/NualangLivePickAnswer.svg +0 -134
- package/dist/img/NualangLiveResult.png +0 -0
- package/dist/img/NualangLiveResult.svg +0 -1235
- package/dist/img/NualangLiveRoleplayAnswer.png +0 -0
- package/dist/img/NualangLiveRoleplayAnswer.svg +0 -334
- package/dist/img/NualangLiveRoleplayConvo.png +0 -0
- package/dist/img/NualangLiveRoleplayConvo.svg +0 -282
- package/dist/img/NualangLiveSeePlace.svg +0 -134
- package/dist/img/NualangLiveTranslate.png +0 -0
- package/dist/img/NualangLiveTranslate.svg +0 -54
- package/dist/img/NualangLiveTranslateQuickly.png +0 -0
- package/dist/img/NualangLiveTranslateQuickly.svg +0 -197
- package/dist/img/NualangLiveViewConversations.svg +0 -135
- package/dist/img/Polly.svg +0 -18
- package/dist/img/Silver Badge.svg +0 -523
- package/dist/img/Silver Medal.svg +0 -549
- package/dist/img/SilverBadge.svg +0 -655
- package/dist/img/SilverBadgeWithoutRibbon.svg +0 -491
- package/dist/img/aaron-square.jpg +0 -0
- package/dist/img/aaronAvatar.png +0 -0
- package/dist/img/add-file.svg +0 -1
- package/dist/img/avatars/0-nuala-001.svg +0 -34
- package/dist/img/avatars/0-nuala-002.svg +0 -25
- package/dist/img/avatars/0-nuala-003.svg +0 -27
- package/dist/img/avatars/0-nuala-004.svg +0 -41
- package/dist/img/avatars/0-nuala-005.svg +0 -33
- package/dist/img/avatars/0-nuala-006.svg +0 -32
- package/dist/img/avatars/0-nuala-007.svg +0 -37
- package/dist/img/avatars/0-nuala-008.svg +0 -21
- package/dist/img/avatars/0-nuala-009.svg +0 -21
- package/dist/img/avatars/0-nuala-010.svg +0 -39
- package/dist/img/avatars/0-nuala-011.svg +0 -33
- package/dist/img/avatars/0-nuala-012.svg +0 -43
- package/dist/img/avatars/0-nuala-013.svg +0 -36
- package/dist/img/avatars/0-nuala-014.svg +0 -30
- package/dist/img/avatars/0-nuala-015.svg +0 -28
- package/dist/img/avatars/0-nuala-016.svg +0 -24
- package/dist/img/avatars/0-nuala-017.svg +0 -31
- package/dist/img/avatars/0-nuala-018.svg +0 -29
- package/dist/img/avatars/0-nuala-019.svg +0 -57
- package/dist/img/avatars/0-nuala-020.svg +0 -30
- package/dist/img/avatars/0-nuala-021.svg +0 -28
- package/dist/img/avatars/001-man.svg +0 -104
- package/dist/img/avatars/002-girl.svg +0 -92
- package/dist/img/avatars/006-woman-1.svg +0 -99
- package/dist/img/avatars/028-woman-7.svg +0 -95
- package/dist/img/avatars/029-man-8.svg +0 -95
- package/dist/img/avatars/035-woman-9.svg +0 -86
- package/dist/img/avatars/066-boy-6.svg +0 -91
- package/dist/img/avatars/1-teacher-001.svg +0 -38
- package/dist/img/avatars/1-teacher-002.svg +0 -52
- package/dist/img/avatars/1-teacher-003.svg +0 -86
- package/dist/img/avatars/avatar1.png +0 -0
- package/dist/img/avatars/avatar2.png +0 -0
- package/dist/img/avatars/nuala_10_speaking.svg +0 -45
- package/dist/img/avatars/nuala_11_speaking.svg +0 -41
- package/dist/img/avatars/nuala_12_speaking.svg +0 -49
- package/dist/img/avatars/nuala_13_speaking.svg +0 -44
- package/dist/img/avatars/nuala_14_speaking.svg +0 -36
- package/dist/img/avatars/nuala_15_speaking.svg +0 -36
- package/dist/img/avatars/nuala_16_speaking.svg +0 -32
- package/dist/img/avatars/nuala_17_speaking.svg +0 -39
- package/dist/img/avatars/nuala_18_speaking.svg +0 -37
- package/dist/img/avatars/nuala_19_speaking.svg +0 -65
- package/dist/img/avatars/nuala_1_celebrating.svg +0 -30
- package/dist/img/avatars/nuala_1_speaking.svg +0 -37
- package/dist/img/avatars/nuala_20_speaking.svg +0 -38
- package/dist/img/avatars/nuala_21_speaking.svg +0 -36
- package/dist/img/avatars/nuala_2_speaking.svg +0 -29
- package/dist/img/avatars/nuala_3_speaking.svg +0 -28
- package/dist/img/avatars/nuala_4_speaking.svg +0 -41
- package/dist/img/avatars/nuala_5_speaking.svg +0 -36
- package/dist/img/avatars/nuala_6_speaking.svg +0 -36
- package/dist/img/avatars/nuala_7_speaking.svg +0 -43
- package/dist/img/avatars/nuala_8_speaking.svg +0 -29
- package/dist/img/avatars/nuala_9_speaking.svg +0 -27
- package/dist/img/aws.svg +0 -6
- package/dist/img/azure.svg +0 -10
- package/dist/img/bot-error.svg +0 -28
- package/dist/img/bot_nuala.svg +0 -45
- package/dist/img/classroom.svg +0 -178
- package/dist/img/connorAvatar.png +0 -0
- package/dist/img/course.svg +0 -113
- package/dist/img/dashboard.svg +0 -104
- package/dist/img/defaultImg.png +0 -0
- package/dist/img/google-classroom.svg +0 -1
- package/dist/img/jamieAvatar.png +0 -0
- package/dist/img/nuala_1_celebrating.svg +0 -33
- package/dist/img/nuala_2_celebrating.svg +0 -20
- package/dist/img/nuala_3_celebrating.svg +0 -21
- package/dist/img/nuala_4_celebrating.svg +0 -30
- package/dist/img/nuala_5_celebrating.svg +0 -30
- package/dist/img/nuala_celebrating.svg +0 -39
- package/dist/img/nuala_sign_in.svg +0 -62
- package/dist/img/nuala_speaking.svg +0 -41
- package/dist/img/nuala_speaking_2.svg +0 -41
- package/dist/img/nuala_speaking_3.svg +0 -41
- package/dist/img/nuala_speaking_4.svg +0 -41
- package/dist/img/nualang-logo-primary.svg +0 -17
- package/dist/img/nualangSquareIcon.svg +0 -18
- package/dist/img/nualas.svg +0 -185
- package/dist/img/photos.svg +0 -1
- package/dist/img/sentiment_dissatisfied_24px.svg +0 -3
- package/dist/img/sentiment_satisfied_24px.svg +0 -3
- package/dist/img/sentiment_very_satisfied_24px.svg +0 -3
- package/dist/img/soundWave.png +0 -0
- package/dist/img/stars1.svg +0 -44
- package/dist/img/stars2.svg +0 -30
- package/dist/img/stephenAvatar.png +0 -0
- package/dist/img/structuring.svg +0 -76
- package/dist/img/teacher-create-2.svg +0 -81
- package/dist/img/teacher-create.svg +0 -49
- package/dist/img/teacher-world.svg +0 -271
- package/dist/img/teacher.svg +0 -89
- package/dist/img/work-chat.svg +0 -1
- package/dist/img/world.svg +0 -41
- package/dist/index.js +0 -4
- package/dist/logger.js +0 -6
- package/dist/theme/colors/primary.js +0 -17
- package/dist/theme/colors/secondary.js +0 -17
- package/dist/theme/getComponents.js +0 -242
- package/dist/theme/index.js +0 -82
- package/dist/utils/Styles.js +0 -59
- package/dist/utils/canvasUtils.js +0 -55
- package/dist/utils/constants.js +0 -32
- package/dist/utils/currency-code-map.json +0 -1460
- package/dist/utils/dragAndDrop/dragAndDrop.js +0 -222
- package/dist/utils/index.js +0 -641
- package/dist/utils/japaneseTokenizer.js +0 -91
- package/dist/utils/languageHelpers.js +0 -41
- package/dist/utils/placeholder-images/index.js +0 -13
- package/dist/utils/voiceImages.js +0 -16
|
@@ -1,882 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from "react";
|
|
2
|
-
import { Button, Drawer, Box, Checkbox, FormGroup, FormControlLabel, Typography, Tooltip, IconButton } from "@mui/material";
|
|
3
|
-
import { orange } from "@mui/material/colors";
|
|
4
|
-
import { styled } from "@mui/system";
|
|
5
|
-
import MenuBookIcon from "@mui/icons-material/MenuBook";
|
|
6
|
-
import PlayCircleFilledIcon from "@mui/icons-material/PlayCircleFilled";
|
|
7
|
-
import { toCardinal as n2wordsEn } from "n2words/en-US";
|
|
8
|
-
import { toCardinal as n2wordsEs } from "n2words/es-ES";
|
|
9
|
-
import { toCardinal as n2wordsDe } from "n2words/de-DE";
|
|
10
|
-
import { toCardinal as n2wordsFr } from "n2words/fr-FR";
|
|
11
|
-
import { toCardinal as n2wordsIt } from "n2words/it-IT";
|
|
12
|
-
import { toCardinal as n2wordsPt } from "n2words/pt-PT";
|
|
13
|
-
import { toCardinal as n2wordsZh } from "n2words/zh-Hans-CN";
|
|
14
|
-
import { toCardinal as n2wordsJa } from "n2words/ja-JP";
|
|
15
|
-
const n2wordsConverters = {
|
|
16
|
-
en: n2wordsEn,
|
|
17
|
-
es: n2wordsEs,
|
|
18
|
-
de: n2wordsDe,
|
|
19
|
-
fr: n2wordsFr,
|
|
20
|
-
it: n2wordsIt,
|
|
21
|
-
pt: n2wordsPt,
|
|
22
|
-
zh: n2wordsZh,
|
|
23
|
-
ja: n2wordsJa
|
|
24
|
-
};
|
|
25
|
-
import VeryhappyIcon from "../../img/sentiment_very_satisfied_24px.svg";
|
|
26
|
-
import DissatisfiedIcon from "../../img/sentiment_dissatisfied_24px.svg";
|
|
27
|
-
import HappyIcon from "../../img/sentiment_satisfied_24px.svg";
|
|
28
|
-
import { makeStyles } from "tss-react/mui";
|
|
29
|
-
import Waveform from "../Waveform/Waveform";
|
|
30
|
-
import DefaultButton from "../../Misc/DefaultColourButton/DefaultColourButton";
|
|
31
|
-
import PronunciationScore from "../../Misc/PronunciationScore/PronunciationScore";
|
|
32
|
-
import { removeExtraWhiteSpaces } from "../../utils";
|
|
33
|
-
import { useTheme } from "@mui/material/styles";
|
|
34
|
-
import { removeAllSymbols } from "../../utils/index";
|
|
35
|
-
import { convertNumberToText } from "../../utils/languageHelpers";
|
|
36
|
-
import { isSpaceFreeLanguage } from "../../hooks/useLanguageTokens";
|
|
37
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
38
|
-
const NualaCelebratingContainer = styled("div")(() => ({
|
|
39
|
-
display: "flex",
|
|
40
|
-
justifyContent: "flex-end",
|
|
41
|
-
alignItems: "flex-end",
|
|
42
|
-
position: "absolute",
|
|
43
|
-
bottom: "100%",
|
|
44
|
-
right: 30,
|
|
45
|
-
width: 420,
|
|
46
|
-
height: 320,
|
|
47
|
-
overflow: "hidden",
|
|
48
|
-
lineHeight: 0
|
|
49
|
-
}));
|
|
50
|
-
const useStyles = makeStyles()((theme, {
|
|
51
|
-
result
|
|
52
|
-
}) => ({
|
|
53
|
-
root: {
|
|
54
|
-
zIndex: `1300 !important`
|
|
55
|
-
},
|
|
56
|
-
paper: {
|
|
57
|
-
[theme.breakpoints.down("md")]: {
|
|
58
|
-
padding: theme.spacing(2)
|
|
59
|
-
},
|
|
60
|
-
padding: theme.spacing(3),
|
|
61
|
-
backgroundColor: theme.palette.background.paper,
|
|
62
|
-
color: result === "correct" ? theme.palette.success.dark : result === "partially_correct" && theme.palette.mode === "dark" ? theme.palette.common.white : result === "partially_correct" && theme.palette.mode !== "dark" ? theme.palette.text.secondary : theme.palette.error.dark,
|
|
63
|
-
minHeight: 140
|
|
64
|
-
},
|
|
65
|
-
container: {
|
|
66
|
-
[theme.breakpoints.down("md")]: {
|
|
67
|
-
display: "block"
|
|
68
|
-
},
|
|
69
|
-
display: "flex",
|
|
70
|
-
alignItems: "center"
|
|
71
|
-
},
|
|
72
|
-
iconContainer: {
|
|
73
|
-
[theme.breakpoints.down("md")]: {
|
|
74
|
-
display: "none"
|
|
75
|
-
},
|
|
76
|
-
lineHeight: "30px",
|
|
77
|
-
width: 80,
|
|
78
|
-
height: 80,
|
|
79
|
-
borderRadius: 98
|
|
80
|
-
},
|
|
81
|
-
icon: {
|
|
82
|
-
width: "100%",
|
|
83
|
-
height: "100%"
|
|
84
|
-
},
|
|
85
|
-
result: {
|
|
86
|
-
fontWeight: 700,
|
|
87
|
-
lineHeight: "30px",
|
|
88
|
-
marginBottom: 12
|
|
89
|
-
},
|
|
90
|
-
answers: {
|
|
91
|
-
fontSize: 18,
|
|
92
|
-
fontWeight: 500,
|
|
93
|
-
lineHeight: "26px"
|
|
94
|
-
},
|
|
95
|
-
nextButton: {
|
|
96
|
-
[theme.breakpoints.down("md")]: {
|
|
97
|
-
width: "100%"
|
|
98
|
-
},
|
|
99
|
-
color: theme.palette.mode === "dark" ? theme.palette.getContrastText(result === "correct" ? theme.palette.success.main : theme.palette.error.main) : "#fff",
|
|
100
|
-
fontSize: 17,
|
|
101
|
-
minWidth: 150,
|
|
102
|
-
backgroundColor: result === "correct" || result === "partially_correct" ? theme.palette.success.dark : theme.palette.error.dark,
|
|
103
|
-
"&:hover": {
|
|
104
|
-
backgroundColor: result === "correct" || result === "partially_correct" ? theme.palette.success.main : theme.palette.error.main
|
|
105
|
-
},
|
|
106
|
-
display: "block"
|
|
107
|
-
},
|
|
108
|
-
tryAgainButton: {
|
|
109
|
-
[theme.breakpoints.down("md")]: {
|
|
110
|
-
width: "100%"
|
|
111
|
-
},
|
|
112
|
-
fontSize: 17,
|
|
113
|
-
minWidth: 150,
|
|
114
|
-
marginTop: "16px",
|
|
115
|
-
display: "block"
|
|
116
|
-
},
|
|
117
|
-
checkBox: {
|
|
118
|
-
color: theme.palette.mode === "dark" ? "white" : "black",
|
|
119
|
-
marginBottom: 1
|
|
120
|
-
},
|
|
121
|
-
iconBeforeText: {
|
|
122
|
-
color: theme.palette.text.secondary
|
|
123
|
-
},
|
|
124
|
-
definitionsText: {
|
|
125
|
-
overflow: "hidden",
|
|
126
|
-
whiteSpace: "normal",
|
|
127
|
-
textOverflow: "ellipsis",
|
|
128
|
-
marginLeft: 5
|
|
129
|
-
},
|
|
130
|
-
translationRow: {
|
|
131
|
-
display: "flex",
|
|
132
|
-
alignItems: "flex-start",
|
|
133
|
-
gap: "6px",
|
|
134
|
-
lineHeight: 1.2
|
|
135
|
-
}
|
|
136
|
-
}));
|
|
137
|
-
function TranscriptBox({
|
|
138
|
-
t,
|
|
139
|
-
result,
|
|
140
|
-
exercise,
|
|
141
|
-
nextScriptLine,
|
|
142
|
-
currentPhrase,
|
|
143
|
-
transcriptArray,
|
|
144
|
-
isPronuciationScoreLowForAnyWords,
|
|
145
|
-
pronunciationScore,
|
|
146
|
-
transcriptCompleteness,
|
|
147
|
-
transcriptCorrectWordConfidence,
|
|
148
|
-
learnLang
|
|
149
|
-
}) {
|
|
150
|
-
const checkTranscript = transcriptText => {
|
|
151
|
-
if (transcriptText) {
|
|
152
|
-
if (/^\d+$/.test(transcriptText)) {
|
|
153
|
-
return convertNumberToText(transcriptText, learnLang);
|
|
154
|
-
} else {
|
|
155
|
-
return transcriptText;
|
|
156
|
-
}
|
|
157
|
-
} else {
|
|
158
|
-
return "";
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
return /*#__PURE__*/_jsxs(Box, {
|
|
162
|
-
sx: {
|
|
163
|
-
display: "flex",
|
|
164
|
-
alignItems: "center"
|
|
165
|
-
},
|
|
166
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
167
|
-
sx: {
|
|
168
|
-
flexGrow: 1
|
|
169
|
-
},
|
|
170
|
-
children: result === "correct" && !isPronuciationScoreLowForAnyWords ? /*#__PURE__*/_jsx(Typography, {
|
|
171
|
-
variant: "h5",
|
|
172
|
-
component: "span",
|
|
173
|
-
sx: [{
|
|
174
|
-
fontWeight: "bold"
|
|
175
|
-
}, theme => ({
|
|
176
|
-
marginBottom: 4,
|
|
177
|
-
color: theme.palette.success.dark
|
|
178
|
-
})],
|
|
179
|
-
children: exercise === "roleplay" ? nextScriptLine.text : currentPhrase.phrase
|
|
180
|
-
}) : transcriptArray.map(word => {
|
|
181
|
-
const {
|
|
182
|
-
transcriptText,
|
|
183
|
-
isWordCorrect,
|
|
184
|
-
wordPronunciationScorePercentage,
|
|
185
|
-
correctWord,
|
|
186
|
-
isWordNearCorrect
|
|
187
|
-
} = word;
|
|
188
|
-
return /*#__PURE__*/_jsx(Typography, {
|
|
189
|
-
variant: "h5",
|
|
190
|
-
title: isWordNearCorrect ? t("word_near_correct") : `${t("pronunciation_score")}: ${wordPronunciationScorePercentage > -1 ? wordPronunciationScorePercentage : 0}%`,
|
|
191
|
-
sx: theme => ({
|
|
192
|
-
marginBottom: 4,
|
|
193
|
-
fontStyle: isWordNearCorrect ? "italic" : "normal",
|
|
194
|
-
textDecoration: result === "incorrect" || result === "partially_correct" && !isWordCorrect ? "underline" : "none",
|
|
195
|
-
color: isWordCorrect ? theme.palette.success.dark : isWordNearCorrect ? theme.palette.mode === "light" ? orange[400] : orange[200] : theme.palette.error.dark,
|
|
196
|
-
...(isWordCorrect && wordPronunciationScorePercentage < 90 && {
|
|
197
|
-
color: theme.palette.mode === "light" ? orange[400] : orange[200],
|
|
198
|
-
fontStyle: "italic"
|
|
199
|
-
})
|
|
200
|
-
}),
|
|
201
|
-
color: isWordCorrect ? "secondary" : "error",
|
|
202
|
-
component: "span",
|
|
203
|
-
children: isWordCorrect ? correctWord : `${checkTranscript(transcriptText)} `
|
|
204
|
-
});
|
|
205
|
-
})
|
|
206
|
-
}), pronunciationScore > 0 && /*#__PURE__*/_jsx(PronunciationScore, {
|
|
207
|
-
t: t,
|
|
208
|
-
pronunciationScore: pronunciationScore,
|
|
209
|
-
transcriptCompleteness: transcriptCompleteness,
|
|
210
|
-
transcriptCorrectWordConfidence: transcriptCorrectWordConfidence
|
|
211
|
-
})]
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
function stripAccents(str) {
|
|
215
|
-
return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
216
|
-
}
|
|
217
|
-
function baseChar(ch) {
|
|
218
|
-
return stripAccents(ch).toLowerCase();
|
|
219
|
-
}
|
|
220
|
-
function computeLetterDiff(attemptWord, correctWord) {
|
|
221
|
-
const a = attemptWord || '';
|
|
222
|
-
const c = correctWord || '';
|
|
223
|
-
const m = a.length;
|
|
224
|
-
const n = c.length;
|
|
225
|
-
if (!c) return {
|
|
226
|
-
attemptLetters: a.split('').map(l => ({
|
|
227
|
-
letter: l,
|
|
228
|
-
status: 'extra'
|
|
229
|
-
})),
|
|
230
|
-
correctLetters: []
|
|
231
|
-
};
|
|
232
|
-
if (!a) return {
|
|
233
|
-
attemptLetters: [],
|
|
234
|
-
correctLetters: c.split('').map(l => ({
|
|
235
|
-
letter: l,
|
|
236
|
-
status: 'missing'
|
|
237
|
-
}))
|
|
238
|
-
};
|
|
239
|
-
const dp = Array.from({
|
|
240
|
-
length: m + 1
|
|
241
|
-
}, () => Array(n + 1).fill(0));
|
|
242
|
-
for (let i = 1; i <= m; i++) {
|
|
243
|
-
for (let j = 1; j <= n; j++) {
|
|
244
|
-
dp[i][j] = baseChar(a[i - 1]) === baseChar(c[j - 1]) ? dp[i - 1][j - 1] + 1 : Math.max(dp[i - 1][j], dp[i][j - 1]);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
let i = m,
|
|
248
|
-
j = n;
|
|
249
|
-
const ops = [];
|
|
250
|
-
while (i > 0 || j > 0) {
|
|
251
|
-
if (i > 0 && j > 0 && baseChar(a[i - 1]) === baseChar(c[j - 1])) {
|
|
252
|
-
const status = a[i - 1] === c[j - 1] ? 'match' : a[i - 1].toLowerCase() === c[j - 1].toLowerCase() ? 'caseError' : 'accentError';
|
|
253
|
-
ops.push({
|
|
254
|
-
type: 'aligned',
|
|
255
|
-
aL: a[i - 1],
|
|
256
|
-
cL: c[j - 1],
|
|
257
|
-
status
|
|
258
|
-
});
|
|
259
|
-
i -= 1;
|
|
260
|
-
j -= 1;
|
|
261
|
-
} else if (j > 0 && (i === 0 || dp[i][j - 1] >= dp[i - 1][j])) {
|
|
262
|
-
ops.push({
|
|
263
|
-
type: 'missing',
|
|
264
|
-
cL: c[j - 1]
|
|
265
|
-
});
|
|
266
|
-
j -= 1;
|
|
267
|
-
} else if (i > 0) {
|
|
268
|
-
ops.push({
|
|
269
|
-
type: 'extra',
|
|
270
|
-
aL: a[i - 1]
|
|
271
|
-
});
|
|
272
|
-
i -= 1;
|
|
273
|
-
} else break;
|
|
274
|
-
}
|
|
275
|
-
ops.reverse();
|
|
276
|
-
const removals = new Set();
|
|
277
|
-
let groupStart = -1;
|
|
278
|
-
for (let k = 0; k <= ops.length; k++) {
|
|
279
|
-
const isNonAligned = k < ops.length && (ops[k].type === 'extra' || ops[k].type === 'missing');
|
|
280
|
-
if (isNonAligned && groupStart === -1) {
|
|
281
|
-
groupStart = k;
|
|
282
|
-
} else if (!isNonAligned && groupStart !== -1) {
|
|
283
|
-
const groupExtras = [],
|
|
284
|
-
groupMissings = [];
|
|
285
|
-
for (let g = groupStart; g < k; g++) {
|
|
286
|
-
if (ops[g].type === 'extra') groupExtras.push(g);else groupMissings.push(g);
|
|
287
|
-
}
|
|
288
|
-
for (let p = 0; p < Math.min(groupExtras.length, groupMissings.length); p++) {
|
|
289
|
-
const eI = groupExtras[p],
|
|
290
|
-
mI = groupMissings[p];
|
|
291
|
-
const aL = ops[eI].aL,
|
|
292
|
-
cL = ops[mI].cL;
|
|
293
|
-
const type = baseChar(aL) === baseChar(cL) ? aL.toLowerCase() === cL.toLowerCase() ? 'caseError' : 'accentError' : 'substitution';
|
|
294
|
-
ops[eI] = {
|
|
295
|
-
type,
|
|
296
|
-
aL,
|
|
297
|
-
cL
|
|
298
|
-
};
|
|
299
|
-
removals.add(mI);
|
|
300
|
-
}
|
|
301
|
-
groupStart = -1;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
const attemptLetters = [],
|
|
305
|
-
correctLetters = [];
|
|
306
|
-
for (const op of ops.filter((_, idx) => !removals.has(idx))) {
|
|
307
|
-
switch (op.type) {
|
|
308
|
-
case 'aligned':
|
|
309
|
-
case 'accentError':
|
|
310
|
-
case 'caseError':
|
|
311
|
-
attemptLetters.push({
|
|
312
|
-
letter: op.aL,
|
|
313
|
-
status: op.status || op.type
|
|
314
|
-
});
|
|
315
|
-
correctLetters.push({
|
|
316
|
-
letter: op.cL,
|
|
317
|
-
status: op.status || op.type
|
|
318
|
-
});
|
|
319
|
-
break;
|
|
320
|
-
case 'missing':
|
|
321
|
-
correctLetters.push({
|
|
322
|
-
letter: op.cL,
|
|
323
|
-
status: 'missing'
|
|
324
|
-
});
|
|
325
|
-
break;
|
|
326
|
-
case 'extra':
|
|
327
|
-
attemptLetters.push({
|
|
328
|
-
letter: op.aL,
|
|
329
|
-
status: 'extra'
|
|
330
|
-
});
|
|
331
|
-
break;
|
|
332
|
-
case 'substitution':
|
|
333
|
-
attemptLetters.push({
|
|
334
|
-
letter: op.aL,
|
|
335
|
-
status: 'substitution'
|
|
336
|
-
});
|
|
337
|
-
correctLetters.push({
|
|
338
|
-
letter: op.cL,
|
|
339
|
-
status: 'substitution'
|
|
340
|
-
});
|
|
341
|
-
break;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return {
|
|
345
|
-
attemptLetters,
|
|
346
|
-
correctLetters
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function groupConsecutive(letters) {
|
|
350
|
-
const groups = [];
|
|
351
|
-
for (const entry of letters) {
|
|
352
|
-
const last = groups[groups.length - 1];
|
|
353
|
-
if (last && last.status === entry.status) last.letters += entry.letter;else groups.push({
|
|
354
|
-
status: entry.status,
|
|
355
|
-
letters: entry.letter
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
return groups;
|
|
359
|
-
}
|
|
360
|
-
function StyledWord({
|
|
361
|
-
letters,
|
|
362
|
-
styles,
|
|
363
|
-
spaceFree
|
|
364
|
-
}) {
|
|
365
|
-
return /*#__PURE__*/_jsxs(Typography, {
|
|
366
|
-
component: "span",
|
|
367
|
-
sx: {
|
|
368
|
-
fontSize: 22,
|
|
369
|
-
fontWeight: 600
|
|
370
|
-
},
|
|
371
|
-
children: [groupConsecutive(letters).map((group, i) => /*#__PURE__*/_jsx("span", {
|
|
372
|
-
style: styles(group.status),
|
|
373
|
-
children: group.letters
|
|
374
|
-
}, i)), spaceFree ? null : ' ']
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
function closestVariant(attempt, variants) {
|
|
378
|
-
if (!variants.length) return '';
|
|
379
|
-
if (variants.length === 1) return variants[0];
|
|
380
|
-
const norm = s => removeAllSymbols(s).toLowerCase();
|
|
381
|
-
const attemptNorm = norm(attempt || '');
|
|
382
|
-
let best = variants[0];
|
|
383
|
-
let bestDist = Infinity;
|
|
384
|
-
for (const v of variants) {
|
|
385
|
-
const vNorm = norm(v);
|
|
386
|
-
// Levenshtein distance
|
|
387
|
-
const m = attemptNorm.length,
|
|
388
|
-
n = vNorm.length;
|
|
389
|
-
const dp = Array.from({
|
|
390
|
-
length: m + 1
|
|
391
|
-
}, (_, i) => {
|
|
392
|
-
const row = Array(n + 1).fill(0);
|
|
393
|
-
row[0] = i;
|
|
394
|
-
return row;
|
|
395
|
-
});
|
|
396
|
-
for (let j = 1; j <= n; j++) dp[0][j] = j;
|
|
397
|
-
for (let i = 1; i <= m; i++) {
|
|
398
|
-
for (let j = 1; j <= n; j++) {
|
|
399
|
-
dp[i][j] = attemptNorm[i - 1] === vNorm[j - 1] ? dp[i - 1][j - 1] : 1 + Math.min(dp[i - 1][j - 1], dp[i - 1][j], dp[i][j - 1]);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
if (dp[m][n] < bestDist) {
|
|
403
|
-
bestDist = dp[m][n];
|
|
404
|
-
best = v;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return best;
|
|
408
|
-
}
|
|
409
|
-
function AnswerDisplay({
|
|
410
|
-
attempt,
|
|
411
|
-
answer,
|
|
412
|
-
theme,
|
|
413
|
-
t,
|
|
414
|
-
handleSpeak,
|
|
415
|
-
exercise,
|
|
416
|
-
learnLang
|
|
417
|
-
}) {
|
|
418
|
-
const answerStr = typeof answer === 'string' ? answer : Array.isArray(answer) ? closestVariant(attempt, answer) : '';
|
|
419
|
-
const attemptStr = attempt || '';
|
|
420
|
-
const spaceFree = isSpaceFreeLanguage(learnLang);
|
|
421
|
-
const correctWords = spaceFree ? [answerStr] : answerStr ? answerStr.split(' ') : [];
|
|
422
|
-
const attemptWords = spaceFree ? [attemptStr] : attemptStr ? attemptStr.split(' ') : [];
|
|
423
|
-
const attemptStyles = status => {
|
|
424
|
-
switch (status) {
|
|
425
|
-
case 'substitution':
|
|
426
|
-
case 'extra':
|
|
427
|
-
return {
|
|
428
|
-
color: theme.palette.error.dark,
|
|
429
|
-
textDecoration: 'underline',
|
|
430
|
-
textUnderlineOffset: '3px'
|
|
431
|
-
};
|
|
432
|
-
case 'caseError':
|
|
433
|
-
case 'accentError':
|
|
434
|
-
return {
|
|
435
|
-
textDecoration: 'underline dotted',
|
|
436
|
-
textDecorationColor: theme.palette.mode === 'dark' ? orange[200] : orange[700],
|
|
437
|
-
textUnderlineOffset: '3px'
|
|
438
|
-
};
|
|
439
|
-
default:
|
|
440
|
-
return {
|
|
441
|
-
color: theme.palette.text.secondary
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
const correctStyles = status => {
|
|
446
|
-
switch (status) {
|
|
447
|
-
case 'substitution':
|
|
448
|
-
case 'missing':
|
|
449
|
-
return {
|
|
450
|
-
color: theme.palette.success.dark,
|
|
451
|
-
textDecoration: 'underline',
|
|
452
|
-
textUnderlineOffset: '3px'
|
|
453
|
-
};
|
|
454
|
-
case 'caseError':
|
|
455
|
-
case 'accentError':
|
|
456
|
-
return {
|
|
457
|
-
color: theme.palette.mode === 'dark' ? orange[200] : orange[700]
|
|
458
|
-
};
|
|
459
|
-
default:
|
|
460
|
-
return {
|
|
461
|
-
color: theme.palette.success.dark
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
return /*#__PURE__*/_jsxs(Box, {
|
|
466
|
-
children: [attemptStr && /*#__PURE__*/_jsxs(Box, {
|
|
467
|
-
mb: 0.5,
|
|
468
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
469
|
-
variant: "overline",
|
|
470
|
-
sx: {
|
|
471
|
-
color: 'GrayText',
|
|
472
|
-
fontWeight: 700,
|
|
473
|
-
fontSize: 11,
|
|
474
|
-
lineHeight: 2
|
|
475
|
-
},
|
|
476
|
-
children: t("your_answer")
|
|
477
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
478
|
-
children: attemptWords.map((word, i) => {
|
|
479
|
-
const {
|
|
480
|
-
attemptLetters
|
|
481
|
-
} = computeLetterDiff(word, correctWords[i] || '');
|
|
482
|
-
return /*#__PURE__*/_jsx(StyledWord, {
|
|
483
|
-
letters: attemptLetters,
|
|
484
|
-
styles: attemptStyles,
|
|
485
|
-
spaceFree: spaceFree
|
|
486
|
-
}, i);
|
|
487
|
-
})
|
|
488
|
-
})]
|
|
489
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
490
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
491
|
-
variant: "overline",
|
|
492
|
-
sx: {
|
|
493
|
-
color: theme.palette.success.dark,
|
|
494
|
-
fontWeight: 700,
|
|
495
|
-
fontSize: 11,
|
|
496
|
-
lineHeight: 2
|
|
497
|
-
},
|
|
498
|
-
children: t("correct_answer")
|
|
499
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
500
|
-
sx: {
|
|
501
|
-
display: "flex",
|
|
502
|
-
alignItems: "center"
|
|
503
|
-
},
|
|
504
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
505
|
-
children: correctWords.map((word, i) => {
|
|
506
|
-
const {
|
|
507
|
-
correctLetters
|
|
508
|
-
} = computeLetterDiff(attemptWords[i] || '', word);
|
|
509
|
-
return /*#__PURE__*/_jsx(StyledWord, {
|
|
510
|
-
letters: correctLetters,
|
|
511
|
-
styles: correctStyles,
|
|
512
|
-
spaceFree: spaceFree
|
|
513
|
-
}, i);
|
|
514
|
-
})
|
|
515
|
-
}), handleSpeak && (exercise === 'meaning-listen-and-speak' || exercise === 'meaning-read-and-write') && /*#__PURE__*/_jsx(Tooltip, {
|
|
516
|
-
title: t("play_phrase"),
|
|
517
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
|
518
|
-
onClick: () => {
|
|
519
|
-
handleSpeak();
|
|
520
|
-
},
|
|
521
|
-
id: "play",
|
|
522
|
-
sx: {
|
|
523
|
-
ml: 0.5
|
|
524
|
-
},
|
|
525
|
-
children: /*#__PURE__*/_jsx(PlayCircleFilledIcon, {
|
|
526
|
-
color: "primary"
|
|
527
|
-
})
|
|
528
|
-
})
|
|
529
|
-
})]
|
|
530
|
-
})]
|
|
531
|
-
})]
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
function AnswerResult({
|
|
535
|
-
t = text => text,
|
|
536
|
-
open = true,
|
|
537
|
-
handleNext,
|
|
538
|
-
result = "correct",
|
|
539
|
-
answer = [],
|
|
540
|
-
attemptAudioURL = null,
|
|
541
|
-
attempt,
|
|
542
|
-
transcriptCorrectWordConfidence = null,
|
|
543
|
-
transcriptCompleteness = null,
|
|
544
|
-
pronunciationScore = null,
|
|
545
|
-
transcriptWords,
|
|
546
|
-
handleTryAgain,
|
|
547
|
-
exercise = "",
|
|
548
|
-
transcript = "",
|
|
549
|
-
nextScriptLine,
|
|
550
|
-
phraseWordList = "",
|
|
551
|
-
currentPhrase = {
|
|
552
|
-
phrase: "",
|
|
553
|
-
alternativeVersions: []
|
|
554
|
-
},
|
|
555
|
-
checkIsPronunciationCorrect = () => {},
|
|
556
|
-
languageInformation,
|
|
557
|
-
nualaCelebratingImage,
|
|
558
|
-
checked,
|
|
559
|
-
setChecked,
|
|
560
|
-
isLive,
|
|
561
|
-
points,
|
|
562
|
-
learnLang,
|
|
563
|
-
roleplayAnswer,
|
|
564
|
-
definitionsText,
|
|
565
|
-
handleSpeak
|
|
566
|
-
}) {
|
|
567
|
-
let isPronuciationScoreLowForAnyWords = false;
|
|
568
|
-
const nextBtnRef = useRef();
|
|
569
|
-
useEffect(() => {
|
|
570
|
-
// we need to use a timeout here to ensure that the drawer is fully opened before we focus the button
|
|
571
|
-
if (open) {
|
|
572
|
-
const timer = setTimeout(() => {
|
|
573
|
-
if (nextBtnRef.current) {
|
|
574
|
-
nextBtnRef.current.focus();
|
|
575
|
-
}
|
|
576
|
-
}, 300); // 300ms is the default transition time for the drawer
|
|
577
|
-
|
|
578
|
-
return () => clearTimeout(timer);
|
|
579
|
-
}
|
|
580
|
-
}, [open]);
|
|
581
|
-
const correctWordsArray = exercise === "roleplay" ? nextScriptLine?.text?.split(" ") : currentPhrase && currentPhrase.phrase ? removeExtraWhiteSpaces(currentPhrase.phrase).split(" ") : [];
|
|
582
|
-
const handlePronunciationCheck = (word, phraseWordListIndex) => {
|
|
583
|
-
if (exercise === "pronunciation" || exercise === 'meaning-listen-and-speak') {
|
|
584
|
-
return checkIsPronunciationCorrect(word.trim(), {
|
|
585
|
-
phrase: phraseWordList[phraseWordListIndex].trim(),
|
|
586
|
-
alternativeVersions: currentPhrase.alternativeVersions ? currentPhrase.alternativeVersions.map(altAns => {
|
|
587
|
-
return altAns ? removeExtraWhiteSpaces(altAns).split(" ")[phraseWordListIndex] : "";
|
|
588
|
-
}) : []
|
|
589
|
-
});
|
|
590
|
-
} else {
|
|
591
|
-
return checkIsPronunciationCorrect(word.trim(), phraseWordList[phraseWordListIndex].trim());
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
const transcriptArray = transcript.split(" ").map((word, i) => {
|
|
595
|
-
const isWordCorrect = phraseWordList[i] && handlePronunciationCheck(word, i);
|
|
596
|
-
const isPreviousWordCorrect = !isWordCorrect && phraseWordList[i - 1] && handlePronunciationCheck(word, i - 1);
|
|
597
|
-
const isNextWordCorrect = !isWordCorrect && phraseWordList[i + 1] && handlePronunciationCheck(word, i + 1);
|
|
598
|
-
const isWordNearCorrect = !isWordCorrect && (isPreviousWordCorrect || isNextWordCorrect);
|
|
599
|
-
const wordIndex = (transcriptWords || []).findIndex(w => w.word === word.trim());
|
|
600
|
-
let wordPronunciationScore = null;
|
|
601
|
-
let wordPronunciationScorePercentage = null;
|
|
602
|
-
if (wordIndex > -1) {
|
|
603
|
-
if (isWordCorrect || isWordNearCorrect) {
|
|
604
|
-
wordPronunciationScore = (transcriptWords[wordIndex].confidence + 1) / 2;
|
|
605
|
-
} else {
|
|
606
|
-
wordPronunciationScore = 0;
|
|
607
|
-
}
|
|
608
|
-
wordPronunciationScorePercentage = (wordPronunciationScore * 100).toFixed(0);
|
|
609
|
-
if (wordPronunciationScorePercentage < 90) {
|
|
610
|
-
isPronuciationScoreLowForAnyWords = true;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
if (isWordNearCorrect) {
|
|
614
|
-
result = "partially_correct";
|
|
615
|
-
}
|
|
616
|
-
return {
|
|
617
|
-
transcriptText: word,
|
|
618
|
-
isWordCorrect,
|
|
619
|
-
isWordNearCorrect,
|
|
620
|
-
wordPronunciationScorePercentage,
|
|
621
|
-
correctWord: correctWordsArray ? `${correctWordsArray[i]} ` : ""
|
|
622
|
-
};
|
|
623
|
-
});
|
|
624
|
-
const theme = useTheme();
|
|
625
|
-
const handleChange = event => {
|
|
626
|
-
setChecked(event.target.checked);
|
|
627
|
-
};
|
|
628
|
-
const [attemptFeedback, setAttemptFeedback] = useState("");
|
|
629
|
-
const getRandomFeedbackMessage = feedbackArray => {
|
|
630
|
-
const feedback = feedbackArray[Math.floor(Math.random() * feedbackArray.length)];
|
|
631
|
-
return feedback;
|
|
632
|
-
};
|
|
633
|
-
useEffect(() => {
|
|
634
|
-
if (open && languageInformation) {
|
|
635
|
-
if (result === "correct" && !isPronuciationScoreLowForAnyWords) {
|
|
636
|
-
setAttemptFeedback(getRandomFeedbackMessage(languageInformation.correctAnswerMessage));
|
|
637
|
-
} else if (result === "partially_correct" || result === "correct" && isPronuciationScoreLowForAnyWords) {
|
|
638
|
-
setAttemptFeedback(getRandomFeedbackMessage(languageInformation.partiallyCorrectAnswerMessage));
|
|
639
|
-
} else if (result === "skipped") {
|
|
640
|
-
setAttemptFeedback(getRandomFeedbackMessage(languageInformation.skipAnswerMessage));
|
|
641
|
-
} else {
|
|
642
|
-
setAttemptFeedback(getRandomFeedbackMessage(languageInformation.incorrectAnswerMessage));
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}, [languageInformation, open, result, isPronuciationScoreLowForAnyWords]);
|
|
646
|
-
const {
|
|
647
|
-
classes
|
|
648
|
-
} = useStyles({
|
|
649
|
-
result,
|
|
650
|
-
nualaCelebratingImage
|
|
651
|
-
});
|
|
652
|
-
const NualaCelebratingAnimation = nualaCelebratingImage;
|
|
653
|
-
return /*#__PURE__*/_jsx(_Fragment, {
|
|
654
|
-
children: /*#__PURE__*/_jsxs(Drawer, {
|
|
655
|
-
anchor: "bottom",
|
|
656
|
-
open: open,
|
|
657
|
-
"aria-label": "Anwser Result Drawer",
|
|
658
|
-
"aria-modal": "true",
|
|
659
|
-
role: "dialog",
|
|
660
|
-
sx: {
|
|
661
|
-
"& .MuiDrawer-paper": {
|
|
662
|
-
overflowY: "visible"
|
|
663
|
-
}
|
|
664
|
-
},
|
|
665
|
-
classes: {
|
|
666
|
-
root: classes.root,
|
|
667
|
-
paper: classes.paper
|
|
668
|
-
},
|
|
669
|
-
onKeyDown: e => {
|
|
670
|
-
if (e.key === "Enter" && open && !isLive) {
|
|
671
|
-
e.preventDefault();
|
|
672
|
-
handleNext();
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
children: [result === "correct" && NualaCelebratingAnimation && /*#__PURE__*/_jsx(NualaCelebratingContainer, {
|
|
676
|
-
children: /*#__PURE__*/_jsx(NualaCelebratingAnimation, {})
|
|
677
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
678
|
-
className: classes.container,
|
|
679
|
-
sx: {
|
|
680
|
-
py: 2
|
|
681
|
-
},
|
|
682
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
683
|
-
className: classes.iconContainer,
|
|
684
|
-
sx: {
|
|
685
|
-
mr: 2
|
|
686
|
-
},
|
|
687
|
-
children: result === "correct" ? /*#__PURE__*/_jsx("img", {
|
|
688
|
-
src: VeryhappyIcon,
|
|
689
|
-
className: classes.icon,
|
|
690
|
-
alt: ""
|
|
691
|
-
}) : result === "partially_correct" ? /*#__PURE__*/_jsx("img", {
|
|
692
|
-
src: HappyIcon,
|
|
693
|
-
className: classes.icon,
|
|
694
|
-
alt: ""
|
|
695
|
-
}) : /*#__PURE__*/_jsx("img", {
|
|
696
|
-
src: DissatisfiedIcon,
|
|
697
|
-
className: classes.icon,
|
|
698
|
-
alt: ""
|
|
699
|
-
})
|
|
700
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
701
|
-
sx: {
|
|
702
|
-
mr: 2,
|
|
703
|
-
flexGrow: 1
|
|
704
|
-
},
|
|
705
|
-
children: [/*#__PURE__*/_jsxs(Box, {
|
|
706
|
-
"aria-labelledby": "answer-result",
|
|
707
|
-
role: "status",
|
|
708
|
-
"aria-live": "polite",
|
|
709
|
-
sx: {
|
|
710
|
-
mb: 2
|
|
711
|
-
},
|
|
712
|
-
children: [languageInformation ? /*#__PURE__*/_jsx(Typography, {
|
|
713
|
-
className: classes.result,
|
|
714
|
-
variant: "h4",
|
|
715
|
-
component: "h3",
|
|
716
|
-
"aria-label": attemptFeedback,
|
|
717
|
-
children: attemptFeedback
|
|
718
|
-
}) : /*#__PURE__*/_jsx(_Fragment, {}), (exercise === "pronunciation" || exercise === "roleplay") && /*#__PURE__*/_jsx(TranscriptBox, {
|
|
719
|
-
t: t,
|
|
720
|
-
result: result,
|
|
721
|
-
exercise: exercise,
|
|
722
|
-
nextScriptLine: nextScriptLine,
|
|
723
|
-
currentPhrase: currentPhrase,
|
|
724
|
-
transcriptArray: transcriptArray,
|
|
725
|
-
isPronuciationScoreLowForAnyWords: isPronuciationScoreLowForAnyWords,
|
|
726
|
-
pronunciationScore: pronunciationScore,
|
|
727
|
-
transcriptCompleteness: transcriptCompleteness,
|
|
728
|
-
transcriptCorrectWordConfidence: transcriptCorrectWordConfidence,
|
|
729
|
-
learnLang: learnLang
|
|
730
|
-
}), exercise === "story" && isLive && /*#__PURE__*/_jsx(Typography, {
|
|
731
|
-
className: classes.answers,
|
|
732
|
-
sx: {
|
|
733
|
-
marginTop: 1
|
|
734
|
-
},
|
|
735
|
-
children: roleplayAnswer
|
|
736
|
-
}), (exercise === "translation" || exercise === "meaning" || exercise === 'meaning-listen-and-speak' || exercise === 'meaning-read-and-write') && /*#__PURE__*/_jsxs(_Fragment, {
|
|
737
|
-
children: [(exercise === 'meaning-read-and-write' || exercise === 'translation' || exercise === 'meaning-listen-and-speak') && result !== 'skipped' ? result === 'correct' ? /*#__PURE__*/_jsxs(Box, {
|
|
738
|
-
sx: {
|
|
739
|
-
display: "flex",
|
|
740
|
-
alignItems: "center"
|
|
741
|
-
},
|
|
742
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
743
|
-
className: classes.answers,
|
|
744
|
-
sx: {
|
|
745
|
-
color: theme.palette.success.dark
|
|
746
|
-
},
|
|
747
|
-
children: typeof answer === 'string' ? answer : Array.isArray(answer) ? answer.find(ans => removeAllSymbols(ans).localeCompare(removeAllSymbols(attempt), undefined, {
|
|
748
|
-
sensitivity: "base"
|
|
749
|
-
}) === 0) || answer[0] : answer
|
|
750
|
-
}), handleSpeak && (exercise === 'meaning-listen-and-speak' || exercise === 'meaning-read-and-write' && !isLive) && /*#__PURE__*/_jsx(Tooltip, {
|
|
751
|
-
title: t("play_phrase"),
|
|
752
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
|
753
|
-
onClick: () => {
|
|
754
|
-
handleSpeak();
|
|
755
|
-
},
|
|
756
|
-
id: "play",
|
|
757
|
-
sx: {
|
|
758
|
-
ml: 0.5
|
|
759
|
-
},
|
|
760
|
-
children: /*#__PURE__*/_jsx(PlayCircleFilledIcon, {
|
|
761
|
-
color: "primary"
|
|
762
|
-
})
|
|
763
|
-
})
|
|
764
|
-
})]
|
|
765
|
-
}) : /*#__PURE__*/_jsx(AnswerDisplay, {
|
|
766
|
-
attempt: attempt,
|
|
767
|
-
answer: answer,
|
|
768
|
-
theme: theme,
|
|
769
|
-
t: t,
|
|
770
|
-
handleSpeak: handleSpeak,
|
|
771
|
-
exercise: exercise,
|
|
772
|
-
learnLang: learnLang
|
|
773
|
-
}) : /*#__PURE__*/_jsxs(Box, {
|
|
774
|
-
display: "flex",
|
|
775
|
-
alignItems: "center",
|
|
776
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
777
|
-
className: classes.answers,
|
|
778
|
-
children: answer && Array.isArray(answer) ? result === "correct" ? answer.find(ans => removeAllSymbols(ans).localeCompare(removeAllSymbols(attempt), undefined, {
|
|
779
|
-
sensitivity: "base"
|
|
780
|
-
}) === 0) : answer[0] : answer
|
|
781
|
-
}), handleSpeak && (exercise === 'meaning-listen-and-speak' || exercise === 'meaning-read-and-write' && !isLive) && /*#__PURE__*/_jsx(Tooltip, {
|
|
782
|
-
title: t("play_phrase"),
|
|
783
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
|
784
|
-
onClick: () => {
|
|
785
|
-
handleSpeak();
|
|
786
|
-
},
|
|
787
|
-
id: "play",
|
|
788
|
-
sx: {
|
|
789
|
-
ml: 0.5
|
|
790
|
-
},
|
|
791
|
-
children: /*#__PURE__*/_jsx(PlayCircleFilledIcon, {
|
|
792
|
-
color: "primary"
|
|
793
|
-
})
|
|
794
|
-
})
|
|
795
|
-
})]
|
|
796
|
-
}), (exercise === 'meaning-listen-and-speak' || exercise === 'meaning-read-and-write') && definitionsText && /*#__PURE__*/_jsxs(Box, {
|
|
797
|
-
className: classes.translationRow,
|
|
798
|
-
sx: {
|
|
799
|
-
mt: 0.25
|
|
800
|
-
},
|
|
801
|
-
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
802
|
-
title: t("definition") || "Definition",
|
|
803
|
-
children: /*#__PURE__*/_jsx("span", {
|
|
804
|
-
className: classes.iconBeforeText,
|
|
805
|
-
"aria-hidden": true,
|
|
806
|
-
children: /*#__PURE__*/_jsx(MenuBookIcon, {
|
|
807
|
-
fontSize: "small"
|
|
808
|
-
})
|
|
809
|
-
})
|
|
810
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
811
|
-
variant: "body2",
|
|
812
|
-
color: "textSecondary",
|
|
813
|
-
className: classes.definitionsText,
|
|
814
|
-
children: definitionsText
|
|
815
|
-
})]
|
|
816
|
-
})]
|
|
817
|
-
}), exercise === "listening" && (typeof answer === "string" && result === "correct" ? /*#__PURE__*/_jsx(Typography, {
|
|
818
|
-
className: classes.answers,
|
|
819
|
-
children: answer
|
|
820
|
-
}) : typeof answer === "string" && (result === "incorrect" || result === "partially_correct") ? /*#__PURE__*/_jsx(AnswerDisplay, {
|
|
821
|
-
attempt: attempt,
|
|
822
|
-
answer: answer,
|
|
823
|
-
theme: theme,
|
|
824
|
-
t: t,
|
|
825
|
-
learnLang: learnLang
|
|
826
|
-
}) : null), attemptAudioURL && /*#__PURE__*/_jsx(Box, {
|
|
827
|
-
sx: {
|
|
828
|
-
mt: 2
|
|
829
|
-
},
|
|
830
|
-
children: /*#__PURE__*/_jsx(Waveform, {
|
|
831
|
-
src: attemptAudioURL,
|
|
832
|
-
theme: theme,
|
|
833
|
-
controls: true
|
|
834
|
-
})
|
|
835
|
-
})]
|
|
836
|
-
}), (exercise === "pronunciation" || exercise === "roleplay" || exercise === 'meaning-listen-and-speak') && attemptAudioURL ? /*#__PURE__*/_jsx(FormGroup, {
|
|
837
|
-
className: classes.checkBox,
|
|
838
|
-
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
|
839
|
-
control: /*#__PURE__*/_jsx(Checkbox, {
|
|
840
|
-
checked: checked,
|
|
841
|
-
onChange: handleChange,
|
|
842
|
-
name: "saveRecording"
|
|
843
|
-
}),
|
|
844
|
-
label: t("save_recording_to_report")
|
|
845
|
-
})
|
|
846
|
-
}) : /*#__PURE__*/_jsx(_Fragment, {})]
|
|
847
|
-
}), !isLive && /*#__PURE__*/_jsxs(Box, {
|
|
848
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
849
|
-
color: "primary",
|
|
850
|
-
variant: "contained",
|
|
851
|
-
size: "large",
|
|
852
|
-
onClick: handleNext,
|
|
853
|
-
className: classes.nextButton,
|
|
854
|
-
"data-cy": "answer-result-next-button",
|
|
855
|
-
"aria-label": "Next Button",
|
|
856
|
-
ref: nextBtnRef,
|
|
857
|
-
tabIndex: 1,
|
|
858
|
-
children: t("next")
|
|
859
|
-
}), (exercise === "pronunciation" || exercise === "roleplay" || exercise === 'meaning-listen-and-speak') && handleTryAgain && /*#__PURE__*/_jsx(DefaultButton, {
|
|
860
|
-
variant: "contained",
|
|
861
|
-
size: "large",
|
|
862
|
-
onClick: handleTryAgain,
|
|
863
|
-
className: classes.tryAgainButton,
|
|
864
|
-
"data-cy": "answer-result-try-again",
|
|
865
|
-
tabIndex: 2,
|
|
866
|
-
children: t("try_again")
|
|
867
|
-
})]
|
|
868
|
-
}), isLive && /*#__PURE__*/_jsx(Box, {
|
|
869
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
|
870
|
-
variant: "h3",
|
|
871
|
-
"data-cy": "answer-result-points",
|
|
872
|
-
sx: {
|
|
873
|
-
fontWeight: 'fontWeightBold'
|
|
874
|
-
},
|
|
875
|
-
children: points > 0 ? `+${points}` : `+0`
|
|
876
|
-
})
|
|
877
|
-
})]
|
|
878
|
-
})]
|
|
879
|
-
})
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
export default AnswerResult;
|