@pie-qti/assessment-player 0.1.8 → 0.1.10
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.
- package/dist/core/AssessmentPlayer.d.ts +3 -7
- package/dist/core/AssessmentPlayer.d.ts.map +1 -1
- package/dist/core/AssessmentPlayer.js +60 -170
- package/dist/core/AssessmentSessionCoordinator.d.ts +51 -0
- package/dist/core/AssessmentSessionCoordinator.d.ts.map +1 -0
- package/dist/core/AssessmentSessionCoordinator.js +215 -0
- package/package.json +7 -6
- package/src/components/ItemRenderer.svelte +66 -67
- package/src/core/AssessmentPlayer.ts +59 -166
- package/src/core/AssessmentSessionCoordinator.ts +274 -0
|
@@ -70,16 +70,13 @@ export declare class AssessmentPlayer {
|
|
|
70
70
|
private backend;
|
|
71
71
|
private sessionId;
|
|
72
72
|
private assessment;
|
|
73
|
-
private state;
|
|
74
73
|
private i18nProvider;
|
|
75
74
|
private navigationManager;
|
|
76
|
-
private
|
|
75
|
+
private sessionCoordinator;
|
|
77
76
|
private timeManager;
|
|
78
77
|
private items;
|
|
79
78
|
private currentItemIndex;
|
|
80
79
|
private currentItemPlayer;
|
|
81
|
-
private responses;
|
|
82
|
-
private itemResults;
|
|
83
80
|
private visibleFeedback;
|
|
84
81
|
private itemChangeListeners;
|
|
85
82
|
private sectionChangeListeners;
|
|
@@ -89,6 +86,8 @@ export declare class AssessmentPlayer {
|
|
|
89
86
|
private timeExpiredListeners;
|
|
90
87
|
private timeTickListeners;
|
|
91
88
|
private constructor();
|
|
89
|
+
private get state();
|
|
90
|
+
private set state(value);
|
|
92
91
|
/**
|
|
93
92
|
* Compute effective itemSessionControl for a given item using three-level fallback:
|
|
94
93
|
* section-level (highest priority) → testPart-level → defaults.
|
|
@@ -98,9 +97,6 @@ export declare class AssessmentPlayer {
|
|
|
98
97
|
private getEffectiveItemTimeLimits;
|
|
99
98
|
getCurrentEffectiveTimeLimits(): EffectiveItemTimeLimits;
|
|
100
99
|
private getSubmitTimingEvidence;
|
|
101
|
-
private hasAnyResponse;
|
|
102
|
-
private restoreItemSessionsFromState;
|
|
103
|
-
private getItemSessionStateSnapshot;
|
|
104
100
|
private flattenItems;
|
|
105
101
|
getAllSections(): Array<{
|
|
106
102
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssessmentPlayer.d.ts","sourceRoot":"","sources":["../../src/core/AssessmentPlayer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAE5F,OAAO,KAAK,EACX,qBAAqB,EACrB,sBAAsB,EAEtB,cAAc,EAEd,kBAAkB,EAGlB,aAAa,EAIb,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,UAAU,EACV,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,6BAA6B;IAC7C,OAAO,EAAE,cAAc,CAAC;IACxB,WAAW,EAAE,kBAAkB,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+FAA+F;IAC/F,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IAEjB,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,M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import {
|
|
11
|
+
import { AssessmentSessionCoordinator } from './AssessmentSessionCoordinator.js';
|
|
12
12
|
import { NavigationManager } from './NavigationManager.js';
|
|
13
13
|
import { TimeManager } from './TimeManager.js';
|
|
14
14
|
export class AssessmentPlayer {
|
|
@@ -22,8 +22,6 @@ export class AssessmentPlayer {
|
|
|
22
22
|
this.items = [];
|
|
23
23
|
this.currentItemIndex = -1;
|
|
24
24
|
this.currentItemPlayer = null;
|
|
25
|
-
this.responses = {};
|
|
26
|
-
this.itemResults = new Map();
|
|
27
25
|
this.visibleFeedback = [];
|
|
28
26
|
// Event listeners
|
|
29
27
|
this.itemChangeListeners = new Set();
|
|
@@ -37,28 +35,26 @@ export class AssessmentPlayer {
|
|
|
37
35
|
this.sessionId = init.sessionId;
|
|
38
36
|
this.assessment = init.assessment;
|
|
39
37
|
this.i18nProvider = config.i18nProvider ?? this.createDefaultI18nProvider();
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
38
|
+
const initialState = init.restoredState ??
|
|
39
|
+
{
|
|
40
|
+
currentItemIdentifier: '',
|
|
41
|
+
visitedItems: [],
|
|
42
|
+
itemResponses: {},
|
|
43
|
+
itemScores: {},
|
|
44
|
+
itemSessions: {},
|
|
45
|
+
timing: { startedAt: Date.now(), itemTimes: {}, totalTime: 0 },
|
|
46
|
+
};
|
|
50
47
|
this.items = this.flattenItems(this.assessment);
|
|
51
48
|
const navigationMode = this.assessment.navigationMode || 'nonlinear';
|
|
52
49
|
this.navigationManager = new NavigationManager(navigationMode, this.items.length);
|
|
53
50
|
// Item session control is a UI hint; backend remains authoritative.
|
|
54
51
|
// Start with testPart-level defaults; section-level overrides are applied per item in navigateTo().
|
|
55
52
|
const itemSessionControl = this.assessment.testParts?.[0]?.itemSessionControl;
|
|
56
|
-
this.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
this.restoreItemSessionsFromState(this.state);
|
|
53
|
+
this.sessionCoordinator = new AssessmentSessionCoordinator({
|
|
54
|
+
state: initialState,
|
|
55
|
+
itemIdentifiers: this.items.map((q) => q.identifier),
|
|
56
|
+
itemSessionControl,
|
|
57
|
+
});
|
|
62
58
|
this.timeManager = new TimeManager({
|
|
63
59
|
assessmentTimeLimits: this.assessment.timeLimits,
|
|
64
60
|
warningThreshold: config.timeWarningThreshold || 60,
|
|
@@ -77,6 +73,12 @@ export class AssessmentPlayer {
|
|
|
77
73
|
this.navigateTo(0, { restoring: true }).catch(() => { });
|
|
78
74
|
}
|
|
79
75
|
}
|
|
76
|
+
get state() {
|
|
77
|
+
return this.sessionCoordinator.state;
|
|
78
|
+
}
|
|
79
|
+
set state(state) {
|
|
80
|
+
this.sessionCoordinator.restoreState(state);
|
|
81
|
+
}
|
|
80
82
|
/**
|
|
81
83
|
* Compute effective itemSessionControl for a given item using three-level fallback:
|
|
82
84
|
* section-level (highest priority) → testPart-level → defaults.
|
|
@@ -162,56 +164,6 @@ export class AssessmentPlayer {
|
|
|
162
164
|
allowLateSubmission: effective.timeLimits?.allowLateSubmission,
|
|
163
165
|
};
|
|
164
166
|
}
|
|
165
|
-
hasAnyResponse(responses) {
|
|
166
|
-
for (const v of Object.values(responses)) {
|
|
167
|
-
if (v == null)
|
|
168
|
-
continue;
|
|
169
|
-
if (Array.isArray(v)) {
|
|
170
|
-
if (v.length > 0)
|
|
171
|
-
return true;
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
if (typeof v === 'string') {
|
|
175
|
-
if (v.trim().length > 0)
|
|
176
|
-
return true;
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
// object / number / boolean etc.
|
|
180
|
-
return true;
|
|
181
|
-
}
|
|
182
|
-
return false;
|
|
183
|
-
}
|
|
184
|
-
restoreItemSessionsFromState(state) {
|
|
185
|
-
const restoredStates = new Map();
|
|
186
|
-
for (const item of this.items) {
|
|
187
|
-
const persisted = state.itemSessionStates?.[item.identifier];
|
|
188
|
-
if (persisted) {
|
|
189
|
-
restoredStates.set(item.identifier, {
|
|
190
|
-
itemIdentifier: item.identifier,
|
|
191
|
-
attemptCount: Math.max(0, persisted.attemptCount),
|
|
192
|
-
isAnswered: persisted.isAnswered,
|
|
193
|
-
isSubmitted: persisted.isSubmitted,
|
|
194
|
-
lastSubmissionTime: persisted.lastSubmissionTime,
|
|
195
|
-
});
|
|
196
|
-
continue;
|
|
197
|
-
}
|
|
198
|
-
const responses = state.itemResponses?.[item.identifier] ?? {};
|
|
199
|
-
const isSubmitted = Boolean(state.itemScores?.[item.identifier]);
|
|
200
|
-
restoredStates.set(item.identifier, {
|
|
201
|
-
itemIdentifier: item.identifier,
|
|
202
|
-
attemptCount: isSubmitted ? 1 : 0,
|
|
203
|
-
isAnswered: this.hasAnyResponse(responses),
|
|
204
|
-
isSubmitted,
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
this.sessionController.restoreStates(restoredStates);
|
|
208
|
-
}
|
|
209
|
-
getItemSessionStateSnapshot() {
|
|
210
|
-
return Object.fromEntries([...this.sessionController.getAllStates().entries()].map(([itemIdentifier, state]) => [
|
|
211
|
-
itemIdentifier,
|
|
212
|
-
{ ...state },
|
|
213
|
-
]));
|
|
214
|
-
}
|
|
215
167
|
flattenItems(assessment) {
|
|
216
168
|
const out = [];
|
|
217
169
|
const testParts = assessment.testParts || [];
|
|
@@ -298,12 +250,7 @@ export class AssessmentPlayer {
|
|
|
298
250
|
return this.visibleFeedback;
|
|
299
251
|
}
|
|
300
252
|
updateResponse(responseId, value) {
|
|
301
|
-
this.
|
|
302
|
-
const q = this.items[this.currentItemIndex];
|
|
303
|
-
if (q) {
|
|
304
|
-
this.state.itemResponses[q.identifier] = this.responses;
|
|
305
|
-
this.sessionController.markAnswered(q.identifier, this.hasAnyResponse(this.responses));
|
|
306
|
-
}
|
|
253
|
+
this.sessionCoordinator.updateActiveResponse(responseId, value);
|
|
307
254
|
this.notifyResponseChange();
|
|
308
255
|
}
|
|
309
256
|
/**
|
|
@@ -313,15 +260,11 @@ export class AssessmentPlayer {
|
|
|
313
260
|
* the same responseIdentifier like "RESPONSE" across items).
|
|
314
261
|
*/
|
|
315
262
|
updateResponseForItem(itemIdentifier, responseId, value) {
|
|
316
|
-
const
|
|
317
|
-
const next = { ...prev, [responseId]: value };
|
|
318
|
-
this.state.itemResponses[itemIdentifier] = next;
|
|
319
|
-
this.sessionController.markAnswered(itemIdentifier, this.hasAnyResponse(next));
|
|
263
|
+
const next = this.sessionCoordinator.updateResponseForItem(itemIdentifier, responseId, value);
|
|
320
264
|
// If this is the active item, keep the live response state + UI hints in sync.
|
|
321
265
|
const active = this.items[this.currentItemIndex];
|
|
322
266
|
if (active?.identifier === itemIdentifier) {
|
|
323
|
-
this.
|
|
324
|
-
this.currentItemPlayer?.setResponses(this.responses);
|
|
267
|
+
this.currentItemPlayer?.setResponses(next);
|
|
325
268
|
this.notifyResponseChange();
|
|
326
269
|
}
|
|
327
270
|
}
|
|
@@ -330,21 +273,16 @@ export class AssessmentPlayer {
|
|
|
330
273
|
* (Useful for host integrations / web components.)
|
|
331
274
|
*/
|
|
332
275
|
getResponses() {
|
|
333
|
-
return
|
|
276
|
+
return this.sessionCoordinator.getActiveResponses();
|
|
334
277
|
}
|
|
335
278
|
saveCurrentItemSession() {
|
|
336
279
|
const q = this.items[this.currentItemIndex];
|
|
337
280
|
if (!q || !this.currentItemPlayer)
|
|
338
281
|
return null;
|
|
339
|
-
this.
|
|
282
|
+
const responses = this.sessionCoordinator.getActiveResponses();
|
|
283
|
+
this.currentItemPlayer.setResponses(responses);
|
|
340
284
|
const result = this.currentItemPlayer.suspendAttempt();
|
|
341
|
-
this.
|
|
342
|
-
...(this.state.itemSessions ?? {}),
|
|
343
|
-
[q.identifier]: result.sessionState,
|
|
344
|
-
};
|
|
345
|
-
this.state.itemResponses[q.identifier] = this.responses;
|
|
346
|
-
this.state.timing.itemTimes[q.identifier] = result.duration;
|
|
347
|
-
this.sessionController.markAnswered(q.identifier, this.hasAnyResponse(this.responses));
|
|
285
|
+
this.sessionCoordinator.saveItemSession(q.identifier, responses, result.sessionState, result.duration);
|
|
348
286
|
return result.sessionState;
|
|
349
287
|
}
|
|
350
288
|
endItemSessionForSubmit(q, responses, itemSession) {
|
|
@@ -367,19 +305,7 @@ export class AssessmentPlayer {
|
|
|
367
305
|
* Note: backend remains authoritative; this is intended for simple save/resume.
|
|
368
306
|
*/
|
|
369
307
|
getState(options = {}) {
|
|
370
|
-
|
|
371
|
-
return {
|
|
372
|
-
...this.state,
|
|
373
|
-
visitedItems: [...this.state.visitedItems],
|
|
374
|
-
itemResponses: { ...this.state.itemResponses },
|
|
375
|
-
itemScores: this.state.itemScores ? { ...this.state.itemScores } : undefined,
|
|
376
|
-
itemSessions: options.includeItemSessions && this.state.itemSessions ? { ...this.state.itemSessions } : undefined,
|
|
377
|
-
itemSessionStates: this.getItemSessionStateSnapshot(),
|
|
378
|
-
timing: {
|
|
379
|
-
...this.state.timing,
|
|
380
|
-
itemTimes: { ...this.state.timing.itemTimes },
|
|
381
|
-
},
|
|
382
|
-
};
|
|
308
|
+
return this.sessionCoordinator.snapshot(options);
|
|
383
309
|
}
|
|
384
310
|
/**
|
|
385
311
|
* Restore a previously saved session state.
|
|
@@ -391,19 +317,6 @@ export class AssessmentPlayer {
|
|
|
391
317
|
.map((id) => this.items.findIndex((q) => q.identifier === id))
|
|
392
318
|
.filter((i) => i >= 0);
|
|
393
319
|
this.navigationManager.restoreState(visitedIdx);
|
|
394
|
-
this.restoreItemSessionsFromState(state);
|
|
395
|
-
// Rehydrate itemResults from scores if present, so submit() can behave sensibly.
|
|
396
|
-
this.itemResults.clear();
|
|
397
|
-
if (state.itemScores) {
|
|
398
|
-
for (const [itemIdentifier, scoring] of Object.entries(state.itemScores)) {
|
|
399
|
-
this.itemResults.set(itemIdentifier, {
|
|
400
|
-
itemIdentifier,
|
|
401
|
-
score: scoring.score,
|
|
402
|
-
maxScore: scoring.maxScore,
|
|
403
|
-
responses: state.itemResponses?.[itemIdentifier] || {},
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
320
|
const currentId = state.currentItemIdentifier;
|
|
408
321
|
const idx = currentId ? this.items.findIndex((q) => q.identifier === currentId) : -1;
|
|
409
322
|
if (idx >= 0) {
|
|
@@ -424,7 +337,7 @@ export class AssessmentPlayer {
|
|
|
424
337
|
throw new Error('Navigation is not allowed.');
|
|
425
338
|
}
|
|
426
339
|
const target = this.items[index];
|
|
427
|
-
if (!options.restoring && target && !this.
|
|
340
|
+
if (!options.restoring && target && !this.sessionCoordinator.canReview(target.identifier)) {
|
|
428
341
|
throw new Error('You cannot go back to previous questions in this assessment.');
|
|
429
342
|
}
|
|
430
343
|
const currentItem = this.items[this.currentItemIndex];
|
|
@@ -446,10 +359,10 @@ export class AssessmentPlayer {
|
|
|
446
359
|
// Apply three-level itemSessionControl fallback for this item's section (S1).
|
|
447
360
|
const effectiveControl = this.getEffectiveItemSessionControl(q);
|
|
448
361
|
if (effectiveControl) {
|
|
449
|
-
this.
|
|
362
|
+
this.sessionCoordinator.updateItemSessionControl(effectiveControl);
|
|
450
363
|
}
|
|
451
364
|
// Restore responses
|
|
452
|
-
|
|
365
|
+
const responses = this.sessionCoordinator.activateItem(q.identifier);
|
|
453
366
|
// Create item player
|
|
454
367
|
this.currentItemPlayer?.destroy();
|
|
455
368
|
this.currentItemPlayer = new Player({
|
|
@@ -465,7 +378,7 @@ export class AssessmentPlayer {
|
|
|
465
378
|
this.currentItemPlayer.restoreItemSession(restoredItemSession);
|
|
466
379
|
}
|
|
467
380
|
else {
|
|
468
|
-
this.currentItemPlayer.setResponses(
|
|
381
|
+
this.currentItemPlayer.setResponses(responses);
|
|
469
382
|
}
|
|
470
383
|
this.notifyItemChange();
|
|
471
384
|
this.notifySectionChange();
|
|
@@ -481,9 +394,9 @@ export class AssessmentPlayer {
|
|
|
481
394
|
return;
|
|
482
395
|
const q = this.items[this.currentItemIndex];
|
|
483
396
|
if (q) {
|
|
484
|
-
const
|
|
485
|
-
this.
|
|
486
|
-
const navAway = this.
|
|
397
|
+
const responses = this.sessionCoordinator.getActiveResponses();
|
|
398
|
+
this.sessionCoordinator.markAnswered(q.identifier, responses);
|
|
399
|
+
const navAway = this.sessionCoordinator.canNavigateAway(q.identifier, responses);
|
|
487
400
|
if (!navAway.allowed) {
|
|
488
401
|
throw new Error(navAway.reason || 'You must answer this question before continuing.');
|
|
489
402
|
}
|
|
@@ -511,24 +424,22 @@ export class AssessmentPlayer {
|
|
|
511
424
|
throw new Error('No current item');
|
|
512
425
|
const submittedAt = Date.now();
|
|
513
426
|
let itemSession;
|
|
427
|
+
const responses = this.sessionCoordinator.getActiveResponses();
|
|
514
428
|
if (this.currentItemPlayer) {
|
|
515
|
-
this.currentItemPlayer.setResponses(
|
|
429
|
+
this.currentItemPlayer.setResponses(responses);
|
|
516
430
|
const attempt = this.currentItemPlayer.endAttempt({
|
|
517
|
-
validateResponses: this.
|
|
431
|
+
validateResponses: this.sessionCoordinator.mustValidateResponses(),
|
|
518
432
|
});
|
|
519
433
|
if (attempt.validation && !attempt.validation.valid) {
|
|
520
434
|
throw new Error(attempt.validation.issues[0]?.message || 'Submit failed: invalid response');
|
|
521
435
|
}
|
|
522
436
|
itemSession = attempt.sessionState;
|
|
523
|
-
this.
|
|
524
|
-
...(this.state.itemSessions ?? {}),
|
|
525
|
-
[q.identifier]: itemSession,
|
|
526
|
-
};
|
|
437
|
+
this.sessionCoordinator.setItemSession(q.identifier, itemSession);
|
|
527
438
|
}
|
|
528
439
|
const res = await this.backend.submitResponses({
|
|
529
440
|
sessionId: this.sessionId,
|
|
530
441
|
itemIdentifier: q.identifier,
|
|
531
|
-
responses:
|
|
442
|
+
responses: responses,
|
|
532
443
|
submittedAt,
|
|
533
444
|
timeSpent: itemSession?.duration,
|
|
534
445
|
timing: this.getSubmitTimingEvidence(q, itemSession?.duration ?? 0),
|
|
@@ -538,38 +449,33 @@ export class AssessmentPlayer {
|
|
|
538
449
|
throw new Error(res.error || 'Submit failed');
|
|
539
450
|
}
|
|
540
451
|
if (res.updatedState) {
|
|
541
|
-
|
|
542
|
-
this.state = res.updatedState;
|
|
543
|
-
if (localItemSessions) {
|
|
544
|
-
this.state.itemSessions = { ...(this.state.itemSessions ?? {}), ...localItemSessions };
|
|
545
|
-
}
|
|
452
|
+
this.sessionCoordinator.replaceStatePreservingItemSessions(res.updatedState);
|
|
546
453
|
}
|
|
547
454
|
else {
|
|
548
455
|
// Minimal state update when backend doesn't return full state.
|
|
549
456
|
this.state.itemScores = this.state.itemScores || {};
|
|
550
457
|
this.state.itemScores[q.identifier] = res.result;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
this.state.itemResponses[q.identifier] = this.responses;
|
|
458
|
+
this.sessionCoordinator.markVisited(q.identifier);
|
|
459
|
+
this.state.itemResponses[q.identifier] = responses;
|
|
554
460
|
if (itemSession) {
|
|
555
|
-
this.
|
|
461
|
+
this.sessionCoordinator.setItemSession(q.identifier, itemSession);
|
|
556
462
|
}
|
|
557
463
|
}
|
|
558
464
|
const itemResult = {
|
|
559
465
|
itemIdentifier: q.identifier,
|
|
560
466
|
score: res.result.score,
|
|
561
467
|
maxScore: res.result.maxScore,
|
|
562
|
-
responses: { ...
|
|
468
|
+
responses: { ...responses },
|
|
563
469
|
};
|
|
564
|
-
this.
|
|
470
|
+
this.sessionCoordinator.setItemResult(itemResult);
|
|
565
471
|
// Track item session rules (review/attempts) and visited items for navigation hints.
|
|
566
472
|
try {
|
|
567
|
-
this.
|
|
473
|
+
this.sessionCoordinator.recordAttempt(q.identifier);
|
|
568
474
|
}
|
|
569
475
|
catch {
|
|
570
476
|
// ignore
|
|
571
477
|
}
|
|
572
|
-
this.
|
|
478
|
+
this.sessionCoordinator.markAnswered(q.identifier, responses);
|
|
573
479
|
this.navigationManager.markVisited(this.currentItemIndex);
|
|
574
480
|
// Apply backend branching decision if provided.
|
|
575
481
|
// Special QTI targets EXIT_TEST / EXIT_TESTPART / EXIT_SECTION trigger finalization.
|
|
@@ -616,7 +522,7 @@ export class AssessmentPlayer {
|
|
|
616
522
|
return false;
|
|
617
523
|
if (!this.navigationManager.canNavigateTo(this.currentItemIndex - 1, this.currentItemIndex))
|
|
618
524
|
return false;
|
|
619
|
-
return this.
|
|
525
|
+
return this.sessionCoordinator.canReview(prev.identifier);
|
|
620
526
|
}
|
|
621
527
|
canNext() {
|
|
622
528
|
if (this.currentItemIndex < 0)
|
|
@@ -642,7 +548,7 @@ export class AssessmentPlayer {
|
|
|
642
548
|
const allItemResponses = { ...(this.state.itemResponses || {}) };
|
|
643
549
|
const allItemSessions = { ...(this.state.itemSessions || {}) };
|
|
644
550
|
for (const q of this.items) {
|
|
645
|
-
if (this.
|
|
551
|
+
if (this.sessionCoordinator.hasItemResult(q.identifier))
|
|
646
552
|
continue;
|
|
647
553
|
const submittedAt = Date.now();
|
|
648
554
|
const responsesForItem = (allItemResponses?.[q.identifier] || {});
|
|
@@ -661,22 +567,18 @@ export class AssessmentPlayer {
|
|
|
661
567
|
throw new Error(res.error || `Submit failed for item ${q.identifier}`);
|
|
662
568
|
}
|
|
663
569
|
if (res.updatedState) {
|
|
664
|
-
this.
|
|
665
|
-
// Restore full response map captured on the client.
|
|
666
|
-
this.state.itemResponses = allItemResponses;
|
|
667
|
-
this.state.itemSessions = allItemSessions;
|
|
570
|
+
this.sessionCoordinator.replaceStatePreservingResponsesAndSessions(res.updatedState, allItemResponses, allItemSessions);
|
|
668
571
|
}
|
|
669
572
|
else {
|
|
670
573
|
this.state.itemScores = this.state.itemScores || {};
|
|
671
574
|
this.state.itemScores[q.identifier] = res.result;
|
|
672
|
-
|
|
673
|
-
this.state.visitedItems.push(q.identifier);
|
|
575
|
+
this.sessionCoordinator.markVisited(q.identifier);
|
|
674
576
|
this.state.itemResponses[q.identifier] = responsesForItem;
|
|
675
577
|
if (itemSession) {
|
|
676
|
-
this.
|
|
578
|
+
this.sessionCoordinator.setItemSession(q.identifier, itemSession);
|
|
677
579
|
}
|
|
678
580
|
}
|
|
679
|
-
this.
|
|
581
|
+
this.sessionCoordinator.setItemResult({
|
|
680
582
|
itemIdentifier: q.identifier,
|
|
681
583
|
score: res.result.score,
|
|
682
584
|
maxScore: res.result.maxScore,
|
|
@@ -687,7 +589,7 @@ export class AssessmentPlayer {
|
|
|
687
589
|
else {
|
|
688
590
|
// Ensure current item is submitted (individual submission mode)
|
|
689
591
|
const q = this.items[this.currentItemIndex];
|
|
690
|
-
if (q && !this.
|
|
592
|
+
if (q && !this.sessionCoordinator.hasItemResult(q.identifier)) {
|
|
691
593
|
await this.submitCurrentItem();
|
|
692
594
|
}
|
|
693
595
|
}
|
|
@@ -743,20 +645,7 @@ export class AssessmentPlayer {
|
|
|
743
645
|
if (!q)
|
|
744
646
|
return null;
|
|
745
647
|
const id = q.identifier;
|
|
746
|
-
|
|
747
|
-
if (!state) {
|
|
748
|
-
this.sessionController.initializeItem(id);
|
|
749
|
-
}
|
|
750
|
-
const st = this.sessionController.getItemState(id);
|
|
751
|
-
return {
|
|
752
|
-
canSubmit: this.sessionController.canSubmit(id),
|
|
753
|
-
remainingAttempts: this.sessionController.getRemainingAttempts(id),
|
|
754
|
-
attemptCount: st?.attemptCount ?? 0,
|
|
755
|
-
showFeedback: this.sessionController.shouldShowFeedback(id),
|
|
756
|
-
showSolution: this.sessionController.shouldShowSolution(id),
|
|
757
|
-
canReview: this.sessionController.canReview(id),
|
|
758
|
-
canSkip: this.sessionController.canSkip(id),
|
|
759
|
-
};
|
|
648
|
+
return this.sessionCoordinator.getItemSessionInfo(id);
|
|
760
649
|
}
|
|
761
650
|
getRemainingTime() {
|
|
762
651
|
// TimeManager exposes seconds getters.
|
|
@@ -828,9 +717,10 @@ export class AssessmentPlayer {
|
|
|
828
717
|
this.config.onSectionChange?.(sectionIndex, totalSections);
|
|
829
718
|
}
|
|
830
719
|
notifyResponseChange() {
|
|
720
|
+
const responses = this.sessionCoordinator.getActiveResponses();
|
|
831
721
|
for (const l of this.responseChangeListeners)
|
|
832
|
-
l(
|
|
833
|
-
this.config.onResponseChange?.(
|
|
722
|
+
l(responses);
|
|
723
|
+
this.config.onResponseChange?.(responses);
|
|
834
724
|
}
|
|
835
725
|
notifyComplete() {
|
|
836
726
|
for (const l of this.completeListeners)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { SerializedItemSessionState } from '@pie-qti/item-player';
|
|
2
|
+
import type { AssessmentSessionState } from '../integration/api-contract.js';
|
|
3
|
+
import type { ItemResult } from '../types/index.js';
|
|
4
|
+
import { type ItemSessionControlSettings } from './ItemSessionController.js';
|
|
5
|
+
export interface AssessmentSessionCoordinatorOptions {
|
|
6
|
+
state: AssessmentSessionState;
|
|
7
|
+
itemIdentifiers: string[];
|
|
8
|
+
itemSessionControl?: ItemSessionControlSettings;
|
|
9
|
+
}
|
|
10
|
+
export interface ItemSessionInfo {
|
|
11
|
+
canSubmit: boolean;
|
|
12
|
+
remainingAttempts: number | null;
|
|
13
|
+
attemptCount: number;
|
|
14
|
+
showFeedback: boolean;
|
|
15
|
+
showSolution: boolean;
|
|
16
|
+
canReview: boolean;
|
|
17
|
+
canSkip: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare class AssessmentSessionCoordinator {
|
|
20
|
+
#private;
|
|
21
|
+
constructor({ state, itemIdentifiers, itemSessionControl }: AssessmentSessionCoordinatorOptions);
|
|
22
|
+
get state(): AssessmentSessionState;
|
|
23
|
+
restoreState(state: AssessmentSessionState): void;
|
|
24
|
+
snapshot(options?: {
|
|
25
|
+
includeItemSessions?: boolean;
|
|
26
|
+
}): AssessmentSessionState;
|
|
27
|
+
activateItem(itemIdentifier: string): Record<string, unknown>;
|
|
28
|
+
getActiveResponses(): Record<string, unknown>;
|
|
29
|
+
getResponses(itemIdentifier: string): Record<string, unknown>;
|
|
30
|
+
updateActiveResponse(responseId: string, value: unknown): Record<string, unknown>;
|
|
31
|
+
updateResponseForItem(itemIdentifier: string, responseId: string, value: unknown): Record<string, unknown>;
|
|
32
|
+
saveItemSession(itemIdentifier: string, responses: Record<string, unknown>, sessionState: SerializedItemSessionState, duration: number): void;
|
|
33
|
+
setItemSession(itemIdentifier: string, sessionState: SerializedItemSessionState): void;
|
|
34
|
+
mergeItemSessions(itemSessions: AssessmentSessionState['itemSessions']): void;
|
|
35
|
+
replaceStatePreservingItemSessions(updatedState: AssessmentSessionState): void;
|
|
36
|
+
replaceStatePreservingResponsesAndSessions(updatedState: AssessmentSessionState, itemResponses: AssessmentSessionState['itemResponses'], itemSessions: AssessmentSessionState['itemSessions']): void;
|
|
37
|
+
markVisited(itemIdentifier: string): void;
|
|
38
|
+
markAnswered(itemIdentifier: string, responses: Record<string, unknown>): void;
|
|
39
|
+
canReview(itemIdentifier: string): boolean;
|
|
40
|
+
canNavigateAway(itemIdentifier: string, responses: Record<string, unknown>): {
|
|
41
|
+
allowed: boolean;
|
|
42
|
+
reason?: string;
|
|
43
|
+
};
|
|
44
|
+
updateItemSessionControl(settings: ItemSessionControlSettings): void;
|
|
45
|
+
mustValidateResponses(): boolean;
|
|
46
|
+
recordAttempt(itemIdentifier: string): void;
|
|
47
|
+
setItemResult(itemResult: ItemResult): void;
|
|
48
|
+
hasItemResult(itemIdentifier: string): boolean;
|
|
49
|
+
getItemSessionInfo(itemIdentifier: string): ItemSessionInfo;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=AssessmentSessionCoordinator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssessmentSessionCoordinator.d.ts","sourceRoot":"","sources":["../../src/core/AssessmentSessionCoordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,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