mario-core 2.9.140-level → 2.9.142-level

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/index.js CHANGED
@@ -696,6 +696,10 @@ var students_who_are_not_feeling_safe = "Students who are not feeling safe";
696
696
  var students_missing_a_weekly_check_in = "Students missing a weekly check-in";
697
697
  var student_stress_by_zone = "Student Stress by Zone";
698
698
  var student_distribution = "Student Distribution";
699
+ var surveys_flags = "Survey's flags";
700
+ var yellow_flags = "Yellow flags";
701
+ var green_flags = "Green flags";
702
+ var red_flags = "Red flags";
699
703
  var lang_us = {
700
704
  dashboard: dashboard,
701
705
  user: user,
@@ -1368,7 +1372,11 @@ var lang_us = {
1368
1372
  students_who_are_not_feeling_safe: students_who_are_not_feeling_safe,
1369
1373
  students_missing_a_weekly_check_in: students_missing_a_weekly_check_in,
1370
1374
  student_stress_by_zone: student_stress_by_zone,
1371
- student_distribution: student_distribution
1375
+ student_distribution: student_distribution,
1376
+ surveys_flags: surveys_flags,
1377
+ yellow_flags: yellow_flags,
1378
+ green_flags: green_flags,
1379
+ red_flags: red_flags
1372
1380
  };
1373
1381
 
1374
1382
  var dashboard$1 = "Dashboard";
@@ -2033,6 +2041,10 @@ var students_who_are_not_feeling_safe$1 = "Students who are not feeling safe";
2033
2041
  var students_missing_a_weekly_check_in$1 = "Students missing a weekly check-in";
2034
2042
  var student_stress_by_zone$1 = "Student Stress by Zone";
2035
2043
  var student_distribution$1 = "Student Distribution";
2044
+ var surveys_flags$1 = "Survey's flags";
2045
+ var yellow_flags$1 = "Yellow flags";
2046
+ var green_flags$1 = "Green flags";
2047
+ var red_flags$1 = "Red flags";
2036
2048
  var lang_uk = {
2037
2049
  dashboard: dashboard$1,
2038
2050
  user: user$1,
@@ -2705,7 +2717,11 @@ var lang_uk = {
2705
2717
  students_who_are_not_feeling_safe: students_who_are_not_feeling_safe$1,
2706
2718
  students_missing_a_weekly_check_in: students_missing_a_weekly_check_in$1,
2707
2719
  student_stress_by_zone: student_stress_by_zone$1,
2708
- student_distribution: student_distribution$1
2720
+ student_distribution: student_distribution$1,
2721
+ surveys_flags: surveys_flags$1,
2722
+ yellow_flags: yellow_flags$1,
2723
+ green_flags: green_flags$1,
2724
+ red_flags: red_flags$1
2709
2725
  };
2710
2726
 
2711
2727
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -8849,6 +8865,7 @@ var useNotificationList = function useNotificationList() {
8849
8865
  return state.common.user;
8850
8866
  });
8851
8867
  var userId = user === null || user === void 0 ? void 0 : user.id;
8868
+ var studentId = user === null || user === void 0 ? void 0 : user.studentId;
8852
8869
  var notificationList = reactRedux.useSelector(function (state) {
8853
8870
  return state.notification.notificationList;
8854
8871
  });
@@ -8878,7 +8895,7 @@ var useNotificationList = function useNotificationList() {
8878
8895
  };
8879
8896
 
8880
8897
  var viewNotification = function viewNotification(notification) {
8881
- var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9;
8898
+ var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10, _JSON$parse11, _JSON$parse12;
8882
8899
 
8883
8900
  var source = notification.source,
8884
8901
  extraData = notification.extraData;
@@ -8930,6 +8947,14 @@ var useNotificationList = function useNotificationList() {
8930
8947
 
8931
8948
  case "RequestCheckIn":
8932
8949
  window.open("/start-question/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[0]) + "/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[1]));
8950
+
8951
+ case "NewSurveyCreated":
8952
+ !!studentId && window.open("/start-survey/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[0]) + "/" + studentId);
8953
+ break;
8954
+
8955
+ case "StudentCompletedSurvey":
8956
+ !window.open("/start-survey/" + ((_JSON$parse11 = JSON.parse(extraData)) === null || _JSON$parse11 === void 0 ? void 0 : _JSON$parse11[0]) + "/" + ((_JSON$parse12 = JSON.parse(extraData)) === null || _JSON$parse12 === void 0 ? void 0 : _JSON$parse12[1]));
8957
+ break;
8933
8958
  }
8934
8959
  };
8935
8960
 
@@ -9146,7 +9171,7 @@ var NotificationList = function NotificationList() {
9146
9171
  }
9147
9172
  })), React__default.createElement("td", {
9148
9173
  className: "text-center align-middle"
9149
- }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed", "RequestCheckIn"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
9174
+ }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed", "RequestCheckIn", "NewSurveyCreated", "StudentCompletedSurvey"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
9150
9175
  className: "cursor-pointer",
9151
9176
  size: ICON_SIZE,
9152
9177
  title: "Detail",