catchup-library-web 1.18.8 → 1.18.9
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
|
@@ -3443,6 +3443,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3443
3443
|
);
|
|
3444
3444
|
currentIndex++;
|
|
3445
3445
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3446
|
+
console.log("text inside: ", textInsideTag);
|
|
3446
3447
|
valuePartList.push(
|
|
3447
3448
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3448
3449
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
@@ -3777,6 +3778,7 @@ var ActivityBodyContent = ({
|
|
|
3777
3778
|
);
|
|
3778
3779
|
} else {
|
|
3779
3780
|
const trimmedAnswer = typeof answer === "string" ? answer.trim() : String(answer);
|
|
3781
|
+
console.log("trimmed answer: ", trimmedAnswer);
|
|
3780
3782
|
switch (contentType) {
|
|
3781
3783
|
case "TEXT":
|
|
3782
3784
|
processedValue = processedValue.replace(
|
package/dist/index.mjs
CHANGED
|
@@ -3227,6 +3227,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3227
3227
|
);
|
|
3228
3228
|
currentIndex++;
|
|
3229
3229
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3230
|
+
console.log("text inside: ", textInsideTag);
|
|
3230
3231
|
valuePartList.push(
|
|
3231
3232
|
/* @__PURE__ */ jsx18("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3232
3233
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
@@ -3561,6 +3562,7 @@ var ActivityBodyContent = ({
|
|
|
3561
3562
|
);
|
|
3562
3563
|
} else {
|
|
3563
3564
|
const trimmedAnswer = typeof answer === "string" ? answer.trim() : String(answer);
|
|
3565
|
+
console.log("trimmed answer: ", trimmedAnswer);
|
|
3564
3566
|
switch (contentType) {
|
|
3565
3567
|
case "TEXT":
|
|
3566
3568
|
processedValue = processedValue.replace(
|
package/package.json
CHANGED
|
@@ -37,6 +37,8 @@ const ActivityBodyContent = ({
|
|
|
37
37
|
const trimmedAnswer =
|
|
38
38
|
typeof answer === "string" ? answer.trim() : String(answer);
|
|
39
39
|
|
|
40
|
+
console.log("trimmed answer: ", trimmedAnswer);
|
|
41
|
+
|
|
40
42
|
switch (contentType) {
|
|
41
43
|
case "TEXT":
|
|
42
44
|
processedValue = processedValue.replace(
|
|
@@ -32,7 +32,6 @@ const ShowBodyMediaByContentType = ({
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
// Helper function to render special expressions with proper keys
|
|
36
35
|
const renderSpecialExpressions = (
|
|
37
36
|
inputPart: IInputPart,
|
|
38
37
|
inputPartIndex: number
|
|
@@ -58,17 +57,14 @@ const ShowBodyMediaByContentType = ({
|
|
|
58
57
|
const balanceSpecialChars = (text: string) => {
|
|
59
58
|
let result = text;
|
|
60
59
|
|
|
61
|
-
// Balance underscores
|
|
62
60
|
if ((result.split("__").length - 1) % 2 === 1) {
|
|
63
61
|
result = result + "__";
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
// Balance asterisks
|
|
67
64
|
if ((result.split("**").length - 1) % 2 === 1) {
|
|
68
65
|
result = result + "**";
|
|
69
66
|
}
|
|
70
67
|
|
|
71
|
-
// Balance backticks
|
|
72
68
|
if ((result.split("$$").length - 1) % 2 === 1) {
|
|
73
69
|
result = result + "$$";
|
|
74
70
|
}
|
|
@@ -76,7 +72,6 @@ const ShowBodyMediaByContentType = ({
|
|
|
76
72
|
return result;
|
|
77
73
|
};
|
|
78
74
|
|
|
79
|
-
// Render text content with proper formatting
|
|
80
75
|
const renderTextContent = (text: string, itemKey: string) => {
|
|
81
76
|
const balancedText = balanceSpecialChars(text);
|
|
82
77
|
|
|
@@ -126,6 +121,8 @@ const ShowBodyMediaByContentType = ({
|
|
|
126
121
|
currentIndex++;
|
|
127
122
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
128
123
|
|
|
124
|
+
console.log("text inside: ", textInsideTag);
|
|
125
|
+
|
|
129
126
|
valuePartList.push(
|
|
130
127
|
<span key={itemKey} className="text-xl font-bold">
|
|
131
128
|
{constructInputWithSpecialExpressionList(textInsideTag).map(
|