@tsocial/tvweb-sdk 5.34.7 → 5.35.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/assets/audio/hi/keep_back_id_fit_border.mp3 +0 -0
- package/assets/audio/hi/keep_front_id_fit_border.mp3 +0 -0
- package/assets/audio/hi/move_face_closer.mp3 +0 -0
- package/assets/audio/hi/move_face_into_frame.mp3 +0 -0
- package/assets/audio/hi/please_hold_still.mp3 +0 -0
- package/build/tvweb-sdk.cjs.min.js +650 -650
- package/build/tvweb-sdk.esm.min.js +650 -650
- package/build/tvweb-sdk.standalone.js +4731 -4548
- package/build/tvweb-sdk.standalone.min.js +650 -650
- package/build/types/index.d.ts +7 -2
- package/package.json +5 -5
package/build/types/index.d.ts
CHANGED
|
@@ -774,6 +774,7 @@ declare const CardTypes: {
|
|
|
774
774
|
VnTCC: CardType;
|
|
775
775
|
PhNationalID: CardType;
|
|
776
776
|
PhNID: CardType;
|
|
777
|
+
GlobalPassport: CardType;
|
|
777
778
|
VietnameseCards: CardType[];
|
|
778
779
|
PhilippinesCards: CardType[];
|
|
779
780
|
};
|
|
@@ -1295,7 +1296,7 @@ type CustomErrors = {
|
|
|
1295
1296
|
|
|
1296
1297
|
type BaseTVWebSDKProps = {
|
|
1297
1298
|
container: HTMLElement;
|
|
1298
|
-
lang?: 'vi' | 'en' | 'es-mx';
|
|
1299
|
+
lang?: 'vi' | 'en' | 'es-mx' | 'hi';
|
|
1299
1300
|
assetRoot?: string;
|
|
1300
1301
|
resourceRoot?: string;
|
|
1301
1302
|
customUrls?: NestedPartial<ResourceUrls>;
|
|
@@ -1408,11 +1409,12 @@ type IDCardStep = {
|
|
|
1408
1409
|
cardType?: string;
|
|
1409
1410
|
enableConfirmPopup?: boolean;
|
|
1410
1411
|
};
|
|
1412
|
+
type CardTypeString = 'vn.national_id' | 'vn.cmnd_old' | 'vn.cmnd_new' | 'vn.cccd' | 'vn.cccd_new' | 'vn.tcc' | 'vn.passport' | 'ph.national_id' | 'ph.nid' | 'global.passport';
|
|
1411
1413
|
type ReadIDCardOptions = {
|
|
1412
1414
|
clientSettings: Record<string, any>;
|
|
1413
1415
|
onError: (error: ErrorObject) => void;
|
|
1414
1416
|
steps?: Array<IDCardStep>;
|
|
1415
|
-
allowedCardTypes?: Array<
|
|
1417
|
+
allowedCardTypes?: Array<CardTypeString | CardType>;
|
|
1416
1418
|
detectIdCard?: () => Promise<{
|
|
1417
1419
|
card_label: string;
|
|
1418
1420
|
}>;
|
|
@@ -1423,6 +1425,7 @@ type ReadIDCardOptions = {
|
|
|
1423
1425
|
flipVideoHorizontal?: boolean;
|
|
1424
1426
|
customTexts?: CustomTexts;
|
|
1425
1427
|
customErrors?: CustomErrors;
|
|
1428
|
+
customTheme?: Record<string, any>;
|
|
1426
1429
|
};
|
|
1427
1430
|
type ReadIDCardWithApiCallOptions = Omit<ReadIDCardOptions, 'clientSettings'> & {
|
|
1428
1431
|
apiCredentials: APICredentials;
|
|
@@ -1490,6 +1493,7 @@ type BaseLivenessDetectionOptions = {
|
|
|
1490
1493
|
serviceSettings?: ServiceSettings;
|
|
1491
1494
|
flowId?: FlowId;
|
|
1492
1495
|
extraConfig?: Record<string, any>;
|
|
1496
|
+
customTheme?: Record<string, any>;
|
|
1493
1497
|
};
|
|
1494
1498
|
type LivenessDetectionOptions = (BaseLivenessDetectionOptions & {
|
|
1495
1499
|
apiCheck: true;
|
|
@@ -1546,6 +1550,7 @@ type BaseFaceAuthenticationOptions = {
|
|
|
1546
1550
|
serviceSettings?: ServiceSettings;
|
|
1547
1551
|
flowId?: FlowId;
|
|
1548
1552
|
extraConfig?: Record<string, any>;
|
|
1553
|
+
customTheme?: Record<string, any>;
|
|
1549
1554
|
};
|
|
1550
1555
|
type FaceAuthenticationOptions = (BaseFaceAuthenticationOptions & {
|
|
1551
1556
|
apiCheck: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.35.0",
|
|
4
4
|
"description": "TV Web SDK - The Standalone SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsocial/tvweb-builder": "5.
|
|
33
|
-
"@tsocial/tvweb-core": "5.
|
|
34
|
-
"@tsocial/tvweb-ui": "5.
|
|
32
|
+
"@tsocial/tvweb-builder": "5.35.0",
|
|
33
|
+
"@tsocial/tvweb-core": "5.35.0",
|
|
34
|
+
"@tsocial/tvweb-ui": "5.35.0",
|
|
35
35
|
"invariant": "^2.2.4",
|
|
36
36
|
"react": "^16.14.0",
|
|
37
37
|
"react-app-polyfill": "^2.0.0",
|
|
38
38
|
"react-dom": "^16.14.0",
|
|
39
39
|
"styled-components": "^6.1.12"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "bc5525e8d203f4b642a73db392dd6bcaf19011dc"
|
|
42
42
|
}
|