@citolab/qti-components 10.0.0-next.19 → 10.0.0-next.20

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 (52) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +176 -176
  3. package/dist/base.d.ts +2 -2
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-4UO6AGJ6.js → chunk-2A52V5TQ.js} +3 -3
  6. package/dist/{chunk-Y7RSSGDY.js → chunk-5BP2A7BI.js} +2 -2
  7. package/dist/{chunk-WTGUKDVH.js → chunk-DAESCCLR.js} +2 -2
  8. package/dist/{chunk-QKCVC4HF.js → chunk-GJWA6LLT.js} +2 -2
  9. package/dist/{chunk-XBBTYGCX.js → chunk-GPC53O7P.js} +3 -3
  10. package/dist/{chunk-XBBTYGCX.js.map → chunk-GPC53O7P.js.map} +1 -1
  11. package/dist/{chunk-MFKH6BZM.js → chunk-H6DO5UHC.js} +3 -3
  12. package/dist/{chunk-HSOILZC6.js → chunk-KQ2LED4X.js} +2 -2
  13. package/dist/{chunk-3FQZRJFH.js → chunk-LPYZVKHX.js} +2 -2
  14. package/dist/{chunk-JE6X3IZT.js → chunk-ORQFZNJW.js} +192 -64
  15. package/dist/chunk-ORQFZNJW.js.map +1 -0
  16. package/dist/{chunk-QECECKEC.js → chunk-TSJGL6FI.js} +2 -2
  17. package/dist/{chunk-MXY66QOH.js → chunk-TZCOXFPB.js} +2 -2
  18. package/dist/{chunk-DAOLVUTR.js → chunk-XWRZP2RM.js} +2 -2
  19. package/dist/{chunk-YRXH3YMJ.js → chunk-Y6Q3F2S7.js} +7 -7
  20. package/dist/{chunk-YRXH3YMJ.js.map → chunk-Y6Q3F2S7.js.map} +1 -1
  21. package/dist/{chunk-LORYM4U2.js → chunk-ZRORBAHB.js} +3 -3
  22. package/dist/chunk-ZRORBAHB.js.map +1 -0
  23. package/dist/computed.types.d-6Ht-HNRx.d.ts +80 -0
  24. package/dist/corrections.d.ts +2 -2
  25. package/dist/corrections.js +8 -8
  26. package/dist/elements.js +4 -4
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +14 -14
  29. package/dist/interactions.js +3 -3
  30. package/dist/item.js +4 -4
  31. package/dist/loader.js +2 -2
  32. package/dist/processing.js +3 -3
  33. package/dist/{qti-test-state-BAf5AmJ2.d.ts → qti-test-state-CF9S8X9C.d.ts} +1 -1
  34. package/dist/{qti-test.d-CRqJF2DM.d.ts → qti-test.d-sskv-dEN.d.ts} +1 -1
  35. package/dist/test-plugin-api.d.ts +2 -2
  36. package/dist/test.d.ts +4 -4
  37. package/dist/test.js +5 -5
  38. package/dist/transformers.js +1 -1
  39. package/package.json +6 -5
  40. package/dist/chunk-JE6X3IZT.js.map +0 -1
  41. package/dist/chunk-LORYM4U2.js.map +0 -1
  42. package/dist/computed.types.d-D4wskgi0.d.ts +0 -51
  43. /package/dist/{chunk-4UO6AGJ6.js.map → chunk-2A52V5TQ.js.map} +0 -0
  44. /package/dist/{chunk-Y7RSSGDY.js.map → chunk-5BP2A7BI.js.map} +0 -0
  45. /package/dist/{chunk-WTGUKDVH.js.map → chunk-DAESCCLR.js.map} +0 -0
  46. /package/dist/{chunk-QKCVC4HF.js.map → chunk-GJWA6LLT.js.map} +0 -0
  47. /package/dist/{chunk-MFKH6BZM.js.map → chunk-H6DO5UHC.js.map} +0 -0
  48. /package/dist/{chunk-HSOILZC6.js.map → chunk-KQ2LED4X.js.map} +0 -0
  49. /package/dist/{chunk-3FQZRJFH.js.map → chunk-LPYZVKHX.js.map} +0 -0
  50. /package/dist/{chunk-QECECKEC.js.map → chunk-TSJGL6FI.js.map} +0 -0
  51. /package/dist/{chunk-MXY66QOH.js.map → chunk-TZCOXFPB.js.map} +0 -0
  52. /package/dist/{chunk-DAOLVUTR.js.map → chunk-XWRZP2RM.js.map} +0 -0
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { C as ComputedItemContext } from './session.context.d-9gRdGK4T.js';
2
2
  export { I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './session.context.d-9gRdGK4T.js';
3
- import { C as ComputedContext } from './computed.types.d-D4wskgi0.js';
4
- export { a as ComputedItem } from './computed.types.d-D4wskgi0.js';
3
+ import { C as ComputedContext } from './computed.types.d-6Ht-HNRx.js';
4
+ export { a as ComputedItem, S as SessionControl } from './computed.types.d-6Ht-HNRx.js';
5
5
  export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-Dm11aAuw.js';
6
6
  export { C as ChoiceRole, I as Interaction, a as InteractionContext, R as RecordFieldValues, b as RecordValue, V as ValidityKind, c as ValidityTrigger, i as inferRecordFieldBaseType, d as interactionContext, e as isRecordValue, r as readRecordFieldValues } from './record.d-N1Bq7e1f.js';
7
7
  import { I as ItemContext } from './item.types.d-Zc6ZQDhu.js';
package/dist/base.js CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  testContext,
49
49
  unregisterCustomOperator,
50
50
  validationMessage
51
- } from "./chunk-XBBTYGCX.js";
51
+ } from "./chunk-GPC53O7P.js";
52
52
  import "./chunk-PZ5AY32C.js";
53
53
  export {
54
54
  CustomStateSetShim,
@@ -6,12 +6,12 @@ import {
6
6
  } from "./chunk-4DB4SC5K.js";
7
7
  import {
8
8
  qtiTransformItem
9
- } from "./chunk-LORYM4U2.js";
9
+ } from "./chunk-ZRORBAHB.js";
10
10
  import {
11
11
  computedItemContext,
12
12
  configContext,
13
13
  qtiContext
14
- } from "./chunk-XBBTYGCX.js";
14
+ } from "./chunk-GPC53O7P.js";
15
15
 
16
16
  // ../qti-item/dist/components/item-container/item-container.js
17
17
  import { consume } from "@lit/context";
@@ -349,4 +349,4 @@ export {
349
349
  QtiItem,
350
350
  qtiItemElements
351
351
  };
352
- //# sourceMappingURL=chunk-4UO6AGJ6.js.map
352
+ //# sourceMappingURL=chunk-2A52V5TQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  qtiProcessingElements
3
- } from "./chunk-3FQZRJFH.js";
3
+ } from "./chunk-LPYZVKHX.js";
4
4
 
5
5
  // ../qti-processing/dist/register.js
6
6
  for (const { tag, ctor } of qtiProcessingElements) {
@@ -8,4 +8,4 @@ for (const { tag, ctor } of qtiProcessingElements) {
8
8
  customElements.define(tag, ctor);
9
9
  }
10
10
  }
11
- //# sourceMappingURL=chunk-Y7RSSGDY.js.map
11
+ //# sourceMappingURL=chunk-5BP2A7BI.js.map
@@ -21,7 +21,7 @@ import {
21
21
  elements8,
22
22
  elements9,
23
23
  qtiInteractionElements
24
- } from "./chunk-MXY66QOH.js";
24
+ } from "./chunk-TZCOXFPB.js";
25
25
 
26
26
  // ../qti-interactions/dist/register-all.js
27
27
  for (const { tag, ctor } of qtiInteractionElements) {
@@ -176,4 +176,4 @@ for (const { tag, ctor } of elements21) {
176
176
  customElements.define(tag, ctor);
177
177
  }
178
178
  }
179
- //# sourceMappingURL=chunk-WTGUKDVH.js.map
179
+ //# sourceMappingURL=chunk-DAESCCLR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  qtiTestElements
3
- } from "./chunk-JE6X3IZT.js";
3
+ } from "./chunk-ORQFZNJW.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-QKCVC4HF.js.map
11
+ //# sourceMappingURL=chunk-GJWA6LLT.js.map
@@ -987,11 +987,11 @@ var QtiFeedback = class extends LitElement4 {
987
987
  if (!this._computedContext)
988
988
  return true;
989
989
  const activeItem = this._computedContext.testParts?.find((tp) => tp.active)?.sections.flatMap((s) => s.items).find((i) => i.active);
990
- if (!activeItem || activeItem.showFeedback)
990
+ if (!activeItem || activeItem.sessionControl?.showFeedback)
991
991
  return true;
992
992
  if (activeItem.adaptive)
993
993
  return activeItem.completionStatus !== "completed";
994
- const maxAttempts = activeItem.maxAttempts ?? 1;
994
+ const maxAttempts = activeItem.sessionControl?.maxAttempts ?? 1;
995
995
  if (maxAttempts <= 0)
996
996
  return true;
997
997
  const numAttempts = Number(this._context?.variables?.find((v) => v.identifier === "numAttempts")?.value) || 0;
@@ -1400,4 +1400,4 @@ export {
1400
1400
  getCustomOperator,
1401
1401
  ScoringHelper
1402
1402
  };
1403
- //# sourceMappingURL=chunk-XBBTYGCX.js.map
1403
+ //# sourceMappingURL=chunk-GPC53O7P.js.map