catchup-library-web 1.14.2 → 1.14.4
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 +12 -13
- package/dist/index.mjs +12 -13
- package/package.json +1 -1
- package/src/components/activities/material-content/MCMAActivityMaterialContent.tsx +1 -1
- package/src/components/activities/material-content/MCSAActivityMaterialContent.tsx +1 -1
- package/src/components/groups/InputGroup.tsx +1 -0
- package/src/utilization/CatchtivityUtilization.ts +9 -11
package/dist/index.js
CHANGED
|
@@ -2434,33 +2434,31 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2434
2434
|
} = parsedData;
|
|
2435
2435
|
const difficultyMap = {};
|
|
2436
2436
|
if (orderingDifficulty) {
|
|
2437
|
-
difficultyMap["orderingDifficulty"] =
|
|
2437
|
+
difficultyMap["orderingDifficulty"] = orderingDifficulty;
|
|
2438
2438
|
}
|
|
2439
2439
|
if (dropdownDifficulty) {
|
|
2440
|
-
difficultyMap["dropdownDifficulty"] =
|
|
2440
|
+
difficultyMap["dropdownDifficulty"] = dropdownDifficulty;
|
|
2441
2441
|
}
|
|
2442
2442
|
if (MCSADifficulty) {
|
|
2443
|
-
difficultyMap["MCSADifficulty"] =
|
|
2443
|
+
difficultyMap["MCSADifficulty"] = MCSADifficulty;
|
|
2444
2444
|
}
|
|
2445
2445
|
if (MCMADifficulty) {
|
|
2446
|
-
difficultyMap["MCMADifficulty"] =
|
|
2446
|
+
difficultyMap["MCMADifficulty"] = MCMADifficulty;
|
|
2447
2447
|
}
|
|
2448
2448
|
if (matchingDifficulty) {
|
|
2449
|
-
difficultyMap["matchingDifficulty"] =
|
|
2449
|
+
difficultyMap["matchingDifficulty"] = matchingDifficulty;
|
|
2450
2450
|
}
|
|
2451
2451
|
if (groupingDifficulty) {
|
|
2452
|
-
difficultyMap["groupingDifficulty"] =
|
|
2452
|
+
difficultyMap["groupingDifficulty"] = groupingDifficulty;
|
|
2453
2453
|
}
|
|
2454
2454
|
if (fillInTheBlanksDifficulty) {
|
|
2455
|
-
difficultyMap["fillInTheBlanksDifficulty"] =
|
|
2456
|
-
fillInTheBlanksDifficulty
|
|
2457
|
-
);
|
|
2455
|
+
difficultyMap["fillInTheBlanksDifficulty"] = fillInTheBlanksDifficulty;
|
|
2458
2456
|
}
|
|
2459
2457
|
if (trueFalseDifficulty) {
|
|
2460
|
-
difficultyMap["trueFalseDifficulty"] =
|
|
2458
|
+
difficultyMap["trueFalseDifficulty"] = trueFalseDifficulty;
|
|
2461
2459
|
}
|
|
2462
2460
|
if (openEndedDifficulty) {
|
|
2463
|
-
difficultyMap["openEndedDifficulty"] =
|
|
2461
|
+
difficultyMap["openEndedDifficulty"] = openEndedDifficulty;
|
|
2464
2462
|
}
|
|
2465
2463
|
let coterieField = "VERBAL";
|
|
2466
2464
|
if (coterieType === "MATHEMATICS" || coterieType === "BIOLOGY" || coterieType === "PHYSICS" || coterieType === "CHEMISTRY" || coterieType === "SCIENCE") {
|
|
@@ -3864,6 +3862,7 @@ var InputGroup = ({
|
|
|
3864
3862
|
BaseModal_default,
|
|
3865
3863
|
{
|
|
3866
3864
|
isOpen: showMathConstructor,
|
|
3865
|
+
customSize: "small",
|
|
3867
3866
|
onAfterOpen: () => {
|
|
3868
3867
|
},
|
|
3869
3868
|
onRequestClose: () => {
|
|
@@ -5803,7 +5802,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5803
5802
|
const answerMap = retrieveAnswerMap();
|
|
5804
5803
|
const correctAnswerList = retrieveCorrectAnswerList();
|
|
5805
5804
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5806
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
|
|
5805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
5807
5806
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
|
|
5808
5807
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DividerLine_default, {}) }),
|
|
5809
5808
|
checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
|
|
@@ -5955,7 +5954,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5955
5954
|
const answerMap = retrieveAnswerMap();
|
|
5956
5955
|
const correctAnswer = retrieveCorrectAnswer();
|
|
5957
5956
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5958
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
|
|
5957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
5959
5958
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
|
|
5960
5959
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DividerLine_default, {}) }),
|
|
5961
5960
|
checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -2225,33 +2225,31 @@ var findBestFitActivity = (activity, individualModelList, outcomeModelList) => {
|
|
|
2225
2225
|
} = parsedData;
|
|
2226
2226
|
const difficultyMap = {};
|
|
2227
2227
|
if (orderingDifficulty) {
|
|
2228
|
-
difficultyMap["orderingDifficulty"] =
|
|
2228
|
+
difficultyMap["orderingDifficulty"] = orderingDifficulty;
|
|
2229
2229
|
}
|
|
2230
2230
|
if (dropdownDifficulty) {
|
|
2231
|
-
difficultyMap["dropdownDifficulty"] =
|
|
2231
|
+
difficultyMap["dropdownDifficulty"] = dropdownDifficulty;
|
|
2232
2232
|
}
|
|
2233
2233
|
if (MCSADifficulty) {
|
|
2234
|
-
difficultyMap["MCSADifficulty"] =
|
|
2234
|
+
difficultyMap["MCSADifficulty"] = MCSADifficulty;
|
|
2235
2235
|
}
|
|
2236
2236
|
if (MCMADifficulty) {
|
|
2237
|
-
difficultyMap["MCMADifficulty"] =
|
|
2237
|
+
difficultyMap["MCMADifficulty"] = MCMADifficulty;
|
|
2238
2238
|
}
|
|
2239
2239
|
if (matchingDifficulty) {
|
|
2240
|
-
difficultyMap["matchingDifficulty"] =
|
|
2240
|
+
difficultyMap["matchingDifficulty"] = matchingDifficulty;
|
|
2241
2241
|
}
|
|
2242
2242
|
if (groupingDifficulty) {
|
|
2243
|
-
difficultyMap["groupingDifficulty"] =
|
|
2243
|
+
difficultyMap["groupingDifficulty"] = groupingDifficulty;
|
|
2244
2244
|
}
|
|
2245
2245
|
if (fillInTheBlanksDifficulty) {
|
|
2246
|
-
difficultyMap["fillInTheBlanksDifficulty"] =
|
|
2247
|
-
fillInTheBlanksDifficulty
|
|
2248
|
-
);
|
|
2246
|
+
difficultyMap["fillInTheBlanksDifficulty"] = fillInTheBlanksDifficulty;
|
|
2249
2247
|
}
|
|
2250
2248
|
if (trueFalseDifficulty) {
|
|
2251
|
-
difficultyMap["trueFalseDifficulty"] =
|
|
2249
|
+
difficultyMap["trueFalseDifficulty"] = trueFalseDifficulty;
|
|
2252
2250
|
}
|
|
2253
2251
|
if (openEndedDifficulty) {
|
|
2254
|
-
difficultyMap["openEndedDifficulty"] =
|
|
2252
|
+
difficultyMap["openEndedDifficulty"] = openEndedDifficulty;
|
|
2255
2253
|
}
|
|
2256
2254
|
let coterieField = "VERBAL";
|
|
2257
2255
|
if (coterieType === "MATHEMATICS" || coterieType === "BIOLOGY" || coterieType === "PHYSICS" || coterieType === "CHEMISTRY" || coterieType === "SCIENCE") {
|
|
@@ -3655,6 +3653,7 @@ var InputGroup = ({
|
|
|
3655
3653
|
BaseModal_default,
|
|
3656
3654
|
{
|
|
3657
3655
|
isOpen: showMathConstructor,
|
|
3656
|
+
customSize: "small",
|
|
3658
3657
|
onAfterOpen: () => {
|
|
3659
3658
|
},
|
|
3660
3659
|
onRequestClose: () => {
|
|
@@ -5594,7 +5593,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5594
5593
|
const answerMap = retrieveAnswerMap();
|
|
5595
5594
|
const correctAnswerList = retrieveCorrectAnswerList();
|
|
5596
5595
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5597
|
-
return /* @__PURE__ */ jsx33("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs22("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
|
|
5596
|
+
return /* @__PURE__ */ jsx33("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs22("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
5598
5597
|
/* @__PURE__ */ jsx33("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx33("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
|
|
5599
5598
|
/* @__PURE__ */ jsx33("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx33(DividerLine_default, {}) }),
|
|
5600
5599
|
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx33("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
|
|
@@ -5746,7 +5745,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5746
5745
|
const answerMap = retrieveAnswerMap();
|
|
5747
5746
|
const correctAnswer = retrieveCorrectAnswer();
|
|
5748
5747
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5749
|
-
return /* @__PURE__ */ jsx35("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs24("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
|
|
5748
|
+
return /* @__PURE__ */ jsx35("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs24("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
5750
5749
|
/* @__PURE__ */ jsx35("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx35("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
|
|
5751
5750
|
/* @__PURE__ */ jsx35("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx35(DividerLine_default, {}) }),
|
|
5752
5751
|
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx35(
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ const MCMAActivityMaterialContent = ({
|
|
|
48
48
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
49
49
|
return (
|
|
50
50
|
<div key={index} className="flex flex-row items-center my-1">
|
|
51
|
-
<div className="flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5">
|
|
51
|
+
<div className="flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0">
|
|
52
52
|
<div className="hidden md:block">
|
|
53
53
|
<span className="font-semibold text-xl opacity-60">
|
|
54
54
|
{i18n.t("please_select_mcma_text")}
|
|
@@ -45,7 +45,7 @@ const MCSAActivityMaterialContent = ({
|
|
|
45
45
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
46
46
|
return (
|
|
47
47
|
<div className="flex flex-row items-center my-1" key={index}>
|
|
48
|
-
<div className="flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5">
|
|
48
|
+
<div className="flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0">
|
|
49
49
|
<div className="hidden md:block">
|
|
50
50
|
<span className="font-semibold text-xl opacity-60">
|
|
51
51
|
{i18n.t("please_select_mcsa_text")}
|
|
@@ -1419,33 +1419,31 @@ export const findBestFitActivity = (
|
|
|
1419
1419
|
} = parsedData;
|
|
1420
1420
|
const difficultyMap: any = {};
|
|
1421
1421
|
if (orderingDifficulty) {
|
|
1422
|
-
difficultyMap["orderingDifficulty"] =
|
|
1422
|
+
difficultyMap["orderingDifficulty"] = orderingDifficulty;
|
|
1423
1423
|
}
|
|
1424
1424
|
if (dropdownDifficulty) {
|
|
1425
|
-
difficultyMap["dropdownDifficulty"] =
|
|
1425
|
+
difficultyMap["dropdownDifficulty"] = dropdownDifficulty;
|
|
1426
1426
|
}
|
|
1427
1427
|
if (MCSADifficulty) {
|
|
1428
|
-
difficultyMap["MCSADifficulty"] =
|
|
1428
|
+
difficultyMap["MCSADifficulty"] = MCSADifficulty;
|
|
1429
1429
|
}
|
|
1430
1430
|
if (MCMADifficulty) {
|
|
1431
|
-
difficultyMap["MCMADifficulty"] =
|
|
1431
|
+
difficultyMap["MCMADifficulty"] = MCMADifficulty;
|
|
1432
1432
|
}
|
|
1433
1433
|
if (matchingDifficulty) {
|
|
1434
|
-
difficultyMap["matchingDifficulty"] =
|
|
1434
|
+
difficultyMap["matchingDifficulty"] = matchingDifficulty;
|
|
1435
1435
|
}
|
|
1436
1436
|
if (groupingDifficulty) {
|
|
1437
|
-
difficultyMap["groupingDifficulty"] =
|
|
1437
|
+
difficultyMap["groupingDifficulty"] = groupingDifficulty;
|
|
1438
1438
|
}
|
|
1439
1439
|
if (fillInTheBlanksDifficulty) {
|
|
1440
|
-
difficultyMap["fillInTheBlanksDifficulty"] =
|
|
1441
|
-
fillInTheBlanksDifficulty
|
|
1442
|
-
);
|
|
1440
|
+
difficultyMap["fillInTheBlanksDifficulty"] = fillInTheBlanksDifficulty;
|
|
1443
1441
|
}
|
|
1444
1442
|
if (trueFalseDifficulty) {
|
|
1445
|
-
difficultyMap["trueFalseDifficulty"] =
|
|
1443
|
+
difficultyMap["trueFalseDifficulty"] = trueFalseDifficulty;
|
|
1446
1444
|
}
|
|
1447
1445
|
if (openEndedDifficulty) {
|
|
1448
|
-
difficultyMap["openEndedDifficulty"] =
|
|
1446
|
+
difficultyMap["openEndedDifficulty"] = openEndedDifficulty;
|
|
1449
1447
|
}
|
|
1450
1448
|
let coterieField = "VERBAL";
|
|
1451
1449
|
if (
|