@citolab/qti-components 9.3.0 → 9.5.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 (63) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +280 -220
  3. package/dist/base.d.ts +10 -10
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-G5RQ5GKG.js → chunk-6K3QWJHH.js} +2 -2
  6. package/dist/{chunk-REKCRWJV.js → chunk-6U3YPHXU.js} +231 -129
  7. package/dist/chunk-6U3YPHXU.js.map +1 -0
  8. package/dist/{chunk-JGPWBIVD.js → chunk-DAFB2E5H.js} +123 -47
  9. package/dist/{chunk-JGPWBIVD.js.map → chunk-DAFB2E5H.js.map} +1 -1
  10. package/dist/{chunk-YIYHCHHM.js → chunk-FD4AB6TM.js} +2 -2
  11. package/dist/{chunk-JLZCZVRX.js → chunk-GBZNFSFY.js} +2 -2
  12. package/dist/{chunk-ZG7FBQFP.js → chunk-MI7774NV.js} +2 -2
  13. package/dist/{chunk-7VDR765S.js → chunk-OQDBARD5.js} +2 -2
  14. package/dist/{chunk-RAJQKCQ3.js → chunk-RU6332MD.js} +3 -3
  15. package/dist/{chunk-TDWLV5OD.js → chunk-SIE3E4FG.js} +1159 -551
  16. package/dist/chunk-SIE3E4FG.js.map +1 -0
  17. package/dist/{chunk-CQHGVPOT.js → chunk-SU63QGGD.js} +6 -6
  18. package/dist/{chunk-YVZWNLF4.js → chunk-TDWJ6WZA.js} +158 -19
  19. package/dist/chunk-TDWJ6WZA.js.map +1 -0
  20. package/dist/{chunk-FG5JAWSN.js → chunk-YZRODVYZ.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 +34 -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 +536 -409
  41. package/dist/{qti-condition-expression.d-DLboq8bR.d.ts → qti-condition-expression.d-VJH6cWxf.d.ts} +1 -1
  42. package/dist/{qti-expression.d-BksT9iLB.d.ts → qti-expression.d-BPxEp8HU.d.ts} +8 -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-86TlaMlI.d.ts} +298 -39
  46. package/dist/{qti-text-entry-interaction.d-CATtcPyX.d.ts → qti-text-entry-interaction.d-C4eixT-D.d.ts} +8 -3
  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 +13 -5
  50. package/package.json +5 -5
  51. package/dist/chunk-A32YH4H5.js +0 -7
  52. package/dist/chunk-A32YH4H5.js.map +0 -1
  53. package/dist/chunk-REKCRWJV.js.map +0 -1
  54. package/dist/chunk-TDWLV5OD.js.map +0 -1
  55. package/dist/chunk-YVZWNLF4.js.map +0 -1
  56. /package/dist/{chunk-G5RQ5GKG.js.map → chunk-6K3QWJHH.js.map} +0 -0
  57. /package/dist/{chunk-YIYHCHHM.js.map → chunk-FD4AB6TM.js.map} +0 -0
  58. /package/dist/{chunk-JLZCZVRX.js.map → chunk-GBZNFSFY.js.map} +0 -0
  59. /package/dist/{chunk-ZG7FBQFP.js.map → chunk-MI7774NV.js.map} +0 -0
  60. /package/dist/{chunk-7VDR765S.js.map → chunk-OQDBARD5.js.map} +0 -0
  61. /package/dist/{chunk-RAJQKCQ3.js.map → chunk-RU6332MD.js.map} +0 -0
  62. /package/dist/{chunk-CQHGVPOT.js.map → chunk-SU63QGGD.js.map} +0 -0
  63. /package/dist/{chunk-FG5JAWSN.js.map → chunk-YZRODVYZ.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,18 +70,20 @@ import type {
69
70
  QtiUploadInteraction,
70
71
  } from "./interactions.js";
71
72
  import type {
73
+ QtiAssessmentTest,
72
74
  QtiAssessmentItemRef,
73
75
  QtiAssessmentSection,
74
- QtiAssessmentTest,
76
+ QtiBranchRule,
75
77
  QtiItemSessionControl,
78
+ QtiNumberPresented,
76
79
  QtiNumberSelected,
80
+ QtiPreCondition,
77
81
  QtiOutcomeProcessing,
78
82
  QtiOutcomeProcessingProcessor,
79
83
  QtiTestFeedback,
80
84
  QtiTestPart,
81
85
  QtiTestVariables,
82
86
  QtiTestVariablesExpression,
83
- TestNavigation,
84
87
  TestContainer,
85
88
  QtiTest,
86
89
  TestCheckItem,
@@ -96,6 +99,7 @@ import type {
96
99
  TestItemToSpeech,
97
100
  SpeechState,
98
101
  ttsContext,
102
+ TestNavigation,
99
103
  TestNext,
100
104
  TestPagingButtonsStamp,
101
105
  TestPrev,
@@ -333,9 +337,11 @@ export type QtiAssessmentItemProps = {
333
337
  timeDependent?: QtiAssessmentItem["timeDependent"] | undefined;
334
338
  /** */
335
339
  title?: QtiAssessmentItem["title"] | undefined;
336
- /** */
340
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
341
+ interactions inside follow, so the item keeps no list of them to set it on. */
337
342
  disabled?: QtiAssessmentItem["disabled"] | undefined;
338
- /** */
343
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
344
+ follow, so the item keeps no list of them to set it on. */
339
345
  readonly?: QtiAssessmentItem["readonly"] | undefined;
340
346
  /** Sets the identifier for the assessment item reference if this item is in a test. */
341
347
  assessmentItemRefId?: QtiAssessmentItem["assessmentItemRefId"] | undefined;
@@ -350,10 +356,6 @@ export type QtiAssessmentItemProps = {
350
356
  "onqti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
351
357
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
352
358
  "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
359
  };
358
360
 
359
361
  export type QtiAssessmentItemSolidJsProps = {
@@ -367,9 +369,11 @@ export type QtiAssessmentItemSolidJsProps = {
367
369
  "prop:timeDependent"?: QtiAssessmentItem["timeDependent"] | undefined;
368
370
  /** */
369
371
  "prop:title"?: QtiAssessmentItem["title"] | undefined;
370
- /** */
372
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
373
+ interactions inside follow, so the item keeps no list of them to set it on. */
371
374
  "prop:disabled"?: QtiAssessmentItem["disabled"] | undefined;
372
- /** */
375
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
376
+ follow, so the item keeps no list of them to set it on. */
373
377
  "prop:readonly"?: QtiAssessmentItem["readonly"] | undefined;
374
378
  /** Sets the identifier for the assessment item reference if this item is in a test. */
375
379
  "prop:assessmentItemRefId"?:
@@ -385,10 +389,6 @@ export type QtiAssessmentItemSolidJsProps = {
385
389
  "on:qti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
386
390
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
387
391
  "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
392
 
393
393
  /** Set the innerHTML of the element */
394
394
  innerHTML?: string | undefined;
@@ -396,6 +396,15 @@ export type QtiAssessmentItemSolidJsProps = {
396
396
  textContent?: string | number | undefined;
397
397
  };
398
398
 
399
+ export type QtiAssessmentStimulusProps = {};
400
+
401
+ export type QtiAssessmentStimulusSolidJsProps = {
402
+ /** Set the innerHTML of the element */
403
+ innerHTML?: string | undefined;
404
+ /** Set the textContent of the element */
405
+ textContent?: string | number | undefined;
406
+ };
407
+
399
408
  export type QtiAssessmentStimulusRefProps = {
400
409
  /** */
401
410
  identifier?: QtiAssessmentStimulusRef["identifier"] | undefined;
@@ -484,9 +493,6 @@ export type QtiFeedbackBlockProps = {
484
493
  identifier?: QtiFeedbackBlock["identifier"] | undefined;
485
494
  /** */
486
495
  showStatus?: QtiFeedbackBlock["showStatus"] | undefined;
487
-
488
- /** */
489
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
490
496
  };
491
497
 
492
498
  export type QtiFeedbackBlockSolidJsProps = {
@@ -502,8 +508,6 @@ export type QtiFeedbackBlockSolidJsProps = {
502
508
  "prop:identifier"?: QtiFeedbackBlock["identifier"] | undefined;
503
509
  /** */
504
510
  "prop:showStatus"?: QtiFeedbackBlock["showStatus"] | undefined;
505
- /** */
506
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
507
511
 
508
512
  /** Set the innerHTML of the element */
509
513
  innerHTML?: string | undefined;
@@ -524,9 +528,6 @@ export type QtiFeedbackInlineProps = {
524
528
  identifier?: QtiFeedbackInline["identifier"] | undefined;
525
529
  /** */
526
530
  showStatus?: QtiFeedbackInline["showStatus"] | undefined;
527
-
528
- /** */
529
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
530
531
  };
531
532
 
532
533
  export type QtiFeedbackInlineSolidJsProps = {
@@ -544,8 +545,6 @@ export type QtiFeedbackInlineSolidJsProps = {
544
545
  "prop:identifier"?: QtiFeedbackInline["identifier"] | undefined;
545
546
  /** */
546
547
  "prop:showStatus"?: QtiFeedbackInline["showStatus"] | undefined;
547
- /** */
548
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
549
548
 
550
549
  /** Set the innerHTML of the element */
551
550
  innerHTML?: string | undefined;
@@ -575,9 +574,6 @@ export type QtiModalFeedbackProps = {
575
574
  identifier?: QtiModalFeedback["identifier"] | undefined;
576
575
  /** */
577
576
  showStatus?: QtiModalFeedback["showStatus"] | undefined;
578
-
579
- /** */
580
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
581
577
  };
582
578
 
583
579
  export type QtiModalFeedbackSolidJsProps = {
@@ -593,8 +589,6 @@ export type QtiModalFeedbackSolidJsProps = {
593
589
  "prop:identifier"?: QtiModalFeedback["identifier"] | undefined;
594
590
  /** */
595
591
  "prop:showStatus"?: QtiModalFeedback["showStatus"] | undefined;
596
- /** */
597
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
598
592
 
599
593
  /** Set the innerHTML of the element */
600
594
  innerHTML?: string | undefined;
@@ -3771,7 +3765,8 @@ export type QtiSliderInteractionProps = {
3771
3765
  max?: QtiSliderInteraction["max"] | undefined;
3772
3766
  /** */
3773
3767
  step?: QtiSliderInteraction["step"] | undefined;
3774
- /** */
3768
+ /** Shows the value without publishing it: it came from the item (a default or a restored answer) or
3769
+ from the host, which hold it already. Only the candidate's input is published. */
3775
3770
  response?: QtiSliderInteraction["response"] | undefined;
3776
3771
  /** */
3777
3772
  "response-identifier"?:
@@ -3830,7 +3825,8 @@ export type QtiSliderInteractionSolidJsProps = {
3830
3825
  "prop:max"?: QtiSliderInteraction["max"] | undefined;
3831
3826
  /** */
3832
3827
  "prop:step"?: QtiSliderInteraction["step"] | undefined;
3833
- /** */
3828
+ /** Shows the value without publishing it: it came from the item (a default or a restored answer) or
3829
+ from the host, which hold it already. Only the candidate's input is published. */
3834
3830
  "prop:response"?: QtiSliderInteraction["response"] | undefined;
3835
3831
  /** */
3836
3832
  "attr:response-identifier"?:
@@ -4152,6 +4148,29 @@ casts, rather than pretending at an encapsulation the type system was the only t
4152
4148
  textContent?: string | number | undefined;
4153
4149
  };
4154
4150
 
4151
+ export type QtiAssessmentTestProps = {
4152
+ /** */
4153
+ identifier?: QtiAssessmentTest["identifier"] | undefined;
4154
+ /** */
4155
+ title?: QtiAssessmentTest["title"] | undefined;
4156
+ /** */
4157
+ _testContext?: QtiAssessmentTest["_testContext"] | undefined;
4158
+ };
4159
+
4160
+ export type QtiAssessmentTestSolidJsProps = {
4161
+ /** */
4162
+ "prop:identifier"?: QtiAssessmentTest["identifier"] | undefined;
4163
+ /** */
4164
+ "prop:title"?: QtiAssessmentTest["title"] | undefined;
4165
+ /** */
4166
+ "prop:_testContext"?: QtiAssessmentTest["_testContext"] | undefined;
4167
+
4168
+ /** Set the innerHTML of the element */
4169
+ innerHTML?: string | undefined;
4170
+ /** Set the textContent of the element */
4171
+ textContent?: string | number | undefined;
4172
+ };
4173
+
4155
4174
  export type QtiAssessmentItemRefProps = {
4156
4175
  /** */
4157
4176
  category?: QtiAssessmentItemRef["category"] | undefined;
@@ -4167,11 +4186,6 @@ export type QtiAssessmentItemRefProps = {
4167
4186
  xmlDoc?: QtiAssessmentItemRef["xmlDoc"] | undefined;
4168
4187
  /** */
4169
4188
  myTemplate?: QtiAssessmentItemRef["myTemplate"] | undefined;
4170
-
4171
- /** */
4172
- "onqti-assessment-item-ref-connected"?:
4173
- | ((e: CustomEvent) => void)
4174
- | undefined;
4175
4189
  };
4176
4190
 
4177
4191
  export type QtiAssessmentItemRefSolidJsProps = {
@@ -4189,10 +4203,6 @@ export type QtiAssessmentItemRefSolidJsProps = {
4189
4203
  "prop:xmlDoc"?: QtiAssessmentItemRef["xmlDoc"] | undefined;
4190
4204
  /** */
4191
4205
  "prop:myTemplate"?: QtiAssessmentItemRef["myTemplate"] | undefined;
4192
- /** */
4193
- "on:qti-assessment-item-ref-connected"?:
4194
- | ((e: CustomEvent) => void)
4195
- | undefined;
4196
4206
 
4197
4207
  /** Set the innerHTML of the element */
4198
4208
  innerHTML?: string | undefined;
@@ -4264,27 +4274,14 @@ export type QtiAssessmentSectionSolidJsProps = {
4264
4274
  textContent?: string | number | undefined;
4265
4275
  };
4266
4276
 
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
+ export type QtiBranchRuleProps = {
4278
+ /** Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`. */
4279
+ target?: QtiBranchRule["target"] | undefined;
4277
4280
  };
4278
4281
 
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;
4282
+ export type QtiBranchRuleSolidJsProps = {
4283
+ /** Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`. */
4284
+ "prop:target"?: QtiBranchRule["target"] | undefined;
4288
4285
 
4289
4286
  /** Set the innerHTML of the element */
4290
4287
  innerHTML?: string | undefined;
@@ -4372,6 +4369,21 @@ export type QtiItemSessionControlSolidJsProps = {
4372
4369
  textContent?: string | number | undefined;
4373
4370
  };
4374
4371
 
4372
+ export type QtiNumberPresentedProps = {
4373
+ /** */
4374
+ getVariables?: QtiNumberPresented["getVariables"] | undefined;
4375
+ };
4376
+
4377
+ export type QtiNumberPresentedSolidJsProps = {
4378
+ /** */
4379
+ "prop:getVariables"?: QtiNumberPresented["getVariables"] | undefined;
4380
+
4381
+ /** Set the innerHTML of the element */
4382
+ innerHTML?: string | undefined;
4383
+ /** Set the textContent of the element */
4384
+ textContent?: string | number | undefined;
4385
+ };
4386
+
4375
4387
  export type QtiNumberSelectedProps = {
4376
4388
  /** */
4377
4389
  getVariables?: QtiNumberSelected["getVariables"] | undefined;
@@ -4387,6 +4399,15 @@ export type QtiNumberSelectedSolidJsProps = {
4387
4399
  textContent?: string | number | undefined;
4388
4400
  };
4389
4401
 
4402
+ export type QtiPreConditionProps = {};
4403
+
4404
+ export type QtiPreConditionSolidJsProps = {
4405
+ /** Set the innerHTML of the element */
4406
+ innerHTML?: string | undefined;
4407
+ /** Set the textContent of the element */
4408
+ textContent?: string | number | undefined;
4409
+ };
4410
+
4390
4411
  export type QtiOutcomeProcessingProps = {};
4391
4412
 
4392
4413
  export type QtiOutcomeProcessingSolidJsProps = {
@@ -4397,6 +4418,8 @@ export type QtiOutcomeProcessingSolidJsProps = {
4397
4418
  };
4398
4419
 
4399
4420
  export type QtiTestFeedbackProps = {
4421
+ /** When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`). */
4422
+ access?: QtiTestFeedback["access"] | undefined;
4400
4423
  /** */
4401
4424
  "show-hide"?: QtiTestFeedback["showHide"] | undefined;
4402
4425
  /** */
@@ -4409,12 +4432,11 @@ export type QtiTestFeedbackProps = {
4409
4432
  identifier?: QtiTestFeedback["identifier"] | undefined;
4410
4433
  /** */
4411
4434
  showStatus?: QtiTestFeedback["showStatus"] | undefined;
4412
-
4413
- /** */
4414
- "onqti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
4415
4435
  };
4416
4436
 
4417
4437
  export type QtiTestFeedbackSolidJsProps = {
4438
+ /** When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`). */
4439
+ "prop:access"?: QtiTestFeedback["access"] | undefined;
4418
4440
  /** */
4419
4441
  "attr:show-hide"?: QtiTestFeedback["showHide"] | undefined;
4420
4442
  /** */
@@ -4427,8 +4449,6 @@ export type QtiTestFeedbackSolidJsProps = {
4427
4449
  "prop:identifier"?: QtiTestFeedback["identifier"] | undefined;
4428
4450
  /** */
4429
4451
  "prop:showStatus"?: QtiTestFeedback["showStatus"] | undefined;
4430
- /** */
4431
- "on:qti-register-feedback"?: ((e: CustomEvent) => void) | undefined;
4432
4452
 
4433
4453
  /** Set the innerHTML of the element */
4434
4454
  innerHTML?: string | undefined;
@@ -4495,46 +4515,6 @@ export type QtiTestVariablesSolidJsProps = {
4495
4515
  textContent?: string | number | undefined;
4496
4516
  };
4497
4517
 
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
4518
  export type TestContainerProps = {
4539
4519
  /** URL of the item to load */
4540
4520
  "test-url"?: TestContainer["testURL"] | undefined;
@@ -4576,16 +4556,42 @@ export type TestContainerSolidJsProps = {
4576
4556
  export type QtiTestProps = {
4577
4557
  /** */
4578
4558
  configContext?: QtiTest["configContext"] | undefined;
4559
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
4560
+ everything inside reads one value: the test-container shuffling the item order, the test
4561
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
4562
+
4563
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
4564
+ object, do not mutate it: an in-place change does not notify the components inside.
4565
+
4566
+ `test-navigation.qtiContext` is an alias of this. */
4567
+ qtiContext?: QtiTest["qtiContext"] | undefined;
4579
4568
 
4580
4569
  /** */
4581
4570
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4571
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4572
+ "onqti-state-changed"?: ((e: Event) => void) | undefined;
4573
+ /** 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. */
4574
+ "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
4582
4575
  };
4583
4576
 
4584
4577
  export type QtiTestSolidJsProps = {
4585
4578
  /** */
4586
4579
  "prop:configContext"?: QtiTest["configContext"] | undefined;
4580
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
4581
+ everything inside reads one value: the test-container shuffling the item order, the test
4582
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
4583
+
4584
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
4585
+ object, do not mutate it: an in-place change does not notify the components inside.
4586
+
4587
+ `test-navigation.qtiContext` is an alias of this. */
4588
+ "prop:qtiContext"?: QtiTest["qtiContext"] | undefined;
4587
4589
  /** */
4588
4590
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4591
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4592
+ "on:qti-state-changed"?: ((e: Event) => void) | undefined;
4593
+ /** 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. */
4594
+ "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
4589
4595
 
4590
4596
  /** Set the innerHTML of the element */
4591
4597
  innerHTML?: string | undefined;
@@ -4626,9 +4632,6 @@ export type TestItemLinkProps = {
4626
4632
  "item-id"?: TestItemLink["itemId"] | undefined;
4627
4633
  /** */
4628
4634
  itemId?: TestItemLink["itemId"] | undefined;
4629
-
4630
- /** */
4631
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4632
4635
  };
4633
4636
 
4634
4637
  export type TestItemLinkSolidJsProps = {
@@ -4636,8 +4639,6 @@ export type TestItemLinkSolidJsProps = {
4636
4639
  "attr:item-id"?: TestItemLink["itemId"] | undefined;
4637
4640
  /** */
4638
4641
  "prop:itemId"?: TestItemLink["itemId"] | undefined;
4639
- /** */
4640
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4641
4642
 
4642
4643
  /** Set the innerHTML of the element */
4643
4644
  innerHTML?: string | undefined;
@@ -4648,12 +4649,6 @@ export type TestItemLinkSolidJsProps = {
4648
4649
  export type TestItemToSpeechProps = {
4649
4650
  /** Fallback language when neither the item content nor the document declares one. */
4650
4651
  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
4652
  /** */
4658
4653
  _ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
4659
4654
  };
@@ -4661,12 +4656,6 @@ navigation cursor (`navItemRefId`) instead. */
4661
4656
  export type TestItemToSpeechSolidJsProps = {
4662
4657
  /** Fallback language when neither the item content nor the document declares one. */
4663
4658
  "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
4659
  /** */
4671
4660
  "prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
4672
4661
 
@@ -4817,6 +4806,54 @@ which has no text to be named by. */
4817
4806
  textContent?: string | number | undefined;
4818
4807
  };
4819
4808
 
4809
+ export type TestNavigationProps = {
4810
+ /** */
4811
+ identifier?: TestNavigation["identifier"] | undefined;
4812
+ /** */
4813
+ "auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4814
+ /** */
4815
+ autoScoreItems?: TestNavigation["autoScoreItems"] | undefined;
4816
+ /** */
4817
+ initContext?: TestNavigation["initContext"] | undefined;
4818
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
4819
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
4820
+ shuffle seed here keeps working. Removed in the next major.
4821
+
4822
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
4823
+ qtiContext?: TestNavigation["qtiContext"] | undefined;
4824
+ /** */
4825
+ configContext?: TestNavigation["configContext"] | undefined;
4826
+
4827
+ /** */
4828
+ "onqti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4829
+ };
4830
+
4831
+ export type TestNavigationSolidJsProps = {
4832
+ /** */
4833
+ "prop:identifier"?: TestNavigation["identifier"] | undefined;
4834
+ /** */
4835
+ "bool:auto-score-items"?: TestNavigation["autoScoreItems"] | undefined;
4836
+ /** */
4837
+ "prop:autoScoreItems"?: TestNavigation["autoScoreItems"] | undefined;
4838
+ /** */
4839
+ "prop:initContext"?: TestNavigation["initContext"] | undefined;
4840
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
4841
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
4842
+ shuffle seed here keeps working. Removed in the next major.
4843
+
4844
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
4845
+ "prop:qtiContext"?: TestNavigation["qtiContext"] | undefined;
4846
+ /** */
4847
+ "prop:configContext"?: TestNavigation["configContext"] | undefined;
4848
+ /** */
4849
+ "on:qti-computed-context-updated"?: ((e: CustomEvent) => void) | undefined;
4850
+
4851
+ /** Set the innerHTML of the element */
4852
+ innerHTML?: string | undefined;
4853
+ /** Set the textContent of the element */
4854
+ textContent?: string | number | undefined;
4855
+ };
4856
+
4820
4857
  export type TestNextProps = {
4821
4858
  /** */
4822
4859
  disabled?: TestNext["_internalDisabled"] | undefined;
@@ -4830,9 +4867,6 @@ export type TestNextProps = {
4830
4867
  role?: TestNext["role"] | undefined;
4831
4868
  /** */
4832
4869
  ariaLabel?: TestNext["ariaLabel"] | undefined;
4833
-
4834
- /** */
4835
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4836
4870
  };
4837
4871
 
4838
4872
  export type TestNextSolidJsProps = {
@@ -4848,8 +4882,6 @@ export type TestNextSolidJsProps = {
4848
4882
  "prop:role"?: TestNext["role"] | undefined;
4849
4883
  /** */
4850
4884
  "prop:ariaLabel"?: TestNext["ariaLabel"] | undefined;
4851
- /** */
4852
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4853
4885
 
4854
4886
  /** Set the innerHTML of the element */
4855
4887
  innerHTML?: string | undefined;
@@ -4885,9 +4917,6 @@ export type TestPrevProps = {
4885
4917
  sectionItems?: TestPrev["sectionItems"] | undefined;
4886
4918
  /** */
4887
4919
  itemIndex?: TestPrev["itemIndex"] | undefined;
4888
-
4889
- /** */
4890
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4891
4920
  };
4892
4921
 
4893
4922
  export type TestPrevSolidJsProps = {
@@ -4899,8 +4928,6 @@ export type TestPrevSolidJsProps = {
4899
4928
  "prop:sectionItems"?: TestPrev["sectionItems"] | undefined;
4900
4929
  /** */
4901
4930
  "prop:itemIndex"?: TestPrev["itemIndex"] | undefined;
4902
- /** */
4903
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
4904
4931
 
4905
4932
  /** Set the innerHTML of the element */
4906
4933
  innerHTML?: string | undefined;
@@ -4945,9 +4972,6 @@ export type TestScoringButtonsProps = {
4945
4972
  disabled?: TestScoringButtons["disabled"] | undefined;
4946
4973
  /** */
4947
4974
  myTemplate?: TestScoringButtons["myTemplate"] | undefined;
4948
-
4949
- /** */
4950
- "ontest-update-outcome-variable"?: ((e: CustomEvent) => void) | undefined;
4951
4975
  };
4952
4976
 
4953
4977
  export type TestScoringButtonsSolidJsProps = {
@@ -4957,8 +4981,6 @@ export type TestScoringButtonsSolidJsProps = {
4957
4981
  "prop:disabled"?: TestScoringButtons["disabled"] | undefined;
4958
4982
  /** */
4959
4983
  "prop:myTemplate"?: TestScoringButtons["myTemplate"] | undefined;
4960
- /** */
4961
- "on:test-update-outcome-variable"?: ((e: CustomEvent) => void) | undefined;
4962
4984
 
4963
4985
  /** Set the innerHTML of the element */
4964
4986
  innerHTML?: string | undefined;
@@ -5005,9 +5027,6 @@ export type TestSectionLinkProps = {
5005
5027
  "section-id"?: TestSectionLink["sectionId"] | undefined;
5006
5028
  /** */
5007
5029
  sectionId?: TestSectionLink["sectionId"] | undefined;
5008
-
5009
- /** */
5010
- "onqti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
5011
5030
  };
5012
5031
 
5013
5032
  export type TestSectionLinkSolidJsProps = {
@@ -5015,8 +5034,6 @@ export type TestSectionLinkSolidJsProps = {
5015
5034
  "attr:section-id"?: TestSectionLink["sectionId"] | undefined;
5016
5035
  /** */
5017
5036
  "prop:sectionId"?: TestSectionLink["sectionId"] | undefined;
5018
- /** */
5019
- "on:qti-request-navigation"?: ((e: CustomEvent) => void) | undefined;
5020
5037
 
5021
5038
  /** Set the innerHTML of the element */
5022
5039
  innerHTML?: string | undefined;
@@ -5057,9 +5074,6 @@ export type TestViewProps = {
5057
5074
  "view-options"?: TestView["viewOptions"] | undefined;
5058
5075
  /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
5059
5076
  viewOptions?: TestView["viewOptions"] | undefined;
5060
-
5061
- /** */
5062
- "onon-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5063
5077
  };
5064
5078
 
5065
5079
  export type TestViewSolidJsProps = {
@@ -5069,8 +5083,6 @@ export type TestViewSolidJsProps = {
5069
5083
  "attr:view-options"?: TestView["viewOptions"] | undefined;
5070
5084
  /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
5071
5085
  "prop:viewOptions"?: TestView["viewOptions"] | undefined;
5072
- /** */
5073
- "on:on-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5074
5086
 
5075
5087
  /** Set the innerHTML of the element */
5076
5088
  innerHTML?: string | undefined;
@@ -5081,16 +5093,11 @@ export type TestViewSolidJsProps = {
5081
5093
  export type TestViewToggleProps = {
5082
5094
  /** */
5083
5095
  myTemplate?: TestViewToggle["myTemplate"] | undefined;
5084
-
5085
- /** */
5086
- "onon-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5087
5096
  };
5088
5097
 
5089
5098
  export type TestViewToggleSolidJsProps = {
5090
5099
  /** */
5091
5100
  "prop:myTemplate"?: TestViewToggle["myTemplate"] | undefined;
5092
- /** */
5093
- "on:on-test-switch-view"?: ((e: CustomEvent) => void) | undefined;
5094
5101
 
5095
5102
  /** Set the innerHTML of the element */
5096
5103
  innerHTML?: string | undefined;
@@ -6259,9 +6266,11 @@ export type QtiAssessmentItemCorrectionProps = {
6259
6266
  timeDependent?: QtiAssessmentItemCorrection["timeDependent"] | undefined;
6260
6267
  /** */
6261
6268
  title?: QtiAssessmentItemCorrection["title"] | undefined;
6262
- /** */
6269
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
6270
+ interactions inside follow, so the item keeps no list of them to set it on. */
6263
6271
  disabled?: QtiAssessmentItemCorrection["disabled"] | undefined;
6264
- /** */
6272
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
6273
+ follow, so the item keeps no list of them to set it on. */
6265
6274
  readonly?: QtiAssessmentItemCorrection["readonly"] | undefined;
6266
6275
  /** Sets the identifier for the assessment item reference if this item is in a test. */
6267
6276
  assessmentItemRefId?:
@@ -6278,10 +6287,6 @@ export type QtiAssessmentItemCorrectionProps = {
6278
6287
  "onqti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
6279
6288
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
6280
6289
  "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
6290
  };
6286
6291
 
6287
6292
  export type QtiAssessmentItemCorrectionSolidJsProps = {
@@ -6299,9 +6304,11 @@ export type QtiAssessmentItemCorrectionSolidJsProps = {
6299
6304
  | undefined;
6300
6305
  /** */
6301
6306
  "prop:title"?: QtiAssessmentItemCorrection["title"] | undefined;
6302
- /** */
6307
+ /** Locks the item, for example once it is submitted. Published in the item context, which the
6308
+ interactions inside follow, so the item keeps no list of them to set it on. */
6303
6309
  "prop:disabled"?: QtiAssessmentItemCorrection["disabled"] | undefined;
6304
- /** */
6310
+ /** Shows the item for reading only. Published in the item context, which the interactions inside
6311
+ follow, so the item keeps no list of them to set it on. */
6305
6312
  "prop:readonly"?: QtiAssessmentItemCorrection["readonly"] | undefined;
6306
6313
  /** Sets the identifier for the assessment item reference if this item is in a test. */
6307
6314
  "prop:assessmentItemRefId"?:
@@ -6317,10 +6324,6 @@ export type QtiAssessmentItemCorrectionSolidJsProps = {
6317
6324
  "on:qti-assessment-item-connected"?: ((e: CustomEvent) => void) | undefined;
6318
6325
  /** Emitted when through a user action the itemContext is updated, typically on interaction with the interactions, or calling response processing. */
6319
6326
  "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
6327
 
6325
6328
  /** Set the innerHTML of the element */
6326
6329
  innerHTML?: string | undefined;
@@ -6362,7 +6365,11 @@ export type TestNavigationCorrectionProps = {
6362
6365
  autoScoreItems?: TestNavigationCorrection["autoScoreItems"] | undefined;
6363
6366
  /** */
6364
6367
  initContext?: TestNavigationCorrection["initContext"] | undefined;
6365
- /** */
6368
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
6369
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
6370
+ shuffle seed here keeps working. Removed in the next major.
6371
+
6372
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
6366
6373
  qtiContext?: TestNavigationCorrection["qtiContext"] | undefined;
6367
6374
  /** */
6368
6375
  configContext?: TestNavigationCorrection["configContext"] | undefined;
@@ -6384,7 +6391,11 @@ export type TestNavigationCorrectionSolidJsProps = {
6384
6391
  | undefined;
6385
6392
  /** */
6386
6393
  "prop:initContext"?: TestNavigationCorrection["initContext"] | undefined;
6387
- /** */
6394
+ /** @deprecated Set `qtiContext` on `qti-test`, which provides it. This is an alias for the
6395
+ enclosing test's: reading returns it, writing replaces it, so a host that has always set the
6396
+ shuffle seed here keeps working. Removed in the next major.
6397
+
6398
+ Written before the navigation is inside a test, it waits and is handed over on connect. */
6388
6399
  "prop:qtiContext"?: TestNavigationCorrection["qtiContext"] | undefined;
6389
6400
  /** */
6390
6401
  "prop:configContext"?: TestNavigationCorrection["configContext"] | undefined;
@@ -6400,16 +6411,42 @@ export type TestNavigationCorrectionSolidJsProps = {
6400
6411
  export type QtiTestCorrectionProps = {
6401
6412
  /** */
6402
6413
  configContext?: QtiTestCorrection["configContext"] | undefined;
6414
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
6415
+ everything inside reads one value: the test-container shuffling the item order, the test
6416
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
6417
+
6418
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
6419
+ object, do not mutate it: an in-place change does not notify the components inside.
6420
+
6421
+ `test-navigation.qtiContext` is an alias of this. */
6422
+ qtiContext?: QtiTestCorrection["qtiContext"] | undefined;
6403
6423
 
6404
6424
  /** */
6405
6425
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6426
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6427
+ "onqti-state-changed"?: ((e: Event) => void) | undefined;
6428
+ /** 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. */
6429
+ "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
6406
6430
  };
6407
6431
 
6408
6432
  export type QtiTestCorrectionSolidJsProps = {
6409
6433
  /** */
6410
6434
  "prop:configContext"?: QtiTestCorrection["configContext"] | undefined;
6435
+ /** Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
6436
+ everything inside reads one value: the test-container shuffling the item order, the test
6437
+ shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
6438
+
6439
+ Pass the same `seed` when resuming a session, or the order comes back different. Replace the
6440
+ object, do not mutate it: an in-place change does not notify the components inside.
6441
+
6442
+ `test-navigation.qtiContext` is an alias of this. */
6443
+ "prop:qtiContext"?: QtiTestCorrection["qtiContext"] | undefined;
6411
6444
  /** */
6412
6445
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6446
+ /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6447
+ "on:qti-state-changed"?: ((e: Event) => void) | undefined;
6448
+ /** 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. */
6449
+ "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
6413
6450
 
6414
6451
  /** Set the innerHTML of the element */
6415
6452
  innerHTML?: string | undefined;
@@ -6668,9 +6705,13 @@ export type CustomElements = {
6668
6705
  * - `adaptive`: undefined
6669
6706
  * - `time-dependent`/`timeDependent`: undefined
6670
6707
  * - `title`: undefined
6671
- * - `disabled`: undefined
6672
- * - `readonly`: undefined
6708
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
6709
+ * interactions inside follow, so the item keeps no list of them to set it on.
6710
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
6711
+ * follow, so the item keeps no list of them to set it on.
6673
6712
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
6713
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
6714
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
6674
6715
  * - `variables`: undefined (property only)
6675
6716
  * - `state`: undefined (property only)
6676
6717
  * - `responses`: undefined (property only)
@@ -6681,8 +6722,6 @@ export type CustomElements = {
6681
6722
  *
6682
6723
  * - `qti-assessment-item-connected`: undefined
6683
6724
  * - `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
6725
  *
6687
6726
  * ## Methods
6688
6727
  *
@@ -6701,6 +6740,19 @@ export type CustomElements = {
6701
6740
  QtiAssessmentItemProps & BaseProps<QtiAssessmentItem> & BaseEvents
6702
6741
  >;
6703
6742
 
6743
+ /**
6744
+ *
6745
+ *
6746
+ * ## Slots
6747
+ *
6748
+ * Areas where markup can be added to the component.
6749
+ *
6750
+ * - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
6751
+ */
6752
+ "qti-assessment-stimulus": Partial<
6753
+ QtiAssessmentStimulusProps & BaseProps<QtiAssessmentStimulus> & BaseEvents
6754
+ >;
6755
+
6704
6756
  /**
6705
6757
  * Represents a custom element for referencing an assessment stimulus.
6706
6758
  *
@@ -6813,12 +6865,6 @@ export type CustomElements = {
6813
6865
  * - `identifier`: undefined
6814
6866
  * - `showStatus`: undefined (property only)
6815
6867
  *
6816
- * ## Events
6817
- *
6818
- * Events that will be emitted by the component.
6819
- *
6820
- * - `qti-register-feedback`: undefined
6821
- *
6822
6868
  * ## Methods
6823
6869
  *
6824
6870
  * Methods that can be called to access component functionality.
@@ -6841,12 +6887,6 @@ export type CustomElements = {
6841
6887
  * - `identifier`: undefined
6842
6888
  * - `showStatus`: undefined (property only)
6843
6889
  *
6844
- * ## Events
6845
- *
6846
- * Events that will be emitted by the component.
6847
- *
6848
- * - `qti-register-feedback`: undefined
6849
- *
6850
6890
  * ## Methods
6851
6891
  *
6852
6892
  * Methods that can be called to access component functionality.
@@ -6889,12 +6929,6 @@ export type CustomElements = {
6889
6929
  * - `identifier`: undefined
6890
6930
  * - `showStatus`: undefined (property only)
6891
6931
  *
6892
- * ## Events
6893
- *
6894
- * Events that will be emitted by the component.
6895
- *
6896
- * - `qti-register-feedback`: undefined
6897
- *
6898
6932
  * ## Methods
6899
6933
  *
6900
6934
  * Methods that can be called to access component functionality.
@@ -8902,7 +8936,8 @@ export type CustomElements = {
8902
8936
  * - `lower-bound`/`min`: undefined
8903
8937
  * - `upper-bound`/`max`: undefined
8904
8938
  * - `step`: undefined
8905
- * - `response`: undefined
8939
+ * - `response`: Shows the value without publishing it: it came from the item (a default or a restored answer) or
8940
+ * from the host, which hold it already. Only the candidate's input is published.
8906
8941
  * - `response-identifier`/`responseIdentifier`: undefined
8907
8942
  * - `disabled`: undefined
8908
8943
  * - `readonly`: undefined
@@ -9125,26 +9160,35 @@ export type CustomElements = {
9125
9160
  *
9126
9161
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9127
9162
  *
9128
- * - `category`: undefined
9129
9163
  * - `identifier`: undefined
9130
- * - `required`: undefined
9131
- * - `fixed`: undefined
9132
- * - `href`: undefined
9133
- * - `weights`: The `<qti-weight>` children of this ref, keyed by identifier — what
9134
- * `qti-test-variables`' `weight-identifier` resolves against.
9135
- *
9136
- * Read on access rather than cached: the test document is rendered into this
9137
- * element's light DOM, so the weights are not in place at construction time,
9164
+ * - `title`: undefined
9165
+ * - `_testContext`: undefined (property only)
9166
+ */
9167
+ "qti-assessment-test": Partial<
9168
+ QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
9169
+ >;
9170
+
9171
+ /**
9172
+ *
9173
+ *
9174
+ * ## Attributes & Properties
9175
+ *
9176
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9177
+ *
9178
+ * - `category`: undefined
9179
+ * - `identifier`: undefined
9180
+ * - `required`: undefined
9181
+ * - `fixed`: undefined
9182
+ * - `href`: undefined
9183
+ * - `weights`: The `<qti-weight>` children of this ref, keyed by identifier — what
9184
+ * `qti-test-variables`' `weight-identifier` resolves against.
9185
+ *
9186
+ * Read on access rather than cached: the test document is rendered into this
9187
+ * element's light DOM, so the weights are not in place at construction time,
9138
9188
  * and outcome processing runs long after they are. (property only) (readonly)
9139
9189
  * - `xmlDoc`: undefined (property only)
9140
9190
  * - `assessmentItem`: undefined (property only) (readonly)
9141
9191
  * - `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
9192
  */
9149
9193
  "qti-assessment-item-ref": Partial<
9150
9194
  QtiAssessmentItemRefProps & BaseProps<QtiAssessmentItemRef> & BaseEvents
@@ -9184,18 +9228,22 @@ export type CustomElements = {
9184
9228
  *
9185
9229
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9186
9230
  *
9187
- * - `identifier`: undefined
9188
- * - `title`: undefined
9189
- * - `_testContext`: undefined (property only)
9231
+ * - `target`: Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`.
9190
9232
  *
9191
- * ## Events
9233
+ * ## Slots
9192
9234
  *
9193
- * Events that will be emitted by the component.
9235
+ * Areas where markup can be added to the component.
9236
+ *
9237
+ * - `(default)`: The boolean expression.
9194
9238
  *
9195
- * - `qti-assessment-test-connected`: undefined
9239
+ * ## Methods
9240
+ *
9241
+ * Methods that can be called to access component functionality.
9242
+ *
9243
+ * - `evaluate() => boolean`: `true` when the test should jump to `target`.
9196
9244
  */
9197
- "qti-assessment-test": Partial<
9198
- QtiAssessmentTestProps & BaseProps<QtiAssessmentTest> & BaseEvents
9245
+ "qti-branch-rule": Partial<
9246
+ QtiBranchRuleProps & BaseProps<QtiBranchRule> & BaseEvents
9199
9247
  >;
9200
9248
 
9201
9249
  /**
@@ -9223,6 +9271,39 @@ export type CustomElements = {
9223
9271
  QtiItemSessionControlProps & BaseProps<QtiItemSessionControl> & BaseEvents
9224
9272
  >;
9225
9273
 
9274
+ /**
9275
+ *
9276
+ *
9277
+ * ## Attributes & Properties
9278
+ *
9279
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9280
+ *
9281
+ * - `lastResult`: What the last `calculate()` produced, or undefined if it has not run.
9282
+ *
9283
+ * This is the supported way to inspect a scoring run: process the responses,
9284
+ * then walk the rule tree reading this off each expression. A tool that wants
9285
+ * to visualise how a score came about gets the whole tree annotated with its
9286
+ * values, without the components having to re-render to show them. (property only) (readonly)
9287
+ * - `lastVariables`: undefined (property only) (readonly)
9288
+ * - `resultBaseType`: The base type this operator always produces, when the QTI vocabulary fixes
9289
+ * one regardless of its operands — `qti-divide` is a float even dividing two
9290
+ * integers exactly, and `qti-round` is an integer whatever it rounds.
9291
+ *
9292
+ * Left undefined by operators whose result type follows their operands (a
9293
+ * `qti-sum` of integers is an integer) and by those that return no number at
9294
+ * all; the type is then read off the value. (property only) (readonly)
9295
+ * - `getVariables`: undefined (property only)
9296
+ *
9297
+ * ## Methods
9298
+ *
9299
+ * Methods that can be called to access component functionality.
9300
+ *
9301
+ * - `calculate() => number`: undefined
9302
+ */
9303
+ "qti-number-presented": Partial<
9304
+ QtiNumberPresentedProps & BaseProps<QtiNumberPresented> & BaseEvents
9305
+ >;
9306
+
9226
9307
  /**
9227
9308
  *
9228
9309
  *
@@ -9256,6 +9337,25 @@ export type CustomElements = {
9256
9337
  QtiNumberSelectedProps & BaseProps<QtiNumberSelected> & BaseEvents
9257
9338
  >;
9258
9339
 
9340
+ /**
9341
+ *
9342
+ *
9343
+ * ## Slots
9344
+ *
9345
+ * Areas where markup can be added to the component.
9346
+ *
9347
+ * - `(default)`: The boolean expression.
9348
+ *
9349
+ * ## Methods
9350
+ *
9351
+ * Methods that can be called to access component functionality.
9352
+ *
9353
+ * - `evaluate() => boolean`: `true` when the parent may be presented.
9354
+ */
9355
+ "qti-pre-condition": Partial<
9356
+ QtiPreConditionProps & BaseProps<QtiPreCondition> & BaseEvents
9357
+ >;
9358
+
9259
9359
  /**
9260
9360
  *
9261
9361
  *
@@ -9270,27 +9370,25 @@ export type CustomElements = {
9270
9370
  >;
9271
9371
 
9272
9372
  /**
9273
- *
9373
+ * Test-level feedback. It renders nothing where it is declared: where and when it appears is up to
9374
+ * the host. After outcome processing, `qtiTest.getTestFeedback(access)` returns the ones that apply.
9274
9375
  *
9275
9376
  * ## Attributes & Properties
9276
9377
  *
9277
9378
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9278
9379
  *
9380
+ * - `access`: When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`).
9279
9381
  * - `show-hide`/`showHide`: undefined
9280
9382
  * - `outcome-identifier`/`outcomeIdentifier`: undefined
9281
9383
  * - `identifier`: undefined
9282
9384
  * - `showStatus`: undefined (property only)
9283
9385
  *
9284
- * ## Events
9285
- *
9286
- * Events that will be emitted by the component.
9287
- *
9288
- * - `qti-register-feedback`: undefined
9289
- *
9290
9386
  * ## Methods
9291
9387
  *
9292
9388
  * Methods that can be called to access component functionality.
9293
9389
  *
9390
+ * - `matches(value: string | readonly string[] | null | undefined) => boolean`: Whether this feedback applies for a value of its `outcome-identifier`: with `show-hide="show"`
9391
+ * when the value is (or, for a container, holds) its `identifier`; with `hide` when it is not.
9294
9392
  * - `openFeedback() => void`: undefined
9295
9393
  * - `closeFeedback() => void`: undefined
9296
9394
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
@@ -9355,29 +9453,6 @@ export type CustomElements = {
9355
9453
  QtiTestVariablesProps & BaseProps<QtiTestVariables> & BaseEvents
9356
9454
  >;
9357
9455
 
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
9456
  /**
9382
9457
  * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
9383
9458
  * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
@@ -9462,12 +9537,22 @@ export type CustomElements = {
9462
9537
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9463
9538
  *
9464
9539
  * - `configContext`: undefined (property only)
9540
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
9541
+ * everything inside reads one value: the test-container shuffling the item order, the test
9542
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
9543
+ *
9544
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
9545
+ * object, do not mutate it: an in-place change does not notify the components inside.
9546
+ *
9547
+ * `test-navigation.qtiContext` is an alias of this. (property only)
9465
9548
  *
9466
9549
  * ## Events
9467
9550
  *
9468
9551
  * Events that will be emitted by the component.
9469
9552
  *
9470
9553
  * - `qti-test-connected`: undefined
9554
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
9555
+ * - `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
9556
  */
9472
9557
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9473
9558
 
@@ -9506,12 +9591,6 @@ export type CustomElements = {
9506
9591
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9507
9592
  *
9508
9593
  * - `item-id`/`itemId`: undefined
9509
- *
9510
- * ## Events
9511
- *
9512
- * Events that will be emitted by the component.
9513
- *
9514
- * - `qti-request-navigation`: undefined
9515
9594
  */
9516
9595
  "test-item-link": Partial<
9517
9596
  TestItemLinkProps & BaseProps<TestItemLink> & BaseEvents
@@ -9527,8 +9606,6 @@ export type CustomElements = {
9527
9606
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9528
9607
  *
9529
9608
  * - `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
9609
  * - `_ttsContext`: undefined (property only)
9533
9610
  *
9534
9611
  * ## CSS States
@@ -9743,6 +9820,29 @@ export type CustomElements = {
9743
9820
  TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
9744
9821
  >;
9745
9822
 
9823
+ /**
9824
+ *
9825
+ *
9826
+ * ## Attributes & Properties
9827
+ *
9828
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
9829
+ *
9830
+ * - `identifier`: undefined
9831
+ * - `auto-score-items`/`autoScoreItems`: undefined
9832
+ * - `initContext`: undefined (property only)
9833
+ * - `qtiContext`: undefined (property only)
9834
+ * - `configContext`: undefined (property only)
9835
+ *
9836
+ * ## Events
9837
+ *
9838
+ * Events that will be emitted by the component.
9839
+ *
9840
+ * - `qti-computed-context-updated`: undefined
9841
+ */
9842
+ "test-navigation": Partial<
9843
+ TestNavigationProps & BaseProps<TestNavigation> & BaseEvents
9844
+ >;
9845
+
9746
9846
  /**
9747
9847
  * Represents a custom element for navigating to the next test item.
9748
9848
  *
@@ -9756,12 +9856,6 @@ export type CustomElements = {
9756
9856
  * - `role`: undefined (property only)
9757
9857
  * - `ariaLabel`: undefined (property only)
9758
9858
  *
9759
- * ## Events
9760
- *
9761
- * Events that will be emitted by the component.
9762
- *
9763
- * - `qti-request-navigation`: undefined
9764
- *
9765
9859
  * ## Methods
9766
9860
  *
9767
9861
  * Methods that can be called to access component functionality.
@@ -9798,12 +9892,6 @@ export type CustomElements = {
9798
9892
  * - `sectionItems`: undefined (property only)
9799
9893
  * - `itemIndex`: undefined (property only)
9800
9894
  *
9801
- * ## Events
9802
- *
9803
- * Events that will be emitted by the component.
9804
- *
9805
- * - `qti-request-navigation`: undefined
9806
- *
9807
9895
  * ## Methods
9808
9896
  *
9809
9897
  * Methods that can be called to access component functionality.
@@ -9849,12 +9937,6 @@ export type CustomElements = {
9849
9937
  * - `view`: undefined
9850
9938
  * - `disabled`: undefined
9851
9939
  * - `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
9940
  */
9859
9941
  "test-scoring-buttons": Partial<
9860
9942
  TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents
@@ -9899,12 +9981,6 @@ export type CustomElements = {
9899
9981
  * Component attributes and properties that can be applied to the element or by using JavaScript.
9900
9982
  *
9901
9983
  * - `section-id`/`sectionId`: undefined
9902
- *
9903
- * ## Events
9904
- *
9905
- * Events that will be emitted by the component.
9906
- *
9907
- * - `qti-request-navigation`: undefined
9908
9984
  */
9909
9985
  "test-section-link": Partial<
9910
9986
  TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents
@@ -9939,12 +10015,6 @@ export type CustomElements = {
9939
10015
  *
9940
10016
  * - `label`: label accompanying the select view dropdown
9941
10017
  * - `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
10018
  */
9949
10019
  "test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
9950
10020
 
@@ -9957,12 +10027,6 @@ export type CustomElements = {
9957
10027
  *
9958
10028
  * - `myTemplate`: undefined (property only)
9959
10029
  *
9960
- * ## Events
9961
- *
9962
- * Events that will be emitted by the component.
9963
- *
9964
- * - `on-test-switch-view`: undefined
9965
- *
9966
10030
  * ## Methods
9967
10031
  *
9968
10032
  * Methods that can be called to access component functionality.
@@ -11967,9 +12031,13 @@ export type CustomElements = {
11967
12031
  * - `adaptive`: undefined
11968
12032
  * - `time-dependent`/`timeDependent`: undefined
11969
12033
  * - `title`: undefined
11970
- * - `disabled`: undefined
11971
- * - `readonly`: undefined
12034
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
12035
+ * interactions inside follow, so the item keeps no list of them to set it on.
12036
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
12037
+ * follow, so the item keeps no list of them to set it on.
11972
12038
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
12039
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
12040
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
11973
12041
  * - `variables`: undefined (property only)
11974
12042
  * - `state`: undefined (property only)
11975
12043
  * - `responses`: undefined (property only)
@@ -11980,8 +12048,6 @@ export type CustomElements = {
11980
12048
  *
11981
12049
  * - `qti-assessment-item-connected`: undefined
11982
12050
  * - `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
12051
  *
11986
12052
  * ## Methods
11987
12053
  *
@@ -12066,12 +12132,22 @@ export type CustomElements = {
12066
12132
  * Component attributes and properties that can be applied to the element or by using JavaScript.
12067
12133
  *
12068
12134
  * - `configContext`: undefined (property only)
12135
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
12136
+ * everything inside reads one value: the test-container shuffling the item order, the test
12137
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
12138
+ *
12139
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
12140
+ * object, do not mutate it: an in-place change does not notify the components inside.
12141
+ *
12142
+ * `test-navigation.qtiContext` is an alias of this. (property only)
12069
12143
  *
12070
12144
  * ## Events
12071
12145
  *
12072
12146
  * Events that will be emitted by the component.
12073
12147
  *
12074
12148
  * - `qti-test-connected`: undefined
12149
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
12150
+ * - `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
12151
  *
12076
12152
  * ## Methods
12077
12153
  *
@@ -12272,9 +12348,13 @@ export type CustomElementsSolidJs = {
12272
12348
  * - `adaptive`: undefined
12273
12349
  * - `time-dependent`/`timeDependent`: undefined
12274
12350
  * - `title`: undefined
12275
- * - `disabled`: undefined
12276
- * - `readonly`: undefined
12351
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
12352
+ * interactions inside follow, so the item keeps no list of them to set it on.
12353
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
12354
+ * follow, so the item keeps no list of them to set it on.
12277
12355
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
12356
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
12357
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
12278
12358
  * - `variables`: undefined (property only)
12279
12359
  * - `state`: undefined (property only)
12280
12360
  * - `responses`: undefined (property only)
@@ -12285,8 +12365,6 @@ export type CustomElementsSolidJs = {
12285
12365
  *
12286
12366
  * - `qti-assessment-item-connected`: undefined
12287
12367
  * - `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
12368
  *
12291
12369
  * ## Methods
12292
12370
  *
@@ -12308,6 +12386,22 @@ export type CustomElementsSolidJs = {
12308
12386
  BaseEvents
12309
12387
  >;
12310
12388
 
12389
+ /**
12390
+ *
12391
+ *
12392
+ * ## Slots
12393
+ *
12394
+ * Areas where markup can be added to the component.
12395
+ *
12396
+ * - `(default)`: stimulus content: `qti-stylesheet`, `qti-stimulus-body` and `qti-catalog-info` (hidden).
12397
+ */
12398
+ "qti-assessment-stimulus": Partial<
12399
+ QtiAssessmentStimulusProps &
12400
+ QtiAssessmentStimulusSolidJsProps &
12401
+ BaseProps<QtiAssessmentStimulus> &
12402
+ BaseEvents
12403
+ >;
12404
+
12311
12405
  /**
12312
12406
  * Represents a custom element for referencing an assessment stimulus.
12313
12407
  *
@@ -12431,12 +12525,6 @@ export type CustomElementsSolidJs = {
12431
12525
  * - `identifier`: undefined
12432
12526
  * - `showStatus`: undefined (property only)
12433
12527
  *
12434
- * ## Events
12435
- *
12436
- * Events that will be emitted by the component.
12437
- *
12438
- * - `qti-register-feedback`: undefined
12439
- *
12440
12528
  * ## Methods
12441
12529
  *
12442
12530
  * Methods that can be called to access component functionality.
@@ -12462,12 +12550,6 @@ export type CustomElementsSolidJs = {
12462
12550
  * - `identifier`: undefined
12463
12551
  * - `showStatus`: undefined (property only)
12464
12552
  *
12465
- * ## Events
12466
- *
12467
- * Events that will be emitted by the component.
12468
- *
12469
- * - `qti-register-feedback`: undefined
12470
- *
12471
12553
  * ## Methods
12472
12554
  *
12473
12555
  * Methods that can be called to access component functionality.
@@ -12516,12 +12598,6 @@ export type CustomElementsSolidJs = {
12516
12598
  * - `identifier`: undefined
12517
12599
  * - `showStatus`: undefined (property only)
12518
12600
  *
12519
- * ## Events
12520
- *
12521
- * Events that will be emitted by the component.
12522
- *
12523
- * - `qti-register-feedback`: undefined
12524
- *
12525
12601
  * ## Methods
12526
12602
  *
12527
12603
  * Methods that can be called to access component functionality.
@@ -14622,7 +14698,8 @@ export type CustomElementsSolidJs = {
14622
14698
  * - `lower-bound`/`min`: undefined
14623
14699
  * - `upper-bound`/`max`: undefined
14624
14700
  * - `step`: undefined
14625
- * - `response`: undefined
14701
+ * - `response`: Shows the value without publishing it: it came from the item (a default or a restored answer) or
14702
+ * from the host, which hold it already. Only the candidate's input is published.
14626
14703
  * - `response-identifier`/`responseIdentifier`: undefined
14627
14704
  * - `disabled`: undefined
14628
14705
  * - `readonly`: undefined
@@ -14845,6 +14922,24 @@ export type CustomElementsSolidJs = {
14845
14922
  BaseEvents
14846
14923
  >;
14847
14924
 
14925
+ /**
14926
+ *
14927
+ *
14928
+ * ## Attributes & Properties
14929
+ *
14930
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
14931
+ *
14932
+ * - `identifier`: undefined
14933
+ * - `title`: undefined
14934
+ * - `_testContext`: undefined (property only)
14935
+ */
14936
+ "qti-assessment-test": Partial<
14937
+ QtiAssessmentTestProps &
14938
+ QtiAssessmentTestSolidJsProps &
14939
+ BaseProps<QtiAssessmentTest> &
14940
+ BaseEvents
14941
+ >;
14942
+
14848
14943
  /**
14849
14944
  *
14850
14945
  *
@@ -14866,12 +14961,6 @@ export type CustomElementsSolidJs = {
14866
14961
  * - `xmlDoc`: undefined (property only)
14867
14962
  * - `assessmentItem`: undefined (property only) (readonly)
14868
14963
  * - `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
14964
  */
14876
14965
  "qti-assessment-item-ref": Partial<
14877
14966
  QtiAssessmentItemRefProps &
@@ -14917,20 +15006,24 @@ export type CustomElementsSolidJs = {
14917
15006
  *
14918
15007
  * Component attributes and properties that can be applied to the element or by using JavaScript.
14919
15008
  *
14920
- * - `identifier`: undefined
14921
- * - `title`: undefined
14922
- * - `_testContext`: undefined (property only)
15009
+ * - `target`: Required. The identifier of an item ref, section or test part ahead of the parent, or one of the reserved targets `EXIT_SECTION`, `EXIT_TESTPART`, `EXIT_TEST`.
14923
15010
  *
14924
- * ## Events
15011
+ * ## Slots
14925
15012
  *
14926
- * Events that will be emitted by the component.
15013
+ * Areas where markup can be added to the component.
15014
+ *
15015
+ * - `(default)`: The boolean expression.
15016
+ *
15017
+ * ## Methods
15018
+ *
15019
+ * Methods that can be called to access component functionality.
14927
15020
  *
14928
- * - `qti-assessment-test-connected`: undefined
15021
+ * - `evaluate() => boolean`: `true` when the test should jump to `target`.
14929
15022
  */
14930
- "qti-assessment-test": Partial<
14931
- QtiAssessmentTestProps &
14932
- QtiAssessmentTestSolidJsProps &
14933
- BaseProps<QtiAssessmentTest> &
15023
+ "qti-branch-rule": Partial<
15024
+ QtiBranchRuleProps &
15025
+ QtiBranchRuleSolidJsProps &
15026
+ BaseProps<QtiBranchRule> &
14934
15027
  BaseEvents
14935
15028
  >;
14936
15029
 
@@ -14962,6 +15055,42 @@ export type CustomElementsSolidJs = {
14962
15055
  BaseEvents
14963
15056
  >;
14964
15057
 
15058
+ /**
15059
+ *
15060
+ *
15061
+ * ## Attributes & Properties
15062
+ *
15063
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15064
+ *
15065
+ * - `lastResult`: What the last `calculate()` produced, or undefined if it has not run.
15066
+ *
15067
+ * This is the supported way to inspect a scoring run: process the responses,
15068
+ * then walk the rule tree reading this off each expression. A tool that wants
15069
+ * to visualise how a score came about gets the whole tree annotated with its
15070
+ * values, without the components having to re-render to show them. (property only) (readonly)
15071
+ * - `lastVariables`: undefined (property only) (readonly)
15072
+ * - `resultBaseType`: The base type this operator always produces, when the QTI vocabulary fixes
15073
+ * one regardless of its operands — `qti-divide` is a float even dividing two
15074
+ * integers exactly, and `qti-round` is an integer whatever it rounds.
15075
+ *
15076
+ * Left undefined by operators whose result type follows their operands (a
15077
+ * `qti-sum` of integers is an integer) and by those that return no number at
15078
+ * all; the type is then read off the value. (property only) (readonly)
15079
+ * - `getVariables`: undefined (property only)
15080
+ *
15081
+ * ## Methods
15082
+ *
15083
+ * Methods that can be called to access component functionality.
15084
+ *
15085
+ * - `calculate() => number`: undefined
15086
+ */
15087
+ "qti-number-presented": Partial<
15088
+ QtiNumberPresentedProps &
15089
+ QtiNumberPresentedSolidJsProps &
15090
+ BaseProps<QtiNumberPresented> &
15091
+ BaseEvents
15092
+ >;
15093
+
14965
15094
  /**
14966
15095
  *
14967
15096
  *
@@ -14998,6 +15127,28 @@ export type CustomElementsSolidJs = {
14998
15127
  BaseEvents
14999
15128
  >;
15000
15129
 
15130
+ /**
15131
+ *
15132
+ *
15133
+ * ## Slots
15134
+ *
15135
+ * Areas where markup can be added to the component.
15136
+ *
15137
+ * - `(default)`: The boolean expression.
15138
+ *
15139
+ * ## Methods
15140
+ *
15141
+ * Methods that can be called to access component functionality.
15142
+ *
15143
+ * - `evaluate() => boolean`: `true` when the parent may be presented.
15144
+ */
15145
+ "qti-pre-condition": Partial<
15146
+ QtiPreConditionProps &
15147
+ QtiPreConditionSolidJsProps &
15148
+ BaseProps<QtiPreCondition> &
15149
+ BaseEvents
15150
+ >;
15151
+
15001
15152
  /**
15002
15153
  *
15003
15154
  *
@@ -15015,27 +15166,25 @@ export type CustomElementsSolidJs = {
15015
15166
  >;
15016
15167
 
15017
15168
  /**
15018
- *
15169
+ * Test-level feedback. It renders nothing where it is declared: where and when it appears is up to
15170
+ * the host. After outcome processing, `qtiTest.getTestFeedback(access)` returns the ones that apply.
15019
15171
  *
15020
15172
  * ## Attributes & Properties
15021
15173
  *
15022
15174
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15023
15175
  *
15176
+ * - `access`: When the feedback may be shown: at the end of the test (`atEnd`), or while it runs (`during`).
15024
15177
  * - `show-hide`/`showHide`: undefined
15025
15178
  * - `outcome-identifier`/`outcomeIdentifier`: undefined
15026
15179
  * - `identifier`: undefined
15027
15180
  * - `showStatus`: undefined (property only)
15028
15181
  *
15029
- * ## Events
15030
- *
15031
- * Events that will be emitted by the component.
15032
- *
15033
- * - `qti-register-feedback`: undefined
15034
- *
15035
15182
  * ## Methods
15036
15183
  *
15037
15184
  * Methods that can be called to access component functionality.
15038
15185
  *
15186
+ * - `matches(value: string | readonly string[] | null | undefined) => boolean`: Whether this feedback applies for a value of its `outcome-identifier`: with `show-hide="show"`
15187
+ * when the value is (or, for a container, holds) its `identifier`; with `hide` when it is not.
15039
15188
  * - `openFeedback() => void`: undefined
15040
15189
  * - `closeFeedback() => void`: undefined
15041
15190
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
@@ -15109,32 +15258,6 @@ export type CustomElementsSolidJs = {
15109
15258
  BaseEvents
15110
15259
  >;
15111
15260
 
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
15261
  /**
15139
15262
  * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
15140
15263
  * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
@@ -15222,12 +15345,22 @@ export type CustomElementsSolidJs = {
15222
15345
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15223
15346
  *
15224
15347
  * - `configContext`: undefined (property only)
15348
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
15349
+ * everything inside reads one value: the test-container shuffling the item order, the test
15350
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
15351
+ *
15352
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
15353
+ * object, do not mutate it: an in-place change does not notify the components inside.
15354
+ *
15355
+ * `test-navigation.qtiContext` is an alias of this. (property only)
15225
15356
  *
15226
15357
  * ## Events
15227
15358
  *
15228
15359
  * Events that will be emitted by the component.
15229
15360
  *
15230
15361
  * - `qti-test-connected`: undefined
15362
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
15363
+ * - `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
15364
  */
15232
15365
  "qti-test": Partial<
15233
15366
  QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
@@ -15274,12 +15407,6 @@ export type CustomElementsSolidJs = {
15274
15407
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15275
15408
  *
15276
15409
  * - `item-id`/`itemId`: undefined
15277
- *
15278
- * ## Events
15279
- *
15280
- * Events that will be emitted by the component.
15281
- *
15282
- * - `qti-request-navigation`: undefined
15283
15410
  */
15284
15411
  "test-item-link": Partial<
15285
15412
  TestItemLinkProps &
@@ -15298,8 +15425,6 @@ export type CustomElementsSolidJs = {
15298
15425
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15299
15426
  *
15300
15427
  * - `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
15428
  * - `_ttsContext`: undefined (property only)
15304
15429
  *
15305
15430
  * ## CSS States
@@ -15538,6 +15663,32 @@ export type CustomElementsSolidJs = {
15538
15663
  BaseEvents
15539
15664
  >;
15540
15665
 
15666
+ /**
15667
+ *
15668
+ *
15669
+ * ## Attributes & Properties
15670
+ *
15671
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15672
+ *
15673
+ * - `identifier`: undefined
15674
+ * - `auto-score-items`/`autoScoreItems`: undefined
15675
+ * - `initContext`: undefined (property only)
15676
+ * - `qtiContext`: undefined (property only)
15677
+ * - `configContext`: undefined (property only)
15678
+ *
15679
+ * ## Events
15680
+ *
15681
+ * Events that will be emitted by the component.
15682
+ *
15683
+ * - `qti-computed-context-updated`: undefined
15684
+ */
15685
+ "test-navigation": Partial<
15686
+ TestNavigationProps &
15687
+ TestNavigationSolidJsProps &
15688
+ BaseProps<TestNavigation> &
15689
+ BaseEvents
15690
+ >;
15691
+
15541
15692
  /**
15542
15693
  * Represents a custom element for navigating to the next test item.
15543
15694
  *
@@ -15551,12 +15702,6 @@ export type CustomElementsSolidJs = {
15551
15702
  * - `role`: undefined (property only)
15552
15703
  * - `ariaLabel`: undefined (property only)
15553
15704
  *
15554
- * ## Events
15555
- *
15556
- * Events that will be emitted by the component.
15557
- *
15558
- * - `qti-request-navigation`: undefined
15559
- *
15560
15705
  * ## Methods
15561
15706
  *
15562
15707
  * Methods that can be called to access component functionality.
@@ -15598,12 +15743,6 @@ export type CustomElementsSolidJs = {
15598
15743
  * - `sectionItems`: undefined (property only)
15599
15744
  * - `itemIndex`: undefined (property only)
15600
15745
  *
15601
- * ## Events
15602
- *
15603
- * Events that will be emitted by the component.
15604
- *
15605
- * - `qti-request-navigation`: undefined
15606
- *
15607
15746
  * ## Methods
15608
15747
  *
15609
15748
  * Methods that can be called to access component functionality.
@@ -15657,12 +15796,6 @@ export type CustomElementsSolidJs = {
15657
15796
  * - `view`: undefined
15658
15797
  * - `disabled`: undefined
15659
15798
  * - `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
15799
  */
15667
15800
  "test-scoring-buttons": Partial<
15668
15801
  TestScoringButtonsProps &
@@ -15714,12 +15847,6 @@ export type CustomElementsSolidJs = {
15714
15847
  * Component attributes and properties that can be applied to the element or by using JavaScript.
15715
15848
  *
15716
15849
  * - `section-id`/`sectionId`: undefined
15717
- *
15718
- * ## Events
15719
- *
15720
- * Events that will be emitted by the component.
15721
- *
15722
- * - `qti-request-navigation`: undefined
15723
15850
  */
15724
15851
  "test-section-link": Partial<
15725
15852
  TestSectionLinkProps &
@@ -15759,12 +15886,6 @@ export type CustomElementsSolidJs = {
15759
15886
  *
15760
15887
  * - `label`: label accompanying the select view dropdown
15761
15888
  * - `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
15889
  */
15769
15890
  "test-view": Partial<
15770
15891
  TestViewProps & TestViewSolidJsProps & BaseProps<TestView> & BaseEvents
@@ -15779,12 +15900,6 @@ export type CustomElementsSolidJs = {
15779
15900
  *
15780
15901
  * - `myTemplate`: undefined (property only)
15781
15902
  *
15782
- * ## Events
15783
- *
15784
- * Events that will be emitted by the component.
15785
- *
15786
- * - `on-test-switch-view`: undefined
15787
- *
15788
15903
  * ## Methods
15789
15904
  *
15790
15905
  * Methods that can be called to access component functionality.
@@ -17986,9 +18101,13 @@ export type CustomElementsSolidJs = {
17986
18101
  * - `adaptive`: undefined
17987
18102
  * - `time-dependent`/`timeDependent`: undefined
17988
18103
  * - `title`: undefined
17989
- * - `disabled`: undefined
17990
- * - `readonly`: undefined
18104
+ * - `disabled`: Locks the item, for example once it is submitted. Published in the item context, which the
18105
+ * interactions inside follow, so the item keeps no list of them to set it on.
18106
+ * - `readonly`: Shows the item for reading only. Published in the item context, which the interactions inside
18107
+ * follow, so the item keeps no list of them to set it on.
17991
18108
  * - `assessmentItemRefId`: Sets the identifier for the assessment item reference if this item is in a test. (property only)
18109
+ * - `itemContext`: The item's whole context, declarations included, for reading. `variables` is the trimmed view
18110
+ * for hosts; the test needs the declarations too, and used to reach for the private field. (property only) (readonly)
17992
18111
  * - `variables`: undefined (property only)
17993
18112
  * - `state`: undefined (property only)
17994
18113
  * - `responses`: undefined (property only)
@@ -17999,8 +18118,6 @@ export type CustomElementsSolidJs = {
17999
18118
  *
18000
18119
  * - `qti-assessment-item-connected`: undefined
18001
18120
  * - `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
18121
  *
18005
18122
  * ## Methods
18006
18123
  *
@@ -18090,12 +18207,22 @@ export type CustomElementsSolidJs = {
18090
18207
  * Component attributes and properties that can be applied to the element or by using JavaScript.
18091
18208
  *
18092
18209
  * - `configContext`: undefined (property only)
18210
+ * - `qtiContext`: Who is taking which test, and the optional shuffle `seed`. Provided here, at the test, so
18211
+ * everything inside reads one value: the test-container shuffling the item order, the test
18212
+ * shuffling interactions as it navigates, and the expressions that read `QTI_CONTEXT`.
18213
+ *
18214
+ * Pass the same `seed` when resuming a session, or the order comes back different. Replace the
18215
+ * object, do not mutate it: an in-place change does not notify the components inside.
18216
+ *
18217
+ * `test-navigation.qtiContext` is an alias of this. (property only)
18093
18218
  *
18094
18219
  * ## Events
18095
18220
  *
18096
18221
  * Events that will be emitted by the component.
18097
18222
  *
18098
18223
  * - `qti-test-connected`: undefined
18224
+ * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
18225
+ * - `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
18226
  *
18100
18227
  * ## Methods
18101
18228
  *