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
@@ -0,0 +1,19 @@
1
+ export function setup(): {
2
+ id: number;
3
+ code: string;
4
+ teacherAuthorizeHeaders: {
5
+ Authorization: string;
6
+ } & {
7
+ "Academy-Headers": string;
8
+ "Content-Type": string;
9
+ "Accept-Language": string;
10
+ };
11
+ }[];
12
+ export default function _default(data: any): void;
13
+ export namespace options {
14
+ export { MAX_DEMO_STUDENTS as vus };
15
+ export { MAX_DEMO_STUDENTS as iterations };
16
+ }
17
+ declare const AcademyHeaders: "Academy-Headers";
18
+ declare const MAX_DEMO_STUDENTS: number;
19
+ export {};
@@ -0,0 +1,19 @@
1
+ export function setup(): {
2
+ id: number;
3
+ code: string;
4
+ teacherAuthorizeHeaders: {
5
+ Authorization: string;
6
+ } & {
7
+ "Academy-Headers": string;
8
+ "Content-Type": string;
9
+ "Accept-Language": string;
10
+ };
11
+ }[];
12
+ export default function _default(data: any): void;
13
+ export namespace options {
14
+ export { MAX_DEMO_STUDENTS as vus };
15
+ export { MAX_DEMO_STUDENTS as iterations };
16
+ }
17
+ declare const AcademyHeaders: "Academy-Headers";
18
+ declare const MAX_DEMO_STUDENTS: 200;
19
+ export {};
@@ -0,0 +1,19 @@
1
+ export function setup(): {
2
+ id: number;
3
+ code: string;
4
+ teacherAuthorizeHeaders: {
5
+ Authorization: string;
6
+ } & {
7
+ "Academy-Headers": string;
8
+ "Content-Type": string;
9
+ "Accept-Language": string;
10
+ };
11
+ }[];
12
+ export default function _default(data: any): void;
13
+ export namespace options {
14
+ export { MAX_DEMO_STUDENTS as vus };
15
+ export { MAX_DEMO_STUDENTS as iterations };
16
+ }
17
+ declare const AcademyHeaders: "Academy-Headers";
18
+ declare const MAX_DEMO_STUDENTS: 96;
19
+ export {};
@@ -0,0 +1,19 @@
1
+ export function setup(): {
2
+ id: number;
3
+ code: string;
4
+ teacherAuthorizeHeaders: {
5
+ Authorization: string;
6
+ } & {
7
+ "Academy-Headers": string;
8
+ "Content-Type": string;
9
+ "Accept-Language": string;
10
+ };
11
+ }[];
12
+ export default function _default(data: any): void;
13
+ export namespace options {
14
+ export { MAX_DEMO_STUDENTS as vus };
15
+ export { MAX_DEMO_STUDENTS as iterations };
16
+ }
17
+ declare const AcademyHeaders: "Academy-Headers";
18
+ declare const MAX_DEMO_STUDENTS: 400;
19
+ export {};
@@ -4,3 +4,7 @@ export declare enum ExamStatus {
4
4
  InProgress = 2,
5
5
  Completed = 3
6
6
  }
7
+ export declare enum QuestionAnswerType {
8
+ ChoiceOption = 0,
9
+ Textual = 1
10
+ }
@@ -1,7 +1,7 @@
1
1
  import { PreparedType } from './textbook';
2
2
  import { ExamEvent } from "./examEvent";
3
- import { ExamStatus } from "./examStatus";
3
+ import { ExamStatus, QuestionAnswerType } from "./examStatus";
4
4
  import { OrderType } from "./order";
5
5
  import { RecentUserAction } from "./recentUserAction";
6
6
  import { UserSortColumn } from "./userSortColumn";
7
- export { PreparedType, OrderType, ExamStatus, RecentUserAction, UserSortColumn, ExamEvent };
7
+ export { PreparedType, OrderType, QuestionAnswerType, ExamStatus, RecentUserAction, UserSortColumn, ExamEvent };
@@ -1,3 +1,4 @@
1
+ import { QuestionAnswerType } from "../enums";
1
2
  import { AnswerResponseSignal } from "../enums/answerResponseSignal";
2
3
  export declare type Category = {
3
4
  id: number;
@@ -31,6 +32,7 @@ export declare type Question = {
31
32
  selectedAnswers: string;
32
33
  topDuration?: number | null;
33
34
  questionOrder: number;
35
+ questionAnswerType?: QuestionAnswerType;
34
36
  };
35
37
  export declare type ExamResult = {
36
38
  description: string;
@@ -1,3 +1,4 @@
1
+ import { QuestionAnswerType } from "../enums";
1
2
  export declare type QuestionResponse = {
2
3
  id?: number;
3
4
  numberOfAnswers: number;
@@ -6,6 +7,8 @@ export declare type QuestionResponse = {
6
7
  categoryId?: number;
7
8
  article: number;
8
9
  questionOrder: number;
10
+ questionAnswerType?: QuestionAnswerType;
11
+ textualAnswer?: string;
9
12
  };
10
13
  export declare type Exam = {
11
14
  title: string;
package/package.json CHANGED
@@ -1,101 +1,102 @@
1
- {
2
- "name": "touchstudy-core",
3
- "version": "0.1.120",
4
- "description": "Contains core components && functions for TouchStudy project",
5
- "author": "brss",
6
- "license": "MIT",
7
- "repository": "brss/touchstudy-core",
8
- "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
- "source": "src/index.tsx",
11
- "engines": {
12
- "node": ">=10"
13
- },
14
- "dependencies": {
15
- "@hookform/resolvers": "^3.3.3",
16
- "@leecheuk/react-google-login": "^5.4.1",
17
- "@mui/material": "^5.14.12",
18
- "@mui/x-date-pickers": "^6.19.6",
19
- "@reduxjs/toolkit": "^2.0.1",
20
- "axios": "^1.6.2",
21
- "ckeditor4-react": "5.2.0",
22
- "formik": "^2.4.5",
23
- "gapi-script": "^1.2.0",
24
- "html2pdf.js": "^0.10.2",
25
- "i18next": "^23.7.16",
26
- "link": "^2.1.0",
27
- "lodash": "^4.17.21",
28
- "moment": "^2.29.4",
29
- "node-sass": "^7.0.3",
30
- "pusher-js": "^8.4.0-rc2",
31
- "react-google-recaptcha-v3": "^1.10.1",
32
- "react-hook-form": "^7.49.2",
33
- "react-i18next": "^14.0.0",
34
- "react-icons": "^4.12.0",
35
- "react-select": "^5.8.0",
36
- "react-slick": "^0.29.0",
37
- "react-toastify": "^9.1.3",
38
- "react-virtualized": "^9.22.5",
39
- "yup": "^1.3.3"
40
- },
41
- "peerDependencies": {
42
- "react": "^18.2.0",
43
- "react-dom": "^18.2.0",
44
- "react-redux": "^9.0.4"
45
- },
46
- "scripts": {
47
- "build": "microbundle-crl --no-compress --format modern,cjs",
48
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
49
- "prepare": "run-s build",
50
- "test": "run-s test:unit test:lint test:build",
51
- "test:build": "run-s build",
52
- "test:lint": "eslint .",
53
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
54
- "test:watch": "react-scripts test --env=jsdom"
55
- },
56
- "files": [
57
- "dist"
58
- ],
59
- "devDependencies": {
60
- "@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
61
- "@testing-library/jest-dom": "^5.17.0",
62
- "@testing-library/react": "^13.4.0",
63
- "@testing-library/user-event": "^13.5.0",
64
- "@types/ckeditor4": "4.20.7",
65
- "@types/file-saver": "2.0.7",
66
- "@types/jest": "^27.5.2",
67
- "@types/lodash": "^4.14.202",
68
- "@types/node": "^16.18.68",
69
- "@types/react": "^18.2.45",
70
- "@types/react-dom": "^18.2.18",
71
- "@types/react-redux": "^7.1.33",
72
- "@types/react-router-dom": "^5.3.3",
73
- "@types/react-slick": "^0.23.13",
74
- "@types/react-virtualized": "^9.22.0",
75
- "@types/redux-logger": "^3.0.12",
76
- "@types/resize-observer-browser": "^0.1.11",
77
- "@types/yup": "^0.32.0",
78
- "apexcharts": "3.15.5",
79
- "babel-eslint": "^10.0.3",
80
- "cross-env": "^7.0.3",
81
- "eslint": "^8.56.0",
82
- "eslint-config-prettier": "^9.1.0",
83
- "eslint-config-standard": "^17.1.0",
84
- "eslint-config-standard-react": "^13.0.0",
85
- "eslint-plugin-import": "^2.29.1",
86
- "eslint-plugin-node": "^11.1.0",
87
- "eslint-plugin-prettier": "^5.1.2",
88
- "eslint-plugin-promise": "^6.1.1",
89
- "eslint-plugin-react": "^7.33.2",
90
- "eslint-plugin-standard": "^5.0.0",
91
- "file-saver": "^2.0.5",
92
- "gh-pages": "^6.1.1",
93
- "microbundle-crl": "^0.13.11",
94
- "npm-run-all": "^4.1.5",
95
- "prettier": "^3.1.1",
96
- "react-apexcharts": "1.3.6",
97
- "react-scripts": "5.0.1",
98
- "redux-logger": "^3.0.6",
99
- "typescript": "^4.9.5"
100
- }
101
- }
1
+ {
2
+ "name": "touchstudy-core",
3
+ "version": "0.1.121",
4
+ "description": "Contains core components && functions for TouchStudy project",
5
+ "author": "brss",
6
+ "license": "MIT",
7
+ "repository": "brss/touchstudy-core",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.modern.js",
10
+ "source": "src/index.tsx",
11
+ "engines": {
12
+ "node": ">=10"
13
+ },
14
+ "dependencies": {
15
+ "@hookform/resolvers": "^3.3.3",
16
+ "@leecheuk/react-google-login": "^5.4.1",
17
+ "@mui/material": "^5.14.12",
18
+ "@mui/x-date-pickers": "^6.19.6",
19
+ "@reduxjs/toolkit": "^2.0.1",
20
+ "axios": "^1.6.2",
21
+ "better-react-mathjax": "^2.1.0",
22
+ "ckeditor4-react": "5.2.0",
23
+ "formik": "^2.4.5",
24
+ "gapi-script": "^1.2.0",
25
+ "html2pdf.js": "^0.10.2",
26
+ "i18next": "^23.7.16",
27
+ "link": "^2.1.0",
28
+ "lodash": "^4.17.21",
29
+ "moment": "^2.29.4",
30
+ "node-sass": "^7.0.3",
31
+ "pusher-js": "^8.4.0-rc2",
32
+ "react-google-recaptcha-v3": "^1.10.1",
33
+ "react-hook-form": "^7.49.2",
34
+ "react-i18next": "^14.0.0",
35
+ "react-icons": "^4.12.0",
36
+ "react-select": "^5.8.0",
37
+ "react-slick": "^0.29.0",
38
+ "react-toastify": "^9.1.3",
39
+ "react-virtualized": "^9.22.5",
40
+ "yup": "^1.3.3"
41
+ },
42
+ "peerDependencies": {
43
+ "react": "^18.2.0",
44
+ "react-dom": "^18.2.0",
45
+ "react-redux": "^9.0.4"
46
+ },
47
+ "scripts": {
48
+ "build": "microbundle-crl --no-compress --format modern,cjs",
49
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
50
+ "prepare": "run-s build",
51
+ "test": "run-s test:unit test:lint test:build",
52
+ "test:build": "run-s build",
53
+ "test:lint": "eslint .",
54
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
55
+ "test:watch": "react-scripts test --env=jsdom"
56
+ },
57
+ "files": [
58
+ "dist"
59
+ ],
60
+ "devDependencies": {
61
+ "@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
62
+ "@testing-library/jest-dom": "^5.17.0",
63
+ "@testing-library/react": "^13.4.0",
64
+ "@testing-library/user-event": "^13.5.0",
65
+ "@types/ckeditor4": "4.20.7",
66
+ "@types/file-saver": "2.0.7",
67
+ "@types/jest": "^27.5.2",
68
+ "@types/lodash": "^4.14.202",
69
+ "@types/node": "^16.18.68",
70
+ "@types/react": "^18.2.45",
71
+ "@types/react-dom": "^18.2.18",
72
+ "@types/react-redux": "^7.1.33",
73
+ "@types/react-router-dom": "^5.3.3",
74
+ "@types/react-slick": "^0.23.13",
75
+ "@types/react-virtualized": "^9.22.0",
76
+ "@types/redux-logger": "^3.0.12",
77
+ "@types/resize-observer-browser": "^0.1.11",
78
+ "@types/yup": "^0.32.0",
79
+ "apexcharts": "3.15.5",
80
+ "babel-eslint": "^10.0.3",
81
+ "cross-env": "^7.0.3",
82
+ "eslint": "^8.56.0",
83
+ "eslint-config-prettier": "^9.1.0",
84
+ "eslint-config-standard": "^17.1.0",
85
+ "eslint-config-standard-react": "^13.0.0",
86
+ "eslint-plugin-import": "^2.29.1",
87
+ "eslint-plugin-node": "^11.1.0",
88
+ "eslint-plugin-prettier": "^5.1.2",
89
+ "eslint-plugin-promise": "^6.1.1",
90
+ "eslint-plugin-react": "^7.33.2",
91
+ "eslint-plugin-standard": "^5.0.0",
92
+ "file-saver": "^2.0.5",
93
+ "gh-pages": "^6.1.1",
94
+ "microbundle-crl": "^0.13.11",
95
+ "npm-run-all": "^4.1.5",
96
+ "prettier": "^3.1.1",
97
+ "react-apexcharts": "1.3.6",
98
+ "react-scripts": "5.0.1",
99
+ "redux-logger": "^3.0.6",
100
+ "typescript": "^4.9.5"
101
+ }
102
+ }
@@ -1,7 +0,0 @@
1
- import { FC, ReactElement } from "react";
2
- interface IListProps<T> {
3
- data: T[];
4
- render: (item: T, index: number) => ReactElement;
5
- }
6
- declare const List: FC<IListProps<any>>;
7
- export default List;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- openCreateQuestionDialog: boolean;
4
- toggleCreateQuestion: () => void;
5
- handleCreateQuestion: any;
6
- examSessionId: number;
7
- };
8
- export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId }: Props): React.JSX.Element;
9
- export {};
@@ -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,14 +0,0 @@
1
- import { FC, MouseEvent } from "react";
2
- export declare type Action = {
3
- label: string;
4
- startIcon?: JSX.Element;
5
- endIcon?: JSX.Element;
6
- style?: object;
7
- textStyle?: object;
8
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
- };
10
- declare type Props = {
11
- actions: Action[];
12
- };
13
- declare const ActionsTooltip: FC<Props>;
14
- export default ActionsTooltip;
@@ -1,14 +0,0 @@
1
- import { FC } from "react";
2
- declare type Action = {
3
- label: string;
4
- startIcon?: JSX.Element;
5
- endIcon?: JSX.Element;
6
- onClick?: (event: any) => void;
7
- style?: object;
8
- textStyle?: object;
9
- };
10
- declare type Props = {
11
- actions: Action[];
12
- };
13
- declare const ActionsTooltip: FC<Props>;
14
- export default ActionsTooltip;
@@ -1,6 +0,0 @@
1
- import { FC, MouseEvent, PropsWithChildren } from "react";
2
- interface Props extends PropsWithChildren {
3
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
4
- }
5
- declare const NewNoteButton: FC<Props>;
6
- export default NewNoteButton;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- import { NoteResponse } from "../../../../../utils/types/note";
3
- import { TooltipProps } from "../configs/interfaces";
4
- interface NoteItemProps extends TooltipProps<NoteResponse> {
5
- data: NoteResponse;
6
- openTooltip: boolean;
7
- }
8
- declare const NoteItem: FC<NoteItemProps>;
9
- export default NoteItem;
@@ -1,12 +0,0 @@
1
- import { FC, RefObject } from "react";
2
- import { NoteResponse } from "../../../../../utils/types/note";
3
- import { TooltipProps } from "../configs/interfaces";
4
- interface NoteListProps extends TooltipProps<NoteResponse> {
5
- data: NoteResponse[];
6
- selectedItem?: NoteResponse;
7
- observerTarget: RefObject<HTMLDivElement>;
8
- loading: boolean;
9
- onLoadMore: () => void;
10
- }
11
- declare const NoteList: FC<NoteListProps>;
12
- export default NoteList;
@@ -1,2 +0,0 @@
1
- import { NoteSearchQuery } from "../../../../Notes/configs/types";
2
- export declare const StudentNoteFilter: NoteSearchQuery;
@@ -1,4 +0,0 @@
1
- export interface TooltipProps<T> {
2
- onClose: () => void;
3
- onOpen: (note: T) => void;
4
- }
@@ -1,8 +0,0 @@
1
- import { NoteResponse } from "../../../../../utils/types/note";
2
- declare const useNotes: () => {
3
- t: any;
4
- selectedNote: NoteResponse | undefined;
5
- handleCloseTooltip: () => void;
6
- handleOpenTooltip: (note: NoteResponse) => void;
7
- };
8
- export default useNotes;
@@ -1,67 +0,0 @@
1
- export declare const NoteListStyles: {
2
- p: number;
3
- bgcolor: string;
4
- border: string;
5
- borderRadius: string;
6
- minHeight: string;
7
- };
8
- export declare const newButtonStyle: {
9
- color: string;
10
- borderColor: string;
11
- };
12
- export declare const NoteItemRootStyle: {
13
- bgcolor: string;
14
- paddingInline: number;
15
- paddingBlock: number;
16
- borderRadius: string;
17
- };
18
- export declare const NoteItemLeftTextStyle: {
19
- color: string;
20
- fontSize: string;
21
- fontWeight: number;
22
- };
23
- export declare const NoteItemMiddleTextStyle: {
24
- color: string;
25
- fontSize: string;
26
- fontWeight: number;
27
- };
28
- export declare const NoteItemContentTextStyle: {
29
- color: string;
30
- fontSize: string;
31
- fontWeight: number;
32
- };
33
- export declare const NoteItemRightTextStyle: {
34
- color: string;
35
- fontSize: string;
36
- fontWeight: number;
37
- };
38
- export declare const NoteItemStyles: {
39
- root: {
40
- bgcolor: string;
41
- paddingInline: number;
42
- paddingBlock: number;
43
- borderRadius: string;
44
- };
45
- text: {
46
- left: {
47
- color: string;
48
- fontSize: string;
49
- fontWeight: number;
50
- };
51
- middle: {
52
- color: string;
53
- fontSize: string;
54
- fontWeight: number;
55
- };
56
- right: {
57
- color: string;
58
- fontSize: string;
59
- fontWeight: number;
60
- };
61
- };
62
- contentText: {
63
- color: string;
64
- fontSize: string;
65
- fontWeight: number;
66
- };
67
- };
@@ -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,14 +0,0 @@
1
- import { FC, MouseEvent } from "react";
2
- export declare type Action = {
3
- label: string;
4
- startIcon?: JSX.Element;
5
- endIcon?: JSX.Element;
6
- style?: object;
7
- textStyle?: object;
8
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
- };
10
- declare type Props = {
11
- actions: Action[];
12
- };
13
- declare const ActionsTooltip: FC<Props>;
14
- export default ActionsTooltip;
@@ -1,6 +0,0 @@
1
- import { FC, MouseEvent, PropsWithChildren } from "react";
2
- interface Props extends PropsWithChildren {
3
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
4
- }
5
- declare const NewNoteButton: FC<Props>;
6
- export default NewNoteButton;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- import { NoteResponse } from "../../../../../utils/types/note";
3
- import { TooltipProps } from "../configs/interfaces";
4
- interface NoteItemProps extends TooltipProps<NoteResponse> {
5
- data: NoteResponse;
6
- openTooltip: boolean;
7
- }
8
- declare const NoteItem: FC<NoteItemProps>;
9
- export default NoteItem;
@@ -1,2 +0,0 @@
1
- import { NoteSearchQuery } from "../../../../Notes/configs/types";
2
- export declare const StudentNoteFilter: NoteSearchQuery;
@@ -1,7 +0,0 @@
1
- export interface TooltipProps<T> {
2
- onClose: () => void;
3
- onOpen: (note: T) => void;
4
- }
5
- export interface StudentNotesProps {
6
- examCode?: string;
7
- }
@@ -1,12 +0,0 @@
1
- import { NoteResponse } from "../../../../../utils/types/note";
2
- import { StudentNotesProps } from "../configs/interfaces";
3
- declare const useStudentNotes: ({ examCode }: StudentNotesProps) => {
4
- t: any;
5
- notes: NoteResponse[];
6
- isLoading: boolean;
7
- selectedNote: NoteResponse | undefined;
8
- handleLoadMore: () => void;
9
- handleCloseTooltip: () => void;
10
- handleOpenTooltip: (note: NoteResponse) => void;
11
- };
12
- export default useStudentNotes;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- import { StudentNotesProps } from "./configs/interfaces";
3
- declare const StudentNotes: FC<StudentNotesProps>;
4
- export default StudentNotes;