@sonhero/explanation-package 1.9.1 → 1.10.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.
Files changed (179) hide show
  1. package/dist/assets/images/default_thumbnail_video.png +0 -0
  2. package/dist/assets/images/default_thumbnail_video_mobile.png +0 -0
  3. package/dist/assets/images/default_thumbnail_video_tablet.png +0 -0
  4. package/dist/index.cjs +8835 -0
  5. package/dist/index.css +1 -12
  6. package/dist/index.mjs +15828 -0
  7. package/package.json +37 -53
  8. package/dist/Quiz.d.ts +0 -7
  9. package/dist/QuizComponent.d.ts +0 -23
  10. package/dist/button/ButtonCancelSubmit.d.ts +0 -3
  11. package/dist/button/ErrorMessage.d.ts +0 -7
  12. package/dist/button/SappButton.d.ts +0 -4
  13. package/dist/button/YourAnswer.d.ts +0 -6
  14. package/dist/checkbox/HookFormCheckBox.d.ts +0 -19
  15. package/dist/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
  16. package/dist/checkbox/SAPPCheckbox.d.ts +0 -14
  17. package/dist/common/ArrowIcon.d.ts +0 -9
  18. package/dist/common/CommentList.d.ts +0 -9
  19. package/dist/common/EssayRender.d.ts +0 -52
  20. package/dist/common/ExhibitMovableWindow.d.ts +0 -13
  21. package/dist/common/ExhibitRender.d.ts +0 -21
  22. package/dist/common/Explanation.d.ts +0 -12
  23. package/dist/common/FileDisplay.d.ts +0 -14
  24. package/dist/common/HookClick.d.ts +0 -7
  25. package/dist/common/Icon.d.ts +0 -8
  26. package/dist/common/MovableWindow.d.ts +0 -11
  27. package/dist/common/MoveQuestionBar.d.ts +0 -16
  28. package/dist/common/SappIcon.d.ts +0 -11
  29. package/dist/common/TopicDisplay.d.ts +0 -34
  30. package/dist/components/ArrowIcon.d.ts +0 -8
  31. package/dist/components/ExhibitMovableWindow.d.ts +0 -13
  32. package/dist/components/ExhibitMovableWindowV2.d.ts +0 -13
  33. package/dist/components/ExhibitRender.d.ts +0 -20
  34. package/dist/components/FileDisplay.d.ts +0 -15
  35. package/dist/components/HookClick.d.ts +0 -7
  36. package/dist/components/Icon.d.ts +0 -17
  37. package/dist/components/MovableWindow.d.ts +0 -11
  38. package/dist/components/SappIcon.d.ts +0 -11
  39. package/dist/components/comment-list/commentList.styles.d.ts +0 -1
  40. package/dist/components/comment-list/index.d.ts +0 -11
  41. package/dist/components/comment-list-v2/commentListV2.styles.d.ts +0 -1
  42. package/dist/components/comment-list-v2/index.d.ts +0 -14
  43. package/dist/components/comment-modal/CommentModal.d.ts +0 -9
  44. package/dist/components/comment-modal/commentModal.styles.d.ts +0 -1
  45. package/dist/components/comment-modal/index.d.ts +0 -2
  46. package/dist/components/common/button/ButtonCancelSubmit.d.ts +0 -3
  47. package/dist/components/common/button/ErrorMessage.d.ts +0 -7
  48. package/dist/components/common/button/SappButton.d.ts +0 -4
  49. package/dist/components/common/button/YourAnswer.d.ts +0 -6
  50. package/dist/components/common/button/YourAnswerV2.d.ts +0 -7
  51. package/dist/components/common/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
  52. package/dist/components/common/checkbox/SAPPCheckbox.d.ts +0 -14
  53. package/dist/components/common/checkboxV2/HookFormCheckBoxGroupV2.d.ts +0 -37
  54. package/dist/components/common/checkboxV2/SAPPCheckboxV2.d.ts +0 -15
  55. package/dist/components/common/common.styles.d.ts +0 -1
  56. package/dist/components/common/divider/Divider.d.ts +0 -5
  57. package/dist/components/common/divider/styles.d.ts +0 -1
  58. package/dist/components/common/modal/PopupViewPdf.d.ts +0 -13
  59. package/dist/components/common/modal/SappModal.d.ts +0 -64
  60. package/dist/components/common/modal/SappModalImage.d.ts +0 -7
  61. package/dist/components/common/modal/SappModalVideo.d.ts +0 -7
  62. package/dist/components/common/pdf/pdf-viewer.d.ts +0 -5
  63. package/dist/components/common/pdf/popupViewPdf.d.ts +0 -8
  64. package/dist/components/common/radiobutton/HookFormRadioGroup.d.ts +0 -26
  65. package/dist/components/common/radiobutton/SAPPRadio.d.ts +0 -15
  66. package/dist/components/common/radiobuttonV2/HookFormRadioGroupV2.d.ts +0 -26
  67. package/dist/components/common/radiobuttonV2/SAPPRadioV2.d.ts +0 -15
  68. package/dist/components/common/video/Player.d.ts +0 -2
  69. package/dist/components/common/video/SAPPVideo.d.ts +0 -10
  70. package/dist/components/common/video/video.styles.d.ts +0 -1
  71. package/dist/components/editor/EditorReader.d.ts +0 -13
  72. package/dist/components/essay-render/essayRender.styles.d.ts +0 -1
  73. package/dist/components/essay-render/index.d.ts +0 -87
  74. package/dist/components/essay-render-v2/essayRenderV2.styles.d.ts +0 -1
  75. package/dist/components/essay-render-v2/index.d.ts +0 -96
  76. package/dist/components/explanation/explanation.styles.d.ts +0 -1
  77. package/dist/components/explanation/index.d.ts +0 -13
  78. package/dist/components/explanationV2/index.d.ts +0 -13
  79. package/dist/components/grading-file/GradingFileDisplay.d.ts +0 -10
  80. package/dist/components/grading-file/ListGradingFile.d.ts +0 -8
  81. package/dist/components/icons/CloseIcon.d.ts +0 -5
  82. package/dist/components/icons/ResizeIcon.d.ts +0 -5
  83. package/dist/components/icons/UploadIcon.d.ts +0 -2
  84. package/dist/components/icons/index.d.ts +0 -12
  85. package/dist/components/list-question/ListQuestion.d.ts +0 -13
  86. package/dist/components/list-question/QuestionGrid.d.ts +0 -21
  87. package/dist/components/list-question/types.d.ts +0 -14
  88. package/dist/components/move-question-bar/index.d.ts +0 -16
  89. package/dist/components/move-question-bar/moveQuestionBar.styles.d.ts +0 -1
  90. package/dist/components/questionType/ConstructedQuestion.d.ts +0 -19
  91. package/dist/components/questionType/DragNDrop.d.ts +0 -17
  92. package/dist/components/questionType/FillText.d.ts +0 -21
  93. package/dist/components/questionType/MatchingQuestion.d.ts +0 -18
  94. package/dist/components/questionType/MultipleChoiceQuestion.d.ts +0 -4
  95. package/dist/components/questionType/OneChoiceQuestion.d.ts +0 -19
  96. package/dist/components/questionType/SelectWordQuestion.d.ts +0 -28
  97. package/dist/components/questionType/questionTypes.styles.d.ts +0 -1
  98. package/dist/components/quiz-component/index.d.ts +0 -25
  99. package/dist/components/quiz-component/quizComponent.styles.d.ts +0 -1
  100. package/dist/components/quiz-component-v2/index.d.ts +0 -29
  101. package/dist/components/quiz-component-v2/questionTypeV2/ConstructedQuestionV2.d.ts +0 -22
  102. package/dist/components/quiz-component-v2/questionTypeV2/DragNDrop.d.ts +0 -18
  103. package/dist/components/quiz-component-v2/questionTypeV2/FillText.d.ts +0 -21
  104. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomEdge.d.ts +0 -4
  105. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomFlow.d.ts +0 -11
  106. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomNode.d.ts +0 -9
  107. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/index.d.ts +0 -22
  108. package/dist/components/quiz-component-v2/questionTypeV2/MultipleChoiceQuestion.d.ts +0 -4
  109. package/dist/components/quiz-component-v2/questionTypeV2/OneChoiceQuestion.d.ts +0 -19
  110. package/dist/components/quiz-component-v2/questionTypeV2/SelectWordQuestion.d.ts +0 -21
  111. package/dist/components/quiz-component-v2/questionTypeV2/questionTypes.styles.d.ts +0 -1
  112. package/dist/components/quiz-component-v2/quizComponentV2.styles.d.ts +0 -1
  113. package/dist/components/render-view/AIComment.d.ts +0 -10
  114. package/dist/components/render-view/MarkdownRender.d.ts +0 -10
  115. package/dist/components/render-view/ModalPreviewFile.d.ts +0 -11
  116. package/dist/components/styles.d.ts +0 -1
  117. package/dist/components/topic-display/index.d.ts +0 -34
  118. package/dist/components/topic-display/topicDisplay.styles.d.ts +0 -1
  119. package/dist/constant/icon.d.ts +0 -3
  120. package/dist/constant/index.d.ts +0 -313
  121. package/dist/contexts/index.d.ts +0 -10
  122. package/dist/conts/index.d.ts +0 -273
  123. package/dist/editor/EditorReader.d.ts +0 -13
  124. package/dist/editor/HookFormEditor.d.ts +0 -22
  125. package/dist/editor/editor.d.ts +0 -18
  126. package/dist/hooks/HookClick.d.ts +0 -7
  127. package/dist/hooks/useCommentMobileView.d.ts +0 -3
  128. package/dist/hooks/useListQuestionColumnsPerRow.d.ts +0 -4
  129. package/dist/hooks/useMousePosition.d.ts +0 -5
  130. package/dist/hooks/useTailwindBreakpoint.d.ts +0 -17
  131. package/dist/icons/CloseIcon.d.ts +0 -4
  132. package/dist/icons/UploadIcon.d.ts +0 -2
  133. package/dist/index.d.ts +0 -19
  134. package/dist/index.js +0 -7685
  135. package/dist/index.js.map +0 -1
  136. package/dist/index.modern.js +0 -7681
  137. package/dist/index.modern.js.map +0 -1
  138. package/dist/index.test.d.ts +0 -1
  139. package/dist/modal/PopupViewPdf.d.ts +0 -8
  140. package/dist/modal/SappModal.d.ts +0 -64
  141. package/dist/modal/SappModalImage.d.ts +0 -7
  142. package/dist/modal/SappModalVideo.d.ts +0 -7
  143. package/dist/pdf/pdf-viewer.d.ts +0 -4
  144. package/dist/pdf/popupViewPdf.d.ts +0 -8
  145. package/dist/questionType/ConstructedQuestion.d.ts +0 -19
  146. package/dist/questionType/DragNDrop.d.ts +0 -17
  147. package/dist/questionType/FillText.d.ts +0 -21
  148. package/dist/questionType/MatchingQuestion.d.ts +0 -18
  149. package/dist/questionType/MultipleChoiceQuestion.d.ts +0 -4
  150. package/dist/questionType/OneChoiceQuestion.d.ts +0 -19
  151. package/dist/questionType/SelectWordQuestion.d.ts +0 -28
  152. package/dist/radiobutton/HookFormRadioGroup.d.ts +0 -26
  153. package/dist/radiobutton/SAPPRadio.d.ts +0 -15
  154. package/dist/style.d.ts +0 -1
  155. package/dist/styles/base/colors.d.ts +0 -1
  156. package/dist/styles/base/typography.d.ts +0 -1
  157. package/dist/styles/base/utils.d.ts +0 -1
  158. package/dist/styles/global-styles.d.ts +0 -1
  159. package/dist/styles/index.d.ts +0 -1
  160. package/dist/styles/legacy/button.d.ts +0 -1
  161. package/dist/styles/legacy/caret.d.ts +0 -1
  162. package/dist/styles/legacy/condition.d.ts +0 -1
  163. package/dist/styles/legacy/custom-style.d.ts +0 -1
  164. package/dist/styles/legacy/editor-wrap.d.ts +0 -1
  165. package/dist/styles/legacy/fortune.d.ts +0 -1
  166. package/dist/styles/legacy/lucky-sheet.d.ts +0 -1
  167. package/dist/styles/legacy/resizable.d.ts +0 -1
  168. package/dist/styles/legacy/sapp-custom.d.ts +0 -1
  169. package/dist/styles/legacy/stream-player.d.ts +0 -1
  170. package/dist/styles/legacy/tailwind.d.ts +0 -1
  171. package/dist/styles/legacy/tooltip.d.ts +0 -1
  172. package/dist/styles/list-question/listQuestion.styles.d.ts +0 -1
  173. package/dist/styles/react-flow-styled.d.ts +0 -1
  174. package/dist/utils/dragandresize.d.ts +0 -6
  175. package/dist/utils/graded.d.ts +0 -48
  176. package/dist/utils/icons.d.ts +0 -9
  177. package/dist/utils/index.d.ts +0 -24
  178. package/dist/video/Player.d.ts +0 -2
  179. package/dist/video/SAPPVideo.d.ts +0 -13
@@ -1,14 +0,0 @@
1
- import React, { RefObject } from 'react';
2
- import { ICommment } from 'constant';
3
- interface IProps {
4
- data?: ICommment;
5
- editorRef?: RefObject<HTMLElement>;
6
- commentRef?: RefObject<HTMLDivElement>;
7
- className?: string;
8
- overlayClassName?: string;
9
- activeCommentId?: string | null;
10
- setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
11
- setOpenComment?: (status: boolean) => void;
12
- }
13
- declare const CommentListV2: ({ data, editorRef, commentRef, className, overlayClassName, activeCommentId, setActiveCommentId, setOpenComment, }: IProps) => React.JSX.Element;
14
- export default CommentListV2;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { GradingDetail } from 'constant';
3
- export interface CommentModalProps {
4
- open: boolean;
5
- detail: GradingDetail | null;
6
- onClose: () => void;
7
- }
8
- declare const CommentModal: ({ open, detail }: CommentModalProps) => React.JSX.Element | null;
9
- export default CommentModal;
@@ -1 +0,0 @@
1
- export declare const commentModalStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -1,2 +0,0 @@
1
- export { default as CommentModal } from './CommentModal';
2
- export type { CommentModalProps } from './CommentModal';
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ButtonCancelSubmit: ({ submit, cancel, className, color, colorCancel, showOkButton, showCancelButton, revertFunction }: any) => React.JSX.Element;
3
- export default ButtonCancelSubmit;
@@ -1,7 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface IProps {
3
- className?: string;
4
- children: ReactNode;
5
- }
6
- declare const ErrorMessage: ({ className, children }: IProps) => React.JSX.Element;
7
- export default ErrorMessage;
@@ -1,4 +0,0 @@
1
- import { IButtonProps } from 'constant';
2
- import React from 'react';
3
- declare const SappButton: ({ title, onClick, className, link, size, full, disabled, loading, type, color, isUnderLine, isPadding, childClass }: IButtonProps) => React.JSX.Element;
4
- export default SappButton;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- show: boolean;
4
- };
5
- declare const YourAnswer: ({ show }: Props) => React.JSX.Element;
6
- export default YourAnswer;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- show: boolean;
4
- className?: string;
5
- };
6
- declare const YourAnswerV2: ({ show, className }: Props) => React.JSX.Element;
7
- export default YourAnswerV2;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { Control } from 'react-hook-form';
3
- interface IHookFormCheckBoxProps {
4
- name: string;
5
- control: Control<any>;
6
- defaultValue?: string | boolean;
7
- title?: string;
8
- className?: string;
9
- onChange?: (e: any) => void;
10
- checked?: string | boolean;
11
- isWrong?: boolean;
12
- label?: string | undefined;
13
- required?: boolean;
14
- disabled?: boolean;
15
- classNameTitle?: string;
16
- options: Array<{
17
- label?: string;
18
- value: string | boolean;
19
- description?: string;
20
- }>;
21
- direction?: 'horizontal' | 'vertical';
22
- gap?: string;
23
- justify?: 'between' | 'start' | 'center' | 'end';
24
- multiple?: boolean;
25
- state?: 'default' | 'error' | 'success';
26
- size?: 'small' | 'medium' | 'lager';
27
- corrects?: {
28
- [key: string]: boolean;
29
- };
30
- toggle?: boolean;
31
- positionCheckBox?: 'start' | 'center' | 'bottom';
32
- lowerOptions?: boolean;
33
- seprateLine?: boolean;
34
- widthOptions?: string;
35
- }
36
- declare const HookFormCheckBoxGroup: ({ name, control, defaultValue, title, className, onChange, checked, isWrong, disabled, classNameTitle, options, direction, gap, justify, multiple, size, state, corrects, toggle, positionCheckBox, lowerOptions, seprateLine, widthOptions }: IHookFormCheckBoxProps) => React.JSX.Element;
37
- export default HookFormCheckBoxGroup;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- checked: boolean;
4
- disabled?: boolean;
5
- onChange: React.ChangeEventHandler<HTMLInputElement>;
6
- className?: string;
7
- name?: string;
8
- value?: string | boolean;
9
- state?: 'default' | 'error' | 'success' | 'primary';
10
- size?: 'small' | 'medium' | 'lager';
11
- lowerOptions?: boolean;
12
- }
13
- declare const SAPPCheckbox: ({ checked, disabled, onChange, className, value, state, size, lowerOptions }: IProps) => React.JSX.Element;
14
- export default SAPPCheckbox;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { Control } from 'react-hook-form';
3
- interface IHookFormCheckBoxProps {
4
- name: string;
5
- control: Control<any>;
6
- defaultValue?: string | boolean;
7
- title?: string;
8
- className?: string;
9
- onChange?: (e: any) => void;
10
- checked?: string | boolean;
11
- isWrong?: boolean;
12
- label?: string | undefined;
13
- required?: boolean;
14
- disabled?: boolean;
15
- classNameTitle?: string;
16
- options: Array<{
17
- label?: string;
18
- value: string | boolean;
19
- description?: string;
20
- }>;
21
- direction?: 'horizontal' | 'vertical';
22
- gap?: string;
23
- justify?: 'between' | 'start' | 'center' | 'end';
24
- multiple?: boolean;
25
- state?: 'default' | 'error' | 'success';
26
- size?: 'small' | 'medium' | 'lager';
27
- corrects?: {
28
- [key: string]: boolean;
29
- };
30
- toggle?: boolean;
31
- positionCheckBox?: 'start' | 'center' | 'bottom';
32
- lowerOptions?: boolean;
33
- seprateLine?: boolean;
34
- widthOptions?: string;
35
- }
36
- declare const HookFormCheckBoxGroup: ({ name, control, defaultValue, title, className, onChange, checked, isWrong, disabled, classNameTitle, options, direction, gap, justify, multiple, size, state, corrects, toggle, positionCheckBox, lowerOptions, seprateLine, widthOptions }: IHookFormCheckBoxProps) => React.JSX.Element;
37
- export default HookFormCheckBoxGroup;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- checked: boolean;
4
- disabled?: boolean;
5
- onChange: React.ChangeEventHandler<HTMLInputElement>;
6
- className?: string;
7
- name?: string;
8
- value?: string | boolean;
9
- state?: 'default' | 'error' | 'success' | 'primary';
10
- size?: 'small' | 'medium' | 'lager';
11
- lowerOptions?: boolean;
12
- inputStyle?: string;
13
- }
14
- declare const SAPPCheckboxV2: ({ checked, disabled, onChange, className, value, state, size, lowerOptions, inputStyle }: IProps) => React.JSX.Element;
15
- export default SAPPCheckboxV2;
@@ -1 +0,0 @@
1
- export declare const commonComponentStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
3
- }
4
- declare const Divider: React.FC<DividerProps>;
5
- export default Divider;
@@ -1 +0,0 @@
1
- export declare const DividerStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- open: boolean;
4
- setOpen: any;
5
- url: string;
6
- fileName?: string;
7
- renderContent?: ({ url, fileName }: {
8
- url: string;
9
- fileName?: string;
10
- }) => React.ReactNode;
11
- }
12
- declare const _default: React.MemoExoticComponent<({ open, setOpen, url, fileName, renderContent }: IProps) => React.JSX.Element>;
13
- export default _default;
@@ -1,64 +0,0 @@
1
- import React, { Dispatch, ReactNode, SetStateAction } from 'react';
2
- interface IProps {
3
- open?: boolean;
4
- setOpen?: Dispatch<SetStateAction<boolean>>;
5
- children: ReactNode;
6
- cancelButtonCaption?: string;
7
- okButtonCaption?: string;
8
- okButtonClass?: string | undefined;
9
- cancelButtonClass?: string | undefined;
10
- buttonSize?: 'small' | 'medium' | 'lager' | 'extra';
11
- handleCancel?: () => Promise<void> | void;
12
- handleSubmit?: () => Promise<void> | void;
13
- disabled?: boolean;
14
- title?: string;
15
- customTitle?: ReactNode;
16
- showHeader?: boolean;
17
- customHeader?: ReactNode;
18
- showFooter?: boolean;
19
- customFooter?: ReactNode;
20
- confirmOnclose?: boolean | string[];
21
- size?: string;
22
- modelClassname?: string;
23
- refClass?: string;
24
- childClass?: string;
25
- parentChildClass?: string;
26
- footerButtonClassName?: string;
27
- overlayClass?: string;
28
- color?: any;
29
- colorCancel?: any;
30
- position?: 'center' | 'start' | 'end';
31
- fullWidthBtn?: boolean;
32
- isFullScreen?: boolean;
33
- isContentFull?: boolean;
34
- isInner?: boolean;
35
- isBordered?: boolean;
36
- closeAfterSubmit?: boolean;
37
- showOkButton?: boolean;
38
- showCancelButton?: boolean;
39
- zIndex?: string;
40
- scrollbale?: boolean;
41
- footerClassName?: string;
42
- externalLoading?: boolean;
43
- revertFunction?: boolean;
44
- }
45
- /**
46
- * Hàm này tạo một modal component bằng React
47
- * @param open: boolean - biến xác định modal có được mở hay không
48
- * @param setOpen: function - hàm xác định modal có được mở hay không
49
- * @param children: ReactNode - biến chứa các phần tử con của modal
50
- * @param cancelButtonCaption: string - biến xác định nội dung của nút hủy
51
- * @param okButtonCaption: string - biến xác định nội dung của nút xác nhận
52
- * @param handleCancel: function - hàm xử lý khi người dùng nhấn nút hủy
53
- * @param handleSubmit: function - hàm xử lý khi người dùng nhấn nút xác nhận
54
- * @param disabled: boolean - biến xác định modal có bị vô hiệu hóa hay không
55
- * @param title: string - biến xác định tiêu đề của modal
56
- * @param showTitle: boolean - biến xác định modal có hiển thị tiêu đề hay không
57
- * @param customTitle: ReactNode - biến chứa phần tử tùy chỉnh cho tiêu đề
58
- * @param showFooter: boolean - biến xác định modal có hiển thị footer hay không
59
- * @param customFooter: ReactNode - biến chứa phần tử tùy chỉnh cho footer
60
- * @param confirmOnclose: boolean - biến xác định modal có yêu cầu xác nhận khi đóng hay không
61
- * @param width: number - biến xác định modal width
62
- */
63
- declare const SappModal: React.FC<IProps>;
64
- export default SappModal;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- src?: string;
4
- setSrc: React.Dispatch<React.SetStateAction<string | undefined>>;
5
- };
6
- declare function SappModalImage({ src, setSrc }: Props): React.JSX.Element;
7
- export default SappModalImage;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- src?: string;
4
- setSrc: React.Dispatch<React.SetStateAction<string | undefined>>;
5
- };
6
- declare function SappModalVideo({ src, setSrc }: Props): React.JSX.Element;
7
- export default SappModalVideo;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export default function PDFViewer({ file, fileName }: {
3
- file: string;
4
- fileName?: string;
5
- }): React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- open: boolean;
4
- setOpen: any;
5
- url: string;
6
- }
7
- declare const _default: React.MemoExoticComponent<({ open, setOpen, url }: IProps) => React.JSX.Element>;
8
- export default _default;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { Control } from 'react-hook-form';
3
- interface IHookFormRadioGroupProps {
4
- name: string;
5
- control: Control<any>;
6
- defaultValue?: unknown;
7
- options: Array<{
8
- label?: string;
9
- value: string | boolean;
10
- description?: string;
11
- disabled?: boolean;
12
- }>;
13
- direction?: 'horizontal' | 'vertical';
14
- separator?: boolean;
15
- justify?: 'between' | 'start' | 'center' | 'end';
16
- gap?: string;
17
- onChange?: React.ChangeEventHandler<HTMLInputElement>;
18
- labelClass?: string;
19
- labelClassChecked?: string;
20
- disabled?: boolean;
21
- corrects?: {
22
- [key: string]: boolean;
23
- };
24
- }
25
- declare const HookFormRadioGroup: ({ name, control, defaultValue, options, direction, separator, gap, onChange, justify, labelClass, labelClassChecked, disabled, corrects }: IHookFormRadioGroupProps) => React.JSX.Element;
26
- export default HookFormRadioGroup;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- name?: string;
4
- value?: string | boolean;
5
- ktCheck?: boolean;
6
- checkTarget?: string;
7
- checked: boolean;
8
- onChange: React.ChangeEventHandler<HTMLInputElement>;
9
- className?: string;
10
- disabled?: boolean;
11
- state?: 'default' | 'error' | 'success';
12
- size?: 'small' | 'medium' | 'lager';
13
- }
14
- declare const SAPPRadio: ({ name, value, ktCheck, checkTarget, checked, onChange, className, disabled, state, size }: IProps) => React.JSX.Element;
15
- export default SAPPRadio;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { Control } from 'react-hook-form';
3
- interface IHookFormRadioGroupV2Props {
4
- name: string;
5
- control: Control<any>;
6
- defaultValue?: unknown;
7
- options: Array<{
8
- label?: string;
9
- value: string | boolean;
10
- description?: string;
11
- disabled?: boolean;
12
- }>;
13
- direction?: 'horizontal' | 'vertical';
14
- separator?: boolean;
15
- justify?: 'between' | 'start' | 'center' | 'end';
16
- gap?: string;
17
- onChange?: React.ChangeEventHandler<HTMLInputElement>;
18
- labelClass?: string;
19
- labelClassChecked?: string;
20
- disabled?: boolean;
21
- corrects?: {
22
- [key: string]: boolean;
23
- };
24
- }
25
- declare const HookFormRadioGroupV2: ({ name, control, defaultValue, options, direction, separator, gap, onChange, justify, labelClass, labelClassChecked, disabled, corrects }: IHookFormRadioGroupV2Props) => React.JSX.Element;
26
- export default HookFormRadioGroupV2;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- name?: string;
4
- value?: string | boolean;
5
- ktCheck?: boolean;
6
- checkTarget?: string;
7
- checked: boolean;
8
- onChange: React.ChangeEventHandler<HTMLInputElement>;
9
- className?: string;
10
- disabled?: boolean;
11
- state?: 'default' | 'error' | 'success';
12
- size?: 'small' | 'medium' | 'lager';
13
- }
14
- declare const SAPPRadioV2: ({ name, value, ktCheck, checkTarget, checked, onChange, className, disabled, state, size }: IProps) => React.JSX.Element;
15
- export default SAPPRadioV2;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Player: () => React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import { StreamPlayerApi, StreamProps } from '@cloudflare/stream-react';
2
- import React, { MutableRefObject } from 'react';
3
- interface IProp {
4
- options: StreamProps;
5
- streamRef?: MutableRefObject<StreamPlayerApi | undefined>;
6
- videoAttribs?: Record<string, string>;
7
- className?: string;
8
- }
9
- declare const SAPPVideo: ({ options, streamRef, videoAttribs, className }: IProp) => React.JSX.Element;
10
- export default SAPPVideo;
@@ -1 +0,0 @@
1
- export declare const videoStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- text_editor_content: string | undefined;
4
- className?: string;
5
- extenalRef?: any;
6
- id?: string;
7
- onMouseUp?: any;
8
- highlighted?: string;
9
- options?: any;
10
- highlighArea?: string;
11
- };
12
- declare const EditorReader: ({ text_editor_content, className, extenalRef, id, onMouseUp, highlighted, options, highlighArea }: Props) => React.JSX.Element;
13
- export default EditorReader;
@@ -1 +0,0 @@
1
- export declare const essayRenderStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -1,87 +0,0 @@
1
- import React, { Dispatch, RefObject, SetStateAction } from 'react';
2
- import { ICommment, IFile, IFileAnswer, IRequirement, QUESTION_TYPES } from '../../constant';
3
- export interface IGradeQuestion {
4
- id: string;
5
- question_grade: number;
6
- answer_gradings: AnswerGrading[];
7
- attempt_grading: AttemptGrading;
8
- }
9
- export interface AnswerGrading {
10
- id: string;
11
- requirement_id: string;
12
- answer_grade: number;
13
- grading_file: any;
14
- details: Detail[];
15
- file_grade: number;
16
- }
17
- export interface Detail {
18
- begin: number;
19
- end: number;
20
- grade: number;
21
- comment: string;
22
- status: string;
23
- }
24
- export interface AttemptGrading {
25
- id: string;
26
- created_at: string;
27
- }
28
- interface IActiveQuestion {
29
- question_topic: {
30
- files: IFile[];
31
- exhibits: {
32
- id: string;
33
- description: string;
34
- name: string;
35
- files: IFile[];
36
- }[];
37
- };
38
- requirements: IRequirement[];
39
- exhibits: {
40
- id: string;
41
- description: string;
42
- name: string;
43
- files: IFile[];
44
- }[];
45
- short_answer: string | any;
46
- answer_file: IFileAnswer;
47
- question_content: string;
48
- requirement_answers?: Array<any>;
49
- grading_method?: string;
50
- grading_question: IGradeQuestion;
51
- qType: QUESTION_TYPES;
52
- solution?: string;
53
- }
54
- interface IProps {
55
- activeQuestion: IActiveQuestion;
56
- handleShowListRequirement: (e: any) => void;
57
- showRequirement?: IRequirement | null;
58
- showListRequirement: boolean;
59
- handleShowRequirement: ({ description, index, name, files, explanation, answer_template_files }: {
60
- description: string;
61
- index: number;
62
- name: string;
63
- files: IFile[];
64
- explanation: string;
65
- answer_template_files?: string[];
66
- }) => void;
67
- setOpenPdf: Dispatch<SetStateAction<{
68
- status: boolean;
69
- url: string;
70
- } | undefined>>;
71
- handleShowExhibit: (data: {
72
- id: string;
73
- description: string;
74
- index: number;
75
- name: string;
76
- files: IFile[];
77
- }, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
78
- controlAnswer: any;
79
- listRequirementRef: RefObject<HTMLDivElement>;
80
- comment?: ICommment;
81
- commentRef?: RefObject<HTMLDivElement>;
82
- editorRef?: RefObject<HTMLDivElement>;
83
- bodyRef?: RefObject<HTMLDivElement>;
84
- submitted?: string;
85
- }
86
- declare const EssayRender: ({ activeQuestion, showRequirement, handleShowRequirement, setOpenPdf, handleShowExhibit, controlAnswer, comment, commentRef, editorRef, bodyRef }: IProps) => React.JSX.Element;
87
- export default EssayRender;
@@ -1 +0,0 @@
1
- export declare const essayRenderStylesV2: import("styled-components").FlattenSimpleInterpolation;
@@ -1,96 +0,0 @@
1
- import React, { Dispatch, RefObject, SetStateAction } from 'react';
2
- import { ICommment, IFile, IFileAnswer, IRequirement, QUESTION_TYPES, IAiContext } from '../../constant';
3
- export interface IGradeQuestion {
4
- id: string;
5
- question_grade: number;
6
- answer_gradings: AnswerGrading[];
7
- attempt_grading: AttemptGrading;
8
- }
9
- export interface AnswerGrading {
10
- id: string;
11
- requirement_id: string;
12
- answer_grade: number;
13
- grading_file: any;
14
- details: Detail[];
15
- file_grade: number;
16
- comment?: string;
17
- ai_grade?: number;
18
- }
19
- export interface Detail {
20
- begin: number;
21
- end: number;
22
- grade: number;
23
- comment: string;
24
- status: string;
25
- ai_contexts?: IAiContext[];
26
- }
27
- export interface AttemptGrading {
28
- id: string;
29
- created_at: string;
30
- }
31
- interface IActiveQuestion {
32
- question_topic: {
33
- files: IFile[];
34
- exhibits: {
35
- id: string;
36
- description: string;
37
- name: string;
38
- files: IFile[];
39
- }[];
40
- description: string;
41
- };
42
- requirements: IRequirement[];
43
- exhibits: {
44
- id: string;
45
- description: string;
46
- name: string;
47
- files: IFile[];
48
- }[];
49
- short_answer: string | any;
50
- answer_file: IFileAnswer;
51
- question_content: string;
52
- requirement_answers?: Array<any>;
53
- grading_method?: string;
54
- grading_question: IGradeQuestion;
55
- qType: QUESTION_TYPES;
56
- solution?: string;
57
- ai_contexts?: IAiContext[];
58
- course_ai_contexts?: IAiContext[];
59
- }
60
- interface IProps {
61
- activeQuestion: IActiveQuestion;
62
- handleShowListRequirement: (e: any) => void;
63
- showRequirement?: IRequirement | null;
64
- showListRequirement: boolean;
65
- handleShowRequirement: ({ description, index, name, files, explanation, answer_template_files }: {
66
- description: string;
67
- index: number;
68
- name: string;
69
- files: IFile[];
70
- explanation: string;
71
- answer_template_files?: string[];
72
- }) => void;
73
- setOpenPdf: Dispatch<SetStateAction<{
74
- status: boolean;
75
- url: string;
76
- } | undefined>>;
77
- handleShowExhibit: (data: {
78
- id: string;
79
- description: string;
80
- index: number;
81
- name: string;
82
- files: IFile[];
83
- }, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
84
- controlAnswer: any;
85
- listRequirementRef: RefObject<HTMLDivElement>;
86
- comment?: ICommment;
87
- commentRef?: RefObject<HTMLDivElement>;
88
- editorRef?: RefObject<HTMLDivElement>;
89
- bodyRef?: RefObject<HTMLDivElement>;
90
- submitted?: string;
91
- activeCommentId?: string | null;
92
- setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
93
- setOpenComment?: (open: boolean) => void;
94
- }
95
- declare const EssayRenderV2: ({ activeQuestion, showRequirement, handleShowRequirement, setOpenPdf, handleShowExhibit, controlAnswer, comment, commentRef, editorRef, bodyRef, activeCommentId, setActiveCommentId, setOpenComment }: IProps) => React.JSX.Element;
96
- export default EssayRenderV2;
@@ -1 +0,0 @@
1
- export declare const explanationStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { IRequirement } from '../../constant';
3
- interface IProps {
4
- activeQuestion: {
5
- solution?: string;
6
- confirmed?: boolean;
7
- qType?: string;
8
- };
9
- explanationTitle?: string;
10
- showRequirement?: IRequirement | null;
11
- }
12
- declare const Explanation: ({ activeQuestion, explanationTitle, showRequirement }: IProps) => React.JSX.Element;
13
- export default Explanation;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { IRequirement } from '../../constant';
3
- interface IProps {
4
- activeQuestion: {
5
- solution?: string;
6
- confirmed?: boolean;
7
- qType?: string;
8
- };
9
- explanationTitle?: string;
10
- showRequirement?: IRequirement | null;
11
- }
12
- declare const ExplanationV2: ({ activeQuestion, explanationTitle, showRequirement }: IProps) => React.JSX.Element;
13
- export default ExplanationV2;