@tsocial/tvweb-sdk.vib 5.3.1 → 5.4.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.
@@ -239,11 +239,11 @@
|
|
239
239
|
resultExtractIdInfoEl.appendChild(document.createTextNode(`Recorded videos: ${recordedVideos.length}\n`));
|
240
240
|
|
241
241
|
if (qrScannedResult) {
|
242
|
-
const { result,
|
242
|
+
const { result, image } = qrScannedResult
|
243
243
|
|
244
244
|
const qrImgEl = document.createElement("img");
|
245
245
|
qrImgEl.width = "200";
|
246
|
-
qrImgEl.src = URL.createObjectURL(
|
246
|
+
qrImgEl.src = URL.createObjectURL(image.blob);
|
247
247
|
resultExtractIdInfoEl.appendChild(qrImgEl);
|
248
248
|
resultExtractIdInfoEl.appendChild(document.createTextNode(`\n${result}\n`));
|
249
249
|
}
|
@@ -265,10 +265,10 @@
|
|
265
265
|
}
|
266
266
|
|
267
267
|
async function handleDetectIdCard (props) {
|
268
|
-
const { cardType,
|
268
|
+
const { cardType, image, cardSide } = props
|
269
269
|
const apiClient = new trustvisionSdk.default(inputAccessKey.value, inputSecretKey.value, inputApiUrl.value);
|
270
270
|
const resultUpload = await apiClient.uploadImage({
|
271
|
-
file:
|
271
|
+
file: image.blob,
|
272
272
|
label: `id_card.${cardType}.${cardSide}`,
|
273
273
|
});
|
274
274
|
const imageId = resultUpload.data.image_id
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tsocial/tvweb-sdk.vib",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.4.0",
|
4
4
|
"description": "TV Web SDK - The Standalone VIB SDK",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>, Son T. Ng <son.nguyen.thai@trustingsocial.com>",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
26
|
"@tsocial/trustvision-sdk": "2.10.1",
|
27
|
-
"@tsocial/tvweb-core": "^5.
|
28
|
-
"@tsocial/tvweb-ui": "^5.
|
27
|
+
"@tsocial/tvweb-core": "^5.4.0",
|
28
|
+
"@tsocial/tvweb-ui": "^5.4.0",
|
29
29
|
"invariant": "^2.2.4",
|
30
30
|
"react": "^16.14.0",
|
31
31
|
"react-app-polyfill": "^2.0.0",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"styled-components": "^5.2.1"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@tsocial/tvweb-builder": "^5.
|
36
|
+
"@tsocial/tvweb-builder": "^5.4.0"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "c2aedb28f04afe4cb63281fe17fff6baaceb560a"
|
39
39
|
}
|