@tsocial/tvweb-sdk.vib 5.3.1 → 5.4.5

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, imageBlob } = qrScannedResult
242
+ const { result, image } = qrScannedResult
243
243
 
244
244
  const qrImgEl = document.createElement("img");
245
245
  qrImgEl.width = "200";
246
- qrImgEl.src = URL.createObjectURL(imageBlob);
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, imageBlob, cardSide } = props
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: imageBlob,
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.1",
3
+ "version": "5.4.5",
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.3.1",
28
- "@tsocial/tvweb-ui": "^5.3.1",
27
+ "@tsocial/tvweb-core": "^5.4.5",
28
+ "@tsocial/tvweb-ui": "^5.4.5",
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.3.1"
36
+ "@tsocial/tvweb-builder": "^5.4.5"
37
37
  },
38
- "gitHead": "ef8db18cecf2542422137773e636ccdccface4bf"
38
+ "gitHead": "e8239bdcbc6697b07a11399ed4ec06c8383d4433"
39
39
  }