@incodetech/web 2.4.0 → 2.4.1-agentic.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-NCe8TBk4.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-BbU0OdlG.js → af-ZA-BKpmmWDe.js} +165 -869
- package/dist/{ageVerification-B5ownHdO.js → ageVerification-CtuJDuRV.js} +11 -8
- package/dist/{am-BuvQtV50.js → am-CW_ro5Ws.js} +165 -869
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/applyStudioConfig-C6-Ak0q6.js +127 -0
- package/dist/{ar-AE-Bdk7NfI2.js → ar-AE-D9h8UMbm.js} +165 -869
- package/dist/{ar-Ba-wMBXP.js → ar-B5ToweVl.js} +166 -870
- package/dist/{ar-EG-C9FVwsEB.js → ar-EG-DQqE9B26.js} +165 -869
- package/dist/assertClassBrand-DJr5K93j.js +17 -0
- package/dist/asset-Ctwd_20H.js +355 -0
- package/dist/authentication/authentication.es.js +7 -5
- package/dist/{autoFocusTitle-BQltp_Nn.js → autoFocusTitle-CzaCWWW5.js} +2 -2
- package/dist/{az-DHRJfgCV.js → az-DAZq-CQj.js} +165 -869
- package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
- package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DkYLOege.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-CL2A9XLh.js → baseTutorial-CF6WiVYt.js} +10 -7
- package/dist/{bn-BfE2MHPG.js → bn-DRTyq2Y9.js} +165 -869
- package/dist/{bottomSheet-DU4SrMOH.js → bottomSheet-DylE2INk.js} +3 -3
- package/dist/{bs-Ck9dCVYh.js → bs-B8q0B86-.js} +164 -868
- package/dist/{ca-yJUG5zqw.js → ca-DvsHXRB-.js} +164 -868
- package/dist/cameraOverlay-DNf0PEF4.js +2 -0
- package/dist/{cameraOverlayHeader-Bp7NCrl9.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
- package/dist/{cameraView-CLlWARBI.js → cameraView-D9ZxLKtA.js} +13 -14
- package/dist/capture-0jMDSGCE.js +762 -0
- package/dist/{tutorial-Bwt7rxfr.js → capture-BlGlXoTx.js} +212 -51
- package/dist/capture-DKBA5j5A.js +3 -0
- package/dist/capture-D_Dwrj1F.js +2 -0
- package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
- package/dist/captureFocusContext-9789qOe3.js +729 -0
- package/dist/captureFooter-B6WUFQCV.js +47 -0
- package/dist/{ceb-oov4R9JM.js → ceb-pvlomXHV.js} +165 -869
- package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
- package/dist/{check-icon-BpjpKqhJ.js → check-icon-BdHltEK6.js} +1 -1
- package/dist/{checkbox-DbYUeTao.js → checkbox-BwUQ0Rs9.js} +4 -4
- package/dist/chooser-CmG71-lh.js +1589 -0
- package/dist/connectionError-DexRpKWs.js +90 -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/{countryFlag-2Vj85OIZ.js → countryFlag-CQMfCnE9.js} +1 -1
- package/dist/{countrySelector-El6_zLMs.js → countrySelector-C0OEKMqL.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-B9jWzmE_.js → cs-CZ-GgvnJLMj.js} +164 -868
- package/dist/{cs-ovOFxGB0.js → cs-DB5PLEdt.js} +164 -868
- package/dist/curp-validation/curp-validation.es.js +34 -19
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-BlYfgYje.js → customFields-DQgRumW0.js} +17 -12
- package/dist/{customWatchlist-BsBTzCCN.js → customWatchlist-BbC0fA-6.js} +8 -7
- package/dist/{da-DK-C0l5MGWM.js → da-DK-ZhpcfE_F.js} +164 -868
- package/dist/{dashboardTheme-MVQerNVn.js → dashboardTheme-DtXsx9IK.js} +22 -23
- package/dist/{dateInputComposed-DXCc1HRe.js → dateInputComposed-1IcnucPq.js} +5 -5
- package/dist/dateInputComposed-BFlCk-sg.js +1 -0
- package/dist/{de-B0IRPjwJ.js → de-DEBjzaow.js} +164 -868
- package/dist/{denied-wXsbFjy_.js → denied-CwdVWAUw.js} +12 -9
- package/dist/devWarn-CW20j1Qd.js +9 -0
- package/dist/deviceWallet-CMjguFJO.js +37 -0
- package/dist/{digitalIdRedirect-CF7zG3wS.js → digitalIdRedirect-MNty16-5.js} +4 -4
- package/dist/{digitalIdUpload-CbPm090z.js → digitalIdUpload-CUzTaoaI.js} +39 -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-CgpHXm_8.js → documentCapture-BUMyJ8vw.js} +115 -44
- package/dist/documentCapture-rECLkwpi.js +2 -0
- package/dist/dropdownComposed-C9sLQE6i.js +1 -0
- package/dist/{dropdownComposed-qb9GgX5X.js → dropdownComposed-x3ewHxbT.js} +4 -4
- package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
- 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-B5IEiSyi.js +2 -0
- package/dist/{ekybModule-BgZIkVVl.js → ekybModule-C5hEBLMs.js} +27 -23
- 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/ekycModule-B7OFnP3H.js +2 -0
- package/dist/{ekycModule-DEVrRrnH.js → ekycModule-TVKk0qdS.js} +71 -44
- package/dist/{el-Do7wYurZ.js → el-Dplr_D5N.js} +164 -868
- package/dist/{el-GR-BZEKLkvc.js → el-GR-IZ4reOR7.js} +164 -868
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DE6FJfvu.js → electronic-signature-BMda_cf3.js} +49 -34
- package/dist/email/email.es.js +15 -11
- package/dist/{emailInput-Cp77LavN.js → emailInput-BI8gWC0D.js} +4 -4
- package/dist/{en-DG-Cvwm0nfj.js → en-DG-C6tsWvHi.js} +165 -869
- package/dist/{en-CJ6l68pH.js → en-Db1L_u7B.js} +165 -869
- package/dist/{errorContent-YeJNVb1U.js → errorContent-pPAgyy2i.js} +10 -7
- package/dist/es-419-DxKrJq7W.js +5 -0
- package/dist/{es-rayGAvsH.js → es-C5unKsaF.js} +164 -868
- package/dist/{es-ES-B8h3jMgN.js → es-ES-sHbsufzT.js} +164 -868
- package/dist/{es-MX-DA__jQOC.js → es-MX-Cd_DCR0A.js} +164 -868
- package/dist/{et-DvX7tm-R.js → et-BoGq2cx8.js} +165 -869
- package/dist/{expiredId-CsKNCK5M.js → expiredId-DWjw94rT.js} +12 -8
- package/dist/extensibility.es.js +100 -55
- package/dist/{fa-IR-DfrzWcH0.js → fa-IR-DuUxGXrf.js} +165 -869
- 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-B2aMz3X2.js +2 -0
- package/dist/{faceMatch-Bqspq0cw.js → faceMatch-DV7NxYu_.js} +15 -20
- package/dist/{fi-FI-CcFDkeiE.js → fi-FI-DMOBNTjA.js} +164 -868
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-BY2XXsp3.js +2 -0
- package/dist/{fieldComparison-CmQN2MEj.js → fieldComparison-CFLU1h6n.js} +15 -11
- package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
- package/dist/{finalSuccessScreen-1Ea3wZWM.js → finalSuccessScreen-C50L96j9.js} +20 -16
- package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
- package/dist/flipAnimation-8x-qdtF_.js +33 -0
- package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
- package/dist/flow/flow.es.js +209 -186
- 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-DoXWcoL9.js → formField-CfQKYeGF.js} +19 -11
- package/dist/{fr-CA-CeL7RQc-.js → fr-CA-DZ8jlsp3.js} +164 -868
- package/dist/{fr-DtdqfaF8.js → fr-DSR-AP0e.js} +164 -868
- package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-DOphQZg2.js} +1 -1
- package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-S6PcS9_m.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -12
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-CPeNHo0I.js → he-N5dfJeyd.js} +165 -869
- package/dist/helpButtonConfig-CjbrBQaV.js +24 -0
- package/dist/{hi-DIbkmie6.js → hi-JR6K9zbd.js} +165 -869
- package/dist/{hmn-CscGik4W.js → hmn-j2YA7FxW.js} +165 -869
- package/dist/{homeScreen-C0j_8KKD.js → homeScreen-C3pPw52y.js} +24 -13
- package/dist/{incodeComponent-CMBg2gpq.js → hooks-BFP0WaJM.js} +192 -262
- package/dist/{hr-DWUsAZnf.js → hr-8cOdwB0t.js} +164 -868
- package/dist/{ht-DgaboG3c.js → ht-DDNL4C__.js} +165 -869
- package/dist/{hu-Lz2qVC3S.js → hu-CynQQUFQ.js} +166 -870
- package/dist/i18n-Dp014ljG.js +942 -0
- package/dist/{icons-OQDvn5r2.js → icons-c-hFaG4L.js} +153 -56
- package/dist/id/id.es.js +101 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
- package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
- package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-BJ96se7u.js} +1 -1
- package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
- package/dist/{id-C5eOEjgu.js → id-o_Yg0n8W.js} +165 -869
- package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +6 -5
- package/dist/idFlipTransition-DXdtXYza.js +158 -0
- package/dist/{idOcr-C-kHrU_d.js → idOcr-CjqfkRJ7.js} +18 -14
- package/dist/identity-reuse/identity-reuse.es.js +28 -18
- package/dist/incodeComponent-DtKh-UUm.js +237 -0
- package/dist/incodeModule-DCHXAeYU.js +41 -0
- package/dist/index.es.js +5 -3
- package/dist/{inputComposed-CR1IW-mQ.js → inputComposed-CmVsaHOa.js} +4 -4
- package/dist/inputComposed-DvGrso7g.js +1 -0
- package/dist/{it-CQGuLrxZ.js → it-BXevrtHn.js} +165 -869
- package/dist/{ja-CBD-jOkP.js → ja-DiTXnTx-.js} +165 -869
- package/dist/{ja-JP-Dgbzh2aL.js → ja-JP-D1IRWR-p.js} +166 -870
- package/dist/{jv-C-E67yDR.js → jv-Us70GzGp.js} +164 -868
- package/dist/{ka-CcCqDmzw.js → ka-BSsWQ4yU.js} +165 -869
- package/dist/{kk-B_5WgCfa.js → kk-D5R6r4H7.js} +164 -868
- package/dist/{km-CucJh4em.js → km-CCCb2Rnt.js} +171 -875
- package/dist/{ko-KP-BSjl3hdX.js → ko-KP-JF4khv1Y.js} +165 -869
- package/dist/{ko-BEd2Jz4C.js → ko-kQioCg2w.js} +165 -869
- package/dist/{ky-Bb9MfmYr.js → ky-CLOemVjC.js} +164 -868
- 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-C6Y9Hxpr.js +329 -0
- package/dist/kybChecksModule-r3MIpFhS.js +2 -0
- package/dist/{lo-CD_Ehkf5.js → lo-tzHUt1CQ.js} +165 -869
- package/dist/{lt-DHkwvJ8e.js → lt-B2ZI-Cgu.js} +165 -869
- package/dist/{lv-CPuPO_jU.js → lv-BJnxtSYw.js} +165 -869
- package/dist/{mandatoryConsent-BHMWyBUp.js → mandatoryConsent-BiQuEZRu.js} +23 -16
- package/dist/{manualCaptureButton-D_tGP6tv.js → manualCaptureButton-BRSmPTeR.js} +8 -7
- package/dist/{manualCaptureButton-D5XP3Oaf.js → manualCaptureButton-Dw0MMSkc.js} +17 -12
- package/dist/{mk-DO85nJp4.js → mk-Cj7Iw2Q4.js} +165 -869
- package/dist/{mn-D5fhne6X.js → mn-CA_rNxtz.js} +164 -868
- package/dist/{ms-D_FFGDor.js → ms-BydA1Zjz.js} +164 -868
- package/dist/{my-D1JKF20F.js → my-gFKufKaG.js} +165 -869
- package/dist/{nb-NO-oEMuavpl.js → nb-NO-CDsGQbOZ.js} +164 -868
- package/dist/{ne-Ds3QEMQ4.js → ne-Cyfi0vFI.js} +165 -869
- package/dist/{nl-DGyLucC1.js → nl-e1gbmAFO.js} +165 -869
- package/dist/{numberedStep-CvbL3ht2.js → numberedStep-CeN77hnQ.js} +1 -1
- package/dist/{optionAccessibleLabel-SwDCMYKc.js → optionAccessibleLabel-BTUieMxH.js} +8 -7
- package/dist/{otpInput-DIUf37GR.js → otpInput-D3L3QhnR.js} +24 -17
- package/dist/{page-BGUJaLaG.js → page-U6jZ7BBI.js} +85 -58
- package/dist/{incode-logo-BBYHyycP.js → pageUiConfig-Qf6ItVv9.js} +28 -4
- package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
- package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
- package/dist/{passwordInputComposed-Cd-3kyua.js → passwordInputComposed-CW_1DcB8.js} +5 -5
- package/dist/{pdf-BKHLi5Ac.js → pdf-Bd5QplFS.js} +2 -17
- package/dist/{pdfViewer-EDgSzrdc.js → pdfViewer-BrqSEtbr.js} +11 -14
- package/dist/pdfViewer-rDnnHzmw.js +2 -0
- package/dist/{permissions-Vh-QG2Tj.js → permissions-KUDhffd9.js} +36 -23
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-wZaDiedP.js → phoneInputComposed-DlJMTavK.js} +49 -12
- package/dist/{pl-nEtI_VZQ.js → pl-BSMcCWS-.js} +164 -868
- package/dist/preloadableLazy-C8_OYaTC.js +37 -0
- package/dist/{processing-SzW6Mfrg.js → processing-B5EH7yNg.js} +2 -2
- package/dist/{progressBar-KEnpi8uj.js → progressBar-CSpS29pV.js} +2 -2
- package/dist/{pt-EmaaUJGm.js → pt-BNFC2quK.js} +165 -869
- package/dist/{pt-BR-BkLAWIbx.js → pt-BR-bH8DC2gH.js} +165 -869
- package/dist/{pt-PT-Py_4_Z05.js → pt-PT-B8PXmgwU.js} +165 -869
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/{radioGroupComposed-CRr_78He.js → radioGroupComposed-CW8ElYSR.js} +4 -4
- package/dist/radioGroupComposed-flIYNffL.js +1 -0
- package/dist/realtimeFeedbackConfig-tBX94SOm.js +16 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +51 -50
- 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-oiLvm6xq.js} +1 -1
- package/dist/{reload-icon-elAFo9-k.js → reload-icon-FD2e9Wet.js} +1 -1
- package/dist/{resendTimer-EhLnxeID.js → resendTimer-D1H3gwkI.js} +2 -2
- package/dist/richText-sUdTiRDE.js +1761 -0
- package/dist/{ro-BKmZhZl1.js → ro-DnN8QNYa.js} +165 -869
- package/dist/{ru-BYQKvZtn.js → ru-DAwUFXHq.js} +165 -869
- package/dist/{ru-RU-BdhCs3uF.js → ru-RU-Coxt0VCU.js} +164 -868
- package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-OdNh1mqY.js} +1 -1
- package/dist/selfie/selfie.es.js +36 -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-CZipa19k.js → sk-AB8sSlNw.js} +166 -870
- package/dist/{sl-_sx3gvEv.js → sl-6Dfzfi7s.js} +165 -869
- package/dist/{smsTabContent-DHuEgl3E.js → smsTabContent-CBEKgzFv.js} +32 -23
- package/dist/{so-D3T7YyfC.js → so-X5BdrDvV.js} +165 -869
- package/dist/spacer-Jaru_3sb.js +82 -0
- package/dist/spinner-51btbot0.js +407 -0
- package/dist/{sr-D0lglPAd.js → sr-JHjMcbGs.js} +164 -868
- package/dist/{sr-Latn-Dy2rgSEv.js → sr-Latn-DgT7eTG2.js} +171 -875
- package/dist/sr-YU-BBhB_G63.js +5 -0
- package/dist/{sv-SE-VsDd4VP5.js → sv-SE-CvX8mC8T.js} +164 -868
- package/dist/{sw-D2VfTj6a.js → sw-CN0TdnY4.js} +165 -869
- package/dist/{th-BzmKSnbD.js → th-BmFntKib.js} +165 -869
- package/dist/{th-TH-BU_NqN97.js → th-TH-CWr4z3JK.js} +165 -869
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-BJJNA9rs.js → tl-PH-BRIbtBRN.js} +165 -869
- package/dist/{tl-GXkKKnzb.js → tl-rzkk5P_n.js} +165 -869
- package/dist/{tr-C1MJnwIJ.js → tr-DKuVBwqW.js} +166 -870
- package/dist/{transitionSpinner-Bkjw-WAJ.js → transitionSpinner-Di0XBAix.js} +5 -4
- package/dist/tutorial-C9psDR2i.js +28 -0
- package/dist/types/ae-signature.d.ts +10 -1
- package/dist/types/antifraud.d.ts +10 -1
- package/dist/types/authentication.d.ts +10 -1
- package/dist/types/certificate-issuance.d.ts +10 -1
- package/dist/types/consent.d.ts +10 -1
- package/dist/types/cross-document-data-match.d.ts +10 -1
- package/dist/types/curp-validation.d.ts +10 -1
- package/dist/types/document-capture.d.ts +10 -1
- package/dist/types/dynamic-forms.d.ts +10 -1
- package/dist/types/ekyb.d.ts +10 -1
- package/dist/types/ekyc.d.ts +10 -1
- package/dist/types/electronic-signature.d.ts +10 -1
- package/dist/types/email.d.ts +10 -1
- package/dist/types/extensibility.d.ts +147 -21
- package/dist/types/face-match.d.ts +10 -1
- package/dist/types/field-comparison.d.ts +10 -1
- package/dist/types/fiscal-qr.d.ts +10 -1
- package/dist/types/flow.d.ts +22 -2
- package/dist/types/geolocation.d.ts +10 -1
- package/dist/types/government-validation.d.ts +10 -1
- package/dist/types/id-selfie-flow.d.ts +10 -1
- package/dist/types/id-verification.d.ts +10 -1
- package/dist/types/id.d.ts +10 -1
- package/dist/types/identity-reuse.d.ts +10 -1
- package/dist/types/index.d.ts +92 -10
- package/dist/types/kyb-checks.d.ts +209 -0
- package/dist/types/phone.d.ts +10 -1
- package/dist/types/qe-signature.d.ts +10 -1
- package/dist/types/redirect-to-mobile.d.ts +1 -1
- package/dist/types/selfie.d.ts +10 -1
- package/dist/types/signature.d.ts +10 -1
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +10 -1
- package/dist/types/workflow.d.ts +10 -1
- package/dist/{typography-DKXgPZsU.js → typography-CiGhKJGx.js} +2 -2
- package/dist/uiConfig-BJAuZQWc.js +77 -0
- package/dist/{uk-DFL26I5l.js → uk-CXjqq4lX.js} +164 -868
- package/dist/{uk-UA-3o9Xbam-.js → uk-UA-BIE9WByU.js} +165 -869
- package/dist/{ur-DXJAfyQA.js → ur-vNGesC3r.js} +165 -869
- package/dist/useCameraPreview-Bd7AYE9h.js +93 -0
- package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
- package/dist/useIsDarkTheme-Bu9CvKxW.js +27 -0
- package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BBCNkJmc.js} +2 -2
- package/dist/{uz-BXvj8vlH.js → uz-Gmw1XRgv.js} +165 -869
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
- package/dist/{verificationResult-BVrKFRMf.js → verificationResult-Clxdxm_s.js} +18 -10
- package/dist/{vi-DRfsxu1a.js → vi-DTxxRUw0.js} +165 -869
- 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 +103 -67
- package/dist/watchlist/watchlist.es.js +8 -7
- package/dist/{watchlistForBusiness-CyAmoIrv.js → watchlistForBusiness-CpFp2EYX.js} +44 -14
- package/dist/{withEndScreenTexts-MHocOODe.js → withEndScreenTexts-Bd3mof3s.js} +225 -45
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +32 -21
- package/dist/{zh-CN-DMfj1_Nh.js → zh-CN-aB48G_R1.js} +164 -868
- package/dist/{zh-Ct8GKGhw.js → zh-DjtyfO4e.js} +164 -868
- package/dist/{zh-HANT-NZFdeKuE.js → zh-HANT-8p8SH8C3.js} +165 -869
- package/dist/{zh-TW-8wkrOHM8.js → zh-TW-CCsz9gKq.js} +165 -869
- package/package.json +35 -10
- package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
- package/dist/cameraOverlay-CBTjtbNP.js +0 -2
- package/dist/connectionError-DX3wd4vm.js +0 -45
- package/dist/dateInputComposed-BzW0cv1o.js +0 -1
- package/dist/deviceWallet-CImevqFB.js +0 -66
- package/dist/documentCapture-CmWd-wNL.js +0 -2
- package/dist/dropdownComposed-B76j7pz9.js +0 -1
- package/dist/ekybModule-Bshc_ANM.js +0 -2
- package/dist/ekycModule-MmJYwp1l.js +0 -2
- package/dist/es-419-DlCbbvcc.js +0 -3145
- package/dist/esm-15CISqPe.js +0 -430
- package/dist/faceMatch-BVSCpwmA.js +0 -2
- package/dist/fieldComparison-nFj9pSeZ.js +0 -2
- package/dist/flipAnimation-DY9K2zel.js +0 -3048
- package/dist/incodeModule-D6oey1Mb.js +0 -68
- package/dist/inputComposed-45HxIMO0.js +0 -1
- package/dist/pdfViewer-CFkuHOV4.js +0 -2
- package/dist/radioGroupComposed-DJ71F9KK.js +0 -1
- package/dist/richText-aCnLd3j2.js +0 -1549
- package/dist/spacer-BvrtrwSF.js +0 -741
- package/dist/spinner-CkN8sW0d.js +0 -88
- package/dist/sr-YU-UEhyvXZ-.js +0 -3149
- package/dist/statusPage-3zRxvkSE.js +0 -36
- package/dist/uiConfig-BA7U_zLr.js +0 -2589
- package/dist/useCaptureHelpButton-CSG3fO48.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/{countryDefinitions-BO9OSKQO.js → countryDefinitions-RBVGM1D_.js} +0 -0
- /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-E9wRIIo9.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-B819EhaL.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-DzBNMoKS.js} +0 -0
- /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-Benduf-R.js} +0 -0
- /package/dist/{purify.es-0fCPkEV1.js → purify.es-CSPoFViI.js} +0 -0
- /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -24,6 +24,35 @@ export declare type AnimationOverride = LottieAnimationData | {
|
|
|
24
24
|
|
|
25
25
|
export declare type AnimationOverrides = Partial<Record<AnimationKey, AnimationOverride>>;
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Applies an Incode Studio export: the whole downloaded JSON document (not
|
|
29
|
+
* one section of it), plus the assets that ship beside it.
|
|
30
|
+
*
|
|
31
|
+
* ```ts
|
|
32
|
+
* import './incode-theme.css';
|
|
33
|
+
* import studioConfig from './CustomizationOptionsV2.json';
|
|
34
|
+
* import logo from './assets/logo-light.svg';
|
|
35
|
+
* import logoDark from './assets/logo-dark.svg';
|
|
36
|
+
*
|
|
37
|
+
* applyStudioConfig(studioConfig, { logoSrc: logo, logoDarkSrc: logoDark });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* Merges into host config rather than replacing it, so applying a Studio
|
|
41
|
+
* export never drops animation or spinner overrides set elsewhere. Safe to
|
|
42
|
+
* call again later with a different export (e.g. per tenant).
|
|
43
|
+
*
|
|
44
|
+
* Colors and corner radius are not applied here. They come from the CSS file
|
|
45
|
+
* Studio exports alongside the JSON (`incode-theme.css`), which the host
|
|
46
|
+
* imports as a stylesheet. This call covers everything else.
|
|
47
|
+
*
|
|
48
|
+
* Throws on a structurally invalid document, which is a build-time mistake
|
|
49
|
+
* in a static file rather than a runtime condition. An unrecognized *value*
|
|
50
|
+
* in an otherwise valid field is tolerated instead: it usually means Studio
|
|
51
|
+
* is ahead of this SDK version, so the SDK default applies and a warning is
|
|
52
|
+
* logged in development only.
|
|
53
|
+
*/
|
|
54
|
+
export declare function applyStudioConfig(config: StudioConfig | string, assets?: StudioAssets): void;
|
|
55
|
+
|
|
27
56
|
/**
|
|
28
57
|
* Allowlisted keys for overridable branded SVG illustrations
|
|
29
58
|
*/
|
|
@@ -47,8 +76,12 @@ export declare type AssetOverride = string | {
|
|
|
47
76
|
|
|
48
77
|
export declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
49
78
|
|
|
50
|
-
/**
|
|
51
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Corner the close button renders in. Defaults to `topRight`.
|
|
81
|
+
*/
|
|
82
|
+
declare const CLOSE_BUTTON_POSITIONS: readonly ["topRight", "topLeft"];
|
|
83
|
+
|
|
84
|
+
export declare type CloseButtonPosition = (typeof CLOSE_BUTTON_POSITIONS)[number];
|
|
52
85
|
|
|
53
86
|
export declare function createI18n(options?: I18nOptions): TranslationInstance;
|
|
54
87
|
|
|
@@ -75,8 +108,13 @@ declare type FlowSetup = false | {
|
|
|
75
108
|
* Where the capture help button renders. `topLeft`/`topRight` float outside
|
|
76
109
|
* the footer — the footer's own box only covers the bottom of the screen, so
|
|
77
110
|
* a top offset inside it would land mid-screen, not near the header.
|
|
111
|
+
*
|
|
112
|
+
* The array is the source of truth; the type is derived from it so a caller
|
|
113
|
+
* validating an untrusted value can reuse the same list.
|
|
78
114
|
*/
|
|
79
|
-
|
|
115
|
+
declare const HELP_BUTTON_POSITIONS: readonly ["bottomRight", "topRight", "topLeft"];
|
|
116
|
+
|
|
117
|
+
export declare type HelpButtonPosition = (typeof HELP_BUTTON_POSITIONS)[number];
|
|
80
118
|
|
|
81
119
|
export declare type I18nOptions = {
|
|
82
120
|
lang?: string;
|
|
@@ -103,13 +141,18 @@ declare type LottieAnimationData = {
|
|
|
103
141
|
* - `standard` — the full message: Lottie animation beside the copy.
|
|
104
142
|
* - `minimal` — compact: no animation, copy centred. More legible on small
|
|
105
143
|
* screens, where the animation crowds the text out of the frame.
|
|
144
|
+
*
|
|
145
|
+
* The array is the source of truth; the type is derived from it so a caller
|
|
146
|
+
* validating an untrusted value can reuse the same list.
|
|
106
147
|
*/
|
|
107
|
-
|
|
148
|
+
declare const REALTIME_FEEDBACK_MESSAGE_UI_FLAVORS: readonly ["standard", "minimal"];
|
|
149
|
+
|
|
150
|
+
export declare type RealtimeFeedbackMessageUIFlavor = (typeof REALTIME_FEEDBACK_MESSAGE_UI_FLAVORS)[number];
|
|
108
151
|
|
|
109
152
|
export declare function setI18nInstance(instance: TranslationInstance): void;
|
|
110
153
|
|
|
111
154
|
/**
|
|
112
|
-
* Sets global UI configuration defaults for `@incodetech/
|
|
155
|
+
* Sets global UI configuration defaults for `@incodetech/web`.
|
|
113
156
|
*
|
|
114
157
|
* Replaces (does not merge with) the previous host-supplied config, so omitting
|
|
115
158
|
* a field clears it. The dashboard theme is held separately and is unaffected.
|
|
@@ -223,6 +266,41 @@ export declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'text
|
|
|
223
266
|
|
|
224
267
|
export declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
225
268
|
|
|
269
|
+
/**
|
|
270
|
+
* The parts of a Studio theme that travel outside the JSON document. Today
|
|
271
|
+
* that is the logo (shipped in the export's `assets/` folder); typography and
|
|
272
|
+
* other assets will join here as Studio adds them.
|
|
273
|
+
*/
|
|
274
|
+
export declare type StudioAssets = {
|
|
275
|
+
/** URL of the logo from the Studio export's `assets/` folder. */
|
|
276
|
+
logoSrc?: string;
|
|
277
|
+
/** URL of the dark-theme logo. The light logo is used when it is absent. */
|
|
278
|
+
logoDarkSrc?: string;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
/** One Studio export. Applied by {@link applyStudioConfig}. */
|
|
282
|
+
export declare type StudioConfig = {
|
|
283
|
+
theme?: StudioThemeConfig;
|
|
284
|
+
ux?: StudioUxConfig;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The parts of a Studio export's `theme` section that JS must apply. Colors,
|
|
289
|
+
* radius and typography are not here — they ride the CSS file.
|
|
290
|
+
*/
|
|
291
|
+
export declare type StudioThemeConfig = {
|
|
292
|
+
displayMode?: string;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/** The `ux` section of a Studio export. `theme` (colors, radius, typography) applies via CSS, not this type. */
|
|
296
|
+
export declare type StudioUxConfig = {
|
|
297
|
+
showFooter?: boolean;
|
|
298
|
+
helpButtonPosition?: string;
|
|
299
|
+
realtimeFeedbackMessageUIFlavor?: string;
|
|
300
|
+
closeButtonPosition?: string;
|
|
301
|
+
headerAlignment?: string;
|
|
302
|
+
};
|
|
303
|
+
|
|
226
304
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
227
305
|
export declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
228
306
|
|
|
@@ -253,6 +331,11 @@ declare type TranslationValue = string | Record<string, unknown>;
|
|
|
253
331
|
|
|
254
332
|
export declare type UiConfig = {
|
|
255
333
|
logoSrc?: string;
|
|
334
|
+
logoDarkSrc?: string;
|
|
335
|
+
/**
|
|
336
|
+
* @deprecated Has no effect: the header sizes the logo by its shape
|
|
337
|
+
* (customer logo sizing guideline).
|
|
338
|
+
*/
|
|
256
339
|
logoHeight?: string;
|
|
257
340
|
subtitle?: string;
|
|
258
341
|
hideHeader?: boolean;
|
|
@@ -266,12 +349,11 @@ export declare type UiConfig = {
|
|
|
266
349
|
spinner?: SpinnerPresentation;
|
|
267
350
|
/** Where the capture help button renders. Defaults to `'bottomRight'`. */
|
|
268
351
|
helpButtonPosition?: HelpButtonPosition;
|
|
269
|
-
/** Shows an X close button that cancels the current module. Off by default. */
|
|
270
|
-
showCloseButton?: boolean;
|
|
271
352
|
/**
|
|
272
|
-
* Close button corner
|
|
273
|
-
*
|
|
274
|
-
*
|
|
353
|
+
* Close button corner. Defaults to `'topRight'`. The button itself only
|
|
354
|
+
* shows when the module's `config` sets `allowUserToCancel: true`; without
|
|
355
|
+
* it this has no effect. Can't match `helpButtonPosition` — on a collision
|
|
356
|
+
* the help button falls back to its own default and a dev warning is logged.
|
|
275
357
|
*/
|
|
276
358
|
closeButtonPosition?: CloseButtonPosition;
|
|
277
359
|
/**
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
import { FunctionComponent } from 'preact';
|
|
4
|
+
import { KybChecksConfig } from '@incodetech/core/kyb-checks';
|
|
5
|
+
import { KybChecksManager } from '@incodetech/core/kyb-checks';
|
|
6
|
+
import { KybChecksResult } from '@incodetech/core/kyb-checks';
|
|
7
|
+
import { SessionExpiredError } from '@incodetech/core/session';
|
|
8
|
+
import { SVGProps } from 'preact/compat';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Allowlisted keys for overridable Lottie animations
|
|
12
|
+
*/
|
|
13
|
+
declare type AnimationKey = 'id.tutorial.front' | 'id.tutorial.back' | 'id.tutorial.passport' | 'id.flip' | 'id.processing' | 'selfie.tutorial' | 'loader.spinner';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A customer-supplied replacement for a built-in Lottie animation.
|
|
17
|
+
*
|
|
18
|
+
* - `LottieAnimationData` — a parsed Lottie JSON object.
|
|
19
|
+
* - `{ url }` — fetched and cached at runtime.
|
|
20
|
+
* - `{ animationData }` — explicit object form.
|
|
21
|
+
*/
|
|
22
|
+
declare type AnimationOverride = LottieAnimationData | {
|
|
23
|
+
url: string;
|
|
24
|
+
} | {
|
|
25
|
+
animationData: LottieAnimationData;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
declare type AnimationOverrides = Partial<Record<AnimationKey, AnimationOverride>>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Allowlisted keys for overridable branded SVG illustrations
|
|
32
|
+
*/
|
|
33
|
+
declare type AssetKey = 'faceMatch.success' | 'faceMatch.fail' | 'documentCapture.tutorial' | 'id.uploadScreen' | 'id.ageVerification.dob' | 'id.ageVerification.scan' | 'id.ageVerification.privacy' | 'videoSelfie.success' | 'videoSelfie.fail' | 'videoSelfie.tutorial.permission' | 'videoSelfie.tutorial.selfie' | 'videoSelfie.tutorial.frontId' | 'videoSelfie.tutorial.backId' | 'videoSelfie.tutorial.poa' | 'videoSelfie.tutorial.questions' | 'videoSelfie.tutorial.speech' | 'loader.spinner';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A customer-supplied replacement for a built-in SVG illustration.
|
|
37
|
+
*
|
|
38
|
+
* - `string` — a URL, or raw `<svg …>` markup (detected by a leading `<`).
|
|
39
|
+
* - `{ url }` — fetched and rendered via `<img>`; no script execution.
|
|
40
|
+
* - `{ raw }` — inline markup; sanitized before injection.
|
|
41
|
+
* - `{ svg }` — a precompiled component, for build-time integrations.
|
|
42
|
+
*/
|
|
43
|
+
declare type AssetOverride = string | {
|
|
44
|
+
url: string;
|
|
45
|
+
} | {
|
|
46
|
+
raw: string;
|
|
47
|
+
} | {
|
|
48
|
+
svg: SvgComponent;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A module `config` intersected with the per-instance override maps. Typed at
|
|
55
|
+
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
56
|
+
* `FlowConfig` also declares the maps directly.
|
|
57
|
+
*/
|
|
58
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
62
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
63
|
+
* workflow module sets these fields today.
|
|
64
|
+
*/
|
|
65
|
+
declare type IncodeFinishMeta = {
|
|
66
|
+
/**
|
|
67
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
68
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
69
|
+
* screen), so the host should not render its own completion screen on top.
|
|
70
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
71
|
+
* OAuth parent).
|
|
72
|
+
*
|
|
73
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
74
|
+
* because the host reads this flag — a host that ignores it will still
|
|
75
|
+
* replace the SDK screen. Not a guarantee.
|
|
76
|
+
*/
|
|
77
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* True when the workflow is OAuth2-secured. The OAuth authorization server
|
|
80
|
+
* owns the redirect back to the client's `redirect_uri`, so the host must not
|
|
81
|
+
* navigate to `redirectionUrl` itself. A host redirect drops the `error` and
|
|
82
|
+
* `state` parameters, and the client reads a failed authentication as a
|
|
83
|
+
* success. The workflow always sets it on finish; treat a missing value as
|
|
84
|
+
* unknown.
|
|
85
|
+
*/
|
|
86
|
+
oauth2Secured?: boolean;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = ConfigWithOverrides<TConfig>> = {
|
|
90
|
+
/**
|
|
91
|
+
* Module configuration required to render the flow.
|
|
92
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
93
|
+
*
|
|
94
|
+
* Also carries optional per-instance `assets`/`animations` override maps;
|
|
95
|
+
* they override the global `setup({ uiConfig })` values for this
|
|
96
|
+
* element only and are ignored by the core manager.
|
|
97
|
+
*/
|
|
98
|
+
config?: TConfigInput;
|
|
99
|
+
/**
|
|
100
|
+
* Optional pre-built manager. The host owns its ordinary lifecycle.
|
|
101
|
+
* Session expiry always stops it to release capture resources, even when
|
|
102
|
+
* supplied by the host. Create a new manager for a replacement session;
|
|
103
|
+
* do not reuse the stopped instance in another mounted module.
|
|
104
|
+
*/
|
|
105
|
+
manager?: TManager;
|
|
106
|
+
/**
|
|
107
|
+
* Callback invoked when the module completes successfully.
|
|
108
|
+
* @param result - Optional result data from the module completion
|
|
109
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
110
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
111
|
+
*/
|
|
112
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Callback invoked when a fatal module error occurs.
|
|
115
|
+
*
|
|
116
|
+
* @param error - Human-readable error message.
|
|
117
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
118
|
+
* the workflow and flow modules on QR validation failures —
|
|
119
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
120
|
+
* @param moduleErrorCode - Optional machine-readable error code (e.g. a
|
|
121
|
+
* `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
|
|
122
|
+
* branch on the specific terminal error without parsing the message string.
|
|
123
|
+
* @param details - Structured session-expiry error with statusCode 401 and
|
|
124
|
+
* code/type SESSION_EXPIRED. The first three arguments stay compatible.
|
|
125
|
+
*/
|
|
126
|
+
onError?: ModuleErrorHandler;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
131
|
+
*
|
|
132
|
+
* These ride on the module's `config` prop and are published once at the
|
|
133
|
+
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
134
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
135
|
+
* any prop drilling.
|
|
136
|
+
*/
|
|
137
|
+
declare type InstanceOverrides = {
|
|
138
|
+
assets?: AssetOverrides;
|
|
139
|
+
animations?: AnimationOverrides;
|
|
140
|
+
spinner?: SpinnerPresentation;
|
|
141
|
+
/**
|
|
142
|
+
* `true` hides the unsupported-browser screen for this element; `false`
|
|
143
|
+
* forces it on. Wins over `setup({ uiConfig })`. When both are omitted, the
|
|
144
|
+
* session Flow's setting applies. `<incode-flow>` and `<incode-workflow>`
|
|
145
|
+
* ignore it and always use their server setting.
|
|
146
|
+
*/
|
|
147
|
+
disableUnsupportedBrowserScreen?: boolean;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare const KybChecksModule: FC<Omit<KybChecksModuleProps, "config"> & {
|
|
151
|
+
config?: (Omit<KybChecksConfig, "modules"> & DeepPartial<Pick<KybChecksConfig, "modules">>) | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
|
|
154
|
+
declare type KybChecksModuleProps = IncodeModuleProps<KybChecksConfig, KybChecksResult, KybChecksManager>;
|
|
155
|
+
|
|
156
|
+
declare type LottieAnimationData = {
|
|
157
|
+
fr: number;
|
|
158
|
+
v: string;
|
|
159
|
+
ip: number;
|
|
160
|
+
op: number;
|
|
161
|
+
w: number;
|
|
162
|
+
h: number;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
167
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
168
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
169
|
+
*/
|
|
170
|
+
declare type ModuleCancelOptions = {
|
|
171
|
+
allowUserToCancel?: boolean;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Host-facing loader presentation, settable globally via
|
|
178
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
179
|
+
*
|
|
180
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
181
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
182
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
183
|
+
* leaves one source of truth for user-facing strings.
|
|
184
|
+
*/
|
|
185
|
+
declare type SpinnerPresentation = {
|
|
186
|
+
renderMode?: SpinnerRenderMode;
|
|
187
|
+
size?: SpinnerSize;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Which parts of a loader render.
|
|
192
|
+
*
|
|
193
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
194
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
195
|
+
*/
|
|
196
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
197
|
+
|
|
198
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
199
|
+
|
|
200
|
+
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
201
|
+
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
202
|
+
|
|
203
|
+
export { }
|
|
204
|
+
|
|
205
|
+
declare global {
|
|
206
|
+
interface HTMLElementTagNameMap {
|
|
207
|
+
'incode-kyb-checks': HTMLElement & import('preact').ComponentProps<typeof KybChecksModule>;
|
|
208
|
+
}
|
|
209
|
+
}
|
package/dist/types/phone.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
|
54
54
|
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
55
55
|
* `FlowConfig` also declares the maps directly.
|
|
56
56
|
*/
|
|
57
|
-
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
57
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -155,6 +155,15 @@ declare type LottieAnimationData = {
|
|
|
155
155
|
h: number;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
160
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
161
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
162
|
+
*/
|
|
163
|
+
declare type ModuleCancelOptions = {
|
|
164
|
+
allowUserToCancel?: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
158
167
|
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
159
168
|
|
|
160
169
|
export declare const Phone: FC<Omit<PhoneProps, "config"> & {
|
|
@@ -54,7 +54,7 @@ declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
|
54
54
|
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
55
55
|
* `FlowConfig` also declares the maps directly.
|
|
56
56
|
*/
|
|
57
|
-
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
57
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -155,6 +155,15 @@ declare type LottieAnimationData = {
|
|
|
155
155
|
h: number;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
160
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
161
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
162
|
+
*/
|
|
163
|
+
declare type ModuleCancelOptions = {
|
|
164
|
+
allowUserToCancel?: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
158
167
|
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
159
168
|
|
|
160
169
|
export declare const QeSignature: FC<Omit<QeSignatureModuleProps, "config"> & {
|
|
@@ -14,7 +14,7 @@ export declare type RedirectToMobileProps = {
|
|
|
14
14
|
services?: Partial<RedirectToMobileServices>;
|
|
15
15
|
onFinish?: () => void;
|
|
16
16
|
onContinue?: () => void;
|
|
17
|
-
onError?: (error: string | undefined) => void;
|
|
17
|
+
onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { }
|
package/dist/types/selfie.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
|
54
54
|
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
55
55
|
* `FlowConfig` also declares the maps directly.
|
|
56
56
|
*/
|
|
57
|
-
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
57
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -155,6 +155,15 @@ declare type LottieAnimationData = {
|
|
|
155
155
|
h: number;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
160
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
161
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
162
|
+
*/
|
|
163
|
+
declare type ModuleCancelOptions = {
|
|
164
|
+
allowUserToCancel?: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
158
167
|
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
159
168
|
|
|
160
169
|
export declare const Selfie: FC<Omit<SelfieProps, "config"> & {
|
|
@@ -54,7 +54,7 @@ declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
|
54
54
|
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
55
55
|
* `FlowConfig` also declares the maps directly.
|
|
56
56
|
*/
|
|
57
|
-
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
57
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -155,6 +155,15 @@ declare type LottieAnimationData = {
|
|
|
155
155
|
h: number;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
160
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
161
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
162
|
+
*/
|
|
163
|
+
declare type ModuleCancelOptions = {
|
|
164
|
+
allowUserToCancel?: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
158
167
|
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
159
168
|
|
|
160
169
|
export declare const Signature: FC<Omit<SignatureProps, "config"> & {
|
|
@@ -11,7 +11,7 @@ export declare const VideoSelfie: FC<Omit<{
|
|
|
11
11
|
onFinish?: ((result?: void | undefined) => void) | undefined;
|
|
12
12
|
onError?: ModuleErrorHandler;
|
|
13
13
|
}, "config"> & {
|
|
14
|
-
config?: (Omit<VideoSelfieConfig, "validateClosedEyes" | "validateFaceMask" | "validateHeadCover" | "validateLenses" | "speechToTextCheck" | "
|
|
14
|
+
config?: (Omit<VideoSelfieConfig, "validateClosedEyes" | "validateFaceMask" | "validateHeadCover" | "validateLenses" | "speechToTextCheck" | "useAsSelfie" | "showTutorials" | "companyName" | "checkLiveness" | "checkIdScan" | "checkDocumentScan" | "compareIdEnabled" | "compareOcrEnabled" | "compareBackIdEnabled" | "compareBackOcrEnabled" | "checkVoiceConsent" | "voiceConsentQuestions" | "numberOfTries" | "selfieQualityAffectsScore" | "maxWaitingVideoSelfieFile" | "lastSecondsVideoQualityCheck" | "lastSecondsVideoQualityCheckDuration"> & DeepPartial<Pick<VideoSelfieConfig, "validateClosedEyes" | "validateFaceMask" | "validateHeadCover" | "validateLenses" | "speechToTextCheck" | "useAsSelfie" | "showTutorials" | "companyName" | "checkLiveness" | "checkIdScan" | "checkDocumentScan" | "compareIdEnabled" | "compareOcrEnabled" | "compareBackIdEnabled" | "compareBackOcrEnabled" | "checkVoiceConsent" | "voiceConsentQuestions" | "numberOfTries" | "selfieQualityAffectsScore" | "maxWaitingVideoSelfieFile" | "lastSecondsVideoQualityCheck" | "lastSecondsVideoQualityCheckDuration">>) | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
17
17
|
export { }
|
|
@@ -54,7 +54,7 @@ declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
|
54
54
|
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
55
55
|
* `FlowConfig` also declares the maps directly.
|
|
56
56
|
*/
|
|
57
|
-
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
57
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -155,6 +155,15 @@ declare type LottieAnimationData = {
|
|
|
155
155
|
h: number;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
160
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
161
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
162
|
+
*/
|
|
163
|
+
declare type ModuleCancelOptions = {
|
|
164
|
+
allowUserToCancel?: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
158
167
|
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
159
168
|
|
|
160
169
|
/**
|
package/dist/types/workflow.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare type ClientIdSessionBootstrap = {
|
|
|
66
66
|
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
67
67
|
* `FlowConfig` also declares the maps directly.
|
|
68
68
|
*/
|
|
69
|
-
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
69
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides & ModuleCancelOptions;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -192,6 +192,15 @@ declare type MapModuleConfigOptions = {
|
|
|
192
192
|
digitalIdReturnUrl?: string;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Behavior option on a module's `config` (flow, workflow or standalone module).
|
|
197
|
+
* Not a theme option: it decides whether the end user may quit, so it is set by
|
|
198
|
+
* the integrator's code and never read from a Studio export or the dashboard.
|
|
199
|
+
*/
|
|
200
|
+
declare type ModuleCancelOptions = {
|
|
201
|
+
allowUserToCancel?: boolean;
|
|
202
|
+
};
|
|
203
|
+
|
|
195
204
|
declare type ModuleErrorHandler = (message: string | undefined, errorCode?: number, moduleErrorCode?: string, details?: SessionExpiredError) => void;
|
|
196
205
|
|
|
197
206
|
declare type SelfLoadingSessionOptions = Pick<CreateSessionOptions, 'configurationId' | 'externalId' | 'externalCustomerId' | 'customFields' | 'uuid' | 'urlUuid' | 'loginHint'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as u, i as D } from "./vendor-preact-DHGqBGMH.js";
|
|
2
|
+
import { n as cn } from "./spacer-Jaru_3sb.js";
|
|
3
3
|
//#region src/shared/typography/typography.tsx
|
|
4
4
|
var Title = D(({ children, className, ...rest }, ref) => {
|
|
5
5
|
return /* @__PURE__ */ u("h2", {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { r as C } from "./vendor-preact-DHGqBGMH.js";
|
|
2
|
+
//#region src/shared/uiConfig/uiConfig.ts
|
|
3
|
+
/** Tier 1: set by the host via `setup({ uiConfig })` / `setUiConfig`. Wins. */
|
|
4
|
+
var hostUiConfig = {};
|
|
5
|
+
/** Tier 2: derived from the tenant's dashboard theme. Fills the gaps. */
|
|
6
|
+
var themeUiConfig = {};
|
|
7
|
+
/**
|
|
8
|
+
* Cached composition of the two tiers. `useSyncExternalStore` requires
|
|
9
|
+
* `getSnapshot` to return a referentially stable value — composing on every
|
|
10
|
+
* call would hand Preact a new object each time and loop forever — so the
|
|
11
|
+
* merge happens once per write instead.
|
|
12
|
+
*/
|
|
13
|
+
var snapshot = {};
|
|
14
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
15
|
+
function withoutUndefined(value) {
|
|
16
|
+
const defined = {};
|
|
17
|
+
for (const key of Object.keys(value)) if (value[key] !== void 0) defined[key] = value[key];
|
|
18
|
+
return defined;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Host fields win over theme fields; a host field left `undefined` counts as
|
|
22
|
+
* "not specified" and lets the theme through, rather than blanking it.
|
|
23
|
+
*/
|
|
24
|
+
function publish() {
|
|
25
|
+
snapshot = {
|
|
26
|
+
...themeUiConfig,
|
|
27
|
+
...withoutUndefined(hostUiConfig)
|
|
28
|
+
};
|
|
29
|
+
for (const listener of listeners) listener();
|
|
30
|
+
}
|
|
31
|
+
function subscribe(listener) {
|
|
32
|
+
listeners.add(listener);
|
|
33
|
+
return () => {
|
|
34
|
+
listeners.delete(listener);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function getSnapshot() {
|
|
38
|
+
return snapshot;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Sets global UI configuration defaults for `@incodetech/web`.
|
|
42
|
+
*
|
|
43
|
+
* Replaces (does not merge with) the previous host-supplied config, so omitting
|
|
44
|
+
* a field clears it. The dashboard theme is held separately and is unaffected.
|
|
45
|
+
*/
|
|
46
|
+
function setUiConfig(next) {
|
|
47
|
+
hostUiConfig = next;
|
|
48
|
+
publish();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Merges fields into the host config, leaving unlisted fields as they are.
|
|
52
|
+
*
|
|
53
|
+
* Unlike {@link setUiConfig}, which replaces, this applies one source of
|
|
54
|
+
* config without disturbing what the host set elsewhere — so applying a
|
|
55
|
+
* Studio export cannot drop a host's `assets` or `spinner`. `undefined`
|
|
56
|
+
* values are skipped, so an unset field never clears a good one.
|
|
57
|
+
*/
|
|
58
|
+
function patchUiConfig(partial) {
|
|
59
|
+
hostUiConfig = {
|
|
60
|
+
...hostUiConfig,
|
|
61
|
+
...withoutUndefined(partial)
|
|
62
|
+
};
|
|
63
|
+
publish();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Internal: publishes the branding fields derived from the tenant's dashboard
|
|
67
|
+
* theme. Not exported from the package — hosts use {@link setUiConfig}.
|
|
68
|
+
*/
|
|
69
|
+
function setThemeUiConfig(next) {
|
|
70
|
+
themeUiConfig = next;
|
|
71
|
+
publish();
|
|
72
|
+
}
|
|
73
|
+
function useUiConfig() {
|
|
74
|
+
return C(subscribe, getSnapshot);
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { useUiConfig as i, setThemeUiConfig as n, setUiConfig as r, patchUiConfig as t };
|