@citolab/qti-components 9.6.0 → 9.6.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.
@@ -2,7 +2,7 @@ import {
2
2
  QtiTest,
3
3
  TestCheckItem,
4
4
  TestNavigation
5
- } from "./chunk-EAQOUBXA.js";
5
+ } from "./chunk-RGBQ65Y2.js";
6
6
  import {
7
7
  QtiAssessmentItem
8
8
  } from "./chunk-TFQAUWCM.js";
@@ -1661,4 +1661,4 @@ export {
1661
1661
  QtiTestCorrection,
1662
1662
  TestCheckItemCorrection
1663
1663
  };
1664
- //# sourceMappingURL=chunk-TC4257SG.js.map
1664
+ //# sourceMappingURL=chunk-RTS3JSEM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  qtiTestElements
3
- } from "./chunk-EAQOUBXA.js";
3
+ } from "./chunk-RGBQ65Y2.js";
4
4
 
5
5
  // ../qti-test/dist/register.js
6
6
  for (const { tag, ctor } of qtiTestElements) {
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiTestElements) {
8
8
  customElements.define(tag, ctor);
9
9
  }
10
10
  }
11
- //# sourceMappingURL=chunk-TBJT7AGB.js.map
11
+ //# sourceMappingURL=chunk-SUMSMTZJ.js.map
@@ -6,7 +6,7 @@ import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimple
6
6
  import { QtiAssessmentItem } from './elements.js';
7
7
  import { Q as QtiItem } from './qti-item.d-DjWvKbfL.js';
8
8
  import { V as View, C as ComputedItemContext } from './session.context.d-Cw8GcziG.js';
9
- import { l as QtiTest, T as TestCheckItem, u as TestNavigation } from './qti-test.d-DOWT6YNa.js';
9
+ import { l as QtiTest, T as TestCheckItem, u as TestNavigation } from './qti-test.d-ClQtDdgx.js';
10
10
  import { a as ComputedItem, C as ComputedContext } from './computed.types.d-SsTm3ieP.js';
11
11
  import './config.context.d-BvU9r-Mg.js';
12
12
  import './interaction.interface.d-CvjHM2bi.js';
@@ -34,10 +34,10 @@ import {
34
34
  TestNavigationCorrection,
35
35
  TestShowCorrectResponse,
36
36
  correctionPart
37
- } from "./chunk-TC4257SG.js";
37
+ } from "./chunk-RTS3JSEM.js";
38
38
  import {
39
39
  qtiTestElements
40
- } from "./chunk-EAQOUBXA.js";
40
+ } from "./chunk-RGBQ65Y2.js";
41
41
  import {
42
42
  qtiContentElements
43
43
  } from "./chunk-TFQAUWCM.js";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as ttsContext } from './qti-test.d-DOWT6YNa.js';
1
+ export { I as ITestNavigationMixin, a as ITestStateMixin, b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as formatVariableValue, U as ttsContext } from './qti-test.d-ClQtDdgx.js';
2
2
  export { IMyQtiTest, IQtiTest, ITestProcessingMixin, QTI_TEST_STATE_VERSION, QtiTestState, QtiTestStateItem, QtiTestStateSession, QtiTestStateValue } from './test.js';
3
3
  export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-DjWvKbfL.js';
4
4
  export { ItemViewMixin } from './item.js';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-TBJT7AGB.js";
1
+ import "./chunk-SUMSMTZJ.js";
2
2
  import {
3
3
  CandidateCorrectionMixin,
4
4
  ChoiceCorrectionMixin,
@@ -35,7 +35,7 @@ import {
35
35
  TestNavigationCorrection,
36
36
  TestShowCorrectResponse,
37
37
  correctionPart
38
- } from "./chunk-TC4257SG.js";
38
+ } from "./chunk-RTS3JSEM.js";
39
39
  import {
40
40
  QTI_TEST_STATE_VERSION,
41
41
  QtiAssessmentItemRef,
@@ -78,8 +78,9 @@ import {
78
78
  TestTtsStop,
79
79
  TestView,
80
80
  TestViewToggle,
81
+ formatVariableValue,
81
82
  ttsContext
82
- } from "./chunk-EAQOUBXA.js";
83
+ } from "./chunk-RGBQ65Y2.js";
83
84
  import "./chunk-H72OXVRF.js";
84
85
  import {
85
86
  PUBLIC_ITEM_EVENTS,
@@ -523,6 +524,7 @@ export {
523
524
  dispatchDeclared,
524
525
  dispatchPublic,
525
526
  dropRegion,
527
+ formatVariableValue,
526
528
  getCustomOperator,
527
529
  getItemByUri,
528
530
  getManifestInfo,
@@ -107,6 +107,7 @@ import type {
107
107
  TestPrev,
108
108
  TestPrintContext,
109
109
  TestPrintVariables,
110
+ formatVariableValue,
110
111
  TestScoringButtons,
111
112
  TestScoringFeedback,
112
113
  TestSectionButtonsStamp,
@@ -655,6 +655,11 @@ declare global {
655
655
  }
656
656
  }
657
657
 
658
+ /**
659
+ * A variable value as text: a list as `a, b`, a record (e.g. the response of a PCI) as `time: 3.6, point: 455 250`.
660
+ * Without this a record printed as "[object Object]".
661
+ */
662
+ declare const formatVariableValue: (value: unknown) => string;
658
663
  declare class TestPrintVariables extends LitElement {
659
664
  computedContext?: ComputedContext;
660
665
  static styles: lit.CSSResult;
@@ -1123,4 +1128,4 @@ declare global {
1123
1128
  }
1124
1129
  }
1125
1130
 
1126
- export { TestScoringButtons as A, TestScoringFeedback as B, TestSectionButtonsStamp as C, TestSectionLink as D, TestStamp as E, TestTtsNext as F, TestTtsPause as G, TestTtsPick as H, type ITestNavigationMixin as I, TestTtsPlay as J, TestTtsPrev as K, TestTtsResume as L, TestTtsStop as M, TestView as N, TestViewToggle as O, type TtsContext as P, QtiAssessmentItemRef as Q, ttsContext as R, type SpeechState as S, TestCheckItem as T, type ItemVariableValue as U, type ITestStateMixin as a, type ItemRefTemplateModel as b, QtiAssessmentSection as c, QtiAssessmentTest as d, QtiBranchRule as e, QtiItemSessionControl as f, QtiNumberPresented as g, QtiNumberSelected as h, QtiOutcomeProcessing as i, QtiOutcomeProcessingProcessor as j, QtiPreCondition as k, QtiTest as l, QtiTestFeedback as m, QtiTestPart as n, QtiTestVariables as o, QtiTestVariablesExpression as p, TestContainer as q, TestEndAttempt as r, TestItemLink as s, TestItemToSpeech as t, TestNavigation as u, TestNext as v, TestPagingButtonsStamp as w, TestPrev as x, TestPrintContext as y, TestPrintVariables as z };
1131
+ export { TestScoringButtons as A, TestScoringFeedback as B, TestSectionButtonsStamp as C, TestSectionLink as D, TestStamp as E, TestTtsNext as F, TestTtsPause as G, TestTtsPick as H, type ITestNavigationMixin as I, TestTtsPlay as J, TestTtsPrev as K, TestTtsResume as L, TestTtsStop as M, TestView as N, TestViewToggle as O, type TtsContext as P, QtiAssessmentItemRef as Q, formatVariableValue as R, type SpeechState as S, TestCheckItem as T, ttsContext as U, type ItemVariableValue as V, type ITestStateMixin as a, type ItemRefTemplateModel as b, QtiAssessmentSection as c, QtiAssessmentTest as d, QtiBranchRule as e, QtiItemSessionControl as f, QtiNumberPresented as g, QtiNumberSelected as h, QtiOutcomeProcessing as i, QtiOutcomeProcessingProcessor as j, QtiPreCondition as k, QtiTest as l, QtiTestFeedback as m, QtiTestPart as n, QtiTestVariables as o, QtiTestVariablesExpression as p, TestContainer as q, TestEndAttempt as r, TestItemLink as s, TestItemToSpeech as t, TestNavigation as u, TestNext as v, TestPagingButtonsStamp as w, TestPrev as x, TestPrintContext as y, TestPrintVariables as z };
package/dist/test.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { U as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-DOWT6YNa.js';
2
- export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as ttsContext } from './qti-test.d-DOWT6YNa.js';
1
+ import { V as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-ClQtDdgx.js';
2
+ export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, q as TestContainer, r as TestEndAttempt, s as TestItemLink, t as TestItemToSpeech, u as TestNavigation, v as TestNext, w as TestPagingButtonsStamp, x as TestPrev, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, C as TestSectionButtonsStamp, D as TestSectionLink, E as TestStamp, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, N as TestView, O as TestViewToggle, P as TtsContext, R as formatVariableValue, U as ttsContext } from './qti-test.d-ClQtDdgx.js';
3
3
  import { LitElement } from 'lit';
4
4
  import { b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
5
5
  import { S as SessionContext } from './session.context.d-Cw8GcziG.js';
package/dist/test.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-TBJT7AGB.js";
1
+ import "./chunk-SUMSMTZJ.js";
2
2
  import {
3
3
  QTI_TEST_STATE_VERSION,
4
4
  QtiAssessmentItemRef,
@@ -41,8 +41,9 @@ import {
41
41
  TestTtsStop,
42
42
  TestView,
43
43
  TestViewToggle,
44
+ formatVariableValue,
44
45
  ttsContext
45
- } from "./chunk-EAQOUBXA.js";
46
+ } from "./chunk-RGBQ65Y2.js";
46
47
  import "./chunk-TFQAUWCM.js";
47
48
  import "./chunk-QVZLJY75.js";
48
49
  import "./chunk-4DB4SC5K.js";
@@ -90,6 +91,7 @@ export {
90
91
  TestTtsStop,
91
92
  TestView,
92
93
  TestViewToggle,
94
+ formatVariableValue,
93
95
  ttsContext
94
96
  };
95
97
  //# sourceMappingURL=test.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@citolab/qti-components",
3
3
  "description": "QTI component utilities",
4
- "version": "9.6.0",
4
+ "version": "9.6.1",
5
5
  "author": "",
6
6
  "dependencies": {
7
7
  "@heximal/templates": "^0.1.5",
@@ -17,7 +17,7 @@
17
17
  "@qti-components/item": "^1.5.0",
18
18
  "@qti-components/loader": "^1.3.3",
19
19
  "@qti-components/processing": "^1.6.1",
20
- "@qti-components/test": "^1.10.0",
20
+ "@qti-components/test": "^1.10.1",
21
21
  "@qti-components/theme": "^2.3.0",
22
22
  "@qti-components/transformers": "^1.7.3"
23
23
  },