Skip to content

Releases: onfido/onfido-sdk-ui

0.9.0

28 Nov 18:52
Compare
Choose a tag to compare

Changed

  • Public: document and face callback are now passed only their respective capture, instead of both their captures.
  • Public: document and face callback are now only called after the user has confirmed the capture
  • Public: document, face and complete callback can be called multiple times, if the condition that triggers them is met more than once (eg. if the user goes back to redo the capture steps)
  • Internal: callbacks' returned value now have no impact on the event dispatcher.

Fixed

  • Some callbacks were not being called. This happened when only some and not all of the callbacks were defined in the init(options). All callbacks now have a default no op function. This fixes the exception raise which caused the bug.

0.8.4

14 Nov 17:42
Compare
Choose a tag to compare

Fixed

  • Updated react-webcam to the onfido fork, this fixes the issue where the webcam canvas (used to obtain screenshots) has 0 height under certain circumstances (namely on windows machines running Chrome). This bug, when it happened, caused the document capture step not to work.

0.8.3

04 Nov 12:21
Compare
Choose a tag to compare

Added

  • Started tracking fatal exceptions and page views of the SDK.

0.8.2

25 Oct 10:02
Compare
Choose a tag to compare

Fixed

  • Fixed bug of a broken layout on the document selection step. Always reproducible on IE and on other browsers too, but only when going back a step on certain conditions.
  • Fixed bug where on IE an unnecessary scrollbar appeared and the scrolling area was bigger than it should have been.

Added

  • Public: An error message is now shown if the upload file has as unsupported file type.

0.8.1.

12 Oct 10:09
Compare
Choose a tag to compare

Fixed

  • Object.assign was being used but not polyfilled. Its occurrence was replaced with an es6 object construction.
  • UI disappeared if the browser's windows width was smaller than 481px;

0.8.0

10 Oct 12:54
Compare
Choose a tag to compare

Changed

  • Public: Captures are now returned as png instead of webp, although webp 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 of react-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 and Uploader 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 the Uploader 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 to jpeg in case the browser does not support it.

0.7.0

16 Sep 11:30
Compare
Choose a tag to compare

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

02 Sep 09:57
Compare
Choose a tag to compare

Changed

  • Public: Onfido.init() now returns an object.
  • Internal: isDesktop detection is now based on DetectRTC's isMobile 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 by Onfido.init()
  • Public: useWebcam option added to the facial and document capture step

0.5.1

29 Jul 10:49
Compare
Choose a tag to compare

Patch for dist folder:

  1. 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

0.5.0

27 Jul 14:11
Compare
Choose a tag to compare
  1. Added Flow customization steps:[]
  2. Fixed the npm style of importing the library
  3. Added an overlay to the webcam document capture
  4. Improved and added integration examples to documentation