@nualang/nualang-ui-components 0.1.1312 → 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.
@@ -181,7 +181,8 @@ export default function RecordingCard({
181
181
  variant: "body2",
182
182
  color: "text.secondary",
183
183
  sx: {
184
- fontStyle: "italic"
184
+ fontStyle: "italic",
185
+ whiteSpace: "pre-line"
185
186
  },
186
187
  children: recordingsListData.feedbackText
187
188
  })]
@@ -121,15 +121,6 @@ export default function ScheduleCard({
121
121
  },
122
122
  children: teacherView ? t("view") : t("start")
123
123
  })]
124
- }), /*#__PURE__*/_jsx(Box, {
125
- sx: {
126
- paddingTop: 1
127
- },
128
- children: /*#__PURE__*/_jsx(Typography, {
129
- variant: "body1",
130
- fontWeight: 600,
131
- children: scheduleListData.meetingTopic
132
- })
133
124
  }), /*#__PURE__*/_jsx(Box, {
134
125
  sx: {
135
126
  paddingTop: 1
@@ -139,7 +130,7 @@ export default function ScheduleCard({
139
130
  color: "text.secondary",
140
131
  sx: {
141
132
  lineHeight: 1.6,
142
- whiteSpace: "normal"
133
+ whiteSpace: "pre-line"
143
134
  },
144
135
  children: scheduleListData.meetingPrompt
145
136
  })
@@ -197,7 +197,7 @@ export default function GroupFeedbackDialog({
197
197
  color: "text.secondary",
198
198
  sx: {
199
199
  lineHeight: 1.6,
200
- whiteSpace: "normal"
200
+ whiteSpace: "pre-line"
201
201
  },
202
202
  children: selectedGroup.meetingPrompt
203
203
  })]
@@ -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({
@@ -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 && verificationStatus === "approved" && /*#__PURE__*/_jsxs(MenuItem, {
179
+ }), isCreator && /*#__PURE__*/_jsxs(MenuItem, {
180
180
  onClick: subscription.isPaidUser ? () => {
181
181
  handleOpenInviteDialog();
182
182
  handleClose();
@@ -287,7 +287,7 @@ const MeetingPromptsList = withStyles(({
287
287
  color: "text.secondary",
288
288
  sx: {
289
289
  lineHeight: 1.6,
290
- whiteSpace: "normal"
290
+ whiteSpace: "pre-line"
291
291
  },
292
292
  children: discussion.meetingPrompt
293
293
  })
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1312",
3
+ "version": "0.1.1314",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [