onfido-sdk-ui 14.61.0 → 14.62.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
@@ -9,8 +9,8 @@ at https://documentation.onfido.com/sdk/sdk-licenses/.
9
9
 
10
10
  ------------------
11
11
 
12
- Name: @onfido/capture-api
13
- Version: 0.0.0-master.2220301
12
+ Name: @entrust.corporation/capture-api
13
+ Version: 0.0.0-master.2235188
14
14
  License: null
15
15
  Private: false
16
16
  Repository: git@gitlab.eu-west-1.mgmt.onfido.xyz:onfido/sdks/capture-api.git
@@ -252,7 +252,7 @@ SOFTWARE.
252
252
  ---
253
253
 
254
254
  Name: capture-module
255
- Version: 3.16.0
255
+ Version: 3.17.0
256
256
  License: null
257
257
  Private: false
258
258
 
@@ -292,8 +292,8 @@ SOFTWARE.
292
292
 
293
293
  ---
294
294
 
295
- Name: @onfido/capture-contract
296
- Version: 0.0.0-master.2229565
295
+ Name: @entrust.corporation/capture-contract
296
+ Version: 0.0.0-master.2236321
297
297
  License: null
298
298
  Private: false
299
299
  Description: Contracts for the SDKs and modules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onfido-sdk-ui",
3
- "version": "14.61.0",
3
+ "version": "14.62.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": {
@@ -1,3 +1,3 @@
1
- export type ColorTokensKeys = 'backgroundColorOverlay' | 'backgroundColorBrandActive' | 'backgroundColorBrandDefault' | 'backgroundColorBrandHover' | 'backgroundColorDisabledDefault' | 'backgroundColorInfoSubtleDefault' | 'backgroundColorInputDefault' | 'backgroundColorNegativeBaseDefault' | 'backgroundColorNegativeSubtleDefault' | 'backgroundColorNeutralSubtleDefault' | 'backgroundColorPositiveSubtleDefault' | 'backgroundColorSurfacePrimaryActive' | 'backgroundColorSurfacePrimaryDefault' | 'backgroundColorSurfacePrimaryHover' | 'backgroundColorTintedActive' | 'backgroundColorTintedDefault' | 'backgroundColorTintedHover' | 'backgroundColorWarningSubtleDefault' | 'borderColorDisabledDefault' | 'borderColorInputActive' | 'borderColorInputDefault' | 'borderColorInputHover' | 'borderColorNegativeBaseDefault' | 'borderColorSeparator' | 'contentColorBase' | 'contentColorBrandOnBrand' | 'contentColorDisabledDefault' | 'contentColorInfoBaseDefault' | 'contentColorNegativeBaseDefault' | 'contentColorNegativeOnNegative' | 'contentColorPlaceholder' | 'contentColorPositiveBaseDefault' | 'contentColorSubtle' | 'contentColorWarningBaseDefault';
1
+ export type ColorTokensKeys = 'backgroundColorBrandActive' | 'backgroundColorBrandDefault' | 'backgroundColorBrandHover' | 'backgroundColorDisabledDefault' | 'backgroundColorInfoSubtleDefault' | 'backgroundColorInputDefault' | 'backgroundColorMain' | 'backgroundColorNegativeBaseDefault' | 'backgroundColorNegativeSubtleDefault' | 'backgroundColorNeutralSubtleDefault' | 'backgroundColorOverlay' | 'backgroundColorPositiveSubtleDefault' | 'backgroundColorSurfacePrimaryActive' | 'backgroundColorSurfacePrimaryDefault' | 'backgroundColorSurfacePrimaryHover' | 'backgroundColorWarningSubtleDefault' | 'borderColorBrandActive' | 'borderColorBrandDefault' | 'borderColorBrandHover' | 'borderColorDisabledDefault' | 'borderColorInputActive' | 'borderColorInputDefault' | 'borderColorInputHover' | 'borderColorNegativeBaseDefault' | 'borderColorSeparator' | 'contentColorBase' | 'contentColorBrandOnBrand' | 'contentColorDisabledDefault' | 'contentColorInfoBaseDefault' | 'contentColorNegativeBaseDefault' | 'contentColorNegativeOnNegative' | 'contentColorPlaceholder' | 'contentColorPositiveBaseDefault' | 'contentColorSubtle' | 'contentColorWarningBaseDefault';
2
2
  export type SdkColor = string;
3
3
  export type SdkColors = Record<ColorTokensKeys, SdkColor>;
@@ -1 +1,2 @@
1
+ // Please note this is autogenerated by a gradle task named generateUiTokens from a JSON list in shared/ui-tokens.json
1
2
  export {};
@@ -0,0 +1,14 @@
1
+ import type { ResourceLocation } from './Resources';
2
+ export declare enum FontFormat {
3
+ TTF = "ttf",// TrueType -> fully supported in Android, iOS and modern web browsers
4
+ OTF = "otf",// OpenType -> fully supported in iOS and modern web browsers, Android API 26+
5
+ WOFF2 = "woff2"
6
+ }
7
+ export interface FontSource {
8
+ location: ResourceLocation;
9
+ fontFormat: FontFormat;
10
+ }
11
+ export type SdkFont = {
12
+ name: string;
13
+ source: FontSource[];
14
+ };
@@ -0,0 +1,6 @@
1
+ export var FontFormat;
2
+ (function (FontFormat) {
3
+ FontFormat["TTF"] = "ttf";
4
+ FontFormat["OTF"] = "otf";
5
+ FontFormat["WOFF2"] = "woff2";
6
+ })(FontFormat || (FontFormat = {}));
@@ -1,8 +1,10 @@
1
+ import type { SdkFont } from './Fonts';
1
2
  export declare enum ResourceType {
2
3
  Icons = "icons",
3
4
  Images = "images",
4
5
  Animations = "animations",
5
- Videos = "videos"
6
+ Videos = "videos",
7
+ Fonts = "fonts"
6
8
  }
7
9
  export declare enum IconTokens {
8
10
  NavigationBack = "Navigation.Back",
@@ -14,21 +16,22 @@ export declare enum VideoTokens {
14
16
  }
15
17
  export declare enum AnimationTokens {
16
18
  }
17
- export declare enum MediaLocationType {
19
+ export declare enum ResourceLocationType {
18
20
  Local = "local",
19
21
  Remote = "remote"
20
22
  }
21
- export type MediaLocation = {
22
- type: MediaLocationType;
23
+ export type ResourceLocation = {
24
+ type: ResourceLocationType;
23
25
  uri: string;
24
26
  };
25
27
  export type Media = {
26
- location: MediaLocation;
28
+ location: ResourceLocation;
27
29
  contentDescription?: string;
28
30
  };
29
- export type MediaResources = {
31
+ export type Resources = {
30
32
  [ResourceType.Icons]?: Record<IconTokens, Media>;
31
33
  [ResourceType.Images]?: Record<ImageTokens, Media>;
32
34
  [ResourceType.Animations]?: Record<AnimationTokens, Media>;
33
35
  [ResourceType.Videos]?: Record<VideoTokens, Media>;
36
+ [ResourceType.Fonts]?: SdkFont[];
34
37
  };
@@ -4,6 +4,7 @@ export var ResourceType;
4
4
  ResourceType["Images"] = "images";
5
5
  ResourceType["Animations"] = "animations";
6
6
  ResourceType["Videos"] = "videos";
7
+ ResourceType["Fonts"] = "fonts";
7
8
  })(ResourceType || (ResourceType = {}));
8
9
  export var IconTokens;
9
10
  (function (IconTokens) {
@@ -19,8 +20,8 @@ export var VideoTokens;
19
20
  export var AnimationTokens;
20
21
  (function (AnimationTokens) {
21
22
  })(AnimationTokens || (AnimationTokens = {}));
22
- export var MediaLocationType;
23
- (function (MediaLocationType) {
24
- MediaLocationType["Local"] = "local";
25
- MediaLocationType["Remote"] = "remote";
26
- })(MediaLocationType || (MediaLocationType = {}));
23
+ export var ResourceLocationType;
24
+ (function (ResourceLocationType) {
25
+ ResourceLocationType["Local"] = "local";
26
+ ResourceLocationType["Remote"] = "remote";
27
+ })(ResourceLocationType || (ResourceLocationType = {}));
@@ -1,6 +1,6 @@
1
1
  import type { Branding } from './Branding';
2
2
  import type { SdkColors } from './ColorTokens';
3
- import type { MediaResources } from './MediaResources';
3
+ import type { Resources } from './Resources';
4
4
  export declare enum ThemeMode {
5
5
  Light = "Light",
6
6
  Dark = "Dark"
@@ -11,5 +11,5 @@ export type Theme = {
11
11
  branding?: Branding;
12
12
  lightColors?: Partial<SdkColors>;
13
13
  darkColors?: Partial<SdkColors>;
14
- mediaResources?: MediaResources;
14
+ resources?: Resources;
15
15
  };
@@ -39,6 +39,7 @@ export type DocumentModuleConfiguration = {
39
39
  };
40
40
  export type DocumentModuleInput = {
41
41
  preferredUserCountry?: string;
42
+ preferredUserDocumentType?: string;
42
43
  taskId: string;
43
44
  };
44
45
  export type DocumentSideOutput = {
@@ -74,9 +74,19 @@ export type CustomCallbacks = {
74
74
  export type Permission = {
75
75
  alwaysRequestPermissions?: boolean;
76
76
  };
77
+ export type WebContext = {
78
+ version: string;
79
+ integration?: OnfidoIntegrationType;
80
+ };
81
+ export type Integration = {
82
+ name: string;
83
+ version: string;
84
+ };
77
85
  export type ExecutionContext = {
86
+ web: WebContext;
78
87
  platform: Platform;
79
88
  version: string;
89
+ integration?: Integration | undefined;
80
90
  module?: CaptureModule;
81
91
  os?: {
82
92
  name?: string;