@edpire/sdk 0.15.0 → 0.16.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 +32 -0
- package/README.md +2 -2
- package/dist/index.mjs +16 -14
- package/dist/react.d.mts +73 -12
- package/dist/react.mjs +16 -14
- package/dist/umd/index.global.js +175 -171
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,38 @@ the package follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.16.0] - 2026-12-04
|
|
15
|
+
|
|
16
|
+
Bundles runtime 3.24.0 (photos and handwriting, edpire.com T189 round 3).
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Photos of a paper copy, read line by line: on a phone Photo opens the camera, each page is
|
|
21
|
+
stored as soon as it is taken, and the text and formulas appear in the answer while the page is
|
|
22
|
+
read. Words the reader was unsure of are underlined until the learner changes them. A sideways
|
|
23
|
+
photo is turned and read again. On a computer a QR code lets the learner take the photos with
|
|
24
|
+
their phone; it opens Edpire's own phone page (edpire.com), never your page, and the photos come
|
|
25
|
+
back to the embed. Upload and the computer's camera stay one click away.
|
|
26
|
+
- A page written by hand on tablets (or once a pen is used): lined paper, up to 4 pages, read the
|
|
27
|
+
same way. The formula pad reads the formula once it pauses and stops a read when the learner
|
|
28
|
+
writes on.
|
|
29
|
+
- A finished answer shows its pages beside the text in review.
|
|
30
|
+
- `AnswerSheetReader` gains optional `signPhoto`, `streamPhotos`, `startCapture` and
|
|
31
|
+
`captureStatus`; `readPhotos` takes `purpose` and returns `lines`; `readHandwriting` takes a
|
|
32
|
+
`signal`. Types `PageTurn` and `ReadingErrorCode`. `embedAnswerSheetHandler` uses all of them.
|
|
33
|
+
- `AssessmentShell` gains `wholeCopy` (off by default): "Photograph my copy" beside Submit, every
|
|
34
|
+
page read once and each part placed in its question. Edpire turns it on per workspace while it is
|
|
35
|
+
tried; embeds do not show it yet.
|
|
36
|
+
|
|
37
|
+
### Upgrade notes
|
|
38
|
+
|
|
39
|
+
- Nothing to change in your code. A page with a Content-Security-Policy must allow
|
|
40
|
+
`https://storage.edpire.com` in `connect-src` and `img-src` (photos go straight to Edpire's
|
|
41
|
+
storage), plus `blob:` and `data:` in `img-src`; the computer's camera needs HTTPS and a page
|
|
42
|
+
that does not block `camera` in its `Permissions-Policy`.
|
|
43
|
+
- Older SDKs keep working: 0.13.0 to 0.15.0 show the earlier photo screen, whose photos are now
|
|
44
|
+
stored by the server first and read the same way.
|
|
45
|
+
|
|
14
46
|
## [0.15.0] - 2026-12-02
|
|
15
47
|
|
|
16
48
|
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.16.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.16.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
|