onfido-sdk-ui 14.37.1 → 14.39.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.5.1
13
+ Version: 2.8.0
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.37.1",
3
+ "version": "14.39.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": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "license": "SEE LICENSE in LICENSE",
11
11
  "main": "Onfido.js",
12
- "types": "types/loader.d.ts",
12
+ "types": "types/index.d.ts",
13
13
  "files": [
14
14
  "Onfido.*",
15
15
  "types"
@@ -0,0 +1,3 @@
1
+ export * from './Onfido';
2
+ export * from './loader';
3
+ export { Onfido } from './loader';
@@ -60,6 +60,9 @@ type ExecutionContextConfiguration = {
60
60
  export type CustomCallbacks = {
61
61
  names: string[];
62
62
  };
63
+ export type Permission = {
64
+ alwaysRequestPermissions?: boolean;
65
+ };
63
66
  export type ExecutionContext = {
64
67
  platform: Platform;
65
68
  version: string;
@@ -69,6 +72,7 @@ export type ExecutionContext = {
69
72
  version?: string;
70
73
  };
71
74
  configuration?: ExecutionContextConfiguration;
75
+ permission?: Permission;
72
76
  customCallbacks?: CustomCallbacks;
73
77
  currentScriptHostname?: string;
74
78
  };
@@ -123,6 +127,7 @@ export type SdkToken = {
123
127
  authUrl: URL;
124
128
  onfidoApiUrl: URL;
125
129
  telephonyUrl: URL;
130
+ crossDeviceUrl?: URL;
126
131
  };
127
132
  type: 'studio' | 'sdk';
128
133
  };
@@ -171,6 +176,7 @@ export type JWT = {
171
176
  auth_url: URL;
172
177
  onfido_api_url: URL;
173
178
  telephony_url: URL;
179
+ cross_device_url?: URL;
174
180
  };
175
181
  };
176
182
  export type TrackedEventTypes = 'screen' | 'action' | 'flow' | 'view';