mario-core 2.10.4-beta → 2.10.4-release

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.
Files changed (96) hide show
  1. package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
  2. package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
  3. package/dist/components/Buttons/SyncButton.d.ts +8 -0
  4. package/dist/components/Inputs/PasswordInput.d.ts +1 -0
  5. package/dist/components/Labels/RequiredLabel.d.ts +1 -0
  6. package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
  7. package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
  8. package/dist/components/Selectors/constants/constant.d.ts +1 -1
  9. package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
  10. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  11. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  12. package/dist/containers/Login/constant/types.d.ts +34 -0
  13. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  14. package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
  15. package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
  16. package/dist/containers/Login/views/Dashboard.d.ts +2 -1
  17. package/dist/containers/Login/views/Login.d.ts +1 -0
  18. package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
  19. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  20. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  21. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
  22. package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
  23. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
  24. package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
  25. package/dist/containers/User/components/DeleteBulkModel copy.d.ts +4 -0
  26. package/dist/containers/User/components/DeleteBulkModel.d.ts +4 -0
  27. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  28. package/dist/containers/User/components/HeaderCell.d.ts +19 -0
  29. package/dist/containers/User/components/RemoveAssistant.d.ts +4 -0
  30. package/dist/containers/User/components/RemoveCounselor.d.ts +4 -0
  31. package/dist/containers/User/components/RemoveSupportTeacher.d.ts +4 -0
  32. package/dist/containers/User/components/RemoveTeacher.d.ts +4 -0
  33. package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
  34. package/dist/containers/User/components/SwitchTeacherModal.d.ts +3 -0
  35. package/dist/containers/User/components/TableHeader.d.ts +15 -0
  36. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  37. package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
  38. package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
  39. package/dist/containers/User/configs/userSchema.d.ts +0 -2
  40. package/dist/containers/User/configs/utils.d.ts +8 -0
  41. package/dist/containers/User/constants/constants.d.ts +62 -0
  42. package/dist/containers/User/constants/types.d.ts +257 -0
  43. package/dist/containers/User/hooks/useAssignStudent.d.ts +45 -0
  44. package/dist/containers/User/hooks/useAssignStudentList.d.ts +36 -0
  45. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  46. package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
  47. package/dist/containers/User/hooks/useCSVImportTab.d.ts +44 -0
  48. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  49. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  50. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  51. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  52. package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
  53. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  54. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  55. package/dist/containers/User/hooks/useTableHeader.d.ts +20 -0
  56. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  57. package/dist/containers/User/hooks/useUserDeletedList.d.ts +37 -0
  58. package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
  59. package/dist/containers/User/hooks/useUserDetail.d.ts +18 -0
  60. package/dist/containers/User/hooks/useUserList.d.ts +9 -3
  61. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  62. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  63. package/dist/containers/User/views/CSVImport.d.ts +3 -0
  64. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  65. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  66. package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
  67. package/dist/hooks/useLanguages.d.ts +10 -0
  68. package/dist/index.css +468 -77
  69. package/dist/index.d.ts +12 -6
  70. package/dist/index.js +48266 -4468
  71. package/dist/index.js.map +1 -1
  72. package/dist/index.modern.js +48282 -4497
  73. package/dist/index.modern.js.map +1 -1
  74. package/dist/layouts/TheHeader.d.ts +4 -1
  75. package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
  76. package/dist/redux/commons/action.d.ts +4 -0
  77. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  78. package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
  79. package/dist/rootReducer.d.ts +5 -0
  80. package/dist/services/accountService.d.ts +11 -2
  81. package/dist/services/csvImportService.d.ts +7 -0
  82. package/dist/services/csvService.d.ts +7 -0
  83. package/dist/services/emailTemplateService.d.ts +1 -0
  84. package/dist/services/schoolService.d.ts +2 -0
  85. package/dist/services/userService.d.ts +28 -1
  86. package/dist/types/Filter.d.ts +6 -0
  87. package/dist/types/Language.d.ts +8 -0
  88. package/dist/types/Payload.d.ts +1 -0
  89. package/dist/types/user.d.ts +3 -0
  90. package/dist/utils/constants.d.ts +10 -1
  91. package/dist/utils/getCookieValue.d.ts +2 -0
  92. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  93. package/package.json +9 -4
  94. package/dist/containers/Login/constant/type.d.ts +0 -5
  95. package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
  96. package/dist/utils/amplitude.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -10,18 +10,21 @@ import EmailTemplateDetail from "./containers/EmailTemplate/views/EmailTemplateD
10
10
  import FaqList from "./containers/Faq/views/FaqList";
11
11
  import SkillList from "./containers/Skill/views/SkillList";
12
12
  import UserList from "./containers/User/views/UserList";
13
+ import UserContainer from "./containers/User/views/UserContainer";
13
14
  import UserDetail from "./containers/User/views/UserDetail";
14
15
  import Loading from "./components/Loading/Loading";
15
16
  import ScrollToTop from "./components/Scroll/ScrollToTop";
16
17
  import NotificationModal from "./components/Modals/NotificationModal";
17
18
  import CommonHeader from "./components/Headers/CommonHeader";
18
19
  import CommonModal from "./components/Modals/CommonModal";
20
+ import NotificationLogoutModal from "./components/Modals/NotificationLogoutModal";
19
21
  import AddButton from "./components/Buttons/AddButton";
20
22
  import DeleteButtonIcon from "./components/Buttons/DeleteButtonIcon";
21
23
  import EditButtonIcon from "./components/Buttons/EditButtonIcon";
22
24
  import CustomPagination from "./components/Pagination/CustomPagination";
23
25
  import LinkEditButton from "./components/Buttons/LinkEditButton";
24
26
  import EmptyDataAlert from "./components/Alerts/EmptyDataAlert";
27
+ import SandboxAlert from "./components/Alerts/SandboxAlert";
25
28
  import CreatableSelector from "./components/Selectors/CreatableSelector";
26
29
  import SearchBox from "./components/Inputs/SearchBox";
27
30
  import QuestionTypeSelector from "./components/Selectors/QuestionTypeSelector";
@@ -48,11 +51,11 @@ import useGalleryList from "./containers/Gallery/hooks/useGalleryList";
48
51
  import QuitPrompt from "./components/Others/QuitPrompt";
49
52
  import AcademicClassSelector from "./components/Selectors/AcademicClassSelector";
50
53
  import SchoolList from "./containers/DistrictSchools/views/SchoolList";
51
- import { INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost } from "./utils/constants";
54
+ import { INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, IS_USER_SESSION_BROWSER } from "./utils/constants";
52
55
  import store from "./store";
53
56
  import { api, apiUpload } from "./services/api";
54
57
  import editorConfig from "./configs/editorConfig";
55
- 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";
58
+ 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, SANDBOX_NOTIFICATION, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE } from "./utils/constants";
56
59
  import firstCheckToken from "./utils/firstCheckToken";
57
60
  import canAccessRoute from "./utils/canAccessRoute";
58
61
  import { getInfo } from "./services/accountService";
@@ -61,6 +64,8 @@ import debounce from "./utils/debounce";
61
64
  import getFileUrl from "./utils/getFileUrl";
62
65
  import getTextFromHTML from "./utils/getTextFromHTML";
63
66
  import utcToLocalTime from "./utils/utcToLocalTime";
67
+ import getStaticFileUrl from "./utils/getStaticFileUrl";
68
+ import getCookieValue from "./utils/getCookieValue";
64
69
  import { uploadFile, systemStudentBadge, systemCertificateUpload } from "./services/fileServices";
65
70
  import { setLoading, setModal, setAlert, setUser, reset, setCurrentStudentId, setCurrentStudentUserId, setCurrentStudentName, setTurnOffPassWhenChangeMode, showMenuBar, showFontSize, initAmplitude } from "./redux/commons/action";
66
71
  import { setClassList } from "./redux/classes/action";
@@ -104,8 +109,9 @@ import { setDataPlayer, answerQuestionDataPlayer } from "./redux/dataPlayer/acti
104
109
  import { setFilterWidget } from "./redux/widget/action";
105
110
  import { setBandScoreList } from "./redux/bandScores/action";
106
111
  import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
107
- import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage } from "./redux/commons/action";
112
+ import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode, setEnableMarioAi } from "./redux/commons/action";
108
113
  import useFilters from "./hooks/useFilters";
109
- import amplitude from "amplitude-js";
110
- declare const amplitudeClient: amplitude.AmplitudeClient;
111
- 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, CategorySelector, 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_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost };
114
+ import * as amplitude from "@amplitude/analytics-browser";
115
+ import { setWeeklyQuestList, setOpenModelCongratulation } from "./redux/weeklyQuests/action";
116
+ declare const amplitudeClient: typeof amplitude;
117
+ export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, 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, setEnableMarioAi, setConversationOneToOne, setLanguage, setWeeklyQuestList, setOpenModelCongratulation, setSandboxMode, 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, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, 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_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl, IS_USER_SESSION_BROWSER, getCookieValue };