@citolab/qti-components 10.0.0-next.12 → 10.0.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +447 -412
  3. package/dist/base.d.ts +3 -3
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-5K5JO7OG.js → chunk-6XRNX574.js} +363 -320
  6. package/dist/chunk-6XRNX574.js.map +1 -0
  7. package/dist/{chunk-AVZRY5SQ.js → chunk-BZPMN57E.js} +2 -2
  8. package/dist/{chunk-YOCOLMGB.js → chunk-C7SYDLMG.js} +197 -93
  9. package/dist/chunk-C7SYDLMG.js.map +1 -0
  10. package/dist/{chunk-OHRAG2UM.js → chunk-CCI3QMQA.js} +53 -16
  11. package/dist/chunk-CCI3QMQA.js.map +1 -0
  12. package/dist/{chunk-RWMY7KRT.js → chunk-HGKLF7SP.js} +2 -2
  13. package/dist/{chunk-AJ5U5KXR.js → chunk-LEF7AAYZ.js} +2 -2
  14. package/dist/{chunk-O76BOKAP.js → chunk-MP2SUN7J.js} +199 -90
  15. package/dist/chunk-MP2SUN7J.js.map +1 -0
  16. package/dist/{chunk-M7X6TWSX.js → chunk-NYNL5HSR.js} +2 -2
  17. package/dist/{chunk-T7YSBBAA.js → chunk-O2ENNGKV.js} +3 -2
  18. package/dist/chunk-O2ENNGKV.js.map +1 -0
  19. package/dist/chunk-Q4MJCEDE.js +7 -0
  20. package/dist/chunk-Q4MJCEDE.js.map +1 -0
  21. package/dist/{chunk-PLP3YX6C.js → chunk-S5GLISQA.js} +2 -2
  22. package/dist/{chunk-XXJAE6AP.js → chunk-SWNFCQ4G.js} +3 -3
  23. package/dist/{chunk-LCGPLQLE.js → chunk-TU34FFWF.js} +8 -3
  24. package/dist/chunk-TU34FFWF.js.map +1 -0
  25. package/dist/{config.context.d-BvU9r-Mg.d.ts → config.context.d-BniMHSBB.d.ts} +3 -2
  26. package/dist/corrections.d.ts +17 -7
  27. package/dist/corrections.js +8 -8
  28. package/dist/elements.d.ts +54 -12
  29. package/dist/elements.js +3 -3
  30. package/dist/index.d.ts +6 -6
  31. package/dist/index.js +15 -13
  32. package/dist/interactions.d.ts +17 -5
  33. package/dist/interactions.js +3 -3
  34. package/dist/item.css +69 -24
  35. package/dist/item.d.ts +3 -3
  36. package/dist/item.js +4 -4
  37. package/dist/loader.d.ts +1 -1
  38. package/dist/processing.d.ts +8 -4
  39. package/dist/processing.js +3 -3
  40. package/dist/qti-components-jsx.d.ts +323 -108
  41. package/dist/{qti-item.d-B1gffYCL.d.ts → qti-item.d-BqWYBdV2.d.ts} +1 -1
  42. package/dist/{qti-rule-base.d-Bdzg8eGH.d.ts → qti-rule-base.d-CeKP0Ooi.d.ts} +2 -2
  43. package/dist/{qti-test.d-D5C7W8Lg.d.ts → qti-test.d-C0I1BIdH.d.ts} +58 -6
  44. package/dist/{qti-text-entry-interaction.d-CU-fAAD1.d.ts → qti-text-entry-interaction.d-V4sWE9TO.d.ts} +37 -9
  45. package/dist/{record.d-wB9uYs-j.d.ts → record.d-C6m0Y4xr.d.ts} +1 -1
  46. package/dist/test.d.ts +8 -5
  47. package/dist/test.js +7 -5
  48. package/package.json +10 -10
  49. package/dist/chunk-5K5JO7OG.js.map +0 -1
  50. package/dist/chunk-LCGPLQLE.js.map +0 -1
  51. package/dist/chunk-O76BOKAP.js.map +0 -1
  52. package/dist/chunk-OHRAG2UM.js.map +0 -1
  53. package/dist/chunk-T7YSBBAA.js.map +0 -1
  54. package/dist/chunk-YKXVAXSI.js +0 -7
  55. package/dist/chunk-YKXVAXSI.js.map +0 -1
  56. package/dist/chunk-YOCOLMGB.js.map +0 -1
  57. /package/dist/{chunk-AVZRY5SQ.js.map → chunk-BZPMN57E.js.map} +0 -0
  58. /package/dist/{chunk-RWMY7KRT.js.map → chunk-HGKLF7SP.js.map} +0 -0
  59. /package/dist/{chunk-AJ5U5KXR.js.map → chunk-LEF7AAYZ.js.map} +0 -0
  60. /package/dist/{chunk-M7X6TWSX.js.map → chunk-NYNL5HSR.js.map} +0 -0
  61. /package/dist/{chunk-PLP3YX6C.js.map → chunk-S5GLISQA.js.map} +0 -0
  62. /package/dist/{chunk-XXJAE6AP.js.map → chunk-SWNFCQ4G.js.map} +0 -0
@@ -2,7 +2,7 @@ import * as lit from 'lit';
2
2
  import { LitElement } from 'lit';
3
3
  import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
4
4
  import { C as ComputedItemContext, V as View } from './session.context.d-DW09Lrie.js';
5
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
5
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
6
6
  import { QtiAssessmentItem } from './elements.js';
7
7
 
8
8
  /**
@@ -21,8 +21,8 @@ declare abstract class QtiRuleElement extends LitElement implements QtiRuleBase
21
21
  * every one of those loops without each of them having to report upwards.
22
22
  *
23
23
  * `qti-response-processing` catches it at the top of the run. The outcomes set
24
- * before the exit are kept, because each `qti-set-outcome-value` has already
25
- * dispatched by the time this is thrown.
24
+ * before the exit are kept: they are already on the run's working copy, which
25
+ * the item applies once the run ends.
26
26
  */
27
27
  declare class QtiExitResponseSignal extends Error {
28
28
  constructor();
@@ -1,5 +1,5 @@
1
1
  import * as lit from 'lit';
2
- import { LitElement, PropertyValues, nothing } from 'lit';
2
+ import { LitElement, PropertyValues, TemplateResult, nothing } from 'lit';
3
3
  import { b as transformTestApi, t as transformItemApi } from './qti-transform-test.d-BL7GGFJj.js';
4
4
  import { C as ComputedContext, a as ComputedItem } from './computed.types.d-IXACuBr7.js';
5
5
  import { QtiAssessmentItem, QtiModalFeedback } from './elements.js';
@@ -8,8 +8,8 @@ import { T as TestContext, Q as QtiExpression, a as QtiExpressionBase } from './
8
8
  import { TemplateFunction } from '@heximal/templates';
9
9
  import { h as VariableValue, b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
10
10
  import { S as SessionContext, V as View } from './session.context.d-DW09Lrie.js';
11
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
12
- import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js';
11
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
12
+ import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
13
13
 
14
14
  declare class QtiAssessmentTest extends LitElement {
15
15
  #private;
@@ -491,6 +491,7 @@ declare class TestNavigation extends LitElement {
491
491
  protected get activeAssessmentItem(): QtiAssessmentItem | undefined;
492
492
  render(): lit.TemplateResult<1>;
493
493
  protected willUpdate(_changedProperties: PropertyValues): void;
494
+ protected updated(changedProperties: PropertyValues): void;
494
495
  }
495
496
  declare global {
496
497
  interface HTMLElementTagNameMap {
@@ -516,7 +517,7 @@ declare class TestNext extends LitElement {
516
517
  sectionItems: ComputedItem[];
517
518
  itemIndex: number;
518
519
  _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
519
- static styles: lit.CSSResult;
520
+ static styles: lit.CSSResult[];
520
521
  constructor();
521
522
  connectedCallback(): void;
522
523
  willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
@@ -573,9 +574,34 @@ declare global {
573
574
  }
574
575
  }
575
576
 
577
+ /**
578
+ * A button that ends the attempt of an item: its response is processed, `numAttempts` goes up and
579
+ * feedback is shown as the item's session control allows. It dispatches `cito-test-end-attempt`,
580
+ * which `<test-navigation>` handles.
581
+ *
582
+ * Put it inside `<test-navigation>`, either in the toolbar, where it ends the attempt of the item on
583
+ * screen, or in the `<template item-ref>`, where each item gets its own and it ends the attempt of
584
+ * that item: with `<qti-test navigate="section">` every item of the section is on screen, each with
585
+ * its own button. Give it an `item` (an item-ref identifier) to end the attempt of that item instead,
586
+ * wherever the button sits.
587
+ *
588
+ * It is `disabled` by the state of its item: when the attempts allowed by `max-attempts` are used
589
+ * (non-adaptive items), when the last attempt was already optimal (non-adaptive items), when an
590
+ * adaptive item is completed, or, when skipping is not allowed, while the response is invalid or
591
+ * still the default.
592
+ *
593
+ * @slot - The label.
594
+ * @attr require-answer - Also disabled while the response is invalid or still the default, without `allow-skipping="false"` (which is about leaving an item, not about ending its attempt).
595
+ * @attr item - The item-ref identifier whose attempt this button ends; without it, the item it is stamped into, or else the one on screen.
596
+ * @attr disabled - Reflected: the item's attempt cannot be ended.
597
+ */
576
598
  declare class TestEndAttempt extends LitElement {
599
+ #private;
577
600
  protected computedContext: ComputedContext;
578
601
  _internalDisabled: boolean;
602
+ item?: string;
603
+ /** Ends no attempt until the response is valid and not the default, whatever the item's `allow-skipping` says. */
604
+ requireAnswer: boolean;
579
605
  _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
580
606
  static styles: lit.CSSResult;
581
607
  constructor();
@@ -675,7 +701,7 @@ declare class TestBookmark extends LitElement {
675
701
  item?: string;
676
702
  bookmarked: boolean;
677
703
  disabled: boolean;
678
- static styles: lit.CSSResult;
704
+ static styles: lit.CSSResult[];
679
705
  constructor();
680
706
  connectedCallback(): void;
681
707
  protected willUpdate(): void;
@@ -728,6 +754,32 @@ declare global {
728
754
  }
729
755
  }
730
756
 
757
+ /**
758
+ * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
759
+ * on every `cito-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
760
+ *
761
+ * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
762
+ * by it. The element only lays out the tree; give it a font, colour and height from the page.
763
+ *
764
+ * @customElement test-print-state
765
+ * @csspart key - the name of a field, or the label of a list entry
766
+ * @csspart value - a value that is not an object or a list
767
+ * @csspart count - the number of entries of a folded object or list
768
+ */
769
+ declare class TestPrintState extends LitElement {
770
+ #private;
771
+ private testState?;
772
+ static styles: lit.CSSResult;
773
+ connectedCallback(): void;
774
+ disconnectedCallback(): void;
775
+ render(): TemplateResult<1> | typeof nothing;
776
+ }
777
+ declare global {
778
+ interface HTMLElementTagNameMap {
779
+ 'test-print-state': TestPrintState;
780
+ }
781
+ }
782
+
731
783
  declare class TestScoringButtons extends LitElement {
732
784
  #private;
733
785
  view: string;
@@ -1168,4 +1220,4 @@ declare global {
1168
1220
  }
1169
1221
  }
1170
1222
 
1171
- export { TestScoringButtons as A, TestScoringFeedback as B, TestSectionLink as C, TestStamp as D, TestSubmit as E, TestTtsNext as F, TestTtsPause as G, TestTtsPick as H, type ITestNavigationMixin as I, TestTtsPlay as J, TestTtsPrev as K, TestTtsResume as L, TestTtsStop as M, TestView as N, TestViewToggle as O, bookmarkedItems as P, QtiAssessmentItemRef as Q, type QtiTestPluginState as R, type ItemVariableValue as S, TestBookmark as T, type ITestStateMixin as a, type ItemRefTemplateModel as b, QtiAssessmentSection as c, QtiAssessmentTest as d, QtiBranchRule as e, QtiItemSessionControl as f, QtiNumberPresented as g, QtiNumberSelected as h, QtiOutcomeProcessing as i, QtiOutcomeProcessingProcessor as j, QtiPreCondition as k, QtiTest as l, QtiTestFeedback as m, QtiTestPart as n, QtiTestVariables as o, QtiTestVariablesExpression as p, TestCheckItem as q, TestContainer as r, TestEndAttempt as s, TestItemLink as t, TestItemToSpeech as u, TestNavigation as v, TestNext as w, TestPrev as x, TestPrintContext as y, TestPrintVariables as z };
1223
+ export { TestPrintVariables as A, TestScoringButtons as B, TestScoringFeedback as C, TestSectionLink as D, TestStamp as E, TestSubmit as F, TestTtsNext as G, TestTtsPause as H, type ITestNavigationMixin as I, TestTtsPick as J, TestTtsPlay as K, TestTtsPrev as L, TestTtsResume as M, TestTtsStop as N, TestView as O, TestViewToggle as P, QtiAssessmentItemRef as Q, bookmarkedItems as R, type QtiTestPluginState as S, TestBookmark as T, type ItemVariableValue as U, type ITestStateMixin as a, type ItemRefTemplateModel as b, QtiAssessmentSection as c, QtiAssessmentTest as d, QtiBranchRule as e, QtiItemSessionControl as f, QtiNumberPresented as g, QtiNumberSelected as h, QtiOutcomeProcessing as i, QtiOutcomeProcessingProcessor as j, QtiPreCondition as k, QtiTest as l, QtiTestFeedback as m, QtiTestPart as n, QtiTestVariables as o, QtiTestVariablesExpression as p, TestCheckItem as q, TestContainer as r, TestEndAttempt as s, TestItemLink as t, TestItemToSpeech as u, TestNavigation as v, TestNext as w, TestPrev as x, TestPrintContext as y, TestPrintState as z };
@@ -1,8 +1,8 @@
1
1
  import * as lit from 'lit';
2
2
  import { LitElement, CSSResultGroup, PropertyValues } from 'lit';
3
- import { I as Interaction, b as RecordValue } from './record.d-wB9uYs-j.js';
3
+ import { I as Interaction, b as RecordValue } from './record.d-C6m0Y4xr.js';
4
4
  import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
5
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
5
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
6
6
  import { B as BaseType, a as Cardinality, b as ItemContext, Q as QtiAreaMapEntry } from './item.types.d-DuVR0ZVK.js';
7
7
  import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
8
8
  import * as lit_directives_ref_js from 'lit/directives/ref.js';
@@ -867,7 +867,11 @@ declare const QtiInlineChoiceInteraction_base: (abstract new (...args: any[]) =>
867
867
  *
868
868
  * @attr {string} response-identifier - Required. Identifier of the bound response variable.
869
869
  * @attr {string} data-prompt - Placeholder shown before a choice is picked. Falls back to
870
- * the item configuration's `inlineChoicePrompt`, then to `select`.
870
+ * the item configuration's `inlineChoicePrompt`, then to `select`. An empty value
871
+ * (`data-prompt=""`) is kept: the placeholder is then empty, and the menu leaves the empty
872
+ * prompt row out until a choice is made; from then on that row is a clear button (an x glyph).
873
+ * @attr {string} [data-clear-label=Clear] - Accessible name of the clear row shown, in place of an
874
+ * empty `data-prompt`, once a choice is made. Selecting that row clears the answer.
871
875
  * @attr {boolean} [shuffle=false] - Requests option shuffling. Applied by the transform
872
876
  * pipeline (`qti-transformers`), not by this element.
873
877
  * @attr {boolean} [required=false] - Whether a choice must be selected for the response to be
@@ -881,8 +885,10 @@ declare const QtiInlineChoiceInteraction_base: (abstract new (...args: any[]) =>
881
885
  * @csspart value - The currently displayed value inside the trigger.
882
886
  * @csspart dropdown-icon - The chevron icon inside the trigger; also carries `dropdown-icon-open` when open.
883
887
  * @csspart menu - The popover element containing the option list.
884
- * @csspart option - Each option button; also carries `option-prompt` and `option-selected` variants.
888
+ * @csspart option - Each option button; also carries `option-prompt`, `option-selected` and
889
+ * `option-clear` (the prompt row as a clear button, see `data-clear-label`) variants.
885
890
  * @csspart option-content - The content wrapper inside each option.
891
+ * @csspart clear-icon - The x glyph inside the clear row.
886
892
  */
887
893
  declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base {
888
894
  #private;
@@ -901,9 +907,15 @@ declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base
901
907
  * manifest, the generated types and the Storybook controls — and so that changing it
902
908
  * re-renders, which reading `dataset` at render time never did.
903
909
  *
904
- * Falls back to the item configuration's `inlineChoicePrompt`, then to `select`.
910
+ * Falls back to the item configuration's `inlineChoicePrompt`, then to `select`. An empty
911
+ * string is a value, not a missing one: `data-prompt=""` shows an empty placeholder.
905
912
  */
906
913
  dataPrompt: string;
914
+ /**
915
+ * Accessible name of the clear row: the prompt row when `data-prompt` is empty and a choice has
916
+ * been made. It has no text to read, only an x glyph, so it needs a name. Defaults to `Clear`.
917
+ */
918
+ dataClearLabel: string;
907
919
  protected _handleDataPromptChange: () => void;
908
920
  /**
909
921
  * Whether a choice must be selected for the response to be valid. QTI defaults this to
@@ -927,7 +939,13 @@ declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base
927
939
  protected _handleRequiredChange: () => void;
928
940
  /** The closed combobox — the box showing the chosen option. */
929
941
  protected renderTrigger(): unknown;
930
- /** The popover listbox. */
942
+ /**
943
+ * The popover listbox. Its first row is the prompt — the way back to "nothing chosen", as the
944
+ * spec's figure of an open dropdown shows it. With an empty prompt there is nothing to read, so:
945
+ * while nothing is chosen the row is hidden (it would read as an empty option, and there is
946
+ * nothing to clear), and once something is chosen it is a clear button — an x glyph named by
947
+ * `data-clear-label`. Either way selecting it does the same: `#selectValue('')`.
948
+ */
931
949
  protected renderMenu(): unknown;
932
950
  /** Hidden until `Interaction.reportValidity` shows it. */
933
951
  protected renderValidationMessage(): unknown;
@@ -937,8 +955,17 @@ declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base
937
955
  willUpdate(changed: PropertyValues): void;
938
956
  updated(changed: PropertyValues): void;
939
957
  /**
940
- * Autosizing is opt-in through `configContext.inlineChoiceAutosize`, and an explicit
941
- * `qti-input-width-*` class always wins.
958
+ * Leaves the prompt row out of the width measurement when the prompt is empty. That row is hidden
959
+ * while nothing is chosen (measures 0) and a clear glyph once something is (measures a glyph), so
960
+ * counting it would let the closed field change width on the first choice. Its text is empty
961
+ * either way, so it has nothing to contribute.
962
+ */
963
+ menuAutoSizeRows(): HTMLElement[];
964
+ /**
965
+ * Autosizing is on unless a host turns it off (`configContext.inlineChoiceAutosize: false`), and an
966
+ * explicit `qti-input-width-*` class always wins. On by default because without it the field sizes
967
+ * to the option shown, so choosing a longer one widened the field and reflowed the sentence around
968
+ * it: a state that changed layout.
942
969
  *
943
970
  * That second check has to live here rather than in CSS: the measurement is written as an inline
944
971
  * style on the trigger, and the width classes set the same property on `:host`, so the cascade
@@ -946,7 +973,8 @@ declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base
946
973
  */
947
974
  shouldAutoSizeMenu(): boolean;
948
975
  /**
949
- * The chevron sits in the trigger and not in the menu, so the menu never measures it.
976
+ * The chevron (and the gap before it) sits in the trigger and not in the menu, so the menu never
977
+ * measures it.
950
978
  *
951
979
  * `offsetWidth`, NOT `getBoundingClientRect().width`: the icon rotates when the menu opens, and a
952
980
  * client rect reports the TRANSFORMED box — so a chevron caught mid-rotation measures wider than
@@ -1,5 +1,5 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
- import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BvU9r-Mg.js';
2
+ import { C as ConfigContext, V as ValidationDisplayMode } from './config.context.d-BniMHSBB.js';
3
3
  import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
4
4
  import { g as ResponseVariable, B as BaseType } from './item.types.d-DuVR0ZVK.js';
5
5
 
package/dist/test.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { u as TestItemToSpeech, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, q as TestCheckItem, T as TestBookmark, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, D as TestStamp, E as TestSubmit, N as TestView, O as TestViewToggle, R as QtiTestPluginState$1, S as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-D5C7W8Lg.js';
2
- export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, r as TestContainer, s as TestEndAttempt, t as TestItemLink, v as TestNavigation, w as TestNext, x as TestPrev, C as TestSectionLink, P as bookmarkedItems } from './qti-test.d-D5C7W8Lg.js';
1
+ import { u as TestItemToSpeech, G as TestTtsNext, H as TestTtsPause, J as TestTtsPick, K as TestTtsPlay, L as TestTtsPrev, M as TestTtsResume, N as TestTtsStop, q as TestCheckItem, T as TestBookmark, y as TestPrintContext, A as TestPrintVariables, z as TestPrintState, B as TestScoringButtons, C as TestScoringFeedback, E as TestStamp, F as TestSubmit, O as TestView, P as TestViewToggle, S as QtiTestPluginState$1, U as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-C0I1BIdH.js';
2
+ export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, r as TestContainer, s as TestEndAttempt, t as TestItemLink, v as TestNavigation, w as TestNext, x as TestPrev, D as TestSectionLink, R as bookmarkedItems } from './qti-test.d-C0I1BIdH.js';
3
3
  import { C as ComputedContext } from './computed.types.d-IXACuBr7.js';
4
4
  import { LitElement } from 'lit';
5
5
  import { b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
6
6
  import { S as SessionContext } from './session.context.d-DW09Lrie.js';
7
- import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
7
+ import { C as ConfigContext } from './config.context.d-BniMHSBB.js';
8
8
  import { T as TestContext } from './qti-expression.d-B-Cfbqlb.js';
9
9
  import './qti-transform-test.d-BL7GGFJj.js';
10
10
  import './elements.js';
11
11
  import './interaction.interface.d-CvjHM2bi.js';
12
12
  import './qti-feedback.d-DbzPSJuK.js';
13
- import './qti-rule-base.d-Bdzg8eGH.js';
13
+ import './qti-rule-base.d-CeKP0Ooi.js';
14
14
  import './qti.context.d-CejJMlfZ.js';
15
15
  import '@heximal/templates';
16
16
 
@@ -60,6 +60,9 @@ declare const pluginElements: readonly [{
60
60
  }, {
61
61
  readonly tag: "test-print-item-variables";
62
62
  readonly ctor: typeof TestPrintVariables;
63
+ }, {
64
+ readonly tag: "test-print-state";
65
+ readonly ctor: typeof TestPrintState;
63
66
  }, {
64
67
  readonly tag: "test-scoring-buttons";
65
68
  readonly ctor: typeof TestScoringButtons;
@@ -184,4 +187,4 @@ interface QtiTestStateSession {
184
187
  }
185
188
  declare const QTI_TEST_STATE_VERSION = 1;
186
189
 
187
- export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, QTI_TEST_STATE_VERSION, type QtiTestPluginState, type QtiTestState, type QtiTestStateItem, type QtiTestStateSession, type QtiTestStateValue, TestBookmark, TestCheckItem, TestItemToSpeech, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestTtsNext, TestTtsPause, TestTtsPick, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, pluginElements, pluginState, ttsElements };
190
+ export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, QTI_TEST_STATE_VERSION, type QtiTestPluginState, type QtiTestState, type QtiTestStateItem, type QtiTestStateSession, type QtiTestStateValue, TestBookmark, TestCheckItem, TestItemToSpeech, TestPrintContext, TestPrintState, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestTtsNext, TestTtsPause, TestTtsPick, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, pluginElements, pluginState, ttsElements };
package/dist/test.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-PLP3YX6C.js";
1
+ import "./chunk-S5GLISQA.js";
2
2
  import {
3
3
  QTI_TEST_STATE_VERSION,
4
4
  QtiAssessmentItemRef,
@@ -26,6 +26,7 @@ import {
26
26
  TestNext,
27
27
  TestPrev,
28
28
  TestPrintContext,
29
+ TestPrintState,
29
30
  TestPrintVariables,
30
31
  TestScoringButtons,
31
32
  TestScoringFeedback,
@@ -45,12 +46,12 @@ import {
45
46
  pluginElements,
46
47
  pluginState,
47
48
  ttsElements
48
- } from "./chunk-5K5JO7OG.js";
49
- import "./chunk-YOCOLMGB.js";
50
- import "./chunk-YKXVAXSI.js";
49
+ } from "./chunk-6XRNX574.js";
50
+ import "./chunk-C7SYDLMG.js";
51
+ import "./chunk-Q4MJCEDE.js";
51
52
  import "./chunk-4DB4SC5K.js";
52
53
  import "./chunk-TLAVOBEM.js";
53
- import "./chunk-T7YSBBAA.js";
54
+ import "./chunk-O2ENNGKV.js";
54
55
  export {
55
56
  QTI_TEST_STATE_VERSION,
56
57
  QtiAssessmentItemRef,
@@ -78,6 +79,7 @@ export {
78
79
  TestNext,
79
80
  TestPrev,
80
81
  TestPrintContext,
82
+ TestPrintState,
81
83
  TestPrintVariables,
82
84
  TestScoringButtons,
83
85
  TestScoringFeedback,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@citolab/qti-components",
3
3
  "description": "QTI component utilities",
4
- "version": "10.0.0-next.12",
4
+ "version": "10.0.0-next.14",
5
5
  "author": "",
6
6
  "dependencies": {
7
7
  "@heximal/templates": "^0.1.5",
@@ -10,15 +10,15 @@
10
10
  "lit-html": "^3.3.1"
11
11
  },
12
12
  "devDependencies": {
13
- "@qti-components/base": "^2.5.0-next.2",
14
- "@qti-components/corrections": "^0.5.0-next.5",
15
- "@qti-components/elements": "^1.10.0-next.3",
16
- "@qti-components/interactions": "^1.10.5-next.4",
17
- "@qti-components/item": "^1.5.1-next.3",
18
- "@qti-components/loader": "^1.3.4-next.0",
19
- "@qti-components/processing": "^1.6.1-next.2",
20
- "@qti-components/test": "^2.0.0-next.10",
21
- "@qti-components/theme": "^2.3.0-next.2",
13
+ "@qti-components/base": "^3.0.0-next.4",
14
+ "@qti-components/corrections": "^0.5.0-next.7",
15
+ "@qti-components/elements": "^2.0.0-next.5",
16
+ "@qti-components/interactions": "^1.10.5-next.6",
17
+ "@qti-components/item": "^1.5.1-next.5",
18
+ "@qti-components/loader": "^1.3.4-next.1",
19
+ "@qti-components/processing": "^1.6.1-next.4",
20
+ "@qti-components/test": "^2.0.0-next.12",
21
+ "@qti-components/theme": "^2.3.0-next.4",
22
22
  "@qti-components/transformers": "^1.7.3"
23
23
  },
24
24
  "exports": {