@edpire/sdk 0.9.4 → 0.11.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,75 @@ the package follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [0.11.0] - 2026-11-19
15
+
16
+ ### Changed
17
+
18
+ - **The player grows with the paper and the page scrolls.** It was a screen-tall box scrolling
19
+ inside itself: with a page that could also move around it (a phone keyboard pushing the page up,
20
+ your header around the embed), learners got two scrollers. Now it is at least as tall as the
21
+ screen, the page scrolls, the top bar sticks to the top, and every jump to a question lands
22
+ below the bar. `EdpireAssessmentPlayer`'s default style is `{ width: "100%" }` (it also set
23
+ `height: "100%"`).
24
+ - **Arabic papers get the player's Arabic words** ("بنك الكلمات", the hint and arrow labels): they
25
+ were given the French ones ("Banque de mots").
26
+
27
+ ### Added
28
+
29
+ - **A wide table says it slides** (T166). A table wider than the screen shades each edge that hides
30
+ columns and shows small ‹ › arrows above and below it; an arrow greys once that end is reached.
31
+ Students on phones didn't find the rest of the table. Tables that fit are unchanged.
32
+ - **A ghost hand teaches the tap.** On a touch screen a hand taps the first word of a word bank,
33
+ showing that one tap puts the word in the first empty blank, until the learner has placed two
34
+ words by tapping (remembered on the device in `localStorage`, key `edpire:tap-hint-placed`).
35
+ - **A wrong maths answer shows the right one**, as a typed blank does, when the assessment shows
36
+ answers; its verdict is in the paper's language.
37
+
38
+ ### Fixed
39
+
40
+ - **Dragging a word scrolls the page again** when it is held near the top or bottom: the zone is
41
+ the top and bottom quarter of the screen. It was so thin on a phone that it sat under the top
42
+ bar, and a blank above the word bank could not be reached by dragging.
43
+ - **A hint's bubble is no longer cut off** by the card around it (it was clipped at the card's
44
+ edge when the "?" sat on the right).
45
+ - **A review shows the learner's answers again.** `EdpireAssessment.review()` and
46
+ `AssessmentReviewEmbed` drew every question empty and answerable since 0.9.0: the answers and
47
+ the read-only state never reached the questions. They are back, locked. The same cause dropped
48
+ the `mediaHandler` you pass to the player before it reached the questions; it reaches them again.
49
+ - Bundles `@youssefalmia/edpire-runtime` 3.19.0 (the review fix came in 3.18.1).
50
+
51
+ ### Upgrade notes
52
+
53
+ - **Check how the player sits in your page before you move a pinned version or script URL.** A
54
+ container sized for the old player (`height: 100vh`, or a flex child of a screen-tall page) now
55
+ lets the player grow past it: replace the fixed `height` with `min-height`, or remove it. A box
56
+ that must keep its own height (a panel, a modal) needs `overflow: auto`, and a container that
57
+ hides its overflow cuts the paper off. See Container sizing in the embedded player docs.
58
+ - Arabic papers read differently (Arabic words instead of French ones). Nothing else to change.
59
+
60
+ ## [0.10.0] - 2026-11-09
61
+
62
+ ### Changed
63
+
64
+ - **Tables fit their content.** Columns size to what is in them instead of sharing the width
65
+ equally, at 14 px with tighter rows, and a word or a number like `3 500` is never split. A
66
+ teacher's dragged column widths are kept. On a long accounting paper the tables took less than
67
+ half the height. Content and grading are unchanged; only the layout.
68
+ - **Wide tables swipe inside themselves** on a narrow screen, with the first column held (on the
69
+ right in Arabic).
70
+ - **A typed answer in a table cell fills the cell** and no longer grows while the learner types, so
71
+ the columns stay put.
72
+
73
+ ### Added
74
+
75
+ - Grey cells: a cell the teacher greyed out (`attrs.gray` on a table cell in `content_ast`) shows
76
+ grey. Older versions ignore the attribute.
77
+
78
+ ### Upgrade notes
79
+
80
+ - Nothing to change. It is a minor version because every table looks different after the
81
+ upgrade: check a page with tables before you move a pinned script URL. Bundles runtime 3.18.0.
82
+
14
83
  ## [0.9.4] - 2026-11-09
15
84
 
16
85
  ### Added
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.9.4/dist/umd/index.global.js"></script>
95
+ <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.11.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.9.4/dist/umd/index.global.js"></script>
333
+ <script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.11.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/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