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.
Files changed (54) hide show
  1. package/README.md +122 -46
  2. package/dist/components/CompositeWizard.d.ts +3 -3
  3. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +15 -2
  4. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +17 -4
  5. package/dist/components/customer_flows/CustomerIdentification.d.ts +15 -2
  6. package/dist/components/customer_flows/CustomerVerification.d.ts +15 -2
  7. package/dist/components/customer_flows/DocumentCapture.d.ts +15 -6
  8. package/dist/components/customer_flows/FaceValidation.d.ts +17 -2
  9. package/dist/components/customer_flows/IdAndFaceValidation.d.ts +18 -5
  10. package/dist/components/customer_flows/IdValidation.d.ts +18 -5
  11. package/dist/components/customer_flows/SignatureKYC.d.ts +17 -2
  12. package/dist/components/customer_flows/VideoIdValidation.d.ts +17 -2
  13. package/dist/components/document_capture/DocumentCaptureStateProvider.d.ts +1 -1
  14. package/dist/components/submission/AuthUrlNotAllowedOverlay.d.ts +2 -0
  15. package/dist/components/submission/Errors.d.ts +1 -1
  16. package/dist/components/submission/SessionIdMissingOverlay.d.ts +2 -0
  17. package/dist/components/submission/SessionValidationErrorOverlay.d.ts +6 -0
  18. package/dist/components/submission/SessionValidationFailedOverlay.d.ts +2 -0
  19. package/dist/components/submission/SubmissionProvider.d.ts +24 -5
  20. package/dist/components/video_id/IdVideoCaptureGuides.d.ts +166 -163
  21. package/dist/contexts/AuthStateContext.d.ts +33 -0
  22. package/dist/contexts/SubmissionContext.d.ts +9 -3
  23. package/dist/index.d.ts +7 -1
  24. package/dist/lib/utils/dataUrlToBase64.d.ts +2 -0
  25. package/dist/sdk2.cjs.development.js +864 -594
  26. package/dist/sdk2.cjs.development.js.map +1 -1
  27. package/dist/sdk2.cjs.production.js +1 -1
  28. package/dist/sdk2.cjs.production.js.map +1 -1
  29. package/dist/sdk2.esm.js +864 -597
  30. package/dist/sdk2.esm.js.map +1 -1
  31. package/dist/sdk2.umd.development.js +867 -598
  32. package/dist/sdk2.umd.development.js.map +1 -1
  33. package/dist/sdk2.umd.production.js +1 -1
  34. package/dist/sdk2.umd.production.js.map +1 -1
  35. package/dist/stories/Auth.stories.d.ts +8 -0
  36. package/dist/stories/Components/CompositeWizard/FaceLivenessAndIdCapture.stories.d.ts +0 -9
  37. package/dist/stories/CustomerFlows/CustomerBiometricsEnrollment.stories.d.ts +5 -1
  38. package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +5 -1
  39. package/dist/stories/CustomerFlows/CustomerIdentification.stories.d.ts +5 -1
  40. package/dist/stories/CustomerFlows/CustomerVerification.stories.d.ts +5 -1
  41. package/dist/stories/CustomerFlows/DocumentCapture.stories.d.ts +5 -1
  42. package/dist/stories/CustomerFlows/FaceValidation.stories.d.ts +5 -1
  43. package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +5 -1
  44. package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +5 -1
  45. package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +5 -1
  46. package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +14 -1
  47. package/dist/stories/utils/sessions.d.ts +13 -0
  48. package/dist/stories/utils/useLocalStorage.d.ts +1 -0
  49. package/dist/themes/index.d.ts +2 -0
  50. package/dist/version.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/components/submission/TokenIssuerNotAllowedErrorOverlay.d.ts +0 -2
  53. package/dist/components/submission/TokenMissingErrorOverlay.d.ts +0 -2
  54. package/dist/components/submission/TokenPublicKeyErrorOverlay.d.ts +0 -5
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ declare function SetCredentialsForm(): React.JSX.Element;
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof SetCredentialsForm;
6
+ };
7
+ export default _default;
8
+ export declare const SetCredentials: {};
@@ -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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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
- submissionToken: string;
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];
@@ -128,6 +128,8 @@ export interface Theme {
128
128
  borderWidth?: number;
129
129
  unsatisfiedColor?: string;
130
130
  satisfiedColor?: string;
131
+ instructionsTextColor?: string;
132
+ instructionsBackgroundColor?: string;
131
133
  };
132
134
  readTextPrompt?: {
133
135
  heading?: {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const webSdkVersion = "1.0.310";
1
+ export declare const webSdkVersion = "1.0.312";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idmission-web-sdk",
3
- "version": "1.0.310",
3
+ "version": "1.0.312",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/sdk2.esm.js",
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TokenIssuerNotAllowedErrorOverlay: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TokenMissingErrorOverlay: () => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { TokenPublicKeyError } from './Errors';
3
- export declare const TokenPublicKeyErrorOverlay: ({ error, }: {
4
- error: TokenPublicKeyError | null;
5
- }) => React.JSX.Element;