catchup-library-web 2.2.16 → 2.2.18

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
@@ -216,6 +216,7 @@ interface IActivitySolutionProps {
216
216
  }
217
217
  interface IActivityPreviewByDataProps {
218
218
  data: any;
219
+ changeAnswer: (e: any) => void;
219
220
  answerType?: string | null;
220
221
  showType?: boolean;
221
222
  showDescription?: boolean;
@@ -252,7 +253,7 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
252
253
 
253
254
  declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
254
255
 
255
- declare const ActivityPreviewByData: ({ data, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
256
+ declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
256
257
 
257
258
  interface IStatusErrorProperties {
258
259
  statusCode?: string;
package/dist/index.d.ts CHANGED
@@ -216,6 +216,7 @@ interface IActivitySolutionProps {
216
216
  }
217
217
  interface IActivityPreviewByDataProps {
218
218
  data: any;
219
+ changeAnswer: (e: any) => void;
219
220
  answerType?: string | null;
220
221
  showType?: boolean;
221
222
  showDescription?: boolean;
@@ -252,7 +253,7 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
252
253
 
253
254
  declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
254
255
 
255
- declare const ActivityPreviewByData: ({ data, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
256
+ declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
256
257
 
257
258
  interface IStatusErrorProperties {
258
259
  statusCode?: string;
package/dist/index.js CHANGED
@@ -7285,6 +7285,8 @@ var ACTIVITY_TEMPLATE_LIST = [
7285
7285
  ];
7286
7286
  var ActivityPreviewByData = ({
7287
7287
  data,
7288
+ changeAnswer = () => {
7289
+ },
7288
7290
  answerType = null,
7289
7291
  showType = true,
7290
7292
  showDescription = true,
@@ -7363,8 +7365,7 @@ var ActivityPreviewByData = ({
7363
7365
  answerMap: answerMapMap[selectedType],
7364
7366
  data,
7365
7367
  canAnswerQuestion: () => true,
7366
- changeAnswer: () => {
7367
- },
7368
+ changeAnswer,
7368
7369
  isPreview: true,
7369
7370
  showCorrectAnswer,
7370
7371
  isFullScreen
package/dist/index.mjs CHANGED
@@ -7062,6 +7062,8 @@ var ACTIVITY_TEMPLATE_LIST = [
7062
7062
  ];
7063
7063
  var ActivityPreviewByData = ({
7064
7064
  data,
7065
+ changeAnswer = () => {
7066
+ },
7065
7067
  answerType = null,
7066
7068
  showType = true,
7067
7069
  showDescription = true,
@@ -7140,8 +7142,7 @@ var ActivityPreviewByData = ({
7140
7142
  answerMap: answerMapMap[selectedType],
7141
7143
  data,
7142
7144
  canAnswerQuestion: () => true,
7143
- changeAnswer: () => {
7144
- },
7145
+ changeAnswer,
7145
7146
  isPreview: true,
7146
7147
  showCorrectAnswer,
7147
7148
  isFullScreen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.2.16",
3
+ "version": "2.2.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -37,6 +37,7 @@ const ACTIVITY_TEMPLATE_LIST = [
37
37
 
38
38
  const ActivityPreviewByData = ({
39
39
  data,
40
+ changeAnswer = () => {},
40
41
  answerType = null,
41
42
  showType = true,
42
43
  showDescription = true,
@@ -124,7 +125,7 @@ const ActivityPreviewByData = ({
124
125
  answerMap: answerMapMap[selectedType],
125
126
  data,
126
127
  canAnswerQuestion: () => true,
127
- changeAnswer: () => {},
128
+ changeAnswer,
128
129
  isPreview: true,
129
130
  showCorrectAnswer,
130
131
  isFullScreen,
@@ -221,6 +221,7 @@ export interface IActivitySolutionProps {
221
221
 
222
222
  export interface IActivityPreviewByDataProps {
223
223
  data: any;
224
+ changeAnswer: (e: any) => void;
224
225
  answerType?: string | null;
225
226
  showType?: boolean;
226
227
  showDescription?: boolean;