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