idmission-web-sdk 1.0.290 → 1.0.292
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/components/customer_flows/DocumentCapture.d.ts +0 -5
- package/dist/sdk2.cjs.development.js +11 -13
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +11 -13
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +11 -13
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/stories/CustomerFlows/DocumentCapture.stories.d.ts +0 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
|
2
2
|
import { ThemeInput } from '../../themes';
|
|
3
3
|
import { LangOption } from '../../lib/locales';
|
|
4
4
|
import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
|
|
5
|
-
import { SubmissionRequest } from '../../contexts/SubmissionContext';
|
|
6
5
|
import { DocumentCaptureWizardClassNames, DocumentCaptureWizardVerbiage } from '../document_capture/DocumentCaptureWizard';
|
|
7
6
|
import { CameraFeedMode } from '../../lib/camera/CameraFeedWrapper';
|
|
8
7
|
import { CapturedDocument, OnAllDocumentsUploaded } from '../document_capture/DocumentCaptureStateProvider';
|
|
@@ -27,10 +26,6 @@ export interface DocumentCaptureProps extends PropsWithChildren {
|
|
|
27
26
|
onDocumentUploaded?: OnDocumentUploaded;
|
|
28
27
|
/** Callback function that fires when a document failed to upload. The error and metadata are passed in as parameters. */
|
|
29
28
|
onDocumentUploadFailed?: OnDocumentUploadFailed;
|
|
30
|
-
/** Callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned. */
|
|
31
|
-
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
32
|
-
/** Callback function that fires when the user has completed the flow instead of making a call to IDmission's servers, allowing customers to specify their own submission logic. Arguments: the request payload that would have been dispatched to IDmission's API, which contains the images/documents/video submitted by the user. Note that when this parameter is supplied, `onComplete` will never fire, and the customer will need to implement their own error handling/retry logic. Use at your own risk! */
|
|
33
|
-
onSubmit?: (req: SubmissionRequest) => void;
|
|
34
29
|
/** Callback function that fires when the user completes the DocumentCapture flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user. */
|
|
35
30
|
onComplete?: OnAllDocumentsUploaded;
|
|
36
31
|
/** Callback function that fires when the user clicks the exit button during ID or selfie capture. */
|
|
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
51
51
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
52
52
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
53
53
|
|
|
54
|
-
var webSdkVersion = '1.0.
|
|
54
|
+
var webSdkVersion = '1.0.292';
|
|
55
55
|
|
|
56
56
|
function getPlatform() {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -19084,7 +19084,7 @@ var DocumentCaptureScreen = function DocumentCaptureScreen(_a) {
|
|
|
19084
19084
|
}
|
|
19085
19085
|
function onSubmitClick() {
|
|
19086
19086
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
19087
|
-
var
|
|
19087
|
+
var documentId_1;
|
|
19088
19088
|
return tslib.__generator(this, function (_a) {
|
|
19089
19089
|
switch (_a.label) {
|
|
19090
19090
|
case 0:
|
|
@@ -19096,13 +19096,15 @@ var DocumentCaptureScreen = function DocumentCaptureScreen(_a) {
|
|
|
19096
19096
|
filetype: 'image/jpeg'
|
|
19097
19097
|
})];
|
|
19098
19098
|
case 1:
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19099
|
+
documentId_1 = _a.sent();
|
|
19100
|
+
setTimeout(function () {
|
|
19101
|
+
dispatch({
|
|
19102
|
+
type: 'uploadCompleted',
|
|
19103
|
+
payload: {
|
|
19104
|
+
documentId: documentId_1
|
|
19105
|
+
}
|
|
19106
|
+
});
|
|
19107
|
+
}, 0);
|
|
19106
19108
|
return [3 /*break*/, 3];
|
|
19107
19109
|
case 2:
|
|
19108
19110
|
_a.sent();
|
|
@@ -19239,8 +19241,6 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
19239
19241
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
19240
19242
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
19241
19243
|
onDocumentUploadFailed = _a.onDocumentUploadFailed,
|
|
19242
|
-
onBeforeSubmit = _a.onBeforeSubmit,
|
|
19243
|
-
onSubmit = _a.onSubmit,
|
|
19244
19244
|
onComplete = _a.onComplete,
|
|
19245
19245
|
onExitCapture = _a.onExitCapture,
|
|
19246
19246
|
onUserCancel = _a.onUserCancel,
|
|
@@ -19275,8 +19275,6 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
19275
19275
|
onDocumentUploadProgress: onDocumentUploadProgress,
|
|
19276
19276
|
onDocumentUploaded: onDocumentUploaded,
|
|
19277
19277
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
19278
|
-
onBeforeSubmit: onBeforeSubmit,
|
|
19279
|
-
onSubmit: onSubmit,
|
|
19280
19278
|
geolocationEnabled: geolocationEnabled,
|
|
19281
19279
|
geolocationRequired: geolocationRequired
|
|
19282
19280
|
}, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
|