@pie-players/pie-assessment-player 0.3.75 → 1.0.0-beta.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.
package/dist/types.d.ts CHANGED
@@ -5,13 +5,9 @@ import { SectionPlayerRuntimeConfig } from '@pie-players/pie-section-player';
5
5
  * Re-exported so every existing import site keeps its specifier. These shapes are
6
6
  * canonical in `@pie-players/pie-players-shared/types`.
7
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.
8
+ * `SectionControllerSessionState` is the full section snapshot both
9
+ * `upsertSectionSession` implementations pass through, so the assessment layer
10
+ * reads its `formative` and `timedMedia` slices without a cast.
15
11
  */
16
12
  export type { AssessmentSession, AssessmentSectionSessionState, AssessmentSessionNavigationState, AssessmentSessionRealization, SectionControllerSessionState, };
17
13
  export interface AssessmentSectionInstance {
@@ -56,7 +52,6 @@ export interface AssessmentPlayerHooks {
56
52
  phase: "delivery-plan-create" | "session-load" | "session-save" | "controller-init" | "controller-dispose" | "navigation";
57
53
  details?: Record<string, unknown>;
58
54
  }) => void;
59
- onTelemetry?: (eventName: string, payload?: Record<string, unknown>) => void | Promise<void>;
60
55
  }
61
56
  export interface AssessmentDefinition {
62
57
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-assessment-player",
3
- "version": "0.3.75",
3
+ "version": "1.0.0-beta.0",
4
4
  "type": "module",
5
5
  "description": "Assessment-level coordinator custom elements for orchestrating section-player instances",
6
6
  "license": "MIT",
@@ -24,22 +24,12 @@
24
24
  "./components/assessment-player-default-element": {
25
25
  "types": "./dist/pie-assessment-player.d.ts",
26
26
  "import": "./dist/pie-assessment-player.js"
27
- },
28
- "./components/assessment-player-shell-element": {
29
- "types": "./dist/pie-assessment-player.d.ts",
30
- "import": "./dist/pie-assessment-player.js"
31
- },
32
- "./contracts/public-events": {
33
- "types": "./dist/pie-assessment-player.d.ts",
34
- "import": "./dist/pie-assessment-player.js"
35
- },
36
- "./contracts/runtime-host-contract": {
37
- "types": "./dist/pie-assessment-player.d.ts",
38
- "import": "./dist/pie-assessment-player.js"
39
27
  }
40
28
  },
29
+ "customElements": "custom-elements.json",
41
30
  "files": [
42
- "dist"
31
+ "dist",
32
+ "custom-elements.json"
43
33
  ],
44
34
  "scripts": {
45
35
  "build": "vite build",
@@ -50,16 +40,17 @@
50
40
  "lint": "biome lint ."
51
41
  },
52
42
  "dependencies": {
53
- "@pie-players/pie-assessment-toolkit": "0.3.75",
54
- "@pie-players/pie-players-shared": "0.3.75",
55
- "@pie-players/pie-section-player": "0.3.75"
43
+ "@pie-players/pie-assessment-toolkit": "1.0.0-beta.0",
44
+ "@pie-players/pie-players-shared": "1.0.0-beta.0",
45
+ "@pie-players/pie-section-player": "1.0.0-beta.0"
56
46
  },
57
47
  "devDependencies": {
58
48
  "@axe-core/playwright": "^4.13.0",
49
+ "@happy-dom/global-registrator": "^20.14.5",
59
50
  "@playwright/test": "^1.63.0",
60
51
  "@biomejs/biome": "^2.5.15",
61
52
  "typescript": "^5.9.3",
62
- "vite": "^8.3.2",
53
+ "vite": "^8.3.3",
63
54
  "vite-plugin-dts": "^5.1.2"
64
55
  },
65
56
  "homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/assessment-player#readme",