@incodetech/web 2.4.1 → 2.5.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +1 -4
- package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-C7oh9rAr.js} +23 -8
- package/dist/Password-CV69m5l9.js +212 -0
- package/dist/RadioGroup-DmCpmlJN.js +123 -0
- package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
- package/dist/RequiredMarker-CAqxArxr.js +16 -0
- package/dist/TextField-D41q5WTe.js +166 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-Bp16S_5w.js} +135 -881
- package/dist/{ageVerification-n-1fouaD.js → ageVerification-BBnJYo9K.js} +10 -8
- package/dist/{am-UBTEdpJv.js → am-CWJUWWuF.js} +135 -881
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/applyStudioConfig-20qjppIu.js +126 -0
- package/dist/{ar-AE--KjG2EAr.js → ar-AE-O12WV51F.js} +136 -882
- package/dist/{ar-RFuhholc.js → ar-DgUYRgR_.js} +135 -881
- package/dist/{ar-EG-y8SWJjy1.js → ar-EG-C7LOd56j.js} +135 -881
- package/dist/assertClassBrand-F6pL6aIr.js +17 -0
- package/dist/authentication/authentication.es.js +9 -6
- package/dist/autoFocusTitle-C2Ro8zdn.js +19 -0
- package/dist/{az-4Z0ZZq7T.js → az-DusLpWep.js} +135 -881
- package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
- package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BixkM88z.js → baseTutorial-BBwEV7AE.js} +9 -7
- package/dist/{bn-CNhjOqja.js → bn-CX4BixDE.js} +135 -881
- package/dist/{bottomSheet-B4REej8W.js → bottomSheet-DRRJstLk.js} +3 -3
- package/dist/{bs-Culcuxab.js → bs-DTnRhENx.js} +134 -880
- package/dist/{ca-h1xwo6CW.js → ca-DBI3m_a_.js} +134 -880
- package/dist/cameraOverlay-Bz9UJCHp.js +2 -0
- package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-VCCUFLoy.js} +9 -8
- package/dist/{cameraView-BpdAdfIK.js → cameraView-CKWEmlho.js} +13 -14
- package/dist/capture-B6vGKsRf.js +3 -0
- package/dist/capture-B_WX2h2H.js +2 -0
- package/dist/{tutorial-HfSD-QZ3.js → capture-BszIVhdg.js} +226 -82
- package/dist/capture-wy0SZwxu.js +754 -0
- package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
- package/dist/captureFocusContext-OuX65pCg.js +718 -0
- package/dist/captureFooter-5KiLmkNi.js +47 -0
- package/dist/{ceb-pTDH3h1x.js → ceb-fG0bt_zV.js} +135 -881
- package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
- package/dist/certificate-issuance/styles.css +1 -1
- package/dist/certificate-issuance/styles.css.js +1 -1
- package/dist/{checkbox-CALR7EFM.js → checkbox-tpW2Q3Zi.js} +4 -4
- package/dist/chooser-CqCxdQx8.js +1517 -0
- package/dist/connectionError-D67rCsgf.js +100 -0
- package/dist/consent/consent.es.js +19 -14
- package/dist/consent/styles.css +1 -1
- package/dist/consent/styles.css.js +1 -1
- package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
- package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
- package/dist/{countrySelector-DKvvYxP6.js → countrySelector-mjGgTZBA.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-DCggApzq.js} +134 -880
- package/dist/{cs-CrQuSSOI.js → cs-DsBY9V_4.js} +134 -880
- package/dist/curp-validation/curp-validation.es.js +97 -96
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-DRwjotY-.js → customFields-COihEvWm.js} +33 -20
- package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-CE5WPSMm.js} +11 -9
- package/dist/{da-DK-CgrU79mp.js → da-DK-B7LXeFYP.js} +134 -880
- package/dist/dashboardTheme-Cxl2WlSK.js +388 -0
- package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-DqOzOxfP.js} +4 -5
- package/dist/dateInputComposed-kP5wiNvH.js +1 -0
- package/dist/{de-D0xnkswj.js → de-BhQ2hOut.js} +134 -880
- package/dist/denied-D4oFpTuV.js +272 -0
- package/dist/devWarn-SLn4Qexk.js +1034 -0
- package/dist/deviceWallet-CPP5AFbd.js +37 -0
- package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DqhYI_sj.js} +4 -4
- package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-p7Zcbeom.js} +37 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-DlBMtLvL.js → documentCapture-DXG8TB9t.js} +136 -72
- package/dist/documentCapture-DczZSZ4A.js +2 -0
- package/dist/dropdownComposed-C3uN_APy.js +1 -0
- package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-CUBU43V3.js} +8 -6
- package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekyb/styles.css.js +1 -1
- package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-mGfuTVTJ.js} +109 -89
- package/dist/ekybModule-xZtYttfn.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekyc/styles.css.js +1 -1
- package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
- package/dist/ekyc-prefill/styles.css +2 -0
- package/dist/ekyc-prefill/styles.css.js +1 -0
- package/dist/ekycModule-Cp-GdWbC.js +789 -0
- package/dist/ekycModule-DXy4cT0v.js +2 -0
- package/dist/ekycPrefillModule-BKbRJuek.js +233 -0
- package/dist/ekycPrefillModule-Cdu0zr52.js +2 -0
- package/dist/{el-B5gLXHxC.js → el-D-zg7VzS.js} +134 -880
- package/dist/{el-GR-DPUvlcvr.js → el-GR-D9eldyAW.js} +134 -880
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-uWLkdb8_.js} +55 -36
- package/dist/email/email.es.js +21 -16
- package/dist/{emailInput-ClX3Lu8X.js → emailInput-Bd8XECrW.js} +23 -12
- package/dist/{en-DG-DOwBuCCl.js → en-DG-CKwP-05W.js} +135 -881
- package/dist/{en-DNuMvR7-.js → en-DY1lnV9V.js} +135 -881
- package/dist/{errorContent-B_pH1MX7.js → errorContent-CqXgrkbQ.js} +21 -20
- package/dist/errorParams-B7BZHaA4.js +37 -0
- package/dist/es-419-DCPTzJnF.js +5 -0
- package/dist/{es-DNl7ceDm.js → es-BKio8b3N.js} +135 -881
- package/dist/{es-ES-BF9vl0Um.js → es-ES-MZM-tZ4f.js} +134 -880
- package/dist/{es-MX-Brp4FXN8.js → es-MX-Bwa400AE.js} +134 -880
- package/dist/{et-D5pPP4r0.js → et-CxKV1DgL.js} +136 -882
- package/dist/expiredId-BGfpQzNG.js +67 -0
- package/dist/extensibility.es.js +382 -55
- package/dist/{fa-IR-BoyK-lax.js → fa-IR-C1bLFtOi.js} +135 -881
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -1
- package/dist/face-match/styles.css.js +1 -1
- package/dist/faceMatch-ClTodgeI.js +2 -0
- package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-DpccWhgb.js} +54 -71
- package/dist/{fi-FI-mYdAUbtG.js → fi-FI-BC_3lqbM.js} +134 -880
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-CXSUE89Z.js +2 -0
- package/dist/fieldComparison-D2c7jots.js +126 -0
- package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
- package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-D1AeAOtK.js} +31 -22
- package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
- package/dist/flipAnimation-DwvNk514.js +46 -0
- package/dist/flipCapturedCardEligibility-C8ppBgP9.js +210 -0
- package/dist/flow/flow.es.js +315 -287
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/formField-Bum3oh1A.js +49 -0
- package/dist/{fr-B4R5fgnm.js → fr-BGr4ZZSw.js} +134 -880
- package/dist/{fr-CA-DJSwRuWt.js → fr-CA-COfhYgrk.js} +134 -880
- package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
- package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -12
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D2RDlnbd.js → he-BGdP9Cfd.js} +135 -881
- package/dist/helpButtonConfig-BFragC_J.js +24 -0
- package/dist/{hi-DFXhGN9O.js → hi-B8upUDpu.js} +135 -881
- package/dist/{hmn-BlNbfL-D.js → hmn-DOK-cZdX.js} +135 -881
- package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CPaZiLqi.js} +26 -14
- package/dist/{incodeComponent-B-lwJJCV.js → hooks-C6m_ILVe.js} +256 -280
- package/dist/{hr-DArr3n62.js → hr-BjtqyvXa.js} +134 -880
- package/dist/{ht-CAd-Hmi1.js → ht-CbbFp5XL.js} +135 -881
- package/dist/{hu-CulT8eq_.js → hu-BXk1xFve.js} +135 -881
- package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
- package/dist/id/id.es.js +167 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-D2VZL6b-.js → id-BrJu1D4k.js} +134 -880
- package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
- package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
- package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
- package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +12 -6
- package/dist/idFlipTransition-DMAbw1_Y.js +154 -0
- package/dist/{idOcr-BWG3vj8j.js → idOcr-D9zxy2eU.js} +64 -37
- package/dist/identity-reuse/identity-reuse.es.js +38 -25
- package/dist/identity-reuse/styles.css.js +1 -0
- package/dist/incodeComponent-DPY-ikO3.js +235 -0
- package/dist/incodeModule-Dyy5PfM4.js +41 -0
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-B35soRFg.js → inputComposed-BG3XgpYE.js} +4 -4
- package/dist/{it-fs9OkGbv.js → it-DI-TPE-K.js} +135 -881
- package/dist/{ja-BvKVI6Oo.js → ja-3XIFqaXu.js} +135 -881
- package/dist/{ja-JP-C5-gDGuX.js → ja-JP-BAeRWiVk.js} +136 -882
- package/dist/{jv-CyId7aPo.js → jv-BhjQxxBl.js} +134 -880
- package/dist/{ka-pqIPc2el.js → ka-Bx4-RrZ_.js} +135 -881
- package/dist/{kk-DK7mWl6k.js → kk-Ct91ZRbP.js} +134 -880
- package/dist/{km-BaJYdDrm.js → km-BWQuuNXz.js} +142 -888
- package/dist/{ko-CdYIGTH_.js → ko-Cve9iLc7.js} +135 -881
- package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-0iLztCuj.js} +135 -881
- package/dist/{ky-Bc7ZXIXy.js → ky-DGt4vj88.js} +134 -880
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-BlLRwSFe.js +2 -0
- package/dist/kybChecksModule-DmjxRBhO.js +345 -0
- package/dist/{lo-0jgAavCe.js → lo-DPvsfR2F.js} +135 -881
- package/dist/{lt-DDEjR6RD.js → lt-BMI5NrHt.js} +134 -880
- package/dist/{lv-Ddzb_N3H.js → lv-Bpw5rGRP.js} +135 -881
- package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Blhxc0KK.js} +23 -16
- package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-B1hLcNl4.js} +8 -7
- package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-Cr-FQ3-N.js} +16 -12
- package/dist/{mk-SJwou4aX.js → mk-C9Z-5xUg.js} +135 -881
- package/dist/{mn-7B86xjpb.js → mn-p0zBw-tm.js} +134 -880
- package/dist/{ms-Bb-SlQCF.js → ms-CF8aT_Qq.js} +134 -880
- package/dist/{my-3ci4RJZY.js → my-CqWwTa_5.js} +135 -881
- package/dist/{nb-NO-DpZAni0R.js → nb-NO-C7Hb8Ok5.js} +134 -880
- package/dist/{ne-Dncyvxqt.js → ne-B5InVJ21.js} +135 -881
- package/dist/{nl-C1mnzCBH.js → nl-aJiBBLFg.js} +134 -880
- package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-JFrEz0Ax.js} +27 -11
- package/dist/otpInput-Bn8PHFh7.js +245 -0
- package/dist/{page-DINsqGIw.js → page-b7Hx6klV.js} +102 -79
- package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-BlsOWl2d.js} +88 -14
- package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
- package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
- package/dist/passwordRequirements-13qw_WSJ.js +49 -0
- package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
- package/dist/pdfViewer-BT-O-Zj1.js +2 -0
- package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-D_sXx3SF.js} +11 -14
- package/dist/permissionInstructionList-CGo9uSeQ.js +43 -0
- package/dist/{permissions-B7-lHrFm.js → permissions-CS58hLHp.js} +84 -53
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-Dc2lHg4Z.js} +49 -12
- package/dist/{pl-CWr2fVBg.js → pl-CDmSpQ_-.js} +134 -880
- package/dist/preloadableLazy-KWGuHoqn.js +43 -0
- package/dist/{processing-z5wuXrKw.js → processing-C5A54RCC.js} +2 -2
- package/dist/{progressBar-BcKFaXZR.js → progressBar-CmkJY5xT.js} +2 -2
- package/dist/{pt-AGz2XGAK.js → pt-0SO_cPU9.js} +135 -881
- package/dist/{pt-BR-CMvTsOqE.js → pt-BR-BEfs5M8G.js} +135 -881
- package/dist/{pt-PT-KzIM0vpf.js → pt-PT-ONBmg0BR.js} +135 -881
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
- package/dist/{resendTimer-On_zrMLS.js → resendTimer-B7aR2zn3.js} +2 -2
- package/dist/richText-DlHC_sMB.js +1761 -0
- package/dist/{ro-DYdJJDKn.js → ro-ChyvDsu3.js} +135 -881
- package/dist/{ru-C1cguVi2.js → ru-B_vdxKv-.js} +134 -880
- package/dist/{ru-RU-18JeDfwz.js → ru-RU-CrvUlCJj.js} +134 -880
- package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
- package/dist/selfie/selfie.es.js +37 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-CtIcnYOo.js → sk-ljMYKwHQ.js} +136 -882
- package/dist/{sl-DS_Gc0Wc.js → sl-BbVJSIEt.js} +135 -881
- package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-BOIszuLx.js} +40 -27
- package/dist/{so-dqMTkg5E.js → so-DTymvbrx.js} +135 -881
- package/dist/spacer-DQdgPJjU.js +1100 -0
- package/dist/spinner-DQf6JseL.js +69 -0
- package/dist/{sr-DgHGiiWM.js → sr-JVvblELi.js} +134 -880
- package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-9I-jEoNt.js} +142 -888
- package/dist/sr-YU-AHJXObyx.js +5 -0
- package/dist/{sv-SE-Dw61hRjx.js → sv-SE-MhrEy6Di.js} +134 -880
- package/dist/{sw-De-Jo8XY.js → sw-2Mtjggv_.js} +135 -881
- package/dist/{th-BJixOgsM.js → th-CRCVvVIy.js} +135 -881
- package/dist/{th-TH-VyhljC5U.js → th-TH-BJP2vgt1.js} +135 -881
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-DhjdqhA4.js → tl-CI98qs3U.js} +135 -881
- package/dist/{tl-PH-D2S2Irx7.js → tl-PH-Bwmbtl_j.js} +135 -881
- package/dist/{tr-BJAuvOwN.js → tr-Bjsibm46.js} +135 -881
- package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-BTr1yrwy.js} +7 -7
- package/dist/tutorial-DO3fs1fY.js +28 -0
- package/dist/types/ae-signature.d.ts +17 -4
- package/dist/types/antifraud.d.ts +17 -4
- package/dist/types/authentication.d.ts +17 -4
- package/dist/types/certificate-issuance.d.ts +17 -4
- package/dist/types/consent.d.ts +17 -4
- package/dist/types/cross-document-data-match.d.ts +17 -4
- package/dist/types/curp-validation.d.ts +17 -4
- package/dist/types/document-capture.d.ts +17 -4
- package/dist/types/dynamic-forms.d.ts +17 -4
- package/dist/types/ekyb.d.ts +17 -4
- package/dist/types/ekyc-prefill.d.ts +213 -0
- package/dist/types/ekyc.d.ts +17 -4
- package/dist/types/electronic-signature.d.ts +17 -4
- package/dist/types/email.d.ts +17 -4
- package/dist/types/extensibility.d.ts +204 -37
- package/dist/types/face-match.d.ts +17 -4
- package/dist/types/field-comparison.d.ts +17 -4
- package/dist/types/fiscal-qr.d.ts +17 -4
- package/dist/types/flow.d.ts +38 -5
- package/dist/types/geolocation.d.ts +17 -4
- package/dist/types/government-validation.d.ts +17 -4
- package/dist/types/id-selfie-flow.d.ts +17 -4
- package/dist/types/id-verification.d.ts +17 -4
- package/dist/types/id.d.ts +17 -4
- package/dist/types/identity-reuse.d.ts +18 -5
- package/dist/types/index.d.ts +92 -10
- package/dist/types/kyb-checks.d.ts +213 -0
- package/dist/types/phone.d.ts +17 -4
- package/dist/types/qe-signature.d.ts +17 -4
- package/dist/types/redirect-to-mobile.d.ts +1 -1
- package/dist/types/selfie.d.ts +17 -4
- package/dist/types/signature.d.ts +17 -4
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +17 -4
- package/dist/types/workflow.d.ts +17 -4
- package/dist/{typography-8iwtPQbj.js → typography-CyT20XIA.js} +3 -11
- package/dist/{uk-UA-BZR90qDZ.js → uk-UA-DmKAplUk.js} +135 -881
- package/dist/{uk-CcU91ee-.js → uk-fCdIfhh5.js} +134 -880
- package/dist/{ur-CIXtUYHK.js → ur-Dh9AF1hS.js} +135 -881
- package/dist/useCameraPreview-hNLhri73.js +93 -0
- package/dist/useCaptureHelpButton-CSuQmlEp.js +43 -0
- package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
- package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
- package/dist/{uz-CeLVgwAD.js → uz-DYarfGyT.js} +135 -881
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
- package/dist/{verificationResult-C2gxbmAo.js → verificationResult-C8jlwbOw.js} +30 -27
- package/dist/{vi-CgfGVVLY.js → vi-uK03Bfuc.js} +135 -881
- package/dist/video-selfie/styles.css +1 -1
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +120 -77
- package/dist/watchlist/watchlist.es.js +12 -9
- package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-DjSYKjVv.js} +63 -22
- package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-TlaaD6Qn.js} +253 -55
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +36 -28
- package/dist/{zh-CN-BOxod1_T.js → zh-CN-BkQoAg2R.js} +136 -882
- package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DRh68ryN.js} +135 -881
- package/dist/{zh-B-kjeCig.js → zh-JlU3mjl9.js} +134 -880
- package/dist/{zh-TW-B0v7GYYG.js → zh-TW-ByGAHrvB.js} +135 -881
- package/package.json +48 -12
- package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
- package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
- package/dist/cameraOverlay-DQEG24io.js +0 -2
- package/dist/check-icon-BpjpKqhJ.js +0 -48
- package/dist/connectionError-Cf6iGFyx.js +0 -45
- package/dist/dashboardTheme-CkyISqIs.js +0 -247
- package/dist/dateInputComposed-cgZGBSiu.js +0 -1
- package/dist/denied-ByGDWkTW.js +0 -1871
- package/dist/deviceWallet-C4UT05wN.js +0 -66
- package/dist/documentCapture-Dh1ftzGG.js +0 -2
- package/dist/dropdownComposed-DmT4s8VM.js +0 -1
- package/dist/ekybModule-BHInfPHS.js +0 -2
- package/dist/ekycModule-B2cfT3zi.js +0 -2
- package/dist/ekycModule-BQPl1KQT.js +0 -300
- package/dist/es-419-BU7r2Fvh.js +0 -3193
- package/dist/esm-15CISqPe.js +0 -430
- package/dist/expiredId-GIHjGAuY.js +0 -80
- package/dist/faceMatch-bXhejzhf.js +0 -2
- package/dist/fieldComparison-BirXQb7f.js +0 -2
- package/dist/fieldComparison-D8PL0eR1.js +0 -109
- package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
- package/dist/formField-0k8wVfXl.js +0 -60
- package/dist/incodeModule-DiVtqekm.js +0 -68
- package/dist/inputComposed-CKujYUSB.js +0 -1
- package/dist/numberedStep-CvbL3ht2.js +0 -13
- package/dist/otpInput-_B7xEZUU.js +0 -157
- package/dist/passwordInputComposed-B3WKjODU.js +0 -74
- package/dist/pdfViewer-DcB41xr7.js +0 -2
- package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
- package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
- package/dist/reload-icon-elAFo9-k.js +0 -70
- package/dist/richText-aCnLd3j2.js +0 -1549
- package/dist/spacer-lcnhSC-5.js +0 -741
- package/dist/spinner-B8BswhBb.js +0 -88
- package/dist/sr-YU-YuZu7wdb.js +0 -3197
- package/dist/statusPage-WIsGgf_m.js +0 -36
- package/dist/uiConfig-CwGL3QjP.js +0 -2589
- package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
- package/dist/useCoverMedia-VLw3OYN_.js +0 -149
- /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
- /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
- /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
- /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { u as useTranslation } from "./devWarn-SLn4Qexk.js";
|
|
2
|
+
import { b as y, u as A, x as u } from "./vendor-preact-CjnloSla.js";
|
|
3
|
+
import { b as PrizmaButton } from "./icons-DLZTxOV2.js";
|
|
4
|
+
import { n as Title } from "./spacer-DQdgPJjU.js";
|
|
5
|
+
import { t as Page } from "./page-b7Hx6klV.js";
|
|
6
|
+
import "./typography-CyT20XIA.js";
|
|
7
|
+
//#region src/shared/expiredId/expiredId.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Shown when the backend reports `isDocumentExpired: true`. Exactly one of
|
|
10
|
+
* `onRetry` / `onContinue` should be provided; if both are passed, retry
|
|
11
|
+
* takes precedence.
|
|
12
|
+
*
|
|
13
|
+
* Visual contract mirrors the SDK 1 UXv2 Expired ID screen (red strike icon,
|
|
14
|
+
* centered title + subtitle, full-width primary button anchored near the
|
|
15
|
+
* bottom). The optional attempts counter (added by core PR #439 / SDK 1
|
|
16
|
+
* `IdError` parity) renders only when `attemptsRemaining` is supplied.
|
|
17
|
+
*/
|
|
18
|
+
var ExpiredId = ({ onRetry, onContinue, attemptsRemaining, isBackSide }) => {
|
|
19
|
+
const { t } = useTranslation();
|
|
20
|
+
const titleRef = A(null);
|
|
21
|
+
y(() => {
|
|
22
|
+
titleRef.current?.focus();
|
|
23
|
+
}, []);
|
|
24
|
+
return /* @__PURE__ */ u(Page, {
|
|
25
|
+
hideHeader: true,
|
|
26
|
+
hideFooterBranding: true,
|
|
27
|
+
className: "IncodeIdExpiredPage",
|
|
28
|
+
"data-testid": "expired-id",
|
|
29
|
+
children: [/* @__PURE__ */ u("div", {
|
|
30
|
+
class: "IncodeIdExpiredContent",
|
|
31
|
+
role: "alert",
|
|
32
|
+
children: /* @__PURE__ */ u(Title, {
|
|
33
|
+
ref: titleRef,
|
|
34
|
+
tabIndex: -1,
|
|
35
|
+
className: "IncodeIdExpiredTitle",
|
|
36
|
+
showSubtitle: true,
|
|
37
|
+
subtitle: isBackSide ? t("idv2.digitalIdUpload.wrongDocumentTypeScreen.errorSubtitle") : t("idv2.capture.expiredId.pleaseTryWithADifferentId"),
|
|
38
|
+
subtitleProps: { className: "IncodeIdExpiredSubtitle" },
|
|
39
|
+
icon: {
|
|
40
|
+
type: "status",
|
|
41
|
+
status: "error"
|
|
42
|
+
},
|
|
43
|
+
children: t("idv2.capture.notifications.expiredId")
|
|
44
|
+
})
|
|
45
|
+
}), /* @__PURE__ */ u("div", { children: [attemptsRemaining !== void 0 ? /* @__PURE__ */ u("p", {
|
|
46
|
+
class: "IncodeIdExpiredAttemptsCounter",
|
|
47
|
+
"data-testid": "expired-id-attempts-counter",
|
|
48
|
+
children: `${attemptsRemaining} ${t("idv2.capture.processing.attemptsRemainingLabel")}`
|
|
49
|
+
}) : null, onRetry ? /* @__PURE__ */ u(PrizmaButton, {
|
|
50
|
+
size: "L",
|
|
51
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
52
|
+
variant: "primary",
|
|
53
|
+
onClick: onRetry,
|
|
54
|
+
"data-testid": "expired-id-retry",
|
|
55
|
+
children: t("idv2.capture.processing.tryAgain")
|
|
56
|
+
}) : onContinue ? /* @__PURE__ */ u(PrizmaButton, {
|
|
57
|
+
size: "L",
|
|
58
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
59
|
+
variant: "primary",
|
|
60
|
+
onClick: onContinue,
|
|
61
|
+
"data-testid": "expired-id-continue",
|
|
62
|
+
children: t("idv2.capture.processing.continue")
|
|
63
|
+
}) : null] })]
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { ExpiredId as t };
|
package/dist/extensibility.es.js
CHANGED
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import "./
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import "./
|
|
26
|
-
import { t as
|
|
27
|
-
import "./
|
|
28
|
-
import
|
|
29
|
-
import "./
|
|
30
|
-
import {
|
|
31
|
-
import { t as BottomSheet } from "./bottomSheet-
|
|
32
|
-
import { n as CameraFrame, t as CameraView } from "./cameraView-
|
|
33
|
-
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-
|
|
34
|
-
import { t as
|
|
35
|
-
import "./cameraOverlay-
|
|
36
|
-
import {
|
|
37
|
-
import { t as BaseTutorial } from "./baseTutorial-
|
|
38
|
-
import { t as Permissions } from "./permissions-
|
|
39
|
-
import {
|
|
1
|
+
import { i as setUiConfig, u as useTranslation } from "./devWarn-SLn4Qexk.js";
|
|
2
|
+
import { T as k, b as y, f as T, h as d, i as D, p as _, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
|
|
3
|
+
import { t as applyStudioConfig } from "./applyStudioConfig-20qjppIu.js";
|
|
4
|
+
import { _ as CaptureButtonIcon, a as HelpIcon, b as PrizmaButton, c as EyeIcon, d as CloseIcon, f as ChevronRightIcon, g as CheckmarkIcon, h as CheckmarkCompactIcon, i as LockIcon, l as ErrorIcon, m as ChevronDown, n as SuccessIcon, o as FileIcon, p as ChevronLeftIcon, r as SearchIcon, s as EyeOffIcon, t as LightningIcon, u as EllipseIcon, v as CameraIcon, y as CalendarIcon } from "./icons-DLZTxOV2.js";
|
|
5
|
+
import { a as AnimatedAsset, c as useAnimation, f as isActiveOverride, h as cn, i as Asset, l as useAsset, n as Title, p as Lottie, t as Spacer } from "./spacer-DQdgPJjU.js";
|
|
6
|
+
import { t as Page } from "./page-b7Hx6klV.js";
|
|
7
|
+
import { r as Modal } from "./pageUiConfig-BlsOWl2d.js";
|
|
8
|
+
import { t as ConnectionError } from "./connectionError-D67rCsgf.js";
|
|
9
|
+
import { v as useScreenOrientation, y as useManager } from "./hooks-C6m_ILVe.js";
|
|
10
|
+
import { a as TypographyP, i as TypographyH5, n as TypographyH3, r as TypographyH4, t as TypographyH1 } from "./typography-CyT20XIA.js";
|
|
11
|
+
import { t as Spinner } from "./spinner-DQf6JseL.js";
|
|
12
|
+
import "./transitionSpinner-BTr1yrwy.js";
|
|
13
|
+
import { n as LandscapeBlocker, t as IncodeComponent } from "./incodeComponent-DPY-ikO3.js";
|
|
14
|
+
import { t as Processing } from "./processing-C5A54RCC.js";
|
|
15
|
+
import { t as ErrorContent } from "./errorContent-CqXgrkbQ.js";
|
|
16
|
+
import { t as VerificationResult } from "./verificationResult-C8jlwbOw.js";
|
|
17
|
+
import { t as Capture$1 } from "./capture-BszIVhdg.js";
|
|
18
|
+
import { t as ProgressBar } from "./progressBar-CmkJY5xT.js";
|
|
19
|
+
import { n as Input, t as InputComposed } from "./inputComposed-BG3XgpYE.js";
|
|
20
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-yMZjXK6p.js";
|
|
21
|
+
import { t as DateInputComposed } from "./dateInputComposed-DqOzOxfP.js";
|
|
22
|
+
import { t as PasswordRequirements } from "./passwordRequirements-13qw_WSJ.js";
|
|
23
|
+
import { t as OtpInput } from "./otpInput-Bn8PHFh7.js";
|
|
24
|
+
import { t as Checkbox } from "./checkbox-tpW2Q3Zi.js";
|
|
25
|
+
import { t as FormField } from "./formField-Bum3oh1A.js";
|
|
26
|
+
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-Dc2lHg4Z.js";
|
|
27
|
+
import { t as DropdownComposed } from "./dropdownComposed-CUBU43V3.js";
|
|
28
|
+
import "./dropdownComposed-C3uN_APy.js";
|
|
29
|
+
import "./dateInputComposed-kP5wiNvH.js";
|
|
30
|
+
import { i as VerificationOptionCardList, n as Tutorial, r as VerificationOptionCard, t as Chooser } from "./chooser-CqCxdQx8.js";
|
|
31
|
+
import { t as BottomSheet } from "./bottomSheet-DRRJstLk.js";
|
|
32
|
+
import { n as CameraFrame, t as CameraView } from "./cameraView-CKWEmlho.js";
|
|
33
|
+
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-VCCUFLoy.js";
|
|
34
|
+
import { t as useCameraPreview } from "./useCameraPreview-hNLhri73.js";
|
|
35
|
+
import "./cameraOverlay-Bz9UJCHp.js";
|
|
36
|
+
import { t as CaptureFooter } from "./captureFooter-5KiLmkNi.js";
|
|
37
|
+
import { t as BaseTutorial } from "./baseTutorial-BBwEV7AE.js";
|
|
38
|
+
import { t as Permissions } from "./permissions-CS58hLHp.js";
|
|
39
|
+
import { t as Tutorial$1 } from "./tutorial-DO3fs1fY.js";
|
|
40
|
+
import { c as IdError, s as IdExpired } from "./captureFocusContext-OuX65pCg.js";
|
|
41
|
+
import { t as Capture } from "./capture-wy0SZwxu.js";
|
|
42
|
+
import { t as FlipAnimation } from "./flipAnimation-DwvNk514.js";
|
|
40
43
|
//#region src/shared/overlay/overlay.tsx
|
|
41
44
|
var Overlay = ({ children, "aria-labelledby": ariaLabelledBy, class: className }) => {
|
|
42
45
|
return /* @__PURE__ */ u("div", {
|
|
@@ -54,6 +57,174 @@ var Overlay = ({ children, "aria-labelledby": ariaLabelledBy, class: className }
|
|
|
54
57
|
});
|
|
55
58
|
};
|
|
56
59
|
//#endregion
|
|
60
|
+
//#region src/shared/loader/loadingIcon.tsx
|
|
61
|
+
/**
|
|
62
|
+
* Duration of the CSS spin animation on `.IncodeLoadingIcon`.
|
|
63
|
+
* Must stay in sync with the `animation-duration` declared in the stylesheet.
|
|
64
|
+
*/
|
|
65
|
+
var SPIN_DURATION_MS = 1e3;
|
|
66
|
+
var SpinnerPrimary = ({ size, className }) => {
|
|
67
|
+
return /* @__PURE__ */ u("svg", {
|
|
68
|
+
width: size,
|
|
69
|
+
height: size,
|
|
70
|
+
viewBox: "0 0 31 31",
|
|
71
|
+
fill: "none",
|
|
72
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
73
|
+
class: cn("IncodeLoadingIconPrimaryIcon", className),
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
children: /* @__PURE__ */ u("path", { d: "M28.161 15.284c1.292 0 2.358-1.054 2.157-2.33A15 15 0 0 0 17.83.466c-1.276-.2-2.329.865-2.329 2.156s1.06 2.313 2.319 2.603a10.32 10.32 0 0 1 7.74 7.74c.29 1.259 1.31 2.319 2.602 2.319Z" })
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
var SpinnerSecondary = ({ size, className }) => {
|
|
79
|
+
return /* @__PURE__ */ u("svg", {
|
|
80
|
+
width: size,
|
|
81
|
+
height: size,
|
|
82
|
+
viewBox: "0 0 31 31",
|
|
83
|
+
fill: "none",
|
|
84
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
+
class: cn("IncodeLoadingIconSecondaryIcon", className),
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
children: [/* @__PURE__ */ u("title", { children: "Spinner Outer part" }), /* @__PURE__ */ u("path", { d: "M30.5 15.284c0 8.284-6.716 15-15 15s-15-6.716-15-15c0-8.285 6.716-15 15-15s15 6.715 15 15Zm-25.323 0c0 5.7 4.622 10.322 10.323 10.322s10.323-4.621 10.323-10.322S21.2 4.96 15.5 4.96 5.177 9.583 5.177 15.284Z" })]
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Legacy loading glyph, kept only for the legacy `Button` so the SDK can roll
|
|
92
|
+
* back to it. New code uses `PrizmaLoadingSpinner` with `useLoaderOverride`.
|
|
93
|
+
*/
|
|
94
|
+
var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
|
|
95
|
+
const ref = A(null);
|
|
96
|
+
const overrideRef = A(null);
|
|
97
|
+
const animation = useAnimation("loader.spinner");
|
|
98
|
+
const svg = useAsset("loader.spinner");
|
|
99
|
+
const hasAnimationOverride = isActiveOverride(animation);
|
|
100
|
+
const hasSvgOverride = isActiveOverride(svg);
|
|
101
|
+
const [overrideFailed, setOverrideFailed] = d(false);
|
|
102
|
+
const handleFallback = q(() => setOverrideFailed(true), []);
|
|
103
|
+
const hasOverride = (hasAnimationOverride || hasSvgOverride) && !overrideFailed;
|
|
104
|
+
/**
|
|
105
|
+
* Cross-module loaders (e.g. ID processing → selfie initialising) unmount
|
|
106
|
+
* and remount this component as the user moves between flow steps. By
|
|
107
|
+
* default each remount restarts the CSS spin animation from frame 0, which
|
|
108
|
+
* reads as a visible "stutter" or reset of the spinner during otherwise
|
|
109
|
+
* seamless transitions.
|
|
110
|
+
*
|
|
111
|
+
* To keep the rotation continuous across remounts we anchor the animation
|
|
112
|
+
* to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
|
|
113
|
+
* how far into the current spin cycle we are, and applying it as a
|
|
114
|
+
* negative `animation-delay` makes the new instance pick up exactly where
|
|
115
|
+
* the previous one left off. (Built-in default only.)
|
|
116
|
+
*/
|
|
117
|
+
_(() => {
|
|
118
|
+
if (hasOverride || !ref.current) return;
|
|
119
|
+
const offsetMs = performance.now() % SPIN_DURATION_MS;
|
|
120
|
+
ref.current.style.animationDelay = `-${offsetMs}ms`;
|
|
121
|
+
}, [hasOverride]);
|
|
122
|
+
_(() => {
|
|
123
|
+
if (!overrideRef.current) return;
|
|
124
|
+
overrideRef.current.style.width = `${size}px`;
|
|
125
|
+
overrideRef.current.style.height = `${size}px`;
|
|
126
|
+
}, [size, hasOverride]);
|
|
127
|
+
if (hasOverride) return /* @__PURE__ */ u("div", {
|
|
128
|
+
ref: overrideRef,
|
|
129
|
+
class: "IncodeLoadingIconOverride",
|
|
130
|
+
children: hasAnimationOverride ? /* @__PURE__ */ u(AnimatedAsset, {
|
|
131
|
+
name: "loader.spinner",
|
|
132
|
+
loop: true,
|
|
133
|
+
onFallback: handleFallback
|
|
134
|
+
}) : /* @__PURE__ */ u(Asset, {
|
|
135
|
+
name: "loader.spinner",
|
|
136
|
+
onFallback: handleFallback
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
return /* @__PURE__ */ u("div", {
|
|
140
|
+
ref,
|
|
141
|
+
class: "IncodeLoadingIcon",
|
|
142
|
+
children: [/* @__PURE__ */ u(SpinnerSecondary, {
|
|
143
|
+
size,
|
|
144
|
+
className: secondaryClass
|
|
145
|
+
}), /* @__PURE__ */ u("div", {
|
|
146
|
+
class: "IncodeLoadingIconPrimary",
|
|
147
|
+
children: /* @__PURE__ */ u(SpinnerPrimary, {
|
|
148
|
+
size,
|
|
149
|
+
className: primaryClass
|
|
150
|
+
})
|
|
151
|
+
})]
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/shared/button/button.tsx
|
|
156
|
+
var LOADER_SIZE = 30;
|
|
157
|
+
var variantClass = {
|
|
158
|
+
primary: "IncodeButtonPrimary",
|
|
159
|
+
secondary: "IncodeButtonSecondary",
|
|
160
|
+
link: "IncodeButtonLink"
|
|
161
|
+
};
|
|
162
|
+
var sizeClass = {
|
|
163
|
+
L: "IncodeButtonL",
|
|
164
|
+
M: "IncodeButtonM",
|
|
165
|
+
S: "IncodeButtonS",
|
|
166
|
+
inline: "IncodeButtonInline"
|
|
167
|
+
};
|
|
168
|
+
var Button = D((props, ref) => {
|
|
169
|
+
const { isLoading = false, variant = "primary", size = "L", icon, class: className, type = "button", children, disabled, ...rest } = props;
|
|
170
|
+
const iconOnly = !children && !!icon;
|
|
171
|
+
const showLoader = isLoading && size === "L";
|
|
172
|
+
const renderContent = () => {
|
|
173
|
+
if (showLoader) return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(LoadingIcon, { size: LOADER_SIZE }), children ? /* @__PURE__ */ u("span", {
|
|
174
|
+
class: "IncodeButtonLoadingLabel",
|
|
175
|
+
children
|
|
176
|
+
}) : null] });
|
|
177
|
+
if (iconOnly) return icon;
|
|
178
|
+
if (icon) return /* @__PURE__ */ u(k, { children: [children, icon] });
|
|
179
|
+
return children;
|
|
180
|
+
};
|
|
181
|
+
return /* @__PURE__ */ u("button", {
|
|
182
|
+
ref,
|
|
183
|
+
...rest,
|
|
184
|
+
class: cn("IncodeButton", variantClass[variant], sizeClass[size], showLoader ? "IncodeButtonLoading" : "", iconOnly ? "IncodeButtonIconOnly" : "", className),
|
|
185
|
+
disabled: disabled || showLoader,
|
|
186
|
+
"aria-busy": showLoader || void 0,
|
|
187
|
+
type,
|
|
188
|
+
children: renderContent()
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/shared/passwordInputComposed/passwordInputComposed.tsx
|
|
193
|
+
var PasswordInputComposed = D(({ id, value, class: className, invalid, showPasswordAriaLabel, hidePasswordAriaLabel, defaultVisible = false, requirementsHeading, requirements = [], requirementMetLabel, requirementUnmetLabel, ...restProps }, ref) => {
|
|
194
|
+
const [visible, setVisible] = d(defaultVisible);
|
|
195
|
+
const hasValue = !!(value && String(value).length > 0);
|
|
196
|
+
const allMet = requirements.every((requirement) => requirement.met);
|
|
197
|
+
const showRequirementsError = hasValue && requirements.length > 0 && !allMet;
|
|
198
|
+
return /* @__PURE__ */ u("div", {
|
|
199
|
+
class: cn("IncodePasswordInputComposed", className),
|
|
200
|
+
children: [/* @__PURE__ */ u(InputComposed, {
|
|
201
|
+
...restProps,
|
|
202
|
+
id,
|
|
203
|
+
ref,
|
|
204
|
+
value,
|
|
205
|
+
type: visible ? "text" : "password",
|
|
206
|
+
invalid: showRequirementsError || invalid,
|
|
207
|
+
rightIcon: /* @__PURE__ */ u("button", {
|
|
208
|
+
type: "button",
|
|
209
|
+
class: "IncodePasswordInputComposedToggle",
|
|
210
|
+
"aria-label": visible ? hidePasswordAriaLabel : showPasswordAriaLabel,
|
|
211
|
+
"aria-pressed": visible,
|
|
212
|
+
"aria-controls": id,
|
|
213
|
+
"data-testid": `${id}-toggle-visibility`,
|
|
214
|
+
onClick: () => setVisible((currentlyVisible) => !currentlyVisible),
|
|
215
|
+
children: visible ? /* @__PURE__ */ u(EyeOffIcon, { size: 24 }) : /* @__PURE__ */ u(EyeIcon, { size: 24 })
|
|
216
|
+
})
|
|
217
|
+
}), /* @__PURE__ */ u(PasswordRequirements, {
|
|
218
|
+
id,
|
|
219
|
+
heading: requirementsHeading,
|
|
220
|
+
requirements,
|
|
221
|
+
invalid: showRequirementsError,
|
|
222
|
+
requirementMetLabel,
|
|
223
|
+
requirementUnmetLabel
|
|
224
|
+
})]
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
//#endregion
|
|
57
228
|
//#region src/shared/segmentedDateInput/segmentedDateInput.tsx
|
|
58
229
|
/**
|
|
59
230
|
* ⚠️ EXPERIMENTAL — DO NOT USE IN FORMS.
|
|
@@ -573,6 +744,161 @@ var SegmentedDateInput = D(({ id, label, labelHint, "aria-label": ariaLabel, err
|
|
|
573
744
|
});
|
|
574
745
|
SegmentedDateInput.displayName = "SegmentedDateInput";
|
|
575
746
|
//#endregion
|
|
747
|
+
//#region src/shared/radioButtonComposed/radioButtonComposed.tsx
|
|
748
|
+
var textSizeClass = {
|
|
749
|
+
M: "IncodeRadioButtonTextM",
|
|
750
|
+
S: "IncodeRadioButtonTextS"
|
|
751
|
+
};
|
|
752
|
+
var RadioButtonComposed = D(({ id, label, labelHint, checked, defaultChecked, disabled = false, required = false, name, value, onChange, error, helper, showErrorIcon = true, textSize = "M", class: className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...restProps }, ref) => {
|
|
753
|
+
const [internalChecked, setInternalChecked] = d(!!defaultChecked);
|
|
754
|
+
const isControlled = checked !== void 0;
|
|
755
|
+
const isChecked = isControlled ? !!checked : internalChecked;
|
|
756
|
+
const isDisabled = !!disabled;
|
|
757
|
+
const handleChange = (event) => {
|
|
758
|
+
if (!isControlled) setInternalChecked(event.target.checked);
|
|
759
|
+
onChange?.(event);
|
|
760
|
+
};
|
|
761
|
+
const helperTextId = helper ? `${id}-helper` : void 0;
|
|
762
|
+
const errorTextId = error ? `${id}-error` : void 0;
|
|
763
|
+
const describedBy = [
|
|
764
|
+
ariaDescribedBy,
|
|
765
|
+
errorTextId,
|
|
766
|
+
helperTextId
|
|
767
|
+
].filter(Boolean).join(" ") || void 0;
|
|
768
|
+
return /* @__PURE__ */ u("div", {
|
|
769
|
+
class: cn("IncodeRadioButton", className),
|
|
770
|
+
children: [
|
|
771
|
+
/* @__PURE__ */ u("label", {
|
|
772
|
+
class: cn("IncodeRadioButtonLabel", { IncodeRadioButtonLabelDisabled: isDisabled }),
|
|
773
|
+
htmlFor: id,
|
|
774
|
+
children: [/* @__PURE__ */ u("div", {
|
|
775
|
+
class: "IncodeRadioButtonControl",
|
|
776
|
+
children: [/* @__PURE__ */ u("input", {
|
|
777
|
+
ref,
|
|
778
|
+
type: "radio",
|
|
779
|
+
class: "IncodeRadioButtonInput",
|
|
780
|
+
id,
|
|
781
|
+
name,
|
|
782
|
+
value,
|
|
783
|
+
...isControlled ? { checked } : { defaultChecked },
|
|
784
|
+
disabled,
|
|
785
|
+
required,
|
|
786
|
+
onChange: handleChange,
|
|
787
|
+
"aria-label": ariaLabel,
|
|
788
|
+
"aria-labelledby": ariaLabelledBy,
|
|
789
|
+
"aria-describedby": describedBy,
|
|
790
|
+
...restProps
|
|
791
|
+
}), /* @__PURE__ */ u("div", {
|
|
792
|
+
class: cn("IncodeRadioButtonVisual", {
|
|
793
|
+
IncodeRadioButtonVisualChecked: isChecked,
|
|
794
|
+
IncodeRadioButtonVisualDisabled: isDisabled,
|
|
795
|
+
IncodeRadioButtonVisualError: !!error
|
|
796
|
+
}),
|
|
797
|
+
"aria-hidden": "true",
|
|
798
|
+
children: /* @__PURE__ */ u("span", { class: cn("IncodeRadioButtonDot", { IncodeRadioButtonDotVisible: isChecked }) })
|
|
799
|
+
})]
|
|
800
|
+
}), label && /* @__PURE__ */ u("span", {
|
|
801
|
+
class: cn(textSizeClass[textSize], { IncodeRadioButtonTextDisabled: isDisabled }),
|
|
802
|
+
"aria-hidden": ariaLabelledBy ? "true" : void 0,
|
|
803
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
804
|
+
className: "IncodeRadioButtonLabelHint",
|
|
805
|
+
hint: labelHint,
|
|
806
|
+
required,
|
|
807
|
+
testId: `${id}-label-hint`
|
|
808
|
+
})]
|
|
809
|
+
})]
|
|
810
|
+
}),
|
|
811
|
+
error && /* @__PURE__ */ u("div", {
|
|
812
|
+
class: "IncodeRadioButtonMessageWrapper",
|
|
813
|
+
"data-testid": `${id}-error-wrapper`,
|
|
814
|
+
children: [showErrorIcon && /* @__PURE__ */ u("div", {
|
|
815
|
+
class: "IncodeRadioButtonIconWrapper",
|
|
816
|
+
children: /* @__PURE__ */ u(ErrorIcon, { size: 17 })
|
|
817
|
+
}), /* @__PURE__ */ u("p", {
|
|
818
|
+
id: errorTextId,
|
|
819
|
+
class: "IncodeRadioButtonErrorText",
|
|
820
|
+
children: error
|
|
821
|
+
})]
|
|
822
|
+
}),
|
|
823
|
+
helper && !error && /* @__PURE__ */ u("div", {
|
|
824
|
+
class: "IncodeRadioButtonMessageWrapper",
|
|
825
|
+
"data-testid": `${id}-helper-wrapper`,
|
|
826
|
+
children: /* @__PURE__ */ u("p", {
|
|
827
|
+
id: helperTextId,
|
|
828
|
+
class: "IncodeRadioButtonHelperText",
|
|
829
|
+
children: helper
|
|
830
|
+
})
|
|
831
|
+
})
|
|
832
|
+
]
|
|
833
|
+
});
|
|
834
|
+
});
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/shared/radioGroupComposed/radioGroupComposed.tsx
|
|
837
|
+
var RadioGroupComposed = D(({ id, label, labelHint, options, value, defaultValue, error, helper, required = false, disabled = false, name, orientation = "row", onChange, onBlur, class: className, "data-testid": dataTestId }, ref) => {
|
|
838
|
+
const [internalValue, setInternalValue] = d(defaultValue ?? "");
|
|
839
|
+
const isControlled = value !== void 0;
|
|
840
|
+
const currentValue = isControlled ? value : internalValue;
|
|
841
|
+
const labelId = `${id}-label`;
|
|
842
|
+
const errorId = error ? `${id}-error` : void 0;
|
|
843
|
+
const helperId = helper && !error ? `${id}-helper` : void 0;
|
|
844
|
+
const describedBy = errorId ?? helperId;
|
|
845
|
+
const groupName = name ?? id;
|
|
846
|
+
const handleChange = (optionValue, event) => {
|
|
847
|
+
if (!isControlled) setInternalValue(optionValue);
|
|
848
|
+
onChange?.(optionValue, event);
|
|
849
|
+
};
|
|
850
|
+
return /* @__PURE__ */ u("div", {
|
|
851
|
+
ref,
|
|
852
|
+
class: cn("IncodeRadioGroupComposed", className),
|
|
853
|
+
"data-testid": dataTestId,
|
|
854
|
+
children: [
|
|
855
|
+
/* @__PURE__ */ u("span", {
|
|
856
|
+
id: labelId,
|
|
857
|
+
class: "IncodeRadioGroupComposedLabel",
|
|
858
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
859
|
+
className: "IncodeRadioGroupComposedLabelHint",
|
|
860
|
+
hint: labelHint,
|
|
861
|
+
required,
|
|
862
|
+
testId: `${id}-label-hint`
|
|
863
|
+
})]
|
|
864
|
+
}),
|
|
865
|
+
/* @__PURE__ */ u("div", {
|
|
866
|
+
class: "IncodeRadioGroupComposedOptions",
|
|
867
|
+
role: "radiogroup",
|
|
868
|
+
"aria-labelledby": labelId,
|
|
869
|
+
"aria-required": required || void 0,
|
|
870
|
+
"aria-invalid": error ? true : void 0,
|
|
871
|
+
"aria-describedby": describedBy,
|
|
872
|
+
"data-orientation": orientation,
|
|
873
|
+
children: options.map((option) => /* @__PURE__ */ u(RadioButtonComposed, {
|
|
874
|
+
id: `${id}-${option.value}`,
|
|
875
|
+
name: groupName,
|
|
876
|
+
label: option.label,
|
|
877
|
+
value: option.value,
|
|
878
|
+
checked: currentValue === option.value,
|
|
879
|
+
disabled: disabled || option.disabled,
|
|
880
|
+
showErrorIcon: false,
|
|
881
|
+
"aria-invalid": error ? true : void 0,
|
|
882
|
+
"aria-describedby": describedBy,
|
|
883
|
+
onChange: (event) => handleChange(option.value, event),
|
|
884
|
+
onBlur
|
|
885
|
+
}, option.value))
|
|
886
|
+
}),
|
|
887
|
+
error && /* @__PURE__ */ u("p", {
|
|
888
|
+
id: errorId,
|
|
889
|
+
class: "IncodeRadioGroupComposedError",
|
|
890
|
+
role: "alert",
|
|
891
|
+
children: error
|
|
892
|
+
}),
|
|
893
|
+
helper && !error && /* @__PURE__ */ u("p", {
|
|
894
|
+
id: helperId,
|
|
895
|
+
class: "IncodeRadioGroupComposedHelper",
|
|
896
|
+
children: helper
|
|
897
|
+
})
|
|
898
|
+
]
|
|
899
|
+
});
|
|
900
|
+
});
|
|
901
|
+
//#endregion
|
|
576
902
|
//#region src/shared/textArea/textArea.tsx
|
|
577
903
|
var TextArea = D((props, ref) => {
|
|
578
904
|
const { class: className, rows = 4, ...restProps } = props;
|
|
@@ -659,40 +985,41 @@ function captureFrameFromVideo(video) {
|
|
|
659
985
|
return canvas.toDataURL("image/jpeg", .92).split(",")[1] ?? null;
|
|
660
986
|
}
|
|
661
987
|
var ManualCapture = ({ stream, onCapture, disabled }) => {
|
|
662
|
-
const videoRef =
|
|
663
|
-
useCoverMedia(videoRef, stream);
|
|
664
|
-
y(() => {
|
|
665
|
-
if (videoRef.current && stream) {
|
|
666
|
-
videoRef.current.srcObject = stream;
|
|
667
|
-
videoRef.current.play().catch(() => {});
|
|
668
|
-
}
|
|
669
|
-
}, [stream]);
|
|
988
|
+
const { videoRef, key, pending } = useCameraPreview(stream);
|
|
670
989
|
const handleCapture = q(() => {
|
|
671
990
|
const video = videoRef.current;
|
|
672
|
-
if (!video || disabled) return;
|
|
991
|
+
if (!video || disabled || pending) return;
|
|
673
992
|
const base64 = captureFrameFromVideo(video);
|
|
674
993
|
if (base64) onCapture(base64);
|
|
675
|
-
}, [
|
|
994
|
+
}, [
|
|
995
|
+
onCapture,
|
|
996
|
+
disabled,
|
|
997
|
+
pending,
|
|
998
|
+
videoRef
|
|
999
|
+
]);
|
|
676
1000
|
return /* @__PURE__ */ u("div", {
|
|
677
1001
|
class: "IncodeManualCapture",
|
|
678
1002
|
children: [/* @__PURE__ */ u("div", {
|
|
679
1003
|
class: "IncodeManualCaptureVideoContainer",
|
|
680
|
-
children: /* @__PURE__ */ u("video", {
|
|
1004
|
+
children: [/* @__PURE__ */ u("video", {
|
|
681
1005
|
ref: videoRef,
|
|
682
1006
|
autoplay: true,
|
|
683
1007
|
playsInline: true,
|
|
684
1008
|
muted: true,
|
|
685
1009
|
class: "IncodeManualCaptureVideo",
|
|
686
1010
|
"aria-label": "Camera stream for document capture"
|
|
687
|
-
})
|
|
1011
|
+
}, key), pending && /* @__PURE__ */ u("div", {
|
|
1012
|
+
class: "IncodeCameraPreviewCover",
|
|
1013
|
+
"aria-hidden": "true"
|
|
1014
|
+
})]
|
|
688
1015
|
}), /* @__PURE__ */ u("div", {
|
|
689
1016
|
class: "IncodeManualCaptureButtonContainer",
|
|
690
|
-
children: /* @__PURE__ */ u(
|
|
1017
|
+
children: /* @__PURE__ */ u(PrizmaButton, {
|
|
691
1018
|
variant: "primary",
|
|
692
1019
|
size: "L",
|
|
693
1020
|
onClick: handleCapture,
|
|
694
|
-
disabled,
|
|
695
|
-
|
|
1021
|
+
disabled: disabled || pending,
|
|
1022
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL IncodeManualCaptureButton",
|
|
696
1023
|
"aria-label": "Capture document",
|
|
697
1024
|
children: "Capture"
|
|
698
1025
|
})
|
|
@@ -700,4 +1027,4 @@ var ManualCapture = ({ stream, onCapture, disabled }) => {
|
|
|
700
1027
|
});
|
|
701
1028
|
};
|
|
702
1029
|
//#endregion
|
|
703
|
-
export { BaseTutorial, BottomSheet, Button, CalendarIcon, CameraFrame, CameraIcon, CameraOverlay, CameraOverlayHeader, CameraView, CaptureButtonIcon, CaptureFooter, Checkbox, CheckmarkCompactIcon, CheckmarkIcon, ChevronDown, ChevronLeftIcon, ChevronRightIcon, CloseIcon, ConnectionError, DateInputComposed, DropdownComposed, EllipseIcon, ErrorContent, ErrorIcon, EyeIcon, EyeOffIcon, FileIcon, FormField, HelpIcon, Capture as IdCapture, Chooser as IdChooser, IdError, IdExpired, FlipAnimation as IdFlipAnimation, Tutorial as IdTutorial, IncodeComponent, Input, InputComposed, LandscapeBlocker, LightningIcon, LockIcon, Lottie, ManualCapture, Modal, OtpInput, Overlay, Page, PasswordInputComposed, Permissions, PhoneInputComposed, Processing, ProgressBar, RadioButtonComposed, RadioGroupComposed, SearchIcon, SegmentedDateInput, Capture$1 as SelfieCapture, Tutorial$1 as SelfieTutorial, Spacer, Spinner, SuccessIcon, TextArea, TextAreaComposed, Title, TypographyH1, TypographyH3, TypographyH4, TypographyH5, TypographyP, VerificationOptionCard, VerificationOptionCardList, VerificationResult,
|
|
1030
|
+
export { BaseTutorial, BottomSheet, Button, CalendarIcon, CameraFrame, CameraIcon, CameraOverlay, CameraOverlayHeader, CameraView, CaptureButtonIcon, CaptureFooter, Checkbox, CheckmarkCompactIcon, CheckmarkIcon, ChevronDown, ChevronLeftIcon, ChevronRightIcon, CloseIcon, ConnectionError, DateInputComposed, DropdownComposed, EllipseIcon, ErrorContent, ErrorIcon, EyeIcon, EyeOffIcon, FileIcon, FormField, HelpIcon, Capture as IdCapture, Chooser as IdChooser, IdError, IdExpired, FlipAnimation as IdFlipAnimation, Tutorial as IdTutorial, IncodeComponent, Input, InputComposed, LandscapeBlocker, LightningIcon, LockIcon, Lottie, ManualCapture, Modal, OtpInput, Overlay, Page, PasswordInputComposed, Permissions, PhoneInputComposed, Processing, ProgressBar, RadioButtonComposed, RadioGroupComposed, SearchIcon, SegmentedDateInput, Capture$1 as SelfieCapture, Tutorial$1 as SelfieTutorial, Spacer, Spinner, SuccessIcon, TextArea, TextAreaComposed, Title, TypographyH1, TypographyH3, TypographyH4, TypographyH5, TypographyP, VerificationOptionCard, VerificationOptionCardList, VerificationResult, applyStudioConfig, countries, getCountryByCallingCode, getCountryByCode, setUiConfig, useManager, useScreenOrientation };
|