catchup-library-web 1.2.12 → 1.2.13
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +57 -53
- package/dist/index.mjs +52 -49
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -66,6 +66,12 @@ interface IModalProps {
|
|
|
66
66
|
|
|
67
67
|
declare const BaseModal: ({ isOpen, size, onAfterOpen, onRequestClose, customSize, children, }: IModalProps) => react_jsx_runtime.JSX.Element;
|
|
68
68
|
|
|
69
|
+
interface IActivityBodyContentProps {
|
|
70
|
+
templateType: string;
|
|
71
|
+
bodyMap: any;
|
|
72
|
+
contentMap?: any;
|
|
73
|
+
answerMap?: any;
|
|
74
|
+
}
|
|
69
75
|
interface IOrderingActivityProps {
|
|
70
76
|
answer: any;
|
|
71
77
|
data: any;
|
|
@@ -161,6 +167,8 @@ interface IActivityPreviewByDataProps {
|
|
|
161
167
|
isFullScreen: boolean;
|
|
162
168
|
}
|
|
163
169
|
|
|
170
|
+
declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element;
|
|
171
|
+
|
|
164
172
|
declare const DropdownActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
|
|
165
173
|
|
|
166
174
|
declare const FillInTheBlanksActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -679,4 +687,4 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
679
687
|
value: string;
|
|
680
688
|
}[];
|
|
681
689
|
|
|
682
|
-
export { ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateLevenshteinDistance, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructInputWithSpecialExpressionList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTaxonomyGroupName, retrieveTaxonomyName, retrieveTaxonomyType, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
|
690
|
+
export { ActivityBodyContent, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateLevenshteinDistance, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructInputWithSpecialExpressionList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTaxonomyGroupName, retrieveTaxonomyName, retrieveTaxonomyType, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,12 @@ interface IModalProps {
|
|
|
66
66
|
|
|
67
67
|
declare const BaseModal: ({ isOpen, size, onAfterOpen, onRequestClose, customSize, children, }: IModalProps) => react_jsx_runtime.JSX.Element;
|
|
68
68
|
|
|
69
|
+
interface IActivityBodyContentProps {
|
|
70
|
+
templateType: string;
|
|
71
|
+
bodyMap: any;
|
|
72
|
+
contentMap?: any;
|
|
73
|
+
answerMap?: any;
|
|
74
|
+
}
|
|
69
75
|
interface IOrderingActivityProps {
|
|
70
76
|
answer: any;
|
|
71
77
|
data: any;
|
|
@@ -161,6 +167,8 @@ interface IActivityPreviewByDataProps {
|
|
|
161
167
|
isFullScreen: boolean;
|
|
162
168
|
}
|
|
163
169
|
|
|
170
|
+
declare const ActivityBodyContent: ({ templateType, bodyMap, contentMap, answerMap, }: IActivityBodyContentProps) => react_jsx_runtime.JSX.Element;
|
|
171
|
+
|
|
164
172
|
declare const DropdownActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IDropdownActivityProps) => react_jsx_runtime.JSX.Element;
|
|
165
173
|
|
|
166
174
|
declare const FillInTheBlanksActivityContent: ({ answer, data, canAnswerQuestion, changeAnswer, isPreview, showCorrectAnswer, isFullScreen, }: IFillInTheBlanksActivityProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -679,4 +687,4 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
679
687
|
value: string;
|
|
680
688
|
}[];
|
|
681
689
|
|
|
682
|
-
export { ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateLevenshteinDistance, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructInputWithSpecialExpressionList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTaxonomyGroupName, retrieveTaxonomyName, retrieveTaxonomyType, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
|
690
|
+
export { ActivityBodyContent, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateLevenshteinDistance, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructInputWithSpecialExpressionList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveMonthNameByIndex, retrieveOtherBadgeDTOList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTaxonomyGroupName, retrieveTaxonomyName, retrieveTaxonomyType, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.js
CHANGED
|
@@ -67,6 +67,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
67
67
|
// src/index.ts
|
|
68
68
|
var index_exports = {};
|
|
69
69
|
__export(index_exports, {
|
|
70
|
+
ActivityBodyContent: () => ActivityBodyContent_default,
|
|
70
71
|
ActivityPreviewByData: () => ActivityPreviewByData_default,
|
|
71
72
|
ActivitySolutionContent: () => ActivitySolutionContent_default,
|
|
72
73
|
ActivityTemplateLabel: () => ActivityTemplateLabel_default,
|
|
@@ -969,6 +970,10 @@ var BaseModal = ({
|
|
|
969
970
|
};
|
|
970
971
|
var BaseModal_default = BaseModal;
|
|
971
972
|
|
|
973
|
+
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
974
|
+
var import_react9 = require("react");
|
|
975
|
+
var import_react_modal2 = __toESM(require("react-modal"));
|
|
976
|
+
|
|
972
977
|
// src/utilization/CatchtivityUtilization.ts
|
|
973
978
|
var retrieveColorByScore = (score) => {
|
|
974
979
|
if (score <= 25) {
|
|
@@ -2864,25 +2869,9 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
|
|
|
2864
2869
|
return itemList;
|
|
2865
2870
|
};
|
|
2866
2871
|
|
|
2867
|
-
// src/components/dividers/DividerLine.tsx
|
|
2868
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2869
|
-
var DividerLine = () => {
|
|
2870
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
2871
|
-
};
|
|
2872
|
-
var DividerLine_default = DividerLine;
|
|
2873
|
-
|
|
2874
|
-
// src/components/dividers/VerticalDividerLine.tsx
|
|
2875
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
2876
|
-
var VerticalDividerLine = () => {
|
|
2877
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
|
|
2878
|
-
};
|
|
2879
|
-
var VerticalDividerLine_default = VerticalDividerLine;
|
|
2880
|
-
|
|
2881
2872
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
2882
|
-
var import_react9 = require("react");
|
|
2883
|
-
var import_react_modal2 = __toESM(require("react-modal"));
|
|
2884
2873
|
var import_react_katex = require("react-katex");
|
|
2885
|
-
var
|
|
2874
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2886
2875
|
var ShowBodyMediaByContentType = ({
|
|
2887
2876
|
index,
|
|
2888
2877
|
type,
|
|
@@ -2924,16 +2913,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
2924
2913
|
addition += 1;
|
|
2925
2914
|
}
|
|
2926
2915
|
valuePartList.push(
|
|
2927
|
-
/* @__PURE__ */ (0,
|
|
2916
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2928
2917
|
"span",
|
|
2929
2918
|
{
|
|
2930
2919
|
className: "text-xl whitespace-pre-wrap",
|
|
2931
2920
|
children: constructInputWithSpecialExpressionList(textValue).map(
|
|
2932
|
-
(inputPart, index2) => /* @__PURE__ */ (0,
|
|
2921
|
+
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2933
2922
|
"span",
|
|
2934
2923
|
{
|
|
2935
2924
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2936
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
2925
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2937
2926
|
},
|
|
2938
2927
|
index2
|
|
2939
2928
|
)
|
|
@@ -2947,17 +2936,17 @@ var ShowBodyMediaByContentType = ({
|
|
|
2947
2936
|
const secondIndex = subValue.indexOf(checkText) + checkText.length + textValue.length - addition;
|
|
2948
2937
|
currentIndex++;
|
|
2949
2938
|
valuePartList.push(
|
|
2950
|
-
/* @__PURE__ */ (0,
|
|
2939
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2951
2940
|
"span",
|
|
2952
2941
|
{
|
|
2953
2942
|
className: `text-xl font-bold whitespace-pre-wrap`,
|
|
2954
2943
|
children: constructInputWithSpecialExpressionList(
|
|
2955
2944
|
copyValue.substring(firstIndex + checkText.length, secondIndex)
|
|
2956
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
2945
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2957
2946
|
"span",
|
|
2958
2947
|
{
|
|
2959
2948
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2960
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
2949
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2961
2950
|
},
|
|
2962
2951
|
index2
|
|
2963
2952
|
))
|
|
@@ -2977,7 +2966,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2977
2966
|
if (textValue.trim() !== "") {
|
|
2978
2967
|
currentIndex++;
|
|
2979
2968
|
valuePartList.push(
|
|
2980
|
-
/* @__PURE__ */ (0,
|
|
2969
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
|
|
2981
2970
|
);
|
|
2982
2971
|
}
|
|
2983
2972
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -2988,8 +2977,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
2988
2977
|
);
|
|
2989
2978
|
currentIndex++;
|
|
2990
2979
|
valuePartList.push(
|
|
2991
|
-
/* @__PURE__ */ (0,
|
|
2992
|
-
/* @__PURE__ */ (0,
|
|
2980
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "relative w-[200px]", children: [
|
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2993
2982
|
BaseImage_default,
|
|
2994
2983
|
{
|
|
2995
2984
|
src: imageSource,
|
|
@@ -2998,7 +2987,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2998
2987
|
className: "rounded-catchup-xlarge"
|
|
2999
2988
|
}
|
|
3000
2989
|
),
|
|
3001
|
-
/* @__PURE__ */ (0,
|
|
2990
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3002
2991
|
"div",
|
|
3003
2992
|
{
|
|
3004
2993
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
@@ -3006,7 +2995,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3006
2995
|
setShowFullScreen(true);
|
|
3007
2996
|
setSelectedFullScreenItem(imageSource);
|
|
3008
2997
|
},
|
|
3009
|
-
children: /* @__PURE__ */ (0,
|
|
2998
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3010
2999
|
BaseImage_default,
|
|
3011
3000
|
{
|
|
3012
3001
|
src: "/icons/arrow-up.png",
|
|
@@ -3028,7 +3017,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3028
3017
|
if (textValue.trim() !== "") {
|
|
3029
3018
|
currentIndex++;
|
|
3030
3019
|
valuePartList.push(
|
|
3031
|
-
/* @__PURE__ */ (0,
|
|
3020
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
|
|
3032
3021
|
);
|
|
3033
3022
|
}
|
|
3034
3023
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -3039,7 +3028,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3039
3028
|
);
|
|
3040
3029
|
currentIndex++;
|
|
3041
3030
|
valuePartList.push(
|
|
3042
|
-
/* @__PURE__ */ (0,
|
|
3031
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3043
3032
|
"video",
|
|
3044
3033
|
{
|
|
3045
3034
|
src: videoSource,
|
|
@@ -3057,7 +3046,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3057
3046
|
if (textValue.trim() !== "") {
|
|
3058
3047
|
currentIndex++;
|
|
3059
3048
|
valuePartList.push(
|
|
3060
|
-
/* @__PURE__ */ (0,
|
|
3049
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
|
|
3061
3050
|
);
|
|
3062
3051
|
}
|
|
3063
3052
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -3068,7 +3057,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3068
3057
|
);
|
|
3069
3058
|
currentIndex++;
|
|
3070
3059
|
valuePartList.push(
|
|
3071
|
-
/* @__PURE__ */ (0,
|
|
3060
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3072
3061
|
"audio",
|
|
3073
3062
|
{
|
|
3074
3063
|
src: audioSource,
|
|
@@ -3094,9 +3083,9 @@ var ShowBodyMediaByContentType = ({
|
|
|
3094
3083
|
if (regexMatchImageText) {
|
|
3095
3084
|
const imageText = regexMatchImageText[1];
|
|
3096
3085
|
valuePartList.push(
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3098
|
-
/* @__PURE__ */ (0,
|
|
3099
|
-
/* @__PURE__ */ (0,
|
|
3086
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
|
|
3087
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
|
|
3088
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3100
3089
|
"span",
|
|
3101
3090
|
{
|
|
3102
3091
|
className: "text-xl whitespace-pre-wrap ",
|
|
@@ -3108,16 +3097,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
3108
3097
|
);
|
|
3109
3098
|
} else {
|
|
3110
3099
|
valuePartList.push(
|
|
3111
|
-
/* @__PURE__ */ (0,
|
|
3100
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3112
3101
|
"span",
|
|
3113
3102
|
{
|
|
3114
3103
|
className: "text-xl whitespace-pre-wrap",
|
|
3115
3104
|
children: constructInputWithSpecialExpressionList(copyValue).map(
|
|
3116
|
-
(inputPart, index2) => /* @__PURE__ */ (0,
|
|
3105
|
+
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3117
3106
|
"span",
|
|
3118
3107
|
{
|
|
3119
3108
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3120
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
3109
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3121
3110
|
},
|
|
3122
3111
|
index2
|
|
3123
3112
|
)
|
|
@@ -3131,7 +3120,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3131
3120
|
return valuePartList;
|
|
3132
3121
|
};
|
|
3133
3122
|
const RenderShowFullScreenItem = () => {
|
|
3134
|
-
return /* @__PURE__ */ (0,
|
|
3123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3135
3124
|
import_react_modal2.default,
|
|
3136
3125
|
{
|
|
3137
3126
|
isOpen: showFullScreen,
|
|
@@ -3162,8 +3151,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3162
3151
|
}
|
|
3163
3152
|
},
|
|
3164
3153
|
contentLabel: "",
|
|
3165
|
-
children: /* @__PURE__ */ (0,
|
|
3166
|
-
/* @__PURE__ */ (0,
|
|
3154
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex-1 flex flex-col", children: [
|
|
3155
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3167
3156
|
BaseImage_default,
|
|
3168
3157
|
{
|
|
3169
3158
|
src: "/icons/cross-red.png",
|
|
@@ -3175,7 +3164,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3175
3164
|
}
|
|
3176
3165
|
}
|
|
3177
3166
|
) }),
|
|
3178
|
-
/* @__PURE__ */ (0,
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3179
3168
|
BaseImage_default,
|
|
3180
3169
|
{
|
|
3181
3170
|
src: selectedFullScreenItem,
|
|
@@ -3190,14 +3179,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3190
3179
|
};
|
|
3191
3180
|
const RenderMainContent = () => {
|
|
3192
3181
|
if (type === "TEXT") {
|
|
3193
|
-
return /* @__PURE__ */ (0,
|
|
3182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: retrieveValueParts(value) }) });
|
|
3194
3183
|
} else if (type === "IMAGE") {
|
|
3195
|
-
return /* @__PURE__ */ (0,
|
|
3184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3196
3185
|
"div",
|
|
3197
3186
|
{
|
|
3198
3187
|
className: `${size ? `${convertToPercentage(size)}` : ""} rounded-catchup-xlarge relative`,
|
|
3199
3188
|
children: [
|
|
3200
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3201
3190
|
BaseImage_default,
|
|
3202
3191
|
{
|
|
3203
3192
|
src: value,
|
|
@@ -3206,7 +3195,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3206
3195
|
className: "w-full rounded-catchup-xlarge"
|
|
3207
3196
|
}
|
|
3208
3197
|
),
|
|
3209
|
-
/* @__PURE__ */ (0,
|
|
3198
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3210
3199
|
"div",
|
|
3211
3200
|
{
|
|
3212
3201
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
@@ -3214,7 +3203,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3214
3203
|
setShowFullScreen(true);
|
|
3215
3204
|
setSelectedFullScreenItem(value);
|
|
3216
3205
|
},
|
|
3217
|
-
children: /* @__PURE__ */ (0,
|
|
3206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3218
3207
|
BaseImage_default,
|
|
3219
3208
|
{
|
|
3220
3209
|
src: "/icons/arrow-up.png",
|
|
@@ -3229,7 +3218,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3229
3218
|
}
|
|
3230
3219
|
) });
|
|
3231
3220
|
} else if (type === "VIDEO") {
|
|
3232
|
-
return /* @__PURE__ */ (0,
|
|
3221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3233
3222
|
"video",
|
|
3234
3223
|
{
|
|
3235
3224
|
src: value,
|
|
@@ -3238,10 +3227,10 @@ var ShowBodyMediaByContentType = ({
|
|
|
3238
3227
|
}
|
|
3239
3228
|
) });
|
|
3240
3229
|
} else if (type === "AUDIO") {
|
|
3241
|
-
return /* @__PURE__ */ (0,
|
|
3230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
|
|
3242
3231
|
}
|
|
3243
3232
|
};
|
|
3244
|
-
return /* @__PURE__ */ (0,
|
|
3233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "w-full", children: [
|
|
3245
3234
|
RenderShowFullScreenItem(),
|
|
3246
3235
|
RenderMainContent()
|
|
3247
3236
|
] }, index);
|
|
@@ -3249,7 +3238,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3249
3238
|
var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
|
|
3250
3239
|
|
|
3251
3240
|
// src/components/activities/body-content/ActivityBodyContent.tsx
|
|
3252
|
-
var
|
|
3241
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3253
3242
|
var ActivityBodyContent = ({
|
|
3254
3243
|
templateType,
|
|
3255
3244
|
bodyMap,
|
|
@@ -3257,7 +3246,7 @@ var ActivityBodyContent = ({
|
|
|
3257
3246
|
answerMap
|
|
3258
3247
|
}) => {
|
|
3259
3248
|
let currentQQIndex = 0;
|
|
3260
|
-
return /* @__PURE__ */ (0,
|
|
3249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
|
|
3261
3250
|
const body = JSON.parse(bodyMap[key]);
|
|
3262
3251
|
if (templateType === "DROPDOWN") {
|
|
3263
3252
|
while (body.value.includes("@@")) {
|
|
@@ -3334,7 +3323,7 @@ var ActivityBodyContent = ({
|
|
|
3334
3323
|
currentQQIndex++;
|
|
3335
3324
|
}
|
|
3336
3325
|
}
|
|
3337
|
-
return /* @__PURE__ */ (0,
|
|
3326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3338
3327
|
ShowBodyMediaByContentType_default,
|
|
3339
3328
|
{
|
|
3340
3329
|
index,
|
|
@@ -3347,6 +3336,20 @@ var ActivityBodyContent = ({
|
|
|
3347
3336
|
};
|
|
3348
3337
|
var ActivityBodyContent_default = ActivityBodyContent;
|
|
3349
3338
|
|
|
3339
|
+
// src/components/dividers/DividerLine.tsx
|
|
3340
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
3341
|
+
var DividerLine = () => {
|
|
3342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
3343
|
+
};
|
|
3344
|
+
var DividerLine_default = DividerLine;
|
|
3345
|
+
|
|
3346
|
+
// src/components/dividers/VerticalDividerLine.tsx
|
|
3347
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
3348
|
+
var VerticalDividerLine = () => {
|
|
3349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
|
|
3350
|
+
};
|
|
3351
|
+
var VerticalDividerLine_default = VerticalDividerLine;
|
|
3352
|
+
|
|
3350
3353
|
// src/components/activities/material-content/DropdownActivityMaterialContent.tsx
|
|
3351
3354
|
var import_react_katex2 = require("react-katex");
|
|
3352
3355
|
|
|
@@ -8844,6 +8847,7 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
8844
8847
|
};
|
|
8845
8848
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8846
8849
|
0 && (module.exports = {
|
|
8850
|
+
ActivityBodyContent,
|
|
8847
8851
|
ActivityPreviewByData,
|
|
8848
8852
|
ActivitySolutionContent,
|
|
8849
8853
|
ActivityTemplateLabel,
|
package/dist/index.mjs
CHANGED
|
@@ -785,6 +785,10 @@ var BaseModal = ({
|
|
|
785
785
|
};
|
|
786
786
|
var BaseModal_default = BaseModal;
|
|
787
787
|
|
|
788
|
+
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
789
|
+
import { useState as useState9 } from "react";
|
|
790
|
+
import Modal2 from "react-modal";
|
|
791
|
+
|
|
788
792
|
// src/utilization/CatchtivityUtilization.ts
|
|
789
793
|
var retrieveColorByScore = (score) => {
|
|
790
794
|
if (score <= 25) {
|
|
@@ -2680,25 +2684,9 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
|
|
|
2680
2684
|
return itemList;
|
|
2681
2685
|
};
|
|
2682
2686
|
|
|
2683
|
-
// src/components/dividers/DividerLine.tsx
|
|
2684
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
2685
|
-
var DividerLine = () => {
|
|
2686
|
-
return /* @__PURE__ */ jsx11("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
2687
|
-
};
|
|
2688
|
-
var DividerLine_default = DividerLine;
|
|
2689
|
-
|
|
2690
|
-
// src/components/dividers/VerticalDividerLine.tsx
|
|
2691
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2692
|
-
var VerticalDividerLine = () => {
|
|
2693
|
-
return /* @__PURE__ */ jsx12("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
|
|
2694
|
-
};
|
|
2695
|
-
var VerticalDividerLine_default = VerticalDividerLine;
|
|
2696
|
-
|
|
2697
2687
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
2698
|
-
import { useState as useState9 } from "react";
|
|
2699
|
-
import Modal2 from "react-modal";
|
|
2700
2688
|
import { InlineMath } from "react-katex";
|
|
2701
|
-
import { jsx as
|
|
2689
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2702
2690
|
var ShowBodyMediaByContentType = ({
|
|
2703
2691
|
index,
|
|
2704
2692
|
type,
|
|
@@ -2740,16 +2728,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
2740
2728
|
addition += 1;
|
|
2741
2729
|
}
|
|
2742
2730
|
valuePartList.push(
|
|
2743
|
-
/* @__PURE__ */
|
|
2731
|
+
/* @__PURE__ */ jsx11(
|
|
2744
2732
|
"span",
|
|
2745
2733
|
{
|
|
2746
2734
|
className: "text-xl whitespace-pre-wrap",
|
|
2747
2735
|
children: constructInputWithSpecialExpressionList(textValue).map(
|
|
2748
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
2736
|
+
(inputPart, index2) => /* @__PURE__ */ jsx11(
|
|
2749
2737
|
"span",
|
|
2750
2738
|
{
|
|
2751
2739
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2752
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
2740
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx11("span", { className: "text-2xl", children: /* @__PURE__ */ jsx11(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2753
2741
|
},
|
|
2754
2742
|
index2
|
|
2755
2743
|
)
|
|
@@ -2763,17 +2751,17 @@ var ShowBodyMediaByContentType = ({
|
|
|
2763
2751
|
const secondIndex = subValue.indexOf(checkText) + checkText.length + textValue.length - addition;
|
|
2764
2752
|
currentIndex++;
|
|
2765
2753
|
valuePartList.push(
|
|
2766
|
-
/* @__PURE__ */
|
|
2754
|
+
/* @__PURE__ */ jsx11(
|
|
2767
2755
|
"span",
|
|
2768
2756
|
{
|
|
2769
2757
|
className: `text-xl font-bold whitespace-pre-wrap`,
|
|
2770
2758
|
children: constructInputWithSpecialExpressionList(
|
|
2771
2759
|
copyValue.substring(firstIndex + checkText.length, secondIndex)
|
|
2772
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
2760
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx11(
|
|
2773
2761
|
"span",
|
|
2774
2762
|
{
|
|
2775
2763
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2776
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
2764
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx11("span", { className: "text-2xl", children: /* @__PURE__ */ jsx11(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2777
2765
|
},
|
|
2778
2766
|
index2
|
|
2779
2767
|
))
|
|
@@ -2793,7 +2781,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2793
2781
|
if (textValue.trim() !== "") {
|
|
2794
2782
|
currentIndex++;
|
|
2795
2783
|
valuePartList.push(
|
|
2796
|
-
/* @__PURE__ */
|
|
2784
|
+
/* @__PURE__ */ jsx11("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
|
|
2797
2785
|
);
|
|
2798
2786
|
}
|
|
2799
2787
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -2805,7 +2793,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2805
2793
|
currentIndex++;
|
|
2806
2794
|
valuePartList.push(
|
|
2807
2795
|
/* @__PURE__ */ jsxs8("div", { className: "relative w-[200px]", children: [
|
|
2808
|
-
/* @__PURE__ */
|
|
2796
|
+
/* @__PURE__ */ jsx11(
|
|
2809
2797
|
BaseImage_default,
|
|
2810
2798
|
{
|
|
2811
2799
|
src: imageSource,
|
|
@@ -2814,7 +2802,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2814
2802
|
className: "rounded-catchup-xlarge"
|
|
2815
2803
|
}
|
|
2816
2804
|
),
|
|
2817
|
-
/* @__PURE__ */
|
|
2805
|
+
/* @__PURE__ */ jsx11(
|
|
2818
2806
|
"div",
|
|
2819
2807
|
{
|
|
2820
2808
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
@@ -2822,7 +2810,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2822
2810
|
setShowFullScreen(true);
|
|
2823
2811
|
setSelectedFullScreenItem(imageSource);
|
|
2824
2812
|
},
|
|
2825
|
-
children: /* @__PURE__ */
|
|
2813
|
+
children: /* @__PURE__ */ jsx11(
|
|
2826
2814
|
BaseImage_default,
|
|
2827
2815
|
{
|
|
2828
2816
|
src: "/icons/arrow-up.png",
|
|
@@ -2844,7 +2832,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2844
2832
|
if (textValue.trim() !== "") {
|
|
2845
2833
|
currentIndex++;
|
|
2846
2834
|
valuePartList.push(
|
|
2847
|
-
/* @__PURE__ */
|
|
2835
|
+
/* @__PURE__ */ jsx11("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
|
|
2848
2836
|
);
|
|
2849
2837
|
}
|
|
2850
2838
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -2855,7 +2843,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2855
2843
|
);
|
|
2856
2844
|
currentIndex++;
|
|
2857
2845
|
valuePartList.push(
|
|
2858
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ jsx11(
|
|
2859
2847
|
"video",
|
|
2860
2848
|
{
|
|
2861
2849
|
src: videoSource,
|
|
@@ -2873,7 +2861,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2873
2861
|
if (textValue.trim() !== "") {
|
|
2874
2862
|
currentIndex++;
|
|
2875
2863
|
valuePartList.push(
|
|
2876
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx11("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
|
|
2877
2865
|
);
|
|
2878
2866
|
}
|
|
2879
2867
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -2884,7 +2872,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2884
2872
|
);
|
|
2885
2873
|
currentIndex++;
|
|
2886
2874
|
valuePartList.push(
|
|
2887
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ jsx11(
|
|
2888
2876
|
"audio",
|
|
2889
2877
|
{
|
|
2890
2878
|
src: audioSource,
|
|
@@ -2911,8 +2899,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
2911
2899
|
const imageText = regexMatchImageText[1];
|
|
2912
2900
|
valuePartList.push(
|
|
2913
2901
|
/* @__PURE__ */ jsxs8("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
|
|
2914
|
-
/* @__PURE__ */
|
|
2915
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsx11("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ jsx11("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
|
|
2903
|
+
/* @__PURE__ */ jsx11(
|
|
2916
2904
|
"span",
|
|
2917
2905
|
{
|
|
2918
2906
|
className: "text-xl whitespace-pre-wrap ",
|
|
@@ -2924,16 +2912,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
2924
2912
|
);
|
|
2925
2913
|
} else {
|
|
2926
2914
|
valuePartList.push(
|
|
2927
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ jsx11(
|
|
2928
2916
|
"span",
|
|
2929
2917
|
{
|
|
2930
2918
|
className: "text-xl whitespace-pre-wrap",
|
|
2931
2919
|
children: constructInputWithSpecialExpressionList(copyValue).map(
|
|
2932
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
2920
|
+
(inputPart, index2) => /* @__PURE__ */ jsx11(
|
|
2933
2921
|
"span",
|
|
2934
2922
|
{
|
|
2935
2923
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2936
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
2924
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx11("span", { className: "text-2xl", children: /* @__PURE__ */ jsx11(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2937
2925
|
},
|
|
2938
2926
|
index2
|
|
2939
2927
|
)
|
|
@@ -2947,7 +2935,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2947
2935
|
return valuePartList;
|
|
2948
2936
|
};
|
|
2949
2937
|
const RenderShowFullScreenItem = () => {
|
|
2950
|
-
return /* @__PURE__ */
|
|
2938
|
+
return /* @__PURE__ */ jsx11(
|
|
2951
2939
|
Modal2,
|
|
2952
2940
|
{
|
|
2953
2941
|
isOpen: showFullScreen,
|
|
@@ -2979,7 +2967,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2979
2967
|
},
|
|
2980
2968
|
contentLabel: "",
|
|
2981
2969
|
children: /* @__PURE__ */ jsxs8("div", { className: "flex-1 flex flex-col", children: [
|
|
2982
|
-
/* @__PURE__ */
|
|
2970
|
+
/* @__PURE__ */ jsx11("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx11(
|
|
2983
2971
|
BaseImage_default,
|
|
2984
2972
|
{
|
|
2985
2973
|
src: "/icons/cross-red.png",
|
|
@@ -2991,7 +2979,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2991
2979
|
}
|
|
2992
2980
|
}
|
|
2993
2981
|
) }),
|
|
2994
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ jsx11("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ jsx11(
|
|
2995
2983
|
BaseImage_default,
|
|
2996
2984
|
{
|
|
2997
2985
|
src: selectedFullScreenItem,
|
|
@@ -3006,14 +2994,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3006
2994
|
};
|
|
3007
2995
|
const RenderMainContent = () => {
|
|
3008
2996
|
if (type === "TEXT") {
|
|
3009
|
-
return /* @__PURE__ */
|
|
2997
|
+
return /* @__PURE__ */ jsx11("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ jsx11("span", { children: retrieveValueParts(value) }) });
|
|
3010
2998
|
} else if (type === "IMAGE") {
|
|
3011
|
-
return /* @__PURE__ */
|
|
2999
|
+
return /* @__PURE__ */ jsx11("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs8(
|
|
3012
3000
|
"div",
|
|
3013
3001
|
{
|
|
3014
3002
|
className: `${size ? `${convertToPercentage(size)}` : ""} rounded-catchup-xlarge relative`,
|
|
3015
3003
|
children: [
|
|
3016
|
-
/* @__PURE__ */
|
|
3004
|
+
/* @__PURE__ */ jsx11(
|
|
3017
3005
|
BaseImage_default,
|
|
3018
3006
|
{
|
|
3019
3007
|
src: value,
|
|
@@ -3022,7 +3010,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3022
3010
|
className: "w-full rounded-catchup-xlarge"
|
|
3023
3011
|
}
|
|
3024
3012
|
),
|
|
3025
|
-
/* @__PURE__ */
|
|
3013
|
+
/* @__PURE__ */ jsx11(
|
|
3026
3014
|
"div",
|
|
3027
3015
|
{
|
|
3028
3016
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
@@ -3030,7 +3018,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3030
3018
|
setShowFullScreen(true);
|
|
3031
3019
|
setSelectedFullScreenItem(value);
|
|
3032
3020
|
},
|
|
3033
|
-
children: /* @__PURE__ */
|
|
3021
|
+
children: /* @__PURE__ */ jsx11(
|
|
3034
3022
|
BaseImage_default,
|
|
3035
3023
|
{
|
|
3036
3024
|
src: "/icons/arrow-up.png",
|
|
@@ -3045,7 +3033,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3045
3033
|
}
|
|
3046
3034
|
) });
|
|
3047
3035
|
} else if (type === "VIDEO") {
|
|
3048
|
-
return /* @__PURE__ */
|
|
3036
|
+
return /* @__PURE__ */ jsx11("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx11(
|
|
3049
3037
|
"video",
|
|
3050
3038
|
{
|
|
3051
3039
|
src: value,
|
|
@@ -3054,7 +3042,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3054
3042
|
}
|
|
3055
3043
|
) });
|
|
3056
3044
|
} else if (type === "AUDIO") {
|
|
3057
|
-
return /* @__PURE__ */
|
|
3045
|
+
return /* @__PURE__ */ jsx11("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx11("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
|
|
3058
3046
|
}
|
|
3059
3047
|
};
|
|
3060
3048
|
return /* @__PURE__ */ jsxs8("div", { className: "w-full", children: [
|
|
@@ -3065,7 +3053,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3065
3053
|
var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
|
|
3066
3054
|
|
|
3067
3055
|
// src/components/activities/body-content/ActivityBodyContent.tsx
|
|
3068
|
-
import { jsx as
|
|
3056
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
3069
3057
|
var ActivityBodyContent = ({
|
|
3070
3058
|
templateType,
|
|
3071
3059
|
bodyMap,
|
|
@@ -3073,7 +3061,7 @@ var ActivityBodyContent = ({
|
|
|
3073
3061
|
answerMap
|
|
3074
3062
|
}) => {
|
|
3075
3063
|
let currentQQIndex = 0;
|
|
3076
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ jsx12("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
|
|
3077
3065
|
const body = JSON.parse(bodyMap[key]);
|
|
3078
3066
|
if (templateType === "DROPDOWN") {
|
|
3079
3067
|
while (body.value.includes("@@")) {
|
|
@@ -3150,7 +3138,7 @@ var ActivityBodyContent = ({
|
|
|
3150
3138
|
currentQQIndex++;
|
|
3151
3139
|
}
|
|
3152
3140
|
}
|
|
3153
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ jsx12(
|
|
3154
3142
|
ShowBodyMediaByContentType_default,
|
|
3155
3143
|
{
|
|
3156
3144
|
index,
|
|
@@ -3163,6 +3151,20 @@ var ActivityBodyContent = ({
|
|
|
3163
3151
|
};
|
|
3164
3152
|
var ActivityBodyContent_default = ActivityBodyContent;
|
|
3165
3153
|
|
|
3154
|
+
// src/components/dividers/DividerLine.tsx
|
|
3155
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3156
|
+
var DividerLine = () => {
|
|
3157
|
+
return /* @__PURE__ */ jsx13("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
3158
|
+
};
|
|
3159
|
+
var DividerLine_default = DividerLine;
|
|
3160
|
+
|
|
3161
|
+
// src/components/dividers/VerticalDividerLine.tsx
|
|
3162
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
3163
|
+
var VerticalDividerLine = () => {
|
|
3164
|
+
return /* @__PURE__ */ jsx14("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
|
|
3165
|
+
};
|
|
3166
|
+
var VerticalDividerLine_default = VerticalDividerLine;
|
|
3167
|
+
|
|
3166
3168
|
// src/components/activities/material-content/DropdownActivityMaterialContent.tsx
|
|
3167
3169
|
import { InlineMath as InlineMath2 } from "react-katex";
|
|
3168
3170
|
|
|
@@ -8659,6 +8661,7 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
8659
8661
|
];
|
|
8660
8662
|
};
|
|
8661
8663
|
export {
|
|
8664
|
+
ActivityBodyContent_default as ActivityBodyContent,
|
|
8662
8665
|
ActivityPreviewByData_default as ActivityPreviewByData,
|
|
8663
8666
|
ActivitySolutionContent_default as ActivitySolutionContent,
|
|
8664
8667
|
ActivityTemplateLabel_default as ActivityTemplateLabel,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { default as BaseLoadingWithText } from "./components/loading/BaseLoading
|
|
|
12
12
|
|
|
13
13
|
export { default as BaseModal } from "./components/modals/BaseModal";
|
|
14
14
|
|
|
15
|
+
export { default as ActivityBodyContent } from "./components/activities/body-content/ActivityBodyContent";
|
|
15
16
|
export { default as DropdownActivityContent } from "./components/activities/DropdownActivityContent";
|
|
16
17
|
export { default as FillInTheBlanksActivityContent } from "./components/activities/FillInTheBlanksActivityContent";
|
|
17
18
|
export { default as GroupingActivityContent } from "./components/activities/GroupingActivityContent";
|