@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.
Files changed (76) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{ai-zhc9yhRj.d.cts → ai-Cu17iVHa.d.cts} +429 -2
  3. package/dist/ai-Cu17iVHa.d.cts.map +1 -0
  4. package/dist/{ai-zhc9yhRj.d.ts → ai-Cu17iVHa.d.ts} +429 -2
  5. package/dist/ai-Cu17iVHa.d.ts.map +1 -0
  6. package/dist/ai-check.cjs +2 -2
  7. package/dist/ai-check.d.cts +1 -1
  8. package/dist/ai-check.d.ts +1 -1
  9. package/dist/ai-check.js +2 -2
  10. package/dist/{ai-writing-BaaiuU5t.js → ai-writing-BgeeCOl7.js} +22 -5
  11. package/dist/ai-writing-BgeeCOl7.js.map +1 -0
  12. package/dist/{ai-writing-_wciTWaI.cjs → ai-writing-gO4GRscd.cjs} +27 -4
  13. package/dist/ai-writing-gO4GRscd.cjs.map +1 -0
  14. package/dist/{index-DGmcCid6.d.ts → index-B1zEN1Ur.d.ts} +2 -2
  15. package/dist/{index-DGmcCid6.d.ts.map → index-B1zEN1Ur.d.ts.map} +1 -1
  16. package/dist/{index-Byar5VVs.d.ts → index-BTZWUwOe.d.ts} +2 -2
  17. package/dist/{index-Byar5VVs.d.ts.map → index-BTZWUwOe.d.ts.map} +1 -1
  18. package/dist/{index-f4YuMgFb.d.ts → index-BfUyl6ml.d.ts} +2 -2
  19. package/dist/{index-f4YuMgFb.d.ts.map → index-BfUyl6ml.d.ts.map} +1 -1
  20. package/dist/{index-BBmID0a6.d.cts → index-CpamCGyZ.d.cts} +2 -2
  21. package/dist/{index-BBmID0a6.d.cts.map → index-CpamCGyZ.d.cts.map} +1 -1
  22. package/dist/{index-BeC8tAWf.d.cts → index-DYnacygI.d.cts} +2 -2
  23. package/dist/{index-BeC8tAWf.d.cts.map → index-DYnacygI.d.cts.map} +1 -1
  24. package/dist/{index-Ccj8oL_E.d.cts → index-DjZ1vIVg.d.cts} +2 -2
  25. package/dist/{index-Ccj8oL_E.d.cts.map → index-DjZ1vIVg.d.cts.map} +1 -1
  26. package/dist/index.cjs +762 -6
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +200 -5
  29. package/dist/index.d.cts.map +1 -1
  30. package/dist/index.d.ts +200 -5
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +733 -7
  33. package/dist/index.js.map +1 -1
  34. package/dist/item-group-CRZNJ08j.cjs +1548 -0
  35. package/dist/item-group-CRZNJ08j.cjs.map +1 -0
  36. package/dist/item-group-CnlBLM9Z.js +1374 -0
  37. package/dist/item-group-CnlBLM9Z.js.map +1 -0
  38. package/dist/{registry-Bw9grsCN.js → registry-BClnM5V3.js} +29 -1
  39. package/dist/registry-BClnM5V3.js.map +1 -0
  40. package/dist/{registry-C9O9txy5.cjs → registry-DgLcT4rZ.cjs} +29 -1
  41. package/dist/registry-DgLcT4rZ.cjs.map +1 -0
  42. package/dist/{schemas-DcEAuAeU.cjs → schemas-BA8Y8z-S.cjs} +3 -3
  43. package/dist/{schemas-DcEAuAeU.cjs.map → schemas-BA8Y8z-S.cjs.map} +1 -1
  44. package/dist/{schemas-D14-tnNl.js → schemas-VZnN68qG.js} +3 -3
  45. package/dist/{schemas-D14-tnNl.js.map → schemas-VZnN68qG.js.map} +1 -1
  46. package/dist/schemas.cjs +3 -3
  47. package/dist/schemas.d.cts +1 -1
  48. package/dist/schemas.d.ts +1 -1
  49. package/dist/schemas.js +3 -3
  50. package/dist/{scoring-hMsEMhCU.js → scoring-BxDiwN7I.js} +2 -2
  51. package/dist/{scoring-hMsEMhCU.js.map → scoring-BxDiwN7I.js.map} +1 -1
  52. package/dist/{scoring-Bmfu8RS5.cjs → scoring-Cfu_2qQ1.cjs} +2 -2
  53. package/dist/{scoring-Bmfu8RS5.cjs.map → scoring-Cfu_2qQ1.cjs.map} +1 -1
  54. package/dist/scoring.cjs +2 -2
  55. package/dist/scoring.d.cts +2 -2
  56. package/dist/scoring.d.ts +2 -2
  57. package/dist/scoring.js +2 -2
  58. package/dist/{xapi-DOAqH9__.cjs → xapi-BhROEuZQ.cjs} +2 -2
  59. package/dist/{xapi-DOAqH9__.cjs.map → xapi-BhROEuZQ.cjs.map} +1 -1
  60. package/dist/{xapi-BtBm8AWZ.js → xapi-BitXmAYB.js} +2 -2
  61. package/dist/{xapi-BtBm8AWZ.js.map → xapi-BitXmAYB.js.map} +1 -1
  62. package/dist/xapi.cjs +1 -1
  63. package/dist/xapi.d.cts +1 -1
  64. package/dist/xapi.d.ts +1 -1
  65. package/dist/xapi.js +1 -1
  66. package/package.json +1 -1
  67. package/dist/ai-writing-BaaiuU5t.js.map +0 -1
  68. package/dist/ai-writing-_wciTWaI.cjs.map +0 -1
  69. package/dist/ai-zhc9yhRj.d.cts.map +0 -1
  70. package/dist/ai-zhc9yhRj.d.ts.map +0 -1
  71. package/dist/item-group-C9boy5Mk.cjs +0 -513
  72. package/dist/item-group-C9boy5Mk.cjs.map +0 -1
  73. package/dist/item-group-Cqng1LPl.js +0 -453
  74. package/dist/item-group-Cqng1LPl.js.map +0 -1
  75. package/dist/registry-Bw9grsCN.js.map +0 -1
  76. package/dist/registry-C9O9txy5.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
- const require_registry = require("./registry-C9O9txy5.cjs");
2
- const require_scoring = require("./scoring-Bmfu8RS5.cjs");
3
- const require_item_group = require("./item-group-C9boy5Mk.cjs");
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-_wciTWaI.cjs.map
5975
+ //# sourceMappingURL=ai-writing-gO4GRscd.cjs.map