@edpire/sdk 0.12.3 → 0.14.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/CHANGELOG.md CHANGED
@@ -11,6 +11,47 @@ the package follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [0.14.0] - 2026-12-01
15
+
16
+ Bundles runtime 3.22.1 (maths for real papers, edpire.com T189).
17
+
18
+ ### Added
19
+
20
+ - A maths keyboard for real papers on every maths field ("More"): tabs for analysis (limits,
21
+ infinities, ln, exponentials), sets and intervals (ℝ, ∖, ∪, ∩, brackets) and matrices (2×2,
22
+ 3×3, columns, determinants, systems of 2 and 3 lines), then numbers and Greek.
23
+ - A single maths result box has the same row of keys as the detailed answer, and "More".
24
+ - Formulas show in hints.
25
+
26
+ ### Changed
27
+
28
+ - A maths field's menu no longer offers Evaluate, Simplify or Solve (they could compute the answer
29
+ for the learner), nor colours and modes.
30
+
31
+ ## [0.13.0] - 2026-12-01
32
+
33
+ Bundles runtime 3.21.0 and schema 5.8.0 (maths answers, edpire.com T189).
34
+
35
+ ### Added
36
+
37
+ - **The answer sheet.** A teacher's "Detailed answer" (an AI-graded answer with maths on) and any
38
+ written answer with maths switched on show one box where maths typed as written becomes maths
39
+ (`x^2`, `1/2`, `sqrt`, `<=`, `x =`), with maths keys under it. The answer keeps its plain `text`
40
+ (formulas as `$…$`) and adds `content` (the sheet), so code that reads `text` keeps working.
41
+ - `answerSheetHandler` on `AssessmentShell`, `EdpireAssessmentPlayer` and `AssessmentEmbed`, plus
42
+ `createAnswerSheetHandler` / `embedAnswerSheetHandler`: reads a photo of the learner's copy or a
43
+ handwritten formula into the sheet. The embed uses `POST /api/v1/embed/read` by default. The
44
+ builder does not offer photo or handwriting answers yet, so nothing shows them today.
45
+ - `onReportGrade` on `AssessmentShell`: "Report a marking mistake" under each automatically marked
46
+ question once the paper is submitted; the host sends the learner's reason. Without it, no button.
47
+
48
+ ### Upgrade notes
49
+
50
+ - New dependencies `@tiptap/core`, `@tiptap/pm` and `@tiptap/extensions` (the answer sheet), installed
51
+ with the SDK; a test setup that lists the SDK's externals must add them.
52
+ - Nothing to change. Older players show a detailed answer as a plain text box, and it is still
53
+ graded; maths results are checked on our servers for every SDK version.
54
+
14
55
  ## [0.12.3] - 2026-11-28
15
56
 
16
57
  ### Fixed
package/README.md CHANGED
@@ -92,7 +92,7 @@ embed.unmount()
92
92
  **CDN (no bundler):**
93
93
 
94
94
  ```html
95
- <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.12.3/dist/umd/index.global.js"></script>
95
+ <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.14.0/dist/umd/index.global.js"></script>
96
96
  <script>
97
97
  EdpireSDK.EdpireAssessment.mount({ token, container: "#root", onComplete: handleDone })
98
98
  </script>
@@ -330,7 +330,7 @@ The integration uses two parts:
330
330
  </head>
331
331
  <body>
332
332
  <div id="root"></div>
333
- <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.12.3/dist/umd/index.global.js"></script>
333
+ <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.14.0/dist/umd/index.global.js"></script>
334
334
  <script>
335
335
  EdpireSDK.EdpireAssessment.mount({
336
336
  token: "{{EMBED_TOKEN}}", // replace server-side before loading
package/dist/index.d.mts CHANGED
@@ -287,6 +287,12 @@ interface MountOptions {
287
287
  * questions with file-upload or recording modes.
288
288
  */
289
289
  mediaHandler?: QuestionRuntimeProps["mediaHandler"];
290
+ /**
291
+ * Reads a photo of the learner's paper copy and a handwritten formula into the answer sheet
292
+ * (Rédaction and open answers with the sheet on, runtime 3.21.0+). Without it the sheet takes
293
+ * typed text and formulas only.
294
+ */
295
+ answerSheetHandler?: QuestionRuntimeProps["answerSheetHandler"];
290
296
  /**
291
297
  * Called when the learner successfully submits the assessment.
292
298
  */