catchup-library-web 1.6.2 → 1.6.4
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.d.mts
CHANGED
|
@@ -495,7 +495,7 @@ declare const retrieveDateIntervalOptionList: () => {
|
|
|
495
495
|
value: string;
|
|
496
496
|
text: string;
|
|
497
497
|
}[];
|
|
498
|
-
declare const constructWeekName: (beginDate: any, endDate: any) => string;
|
|
498
|
+
declare const constructWeekName: (beginDate: any, endDate: any, untilSunday: boolean) => string;
|
|
499
499
|
|
|
500
500
|
declare const calculateLevenshteinDistance: (s: any, t: any) => any;
|
|
501
501
|
declare const convertTurkishCharactersToEnglish: (text: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -495,7 +495,7 @@ declare const retrieveDateIntervalOptionList: () => {
|
|
|
495
495
|
value: string;
|
|
496
496
|
text: string;
|
|
497
497
|
}[];
|
|
498
|
-
declare const constructWeekName: (beginDate: any, endDate: any) => string;
|
|
498
|
+
declare const constructWeekName: (beginDate: any, endDate: any, untilSunday: boolean) => string;
|
|
499
499
|
|
|
500
500
|
declare const calculateLevenshteinDistance: (s: any, t: any) => any;
|
|
501
501
|
declare const convertTurkishCharactersToEnglish: (text: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -3464,8 +3464,7 @@ var ActivityBodyContent = ({
|
|
|
3464
3464
|
contentMap,
|
|
3465
3465
|
answerMap
|
|
3466
3466
|
}) => {
|
|
3467
|
-
|
|
3468
|
-
if (!bodyMap || !contentMap) return null;
|
|
3467
|
+
if (!bodyMap) return null;
|
|
3469
3468
|
const processBodyValue = (bodyValue, contentType, answerMap2) => {
|
|
3470
3469
|
var _a;
|
|
3471
3470
|
let currentQQIndex = 0;
|
|
@@ -3531,7 +3530,6 @@ var ActivityBodyContent = ({
|
|
|
3531
3530
|
key
|
|
3532
3531
|
});
|
|
3533
3532
|
}).filter(Boolean);
|
|
3534
|
-
console.log(processedBodies);
|
|
3535
3533
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex flex-col justify-center items-center", children: processedBodies.map((body, index) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3536
3534
|
ShowBodyMediaByContentType_default,
|
|
3537
3535
|
{
|
|
@@ -8355,13 +8353,13 @@ var retrieveDateIntervalOptionList = () => {
|
|
|
8355
8353
|
}
|
|
8356
8354
|
];
|
|
8357
8355
|
};
|
|
8358
|
-
var constructWeekName = (beginDate, endDate) => {
|
|
8356
|
+
var constructWeekName = (beginDate, endDate, untilSunday) => {
|
|
8359
8357
|
let currentEndDate;
|
|
8360
8358
|
if (endDate) {
|
|
8361
8359
|
currentEndDate = endDate;
|
|
8362
8360
|
} else {
|
|
8363
8361
|
currentEndDate = new Date(beginDate);
|
|
8364
|
-
currentEndDate.setDate(beginDate.getDate() + 4);
|
|
8362
|
+
currentEndDate.setDate(beginDate.getDate() + untilSunday ? 6 : 4);
|
|
8365
8363
|
}
|
|
8366
8364
|
if (beginDate.getFullYear() !== currentEndDate.getFullYear()) {
|
|
8367
8365
|
return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
|
package/dist/index.mjs
CHANGED
|
@@ -3272,8 +3272,7 @@ var ActivityBodyContent = ({
|
|
|
3272
3272
|
contentMap,
|
|
3273
3273
|
answerMap
|
|
3274
3274
|
}) => {
|
|
3275
|
-
|
|
3276
|
-
if (!bodyMap || !contentMap) return null;
|
|
3275
|
+
if (!bodyMap) return null;
|
|
3277
3276
|
const processBodyValue = (bodyValue, contentType, answerMap2) => {
|
|
3278
3277
|
var _a;
|
|
3279
3278
|
let currentQQIndex = 0;
|
|
@@ -3339,7 +3338,6 @@ var ActivityBodyContent = ({
|
|
|
3339
3338
|
key
|
|
3340
3339
|
});
|
|
3341
3340
|
}).filter(Boolean);
|
|
3342
|
-
console.log(processedBodies);
|
|
3343
3341
|
return /* @__PURE__ */ jsx13("div", { className: "flex flex-col justify-center items-center", children: processedBodies.map((body, index) => /* @__PURE__ */ jsx13(
|
|
3344
3342
|
ShowBodyMediaByContentType_default,
|
|
3345
3343
|
{
|
|
@@ -8163,13 +8161,13 @@ var retrieveDateIntervalOptionList = () => {
|
|
|
8163
8161
|
}
|
|
8164
8162
|
];
|
|
8165
8163
|
};
|
|
8166
|
-
var constructWeekName = (beginDate, endDate) => {
|
|
8164
|
+
var constructWeekName = (beginDate, endDate, untilSunday) => {
|
|
8167
8165
|
let currentEndDate;
|
|
8168
8166
|
if (endDate) {
|
|
8169
8167
|
currentEndDate = endDate;
|
|
8170
8168
|
} else {
|
|
8171
8169
|
currentEndDate = new Date(beginDate);
|
|
8172
|
-
currentEndDate.setDate(beginDate.getDate() + 4);
|
|
8170
|
+
currentEndDate.setDate(beginDate.getDate() + untilSunday ? 6 : 4);
|
|
8173
8171
|
}
|
|
8174
8172
|
if (beginDate.getFullYear() !== currentEndDate.getFullYear()) {
|
|
8175
8173
|
return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
|
package/package.json
CHANGED
|
@@ -7,8 +7,7 @@ const ActivityBodyContent = ({
|
|
|
7
7
|
contentMap,
|
|
8
8
|
answerMap,
|
|
9
9
|
}: IActivityBodyContentProps) => {
|
|
10
|
-
|
|
11
|
-
if (!bodyMap || !contentMap) return null;
|
|
10
|
+
if (!bodyMap) return null;
|
|
12
11
|
|
|
13
12
|
const processBodyValue = (
|
|
14
13
|
bodyValue: string,
|
|
@@ -92,8 +91,6 @@ const ActivityBodyContent = ({
|
|
|
92
91
|
})
|
|
93
92
|
.filter(Boolean);
|
|
94
93
|
|
|
95
|
-
console.log(processedBodies);
|
|
96
|
-
|
|
97
94
|
return (
|
|
98
95
|
<div className="flex flex-col justify-center items-center">
|
|
99
96
|
{processedBodies.map((body, index) => (
|
|
@@ -55,13 +55,17 @@ export const retrieveDateIntervalOptionList = () => {
|
|
|
55
55
|
];
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
export const constructWeekName = (
|
|
58
|
+
export const constructWeekName = (
|
|
59
|
+
beginDate: any,
|
|
60
|
+
endDate: any,
|
|
61
|
+
untilSunday: boolean
|
|
62
|
+
) => {
|
|
59
63
|
let currentEndDate;
|
|
60
64
|
if (endDate) {
|
|
61
65
|
currentEndDate = endDate;
|
|
62
66
|
} else {
|
|
63
67
|
currentEndDate = new Date(beginDate);
|
|
64
|
-
currentEndDate.setDate(beginDate.getDate() + 4);
|
|
68
|
+
currentEndDate.setDate(beginDate.getDate() + untilSunday ? 6 : 4);
|
|
65
69
|
}
|
|
66
70
|
if (beginDate.getFullYear() !== currentEndDate.getFullYear()) {
|
|
67
71
|
return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
|