mario-core 2.9.20-suffix → 2.9.23-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 -1
- package/dist/index.js +82 -78
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +82 -79
- package/dist/index.modern.js.map +1 -1
- package/package.json +97 -97
package/dist/index.d.ts
CHANGED
|
@@ -102,4 +102,5 @@ import { setBandScoreList } from "./redux/bandScores/action";
|
|
|
102
102
|
import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
|
|
103
103
|
import { setEnableIEP } from "./redux/commons/action";
|
|
104
104
|
import useFilters from "./hooks/useFilters";
|
|
105
|
-
|
|
105
|
+
declare const amplitudeCallInit: (userId: string) => void;
|
|
106
|
+
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, 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, amplitudeCallInit };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
2
2
|
|
|
3
3
|
require('bootstrap/dist/css/bootstrap.min.css');
|
|
4
|
+
var amplitude = _interopDefault(require('amplitude-js'));
|
|
4
5
|
var React = require('react');
|
|
5
6
|
var React__default = _interopDefault(React);
|
|
6
7
|
var reactstrap = require('reactstrap');
|
|
@@ -29,82 +30,6 @@ var ReactNotification$1 = _interopDefault(require('react-notifications-component
|
|
|
29
30
|
require('react-notifications-component/dist/theme.css');
|
|
30
31
|
var ai = require('react-icons/ai');
|
|
31
32
|
var moment = _interopDefault(require('moment'));
|
|
32
|
-
var amplitude = _interopDefault(require('amplitude-js'));
|
|
33
|
-
|
|
34
|
-
// A type of promise-like that resolves synchronously and supports only one observer
|
|
35
|
-
|
|
36
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
37
|
-
|
|
38
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
39
|
-
|
|
40
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
41
|
-
function _catch(body, recover) {
|
|
42
|
-
try {
|
|
43
|
-
var result = body();
|
|
44
|
-
} catch(e) {
|
|
45
|
-
return recover(e);
|
|
46
|
-
}
|
|
47
|
-
if (result && result.then) {
|
|
48
|
-
return result.then(void 0, recover);
|
|
49
|
-
}
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","login":"_F-hjL","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
54
|
-
|
|
55
|
-
var style = {
|
|
56
|
-
fontSize: "0.85rem"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var ErrorHandler = function ErrorHandler(_ref) {
|
|
60
|
-
var text = _ref.text;
|
|
61
|
-
return React__default.createElement("p", {
|
|
62
|
-
className: "text-danger",
|
|
63
|
-
style: style
|
|
64
|
-
}, text);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
var containerStyle = {
|
|
68
|
-
height: "40px",
|
|
69
|
-
backgroundColor: "#f7f9fc",
|
|
70
|
-
borderRadius: "4px",
|
|
71
|
-
marginBottom: "5px",
|
|
72
|
-
position: "relative"
|
|
73
|
-
};
|
|
74
|
-
var inputStyle = {
|
|
75
|
-
backgroundColor: "#f7f9fc",
|
|
76
|
-
paddingRight: "50px"
|
|
77
|
-
};
|
|
78
|
-
var eyeIconStyle = {
|
|
79
|
-
fontSize: "20px",
|
|
80
|
-
position: "absolute",
|
|
81
|
-
right: "10px"
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
var PasswordInput = function PasswordInput(_ref) {
|
|
85
|
-
var isShowPassword = _ref.isShowPassword,
|
|
86
|
-
togglePasswordVisible = _ref.togglePasswordVisible,
|
|
87
|
-
onChange = _ref.onChange;
|
|
88
|
-
return React__default.createElement("div", {
|
|
89
|
-
className: "d-flex align-items-center w-100",
|
|
90
|
-
style: containerStyle
|
|
91
|
-
}, React__default.createElement(reactstrap.Input, {
|
|
92
|
-
className: "border password-input",
|
|
93
|
-
style: inputStyle,
|
|
94
|
-
type: isShowPassword ? "text" : "password",
|
|
95
|
-
name: "password",
|
|
96
|
-
onChange: onChange,
|
|
97
|
-
placeholder: "Password",
|
|
98
|
-
required: true
|
|
99
|
-
}), React__default.createElement("i", {
|
|
100
|
-
className: "far " + (isShowPassword ? "fa-eye-slash" : "fa-eye") + " mx-2 cursor-pointer",
|
|
101
|
-
style: eyeIconStyle,
|
|
102
|
-
onClick: function onClick() {
|
|
103
|
-
return togglePasswordVisible();
|
|
104
|
-
},
|
|
105
|
-
title: isShowPassword ? "Hide" : "Show"
|
|
106
|
-
}));
|
|
107
|
-
};
|
|
108
33
|
|
|
109
34
|
var TINY_MCE_API_KEY = "adpshj9swgsscf83gw4gs2f74nx0vicpd5ydka20iqjd7l8r";
|
|
110
35
|
var GOOGLE_RECAPTCHA_KEY = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0";
|
|
@@ -228,6 +153,81 @@ var ROLES = {
|
|
|
228
153
|
PARENT: "Parent"
|
|
229
154
|
};
|
|
230
155
|
|
|
156
|
+
// A type of promise-like that resolves synchronously and supports only one observer
|
|
157
|
+
|
|
158
|
+
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
159
|
+
|
|
160
|
+
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
161
|
+
|
|
162
|
+
// Asynchronously call a function and send errors to recovery continuation
|
|
163
|
+
function _catch(body, recover) {
|
|
164
|
+
try {
|
|
165
|
+
var result = body();
|
|
166
|
+
} catch(e) {
|
|
167
|
+
return recover(e);
|
|
168
|
+
}
|
|
169
|
+
if (result && result.then) {
|
|
170
|
+
return result.then(void 0, recover);
|
|
171
|
+
}
|
|
172
|
+
return result;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","login":"_F-hjL","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
176
|
+
|
|
177
|
+
var style = {
|
|
178
|
+
fontSize: "0.85rem"
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
var ErrorHandler = function ErrorHandler(_ref) {
|
|
182
|
+
var text = _ref.text;
|
|
183
|
+
return React__default.createElement("p", {
|
|
184
|
+
className: "text-danger",
|
|
185
|
+
style: style
|
|
186
|
+
}, text);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
var containerStyle = {
|
|
190
|
+
height: "40px",
|
|
191
|
+
backgroundColor: "#f7f9fc",
|
|
192
|
+
borderRadius: "4px",
|
|
193
|
+
marginBottom: "5px",
|
|
194
|
+
position: "relative"
|
|
195
|
+
};
|
|
196
|
+
var inputStyle = {
|
|
197
|
+
backgroundColor: "#f7f9fc",
|
|
198
|
+
paddingRight: "50px"
|
|
199
|
+
};
|
|
200
|
+
var eyeIconStyle = {
|
|
201
|
+
fontSize: "20px",
|
|
202
|
+
position: "absolute",
|
|
203
|
+
right: "10px"
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
var PasswordInput = function PasswordInput(_ref) {
|
|
207
|
+
var isShowPassword = _ref.isShowPassword,
|
|
208
|
+
togglePasswordVisible = _ref.togglePasswordVisible,
|
|
209
|
+
onChange = _ref.onChange;
|
|
210
|
+
return React__default.createElement("div", {
|
|
211
|
+
className: "d-flex align-items-center w-100",
|
|
212
|
+
style: containerStyle
|
|
213
|
+
}, React__default.createElement(reactstrap.Input, {
|
|
214
|
+
className: "border password-input",
|
|
215
|
+
style: inputStyle,
|
|
216
|
+
type: isShowPassword ? "text" : "password",
|
|
217
|
+
name: "password",
|
|
218
|
+
onChange: onChange,
|
|
219
|
+
placeholder: "Password",
|
|
220
|
+
required: true
|
|
221
|
+
}), React__default.createElement("i", {
|
|
222
|
+
className: "far " + (isShowPassword ? "fa-eye-slash" : "fa-eye") + " mx-2 cursor-pointer",
|
|
223
|
+
style: eyeIconStyle,
|
|
224
|
+
onClick: function onClick() {
|
|
225
|
+
return togglePasswordVisible();
|
|
226
|
+
},
|
|
227
|
+
title: isShowPassword ? "Hide" : "Show"
|
|
228
|
+
}));
|
|
229
|
+
};
|
|
230
|
+
|
|
231
231
|
var getAccessToken = (function () {
|
|
232
232
|
try {
|
|
233
233
|
return localStorage.getItem(ACCESS_TOKEN);
|
|
@@ -396,7 +396,7 @@ var useLogin = function useLogin() {
|
|
|
396
396
|
document.title = TITLE;
|
|
397
397
|
var token = getAccessToken();
|
|
398
398
|
if (!!token) history.push("/");
|
|
399
|
-
getInfoGoogle();
|
|
399
|
+
!!googleClientId && getInfoGoogle();
|
|
400
400
|
}, []);
|
|
401
401
|
var isDistrict = window.location.host.includes("-district");
|
|
402
402
|
var userLogin = React.useCallback(function (data) {
|
|
@@ -7134,7 +7134,6 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
|
7134
7134
|
}).addCase(initAmplitude, function (_state, action) {
|
|
7135
7135
|
var _action$payload, _action$payload2, _action$payload3, _action$payload4, _action$payload5, _action$payload6, _action$payload7;
|
|
7136
7136
|
|
|
7137
|
-
amplitude.getInstance().init(INIT_AMPLITUDE_KEY, action.payload.name);
|
|
7138
7137
|
var eventProperties = {
|
|
7139
7138
|
user_id: action.payload.name,
|
|
7140
7139
|
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 : "",
|
|
@@ -8055,6 +8054,10 @@ var generateRandomString = (function () {
|
|
|
8055
8054
|
return (Math.random() + 1).toString(36).substring(7);
|
|
8056
8055
|
});
|
|
8057
8056
|
|
|
8057
|
+
var amplitudeCallInit = function amplitudeCallInit(userId) {
|
|
8058
|
+
return amplitude.getInstance().init(INIT_AMPLITUDE_KEY, userId);
|
|
8059
|
+
};
|
|
8060
|
+
|
|
8058
8061
|
exports.ACCESS_TOKEN = ACCESS_TOKEN;
|
|
8059
8062
|
exports.ANSWER_EDITOR_HEIGHT = ANSWER_EDITOR_HEIGHT;
|
|
8060
8063
|
exports.AcademicClassSelector = AcademicClassSelector;
|
|
@@ -8118,6 +8121,7 @@ exports.UploadFileButton = UploadFileButton;
|
|
|
8118
8121
|
exports.UserDetail = UserDetail;
|
|
8119
8122
|
exports.UserList = UserList;
|
|
8120
8123
|
exports.addTab = addTab;
|
|
8124
|
+
exports.amplitudeCallInit = amplitudeCallInit;
|
|
8121
8125
|
exports.answerQuestion = answerQuestion;
|
|
8122
8126
|
exports.answerQuestionDataPlayer = answerQuestionDataPlayer;
|
|
8123
8127
|
exports.api = api;
|