@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.
- package/dist/assets/images/default_thumbnail_video.png +0 -0
- package/dist/assets/images/default_thumbnail_video_mobile.png +0 -0
- package/dist/assets/images/default_thumbnail_video_tablet.png +0 -0
- package/dist/index.cjs +8835 -0
- package/dist/index.css +1 -12
- package/dist/index.mjs +15828 -0
- package/package.json +37 -53
- package/dist/Quiz.d.ts +0 -7
- package/dist/QuizComponent.d.ts +0 -23
- package/dist/button/ButtonCancelSubmit.d.ts +0 -3
- package/dist/button/ErrorMessage.d.ts +0 -7
- package/dist/button/SappButton.d.ts +0 -4
- package/dist/button/YourAnswer.d.ts +0 -6
- package/dist/checkbox/HookFormCheckBox.d.ts +0 -19
- package/dist/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
- package/dist/checkbox/SAPPCheckbox.d.ts +0 -14
- package/dist/common/ArrowIcon.d.ts +0 -9
- package/dist/common/CommentList.d.ts +0 -9
- package/dist/common/EssayRender.d.ts +0 -52
- package/dist/common/ExhibitMovableWindow.d.ts +0 -13
- package/dist/common/ExhibitRender.d.ts +0 -21
- package/dist/common/Explanation.d.ts +0 -12
- package/dist/common/FileDisplay.d.ts +0 -14
- package/dist/common/HookClick.d.ts +0 -7
- package/dist/common/Icon.d.ts +0 -8
- package/dist/common/MovableWindow.d.ts +0 -11
- package/dist/common/MoveQuestionBar.d.ts +0 -16
- package/dist/common/SappIcon.d.ts +0 -11
- package/dist/common/TopicDisplay.d.ts +0 -34
- package/dist/components/ArrowIcon.d.ts +0 -8
- package/dist/components/ExhibitMovableWindow.d.ts +0 -13
- package/dist/components/ExhibitMovableWindowV2.d.ts +0 -13
- package/dist/components/ExhibitRender.d.ts +0 -20
- package/dist/components/FileDisplay.d.ts +0 -15
- package/dist/components/HookClick.d.ts +0 -7
- package/dist/components/Icon.d.ts +0 -17
- package/dist/components/MovableWindow.d.ts +0 -11
- package/dist/components/SappIcon.d.ts +0 -11
- package/dist/components/comment-list/commentList.styles.d.ts +0 -1
- package/dist/components/comment-list/index.d.ts +0 -11
- package/dist/components/comment-list-v2/commentListV2.styles.d.ts +0 -1
- package/dist/components/comment-list-v2/index.d.ts +0 -14
- package/dist/components/comment-modal/CommentModal.d.ts +0 -9
- package/dist/components/comment-modal/commentModal.styles.d.ts +0 -1
- package/dist/components/comment-modal/index.d.ts +0 -2
- package/dist/components/common/button/ButtonCancelSubmit.d.ts +0 -3
- package/dist/components/common/button/ErrorMessage.d.ts +0 -7
- package/dist/components/common/button/SappButton.d.ts +0 -4
- package/dist/components/common/button/YourAnswer.d.ts +0 -6
- package/dist/components/common/button/YourAnswerV2.d.ts +0 -7
- package/dist/components/common/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
- package/dist/components/common/checkbox/SAPPCheckbox.d.ts +0 -14
- package/dist/components/common/checkboxV2/HookFormCheckBoxGroupV2.d.ts +0 -37
- package/dist/components/common/checkboxV2/SAPPCheckboxV2.d.ts +0 -15
- package/dist/components/common/common.styles.d.ts +0 -1
- package/dist/components/common/divider/Divider.d.ts +0 -5
- package/dist/components/common/divider/styles.d.ts +0 -1
- package/dist/components/common/modal/PopupViewPdf.d.ts +0 -13
- package/dist/components/common/modal/SappModal.d.ts +0 -64
- package/dist/components/common/modal/SappModalImage.d.ts +0 -7
- package/dist/components/common/modal/SappModalVideo.d.ts +0 -7
- package/dist/components/common/pdf/pdf-viewer.d.ts +0 -5
- package/dist/components/common/pdf/popupViewPdf.d.ts +0 -8
- package/dist/components/common/radiobutton/HookFormRadioGroup.d.ts +0 -26
- package/dist/components/common/radiobutton/SAPPRadio.d.ts +0 -15
- package/dist/components/common/radiobuttonV2/HookFormRadioGroupV2.d.ts +0 -26
- package/dist/components/common/radiobuttonV2/SAPPRadioV2.d.ts +0 -15
- package/dist/components/common/video/Player.d.ts +0 -2
- package/dist/components/common/video/SAPPVideo.d.ts +0 -10
- package/dist/components/common/video/video.styles.d.ts +0 -1
- package/dist/components/editor/EditorReader.d.ts +0 -13
- package/dist/components/essay-render/essayRender.styles.d.ts +0 -1
- package/dist/components/essay-render/index.d.ts +0 -87
- package/dist/components/essay-render-v2/essayRenderV2.styles.d.ts +0 -1
- package/dist/components/essay-render-v2/index.d.ts +0 -96
- package/dist/components/explanation/explanation.styles.d.ts +0 -1
- package/dist/components/explanation/index.d.ts +0 -13
- package/dist/components/explanationV2/index.d.ts +0 -13
- package/dist/components/grading-file/GradingFileDisplay.d.ts +0 -10
- package/dist/components/grading-file/ListGradingFile.d.ts +0 -8
- package/dist/components/icons/CloseIcon.d.ts +0 -5
- package/dist/components/icons/ResizeIcon.d.ts +0 -5
- package/dist/components/icons/UploadIcon.d.ts +0 -2
- package/dist/components/icons/index.d.ts +0 -12
- package/dist/components/list-question/ListQuestion.d.ts +0 -13
- package/dist/components/list-question/QuestionGrid.d.ts +0 -21
- package/dist/components/list-question/types.d.ts +0 -14
- package/dist/components/move-question-bar/index.d.ts +0 -16
- package/dist/components/move-question-bar/moveQuestionBar.styles.d.ts +0 -1
- package/dist/components/questionType/ConstructedQuestion.d.ts +0 -19
- package/dist/components/questionType/DragNDrop.d.ts +0 -17
- package/dist/components/questionType/FillText.d.ts +0 -21
- package/dist/components/questionType/MatchingQuestion.d.ts +0 -18
- package/dist/components/questionType/MultipleChoiceQuestion.d.ts +0 -4
- package/dist/components/questionType/OneChoiceQuestion.d.ts +0 -19
- package/dist/components/questionType/SelectWordQuestion.d.ts +0 -28
- package/dist/components/questionType/questionTypes.styles.d.ts +0 -1
- package/dist/components/quiz-component/index.d.ts +0 -25
- package/dist/components/quiz-component/quizComponent.styles.d.ts +0 -1
- package/dist/components/quiz-component-v2/index.d.ts +0 -29
- package/dist/components/quiz-component-v2/questionTypeV2/ConstructedQuestionV2.d.ts +0 -22
- package/dist/components/quiz-component-v2/questionTypeV2/DragNDrop.d.ts +0 -18
- package/dist/components/quiz-component-v2/questionTypeV2/FillText.d.ts +0 -21
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomEdge.d.ts +0 -4
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomFlow.d.ts +0 -11
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomNode.d.ts +0 -9
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/index.d.ts +0 -22
- package/dist/components/quiz-component-v2/questionTypeV2/MultipleChoiceQuestion.d.ts +0 -4
- package/dist/components/quiz-component-v2/questionTypeV2/OneChoiceQuestion.d.ts +0 -19
- package/dist/components/quiz-component-v2/questionTypeV2/SelectWordQuestion.d.ts +0 -21
- package/dist/components/quiz-component-v2/questionTypeV2/questionTypes.styles.d.ts +0 -1
- package/dist/components/quiz-component-v2/quizComponentV2.styles.d.ts +0 -1
- package/dist/components/render-view/AIComment.d.ts +0 -10
- package/dist/components/render-view/MarkdownRender.d.ts +0 -10
- package/dist/components/render-view/ModalPreviewFile.d.ts +0 -11
- package/dist/components/styles.d.ts +0 -1
- package/dist/components/topic-display/index.d.ts +0 -34
- package/dist/components/topic-display/topicDisplay.styles.d.ts +0 -1
- package/dist/constant/icon.d.ts +0 -3
- package/dist/constant/index.d.ts +0 -313
- package/dist/contexts/index.d.ts +0 -10
- package/dist/conts/index.d.ts +0 -273
- package/dist/editor/EditorReader.d.ts +0 -13
- package/dist/editor/HookFormEditor.d.ts +0 -22
- package/dist/editor/editor.d.ts +0 -18
- package/dist/hooks/HookClick.d.ts +0 -7
- package/dist/hooks/useCommentMobileView.d.ts +0 -3
- package/dist/hooks/useListQuestionColumnsPerRow.d.ts +0 -4
- package/dist/hooks/useMousePosition.d.ts +0 -5
- package/dist/hooks/useTailwindBreakpoint.d.ts +0 -17
- package/dist/icons/CloseIcon.d.ts +0 -4
- package/dist/icons/UploadIcon.d.ts +0 -2
- package/dist/index.d.ts +0 -19
- package/dist/index.js +0 -7685
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -7681
- package/dist/index.modern.js.map +0 -1
- package/dist/index.test.d.ts +0 -1
- package/dist/modal/PopupViewPdf.d.ts +0 -8
- package/dist/modal/SappModal.d.ts +0 -64
- package/dist/modal/SappModalImage.d.ts +0 -7
- package/dist/modal/SappModalVideo.d.ts +0 -7
- package/dist/pdf/pdf-viewer.d.ts +0 -4
- package/dist/pdf/popupViewPdf.d.ts +0 -8
- package/dist/questionType/ConstructedQuestion.d.ts +0 -19
- package/dist/questionType/DragNDrop.d.ts +0 -17
- package/dist/questionType/FillText.d.ts +0 -21
- package/dist/questionType/MatchingQuestion.d.ts +0 -18
- package/dist/questionType/MultipleChoiceQuestion.d.ts +0 -4
- package/dist/questionType/OneChoiceQuestion.d.ts +0 -19
- package/dist/questionType/SelectWordQuestion.d.ts +0 -28
- package/dist/radiobutton/HookFormRadioGroup.d.ts +0 -26
- package/dist/radiobutton/SAPPRadio.d.ts +0 -15
- package/dist/style.d.ts +0 -1
- package/dist/styles/base/colors.d.ts +0 -1
- package/dist/styles/base/typography.d.ts +0 -1
- package/dist/styles/base/utils.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/index.d.ts +0 -1
- package/dist/styles/legacy/button.d.ts +0 -1
- package/dist/styles/legacy/caret.d.ts +0 -1
- package/dist/styles/legacy/condition.d.ts +0 -1
- package/dist/styles/legacy/custom-style.d.ts +0 -1
- package/dist/styles/legacy/editor-wrap.d.ts +0 -1
- package/dist/styles/legacy/fortune.d.ts +0 -1
- package/dist/styles/legacy/lucky-sheet.d.ts +0 -1
- package/dist/styles/legacy/resizable.d.ts +0 -1
- package/dist/styles/legacy/sapp-custom.d.ts +0 -1
- package/dist/styles/legacy/stream-player.d.ts +0 -1
- package/dist/styles/legacy/tailwind.d.ts +0 -1
- package/dist/styles/legacy/tooltip.d.ts +0 -1
- package/dist/styles/list-question/listQuestion.styles.d.ts +0 -1
- package/dist/styles/react-flow-styled.d.ts +0 -1
- package/dist/utils/dragandresize.d.ts +0 -6
- package/dist/utils/graded.d.ts +0 -48
- package/dist/utils/icons.d.ts +0 -9
- package/dist/utils/index.d.ts +0 -24
- package/dist/video/Player.d.ts +0 -2
- package/dist/video/SAPPVideo.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,68 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonhero/explanation-package",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.10.1",
|
|
4
|
+
"description": "Upbase explanation / quiz explanation component",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "/explanation-package",
|
|
8
|
-
"main": "dist/index.
|
|
9
|
-
"module": "dist/index.
|
|
8
|
+
"main": "dist/index.cjs",
|
|
9
|
+
"module": "dist/index.mjs",
|
|
10
10
|
"source": "src/index.tsx",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./dist/index.css": "./dist/index.css",
|
|
17
|
+
"./style.css": "./dist/index.css",
|
|
18
|
+
"./dist/style.css": "./dist/index.css"
|
|
19
|
+
},
|
|
11
20
|
"sideEffects": [
|
|
12
|
-
"dist/
|
|
21
|
+
"dist/index.mjs",
|
|
22
|
+
"dist/index.cjs",
|
|
23
|
+
"**/*.css"
|
|
13
24
|
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
14
28
|
"engines": {
|
|
15
29
|
"node": ">=10"
|
|
16
30
|
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "microbundle-crl --no-compress --no-css-modules --format modern,cjs --target es2017",
|
|
19
|
-
"start": "microbundle-crl watch --no-compress --no-css-modules --format modern,cjs",
|
|
20
|
-
"prepare": "run-s build",
|
|
21
|
-
"test": "run-s test:unit test:lint test:build",
|
|
22
|
-
"test:build": "run-s build",
|
|
23
|
-
"test:lint": "eslint .",
|
|
24
|
-
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
25
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
26
|
-
"predeploy": "cd example && yarn install && yarn run build",
|
|
27
|
-
"deploy": "gh-pages -d example/build"
|
|
28
|
-
},
|
|
29
31
|
"peerDependencies": {
|
|
30
|
-
"react": "^16.
|
|
31
|
-
"react-dom": "^16.
|
|
32
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
33
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@testing-library/jest-dom": "^4.2.4",
|
|
35
|
-
"@testing-library/react": "^9.5.0",
|
|
36
|
-
"@testing-library/user-event": "^7.2.1",
|
|
37
|
-
"@types/jest": "^25.1.4",
|
|
38
36
|
"@types/lodash": "^4.14.202",
|
|
39
37
|
"@types/node": "^12.12.38",
|
|
40
|
-
"@types/react": "
|
|
41
|
-
"@types/react-dom": "
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"eslint-config-standard": "^14.1.0",
|
|
49
|
-
"eslint-config-standard-react": "^9.2.0",
|
|
50
|
-
"eslint-plugin-import": "^2.18.2",
|
|
51
|
-
"eslint-plugin-node": "^11.0.0",
|
|
52
|
-
"eslint-plugin-prettier": "^3.1.1",
|
|
53
|
-
"eslint-plugin-promise": "^4.2.1",
|
|
54
|
-
"eslint-plugin-react": "^7.17.0",
|
|
55
|
-
"eslint-plugin-standard": "^4.0.1",
|
|
56
|
-
"gh-pages": "^2.2.0",
|
|
57
|
-
"microbundle-crl": "^0.13.10",
|
|
58
|
-
"npm-run-all": "^4.1.5",
|
|
59
|
-
"postcss": "^8.4.31",
|
|
60
|
-
"postcss-nesting": "^12.0.1",
|
|
61
|
-
"prettier": "^2.0.4",
|
|
62
|
-
"react": "^16.13.1",
|
|
63
|
-
"react-dom": "^16.13.1",
|
|
64
|
-
"react-scripts": "^3.4.1",
|
|
65
|
-
"typescript": "^3.7.5"
|
|
38
|
+
"@types/react": "18",
|
|
39
|
+
"@types/react-dom": "18",
|
|
40
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
41
|
+
"react": "^18.3.0",
|
|
42
|
+
"react-dom": "^18.3.0",
|
|
43
|
+
"typescript": "^5.8.3",
|
|
44
|
+
"vite": "^6.4.3",
|
|
45
|
+
"vite-plugin-css-injected-by-js": "^3.5.2"
|
|
66
46
|
},
|
|
67
47
|
"files": [
|
|
68
48
|
"dist"
|
|
@@ -86,14 +66,18 @@
|
|
|
86
66
|
"lodash": "^4.17.21",
|
|
87
67
|
"react-hook-form": "7.46.0",
|
|
88
68
|
"react-shadow": "^20.4.0",
|
|
89
|
-
"sapp-common-package": "^1.4.1",
|
|
90
69
|
"sass": "^1.53.0",
|
|
91
70
|
"styled-components": "5.3.11",
|
|
92
71
|
"tailwindcss": "^3.3.5",
|
|
93
|
-
"react-markdown": "^6.0.3"
|
|
72
|
+
"react-markdown": "^6.0.3",
|
|
73
|
+
"@sonhero/upbase-common-package": "1.10.2"
|
|
94
74
|
},
|
|
95
75
|
"resolutions": {
|
|
96
76
|
"@types/react": "^17.0.38"
|
|
97
77
|
},
|
|
98
|
-
"
|
|
99
|
-
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "vite build --config vite.lib.config.ts && node scripts/postbuild-css-stub.cjs",
|
|
80
|
+
"dev": "vite --config dev/vite.config.ts --port 5202 --strictPort",
|
|
81
|
+
"test:lint": "eslint ."
|
|
82
|
+
}
|
|
83
|
+
}
|
package/dist/Quiz.d.ts
DELETED
package/dist/QuizComponent.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
handleDownload: (param: any) => void;
|
|
16
|
-
getActiveQuestion: (id: string) => Promise<void>;
|
|
17
|
-
topic?: any;
|
|
18
|
-
};
|
|
19
|
-
declare const QuizComponent: {
|
|
20
|
-
({ activeQuestion, document_id, handleDownload, getActiveQuestion, topic }: Props): React.JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
export default QuizComponent;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IButtonProps } from '../conts';
|
|
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,19 +0,0 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IHookFormCheckBoxProps {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
defaultValue?: string | boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
onChange?: React.ChangeEventHandler<any>;
|
|
10
|
-
checked?: string | boolean;
|
|
11
|
-
label?: string | undefined;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
classNameTitle?: string;
|
|
15
|
-
state?: 'default' | 'error' | 'success';
|
|
16
|
-
size?: 'small' | 'medium' | 'lager';
|
|
17
|
-
}
|
|
18
|
-
declare const HookFormCheckBox: ({ name, control, defaultValue, title, className, onChange, checked, disabled, classNameTitle, size, state }: IHookFormCheckBoxProps) => React.JSX.Element;
|
|
19
|
-
export default HookFormCheckBox;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
2
|
-
import React from 'react';
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
className?: string;
|
|
4
|
-
iconType?: 'chervon' | 'teeny';
|
|
5
|
-
right?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const ArrowIcon: ({ className, iconType, right }: Props) => React.JSX.Element;
|
|
9
|
-
export default ArrowIcon;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { RefObject } from 'react';
|
|
2
|
-
import { ICommment } from '../conts';
|
|
3
|
-
interface IProps {
|
|
4
|
-
data?: ICommment;
|
|
5
|
-
editorRef?: RefObject<HTMLElement>;
|
|
6
|
-
commentRef?: RefObject<HTMLElement>;
|
|
7
|
-
}
|
|
8
|
-
declare const CommentList: ({ data, editorRef, commentRef }: IProps) => React.JSX.Element;
|
|
9
|
-
export default CommentList;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, RefObject, SetStateAction } from 'react';
|
|
2
|
-
import { ICommment, IFile, IFileAnswer, IRequirement } from '../conts';
|
|
3
|
-
interface IProps {
|
|
4
|
-
activeQuestion: {
|
|
5
|
-
question_topic: {
|
|
6
|
-
files: IFile[];
|
|
7
|
-
};
|
|
8
|
-
requirements: IRequirement[];
|
|
9
|
-
exhibits: {
|
|
10
|
-
id: string;
|
|
11
|
-
description: string;
|
|
12
|
-
name: string;
|
|
13
|
-
files: IFile[];
|
|
14
|
-
}[];
|
|
15
|
-
short_answer: string | any;
|
|
16
|
-
answer_file: IFileAnswer;
|
|
17
|
-
question_content: string;
|
|
18
|
-
requirement_answers?: Array<any>;
|
|
19
|
-
grading_method?: string;
|
|
20
|
-
};
|
|
21
|
-
handleShowListRequirement: (e: any) => void;
|
|
22
|
-
showRequirement?: IRequirement | null;
|
|
23
|
-
showListRequirement: boolean;
|
|
24
|
-
handleShowRequirement: ({ description, index, name, files, explanation, answer_template_files }: {
|
|
25
|
-
description: string;
|
|
26
|
-
index: number;
|
|
27
|
-
name: string;
|
|
28
|
-
files: IFile[];
|
|
29
|
-
explanation: string;
|
|
30
|
-
answer_template_files?: string[];
|
|
31
|
-
}) => void;
|
|
32
|
-
setOpenPdf: Dispatch<SetStateAction<{
|
|
33
|
-
status: boolean;
|
|
34
|
-
url: string;
|
|
35
|
-
} | undefined>>;
|
|
36
|
-
handleShowExhibit: (data: {
|
|
37
|
-
id: string;
|
|
38
|
-
description: string;
|
|
39
|
-
index: number;
|
|
40
|
-
name: string;
|
|
41
|
-
files: IFile[];
|
|
42
|
-
}, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
43
|
-
controlAnswer: any;
|
|
44
|
-
listRequirementRef: RefObject<HTMLDivElement>;
|
|
45
|
-
comment?: ICommment;
|
|
46
|
-
commentRef?: RefObject<HTMLDivElement>;
|
|
47
|
-
editorRef?: RefObject<HTMLDivElement>;
|
|
48
|
-
bodyRef?: RefObject<HTMLDivElement>;
|
|
49
|
-
submitted?: string;
|
|
50
|
-
}
|
|
51
|
-
declare const EssayRender: ({ activeQuestion, handleShowListRequirement, showListRequirement, showRequirement, handleShowRequirement, setOpenPdf, handleShowExhibit, controlAnswer, listRequirementRef, comment, commentRef, editorRef, bodyRef, submitted }: IProps) => React.JSX.Element;
|
|
52
|
-
export default EssayRender;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IShowExhibit } from '../conts';
|
|
3
|
-
interface IProps {
|
|
4
|
-
showExhibit: IShowExhibit;
|
|
5
|
-
setOpenPdf: Dispatch<SetStateAction<{
|
|
6
|
-
status: boolean;
|
|
7
|
-
url: string;
|
|
8
|
-
} | undefined>>;
|
|
9
|
-
setShowExhibit: Dispatch<SetStateAction<IShowExhibit | undefined>>;
|
|
10
|
-
exhibitText: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ExhibitMovableWindow: ({ showExhibit, setOpenPdf, setShowExhibit, exhibitText }: IProps) => React.JSX.Element;
|
|
13
|
-
export default ExhibitMovableWindow;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IFile } from '../conts';
|
|
3
|
-
interface IProps {
|
|
4
|
-
exhibits: Array<{
|
|
5
|
-
created_at: Date;
|
|
6
|
-
description: string;
|
|
7
|
-
files: IFile[];
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}>;
|
|
11
|
-
handleShowExhibit: (params: {
|
|
12
|
-
id: string;
|
|
13
|
-
description: string;
|
|
14
|
-
index: number;
|
|
15
|
-
name: string;
|
|
16
|
-
files: IFile[];
|
|
17
|
-
}, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
18
|
-
exhibitText: string;
|
|
19
|
-
}
|
|
20
|
-
declare const ExhibitRender: ({ exhibits, handleShowExhibit, exhibitText }: IProps) => React.JSX.Element;
|
|
21
|
-
export default ExhibitRender;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IRequirement } from '../conts';
|
|
3
|
-
interface IProps {
|
|
4
|
-
activeQuestion: {
|
|
5
|
-
solution?: string;
|
|
6
|
-
confirmed?: boolean;
|
|
7
|
-
};
|
|
8
|
-
explanationTitle?: string;
|
|
9
|
-
showRequirement?: IRequirement | null;
|
|
10
|
-
}
|
|
11
|
-
declare const Explanation: ({ activeQuestion, explanationTitle, showRequirement }: IProps) => React.JSX.Element;
|
|
12
|
-
export default Explanation;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
fileName?: string;
|
|
5
|
-
key?: number | string;
|
|
6
|
-
url?: string;
|
|
7
|
-
setOpenPdf?: Dispatch<SetStateAction<{
|
|
8
|
-
status: boolean;
|
|
9
|
-
url: string;
|
|
10
|
-
} | undefined>>;
|
|
11
|
-
isDownloadFile?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const FileDisplay: ({ setOpenPdf, fileName, key, title, url, isDownloadFile }: IProps) => React.JSX.Element;
|
|
14
|
-
export default FileDisplay;
|
package/dist/common/Icon.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type IconsPros = {
|
|
3
|
-
type?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
export default function Icon({ type, className }: IconsPros): import("react").JSX.Element;
|
|
7
|
-
export declare const TimeIcon: () => import("react").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
children?: any;
|
|
4
|
-
getResize?: (data: any) => void;
|
|
5
|
-
position?: any;
|
|
6
|
-
onClick?: any;
|
|
7
|
-
zIndex?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const MovableWindow: ({ children, getResize, position, onClick, zIndex, className }: IProps) => React.JSX.Element;
|
|
11
|
-
export default MovableWindow;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type iconType = 'camera' | 'course_text' | 'course_video' | 'course_video_timeline' | 'arrow_left' | 'arrow_right' | 'arrow_down' | 'x';
|
|
3
|
-
declare type SAPP_ICONS_TYPE = {
|
|
4
|
-
[key in iconType]: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
declare type Props = {
|
|
7
|
-
icon: keyof SAPP_ICONS_TYPE;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const SappIcon: ({ icon, className }: Props) => React.JSX.Element;
|
|
11
|
-
export default SappIcon;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IFile } from '../conts';
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IShowExhibit } from '../constant';
|
|
3
|
-
interface IProps {
|
|
4
|
-
showExhibit: IShowExhibit;
|
|
5
|
-
setOpenPdf: Dispatch<SetStateAction<{
|
|
6
|
-
status: boolean;
|
|
7
|
-
url: string;
|
|
8
|
-
} | undefined>>;
|
|
9
|
-
setShowExhibit: Dispatch<SetStateAction<IShowExhibit | undefined>>;
|
|
10
|
-
exhibitText: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ExhibitMovableWindow: ({ showExhibit, setOpenPdf, setShowExhibit, exhibitText }: IProps) => React.JSX.Element;
|
|
13
|
-
export default ExhibitMovableWindow;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IShowExhibit } from '../constant';
|
|
3
|
-
interface IProps {
|
|
4
|
-
showExhibit: IShowExhibit;
|
|
5
|
-
setOpenPdf: Dispatch<SetStateAction<{
|
|
6
|
-
status: boolean;
|
|
7
|
-
url: string;
|
|
8
|
-
} | undefined>>;
|
|
9
|
-
setShowExhibit: Dispatch<SetStateAction<IShowExhibit | undefined>>;
|
|
10
|
-
exhibitText: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ExhibitMovableWindowV2: ({ showExhibit, setOpenPdf, setShowExhibit, exhibitText }: IProps) => React.JSX.Element;
|
|
13
|
-
export default ExhibitMovableWindowV2;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IFile } from '../constant';
|
|
3
|
-
interface IProps {
|
|
4
|
-
exhibits: Array<{
|
|
5
|
-
description: string;
|
|
6
|
-
files: IFile[];
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}>;
|
|
10
|
-
handleShowExhibit: (params: {
|
|
11
|
-
id: string;
|
|
12
|
-
description: string;
|
|
13
|
-
index: number;
|
|
14
|
-
name: string;
|
|
15
|
-
files: IFile[];
|
|
16
|
-
}, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
17
|
-
exhibitText: string;
|
|
18
|
-
}
|
|
19
|
-
declare const ExhibitRender: ({ exhibits, handleShowExhibit, exhibitText }: IProps) => React.JSX.Element;
|
|
20
|
-
export default ExhibitRender;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
fileName?: string;
|
|
5
|
-
key?: number | string;
|
|
6
|
-
url?: string;
|
|
7
|
-
setOpenPdf?: Dispatch<SetStateAction<{
|
|
8
|
-
status: boolean;
|
|
9
|
-
url: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
} | undefined>>;
|
|
12
|
-
isDownloadFile?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const FileDisplay: ({ setOpenPdf, fileName, key, title, url, isDownloadFile }: IProps) => React.JSX.Element;
|
|
15
|
-
export default FileDisplay;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type IconsPros = {
|
|
3
|
-
type?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
export default function Icon({ type, className }: IconsPros): React.JSX.Element;
|
|
7
|
-
export declare const TimeIcon: () => React.JSX.Element;
|
|
8
|
-
export declare const CollapseArrowIcon: React.MemoExoticComponent<({ selected, className }: {
|
|
9
|
-
selected?: boolean | undefined;
|
|
10
|
-
className?: string | undefined;
|
|
11
|
-
}) => React.JSX.Element>;
|
|
12
|
-
export declare const LoadingIcon: ({ loading, loadingPercentage, stroke }: {
|
|
13
|
-
loading?: boolean | undefined;
|
|
14
|
-
loadingPercentage?: number | undefined;
|
|
15
|
-
stroke?: "#ffffff" | "#404041" | undefined;
|
|
16
|
-
}) => React.JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
children?: any;
|
|
4
|
-
getResize?: (data: any) => void;
|
|
5
|
-
position?: any;
|
|
6
|
-
onClick?: any;
|
|
7
|
-
zIndex?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const MovableWindow: ({ children, getResize, position, onClick, zIndex, className }: IProps) => React.JSX.Element;
|
|
11
|
-
export default MovableWindow;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type iconType = 'camera' | 'course_text' | 'course_video' | 'course_video_timeline' | 'arrow_left' | 'arrow_right' | 'arrow_down' | 'x';
|
|
3
|
-
declare type SAPP_ICONS_TYPE = {
|
|
4
|
-
[key in iconType]: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
declare type Props = {
|
|
7
|
-
icon: keyof SAPP_ICONS_TYPE;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const SappIcon: ({ icon, className }: Props) => React.JSX.Element;
|
|
11
|
-
export default SappIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const commentListStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,11 +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
|
-
}
|
|
10
|
-
declare const CommentList: ({ data, editorRef, commentRef, className, overlayClassName }: IProps) => React.JSX.Element;
|
|
11
|
-
export default CommentList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const commentListStylesV2: import("styled-components").FlattenSimpleInterpolation;
|