@citolab/qti-components 9.3.0 → 10.0.0-next.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 (64) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +258 -206
  3. package/dist/base.d.ts +10 -10
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-G5RQ5GKG.js → chunk-3BAQWO5C.js} +2 -2
  6. package/dist/{chunk-ZG7FBQFP.js → chunk-ACRN7YJM.js} +2 -2
  7. package/dist/{chunk-REKCRWJV.js → chunk-AWTQKBC4.js} +231 -129
  8. package/dist/chunk-AWTQKBC4.js.map +1 -0
  9. package/dist/{chunk-JGPWBIVD.js → chunk-CNFVA3AA.js} +128 -48
  10. package/dist/chunk-CNFVA3AA.js.map +1 -0
  11. package/dist/{chunk-CQHGVPOT.js → chunk-EPSUZIWL.js} +6 -6
  12. package/dist/{chunk-TDWLV5OD.js → chunk-EUKU5QKV.js} +633 -352
  13. package/dist/chunk-EUKU5QKV.js.map +1 -0
  14. package/dist/{chunk-RAJQKCQ3.js → chunk-F7R7GSWL.js} +3 -3
  15. package/dist/{chunk-FG5JAWSN.js → chunk-GPNWMLLA.js} +2 -2
  16. package/dist/{chunk-7VDR765S.js → chunk-QD3Y6UK3.js} +2 -2
  17. package/dist/{chunk-YVZWNLF4.js → chunk-R7MMMDP7.js} +139 -18
  18. package/dist/chunk-R7MMMDP7.js.map +1 -0
  19. package/dist/{chunk-JLZCZVRX.js → chunk-SVYHZIJ7.js} +2 -2
  20. package/dist/{chunk-YIYHCHHM.js → chunk-WNAOVXXN.js} +2 -2
  21. package/dist/chunk-ZP6QQYSU.js +7 -0
  22. package/dist/chunk-ZP6QQYSU.js.map +1 -0
  23. package/dist/{computed.types.d-DB5gfOh9.d.ts → computed.types.d-gJrBeUMG.d.ts} +1 -1
  24. package/dist/corrections.d.ts +9 -9
  25. package/dist/corrections.js +8 -8
  26. package/dist/elements.d.ts +108 -6
  27. package/dist/elements.js +17 -5
  28. package/dist/index.d.ts +12 -12
  29. package/dist/index.js +28 -14
  30. package/dist/{interaction.d-DegNJ5ZA.d.ts → interaction.d-g6XG0T0Z.d.ts} +2 -2
  31. package/dist/interactions.d.ts +4 -4
  32. package/dist/interactions.js +3 -3
  33. package/dist/item.css +11 -0
  34. package/dist/item.d.ts +4 -4
  35. package/dist/item.js +4 -4
  36. package/dist/{item.types.d-BDFrq19E.d.ts → item.types.d-B55QkJ92.d.ts} +10 -0
  37. package/dist/loader.d.ts +2 -2
  38. package/dist/processing.d.ts +3 -3
  39. package/dist/processing.js +3 -3
  40. package/dist/qti-components-jsx.d.ts +354 -440
  41. package/dist/{qti-condition-expression.d-DLboq8bR.d.ts → qti-condition-expression.d-L7yb3Rzy.d.ts} +1 -1
  42. package/dist/{qti-expression.d-BksT9iLB.d.ts → qti-expression.d-CuaLjZ6g.d.ts} +1 -1
  43. package/dist/{qti-feedback.d-D-w6-mJv.d.ts → qti-feedback.d-wMYNVkkj.d.ts} +2 -3
  44. package/dist/{qti-item.d-D_-9_0e6.d.ts → qti-item.d-DgC1AQbY.d.ts} +1 -1
  45. package/dist/{qti-test.d-D-ELy0Mr.d.ts → qti-test.d-_THYXPzd.d.ts} +206 -46
  46. package/dist/{qti-text-entry-interaction.d-CATtcPyX.d.ts → qti-text-entry-interaction.d-q8u5BiVK.d.ts} +13 -4
  47. package/dist/{session.context.d-Cjs0BkJB.d.ts → session.context.d-D5080LVx.d.ts} +3 -1
  48. package/dist/test.d.ts +58 -11
  49. package/dist/test.js +7 -5
  50. package/package.json +9 -9
  51. package/dist/chunk-A32YH4H5.js +0 -7
  52. package/dist/chunk-A32YH4H5.js.map +0 -1
  53. package/dist/chunk-JGPWBIVD.js.map +0 -1
  54. package/dist/chunk-REKCRWJV.js.map +0 -1
  55. package/dist/chunk-TDWLV5OD.js.map +0 -1
  56. package/dist/chunk-YVZWNLF4.js.map +0 -1
  57. /package/dist/{chunk-G5RQ5GKG.js.map → chunk-3BAQWO5C.js.map} +0 -0
  58. /package/dist/{chunk-ZG7FBQFP.js.map → chunk-ACRN7YJM.js.map} +0 -0
  59. /package/dist/{chunk-CQHGVPOT.js.map → chunk-EPSUZIWL.js.map} +0 -0
  60. /package/dist/{chunk-RAJQKCQ3.js.map → chunk-F7R7GSWL.js.map} +0 -0
  61. /package/dist/{chunk-FG5JAWSN.js.map → chunk-GPNWMLLA.js.map} +0 -0
  62. /package/dist/{chunk-7VDR765S.js.map → chunk-QD3Y6UK3.js.map} +0 -0
  63. /package/dist/{chunk-JLZCZVRX.js.map → chunk-SVYHZIJ7.js.map} +0 -0
  64. /package/dist/{chunk-YIYHCHHM.js.map → chunk-WNAOVXXN.js.map} +0 -0
@@ -16,6 +16,7 @@ import type {
16
16
  QtiTemplateProcessing,
17
17
  QtiResponseProcessing,
18
18
  QtiAssessmentItem,
19
+ QtiAssessmentStimulus,
19
20
  QtiAssessmentStimulusRef,
20
21
  QtiAssessmentStimulusRefConnectedEvent,
21
22
  QtiCompanionMaterialsInfo,
@@ -69,9 +70,9 @@ import type {
69
70
  QtiUploadInteraction,
70
71
  } from "./interactions.js";
71
72
  import type {
73
+ QtiAssessmentTest,
72
74
  QtiAssessmentItemRef,
73
75
  QtiAssessmentSection,
74
- QtiAssessmentTest,
75
76
  QtiItemSessionControl,
76
77
  QtiNumberSelected,
77
78
  QtiOutcomeProcessing,
@@ -80,7 +81,6 @@ import type {
80
81
  QtiTestPart,
81
82
  QtiTestVariables,
82
83
  QtiTestVariablesExpression,
83
- TestNavigation,
84
84
  TestContainer,
85
85
  QtiTest,
86
86
  TestCheckItem,
@@ -96,6 +96,7 @@ import type {
96
96
  TestItemToSpeech,
97
97
  SpeechState,
98
98
  ttsContext,
99
+ TestNavigation,
99
100
  TestNext,
100
101
  TestPagingButtonsStamp,
101
102
  TestPrev,
@@ -333,9 +334,11 @@ export type QtiAssessmentItemProps = {
333
334
  timeDependent?: QtiAssessmentItem["timeDependent"] | undefined;
334
335
  /** */
335
336
  title?: QtiAssessmentItem["title"] | undefined;
336
- /** */
337
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
338
+ interactions inside follow, so the item keeps no list of them to set it on. */
337
339
  disabled?: QtiAssessmentItem["disabled"] | undefined;
338
- /** */
340
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
341
+ follow, so the item keeps no list of them to set it on. */
339
342
  readonly?: QtiAssessmentItem["readonly"] | undefined;
340
343
  /** Sets the identifier for the assessment item reference if this item is in a test. */
341
344
  assessmentItemRefId?: QtiAssessmentItem["assessmentItemRefId"] | undefined;
@@ -350,10 +353,6 @@ export type QtiAssessmentItemProps = {
350
353
  "onqti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
351
354
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
352
355
  "onqti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
353
- /** */
354
- "onqti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
355
- /** */
356
- "onqti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
357
356
  };
358
357
 
359
358
  export type QtiAssessmentItemSolidJsProps = {
@@ -367,9 +366,11 @@ export type QtiAssessmentItemSolidJsProps = {
367
366
  "prop:timeDependent"?: QtiAssessmentItem["timeDependent"] | undefined;
368
367
  /** */
369
368
  "prop:title"?: QtiAssessmentItem["title"] | undefined;
370
- /** */
369
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
370
+ interactions inside follow, so the item keeps no list of them to set it on. */
371
371
  "prop:disabled"?: QtiAssessmentItem["disabled"] | undefined;
372
- /** */
372
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
373
+ follow, so the item keeps no list of them to set it on. */
373
374
  "prop:readonly"?: QtiAssessmentItem["readonly"] | undefined;
374
375
  /** Sets the identifier for the assessment item reference if this item is in a test. */
375
376
  "prop:assessmentItemRefId"?:
@@ -385,10 +386,6 @@ export type QtiAssessmentItemSolidJsProps = {
385
386
  "on:qti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
386
387
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
387
388
  "on:qti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
388
- /** */
389
- "on:qti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
390
- /** */
391
- "on:qti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
392
389
 
393
390
  /** Set the innerHTML of the element */
394
391
  innerHTML?: string | undefined;
@@ -396,6 +393,15 @@ export type QtiAssessmentItemSolidJsProps = {
396
393
  textContent?: string | number | undefined;
397
394
  };
398
395
 
396
+ export type QtiAssessmentStimulusProps = {};
397
+
398
+ export type QtiAssessmentStimulusSolidJsProps = {
399
+ /** Set the innerHTML of the element */
400
+ innerHTML?: string | undefined;
401
+ /** Set the textContent of the element */
402
+ textContent?: string | number | undefined;
403
+ };
404
+
399
405
  export type QtiAssessmentStimulusRefProps = {
400
406
  /** */
401
407
  identifier?: QtiAssessmentStimulusRef["identifier"] | undefined;
@@ -484,9 +490,6 @@ export type QtiFeedbackBlockProps = {
484
490
  identifier?: QtiFeedbackBlock["identifier"] | undefined;
485
491
  /** */
486
492
  showStatus?: QtiFeedbackBlock["showStatus"] | undefined;
487
-
488
- /** */
489
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
490
493
  };
491
494
 
492
495
  export type QtiFeedbackBlockSolidJsProps = {
@@ -502,8 +505,6 @@ export type QtiFeedbackBlockSolidJsProps = {
502
505
  "prop:identifier"?: QtiFeedbackBlock["identifier"] | undefined;
503
506
  /** */
504
507
  "prop:showStatus"?: QtiFeedbackBlock["showStatus"] | undefined;
505
- /** */
506
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
507
508
 
508
509
  /** Set the innerHTML of the element */
509
510
  innerHTML?: string | undefined;
@@ -524,9 +525,6 @@ export type QtiFeedbackInlineProps = {
524
525
  identifier?: QtiFeedbackInline["identifier"] | undefined;
525
526
  /** */
526
527
  showStatus?: QtiFeedbackInline["showStatus"] | undefined;
527
-
528
- /** */
529
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
530
528
  };
531
529
 
532
530
  export type QtiFeedbackInlineSolidJsProps = {
@@ -544,8 +542,6 @@ export type QtiFeedbackInlineSolidJsProps = {
544
542
  "prop:identifier"?: QtiFeedbackInline["identifier"] | undefined;
545
543
  /** */
546
544
  "prop:showStatus"?: QtiFeedbackInline["showStatus"] | undefined;
547
- /** */
548
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
549
545
 
550
546
  /** Set the innerHTML of the element */
551
547
  innerHTML?: string | undefined;
@@ -575,9 +571,6 @@ export type QtiModalFeedbackProps = {
575
571
  identifier?: QtiModalFeedback["identifier"] | undefined;
576
572
  /** */
577
573
  showStatus?: QtiModalFeedback["showStatus"] | undefined;
578
-
579
- /** */
580
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
581
574
  };
582
575
 
583
576
  export type QtiModalFeedbackSolidJsProps = {
@@ -593,8 +586,6 @@ export type QtiModalFeedbackSolidJsProps = {
593
586
  "prop:identifier"?: QtiModalFeedback["identifier"] | undefined;
594
587
  /** */
595
588
  "prop:showStatus"?: QtiModalFeedback["showStatus"] | undefined;
596
- /** */
597
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
598
589
 
599
590
  /** Set the innerHTML of the element */
600
591
  innerHTML?: string | undefined;
@@ -1709,8 +1700,10 @@ export type QtiExtendedTextInteractionProps = {
1709
1700
  "string-identifier"?: unknown | undefined;
1710
1701
  /** Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it. */
1711
1702
  "max-strings"?: unknown | undefined;
1712
- /** Not implemented. See `max-strings`. */
1713
- "min-strings"?: unknown | undefined;
1703
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1704
+ "min-strings"?: QtiExtendedTextInteraction["minStrings"] | undefined;
1705
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1706
+ minStrings?: QtiExtendedTextInteraction["minStrings"] | undefined;
1714
1707
  /** How the response text is presented. Reflected so themes can key off
1715
1708
  `:host([format='preformatted'])`.
1716
1709
 
@@ -1815,8 +1808,10 @@ export type QtiExtendedTextInteractionSolidJsProps = {
1815
1808
  "attr:string-identifier"?: unknown | undefined;
1816
1809
  /** Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it. */
1817
1810
  "attr:max-strings"?: unknown | undefined;
1818
- /** Not implemented. See `max-strings`. */
1819
- "attr:min-strings"?: unknown | undefined;
1811
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1812
+ "attr:min-strings"?: QtiExtendedTextInteraction["minStrings"] | undefined;
1813
+ /** Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec. */
1814
+ "prop:minStrings"?: QtiExtendedTextInteraction["minStrings"] | undefined;
1820
1815
  /** How the response text is presented. Reflected so themes can key off
1821
1816
  `:host([format='preformatted'])`.
1822
1817
 
@@ -3771,7 +3766,8 @@ export type QtiSliderInteractionProps = {
3771
3766
  max?: QtiSliderInteraction["max"] | undefined;
3772
3767
  /** */
3773
3768
  step?: QtiSliderInteraction["step"] | undefined;
3774
- /** */
3769
+ /** Shows the value without publishing it: it came from the item (a default or a restored answer) or
3770
+ from the host, which hold it already. Only the candidate's input is published. */
3775
3771
  response?: QtiSliderInteraction["response"] | undefined;
3776
3772
  /** */
3777
3773
  "response-identifier"?:
@@ -3830,7 +3826,8 @@ export type QtiSliderInteractionSolidJsProps = {
3830
3826
  "prop:max"?: QtiSliderInteraction["max"] | undefined;
3831
3827
  /** */
3832
3828
  "prop:step"?: QtiSliderInteraction["step"] | undefined;
3833
- /** */
3829
+ /** Shows the value without publishing it: it came from the item (a default or a restored answer) or
3830
+ from the host, which hold it already. Only the candidate's input is published. */
3834
3831
  "prop:response"?: QtiSliderInteraction["response"] | undefined;
3835
3832
  /** */
3836
3833
  "attr:response-identifier"?:
@@ -4152,6 +4149,29 @@ casts, rather than pretending at an encapsulation the type system was the only t
4152
4149
  textContent?: string | number | undefined;
4153
4150
  };
4154
4151
 
4152
+ export type QtiAssessmentTestProps = {
4153
+ /** */
4154
+ identifier?: QtiAssessmentTest["identifier"] | undefined;
4155
+ /** */
4156
+ title?: QtiAssessmentTest["title"] | undefined;
4157
+ /** */
4158
+ _testContext?: QtiAssessmentTest["_testContext"] | undefined;
4159
+ };
4160
+
4161
+ export type QtiAssessmentTestSolidJsProps = {
4162
+ /** */
4163
+ "prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
4164
+ /** */
4165
+ "prop:title"?: QtiAssessmentTest["title"] | undefined;
4166
+ /** */
4167
+ "prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
4168
+
4169
+ /** Set the innerHTML of the element */
4170
+ innerHTML?: string | undefined;
4171
+ /** Set the textContent of the element */
4172
+ textContent?: string | number | undefined;
4173
+ };
4174
+
4155
4175
  export type QtiAssessmentItemRefProps = {
4156
4176
  /** */
4157
4177
  category?: QtiAssessmentItemRef["category"] | undefined;
@@ -4167,11 +4187,6 @@ export type QtiAssessmentItemRefProps = {
4167
4187
  xmlDoc?: QtiAssessmentItemRef["xmlDoc"] | undefined;
4168
4188
  /** */
4169
4189
  myTemplate?: QtiAssessmentItemRef["myTemplate"] | undefined;
4170
-
4171
- /** */
4172
- "onqti-assessment-item-ref-connected"?:
4173
- | ((e: CustomEvent) => void)
4174
- | undefined;
4175
4190
  };
4176
4191
 
4177
4192
  export type QtiAssessmentItemRefSolidJsProps = {
@@ -4189,10 +4204,6 @@ export type QtiAssessmentItemRefSolidJsProps = {
4189
4204
  "prop:xmlDoc"?: QtiAssessmentItemRef["xmlDoc"] | undefined;
4190
4205
  /** */
4191
4206
  "prop:myTemplate"?: QtiAssessmentItemRef["myTemplate"] | undefined;
4192
- /** */
4193
- "on:qti-assessment-item-ref-connected"?:
4194
- | ((e: CustomEvent) => void)
4195
- | undefined;
4196
4207
 
4197
4208
  /** Set the innerHTML of the element */
4198
4209
  innerHTML?: string | undefined;
@@ -4264,34 +4275,6 @@ export type QtiAssessmentSectionSolidJsProps = {
4264
4275
  textContent?: string | number | undefined;
4265
4276
  };
4266
4277
 
4267
- export type QtiAssessmentTestProps = {
4268
- /** */
4269
- identifier?: QtiAssessmentTest["identifier"] | undefined;
4270
- /** */
4271
- title?: QtiAssessmentTest["title"] | undefined;
4272
- /** */
4273
- _testContext?: QtiAssessmentTest["_testContext"] | undefined;
4274
-
4275
- /** */
4276
- "onqti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4277
- };
4278
-
4279
- export type QtiAssessmentTestSolidJsProps = {
4280
- /** */
4281
- "prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
4282
- /** */
4283
- "prop:title"?: QtiAssessmentTest["title"] | undefined;
4284
- /** */
4285
- "prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
4286
- /** */
4287
- "on:qti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4288
-
4289
- /** Set the innerHTML of the element */
4290
- innerHTML?: string | undefined;
4291
- /** Set the textContent of the element */
4292
- textContent?: string | number | undefined;
4293
- };
4294
-
4295
4278
  export type QtiItemSessionControlProps = {
4296
4279
  /** */
4297
4280
  "max-attempts"?: QtiItemSessionControl["maxAttempts"] | undefined;
@@ -4409,9 +4392,6 @@ export type QtiTestFeedbackProps = {
4409
4392
  identifier?: QtiTestFeedback["identifier"] | undefined;
4410
4393
  /** */
4411
4394
  showStatus?: QtiTestFeedback["showStatus"] | undefined;
4412
-
4413
- /** */
4414
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
4415
4395
  };
4416
4396
 
4417
4397
  export type QtiTestFeedbackSolidJsProps = {
@@ -4427,8 +4407,6 @@ export type QtiTestFeedbackSolidJsProps = {
4427
4407
  "prop:identifier"?: QtiTestFeedback["identifier"] | undefined;
4428
4408
  /** */
4429
4409
  "prop:showStatus"?: QtiTestFeedback["showStatus"] | undefined;
4430
- /** */
4431
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
4432
4410
 
4433
4411
  /** Set the innerHTML of the element */
4434
4412
  innerHTML?: string | undefined;
@@ -4495,46 +4473,6 @@ export type QtiTestVariablesSolidJsProps = {
4495
4473
  textContent?: string | number | undefined;
4496
4474
  };
4497
4475
 
4498
- export type TestNavigationProps = {
4499
- /** */
4500
- identifier?: TestNavigation["identifier"] | undefined;
4501
- /** */
4502
- "auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4503
- /** */
4504
- autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
4505
- /** */
4506
- initContext?: TestNavigation["initContext"] | undefined;
4507
- /** */
4508
- qtiContext?: TestNavigation["qtiContext"] | undefined;
4509
- /** */
4510
- configContext?: TestNavigation["configContext"] | undefined;
4511
-
4512
- /** */
4513
- "onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4514
- };
4515
-
4516
- export type TestNavigationSolidJsProps = {
4517
- /** */
4518
- "prop:identifier"?: TestNavigation["identifier"] | undefined;
4519
- /** */
4520
- "bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4521
- /** */
4522
- "prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
4523
- /** */
4524
- "prop:initContext"?: TestNavigation["initContext"] | undefined;
4525
- /** */
4526
- "prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
4527
- /** */
4528
- "prop:configContext"?: TestNavigation["configContext"] | undefined;
4529
- /** */
4530
- "on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4531
-
4532
- /** Set the innerHTML of the element */
4533
- innerHTML?: string | undefined;
4534
- /** Set the textContent of the element */
4535
- textContent?: string | number | undefined;
4536
- };
4537
-
4538
4476
  export type TestContainerProps = {
4539
4477
  /** URL of the item to load */
4540
4478
  "test-url"?: TestContainer["testURL"] | undefined;
@@ -4576,16 +4514,42 @@ export type TestContainerSolidJsProps = {
4576
4514
  export type QtiTestProps = {
4577
4515
  /** */
4578
4516
  configContext?: QtiTest["configContext"] | undefined;
4517
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
4518
+ everything inside reads one value: the test-container shuffling the item order, the test
4519
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
4520
+
4521
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
4522
+ object, do not mutate it: an in-place change does not notify the components inside.
4523
+
4524
+ `test-navigation.qtiContext` is an alias of this. */
4525
+ qtiContext?: QtiTest["qtiContext"] | undefined;
4579
4526
 
4580
4527
  /** */
4581
4528
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4529
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4530
+ "onqti-state-changed"?: ((e: Event) => void) | undefined;
4531
+ /** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
4532
+ "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
4582
4533
  };
4583
4534
 
4584
4535
  export type QtiTestSolidJsProps = {
4585
4536
  /** */
4586
4537
  "prop:configContext"?: QtiTest["configContext"] | undefined;
4538
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
4539
+ everything inside reads one value: the test-container shuffling the item order, the test
4540
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
4541
+
4542
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
4543
+ object, do not mutate it: an in-place change does not notify the components inside.
4544
+
4545
+ `test-navigation.qtiContext` is an alias of this. */
4546
+ "prop:qtiContext"?: QtiTest["qtiContext"] | undefined;
4587
4547
  /** */
4588
4548
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4549
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4550
+ "on:qti-state-changed"?: ((e: Event) => void) | undefined;
4551
+ /** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
4552
+ "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
4589
4553
 
4590
4554
  /** Set the innerHTML of the element */
4591
4555
  innerHTML?: string | undefined;
@@ -4626,9 +4590,6 @@ export type TestItemLinkProps = {
4626
4590
  "item-id"?: TestItemLink["itemId"] | undefined;
4627
4591
  /** */
4628
4592
  itemId?: TestItemLink["itemId"] | undefined;
4629
-
4630
- /** */
4631
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4632
4593
  };
4633
4594
 
4634
4595
  export type TestItemLinkSolidJsProps = {
@@ -4636,8 +4597,6 @@ export type TestItemLinkSolidJsProps = {
4636
4597
  "attr:item-id"?: TestItemLink["itemId"] | undefined;
4637
4598
  /** */
4638
4599
  "prop:itemId"?: TestItemLink["itemId"] | undefined;
4639
- /** */
4640
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4641
4600
 
4642
4601
  /** Set the innerHTML of the element */
4643
4602
  innerHTML?: string | undefined;
@@ -4648,12 +4607,6 @@ export type TestItemLinkSolidJsProps = {
4648
4607
  export type TestItemToSpeechProps = {
4649
4608
  /** Fallback language when neither the item content nor the document declares one. */
4650
4609
  language?: TestItemToSpeech["language"] | undefined;
4651
- /** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
4652
- navigation cursor (`navItemRefId`) instead. */
4653
- "item-ref-id"?: TestItemToSpeech["itemRefId"] | undefined;
4654
- /** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
4655
- navigation cursor (`navItemRefId`) instead. */
4656
- itemRefId?: TestItemToSpeech["itemRefId"] | undefined;
4657
4610
  /** */
4658
4611
  _ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
4659
4612
  };
@@ -4661,12 +4614,6 @@ navigation cursor (`navItemRefId`) instead. */
4661
4614
  export type TestItemToSpeechSolidJsProps = {
4662
4615
  /** Fallback language when neither the item content nor the document declares one. */
4663
4616
  "prop:language"?: TestItemToSpeech["language"] | undefined;
4664
- /** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
4665
- navigation cursor (`navItemRefId`) instead. */
4666
- "attr:item-ref-id"?: TestItemToSpeech["itemRefId"] | undefined;
4667
- /** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
4668
- navigation cursor (`navItemRefId`) instead. */
4669
- "prop:itemRefId"?: TestItemToSpeech["itemRefId"] | undefined;
4670
4617
  /** */
4671
4618
  "prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
4672
4619
 
@@ -4817,6 +4764,54 @@ which has no text to be named by. */
4817
4764
  textContent?: string | number | undefined;
4818
4765
  };
4819
4766
 
4767
+ export type TestNavigationProps = {
4768
+ /** */
4769
+ identifier?: TestNavigation["identifier"] | undefined;
4770
+ /** */
4771
+ "auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4772
+ /** */
4773
+ autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
4774
+ /** */
4775
+ initContext?: TestNavigation["initContext"] | undefined;
4776
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
4777
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
4778
+ shuffle seed here keeps working. Removed in the next major.
4779
+
4780
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
4781
+ qtiContext?: TestNavigation["qtiContext"] | undefined;
4782
+ /** */
4783
+ configContext?: TestNavigation["configContext"] | undefined;
4784
+
4785
+ /** */
4786
+ "onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4787
+ };
4788
+
4789
+ export type TestNavigationSolidJsProps = {
4790
+ /** */
4791
+ "prop:identifier"?: TestNavigation["identifier"] | undefined;
4792
+ /** */
4793
+ "bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4794
+ /** */
4795
+ "prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
4796
+ /** */
4797
+ "prop:initContext"?: TestNavigation["initContext"] | undefined;
4798
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
4799
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
4800
+ shuffle seed here keeps working. Removed in the next major.
4801
+
4802
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
4803
+ "prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
4804
+ /** */
4805
+ "prop:configContext"?: TestNavigation["configContext"] | undefined;
4806
+ /** */
4807
+ "on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4808
+
4809
+ /** Set the innerHTML of the element */
4810
+ innerHTML?: string | undefined;
4811
+ /** Set the textContent of the element */
4812
+ textContent?: string | number | undefined;
4813
+ };
4814
+
4820
4815
  export type TestNextProps = {
4821
4816
  /** */
4822
4817
  disabled?: TestNext["_internalDisabled"] | undefined;
@@ -4830,9 +4825,6 @@ export type TestNextProps = {
4830
4825
  role?: TestNext["role"] | undefined;
4831
4826
  /** */
4832
4827
  ariaLabel?: TestNext["ariaLabel"] | undefined;
4833
-
4834
- /** */
4835
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4836
4828
  };
4837
4829
 
4838
4830
  export type TestNextSolidJsProps = {
@@ -4848,8 +4840,6 @@ export type TestNextSolidJsProps = {
4848
4840
  "prop:role"?: TestNext["role"] | undefined;
4849
4841
  /** */
4850
4842
  "prop:ariaLabel"?: TestNext["ariaLabel"] | undefined;
4851
- /** */
4852
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4853
4843
 
4854
4844
  /** Set the innerHTML of the element */
4855
4845
  innerHTML?: string | undefined;
@@ -4885,9 +4875,6 @@ export type TestPrevProps = {
4885
4875
  sectionItems?: TestPrev["sectionItems"] | undefined;
4886
4876
  /** */
4887
4877
  itemIndex?: TestPrev["itemIndex"] | undefined;
4888
-
4889
- /** */
4890
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4891
4878
  };
4892
4879
 
4893
4880
  export type TestPrevSolidJsProps = {
@@ -4899,8 +4886,6 @@ export type TestPrevSolidJsProps = {
4899
4886
  "prop:sectionItems"?: TestPrev["sectionItems"] | undefined;
4900
4887
  /** */
4901
4888
  "prop:itemIndex"?: TestPrev["itemIndex"] | undefined;
4902
- /** */
4903
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4904
4889
 
4905
4890
  /** Set the innerHTML of the element */
4906
4891
  innerHTML?: string | undefined;
@@ -4945,9 +4930,6 @@ export type TestScoringButtonsProps = {
4945
4930
  disabled?: TestScoringButtons["disabled"] | undefined;
4946
4931
  /** */
4947
4932
  myTemplate?: TestScoringButtons["myTemplate"] | undefined;
4948
-
4949
- /** */
4950
- "ontest-update-outcome-variable"?: ((e: CustomEvent) => void) | undefined;
4951
4933
  };
4952
4934
 
4953
4935
  export type TestScoringButtonsSolidJsProps = {
@@ -4957,8 +4939,6 @@ export type TestScoringButtonsSolidJsProps = {
4957
4939
  "prop:disabled"?: TestScoringButtons["disabled"] | undefined;
4958
4940
  /** */
4959
4941
  "prop:myTemplate"?: TestScoringButtons["myTemplate"] | undefined;
4960
- /** */
4961
- "on:test-update-outcome-variable"?: ((e: CustomEvent) => void) | undefined;
4962
4942
 
4963
4943
  /** Set the innerHTML of the element */
4964
4944
  innerHTML?: string | undefined;
@@ -5005,9 +4985,6 @@ export type TestSectionLinkProps = {
5005
4985
  "section-id"?: TestSectionLink["sectionId"] | undefined;
5006
4986
  /** */
5007
4987
  sectionId?: TestSectionLink["sectionId"] | undefined;
5008
-
5009
- /** */
5010
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
5011
4988
  };
5012
4989
 
5013
4990
  export type TestSectionLinkSolidJsProps = {
@@ -5015,8 +4992,6 @@ export type TestSectionLinkSolidJsProps = {
5015
4992
  "attr:section-id"?: TestSectionLink["sectionId"] | undefined;
5016
4993
  /** */
5017
4994
  "prop:sectionId"?: TestSectionLink["sectionId"] | undefined;
5018
- /** */
5019
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
5020
4995
 
5021
4996
  /** Set the innerHTML of the element */
5022
4997
  innerHTML?: string | undefined;
@@ -5057,9 +5032,6 @@ export type TestViewProps = {
5057
5032
  "view-options"?: TestView["viewOptions"] | undefined;
5058
5033
  /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
5059
5034
  viewOptions?: TestView["viewOptions"] | undefined;
5060
-
5061
- /** */
5062
- "onon-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5063
5035
  };
5064
5036
 
5065
5037
  export type TestViewSolidJsProps = {
@@ -5069,8 +5041,6 @@ export type TestViewSolidJsProps = {
5069
5041
  "attr:view-options"?: TestView["viewOptions"] | undefined;
5070
5042
  /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
5071
5043
  "prop:viewOptions"?: TestView["viewOptions"] | undefined;
5072
- /** */
5073
- "on:on-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5074
5044
 
5075
5045
  /** Set the innerHTML of the element */
5076
5046
  innerHTML?: string | undefined;
@@ -5081,16 +5051,11 @@ export type TestViewSolidJsProps = {
5081
5051
  export type TestViewToggleProps = {
5082
5052
  /** */
5083
5053
  myTemplate?: TestViewToggle["myTemplate"] | undefined;
5084
-
5085
- /** */
5086
- "onon-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5087
5054
  };
5088
5055
 
5089
5056
  export type TestViewToggleSolidJsProps = {
5090
5057
  /** */
5091
5058
  "prop:myTemplate"?: TestViewToggle["myTemplate"] | undefined;
5092
- /** */
5093
- "on:on-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5094
5059
 
5095
5060
  /** Set the innerHTML of the element */
5096
5061
  innerHTML?: string | undefined;
@@ -6259,9 +6224,11 @@ export type QtiAssessmentItemCorrectionProps = {
6259
6224
  timeDependent?: QtiAssessmentItemCorrection["timeDependent"] | undefined;
6260
6225
  /** */
6261
6226
  title?: QtiAssessmentItemCorrection["title"] | undefined;
6262
- /** */
6227
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
6228
+ interactions inside follow, so the item keeps no list of them to set it on. */
6263
6229
  disabled?: QtiAssessmentItemCorrection["disabled"] | undefined;
6264
- /** */
6230
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
6231
+ follow, so the item keeps no list of them to set it on. */
6265
6232
  readonly?: QtiAssessmentItemCorrection["readonly"] | undefined;
6266
6233
  /** Sets the identifier for the assessment item reference if this item is in a test. */
6267
6234
  assessmentItemRefId?:
@@ -6278,10 +6245,6 @@ export type QtiAssessmentItemCorrectionProps = {
6278
6245
  "onqti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
6279
6246
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
6280
6247
  "onqti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
6281
- /** */
6282
- "onqti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
6283
- /** */
6284
- "onqti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
6285
6248
  };
6286
6249
 
6287
6250
  export type QtiAssessmentItemCorrectionSolidJsProps = {
@@ -6299,9 +6262,11 @@ export type QtiAssessmentItemCorrectionSolidJsProps = {
6299
6262
  | undefined;
6300
6263
  /** */
6301
6264
  "prop:title"?: QtiAssessmentItemCorrection["title"] | undefined;
6302
- /** */
6265
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
6266
+ interactions inside follow, so the item keeps no list of them to set it on. */
6303
6267
  "prop:disabled"?: QtiAssessmentItemCorrection["disabled"] | undefined;
6304
- /** */
6268
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
6269
+ follow, so the item keeps no list of them to set it on. */
6305
6270
  "prop:readonly"?: QtiAssessmentItemCorrection["readonly"] | undefined;
6306
6271
  /** Sets the identifier for the assessment item reference if this item is in a test. */
6307
6272
  "prop:assessmentItemRefId"?:
@@ -6317,10 +6282,6 @@ export type QtiAssessmentItemCorrectionSolidJsProps = {
6317
6282
  "on:qti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
6318
6283
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
6319
6284
  "on:qti-item-context-updated"?: ((e: CustomEvent) => void) | undefined;
6320
- /** */
6321
- "on:qti-interaction-changed"?: ((e: CustomEvent) => void) | undefined;
6322
- /** */
6323
- "on:qti-outcome-changed"?: ((e: CustomEvent) => void) | undefined;
6324
6285
 
6325
6286
  /** Set the innerHTML of the element */
6326
6287
  innerHTML?: string | undefined;
@@ -6362,7 +6323,11 @@ export type TestNavigationCorrectionProps = {
6362
6323
  autoScoreItems?: TestNavigationCorrection["autoScoreItems"] | undefined;
6363
6324
  /** */
6364
6325
  initContext?: TestNavigationCorrection["initContext"] | undefined;
6365
- /** */
6326
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
6327
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
6328
+ shuffle seed here keeps working. Removed in the next major.
6329
+
6330
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
6366
6331
  qtiContext?: TestNavigationCorrection["qtiContext"] | undefined;
6367
6332
  /** */
6368
6333
  configContext?: TestNavigationCorrection["configContext"] | undefined;
@@ -6384,7 +6349,11 @@ export type TestNavigationCorrectionSolidJsProps = {
6384
6349
  | undefined;
6385
6350
  /** */
6386
6351
  "prop:initContext"?: TestNavigationCorrection["initContext"] | undefined;
6387
- /** */
6352
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
6353
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
6354
+ shuffle seed here keeps working. Removed in the next major.
6355
+
6356
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
6388
6357
  "prop:qtiContext"?: TestNavigationCorrection["qtiContext"] | undefined;
6389
6358
  /** */
6390
6359
  "prop:configContext"?: TestNavigationCorrection["configContext"] | undefined;
@@ -6400,16 +6369,42 @@ export type TestNavigationCorrectionSolidJsProps = {
6400
6369
  export type QtiTestCorrectionProps = {
6401
6370
  /** */
6402
6371
  configContext?: QtiTestCorrection["configContext"] | undefined;
6372
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
6373
+ everything inside reads one value: the test-container shuffling the item order, the test
6374
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
6375
+
6376
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
6377
+ object, do not mutate it: an in-place change does not notify the components inside.
6378
+
6379
+ `test-navigation.qtiContext` is an alias of this. */
6380
+ qtiContext?: QtiTestCorrection["qtiContext"] | undefined;
6403
6381
 
6404
6382
  /** */
6405
6383
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6384
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6385
+ "onqti-state-changed"?: ((e: Event) => void) | undefined;
6386
+ /** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
6387
+ "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
6406
6388
  };
6407
6389
 
6408
6390
  export type QtiTestCorrectionSolidJsProps = {
6409
6391
  /** */
6410
6392
  "prop:configContext"?: QtiTestCorrection["configContext"] | undefined;
6393
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
6394
+ everything inside reads one value: the test-container shuffling the item order, the test
6395
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
6396
+
6397
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
6398
+ object, do not mutate it: an in-place change does not notify the components inside.
6399
+
6400
+ `test-navigation.qtiContext` is an alias of this. */
6401
+ "prop:qtiContext"?: QtiTestCorrection["qtiContext"] | undefined;
6411
6402
  /** */
6412
6403
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6404
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6405
+ "on:qti-state-changed"?: ((e: Event) => void) | undefined;
6406
+ /** Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
6407
+ "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
6413
6408
 
6414
6409
  /** Set the innerHTML of the element */
6415
6410
  innerHTML?: string | undefined;
@@ -6668,9 +6663,13 @@ export type CustomElements = {
6668
6663
  * - `adaptive`: undefined
6669
6664
  * - `time-dependent`/`timeDependent`: undefined
6670
6665
  * - `title`: undefined
6671
- * - `disabled`: undefined
6672
- * - `readonly`: undefined
6666
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
6667
+ * interactions inside follow, so the item keeps no list of them to set it on.
6668
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
6669
+ * follow, so the item keeps no list of them to set it on.
6673
6670
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
6671
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
6672
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
6674
6673
  * - `variables`: undefined (property only)
6675
6674
  * - `state`: undefined (property only)
6676
6675
  * - `responses`: undefined (property only)
@@ -6681,8 +6680,6 @@ export type CustomElements = {
6681
6680
  *
6682
6681
  * - `qti-assessment-item-connected`: undefined
6683
6682
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
6684
- * - `qti-interaction-changed`: undefined
6685
- * - `qti-outcome-changed`: undefined
6686
6683
  *
6687
6684
  * ## Methods
6688
6685
  *
@@ -6701,6 +6698,19 @@ export type CustomElements = {
6701
6698
  QtiAssessmentItemProps & BaseProps<QtiAssessmentItem> & BaseEvents
6702
6699
  >;
6703
6700
 
6701
+ /**
6702
+ *
6703
+ *
6704
+ * ## Slots
6705
+ *
6706
+ * Areas where markup can be added to the component.
6707
+ *
6708
+ * - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
6709
+ */
6710
+ "qti-assessment-stimulus": Partial<
6711
+ QtiAssessmentStimulusProps & BaseProps<QtiAssessmentStimulus> & BaseEvents
6712
+ >;
6713
+
6704
6714
  /**
6705
6715
  * Represents a custom element for referencing an assessment stimulus.
6706
6716
  *
@@ -6813,12 +6823,6 @@ export type CustomElements = {
6813
6823
  * - `identifier`: undefined
6814
6824
  * - `showStatus`: undefined (property only)
6815
6825
  *
6816
- * ## Events
6817
- *
6818
- * Events that will be emitted by the component.
6819
- *
6820
- * - `qti-register-feedback`: undefined
6821
- *
6822
6826
  * ## Methods
6823
6827
  *
6824
6828
  * Methods that can be called to access component functionality.
@@ -6841,12 +6845,6 @@ export type CustomElements = {
6841
6845
  * - `identifier`: undefined
6842
6846
  * - `showStatus`: undefined (property only)
6843
6847
  *
6844
- * ## Events
6845
- *
6846
- * Events that will be emitted by the component.
6847
- *
6848
- * - `qti-register-feedback`: undefined
6849
- *
6850
6848
  * ## Methods
6851
6849
  *
6852
6850
  * Methods that can be called to access component functionality.
@@ -6889,12 +6887,6 @@ export type CustomElements = {
6889
6887
  * - `identifier`: undefined
6890
6888
  * - `showStatus`: undefined (property only)
6891
6889
  *
6892
- * ## Events
6893
- *
6894
- * Events that will be emitted by the component.
6895
- *
6896
- * - `qti-register-feedback`: undefined
6897
- *
6898
6890
  * ## Methods
6899
6891
  *
6900
6892
  * Methods that can be called to access component functionality.
@@ -7652,7 +7644,7 @@ export type CustomElements = {
7652
7644
  * - `base`/`undefined`: Not implemented. Numeric base used when recording the value.
7653
7645
  * - `string-identifier`/`undefined`: Not implemented. Identifier of a second, string-typed response variable that also receives the raw entry.
7654
7646
  * - `max-strings`/`undefined`: Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it.
7655
- * - `min-strings`/`undefined`: Not implemented. See `max-strings`.
7647
+ * - `min-strings`/`minStrings`: Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec.
7656
7648
  * - `format`: How the response text is presented. Reflected so themes can key off
7657
7649
  * `:host([format='preformatted'])`.
7658
7650
  *
@@ -8902,7 +8894,8 @@ export type CustomElements = {
8902
8894
  * - `lower-bound`/`min`: undefined
8903
8895
  * - `upper-bound`/`max`: undefined
8904
8896
  * - `step`: undefined
8905
- * - `response`: undefined
8897
+ * - `response`: Shows the value without publishing it: it came from the item (a default or a restored answer) or
8898
+ * from the host, which hold it already. Only the candidate's input is published.
8906
8899
  * - `response-identifier`/`responseIdentifier`: undefined
8907
8900
  * - `disabled`: undefined
8908
8901
  * - `readonly`: undefined
@@ -9118,6 +9111,21 @@ export type CustomElements = {
9118
9111
  QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents
9119
9112
  >;
9120
9113
 
9114
+ /**
9115
+ *
9116
+ *
9117
+ * ## Attributes & Properties
9118
+ *
9119
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9120
+ *
9121
+ * - `identifier`: undefined
9122
+ * - `title`: undefined
9123
+ * - `_testContext`: undefined (property only)
9124
+ */
9125
+ "qti-assessment-test": Partial<
9126
+ QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
9127
+ >;
9128
+
9121
9129
  /**
9122
9130
  *
9123
9131
  *
@@ -9139,12 +9147,6 @@ export type CustomElements = {
9139
9147
  * - `xmlDoc`: undefined (property only)
9140
9148
  * - `assessmentItem`: undefined (property only) (readonly)
9141
9149
  * - `myTemplate`: undefined (property only)
9142
- *
9143
- * ## Events
9144
- *
9145
- * Events that will be emitted by the component.
9146
- *
9147
- * - `qti-assessment-item-ref-connected`: undefined
9148
9150
  */
9149
9151
  "qti-assessment-item-ref": Partial<
9150
9152
  QtiAssessmentItemRefProps & BaseProps<QtiAssessmentItemRef> & BaseEvents
@@ -9177,27 +9179,6 @@ export type CustomElements = {
9177
9179
  QtiAssessmentSectionProps & BaseProps<QtiAssessmentSection> & BaseEvents
9178
9180
  >;
9179
9181
 
9180
- /**
9181
- *
9182
- *
9183
- * ## Attributes & Properties
9184
- *
9185
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9186
- *
9187
- * - `identifier`: undefined
9188
- * - `title`: undefined
9189
- * - `_testContext`: undefined (property only)
9190
- *
9191
- * ## Events
9192
- *
9193
- * Events that will be emitted by the component.
9194
- *
9195
- * - `qti-assessment-test-connected`: undefined
9196
- */
9197
- "qti-assessment-test": Partial<
9198
- QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
9199
- >;
9200
-
9201
9182
  /**
9202
9183
  *
9203
9184
  *
@@ -9281,12 +9262,6 @@ export type CustomElements = {
9281
9262
  * - `identifier`: undefined
9282
9263
  * - `showStatus`: undefined (property only)
9283
9264
  *
9284
- * ## Events
9285
- *
9286
- * Events that will be emitted by the component.
9287
- *
9288
- * - `qti-register-feedback`: undefined
9289
- *
9290
9265
  * ## Methods
9291
9266
  *
9292
9267
  * Methods that can be called to access component functionality.
@@ -9355,29 +9330,6 @@ export type CustomElements = {
9355
9330
  QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents
9356
9331
  >;
9357
9332
 
9358
- /**
9359
- *
9360
- *
9361
- * ## Attributes & Properties
9362
- *
9363
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9364
- *
9365
- * - `identifier`: undefined
9366
- * - `auto-score-items`/`autoScoreItems`: undefined
9367
- * - `initContext`: undefined (property only)
9368
- * - `qtiContext`: undefined (property only)
9369
- * - `configContext`: undefined (property only)
9370
- *
9371
- * ## Events
9372
- *
9373
- * Events that will be emitted by the component.
9374
- *
9375
- * - `qti-computed-context-updated`: undefined
9376
- */
9377
- "test-navigation": Partial<
9378
- TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9379
- >;
9380
-
9381
9333
  /**
9382
9334
  * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
9383
9335
  * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
@@ -9462,12 +9414,22 @@ export type CustomElements = {
9462
9414
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9463
9415
  *
9464
9416
  * - `configContext`: undefined (property only)
9417
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
9418
+ * everything inside reads one value: the test-container shuffling the item order, the test
9419
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
9420
+ *
9421
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
9422
+ * object, do not mutate it: an in-place change does not notify the components inside.
9423
+ *
9424
+ * `test-navigation.qtiContext` is an alias of this. (property only)
9465
9425
  *
9466
9426
  * ## Events
9467
9427
  *
9468
9428
  * Events that will be emitted by the component.
9469
9429
  *
9470
9430
  * - `qti-test-connected`: undefined
9431
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
9432
+ * - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
9471
9433
  */
9472
9434
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9473
9435
 
@@ -9506,12 +9468,6 @@ export type CustomElements = {
9506
9468
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9507
9469
  *
9508
9470
  * - `item-id`/`itemId`: undefined
9509
- *
9510
- * ## Events
9511
- *
9512
- * Events that will be emitted by the component.
9513
- *
9514
- * - `qti-request-navigation`: undefined
9515
9471
  */
9516
9472
  "test-item-link": Partial<
9517
9473
  TestItemLinkProps & BaseProps<TestItemLink> & BaseEvents
@@ -9527,8 +9483,6 @@ export type CustomElements = {
9527
9483
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9528
9484
  *
9529
9485
  * - `language`: Fallback language when neither the item content nor the document declares one.
9530
- * - `item-ref-id`/`itemRefId`: Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
9531
- * navigation cursor (`navItemRefId`) instead.
9532
9486
  * - `_ttsContext`: undefined (property only)
9533
9487
  *
9534
9488
  * ## CSS States
@@ -9743,6 +9697,29 @@ export type CustomElements = {
9743
9697
  TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
9744
9698
  >;
9745
9699
 
9700
+ /**
9701
+ *
9702
+ *
9703
+ * ## Attributes & Properties
9704
+ *
9705
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9706
+ *
9707
+ * - `identifier`: undefined
9708
+ * - `auto-score-items`/`autoScoreItems`: undefined
9709
+ * - `initContext`: undefined (property only)
9710
+ * - `qtiContext`: undefined (property only)
9711
+ * - `configContext`: undefined (property only)
9712
+ *
9713
+ * ## Events
9714
+ *
9715
+ * Events that will be emitted by the component.
9716
+ *
9717
+ * - `qti-computed-context-updated`: undefined
9718
+ */
9719
+ "test-navigation": Partial<
9720
+ TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9721
+ >;
9722
+
9746
9723
  /**
9747
9724
  * Represents a custom element for navigating to the next test item.
9748
9725
  *
@@ -9756,12 +9733,6 @@ export type CustomElements = {
9756
9733
  * - `role`: undefined (property only)
9757
9734
  * - `ariaLabel`: undefined (property only)
9758
9735
  *
9759
- * ## Events
9760
- *
9761
- * Events that will be emitted by the component.
9762
- *
9763
- * - `qti-request-navigation`: undefined
9764
- *
9765
9736
  * ## Methods
9766
9737
  *
9767
9738
  * Methods that can be called to access component functionality.
@@ -9798,12 +9769,6 @@ export type CustomElements = {
9798
9769
  * - `sectionItems`: undefined (property only)
9799
9770
  * - `itemIndex`: undefined (property only)
9800
9771
  *
9801
- * ## Events
9802
- *
9803
- * Events that will be emitted by the component.
9804
- *
9805
- * - `qti-request-navigation`: undefined
9806
- *
9807
9772
  * ## Methods
9808
9773
  *
9809
9774
  * Methods that can be called to access component functionality.
@@ -9849,12 +9814,6 @@ export type CustomElements = {
9849
9814
  * - `view`: undefined
9850
9815
  * - `disabled`: undefined
9851
9816
  * - `myTemplate`: undefined (property only)
9852
- *
9853
- * ## Events
9854
- *
9855
- * Events that will be emitted by the component.
9856
- *
9857
- * - `test-update-outcome-variable`: undefined
9858
9817
  */
9859
9818
  "test-scoring-buttons": Partial<
9860
9819
  TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents
@@ -9899,12 +9858,6 @@ export type CustomElements = {
9899
9858
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9900
9859
  *
9901
9860
  * - `section-id`/`sectionId`: undefined
9902
- *
9903
- * ## Events
9904
- *
9905
- * Events that will be emitted by the component.
9906
- *
9907
- * - `qti-request-navigation`: undefined
9908
9861
  */
9909
9862
  "test-section-link": Partial<
9910
9863
  TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents
@@ -9939,12 +9892,6 @@ export type CustomElements = {
9939
9892
  *
9940
9893
  * - `label`: label accompanying the select view dropdown
9941
9894
  * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
9942
- *
9943
- * ## Events
9944
- *
9945
- * Events that will be emitted by the component.
9946
- *
9947
- * - `on-test-switch-view`: undefined
9948
9895
  */
9949
9896
  "test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
9950
9897
 
@@ -9957,12 +9904,6 @@ export type CustomElements = {
9957
9904
  *
9958
9905
  * - `myTemplate`: undefined (property only)
9959
9906
  *
9960
- * ## Events
9961
- *
9962
- * Events that will be emitted by the component.
9963
- *
9964
- * - `on-test-switch-view`: undefined
9965
- *
9966
9907
  * ## Methods
9967
9908
  *
9968
9909
  * Methods that can be called to access component functionality.
@@ -11967,9 +11908,13 @@ export type CustomElements = {
11967
11908
  * - `adaptive`: undefined
11968
11909
  * - `time-dependent`/`timeDependent`: undefined
11969
11910
  * - `title`: undefined
11970
- * - `disabled`: undefined
11971
- * - `readonly`: undefined
11911
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
11912
+ * interactions inside follow, so the item keeps no list of them to set it on.
11913
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
11914
+ * follow, so the item keeps no list of them to set it on.
11972
11915
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
11916
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
11917
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
11973
11918
  * - `variables`: undefined (property only)
11974
11919
  * - `state`: undefined (property only)
11975
11920
  * - `responses`: undefined (property only)
@@ -11980,8 +11925,6 @@ export type CustomElements = {
11980
11925
  *
11981
11926
  * - `qti-assessment-item-connected`: undefined
11982
11927
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
11983
- * - `qti-interaction-changed`: undefined
11984
- * - `qti-outcome-changed`: undefined
11985
11928
  *
11986
11929
  * ## Methods
11987
11930
  *
@@ -12066,12 +12009,22 @@ export type CustomElements = {
12066
12009
  * Component attributes and properties that can be applied to the element or by using JavaScript.
12067
12010
  *
12068
12011
  * - `configContext`: undefined (property only)
12012
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
12013
+ * everything inside reads one value: the test-container shuffling the item order, the test
12014
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
12015
+ *
12016
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
12017
+ * object, do not mutate it: an in-place change does not notify the components inside.
12018
+ *
12019
+ * `test-navigation.qtiContext` is an alias of this. (property only)
12069
12020
  *
12070
12021
  * ## Events
12071
12022
  *
12072
12023
  * Events that will be emitted by the component.
12073
12024
  *
12074
12025
  * - `qti-test-connected`: undefined
12026
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
12027
+ * - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
12075
12028
  *
12076
12029
  * ## Methods
12077
12030
  *
@@ -12272,9 +12225,13 @@ export type CustomElementsSolidJs = {
12272
12225
  * - `adaptive`: undefined
12273
12226
  * - `time-dependent`/`timeDependent`: undefined
12274
12227
  * - `title`: undefined
12275
- * - `disabled`: undefined
12276
- * - `readonly`: undefined
12228
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
12229
+ * interactions inside follow, so the item keeps no list of them to set it on.
12230
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
12231
+ * follow, so the item keeps no list of them to set it on.
12277
12232
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
12233
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
12234
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
12278
12235
  * - `variables`: undefined (property only)
12279
12236
  * - `state`: undefined (property only)
12280
12237
  * - `responses`: undefined (property only)
@@ -12285,8 +12242,6 @@ export type CustomElementsSolidJs = {
12285
12242
  *
12286
12243
  * - `qti-assessment-item-connected`: undefined
12287
12244
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
12288
- * - `qti-interaction-changed`: undefined
12289
- * - `qti-outcome-changed`: undefined
12290
12245
  *
12291
12246
  * ## Methods
12292
12247
  *
@@ -12308,6 +12263,22 @@ export type CustomElementsSolidJs = {
12308
12263
  BaseEvents
12309
12264
  >;
12310
12265
 
12266
+ /**
12267
+ *
12268
+ *
12269
+ * ## Slots
12270
+ *
12271
+ * Areas where markup can be added to the component.
12272
+ *
12273
+ * - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
12274
+ */
12275
+ "qti-assessment-stimulus": Partial<
12276
+ QtiAssessmentStimulusProps &
12277
+ QtiAssessmentStimulusSolidJsProps &
12278
+ BaseProps<QtiAssessmentStimulus> &
12279
+ BaseEvents
12280
+ >;
12281
+
12311
12282
  /**
12312
12283
  * Represents a custom element for referencing an assessment stimulus.
12313
12284
  *
@@ -12431,12 +12402,6 @@ export type CustomElementsSolidJs = {
12431
12402
  * - `identifier`: undefined
12432
12403
  * - `showStatus`: undefined (property only)
12433
12404
  *
12434
- * ## Events
12435
- *
12436
- * Events that will be emitted by the component.
12437
- *
12438
- * - `qti-register-feedback`: undefined
12439
- *
12440
12405
  * ## Methods
12441
12406
  *
12442
12407
  * Methods that can be called to access component functionality.
@@ -12462,12 +12427,6 @@ export type CustomElementsSolidJs = {
12462
12427
  * - `identifier`: undefined
12463
12428
  * - `showStatus`: undefined (property only)
12464
12429
  *
12465
- * ## Events
12466
- *
12467
- * Events that will be emitted by the component.
12468
- *
12469
- * - `qti-register-feedback`: undefined
12470
- *
12471
12430
  * ## Methods
12472
12431
  *
12473
12432
  * Methods that can be called to access component functionality.
@@ -12516,12 +12475,6 @@ export type CustomElementsSolidJs = {
12516
12475
  * - `identifier`: undefined
12517
12476
  * - `showStatus`: undefined (property only)
12518
12477
  *
12519
- * ## Events
12520
- *
12521
- * Events that will be emitted by the component.
12522
- *
12523
- * - `qti-register-feedback`: undefined
12524
- *
12525
12478
  * ## Methods
12526
12479
  *
12527
12480
  * Methods that can be called to access component functionality.
@@ -13342,7 +13295,7 @@ export type CustomElementsSolidJs = {
13342
13295
  * - `base`/`undefined`: Not implemented. Numeric base used when recording the value.
13343
13296
  * - `string-identifier`/`undefined`: Not implemented. Identifier of a second, string-typed response variable that also receives the raw entry.
13344
13297
  * - `max-strings`/`undefined`: Not implemented. Maximum number of separate string responses. QTI defines these for a multi-string response — several bound variables, one field each. This element renders a single textarea bound to one variable, so there is nothing for the bounds to count: reading them as a word or paragraph limit would invent a rule QTI does not state. Implement alongside multi-string rendering, not before it.
13345
- * - `min-strings`/`undefined`: Not implemented. See `max-strings`.
13298
+ * - `min-strings`/`minStrings`: Below 1 an empty field is valid; from 1 it must hold a value. Defaults to 0, as in the QTI spec.
13346
13299
  * - `format`: How the response text is presented. Reflected so themes can key off
13347
13300
  * `:host([format='preformatted'])`.
13348
13301
  *
@@ -14622,7 +14575,8 @@ export type CustomElementsSolidJs = {
14622
14575
  * - `lower-bound`/`min`: undefined
14623
14576
  * - `upper-bound`/`max`: undefined
14624
14577
  * - `step`: undefined
14625
- * - `response`: undefined
14578
+ * - `response`: Shows the value without publishing it: it came from the item (a default or a restored answer) or
14579
+ * from the host, which hold it already. Only the candidate's input is published.
14626
14580
  * - `response-identifier`/`responseIdentifier`: undefined
14627
14581
  * - `disabled`: undefined
14628
14582
  * - `readonly`: undefined
@@ -14845,6 +14799,24 @@ export type CustomElementsSolidJs = {
14845
14799
  BaseEvents
14846
14800
  >;
14847
14801
 
14802
+ /**
14803
+ *
14804
+ *
14805
+ * ## Attributes & Properties
14806
+ *
14807
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
14808
+ *
14809
+ * - `identifier`: undefined
14810
+ * - `title`: undefined
14811
+ * - `_testContext`: undefined (property only)
14812
+ */
14813
+ "qti-assessment-test": Partial<
14814
+ QtiAssessmentTestProps &
14815
+ QtiAssessmentTestSolidJsProps &
14816
+ BaseProps<QtiAssessmentTest> &
14817
+ BaseEvents
14818
+ >;
14819
+
14848
14820
  /**
14849
14821
  *
14850
14822
  *
@@ -14866,12 +14838,6 @@ export type CustomElementsSolidJs = {
14866
14838
  * - `xmlDoc`: undefined (property only)
14867
14839
  * - `assessmentItem`: undefined (property only) (readonly)
14868
14840
  * - `myTemplate`: undefined (property only)
14869
- *
14870
- * ## Events
14871
- *
14872
- * Events that will be emitted by the component.
14873
- *
14874
- * - `qti-assessment-item-ref-connected`: undefined
14875
14841
  */
14876
14842
  "qti-assessment-item-ref": Partial<
14877
14843
  QtiAssessmentItemRefProps &
@@ -14910,30 +14876,6 @@ export type CustomElementsSolidJs = {
14910
14876
  BaseEvents
14911
14877
  >;
14912
14878
 
14913
- /**
14914
- *
14915
- *
14916
- * ## Attributes & Properties
14917
- *
14918
- * Component attributes and properties that can be applied to the element or by using JavaScript.
14919
- *
14920
- * - `identifier`: undefined
14921
- * - `title`: undefined
14922
- * - `_testContext`: undefined (property only)
14923
- *
14924
- * ## Events
14925
- *
14926
- * Events that will be emitted by the component.
14927
- *
14928
- * - `qti-assessment-test-connected`: undefined
14929
- */
14930
- "qti-assessment-test": Partial<
14931
- QtiAssessmentTestProps &
14932
- QtiAssessmentTestSolidJsProps &
14933
- BaseProps<QtiAssessmentTest> &
14934
- BaseEvents
14935
- >;
14936
-
14937
14879
  /**
14938
14880
  *
14939
14881
  *
@@ -15026,12 +14968,6 @@ export type CustomElementsSolidJs = {
15026
14968
  * - `identifier`: undefined
15027
14969
  * - `showStatus`: undefined (property only)
15028
14970
  *
15029
- * ## Events
15030
- *
15031
- * Events that will be emitted by the component.
15032
- *
15033
- * - `qti-register-feedback`: undefined
15034
- *
15035
14971
  * ## Methods
15036
14972
  *
15037
14973
  * Methods that can be called to access component functionality.
@@ -15109,32 +15045,6 @@ export type CustomElementsSolidJs = {
15109
15045
  BaseEvents
15110
15046
  >;
15111
15047
 
15112
- /**
15113
- *
15114
- *
15115
- * ## Attributes & Properties
15116
- *
15117
- * Component attributes and properties that can be applied to the element or by using JavaScript.
15118
- *
15119
- * - `identifier`: undefined
15120
- * - `auto-score-items`/`autoScoreItems`: undefined
15121
- * - `initContext`: undefined (property only)
15122
- * - `qtiContext`: undefined (property only)
15123
- * - `configContext`: undefined (property only)
15124
- *
15125
- * ## Events
15126
- *
15127
- * Events that will be emitted by the component.
15128
- *
15129
- * - `qti-computed-context-updated`: undefined
15130
- */
15131
- "test-navigation": Partial<
15132
- TestNavigationProps &
15133
- TestNavigationSolidJsProps &
15134
- BaseProps<TestNavigation> &
15135
- BaseEvents
15136
- >;
15137
-
15138
15048
  /**
15139
15049
  * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
15140
15050
  * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
@@ -15222,12 +15132,22 @@ export type CustomElementsSolidJs = {
15222
15132
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15223
15133
  *
15224
15134
  * - `configContext`: undefined (property only)
15135
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
15136
+ * everything inside reads one value: the test-container shuffling the item order, the test
15137
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
15138
+ *
15139
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
15140
+ * object, do not mutate it: an in-place change does not notify the components inside.
15141
+ *
15142
+ * `test-navigation.qtiContext` is an alias of this. (property only)
15225
15143
  *
15226
15144
  * ## Events
15227
15145
  *
15228
15146
  * Events that will be emitted by the component.
15229
15147
  *
15230
15148
  * - `qti-test-connected`: undefined
15149
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
15150
+ * - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
15231
15151
  */
15232
15152
  "qti-test": Partial<
15233
15153
  QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
@@ -15274,12 +15194,6 @@ export type CustomElementsSolidJs = {
15274
15194
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15275
15195
  *
15276
15196
  * - `item-id`/`itemId`: undefined
15277
- *
15278
- * ## Events
15279
- *
15280
- * Events that will be emitted by the component.
15281
- *
15282
- * - `qti-request-navigation`: undefined
15283
15197
  */
15284
15198
  "test-item-link": Partial<
15285
15199
  TestItemLinkProps &
@@ -15298,8 +15212,6 @@ export type CustomElementsSolidJs = {
15298
15212
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15299
15213
  *
15300
15214
  * - `language`: Fallback language when neither the item content nor the document declares one.
15301
- * - `item-ref-id`/`itemRefId`: Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
15302
- * navigation cursor (`navItemRefId`) instead.
15303
15215
  * - `_ttsContext`: undefined (property only)
15304
15216
  *
15305
15217
  * ## CSS States
@@ -15538,6 +15450,32 @@ export type CustomElementsSolidJs = {
15538
15450
  BaseEvents
15539
15451
  >;
15540
15452
 
15453
+ /**
15454
+ *
15455
+ *
15456
+ * ## Attributes & Properties
15457
+ *
15458
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15459
+ *
15460
+ * - `identifier`: undefined
15461
+ * - `auto-score-items`/`autoScoreItems`: undefined
15462
+ * - `initContext`: undefined (property only)
15463
+ * - `qtiContext`: undefined (property only)
15464
+ * - `configContext`: undefined (property only)
15465
+ *
15466
+ * ## Events
15467
+ *
15468
+ * Events that will be emitted by the component.
15469
+ *
15470
+ * - `qti-computed-context-updated`: undefined
15471
+ */
15472
+ "test-navigation": Partial<
15473
+ TestNavigationProps &
15474
+ TestNavigationSolidJsProps &
15475
+ BaseProps<TestNavigation> &
15476
+ BaseEvents
15477
+ >;
15478
+
15541
15479
  /**
15542
15480
  * Represents a custom element for navigating to the next test item.
15543
15481
  *
@@ -15551,12 +15489,6 @@ export type CustomElementsSolidJs = {
15551
15489
  * - `role`: undefined (property only)
15552
15490
  * - `ariaLabel`: undefined (property only)
15553
15491
  *
15554
- * ## Events
15555
- *
15556
- * Events that will be emitted by the component.
15557
- *
15558
- * - `qti-request-navigation`: undefined
15559
- *
15560
15492
  * ## Methods
15561
15493
  *
15562
15494
  * Methods that can be called to access component functionality.
@@ -15598,12 +15530,6 @@ export type CustomElementsSolidJs = {
15598
15530
  * - `sectionItems`: undefined (property only)
15599
15531
  * - `itemIndex`: undefined (property only)
15600
15532
  *
15601
- * ## Events
15602
- *
15603
- * Events that will be emitted by the component.
15604
- *
15605
- * - `qti-request-navigation`: undefined
15606
- *
15607
15533
  * ## Methods
15608
15534
  *
15609
15535
  * Methods that can be called to access component functionality.
@@ -15657,12 +15583,6 @@ export type CustomElementsSolidJs = {
15657
15583
  * - `view`: undefined
15658
15584
  * - `disabled`: undefined
15659
15585
  * - `myTemplate`: undefined (property only)
15660
- *
15661
- * ## Events
15662
- *
15663
- * Events that will be emitted by the component.
15664
- *
15665
- * - `test-update-outcome-variable`: undefined
15666
15586
  */
15667
15587
  "test-scoring-buttons": Partial<
15668
15588
  TestScoringButtonsProps &
@@ -15714,12 +15634,6 @@ export type CustomElementsSolidJs = {
15714
15634
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15715
15635
  *
15716
15636
  * - `section-id`/`sectionId`: undefined
15717
- *
15718
- * ## Events
15719
- *
15720
- * Events that will be emitted by the component.
15721
- *
15722
- * - `qti-request-navigation`: undefined
15723
15637
  */
15724
15638
  "test-section-link": Partial<
15725
15639
  TestSectionLinkProps &
@@ -15759,12 +15673,6 @@ export type CustomElementsSolidJs = {
15759
15673
  *
15760
15674
  * - `label`: label accompanying the select view dropdown
15761
15675
  * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
15762
- *
15763
- * ## Events
15764
- *
15765
- * Events that will be emitted by the component.
15766
- *
15767
- * - `on-test-switch-view`: undefined
15768
15676
  */
15769
15677
  "test-view": Partial<
15770
15678
  TestViewProps & TestViewSolidJsProps & BaseProps<TestView> & BaseEvents
@@ -15779,12 +15687,6 @@ export type CustomElementsSolidJs = {
15779
15687
  *
15780
15688
  * - `myTemplate`: undefined (property only)
15781
15689
  *
15782
- * ## Events
15783
- *
15784
- * Events that will be emitted by the component.
15785
- *
15786
- * - `on-test-switch-view`: undefined
15787
- *
15788
15690
  * ## Methods
15789
15691
  *
15790
15692
  * Methods that can be called to access component functionality.
@@ -17986,9 +17888,13 @@ export type CustomElementsSolidJs = {
17986
17888
  * - `adaptive`: undefined
17987
17889
  * - `time-dependent`/`timeDependent`: undefined
17988
17890
  * - `title`: undefined
17989
- * - `disabled`: undefined
17990
- * - `readonly`: undefined
17891
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
17892
+ * interactions inside follow, so the item keeps no list of them to set it on.
17893
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
17894
+ * follow, so the item keeps no list of them to set it on.
17991
17895
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
17896
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
17897
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
17992
17898
  * - `variables`: undefined (property only)
17993
17899
  * - `state`: undefined (property only)
17994
17900
  * - `responses`: undefined (property only)
@@ -17999,8 +17905,6 @@ export type CustomElementsSolidJs = {
17999
17905
  *
18000
17906
  * - `qti-assessment-item-connected`: undefined
18001
17907
  * - `qti-item-context-updated`: Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing.
18002
- * - `qti-interaction-changed`: undefined
18003
- * - `qti-outcome-changed`: undefined
18004
17908
  *
18005
17909
  * ## Methods
18006
17910
  *
@@ -18090,12 +17994,22 @@ export type CustomElementsSolidJs = {
18090
17994
  * Component attributes and properties that can be applied to the element or by using JavaScript.
18091
17995
  *
18092
17996
  * - `configContext`: undefined (property only)
17997
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
17998
+ * everything inside reads one value: the test-container shuffling the item order, the test
17999
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
18000
+ *
18001
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
18002
+ * object, do not mutate it: an in-place change does not notify the components inside.
18003
+ *
18004
+ * `test-navigation.qtiContext` is an alias of this. (property only)
18093
18005
  *
18094
18006
  * ## Events
18095
18007
  *
18096
18008
  * Events that will be emitted by the component.
18097
18009
  *
18098
18010
  * - `qti-test-connected`: undefined
18011
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
18012
+ * - `qti-test-context-updated`: Deprecated: listen to `qti-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
18099
18013
  *
18100
18014
  * ## Methods
18101
18015
  *