catchup-library-web 1.18.9 → 1.18.10
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
|
@@ -3444,17 +3444,15 @@ var ShowBodyMediaByContentType = ({
|
|
|
3444
3444
|
currentIndex++;
|
|
3445
3445
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3446
3446
|
console.log("text inside: ", textInsideTag);
|
|
3447
|
+
const balancedTextInsideTag = balanceSpecialChars(textInsideTag);
|
|
3447
3448
|
valuePartList.push(
|
|
3448
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(
|
|
3449
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(balancedTextInsideTag).map(
|
|
3449
3450
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3450
3451
|
) }, itemKey)
|
|
3451
3452
|
);
|
|
3452
3453
|
copyValue = copyValue.substring(
|
|
3453
3454
|
firstIndex + checkText.length + secondIndex + checkText.length
|
|
3454
3455
|
);
|
|
3455
|
-
if ((copyValue.split("$$").length - 1) % 2 === 1) {
|
|
3456
|
-
copyValue = "$$" + copyValue;
|
|
3457
|
-
}
|
|
3458
3456
|
}
|
|
3459
3457
|
};
|
|
3460
3458
|
const processImageTags = () => {
|
package/dist/index.mjs
CHANGED
|
@@ -3228,17 +3228,15 @@ var ShowBodyMediaByContentType = ({
|
|
|
3228
3228
|
currentIndex++;
|
|
3229
3229
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3230
3230
|
console.log("text inside: ", textInsideTag);
|
|
3231
|
+
const balancedTextInsideTag = balanceSpecialChars(textInsideTag);
|
|
3231
3232
|
valuePartList.push(
|
|
3232
|
-
/* @__PURE__ */ jsx18("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(
|
|
3233
|
+
/* @__PURE__ */ jsx18("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(balancedTextInsideTag).map(
|
|
3233
3234
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3234
3235
|
) }, itemKey)
|
|
3235
3236
|
);
|
|
3236
3237
|
copyValue = copyValue.substring(
|
|
3237
3238
|
firstIndex + checkText.length + secondIndex + checkText.length
|
|
3238
3239
|
);
|
|
3239
|
-
if ((copyValue.split("$$").length - 1) % 2 === 1) {
|
|
3240
|
-
copyValue = "$$" + copyValue;
|
|
3241
|
-
}
|
|
3242
3240
|
}
|
|
3243
3241
|
};
|
|
3244
3242
|
const processImageTags = () => {
|
package/package.json
CHANGED
|
@@ -123,9 +123,10 @@ const ShowBodyMediaByContentType = ({
|
|
|
123
123
|
|
|
124
124
|
console.log("text inside: ", textInsideTag);
|
|
125
125
|
|
|
126
|
+
const balancedTextInsideTag = balanceSpecialChars(textInsideTag);
|
|
126
127
|
valuePartList.push(
|
|
127
128
|
<span key={itemKey} className="text-xl font-bold">
|
|
128
|
-
{constructInputWithSpecialExpressionList(
|
|
129
|
+
{constructInputWithSpecialExpressionList(balancedTextInsideTag).map(
|
|
129
130
|
(inputPart: IInputPart, inputPartIndex: number) =>
|
|
130
131
|
renderSpecialExpressions(inputPart, inputPartIndex)
|
|
131
132
|
)}
|
|
@@ -135,10 +136,6 @@ const ShowBodyMediaByContentType = ({
|
|
|
135
136
|
copyValue = copyValue.substring(
|
|
136
137
|
firstIndex + checkText.length + secondIndex + checkText.length
|
|
137
138
|
);
|
|
138
|
-
|
|
139
|
-
if ((copyValue.split("$$").length - 1) % 2 === 1) {
|
|
140
|
-
copyValue = "$$" + copyValue;
|
|
141
|
-
}
|
|
142
139
|
}
|
|
143
140
|
};
|
|
144
141
|
|