catchup-library-web 2.0.17 → 2.0.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
|
@@ -231,7 +231,7 @@ interface IActivityPreviewByAnswerDataProps {
|
|
|
231
231
|
answerType?: string | null;
|
|
232
232
|
showType?: boolean;
|
|
233
233
|
showDescription?: boolean;
|
|
234
|
-
|
|
234
|
+
typeList?: any[];
|
|
235
235
|
showSolution?: boolean;
|
|
236
236
|
showEvaluationRubric?: boolean;
|
|
237
237
|
showDifficulty?: boolean;
|
|
@@ -265,7 +265,7 @@ declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }:
|
|
|
265
265
|
|
|
266
266
|
declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
267
267
|
|
|
268
|
-
declare const ActivityPreviewByAnswerData: ({ data, answerType, showType, showDescription,
|
|
268
|
+
declare const ActivityPreviewByAnswerData: ({ data, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
269
269
|
|
|
270
270
|
interface IStatusErrorProperties {
|
|
271
271
|
statusCode?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ interface IActivityPreviewByAnswerDataProps {
|
|
|
231
231
|
answerType?: string | null;
|
|
232
232
|
showType?: boolean;
|
|
233
233
|
showDescription?: boolean;
|
|
234
|
-
|
|
234
|
+
typeList?: any[];
|
|
235
235
|
showSolution?: boolean;
|
|
236
236
|
showEvaluationRubric?: boolean;
|
|
237
237
|
showDifficulty?: boolean;
|
|
@@ -265,7 +265,7 @@ declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }:
|
|
|
265
265
|
|
|
266
266
|
declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
267
267
|
|
|
268
|
-
declare const ActivityPreviewByAnswerData: ({ data, answerType, showType, showDescription,
|
|
268
|
+
declare const ActivityPreviewByAnswerData: ({ data, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
269
269
|
|
|
270
270
|
interface IStatusErrorProperties {
|
|
271
271
|
statusCode?: string;
|
package/dist/index.js
CHANGED
|
@@ -7454,7 +7454,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7454
7454
|
answerType = null,
|
|
7455
7455
|
showType = true,
|
|
7456
7456
|
showDescription = true,
|
|
7457
|
-
|
|
7457
|
+
typeList = [],
|
|
7458
7458
|
showSolution = false,
|
|
7459
7459
|
showEvaluationRubric = false,
|
|
7460
7460
|
showDifficulty = true,
|
|
@@ -7470,9 +7470,9 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7470
7470
|
let currentActivityTemplateMapList = JSON.parse(
|
|
7471
7471
|
JSON.stringify(ACTIVITY_TEMPLATE_LIST)
|
|
7472
7472
|
);
|
|
7473
|
-
if (
|
|
7473
|
+
if (typeList.length > 0) {
|
|
7474
7474
|
currentActivityTemplateMapList = currentActivityTemplateMapList.filter(
|
|
7475
|
-
(activityTemplateMap) =>
|
|
7475
|
+
(activityTemplateMap) => typeList.includes(activityTemplateMap.type)
|
|
7476
7476
|
);
|
|
7477
7477
|
}
|
|
7478
7478
|
const currentActivityTemplateTypeList = [];
|
|
@@ -7482,7 +7482,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7482
7482
|
}
|
|
7483
7483
|
}
|
|
7484
7484
|
setActivityTemplateTypeList(currentActivityTemplateMapList);
|
|
7485
|
-
}, [data, answerType,
|
|
7485
|
+
}, [data, answerType, typeList]);
|
|
7486
7486
|
(0, import_react26.useEffect)(() => {
|
|
7487
7487
|
if (activityTemplateTypeList.length === 0) return;
|
|
7488
7488
|
const currentOptionList = [];
|
package/dist/index.mjs
CHANGED
|
@@ -7232,7 +7232,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7232
7232
|
answerType = null,
|
|
7233
7233
|
showType = true,
|
|
7234
7234
|
showDescription = true,
|
|
7235
|
-
|
|
7235
|
+
typeList = [],
|
|
7236
7236
|
showSolution = false,
|
|
7237
7237
|
showEvaluationRubric = false,
|
|
7238
7238
|
showDifficulty = true,
|
|
@@ -7248,9 +7248,9 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7248
7248
|
let currentActivityTemplateMapList = JSON.parse(
|
|
7249
7249
|
JSON.stringify(ACTIVITY_TEMPLATE_LIST)
|
|
7250
7250
|
);
|
|
7251
|
-
if (
|
|
7251
|
+
if (typeList.length > 0) {
|
|
7252
7252
|
currentActivityTemplateMapList = currentActivityTemplateMapList.filter(
|
|
7253
|
-
(activityTemplateMap) =>
|
|
7253
|
+
(activityTemplateMap) => typeList.includes(activityTemplateMap.type)
|
|
7254
7254
|
);
|
|
7255
7255
|
}
|
|
7256
7256
|
const currentActivityTemplateTypeList = [];
|
|
@@ -7260,7 +7260,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7260
7260
|
}
|
|
7261
7261
|
}
|
|
7262
7262
|
setActivityTemplateTypeList(currentActivityTemplateMapList);
|
|
7263
|
-
}, [data, answerType,
|
|
7263
|
+
}, [data, answerType, typeList]);
|
|
7264
7264
|
useEffect16(() => {
|
|
7265
7265
|
if (activityTemplateTypeList.length === 0) return;
|
|
7266
7266
|
const currentOptionList = [];
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ const ActivityPreviewByAnswerData = ({
|
|
|
40
40
|
answerType = null,
|
|
41
41
|
showType = true,
|
|
42
42
|
showDescription = true,
|
|
43
|
-
|
|
43
|
+
typeList = [],
|
|
44
44
|
showSolution = false,
|
|
45
45
|
showEvaluationRubric = false,
|
|
46
46
|
showDifficulty = true,
|
|
@@ -59,10 +59,9 @@ const ActivityPreviewByAnswerData = ({
|
|
|
59
59
|
let currentActivityTemplateMapList: any[] = JSON.parse(
|
|
60
60
|
JSON.stringify(ACTIVITY_TEMPLATE_LIST)
|
|
61
61
|
);
|
|
62
|
-
if (
|
|
62
|
+
if (typeList.length > 0) {
|
|
63
63
|
currentActivityTemplateMapList = currentActivityTemplateMapList.filter(
|
|
64
|
-
(activityTemplateMap) =>
|
|
65
|
-
lockedTypeList.includes(activityTemplateMap.type)
|
|
64
|
+
(activityTemplateMap) => typeList.includes(activityTemplateMap.type)
|
|
66
65
|
);
|
|
67
66
|
}
|
|
68
67
|
const currentActivityTemplateTypeList = [];
|
|
@@ -72,7 +71,7 @@ const ActivityPreviewByAnswerData = ({
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
setActivityTemplateTypeList(currentActivityTemplateMapList);
|
|
75
|
-
}, [data, answerType,
|
|
74
|
+
}, [data, answerType, typeList]);
|
|
76
75
|
|
|
77
76
|
useEffect(() => {
|
|
78
77
|
if (activityTemplateTypeList.length === 0) return;
|
|
@@ -235,8 +235,7 @@ export interface IActivityPreviewByAnswerDataProps {
|
|
|
235
235
|
answerType?: string | null;
|
|
236
236
|
showType?: boolean;
|
|
237
237
|
showDescription?: boolean;
|
|
238
|
-
|
|
239
|
-
// typeOptionList?: any[];
|
|
238
|
+
typeList?: any[];
|
|
240
239
|
showSolution?: boolean;
|
|
241
240
|
showEvaluationRubric?: boolean;
|
|
242
241
|
showDifficulty?: boolean;
|