catchup-library-web 1.2.11 → 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 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,
@@ -331,6 +332,9 @@ var BaseImage = (props) => {
331
332
  } else if (size === "3xlarge") {
332
333
  currentWidthClassName = "w-16";
333
334
  currentHeightClassName = "h-16";
335
+ } else if (size === "4xlarge") {
336
+ currentWidthClassName = "w-20";
337
+ currentHeightClassName = "h-20";
334
338
  } else if (size === "custom") {
335
339
  currentClassName = className;
336
340
  currentWidthClassName = widthClassName;
@@ -966,6 +970,10 @@ var BaseModal = ({
966
970
  };
967
971
  var BaseModal_default = BaseModal;
968
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
+
969
977
  // src/utilization/CatchtivityUtilization.ts
970
978
  var retrieveColorByScore = (score) => {
971
979
  if (score <= 25) {
@@ -2861,25 +2869,9 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
2861
2869
  return itemList;
2862
2870
  };
2863
2871
 
2864
- // src/components/dividers/DividerLine.tsx
2865
- var import_jsx_runtime11 = require("react/jsx-runtime");
2866
- var DividerLine = () => {
2867
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
2868
- };
2869
- var DividerLine_default = DividerLine;
2870
-
2871
- // src/components/dividers/VerticalDividerLine.tsx
2872
- var import_jsx_runtime12 = require("react/jsx-runtime");
2873
- var VerticalDividerLine = () => {
2874
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
2875
- };
2876
- var VerticalDividerLine_default = VerticalDividerLine;
2877
-
2878
2872
  // src/components/activities/body-content/ShowBodyMediaByContentType.tsx
2879
- var import_react9 = require("react");
2880
- var import_react_modal2 = __toESM(require("react-modal"));
2881
2873
  var import_react_katex = require("react-katex");
2882
- var import_jsx_runtime13 = require("react/jsx-runtime");
2874
+ var import_jsx_runtime11 = require("react/jsx-runtime");
2883
2875
  var ShowBodyMediaByContentType = ({
2884
2876
  index,
2885
2877
  type,
@@ -2921,16 +2913,16 @@ var ShowBodyMediaByContentType = ({
2921
2913
  addition += 1;
2922
2914
  }
2923
2915
  valuePartList.push(
2924
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2916
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2925
2917
  "span",
2926
2918
  {
2927
2919
  className: "text-xl whitespace-pre-wrap",
2928
2920
  children: constructInputWithSpecialExpressionList(textValue).map(
2929
- (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2921
+ (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2930
2922
  "span",
2931
2923
  {
2932
2924
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2933
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
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
2934
2926
  },
2935
2927
  index2
2936
2928
  )
@@ -2944,17 +2936,17 @@ var ShowBodyMediaByContentType = ({
2944
2936
  const secondIndex = subValue.indexOf(checkText) + checkText.length + textValue.length - addition;
2945
2937
  currentIndex++;
2946
2938
  valuePartList.push(
2947
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2939
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2948
2940
  "span",
2949
2941
  {
2950
2942
  className: `text-xl font-bold whitespace-pre-wrap`,
2951
2943
  children: constructInputWithSpecialExpressionList(
2952
2944
  copyValue.substring(firstIndex + checkText.length, secondIndex)
2953
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2945
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2954
2946
  "span",
2955
2947
  {
2956
2948
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2957
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
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
2958
2950
  },
2959
2951
  index2
2960
2952
  ))
@@ -2974,7 +2966,7 @@ var ShowBodyMediaByContentType = ({
2974
2966
  if (textValue.trim() !== "") {
2975
2967
  currentIndex++;
2976
2968
  valuePartList.push(
2977
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
2969
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
2978
2970
  );
2979
2971
  }
2980
2972
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2985,8 +2977,8 @@ var ShowBodyMediaByContentType = ({
2985
2977
  );
2986
2978
  currentIndex++;
2987
2979
  valuePartList.push(
2988
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "relative w-[200px]", children: [
2989
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2980
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "relative w-[200px]", children: [
2981
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2990
2982
  BaseImage_default,
2991
2983
  {
2992
2984
  src: imageSource,
@@ -2995,7 +2987,7 @@ var ShowBodyMediaByContentType = ({
2995
2987
  className: "rounded-catchup-xlarge"
2996
2988
  }
2997
2989
  ),
2998
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2990
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2999
2991
  "div",
3000
2992
  {
3001
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",
@@ -3003,7 +2995,7 @@ var ShowBodyMediaByContentType = ({
3003
2995
  setShowFullScreen(true);
3004
2996
  setSelectedFullScreenItem(imageSource);
3005
2997
  },
3006
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2998
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3007
2999
  BaseImage_default,
3008
3000
  {
3009
3001
  src: "/icons/arrow-up.png",
@@ -3025,7 +3017,7 @@ var ShowBodyMediaByContentType = ({
3025
3017
  if (textValue.trim() !== "") {
3026
3018
  currentIndex++;
3027
3019
  valuePartList.push(
3028
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
3020
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
3029
3021
  );
3030
3022
  }
3031
3023
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -3036,7 +3028,7 @@ var ShowBodyMediaByContentType = ({
3036
3028
  );
3037
3029
  currentIndex++;
3038
3030
  valuePartList.push(
3039
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3031
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3040
3032
  "video",
3041
3033
  {
3042
3034
  src: videoSource,
@@ -3054,7 +3046,7 @@ var ShowBodyMediaByContentType = ({
3054
3046
  if (textValue.trim() !== "") {
3055
3047
  currentIndex++;
3056
3048
  valuePartList.push(
3057
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
3049
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
3058
3050
  );
3059
3051
  }
3060
3052
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -3065,7 +3057,7 @@ var ShowBodyMediaByContentType = ({
3065
3057
  );
3066
3058
  currentIndex++;
3067
3059
  valuePartList.push(
3068
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3060
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3069
3061
  "audio",
3070
3062
  {
3071
3063
  src: audioSource,
@@ -3091,9 +3083,9 @@ var ShowBodyMediaByContentType = ({
3091
3083
  if (regexMatchImageText) {
3092
3084
  const imageText = regexMatchImageText[1];
3093
3085
  valuePartList.push(
3094
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
3095
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
3096
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
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)(
3097
3089
  "span",
3098
3090
  {
3099
3091
  className: "text-xl whitespace-pre-wrap ",
@@ -3105,16 +3097,16 @@ var ShowBodyMediaByContentType = ({
3105
3097
  );
3106
3098
  } else {
3107
3099
  valuePartList.push(
3108
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3100
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3109
3101
  "span",
3110
3102
  {
3111
3103
  className: "text-xl whitespace-pre-wrap",
3112
3104
  children: constructInputWithSpecialExpressionList(copyValue).map(
3113
- (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3105
+ (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3114
3106
  "span",
3115
3107
  {
3116
3108
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3117
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
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
3118
3110
  },
3119
3111
  index2
3120
3112
  )
@@ -3128,7 +3120,7 @@ var ShowBodyMediaByContentType = ({
3128
3120
  return valuePartList;
3129
3121
  };
3130
3122
  const RenderShowFullScreenItem = () => {
3131
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3123
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3132
3124
  import_react_modal2.default,
3133
3125
  {
3134
3126
  isOpen: showFullScreen,
@@ -3159,8 +3151,8 @@ var ShowBodyMediaByContentType = ({
3159
3151
  }
3160
3152
  },
3161
3153
  contentLabel: "",
3162
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex-1 flex flex-col", children: [
3163
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
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)(
3164
3156
  BaseImage_default,
3165
3157
  {
3166
3158
  src: "/icons/cross-red.png",
@@ -3172,7 +3164,7 @@ var ShowBodyMediaByContentType = ({
3172
3164
  }
3173
3165
  }
3174
3166
  ) }),
3175
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3167
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3176
3168
  BaseImage_default,
3177
3169
  {
3178
3170
  src: selectedFullScreenItem,
@@ -3187,14 +3179,14 @@ var ShowBodyMediaByContentType = ({
3187
3179
  };
3188
3180
  const RenderMainContent = () => {
3189
3181
  if (type === "TEXT") {
3190
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: retrieveValueParts(value) }) });
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) }) });
3191
3183
  } else if (type === "IMAGE") {
3192
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
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)(
3193
3185
  "div",
3194
3186
  {
3195
3187
  className: `${size ? `${convertToPercentage(size)}` : ""} rounded-catchup-xlarge relative`,
3196
3188
  children: [
3197
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3189
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3198
3190
  BaseImage_default,
3199
3191
  {
3200
3192
  src: value,
@@ -3203,7 +3195,7 @@ var ShowBodyMediaByContentType = ({
3203
3195
  className: "w-full rounded-catchup-xlarge"
3204
3196
  }
3205
3197
  ),
3206
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3198
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3207
3199
  "div",
3208
3200
  {
3209
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",
@@ -3211,7 +3203,7 @@ var ShowBodyMediaByContentType = ({
3211
3203
  setShowFullScreen(true);
3212
3204
  setSelectedFullScreenItem(value);
3213
3205
  },
3214
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3206
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3215
3207
  BaseImage_default,
3216
3208
  {
3217
3209
  src: "/icons/arrow-up.png",
@@ -3226,7 +3218,7 @@ var ShowBodyMediaByContentType = ({
3226
3218
  }
3227
3219
  ) });
3228
3220
  } else if (type === "VIDEO") {
3229
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3221
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3230
3222
  "video",
3231
3223
  {
3232
3224
  src: value,
@@ -3235,10 +3227,10 @@ var ShowBodyMediaByContentType = ({
3235
3227
  }
3236
3228
  ) });
3237
3229
  } else if (type === "AUDIO") {
3238
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
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` }) });
3239
3231
  }
3240
3232
  };
3241
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "w-full", children: [
3233
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "w-full", children: [
3242
3234
  RenderShowFullScreenItem(),
3243
3235
  RenderMainContent()
3244
3236
  ] }, index);
@@ -3246,7 +3238,7 @@ var ShowBodyMediaByContentType = ({
3246
3238
  var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
3247
3239
 
3248
3240
  // src/components/activities/body-content/ActivityBodyContent.tsx
3249
- var import_jsx_runtime14 = require("react/jsx-runtime");
3241
+ var import_jsx_runtime12 = require("react/jsx-runtime");
3250
3242
  var ActivityBodyContent = ({
3251
3243
  templateType,
3252
3244
  bodyMap,
@@ -3254,7 +3246,7 @@ var ActivityBodyContent = ({
3254
3246
  answerMap
3255
3247
  }) => {
3256
3248
  let currentQQIndex = 0;
3257
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
3249
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
3258
3250
  const body = JSON.parse(bodyMap[key]);
3259
3251
  if (templateType === "DROPDOWN") {
3260
3252
  while (body.value.includes("@@")) {
@@ -3331,7 +3323,7 @@ var ActivityBodyContent = ({
3331
3323
  currentQQIndex++;
3332
3324
  }
3333
3325
  }
3334
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3326
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3335
3327
  ShowBodyMediaByContentType_default,
3336
3328
  {
3337
3329
  index,
@@ -3344,6 +3336,20 @@ var ActivityBodyContent = ({
3344
3336
  };
3345
3337
  var ActivityBodyContent_default = ActivityBodyContent;
3346
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
+
3347
3353
  // src/components/activities/material-content/DropdownActivityMaterialContent.tsx
3348
3354
  var import_react_katex2 = require("react-katex");
3349
3355
 
@@ -8841,6 +8847,7 @@ var retrieveTokenUsageSubTypeOptionList = () => {
8841
8847
  };
8842
8848
  // Annotate the CommonJS export names for ESM import in node:
8843
8849
  0 && (module.exports = {
8850
+ ActivityBodyContent,
8844
8851
  ActivityPreviewByData,
8845
8852
  ActivitySolutionContent,
8846
8853
  ActivityTemplateLabel,
package/dist/index.mjs CHANGED
@@ -147,6 +147,9 @@ var BaseImage = (props) => {
147
147
  } else if (size === "3xlarge") {
148
148
  currentWidthClassName = "w-16";
149
149
  currentHeightClassName = "h-16";
150
+ } else if (size === "4xlarge") {
151
+ currentWidthClassName = "w-20";
152
+ currentHeightClassName = "h-20";
150
153
  } else if (size === "custom") {
151
154
  currentClassName = className;
152
155
  currentWidthClassName = widthClassName;
@@ -782,6 +785,10 @@ var BaseModal = ({
782
785
  };
783
786
  var BaseModal_default = BaseModal;
784
787
 
788
+ // src/components/activities/body-content/ShowBodyMediaByContentType.tsx
789
+ import { useState as useState9 } from "react";
790
+ import Modal2 from "react-modal";
791
+
785
792
  // src/utilization/CatchtivityUtilization.ts
786
793
  var retrieveColorByScore = (score) => {
787
794
  if (score <= 25) {
@@ -2677,25 +2684,9 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
2677
2684
  return itemList;
2678
2685
  };
2679
2686
 
2680
- // src/components/dividers/DividerLine.tsx
2681
- import { jsx as jsx11 } from "react/jsx-runtime";
2682
- var DividerLine = () => {
2683
- return /* @__PURE__ */ jsx11("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
2684
- };
2685
- var DividerLine_default = DividerLine;
2686
-
2687
- // src/components/dividers/VerticalDividerLine.tsx
2688
- import { jsx as jsx12 } from "react/jsx-runtime";
2689
- var VerticalDividerLine = () => {
2690
- return /* @__PURE__ */ jsx12("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
2691
- };
2692
- var VerticalDividerLine_default = VerticalDividerLine;
2693
-
2694
2687
  // src/components/activities/body-content/ShowBodyMediaByContentType.tsx
2695
- import { useState as useState9 } from "react";
2696
- import Modal2 from "react-modal";
2697
2688
  import { InlineMath } from "react-katex";
2698
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
2689
+ import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
2699
2690
  var ShowBodyMediaByContentType = ({
2700
2691
  index,
2701
2692
  type,
@@ -2737,16 +2728,16 @@ var ShowBodyMediaByContentType = ({
2737
2728
  addition += 1;
2738
2729
  }
2739
2730
  valuePartList.push(
2740
- /* @__PURE__ */ jsx13(
2731
+ /* @__PURE__ */ jsx11(
2741
2732
  "span",
2742
2733
  {
2743
2734
  className: "text-xl whitespace-pre-wrap",
2744
2735
  children: constructInputWithSpecialExpressionList(textValue).map(
2745
- (inputPart, index2) => /* @__PURE__ */ jsx13(
2736
+ (inputPart, index2) => /* @__PURE__ */ jsx11(
2746
2737
  "span",
2747
2738
  {
2748
2739
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2749
- children: inputPart.isEquation ? /* @__PURE__ */ jsx13("span", { className: "text-2xl", children: /* @__PURE__ */ jsx13(InlineMath, { math: inputPart.value }) }) : inputPart.value
2740
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx11("span", { className: "text-2xl", children: /* @__PURE__ */ jsx11(InlineMath, { math: inputPart.value }) }) : inputPart.value
2750
2741
  },
2751
2742
  index2
2752
2743
  )
@@ -2760,17 +2751,17 @@ var ShowBodyMediaByContentType = ({
2760
2751
  const secondIndex = subValue.indexOf(checkText) + checkText.length + textValue.length - addition;
2761
2752
  currentIndex++;
2762
2753
  valuePartList.push(
2763
- /* @__PURE__ */ jsx13(
2754
+ /* @__PURE__ */ jsx11(
2764
2755
  "span",
2765
2756
  {
2766
2757
  className: `text-xl font-bold whitespace-pre-wrap`,
2767
2758
  children: constructInputWithSpecialExpressionList(
2768
2759
  copyValue.substring(firstIndex + checkText.length, secondIndex)
2769
- ).map((inputPart, index2) => /* @__PURE__ */ jsx13(
2760
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx11(
2770
2761
  "span",
2771
2762
  {
2772
2763
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2773
- children: inputPart.isEquation ? /* @__PURE__ */ jsx13("span", { className: "text-2xl", children: /* @__PURE__ */ jsx13(InlineMath, { math: inputPart.value }) }) : inputPart.value
2764
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx11("span", { className: "text-2xl", children: /* @__PURE__ */ jsx11(InlineMath, { math: inputPart.value }) }) : inputPart.value
2774
2765
  },
2775
2766
  index2
2776
2767
  ))
@@ -2790,7 +2781,7 @@ var ShowBodyMediaByContentType = ({
2790
2781
  if (textValue.trim() !== "") {
2791
2782
  currentIndex++;
2792
2783
  valuePartList.push(
2793
- /* @__PURE__ */ jsx13("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
2784
+ /* @__PURE__ */ jsx11("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
2794
2785
  );
2795
2786
  }
2796
2787
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2802,7 +2793,7 @@ var ShowBodyMediaByContentType = ({
2802
2793
  currentIndex++;
2803
2794
  valuePartList.push(
2804
2795
  /* @__PURE__ */ jsxs8("div", { className: "relative w-[200px]", children: [
2805
- /* @__PURE__ */ jsx13(
2796
+ /* @__PURE__ */ jsx11(
2806
2797
  BaseImage_default,
2807
2798
  {
2808
2799
  src: imageSource,
@@ -2811,7 +2802,7 @@ var ShowBodyMediaByContentType = ({
2811
2802
  className: "rounded-catchup-xlarge"
2812
2803
  }
2813
2804
  ),
2814
- /* @__PURE__ */ jsx13(
2805
+ /* @__PURE__ */ jsx11(
2815
2806
  "div",
2816
2807
  {
2817
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",
@@ -2819,7 +2810,7 @@ var ShowBodyMediaByContentType = ({
2819
2810
  setShowFullScreen(true);
2820
2811
  setSelectedFullScreenItem(imageSource);
2821
2812
  },
2822
- children: /* @__PURE__ */ jsx13(
2813
+ children: /* @__PURE__ */ jsx11(
2823
2814
  BaseImage_default,
2824
2815
  {
2825
2816
  src: "/icons/arrow-up.png",
@@ -2841,7 +2832,7 @@ var ShowBodyMediaByContentType = ({
2841
2832
  if (textValue.trim() !== "") {
2842
2833
  currentIndex++;
2843
2834
  valuePartList.push(
2844
- /* @__PURE__ */ jsx13("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2835
+ /* @__PURE__ */ jsx11("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2845
2836
  );
2846
2837
  }
2847
2838
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2852,7 +2843,7 @@ var ShowBodyMediaByContentType = ({
2852
2843
  );
2853
2844
  currentIndex++;
2854
2845
  valuePartList.push(
2855
- /* @__PURE__ */ jsx13(
2846
+ /* @__PURE__ */ jsx11(
2856
2847
  "video",
2857
2848
  {
2858
2849
  src: videoSource,
@@ -2870,7 +2861,7 @@ var ShowBodyMediaByContentType = ({
2870
2861
  if (textValue.trim() !== "") {
2871
2862
  currentIndex++;
2872
2863
  valuePartList.push(
2873
- /* @__PURE__ */ jsx13("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2864
+ /* @__PURE__ */ jsx11("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2874
2865
  );
2875
2866
  }
2876
2867
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2881,7 +2872,7 @@ var ShowBodyMediaByContentType = ({
2881
2872
  );
2882
2873
  currentIndex++;
2883
2874
  valuePartList.push(
2884
- /* @__PURE__ */ jsx13(
2875
+ /* @__PURE__ */ jsx11(
2885
2876
  "audio",
2886
2877
  {
2887
2878
  src: audioSource,
@@ -2908,8 +2899,8 @@ var ShowBodyMediaByContentType = ({
2908
2899
  const imageText = regexMatchImageText[1];
2909
2900
  valuePartList.push(
2910
2901
  /* @__PURE__ */ jsxs8("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
2911
- /* @__PURE__ */ jsx13("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ jsx13("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
2912
- /* @__PURE__ */ jsx13(
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(
2913
2904
  "span",
2914
2905
  {
2915
2906
  className: "text-xl whitespace-pre-wrap ",
@@ -2921,16 +2912,16 @@ var ShowBodyMediaByContentType = ({
2921
2912
  );
2922
2913
  } else {
2923
2914
  valuePartList.push(
2924
- /* @__PURE__ */ jsx13(
2915
+ /* @__PURE__ */ jsx11(
2925
2916
  "span",
2926
2917
  {
2927
2918
  className: "text-xl whitespace-pre-wrap",
2928
2919
  children: constructInputWithSpecialExpressionList(copyValue).map(
2929
- (inputPart, index2) => /* @__PURE__ */ jsx13(
2920
+ (inputPart, index2) => /* @__PURE__ */ jsx11(
2930
2921
  "span",
2931
2922
  {
2932
2923
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2933
- children: inputPart.isEquation ? /* @__PURE__ */ jsx13("span", { className: "text-2xl", children: /* @__PURE__ */ jsx13(InlineMath, { math: inputPart.value }) }) : inputPart.value
2924
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx11("span", { className: "text-2xl", children: /* @__PURE__ */ jsx11(InlineMath, { math: inputPart.value }) }) : inputPart.value
2934
2925
  },
2935
2926
  index2
2936
2927
  )
@@ -2944,7 +2935,7 @@ var ShowBodyMediaByContentType = ({
2944
2935
  return valuePartList;
2945
2936
  };
2946
2937
  const RenderShowFullScreenItem = () => {
2947
- return /* @__PURE__ */ jsx13(
2938
+ return /* @__PURE__ */ jsx11(
2948
2939
  Modal2,
2949
2940
  {
2950
2941
  isOpen: showFullScreen,
@@ -2976,7 +2967,7 @@ var ShowBodyMediaByContentType = ({
2976
2967
  },
2977
2968
  contentLabel: "",
2978
2969
  children: /* @__PURE__ */ jsxs8("div", { className: "flex-1 flex flex-col", children: [
2979
- /* @__PURE__ */ jsx13("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx13(
2970
+ /* @__PURE__ */ jsx11("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx11(
2980
2971
  BaseImage_default,
2981
2972
  {
2982
2973
  src: "/icons/cross-red.png",
@@ -2988,7 +2979,7 @@ var ShowBodyMediaByContentType = ({
2988
2979
  }
2989
2980
  }
2990
2981
  ) }),
2991
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ jsx13(
2982
+ /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ jsx11(
2992
2983
  BaseImage_default,
2993
2984
  {
2994
2985
  src: selectedFullScreenItem,
@@ -3003,14 +2994,14 @@ var ShowBodyMediaByContentType = ({
3003
2994
  };
3004
2995
  const RenderMainContent = () => {
3005
2996
  if (type === "TEXT") {
3006
- return /* @__PURE__ */ jsx13("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ jsx13("span", { children: retrieveValueParts(value) }) });
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) }) });
3007
2998
  } else if (type === "IMAGE") {
3008
- return /* @__PURE__ */ jsx13("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs8(
2999
+ return /* @__PURE__ */ jsx11("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs8(
3009
3000
  "div",
3010
3001
  {
3011
3002
  className: `${size ? `${convertToPercentage(size)}` : ""} rounded-catchup-xlarge relative`,
3012
3003
  children: [
3013
- /* @__PURE__ */ jsx13(
3004
+ /* @__PURE__ */ jsx11(
3014
3005
  BaseImage_default,
3015
3006
  {
3016
3007
  src: value,
@@ -3019,7 +3010,7 @@ var ShowBodyMediaByContentType = ({
3019
3010
  className: "w-full rounded-catchup-xlarge"
3020
3011
  }
3021
3012
  ),
3022
- /* @__PURE__ */ jsx13(
3013
+ /* @__PURE__ */ jsx11(
3023
3014
  "div",
3024
3015
  {
3025
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",
@@ -3027,7 +3018,7 @@ var ShowBodyMediaByContentType = ({
3027
3018
  setShowFullScreen(true);
3028
3019
  setSelectedFullScreenItem(value);
3029
3020
  },
3030
- children: /* @__PURE__ */ jsx13(
3021
+ children: /* @__PURE__ */ jsx11(
3031
3022
  BaseImage_default,
3032
3023
  {
3033
3024
  src: "/icons/arrow-up.png",
@@ -3042,7 +3033,7 @@ var ShowBodyMediaByContentType = ({
3042
3033
  }
3043
3034
  ) });
3044
3035
  } else if (type === "VIDEO") {
3045
- return /* @__PURE__ */ jsx13("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx13(
3036
+ return /* @__PURE__ */ jsx11("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx11(
3046
3037
  "video",
3047
3038
  {
3048
3039
  src: value,
@@ -3051,7 +3042,7 @@ var ShowBodyMediaByContentType = ({
3051
3042
  }
3052
3043
  ) });
3053
3044
  } else if (type === "AUDIO") {
3054
- return /* @__PURE__ */ jsx13("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx13("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
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` }) });
3055
3046
  }
3056
3047
  };
3057
3048
  return /* @__PURE__ */ jsxs8("div", { className: "w-full", children: [
@@ -3062,7 +3053,7 @@ var ShowBodyMediaByContentType = ({
3062
3053
  var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
3063
3054
 
3064
3055
  // src/components/activities/body-content/ActivityBodyContent.tsx
3065
- import { jsx as jsx14 } from "react/jsx-runtime";
3056
+ import { jsx as jsx12 } from "react/jsx-runtime";
3066
3057
  var ActivityBodyContent = ({
3067
3058
  templateType,
3068
3059
  bodyMap,
@@ -3070,7 +3061,7 @@ var ActivityBodyContent = ({
3070
3061
  answerMap
3071
3062
  }) => {
3072
3063
  let currentQQIndex = 0;
3073
- return /* @__PURE__ */ jsx14("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
3064
+ return /* @__PURE__ */ jsx12("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
3074
3065
  const body = JSON.parse(bodyMap[key]);
3075
3066
  if (templateType === "DROPDOWN") {
3076
3067
  while (body.value.includes("@@")) {
@@ -3147,7 +3138,7 @@ var ActivityBodyContent = ({
3147
3138
  currentQQIndex++;
3148
3139
  }
3149
3140
  }
3150
- return /* @__PURE__ */ jsx14(
3141
+ return /* @__PURE__ */ jsx12(
3151
3142
  ShowBodyMediaByContentType_default,
3152
3143
  {
3153
3144
  index,
@@ -3160,6 +3151,20 @@ var ActivityBodyContent = ({
3160
3151
  };
3161
3152
  var ActivityBodyContent_default = ActivityBodyContent;
3162
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
+
3163
3168
  // src/components/activities/material-content/DropdownActivityMaterialContent.tsx
3164
3169
  import { InlineMath as InlineMath2 } from "react-katex";
3165
3170
 
@@ -8656,6 +8661,7 @@ var retrieveTokenUsageSubTypeOptionList = () => {
8656
8661
  ];
8657
8662
  };
8658
8663
  export {
8664
+ ActivityBodyContent_default as ActivityBodyContent,
8659
8665
  ActivityPreviewByData_default as ActivityPreviewByData,
8660
8666
  ActivitySolutionContent_default as ActivitySolutionContent,
8661
8667
  ActivityTemplateLabel_default as ActivityTemplateLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -60,6 +60,9 @@ const BaseImage = (props: IBaseImageProps) => {
60
60
  } else if (size === "3xlarge") {
61
61
  currentWidthClassName = "w-16";
62
62
  currentHeightClassName = "h-16";
63
+ } else if (size === "4xlarge") {
64
+ currentWidthClassName = "w-20";
65
+ currentHeightClassName = "h-20";
63
66
  } else if (size === "custom") {
64
67
  currentClassName = className;
65
68
  currentWidthClassName = widthClassName;
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";