@idmission/websdk-ui 0.1.0-rc.1
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 +189 -0
- package/dist/DocumentCaptureView.d.ts +111 -0
- package/dist/DocumentCaptureView.d.ts.map +1 -0
- package/dist/DocumentCaptureView.js +225 -0
- package/dist/FaceLivenessView.d.ts +88 -0
- package/dist/FaceLivenessView.d.ts.map +1 -0
- package/dist/FaceLivenessView.js +298 -0
- package/dist/IdCaptureView.d.ts +271 -0
- package/dist/IdCaptureView.d.ts.map +1 -0
- package/dist/IdCaptureView.js +454 -0
- package/dist/SelfieCaptureView.d.ts +119 -0
- package/dist/SelfieCaptureView.d.ts.map +1 -0
- package/dist/SelfieCaptureView.js +168 -0
- package/dist/SignatureCaptureView.d.ts +136 -0
- package/dist/SignatureCaptureView.d.ts.map +1 -0
- package/dist/SignatureCaptureView.js +521 -0
- package/dist/VideoIdCaptureView.d.ts +104 -0
- package/dist/VideoIdCaptureView.d.ts.map +1 -0
- package/dist/VideoIdCaptureView.js +253 -0
- package/dist/bindings/useDocumentCapture.d.ts +3 -0
- package/dist/bindings/useDocumentCapture.d.ts.map +1 -0
- package/dist/bindings/useDocumentCapture.js +6 -0
- package/dist/bindings/useIdCapture.d.ts +5 -0
- package/dist/bindings/useIdCapture.d.ts.map +1 -0
- package/dist/bindings/useIdCapture.js +53 -0
- package/dist/bindings/useSelfieCapture.d.ts +5 -0
- package/dist/bindings/useSelfieCapture.d.ts.map +1 -0
- package/dist/bindings/useSelfieCapture.js +53 -0
- package/dist/bindings/useSignatureCapture.d.ts +3 -0
- package/dist/bindings/useSignatureCapture.d.ts.map +1 -0
- package/dist/bindings/useSignatureCapture.js +6 -0
- package/dist/bindings/useVideoIdCapture.d.ts +3 -0
- package/dist/bindings/useVideoIdCapture.d.ts.map +1 -0
- package/dist/bindings/useVideoIdCapture.js +6 -0
- package/dist/components/CameraFeed.d.ts +36 -0
- package/dist/components/CameraFeed.d.ts.map +1 -0
- package/dist/components/CameraFeed.js +74 -0
- package/dist/components/ExitCaptureButton.d.ts +6 -0
- package/dist/components/ExitCaptureButton.d.ts.map +1 -0
- package/dist/components/ExitCaptureButton.js +32 -0
- package/dist/components/GuidanceMessage.d.ts +25 -0
- package/dist/components/GuidanceMessage.d.ts.map +1 -0
- package/dist/components/GuidanceMessage.js +39 -0
- package/dist/components/OverrideWrongDocumentTypeDialog.d.ts +20 -0
- package/dist/components/OverrideWrongDocumentTypeDialog.d.ts.map +1 -0
- package/dist/components/OverrideWrongDocumentTypeDialog.js +55 -0
- package/dist/components/additional_documents/AdditionalDocumentCapture.d.ts +41 -0
- package/dist/components/additional_documents/AdditionalDocumentCapture.d.ts.map +1 -0
- package/dist/components/additional_documents/AdditionalDocumentCapture.js +118 -0
- package/dist/components/additional_documents/AdditionalDocumentCaptureWizard.d.ts +18 -0
- package/dist/components/additional_documents/AdditionalDocumentCaptureWizard.d.ts.map +1 -0
- package/dist/components/additional_documents/AdditionalDocumentCaptureWizard.js +93 -0
- package/dist/components/additional_documents/sequence.d.ts +10 -0
- package/dist/components/additional_documents/sequence.d.ts.map +1 -0
- package/dist/components/additional_documents/sequence.js +11 -0
- package/dist/components/additional_documents/types.d.ts +15 -0
- package/dist/components/additional_documents/types.d.ts.map +1 -0
- package/dist/components/additional_documents/types.js +1 -0
- package/dist/components/barcode/BarcodeGuideOverlay.d.ts +23 -0
- package/dist/components/barcode/BarcodeGuideOverlay.d.ts.map +1 -0
- package/dist/components/barcode/BarcodeGuideOverlay.js +157 -0
- package/dist/components/barcode/BarcodeSuccessOverlay.d.ts +7 -0
- package/dist/components/barcode/BarcodeSuccessOverlay.d.ts.map +1 -0
- package/dist/components/barcode/BarcodeSuccessOverlay.js +58 -0
- package/dist/components/common/ButtonsRow.d.ts +2 -0
- package/dist/components/common/ButtonsRow.d.ts.map +1 -0
- package/dist/components/common/ButtonsRow.js +7 -0
- package/dist/components/common/CapturedDocumentImg.d.ts +7 -0
- package/dist/components/common/CapturedDocumentImg.d.ts.map +1 -0
- package/dist/components/common/CapturedDocumentImg.js +31 -0
- package/dist/components/common/Card.d.ts +9 -0
- package/dist/components/common/Card.d.ts.map +1 -0
- package/dist/components/common/Card.js +16 -0
- package/dist/components/common/LoaderButton.d.ts +31 -0
- package/dist/components/common/LoaderButton.d.ts.map +1 -0
- package/dist/components/common/LoaderButton.js +444 -0
- package/dist/components/common/LoadingListItemIndicator.d.ts +5 -0
- package/dist/components/common/LoadingListItemIndicator.d.ts.map +1 -0
- package/dist/components/common/LoadingListItemIndicator.js +8 -0
- package/dist/components/common/animation.d.ts +5 -0
- package/dist/components/common/animation.d.ts.map +1 -0
- package/dist/components/common/animation.js +35 -0
- package/dist/components/common/downloadingLabel.d.ts +10 -0
- package/dist/components/common/downloadingLabel.d.ts.map +1 -0
- package/dist/components/common/downloadingLabel.js +15 -0
- package/dist/components/common/overlay.d.ts +142 -0
- package/dist/components/common/overlay.d.ts.map +1 -0
- package/dist/components/common/overlay.js +183 -0
- package/dist/components/customer_match/CustomerMatchFailure.d.ts +37 -0
- package/dist/components/customer_match/CustomerMatchFailure.d.ts.map +1 -0
- package/dist/components/customer_match/CustomerMatchFailure.js +38 -0
- package/dist/components/customer_match/CustomerMatchSuccess.d.ts +35 -0
- package/dist/components/customer_match/CustomerMatchSuccess.d.ts.map +1 -0
- package/dist/components/customer_match/CustomerMatchSuccess.js +44 -0
- package/dist/components/debug/debug.d.ts +91 -0
- package/dist/components/debug/debug.d.ts.map +1 -0
- package/dist/components/debug/debug.js +270 -0
- package/dist/components/document/DocumentCaptureGuideOverlay.d.ts +15 -0
- package/dist/components/document/DocumentCaptureGuideOverlay.d.ts.map +1 -0
- package/dist/components/document/DocumentCaptureGuideOverlay.js +148 -0
- package/dist/components/document/guideRect.d.ts +11 -0
- package/dist/components/document/guideRect.d.ts.map +1 -0
- package/dist/components/document/guideRect.js +25 -0
- package/dist/components/document/types.d.ts +25 -0
- package/dist/components/document/types.d.ts.map +1 -0
- package/dist/components/document/types.js +1 -0
- package/dist/components/error/CameraAccessDeniedOverlay.d.ts +31 -0
- package/dist/components/error/CameraAccessDeniedOverlay.d.ts.map +1 -0
- package/dist/components/error/CameraAccessDeniedOverlay.js +45 -0
- package/dist/components/error/ErrorScreen.d.ts +60 -0
- package/dist/components/error/ErrorScreen.d.ts.map +1 -0
- package/dist/components/error/ErrorScreen.js +150 -0
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts +35 -0
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts.map +1 -0
- package/dist/components/face_liveness/FaceLivenessFailure.js +30 -0
- package/dist/components/face_liveness/FaceLivenessSuccess.d.ts +31 -0
- package/dist/components/face_liveness/FaceLivenessSuccess.d.ts.map +1 -0
- package/dist/components/face_liveness/FaceLivenessSuccess.js +56 -0
- package/dist/components/fallback/IdCaptureFallback.d.ts +58 -0
- package/dist/components/fallback/IdCaptureFallback.d.ts.map +1 -0
- package/dist/components/fallback/IdCaptureFallback.js +128 -0
- package/dist/components/fallback/IdCaptureOrUploadScreen.d.ts +75 -0
- package/dist/components/fallback/IdCaptureOrUploadScreen.d.ts.map +1 -0
- package/dist/components/fallback/IdCaptureOrUploadScreen.js +205 -0
- package/dist/components/fallback/SelfieCaptureFallback.d.ts +54 -0
- package/dist/components/fallback/SelfieCaptureFallback.d.ts.map +1 -0
- package/dist/components/fallback/SelfieCaptureFallback.js +106 -0
- package/dist/components/fallback/fallbackInstructionStep.d.ts +5 -0
- package/dist/components/fallback/fallbackInstructionStep.d.ts.map +1 -0
- package/dist/components/fallback/fallbackInstructionStep.js +18 -0
- package/dist/components/fallback/readFile.d.ts +2 -0
- package/dist/components/fallback/readFile.d.ts.map +1 -0
- package/dist/components/fallback/readFile.js +14 -0
- package/dist/components/guide_images/backToFront.d.ts +3 -0
- package/dist/components/guide_images/backToFront.d.ts.map +1 -0
- package/dist/components/guide_images/backToFront.js +17 -0
- package/dist/components/guide_images/byUrl.d.ts +3 -0
- package/dist/components/guide_images/byUrl.d.ts.map +1 -0
- package/dist/components/guide_images/byUrl.js +6 -0
- package/dist/components/guide_images/defaults.d.ts +37 -0
- package/dist/components/guide_images/defaults.d.ts.map +1 -0
- package/dist/components/guide_images/defaults.js +37 -0
- package/dist/components/guide_images/index.d.ts +7 -0
- package/dist/components/guide_images/index.d.ts.map +1 -0
- package/dist/components/guide_images/index.js +5 -0
- package/dist/components/guide_images/orientation.d.ts +2 -0
- package/dist/components/guide_images/orientation.d.ts.map +1 -0
- package/dist/components/guide_images/orientation.js +5 -0
- package/dist/components/guide_images/types.d.ts +15 -0
- package/dist/components/guide_images/types.d.ts.map +1 -0
- package/dist/components/guide_images/types.js +1 -0
- package/dist/components/guide_images/useGuideImages.d.ts +3 -0
- package/dist/components/guide_images/useGuideImages.d.ts.map +1 -0
- package/dist/components/guide_images/useGuideImages.js +19 -0
- package/dist/components/guides/FlipIdPrompt.d.ts +28 -0
- package/dist/components/guides/FlipIdPrompt.d.ts.map +1 -0
- package/dist/components/guides/FlipIdPrompt.js +54 -0
- package/dist/components/guides/IdCaptureFitGuide.d.ts +51 -0
- package/dist/components/guides/IdCaptureFitGuide.d.ts.map +1 -0
- package/dist/components/guides/IdCaptureFitGuide.js +199 -0
- package/dist/components/guides/IdCaptureGuideOverlay.d.ts +100 -0
- package/dist/components/guides/IdCaptureGuideOverlay.d.ts.map +1 -0
- package/dist/components/guides/IdCaptureGuideOverlay.js +137 -0
- package/dist/components/guides/IdCaptureGuides.d.ts +47 -0
- package/dist/components/guides/IdCaptureGuides.d.ts.map +1 -0
- package/dist/components/guides/IdCaptureGuides.js +136 -0
- package/dist/components/guides/IdCaptureGuidesCommon.d.ts +136 -0
- package/dist/components/guides/IdCaptureGuidesCommon.d.ts.map +1 -0
- package/dist/components/guides/IdCaptureGuidesCommon.js +123 -0
- package/dist/components/loading/IdCaptureLoadingGraphic.d.ts +9 -0
- package/dist/components/loading/IdCaptureLoadingGraphic.d.ts.map +1 -0
- package/dist/components/loading/IdCaptureLoadingGraphic.js +76 -0
- package/dist/components/loading/IdCaptureLoadingOverlay.d.ts +134 -0
- package/dist/components/loading/IdCaptureLoadingOverlay.d.ts.map +1 -0
- package/dist/components/loading/IdCaptureLoadingOverlay.js +13 -0
- package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts +3 -0
- package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts.map +1 -0
- package/dist/components/loading/IdCaptureLoadingOverlayDefault.js +196 -0
- package/dist/components/loading/IdCaptureLoadingOverlayLegacy.d.ts +4 -0
- package/dist/components/loading/IdCaptureLoadingOverlayLegacy.d.ts.map +1 -0
- package/dist/components/loading/IdCaptureLoadingOverlayLegacy.js +69 -0
- package/dist/components/loading/IdCaptureLoadingOverlayRing.d.ts +3 -0
- package/dist/components/loading/IdCaptureLoadingOverlayRing.d.ts.map +1 -0
- package/dist/components/loading/IdCaptureLoadingOverlayRing.js +260 -0
- package/dist/components/loading/RingIntroScreen.d.ts +39 -0
- package/dist/components/loading/RingIntroScreen.d.ts.map +1 -0
- package/dist/components/loading/RingIntroScreen.js +216 -0
- package/dist/components/loading/RingProgress.d.ts +9 -0
- package/dist/components/loading/RingProgress.d.ts.map +1 -0
- package/dist/components/loading/RingProgress.js +24 -0
- package/dist/components/loading/RingStageTransition.d.ts +27 -0
- package/dist/components/loading/RingStageTransition.d.ts.map +1 -0
- package/dist/components/loading/RingStageTransition.js +145 -0
- package/dist/components/loading/customerSpinner.d.ts +58 -0
- package/dist/components/loading/customerSpinner.d.ts.map +1 -0
- package/dist/components/loading/customerSpinner.js +69 -0
- package/dist/components/loading/ringIntro.d.ts +15 -0
- package/dist/components/loading/ringIntro.d.ts.map +1 -0
- package/dist/components/loading/ringIntro.js +5 -0
- package/dist/components/loading/ringStatus.d.ts +8 -0
- package/dist/components/loading/ringStatus.d.ts.map +1 -0
- package/dist/components/loading/ringStatus.js +13 -0
- package/dist/components/loading/useAutoContinueWhenReady.d.ts +8 -0
- package/dist/components/loading/useAutoContinueWhenReady.d.ts.map +1 -0
- package/dist/components/loading/useAutoContinueWhenReady.js +25 -0
- package/dist/components/review/ReviewDiagnosticsPanel.d.ts +27 -0
- package/dist/components/review/ReviewDiagnosticsPanel.d.ts.map +1 -0
- package/dist/components/review/ReviewDiagnosticsPanel.js +475 -0
- package/dist/components/review/ReviewScreen.d.ts +34 -0
- package/dist/components/review/ReviewScreen.d.ts.map +1 -0
- package/dist/components/review/ReviewScreen.js +91 -0
- package/dist/components/ring/RingFailureScreen.d.ts +41 -0
- package/dist/components/ring/RingFailureScreen.d.ts.map +1 -0
- package/dist/components/ring/RingFailureScreen.js +384 -0
- package/dist/components/ring/RingFinishingScreen.d.ts +27 -0
- package/dist/components/ring/RingFinishingScreen.d.ts.map +1 -0
- package/dist/components/ring/RingFinishingScreen.js +184 -0
- package/dist/components/ring/RingSuccessScreen.d.ts +33 -0
- package/dist/components/ring/RingSuccessScreen.d.ts.map +1 -0
- package/dist/components/ring/RingSuccessScreen.js +185 -0
- package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts +17 -0
- package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts.map +1 -0
- package/dist/components/selfie/FaceCaptureGuideOverlay.js +39 -0
- package/dist/components/selfie/SelfieCameraFeed.d.ts +8 -0
- package/dist/components/selfie/SelfieCameraFeed.d.ts.map +1 -0
- package/dist/components/selfie/SelfieCameraFeed.js +16 -0
- package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts +15 -0
- package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts.map +1 -0
- package/dist/components/selfie/SelfieCaptureAnimatedMask.js +111 -0
- package/dist/components/selfie/SelfieCaptureLoadingGraphic.d.ts +4 -0
- package/dist/components/selfie/SelfieCaptureLoadingGraphic.d.ts.map +1 -0
- package/dist/components/selfie/SelfieCaptureLoadingGraphic.js +28 -0
- package/dist/components/selfie/SelfieCaptureSurface.d.ts +126 -0
- package/dist/components/selfie/SelfieCaptureSurface.d.ts.map +1 -0
- package/dist/components/selfie/SelfieCaptureSurface.js +248 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlay.d.ts +136 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlay.d.ts.map +1 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlay.js +13 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts +3 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.js +181 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayLegacy.d.ts +3 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayLegacy.d.ts.map +1 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayLegacy.js +67 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayRing.d.ts +3 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayRing.d.ts.map +1 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayRing.js +265 -0
- package/dist/components/videoId/VideoIdCaptureGuides.d.ts +42 -0
- package/dist/components/videoId/VideoIdCaptureGuides.d.ts.map +1 -0
- package/dist/components/videoId/VideoIdCaptureGuides.js +173 -0
- package/dist/flows/AuthStateContext.d.ts +33 -0
- package/dist/flows/AuthStateContext.d.ts.map +1 -0
- package/dist/flows/AuthStateContext.js +47 -0
- package/dist/flows/CompositeWizard.d.ts +76 -0
- package/dist/flows/CompositeWizard.d.ts.map +1 -0
- package/dist/flows/CompositeWizard.js +200 -0
- package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts +28 -0
- package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts.map +1 -0
- package/dist/flows/CustomerBiometricsEnrollmentFlow.js +138 -0
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts +47 -0
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts.map +1 -0
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.js +231 -0
- package/dist/flows/CustomerIdentificationFlow.d.ts +4 -0
- package/dist/flows/CustomerIdentificationFlow.d.ts.map +1 -0
- package/dist/flows/CustomerIdentificationFlow.js +11 -0
- package/dist/flows/CustomerVerificationFlow.d.ts +9 -0
- package/dist/flows/CustomerVerificationFlow.d.ts.map +1 -0
- package/dist/flows/CustomerVerificationFlow.js +17 -0
- package/dist/flows/DocumentCaptureFlow.d.ts +23 -0
- package/dist/flows/DocumentCaptureFlow.d.ts.map +1 -0
- package/dist/flows/DocumentCaptureFlow.js +116 -0
- package/dist/flows/FaceValidationFlow.d.ts +12 -0
- package/dist/flows/FaceValidationFlow.d.ts.map +1 -0
- package/dist/flows/FaceValidationFlow.js +53 -0
- package/dist/flows/FlowChassis.d.ts +39 -0
- package/dist/flows/FlowChassis.d.ts.map +1 -0
- package/dist/flows/FlowChassis.js +69 -0
- package/dist/flows/IdAndFaceValidationFlow.d.ts +36 -0
- package/dist/flows/IdAndFaceValidationFlow.d.ts.map +1 -0
- package/dist/flows/IdAndFaceValidationFlow.js +168 -0
- package/dist/flows/IdValidationFlow.d.ts +29 -0
- package/dist/flows/IdValidationFlow.d.ts.map +1 -0
- package/dist/flows/IdValidationFlow.js +106 -0
- package/dist/flows/OrbStatusScreen.d.ts +14 -0
- package/dist/flows/OrbStatusScreen.d.ts.map +1 -0
- package/dist/flows/OrbStatusScreen.js +60 -0
- package/dist/flows/RemoteDiagnosticsMount.d.ts +6 -0
- package/dist/flows/RemoteDiagnosticsMount.d.ts.map +1 -0
- package/dist/flows/RemoteDiagnosticsMount.js +57 -0
- package/dist/flows/SignatureKYCFlow.d.ts +33 -0
- package/dist/flows/SignatureKYCFlow.d.ts.map +1 -0
- package/dist/flows/SignatureKYCFlow.js +228 -0
- package/dist/flows/SubmissionProvider.d.ts +40 -0
- package/dist/flows/SubmissionProvider.d.ts.map +1 -0
- package/dist/flows/SubmissionProvider.js +136 -0
- package/dist/flows/SubmissionSuccess.d.ts +48 -0
- package/dist/flows/SubmissionSuccess.d.ts.map +1 -0
- package/dist/flows/SubmissionSuccess.js +488 -0
- package/dist/flows/VideoIdValidationFlow.d.ts +61 -0
- package/dist/flows/VideoIdValidationFlow.d.ts.map +1 -0
- package/dist/flows/VideoIdValidationFlow.js +171 -0
- package/dist/flows/additionalDocuments.d.ts +5 -0
- package/dist/flows/additionalDocuments.d.ts.map +1 -0
- package/dist/flows/additionalDocuments.js +26 -0
- package/dist/flows/artifacts.d.ts +8 -0
- package/dist/flows/artifacts.d.ts.map +1 -0
- package/dist/flows/artifacts.js +80 -0
- package/dist/flows/customerMatch/CustomerMatchCapture.d.ts +53 -0
- package/dist/flows/customerMatch/CustomerMatchCapture.d.ts.map +1 -0
- package/dist/flows/customerMatch/CustomerMatchCapture.js +211 -0
- package/dist/flows/customerMatch/CustomerMatchFlow.d.ts +94 -0
- package/dist/flows/customerMatch/CustomerMatchFlow.d.ts.map +1 -0
- package/dist/flows/customerMatch/CustomerMatchFlow.js +209 -0
- package/dist/flows/customerMatch/adapters.d.ts +34 -0
- package/dist/flows/customerMatch/adapters.d.ts.map +1 -0
- package/dist/flows/customerMatch/adapters.js +63 -0
- package/dist/flows/customerMatch/identificationReducer.d.ts +34 -0
- package/dist/flows/customerMatch/identificationReducer.d.ts.map +1 -0
- package/dist/flows/customerMatch/identificationReducer.js +75 -0
- package/dist/flows/customerMatch/verificationReducer.d.ts +34 -0
- package/dist/flows/customerMatch/verificationReducer.d.ts.map +1 -0
- package/dist/flows/customerMatch/verificationReducer.js +77 -0
- package/dist/flows/documentCapture.d.ts +5 -0
- package/dist/flows/documentCapture.d.ts.map +1 -0
- package/dist/flows/documentCapture.js +8 -0
- package/dist/flows/jsonHighlight.d.ts +19 -0
- package/dist/flows/jsonHighlight.d.ts.map +1 -0
- package/dist/flows/jsonHighlight.js +90 -0
- package/dist/flows/overlays.d.ts +91 -0
- package/dist/flows/overlays.d.ts.map +1 -0
- package/dist/flows/overlays.js +150 -0
- package/dist/flows/ringIntroImplications.d.ts +30 -0
- package/dist/flows/ringIntroImplications.d.ts.map +1 -0
- package/dist/flows/ringIntroImplications.js +58 -0
- package/dist/flows/ringScreens.d.ts +27 -0
- package/dist/flows/ringScreens.d.ts.map +1 -0
- package/dist/flows/ringScreens.js +18 -0
- package/dist/flows/sequencer.d.ts +12 -0
- package/dist/flows/sequencer.d.ts.map +1 -0
- package/dist/flows/sequencer.js +18 -0
- package/dist/flows/sharedCamera.d.ts +23 -0
- package/dist/flows/sharedCamera.d.ts.map +1 -0
- package/dist/flows/sharedCamera.js +64 -0
- package/dist/flows/signatureStep.d.ts +25 -0
- package/dist/flows/signatureStep.d.ts.map +1 -0
- package/dist/flows/signatureStep.js +99 -0
- package/dist/flows/types.d.ts +106 -0
- package/dist/flows/types.d.ts.map +1 -0
- package/dist/flows/types.js +1 -0
- package/dist/flows/useGeolocation.d.ts +24 -0
- package/dist/flows/useGeolocation.d.ts.map +1 -0
- package/dist/flows/useGeolocation.js +82 -0
- package/dist/flows/useShowSuccessScreen.d.ts +3 -0
- package/dist/flows/useShowSuccessScreen.d.ts.map +1 -0
- package/dist/flows/useShowSuccessScreen.js +51 -0
- package/dist/flows/useTimeout.d.ts +7 -0
- package/dist/flows/useTimeout.d.ts.map +1 -0
- package/dist/flows/useTimeout.js +68 -0
- package/dist/flows/videoIdSteps.d.ts +33 -0
- package/dist/flows/videoIdSteps.d.ts.map +1 -0
- package/dist/flows/videoIdSteps.js +54 -0
- package/dist/guidance/selfieStrings.d.ts +18 -0
- package/dist/guidance/selfieStrings.d.ts.map +1 -0
- package/dist/guidance/selfieStrings.js +97 -0
- package/dist/guidance/strings.d.ts +4 -0
- package/dist/guidance/strings.d.ts.map +1 -0
- package/dist/guidance/strings.js +43 -0
- package/dist/guidance/videoIdStrings.d.ts +23 -0
- package/dist/guidance/videoIdStrings.d.ts.map +1 -0
- package/dist/guidance/videoIdStrings.js +23 -0
- package/dist/i18n/index.d.ts +1221 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +92 -0
- package/dist/i18n/locales/de.d.ts +149 -0
- package/dist/i18n/locales/de.d.ts.map +1 -0
- package/dist/i18n/locales/de.js +147 -0
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.d.ts.map +1 -0
- package/dist/i18n/locales/en.js +1 -0
- package/dist/i18n/locales/es.d.ts +149 -0
- package/dist/i18n/locales/es.d.ts.map +1 -0
- package/dist/i18n/locales/es.js +147 -0
- package/dist/i18n/locales/fr.d.ts +149 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -0
- package/dist/i18n/locales/fr.js +147 -0
- package/dist/i18n/locales/it.d.ts +149 -0
- package/dist/i18n/locales/it.d.ts.map +1 -0
- package/dist/i18n/locales/it.js +147 -0
- package/dist/i18n/locales/ja.d.ts +149 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -0
- package/dist/i18n/locales/ja.js +147 -0
- package/dist/i18n/locales/pt.d.ts +149 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -0
- package/dist/i18n/locales/pt.js +147 -0
- package/dist/i18n/locales/ru.d.ts +149 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -0
- package/dist/i18n/locales/ru.js +147 -0
- package/dist/i18n/locales/zh.d.ts +149 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -0
- package/dist/i18n/locales/zh.js +147 -0
- package/dist/i18n/render.d.ts +3 -0
- package/dist/i18n/render.d.ts.map +1 -0
- package/dist/i18n/render.js +7 -0
- package/dist/index.d.ts +157 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +191 -0
- package/dist/layout/GuideLayoutContext.d.ts +24 -0
- package/dist/layout/GuideLayoutContext.d.ts.map +1 -0
- package/dist/layout/GuideLayoutContext.js +19 -0
- package/dist/layout/GuideOrientationContext.d.ts +16 -0
- package/dist/layout/GuideOrientationContext.d.ts.map +1 -0
- package/dist/layout/GuideOrientationContext.js +40 -0
- package/dist/layout/useResizeObserver.d.ts +11 -0
- package/dist/layout/useResizeObserver.d.ts.map +1 -0
- package/dist/layout/useResizeObserver.js +114 -0
- package/dist/testing/alignGlobals.d.ts +2 -0
- package/dist/testing/alignGlobals.d.ts.map +1 -0
- package/dist/testing/alignGlobals.js +25 -0
- package/dist/testing/buildDocumentState.d.ts +4 -0
- package/dist/testing/buildDocumentState.d.ts.map +1 -0
- package/dist/testing/buildDocumentState.js +19 -0
- package/dist/testing/buildSelfieState.d.ts +8 -0
- package/dist/testing/buildSelfieState.d.ts.map +1 -0
- package/dist/testing/buildSelfieState.js +84 -0
- package/dist/testing/buildSignatureState.d.ts +3 -0
- package/dist/testing/buildSignatureState.d.ts.map +1 -0
- package/dist/testing/buildSignatureState.js +12 -0
- package/dist/testing/buildState.d.ts +3 -0
- package/dist/testing/buildState.d.ts.map +1 -0
- package/dist/testing/buildState.js +34 -0
- package/dist/testing/buildVideoIdState.d.ts +3 -0
- package/dist/testing/buildVideoIdState.d.ts.map +1 -0
- package/dist/testing/buildVideoIdState.js +11 -0
- package/dist/testing/classNamesLeaves.d.ts +14 -0
- package/dist/testing/classNamesLeaves.d.ts.map +1 -0
- package/dist/testing/classNamesLeaves.js +144 -0
- package/dist/testing/fakeClient.d.ts +61 -0
- package/dist/testing/fakeClient.d.ts.map +1 -0
- package/dist/testing/fakeClient.js +142 -0
- package/dist/testing/fakeController.d.ts +18 -0
- package/dist/testing/fakeController.d.ts.map +1 -0
- package/dist/testing/fakeController.js +165 -0
- package/dist/testing/fakeDocumentController.d.ts +37 -0
- package/dist/testing/fakeDocumentController.d.ts.map +1 -0
- package/dist/testing/fakeDocumentController.js +104 -0
- package/dist/testing/fakeSelfieController.d.ts +15 -0
- package/dist/testing/fakeSelfieController.d.ts.map +1 -0
- package/dist/testing/fakeSelfieController.js +154 -0
- package/dist/testing/fakeSignatureController.d.ts +12 -0
- package/dist/testing/fakeSignatureController.d.ts.map +1 -0
- package/dist/testing/fakeSignatureController.js +58 -0
- package/dist/testing/fakeVideoIdController.d.ts +12 -0
- package/dist/testing/fakeVideoIdController.d.ts.map +1 -0
- package/dist/testing/fakeVideoIdController.js +50 -0
- package/dist/testing/index.d.ts +15 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +18 -0
- package/dist/testing/stubSignatureCanvas.d.ts +2 -0
- package/dist/testing/stubSignatureCanvas.d.ts.map +1 -0
- package/dist/testing/stubSignatureCanvas.js +26 -0
- package/dist/testing/stubVideoCaptureDom.d.ts +2 -0
- package/dist/testing/stubVideoCaptureDom.d.ts.map +1 -0
- package/dist/testing/stubVideoCaptureDom.js +36 -0
- package/dist/theme/color.d.ts +14 -0
- package/dist/theme/color.d.ts.map +1 -0
- package/dist/theme/color.js +1 -0
- package/dist/theme/index.d.ts +405 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +230 -0
- package/dist/utils/canvas.d.ts +3 -0
- package/dist/utils/canvas.d.ts.map +1 -0
- package/dist/utils/canvas.js +16 -0
- package/dist/utils/cdn.d.ts +2 -0
- package/dist/utils/cdn.d.ts.map +1 -0
- package/dist/utils/cdn.js +3 -0
- package/dist/utils/cropping.d.ts +4 -0
- package/dist/utils/cropping.d.ts.map +1 -0
- package/dist/utils/cropping.js +11 -0
- package/dist/utils/flowClock.d.ts +6 -0
- package/dist/utils/flowClock.d.ts.map +1 -0
- package/dist/utils/flowClock.js +22 -0
- package/dist/utils/isMobile.d.ts +3 -0
- package/dist/utils/isMobile.d.ts.map +1 -0
- package/dist/utils/isMobile.js +35 -0
- package/dist/utils/loadProgressHooks.d.ts +25 -0
- package/dist/utils/loadProgressHooks.d.ts.map +1 -0
- package/dist/utils/loadProgressHooks.js +79 -0
- package/dist/utils/logger.d.ts +18 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +38 -0
- package/dist/utils/merge.d.ts +3 -0
- package/dist/utils/merge.d.ts.map +1 -0
- package/dist/utils/merge.js +23 -0
- package/dist/utils/signaturePadStrokeGuard.d.ts +16 -0
- package/dist/utils/signaturePadStrokeGuard.d.ts.map +1 -0
- package/dist/utils/signaturePadStrokeGuard.js +70 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +3 -0
- package/package.json +71 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type ClientState, type IdmissionClient, type LivenessCheckResult, type LivenessOptions, type SubmissionArtifacts, type SubmissionOptions, type SubmissionResponse } from '@idmission/websdk-core/client';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a `SubmissionResponse` whose `verificationResultCode` drives the
|
|
4
|
+
* customer identification/verification reducers: `'46'` is identification's
|
|
5
|
+
* FOUND, `'00'` is verification's VERIFIED, anything else is a no-match. A
|
|
6
|
+
* `statusCode` other than `'000'` routes both reducers to ERROR instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildSubmissionResponse({ statusCode, statusMessage, errorData, verificationResult, verificationResultCode, }?: {
|
|
9
|
+
statusCode?: string;
|
|
10
|
+
statusMessage?: string;
|
|
11
|
+
errorData?: string;
|
|
12
|
+
verificationResult?: string;
|
|
13
|
+
verificationResultCode?: string;
|
|
14
|
+
}): SubmissionResponse;
|
|
15
|
+
/**
|
|
16
|
+
* The `{ ok: false, error }` arm of `IdmissionClient.checkLiveness` — a
|
|
17
|
+
* network/auth failure, or a `/live-check` that did not confirm a live face.
|
|
18
|
+
* The customer identification/verification gate counts both as the same kind
|
|
19
|
+
* of failed attempt, which is why one helper covers both and no response
|
|
20
|
+
* payload is modelled here.
|
|
21
|
+
*/
|
|
22
|
+
export declare function livenessRejectedResult(error?: Error): LivenessCheckResult;
|
|
23
|
+
export type FakeClientSubmitCall = {
|
|
24
|
+
artifacts: SubmissionArtifacts;
|
|
25
|
+
options: SubmissionOptions;
|
|
26
|
+
};
|
|
27
|
+
export type FakeIdmissionClient = IdmissionClient & {
|
|
28
|
+
submitCalls: FakeClientSubmitCall[];
|
|
29
|
+
livenessCalls: Array<{
|
|
30
|
+
imageDataUrl: string;
|
|
31
|
+
options?: LivenessOptions;
|
|
32
|
+
}>;
|
|
33
|
+
validateSessionCalls: number;
|
|
34
|
+
retrySessionCalls: number;
|
|
35
|
+
setState(partial: Partial<ClientState>): void;
|
|
36
|
+
rejectNextSubmit(error: Error): void;
|
|
37
|
+
/**
|
|
38
|
+
* Scripts the next N `submit` resolutions, consumed FIFO. Once the queue
|
|
39
|
+
* drains, `submit` falls back to the fixed `response` the client was created
|
|
40
|
+
* with — so a test only has to script the calls it cares about. Flows that
|
|
41
|
+
* submit repeatedly (identification/verification) need this; single-submit
|
|
42
|
+
* wizard flows do not.
|
|
43
|
+
*/
|
|
44
|
+
queueResponses(...responses: SubmissionResponse[]): void;
|
|
45
|
+
/**
|
|
46
|
+
* Makes the next `submit()` resolve `null` — the real client's hand-off
|
|
47
|
+
* path, where `config.onSubmit` took the built request instead of posting
|
|
48
|
+
* it. Distinct from an error: nothing went wrong, there is simply no
|
|
49
|
+
* response to classify.
|
|
50
|
+
*/
|
|
51
|
+
queueSubmissionIntercepted(): void;
|
|
52
|
+
/** `queueResponses`' twin for `checkLiveness`; drains to an `ok` result. */
|
|
53
|
+
queueLivenessResults(...results: LivenessCheckResult[]): void;
|
|
54
|
+
};
|
|
55
|
+
export declare function createFakeIdmissionClient({ response, sessionCheckState, canRefreshSession, submitError, }?: {
|
|
56
|
+
response?: SubmissionResponse;
|
|
57
|
+
sessionCheckState?: ClientState['session']['sessionCheckState'];
|
|
58
|
+
canRefreshSession?: boolean;
|
|
59
|
+
submitError?: Error;
|
|
60
|
+
}): FakeIdmissionClient;
|
|
61
|
+
//# sourceMappingURL=fakeClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fakeClient.d.ts","sourceRoot":"","sources":["../../src/testing/fakeClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAExB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAA;AAmCtC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,UAAkB,EAClB,aAAoB,EACpB,SAAc,EACd,kBAA+B,EAC/B,sBAAsB,GACvB,GAAE;IACD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAC3B,GAAG,kBAAkB,CAK1B;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,GAAE,KAA2C,GACjD,mBAAmB,CAErB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,mBAAmB,CAAA;IAC9B,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,WAAW,EAAE,oBAAoB,EAAE,CAAA;IACnC,aAAa,EAAE,KAAK,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,eAAe,CAAA;KAAE,CAAC,CAAA;IACzE,oBAAoB,EAAE,MAAM,CAAA;IAC5B,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAA;IAC7C,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACpC;;;;;;OAMG;IACH,cAAc,CAAC,GAAG,SAAS,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAA;IACxD;;;;;OAKG;IACH,0BAA0B,IAAI,IAAI,CAAA;IAClC,4EAA4E;IAC5E,oBAAoB,CAAC,GAAG,OAAO,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAA;CAC9D,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,QAA2B,EAC3B,iBAA4B,EAC5B,iBAAyB,EACzB,WAAW,GACZ,GAAE;IACD,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,iBAAiB,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAA;IAC/D,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAA;CACf,GAAG,mBAAmB,CAyF3B"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { SubmissionStatus, } from '@idmission/websdk-core/client';
|
|
2
|
+
const DEFAULT_RESPONSE = {
|
|
3
|
+
status: { statusCode: '000', statusMessage: 'OK' },
|
|
4
|
+
resultData: { verificationResult: 'Approved' },
|
|
5
|
+
};
|
|
6
|
+
const DEFAULT_LIVENESS_RESPONSE = {
|
|
7
|
+
status: { statusCode: '000', statusMessage: 'OK', errorData: '' },
|
|
8
|
+
resultData: {
|
|
9
|
+
uniqueRequestId: 'fake-liveness-request',
|
|
10
|
+
verificationResult: 'Approved',
|
|
11
|
+
verificationResultId: 0,
|
|
12
|
+
verificationResultCode: 'APPROVED',
|
|
13
|
+
verificationResultDetails: {
|
|
14
|
+
Decision_LiveCheck: {
|
|
15
|
+
DecisionResult: 'Approved',
|
|
16
|
+
DecisionStateCode: '000',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
realScore: 1,
|
|
20
|
+
eyeCovering: 'false',
|
|
21
|
+
eyeCoveringScore: 0,
|
|
22
|
+
faceMask: 'false',
|
|
23
|
+
faceMaskScore: 0,
|
|
24
|
+
headCovering: 'false',
|
|
25
|
+
headCoveringScore: 0,
|
|
26
|
+
cellPhone: 'false',
|
|
27
|
+
cellPhoneScore: 0,
|
|
28
|
+
estimatedAge: 0,
|
|
29
|
+
livenessToken: 'fake-liveness-token',
|
|
30
|
+
},
|
|
31
|
+
additionalData: { liveFaceDetectionFlag: 'true' },
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Builds a `SubmissionResponse` whose `verificationResultCode` drives the
|
|
35
|
+
* customer identification/verification reducers: `'46'` is identification's
|
|
36
|
+
* FOUND, `'00'` is verification's VERIFIED, anything else is a no-match. A
|
|
37
|
+
* `statusCode` other than `'000'` routes both reducers to ERROR instead.
|
|
38
|
+
*/
|
|
39
|
+
export function buildSubmissionResponse({ statusCode = '000', statusMessage = 'OK', errorData = '', verificationResult = 'Approved', verificationResultCode, } = {}) {
|
|
40
|
+
return {
|
|
41
|
+
status: { statusCode, statusMessage, errorData },
|
|
42
|
+
resultData: { verificationResult, verificationResultCode },
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The `{ ok: false, error }` arm of `IdmissionClient.checkLiveness` — a
|
|
47
|
+
* network/auth failure, or a `/live-check` that did not confirm a live face.
|
|
48
|
+
* The customer identification/verification gate counts both as the same kind
|
|
49
|
+
* of failed attempt, which is why one helper covers both and no response
|
|
50
|
+
* payload is modelled here.
|
|
51
|
+
*/
|
|
52
|
+
export function livenessRejectedResult(error = new Error('Live Face Not Detected')) {
|
|
53
|
+
return { ok: false, error };
|
|
54
|
+
}
|
|
55
|
+
export function createFakeIdmissionClient({ response = DEFAULT_RESPONSE, sessionCheckState = 'PASSED', canRefreshSession = false, submitError, } = {}) {
|
|
56
|
+
let state = {
|
|
57
|
+
session: {
|
|
58
|
+
authUrl: 'http://localhost:10000',
|
|
59
|
+
sessionId: 'fake-session',
|
|
60
|
+
sessionCheckState,
|
|
61
|
+
canRefreshSession,
|
|
62
|
+
},
|
|
63
|
+
submissionStatus: SubmissionStatus.READY,
|
|
64
|
+
};
|
|
65
|
+
const listeners = new Set();
|
|
66
|
+
let queuedSubmitError = submitError ?? null;
|
|
67
|
+
let interceptNextSubmit = false;
|
|
68
|
+
const queuedResponses = [];
|
|
69
|
+
const queuedLivenessResults = [];
|
|
70
|
+
function setState(partial) {
|
|
71
|
+
state = Object.freeze({ ...state, ...partial });
|
|
72
|
+
for (const listener of listeners)
|
|
73
|
+
listener(state);
|
|
74
|
+
}
|
|
75
|
+
const fake = {
|
|
76
|
+
submitCalls: [],
|
|
77
|
+
livenessCalls: [],
|
|
78
|
+
validateSessionCalls: 0,
|
|
79
|
+
retrySessionCalls: 0,
|
|
80
|
+
setState,
|
|
81
|
+
rejectNextSubmit(error) {
|
|
82
|
+
queuedSubmitError = error;
|
|
83
|
+
},
|
|
84
|
+
queueSubmissionIntercepted() {
|
|
85
|
+
interceptNextSubmit = true;
|
|
86
|
+
},
|
|
87
|
+
queueResponses(...responses) {
|
|
88
|
+
queuedResponses.push(...responses);
|
|
89
|
+
},
|
|
90
|
+
queueLivenessResults(...results) {
|
|
91
|
+
queuedLivenessResults.push(...results);
|
|
92
|
+
},
|
|
93
|
+
getState: () => state,
|
|
94
|
+
subscribe(listener) {
|
|
95
|
+
listeners.add(listener);
|
|
96
|
+
return () => listeners.delete(listener);
|
|
97
|
+
},
|
|
98
|
+
async validateSession() {
|
|
99
|
+
fake.validateSessionCalls += 1;
|
|
100
|
+
return state.session.sessionCheckState;
|
|
101
|
+
},
|
|
102
|
+
async retrySession() {
|
|
103
|
+
fake.retrySessionCalls += 1;
|
|
104
|
+
return state.session.sessionCheckState;
|
|
105
|
+
},
|
|
106
|
+
async submit(artifacts, options) {
|
|
107
|
+
fake.submitCalls.push({ artifacts, options });
|
|
108
|
+
setState({
|
|
109
|
+
submissionStatus: SubmissionStatus.SUBMITTING,
|
|
110
|
+
submissionError: undefined,
|
|
111
|
+
});
|
|
112
|
+
await Promise.resolve();
|
|
113
|
+
if (queuedSubmitError) {
|
|
114
|
+
const error = queuedSubmitError;
|
|
115
|
+
queuedSubmitError = null;
|
|
116
|
+
setState({
|
|
117
|
+
submissionStatus: SubmissionStatus.FAILED,
|
|
118
|
+
submissionError: error,
|
|
119
|
+
});
|
|
120
|
+
throw error;
|
|
121
|
+
}
|
|
122
|
+
setState({ submissionStatus: SubmissionStatus.SUBMITTED });
|
|
123
|
+
if (interceptNextSubmit) {
|
|
124
|
+
interceptNextSubmit = false;
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
return queuedResponses.shift() ?? response;
|
|
128
|
+
},
|
|
129
|
+
async checkLiveness(imageDataUrl, options) {
|
|
130
|
+
fake.livenessCalls.push({ imageDataUrl, options });
|
|
131
|
+
const result = queuedLivenessResults.shift() ?? {
|
|
132
|
+
ok: true,
|
|
133
|
+
response: DEFAULT_LIVENESS_RESPONSE,
|
|
134
|
+
};
|
|
135
|
+
return result;
|
|
136
|
+
},
|
|
137
|
+
async uploadDocument() {
|
|
138
|
+
return 'urn:documentsv1:fake';
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
return fake;
|
|
142
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type IdCaptureController, type IdCaptureControllerState } from '@idmission/websdk-core/idCapture';
|
|
2
|
+
import type { SubmissionArtifacts } from '@idmission/websdk-core/client';
|
|
3
|
+
export type FakeControllerCall = {
|
|
4
|
+
method: string;
|
|
5
|
+
args: unknown[];
|
|
6
|
+
};
|
|
7
|
+
export declare const CANNED_ARTIFACTS: SubmissionArtifacts;
|
|
8
|
+
export type FakeIdCaptureController = IdCaptureController & {
|
|
9
|
+
setState(partial: Partial<IdCaptureControllerState>): void;
|
|
10
|
+
attachedVideo: HTMLVideoElement | null;
|
|
11
|
+
detachCount: number;
|
|
12
|
+
calls: FakeControllerCall[];
|
|
13
|
+
rejectNextAttach(error: unknown): void;
|
|
14
|
+
resolveSubmitWith(response: unknown): void;
|
|
15
|
+
rejectSubmitWith(error: unknown): void;
|
|
16
|
+
};
|
|
17
|
+
export declare function createFakeIdCaptureController(initial?: Partial<IdCaptureControllerState>): FakeIdCaptureController;
|
|
18
|
+
//# sourceMappingURL=fakeController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fakeController.d.ts","sourceRoot":"","sources":["../../src/testing/fakeController.ts"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAsB,MAAM,+BAA+B,CAAA;AAG5F,MAAM,MAAM,kBAAkB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,CAAA;AAQpE,eAAO,MAAM,gBAAgB,EAAE,mBAM9B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAA;IAC1D,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IACtC,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAA;IAC1C,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CACvC,CAAA;AAQD,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE,OAAO,CAAC,wBAAwB,CAAM,GAC9C,uBAAuB,CAoJzB"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// Scriptable test/Storybook double for `createIdCaptureController`
|
|
2
|
+
// (@idmission/websdk-core/idCapture). Two contract points MUST match the
|
|
3
|
+
// real controller (controller.ts) because Task 6's useSyncExternalStore
|
|
4
|
+
// binding and Tasks 6/12/13's tests/stories depend on them:
|
|
5
|
+
//
|
|
6
|
+
// 1. Referentially stable snapshots (controller.ts:446-454,1602-1611):
|
|
7
|
+
// getState() returns the identical object between state changes; every
|
|
8
|
+
// setState produces a NEW snapshot object and only then notifies
|
|
9
|
+
// listeners.
|
|
10
|
+
// 2. Dual-truth attach rejection (controller.ts:1454-1466): a failed
|
|
11
|
+
// attach() BOTH rejects the returned promise with a `CaptureAttachError`
|
|
12
|
+
// AND lands the store in `{ phase: 'error', error }` holding that same
|
|
13
|
+
// error's `.captureError` — one truth in both places.
|
|
14
|
+
//
|
|
15
|
+
// Submit control (resolveSubmitWith/rejectSubmitWith) additionally mirrors
|
|
16
|
+
// the real submit bridge: the double-submit guard (controller.ts:1573-1583,
|
|
17
|
+
// same promise returned while one is in flight), the submitting/idle
|
|
18
|
+
// lifecycle (controller.ts:1550,1568), and the same dual-truth rejection as
|
|
19
|
+
// attach — a failed submit rejects with a `CaptureAttachError` whose
|
|
20
|
+
// `.captureError` is the object stored on `state.error`
|
|
21
|
+
// (controller.ts:1559-1570).
|
|
22
|
+
import { CaptureAttachError, } from '@idmission/websdk-core/idCapture';
|
|
23
|
+
import { buildControllerState } from './buildState';
|
|
24
|
+
// Canned return value for the fake's collectArtifacts() — a fixed,
|
|
25
|
+
// referentially-stable SubmissionArtifacts object (tests can assert on it by
|
|
26
|
+
// identity, same spirit as attachedVideo). No scripting seam is needed here
|
|
27
|
+
// (unlike rejectNextAttach/resolveSubmitWith): collectArtifacts is a pure,
|
|
28
|
+
// synchronous read on the real controller (controller.ts:1301-1302) with
|
|
29
|
+
// nothing to fail or defer.
|
|
30
|
+
export const CANNED_ARTIFACTS = {
|
|
31
|
+
id: {
|
|
32
|
+
frontImage: 'data:image/jpeg;base64,front-canned',
|
|
33
|
+
frontCapturedAt: '2024-01-01T00:00:00.000Z',
|
|
34
|
+
},
|
|
35
|
+
meta: { captureAttempts: { front: [] } },
|
|
36
|
+
};
|
|
37
|
+
function toAttachError(error) {
|
|
38
|
+
return error instanceof CaptureAttachError
|
|
39
|
+
? error
|
|
40
|
+
: new CaptureAttachError(error);
|
|
41
|
+
}
|
|
42
|
+
export function createFakeIdCaptureController(initial = {}) {
|
|
43
|
+
// Last published snapshot — mutated only by setState(), exactly like the
|
|
44
|
+
// real controller's `snapshot` cache (controller.ts:454,469).
|
|
45
|
+
let state = Object.freeze(buildControllerState(initial));
|
|
46
|
+
const listeners = new Set();
|
|
47
|
+
let queuedAttachRejection = null;
|
|
48
|
+
let pendingSubmit = null;
|
|
49
|
+
let inFlightSubmit = null;
|
|
50
|
+
function setState(partial) {
|
|
51
|
+
state = Object.freeze({ ...state, ...partial });
|
|
52
|
+
for (const cb of [...listeners])
|
|
53
|
+
cb(state);
|
|
54
|
+
}
|
|
55
|
+
function recordCall(method, args) {
|
|
56
|
+
fake.calls.push({ method, args });
|
|
57
|
+
}
|
|
58
|
+
const fake = {
|
|
59
|
+
attachedVideo: null,
|
|
60
|
+
detachCount: 0,
|
|
61
|
+
calls: [],
|
|
62
|
+
async attach(videoEl) {
|
|
63
|
+
fake.attachedVideo = videoEl;
|
|
64
|
+
if (queuedAttachRejection) {
|
|
65
|
+
const { error } = queuedAttachRejection;
|
|
66
|
+
queuedAttachRejection = null;
|
|
67
|
+
const attachError = toAttachError(error);
|
|
68
|
+
// Dual truth: the SAME CaptureError the promise rejection carries
|
|
69
|
+
// (attachError.captureError) is what lands on state.error.
|
|
70
|
+
setState({ phase: 'error', error: attachError.captureError });
|
|
71
|
+
throw attachError;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
detach() {
|
|
75
|
+
fake.attachedVideo = null;
|
|
76
|
+
fake.detachCount += 1;
|
|
77
|
+
// The real detach() resets in-flight submit state (controller.ts:1498,
|
|
78
|
+
// `inFlightSubmit = null` inside :1472-1507). The fake also drops any
|
|
79
|
+
// queued attach rejection and pending submit resolvers so a
|
|
80
|
+
// detach -> re-attach story/test never inherits stale scripting.
|
|
81
|
+
queuedAttachRejection = null;
|
|
82
|
+
pendingSubmit = null;
|
|
83
|
+
inFlightSubmit = null;
|
|
84
|
+
},
|
|
85
|
+
getState() {
|
|
86
|
+
return state;
|
|
87
|
+
},
|
|
88
|
+
collectArtifacts() {
|
|
89
|
+
recordCall('collectArtifacts', []);
|
|
90
|
+
return CANNED_ARTIFACTS;
|
|
91
|
+
},
|
|
92
|
+
subscribe(cb) {
|
|
93
|
+
listeners.add(cb);
|
|
94
|
+
return () => {
|
|
95
|
+
listeners.delete(cb);
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
setState,
|
|
99
|
+
rejectNextAttach(error) {
|
|
100
|
+
queuedAttachRejection = { error };
|
|
101
|
+
},
|
|
102
|
+
resolveSubmitWith(response) {
|
|
103
|
+
if (!pendingSubmit)
|
|
104
|
+
return;
|
|
105
|
+
const { resolve } = pendingSubmit;
|
|
106
|
+
pendingSubmit = null;
|
|
107
|
+
setState({ submission: 'submitted' });
|
|
108
|
+
resolve(response);
|
|
109
|
+
},
|
|
110
|
+
rejectSubmitWith(error) {
|
|
111
|
+
if (!pendingSubmit)
|
|
112
|
+
return;
|
|
113
|
+
const { reject } = pendingSubmit;
|
|
114
|
+
pendingSubmit = null;
|
|
115
|
+
// Dual truth, mirroring the real doSubmit() catch (controller.ts:
|
|
116
|
+
// 1559-1570): the promise ALWAYS rejects with a CaptureAttachError
|
|
117
|
+
// whose `.captureError` is the SAME object stored on `state.error`.
|
|
118
|
+
const attachError = toAttachError(error);
|
|
119
|
+
setState({ submission: 'idle', error: attachError.captureError });
|
|
120
|
+
reject(attachError);
|
|
121
|
+
},
|
|
122
|
+
actions: {
|
|
123
|
+
start() {
|
|
124
|
+
recordCall('start', []);
|
|
125
|
+
},
|
|
126
|
+
confirmFlip() {
|
|
127
|
+
recordCall('confirmFlip', []);
|
|
128
|
+
},
|
|
129
|
+
retake() {
|
|
130
|
+
recordCall('retake', []);
|
|
131
|
+
},
|
|
132
|
+
async captureManually(imageDataUrl, options) {
|
|
133
|
+
// Both arguments are recorded: the capture MODE is what separates a
|
|
134
|
+
// fallback capture from an upload in the submission metadata, so a
|
|
135
|
+
// test that only saw the image could not tell them apart.
|
|
136
|
+
recordCall('captureManually', [imageDataUrl, options]);
|
|
137
|
+
},
|
|
138
|
+
overrideWrongDocumentType() {
|
|
139
|
+
recordCall('overrideWrongDocumentType', []);
|
|
140
|
+
},
|
|
141
|
+
submit() {
|
|
142
|
+
recordCall('submit', []);
|
|
143
|
+
// Double-submit guard (controller.ts:1573-1583): a submit already in
|
|
144
|
+
// flight returns the SAME promise instead of arming a new deferred.
|
|
145
|
+
if (inFlightSubmit)
|
|
146
|
+
return inFlightSubmit;
|
|
147
|
+
setState({ submission: 'submitting' });
|
|
148
|
+
const promise = new Promise((resolve, reject) => {
|
|
149
|
+
pendingSubmit = { resolve, reject };
|
|
150
|
+
}).finally(() => {
|
|
151
|
+
inFlightSubmit = null;
|
|
152
|
+
});
|
|
153
|
+
inFlightSubmit = promise;
|
|
154
|
+
return promise;
|
|
155
|
+
},
|
|
156
|
+
async retry() {
|
|
157
|
+
recordCall('retry', []);
|
|
158
|
+
},
|
|
159
|
+
async requestCamera() {
|
|
160
|
+
recordCall('requestCamera', []);
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
return fake;
|
|
165
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { SubmissionArtifacts } from '@idmission/websdk-core/client';
|
|
2
|
+
import { type DocumentCaptureController, type DocumentCaptureControllerState } from '@idmission/websdk-core/documentCapture';
|
|
3
|
+
export type FakeDocumentControllerCall = {
|
|
4
|
+
method: string;
|
|
5
|
+
args: unknown[];
|
|
6
|
+
};
|
|
7
|
+
export type FakeDocumentCaptureController = DocumentCaptureController & {
|
|
8
|
+
calls: FakeDocumentControllerCall[];
|
|
9
|
+
setState(state: Partial<DocumentCaptureControllerState>): void;
|
|
10
|
+
/** The element handed to the most recent `attach()`, or null after detach. */
|
|
11
|
+
readonly attachedVideo: HTMLVideoElement | null;
|
|
12
|
+
};
|
|
13
|
+
export type FakeDocumentControllerOptions = {
|
|
14
|
+
/** Every upload rejects, so the view lands on the retry-upload branch. */
|
|
15
|
+
uploadFails?: boolean;
|
|
16
|
+
/** Blob handed back by `capture()`. Defaults to a tiny JPEG stand-in. */
|
|
17
|
+
capturedContent?: Blob;
|
|
18
|
+
/** Object URL recorded for the captured blob; drives the preview `<img>`. */
|
|
19
|
+
capturedContentUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Reported once the camera is ready. Defaults to true because document
|
|
22
|
+
* capture prefers the rear camera (`preferFrontFacingCamera` defaults to
|
|
23
|
+
* false), and a rear feed must not be mirrored.
|
|
24
|
+
*/
|
|
25
|
+
isRearFacing?: boolean;
|
|
26
|
+
artifacts?: SubmissionArtifacts;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Unlike the other fakes in this directory, this one drives the REAL reducer
|
|
30
|
+
* (`reduceDocumentCapture`) rather than only recording calls. Document capture
|
|
31
|
+
* has no ML and no guidance, so its whole observable behaviour is the reducer —
|
|
32
|
+
* a call-recording-only fake would force every view test and story to hand-roll
|
|
33
|
+
* the transitions, and they would drift from the real ones. Camera acquisition
|
|
34
|
+
* and the network upload are still faked; nothing here touches a device.
|
|
35
|
+
*/
|
|
36
|
+
export declare function createFakeDocumentCaptureController(initialState: DocumentCaptureControllerState, options?: FakeDocumentControllerOptions): FakeDocumentCaptureController;
|
|
37
|
+
//# sourceMappingURL=fakeDocumentController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fakeDocumentController.d.ts","sourceRoot":"","sources":["../../src/testing/fakeDocumentController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACpC,MAAM,wCAAwC,CAAA;AAE/C,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACtE,KAAK,EAAE,0BAA0B,EAAE,CAAA;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,8BAA8B,CAAC,GAAG,IAAI,CAAA;IAC9D,8EAA8E;IAC9E,QAAQ,CAAC,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,yEAAyE;IACzE,eAAe,CAAC,EAAE,IAAI,CAAA;IACtB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,mBAAmB,CAAA;CAChC,CAAA;AAKD;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CACjD,YAAY,EAAE,8BAA8B,EAC5C,OAAO,GAAE,6BAAkC,GAC1C,6BAA6B,CAsG/B"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { reduceDocumentCapture, } from '@idmission/websdk-core/documentCapture';
|
|
2
|
+
const DEFAULT_CONTENT_URL = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==';
|
|
3
|
+
/**
|
|
4
|
+
* Unlike the other fakes in this directory, this one drives the REAL reducer
|
|
5
|
+
* (`reduceDocumentCapture`) rather than only recording calls. Document capture
|
|
6
|
+
* has no ML and no guidance, so its whole observable behaviour is the reducer —
|
|
7
|
+
* a call-recording-only fake would force every view test and story to hand-roll
|
|
8
|
+
* the transitions, and they would drift from the real ones. Camera acquisition
|
|
9
|
+
* and the network upload are still faked; nothing here touches a device.
|
|
10
|
+
*/
|
|
11
|
+
export function createFakeDocumentCaptureController(initialState, options = {}) {
|
|
12
|
+
const { uploadFails = false, capturedContent = new Blob(['fake-frame'], { type: 'image/jpeg' }), capturedContentUrl = DEFAULT_CONTENT_URL, isRearFacing = true, artifacts = {}, } = options;
|
|
13
|
+
let state = initialState;
|
|
14
|
+
let uploadCounter = 0;
|
|
15
|
+
// Mirrors the real controller's disposal contract so tests written against
|
|
16
|
+
// the fake constrain the same behaviour: attach revives, detach does not
|
|
17
|
+
// clear subscriptions it does not own.
|
|
18
|
+
let disposed = false;
|
|
19
|
+
let attachedVideo = null;
|
|
20
|
+
const listeners = new Set();
|
|
21
|
+
const calls = [];
|
|
22
|
+
function call(method, ...args) {
|
|
23
|
+
calls.push({ method, args });
|
|
24
|
+
}
|
|
25
|
+
function publish() {
|
|
26
|
+
listeners.forEach((listener) => listener(state));
|
|
27
|
+
}
|
|
28
|
+
function dispatch(event) {
|
|
29
|
+
state = reduceDocumentCapture(state, event);
|
|
30
|
+
publish();
|
|
31
|
+
}
|
|
32
|
+
const controller = {
|
|
33
|
+
calls,
|
|
34
|
+
get attachedVideo() {
|
|
35
|
+
return attachedVideo;
|
|
36
|
+
},
|
|
37
|
+
async attach(video) {
|
|
38
|
+
call('attach', video);
|
|
39
|
+
disposed = false;
|
|
40
|
+
attachedVideo = video;
|
|
41
|
+
dispatch({ type: 'cameraReady', isRearFacing });
|
|
42
|
+
},
|
|
43
|
+
detach() {
|
|
44
|
+
call('detach');
|
|
45
|
+
disposed = true;
|
|
46
|
+
attachedVideo = null;
|
|
47
|
+
},
|
|
48
|
+
getState: () => state,
|
|
49
|
+
subscribe(listener) {
|
|
50
|
+
listeners.add(listener);
|
|
51
|
+
return () => {
|
|
52
|
+
listeners.delete(listener);
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
collectArtifacts() {
|
|
56
|
+
call('collectArtifacts');
|
|
57
|
+
return artifacts;
|
|
58
|
+
},
|
|
59
|
+
setState(next) {
|
|
60
|
+
state = { ...state, ...next };
|
|
61
|
+
publish();
|
|
62
|
+
},
|
|
63
|
+
actions: {
|
|
64
|
+
async requestCamera() {
|
|
65
|
+
call('requestCamera');
|
|
66
|
+
dispatch({ type: 'cameraReady', isRearFacing });
|
|
67
|
+
},
|
|
68
|
+
async capture() {
|
|
69
|
+
call('capture');
|
|
70
|
+
if (disposed)
|
|
71
|
+
return;
|
|
72
|
+
dispatch({ type: 'captureRequested' });
|
|
73
|
+
dispatch({
|
|
74
|
+
type: 'captureCompleted',
|
|
75
|
+
content: capturedContent,
|
|
76
|
+
contentUrl: capturedContentUrl,
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
retry() {
|
|
80
|
+
call('retry');
|
|
81
|
+
dispatch({ type: 'retryCapture' });
|
|
82
|
+
},
|
|
83
|
+
async upload() {
|
|
84
|
+
call('upload');
|
|
85
|
+
if (disposed)
|
|
86
|
+
return;
|
|
87
|
+
const entry = state.documents[state.currentIndex];
|
|
88
|
+
if (!entry?.content)
|
|
89
|
+
return;
|
|
90
|
+
dispatch({ type: 'uploadStarted' });
|
|
91
|
+
if (uploadFails) {
|
|
92
|
+
dispatch({ type: 'uploadFailed', message: 'fake upload failure' });
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
uploadCounter += 1;
|
|
96
|
+
dispatch({
|
|
97
|
+
type: 'uploadCompleted',
|
|
98
|
+
documentId: `fake-doc-${uploadCounter}`,
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
return controller;
|
|
104
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SelfieCaptureController, SelfieCaptureControllerState } from '@idmission/websdk-core/selfieCapture';
|
|
2
|
+
export type FakeSelfieControllerCall = {
|
|
3
|
+
method: string;
|
|
4
|
+
args: unknown[];
|
|
5
|
+
};
|
|
6
|
+
export type FakeSelfieCaptureController = SelfieCaptureController & {
|
|
7
|
+
setState(partial: Partial<SelfieCaptureControllerState>): void;
|
|
8
|
+
attachedVideo: HTMLVideoElement | null;
|
|
9
|
+
detachCount: number;
|
|
10
|
+
calls: FakeSelfieControllerCall[];
|
|
11
|
+
rejectNextAttach(error: unknown): void;
|
|
12
|
+
rejectNextRequestCamera(error: unknown): void;
|
|
13
|
+
};
|
|
14
|
+
export declare function createFakeSelfieCaptureController(initial?: Partial<SelfieCaptureControllerState>): FakeSelfieCaptureController;
|
|
15
|
+
//# sourceMappingURL=fakeSelfieController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fakeSelfieController.d.ts","sourceRoot":"","sources":["../../src/testing/fakeSelfieController.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,uBAAuB,EACvB,4BAA4B,EAE7B,MAAM,sCAAsC,CAAA;AAG7C,MAAM,MAAM,wBAAwB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,CAAA;AAE1E,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,GAAG;IAClE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAA;IAC9D,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,wBAAwB,EAAE,CAAA;IACjC,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IACtC,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CAC9C,CAAA;AAuBD,wBAAgB,iCAAiC,CAC/C,OAAO,GAAE,OAAO,CAAC,4BAA4B,CAAM,GAClD,2BAA2B,CA+H7B"}
|