@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,185 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Ported from sdk2/src/components/common/RingSuccessScreen.tsx. Visuals, copy, and
|
|
3
|
+
// animation timings are verbatim; only the imports are repointed at this
|
|
4
|
+
// package's equivalents and the default React import is dropped (this package
|
|
5
|
+
// uses the automatic JSX runtime). See RingFailureScreen.tsx for why the ring
|
|
6
|
+
// RESULT screens live here while their loading-side siblings live in ../loading.
|
|
7
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
8
|
+
import { styled, keyframes, useTheme } from 'styled-components';
|
|
9
|
+
import { LoadingOverlayInner, OverlayContainer } from '../common/overlay';
|
|
10
|
+
import { useTranslations, useVerbiage, } from '../../i18n';
|
|
11
|
+
const CONFETTI_COUNT = 44;
|
|
12
|
+
const CONFETTI_LIFETIME_MS = 4500;
|
|
13
|
+
/**
|
|
14
|
+
* The ring-mode approved handoff (CEO prototype `#v-done`): shown once the
|
|
15
|
+
* verification response comes back approved, and persists under the host's
|
|
16
|
+
* navigation instead of a blank frame. Big check pop, confetti burst, and
|
|
17
|
+
* stat chips summarizing the run. The derived captures-chip defaults are not
|
|
18
|
+
* localized — override them via verbiage for non-English deployments.
|
|
19
|
+
*/
|
|
20
|
+
export const RingSuccessScreen = ({ elapsedMs, capturedLabels = [], verbiage: rawVerbiage = {}, classNames = {}, }) => {
|
|
21
|
+
const theme = useTheme();
|
|
22
|
+
const verbiage = useTranslations(rawVerbiage, {
|
|
23
|
+
successTitleText: "You're verified! 🎉",
|
|
24
|
+
successSubtitleText: 'Confirmed with the issuing authority.',
|
|
25
|
+
successContinuingText: 'Continuing to your account…',
|
|
26
|
+
successTimeCaptionText: 'total time',
|
|
27
|
+
successIssuerValueText: 'Issuer ✓',
|
|
28
|
+
successIssuerCaptionText: 'data confirmed',
|
|
29
|
+
});
|
|
30
|
+
const captureCount = capturedLabels.length;
|
|
31
|
+
const capturesValue = useVerbiage(rawVerbiage.successCapturesValueText, `${captureCount} ${captureCount === 1 ? 'capture' : 'captures'}`);
|
|
32
|
+
const capturesCaption = useVerbiage(rawVerbiage.successCapturesCaptionText, capturedLabels.join(' + '));
|
|
33
|
+
const overlayTheme = theme.selfieCapture?.loadingOverlay ?? theme.idCapture?.loadingOverlay;
|
|
34
|
+
const tintBase = overlayTheme?.backgroundColor ?? 'var(--idm-color-primary-500)';
|
|
35
|
+
const accent = overlayTheme?.progressBarIndicatorColor ?? 'var(--idm-color-primary-500)';
|
|
36
|
+
const confetti = useMemo(() => Array.from({ length: CONFETTI_COUNT }, (_, i) => ({
|
|
37
|
+
left: `${Math.random() * 100}%`,
|
|
38
|
+
color: [accent, '#12d6a8', '#f5a623', '#5aa7e8', '#e56aa2'][i % 5],
|
|
39
|
+
duration: `${1.6 + Math.random() * 1.6}s`,
|
|
40
|
+
delay: `${Math.random() * 0.7}s`,
|
|
41
|
+
})), [accent]);
|
|
42
|
+
const [showConfetti, setShowConfetti] = useState(true);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
const timer = setTimeout(() => setShowConfetti(false), CONFETTI_LIFETIME_MS);
|
|
45
|
+
return () => clearTimeout(timer);
|
|
46
|
+
}, []);
|
|
47
|
+
const stats = [
|
|
48
|
+
elapsedMs != null && verbiage.successTimeCaptionText
|
|
49
|
+
? {
|
|
50
|
+
value: `${(elapsedMs / 1000).toFixed(1)}s`,
|
|
51
|
+
caption: verbiage.successTimeCaptionText,
|
|
52
|
+
}
|
|
53
|
+
: null,
|
|
54
|
+
captureCount > 0 && capturesValue
|
|
55
|
+
? { value: capturesValue, caption: capturesCaption }
|
|
56
|
+
: null,
|
|
57
|
+
verbiage.successIssuerValueText
|
|
58
|
+
? {
|
|
59
|
+
value: verbiage.successIssuerValueText,
|
|
60
|
+
caption: verbiage.successIssuerCaptionText,
|
|
61
|
+
}
|
|
62
|
+
: null,
|
|
63
|
+
].filter(Boolean);
|
|
64
|
+
return (_jsx(OverlayContainer, { children: _jsxs(SuccessInner, { "$tintBase": tintBase, children: [showConfetti &&
|
|
65
|
+
confetti.map((piece, i) => (_jsx(ConfettiPiece, { "aria-hidden": "true", style: {
|
|
66
|
+
left: piece.left,
|
|
67
|
+
background: piece.color,
|
|
68
|
+
animationDuration: piece.duration,
|
|
69
|
+
animationDelay: piece.delay,
|
|
70
|
+
} }, i))), _jsxs(SuccessLayout, { className: classNames.successScreen, role: "status", "aria-live": "polite", "aria-atomic": "true", children: [_jsx(BigCheck, { "$accent": accent, className: classNames.successCheck, "aria-hidden": "true", children: _jsx("svg", { viewBox: "0 0 52 52", children: _jsx("path", { d: "M14 27l8 8 16-18" }) }) }), _jsx(Title, { className: classNames.successTitle, children: verbiage.successTitleText }), _jsxs(Subtitle, { className: classNames.successSubtitle, children: [verbiage.successSubtitleText && (_jsx("div", { children: verbiage.successSubtitleText })), verbiage.successContinuingText && (_jsx("div", { children: verbiage.successContinuingText }))] }), stats.length > 0 && (_jsx(StatList, { className: classNames.successStatList, children: stats.map((stat, i) => (_jsxs(StatChip, { className: classNames.successStat, children: [_jsx("b", { children: stat.value }), stat.caption] }, i))) }))] })] }) }));
|
|
71
|
+
};
|
|
72
|
+
const fadeIn = keyframes `
|
|
73
|
+
from { opacity: 0; }
|
|
74
|
+
to { opacity: 1; }
|
|
75
|
+
`;
|
|
76
|
+
const popCheck = keyframes `
|
|
77
|
+
to { transform: scale(1); opacity: 1; }
|
|
78
|
+
`;
|
|
79
|
+
const drawTick = keyframes `
|
|
80
|
+
to { stroke-dashoffset: 0; }
|
|
81
|
+
`;
|
|
82
|
+
const confettiFall = keyframes `
|
|
83
|
+
to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }
|
|
84
|
+
`;
|
|
85
|
+
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
86
|
+
// for why the foreground is pinned rather than read from the theme.
|
|
87
|
+
const SuccessInner = styled(LoadingOverlayInner) `
|
|
88
|
+
background: ${(props) => `linear-gradient(180deg, #ffffff, color-mix(in srgb, ${props.$tintBase} 45%, #ffffff))`};
|
|
89
|
+
color: #12211d;
|
|
90
|
+
animation: ${fadeIn} 250ms ease-out both;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
`;
|
|
93
|
+
const SuccessLayout = styled.div `
|
|
94
|
+
position: absolute;
|
|
95
|
+
inset: 0;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
gap: 12px;
|
|
101
|
+
padding: 34px;
|
|
102
|
+
text-align: center;
|
|
103
|
+
`;
|
|
104
|
+
/* Base styles are the post-animation end state so reduced-motion users see
|
|
105
|
+
* the finished screen immediately. */
|
|
106
|
+
const BigCheck = styled.div `
|
|
107
|
+
width: 110px;
|
|
108
|
+
height: 110px;
|
|
109
|
+
border-radius: 50%;
|
|
110
|
+
background: ${(props) => props.$accent};
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
box-shadow: 0 16px 44px
|
|
115
|
+
color-mix(in srgb, ${(props) => props.$accent} 40%, transparent);
|
|
116
|
+
|
|
117
|
+
svg {
|
|
118
|
+
width: 54px;
|
|
119
|
+
height: 54px;
|
|
120
|
+
fill: none;
|
|
121
|
+
stroke: #ffffff;
|
|
122
|
+
stroke-width: 7;
|
|
123
|
+
stroke-linecap: round;
|
|
124
|
+
stroke-linejoin: round;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
128
|
+
transform: scale(0.3);
|
|
129
|
+
opacity: 0;
|
|
130
|
+
animation: ${popCheck} 0.8s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
|
|
131
|
+
|
|
132
|
+
svg path {
|
|
133
|
+
stroke-dasharray: 60;
|
|
134
|
+
stroke-dashoffset: 60;
|
|
135
|
+
animation: ${drawTick} 0.45s 0.4s ease forwards;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
139
|
+
const Title = styled.div `
|
|
140
|
+
font-size: 26px;
|
|
141
|
+
font-weight: 700;
|
|
142
|
+
line-height: 1.25;
|
|
143
|
+
`;
|
|
144
|
+
const Subtitle = styled.div `
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
line-height: 1.5;
|
|
147
|
+
opacity: 0.72;
|
|
148
|
+
`;
|
|
149
|
+
const StatList = styled.div `
|
|
150
|
+
display: flex;
|
|
151
|
+
gap: 10px;
|
|
152
|
+
margin-top: 10px;
|
|
153
|
+
flex-wrap: wrap;
|
|
154
|
+
justify-content: center;
|
|
155
|
+
`;
|
|
156
|
+
const StatChip = styled.div `
|
|
157
|
+
background: #ffffff;
|
|
158
|
+
border: 1px solid rgb(0 0 0 / 0.08);
|
|
159
|
+
border-radius: 12px;
|
|
160
|
+
padding: 9px 14px;
|
|
161
|
+
font-size: 11.5px;
|
|
162
|
+
opacity: 0.9;
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
gap: 2px;
|
|
166
|
+
|
|
167
|
+
b {
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
}
|
|
170
|
+
`;
|
|
171
|
+
const ConfettiPiece = styled.div `
|
|
172
|
+
position: absolute;
|
|
173
|
+
width: 9px;
|
|
174
|
+
height: 14px;
|
|
175
|
+
top: -20px;
|
|
176
|
+
opacity: 0.95;
|
|
177
|
+
z-index: 5;
|
|
178
|
+
animation-name: ${confettiFall};
|
|
179
|
+
animation-timing-function: linear;
|
|
180
|
+
animation-fill-mode: forwards;
|
|
181
|
+
|
|
182
|
+
@media (prefers-reduced-motion: reduce) {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type FaceCaptureGuideOverlayVariant = 'satisfied' | 'unsatisfied';
|
|
2
|
+
export declare const FaceCaptureGuideContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
3
|
+
export type FaceCaptureGuideOverlayClassNames = {
|
|
4
|
+
container?: string;
|
|
5
|
+
oval?: string;
|
|
6
|
+
};
|
|
7
|
+
export type FaceGuideStatus = 'ready' | 'processing' | 'success' | 'failure';
|
|
8
|
+
export type FaceCaptureGuideOverlayProps = {
|
|
9
|
+
classNames?: FaceCaptureGuideOverlayClassNames;
|
|
10
|
+
variant?: FaceCaptureGuideOverlayVariant;
|
|
11
|
+
status?: FaceGuideStatus;
|
|
12
|
+
borderWidth?: number;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
borderOpacity?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const FaceCaptureGuideOverlay: ({ classNames, status, borderWidth, borderColor, borderOpacity, }: FaceCaptureGuideOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=FaceCaptureGuideOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FaceCaptureGuideOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/selfie/FaceCaptureGuideOverlay.tsx"],"names":[],"mappings":"AAkBA,MAAM,MAAM,8BAA8B,GAAG,WAAW,GAAG,aAAa,CAAA;AAExE,eAAO,MAAM,yBAAyB,uVAarC,CAAA;AAOD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5E,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,iCAAiC,CAAA;IAC9C,OAAO,CAAC,EAAE,8BAA8B,CAAA;IACxC,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,kEAMrC,4BAA4B,4CAc9B,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Byte-faithful port of sdk2's face_liveness/FaceCaptureGuideOverlay.tsx.
|
|
3
|
+
// Only sanctioned transforms applied: unused `React`/`ReactElement` imports
|
|
4
|
+
// dropped (new JSX transform — return type inference is sufficient, matching
|
|
5
|
+
// this package's other overlay ports), `styled` repointed to a named import,
|
|
6
|
+
// and `SelfieCaptureAnimatedMaskWithStatus`'s import path repointed to the
|
|
7
|
+
// sibling ./SelfieCaptureAnimatedMask.tsx (task-3 file split: sdk2 keeps it
|
|
8
|
+
// in the same file as this component's sibling `SelfieCaptureLoadingGraphic`
|
|
9
|
+
// export, this package splits the two).
|
|
10
|
+
//
|
|
11
|
+
// `FaceGuideStatus` stays defined here (as in sdk2) and is imported as a
|
|
12
|
+
// type-only edge by ./SelfieCaptureAnimatedMask.tsx, mirroring sdk2's own
|
|
13
|
+
// mutual-file arrangement (selfie_capture/SelfieCaptureLoadingGraphic.tsx
|
|
14
|
+
// type-imports `FaceGuideStatus` from face_liveness/FaceCaptureGuideOverlay.tsx
|
|
15
|
+
// while this file value-imports back) — a type-only import erases at compile
|
|
16
|
+
// time, so this never becomes a real runtime circular dependency.
|
|
17
|
+
import { styled } from 'styled-components';
|
|
18
|
+
import { SelfieCaptureAnimatedMaskWithStatus } from './SelfieCaptureAnimatedMask';
|
|
19
|
+
export const FaceCaptureGuideContainer = styled.div `
|
|
20
|
+
position: absolute;
|
|
21
|
+
z-index: 1000;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
padding: 40px;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
`;
|
|
33
|
+
const FaceCaptureGuideInner = styled.div `
|
|
34
|
+
position: relative;
|
|
35
|
+
height: 60%;
|
|
36
|
+
`;
|
|
37
|
+
export const FaceCaptureGuideOverlay = ({ classNames = {}, status = 'ready', borderWidth = 5, borderColor = 'white', borderOpacity = 0.8, }) => {
|
|
38
|
+
return (_jsx(FaceCaptureGuideContainer, { className: classNames.container, children: _jsx(FaceCaptureGuideInner, { children: _jsx(SelfieCaptureAnimatedMaskWithStatus, { status: status, borderColor: borderColor, borderWidth: borderWidth, borderOpacity: borderOpacity, verticalAlign: "center" }) }) }));
|
|
39
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactElement, Ref } from 'react';
|
|
2
|
+
export type SelfieCameraFeedProps = {
|
|
3
|
+
videoRef: Ref<HTMLVideoElement>;
|
|
4
|
+
isRearFacing?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function SelfieCameraFeed({ videoRef, isRearFacing, className, }: SelfieCameraFeedProps): ReactElement;
|
|
8
|
+
//# sourceMappingURL=SelfieCameraFeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfieCameraFeed.d.ts","sourceRoot":"","sources":["../../../src/components/selfie/SelfieCameraFeed.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAI9C,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAaD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,YAAY,EACZ,SAAS,GACV,EAAE,qBAAqB,GAAG,YAAY,CAMtC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from 'styled-components';
|
|
3
|
+
import { CameraVideoTag } from '../CameraFeed';
|
|
4
|
+
const SelfieCameraFeedWrapper = styled.div `
|
|
5
|
+
display: flex;
|
|
6
|
+
position: absolute;
|
|
7
|
+
inset: 0;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
/* Keep CameraVideoTag's legacy negative z-index above opaque flow shells. */
|
|
12
|
+
isolation: isolate;
|
|
13
|
+
`;
|
|
14
|
+
export function SelfieCameraFeed({ videoRef, isRearFacing, className, }) {
|
|
15
|
+
return (_jsx(SelfieCameraFeedWrapper, { children: _jsx(CameraVideoTag, { ref: videoRef, isRearFacing: isRearFacing, className: className }) }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type SVGProps } from 'react';
|
|
2
|
+
import type { FaceGuideStatus } from './FaceCaptureGuideOverlay';
|
|
3
|
+
export type SelfieCaptureAnimatedMaskProps = SVGProps<SVGSVGElement> & {
|
|
4
|
+
frame?: number;
|
|
5
|
+
borderWidth?: number;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
borderOpacity?: number;
|
|
8
|
+
verticalAlign?: 'center' | 'bottom';
|
|
9
|
+
status?: FaceGuideStatus;
|
|
10
|
+
};
|
|
11
|
+
export declare function SelfieCaptureAnimatedMask({ frame, borderWidth, borderColor, borderOpacity, verticalAlign, status, ...props }: SelfieCaptureAnimatedMaskProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function SelfieCaptureAnimatedMaskWithStatus({ status, ...props }: SelfieCaptureAnimatedMaskProps & {
|
|
13
|
+
status?: FaceGuideStatus;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=SelfieCaptureAnimatedMask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfieCaptureAnimatedMask.d.ts","sourceRoot":"","sources":["../../../src/components/selfie/SelfieCaptureAnimatedMask.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAiMhE,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IACnC,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,KAAS,EACT,WAAe,EACf,WAAqB,EACrB,aAAmB,EACnB,aAAwB,EACxB,MAAgB,EAChB,GAAG,KAAK,EACT,EAAE,8BAA8B,2CAyMhC;AAED,wBAAgB,mCAAmC,CAAC,EAClD,MAAgB,EAChB,GAAG,KAAK,EACT,EAAE,8BAA8B,GAAG;IAClC,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB,2CAoBA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Byte-faithful port of sdk2's selfie_capture/SelfieCaptureLoadingGraphic.tsx
|
|
3
|
+
// lines 305-730: `HeadGuideSvg`, `HeadGuide`, `SelfieCaptureAnimatedMask`, and
|
|
4
|
+
// `SelfieCaptureAnimatedMaskWithStatus` (the file's other export, the
|
|
5
|
+
// `SelfieCaptureLoadingGraphic` avatar animation, lives in the sibling
|
|
6
|
+
// ./SelfieCaptureLoadingGraphic.tsx per the task-3 file split). SVG paths,
|
|
7
|
+
// keyframes and timings (250ms frame cycle, 2s waves, 0.66s/1.33s stagger)
|
|
8
|
+
// are kept byte-identical. Only sanctioned transforms applied:
|
|
9
|
+
// - unused `React` default import dropped (new JSX transform);
|
|
10
|
+
// - `styled` repointed to a named import;
|
|
11
|
+
// - `wavesAnimation` repointed to this package's existing
|
|
12
|
+
// components/common/animation.ts (already ported in iteration 3 and used
|
|
13
|
+
// by components/guides/IdCaptureGuidesCommon.tsx's own waves stack);
|
|
14
|
+
// - `useResizeObserver` repointed to this package's layout/useResizeObserver;
|
|
15
|
+
// - `FaceGuideStatus` type-only-imported from the sibling
|
|
16
|
+
// ./FaceCaptureGuideOverlay.tsx (see that file's header comment for why
|
|
17
|
+
// this doesn't create a runtime circular dependency);
|
|
18
|
+
// - the failure badge's hardcoded `https://websdk-cdn-dev.idmission.com/assets/x.svg`
|
|
19
|
+
// literal is now built from utils/cdn.ts's `DEFAULT_CDN_URL`, the same
|
|
20
|
+
// helper components/guides/IdCaptureGuidesCommon.tsx's sibling
|
|
21
|
+
// guide_images/defaults.ts uses for its own CDN asset URLs — the resolved
|
|
22
|
+
// URL string is unchanged.
|
|
23
|
+
import { forwardRef, useEffect, useMemo, useRef, useState, } from 'react';
|
|
24
|
+
import { styled, useTheme } from 'styled-components';
|
|
25
|
+
import { wavesAnimation } from '../common/animation';
|
|
26
|
+
import useResizeObserver from '../../layout/useResizeObserver';
|
|
27
|
+
import { DEFAULT_CDN_URL } from '../../utils/cdn';
|
|
28
|
+
const HeadGuideSvg = forwardRef(({ borderColor = 'white', borderOpacity = 0.8, borderWidth = 5, status = 'ready', ...props }, ref) => (_jsxs("svg", { ...props, ref: ref, viewBox: "271 92 297 406", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { clipPath: "url(#clip0_428_1188)", children: [_jsx("path", { d: "M565.5 295C565.5 350.583 549.016 400.803 522.488 437.067C495.958 473.332 459.517 495.5 419.5 495.5C379.483 495.5 343.042 473.332 316.512 437.067C289.984 400.803 273.5 350.583 273.5 295C273.5 239.417 289.984 189.197 316.512 152.933C343.042 116.668 379.483 94.5 419.5 94.5C459.517 94.5 495.958 116.668 522.488 152.933C549.016 189.197 565.5 239.417 565.5 295Z", stroke: borderColor, strokeOpacity: borderOpacity, strokeWidth: borderWidth }), status === 'success' && (_jsxs(_Fragment, { children: [_jsx("circle", { cx: "518.5", cy: "438.5", r: "25.5", fill: borderColor }), _jsx("path", { d: "M504 440.5L512 448L531 427", stroke: "white", strokeWidth: "5", strokeLinecap: "round", strokeLinejoin: "round" })] })), status === 'failure' && (_jsxs(_Fragment, { children: [_jsx("circle", { cx: "518.5", cy: "438.5", r: "25.5", fill: borderColor }), _jsx("image", { href: `${DEFAULT_CDN_URL}/x.svg`, x: "507", y: "427", width: "24", height: "24" })] }))] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_428_1188", children: _jsx("rect", { width: "840", height: "740", fill: "white" }) }) })] })));
|
|
29
|
+
HeadGuideSvg.displayName = 'HeadGuideSvg';
|
|
30
|
+
const PulsingHeadGuideContainer = styled.div `
|
|
31
|
+
display: flex;
|
|
32
|
+
position: relative;
|
|
33
|
+
height: 100%;
|
|
34
|
+
max-height: 100%;
|
|
35
|
+
|
|
36
|
+
& > .idmSdkWaves {
|
|
37
|
+
position: absolute;
|
|
38
|
+
animation: ${wavesAnimation} 2s ease-out infinite;
|
|
39
|
+
transform-style: preserve-3d;
|
|
40
|
+
|
|
41
|
+
&:nth-child(2) {
|
|
42
|
+
animation-delay: 0.66s;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:nth-child(3) {
|
|
46
|
+
animation-delay: 1.33s;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
& > .idmSdkWavesOrigin {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
function HeadGuide({ status = 'ready', ...props }) {
|
|
55
|
+
const ref = useRef(null);
|
|
56
|
+
const { ref: parentRef, height: parentHeight } = useResizeObserver();
|
|
57
|
+
const [contentAspectRatio, setContentAspectRatio] = useState();
|
|
58
|
+
const theme = useTheme();
|
|
59
|
+
const wavesDisabled = theme.selfieCapture?.guides?.wavesDisabled ?? false;
|
|
60
|
+
const wavesColor = theme.selfieCapture?.guides?.wavesColor ?? '#287ec6';
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (!ref.current)
|
|
63
|
+
return;
|
|
64
|
+
const bbox = ref.current.getBBox();
|
|
65
|
+
setContentAspectRatio((bbox.x + bbox.width + bbox.x) / (bbox.y + bbox.height + bbox.y));
|
|
66
|
+
}, []);
|
|
67
|
+
const scaledWidth = useMemo(() => contentAspectRatio && parentHeight && parentHeight / contentAspectRatio, [contentAspectRatio, parentHeight]);
|
|
68
|
+
return (_jsxs(PulsingHeadGuideContainer, { ref: parentRef, children: [status === 'ready' && !wavesDisabled && (_jsxs(_Fragment, { children: [_jsx(HeadGuideSvg, { ...props, className: "idmSdkWaves", borderOpacity: 0.25, borderColor: wavesColor, width: scaledWidth, height: parentHeight }), _jsx(HeadGuideSvg, { ...props, className: "idmSdkWaves", borderOpacity: 0.25, borderColor: wavesColor, width: scaledWidth, height: parentHeight }), _jsx(HeadGuideSvg, { ...props, className: "idmSdkWaves", borderOpacity: 0.25, borderColor: wavesColor, width: scaledWidth, height: parentHeight })] })), _jsx(HeadGuideSvg, { ...props, ref: ref, borderOpacity: 1, className: `idmSdkWavesOrigin ${props.className ?? ''}`, status: status, width: scaledWidth, height: parentHeight })] }));
|
|
69
|
+
}
|
|
70
|
+
const AbsoluteSvg = styled.svg `
|
|
71
|
+
position: absolute;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
top: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
`;
|
|
77
|
+
const RelativeSvgContainer = styled.div `
|
|
78
|
+
position: relative;
|
|
79
|
+
height: 100%;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: ${(props) => props.$verticalAlign === 'bottom' ? 'flex-end' : 'center'};
|
|
82
|
+
`;
|
|
83
|
+
export function SelfieCaptureAnimatedMask({ frame = 0, borderWidth = 5, borderColor = 'white', borderOpacity = 0.8, verticalAlign = 'center', status = 'ready', ...props }) {
|
|
84
|
+
const theme = useTheme();
|
|
85
|
+
const satisfiedColor = theme.selfieCapture?.guides?.satisfiedColor ??
|
|
86
|
+
'var(--idm-color-positive-600)';
|
|
87
|
+
const negativeColor = theme.selfieCapture?.guides?.failureColor ?? 'var(--idm-color-negative-600)';
|
|
88
|
+
const statusBorderColor = status === 'failure'
|
|
89
|
+
? negativeColor
|
|
90
|
+
: status === 'success'
|
|
91
|
+
? satisfiedColor
|
|
92
|
+
: borderColor;
|
|
93
|
+
return (_jsxs(RelativeSvgContainer, { "$verticalAlign": verticalAlign, children: [_jsx(HeadGuide, { borderOpacity: borderOpacity, borderWidth: borderWidth, borderColor: statusBorderColor, status: status, ...props }), status === 'processing' && (_jsxs(AbsoluteSvg, { ...props, viewBox: "271 92 297 406", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { clipPath: "url(#clip0_428_1188)", children: [frame > 1 && (_jsxs(_Fragment, { children: [frame > 2 && (_jsxs(_Fragment, { children: [frame > 3 && (_jsxs(_Fragment, { children: [frame > 4 && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M298.5 182.5L419 164.5L540 182", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: "419", cy: "165", r: "7", fill: "white" })] })), _jsx("path", { d: "M299.939 262.805L419 478.5L538.5 261.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M298.5 182.5L418.871 230.054L540 182", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M298.5 182.5L299.939 262.805", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M540.001 182L538.501 261.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: "299.914", cy: "182", r: "7", fill: "white" }), _jsx("circle", { cx: "540", cy: "182", r: "7", fill: "white" })] })), _jsx("path", { d: "M418.828 230L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M300 263.001L419 342.501", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M538.5 261.5L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M301.5 409L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M536.5 410L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M300 263L419 230", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M538.5 261.5L419 230", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 6 ? 0.3 : 1 }), _jsx("circle", { cx: "419", cy: "229.971", r: "7", fill: "white" }), _jsx("circle", { cx: "419", cy: "342.4", r: "7", fill: "white" })] })), _jsx("path", { d: "M538.5 261.5L536.5 410", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M419 478.5L536.5 410", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 7 ? 0.3 : 1 }), _jsx("circle", { cx: "537", cy: "263", r: "7", fill: "white" }), _jsx("circle", { cx: "537", cy: "409", r: "7", fill: "white" })] })), frame > 0 && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M301.501 409L300.001 263", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 1 && frame < 6 ? 0.3 : 1 }), _jsx("path", { d: "M301.501 409L419.001 478.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 1 && frame < 6 ? 0.3 : 1 }), _jsx("circle", { cx: "419", cy: "477.576", r: "7", fill: "white" }), _jsx("circle", { cx: "301.914", cy: "263", r: "7", fill: "white" }), _jsx("circle", { cx: "301.444", cy: "409", r: "7", fill: "white" })] }))] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_428_1188", children: _jsx("rect", { width: "840", height: "740", fill: "white" }) }) })] }))] }));
|
|
94
|
+
}
|
|
95
|
+
export function SelfieCaptureAnimatedMaskWithStatus({ status = 'ready', ...props }) {
|
|
96
|
+
const [frame, setFrame] = useState(1);
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
if (status !== 'processing') {
|
|
99
|
+
setFrame(0);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
setFrame(1);
|
|
103
|
+
const interval = setInterval(() => {
|
|
104
|
+
setFrame((n) => (n + 1) % 6);
|
|
105
|
+
}, 250);
|
|
106
|
+
return () => {
|
|
107
|
+
clearInterval(interval);
|
|
108
|
+
};
|
|
109
|
+
}, [status]);
|
|
110
|
+
return _jsx(SelfieCaptureAnimatedMask, { ...props, frame: frame, status: status });
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfieCaptureLoadingGraphic.d.ts","sourceRoot":"","sources":["../../../src/components/selfie/SelfieCaptureLoadingGraphic.tsx"],"names":[],"mappings":"AAaA,wBAAgB,2BAA2B,CAAC,EAC1C,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,2CAqRA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
// Byte-faithful port of sdk2's selfie_capture/SelfieCaptureLoadingGraphic.tsx
|
|
3
|
+
// lines 14-295 (the `SelfieCaptureLoadingGraphic` avatar animation itself —
|
|
4
|
+
// the file's other exports, `HeadGuideSvg`/`HeadGuide`/
|
|
5
|
+
// `SelfieCaptureAnimatedMask`/`SelfieCaptureAnimatedMaskWithStatus`, live in
|
|
6
|
+
// the sibling ./SelfieCaptureAnimatedMask.tsx per the task-3 file split).
|
|
7
|
+
// Pure SVG animation driven by local frame state + useTheme only, no
|
|
8
|
+
// store/context reads. Only sanctioned transforms applied: unused `React`
|
|
9
|
+
// default import dropped (new JSX transform) — this function never uses
|
|
10
|
+
// `styled`, so unlike IdCaptureLoadingGraphic.tsx there's no `styled` import
|
|
11
|
+
// to repoint.
|
|
12
|
+
import { useEffect, useState } from 'react';
|
|
13
|
+
import { useTheme } from 'styled-components';
|
|
14
|
+
export function SelfieCaptureLoadingGraphic({ className, }) {
|
|
15
|
+
const [frame, setFrame] = useState(1);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const i = setInterval(() => {
|
|
18
|
+
setFrame((n) => (n + 1) % 10);
|
|
19
|
+
}, 750);
|
|
20
|
+
return () => {
|
|
21
|
+
clearInterval(i);
|
|
22
|
+
};
|
|
23
|
+
}, []);
|
|
24
|
+
const theme = useTheme();
|
|
25
|
+
const satisfiedColor = theme.selfieCapture?.guides?.satisfiedColor ??
|
|
26
|
+
'var(--idm-color-positive-600)';
|
|
27
|
+
return (_jsxs("svg", { className: className, viewBox: "0 0 840 740", fill: "none", preserveAspectRatio: "xMidYMax slice", xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { clipPath: "url(#clip0_428_1188)", children: [_jsx("mask", { id: "mask0_428_1188", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "840", height: "740", children: _jsx("rect", { width: "840", height: "740", fill: "#D9D9D9" }) }), _jsxs("g", { mask: "url(#mask0_428_1188)", children: [_jsx("path", { d: "M503.781 449.497C491.561 503.154 458.442 541.609 419.561 541.609C380.68 541.609 347.492 503.015 335.272 449.358L344.645 412.916L347.492 402.019H491.561L502.253 443.667L503.225 447.415L503.781 449.497Z", fill: "#D2D4DA" }), _jsx("path", { d: "M574.88 244.97C647.073 163.885 598.921 362.155 558.945 338.928C488.709 298.211 574.88 244.97 574.88 244.97Z", fill: "#F7A69C" }), _jsx("path", { d: "M816.983 742.838C779.698 781.432 736.86 814.612 689.786 841.127C617.161 882.012 534.399 906.862 446.153 911.027C437.335 911.513 428.448 911.721 419.491 911.721C374.986 911.721 331.731 906.446 290.281 896.519C232.514 882.706 178.358 859.8 129.271 829.397C89.9033 805.033 53.9382 775.948 22 742.838L31.512 705.355C45.8842 649.061 90.2505 605.33 146.837 591.795L153.085 590.337L222.447 573.747L241.401 569.235C249.386 567.292 257.023 564.585 264.244 561.114C270.285 558.199 276.047 554.797 281.463 550.91C287.295 546.745 292.78 542.025 297.71 536.819C310.971 522.867 320.761 505.653 325.76 486.286L333.119 457.688L335.064 449.983L335.202 449.358L344.645 412.916L347.422 402.019H491.491L502.253 443.667L503.225 447.415L503.78 449.497V449.983L505.863 457.757L513.223 486.286C520.097 512.802 535.996 535.5 557.589 550.91C569.393 559.448 582.932 565.765 597.581 569.235L615.078 573.4L692.146 591.795C748.732 605.33 793.099 649.061 807.471 705.355L816.983 742.838Z", fill: "#F7A69C" }), _jsx("path", { d: "M503.781 449.497C491.561 503.154 458.442 541.609 419.561 541.609C380.68 541.609 347.492 503.015 335.272 449.358L344.645 412.916L347.492 402.019H491.561L502.253 443.667L503.225 447.415L503.781 449.497Z", fill: "#DC968D" }), _jsx("path", { d: "M264.123 244.97C191.93 163.885 240.082 362.155 280.058 338.928C350.294 298.211 264.123 244.97 264.123 244.97Z", fill: "#F7A69C" }), _jsx("path", { d: "M586.473 187.324C586.473 193.432 586.126 199.402 585.432 205.371C584.876 210.785 582.446 233.9 578.141 263.331C575.781 279.713 572.726 297.969 569.115 316.294C569.115 316.502 569.115 316.78 568.976 316.988C560.159 361.621 547.731 406.045 531.484 422.219C513.154 440.544 498.435 457.203 481.632 469.211C464.83 481.289 446.014 488.786 419.631 488.786C393.247 488.786 374.431 481.289 357.629 469.211C340.896 457.203 326.107 440.544 307.778 422.219C291.531 405.976 279.103 361.482 270.216 316.918C270.216 316.918 270.216 316.71 270.216 316.641C269.105 310.879 268.063 305.118 267.022 299.426C266.605 297.066 266.189 294.706 265.772 292.346C264.036 282.351 262.509 272.563 261.12 263.401C256.121 229.596 253.691 204.122 253.691 204.122C253.136 198.638 252.858 193.016 252.858 187.324C252.858 185.866 252.858 184.408 252.858 182.951C253.205 169.832 255.01 157.06 258.274 144.843C258.412 144.287 258.551 143.732 258.69 143.177C277.228 75.4294 337.425 24.8271 410.049 20.8011C413.243 20.5928 416.368 20.5234 419.631 20.5234C465.733 20.5234 507.461 39.1956 537.663 69.3904C563.769 95.4205 581.266 130.127 585.501 168.79C586.195 174.899 586.542 181.077 586.542 187.324H586.473Z", fill: "#FEAEA5" }), _jsx("path", { d: "M445.867 337.327C445.867 348.849 434.133 358.151 419.622 358.151C405.111 358.151 393.447 348.849 393.447 337.327C393.447 335.939 393.586 334.55 394.002 333.301C396.293 342.88 406.916 350.099 419.622 350.099C432.328 350.099 443.02 342.88 445.312 333.301C445.728 334.62 445.867 335.939 445.867 337.327Z", fill: "#F7A69C" }), _jsx("path", { d: "M817.053 743.187C716.586 847.238 575.642 912 419.561 912C263.481 912 122.467 847.238 22.0698 743.118L31.5818 705.704C45.954 649.34 90.3203 605.61 146.906 592.074L222.655 574.027L241.471 569.515C249.942 567.502 258.135 564.517 265.772 560.699C304.237 601.653 358.879 627.267 419.561 627.267C480.244 627.267 534.886 601.653 573.351 560.699C580.988 564.448 589.111 567.502 597.651 569.515L614.106 573.471L692.216 592.074C748.802 605.61 793.168 649.34 807.471 705.704L817.053 743.187Z", fill: "#6E7174" }), _jsx("path", { d: "M614.106 573.471C597.165 594.018 534.886 659.058 419.561 663.639C286.671 668.984 226.266 579.441 222.655 574.027L241.471 569.515C249.942 567.502 258.134 564.517 265.772 560.699C304.236 601.653 358.879 627.267 419.561 627.267C480.244 627.267 534.886 601.653 573.35 560.699C580.988 564.448 589.111 567.502 597.651 569.515L614.106 573.471Z", fill: "#555A5E" }), _jsx("path", { d: "M249.898 196.144C249.898 249.777 270.317 315.623 270.317 315.623C270.317 315.623 266.862 205.572 314.892 164.108C347.514 135.946 374.019 167.565 417.115 167.565C456.137 167.565 492.558 136.481 525.436 164.108C578.852 208.994 568.738 315.623 568.738 315.623C568.738 315.623 589.157 250.557 589.157 196.144C589.157 76.4319 542.638 20 417.115 20C302.8 20 249.898 75.8365 249.898 196.144Z", fill: "#525252" })] }), frame >= 8 ? (_jsxs(_Fragment, { children: [_jsx("path", { d: "M565.5 295C565.5 350.583 549.016 400.803 522.488 437.067C495.958 473.332 459.517 495.5 419.5 495.5C379.483 495.5 343.042 473.332 316.512 437.067C289.984 400.803 273.5 350.583 273.5 295C273.5 239.417 289.984 189.197 316.512 152.933C343.042 116.668 379.483 94.5 419.5 94.5C459.517 94.5 495.958 116.668 522.488 152.933C549.016 189.197 565.5 239.417 565.5 295Z", stroke: satisfiedColor, strokeWidth: "5" }), _jsx("circle", { cx: "518.5", cy: "438.5", r: "25.5", fill: satisfiedColor }), _jsx("path", { d: "M504 440.5L512 448L531 427", stroke: "white", strokeWidth: "5", strokeLinecap: "round", strokeLinejoin: "round" })] })) : (_jsxs(_Fragment, { children: [frame > 2 && (_jsxs(_Fragment, { children: [frame > 3 && (_jsxs(_Fragment, { children: [frame > 4 && (_jsxs(_Fragment, { children: [frame > 5 && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M298.5 182.5L419 164.5L540 182", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: "419", cy: "165", r: "7", fill: "white" })] })), _jsx("path", { d: "M565.5 295C565.5 350.583 549.016 400.803 522.488 437.067C495.958 473.332 459.517 495.5 419.5 495.5C379.483 495.5 343.042 473.332 316.512 437.067C289.984 400.803 273.5 350.583 273.5 295C273.5 239.417 289.984 189.197 316.512 152.933C343.042 116.668 379.483 94.5 419.5 94.5C459.517 94.5 495.958 116.668 522.488 152.933C549.016 189.197 565.5 239.417 565.5 295Z", stroke: "white", strokeOpacity: frame > 7 ? 0.8 : frame > 5 ? 0.3 : 0.1, strokeWidth: "5" }), _jsx("path", { d: "M299.939 262.805L419 478.5L538.5 261.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M298.5 182.5L418.871 230.054L540 182", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M298.5 182.5L299.939 262.805", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M540.001 182L538.501 261.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: "299.914", cy: "182", r: "7", fill: "white" }), _jsx("circle", { cx: "540", cy: "182", r: "7", fill: "white" })] })), _jsx("path", { d: "M418.828 230L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M300 263.001L419 342.501", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M538.5 261.5L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M301.5 409L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M536.5 410L419 342.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M300 263L419 230", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M538.5 261.5L419 230", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 4 && frame < 7 ? 0.3 : 1 }), _jsx("circle", { cx: "419", cy: "229.971", r: "7", fill: "white" }), _jsx("circle", { cx: "419", cy: "342.4", r: "7", fill: "white" })] })), _jsx("path", { d: "M538.5 261.5L536.5 410", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M419 478.5L536.5 410", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 3 && frame < 7 ? 0.3 : 1 }), _jsx("circle", { cx: "537", cy: "263", r: "7", fill: "white" }), _jsx("circle", { cx: "537", cy: "409", r: "7", fill: "white" })] })), frame > 1 && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M301.501 409L300.001 263", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 2 && frame < 7 ? 0.3 : 1 }), _jsx("path", { d: "M301.501 409L419.001 478.5", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: frame > 2 && frame < 7 ? 0.3 : 1 }), _jsx("circle", { cx: "419", cy: "477.576", r: "7", fill: "white" }), _jsx("circle", { cx: "301.914", cy: "263", r: "7", fill: "white" }), _jsx("circle", { cx: "301.444", cy: "409", r: "7", fill: "white" })] }))] }))] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_428_1188", children: _jsx("rect", { width: "840", height: "740", fill: "white" }) }) })] }));
|
|
28
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { SelfieCaptureController, SelfieCaptureControllerState } from '@idmission/websdk-core/selfieCapture';
|
|
3
|
+
import { type FaceCaptureGuideOverlayClassNames, type FaceGuideStatus } from './FaceCaptureGuideOverlay';
|
|
4
|
+
import { type GuidanceMessageVariant } from '../GuidanceMessage';
|
|
5
|
+
import { type SelfieCaptureLoadingOverlayAssets, type SelfieCaptureLoadingOverlayClassNames, type SelfieCaptureLoadingOverlayColors, type SelfieCaptureLoadingOverlayMode, type SelfieCaptureLoadingOverlayVerbiage } from '../selfie_loading/SelfieCaptureLoadingOverlay';
|
|
6
|
+
import { type ErrorScreenClassNames, type ErrorScreenVerbiage } from '../error/ErrorScreen';
|
|
7
|
+
import { type SelfieCaptureFallbackClassNames, type SelfieCaptureFallbackColors, type SelfieCaptureFallbackVerbiage } from '../fallback/SelfieCaptureFallback';
|
|
8
|
+
export type SelfieCaptureSurfaceClassNames = {
|
|
9
|
+
cameraFeed?: string;
|
|
10
|
+
guides?: FaceCaptureGuideOverlayClassNames;
|
|
11
|
+
guidanceMessageContainer?: string;
|
|
12
|
+
guidanceMessage?: string;
|
|
13
|
+
loadingOverlay?: SelfieCaptureLoadingOverlayClassNames;
|
|
14
|
+
error?: ErrorScreenClassNames;
|
|
15
|
+
fallback?: SelfieCaptureFallbackClassNames;
|
|
16
|
+
exitBtn?: string;
|
|
17
|
+
manualCaptureBtnContainer?: string;
|
|
18
|
+
manualCaptureBtn?: string;
|
|
19
|
+
};
|
|
20
|
+
export type SelfieCaptureSurfaceAssets = {
|
|
21
|
+
loadingOverlay?: SelfieCaptureLoadingOverlayAssets;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* sdk2's selfie/liveness `colors` bag reaches 3.0 in two halves: the guide and
|
|
25
|
+
* guidance-pill colours are theme fields now (`theme.selfieCapture.guides`,
|
|
26
|
+
* `theme.guidanceMessages`), and the loading overlay kept its own per-screen
|
|
27
|
+
* bag — which is this.
|
|
28
|
+
*/
|
|
29
|
+
export type SelfieCaptureSurfaceColors = {
|
|
30
|
+
loadingOverlay?: SelfieCaptureLoadingOverlayColors;
|
|
31
|
+
fallback?: SelfieCaptureFallbackColors;
|
|
32
|
+
};
|
|
33
|
+
export type SelfieCaptureSurfaceVerbiage = {
|
|
34
|
+
loadingOverlay?: SelfieCaptureLoadingOverlayVerbiage;
|
|
35
|
+
error?: ErrorScreenVerbiage;
|
|
36
|
+
fallback?: SelfieCaptureFallbackVerbiage;
|
|
37
|
+
};
|
|
38
|
+
export type SelfieCaptureSurfaceProps = {
|
|
39
|
+
controller: SelfieCaptureController;
|
|
40
|
+
state: SelfieCaptureControllerState;
|
|
41
|
+
loadingOverlayMode: SelfieCaptureLoadingOverlayMode;
|
|
42
|
+
sessionReady: boolean;
|
|
43
|
+
autoContinueAfterLoading: boolean;
|
|
44
|
+
showIntroScreen: boolean;
|
|
45
|
+
transitionFromIdCapture: boolean;
|
|
46
|
+
onExit?: () => void;
|
|
47
|
+
onLoadingStarted?: () => void;
|
|
48
|
+
onLoadingProgress?: (progress: number) => void;
|
|
49
|
+
onLoadingCompleted?: () => void;
|
|
50
|
+
onLoadingFailed?: (error?: Error) => void;
|
|
51
|
+
onLoadingOverlayDismissed?: () => void;
|
|
52
|
+
onCameraAccessDenied?: () => void;
|
|
53
|
+
/** sdk2's `onModelError` / `onSelfieCaptureModelError`: fires once with the
|
|
54
|
+
* Error when a selfie model fails to load or times out. `onLoadingFailed`
|
|
55
|
+
* carries the same event but is the loading overlay's own lifecycle
|
|
56
|
+
* notification; both fire, exactly as both did in 2.x. */
|
|
57
|
+
onModelError?: (error: Error) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Fires once when the controller reports `CAMERA_TAMPERING_SUSPECTED` —
|
|
60
|
+
* sdk2's `onCameraTamperingDetected`, which every flow with a selfie stage
|
|
61
|
+
* declares. The ID stage has always had this; the selfie stage could not
|
|
62
|
+
* until core stopped collapsing the code into `CAPTURE_FAILED`.
|
|
63
|
+
*/
|
|
64
|
+
onCameraTamperingDetected?: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Renders an exit button on the tampering screen, which is otherwise a dead
|
|
67
|
+
* end (the error is `recoverable: false`, so `ErrorScreen` offers no Retry).
|
|
68
|
+
* Ports sdk2's `onExitAfterTamperSealPopped`, including its bind gate.
|
|
69
|
+
*/
|
|
70
|
+
onExitAfterTamperSealPopped?: () => void;
|
|
71
|
+
onUserCancel?: () => void;
|
|
72
|
+
customOverlayContent?: ReactNode;
|
|
73
|
+
allowManualSelfieCaptureOnLoadingError?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* sdk2's stock-camera fallback: when guidance fails and manual in-camera
|
|
76
|
+
* capture was NOT enabled, offer the device picker so the user can still
|
|
77
|
+
* finish. Without it a model failure dead-ends at "Retry".
|
|
78
|
+
*/
|
|
79
|
+
fallbackCapture?: boolean;
|
|
80
|
+
/** Reads as a normal capture step rather than an apology. sdk2's prop. */
|
|
81
|
+
silentFallback?: boolean;
|
|
82
|
+
manualCaptureText?: ReactNode;
|
|
83
|
+
manualCaptureButtonText?: ReactNode;
|
|
84
|
+
/** An existing, persistently mounted video element owned by a parent flow. */
|
|
85
|
+
videoRef?: RefObject<HTMLVideoElement | null>;
|
|
86
|
+
/** False when a parent flow owns the shared camera feed element. */
|
|
87
|
+
renderCameraFeed?: boolean;
|
|
88
|
+
/** False when a parent flow owns the face-guide composition. */
|
|
89
|
+
renderFaceGuide?: boolean;
|
|
90
|
+
/** Whether the mask/guidance-pill layer renders at all -- the calling
|
|
91
|
+
* view's own phase-set decision (plain vs. liveness disagree). */
|
|
92
|
+
showCaptureSurface: boolean;
|
|
93
|
+
maskStatus: FaceGuideStatus;
|
|
94
|
+
showGuidancePill: boolean;
|
|
95
|
+
guidanceText: ReactNode;
|
|
96
|
+
guidanceVariant: GuidanceMessageVariant;
|
|
97
|
+
/** Renders sdk2's face-detection debug overlay (box + keypoints/mesh +
|
|
98
|
+
* sample points) and DebugStatsPane readout -- sdk2 SelfieCapture.tsx:
|
|
99
|
+
* 346-453. Default false; both SelfieCaptureView and FaceLivenessView
|
|
100
|
+
* forward their own `debugMode` prop straight through here since they
|
|
101
|
+
* share this exact rendering. sdk2 additionally gates keypoints/mesh
|
|
102
|
+
* behind a second `showFaceLandmarks` prop and sample points behind a
|
|
103
|
+
* third `debugShowSamplePoints` prop (both independent of `debugMode`,
|
|
104
|
+
* SelfieCapture.tsx:149-151) -- this port collapses all three into the
|
|
105
|
+
* one `debugMode` flag it was asked to add. `showFaceLandmarks` and
|
|
106
|
+
* `debugShowSamplePoints` below reinstate the two finer gates for hosts
|
|
107
|
+
* that use them. */
|
|
108
|
+
debugMode?: boolean;
|
|
109
|
+
showFaceLandmarks?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* sdk2's third debug gate: sample points render only when `debugMode` AND
|
|
112
|
+
* this are both on (SelfieCapture.tsx:355-356).
|
|
113
|
+
*
|
|
114
|
+
* Defaults to TRUE here rather than to sdk2's `false`, because 3.0 has been
|
|
115
|
+
* showing sample points under `debugMode` alone since the port and a host
|
|
116
|
+
* relying on that should not lose them. The compat façade passes sdk2's own
|
|
117
|
+
* default through for 2.x callers.
|
|
118
|
+
*/
|
|
119
|
+
debugShowSamplePoints?: boolean;
|
|
120
|
+
verbiage?: SelfieCaptureSurfaceVerbiage;
|
|
121
|
+
classNames?: SelfieCaptureSurfaceClassNames;
|
|
122
|
+
colors?: SelfieCaptureSurfaceColors;
|
|
123
|
+
assets?: SelfieCaptureSurfaceAssets;
|
|
124
|
+
};
|
|
125
|
+
export declare function SelfieCaptureSurface({ controller, state, loadingOverlayMode, sessionReady, autoContinueAfterLoading, showIntroScreen, transitionFromIdCapture, onExit, onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onLoadingOverlayDismissed, onCameraAccessDenied, onModelError, onCameraTamperingDetected, onExitAfterTamperSealPopped, onUserCancel, customOverlayContent, allowManualSelfieCaptureOnLoadingError, fallbackCapture, silentFallback, manualCaptureText, manualCaptureButtonText, videoRef, renderCameraFeed, renderFaceGuide, showCaptureSurface, maskStatus, showGuidancePill, guidanceText, guidanceVariant, debugMode, showFaceLandmarks, debugShowSamplePoints, verbiage, classNames, colors, assets, }: SelfieCaptureSurfaceProps): ReactElement;
|
|
126
|
+
//# sourceMappingURL=SelfieCaptureSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfieCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/components/selfie/SelfieCaptureSurface.tsx"],"names":[],"mappings":"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"}
|