idmission-web-sdk 2.0.3 → 2.0.4

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.
@@ -4,9 +4,11 @@ export type AdditionalDocument = {
4
4
  name: string;
5
5
  description?: string;
6
6
  skip?: () => Promise<boolean>;
7
+ processAsPOA?: boolean;
7
8
  };
8
9
  export type UploadedDocument = {
9
10
  documentName: string;
11
+ processAsPOA: 'Y' | 'N';
10
12
  additionalDocument: string | Record<string, string>;
11
13
  };
12
14
  export type AdditionalDocumentCaptureClassNames = {
@@ -8,6 +8,7 @@ export type CapturedDocument = {
8
8
  aspectRatio?: number;
9
9
  cameraFeedMode?: CameraFeedMode;
10
10
  instructions?: ReactNode;
11
+ processAsPOA?: boolean;
11
12
  documentId?: string;
12
13
  content?: Blob;
13
14
  contentUrl?: string;
@@ -49,7 +49,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
49
49
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
50
50
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
51
51
 
52
- var webSdkVersion = '2.0.3';
52
+ var webSdkVersion = '2.0.4';
53
53
 
54
54
  function getPlatform() {
55
55
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -9492,6 +9492,7 @@ var AdditionalDocumentCapture = function AdditionalDocumentCapture(_a) {
9492
9492
  var fileContent = fileReader.result.toString();
9493
9493
  onComplete === null || onComplete === void 0 ? void 0 : onComplete({
9494
9494
  documentName: document.name,
9495
+ processAsPOA: document.processAsPOA ? 'Y' : 'N',
9495
9496
  additionalDocument: {
9496
9497
  name: file.name,
9497
9498
  fileContent: dataUrlToBase64Sync(fileContent),
@@ -9758,7 +9759,7 @@ var useVideoRecorder = function useVideoRecorder(camera, audioStream, mergeAVStr
9758
9759
  var processAudio = React.useCallback(function () {
9759
9760
  var _a;
9760
9761
  var audioBlob = new Blob(audioChunks.current, {
9761
- type: 'audio/ogg; codecs=opus'
9762
+ type: 'audio/mp4'
9762
9763
  });
9763
9764
  audioChunks.current = [];
9764
9765
  setAudioUrl(URL.createObjectURL(audioBlob));