catchup-library-web 2.2.18 → 2.2.19
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/index.d.mts
CHANGED
|
@@ -216,7 +216,7 @@ interface IActivitySolutionProps {
|
|
|
216
216
|
}
|
|
217
217
|
interface IActivityPreviewByDataProps {
|
|
218
218
|
data: any;
|
|
219
|
-
changeAnswer
|
|
219
|
+
changeAnswer?: (e: any) => void;
|
|
220
220
|
answerType?: string | null;
|
|
221
221
|
showType?: boolean;
|
|
222
222
|
showDescription?: boolean;
|
|
@@ -227,6 +227,7 @@ interface IActivityPreviewByDataProps {
|
|
|
227
227
|
isFullScreen?: boolean;
|
|
228
228
|
showCorrectAnswer?: boolean;
|
|
229
229
|
showMaterialContent?: boolean;
|
|
230
|
+
isPreview: boolean;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element | null;
|
|
@@ -253,7 +254,7 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
|
|
|
253
254
|
|
|
254
255
|
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
255
256
|
|
|
256
|
-
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
|
+
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, isPreview, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
258
|
|
|
258
259
|
interface IStatusErrorProperties {
|
|
259
260
|
statusCode?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ interface IActivitySolutionProps {
|
|
|
216
216
|
}
|
|
217
217
|
interface IActivityPreviewByDataProps {
|
|
218
218
|
data: any;
|
|
219
|
-
changeAnswer
|
|
219
|
+
changeAnswer?: (e: any) => void;
|
|
220
220
|
answerType?: string | null;
|
|
221
221
|
showType?: boolean;
|
|
222
222
|
showDescription?: boolean;
|
|
@@ -227,6 +227,7 @@ interface IActivityPreviewByDataProps {
|
|
|
227
227
|
isFullScreen?: boolean;
|
|
228
228
|
showCorrectAnswer?: boolean;
|
|
229
229
|
showMaterialContent?: boolean;
|
|
230
|
+
isPreview: boolean;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element | null;
|
|
@@ -253,7 +254,7 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
|
|
|
253
254
|
|
|
254
255
|
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
255
256
|
|
|
256
|
-
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
|
+
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, isPreview, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
258
|
|
|
258
259
|
interface IStatusErrorProperties {
|
|
259
260
|
statusCode?: string;
|
package/dist/index.js
CHANGED
|
@@ -7296,7 +7296,8 @@ var ActivityPreviewByData = ({
|
|
|
7296
7296
|
showDifficulty = true,
|
|
7297
7297
|
isFullScreen = false,
|
|
7298
7298
|
showCorrectAnswer = false,
|
|
7299
|
-
showMaterialContent = true
|
|
7299
|
+
showMaterialContent = true,
|
|
7300
|
+
isPreview = true
|
|
7300
7301
|
}) => {
|
|
7301
7302
|
const [selectedType, setSelectedType] = (0, import_react27.useState)(null);
|
|
7302
7303
|
const [optionList, setOptionList] = (0, import_react27.useState)([]);
|
|
@@ -7366,7 +7367,7 @@ var ActivityPreviewByData = ({
|
|
|
7366
7367
|
data,
|
|
7367
7368
|
canAnswerQuestion: () => true,
|
|
7368
7369
|
changeAnswer,
|
|
7369
|
-
isPreview
|
|
7370
|
+
isPreview,
|
|
7370
7371
|
showCorrectAnswer,
|
|
7371
7372
|
isFullScreen
|
|
7372
7373
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -7073,7 +7073,8 @@ var ActivityPreviewByData = ({
|
|
|
7073
7073
|
showDifficulty = true,
|
|
7074
7074
|
isFullScreen = false,
|
|
7075
7075
|
showCorrectAnswer = false,
|
|
7076
|
-
showMaterialContent = true
|
|
7076
|
+
showMaterialContent = true,
|
|
7077
|
+
isPreview = true
|
|
7077
7078
|
}) => {
|
|
7078
7079
|
const [selectedType, setSelectedType] = useState26(null);
|
|
7079
7080
|
const [optionList, setOptionList] = useState26([]);
|
|
@@ -7143,7 +7144,7 @@ var ActivityPreviewByData = ({
|
|
|
7143
7144
|
data,
|
|
7144
7145
|
canAnswerQuestion: () => true,
|
|
7145
7146
|
changeAnswer,
|
|
7146
|
-
isPreview
|
|
7147
|
+
isPreview,
|
|
7147
7148
|
showCorrectAnswer,
|
|
7148
7149
|
isFullScreen
|
|
7149
7150
|
};
|
package/package.json
CHANGED
|
@@ -48,6 +48,7 @@ const ActivityPreviewByData = ({
|
|
|
48
48
|
isFullScreen = false,
|
|
49
49
|
showCorrectAnswer = false,
|
|
50
50
|
showMaterialContent = true,
|
|
51
|
+
isPreview = true,
|
|
51
52
|
}: IActivityPreviewByDataProps) => {
|
|
52
53
|
const [selectedType, setSelectedType] = useState<string | null>(null);
|
|
53
54
|
const [optionList, setOptionList] = useState<any[]>([]);
|
|
@@ -126,7 +127,7 @@ const ActivityPreviewByData = ({
|
|
|
126
127
|
data,
|
|
127
128
|
canAnswerQuestion: () => true,
|
|
128
129
|
changeAnswer,
|
|
129
|
-
isPreview
|
|
130
|
+
isPreview,
|
|
130
131
|
showCorrectAnswer,
|
|
131
132
|
isFullScreen,
|
|
132
133
|
};
|
|
@@ -221,7 +221,7 @@ export interface IActivitySolutionProps {
|
|
|
221
221
|
|
|
222
222
|
export interface IActivityPreviewByDataProps {
|
|
223
223
|
data: any;
|
|
224
|
-
changeAnswer
|
|
224
|
+
changeAnswer?: (e: any) => void;
|
|
225
225
|
answerType?: string | null;
|
|
226
226
|
showType?: boolean;
|
|
227
227
|
showDescription?: boolean;
|
|
@@ -232,4 +232,5 @@ export interface IActivityPreviewByDataProps {
|
|
|
232
232
|
isFullScreen?: boolean;
|
|
233
233
|
showCorrectAnswer?: boolean;
|
|
234
234
|
showMaterialContent?: boolean;
|
|
235
|
+
isPreview: boolean;
|
|
235
236
|
}
|