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.js
CHANGED
|
@@ -588,6 +588,7 @@ var set_deadline = "Set deadline";
|
|
|
588
588
|
var duplicate_survey = "Duplicate Survey";
|
|
589
589
|
var share_survey = "Share Survey";
|
|
590
590
|
var new_survey = "New Survey";
|
|
591
|
+
var assign_counselor = "Assign Counselor";
|
|
591
592
|
var lang_us = {
|
|
592
593
|
dashboard: dashboard,
|
|
593
594
|
user: user,
|
|
@@ -1149,7 +1150,8 @@ var lang_us = {
|
|
|
1149
1150
|
set_deadline: set_deadline,
|
|
1150
1151
|
duplicate_survey: duplicate_survey,
|
|
1151
1152
|
share_survey: share_survey,
|
|
1152
|
-
new_survey: new_survey
|
|
1153
|
+
new_survey: new_survey,
|
|
1154
|
+
assign_counselor: assign_counselor
|
|
1153
1155
|
};
|
|
1154
1156
|
|
|
1155
1157
|
var dashboard$1 = "Dashboard";
|
|
@@ -1707,6 +1709,7 @@ var set_deadline$1 = "Set deadline";
|
|
|
1707
1709
|
var duplicate_survey$1 = "Duplicate Survey";
|
|
1708
1710
|
var share_survey$1 = "Share Survey";
|
|
1709
1711
|
var new_survey$1 = "New Survey";
|
|
1712
|
+
var assign_counselor$1 = "Assign Counselor";
|
|
1710
1713
|
var lang_uk = {
|
|
1711
1714
|
dashboard: dashboard$1,
|
|
1712
1715
|
user: user$1,
|
|
@@ -2268,7 +2271,8 @@ var lang_uk = {
|
|
|
2268
2271
|
set_deadline: set_deadline$1,
|
|
2269
2272
|
duplicate_survey: duplicate_survey$1,
|
|
2270
2273
|
share_survey: share_survey$1,
|
|
2271
|
-
new_survey: new_survey$1
|
|
2274
|
+
new_survey: new_survey$1,
|
|
2275
|
+
assign_counselor: assign_counselor$1
|
|
2272
2276
|
};
|
|
2273
2277
|
|
|
2274
2278
|
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
|
|
@@ -2542,7 +2546,7 @@ var STAR_OPTIONS = [{
|
|
|
2542
2546
|
value: 5
|
|
2543
2547
|
}];
|
|
2544
2548
|
var ANSWER_EDITOR_HEIGHT = 150;
|
|
2545
|
-
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
|
|
2549
|
+
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
|
|
2546
2550
|
var CHAT_CHANNEL = "chat-channel";
|
|
2547
2551
|
var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
|
|
2548
2552
|
var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
@@ -2558,7 +2562,8 @@ var ROLES = {
|
|
|
2558
2562
|
ASSISTANT: "Assistant",
|
|
2559
2563
|
EDUTEACHER: "General ED teacher",
|
|
2560
2564
|
STUDENT: "Student",
|
|
2561
|
-
PARENT: "Parent"
|
|
2565
|
+
PARENT: "Parent",
|
|
2566
|
+
COUNSELOR: "Counselor"
|
|
2562
2567
|
};
|
|
2563
2568
|
var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
|
|
2564
2569
|
|
|
@@ -2813,7 +2818,7 @@ var useLogin = function useLogin() {
|
|
|
2813
2818
|
history.push(HOMEPAGE_DISTRICT);
|
|
2814
2819
|
} else if (roles.includes("Admin")) {
|
|
2815
2820
|
history.push(HOMEPAGE_ADMIN);
|
|
2816
|
-
} else if (roles.includes("Teacher") || roles.includes("Assistant")) {
|
|
2821
|
+
} else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
|
|
2817
2822
|
history.push(HOMEPAGE_TEACHER);
|
|
2818
2823
|
} else if (roles.includes("Student")) {
|
|
2819
2824
|
history.push(HOMEPAGE_STUDENT);
|
|
@@ -7097,13 +7102,13 @@ var UserDetail = function UserDetail() {
|
|
|
7097
7102
|
return;
|
|
7098
7103
|
}
|
|
7099
7104
|
|
|
7100
|
-
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
|
|
7105
|
+
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
|
|
7101
7106
|
setFieldValue("roles", [role]);
|
|
7102
7107
|
return;
|
|
7103
7108
|
}
|
|
7104
7109
|
|
|
7105
7110
|
var teacherAssistantRoles = values.roles.filter(function (item) {
|
|
7106
|
-
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
|
|
7111
|
+
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
|
|
7107
7112
|
});
|
|
7108
7113
|
setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
|
|
7109
7114
|
}, [values.roles]);
|
|
@@ -7940,7 +7945,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
7940
7945
|
};
|
|
7941
7946
|
|
|
7942
7947
|
var viewNotification = function viewNotification(notification) {
|
|
7943
|
-
var _JSON$parse, _JSON$parse2,
|
|
7948
|
+
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;
|
|
7944
7949
|
|
|
7945
7950
|
var source = notification.source,
|
|
7946
7951
|
extraData = notification.extraData;
|
|
@@ -7955,23 +7960,23 @@ var useNotificationList = function useNotificationList() {
|
|
|
7955
7960
|
break;
|
|
7956
7961
|
|
|
7957
7962
|
case "Class Reflection":
|
|
7958
|
-
window.open("/start-reflection/" + ((
|
|
7963
|
+
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]));
|
|
7959
7964
|
break;
|
|
7960
7965
|
|
|
7961
7966
|
case "Class Reflection Completed":
|
|
7962
|
-
window.open("/result-reflection/" + ((
|
|
7967
|
+
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]));
|
|
7963
7968
|
break;
|
|
7964
7969
|
|
|
7965
7970
|
case "External Reflection Completed":
|
|
7966
|
-
window.open("/result-reflection/" + ((_JSON$
|
|
7971
|
+
window.open("/result-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/external");
|
|
7967
7972
|
break;
|
|
7968
7973
|
|
|
7969
7974
|
case "NewSessionCreated":
|
|
7970
|
-
window.open("/start-question/" + ((_JSON$
|
|
7975
|
+
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]));
|
|
7971
7976
|
break;
|
|
7972
7977
|
|
|
7973
7978
|
case "NewSessionComplete":
|
|
7974
|
-
window.open("/start-question/" + ((_JSON$
|
|
7979
|
+
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]));
|
|
7975
7980
|
break;
|
|
7976
7981
|
|
|
7977
7982
|
case "ActionPointReminder":
|