catchup-library-web 1.0.13 → 1.0.14
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -7
- package/dist/index.mjs +5 -7
- package/package.json +1 -1
- package/src/components/activities/material-content/DropdownActivityMaterialContent.tsx +2 -2
- package/src/components/tabs/SelectionTab.tsx +1 -1
- package/src/utilization/CatchtivityUtilization.ts +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -382,7 +382,7 @@ declare const parseMaterialMapFromData: (data: any, type: string) => any;
|
|
|
382
382
|
declare const convertToBodyMapString: (type: string, bodyMap: any) => any;
|
|
383
383
|
declare const convertToSolutionMapString: (type: string, solutionMap: any) => any;
|
|
384
384
|
declare const convertToEvaluationRubricMapString: (type: string, evaluationRubricMap: any) => any;
|
|
385
|
-
declare const constructActivityData: (activityTemplateType: string, bodyMap: any, materialMap: any, solutionMap: any, taxonomyMap: any, evaluationRubricMap: any) => any;
|
|
385
|
+
declare const constructActivityData: (activityTemplateType: string, contentMap: any, bodyMap: any, materialMap: any, solutionMap: any, taxonomyMap: any, evaluationRubricMap: any) => any;
|
|
386
386
|
declare const constructAnswerBasedOnData: (data: any) => any;
|
|
387
387
|
|
|
388
388
|
declare const retrieveCategoryVersionCodeOptionList: () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -382,7 +382,7 @@ declare const parseMaterialMapFromData: (data: any, type: string) => any;
|
|
|
382
382
|
declare const convertToBodyMapString: (type: string, bodyMap: any) => any;
|
|
383
383
|
declare const convertToSolutionMapString: (type: string, solutionMap: any) => any;
|
|
384
384
|
declare const convertToEvaluationRubricMapString: (type: string, evaluationRubricMap: any) => any;
|
|
385
|
-
declare const constructActivityData: (activityTemplateType: string, bodyMap: any, materialMap: any, solutionMap: any, taxonomyMap: any, evaluationRubricMap: any) => any;
|
|
385
|
+
declare const constructActivityData: (activityTemplateType: string, contentMap: any, bodyMap: any, materialMap: any, solutionMap: any, taxonomyMap: any, evaluationRubricMap: any) => any;
|
|
386
386
|
declare const constructAnswerBasedOnData: (data: any) => any;
|
|
387
387
|
|
|
388
388
|
declare const retrieveCategoryVersionCodeOptionList: () => {
|
package/dist/index.js
CHANGED
|
@@ -2427,11 +2427,9 @@ var convertToEvaluationRubricMapString = (type, evaluationRubricMap) => {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
return convertedEvaluationRubricMap;
|
|
2429
2429
|
};
|
|
2430
|
-
var constructActivityData = (activityTemplateType, bodyMap, materialMap, solutionMap, taxonomyMap, evaluationRubricMap) => {
|
|
2430
|
+
var constructActivityData = (activityTemplateType, contentMap, bodyMap, materialMap, solutionMap, taxonomyMap, evaluationRubricMap) => {
|
|
2431
2431
|
const constructedData = {};
|
|
2432
|
-
constructedData["contentMap"] = JSON.stringify(
|
|
2433
|
-
type: "TEXT"
|
|
2434
|
-
});
|
|
2432
|
+
constructedData["contentMap"] = JSON.stringify(contentMap);
|
|
2435
2433
|
if (activityTemplateType === "ORDERING") {
|
|
2436
2434
|
constructedData["orderingBodyMap"] = JSON.stringify(
|
|
2437
2435
|
convertToBodyMapString("ORDERING", bodyMap)
|
|
@@ -3827,14 +3825,14 @@ var DropdownActivityMaterialContent = ({
|
|
|
3827
3825
|
},
|
|
3828
3826
|
index2
|
|
3829
3827
|
)) }) }),
|
|
3830
|
-
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "absolute top-
|
|
3828
|
+
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3831
3829
|
BaseImage_default,
|
|
3832
3830
|
{
|
|
3833
3831
|
src: "/icons/checkbox.png",
|
|
3834
3832
|
alt: "chekbbox",
|
|
3835
3833
|
size: "small"
|
|
3836
3834
|
}
|
|
3837
|
-
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "absolute top-
|
|
3835
|
+
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3838
3836
|
BaseImage_default,
|
|
3839
3837
|
{
|
|
3840
3838
|
src: "/icons/cross-red.png",
|
|
@@ -5989,7 +5987,7 @@ var SelectionTab = ({
|
|
|
5989
5987
|
textColor,
|
|
5990
5988
|
borderColor
|
|
5991
5989
|
}) => {
|
|
5992
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-
|
|
5990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-lg text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5993
5991
|
"div",
|
|
5994
5992
|
{
|
|
5995
5993
|
className: `${selectedId === option.id ? selectedTextColor ? selectedTextColor : "text-catchup-blue-500" : textColor ? textColor : "text-catchup-gray-300"} ${selectedId === option.id ? selectedBorderColor ? selectedBorderColor : "border-catchup-blue-500" : borderColor ? borderColor : "border-catchup-gray-50"} border-b-2 transition-all duration-300 p-3 cursor-pointer`,
|
package/dist/index.mjs
CHANGED
|
@@ -2254,11 +2254,9 @@ var convertToEvaluationRubricMapString = (type, evaluationRubricMap) => {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
return convertedEvaluationRubricMap;
|
|
2256
2256
|
};
|
|
2257
|
-
var constructActivityData = (activityTemplateType, bodyMap, materialMap, solutionMap, taxonomyMap, evaluationRubricMap) => {
|
|
2257
|
+
var constructActivityData = (activityTemplateType, contentMap, bodyMap, materialMap, solutionMap, taxonomyMap, evaluationRubricMap) => {
|
|
2258
2258
|
const constructedData = {};
|
|
2259
|
-
constructedData["contentMap"] = JSON.stringify(
|
|
2260
|
-
type: "TEXT"
|
|
2261
|
-
});
|
|
2259
|
+
constructedData["contentMap"] = JSON.stringify(contentMap);
|
|
2262
2260
|
if (activityTemplateType === "ORDERING") {
|
|
2263
2261
|
constructedData["orderingBodyMap"] = JSON.stringify(
|
|
2264
2262
|
convertToBodyMapString("ORDERING", bodyMap)
|
|
@@ -3654,14 +3652,14 @@ var DropdownActivityMaterialContent = ({
|
|
|
3654
3652
|
},
|
|
3655
3653
|
index2
|
|
3656
3654
|
)) }) }),
|
|
3657
|
-
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ jsx18("div", { className: "absolute top-
|
|
3655
|
+
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ jsx18("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ jsx18(
|
|
3658
3656
|
BaseImage_default,
|
|
3659
3657
|
{
|
|
3660
3658
|
src: "/icons/checkbox.png",
|
|
3661
3659
|
alt: "chekbbox",
|
|
3662
3660
|
size: "small"
|
|
3663
3661
|
}
|
|
3664
|
-
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ jsx18("div", { className: "absolute top-
|
|
3662
|
+
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ jsx18("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ jsx18(
|
|
3665
3663
|
BaseImage_default,
|
|
3666
3664
|
{
|
|
3667
3665
|
src: "/icons/cross-red.png",
|
|
@@ -5816,7 +5814,7 @@ var SelectionTab = ({
|
|
|
5816
5814
|
textColor,
|
|
5817
5815
|
borderColor
|
|
5818
5816
|
}) => {
|
|
5819
|
-
return /* @__PURE__ */ jsx43("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-
|
|
5817
|
+
return /* @__PURE__ */ jsx43("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-lg text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx43(
|
|
5820
5818
|
"div",
|
|
5821
5819
|
{
|
|
5822
5820
|
className: `${selectedId === option.id ? selectedTextColor ? selectedTextColor : "text-catchup-blue-500" : textColor ? textColor : "text-catchup-gray-300"} ${selectedId === option.id ? selectedBorderColor ? selectedBorderColor : "border-catchup-blue-500" : borderColor ? borderColor : "border-catchup-gray-50"} border-b-2 transition-all duration-300 p-3 cursor-pointer`,
|
package/package.json
CHANGED
|
@@ -197,7 +197,7 @@ const DropdownActivityMaterialContent = ({
|
|
|
197
197
|
)}
|
|
198
198
|
</div>
|
|
199
199
|
{learnerAnswerState === "CORRECT" ? (
|
|
200
|
-
<div className="absolute top-
|
|
200
|
+
<div className="absolute -top-2 right-3 bg-catchup-white">
|
|
201
201
|
<BaseImage
|
|
202
202
|
src="/icons/checkbox.png"
|
|
203
203
|
alt="chekbbox"
|
|
@@ -205,7 +205,7 @@ const DropdownActivityMaterialContent = ({
|
|
|
205
205
|
/>
|
|
206
206
|
</div>
|
|
207
207
|
) : learnerAnswerState === "INCORRECT" ? (
|
|
208
|
-
<div className="absolute top-
|
|
208
|
+
<div className="absolute -top-2 right-3 bg-catchup-white">
|
|
209
209
|
<BaseImage
|
|
210
210
|
src="/icons/cross-red.png"
|
|
211
211
|
alt="cross-red"
|
|
@@ -10,7 +10,7 @@ const SelectionTab = ({
|
|
|
10
10
|
borderColor,
|
|
11
11
|
}: ISelectionTabProps) => {
|
|
12
12
|
return (
|
|
13
|
-
<div className="flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-
|
|
13
|
+
<div className="flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-lg text-center">
|
|
14
14
|
{optionList.map((option: any, index: number) => (
|
|
15
15
|
<div
|
|
16
16
|
key={index}
|
|
@@ -1728,6 +1728,7 @@ export const convertToEvaluationRubricMapString = (
|
|
|
1728
1728
|
|
|
1729
1729
|
export const constructActivityData = (
|
|
1730
1730
|
activityTemplateType: string,
|
|
1731
|
+
contentMap: any,
|
|
1731
1732
|
bodyMap: any,
|
|
1732
1733
|
materialMap: any,
|
|
1733
1734
|
solutionMap: any,
|
|
@@ -1735,9 +1736,10 @@ export const constructActivityData = (
|
|
|
1735
1736
|
evaluationRubricMap: any
|
|
1736
1737
|
) => {
|
|
1737
1738
|
const constructedData: any = {};
|
|
1738
|
-
constructedData["contentMap"] = JSON.stringify({
|
|
1739
|
-
|
|
1740
|
-
});
|
|
1739
|
+
// constructedData["contentMap"] = JSON.stringify({
|
|
1740
|
+
// type: "TEXT",
|
|
1741
|
+
// });
|
|
1742
|
+
constructedData["contentMap"] = JSON.stringify(contentMap);
|
|
1741
1743
|
if (activityTemplateType === "ORDERING") {
|
|
1742
1744
|
constructedData["orderingBodyMap"] = JSON.stringify(
|
|
1743
1745
|
convertToBodyMapString("ORDERING", bodyMap)
|