idmission-web-sdk 1.0.223 → 1.0.225

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.
@@ -9,13 +9,14 @@ export type DocumentMetadata = {
9
9
  filename?: string;
10
10
  filetype?: string;
11
11
  };
12
- export type OnBeforeDocumentUpload = (content: Blob, metadata?: DocumentMetadata) => Promise<void | false>;
13
- export type OnDocumentUploadProgress = (info: {
12
+ export type DocumentUploadProgressEvent = {
14
13
  bytesUploaded: number;
15
14
  bytesTotal: number;
16
15
  percentage: string;
17
16
  metadata?: DocumentMetadata;
18
- }) => void;
17
+ };
18
+ export type OnBeforeDocumentUpload = (content: Blob, metadata?: DocumentMetadata) => Promise<void | false>;
19
+ export type OnDocumentUploadProgress = (event: DocumentUploadProgressEvent) => void;
19
20
  export type OnDocumentUploaded = (documentId: string, metadata?: DocumentMetadata) => Promise<void>;
20
21
  export type OnDocumentUploadFailed = (error: Error, metadata?: DocumentMetadata) => void;
21
22
  export type SubmissionState = {
@@ -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 = '1.0.223';
52
+ var webSdkVersion = '1.0.225';
53
53
 
54
54
  function getPlatform() {
55
55
  if (typeof window === 'undefined') return;
@@ -1825,7 +1825,7 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1825
1825
  throw e;
1826
1826
  }
1827
1827
  });
1828
- }, [cameraAccessDenied, iphoneContinuityCameraAllowed, iphoneContinuityCameraDenied, preferFrontFacingCamera]);
1828
+ }, [cameraAccessDenied, debugMode, iphoneContinuityCameraAllowed, iphoneContinuityCameraDenied, preferFrontFacingCamera]);
1829
1829
  React.useEffect(function () {
1830
1830
  var _a;
1831
1831
  if (!videoDevice) return;
@@ -13990,7 +13990,8 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13990
13990
  borderRadius: '50%',
13991
13991
  aspectRatio: '1 / 1.618',
13992
13992
  height: '100%',
13993
- margin: '4% auto auto'
13993
+ margin: '4% auto auto',
13994
+ minHeight: '33dvh'
13994
13995
  }
13995
13996
  }), requestedAction === 'FLIP_ID' ? ( /*#__PURE__*/React__default['default'].createElement(IdVideoCaptureFlipIdPrompt, {
13996
13997
  assets: assets,
@@ -14063,7 +14064,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
14063
14064
  }
14064
14065
  }, instructionText))))));
14065
14066
  };
14066
- var GuideImage = styled__default['default'].img(templateObject_1$8 || (templateObject_1$8 = tslib.__makeTemplateObject(["\n width: 100%;\n ", "\n"], ["\n width: 100%;\n ", "\n"])), function (props) {
14067
+ var GuideImage = styled__default['default'].img(templateObject_1$8 || (templateObject_1$8 = tslib.__makeTemplateObject(["\n width: 100%;\n max-height: 100%;\n ", "\n"], ["\n width: 100%;\n max-height: 100%;\n ", "\n"])), function (props) {
14067
14068
  return props.$isMirrored ? 'transform: scaleX(-1);' : '';
14068
14069
  });
14069
14070
  var templateObject_1$8;