@pie-players/pie-assessment-player 0.3.67 → 0.3.69
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/types.d.ts
CHANGED
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
import { AssessmentSection, Env, TestPart } from '@pie-players/pie-players-shared/types';
|
|
1
|
+
import { AssessmentSection, AssessmentSession, AssessmentSectionSessionState, AssessmentSessionNavigationState, AssessmentSessionRealization, Env, SectionControllerSessionState, TestPart } from '@pie-players/pie-players-shared/types';
|
|
2
2
|
import { LoaderConfig } from '@pie-players/pie-players-shared/loader-config';
|
|
3
3
|
import { SectionPlayerRuntimeConfig } from '@pie-players/pie-section-player';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export interface AssessmentSectionSessionState {
|
|
19
|
-
sectionIdentifier: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
session: SectionSessionSnapshot | null;
|
|
22
|
-
}
|
|
23
|
-
export interface AssessmentSession {
|
|
24
|
-
version: 1;
|
|
25
|
-
assessmentAttemptSessionIdentifier: string;
|
|
26
|
-
assessmentId: string;
|
|
27
|
-
startedAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
completedAt?: string;
|
|
30
|
-
navigationState: AssessmentSessionNavigationState;
|
|
31
|
-
realization: AssessmentSessionRealization;
|
|
32
|
-
sectionSessions: Record<string, AssessmentSectionSessionState>;
|
|
33
|
-
contextVariables?: Record<string, unknown>;
|
|
34
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* Re-exported so every existing import site keeps its specifier. These shapes are
|
|
6
|
+
* canonical in `@pie-players/pie-players-shared/types`.
|
|
7
|
+
*
|
|
8
|
+
* `SectionControllerSessionState` replaces a local `SectionSessionSnapshot` that
|
|
9
|
+
* declared only `currentItemIndex`, `visitedItemIdentifiers` and `itemSessions`.
|
|
10
|
+
* The runtime always carried the full snapshot — both `upsertSectionSession`
|
|
11
|
+
* implementations pass the object through by reference — so the narrow type never
|
|
12
|
+
* lost data; it made the `formative` and `timedMedia` slices unreadable from here
|
|
13
|
+
* without a cast, which is why the assessment layer could not roll up mastery it
|
|
14
|
+
* was already persisting.
|
|
15
|
+
*/
|
|
16
|
+
export type { AssessmentSession, AssessmentSectionSessionState, AssessmentSessionNavigationState, AssessmentSessionRealization, SectionControllerSessionState, };
|
|
35
17
|
export interface AssessmentSectionInstance {
|
|
36
18
|
stageIdentifier?: string;
|
|
37
19
|
stageIndex: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-assessment-player",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Assessment-level coordinator custom elements for orchestrating section-player instances",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"lint": "biome check ."
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
54
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
55
|
-
"@pie-players/pie-section-player": "0.3.
|
|
53
|
+
"@pie-players/pie-assessment-toolkit": "0.3.69",
|
|
54
|
+
"@pie-players/pie-players-shared": "0.3.69",
|
|
55
|
+
"@pie-players/pie-section-player": "0.3.69"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@axe-core/playwright": "^4.
|
|
58
|
+
"@axe-core/playwright": "^4.13.0",
|
|
59
59
|
"@playwright/test": "^1.62.1",
|
|
60
|
-
"@biomejs/biome": "^2.5.
|
|
60
|
+
"@biomejs/biome": "^2.5.10",
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
|
-
"vite": "^8.
|
|
62
|
+
"vite": "^8.2.1",
|
|
63
63
|
"vite-plugin-dts": "^5.0.3"
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/assessment-player#readme",
|