Releases: onfido/onfido-sdk-ui
Releases · onfido/onfido-sdk-ui
0.8.1.
0.8.0
Changed
- Public: Captures are now returned as
png
instead ofwebp
, althoughwebp
is still used internally for streaming to the server. - Public: the captures returned by
Onfido.getCaptures()
have a simplified signature of just{id,image,documentType}
. - Public: It's now possible to open and close the modal by calling
.setOptions({isModalOpen:boolean})
- Internal: The modal has been refactored to be fully reactive,
vanilla-modal
has been replaced with a fork ofreact-modal
. - Internal: Updated to
[email protected]
, selectors are now more general as in they are no longer specific to each capture type, some new selectors are also being used. - Internal:
Camera
,Capture
andUploader
have been refactored, the pure part of the components have been separated from the state logic part. This adds flexibility and encapsulation. - Internal: The
Capture
component now orchestrates all the state logic of theUploader
component, this allows to join the camera and uploader state logic together.
Added
- Public: The capture screen UI now includes an upload button fallback, for whenever the user experiences problems with the webcam.
- Internal: When requesting to validate documents there is now a strategy to cope with slow responses from the server. If the number of unprocessed documents is 3+, the client stops sending more requests until a response is given.
- Internal:
webp
falls back tojpeg
in case the browser does not support it.
0.7.0
Changed
- Public:
onComplete
event now fires only after both the document and face captures have been confirmed in the UI - Internal: updated
onfido-sdk-core
to 0.5.0 which causes the all capture event to be triggered when captured are both valid and confirmed - Internal: made the confirm button change the state of the capture to confirmed
Fixed
- Internal: sometimes when document was retaken multiple times the capture ended up squashed. This was fixed by upgrading to
[email protected]
. - Internal: fixed Bug #36, it caused the face to be captured every second after a document retake.
0.6.1
Changed
- Public:
Onfido.init()
now returns an object. - Internal:
isDesktop
detection is now based on DetectRTC'sisMobile
detection - Internal: improved Webcam Detection, it now takes into account wether a Webcam exists and if it the user has given the website permission to use it. Before it was only checking whether the getUserMedia API is supported by the browser or not. DetectRTC is used for this detection.
Added
- Public: it's now possible to change the init options at runtime by calling
setOptions()
on the object returned byOnfido.init()
- Public:
useWebcam
option added to the facial and document capture step
0.5.1
Patch for dist folder:
- SDK Core dependency update, fixes issue https://github.com/onfido/onfido-sdk-ui/issues/25
NPM release is unchanged since it gets the patch automatically