@citolab/qti-components 10.0.0-next.15 → 10.0.0-next.16

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 (62) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +1535 -2737
  3. package/dist/base.d.ts +31 -7
  4. package/dist/base.js +7 -1
  5. package/dist/{chunk-IWNRQVNW.js → chunk-4DC5Z2LQ.js} +2 -2
  6. package/dist/{chunk-G2EIC7H2.js → chunk-7MYZHZWV.js} +955 -364
  7. package/dist/chunk-7MYZHZWV.js.map +1 -0
  8. package/dist/{chunk-URYYGVTA.js → chunk-H3Z3TMFB.js} +55 -60
  9. package/dist/chunk-H3Z3TMFB.js.map +1 -0
  10. package/dist/{chunk-F553IZPL.js → chunk-J3F3JSCW.js} +2 -2
  11. package/dist/{chunk-32PI7KWX.js → chunk-L3LBSAGZ.js} +2 -2
  12. package/dist/{chunk-WIUPAUJV.js → chunk-L7J2ZOJL.js} +2 -2
  13. package/dist/{chunk-MIQZBDTB.js → chunk-LQ65RILE.js} +140 -105
  14. package/dist/chunk-LQ65RILE.js.map +1 -0
  15. package/dist/{chunk-QT7WQXCS.js → chunk-M4TZIB3W.js} +33 -37
  16. package/dist/chunk-M4TZIB3W.js.map +1 -0
  17. package/dist/{chunk-HT3LSWXL.js → chunk-NWSDBYK7.js} +2 -2
  18. package/dist/{chunk-IM5AKPIJ.js → chunk-NZ7ZC4SP.js} +96 -4
  19. package/dist/chunk-NZ7ZC4SP.js.map +1 -0
  20. package/dist/{chunk-XY5DHYIH.js → chunk-OG5HIRHE.js} +3 -3
  21. package/dist/{chunk-5AJZGRWI.js → chunk-UDJ7MHLF.js} +4 -4
  22. package/dist/chunk-UDJ7MHLF.js.map +1 -0
  23. package/dist/chunk-WWY2H2YO.js +7 -0
  24. package/dist/chunk-WWY2H2YO.js.map +1 -0
  25. package/dist/{computed.types.d-IXACuBr7.d.ts → computed.types.d-n3K2VvB0.d.ts} +2 -2
  26. package/dist/corrections.d.ts +117 -13
  27. package/dist/corrections.js +8 -8
  28. package/dist/elements.d.ts +44 -21
  29. package/dist/elements.js +3 -3
  30. package/dist/index.d.ts +8 -8
  31. package/dist/index.js +19 -13
  32. package/dist/interactions.d.ts +82 -16
  33. package/dist/interactions.js +3 -3
  34. package/dist/item.css +1057 -2383
  35. package/dist/item.d.ts +3 -3
  36. package/dist/item.js +4 -4
  37. package/dist/loader.d.ts +1 -1
  38. package/dist/processing.js +3 -3
  39. package/dist/qti-components-jsx.d.ts +1198 -201
  40. package/dist/{qti-feedback.d-GAqMqAt6.d.ts → qti-feedback.d-1JL_qHjc.d.ts} +1 -1
  41. package/dist/{qti-item.d-pFcNk0th.d.ts → qti-item.d-DDMDjWIk.d.ts} +1 -1
  42. package/dist/{qti-test.d-BjhVQnQy.d.ts → qti-test.d-CDdyCp6e.d.ts} +19 -16
  43. package/dist/{qti-text-entry-interaction.d-DECzpIzi.d.ts → qti-text-entry-interaction.d-BTAKmr4b.d.ts} +142 -42
  44. package/dist/{record.d-CljDLwRz.d.ts → record.d-Bojj6_LW.d.ts} +33 -2
  45. package/dist/{session.context.d-DW09Lrie.d.ts → session.context.d-BNxGeyh9.d.ts} +1 -1
  46. package/dist/test.d.ts +7 -7
  47. package/dist/test.js +5 -5
  48. package/package.json +9 -9
  49. package/dist/chunk-5AJZGRWI.js.map +0 -1
  50. package/dist/chunk-G2EIC7H2.js.map +0 -1
  51. package/dist/chunk-IM5AKPIJ.js.map +0 -1
  52. package/dist/chunk-MIQZBDTB.js.map +0 -1
  53. package/dist/chunk-QT7WQXCS.js.map +0 -1
  54. package/dist/chunk-RNLSNH4N.js +0 -7
  55. package/dist/chunk-RNLSNH4N.js.map +0 -1
  56. package/dist/chunk-URYYGVTA.js.map +0 -1
  57. /package/dist/{chunk-IWNRQVNW.js.map → chunk-4DC5Z2LQ.js.map} +0 -0
  58. /package/dist/{chunk-F553IZPL.js.map → chunk-J3F3JSCW.js.map} +0 -0
  59. /package/dist/{chunk-32PI7KWX.js.map → chunk-L3LBSAGZ.js.map} +0 -0
  60. /package/dist/{chunk-WIUPAUJV.js.map → chunk-L7J2ZOJL.js.map} +0 -0
  61. /package/dist/{chunk-HT3LSWXL.js.map → chunk-NWSDBYK7.js.map} +0 -0
  62. /package/dist/{chunk-XY5DHYIH.js.map → chunk-OG5HIRHE.js.map} +0 -0
@@ -994,6 +994,10 @@ export type QtiGapTextSolidJsProps = {
994
994
  };
995
995
 
996
996
  export type QtiHotspotChoiceProps = {
997
+ /** Graphic order: the 1-based position the candidate gave this choice. A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major. */
998
+ "data-order"?: unknown | undefined;
999
+ /** Graphic order: the 1-based position the candidate gave this choice. A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major. */
1000
+ undefined?: unknown | undefined;
997
1001
  /** */
998
1002
  "aria-ordervalue"?: QtiHotspotChoice["order"] | undefined;
999
1003
  /** */
@@ -1017,6 +1021,10 @@ export type QtiHotspotChoiceProps = {
1017
1021
  };
1018
1022
 
1019
1023
  export type QtiHotspotChoiceSolidJsProps = {
1024
+ /** Graphic order: the 1-based position the candidate gave this choice. A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major. */
1025
+ "attr:data-order"?: unknown | undefined;
1026
+ /** Graphic order: the 1-based position the candidate gave this choice. A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major. */
1027
+ "prop:undefined"?: unknown | undefined;
1020
1028
  /** */
1021
1029
  "attr:aria-ordervalue"?: QtiHotspotChoice["order"] | undefined;
1022
1030
  /** */
@@ -2080,6 +2088,22 @@ casts, rather than pretending at an encapsulation the type system was the only t
2080
2088
  };
2081
2089
 
2082
2090
  export type QtiGraphicAssociateInteractionProps = {
2091
+ /** Fewest associations a valid response holds (QTI `min-associations`, default 0). */
2092
+ "min-associations"?:
2093
+ | QtiGraphicAssociateInteraction["minAssociations"]
2094
+ | undefined;
2095
+ /** Fewest associations a valid response holds (QTI `min-associations`, default 0). */
2096
+ minAssociations?:
2097
+ | QtiGraphicAssociateInteraction["minAssociations"]
2098
+ | undefined;
2099
+ /** Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit). */
2100
+ "max-associations"?:
2101
+ | QtiGraphicAssociateInteraction["maxAssociations"]
2102
+ | undefined;
2103
+ /** Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit). */
2104
+ maxAssociations?:
2105
+ | QtiGraphicAssociateInteraction["maxAssociations"]
2106
+ | undefined;
2083
2107
  /** */
2084
2108
  response?: QtiGraphicAssociateInteraction["response"] | undefined;
2085
2109
  /** */
@@ -2131,6 +2155,22 @@ casts, rather than pretending at an encapsulation the type system was the only t
2131
2155
  };
2132
2156
 
2133
2157
  export type QtiGraphicAssociateInteractionSolidJsProps = {
2158
+ /** Fewest associations a valid response holds (QTI `min-associations`, default 0). */
2159
+ "attr:min-associations"?:
2160
+ | QtiGraphicAssociateInteraction["minAssociations"]
2161
+ | undefined;
2162
+ /** Fewest associations a valid response holds (QTI `min-associations`, default 0). */
2163
+ "prop:minAssociations"?:
2164
+ | QtiGraphicAssociateInteraction["minAssociations"]
2165
+ | undefined;
2166
+ /** Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit). */
2167
+ "attr:max-associations"?:
2168
+ | QtiGraphicAssociateInteraction["maxAssociations"]
2169
+ | undefined;
2170
+ /** Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit). */
2171
+ "prop:maxAssociations"?:
2172
+ | QtiGraphicAssociateInteraction["maxAssociations"]
2173
+ | undefined;
2134
2174
  /** */
2135
2175
  "prop:response"?: QtiGraphicAssociateInteraction["response"] | undefined;
2136
2176
  /** */
@@ -3663,36 +3703,137 @@ casts, rather than pretending at an encapsulation the type system was the only t
3663
3703
  textContent?: string | number | undefined;
3664
3704
  };
3665
3705
 
3666
- export type QtiPositionObjectInteractionProps = {};
3706
+ export type QtiPositionObjectInteractionProps = {
3707
+ /** Most positions; 0 = no limit. */
3708
+ "max-choices"?: QtiPositionObjectInteraction["maxChoices"] | undefined;
3709
+ /** Most positions; 0 = no limit. */
3710
+ maxChoices?: QtiPositionObjectInteraction["maxChoices"] | undefined;
3711
+ /** Fewest positions for a valid response. */
3712
+ "min-choices"?: QtiPositionObjectInteraction["minChoices"] | undefined;
3713
+ /** Fewest positions for a valid response. */
3714
+ minChoices?: QtiPositionObjectInteraction["minChoices"] | undefined;
3715
+ /** The object's centre point, `x y` (or `x,y`) from its top-left, in the object's own pixels. Default: the centre of its box. */
3716
+ "center-point"?: QtiPositionObjectInteraction["centerPoint"] | undefined;
3717
+ /** The object's centre point, `x y` (or `x,y`) from its top-left, in the object's own pixels. Default: the centre of its box. */
3718
+ centerPoint?: QtiPositionObjectInteraction["centerPoint"] | undefined;
3719
+ /** */
3720
+ response?: QtiPositionObjectInteraction["response"] | undefined;
3721
+ /** */
3722
+ "response-identifier"?:
3723
+ | QtiPositionObjectInteraction["responseIdentifier"]
3724
+ | undefined;
3725
+ /** */
3726
+ responseIdentifier?:
3727
+ | QtiPositionObjectInteraction["responseIdentifier"]
3728
+ | undefined;
3729
+ /** */
3730
+ disabled?: QtiPositionObjectInteraction["disabled"] | undefined;
3731
+ /** */
3732
+ readonly?: QtiPositionObjectInteraction["readonly"] | undefined;
3733
+ /** */
3734
+ name?: QtiPositionObjectInteraction["name"] | undefined;
3735
+ /** Delivery configuration, from the nearest provider — `qti-test` or `qti-item`.
3667
3736
 
3668
- export type QtiPositionObjectInteractionSolidJsProps = {
3669
- /** Set the innerHTML of the element */
3670
- innerHTML?: string | undefined;
3671
- /** Set the textContent of the element */
3672
- textContent?: string | number | undefined;
3673
- };
3737
+ **Public so it can be assigned directly, which is the development-time route.** An interaction
3738
+ has to work standalone, and in a story or a spec there is usually no provider above it — so
3739
+ setting the field is all that is needed:
3674
3740
 
3675
- export type QtiPositionObjectStageProps = {
3676
- /** */
3677
- choiceOrdering?: QtiPositionObjectStage["choiceOrdering"] | undefined;
3741
+ orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
3742
+
3743
+ With no provider, nothing ever overwrites it. That is the whole contract, and its limit: where a
3744
+ provider DOES exist it re-emits on its next update and wins, because `@consume` writes this same
3745
+ field. There is no merging — set the value on the provider in that case.
3746
+
3747
+ In a lit-html template, bind it as a property rather than assigning after the fact:
3748
+
3749
+ html`<qti-order-interaction .configContext=${{ allowReorder: false }}>…`
3750
+
3751
+ The binding is committed on the detached template clone, before the fragment is inserted, so it
3752
+ is in place by `connectedCallback` — which matters for anything that reads config on connect.
3753
+
3754
+ It was `protected`, which fooled nobody: every caller reached it anyway through an
3755
+ `as any` / `as { configContext?: … }` cast. Public says what was already true and removes the
3756
+ casts, rather than pretending at an encapsulation the type system was the only thing enforcing. */
3757
+ configContext?: QtiPositionObjectInteraction["configContext"] | undefined;
3678
3758
  /** */
3679
- startX?: QtiPositionObjectStage["startX"] | undefined;
3759
+ value?: QtiPositionObjectInteraction["value"] | undefined;
3760
+
3680
3761
  /** */
3681
- startY?: QtiPositionObjectStage["startY"] | undefined;
3762
+ "onqti-register-interaction"?: ((e: CustomEvent) => void) | undefined;
3682
3763
  /** */
3683
- dragElement?: QtiPositionObjectStage["dragElement"] | undefined;
3764
+ "onqti-interaction-response"?: ((e: CustomEvent) => void) | undefined;
3684
3765
  };
3685
3766
 
3686
- export type QtiPositionObjectStageSolidJsProps = {
3767
+ export type QtiPositionObjectInteractionSolidJsProps = {
3768
+ /** Most positions; 0 = no limit. */
3769
+ "attr:max-choices"?: QtiPositionObjectInteraction["maxChoices"] | undefined;
3770
+ /** Most positions; 0 = no limit. */
3771
+ "prop:maxChoices"?: QtiPositionObjectInteraction["maxChoices"] | undefined;
3772
+ /** Fewest positions for a valid response. */
3773
+ "attr:min-choices"?: QtiPositionObjectInteraction["minChoices"] | undefined;
3774
+ /** Fewest positions for a valid response. */
3775
+ "prop:minChoices"?: QtiPositionObjectInteraction["minChoices"] | undefined;
3776
+ /** The object's centre point, `x y` (or `x,y`) from its top-left, in the object's own pixels. Default: the centre of its box. */
3777
+ "attr:center-point"?: QtiPositionObjectInteraction["centerPoint"] | undefined;
3778
+ /** The object's centre point, `x y` (or `x,y`) from its top-left, in the object's own pixels. Default: the centre of its box. */
3779
+ "prop:centerPoint"?: QtiPositionObjectInteraction["centerPoint"] | undefined;
3780
+ /** */
3781
+ "prop:response"?: QtiPositionObjectInteraction["response"] | undefined;
3782
+ /** */
3783
+ "attr:response-identifier"?:
3784
+ | QtiPositionObjectInteraction["responseIdentifier"]
3785
+ | undefined;
3786
+ /** */
3787
+ "prop:responseIdentifier"?:
3788
+ | QtiPositionObjectInteraction["responseIdentifier"]
3789
+ | undefined;
3790
+ /** */
3791
+ "prop:disabled"?: QtiPositionObjectInteraction["disabled"] | undefined;
3687
3792
  /** */
3688
- "prop:choiceOrdering"?: QtiPositionObjectStage["choiceOrdering"] | undefined;
3793
+ "prop:readonly"?: QtiPositionObjectInteraction["readonly"] | undefined;
3689
3794
  /** */
3690
- "prop:startX"?: QtiPositionObjectStage["startX"] | undefined;
3795
+ "prop:name"?: QtiPositionObjectInteraction["name"] | undefined;
3796
+ /** Delivery configuration, from the nearest provider — `qti-test` or `qti-item`.
3797
+
3798
+ **Public so it can be assigned directly, which is the development-time route.** An interaction
3799
+ has to work standalone, and in a story or a spec there is usually no provider above it — so
3800
+ setting the field is all that is needed:
3801
+
3802
+ orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
3803
+
3804
+ With no provider, nothing ever overwrites it. That is the whole contract, and its limit: where a
3805
+ provider DOES exist it re-emits on its next update and wins, because `@consume` writes this same
3806
+ field. There is no merging — set the value on the provider in that case.
3807
+
3808
+ In a lit-html template, bind it as a property rather than assigning after the fact:
3809
+
3810
+ html`<qti-order-interaction .configContext=${{ allowReorder: false }}>…`
3811
+
3812
+ The binding is committed on the detached template clone, before the fragment is inserted, so it
3813
+ is in place by `connectedCallback` — which matters for anything that reads config on connect.
3814
+
3815
+ It was `protected`, which fooled nobody: every caller reached it anyway through an
3816
+ `as any` / `as { configContext?: … }` cast. Public says what was already true and removes the
3817
+ casts, rather than pretending at an encapsulation the type system was the only thing enforcing. */
3818
+ "prop:configContext"?:
3819
+ | QtiPositionObjectInteraction["configContext"]
3820
+ | undefined;
3691
3821
  /** */
3692
- "prop:startY"?: QtiPositionObjectStage["startY"] | undefined;
3822
+ "prop:value"?: QtiPositionObjectInteraction["value"] | undefined;
3693
3823
  /** */
3694
- "prop:dragElement"?: QtiPositionObjectStage["dragElement"] | undefined;
3824
+ "on:qti-register-interaction"?: ((e: CustomEvent) => void) | undefined;
3825
+ /** */
3826
+ "on:qti-interaction-response"?: ((e: CustomEvent) => void) | undefined;
3827
+
3828
+ /** Set the innerHTML of the element */
3829
+ innerHTML?: string | undefined;
3830
+ /** Set the textContent of the element */
3831
+ textContent?: string | number | undefined;
3832
+ };
3833
+
3834
+ export type QtiPositionObjectStageProps = {};
3695
3835
 
3836
+ export type QtiPositionObjectStageSolidJsProps = {
3696
3837
  /** Set the innerHTML of the element */
3697
3838
  innerHTML?: string | undefined;
3698
3839
  /** Set the textContent of the element */
@@ -4652,8 +4793,8 @@ object, do not mutate it: an in-place change does not notify the components insi
4652
4793
  /** */
4653
4794
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4654
4795
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4655
- "onqti-state-changed"?: ((e: Event) => void) | undefined;
4656
- /** 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. */
4796
+ "onqc-test-state-changed"?: ((e: Event) => void) | undefined;
4797
+ /** Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
4657
4798
  "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
4658
4799
  };
4659
4800
 
@@ -4672,8 +4813,8 @@ object, do not mutate it: an in-place change does not notify the components insi
4672
4813
  /** */
4673
4814
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4674
4815
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4675
- "on:qti-state-changed"?: ((e: Event) => void) | undefined;
4676
- /** 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. */
4816
+ "on:qc-test-state-changed"?: ((e: Event) => void) | undefined;
4817
+ /** Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
4677
4818
  "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
4678
4819
 
4679
4820
  /** Set the innerHTML of the element */
@@ -6528,8 +6669,8 @@ object, do not mutate it: an in-place change does not notify the components insi
6528
6669
  /** */
6529
6670
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6530
6671
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6531
- "onqti-state-changed"?: ((e: Event) => void) | undefined;
6532
- /** 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. */
6672
+ "onqc-test-state-changed"?: ((e: Event) => void) | undefined;
6673
+ /** Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
6533
6674
  "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
6534
6675
  };
6535
6676
 
@@ -6548,8 +6689,8 @@ object, do not mutate it: an in-place change does not notify the components insi
6548
6689
  /** */
6549
6690
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6550
6691
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6551
- "on:qti-state-changed"?: ((e: Event) => void) | undefined;
6552
- /** 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. */
6692
+ "on:qc-test-state-changed"?: ((e: Event) => void) | undefined;
6693
+ /** Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major. */
6553
6694
  "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
6554
6695
 
6555
6696
  /** Set the innerHTML of the element */
@@ -6829,7 +6970,7 @@ export type CustomElements = {
6829
6970
  * Methods that can be called to access component functionality.
6830
6971
  *
6831
6972
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
6832
- * backend, and sends the outcomes back in `cito-item-set-outcomes`, which the item applies in one
6973
+ * backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
6833
6974
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
6834
6975
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
6835
6976
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -6959,7 +7100,7 @@ export type CustomElements = {
6959
7100
  >;
6960
7101
 
6961
7102
  /**
6962
- *
7103
+ * Block feedback: shown or hidden by the outcome it is bound to.
6963
7104
  *
6964
7105
  * ## Attributes & Properties
6965
7106
  *
@@ -6970,18 +7111,30 @@ export type CustomElements = {
6970
7111
  * - `identifier`: undefined
6971
7112
  * - `showStatus`: undefined (property only)
6972
7113
  *
7114
+ * ## Slots
7115
+ *
7116
+ * Areas where markup can be added to the component.
7117
+ *
7118
+ * - `(default)`: The feedback content.
7119
+ *
6973
7120
  * ## Methods
6974
7121
  *
6975
7122
  * Methods that can be called to access component functionality.
6976
7123
  *
6977
7124
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
7125
+ *
7126
+ * ## CSS Parts
7127
+ *
7128
+ * Custom selectors for styling elements within the component.
7129
+ *
7130
+ * - `feedback`: The feedback box.
6978
7131
  */
6979
7132
  "qti-feedback-block": Partial<
6980
7133
  QtiFeedbackBlockProps & BaseProps<QtiFeedbackBlock> & BaseEvents
6981
7134
  >;
6982
7135
 
6983
7136
  /**
6984
- *
7137
+ * Inline feedback: shown or hidden by the outcome it is bound to.
6985
7138
  *
6986
7139
  * ## Attributes & Properties
6987
7140
  *
@@ -6992,11 +7145,23 @@ export type CustomElements = {
6992
7145
  * - `identifier`: undefined
6993
7146
  * - `showStatus`: undefined (property only)
6994
7147
  *
7148
+ * ## Slots
7149
+ *
7150
+ * Areas where markup can be added to the component.
7151
+ *
7152
+ * - `(default)`: The feedback content.
7153
+ *
6995
7154
  * ## Methods
6996
7155
  *
6997
7156
  * Methods that can be called to access component functionality.
6998
7157
  *
6999
7158
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
7159
+ *
7160
+ * ## CSS Parts
7161
+ *
7162
+ * Custom selectors for styling elements within the component.
7163
+ *
7164
+ * - `feedback`: The feedback box.
7000
7165
  */
7001
7166
  "qti-feedback-inline": Partial<
7002
7167
  QtiFeedbackInlineProps & BaseProps<QtiFeedbackInline> & BaseEvents
@@ -7016,14 +7181,14 @@ export type CustomElements = {
7016
7181
  *
7017
7182
  * Custom selectors for styling elements within the component.
7018
7183
  *
7019
- * - `qti-rubric-block`: the qti rubric block part
7184
+ * - `rubrics`: The rubric-block slot (was `qti-rubric-blocks`).
7020
7185
  */
7021
7186
  "qti-item-body": Partial<
7022
7187
  QtiItemBodyProps & BaseProps<QtiItemBody> & BaseEvents
7023
7188
  >;
7024
7189
 
7025
7190
  /**
7026
- *
7191
+ * Modal feedback: a dialog opened by the outcome it is bound to.
7027
7192
  *
7028
7193
  * ## Attributes & Properties
7029
7194
  *
@@ -7034,6 +7199,12 @@ export type CustomElements = {
7034
7199
  * - `identifier`: undefined
7035
7200
  * - `showStatus`: undefined (property only)
7036
7201
  *
7202
+ * ## Slots
7203
+ *
7204
+ * Areas where markup can be added to the component.
7205
+ *
7206
+ * - `(default)`: The feedback content.
7207
+ *
7037
7208
  * ## Methods
7038
7209
  *
7039
7210
  * Methods that can be called to access component functionality.
@@ -7041,6 +7212,12 @@ export type CustomElements = {
7041
7212
  * - `openFeedback() => void`: undefined
7042
7213
  * - `closeFeedback() => void`: undefined
7043
7214
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
7215
+ *
7216
+ * ## CSS Parts
7217
+ *
7218
+ * Custom selectors for styling elements within the component.
7219
+ *
7220
+ * - `feedback`: The feedback box (the dialog).
7044
7221
  */
7045
7222
  "qti-modal-feedback": Partial<
7046
7223
  QtiModalFeedbackProps & BaseProps<QtiModalFeedback> & BaseEvents
@@ -7101,7 +7278,7 @@ export type CustomElements = {
7101
7278
 
7102
7279
  /**
7103
7280
  * Response processing as the item's own backend: it reads the item context, runs its rules once and
7104
- * sends the outcomes and the attempt count back in one `cito-item-set-outcomes`. The item applies
7281
+ * sends the outcomes and the attempt count back in one `qc-item-set-outcomes`. The item applies
7105
7282
  * them; a host that scores elsewhere sends the same event instead.
7106
7283
  *
7107
7284
  * ## Methods
@@ -7110,7 +7287,7 @@ export type CustomElements = {
7110
7287
  *
7111
7288
  * - `processResponse({ numAttempts }: { numAttempts: number }) => void`: Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
7112
7289
  * non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
7113
- * every outcome and `numAttempts` in one `cito-item-set-outcomes`. The item applies them and publishes, which gives this element a
7290
+ * every outcome and `numAttempts` in one `qc-item-set-outcomes`. The item applies them and publishes, which gives this element a
7114
7291
  * fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
7115
7292
  * run's writes stay in the copy until the item's next update.
7116
7293
  */
@@ -7355,12 +7532,13 @@ export type CustomElements = {
7355
7532
  "qti-gap-text": Partial<QtiGapTextProps & BaseProps<QtiGapText> & BaseEvents>;
7356
7533
 
7357
7534
  /**
7358
- *
7535
+ * A clickable area on the image of `qti-hotspot-interaction` or `qti-graphic-order-interaction`.
7359
7536
  *
7360
7537
  * ## Attributes & Properties
7361
7538
  *
7362
7539
  * Component attributes and properties that can be applied to the element or by using JavaScript.
7363
7540
  *
7541
+ * - `data-order`/`undefined`: Graphic order: the 1-based position the candidate gave this choice. A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major.
7364
7542
  * - `aria-ordervalue`/`order`: undefined
7365
7543
  * - `identifier`: undefined
7366
7544
  * - `tabindex`/`tabIndex`: undefined
@@ -7380,6 +7558,14 @@ export type CustomElements = {
7380
7558
  *
7381
7559
  * - `handleDisabledChange(_oldValue: boolean, disabled: boolean) => void`: undefined
7382
7560
  * - `handleReadonlyChange(_oldValue: boolean, readonly: boolean) => void`: undefined
7561
+ *
7562
+ * ## CSS States
7563
+ *
7564
+ * These can be used to apply styling when a component is in a given state.
7565
+ *
7566
+ * - `checked`: Chosen by the candidate.
7567
+ * - `disabled`: Switched off by the interaction.
7568
+ * - `readonly`: Frozen by the interaction.
7383
7569
  */
7384
7570
  "qti-hotspot-choice": Partial<
7385
7571
  QtiHotspotChoiceProps & BaseProps<QtiHotspotChoice> & BaseEvents
@@ -7587,11 +7773,19 @@ export type CustomElements = {
7587
7773
  *
7588
7774
  * Custom selectors for styling elements within the component.
7589
7775
  *
7590
- * - `drags`: Wrapper around the associable choice slot.
7776
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
7591
7777
  * - `drops`: The container holding all drop targets.
7592
- * - `drop-row`: Container for one left/right drop pair.
7593
- * - `drop`: Each individual drop target.
7778
+ * - `row`: One left/right drop pair (was `drop-row`).
7779
+ * - `drop`: Each individual drop target. Tokens: `filled`, `full`, `drag-active`, `drag-over` (a plain div cannot carry `:state()`, so the state names are part tokens here).
7594
7780
  * - `message`: Live validation message region (role="alert").
7781
+ *
7782
+ * ## CSS States
7783
+ *
7784
+ * These can be used to apply styling when a component is in a given state.
7785
+ *
7786
+ * - `disabled`: The interaction is switched off.
7787
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
7788
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
7595
7789
  */
7596
7790
  "qti-associate-interaction": Partial<
7597
7791
  QtiAssociateInteractionProps &
@@ -7662,7 +7856,14 @@ export type CustomElements = {
7662
7856
  * Methods that can be called to access component functionality.
7663
7857
  *
7664
7858
  * - `validate() => boolean`: undefined
7665
- * - `reportValidity() => boolean`: undefined
7859
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
7860
+ *
7861
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
7862
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
7863
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
7864
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
7865
+ * and comes back if it is lost again. The validity itself is always set: a form with a
7866
+ * below-minimum interaction cannot submit either way.
7666
7867
  * - `reset() => void`: undefined
7667
7868
  * - `formResetCallback() => void`: undefined
7668
7869
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -7672,8 +7873,15 @@ export type CustomElements = {
7672
7873
  * Custom selectors for styling elements within the component.
7673
7874
  *
7674
7875
  * - `prompt`: Wrapper around the prompt slot.
7675
- * - `slot`: Wrapper around the default slot containing the choices.
7876
+ * - `choices`: The slot holding the choices (was `slot`).
7676
7877
  * - `message`: Live validation message region (role="alert").
7878
+ *
7879
+ * ## CSS States
7880
+ *
7881
+ * These can be used to apply styling when a component is in a given state.
7882
+ *
7883
+ * - `disabled`: The interaction is switched off.
7884
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
7677
7885
  */
7678
7886
  "qti-choice-interaction": Partial<
7679
7887
  QtiChoiceInteractionProps & BaseProps<QtiChoiceInteraction> & BaseEvents
@@ -7748,10 +7956,24 @@ export type CustomElements = {
7748
7956
  * 5. Sets up postMessage listeners for CES API calls
7749
7957
  * - `handlePostMessage(event: MessageEvent) => void`: undefined
7750
7958
  * - `validate() => boolean`: undefined
7751
- * - `reportValidity() => boolean`: undefined
7959
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
7960
+ *
7961
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
7962
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
7963
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
7964
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
7965
+ * and comes back if it is lost again. The validity itself is always set: a form with a
7966
+ * below-minimum interaction cannot submit either way.
7752
7967
  * - `reset() => void`: undefined
7753
7968
  * - `formResetCallback() => void`: undefined
7754
7969
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
7970
+ *
7971
+ * ## CSS States
7972
+ *
7973
+ * These can be used to apply styling when a component is in a given state.
7974
+ *
7975
+ * - `disabled`: The interaction is switched off.
7976
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
7755
7977
  */
7756
7978
  "qti-custom-interaction": Partial<
7757
7979
  QtiCustomInteractionProps & BaseProps<QtiCustomInteraction> & BaseEvents
@@ -7793,7 +8015,7 @@ export type CustomElements = {
7793
8015
  *
7794
8016
  * Custom selectors for styling elements within the component.
7795
8017
  *
7796
- * - `button`: The end-attempt button element.
8018
+ * - `button`: The end-attempt button element. No states: the element has no internals; `disabled` and `readonly` are read off the item and land on the button's `disabled` attribute.
7797
8019
  */
7798
8020
  "qti-end-attempt-interaction": Partial<
7799
8021
  QtiEndAttemptInteractionProps &
@@ -7874,7 +8096,14 @@ export type CustomElements = {
7874
8096
  * Methods that can be called to access component functionality.
7875
8097
  *
7876
8098
  * - `validate() => boolean`: undefined
7877
- * - `reportValidity() => boolean`: undefined
8099
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8100
+ *
8101
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8102
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8103
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8104
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8105
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8106
+ * below-minimum interaction cannot submit either way.
7878
8107
  * - `reset() => void`: undefined
7879
8108
  * - `formResetCallback() => void`: undefined
7880
8109
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -7884,6 +8113,14 @@ export type CustomElements = {
7884
8113
  * Custom selectors for styling elements within the component.
7885
8114
  *
7886
8115
  * - `textarea`: The textarea input element.
8116
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
8117
+ *
8118
+ * ## CSS States
8119
+ *
8120
+ * These can be used to apply styling when a component is in a given state.
8121
+ *
8122
+ * - `disabled`: The interaction is switched off.
8123
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
7887
8124
  */
7888
8125
  "qti-extended-text-interaction": Partial<
7889
8126
  QtiExtendedTextInteractionProps &
@@ -7999,16 +8236,31 @@ export type CustomElements = {
7999
8236
  * - `saveResponse(value: string | string[]) => void`: undefined
8000
8237
  * - `reset(save: boolean) => void`: undefined
8001
8238
  * - `validate() => boolean`: undefined
8002
- * - `reportValidity() => boolean`: undefined
8239
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8240
+ *
8241
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8242
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8243
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8244
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8245
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8246
+ * below-minimum interaction cannot submit either way.
8003
8247
  * - `formResetCallback() => void`: undefined
8004
8248
  *
8005
8249
  * ## CSS Parts
8006
8250
  *
8007
8251
  * Custom selectors for styling elements within the component.
8008
8252
  *
8009
- * - `drags`: Wrapper around the drag sources slot.
8010
- * - `drops`: Wrapper around the drop targets slot.
8253
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
8254
+ * - `drops`: Wrapper around the drop targets slot. The targets themselves are `qti-gap` elements in the light DOM; they carry their own states (`drop`, `filled`, `full`, …).
8011
8255
  * - `message`: Live validation message region (role="alert").
8256
+ *
8257
+ * ## CSS States
8258
+ *
8259
+ * These can be used to apply styling when a component is in a given state.
8260
+ *
8261
+ * - `disabled`: The interaction is switched off.
8262
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8263
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
8012
8264
  */
8013
8265
  "qti-gap-match-interaction": Partial<
8014
8266
  QtiGapMatchInteractionProps & BaseProps<QtiGapMatchInteraction> & BaseEvents
@@ -8021,6 +8273,8 @@ export type CustomElements = {
8021
8273
  *
8022
8274
  * Component attributes and properties that can be applied to the element or by using JavaScript.
8023
8275
  *
8276
+ * - `min-associations`/`minAssociations`: Fewest associations a valid response holds (QTI `min-associations`, default 0).
8277
+ * - `max-associations`/`maxAssociations`: Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit).
8024
8278
  * - `response`: undefined
8025
8279
  * - `response-identifier`/`responseIdentifier`: undefined
8026
8280
  * - `disabled`: undefined
@@ -8074,7 +8328,14 @@ export type CustomElements = {
8074
8328
  *
8075
8329
  * - `reset() => void`: undefined
8076
8330
  * - `validate() => boolean`: undefined
8077
- * - `reportValidity() => boolean`: undefined
8331
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8332
+ *
8333
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8334
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8335
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8336
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8337
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8338
+ * below-minimum interaction cannot submit either way.
8078
8339
  * - `formResetCallback() => void`: undefined
8079
8340
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
8080
8341
  *
@@ -8082,10 +8343,16 @@ export type CustomElements = {
8082
8343
  *
8083
8344
  * Custom selectors for styling elements within the component.
8084
8345
  *
8085
- * - `line`: Each line drawn by the candidate.
8086
- * - `correct-line`: Each line displayed as part of the correct response.
8087
- * - `point`: Each in-progress endpoint indicator.
8346
+ * - `line`: Each line drawn by the candidate. Tokens: `answer-key` on a line of the correct response, drawn by `qti-corrections` (was the part `correct-line`).
8347
+ * - `point`: The in-progress line from the first chosen hotspot to the pointer. Interaction: click (or Enter / Space on a focused point) a point to start a line, then another point to finish it. The chosen start point carries `:state(checked)`; clicking it again, Escape, or a click on the image away from the points cancels. A point that already takes its `match-max` lines carries `:state(full)` and cannot start or end another. Click a line (or focus it and press Enter, Space, Delete or Backspace) to remove it. The response is `pair`, undirected: "B A" is the existing "A B", and a point cannot be paired with itself.
8088
8348
  * - `message`: Live validation message region (role="alert").
8349
+ *
8350
+ * ## CSS States
8351
+ *
8352
+ * These can be used to apply styling when a component is in a given state.
8353
+ *
8354
+ * - `disabled`: The interaction is switched off.
8355
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8089
8356
  */
8090
8357
  "qti-graphic-associate-interaction": Partial<
8091
8358
  QtiGraphicAssociateInteractionProps &
@@ -8135,8 +8402,16 @@ export type CustomElements = {
8135
8402
  * Custom selectors for styling elements within the component.
8136
8403
  *
8137
8404
  * - `image`: Wrapper around the image slot.
8138
- * - `drags`: Wrapper around the drag sources slot.
8405
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
8139
8406
  * - `message`: Live validation message region (role="alert").
8407
+ *
8408
+ * ## CSS States
8409
+ *
8410
+ * These can be used to apply styling when a component is in a given state.
8411
+ *
8412
+ * - `disabled`: The interaction is switched off.
8413
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8414
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
8140
8415
  */
8141
8416
  "qti-graphic-gap-match-interaction": Partial<
8142
8417
  QtiGraphicGapMatchInteractionProps &
@@ -8204,7 +8479,14 @@ export type CustomElements = {
8204
8479
  * Methods that can be called to access component functionality.
8205
8480
  *
8206
8481
  * - `validate() => boolean`: undefined
8207
- * - `reportValidity() => boolean`: undefined
8482
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8483
+ *
8484
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8485
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8486
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8487
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8488
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8489
+ * below-minimum interaction cannot submit either way.
8208
8490
  * - `reset() => void`: undefined
8209
8491
  * - `formResetCallback() => void`: undefined
8210
8492
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -8214,6 +8496,13 @@ export type CustomElements = {
8214
8496
  * Custom selectors for styling elements within the component.
8215
8497
  *
8216
8498
  * - `message`: Live validation message region (role="alert").
8499
+ *
8500
+ * ## CSS States
8501
+ *
8502
+ * These can be used to apply styling when a component is in a given state.
8503
+ *
8504
+ * - `disabled`: The interaction is switched off.
8505
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8217
8506
  */
8218
8507
  "qti-graphic-order-interaction": Partial<
8219
8508
  QtiGraphicOrderInteractionProps &
@@ -8281,10 +8570,30 @@ export type CustomElements = {
8281
8570
  * Methods that can be called to access component functionality.
8282
8571
  *
8283
8572
  * - `validate() => boolean`: undefined
8284
- * - `reportValidity() => boolean`: undefined
8573
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8574
+ *
8575
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8576
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8577
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8578
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8579
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8580
+ * below-minimum interaction cannot submit either way.
8285
8581
  * - `reset() => void`: undefined
8286
8582
  * - `formResetCallback() => void`: undefined
8287
8583
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
8584
+ *
8585
+ * ## CSS Parts
8586
+ *
8587
+ * Custom selectors for styling elements within the component.
8588
+ *
8589
+ * - `message`: Live validation message region (role="alert").
8590
+ *
8591
+ * ## CSS States
8592
+ *
8593
+ * These can be used to apply styling when a component is in a given state.
8594
+ *
8595
+ * - `disabled`: The interaction is switched off.
8596
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8288
8597
  */
8289
8598
  "qti-hotspot-interaction": Partial<
8290
8599
  QtiHotspotInteractionProps & BaseProps<QtiHotspotInteraction> & BaseEvents
@@ -8350,7 +8659,14 @@ export type CustomElements = {
8350
8659
  * Methods that can be called to access component functionality.
8351
8660
  *
8352
8661
  * - `validate() => boolean`: undefined
8353
- * - `reportValidity() => boolean`: undefined
8662
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8663
+ *
8664
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8665
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8666
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8667
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8668
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8669
+ * below-minimum interaction cannot submit either way.
8354
8670
  * - `reset() => void`: undefined
8355
8671
  * - `formResetCallback() => void`: undefined
8356
8672
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -8360,6 +8676,13 @@ export type CustomElements = {
8360
8676
  * Custom selectors for styling elements within the component.
8361
8677
  *
8362
8678
  * - `message`: Live validation message region (role="alert").
8679
+ *
8680
+ * ## CSS States
8681
+ *
8682
+ * These can be used to apply styling when a component is in a given state.
8683
+ *
8684
+ * - `disabled`: The interaction is switched off.
8685
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8363
8686
  */
8364
8687
  "qti-hottext-interaction": Partial<
8365
8688
  QtiHottextInteractionProps & BaseProps<QtiHottextInteraction> & BaseEvents
@@ -8467,7 +8790,14 @@ export type CustomElements = {
8467
8790
  * box and ignores the transform. (Same trap the drag-drop clone code documents for a chip picked
8468
8791
  * up mid-animation.)
8469
8792
  * - `validate() => boolean`: undefined
8470
- * - `reportValidity() => boolean`: undefined
8793
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8794
+ *
8795
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8796
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8797
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8798
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8799
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8800
+ * below-minimum interaction cannot submit either way.
8471
8801
  * - `reset() => void`: undefined
8472
8802
  * - `menuAutoSizePropertyTarget() => HTMLElement | null`: Where the measured width is written. Inside the shadow root — see the header.
8473
8803
  * - `withMenuMeasurable(measure: () => T) => T`: Make the rows measurable, run `measure`, and put everything back.
@@ -8489,11 +8819,20 @@ export type CustomElements = {
8489
8819
  *
8490
8820
  * - `trigger`: The dropdown trigger button.
8491
8821
  * - `value`: The currently displayed value inside the trigger.
8492
- * - `dropdown-icon`: The chevron icon inside the trigger; also carries `dropdown-icon-open` when open.
8822
+ * - `icon`: The chevron inside the trigger (was `dropdown-icon`). Tokens: `open` while the menu is open (was `dropdown-icon-open`).
8493
8823
  * - `menu`: The popover element containing the option list.
8494
- * - `option`: Each option button; also carries `option-prompt`, `option-selected` and `option-clear` (the prompt row as a clear button, see `data-clear-label`) variants.
8495
- * - `option-content`: The content wrapper inside each option.
8824
+ * - `option`: The prompt row in the menu: the way back to "nothing chosen". Tokens: `prompt`; `selected` while nothing is chosen; `clear` when the row is the clear button (see `data-clear-label`). Were `option-prompt`, `option-selected`, `option-clear`. The other rows are `qti-inline-choice` elements and carry their own parts and states.
8825
+ * - `option-content`: The content wrapper inside the prompt row.
8496
8826
  * - `clear-icon`: The x glyph inside the clear row.
8827
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
8828
+ *
8829
+ * ## CSS States
8830
+ *
8831
+ * These can be used to apply styling when a component is in a given state.
8832
+ *
8833
+ * - `disabled`: The interaction is switched off.
8834
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8835
+ * - `open`: The menu is open. The chosen option carries `checked`, on the `qti-inline-choice`.
8497
8836
  */
8498
8837
  "qti-inline-choice-interaction": Partial<
8499
8838
  QtiInlineChoiceInteractionProps &
@@ -8622,7 +8961,14 @@ export type CustomElements = {
8622
8961
  * - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
8623
8962
  * - `saveResponse(value: string | string[]) => void`: undefined
8624
8963
  * - `reset(save: boolean) => void`: undefined
8625
- * - `reportValidity() => boolean`: undefined
8964
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
8965
+ *
8966
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
8967
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
8968
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
8969
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
8970
+ * and comes back if it is lost again. The validity itself is always set: a form with a
8971
+ * below-minimum interaction cannot submit either way.
8626
8972
  * - `formResetCallback() => void`: undefined
8627
8973
  *
8628
8974
  * ## CSS Parts
@@ -8631,15 +8977,23 @@ export type CustomElements = {
8631
8977
  *
8632
8978
  * - `grid`: The tabular grid container.
8633
8979
  * - `corner`: The top-left corner cell of the grid; shows `data-first-column-header`.
8634
- * - `cols-wrap`: Wrapper row for the column headers.
8635
- * - `c-header`: The column header slot wrapper.
8636
- * - `rows-wrap`: Wrapper column for the row headers.
8637
- * - `r-header`: The row header slot wrapper.
8638
- * - `checkbox-grid`: The interactive cell grid area.
8639
- * - `input-cell`: Each cell's label element.
8640
- * - `control`: The visible checkbox/radio box (tabular mode). Also carries the variant tokens `radio` | `checkbox`, `checked`, and `correct` | `incorrect` — e.g. `::part(control radio checked correct)`. These mirror the custom-state vocabulary; the cells are plain spans in the shadow root, so they cannot carry real `:state()`.
8641
- * - `control-mark`: The inner mark element; carries the same variant tokens as `control`.
8980
+ * - `columns`: Wrapper row for the column headers (was `cols-wrap`).
8981
+ * - `column-header`: The column header slot (was `c-header`).
8982
+ * - `rows`: Wrapper column for the row headers (was `rows-wrap`).
8983
+ * - `row-header`: The row header slot (was `r-header`).
8984
+ * - `cells`: The interactive cell grid area (was `checkbox-grid`).
8985
+ * - `cell`: Each cell's label element (was `input-cell`).
8986
+ * - `control`: The visible checkbox/radio box (tabular mode). Tokens: `radio` | `checkbox`, `checked`, `candidate-correct` | `candidate-incorrect` — e.g. `::part(control radio checked candidate-correct)`. These mirror the custom-state vocabulary; the cells are plain spans in the shadow root, so they cannot carry real `:state()`.
8987
+ * - `control-mark`: The inner mark element; carries the same tokens as `control`.
8642
8988
  * - `message`: Live validation message region (role="alert").
8989
+ *
8990
+ * ## CSS States
8991
+ *
8992
+ * These can be used to apply styling when a component is in a given state.
8993
+ *
8994
+ * - `disabled`: The interaction is switched off.
8995
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8996
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
8643
8997
  */
8644
8998
  "qti-match-interaction": Partial<
8645
8999
  QtiMatchInteractionProps & BaseProps<QtiMatchInteraction> & BaseEvents
@@ -8696,7 +9050,7 @@ export type CustomElements = {
8696
9050
  * Areas where markup can be added to the component.
8697
9051
  *
8698
9052
  * - `prompt`: The prompt shown above the media element.
8699
- * - `(default)`: Default slot for the embedded media element.
9053
+ * - `(default)`: Default slot for the embedded media element. No parts: the media element is slotted light DOM and is styled directly.
8700
9054
  *
8701
9055
  * ## Methods
8702
9056
  *
@@ -8704,9 +9058,23 @@ export type CustomElements = {
8704
9058
  *
8705
9059
  * - `reset() => void`: undefined
8706
9060
  * - `validate() => boolean`: undefined
8707
- * - `reportValidity() => boolean`: undefined
9061
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9062
+ *
9063
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9064
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9065
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9066
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9067
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9068
+ * below-minimum interaction cannot submit either way.
8708
9069
  * - `formResetCallback() => void`: undefined
8709
9070
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
9071
+ *
9072
+ * ## CSS States
9073
+ *
9074
+ * These can be used to apply styling when a component is in a given state.
9075
+ *
9076
+ * - `disabled`: The interaction is switched off.
9077
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8710
9078
  */
8711
9079
  "qti-media-interaction": Partial<
8712
9080
  QtiMediaInteractionProps & BaseProps<QtiMediaInteraction> & BaseEvents
@@ -8756,18 +9124,30 @@ export type CustomElements = {
8756
9124
  *
8757
9125
  * Custom selectors for styling elements within the component.
8758
9126
  *
8759
- * - `container`: The outer container wrapping drags and drops.
8760
- * - `drags`: Wrapper around the drag sources slot.
9127
+ * - `container`: The outer container wrapping the bank and the drops.
9128
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
8761
9129
  * - `drops`: The drop-target region.
8762
- * - `drop`: Each individual drop target.
8763
- * - `drag`: A choice that has been placed into a drop target.
9130
+ * - `drop`: Each individual drop target. Tokens: `filled`, `full`, `drag-active`, `drag-over` (a plain div cannot carry `:state()`, so the state names are part tokens here).
9131
+ * - `chip`: A choice placed into a drop target (was `drag`).
9132
+ * - `message`: Live validation message region (role="alert").
9133
+ *
9134
+ * ## CSS States
9135
+ *
9136
+ * These can be used to apply styling when a component is in a given state.
9137
+ *
9138
+ * - `disabled`: The interaction is switched off.
9139
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
9140
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
8764
9141
  */
8765
9142
  "qti-order-interaction": Partial<
8766
9143
  QtiOrderInteractionProps & BaseProps<QtiOrderInteraction> & BaseEvents
8767
9144
  >;
8768
9145
 
8769
9146
  /**
9147
+ * Portable custom interaction (PCI): hosts a third-party interaction module.
8770
9148
  *
9149
+ * No parts: the PCI renders its own markup into the default slot (or into an iframe) and the
9150
+ * element adds nothing of its own to theme.
8771
9151
  *
8772
9152
  * ## Attributes & Properties
8773
9153
  *
@@ -8837,10 +9217,24 @@ export type CustomElements = {
8837
9217
  * - `disable() => void`: Method to disable the PCI for review mode
8838
9218
  * This can be used when showing the correct response
8839
9219
  * - `enable() => void`: Method to enable the PCI for interactive mode
8840
- * - `reportValidity() => boolean`: undefined
9220
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9221
+ *
9222
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9223
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9224
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9225
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9226
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9227
+ * below-minimum interaction cannot submit either way.
8841
9228
  * - `reset() => void`: undefined
8842
9229
  * - `formResetCallback() => void`: undefined
8843
9230
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
9231
+ *
9232
+ * ## CSS States
9233
+ *
9234
+ * These can be used to apply styling when a component is in a given state.
9235
+ *
9236
+ * - `disabled`: The interaction is switched off.
9237
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8844
9238
  */
8845
9239
  "qti-portable-custom-interaction": Partial<
8846
9240
  QtiPortableCustomInteractionProps &
@@ -8931,10 +9325,24 @@ export type CustomElements = {
8931
9325
  * - `disable() => void`: Method to disable the PCI for review mode
8932
9326
  * This can be used when showing the correct response
8933
9327
  * - `enable() => void`: Method to enable the PCI for interactive mode
8934
- * - `reportValidity() => boolean`: undefined
9328
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9329
+ *
9330
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9331
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9332
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9333
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9334
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9335
+ * below-minimum interaction cannot submit either way.
8935
9336
  * - `reset() => void`: undefined
8936
9337
  * - `formResetCallback() => void`: undefined
8937
9338
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
9339
+ *
9340
+ * ## CSS States
9341
+ *
9342
+ * These can be used to apply styling when a component is in a given state.
9343
+ *
9344
+ * - `disabled`: The interaction is switched off.
9345
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
8938
9346
  */
8939
9347
  "qti-portable-custom-interaction-test": Partial<
8940
9348
  QtiPortableCustomInteractionTestProps &
@@ -8943,43 +9351,127 @@ export type CustomElements = {
8943
9351
  >;
8944
9352
 
8945
9353
  /**
8946
- * Position-object interaction: candidates place draggable objects onto a stage image.
8947
- *
8948
- * ## Slots
8949
- *
8950
- * Areas where markup can be added to the component.
9354
+ * Position object interaction (QTI 3, 3.2.16): the candidate places copies of an image (the
9355
+ * object) on another image (the stage, the parent `qti-position-object-stage`). The response is a
9356
+ * list of `point`s, each the object's centre point in the stage image's own coordinates (its
9357
+ * `width`/`height` attributes, else its natural size), whatever size the stage is shown at.
8951
9358
  *
8952
- * - `(default)`: Default slot for the object choices and stage.
8953
- */
8954
- "qti-position-object-interaction": Partial<
8955
- QtiPositionObjectInteractionProps &
8956
- BaseProps<QtiPositionObjectInteraction> &
8957
- BaseEvents
8958
- >;
8959
-
8960
- /**
9359
+ * Placing:
9360
+ * - drag the object onto the stage, or click it and then click the stage;
9361
+ * - keyboard: focus the object and press Enter or Space to place a copy at the stage's centre;
9362
+ * on a placed copy, the arrow keys move it (Shift: ten times as far) and Delete or Backspace
9363
+ * removes it;
9364
+ * - drag a placed copy to move it, or off the stage to remove it.
8961
9365
  *
9366
+ * At `max-choices` (default 1; 0 = no limit) no further copy is placed and the host carries
9367
+ * `:state(used)`. Area-mapping areas are never shown, only the candidate's positions.
8962
9368
  *
8963
9369
  * ## Attributes & Properties
8964
9370
  *
8965
9371
  * Component attributes and properties that can be applied to the element or by using JavaScript.
8966
9372
  *
8967
- * - `choiceOrdering`: undefined (property only)
8968
- * - `startX`: undefined (property only)
8969
- * - `startY`: undefined (property only)
8970
- * - `dragElement`: undefined (property only)
9373
+ * - `max-choices`/`maxChoices`: Most positions; 0 = no limit.
9374
+ * - `min-choices`/`minChoices`: Fewest positions for a valid response.
9375
+ * - `center-point`/`centerPoint`: The object's centre point, `x y` (or `x,y`) from its top-left, in the object's own pixels. Default: the centre of its box.
9376
+ * - `response`: undefined
9377
+ * - `response-identifier`/`responseIdentifier`: undefined
9378
+ * - `disabled`: undefined
9379
+ * - `readonly`: undefined
9380
+ * - `name`: undefined
9381
+ * - `configContext`: Delivery configuration, from the nearest provider — `qti-test` or `qti-item`.
8971
9382
  *
8972
- * ## Methods
9383
+ * **Public so it can be assigned directly, which is the development-time route.** An interaction
9384
+ * has to work standalone, and in a story or a spec there is usually no provider above it — so
9385
+ * setting the field is all that is needed:
8973
9386
  *
8974
- * Methods that can be called to access component functionality.
9387
+ * orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
8975
9388
  *
8976
- * - `dragElementHandler(event: MouseEvent) => void`: undefined
8977
- * - `removeMoveListener() => void`: undefined
8978
- */
8979
- "qti-position-object-stage": Partial<
8980
- QtiPositionObjectStageProps & BaseProps<QtiPositionObjectStage> & BaseEvents
8981
- >;
8982
-
9389
+ * With no provider, nothing ever overwrites it. That is the whole contract, and its limit: where a
9390
+ * provider DOES exist it re-emits on its next update and wins, because `@consume` writes this same
9391
+ * field. There is no merging — set the value on the provider in that case.
9392
+ *
9393
+ * In a lit-html template, bind it as a property rather than assigning after the fact:
9394
+ *
9395
+ * html`<qti-order-interaction .configContext=${{ allowReorder: false }}>…`
9396
+ *
9397
+ * The binding is committed on the detached template clone, before the fragment is inserted, so it
9398
+ * is in place by `connectedCallback` — which matters for anything that reads config on connect.
9399
+ *
9400
+ * It was `protected`, which fooled nobody: every caller reached it anyway through an
9401
+ * `as any` / `as { configContext?: … }` cast. Public says what was already true and removes the
9402
+ * casts, rather than pretending at an encapsulation the type system was the only thing enforcing. (property only)
9403
+ * - `internals`: undefined (property only) (readonly)
9404
+ * - `isInline`: undefined (property only) (readonly)
9405
+ * - `responseVariable`: undefined (property only) (readonly)
9406
+ * - `value`: undefined (property only)
9407
+ *
9408
+ * ## Events
9409
+ *
9410
+ * Events that will be emitted by the component.
9411
+ *
9412
+ * - `qti-register-interaction`: undefined
9413
+ * - `qti-interaction-response`: undefined
9414
+ *
9415
+ * ## Slots
9416
+ *
9417
+ * Areas where markup can be added to the component.
9418
+ *
9419
+ * - `(default)`: The object image (`img` or `picture`).
9420
+ *
9421
+ * ## Methods
9422
+ *
9423
+ * Methods that can be called to access component functionality.
9424
+ *
9425
+ * - `validate() => boolean`: undefined
9426
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9427
+ *
9428
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9429
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9430
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9431
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9432
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9433
+ * below-minimum interaction cannot submit either way.
9434
+ * - `reset() => void`: undefined
9435
+ * - `formResetCallback() => void`: undefined
9436
+ * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
9437
+ *
9438
+ * ## CSS Parts
9439
+ *
9440
+ * Custom selectors for styling elements within the component.
9441
+ *
9442
+ * - `object`: The object to place, beside the stage. Tokens: `selected` while a click has picked it up (the next click on the stage places it); `used` at `max-choices`.
9443
+ * - `point`: Each placed copy on the stage.
9444
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
9445
+ *
9446
+ * ## CSS States
9447
+ *
9448
+ * These can be used to apply styling when a component is in a given state.
9449
+ *
9450
+ * - `used`: Every allowed copy is placed (`max-choices` reached).
9451
+ * - `disabled`: The interaction is switched off.
9452
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
9453
+ */
9454
+ "qti-position-object-interaction": Partial<
9455
+ QtiPositionObjectInteractionProps &
9456
+ BaseProps<QtiPositionObjectInteraction> &
9457
+ BaseEvents
9458
+ >;
9459
+
9460
+ /**
9461
+ * The stage of one or more position object interactions: the image the objects are placed on, and
9462
+ * the containing block of their placed copies. Layout only: each `qti-position-object-interaction`
9463
+ * inside it handles its own input and response, measured against this stage's image.
9464
+ *
9465
+ * ## Slots
9466
+ *
9467
+ * Areas where markup can be added to the component.
9468
+ *
9469
+ * - `(default)`: The stage image (`img` or `picture`), then the interactions.
9470
+ */
9471
+ "qti-position-object-stage": Partial<
9472
+ QtiPositionObjectStageProps & BaseProps<QtiPositionObjectStage> & BaseEvents
9473
+ >;
9474
+
8983
9475
  /**
8984
9476
  * Select-point interaction: candidates place points onto a background image.
8985
9477
  *
@@ -9045,7 +9537,14 @@ export type CustomElements = {
9045
9537
  * Methods that can be called to access component functionality.
9046
9538
  *
9047
9539
  * - `validate() => boolean`: undefined
9048
- * - `reportValidity() => boolean`: undefined
9540
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9541
+ *
9542
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9543
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9544
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9545
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9546
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9547
+ * below-minimum interaction cannot submit either way.
9049
9548
  * - `reset() => void`: undefined
9050
9549
  * - `formResetCallback() => void`: undefined
9051
9550
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -9063,7 +9562,15 @@ export type CustomElements = {
9063
9562
  *
9064
9563
  * Custom selectors for styling elements within the component.
9065
9564
  *
9066
- * - `point`: Each selected point marker.
9565
+ * - `point`: Each selected point marker. Tokens: `candidate-correct` | `candidate-incorrect` when `qti-corrections` has marked it.
9566
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
9567
+ *
9568
+ * ## CSS States
9569
+ *
9570
+ * These can be used to apply styling when a component is in a given state.
9571
+ *
9572
+ * - `disabled`: The interaction is switched off.
9573
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
9067
9574
  */
9068
9575
  "qti-select-point-interaction": Partial<
9069
9576
  QtiSelectPointInteractionProps &
@@ -9133,7 +9640,14 @@ export type CustomElements = {
9133
9640
  * Methods that can be called to access component functionality.
9134
9641
  *
9135
9642
  * - `validate() => boolean`: undefined
9136
- * - `reportValidity() => boolean`: undefined
9643
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9644
+ *
9645
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9646
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9647
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9648
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9649
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9650
+ * below-minimum interaction cannot submit either way.
9137
9651
  * - `reset() => void`: undefined
9138
9652
  * - `formResetCallback() => void`: undefined
9139
9653
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -9146,9 +9660,15 @@ export type CustomElements = {
9146
9660
  * - `bounds`: The min/max bounds label wrapper.
9147
9661
  * - `ticks`: The tick marks along the rail.
9148
9662
  * - `rail`: The rail element the knob slides along.
9149
- * - `knob`: The draggable knob.
9150
- * - `value`: The current value display (used twice in the layout).
9151
- * - `knob-correct`: Ghost knob shown at the correct response position.
9663
+ * - `knob`: The draggable knob. Tokens: `answer-key` on the ghost knob `qti-corrections` draws at the correct response (was the part `knob-correct`).
9664
+ * - `value`: The current value display.
9665
+ *
9666
+ * ## CSS States
9667
+ *
9668
+ * These can be used to apply styling when a component is in a given state.
9669
+ *
9670
+ * - `disabled`: The interaction is switched off.
9671
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
9152
9672
  */
9153
9673
  "qti-slider-interaction": Partial<
9154
9674
  QtiSliderInteractionProps & BaseProps<QtiSliderInteraction> & BaseEvents
@@ -9213,7 +9733,14 @@ export type CustomElements = {
9213
9733
  * Methods that can be called to access component functionality.
9214
9734
  *
9215
9735
  * - `validate() => boolean`: undefined
9216
- * - `reportValidity() => boolean`: undefined
9736
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9737
+ *
9738
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9739
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9740
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9741
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9742
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9743
+ * below-minimum interaction cannot submit either way.
9217
9744
  * - `reset() => void`: undefined
9218
9745
  * - `formResetCallback() => void`: undefined
9219
9746
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -9222,9 +9749,16 @@ export type CustomElements = {
9222
9749
  *
9223
9750
  * Custom selectors for styling elements within the component.
9224
9751
  *
9225
- * - `answer`: The answer-key line, revealed above the field when the correct response is shown.
9752
+ * - `answer-key`: The correct answer, revealed above the field when the correct response is shown (was `answer`).
9226
9753
  * - `input`: The text input element.
9227
9754
  * - `message`: The validation message, hidden until `reportValidity` shows it.
9755
+ *
9756
+ * ## CSS States
9757
+ *
9758
+ * These can be used to apply styling when a component is in a given state.
9759
+ *
9760
+ * - `disabled`: The interaction is switched off.
9761
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
9228
9762
  */
9229
9763
  "qti-text-entry-interaction": Partial<
9230
9764
  QtiTextEntryInteractionProps &
@@ -9290,9 +9824,29 @@ export type CustomElements = {
9290
9824
  *
9291
9825
  * - `reset() => void`: undefined
9292
9826
  * - `validate() => boolean`: undefined
9293
- * - `reportValidity() => boolean`: undefined
9827
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
9828
+ *
9829
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
9830
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
9831
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
9832
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
9833
+ * and comes back if it is lost again. The validity itself is always set: a form with a
9834
+ * below-minimum interaction cannot submit either way.
9294
9835
  * - `formResetCallback() => void`: undefined
9295
9836
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
9837
+ *
9838
+ * ## CSS Parts
9839
+ *
9840
+ * Custom selectors for styling elements within the component.
9841
+ *
9842
+ * - `input`: The file input element.
9843
+ *
9844
+ * ## CSS States
9845
+ *
9846
+ * These can be used to apply styling when a component is in a given state.
9847
+ *
9848
+ * - `disabled`: The interaction is switched off.
9849
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
9296
9850
  */
9297
9851
  "qti-upload-interaction": Partial<
9298
9852
  QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents
@@ -9528,6 +10082,12 @@ export type CustomElements = {
9528
10082
  * - `identifier`: undefined
9529
10083
  * - `showStatus`: undefined (property only)
9530
10084
  *
10085
+ * ## Slots
10086
+ *
10087
+ * Areas where markup can be added to the component.
10088
+ *
10089
+ * - `(default)`: The feedback content.
10090
+ *
9531
10091
  * ## Methods
9532
10092
  *
9533
10093
  * Methods that can be called to access component functionality.
@@ -9537,6 +10097,12 @@ export type CustomElements = {
9537
10097
  * - `openFeedback() => void`: undefined
9538
10098
  * - `closeFeedback() => void`: undefined
9539
10099
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
10100
+ *
10101
+ * ## CSS Parts
10102
+ *
10103
+ * Custom selectors for styling elements within the component.
10104
+ *
10105
+ * - `feedback`: The feedback box (the dialog).
9540
10106
  */
9541
10107
  "qti-test-feedback": Partial<
9542
10108
  QtiTestFeedbackProps & BaseProps<QtiTestFeedback> & BaseEvents
@@ -9696,14 +10262,14 @@ export type CustomElements = {
9696
10262
  * Events that will be emitted by the component.
9697
10263
  *
9698
10264
  * - `qti-test-connected`: undefined
9699
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
9700
- * - `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.
10265
+ * - `qc-test-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
10266
+ * - `qti-test-context-updated`: Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
9701
10267
  */
9702
10268
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9703
10269
 
9704
10270
  /**
9705
10271
  * A button that ends the attempt of an item: its response is processed, `numAttempts` goes up and
9706
- * feedback is shown as the item's session control allows. It dispatches `cito-test-end-attempt`,
10272
+ * feedback is shown as the item's session control allows. It dispatches `qc-test-end-attempt`,
9707
10273
  * which `<test-navigation>` handles.
9708
10274
  *
9709
10275
  * Put it inside `<test-navigation>`, either in the toolbar, where it ends the attempt of the item on
@@ -9909,7 +10475,7 @@ export type CustomElements = {
9909
10475
 
9910
10476
  /**
9911
10477
  * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
9912
- * on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
10478
+ * on every `qc-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
9913
10479
  *
9914
10480
  * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
9915
10481
  * by it. The element only lays out the tree; give it a font, colour and height from the page.
@@ -9977,7 +10543,7 @@ export type CustomElements = {
9977
10543
 
9978
10544
  /**
9979
10545
  * Scores the test: on click the test resets its outcomes to their declared defaults, runs its
9980
- * outcome processing and dispatches `cito-test-submitted`, after which the host reads the outcomes.
10546
+ * outcome processing and dispatches `qc-test-submitted`, after which the host reads the outcomes.
9981
10547
  * The host decides where it sits, for example on the last item or in a review view.
9982
10548
  */
9983
10549
  "test-submit": Partial<TestSubmitProps & BaseProps<TestSubmit> & BaseEvents>;
@@ -10210,7 +10776,9 @@ export type CustomElements = {
10210
10776
 
10211
10777
  /**
10212
10778
  * Pick button — toggles pick mode on the controller: every reading element is highlighted and
10213
- * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
10779
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`, and,
10780
+ * being the toggle that switched it on, as `:state(selected)`, painted through
10781
+ * `--button-selected-background-color` / `--button-selected-color`.
10214
10782
  *
10215
10783
  * ## Attributes & Properties
10216
10784
  *
@@ -10232,6 +10800,7 @@ export type CustomElements = {
10232
10800
  *
10233
10801
  * - `idle`: / playing / paused
10234
10802
  * - `picking`: undefined
10803
+ * - `selected`: This toggle is on: pick mode is active
10235
10804
  */
10236
10805
  "test-tts-pick": Partial<
10237
10806
  TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
@@ -12256,7 +12825,7 @@ export type CustomElements = {
12256
12825
  * - `showCorrectResponse(show: boolean) => void`: undefined
12257
12826
  * - `showCandidateCorrection(show: boolean) => void`: undefined
12258
12827
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
12259
- * backend, and sends the outcomes back in `cito-item-set-outcomes`, which the item applies in one
12828
+ * backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
12260
12829
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
12261
12830
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
12262
12831
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -12351,8 +12920,8 @@ export type CustomElements = {
12351
12920
  * Events that will be emitted by the component.
12352
12921
  *
12353
12922
  * - `qti-test-connected`: undefined
12354
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
12355
- * - `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.
12923
+ * - `qc-test-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
12924
+ * - `qti-test-context-updated`: Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
12356
12925
  *
12357
12926
  * ## Methods
12358
12927
  *
@@ -12570,7 +13139,7 @@ export type CustomElementsSolidJs = {
12570
13139
  * Methods that can be called to access component functionality.
12571
13140
  *
12572
13141
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
12573
- * backend, and sends the outcomes back in `cito-item-set-outcomes`, which the item applies in one
13142
+ * backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
12574
13143
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
12575
13144
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
12576
13145
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -12717,7 +13286,7 @@ export type CustomElementsSolidJs = {
12717
13286
  >;
12718
13287
 
12719
13288
  /**
12720
- *
13289
+ * Block feedback: shown or hidden by the outcome it is bound to.
12721
13290
  *
12722
13291
  * ## Attributes & Properties
12723
13292
  *
@@ -12728,11 +13297,23 @@ export type CustomElementsSolidJs = {
12728
13297
  * - `identifier`: undefined
12729
13298
  * - `showStatus`: undefined (property only)
12730
13299
  *
13300
+ * ## Slots
13301
+ *
13302
+ * Areas where markup can be added to the component.
13303
+ *
13304
+ * - `(default)`: The feedback content.
13305
+ *
12731
13306
  * ## Methods
12732
13307
  *
12733
13308
  * Methods that can be called to access component functionality.
12734
13309
  *
12735
13310
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
13311
+ *
13312
+ * ## CSS Parts
13313
+ *
13314
+ * Custom selectors for styling elements within the component.
13315
+ *
13316
+ * - `feedback`: The feedback box.
12736
13317
  */
12737
13318
  "qti-feedback-block": Partial<
12738
13319
  QtiFeedbackBlockProps &
@@ -12742,7 +13323,7 @@ export type CustomElementsSolidJs = {
12742
13323
  >;
12743
13324
 
12744
13325
  /**
12745
- *
13326
+ * Inline feedback: shown or hidden by the outcome it is bound to.
12746
13327
  *
12747
13328
  * ## Attributes & Properties
12748
13329
  *
@@ -12753,11 +13334,23 @@ export type CustomElementsSolidJs = {
12753
13334
  * - `identifier`: undefined
12754
13335
  * - `showStatus`: undefined (property only)
12755
13336
  *
13337
+ * ## Slots
13338
+ *
13339
+ * Areas where markup can be added to the component.
13340
+ *
13341
+ * - `(default)`: The feedback content.
13342
+ *
12756
13343
  * ## Methods
12757
13344
  *
12758
13345
  * Methods that can be called to access component functionality.
12759
13346
  *
12760
13347
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
13348
+ *
13349
+ * ## CSS Parts
13350
+ *
13351
+ * Custom selectors for styling elements within the component.
13352
+ *
13353
+ * - `feedback`: The feedback box.
12761
13354
  */
12762
13355
  "qti-feedback-inline": Partial<
12763
13356
  QtiFeedbackInlineProps &
@@ -12780,7 +13373,7 @@ export type CustomElementsSolidJs = {
12780
13373
  *
12781
13374
  * Custom selectors for styling elements within the component.
12782
13375
  *
12783
- * - `qti-rubric-block`: the qti rubric block part
13376
+ * - `rubrics`: The rubric-block slot (was `qti-rubric-blocks`).
12784
13377
  */
12785
13378
  "qti-item-body": Partial<
12786
13379
  QtiItemBodyProps &
@@ -12790,7 +13383,7 @@ export type CustomElementsSolidJs = {
12790
13383
  >;
12791
13384
 
12792
13385
  /**
12793
- *
13386
+ * Modal feedback: a dialog opened by the outcome it is bound to.
12794
13387
  *
12795
13388
  * ## Attributes & Properties
12796
13389
  *
@@ -12801,6 +13394,12 @@ export type CustomElementsSolidJs = {
12801
13394
  * - `identifier`: undefined
12802
13395
  * - `showStatus`: undefined (property only)
12803
13396
  *
13397
+ * ## Slots
13398
+ *
13399
+ * Areas where markup can be added to the component.
13400
+ *
13401
+ * - `(default)`: The feedback content.
13402
+ *
12804
13403
  * ## Methods
12805
13404
  *
12806
13405
  * Methods that can be called to access component functionality.
@@ -12808,6 +13407,12 @@ export type CustomElementsSolidJs = {
12808
13407
  * - `openFeedback() => void`: undefined
12809
13408
  * - `closeFeedback() => void`: undefined
12810
13409
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
13410
+ *
13411
+ * ## CSS Parts
13412
+ *
13413
+ * Custom selectors for styling elements within the component.
13414
+ *
13415
+ * - `feedback`: The feedback box (the dialog).
12811
13416
  */
12812
13417
  "qti-modal-feedback": Partial<
12813
13418
  QtiModalFeedbackProps &
@@ -12877,7 +13482,7 @@ export type CustomElementsSolidJs = {
12877
13482
 
12878
13483
  /**
12879
13484
  * Response processing as the item's own backend: it reads the item context, runs its rules once and
12880
- * sends the outcomes and the attempt count back in one `cito-item-set-outcomes`. The item applies
13485
+ * sends the outcomes and the attempt count back in one `qc-item-set-outcomes`. The item applies
12881
13486
  * them; a host that scores elsewhere sends the same event instead.
12882
13487
  *
12883
13488
  * ## Methods
@@ -12886,7 +13491,7 @@ export type CustomElementsSolidJs = {
12886
13491
  *
12887
13492
  * - `processResponse({ numAttempts }: { numAttempts: number }) => void`: Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
12888
13493
  * non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
12889
- * every outcome and `numAttempts` in one `cito-item-set-outcomes`. The item applies them and publishes, which gives this element a
13494
+ * every outcome and `numAttempts` in one `qc-item-set-outcomes`. The item applies them and publishes, which gives this element a
12890
13495
  * fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
12891
13496
  * run's writes stay in the copy until the item's next update.
12892
13497
  */
@@ -13163,12 +13768,13 @@ export type CustomElementsSolidJs = {
13163
13768
  >;
13164
13769
 
13165
13770
  /**
13166
- *
13771
+ * A clickable area on the image of `qti-hotspot-interaction` or `qti-graphic-order-interaction`.
13167
13772
  *
13168
13773
  * ## Attributes & Properties
13169
13774
  *
13170
13775
  * Component attributes and properties that can be applied to the element or by using JavaScript.
13171
13776
  *
13777
+ * - `data-order`/`undefined`: Graphic order: the 1-based position the candidate gave this choice. A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major.
13172
13778
  * - `aria-ordervalue`/`order`: undefined
13173
13779
  * - `identifier`: undefined
13174
13780
  * - `tabindex`/`tabIndex`: undefined
@@ -13188,6 +13794,14 @@ export type CustomElementsSolidJs = {
13188
13794
  *
13189
13795
  * - `handleDisabledChange(_oldValue: boolean, disabled: boolean) => void`: undefined
13190
13796
  * - `handleReadonlyChange(_oldValue: boolean, readonly: boolean) => void`: undefined
13797
+ *
13798
+ * ## CSS States
13799
+ *
13800
+ * These can be used to apply styling when a component is in a given state.
13801
+ *
13802
+ * - `checked`: Chosen by the candidate.
13803
+ * - `disabled`: Switched off by the interaction.
13804
+ * - `readonly`: Frozen by the interaction.
13191
13805
  */
13192
13806
  "qti-hotspot-choice": Partial<
13193
13807
  QtiHotspotChoiceProps &
@@ -13412,11 +14026,19 @@ export type CustomElementsSolidJs = {
13412
14026
  *
13413
14027
  * Custom selectors for styling elements within the component.
13414
14028
  *
13415
- * - `drags`: Wrapper around the associable choice slot.
14029
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
13416
14030
  * - `drops`: The container holding all drop targets.
13417
- * - `drop-row`: Container for one left/right drop pair.
13418
- * - `drop`: Each individual drop target.
14031
+ * - `row`: One left/right drop pair (was `drop-row`).
14032
+ * - `drop`: Each individual drop target. Tokens: `filled`, `full`, `drag-active`, `drag-over` (a plain div cannot carry `:state()`, so the state names are part tokens here).
13419
14033
  * - `message`: Live validation message region (role="alert").
14034
+ *
14035
+ * ## CSS States
14036
+ *
14037
+ * These can be used to apply styling when a component is in a given state.
14038
+ *
14039
+ * - `disabled`: The interaction is switched off.
14040
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14041
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
13420
14042
  */
13421
14043
  "qti-associate-interaction": Partial<
13422
14044
  QtiAssociateInteractionProps &
@@ -13488,7 +14110,14 @@ export type CustomElementsSolidJs = {
13488
14110
  * Methods that can be called to access component functionality.
13489
14111
  *
13490
14112
  * - `validate() => boolean`: undefined
13491
- * - `reportValidity() => boolean`: undefined
14113
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14114
+ *
14115
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14116
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14117
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14118
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14119
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14120
+ * below-minimum interaction cannot submit either way.
13492
14121
  * - `reset() => void`: undefined
13493
14122
  * - `formResetCallback() => void`: undefined
13494
14123
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -13498,8 +14127,15 @@ export type CustomElementsSolidJs = {
13498
14127
  * Custom selectors for styling elements within the component.
13499
14128
  *
13500
14129
  * - `prompt`: Wrapper around the prompt slot.
13501
- * - `slot`: Wrapper around the default slot containing the choices.
14130
+ * - `choices`: The slot holding the choices (was `slot`).
13502
14131
  * - `message`: Live validation message region (role="alert").
14132
+ *
14133
+ * ## CSS States
14134
+ *
14135
+ * These can be used to apply styling when a component is in a given state.
14136
+ *
14137
+ * - `disabled`: The interaction is switched off.
14138
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
13503
14139
  */
13504
14140
  "qti-choice-interaction": Partial<
13505
14141
  QtiChoiceInteractionProps &
@@ -13577,10 +14213,24 @@ export type CustomElementsSolidJs = {
13577
14213
  * 5. Sets up postMessage listeners for CES API calls
13578
14214
  * - `handlePostMessage(event: MessageEvent) => void`: undefined
13579
14215
  * - `validate() => boolean`: undefined
13580
- * - `reportValidity() => boolean`: undefined
14216
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14217
+ *
14218
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14219
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14220
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14221
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14222
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14223
+ * below-minimum interaction cannot submit either way.
13581
14224
  * - `reset() => void`: undefined
13582
14225
  * - `formResetCallback() => void`: undefined
13583
14226
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
14227
+ *
14228
+ * ## CSS States
14229
+ *
14230
+ * These can be used to apply styling when a component is in a given state.
14231
+ *
14232
+ * - `disabled`: The interaction is switched off.
14233
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
13584
14234
  */
13585
14235
  "qti-custom-interaction": Partial<
13586
14236
  QtiCustomInteractionProps &
@@ -13625,7 +14275,7 @@ export type CustomElementsSolidJs = {
13625
14275
  *
13626
14276
  * Custom selectors for styling elements within the component.
13627
14277
  *
13628
- * - `button`: The end-attempt button element.
14278
+ * - `button`: The end-attempt button element. No states: the element has no internals; `disabled` and `readonly` are read off the item and land on the button's `disabled` attribute.
13629
14279
  */
13630
14280
  "qti-end-attempt-interaction": Partial<
13631
14281
  QtiEndAttemptInteractionProps &
@@ -13707,7 +14357,14 @@ export type CustomElementsSolidJs = {
13707
14357
  * Methods that can be called to access component functionality.
13708
14358
  *
13709
14359
  * - `validate() => boolean`: undefined
13710
- * - `reportValidity() => boolean`: undefined
14360
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14361
+ *
14362
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14363
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14364
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14365
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14366
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14367
+ * below-minimum interaction cannot submit either way.
13711
14368
  * - `reset() => void`: undefined
13712
14369
  * - `formResetCallback() => void`: undefined
13713
14370
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -13717,6 +14374,14 @@ export type CustomElementsSolidJs = {
13717
14374
  * Custom selectors for styling elements within the component.
13718
14375
  *
13719
14376
  * - `textarea`: The textarea input element.
14377
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
14378
+ *
14379
+ * ## CSS States
14380
+ *
14381
+ * These can be used to apply styling when a component is in a given state.
14382
+ *
14383
+ * - `disabled`: The interaction is switched off.
14384
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
13720
14385
  */
13721
14386
  "qti-extended-text-interaction": Partial<
13722
14387
  QtiExtendedTextInteractionProps &
@@ -13833,16 +14498,31 @@ export type CustomElementsSolidJs = {
13833
14498
  * - `saveResponse(value: string | string[]) => void`: undefined
13834
14499
  * - `reset(save: boolean) => void`: undefined
13835
14500
  * - `validate() => boolean`: undefined
13836
- * - `reportValidity() => boolean`: undefined
14501
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14502
+ *
14503
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14504
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14505
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14506
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14507
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14508
+ * below-minimum interaction cannot submit either way.
13837
14509
  * - `formResetCallback() => void`: undefined
13838
14510
  *
13839
14511
  * ## CSS Parts
13840
14512
  *
13841
14513
  * Custom selectors for styling elements within the component.
13842
14514
  *
13843
- * - `drags`: Wrapper around the drag sources slot.
13844
- * - `drops`: Wrapper around the drop targets slot.
14515
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
14516
+ * - `drops`: Wrapper around the drop targets slot. The targets themselves are `qti-gap` elements in the light DOM; they carry their own states (`drop`, `filled`, `full`, …).
13845
14517
  * - `message`: Live validation message region (role="alert").
14518
+ *
14519
+ * ## CSS States
14520
+ *
14521
+ * These can be used to apply styling when a component is in a given state.
14522
+ *
14523
+ * - `disabled`: The interaction is switched off.
14524
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14525
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
13846
14526
  */
13847
14527
  "qti-gap-match-interaction": Partial<
13848
14528
  QtiGapMatchInteractionProps &
@@ -13858,6 +14538,8 @@ export type CustomElementsSolidJs = {
13858
14538
  *
13859
14539
  * Component attributes and properties that can be applied to the element or by using JavaScript.
13860
14540
  *
14541
+ * - `min-associations`/`minAssociations`: Fewest associations a valid response holds (QTI `min-associations`, default 0).
14542
+ * - `max-associations`/`maxAssociations`: Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit).
13861
14543
  * - `response`: undefined
13862
14544
  * - `response-identifier`/`responseIdentifier`: undefined
13863
14545
  * - `disabled`: undefined
@@ -13911,7 +14593,14 @@ export type CustomElementsSolidJs = {
13911
14593
  *
13912
14594
  * - `reset() => void`: undefined
13913
14595
  * - `validate() => boolean`: undefined
13914
- * - `reportValidity() => boolean`: undefined
14596
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14597
+ *
14598
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14599
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14600
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14601
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14602
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14603
+ * below-minimum interaction cannot submit either way.
13915
14604
  * - `formResetCallback() => void`: undefined
13916
14605
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
13917
14606
  *
@@ -13919,10 +14608,16 @@ export type CustomElementsSolidJs = {
13919
14608
  *
13920
14609
  * Custom selectors for styling elements within the component.
13921
14610
  *
13922
- * - `line`: Each line drawn by the candidate.
13923
- * - `correct-line`: Each line displayed as part of the correct response.
13924
- * - `point`: Each in-progress endpoint indicator.
14611
+ * - `line`: Each line drawn by the candidate. Tokens: `answer-key` on a line of the correct response, drawn by `qti-corrections` (was the part `correct-line`).
14612
+ * - `point`: The in-progress line from the first chosen hotspot to the pointer. Interaction: click (or Enter / Space on a focused point) a point to start a line, then another point to finish it. The chosen start point carries `:state(checked)`; clicking it again, Escape, or a click on the image away from the points cancels. A point that already takes its `match-max` lines carries `:state(full)` and cannot start or end another. Click a line (or focus it and press Enter, Space, Delete or Backspace) to remove it. The response is `pair`, undirected: "B A" is the existing "A B", and a point cannot be paired with itself.
13925
14613
  * - `message`: Live validation message region (role="alert").
14614
+ *
14615
+ * ## CSS States
14616
+ *
14617
+ * These can be used to apply styling when a component is in a given state.
14618
+ *
14619
+ * - `disabled`: The interaction is switched off.
14620
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
13926
14621
  */
13927
14622
  "qti-graphic-associate-interaction": Partial<
13928
14623
  QtiGraphicAssociateInteractionProps &
@@ -13973,8 +14668,16 @@ export type CustomElementsSolidJs = {
13973
14668
  * Custom selectors for styling elements within the component.
13974
14669
  *
13975
14670
  * - `image`: Wrapper around the image slot.
13976
- * - `drags`: Wrapper around the drag sources slot.
14671
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
13977
14672
  * - `message`: Live validation message region (role="alert").
14673
+ *
14674
+ * ## CSS States
14675
+ *
14676
+ * These can be used to apply styling when a component is in a given state.
14677
+ *
14678
+ * - `disabled`: The interaction is switched off.
14679
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14680
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
13978
14681
  */
13979
14682
  "qti-graphic-gap-match-interaction": Partial<
13980
14683
  QtiGraphicGapMatchInteractionProps &
@@ -14043,7 +14746,14 @@ export type CustomElementsSolidJs = {
14043
14746
  * Methods that can be called to access component functionality.
14044
14747
  *
14045
14748
  * - `validate() => boolean`: undefined
14046
- * - `reportValidity() => boolean`: undefined
14749
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14750
+ *
14751
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14752
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14753
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14754
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14755
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14756
+ * below-minimum interaction cannot submit either way.
14047
14757
  * - `reset() => void`: undefined
14048
14758
  * - `formResetCallback() => void`: undefined
14049
14759
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14053,6 +14763,13 @@ export type CustomElementsSolidJs = {
14053
14763
  * Custom selectors for styling elements within the component.
14054
14764
  *
14055
14765
  * - `message`: Live validation message region (role="alert").
14766
+ *
14767
+ * ## CSS States
14768
+ *
14769
+ * These can be used to apply styling when a component is in a given state.
14770
+ *
14771
+ * - `disabled`: The interaction is switched off.
14772
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14056
14773
  */
14057
14774
  "qti-graphic-order-interaction": Partial<
14058
14775
  QtiGraphicOrderInteractionProps &
@@ -14121,10 +14838,30 @@ export type CustomElementsSolidJs = {
14121
14838
  * Methods that can be called to access component functionality.
14122
14839
  *
14123
14840
  * - `validate() => boolean`: undefined
14124
- * - `reportValidity() => boolean`: undefined
14841
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14842
+ *
14843
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14844
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14845
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14846
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14847
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14848
+ * below-minimum interaction cannot submit either way.
14125
14849
  * - `reset() => void`: undefined
14126
14850
  * - `formResetCallback() => void`: undefined
14127
14851
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
14852
+ *
14853
+ * ## CSS Parts
14854
+ *
14855
+ * Custom selectors for styling elements within the component.
14856
+ *
14857
+ * - `message`: Live validation message region (role="alert").
14858
+ *
14859
+ * ## CSS States
14860
+ *
14861
+ * These can be used to apply styling when a component is in a given state.
14862
+ *
14863
+ * - `disabled`: The interaction is switched off.
14864
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14128
14865
  */
14129
14866
  "qti-hotspot-interaction": Partial<
14130
14867
  QtiHotspotInteractionProps &
@@ -14193,7 +14930,14 @@ export type CustomElementsSolidJs = {
14193
14930
  * Methods that can be called to access component functionality.
14194
14931
  *
14195
14932
  * - `validate() => boolean`: undefined
14196
- * - `reportValidity() => boolean`: undefined
14933
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
14934
+ *
14935
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
14936
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
14937
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
14938
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
14939
+ * and comes back if it is lost again. The validity itself is always set: a form with a
14940
+ * below-minimum interaction cannot submit either way.
14197
14941
  * - `reset() => void`: undefined
14198
14942
  * - `formResetCallback() => void`: undefined
14199
14943
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14203,6 +14947,13 @@ export type CustomElementsSolidJs = {
14203
14947
  * Custom selectors for styling elements within the component.
14204
14948
  *
14205
14949
  * - `message`: Live validation message region (role="alert").
14950
+ *
14951
+ * ## CSS States
14952
+ *
14953
+ * These can be used to apply styling when a component is in a given state.
14954
+ *
14955
+ * - `disabled`: The interaction is switched off.
14956
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14206
14957
  */
14207
14958
  "qti-hottext-interaction": Partial<
14208
14959
  QtiHottextInteractionProps &
@@ -14313,7 +15064,14 @@ export type CustomElementsSolidJs = {
14313
15064
  * box and ignores the transform. (Same trap the drag-drop clone code documents for a chip picked
14314
15065
  * up mid-animation.)
14315
15066
  * - `validate() => boolean`: undefined
14316
- * - `reportValidity() => boolean`: undefined
15067
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15068
+ *
15069
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15070
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15071
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15072
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15073
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15074
+ * below-minimum interaction cannot submit either way.
14317
15075
  * - `reset() => void`: undefined
14318
15076
  * - `menuAutoSizePropertyTarget() => HTMLElement | null`: Where the measured width is written. Inside the shadow root — see the header.
14319
15077
  * - `withMenuMeasurable(measure: () => T) => T`: Make the rows measurable, run `measure`, and put everything back.
@@ -14335,11 +15093,20 @@ export type CustomElementsSolidJs = {
14335
15093
  *
14336
15094
  * - `trigger`: The dropdown trigger button.
14337
15095
  * - `value`: The currently displayed value inside the trigger.
14338
- * - `dropdown-icon`: The chevron icon inside the trigger; also carries `dropdown-icon-open` when open.
15096
+ * - `icon`: The chevron inside the trigger (was `dropdown-icon`). Tokens: `open` while the menu is open (was `dropdown-icon-open`).
14339
15097
  * - `menu`: The popover element containing the option list.
14340
- * - `option`: Each option button; also carries `option-prompt`, `option-selected` and `option-clear` (the prompt row as a clear button, see `data-clear-label`) variants.
14341
- * - `option-content`: The content wrapper inside each option.
15098
+ * - `option`: The prompt row in the menu: the way back to "nothing chosen". Tokens: `prompt`; `selected` while nothing is chosen; `clear` when the row is the clear button (see `data-clear-label`). Were `option-prompt`, `option-selected`, `option-clear`. The other rows are `qti-inline-choice` elements and carry their own parts and states.
15099
+ * - `option-content`: The content wrapper inside the prompt row.
14342
15100
  * - `clear-icon`: The x glyph inside the clear row.
15101
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
15102
+ *
15103
+ * ## CSS States
15104
+ *
15105
+ * These can be used to apply styling when a component is in a given state.
15106
+ *
15107
+ * - `disabled`: The interaction is switched off.
15108
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
15109
+ * - `open`: The menu is open. The chosen option carries `checked`, on the `qti-inline-choice`.
14343
15110
  */
14344
15111
  "qti-inline-choice-interaction": Partial<
14345
15112
  QtiInlineChoiceInteractionProps &
@@ -14469,7 +15236,14 @@ export type CustomElementsSolidJs = {
14469
15236
  * - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
14470
15237
  * - `saveResponse(value: string | string[]) => void`: undefined
14471
15238
  * - `reset(save: boolean) => void`: undefined
14472
- * - `reportValidity() => boolean`: undefined
15239
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15240
+ *
15241
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15242
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15243
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15244
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15245
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15246
+ * below-minimum interaction cannot submit either way.
14473
15247
  * - `formResetCallback() => void`: undefined
14474
15248
  *
14475
15249
  * ## CSS Parts
@@ -14478,15 +15252,23 @@ export type CustomElementsSolidJs = {
14478
15252
  *
14479
15253
  * - `grid`: The tabular grid container.
14480
15254
  * - `corner`: The top-left corner cell of the grid; shows `data-first-column-header`.
14481
- * - `cols-wrap`: Wrapper row for the column headers.
14482
- * - `c-header`: The column header slot wrapper.
14483
- * - `rows-wrap`: Wrapper column for the row headers.
14484
- * - `r-header`: The row header slot wrapper.
14485
- * - `checkbox-grid`: The interactive cell grid area.
14486
- * - `input-cell`: Each cell's label element.
14487
- * - `control`: The visible checkbox/radio box (tabular mode). Also carries the variant tokens `radio` | `checkbox`, `checked`, and `correct` | `incorrect` — e.g. `::part(control radio checked correct)`. These mirror the custom-state vocabulary; the cells are plain spans in the shadow root, so they cannot carry real `:state()`.
14488
- * - `control-mark`: The inner mark element; carries the same variant tokens as `control`.
15255
+ * - `columns`: Wrapper row for the column headers (was `cols-wrap`).
15256
+ * - `column-header`: The column header slot (was `c-header`).
15257
+ * - `rows`: Wrapper column for the row headers (was `rows-wrap`).
15258
+ * - `row-header`: The row header slot (was `r-header`).
15259
+ * - `cells`: The interactive cell grid area (was `checkbox-grid`).
15260
+ * - `cell`: Each cell's label element (was `input-cell`).
15261
+ * - `control`: The visible checkbox/radio box (tabular mode). Tokens: `radio` | `checkbox`, `checked`, `candidate-correct` | `candidate-incorrect` — e.g. `::part(control radio checked candidate-correct)`. These mirror the custom-state vocabulary; the cells are plain spans in the shadow root, so they cannot carry real `:state()`.
15262
+ * - `control-mark`: The inner mark element; carries the same tokens as `control`.
14489
15263
  * - `message`: Live validation message region (role="alert").
15264
+ *
15265
+ * ## CSS States
15266
+ *
15267
+ * These can be used to apply styling when a component is in a given state.
15268
+ *
15269
+ * - `disabled`: The interaction is switched off.
15270
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
15271
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
14490
15272
  */
14491
15273
  "qti-match-interaction": Partial<
14492
15274
  QtiMatchInteractionProps &
@@ -14546,7 +15328,7 @@ export type CustomElementsSolidJs = {
14546
15328
  * Areas where markup can be added to the component.
14547
15329
  *
14548
15330
  * - `prompt`: The prompt shown above the media element.
14549
- * - `(default)`: Default slot for the embedded media element.
15331
+ * - `(default)`: Default slot for the embedded media element. No parts: the media element is slotted light DOM and is styled directly.
14550
15332
  *
14551
15333
  * ## Methods
14552
15334
  *
@@ -14554,9 +15336,23 @@ export type CustomElementsSolidJs = {
14554
15336
  *
14555
15337
  * - `reset() => void`: undefined
14556
15338
  * - `validate() => boolean`: undefined
14557
- * - `reportValidity() => boolean`: undefined
15339
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15340
+ *
15341
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15342
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15343
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15344
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15345
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15346
+ * below-minimum interaction cannot submit either way.
14558
15347
  * - `formResetCallback() => void`: undefined
14559
15348
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
15349
+ *
15350
+ * ## CSS States
15351
+ *
15352
+ * These can be used to apply styling when a component is in a given state.
15353
+ *
15354
+ * - `disabled`: The interaction is switched off.
15355
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14560
15356
  */
14561
15357
  "qti-media-interaction": Partial<
14562
15358
  QtiMediaInteractionProps &
@@ -14609,11 +15405,20 @@ export type CustomElementsSolidJs = {
14609
15405
  *
14610
15406
  * Custom selectors for styling elements within the component.
14611
15407
  *
14612
- * - `container`: The outer container wrapping drags and drops.
14613
- * - `drags`: Wrapper around the drag sources slot.
15408
+ * - `container`: The outer container wrapping the bank and the drops.
15409
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
14614
15410
  * - `drops`: The drop-target region.
14615
- * - `drop`: Each individual drop target.
14616
- * - `drag`: A choice that has been placed into a drop target.
15411
+ * - `drop`: Each individual drop target. Tokens: `filled`, `full`, `drag-active`, `drag-over` (a plain div cannot carry `:state()`, so the state names are part tokens here).
15412
+ * - `chip`: A choice placed into a drop target (was `drag`).
15413
+ * - `message`: Live validation message region (role="alert").
15414
+ *
15415
+ * ## CSS States
15416
+ *
15417
+ * These can be used to apply styling when a component is in a given state.
15418
+ *
15419
+ * - `disabled`: The interaction is switched off.
15420
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
15421
+ * - `drag-active`: A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
14617
15422
  */
14618
15423
  "qti-order-interaction": Partial<
14619
15424
  QtiOrderInteractionProps &
@@ -14623,7 +15428,10 @@ export type CustomElementsSolidJs = {
14623
15428
  >;
14624
15429
 
14625
15430
  /**
15431
+ * Portable custom interaction (PCI): hosts a third-party interaction module.
14626
15432
  *
15433
+ * No parts: the PCI renders its own markup into the default slot (or into an iframe) and the
15434
+ * element adds nothing of its own to theme.
14627
15435
  *
14628
15436
  * ## Attributes & Properties
14629
15437
  *
@@ -14693,10 +15501,24 @@ export type CustomElementsSolidJs = {
14693
15501
  * - `disable() => void`: Method to disable the PCI for review mode
14694
15502
  * This can be used when showing the correct response
14695
15503
  * - `enable() => void`: Method to enable the PCI for interactive mode
14696
- * - `reportValidity() => boolean`: undefined
15504
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15505
+ *
15506
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15507
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15508
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15509
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15510
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15511
+ * below-minimum interaction cannot submit either way.
14697
15512
  * - `reset() => void`: undefined
14698
15513
  * - `formResetCallback() => void`: undefined
14699
15514
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
15515
+ *
15516
+ * ## CSS States
15517
+ *
15518
+ * These can be used to apply styling when a component is in a given state.
15519
+ *
15520
+ * - `disabled`: The interaction is switched off.
15521
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14700
15522
  */
14701
15523
  "qti-portable-custom-interaction": Partial<
14702
15524
  QtiPortableCustomInteractionProps &
@@ -14788,10 +15610,24 @@ export type CustomElementsSolidJs = {
14788
15610
  * - `disable() => void`: Method to disable the PCI for review mode
14789
15611
  * This can be used when showing the correct response
14790
15612
  * - `enable() => void`: Method to enable the PCI for interactive mode
14791
- * - `reportValidity() => boolean`: undefined
15613
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15614
+ *
15615
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15616
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15617
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15618
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15619
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15620
+ * below-minimum interaction cannot submit either way.
14792
15621
  * - `reset() => void`: undefined
14793
15622
  * - `formResetCallback() => void`: undefined
14794
15623
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
15624
+ *
15625
+ * ## CSS States
15626
+ *
15627
+ * These can be used to apply styling when a component is in a given state.
15628
+ *
15629
+ * - `disabled`: The interaction is switched off.
15630
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14795
15631
  */
14796
15632
  "qti-portable-custom-interaction-test": Partial<
14797
15633
  QtiPortableCustomInteractionTestProps &
@@ -14801,13 +15637,105 @@ export type CustomElementsSolidJs = {
14801
15637
  >;
14802
15638
 
14803
15639
  /**
14804
- * Position-object interaction: candidates place draggable objects onto a stage image.
15640
+ * Position object interaction (QTI 3, 3.2.16): the candidate places copies of an image (the
15641
+ * object) on another image (the stage, the parent `qti-position-object-stage`). The response is a
15642
+ * list of `point`s, each the object's centre point in the stage image's own coordinates (its
15643
+ * `width`/`height` attributes, else its natural size), whatever size the stage is shown at.
15644
+ *
15645
+ * Placing:
15646
+ * - drag the object onto the stage, or click it and then click the stage;
15647
+ * - keyboard: focus the object and press Enter or Space to place a copy at the stage's centre;
15648
+ * on a placed copy, the arrow keys move it (Shift: ten times as far) and Delete or Backspace
15649
+ * removes it;
15650
+ * - drag a placed copy to move it, or off the stage to remove it.
15651
+ *
15652
+ * At `max-choices` (default 1; 0 = no limit) no further copy is placed and the host carries
15653
+ * `:state(used)`. Area-mapping areas are never shown, only the candidate's positions.
15654
+ *
15655
+ * ## Attributes & Properties
15656
+ *
15657
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
15658
+ *
15659
+ * - `max-choices`/`maxChoices`: Most positions; 0 = no limit.
15660
+ * - `min-choices`/`minChoices`: Fewest positions for a valid response.
15661
+ * - `center-point`/`centerPoint`: The object's centre point, `x y` (or `x,y`) from its top-left, in the object's own pixels. Default: the centre of its box.
15662
+ * - `response`: undefined
15663
+ * - `response-identifier`/`responseIdentifier`: undefined
15664
+ * - `disabled`: undefined
15665
+ * - `readonly`: undefined
15666
+ * - `name`: undefined
15667
+ * - `configContext`: Delivery configuration, from the nearest provider — `qti-test` or `qti-item`.
15668
+ *
15669
+ * **Public so it can be assigned directly, which is the development-time route.** An interaction
15670
+ * has to work standalone, and in a story or a spec there is usually no provider above it — so
15671
+ * setting the field is all that is needed:
15672
+ *
15673
+ * orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
15674
+ *
15675
+ * With no provider, nothing ever overwrites it. That is the whole contract, and its limit: where a
15676
+ * provider DOES exist it re-emits on its next update and wins, because `@consume` writes this same
15677
+ * field. There is no merging — set the value on the provider in that case.
15678
+ *
15679
+ * In a lit-html template, bind it as a property rather than assigning after the fact:
15680
+ *
15681
+ * html`<qti-order-interaction .configContext=${{ allowReorder: false }}>…`
15682
+ *
15683
+ * The binding is committed on the detached template clone, before the fragment is inserted, so it
15684
+ * is in place by `connectedCallback` — which matters for anything that reads config on connect.
15685
+ *
15686
+ * It was `protected`, which fooled nobody: every caller reached it anyway through an
15687
+ * `as any` / `as { configContext?: … }` cast. Public says what was already true and removes the
15688
+ * casts, rather than pretending at an encapsulation the type system was the only thing enforcing. (property only)
15689
+ * - `internals`: undefined (property only) (readonly)
15690
+ * - `isInline`: undefined (property only) (readonly)
15691
+ * - `responseVariable`: undefined (property only) (readonly)
15692
+ * - `value`: undefined (property only)
15693
+ *
15694
+ * ## Events
15695
+ *
15696
+ * Events that will be emitted by the component.
15697
+ *
15698
+ * - `qti-register-interaction`: undefined
15699
+ * - `qti-interaction-response`: undefined
14805
15700
  *
14806
15701
  * ## Slots
14807
15702
  *
14808
15703
  * Areas where markup can be added to the component.
14809
15704
  *
14810
- * - `(default)`: Default slot for the object choices and stage.
15705
+ * - `(default)`: The object image (`img` or `picture`).
15706
+ *
15707
+ * ## Methods
15708
+ *
15709
+ * Methods that can be called to access component functionality.
15710
+ *
15711
+ * - `validate() => boolean`: undefined
15712
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15713
+ *
15714
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15715
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15716
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15717
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15718
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15719
+ * below-minimum interaction cannot submit either way.
15720
+ * - `reset() => void`: undefined
15721
+ * - `formResetCallback() => void`: undefined
15722
+ * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
15723
+ *
15724
+ * ## CSS Parts
15725
+ *
15726
+ * Custom selectors for styling elements within the component.
15727
+ *
15728
+ * - `object`: The object to place, beside the stage. Tokens: `selected` while a click has picked it up (the next click on the stage places it); `used` at `max-choices`.
15729
+ * - `point`: Each placed copy on the stage.
15730
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
15731
+ *
15732
+ * ## CSS States
15733
+ *
15734
+ * These can be used to apply styling when a component is in a given state.
15735
+ *
15736
+ * - `used`: Every allowed copy is placed (`max-choices` reached).
15737
+ * - `disabled`: The interaction is switched off.
15738
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14811
15739
  */
14812
15740
  "qti-position-object-interaction": Partial<
14813
15741
  QtiPositionObjectInteractionProps &
@@ -14817,23 +15745,15 @@ export type CustomElementsSolidJs = {
14817
15745
  >;
14818
15746
 
14819
15747
  /**
15748
+ * The stage of one or more position object interactions: the image the objects are placed on, and
15749
+ * the containing block of their placed copies. Layout only: each `qti-position-object-interaction`
15750
+ * inside it handles its own input and response, measured against this stage's image.
14820
15751
  *
15752
+ * ## Slots
14821
15753
  *
14822
- * ## Attributes & Properties
14823
- *
14824
- * Component attributes and properties that can be applied to the element or by using JavaScript.
14825
- *
14826
- * - `choiceOrdering`: undefined (property only)
14827
- * - `startX`: undefined (property only)
14828
- * - `startY`: undefined (property only)
14829
- * - `dragElement`: undefined (property only)
14830
- *
14831
- * ## Methods
14832
- *
14833
- * Methods that can be called to access component functionality.
15754
+ * Areas where markup can be added to the component.
14834
15755
  *
14835
- * - `dragElementHandler(event: MouseEvent) => void`: undefined
14836
- * - `removeMoveListener() => void`: undefined
15756
+ * - `(default)`: The stage image (`img` or `picture`), then the interactions.
14837
15757
  */
14838
15758
  "qti-position-object-stage": Partial<
14839
15759
  QtiPositionObjectStageProps &
@@ -14907,7 +15827,14 @@ export type CustomElementsSolidJs = {
14907
15827
  * Methods that can be called to access component functionality.
14908
15828
  *
14909
15829
  * - `validate() => boolean`: undefined
14910
- * - `reportValidity() => boolean`: undefined
15830
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15831
+ *
15832
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15833
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15834
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15835
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15836
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15837
+ * below-minimum interaction cannot submit either way.
14911
15838
  * - `reset() => void`: undefined
14912
15839
  * - `formResetCallback() => void`: undefined
14913
15840
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14925,7 +15852,15 @@ export type CustomElementsSolidJs = {
14925
15852
  *
14926
15853
  * Custom selectors for styling elements within the component.
14927
15854
  *
14928
- * - `point`: Each selected point marker.
15855
+ * - `point`: Each selected point marker. Tokens: `candidate-correct` | `candidate-incorrect` when `qti-corrections` has marked it.
15856
+ * - `message`: The validation message, hidden until `reportValidity` shows it.
15857
+ *
15858
+ * ## CSS States
15859
+ *
15860
+ * These can be used to apply styling when a component is in a given state.
15861
+ *
15862
+ * - `disabled`: The interaction is switched off.
15863
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
14929
15864
  */
14930
15865
  "qti-select-point-interaction": Partial<
14931
15866
  QtiSelectPointInteractionProps &
@@ -14996,7 +15931,14 @@ export type CustomElementsSolidJs = {
14996
15931
  * Methods that can be called to access component functionality.
14997
15932
  *
14998
15933
  * - `validate() => boolean`: undefined
14999
- * - `reportValidity() => boolean`: undefined
15934
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
15935
+ *
15936
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
15937
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
15938
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
15939
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
15940
+ * and comes back if it is lost again. The validity itself is always set: a form with a
15941
+ * below-minimum interaction cannot submit either way.
15000
15942
  * - `reset() => void`: undefined
15001
15943
  * - `formResetCallback() => void`: undefined
15002
15944
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -15009,9 +15951,15 @@ export type CustomElementsSolidJs = {
15009
15951
  * - `bounds`: The min/max bounds label wrapper.
15010
15952
  * - `ticks`: The tick marks along the rail.
15011
15953
  * - `rail`: The rail element the knob slides along.
15012
- * - `knob`: The draggable knob.
15013
- * - `value`: The current value display (used twice in the layout).
15014
- * - `knob-correct`: Ghost knob shown at the correct response position.
15954
+ * - `knob`: The draggable knob. Tokens: `answer-key` on the ghost knob `qti-corrections` draws at the correct response (was the part `knob-correct`).
15955
+ * - `value`: The current value display.
15956
+ *
15957
+ * ## CSS States
15958
+ *
15959
+ * These can be used to apply styling when a component is in a given state.
15960
+ *
15961
+ * - `disabled`: The interaction is switched off.
15962
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
15015
15963
  */
15016
15964
  "qti-slider-interaction": Partial<
15017
15965
  QtiSliderInteractionProps &
@@ -15079,7 +16027,14 @@ export type CustomElementsSolidJs = {
15079
16027
  * Methods that can be called to access component functionality.
15080
16028
  *
15081
16029
  * - `validate() => boolean`: undefined
15082
- * - `reportValidity() => boolean`: undefined
16030
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
16031
+ *
16032
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
16033
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
16034
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
16035
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
16036
+ * and comes back if it is lost again. The validity itself is always set: a form with a
16037
+ * below-minimum interaction cannot submit either way.
15083
16038
  * - `reset() => void`: undefined
15084
16039
  * - `formResetCallback() => void`: undefined
15085
16040
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -15088,9 +16043,16 @@ export type CustomElementsSolidJs = {
15088
16043
  *
15089
16044
  * Custom selectors for styling elements within the component.
15090
16045
  *
15091
- * - `answer`: The answer-key line, revealed above the field when the correct response is shown.
16046
+ * - `answer-key`: The correct answer, revealed above the field when the correct response is shown (was `answer`).
15092
16047
  * - `input`: The text input element.
15093
16048
  * - `message`: The validation message, hidden until `reportValidity` shows it.
16049
+ *
16050
+ * ## CSS States
16051
+ *
16052
+ * These can be used to apply styling when a component is in a given state.
16053
+ *
16054
+ * - `disabled`: The interaction is switched off.
16055
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
15094
16056
  */
15095
16057
  "qti-text-entry-interaction": Partial<
15096
16058
  QtiTextEntryInteractionProps &
@@ -15157,9 +16119,29 @@ export type CustomElementsSolidJs = {
15157
16119
  *
15158
16120
  * - `reset() => void`: undefined
15159
16121
  * - `validate() => boolean`: undefined
15160
- * - `reportValidity() => boolean`: undefined
16122
+ * - `reportValidity(options?: { trigger?: ValidityTrigger }) => boolean`: Show the validity state, in the configured mode.
16123
+ *
16124
+ * When it shows depends on what asked: a `change` (the candidate picked or dropped something)
16125
+ * reports what they just did wrong, too many, at once; too few is not an error until they say they
16126
+ * are done, so a `submit` (the item's end attempt, a form's submit) is what first shows it. After
16127
+ * that first submit, changes report in full, so the message clears the moment the minimum is met
16128
+ * and comes back if it is lost again. The validity itself is always set: a form with a
16129
+ * below-minimum interaction cannot submit either way.
15161
16130
  * - `formResetCallback() => void`: undefined
15162
16131
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
16132
+ *
16133
+ * ## CSS Parts
16134
+ *
16135
+ * Custom selectors for styling elements within the component.
16136
+ *
16137
+ * - `input`: The file input element.
16138
+ *
16139
+ * ## CSS States
16140
+ *
16141
+ * These can be used to apply styling when a component is in a given state.
16142
+ *
16143
+ * - `disabled`: The interaction is switched off.
16144
+ * - `readonly`: The interaction is frozen: it shows its value and takes no input.
15163
16145
  */
15164
16146
  "qti-upload-interaction": Partial<
15165
16147
  QtiUploadInteractionProps &
@@ -15425,6 +16407,12 @@ export type CustomElementsSolidJs = {
15425
16407
  * - `identifier`: undefined
15426
16408
  * - `showStatus`: undefined (property only)
15427
16409
  *
16410
+ * ## Slots
16411
+ *
16412
+ * Areas where markup can be added to the component.
16413
+ *
16414
+ * - `(default)`: The feedback content.
16415
+ *
15428
16416
  * ## Methods
15429
16417
  *
15430
16418
  * Methods that can be called to access component functionality.
@@ -15434,6 +16422,12 @@ export type CustomElementsSolidJs = {
15434
16422
  * - `openFeedback() => void`: undefined
15435
16423
  * - `closeFeedback() => void`: undefined
15436
16424
  * - `checkShowFeedback(outcomeIdentifier: string) => void`: undefined
16425
+ *
16426
+ * ## CSS Parts
16427
+ *
16428
+ * Custom selectors for styling elements within the component.
16429
+ *
16430
+ * - `feedback`: The feedback box (the dialog).
15437
16431
  */
15438
16432
  "qti-test-feedback": Partial<
15439
16433
  QtiTestFeedbackProps &
@@ -15605,8 +16599,8 @@ export type CustomElementsSolidJs = {
15605
16599
  * Events that will be emitted by the component.
15606
16600
  *
15607
16601
  * - `qti-test-connected`: undefined
15608
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
15609
- * - `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.
16602
+ * - `qc-test-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
16603
+ * - `qti-test-context-updated`: Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
15610
16604
  */
15611
16605
  "qti-test": Partial<
15612
16606
  QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
@@ -15614,7 +16608,7 @@ export type CustomElementsSolidJs = {
15614
16608
 
15615
16609
  /**
15616
16610
  * A button that ends the attempt of an item: its response is processed, `numAttempts` goes up and
15617
- * feedback is shown as the item's session control allows. It dispatches `cito-test-end-attempt`,
16611
+ * feedback is shown as the item's session control allows. It dispatches `qc-test-end-attempt`,
15618
16612
  * which `<test-navigation>` handles.
15619
16613
  *
15620
16614
  * Put it inside `<test-navigation>`, either in the toolbar, where it ends the attempt of the item on
@@ -15848,7 +16842,7 @@ export type CustomElementsSolidJs = {
15848
16842
 
15849
16843
  /**
15850
16844
  * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
15851
- * on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
16845
+ * on every `qc-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
15852
16846
  *
15853
16847
  * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
15854
16848
  * by it. The element only lays out the tree; give it a font, colour and height from the page.
@@ -15927,7 +16921,7 @@ export type CustomElementsSolidJs = {
15927
16921
 
15928
16922
  /**
15929
16923
  * Scores the test: on click the test resets its outcomes to their declared defaults, runs its
15930
- * outcome processing and dispatches `cito-test-submitted`, after which the host reads the outcomes.
16924
+ * outcome processing and dispatches `qc-test-submitted`, after which the host reads the outcomes.
15931
16925
  * The host decides where it sits, for example on the last item or in a review view.
15932
16926
  */
15933
16927
  "test-submit": Partial<
@@ -16191,7 +17185,9 @@ export type CustomElementsSolidJs = {
16191
17185
 
16192
17186
  /**
16193
17187
  * Pick button — toggles pick mode on the controller: every reading element is highlighted and
16194
- * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
17188
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`, and,
17189
+ * being the toggle that switched it on, as `:state(selected)`, painted through
17190
+ * `--button-selected-background-color` / `--button-selected-color`.
16195
17191
  *
16196
17192
  * ## Attributes & Properties
16197
17193
  *
@@ -16213,6 +17209,7 @@ export type CustomElementsSolidJs = {
16213
17209
  *
16214
17210
  * - `idle`: / playing / paused
16215
17211
  * - `picking`: undefined
17212
+ * - `selected`: This toggle is on: pick mode is active
16216
17213
  */
16217
17214
  "test-tts-pick": Partial<
16218
17215
  TestTtsPickProps &
@@ -18434,7 +19431,7 @@ export type CustomElementsSolidJs = {
18434
19431
  * - `showCorrectResponse(show: boolean) => void`: undefined
18435
19432
  * - `showCandidateCorrection(show: boolean) => void`: undefined
18436
19433
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
18437
- * backend, and sends the outcomes back in `cito-item-set-outcomes`, which the item applies in one
19434
+ * backend, and sends the outcomes back in `qc-item-set-outcomes`, which the item applies in one
18438
19435
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
18439
19436
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
18440
19437
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -18534,8 +19531,8 @@ export type CustomElementsSolidJs = {
18534
19531
  * Events that will be emitted by the component.
18535
19532
  *
18536
19533
  * - `qti-test-connected`: undefined
18537
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
18538
- * - `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.
19534
+ * - `qc-test-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
19535
+ * - `qti-test-context-updated`: Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
18539
19536
  *
18540
19537
  * ## Methods
18541
19538
  *