catchup-library-web 2.2.18 → 2.2.20
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByData.tsx +2 -1
- package/src/components/activities/empty-contents/ActivityEmptyContent.tsx +2 -6
- package/src/properties/ActivityProperties.ts +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -216,7 +216,7 @@ interface IActivitySolutionProps {
|
|
|
216
216
|
}
|
|
217
217
|
interface IActivityPreviewByDataProps {
|
|
218
218
|
data: any;
|
|
219
|
-
changeAnswer
|
|
219
|
+
changeAnswer?: (e: any) => void;
|
|
220
220
|
answerType?: string | null;
|
|
221
221
|
showType?: boolean;
|
|
222
222
|
showDescription?: boolean;
|
|
@@ -227,6 +227,7 @@ interface IActivityPreviewByDataProps {
|
|
|
227
227
|
isFullScreen?: boolean;
|
|
228
228
|
showCorrectAnswer?: boolean;
|
|
229
229
|
showMaterialContent?: boolean;
|
|
230
|
+
isPreview: boolean;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element | null;
|
|
@@ -253,7 +254,7 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
|
|
|
253
254
|
|
|
254
255
|
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
255
256
|
|
|
256
|
-
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
|
+
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, isPreview, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
258
|
|
|
258
259
|
interface IStatusErrorProperties {
|
|
259
260
|
statusCode?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ interface IActivitySolutionProps {
|
|
|
216
216
|
}
|
|
217
217
|
interface IActivityPreviewByDataProps {
|
|
218
218
|
data: any;
|
|
219
|
-
changeAnswer
|
|
219
|
+
changeAnswer?: (e: any) => void;
|
|
220
220
|
answerType?: string | null;
|
|
221
221
|
showType?: boolean;
|
|
222
222
|
showDescription?: boolean;
|
|
@@ -227,6 +227,7 @@ interface IActivityPreviewByDataProps {
|
|
|
227
227
|
isFullScreen?: boolean;
|
|
228
228
|
showCorrectAnswer?: boolean;
|
|
229
229
|
showMaterialContent?: boolean;
|
|
230
|
+
isPreview: boolean;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element | null;
|
|
@@ -253,7 +254,7 @@ declare const ActivitySolutionContent: ({ activityTemplateType, data, }: IActivi
|
|
|
253
254
|
|
|
254
255
|
declare const ActivityEvaluationRubricContent: ({ activityTemplateType, data, }: IActivityEvaluationRubricProps) => react_jsx_runtime.JSX.Element | null | undefined;
|
|
255
256
|
|
|
256
|
-
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
|
+
declare const ActivityPreviewByData: ({ data, changeAnswer, answerType, showType, showDescription, typeList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, showMaterialContent, isPreview, }: IActivityPreviewByDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
257
258
|
|
|
258
259
|
interface IStatusErrorProperties {
|
|
259
260
|
statusCode?: string;
|
package/dist/index.js
CHANGED
|
@@ -1293,7 +1293,7 @@ var BasePDF_default = BasePDF;
|
|
|
1293
1293
|
// src/components/activities/empty-contents/ActivityEmptyContent.tsx
|
|
1294
1294
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1295
1295
|
var ActivityEmptyContent = () => {
|
|
1296
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2
|
|
1296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-lg", children: i18n_default.t("you_have_set_this_activity_as_empty") }) });
|
|
1297
1297
|
};
|
|
1298
1298
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1299
1299
|
|
|
@@ -7296,7 +7296,8 @@ var ActivityPreviewByData = ({
|
|
|
7296
7296
|
showDifficulty = true,
|
|
7297
7297
|
isFullScreen = false,
|
|
7298
7298
|
showCorrectAnswer = false,
|
|
7299
|
-
showMaterialContent = true
|
|
7299
|
+
showMaterialContent = true,
|
|
7300
|
+
isPreview = true
|
|
7300
7301
|
}) => {
|
|
7301
7302
|
const [selectedType, setSelectedType] = (0, import_react27.useState)(null);
|
|
7302
7303
|
const [optionList, setOptionList] = (0, import_react27.useState)([]);
|
|
@@ -7366,7 +7367,7 @@ var ActivityPreviewByData = ({
|
|
|
7366
7367
|
data,
|
|
7367
7368
|
canAnswerQuestion: () => true,
|
|
7368
7369
|
changeAnswer,
|
|
7369
|
-
isPreview
|
|
7370
|
+
isPreview,
|
|
7370
7371
|
showCorrectAnswer,
|
|
7371
7372
|
isFullScreen
|
|
7372
7373
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1070,7 +1070,7 @@ var BasePDF_default = BasePDF;
|
|
|
1070
1070
|
// src/components/activities/empty-contents/ActivityEmptyContent.tsx
|
|
1071
1071
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1072
1072
|
var ActivityEmptyContent = () => {
|
|
1073
|
-
return /* @__PURE__ */ jsx17("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2
|
|
1073
|
+
return /* @__PURE__ */ jsx17("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white", children: /* @__PURE__ */ jsx17("p", { className: "text-lg", children: i18n_default.t("you_have_set_this_activity_as_empty") }) });
|
|
1074
1074
|
};
|
|
1075
1075
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1076
1076
|
|
|
@@ -7073,7 +7073,8 @@ var ActivityPreviewByData = ({
|
|
|
7073
7073
|
showDifficulty = true,
|
|
7074
7074
|
isFullScreen = false,
|
|
7075
7075
|
showCorrectAnswer = false,
|
|
7076
|
-
showMaterialContent = true
|
|
7076
|
+
showMaterialContent = true,
|
|
7077
|
+
isPreview = true
|
|
7077
7078
|
}) => {
|
|
7078
7079
|
const [selectedType, setSelectedType] = useState26(null);
|
|
7079
7080
|
const [optionList, setOptionList] = useState26([]);
|
|
@@ -7143,7 +7144,7 @@ var ActivityPreviewByData = ({
|
|
|
7143
7144
|
data,
|
|
7144
7145
|
canAnswerQuestion: () => true,
|
|
7145
7146
|
changeAnswer,
|
|
7146
|
-
isPreview
|
|
7147
|
+
isPreview,
|
|
7147
7148
|
showCorrectAnswer,
|
|
7148
7149
|
isFullScreen
|
|
7149
7150
|
};
|
package/package.json
CHANGED
|
@@ -48,6 +48,7 @@ const ActivityPreviewByData = ({
|
|
|
48
48
|
isFullScreen = false,
|
|
49
49
|
showCorrectAnswer = false,
|
|
50
50
|
showMaterialContent = true,
|
|
51
|
+
isPreview = true,
|
|
51
52
|
}: IActivityPreviewByDataProps) => {
|
|
52
53
|
const [selectedType, setSelectedType] = useState<string | null>(null);
|
|
53
54
|
const [optionList, setOptionList] = useState<any[]>([]);
|
|
@@ -126,7 +127,7 @@ const ActivityPreviewByData = ({
|
|
|
126
127
|
data,
|
|
127
128
|
canAnswerQuestion: () => true,
|
|
128
129
|
changeAnswer,
|
|
129
|
-
isPreview
|
|
130
|
+
isPreview,
|
|
130
131
|
showCorrectAnswer,
|
|
131
132
|
isFullScreen,
|
|
132
133
|
};
|
|
@@ -2,12 +2,8 @@ import i18n from "../../../language/i18n";
|
|
|
2
2
|
|
|
3
3
|
const ActivityEmptyContent = () => {
|
|
4
4
|
return (
|
|
5
|
-
<div className="flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2
|
|
6
|
-
<
|
|
7
|
-
<p className="text-catchup-white text-xl">
|
|
8
|
-
{i18n.t("you_have_set_this_activity_as_empty")}
|
|
9
|
-
</p>
|
|
10
|
-
</div>
|
|
5
|
+
<div className="flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white">
|
|
6
|
+
<p className="text-lg">{i18n.t("you_have_set_this_activity_as_empty")}</p>
|
|
11
7
|
</div>
|
|
12
8
|
);
|
|
13
9
|
};
|
|
@@ -221,7 +221,7 @@ export interface IActivitySolutionProps {
|
|
|
221
221
|
|
|
222
222
|
export interface IActivityPreviewByDataProps {
|
|
223
223
|
data: any;
|
|
224
|
-
changeAnswer
|
|
224
|
+
changeAnswer?: (e: any) => void;
|
|
225
225
|
answerType?: string | null;
|
|
226
226
|
showType?: boolean;
|
|
227
227
|
showDescription?: boolean;
|
|
@@ -232,4 +232,5 @@ export interface IActivityPreviewByDataProps {
|
|
|
232
232
|
isFullScreen?: boolean;
|
|
233
233
|
showCorrectAnswer?: boolean;
|
|
234
234
|
showMaterialContent?: boolean;
|
|
235
|
+
isPreview: boolean;
|
|
235
236
|
}
|