@lessonkit/lxpack 1.6.0 → 1.7.1
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/README.md +1 -1
- package/dist/bridge.cjs +4 -0
- package/dist/bridge.js +4 -0
- package/dist/index.cjs +426 -129
- package/dist/index.d.cts +51 -2
- package/dist/index.d.ts +51 -2
- package/dist/index.js +417 -121
- package/lessonkit-manifest.v1.json +69 -2
- package/package.json +10 -10
|
@@ -90,7 +90,10 @@
|
|
|
90
90
|
{ "$ref": "#/$defs/TrueFalseAssessmentDescriptor" },
|
|
91
91
|
{ "$ref": "#/$defs/FillInBlanksAssessmentDescriptor" },
|
|
92
92
|
{ "$ref": "#/$defs/FindHotspotAssessmentDescriptor" },
|
|
93
|
-
{ "$ref": "#/$defs/FindMultipleHotspotsAssessmentDescriptor" }
|
|
93
|
+
{ "$ref": "#/$defs/FindMultipleHotspotsAssessmentDescriptor" },
|
|
94
|
+
{ "$ref": "#/$defs/SortParagraphsAssessmentDescriptor" },
|
|
95
|
+
{ "$ref": "#/$defs/GuessTheAnswerAssessmentDescriptor" },
|
|
96
|
+
{ "$ref": "#/$defs/MultimediaChoiceAssessmentDescriptor" }
|
|
94
97
|
]
|
|
95
98
|
},
|
|
96
99
|
"AssessmentBase": {
|
|
@@ -114,7 +117,18 @@
|
|
|
114
117
|
"minItems": 1,
|
|
115
118
|
"items": { "type": "string", "minLength": 1 }
|
|
116
119
|
},
|
|
117
|
-
"answer": { "type": "string", "minLength": 1 }
|
|
120
|
+
"answer": { "type": "string", "minLength": 1 },
|
|
121
|
+
"answers": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"minItems": 1,
|
|
124
|
+
"items": { "type": "string", "minLength": 1 }
|
|
125
|
+
},
|
|
126
|
+
"shuffleChoices": { "type": "boolean" },
|
|
127
|
+
"shuffleSeed": { "oneOf": [{ "type": "string" }, { "type": "number" }] },
|
|
128
|
+
"choiceFeedback": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": { "type": "string" }
|
|
131
|
+
}
|
|
118
132
|
},
|
|
119
133
|
"required": ["choices", "answer"]
|
|
120
134
|
}
|
|
@@ -190,6 +204,59 @@
|
|
|
190
204
|
}
|
|
191
205
|
}
|
|
192
206
|
]
|
|
207
|
+
},
|
|
208
|
+
"SortParagraphsAssessmentDescriptor": {
|
|
209
|
+
"allOf": [
|
|
210
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
211
|
+
{
|
|
212
|
+
"type": "object",
|
|
213
|
+
"required": ["kind", "paragraphs", "correctOrder"],
|
|
214
|
+
"properties": {
|
|
215
|
+
"kind": { "const": "sortParagraphs" },
|
|
216
|
+
"paragraphs": {
|
|
217
|
+
"type": "array",
|
|
218
|
+
"minItems": 1,
|
|
219
|
+
"items": { "type": "string", "minLength": 1 }
|
|
220
|
+
},
|
|
221
|
+
"correctOrder": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"minItems": 1,
|
|
224
|
+
"items": { "type": "integer", "minimum": 0 }
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"GuessTheAnswerAssessmentDescriptor": {
|
|
231
|
+
"allOf": [
|
|
232
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
233
|
+
{
|
|
234
|
+
"type": "object",
|
|
235
|
+
"required": ["kind", "answer"],
|
|
236
|
+
"properties": {
|
|
237
|
+
"kind": { "const": "guessTheAnswer" },
|
|
238
|
+
"answer": { "type": "string", "minLength": 1 }
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"MultimediaChoiceAssessmentDescriptor": {
|
|
244
|
+
"allOf": [
|
|
245
|
+
{ "$ref": "#/$defs/AssessmentBase" },
|
|
246
|
+
{
|
|
247
|
+
"type": "object",
|
|
248
|
+
"required": ["kind", "choices", "answer"],
|
|
249
|
+
"properties": {
|
|
250
|
+
"kind": { "const": "multimediaChoice" },
|
|
251
|
+
"choices": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"minItems": 1,
|
|
254
|
+
"items": { "type": "string", "minLength": 1 }
|
|
255
|
+
},
|
|
256
|
+
"answer": { "type": "string", "minLength": 1 }
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
193
260
|
}
|
|
194
261
|
}
|
|
195
262
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessonkit/lxpack",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LXPack export adapter for LessonKit courses (SCORM, standalone, xAPI, cmi5).",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"block-tree.v1.json"
|
|
51
51
|
],
|
|
52
52
|
"scripts": {
|
|
53
|
-
"build": "tsup src/index.ts src/bridge.ts --format esm,cjs --dts",
|
|
54
|
-
"dev": "tsup src/index.ts src/bridge.ts --format esm,cjs --dts --watch",
|
|
53
|
+
"build": "tsup src/index.ts src/bridge.ts --format esm,cjs --dts --tsconfig tsconfig.build.json",
|
|
54
|
+
"dev": "tsup src/index.ts src/bridge.ts --format esm,cjs --dts --watch --tsconfig tsconfig.build.json",
|
|
55
55
|
"prepublishOnly": "npm run build",
|
|
56
56
|
"typecheck": "tsc -p tsconfig.json",
|
|
57
57
|
"test": "vitest run --passWithNoTests",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"lint": "eslint --max-warnings 0 \"src/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\""
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@lessonkit/core": "1.
|
|
63
|
-
"@lessonkit/themes": "1.
|
|
64
|
-
"@lxpack/api": "0.
|
|
65
|
-
"@lxpack/spa-bridge": "0.
|
|
66
|
-
"@lxpack/tracking-schema": "0.
|
|
67
|
-
"@lxpack/validators": "0.
|
|
62
|
+
"@lessonkit/core": "1.7.1",
|
|
63
|
+
"@lessonkit/themes": "1.7.1",
|
|
64
|
+
"@lxpack/api": "0.7.0",
|
|
65
|
+
"@lxpack/spa-bridge": "0.7.0",
|
|
66
|
+
"@lxpack/tracking-schema": "0.7.0",
|
|
67
|
+
"@lxpack/validators": "0.7.0",
|
|
68
68
|
"fflate": "^0.8.3"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@lessonkit/react": "1.
|
|
71
|
+
"@lessonkit/react": "1.7.1",
|
|
72
72
|
"@types/node": "^25.9.2",
|
|
73
73
|
"tsup": "^8.5.0",
|
|
74
74
|
"typescript": "^6.0.3",
|