catchup-library-web 2.0.18 → 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
- lockedTypeList?: any[];
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, lockedTypeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
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
- lockedTypeList?: any[];
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, lockedTypeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
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
- lockedTypeList = [],
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 (lockedTypeList.length > 0) {
7473
+ if (typeList.length > 0) {
7474
7474
  currentActivityTemplateMapList = currentActivityTemplateMapList.filter(
7475
- (activityTemplateMap) => lockedTypeList.includes(activityTemplateMap.type)
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, lockedTypeList]);
7485
+ }, [data, answerType, typeList]);
7486
7486
  (0, import_react26.useEffect)(() => {
7487
7487
  if (activityTemplateTypeList.length === 0) return;
7488
7488
  const currentOptionList = [];
@@ -7511,7 +7511,6 @@ var ActivityPreviewByAnswerData = ({
7511
7511
  if (activityTemplateTypeList.length === 0) return;
7512
7512
  const currentAnswerMapMap = {};
7513
7513
  for (const activityTemplateMap of activityTemplateTypeList) {
7514
- console.log(activityTemplateMap, answerType);
7515
7514
  if (answerType === activityTemplateMap.type) {
7516
7515
  currentAnswerMapMap[activityTemplateMap.type] = data.answerMap;
7517
7516
  } else {
package/dist/index.mjs CHANGED
@@ -7232,7 +7232,7 @@ var ActivityPreviewByAnswerData = ({
7232
7232
  answerType = null,
7233
7233
  showType = true,
7234
7234
  showDescription = true,
7235
- lockedTypeList = [],
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 (lockedTypeList.length > 0) {
7251
+ if (typeList.length > 0) {
7252
7252
  currentActivityTemplateMapList = currentActivityTemplateMapList.filter(
7253
- (activityTemplateMap) => lockedTypeList.includes(activityTemplateMap.type)
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, lockedTypeList]);
7263
+ }, [data, answerType, typeList]);
7264
7264
  useEffect16(() => {
7265
7265
  if (activityTemplateTypeList.length === 0) return;
7266
7266
  const currentOptionList = [];
@@ -7289,7 +7289,6 @@ var ActivityPreviewByAnswerData = ({
7289
7289
  if (activityTemplateTypeList.length === 0) return;
7290
7290
  const currentAnswerMapMap = {};
7291
7291
  for (const activityTemplateMap of activityTemplateTypeList) {
7292
- console.log(activityTemplateMap, answerType);
7293
7292
  if (answerType === activityTemplateMap.type) {
7294
7293
  currentAnswerMapMap[activityTemplateMap.type] = data.answerMap;
7295
7294
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@ const ActivityPreviewByAnswerData = ({
40
40
  answerType = null,
41
41
  showType = true,
42
42
  showDescription = true,
43
- lockedTypeList = [],
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 (lockedTypeList.length > 0) {
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, lockedTypeList]);
74
+ }, [data, answerType, typeList]);
76
75
 
77
76
  useEffect(() => {
78
77
  if (activityTemplateTypeList.length === 0) return;
@@ -104,7 +103,6 @@ const ActivityPreviewByAnswerData = ({
104
103
  if (activityTemplateTypeList.length === 0) return;
105
104
  const currentAnswerMapMap: any = {};
106
105
  for (const activityTemplateMap of activityTemplateTypeList) {
107
- console.log(activityTemplateMap, answerType);
108
106
  if (answerType === activityTemplateMap.type) {
109
107
  currentAnswerMapMap[activityTemplateMap.type] = data.answerMap;
110
108
  } else {
@@ -235,8 +235,7 @@ export interface IActivityPreviewByAnswerDataProps {
235
235
  answerType?: string | null;
236
236
  showType?: boolean;
237
237
  showDescription?: boolean;
238
- lockedTypeList?: any[];
239
- // typeOptionList?: any[];
238
+ typeList?: any[];
240
239
  showSolution?: boolean;
241
240
  showEvaluationRubric?: boolean;
242
241
  showDifficulty?: boolean;