@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,5 @@
1
+ export { defaultIdCaptureGuideImages } from './defaults';
2
+ export { useImagesWithBackToFront } from './backToFront';
3
+ export { getOrientation } from './orientation';
4
+ export { useGuideImages } from './useGuideImages';
5
+ export { useGuideImagesByUrl } from './byUrl';
@@ -0,0 +1,2 @@
1
+ export declare function getOrientation(allowPortraitOnMobile: boolean): 'portrait' | 'landscape';
2
+ //# sourceMappingURL=orientation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orientation.d.ts","sourceRoot":"","sources":["../../../src/components/guide_images/orientation.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAC5B,qBAAqB,EAAE,OAAO,GAC7B,UAAU,GAAG,WAAW,CAI1B"}
@@ -0,0 +1,5 @@
1
+ export function getOrientation(allowPortraitOnMobile) {
2
+ return allowPortraitOnMobile && window.innerWidth < window.innerHeight
3
+ ? 'portrait'
4
+ : 'landscape';
5
+ }
@@ -0,0 +1,15 @@
1
+ export type IdCaptureGuideImages = {
2
+ portrait: IdCaptureGuidesForOrientation;
3
+ landscape: IdCaptureGuidesForOrientation;
4
+ };
5
+ export type IdCaptureGuidesForOrientation = {
6
+ SHOW_ID_FRONT: IdCaptureGuideImage;
7
+ SHOW_ID_BACK: IdCaptureGuideImage;
8
+ SHOW_PASSPORT: IdCaptureGuideImage;
9
+ };
10
+ export type IdCaptureGuideImage = {
11
+ url: string;
12
+ width: number;
13
+ height: number;
14
+ };
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/guide_images/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,6BAA6B,CAAA;IACvC,SAAS,EAAE,6BAA6B,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,aAAa,EAAE,mBAAmB,CAAA;IAClC,YAAY,EAAE,mBAAmB,CAAA;IACjC,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IdCaptureGuideImages } from './types';
2
+ export declare function useGuideImages(userSuppliedImages: IdCaptureGuideImages): IdCaptureGuideImages;
3
+ //# sourceMappingURL=useGuideImages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGuideImages.d.ts","sourceRoot":"","sources":["../../../src/components/guide_images/useGuideImages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAI9C,wBAAgB,cAAc,CAAC,kBAAkB,EAAE,oBAAoB,wBAKtE"}
@@ -0,0 +1,19 @@
1
+ import { defaultIdCaptureGuideImages } from './defaults';
2
+ import { useMemo } from 'react';
3
+ import { warn } from '../../utils/logger';
4
+ import mergeDeep from '../../utils/merge';
5
+ export function useGuideImages(userSuppliedImages) {
6
+ return useMemo(() => {
7
+ warnAboutImagesMissingDimensions(userSuppliedImages);
8
+ return mergeDeep(defaultIdCaptureGuideImages, userSuppliedImages);
9
+ }, [userSuppliedImages]);
10
+ }
11
+ function warnAboutImagesMissingDimensions(userSuppliedImages) {
12
+ Object.values(userSuppliedImages).forEach((images) => {
13
+ Object.values(images).forEach((image) => {
14
+ if (image.url && (!image.width || !image.height)) {
15
+ warn(`The image ${image.url} is missing width and/or height. This will cause the image scaling issues in Safari. Please provide the width and height of the image.`);
16
+ }
17
+ });
18
+ });
19
+ }
@@ -0,0 +1,28 @@
1
+ import { ReactElement } from 'react';
2
+ import { CustomerSuppliedVerbiage } from '../../i18n';
3
+ import { IdCaptureGuideImages } from '../guide_images';
4
+ export type FlipIdPromptClassNames = {
5
+ frontImageContainer?: string;
6
+ backImageContainer?: string;
7
+ frontImage?: string;
8
+ backImage?: string;
9
+ };
10
+ export type FlipIdPromptVerbiage = {
11
+ instructionText?: CustomerSuppliedVerbiage;
12
+ };
13
+ export type FlipIdPromptProps = {
14
+ images?: IdCaptureGuideImages;
15
+ width?: number;
16
+ height?: number;
17
+ padding?: number;
18
+ imagePadding?: number;
19
+ borderWidth?: number | string;
20
+ borderColor?: string;
21
+ borderRadius?: number;
22
+ isMirrored?: boolean;
23
+ portraitGuidesOnMobile?: boolean;
24
+ classNames?: FlipIdPromptClassNames;
25
+ verbiage?: FlipIdPromptVerbiage;
26
+ };
27
+ export declare const FlipIdPrompt: ({ images, width, height, borderWidth, borderColor, borderRadius, isMirrored, portraitGuidesOnMobile, classNames, }: FlipIdPromptProps) => ReactElement;
28
+ //# sourceMappingURL=FlipIdPrompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlipIdPrompt.d.ts","sourceRoot":"","sources":["../../../src/components/guides/FlipIdPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,EAGL,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AAKxB,MAAM,MAAM,sBAAsB,GAAG;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,eAAe,CAAC,EAAE,wBAAwB,CAAA;CAC3C,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,UAAU,CAAC,EAAE,sBAAsB,CAAA;IACnC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,oHAU1B,iBAAiB,KAAG,YAoFtB,CAAA"}
@@ -0,0 +1,54 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { FlipImageContainer, IdCardGuideImage } from './IdCaptureGuidesCommon';
4
+ import { defaultIdCaptureGuideImages, getOrientation, } from '../guide_images';
5
+ import { useGuideOrientationContext } from '../../layout/GuideOrientationContext';
6
+ import { isMobile } from '../../utils/isMobile';
7
+ import { styled } from 'styled-components';
8
+ export const FlipIdPrompt = ({ images = defaultIdCaptureGuideImages, width, height, borderWidth = 20, borderColor = 'white', borderRadius = 25, isMirrored = false, portraitGuidesOnMobile = true, classNames = {}, }) => {
9
+ const { imageAspectRatio } = useGuideOrientationContext();
10
+ const orientation = getOrientation(portraitGuidesOnMobile);
11
+ const [transitionTime, setTransitionTime] = useState(1);
12
+ const [rotationAngle, setRotationAngle] = useState(0);
13
+ const frontTransforms = [`rotateY(${rotationAngle}deg)`];
14
+ if (isMirrored)
15
+ frontTransforms.push('scaleX(-1)');
16
+ const backTransforms = [`rotateY(${180 - rotationAngle}deg)`];
17
+ if (isMirrored)
18
+ backTransforms.push('scaleX(-1)');
19
+ useEffect(() => {
20
+ let timeout;
21
+ const doFlip = () => {
22
+ setTransitionTime(1);
23
+ setRotationAngle(180);
24
+ timeout = setTimeout(() => {
25
+ setTransitionTime(0);
26
+ setRotationAngle(0);
27
+ }, 1500);
28
+ };
29
+ const interval = setInterval(doFlip, 2500);
30
+ timeout = setTimeout(doFlip, 250);
31
+ return () => {
32
+ clearInterval(interval);
33
+ clearTimeout(timeout);
34
+ };
35
+ }, []);
36
+ return (_jsxs(Wrapper, { style: { aspectRatio: imageAspectRatio }, "$isMobile": isMobile(), "$isLandscape": orientation === 'landscape', children: [_jsx(FlipImageContainer, { status: "disabled", className: classNames.frontImageContainer, borderWidth: borderWidth, borderColor: borderColor, borderRadius: borderRadius, "$transforms": frontTransforms.join(' '), "$transitionTime": transitionTime, aspectRatio: imageAspectRatio, "$isMobile": isMobile(), "$isLandscape": orientation === 'landscape', "$isVisible": true, children: _jsx(IdCardGuideImage, { alt: "", src: images[orientation].SHOW_ID_FRONT.url, className: classNames.frontImage, width: width, height: height }) }), _jsx(FlipImageContainer, { status: "disabled", className: classNames.backImageContainer, borderWidth: borderWidth, borderColor: borderColor, borderRadius: borderRadius, "$transforms": backTransforms.join(' '), "$transitionTime": transitionTime, aspectRatio: imageAspectRatio, "$isMobile": isMobile(), "$isLandscape": orientation === 'landscape', "$isVisible": true, children: _jsx(IdCardGuideImage, { alt: "", src: images[orientation].SHOW_ID_BACK.url, className: classNames.backImage, width: width, height: height }) })] }));
37
+ };
38
+ const Wrapper = styled.div `
39
+ align-items: center;
40
+ justify-content: center;
41
+ display: flex;
42
+ position: absolute;
43
+ margin: auto;
44
+ box-sizing: border-box;
45
+ max-width: 100%;
46
+ max-height: 100%;
47
+ ${(props) => props.$isMobile
48
+ ? props.$isLandscape
49
+ ? 'height: 100%;'
50
+ : 'width: 80%;'
51
+ : props.$isLandscape
52
+ ? 'height: 70%;'
53
+ : 'width: 82%;'};
54
+ `;
@@ -0,0 +1,51 @@
1
+ import { ReactElement } from 'react';
2
+ import { IdCaptureGuideAction, IdCaptureGuideOverlayClassNames } from './IdCaptureGuideOverlay';
3
+ import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
4
+ import { IdCaptureGuideImages } from '../guide_images';
5
+ export type IdCaptureFitGuideClassNames = IdCaptureGuideOverlayClassNames & {
6
+ canvasWrapper?: string;
7
+ canvas?: string;
8
+ };
9
+ export type IdCaptureFitGuideProps = {
10
+ aspectRatio?: number;
11
+ maskColor?: string;
12
+ borderRadius?: number;
13
+ borderColor?: string;
14
+ borderWidth?: number;
15
+ padding?: number;
16
+ imageVisible?: boolean;
17
+ isMirrored?: boolean;
18
+ isBackToFront?: boolean;
19
+ portraitGuidesOnMobile?: boolean;
20
+ instruction?: string | ReactElement;
21
+ requestedAction?: IdCaptureGuideAction;
22
+ status?: IdCardGuideStatus;
23
+ progress?: number;
24
+ guideBoxDisabled?: boolean;
25
+ /**
26
+ * Draw the guide box on the same rect the mask hole is cut from, instead of
27
+ * re-deriving it through the guide overlay's flex layout.
28
+ *
29
+ * The overlay sizes the box with a chain of percentages (90%/80% on mobile,
30
+ * 82%/70% on desktop) applied to a row whose height depends on the
31
+ * instruction text, so it lands well inside the hole and the two drift apart
32
+ * as the viewport changes. Sourcing both from the guide rect makes them
33
+ * identical by construction, at any size, with no per-viewport tuning.
34
+ *
35
+ * This also lifts the mask above the camera feed and drops its inset ring, so
36
+ * the border and the dimming it sits on are both visible with a `fullscreen`
37
+ * feed without any caller-supplied CSS. Ignored when `guideBoxDisabled`.
38
+ */
39
+ guideBoxFollowsMask?: boolean;
40
+ /**
41
+ * How the camera feed is laid out, which decides whether the mask has to be
42
+ * lifted above it. Only `fullscreen` needs the lift: `snapToGuides` clips the
43
+ * feed to the guide rect, so the mask is never hidden and raising it would
44
+ * put the dimming over the feed's own square corners.
45
+ */
46
+ cameraFeedMode?: 'snapToGuides' | 'fullscreen';
47
+ images?: IdCaptureGuideImages;
48
+ classNames?: IdCaptureFitGuideClassNames;
49
+ };
50
+ export declare const IdCaptureFitGuide: ({ aspectRatio, maskColor, borderRadius, borderColor, borderWidth, padding, imageVisible, isMirrored, isBackToFront, portraitGuidesOnMobile, instruction, requestedAction, status, progress, guideBoxDisabled, guideBoxFollowsMask, cameraFeedMode, images, classNames, }: IdCaptureFitGuideProps) => import("react/jsx-runtime").JSX.Element;
51
+ //# sourceMappingURL=IdCaptureFitGuide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdCaptureFitGuide.d.ts","sourceRoot":"","sources":["../../../src/components/guides/IdCaptureFitGuide.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAA;AAGvD,OAAO,EACL,oBAAoB,EAEpB,+BAA+B,EAChC,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAmB,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAA+B,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAKnF,MAAM,MAAM,2BAA2B,GAAG,+BAA+B,GAAG;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACnC,eAAe,CAAC,EAAE,oBAAoB,CAAA;IACtC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,YAAY,CAAA;IAC9C,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,UAAU,CAAC,EAAE,2BAA2B,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,0QAoB/B,sBAAsB,4CAoPxB,CAAA"}
@@ -0,0 +1,199 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ // Divergence 4 rewiring vs sdk2's IdCaptureFitGuide.tsx:
3
+ // - `const { redrawing, guideImageWidth, guideImageHeight } =
4
+ // useIdCaptureStore()` is gone. `guideImageWidth`/`guideImageHeight` (the
5
+ // store fields IdCaptureGuideOverlay used to populate via
6
+ // `dispatch({type:'guideImageLoaded'})`) are replaced by
7
+ // `useGuideOrientationContext().imageAspectRatio` — mathematically the
8
+ // same ratio (both ultimately derive from the same `currentImage.width/
9
+ // height` guide-image metadata; the context value is actually available
10
+ // *earlier*, since it's set synchronously from that static metadata
11
+ // instead of waiting on the nested <img>'s onLoad event).
12
+ // - `redrawing` (the window-resize-driven "reset canvas, wait 10ms,
13
+ // redraw" two-phase dance orchestrated by IdCaptureStateProvider's
14
+ // debounced window 'resize' listener + the redrawRequested/
15
+ // redrawInProgress/redrawCompleted action trio) is dropped entirely.
16
+ // The `wrapperRef`/`wrapperWidth`/`wrapperHeight` from useResizeObserver
17
+ // below already re-run this effect on every real size change of the
18
+ // wrapper (they're already in the dependency array) — that observer IS
19
+ // the sanctioned replacement (divergence 4: "a ResizeObserver on the
20
+ // wrapper re-running the same draw routine"). The canvas
21
+ // reset/redraw-completed cutout-drawing logic itself is byte-identical.
22
+ // - `dispatch({type:'redrawCompleted', payload:{guideRectX, guideRectY,
23
+ // guideRectWidth, guideRectHeight, guideRectOffsetTop}})` becomes
24
+ // `useGuideLayout().setGuideRect({x,y,width,height})`.
25
+ // `guideRectOffsetTop` (canvas.offsetTop) is dropped — sdk2's own
26
+ // ScalingCameraFeed never reads it either, and GuideLayoutContext's
27
+ // GuideRect type (Task 7) has no such field.
28
+ import { useEffect, useRef } from 'react';
29
+ import { styled, useTheme } from 'styled-components';
30
+ import { setCanvasDimensions } from '../../utils/canvas';
31
+ import { IdCaptureGuideOverlay, } from './IdCaptureGuideOverlay';
32
+ import { isMobile } from '../../utils/isMobile';
33
+ import { IdCardBorderSvg } from './IdCaptureGuidesCommon';
34
+ import { defaultIdCaptureGuideImages } from '../guide_images';
35
+ import useResizeObserver from '../../layout/useResizeObserver';
36
+ import { useGuideOrientationContext } from '../../layout/GuideOrientationContext';
37
+ import { useGuideLayout } from '../../layout/GuideLayoutContext';
38
+ export const IdCaptureFitGuide = ({ aspectRatio, maskColor, borderRadius = 33, borderColor, borderWidth, padding, imageVisible, isMirrored = false, isBackToFront = false, portraitGuidesOnMobile = true, instruction, requestedAction = 'SHOW_ID_FRONT', status = 'ready', progress = 0, guideBoxDisabled = false, guideBoxFollowsMask = false, cameraFeedMode = 'snapToGuides', images = defaultIdCaptureGuideImages, classNames = {}, }) => {
39
+ const { imageAspectRatio } = useGuideOrientationContext();
40
+ // sdk2 reads guideRectX/Y/Width/Height back out of its zustand store for
41
+ // the CaptureAreaProgress block below; this port reads the same rect from
42
+ // GuideLayoutContext (divergence 4 — the rect this component publishes via
43
+ // setGuideRect a few lines down).
44
+ const { guideRect, setGuideRect } = useGuideLayout();
45
+ const canvasRef = useRef(null);
46
+ const { ref: wrapperRef, width: wrapperWidth = 1, height: wrapperHeight = 1, } = useResizeObserver();
47
+ const theme = useTheme();
48
+ if (borderWidth === undefined)
49
+ borderWidth = theme.idCapture?.guideBox?.borderWidth ?? 4;
50
+ if (padding === undefined) {
51
+ padding = isMobile()
52
+ ? (theme.idCapture?.guideBox?.mobilePadding ?? 0)
53
+ : (theme.idCapture?.guideBox?.desktopPadding ?? 0);
54
+ }
55
+ if (aspectRatio === undefined) {
56
+ aspectRatio = imageAspectRatio;
57
+ }
58
+ if (maskColor === undefined) {
59
+ maskColor = theme.idCapture?.guideOverlay?.backgroundColor ?? '#708090';
60
+ }
61
+ const progressBarIndicatorColor = theme.idCapture?.guideBox?.progressBarIndicatorColor ?? '#287ec6';
62
+ const progressBarWidth = theme.idCapture?.guideBox?.progressBarWidth ?? borderWidth;
63
+ // Same resolution `IdCardBorder` uses for the track it draws.
64
+ const progressBarColor = theme.idCapture?.guideBox?.progressBarColor ?? 'white';
65
+ // The guide box and the mask hole are the same rect in this mode, so the
66
+ // overlay's own (flex-derived) box is suppressed and drawn here instead.
67
+ // `guideBoxDisabled` still wins: it means "no box at all".
68
+ const guideRectReady = guideRect !== null && guideRect.width > 0 && guideRect.height > 0;
69
+ // Whether the mode applies at all. Deliberately NOT gated on the rect being
70
+ // measured: that arrives a frame late, and gating the mask's stacking on it
71
+ // would drop the dimming behind the feed for that frame.
72
+ const followsMask = guideBoxFollowsMask && !guideBoxDisabled;
73
+ // The feed only hides the mask when it fills the screen. Under
74
+ // `snapToGuides` the feed IS the guide rect, so lifting the mask would dim
75
+ // the corners the feed's square edges leave outside the rounded hole.
76
+ const maskAboveCameraFeed = followsMask && cameraFeedMode === 'fullscreen';
77
+ const boxOnGuideRect = followsMask && guideRectReady;
78
+ const overlayGuideBoxDisabled = guideBoxDisabled || followsMask;
79
+ useEffect(() => {
80
+ const canvas = canvasRef.current;
81
+ if (!canvas)
82
+ return;
83
+ const boundingWidth = wrapperWidth - padding * 2 - borderWidth * 2;
84
+ const boundingHeight = wrapperHeight - padding * 2 - borderWidth * 2;
85
+ let [rectX, rectY, rectWidth, rectHeight] = [
86
+ padding + borderWidth,
87
+ padding + borderWidth,
88
+ boundingWidth,
89
+ boundingHeight,
90
+ ];
91
+ if (aspectRatio !== undefined) {
92
+ const scaledWidth = boundingHeight * aspectRatio;
93
+ const scaledHeight = boundingWidth / aspectRatio;
94
+ if (scaledWidth < boundingWidth) {
95
+ rectWidth = scaledWidth;
96
+ rectX += (boundingWidth - rectWidth) / 2;
97
+ }
98
+ else {
99
+ rectHeight = scaledHeight;
100
+ rectY += (boundingHeight - rectHeight) / 2;
101
+ }
102
+ }
103
+ setCanvasDimensions(canvas, wrapperWidth, wrapperHeight);
104
+ const ctx = canvas.getContext('2d');
105
+ if (!ctx)
106
+ return;
107
+ ctx.fillStyle = maskColor;
108
+ ctx.clearRect(0, 0, wrapperWidth, wrapperHeight);
109
+ ctx.fillRect(0, 0, wrapperWidth, wrapperHeight);
110
+ // const radius = Math.min(wrapperWidth, wrapperHeight) / 2 - padding!
111
+ ctx.beginPath();
112
+ // ctx.arc(wrapperWidth / 2, wrapperHeight / 2, radius, 0, Math.PI * 2, true) // Hole anticlockwise
113
+ ctx.roundRect(rectX, rectY, rectWidth, rectHeight, borderRadius);
114
+ // Mask-following mode draws the border as an SVG ring on this same rect, so
115
+ // stroking here would double it — and the two halves do not overlap, they
116
+ // abut. A stroke is centred on the path: the destination-out fill below
117
+ // erases this one's INNER half, while the ring is clipped to the rect and so
118
+ // paints only its OUTER half away. The leftovers sit edge to edge, which is
119
+ // why a white stroke showed as a hairline outside the green arc. The rect
120
+ // geometry is unchanged either way — `borderWidth` still insets it above.
121
+ if (!followsMask) {
122
+ const strokeColor = borderColor ?? 'white';
123
+ ctx.lineWidth = borderWidth;
124
+ ctx.strokeStyle = strokeColor;
125
+ if (strokeColor.startsWith('var(')) {
126
+ ctx.strokeStyle = getComputedStyle(document.documentElement).getPropertyValue(strokeColor.slice(4, -1));
127
+ }
128
+ ctx.stroke();
129
+ }
130
+ // make alpha solid (the color doesn't matter)
131
+ ctx.fillStyle = 'rgba(0,0,0,1)';
132
+ // change composite mode and fill
133
+ ctx.globalCompositeOperation = 'destination-out';
134
+ ctx.fill();
135
+ // reset composite mode to default
136
+ ctx.globalCompositeOperation = 'source-over';
137
+ setGuideRect({
138
+ x: rectX,
139
+ y: rectY,
140
+ width: rectWidth,
141
+ height: rectHeight,
142
+ // Only in mask-following mode: this asks the feed to clip itself to the
143
+ // hole, which legacy integrations do not expect.
144
+ radius: followsMask ? borderRadius : undefined,
145
+ });
146
+ return () => { };
147
+ }, [
148
+ aspectRatio,
149
+ borderColor,
150
+ borderRadius,
151
+ borderWidth,
152
+ followsMask,
153
+ maskColor,
154
+ padding,
155
+ setGuideRect,
156
+ wrapperHeight,
157
+ wrapperWidth,
158
+ ]);
159
+ return (_jsxs(_Fragment, { children: [_jsxs(CanvasWrapper, { ref: wrapperRef, "$maskColor": maskColor ?? '', "$aboveCameraFeed": maskAboveCameraFeed, className: classNames.canvasWrapper, children: [_jsx(Canvas, { ref: canvasRef, className: classNames.canvas }), guideBoxDisabled &&
160
+ status === 'capturing' &&
161
+ guideRect !== null &&
162
+ guideRect.width > 0 &&
163
+ guideRect.height > 0 && (_jsx(CaptureAreaProgress, { "$x": guideRect.x, "$y": guideRect.y, "$width": guideRect.width, "$height": guideRect.height, children: _jsx(IdCardBorderSvg, { width: guideRect.width, height: guideRect.height, borderRadius: borderRadius, borderColor: progressBarIndicatorColor, borderWidth: progressBarWidth, isProgressBar: true, progress: progress }) }))] }), _jsx(IdCaptureGuideOverlay, { maskColor: "transparent", borderWidth: 0, isMirrored: isMirrored, isBackToFront: isBackToFront, portraitGuidesOnMobile: portraitGuidesOnMobile, instruction: instruction, images: images, classNames: classNames, imageVisible: imageVisible, requestedAction: requestedAction, status: status, progress: progress, guideBoxDisabled: overlayGuideBoxDisabled }), boxOnGuideRect && guideRect !== null && (_jsxs(GuideBoxLayer, { "$x": guideRect.x, "$y": guideRect.y, "$width": guideRect.width, "$height": guideRect.height, className: classNames.centerRegionBorder, children: [_jsx(IdCardBorderSvg, { width: guideRect.width, height: guideRect.height, borderRadius: borderRadius, scaleBorderRadius: false, borderColor: progressBarColor, borderWidth: progressBarWidth }), status === 'capturing' && (
164
+ /* Keyed on the rect: the arc's dash length is measured once, in a
165
+ callback ref, so an element that survives a resize keeps the old
166
+ perimeter and the arc finishes early. Remounting on a size change
167
+ forces a fresh measurement. */
168
+ _jsx(IdCardBorderSvg, { width: guideRect.width, height: guideRect.height, borderRadius: borderRadius, scaleBorderRadius: false, borderColor: progressBarIndicatorColor, borderWidth: progressBarWidth, isProgressBar: true, progress: progress }, `${guideRect.width}x${guideRect.height}`))] }))] }));
169
+ };
170
+ const CanvasWrapper = styled.div `
171
+ position: absolute;
172
+ top: 0;
173
+ left: 0;
174
+ width: 100%;
175
+ height: 100%;
176
+ flex-grow: 1;
177
+ background-clip: padding-box;
178
+ /* The default -1 puts the mask behind a 'fullscreen' camera feed, which hides
179
+ the dimming entirely; it only works because 'snapToGuides' clips the feed to
180
+ the guide rect. Lifting it is opt-in so existing integrations are untouched. */
181
+ ${(props) => props.$aboveCameraFeed
182
+ ? `z-index: 1;`
183
+ : `box-shadow: inset 0 0 0 2px ${props.$maskColor};
184
+ z-index: -1;`}
185
+ `;
186
+ const Canvas = styled.canvas `
187
+ display: block;
188
+ `;
189
+ const CaptureAreaProgress = styled.div `
190
+ position: absolute;
191
+ left: ${(props) => props.$x}px;
192
+ top: ${(props) => props.$y}px;
193
+ width: ${(props) => props.$width}px;
194
+ height: ${(props) => props.$height}px;
195
+ pointer-events: none;
196
+ `;
197
+ const GuideBoxLayer = styled(CaptureAreaProgress) `
198
+ z-index: 1000;
199
+ `;
@@ -0,0 +1,100 @@
1
+ import { ReactElement } from 'react';
2
+ import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
3
+ import { FlipIdPromptClassNames } from './FlipIdPrompt';
4
+ import { IdCaptureGuideImages } from '../guide_images';
5
+ export type IdCaptureGuideOverlayClassNames = {
6
+ container?: string;
7
+ inner?: string;
8
+ dimmingRegion?: string;
9
+ dimmingRegionTop?: string;
10
+ dimmingRegionLeft?: string;
11
+ dimmingRegionRight?: string;
12
+ dimmingRegionBottom?: string;
13
+ centerRow?: string;
14
+ centerRegion?: string;
15
+ centerRegionBorder?: string;
16
+ centerRegionInner?: string;
17
+ image?: string;
18
+ guideText?: string;
19
+ flipIdPrompt?: FlipIdPromptClassNames;
20
+ };
21
+ export type IdCaptureGuideOverlayProps = {
22
+ classNames?: IdCaptureGuideOverlayClassNames;
23
+ images?: IdCaptureGuideImages;
24
+ padding?: number;
25
+ imagePadding?: number;
26
+ imageVisible?: boolean;
27
+ borderWidth?: number;
28
+ borderColor?: string;
29
+ idCardBorderWidth?: number | string;
30
+ idCardBorderColor?: string;
31
+ maskColor?: string;
32
+ isMirrored?: boolean;
33
+ isBackToFront?: boolean;
34
+ portraitGuidesOnMobile?: boolean;
35
+ instruction?: string | ReactElement;
36
+ requestedAction?: IdCaptureGuideAction;
37
+ status?: IdCardGuideStatus;
38
+ progress?: number;
39
+ guideBoxDisabled?: boolean;
40
+ onClick?: () => void;
41
+ };
42
+ export type IdCaptureGuideAction = 'SHOW_ID_FRONT' | 'FLIP_ID' | 'SHOW_ID_BACK' | 'SHOW_PASSPORT';
43
+ export declare const IdCaptureGuideOverlay: ({ classNames, images: userSuppliedImages, padding: userSuppliedPadding, imagePadding: userSuppliedImagePadding, imageVisible, borderWidth, borderColor, idCardBorderWidth, idCardBorderColor, maskColor, isMirrored, isBackToFront, portraitGuidesOnMobile, instruction, requestedAction, progress, status, guideBoxDisabled, onClick, }: IdCaptureGuideOverlayProps) => ReactElement;
44
+ export declare const GuidesContainer: 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;
45
+ export declare const GuideCenterRow: 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;
46
+ export declare const GuideRegion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$maskColor" | "$minWidth" | "$minHeight"> & {
47
+ $minWidth?: number;
48
+ $minHeight?: number;
49
+ $maskColor?: string;
50
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$maskColor" | "$minWidth" | "$minHeight"> & {
51
+ $minWidth?: number;
52
+ $minHeight?: number;
53
+ $maskColor?: string;
54
+ }, never>>> & string;
55
+ export declare const Spacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$maskColor" | "$minWidth" | "$minHeight"> & {
56
+ $minWidth?: number;
57
+ $minHeight?: number;
58
+ $maskColor?: string;
59
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$maskColor" | "$minWidth" | "$minHeight"> & {
60
+ $minWidth?: number;
61
+ $minHeight?: number;
62
+ $maskColor?: string;
63
+ }, never>> & {
64
+ as?: import("styled-components").WebTarget | undefined;
65
+ forwardedAs?: import("styled-components").WebTarget | undefined;
66
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$maskColor" | "$minWidth" | "$minHeight"> & {
67
+ $minWidth?: number;
68
+ $minHeight?: number;
69
+ $maskColor?: string;
70
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$maskColor" | "$minWidth" | "$minHeight"> & {
71
+ $minWidth?: number;
72
+ $minHeight?: number;
73
+ $maskColor?: string;
74
+ }, never>> & {
75
+ as?: import("styled-components").WebTarget | undefined;
76
+ forwardedAs?: import("styled-components").WebTarget | undefined;
77
+ }, never>>> & string;
78
+ export declare const GuideCenterRegion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isMirrored" | "$minWidth"> & {
79
+ $minWidth?: number;
80
+ $isMirrored?: boolean;
81
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isMirrored" | "$minWidth"> & {
82
+ $minWidth?: number;
83
+ $isMirrored?: boolean;
84
+ }, never>>> & string;
85
+ export declare const GuideCenterBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$borderWidth" | "$borderColor" | "$padding"> & {
86
+ $borderWidth: number;
87
+ $borderColor?: string;
88
+ $padding?: number;
89
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$borderWidth" | "$borderColor" | "$padding"> & {
90
+ $borderWidth: number;
91
+ $borderColor?: string;
92
+ $padding?: number;
93
+ }, never>>> & string;
94
+ export declare const GuideText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
95
+ export declare const GuideCenterInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isLandscape"> & {
96
+ $isLandscape?: boolean;
97
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isLandscape"> & {
98
+ $isLandscape?: boolean;
99
+ }, never>>> & string;
100
+ //# sourceMappingURL=IdCaptureGuideOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdCaptureGuideOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/guides/IdCaptureGuideOverlay.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAA6B,MAAM,OAAO,CAAA;AAG/D,OAAO,EAGL,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAgB,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAErE,OAAO,EAGL,oBAAoB,EAErB,MAAM,iBAAiB,CAAA;AAGxB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,sBAAsB,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,CAAC,EAAE,+BAA+B,CAAA;IAC5C,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACnC,eAAe,CAAC,EAAE,oBAAoB,CAAA;IACtC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAC5B,eAAe,GACf,SAAS,GACT,cAAc,GACd,eAAe,CAAA;AAEnB,eAAO,MAAM,qBAAqB,GAAI,0UAoBnC,0BAA0B,KAAG,YA0J/B,CAAA;AAkBD,eAAO,MAAM,eAAe,uVAK3B,CAAA;AAED,eAAO,MAAM,cAAc,uVAW1B,CAAA;AAED,eAAO,MAAM,WAAW;gBACV,MAAM;iBACL,MAAM;iBACN,MAAM;;gBAFP,MAAM;iBACL,MAAM;iBACN,MAAM;oBAiBpB,CAAA;AAED,eAAO,MAAM,MAAM;gBArBL,MAAM;iBACL,MAAM;iBACN,MAAM;;gBAFP,MAAM;iBACL,MAAM;iBACN,MAAM;;;;;gBAFP,MAAM;iBACL,MAAM;iBACN,MAAM;;gBAFP,MAAM;iBACL,MAAM;iBACN,MAAM;;;;oBAsBpB,CAAA;AAED,eAAO,MAAM,iBAAiB;gBAChB,MAAM;kBACJ,OAAO;;gBADT,MAAM;kBACJ,OAAO;oBAUtB,CAAA;AAED,eAAO,MAAM,iBAAiB;kBACd,MAAM;mBACL,MAAM;eACV,MAAM;;kBAFH,MAAM;mBACL,MAAM;eACV,MAAM;oBAalB,CAAA;AAED,eAAO,MAAM,SAAS,2VAIrB,CAAA;AAED,eAAO,MAAM,gBAAgB;mBACZ,OAAO;;mBAAP,OAAO;oBAWvB,CAAA"}