catchup-library-web 1.20.0 → 1.20.2
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
|
@@ -4513,7 +4513,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4513
4513
|
}
|
|
4514
4514
|
);
|
|
4515
4515
|
};
|
|
4516
|
-
return contentType === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
4516
|
+
return contentType === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
4517
4517
|
RenderShowFullScreenItem(),
|
|
4518
4518
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
4519
4519
|
"div",
|
|
@@ -4559,7 +4559,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4559
4559
|
]
|
|
4560
4560
|
}
|
|
4561
4561
|
) }) })
|
|
4562
|
-
] }
|
|
4562
|
+
] }) : contentType === "VIDEO" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4563
4563
|
"video",
|
|
4564
4564
|
{
|
|
4565
4565
|
className: "h-catchup-activity-media-box-item rounded-catchup-xlarge",
|
|
@@ -6421,9 +6421,9 @@ var OrderingActivityMaterialContent = ({
|
|
|
6421
6421
|
if (index === 0) {
|
|
6422
6422
|
return 0;
|
|
6423
6423
|
} else if (index === 1) {
|
|
6424
|
-
return
|
|
6424
|
+
return 65;
|
|
6425
6425
|
} else if (index % 2 === 0) {
|
|
6426
|
-
return -
|
|
6426
|
+
return -65;
|
|
6427
6427
|
} else if (index % 2 === 1) {
|
|
6428
6428
|
return 0;
|
|
6429
6429
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4212,7 +4212,7 @@ var MediaDropdown_default = MediaDropdown;
|
|
|
4212
4212
|
// src/components/activities/material-contents/ShowMaterialMediaByContentType.tsx
|
|
4213
4213
|
import { useEffect as useEffect4, useRef as useRef2, useState as useState14 } from "react";
|
|
4214
4214
|
import Modal3 from "react-modal";
|
|
4215
|
-
import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4215
|
+
import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4216
4216
|
var ShowMaterialMediaByContentType = ({
|
|
4217
4217
|
key,
|
|
4218
4218
|
contentType,
|
|
@@ -4297,7 +4297,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4297
4297
|
}
|
|
4298
4298
|
);
|
|
4299
4299
|
};
|
|
4300
|
-
return contentType === "IMAGE" ? /* @__PURE__ */ jsxs14(
|
|
4300
|
+
return contentType === "IMAGE" ? /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
4301
4301
|
RenderShowFullScreenItem(),
|
|
4302
4302
|
/* @__PURE__ */ jsx24("div", { className: "my-2", children: /* @__PURE__ */ jsx24("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ jsxs14(
|
|
4303
4303
|
"div",
|
|
@@ -4343,7 +4343,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4343
4343
|
]
|
|
4344
4344
|
}
|
|
4345
4345
|
) }) })
|
|
4346
|
-
] }
|
|
4346
|
+
] }) : contentType === "VIDEO" ? /* @__PURE__ */ jsx24("div", { className: "my-2", children: /* @__PURE__ */ jsx24("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ jsx24("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ jsx24(
|
|
4347
4347
|
"video",
|
|
4348
4348
|
{
|
|
4349
4349
|
className: "h-catchup-activity-media-box-item rounded-catchup-xlarge",
|
|
@@ -4968,7 +4968,7 @@ var FillInTheBlanksActivityContent_default = FillInTheBlanksActivityContent;
|
|
|
4968
4968
|
import { useEffect as useEffect9, useRef as useRef4, useState as useState19 } from "react";
|
|
4969
4969
|
import { useDrop as useDrop3 } from "react-dnd";
|
|
4970
4970
|
import { InlineMath as InlineMath4 } from "react-katex";
|
|
4971
|
-
import { Fragment as
|
|
4971
|
+
import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4972
4972
|
var GroupingActivityMaterialContent = ({
|
|
4973
4973
|
uniqueValue,
|
|
4974
4974
|
answer,
|
|
@@ -5058,8 +5058,8 @@ var GroupingActivityMaterialContent = ({
|
|
|
5058
5058
|
};
|
|
5059
5059
|
const answerMap = retrieveAnswerMap();
|
|
5060
5060
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5061
|
-
return /* @__PURE__ */ jsxs19(
|
|
5062
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs19(
|
|
5061
|
+
return /* @__PURE__ */ jsxs19(Fragment3, { children: [
|
|
5062
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs19(Fragment3, { children: [
|
|
5063
5063
|
/* @__PURE__ */ jsx31("div", { className: "flex-1 flex flex-row gap-x-4 overflow-x-auto py-2", children: filteredMaterialList.map((materialValue, index) => {
|
|
5064
5064
|
return /* @__PURE__ */ jsx31(
|
|
5065
5065
|
DraggableItem_default,
|
|
@@ -5216,7 +5216,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5216
5216
|
var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
|
|
5217
5217
|
|
|
5218
5218
|
// src/components/activities/GroupingActivityContent.tsx
|
|
5219
|
-
import { Fragment as
|
|
5219
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5220
5220
|
var GroupingActivityContent = ({
|
|
5221
5221
|
answer,
|
|
5222
5222
|
data,
|
|
@@ -5241,7 +5241,7 @@ var GroupingActivityContent = ({
|
|
|
5241
5241
|
}
|
|
5242
5242
|
changeAnswer(answer2);
|
|
5243
5243
|
};
|
|
5244
|
-
return /* @__PURE__ */ jsxs20(
|
|
5244
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
5245
5245
|
/* @__PURE__ */ jsx32(
|
|
5246
5246
|
ActivityBodyContent_default,
|
|
5247
5247
|
{
|
|
@@ -5271,7 +5271,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
|
|
|
5271
5271
|
import { useEffect as useEffect10, useRef as useRef5, useState as useState20 } from "react";
|
|
5272
5272
|
import { useDrop as useDrop4 } from "react-dnd";
|
|
5273
5273
|
import { InlineMath as InlineMath5 } from "react-katex";
|
|
5274
|
-
import { Fragment as
|
|
5274
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5275
5275
|
var MatchingActivityMaterialContent = ({
|
|
5276
5276
|
uniqueValue,
|
|
5277
5277
|
answer,
|
|
@@ -5352,8 +5352,8 @@ var MatchingActivityMaterialContent = ({
|
|
|
5352
5352
|
};
|
|
5353
5353
|
const answerMap = retrieveAnswerMap();
|
|
5354
5354
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5355
|
-
return /* @__PURE__ */ jsxs21(
|
|
5356
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs21(
|
|
5355
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
5356
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
5357
5357
|
/* @__PURE__ */ jsx33(
|
|
5358
5358
|
"div",
|
|
5359
5359
|
{
|
|
@@ -5504,7 +5504,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5504
5504
|
var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
|
|
5505
5505
|
|
|
5506
5506
|
// src/components/activities/MatchingActivityContent.tsx
|
|
5507
|
-
import { Fragment as
|
|
5507
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5508
5508
|
var MatchingActivityContent = ({
|
|
5509
5509
|
answer,
|
|
5510
5510
|
data,
|
|
@@ -5525,7 +5525,7 @@ var MatchingActivityContent = ({
|
|
|
5525
5525
|
answerMap[key] = value;
|
|
5526
5526
|
changeAnswer(answer2);
|
|
5527
5527
|
};
|
|
5528
|
-
return /* @__PURE__ */ jsxs22(
|
|
5528
|
+
return /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
5529
5529
|
/* @__PURE__ */ jsx34(
|
|
5530
5530
|
ActivityBodyContent_default,
|
|
5531
5531
|
{
|
|
@@ -5882,7 +5882,7 @@ var retrieveDocumentTypeFromExtension = (format) => {
|
|
|
5882
5882
|
};
|
|
5883
5883
|
|
|
5884
5884
|
// src/components/activities/material-contents/OpenEndedActivityMaterialContent.tsx
|
|
5885
|
-
import { Fragment as
|
|
5885
|
+
import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5886
5886
|
var OpenEndedActivityMaterialContent = ({
|
|
5887
5887
|
answer,
|
|
5888
5888
|
contentMap,
|
|
@@ -5954,7 +5954,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5954
5954
|
const answerMapAnswer = answerMap2["ANSWER"];
|
|
5955
5955
|
const extension = answerMapAnswer.split(".").pop();
|
|
5956
5956
|
const documentType = retrieveDocumentTypeFromExtension(extension);
|
|
5957
|
-
return /* @__PURE__ */ jsx39(
|
|
5957
|
+
return /* @__PURE__ */ jsx39(Fragment7, { children: documentType === "IMAGE" ? /* @__PURE__ */ jsx39("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx39(
|
|
5958
5958
|
BaseImage_default,
|
|
5959
5959
|
{
|
|
5960
5960
|
src: answerMapAnswer,
|
|
@@ -5978,7 +5978,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5978
5978
|
) });
|
|
5979
5979
|
};
|
|
5980
5980
|
const answerMap = retrieveAnswerMap();
|
|
5981
|
-
return /* @__PURE__ */ jsx39(
|
|
5981
|
+
return /* @__PURE__ */ jsx39(Fragment7, { children: /* @__PURE__ */ jsxs27("div", { className: "", children: [
|
|
5982
5982
|
/* @__PURE__ */ jsx39("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx39("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
|
|
5983
5983
|
/* @__PURE__ */ jsx39("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx39(DividerLine_default, {}) }),
|
|
5984
5984
|
contentMap.type === "TEXT" ? RenderTextContent(answerMap) : contentMap.type === "IMAGE" ? RenderImageContent(answerMap) : contentMap.type === "AUDIO" ? RenderAudioContent(answerMap) : null
|
|
@@ -5987,7 +5987,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5987
5987
|
var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
|
|
5988
5988
|
|
|
5989
5989
|
// src/components/activities/OpenEndedActivityContent.tsx
|
|
5990
|
-
import { Fragment as
|
|
5990
|
+
import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5991
5991
|
var OpenEndedActivityContent = ({
|
|
5992
5992
|
answer,
|
|
5993
5993
|
data,
|
|
@@ -6022,7 +6022,7 @@ var OpenEndedActivityContent = ({
|
|
|
6022
6022
|
)
|
|
6023
6023
|
}
|
|
6024
6024
|
),
|
|
6025
|
-
showMaterialContent ? /* @__PURE__ */ jsxs28(
|
|
6025
|
+
showMaterialContent ? /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
6026
6026
|
/* @__PURE__ */ jsx40(
|
|
6027
6027
|
"div",
|
|
6028
6028
|
{
|
|
@@ -6205,9 +6205,9 @@ var OrderingActivityMaterialContent = ({
|
|
|
6205
6205
|
if (index === 0) {
|
|
6206
6206
|
return 0;
|
|
6207
6207
|
} else if (index === 1) {
|
|
6208
|
-
return
|
|
6208
|
+
return 65;
|
|
6209
6209
|
} else if (index % 2 === 0) {
|
|
6210
|
-
return -
|
|
6210
|
+
return -65;
|
|
6211
6211
|
} else if (index % 2 === 1) {
|
|
6212
6212
|
return 0;
|
|
6213
6213
|
}
|
|
@@ -6290,7 +6290,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6290
6290
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
6291
6291
|
|
|
6292
6292
|
// src/components/activities/OrderingActivityContent.tsx
|
|
6293
|
-
import { Fragment as
|
|
6293
|
+
import { Fragment as Fragment9, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6294
6294
|
var OrderingActivityContent = ({
|
|
6295
6295
|
answer,
|
|
6296
6296
|
data,
|
|
@@ -6314,7 +6314,7 @@ var OrderingActivityContent = ({
|
|
|
6314
6314
|
answerMap[secondaryKey] = prevValue;
|
|
6315
6315
|
changeAnswer(answer2);
|
|
6316
6316
|
};
|
|
6317
|
-
return /* @__PURE__ */ jsxs30(
|
|
6317
|
+
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
6318
6318
|
/* @__PURE__ */ jsx43(
|
|
6319
6319
|
ActivityBodyContent_default,
|
|
6320
6320
|
{
|
|
@@ -6343,7 +6343,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
6343
6343
|
// src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx
|
|
6344
6344
|
import { useEffect as useEffect13, useState as useState23 } from "react";
|
|
6345
6345
|
import { InlineMath as InlineMath9 } from "react-katex";
|
|
6346
|
-
import { Fragment as
|
|
6346
|
+
import { Fragment as Fragment10, jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6347
6347
|
var TrueFalseActivityMaterialContent = ({
|
|
6348
6348
|
uniqueValue,
|
|
6349
6349
|
answer,
|
|
@@ -6465,7 +6465,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6465
6465
|
},
|
|
6466
6466
|
index
|
|
6467
6467
|
);
|
|
6468
|
-
}) }) : /* @__PURE__ */ jsxs31(
|
|
6468
|
+
}) }) : /* @__PURE__ */ jsxs31(Fragment10, { children: [
|
|
6469
6469
|
answerMap.trueList.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6470
6470
|
/* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("p", { children: item }) }),
|
|
6471
6471
|
/* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "underline", children: i18n_default.t("true") }) })
|
|
@@ -6715,7 +6715,7 @@ var SelectionBox = ({
|
|
|
6715
6715
|
var SelectionBox_default = SelectionBox;
|
|
6716
6716
|
|
|
6717
6717
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
6718
|
-
import { Fragment as
|
|
6718
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6719
6719
|
var ActivityPreviewByData = ({
|
|
6720
6720
|
data,
|
|
6721
6721
|
showType,
|
|
@@ -6774,7 +6774,7 @@ var ActivityPreviewByData = ({
|
|
|
6774
6774
|
if (!data) return;
|
|
6775
6775
|
const answer = constructAnswerBasedOnData(data);
|
|
6776
6776
|
return /* @__PURE__ */ jsxs36("div", { children: [
|
|
6777
|
-
showType ? /* @__PURE__ */ jsxs36(
|
|
6777
|
+
showType ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
6778
6778
|
/* @__PURE__ */ jsxs36("div", { className: "mb-4", children: [
|
|
6779
6779
|
showDescription ? /* @__PURE__ */ jsx49("div", { className: "my-2", children: /* @__PURE__ */ jsx49("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
6780
6780
|
/* @__PURE__ */ jsx49(
|
|
@@ -6933,7 +6933,7 @@ var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
|
6933
6933
|
|
|
6934
6934
|
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
6935
6935
|
import { useEffect as useEffect15, useState as useState25 } from "react";
|
|
6936
|
-
import { Fragment as
|
|
6936
|
+
import { Fragment as Fragment12, jsx as jsx50, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6937
6937
|
var ActivityPreviewByAnswerData = ({
|
|
6938
6938
|
data,
|
|
6939
6939
|
showType = true,
|
|
@@ -7069,7 +7069,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7069
7069
|
};
|
|
7070
7070
|
if (!data) return null;
|
|
7071
7071
|
return /* @__PURE__ */ jsxs37("div", { children: [
|
|
7072
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(
|
|
7072
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(Fragment12, { children: [
|
|
7073
7073
|
/* @__PURE__ */ jsxs37("div", { className: "mb-4", children: [
|
|
7074
7074
|
showDescription ? /* @__PURE__ */ jsx50("div", { className: "my-2", children: /* @__PURE__ */ jsx50("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7075
7075
|
/* @__PURE__ */ jsx50(
|
package/package.json
CHANGED
|
@@ -92,7 +92,7 @@ const ShowMaterialMediaByContentType = ({
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
return contentType === "IMAGE" ? (
|
|
95
|
-
|
|
95
|
+
<>
|
|
96
96
|
{RenderShowFullScreenItem()}
|
|
97
97
|
<div className="my-2">
|
|
98
98
|
<div className="h-full flex flex-row flex-wrap items-center">
|
|
@@ -139,7 +139,7 @@ const ShowMaterialMediaByContentType = ({
|
|
|
139
139
|
</div>
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
142
|
-
|
|
142
|
+
</>
|
|
143
143
|
) : contentType === "VIDEO" ? (
|
|
144
144
|
<div className="my-2">
|
|
145
145
|
<div className="h-full flex flex-row flex-wrap items-center">
|