@intellectif/lk-core 1.9.0 → 1.10.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/CHANGELOG.md +14 -0
- package/dist/ai-check.cjs +1 -1
- package/dist/ai-check.js +1 -1
- package/dist/{ai-writing-DbpZpGRk.cjs → ai-writing-B1pKVkG7.cjs} +2 -2
- package/dist/ai-writing-B1pKVkG7.cjs.map +1 -0
- package/dist/{ai-writing-DQjI9EFN.js → ai-writing-DLvzBiZN.js} +2 -2
- package/dist/ai-writing-DLvzBiZN.js.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +11 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{item-group-COP5OwEC.cjs → item-group-C9boy5Mk.cjs} +13 -4
- package/dist/item-group-C9boy5Mk.cjs.map +1 -0
- package/dist/{item-group-CKZk3txt.js → item-group-Cqng1LPl.js} +13 -4
- package/dist/item-group-Cqng1LPl.js.map +1 -0
- package/dist/{schemas-BJe3W6Xb.js → schemas-D14-tnNl.js} +2 -2
- package/dist/{schemas-BJe3W6Xb.js.map → schemas-D14-tnNl.js.map} +1 -1
- package/dist/{schemas-CXlemRvB.cjs → schemas-DcEAuAeU.cjs} +2 -2
- package/dist/{schemas-CXlemRvB.cjs.map → schemas-DcEAuAeU.cjs.map} +1 -1
- package/dist/schemas.cjs +2 -2
- package/dist/schemas.js +2 -2
- package/package.json +1 -1
- package/vectors/scoring.json +248 -1
- package/vectors/validation.json +1329 -1
- package/vectors/validation.mjs +13 -0
- package/dist/ai-writing-DQjI9EFN.js.map +0 -1
- package/dist/ai-writing-DbpZpGRk.cjs.map +0 -1
- package/dist/item-group-CKZk3txt.js.map +0 -1
- package/dist/item-group-COP5OwEC.cjs.map +0 -1
package/vectors/validation.mjs
CHANGED
|
@@ -138,6 +138,19 @@ export function validationCases(seeds) {
|
|
|
138
138
|
add(`validateItemGroup|${label}`, (core) => validation(core.validateItemGroup(input)));
|
|
139
139
|
add(`validateItemGroupDraft|${label}`, (core) => issuesOf(core.validateItemGroupDraft(input)));
|
|
140
140
|
}
|
|
141
|
+
// Interactive videos (1.10.0): one holding a spoken answer, with every
|
|
142
|
+
// variant, and one holding a written response, which a video refuses.
|
|
143
|
+
for (const [name, group] of Object.entries(seeds.timelineGroups ?? {})) {
|
|
144
|
+
const inputs = name === 'written-response' ? [['seed', group]] : variants(group);
|
|
145
|
+
for (const [label, input] of inputs) {
|
|
146
|
+
add(`validateItemGroup|timeline|${name}|${label}`, (core) =>
|
|
147
|
+
validation(core.validateItemGroup(input)),
|
|
148
|
+
);
|
|
149
|
+
add(`validateItemGroupDraft|timeline|${name}|${label}`, (core) =>
|
|
150
|
+
issuesOf(core.validateItemGroupDraft(input)),
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
141
154
|
for (const [name, assessment] of Object.entries(seeds.assessments)) {
|
|
142
155
|
for (const [label, input] of variants(assessment)) {
|
|
143
156
|
add(`validateSpeechAssessment|${name}|${label}`, (core) =>
|