@pie-players/pie-assessment-player 0.3.66 → 0.3.68

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
- export interface SectionSessionSnapshot {
5
- currentItemIndex?: number;
6
- visitedItemIdentifiers?: string[];
7
- itemSessions: Record<string, unknown>;
8
- }
9
- export interface AssessmentSessionNavigationState {
10
- currentSectionIndex: number;
11
- visitedSectionIdentifiers: string[];
12
- currentSectionIdentifier?: string;
13
- }
14
- export interface AssessmentSessionRealization {
15
- seed: string;
16
- sectionIdentifiers: string[];
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.66",
3
+ "version": "0.3.68",
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.66",
54
- "@pie-players/pie-players-shared": "0.3.66",
55
- "@pie-players/pie-section-player": "0.3.66"
53
+ "@pie-players/pie-assessment-toolkit": "0.3.68",
54
+ "@pie-players/pie-players-shared": "0.3.68",
55
+ "@pie-players/pie-section-player": "0.3.68"
56
56
  },
57
57
  "devDependencies": {
58
- "@axe-core/playwright": "^4.12.1",
58
+ "@axe-core/playwright": "^4.13.0",
59
59
  "@playwright/test": "^1.62.1",
60
- "@biomejs/biome": "^2.5.7",
60
+ "@biomejs/biome": "^2.5.8",
61
61
  "typescript": "^5.9.3",
62
- "vite": "^8.0.10",
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",