@lessonkit/lxpack 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -40,8 +40,26 @@ type FillInBlanksAssessmentDescriptor = {
40
40
  }>;
41
41
  passingScore?: number;
42
42
  };
43
+ type FindHotspotAssessmentDescriptor = {
44
+ kind: "findHotspot";
45
+ checkId: CheckId;
46
+ question: string;
47
+ src: string;
48
+ alt: string;
49
+ correctTargetId: string;
50
+ passingScore?: number;
51
+ };
52
+ type FindMultipleHotspotsAssessmentDescriptor = {
53
+ kind: "findMultipleHotspots";
54
+ checkId: CheckId;
55
+ question: string;
56
+ src: string;
57
+ alt: string;
58
+ correctTargetIds: string[];
59
+ passingScore?: number;
60
+ };
43
61
  /** Discriminated assessment entries in lessonkit.json (defaults to MCQ when kind omitted). */
44
- type AssessmentDescriptor = McqAssessmentDescriptor | TrueFalseAssessmentDescriptor | FillInBlanksAssessmentDescriptor;
62
+ type AssessmentDescriptor = McqAssessmentDescriptor | TrueFalseAssessmentDescriptor | FillInBlanksAssessmentDescriptor | FindHotspotAssessmentDescriptor | FindMultipleHotspotsAssessmentDescriptor;
45
63
  type LessonkitCourseDescriptor = {
46
64
  courseId: CourseId;
47
65
  title: string;
@@ -253,7 +271,7 @@ type PackageValidationIssue = {
253
271
  type ValidatePackageInputsResult = {
254
272
  ok: true;
255
273
  outDir: string;
256
- projectRoot?: string;
274
+ projectRoot: string;
257
275
  } | {
258
276
  ok: false;
259
277
  courseDir: string;
package/dist/index.d.ts CHANGED
@@ -40,8 +40,26 @@ type FillInBlanksAssessmentDescriptor = {
40
40
  }>;
41
41
  passingScore?: number;
42
42
  };
43
+ type FindHotspotAssessmentDescriptor = {
44
+ kind: "findHotspot";
45
+ checkId: CheckId;
46
+ question: string;
47
+ src: string;
48
+ alt: string;
49
+ correctTargetId: string;
50
+ passingScore?: number;
51
+ };
52
+ type FindMultipleHotspotsAssessmentDescriptor = {
53
+ kind: "findMultipleHotspots";
54
+ checkId: CheckId;
55
+ question: string;
56
+ src: string;
57
+ alt: string;
58
+ correctTargetIds: string[];
59
+ passingScore?: number;
60
+ };
43
61
  /** Discriminated assessment entries in lessonkit.json (defaults to MCQ when kind omitted). */
44
- type AssessmentDescriptor = McqAssessmentDescriptor | TrueFalseAssessmentDescriptor | FillInBlanksAssessmentDescriptor;
62
+ type AssessmentDescriptor = McqAssessmentDescriptor | TrueFalseAssessmentDescriptor | FillInBlanksAssessmentDescriptor | FindHotspotAssessmentDescriptor | FindMultipleHotspotsAssessmentDescriptor;
45
63
  type LessonkitCourseDescriptor = {
46
64
  courseId: CourseId;
47
65
  title: string;
@@ -253,7 +271,7 @@ type PackageValidationIssue = {
253
271
  type ValidatePackageInputsResult = {
254
272
  ok: true;
255
273
  outDir: string;
256
- projectRoot?: string;
274
+ projectRoot: string;
257
275
  } | {
258
276
  ok: false;
259
277
  courseDir: string;