Migrating from LessonKit 1.3.x to 1.4.0¶
Summary¶
Area |
1.3.x |
1.4.0 |
|---|---|---|
Content primitive |
— |
+ |
Compound containers |
|
+ |
Assessments |
P0 + hotspots |
+ |
Content blocks |
Tier C/D (1.2) |
+ |
Telemetry catalog v3 |
|
+ |
Block catalog v3 |
26 entries |
+ 12 new block types (38 total) |
Additive API¶
import {
Video,
InteractiveVideo,
TimedCue,
Summary,
MemoryGame,
} from "@lessonkit/react";
Interactive video example:
<InteractiveVideo blockId="safety-briefing" title="PPE overview" src="/video/ppe.mp4" showVideoScore>
<TimedCue atSeconds={30} label="Check" mustComplete>
<TrueFalse checkId="ppe-tf" question="PPE required?" answer={true} />
</TimedCue>
<TimedCue atSeconds={120}>
<Summary checkId="ppe-summary" statements={[...]} correct={[...]} />
</TimedCue>
</InteractiveVideo>
InteractiveVideo implements CompoundHandle (score aggregation, session resume) including video currentTime and completed cue indices.
Allowlists¶
SlideandPageacceptVideo,Summary, and other 1.4 blocks per H5P capability map.TimedCueaccepts scored and content blocks listed in@lessonkit/coreTIMED_CUE_ALLOWED_CHILD_TYPES(excludesParallaxSlideshow,InformationWall,Video).InteractiveVideoacceptsTimedCuechildren only.
Telemetry¶
InteractiveVideoemitsvideo_cue_reachedandvideo_segment_completed.Content blocks emit
memory_card_flipped,information_wall_search,parallax_slide_viewed,questionnaire_submittedas documented in Telemetry reference.
lessonkit.json¶
Scored children still use
assessments[]withcheckId(unchanged from 1.3.x).Compound
blockIdvalues onInteractiveVideoare not LMSlessonIds.
Golden example¶
examples/interactive-video demonstrates InteractiveVideo with TimedCue, plus Video, MemoryGame, and InformationWall.
Essay grading¶
Essay returns score 0 until a scoreAssessment plugin or manual grading workflow assigns a score. See production checklist.