@nualang/nualang-ui-components 0.1.1313 → 0.1.1314
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/Forms/Settings/Settings.js +4 -4
- package/dist/Live/Game/Game.js +5 -5
- package/dist/Live/LiveRoleplay/LiveStory/LiveStory.js +1 -1
- package/dist/Misc/ExerciseBottomBar/ExerciseBottomBar.js +2 -1
- package/dist/Screens/Courses/ViewCourse/ViewCourse.js +1 -1
- package/dist/hooks/useExerciseState.js +1 -28
- package/dist/hooks/useRecognition.js +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
import ResponsiveTabs from "../../Navigation/ResponsiveTabs/ResponsiveTabs";
|
|
3
|
-
import General from "./Tabs/General";
|
|
4
|
-
import Display from "./Tabs/Display";
|
|
5
|
-
import Subscription from "./Tabs/Subscription";
|
|
6
|
-
import EmailNotifications from "./Tabs/EmailNotifications";
|
|
3
|
+
import General from "./Tabs/General/General";
|
|
4
|
+
import Display from "./Tabs/Display/Display";
|
|
5
|
+
import Subscription from "./Tabs/Subscription/Subscription";
|
|
6
|
+
import EmailNotifications from "./Tabs/EmailNotifications/EmailNotifications";
|
|
7
7
|
import { checkIsGeneratedEmail } from "../../utils";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
9
|
export default function Settings({
|
package/dist/Live/Game/Game.js
CHANGED
|
@@ -12,12 +12,12 @@ import Joyride, { STATUS } from "react-joyride";
|
|
|
12
12
|
import ExerciseProgressBar from "../../Misc/ExerciseProgressBar/ExerciseProgressBar";
|
|
13
13
|
import VoiceSpeedSelector from "../../Misc/VoiceSpeed/VoiceSpeed";
|
|
14
14
|
import Leaderboard from "../../Lists/Leaderboard/Leaderboard";
|
|
15
|
-
import WaitingRoom from "../WaitingRoom";
|
|
16
|
-
import LiveListener from "../LiveListener";
|
|
15
|
+
import WaitingRoom from "../WaitingRoom/WaitingRoom";
|
|
16
|
+
import LiveListener from "../LiveListener/LiveListener";
|
|
17
17
|
import LiveTranslator from "../LiveTranslator/LiveTranslator";
|
|
18
|
-
import LiveStory from "../LiveRoleplay/LiveStory";
|
|
19
|
-
import HowToJoin from "../HowToJoin";
|
|
20
|
-
import GameMembers from "../GameMembers";
|
|
18
|
+
import LiveStory from "../LiveRoleplay/LiveStory/LiveStory";
|
|
19
|
+
import HowToJoin from "../HowToJoin/HowToJoin";
|
|
20
|
+
import GameMembers from "../GameMembers/GameMembers";
|
|
21
21
|
import GameSettings from "../GameSettings/GameSettings";
|
|
22
22
|
import FinalScoreDrawer from "../Misc/FinalScoreDrawer/FinalScoreDrawer";
|
|
23
23
|
import RewardEarned from "../../Dialogs/RewardEarned/RewardEarned";
|
|
@@ -5,7 +5,7 @@ import Chat from "../../../Chat/Chat";
|
|
|
5
5
|
import BeforeElements from "../../../Exercises/Roleplay/Games/BeforeElements";
|
|
6
6
|
import AnswerResult from "../../../Misc/AnswerResult/AnswerResult";
|
|
7
7
|
import GameControls from "../../GameControls/GameControls";
|
|
8
|
-
import GameQuestionResults from "../../GameQuestionResults";
|
|
8
|
+
import GameQuestionResults from "../../GameQuestionResults/GameQuestionResults";
|
|
9
9
|
import StudentAnswerDrawer from "../../Misc/StudentAnswerDrawer/StudentAnswerDrawer";
|
|
10
10
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -9,7 +9,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
9
9
|
borderTop: `2px solid ${theme.palette.grey[300]}`,
|
|
10
10
|
width: "100%",
|
|
11
11
|
position: "sticky",
|
|
12
|
-
bottom: 0
|
|
12
|
+
bottom: 0,
|
|
13
|
+
backgroundColor: theme.palette.mode === 'dark' ? "#525252" : "white"
|
|
13
14
|
}
|
|
14
15
|
}));
|
|
15
16
|
function ExerciseBottomBar({
|
|
@@ -176,7 +176,7 @@ function OverflowMenu({
|
|
|
176
176
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
177
177
|
children: t("leave_course")
|
|
178
178
|
})]
|
|
179
|
-
}), isCreator &&
|
|
179
|
+
}), isCreator && /*#__PURE__*/_jsxs(MenuItem, {
|
|
180
180
|
onClick: subscription.isPaidUser ? () => {
|
|
181
181
|
handleOpenInviteDialog();
|
|
182
182
|
handleClose();
|
|
@@ -64,9 +64,7 @@ export default function useExerciseState({
|
|
|
64
64
|
classroomId,
|
|
65
65
|
i18nLanguage,
|
|
66
66
|
isDynamicResponsesEnabled,
|
|
67
|
-
aiChatbotConversationHistory
|
|
68
|
-
isUserInternal,
|
|
69
|
-
handleStudentMisuse
|
|
67
|
+
aiChatbotConversationHistory
|
|
70
68
|
}) {
|
|
71
69
|
const navigate = useNavigate();
|
|
72
70
|
const [questions, setQuestions] = useState([]);
|
|
@@ -1669,28 +1667,6 @@ export default function useExerciseState({
|
|
|
1669
1667
|
exerciseCompletion.description = description;
|
|
1670
1668
|
const formattedBotMessages = await formatBotMessages(botMessages);
|
|
1671
1669
|
exerciseCompletion.messages = formattedBotMessages;
|
|
1672
|
-
const containsStudentInappropriate = formattedBotMessages.some(msg => msg?.studentInappropriate === true);
|
|
1673
|
-
const exerciseLink = `${window.location.origin}/courses/${courseId}/${sectionId}/${topicId}/activity/bot?botId=${botId}`;
|
|
1674
|
-
if (containsStudentInappropriate) {
|
|
1675
|
-
const responseFromMisuse = await handleStudentMisuse({
|
|
1676
|
-
params: {
|
|
1677
|
-
exerciseLink,
|
|
1678
|
-
exerciseName,
|
|
1679
|
-
problemDescription: "Student has been acting inapprpriately within your exercise"
|
|
1680
|
-
},
|
|
1681
|
-
botId: bot.botId,
|
|
1682
|
-
startTime,
|
|
1683
|
-
courseId,
|
|
1684
|
-
sectionId,
|
|
1685
|
-
topicId,
|
|
1686
|
-
exerciseLink
|
|
1687
|
-
});
|
|
1688
|
-
if (responseFromMisuse && responseFromMisuse.error) {
|
|
1689
|
-
openSnackbar(responseFromMisuse.error, "error");
|
|
1690
|
-
} else {
|
|
1691
|
-
openSnackbar(t("student_misuse_reported"), "info");
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
1670
|
} else if (exerciseName === "roleplay") {
|
|
1695
1671
|
const {
|
|
1696
1672
|
picture,
|
|
@@ -1698,9 +1674,6 @@ export default function useExerciseState({
|
|
|
1698
1674
|
description,
|
|
1699
1675
|
roleplayId
|
|
1700
1676
|
} = roleplay;
|
|
1701
|
-
// temp disabled unanswered questions because was seeing answered questions appeaing in this array
|
|
1702
|
-
// script.slice(roleplayMessages.length);
|
|
1703
|
-
// const unansweredQuestions = script.filter(scriptLine => scriptLine.question && scriptLine.answers);
|
|
1704
1677
|
exerciseCompletion.gameId = gameId;
|
|
1705
1678
|
exerciseCompletion.selectedActor = isActorOne ? 1 : 2;
|
|
1706
1679
|
exerciseCompletion.actor1 = roleplay.actor1;
|
|
@@ -159,7 +159,8 @@ export default function useRecognition(props = {}) {
|
|
|
159
159
|
speechContexts: gcloudParams.speechContexts,
|
|
160
160
|
maxAlternatives: gcloudParams.maxAlternatives || 10,
|
|
161
161
|
enableWordConfidence: gcloudParams.enableWordConfidence || false,
|
|
162
|
-
model: gcloudParams.model
|
|
162
|
+
model: gcloudParams.model,
|
|
163
|
+
enableAutomaticPunctuation: true
|
|
163
164
|
},
|
|
164
165
|
single_utterance: gcloudParams.single_utterance,
|
|
165
166
|
interimResults: gcloudParams.interimResults // If you want interim results, set this to true
|