mario-teacher-student-client 2.1.132-admin → 2.1.133-admin

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.
@@ -2,3 +2,7 @@ export declare const describeQuestion: {
2
2
  key: string;
3
3
  value: string;
4
4
  }[];
5
+ export declare const questionDataLogs: {
6
+ key: string;
7
+ question: string;
8
+ }[];
package/dist/index.js CHANGED
@@ -9086,6 +9086,43 @@ var describeQuestion = [{
9086
9086
  key: "<p>Energy</p>",
9087
9087
  value: "Energy provides the strength and power to do something. This can be something physical, like running a race, or mental, like taking an assessment. Do you feel like you have enough energy to get through the day? How do you feel about your energy levels at the moment? "
9088
9088
  }];
9089
+ var questionDataLogs = [{
9090
+ key: "responses_wellbeing",
9091
+ question: "Well-being"
9092
+ }, {
9093
+ key: "responses_growth",
9094
+ question: "Growth"
9095
+ }, {
9096
+ key: "responses_relationships",
9097
+ question: "Relationships"
9098
+ }, {
9099
+ key: "responses_productivity",
9100
+ question: "Productivity"
9101
+ }, {
9102
+ key: "responses_academics",
9103
+ question: "Academics"
9104
+ }, {
9105
+ key: "responses_self_advocacy",
9106
+ question: "Self-efficacy"
9107
+ }, {
9108
+ key: "responses_focus",
9109
+ question: "Focus"
9110
+ }, {
9111
+ key: "responses_energy",
9112
+ question: "Energy"
9113
+ }, {
9114
+ key: "responses_happiness",
9115
+ question: "Happiness"
9116
+ }, {
9117
+ key: "responses_safety",
9118
+ question: "Safety"
9119
+ }, {
9120
+ key: "responses_stress",
9121
+ question: "Stress"
9122
+ }, {
9123
+ key: "responses_readytolearn",
9124
+ question: "Are you Ready to Learn?"
9125
+ }];
9089
9126
 
9090
9127
  var theme = core.createTheme({
9091
9128
  overrides: {
@@ -9802,6 +9839,7 @@ var useConductOne = function useConductOne() {
9802
9839
  setTimeSession(res.data.length);
9803
9840
  var body = {
9804
9841
  studentName: res.data.studentName,
9842
+ studentEmail: res.data.studentEmail,
9805
9843
  studentProfileImage: res.data.studentProfileImage,
9806
9844
  teacherName: res.data.teacherName,
9807
9845
  teacherProfileImage: res.data.teacherProfileImage,
@@ -9882,6 +9920,8 @@ var useConductOne = function useConductOne() {
9882
9920
  };
9883
9921
 
9884
9922
  var updateQuestionAnswer = React.useCallback(function (questionId, text) {
9923
+ var _questionDataLogs$fin;
9924
+
9885
9925
  if (!localStorage.getItem(rollBackQuestionList)) {
9886
9926
  localStorage.setItem(rollBackQuestionList, JSON.stringify(listQuestionStudents));
9887
9927
  }
@@ -9894,6 +9934,12 @@ var useConductOne = function useConductOne() {
9894
9934
 
9895
9935
  return item;
9896
9936
  });
9937
+ var question = listQuestionNews.find(function (r) {
9938
+ return r.id == questionId;
9939
+ });
9940
+ var key = (_questionDataLogs$fin = questionDataLogs.find(function (r) {
9941
+ return question === null || question === void 0 ? void 0 : question.text.toLowerCase().includes(r.question.toLowerCase());
9942
+ })) === null || _questionDataLogs$fin === void 0 ? void 0 : _questionDataLogs$fin.key;
9897
9943
  var isCheckTeacherLearning = listQuestionTeachers.id == questionId;
9898
9944
  setListQuestionStudentAnswer(arrNew);
9899
9945
  var body = {
@@ -9935,7 +9981,13 @@ var useConductOne = function useConductOne() {
9935
9981
  return Promise.reject(e);
9936
9982
  }
9937
9983
  }, 500);
9938
- }, [sessionResultId, listQuestionStudents, listQuestionTeachers, sessionResultStudentId, sessionResultTeacherId]);
9984
+ dispatch(marioCore.initAmplitude({
9985
+ name: currentUser.email,
9986
+ event: key,
9987
+ answer: text + "%",
9988
+ student_id: informationUser.studentEmail
9989
+ }));
9990
+ }, [sessionResultId, listQuestionStudents, listQuestionTeachers, sessionResultStudentId, sessionResultTeacherId, informationUser]);
9939
9991
  var fnfinishSession = React.useCallback(function (sessionTypeCategoryId, cb) {
9940
9992
  try {
9941
9993
  var _temp12 = function _temp12() {