idmission-web-sdk 1.0.310 → 1.0.312
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/README.md +122 -46
- package/dist/components/CompositeWizard.d.ts +3 -3
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +15 -2
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +17 -4
- package/dist/components/customer_flows/CustomerIdentification.d.ts +15 -2
- package/dist/components/customer_flows/CustomerVerification.d.ts +15 -2
- package/dist/components/customer_flows/DocumentCapture.d.ts +15 -6
- package/dist/components/customer_flows/FaceValidation.d.ts +17 -2
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +18 -5
- package/dist/components/customer_flows/IdValidation.d.ts +18 -5
- package/dist/components/customer_flows/SignatureKYC.d.ts +17 -2
- package/dist/components/customer_flows/VideoIdValidation.d.ts +17 -2
- package/dist/components/document_capture/DocumentCaptureStateProvider.d.ts +1 -1
- package/dist/components/submission/AuthUrlNotAllowedOverlay.d.ts +2 -0
- package/dist/components/submission/Errors.d.ts +1 -1
- package/dist/components/submission/SessionIdMissingOverlay.d.ts +2 -0
- package/dist/components/submission/SessionValidationErrorOverlay.d.ts +6 -0
- package/dist/components/submission/SessionValidationFailedOverlay.d.ts +2 -0
- package/dist/components/submission/SubmissionProvider.d.ts +24 -5
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +166 -163
- package/dist/contexts/AuthStateContext.d.ts +33 -0
- package/dist/contexts/SubmissionContext.d.ts +9 -3
- package/dist/index.d.ts +7 -1
- package/dist/lib/utils/dataUrlToBase64.d.ts +2 -0
- package/dist/sdk2.cjs.development.js +864 -594
- 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 +864 -597
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +867 -598
- 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/Auth.stories.d.ts +8 -0
- package/dist/stories/Components/CompositeWizard/FaceLivenessAndIdCapture.stories.d.ts +0 -9
- package/dist/stories/CustomerFlows/CustomerBiometricsEnrollment.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/CustomerIdentification.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/CustomerVerification.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/DocumentCapture.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/FaceValidation.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +5 -1
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +14 -1
- package/dist/stories/utils/sessions.d.ts +13 -0
- package/dist/stories/utils/useLocalStorage.d.ts +1 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/submission/TokenIssuerNotAllowedErrorOverlay.d.ts +0 -2
- package/dist/components/submission/TokenMissingErrorOverlay.d.ts +0 -2
- package/dist/components/submission/TokenPublicKeyErrorOverlay.d.ts +0 -5
|
@@ -9,16 +9,7 @@ declare const _default: {
|
|
|
9
9
|
export default _default;
|
|
10
10
|
export declare const FaceLivenessAndIDCapture: {
|
|
11
11
|
args: {
|
|
12
|
-
submissionEnvironment: string;
|
|
13
12
|
faceLivenessProps: FaceLivenessWizardProps;
|
|
14
13
|
idCaptureProps: IdCaptureWizardProps;
|
|
15
14
|
};
|
|
16
|
-
argTypes: {
|
|
17
|
-
submissionEnvironment: {
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
options: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
15
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/CustomerBiometricsEnrollment").CustomerBiometricsEnrollmentProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
enrollmentId: string;
|
|
10
14
|
};
|
|
11
15
|
argTypes: {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/CustomerIdAndBiometricsEnrollment").CustomerEnrollmentProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
|
-
submissionToken: string;
|
|
8
8
|
debugMode: true;
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
enrollmentId: string;
|
|
10
14
|
};
|
|
11
15
|
argTypes: {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/CustomerIdentification").CustomerIdentificationProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
};
|
|
10
14
|
argTypes: {
|
|
11
15
|
lang: {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/CustomerVerification").CustomerVerificationProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
enrollmentId: string;
|
|
10
14
|
};
|
|
11
15
|
argTypes: {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: React.FC<import("../../components/customer_flows/DocumentCapture").DocumentCaptureProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
|
-
|
|
8
|
+
sessionId: typeof getSessionId;
|
|
9
|
+
authUrl: any;
|
|
10
|
+
submissionUrl: string;
|
|
11
|
+
documentServiceUrl: string;
|
|
8
12
|
onUserCancel: undefined;
|
|
9
13
|
};
|
|
10
14
|
argTypes: {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/FaceValidation").FaceValidationProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
};
|
|
10
14
|
argTypes: {
|
|
11
15
|
lang: {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/IdAndFaceValidation").IdAndFaceValidationProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
onSubmit: undefined;
|
|
10
14
|
};
|
|
11
15
|
argTypes: {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: React.FC<import("../../components/customer_flows/IdValidation").IdValidationProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
authUrl: any;
|
|
10
|
+
submissionUrl: string;
|
|
11
|
+
documentServiceUrl: string;
|
|
12
|
+
sessionId: typeof getSessionId;
|
|
9
13
|
onSubmit: undefined;
|
|
10
14
|
onUserCancel: undefined;
|
|
11
15
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/SignatureKYC").SignatureKYCProps>;
|
|
5
6
|
args: {
|
|
6
7
|
lang: string;
|
|
7
8
|
debugMode: true;
|
|
8
|
-
|
|
9
|
+
sessionId: typeof getSessionId;
|
|
10
|
+
authUrl: any;
|
|
11
|
+
submissionUrl: string;
|
|
12
|
+
documentServiceUrl: string;
|
|
9
13
|
};
|
|
10
14
|
argTypes: {
|
|
11
15
|
lang: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getSessionId } from '../utils/sessions';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import("react").FC<import("../../components/customer_flows/VideoIdValidation").VideoIdValidationProps>;
|
|
@@ -6,7 +7,19 @@ declare const meta: {
|
|
|
6
7
|
args: {
|
|
7
8
|
lang: string;
|
|
8
9
|
debugMode: true;
|
|
9
|
-
|
|
10
|
+
sessionId: typeof getSessionId;
|
|
11
|
+
authUrl: any;
|
|
12
|
+
submissionUrl: string;
|
|
13
|
+
documentServiceUrl: string;
|
|
14
|
+
theme: {
|
|
15
|
+
idVideoCapture: {
|
|
16
|
+
idCardGuides: {
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
satisfiedColor: string;
|
|
19
|
+
unsatisfiedColor: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
10
23
|
};
|
|
11
24
|
argTypes: {
|
|
12
25
|
lang: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const defaultAuthUrl: any;
|
|
2
|
+
export declare const defaultApiKeyId: any;
|
|
3
|
+
export declare const defaultApiKeySecret: any;
|
|
4
|
+
export declare function getAuthUrl(): any;
|
|
5
|
+
export declare function useAuthConfig(): {
|
|
6
|
+
authUrl: string;
|
|
7
|
+
setAuthUrl: (value: string | ((value: string) => string)) => void;
|
|
8
|
+
apiKeyId: string;
|
|
9
|
+
setApiKeyId: (value: string | ((value: string) => string)) => void;
|
|
10
|
+
apiKeySecret: string;
|
|
11
|
+
setApiKeySecret: (value: string | ((value: string) => string)) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function getSessionId(): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useLocalStorage(key: string, initialValue: string): [string, (value: string | ((value: string) => string)) => void];
|
package/dist/themes/index.d.ts
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const webSdkVersion = "1.0.
|
|
1
|
+
export declare const webSdkVersion = "1.0.312";
|
package/package.json
CHANGED