touchstudy-core 0.1.178 → 0.1.180

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 (71) hide show
  1. package/dist/components/Filters/QuestionTypeFilterComponent.d.ts +11 -0
  2. package/dist/components/Filters/configs/constants.d.ts +25 -0
  3. package/dist/components/Questions/ArticleBlock.d.ts +20 -0
  4. package/dist/components/Questions/QuestionBlock.d.ts +19 -0
  5. package/dist/components/Questions/QuestionCompareType.d.ts +13 -0
  6. package/dist/components/Questions/QuestionGroupBlock.d.ts +28 -0
  7. package/dist/components/Questions/QuestionGroupBlockBody.d.ts +23 -0
  8. package/dist/components/Questions/QuestionOrderName.d.ts +9 -0
  9. package/dist/components/Questions/QuestionShortInput.d.ts +13 -0
  10. package/dist/components/Questions/configs/constants.d.ts +12 -0
  11. package/dist/components/Questions/configs/fns.d.ts +7 -0
  12. package/dist/components/Questions/configs/types.d.ts +6 -0
  13. package/dist/components/Questions/index.d.ts +13 -0
  14. package/dist/components/Questions/styles/styles.d.ts +6 -0
  15. package/dist/components/Selectors/configs/constants.d.ts +5 -0
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/containers/ExamResult/components/MonthGroupedExamSessions/ExamSessionItem.d.ts +12 -0
  18. package/dist/containers/ExamResult/components/MonthGroupedExamSessions/GeneralExamItem.d.ts +9 -0
  19. package/dist/containers/ExamResult/components/MonthGroupedExamSessions/MonthGroupedExamSessionItem.d.ts +19 -0
  20. package/dist/containers/ExamResult/components/MonthGroupedExamSessions/index.d.ts +3 -0
  21. package/dist/containers/ExamResult/configs/constants.d.ts +0 -14
  22. package/dist/containers/ExamResult/configs/functions.d.ts +2 -0
  23. package/dist/containers/ExamResult/configs/types.d.ts +22 -2
  24. package/dist/containers/ExamResult/index.d.ts +5 -0
  25. package/dist/containers/Exams/components/ArticleBlock.d.ts +20 -0
  26. package/dist/containers/Exams/components/ExamDetailForm.d.ts +10 -0
  27. package/dist/containers/Exams/components/QuestionBlock.d.ts +13 -5
  28. package/dist/containers/Exams/components/QuestionCompareType.d.ts +9 -0
  29. package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +17 -8
  30. package/dist/containers/Exams/components/QuestionGroupBlockBody.d.ts +2 -3
  31. package/dist/containers/Exams/components/QuestionOrderName.d.ts +9 -0
  32. package/dist/containers/Exams/components/QuestionShortInput.d.ts +6 -3
  33. package/dist/containers/Exams/configs/constants.d.ts +21 -3
  34. package/dist/containers/Exams/configs/enums.d.ts +4 -0
  35. package/dist/containers/Exams/configs/functions.d.ts +3 -1
  36. package/dist/containers/Exams/configs/interfaces.d.ts +6 -5
  37. package/dist/containers/Exams/hooks/useExamDetailView.d.ts +7 -25
  38. package/dist/containers/Exams/index.d.ts +1 -2
  39. package/dist/containers/Exams/views/ExamDetailView.d.ts +1 -1
  40. package/dist/containers/PreparedTextbook/configs/constants.d.ts +1 -58
  41. package/dist/containers/PreparedTextbook/configs/enums.d.ts +0 -16
  42. package/dist/containers/PreparedTextbook/configs/functions.d.ts +1 -5
  43. package/dist/containers/PreparedTextbook/configs/types.d.ts +0 -13
  44. package/dist/containers/Select/Subject/hook/useSubjectSelect.d.ts +2 -6
  45. package/dist/containers/Textbooks/apiClient/examSessionService.d.ts +1 -2
  46. package/dist/containers/Textbooks/configs/constants.d.ts +0 -2
  47. package/dist/containers/Textbooks/views/index.d.ts +1 -2
  48. package/dist/index.css +29 -156
  49. package/dist/index.js +21863 -24840
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.modern.js +21832 -24831
  52. package/dist/index.modern.js.map +1 -1
  53. package/dist/layouts/Header.d.ts +1 -1
  54. package/dist/layouts/TimerCountItem.d.ts +1 -0
  55. package/dist/services/categoryService.d.ts +4 -0
  56. package/dist/services/questionTypeService.d.ts +2 -0
  57. package/dist/services/subjectService.d.ts +0 -4
  58. package/dist/theme/palette.d.ts +0 -1
  59. package/dist/utils/enums/index.d.ts +2 -2
  60. package/dist/utils/enums/schoolType.d.ts +16 -0
  61. package/dist/utils/functions/common.d.ts +3 -0
  62. package/dist/utils/functions/timeSpanToMinutes.d.ts +1 -0
  63. package/dist/utils/functions/times.d.ts +0 -1
  64. package/dist/utils/hooks/useCategoryOptions.d.ts +15 -0
  65. package/dist/utils/index.d.ts +1 -1
  66. package/dist/utils/types/QuestionTypeFilter.d.ts +7 -0
  67. package/dist/utils/types/examResults.d.ts +1 -0
  68. package/dist/utils/types/exams.d.ts +82 -18
  69. package/dist/utils/types/index.d.ts +2 -1
  70. package/dist/utils/types/subjects.d.ts +2 -0
  71. package/package.json +1 -1
@@ -1,62 +1,13 @@
1
- import { QuestionAnswerType } from "../../../utils";
2
- import { HighSchoolGrade } from "./enums";
3
- import { ArticleRequest, ChapterRequest, HeaderTable, QuestionGroupRequest, QuestionRequest, TextbookQuery, TextbookRequest } from "./types";
1
+ import { ChapterRequest, HeaderTable, TextbookQuery, TextbookRequest } from "./types";
4
2
  import * as yup from "yup";
5
- export declare const SCHOOL_OPTIONS: {
6
- label: string;
7
- value: number;
8
- }[];
9
- export declare const SEMESTER_OPTIONS: {
10
- label: string | number;
11
- value: number;
12
- }[];
13
- export declare const CHAPTERS_OPTIONS: {
14
- label: string | number;
15
- value: number;
16
- }[];
17
- export declare const ELEMANTARY_GRADES: {
18
- label: string | number;
19
- value: number;
20
- }[];
21
- export declare const MIDDLE_GRADES: {
22
- label: string | number;
23
- value: number;
24
- }[];
25
- export declare const HIGH_GRADES: {
26
- label: string;
27
- value: HighSchoolGrade;
28
- }[];
29
3
  export declare const TEXTBOOK_HEADERS: HeaderTable[];
30
4
  export declare const DefaultTextbookFilter: TextbookQuery;
31
5
  export declare const DATE_FORMAT = "YYYY-MM-DD";
32
- export declare const DefaultChapter: {
33
- name: string;
34
- pageFrom: number;
35
- pageTo: number;
36
- };
37
- export declare const DefaultQuestion: {
38
- numberOfAnswers: number;
39
- correctAnswers: number[];
40
- score: number;
41
- questionOrder: number;
42
- title: string;
43
- author: string;
44
- subjectId: null;
45
- preparedType: null;
46
- questionAnswerType: QuestionAnswerType;
47
- correctTextualAnswers: string[];
48
- };
49
- export declare const DefaultArticle: {
50
- answerCount: number;
51
- questionCount: number;
52
- };
53
6
  export declare const DefaultTextbookOwner: {
54
7
  email: string;
55
8
  academy: null;
56
9
  class: null;
57
10
  };
58
- export declare const DEFAULT_ANSWER_COUNT = 5;
59
- export declare const DEFAULT_SCORE = 2;
60
11
  export declare const preparedTextbookSchema: (t: any) => yup.ObjectSchema<{
61
12
  name: string;
62
13
  subjectId: number;
@@ -85,13 +36,5 @@ export declare const preparedTextbookSchema: (t: any) => yup.ObjectSchema<{
85
36
  }, "">;
86
37
  export declare const DEFAULT_TEXTBOOK_REQUEST: TextbookRequest;
87
38
  export declare const DEFAULT_CHAPTER: ChapterRequest;
88
- export declare const DEFAULT_QUESTION: QuestionRequest;
89
- export declare const DEFAULT_QUESTION_GROUP: QuestionGroupRequest;
90
- export declare const DEFAULT_ARTICLE: ArticleRequest;
91
- export declare const DEFAULT_MATH_QUESTION_GROUP: QuestionGroupRequest;
92
- export declare const CompareTypeOptions: {
93
- label: string;
94
- value: QuestionAnswerType;
95
- }[];
96
39
  export declare const SAVE_TIME_INTERVAL_IN_MILLISECONDS: number;
97
40
  export declare const SAVE_TIME_MAX_DIFF_IN_MILLISECONDS = 1000;
@@ -1,19 +1,3 @@
1
- export declare enum SchoolType {
2
- Default = 0,
3
- Elementary = 1,
4
- Middle = 2,
5
- High = 3
6
- }
7
- export declare enum HighSchoolGrade {
8
- Default = 0,
9
- AdvancedMathematics1 = 1,
10
- AdvancedMathematics2 = 2,
11
- Algebra = 3,
12
- Calculus1 = 4,
13
- Calculus2 = 5,
14
- ProbabilityAndStatistics = 6,
15
- Geometry = 7
16
- }
17
1
  export declare enum TextbookEditorType {
18
2
  Default = 0,
19
3
  Korea = 1,
@@ -1,6 +1,4 @@
1
- import { QuestionGroupRequest, TextbookDetailResponse } from "./types";
2
- export declare const reduceToMathArticles: (textbook: any, isMath?: number | undefined) => any;
3
- export declare const resetAllCategoriesAndQuestionTypesBySubject: (textbook: any, subject?: any) => any;
1
+ import { TextbookDetailResponse } from "./types";
4
2
  export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetailResponse | undefined) => import("./types").TextbookRequest | {
5
3
  name: string;
6
4
  subjectId: number;
@@ -115,5 +113,3 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
115
113
  }[];
116
114
  }[];
117
115
  };
118
- export declare const handleKeyDown: (e: any) => void;
119
- export declare const isSequentialQuestionGroups: (questionGroups: QuestionGroupRequest[]) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { PreparedType, QuestionAnswerType } from "../../../utils";
2
- import { SchoolType } from "./enums";
3
2
  export declare type HeaderTable = {
4
3
  title: string;
5
4
  sortKey?: TextbookSortBy;
@@ -192,18 +191,6 @@ export declare type Category = {
192
191
  id?: number;
193
192
  children?: Category[];
194
193
  };
195
- export declare type DeleteDialogData = {
196
- confirmText: string;
197
- text: string;
198
- path: string;
199
- itemIndex: number;
200
- };
201
- export declare type TextbookFilter = {
202
- schoolType?: SchoolType;
203
- grade?: number;
204
- semester?: number;
205
- chapter?: number;
206
- };
207
194
  export declare type TextbookFilterQuery = {
208
195
  pageSize?: number;
209
196
  page?: number;
@@ -1,15 +1,11 @@
1
+ import { Dispatch, SetStateAction } from "react";
1
2
  import { Subject } from "../configs/types";
2
3
  import { Exam } from "../../../../utils/types";
3
- declare type Props = {
4
- exam: Exam;
5
- onChangeExam: (value: Exam) => void;
6
- };
7
- declare const useSubjectSelect: ({ onChangeExam, exam }: Props) => {
4
+ declare const useSubjectSelect: (onChangeExam: Dispatch<SetStateAction<Exam>>) => {
8
5
  subjectOptions: {
9
6
  label: string;
10
7
  value: number | undefined;
11
8
  }[] | undefined;
12
- selectedSubject: Subject | undefined;
13
9
  subjectList: Subject[] | undefined;
14
10
  handleChangeSubject: (value: any) => void;
15
11
  };
@@ -1,7 +1,6 @@
1
- import { Exam } from "../../../utils";
2
1
  export declare const increaseDuration: (id: number, data: string) => Promise<import("axios").AxiosResponse<any, any>>;
3
2
  export declare const terminateExam: (id: number) => Promise<import("axios").AxiosResponse<any, any>>;
4
- export declare const getListExamSession: (query: Exam) => Promise<import("axios").AxiosResponse<any, any>>;
3
+ export declare const getListExamSession: (query: any) => Promise<import("axios").AxiosResponse<any, any>>;
5
4
  export declare const startExam: (examId: number) => Promise<import("axios").AxiosResponse<any, any>>;
6
5
  export declare const apiDeleteExam: (examId: number) => Promise<import("axios").AxiosResponse<any, any>>;
7
6
  export declare const apiKickOutStudent: (studentId: number, examCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,4 +1,3 @@
1
- import { Exam } from "../../../utils";
2
1
  import { OrderType } from "../../../utils/enums";
3
2
  import { ArticleCreateRequest, TeacherAcademyHeaderTable, TeacherQuery, TextbookDetailResponse, TextbookHeaderTable, TextbookSearchQuery, TextbookSortBy } from "./types";
4
3
  export declare const DEFAULT_TEXTBOOK_SHARE_FILTER: {
@@ -13,7 +12,6 @@ export declare const SHARE_TEXTBOOK_HEADERS: TextbookHeaderTable[];
13
12
  export declare const TEACHER_ACADEMY_HEADERS: TeacherAcademyHeaderTable[];
14
13
  export declare const DEFAULT_ANSWER_COUNT = 5;
15
14
  export declare const ANSWERS_COUNT: number[];
16
- export declare const DEFAULT_EXAM_REQUEST: Exam;
17
15
  export declare const TEXTBOOK_PAGE_TITLE: string;
18
16
  export declare const TEXT_BOOK_SEARCH_PLACEHOLDER: string;
19
17
  export declare const TEACHER_SEARCH_PLACEHOLDER: string;
@@ -1,3 +1,2 @@
1
- import TextbookDetail from "./TextbookDetail";
2
1
  import TextbookList from "./TextbookList";
3
- export { TextbookList, TextbookDetail };
2
+ export { TextbookList };
package/dist/index.css CHANGED
@@ -501,19 +501,6 @@
501
501
  text-overflow: ellipsis;
502
502
  word-wrap: break-word; }
503
503
 
504
- ._3bvVg ._z624V {
505
- transition: background-color 0.3s ease; }
506
- ._3bvVg ._z624V:hover {
507
- background-color: #3DC674; }
508
- ._3bvVg ._z624V:hover ._2KJX4 {
509
- color: #F0FFF6; }
510
- ._3bvVg ._z624V:hover ._1mwlk {
511
- color: #F0FFF6; }
512
- ._3bvVg ._z624V:hover ._maff_ {
513
- color: #F0FFF6; }
514
- ._3bvVg ._z624V ._maff_ {
515
- color: #3DC674; }
516
-
517
504
  ._2mYOt ._1H9qR:nth-child(1) {
518
505
  font-family: "Pretendard";
519
506
  font-size: 20px;
@@ -1301,6 +1288,35 @@
1301
1288
  line-height: 15.51px !important;
1302
1289
  color: #202B37 !important; }
1303
1290
 
1291
+ ._3Y8AX {
1292
+ padding: 0.5rem 1.5rem;
1293
+ border-radius: 6px;
1294
+ border: 1px solid #EBEBFF; }
1295
+ ._1e8WY {
1296
+ font-weight: 700;
1297
+ font-size: 14px; }
1298
+ ._2gi0p {
1299
+ font-weight: 700;
1300
+ font-size: 14px;
1301
+ color: #414E62; }
1302
+
1303
+ ._3IU-c > span:last-child,
1304
+ ._3IU-c {
1305
+ font-weight: 600 !important;
1306
+ font-size: 13px !important;
1307
+ color: #202B37 !important; }
1308
+
1309
+ ._25MOi {
1310
+ font-weight: 600;
1311
+ font-size: 13px;
1312
+ border: 1px solid #97A1AF;
1313
+ padding: 12px; }
1314
+ ._25MOi:focus {
1315
+ box-shadow: none; }
1316
+
1317
+ ._vPa1F:hover {
1318
+ color: #FFF; }
1319
+
1304
1320
  ._2rJkZ {
1305
1321
  width: 42px;
1306
1322
  height: 42px; }
@@ -2460,153 +2476,10 @@ h3 {
2460
2476
  ._1VZac:hover {
2461
2477
  color: #FFF; }
2462
2478
 
2463
- ._11aYm {
2464
- width: 70vw;
2465
- height: calc(100dvh - 78px);
2466
- position: fixed;
2467
- right: -100%;
2468
- bottom: 0;
2469
- z-index: 99;
2470
- transition: right 0.3s ease-in-out; }
2471
- ._11aYm._3Ydwm {
2472
- right: 0; }
2473
-
2474
- ._3SQDf {
2475
- width: 100vw;
2476
- height: 100vh;
2477
- background-color: rgba(0, 0, 0, 0);
2478
- position: fixed;
2479
- right: 0;
2480
- bottom: 0;
2481
- transition: background-color 0.1s 0.2s ease-in-out;
2482
- z-index: -1; }
2483
- ._3SQDf._3Ydwm {
2484
- background-color: rgba(0, 0, 0, 0.3);
2485
- z-index: 98; }
2486
-
2487
- ._2BwOx {
2488
- background: #F9FAFB;
2489
- border-bottom: 1px solid #E4E7EC;
2490
- padding: 1rem 1.5rem; }
2491
- ._2BwOx button {
2492
- padding: 0.5rem 1rem; }
2493
- ._2BwOx button span {
2494
- font-size: 13px;
2495
- font-weight: 700; }
2496
-
2497
- ._2Zo7R {
2498
- height: calc(100% - 70.5px);
2499
- padding: 1rem 1.5rem 2rem;
2500
- overflow-y: auto; }
2501
-
2502
- ._1lzjD {
2503
- width: 100%;
2504
- top: calc(100% + 4px) !important;
2505
- left: unset !important;
2506
- right: 0 !important;
2507
- transform: none !important;
2508
- border-radius: 6px;
2509
- box-shadow: 0px 8px 15px #989898;
2510
- border: none;
2511
- padding: 0 8px; }
2512
- ._1lzjD:after {
2513
- display: none; }
2514
- ._1lzjD ._1y7K9 {
2515
- background: transparent; }
2516
-
2517
- ._1Y-55 {
2518
- font-size: 14px;
2519
- line-height: 1; }
2520
- ._1Y-55:active {
2521
- background-color: transparent !important; }
2522
-
2523
- ._1fBXY {
2524
- width: 210px;
2525
- top: 40px !important;
2526
- left: -80px !important;
2527
- transform: none !important;
2528
- border-radius: 6px;
2529
- box-shadow: 0px 8px 15px #989898;
2530
- border: none;
2531
- padding: 0 8px; }
2532
- ._1fBXY:after {
2533
- display: none; }
2534
- ._1fBXY ._1y7K9 {
2535
- background: transparent; }
2536
-
2537
- ._3Szun {
2538
- color: #242424;
2539
- display: flex;
2540
- padding: 8px;
2541
- border-radius: 6px; }
2542
- ._3Szun:hover {
2543
- background-color: #f1faff; }
2544
-
2545
- ._2HhLb {
2546
- background-color: #f1faff; }
2547
-
2548
- ._3WYHC {
2549
- font-weight: 600;
2550
- border-top: 1px solid #27347d29;
2551
- padding-top: 10px; }
2552
- ._3WYHC._2-9ix {
2553
- color: #8b0000; }
2554
- ._3WYHC ._1r4pn {
2555
- margin-right: 12px; }
2556
-
2557
- ._2ZozT {
2558
- width: 40px;
2559
- height: 40px;
2560
- border-radius: 50%;
2561
- margin-right: 12px;
2562
- display: flex;
2563
- justify-content: center;
2564
- align-items: center;
2565
- font-size: 20px;
2566
- font-weight: 600;
2567
- line-height: 1;
2568
- color: #FFF; }
2569
- ._2ZozT img {
2570
- width: 100%;
2571
- height: 100%;
2572
- border-radius: 50%;
2573
- -o-object-fit: cover;
2574
- object-fit: cover;
2575
- border: 1px solid #DFE3E8; }
2576
-
2577
2479
  ._8niRT {
2578
2480
  width: 42px;
2579
2481
  height: 42px; }
2580
2482
 
2581
- ._1_ONI {
2582
- padding: 0.5rem 1.5rem;
2583
- border-radius: 6px;
2584
- border: 1px solid #EBEBFF; }
2585
- ._2FdrR {
2586
- font-weight: 700;
2587
- font-size: 14px; }
2588
- ._3mgRf {
2589
- font-weight: 700;
2590
- font-size: 14px;
2591
- color: #414E62; }
2592
-
2593
- ._2h0kA > span:last-child,
2594
- ._2h0kA {
2595
- font-weight: 600 !important;
2596
- font-size: 13px !important;
2597
- color: #202B37 !important; }
2598
-
2599
- ._exAl- {
2600
- font-weight: 600;
2601
- font-size: 13px;
2602
- border: 1px solid #97A1AF;
2603
- padding: 12px; }
2604
- ._exAl-:focus {
2605
- box-shadow: none; }
2606
-
2607
- ._2ksp8:hover {
2608
- color: #FFF; }
2609
-
2610
2483
  ._2Kt_g {
2611
2484
  border-radius: 50%;
2612
2485
  width: 36px;