onfido-sdk-ui 14.36.0 → 14.37.1

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/LICENSE CHANGED
@@ -10,7 +10,7 @@ at https://documentation.onfido.com/sdk/sdk-licenses/.
10
10
  ------------------
11
11
 
12
12
  Name: @onfido/capture-shared
13
- Version: 2.4.6
13
+ Version: 2.5.1
14
14
  License: null
15
15
  Private: false
16
16
  Description: A shared library to use in various capture packages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onfido-sdk-ui",
3
- "version": "14.36.0",
3
+ "version": "14.37.1",
4
4
  "description": "JavaScript SDK view layer for Onfido identity verification",
5
5
  "author": "Onfido Customer Support <support@onfido.com> (https://documentation.onfido.com/sdk/web/)",
6
6
  "repository": {
package/types/Onfido.d.ts CHANGED
@@ -215,6 +215,8 @@ declare type StepDefinition = {
215
215
  export declare type StudioSdkParameters = {
216
216
  workflowRunId: string;
217
217
  disableWelcomeScreen?: boolean;
218
+ onBiometricTokenGenerated?: (customerUserHash: string, biometricToken: string) => void;
219
+ onBiometricTokenRequested?: (customerUserHash: string) => Promise<string>;
218
220
  } & TokenParameters;
219
221
 
220
222
  declare type SubmitDocument = {
@@ -9,6 +9,7 @@ export type SdkFeatures = {
9
9
  enable_document_support_rules?: boolean;
10
10
  web_allow_source_only_media_callback?: boolean;
11
11
  web_enable_cross_device_verification?: boolean;
12
+ web_enable_js_camera_poa?: boolean;
12
13
  logger?: {
13
14
  enabled?: boolean;
14
15
  levels?: LogLevels[];
@@ -45,6 +45,8 @@ export type TokenParameters = {
45
45
  export type StudioSdkParameters = {
46
46
  workflowRunId: string;
47
47
  disableWelcomeScreen?: boolean;
48
+ onBiometricTokenGenerated?: (customerUserHash: string, biometricToken: string) => void;
49
+ onBiometricTokenRequested?: (customerUserHash: string) => Promise<string>;
48
50
  } & TokenParameters;
49
51
  export type ClassicSdkParameters = {
50
52
  steps: LegacyStepDefinition[];
@@ -21,7 +21,7 @@ export type ExecutorMethod = 'bootstrap' | 'ping' | 'start';
21
21
  export type CrossDeviceExecutorMethod = 'crossDevice.update';
22
22
  export type RunnerMethod = 'captureModule.finish' | 'captureModule.error' | 'captureModule.unsupported' | 'crossDevice.start' | 'crossDevice.preload' | 'crossDevice.verify' | 'crossDevice.abort' | 'analytics.send' | 'analytics.userAnalytics' | 'navigation.back' | 'navigation.exit' | 'navigation.externalLink' | 'customCallback.invoke' | 'passkey.create' | 'passkey.get';
23
23
  export type Configuration<T = unknown> = {
24
- translations: T;
24
+ translations?: T;
25
25
  theme?: Theme;
26
26
  language?: string;
27
27
  workflowRunId?: string;