catchup-library-web 2.2.16 → 2.2.17

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,
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,
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.17",
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,
@@ -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;