@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.
Files changed (500) hide show
  1. package/README.md +189 -0
  2. package/dist/DocumentCaptureView.d.ts +111 -0
  3. package/dist/DocumentCaptureView.d.ts.map +1 -0
  4. package/dist/DocumentCaptureView.js +225 -0
  5. package/dist/FaceLivenessView.d.ts +88 -0
  6. package/dist/FaceLivenessView.d.ts.map +1 -0
  7. package/dist/FaceLivenessView.js +298 -0
  8. package/dist/IdCaptureView.d.ts +271 -0
  9. package/dist/IdCaptureView.d.ts.map +1 -0
  10. package/dist/IdCaptureView.js +454 -0
  11. package/dist/SelfieCaptureView.d.ts +119 -0
  12. package/dist/SelfieCaptureView.d.ts.map +1 -0
  13. package/dist/SelfieCaptureView.js +168 -0
  14. package/dist/SignatureCaptureView.d.ts +136 -0
  15. package/dist/SignatureCaptureView.d.ts.map +1 -0
  16. package/dist/SignatureCaptureView.js +521 -0
  17. package/dist/VideoIdCaptureView.d.ts +104 -0
  18. package/dist/VideoIdCaptureView.d.ts.map +1 -0
  19. package/dist/VideoIdCaptureView.js +253 -0
  20. package/dist/bindings/useDocumentCapture.d.ts +3 -0
  21. package/dist/bindings/useDocumentCapture.d.ts.map +1 -0
  22. package/dist/bindings/useDocumentCapture.js +6 -0
  23. package/dist/bindings/useIdCapture.d.ts +5 -0
  24. package/dist/bindings/useIdCapture.d.ts.map +1 -0
  25. package/dist/bindings/useIdCapture.js +53 -0
  26. package/dist/bindings/useSelfieCapture.d.ts +5 -0
  27. package/dist/bindings/useSelfieCapture.d.ts.map +1 -0
  28. package/dist/bindings/useSelfieCapture.js +53 -0
  29. package/dist/bindings/useSignatureCapture.d.ts +3 -0
  30. package/dist/bindings/useSignatureCapture.d.ts.map +1 -0
  31. package/dist/bindings/useSignatureCapture.js +6 -0
  32. package/dist/bindings/useVideoIdCapture.d.ts +3 -0
  33. package/dist/bindings/useVideoIdCapture.d.ts.map +1 -0
  34. package/dist/bindings/useVideoIdCapture.js +6 -0
  35. package/dist/components/CameraFeed.d.ts +36 -0
  36. package/dist/components/CameraFeed.d.ts.map +1 -0
  37. package/dist/components/CameraFeed.js +74 -0
  38. package/dist/components/ExitCaptureButton.d.ts +6 -0
  39. package/dist/components/ExitCaptureButton.d.ts.map +1 -0
  40. package/dist/components/ExitCaptureButton.js +32 -0
  41. package/dist/components/GuidanceMessage.d.ts +25 -0
  42. package/dist/components/GuidanceMessage.d.ts.map +1 -0
  43. package/dist/components/GuidanceMessage.js +39 -0
  44. package/dist/components/OverrideWrongDocumentTypeDialog.d.ts +20 -0
  45. package/dist/components/OverrideWrongDocumentTypeDialog.d.ts.map +1 -0
  46. package/dist/components/OverrideWrongDocumentTypeDialog.js +55 -0
  47. package/dist/components/additional_documents/AdditionalDocumentCapture.d.ts +41 -0
  48. package/dist/components/additional_documents/AdditionalDocumentCapture.d.ts.map +1 -0
  49. package/dist/components/additional_documents/AdditionalDocumentCapture.js +118 -0
  50. package/dist/components/additional_documents/AdditionalDocumentCaptureWizard.d.ts +18 -0
  51. package/dist/components/additional_documents/AdditionalDocumentCaptureWizard.d.ts.map +1 -0
  52. package/dist/components/additional_documents/AdditionalDocumentCaptureWizard.js +93 -0
  53. package/dist/components/additional_documents/sequence.d.ts +10 -0
  54. package/dist/components/additional_documents/sequence.d.ts.map +1 -0
  55. package/dist/components/additional_documents/sequence.js +11 -0
  56. package/dist/components/additional_documents/types.d.ts +15 -0
  57. package/dist/components/additional_documents/types.d.ts.map +1 -0
  58. package/dist/components/additional_documents/types.js +1 -0
  59. package/dist/components/barcode/BarcodeGuideOverlay.d.ts +23 -0
  60. package/dist/components/barcode/BarcodeGuideOverlay.d.ts.map +1 -0
  61. package/dist/components/barcode/BarcodeGuideOverlay.js +157 -0
  62. package/dist/components/barcode/BarcodeSuccessOverlay.d.ts +7 -0
  63. package/dist/components/barcode/BarcodeSuccessOverlay.d.ts.map +1 -0
  64. package/dist/components/barcode/BarcodeSuccessOverlay.js +58 -0
  65. package/dist/components/common/ButtonsRow.d.ts +2 -0
  66. package/dist/components/common/ButtonsRow.d.ts.map +1 -0
  67. package/dist/components/common/ButtonsRow.js +7 -0
  68. package/dist/components/common/CapturedDocumentImg.d.ts +7 -0
  69. package/dist/components/common/CapturedDocumentImg.d.ts.map +1 -0
  70. package/dist/components/common/CapturedDocumentImg.js +31 -0
  71. package/dist/components/common/Card.d.ts +9 -0
  72. package/dist/components/common/Card.d.ts.map +1 -0
  73. package/dist/components/common/Card.js +16 -0
  74. package/dist/components/common/LoaderButton.d.ts +31 -0
  75. package/dist/components/common/LoaderButton.d.ts.map +1 -0
  76. package/dist/components/common/LoaderButton.js +444 -0
  77. package/dist/components/common/LoadingListItemIndicator.d.ts +5 -0
  78. package/dist/components/common/LoadingListItemIndicator.d.ts.map +1 -0
  79. package/dist/components/common/LoadingListItemIndicator.js +8 -0
  80. package/dist/components/common/animation.d.ts +5 -0
  81. package/dist/components/common/animation.d.ts.map +1 -0
  82. package/dist/components/common/animation.js +35 -0
  83. package/dist/components/common/downloadingLabel.d.ts +10 -0
  84. package/dist/components/common/downloadingLabel.d.ts.map +1 -0
  85. package/dist/components/common/downloadingLabel.js +15 -0
  86. package/dist/components/common/overlay.d.ts +142 -0
  87. package/dist/components/common/overlay.d.ts.map +1 -0
  88. package/dist/components/common/overlay.js +183 -0
  89. package/dist/components/customer_match/CustomerMatchFailure.d.ts +37 -0
  90. package/dist/components/customer_match/CustomerMatchFailure.d.ts.map +1 -0
  91. package/dist/components/customer_match/CustomerMatchFailure.js +38 -0
  92. package/dist/components/customer_match/CustomerMatchSuccess.d.ts +35 -0
  93. package/dist/components/customer_match/CustomerMatchSuccess.d.ts.map +1 -0
  94. package/dist/components/customer_match/CustomerMatchSuccess.js +44 -0
  95. package/dist/components/debug/debug.d.ts +91 -0
  96. package/dist/components/debug/debug.d.ts.map +1 -0
  97. package/dist/components/debug/debug.js +270 -0
  98. package/dist/components/document/DocumentCaptureGuideOverlay.d.ts +15 -0
  99. package/dist/components/document/DocumentCaptureGuideOverlay.d.ts.map +1 -0
  100. package/dist/components/document/DocumentCaptureGuideOverlay.js +148 -0
  101. package/dist/components/document/guideRect.d.ts +11 -0
  102. package/dist/components/document/guideRect.d.ts.map +1 -0
  103. package/dist/components/document/guideRect.js +25 -0
  104. package/dist/components/document/types.d.ts +25 -0
  105. package/dist/components/document/types.d.ts.map +1 -0
  106. package/dist/components/document/types.js +1 -0
  107. package/dist/components/error/CameraAccessDeniedOverlay.d.ts +31 -0
  108. package/dist/components/error/CameraAccessDeniedOverlay.d.ts.map +1 -0
  109. package/dist/components/error/CameraAccessDeniedOverlay.js +45 -0
  110. package/dist/components/error/ErrorScreen.d.ts +60 -0
  111. package/dist/components/error/ErrorScreen.d.ts.map +1 -0
  112. package/dist/components/error/ErrorScreen.js +150 -0
  113. package/dist/components/face_liveness/FaceLivenessFailure.d.ts +35 -0
  114. package/dist/components/face_liveness/FaceLivenessFailure.d.ts.map +1 -0
  115. package/dist/components/face_liveness/FaceLivenessFailure.js +30 -0
  116. package/dist/components/face_liveness/FaceLivenessSuccess.d.ts +31 -0
  117. package/dist/components/face_liveness/FaceLivenessSuccess.d.ts.map +1 -0
  118. package/dist/components/face_liveness/FaceLivenessSuccess.js +56 -0
  119. package/dist/components/fallback/IdCaptureFallback.d.ts +58 -0
  120. package/dist/components/fallback/IdCaptureFallback.d.ts.map +1 -0
  121. package/dist/components/fallback/IdCaptureFallback.js +128 -0
  122. package/dist/components/fallback/IdCaptureOrUploadScreen.d.ts +75 -0
  123. package/dist/components/fallback/IdCaptureOrUploadScreen.d.ts.map +1 -0
  124. package/dist/components/fallback/IdCaptureOrUploadScreen.js +205 -0
  125. package/dist/components/fallback/SelfieCaptureFallback.d.ts +54 -0
  126. package/dist/components/fallback/SelfieCaptureFallback.d.ts.map +1 -0
  127. package/dist/components/fallback/SelfieCaptureFallback.js +106 -0
  128. package/dist/components/fallback/fallbackInstructionStep.d.ts +5 -0
  129. package/dist/components/fallback/fallbackInstructionStep.d.ts.map +1 -0
  130. package/dist/components/fallback/fallbackInstructionStep.js +18 -0
  131. package/dist/components/fallback/readFile.d.ts +2 -0
  132. package/dist/components/fallback/readFile.d.ts.map +1 -0
  133. package/dist/components/fallback/readFile.js +14 -0
  134. package/dist/components/guide_images/backToFront.d.ts +3 -0
  135. package/dist/components/guide_images/backToFront.d.ts.map +1 -0
  136. package/dist/components/guide_images/backToFront.js +17 -0
  137. package/dist/components/guide_images/byUrl.d.ts +3 -0
  138. package/dist/components/guide_images/byUrl.d.ts.map +1 -0
  139. package/dist/components/guide_images/byUrl.js +6 -0
  140. package/dist/components/guide_images/defaults.d.ts +37 -0
  141. package/dist/components/guide_images/defaults.d.ts.map +1 -0
  142. package/dist/components/guide_images/defaults.js +37 -0
  143. package/dist/components/guide_images/index.d.ts +7 -0
  144. package/dist/components/guide_images/index.d.ts.map +1 -0
  145. package/dist/components/guide_images/index.js +5 -0
  146. package/dist/components/guide_images/orientation.d.ts +2 -0
  147. package/dist/components/guide_images/orientation.d.ts.map +1 -0
  148. package/dist/components/guide_images/orientation.js +5 -0
  149. package/dist/components/guide_images/types.d.ts +15 -0
  150. package/dist/components/guide_images/types.d.ts.map +1 -0
  151. package/dist/components/guide_images/types.js +1 -0
  152. package/dist/components/guide_images/useGuideImages.d.ts +3 -0
  153. package/dist/components/guide_images/useGuideImages.d.ts.map +1 -0
  154. package/dist/components/guide_images/useGuideImages.js +19 -0
  155. package/dist/components/guides/FlipIdPrompt.d.ts +28 -0
  156. package/dist/components/guides/FlipIdPrompt.d.ts.map +1 -0
  157. package/dist/components/guides/FlipIdPrompt.js +54 -0
  158. package/dist/components/guides/IdCaptureFitGuide.d.ts +51 -0
  159. package/dist/components/guides/IdCaptureFitGuide.d.ts.map +1 -0
  160. package/dist/components/guides/IdCaptureFitGuide.js +199 -0
  161. package/dist/components/guides/IdCaptureGuideOverlay.d.ts +100 -0
  162. package/dist/components/guides/IdCaptureGuideOverlay.d.ts.map +1 -0
  163. package/dist/components/guides/IdCaptureGuideOverlay.js +137 -0
  164. package/dist/components/guides/IdCaptureGuides.d.ts +47 -0
  165. package/dist/components/guides/IdCaptureGuides.d.ts.map +1 -0
  166. package/dist/components/guides/IdCaptureGuides.js +136 -0
  167. package/dist/components/guides/IdCaptureGuidesCommon.d.ts +136 -0
  168. package/dist/components/guides/IdCaptureGuidesCommon.d.ts.map +1 -0
  169. package/dist/components/guides/IdCaptureGuidesCommon.js +123 -0
  170. package/dist/components/loading/IdCaptureLoadingGraphic.d.ts +9 -0
  171. package/dist/components/loading/IdCaptureLoadingGraphic.d.ts.map +1 -0
  172. package/dist/components/loading/IdCaptureLoadingGraphic.js +76 -0
  173. package/dist/components/loading/IdCaptureLoadingOverlay.d.ts +134 -0
  174. package/dist/components/loading/IdCaptureLoadingOverlay.d.ts.map +1 -0
  175. package/dist/components/loading/IdCaptureLoadingOverlay.js +13 -0
  176. package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts +3 -0
  177. package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts.map +1 -0
  178. package/dist/components/loading/IdCaptureLoadingOverlayDefault.js +196 -0
  179. package/dist/components/loading/IdCaptureLoadingOverlayLegacy.d.ts +4 -0
  180. package/dist/components/loading/IdCaptureLoadingOverlayLegacy.d.ts.map +1 -0
  181. package/dist/components/loading/IdCaptureLoadingOverlayLegacy.js +69 -0
  182. package/dist/components/loading/IdCaptureLoadingOverlayRing.d.ts +3 -0
  183. package/dist/components/loading/IdCaptureLoadingOverlayRing.d.ts.map +1 -0
  184. package/dist/components/loading/IdCaptureLoadingOverlayRing.js +260 -0
  185. package/dist/components/loading/RingIntroScreen.d.ts +39 -0
  186. package/dist/components/loading/RingIntroScreen.d.ts.map +1 -0
  187. package/dist/components/loading/RingIntroScreen.js +216 -0
  188. package/dist/components/loading/RingProgress.d.ts +9 -0
  189. package/dist/components/loading/RingProgress.d.ts.map +1 -0
  190. package/dist/components/loading/RingProgress.js +24 -0
  191. package/dist/components/loading/RingStageTransition.d.ts +27 -0
  192. package/dist/components/loading/RingStageTransition.d.ts.map +1 -0
  193. package/dist/components/loading/RingStageTransition.js +145 -0
  194. package/dist/components/loading/customerSpinner.d.ts +58 -0
  195. package/dist/components/loading/customerSpinner.d.ts.map +1 -0
  196. package/dist/components/loading/customerSpinner.js +69 -0
  197. package/dist/components/loading/ringIntro.d.ts +15 -0
  198. package/dist/components/loading/ringIntro.d.ts.map +1 -0
  199. package/dist/components/loading/ringIntro.js +5 -0
  200. package/dist/components/loading/ringStatus.d.ts +8 -0
  201. package/dist/components/loading/ringStatus.d.ts.map +1 -0
  202. package/dist/components/loading/ringStatus.js +13 -0
  203. package/dist/components/loading/useAutoContinueWhenReady.d.ts +8 -0
  204. package/dist/components/loading/useAutoContinueWhenReady.d.ts.map +1 -0
  205. package/dist/components/loading/useAutoContinueWhenReady.js +25 -0
  206. package/dist/components/review/ReviewDiagnosticsPanel.d.ts +27 -0
  207. package/dist/components/review/ReviewDiagnosticsPanel.d.ts.map +1 -0
  208. package/dist/components/review/ReviewDiagnosticsPanel.js +475 -0
  209. package/dist/components/review/ReviewScreen.d.ts +34 -0
  210. package/dist/components/review/ReviewScreen.d.ts.map +1 -0
  211. package/dist/components/review/ReviewScreen.js +91 -0
  212. package/dist/components/ring/RingFailureScreen.d.ts +41 -0
  213. package/dist/components/ring/RingFailureScreen.d.ts.map +1 -0
  214. package/dist/components/ring/RingFailureScreen.js +384 -0
  215. package/dist/components/ring/RingFinishingScreen.d.ts +27 -0
  216. package/dist/components/ring/RingFinishingScreen.d.ts.map +1 -0
  217. package/dist/components/ring/RingFinishingScreen.js +184 -0
  218. package/dist/components/ring/RingSuccessScreen.d.ts +33 -0
  219. package/dist/components/ring/RingSuccessScreen.d.ts.map +1 -0
  220. package/dist/components/ring/RingSuccessScreen.js +185 -0
  221. package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts +17 -0
  222. package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts.map +1 -0
  223. package/dist/components/selfie/FaceCaptureGuideOverlay.js +39 -0
  224. package/dist/components/selfie/SelfieCameraFeed.d.ts +8 -0
  225. package/dist/components/selfie/SelfieCameraFeed.d.ts.map +1 -0
  226. package/dist/components/selfie/SelfieCameraFeed.js +16 -0
  227. package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts +15 -0
  228. package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts.map +1 -0
  229. package/dist/components/selfie/SelfieCaptureAnimatedMask.js +111 -0
  230. package/dist/components/selfie/SelfieCaptureLoadingGraphic.d.ts +4 -0
  231. package/dist/components/selfie/SelfieCaptureLoadingGraphic.d.ts.map +1 -0
  232. package/dist/components/selfie/SelfieCaptureLoadingGraphic.js +28 -0
  233. package/dist/components/selfie/SelfieCaptureSurface.d.ts +126 -0
  234. package/dist/components/selfie/SelfieCaptureSurface.d.ts.map +1 -0
  235. package/dist/components/selfie/SelfieCaptureSurface.js +248 -0
  236. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlay.d.ts +136 -0
  237. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlay.d.ts.map +1 -0
  238. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlay.js +13 -0
  239. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts +3 -0
  240. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -0
  241. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.js +181 -0
  242. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayLegacy.d.ts +3 -0
  243. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayLegacy.d.ts.map +1 -0
  244. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayLegacy.js +67 -0
  245. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayRing.d.ts +3 -0
  246. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayRing.d.ts.map +1 -0
  247. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayRing.js +265 -0
  248. package/dist/components/videoId/VideoIdCaptureGuides.d.ts +42 -0
  249. package/dist/components/videoId/VideoIdCaptureGuides.d.ts.map +1 -0
  250. package/dist/components/videoId/VideoIdCaptureGuides.js +173 -0
  251. package/dist/flows/AuthStateContext.d.ts +33 -0
  252. package/dist/flows/AuthStateContext.d.ts.map +1 -0
  253. package/dist/flows/AuthStateContext.js +47 -0
  254. package/dist/flows/CompositeWizard.d.ts +76 -0
  255. package/dist/flows/CompositeWizard.d.ts.map +1 -0
  256. package/dist/flows/CompositeWizard.js +200 -0
  257. package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts +28 -0
  258. package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts.map +1 -0
  259. package/dist/flows/CustomerBiometricsEnrollmentFlow.js +138 -0
  260. package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts +47 -0
  261. package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts.map +1 -0
  262. package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.js +231 -0
  263. package/dist/flows/CustomerIdentificationFlow.d.ts +4 -0
  264. package/dist/flows/CustomerIdentificationFlow.d.ts.map +1 -0
  265. package/dist/flows/CustomerIdentificationFlow.js +11 -0
  266. package/dist/flows/CustomerVerificationFlow.d.ts +9 -0
  267. package/dist/flows/CustomerVerificationFlow.d.ts.map +1 -0
  268. package/dist/flows/CustomerVerificationFlow.js +17 -0
  269. package/dist/flows/DocumentCaptureFlow.d.ts +23 -0
  270. package/dist/flows/DocumentCaptureFlow.d.ts.map +1 -0
  271. package/dist/flows/DocumentCaptureFlow.js +116 -0
  272. package/dist/flows/FaceValidationFlow.d.ts +12 -0
  273. package/dist/flows/FaceValidationFlow.d.ts.map +1 -0
  274. package/dist/flows/FaceValidationFlow.js +53 -0
  275. package/dist/flows/FlowChassis.d.ts +39 -0
  276. package/dist/flows/FlowChassis.d.ts.map +1 -0
  277. package/dist/flows/FlowChassis.js +69 -0
  278. package/dist/flows/IdAndFaceValidationFlow.d.ts +36 -0
  279. package/dist/flows/IdAndFaceValidationFlow.d.ts.map +1 -0
  280. package/dist/flows/IdAndFaceValidationFlow.js +168 -0
  281. package/dist/flows/IdValidationFlow.d.ts +29 -0
  282. package/dist/flows/IdValidationFlow.d.ts.map +1 -0
  283. package/dist/flows/IdValidationFlow.js +106 -0
  284. package/dist/flows/OrbStatusScreen.d.ts +14 -0
  285. package/dist/flows/OrbStatusScreen.d.ts.map +1 -0
  286. package/dist/flows/OrbStatusScreen.js +60 -0
  287. package/dist/flows/RemoteDiagnosticsMount.d.ts +6 -0
  288. package/dist/flows/RemoteDiagnosticsMount.d.ts.map +1 -0
  289. package/dist/flows/RemoteDiagnosticsMount.js +57 -0
  290. package/dist/flows/SignatureKYCFlow.d.ts +33 -0
  291. package/dist/flows/SignatureKYCFlow.d.ts.map +1 -0
  292. package/dist/flows/SignatureKYCFlow.js +228 -0
  293. package/dist/flows/SubmissionProvider.d.ts +40 -0
  294. package/dist/flows/SubmissionProvider.d.ts.map +1 -0
  295. package/dist/flows/SubmissionProvider.js +136 -0
  296. package/dist/flows/SubmissionSuccess.d.ts +48 -0
  297. package/dist/flows/SubmissionSuccess.d.ts.map +1 -0
  298. package/dist/flows/SubmissionSuccess.js +488 -0
  299. package/dist/flows/VideoIdValidationFlow.d.ts +61 -0
  300. package/dist/flows/VideoIdValidationFlow.d.ts.map +1 -0
  301. package/dist/flows/VideoIdValidationFlow.js +171 -0
  302. package/dist/flows/additionalDocuments.d.ts +5 -0
  303. package/dist/flows/additionalDocuments.d.ts.map +1 -0
  304. package/dist/flows/additionalDocuments.js +26 -0
  305. package/dist/flows/artifacts.d.ts +8 -0
  306. package/dist/flows/artifacts.d.ts.map +1 -0
  307. package/dist/flows/artifacts.js +80 -0
  308. package/dist/flows/customerMatch/CustomerMatchCapture.d.ts +53 -0
  309. package/dist/flows/customerMatch/CustomerMatchCapture.d.ts.map +1 -0
  310. package/dist/flows/customerMatch/CustomerMatchCapture.js +211 -0
  311. package/dist/flows/customerMatch/CustomerMatchFlow.d.ts +94 -0
  312. package/dist/flows/customerMatch/CustomerMatchFlow.d.ts.map +1 -0
  313. package/dist/flows/customerMatch/CustomerMatchFlow.js +209 -0
  314. package/dist/flows/customerMatch/adapters.d.ts +34 -0
  315. package/dist/flows/customerMatch/adapters.d.ts.map +1 -0
  316. package/dist/flows/customerMatch/adapters.js +63 -0
  317. package/dist/flows/customerMatch/identificationReducer.d.ts +34 -0
  318. package/dist/flows/customerMatch/identificationReducer.d.ts.map +1 -0
  319. package/dist/flows/customerMatch/identificationReducer.js +75 -0
  320. package/dist/flows/customerMatch/verificationReducer.d.ts +34 -0
  321. package/dist/flows/customerMatch/verificationReducer.d.ts.map +1 -0
  322. package/dist/flows/customerMatch/verificationReducer.js +77 -0
  323. package/dist/flows/documentCapture.d.ts +5 -0
  324. package/dist/flows/documentCapture.d.ts.map +1 -0
  325. package/dist/flows/documentCapture.js +8 -0
  326. package/dist/flows/jsonHighlight.d.ts +19 -0
  327. package/dist/flows/jsonHighlight.d.ts.map +1 -0
  328. package/dist/flows/jsonHighlight.js +90 -0
  329. package/dist/flows/overlays.d.ts +91 -0
  330. package/dist/flows/overlays.d.ts.map +1 -0
  331. package/dist/flows/overlays.js +150 -0
  332. package/dist/flows/ringIntroImplications.d.ts +30 -0
  333. package/dist/flows/ringIntroImplications.d.ts.map +1 -0
  334. package/dist/flows/ringIntroImplications.js +58 -0
  335. package/dist/flows/ringScreens.d.ts +27 -0
  336. package/dist/flows/ringScreens.d.ts.map +1 -0
  337. package/dist/flows/ringScreens.js +18 -0
  338. package/dist/flows/sequencer.d.ts +12 -0
  339. package/dist/flows/sequencer.d.ts.map +1 -0
  340. package/dist/flows/sequencer.js +18 -0
  341. package/dist/flows/sharedCamera.d.ts +23 -0
  342. package/dist/flows/sharedCamera.d.ts.map +1 -0
  343. package/dist/flows/sharedCamera.js +64 -0
  344. package/dist/flows/signatureStep.d.ts +25 -0
  345. package/dist/flows/signatureStep.d.ts.map +1 -0
  346. package/dist/flows/signatureStep.js +99 -0
  347. package/dist/flows/types.d.ts +106 -0
  348. package/dist/flows/types.d.ts.map +1 -0
  349. package/dist/flows/types.js +1 -0
  350. package/dist/flows/useGeolocation.d.ts +24 -0
  351. package/dist/flows/useGeolocation.d.ts.map +1 -0
  352. package/dist/flows/useGeolocation.js +82 -0
  353. package/dist/flows/useShowSuccessScreen.d.ts +3 -0
  354. package/dist/flows/useShowSuccessScreen.d.ts.map +1 -0
  355. package/dist/flows/useShowSuccessScreen.js +51 -0
  356. package/dist/flows/useTimeout.d.ts +7 -0
  357. package/dist/flows/useTimeout.d.ts.map +1 -0
  358. package/dist/flows/useTimeout.js +68 -0
  359. package/dist/flows/videoIdSteps.d.ts +33 -0
  360. package/dist/flows/videoIdSteps.d.ts.map +1 -0
  361. package/dist/flows/videoIdSteps.js +54 -0
  362. package/dist/guidance/selfieStrings.d.ts +18 -0
  363. package/dist/guidance/selfieStrings.d.ts.map +1 -0
  364. package/dist/guidance/selfieStrings.js +97 -0
  365. package/dist/guidance/strings.d.ts +4 -0
  366. package/dist/guidance/strings.d.ts.map +1 -0
  367. package/dist/guidance/strings.js +43 -0
  368. package/dist/guidance/videoIdStrings.d.ts +23 -0
  369. package/dist/guidance/videoIdStrings.d.ts.map +1 -0
  370. package/dist/guidance/videoIdStrings.js +23 -0
  371. package/dist/i18n/index.d.ts +1221 -0
  372. package/dist/i18n/index.d.ts.map +1 -0
  373. package/dist/i18n/index.js +92 -0
  374. package/dist/i18n/locales/de.d.ts +149 -0
  375. package/dist/i18n/locales/de.d.ts.map +1 -0
  376. package/dist/i18n/locales/de.js +147 -0
  377. package/dist/i18n/locales/en.d.ts +3 -0
  378. package/dist/i18n/locales/en.d.ts.map +1 -0
  379. package/dist/i18n/locales/en.js +1 -0
  380. package/dist/i18n/locales/es.d.ts +149 -0
  381. package/dist/i18n/locales/es.d.ts.map +1 -0
  382. package/dist/i18n/locales/es.js +147 -0
  383. package/dist/i18n/locales/fr.d.ts +149 -0
  384. package/dist/i18n/locales/fr.d.ts.map +1 -0
  385. package/dist/i18n/locales/fr.js +147 -0
  386. package/dist/i18n/locales/it.d.ts +149 -0
  387. package/dist/i18n/locales/it.d.ts.map +1 -0
  388. package/dist/i18n/locales/it.js +147 -0
  389. package/dist/i18n/locales/ja.d.ts +149 -0
  390. package/dist/i18n/locales/ja.d.ts.map +1 -0
  391. package/dist/i18n/locales/ja.js +147 -0
  392. package/dist/i18n/locales/pt.d.ts +149 -0
  393. package/dist/i18n/locales/pt.d.ts.map +1 -0
  394. package/dist/i18n/locales/pt.js +147 -0
  395. package/dist/i18n/locales/ru.d.ts +149 -0
  396. package/dist/i18n/locales/ru.d.ts.map +1 -0
  397. package/dist/i18n/locales/ru.js +147 -0
  398. package/dist/i18n/locales/zh.d.ts +149 -0
  399. package/dist/i18n/locales/zh.d.ts.map +1 -0
  400. package/dist/i18n/locales/zh.js +147 -0
  401. package/dist/i18n/render.d.ts +3 -0
  402. package/dist/i18n/render.d.ts.map +1 -0
  403. package/dist/i18n/render.js +7 -0
  404. package/dist/index.d.ts +157 -0
  405. package/dist/index.d.ts.map +1 -0
  406. package/dist/index.js +191 -0
  407. package/dist/layout/GuideLayoutContext.d.ts +24 -0
  408. package/dist/layout/GuideLayoutContext.d.ts.map +1 -0
  409. package/dist/layout/GuideLayoutContext.js +19 -0
  410. package/dist/layout/GuideOrientationContext.d.ts +16 -0
  411. package/dist/layout/GuideOrientationContext.d.ts.map +1 -0
  412. package/dist/layout/GuideOrientationContext.js +40 -0
  413. package/dist/layout/useResizeObserver.d.ts +11 -0
  414. package/dist/layout/useResizeObserver.d.ts.map +1 -0
  415. package/dist/layout/useResizeObserver.js +114 -0
  416. package/dist/testing/alignGlobals.d.ts +2 -0
  417. package/dist/testing/alignGlobals.d.ts.map +1 -0
  418. package/dist/testing/alignGlobals.js +25 -0
  419. package/dist/testing/buildDocumentState.d.ts +4 -0
  420. package/dist/testing/buildDocumentState.d.ts.map +1 -0
  421. package/dist/testing/buildDocumentState.js +19 -0
  422. package/dist/testing/buildSelfieState.d.ts +8 -0
  423. package/dist/testing/buildSelfieState.d.ts.map +1 -0
  424. package/dist/testing/buildSelfieState.js +84 -0
  425. package/dist/testing/buildSignatureState.d.ts +3 -0
  426. package/dist/testing/buildSignatureState.d.ts.map +1 -0
  427. package/dist/testing/buildSignatureState.js +12 -0
  428. package/dist/testing/buildState.d.ts +3 -0
  429. package/dist/testing/buildState.d.ts.map +1 -0
  430. package/dist/testing/buildState.js +34 -0
  431. package/dist/testing/buildVideoIdState.d.ts +3 -0
  432. package/dist/testing/buildVideoIdState.d.ts.map +1 -0
  433. package/dist/testing/buildVideoIdState.js +11 -0
  434. package/dist/testing/classNamesLeaves.d.ts +14 -0
  435. package/dist/testing/classNamesLeaves.d.ts.map +1 -0
  436. package/dist/testing/classNamesLeaves.js +144 -0
  437. package/dist/testing/fakeClient.d.ts +61 -0
  438. package/dist/testing/fakeClient.d.ts.map +1 -0
  439. package/dist/testing/fakeClient.js +142 -0
  440. package/dist/testing/fakeController.d.ts +18 -0
  441. package/dist/testing/fakeController.d.ts.map +1 -0
  442. package/dist/testing/fakeController.js +165 -0
  443. package/dist/testing/fakeDocumentController.d.ts +37 -0
  444. package/dist/testing/fakeDocumentController.d.ts.map +1 -0
  445. package/dist/testing/fakeDocumentController.js +104 -0
  446. package/dist/testing/fakeSelfieController.d.ts +15 -0
  447. package/dist/testing/fakeSelfieController.d.ts.map +1 -0
  448. package/dist/testing/fakeSelfieController.js +154 -0
  449. package/dist/testing/fakeSignatureController.d.ts +12 -0
  450. package/dist/testing/fakeSignatureController.d.ts.map +1 -0
  451. package/dist/testing/fakeSignatureController.js +58 -0
  452. package/dist/testing/fakeVideoIdController.d.ts +12 -0
  453. package/dist/testing/fakeVideoIdController.d.ts.map +1 -0
  454. package/dist/testing/fakeVideoIdController.js +50 -0
  455. package/dist/testing/index.d.ts +15 -0
  456. package/dist/testing/index.d.ts.map +1 -0
  457. package/dist/testing/index.js +18 -0
  458. package/dist/testing/stubSignatureCanvas.d.ts +2 -0
  459. package/dist/testing/stubSignatureCanvas.d.ts.map +1 -0
  460. package/dist/testing/stubSignatureCanvas.js +26 -0
  461. package/dist/testing/stubVideoCaptureDom.d.ts +2 -0
  462. package/dist/testing/stubVideoCaptureDom.d.ts.map +1 -0
  463. package/dist/testing/stubVideoCaptureDom.js +36 -0
  464. package/dist/theme/color.d.ts +14 -0
  465. package/dist/theme/color.d.ts.map +1 -0
  466. package/dist/theme/color.js +1 -0
  467. package/dist/theme/index.d.ts +405 -0
  468. package/dist/theme/index.d.ts.map +1 -0
  469. package/dist/theme/index.js +230 -0
  470. package/dist/utils/canvas.d.ts +3 -0
  471. package/dist/utils/canvas.d.ts.map +1 -0
  472. package/dist/utils/canvas.js +16 -0
  473. package/dist/utils/cdn.d.ts +2 -0
  474. package/dist/utils/cdn.d.ts.map +1 -0
  475. package/dist/utils/cdn.js +3 -0
  476. package/dist/utils/cropping.d.ts +4 -0
  477. package/dist/utils/cropping.d.ts.map +1 -0
  478. package/dist/utils/cropping.js +11 -0
  479. package/dist/utils/flowClock.d.ts +6 -0
  480. package/dist/utils/flowClock.d.ts.map +1 -0
  481. package/dist/utils/flowClock.js +22 -0
  482. package/dist/utils/isMobile.d.ts +3 -0
  483. package/dist/utils/isMobile.d.ts.map +1 -0
  484. package/dist/utils/isMobile.js +35 -0
  485. package/dist/utils/loadProgressHooks.d.ts +25 -0
  486. package/dist/utils/loadProgressHooks.d.ts.map +1 -0
  487. package/dist/utils/loadProgressHooks.js +79 -0
  488. package/dist/utils/logger.d.ts +18 -0
  489. package/dist/utils/logger.d.ts.map +1 -0
  490. package/dist/utils/logger.js +38 -0
  491. package/dist/utils/merge.d.ts +3 -0
  492. package/dist/utils/merge.d.ts.map +1 -0
  493. package/dist/utils/merge.js +23 -0
  494. package/dist/utils/signaturePadStrokeGuard.d.ts +16 -0
  495. package/dist/utils/signaturePadStrokeGuard.d.ts.map +1 -0
  496. package/dist/utils/signaturePadStrokeGuard.js +70 -0
  497. package/dist/version.d.ts +2 -0
  498. package/dist/version.d.ts.map +1 -0
  499. package/dist/version.js +3 -0
  500. package/package.json +71 -0
@@ -0,0 +1,384 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ // Ported from sdk2/src/components/common/RingFailureScreen.tsx. Visuals,
3
+ // copy, and animation timings are verbatim; only the imports are repointed at
4
+ // this package's equivalents (../common/overlay, ../common/LoaderButton,
5
+ // ../../i18n) and the default React import is dropped (this package uses the
6
+ // automatic JSX runtime).
7
+ //
8
+ // Why this exists: the legacy CustomerMatchFailure/FaceLivenessFailure screens
9
+ // render a full-bleed CDN placeholder illustration. This is the screen sdk2
10
+ // built to replace it for ring-mode journeys -- a compact selfie thumbnail,
11
+ // actionable retry tips, and pill actions. Its sibling loading-side pieces
12
+ // (RingIntroScreen/RingProgress/RingStageTransition) were ported by workstream
13
+ // 01 into ../loading; the three RESULT screens land here.
14
+ import { styled, keyframes, useTheme } from 'styled-components';
15
+ import { useTranslations } from '../../i18n';
16
+ import { LoaderButton } from '../common/LoaderButton';
17
+ import { LoadingOverlayInner, OverlayContainer } from '../common/overlay';
18
+ const toDataUrl = (value) => value.startsWith('data:') ? value : `data:image/jpeg;base64,${value}`;
19
+ /**
20
+ * A calm, actionable result screen for ring-mode verification failures. It
21
+ * keeps the ring journey's soft gradient, compact capture preview, and pill
22
+ * actions while replacing the legacy full-screen placeholder illustration.
23
+ */
24
+ export const RingFailureScreen = ({ reason, selfieImage, canRetry = true, onRetry, onExit, verbiage: rawVerbiage = {}, classNames = {}, retryButtonColors, exitButtonColors, }) => {
25
+ const theme = useTheme();
26
+ const verbiage = useTranslations(rawVerbiage, {
27
+ failureTitleText: reason === 'notMatched'
28
+ ? 'Sorry - We could not verify you'
29
+ : "Let's try that again",
30
+ failureSubtitleText: reason === 'notMatched' ? '' : "We couldn't complete the verification.",
31
+ failureHintText: 'For the best result:',
32
+ failureLightingTipText: 'Even lighting',
33
+ failureCenteredTipText: 'Face centered',
34
+ failureUncoveredTipText: 'Face uncovered',
35
+ failureRetryBtnText: 'Try again',
36
+ failureExitBtnText: 'Exit',
37
+ });
38
+ const overlayTheme = theme.selfieCapture?.loadingOverlay ?? theme.idCapture?.loadingOverlay;
39
+ const tintBase = overlayTheme?.backgroundColor ?? 'var(--idm-color-primary-500)';
40
+ const warningAccent = retryButtonColors?.backgroundColor ??
41
+ theme.buttons?.warning?.backgroundColor ??
42
+ '#e8784f';
43
+ const exitAccent = exitButtonColors?.backgroundColor ??
44
+ theme.buttons?.secondary?.backgroundColor ??
45
+ '#66706d';
46
+ return (_jsx(OverlayContainer, { children: _jsx(FailureInner, { "$tintBase": tintBase, children: _jsxs(FailureLayout, { className: classNames.failureScreen, role: "status", "aria-live": "polite", "aria-atomic": "true", children: [_jsx(VisualSlot, { className: classNames.failureVisual, children: selfieImage ? (_jsxs(SelfieThumb, { children: [_jsx("img", { src: toDataUrl(selfieImage), alt: "" }), _jsx(ThumbStatus, { "$accent": warningAccent, "aria-hidden": "true", children: _jsxs("svg", { viewBox: "0 0 24 24", children: [_jsx("path", { d: "M12 7v6" }), _jsx("circle", { cx: "12", cy: "17", r: "1" })] }) })] })) : (_jsx(FallbackStatus, { "$accent": warningAccent, "aria-hidden": "true", children: _jsxs("svg", { viewBox: "0 0 24 24", children: [_jsx("path", { d: "M12 7v6" }), _jsx("circle", { cx: "12", cy: "17", r: "1" })] }) })) }), _jsx(Title, { className: classNames.failureTitle, children: verbiage.failureTitleText }), verbiage.failureSubtitleText && (_jsx(Subtitle, { className: classNames.failureSubtitle, children: verbiage.failureSubtitleText })), canRetry && (_jsxs(TipsPanel, { className: classNames.failureTips, children: [_jsx(TipsHeading, { children: verbiage.failureHintText }), _jsxs(Tips, { children: [_jsxs(Tip, { className: classNames.failureTip, children: [_jsx(TipIcon, { "aria-hidden": "true", children: _jsxs("svg", { viewBox: "0 0 24 24", children: [_jsx("circle", { cx: "12", cy: "12", r: "3.5" }), _jsx("path", { d: "M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M19.1 4.9L17 7M7 17l-2.1 2.1" })] }) }), _jsx("span", { children: verbiage.failureLightingTipText })] }), _jsxs(Tip, { className: classNames.failureTip, children: [_jsx(TipIcon, { "aria-hidden": "true", children: _jsxs("svg", { viewBox: "0 0 24 24", children: [_jsx("path", { d: "M8 3H4a1 1 0 00-1 1v4M16 3h4a1 1 0 011 1v4M8 21H4a1 1 0 01-1-1v-4M16 21h4a1 1 0 001-1v-4" }), _jsx("circle", { cx: "12", cy: "11", r: "3" }), _jsx("path", { d: "M7.5 18c1-2 2.5-3 4.5-3s3.5 1 4.5 3" })] }) }), _jsx("span", { children: verbiage.failureCenteredTipText })] }), _jsxs(Tip, { className: classNames.failureTip, children: [_jsx(TipIcon, { "aria-hidden": "true", children: _jsxs("svg", { viewBox: "0 0 24 24", children: [_jsx("circle", { cx: "12", cy: "10", r: "4" }), _jsx("path", { d: "M5.5 21c.8-4.2 3-6.5 6.5-6.5s5.7 2.3 6.5 6.5" }), _jsx("path", { d: "M9.5 10h.01M14.5 10h.01" })] }) }), _jsx("span", { children: verbiage.failureUncoveredTipText })] })] })] })), _jsx(Actions, { className: classNames.failureActions, children: canRetry ? (_jsxs(_Fragment, { children: [_jsx(PrimaryAction, { autoFocus: true, "$accent": warningAccent, variant: "warning", colors: retryButtonColors, className: classNames.failureRetryBtn, onClick: onRetry, finished: true, children: verbiage.failureRetryBtnText }), _jsx(SecondaryAction, { colors: exitButtonColors, className: classNames.failureExitBtn, onClick: onExit, finished: true, children: verbiage.failureExitBtnText })] })) : (_jsx(PrimaryAction, { autoFocus: true, "$accent": exitAccent, variant: "secondary", colors: exitButtonColors, className: classNames.failureExitBtn, onClick: onExit, finished: true, children: verbiage.failureExitBtnText })) })] }) }) }));
47
+ };
48
+ const enter = keyframes `
49
+ from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
50
+ to { opacity: 1; transform: translateY(0); filter: blur(0); }
51
+ `;
52
+ const markIn = keyframes `
53
+ from { opacity: 0; transform: scale(0.25); filter: blur(4px); }
54
+ to { opacity: 1; transform: scale(1); filter: blur(0); }
55
+ `;
56
+ // The gradient is light WHATEVER the theme says — it mixes the tint into white
57
+ // rather than replacing it — so the foreground is pinned here instead of taken
58
+ // from `loadingOverlay.textColor`. A 2.x theme sets that key for the DARK
59
+ // loading overlay, and inheriting it painted white text on this white surface:
60
+ // the tips panel (`rgb(255 255 255 / 0.62)`) went fully invisible. Same rule,
61
+ // and the same reason, as `ErrorScreen`'s `ErrorCard`.
62
+ const FailureInner = styled(LoadingOverlayInner) `
63
+ background: ${(props) => `linear-gradient(180deg, #ffffff, color-mix(in srgb, ${props.$tintBase} 45%, #ffffff))`};
64
+ color: #12211d;
65
+ overflow-y: auto;
66
+ `;
67
+ const FailureLayout = styled.div `
68
+ position: relative;
69
+ min-height: 100%;
70
+ box-sizing: border-box;
71
+ display: flex;
72
+ flex-direction: column;
73
+ align-items: center;
74
+ justify-content: center;
75
+ gap: 12px;
76
+ padding: 34px;
77
+ text-align: center;
78
+
79
+ @media (max-height: 650px) {
80
+ justify-content: flex-start;
81
+ gap: 9px;
82
+ padding-top: 24px;
83
+ padding-bottom: 24px;
84
+ }
85
+ `;
86
+ const VisualSlot = styled.div `
87
+ min-height: 120px;
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ margin-bottom: 6px;
92
+ animation: ${markIn} 420ms cubic-bezier(0.2, 0, 0, 1) both;
93
+
94
+ @media (prefers-reduced-motion: reduce) {
95
+ animation: none;
96
+ }
97
+
98
+ @media (max-height: 650px) {
99
+ min-height: 88px;
100
+ margin-bottom: 0;
101
+ }
102
+ `;
103
+ const SelfieThumb = styled.div `
104
+ position: relative;
105
+ width: 96px;
106
+ height: 120px;
107
+ border-radius: 16px;
108
+ box-shadow:
109
+ 0 0 0 1px rgb(0 0 0 / 0.08),
110
+ 0 12px 30px rgb(0 0 0 / 0.18);
111
+
112
+ @media (max-height: 650px) {
113
+ width: 70px;
114
+ height: 88px;
115
+ }
116
+
117
+ img {
118
+ width: 100%;
119
+ height: 100%;
120
+ display: block;
121
+ object-fit: cover;
122
+ border-radius: inherit;
123
+ outline: 1px solid rgb(255 255 255 / 0.22);
124
+ outline-offset: -1px;
125
+ }
126
+ `;
127
+ const ThumbStatus = styled.div `
128
+ position: absolute;
129
+ right: 6px;
130
+ bottom: 6px;
131
+ width: 28px;
132
+ height: 28px;
133
+ border-radius: 50%;
134
+ display: flex;
135
+ align-items: center;
136
+ justify-content: center;
137
+ background: ${(props) => props.$accent};
138
+ color: #ffffff;
139
+ box-shadow:
140
+ 0 0 0 3px rgb(255 255 255 / 0.9),
141
+ 0 4px 10px rgb(0 0 0 / 0.2);
142
+
143
+ svg {
144
+ width: 17px;
145
+ height: 17px;
146
+ fill: currentColor;
147
+ stroke: currentColor;
148
+ stroke-width: 2.25;
149
+ stroke-linecap: round;
150
+ }
151
+ `;
152
+ const FallbackStatus = styled.div `
153
+ width: 84px;
154
+ height: 84px;
155
+ border-radius: 28px;
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: center;
159
+ background: ${(props) => props.$accent};
160
+ color: #ffffff;
161
+ box-shadow: 0 12px 28px
162
+ color-mix(in srgb, ${(props) => props.$accent} 32%, transparent);
163
+
164
+ @media (max-height: 650px) {
165
+ width: 70px;
166
+ height: 70px;
167
+ border-radius: 23px;
168
+ }
169
+
170
+ svg {
171
+ width: 42px;
172
+ height: 42px;
173
+ fill: currentColor;
174
+ stroke: currentColor;
175
+ stroke-width: 1.8;
176
+ stroke-linecap: round;
177
+ }
178
+ `;
179
+ const Title = styled.h2 `
180
+ margin: 0;
181
+ max-width: 360px;
182
+ font-size: 26px;
183
+ line-height: 1.2;
184
+ font-weight: 700;
185
+ text-wrap: balance;
186
+ animation: ${enter} 400ms 70ms ease-out both;
187
+
188
+ @media (prefers-reduced-motion: reduce) {
189
+ animation: none;
190
+ }
191
+ `;
192
+ const Subtitle = styled.div `
193
+ max-width: 340px;
194
+ font-size: 14px;
195
+ line-height: 1.5;
196
+ opacity: 0.7;
197
+ text-wrap: pretty;
198
+ animation: ${enter} 400ms 140ms ease-out both;
199
+
200
+ @media (prefers-reduced-motion: reduce) {
201
+ animation: none;
202
+ }
203
+ `;
204
+ const TipsPanel = styled.div `
205
+ width: min(100%, 370px);
206
+ box-sizing: border-box;
207
+ margin-top: 8px;
208
+ padding: 13px 14px 14px;
209
+ border-radius: 18px;
210
+ background: rgb(255 255 255 / 0.62);
211
+ box-shadow:
212
+ 0 0 0 1px rgb(0 0 0 / 0.05),
213
+ 0 2px 5px rgb(0 0 0 / 0.04),
214
+ 0 10px 28px rgb(0 0 0 / 0.05);
215
+ backdrop-filter: blur(12px);
216
+ animation: ${enter} 400ms 210ms ease-out both;
217
+
218
+ @media (prefers-reduced-motion: reduce) {
219
+ animation: none;
220
+ }
221
+
222
+ @media (max-height: 650px) {
223
+ margin-top: 4px;
224
+ }
225
+ `;
226
+ const TipsHeading = styled.div `
227
+ margin-bottom: 10px;
228
+ font-size: 11px;
229
+ font-weight: 650;
230
+ letter-spacing: 0.02em;
231
+ opacity: 0.58;
232
+ `;
233
+ const Tips = styled.div `
234
+ display: grid;
235
+ grid-template-columns: repeat(3, minmax(0, 1fr));
236
+ gap: 8px;
237
+ `;
238
+ const Tip = styled.div `
239
+ min-width: 0;
240
+ display: flex;
241
+ flex-direction: column;
242
+ align-items: center;
243
+ gap: 6px;
244
+ font-size: 11px;
245
+ line-height: 1.25;
246
+ opacity: 0.78;
247
+ `;
248
+ const TipIcon = styled.div `
249
+ width: 34px;
250
+ height: 34px;
251
+ border-radius: 50%;
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: center;
255
+ background: rgb(255 255 255 / 0.88);
256
+ box-shadow:
257
+ 0 0 0 1px rgb(0 0 0 / 0.06),
258
+ 0 2px 5px rgb(0 0 0 / 0.05);
259
+
260
+ svg {
261
+ width: 19px;
262
+ height: 19px;
263
+ fill: none;
264
+ stroke: currentColor;
265
+ stroke-width: 1.65;
266
+ stroke-linecap: round;
267
+ stroke-linejoin: round;
268
+ }
269
+ `;
270
+ const Actions = styled.div `
271
+ width: min(100%, 270px);
272
+ display: flex;
273
+ flex-direction: column;
274
+ align-items: stretch;
275
+ gap: 7px;
276
+ margin-top: 10px;
277
+ animation: ${enter} 400ms 280ms ease-out both;
278
+
279
+ @media (prefers-reduced-motion: reduce) {
280
+ animation: none;
281
+ }
282
+
283
+ @media (max-height: 650px) {
284
+ margin-top: 4px;
285
+ }
286
+ `;
287
+ const PrimaryAction = styled(LoaderButton) `
288
+ && {
289
+ min-height: 50px;
290
+ border: none;
291
+ border-radius: 26px;
292
+ padding: 13px 26px;
293
+ background-color: var(--bs-btn-bg, ${(props) => props.$accent});
294
+ color: var(--bs-btn-color, #ffffff);
295
+ font-size: 16px;
296
+ font-weight: 650;
297
+ box-shadow: 0 6px 18px
298
+ color-mix(
299
+ in srgb,
300
+ var(--bs-btn-bg, ${(props) => props.$accent}) 34%,
301
+ transparent
302
+ );
303
+ transition-property: transform, box-shadow;
304
+ transition-duration: 150ms;
305
+ transition-timing-function: ease-out;
306
+
307
+ &:hover:not(.disabled) {
308
+ transform: translateY(-1px);
309
+ box-shadow: 0 9px 24px
310
+ color-mix(
311
+ in srgb,
312
+ var(--bs-btn-bg, ${(props) => props.$accent}) 40%,
313
+ transparent
314
+ );
315
+ }
316
+
317
+ &:active:not(.disabled) {
318
+ transform: translateY(0) scale(0.96);
319
+ }
320
+
321
+ &:focus-visible {
322
+ outline: none;
323
+ box-shadow:
324
+ 0 6px 18px
325
+ color-mix(
326
+ in srgb,
327
+ var(--bs-btn-bg, ${(props) => props.$accent}) 34%,
328
+ transparent
329
+ ),
330
+ 0 0 0 3px
331
+ color-mix(
332
+ in srgb,
333
+ var(--bs-btn-bg, ${(props) => props.$accent}) 24%,
334
+ #ffffff
335
+ );
336
+ }
337
+
338
+ @media (prefers-reduced-motion: reduce) {
339
+ &:hover:not(.disabled),
340
+ &:active:not(.disabled) {
341
+ transform: none;
342
+ }
343
+ }
344
+ }
345
+ `;
346
+ const SecondaryAction = styled(LoaderButton) `
347
+ && {
348
+ min-height: 44px;
349
+ border: none;
350
+ border-radius: 22px;
351
+ padding: 10px 22px;
352
+ background-color: transparent;
353
+ color: #26312e;
354
+ font-size: 14px;
355
+ font-weight: 600;
356
+ opacity: 0.7;
357
+ box-shadow: none;
358
+ transition-property: transform, opacity, background-color;
359
+ transition-duration: 150ms;
360
+ transition-timing-function: ease-out;
361
+
362
+ &:hover:not(.disabled) {
363
+ opacity: 1;
364
+ background-color: rgb(255 255 255 / 0.45);
365
+ }
366
+
367
+ &:active:not(.disabled) {
368
+ transform: scale(0.96);
369
+ }
370
+
371
+ &:focus-visible {
372
+ outline: none;
373
+ opacity: 1;
374
+ box-shadow: 0 0 0 3px rgb(0 0 0 / 0.09);
375
+ }
376
+
377
+ @media (prefers-reduced-motion: reduce) {
378
+ &:hover:not(.disabled),
379
+ &:active:not(.disabled) {
380
+ transform: none;
381
+ }
382
+ }
383
+ }
384
+ `;
@@ -0,0 +1,27 @@
1
+ import { type CustomerSuppliedVerbiage } from '../../i18n';
2
+ export type RingFinishingScreenVerbiage = {
3
+ finishingTitleText?: CustomerSuppliedVerbiage;
4
+ finishingStage1Text?: CustomerSuppliedVerbiage;
5
+ finishingStage2Text?: CustomerSuppliedVerbiage;
6
+ finishingStage3Text?: CustomerSuppliedVerbiage;
7
+ };
8
+ export type RingFinishingScreenClassNames = {
9
+ finishingScreen?: string;
10
+ finishingThumb?: string;
11
+ finishingTitle?: string;
12
+ finishingStageList?: string;
13
+ finishingStage?: string;
14
+ };
15
+ /**
16
+ * The ring-mode submission handoff (CEO prototype `#v-handoff`): shown while
17
+ * the SDK uploads captures and waits for the verification response. Selfie
18
+ * thumbnail with a check badge, "All captured — finishing up…", and a staged
19
+ * checklist choreographed through its early rows while the last row tracks
20
+ * the real request.
21
+ */
22
+ export declare const RingFinishingScreen: ({ selfieImage, verbiage: rawVerbiage, classNames, }: {
23
+ selfieImage?: string | null;
24
+ verbiage?: RingFinishingScreenVerbiage;
25
+ classNames?: RingFinishingScreenClassNames;
26
+ }) => import("react/jsx-runtime").JSX.Element;
27
+ //# sourceMappingURL=RingFinishingScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RingFinishingScreen.d.ts","sourceRoot":"","sources":["../../../src/components/ring/RingFinishingScreen.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,YAAY,CAAA;AAE3E,MAAM,MAAM,2BAA2B,GAAG;IACxC,kBAAkB,CAAC,EAAE,wBAAwB,CAAA;IAC7C,mBAAmB,CAAC,EAAE,wBAAwB,CAAA;IAC9C,mBAAmB,CAAC,EAAE,wBAAwB,CAAA;IAC9C,mBAAmB,CAAC,EAAE,wBAAwB,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAaD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,qDAIjC;IACD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,2BAA2B,CAAA;IACtC,UAAU,CAAC,EAAE,6BAA6B,CAAA;CAC3C,4CA4FA,CAAA"}
@@ -0,0 +1,184 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Ported from sdk2/src/components/common/RingFinishingScreen.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, useState } from 'react';
8
+ import { styled, css, keyframes, useTheme } from 'styled-components';
9
+ import { LoadingOverlayInner, OverlayContainer } from '../common/overlay';
10
+ import { useTranslations } from '../../i18n';
11
+ const toDataUrl = (value) => value.startsWith('data:') ? value : `data:image/jpeg;base64,${value}`;
12
+ /** Milestone pacing for the earlier stage rows. The FINAL visible row is
13
+ * never completed by a timer — it spins until submission actually resolves
14
+ * and this screen unmounts, so the checklist can't claim done early. */
15
+ const STAGE_ADVANCE_FIRST_MS = 1200;
16
+ const STAGE_ADVANCE_STEP_MS = 1400;
17
+ /**
18
+ * The ring-mode submission handoff (CEO prototype `#v-handoff`): shown while
19
+ * the SDK uploads captures and waits for the verification response. Selfie
20
+ * thumbnail with a check badge, "All captured — finishing up…", and a staged
21
+ * checklist choreographed through its early rows while the last row tracks
22
+ * the real request.
23
+ */
24
+ export const RingFinishingScreen = ({ selfieImage, verbiage: rawVerbiage = {}, classNames = {}, }) => {
25
+ const theme = useTheme();
26
+ const verbiage = useTranslations(rawVerbiage, {
27
+ finishingTitleText: 'All captured — finishing up…',
28
+ finishingStage1Text: 'Reading your ID details',
29
+ finishingStage2Text: 'Confirming with the issuing authority',
30
+ finishingStage3Text: 'Matching your selfie',
31
+ });
32
+ const stages = [
33
+ verbiage.finishingStage1Text,
34
+ verbiage.finishingStage2Text,
35
+ verbiage.finishingStage3Text,
36
+ ].filter(Boolean);
37
+ const [activeStage, setActiveStage] = useState(0);
38
+ const stageCount = stages.length;
39
+ useEffect(() => {
40
+ const timers = [];
41
+ for (let i = 1; i < stageCount; i++) {
42
+ timers.push(setTimeout(() => setActiveStage(i), STAGE_ADVANCE_FIRST_MS + (i - 1) * STAGE_ADVANCE_STEP_MS));
43
+ }
44
+ return () => timers.forEach(clearTimeout);
45
+ }, [stageCount]);
46
+ const overlayTheme = theme.selfieCapture?.loadingOverlay ?? theme.idCapture?.loadingOverlay;
47
+ const tintBase = overlayTheme?.backgroundColor ?? 'var(--idm-color-primary-500)';
48
+ const accent = overlayTheme?.progressBarIndicatorColor ?? 'var(--idm-color-primary-500)';
49
+ return (_jsx(OverlayContainer, { children: _jsx(FinishingInner, { "$tintBase": tintBase, children: _jsxs(FinishingLayout, { className: classNames.finishingScreen, children: [selfieImage ? (_jsx(SelfieThumb, { className: classNames.finishingThumb, style: { backgroundImage: `url("${toDataUrl(selfieImage)}")` }, children: _jsx(ThumbBadge, { "$accent": accent, "aria-hidden": "true", children: "\u2713" }) })) : (_jsx(FallbackBadge, { "$accent": accent, className: classNames.finishingThumb, children: _jsx("svg", { viewBox: "0 0 52 52", "aria-hidden": "true", children: _jsx("path", { d: "M14 27l8 8 16-18" }) }) })), _jsx(Title, { className: classNames.finishingTitle, children: verbiage.finishingTitleText }), _jsx(LiveStatus, { role: "status", "aria-live": "polite", "aria-atomic": "true", children: stages[activeStage] }), _jsx(StageList, { className: classNames.finishingStageList, children: stages.map((label, i) => {
50
+ const state = i < activeStage
51
+ ? 'done'
52
+ : i === activeStage
53
+ ? 'doing'
54
+ : 'pending';
55
+ return (_jsxs(StageRow, { "$state": state, className: classNames.finishingStage, children: [_jsx(StageDot, { "$state": state, "$accent": accent, "aria-hidden": "true", children: state === 'done' ? '✓' : '' }), label] }, i));
56
+ }) })] }) }) }));
57
+ };
58
+ const fadeIn = keyframes `
59
+ from { opacity: 0; }
60
+ to { opacity: 1; }
61
+ `;
62
+ const spin = keyframes `
63
+ to { transform: rotate(360deg); }
64
+ `;
65
+ // Light surface whatever the theme says — see RingFailureScreen's FailureInner
66
+ // for why the foreground is pinned rather than read from the theme.
67
+ const FinishingInner = styled(LoadingOverlayInner) `
68
+ background: ${(props) => `linear-gradient(180deg, #ffffff, color-mix(in srgb, ${props.$tintBase} 45%, #ffffff))`};
69
+ color: #12211d;
70
+ animation: ${fadeIn} 250ms ease-out both;
71
+ `;
72
+ const FinishingLayout = styled.div `
73
+ position: absolute;
74
+ inset: 0;
75
+ display: flex;
76
+ flex-direction: column;
77
+ align-items: center;
78
+ justify-content: center;
79
+ gap: 16px;
80
+ padding: 34px;
81
+ text-align: center;
82
+ `;
83
+ const SelfieThumb = styled.div `
84
+ position: relative;
85
+ width: 96px;
86
+ height: 120px;
87
+ border-radius: 16px;
88
+ background-size: cover;
89
+ background-position: center;
90
+ box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
91
+ `;
92
+ const ThumbBadge = styled.div `
93
+ position: absolute;
94
+ bottom: 6px;
95
+ right: 6px;
96
+ width: 26px;
97
+ height: 26px;
98
+ border-radius: 50%;
99
+ background: ${(props) => props.$accent};
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ color: #ffffff;
104
+ font-size: 13px;
105
+ box-shadow: 0 3px 8px rgb(0 0 0 / 0.3);
106
+ `;
107
+ const FallbackBadge = styled.div `
108
+ width: 84px;
109
+ height: 84px;
110
+ border-radius: 28px;
111
+ background: ${(props) => props.$accent};
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: center;
115
+ box-shadow: 0 12px 28px
116
+ color-mix(in srgb, ${(props) => props.$accent} 35%, transparent);
117
+
118
+ svg {
119
+ width: 40px;
120
+ height: 40px;
121
+ fill: none;
122
+ stroke: #ffffff;
123
+ stroke-width: 5;
124
+ stroke-linecap: round;
125
+ stroke-linejoin: round;
126
+ }
127
+ `;
128
+ const Title = styled.div `
129
+ font-size: 20px;
130
+ font-weight: 700;
131
+ `;
132
+ const StageList = styled.div `
133
+ display: flex;
134
+ flex-direction: column;
135
+ gap: 11px;
136
+ text-align: left;
137
+ `;
138
+ const LiveStatus = styled.span `
139
+ position: absolute;
140
+ width: 1px;
141
+ height: 1px;
142
+ padding: 0;
143
+ margin: -1px;
144
+ overflow: hidden;
145
+ clip: rect(0, 0, 0, 0);
146
+ white-space: nowrap;
147
+ border: 0;
148
+ `;
149
+ const StageRow = styled.div `
150
+ display: flex;
151
+ align-items: center;
152
+ gap: 10px;
153
+ font-size: 13.5px;
154
+ font-weight: 600;
155
+ opacity: ${(props) => (props.$state === 'pending' ? 0.45 : 1)};
156
+ transition: opacity 300ms;
157
+ `;
158
+ const StageDot = styled.div `
159
+ width: 22px;
160
+ height: 22px;
161
+ border-radius: 50%;
162
+ flex-shrink: 0;
163
+ display: flex;
164
+ align-items: center;
165
+ justify-content: center;
166
+ font-size: 11px;
167
+ transition:
168
+ background 300ms,
169
+ border-color 300ms;
170
+
171
+ ${(props) => props.$state === 'done'
172
+ ? `background: ${props.$accent}; border: 2px solid ${props.$accent}; color: #ffffff;`
173
+ : props.$state === 'doing'
174
+ ? `border: 2px solid ${props.$accent}; border-top-color: transparent; color: transparent;`
175
+ : `border: 2px solid rgba(0, 0, 0, 0.12); color: transparent;`}
176
+
177
+ ${(props) => props.$state === 'doing'
178
+ ? css `
179
+ @media (prefers-reduced-motion: no-preference) {
180
+ animation: ${spin} 1s linear infinite;
181
+ }
182
+ `
183
+ : ''}
184
+ `;
@@ -0,0 +1,33 @@
1
+ import { type CustomerSuppliedVerbiage } from '../../i18n';
2
+ export type RingSuccessScreenVerbiage = {
3
+ successTitleText?: CustomerSuppliedVerbiage;
4
+ successSubtitleText?: CustomerSuppliedVerbiage;
5
+ successContinuingText?: CustomerSuppliedVerbiage;
6
+ successTimeCaptionText?: CustomerSuppliedVerbiage;
7
+ successCapturesValueText?: CustomerSuppliedVerbiage;
8
+ successCapturesCaptionText?: CustomerSuppliedVerbiage;
9
+ successIssuerValueText?: CustomerSuppliedVerbiage;
10
+ successIssuerCaptionText?: CustomerSuppliedVerbiage;
11
+ };
12
+ export type RingSuccessScreenClassNames = {
13
+ successScreen?: string;
14
+ successCheck?: string;
15
+ successTitle?: string;
16
+ successSubtitle?: string;
17
+ successStatList?: string;
18
+ successStat?: string;
19
+ };
20
+ /**
21
+ * The ring-mode approved handoff (CEO prototype `#v-done`): shown once the
22
+ * verification response comes back approved, and persists under the host's
23
+ * navigation instead of a blank frame. Big check pop, confetti burst, and
24
+ * stat chips summarizing the run. The derived captures-chip defaults are not
25
+ * localized — override them via verbiage for non-English deployments.
26
+ */
27
+ export declare const RingSuccessScreen: ({ elapsedMs, capturedLabels, verbiage: rawVerbiage, classNames, }: {
28
+ elapsedMs?: number | null;
29
+ capturedLabels?: string[];
30
+ verbiage?: RingSuccessScreenVerbiage;
31
+ classNames?: RingSuccessScreenClassNames;
32
+ }) => import("react/jsx-runtime").JSX.Element;
33
+ //# sourceMappingURL=RingSuccessScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RingSuccessScreen.d.ts","sourceRoot":"","sources":["../../../src/components/ring/RingSuccessScreen.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,YAAY,CAAA;AAEnB,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAC3C,mBAAmB,CAAC,EAAE,wBAAwB,CAAA;IAC9C,qBAAqB,CAAC,EAAE,wBAAwB,CAAA;IAChD,sBAAsB,CAAC,EAAE,wBAAwB,CAAA;IACjD,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;IACnD,0BAA0B,CAAC,EAAE,wBAAwB,CAAA;IACrD,sBAAsB,CAAC,EAAE,wBAAwB,CAAA;IACjD,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAKD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,mEAK/B;IACD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,QAAQ,CAAC,EAAE,yBAAyB,CAAA;IACpC,UAAU,CAAC,EAAE,2BAA2B,CAAA;CACzC,4CAqHA,CAAA"}