mario-core 2.9.70-beta → 2.9.81-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 +18 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -13
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -586,6 +586,7 @@ var set_deadline = "Set deadline";
|
|
|
586
586
|
var duplicate_survey = "Duplicate Survey";
|
|
587
587
|
var share_survey = "Share Survey";
|
|
588
588
|
var new_survey = "New Survey";
|
|
589
|
+
var assign_counselor = "Assign Counselor";
|
|
589
590
|
var lang_us = {
|
|
590
591
|
dashboard: dashboard,
|
|
591
592
|
user: user,
|
|
@@ -1147,7 +1148,8 @@ var lang_us = {
|
|
|
1147
1148
|
set_deadline: set_deadline,
|
|
1148
1149
|
duplicate_survey: duplicate_survey,
|
|
1149
1150
|
share_survey: share_survey,
|
|
1150
|
-
new_survey: new_survey
|
|
1151
|
+
new_survey: new_survey,
|
|
1152
|
+
assign_counselor: assign_counselor
|
|
1151
1153
|
};
|
|
1152
1154
|
|
|
1153
1155
|
var dashboard$1 = "Dashboard";
|
|
@@ -1705,6 +1707,7 @@ var set_deadline$1 = "Set deadline";
|
|
|
1705
1707
|
var duplicate_survey$1 = "Duplicate Survey";
|
|
1706
1708
|
var share_survey$1 = "Share Survey";
|
|
1707
1709
|
var new_survey$1 = "New Survey";
|
|
1710
|
+
var assign_counselor$1 = "Assign Counselor";
|
|
1708
1711
|
var lang_uk = {
|
|
1709
1712
|
dashboard: dashboard$1,
|
|
1710
1713
|
user: user$1,
|
|
@@ -2266,7 +2269,8 @@ var lang_uk = {
|
|
|
2266
2269
|
set_deadline: set_deadline$1,
|
|
2267
2270
|
duplicate_survey: duplicate_survey$1,
|
|
2268
2271
|
share_survey: share_survey$1,
|
|
2269
|
-
new_survey: new_survey$1
|
|
2272
|
+
new_survey: new_survey$1,
|
|
2273
|
+
assign_counselor: assign_counselor$1
|
|
2270
2274
|
};
|
|
2271
2275
|
|
|
2272
2276
|
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
|
|
@@ -2540,7 +2544,7 @@ var STAR_OPTIONS = [{
|
|
|
2540
2544
|
value: 5
|
|
2541
2545
|
}];
|
|
2542
2546
|
var ANSWER_EDITOR_HEIGHT = 150;
|
|
2543
|
-
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
|
|
2547
|
+
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
|
|
2544
2548
|
var CHAT_CHANNEL = "chat-channel";
|
|
2545
2549
|
var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
|
|
2546
2550
|
var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
@@ -2556,7 +2560,8 @@ var ROLES = {
|
|
|
2556
2560
|
ASSISTANT: "Assistant",
|
|
2557
2561
|
EDUTEACHER: "General ED teacher",
|
|
2558
2562
|
STUDENT: "Student",
|
|
2559
|
-
PARENT: "Parent"
|
|
2563
|
+
PARENT: "Parent",
|
|
2564
|
+
COUNSELOR: "Counselor"
|
|
2560
2565
|
};
|
|
2561
2566
|
var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
|
|
2562
2567
|
|
|
@@ -2811,7 +2816,7 @@ var useLogin = function useLogin() {
|
|
|
2811
2816
|
history.push(HOMEPAGE_DISTRICT);
|
|
2812
2817
|
} else if (roles.includes("Admin")) {
|
|
2813
2818
|
history.push(HOMEPAGE_ADMIN);
|
|
2814
|
-
} else if (roles.includes("Teacher") || roles.includes("Assistant")) {
|
|
2819
|
+
} else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
|
|
2815
2820
|
history.push(HOMEPAGE_TEACHER);
|
|
2816
2821
|
} else if (roles.includes("Student")) {
|
|
2817
2822
|
history.push(HOMEPAGE_STUDENT);
|
|
@@ -7095,13 +7100,13 @@ var UserDetail = function UserDetail() {
|
|
|
7095
7100
|
return;
|
|
7096
7101
|
}
|
|
7097
7102
|
|
|
7098
|
-
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
|
|
7103
|
+
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
|
|
7099
7104
|
setFieldValue("roles", [role]);
|
|
7100
7105
|
return;
|
|
7101
7106
|
}
|
|
7102
7107
|
|
|
7103
7108
|
var teacherAssistantRoles = values.roles.filter(function (item) {
|
|
7104
|
-
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
|
|
7109
|
+
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
|
|
7105
7110
|
});
|
|
7106
7111
|
setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
|
|
7107
7112
|
}, [values.roles]);
|
|
@@ -7938,7 +7943,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
7938
7943
|
};
|
|
7939
7944
|
|
|
7940
7945
|
var viewNotification = function viewNotification(notification) {
|
|
7941
|
-
var _JSON$parse, _JSON$parse2,
|
|
7946
|
+
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;
|
|
7942
7947
|
|
|
7943
7948
|
var source = notification.source,
|
|
7944
7949
|
extraData = notification.extraData;
|
|
@@ -7953,23 +7958,23 @@ var useNotificationList = function useNotificationList() {
|
|
|
7953
7958
|
break;
|
|
7954
7959
|
|
|
7955
7960
|
case "Class Reflection":
|
|
7956
|
-
window.open("/start-reflection/" + ((
|
|
7961
|
+
window.open("/start-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace === void 0 ? void 0 : (_extraData$replace$sp = _extraData$replace.split(',')) === null || _extraData$replace$sp === void 0 ? void 0 : _extraData$replace$sp[1]));
|
|
7957
7962
|
break;
|
|
7958
7963
|
|
|
7959
7964
|
case "Class Reflection Completed":
|
|
7960
|
-
window.open("/result-reflection/" + ((
|
|
7965
|
+
window.open("/result-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace2 = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace2 === void 0 ? void 0 : (_extraData$replace2$s = _extraData$replace2.split(',')) === null || _extraData$replace2$s === void 0 ? void 0 : _extraData$replace2$s[1]));
|
|
7961
7966
|
break;
|
|
7962
7967
|
|
|
7963
7968
|
case "External Reflection Completed":
|
|
7964
|
-
window.open("/result-reflection/" + ((_JSON$
|
|
7969
|
+
window.open("/result-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/external");
|
|
7965
7970
|
break;
|
|
7966
7971
|
|
|
7967
7972
|
case "NewSessionCreated":
|
|
7968
|
-
window.open("/start-question/" + ((_JSON$
|
|
7973
|
+
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]));
|
|
7969
7974
|
break;
|
|
7970
7975
|
|
|
7971
7976
|
case "NewSessionComplete":
|
|
7972
|
-
window.open("/start-question/" + ((_JSON$
|
|
7977
|
+
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]));
|
|
7973
7978
|
break;
|
|
7974
7979
|
|
|
7975
7980
|
case "ActionPointReminder":
|