@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.cjs +683 -341
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +699 -357
- package/lessonkit-manifest.v1.json +99 -7
- package/package.json +4 -4
|
@@ -82,19 +82,111 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"AssessmentDescriptor": {
|
|
85
|
+
"oneOf": [
|
|
86
|
+
{ "$ref": "#/$defs/McqAssessmentDescriptor" },
|
|
87
|
+
{ "$ref": "#/$defs/TrueFalseAssessmentDescriptor" },
|
|
88
|
+
{ "$ref": "#/$defs/FillInBlanksAssessmentDescriptor" },
|
|
89
|
+
{ "$ref": "#/$defs/FindHotspotAssessmentDescriptor" },
|
|
90
|
+
{ "$ref": "#/$defs/FindMultipleHotspotsAssessmentDescriptor" }
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"AssessmentBase": {
|
|
85
94
|
"type": "object",
|
|
86
|
-
"required": ["checkId", "question"
|
|
95
|
+
"required": ["checkId", "question"],
|
|
87
96
|
"properties": {
|
|
88
97
|
"checkId": { "$ref": "#/$defs/LessonkitId" },
|
|
89
98
|
"question": { "type": "string", "minLength": 1 },
|
|
90
|
-
"choices": {
|
|
91
|
-
"type": "array",
|
|
92
|
-
"minItems": 1,
|
|
93
|
-
"items": { "type": "string", "minLength": 1 }
|
|
94
|
-
},
|
|
95
|
-
"answer": { "type": "string", "minLength": 1 },
|
|
96
99
|
"passingScore": { "type": "number", "exclusiveMinimum": 0 }
|
|
97
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"McqAssessmentDescriptor": {
|
|
103
|
+
"allOf": [
|
|
104
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
105
|
+
{
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"kind": { "const": "mcq" },
|
|
109
|
+
"choices": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"items": { "type": "string", "minLength": 1 }
|
|
113
|
+
},
|
|
114
|
+
"answer": { "type": "string", "minLength": 1 }
|
|
115
|
+
},
|
|
116
|
+
"required": ["choices", "answer"]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"TrueFalseAssessmentDescriptor": {
|
|
121
|
+
"allOf": [
|
|
122
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
123
|
+
{
|
|
124
|
+
"type": "object",
|
|
125
|
+
"required": ["kind", "answer"],
|
|
126
|
+
"properties": {
|
|
127
|
+
"kind": { "const": "trueFalse" },
|
|
128
|
+
"answer": { "type": "boolean" }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"FillInBlanksAssessmentDescriptor": {
|
|
134
|
+
"allOf": [
|
|
135
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
136
|
+
{
|
|
137
|
+
"type": "object",
|
|
138
|
+
"required": ["kind", "template"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"kind": { "const": "fillInBlanks" },
|
|
141
|
+
"template": { "type": "string", "minLength": 1 },
|
|
142
|
+
"blanks": {
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"required": ["id", "answer"],
|
|
147
|
+
"properties": {
|
|
148
|
+
"id": { "type": "string", "minLength": 1 },
|
|
149
|
+
"answer": { "type": "string", "minLength": 1 }
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"FindHotspotAssessmentDescriptor": {
|
|
158
|
+
"allOf": [
|
|
159
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
160
|
+
{
|
|
161
|
+
"type": "object",
|
|
162
|
+
"required": ["kind", "src", "alt", "correctTargetId"],
|
|
163
|
+
"properties": {
|
|
164
|
+
"kind": { "const": "findHotspot" },
|
|
165
|
+
"src": { "type": "string", "minLength": 1 },
|
|
166
|
+
"alt": { "type": "string", "minLength": 1 },
|
|
167
|
+
"correctTargetId": { "type": "string", "minLength": 1 }
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"FindMultipleHotspotsAssessmentDescriptor": {
|
|
173
|
+
"allOf": [
|
|
174
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
175
|
+
{
|
|
176
|
+
"type": "object",
|
|
177
|
+
"required": ["kind", "src", "alt", "correctTargetIds"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"kind": { "const": "findMultipleHotspots" },
|
|
180
|
+
"src": { "type": "string", "minLength": 1 },
|
|
181
|
+
"alt": { "type": "string", "minLength": 1 },
|
|
182
|
+
"correctTargetIds": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"minItems": 1,
|
|
185
|
+
"items": { "type": "string", "minLength": 1 }
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
98
190
|
}
|
|
99
191
|
}
|
|
100
192
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessonkit/lxpack",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LXPack export adapter for LessonKit courses (SCORM, standalone, xAPI, cmi5).",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/eddiethedean/lessonkit.git",
|
|
10
10
|
"directory": "packages/lxpack"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://lessonkit.readthedocs.io/en/latest/reference/packaging.html",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/eddiethedean/lessonkit/issues"
|
|
15
15
|
},
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"lint": "echo \"(no lint configured yet)\""
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@lessonkit/core": "1.
|
|
59
|
-
"@lessonkit/themes": "1.
|
|
58
|
+
"@lessonkit/core": "1.3.0",
|
|
59
|
+
"@lessonkit/themes": "1.3.0",
|
|
60
60
|
"@lxpack/api": "^0.6.2",
|
|
61
61
|
"@lxpack/spa-bridge": "^0.6.2",
|
|
62
62
|
"@lxpack/tracking-schema": "^0.6.2",
|