mario-education 2.4.484-release → 2.4.486-feedback
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.
- package/dist/components/icons/ArrowBackIcon.d.ts +4 -0
- package/dist/components/icons/ArrowRightIcon.d.ts +2 -0
- package/dist/components/icons/DarkIcon.d.ts +4 -0
- package/dist/components/icons/IdentifyIcon.d.ts +2 -0
- package/dist/components/icons/LightIcon.d.ts +4 -0
- package/dist/components/icons/MarioAIIcon.d.ts +2 -0
- package/dist/components/icons/MoreIcon.d.ts +2 -0
- package/dist/components/icons/SummarizeIcon.d.ts +2 -0
- package/dist/components/icons/UnderstandIcon.d.ts +2 -0
- package/dist/containers/Dashboard/hooks/useChartDatas.d.ts +1 -0
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +2 -0
- package/dist/containers/MarioAi/cofigs/constants.d.ts +9 -0
- package/dist/containers/MarioAi/cofigs/type.d.ts +36 -0
- package/dist/containers/MarioAi/components/CardHeader.d.ts +4 -0
- package/dist/containers/MarioAi/components/ChatContent.d.ts +6 -0
- package/dist/containers/MarioAi/components/ChatHeader.d.ts +9 -0
- package/dist/containers/MarioAi/components/HeaderAI.d.ts +2 -0
- package/dist/containers/MarioAi/components/ListPrompts.d.ts +6 -0
- package/dist/containers/MarioAi/hooks/useAIChat.d.ts +8 -0
- package/dist/containers/MarioAi/hooks/useAIMario.d.ts +9 -0
- package/dist/containers/MarioAi/hooks/useGeminiAI.d.ts +6 -0
- package/dist/containers/MarioAi/hooks/useSummarizeResponse.d.ts +6 -0
- package/dist/containers/MarioAi/views/AIMario.d.ts +2 -0
- package/dist/containers/MarioAi/views/ChatWithAI.d.ts +2 -0
- package/dist/containers/MarioAi/views/MarioAi.d.ts +3 -0
- package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +4 -1
- package/dist/containers/SurveyDashboard/views/SurveyPortal.d.ts +2 -0
- package/dist/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +2 -0
- package/dist/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +1 -1
- package/dist/index.css +474 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +498 -92
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +480 -75
- package/dist/index.modern.js.map +1 -1
- package/dist/services/questionCategoryService.d.ts +1 -1
- package/package.json +2 -2
|
@@ -58,5 +58,7 @@ declare const useDashboard: () => {
|
|
|
58
58
|
sortOrder: string;
|
|
59
59
|
};
|
|
60
60
|
goToSession: (sessionId: number, sessionResultId: number) => void;
|
|
61
|
+
isExistQuestion: boolean;
|
|
62
|
+
setIsExistQuestion: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
61
63
|
};
|
|
62
64
|
export default useDashboard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICardAI, IChat, IOptionDate, IPrompt } from "./type";
|
|
2
|
+
export declare const CALENDAR_OPTIONS: IOptionDate[];
|
|
3
|
+
export declare const CARD_AI_HEADER: ICardAI[];
|
|
4
|
+
export declare const PROMPTS: IPrompt[];
|
|
5
|
+
export declare const THEME: {
|
|
6
|
+
LIGHT: string;
|
|
7
|
+
DARK: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const CHAT: IChat[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface ISummarizeResponse {
|
|
2
|
+
studentName: string;
|
|
3
|
+
answer: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IFilter {
|
|
6
|
+
startDate?: number;
|
|
7
|
+
endDate?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IOptionDate {
|
|
10
|
+
label: string;
|
|
11
|
+
startDate: number;
|
|
12
|
+
endDate: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ICardAI {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
icon: any;
|
|
18
|
+
link?: string;
|
|
19
|
+
id: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ICardHeader {
|
|
22
|
+
card: ICardAI;
|
|
23
|
+
}
|
|
24
|
+
export interface IPrompt {
|
|
25
|
+
icon: any;
|
|
26
|
+
title: string;
|
|
27
|
+
time: string;
|
|
28
|
+
id: number;
|
|
29
|
+
}
|
|
30
|
+
export interface IChat {
|
|
31
|
+
id: number;
|
|
32
|
+
message: string;
|
|
33
|
+
time: string;
|
|
34
|
+
isUser: boolean;
|
|
35
|
+
options?: string[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useAIMario: () => {
|
|
2
|
+
handleClickAction: (event: React.MouseEvent<HTMLButtonElement>, id: string) => void;
|
|
3
|
+
handleCloseAction: () => void;
|
|
4
|
+
anchorEl: HTMLButtonElement | null;
|
|
5
|
+
popoverId: string | undefined;
|
|
6
|
+
openPopover: boolean;
|
|
7
|
+
goToChat: (id: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export default useAIMario;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FILTER_SURVEY, SURVEY_RESPONSE, TOTAL_TYPE } from "../configs/types";
|
|
3
3
|
import { TYPE_SURVEY_OPTION } from "../configs/constants";
|
|
4
4
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
5
|
-
declare const useListSurvey: () => {
|
|
5
|
+
declare const useListSurvey: (pageSize?: number | undefined) => {
|
|
6
6
|
itemSelectedId: number;
|
|
7
7
|
itemSelectedStudentId: number;
|
|
8
8
|
changeFilters: (updatedFilters: any) => void;
|
|
@@ -44,5 +44,8 @@ declare const useListSurvey: () => {
|
|
|
44
44
|
handleCloseModelLink: () => void;
|
|
45
45
|
handleCopyToClipboard: (text: string) => void;
|
|
46
46
|
linkAnonymousSurvey: string;
|
|
47
|
+
goToTemplateSurvey: () => void;
|
|
48
|
+
goToDashboardSurvey: () => void;
|
|
49
|
+
goToSurveyList: () => void;
|
|
47
50
|
};
|
|
48
51
|
export default useListSurvey;
|