@pie-players/pie-assessment-toolkit 0.3.71 → 0.3.73

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.
@@ -392,6 +392,21 @@ export interface SectionControllerHandle {
392
392
  * is what the strategy load/save methods exchange.
393
393
  */
394
394
  configureSessionPersistence?(config: SectionSessionPersistenceConfig): void | Promise<void>;
395
+ /**
396
+ * Register a commit for the section's pending element sessions.
397
+ *
398
+ * A delivery element coalesces its `session-changed` dispatch, so a response
399
+ * can still be pending when the controller reaches a boundary that reads or
400
+ * discards the session - `updateInput()`, `navigateToItem()`, `persist()`.
401
+ * The controller is DOM-free, so the owner of the section's DOM supplies the
402
+ * commit and the controller calls it before those boundaries.
403
+ *
404
+ * The player that mounts the section registers this on every controller it
405
+ * creates. A host-built controller that leaves it unimplemented keeps the
406
+ * behaviour it had before the hook existed, and loses a pending response at
407
+ * those boundaries.
408
+ */
409
+ setPendingSessionCommit?(commit: (() => void) | null): void;
395
410
  /**
396
411
  * Record one Try for an item: derive correctness from the element outcomes,
397
412
  * increment the Try count, and reveal feedback if the item's resolved
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-assessment-toolkit",
3
- "version": "0.3.71",
3
+ "version": "0.3.73",
4
4
  "type": "module",
5
5
  "description": "PIE assessment toolkit: composable services + reference implementation for assessment players and tool coordination",
6
6
  "license": "MIT",
@@ -83,17 +83,17 @@
83
83
  "test": "bun test"
84
84
  },
85
85
  "dependencies": {
86
- "@pie-players/pie-calculator": "0.3.71",
87
- "@pie-players/pie-context": "0.3.71",
88
- "@pie-players/pie-players-shared": "0.3.71",
89
- "@pie-players/pie-tts": "0.3.71",
86
+ "@pie-players/pie-calculator": "0.3.73",
87
+ "@pie-players/pie-context": "0.3.73",
88
+ "@pie-players/pie-players-shared": "0.3.73",
89
+ "@pie-players/pie-tts": "0.3.73",
90
90
  "speech-rule-engine": "^5.0.0-rc.4"
91
91
  },
92
92
  "peerDependencies": {
93
- "@pie-players/pie-calculator-cortex": "0.3.71",
94
- "@pie-players/pie-calculator-desmos": "0.3.71",
95
- "@pie-players/pie-calculator-geogebra": "0.3.71",
96
- "@pie-players/tts-client-server": "0.3.71"
93
+ "@pie-players/pie-calculator-cortex": "0.3.73",
94
+ "@pie-players/pie-calculator-desmos": "0.3.73",
95
+ "@pie-players/pie-calculator-geogebra": "0.3.73",
96
+ "@pie-players/tts-client-server": "0.3.73"
97
97
  },
98
98
  "peerDependenciesMeta": {
99
99
  "@pie-players/pie-calculator-cortex": {
@@ -110,12 +110,12 @@
110
110
  }
111
111
  },
112
112
  "devDependencies": {
113
- "@biomejs/biome": "^2.5.11",
113
+ "@biomejs/biome": "^2.5.13",
114
114
  "@happy-dom/global-registrator": "^20.11.15",
115
- "@pie-players/pie-calculator-cortex": "0.3.71",
116
- "@pie-players/pie-calculator-desmos": "0.3.71",
117
- "@pie-players/pie-calculator-geogebra": "0.3.71",
118
- "@pie-players/tts-client-server": "0.3.71",
115
+ "@pie-players/pie-calculator-cortex": "0.3.73",
116
+ "@pie-players/pie-calculator-desmos": "0.3.73",
117
+ "@pie-players/pie-calculator-geogebra": "0.3.73",
118
+ "@pie-players/tts-client-server": "0.3.73",
119
119
  "svelte": "^5.57.0",
120
120
  "typescript": "^5.9.3"
121
121
  },