addLesson
addLesson: (sectionId: string) => void
addSection
addSection: () => void
flush
flush: () => Promise<void>
moveBlock
moveBlock: (blockId: string, toIndex: number) => void
moveLesson
moveLesson: (lessonId: string, toSectionId: string, toIndex: number) => void
moveSection
moveSection: (sectionId: string, toIndex: number) => void
removeBlock
removeBlock: (blockId: string) => void
removeLesson
removeLesson: (lessonId: string) => void
removeSection
removeSection: (sectionId: string) => void
renameCourse
renameCourse: (title: string) => void
renameSection
renameSection: (sectionId: string, title: string) => void
selectedLessonId
selectedLessonId: string | null
selectLesson
selectLesson: (lessonId: string | null) => void
setAccess
setAccess: (lessonId: string, access: AccessRule) => void setCover
setCover: (cover: MediaRef | null) => void setCoverColor
setCoverColor: (color: string | null) => void
setDescription
setDescription: (description: string) => void
updateBlock
updateBlock: (blockId: string, patch: Partial<Block>) => void updateLessonSummary
updateLessonSummary: ( lessonId: string, patch: Partial<Omit<LessonSummary, "id" | "access">>,) => void uploadMedia: (file: File) => Promise<MediaRef>
Result of
useCourseBuilder.