@edpire/sdk 0.6.11 → 0.7.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 ADDED
@@ -0,0 +1,54 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@edpire/sdk`.
4
+
5
+ This file starts at 0.7.0. Earlier versions are recoverable from the git history
6
+ of `packages/sdk`, but were never written up, which is the reason this exists:
7
+ integrators pin a version and had no way to tell what a bump would change.
8
+
9
+ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
10
+ the package follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
11
+
12
+ ## [0.7.0] - 2026-09-22
13
+
14
+ ### Added
15
+
16
+ - **`layout.maxWidth`** on `MountOptions`, `EdpireAssessmentPlayerProps` and
17
+ `AssessmentShellProps`. The player fills the container you size, but inside
18
+ that the questions sat in a centred 768px column with no way to change it.
19
+ That is right when the player owns the page and wrong when it is embedded in
20
+ host chrome, where it reads as a column inside a column. Takes any CSS length
21
+ or `"none"`.
22
+
23
+ ```javascript
24
+ EdpireAssessment.mount({ token, container: "#root", layout: { maxWidth: "none" } })
25
+ ```
26
+
27
+ The default is unchanged at `"48rem"`, so no existing embed moves. It stays a
28
+ reading measure by default: 768px already yields roughly 70 to 90 characters
29
+ per line at the runtime's base size.
30
+
31
+ The value also drives the post-submit score banners, so they stay aligned with
32
+ the questions. When an assessment has an annex, wide viewports use a
33
+ two-column layout that already fills the container and only the narrow
34
+ breakpoint takes the value.
35
+
36
+ - **`ShellLayout`** exported from `@edpire/sdk` and `@edpire/sdk/react`.
37
+
38
+ - **Pre-submit warning for unanswered questions.** The confirm dialog now names
39
+ how many questions are not fully answered. It warns and never blocks: the
40
+ learner can still submit. Auto-submit on time expiry does not route through
41
+ the dialog. Translated in en, fr and ar.
42
+
43
+ A question counts as incomplete when any of its inputs is empty, so three of
44
+ four blanks filled is caught.
45
+
46
+ ### Notes for integrators
47
+
48
+ No breaking changes. This is a minor bump only because it adds public API.
49
+
50
+ If you have been working around the 768px column with your own CSS, for example
51
+ by overriding `max-w-3xl` or forcing widths on the shell's children, remove it
52
+ and pass `layout` instead. The class is gone: the width is now an inline style,
53
+ because the shipped `shell.css` is pre-built and a consumer's width can never
54
+ exist as a utility class in it.