catchup-library-web 2.2.10 → 2.2.12
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.js
CHANGED
|
@@ -6236,11 +6236,8 @@ var MCSAActivityMaterialContent = ({
|
|
|
6236
6236
|
const [displayAnswerMap, setDisplayAnswerMap] = (0, import_react23.useState)(answerMap);
|
|
6237
6237
|
(0, import_react23.useEffect)(() => {
|
|
6238
6238
|
if (showCorrectAnswer) {
|
|
6239
|
-
const
|
|
6240
|
-
|
|
6241
|
-
correctAnswerMap[materialKey] = materialMap[materialKey][0];
|
|
6242
|
-
});
|
|
6243
|
-
setDisplayAnswerMap(correctAnswerMap);
|
|
6239
|
+
const correctAnswer2 = retrieveCorrectAnswer();
|
|
6240
|
+
setDisplayAnswerMap({ correctAnswer: correctAnswer2 });
|
|
6244
6241
|
} else {
|
|
6245
6242
|
setDisplayAnswerMap(answerMap);
|
|
6246
6243
|
}
|
|
@@ -7430,7 +7427,7 @@ var ActivityPreviewByData = ({
|
|
|
7430
7427
|
if (!data) return null;
|
|
7431
7428
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
|
|
7432
7429
|
showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7433
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mb-
|
|
7430
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mb-2", children: [
|
|
7434
7431
|
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7435
7432
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7436
7433
|
SelectionBox_default,
|
|
@@ -7445,15 +7442,15 @@ var ActivityPreviewByData = ({
|
|
|
7445
7442
|
] }),
|
|
7446
7443
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DividerLine_default, {})
|
|
7447
7444
|
] }) : null,
|
|
7448
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col
|
|
7449
|
-
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "
|
|
7445
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col mb-2 w-full", children: RenderSelectedActivityContent() }),
|
|
7446
|
+
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7450
7447
|
ActivitySolutionContent_default,
|
|
7451
7448
|
{
|
|
7452
7449
|
activityTemplateType: selectedType,
|
|
7453
7450
|
data
|
|
7454
7451
|
}
|
|
7455
7452
|
) }) : null,
|
|
7456
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "
|
|
7453
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7457
7454
|
ActivityEvaluationRubricContent_default,
|
|
7458
7455
|
{
|
|
7459
7456
|
activityTemplateType: selectedType,
|
package/dist/index.mjs
CHANGED
|
@@ -6013,11 +6013,8 @@ var MCSAActivityMaterialContent = ({
|
|
|
6013
6013
|
const [displayAnswerMap, setDisplayAnswerMap] = useState22(answerMap);
|
|
6014
6014
|
useEffect13(() => {
|
|
6015
6015
|
if (showCorrectAnswer) {
|
|
6016
|
-
const
|
|
6017
|
-
|
|
6018
|
-
correctAnswerMap[materialKey] = materialMap[materialKey][0];
|
|
6019
|
-
});
|
|
6020
|
-
setDisplayAnswerMap(correctAnswerMap);
|
|
6016
|
+
const correctAnswer2 = retrieveCorrectAnswer();
|
|
6017
|
+
setDisplayAnswerMap({ correctAnswer: correctAnswer2 });
|
|
6021
6018
|
} else {
|
|
6022
6019
|
setDisplayAnswerMap(answerMap);
|
|
6023
6020
|
}
|
|
@@ -7207,7 +7204,7 @@ var ActivityPreviewByData = ({
|
|
|
7207
7204
|
if (!data) return null;
|
|
7208
7205
|
return /* @__PURE__ */ jsxs36("div", { children: [
|
|
7209
7206
|
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
7210
|
-
/* @__PURE__ */ jsxs36("div", { className: "mb-
|
|
7207
|
+
/* @__PURE__ */ jsxs36("div", { className: "mb-2", children: [
|
|
7211
7208
|
showDescription ? /* @__PURE__ */ jsx47("div", { className: "my-2", children: /* @__PURE__ */ jsx47("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7212
7209
|
/* @__PURE__ */ jsx47(
|
|
7213
7210
|
SelectionBox_default,
|
|
@@ -7222,15 +7219,15 @@ var ActivityPreviewByData = ({
|
|
|
7222
7219
|
] }),
|
|
7223
7220
|
/* @__PURE__ */ jsx47(DividerLine_default, {})
|
|
7224
7221
|
] }) : null,
|
|
7225
|
-
/* @__PURE__ */ jsx47("div", { className: "flex flex-col
|
|
7226
|
-
selectedType && showSolution ? /* @__PURE__ */ jsx47("div", { className: "
|
|
7222
|
+
/* @__PURE__ */ jsx47("div", { className: "flex flex-col mb-2 w-full", children: RenderSelectedActivityContent() }),
|
|
7223
|
+
selectedType && showSolution ? /* @__PURE__ */ jsx47("div", { className: "mb-2", children: /* @__PURE__ */ jsx47(
|
|
7227
7224
|
ActivitySolutionContent_default,
|
|
7228
7225
|
{
|
|
7229
7226
|
activityTemplateType: selectedType,
|
|
7230
7227
|
data
|
|
7231
7228
|
}
|
|
7232
7229
|
) }) : null,
|
|
7233
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx47("div", { className: "
|
|
7230
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx47("div", { className: "mb-2", children: /* @__PURE__ */ jsx47(
|
|
7234
7231
|
ActivityEvaluationRubricContent_default,
|
|
7235
7232
|
{
|
|
7236
7233
|
activityTemplateType: selectedType,
|
package/package.json
CHANGED
|
@@ -219,7 +219,7 @@ const ActivityPreviewByData = ({
|
|
|
219
219
|
<div>
|
|
220
220
|
{showType && optionList.length > 0 ? (
|
|
221
221
|
<>
|
|
222
|
-
<div className="mb-
|
|
222
|
+
<div className="mb-2">
|
|
223
223
|
{showDescription ? (
|
|
224
224
|
<div className="my-2">
|
|
225
225
|
<p className="font-semibold text-lg">
|
|
@@ -240,12 +240,12 @@ const ActivityPreviewByData = ({
|
|
|
240
240
|
</>
|
|
241
241
|
) : null}
|
|
242
242
|
|
|
243
|
-
<div className="flex flex-col
|
|
243
|
+
<div className="flex flex-col mb-2 w-full">
|
|
244
244
|
{RenderSelectedActivityContent()}
|
|
245
245
|
</div>
|
|
246
246
|
|
|
247
247
|
{selectedType && showSolution ? (
|
|
248
|
-
<div className="
|
|
248
|
+
<div className="mb-2">
|
|
249
249
|
<ActivitySolutionContent
|
|
250
250
|
activityTemplateType={selectedType}
|
|
251
251
|
data={data}
|
|
@@ -254,7 +254,7 @@ const ActivityPreviewByData = ({
|
|
|
254
254
|
) : null}
|
|
255
255
|
|
|
256
256
|
{selectedType && showEvaluationRubric ? (
|
|
257
|
-
<div className="
|
|
257
|
+
<div className="mb-2">
|
|
258
258
|
<ActivityEvaluationRubricContent
|
|
259
259
|
activityTemplateType={selectedType}
|
|
260
260
|
data={data}
|
|
@@ -21,12 +21,8 @@ const MCSAActivityMaterialContent = ({
|
|
|
21
21
|
|
|
22
22
|
useEffect(() => {
|
|
23
23
|
if (showCorrectAnswer) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Object.keys(materialMap).forEach((materialKey) => {
|
|
27
|
-
correctAnswerMap[materialKey] = materialMap[materialKey][0];
|
|
28
|
-
});
|
|
29
|
-
setDisplayAnswerMap(correctAnswerMap);
|
|
24
|
+
const correctAnswer = retrieveCorrectAnswer();
|
|
25
|
+
setDisplayAnswerMap({ correctAnswer });
|
|
30
26
|
} else {
|
|
31
27
|
setDisplayAnswerMap(answerMap);
|
|
32
28
|
}
|