idmission-web-sdk 0.0.71 → 0.0.73

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 (40) hide show
  1. package/README.md +24 -0
  2. package/dist/components/additional_document_capture/AdditionalDocumentCapture.d.ts +7 -3
  3. package/dist/components/additional_document_capture/AdditionalDocumentCaptureWizard.d.ts +3 -6
  4. package/dist/components/camera/CameraAccessDeniedOverlay.d.ts +5 -4
  5. package/dist/components/common/SelfieProgressPreview.d.ts +4 -0
  6. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -2
  7. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -2
  8. package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -2
  9. package/dist/components/customer_flows/IdValidation.d.ts +2 -2
  10. package/dist/components/customer_identification/CustomerIdentificationFailure.d.ts +5 -4
  11. package/dist/components/customer_identification/CustomerIdentificationSuccess.d.ts +5 -4
  12. package/dist/components/customer_verification/CustomerVerificationFailure.d.ts +5 -4
  13. package/dist/components/customer_verification/CustomerVerificationSuccess.d.ts +5 -4
  14. package/dist/components/face_liveness/FaceLivenessCapture.d.ts +5 -4
  15. package/dist/components/face_liveness/FaceLivenessFailure.d.ts +5 -4
  16. package/dist/components/face_liveness/FaceLivenessSuccess.d.ts +5 -4
  17. package/dist/components/id_capture/FlipIdPrompt.d.ts +2 -1
  18. package/dist/components/id_capture/IdCapture.d.ts +6 -4
  19. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +7 -6
  20. package/dist/components/id_capture/IdCaptureSuccess.d.ts +10 -9
  21. package/dist/components/id_capture/IdCaptureWizard.d.ts +6 -3
  22. package/dist/components/selfie_capture/SelfieCapture.d.ts +8 -6
  23. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +8 -7
  24. package/dist/components/signature_capture/SignatureCapture.d.ts +5 -4
  25. package/dist/components/video_signature_capture/VideoSignatureCapture.d.ts +5 -4
  26. package/dist/components/video_signature_capture/VideoSignatureSuccess.d.ts +5 -4
  27. package/dist/lib/locales/es/translation.d.ts +1 -0
  28. package/dist/lib/locales/index.d.ts +16 -0
  29. package/dist/sdk2.cjs.development.js +391 -326
  30. package/dist/sdk2.cjs.development.js.map +1 -1
  31. package/dist/sdk2.cjs.production.js +1 -1
  32. package/dist/sdk2.cjs.production.js.map +1 -1
  33. package/dist/sdk2.esm.js +391 -326
  34. package/dist/sdk2.esm.js.map +1 -1
  35. package/dist/sdk2.umd.development.js +391 -326
  36. package/dist/sdk2.umd.development.js.map +1 -1
  37. package/dist/sdk2.umd.production.js +1 -1
  38. package/dist/sdk2.umd.production.js.map +1 -1
  39. package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +8 -0
  40. package/package.json +1 -1
@@ -28,6 +28,7 @@ export declare const resources: {
28
28
  'Capturing...': string;
29
29
  'Capture failed!': string;
30
30
  'Please flip your ID card...': string;
31
+ 'ID card front captured.': string;
31
32
  'ID Capture Successful': string;
32
33
  'Verify the entire ID was captured clearly with no glare.': string;
33
34
  Submit: string;
@@ -59,3 +60,18 @@ export declare const resources: {
59
60
  };
60
61
  };
61
62
  export declare const useLanguage: (lang: LangOption) => void;
63
+ export type CustomerSuppliedTranslations = {
64
+ [lang: string]: string;
65
+ };
66
+ export type CustomerSuppliedVerbiage = string | CustomerSuppliedTranslations | undefined;
67
+ export type RecursiveVerbiageObject = CustomerSuppliedVerbiage | {
68
+ [key: string]: RecursiveVerbiageObject;
69
+ };
70
+ export declare function useVerbiage(verbiage: CustomerSuppliedVerbiage, fallback: string): string;
71
+ export declare function useTranslations<T extends {
72
+ [key: string]: RecursiveVerbiageObject;
73
+ }>(verbiage: T | undefined, fallbacks: {
74
+ [K in keyof T]: string;
75
+ }): {
76
+ [K in keyof T]: string;
77
+ };