@citolab/qti-components 6.3.8 → 6.4.2

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 (43) hide show
  1. package/dist/{chunk-DHQGPGHW.js → chunk-7FZSQALE.cjs} +219 -311
  2. package/dist/chunk-JRSNRE2R.js +383 -0
  3. package/dist/{chunk-OMMRIRZN.cjs → chunk-O4MG75IZ.js} +219 -311
  4. package/dist/chunk-PBNEJ254.cjs +383 -0
  5. package/dist/context/index.cjs +1 -1
  6. package/dist/context/index.d.cts +3 -3
  7. package/dist/context/index.d.ts +3 -3
  8. package/dist/context/index.js +1 -1
  9. package/dist/custom-elements.json +688 -478
  10. package/dist/index.bundled.css +487 -0
  11. package/dist/index.cjs +540 -645
  12. package/dist/index.css +208 -309
  13. package/dist/index.d.cts +40 -14
  14. package/dist/index.d.ts +40 -14
  15. package/dist/index.js +543 -648
  16. package/dist/qti-components/index.cjs +39 -38
  17. package/dist/qti-components/index.d.cts +4 -7
  18. package/dist/qti-components/index.d.ts +4 -7
  19. package/dist/qti-components/index.js +66 -65
  20. package/dist/qti-item/index.cjs +1 -1
  21. package/dist/qti-item/index.d.cts +5 -1
  22. package/dist/qti-item/index.d.ts +5 -1
  23. package/dist/qti-item/index.js +1 -1
  24. package/dist/qti-item-react/index.cjs +1 -1
  25. package/dist/qti-item-react/index.d.cts +2 -2
  26. package/dist/qti-item-react/index.d.ts +2 -2
  27. package/dist/qti-item-react/index.js +1 -1
  28. package/dist/{qti-simple-choice-1e52645f.d.ts → qti-simple-choice-216b88b7.d.ts} +3 -1
  29. package/dist/qti-test/index.cjs +1 -1
  30. package/dist/qti-test/index.d.cts +27 -7
  31. package/dist/qti-test/index.d.ts +27 -7
  32. package/dist/qti-test/index.js +1 -1
  33. package/dist/qti-test-react/index.cjs +1 -1
  34. package/dist/qti-test-react/index.d.cts +4 -2
  35. package/dist/qti-test-react/index.d.ts +4 -2
  36. package/dist/qti-test-react/index.js +1 -1
  37. package/dist/{test-print-variables-9f2390d5.d.ts → test-print-variables-7ec6a0d5.d.ts} +5 -2
  38. package/dist/{test-print-variables-9b4289a6.d.ts → test-print-variables-d61937ce.d.ts} +5 -2
  39. package/package.json +1 -1
  40. package/dist/chunk-BKBZWUX6.cjs +0 -1
  41. package/dist/chunk-DPSTDDQZ.js +0 -1
  42. package/dist/chunk-GHNL64KC.js +0 -397
  43. package/dist/chunk-QGPCSWAA.cjs +0 -397
@@ -1,10 +1,8 @@
1
- import { V as VariableDeclaration, B as BaseType, C as Cardinality, b as Choices, c as Interaction, d as QtiRule, Q as QtiAssessmentItem, R as ResponseVariable, e as QtiChoice, f as Calculate, a as ItemContext } from '../qti-simple-choice-1e52645f.js';
2
- export { I as InteractionChangedDetails, M as Multiple, k as Ordered, O as OutcomeChangedDetails, u as OutcomeVariable, t as QtiChoiceElementSelected, x as QtiChoiceInteraction, w as QtiExtendedTextInteraction, A as QtiHottext, l as QtiInteractionChanged, s as QtiInteractionResponse, r as QtiLooseChoice, z as QtiMapping, q as QtiOutcomeChanged, o as QtiRegisterChoice, p as QtiRegisterHotspot, n as QtiRegisterInteraction, m as QtiRegisterVariable, y as QtiResponseProcessing, D as QtiSimpleChoice, v as QtiTextEntryInteraction, h as ResponseInteraction, g as directedPair, i as float, j as integer, E as itemContext } from '../qti-simple-choice-1e52645f.js';
1
+ import { V as VariableDeclaration, B as BaseType, C as Cardinality, b as Choices, c as Interaction, d as QtiRule, Q as QtiAssessmentItem, R as ResponseVariable, e as QtiChoice, f as Calculate, a as ItemContext } from '../qti-simple-choice-216b88b7.js';
2
+ export { I as InteractionChangedDetails, M as Multiple, k as Ordered, O as OutcomeChangedDetails, u as OutcomeVariable, t as QtiChoiceElementSelected, x as QtiChoiceInteraction, w as QtiExtendedTextInteraction, A as QtiHottext, l as QtiInteractionChanged, s as QtiInteractionResponse, r as QtiLooseChoice, z as QtiMapping, q as QtiOutcomeChanged, o as QtiRegisterChoice, p as QtiRegisterHotspot, n as QtiRegisterInteraction, m as QtiRegisterVariable, y as QtiResponseProcessing, D as QtiSimpleChoice, v as QtiTextEntryInteraction, h as ResponseInteraction, g as directedPair, i as float, j as integer, E as itemContext } from '../qti-simple-choice-216b88b7.js';
3
3
  import * as lit from 'lit';
4
4
  import { LitElement, PropertyValueMap } from 'lit';
5
5
  import * as lit_html from 'lit-html';
6
- import { AudienceContext } from '../context/index.cjs';
7
- import { ContextConsumer } from '@lit/context';
8
6
  import 'lit-html/directives/ref';
9
7
 
10
8
  declare const Events: {
@@ -65,9 +63,6 @@ declare class qtiRubricBlock extends LitElement {
65
63
  classNames: any;
66
64
  handleclassNamesChange(old: any, disabled: boolean): void;
67
65
  static styles: lit.CSSResult;
68
- logger: ContextConsumer<{
69
- __context__: AudienceContext;
70
- }, this>;
71
66
  render(): lit_html.TemplateResult<1>;
72
67
  connectedCallback(): void;
73
68
  }
@@ -115,6 +110,7 @@ interface OptionType {
115
110
  declare class QtiInlineChoiceInteraction extends Interaction {
116
111
  static inputWidthClass: string[];
117
112
  options: OptionType[];
113
+ correctOption: string;
118
114
  dataPrompt: string;
119
115
  static get styles(): lit.CSSResult[];
120
116
  render(): lit_html.TemplateResult<1>;
@@ -122,6 +118,7 @@ declare class QtiInlineChoiceInteraction extends Interaction {
122
118
  validate(): boolean;
123
119
  reset(): void;
124
120
  set response(value: string);
121
+ set correctResponse(value: Readonly<string | string[]>);
125
122
  choiceSelected(event: Event): void;
126
123
  }
127
124
 
@@ -1,10 +1,8 @@
1
- import { V as VariableDeclaration, B as BaseType, C as Cardinality, b as Choices, c as Interaction, d as QtiRule, Q as QtiAssessmentItem, R as ResponseVariable, e as QtiChoice, f as Calculate, a as ItemContext } from '../qti-simple-choice-1e52645f.js';
2
- export { I as InteractionChangedDetails, M as Multiple, k as Ordered, O as OutcomeChangedDetails, u as OutcomeVariable, t as QtiChoiceElementSelected, x as QtiChoiceInteraction, w as QtiExtendedTextInteraction, A as QtiHottext, l as QtiInteractionChanged, s as QtiInteractionResponse, r as QtiLooseChoice, z as QtiMapping, q as QtiOutcomeChanged, o as QtiRegisterChoice, p as QtiRegisterHotspot, n as QtiRegisterInteraction, m as QtiRegisterVariable, y as QtiResponseProcessing, D as QtiSimpleChoice, v as QtiTextEntryInteraction, h as ResponseInteraction, g as directedPair, i as float, j as integer, E as itemContext } from '../qti-simple-choice-1e52645f.js';
1
+ import { V as VariableDeclaration, B as BaseType, C as Cardinality, b as Choices, c as Interaction, d as QtiRule, Q as QtiAssessmentItem, R as ResponseVariable, e as QtiChoice, f as Calculate, a as ItemContext } from '../qti-simple-choice-216b88b7.js';
2
+ export { I as InteractionChangedDetails, M as Multiple, k as Ordered, O as OutcomeChangedDetails, u as OutcomeVariable, t as QtiChoiceElementSelected, x as QtiChoiceInteraction, w as QtiExtendedTextInteraction, A as QtiHottext, l as QtiInteractionChanged, s as QtiInteractionResponse, r as QtiLooseChoice, z as QtiMapping, q as QtiOutcomeChanged, o as QtiRegisterChoice, p as QtiRegisterHotspot, n as QtiRegisterInteraction, m as QtiRegisterVariable, y as QtiResponseProcessing, D as QtiSimpleChoice, v as QtiTextEntryInteraction, h as ResponseInteraction, g as directedPair, i as float, j as integer, E as itemContext } from '../qti-simple-choice-216b88b7.js';
3
3
  import * as lit from 'lit';
4
4
  import { LitElement, PropertyValueMap } from 'lit';
5
5
  import * as lit_html from 'lit-html';
6
- import { AudienceContext } from '../context/index.js';
7
- import { ContextConsumer } from '@lit/context';
8
6
  import 'lit-html/directives/ref';
9
7
 
10
8
  declare const Events: {
@@ -65,9 +63,6 @@ declare class qtiRubricBlock extends LitElement {
65
63
  classNames: any;
66
64
  handleclassNamesChange(old: any, disabled: boolean): void;
67
65
  static styles: lit.CSSResult;
68
- logger: ContextConsumer<{
69
- __context__: AudienceContext;
70
- }, this>;
71
66
  render(): lit_html.TemplateResult<1>;
72
67
  connectedCallback(): void;
73
68
  }
@@ -115,6 +110,7 @@ interface OptionType {
115
110
  declare class QtiInlineChoiceInteraction extends Interaction {
116
111
  static inputWidthClass: string[];
117
112
  options: OptionType[];
113
+ correctOption: string;
118
114
  dataPrompt: string;
119
115
  static get styles(): lit.CSSResult[];
120
116
  render(): lit_html.TemplateResult<1>;
@@ -122,6 +118,7 @@ declare class QtiInlineChoiceInteraction extends Interaction {
122
118
  validate(): boolean;
123
119
  reset(): void;
124
120
  set response(value: string);
121
+ set correctResponse(value: Readonly<string | string[]>);
125
122
  choiceSelected(event: Event): void;
126
123
  }
127
124