touchstudy-core 0.1.195 → 0.1.197

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 (140) hide show
  1. package/dist/add-ts-nocheck.js +33 -0
  2. package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
  3. package/dist/calendar_fill~zEgxFwDs.svg +4 -0
  4. package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
  5. package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
  6. package/dist/clock_fill~mcRclYYO.svg +3 -0
  7. package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
  8. package/dist/components/Chats/components/CanvasOverlay.d.ts +11 -0
  9. package/dist/components/Chats/components/SketchDialog/BgColorTool.d.ts +8 -0
  10. package/dist/components/Chats/components/SketchDialog/BgImgAlignTool.d.ts +10 -0
  11. package/dist/components/Chats/components/SketchDialog/BgImgAlignToolList.d.ts +9 -0
  12. package/dist/components/Chats/components/SketchDialog/BgImgTool.d.ts +13 -0
  13. package/dist/components/Chats/components/SketchDialog/CanvasOverlay.d.ts +11 -0
  14. package/dist/components/Chats/components/SketchDialog/ColorPicker.d.ts +8 -0
  15. package/dist/components/Chats/components/SketchDialog/EraserTool.d.ts +9 -0
  16. package/dist/components/Chats/components/SketchDialog/PencilTool.d.ts +11 -0
  17. package/dist/components/Chats/components/SketchDialog/WidthSlider.d.ts +7 -0
  18. package/dist/components/Chats/components/SketchDialog/index.d.ts +9 -0
  19. package/dist/components/Chats/components/SketchDialog.d.ts +7 -0
  20. package/dist/components/Chats/styles/styles.d.ts +42 -0
  21. package/dist/components/CkEditor/CkEditor.d.ts +10 -0
  22. package/dist/components/CkEditor/config.d.ts +19 -0
  23. package/dist/components/CkEditor/index.d.ts +2 -0
  24. package/dist/components/Print/hooks/useDeviceType.d.ts +4 -0
  25. package/dist/components/Selects/CustomSelectOption.d.ts +1 -1
  26. package/dist/containers/ExamResult/components/GradesByTerritory/Textbook.d.ts +12 -0
  27. package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +12 -0
  28. package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +10 -0
  29. package/dist/containers/ExamResult/components/TrickyProblem/Textbook.d.ts +10 -0
  30. package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +11 -0
  31. package/dist/containers/ExamResult/components/Vulnerable/Textbook.d.ts +11 -0
  32. package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +12 -0
  33. package/dist/containers/Exams/components/ArticleBlock.d.ts +20 -0
  34. package/dist/containers/Exams/components/ArticleGroupView.d.ts +33 -0
  35. package/dist/containers/Exams/components/QuestionBlock.d.ts +19 -0
  36. package/dist/containers/Exams/components/QuestionCompareType.d.ts +9 -0
  37. package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +28 -0
  38. package/dist/containers/Exams/components/QuestionGroupBlockBody.d.ts +23 -0
  39. package/dist/containers/Exams/components/QuestionOrderName.d.ts +9 -0
  40. package/dist/containers/Exams/components/QuestionShortInput.d.ts +13 -0
  41. package/dist/containers/Exams/components/QuestionView.d.ts +20 -0
  42. package/dist/containers/Exams/hooks/useOverallChartContainer.d.ts +9 -0
  43. package/dist/containers/Exams/styles/styles.d.ts +6 -0
  44. package/dist/containers/Notes/components/TeacherAdminNoteDialog.d.ts +4 -0
  45. package/dist/containers/PreparedTextbook/components/Article.d.ts +20 -0
  46. package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +20 -0
  47. package/dist/containers/PreparedTextbook/components/Chapter.d.ts +19 -0
  48. package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +19 -0
  49. package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +8 -0
  50. package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +28 -0
  51. package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +24 -0
  52. package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +9 -0
  53. package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
  54. package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +12 -0
  55. package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +10 -0
  56. package/dist/containers/PreparedTextbook/components/SubChapter.d.ts +18 -0
  57. package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +13 -0
  58. package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +30 -0
  59. package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +15 -0
  60. package/dist/containers/PreparedTextbook/styles/styles.d.ts +6 -0
  61. package/dist/containers/PreparedTextbook/views/PreparedTextbook.d.ts +8 -0
  62. package/dist/containers/StudentInfoDrawer/components/Attendance/AttedanceFormDialog.d.ts +13 -0
  63. package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
  64. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
  65. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
  66. package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
  67. package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
  68. package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
  69. package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
  70. package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
  71. package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
  72. package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
  73. package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
  74. package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
  75. package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
  76. package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
  77. package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
  78. package/dist/containers/Textbooks/components/ChapterBox.d.ts +4 -0
  79. package/dist/containers/Textbooks/configs/interfaces.d.ts +21 -0
  80. package/dist/containers/Textbooks/hooks/useExam.d.ts +16 -0
  81. package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +55 -0
  82. package/dist/containers/Textbooks/views/TextbookDetail.d.ts +15 -0
  83. package/dist/iconPerson~bfprHOKm.svg +4 -0
  84. package/dist/index.css +16 -4
  85. package/dist/index.js +111 -93
  86. package/dist/index.js.map +1 -1
  87. package/dist/index.modern.js +111 -93
  88. package/dist/index.modern.js.map +1 -1
  89. package/dist/layouts/HeaderLink.d.ts +8 -0
  90. package/dist/layouts/TimerCountItem.d.ts +10 -0
  91. package/dist/layouts/TimerDialog.d.ts +11 -0
  92. package/dist/layouts/TimerDropdown.d.ts +3 -0
  93. package/dist/layouts/TimerItem.d.ts +11 -0
  94. package/dist/layouts/configs/constants.d.ts +14 -0
  95. package/dist/layouts/configs/enums.d.ts +6 -0
  96. package/dist/layouts/configs/fn.d.ts +3 -0
  97. package/dist/layouts/configs/types.d.ts +8 -0
  98. package/dist/layouts/hooks/useAlarm.d.ts +19 -0
  99. package/dist/layouts/hooks/useCountDownTimer.d.ts +13 -0
  100. package/dist/layouts/hooks/useTimers.d.ts +14 -0
  101. package/dist/layouts/partials/Alarm/AlarmClock.d.ts +12 -0
  102. package/dist/layouts/partials/Alarm/AlarmClockNote.d.ts +3 -0
  103. package/dist/layouts/partials/Alarm/AlarmClockPanel.d.ts +12 -0
  104. package/dist/layouts/partials/Alarm/AlarmClockPanelNote.d.ts +3 -0
  105. package/dist/layouts/partials/Alarm/AlarmClockTab.d.ts +14 -0
  106. package/dist/layouts/partials/Alarm/AlarmSpeakerCheckbox.d.ts +8 -0
  107. package/dist/layouts/partials/Alarm/AudioToastContent.d.ts +8 -0
  108. package/dist/layouts/partials/AlarmClock.d.ts +12 -0
  109. package/dist/layouts/partials/AlarmClockNote.d.ts +3 -0
  110. package/dist/layouts/partials/AlarmClockPanel.d.ts +12 -0
  111. package/dist/layouts/partials/AlarmClockPanelNote.d.ts +3 -0
  112. package/dist/layouts/partials/AlarmClockTab.d.ts +11 -0
  113. package/dist/layouts/partials/AudioToastContent.d.ts +8 -0
  114. package/dist/layouts/partials/CircularTimer/index.d.ts +11 -0
  115. package/dist/layouts/partials/CircularTimer/tick.d.ts +9 -0
  116. package/dist/layouts/partials/CircularTimer.d.ts +11 -0
  117. package/dist/layouts/partials/StudyTimerTab.d.ts +13 -0
  118. package/dist/layouts/partials/TimeUpdateDialog.d.ts +7 -0
  119. package/dist/layouts/partials/Timer/StudyTimerTab.d.ts +13 -0
  120. package/dist/layouts/partials/Timer/TimeLineTabPanel.d.ts +8 -0
  121. package/dist/layouts/partials/Timer/TimeLineTabs.d.ts +11 -0
  122. package/dist/layouts/partials/Timer/TimeUpdateDialog.d.ts +7 -0
  123. package/dist/layouts/partials/Timer/TimerCountItem.d.ts +10 -0
  124. package/dist/layouts/partials/Timer/TimerDivider.d.ts +9 -0
  125. package/dist/layouts/partials/Timer/TimerItem.d.ts +12 -0
  126. package/dist/layouts/partials/Timer/TimerLineItem.d.ts +13 -0
  127. package/dist/layouts/partials/Timer/TimerTabPanel.d.ts +8 -0
  128. package/dist/layouts/partials/Timer/TimerTabs.d.ts +7 -0
  129. package/dist/layouts/partials/TimerCountItem.d.ts +10 -0
  130. package/dist/layouts/partials/TimerItem.d.ts +12 -0
  131. package/dist/layouts/partials/TimerTabPanel.d.ts +8 -0
  132. package/dist/layouts/partials/TimerTabs.d.ts +7 -0
  133. package/dist/services/alarmService.d.ts +9 -0
  134. package/dist/utils/enums/subject.d.ts +6 -0
  135. package/dist/utils/functions/checkSuperUrl.d.ts +1 -0
  136. package/dist/utils/functions/isRealTabletOrMobileDevice.d.ts +1 -0
  137. package/dist/utils/types/examResults.d.ts +1 -0
  138. package/dist/utils/types/subjects.d.ts +21 -0
  139. package/package.json +1 -2
  140. /package/dist/utils/types/{questionTypeFilter.d.ts → QuestionTypeFilter.d.ts} +0 -0
@@ -0,0 +1,8 @@
1
+ import { FC, ReactElement } from "react";
2
+ import { TabType } from "../utils/types/tab";
3
+ interface HeaderLinkProps {
4
+ data: TabType;
5
+ render: (data: TabType, active: boolean) => ReactElement;
6
+ }
7
+ declare const HeaderLink: FC<HeaderLinkProps>;
8
+ export default HeaderLink;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ loading: boolean;
6
+ activeTimerId?: number;
7
+ onChangeTime: (data: SubjectTimerResponse, time?: number) => void;
8
+ }
9
+ declare const TimerCountItem: FC<Props>;
10
+ export default TimerCountItem;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { StudyTimerTabProps } from "./partials/Timer/StudyTimerTab";
3
+ import { AlarmClockTabProps } from "./partials/Alarm/AlarmClockTab";
4
+ interface Props {
5
+ studyTimerProps: StudyTimerTabProps;
6
+ alarmClockProps: AlarmClockTabProps;
7
+ open: boolean;
8
+ onTogge: () => void;
9
+ }
10
+ declare const TimerDialog: FC<Props>;
11
+ export default TimerDialog;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const TimerDropdown: FC;
3
+ export default TimerDropdown;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ seconds?: number;
6
+ loading: boolean;
7
+ activeTimerId?: number;
8
+ onStartOrPauseTimer: (data: SubjectTimerResponse) => void;
9
+ }
10
+ declare const TimerItem: FC<Props>;
11
+ export default TimerItem;
@@ -0,0 +1,14 @@
1
+ import { AlarmType } from "./enums";
2
+ export declare const QUICK_START_OPTIONS: number[];
3
+ export declare const SUBJECT_OPTIONS: {
4
+ label: string;
5
+ value: number;
6
+ type: AlarmType;
7
+ }[];
8
+ export declare const INNER_OFFSET = 24;
9
+ export declare const TICK_WIDTH = 1;
10
+ export declare const ACTIVE_TICK_WIDTH = 2;
11
+ export declare const TICK_SPACING: number;
12
+ export declare const STROKE_WIDTH = 4;
13
+ export declare const DEFAULT_CIRCULAR_TIMER_SIZE = 160;
14
+ export declare const MAX_TIME_CIRCULAR_TIMER = 999;
@@ -0,0 +1,6 @@
1
+ export declare enum AlarmType {
2
+ Default = 0,
3
+ Korean = 1,
4
+ Math = 2,
5
+ English = 3
6
+ }
@@ -0,0 +1,3 @@
1
+ import { SubjectTimerResponse } from "../../utils/types";
2
+ export declare const formatTime: (totalSeconds: number, t: any) => string;
3
+ export declare const getDisplayTime: (t: any, data?: SubjectTimerResponse | undefined, activeTimerId?: number | undefined, seconds?: number | undefined) => any;
@@ -0,0 +1,8 @@
1
+ import { SubjectTimerResponse } from "../../utils/types";
2
+ export declare type TimerTimeline = SubjectTimerResponse & {
3
+ timeLines: TimerLine[];
4
+ };
5
+ export declare type TimerLine = {
6
+ startTime: string;
7
+ endTime: string;
8
+ };
@@ -0,0 +1,19 @@
1
+ import { AlarmResponse } from "../../utils/types";
2
+ import { AlarmType } from "../configs/enums";
3
+ declare const useAlarm: (open: boolean) => {
4
+ isUpdatingSpeakerMode: boolean;
5
+ speaker: boolean;
6
+ remainTime: number | undefined;
7
+ alarmDuration: number;
8
+ isRunning: boolean;
9
+ loadingItem: boolean;
10
+ isFetching: boolean;
11
+ alarm: AlarmResponse | undefined;
12
+ handleToggleSpeaker: (val: boolean) => void;
13
+ handleStopAlarm: (isToasting?: boolean) => Promise<void>;
14
+ handleResumeOrPauseAlarm: () => Promise<void>;
15
+ handleStartAlarm: (type: AlarmType, duration: number) => Promise<void>;
16
+ handleChangeAlarmDuration: (val: number) => void;
17
+ hanldeIncreaseAlarmDuration: (val: number) => void;
18
+ };
19
+ export default useAlarm;
@@ -0,0 +1,13 @@
1
+ import { TimerStatus } from "../../utils";
2
+ interface Props {
3
+ isLoading: boolean;
4
+ startTime?: string;
5
+ lastResumeTime?: string;
6
+ status?: TimerStatus;
7
+ duration?: number;
8
+ runningTime: number;
9
+ onFinish: () => void;
10
+ playAudio: (time: number) => void;
11
+ }
12
+ declare const useCountDownTimer: (props: Props) => number | undefined;
13
+ export default useCountDownTimer;
@@ -0,0 +1,14 @@
1
+ import { SubjectTimerResponse } from "../../utils/types";
2
+ declare const useTimers: (open: boolean) => {
3
+ isRunning: boolean;
4
+ selectedTimer: SubjectTimerResponse | undefined;
5
+ loadingItem: boolean;
6
+ activeTimerId: number | undefined;
7
+ handleChangeTime: (data: SubjectTimerResponse, time: number) => void;
8
+ isFetching: boolean;
9
+ timers: SubjectTimerResponse[];
10
+ seconds: number | undefined;
11
+ handleStartOrPauseTimer: (data: SubjectTimerResponse, isRestart?: boolean | undefined) => Promise<void>;
12
+ handleOpenDialogEditTimer: (data: SubjectTimerResponse) => void;
13
+ };
14
+ export default useTimers;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { TimerStatus } from "../../../utils";
3
+ export interface AlarmClockProps {
4
+ totalMinutes: number;
5
+ remainTime?: number;
6
+ alarmStatus?: TimerStatus;
7
+ onTerminate: () => void;
8
+ onPause: () => void;
9
+ onResume: () => void;
10
+ }
11
+ declare const AlarmClock: FC<AlarmClockProps>;
12
+ export default AlarmClock;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const AlarmClockNote: FC;
3
+ export default AlarmClockNote;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { AlarmType } from "../../configs/enums";
3
+ export interface AlarmClockPanelProps {
4
+ isLoading: boolean;
5
+ value: number;
6
+ max?: number;
7
+ onStart: (type: AlarmType, duration: number) => void;
8
+ onChange: (val: number) => void;
9
+ onIncrease: (val: number) => void;
10
+ }
11
+ declare const AlarmClockPanel: FC<AlarmClockPanelProps>;
12
+ export default AlarmClockPanel;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const AlarmClockPanelNote: FC;
3
+ export default AlarmClockPanelNote;
@@ -0,0 +1,14 @@
1
+ import { FC } from "react";
2
+ import { AlarmClockPanelProps } from "./AlarmClockPanel";
3
+ import { AlarmClockProps } from "./AlarmClock";
4
+ export interface AlarmClockTabProps {
5
+ isLoading: boolean;
6
+ isPlaying: boolean;
7
+ speaker: boolean;
8
+ disabledSpeaker: boolean;
9
+ onToggleSpeaker: (val: boolean) => void;
10
+ panelProps: AlarmClockPanelProps;
11
+ alarmProps: AlarmClockProps;
12
+ }
13
+ declare const AlarmClockTab: FC<AlarmClockTabProps>;
14
+ export default AlarmClockTab;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ value: boolean;
4
+ disabled: boolean;
5
+ onChange: (checked: boolean) => void;
6
+ }
7
+ declare const AlarmSpeakerCheckbox: FC<Props>;
8
+ export default AlarmSpeakerCheckbox;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ audioSrc?: string;
4
+ message: string;
5
+ toastId: string;
6
+ }
7
+ declare const AudioToastContent: FC<Props>;
8
+ export default AudioToastContent;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { TimerStatus } from "../../utils";
3
+ export interface AlarmClockProps {
4
+ totalMinutes: number;
5
+ remainTime?: number;
6
+ alarmStatus?: TimerStatus;
7
+ onTerminate: () => void;
8
+ onPause: () => void;
9
+ onResume: () => void;
10
+ }
11
+ declare const AlarmClock: FC<AlarmClockProps>;
12
+ export default AlarmClock;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const AlarmClockNote: FC;
3
+ export default AlarmClockNote;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { AlarmType } from "../configs/enums";
3
+ export interface AlarmClockPanelProps {
4
+ isLoading: boolean;
5
+ value: number;
6
+ max?: number;
7
+ onStart: (type: AlarmType, duration: number) => void;
8
+ onChange: (val: number) => void;
9
+ onIncrease: (val: number) => void;
10
+ }
11
+ declare const AlarmClockPanel: FC<AlarmClockPanelProps>;
12
+ export default AlarmClockPanel;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const AlarmClockPanelNote: FC;
3
+ export default AlarmClockPanelNote;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { AlarmClockPanelProps } from "./AlarmClockPanel";
3
+ import { AlarmClockProps } from "./AlarmClock";
4
+ export interface AlarmClockTabProps {
5
+ isLoading: boolean;
6
+ isPlaying: boolean;
7
+ panelProps: AlarmClockPanelProps;
8
+ alarmProps: AlarmClockProps;
9
+ }
10
+ declare const AlarmClockTab: FC<AlarmClockTabProps>;
11
+ export default AlarmClockTab;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ audioSrc?: string;
4
+ message: string;
5
+ toastId: string;
6
+ }
7
+ declare const AudioToastContent: FC<Props>;
8
+ export default AudioToastContent;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ interface CircularTimerProps {
3
+ edit: boolean;
4
+ value?: number;
5
+ remainSeconds?: number;
6
+ onChange?: (val: number) => void;
7
+ maxMinutes: number;
8
+ size?: number;
9
+ }
10
+ declare const CircularTimer: React.FC<CircularTimerProps>;
11
+ export default CircularTimer;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ index: number;
4
+ isDragging: boolean;
5
+ isActive: boolean;
6
+ isHovering: boolean;
7
+ }
8
+ declare const Tick: FC<Props>;
9
+ export default Tick;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ interface CircularTimerProps {
3
+ edit: boolean;
4
+ value?: number;
5
+ passedSeconds?: number;
6
+ onChange?: (val: number) => void;
7
+ maxMinutes?: number;
8
+ size?: number;
9
+ }
10
+ declare const CircularTimer: React.FC<CircularTimerProps>;
11
+ export default CircularTimer;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../utils/types";
3
+ export interface StudyTimerTabProps {
4
+ subjects: SubjectTimerResponse[];
5
+ isFetching: boolean;
6
+ loadingItem: boolean;
7
+ activeTimerId?: number;
8
+ time?: number;
9
+ onStartOrPause: (data: SubjectTimerResponse, isRestart: boolean) => void;
10
+ onEditTimer: (data: SubjectTimerResponse) => void;
11
+ }
12
+ declare const StudyTimerTab: FC<StudyTimerTabProps>;
13
+ export default StudyTimerTab;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const TimeUpdateDialog: FC<Props>;
7
+ export default TimeUpdateDialog;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../../utils/types";
3
+ export interface StudyTimerTabProps {
4
+ subjects: SubjectTimerResponse[];
5
+ isFetching: boolean;
6
+ loadingItem: boolean;
7
+ activeTimerId?: number;
8
+ time?: number;
9
+ onStartOrPause: (data: SubjectTimerResponse, isRestart: boolean) => void;
10
+ onEditTimer: (data: SubjectTimerResponse) => void;
11
+ }
12
+ declare const StudyTimerTab: FC<StudyTimerTabProps>;
13
+ export default StudyTimerTab;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface Props {
3
+ children?: React.ReactNode;
4
+ index: number;
5
+ value: number;
6
+ }
7
+ declare const TimeLineTabPanel: React.FC<Props>;
8
+ export default TimeLineTabPanel;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../../utils/types";
3
+ interface Props {
4
+ value: number;
5
+ data?: SubjectTimerResponse;
6
+ seconds?: number;
7
+ activeTimerId?: number;
8
+ onChange: (e: any, newValue: number) => void;
9
+ }
10
+ declare const TimeLineTabs: FC<Props>;
11
+ export default TimeLineTabs;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const TimeUpdateDialog: FC<Props>;
7
+ export default TimeUpdateDialog;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ loading: boolean;
6
+ activeTimerId?: number;
7
+ onChangeTime: (data: SubjectTimerResponse, time?: number) => void;
8
+ }
9
+ declare const TimerCountItem: FC<Props>;
10
+ export default TimerCountItem;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../../utils/types";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ starting?: boolean;
6
+ noActions?: boolean;
7
+ }
8
+ declare const TimerDivider: FC<Props>;
9
+ export default TimerDivider;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ seconds?: number;
6
+ loading: boolean;
7
+ activeTimerId?: number;
8
+ onStartOrPauseTimer: (data: SubjectTimerResponse, isRestart?: boolean) => void;
9
+ onEditTimer: (data: SubjectTimerResponse) => void;
10
+ }
11
+ declare const TimerItem: FC<Props>;
12
+ export default TimerItem;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../../utils/types";
3
+ import { TimerStatus } from "../../../utils";
4
+ interface Props {
5
+ data: SubjectTimerResponse;
6
+ time: string;
7
+ status: TimerStatus;
8
+ isStart?: boolean;
9
+ single?: boolean;
10
+ onLoaded?: () => void;
11
+ }
12
+ declare const TimerLineItem: FC<Props>;
13
+ export default TimerLineItem;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface Props {
3
+ children?: React.ReactNode;
4
+ index: number;
5
+ value: number;
6
+ }
7
+ declare const TimerTabPanel: React.FC<Props>;
8
+ export default TimerTabPanel;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ value: number;
4
+ onChange: (e: any, newValue: number) => void;
5
+ }
6
+ declare const TimerTabs: FC<Props>;
7
+ export default TimerTabs;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ loading: boolean;
6
+ activeTimerId?: number;
7
+ onChangeTime: (data: SubjectTimerResponse, time?: number) => void;
8
+ }
9
+ declare const TimerCountItem: FC<Props>;
10
+ export default TimerCountItem;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ seconds?: number;
6
+ loading: boolean;
7
+ activeTimerId?: number;
8
+ onStartOrPauseTimer: (data: SubjectTimerResponse, isRestart?: boolean) => void;
9
+ onEditTimer: (data: SubjectTimerResponse) => void;
10
+ }
11
+ declare const TimerItem: FC<Props>;
12
+ export default TimerItem;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface Props {
3
+ children?: React.ReactNode;
4
+ index: number;
5
+ value: number;
6
+ }
7
+ declare const TimerTabPanel: React.FC<Props>;
8
+ export default TimerTabPanel;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ value: number;
4
+ onChange: (e: any, newValue: number) => void;
5
+ }
6
+ declare const TimerTabs: FC<Props>;
7
+ export default TimerTabs;
@@ -0,0 +1,9 @@
1
+ import { AlarmResumeOrPauseRequest, StartAlarmRequest, ToggleAlarmSpeakerRequest } from "../utils/types";
2
+ export declare const getSuperAdminAlarmApi: () => Promise<import("axios").AxiosResponse<any, any>>;
3
+ export declare const getAlarmApi: () => Promise<import("axios").AxiosResponse<any, any>>;
4
+ export declare const startStudentAlarmApi: (data: StartAlarmRequest) => Promise<import("axios").AxiosResponse<any, any>>;
5
+ export declare const pauseStudentAlarmApi: (data: AlarmResumeOrPauseRequest) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare const startSuperStudentAlarmApi: (data: StartAlarmRequest) => Promise<import("axios").AxiosResponse<any, any>>;
7
+ export declare const pauseSuperStudentAlarmApi: (data: AlarmResumeOrPauseRequest) => Promise<import("axios").AxiosResponse<any, any>>;
8
+ export declare const toggleAlarmSpeakerApi: (data: ToggleAlarmSpeakerRequest) => Promise<import("axios").AxiosResponse<any, any>>;
9
+ export declare const toggleSuperAlarmSpeakerApi: (data: ToggleAlarmSpeakerRequest) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,6 @@
1
+ export declare enum TimerStatus {
2
+ NotStarted = 0,
3
+ Started = 1,
4
+ Paused = 2,
5
+ Stopped = 3
6
+ }
@@ -0,0 +1 @@
1
+ export declare const checkSuperUrl: (superUrls: string[], pathname: string) => boolean;
@@ -0,0 +1 @@
1
+ export declare const isMobileOrTabletRealDevice: () => boolean;
@@ -30,6 +30,7 @@ export declare type Question = {
30
30
  isStar: boolean;
31
31
  score: number;
32
32
  overallCorrectRate: number;
33
+ skipRate: number;
33
34
  selectedAnswers?: number[] | string;
34
35
  correctAnswers?: number[] | string;
35
36
  correctTextualAnswers?: string[];
@@ -0,0 +1,21 @@
1
+ import { TimerStatus } from "../enums/subject";
2
+ export declare type SubjectTimerResponse = {
3
+ id: number;
4
+ timerId: number;
5
+ name: string;
6
+ startTime: string;
7
+ lastResumeTime: string;
8
+ lastPauseTime: string;
9
+ duration: number;
10
+ status: TimerStatus;
11
+ rowVersion: string;
12
+ limitedTime: number;
13
+ limitedTimeReached: boolean;
14
+ };
15
+ export declare type ResumeOrPauseRequest = {
16
+ status: TimerStatus;
17
+ pauseTime?: number;
18
+ startTime?: number;
19
+ rowVersion: string;
20
+ timerId: number;
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.195",
3
+ "version": "0.1.197",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
@@ -64,7 +64,6 @@
64
64
  "@testing-library/jest-dom": "^5.17.0",
65
65
  "@testing-library/react": "^13.4.0",
66
66
  "@testing-library/user-event": "^13.5.0",
67
- "@tinymce/miniature": "^6.0.0",
68
67
  "@types/file-saver": "2.0.7",
69
68
  "@types/jest": "^27.5.2",
70
69
  "@types/lodash": "^4.17.16",