feat: Introduce a VideoMarkerBlock component for interactive video questions, integrating it into the lesson editor and updating API types.

This commit is contained in:
2026-01-19 10:01:05 -03:00
parent 57594ce628
commit 21b2f12485
5 changed files with 267 additions and 17 deletions
+7 -1
View File
@@ -44,7 +44,7 @@ export interface QuizQuestion {
export interface Block {
id: string;
type: 'description' | 'media' | 'quiz' | 'fill-in-the-blanks' | 'matching' | 'ordering' | 'short-answer' | 'document';
type: 'description' | 'media' | 'quiz' | 'fill-in-the-blanks' | 'matching' | 'ordering' | 'short-answer' | 'document' | 'video_marker';
title?: string;
content?: string;
url?: string;
@@ -57,6 +57,12 @@ export interface Block {
items?: string[];
prompt?: string;
correctAnswers?: string[];
markers?: {
timestamp: number;
question: string;
options: string[];
correctIndex: number;
}[];
}
export interface Lesson {