catchup-library-web 1.18.7 → 1.18.8
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
|
@@ -3404,8 +3404,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3404
3404
|
if ((result.split("**").length - 1) % 2 === 1) {
|
|
3405
3405
|
result = result + "**";
|
|
3406
3406
|
}
|
|
3407
|
-
if ((result.split("
|
|
3408
|
-
result = result + "
|
|
3407
|
+
if ((result.split("$$").length - 1) % 2 === 1) {
|
|
3408
|
+
result = result + "$$";
|
|
3409
3409
|
}
|
|
3410
3410
|
return result;
|
|
3411
3411
|
};
|
|
@@ -3451,8 +3451,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3451
3451
|
copyValue = copyValue.substring(
|
|
3452
3452
|
firstIndex + checkText.length + secondIndex + checkText.length
|
|
3453
3453
|
);
|
|
3454
|
-
if ((copyValue.split("
|
|
3455
|
-
copyValue = "
|
|
3454
|
+
if ((copyValue.split("$$").length - 1) % 2 === 1) {
|
|
3455
|
+
copyValue = "$$" + copyValue;
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
3458
3458
|
};
|
|
@@ -3738,9 +3738,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3738
3738
|
"video",
|
|
3739
3739
|
{
|
|
3740
3740
|
src: value,
|
|
3741
|
-
className: `${convertToPercentage(
|
|
3742
|
-
size || ""
|
|
3743
|
-
)} rounded-catchup-xlarge`,
|
|
3741
|
+
className: `${convertToPercentage(size)} rounded-catchup-xlarge`,
|
|
3744
3742
|
controls: true
|
|
3745
3743
|
}
|
|
3746
3744
|
) });
|
package/dist/index.mjs
CHANGED
|
@@ -3188,8 +3188,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3188
3188
|
if ((result.split("**").length - 1) % 2 === 1) {
|
|
3189
3189
|
result = result + "**";
|
|
3190
3190
|
}
|
|
3191
|
-
if ((result.split("
|
|
3192
|
-
result = result + "
|
|
3191
|
+
if ((result.split("$$").length - 1) % 2 === 1) {
|
|
3192
|
+
result = result + "$$";
|
|
3193
3193
|
}
|
|
3194
3194
|
return result;
|
|
3195
3195
|
};
|
|
@@ -3235,8 +3235,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3235
3235
|
copyValue = copyValue.substring(
|
|
3236
3236
|
firstIndex + checkText.length + secondIndex + checkText.length
|
|
3237
3237
|
);
|
|
3238
|
-
if ((copyValue.split("
|
|
3239
|
-
copyValue = "
|
|
3238
|
+
if ((copyValue.split("$$").length - 1) % 2 === 1) {
|
|
3239
|
+
copyValue = "$$" + copyValue;
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
3242
|
};
|
|
@@ -3522,9 +3522,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3522
3522
|
"video",
|
|
3523
3523
|
{
|
|
3524
3524
|
src: value,
|
|
3525
|
-
className: `${convertToPercentage(
|
|
3526
|
-
size || ""
|
|
3527
|
-
)} rounded-catchup-xlarge`,
|
|
3525
|
+
className: `${convertToPercentage(size)} rounded-catchup-xlarge`,
|
|
3528
3526
|
controls: true
|
|
3529
3527
|
}
|
|
3530
3528
|
) });
|
package/package.json
CHANGED
|
@@ -21,7 +21,6 @@ const ActivityBodyContent = ({
|
|
|
21
21
|
while (processedValue.includes("@@")) {
|
|
22
22
|
const answer = answerMap[currentQQIndex];
|
|
23
23
|
|
|
24
|
-
// More specific check for empty/undefined answers
|
|
25
24
|
const isEmpty =
|
|
26
25
|
answer === undefined ||
|
|
27
26
|
answer === null ||
|
|
@@ -35,7 +34,6 @@ const ActivityBodyContent = ({
|
|
|
35
34
|
`----(${currentQQIndex + 1})----`
|
|
36
35
|
);
|
|
37
36
|
} else {
|
|
38
|
-
// Handle different content types
|
|
39
37
|
const trimmedAnswer =
|
|
40
38
|
typeof answer === "string" ? answer.trim() : String(answer);
|
|
41
39
|
|
|
@@ -77,10 +75,8 @@ const ActivityBodyContent = ({
|
|
|
77
75
|
};
|
|
78
76
|
};
|
|
79
77
|
|
|
80
|
-
// Track the global answer index across all bodies
|
|
81
78
|
let globalAnswerIndex = 0;
|
|
82
79
|
|
|
83
|
-
// Process all bodies and their values
|
|
84
80
|
const processedBodies = Object.keys(bodyMap)
|
|
85
81
|
.map((key) => {
|
|
86
82
|
let body;
|
|
@@ -91,7 +87,6 @@ const ActivityBodyContent = ({
|
|
|
91
87
|
return null;
|
|
92
88
|
}
|
|
93
89
|
|
|
94
|
-
// Only process value if needed for certain template types
|
|
95
90
|
if (["DROPDOWN", "FILL_IN_THE_BLANKS"].includes(templateType)) {
|
|
96
91
|
const contentType = contentMap["type"];
|
|
97
92
|
const result = processBodyValue(
|
|
@@ -55,7 +55,6 @@ const ShowBodyMediaByContentType = ({
|
|
|
55
55
|
);
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
// Helper function to ensure balanced special characters
|
|
59
58
|
const balanceSpecialChars = (text: string) => {
|
|
60
59
|
let result = text;
|
|
61
60
|
|
|
@@ -70,8 +69,8 @@ const ShowBodyMediaByContentType = ({
|
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
// Balance backticks
|
|
73
|
-
if ((result.split("
|
|
74
|
-
result = result + "
|
|
72
|
+
if ((result.split("$$").length - 1) % 2 === 1) {
|
|
73
|
+
result = result + "$$";
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
return result;
|
|
@@ -140,8 +139,8 @@ const ShowBodyMediaByContentType = ({
|
|
|
140
139
|
firstIndex + checkText.length + secondIndex + checkText.length
|
|
141
140
|
);
|
|
142
141
|
|
|
143
|
-
if ((copyValue.split("
|
|
144
|
-
copyValue = "
|
|
142
|
+
if ((copyValue.split("$$").length - 1) % 2 === 1) {
|
|
143
|
+
copyValue = "$$" + copyValue;
|
|
145
144
|
}
|
|
146
145
|
}
|
|
147
146
|
};
|
|
@@ -419,9 +418,7 @@ const ShowBodyMediaByContentType = ({
|
|
|
419
418
|
<div className="mb-1 flex flex-col items-center">
|
|
420
419
|
<video
|
|
421
420
|
src={value}
|
|
422
|
-
className={`${convertToPercentage(
|
|
423
|
-
size || ""
|
|
424
|
-
)} rounded-catchup-xlarge`}
|
|
421
|
+
className={`${convertToPercentage(size)} rounded-catchup-xlarge`}
|
|
425
422
|
controls
|
|
426
423
|
/>
|
|
427
424
|
</div>
|