@intellectif/lk-core 1.11.0 → 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 (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/ai-check.cjs +2 -2
  3. package/dist/ai-check.js +2 -2
  4. package/dist/{ai-writing-Dl1bJQbL.js → ai-writing-BgeeCOl7.js} +4 -4
  5. package/dist/{ai-writing-Dl1bJQbL.js.map → ai-writing-BgeeCOl7.js.map} +1 -1
  6. package/dist/{ai-writing-C7f6aKNW.cjs → ai-writing-gO4GRscd.cjs} +4 -4
  7. package/dist/{ai-writing-C7f6aKNW.cjs.map → ai-writing-gO4GRscd.cjs.map} +1 -1
  8. package/dist/index.cjs +7 -6
  9. package/dist/index.d.cts +14 -1
  10. package/dist/index.d.cts.map +1 -1
  11. package/dist/index.d.ts +14 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +7 -7
  14. package/dist/{item-group-D7M3E7K2.cjs → item-group-CRZNJ08j.cjs} +49 -7
  15. package/dist/item-group-CRZNJ08j.cjs.map +1 -0
  16. package/dist/{item-group-uNAT5EX5.js → item-group-CnlBLM9Z.js} +44 -8
  17. package/dist/item-group-CnlBLM9Z.js.map +1 -0
  18. package/dist/{registry-kTqbi4Lb.js → registry-BClnM5V3.js} +2 -1
  19. package/dist/registry-BClnM5V3.js.map +1 -0
  20. package/dist/{registry-RPfZZEqi.cjs → registry-DgLcT4rZ.cjs} +2 -1
  21. package/dist/registry-DgLcT4rZ.cjs.map +1 -0
  22. package/dist/{schemas-C4V5wfOS.cjs → schemas-BA8Y8z-S.cjs} +3 -3
  23. package/dist/{schemas-C4V5wfOS.cjs.map → schemas-BA8Y8z-S.cjs.map} +1 -1
  24. package/dist/{schemas-rDgIN4Vu.js → schemas-VZnN68qG.js} +3 -3
  25. package/dist/{schemas-rDgIN4Vu.js.map → schemas-VZnN68qG.js.map} +1 -1
  26. package/dist/schemas.cjs +3 -3
  27. package/dist/schemas.js +3 -3
  28. package/dist/{scoring-DshU9i7e.js → scoring-BxDiwN7I.js} +2 -2
  29. package/dist/{scoring-DshU9i7e.js.map → scoring-BxDiwN7I.js.map} +1 -1
  30. package/dist/{scoring-KpYfR0lO.cjs → scoring-Cfu_2qQ1.cjs} +2 -2
  31. package/dist/{scoring-KpYfR0lO.cjs.map → scoring-Cfu_2qQ1.cjs.map} +1 -1
  32. package/dist/scoring.cjs +2 -2
  33. package/dist/scoring.js +2 -2
  34. package/dist/{xapi-CaM7f1sD.cjs → xapi-BhROEuZQ.cjs} +2 -2
  35. package/dist/{xapi-CaM7f1sD.cjs.map → xapi-BhROEuZQ.cjs.map} +1 -1
  36. package/dist/{xapi-fFq9KEXG.js → xapi-BitXmAYB.js} +2 -2
  37. package/dist/{xapi-fFq9KEXG.js.map → xapi-BitXmAYB.js.map} +1 -1
  38. package/dist/xapi.cjs +1 -1
  39. package/dist/xapi.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/item-group-D7M3E7K2.cjs.map +0 -1
  42. package/dist/item-group-uNAT5EX5.js.map +0 -1
  43. package/dist/registry-RPfZZEqi.cjs.map +0 -1
  44. package/dist/registry-kTqbi4Lb.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @intellectif/lk-core
2
2
 
3
+ ## 1.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#167](https://github.com/intellectif/learning-kit/pull/167) [`6d920d2`](https://github.com/intellectif/learning-kit/commit/6d920d2d8c36bf09ca9a0811081dcacd2554df7a) Thanks [@diego28e](https://github.com/diego28e)! - **Reading quizzes in an interactive video: a quiz the reading route covers opens as a guided reading route in practice**
8
+
9
+ **Action required:** none. Install lk-core 1.12.0 with lk-react 23.9.0: lk-react calls the new lk-core function. **No grade changes:** every question in a reading quiz is recorded and scored by the video as in any quiz. Content 1.11.0 accepted is still accepted; a route in an interactive video, which 1.11.0 refused with `ig_route_with_timeline`, is now valid, and that code is no longer reported.
10
+
11
+ - **lk-core:** a group with a `timeline` may carry a `route` when the video stimulus holds the passage as its text (`stimulus.body`). A quiz whose every question the route covers is a reading quiz; `readingQuizzes(group)` lists them. The new `ig_route_quiz_mixed` refuses a quiz the route covers only part of; a route on a video with no timeline is still refused (`ig_route_stimulus_kind`).
12
+ - **lk-react:** in `practice`, `<InteractiveVideo>` opens a reading quiz as a `<ReadingRoute>` in its quiz panel, with the passage beside the quiz's questions; its new `readingRoute` prop takes the route's settings and `onFinish(result, cueId)`. Each answer is recorded under its own slot, and an answer given but not handed in is handed in when the learner finishes. In `exam` and `review`, a reading quiz is an ordinary quiz. The route is loaded only by a video that has one. See https://github.com/intellectif/learning-kit/blob/main/docs/reading-route.md#in-an-interactive-video
13
+
3
14
  ## 1.11.0
4
15
 
5
16
  ### Minor Changes
package/dist/ai-check.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ai_writing = require("./ai-writing-C7f6aKNW.cjs");
3
- const require_scoring = require("./scoring-KpYfR0lO.cjs");
2
+ const require_ai_writing = require("./ai-writing-gO4GRscd.cjs");
3
+ const require_scoring = require("./scoring-Cfu_2qQ1.cjs");
4
4
  // src/ai-check/cases.ts
5
5
  /**
6
6
  * The items the cases are built from. Small, ordinary language-course content
package/dist/ai-check.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as checkAiCoaching, D as checkAiCritique, E as aiCritiqueRequest, Q as aiCoachingRequest, b as aiDraftsRequest, c as aiVariantsRequest, f as aiGradingRequest, it as aiExplanationRequest, l as checkAiVariants, lt as checkAiExplanation, m as checkAiGrading, n as checkAiWritingFeedback, ot as aiHintRequest, t as aiWritingFeedbackRequest, ut as checkAiHint, x as checkAiDrafts } from "./ai-writing-Dl1bJQbL.js";
2
- import { s as gradeReadAloud } from "./scoring-DshU9i7e.js";
1
+ import { $ as checkAiCoaching, D as checkAiCritique, E as aiCritiqueRequest, Q as aiCoachingRequest, b as aiDraftsRequest, c as aiVariantsRequest, f as aiGradingRequest, it as aiExplanationRequest, l as checkAiVariants, lt as checkAiExplanation, m as checkAiGrading, n as checkAiWritingFeedback, ot as aiHintRequest, t as aiWritingFeedbackRequest, ut as checkAiHint, x as checkAiDrafts } from "./ai-writing-BgeeCOl7.js";
2
+ import { s as gradeReadAloud } from "./scoring-BxDiwN7I.js";
3
3
  // src/ai-check/cases.ts
4
4
  /**
5
5
  * The items the cases are built from. Small, ordinary language-course content
@@ -1,6 +1,6 @@
1
- import { $ as GROUP_CAPTIONS_REVEAL_DICTATION, A as keyPositionFinding, B as countWords, Ct as passageWithoutPlaceholders, Dt as PLACEHOLDER_RE, G as isMissingId, H as checkMedia, I as LEVEL_PROBABILITY_TOLERANCE, J as isUnwritten, K as isRecord$8, L as levelDistribution, M as normaliseFinding, N as policyFor, R as levelKey, St as numberedPassage, Tt as revealsAnswer, U as coveredPathsOf, V as DRAFT_ISSUE_SEVERITY, W as covers, X as pathKey, Y as issue, Z as refusesEmpty, a as readSchema, bt as containsWords, et as groupCaptionsField, gt as withValidationScope, it as UnknownActivityTypeError, j as finding, ot as alignDictation, q as isUnset, t as getActivityTypeDescriptor, v as SPEAKING_MEASURES, wt as placeholderOrder, xt as fold, z as readRubricLevels } from "./registry-kTqbi4Lb.js";
2
- import { C as canonicalJson, I as isGradeInRange, c as alignReadAloud, g as seededShuffle, l as validateSpeechAssessment, r as score, v as gradeFromRubric } from "./scoring-DshU9i7e.js";
3
- import { a as INTERACTIVE_VIDEO_ITEM_TYPES, d as routeIssues, i as validateItemGroup, t as ItemGroupSchema, u as isInteractiveVideoItemType } from "./item-group-uNAT5EX5.js";
1
+ import { $ as GROUP_CAPTIONS_REVEAL_DICTATION, A as keyPositionFinding, B as countWords, Ct as passageWithoutPlaceholders, Dt as PLACEHOLDER_RE, G as isMissingId, H as checkMedia, I as LEVEL_PROBABILITY_TOLERANCE, J as isUnwritten, K as isRecord$8, L as levelDistribution, M as normaliseFinding, N as policyFor, R as levelKey, St as numberedPassage, Tt as revealsAnswer, U as coveredPathsOf, V as DRAFT_ISSUE_SEVERITY, W as covers, X as pathKey, Y as issue, Z as refusesEmpty, a as readSchema, bt as containsWords, et as groupCaptionsField, gt as withValidationScope, it as UnknownActivityTypeError, j as finding, ot as alignDictation, q as isUnset, t as getActivityTypeDescriptor, v as SPEAKING_MEASURES, wt as placeholderOrder, xt as fold, z as readRubricLevels } from "./registry-BClnM5V3.js";
2
+ import { C as canonicalJson, I as isGradeInRange, c as alignReadAloud, g as seededShuffle, l as validateSpeechAssessment, r as score, v as gradeFromRubric } from "./scoring-BxDiwN7I.js";
3
+ import { a as INTERACTIVE_VIDEO_ITEM_TYPES, f as routeIssues, i as validateItemGroup, t as ItemGroupSchema, u as isInteractiveVideoItemType } from "./item-group-CnlBLM9Z.js";
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
@@ -5571,4 +5571,4 @@ function checkAiWritingFeedback(raw, request) {
5571
5571
  }
5572
5572
  export { checkAiCoaching as $, validateDraft as A, lengthMisses as B, interactiveVideoFromDrafts as C, checkAiCritique as D, aiCritiqueRequest as E, critiqueItemGroupDraft as F, textSimilarity as G, sharedAnswers as H, validateItemGroupDraft as I, mapMediaRefs as J, textsOf as K, AI_VARIANT_LENGTH_BANDS as L, createItemGroupDraft as M, createReadingRouteDraft as N, createDraft as O, critiqueDrafts as P, aiCoachingRequest as Q, AI_VARIANT_NEAR_COPY_THRESHOLD as R, generateDrafts as S, AI_CRITIQUE_MAX_FINDINGS as T, shownScore as U, optionSet as V, structureMisses as W, AI_COACHING_MAX_TIP_LENGTH as X, transcriptOf as Y, AI_COACHING_MAX_WORDS as Z, AI_DRAFTS_MAX_COUNT as _, AI_VARIANTS_MAX_REPAIRS as a, aiGradeOf as at, aiDraftsRequest as b, aiVariantsRequest as c, buildAiFacts as ct, AI_GRADING_PROBABILITY_TOLERANCE as d, hintRevealsAnswer as dt, AI_EXPLANATION_TYPES as et, aiGradingRequest as f, readAiTextResult as ft, AI_WRITING_MAX_FIELD_LENGTH as g, AI_WRITING_MAX_CORRECTIONS as h, AI_VARIANTS_MAX_MATERIAL_LENGTH as i, aiExplanationRequest as it, createInteractiveVideoDraft as j, critiqueDraft as k, checkAiVariants as l, checkAiExplanation as lt, checkAiGrading as m, checkAiWritingFeedback as n, AI_TEXT_MAX_LENGTH as nt, AI_VARIANT_CODE_SEVERITY as o, aiHintRequest as ot, aiSpeakingGradingRequest as p, AI_MATERIAL_MAX_LENGTH as pt, listMediaRefs as q, AI_VARIANTS_MAX_EXEMPLARS as r, aiAllowedByContent as rt, aiVariantsRepairRequest as s, aiSupports as st, aiWritingFeedbackRequest as t, AI_HINT_TYPES as tt, generateVariants as u, checkAiHint as ut, AI_DRAFTS_MAX_REPAIRS as v, AI_CRITIQUE_MAX_FIELD_LENGTH as w, checkAiDrafts as x, aiDraftsRepairRequest as y, keysOf as z };
5573
5573
 
5574
- //# sourceMappingURL=ai-writing-Dl1bJQbL.js.map
5574
+ //# sourceMappingURL=ai-writing-BgeeCOl7.js.map