@citolab/qti-components 7.16.0 → 7.16.1

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