catchup-library-web 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +29 -3
- package/dist/index.mjs +28 -3
- package/package.json +1 -1
- package/src/components/activities/material-content/MCMAActivityMaterialContent.tsx +2 -2
- package/src/components/activities/material-content/MCSAActivityMaterialContent.tsx +2 -2
- package/src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx +2 -2
- package/src/components/texts/InputWithSpecialExpression.tsx +57 -0
- package/src/index.ts +2 -0
- package/src/properties/TextProperties.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -306,6 +306,13 @@ interface IInfoWithText {
|
|
|
306
306
|
|
|
307
307
|
declare const InfoWithText: (props: IInfoWithText) => react_jsx_runtime.JSX.Element;
|
|
308
308
|
|
|
309
|
+
interface IInputWithSpecialExpressionProps {
|
|
310
|
+
value: string;
|
|
311
|
+
showSpecialOnly: boolean;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
declare const InputWithSpecialExpression: ({ value, showSpecialOnly, }: IInputWithSpecialExpressionProps) => react_jsx_runtime.JSX.Element | null;
|
|
315
|
+
|
|
309
316
|
declare const shuffleArray: (array: any) => any;
|
|
310
317
|
declare const getColorByIndex: (index: number) => string;
|
|
311
318
|
|
|
@@ -644,4 +651,4 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
644
651
|
value: string;
|
|
645
652
|
}[];
|
|
646
653
|
|
|
647
|
-
export { ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, 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 };
|
|
654
|
+
export { ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, 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
|
@@ -306,6 +306,13 @@ interface IInfoWithText {
|
|
|
306
306
|
|
|
307
307
|
declare const InfoWithText: (props: IInfoWithText) => react_jsx_runtime.JSX.Element;
|
|
308
308
|
|
|
309
|
+
interface IInputWithSpecialExpressionProps {
|
|
310
|
+
value: string;
|
|
311
|
+
showSpecialOnly: boolean;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
declare const InputWithSpecialExpression: ({ value, showSpecialOnly, }: IInputWithSpecialExpressionProps) => react_jsx_runtime.JSX.Element | null;
|
|
315
|
+
|
|
309
316
|
declare const shuffleArray: (array: any) => any;
|
|
310
317
|
declare const getColorByIndex: (index: number) => string;
|
|
311
318
|
|
|
@@ -644,4 +651,4 @@ declare const retrieveTokenUsageSubTypeOptionList: () => {
|
|
|
644
651
|
value: string;
|
|
645
652
|
}[];
|
|
646
653
|
|
|
647
|
-
export { ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, 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 };
|
|
654
|
+
export { ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BlueVerticalDividerLine, BrandLabel, CancelButton, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PersonalLabel, PrimaryButton, PublishingHouseLabel, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, THREE_MONTHS, TrueFalseActivityContent, VerticalDividerLine, 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
|
@@ -88,6 +88,7 @@ __export(index_exports, {
|
|
|
88
88
|
GroupingActivityContent: () => GroupingActivityContent_default,
|
|
89
89
|
InfoWithText: () => InfoWithText_default,
|
|
90
90
|
InputGroup: () => InputGroup_default,
|
|
91
|
+
InputWithSpecialExpression: () => InputWithSpecialExpression_default,
|
|
91
92
|
MCMAActivityContent: () => MCMAActivityContent_default,
|
|
92
93
|
MCSAActivityContent: () => MCSAActivityContent_default,
|
|
93
94
|
MatchingActivityContent: () => MatchingActivityContent_default,
|
|
@@ -5185,7 +5186,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5185
5186
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
5186
5187
|
"div",
|
|
5187
5188
|
{
|
|
5188
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5189
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5189
5190
|
onClick: () => {
|
|
5190
5191
|
onChange(answer, materialKey, materialSubKey);
|
|
5191
5192
|
},
|
|
@@ -5335,7 +5336,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5335
5336
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
5336
5337
|
"div",
|
|
5337
5338
|
{
|
|
5338
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5339
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5339
5340
|
onClick: () => {
|
|
5340
5341
|
onChange(answer, materialKey, materialSubKey);
|
|
5341
5342
|
},
|
|
@@ -5878,7 +5879,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5878
5879
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
5879
5880
|
"div",
|
|
5880
5881
|
{
|
|
5881
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5882
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5882
5883
|
children: [
|
|
5883
5884
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5884
5885
|
shuffleOption
|
|
@@ -6612,6 +6613,30 @@ var InfoWithText = (props) => {
|
|
|
6612
6613
|
};
|
|
6613
6614
|
var InfoWithText_default = InfoWithText;
|
|
6614
6615
|
|
|
6616
|
+
// src/components/texts/InputWithSpecialExpression.tsx
|
|
6617
|
+
var import_react_katex12 = require("react-katex");
|
|
6618
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6619
|
+
var InputWithSpecialExpression = ({
|
|
6620
|
+
value,
|
|
6621
|
+
showSpecialOnly
|
|
6622
|
+
}) => {
|
|
6623
|
+
const inputWithSpecialExpressionList = constructInputWithSpecialExpressionList(value);
|
|
6624
|
+
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6625
|
+
"span",
|
|
6626
|
+
{
|
|
6627
|
+
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6628
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-lg", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }, index) }) : inputPart.value
|
|
6629
|
+
}
|
|
6630
|
+
)) }) }) : null : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6631
|
+
"span",
|
|
6632
|
+
{
|
|
6633
|
+
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6634
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-lg", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }, index) }) : inputPart.value
|
|
6635
|
+
}
|
|
6636
|
+
)) }) });
|
|
6637
|
+
};
|
|
6638
|
+
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
6639
|
+
|
|
6615
6640
|
// src/utilization/AuthorizationUtilization.ts
|
|
6616
6641
|
var parseJwt = (token) => {
|
|
6617
6642
|
var base64Url = token.split(".")[1];
|
|
@@ -8727,6 +8752,7 @@ var retrieveTokenUsageSubTypeOptionList = () => {
|
|
|
8727
8752
|
GroupingActivityContent,
|
|
8728
8753
|
InfoWithText,
|
|
8729
8754
|
InputGroup,
|
|
8755
|
+
InputWithSpecialExpression,
|
|
8730
8756
|
MCMAActivityContent,
|
|
8731
8757
|
MCSAActivityContent,
|
|
8732
8758
|
MatchingActivityContent,
|
package/dist/index.mjs
CHANGED
|
@@ -5007,7 +5007,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5007
5007
|
return /* @__PURE__ */ jsxs20(
|
|
5008
5008
|
"div",
|
|
5009
5009
|
{
|
|
5010
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5010
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5011
5011
|
onClick: () => {
|
|
5012
5012
|
onChange(answer, materialKey, materialSubKey);
|
|
5013
5013
|
},
|
|
@@ -5157,7 +5157,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5157
5157
|
return /* @__PURE__ */ jsxs22(
|
|
5158
5158
|
"div",
|
|
5159
5159
|
{
|
|
5160
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5160
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5161
5161
|
onClick: () => {
|
|
5162
5162
|
onChange(answer, materialKey, materialSubKey);
|
|
5163
5163
|
},
|
|
@@ -5700,7 +5700,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5700
5700
|
return /* @__PURE__ */ jsxs28(
|
|
5701
5701
|
"div",
|
|
5702
5702
|
{
|
|
5703
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5703
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5704
5704
|
children: [
|
|
5705
5705
|
/* @__PURE__ */ jsx37("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx37("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5706
5706
|
shuffleOption
|
|
@@ -6434,6 +6434,30 @@ var InfoWithText = (props) => {
|
|
|
6434
6434
|
};
|
|
6435
6435
|
var InfoWithText_default = InfoWithText;
|
|
6436
6436
|
|
|
6437
|
+
// src/components/texts/InputWithSpecialExpression.tsx
|
|
6438
|
+
import { InlineMath as InlineMath12 } from "react-katex";
|
|
6439
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
6440
|
+
var InputWithSpecialExpression = ({
|
|
6441
|
+
value,
|
|
6442
|
+
showSpecialOnly
|
|
6443
|
+
}) => {
|
|
6444
|
+
const inputWithSpecialExpressionList = constructInputWithSpecialExpressionList(value);
|
|
6445
|
+
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ jsx54("div", { className: "m-2", children: /* @__PURE__ */ jsx54("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ jsx54(
|
|
6446
|
+
"span",
|
|
6447
|
+
{
|
|
6448
|
+
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6449
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx54("span", { className: "text-lg", children: /* @__PURE__ */ jsx54(InlineMath12, { math: inputPart.value }, index) }) : inputPart.value
|
|
6450
|
+
}
|
|
6451
|
+
)) }) }) : null : /* @__PURE__ */ jsx54("div", { className: "m-2", children: /* @__PURE__ */ jsx54("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ jsx54(
|
|
6452
|
+
"span",
|
|
6453
|
+
{
|
|
6454
|
+
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6455
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx54("span", { className: "text-lg", children: /* @__PURE__ */ jsx54(InlineMath12, { math: inputPart.value }, index) }) : inputPart.value
|
|
6456
|
+
}
|
|
6457
|
+
)) }) });
|
|
6458
|
+
};
|
|
6459
|
+
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
6460
|
+
|
|
6437
6461
|
// src/utilization/AuthorizationUtilization.ts
|
|
6438
6462
|
var parseJwt = (token) => {
|
|
6439
6463
|
var base64Url = token.split(".")[1];
|
|
@@ -8548,6 +8572,7 @@ export {
|
|
|
8548
8572
|
GroupingActivityContent_default as GroupingActivityContent,
|
|
8549
8573
|
InfoWithText_default as InfoWithText,
|
|
8550
8574
|
InputGroup_default as InputGroup,
|
|
8575
|
+
InputWithSpecialExpression_default as InputWithSpecialExpression,
|
|
8551
8576
|
MCMAActivityContent_default as MCMAActivityContent,
|
|
8552
8577
|
MCSAActivityContent_default as MCSAActivityContent,
|
|
8553
8578
|
MatchingActivityContent_default as MatchingActivityContent,
|
package/package.json
CHANGED
|
@@ -78,9 +78,9 @@ const MCMAActivityMaterialContent = ({
|
|
|
78
78
|
className={`w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${
|
|
79
79
|
(learnerAnswerState === "EMPTY" && foundIndex !== -1) ||
|
|
80
80
|
learnerAnswerState === "CORRECT"
|
|
81
|
-
? "border-2 border-catchup-green rounded-catchup-xlarge"
|
|
81
|
+
? "border-2 border-catchup-green rounded-catchup-xlarge p-2"
|
|
82
82
|
: learnerAnswerState === "INCORRECT"
|
|
83
|
-
? "border-2 border-catchup-red rounded-catchup-xlarge"
|
|
83
|
+
? "border-2 border-catchup-red rounded-catchup-xlarge p-2"
|
|
84
84
|
: ""
|
|
85
85
|
}`}
|
|
86
86
|
onClick={() => {
|
|
@@ -77,9 +77,9 @@ const MCSAActivityMaterialContent = ({
|
|
|
77
77
|
(learnerAnswerState === "EMPTY" &&
|
|
78
78
|
materialSubKey === correctAnswer) ||
|
|
79
79
|
learnerAnswerState === "CORRECT"
|
|
80
|
-
? "border-2 border-catchup-green rounded-catchup-xlarge"
|
|
80
|
+
? "border-2 border-catchup-green rounded-catchup-xlarge p-2"
|
|
81
81
|
: learnerAnswerState === "INCORRECT"
|
|
82
|
-
? "border-2 border-catchup-red rounded-catchup-xlarge"
|
|
82
|
+
? "border-2 border-catchup-red rounded-catchup-xlarge p-2"
|
|
83
83
|
: ""
|
|
84
84
|
}`}
|
|
85
85
|
onClick={() => {
|
|
@@ -111,9 +111,9 @@ const TrueFalseActivityMaterialContent = ({
|
|
|
111
111
|
key={index}
|
|
112
112
|
className={`w-full flex flex-row items-center justify-center cursor-pointer my-2 ${
|
|
113
113
|
learnerAnswerState === "CORRECT"
|
|
114
|
-
? "border-2 border-catchup-green rounded-catchup-xlarge"
|
|
114
|
+
? "border-2 border-catchup-green rounded-catchup-xlarge p-2"
|
|
115
115
|
: learnerAnswerState === "INCORRECT"
|
|
116
|
-
? "border-2 border-catchup-red rounded-catchup-xlarge"
|
|
116
|
+
? "border-2 border-catchup-red rounded-catchup-xlarge p-2"
|
|
117
117
|
: ""
|
|
118
118
|
}`}
|
|
119
119
|
>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { InlineMath } from "react-katex";
|
|
2
|
+
import { constructInputWithSpecialExpressionList } from "../../utilization/CatchtivityUtilization";
|
|
3
|
+
import { IInputWithSpecialExpressionProps } from "../../properties/TextProperties";
|
|
4
|
+
|
|
5
|
+
const InputWithSpecialExpression = ({
|
|
6
|
+
value,
|
|
7
|
+
showSpecialOnly,
|
|
8
|
+
}: IInputWithSpecialExpressionProps) => {
|
|
9
|
+
const inputWithSpecialExpressionList =
|
|
10
|
+
constructInputWithSpecialExpressionList(value);
|
|
11
|
+
|
|
12
|
+
return showSpecialOnly ? (
|
|
13
|
+
inputWithSpecialExpressionList.length > 1 ? (
|
|
14
|
+
<div className="m-2">
|
|
15
|
+
<span className="whitespace-pre-wrap">
|
|
16
|
+
{inputWithSpecialExpressionList.map((inputPart, index) => (
|
|
17
|
+
<span
|
|
18
|
+
className={`${inputPart.isBold ? "font-semibold" : ""} ${
|
|
19
|
+
inputPart.isUnderline ? "underline" : ""
|
|
20
|
+
}`}
|
|
21
|
+
>
|
|
22
|
+
{inputPart.isEquation ? (
|
|
23
|
+
<span className="text-lg">
|
|
24
|
+
<InlineMath key={index} math={inputPart.value} />
|
|
25
|
+
</span>
|
|
26
|
+
) : (
|
|
27
|
+
inputPart.value
|
|
28
|
+
)}
|
|
29
|
+
</span>
|
|
30
|
+
))}
|
|
31
|
+
</span>
|
|
32
|
+
</div>
|
|
33
|
+
) : null
|
|
34
|
+
) : (
|
|
35
|
+
<div className="m-2">
|
|
36
|
+
<span className="whitespace-pre-wrap">
|
|
37
|
+
{inputWithSpecialExpressionList.map((inputPart, index) => (
|
|
38
|
+
<span
|
|
39
|
+
className={`${inputPart.isBold ? "font-semibold" : ""} ${
|
|
40
|
+
inputPart.isUnderline ? "underline" : ""
|
|
41
|
+
}`}
|
|
42
|
+
>
|
|
43
|
+
{inputPart.isEquation ? (
|
|
44
|
+
<span className="text-lg">
|
|
45
|
+
<InlineMath key={index} math={inputPart.value} />
|
|
46
|
+
</span>
|
|
47
|
+
) : (
|
|
48
|
+
inputPart.value
|
|
49
|
+
)}
|
|
50
|
+
</span>
|
|
51
|
+
))}
|
|
52
|
+
</span>
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default InputWithSpecialExpression;
|
package/src/index.ts
CHANGED
|
@@ -47,6 +47,8 @@ export { default as PublishingHouseLabel } from "./components/labels/PublishingH
|
|
|
47
47
|
|
|
48
48
|
export { default as InfoWithText } from "./components/infos/InfoWithText";
|
|
49
49
|
|
|
50
|
+
export { default as InputWithSpecialExpression } from "./components/texts/InputWithSpecialExpression";
|
|
51
|
+
|
|
50
52
|
export { default as i18n } from "./language/i18n";
|
|
51
53
|
|
|
52
54
|
export * from "./utilization/AppUtilization";
|