@tsocial/tvweb-sdk 5.36.0 → 5.38.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/build/esm/{chunk-641f0a71.js → chunk-0e095921.js} +1 -1
- package/build/esm/chunk-0ffdb7d1.js +1 -0
- package/build/esm/chunk-17ccf2c0.js +1 -0
- package/build/esm/{chunk-6b0b5adc.js → chunk-191cab03.js} +2 -2
- package/build/esm/{chunk-3475f25e.js → chunk-27a081f0.js} +1 -1
- package/build/esm/{chunk-7f5333af.js → chunk-32ffba48.js} +13 -13
- package/build/esm/{chunk-ee9ed408.js → chunk-37cdf0c6.js} +1 -1
- package/build/esm/{chunk-81ce3c83.js → chunk-47f573ed.js} +1 -1
- package/build/esm/{chunk-e289e491.js → chunk-4bdebcdd.js} +1 -1
- package/build/esm/{chunk-abf5e014.js → chunk-4c5427d3.js} +1 -1
- package/build/esm/{chunk-e0f43811.js → chunk-60dc6fe1.js} +5 -5
- package/build/esm/{chunk-e77bab5e.js → chunk-61824c72.js} +1 -1
- package/build/esm/{chunk-e3a48659.js → chunk-6a6c84e6.js} +1 -1
- package/build/esm/{chunk-dc7a2229.js → chunk-71bc3d31.js} +1 -1
- package/build/esm/{chunk-0811f0b9.js → chunk-7b389c71.js} +2 -2
- package/build/esm/{chunk-6e830372.js → chunk-825b5b31.js} +1 -1
- package/build/esm/chunk-99247a2f.js +483 -0
- package/build/esm/{chunk-e31767ae.js → chunk-b2a6294d.js} +1 -1
- package/build/esm/{chunk-571e89c0.js → chunk-c74892c9.js} +1 -1
- package/build/esm/{chunk-b87b1853.js → chunk-d8a92cb1.js} +1 -1
- package/build/esm/{chunk-fa450310.js → chunk-da9e4f99.js} +1 -1
- package/build/esm/chunk-f003d34d.js +1176 -0
- package/build/esm/tvweb-sdk.esm.min.js +1 -1
- package/build/tvweb-sdk.cjs.min.js +796 -686
- package/build/tvweb-sdk.standalone.js +5555 -19037
- package/build/tvweb-sdk.standalone.min.js +796 -686
- package/build/types/index.d.ts +10 -0
- package/package.json +5 -6
- package/build/esm/chunk-44cbd562.js +0 -428
- package/build/esm/chunk-de5b2d76.js +0 -1
- package/build/esm/chunk-ed832fec.js +0 -1121
- package/build/esm/chunk-ff693e7b.js +0 -1
package/build/types/index.d.ts
CHANGED
|
@@ -1161,6 +1161,10 @@ declare const _default: {
|
|
|
1161
1161
|
btn_use_this_picture: string;
|
|
1162
1162
|
btn_try_again: string;
|
|
1163
1163
|
remaining_time: string;
|
|
1164
|
+
upload_button_label: string;
|
|
1165
|
+
upload_invalid_file_type: string;
|
|
1166
|
+
upload_processing_failed: string;
|
|
1167
|
+
image_preview_unavailable: string;
|
|
1164
1168
|
front_card_title: string;
|
|
1165
1169
|
back_card_title: string;
|
|
1166
1170
|
front_card_description: string;
|
|
@@ -1332,6 +1336,7 @@ type ReadIDCardResult = {
|
|
|
1332
1336
|
stepNumber: number;
|
|
1333
1337
|
cardSide: 'front' | 'back';
|
|
1334
1338
|
cardType: string;
|
|
1339
|
+
source?: 'capture' | 'upload';
|
|
1335
1340
|
image: {
|
|
1336
1341
|
blob: Blob;
|
|
1337
1342
|
encrypted?: {
|
|
@@ -1413,6 +1418,10 @@ type IDCardStep = {
|
|
|
1413
1418
|
enableConfirmPopup?: boolean;
|
|
1414
1419
|
};
|
|
1415
1420
|
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';
|
|
1421
|
+
type UploadFromDeviceConfig = {
|
|
1422
|
+
enable: boolean;
|
|
1423
|
+
enableConfirmPopup?: boolean;
|
|
1424
|
+
};
|
|
1416
1425
|
type ReadIDCardOptions = {
|
|
1417
1426
|
clientSettings: Record<string, any>;
|
|
1418
1427
|
onError: (error: ErrorObject) => void;
|
|
@@ -1429,6 +1438,7 @@ type ReadIDCardOptions = {
|
|
|
1429
1438
|
customTexts?: CustomTexts;
|
|
1430
1439
|
customErrors?: CustomErrors;
|
|
1431
1440
|
customTheme?: Record<string, any>;
|
|
1441
|
+
uploadFromDevice?: UploadFromDeviceConfig;
|
|
1432
1442
|
};
|
|
1433
1443
|
type ReadIDCardWithApiCallOptions = Omit<ReadIDCardOptions, 'clientSettings'> & {
|
|
1434
1444
|
apiCredentials: APICredentials;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.38.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,13 @@
|
|
|
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.38.0",
|
|
33
|
+
"@tsocial/tvweb-core": "5.38.0",
|
|
34
|
+
"@tsocial/tvweb-ui": "5.38.0",
|
|
35
35
|
"invariant": "^2.2.4",
|
|
36
36
|
"react": "^16.14.0",
|
|
37
|
-
"react-app-polyfill": "^2.0.0",
|
|
38
37
|
"react-dom": "^16.14.0",
|
|
39
38
|
"styled-components": "^6.1.12"
|
|
40
39
|
},
|
|
41
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "1af31e9d0df5526dc12f14e6db2eab99082aac11"
|
|
42
41
|
}
|