mario-education 2.4.600-feedback → 2.4.600-release

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.
@@ -1,3 +1,3 @@
1
1
  import { IFrequencyModeDetail } from '../configs/type';
2
- declare const FrequencyModeDetail: ({ sections, onChange }: IFrequencyModeDetail) => JSX.Element;
2
+ declare const FrequencyModeDetail: ({ sections, onChange, onViewQuestions }: IFrequencyModeDetail) => JSX.Element;
3
3
  export default FrequencyModeDetail;
@@ -2,6 +2,7 @@ interface IProps {
2
2
  id: number;
3
3
  data: any;
4
4
  index?: number;
5
+ onViewQuestions?: (data: any) => void;
5
6
  }
6
- declare const SortableItem: ({ id, data, index }: IProps) => JSX.Element;
7
+ declare const SortableItem: ({ id, data, index, onViewQuestions }: IProps) => JSX.Element;
7
8
  export default SortableItem;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { IWellBeingSection } from '../configs/type';
3
+ interface IProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ sectionSelected: IWellBeingSection;
7
+ }
8
+ declare const ViewQuestionsModal: FC<IProps>;
9
+ export default ViewQuestionsModal;
@@ -1,4 +1,4 @@
1
- import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup } from "./type";
1
+ import { IWellBeingFlowContact, Frequency_Mode, Frequency_Setting, IWellBeingSetup, IWellBeingSection } from "./type";
2
2
  export declare const FrequencyMode: {
3
3
  value: Frequency_Mode;
4
4
  title: string;
@@ -10,3 +10,4 @@ export declare const FrequencySetting: {
10
10
  }[];
11
11
  export declare const InitialContactFlow: IWellBeingFlowContact;
12
12
  export declare const initSetup: IWellBeingSetup;
13
+ export declare const DefaultSection: IWellBeingSection;
@@ -23,6 +23,7 @@ export interface IWellBeingSection {
23
23
  iconUrl: string;
24
24
  order: number;
25
25
  defaultOrder: number;
26
+ questions: string[];
26
27
  }
27
28
  export interface IWellBeingFlowContact {
28
29
  id: number;
@@ -33,4 +34,10 @@ export interface IWellBeingFlowContact {
33
34
  export interface IFrequencyModeDetail {
34
35
  sections: IWellBeingSection[];
35
36
  onChange: Function;
37
+ onViewQuestions: (data: any) => void;
38
+ }
39
+ export interface IQuestionBySection {
40
+ sections: IWellBeingSection[];
41
+ onChange: Function;
42
+ onViewQuestions: (data: any) => void;
36
43
  }
@@ -12,5 +12,9 @@ declare const useFrequencyAndSetup: () => {
12
12
  contacts: IWellBeingFlowContact[];
13
13
  sections: IWellBeingSection[];
14
14
  onChangeSections: (orderSections: IWellBeingSection[]) => void;
15
+ onViewQuestions: (data: IWellBeingSection) => void;
16
+ sectionSelected: IWellBeingSection;
17
+ openViewQuestionModal: boolean;
18
+ onCloseViewQuestions: () => void;
15
19
  };
16
20
  export default useFrequencyAndSetup;
@@ -119,3 +119,16 @@ export interface IAnswer {
119
119
  startTime: string;
120
120
  teacherName: string;
121
121
  }
122
+ export interface AiRequest {
123
+ historyId?: number;
124
+ promptId: number;
125
+ labelTime: string;
126
+ startDate?: number;
127
+ endDate?: number;
128
+ studentName: string;
129
+ chatHistory: IChat[];
130
+ }
131
+ export interface FilterRequest {
132
+ startDate?: number;
133
+ endDate?: number;
134
+ }
@@ -8,6 +8,7 @@ interface ChatContentProps {
8
8
  inputString: string;
9
9
  setInputString?: Function;
10
10
  onSelectOption?: Function;
11
+ asking?: boolean;
11
12
  }
12
13
  declare const ChatContent: FC<ChatContentProps>;
13
14
  export default ChatContent;
@@ -12,5 +12,6 @@ declare const useAIChat: () => {
12
12
  submitPromptMessage: () => void;
13
13
  inputString: string;
14
14
  setInputString: import("react").Dispatch<import("react").SetStateAction<string>>;
15
+ asking: boolean;
15
16
  };
16
17
  export default useAIChat;
package/dist/index.css CHANGED
@@ -15608,6 +15608,10 @@ p._17qsx {
15608
15608
  color: #fff;
15609
15609
  transition: all 0.2s ease-in-out;
15610
15610
  box-shadow: 0px 6px 32px 0px #C09FF8B8; }
15611
+ ._2h1fv ._3kxy- ._2x_-F ._1N1T3 ._2iVL8:hover {
15612
+ background: #fff !important;
15613
+ color: #c7c7c7 !important;
15614
+ box-shadow: unset !important; }
15611
15615
  ._2h1fv ._3kxy- ._2x_-F ._1N1T3 ._2YD7M {
15612
15616
  align-items: center;
15613
15617
  display: flex;