@intellectif/lk-core 1.10.1 → 1.12.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 +22 -0
- package/dist/{ai-zhc9yhRj.d.cts → ai-Cu17iVHa.d.cts} +429 -2
- package/dist/ai-Cu17iVHa.d.cts.map +1 -0
- package/dist/{ai-zhc9yhRj.d.ts → ai-Cu17iVHa.d.ts} +429 -2
- package/dist/ai-Cu17iVHa.d.ts.map +1 -0
- package/dist/ai-check.cjs +2 -2
- package/dist/ai-check.d.cts +1 -1
- package/dist/ai-check.d.ts +1 -1
- package/dist/ai-check.js +2 -2
- package/dist/{ai-writing-BaaiuU5t.js → ai-writing-BgeeCOl7.js} +22 -5
- package/dist/ai-writing-BgeeCOl7.js.map +1 -0
- package/dist/{ai-writing-_wciTWaI.cjs → ai-writing-gO4GRscd.cjs} +27 -4
- package/dist/ai-writing-gO4GRscd.cjs.map +1 -0
- package/dist/{index-DGmcCid6.d.ts → index-B1zEN1Ur.d.ts} +2 -2
- package/dist/{index-DGmcCid6.d.ts.map → index-B1zEN1Ur.d.ts.map} +1 -1
- package/dist/{index-Byar5VVs.d.ts → index-BTZWUwOe.d.ts} +2 -2
- package/dist/{index-Byar5VVs.d.ts.map → index-BTZWUwOe.d.ts.map} +1 -1
- package/dist/{index-f4YuMgFb.d.ts → index-BfUyl6ml.d.ts} +2 -2
- package/dist/{index-f4YuMgFb.d.ts.map → index-BfUyl6ml.d.ts.map} +1 -1
- package/dist/{index-BBmID0a6.d.cts → index-CpamCGyZ.d.cts} +2 -2
- package/dist/{index-BBmID0a6.d.cts.map → index-CpamCGyZ.d.cts.map} +1 -1
- package/dist/{index-BeC8tAWf.d.cts → index-DYnacygI.d.cts} +2 -2
- package/dist/{index-BeC8tAWf.d.cts.map → index-DYnacygI.d.cts.map} +1 -1
- package/dist/{index-Ccj8oL_E.d.cts → index-DjZ1vIVg.d.cts} +2 -2
- package/dist/{index-Ccj8oL_E.d.cts.map → index-DjZ1vIVg.d.cts.map} +1 -1
- package/dist/index.cjs +762 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +200 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +200 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +733 -7
- package/dist/index.js.map +1 -1
- package/dist/item-group-CRZNJ08j.cjs +1548 -0
- package/dist/item-group-CRZNJ08j.cjs.map +1 -0
- package/dist/item-group-CnlBLM9Z.js +1374 -0
- package/dist/item-group-CnlBLM9Z.js.map +1 -0
- package/dist/{registry-Bw9grsCN.js → registry-BClnM5V3.js} +29 -1
- package/dist/registry-BClnM5V3.js.map +1 -0
- package/dist/{registry-C9O9txy5.cjs → registry-DgLcT4rZ.cjs} +29 -1
- package/dist/registry-DgLcT4rZ.cjs.map +1 -0
- package/dist/{schemas-DcEAuAeU.cjs → schemas-BA8Y8z-S.cjs} +3 -3
- package/dist/{schemas-DcEAuAeU.cjs.map → schemas-BA8Y8z-S.cjs.map} +1 -1
- package/dist/{schemas-D14-tnNl.js → schemas-VZnN68qG.js} +3 -3
- package/dist/{schemas-D14-tnNl.js.map → schemas-VZnN68qG.js.map} +1 -1
- package/dist/schemas.cjs +3 -3
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +3 -3
- package/dist/{scoring-hMsEMhCU.js → scoring-BxDiwN7I.js} +2 -2
- package/dist/{scoring-hMsEMhCU.js.map → scoring-BxDiwN7I.js.map} +1 -1
- package/dist/{scoring-Bmfu8RS5.cjs → scoring-Cfu_2qQ1.cjs} +2 -2
- package/dist/{scoring-Bmfu8RS5.cjs.map → scoring-Cfu_2qQ1.cjs.map} +1 -1
- package/dist/scoring.cjs +2 -2
- package/dist/scoring.d.cts +2 -2
- package/dist/scoring.d.ts +2 -2
- package/dist/scoring.js +2 -2
- package/dist/{xapi-DOAqH9__.cjs → xapi-BhROEuZQ.cjs} +2 -2
- package/dist/{xapi-DOAqH9__.cjs.map → xapi-BhROEuZQ.cjs.map} +1 -1
- package/dist/{xapi-BtBm8AWZ.js → xapi-BitXmAYB.js} +2 -2
- package/dist/{xapi-BtBm8AWZ.js.map → xapi-BitXmAYB.js.map} +1 -1
- package/dist/xapi.cjs +1 -1
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +1 -1
- package/package.json +1 -1
- package/dist/ai-writing-BaaiuU5t.js.map +0 -1
- package/dist/ai-writing-_wciTWaI.cjs.map +0 -1
- package/dist/ai-zhc9yhRj.d.cts.map +0 -1
- package/dist/ai-zhc9yhRj.d.ts.map +0 -1
- package/dist/item-group-C9boy5Mk.cjs +0 -513
- package/dist/item-group-C9boy5Mk.cjs.map +0 -1
- package/dist/item-group-Cqng1LPl.js +0 -453
- package/dist/item-group-Cqng1LPl.js.map +0 -1
- package/dist/registry-Bw9grsCN.js.map +0 -1
- package/dist/registry-C9O9txy5.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_registry = require("./registry-
|
|
2
|
-
const require_scoring = require("./scoring-
|
|
3
|
-
const require_item_group = require("./item-group-
|
|
1
|
+
const require_registry = require("./registry-DgLcT4rZ.cjs");
|
|
2
|
+
const require_scoring = require("./scoring-Cfu_2qQ1.cjs");
|
|
3
|
+
const require_item_group = require("./item-group-CRZNJ08j.cjs");
|
|
4
4
|
// src/ai-material.ts
|
|
5
5
|
/**
|
|
6
6
|
* What a model is told about the group a question sits in: the material the
|
|
@@ -1920,6 +1920,22 @@ function createInteractiveVideoDraft(context) {
|
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
|
+
* A new, empty reading route for an editor to start from: an item group with
|
|
1924
|
+
* a text stimulus waiting for its passage, no questions, and a route with no
|
|
1925
|
+
* questions yet. Like every new draft it is `incomplete`.
|
|
1926
|
+
*
|
|
1927
|
+
* @throws Error when `newId` returns an empty or repeated id.
|
|
1928
|
+
*/
|
|
1929
|
+
function createReadingRouteDraft(context) {
|
|
1930
|
+
return {
|
|
1931
|
+
...createItemGroupDraft(context),
|
|
1932
|
+
route: {
|
|
1933
|
+
routeVersion: "1.0",
|
|
1934
|
+
questions: []
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1923
1939
|
* Tells an unfinished testlet from a broken one — {@link validateDraft} for the
|
|
1924
1940
|
* container that holds several questions around one passage or recording.
|
|
1925
1941
|
*
|
|
@@ -2003,6 +2019,7 @@ function validateItemGroupDraftInScope(draft) {
|
|
|
2003
2019
|
else if (require_registry.isUnset(draft.stimulus)) issues.push(require_registry.issue("ig_stimulus_required", ["stimulus"], "Add the passage, recording or image the questions are about."));
|
|
2004
2020
|
issues.push(...checkItems(draft));
|
|
2005
2021
|
if (draft.timeline !== void 0 && draft.timeline !== null) issues.push(...checkTimeline(draft));
|
|
2022
|
+
if (require_registry.isRecord(draft.route)) for (const found of require_item_group.routeIssues(draft)) issues.push(require_registry.issue(found.code, found.path, found.message));
|
|
2006
2023
|
const captions = require_registry.groupCaptionsField(draft, (captionsUrl) => !require_registry.isUnwritten(captionsUrl));
|
|
2007
2024
|
if (captions !== void 0) issues.push(require_registry.issue("dc_captions_not_allowed", [
|
|
2008
2025
|
"stimulus",
|
|
@@ -5822,6 +5839,12 @@ Object.defineProperty(exports, "createItemGroupDraft", {
|
|
|
5822
5839
|
return createItemGroupDraft;
|
|
5823
5840
|
}
|
|
5824
5841
|
});
|
|
5842
|
+
Object.defineProperty(exports, "createReadingRouteDraft", {
|
|
5843
|
+
enumerable: true,
|
|
5844
|
+
get: function() {
|
|
5845
|
+
return createReadingRouteDraft;
|
|
5846
|
+
}
|
|
5847
|
+
});
|
|
5825
5848
|
Object.defineProperty(exports, "critiqueDraft", {
|
|
5826
5849
|
enumerable: true,
|
|
5827
5850
|
get: function() {
|
|
@@ -5949,4 +5972,4 @@ Object.defineProperty(exports, "validateItemGroupDraft", {
|
|
|
5949
5972
|
}
|
|
5950
5973
|
});
|
|
5951
5974
|
|
|
5952
|
-
//# sourceMappingURL=ai-writing-
|
|
5975
|
+
//# sourceMappingURL=ai-writing-gO4GRscd.cjs.map
|