onfido-sdk-ui 14.47.1 → 14.49.0

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.23.5
13
+ Version: 2.23.11
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.47.1",
3
+ "version": "14.49.0",
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
@@ -32,6 +32,9 @@ declare type CommonSdkParameters = {
32
32
  containerId?: string;
33
33
  onError?: ErrorCallback_2;
34
34
  onComplete?: (data: CompleteData) => void;
35
+ showExitButton?: boolean;
36
+ onUserExit?: UserExitCallback;
37
+ onExternalLink?: ExternalLinkCallback;
35
38
  enterpriseFeatures?: EnterpriseFeatureParameter;
36
39
  theme?: Theme;
37
40
  customUI?: ThemeConfig;
@@ -140,6 +143,8 @@ declare type Event_2<T extends string> = {
140
143
  type: T;
141
144
  };
142
145
 
146
+ declare type ExternalLinkCallback = (url: string) => void;
147
+
143
148
  declare type ExternalModule = {
144
149
  url: string;
145
150
  } & ModuleType<CaptureModuleType.EXTERNAL>;
@@ -215,6 +220,7 @@ declare type StepDefinition = {
215
220
  export declare type StudioSdkParameters = {
216
221
  workflowRunId: string;
217
222
  disableWelcomeScreen?: boolean;
223
+ disableCompleteScreen?: boolean;
218
224
  onBiometricTokenGenerated?: (customerUserHash: string, biometricToken: string) => void;
219
225
  onBiometricTokenRequested?: (customerUserHash: string) => Promise<string>;
220
226
  } & TokenParameters;
@@ -283,10 +289,17 @@ declare type UploadFileResponse = {
283
289
  download_href: string;
284
290
  };
285
291
 
292
+ declare enum UserAction {
293
+ USER_EXIT = "user_exit",
294
+ USER_CONSENT_DENIED = "user_consent_denied"
295
+ }
296
+
286
297
  declare type UserDetails = {
287
298
  smsNumber?: string;
288
299
  };
289
300
 
301
+ declare type UserExitCallback = (action: UserAction) => void;
302
+
290
303
  declare type VideoChallengeLanguage = {
291
304
  source: string;
292
305
  language_code: string;
@@ -2,6 +2,7 @@ export type LogLevels = 'debug' | 'info' | 'warning' | 'error' | 'fatal';
2
2
  export type SdkFeatures = {
3
3
  enable_require_applicant_consents?: boolean;
4
4
  disable_cross_device_sms?: boolean;
5
+ web_disable_has_camera_check?: boolean;
5
6
  disable_cross_device_copy_link?: boolean;
6
7
  enable_in_house_analytics?: boolean;
7
8
  enable_performance_analytics?: boolean;
@@ -5,12 +5,21 @@ import type { EnterpriseFeatureCallback } from './Enterprise';
5
5
  export declare const legacySteps: LegacyStepType[];
6
6
  export declare const isLegacyStepType: (step: LegacyStepDefinition) => step is LegacyStepType;
7
7
  export type CompleteData = Record<string, unknown>;
8
+ export declare enum UserAction {
9
+ USER_EXIT = "user_exit",
10
+ USER_CONSENT_DENIED = "user_consent_denied"
11
+ }
8
12
  export type EnterpriseFeatureParameter = EnterpriseFeatures & EnterpriseFeatureCallback;
13
+ export type UserExitCallback = (action: UserAction) => void;
14
+ export type ExternalLinkCallback = (url: string) => void;
9
15
  export type CommonSdkParameters = {
10
16
  containerEl?: HTMLElement;
11
17
  containerId?: string;
12
18
  onError?: ErrorCallback;
13
19
  onComplete?: (data: CompleteData) => void;
20
+ showExitButton?: boolean;
21
+ onUserExit?: UserExitCallback;
22
+ onExternalLink?: ExternalLinkCallback;
14
23
  enterpriseFeatures?: EnterpriseFeatureParameter;
15
24
  theme?: Theme;
16
25
  customUI?: ThemeConfig;
@@ -45,6 +54,7 @@ export type TokenParameters = {
45
54
  export type StudioSdkParameters = {
46
55
  workflowRunId: string;
47
56
  disableWelcomeScreen?: boolean;
57
+ disableCompleteScreen?: boolean;
48
58
  onBiometricTokenGenerated?: (customerUserHash: string, biometricToken: string) => void;
49
59
  onBiometricTokenRequested?: (customerUserHash: string) => Promise<string>;
50
60
  } & TokenParameters;