Releases: BlinkID/capture-browser
v1.2.3
v1.2.2
Bugfix
Replaced AbortSignal.timeout with AbortController.abort, as it isn't supported on iOS 15
v1.2.1
v1.2.0
1.2.0
-
Added configuration options for tilt, blur and glare tolerance.
These can be configured using the new
AnalyzerSettingsproperties:tiltPolicyblurPolicyglarePolicy
Each value can have a
StrictnessLevel:"disabled""strict""normal"(default value)"relaxed"
The
tiltThreshold,ignoreGlare, andignoreBlursettings have been replaced with the new policies. -
Added
keepDpiOnTransformedDocumentImageconfiguration onAnalyzerSettingswhich determines whether to preserve the captured document DPI in transformed document image. If disabled, the document DPI is downscaled to 400 DPI. -
The
createCaptureUifunction will now throw an error if there was an issue during the creation of the SDK. -
When booting up the SDK, the fetch function will time out after 3 seconds if it can't find the necessary resources.
-
Added
hasPingproperty toLicenseUnlockResult -
Added
destroyInstanceOnDismountproperty onuiSettingswhich controls if the SDK instance, including the workers should be unloaded when the component is dismounted.This property is
trueby default when the ui is created using thecreateCaptureUifunction andfalsewhen usingcreateCaptureUiWithInstance. -
When using the headless API (
createCaptureSdk), disconnecting the video element from the DOM will no longer destroy the SDK instance. -
Fixed a bug where the camera selector dropdown wouldn't be correctly displayed due to a missing z-index.
-
Add fallback logic for generating user ID when local storage is blocked.
-
Upgraded types for the localization strings. Will now show the original value in autocomplete.
-
ExposedComponentApihas been deprecated and merged withCaptureComponent -
Improved error handling —
createCaptureUiwill now throw an error instead of silently failing during initialization.
v1.1.1
v1.1.0
New usage mode — Direct API
- Users can now initialize the SDK in a low-level DirectAPI mode using
createDirectApi - This mode gives users the capability to directly interact with the
Analyzerinstance, bypassing the provided functionality in the Capture SDK such as camera and video management, user feedback, callbacks and state management.
Capture SDK
New features:
Orientation check
- Added
camera-orientation-unsuitabletoDocumentFramingStatus. This status is returned if it's not possible to capture the document in its current orientation. - When using the SDK the user will be guided to rotate the document.
Automatic DPI adjustment
- Added
adjustMinimumDocumentDpisetting on theAnalyzer. When enabled, the minimum dpi is adjusted to optimal value for the
provided input resolution to enable capture of all document groups.
Camera stream mirroring
-
Added the capability to mirror the camera stream horizontally. Enabled by default on front facing cameras.
-
The current state can be found on the
mirrorXproperty in the store and toggled using thesetMirrorXmethod on the SDK instance.
Early finishing of side capture
- The
finishSideCapturemethod has been added to the SDK instance which allows users to manually finish the capturing process early if there are any candidates available.
Breaking changes:
- The
completenessStatusproperty on theAnalyzerResultspelling has been fixed (wascompletnessStatus) - The
frameandframeResultparameters inonFrameCallbackhave been swapped as the actualImageDatais required less often
Other changes:
- Improved guide for hosting resources
CaptureSdkandCaptureUiprovide a stricter API contract- Lowered bundle size
- Improved error handling in the web worker
videoFrameCallbackis now only polyfilled in browsers, so that SSR builds work properly now.
Capture UI
- The
showErrorDialogoption now works properly - Updated the capture animations
- The
z-indexof floating elements can be configured by overriding the--mb-z-index-rootCSS custom property - Added
mb-logoclass to the Microblink logo for customization purposes - Fixed inherited font color in the camera selector
v1.0.8
Bugfix:
- prevent loading cross-origin worker on non-threaded builds
v1.0.7
-
Implemented an approach from https://github.com/CezaryDanielNowak/CrossOriginWorker to load workers cross-domain.
According to spec,
new Workershould honor the response's CORS headers
but this doesn't work in any of the browsers, so an approach was used
that inlines the fetched resources inside aBloband aObjectURLso
that they execute from the same domain.Note, that this approach won't work with certain CSPs and is not
recommended. It also may break at any point as it's skirting around some
pretty undefined browser behaviours.The recommended way is still to host the resources and the SDK on the
same domain. -
Fixed an issue where React refs weren't a valid target for
UiSettings.target.- Updated JSdoc for
createCaptureUI - Updated React example to use
UiSettings.target
- Updated JSdoc for
v1.0.5
What's Changed
- Remove dependencies from published package by @ivancuric in #1
Full Changelog: https://github.com/BlinkID/capture-browser/compare/@microblink/capture@1.0.4...@microblink/capture@1.0.5