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 +5 -5
- package/package.json +1 -1
- package/types/capture-api/theming/ColorTokens.d.ts +1 -1
- package/types/capture-api/theming/ColorTokens.js +1 -0
- package/types/capture-api/theming/Fonts.d.ts +14 -0
- package/types/capture-api/theming/Fonts.js +6 -0
- package/types/capture-api/theming/{MediaResources.d.ts → Resources.d.ts} +9 -6
- package/types/capture-api/theming/{MediaResources.js → Resources.js} +6 -5
- package/types/capture-api/theming/Theme.d.ts +2 -2
- package/types/contract/module/DocumentModule.d.ts +1 -0
- package/types/shared/Types.d.ts +10 -0
package/LICENSE
CHANGED
|
@@ -9,8 +9,8 @@ at https://documentation.onfido.com/sdk/sdk-licenses/.
|
|
|
9
9
|
|
|
10
10
|
------------------
|
|
11
11
|
|
|
12
|
-
Name: @
|
|
13
|
-
Version: 0.0.0-master.
|
|
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.
|
|
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: @
|
|
296
|
-
Version: 0.0.0-master.
|
|
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.
|
|
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 = '
|
|
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>;
|
|
@@ -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
|
+
};
|
|
@@ -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
|
|
19
|
+
export declare enum ResourceLocationType {
|
|
18
20
|
Local = "local",
|
|
19
21
|
Remote = "remote"
|
|
20
22
|
}
|
|
21
|
-
export type
|
|
22
|
-
type:
|
|
23
|
+
export type ResourceLocation = {
|
|
24
|
+
type: ResourceLocationType;
|
|
23
25
|
uri: string;
|
|
24
26
|
};
|
|
25
27
|
export type Media = {
|
|
26
|
-
location:
|
|
28
|
+
location: ResourceLocation;
|
|
27
29
|
contentDescription?: string;
|
|
28
30
|
};
|
|
29
|
-
export type
|
|
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
|
|
23
|
-
(function (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})(
|
|
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 {
|
|
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
|
-
|
|
14
|
+
resources?: Resources;
|
|
15
15
|
};
|
package/types/shared/Types.d.ts
CHANGED
|
@@ -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;
|