catchup-library-web 1.16.3 → 1.16.5

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.js CHANGED
@@ -4579,7 +4579,7 @@ var DropdownActivityMaterialContent = ({
4579
4579
  return answer.data[foundIndex].answerMap;
4580
4580
  };
4581
4581
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
4582
- if (!isPreview) return "HIDDEN";
4582
+ if (!isPreview) return null;
4583
4583
  if (correctAnswer === learnerAnswer) {
4584
4584
  return "CORRECT";
4585
4585
  }
@@ -4882,7 +4882,7 @@ var FillInTheBlanksActivityMaterialContent = ({
4882
4882
  return answer.data[foundIndex].answerMap;
4883
4883
  };
4884
4884
  const checkAnswerState = (correctAnswerList, learnerAnswer) => {
4885
- if (!isPreview) return "HIDDEN";
4885
+ if (!isPreview) return null;
4886
4886
  const foundIndex = correctAnswerList.findIndex(
4887
4887
  (correctAnswer) => correctAnswer === learnerAnswer
4888
4888
  );
@@ -5260,7 +5260,7 @@ var GroupingActivityMaterialContent = ({
5260
5260
  );
5261
5261
  };
5262
5262
  const checkAnswerState = (correctAnswerList, learnerAnswer) => {
5263
- if (!isPreview) return "HIDDEN";
5263
+ if (!isPreview) return null;
5264
5264
  if (!learnerAnswer) return "EMPTY";
5265
5265
  if (!correctAnswerList) return "EMPTY";
5266
5266
  const foundIndex = correctAnswerList.findIndex(
@@ -5593,7 +5593,7 @@ var MatchingActivityMaterialContent = ({
5593
5593
  );
5594
5594
  };
5595
5595
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
5596
- if (!isPreview) return "HIDDEN";
5596
+ if (!isPreview) return null;
5597
5597
  if (!learnerAnswer) return "EMPTY";
5598
5598
  if (correctAnswer === learnerAnswer) {
5599
5599
  return "CORRECT";
@@ -6406,7 +6406,7 @@ var OrderingActivityMaterialContent = ({
6406
6406
  return answer.data[foundIndex].answerMap;
6407
6407
  };
6408
6408
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
6409
- if (!isPreview) return "HIDDEN";
6409
+ if (!isPreview) return null;
6410
6410
  if (correctAnswer === learnerAnswer) {
6411
6411
  return "CORRECT";
6412
6412
  }
@@ -6615,7 +6615,7 @@ var TrueFalseActivityMaterialContent = ({
6615
6615
  return answerMap2;
6616
6616
  };
6617
6617
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
6618
- if (!isPreview) return "HIDDEN";
6618
+ if (!isPreview) return null;
6619
6619
  if (correctAnswer === learnerAnswer) {
6620
6620
  return "CORRECT";
6621
6621
  }
package/dist/index.mjs CHANGED
@@ -4367,7 +4367,7 @@ var DropdownActivityMaterialContent = ({
4367
4367
  return answer.data[foundIndex].answerMap;
4368
4368
  };
4369
4369
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
4370
- if (!isPreview) return "HIDDEN";
4370
+ if (!isPreview) return null;
4371
4371
  if (correctAnswer === learnerAnswer) {
4372
4372
  return "CORRECT";
4373
4373
  }
@@ -4670,7 +4670,7 @@ var FillInTheBlanksActivityMaterialContent = ({
4670
4670
  return answer.data[foundIndex].answerMap;
4671
4671
  };
4672
4672
  const checkAnswerState = (correctAnswerList, learnerAnswer) => {
4673
- if (!isPreview) return "HIDDEN";
4673
+ if (!isPreview) return null;
4674
4674
  const foundIndex = correctAnswerList.findIndex(
4675
4675
  (correctAnswer) => correctAnswer === learnerAnswer
4676
4676
  );
@@ -5048,7 +5048,7 @@ var GroupingActivityMaterialContent = ({
5048
5048
  );
5049
5049
  };
5050
5050
  const checkAnswerState = (correctAnswerList, learnerAnswer) => {
5051
- if (!isPreview) return "HIDDEN";
5051
+ if (!isPreview) return null;
5052
5052
  if (!learnerAnswer) return "EMPTY";
5053
5053
  if (!correctAnswerList) return "EMPTY";
5054
5054
  const foundIndex = correctAnswerList.findIndex(
@@ -5381,7 +5381,7 @@ var MatchingActivityMaterialContent = ({
5381
5381
  );
5382
5382
  };
5383
5383
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
5384
- if (!isPreview) return "HIDDEN";
5384
+ if (!isPreview) return null;
5385
5385
  if (!learnerAnswer) return "EMPTY";
5386
5386
  if (correctAnswer === learnerAnswer) {
5387
5387
  return "CORRECT";
@@ -6194,7 +6194,7 @@ var OrderingActivityMaterialContent = ({
6194
6194
  return answer.data[foundIndex].answerMap;
6195
6195
  };
6196
6196
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
6197
- if (!isPreview) return "HIDDEN";
6197
+ if (!isPreview) return null;
6198
6198
  if (correctAnswer === learnerAnswer) {
6199
6199
  return "CORRECT";
6200
6200
  }
@@ -6403,7 +6403,7 @@ var TrueFalseActivityMaterialContent = ({
6403
6403
  return answerMap2;
6404
6404
  };
6405
6405
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
6406
- if (!isPreview) return "HIDDEN";
6406
+ if (!isPreview) return null;
6407
6407
  if (correctAnswer === learnerAnswer) {
6408
6408
  return "CORRECT";
6409
6409
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.16.3",
3
+ "version": "1.16.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@ const DropdownActivityMaterialContent = ({
50
50
  };
51
51
 
52
52
  const checkAnswerState = (correctAnswer: string, learnerAnswer: string) => {
53
- if (!isPreview) return "HIDDEN";
53
+ if (!isPreview) return null;
54
54
  if (correctAnswer === learnerAnswer) {
55
55
  return "CORRECT";
56
56
  }
@@ -62,7 +62,7 @@ const FillInTheBlanksActivityMaterialContent = ({
62
62
  };
63
63
 
64
64
  const checkAnswerState = (correctAnswerList: any, learnerAnswer: string) => {
65
- if (!isPreview) return "HIDDEN";
65
+ if (!isPreview) return null;
66
66
  const foundIndex = correctAnswerList.findIndex(
67
67
  (correctAnswer: string) => correctAnswer === learnerAnswer
68
68
  );
@@ -102,7 +102,7 @@ const GroupingActivityMaterialContent = ({
102
102
  };
103
103
 
104
104
  const checkAnswerState = (correctAnswerList: any, learnerAnswer: string) => {
105
- if (!isPreview) return "HIDDEN";
105
+ if (!isPreview) return null;
106
106
  if (!learnerAnswer) return "EMPTY";
107
107
  if (!correctAnswerList) return "EMPTY";
108
108
  const foundIndex = correctAnswerList.findIndex(
@@ -101,7 +101,7 @@ const MatchingActivityMaterialContent = ({
101
101
  };
102
102
 
103
103
  const checkAnswerState = (correctAnswer: string, learnerAnswer: string) => {
104
- if (!isPreview) return "HIDDEN";
104
+ if (!isPreview) return null;
105
105
  if (!learnerAnswer) return "EMPTY";
106
106
  if (correctAnswer === learnerAnswer) {
107
107
  return "CORRECT";
@@ -57,7 +57,7 @@ const OrderingActivityMaterialContent = ({
57
57
  };
58
58
 
59
59
  const checkAnswerState = (correctAnswer: string, learnerAnswer: string) => {
60
- if (!isPreview) return "HIDDEN";
60
+ if (!isPreview) return null;
61
61
  if (correctAnswer === learnerAnswer) {
62
62
  return "CORRECT";
63
63
  }
@@ -59,7 +59,7 @@ const TrueFalseActivityMaterialContent = ({
59
59
  };
60
60
 
61
61
  const checkAnswerState = (correctAnswer: string, learnerAnswer: string) => {
62
- if (!isPreview) return "HIDDEN";
62
+ if (!isPreview) return null;
63
63
  if (correctAnswer === learnerAnswer) {
64
64
  return "CORRECT";
65
65
  }