@citolab/qti-components 9.2.0 → 9.4.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 (58) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +359 -229
  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-JLZCZVRX.js → chunk-B5XHZI2P.js} +2 -2
  8. package/dist/{chunk-RAJQKCQ3.js → chunk-B74SYQB2.js} +2 -2
  9. package/dist/{chunk-YIYHCHHM.js → chunk-BMXG7D2N.js} +2 -2
  10. package/dist/{chunk-FG5JAWSN.js → chunk-C3JPUV36.js} +2 -2
  11. package/dist/{chunk-7PXUE2GR.js → chunk-GNTO3IFM.js} +976 -296
  12. package/dist/chunk-GNTO3IFM.js.map +1 -0
  13. package/dist/{chunk-ZOQVTG5L.js → chunk-JHPQJDAV.js} +2 -2
  14. package/dist/{chunk-GPGUXZ3X.js → chunk-LKHRHFXO.js} +6 -6
  15. package/dist/{chunk-JGPWBIVD.js → chunk-MSGYZE6L.js} +2 -2
  16. package/dist/{chunk-YVZWNLF4.js → chunk-R7MMMDP7.js} +139 -18
  17. package/dist/chunk-R7MMMDP7.js.map +1 -0
  18. package/dist/{chunk-REKCRWJV.js → chunk-XEWGFAS4.js} +166 -104
  19. package/dist/chunk-XEWGFAS4.js.map +1 -0
  20. package/dist/{computed.types.d-DB5gfOh9.d.ts → computed.types.d-gJrBeUMG.d.ts} +1 -1
  21. package/dist/corrections.d.ts +9 -9
  22. package/dist/corrections.js +7 -7
  23. package/dist/elements.d.ts +46 -6
  24. package/dist/elements.js +5 -3
  25. package/dist/index.d.ts +12 -12
  26. package/dist/index.js +18 -12
  27. package/dist/{interaction.d-DegNJ5ZA.d.ts → interaction.d-g6XG0T0Z.d.ts} +2 -2
  28. package/dist/interactions.d.ts +4 -4
  29. package/dist/interactions.js +3 -3
  30. package/dist/item.d.ts +4 -4
  31. package/dist/item.js +3 -3
  32. package/dist/{item.types.d-BDFrq19E.d.ts → item.types.d-B55QkJ92.d.ts} +10 -0
  33. package/dist/loader.d.ts +2 -2
  34. package/dist/processing.d.ts +3 -3
  35. package/dist/processing.js +3 -3
  36. package/dist/qti-components-jsx.d.ts +628 -268
  37. package/dist/{qti-condition-expression.d-DLboq8bR.d.ts → qti-condition-expression.d-L7yb3Rzy.d.ts} +1 -1
  38. package/dist/{qti-expression.d-BksT9iLB.d.ts → qti-expression.d-CuaLjZ6g.d.ts} +1 -1
  39. package/dist/{qti-feedback.d-D-w6-mJv.d.ts → qti-feedback.d-wMYNVkkj.d.ts} +2 -3
  40. package/dist/{qti-item.d-D_-9_0e6.d.ts → qti-item.d-DgC1AQbY.d.ts} +1 -1
  41. package/dist/{qti-test.d-BfAZE6UF.d.ts → qti-test.d-Cud5Gvy0.d.ts} +278 -38
  42. package/dist/{qti-text-entry-interaction.d-CATtcPyX.d.ts → qti-text-entry-interaction.d-DKvz9ncv.d.ts} +2 -2
  43. package/dist/{session.context.d-Cjs0BkJB.d.ts → session.context.d-D5080LVx.d.ts} +3 -1
  44. package/dist/test.d.ts +58 -11
  45. package/dist/test.js +8 -4
  46. package/package.json +4 -4
  47. package/dist/chunk-7PXUE2GR.js.map +0 -1
  48. package/dist/chunk-REKCRWJV.js.map +0 -1
  49. package/dist/chunk-YVZWNLF4.js.map +0 -1
  50. /package/dist/{chunk-G5RQ5GKG.js.map → chunk-3BAQWO5C.js.map} +0 -0
  51. /package/dist/{chunk-ZG7FBQFP.js.map → chunk-ACRN7YJM.js.map} +0 -0
  52. /package/dist/{chunk-JLZCZVRX.js.map → chunk-B5XHZI2P.js.map} +0 -0
  53. /package/dist/{chunk-RAJQKCQ3.js.map → chunk-B74SYQB2.js.map} +0 -0
  54. /package/dist/{chunk-YIYHCHHM.js.map → chunk-BMXG7D2N.js.map} +0 -0
  55. /package/dist/{chunk-FG5JAWSN.js.map → chunk-C3JPUV36.js.map} +0 -0
  56. /package/dist/{chunk-ZOQVTG5L.js.map → chunk-JHPQJDAV.js.map} +0 -0
  57. /package/dist/{chunk-GPGUXZ3X.js.map → chunk-LKHRHFXO.js.map} +0 -0
  58. /package/dist/{chunk-JGPWBIVD.js.map → chunk-MSGYZE6L.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,
@@ -90,11 +90,13 @@ import type {
90
90
  TestTtsResume,
91
91
  TestTtsPrev,
92
92
  TestTtsPlay,
93
+ TestTtsPick,
93
94
  TestTtsPause,
94
95
  TestTtsNext,
95
96
  TestItemToSpeech,
96
97
  SpeechState,
97
98
  ttsContext,
99
+ TestNavigation,
98
100
  TestNext,
99
101
  TestPagingButtonsStamp,
100
102
  TestPrev,
@@ -332,9 +334,11 @@ export type QtiAssessmentItemProps = {
332
334
  timeDependent?: QtiAssessmentItem["timeDependent"] | undefined;
333
335
  /** */
334
336
  title?: QtiAssessmentItem["title"] | undefined;
335
- /** */
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. */
336
339
  disabled?: QtiAssessmentItem["disabled"] | undefined;
337
- /** */
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. */
338
342
  readonly?: QtiAssessmentItem["readonly"] | undefined;
339
343
  /** Sets the identifier for the assessment item reference if this item is in a test. */
340
344
  assessmentItemRefId?: QtiAssessmentItem["assessmentItemRefId"] | undefined;
@@ -366,9 +370,11 @@ export type QtiAssessmentItemSolidJsProps = {
366
370
  "prop:timeDependent"?: QtiAssessmentItem["timeDependent"] | undefined;
367
371
  /** */
368
372
  "prop:title"?: QtiAssessmentItem["title"] | undefined;
369
- /** */
373
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
374
+ interactions inside follow, so the item keeps no list of them to set it on. */
370
375
  "prop:disabled"?: QtiAssessmentItem["disabled"] | undefined;
371
- /** */
376
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
377
+ follow, so the item keeps no list of them to set it on. */
372
378
  "prop:readonly"?: QtiAssessmentItem["readonly"] | undefined;
373
379
  /** Sets the identifier for the assessment item reference if this item is in a test. */
374
380
  "prop:assessmentItemRefId"?:
@@ -395,6 +401,15 @@ export type QtiAssessmentItemSolidJsProps = {
395
401
  textContent?: string | number | undefined;
396
402
  };
397
403
 
404
+ export type QtiAssessmentStimulusProps = {};
405
+
406
+ export type QtiAssessmentStimulusSolidJsProps = {
407
+ /** Set the innerHTML of the element */
408
+ innerHTML?: string | undefined;
409
+ /** Set the textContent of the element */
410
+ textContent?: string | number | undefined;
411
+ };
412
+
398
413
  export type QtiAssessmentStimulusRefProps = {
399
414
  /** */
400
415
  identifier?: QtiAssessmentStimulusRef["identifier"] | undefined;
@@ -483,9 +498,6 @@ export type QtiFeedbackBlockProps = {
483
498
  identifier?: QtiFeedbackBlock["identifier"] | undefined;
484
499
  /** */
485
500
  showStatus?: QtiFeedbackBlock["showStatus"] | undefined;
486
-
487
- /** */
488
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
489
501
  };
490
502
 
491
503
  export type QtiFeedbackBlockSolidJsProps = {
@@ -501,8 +513,6 @@ export type QtiFeedbackBlockSolidJsProps = {
501
513
  "prop:identifier"?: QtiFeedbackBlock["identifier"] | undefined;
502
514
  /** */
503
515
  "prop:showStatus"?: QtiFeedbackBlock["showStatus"] | undefined;
504
- /** */
505
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
506
516
 
507
517
  /** Set the innerHTML of the element */
508
518
  innerHTML?: string | undefined;
@@ -523,9 +533,6 @@ export type QtiFeedbackInlineProps = {
523
533
  identifier?: QtiFeedbackInline["identifier"] | undefined;
524
534
  /** */
525
535
  showStatus?: QtiFeedbackInline["showStatus"] | undefined;
526
-
527
- /** */
528
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
529
536
  };
530
537
 
531
538
  export type QtiFeedbackInlineSolidJsProps = {
@@ -543,8 +550,6 @@ export type QtiFeedbackInlineSolidJsProps = {
543
550
  "prop:identifier"?: QtiFeedbackInline["identifier"] | undefined;
544
551
  /** */
545
552
  "prop:showStatus"?: QtiFeedbackInline["showStatus"] | undefined;
546
- /** */
547
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
548
553
 
549
554
  /** Set the innerHTML of the element */
550
555
  innerHTML?: string | undefined;
@@ -574,9 +579,6 @@ export type QtiModalFeedbackProps = {
574
579
  identifier?: QtiModalFeedback["identifier"] | undefined;
575
580
  /** */
576
581
  showStatus?: QtiModalFeedback["showStatus"] | undefined;
577
-
578
- /** */
579
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
580
582
  };
581
583
 
582
584
  export type QtiModalFeedbackSolidJsProps = {
@@ -592,8 +594,6 @@ export type QtiModalFeedbackSolidJsProps = {
592
594
  "prop:identifier"?: QtiModalFeedback["identifier"] | undefined;
593
595
  /** */
594
596
  "prop:showStatus"?: QtiModalFeedback["showStatus"] | undefined;
595
- /** */
596
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
597
597
 
598
598
  /** Set the innerHTML of the element */
599
599
  innerHTML?: string | undefined;
@@ -4151,6 +4151,34 @@ casts, rather than pretending at an encapsulation the type system was the only t
4151
4151
  textContent?: string | number | undefined;
4152
4152
  };
4153
4153
 
4154
+ export type QtiAssessmentTestProps = {
4155
+ /** */
4156
+ identifier?: QtiAssessmentTest["identifier"] | undefined;
4157
+ /** */
4158
+ title?: QtiAssessmentTest["title"] | undefined;
4159
+ /** */
4160
+ _testContext?: QtiAssessmentTest["_testContext"] | undefined;
4161
+
4162
+ /** */
4163
+ "onqti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4164
+ };
4165
+
4166
+ export type QtiAssessmentTestSolidJsProps = {
4167
+ /** */
4168
+ "prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
4169
+ /** */
4170
+ "prop:title"?: QtiAssessmentTest["title"] | undefined;
4171
+ /** */
4172
+ "prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
4173
+ /** */
4174
+ "on:qti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4175
+
4176
+ /** Set the innerHTML of the element */
4177
+ innerHTML?: string | undefined;
4178
+ /** Set the textContent of the element */
4179
+ textContent?: string | number | undefined;
4180
+ };
4181
+
4154
4182
  export type QtiAssessmentItemRefProps = {
4155
4183
  /** */
4156
4184
  category?: QtiAssessmentItemRef["category"] | undefined;
@@ -4263,34 +4291,6 @@ export type QtiAssessmentSectionSolidJsProps = {
4263
4291
  textContent?: string | number | undefined;
4264
4292
  };
4265
4293
 
4266
- export type QtiAssessmentTestProps = {
4267
- /** */
4268
- identifier?: QtiAssessmentTest["identifier"] | undefined;
4269
- /** */
4270
- title?: QtiAssessmentTest["title"] | undefined;
4271
- /** */
4272
- _testContext?: QtiAssessmentTest["_testContext"] | undefined;
4273
-
4274
- /** */
4275
- "onqti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4276
- };
4277
-
4278
- export type QtiAssessmentTestSolidJsProps = {
4279
- /** */
4280
- "prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
4281
- /** */
4282
- "prop:title"?: QtiAssessmentTest["title"] | undefined;
4283
- /** */
4284
- "prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
4285
- /** */
4286
- "on:qti-assessment-test-connected"?: ((e: CustomEvent) => void) | undefined;
4287
-
4288
- /** Set the innerHTML of the element */
4289
- innerHTML?: string | undefined;
4290
- /** Set the textContent of the element */
4291
- textContent?: string | number | undefined;
4292
- };
4293
-
4294
4294
  export type QtiItemSessionControlProps = {
4295
4295
  /** */
4296
4296
  "max-attempts"?: QtiItemSessionControl["maxAttempts"] | undefined;
@@ -4408,9 +4408,6 @@ export type QtiTestFeedbackProps = {
4408
4408
  identifier?: QtiTestFeedback["identifier"] | undefined;
4409
4409
  /** */
4410
4410
  showStatus?: QtiTestFeedback["showStatus"] | undefined;
4411
-
4412
- /** */
4413
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
4414
4411
  };
4415
4412
 
4416
4413
  export type QtiTestFeedbackSolidJsProps = {
@@ -4426,8 +4423,6 @@ export type QtiTestFeedbackSolidJsProps = {
4426
4423
  "prop:identifier"?: QtiTestFeedback["identifier"] | undefined;
4427
4424
  /** */
4428
4425
  "prop:showStatus"?: QtiTestFeedback["showStatus"] | undefined;
4429
- /** */
4430
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
4431
4426
 
4432
4427
  /** Set the innerHTML of the element */
4433
4428
  innerHTML?: string | undefined;
@@ -4494,46 +4489,6 @@ export type QtiTestVariablesSolidJsProps = {
4494
4489
  textContent?: string | number | undefined;
4495
4490
  };
4496
4491
 
4497
- export type TestNavigationProps = {
4498
- /** */
4499
- identifier?: TestNavigation["identifier"] | undefined;
4500
- /** */
4501
- "auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4502
- /** */
4503
- autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
4504
- /** */
4505
- initContext?: TestNavigation["initContext"] | undefined;
4506
- /** */
4507
- qtiContext?: TestNavigation["qtiContext"] | undefined;
4508
- /** */
4509
- configContext?: TestNavigation["configContext"] | undefined;
4510
-
4511
- /** */
4512
- "onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4513
- };
4514
-
4515
- export type TestNavigationSolidJsProps = {
4516
- /** */
4517
- "prop:identifier"?: TestNavigation["identifier"] | undefined;
4518
- /** */
4519
- "bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4520
- /** */
4521
- "prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
4522
- /** */
4523
- "prop:initContext"?: TestNavigation["initContext"] | undefined;
4524
- /** */
4525
- "prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
4526
- /** */
4527
- "prop:configContext"?: TestNavigation["configContext"] | undefined;
4528
- /** */
4529
- "on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4530
-
4531
- /** Set the innerHTML of the element */
4532
- innerHTML?: string | undefined;
4533
- /** Set the textContent of the element */
4534
- textContent?: string | number | undefined;
4535
- };
4536
-
4537
4492
  export type TestContainerProps = {
4538
4493
  /** URL of the item to load */
4539
4494
  "test-url"?: TestContainer["testURL"] | undefined;
@@ -4575,16 +4530,42 @@ export type TestContainerSolidJsProps = {
4575
4530
  export type QtiTestProps = {
4576
4531
  /** */
4577
4532
  configContext?: QtiTest["configContext"] | undefined;
4533
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
4534
+ everything inside reads one value: the test-container shuffling the item order, the test
4535
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
4536
+
4537
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
4538
+ object, do not mutate it: an in-place change does not notify the components inside.
4539
+
4540
+ `test-navigation.qtiContext` is an alias of this. */
4541
+ qtiContext?: QtiTest["qtiContext"] | undefined;
4578
4542
 
4579
4543
  /** */
4580
4544
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4545
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4546
+ "onqti-state-changed"?: ((e: Event) => void) | undefined;
4547
+ /** 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. */
4548
+ "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
4581
4549
  };
4582
4550
 
4583
4551
  export type QtiTestSolidJsProps = {
4584
4552
  /** */
4585
4553
  "prop:configContext"?: QtiTest["configContext"] | undefined;
4554
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
4555
+ everything inside reads one value: the test-container shuffling the item order, the test
4556
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
4557
+
4558
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
4559
+ object, do not mutate it: an in-place change does not notify the components inside.
4560
+
4561
+ `test-navigation.qtiContext` is an alias of this. */
4562
+ "prop:qtiContext"?: QtiTest["qtiContext"] | undefined;
4586
4563
  /** */
4587
4564
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4565
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4566
+ "on:qti-state-changed"?: ((e: Event) => void) | undefined;
4567
+ /** 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. */
4568
+ "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
4588
4569
 
4589
4570
  /** Set the innerHTML of the element */
4590
4571
  innerHTML?: string | undefined;
@@ -4645,14 +4626,14 @@ export type TestItemLinkSolidJsProps = {
4645
4626
  };
4646
4627
 
4647
4628
  export type TestItemToSpeechProps = {
4648
- /** */
4629
+ /** Fallback language when neither the item content nor the document declares one. */
4649
4630
  language?: TestItemToSpeech["language"] | undefined;
4650
4631
  /** */
4651
4632
  _ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
4652
4633
  };
4653
4634
 
4654
4635
  export type TestItemToSpeechSolidJsProps = {
4655
- /** */
4636
+ /** Fallback language when neither the item content nor the document declares one. */
4656
4637
  "prop:language"?: TestItemToSpeech["language"] | undefined;
4657
4638
  /** */
4658
4639
  "prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
@@ -4663,54 +4644,189 @@ export type TestItemToSpeechSolidJsProps = {
4663
4644
  textContent?: string | number | undefined;
4664
4645
  };
4665
4646
 
4666
- export type TestTtsPlayProps = {};
4647
+ export type TestTtsPlayProps = {
4648
+ /** Accessible name of the button while speech is playing; see `label`. */
4649
+ "pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
4650
+ /** Accessible name of the button while speech is playing; see `label`. */
4651
+ pauseLabel?: TestTtsPlay["pauseLabel"] | undefined;
4652
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4653
+ slotted content names the button by its text; set it when you slot an icon of your own,
4654
+ which has no text to be named by. */
4655
+ label?: TestTtsPlay["label"] | undefined;
4656
+ };
4667
4657
 
4668
4658
  export type TestTtsPlaySolidJsProps = {
4659
+ /** Accessible name of the button while speech is playing; see `label`. */
4660
+ "attr:pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
4661
+ /** Accessible name of the button while speech is playing; see `label`. */
4662
+ "prop:pauseLabel"?: TestTtsPlay["pauseLabel"] | undefined;
4663
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4664
+ slotted content names the button by its text; set it when you slot an icon of your own,
4665
+ which has no text to be named by. */
4666
+ "prop:label"?: TestTtsPlay["label"] | undefined;
4667
+
4669
4668
  /** Set the innerHTML of the element */
4670
4669
  innerHTML?: string | undefined;
4671
4670
  /** Set the textContent of the element */
4672
4671
  textContent?: string | number | undefined;
4673
4672
  };
4674
4673
 
4675
- export type TestTtsPauseProps = {};
4674
+ export type TestTtsPauseProps = {
4675
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4676
+ slotted content names the button by its text; set it when you slot an icon of your own,
4677
+ which has no text to be named by. */
4678
+ label?: TestTtsPause["label"] | undefined;
4679
+ };
4676
4680
 
4677
4681
  export type TestTtsPauseSolidJsProps = {
4682
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4683
+ slotted content names the button by its text; set it when you slot an icon of your own,
4684
+ which has no text to be named by. */
4685
+ "prop:label"?: TestTtsPause["label"] | undefined;
4686
+
4678
4687
  /** Set the innerHTML of the element */
4679
4688
  innerHTML?: string | undefined;
4680
4689
  /** Set the textContent of the element */
4681
4690
  textContent?: string | number | undefined;
4682
4691
  };
4683
4692
 
4684
- export type TestTtsResumeProps = {};
4693
+ export type TestTtsResumeProps = {
4694
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4695
+ slotted content names the button by its text; set it when you slot an icon of your own,
4696
+ which has no text to be named by. */
4697
+ label?: TestTtsResume["label"] | undefined;
4698
+ };
4685
4699
 
4686
4700
  export type TestTtsResumeSolidJsProps = {
4701
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4702
+ slotted content names the button by its text; set it when you slot an icon of your own,
4703
+ which has no text to be named by. */
4704
+ "prop:label"?: TestTtsResume["label"] | undefined;
4705
+
4687
4706
  /** Set the innerHTML of the element */
4688
4707
  innerHTML?: string | undefined;
4689
4708
  /** Set the textContent of the element */
4690
4709
  textContent?: string | number | undefined;
4691
4710
  };
4692
4711
 
4693
- export type TestTtsStopProps = {};
4712
+ export type TestTtsStopProps = {
4713
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4714
+ slotted content names the button by its text; set it when you slot an icon of your own,
4715
+ which has no text to be named by. */
4716
+ label?: TestTtsStop["label"] | undefined;
4717
+ };
4694
4718
 
4695
4719
  export type TestTtsStopSolidJsProps = {
4720
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4721
+ slotted content names the button by its text; set it when you slot an icon of your own,
4722
+ which has no text to be named by. */
4723
+ "prop:label"?: TestTtsStop["label"] | undefined;
4724
+
4696
4725
  /** Set the innerHTML of the element */
4697
4726
  innerHTML?: string | undefined;
4698
4727
  /** Set the textContent of the element */
4699
4728
  textContent?: string | number | undefined;
4700
4729
  };
4701
4730
 
4702
- export type TestTtsPrevProps = {};
4731
+ export type TestTtsPrevProps = {
4732
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4733
+ slotted content names the button by its text; set it when you slot an icon of your own,
4734
+ which has no text to be named by. */
4735
+ label?: TestTtsPrev["label"] | undefined;
4736
+ };
4703
4737
 
4704
4738
  export type TestTtsPrevSolidJsProps = {
4739
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4740
+ slotted content names the button by its text; set it when you slot an icon of your own,
4741
+ which has no text to be named by. */
4742
+ "prop:label"?: TestTtsPrev["label"] | undefined;
4743
+
4705
4744
  /** Set the innerHTML of the element */
4706
4745
  innerHTML?: string | undefined;
4707
4746
  /** Set the textContent of the element */
4708
4747
  textContent?: string | number | undefined;
4709
4748
  };
4710
4749
 
4711
- export type TestTtsNextProps = {};
4750
+ export type TestTtsNextProps = {
4751
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4752
+ slotted content names the button by its text; set it when you slot an icon of your own,
4753
+ which has no text to be named by. */
4754
+ label?: TestTtsNext["label"] | undefined;
4755
+ };
4712
4756
 
4713
4757
  export type TestTtsNextSolidJsProps = {
4758
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4759
+ slotted content names the button by its text; set it when you slot an icon of your own,
4760
+ which has no text to be named by. */
4761
+ "prop:label"?: TestTtsNext["label"] | undefined;
4762
+
4763
+ /** Set the innerHTML of the element */
4764
+ innerHTML?: string | undefined;
4765
+ /** Set the textContent of the element */
4766
+ textContent?: string | number | undefined;
4767
+ };
4768
+
4769
+ export type TestTtsPickProps = {
4770
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4771
+ slotted content names the button by its text; set it when you slot an icon of your own,
4772
+ which has no text to be named by. */
4773
+ label?: TestTtsPick["label"] | undefined;
4774
+ };
4775
+
4776
+ export type TestTtsPickSolidJsProps = {
4777
+ /** Accessible name of the button. Without it the default icon carries an English name, and
4778
+ slotted content names the button by its text; set it when you slot an icon of your own,
4779
+ which has no text to be named by. */
4780
+ "prop:label"?: TestTtsPick["label"] | undefined;
4781
+
4782
+ /** Set the innerHTML of the element */
4783
+ innerHTML?: string | undefined;
4784
+ /** Set the textContent of the element */
4785
+ textContent?: string | number | undefined;
4786
+ };
4787
+
4788
+ export type TestNavigationProps = {
4789
+ /** */
4790
+ identifier?: TestNavigation["identifier"] | undefined;
4791
+ /** */
4792
+ "auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4793
+ /** */
4794
+ autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
4795
+ /** */
4796
+ initContext?: TestNavigation["initContext"] | undefined;
4797
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
4798
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
4799
+ shuffle seed here keeps working. Removed in the next major.
4800
+
4801
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
4802
+ qtiContext?: TestNavigation["qtiContext"] | undefined;
4803
+ /** */
4804
+ configContext?: TestNavigation["configContext"] | undefined;
4805
+
4806
+ /** */
4807
+ "onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4808
+ };
4809
+
4810
+ export type TestNavigationSolidJsProps = {
4811
+ /** */
4812
+ "prop:identifier"?: TestNavigation["identifier"] | undefined;
4813
+ /** */
4814
+ "bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4815
+ /** */
4816
+ "prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
4817
+ /** */
4818
+ "prop:initContext"?: TestNavigation["initContext"] | undefined;
4819
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
4820
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
4821
+ shuffle seed here keeps working. Removed in the next major.
4822
+
4823
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
4824
+ "prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
4825
+ /** */
4826
+ "prop:configContext"?: TestNavigation["configContext"] | undefined;
4827
+ /** */
4828
+ "on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4829
+
4714
4830
  /** Set the innerHTML of the element */
4715
4831
  innerHTML?: string | undefined;
4716
4832
  /** Set the textContent of the element */
@@ -6159,9 +6275,11 @@ export type QtiAssessmentItemCorrectionProps = {
6159
6275
  timeDependent?: QtiAssessmentItemCorrection["timeDependent"] | undefined;
6160
6276
  /** */
6161
6277
  title?: QtiAssessmentItemCorrection["title"] | undefined;
6162
- /** */
6278
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
6279
+ interactions inside follow, so the item keeps no list of them to set it on. */
6163
6280
  disabled?: QtiAssessmentItemCorrection["disabled"] | undefined;
6164
- /** */
6281
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
6282
+ follow, so the item keeps no list of them to set it on. */
6165
6283
  readonly?: QtiAssessmentItemCorrection["readonly"] | undefined;
6166
6284
  /** Sets the identifier for the assessment item reference if this item is in a test. */
6167
6285
  assessmentItemRefId?:
@@ -6199,9 +6317,11 @@ export type QtiAssessmentItemCorrectionSolidJsProps = {
6199
6317
  | undefined;
6200
6318
  /** */
6201
6319
  "prop:title"?: QtiAssessmentItemCorrection["title"] | undefined;
6202
- /** */
6320
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
6321
+ interactions inside follow, so the item keeps no list of them to set it on. */
6203
6322
  "prop:disabled"?: QtiAssessmentItemCorrection["disabled"] | undefined;
6204
- /** */
6323
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
6324
+ follow, so the item keeps no list of them to set it on. */
6205
6325
  "prop:readonly"?: QtiAssessmentItemCorrection["readonly"] | undefined;
6206
6326
  /** Sets the identifier for the assessment item reference if this item is in a test. */
6207
6327
  "prop:assessmentItemRefId"?:
@@ -6262,7 +6382,11 @@ export type TestNavigationCorrectionProps = {
6262
6382
  autoScoreItems?: TestNavigationCorrection["autoScoreItems"] | undefined;
6263
6383
  /** */
6264
6384
  initContext?: TestNavigationCorrection["initContext"] | undefined;
6265
- /** */
6385
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
6386
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
6387
+ shuffle seed here keeps working. Removed in the next major.
6388
+
6389
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
6266
6390
  qtiContext?: TestNavigationCorrection["qtiContext"] | undefined;
6267
6391
  /** */
6268
6392
  configContext?: TestNavigationCorrection["configContext"] | undefined;
@@ -6284,7 +6408,11 @@ export type TestNavigationCorrectionSolidJsProps = {
6284
6408
  | undefined;
6285
6409
  /** */
6286
6410
  "prop:initContext"?: TestNavigationCorrection["initContext"] | undefined;
6287
- /** */
6411
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
6412
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
6413
+ shuffle seed here keeps working. Removed in the next major.
6414
+
6415
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
6288
6416
  "prop:qtiContext"?: TestNavigationCorrection["qtiContext"] | undefined;
6289
6417
  /** */
6290
6418
  "prop:configContext"?: TestNavigationCorrection["configContext"] | undefined;
@@ -6300,16 +6428,42 @@ export type TestNavigationCorrectionSolidJsProps = {
6300
6428
  export type QtiTestCorrectionProps = {
6301
6429
  /** */
6302
6430
  configContext?: QtiTestCorrection["configContext"] | undefined;
6431
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
6432
+ everything inside reads one value: the test-container shuffling the item order, the test
6433
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
6434
+
6435
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
6436
+ object, do not mutate it: an in-place change does not notify the components inside.
6437
+
6438
+ `test-navigation.qtiContext` is an alias of this. */
6439
+ qtiContext?: QtiTestCorrection["qtiContext"] | undefined;
6303
6440
 
6304
6441
  /** */
6305
6442
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6443
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6444
+ "onqti-state-changed"?: ((e: Event) => void) | undefined;
6445
+ /** 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. */
6446
+ "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
6306
6447
  };
6307
6448
 
6308
6449
  export type QtiTestCorrectionSolidJsProps = {
6309
6450
  /** */
6310
6451
  "prop:configContext"?: QtiTestCorrection["configContext"] | undefined;
6452
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
6453
+ everything inside reads one value: the test-container shuffling the item order, the test
6454
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
6455
+
6456
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
6457
+ object, do not mutate it: an in-place change does not notify the components inside.
6458
+
6459
+ `test-navigation.qtiContext` is an alias of this. */
6460
+ "prop:qtiContext"?: QtiTestCorrection["qtiContext"] | undefined;
6311
6461
  /** */
6312
6462
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6463
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6464
+ "on:qti-state-changed"?: ((e: Event) => void) | undefined;
6465
+ /** 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. */
6466
+ "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
6313
6467
 
6314
6468
  /** Set the innerHTML of the element */
6315
6469
  innerHTML?: string | undefined;
@@ -6568,9 +6722,13 @@ export type CustomElements = {
6568
6722
  * - `adaptive`: undefined
6569
6723
  * - `time-dependent`/`timeDependent`: undefined
6570
6724
  * - `title`: undefined
6571
- * - `disabled`: undefined
6572
- * - `readonly`: undefined
6725
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
6726
+ * interactions inside follow, so the item keeps no list of them to set it on.
6727
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
6728
+ * follow, so the item keeps no list of them to set it on.
6573
6729
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
6730
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
6731
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
6574
6732
  * - `variables`: undefined (property only)
6575
6733
  * - `state`: undefined (property only)
6576
6734
  * - `responses`: undefined (property only)
@@ -6601,6 +6759,19 @@ export type CustomElements = {
6601
6759
  QtiAssessmentItemProps & BaseProps<QtiAssessmentItem> & BaseEvents
6602
6760
  >;
6603
6761
 
6762
+ /**
6763
+ *
6764
+ *
6765
+ * ## Slots
6766
+ *
6767
+ * Areas where markup can be added to the component.
6768
+ *
6769
+ * - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
6770
+ */
6771
+ "qti-assessment-stimulus": Partial<
6772
+ QtiAssessmentStimulusProps & BaseProps<QtiAssessmentStimulus> & BaseEvents
6773
+ >;
6774
+
6604
6775
  /**
6605
6776
  * Represents a custom element for referencing an assessment stimulus.
6606
6777
  *
@@ -6713,12 +6884,6 @@ export type CustomElements = {
6713
6884
  * - `identifier`: undefined
6714
6885
  * - `showStatus`: undefined (property only)
6715
6886
  *
6716
- * ## Events
6717
- *
6718
- * Events that will be emitted by the component.
6719
- *
6720
- * - `qti-register-feedback`: undefined
6721
- *
6722
6887
  * ## Methods
6723
6888
  *
6724
6889
  * Methods that can be called to access component functionality.
@@ -6741,12 +6906,6 @@ export type CustomElements = {
6741
6906
  * - `identifier`: undefined
6742
6907
  * - `showStatus`: undefined (property only)
6743
6908
  *
6744
- * ## Events
6745
- *
6746
- * Events that will be emitted by the component.
6747
- *
6748
- * - `qti-register-feedback`: undefined
6749
- *
6750
6909
  * ## Methods
6751
6910
  *
6752
6911
  * Methods that can be called to access component functionality.
@@ -6789,12 +6948,6 @@ export type CustomElements = {
6789
6948
  * - `identifier`: undefined
6790
6949
  * - `showStatus`: undefined (property only)
6791
6950
  *
6792
- * ## Events
6793
- *
6794
- * Events that will be emitted by the component.
6795
- *
6796
- * - `qti-register-feedback`: undefined
6797
- *
6798
6951
  * ## Methods
6799
6952
  *
6800
6953
  * Methods that can be called to access component functionality.
@@ -9018,6 +9171,27 @@ export type CustomElements = {
9018
9171
  QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents
9019
9172
  >;
9020
9173
 
9174
+ /**
9175
+ *
9176
+ *
9177
+ * ## Attributes & Properties
9178
+ *
9179
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9180
+ *
9181
+ * - `identifier`: undefined
9182
+ * - `title`: undefined
9183
+ * - `_testContext`: undefined (property only)
9184
+ *
9185
+ * ## Events
9186
+ *
9187
+ * Events that will be emitted by the component.
9188
+ *
9189
+ * - `qti-assessment-test-connected`: undefined
9190
+ */
9191
+ "qti-assessment-test": Partial<
9192
+ QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
9193
+ >;
9194
+
9021
9195
  /**
9022
9196
  *
9023
9197
  *
@@ -9077,27 +9251,6 @@ export type CustomElements = {
9077
9251
  QtiAssessmentSectionProps & BaseProps<QtiAssessmentSection> & BaseEvents
9078
9252
  >;
9079
9253
 
9080
- /**
9081
- *
9082
- *
9083
- * ## Attributes & Properties
9084
- *
9085
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9086
- *
9087
- * - `identifier`: undefined
9088
- * - `title`: undefined
9089
- * - `_testContext`: undefined (property only)
9090
- *
9091
- * ## Events
9092
- *
9093
- * Events that will be emitted by the component.
9094
- *
9095
- * - `qti-assessment-test-connected`: undefined
9096
- */
9097
- "qti-assessment-test": Partial<
9098
- QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
9099
- >;
9100
-
9101
9254
  /**
9102
9255
  *
9103
9256
  *
@@ -9181,12 +9334,6 @@ export type CustomElements = {
9181
9334
  * - `identifier`: undefined
9182
9335
  * - `showStatus`: undefined (property only)
9183
9336
  *
9184
- * ## Events
9185
- *
9186
- * Events that will be emitted by the component.
9187
- *
9188
- * - `qti-register-feedback`: undefined
9189
- *
9190
9337
  * ## Methods
9191
9338
  *
9192
9339
  * Methods that can be called to access component functionality.
@@ -9255,29 +9402,6 @@ export type CustomElements = {
9255
9402
  QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents
9256
9403
  >;
9257
9404
 
9258
- /**
9259
- *
9260
- *
9261
- * ## Attributes & Properties
9262
- *
9263
- * Component attributes and properties that can be applied to the element or by using JavaScript.
9264
- *
9265
- * - `identifier`: undefined
9266
- * - `auto-score-items`/`autoScoreItems`: undefined
9267
- * - `initContext`: undefined (property only)
9268
- * - `qtiContext`: undefined (property only)
9269
- * - `configContext`: undefined (property only)
9270
- *
9271
- * ## Events
9272
- *
9273
- * Events that will be emitted by the component.
9274
- *
9275
- * - `qti-computed-context-updated`: undefined
9276
- */
9277
- "test-navigation": Partial<
9278
- TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9279
- >;
9280
-
9281
9405
  /**
9282
9406
  * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
9283
9407
  * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
@@ -9362,12 +9486,22 @@ export type CustomElements = {
9362
9486
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9363
9487
  *
9364
9488
  * - `configContext`: undefined (property only)
9489
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
9490
+ * everything inside reads one value: the test-container shuffling the item order, the test
9491
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
9492
+ *
9493
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
9494
+ * object, do not mutate it: an in-place change does not notify the components inside.
9495
+ *
9496
+ * `test-navigation.qtiContext` is an alias of this. (property only)
9365
9497
  *
9366
9498
  * ## Events
9367
9499
  *
9368
9500
  * Events that will be emitted by the component.
9369
9501
  *
9370
9502
  * - `qti-test-connected`: undefined
9503
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
9504
+ * - `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.
9371
9505
  */
9372
9506
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9373
9507
 
@@ -9426,7 +9560,7 @@ export type CustomElements = {
9426
9560
  *
9427
9561
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9428
9562
  *
9429
- * - `language`: undefined
9563
+ * - `language`: Fallback language when neither the item content nor the document declares one.
9430
9564
  * - `_ttsContext`: undefined (property only)
9431
9565
  *
9432
9566
  * ## CSS States
@@ -9434,6 +9568,7 @@ export type CustomElements = {
9434
9568
  * These can be used to apply styling when a component is in a given state.
9435
9569
  *
9436
9570
  * - `idle`: No speech active
9571
+ * - `picking`: Pick mode: all reading elements highlighted, waiting for a click
9437
9572
  * - `playing`: Speech is playing
9438
9573
  * - `paused`: Speech is paused
9439
9574
  */
@@ -9443,7 +9578,17 @@ export type CustomElements = {
9443
9578
 
9444
9579
  /**
9445
9580
  * Play/pause/resume toggle button — always enabled, cycles through states.
9446
- * Use named slots `play` and `pause` to customise the icons/labels independently.
9581
+ * Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
9582
+ * `pause-label` name the button in each state (set them when the slotted content is an icon).
9583
+ *
9584
+ * ## Attributes & Properties
9585
+ *
9586
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9587
+ *
9588
+ * - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
9589
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9590
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9591
+ * which has no text to be named by.
9447
9592
  *
9448
9593
  * ## CSS Parts
9449
9594
  *
@@ -9464,6 +9609,14 @@ export type CustomElements = {
9464
9609
  /**
9465
9610
  * Pause button — enabled only when playing.
9466
9611
  *
9612
+ * ## Attributes & Properties
9613
+ *
9614
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9615
+ *
9616
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9617
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9618
+ * which has no text to be named by.
9619
+ *
9467
9620
  * ## CSS Parts
9468
9621
  *
9469
9622
  * Custom selectors for styling elements within the component.
@@ -9483,6 +9636,14 @@ export type CustomElements = {
9483
9636
  /**
9484
9637
  * Resume button — enabled only when paused.
9485
9638
  *
9639
+ * ## Attributes & Properties
9640
+ *
9641
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9642
+ *
9643
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9644
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9645
+ * which has no text to be named by.
9646
+ *
9486
9647
  * ## CSS Parts
9487
9648
  *
9488
9649
  * Custom selectors for styling elements within the component.
@@ -9500,7 +9661,15 @@ export type CustomElements = {
9500
9661
  >;
9501
9662
 
9502
9663
  /**
9503
- * Stop button — enabled when playing or paused.
9664
+ * Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
9665
+ *
9666
+ * ## Attributes & Properties
9667
+ *
9668
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9669
+ *
9670
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9671
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9672
+ * which has no text to be named by.
9504
9673
  *
9505
9674
  * ## CSS Parts
9506
9675
  *
@@ -9520,7 +9689,17 @@ export type CustomElements = {
9520
9689
 
9521
9690
  /**
9522
9691
  * Prev-element button — moves cursor to the previous reading element and pauses.
9523
- * Disabled at the first element or when no elements are loaded.
9692
+ * Disabled at the first element. Reading elements are collected lazily, so an element count
9693
+ * of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
9694
+ * first click collects them.
9695
+ *
9696
+ * ## Attributes & Properties
9697
+ *
9698
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9699
+ *
9700
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9701
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9702
+ * which has no text to be named by.
9524
9703
  *
9525
9704
  * ## CSS Parts
9526
9705
  *
@@ -9540,7 +9719,16 @@ export type CustomElements = {
9540
9719
 
9541
9720
  /**
9542
9721
  * Next-element button — moves cursor to the next reading element and pauses.
9543
- * Disabled at the last element or when no elements are loaded.
9722
+ * Disabled at the last element; enabled while the elements have not been collected yet
9723
+ * (see `TestTtsPrev`).
9724
+ *
9725
+ * ## Attributes & Properties
9726
+ *
9727
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9728
+ *
9729
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9730
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9731
+ * which has no text to be named by.
9544
9732
  *
9545
9733
  * ## CSS Parts
9546
9734
  *
@@ -9558,6 +9746,58 @@ export type CustomElements = {
9558
9746
  TestTtsNextProps & BaseProps<TestTtsNext> & BaseEvents
9559
9747
  >;
9560
9748
 
9749
+ /**
9750
+ * Pick button — toggles pick mode on the controller: every reading element is highlighted and
9751
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
9752
+ *
9753
+ * ## Attributes & Properties
9754
+ *
9755
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9756
+ *
9757
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
9758
+ * slotted content names the button by its text; set it when you slot an icon of your own,
9759
+ * which has no text to be named by.
9760
+ *
9761
+ * ## CSS Parts
9762
+ *
9763
+ * Custom selectors for styling elements within the component.
9764
+ *
9765
+ * - `button`: undefined
9766
+ *
9767
+ * ## CSS States
9768
+ *
9769
+ * These can be used to apply styling when a component is in a given state.
9770
+ *
9771
+ * - `idle`: / playing / paused
9772
+ * - `picking`: undefined
9773
+ */
9774
+ "test-tts-pick": Partial<
9775
+ TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
9776
+ >;
9777
+
9778
+ /**
9779
+ *
9780
+ *
9781
+ * ## Attributes & Properties
9782
+ *
9783
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9784
+ *
9785
+ * - `identifier`: undefined
9786
+ * - `auto-score-items`/`autoScoreItems`: undefined
9787
+ * - `initContext`: undefined (property only)
9788
+ * - `qtiContext`: undefined (property only)
9789
+ * - `configContext`: undefined (property only)
9790
+ *
9791
+ * ## Events
9792
+ *
9793
+ * Events that will be emitted by the component.
9794
+ *
9795
+ * - `qti-computed-context-updated`: undefined
9796
+ */
9797
+ "test-navigation": Partial<
9798
+ TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9799
+ >;
9800
+
9561
9801
  /**
9562
9802
  * Represents a custom element for navigating to the next test item.
9563
9803
  *
@@ -11782,9 +12022,13 @@ export type CustomElements = {
11782
12022
  * - `adaptive`: undefined
11783
12023
  * - `time-dependent`/`timeDependent`: undefined
11784
12024
  * - `title`: undefined
11785
- * - `disabled`: undefined
11786
- * - `readonly`: undefined
12025
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
12026
+ * interactions inside follow, so the item keeps no list of them to set it on.
12027
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
12028
+ * follow, so the item keeps no list of them to set it on.
11787
12029
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
12030
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
12031
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
11788
12032
  * - `variables`: undefined (property only)
11789
12033
  * - `state`: undefined (property only)
11790
12034
  * - `responses`: undefined (property only)
@@ -11881,12 +12125,22 @@ export type CustomElements = {
11881
12125
  * Component attributes and properties that can be applied to the element or by using JavaScript.
11882
12126
  *
11883
12127
  * - `configContext`: undefined (property only)
12128
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
12129
+ * everything inside reads one value: the test-container shuffling the item order, the test
12130
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
12131
+ *
12132
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
12133
+ * object, do not mutate it: an in-place change does not notify the components inside.
12134
+ *
12135
+ * `test-navigation.qtiContext` is an alias of this. (property only)
11884
12136
  *
11885
12137
  * ## Events
11886
12138
  *
11887
12139
  * Events that will be emitted by the component.
11888
12140
  *
11889
12141
  * - `qti-test-connected`: undefined
12142
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
12143
+ * - `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.
11890
12144
  *
11891
12145
  * ## Methods
11892
12146
  *
@@ -12087,9 +12341,13 @@ export type CustomElementsSolidJs = {
12087
12341
  * - `adaptive`: undefined
12088
12342
  * - `time-dependent`/`timeDependent`: undefined
12089
12343
  * - `title`: undefined
12090
- * - `disabled`: undefined
12091
- * - `readonly`: undefined
12344
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
12345
+ * interactions inside follow, so the item keeps no list of them to set it on.
12346
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
12347
+ * follow, so the item keeps no list of them to set it on.
12092
12348
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
12349
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
12350
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
12093
12351
  * - `variables`: undefined (property only)
12094
12352
  * - `state`: undefined (property only)
12095
12353
  * - `responses`: undefined (property only)
@@ -12123,6 +12381,22 @@ export type CustomElementsSolidJs = {
12123
12381
  BaseEvents
12124
12382
  >;
12125
12383
 
12384
+ /**
12385
+ *
12386
+ *
12387
+ * ## Slots
12388
+ *
12389
+ * Areas where markup can be added to the component.
12390
+ *
12391
+ * - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
12392
+ */
12393
+ "qti-assessment-stimulus": Partial<
12394
+ QtiAssessmentStimulusProps &
12395
+ QtiAssessmentStimulusSolidJsProps &
12396
+ BaseProps<QtiAssessmentStimulus> &
12397
+ BaseEvents
12398
+ >;
12399
+
12126
12400
  /**
12127
12401
  * Represents a custom element for referencing an assessment stimulus.
12128
12402
  *
@@ -12246,12 +12520,6 @@ export type CustomElementsSolidJs = {
12246
12520
  * - `identifier`: undefined
12247
12521
  * - `showStatus`: undefined (property only)
12248
12522
  *
12249
- * ## Events
12250
- *
12251
- * Events that will be emitted by the component.
12252
- *
12253
- * - `qti-register-feedback`: undefined
12254
- *
12255
12523
  * ## Methods
12256
12524
  *
12257
12525
  * Methods that can be called to access component functionality.
@@ -12277,12 +12545,6 @@ export type CustomElementsSolidJs = {
12277
12545
  * - `identifier`: undefined
12278
12546
  * - `showStatus`: undefined (property only)
12279
12547
  *
12280
- * ## Events
12281
- *
12282
- * Events that will be emitted by the component.
12283
- *
12284
- * - `qti-register-feedback`: undefined
12285
- *
12286
12548
  * ## Methods
12287
12549
  *
12288
12550
  * Methods that can be called to access component functionality.
@@ -12331,12 +12593,6 @@ export type CustomElementsSolidJs = {
12331
12593
  * - `identifier`: undefined
12332
12594
  * - `showStatus`: undefined (property only)
12333
12595
  *
12334
- * ## Events
12335
- *
12336
- * Events that will be emitted by the component.
12337
- *
12338
- * - `qti-register-feedback`: undefined
12339
- *
12340
12596
  * ## Methods
12341
12597
  *
12342
12598
  * Methods that can be called to access component functionality.
@@ -14660,6 +14916,30 @@ export type CustomElementsSolidJs = {
14660
14916
  BaseEvents
14661
14917
  >;
14662
14918
 
14919
+ /**
14920
+ *
14921
+ *
14922
+ * ## Attributes & Properties
14923
+ *
14924
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
14925
+ *
14926
+ * - `identifier`: undefined
14927
+ * - `title`: undefined
14928
+ * - `_testContext`: undefined (property only)
14929
+ *
14930
+ * ## Events
14931
+ *
14932
+ * Events that will be emitted by the component.
14933
+ *
14934
+ * - `qti-assessment-test-connected`: undefined
14935
+ */
14936
+ "qti-assessment-test": Partial<
14937
+ QtiAssessmentTestProps &
14938
+ QtiAssessmentTestSolidJsProps &
14939
+ BaseProps<QtiAssessmentTest> &
14940
+ BaseEvents
14941
+ >;
14942
+
14663
14943
  /**
14664
14944
  *
14665
14945
  *
@@ -14725,30 +15005,6 @@ export type CustomElementsSolidJs = {
14725
15005
  BaseEvents
14726
15006
  >;
14727
15007
 
14728
- /**
14729
- *
14730
- *
14731
- * ## Attributes & Properties
14732
- *
14733
- * Component attributes and properties that can be applied to the element or by using JavaScript.
14734
- *
14735
- * - `identifier`: undefined
14736
- * - `title`: undefined
14737
- * - `_testContext`: undefined (property only)
14738
- *
14739
- * ## Events
14740
- *
14741
- * Events that will be emitted by the component.
14742
- *
14743
- * - `qti-assessment-test-connected`: undefined
14744
- */
14745
- "qti-assessment-test": Partial<
14746
- QtiAssessmentTestProps &
14747
- QtiAssessmentTestSolidJsProps &
14748
- BaseProps<QtiAssessmentTest> &
14749
- BaseEvents
14750
- >;
14751
-
14752
15008
  /**
14753
15009
  *
14754
15010
  *
@@ -14841,12 +15097,6 @@ export type CustomElementsSolidJs = {
14841
15097
  * - `identifier`: undefined
14842
15098
  * - `showStatus`: undefined (property only)
14843
15099
  *
14844
- * ## Events
14845
- *
14846
- * Events that will be emitted by the component.
14847
- *
14848
- * - `qti-register-feedback`: undefined
14849
- *
14850
15100
  * ## Methods
14851
15101
  *
14852
15102
  * Methods that can be called to access component functionality.
@@ -14924,32 +15174,6 @@ export type CustomElementsSolidJs = {
14924
15174
  BaseEvents
14925
15175
  >;
14926
15176
 
14927
- /**
14928
- *
14929
- *
14930
- * ## Attributes & Properties
14931
- *
14932
- * Component attributes and properties that can be applied to the element or by using JavaScript.
14933
- *
14934
- * - `identifier`: undefined
14935
- * - `auto-score-items`/`autoScoreItems`: undefined
14936
- * - `initContext`: undefined (property only)
14937
- * - `qtiContext`: undefined (property only)
14938
- * - `configContext`: undefined (property only)
14939
- *
14940
- * ## Events
14941
- *
14942
- * Events that will be emitted by the component.
14943
- *
14944
- * - `qti-computed-context-updated`: undefined
14945
- */
14946
- "test-navigation": Partial<
14947
- TestNavigationProps &
14948
- TestNavigationSolidJsProps &
14949
- BaseProps<TestNavigation> &
14950
- BaseEvents
14951
- >;
14952
-
14953
15177
  /**
14954
15178
  * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
14955
15179
  * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
@@ -15037,12 +15261,22 @@ export type CustomElementsSolidJs = {
15037
15261
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15038
15262
  *
15039
15263
  * - `configContext`: undefined (property only)
15264
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
15265
+ * everything inside reads one value: the test-container shuffling the item order, the test
15266
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
15267
+ *
15268
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
15269
+ * object, do not mutate it: an in-place change does not notify the components inside.
15270
+ *
15271
+ * `test-navigation.qtiContext` is an alias of this. (property only)
15040
15272
  *
15041
15273
  * ## Events
15042
15274
  *
15043
15275
  * Events that will be emitted by the component.
15044
15276
  *
15045
15277
  * - `qti-test-connected`: undefined
15278
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
15279
+ * - `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.
15046
15280
  */
15047
15281
  "qti-test": Partial<
15048
15282
  QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
@@ -15112,7 +15346,7 @@ export type CustomElementsSolidJs = {
15112
15346
  *
15113
15347
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15114
15348
  *
15115
- * - `language`: undefined
15349
+ * - `language`: Fallback language when neither the item content nor the document declares one.
15116
15350
  * - `_ttsContext`: undefined (property only)
15117
15351
  *
15118
15352
  * ## CSS States
@@ -15120,6 +15354,7 @@ export type CustomElementsSolidJs = {
15120
15354
  * These can be used to apply styling when a component is in a given state.
15121
15355
  *
15122
15356
  * - `idle`: No speech active
15357
+ * - `picking`: Pick mode: all reading elements highlighted, waiting for a click
15123
15358
  * - `playing`: Speech is playing
15124
15359
  * - `paused`: Speech is paused
15125
15360
  */
@@ -15132,7 +15367,17 @@ export type CustomElementsSolidJs = {
15132
15367
 
15133
15368
  /**
15134
15369
  * Play/pause/resume toggle button — always enabled, cycles through states.
15135
- * Use named slots `play` and `pause` to customise the icons/labels independently.
15370
+ * Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
15371
+ * `pause-label` name the button in each state (set them when the slotted content is an icon).
15372
+ *
15373
+ * ## Attributes & Properties
15374
+ *
15375
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15376
+ *
15377
+ * - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
15378
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15379
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15380
+ * which has no text to be named by.
15136
15381
  *
15137
15382
  * ## CSS Parts
15138
15383
  *
@@ -15156,6 +15401,14 @@ export type CustomElementsSolidJs = {
15156
15401
  /**
15157
15402
  * Pause button — enabled only when playing.
15158
15403
  *
15404
+ * ## Attributes & Properties
15405
+ *
15406
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15407
+ *
15408
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15409
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15410
+ * which has no text to be named by.
15411
+ *
15159
15412
  * ## CSS Parts
15160
15413
  *
15161
15414
  * Custom selectors for styling elements within the component.
@@ -15178,6 +15431,14 @@ export type CustomElementsSolidJs = {
15178
15431
  /**
15179
15432
  * Resume button — enabled only when paused.
15180
15433
  *
15434
+ * ## Attributes & Properties
15435
+ *
15436
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15437
+ *
15438
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15439
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15440
+ * which has no text to be named by.
15441
+ *
15181
15442
  * ## CSS Parts
15182
15443
  *
15183
15444
  * Custom selectors for styling elements within the component.
@@ -15198,7 +15459,15 @@ export type CustomElementsSolidJs = {
15198
15459
  >;
15199
15460
 
15200
15461
  /**
15201
- * Stop button — enabled when playing or paused.
15462
+ * Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
15463
+ *
15464
+ * ## Attributes & Properties
15465
+ *
15466
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15467
+ *
15468
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15469
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15470
+ * which has no text to be named by.
15202
15471
  *
15203
15472
  * ## CSS Parts
15204
15473
  *
@@ -15221,7 +15490,17 @@ export type CustomElementsSolidJs = {
15221
15490
 
15222
15491
  /**
15223
15492
  * Prev-element button — moves cursor to the previous reading element and pauses.
15224
- * Disabled at the first element or when no elements are loaded.
15493
+ * Disabled at the first element. Reading elements are collected lazily, so an element count
15494
+ * of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
15495
+ * first click collects them.
15496
+ *
15497
+ * ## Attributes & Properties
15498
+ *
15499
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15500
+ *
15501
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15502
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15503
+ * which has no text to be named by.
15225
15504
  *
15226
15505
  * ## CSS Parts
15227
15506
  *
@@ -15244,7 +15523,16 @@ export type CustomElementsSolidJs = {
15244
15523
 
15245
15524
  /**
15246
15525
  * Next-element button — moves cursor to the next reading element and pauses.
15247
- * Disabled at the last element or when no elements are loaded.
15526
+ * Disabled at the last element; enabled while the elements have not been collected yet
15527
+ * (see `TestTtsPrev`).
15528
+ *
15529
+ * ## Attributes & Properties
15530
+ *
15531
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15532
+ *
15533
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15534
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15535
+ * which has no text to be named by.
15248
15536
  *
15249
15537
  * ## CSS Parts
15250
15538
  *
@@ -15265,6 +15553,64 @@ export type CustomElementsSolidJs = {
15265
15553
  BaseEvents
15266
15554
  >;
15267
15555
 
15556
+ /**
15557
+ * Pick button — toggles pick mode on the controller: every reading element is highlighted and
15558
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
15559
+ *
15560
+ * ## Attributes & Properties
15561
+ *
15562
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15563
+ *
15564
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
15565
+ * slotted content names the button by its text; set it when you slot an icon of your own,
15566
+ * which has no text to be named by.
15567
+ *
15568
+ * ## CSS Parts
15569
+ *
15570
+ * Custom selectors for styling elements within the component.
15571
+ *
15572
+ * - `button`: undefined
15573
+ *
15574
+ * ## CSS States
15575
+ *
15576
+ * These can be used to apply styling when a component is in a given state.
15577
+ *
15578
+ * - `idle`: / playing / paused
15579
+ * - `picking`: undefined
15580
+ */
15581
+ "test-tts-pick": Partial<
15582
+ TestTtsPickProps &
15583
+ TestTtsPickSolidJsProps &
15584
+ BaseProps<TestTtsPick> &
15585
+ BaseEvents
15586
+ >;
15587
+
15588
+ /**
15589
+ *
15590
+ *
15591
+ * ## Attributes & Properties
15592
+ *
15593
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15594
+ *
15595
+ * - `identifier`: undefined
15596
+ * - `auto-score-items`/`autoScoreItems`: undefined
15597
+ * - `initContext`: undefined (property only)
15598
+ * - `qtiContext`: undefined (property only)
15599
+ * - `configContext`: undefined (property only)
15600
+ *
15601
+ * ## Events
15602
+ *
15603
+ * Events that will be emitted by the component.
15604
+ *
15605
+ * - `qti-computed-context-updated`: undefined
15606
+ */
15607
+ "test-navigation": Partial<
15608
+ TestNavigationProps &
15609
+ TestNavigationSolidJsProps &
15610
+ BaseProps<TestNavigation> &
15611
+ BaseEvents
15612
+ >;
15613
+
15268
15614
  /**
15269
15615
  * Represents a custom element for navigating to the next test item.
15270
15616
  *
@@ -17713,9 +18059,13 @@ export type CustomElementsSolidJs = {
17713
18059
  * - `adaptive`: undefined
17714
18060
  * - `time-dependent`/`timeDependent`: undefined
17715
18061
  * - `title`: undefined
17716
- * - `disabled`: undefined
17717
- * - `readonly`: undefined
18062
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
18063
+ * interactions inside follow, so the item keeps no list of them to set it on.
18064
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
18065
+ * follow, so the item keeps no list of them to set it on.
17718
18066
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
18067
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
18068
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
17719
18069
  * - `variables`: undefined (property only)
17720
18070
  * - `state`: undefined (property only)
17721
18071
  * - `responses`: undefined (property only)
@@ -17817,12 +18167,22 @@ export type CustomElementsSolidJs = {
17817
18167
  * Component attributes and properties that can be applied to the element or by using JavaScript.
17818
18168
  *
17819
18169
  * - `configContext`: undefined (property only)
18170
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
18171
+ * everything inside reads one value: the test-container shuffling the item order, the test
18172
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
18173
+ *
18174
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
18175
+ * object, do not mutate it: an in-place change does not notify the components inside.
18176
+ *
18177
+ * `test-navigation.qtiContext` is an alias of this. (property only)
17820
18178
  *
17821
18179
  * ## Events
17822
18180
  *
17823
18181
  * Events that will be emitted by the component.
17824
18182
  *
17825
18183
  * - `qti-test-connected`: undefined
18184
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
18185
+ * - `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.
17826
18186
  *
17827
18187
  * ## Methods
17828
18188
  *