@citolab/qti-components 10.0.0-next.14 → 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 (72) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +1643 -2742
  3. package/dist/base.d.ts +32 -8
  4. package/dist/base.js +7 -1
  5. package/dist/{chunk-HGKLF7SP.js → chunk-4DC5Z2LQ.js} +2 -2
  6. package/dist/{chunk-MP2SUN7J.js → chunk-7MYZHZWV.js} +981 -383
  7. package/dist/chunk-7MYZHZWV.js.map +1 -0
  8. package/dist/{chunk-LFVPS7KB.js → chunk-DAOLVUTR.js} +2 -2
  9. package/dist/{chunk-CCI3QMQA.js → chunk-H3Z3TMFB.js} +55 -60
  10. package/dist/chunk-H3Z3TMFB.js.map +1 -0
  11. package/dist/{chunk-LEF7AAYZ.js → chunk-J3F3JSCW.js} +2 -2
  12. package/dist/{chunk-NYNL5HSR.js → chunk-L3LBSAGZ.js} +2 -2
  13. package/dist/{chunk-BZPMN57E.js → chunk-L7J2ZOJL.js} +2 -2
  14. package/dist/{chunk-TLAVOBEM.js → chunk-LORYM4U2.js} +120 -1
  15. package/dist/chunk-LORYM4U2.js.map +1 -0
  16. package/dist/{chunk-6XRNX574.js → chunk-LQ65RILE.js} +141 -106
  17. package/dist/chunk-LQ65RILE.js.map +1 -0
  18. package/dist/{chunk-C7SYDLMG.js → chunk-M4TZIB3W.js} +61 -27
  19. package/dist/chunk-M4TZIB3W.js.map +1 -0
  20. package/dist/{chunk-S5GLISQA.js → chunk-NWSDBYK7.js} +2 -2
  21. package/dist/{chunk-O2ENNGKV.js → chunk-NZ7ZC4SP.js} +126 -7
  22. package/dist/chunk-NZ7ZC4SP.js.map +1 -0
  23. package/dist/{chunk-SWNFCQ4G.js → chunk-OG5HIRHE.js} +4 -4
  24. package/dist/{chunk-TU34FFWF.js → chunk-UDJ7MHLF.js} +4 -4
  25. package/dist/chunk-UDJ7MHLF.js.map +1 -0
  26. package/dist/chunk-WWY2H2YO.js +7 -0
  27. package/dist/chunk-WWY2H2YO.js.map +1 -0
  28. package/dist/{computed.types.d-IXACuBr7.d.ts → computed.types.d-n3K2VvB0.d.ts} +2 -2
  29. package/dist/{config.context.d-BniMHSBB.d.ts → config.context.d-CCqlJXpE.d.ts} +2 -1
  30. package/dist/corrections.d.ts +119 -15
  31. package/dist/corrections.js +9 -9
  32. package/dist/elements.d.ts +67 -16
  33. package/dist/elements.js +4 -4
  34. package/dist/index.d.ts +11 -11
  35. package/dist/index.js +21 -15
  36. package/dist/interactions.d.ts +83 -17
  37. package/dist/interactions.js +3 -3
  38. package/dist/item.css +1133 -2370
  39. package/dist/item.d.ts +4 -4
  40. package/dist/item.js +5 -5
  41. package/dist/loader.d.ts +1 -1
  42. package/dist/loader.js +2 -2
  43. package/dist/processing.js +3 -3
  44. package/dist/qti-components-jsx.d.ts +1239 -214
  45. package/dist/{qti-feedback.d-DbzPSJuK.d.ts → qti-feedback.d-1JL_qHjc.d.ts} +7 -0
  46. package/dist/{qti-item.d-BqWYBdV2.d.ts → qti-item.d-DDMDjWIk.d.ts} +2 -2
  47. package/dist/{qti-test.d-C0I1BIdH.d.ts → qti-test.d-CDdyCp6e.d.ts} +21 -18
  48. package/dist/{qti-text-entry-interaction.d-V4sWE9TO.d.ts → qti-text-entry-interaction.d-BTAKmr4b.d.ts} +160 -50
  49. package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-Bb9vnLzP.d.ts} +1 -0
  50. package/dist/{record.d-C6m0Y4xr.d.ts → record.d-Bojj6_LW.d.ts} +34 -3
  51. package/dist/{session.context.d-DW09Lrie.d.ts → session.context.d-BNxGeyh9.d.ts} +1 -1
  52. package/dist/test.d.ts +9 -9
  53. package/dist/test.js +6 -6
  54. package/dist/transformers.d.ts +1 -1
  55. package/dist/transformers.js +1 -1
  56. package/package.json +11 -11
  57. package/dist/chunk-6XRNX574.js.map +0 -1
  58. package/dist/chunk-C7SYDLMG.js.map +0 -1
  59. package/dist/chunk-CCI3QMQA.js.map +0 -1
  60. package/dist/chunk-MP2SUN7J.js.map +0 -1
  61. package/dist/chunk-O2ENNGKV.js.map +0 -1
  62. package/dist/chunk-Q4MJCEDE.js +0 -7
  63. package/dist/chunk-Q4MJCEDE.js.map +0 -1
  64. package/dist/chunk-TLAVOBEM.js.map +0 -1
  65. package/dist/chunk-TU34FFWF.js.map +0 -1
  66. /package/dist/{chunk-HGKLF7SP.js.map → chunk-4DC5Z2LQ.js.map} +0 -0
  67. /package/dist/{chunk-LFVPS7KB.js.map → chunk-DAOLVUTR.js.map} +0 -0
  68. /package/dist/{chunk-LEF7AAYZ.js.map → chunk-J3F3JSCW.js.map} +0 -0
  69. /package/dist/{chunk-NYNL5HSR.js.map → chunk-L3LBSAGZ.js.map} +0 -0
  70. /package/dist/{chunk-BZPMN57E.js.map → chunk-L7J2ZOJL.js.map} +0 -0
  71. /package/dist/{chunk-S5GLISQA.js.map → chunk-NWSDBYK7.js.map} +0 -0
  72. /package/dist/{chunk-SWNFCQ4G.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
  /** */
@@ -2188,6 +2228,10 @@ casts, rather than pretending at an encapsulation the type system was the only t
2188
2228
  };
2189
2229
 
2190
2230
  export type QtiGraphicGapMatchInteractionProps = {
2231
+ /** QTI's default (information model §5.60). */
2232
+ maxAssociations?:
2233
+ | QtiGraphicGapMatchInteraction["maxAssociations"]
2234
+ | undefined;
2191
2235
  /** A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
2192
2236
  `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
2193
2237
  beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
@@ -2209,6 +2253,10 @@ their hotspots through `--qti-graphic-scale` instead. */
2209
2253
  };
2210
2254
 
2211
2255
  export type QtiGraphicGapMatchInteractionSolidJsProps = {
2256
+ /** QTI's default (information model §5.60). */
2257
+ "prop:maxAssociations"?:
2258
+ | QtiGraphicGapMatchInteraction["maxAssociations"]
2259
+ | undefined;
2212
2260
  /** A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
2213
2261
  `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
2214
2262
  beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
@@ -2815,19 +2863,27 @@ export type QtiMatchInteractionProps = {
2815
2863
  "response-identifier"?: QtiMatchInteraction["responseIdentifier"] | undefined;
2816
2864
  /** Required. Identifier of the bound response variable. */
2817
2865
  responseIdentifier?: QtiMatchInteraction["responseIdentifier"] | undefined;
2818
- /** Maximum pairings across the whole interaction; `0` means unlimited. QTI's own default is `1`; this element defaults to unlimited because a literal `1` breaks any multi-pair match item. See plans/interaction-attribute-spec-conformance.md. */
2866
+ /** Maximum pairings across the whole interaction; `0` means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89). */
2819
2867
  "max-associations"?: QtiMatchInteraction["maxAssociations"] | undefined;
2820
- /** Maximum pairings across the whole interaction; `0` means unlimited. QTI's own default is `1`; this element defaults to unlimited because a literal `1` breaks any multi-pair match item. See plans/interaction-attribute-spec-conformance.md. */
2868
+ /** Maximum pairings across the whole interaction; `0` means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89). */
2821
2869
  maxAssociations?: QtiMatchInteraction["maxAssociations"] | undefined;
2822
- /** Minimum pairings for a valid response. */
2870
+ /** Minimum pairings for a valid response (QTI's default). */
2823
2871
  "min-associations"?: QtiMatchInteraction["minAssociations"] | undefined;
2824
- /** Minimum pairings for a valid response. */
2872
+ /** Minimum pairings for a valid response (QTI's default). */
2825
2873
  minAssociations?: QtiMatchInteraction["minAssociations"] | undefined;
2874
+ /** QTI shared vocabulary, with `qti-match-tabular`: the text of the table's top-left cell. */
2875
+ "data-first-column-header"?:
2876
+ | QtiMatchInteraction["dataFirstColumnHeader"]
2877
+ | undefined;
2878
+ /** QTI shared vocabulary, with `qti-match-tabular`: the text of the table's top-left cell. */
2879
+ dataFirstColumnHeader?:
2880
+ | QtiMatchInteraction["dataFirstColumnHeader"]
2881
+ | undefined;
2826
2882
  /** Requests shuffling of both match sets. Applied by the transform pipeline (`qti-transformers`), not by this element. */
2827
2883
  shuffle?: unknown | undefined;
2828
2884
  /** Requests shuffling of both match sets. Applied by the transform pipeline (`qti-transformers`), not by this element. */
2829
2885
  undefined?: unknown | undefined;
2830
- /** QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop; the `qti-choices-*` values position the source set. */
2886
+ /** QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop, and with it `qti-header-hidden` leaves out the column-header row; the `qti-choices-*` values position the source set. */
2831
2887
  class?: QtiMatchInteraction["class"] | undefined;
2832
2888
  /** Extension, not QTI. Sizes every drop target to the widest chip so placement does not reflow the layout. The mixin default is `true`; this interaction is the one that overrides it to `false`, because a match target is a category card rather than a socket (see the field below and DROP-SIZING.md §1). */
2833
2889
  "auto-size-dropzones"?: unknown | undefined;
@@ -2912,19 +2968,27 @@ export type QtiMatchInteractionSolidJsProps = {
2912
2968
  "prop:responseIdentifier"?:
2913
2969
  | QtiMatchInteraction["responseIdentifier"]
2914
2970
  | undefined;
2915
- /** Maximum pairings across the whole interaction; `0` means unlimited. QTI's own default is `1`; this element defaults to unlimited because a literal `1` breaks any multi-pair match item. See plans/interaction-attribute-spec-conformance.md. */
2971
+ /** Maximum pairings across the whole interaction; `0` means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89). */
2916
2972
  "attr:max-associations"?: QtiMatchInteraction["maxAssociations"] | undefined;
2917
- /** Maximum pairings across the whole interaction; `0` means unlimited. QTI's own default is `1`; this element defaults to unlimited because a literal `1` breaks any multi-pair match item. See plans/interaction-attribute-spec-conformance.md. */
2973
+ /** Maximum pairings across the whole interaction; `0` means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89). */
2918
2974
  "prop:maxAssociations"?: QtiMatchInteraction["maxAssociations"] | undefined;
2919
- /** Minimum pairings for a valid response. */
2975
+ /** Minimum pairings for a valid response (QTI's default). */
2920
2976
  "attr:min-associations"?: QtiMatchInteraction["minAssociations"] | undefined;
2921
- /** Minimum pairings for a valid response. */
2977
+ /** Minimum pairings for a valid response (QTI's default). */
2922
2978
  "prop:minAssociations"?: QtiMatchInteraction["minAssociations"] | undefined;
2979
+ /** QTI shared vocabulary, with `qti-match-tabular`: the text of the table's top-left cell. */
2980
+ "attr:data-first-column-header"?:
2981
+ | QtiMatchInteraction["dataFirstColumnHeader"]
2982
+ | undefined;
2983
+ /** QTI shared vocabulary, with `qti-match-tabular`: the text of the table's top-left cell. */
2984
+ "prop:dataFirstColumnHeader"?:
2985
+ | QtiMatchInteraction["dataFirstColumnHeader"]
2986
+ | undefined;
2923
2987
  /** Requests shuffling of both match sets. Applied by the transform pipeline (`qti-transformers`), not by this element. */
2924
2988
  "bool:shuffle"?: unknown | undefined;
2925
2989
  /** Requests shuffling of both match sets. Applied by the transform pipeline (`qti-transformers`), not by this element. */
2926
2990
  "prop:undefined"?: unknown | undefined;
2927
- /** QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop; the `qti-choices-*` values position the source set. */
2991
+ /** QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop, and with it `qti-header-hidden` leaves out the column-header row; the `qti-choices-*` values position the source set. */
2928
2992
  "prop:class"?: QtiMatchInteraction["class"] | undefined;
2929
2993
  /** Extension, not QTI. Sizes every drop target to the widest chip so placement does not reflow the layout. The mixin default is `true`; this interaction is the one that overrides it to `false`, because a match target is a category card rather than a socket (see the field below and DROP-SIZING.md §1). */
2930
2994
  "bool:auto-size-dropzones"?: unknown | undefined;
@@ -3639,36 +3703,137 @@ casts, rather than pretending at an encapsulation the type system was the only t
3639
3703
  textContent?: string | number | undefined;
3640
3704
  };
3641
3705
 
3642
- 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`.
3736
+
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:
3643
3740
 
3644
- export type QtiPositionObjectInteractionSolidJsProps = {
3645
- /** Set the innerHTML of the element */
3646
- innerHTML?: string | undefined;
3647
- /** Set the textContent of the element */
3648
- textContent?: string | number | undefined;
3649
- };
3741
+ orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
3650
3742
 
3651
- export type QtiPositionObjectStageProps = {
3652
- /** */
3653
- choiceOrdering?: QtiPositionObjectStage["choiceOrdering"] | undefined;
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;
3654
3758
  /** */
3655
- startX?: QtiPositionObjectStage["startX"] | undefined;
3759
+ value?: QtiPositionObjectInteraction["value"] | undefined;
3760
+
3656
3761
  /** */
3657
- startY?: QtiPositionObjectStage["startY"] | undefined;
3762
+ "onqti-register-interaction"?: ((e: CustomEvent) => void) | undefined;
3658
3763
  /** */
3659
- dragElement?: QtiPositionObjectStage["dragElement"] | undefined;
3764
+ "onqti-interaction-response"?: ((e: CustomEvent) => void) | undefined;
3660
3765
  };
3661
3766
 
3662
- 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;
3663
3792
  /** */
3664
- "prop:choiceOrdering"?: QtiPositionObjectStage["choiceOrdering"] | undefined;
3793
+ "prop:readonly"?: QtiPositionObjectInteraction["readonly"] | undefined;
3794
+ /** */
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;
3665
3821
  /** */
3666
- "prop:startX"?: QtiPositionObjectStage["startX"] | undefined;
3822
+ "prop:value"?: QtiPositionObjectInteraction["value"] | undefined;
3667
3823
  /** */
3668
- "prop:startY"?: QtiPositionObjectStage["startY"] | undefined;
3824
+ "on:qti-register-interaction"?: ((e: CustomEvent) => void) | undefined;
3669
3825
  /** */
3670
- "prop:dragElement"?: QtiPositionObjectStage["dragElement"] | undefined;
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 = {};
3671
3835
 
3836
+ export type QtiPositionObjectStageSolidJsProps = {
3672
3837
  /** Set the innerHTML of the element */
3673
3838
  innerHTML?: string | undefined;
3674
3839
  /** Set the textContent of the element */
@@ -4628,8 +4793,8 @@ object, do not mutate it: an in-place change does not notify the components insi
4628
4793
  /** */
4629
4794
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4630
4795
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4631
- "onqti-state-changed"?: ((e: Event) => void) | undefined;
4632
- /** 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. */
4633
4798
  "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
4634
4799
  };
4635
4800
 
@@ -4648,8 +4813,8 @@ object, do not mutate it: an in-place change does not notify the components insi
4648
4813
  /** */
4649
4814
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
4650
4815
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
4651
- "on:qti-state-changed"?: ((e: Event) => void) | undefined;
4652
- /** 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. */
4653
4818
  "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
4654
4819
 
4655
4820
  /** Set the innerHTML of the element */
@@ -6504,8 +6669,8 @@ object, do not mutate it: an in-place change does not notify the components insi
6504
6669
  /** */
6505
6670
  "onqti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6506
6671
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6507
- "onqti-state-changed"?: ((e: Event) => void) | undefined;
6508
- /** 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. */
6509
6674
  "onqti-test-context-updated"?: ((e: Event) => void) | undefined;
6510
6675
  };
6511
6676
 
@@ -6524,8 +6689,8 @@ object, do not mutate it: an in-place change does not notify the components insi
6524
6689
  /** */
6525
6690
  "on:qti-test-connected"?: ((e: CustomEvent) => void) | undefined;
6526
6691
  /** The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume. */
6527
- "on:qti-state-changed"?: ((e: Event) => void) | undefined;
6528
- /** 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. */
6529
6694
  "on:qti-test-context-updated"?: ((e: Event) => void) | undefined;
6530
6695
 
6531
6696
  /** Set the innerHTML of the element */
@@ -6805,7 +6970,7 @@ export type CustomElements = {
6805
6970
  * Methods that can be called to access component functionality.
6806
6971
  *
6807
6972
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
6808
- * 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
6809
6974
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
6810
6975
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
6811
6976
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -6935,7 +7100,7 @@ export type CustomElements = {
6935
7100
  >;
6936
7101
 
6937
7102
  /**
6938
- *
7103
+ * Block feedback: shown or hidden by the outcome it is bound to.
6939
7104
  *
6940
7105
  * ## Attributes & Properties
6941
7106
  *
@@ -6946,18 +7111,30 @@ export type CustomElements = {
6946
7111
  * - `identifier`: undefined
6947
7112
  * - `showStatus`: undefined (property only)
6948
7113
  *
7114
+ * ## Slots
7115
+ *
7116
+ * Areas where markup can be added to the component.
7117
+ *
7118
+ * - `(default)`: The feedback content.
7119
+ *
6949
7120
  * ## Methods
6950
7121
  *
6951
7122
  * Methods that can be called to access component functionality.
6952
7123
  *
6953
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.
6954
7131
  */
6955
7132
  "qti-feedback-block": Partial<
6956
7133
  QtiFeedbackBlockProps & BaseProps<QtiFeedbackBlock> & BaseEvents
6957
7134
  >;
6958
7135
 
6959
7136
  /**
6960
- *
7137
+ * Inline feedback: shown or hidden by the outcome it is bound to.
6961
7138
  *
6962
7139
  * ## Attributes & Properties
6963
7140
  *
@@ -6968,11 +7145,23 @@ export type CustomElements = {
6968
7145
  * - `identifier`: undefined
6969
7146
  * - `showStatus`: undefined (property only)
6970
7147
  *
7148
+ * ## Slots
7149
+ *
7150
+ * Areas where markup can be added to the component.
7151
+ *
7152
+ * - `(default)`: The feedback content.
7153
+ *
6971
7154
  * ## Methods
6972
7155
  *
6973
7156
  * Methods that can be called to access component functionality.
6974
7157
  *
6975
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.
6976
7165
  */
6977
7166
  "qti-feedback-inline": Partial<
6978
7167
  QtiFeedbackInlineProps & BaseProps<QtiFeedbackInline> & BaseEvents
@@ -6992,14 +7181,14 @@ export type CustomElements = {
6992
7181
  *
6993
7182
  * Custom selectors for styling elements within the component.
6994
7183
  *
6995
- * - `qti-rubric-block`: the qti rubric block part
7184
+ * - `rubrics`: The rubric-block slot (was `qti-rubric-blocks`).
6996
7185
  */
6997
7186
  "qti-item-body": Partial<
6998
7187
  QtiItemBodyProps & BaseProps<QtiItemBody> & BaseEvents
6999
7188
  >;
7000
7189
 
7001
7190
  /**
7002
- *
7191
+ * Modal feedback: a dialog opened by the outcome it is bound to.
7003
7192
  *
7004
7193
  * ## Attributes & Properties
7005
7194
  *
@@ -7010,6 +7199,12 @@ export type CustomElements = {
7010
7199
  * - `identifier`: undefined
7011
7200
  * - `showStatus`: undefined (property only)
7012
7201
  *
7202
+ * ## Slots
7203
+ *
7204
+ * Areas where markup can be added to the component.
7205
+ *
7206
+ * - `(default)`: The feedback content.
7207
+ *
7013
7208
  * ## Methods
7014
7209
  *
7015
7210
  * Methods that can be called to access component functionality.
@@ -7017,6 +7212,12 @@ export type CustomElements = {
7017
7212
  * - `openFeedback() => void`: undefined
7018
7213
  * - `closeFeedback() => void`: undefined
7019
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).
7020
7221
  */
7021
7222
  "qti-modal-feedback": Partial<
7022
7223
  QtiModalFeedbackProps & BaseProps<QtiModalFeedback> & BaseEvents
@@ -7077,7 +7278,7 @@ export type CustomElements = {
7077
7278
 
7078
7279
  /**
7079
7280
  * Response processing as the item's own backend: it reads the item context, runs its rules once and
7080
- * 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
7081
7282
  * them; a host that scores elsewhere sends the same event instead.
7082
7283
  *
7083
7284
  * ## Methods
@@ -7086,7 +7287,7 @@ export type CustomElements = {
7086
7287
  *
7087
7288
  * - `processResponse({ numAttempts }: { numAttempts: number }) => void`: Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
7088
7289
  * non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
7089
- * 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
7090
7291
  * fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
7091
7292
  * run's writes stay in the copy until the item's next update.
7092
7293
  */
@@ -7331,12 +7532,13 @@ export type CustomElements = {
7331
7532
  "qti-gap-text": Partial<QtiGapTextProps & BaseProps<QtiGapText> & BaseEvents>;
7332
7533
 
7333
7534
  /**
7334
- *
7535
+ * A clickable area on the image of `qti-hotspot-interaction` or `qti-graphic-order-interaction`.
7335
7536
  *
7336
7537
  * ## Attributes & Properties
7337
7538
  *
7338
7539
  * Component attributes and properties that can be applied to the element or by using JavaScript.
7339
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.
7340
7542
  * - `aria-ordervalue`/`order`: undefined
7341
7543
  * - `identifier`: undefined
7342
7544
  * - `tabindex`/`tabIndex`: undefined
@@ -7356,6 +7558,14 @@ export type CustomElements = {
7356
7558
  *
7357
7559
  * - `handleDisabledChange(_oldValue: boolean, disabled: boolean) => void`: undefined
7358
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.
7359
7569
  */
7360
7570
  "qti-hotspot-choice": Partial<
7361
7571
  QtiHotspotChoiceProps & BaseProps<QtiHotspotChoice> & BaseEvents
@@ -7563,11 +7773,19 @@ export type CustomElements = {
7563
7773
  *
7564
7774
  * Custom selectors for styling elements within the component.
7565
7775
  *
7566
- * - `drags`: Wrapper around the associable choice slot.
7776
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
7567
7777
  * - `drops`: The container holding all drop targets.
7568
- * - `drop-row`: Container for one left/right drop pair.
7569
- * - `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).
7570
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`).
7571
7789
  */
7572
7790
  "qti-associate-interaction": Partial<
7573
7791
  QtiAssociateInteractionProps &
@@ -7638,7 +7856,14 @@ export type CustomElements = {
7638
7856
  * Methods that can be called to access component functionality.
7639
7857
  *
7640
7858
  * - `validate() => boolean`: undefined
7641
- * - `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.
7642
7867
  * - `reset() => void`: undefined
7643
7868
  * - `formResetCallback() => void`: undefined
7644
7869
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -7648,8 +7873,15 @@ export type CustomElements = {
7648
7873
  * Custom selectors for styling elements within the component.
7649
7874
  *
7650
7875
  * - `prompt`: Wrapper around the prompt slot.
7651
- * - `slot`: Wrapper around the default slot containing the choices.
7876
+ * - `choices`: The slot holding the choices (was `slot`).
7652
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.
7653
7885
  */
7654
7886
  "qti-choice-interaction": Partial<
7655
7887
  QtiChoiceInteractionProps & BaseProps<QtiChoiceInteraction> & BaseEvents
@@ -7724,10 +7956,24 @@ export type CustomElements = {
7724
7956
  * 5. Sets up postMessage listeners for CES API calls
7725
7957
  * - `handlePostMessage(event: MessageEvent) => void`: undefined
7726
7958
  * - `validate() => boolean`: undefined
7727
- * - `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.
7728
7967
  * - `reset() => void`: undefined
7729
7968
  * - `formResetCallback() => void`: undefined
7730
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.
7731
7977
  */
7732
7978
  "qti-custom-interaction": Partial<
7733
7979
  QtiCustomInteractionProps & BaseProps<QtiCustomInteraction> & BaseEvents
@@ -7769,7 +8015,7 @@ export type CustomElements = {
7769
8015
  *
7770
8016
  * Custom selectors for styling elements within the component.
7771
8017
  *
7772
- * - `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.
7773
8019
  */
7774
8020
  "qti-end-attempt-interaction": Partial<
7775
8021
  QtiEndAttemptInteractionProps &
@@ -7850,7 +8096,14 @@ export type CustomElements = {
7850
8096
  * Methods that can be called to access component functionality.
7851
8097
  *
7852
8098
  * - `validate() => boolean`: undefined
7853
- * - `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.
7854
8107
  * - `reset() => void`: undefined
7855
8108
  * - `formResetCallback() => void`: undefined
7856
8109
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -7860,6 +8113,14 @@ export type CustomElements = {
7860
8113
  * Custom selectors for styling elements within the component.
7861
8114
  *
7862
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.
7863
8124
  */
7864
8125
  "qti-extended-text-interaction": Partial<
7865
8126
  QtiExtendedTextInteractionProps &
@@ -7975,16 +8236,31 @@ export type CustomElements = {
7975
8236
  * - `saveResponse(value: string | string[]) => void`: undefined
7976
8237
  * - `reset(save: boolean) => void`: undefined
7977
8238
  * - `validate() => boolean`: undefined
7978
- * - `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.
7979
8247
  * - `formResetCallback() => void`: undefined
7980
8248
  *
7981
8249
  * ## CSS Parts
7982
8250
  *
7983
8251
  * Custom selectors for styling elements within the component.
7984
8252
  *
7985
- * - `drags`: Wrapper around the drag sources slot.
7986
- * - `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`, …).
7987
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`).
7988
8264
  */
7989
8265
  "qti-gap-match-interaction": Partial<
7990
8266
  QtiGapMatchInteractionProps & BaseProps<QtiGapMatchInteraction> & BaseEvents
@@ -7997,6 +8273,8 @@ export type CustomElements = {
7997
8273
  *
7998
8274
  * Component attributes and properties that can be applied to the element or by using JavaScript.
7999
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).
8000
8278
  * - `response`: undefined
8001
8279
  * - `response-identifier`/`responseIdentifier`: undefined
8002
8280
  * - `disabled`: undefined
@@ -8050,7 +8328,14 @@ export type CustomElements = {
8050
8328
  *
8051
8329
  * - `reset() => void`: undefined
8052
8330
  * - `validate() => boolean`: undefined
8053
- * - `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.
8054
8339
  * - `formResetCallback() => void`: undefined
8055
8340
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
8056
8341
  *
@@ -8058,10 +8343,16 @@ export type CustomElements = {
8058
8343
  *
8059
8344
  * Custom selectors for styling elements within the component.
8060
8345
  *
8061
- * - `line`: Each line drawn by the candidate.
8062
- * - `correct-line`: Each line displayed as part of the correct response.
8063
- * - `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.
8064
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.
8065
8356
  */
8066
8357
  "qti-graphic-associate-interaction": Partial<
8067
8358
  QtiGraphicAssociateInteractionProps &
@@ -8076,6 +8367,7 @@ export type CustomElements = {
8076
8367
  *
8077
8368
  * Component attributes and properties that can be applied to the element or by using JavaScript.
8078
8369
  *
8370
+ * - `maxAssociations`: QTI's default (information model §5.60). (property only)
8079
8371
  * - `autoSizeDropzones`: A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
8080
8372
  * `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
8081
8373
  * beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
@@ -8110,8 +8402,16 @@ export type CustomElements = {
8110
8402
  * Custom selectors for styling elements within the component.
8111
8403
  *
8112
8404
  * - `image`: Wrapper around the image slot.
8113
- * - `drags`: Wrapper around the drag sources slot.
8405
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
8114
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`).
8115
8415
  */
8116
8416
  "qti-graphic-gap-match-interaction": Partial<
8117
8417
  QtiGraphicGapMatchInteractionProps &
@@ -8179,7 +8479,14 @@ export type CustomElements = {
8179
8479
  * Methods that can be called to access component functionality.
8180
8480
  *
8181
8481
  * - `validate() => boolean`: undefined
8182
- * - `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.
8183
8490
  * - `reset() => void`: undefined
8184
8491
  * - `formResetCallback() => void`: undefined
8185
8492
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -8189,6 +8496,13 @@ export type CustomElements = {
8189
8496
  * Custom selectors for styling elements within the component.
8190
8497
  *
8191
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.
8192
8506
  */
8193
8507
  "qti-graphic-order-interaction": Partial<
8194
8508
  QtiGraphicOrderInteractionProps &
@@ -8256,10 +8570,30 @@ export type CustomElements = {
8256
8570
  * Methods that can be called to access component functionality.
8257
8571
  *
8258
8572
  * - `validate() => boolean`: undefined
8259
- * - `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.
8260
8581
  * - `reset() => void`: undefined
8261
8582
  * - `formResetCallback() => void`: undefined
8262
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.
8263
8597
  */
8264
8598
  "qti-hotspot-interaction": Partial<
8265
8599
  QtiHotspotInteractionProps & BaseProps<QtiHotspotInteraction> & BaseEvents
@@ -8325,7 +8659,14 @@ export type CustomElements = {
8325
8659
  * Methods that can be called to access component functionality.
8326
8660
  *
8327
8661
  * - `validate() => boolean`: undefined
8328
- * - `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.
8329
8670
  * - `reset() => void`: undefined
8330
8671
  * - `formResetCallback() => void`: undefined
8331
8672
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -8335,6 +8676,13 @@ export type CustomElements = {
8335
8676
  * Custom selectors for styling elements within the component.
8336
8677
  *
8337
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.
8338
8686
  */
8339
8687
  "qti-hottext-interaction": Partial<
8340
8688
  QtiHottextInteractionProps & BaseProps<QtiHottextInteraction> & BaseEvents
@@ -8442,7 +8790,14 @@ export type CustomElements = {
8442
8790
  * box and ignores the transform. (Same trap the drag-drop clone code documents for a chip picked
8443
8791
  * up mid-animation.)
8444
8792
  * - `validate() => boolean`: undefined
8445
- * - `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.
8446
8801
  * - `reset() => void`: undefined
8447
8802
  * - `menuAutoSizePropertyTarget() => HTMLElement | null`: Where the measured width is written. Inside the shadow root — see the header.
8448
8803
  * - `withMenuMeasurable(measure: () => T) => T`: Make the rows measurable, run `measure`, and put everything back.
@@ -8464,11 +8819,20 @@ export type CustomElements = {
8464
8819
  *
8465
8820
  * - `trigger`: The dropdown trigger button.
8466
8821
  * - `value`: The currently displayed value inside the trigger.
8467
- * - `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`).
8468
8823
  * - `menu`: The popover element containing the option list.
8469
- * - `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.
8470
- * - `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.
8471
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`.
8472
8836
  */
8473
8837
  "qti-inline-choice-interaction": Partial<
8474
8838
  QtiInlineChoiceInteractionProps &
@@ -8484,10 +8848,11 @@ export type CustomElements = {
8484
8848
  * Component attributes and properties that can be applied to the element or by using JavaScript.
8485
8849
  *
8486
8850
  * - `response-identifier`/`responseIdentifier`: Required. Identifier of the bound response variable.
8487
- * - `max-associations`/`maxAssociations`: Maximum pairings across the whole interaction; `0` means unlimited. QTI's own default is `1`; this element defaults to unlimited because a literal `1` breaks any multi-pair match item. See plans/interaction-attribute-spec-conformance.md.
8488
- * - `min-associations`/`minAssociations`: Minimum pairings for a valid response.
8851
+ * - `max-associations`/`maxAssociations`: Maximum pairings across the whole interaction; `0` means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89).
8852
+ * - `min-associations`/`minAssociations`: Minimum pairings for a valid response (QTI's default).
8853
+ * - `data-first-column-header`/`dataFirstColumnHeader`: QTI shared vocabulary, with `qti-match-tabular`: the text of the table's top-left cell.
8489
8854
  * - `shuffle`/`undefined`: Requests shuffling of both match sets. Applied by the transform pipeline (`qti-transformers`), not by this element.
8490
- * - `class`: QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop; the `qti-choices-*` values position the source set.
8855
+ * - `class`: QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop, and with it `qti-header-hidden` leaves out the column-header row; the `qti-choices-*` values position the source set.
8491
8856
  * - `auto-size-dropzones`/`undefined`: Extension, not QTI. Sizes every drop target to the widest chip so placement does not reflow the layout. The mixin default is `true`; this interaction is the one that overrides it to `false`, because a match target is a category card rather than a socket (see the field below and DROP-SIZING.md §1).
8492
8857
  * - `disable-animations`/`disableAnimations`: Extension, not QTI. Disables the FLIP move animation.
8493
8858
  * - `response`: undefined
@@ -8596,7 +8961,14 @@ export type CustomElements = {
8596
8961
  * - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
8597
8962
  * - `saveResponse(value: string | string[]) => void`: undefined
8598
8963
  * - `reset(save: boolean) => void`: undefined
8599
- * - `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.
8600
8972
  * - `formResetCallback() => void`: undefined
8601
8973
  *
8602
8974
  * ## CSS Parts
@@ -8604,16 +8976,24 @@ export type CustomElements = {
8604
8976
  * Custom selectors for styling elements within the component.
8605
8977
  *
8606
8978
  * - `grid`: The tabular grid container.
8607
- * - `corner`: The top-left corner cell of the grid.
8608
- * - `cols-wrap`: Wrapper row for the column headers.
8609
- * - `c-header`: The column header slot wrapper.
8610
- * - `rows-wrap`: Wrapper column for the row headers.
8611
- * - `r-header`: The row header slot wrapper.
8612
- * - `checkbox-grid`: The interactive cell grid area.
8613
- * - `input-cell`: Each cell's label element.
8614
- * - `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()`.
8615
- * - `control-mark`: The inner mark element; carries the same variant tokens as `control`.
8979
+ * - `corner`: The top-left corner cell of the grid; shows `data-first-column-header`.
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`.
8616
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`).
8617
8997
  */
8618
8998
  "qti-match-interaction": Partial<
8619
8999
  QtiMatchInteractionProps & BaseProps<QtiMatchInteraction> & BaseEvents
@@ -8670,7 +9050,7 @@ export type CustomElements = {
8670
9050
  * Areas where markup can be added to the component.
8671
9051
  *
8672
9052
  * - `prompt`: The prompt shown above the media element.
8673
- * - `(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.
8674
9054
  *
8675
9055
  * ## Methods
8676
9056
  *
@@ -8678,9 +9058,23 @@ export type CustomElements = {
8678
9058
  *
8679
9059
  * - `reset() => void`: undefined
8680
9060
  * - `validate() => boolean`: undefined
8681
- * - `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.
8682
9069
  * - `formResetCallback() => void`: undefined
8683
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.
8684
9078
  */
8685
9079
  "qti-media-interaction": Partial<
8686
9080
  QtiMediaInteractionProps & BaseProps<QtiMediaInteraction> & BaseEvents
@@ -8730,18 +9124,30 @@ export type CustomElements = {
8730
9124
  *
8731
9125
  * Custom selectors for styling elements within the component.
8732
9126
  *
8733
- * - `container`: The outer container wrapping drags and drops.
8734
- * - `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`).
8735
9129
  * - `drops`: The drop-target region.
8736
- * - `drop`: Each individual drop target.
8737
- * - `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`).
8738
9141
  */
8739
9142
  "qti-order-interaction": Partial<
8740
9143
  QtiOrderInteractionProps & BaseProps<QtiOrderInteraction> & BaseEvents
8741
9144
  >;
8742
9145
 
8743
9146
  /**
9147
+ * Portable custom interaction (PCI): hosts a third-party interaction module.
8744
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.
8745
9151
  *
8746
9152
  * ## Attributes & Properties
8747
9153
  *
@@ -8811,10 +9217,24 @@ export type CustomElements = {
8811
9217
  * - `disable() => void`: Method to disable the PCI for review mode
8812
9218
  * This can be used when showing the correct response
8813
9219
  * - `enable() => void`: Method to enable the PCI for interactive mode
8814
- * - `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.
8815
9228
  * - `reset() => void`: undefined
8816
9229
  * - `formResetCallback() => void`: undefined
8817
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.
8818
9238
  */
8819
9239
  "qti-portable-custom-interaction": Partial<
8820
9240
  QtiPortableCustomInteractionProps &
@@ -8905,10 +9325,24 @@ export type CustomElements = {
8905
9325
  * - `disable() => void`: Method to disable the PCI for review mode
8906
9326
  * This can be used when showing the correct response
8907
9327
  * - `enable() => void`: Method to enable the PCI for interactive mode
8908
- * - `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.
8909
9336
  * - `reset() => void`: undefined
8910
9337
  * - `formResetCallback() => void`: undefined
8911
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.
8912
9346
  */
8913
9347
  "qti-portable-custom-interaction-test": Partial<
8914
9348
  QtiPortableCustomInteractionTestProps &
@@ -8917,38 +9351,122 @@ export type CustomElements = {
8917
9351
  >;
8918
9352
 
8919
9353
  /**
8920
- * Position-object interaction: candidates place draggable objects onto a stage image.
8921
- *
8922
- * ## Slots
8923
- *
8924
- * 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.
8925
9358
  *
8926
- * - `(default)`: Default slot for the object choices and stage.
8927
- */
8928
- "qti-position-object-interaction": Partial<
8929
- QtiPositionObjectInteractionProps &
8930
- BaseProps<QtiPositionObjectInteraction> &
8931
- BaseEvents
8932
- >;
8933
-
8934
- /**
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.
8935
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.
8936
9368
  *
8937
9369
  * ## Attributes & Properties
8938
9370
  *
8939
9371
  * Component attributes and properties that can be applied to the element or by using JavaScript.
8940
9372
  *
8941
- * - `choiceOrdering`: undefined (property only)
8942
- * - `startX`: undefined (property only)
8943
- * - `startY`: undefined (property only)
8944
- * - `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`.
8945
9382
  *
8946
- * ## 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:
8947
9386
  *
8948
- * Methods that can be called to access component functionality.
9387
+ * orderInteraction.configContext = { allowReorder: false, validationDisplayMode: 'none' };
9388
+ *
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
8949
9439
  *
8950
- * - `dragElementHandler(event: MouseEvent) => void`: undefined
8951
- * - `removeMoveListener() => void`: undefined
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.
8952
9470
  */
8953
9471
  "qti-position-object-stage": Partial<
8954
9472
  QtiPositionObjectStageProps & BaseProps<QtiPositionObjectStage> & BaseEvents
@@ -9019,7 +9537,14 @@ export type CustomElements = {
9019
9537
  * Methods that can be called to access component functionality.
9020
9538
  *
9021
9539
  * - `validate() => boolean`: undefined
9022
- * - `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.
9023
9548
  * - `reset() => void`: undefined
9024
9549
  * - `formResetCallback() => void`: undefined
9025
9550
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -9037,7 +9562,15 @@ export type CustomElements = {
9037
9562
  *
9038
9563
  * Custom selectors for styling elements within the component.
9039
9564
  *
9040
- * - `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.
9041
9574
  */
9042
9575
  "qti-select-point-interaction": Partial<
9043
9576
  QtiSelectPointInteractionProps &
@@ -9107,7 +9640,14 @@ export type CustomElements = {
9107
9640
  * Methods that can be called to access component functionality.
9108
9641
  *
9109
9642
  * - `validate() => boolean`: undefined
9110
- * - `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.
9111
9651
  * - `reset() => void`: undefined
9112
9652
  * - `formResetCallback() => void`: undefined
9113
9653
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -9120,9 +9660,15 @@ export type CustomElements = {
9120
9660
  * - `bounds`: The min/max bounds label wrapper.
9121
9661
  * - `ticks`: The tick marks along the rail.
9122
9662
  * - `rail`: The rail element the knob slides along.
9123
- * - `knob`: The draggable knob.
9124
- * - `value`: The current value display (used twice in the layout).
9125
- * - `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.
9126
9672
  */
9127
9673
  "qti-slider-interaction": Partial<
9128
9674
  QtiSliderInteractionProps & BaseProps<QtiSliderInteraction> & BaseEvents
@@ -9187,7 +9733,14 @@ export type CustomElements = {
9187
9733
  * Methods that can be called to access component functionality.
9188
9734
  *
9189
9735
  * - `validate() => boolean`: undefined
9190
- * - `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.
9191
9744
  * - `reset() => void`: undefined
9192
9745
  * - `formResetCallback() => void`: undefined
9193
9746
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -9196,9 +9749,16 @@ export type CustomElements = {
9196
9749
  *
9197
9750
  * Custom selectors for styling elements within the component.
9198
9751
  *
9199
- * - `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`).
9200
9753
  * - `input`: The text input element.
9201
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.
9202
9762
  */
9203
9763
  "qti-text-entry-interaction": Partial<
9204
9764
  QtiTextEntryInteractionProps &
@@ -9264,9 +9824,29 @@ export type CustomElements = {
9264
9824
  *
9265
9825
  * - `reset() => void`: undefined
9266
9826
  * - `validate() => boolean`: undefined
9267
- * - `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.
9268
9835
  * - `formResetCallback() => void`: undefined
9269
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.
9270
9850
  */
9271
9851
  "qti-upload-interaction": Partial<
9272
9852
  QtiUploadInteractionProps & BaseProps<QtiUploadInteraction> & BaseEvents
@@ -9502,6 +10082,12 @@ export type CustomElements = {
9502
10082
  * - `identifier`: undefined
9503
10083
  * - `showStatus`: undefined (property only)
9504
10084
  *
10085
+ * ## Slots
10086
+ *
10087
+ * Areas where markup can be added to the component.
10088
+ *
10089
+ * - `(default)`: The feedback content.
10090
+ *
9505
10091
  * ## Methods
9506
10092
  *
9507
10093
  * Methods that can be called to access component functionality.
@@ -9511,6 +10097,12 @@ export type CustomElements = {
9511
10097
  * - `openFeedback() => void`: undefined
9512
10098
  * - `closeFeedback() => void`: undefined
9513
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).
9514
10106
  */
9515
10107
  "qti-test-feedback": Partial<
9516
10108
  QtiTestFeedbackProps & BaseProps<QtiTestFeedback> & BaseEvents
@@ -9670,14 +10262,14 @@ export type CustomElements = {
9670
10262
  * Events that will be emitted by the component.
9671
10263
  *
9672
10264
  * - `qti-test-connected`: undefined
9673
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
9674
- * - `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.
9675
10267
  */
9676
10268
  "qti-test": Partial<QtiTestProps & BaseProps<QtiTest> & BaseEvents>;
9677
10269
 
9678
10270
  /**
9679
10271
  * A button that ends the attempt of an item: its response is processed, `numAttempts` goes up and
9680
- * 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`,
9681
10273
  * which `<test-navigation>` handles.
9682
10274
  *
9683
10275
  * Put it inside `<test-navigation>`, either in the toolbar, where it ends the attempt of the item on
@@ -9883,7 +10475,7 @@ export type CustomElements = {
9883
10475
 
9884
10476
  /**
9885
10477
  * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
9886
- * 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>`.
9887
10479
  *
9888
10480
  * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
9889
10481
  * by it. The element only lays out the tree; give it a font, colour and height from the page.
@@ -9951,7 +10543,7 @@ export type CustomElements = {
9951
10543
 
9952
10544
  /**
9953
10545
  * Scores the test: on click the test resets its outcomes to their declared defaults, runs its
9954
- * 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.
9955
10547
  * The host decides where it sits, for example on the last item or in a review view.
9956
10548
  */
9957
10549
  "test-submit": Partial<TestSubmitProps & BaseProps<TestSubmit> & BaseEvents>;
@@ -10184,7 +10776,9 @@ export type CustomElements = {
10184
10776
 
10185
10777
  /**
10186
10778
  * Pick button — toggles pick mode on the controller: every reading element is highlighted and
10187
- * 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`.
10188
10782
  *
10189
10783
  * ## Attributes & Properties
10190
10784
  *
@@ -10206,6 +10800,7 @@ export type CustomElements = {
10206
10800
  *
10207
10801
  * - `idle`: / playing / paused
10208
10802
  * - `picking`: undefined
10803
+ * - `selected`: This toggle is on: pick mode is active
10209
10804
  */
10210
10805
  "test-tts-pick": Partial<
10211
10806
  TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
@@ -12230,7 +12825,7 @@ export type CustomElements = {
12230
12825
  * - `showCorrectResponse(show: boolean) => void`: undefined
12231
12826
  * - `showCandidateCorrection(show: boolean) => void`: undefined
12232
12827
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
12233
- * 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
12234
12829
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
12235
12830
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
12236
12831
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -12325,8 +12920,8 @@ export type CustomElements = {
12325
12920
  * Events that will be emitted by the component.
12326
12921
  *
12327
12922
  * - `qti-test-connected`: undefined
12328
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
12329
- * - `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.
12330
12925
  *
12331
12926
  * ## Methods
12332
12927
  *
@@ -12544,7 +13139,7 @@ export type CustomElementsSolidJs = {
12544
13139
  * Methods that can be called to access component functionality.
12545
13140
  *
12546
13141
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
12547
- * 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
12548
13143
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
12549
13144
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
12550
13145
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -12691,7 +13286,7 @@ export type CustomElementsSolidJs = {
12691
13286
  >;
12692
13287
 
12693
13288
  /**
12694
- *
13289
+ * Block feedback: shown or hidden by the outcome it is bound to.
12695
13290
  *
12696
13291
  * ## Attributes & Properties
12697
13292
  *
@@ -12702,11 +13297,23 @@ export type CustomElementsSolidJs = {
12702
13297
  * - `identifier`: undefined
12703
13298
  * - `showStatus`: undefined (property only)
12704
13299
  *
13300
+ * ## Slots
13301
+ *
13302
+ * Areas where markup can be added to the component.
13303
+ *
13304
+ * - `(default)`: The feedback content.
13305
+ *
12705
13306
  * ## Methods
12706
13307
  *
12707
13308
  * Methods that can be called to access component functionality.
12708
13309
  *
12709
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.
12710
13317
  */
12711
13318
  "qti-feedback-block": Partial<
12712
13319
  QtiFeedbackBlockProps &
@@ -12716,7 +13323,7 @@ export type CustomElementsSolidJs = {
12716
13323
  >;
12717
13324
 
12718
13325
  /**
12719
- *
13326
+ * Inline feedback: shown or hidden by the outcome it is bound to.
12720
13327
  *
12721
13328
  * ## Attributes & Properties
12722
13329
  *
@@ -12727,11 +13334,23 @@ export type CustomElementsSolidJs = {
12727
13334
  * - `identifier`: undefined
12728
13335
  * - `showStatus`: undefined (property only)
12729
13336
  *
13337
+ * ## Slots
13338
+ *
13339
+ * Areas where markup can be added to the component.
13340
+ *
13341
+ * - `(default)`: The feedback content.
13342
+ *
12730
13343
  * ## Methods
12731
13344
  *
12732
13345
  * Methods that can be called to access component functionality.
12733
13346
  *
12734
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.
12735
13354
  */
12736
13355
  "qti-feedback-inline": Partial<
12737
13356
  QtiFeedbackInlineProps &
@@ -12754,7 +13373,7 @@ export type CustomElementsSolidJs = {
12754
13373
  *
12755
13374
  * Custom selectors for styling elements within the component.
12756
13375
  *
12757
- * - `qti-rubric-block`: the qti rubric block part
13376
+ * - `rubrics`: The rubric-block slot (was `qti-rubric-blocks`).
12758
13377
  */
12759
13378
  "qti-item-body": Partial<
12760
13379
  QtiItemBodyProps &
@@ -12764,7 +13383,7 @@ export type CustomElementsSolidJs = {
12764
13383
  >;
12765
13384
 
12766
13385
  /**
12767
- *
13386
+ * Modal feedback: a dialog opened by the outcome it is bound to.
12768
13387
  *
12769
13388
  * ## Attributes & Properties
12770
13389
  *
@@ -12775,6 +13394,12 @@ export type CustomElementsSolidJs = {
12775
13394
  * - `identifier`: undefined
12776
13395
  * - `showStatus`: undefined (property only)
12777
13396
  *
13397
+ * ## Slots
13398
+ *
13399
+ * Areas where markup can be added to the component.
13400
+ *
13401
+ * - `(default)`: The feedback content.
13402
+ *
12778
13403
  * ## Methods
12779
13404
  *
12780
13405
  * Methods that can be called to access component functionality.
@@ -12782,6 +13407,12 @@ export type CustomElementsSolidJs = {
12782
13407
  * - `openFeedback() => void`: undefined
12783
13408
  * - `closeFeedback() => void`: undefined
12784
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).
12785
13416
  */
12786
13417
  "qti-modal-feedback": Partial<
12787
13418
  QtiModalFeedbackProps &
@@ -12851,7 +13482,7 @@ export type CustomElementsSolidJs = {
12851
13482
 
12852
13483
  /**
12853
13484
  * Response processing as the item's own backend: it reads the item context, runs its rules once and
12854
- * 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
12855
13486
  * them; a host that scores elsewhere sends the same event instead.
12856
13487
  *
12857
13488
  * ## Methods
@@ -12860,7 +13491,7 @@ export type CustomElementsSolidJs = {
12860
13491
  *
12861
13492
  * - `processResponse({ numAttempts }: { numAttempts: number }) => void`: Scores the attempt on the copy: sets `numAttempts` to the count the item hands over, resets a
12862
13493
  * non-adaptive item's outcomes to their defaults (QTI info model §2.5), runs the rules and sends
12863
- * 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
12864
13495
  * fresh copy. A rule that throws ends the run and the error propagates; nothing is sent, and the
12865
13496
  * run's writes stay in the copy until the item's next update.
12866
13497
  */
@@ -13137,12 +13768,13 @@ export type CustomElementsSolidJs = {
13137
13768
  >;
13138
13769
 
13139
13770
  /**
13140
- *
13771
+ * A clickable area on the image of `qti-hotspot-interaction` or `qti-graphic-order-interaction`.
13141
13772
  *
13142
13773
  * ## Attributes & Properties
13143
13774
  *
13144
13775
  * Component attributes and properties that can be applied to the element or by using JavaScript.
13145
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.
13146
13778
  * - `aria-ordervalue`/`order`: undefined
13147
13779
  * - `identifier`: undefined
13148
13780
  * - `tabindex`/`tabIndex`: undefined
@@ -13162,6 +13794,14 @@ export type CustomElementsSolidJs = {
13162
13794
  *
13163
13795
  * - `handleDisabledChange(_oldValue: boolean, disabled: boolean) => void`: undefined
13164
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.
13165
13805
  */
13166
13806
  "qti-hotspot-choice": Partial<
13167
13807
  QtiHotspotChoiceProps &
@@ -13386,11 +14026,19 @@ export type CustomElementsSolidJs = {
13386
14026
  *
13387
14027
  * Custom selectors for styling elements within the component.
13388
14028
  *
13389
- * - `drags`: Wrapper around the associable choice slot.
14029
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
13390
14030
  * - `drops`: The container holding all drop targets.
13391
- * - `drop-row`: Container for one left/right drop pair.
13392
- * - `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).
13393
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`).
13394
14042
  */
13395
14043
  "qti-associate-interaction": Partial<
13396
14044
  QtiAssociateInteractionProps &
@@ -13462,7 +14110,14 @@ export type CustomElementsSolidJs = {
13462
14110
  * Methods that can be called to access component functionality.
13463
14111
  *
13464
14112
  * - `validate() => boolean`: undefined
13465
- * - `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.
13466
14121
  * - `reset() => void`: undefined
13467
14122
  * - `formResetCallback() => void`: undefined
13468
14123
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -13472,8 +14127,15 @@ export type CustomElementsSolidJs = {
13472
14127
  * Custom selectors for styling elements within the component.
13473
14128
  *
13474
14129
  * - `prompt`: Wrapper around the prompt slot.
13475
- * - `slot`: Wrapper around the default slot containing the choices.
14130
+ * - `choices`: The slot holding the choices (was `slot`).
13476
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.
13477
14139
  */
13478
14140
  "qti-choice-interaction": Partial<
13479
14141
  QtiChoiceInteractionProps &
@@ -13551,10 +14213,24 @@ export type CustomElementsSolidJs = {
13551
14213
  * 5. Sets up postMessage listeners for CES API calls
13552
14214
  * - `handlePostMessage(event: MessageEvent) => void`: undefined
13553
14215
  * - `validate() => boolean`: undefined
13554
- * - `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.
13555
14224
  * - `reset() => void`: undefined
13556
14225
  * - `formResetCallback() => void`: undefined
13557
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.
13558
14234
  */
13559
14235
  "qti-custom-interaction": Partial<
13560
14236
  QtiCustomInteractionProps &
@@ -13599,7 +14275,7 @@ export type CustomElementsSolidJs = {
13599
14275
  *
13600
14276
  * Custom selectors for styling elements within the component.
13601
14277
  *
13602
- * - `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.
13603
14279
  */
13604
14280
  "qti-end-attempt-interaction": Partial<
13605
14281
  QtiEndAttemptInteractionProps &
@@ -13681,7 +14357,14 @@ export type CustomElementsSolidJs = {
13681
14357
  * Methods that can be called to access component functionality.
13682
14358
  *
13683
14359
  * - `validate() => boolean`: undefined
13684
- * - `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.
13685
14368
  * - `reset() => void`: undefined
13686
14369
  * - `formResetCallback() => void`: undefined
13687
14370
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -13691,6 +14374,14 @@ export type CustomElementsSolidJs = {
13691
14374
  * Custom selectors for styling elements within the component.
13692
14375
  *
13693
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.
13694
14385
  */
13695
14386
  "qti-extended-text-interaction": Partial<
13696
14387
  QtiExtendedTextInteractionProps &
@@ -13807,16 +14498,31 @@ export type CustomElementsSolidJs = {
13807
14498
  * - `saveResponse(value: string | string[]) => void`: undefined
13808
14499
  * - `reset(save: boolean) => void`: undefined
13809
14500
  * - `validate() => boolean`: undefined
13810
- * - `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.
13811
14509
  * - `formResetCallback() => void`: undefined
13812
14510
  *
13813
14511
  * ## CSS Parts
13814
14512
  *
13815
14513
  * Custom selectors for styling elements within the component.
13816
14514
  *
13817
- * - `drags`: Wrapper around the drag sources slot.
13818
- * - `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`, …).
13819
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`).
13820
14526
  */
13821
14527
  "qti-gap-match-interaction": Partial<
13822
14528
  QtiGapMatchInteractionProps &
@@ -13832,6 +14538,8 @@ export type CustomElementsSolidJs = {
13832
14538
  *
13833
14539
  * Component attributes and properties that can be applied to the element or by using JavaScript.
13834
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).
13835
14543
  * - `response`: undefined
13836
14544
  * - `response-identifier`/`responseIdentifier`: undefined
13837
14545
  * - `disabled`: undefined
@@ -13885,7 +14593,14 @@ export type CustomElementsSolidJs = {
13885
14593
  *
13886
14594
  * - `reset() => void`: undefined
13887
14595
  * - `validate() => boolean`: undefined
13888
- * - `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.
13889
14604
  * - `formResetCallback() => void`: undefined
13890
14605
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
13891
14606
  *
@@ -13893,10 +14608,16 @@ export type CustomElementsSolidJs = {
13893
14608
  *
13894
14609
  * Custom selectors for styling elements within the component.
13895
14610
  *
13896
- * - `line`: Each line drawn by the candidate.
13897
- * - `correct-line`: Each line displayed as part of the correct response.
13898
- * - `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.
13899
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.
13900
14621
  */
13901
14622
  "qti-graphic-associate-interaction": Partial<
13902
14623
  QtiGraphicAssociateInteractionProps &
@@ -13912,6 +14633,7 @@ export type CustomElementsSolidJs = {
13912
14633
  *
13913
14634
  * Component attributes and properties that can be applied to the element or by using JavaScript.
13914
14635
  *
14636
+ * - `maxAssociations`: QTI's default (information model §5.60). (property only)
13915
14637
  * - `autoSizeDropzones`: A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
13916
14638
  * `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
13917
14639
  * beat the percentage box from `positionShapes` as soon as the graphic rendered narrower than its
@@ -13946,8 +14668,16 @@ export type CustomElementsSolidJs = {
13946
14668
  * Custom selectors for styling elements within the component.
13947
14669
  *
13948
14670
  * - `image`: Wrapper around the image slot.
13949
- * - `drags`: Wrapper around the drag sources slot.
14671
+ * - `bank`: The slot holding the unplaced chips (was `drags`).
13950
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`).
13951
14681
  */
13952
14682
  "qti-graphic-gap-match-interaction": Partial<
13953
14683
  QtiGraphicGapMatchInteractionProps &
@@ -14016,7 +14746,14 @@ export type CustomElementsSolidJs = {
14016
14746
  * Methods that can be called to access component functionality.
14017
14747
  *
14018
14748
  * - `validate() => boolean`: undefined
14019
- * - `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.
14020
14757
  * - `reset() => void`: undefined
14021
14758
  * - `formResetCallback() => void`: undefined
14022
14759
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14026,6 +14763,13 @@ export type CustomElementsSolidJs = {
14026
14763
  * Custom selectors for styling elements within the component.
14027
14764
  *
14028
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.
14029
14773
  */
14030
14774
  "qti-graphic-order-interaction": Partial<
14031
14775
  QtiGraphicOrderInteractionProps &
@@ -14094,10 +14838,30 @@ export type CustomElementsSolidJs = {
14094
14838
  * Methods that can be called to access component functionality.
14095
14839
  *
14096
14840
  * - `validate() => boolean`: undefined
14097
- * - `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.
14098
14849
  * - `reset() => void`: undefined
14099
14850
  * - `formResetCallback() => void`: undefined
14100
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.
14101
14865
  */
14102
14866
  "qti-hotspot-interaction": Partial<
14103
14867
  QtiHotspotInteractionProps &
@@ -14166,7 +14930,14 @@ export type CustomElementsSolidJs = {
14166
14930
  * Methods that can be called to access component functionality.
14167
14931
  *
14168
14932
  * - `validate() => boolean`: undefined
14169
- * - `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.
14170
14941
  * - `reset() => void`: undefined
14171
14942
  * - `formResetCallback() => void`: undefined
14172
14943
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14176,6 +14947,13 @@ export type CustomElementsSolidJs = {
14176
14947
  * Custom selectors for styling elements within the component.
14177
14948
  *
14178
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.
14179
14957
  */
14180
14958
  "qti-hottext-interaction": Partial<
14181
14959
  QtiHottextInteractionProps &
@@ -14286,7 +15064,14 @@ export type CustomElementsSolidJs = {
14286
15064
  * box and ignores the transform. (Same trap the drag-drop clone code documents for a chip picked
14287
15065
  * up mid-animation.)
14288
15066
  * - `validate() => boolean`: undefined
14289
- * - `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.
14290
15075
  * - `reset() => void`: undefined
14291
15076
  * - `menuAutoSizePropertyTarget() => HTMLElement | null`: Where the measured width is written. Inside the shadow root — see the header.
14292
15077
  * - `withMenuMeasurable(measure: () => T) => T`: Make the rows measurable, run `measure`, and put everything back.
@@ -14308,11 +15093,20 @@ export type CustomElementsSolidJs = {
14308
15093
  *
14309
15094
  * - `trigger`: The dropdown trigger button.
14310
15095
  * - `value`: The currently displayed value inside the trigger.
14311
- * - `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`).
14312
15097
  * - `menu`: The popover element containing the option list.
14313
- * - `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.
14314
- * - `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.
14315
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`.
14316
15110
  */
14317
15111
  "qti-inline-choice-interaction": Partial<
14318
15112
  QtiInlineChoiceInteractionProps &
@@ -14329,10 +15123,11 @@ export type CustomElementsSolidJs = {
14329
15123
  * Component attributes and properties that can be applied to the element or by using JavaScript.
14330
15124
  *
14331
15125
  * - `response-identifier`/`responseIdentifier`: Required. Identifier of the bound response variable.
14332
- * - `max-associations`/`maxAssociations`: Maximum pairings across the whole interaction; `0` means unlimited. QTI's own default is `1`; this element defaults to unlimited because a literal `1` breaks any multi-pair match item. See plans/interaction-attribute-spec-conformance.md.
14333
- * - `min-associations`/`minAssociations`: Minimum pairings for a valid response.
15126
+ * - `max-associations`/`maxAssociations`: Maximum pairings across the whole interaction; `0` means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89).
15127
+ * - `min-associations`/`minAssociations`: Minimum pairings for a valid response (QTI's default).
15128
+ * - `data-first-column-header`/`dataFirstColumnHeader`: QTI shared vocabulary, with `qti-match-tabular`: the text of the table's top-left cell.
14334
15129
  * - `shuffle`/`undefined`: Requests shuffling of both match sets. Applied by the transform pipeline (`qti-transformers`), not by this element.
14335
- * - `class`: QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop; the `qti-choices-*` values position the source set.
15130
+ * - `class`: QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid instead of drag-and-drop, and with it `qti-header-hidden` leaves out the column-header row; the `qti-choices-*` values position the source set.
14336
15131
  * - `auto-size-dropzones`/`undefined`: Extension, not QTI. Sizes every drop target to the widest chip so placement does not reflow the layout. The mixin default is `true`; this interaction is the one that overrides it to `false`, because a match target is a category card rather than a socket (see the field below and DROP-SIZING.md §1).
14337
15132
  * - `disable-animations`/`disableAnimations`: Extension, not QTI. Disables the FLIP move animation.
14338
15133
  * - `response`: undefined
@@ -14441,7 +15236,14 @@ export type CustomElementsSolidJs = {
14441
15236
  * - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
14442
15237
  * - `saveResponse(value: string | string[]) => void`: undefined
14443
15238
  * - `reset(save: boolean) => void`: undefined
14444
- * - `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.
14445
15247
  * - `formResetCallback() => void`: undefined
14446
15248
  *
14447
15249
  * ## CSS Parts
@@ -14449,16 +15251,24 @@ export type CustomElementsSolidJs = {
14449
15251
  * Custom selectors for styling elements within the component.
14450
15252
  *
14451
15253
  * - `grid`: The tabular grid container.
14452
- * - `corner`: The top-left corner cell of the grid.
14453
- * - `cols-wrap`: Wrapper row for the column headers.
14454
- * - `c-header`: The column header slot wrapper.
14455
- * - `rows-wrap`: Wrapper column for the row headers.
14456
- * - `r-header`: The row header slot wrapper.
14457
- * - `checkbox-grid`: The interactive cell grid area.
14458
- * - `input-cell`: Each cell's label element.
14459
- * - `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()`.
14460
- * - `control-mark`: The inner mark element; carries the same variant tokens as `control`.
15254
+ * - `corner`: The top-left corner cell of the grid; shows `data-first-column-header`.
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`.
14461
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`).
14462
15272
  */
14463
15273
  "qti-match-interaction": Partial<
14464
15274
  QtiMatchInteractionProps &
@@ -14518,7 +15328,7 @@ export type CustomElementsSolidJs = {
14518
15328
  * Areas where markup can be added to the component.
14519
15329
  *
14520
15330
  * - `prompt`: The prompt shown above the media element.
14521
- * - `(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.
14522
15332
  *
14523
15333
  * ## Methods
14524
15334
  *
@@ -14526,9 +15336,23 @@ export type CustomElementsSolidJs = {
14526
15336
  *
14527
15337
  * - `reset() => void`: undefined
14528
15338
  * - `validate() => boolean`: undefined
14529
- * - `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.
14530
15347
  * - `formResetCallback() => void`: undefined
14531
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.
14532
15356
  */
14533
15357
  "qti-media-interaction": Partial<
14534
15358
  QtiMediaInteractionProps &
@@ -14581,11 +15405,20 @@ export type CustomElementsSolidJs = {
14581
15405
  *
14582
15406
  * Custom selectors for styling elements within the component.
14583
15407
  *
14584
- * - `container`: The outer container wrapping drags and drops.
14585
- * - `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`).
14586
15410
  * - `drops`: The drop-target region.
14587
- * - `drop`: Each individual drop target.
14588
- * - `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`).
14589
15422
  */
14590
15423
  "qti-order-interaction": Partial<
14591
15424
  QtiOrderInteractionProps &
@@ -14595,7 +15428,10 @@ export type CustomElementsSolidJs = {
14595
15428
  >;
14596
15429
 
14597
15430
  /**
15431
+ * Portable custom interaction (PCI): hosts a third-party interaction module.
14598
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.
14599
15435
  *
14600
15436
  * ## Attributes & Properties
14601
15437
  *
@@ -14665,10 +15501,24 @@ export type CustomElementsSolidJs = {
14665
15501
  * - `disable() => void`: Method to disable the PCI for review mode
14666
15502
  * This can be used when showing the correct response
14667
15503
  * - `enable() => void`: Method to enable the PCI for interactive mode
14668
- * - `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.
14669
15512
  * - `reset() => void`: undefined
14670
15513
  * - `formResetCallback() => void`: undefined
14671
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.
14672
15522
  */
14673
15523
  "qti-portable-custom-interaction": Partial<
14674
15524
  QtiPortableCustomInteractionProps &
@@ -14760,10 +15610,24 @@ export type CustomElementsSolidJs = {
14760
15610
  * - `disable() => void`: Method to disable the PCI for review mode
14761
15611
  * This can be used when showing the correct response
14762
15612
  * - `enable() => void`: Method to enable the PCI for interactive mode
14763
- * - `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.
14764
15621
  * - `reset() => void`: undefined
14765
15622
  * - `formResetCallback() => void`: undefined
14766
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.
14767
15631
  */
14768
15632
  "qti-portable-custom-interaction-test": Partial<
14769
15633
  QtiPortableCustomInteractionTestProps &
@@ -14773,13 +15637,105 @@ export type CustomElementsSolidJs = {
14773
15637
  >;
14774
15638
 
14775
15639
  /**
14776
- * 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
14777
15700
  *
14778
15701
  * ## Slots
14779
15702
  *
14780
15703
  * Areas where markup can be added to the component.
14781
15704
  *
14782
- * - `(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.
14783
15739
  */
14784
15740
  "qti-position-object-interaction": Partial<
14785
15741
  QtiPositionObjectInteractionProps &
@@ -14789,23 +15745,15 @@ export type CustomElementsSolidJs = {
14789
15745
  >;
14790
15746
 
14791
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.
14792
15751
  *
15752
+ * ## Slots
14793
15753
  *
14794
- * ## Attributes & Properties
14795
- *
14796
- * Component attributes and properties that can be applied to the element or by using JavaScript.
14797
- *
14798
- * - `choiceOrdering`: undefined (property only)
14799
- * - `startX`: undefined (property only)
14800
- * - `startY`: undefined (property only)
14801
- * - `dragElement`: undefined (property only)
14802
- *
14803
- * ## Methods
14804
- *
14805
- * Methods that can be called to access component functionality.
15754
+ * Areas where markup can be added to the component.
14806
15755
  *
14807
- * - `dragElementHandler(event: MouseEvent) => void`: undefined
14808
- * - `removeMoveListener() => void`: undefined
15756
+ * - `(default)`: The stage image (`img` or `picture`), then the interactions.
14809
15757
  */
14810
15758
  "qti-position-object-stage": Partial<
14811
15759
  QtiPositionObjectStageProps &
@@ -14879,7 +15827,14 @@ export type CustomElementsSolidJs = {
14879
15827
  * Methods that can be called to access component functionality.
14880
15828
  *
14881
15829
  * - `validate() => boolean`: undefined
14882
- * - `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.
14883
15838
  * - `reset() => void`: undefined
14884
15839
  * - `formResetCallback() => void`: undefined
14885
15840
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14897,7 +15852,15 @@ export type CustomElementsSolidJs = {
14897
15852
  *
14898
15853
  * Custom selectors for styling elements within the component.
14899
15854
  *
14900
- * - `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.
14901
15864
  */
14902
15865
  "qti-select-point-interaction": Partial<
14903
15866
  QtiSelectPointInteractionProps &
@@ -14968,7 +15931,14 @@ export type CustomElementsSolidJs = {
14968
15931
  * Methods that can be called to access component functionality.
14969
15932
  *
14970
15933
  * - `validate() => boolean`: undefined
14971
- * - `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.
14972
15942
  * - `reset() => void`: undefined
14973
15943
  * - `formResetCallback() => void`: undefined
14974
15944
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -14981,9 +15951,15 @@ export type CustomElementsSolidJs = {
14981
15951
  * - `bounds`: The min/max bounds label wrapper.
14982
15952
  * - `ticks`: The tick marks along the rail.
14983
15953
  * - `rail`: The rail element the knob slides along.
14984
- * - `knob`: The draggable knob.
14985
- * - `value`: The current value display (used twice in the layout).
14986
- * - `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.
14987
15963
  */
14988
15964
  "qti-slider-interaction": Partial<
14989
15965
  QtiSliderInteractionProps &
@@ -15051,7 +16027,14 @@ export type CustomElementsSolidJs = {
15051
16027
  * Methods that can be called to access component functionality.
15052
16028
  *
15053
16029
  * - `validate() => boolean`: undefined
15054
- * - `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.
15055
16038
  * - `reset() => void`: undefined
15056
16039
  * - `formResetCallback() => void`: undefined
15057
16040
  * - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
@@ -15060,9 +16043,16 @@ export type CustomElementsSolidJs = {
15060
16043
  *
15061
16044
  * Custom selectors for styling elements within the component.
15062
16045
  *
15063
- * - `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`).
15064
16047
  * - `input`: The text input element.
15065
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.
15066
16056
  */
15067
16057
  "qti-text-entry-interaction": Partial<
15068
16058
  QtiTextEntryInteractionProps &
@@ -15129,9 +16119,29 @@ export type CustomElementsSolidJs = {
15129
16119
  *
15130
16120
  * - `reset() => void`: undefined
15131
16121
  * - `validate() => boolean`: undefined
15132
- * - `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.
15133
16130
  * - `formResetCallback() => void`: undefined
15134
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.
15135
16145
  */
15136
16146
  "qti-upload-interaction": Partial<
15137
16147
  QtiUploadInteractionProps &
@@ -15397,6 +16407,12 @@ export type CustomElementsSolidJs = {
15397
16407
  * - `identifier`: undefined
15398
16408
  * - `showStatus`: undefined (property only)
15399
16409
  *
16410
+ * ## Slots
16411
+ *
16412
+ * Areas where markup can be added to the component.
16413
+ *
16414
+ * - `(default)`: The feedback content.
16415
+ *
15400
16416
  * ## Methods
15401
16417
  *
15402
16418
  * Methods that can be called to access component functionality.
@@ -15406,6 +16422,12 @@ export type CustomElementsSolidJs = {
15406
16422
  * - `openFeedback() => void`: undefined
15407
16423
  * - `closeFeedback() => void`: undefined
15408
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).
15409
16431
  */
15410
16432
  "qti-test-feedback": Partial<
15411
16433
  QtiTestFeedbackProps &
@@ -15577,8 +16599,8 @@ export type CustomElementsSolidJs = {
15577
16599
  * Events that will be emitted by the component.
15578
16600
  *
15579
16601
  * - `qti-test-connected`: undefined
15580
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
15581
- * - `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.
15582
16604
  */
15583
16605
  "qti-test": Partial<
15584
16606
  QtiTestProps & QtiTestSolidJsProps & BaseProps<QtiTest> & BaseEvents
@@ -15586,7 +16608,7 @@ export type CustomElementsSolidJs = {
15586
16608
 
15587
16609
  /**
15588
16610
  * A button that ends the attempt of an item: its response is processed, `numAttempts` goes up and
15589
- * 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`,
15590
16612
  * which `<test-navigation>` handles.
15591
16613
  *
15592
16614
  * Put it inside `<test-navigation>`, either in the toolbar, where it ends the attempt of the item on
@@ -15820,7 +16842,7 @@ export type CustomElementsSolidJs = {
15820
16842
 
15821
16843
  /**
15822
16844
  * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
15823
- * 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>`.
15824
16846
  *
15825
16847
  * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
15826
16848
  * by it. The element only lays out the tree; give it a font, colour and height from the page.
@@ -15899,7 +16921,7 @@ export type CustomElementsSolidJs = {
15899
16921
 
15900
16922
  /**
15901
16923
  * Scores the test: on click the test resets its outcomes to their declared defaults, runs its
15902
- * 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.
15903
16925
  * The host decides where it sits, for example on the last item or in a review view.
15904
16926
  */
15905
16927
  "test-submit": Partial<
@@ -16163,7 +17185,9 @@ export type CustomElementsSolidJs = {
16163
17185
 
16164
17186
  /**
16165
17187
  * Pick button — toggles pick mode on the controller: every reading element is highlighted and
16166
- * 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`.
16167
17191
  *
16168
17192
  * ## Attributes & Properties
16169
17193
  *
@@ -16185,6 +17209,7 @@ export type CustomElementsSolidJs = {
16185
17209
  *
16186
17210
  * - `idle`: / playing / paused
16187
17211
  * - `picking`: undefined
17212
+ * - `selected`: This toggle is on: pick mode is active
16188
17213
  */
16189
17214
  "test-tts-pick": Partial<
16190
17215
  TestTtsPickProps &
@@ -18406,7 +19431,7 @@ export type CustomElementsSolidJs = {
18406
19431
  * - `showCorrectResponse(show: boolean) => void`: undefined
18407
19432
  * - `showCandidateCorrection(show: boolean) => void`: undefined
18408
19433
  * - `processResponse(countNumAttempts = true, reportValidityAfterScoring = true) => void`: Scores the attempt. The item does not score itself: its response processing does, like a
18409
- * 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
18410
19435
  * update. The item keeps the attempt count (QTI info model §2.2.2: the delivery engine maintains
18411
19436
  * numAttempts) and hands the new count to the run, whose rules may read it. Without response
18412
19437
  * processing the item only counts the attempt. A run that throws still counts the attempt and applies
@@ -18506,8 +19531,8 @@ export type CustomElementsSolidJs = {
18506
19531
  * Events that will be emitted by the component.
18507
19532
  *
18508
19533
  * - `qti-test-connected`: undefined
18509
- * - `qti-state-changed`: The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
18510
- * - `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.
18511
19536
  *
18512
19537
  * ## Methods
18513
19538
  *