@edpire/sdk 0.10.0 → 0.11.1

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,62 @@ the package follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [0.11.1] - 2026-11-19
15
+
16
+ ### Fixed
17
+
18
+ - **A dragged word scrolls the page on a page with smooth scrolling.** When the host page sets
19
+ `scroll-behavior: smooth` (on `<html>` or a box around the player), every step of the drag's
20
+ auto-scroll was cancelled by the next one: the page crawled, and on an iPhone it didn't move at
21
+ all, so a blank above the word bank was out of reach. While a word is held, the page and every
22
+ smooth box around it now scroll instantly; your style is put back on drop. Runtime 3.19.1.
23
+
24
+ ## [0.11.0] - 2026-11-19
25
+
26
+ ### Changed
27
+
28
+ - **The player grows with the paper and the page scrolls.** It was a screen-tall box scrolling
29
+ inside itself: with a page that could also move around it (a phone keyboard pushing the page up,
30
+ your header around the embed), learners got two scrollers. Now it is at least as tall as the
31
+ screen, the page scrolls, the top bar sticks to the top, and every jump to a question lands
32
+ below the bar. `EdpireAssessmentPlayer`'s default style is `{ width: "100%" }` (it also set
33
+ `height: "100%"`).
34
+ - **Arabic papers get the player's Arabic words** ("بنك الكلمات", the hint and arrow labels): they
35
+ were given the French ones ("Banque de mots").
36
+
37
+ ### Added
38
+
39
+ - **A wide table says it slides** (T166). A table wider than the screen shades each edge that hides
40
+ columns and shows small ‹ › arrows above and below it; an arrow greys once that end is reached.
41
+ Students on phones didn't find the rest of the table. Tables that fit are unchanged.
42
+ - **A ghost hand teaches the tap.** On a touch screen a hand taps the first word of a word bank,
43
+ showing that one tap puts the word in the first empty blank, until the learner has placed two
44
+ words by tapping (remembered on the device in `localStorage`, key `edpire:tap-hint-placed`).
45
+ - **A wrong maths answer shows the right one**, as a typed blank does, when the assessment shows
46
+ answers; its verdict is in the paper's language.
47
+
48
+ ### Fixed
49
+
50
+ - **Dragging a word scrolls the page again** when it is held near the top or bottom: the zone is
51
+ the top and bottom quarter of the screen. It was so thin on a phone that it sat under the top
52
+ bar, and a blank above the word bank could not be reached by dragging.
53
+ - **A hint's bubble is no longer cut off** by the card around it (it was clipped at the card's
54
+ edge when the "?" sat on the right).
55
+ - **A review shows the learner's answers again.** `EdpireAssessment.review()` and
56
+ `AssessmentReviewEmbed` drew every question empty and answerable since 0.9.0: the answers and
57
+ the read-only state never reached the questions. They are back, locked. The same cause dropped
58
+ the `mediaHandler` you pass to the player before it reached the questions; it reaches them again.
59
+ - Bundles `@youssefalmia/edpire-runtime` 3.19.0 (the review fix came in 3.18.1).
60
+
61
+ ### Upgrade notes
62
+
63
+ - **Check how the player sits in your page before you move a pinned version or script URL.** A
64
+ container sized for the old player (`height: 100vh`, or a flex child of a screen-tall page) now
65
+ lets the player grow past it: replace the fixed `height` with `min-height`, or remove it. A box
66
+ that must keep its own height (a panel, a modal) needs `overflow: auto`, and a container that
67
+ hides its overflow cuts the paper off. See Container sizing in the embedded player docs.
68
+ - Arabic papers read differently (Arabic words instead of French ones). Nothing else to change.
69
+
14
70
  ## [0.10.0] - 2026-11-09
15
71
 
16
72
  ### Changed
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.10.0/dist/umd/index.global.js"></script>
95
+ <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.11.1/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.10.0/dist/umd/index.global.js"></script>
333
+ <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.11.1/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/client.d.mts CHANGED
@@ -380,7 +380,7 @@ interface CheckOptions {
380
380
  * When true, the feedback includes correct-answer fields:
381
381
  * - `correctChoiceIds` for choice/drag-drop questions
382
382
  * - `correctPairings` for matching questions
383
- * - `displayAnswer` for typed blank questions
383
+ * - `displayAnswer` for typed blanks, and maths answers (as LaTeX)
384
384
  *
385
385
  * Use this in Duolingo-style flows to reveal the correct answer after the
386
386
  * learner has committed their response. Rate limiting (3 checks per question