touchstudy-core 0.1.120 → 0.1.121

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 (54) hide show
  1. package/README.md +46 -46
  2. package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
  3. package/dist/components/CkEditor/CkEditor.d.ts +11 -2
  4. package/dist/components/MathJax/MathJaxContainer.d.ts +6 -0
  5. package/dist/components/MathJax/index.d.ts +2 -0
  6. package/dist/components/Selectors/InActiveAcademySelector.d.ts +16 -0
  7. package/dist/components/index.d.ts +2 -1
  8. package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +10 -0
  9. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +3 -2
  10. package/dist/containers/ExamResult/configs/types.d.ts +3 -0
  11. package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +1 -0
  12. package/dist/containers/PreparedTextbook/configs/constants.d.ts +3 -1
  13. package/dist/index.css +12 -9
  14. package/dist/index.d.ts +3 -1
  15. package/dist/index.js +2104 -1993
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +2100 -2000
  18. package/dist/index.modern.js.map +1 -1
  19. package/dist/tests/performances/do-exam-session-list-student.d.ts +19 -0
  20. package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +19 -0
  21. package/dist/tests/performances/do-exam-session-skip-answer.d.ts +19 -0
  22. package/dist/tests/performances/do-exam-session2.d.ts +19 -0
  23. package/dist/utils/enums/examStatus.d.ts +4 -0
  24. package/dist/utils/enums/index.d.ts +2 -2
  25. package/dist/utils/types/examResults.d.ts +2 -0
  26. package/dist/utils/types/exams.d.ts +3 -0
  27. package/package.json +102 -101
  28. package/dist/components/List/List.d.ts +0 -7
  29. package/dist/containers/ExamResult/components/Dialog/CreateNewQuestion2.d.ts +0 -9
  30. package/dist/containers/ExamResult/components/Notes/components/ActionItem.d.ts +0 -7
  31. package/dist/containers/ExamResult/components/Notes/components/ActionsTooltip.d.ts +0 -14
  32. package/dist/containers/ExamResult/components/Notes/components/ContentTooltip.d.ts +0 -14
  33. package/dist/containers/ExamResult/components/Notes/components/NewNoteButton.d.ts +0 -6
  34. package/dist/containers/ExamResult/components/Notes/components/NoteItem.d.ts +0 -9
  35. package/dist/containers/ExamResult/components/Notes/components/NoteList.d.ts +0 -12
  36. package/dist/containers/ExamResult/components/Notes/configs/constants.d.ts +0 -2
  37. package/dist/containers/ExamResult/components/Notes/configs/interfaces.d.ts +0 -4
  38. package/dist/containers/ExamResult/components/Notes/hooks/useNotes.d.ts +0 -8
  39. package/dist/containers/ExamResult/components/Notes/styles/styles.d.ts +0 -67
  40. package/dist/containers/ExamResult/components/StudentNotes/components/ActionItem.d.ts +0 -7
  41. package/dist/containers/ExamResult/components/StudentNotes/components/ActionsTooltip.d.ts +0 -14
  42. package/dist/containers/ExamResult/components/StudentNotes/components/NewNoteButton.d.ts +0 -6
  43. package/dist/containers/ExamResult/components/StudentNotes/components/NoteItem.d.ts +0 -9
  44. package/dist/containers/ExamResult/components/StudentNotes/configs/constants.d.ts +0 -2
  45. package/dist/containers/ExamResult/components/StudentNotes/configs/interfaces.d.ts +0 -7
  46. package/dist/containers/ExamResult/components/StudentNotes/hooks/useStudentNotes.d.ts +0 -12
  47. package/dist/containers/ExamResult/components/StudentNotes/index.d.ts +0 -4
  48. package/dist/containers/ExamResult/components/StudentNotes/styles/styles.d.ts +0 -67
  49. package/dist/containers/ExamResult/hooks/useExamNoteDialog.d.ts +0 -18
  50. package/dist/containers/Login/views/LoginQRCode.d.ts +0 -10
  51. package/dist/containers/Notes/components/ActionItem.d.ts +0 -7
  52. package/dist/containers/Notes/components/ActionsTooltip.d.ts +0 -16
  53. package/dist/containers/Notes/components/NoteDialog.d.ts +0 -4
  54. package/dist/containers/Textbooks/components/TextbookShareDialog.d.ts +0 -26
package/README.md CHANGED
@@ -1,46 +1,46 @@
1
- # Getting Started with Create React App
2
-
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
-
5
- ## Available Scripts
6
-
7
- In the project directory, you can run:
8
-
9
- ### `npm start`
10
-
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
-
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
16
-
17
- ### `npm test`
18
-
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
- ### `npm run build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `npm run eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+
14
+ The page will reload if you make edits.\
15
+ You will also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
+
36
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
+
40
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
@@ -1,10 +1,19 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  interface Props {
3
3
  ref?: any;
4
4
  value: string;
5
5
  onChange: any;
6
6
  option?: any;
7
+ onBlur?: any;
8
+ onFocus?: any;
9
+ onAfterInsertHtml?: any;
10
+ onInsertElement?: any;
11
+ onInsertHtml?: any;
12
+ onInsertText?: any;
13
+ onDataReady?: any;
14
+ onSelectionChange?: any;
15
+ action?: any;
7
16
  disabled: boolean;
8
17
  }
9
- declare const CkEditor: ({ ref, value, onChange, option, disabled }: Props) => React.JSX.Element;
18
+ declare const CkEditor: ({ ref, value, option, onBlur, onFocus, onChange, onAfterInsertHtml, onInsertElement, onInsertHtml, onInsertText, onDataReady, onSelectionChange, disabled, ...action }: Props) => React.JSX.Element;
10
19
  export default CkEditor;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare type Props = {
3
+ content: string;
4
+ };
5
+ declare const MathJaxContainer: ({ content }: Props) => React.JSX.Element;
6
+ export default MathJaxContainer;
@@ -0,0 +1,2 @@
1
+ import MathJaxContainer from "./MathJaxContainer";
2
+ export { MathJaxContainer };
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ import { Role } from "../../utils/constants";
3
+ interface Props {
4
+ value?: any;
5
+ onChange: any;
6
+ externalAcademyIds?: number[];
7
+ title?: string;
8
+ isMulti?: boolean;
9
+ minimumTextSearchLength?: number;
10
+ isDisabled?: boolean;
11
+ defaultValueAtFirst?: boolean;
12
+ placeholder?: string;
13
+ role: Role;
14
+ }
15
+ declare const InActiveAcademySelector: FC<Props>;
16
+ export default InActiveAcademySelector;
@@ -2,6 +2,7 @@ import { DateCalendar, DatePicker, DayCalendarSkeleton, LocalizationProvider, Pi
2
2
  import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
3
3
  import { DemoContainer } from "@mui/x-date-pickers/internals/demo";
4
4
  import PrintExamView2 from "./Print/PrintExamView2";
5
+ import { MathJaxContainer } from "./MathJax";
5
6
  export * from "./Alerts";
6
7
  export * from "./Buttons";
7
8
  export * from "./Commons";
@@ -15,4 +16,4 @@ export * from "./Chats";
15
16
  export * from "./CkEditor";
16
17
  export * from "./List";
17
18
  export * from "./Tables";
18
- export { AdapterMoment, DateCalendar, DayCalendarSkeleton, DemoContainer, LocalizationProvider, PickersDay, DatePicker, TimePicker, PrintExamView2 };
19
+ export { AdapterMoment, DateCalendar, MathJaxContainer, DayCalendarSkeleton, DemoContainer, LocalizationProvider, PickersDay, DatePicker, TimePicker, PrintExamView2 };
@@ -0,0 +1,10 @@
1
+ declare const usePassCodeDialog: () => {
2
+ isStudent: any;
3
+ isOpenDialog: boolean;
4
+ handleOpenDialog: () => void;
5
+ handleCloseDialog: () => void;
6
+ handleSubmit: () => Promise<void>;
7
+ textCodeValue: string;
8
+ handleChangeText: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ };
10
+ export default usePassCodeDialog;
@@ -4,11 +4,12 @@ declare type Props = {
4
4
  toggleCreateQuestion: () => void;
5
5
  handleCreateQuestion: any;
6
6
  questionOrderSelected?: number;
7
- examSessionId: number;
7
+ examSessionId?: number;
8
+ textbookSessionId?: number;
8
9
  questionOptions: {
9
10
  label: string;
10
11
  value: number;
11
12
  }[];
12
13
  };
13
- export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId, questionOrderSelected, questionOptions }: Props): React.JSX.Element;
14
+ export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId, textbookSessionId, questionOrderSelected, questionOptions }: Props): React.JSX.Element;
14
15
  export {};
@@ -1,3 +1,4 @@
1
+ import { QuestionAnswerType } from './../../../utils/enums/examStatus';
1
2
  import { CategoryResponse } from "../../../utils/types/examResults";
2
3
  export interface CategoryFormat extends CategoryResponse {
3
4
  totalSolveTime: number;
@@ -12,6 +13,7 @@ export declare type EffectSize = {
12
13
  answerResponseSignal: number | null;
13
14
  problemCategories: number[];
14
15
  mostSelectedAnswers: string;
16
+ questionAnswerType?: QuestionAnswerType;
15
17
  };
16
18
  export declare type OrderQuestion = {
17
19
  questionId: number;
@@ -62,6 +64,7 @@ export declare type StudentQuestionResult = {
62
64
  answerTime: string;
63
65
  article: number;
64
66
  score: number;
67
+ questionAnswerType: QuestionAnswerType;
65
68
  categories: Category[];
66
69
  overallCorrectRate: number;
67
70
  questionOrder: number;
@@ -0,0 +1 @@
1
+ export declare const getAcademiesApi: (textSearch: string, isAdmin: boolean) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,4 +1,4 @@
1
- import { Exam } from "../../../utils";
1
+ import { Exam, QuestionAnswerType } from "../../../utils";
2
2
  import { HeaderTable, TextbookQuery } from "./types";
3
3
  export declare const TEXTBOOK_HEADERS: HeaderTable[];
4
4
  export declare const DefaultTextbookFilter: TextbookQuery;
@@ -17,6 +17,8 @@ export declare const DefaultQuestion: {
17
17
  author: string;
18
18
  subjectId: null;
19
19
  preparedType: null;
20
+ questionAnswerType: QuestionAnswerType;
21
+ textualAnswer: string;
20
22
  };
21
23
  export declare const DefaultArticle: {
22
24
  answerCount: number;
package/dist/index.css CHANGED
@@ -5,6 +5,9 @@
5
5
  font-family: "Roboto" !important;
6
6
  font-weight: 700; }
7
7
 
8
+ #_3Pfdk mjx-assistive-mml {
9
+ display: none !important; }
10
+
8
11
  ._wWIyO {
9
12
  border: 1px solid #eceae9;
10
13
  padding: 60px;
@@ -350,7 +353,7 @@
350
353
  background-clip: padding-box;
351
354
  border: 1px solid #dee2e6;
352
355
  border-radius: 0.375rem;
353
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
356
+ transition: border-color 0.15s ease-in-out,
354
357
  box-shadow 0.15s ease-in-out; }
355
358
 
356
359
  ._2PWdX {
357
360
  display: inline-block;
@@ -369,7 +372,7 @@
369
372
  border: 1px solid #0d6efd;
370
373
  border-radius: 0.375rem;
371
374
  background-color: transparent;
372
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
375
+ transition: color 0.15s ease-in-out,
373
376
  background-color 0.15s ease-in-out,
374
377
  border-color 0.15s ease-in-out,
375
378
  box-shadow 0.15s ease-in-out; }
376
379
  ._2PWdX:hover {
377
380
  color: #fff !important;
378
381
  background-color: #0d6efd;
@@ -403,7 +406,7 @@
403
406
  background-size: 10px 7px;
404
407
  border: 1px solid #dee2e6;
405
408
  border-radius: 0.375rem;
406
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
409
+ transition: border-color 0.15s ease-in-out,
407
410
  box-shadow 0.15s ease-in-out; }
408
411
 
409
412
  ._3NJzN {
410
413
  overflow: hidden;
@@ -1807,7 +1810,7 @@ h3 {
1807
1810
  ._24wBH, ._2LXBj {
1808
1811
  background-color: var(--docusaurus-collapse-button-bg); }
1809
1812
  :root {
1810
- --docusaurus-announcement-bar-height: 30px
1813
+ --docusaurus-announcement-bar-height: 30px
1811
1814
  ; }
1812
1815
  ._32uEE, ._2PagL {
1813
1816
  flex-basis: 50px; }
@@ -1912,7 +1915,7 @@ h3 {
1912
1915
  flex-basis: var(--ifm-col-width);
1913
1916
  margin-left: 0; }
1914
1917
  ._gceZJ {
1915
- --ifm-footer-padding-horizontal: 0
1918
+ --ifm-footer-padding-horizontal: 0
1916
1919
  ; }
1917
1920
  ._OawS_, ._3fzLh, ._1wyV6, ._3tGM4 {
1918
1921
  display: none; }
@@ -1959,13 +1962,13 @@ h3 {
1959
1962
 
1960
1963
  @media (max-width: 576px) {
1961
1964
  ._2xZt0 h1:first-child {
1962
- --ifm-h1-font-size:2rem
1965
+ --ifm-h1-font-size:2rem
1963
1966
  ; }
1964
1967
  ._2xZt0 > h2 {
1965
- --ifm-h2-font-size: 1.5rem
1968
+ --ifm-h2-font-size: 1.5rem
1966
1969
  ; }
1967
1970
  ._2xZt0 > h3 {
1968
- --ifm-h3-font-size: 1.25rem
1971
+ --ifm-h3-font-size: 1.25rem
1969
1972
  ; } }
1970
1973
 
1971
1974
  @media (hover: hover) {
@@ -1990,7 +1993,7 @@ h3 {
1990
1993
  @media (prefers-reduced-motion: reduce) {
1991
1994
  :root {
1992
1995
  --ifm-transition-fast: 0ms;
1993
- --ifm-transition-slow: 0ms
1996
+ --ifm-transition-slow: 0ms
1994
1997
  ; } }
1995
1998
 
1996
1999
  @media print {
package/dist/index.d.ts CHANGED
@@ -2,6 +2,8 @@ import { ToastContainer } from "react-toastify";
2
2
  import store from "./store";
3
3
  import i18n from "./i18n";
4
4
  import { I18nextProvider } from "react-i18next";
5
+ import { MathJaxContext, MathJax } from "better-react-mathjax";
6
+ import { MathJaxContainer } from "./components";
5
7
  export * from "./configs/api";
6
8
  export * from "./utils";
7
9
  export * from "./components";
@@ -9,4 +11,4 @@ export * from "./containers";
9
11
  export * from "./layouts";
10
12
  export * from "./redux";
11
13
  export * from "./services";
12
- export { store, ToastContainer, i18n, I18nextProvider };
14
+ export { store, MathJax, MathJaxContainer, MathJaxContext, ToastContainer, i18n, I18nextProvider };