@citolab/qti-components 7.28.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +6205 -2973
  3. package/dist/base.d.ts +9 -50
  4. package/dist/base.js +27 -6
  5. package/dist/chunk-5QYII4OZ.js +1374 -0
  6. package/dist/chunk-5QYII4OZ.js.map +1 -0
  7. package/dist/{chunk-MPC7LIPC.js → chunk-5SJS36BI.js} +4264 -3647
  8. package/dist/chunk-5SJS36BI.js.map +1 -0
  9. package/dist/chunk-64XSIBGO.js +241 -0
  10. package/dist/chunk-64XSIBGO.js.map +1 -0
  11. package/dist/{chunk-SP6S2WMG.js → chunk-7V4HJFHW.js} +3 -3
  12. package/dist/{chunk-SP6S2WMG.js.map → chunk-7V4HJFHW.js.map} +1 -1
  13. package/dist/{chunk-3XV26R5M.js → chunk-H3J7LFRO.js} +829 -1005
  14. package/dist/chunk-H3J7LFRO.js.map +1 -0
  15. package/dist/{chunk-3WBG257S.js → chunk-IJD53WY6.js} +96 -74
  16. package/dist/chunk-IJD53WY6.js.map +1 -0
  17. package/dist/chunk-KYEZRYO6.js +1608 -0
  18. package/dist/chunk-KYEZRYO6.js.map +1 -0
  19. package/dist/{chunk-HFCZFWSH.js → chunk-LZJHHZQ2.js} +1954 -1729
  20. package/dist/chunk-LZJHHZQ2.js.map +1 -0
  21. package/dist/chunk-MGF5F3S2.js +11 -0
  22. package/dist/chunk-MGF5F3S2.js.map +1 -0
  23. package/dist/chunk-MJVPNN7W.js +11 -0
  24. package/dist/chunk-MJVPNN7W.js.map +1 -0
  25. package/dist/{chunk-REI3AMCZ.js → chunk-NA2N2WSG.js} +1303 -1193
  26. package/dist/chunk-NA2N2WSG.js.map +1 -0
  27. package/dist/chunk-V5G7X53Y.js +11 -0
  28. package/dist/chunk-V5G7X53Y.js.map +1 -0
  29. package/dist/chunk-W4QZPCNC.js +294 -0
  30. package/dist/chunk-W4QZPCNC.js.map +1 -0
  31. package/dist/chunk-WCQ26LV7.js +102 -0
  32. package/dist/chunk-WCQ26LV7.js.map +1 -0
  33. package/dist/{chunk-WDO2TRFM.js → chunk-WVVMNF74.js} +851 -925
  34. package/dist/chunk-WVVMNF74.js.map +1 -0
  35. package/dist/{chunk-FLJAKWXL.js → chunk-X3E5HXG2.js} +2 -2
  36. package/dist/corrections.d.ts +1 -0
  37. package/dist/corrections.js +84 -0
  38. package/dist/elements.d.ts +1 -399
  39. package/dist/elements.js +6 -5
  40. package/dist/index.d.ts +9 -23
  41. package/dist/index.js +185 -76
  42. package/dist/interactions.d.ts +1 -915
  43. package/dist/interactions.js +19 -15
  44. package/dist/item.css +4118 -1920
  45. package/dist/item.d.ts +1 -134
  46. package/dist/item.js +6 -11
  47. package/dist/loader.d.ts +1 -22
  48. package/dist/loader.js +2 -3
  49. package/dist/processing.d.ts +1 -731
  50. package/dist/processing.js +2 -3
  51. package/dist/qti-components-jsx.d.ts +5220 -2571
  52. package/dist/test.d.ts +1 -539
  53. package/dist/test.js +26 -11
  54. package/dist/transformers.d.ts +1 -18
  55. package/dist/transformers.js +1 -2
  56. package/package.json +19 -15
  57. package/custom-elements.json +0 -43251
  58. package/dist/chunk-3WBG257S.js.map +0 -1
  59. package/dist/chunk-3XV26R5M.js.map +0 -1
  60. package/dist/chunk-AQ5RJFM6.js +0 -3673
  61. package/dist/chunk-AQ5RJFM6.js.map +0 -1
  62. package/dist/chunk-HFCZFWSH.js.map +0 -1
  63. package/dist/chunk-MPC7LIPC.js.map +0 -1
  64. package/dist/chunk-QXBXORM3.js +0 -27
  65. package/dist/chunk-REI3AMCZ.js.map +0 -1
  66. package/dist/chunk-RLTYVS2I.js +0 -530
  67. package/dist/chunk-RLTYVS2I.js.map +0 -1
  68. package/dist/chunk-WDO2TRFM.js.map +0 -1
  69. package/dist/computed-item.context-DfsW_96S.d.ts +0 -22
  70. package/dist/computed.context-DHbxad0N.d.ts +0 -45
  71. package/dist/config.context-BjZ2bZSY.d.ts +0 -42
  72. package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
  73. package/dist/item.context-CkUeDcaO.d.ts +0 -15
  74. package/dist/qti-condition-expression-Dam-RER6.d.ts +0 -26
  75. package/dist/qti-feedback-ChmXhZuf.d.ts +0 -21
  76. package/dist/qti-rule-base-ajOnfGXY.d.ts +0 -16
  77. package/dist/qti-transform-test-DoZaWItm.d.ts +0 -70
  78. package/dist/qti.context-CejJMlfZ.d.ts +0 -50
  79. package/dist/test.context-CByZZjkR.d.ts +0 -15
  80. package/dist/variables-CMYcDbyW.d.ts +0 -70
  81. /package/dist/{chunk-FLJAKWXL.js.map → chunk-X3E5HXG2.js.map} +0 -0
  82. /package/dist/{chunk-QXBXORM3.js.map → corrections.js.map} +0 -0
package/dist/test.d.ts CHANGED
@@ -1,539 +1 @@
1
- import * as lit from 'lit';
2
- import { LitElement, PropertyValues, nothing } from 'lit';
3
- import { QtiAssessmentItem, QtiModalFeedback } from './elements.js';
4
- import { TemplateFunction } from '@heximal/templates';
5
- import { T as TestContext } from './test.context-CByZZjkR.js';
6
- import { g as VariableValue, b as OutcomeVariable, V as VariableDeclaration } from './variables-CMYcDbyW.js';
7
- import { S as SessionContext, C as ComputedContext, a as ComputedItem, V as View } from './computed.context-DHbxad0N.js';
8
- import { C as ConfigContext } from './config.context-BjZ2bZSY.js';
9
- import { Q as QtiContext } from './qti.context-CejJMlfZ.js';
10
- import { t as transformItemApi, b as transformTestApi } from './qti-transform-test-DoZaWItm.js';
11
- import './item.context-CkUeDcaO.js';
12
- import './qti-feedback-ChmXhZuf.js';
13
- import './qti-rule-base-ajOnfGXY.js';
14
- import './computed-item.context-DfsW_96S.js';
15
-
16
- declare class QtiAssessmentItemRef extends LitElement {
17
- category?: string;
18
- identifier?: string;
19
- required?: boolean;
20
- fixed?: boolean;
21
- href?: string;
22
- weigths: Map<string, number>;
23
- xmlDoc: DocumentFragment;
24
- protected createRenderRoot(): HTMLElement | DocumentFragment;
25
- get assessmentItem(): QtiAssessmentItem | null;
26
- myTemplate: TemplateFunction;
27
- connectedCallback(): Promise<void>;
28
- render(): unknown;
29
- }
30
- declare global {
31
- interface HTMLElementTagNameMap {
32
- 'qti-assessment-item-ref': QtiAssessmentItemRef;
33
- }
34
- }
35
-
36
- declare class QtiAssessmentTest extends LitElement {
37
- #private;
38
- identifier: string;
39
- get title(): string;
40
- set title(value: string);
41
- _testContext?: TestContext;
42
- connectedCallback(): Promise<void>;
43
- render(): lit.TemplateResult<1>;
44
- }
45
- declare global {
46
- interface HTMLElementTagNameMap {
47
- 'qti-assessment-test': QtiAssessmentTest;
48
- }
49
- }
50
-
51
- interface TestBaseInterface extends LitElement {
52
- testContext: Readonly<TestContext>;
53
- sessionContext: Readonly<SessionContext>;
54
- configContext?: Readonly<ConfigContext>;
55
- _testElement: QtiAssessmentTest;
56
- updateItemVariables(itemRefID: string, variables: VariableValue<string | string[] | null>[]): void;
57
- }
58
-
59
- type PostLoadTransformCallback = (transformer: transformItemApi, itemRef: QtiAssessmentItemRef) => transformItemApi | Promise<transformItemApi>;
60
- type PostLoadTestTransformCallback = (transformer: transformTestApi, testElement: QtiAssessmentTest) => transformTestApi | Promise<transformTestApi>;
61
-
62
- declare const QtiTest_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {
63
- updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
64
- getOutcome(identifier: string): Readonly<OutcomeVariable>;
65
- getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
66
- outcomeProcessing(): boolean;
67
- }) & (abstract new (...args: any[]) => TestBaseInterface) & typeof LitElement;
68
- /**
69
- * `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
70
- *
71
- * This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
72
- *
73
- * ### Example Usage
74
- *
75
- * Minimal example including navigation:
76
- *
77
- * ```html
78
- * <qti-test>
79
- * <test-navigation>
80
- * <test-container test-url="./path/to/assessment.xml"></test-container>
81
- * <nav class="flex">
82
- * <test-prev></test-prev>
83
- * <test-next></test-next>
84
- * </nav>
85
- * </test-navigation>
86
- * </qti-test>
87
- * ```
88
- *
89
- * Use the following file structure
90
- * A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.
91
- *
92
- * ```plaintext
93
- * Root/
94
- * ├── index.html
95
- * └── /assets/api/examples/
96
- * ├── assessmenttest.xml
97
- * └── imsmanifest.xml
98
- *
99
- * ```
100
- *
101
- * ### Test components
102
- *
103
- * Use test components inside the qti-test component for added functionality.
104
- * ### Test next
105
- * `<test-next> | TestNext`
106
- *
107
- * ### Test prev
108
- *
109
- * `<test-prev> | TestPrev`
110
- * ### Test components
111
- *
112
- * You can use normal class names to style the elements.
113
- * And you can use the `test-prev` and `test-next` elements to navigate through the test.
114
- *
115
- */
116
- declare class QtiTest extends QtiTest_base {
117
- configContext: ConfigContext;
118
- /**
119
- * Renders the component's template.
120
- * Provides a default `<slot>` for content projection.
121
- */
122
- connectedCallback(): Promise<void>;
123
- render(): lit.TemplateResult<1>;
124
- }
125
- declare global {
126
- interface HTMLElementTagNameMap {
127
- 'qti-test': QtiTest;
128
- }
129
- }
130
-
131
- declare class QtiAssessmentSection extends LitElement {
132
- #private;
133
- identifier: string;
134
- required: string;
135
- fixed: boolean;
136
- get title(): string;
137
- set title(value: string);
138
- visible: boolean;
139
- keepTogether: boolean;
140
- _testContext?: TestContext;
141
- connectedCallback(): Promise<void>;
142
- render(): lit.TemplateResult<1>;
143
- }
144
- declare global {
145
- interface HTMLElementTagNameMap {
146
- 'qti-assessment-section': QtiAssessmentSection;
147
- }
148
- }
149
-
150
- declare class QtiTestPart extends LitElement {
151
- #private;
152
- identifier: string;
153
- get title(): string;
154
- set title(value: string);
155
- class: string;
156
- navigationMode: 'linear' | 'nonlinear';
157
- submissionMode: 'individual' | 'simultaneous';
158
- connectedCallback(): Promise<void>;
159
- render(): lit.TemplateResult<1>;
160
- }
161
- declare global {
162
- interface HTMLElementTagNameMap {
163
- 'qti-test-part': QtiTestPart;
164
- }
165
- }
166
-
167
- declare class QtiTestFeedback extends QtiModalFeedback {
168
- static styles: lit.CSSResult;
169
- render(): lit.TemplateResult<1>;
170
- }
171
- declare global {
172
- interface HTMLElementTagNameMap {
173
- 'qti-test-feedback': QtiTestFeedback;
174
- }
175
- }
176
-
177
- type CustomEventMap = {
178
- 'test-end-attempt': CustomEvent;
179
- 'test-show-correct-response': CustomEvent<{
180
- value: boolean;
181
- }>;
182
- };
183
- declare global {
184
- interface GlobalEventHandlersEventMap extends CustomEventMap {
185
- }
186
- }
187
- declare class TestNavigation extends LitElement {
188
- #private;
189
- identifier: string | undefined;
190
- initContext: {
191
- identifier: string;
192
- [key: string]: any;
193
- }[];
194
- qtiContext: QtiContext;
195
- configContext: ConfigContext;
196
- protected _testContext?: TestContext;
197
- protected _sessionContext?: SessionContext;
198
- protected computedContext: ComputedContext;
199
- autoScoreItems: boolean;
200
- constructor();
201
- render(): lit.TemplateResult<1>;
202
- protected willUpdate(_changedProperties: PropertyValues): void;
203
- }
204
-
205
- /**
206
- * Represents a custom element for navigating to the next test item.
207
- *
208
- * @remarks
209
- * This element provides functionality for navigating to the next test item.
210
- *
211
- * @example
212
- * ```html
213
- * <test-next></test-next>
214
- * ```
215
- */
216
- declare class TestNext extends LitElement {
217
- #private;
218
- _internalDisabled: boolean;
219
- protected computedContext: ComputedContext;
220
- sectionItems: ComputedItem[];
221
- itemIndex: number;
222
- _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
223
- static styles: lit.CSSResult;
224
- constructor();
225
- connectedCallback(): void;
226
- willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
227
- checkDisabled(): void;
228
- protected _requestItem(identifier: string): void;
229
- render(): lit.TemplateResult<1>;
230
- }
231
- declare global {
232
- interface HTMLElementTagNameMap {
233
- 'test-next': TestNext;
234
- }
235
- }
236
-
237
- /**
238
- * Represents a custom element for navigating to the previous test item.
239
- *
240
- * @remarks
241
- * This element provides functionality for navigating to the previous test item.
242
- *
243
- * @example
244
- * ```html
245
- * <test-prev></test-prev>
246
- * ```
247
- */
248
- declare class TestPrev extends LitElement {
249
- _internalDisabled: boolean;
250
- private computedContext;
251
- sectionItems: ComputedItem[];
252
- itemIndex: number;
253
- _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
254
- static styles: lit.CSSResult;
255
- constructor();
256
- willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
257
- checkDisabled(): void;
258
- protected _requestItem(identifier: string): void;
259
- render(): lit.TemplateResult<1>;
260
- }
261
- declare global {
262
- interface HTMLElementTagNameMap {
263
- 'test-previous': TestPrev;
264
- }
265
- }
266
-
267
- declare class TestView extends LitElement {
268
- #private;
269
- static DEFAULT_VIEW_OPTIONS: string[];
270
- private sessionContext;
271
- /** label accompanying the select view dropdown */
272
- label: string;
273
- /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
274
- viewOptions: string;
275
- protected _handleViewOptionsChange: () => void;
276
- connectedCallback(): void;
277
- private _viewOptions;
278
- protected _switchView(view: string): void;
279
- render(): lit.TemplateResult<1>;
280
- }
281
- declare global {
282
- interface HTMLElementTagNameMap {
283
- 'test-view': TestView;
284
- }
285
- }
286
-
287
- declare class TestItemLink extends LitElement {
288
- static styles: lit.CSSResult;
289
- private itemId;
290
- constructor();
291
- protected _requestItem(identifier: string): void;
292
- render(): lit.TemplateResult<1>;
293
- }
294
- declare global {
295
- interface HTMLElementTagNameMap {
296
- 'test-item-link': TestItemLink;
297
- }
298
- }
299
-
300
- declare class TestEndAttempt extends LitElement {
301
- static styles: lit.CSSResult;
302
- constructor();
303
- render(): lit.TemplateResult<1>;
304
- }
305
- declare global {
306
- interface HTMLElementTagNameMap {
307
- 'test-end-attempt': TestEndAttempt;
308
- }
309
- }
310
-
311
- /**
312
- * @deprecated test-show-correct-response is deprecated and will be removed in the future.
313
- */
314
- declare class TestShowCorrectResponse extends LitElement {
315
- #private;
316
- computedContext?: ComputedContext;
317
- static styles: lit.CSSResult;
318
- shown: boolean;
319
- disabled: boolean;
320
- showCorrectText: string;
321
- hideCorrectText: string;
322
- noCorrectResponseText: string;
323
- willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
324
- render(): lit.TemplateResult<1>;
325
- }
326
- declare global {
327
- interface HTMLElementTagNameMap {
328
- 'test-show-correct-response': TestShowCorrectResponse;
329
- }
330
- }
331
-
332
- /**
333
- * @deprecated test-paging-buttons-stamp is deprecated and will be removed in the future.
334
- */
335
- declare class TestPagingButtonsStamp extends LitElement {
336
- #private;
337
- private computedContext;
338
- myTemplate: TemplateFunction;
339
- protected createRenderRoot(): HTMLElement | DocumentFragment;
340
- constructor();
341
- connectedCallback(): void;
342
- render(): lit.TemplateResult<1>;
343
- }
344
- declare global {
345
- interface HTMLElementTagNameMap {
346
- 'test-paging-buttons-stamp': TestPagingButtonsStamp;
347
- }
348
- }
349
-
350
- /**
351
- * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
352
- * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
353
- * The element loads the test from the provided URL and renders it inside the shadow DOM.
354
- *
355
- * ```html
356
- * <qti-test>
357
- * <test-navigation>
358
- * <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
359
- * </test-navigation>
360
- * </qti-test>
361
- * ```
362
- */
363
- declare class TestContainer extends LitElement {
364
- #private;
365
- /** URL of the item to load */
366
- testURL: string;
367
- /** A parsed HTML document */
368
- testDoc: DocumentFragment;
369
- /** The raw XML string */
370
- testXML: string;
371
- protected qtiContext: QtiContext;
372
- /** Callback function to transform the test after loading */
373
- protected handleTestURLChange(): Promise<void>;
374
- protected handleTestXMLChange(): void;
375
- connectedCallback(): Promise<void>;
376
- render(): lit.TemplateResult<1>;
377
- }
378
- declare global {
379
- interface HTMLElementTagNameMap {
380
- 'test-container': TestContainer;
381
- }
382
- }
383
-
384
- declare class TestPrintVariables extends LitElement {
385
- computedContext?: ComputedContext;
386
- static styles: lit.CSSResult;
387
- render(): lit.TemplateResult<1>;
388
- }
389
- declare global {
390
- interface HTMLElementTagNameMap {
391
- 'test-print-item-variables': TestPrintVariables;
392
- }
393
- }
394
-
395
- /**
396
- * @deprecated test-section-buttons-stamp is deprecated and will be removed in the future.
397
- */
398
- declare class TestSectionButtonsStamp extends LitElement {
399
- #private;
400
- private computedContext;
401
- myTemplate: TemplateFunction;
402
- protected createRenderRoot(): HTMLElement | DocumentFragment;
403
- constructor();
404
- connectedCallback(): void;
405
- render(): lit.TemplateResult<1>;
406
- }
407
- declare global {
408
- interface HTMLElementTagNameMap {
409
- 'test-section-buttons-stamp': TestSectionButtonsStamp;
410
- }
411
- }
412
-
413
- declare class TestSectionLink extends LitElement {
414
- #private;
415
- static styles: lit.CSSResult;
416
- private sectionId;
417
- constructor();
418
- render(): lit.TemplateResult<1>;
419
- }
420
- declare global {
421
- interface HTMLElementTagNameMap {
422
- 'test-section-link': TestSectionLink;
423
- }
424
- }
425
-
426
- declare class TestPrintContext extends LitElement {
427
- computedContext?: ComputedContext;
428
- render(): lit.TemplateResult<1>;
429
- }
430
- declare global {
431
- interface HTMLElementTagNameMap {
432
- 'test-print-context': TestPrintContext;
433
- }
434
- }
435
-
436
- /**
437
- * A custom web component that renders a test stamp using the Lit framework.
438
- * This component is deprecated and will be removed in the future.
439
- * @customElement
440
- * @extends {LitElement}
441
- */
442
- declare class TestStamp extends LitElement {
443
- /**
444
- * Indicates whether the component is in debug mode.
445
- * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
446
- */
447
- debug: boolean;
448
- private computedContext;
449
- private stampContext;
450
- myTemplate: TemplateFunction;
451
- protected createRenderRoot(): HTMLElement | DocumentFragment;
452
- connectedCallback(): void;
453
- protected willUpdate(_changedProperties: PropertyValues): void;
454
- render(): lit.TemplateResult<1>;
455
- }
456
- declare global {
457
- interface HTMLElementTagNameMap {
458
- 'test-stamp': TestStamp;
459
- }
460
- }
461
-
462
- declare class TestScoringButtons extends LitElement {
463
- #private;
464
- view: string;
465
- disabled: boolean;
466
- myTemplate: TemplateFunction | null;
467
- protected createRenderRoot(): HTMLElement | DocumentFragment;
468
- connectedCallback(): void;
469
- protected computedContext?: ComputedContext;
470
- render(): typeof nothing | lit.TemplateResult<1>;
471
- constructor();
472
- }
473
- declare global {
474
- interface HTMLElementTagNameMap {
475
- 'test-scoring-buttons': TestScoringButtons;
476
- }
477
- }
478
-
479
- declare class TestViewToggle extends LitElement {
480
- myTemplate: any;
481
- protected createRenderRoot(): HTMLElement | DocumentFragment;
482
- private sessionContext;
483
- connectedCallback(): void;
484
- _switchView(view: string): void;
485
- protected firstUpdated(_changedProperties: PropertyValues): void;
486
- render(): lit.TemplateResult<1>;
487
- }
488
- declare global {
489
- interface HTMLElementTagNameMap {
490
- 'test-view-toggle': TestViewToggle;
491
- }
492
- }
493
-
494
- declare class TestScoringFeedback extends LitElement {
495
- protected computedContext?: ComputedContext;
496
- view: View;
497
- render(): lit.TemplateResult<1>;
498
- }
499
- declare global {
500
- interface HTMLElementTagNameMap {
501
- 'test-scoring-feedback': TestScoringFeedback;
502
- }
503
- }
504
-
505
- declare class TestCheckItem extends LitElement {
506
- static styles: lit.CSSResult;
507
- constructor();
508
- render(): lit.TemplateResult<1>;
509
- }
510
- declare global {
511
- interface HTMLElementTagNameMap {
512
- 'test-check-item': TestCheckItem;
513
- }
514
- }
515
-
516
- interface IQtiTest extends LitElement, ITestNavigationMixin, ITestProcessingMixin, IMyQtiTest {
517
- }
518
- interface IMyQtiTest {
519
- testContext: Readonly<TestContext>;
520
- sessionContext: Readonly<SessionContext>;
521
- updateItemVariables(itemRefID: string, variables: VariableValue<string | string[] | null>[]): void;
522
- }
523
- interface ITestNavigationMixin {
524
- navigate: 'item' | 'section' | null;
525
- requestTimeout: number;
526
- showLoadingIndicators: boolean;
527
- postLoadTransformCallback: PostLoadTransformCallback | null;
528
- postLoadTestTransformCallback: PostLoadTestTransformCallback | null;
529
- navigateTo(type: 'item' | 'section', id?: string): void;
530
- retryNavigation(): void;
531
- }
532
- interface ITestProcessingMixin {
533
- updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
534
- getOutcome(identifier: string): Readonly<OutcomeVariable>;
535
- getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
536
- outcomeProcessing(): boolean;
537
- }
538
-
539
- export { type IMyQtiTest, type IQtiTest, type ITestNavigationMixin, type ITestProcessingMixin, QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiTest, QtiTestFeedback, QtiTestPart, TestCheckItem, TestContainer, TestEndAttempt, TestItemLink, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestShowCorrectResponse, TestStamp, TestView, TestViewToggle };
1
+ export * from '@qti-components/test';
package/dist/test.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "./chunk-MGF5F3S2.js";
1
2
  import {
2
3
  QtiAssessmentItemRef,
3
4
  QtiAssessmentSection,
@@ -9,6 +10,7 @@ import {
9
10
  TestContainer,
10
11
  TestEndAttempt,
11
12
  TestItemLink,
13
+ TestItemToSpeech,
12
14
  TestNavigation,
13
15
  TestNext,
14
16
  TestPagingButtonsStamp,
@@ -19,17 +21,23 @@ import {
19
21
  TestScoringFeedback,
20
22
  TestSectionButtonsStamp,
21
23
  TestSectionLink,
22
- TestShowCorrectResponse,
23
24
  TestStamp,
25
+ TestTtsNext,
26
+ TestTtsPause,
27
+ TestTtsPlay,
28
+ TestTtsPrev,
29
+ TestTtsResume,
30
+ TestTtsStop,
24
31
  TestView,
25
- TestViewToggle
26
- } from "./chunk-HFCZFWSH.js";
27
- import "./chunk-WDO2TRFM.js";
28
- import "./chunk-FLJAKWXL.js";
29
- import "./chunk-AQ5RJFM6.js";
30
- import "./chunk-3WBG257S.js";
31
- import "./chunk-3XV26R5M.js";
32
- import "./chunk-QXBXORM3.js";
32
+ TestViewToggle,
33
+ ttsContext
34
+ } from "./chunk-LZJHHZQ2.js";
35
+ import "./chunk-WVVMNF74.js";
36
+ import "./chunk-X3E5HXG2.js";
37
+ import "./chunk-WCQ26LV7.js";
38
+ import "./chunk-64XSIBGO.js";
39
+ import "./chunk-IJD53WY6.js";
40
+ import "./chunk-H3J7LFRO.js";
33
41
  export {
34
42
  QtiAssessmentItemRef,
35
43
  QtiAssessmentSection,
@@ -41,6 +49,7 @@ export {
41
49
  TestContainer,
42
50
  TestEndAttempt,
43
51
  TestItemLink,
52
+ TestItemToSpeech,
44
53
  TestNavigation,
45
54
  TestNext,
46
55
  TestPagingButtonsStamp,
@@ -51,9 +60,15 @@ export {
51
60
  TestScoringFeedback,
52
61
  TestSectionButtonsStamp,
53
62
  TestSectionLink,
54
- TestShowCorrectResponse,
55
63
  TestStamp,
64
+ TestTtsNext,
65
+ TestTtsPause,
66
+ TestTtsPlay,
67
+ TestTtsPrev,
68
+ TestTtsResume,
69
+ TestTtsStop,
56
70
  TestView,
57
- TestViewToggle
71
+ TestViewToggle,
72
+ ttsContext
58
73
  };
59
74
  //# sourceMappingURL=test.js.map
@@ -1,18 +1 @@
1
- export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test-DoZaWItm.js';
2
-
3
- declare const qtiTransformManifest: () => {
4
- load: (uri: string, signal?: AbortSignal) => Promise<{
5
- load(uri: string, signal: AbortSignal): Promise</*elided*/ any>;
6
- parse(xmlString: string): void;
7
- assessmentTest(): {
8
- href: string;
9
- identifier: string;
10
- };
11
- }>;
12
- assessmentTest: () => {
13
- href: string;
14
- identifier: string;
15
- };
16
- };
17
-
18
- export { qtiTransformManifest };
1
+ export * from '@qti-components/transformers';
@@ -2,8 +2,7 @@ import {
2
2
  qtiTransformItem,
3
3
  qtiTransformManifest,
4
4
  qtiTransformTest
5
- } from "./chunk-3WBG257S.js";
6
- import "./chunk-QXBXORM3.js";
5
+ } from "./chunk-IJD53WY6.js";
7
6
  export {
8
7
  qtiTransformItem,
9
8
  qtiTransformManifest,