touchstudy-core 0.1.127 → 0.1.129

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 (124) hide show
  1. package/dist/.DS_Store +0 -0
  2. package/dist/components/.DS_Store +0 -0
  3. package/dist/components/Buttons/index.d.ts +2 -1
  4. package/dist/components/Dialogs/ConfirmDialog.d.ts +2 -2
  5. package/dist/components/Selectors/ArticleCategorySelector.d.ts +1 -0
  6. package/dist/components/Selectors/QuestionCountSelector.d.ts +1 -0
  7. package/dist/components/Selects/CustomSelect.d.ts +1 -1
  8. package/dist/components/Selects/theme/styles.d.ts +1 -0
  9. package/dist/components/TinyMCE/MathTinyEditor.d.ts +13 -0
  10. package/dist/components/TinyMCE/TinyEditor.d.ts +11 -0
  11. package/dist/components/TinyMCE/index.d.ts +3 -0
  12. package/dist/components/index.d.ts +1 -1
  13. package/dist/containers/.DS_Store +0 -0
  14. package/dist/containers/Exams/components/ArticleGroupView.d.ts +3 -1
  15. package/dist/containers/Exams/components/QuestionView.d.ts +4 -1
  16. package/dist/containers/Exams/hooks/useExamDetailView.d.ts +3 -1
  17. package/dist/containers/Notes/index.d.ts +2 -1
  18. package/dist/containers/PreparedTextbook/apiClients/categoryService.d.ts +4 -3
  19. package/dist/containers/PreparedTextbook/apiClients/questionTypeService.d.ts +2 -0
  20. package/dist/containers/PreparedTextbook/components/Article.d.ts +3 -2
  21. package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +18 -0
  22. package/dist/containers/PreparedTextbook/components/ChapterBlock.d.ts +26 -0
  23. package/dist/containers/PreparedTextbook/components/ChapterBlockBody.d.ts +24 -0
  24. package/dist/containers/PreparedTextbook/components/CustomTextbookTab.d.ts +7 -0
  25. package/dist/containers/PreparedTextbook/components/OwnerSelector.d.ts +2 -2
  26. package/dist/containers/PreparedTextbook/components/PreparedTextbookForm.d.ts +13 -0
  27. package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +19 -0
  28. package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +28 -0
  29. package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +22 -0
  30. package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +10 -0
  31. package/dist/containers/PreparedTextbook/components/TextbookContentsTab.d.ts +7 -0
  32. package/dist/containers/PreparedTextbook/components/TextbookInfoTab.d.ts +11 -0
  33. package/dist/containers/PreparedTextbook/components/TextbookOwnersTab.d.ts +7 -0
  34. package/dist/containers/PreparedTextbook/configs/constants.d.ts +57 -1
  35. package/dist/containers/PreparedTextbook/configs/enums.d.ts +16 -0
  36. package/dist/containers/PreparedTextbook/configs/functions.d.ts +3 -0
  37. package/dist/containers/PreparedTextbook/configs/interfaces.d.ts +6 -0
  38. package/dist/containers/PreparedTextbook/configs/types.d.ts +97 -19
  39. package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +3 -1
  40. package/dist/containers/PreparedTextbook/hooks/useSelect.d.ts +3 -2
  41. package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +8 -3
  42. package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +15 -0
  43. package/dist/containers/PreparedTextbook/index.d.ts +2 -2
  44. package/dist/containers/PreparedTextbook/views/PreparedTextbookView.d.ts +4 -0
  45. package/dist/containers/Textbooks/configs/types.d.ts +2 -1
  46. package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +2 -2
  47. package/dist/index.css +444 -415
  48. package/dist/index.js +3503 -1766
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.modern.js +3492 -1755
  51. package/dist/index.modern.js.map +1 -1
  52. package/dist/redux/.DS_Store +0 -0
  53. package/dist/redux/academies/reducer.d.ts +8 -2
  54. package/dist/redux/commons/reducer.d.ts +3 -1
  55. package/dist/theme/index.d.ts +2 -1
  56. package/dist/utils/.DS_Store +0 -0
  57. package/dist/utils/index.d.ts +2 -1
  58. package/dist/utils/types/exams.d.ts +5 -1
  59. package/package.json +4 -3
  60. package/dist/components/Chats/ChatHeader.d.ts +0 -25
  61. package/dist/components/Chats/ChatItem.d.ts +0 -31
  62. package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
  63. package/dist/components/Chats/ChatList.d.ts +0 -14
  64. package/dist/components/Chats/ChatRightItem.d.ts +0 -4
  65. package/dist/components/Chats/InputChat.d.ts +0 -16
  66. package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
  67. package/dist/components/CkEditor/CkEditor.d.ts +0 -19
  68. package/dist/components/CkEditor/config.d.ts +0 -19
  69. package/dist/components/CkEditor/index.d.ts +0 -2
  70. package/dist/components/ErrorHandler.d.ts +0 -6
  71. package/dist/components/LabelRequired.d.ts +0 -8
  72. package/dist/components/List/List.d.ts +0 -7
  73. package/dist/containers/ExamResult/components/Dialog/CreateNewQuestion2.d.ts +0 -9
  74. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -14
  75. package/dist/containers/ExamResult/components/Notes/components/ActionItem.d.ts +0 -7
  76. package/dist/containers/ExamResult/components/Notes/components/ActionsTooltip.d.ts +0 -14
  77. package/dist/containers/ExamResult/components/Notes/components/ContentTooltip.d.ts +0 -14
  78. package/dist/containers/ExamResult/components/Notes/components/NewNoteButton.d.ts +0 -6
  79. package/dist/containers/ExamResult/components/Notes/components/NoteItem.d.ts +0 -9
  80. package/dist/containers/ExamResult/components/Notes/components/NoteList.d.ts +0 -12
  81. package/dist/containers/ExamResult/components/Notes/configs/constants.d.ts +0 -2
  82. package/dist/containers/ExamResult/components/Notes/configs/interfaces.d.ts +0 -4
  83. package/dist/containers/ExamResult/components/Notes/hooks/useNotes.d.ts +0 -8
  84. package/dist/containers/ExamResult/components/Notes/styles/styles.d.ts +0 -67
  85. package/dist/containers/ExamResult/components/StudentNotes/components/ActionItem.d.ts +0 -7
  86. package/dist/containers/ExamResult/components/StudentNotes/components/ActionsTooltip.d.ts +0 -14
  87. package/dist/containers/ExamResult/components/StudentNotes/components/NewNoteButton.d.ts +0 -6
  88. package/dist/containers/ExamResult/components/StudentNotes/components/NoteItem.d.ts +0 -9
  89. package/dist/containers/ExamResult/components/StudentNotes/configs/constants.d.ts +0 -2
  90. package/dist/containers/ExamResult/components/StudentNotes/configs/interfaces.d.ts +0 -7
  91. package/dist/containers/ExamResult/components/StudentNotes/hooks/useStudentNotes.d.ts +0 -12
  92. package/dist/containers/ExamResult/components/StudentNotes/index.d.ts +0 -4
  93. package/dist/containers/ExamResult/components/StudentNotes/styles/styles.d.ts +0 -67
  94. package/dist/containers/ExamResult/hooks/useExamNoteDialog.d.ts +0 -18
  95. package/dist/containers/Exams/configs/types.d.ts +0 -22
  96. package/dist/containers/Login/views/LoginQRCode.d.ts +0 -10
  97. package/dist/containers/Notes/components/ActionItem.d.ts +0 -7
  98. package/dist/containers/Notes/components/ActionsTooltip.d.ts +0 -16
  99. package/dist/containers/Notes/components/NoteDialog.d.ts +0 -4
  100. package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +0 -13
  101. package/dist/containers/Textbooks/components/TextbookShareDialog.d.ts +0 -26
  102. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
  103. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
  104. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
  105. package/dist/utils/canAccessRoute.d.ts +0 -2
  106. package/dist/utils/diffFromNow.d.ts +0 -3
  107. package/dist/utils/encodeParams.d.ts +0 -2
  108. package/dist/utils/formatTime.d.ts +0 -4
  109. package/dist/utils/getAcademyDomain.d.ts +0 -2
  110. package/dist/utils/getAccessToken.d.ts +0 -2
  111. package/dist/utils/getErrorMessage.d.ts +0 -1
  112. package/dist/utils/getLanguage.d.ts +0 -2
  113. package/dist/utils/getLearningSpace.d.ts +0 -2
  114. package/dist/utils/getRedirectUrl.d.ts +0 -2
  115. package/dist/utils/helpers.d.ts +0 -22
  116. package/dist/utils/isLocalHost.d.ts +0 -2
  117. package/dist/utils/minutesToTimeSpan.d.ts +0 -2
  118. package/dist/utils/pusherTo.d.ts +0 -1
  119. package/dist/utils/times.d.ts +0 -6
  120. package/dist/utils/toISOString.d.ts +0 -2
  121. package/dist/utils/toLocalTime.d.ts +0 -1
  122. package/dist/utils/types/checkSuperUrl.d.ts +0 -1
  123. package/dist/utils/types.d.ts +0 -9
  124. package/dist/utils/utcToLocalTime.d.ts +0 -2
@@ -1,10 +0,0 @@
1
- import { FC } from "react";
2
- export declare type LoginQRCodeProps = {
3
- history: any;
4
- homeAcademyUrl: string;
5
- homeUrl: string;
6
- registerUrl?: string;
7
- domain: string;
8
- };
9
- declare const LoginQRCode: FC<LoginQRCodeProps>;
10
- export default LoginQRCode;
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- import { Action } from "./ActionsTooltip";
3
- interface Props extends Action {
4
- isLast?: boolean;
5
- }
6
- declare const ActionItem: FC<Props>;
7
- export default ActionItem;
@@ -1,16 +0,0 @@
1
- import { FC, MouseEvent } from "react";
2
- import { SxProps, Theme } from "@mui/material";
3
- export declare type Action = {
4
- label: string;
5
- startIcon?: JSX.Element;
6
- endIcon?: JSX.Element;
7
- style?: SxProps<Theme>;
8
- textStyle?: SxProps<Theme>;
9
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
10
- };
11
- declare type Props = {
12
- actions: Action[];
13
- style?: SxProps<Theme>;
14
- };
15
- declare const ActionsTooltip: FC<Props>;
16
- export default ActionsTooltip;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- import { NoteDialogProps } from "../configs/interfaces";
3
- declare const NoteDialog: FC<NoteDialogProps>;
4
- export default NoteDialog;
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import { Theme } from "@mui/material";
3
- import { TextbookOwner } from "../configs/types";
4
- declare type Props = {
5
- t: any;
6
- theme: Theme;
7
- onChangeFieldValue: any;
8
- textbookOwners?: TextbookOwner[];
9
- errors: any;
10
- values: any;
11
- };
12
- declare const TextbookOwners: ({ t, errors, values, onChangeFieldValue, textbookOwners }: Props) => React.JSX.Element;
13
- export default TextbookOwners;
@@ -1,26 +0,0 @@
1
- import React, { FC } from "react";
2
- import { TeacherSimpleResponse } from "../configs/types";
3
- import { SearchQuery } from "../../../utils/types/searchQuery";
4
- import { PagingResponse } from "../../../utils/types/pagingResponse";
5
- interface Props {
6
- open: boolean;
7
- selectedShare: number[];
8
- textSearchShareRef: React.RefObject<HTMLInputElement>;
9
- handleChangeSearchTextShare: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
- numSelectedShare: number;
11
- isCheckAllShare: (teachers: TeacherSimpleResponse[], userLength: number) => boolean;
12
- handleSelectAllClickShare: (event: React.ChangeEvent<HTMLInputElement>) => void;
13
- teachers: TeacherSimpleResponse[];
14
- handleSortShare: (sortColumnName: string) => void;
15
- filterShare: SearchQuery;
16
- pagingShare: PagingResponse;
17
- handleChangePageShare: (_: any, page: number) => void;
18
- handleShareTextbook: (teacherIds: number[], textbookId: number) => Promise<void>;
19
- isSelectedShare: (id: number) => boolean;
20
- handleCloseShareDialog: () => void;
21
- handleClickCheckboxShare: (id: number) => void;
22
- selectedTeacher: TeacherSimpleResponse | undefined;
23
- currentTextbookId: number;
24
- }
25
- export declare const ShareTextbookDialog: FC<Props>;
26
- export {};
@@ -1,10 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- open: boolean;
4
- file?: File;
5
- onChangeFile: (file?: File) => void;
6
- onClose: () => void;
7
- onSubmit: () => Promise<boolean>;
8
- }
9
- declare const DeleteUserCsvDialog: FC<Props>;
10
- export default DeleteUserCsvDialog;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- import { Types } from "../../../..";
3
- interface Props {
4
- open: boolean;
5
- onClose: () => void;
6
- recentUserActions?: Types.RecentUserActionResponse[];
7
- }
8
- declare const RecentUserActionDialog: FC<Props>;
9
- export default RecentUserActionDialog;
@@ -1,12 +0,0 @@
1
- import { FC } from "react";
2
- import { UserForm } from "../../configs/types";
3
- import { User } from "../../../../utils/types/users";
4
- interface Props {
5
- open: boolean;
6
- data?: User;
7
- disabled?: boolean;
8
- onClose: () => void;
9
- onSubmitForm: (data: UserForm) => void;
10
- }
11
- declare const UserDialog: FC<Props>;
12
- export default UserDialog;
@@ -1,2 +0,0 @@
1
- declare const canAccess: (userRoles: any[], componentRoles: any[]) => boolean;
2
- export default canAccess;
@@ -1,3 +0,0 @@
1
- import { unitOfTime } from "moment";
2
- declare const _default: (time: string, unitOfTime: unitOfTime.Diff, targetTime?: string | undefined) => number | "";
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (params: any) => string;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import moment from "moment";
2
- declare const _default: (time: string, ORIGINAL_FORMAT: string, FORMAT?: string | undefined) => string;
3
- export default _default;
4
- export declare const compareTimeSpanFromMoment: (time1: moment.Moment, time2: moment.Moment) => 0 | 1 | -1;
@@ -1,2 +0,0 @@
1
- declare const getAcademyDomain: () => string | null;
2
- export default getAcademyDomain;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const getErrorMessage: (t: any, error: any, defaultErrorMessage?: string | undefined) => string;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const getLearningSpace: () => boolean;
2
- export default getLearningSpace;
@@ -1,2 +0,0 @@
1
- declare const getRedirectUrl: () => string | null | undefined;
2
- export default getRedirectUrl;
@@ -1,22 +0,0 @@
1
- import { Category, CategoryResponse, ExamResult, Question } from "../containers/ExamResult/configs/types";
2
- import { Role } from "./constants";
3
- export declare const formatDateTime: (inputDate: string) => string;
4
- export declare type FormatDataMyAnswer = {
5
- category: Category;
6
- questions: Question[];
7
- };
8
- export declare const ellipsisText: (text: string, maxLength: number) => string;
9
- export declare const getOrdinalSuffix: (number: number, lang: string) => string;
10
- export declare const formatDataMyAnswer: (inputData: ExamResult, categories: CategoryResponse[]) => FormatDataMyAnswer[];
11
- export declare const totalSolveTimeCategories: (inputData: ExamResult, categories: CategoryResponse[]) => {
12
- totalSolveTime: any;
13
- id: number;
14
- name: string;
15
- totalQuestions: number;
16
- totalCorrectQuestions: number;
17
- totalAnsweredQuestions: number;
18
- percentageAmongStudents: number;
19
- }[];
20
- export declare const formatTimeSecond: (duration: number, t: any) => string;
21
- export declare const formatRole: (roles: string[], t: any) => any;
22
- export declare const getRole: (roles: string[]) => Role.Student | Role.Teacher | Role.Admin | Role.AcademyAdmin | null;
@@ -1,2 +0,0 @@
1
- declare const isLocalHost: boolean;
2
- export default isLocalHost;
@@ -1,2 +0,0 @@
1
- declare const _default: (time: number) => string;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const pushTo: (history: any, data: any, isReplace?: boolean) => void;
@@ -1,6 +0,0 @@
1
- import moment from "moment";
2
- export declare const getLocalDayOfWeek: (utcDateTime: string, dayOfWeek: number) => number;
3
- export declare const getUtcDayOfWeek: (localDateTime: moment.Moment, dayOfWeek: number) => number;
4
- export declare const timeSpanToLocalMoment: (time: string, date?: string | undefined) => moment.Moment | null;
5
- export declare const convertHHMMSStoSeconds: (time: string) => number;
6
- export declare const getRemainTime: (startTime: string, duration: string) => number | null;
@@ -1,2 +0,0 @@
1
- declare const _default: (time?: string | undefined) => string;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const toLocalTime: (time?: string | undefined, FORMAT?: string | undefined) => string;
@@ -1 +0,0 @@
1
- export declare const checkSuperUrl: (superUrls: string[], pathname: string) => boolean;
@@ -1,9 +0,0 @@
1
- export interface INavigateProps {
2
- history: any;
3
- }
4
- export declare enum ExamEvent {
5
- StartExam = "start-exam",
6
- TerminateExam = "terminate-exam",
7
- AddExtraDuration = "add-extra-duration-exam",
8
- TeacherKickOutStudent = "teacher-kick-out-student"
9
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (time?: string | undefined, FORMAT?: string | undefined) => string;
2
- export default _default;