mario-core 2.9.53-beta → 2.9.55-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.d.ts +2 -2
- package/dist/index.js +21 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +21 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ import { INIT_AMPLITUDE_KEY } from "./utils/constants";
|
|
|
51
51
|
import store from "./store";
|
|
52
52
|
import { api, apiUpload } from "./services/api";
|
|
53
53
|
import editorConfig from "./configs/editorConfig";
|
|
54
|
-
import { BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, QUESTION_TYPES_OPTIONS, TAB_COLORS } from "./utils/constants";
|
|
54
|
+
import { BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, QUESTION_TYPES_OPTIONS, TAB_COLORS, NOTIFICATION_ALERT_KEY } from "./utils/constants";
|
|
55
55
|
import firstCheckToken from "./utils/firstCheckToken";
|
|
56
56
|
import canAccessRoute from "./utils/canAccessRoute";
|
|
57
57
|
import { getInfo } from "./services/accountService";
|
|
@@ -107,4 +107,4 @@ import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage } f
|
|
|
107
107
|
import useFilters from "./hooks/useFilters";
|
|
108
108
|
import amplitude from "amplitude-js";
|
|
109
109
|
declare const amplitudeClient: amplitude.AmplitudeClient;
|
|
110
|
-
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY };
|
|
110
|
+
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY };
|
package/dist/index.js
CHANGED
|
@@ -2447,6 +2447,7 @@ var ROLES = {
|
|
|
2447
2447
|
STUDENT: "Student",
|
|
2448
2448
|
PARENT: "Parent"
|
|
2449
2449
|
};
|
|
2450
|
+
var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
|
|
2450
2451
|
|
|
2451
2452
|
var getAccessToken = (function () {
|
|
2452
2453
|
try {
|
|
@@ -2541,6 +2542,12 @@ var apiUpload = axios.create({
|
|
|
2541
2542
|
window.location.href = "/login";
|
|
2542
2543
|
}
|
|
2543
2544
|
|
|
2545
|
+
if (error.response.status == 403) {
|
|
2546
|
+
localStorage.removeItem(ACCESS_TOKEN);
|
|
2547
|
+
localStorage.removeItem("USER_EMAIL");
|
|
2548
|
+
window.location.href = "/login";
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2544
2551
|
return Promise.reject(error);
|
|
2545
2552
|
});
|
|
2546
2553
|
});
|
|
@@ -2654,6 +2661,7 @@ var useLogin = function useLogin() {
|
|
|
2654
2661
|
profileImageFileName = _res$data.profileImageFileName,
|
|
2655
2662
|
isLoginFirst = _res$data.isLoginFirst;
|
|
2656
2663
|
localStorage.setItem(ACCESS_TOKEN, token);
|
|
2664
|
+
localStorage.removeItem(NOTIFICATION_ALERT_KEY);
|
|
2657
2665
|
dispatch(setUser({
|
|
2658
2666
|
id: id,
|
|
2659
2667
|
firstName: firstName,
|
|
@@ -8024,7 +8032,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
8024
8032
|
};
|
|
8025
8033
|
|
|
8026
8034
|
var viewNotification = function viewNotification(notification) {
|
|
8027
|
-
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8;
|
|
8035
|
+
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
|
|
8028
8036
|
|
|
8029
8037
|
var source = notification.source,
|
|
8030
8038
|
extraData = notification.extraData;
|
|
@@ -8042,12 +8050,20 @@ var useNotificationList = function useNotificationList() {
|
|
|
8042
8050
|
window.open("/start-reflection/" + ((_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]));
|
|
8043
8051
|
break;
|
|
8044
8052
|
|
|
8053
|
+
case "Class Reflection Completed":
|
|
8054
|
+
window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
|
|
8055
|
+
break;
|
|
8056
|
+
|
|
8057
|
+
case "External Reflection Completed":
|
|
8058
|
+
window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
|
|
8059
|
+
break;
|
|
8060
|
+
|
|
8045
8061
|
case "NewSessionCreated":
|
|
8046
|
-
window.open("/start-question/" + ((_JSON$
|
|
8062
|
+
window.open("/start-question/" + ((_JSON$parse7 = JSON.parse(extraData)) === null || _JSON$parse7 === void 0 ? void 0 : _JSON$parse7[0]) + "/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[1]));
|
|
8047
8063
|
break;
|
|
8048
8064
|
|
|
8049
8065
|
case "NewSessionComplete":
|
|
8050
|
-
window.open("/start-question/" + ((_JSON$
|
|
8066
|
+
window.open("/start-question/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[0]) + "/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[1]));
|
|
8051
8067
|
break;
|
|
8052
8068
|
|
|
8053
8069
|
case "ActionPointReminder":
|
|
@@ -8279,7 +8295,7 @@ var NotificationList = function NotificationList() {
|
|
|
8279
8295
|
}
|
|
8280
8296
|
})), React__default.createElement("td", {
|
|
8281
8297
|
className: "text-center align-middle"
|
|
8282
|
-
}, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
|
|
8298
|
+
}, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
|
|
8283
8299
|
className: "cursor-pointer",
|
|
8284
8300
|
size: ICON_SIZE,
|
|
8285
8301
|
title: "Detail",
|
|
@@ -10531,6 +10547,7 @@ exports.LinkEditButton = LinkEditButton;
|
|
|
10531
10547
|
exports.Loading = Loading;
|
|
10532
10548
|
exports.Login = Login;
|
|
10533
10549
|
exports.MediaList = MediaList;
|
|
10550
|
+
exports.NOTIFICATION_ALERT_KEY = NOTIFICATION_ALERT_KEY;
|
|
10534
10551
|
exports.NOTIFICATION_CHANNEL = NOTIFICATION_CHANNEL;
|
|
10535
10552
|
exports.NotFound = NotFound;
|
|
10536
10553
|
exports.NotificationList = NotificationList;
|