@olenbetong/synergi-course
v2.2.0
Published
Course player: steps described as content, shown responsively
Readme
@olenbetong/synergi-course
The course player. A course is an ordered list of steps; each step is a step document, the
content of one slide in one language (slide, video, pdf or quiz). The package validates
step documents and plays them responsively.
import { CoursePlayer, StepView, validateStep } from "@olenbetong/synergi-course";CoursePlayerplays a course: navigation, gating on the step being done and its minimum time, language choice, subtitles, quizzes. Progress and quiz answers go through aProgressAdapterand aQuizAdapterthe app implements;resolveAssetturns media addresses into URLs.StepViewshows one step without the course chrome, for the editor.validateStep,getStepJsonSchemaand the cue helpers describe the format.
Full reference: docs/reference/synergi-course.
Stories: stories/synergi-course.
Development
pnpm --filter @olenbetong/synergi-course build
pnpm --filter @olenbetong/synergi-course testLabels are English base strings in the synergi-course globalization project, bound in
src/i18n.ts. Styles are plain CSS files beside the components, using Designsystemet tokens.
