uqudosdk-web 4.0.1 → 4.0.3
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 +40 -0
- package/index.d.ts +5 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
## 4.0.2
|
|
2
|
+
|
|
3
|
+
- Added support for Indonesian ID and Iraqi Resident ID documents.
|
|
4
|
+
- A retry mechanism was implemented for loading the WASM module in case the initial attempt fails. If the retry also fails, the SDK terminates the session using the specific error code WASM_LOAD_FAILED, which is also used in the trace event.
|
|
5
|
+
- Minor improvements
|
|
6
|
+
|
|
7
|
+
## 4.0.1
|
|
8
|
+
|
|
9
|
+
- Document Scanning
|
|
10
|
+
Added support for Moroccan ID (MAR_ID) scanning.
|
|
11
|
+
Added support for the latest Bahrain ID version.
|
|
12
|
+
- New Document Types
|
|
13
|
+
Introduced QAT_ID_NATIONAL, QAT_ID_RESIDENT, KWT_ID_NATIONAL and KWT_ID_RESIDENT.
|
|
14
|
+
Note: Previous SDK versions reported types such as OMN_ID_NATIONAL simply as OMN_ID in the result object. From this release onward, the exact selected document type will be returned.
|
|
15
|
+
- Tracing Enhancements (Analytics)
|
|
16
|
+
Added a new deviceIdentifier field (a UUID) to the tracing object. This value uniquely identifies multiple sessions from a given device (persisting until browser local storage is cleared). You may still use more specific identifiers, such as phone number or email, if you already know the user.
|
|
17
|
+
A new status code, VIDEO_PLAYS_INLINE_DISABLED, has been added. It’s returned when HTML5 videos default to the native full-screen player instead of playing inline, something that only occurs when the SDK is embedded in an iOS WebView with allowsInlineMediaPlayback set to false. This status code helps you identify and correct your WebView settings. For details on WebView integration, see https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/webview-usage.
|
|
18
|
+
- Bug fixes
|
|
19
|
+
An issue has been resolved that was preventing the SDK from initializing properly when the DOM Storage API was disabled. This can occur on Android if the SDK is running inside a WebView without DOM storage explicitly enabled. For details on WebView integration, see https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/webview-usage.
|
|
20
|
+
- Miscellaneous
|
|
21
|
+
Minor improvements.
|
|
22
|
+
|
|
23
|
+
## 4.0.0
|
|
24
|
+
|
|
25
|
+
- Implemented document auto-scanning with a streamlined process: the shutter button has been removed, and a full-screen camera view now automatically detects document types, performs quality checks, and ensures a seamless onboarding experience for end users with minimal friction. The SDK prioritizes selecting the optimal camera from the browser API's list but also allows users to manually switch cameras if focus issues arise.
|
|
26
|
+
- The facial recognition module has been redesigned to deliver faster, more accurate face detection, providing a significantly smoother experience for the end user.
|
|
27
|
+
- Document auto-scanning and facial recognition are powered by WASM technology. See some important details here https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/sdk-installation
|
|
28
|
+
- We have added a new operation error code, WASM_NOT_SUPPORTED. The SDK will terminate the session and trigger this error code if the browser lacks the essential features required to run a WASM module. However, this scenario is expected to be rare, as WASM is widely supported across modern browsers.
|
|
29
|
+
- We have added new status codes for tracing in the document scanning and the facial recognition step. See the details here https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/analytics.
|
|
30
|
+
- The frontImageId and backImageId fields in the scan object now reference the cropped document images. Additionally, two new fields, frontFrameImageId and backFrameImageId, have been introduced to store the complete frame images of the document. These full-frame images provide valuable context for troubleshooting and help fulfill regulatory requirements that necessitate documenting the scanning environment.
|
|
31
|
+
- The base SDK size has been reduced to ~700 KB uncompressed, ~230 KB compressed, with the WASM module loaded via a CDN. Using a CDN offers several advantages:
|
|
32
|
+
Geographical proximity
|
|
33
|
+
Caching
|
|
34
|
+
Load distribution
|
|
35
|
+
- The WASM module is available in two encodings: GZIP and Brotli. Brotli, which is widely supported by modern browsers, offers the best compression ratio. The current size of the WASM module is 3.7MB.
|
|
36
|
+
- Enhanced Quality Check: Introduced a new verification step during document scanning to notify users if their fingers are obstructing the document.
|
|
37
|
+
- Added support for landscape mode in the facial recognition step for tablets. This is to accommodate tablets that have the selfie camera in landscape configuration mode.
|
|
38
|
+
- We've updated the names of some CSS classes. If you've overridden any CSS, please review the new list available here: https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/ui-customisation/styles-configuration.
|
|
39
|
+
- Expanded Document Support: Added compatibility for new document types, including SAU_ID (Premium Resident Version), SOM_ID (Somali ID), BHR_VL (Bahrain Vehicle License), JOR_VL (Jordan Vehicle License), and SAU_VL (Saudi Vehicle License).
|
|
40
|
+
|
|
1
41
|
## 3.6.2
|
|
2
42
|
|
|
3
43
|
- show popup error when the user upload document larger than 5mb
|
package/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export enum ErrorCode {
|
|
|
39
39
|
INVALID_CONFIG = "INVALID_CONFIG",
|
|
40
40
|
SESSION_INVALIDATED_FACE_RECOGNITION_TOO_MANY_ATTEMPTS = "SESSION_INVALIDATED_FACE_RECOGNITION_TOO_MANY_ATTEMPTS",
|
|
41
41
|
WASM_NOT_SUPPORTED = "WASM_NOT_SUPPORTED",
|
|
42
|
+
WASM_LOAD_FAILED = "WASM_LOAD_FAILED",
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
// ---------- enum --------- //
|
|
@@ -126,6 +127,9 @@ export enum DocumentType {
|
|
|
126
127
|
SAU_ID_RESIDENT = "SAU_ID_RESIDENT",
|
|
127
128
|
QAT_ID_NATIONAL = "QAT_ID_NATIONAL",
|
|
128
129
|
QAT_ID_RESIDENT = "QAT_ID_RESIDENT",
|
|
130
|
+
IRQ_ID_NATIONAL = "IRQ_ID_NATIONAL",
|
|
131
|
+
IRQ_ID_RESIDENT = "IRQ_ID_RESIDENT",
|
|
132
|
+
IDN_ID = "IDN_ID",
|
|
129
133
|
}
|
|
130
134
|
|
|
131
135
|
export enum BackgroundCheckType {
|
|
@@ -405,6 +409,7 @@ export enum TraceStatusCode {
|
|
|
405
409
|
FACE_RECOGNITION_TOO_MANY_ATTEMPTS = "FACE_RECOGNITION_TOO_MANY_ATTEMPTS",
|
|
406
410
|
MEDIA_VIRTUAL_CAMERA_DETECTED = "MEDIA_VIRTUAL_CAMERA_DETECTED",
|
|
407
411
|
WASM_NOT_SUPPORTED = "WASM_NOT_SUPPORTED",
|
|
412
|
+
WASM_LOAD_FAILED = "WASM_LOAD_FAILED",
|
|
408
413
|
VIDEO_PLAYS_INLINE_DISABLED = "VIDEO_PLAYS_INLINE_DISABLED",
|
|
409
414
|
// scan
|
|
410
415
|
SCAN_DOCUMENT_DARK_ENVIRONMENT_DETECTED = "SCAN_DOCUMENT_DARK_ENVIRONMENT_DETECTED",
|