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.
Files changed (37) hide show
  1. package/dist/components/icons/ArrowBackIcon.d.ts +4 -0
  2. package/dist/components/icons/ArrowRightIcon.d.ts +2 -0
  3. package/dist/components/icons/DarkIcon.d.ts +4 -0
  4. package/dist/components/icons/IdentifyIcon.d.ts +2 -0
  5. package/dist/components/icons/LightIcon.d.ts +4 -0
  6. package/dist/components/icons/MarioAIIcon.d.ts +2 -0
  7. package/dist/components/icons/MoreIcon.d.ts +2 -0
  8. package/dist/components/icons/SummarizeIcon.d.ts +2 -0
  9. package/dist/components/icons/UnderstandIcon.d.ts +2 -0
  10. package/dist/containers/Dashboard/hooks/useChartDatas.d.ts +1 -0
  11. package/dist/containers/Dashboard/hooks/useDashboard.d.ts +2 -0
  12. package/dist/containers/MarioAi/cofigs/constants.d.ts +9 -0
  13. package/dist/containers/MarioAi/cofigs/type.d.ts +36 -0
  14. package/dist/containers/MarioAi/components/CardHeader.d.ts +4 -0
  15. package/dist/containers/MarioAi/components/ChatContent.d.ts +6 -0
  16. package/dist/containers/MarioAi/components/ChatHeader.d.ts +9 -0
  17. package/dist/containers/MarioAi/components/HeaderAI.d.ts +2 -0
  18. package/dist/containers/MarioAi/components/ListPrompts.d.ts +6 -0
  19. package/dist/containers/MarioAi/hooks/useAIChat.d.ts +8 -0
  20. package/dist/containers/MarioAi/hooks/useAIMario.d.ts +9 -0
  21. package/dist/containers/MarioAi/hooks/useGeminiAI.d.ts +6 -0
  22. package/dist/containers/MarioAi/hooks/useSummarizeResponse.d.ts +6 -0
  23. package/dist/containers/MarioAi/views/AIMario.d.ts +2 -0
  24. package/dist/containers/MarioAi/views/ChatWithAI.d.ts +2 -0
  25. package/dist/containers/MarioAi/views/MarioAi.d.ts +3 -0
  26. package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +4 -1
  27. package/dist/containers/SurveyDashboard/views/SurveyPortal.d.ts +2 -0
  28. package/dist/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +2 -0
  29. package/dist/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +1 -1
  30. package/dist/index.css +474 -1
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +498 -92
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.modern.js +480 -75
  35. package/dist/index.modern.js.map +1 -1
  36. package/dist/services/questionCategoryService.d.ts +1 -1
  37. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ declare const ArrowBackIcon: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default ArrowBackIcon;
@@ -0,0 +1,2 @@
1
+ declare const ArrowRightIcon: () => JSX.Element;
2
+ export default ArrowRightIcon;
@@ -0,0 +1,4 @@
1
+ declare const DarkIcon: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default DarkIcon;
@@ -0,0 +1,2 @@
1
+ declare const IdentifyIcon: () => JSX.Element;
2
+ export default IdentifyIcon;
@@ -0,0 +1,4 @@
1
+ declare const LightIcon: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default LightIcon;
@@ -0,0 +1,2 @@
1
+ declare const MarioAIIcon: () => JSX.Element;
2
+ export default MarioAIIcon;
@@ -0,0 +1,2 @@
1
+ declare const MoreIcon: () => JSX.Element;
2
+ export default MoreIcon;
@@ -0,0 +1,2 @@
1
+ declare const SummarizeIcon: () => JSX.Element;
2
+ export default SummarizeIcon;
@@ -0,0 +1,2 @@
1
+ declare const UnderstandIcon: () => JSX.Element;
2
+ export default UnderstandIcon;
@@ -57,5 +57,6 @@ declare const useChartDatas: () => {
57
57
  sortOrder: string;
58
58
  };
59
59
  goToSession: (sessionId: number, sessionResultId: number) => void;
60
+ isExistQuestion: boolean;
60
61
  };
61
62
  export default useChartDatas;
@@ -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,4 @@
1
+ import { FC } from 'react';
2
+ import { ICardHeader } from '../cofigs/type';
3
+ declare const CardHeader: FC<ICardHeader>;
4
+ export default CardHeader;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface ChatContentProps {
3
+ theme: string;
4
+ }
5
+ declare const ChatContent: FC<ChatContentProps>;
6
+ export default ChatContent;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ interface ChatHeaderProps {
3
+ theme: string;
4
+ setTheme: (theme: string) => void;
5
+ goBack: () => void;
6
+ isOpenSideBar: boolean;
7
+ }
8
+ declare const ChatHeader: FC<ChatHeaderProps>;
9
+ export default ChatHeader;
@@ -0,0 +1,2 @@
1
+ declare const HeaderAI: () => JSX.Element;
2
+ export default HeaderAI;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface IProps {
3
+ maxHeight: number;
4
+ }
5
+ declare const ListPrompts: FC<IProps>;
6
+ export default ListPrompts;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const useAIChat: () => {
3
+ theme: string;
4
+ setTheme: import("react").Dispatch<import("react").SetStateAction<string>>;
5
+ goBack: () => void;
6
+ isOpenSideBar: any;
7
+ };
8
+ export default useAIChat;
@@ -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;
@@ -0,0 +1,6 @@
1
+ declare const useGeminiAI: () => {
2
+ askGeminiAI: (summarizeResponses: any) => Promise<void>;
3
+ lowEnergyStudents: string[];
4
+ happyStudents: string[];
5
+ };
6
+ export default useGeminiAI;
@@ -0,0 +1,6 @@
1
+ import { IOptionDate, ISummarizeResponse } from "../cofigs/type";
2
+ declare const useSummarizeResponse: () => {
3
+ handleChangeFilter: (option: IOptionDate) => void;
4
+ summarizeResponses: ISummarizeResponse[];
5
+ };
6
+ export default useSummarizeResponse;
@@ -0,0 +1,2 @@
1
+ declare const AIMario: () => JSX.Element;
2
+ export default AIMario;
@@ -0,0 +1,2 @@
1
+ declare const ChatWithAI: () => JSX.Element;
2
+ export default ChatWithAI;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const MarioAi: React.FC;
3
+ export default MarioAi;
@@ -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;
@@ -0,0 +1,2 @@
1
+ declare const SurveyPortal: () => JSX.Element;
2
+ export default SurveyPortal;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  declare type questionCateDetail = {
3
3
  name: string;
4
+ description?: string;
5
+ isFavorite?: boolean;
4
6
  questionIds?: number[];
5
7
  };
6
8
  declare type TemplateQuestion = {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const useTemplateCateList: () => {
2
+ declare const useTemplateCateList: (isFavorite?: boolean | undefined) => {
3
3
  questionCateList: any;
4
4
  totalItems: any;
5
5
  filters: import("mario-core").Filter;