mario-core 2.9.9-beta → 2.9.10-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/components/Scroll/ScrollToTop.d.ts +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import SkillList from "./containers/Skill/views/SkillList";
|
|
|
10
10
|
import UserList from "./containers/User/views/UserList";
|
|
11
11
|
import UserDetail from "./containers/User/views/UserDetail";
|
|
12
12
|
import Loading from "./components/Loading/Loading";
|
|
13
|
+
import ScrollToTop from "./components/Scroll/ScrollToTop";
|
|
13
14
|
import NotificationModal from "./components/Modals/NotificationModal";
|
|
14
15
|
import CommonHeader from "./components/Headers/CommonHeader";
|
|
15
16
|
import CommonModal from "./components/Modals/CommonModal";
|
|
@@ -100,4 +101,4 @@ import { setFilterWidget } from "./redux/widget/action";
|
|
|
100
101
|
import { setBandScoreList } from "./redux/bandScores/action";
|
|
101
102
|
import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
|
|
102
103
|
import useFilters from "./hooks/useFilters";
|
|
103
|
-
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, 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 };
|
|
104
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -4874,6 +4874,16 @@ var UserDetail = function UserDetail() {
|
|
|
4874
4874
|
});
|
|
4875
4875
|
};
|
|
4876
4876
|
|
|
4877
|
+
var ScrollToTop = function ScrollToTop() {
|
|
4878
|
+
var _useLocation = reactRouterDom.useLocation(),
|
|
4879
|
+
pathname = _useLocation.pathname;
|
|
4880
|
+
|
|
4881
|
+
React.useEffect(function () {
|
|
4882
|
+
window.scrollTo(0, 0);
|
|
4883
|
+
}, [pathname]);
|
|
4884
|
+
return null;
|
|
4885
|
+
};
|
|
4886
|
+
|
|
4877
4887
|
var modalInfo = function modalInfo(type) {
|
|
4878
4888
|
switch (type) {
|
|
4879
4889
|
case "danger":
|
|
@@ -7716,6 +7726,7 @@ exports.QuitPrompt = QuitPrompt;
|
|
|
7716
7726
|
exports.ReactNotification = ReactNotification;
|
|
7717
7727
|
exports.RequiredLabel = RequiredLabel$1;
|
|
7718
7728
|
exports.SchoolList = SchoolList;
|
|
7729
|
+
exports.ScrollToTop = ScrollToTop;
|
|
7719
7730
|
exports.SearchBox = SearchBox$1;
|
|
7720
7731
|
exports.SearchBoxContainer = SearchBoxContainer;
|
|
7721
7732
|
exports.SkillList = SkillList;
|