@campfirelearning/sdk-lti
Advanced tools
Comparing version 0.11.4 to 0.12.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [0.12.0](https://github.com/examspark/campfire-sdk/compare/@campfirelearning/sdk-lti@0.11.4...@campfirelearning/sdk-lti@0.12.0) (2025-01-22) | ||
### Features | ||
- support exam preview in SDK ([41b7e13](https://github.com/examspark/campfire-sdk/commit/41b7e138c804d12257c1b111ce4112193ff85fe0)) | ||
## [0.11.4](https://github.com/examspark/campfire-sdk/compare/@campfirelearning/sdk-lti@0.11.3...@campfirelearning/sdk-lti@0.11.4) (2025-01-13) | ||
@@ -8,0 +14,0 @@ |
@@ -8,2 +8,3 @@ import { z } from "zod"; | ||
id: string; | ||
preview?: boolean; | ||
launchOptions?: { | ||
@@ -10,0 +11,0 @@ userPrefs?: UserPrefs; |
{ | ||
"name": "@campfirelearning/sdk-lti", | ||
"version": "0.11.4", | ||
"version": "0.12.0", | ||
"main": "./src/index.ts", | ||
@@ -43,3 +43,3 @@ "author": "ExamSpark, LLC", | ||
}, | ||
"gitHead": "98643468332d42178806f327140e7808ee35585c" | ||
"gitHead": "0dd6f24565bf59622f213c03109029a1dcf83a68" | ||
} |
@@ -15,2 +15,3 @@ import { z } from "zod"; | ||
id: string; | ||
preview?: boolean; | ||
launchOptions?: { | ||
@@ -61,4 +62,9 @@ userPrefs?: UserPrefs; | ||
constructor(options: CampfireAssessmentPlayerOptions) { | ||
let launchUrl = `/lti/launch/exam/${options.id}`; | ||
if (options.preview) { | ||
launchUrl = `/lti/launch/exam/${options.id}/preview`; | ||
} | ||
const params = prepareLtiParams({ | ||
launchUrl: `/lti/launch/exam/${options.id}`, | ||
launchUrl, | ||
options, | ||
@@ -65,0 +71,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
328260
7793