This documents the breaking changes between the Web SDK v13.7.0 and the Web SDK v14+.
- The "split bundle" library will no longer be available on
npm
. Please use the defaultnpm
package instead. - The separate
style.css
import is no longer required as the Onfido stylesheet is included in the main library. - The import changed from
import { init } from 'onfido-sdk-ui'
toimport { Onfido } from 'onfido-sdk-ui'
-
The default screen size of the Web SDK has changed on desktop: Until version 13
510px x 598px
width: 94vw; max-width: 32em; height: 37.5em; // Results in width: 510px, height: 598px (by 16px font-size)
From version 14 onwards -
600px x 800px
width: 100%; height: 100%; max-width: 600px; max-height: 800px; min-height: 600px;
-
The "Capture Guide" screen has moved earlier in the document capture flow
-
The "Completion" screens at the end of the cross-device flow have been streamlined and no longer show differences between the document and face capture steps
-
Cross-device flow change: the user is now prevented from going cross-device after the first side (front) has already been captured. The full capture flow has to be either on the desktop or on the mobile device
-
The
crossDeviceClientIntroProductName
subtitle customization option has been removed. Please use the standard language customization process to override the entire subtitle -
Merger of options
_crossDeviceLinkMethods: ['qr_code' | 'copy_link' | 'sms']
and_initialCrossDeviceLinkView
into_initialCrossDeviceLinkView: ['qr_code', 'copy_link', 'sms']
where the default cross-device option is the first element in the list. Note the change in separators from|
to,
onUserExit
has been removed and theuser_consent_denied
type is now returned in theonError
callback- Ability for the Web SDK to self-load in a modal has been removed:
onModalRequestClose
useModal
isModalOpen
shouldCloseOnOverlayClick
autoFocusOnInitialScreenTitle
- Removal of
uploadFallback
option for thedocument
andface
steps. This feature is now only configurable in the Onfido systems. useMemoryHistory
has been removedhandle.setOptions()
has been removed, no longer allowing changing options after bootstrapping the SDK- The fallback options under the
face
step now only occur on the mobile session of a user as all fallbacks due to device capabilities will always trigger a cross-device flow first. tearDown
now returns a PromisesafeTearDown
has been removed, please usetearDown
instead