mario-core 2.9.80-beta → 2.9.82-beta

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
@@ -589,6 +589,8 @@ var duplicate_survey = "Duplicate Survey";
589
589
  var share_survey = "Share Survey";
590
590
  var new_survey = "New Survey";
591
591
  var assign_counselor = "Assign Counselor";
592
+ var assign_secondary_teacher = "Assign Secondary Teacher";
593
+ var secondary_teacher_name = "Secondary Teacher Name";
592
594
  var lang_us = {
593
595
  dashboard: dashboard,
594
596
  user: user,
@@ -1151,7 +1153,9 @@ var lang_us = {
1151
1153
  duplicate_survey: duplicate_survey,
1152
1154
  share_survey: share_survey,
1153
1155
  new_survey: new_survey,
1154
- assign_counselor: assign_counselor
1156
+ assign_counselor: assign_counselor,
1157
+ assign_secondary_teacher: assign_secondary_teacher,
1158
+ secondary_teacher_name: secondary_teacher_name
1155
1159
  };
1156
1160
 
1157
1161
  var dashboard$1 = "Dashboard";
@@ -1710,6 +1714,8 @@ var duplicate_survey$1 = "Duplicate Survey";
1710
1714
  var share_survey$1 = "Share Survey";
1711
1715
  var new_survey$1 = "New Survey";
1712
1716
  var assign_counselor$1 = "Assign Counselor";
1717
+ var assign_secondary_teacher$1 = "Assign Secondary Teacher";
1718
+ var secondary_teacher_name$1 = "Secondary Teacher Name";
1713
1719
  var lang_uk = {
1714
1720
  dashboard: dashboard$1,
1715
1721
  user: user$1,
@@ -2272,7 +2278,9 @@ var lang_uk = {
2272
2278
  duplicate_survey: duplicate_survey$1,
2273
2279
  share_survey: share_survey$1,
2274
2280
  new_survey: new_survey$1,
2275
- assign_counselor: assign_counselor$1
2281
+ assign_counselor: assign_counselor$1,
2282
+ assign_secondary_teacher: assign_secondary_teacher$1,
2283
+ secondary_teacher_name: secondary_teacher_name$1
2276
2284
  };
2277
2285
 
2278
2286
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2546,7 +2554,7 @@ var STAR_OPTIONS = [{
2546
2554
  value: 5
2547
2555
  }];
2548
2556
  var ANSWER_EDITOR_HEIGHT = 150;
2549
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2557
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "SecondaryTeacher", "Student", "Parent"];
2550
2558
  var CHAT_CHANNEL = "chat-channel";
2551
2559
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2552
2560
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2563,7 +2571,8 @@ var ROLES = {
2563
2571
  EDUTEACHER: "General ED teacher",
2564
2572
  STUDENT: "Student",
2565
2573
  PARENT: "Parent",
2566
- COUNSELOR: "Counselor"
2574
+ COUNSELOR: "Counselor",
2575
+ SECONDARY_TEACHER: "SecondaryTeacher"
2567
2576
  };
2568
2577
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2569
2578
 
@@ -2818,7 +2827,7 @@ var useLogin = function useLogin() {
2818
2827
  history.push(HOMEPAGE_DISTRICT);
2819
2828
  } else if (roles.includes("Admin")) {
2820
2829
  history.push(HOMEPAGE_ADMIN);
2821
- } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2830
+ } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor") || roles.includes("SecondaryTeacher")) {
2822
2831
  history.push(HOMEPAGE_TEACHER);
2823
2832
  } else if (roles.includes("Student")) {
2824
2833
  history.push(HOMEPAGE_STUDENT);
@@ -7102,13 +7111,13 @@ var UserDetail = function UserDetail() {
7102
7111
  return;
7103
7112
  }
7104
7113
 
7105
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7114
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR, ROLES.SECONDARY_TEACHER].includes(role)) {
7106
7115
  setFieldValue("roles", [role]);
7107
7116
  return;
7108
7117
  }
7109
7118
 
7110
7119
  var teacherAssistantRoles = values.roles.filter(function (item) {
7111
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7120
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR, ROLES.SECONDARY_TEACHER].includes(item);
7112
7121
  });
7113
7122
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7114
7123
  }, [values.roles]);
@@ -7945,7 +7954,7 @@ var useNotificationList = function useNotificationList() {
7945
7954
  };
7946
7955
 
7947
7956
  var viewNotification = function viewNotification(notification) {
7948
- var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _extraData$replace3, _extraData$replace3$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6;
7957
+ 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;
7949
7958
 
7950
7959
  var source = notification.source,
7951
7960
  extraData = notification.extraData;
@@ -7968,15 +7977,15 @@ var useNotificationList = function useNotificationList() {
7968
7977
  break;
7969
7978
 
7970
7979
  case "External Reflection Completed":
7971
- window.open("/result-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace3 = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace3 === void 0 ? void 0 : (_extraData$replace3$s = _extraData$replace3.split(',')) === null || _extraData$replace3$s === void 0 ? void 0 : _extraData$replace3$s[1]) + "/external");
7980
+ window.open("/result-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/external");
7972
7981
  break;
7973
7982
 
7974
7983
  case "NewSessionCreated":
7975
- window.open("/start-question/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
7984
+ window.open("/start-question/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[0]) + "/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
7976
7985
  break;
7977
7986
 
7978
7987
  case "NewSessionComplete":
7979
- window.open("/start-question/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[0]) + "/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]));
7988
+ window.open("/start-question/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[0]) + "/" + ((_JSON$parse7 = JSON.parse(extraData)) === null || _JSON$parse7 === void 0 ? void 0 : _JSON$parse7[1]));
7980
7989
  break;
7981
7990
 
7982
7991
  case "ActionPointReminder":