mario-core 2.9.12-beta → 2.9.13-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 +6 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -18
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/commons/action.d.ts +1 -2
- package/package.json +94 -96
- package/dist/types/Payload.d.ts +0 -11
package/dist/index.modern.js
CHANGED
|
@@ -25,7 +25,6 @@ import ReactNotification$1 from 'react-notifications-component';
|
|
|
25
25
|
import 'react-notifications-component/dist/theme.css';
|
|
26
26
|
import { AiOutlineEye } from 'react-icons/ai';
|
|
27
27
|
import moment from 'moment';
|
|
28
|
-
import amplitude from 'amplitude-js';
|
|
29
28
|
|
|
30
29
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
31
30
|
|
|
@@ -231,11 +230,11 @@ var setAlert = createAction("common/setAlert");
|
|
|
231
230
|
var reset = createAction("common/reset");
|
|
232
231
|
var showMenuBar = createAction("common/showMenuBar");
|
|
233
232
|
var showFontSize = createAction("common/showFontSize");
|
|
233
|
+
var setEnableIEP = createAction("common/setEnableIEP");
|
|
234
234
|
var setCurrentStudentId = createAction("common/setCurrentStudentId");
|
|
235
235
|
var setCurrentStudentUserId = createAction("common/setCurrentStudentUserId");
|
|
236
236
|
var setCurrentStudentName = createAction("common/setCurrentStudentName");
|
|
237
237
|
var setTurnOffPassWhenChangeMode = createAction("common/setTurnOffPassWhenChangeMode");
|
|
238
|
-
var initAmplitude = createAction("common/initAmplitude");
|
|
239
238
|
|
|
240
239
|
var encodeParams = (function (params) {
|
|
241
240
|
return Object.keys(params).filter(function (key) {
|
|
@@ -6739,7 +6738,8 @@ var initialState = {
|
|
|
6739
6738
|
currentStudentName: localStorage.getItem("currentStudentName") || "",
|
|
6740
6739
|
turnOffPassWhenChangeMode: false,
|
|
6741
6740
|
menuBar: true,
|
|
6742
|
-
defaultFontSize: 16
|
|
6741
|
+
defaultFontSize: 16,
|
|
6742
|
+
isEnableIEP: true
|
|
6743
6743
|
};
|
|
6744
6744
|
var commonReducer = createReducer(initialState, function (builder) {
|
|
6745
6745
|
builder.addCase(setLoading, function (state, action) {
|
|
@@ -6767,22 +6767,10 @@ var commonReducer = createReducer(initialState, function (builder) {
|
|
|
6767
6767
|
state.turnOffPassWhenChangeMode = action.payload;
|
|
6768
6768
|
}).addCase(showMenuBar, function (state, action) {
|
|
6769
6769
|
state.menuBar = action.payload;
|
|
6770
|
+
}).addCase(setEnableIEP, function (state, action) {
|
|
6771
|
+
state.isEnableIEP = action.payload;
|
|
6770
6772
|
}).addCase(showFontSize, function (state, action) {
|
|
6771
6773
|
state.defaultFontSize = action.payload;
|
|
6772
|
-
}).addCase(initAmplitude, function (_state, action) {
|
|
6773
|
-
var _action$payload, _action$payload2, _action$payload3, _action$payload4, _action$payload5, _action$payload6, _action$payload7;
|
|
6774
|
-
|
|
6775
|
-
amplitude.getInstance().init("860fa99c52ae79d98e904b4c862ddaac", action.payload.name);
|
|
6776
|
-
var eventProperties = {
|
|
6777
|
-
user_id: action.payload.name,
|
|
6778
|
-
status: (_action$payload = action.payload) !== null && _action$payload !== void 0 && _action$payload.status ? (_action$payload2 = action.payload) === null || _action$payload2 === void 0 ? void 0 : _action$payload2.status : "",
|
|
6779
|
-
student_id: (_action$payload3 = action.payload) !== null && _action$payload3 !== void 0 && _action$payload3.student_id ? action.payload.student_id : "",
|
|
6780
|
-
page: (_action$payload4 = action.payload) !== null && _action$payload4 !== void 0 && _action$payload4.page ? action.payload.page : "",
|
|
6781
|
-
part: (_action$payload5 = action.payload) !== null && _action$payload5 !== void 0 && _action$payload5.part ? action.payload.part : "",
|
|
6782
|
-
iep_date: (_action$payload6 = action.payload) !== null && _action$payload6 !== void 0 && _action$payload6.iep_date ? action.payload.iep_date : null,
|
|
6783
|
-
saved: typeof ((_action$payload7 = action.payload) === null || _action$payload7 === void 0 ? void 0 : _action$payload7.saved) == "boolean" ? action.payload.saved : null
|
|
6784
|
-
};
|
|
6785
|
-
amplitude.getInstance().logEvent(action.payload.event, eventProperties);
|
|
6786
6774
|
});
|
|
6787
6775
|
});
|
|
6788
6776
|
|
|
@@ -7693,5 +7681,5 @@ var generateRandomString = (function () {
|
|
|
7693
7681
|
return (Math.random() + 1).toString(36).substring(7);
|
|
7694
7682
|
});
|
|
7695
7683
|
|
|
7696
|
-
export { ACCESS_TOKEN, ANSWER_EDITOR_HEIGHT, AcademicClassSelector, AddButton, BASE_URL, CHAT_CHANNEL, CommonAlert, CommonHeader, CommonModal$1 as CommonModal, CreatableSelector, CustomPagination, CustomSelector, CustomTabs as CustomTab, DATE_FORMAT, DATE_RESULT, DEFAULT_FILTER, Dashboard, DeleteButtonIcon, DetailActionButtons, EMOTIONS, EditButtonIcon, EmailTemplateDetail, EmailTemplateList, EmptyDataAlert, ErrorHandler, FULL_DATE_RESULT, FaqList, InputFile as FileInput, GOOGLE_RECAPTCHA_KEY, GalleryList, Images, LICENSE_AGGRID, LinkEditButton, Loading, Login, MediaList, NOTIFICATION_CHANNEL, NotFound, NotificationList, NotificationModal, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, QuestionCategorySelector, QuestionTypeSelector, QuitPrompt, ReactNotification, RequiredLabel$1 as RequiredLabel, SchoolList, ScrollToTop, SearchBox$1 as SearchBox, SearchBoxContainer, SkillList, StarRatingSelector, SuggestionCategorySelector, TAB_COLORS, TINY_MCE_API_KEY, TheContent$1 as TheContent, TheLayout, ToggleButton, UploadFileButton, UserDetail, UserList, addTab, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML,
|
|
7684
|
+
export { ACCESS_TOKEN, ANSWER_EDITOR_HEIGHT, AcademicClassSelector, AddButton, BASE_URL, CHAT_CHANNEL, CommonAlert, CommonHeader, CommonModal$1 as CommonModal, CreatableSelector, CustomPagination, CustomSelector, CustomTabs as CustomTab, DATE_FORMAT, DATE_RESULT, DEFAULT_FILTER, Dashboard, DeleteButtonIcon, DetailActionButtons, EMOTIONS, EditButtonIcon, EmailTemplateDetail, EmailTemplateList, EmptyDataAlert, ErrorHandler, FULL_DATE_RESULT, FaqList, InputFile as FileInput, GOOGLE_RECAPTCHA_KEY, GalleryList, Images, LICENSE_AGGRID, LinkEditButton, Loading, Login, MediaList, NOTIFICATION_CHANNEL, NotFound, NotificationList, NotificationModal, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, QuestionCategorySelector, QuestionTypeSelector, QuitPrompt, ReactNotification, RequiredLabel$1 as RequiredLabel, SchoolList, ScrollToTop, SearchBox$1 as SearchBox, SearchBoxContainer, SkillList, StarRatingSelector, SuggestionCategorySelector, TAB_COLORS, TINY_MCE_API_KEY, TheContent$1 as TheContent, TheLayout, ToggleButton, UploadFileButton, UserDetail, UserList, addTab, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, isInViewport, reset, setAlert, setAssessmentList, setAssignmentList, setAssistantList, setBadgeList, setBandScoreList, setCertificateList, setClassList, setConferenceRubricList, setCurrentStudentId, setCurrentStudentName, setCurrentStudentUserId, setCustomAlertList, setDataPlayer, setEditItemQuesion, setEnableIEP, setFeedbackList, setFilterWidget, setGoalExampleList, setImproveMyClass, setLearningSupportCategoryList, setLoading, setMailCategory, setModal, setMoveItemQuestion, setMyStudent, setQuestionByCategory, setQuestionCateList, setQuestionList, setReflectionList, setReflectionResultList, setResetQuestionList, setSchoolBlankDayList, setSelectQuestion, setSemesterList, setSessionPlayer, setSessionTemplateGeneralClassList, setSessionTemplateList, setStartTime, setStrategyList, setStudentIdSelectedByTeacher, setStudentList, setSubjectList, setSuggestionList, setTurnOffPassWhenChangeMode, setTutorialScreenList, setUser, setUserList, showFontSize, showMenuBar, store, systemCertificateUpload, systemStudentBadge, uploadFile, useFilters, useGalleryList, utcToLocalTime };
|
|
7697
7685
|
//# sourceMappingURL=index.modern.js.map
|