@pie-qti/assessment-player 0.1.28 → 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/README.md +13 -0
- package/dist/core/AssessmentPlayer.d.ts +54 -14
- package/dist/core/AssessmentPlayer.js +204 -166
- package/dist/core/AssessmentPlayer.js.map +1 -1
- package/dist/core/AssessmentSessionCoordinator.d.ts +10 -2
- package/dist/core/AssessmentSessionCoordinator.js +24 -3
- package/dist/core/AssessmentSessionCoordinator.js.map +1 -1
- package/dist/core/ItemSessionController.d.ts +14 -3
- package/dist/core/ItemSessionController.js +31 -12
- package/dist/core/ItemSessionController.js.map +1 -1
- package/dist/core/TimeManager.d.ts +20 -7
- package/dist/core/TimeManager.js +20 -18
- package/dist/core/TimeManager.js.map +1 -1
- package/dist/core/testStructure.d.ts +65 -0
- package/dist/core/testStructure.js +336 -0
- package/dist/core/testStructure.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/integration/ReferenceBackendAdapter.d.ts +53 -5
- package/dist/integration/ReferenceBackendAdapter.js +317 -230
- package/dist/integration/ReferenceBackendAdapter.js.map +1 -1
- package/dist/integration/api-contract.d.ts +92 -49
- package/dist/integration/api-contract.js.map +1 -1
- package/dist/integration/assessment-item-scorer.d.ts +11 -1
- package/dist/integration/assessment-item-scorer.js +102 -12
- package/dist/integration/assessment-item-scorer.js.map +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js.map +1 -1
- package/dist/integration/toSectionComposition.js +1 -0
- package/dist/integration/toSectionComposition.js.map +1 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +10 -10
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG","sourcesContent":["/**\n * Public type definitions for the backend-authoritative assessment player.\n *\n * The client does not evaluate branching or outcome processing; it renders items and\n * delegates decisions to a BackendAdapter.\n */\n\nexport type QTIRole = import('@pie-qti/item-player').QTIRole;\nexport type ResolvedItemDeliveryContext = import('@pie-qti/item-player').ResolvedItemDeliveryContext;\n\n/**\n * Minimal item reference shape used by the UI renderer.\n */\nexport interface ItemRef {\n\tidentifier: string;\n\ttitle?: string;\n\trequired?: boolean;\n\t/** Client-safe item XML (backend filtered by role). */\n\titemXml?: string;\n\t/** Optional resolved QTI 3 delivery context produced by package/assessment layers. */\n\tdeliveryContext?: ResolvedItemDeliveryContext;\n}\n\n/**\n * Time limits (test/section/item level), matching QTI concepts.\n */\nexport interface TimeLimits {\n\tmaxTime?: number; // seconds\n\tminTime?: number; // seconds\n\tallowLateSubmission?: boolean;\n}\n\nexport interface NavigationState {\n\tcurrentIndex: number;\n\ttotalItems: number;\n\tcanNext: boolean;\n\tcanPrevious: boolean;\n\tisLoading: boolean;\n\tcurrentSection?: {\n\t\tid: string;\n\t\ttitle?: string;\n\t\tindex: number;\n\t};\n\ttotalSections?: number;\n}\n\nexport interface ItemResult {\n\titemIdentifier: string;\n\tscore: number;\n\tmaxScore: number;\n\tresponses: Record<string, unknown>;\n}\n\nexport interface AssessmentResults {\n\ttotalScore: number;\n\tmaxScore: number;\n\titemResults: ItemResult[];\n\tcompletedAt: Date;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG","sourcesContent":["/**\n * Public type definitions for the backend-authoritative assessment player.\n *\n * The client does not evaluate branching or outcome processing; it renders items and\n * delegates decisions to a BackendAdapter.\n */\n\nexport type QTIRole = import('@pie-qti/item-player').QTIRole;\nexport type ResolvedItemDeliveryContext = import('@pie-qti/item-player').ResolvedItemDeliveryContext;\n\n/**\n * Minimal item reference shape used by the UI renderer.\n */\nexport interface ItemRef {\n\tidentifier: string;\n\ttitle?: string;\n\trequired?: boolean;\n\t/** Client-safe item XML (backend filtered by role). */\n\titemXml?: string;\n\t/** Optional resolved QTI 3 delivery context produced by package/assessment layers. */\n\tdeliveryContext?: ResolvedItemDeliveryContext;\n}\n\n/**\n * Time limits (test/section/item level), matching QTI concepts.\n */\nexport interface TimeLimits {\n\tmaxTime?: number; // seconds\n\tminTime?: number; // seconds\n\tallowLateSubmission?: boolean;\n}\n\nexport interface NavigationState {\n\tcurrentIndex: number;\n\ttotalItems: number;\n\tcanNext: boolean;\n\tcanPrevious: boolean;\n\tisLoading: boolean;\n\tcurrentSection?: {\n\t\tid: string;\n\t\ttitle?: string;\n\t\tindex: number;\n\t};\n\ttotalSections?: number;\n}\n\nexport interface ItemResult {\n\titemIdentifier: string;\n\tscore: number;\n\tmaxScore: number;\n\tresponses: Record<string, unknown>;\n}\n\nexport interface AssessmentResults {\n\ttotalScore: number;\n\tmaxScore: number;\n\titemResults: ItemResult[];\n\tcompletedAt: Date;\n}\n\n/** A test feedback block `AssessmentPlayer.getVisibleFeedback()` shows now. */\nexport interface VisibleTestFeedback {\n\t/** Unique across the test; feedback identifiers repeat, for example in show/hide pairs. */\n\tkey: string;\n\tidentifier: string;\n\tcontent: string;\n\taccess: 'atEnd' | 'during';\n\t/** Set for feedback authored on a test part. */\n\ttestPartIdentifier?: string;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-qti/assessment-player",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "QTI Assessment Player supporting QTI 2.2 and 3.0 - Multi-item test player with navigation, sections, and rubric blocks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pie-qti/assessment-toolkit": "0.
|
|
32
|
-
"@pie-qti/default-components": "0.
|
|
33
|
-
"@pie-qti/ims-cp-core": "0.
|
|
34
|
-
"@pie-qti/item-player": "0.
|
|
35
|
-
"@pie-qti/qti-common": "0.
|
|
36
|
-
"@pie-qti/qti-processing": "0.
|
|
37
|
-
"@pie-qti/section-player": "0.
|
|
31
|
+
"@pie-qti/assessment-toolkit": "1.0.0-beta.0",
|
|
32
|
+
"@pie-qti/default-components": "1.0.0-beta.0",
|
|
33
|
+
"@pie-qti/ims-cp-core": "1.0.0-beta.0",
|
|
34
|
+
"@pie-qti/item-player": "1.0.0-beta.0",
|
|
35
|
+
"@pie-qti/qti-common": "1.0.0-beta.0",
|
|
36
|
+
"@pie-qti/qti-processing": "1.0.0-beta.0",
|
|
37
|
+
"@pie-qti/section-player": "1.0.0-beta.0",
|
|
38
38
|
"node-html-parser": "^9.0.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@pie-qti/i18n": "0.
|
|
41
|
+
"@pie-qti/i18n": "1.0.0-beta.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@pie-qti/i18n": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@biomejs/biome": "^2.5.15",
|
|
50
|
-
"@pie-qti/i18n": "0.
|
|
50
|
+
"@pie-qti/i18n": "1.0.0-beta.0",
|
|
51
51
|
"@types/node": "^26.6.4",
|
|
52
52
|
"svelte": "^5.57.1",
|
|
53
53
|
"svelte-check": "^4.7.5",
|