catchup-library-web 2.0.7 → 2.0.8

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.
Files changed (27) hide show
  1. package/dist/index.d.mts +22 -22
  2. package/dist/index.d.ts +22 -22
  3. package/dist/index.js +285 -471
  4. package/dist/index.mjs +285 -471
  5. package/package.json +1 -1
  6. package/src/components/activities/ActivityPreviewByAnswerData.tsx +118 -121
  7. package/src/components/activities/ActivityPreviewByData.tsx +10 -10
  8. package/src/components/activities/DropdownActivityContent.tsx +9 -35
  9. package/src/components/activities/FillInTheBlanksActivityContent.tsx +9 -34
  10. package/src/components/activities/GroupingActivityContent.tsx +4 -8
  11. package/src/components/activities/MCMAActivityContent.tsx +8 -8
  12. package/src/components/activities/MCSAActivityContent.tsx +8 -8
  13. package/src/components/activities/MatchingActivityContent.tsx +4 -8
  14. package/src/components/activities/OpenEndedActivityContent.tsx +4 -8
  15. package/src/components/activities/OrderingActivityContent.tsx +4 -8
  16. package/src/components/activities/TrueFalseActivityContent.tsx +4 -12
  17. package/src/components/activities/material-contents/DropdownActivityMaterialContent.tsx +9 -19
  18. package/src/components/activities/material-contents/FillInTheBlanksActivityMaterialContent.tsx +9 -24
  19. package/src/components/activities/material-contents/GroupingActivityMaterialContent.tsx +7 -18
  20. package/src/components/activities/material-contents/MCMAActivityMaterialContent.tsx +2 -10
  21. package/src/components/activities/material-contents/MCSAActivityMaterialContent.tsx +2 -10
  22. package/src/components/activities/material-contents/MatchingActivityMaterialContent.tsx +7 -17
  23. package/src/components/activities/material-contents/OpenEndedActivityMaterialContent.tsx +2 -21
  24. package/src/components/activities/material-contents/OrderingActivityMaterialContent.tsx +4 -16
  25. package/src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx +4 -27
  26. package/src/properties/ActivityProperties.ts +21 -20
  27. package/src/utilization/CatchtivityUtilization.ts +49 -84
package/dist/index.d.mts CHANGED
@@ -129,7 +129,7 @@ interface IActivityBodyContentProps {
129
129
  answerMap?: any;
130
130
  }
131
131
  interface IOrderingActivityProps {
132
- answer: any;
132
+ answerMap: any;
133
133
  data: any;
134
134
  canAnswerQuestion: () => boolean;
135
135
  changeAnswer: (e: any) => void;
@@ -138,7 +138,7 @@ interface IOrderingActivityProps {
138
138
  isFullScreen: boolean;
139
139
  }
140
140
  interface IDropdownActivityProps {
141
- answer: any;
141
+ answerMap: any;
142
142
  data: any;
143
143
  canAnswerQuestion: () => boolean;
144
144
  changeAnswer: (e: any) => void;
@@ -147,7 +147,7 @@ interface IDropdownActivityProps {
147
147
  isFullScreen: boolean;
148
148
  }
149
149
  interface IMCSAActivityProps {
150
- answer: any;
150
+ answerMap: any;
151
151
  data: any;
152
152
  canAnswerQuestion: () => boolean;
153
153
  changeAnswer: (e: any) => void;
@@ -156,7 +156,7 @@ interface IMCSAActivityProps {
156
156
  isFullScreen: boolean;
157
157
  }
158
158
  interface IMCMAActivityProps {
159
- answer: any;
159
+ answerMap: any;
160
160
  data: any;
161
161
  canAnswerQuestion: () => boolean;
162
162
  changeAnswer: (e: any) => void;
@@ -165,7 +165,7 @@ interface IMCMAActivityProps {
165
165
  isFullScreen: boolean;
166
166
  }
167
167
  interface IGroupingActivityProps {
168
- answer: any;
168
+ answerMap: any;
169
169
  data: any;
170
170
  canAnswerQuestion: () => boolean;
171
171
  changeAnswer: (e: any) => void;
@@ -173,7 +173,7 @@ interface IGroupingActivityProps {
173
173
  showCorrectAnswer: boolean;
174
174
  }
175
175
  interface IMatchingActivityProps {
176
- answer: any;
176
+ answerMap: any;
177
177
  data: any;
178
178
  canAnswerQuestion: () => boolean;
179
179
  changeAnswer: (e: any) => void;
@@ -181,7 +181,7 @@ interface IMatchingActivityProps {
181
181
  showCorrectAnswer: boolean;
182
182
  }
183
183
  interface IFillInTheBlanksActivityProps {
184
- answer: any;
184
+ answerMap: any;
185
185
  data: any;
186
186
  canAnswerQuestion: () => boolean;
187
187
  changeAnswer: (e: any) => void;
@@ -190,7 +190,7 @@ interface IFillInTheBlanksActivityProps {
190
190
  isFullScreen: boolean;
191
191
  }
192
192
  interface IOpenEndedActivityProps {
193
- answer: any;
193
+ answerMap: any;
194
194
  data: any;
195
195
  changeAnswer: (e: any) => void;
196
196
  canAnswerQuestion: () => boolean;
@@ -199,7 +199,7 @@ interface IOpenEndedActivityProps {
199
199
  isFullScreen: boolean;
200
200
  }
201
201
  interface ITrueFalseActivityProps {
202
- answer: any;
202
+ answerMap: any;
203
203
  data: any;
204
204
  canAnswerQuestion: () => boolean;
205
205
  changeAnswer: (e: any) => void;
@@ -228,10 +228,10 @@ interface IActivityPreviewByDataProps {
228
228
  }
229
229
  interface IActivityPreviewByAnswerDataProps {
230
230
  data: any;
231
+ answerType?: string | null;
231
232
  showType?: boolean;
232
233
  showDescription?: boolean;
233
- lockedType?: string | null;
234
- typeOptionList?: any[];
234
+ lockedTypeList?: any[];
235
235
  showSolution?: boolean;
236
236
  showEvaluationRubric?: boolean;
237
237
  showDifficulty?: boolean;
@@ -241,23 +241,23 @@ interface IActivityPreviewByAnswerDataProps {
241
241
 
242
242
  declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element | null;
243
243
 
244
- declare const DropdownActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
244
+ declare const DropdownActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
245
245
 
246
- declare const FillInTheBlanksActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
246
+ declare const FillInTheBlanksActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
247
247
 
248
- declare const GroupingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IGroupingActivityProps) => react_jsx_runtime.JSX.Element;
248
+ declare const GroupingActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IGroupingActivityProps) => react_jsx_runtime.JSX.Element;
249
249
 
250
- declare const MatchingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IMatchingActivityProps) => react_jsx_runtime.JSX.Element;
250
+ declare const MatchingActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IMatchingActivityProps) => react_jsx_runtime.JSX.Element;
251
251
 
252
- declare const MCMAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCMAActivityProps) => react_jsx_runtime.JSX.Element;
252
+ declare const MCMAActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCMAActivityProps) => react_jsx_runtime.JSX.Element;
253
253
 
254
- declare const MCSAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCSAActivityProps) => react_jsx_runtime.JSX.Element;
254
+ declare const MCSAActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCSAActivityProps) => react_jsx_runtime.JSX.Element;
255
255
 
256
- declare const OpenEndedActivityContent: ({ answer, data, changeAnswer, canAnswerQuestion, showMaterialContent, isPreview, isFullScreen, }: IOpenEndedActivityProps) => react_jsx_runtime.JSX.Element;
256
+ declare const OpenEndedActivityContent: ({ answerMap, data, changeAnswer, canAnswerQuestion, showMaterialContent, isPreview, isFullScreen, }: IOpenEndedActivityProps) => react_jsx_runtime.JSX.Element;
257
257
 
258
- declare const OrderingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IOrderingActivityProps) => react_jsx_runtime.JSX.Element;
258
+ declare const OrderingActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IOrderingActivityProps) => react_jsx_runtime.JSX.Element;
259
259
 
260
- declare const TrueFalseActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
260
+ declare const TrueFalseActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
261
261
 
262
262
  declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivitySolutionProps) => react_jsx_runtime.JSX.Element | null;
263
263
 
@@ -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, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
268
+ declare const ActivityPreviewByAnswerData: ({ data, answerType, showType, showDescription, lockedTypeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
269
269
 
270
270
  interface IStatusErrorProperties {
271
271
  statusCode?: string;
@@ -563,7 +563,7 @@ declare const constructActivityItemListForSolution: (bodyMap: any, materialMap:
563
563
  text: string;
564
564
  }[];
565
565
  declare const retrieveActivityTemplateDTOOptionList: (activityTemplateSet: any) => any;
566
- declare const retrieveCurrentDefaultDataMap: (activityTemplate: any, activityData: any) => any;
566
+ declare const retrieveCurrentDefaultDataMap: (activityTemplateType: any, activityData: any) => any;
567
567
  declare const constructActivityAnswerMap: (activityTemplate: any, activityData: any) => any;
568
568
  declare const ignoreMathematicalExpression: (inputText: string) => string;
569
569
  declare const checkIfAnswerIsEmpty: (answer: any) => boolean;
package/dist/index.d.ts CHANGED
@@ -129,7 +129,7 @@ interface IActivityBodyContentProps {
129
129
  answerMap?: any;
130
130
  }
131
131
  interface IOrderingActivityProps {
132
- answer: any;
132
+ answerMap: any;
133
133
  data: any;
134
134
  canAnswerQuestion: () => boolean;
135
135
  changeAnswer: (e: any) => void;
@@ -138,7 +138,7 @@ interface IOrderingActivityProps {
138
138
  isFullScreen: boolean;
139
139
  }
140
140
  interface IDropdownActivityProps {
141
- answer: any;
141
+ answerMap: any;
142
142
  data: any;
143
143
  canAnswerQuestion: () => boolean;
144
144
  changeAnswer: (e: any) => void;
@@ -147,7 +147,7 @@ interface IDropdownActivityProps {
147
147
  isFullScreen: boolean;
148
148
  }
149
149
  interface IMCSAActivityProps {
150
- answer: any;
150
+ answerMap: any;
151
151
  data: any;
152
152
  canAnswerQuestion: () => boolean;
153
153
  changeAnswer: (e: any) => void;
@@ -156,7 +156,7 @@ interface IMCSAActivityProps {
156
156
  isFullScreen: boolean;
157
157
  }
158
158
  interface IMCMAActivityProps {
159
- answer: any;
159
+ answerMap: any;
160
160
  data: any;
161
161
  canAnswerQuestion: () => boolean;
162
162
  changeAnswer: (e: any) => void;
@@ -165,7 +165,7 @@ interface IMCMAActivityProps {
165
165
  isFullScreen: boolean;
166
166
  }
167
167
  interface IGroupingActivityProps {
168
- answer: any;
168
+ answerMap: any;
169
169
  data: any;
170
170
  canAnswerQuestion: () => boolean;
171
171
  changeAnswer: (e: any) => void;
@@ -173,7 +173,7 @@ interface IGroupingActivityProps {
173
173
  showCorrectAnswer: boolean;
174
174
  }
175
175
  interface IMatchingActivityProps {
176
- answer: any;
176
+ answerMap: any;
177
177
  data: any;
178
178
  canAnswerQuestion: () => boolean;
179
179
  changeAnswer: (e: any) => void;
@@ -181,7 +181,7 @@ interface IMatchingActivityProps {
181
181
  showCorrectAnswer: boolean;
182
182
  }
183
183
  interface IFillInTheBlanksActivityProps {
184
- answer: any;
184
+ answerMap: any;
185
185
  data: any;
186
186
  canAnswerQuestion: () => boolean;
187
187
  changeAnswer: (e: any) => void;
@@ -190,7 +190,7 @@ interface IFillInTheBlanksActivityProps {
190
190
  isFullScreen: boolean;
191
191
  }
192
192
  interface IOpenEndedActivityProps {
193
- answer: any;
193
+ answerMap: any;
194
194
  data: any;
195
195
  changeAnswer: (e: any) => void;
196
196
  canAnswerQuestion: () => boolean;
@@ -199,7 +199,7 @@ interface IOpenEndedActivityProps {
199
199
  isFullScreen: boolean;
200
200
  }
201
201
  interface ITrueFalseActivityProps {
202
- answer: any;
202
+ answerMap: any;
203
203
  data: any;
204
204
  canAnswerQuestion: () => boolean;
205
205
  changeAnswer: (e: any) => void;
@@ -228,10 +228,10 @@ interface IActivityPreviewByDataProps {
228
228
  }
229
229
  interface IActivityPreviewByAnswerDataProps {
230
230
  data: any;
231
+ answerType?: string | null;
231
232
  showType?: boolean;
232
233
  showDescription?: boolean;
233
- lockedType?: string | null;
234
- typeOptionList?: any[];
234
+ lockedTypeList?: any[];
235
235
  showSolution?: boolean;
236
236
  showEvaluationRubric?: boolean;
237
237
  showDifficulty?: boolean;
@@ -241,23 +241,23 @@ interface IActivityPreviewByAnswerDataProps {
241
241
 
242
242
  declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element | null;
243
243
 
244
- declare const DropdownActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
244
+ declare const DropdownActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
245
245
 
246
- declare const FillInTheBlanksActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
246
+ declare const FillInTheBlanksActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
247
247
 
248
- declare const GroupingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IGroupingActivityProps) => react_jsx_runtime.JSX.Element;
248
+ declare const GroupingActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IGroupingActivityProps) => react_jsx_runtime.JSX.Element;
249
249
 
250
- declare const MatchingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IMatchingActivityProps) => react_jsx_runtime.JSX.Element;
250
+ declare const MatchingActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, }: IMatchingActivityProps) => react_jsx_runtime.JSX.Element;
251
251
 
252
- declare const MCMAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCMAActivityProps) => react_jsx_runtime.JSX.Element;
252
+ declare const MCMAActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCMAActivityProps) => react_jsx_runtime.JSX.Element;
253
253
 
254
- declare const MCSAActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCSAActivityProps) => react_jsx_runtime.JSX.Element;
254
+ declare const MCSAActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, isFullScreen, }: IMCSAActivityProps) => react_jsx_runtime.JSX.Element;
255
255
 
256
- declare const OpenEndedActivityContent: ({ answer, data, changeAnswer, canAnswerQuestion, showMaterialContent, isPreview, isFullScreen, }: IOpenEndedActivityProps) => react_jsx_runtime.JSX.Element;
256
+ declare const OpenEndedActivityContent: ({ answerMap, data, changeAnswer, canAnswerQuestion, showMaterialContent, isPreview, isFullScreen, }: IOpenEndedActivityProps) => react_jsx_runtime.JSX.Element;
257
257
 
258
- declare const OrderingActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IOrderingActivityProps) => react_jsx_runtime.JSX.Element;
258
+ declare const OrderingActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IOrderingActivityProps) => react_jsx_runtime.JSX.Element;
259
259
 
260
- declare const TrueFalseActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
260
+ declare const TrueFalseActivityContent: ({ answerMap, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: ITrueFalseActivityProps) => react_jsx_runtime.JSX.Element;
261
261
 
262
262
  declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivitySolutionProps) => react_jsx_runtime.JSX.Element | null;
263
263
 
@@ -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, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
268
+ declare const ActivityPreviewByAnswerData: ({ data, answerType, showType, showDescription, lockedTypeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
269
269
 
270
270
  interface IStatusErrorProperties {
271
271
  statusCode?: string;
@@ -563,7 +563,7 @@ declare const constructActivityItemListForSolution: (bodyMap: any, materialMap:
563
563
  text: string;
564
564
  }[];
565
565
  declare const retrieveActivityTemplateDTOOptionList: (activityTemplateSet: any) => any;
566
- declare const retrieveCurrentDefaultDataMap: (activityTemplate: any, activityData: any) => any;
566
+ declare const retrieveCurrentDefaultDataMap: (activityTemplateType: any, activityData: any) => any;
567
567
  declare const constructActivityAnswerMap: (activityTemplate: any, activityData: any) => any;
568
568
  declare const ignoreMathematicalExpression: (inputText: string) => string;
569
569
  declare const checkIfAnswerIsEmpty: (answer: any) => boolean;