idmission-web-sdk 2.3.38 → 2.3.39

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/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.38';
207
+ var webSdkVersion = '2.3.39';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -14271,9 +14271,10 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14271
14271
  setSelfieImage(imageUrl);
14272
14272
  setCaptureState('CAPTURING_SIGNATURE');
14273
14273
  logCaptureMetadata();
14274
- uploadDocument(b64toBlob(dataUrlToBase64Sync(imageUrl), 'image/jpeg')).then(function (documentId) {
14275
- onSelfieCaptured === null || onSelfieCaptured === void 0 ? void 0 : onSelfieCaptured(documentId);
14276
- });
14274
+ uploadDocument(b64toBlob(dataUrlToBase64Sync(imageUrl), 'image/jpeg'), {
14275
+ filename: 'selfie',
14276
+ filetype: 'image/jpeg'
14277
+ }).then(onSelfieCaptured);
14277
14278
  }, [logCaptureMetadata, onSelfieCaptured, setSelfieImage, uploadDocument]);
14278
14279
  var _t = useState(null),
14279
14280
  signatureImageUrl = _t[0],