@edpire/sdk 0.15.0 → 0.17.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 +58 -0
- package/README.md +2 -2
- package/dist/index.mjs +15 -13
- package/dist/react.d.mts +73 -12
- package/dist/react.mjs +15 -13
- package/dist/umd/index.global.js +178 -172
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,64 @@ the package follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.17.0] - 2026-12-05
|
|
15
|
+
|
|
16
|
+
Bundles runtime 3.25.0 (photo answers after the first trial, edpire.com T192).
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- In review, a finished answer's pages (photos, pages written by hand) show as a small thumbnail
|
|
21
|
+
in the answer's corner, "+n" when there are more; a tap opens a viewer: the page large, a strip
|
|
22
|
+
of pages, arrows, swipe (right to left in Arabic), Escape. The viewer is drawn in `<body>`, so a
|
|
23
|
+
transformed or container box in your page no longer holds it off screen.
|
|
24
|
+
- Photos can be dropped on the photo panel. Reading shows skeleton lines, then the lines one by
|
|
25
|
+
one; an Arabic line reads right to left with its formulas left to right.
|
|
26
|
+
- "By hand" works with a mouse on computers, with a line that a phone, a tablet or a photo is
|
|
27
|
+
easier.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Maths keys show only on an answer that takes maths; a maths answer shows no word count.
|
|
32
|
+
- No remove button under pages already read.
|
|
33
|
+
- Server side, for every SDK version: an answer the AI provider refuses to grade is marked 0 with
|
|
34
|
+
its reason instead of staying pending, and a second model grades when the main one fails.
|
|
35
|
+
|
|
36
|
+
### Upgrade notes
|
|
37
|
+
|
|
38
|
+
- Nothing to change in your code.
|
|
39
|
+
|
|
40
|
+
## [0.16.0] - 2026-12-04
|
|
41
|
+
|
|
42
|
+
Bundles runtime 3.24.0 (photos and handwriting, edpire.com T189 round 3).
|
|
43
|
+
|
|
44
|
+
### Added
|
|
45
|
+
|
|
46
|
+
- Photos of a paper copy, read line by line: on a phone Photo opens the camera, each page is
|
|
47
|
+
stored as soon as it is taken, and the text and formulas appear in the answer while the page is
|
|
48
|
+
read. Words the reader was unsure of are underlined until the learner changes them. A sideways
|
|
49
|
+
photo is turned and read again. On a computer a QR code lets the learner take the photos with
|
|
50
|
+
their phone; it opens Edpire's own phone page (edpire.com), never your page, and the photos come
|
|
51
|
+
back to the embed. Upload and the computer's camera stay one click away.
|
|
52
|
+
- A page written by hand on tablets (or once a pen is used): lined paper, up to 4 pages, read the
|
|
53
|
+
same way. The formula pad reads the formula once it pauses and stops a read when the learner
|
|
54
|
+
writes on.
|
|
55
|
+
- A finished answer shows its pages beside the text in review.
|
|
56
|
+
- `AnswerSheetReader` gains optional `signPhoto`, `streamPhotos`, `startCapture` and
|
|
57
|
+
`captureStatus`; `readPhotos` takes `purpose` and returns `lines`; `readHandwriting` takes a
|
|
58
|
+
`signal`. Types `PageTurn` and `ReadingErrorCode`. `embedAnswerSheetHandler` uses all of them.
|
|
59
|
+
- `AssessmentShell` gains `wholeCopy` (off by default): "Photograph my copy" beside Submit, every
|
|
60
|
+
page read once and each part placed in its question. Edpire turns it on per workspace while it is
|
|
61
|
+
tried; embeds do not show it yet.
|
|
62
|
+
|
|
63
|
+
### Upgrade notes
|
|
64
|
+
|
|
65
|
+
- Nothing to change in your code. A page with a Content-Security-Policy must allow
|
|
66
|
+
`https://storage.edpire.com` in `connect-src` and `img-src` (photos go straight to Edpire's
|
|
67
|
+
storage), plus `blob:` and `data:` in `img-src`; the computer's camera needs HTTPS and a page
|
|
68
|
+
that does not block `camera` in its `Permissions-Policy`.
|
|
69
|
+
- Older SDKs keep working: 0.13.0 to 0.15.0 show the earlier photo screen, whose photos are now
|
|
70
|
+
stored by the server first and read the same way.
|
|
71
|
+
|
|
14
72
|
## [0.15.0] - 2026-12-02
|
|
15
73
|
|
|
16
74
|
Bundles runtime 3.23.0 (maths answers round 2, edpire.com T189).
|
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.
|
|
95
|
+
<script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.17.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.
|
|
333
|
+
<script src="https://cdn.jsdelivr.net/npm/@edpire/sdk@0.17.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
|