catchup-library-web 1.18.14 → 1.18.16
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
|
@@ -3412,17 +3412,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3412
3412
|
const processTextTags = () => {
|
|
3413
3413
|
const checkText = "--TEXT--";
|
|
3414
3414
|
while (copyValue.includes(checkText)) {
|
|
3415
|
-
console.log("copy value: ", copyValue);
|
|
3416
3415
|
const firstIndex = copyValue.indexOf(checkText);
|
|
3417
3416
|
const textBeforeTag = copyValue.substring(0, firstIndex);
|
|
3418
|
-
console.log("text before: ", textBeforeTag);
|
|
3419
3417
|
if (textBeforeTag.trim() !== "") {
|
|
3420
3418
|
currentIndex++;
|
|
3421
3419
|
const itemKey2 = `text-before-${index}-${currentIndex}`;
|
|
3422
3420
|
valuePartList.push(renderTextContent(textBeforeTag, itemKey2));
|
|
3423
3421
|
}
|
|
3424
3422
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
3425
|
-
console.log("sub value: ", subValue);
|
|
3426
3423
|
const secondIndex = subValue.indexOf(checkText);
|
|
3427
3424
|
if (secondIndex === -1) break;
|
|
3428
3425
|
const textInsideTag = copyValue.substring(
|
|
@@ -3431,7 +3428,6 @@ var ShowBodyMediaByContentType = ({
|
|
|
3431
3428
|
);
|
|
3432
3429
|
currentIndex++;
|
|
3433
3430
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3434
|
-
console.log("text inside: ", textInsideTag);
|
|
3435
3431
|
valuePartList.push(
|
|
3436
3432
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3437
3433
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
@@ -3791,6 +3787,7 @@ var ActivityBodyContent = ({
|
|
|
3791
3787
|
default:
|
|
3792
3788
|
processedValue = processedValue.replace("@@", trimmedAnswer);
|
|
3793
3789
|
}
|
|
3790
|
+
console.log("processed value: ", processedValue);
|
|
3794
3791
|
}
|
|
3795
3792
|
currentQQIndex++;
|
|
3796
3793
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3196,17 +3196,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3196
3196
|
const processTextTags = () => {
|
|
3197
3197
|
const checkText = "--TEXT--";
|
|
3198
3198
|
while (copyValue.includes(checkText)) {
|
|
3199
|
-
console.log("copy value: ", copyValue);
|
|
3200
3199
|
const firstIndex = copyValue.indexOf(checkText);
|
|
3201
3200
|
const textBeforeTag = copyValue.substring(0, firstIndex);
|
|
3202
|
-
console.log("text before: ", textBeforeTag);
|
|
3203
3201
|
if (textBeforeTag.trim() !== "") {
|
|
3204
3202
|
currentIndex++;
|
|
3205
3203
|
const itemKey2 = `text-before-${index}-${currentIndex}`;
|
|
3206
3204
|
valuePartList.push(renderTextContent(textBeforeTag, itemKey2));
|
|
3207
3205
|
}
|
|
3208
3206
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
3209
|
-
console.log("sub value: ", subValue);
|
|
3210
3207
|
const secondIndex = subValue.indexOf(checkText);
|
|
3211
3208
|
if (secondIndex === -1) break;
|
|
3212
3209
|
const textInsideTag = copyValue.substring(
|
|
@@ -3215,7 +3212,6 @@ var ShowBodyMediaByContentType = ({
|
|
|
3215
3212
|
);
|
|
3216
3213
|
currentIndex++;
|
|
3217
3214
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3218
|
-
console.log("text inside: ", textInsideTag);
|
|
3219
3215
|
valuePartList.push(
|
|
3220
3216
|
/* @__PURE__ */ jsx18("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3221
3217
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
@@ -3575,6 +3571,7 @@ var ActivityBodyContent = ({
|
|
|
3575
3571
|
default:
|
|
3576
3572
|
processedValue = processedValue.replace("@@", trimmedAnswer);
|
|
3577
3573
|
}
|
|
3574
|
+
console.log("processed value: ", processedValue);
|
|
3578
3575
|
}
|
|
3579
3576
|
currentQQIndex++;
|
|
3580
3577
|
}
|
package/package.json
CHANGED
|
@@ -76,14 +76,11 @@ const ShowBodyMediaByContentType = ({
|
|
|
76
76
|
const valuePartList = [];
|
|
77
77
|
let copyValue = JSON.parse(JSON.stringify(value));
|
|
78
78
|
|
|
79
|
-
// Process TEXT tags
|
|
80
79
|
const processTextTags = () => {
|
|
81
80
|
const checkText = "--TEXT--";
|
|
82
81
|
while (copyValue.includes(checkText)) {
|
|
83
|
-
console.log("copy value: ", copyValue);
|
|
84
82
|
const firstIndex = copyValue.indexOf(checkText);
|
|
85
83
|
const textBeforeTag = copyValue.substring(0, firstIndex);
|
|
86
|
-
console.log("text before: ", textBeforeTag);
|
|
87
84
|
|
|
88
85
|
if (textBeforeTag.trim() !== "") {
|
|
89
86
|
currentIndex++;
|
|
@@ -92,7 +89,6 @@ const ShowBodyMediaByContentType = ({
|
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
95
|
-
console.log("sub value: ", subValue);
|
|
96
92
|
const secondIndex = subValue.indexOf(checkText);
|
|
97
93
|
if (secondIndex === -1) break;
|
|
98
94
|
|
|
@@ -103,8 +99,6 @@ const ShowBodyMediaByContentType = ({
|
|
|
103
99
|
currentIndex++;
|
|
104
100
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
105
101
|
|
|
106
|
-
console.log("text inside: ", textInsideTag);
|
|
107
|
-
|
|
108
102
|
valuePartList.push(
|
|
109
103
|
<span key={itemKey} className="text-xl font-bold">
|
|
110
104
|
{constructInputWithSpecialExpressionList(textInsideTag).map(
|