@defikitdotnet/education-module-ai
Version:
AI Education Module using Agent Framework
61 lines (60 loc) • 2 kB
TypeScript
/**
* Frontend entry point for the Education Module
* Exports components, hooks, and contexts for use in external systems
*/
export * from "./models/index";
export * from "./components/H5PEditor";
import { useAuth, useCourses, useCourseContent, type CourseDetail, type ContentType } from "./hooks/index";
export { useAuth, useCourses, useCourseContent, type CourseDetail, type ContentType };
export * from "./providers/index";
export * from "./components/index";
export * from "./containers/index";
export * from "./pages/index";
/**
* Configuration interface for Education Module components
*/
export interface EducationModuleConfig {
apiBaseUrl?: string;
agentId?: string;
theme?: 'light' | 'dark';
initialUserId?: string;
isTeacher?: boolean;
isStudent?: boolean;
}
/**
* Helper function to create configuration for the Education Module
* This is useful for maintaining consistent configuration across components
*/
export declare function createEducationModuleConfig(config?: Partial<EducationModuleConfig>): EducationModuleConfig;
/**
* Function to initialize the education module in an external system
* Returns tools for working with the education module
*/
export declare function initializeEducationModule(config?: Partial<EducationModuleConfig>): {
config: EducationModuleConfig;
version: string;
name: string;
createTeacherView: () => {
type: string;
config: {
isTeacher: boolean;
apiBaseUrl?: string;
agentId?: string;
theme?: "light" | "dark";
initialUserId?: string;
isStudent?: boolean;
};
};
createStudentView: () => {
type: string;
config: {
isStudent: boolean;
apiBaseUrl?: string;
agentId?: string;
theme?: "light" | "dark";
initialUserId?: string;
isTeacher?: boolean;
};
};
};
export default initializeEducationModule;