catchup-library-web 1.18.6 → 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("`").length - 1) % 2 === 1) {
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("`").length - 1) % 2 === 1) {
3455
- copyValue = "`" + 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
  ) });
@@ -8386,7 +8384,7 @@ var retrieveProvinceNameOptionList = () => {
8386
8384
  { parent: "TURKEY", value: "IZMIR", text: "\u0130zmir", code: "35" },
8387
8385
  // { parent: "TURKEY", value: "KARS", text: "Kars", code: "36" },
8388
8386
  // { parent: "TURKEY", value: "KASTAMONU", text: "Kastamonu", code: "37" },
8389
- // { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
8387
+ { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
8390
8388
  // { parent: "TURKEY", value: "KIRKLARELI", text: "Kırklareli", code: "39" },
8391
8389
  // { parent: "TURKEY", value: "KIRSEHIR", text: "Kırşehir", code: "40" },
8392
8390
  { parent: "TURKEY", value: "KOCAELI", text: "Kocaeli", code: "41" },
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("`").length - 1) % 2 === 1) {
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("`").length - 1) % 2 === 1) {
3239
- copyValue = "`" + 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
  ) });
@@ -8170,7 +8168,7 @@ var retrieveProvinceNameOptionList = () => {
8170
8168
  { parent: "TURKEY", value: "IZMIR", text: "\u0130zmir", code: "35" },
8171
8169
  // { parent: "TURKEY", value: "KARS", text: "Kars", code: "36" },
8172
8170
  // { parent: "TURKEY", value: "KASTAMONU", text: "Kastamonu", code: "37" },
8173
- // { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
8171
+ { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
8174
8172
  // { parent: "TURKEY", value: "KIRKLARELI", text: "Kırklareli", code: "39" },
8175
8173
  // { parent: "TURKEY", value: "KIRSEHIR", text: "Kırşehir", code: "40" },
8176
8174
  { parent: "TURKEY", value: "KOCAELI", text: "Kocaeli", code: "41" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.18.6",
3
+ "version": "1.18.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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("`").length - 1) % 2 === 1) {
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("`").length - 1) % 2 === 1) {
144
- copyValue = "`" + 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>
@@ -684,7 +684,7 @@ export const retrieveProvinceNameOptionList = () => {
684
684
  { parent: "TURKEY", value: "IZMIR", text: "İzmir", code: "35" },
685
685
  // { parent: "TURKEY", value: "KARS", text: "Kars", code: "36" },
686
686
  // { parent: "TURKEY", value: "KASTAMONU", text: "Kastamonu", code: "37" },
687
- // { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
687
+ { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
688
688
  // { parent: "TURKEY", value: "KIRKLARELI", text: "Kırklareli", code: "39" },
689
689
  // { parent: "TURKEY", value: "KIRSEHIR", text: "Kırşehir", code: "40" },
690
690
  { parent: "TURKEY", value: "KOCAELI", text: "Kocaeli", code: "41" },