@sonhero/explanation-package 1.9.1
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/README.md +40 -0
- package/dist/Quiz.d.ts +7 -0
- package/dist/QuizComponent.d.ts +23 -0
- package/dist/button/ButtonCancelSubmit.d.ts +3 -0
- package/dist/button/ErrorMessage.d.ts +7 -0
- package/dist/button/SappButton.d.ts +4 -0
- package/dist/button/YourAnswer.d.ts +6 -0
- package/dist/checkbox/HookFormCheckBox.d.ts +19 -0
- package/dist/checkbox/HookFormCheckBoxGroup.d.ts +37 -0
- package/dist/checkbox/SAPPCheckbox.d.ts +14 -0
- package/dist/common/ArrowIcon.d.ts +9 -0
- package/dist/common/CommentList.d.ts +9 -0
- package/dist/common/EssayRender.d.ts +52 -0
- package/dist/common/ExhibitMovableWindow.d.ts +13 -0
- package/dist/common/ExhibitRender.d.ts +21 -0
- package/dist/common/Explanation.d.ts +12 -0
- package/dist/common/FileDisplay.d.ts +14 -0
- package/dist/common/HookClick.d.ts +7 -0
- package/dist/common/Icon.d.ts +8 -0
- package/dist/common/MovableWindow.d.ts +11 -0
- package/dist/common/MoveQuestionBar.d.ts +16 -0
- package/dist/common/SappIcon.d.ts +11 -0
- package/dist/common/TopicDisplay.d.ts +34 -0
- package/dist/components/ArrowIcon.d.ts +8 -0
- package/dist/components/ExhibitMovableWindow.d.ts +13 -0
- package/dist/components/ExhibitMovableWindowV2.d.ts +13 -0
- package/dist/components/ExhibitRender.d.ts +20 -0
- package/dist/components/FileDisplay.d.ts +15 -0
- package/dist/components/HookClick.d.ts +7 -0
- package/dist/components/Icon.d.ts +17 -0
- package/dist/components/MovableWindow.d.ts +11 -0
- package/dist/components/SappIcon.d.ts +11 -0
- package/dist/components/comment-list/commentList.styles.d.ts +1 -0
- package/dist/components/comment-list/index.d.ts +11 -0
- package/dist/components/comment-list-v2/commentListV2.styles.d.ts +1 -0
- package/dist/components/comment-list-v2/index.d.ts +14 -0
- package/dist/components/comment-modal/CommentModal.d.ts +9 -0
- package/dist/components/comment-modal/commentModal.styles.d.ts +1 -0
- package/dist/components/comment-modal/index.d.ts +2 -0
- package/dist/components/common/button/ButtonCancelSubmit.d.ts +3 -0
- package/dist/components/common/button/ErrorMessage.d.ts +7 -0
- package/dist/components/common/button/SappButton.d.ts +4 -0
- package/dist/components/common/button/YourAnswer.d.ts +6 -0
- package/dist/components/common/button/YourAnswerV2.d.ts +7 -0
- package/dist/components/common/checkbox/HookFormCheckBoxGroup.d.ts +37 -0
- package/dist/components/common/checkbox/SAPPCheckbox.d.ts +14 -0
- package/dist/components/common/checkboxV2/HookFormCheckBoxGroupV2.d.ts +37 -0
- package/dist/components/common/checkboxV2/SAPPCheckboxV2.d.ts +15 -0
- package/dist/components/common/common.styles.d.ts +1 -0
- package/dist/components/common/divider/Divider.d.ts +5 -0
- package/dist/components/common/divider/styles.d.ts +1 -0
- package/dist/components/common/modal/PopupViewPdf.d.ts +13 -0
- package/dist/components/common/modal/SappModal.d.ts +64 -0
- package/dist/components/common/modal/SappModalImage.d.ts +7 -0
- package/dist/components/common/modal/SappModalVideo.d.ts +7 -0
- package/dist/components/common/pdf/pdf-viewer.d.ts +5 -0
- package/dist/components/common/pdf/popupViewPdf.d.ts +8 -0
- package/dist/components/common/radiobutton/HookFormRadioGroup.d.ts +26 -0
- package/dist/components/common/radiobutton/SAPPRadio.d.ts +15 -0
- package/dist/components/common/radiobuttonV2/HookFormRadioGroupV2.d.ts +26 -0
- package/dist/components/common/radiobuttonV2/SAPPRadioV2.d.ts +15 -0
- package/dist/components/common/video/Player.d.ts +2 -0
- package/dist/components/common/video/SAPPVideo.d.ts +10 -0
- package/dist/components/common/video/video.styles.d.ts +1 -0
- package/dist/components/editor/EditorReader.d.ts +13 -0
- package/dist/components/essay-render/essayRender.styles.d.ts +1 -0
- package/dist/components/essay-render/index.d.ts +87 -0
- package/dist/components/essay-render-v2/essayRenderV2.styles.d.ts +1 -0
- package/dist/components/essay-render-v2/index.d.ts +96 -0
- package/dist/components/explanation/explanation.styles.d.ts +1 -0
- package/dist/components/explanation/index.d.ts +13 -0
- package/dist/components/explanationV2/index.d.ts +13 -0
- package/dist/components/grading-file/GradingFileDisplay.d.ts +10 -0
- package/dist/components/grading-file/ListGradingFile.d.ts +8 -0
- package/dist/components/icons/CloseIcon.d.ts +5 -0
- package/dist/components/icons/ResizeIcon.d.ts +5 -0
- package/dist/components/icons/UploadIcon.d.ts +2 -0
- package/dist/components/icons/index.d.ts +12 -0
- package/dist/components/list-question/ListQuestion.d.ts +13 -0
- package/dist/components/list-question/QuestionGrid.d.ts +21 -0
- package/dist/components/list-question/types.d.ts +14 -0
- package/dist/components/move-question-bar/index.d.ts +16 -0
- package/dist/components/move-question-bar/moveQuestionBar.styles.d.ts +1 -0
- package/dist/components/questionType/ConstructedQuestion.d.ts +19 -0
- package/dist/components/questionType/DragNDrop.d.ts +17 -0
- package/dist/components/questionType/FillText.d.ts +21 -0
- package/dist/components/questionType/MatchingQuestion.d.ts +18 -0
- package/dist/components/questionType/MultipleChoiceQuestion.d.ts +4 -0
- package/dist/components/questionType/OneChoiceQuestion.d.ts +19 -0
- package/dist/components/questionType/SelectWordQuestion.d.ts +28 -0
- package/dist/components/questionType/questionTypes.styles.d.ts +1 -0
- package/dist/components/quiz-component/index.d.ts +25 -0
- package/dist/components/quiz-component/quizComponent.styles.d.ts +1 -0
- package/dist/components/quiz-component-v2/index.d.ts +29 -0
- package/dist/components/quiz-component-v2/questionTypeV2/ConstructedQuestionV2.d.ts +22 -0
- package/dist/components/quiz-component-v2/questionTypeV2/DragNDrop.d.ts +18 -0
- package/dist/components/quiz-component-v2/questionTypeV2/FillText.d.ts +21 -0
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomEdge.d.ts +4 -0
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomFlow.d.ts +11 -0
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomNode.d.ts +9 -0
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/index.d.ts +22 -0
- package/dist/components/quiz-component-v2/questionTypeV2/MultipleChoiceQuestion.d.ts +4 -0
- package/dist/components/quiz-component-v2/questionTypeV2/OneChoiceQuestion.d.ts +19 -0
- package/dist/components/quiz-component-v2/questionTypeV2/SelectWordQuestion.d.ts +21 -0
- package/dist/components/quiz-component-v2/questionTypeV2/questionTypes.styles.d.ts +1 -0
- package/dist/components/quiz-component-v2/quizComponentV2.styles.d.ts +1 -0
- package/dist/components/render-view/AIComment.d.ts +10 -0
- package/dist/components/render-view/MarkdownRender.d.ts +10 -0
- package/dist/components/render-view/ModalPreviewFile.d.ts +11 -0
- package/dist/components/styles.d.ts +1 -0
- package/dist/components/topic-display/index.d.ts +34 -0
- package/dist/components/topic-display/topicDisplay.styles.d.ts +1 -0
- package/dist/constant/icon.d.ts +3 -0
- package/dist/constant/index.d.ts +313 -0
- package/dist/contexts/index.d.ts +10 -0
- package/dist/conts/index.d.ts +273 -0
- package/dist/editor/EditorReader.d.ts +13 -0
- package/dist/editor/HookFormEditor.d.ts +22 -0
- package/dist/editor/editor.d.ts +18 -0
- package/dist/hooks/HookClick.d.ts +7 -0
- package/dist/hooks/useCommentMobileView.d.ts +3 -0
- package/dist/hooks/useListQuestionColumnsPerRow.d.ts +4 -0
- package/dist/hooks/useMousePosition.d.ts +5 -0
- package/dist/hooks/useTailwindBreakpoint.d.ts +17 -0
- package/dist/icons/CloseIcon.d.ts +4 -0
- package/dist/icons/UploadIcon.d.ts +2 -0
- package/dist/index.css +12 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +7685 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +7681 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/modal/PopupViewPdf.d.ts +8 -0
- package/dist/modal/SappModal.d.ts +64 -0
- package/dist/modal/SappModalImage.d.ts +7 -0
- package/dist/modal/SappModalVideo.d.ts +7 -0
- package/dist/pdf/pdf-viewer.d.ts +4 -0
- package/dist/pdf/popupViewPdf.d.ts +8 -0
- package/dist/questionType/ConstructedQuestion.d.ts +19 -0
- package/dist/questionType/DragNDrop.d.ts +17 -0
- package/dist/questionType/FillText.d.ts +21 -0
- package/dist/questionType/MatchingQuestion.d.ts +18 -0
- package/dist/questionType/MultipleChoiceQuestion.d.ts +4 -0
- package/dist/questionType/OneChoiceQuestion.d.ts +19 -0
- package/dist/questionType/SelectWordQuestion.d.ts +28 -0
- package/dist/radiobutton/HookFormRadioGroup.d.ts +26 -0
- package/dist/radiobutton/SAPPRadio.d.ts +15 -0
- package/dist/style.d.ts +1 -0
- package/dist/styles/base/colors.d.ts +1 -0
- package/dist/styles/base/typography.d.ts +1 -0
- package/dist/styles/base/utils.d.ts +1 -0
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/legacy/button.d.ts +1 -0
- package/dist/styles/legacy/caret.d.ts +1 -0
- package/dist/styles/legacy/condition.d.ts +1 -0
- package/dist/styles/legacy/custom-style.d.ts +1 -0
- package/dist/styles/legacy/editor-wrap.d.ts +1 -0
- package/dist/styles/legacy/fortune.d.ts +1 -0
- package/dist/styles/legacy/lucky-sheet.d.ts +1 -0
- package/dist/styles/legacy/resizable.d.ts +1 -0
- package/dist/styles/legacy/sapp-custom.d.ts +1 -0
- package/dist/styles/legacy/stream-player.d.ts +1 -0
- package/dist/styles/legacy/tailwind.d.ts +1 -0
- package/dist/styles/legacy/tooltip.d.ts +1 -0
- package/dist/styles/list-question/listQuestion.styles.d.ts +1 -0
- package/dist/styles/react-flow-styled.d.ts +1 -0
- package/dist/utils/dragandresize.d.ts +6 -0
- package/dist/utils/graded.d.ts +48 -0
- package/dist/utils/icons.d.ts +9 -0
- package/dist/utils/index.d.ts +24 -0
- package/dist/video/Player.d.ts +2 -0
- package/dist/video/SAPPVideo.d.ts +13 -0
- package/package.json +99 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IQuestionAnswer } from './types';
|
|
3
|
+
interface QuestionGridProps {
|
|
4
|
+
listQuestions: IQuestionAnswer[];
|
|
5
|
+
getActiveQuestion: (id: string) => void;
|
|
6
|
+
activeQuestionId?: string;
|
|
7
|
+
isMultipleChoice?: boolean;
|
|
8
|
+
isMultipleChoiceQuestion?: (question: IQuestionAnswer) => boolean;
|
|
9
|
+
layout?: 'navigation' | 'panel';
|
|
10
|
+
columnsPerRow?: number;
|
|
11
|
+
rowCount?: number;
|
|
12
|
+
isExpanded?: boolean;
|
|
13
|
+
showPagination?: boolean;
|
|
14
|
+
currentPage?: number;
|
|
15
|
+
totalPages?: number;
|
|
16
|
+
onPrevPage?: () => void;
|
|
17
|
+
onNextPage?: () => void;
|
|
18
|
+
handleCloseModal?: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const QuestionGrid: ({ listQuestions, getActiveQuestion, activeQuestionId, isMultipleChoice, isMultipleChoiceQuestion, layout, columnsPerRow, rowCount, isExpanded, showPagination, currentPage, totalPages, onPrevPage, onNextPage, handleCloseModal }: QuestionGridProps) => React.JSX.Element;
|
|
21
|
+
export default QuestionGrid;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IQuestionAnswer {
|
|
2
|
+
id: string;
|
|
3
|
+
position?: number | string;
|
|
4
|
+
active?: string;
|
|
5
|
+
is_correct?: boolean;
|
|
6
|
+
question?: {
|
|
7
|
+
qType?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface MultipleQuestionsData {
|
|
11
|
+
selectedResponseAnswers?: IQuestionAnswer[];
|
|
12
|
+
constructedResponseAnswers?: IQuestionAnswer[];
|
|
13
|
+
}
|
|
14
|
+
export declare type QuestionFilterType = 'all' | 'multiple' | 'constructed';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
activeQuestion: {
|
|
4
|
+
total_question: number;
|
|
5
|
+
index: string;
|
|
6
|
+
previous: {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
next: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
getActiveQuestion: (id: string) => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
declare const MoveQuestionBar: ({ activeQuestion, getActiveQuestion }: IProps) => React.JSX.Element;
|
|
16
|
+
export default MoveQuestionBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const moveQuestionBarStyle: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { ICommment, IFileAnswer } from 'constant';
|
|
3
|
+
export declare type IPreviewProp = {
|
|
4
|
+
reqIndex: number;
|
|
5
|
+
control: any;
|
|
6
|
+
name: string;
|
|
7
|
+
question_data: any;
|
|
8
|
+
defaultValue?: any;
|
|
9
|
+
answer_file?: IFileAnswer;
|
|
10
|
+
setOpenPdf?: any;
|
|
11
|
+
listGrades?: ICommment;
|
|
12
|
+
commentRef?: RefObject<HTMLElement>;
|
|
13
|
+
editorRef?: RefObject<HTMLElement>;
|
|
14
|
+
bodyRef?: RefObject<HTMLDivElement>;
|
|
15
|
+
grading_file?: IFileAnswer;
|
|
16
|
+
handleShowRequirement?: () => void;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: React.MemoExoticComponent<({ reqIndex, name, control, question_data, defaultValue, answer_file, setOpenPdf, listGrades, commentRef, editorRef, bodyRef, grading_file, handleShowRequirement }: IPreviewProp) => React.JSX.Element>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data?: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
extenalRef?: any;
|
|
11
|
+
corrects?: any;
|
|
12
|
+
solution?: string;
|
|
13
|
+
resetDefaultAnswer?: boolean;
|
|
14
|
+
allowUnHighLight?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const DragNDropPreivew: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
|
|
17
|
+
export default DragNDropPreivew;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
corrects?: {
|
|
11
|
+
id: string;
|
|
12
|
+
answer: string;
|
|
13
|
+
is_correct: boolean;
|
|
14
|
+
answer_position: number;
|
|
15
|
+
}[];
|
|
16
|
+
extenalRef?: any;
|
|
17
|
+
solution?: string;
|
|
18
|
+
allowUnHighLight?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const AddWordPreview: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
|
|
21
|
+
export default AddWordPreview;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
done?: boolean;
|
|
11
|
+
extenalRef?: any;
|
|
12
|
+
index?: number;
|
|
13
|
+
corrects?: any;
|
|
14
|
+
solution?: string;
|
|
15
|
+
allowUnHighLight?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type IPreviewProp = {
|
|
3
|
+
data: any;
|
|
4
|
+
control: any;
|
|
5
|
+
name?: string;
|
|
6
|
+
corrects?: {
|
|
7
|
+
[key: string]: boolean;
|
|
8
|
+
};
|
|
9
|
+
defaultValues?: any;
|
|
10
|
+
setValue?: any;
|
|
11
|
+
handleSaveHighLight?: any;
|
|
12
|
+
highlighted?: any;
|
|
13
|
+
removeHighlight?: any;
|
|
14
|
+
allowHighLight?: boolean;
|
|
15
|
+
solution?: any;
|
|
16
|
+
allowUnHighLight?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const OneChoiceQuestion: ({ data, control, corrects, name, defaultValues, setValue, solution }: IPreviewProp) => React.JSX.Element;
|
|
19
|
+
export default OneChoiceQuestion;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data: any;
|
|
4
|
+
handleSaveHighLight?: any;
|
|
5
|
+
highlighted?: any;
|
|
6
|
+
allowHighLight?: boolean;
|
|
7
|
+
defaultAnswer?: Array<{
|
|
8
|
+
answer_id: string;
|
|
9
|
+
answer_position: number;
|
|
10
|
+
}>;
|
|
11
|
+
corrects?: {
|
|
12
|
+
id: string;
|
|
13
|
+
answer: string;
|
|
14
|
+
is_correct: boolean;
|
|
15
|
+
answer_position: number;
|
|
16
|
+
}[];
|
|
17
|
+
extenalRef?: any;
|
|
18
|
+
solution?: string;
|
|
19
|
+
allowUnHighLight?: boolean;
|
|
20
|
+
isHideExhibit?: boolean;
|
|
21
|
+
exhibitText?: string;
|
|
22
|
+
onChange?: (values: Array<{
|
|
23
|
+
answer_id: string;
|
|
24
|
+
answer_position: number;
|
|
25
|
+
}>) => void;
|
|
26
|
+
}
|
|
27
|
+
declare const SelectWord: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
|
|
28
|
+
export default SelectWord;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const questionTypeStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldValues, UseFormReset } from 'react-hook-form';
|
|
3
|
+
export declare type QuizComponentRef = {
|
|
4
|
+
onSubmit: ({ activityId, tabId, quizId, then }: {
|
|
5
|
+
activityId: string;
|
|
6
|
+
tabId: string;
|
|
7
|
+
quizId: string;
|
|
8
|
+
then?: (e: any) => void;
|
|
9
|
+
}) => void;
|
|
10
|
+
reset: UseFormReset<FieldValues>;
|
|
11
|
+
};
|
|
12
|
+
declare type Props = {
|
|
13
|
+
activeQuestion?: any;
|
|
14
|
+
document_id: string;
|
|
15
|
+
getActiveQuestion: (id: string) => Promise<void>;
|
|
16
|
+
renderPdf?: ({ url, fileName }: {
|
|
17
|
+
url: string;
|
|
18
|
+
fileName?: string | undefined;
|
|
19
|
+
}) => React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
declare const QuizComponent: {
|
|
22
|
+
({ activeQuestion, document_id, getActiveQuestion, renderPdf }: Props): React.JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export default QuizComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const quizComponentStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldValues, UseFormReset } from 'react-hook-form';
|
|
3
|
+
import { MultipleQuestionsData, QuestionFilterType } from '@components/list-question/types';
|
|
4
|
+
export declare type QuizComponentV2Ref = {
|
|
5
|
+
onSubmit: ({ activityId, tabId, quizId, then }: {
|
|
6
|
+
activityId: string;
|
|
7
|
+
tabId: string;
|
|
8
|
+
quizId: string;
|
|
9
|
+
then?: (e: any) => void;
|
|
10
|
+
}) => void;
|
|
11
|
+
reset: UseFormReset<FieldValues>;
|
|
12
|
+
};
|
|
13
|
+
declare type Props = {
|
|
14
|
+
activeQuestion?: any;
|
|
15
|
+
document_id: string;
|
|
16
|
+
getActiveQuestion: (id: string) => Promise<void>;
|
|
17
|
+
renderPdf?: ({ url, fileName }: {
|
|
18
|
+
url: string;
|
|
19
|
+
fileName?: string | undefined;
|
|
20
|
+
}) => React.ReactNode;
|
|
21
|
+
questions?: MultipleQuestionsData;
|
|
22
|
+
questionFilter?: QuestionFilterType;
|
|
23
|
+
onQuestionFilterChange?: (value: QuestionFilterType) => void;
|
|
24
|
+
};
|
|
25
|
+
declare const QuizComponentV2: {
|
|
26
|
+
({ activeQuestion, document_id, getActiveQuestion, renderPdf, questions, questionFilter, onQuestionFilterChange }: Props): React.JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
export default QuizComponentV2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { ICommment, IFileAnswer } from 'constant';
|
|
3
|
+
export declare type IPreviewProp = {
|
|
4
|
+
reqIndex: number;
|
|
5
|
+
control: any;
|
|
6
|
+
name: string;
|
|
7
|
+
question_data: any;
|
|
8
|
+
defaultValue?: any;
|
|
9
|
+
answer_file?: IFileAnswer;
|
|
10
|
+
setOpenPdf?: any;
|
|
11
|
+
listGrades?: ICommment;
|
|
12
|
+
commentRef?: RefObject<HTMLDivElement>;
|
|
13
|
+
editorRef?: RefObject<HTMLElement>;
|
|
14
|
+
bodyRef?: RefObject<HTMLDivElement>;
|
|
15
|
+
grading_file?: IFileAnswer;
|
|
16
|
+
handleShowRequirement?: () => void;
|
|
17
|
+
activeCommentId?: string | null;
|
|
18
|
+
setActiveCommentId?: React.Dispatch<React.SetStateAction<string | null>>;
|
|
19
|
+
setOpenCommentIndex?: React.Dispatch<React.SetStateAction<number | null>>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.MemoExoticComponent<({ reqIndex, name, control, question_data, defaultValue, answer_file, setOpenPdf, listGrades, commentRef, editorRef, bodyRef, grading_file, handleShowRequirement, activeCommentId, setActiveCommentId, setOpenCommentIndex }: IPreviewProp) => React.JSX.Element>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data?: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
extenalRef?: any;
|
|
11
|
+
corrects?: any;
|
|
12
|
+
solution?: string;
|
|
13
|
+
resetDefaultAnswer?: boolean;
|
|
14
|
+
allowUnHighLight?: boolean;
|
|
15
|
+
answers?: any;
|
|
16
|
+
}
|
|
17
|
+
declare const DragNDropPreivew: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
|
|
18
|
+
export default DragNDropPreivew;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
corrects?: {
|
|
11
|
+
id: string;
|
|
12
|
+
answer: string;
|
|
13
|
+
is_correct: boolean;
|
|
14
|
+
answer_position: number;
|
|
15
|
+
}[];
|
|
16
|
+
extenalRef?: any;
|
|
17
|
+
solution?: string;
|
|
18
|
+
allowUnHighLight?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const AddWordPreview: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
|
|
21
|
+
export default AddWordPreview;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Edge, Node, OnConnect, NodeTypes, EdgeTypes } from '@xyflow/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface CustomFlowProps {
|
|
4
|
+
nodes: Node[];
|
|
5
|
+
edges: Edge[];
|
|
6
|
+
onConnect: OnConnect;
|
|
7
|
+
nodeTypes: NodeTypes;
|
|
8
|
+
edgeTypes: EdgeTypes;
|
|
9
|
+
}
|
|
10
|
+
declare const CustomFlow: ({ nodes, edges, onConnect, nodeTypes, edgeTypes }: CustomFlowProps) => React.JSX.Element;
|
|
11
|
+
export default CustomFlow;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NodeProps } from '@xyflow/react';
|
|
3
|
+
export declare enum Color {
|
|
4
|
+
TextDefault = "#000000",
|
|
5
|
+
Success = "#078A4D",
|
|
6
|
+
Error = "#F80903",
|
|
7
|
+
ArrowDefault = "#EF5941"
|
|
8
|
+
}
|
|
9
|
+
export declare const CustomNode: React.FC<NodeProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
done?: boolean;
|
|
11
|
+
extenalRef?: any;
|
|
12
|
+
index?: number;
|
|
13
|
+
corrects?: any;
|
|
14
|
+
solution?: string;
|
|
15
|
+
allowUnHighLight?: boolean;
|
|
16
|
+
uuid?: string;
|
|
17
|
+
isHideExhibit?: boolean;
|
|
18
|
+
isAlwaysShowAnswer?: boolean;
|
|
19
|
+
exhibitText?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const MatchQuizWrapper: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
|
|
22
|
+
export default MatchQuizWrapper;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type IPreviewProp = {
|
|
3
|
+
data: any;
|
|
4
|
+
control: any;
|
|
5
|
+
name?: string;
|
|
6
|
+
corrects?: {
|
|
7
|
+
[key: string]: boolean;
|
|
8
|
+
};
|
|
9
|
+
defaultValues?: any;
|
|
10
|
+
setValue?: any;
|
|
11
|
+
handleSaveHighLight?: any;
|
|
12
|
+
highlighted?: any;
|
|
13
|
+
removeHighlight?: any;
|
|
14
|
+
allowHighLight?: boolean;
|
|
15
|
+
solution?: any;
|
|
16
|
+
allowUnHighLight?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const OneChoiceQuestion: ({ data, control, corrects, name, defaultValues, setValue, solution }: IPreviewProp) => React.JSX.Element;
|
|
19
|
+
export default OneChoiceQuestion;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
data: any;
|
|
4
|
+
action?: any;
|
|
5
|
+
handleSaveHighLight?: any;
|
|
6
|
+
highlighted?: any;
|
|
7
|
+
removeHighlight?: any;
|
|
8
|
+
allowHighLight?: boolean;
|
|
9
|
+
defaultAnswer?: any;
|
|
10
|
+
corrects?: {
|
|
11
|
+
id: string;
|
|
12
|
+
answer: string;
|
|
13
|
+
is_correct: boolean;
|
|
14
|
+
answer_position: number;
|
|
15
|
+
}[];
|
|
16
|
+
extenalRef?: any;
|
|
17
|
+
solution?: string;
|
|
18
|
+
allowUnHighLight?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const SelectWord: React.ForwardRefExoticComponent<IProps & React.RefAttributes<any>>;
|
|
21
|
+
export default SelectWord;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const questionTypeStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const quizComponentStylesV2: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AICommentProps {
|
|
3
|
+
content?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
qType?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
grade?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const AIComment: ({ content, title, qType, className, grade }: AICommentProps) => React.JSX.Element;
|
|
10
|
+
export default AIComment;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MarkdownRendererProps {
|
|
3
|
+
content: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Component to render markdown content with proper styling
|
|
8
|
+
*/
|
|
9
|
+
export declare const MarkdownRenderer: ({ content, className }: MarkdownRendererProps) => React.JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './FilePreviewModal.css';
|
|
3
|
+
interface IModalPreviewFileProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
fileUrl?: string;
|
|
6
|
+
fileName?: string;
|
|
7
|
+
textContent?: string;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ModalPreviewFile: ({ open, fileUrl, fileName, textContent, onClose }: IModalPreviewFileProps) => React.JSX.Element;
|
|
11
|
+
export default ModalPreviewFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IFile } from '../../constant';
|
|
3
|
+
interface Exhibit {
|
|
4
|
+
created_at: Date;
|
|
5
|
+
description: string;
|
|
6
|
+
files: IFile[];
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
interface IProps {
|
|
11
|
+
activeQuestion: {
|
|
12
|
+
question_topic?: {
|
|
13
|
+
description: string;
|
|
14
|
+
files: IFile[];
|
|
15
|
+
exhibits: Array<Exhibit>;
|
|
16
|
+
};
|
|
17
|
+
exhibits?: Array<Exhibit>;
|
|
18
|
+
};
|
|
19
|
+
isTwoColumn?: boolean;
|
|
20
|
+
setOpenPdf: Dispatch<SetStateAction<{
|
|
21
|
+
status: boolean;
|
|
22
|
+
url: string;
|
|
23
|
+
} | undefined>>;
|
|
24
|
+
handleShowExhibit: (params: {
|
|
25
|
+
id: string;
|
|
26
|
+
description: string;
|
|
27
|
+
index: number;
|
|
28
|
+
name: string;
|
|
29
|
+
files: IFile[];
|
|
30
|
+
}, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
31
|
+
exhibitText: string;
|
|
32
|
+
}
|
|
33
|
+
declare const TopicDisplay: ({ activeQuestion, setOpenPdf, handleShowExhibit, isTwoColumn, exhibitText }: IProps) => React.JSX.Element;
|
|
34
|
+
export default TopicDisplay;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const topicDisplayStyles: import("styled-components").FlattenSimpleInterpolation;
|