catchup-library-web 1.14.5 → 1.14.6
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 -5
- package/dist/index.mjs +31 -24
- package/package.json +1 -1
- package/src/components/activities/body-content/ShowBodyMediaByContentType.tsx +7 -2
- package/src/components/activities/evaluation-rubric-content/ActivityEvaluationRubricContent.tsx +22 -24
- package/catchup-library-web-1.14.4-1.tgz +0 -0
- package/catchup-library-web-1.14.4-2.tgz +0 -0
- package/catchup-library-web-1.14.4-3.tgz +0 -0
- package/catchup-library-web-1.14.4-4.tgz +0 -0
- package/catchup-library-web-1.14.4-5.tgz +0 -0
- package/catchup-library-web-1.14.4-6.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -3271,7 +3271,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3271
3271
|
}
|
|
3272
3272
|
};
|
|
3273
3273
|
const renderSpecialExpressions = (inputPart) => {
|
|
3274
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3275
|
+
"span",
|
|
3276
|
+
{
|
|
3277
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3278
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3279
|
+
},
|
|
3280
|
+
index
|
|
3281
|
+
);
|
|
3275
3282
|
};
|
|
3276
3283
|
const balanceSpecialChars = (text) => {
|
|
3277
3284
|
let result = text;
|
|
@@ -6738,10 +6745,10 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6738
6745
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
6739
6746
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
6740
6747
|
const { value } = currentItem;
|
|
6741
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6742
|
-
"
|
|
6748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6749
|
+
"p",
|
|
6743
6750
|
{
|
|
6744
|
-
className: "text-xl whitespace-pre-wrap",
|
|
6751
|
+
className: "my-1 text-xl whitespace-pre-wrap",
|
|
6745
6752
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
6746
6753
|
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6747
6754
|
"span",
|
|
@@ -6754,7 +6761,7 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6754
6761
|
)
|
|
6755
6762
|
},
|
|
6756
6763
|
`${key}_${index}`
|
|
6757
|
-
)
|
|
6764
|
+
);
|
|
6758
6765
|
})
|
|
6759
6766
|
] }) });
|
|
6760
6767
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -3040,7 +3040,7 @@ var retrieveDifficultyByActivityTypeFromData = (type, data) => {
|
|
|
3040
3040
|
|
|
3041
3041
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
3042
3042
|
import { InlineMath } from "react-katex";
|
|
3043
|
-
import {
|
|
3043
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3044
3044
|
var ShowBodyMediaByContentType = ({
|
|
3045
3045
|
index,
|
|
3046
3046
|
type,
|
|
@@ -3062,7 +3062,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3062
3062
|
}
|
|
3063
3063
|
};
|
|
3064
3064
|
const renderSpecialExpressions = (inputPart) => {
|
|
3065
|
-
return /* @__PURE__ */ jsx16(
|
|
3065
|
+
return /* @__PURE__ */ jsx16(
|
|
3066
|
+
"span",
|
|
3067
|
+
{
|
|
3068
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3069
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx16("span", { className: "text-2xl", children: /* @__PURE__ */ jsx16(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3070
|
+
},
|
|
3071
|
+
index
|
|
3072
|
+
);
|
|
3066
3073
|
};
|
|
3067
3074
|
const balanceSpecialChars = (text) => {
|
|
3068
3075
|
let result = text;
|
|
@@ -3540,7 +3547,7 @@ import { InlineMath as InlineMath2 } from "react-katex";
|
|
|
3540
3547
|
// src/components/groups/InputGroup.tsx
|
|
3541
3548
|
import Select from "react-select";
|
|
3542
3549
|
import { useEffect as useEffect3, useRef, useState as useState11, useCallback } from "react";
|
|
3543
|
-
import { Fragment
|
|
3550
|
+
import { Fragment, jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3544
3551
|
var InputGroup = ({
|
|
3545
3552
|
type,
|
|
3546
3553
|
title,
|
|
@@ -3959,7 +3966,7 @@ var InputGroup = ({
|
|
|
3959
3966
|
return CheckboxInputGroup();
|
|
3960
3967
|
}
|
|
3961
3968
|
};
|
|
3962
|
-
return /* @__PURE__ */ jsxs11(
|
|
3969
|
+
return /* @__PURE__ */ jsxs11(Fragment, { children: [
|
|
3963
3970
|
RenderMainContent(),
|
|
3964
3971
|
/* @__PURE__ */ jsx20(MathConstructorModal, {})
|
|
3965
3972
|
] });
|
|
@@ -4920,7 +4927,7 @@ var useScreenSize = () => {
|
|
|
4920
4927
|
var useScreenSize_default = useScreenSize;
|
|
4921
4928
|
|
|
4922
4929
|
// src/components/activities/material-content/GroupingActivityMaterialContent.tsx
|
|
4923
|
-
import { Fragment as
|
|
4930
|
+
import { Fragment as Fragment2, jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4924
4931
|
var GroupingActivityMaterialContent = ({
|
|
4925
4932
|
uniqueValue,
|
|
4926
4933
|
answer,
|
|
@@ -5019,7 +5026,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5019
5026
|
};
|
|
5020
5027
|
const answerMap = retrieveAnswerMap();
|
|
5021
5028
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5022
|
-
return /* @__PURE__ */ jsxs18(
|
|
5029
|
+
return /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
5023
5030
|
/* @__PURE__ */ jsx29(
|
|
5024
5031
|
"div",
|
|
5025
5032
|
{
|
|
@@ -5197,7 +5204,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5197
5204
|
var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
|
|
5198
5205
|
|
|
5199
5206
|
// src/components/activities/GroupingActivityContent.tsx
|
|
5200
|
-
import { Fragment as
|
|
5207
|
+
import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5201
5208
|
var GroupingActivityContent = ({
|
|
5202
5209
|
answer,
|
|
5203
5210
|
data,
|
|
@@ -5222,7 +5229,7 @@ var GroupingActivityContent = ({
|
|
|
5222
5229
|
}
|
|
5223
5230
|
changeAnswer(answer2);
|
|
5224
5231
|
};
|
|
5225
|
-
return /* @__PURE__ */ jsxs19(
|
|
5232
|
+
return /* @__PURE__ */ jsxs19(Fragment3, { children: [
|
|
5226
5233
|
/* @__PURE__ */ jsx30(
|
|
5227
5234
|
ActivityBodyContent_default,
|
|
5228
5235
|
{
|
|
@@ -5252,7 +5259,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
|
|
|
5252
5259
|
import { useEffect as useEffect11, useRef as useRef5, useState as useState20 } from "react";
|
|
5253
5260
|
import { useDrop as useDrop4 } from "react-dnd";
|
|
5254
5261
|
import { InlineMath as InlineMath5 } from "react-katex";
|
|
5255
|
-
import { Fragment as
|
|
5262
|
+
import { Fragment as Fragment4, jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5256
5263
|
var MatchingActivityMaterialContent = ({
|
|
5257
5264
|
uniqueValue,
|
|
5258
5265
|
answer,
|
|
@@ -5348,7 +5355,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5348
5355
|
};
|
|
5349
5356
|
const answerMap = retrieveAnswerMap();
|
|
5350
5357
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5351
|
-
return /* @__PURE__ */ jsxs20(
|
|
5358
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
5352
5359
|
/* @__PURE__ */ jsx31(
|
|
5353
5360
|
"div",
|
|
5354
5361
|
{
|
|
@@ -5504,7 +5511,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5504
5511
|
var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
|
|
5505
5512
|
|
|
5506
5513
|
// src/components/activities/MatchingActivityContent.tsx
|
|
5507
|
-
import { Fragment as
|
|
5514
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5508
5515
|
var MatchingActivityContent = ({
|
|
5509
5516
|
answer,
|
|
5510
5517
|
data,
|
|
@@ -5525,7 +5532,7 @@ var MatchingActivityContent = ({
|
|
|
5525
5532
|
answerMap[key] = value;
|
|
5526
5533
|
changeAnswer(answer2);
|
|
5527
5534
|
};
|
|
5528
|
-
return /* @__PURE__ */ jsxs21(
|
|
5535
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
5529
5536
|
/* @__PURE__ */ jsx32(
|
|
5530
5537
|
ActivityBodyContent_default,
|
|
5531
5538
|
{
|
|
@@ -5852,7 +5859,7 @@ var MCSAActivityContent = ({
|
|
|
5852
5859
|
var MCSAActivityContent_default = MCSAActivityContent;
|
|
5853
5860
|
|
|
5854
5861
|
// src/components/activities/material-content/OpenEndedActivityMaterialContent.tsx
|
|
5855
|
-
import { Fragment as
|
|
5862
|
+
import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5856
5863
|
var OpenEndedActivityMaterialContent = ({
|
|
5857
5864
|
answer,
|
|
5858
5865
|
contentMap,
|
|
@@ -5888,7 +5895,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5888
5895
|
);
|
|
5889
5896
|
};
|
|
5890
5897
|
const answerMap = retrieveAnswerMap();
|
|
5891
|
-
return /* @__PURE__ */ jsx37(
|
|
5898
|
+
return /* @__PURE__ */ jsx37(Fragment6, { children: /* @__PURE__ */ jsxs26("div", { className: "", children: [
|
|
5892
5899
|
/* @__PURE__ */ jsx37("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx37("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
|
|
5893
5900
|
/* @__PURE__ */ jsx37("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx37(DividerLine_default, {}) }),
|
|
5894
5901
|
contentMap.type === "TEXT" ? RenderTextContent(answerMap) : null
|
|
@@ -5897,7 +5904,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5897
5904
|
var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
|
|
5898
5905
|
|
|
5899
5906
|
// src/components/activities/OpenEndedActivityContent.tsx
|
|
5900
|
-
import { Fragment as
|
|
5907
|
+
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5901
5908
|
var OpenEndedActivityContent = ({
|
|
5902
5909
|
answer,
|
|
5903
5910
|
data,
|
|
@@ -5929,7 +5936,7 @@ var OpenEndedActivityContent = ({
|
|
|
5929
5936
|
)
|
|
5930
5937
|
}
|
|
5931
5938
|
),
|
|
5932
|
-
showMaterialContent ? /* @__PURE__ */ jsxs27(
|
|
5939
|
+
showMaterialContent ? /* @__PURE__ */ jsxs27(Fragment7, { children: [
|
|
5933
5940
|
/* @__PURE__ */ jsx38(
|
|
5934
5941
|
"div",
|
|
5935
5942
|
{
|
|
@@ -6169,7 +6176,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6169
6176
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
6170
6177
|
|
|
6171
6178
|
// src/components/activities/OrderingActivityContent.tsx
|
|
6172
|
-
import { Fragment as
|
|
6179
|
+
import { Fragment as Fragment8, jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6173
6180
|
var OrderingActivityContent = ({
|
|
6174
6181
|
answer,
|
|
6175
6182
|
data,
|
|
@@ -6192,7 +6199,7 @@ var OrderingActivityContent = ({
|
|
|
6192
6199
|
answerMap[secondaryKey] = prevValue;
|
|
6193
6200
|
changeAnswer(answer2);
|
|
6194
6201
|
};
|
|
6195
|
-
return /* @__PURE__ */ jsxs29(
|
|
6202
|
+
return /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
6196
6203
|
/* @__PURE__ */ jsx41(
|
|
6197
6204
|
ActivityBodyContent_default,
|
|
6198
6205
|
{
|
|
@@ -6221,7 +6228,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
6221
6228
|
// src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx
|
|
6222
6229
|
import { useEffect as useEffect13, useState as useState22 } from "react";
|
|
6223
6230
|
import { InlineMath as InlineMath9 } from "react-katex";
|
|
6224
|
-
import { Fragment as
|
|
6231
|
+
import { Fragment as Fragment9, jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6225
6232
|
var TrueFalseActivityMaterialContent = ({
|
|
6226
6233
|
uniqueValue,
|
|
6227
6234
|
answer,
|
|
@@ -6343,7 +6350,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6343
6350
|
},
|
|
6344
6351
|
index
|
|
6345
6352
|
);
|
|
6346
|
-
}) }) : /* @__PURE__ */ jsxs30(
|
|
6353
|
+
}) }) : /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
6347
6354
|
answerMap.trueList.map((item) => /* @__PURE__ */ jsxs30("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6348
6355
|
/* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("p", { children: item }) }),
|
|
6349
6356
|
/* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "underline", children: i18n_default.t("true") }) })
|
|
@@ -6529,10 +6536,10 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6529
6536
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
6530
6537
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
6531
6538
|
const { value } = currentItem;
|
|
6532
|
-
return /* @__PURE__ */ jsx45(
|
|
6533
|
-
"
|
|
6539
|
+
return /* @__PURE__ */ jsx45(
|
|
6540
|
+
"p",
|
|
6534
6541
|
{
|
|
6535
|
-
className: "text-xl whitespace-pre-wrap",
|
|
6542
|
+
className: "my-1 text-xl whitespace-pre-wrap",
|
|
6536
6543
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
6537
6544
|
(inputPart, index2) => /* @__PURE__ */ jsx45(
|
|
6538
6545
|
"span",
|
|
@@ -6545,7 +6552,7 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6545
6552
|
)
|
|
6546
6553
|
},
|
|
6547
6554
|
`${key}_${index}`
|
|
6548
|
-
)
|
|
6555
|
+
);
|
|
6549
6556
|
})
|
|
6550
6557
|
] }) });
|
|
6551
6558
|
};
|
package/package.json
CHANGED
|
@@ -35,7 +35,12 @@ const ShowBodyMediaByContentType = ({
|
|
|
35
35
|
// Helper function to render special expressions with proper keys
|
|
36
36
|
const renderSpecialExpressions = (inputPart: IInputPart) => {
|
|
37
37
|
return (
|
|
38
|
-
|
|
38
|
+
<span
|
|
39
|
+
key={index}
|
|
40
|
+
className={`${inputPart.isBold ? "font-bold" : ""} ${
|
|
41
|
+
inputPart.isUnderline ? "underline" : ""
|
|
42
|
+
}`}
|
|
43
|
+
>
|
|
39
44
|
{inputPart.isEquation ? (
|
|
40
45
|
<span className="text-2xl">
|
|
41
46
|
<InlineMath math={inputPart.value} />
|
|
@@ -43,7 +48,7 @@ const ShowBodyMediaByContentType = ({
|
|
|
43
48
|
) : (
|
|
44
49
|
inputPart.value
|
|
45
50
|
)}
|
|
46
|
-
|
|
51
|
+
</span>
|
|
47
52
|
);
|
|
48
53
|
};
|
|
49
54
|
|
package/src/components/activities/evaluation-rubric-content/ActivityEvaluationRubricContent.tsx
CHANGED
|
@@ -44,30 +44,28 @@ const ActivityEvaluationRubricContent = ({
|
|
|
44
44
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
45
45
|
const { value } = currentItem;
|
|
46
46
|
return (
|
|
47
|
-
<p
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
)}
|
|
70
|
-
</span>
|
|
47
|
+
<p
|
|
48
|
+
key={`${key}_${index}`}
|
|
49
|
+
className="my-1 text-xl whitespace-pre-wrap"
|
|
50
|
+
>
|
|
51
|
+
{constructInputWithSpecialExpressionList(value).map(
|
|
52
|
+
(inputPart, index) => (
|
|
53
|
+
<span
|
|
54
|
+
key={index}
|
|
55
|
+
className={`${inputPart.isBold ? "font-bold" : ""} ${
|
|
56
|
+
inputPart.isUnderline ? "underline" : ""
|
|
57
|
+
}`}
|
|
58
|
+
>
|
|
59
|
+
{inputPart.isEquation ? (
|
|
60
|
+
<span className="text-2xl">
|
|
61
|
+
<InlineMath math={inputPart.value} />
|
|
62
|
+
</span>
|
|
63
|
+
) : (
|
|
64
|
+
inputPart.value
|
|
65
|
+
)}
|
|
66
|
+
</span>
|
|
67
|
+
)
|
|
68
|
+
)}
|
|
71
69
|
</p>
|
|
72
70
|
);
|
|
73
71
|
})}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|