@thanh01.pmt/interactive-quiz-kit 1.0.29 → 1.0.30
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/ai/dev.d.ts +16 -0
- package/dist/ai/dev.d.ts.map +1 -0
- package/dist/ai/flows/ask-tutor-chat-types.d.ts +67 -0
- package/dist/ai/flows/ask-tutor-chat-types.d.ts.map +1 -0
- package/dist/ai/flows/ask-tutor-chat.d.ts +3 -0
- package/dist/ai/flows/ask-tutor-chat.d.ts.map +1 -0
- package/dist/ai/flows/assess-and-map-document-types.d.ts +80 -0
- package/dist/ai/flows/assess-and-map-document-types.d.ts.map +1 -0
- package/dist/ai/flows/assess-and-map-document.d.ts +3 -0
- package/dist/ai/flows/assess-and-map-document.d.ts.map +1 -0
- package/dist/ai/flows/evaluate-user-code-types.d.ts +49 -0
- package/dist/ai/flows/evaluate-user-code-types.d.ts.map +1 -0
- package/dist/ai/flows/evaluate-user-code.d.ts +3 -0
- package/dist/ai/flows/evaluate-user-code.d.ts.map +1 -0
- package/dist/ai/flows/generate-learning-analysis-types.d.ts +200 -0
- package/dist/ai/flows/generate-learning-analysis-types.d.ts.map +1 -0
- package/dist/ai/flows/generate-learning-analysis.d.ts +4 -0
- package/dist/ai/flows/generate-learning-analysis.d.ts.map +1 -0
- package/dist/ai/flows/generate-motivational-quote.d.ts +3 -0
- package/dist/ai/flows/generate-motivational-quote.d.ts.map +1 -0
- package/dist/ai/flows/generate-practice-quiz.d.ts +76 -0
- package/dist/ai/flows/generate-practice-quiz.d.ts.map +1 -0
- package/dist/ai/flows/generate-practice-suggestion.d.ts +149 -0
- package/dist/ai/flows/generate-practice-suggestion.d.ts.map +1 -0
- package/dist/ai/flows/generate-questions-from-quiz-plan-types.d.ts +122 -0
- package/dist/ai/flows/generate-questions-from-quiz-plan-types.d.ts.map +1 -0
- package/dist/ai/flows/generate-questions-from-quiz-plan.d.ts +3 -0
- package/dist/ai/flows/generate-questions-from-quiz-plan.d.ts.map +1 -0
- package/dist/ai/flows/generate-quiz-from-text-types.d.ts +358 -0
- package/dist/ai/flows/generate-quiz-from-text-types.d.ts.map +1 -0
- package/dist/ai/flows/generate-quiz-from-text.d.ts +3 -0
- package/dist/ai/flows/generate-quiz-from-text.d.ts.map +1 -0
- package/dist/ai/flows/generate-quiz-plan-types.d.ts +272 -0
- package/dist/ai/flows/generate-quiz-plan-types.d.ts.map +1 -0
- package/dist/ai/flows/generate-quiz-plan.d.ts +12 -0
- package/dist/ai/flows/generate-quiz-plan.d.ts.map +1 -0
- package/dist/ai/flows/generate-quiz-review.d.ts +3 -0
- package/dist/ai/flows/generate-quiz-review.d.ts.map +1 -0
- package/dist/ai/flows/generate-single-knowledge-card-types.d.ts +34 -0
- package/dist/ai/flows/generate-single-knowledge-card-types.d.ts.map +1 -0
- package/dist/ai/flows/generate-single-knowledge-card.d.ts +3 -0
- package/dist/ai/flows/generate-single-knowledge-card.d.ts.map +1 -0
- package/dist/ai/flows/motivational-quote-types.d.ts +30 -0
- package/dist/ai/flows/motivational-quote-types.d.ts.map +1 -0
- package/dist/ai/flows/plan-knowledge-cards-types.d.ts +24 -0
- package/dist/ai/flows/plan-knowledge-cards-types.d.ts.map +1 -0
- package/dist/ai/flows/plan-knowledge-cards.d.ts +3 -0
- package/dist/ai/flows/plan-knowledge-cards.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-coding-question-types.d.ts +133 -0
- package/dist/ai/flows/question-gen/generate-coding-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-coding-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-coding-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-fitb-question-types.d.ts +142 -0
- package/dist/ai/flows/question-gen/generate-fitb-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-fitb-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-fitb-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-matching-question-types.d.ts +137 -0
- package/dist/ai/flows/question-gen/generate-matching-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-matching-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-matching-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-mcq-question-types.d.ts +137 -0
- package/dist/ai/flows/question-gen/generate-mcq-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-mcq-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-mcq-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-mrq-question-types.d.ts +143 -0
- package/dist/ai/flows/question-gen/generate-mrq-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-mrq-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-mrq-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-numeric-question-types.d.ts +131 -0
- package/dist/ai/flows/question-gen/generate-numeric-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-numeric-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-numeric-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-sequence-question-types.d.ts +119 -0
- package/dist/ai/flows/question-gen/generate-sequence-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-sequence-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-sequence-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-short-answer-question-types.d.ts +119 -0
- package/dist/ai/flows/question-gen/generate-short-answer-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-short-answer-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-short-answer-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-true-false-question-types.d.ts +115 -0
- package/dist/ai/flows/question-gen/generate-true-false-question-types.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/generate-true-false-question.d.ts +3 -0
- package/dist/ai/flows/question-gen/generate-true-false-question.d.ts.map +1 -0
- package/dist/ai/flows/question-gen/question-generation-schemas.d.ts +1027 -0
- package/dist/ai/flows/question-gen/question-generation-schemas.d.ts.map +1 -0
- package/dist/ai/flows/review-types.d.ts +79 -0
- package/dist/ai/flows/review-types.d.ts.map +1 -0
- package/dist/ai/flows/shared-schemas.d.ts +133 -0
- package/dist/ai/flows/shared-schemas.d.ts.map +1 -0
- package/dist/ai/genkit.d.ts +2 -0
- package/dist/ai/genkit.d.ts.map +1 -0
- package/dist/ai.d.ts +40 -0
- package/dist/ai.d.ts.map +1 -0
- package/dist/authoring.d.ts +6 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/i18n.d.ts +3 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/player.d.ts +12 -0
- package/dist/player.d.ts.map +1 -0
- package/dist/react-ui/components/app/APIKeyManagerModal.d.ts +8 -0
- package/dist/react-ui/components/app/APIKeyManagerModal.d.ts.map +1 -0
- package/dist/react-ui/components/app/AppController.d.ts +3 -0
- package/dist/react-ui/components/app/AppController.d.ts.map +1 -0
- package/dist/react-ui/components/app/ManageImageContexts.d.ts +3 -0
- package/dist/react-ui/components/app/ManageImageContexts.d.ts.map +1 -0
- package/dist/react-ui/components/app/ManageTopics.d.ts +3 -0
- package/dist/react-ui/components/app/ManageTopics.d.ts.map +1 -0
- package/dist/react-ui/components/app/PersonalPracticeDashboard.d.ts +3 -0
- package/dist/react-ui/components/app/PersonalPracticeDashboard.d.ts.map +1 -0
- package/dist/react-ui/components/app/SettingsModal.d.ts +10 -0
- package/dist/react-ui/components/app/SettingsModal.d.ts.map +1 -0
- package/dist/react-ui/components/app/UploadResourceModal.d.ts +8 -0
- package/dist/react-ui/components/app/UploadResourceModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/AIFullQuizGeneratorModal.d.ts +11 -0
- package/dist/react-ui/components/authoring/AIFullQuizGeneratorModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/AIQuestionGeneratorModal.d.ts +19 -0
- package/dist/react-ui/components/authoring/AIQuestionGeneratorModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/BlocklyProgrammingQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/BlocklyProgrammingQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/CodingQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/CodingQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/DragAndDropQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/DragAndDropQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/EditQuestionModal.d.ts +11 -0
- package/dist/react-ui/components/authoring/EditQuestionModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/FillInTheBlanksQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/FillInTheBlanksQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/HotspotQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/HotspotQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/ImportQuestionsModal.d.ts +10 -0
- package/dist/react-ui/components/authoring/ImportQuestionsModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/MatchingQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/MatchingQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/MultipleChoiceQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/MultipleChoiceQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/MultipleResponseQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/MultipleResponseQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/NumericQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/NumericQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/QuestionFilters.d.ts +9 -0
- package/dist/react-ui/components/authoring/QuestionFilters.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/QuestionFormDialog.d.ts +11 -0
- package/dist/react-ui/components/authoring/QuestionFormDialog.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/QuestionList.d.ts +11 -0
- package/dist/react-ui/components/authoring/QuestionList.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/QuestionPreviewModal.d.ts +10 -0
- package/dist/react-ui/components/authoring/QuestionPreviewModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/QuizAuthoringTool.d.ts +10 -0
- package/dist/react-ui/components/authoring/QuizAuthoringTool.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/SCORMExportModal.d.ts +13 -0
- package/dist/react-ui/components/authoring/SCORMExportModal.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/ScratchProgrammingQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/ScratchProgrammingQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/SequenceQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/SequenceQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/ShortAnswerQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/ShortAnswerQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/authoring/TrueFalseQuestionForm.d.ts +9 -0
- package/dist/react-ui/components/authoring/TrueFalseQuestionForm.d.ts.map +1 -0
- package/dist/react-ui/components/common/ClientTranslation.d.ts +18 -0
- package/dist/react-ui/components/common/ClientTranslation.d.ts.map +1 -0
- package/dist/react-ui/components/common/EditorToolbar.d.ts +8 -0
- package/dist/react-ui/components/common/EditorToolbar.d.ts.map +1 -0
- package/dist/react-ui/components/common/MarkdownEditor.d.ts +11 -0
- package/dist/react-ui/components/common/MarkdownEditor.d.ts.map +1 -0
- package/dist/react-ui/components/common/MarkdownRenderer.d.ts +15 -0
- package/dist/react-ui/components/common/MarkdownRenderer.d.ts.map +1 -0
- package/dist/react-ui/components/common/RichTextEditor.d.ts +11 -0
- package/dist/react-ui/components/common/RichTextEditor.d.ts.map +1 -0
- package/dist/react-ui/components/common/RichTextRenderer.d.ts +16 -0
- package/dist/react-ui/components/common/RichTextRenderer.d.ts.map +1 -0
- package/dist/react-ui/components/common/SimpleMarkdownEditor.d.ts +17 -0
- package/dist/react-ui/components/common/SimpleMarkdownEditor.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/AchievementCertificate.d.ts +11 -0
- package/dist/react-ui/components/dashboard/AchievementCertificate.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/Achievements.d.ts +8 -0
- package/dist/react-ui/components/dashboard/Achievements.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/ActivityCalendar.d.ts +8 -0
- package/dist/react-ui/components/dashboard/ActivityCalendar.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/AnalysisDialog.d.ts +8 -0
- package/dist/react-ui/components/dashboard/AnalysisDialog.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/ChatbotDialog.d.ts +8 -0
- package/dist/react-ui/components/dashboard/ChatbotDialog.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/Cheatsheet.d.ts +3 -0
- package/dist/react-ui/components/dashboard/Cheatsheet.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/DraggableDashboardCard.d.ts +11 -0
- package/dist/react-ui/components/dashboard/DraggableDashboardCard.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/FreestyleQuizzesCard.d.ts +3 -0
- package/dist/react-ui/components/dashboard/FreestyleQuizzesCard.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/GeneratedQuizzesCard.d.ts +3 -0
- package/dist/react-ui/components/dashboard/GeneratedQuizzesCard.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/GoalsProgress.d.ts +3 -0
- package/dist/react-ui/components/dashboard/GoalsProgress.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/PerformanceCharts.d.ts +8 -0
- package/dist/react-ui/components/dashboard/PerformanceCharts.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/PerformanceSnapshot.d.ts +9 -0
- package/dist/react-ui/components/dashboard/PerformanceSnapshot.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/PracticeHistoryTable.d.ts +9 -0
- package/dist/react-ui/components/dashboard/PracticeHistoryTable.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/RoadmapChecklist.d.ts +3 -0
- package/dist/react-ui/components/dashboard/RoadmapChecklist.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/SessionActionsDialog.d.ts +13 -0
- package/dist/react-ui/components/dashboard/SessionActionsDialog.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/ShareAchievementDialog.d.ts +10 -0
- package/dist/react-ui/components/dashboard/ShareAchievementDialog.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/StatCard.d.ts +12 -0
- package/dist/react-ui/components/dashboard/StatCard.d.ts.map +1 -0
- package/dist/react-ui/components/dashboard/SuggestionDialog.d.ts +12 -0
- package/dist/react-ui/components/dashboard/SuggestionDialog.d.ts.map +1 -0
- package/dist/react-ui/components/elements/accordion.d.ts +8 -0
- package/dist/react-ui/components/elements/accordion.d.ts.map +1 -0
- package/dist/react-ui/components/elements/alert-dialog.d.ts +21 -0
- package/dist/react-ui/components/elements/alert-dialog.d.ts.map +1 -0
- package/dist/react-ui/components/elements/alert.d.ts +9 -0
- package/dist/react-ui/components/elements/alert.d.ts.map +1 -0
- package/dist/react-ui/components/elements/avatar.d.ts +7 -0
- package/dist/react-ui/components/elements/avatar.d.ts.map +1 -0
- package/dist/react-ui/components/elements/badge.d.ts +10 -0
- package/dist/react-ui/components/elements/badge.d.ts.map +1 -0
- package/dist/react-ui/components/elements/button.d.ts +12 -0
- package/dist/react-ui/components/elements/button.d.ts.map +1 -0
- package/dist/react-ui/components/elements/calendar.d.ts +9 -0
- package/dist/react-ui/components/elements/calendar.d.ts.map +1 -0
- package/dist/react-ui/components/elements/card.d.ts +9 -0
- package/dist/react-ui/components/elements/card.d.ts.map +1 -0
- package/dist/react-ui/components/elements/chart.d.ts +63 -0
- package/dist/react-ui/components/elements/chart.d.ts.map +1 -0
- package/dist/react-ui/components/elements/checkbox.d.ts +5 -0
- package/dist/react-ui/components/elements/checkbox.d.ts.map +1 -0
- package/dist/react-ui/components/elements/dialog.d.ts +20 -0
- package/dist/react-ui/components/elements/dialog.d.ts.map +1 -0
- package/dist/react-ui/components/elements/dropdown-menu.d.ts +28 -0
- package/dist/react-ui/components/elements/dropdown-menu.d.ts.map +1 -0
- package/dist/react-ui/components/elements/form.d.ts +24 -0
- package/dist/react-ui/components/elements/form.d.ts.map +1 -0
- package/dist/react-ui/components/elements/input.d.ts +4 -0
- package/dist/react-ui/components/elements/input.d.ts.map +1 -0
- package/dist/react-ui/components/elements/label.d.ts +6 -0
- package/dist/react-ui/components/elements/label.d.ts.map +1 -0
- package/dist/react-ui/components/elements/menubar.d.ts +29 -0
- package/dist/react-ui/components/elements/menubar.d.ts.map +1 -0
- package/dist/react-ui/components/elements/popover.d.ts +7 -0
- package/dist/react-ui/components/elements/popover.d.ts.map +1 -0
- package/dist/react-ui/components/elements/progress.d.ts +5 -0
- package/dist/react-ui/components/elements/progress.d.ts.map +1 -0
- package/dist/react-ui/components/elements/radio-group.d.ts +6 -0
- package/dist/react-ui/components/elements/radio-group.d.ts.map +1 -0
- package/dist/react-ui/components/elements/scroll-area.d.ts +6 -0
- package/dist/react-ui/components/elements/scroll-area.d.ts.map +1 -0
- package/dist/react-ui/components/elements/select.d.ts +14 -0
- package/dist/react-ui/components/elements/select.d.ts.map +1 -0
- package/dist/react-ui/components/elements/separator.d.ts +5 -0
- package/dist/react-ui/components/elements/separator.d.ts.map +1 -0
- package/dist/react-ui/components/elements/sheet.d.ts +26 -0
- package/dist/react-ui/components/elements/sheet.d.ts.map +1 -0
- package/dist/react-ui/components/elements/sidebar.d.ts +67 -0
- package/dist/react-ui/components/elements/sidebar.d.ts.map +1 -0
- package/dist/react-ui/components/elements/skeleton.d.ts +3 -0
- package/dist/react-ui/components/elements/skeleton.d.ts.map +1 -0
- package/dist/react-ui/components/elements/slider.d.ts +5 -0
- package/dist/react-ui/components/elements/slider.d.ts.map +1 -0
- package/dist/react-ui/components/elements/switch.d.ts +5 -0
- package/dist/react-ui/components/elements/switch.d.ts.map +1 -0
- package/dist/react-ui/components/elements/table.d.ts +11 -0
- package/dist/react-ui/components/elements/table.d.ts.map +1 -0
- package/dist/react-ui/components/elements/tabs.d.ts +8 -0
- package/dist/react-ui/components/elements/tabs.d.ts.map +1 -0
- package/dist/react-ui/components/elements/textarea.d.ts +4 -0
- package/dist/react-ui/components/elements/textarea.d.ts.map +1 -0
- package/dist/react-ui/components/elements/toast.d.ts +16 -0
- package/dist/react-ui/components/elements/toast.d.ts.map +1 -0
- package/dist/react-ui/components/elements/toaster.d.ts +2 -0
- package/dist/react-ui/components/elements/toaster.d.ts.map +1 -0
- package/dist/react-ui/components/elements/tooltip.d.ts +8 -0
- package/dist/react-ui/components/elements/tooltip.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/ApproachManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/ApproachManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/BloomLevelManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/BloomLevelManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/CategoryManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/CategoryManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/ContextManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/ContextManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/GradeLevelManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/GradeLevelManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/LearningObjectiveManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/LearningObjectiveManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/MetadataTabs.d.ts +3 -0
- package/dist/react-ui/components/metadata/MetadataTabs.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/QuestionTypeManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/QuestionTypeManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/SubjectManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/SubjectManager.d.ts.map +1 -0
- package/dist/react-ui/components/metadata/TopicManager.d.ts +3 -0
- package/dist/react-ui/components/metadata/TopicManager.d.ts.map +1 -0
- package/dist/react-ui/components/practice/PracticeModeController.d.ts +3 -0
- package/dist/react-ui/components/practice/PracticeModeController.d.ts.map +1 -0
- package/dist/react-ui/components/practice/PracticeSetup.d.ts +12 -0
- package/dist/react-ui/components/practice/PracticeSetup.d.ts.map +1 -0
- package/dist/react-ui/components/practice/QuizReview.d.ts +12 -0
- package/dist/react-ui/components/practice/QuizReview.d.ts.map +1 -0
- package/dist/react-ui/components/ui/BlocklyProgrammingQuestionUI.d.ts +14 -0
- package/dist/react-ui/components/ui/BlocklyProgrammingQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/CodingQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/CodingQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/DragAndDropQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/DragAndDropQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/FillInTheBlanksQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/FillInTheBlanksQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/HotspotQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/HotspotQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/MatchingQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/MatchingQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/MultipleChoiceQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/MultipleChoiceQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/MultipleResponseQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/MultipleResponseQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/NumericQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/NumericQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/QuestionRenderer.d.ts +14 -0
- package/dist/react-ui/components/ui/QuestionRenderer.d.ts.map +1 -0
- package/dist/react-ui/components/ui/QuizDataManagement.d.ts +9 -0
- package/dist/react-ui/components/ui/QuizDataManagement.d.ts.map +1 -0
- package/dist/react-ui/components/ui/QuizPlayer.d.ts +10 -0
- package/dist/react-ui/components/ui/QuizPlayer.d.ts.map +1 -0
- package/dist/react-ui/components/ui/QuizResult.d.ts +13 -0
- package/dist/react-ui/components/ui/QuizResult.d.ts.map +1 -0
- package/dist/react-ui/components/ui/ScratchProgrammingQuestionUI.d.ts +13 -0
- package/dist/react-ui/components/ui/ScratchProgrammingQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/SequenceQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/SequenceQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/ShortAnswerQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/ShortAnswerQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/components/ui/TrueFalseQuestionUI.d.ts +11 -0
- package/dist/react-ui/components/ui/TrueFalseQuestionUI.d.ts.map +1 -0
- package/dist/react-ui/context/LanguageContext.d.ts +21 -0
- package/dist/react-ui/context/LanguageContext.d.ts.map +1 -0
- package/dist/react-ui/hooks/use-mobile.d.ts +9 -0
- package/dist/react-ui/hooks/use-mobile.d.ts.map +1 -0
- package/dist/react-ui/hooks/use-toast.d.ts +45 -0
- package/dist/react-ui/hooks/use-toast.d.ts.map +1 -0
- package/dist/react-ui/index.d.ts +39 -0
- package/dist/react-ui/index.d.ts.map +1 -0
- package/dist/react-ui.d.ts +58 -0
- package/dist/react-ui.d.ts.map +1 -0
- package/dist/schemas/zod/blocklyProgrammingQuestionSchema.d.ts +61 -0
- package/dist/schemas/zod/blocklyProgrammingQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/codingQuestionSchema.d.ts +111 -0
- package/dist/schemas/zod/codingQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/dragAndDropQuestionSchema.d.ts +109 -0
- package/dist/schemas/zod/dragAndDropQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/fillInTheBlanksQuestionSchema.d.ts +103 -0
- package/dist/schemas/zod/fillInTheBlanksQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/hotspotQuestionSchema.d.ts +111 -0
- package/dist/schemas/zod/hotspotQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/matchingQuestionSchema.d.ts +106 -0
- package/dist/schemas/zod/matchingQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/multipleChoiceQuestionSchema.d.ts +70 -0
- package/dist/schemas/zod/multipleChoiceQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/multipleResponseQuestionSchema.d.ts +70 -0
- package/dist/schemas/zod/multipleResponseQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/numericQuestionSchema.d.ts +55 -0
- package/dist/schemas/zod/numericQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/quizConfigSchema.d.ts +634 -0
- package/dist/schemas/zod/quizConfigSchema.d.ts.map +1 -0
- package/dist/schemas/zod/scratchProgrammingQuestionSchema.d.ts +61 -0
- package/dist/schemas/zod/scratchProgrammingQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/sequenceQuestionSchema.d.ts +70 -0
- package/dist/schemas/zod/sequenceQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/shortAnswerQuestionSchema.d.ts +55 -0
- package/dist/schemas/zod/shortAnswerQuestionSchema.d.ts.map +1 -0
- package/dist/schemas/zod/trueFalseQuestionSchema.d.ts +52 -0
- package/dist/schemas/zod/trueFalseQuestionSchema.d.ts.map +1 -0
- package/dist/services/APIKeyService.d.ts +28 -0
- package/dist/services/APIKeyService.d.ts.map +1 -0
- package/dist/services/AchievementService.d.ts +10 -0
- package/dist/services/AchievementService.d.ts.map +1 -0
- package/dist/services/AnalysisReportService.d.ts +11 -0
- package/dist/services/AnalysisReportService.d.ts.map +1 -0
- package/dist/services/CardGenerationProcessor.d.ts +7 -0
- package/dist/services/CardGenerationProcessor.d.ts.map +1 -0
- package/dist/services/CodeEvaluationService.d.ts +15 -0
- package/dist/services/CodeEvaluationService.d.ts.map +1 -0
- package/dist/services/DashboardLayoutService.d.ts +28 -0
- package/dist/services/DashboardLayoutService.d.ts.map +1 -0
- package/dist/services/FreestyleQuizService.d.ts +51 -0
- package/dist/services/FreestyleQuizService.d.ts.map +1 -0
- package/dist/services/HTMLLauncherGenerator.d.ts +3 -0
- package/dist/services/HTMLLauncherGenerator.d.ts.map +1 -0
- package/dist/services/ImageContextService.d.ts +55 -0
- package/dist/services/ImageContextService.d.ts.map +1 -0
- package/dist/services/KnowledgeCardService.d.ts +57 -0
- package/dist/services/KnowledgeCardService.d.ts.map +1 -0
- package/dist/services/MotivationalQuotes.d.ts +16 -0
- package/dist/services/MotivationalQuotes.d.ts.map +1 -0
- package/dist/services/PracticeHistoryService.d.ts +15 -0
- package/dist/services/PracticeHistoryService.d.ts.map +1 -0
- package/dist/services/QuestionImportService.d.ts +19 -0
- package/dist/services/QuestionImportService.d.ts.map +1 -0
- package/dist/services/QuizEditorService.d.ts +16 -0
- package/dist/services/QuizEditorService.d.ts.map +1 -0
- package/dist/services/QuizEngine.d.ts +40 -0
- package/dist/services/QuizEngine.d.ts.map +1 -0
- package/dist/services/RoadmapService.d.ts +9 -0
- package/dist/services/RoadmapService.d.ts.map +1 -0
- package/dist/services/SCORMManifestGenerator.d.ts +4 -0
- package/dist/services/SCORMManifestGenerator.d.ts.map +1 -0
- package/dist/services/SCORMService.d.ts +41 -0
- package/dist/services/SCORMService.d.ts.map +1 -0
- package/dist/services/TopicDataService.d.ts +62 -0
- package/dist/services/TopicDataService.d.ts.map +1 -0
- package/dist/services/UserConfigService.d.ts +27 -0
- package/dist/services/UserConfigService.d.ts.map +1 -0
- package/dist/services/evaluators/base-evaluator.d.ts +11 -0
- package/dist/services/evaluators/base-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/coding-evaluator.d.ts +6 -0
- package/dist/services/evaluators/coding-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/drag-and-drop-evaluator.d.ts +6 -0
- package/dist/services/evaluators/drag-and-drop-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/fill-in-the-blanks-evaluator.d.ts +6 -0
- package/dist/services/evaluators/fill-in-the-blanks-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/hotspot-evaluator.d.ts +6 -0
- package/dist/services/evaluators/hotspot-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/matching-evaluator.d.ts +6 -0
- package/dist/services/evaluators/matching-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/multiple-choice-evaluator.d.ts +6 -0
- package/dist/services/evaluators/multiple-choice-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/multiple-response-evaluator.d.ts +6 -0
- package/dist/services/evaluators/multiple-response-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/numeric-evaluator.d.ts +6 -0
- package/dist/services/evaluators/numeric-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/programming-evaluator.d.ts +6 -0
- package/dist/services/evaluators/programming-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/sequence-evaluator.d.ts +6 -0
- package/dist/services/evaluators/sequence-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/short-answer-evaluator.d.ts +6 -0
- package/dist/services/evaluators/short-answer-evaluator.d.ts.map +1 -0
- package/dist/services/evaluators/true-false-evaluator.d.ts +6 -0
- package/dist/services/evaluators/true-false-evaluator.d.ts.map +1 -0
- package/dist/services/metadataService.d.ts +40 -0
- package/dist/services/metadataService.d.ts.map +1 -0
- package/dist/services/questionBankService.d.ts +19 -0
- package/dist/services/questionBankService.d.ts.map +1 -0
- package/dist/services/sampleQuiz.d.ts +4 -0
- package/dist/services/sampleQuiz.d.ts.map +1 -0
- package/dist/services/scormPackaging.d.ts +11 -0
- package/dist/services/scormPackaging.d.ts.map +1 -0
- package/dist/types/ai-ecosystem.d.ts +57 -0
- package/dist/types/ai-ecosystem.d.ts.map +1 -0
- package/dist/types/common.d.ts +3 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/learning-objectives.d.ts +12 -0
- package/dist/types/learning-objectives.d.ts.map +1 -0
- package/dist/types/metadata.d.ts +45 -0
- package/dist/types/metadata.d.ts.map +1 -0
- package/dist/types/misc.d.ts +102 -0
- package/dist/types/misc.d.ts.map +1 -0
- package/dist/types/question-bank.d.ts +28 -0
- package/dist/types/question-bank.d.ts.map +1 -0
- package/dist/types/questions.d.ts +151 -0
- package/dist/types/questions.d.ts.map +1 -0
- package/dist/types/quiz-config.d.ts +12 -0
- package/dist/types/quiz-config.d.ts.map +1 -0
- package/dist/types/quiz-engine.d.ts +23 -0
- package/dist/types/quiz-engine.d.ts.map +1 -0
- package/dist/types/quiz-settings.d.ts +35 -0
- package/dist/types/quiz-settings.d.ts.map +1 -0
- package/dist/types/results.d.ts +72 -0
- package/dist/types/results.d.ts.map +1 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/aiUtils.d.ts +11 -0
- package/dist/utils/aiUtils.d.ts.map +1 -0
- package/dist/utils/asyncUtils.d.ts +22 -0
- package/dist/utils/asyncUtils.d.ts.map +1 -0
- package/dist/utils/debug-logger.d.ts +24 -0
- package/dist/utils/debug-logger.d.ts.map +1 -0
- package/dist/utils/formattedDate.d.ts +2 -0
- package/dist/utils/formattedDate.d.ts.map +1 -0
- package/dist/utils/idGenerators.d.ts +7 -0
- package/dist/utils/idGenerators.d.ts.map +1 -0
- package/dist/utils/jsonUtils.d.ts +18 -0
- package/dist/utils/jsonUtils.d.ts.map +1 -0
- package/dist/utils/use-mobile.d.ts +2 -0
- package/dist/utils/use-mobile.d.ts.map +1 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/package.json +2 -4
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { QuestionTypeStrings as LibraryQuestionTypeStrings } from './questions';
|
|
2
|
+
export interface CodeNamedEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Subject extends CodeNamedEntity {
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GradeLevel extends CodeNamedEntity {
|
|
13
|
+
}
|
|
14
|
+
export interface BloomLevelType extends CodeNamedEntity {
|
|
15
|
+
}
|
|
16
|
+
export interface QuestionTypeType extends CodeNamedEntity {
|
|
17
|
+
}
|
|
18
|
+
export interface Category extends CodeNamedEntity {
|
|
19
|
+
}
|
|
20
|
+
export interface Context extends CodeNamedEntity {
|
|
21
|
+
}
|
|
22
|
+
export interface Topic extends CodeNamedEntity {
|
|
23
|
+
subjectCode: string;
|
|
24
|
+
}
|
|
25
|
+
export type QuestionTypeStrings = LibraryQuestionTypeStrings;
|
|
26
|
+
export type BloomLevelName = "Remembering" | "Understanding" | "Applying" | "Analyzing" | "Evaluating" | "Creating";
|
|
27
|
+
export type StandardDifficulty = "easy" | "medium" | "hard";
|
|
28
|
+
export type KnowledgeDimension = "Factual" | "Conceptual" | "Procedural";
|
|
29
|
+
export type ApproachTableRawDifficulty = "E" | "M" | "H" | "E~M" | "M~H";
|
|
30
|
+
export interface Approach extends CodeNamedEntity {
|
|
31
|
+
verbEn: string;
|
|
32
|
+
verbVi: string;
|
|
33
|
+
bloomLevelCode: string;
|
|
34
|
+
knowledgeDimension: KnowledgeDimension;
|
|
35
|
+
iSpringQuizType: string;
|
|
36
|
+
rawDifficulty: ApproachTableRawDifficulty;
|
|
37
|
+
difficulty: StandardDifficulty;
|
|
38
|
+
suggestContext?: string;
|
|
39
|
+
exampleEn?: string;
|
|
40
|
+
exampleVi?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface LearningObjectiveMetadata extends CodeNamedEntity {
|
|
43
|
+
subjectCode?: string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/types/metadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAKrF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,OAAQ,SAAQ,eAAe;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,MAAM,WAAW,cAAe,SAAQ,eAAe;CAAG;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,eAAe;CAAG;AAE5D,MAAM,WAAW,QAAS,SAAQ,eAAe;CAEhD;AAED,MAAM,WAAW,OAAQ,SAAQ,eAAe;CAAG;AAEnD,MAAM,WAAW,KAAM,SAAQ,eAAe;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AACpH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,YAAY,GAAG,YAAY,CAAC;AACzE,MAAM,MAAM,0BAA0B,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;AAEzE,MAAM,WAAW,QAAS,SAAQ,eAAe;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,0BAA0B,CAAC;IAC1C,UAAU,EAAE,kBAAkB,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { RichContentString } from './common';
|
|
2
|
+
import { QuizConfig, QuizResultType } from '..';
|
|
3
|
+
export interface ImportError {
|
|
4
|
+
index: number;
|
|
5
|
+
message: string;
|
|
6
|
+
data: any;
|
|
7
|
+
}
|
|
8
|
+
export interface QuestionReview {
|
|
9
|
+
questionId: string;
|
|
10
|
+
explanation: RichContentString;
|
|
11
|
+
}
|
|
12
|
+
export interface QuizReviewContent {
|
|
13
|
+
questionReviews: QuestionReview[];
|
|
14
|
+
overallSummary: RichContentString;
|
|
15
|
+
relatedTopics: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface AchievementDefinition {
|
|
18
|
+
id: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
nameKey: string;
|
|
21
|
+
descriptionKey: string;
|
|
22
|
+
condition: {
|
|
23
|
+
type: string;
|
|
24
|
+
params: Record<string, any>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface Achievement {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
unlockedAt?: number;
|
|
33
|
+
}
|
|
34
|
+
export type PracticeDifficulty = 'Very Easy' | 'Easy' | 'Medium' | 'Hard' | 'Expert';
|
|
35
|
+
export interface PracticeSuggestionTopic {
|
|
36
|
+
loId: string;
|
|
37
|
+
topicName: string;
|
|
38
|
+
reason: 'review' | 'explore';
|
|
39
|
+
suggestedDifficulty?: PracticeDifficulty;
|
|
40
|
+
}
|
|
41
|
+
export interface PracticeSuggestion {
|
|
42
|
+
suggestionText: RichContentString;
|
|
43
|
+
suggestedTopics: PracticeSuggestionTopic[];
|
|
44
|
+
}
|
|
45
|
+
export interface KnowledgeCard {
|
|
46
|
+
id: string;
|
|
47
|
+
concept: string;
|
|
48
|
+
definition: RichContentString;
|
|
49
|
+
example: RichContentString;
|
|
50
|
+
subject?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface PracticeTopicSummary {
|
|
53
|
+
subject: string;
|
|
54
|
+
category: string;
|
|
55
|
+
topic: string;
|
|
56
|
+
}
|
|
57
|
+
export interface PracticeSession {
|
|
58
|
+
id: string;
|
|
59
|
+
timestamp: number;
|
|
60
|
+
quizConfig: QuizConfig;
|
|
61
|
+
quizResult: QuizResultType;
|
|
62
|
+
quizReview: QuizReviewContent | null;
|
|
63
|
+
summary: {
|
|
64
|
+
topics: PracticeTopicSummary[];
|
|
65
|
+
score: number;
|
|
66
|
+
maxScore: number;
|
|
67
|
+
percentage: number;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface PracticeSessionSummary {
|
|
71
|
+
id: string;
|
|
72
|
+
timestamp: number;
|
|
73
|
+
quizTitle: string;
|
|
74
|
+
topics: PracticeTopicSummary[];
|
|
75
|
+
score: number | null;
|
|
76
|
+
maxScore: number | null;
|
|
77
|
+
percentage: number | null;
|
|
78
|
+
}
|
|
79
|
+
export type ActivityCalendarData = Record<string, number>;
|
|
80
|
+
export interface PerformanceSummary {
|
|
81
|
+
name: string;
|
|
82
|
+
totalSessions: number;
|
|
83
|
+
averageScore: number;
|
|
84
|
+
}
|
|
85
|
+
export interface PracticeStats {
|
|
86
|
+
totalSessions: number;
|
|
87
|
+
currentStreak: number;
|
|
88
|
+
longestStreak: number;
|
|
89
|
+
activityCalendar: ActivityCalendarData;
|
|
90
|
+
performanceBySubject: PerformanceSummary[];
|
|
91
|
+
performanceByTopic: PerformanceSummary[];
|
|
92
|
+
}
|
|
93
|
+
export interface ImageContextItem {
|
|
94
|
+
id: string;
|
|
95
|
+
imageUrl: string;
|
|
96
|
+
imageAltText: string;
|
|
97
|
+
detailedDescription: string;
|
|
98
|
+
subject: string;
|
|
99
|
+
category: string;
|
|
100
|
+
topic: string;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=misc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/types/misc.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,iBAAiB,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,cAAc,EAAE,iBAAiB,CAAC;IAClC,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE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,oBAAoB,EAAE,CAAC;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { QuizQuestion } from './questions';
|
|
2
|
+
import type { StandardDifficulty } from './metadata';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the structure of a question as stored within the Question Bank.
|
|
5
|
+
* It combines the rich, flexible configuration from IQ-Kit's QuizQuestion
|
|
6
|
+
* with the structured metadata needed for management and filtering, inspired by QMS.
|
|
7
|
+
*/
|
|
8
|
+
export interface QuestionInBank {
|
|
9
|
+
id: string;
|
|
10
|
+
code: string;
|
|
11
|
+
text: string;
|
|
12
|
+
lastModified: string;
|
|
13
|
+
questionTypeCode: string;
|
|
14
|
+
subjectCode: string;
|
|
15
|
+
topicCode: string;
|
|
16
|
+
gradeLevelCode: string;
|
|
17
|
+
bloomLevelCode: string;
|
|
18
|
+
difficulty?: StandardDifficulty;
|
|
19
|
+
approachCode?: string;
|
|
20
|
+
learningObjectiveCode?: string;
|
|
21
|
+
contextCode?: string;
|
|
22
|
+
categoryCode?: string;
|
|
23
|
+
gradeBand?: string;
|
|
24
|
+
course?: string;
|
|
25
|
+
createdAt?: string;
|
|
26
|
+
questionConfig: QuizQuestion;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=question-bank.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-bank.d.ts","sourceRoot":"","sources":["../../src/types/question-bank.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAE7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IAGrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IAGvB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,cAAc,EAAE,YAAY,CAAC;CAC9B"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { RichContentString } from './common';
|
|
2
|
+
export type QuestionTypeStrings = 'multiple_choice' | 'multiple_response' | 'fill_in_the_blanks' | 'drag_and_drop' | 'true_false' | 'short_answer' | 'numeric' | 'sequence' | 'matching' | 'hotspot' | 'blockly_programming' | 'scratch_programming' | 'coding';
|
|
3
|
+
export interface BaseQuestion {
|
|
4
|
+
id: string;
|
|
5
|
+
questionType: QuestionTypeStrings;
|
|
6
|
+
prompt: RichContentString;
|
|
7
|
+
points?: number;
|
|
8
|
+
explanation?: RichContentString;
|
|
9
|
+
learningObjective?: string;
|
|
10
|
+
glossary?: string[];
|
|
11
|
+
bloomLevel?: string;
|
|
12
|
+
difficulty?: 'easy' | 'medium' | 'hard';
|
|
13
|
+
contextCode?: string;
|
|
14
|
+
gradeBand?: string;
|
|
15
|
+
course?: string;
|
|
16
|
+
subject?: string;
|
|
17
|
+
category?: string;
|
|
18
|
+
topic?: string;
|
|
19
|
+
imageUrl?: string;
|
|
20
|
+
imageAltText?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface QuestionOption {
|
|
23
|
+
id: string;
|
|
24
|
+
text: RichContentString;
|
|
25
|
+
}
|
|
26
|
+
export interface MultipleChoiceQuestion extends BaseQuestion {
|
|
27
|
+
questionType: 'multiple_choice';
|
|
28
|
+
options: QuestionOption[];
|
|
29
|
+
correctAnswerId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface MultipleResponseQuestion extends BaseQuestion {
|
|
32
|
+
questionType: 'multiple_response';
|
|
33
|
+
options: QuestionOption[];
|
|
34
|
+
correctAnswerIds: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface FillInTheBlanksQuestion extends BaseQuestion {
|
|
37
|
+
questionType: 'fill_in_the_blanks';
|
|
38
|
+
segments: {
|
|
39
|
+
type: 'text' | 'blank';
|
|
40
|
+
content?: RichContentString;
|
|
41
|
+
id?: string;
|
|
42
|
+
}[];
|
|
43
|
+
answers: {
|
|
44
|
+
blankId: string;
|
|
45
|
+
acceptedValues: string[];
|
|
46
|
+
}[];
|
|
47
|
+
isCaseSensitive?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface DraggableItem {
|
|
50
|
+
id: string;
|
|
51
|
+
content: RichContentString;
|
|
52
|
+
}
|
|
53
|
+
export interface DropZone {
|
|
54
|
+
id: string;
|
|
55
|
+
label: RichContentString;
|
|
56
|
+
}
|
|
57
|
+
export interface DragAndDropQuestion extends BaseQuestion {
|
|
58
|
+
questionType: 'drag_and_drop';
|
|
59
|
+
draggableItems: DraggableItem[];
|
|
60
|
+
dropZones: DropZone[];
|
|
61
|
+
answerMap: {
|
|
62
|
+
draggableId: string;
|
|
63
|
+
dropZoneId: string;
|
|
64
|
+
}[];
|
|
65
|
+
backgroundImageUrl?: string;
|
|
66
|
+
imageAltText?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface TrueFalseQuestion extends BaseQuestion {
|
|
69
|
+
questionType: 'true_false';
|
|
70
|
+
correctAnswer: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface ShortAnswerQuestion extends BaseQuestion {
|
|
73
|
+
questionType: 'short_answer';
|
|
74
|
+
acceptedAnswers: string[];
|
|
75
|
+
isCaseSensitive?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface NumericQuestion extends BaseQuestion {
|
|
78
|
+
questionType: 'numeric';
|
|
79
|
+
answer: number;
|
|
80
|
+
tolerance?: number;
|
|
81
|
+
}
|
|
82
|
+
export interface SequenceItem {
|
|
83
|
+
id: string;
|
|
84
|
+
content: RichContentString;
|
|
85
|
+
}
|
|
86
|
+
export interface SequenceQuestion extends BaseQuestion {
|
|
87
|
+
questionType: 'sequence';
|
|
88
|
+
items: SequenceItem[];
|
|
89
|
+
correctOrder: string[];
|
|
90
|
+
}
|
|
91
|
+
export interface MatchPromptItem {
|
|
92
|
+
id: string;
|
|
93
|
+
content: RichContentString;
|
|
94
|
+
}
|
|
95
|
+
export interface MatchOptionItem {
|
|
96
|
+
id: string;
|
|
97
|
+
content: RichContentString;
|
|
98
|
+
}
|
|
99
|
+
export interface MatchingQuestion extends BaseQuestion {
|
|
100
|
+
questionType: 'matching';
|
|
101
|
+
prompts: MatchPromptItem[];
|
|
102
|
+
options: MatchOptionItem[];
|
|
103
|
+
correctAnswerMap: {
|
|
104
|
+
promptId: string;
|
|
105
|
+
optionId: string;
|
|
106
|
+
}[];
|
|
107
|
+
shuffleOptions?: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface HotspotArea {
|
|
110
|
+
id: string;
|
|
111
|
+
shape: 'rect' | 'circle';
|
|
112
|
+
coords: number[];
|
|
113
|
+
description?: RichContentString;
|
|
114
|
+
}
|
|
115
|
+
export interface HotspotQuestion extends BaseQuestion {
|
|
116
|
+
questionType: 'hotspot';
|
|
117
|
+
imageUrl: string;
|
|
118
|
+
imageAltText?: string;
|
|
119
|
+
hotspots: HotspotArea[];
|
|
120
|
+
correctHotspotIds: string[];
|
|
121
|
+
}
|
|
122
|
+
export interface BlocklyProgrammingQuestion extends BaseQuestion {
|
|
123
|
+
questionType: 'blockly_programming';
|
|
124
|
+
toolboxDefinition: string;
|
|
125
|
+
initialWorkspace?: string;
|
|
126
|
+
solutionWorkspaceXML?: string;
|
|
127
|
+
solutionGeneratedCode?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface ScratchProgrammingQuestion extends BaseQuestion {
|
|
130
|
+
questionType: 'scratch_programming';
|
|
131
|
+
toolboxDefinition: string;
|
|
132
|
+
initialWorkspace?: string;
|
|
133
|
+
solutionWorkspaceXML?: string;
|
|
134
|
+
solutionGeneratedCode?: string;
|
|
135
|
+
}
|
|
136
|
+
export type SupportedCodingLanguage = 'cpp' | 'javascript' | 'python' | 'swift' | 'csharp';
|
|
137
|
+
export interface TestCase {
|
|
138
|
+
id: string;
|
|
139
|
+
input: any[];
|
|
140
|
+
expectedOutput: any;
|
|
141
|
+
isPublic: boolean;
|
|
142
|
+
}
|
|
143
|
+
export interface CodingQuestion extends BaseQuestion {
|
|
144
|
+
questionType: 'coding';
|
|
145
|
+
codingLanguage: SupportedCodingLanguage;
|
|
146
|
+
solutionCode: string;
|
|
147
|
+
testCases: TestCase[];
|
|
148
|
+
functionSignature?: string;
|
|
149
|
+
}
|
|
150
|
+
export type QuizQuestion = MultipleChoiceQuestion | MultipleResponseQuestion | FillInTheBlanksQuestion | DragAndDropQuestion | TrueFalseQuestion | ShortAnswerQuestion | NumericQuestion | SequenceQuestion | MatchingQuestion | HotspotQuestion | BlocklyProgrammingQuestion | ScratchProgrammingQuestion | CodingQuestion;
|
|
151
|
+
//# sourceMappingURL=questions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/types/questions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,mBAAmB,GACnB,oBAAoB,GACpB,eAAe,GACf,YAAY,GACZ,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,GACV,SAAS,GACT,qBAAqB,GACrB,qBAAqB,GACrB,QAAQ,CAAC;AAEb,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,mBAAmB,CAAC;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM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MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3F,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,YAAY,EAAE,QAAQ,CAAC;IACvB,cAAc,EAAE,uBAAuB,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,YAAY,GACpB,sBAAsB,GACtB,wBAAwB,GACxB,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,0BAA0B,GAC1B,0BAA0B,GAC1B,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QuizQuestion } from './questions';
|
|
2
|
+
import { QuizSettings } from './quiz-settings';
|
|
3
|
+
import { RichContentString } from './common';
|
|
4
|
+
export interface QuizConfig {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: RichContentString;
|
|
8
|
+
questions: QuizQuestion[];
|
|
9
|
+
settings?: QuizSettings;
|
|
10
|
+
version?: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=quiz-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quiz-config.d.ts","sourceRoot":"","sources":["../../src/types/quiz-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { QuizQuestion } from './questions';
|
|
2
|
+
import { QuizConfig } from './quiz-config';
|
|
3
|
+
import { QuizResultType, UserAnswerType } from './results';
|
|
4
|
+
export interface QuizEngineCallbacks {
|
|
5
|
+
onQuizStart?: (initialData: {
|
|
6
|
+
initialQuestion: QuizQuestion | null;
|
|
7
|
+
currentQuestionNumber: number;
|
|
8
|
+
totalQuestions: number;
|
|
9
|
+
timeLimitInSeconds: number | null;
|
|
10
|
+
scormStatus?: QuizResultType['scormStatus'];
|
|
11
|
+
studentName?: string;
|
|
12
|
+
}) => void;
|
|
13
|
+
onQuestionChange?: (question: QuizQuestion | null, currentQuestionNumber: number, totalQuestions: number) => void;
|
|
14
|
+
onAnswerSubmit?: (question: QuizQuestion, userAnswer: UserAnswerType) => void;
|
|
15
|
+
onQuizFinish?: (results: QuizResultType) => void;
|
|
16
|
+
onTimeTick?: (timeLeftInSeconds: number) => void;
|
|
17
|
+
onQuizTimeUp?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface QuizEngineConstructorOptions {
|
|
20
|
+
config: QuizConfig;
|
|
21
|
+
callbacks?: QuizEngineCallbacks;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=quiz-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quiz-engine.d.ts","sourceRoot":"","sources":["../../src/types/quiz-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE;QAC1B,eAAe,EAAE,YAAY,GAAG,IAAI,CAAC;QACrC,qBAAqB,EAAE,MAAM,CAAC;QAC9B,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;QAClC,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;QAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,KAAK,IAAI,CAAC;IACX,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IAClH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9E,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface SCORMSettings {
|
|
2
|
+
version: "1.2" | "2004";
|
|
3
|
+
setCompletionOnFinish?: boolean;
|
|
4
|
+
setSuccessOnPass?: boolean;
|
|
5
|
+
autoCommit?: boolean;
|
|
6
|
+
studentNameVar?: string;
|
|
7
|
+
lessonStatusVar?: string;
|
|
8
|
+
scoreRawVar?: string;
|
|
9
|
+
scoreMaxVar?: string;
|
|
10
|
+
scoreMinVar?: string;
|
|
11
|
+
sessionTimeVar?: string;
|
|
12
|
+
exitVar?: string;
|
|
13
|
+
suspendDataVar?: string;
|
|
14
|
+
lessonStatusVar_1_2?: string;
|
|
15
|
+
scoreRawVar_1_2?: string;
|
|
16
|
+
scoreMaxVar_1_2?: string;
|
|
17
|
+
scoreMinVar_1_2?: string;
|
|
18
|
+
completionStatusVar_2004?: string;
|
|
19
|
+
successStatusVar_2004?: string;
|
|
20
|
+
scoreScaledVar_2004?: string;
|
|
21
|
+
scoreRawVar_2004?: string;
|
|
22
|
+
scoreMaxVar_2004?: string;
|
|
23
|
+
scoreMinVar_2004?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface QuizSettings {
|
|
26
|
+
language?: string;
|
|
27
|
+
shuffleQuestions?: boolean;
|
|
28
|
+
shuffleOptions?: boolean;
|
|
29
|
+
timeLimitMinutes?: number;
|
|
30
|
+
showCorrectAnswers?: 'immediately' | 'end_of_quiz' | 'never';
|
|
31
|
+
passingScorePercent?: number;
|
|
32
|
+
webhookUrl?: string;
|
|
33
|
+
scorm?: SCORMSettings;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=quiz-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quiz-settings.d.ts","sourceRoot":"","sources":["../../src/types/quiz-settings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,OAAO,CAAC;IAC7D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { QuestionTypeStrings } from './questions';
|
|
2
|
+
import { RichContentString } from './common';
|
|
3
|
+
export interface TestCaseResult {
|
|
4
|
+
testCaseId: string;
|
|
5
|
+
passed: boolean;
|
|
6
|
+
actualOutput: any;
|
|
7
|
+
reasoning: string;
|
|
8
|
+
}
|
|
9
|
+
export type UserAnswerType = string | string[] | Record<string, string> | boolean | null;
|
|
10
|
+
export type UserAnswers = Map<string, UserAnswerType>;
|
|
11
|
+
export interface PerformanceMetric {
|
|
12
|
+
totalQuestions: number;
|
|
13
|
+
correctQuestions: number;
|
|
14
|
+
pointsEarned: number;
|
|
15
|
+
maxPoints: number;
|
|
16
|
+
percentage: number;
|
|
17
|
+
}
|
|
18
|
+
export interface PerformanceByLearningObjective extends PerformanceMetric {
|
|
19
|
+
learningObjective: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PerformanceByCategory extends PerformanceMetric {
|
|
22
|
+
category: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PerformanceByTopic extends PerformanceMetric {
|
|
25
|
+
topic: string;
|
|
26
|
+
}
|
|
27
|
+
export interface PerformanceByDifficulty extends PerformanceMetric {
|
|
28
|
+
difficulty: string;
|
|
29
|
+
}
|
|
30
|
+
export interface PerformanceByBloomLevel extends PerformanceMetric {
|
|
31
|
+
bloomLevel: string;
|
|
32
|
+
}
|
|
33
|
+
export type AnswerDetail = {
|
|
34
|
+
id: string | string[] | null;
|
|
35
|
+
value: RichContentString | RichContentString[] | Record<string, RichContentString> | boolean | number | null;
|
|
36
|
+
};
|
|
37
|
+
export interface QuizResultType {
|
|
38
|
+
quizTitle?: string;
|
|
39
|
+
score: number;
|
|
40
|
+
maxScore: number;
|
|
41
|
+
percentage: number;
|
|
42
|
+
answers: UserAnswers;
|
|
43
|
+
passed?: boolean;
|
|
44
|
+
questionResults: Array<{
|
|
45
|
+
questionId: string;
|
|
46
|
+
questionType: QuestionTypeStrings;
|
|
47
|
+
prompt: RichContentString;
|
|
48
|
+
isCorrect: boolean;
|
|
49
|
+
pointsEarned: number;
|
|
50
|
+
userAnswer: AnswerDetail | null;
|
|
51
|
+
correctAnswer: AnswerDetail | null;
|
|
52
|
+
allOptions?: {
|
|
53
|
+
id: string;
|
|
54
|
+
value: RichContentString;
|
|
55
|
+
}[];
|
|
56
|
+
timeSpentSeconds?: number;
|
|
57
|
+
evaluationDetails?: TestCaseResult[];
|
|
58
|
+
}>;
|
|
59
|
+
webhookStatus?: 'idle' | 'sending' | 'success' | 'error';
|
|
60
|
+
webhookError?: string;
|
|
61
|
+
scormStatus?: 'idle' | 'no_api' | 'initializing' | 'initialized' | 'sending_data' | 'committed' | 'terminated' | 'error';
|
|
62
|
+
scormError?: string;
|
|
63
|
+
studentName?: string;
|
|
64
|
+
totalTimeSpentSeconds?: number;
|
|
65
|
+
averageTimePerQuestionSeconds?: number;
|
|
66
|
+
performanceByLearningObjective?: PerformanceByLearningObjective[];
|
|
67
|
+
performanceByCategory?: PerformanceByCategory[];
|
|
68
|
+
performanceByTopic?: PerformanceByTopic[];
|
|
69
|
+
performanceByDifficulty?: PerformanceByDifficulty[];
|
|
70
|
+
performanceByBloomLevel?: PerformanceByBloomLevel[];
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/types/results.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,MAAM,EAAE,GACR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtB,OAAO,GACP,IAAI,CAAC;AAET,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB;IACvE,iBAAiB,EAAE,MAAM,CAA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C;KACtC,CAAC,CAAC;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC;IACzH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,8BAA8B,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAClE,qBAAqB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC1C,uBAAuB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpD,uBAAuB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACrD"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type { RichContentString, MarkdownString } from "./types/common";
|
|
2
|
+
export * from "./types/metadata";
|
|
3
|
+
export * from "./types/question-bank";
|
|
4
|
+
export type { LearningObjective } from "./types/learning-objectives";
|
|
5
|
+
export type { QuestionTypeStrings, BaseQuestion, MultipleChoiceQuestion, MultipleResponseQuestion, FillInTheBlanksQuestion, DragAndDropQuestion, TrueFalseQuestion, ShortAnswerQuestion, NumericQuestion, SequenceQuestion, MatchingQuestion, HotspotQuestion, BlocklyProgrammingQuestion, ScratchProgrammingQuestion, CodingQuestion, QuizQuestion, QuestionOption, SequenceItem, MatchPromptItem, MatchOptionItem, DraggableItem, DropZone, HotspotArea, TestCase, SupportedCodingLanguage, } from "./types/questions";
|
|
6
|
+
export type { SCORMSettings, QuizSettings } from "./types/quiz-settings";
|
|
7
|
+
export type { QuizConfig } from "./types/quiz-config";
|
|
8
|
+
export type { UserAnswerType, UserAnswers, PerformanceByLearningObjective, PerformanceByCategory, PerformanceByTopic, PerformanceByDifficulty, PerformanceByBloomLevel, PerformanceMetric, AnswerDetail, QuizResultType, TestCaseResult, } from "./types/results";
|
|
9
|
+
export type { QuizEngineCallbacks, QuizEngineConstructorOptions, } from "./types/quiz-engine";
|
|
10
|
+
export type { ImportError, QuestionReview, QuizReviewContent, Achievement, AchievementDefinition, PracticeDifficulty, PracticeSuggestionTopic, PracticeSuggestion, KnowledgeCard, PracticeSession, PracticeStats, PracticeSessionSummary, PracticeTopicSummary, ActivityCalendarData, PerformanceSummary, ImageContextItem, } from "./types/misc";
|
|
11
|
+
export type { RoadmapItem, WeeklyRoadmap, AnalysisReport, LearningAnalysis, DashboardCardId, DashboardCardConfig, DashboardLayout, ChatMessage, ChatContext, GoalType, Goal, } from "./types/ai-ecosystem";
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAExE,cAAc,kBAAkB,CAAC;AAEjC,cAAc,uBAAuB,CAAC;AAEtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,YAAY,EACX,mBAAmB,EACnB,YAAY,EAEZ,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,YAAY,EAEZ,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,aAAa,EACb,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,uBAAuB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEzE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,YAAY,EACX,cAAc,EACd,WAAW,EACX,8BAA8B,EAC9B,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,cAAc,GACd,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACX,mBAAmB,EACnB,4BAA4B,GAC5B,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACX,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GAChB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACX,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,WAAW,EACX,QAAQ,EACR,IAAI,GACJ,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Part } from '@google/genai';
|
|
2
|
+
/**
|
|
3
|
+
* Fetches an image from a URL and converts it into a Google GenAI GenerativePart object.
|
|
4
|
+
* This is necessary for making multimodal requests.
|
|
5
|
+
* @param url The public URL of the image to fetch.
|
|
6
|
+
* @param mimeType The MIME type of the image (e.g., 'image/png', 'image/jpeg').
|
|
7
|
+
* @returns A Promise that resolves to a Part object for the AI model.
|
|
8
|
+
* @throws An error if the image fetch fails.
|
|
9
|
+
*/
|
|
10
|
+
export declare function urlToGenerativePart(url: string, mimeType: string): Promise<Part>;
|
|
11
|
+
//# sourceMappingURL=aiUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiUtils.d.ts","sourceRoot":"","sources":["../../src/utils/aiUtils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYtF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for configuring the retry mechanism.
|
|
3
|
+
*/
|
|
4
|
+
export interface RetryOptions {
|
|
5
|
+
/** The total number of attempts (1 initial + retries). Defaults to 3. */
|
|
6
|
+
attempts?: number;
|
|
7
|
+
/** The delay in milliseconds between retries. Defaults to 1000ms. */
|
|
8
|
+
delayMs?: number;
|
|
9
|
+
/** An optional callback function that is called upon each failed attempt before the delay. */
|
|
10
|
+
onRetry?: (error: Error, attempt: number) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A higher-order function that wraps an asynchronous function with a retry mechanism.
|
|
14
|
+
*
|
|
15
|
+
* @template T The expected return type of the async function.
|
|
16
|
+
* @param asyncFn The asynchronous function to execute and retry upon failure.
|
|
17
|
+
* @param options Configuration for the retry behavior.
|
|
18
|
+
* @returns A promise that resolves with the result of the `asyncFn` if it succeeds,
|
|
19
|
+
* or rejects with the last error if all attempts fail.
|
|
20
|
+
*/
|
|
21
|
+
export declare function withRetry<T>(asyncFn: () => Promise<T>, options?: RetryOptions): Promise<T>;
|
|
22
|
+
//# sourceMappingURL=asyncUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncUtils.d.ts","sourceRoot":"","sources":["../../src/utils/asyncUtils.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8FAA8F;IAC9F,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,CAAC,CAAC,CA4BZ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface DebugConfig {
|
|
2
|
+
logPrompts: boolean;
|
|
3
|
+
logResponses: boolean;
|
|
4
|
+
logValidation: boolean;
|
|
5
|
+
logRetryDetails: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEBUG_CONFIG: DebugConfig;
|
|
8
|
+
export interface AttemptResult {
|
|
9
|
+
success: boolean;
|
|
10
|
+
duration: number;
|
|
11
|
+
error?: string;
|
|
12
|
+
promptLength: number;
|
|
13
|
+
responseLength?: number;
|
|
14
|
+
promptHash?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class DebugLogger {
|
|
17
|
+
private static formatTimestamp;
|
|
18
|
+
static logPrompt(attempt: number, prompt: string, inputContext: any): void;
|
|
19
|
+
static logResponse(attempt: number, rawResponse: string): void;
|
|
20
|
+
static logValidation(attempt: number, step: string, data: any): void;
|
|
21
|
+
static logRetryInfo(attempt: number, error: Error, willRetry: boolean): void;
|
|
22
|
+
static logAttemptSummary(attemptResults: AttemptResult[]): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=debug-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-logger.d.ts","sourceRoot":"","sources":["../../src/utils/debug-logger.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,EAAE,WAK1B,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAOD,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAC,eAAe;IAI9B,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,IAAI;IAa1E,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAY9D,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;IAOpE,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI;IAc5E,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE,aAAa,EAAE,GAAG,IAAI;CAehE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formattedDate.d.ts","sourceRoot":"","sources":["../../src/utils/formattedDate.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,cAM5B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idGenerators.d.ts","sourceRoot":"","sources":["../../src/utils/idGenerators.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,MAAc,GAAG,MAAM,CAE/D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts a JSON string from a larger text block, often returned by an AI.
|
|
3
|
+
* Enhanced version with advanced error recovery and repair capabilities.
|
|
4
|
+
*
|
|
5
|
+
* @param text The raw text output from the AI.
|
|
6
|
+
* @returns A string that is a valid JSON object or array.
|
|
7
|
+
* @throws An error if a valid JSON string cannot be extracted or repaired.
|
|
8
|
+
*/
|
|
9
|
+
export declare function extractJsonFromMarkdown(text: string): string;
|
|
10
|
+
export declare function debugJsonExtraction(text: string): {
|
|
11
|
+
originalText: string;
|
|
12
|
+
textLength: number;
|
|
13
|
+
hasMarkdownBlocks: boolean;
|
|
14
|
+
potentialJsonStarts: number[];
|
|
15
|
+
extractionResult?: string;
|
|
16
|
+
extractionError?: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=jsonUtils.d.ts.map
|