catchup-library-web 2.0.19 → 2.0.21

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
@@ -291,6 +291,8 @@ interface IInputGroupProps {
291
291
  defaultValue?: string;
292
292
  placeholder?: string;
293
293
  value: string;
294
+ minValue?: string;
295
+ maxValue?: string;
294
296
  onFocus?: (e: any) => void;
295
297
  onChange?: (e: any) => void;
296
298
  onClick?: (e: any) => void;
@@ -355,7 +357,7 @@ declare global {
355
357
  }
356
358
  }
357
359
  }
358
- declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element;
360
+ declare const InputGroup: ({ type, title, defaultValue, placeholder, value, minValue, maxValue, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element;
359
361
 
360
362
  declare const LeftTextRightInputGroup: ({ type, title, value, optionList, onChange, disabled, errorText, }: ILeftTextRightInputGroupProps) => react_jsx_runtime.JSX.Element;
361
363
 
@@ -564,7 +566,7 @@ declare const constructActivityItemListForSolution: (bodyMap: any, materialMap:
564
566
  }[];
565
567
  declare const retrieveActivityTemplateDTOOptionList: (activityTemplateSet: any) => any;
566
568
  declare const retrieveCurrentDefaultDataMap: (activityTemplateType: any, activityData: any) => any;
567
- declare const constructActivityAnswerMap: (activityTemplate: any, activityData: any) => any;
569
+ declare const constructActivityAnswerMap: (activityTemplateType: string, activityData: any) => any;
568
570
  declare const ignoreMathematicalExpression: (inputText: string) => string;
569
571
  declare const constructActivityAnswerStateList: (answerList: any[], activityList: any[]) => any;
570
572
  declare const retrieveActivityAnswerFromAnswerList: (answerList: any[], activity: any) => any;
package/dist/index.d.ts CHANGED
@@ -291,6 +291,8 @@ interface IInputGroupProps {
291
291
  defaultValue?: string;
292
292
  placeholder?: string;
293
293
  value: string;
294
+ minValue?: string;
295
+ maxValue?: string;
294
296
  onFocus?: (e: any) => void;
295
297
  onChange?: (e: any) => void;
296
298
  onClick?: (e: any) => void;
@@ -355,7 +357,7 @@ declare global {
355
357
  }
356
358
  }
357
359
  }
358
- declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element;
360
+ declare const InputGroup: ({ type, title, defaultValue, placeholder, value, minValue, maxValue, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element;
359
361
 
360
362
  declare const LeftTextRightInputGroup: ({ type, title, value, optionList, onChange, disabled, errorText, }: ILeftTextRightInputGroupProps) => react_jsx_runtime.JSX.Element;
361
363
 
@@ -564,7 +566,7 @@ declare const constructActivityItemListForSolution: (bodyMap: any, materialMap:
564
566
  }[];
565
567
  declare const retrieveActivityTemplateDTOOptionList: (activityTemplateSet: any) => any;
566
568
  declare const retrieveCurrentDefaultDataMap: (activityTemplateType: any, activityData: any) => any;
567
- declare const constructActivityAnswerMap: (activityTemplate: any, activityData: any) => any;
569
+ declare const constructActivityAnswerMap: (activityTemplateType: string, activityData: any) => any;
568
570
  declare const ignoreMathematicalExpression: (inputText: string) => string;
569
571
  declare const constructActivityAnswerStateList: (answerList: any[], activityList: any[]) => any;
570
572
  declare const retrieveActivityAnswerFromAnswerList: (answerList: any[], activity: any) => any;
package/dist/index.js CHANGED
@@ -2373,35 +2373,34 @@ var retrieveCurrentDefaultDataMap = (activityTemplateType, activityData) => {
2373
2373
  }
2374
2374
  return {};
2375
2375
  };
2376
- var constructActivityAnswerMap = (activityTemplate, activityData) => {
2377
- const type = activityTemplate.type;
2378
- if (type === "ORDERING") {
2376
+ var constructActivityAnswerMap = (activityTemplateType, activityData) => {
2377
+ if (activityTemplateType === "ORDERING") {
2379
2378
  return retrieveDefaultOrderingDataMap(
2380
2379
  JSON.parse(activityData.orderingMaterialMap)
2381
2380
  );
2382
- } else if (type === "DROPDOWN") {
2381
+ } else if (activityTemplateType === "DROPDOWN") {
2383
2382
  return retrieveDefaultDropdownMap(
2384
2383
  JSON.parse(activityData.dropdownMaterialMap)
2385
2384
  );
2386
- } else if (type === "MCSA") {
2385
+ } else if (activityTemplateType === "MCSA") {
2387
2386
  return retrieveDefaultMCSAMap(JSON.parse(activityData.MCSAMaterialMap));
2388
- } else if (type === "MCMA") {
2387
+ } else if (activityTemplateType === "MCMA") {
2389
2388
  return retrieveDefaultMCMAMap(JSON.parse(activityData.MCMAMaterialMap));
2390
- } else if (type === "MATCHING") {
2389
+ } else if (activityTemplateType === "MATCHING") {
2391
2390
  return retrieveDefaultMatchingMap(
2392
2391
  JSON.parse(activityData.matchingMaterialMap)
2393
2392
  );
2394
- } else if (type === "GROUPING") {
2393
+ } else if (activityTemplateType === "GROUPING") {
2395
2394
  return retrieveDefaultGroupingMap(
2396
2395
  JSON.parse(activityData.groupingMaterialMap)
2397
2396
  );
2398
- } else if (type === "FILL_IN_THE_BLANKS") {
2397
+ } else if (activityTemplateType === "FILL_IN_THE_BLANKS") {
2399
2398
  return retrieveDefaultFillInTheBlanksMap(
2400
2399
  JSON.parse(activityData.fillInTheBlanksMaterialMap)
2401
2400
  );
2402
- } else if (type === "OPEN_ENDED") {
2401
+ } else if (activityTemplateType === "OPEN_ENDED") {
2403
2402
  return retrieveDefaultOpenEndedMap();
2404
- } else if (type === "TRUE_FALSE") {
2403
+ } else if (activityTemplateType === "TRUE_FALSE") {
2405
2404
  return retrieveDefaultTrueFalseMap();
2406
2405
  }
2407
2406
  return {};
@@ -2969,37 +2968,31 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
2969
2968
  var constructAnswerBasedOnData = (data) => {
2970
2969
  if (Object.keys(data).find((dataKey) => dataKey === "orderingMaterialMap")) {
2971
2970
  return constructActivityAnswerMap(
2972
- { type: "ORDERING" },
2971
+ "ORDERING",
2973
2972
  JSON.parse(JSON.stringify(data))
2974
2973
  );
2975
2974
  }
2976
2975
  if (Object.keys(data).find((dataKey) => dataKey === "dropdownMaterialMap")) {
2977
2976
  return constructActivityAnswerMap(
2978
- { type: "DROPDOWN" },
2977
+ "DROPDOWN",
2979
2978
  JSON.parse(JSON.stringify(data))
2980
2979
  );
2981
2980
  }
2982
2981
  if (Object.keys(data).find((dataKey) => dataKey === "MCSAMaterialMap")) {
2983
- return constructActivityAnswerMap(
2984
- { type: "MCSA" },
2985
- JSON.parse(JSON.stringify(data))
2986
- );
2982
+ return constructActivityAnswerMap("MCSA", JSON.parse(JSON.stringify(data)));
2987
2983
  }
2988
2984
  if (Object.keys(data).find((dataKey) => dataKey === "MCMAMaterialMap")) {
2989
- return constructActivityAnswerMap(
2990
- { type: "MCMA" },
2991
- JSON.parse(JSON.stringify(data))
2992
- );
2985
+ return constructActivityAnswerMap("MCMA", JSON.parse(JSON.stringify(data)));
2993
2986
  }
2994
2987
  if (Object.keys(data).find((dataKey) => dataKey === "matchingMaterialMap")) {
2995
2988
  return constructActivityAnswerMap(
2996
- { type: "MATCHING" },
2989
+ "MATCHING",
2997
2990
  JSON.parse(JSON.stringify(data))
2998
2991
  );
2999
2992
  }
3000
2993
  if (Object.keys(data).find((dataKey) => dataKey === "groupingMaterialMap")) {
3001
2994
  return constructActivityAnswerMap(
3002
- { type: "GROUPING" },
2995
+ "GROUPING",
3003
2996
  JSON.parse(JSON.stringify(data))
3004
2997
  );
3005
2998
  }
@@ -3007,19 +3000,19 @@ var constructAnswerBasedOnData = (data) => {
3007
3000
  (dataKey) => dataKey === "fillInTheBlanksMaterialMap"
3008
3001
  )) {
3009
3002
  return constructActivityAnswerMap(
3010
- { type: "FILL_IN_THE_BLANKS" },
3003
+ "FILL_IN_THE_BLANKS",
3011
3004
  JSON.parse(JSON.stringify(data))
3012
3005
  );
3013
3006
  }
3014
3007
  if (Object.keys(data).find((dataKey) => dataKey === "openEndedMaterialMap")) {
3015
3008
  return constructActivityAnswerMap(
3016
- { type: "OPEN_ENDED" },
3009
+ "OPEN_ENDED",
3017
3010
  JSON.parse(JSON.stringify(data))
3018
3011
  );
3019
3012
  }
3020
3013
  if (Object.keys(data).find((dataKey) => dataKey === "trueFalseMaterialMap")) {
3021
3014
  return constructActivityAnswerMap(
3022
- { type: "TRUE_FALSE" },
3015
+ "TRUE_FALSE",
3023
3016
  JSON.parse(JSON.stringify(data))
3024
3017
  );
3025
3018
  }
@@ -3825,6 +3818,8 @@ var InputGroup = ({
3825
3818
  defaultValue,
3826
3819
  placeholder,
3827
3820
  value,
3821
+ minValue,
3822
+ maxValue,
3828
3823
  onFocus,
3829
3824
  onChange,
3830
3825
  onClick,
@@ -4050,7 +4045,9 @@ var InputGroup = ({
4050
4045
  placeholder,
4051
4046
  value,
4052
4047
  onChange,
4053
- disabled
4048
+ disabled,
4049
+ min: minValue,
4050
+ max: maxValue
4054
4051
  }
4055
4052
  )
4056
4053
  ] });
@@ -7515,7 +7512,7 @@ var ActivityPreviewByAnswerData = ({
7515
7512
  currentAnswerMapMap[activityTemplateMap.type] = data.answerMap;
7516
7513
  } else {
7517
7514
  currentAnswerMapMap[activityTemplateMap.type] = constructActivityAnswerMap(
7518
- { type: activityTemplateMap.type },
7515
+ activityTemplateMap.type,
7519
7516
  JSON.parse(JSON.stringify(data))
7520
7517
  );
7521
7518
  }
package/dist/index.mjs CHANGED
@@ -2151,35 +2151,34 @@ var retrieveCurrentDefaultDataMap = (activityTemplateType, activityData) => {
2151
2151
  }
2152
2152
  return {};
2153
2153
  };
2154
- var constructActivityAnswerMap = (activityTemplate, activityData) => {
2155
- const type = activityTemplate.type;
2156
- if (type === "ORDERING") {
2154
+ var constructActivityAnswerMap = (activityTemplateType, activityData) => {
2155
+ if (activityTemplateType === "ORDERING") {
2157
2156
  return retrieveDefaultOrderingDataMap(
2158
2157
  JSON.parse(activityData.orderingMaterialMap)
2159
2158
  );
2160
- } else if (type === "DROPDOWN") {
2159
+ } else if (activityTemplateType === "DROPDOWN") {
2161
2160
  return retrieveDefaultDropdownMap(
2162
2161
  JSON.parse(activityData.dropdownMaterialMap)
2163
2162
  );
2164
- } else if (type === "MCSA") {
2163
+ } else if (activityTemplateType === "MCSA") {
2165
2164
  return retrieveDefaultMCSAMap(JSON.parse(activityData.MCSAMaterialMap));
2166
- } else if (type === "MCMA") {
2165
+ } else if (activityTemplateType === "MCMA") {
2167
2166
  return retrieveDefaultMCMAMap(JSON.parse(activityData.MCMAMaterialMap));
2168
- } else if (type === "MATCHING") {
2167
+ } else if (activityTemplateType === "MATCHING") {
2169
2168
  return retrieveDefaultMatchingMap(
2170
2169
  JSON.parse(activityData.matchingMaterialMap)
2171
2170
  );
2172
- } else if (type === "GROUPING") {
2171
+ } else if (activityTemplateType === "GROUPING") {
2173
2172
  return retrieveDefaultGroupingMap(
2174
2173
  JSON.parse(activityData.groupingMaterialMap)
2175
2174
  );
2176
- } else if (type === "FILL_IN_THE_BLANKS") {
2175
+ } else if (activityTemplateType === "FILL_IN_THE_BLANKS") {
2177
2176
  return retrieveDefaultFillInTheBlanksMap(
2178
2177
  JSON.parse(activityData.fillInTheBlanksMaterialMap)
2179
2178
  );
2180
- } else if (type === "OPEN_ENDED") {
2179
+ } else if (activityTemplateType === "OPEN_ENDED") {
2181
2180
  return retrieveDefaultOpenEndedMap();
2182
- } else if (type === "TRUE_FALSE") {
2181
+ } else if (activityTemplateType === "TRUE_FALSE") {
2183
2182
  return retrieveDefaultTrueFalseMap();
2184
2183
  }
2185
2184
  return {};
@@ -2747,37 +2746,31 @@ var constructActivityData = (activityTemplateType, contentMap, bodyMap, material
2747
2746
  var constructAnswerBasedOnData = (data) => {
2748
2747
  if (Object.keys(data).find((dataKey) => dataKey === "orderingMaterialMap")) {
2749
2748
  return constructActivityAnswerMap(
2750
- { type: "ORDERING" },
2749
+ "ORDERING",
2751
2750
  JSON.parse(JSON.stringify(data))
2752
2751
  );
2753
2752
  }
2754
2753
  if (Object.keys(data).find((dataKey) => dataKey === "dropdownMaterialMap")) {
2755
2754
  return constructActivityAnswerMap(
2756
- { type: "DROPDOWN" },
2755
+ "DROPDOWN",
2757
2756
  JSON.parse(JSON.stringify(data))
2758
2757
  );
2759
2758
  }
2760
2759
  if (Object.keys(data).find((dataKey) => dataKey === "MCSAMaterialMap")) {
2761
- return constructActivityAnswerMap(
2762
- { type: "MCSA" },
2763
- JSON.parse(JSON.stringify(data))
2764
- );
2760
+ return constructActivityAnswerMap("MCSA", JSON.parse(JSON.stringify(data)));
2765
2761
  }
2766
2762
  if (Object.keys(data).find((dataKey) => dataKey === "MCMAMaterialMap")) {
2767
- return constructActivityAnswerMap(
2768
- { type: "MCMA" },
2769
- JSON.parse(JSON.stringify(data))
2770
- );
2763
+ return constructActivityAnswerMap("MCMA", JSON.parse(JSON.stringify(data)));
2771
2764
  }
2772
2765
  if (Object.keys(data).find((dataKey) => dataKey === "matchingMaterialMap")) {
2773
2766
  return constructActivityAnswerMap(
2774
- { type: "MATCHING" },
2767
+ "MATCHING",
2775
2768
  JSON.parse(JSON.stringify(data))
2776
2769
  );
2777
2770
  }
2778
2771
  if (Object.keys(data).find((dataKey) => dataKey === "groupingMaterialMap")) {
2779
2772
  return constructActivityAnswerMap(
2780
- { type: "GROUPING" },
2773
+ "GROUPING",
2781
2774
  JSON.parse(JSON.stringify(data))
2782
2775
  );
2783
2776
  }
@@ -2785,19 +2778,19 @@ var constructAnswerBasedOnData = (data) => {
2785
2778
  (dataKey) => dataKey === "fillInTheBlanksMaterialMap"
2786
2779
  )) {
2787
2780
  return constructActivityAnswerMap(
2788
- { type: "FILL_IN_THE_BLANKS" },
2781
+ "FILL_IN_THE_BLANKS",
2789
2782
  JSON.parse(JSON.stringify(data))
2790
2783
  );
2791
2784
  }
2792
2785
  if (Object.keys(data).find((dataKey) => dataKey === "openEndedMaterialMap")) {
2793
2786
  return constructActivityAnswerMap(
2794
- { type: "OPEN_ENDED" },
2787
+ "OPEN_ENDED",
2795
2788
  JSON.parse(JSON.stringify(data))
2796
2789
  );
2797
2790
  }
2798
2791
  if (Object.keys(data).find((dataKey) => dataKey === "trueFalseMaterialMap")) {
2799
2792
  return constructActivityAnswerMap(
2800
- { type: "TRUE_FALSE" },
2793
+ "TRUE_FALSE",
2801
2794
  JSON.parse(JSON.stringify(data))
2802
2795
  );
2803
2796
  }
@@ -3603,6 +3596,8 @@ var InputGroup = ({
3603
3596
  defaultValue,
3604
3597
  placeholder,
3605
3598
  value,
3599
+ minValue,
3600
+ maxValue,
3606
3601
  onFocus,
3607
3602
  onChange,
3608
3603
  onClick,
@@ -3828,7 +3823,9 @@ var InputGroup = ({
3828
3823
  placeholder,
3829
3824
  value,
3830
3825
  onChange,
3831
- disabled
3826
+ disabled,
3827
+ min: minValue,
3828
+ max: maxValue
3832
3829
  }
3833
3830
  )
3834
3831
  ] });
@@ -7293,7 +7290,7 @@ var ActivityPreviewByAnswerData = ({
7293
7290
  currentAnswerMapMap[activityTemplateMap.type] = data.answerMap;
7294
7291
  } else {
7295
7292
  currentAnswerMapMap[activityTemplateMap.type] = constructActivityAnswerMap(
7296
- { type: activityTemplateMap.type },
7293
+ activityTemplateMap.type,
7297
7294
  JSON.parse(JSON.stringify(data))
7298
7295
  );
7299
7296
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -108,7 +108,7 @@ const ActivityPreviewByAnswerData = ({
108
108
  } else {
109
109
  currentAnswerMapMap[activityTemplateMap.type] =
110
110
  constructActivityAnswerMap(
111
- { type: activityTemplateMap.type },
111
+ activityTemplateMap.type,
112
112
  JSON.parse(JSON.stringify(data))
113
113
  );
114
114
  }
@@ -50,6 +50,8 @@ const InputGroup = ({
50
50
  defaultValue,
51
51
  placeholder,
52
52
  value,
53
+ minValue,
54
+ maxValue,
53
55
  onFocus,
54
56
  onChange,
55
57
  onClick,
@@ -299,6 +301,8 @@ const InputGroup = ({
299
301
  value={value}
300
302
  onChange={onChange}
301
303
  disabled={disabled}
304
+ min={minValue}
305
+ max={maxValue}
302
306
  />
303
307
  </div>
304
308
  );
@@ -4,6 +4,8 @@ export interface IInputGroupProps {
4
4
  defaultValue?: string;
5
5
  placeholder?: string;
6
6
  value: string;
7
+ minValue?: string;
8
+ maxValue?: string;
7
9
  onFocus?: (e: any) => void;
8
10
  onChange?: (e: any) => void;
9
11
  onClick?: (e: any) => void;
@@ -1206,38 +1206,36 @@ export const retrieveCurrentDefaultDataMap = (
1206
1206
  };
1207
1207
 
1208
1208
  export const constructActivityAnswerMap = (
1209
- activityTemplate: any,
1209
+ activityTemplateType: string,
1210
1210
  activityData: any
1211
1211
  ) => {
1212
- const type = activityTemplate.type;
1213
-
1214
- if (type === "ORDERING") {
1212
+ if (activityTemplateType === "ORDERING") {
1215
1213
  return retrieveDefaultOrderingDataMap(
1216
1214
  JSON.parse(activityData.orderingMaterialMap)
1217
1215
  );
1218
- } else if (type === "DROPDOWN") {
1216
+ } else if (activityTemplateType === "DROPDOWN") {
1219
1217
  return retrieveDefaultDropdownMap(
1220
1218
  JSON.parse(activityData.dropdownMaterialMap)
1221
1219
  );
1222
- } else if (type === "MCSA") {
1220
+ } else if (activityTemplateType === "MCSA") {
1223
1221
  return retrieveDefaultMCSAMap(JSON.parse(activityData.MCSAMaterialMap));
1224
- } else if (type === "MCMA") {
1222
+ } else if (activityTemplateType === "MCMA") {
1225
1223
  return retrieveDefaultMCMAMap(JSON.parse(activityData.MCMAMaterialMap));
1226
- } else if (type === "MATCHING") {
1224
+ } else if (activityTemplateType === "MATCHING") {
1227
1225
  return retrieveDefaultMatchingMap(
1228
1226
  JSON.parse(activityData.matchingMaterialMap)
1229
1227
  );
1230
- } else if (type === "GROUPING") {
1228
+ } else if (activityTemplateType === "GROUPING") {
1231
1229
  return retrieveDefaultGroupingMap(
1232
1230
  JSON.parse(activityData.groupingMaterialMap)
1233
1231
  );
1234
- } else if (type === "FILL_IN_THE_BLANKS") {
1232
+ } else if (activityTemplateType === "FILL_IN_THE_BLANKS") {
1235
1233
  return retrieveDefaultFillInTheBlanksMap(
1236
1234
  JSON.parse(activityData.fillInTheBlanksMaterialMap)
1237
1235
  );
1238
- } else if (type === "OPEN_ENDED") {
1236
+ } else if (activityTemplateType === "OPEN_ENDED") {
1239
1237
  return retrieveDefaultOpenEndedMap();
1240
- } else if (type === "TRUE_FALSE") {
1238
+ } else if (activityTemplateType === "TRUE_FALSE") {
1241
1239
  return retrieveDefaultTrueFalseMap();
1242
1240
  }
1243
1241
  return {};
@@ -1919,37 +1917,31 @@ export const constructActivityData = (
1919
1917
  export const constructAnswerBasedOnData = (data: any) => {
1920
1918
  if (Object.keys(data).find((dataKey) => dataKey === "orderingMaterialMap")) {
1921
1919
  return constructActivityAnswerMap(
1922
- { type: "ORDERING" },
1920
+ "ORDERING",
1923
1921
  JSON.parse(JSON.stringify(data))
1924
1922
  );
1925
1923
  }
1926
1924
  if (Object.keys(data).find((dataKey) => dataKey === "dropdownMaterialMap")) {
1927
1925
  return constructActivityAnswerMap(
1928
- { type: "DROPDOWN" },
1926
+ "DROPDOWN",
1929
1927
  JSON.parse(JSON.stringify(data))
1930
1928
  );
1931
1929
  }
1932
1930
  if (Object.keys(data).find((dataKey) => dataKey === "MCSAMaterialMap")) {
1933
- return constructActivityAnswerMap(
1934
- { type: "MCSA" },
1935
- JSON.parse(JSON.stringify(data))
1936
- );
1931
+ return constructActivityAnswerMap("MCSA", JSON.parse(JSON.stringify(data)));
1937
1932
  }
1938
1933
  if (Object.keys(data).find((dataKey) => dataKey === "MCMAMaterialMap")) {
1939
- return constructActivityAnswerMap(
1940
- { type: "MCMA" },
1941
- JSON.parse(JSON.stringify(data))
1942
- );
1934
+ return constructActivityAnswerMap("MCMA", JSON.parse(JSON.stringify(data)));
1943
1935
  }
1944
1936
  if (Object.keys(data).find((dataKey) => dataKey === "matchingMaterialMap")) {
1945
1937
  return constructActivityAnswerMap(
1946
- { type: "MATCHING" },
1938
+ "MATCHING",
1947
1939
  JSON.parse(JSON.stringify(data))
1948
1940
  );
1949
1941
  }
1950
1942
  if (Object.keys(data).find((dataKey) => dataKey === "groupingMaterialMap")) {
1951
1943
  return constructActivityAnswerMap(
1952
- { type: "GROUPING" },
1944
+ "GROUPING",
1953
1945
  JSON.parse(JSON.stringify(data))
1954
1946
  );
1955
1947
  }
@@ -1959,19 +1951,19 @@ export const constructAnswerBasedOnData = (data: any) => {
1959
1951
  )
1960
1952
  ) {
1961
1953
  return constructActivityAnswerMap(
1962
- { type: "FILL_IN_THE_BLANKS" },
1954
+ "FILL_IN_THE_BLANKS",
1963
1955
  JSON.parse(JSON.stringify(data))
1964
1956
  );
1965
1957
  }
1966
1958
  if (Object.keys(data).find((dataKey) => dataKey === "openEndedMaterialMap")) {
1967
1959
  return constructActivityAnswerMap(
1968
- { type: "OPEN_ENDED" },
1960
+ "OPEN_ENDED",
1969
1961
  JSON.parse(JSON.stringify(data))
1970
1962
  );
1971
1963
  }
1972
1964
  if (Object.keys(data).find((dataKey) => dataKey === "trueFalseMaterialMap")) {
1973
1965
  return constructActivityAnswerMap(
1974
- { type: "TRUE_FALSE" },
1966
+ "TRUE_FALSE",
1975
1967
  JSON.parse(JSON.stringify(data))
1976
1968
  );
1977
1969
  }