@incodetech/web 2.2.0-rc.8 → 2.3.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/THIRD_PARTY_NOTICES.txt +398 -0
  2. package/dist/ae-signature/ae-signature.es.js +4 -4
  3. package/dist/af-ZA-DTqKc5t4.js +3041 -0
  4. package/dist/am-EGNy2cbo.js +3041 -0
  5. package/dist/antifraud/antifraud.es.js +4 -4
  6. package/dist/ar-AE-Cb55U6s-.js +3057 -0
  7. package/dist/ar-EG-C8ucZII6.js +3057 -0
  8. package/dist/ar-MUpu33jy.js +3057 -0
  9. package/dist/assets/dm-sans-latin-400-normal.woff2 +0 -0
  10. package/dist/assets/dm-sans-latin-500-normal.woff2 +0 -0
  11. package/dist/assets/dm-sans-latin-600-normal.woff2 +0 -0
  12. package/dist/assets/dm-sans-latin-700-normal.woff2 +0 -0
  13. package/dist/assets/rethink-sans-latin-800-normal.woff2 +0 -0
  14. package/dist/authentication/authentication.es.js +15 -11
  15. package/dist/{autoFocusTitle-DB-23sv_.js → autoFocusTitle-CIbcUW_x.js} +2 -2
  16. package/dist/az-DlXjPSya.js +3041 -0
  17. package/dist/{back-horizontal-hint-CjdigFZj.js → back-horizontal-hint-UQ7Nof6k.js} +1 -1
  18. package/dist/{back-vertical-hint-OhaKsINF.js → back-vertical-hint-Crc8ybfk.js} +1 -1
  19. package/dist/base.css +917 -283
  20. package/dist/baseTutorial-DkL0vjUa.js +172 -0
  21. package/dist/bn-BuTjJr44.js +3041 -0
  22. package/dist/bottomSheet-DtUFrIAG.js +101 -0
  23. package/dist/bs-DUzGtLhU.js +3045 -0
  24. package/dist/ca-B6SY43GQ.js +3041 -0
  25. package/dist/cameraOverlay-Dn0r4NR9.js +2 -0
  26. package/dist/cameraOverlayHeader-CsokPtuL.js +43 -0
  27. package/dist/cameraView-DrTBPNWX.js +49 -0
  28. package/dist/captureFooter-DWCaAdIU.js +67 -0
  29. package/dist/ceb-DmXy5txv.js +3041 -0
  30. package/dist/certificate-issuance/certificate-issuance.es.js +19 -14
  31. package/dist/certificate-issuance/styles.css.js +1 -0
  32. package/dist/{checkbox-FGA-Ij-D.js → checkbox-D0wfscwg.js} +9 -8
  33. package/dist/{connectionError-BurQq_4R.js → connectionError-B61O7L3N.js} +4 -4
  34. package/dist/consent/consent.es.js +26 -33
  35. package/dist/consent/styles.css +4 -4
  36. package/dist/consent/styles.css.js +1 -0
  37. package/dist/countries-5e8kwG_m.js +8560 -0
  38. package/dist/{countrySelector-COZ7XQHp.js → countrySelector-C60Cdc5P.js} +8 -10
  39. package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
  40. package/dist/cs-CZ-Gn3ZmW27.js +3049 -0
  41. package/dist/cs-dsQ7umNS.js +3049 -0
  42. package/dist/curp-validation/curp-validation.es.js +15 -22
  43. package/dist/curp-validation/styles.css.js +1 -0
  44. package/dist/custom-fields/styles.css.js +1 -0
  45. package/dist/{customFields-rVMTo1Yu.js → customFields-BdnLB6L1.js} +44 -19
  46. package/dist/{customWatchlist-DgpXtVRf.js → customWatchlist-DzeHJAa3.js} +14 -11
  47. package/dist/da-DK-CFQaOERk.js +3041 -0
  48. package/dist/{dashboardTheme-BUDq5UYs.js → dashboardTheme-BwKtcRSO.js} +31 -7
  49. package/dist/{dateInputComposed-DSgV0wnb.js → dateInputComposed-BcmKKwRL.js} +5 -5
  50. package/dist/dateInputComposed-DPM6l_SL.js +1 -0
  51. package/dist/de-BqG02U9o.js +3041 -0
  52. package/dist/document-capture/document-capture.es.js +1 -1
  53. package/dist/document-capture/styles.css +4 -4
  54. package/dist/document-capture/styles.css.js +1 -0
  55. package/dist/{documentCapture-sZj09g0I.js → documentCapture-CoMsW_gC.js} +16 -17
  56. package/dist/documentCapture-DMxz9eqT.js +2 -0
  57. package/dist/dropdownComposed-CXwC9j18.js +1 -0
  58. package/dist/{dropdownComposed-CEegNzG4.js → dropdownComposed-DYdI3B4r.js} +9 -9
  59. package/dist/{dynamicForms-t3vepXqJ.js → dynamic-forms/dynamic-forms.es.js} +24 -19
  60. package/dist/dynamic-forms/styles.css +5 -0
  61. package/dist/dynamic-forms/styles.css.js +1 -0
  62. package/dist/ekyb/ekyb.es.js +1 -1
  63. package/dist/ekyb/styles.css +15 -13
  64. package/dist/ekyb/styles.css.js +1 -0
  65. package/dist/{ekybModule-Dvkf5WAr.js → ekybModule-BRh9D01p.js} +17 -30
  66. package/dist/ekybModule-C5NPsc0F.js +2 -0
  67. package/dist/ekyc/ekyc.es.js +1 -1
  68. package/dist/ekyc/styles.css +17 -16
  69. package/dist/ekyc/styles.css.js +1 -0
  70. package/dist/{ekycModule-C5QXVGP7.js → ekycModule-Da6Bl3jg.js} +14 -29
  71. package/dist/ekycModule-DwKPvgA8.js +2 -0
  72. package/dist/el-BP_RmMeB.js +3041 -0
  73. package/dist/el-GR-9I2fVd-W.js +3041 -0
  74. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  75. package/dist/electronic-signature/styles.css +62 -2
  76. package/dist/electronic-signature/styles.css.js +1 -0
  77. package/dist/{electronic-signature-CyE8F7LZ.js → electronic-signature-KFF7qbid.js} +65 -18
  78. package/dist/email/email.es.js +9 -8
  79. package/dist/email/styles.css.js +1 -0
  80. package/dist/{emailInput-CsT8_C01.js → emailInput-B_qAEKBC.js} +4 -4
  81. package/dist/en-DG-poeSJZ7W.js +3041 -0
  82. package/dist/en-DnIfMNS1.js +3041 -0
  83. package/dist/errorContent-CMNfCIo_.js +58 -0
  84. package/dist/es-2x55EFTs.js +3041 -0
  85. package/dist/es-419-DgAnO5DV.js +3041 -0
  86. package/dist/es-ES-BSnroYMU.js +3041 -0
  87. package/dist/es-MX-CfztSSs4.js +3041 -0
  88. package/dist/et-CPoI8fYI.js +3041 -0
  89. package/dist/{expiredId-BQ1uPh7b.js → expiredId-DJYL_--M.js} +22 -27
  90. package/dist/extensibility.es.js +701 -24
  91. package/dist/fa-IR-CVf6F8GG.js +3041 -0
  92. package/dist/face-match/face-match.es.js +1 -1
  93. package/dist/face-match/styles.css +76 -40
  94. package/dist/face-match/styles.css.js +1 -0
  95. package/dist/{faceMatch-Rf-MMdto.js → faceMatch-CwoYbKBB.js} +7 -8
  96. package/dist/faceMatch-DCkrehin.js +2 -0
  97. package/dist/fi-FI-A4oUFztt.js +3041 -0
  98. package/dist/field-comparison/field-comparison.es.js +1 -1
  99. package/dist/field-comparison/styles.css +12 -0
  100. package/dist/field-comparison/styles.css.js +1 -0
  101. package/dist/{fieldComparison-BnGj3nNp.js → fieldComparison-D2WI5cYb.js} +27 -11
  102. package/dist/fieldComparison-OwqIkMRe.js +2 -0
  103. package/dist/fieldLabelHint-CxjArYkQ.js +16 -0
  104. package/dist/{finalSuccessScreen-B9uB3bST.js → finalSuccessScreen-BtJ5o2pi.js} +13 -14
  105. package/dist/fiscal-qr/fiscal-qr.es.js +22 -9
  106. package/dist/fiscal-qr/styles.css +13 -1
  107. package/dist/fiscal-qr/styles.css.js +1 -0
  108. package/dist/{extensibility-C5XqL_A3.js → flipAnimation-Bb5FQVF-.js} +608 -1005
  109. package/dist/flow/flow.es.js +308 -62
  110. package/dist/flow/shell/styles.css +402 -0
  111. package/dist/flow/shell/styles.css.js +1 -0
  112. package/dist/flow/styles.css +582 -312
  113. package/dist/formField-CBwWQ7wD.js +60 -0
  114. package/dist/fr-CA-CI4CD8PC.js +3045 -0
  115. package/dist/fr-ON88Zj-c.js +3045 -0
  116. package/dist/{front-horizontal-hint-Bhz1rq-w.js → front-horizontal-hint-mgovnJf3.js} +1 -1
  117. package/dist/{front-vertical-hint-C4FC1ksx.js → front-vertical-hint-qXMVdLri.js} +1 -1
  118. package/dist/geolocation/geolocation.es.js +9 -9
  119. package/dist/geolocation/styles.css +4 -4
  120. package/dist/geolocation/styles.css.js +1 -0
  121. package/dist/government-validation/government-validation.es.js +38 -86
  122. package/dist/government-validation/styles.css +2 -38
  123. package/dist/government-validation/styles.css.js +1 -0
  124. package/dist/he-pbmbYdr4.js +3049 -0
  125. package/dist/hi-DUIfQ6FS.js +3041 -0
  126. package/dist/hmn-DL-aQCTc.js +3041 -0
  127. package/dist/{homeScreen-Bv9mUUOF.js → homeScreen-vLMuzGDq.js} +8 -7
  128. package/dist/hr-DfJZSVnR.js +3045 -0
  129. package/dist/ht-DkZi3f0t.js +3041 -0
  130. package/dist/hu-ClhgOpVy.js +3041 -0
  131. package/dist/{icons-ChHV5iHi.js → icons-eIgP34nj.js} +99 -11
  132. package/dist/id/id.es.js +575 -62
  133. package/dist/id/styles.css +114 -45
  134. package/dist/id/styles.css.js +1 -0
  135. package/dist/id-DzyWelEE.js +3035 -0
  136. package/dist/{id-back-of-card-C4XViC7W.js → id-back-of-card-B6EcmiCs.js} +1 -1
  137. package/dist/{id-back-of-card-vertical-DCz0rj8m.js → id-back-of-card-vertical-B3FXhPpj.js} +1 -1
  138. package/dist/{id-front-of-card-CUA1ocVF.js → id-front-of-card-V_BlLaZr.js} +1 -1
  139. package/dist/{id-front-of-card-vertical-Ddm_BwD3.js → id-front-of-card-vertical-CuZjL8kc.js} +1 -1
  140. package/dist/id-ocr/styles.css.js +1 -0
  141. package/dist/id-selfie-flow/id-selfie-flow.es.js +10 -9
  142. package/dist/id-selfie-flow/styles.css +40 -8
  143. package/dist/id-verification/id-verification.es.js +5 -5
  144. package/dist/{idOcr-Da1-2sWY.js → idOcr-C5R3RWuL.js} +13 -16
  145. package/dist/identity-reuse/identity-reuse.es.js +8 -113
  146. package/dist/identity-reuse/styles.css +1 -1
  147. package/dist/{incode-logo-DeIDDejm.js → incode-logo-BzJOZr3f.js} +1 -64
  148. package/dist/{incodeComponent-BtFz-bx2.js → incodeComponent-D3_BSWan.js} +192 -22
  149. package/dist/{incodeModule-9K8KUs61.js → incodeModule-BQgvYKyr.js} +3 -3
  150. package/dist/index.es.js +4 -3
  151. package/dist/{inputComposed-C2zTEXsp.js → inputComposed-CTZnsHLi.js} +9 -9
  152. package/dist/inputComposed-wy0-orhJ.js +1 -0
  153. package/dist/it-D_u7w6N4.js +3041 -0
  154. package/dist/ja-Drh4oAoU.js +3035 -0
  155. package/dist/ja-JP-Pdxq82Pi.js +3035 -0
  156. package/dist/jv-DFcKF0Jp.js +3035 -0
  157. package/dist/ka--2y3Ae63.js +3041 -0
  158. package/dist/kk-CAs7inco.js +3041 -0
  159. package/dist/km-BlxkLYfw.js +3035 -0
  160. package/dist/ko-B1XhW0dx.js +3035 -0
  161. package/dist/ko-KP-DO1TCCY3.js +3035 -0
  162. package/dist/ky-BN92RThU.js +3041 -0
  163. package/dist/lo-DPUo8xJT.js +3035 -0
  164. package/dist/lt-CYBwI4Sq.js +3049 -0
  165. package/dist/lv-eBlwWu05.js +3045 -0
  166. package/dist/{mandatoryConsent-CxShVycM.js → mandatoryConsent-D96_9XTp.js} +10 -7
  167. package/dist/manualCaptureButton-C9H2_SJS.js +63 -0
  168. package/dist/{manualCaptureButton-DzJFIEfu.js → manualCaptureButton-igyQk3Yb.js} +10 -55
  169. package/dist/mk-QMUTND8Y.js +3041 -0
  170. package/dist/mn-CCTUOA1D.js +3041 -0
  171. package/dist/{modal-BH2wi8Q0.js → modal-CmF_MYIK.js} +7 -6
  172. package/dist/{modal.hooks-DcakflQ4.js → modal.hooks-B0Wrc9s2.js} +7 -1
  173. package/dist/ms-BKJgaJfx.js +3035 -0
  174. package/dist/my-DyLbN8b0.js +3035 -0
  175. package/dist/nb-NO-TVHxhuqB.js +3041 -0
  176. package/dist/ne-gBLZraiK.js +3041 -0
  177. package/dist/nl-CrO6Mvej.js +3041 -0
  178. package/dist/{numberedStep-DqtXyT11.js → numberedStep-DYznpDKc.js} +1 -1
  179. package/dist/{optionAccessibleLabel-C5iZCrlq.js → optionAccessibleLabel-CqBUOBxK.js} +6 -6
  180. package/dist/{otpInput-CvPR3ZpP.js → otpInput-tEovwPs7.js} +8 -83
  181. package/dist/{passport-horizontal-hint-DzkhjC8Q.js → passport-horizontal-hint-6Ghn2EEN.js} +1 -1
  182. package/dist/{passport-vertical-hint-Bd0BQn2Y.js → passport-vertical-hint-UPFFpdf4.js} +1 -1
  183. package/dist/passwordInputComposed-DNlYgHHW.js +74 -0
  184. package/dist/{pdf-BUoY_2gv.js → pdf-CFubyG0B.js} +1 -1
  185. package/dist/{pdfViewer-TTZmPABh.js → pdfViewer-4u14PDPr.js} +4 -4
  186. package/dist/pdfViewer-e2o97yIv.js +2 -0
  187. package/dist/{manualCaptureButton-D58WsS-x.js → permissions-DowRodJj.js} +200 -105
  188. package/dist/phone/phone.es.js +10 -9
  189. package/dist/phone/styles.css +1 -1
  190. package/dist/phone/styles.css.js +1 -0
  191. package/dist/{phoneInputComposed-byyszNoS.js → phoneInputComposed-B6sv-uB2.js} +20 -8412
  192. package/dist/pl-Bde7cCcc.js +3049 -0
  193. package/dist/{processing-B2eaSGLu.js → processing-s6GfNwuL.js} +2 -2
  194. package/dist/pt-BR-DFr2fPNi.js +3041 -0
  195. package/dist/pt-DhDCeOLY.js +3041 -0
  196. package/dist/pt-PT-CpiPMuNf.js +3041 -0
  197. package/dist/qe-signature/qe-signature.es.js +4 -4
  198. package/dist/radioGroupComposed-CJkzLiFc.js +1 -0
  199. package/dist/{radioGroupComposed-DQzTWutW.js → radioGroupComposed-DmoMukus.js} +15 -71
  200. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -178
  201. package/dist/redirect-to-mobile/styles.css +2 -27
  202. package/dist/redirect-to-mobile/styles.css.js +1 -0
  203. package/dist/{registerIncodeElement-DW2PE_DX.js → registerIncodeElement-CbZczi4S.js} +1 -1
  204. package/dist/resendTimer-Cskll9rx.js +79 -0
  205. package/dist/{useModuleLoader-DxOEZ0vn.js → resolveApiKey-CB1_7ISm.js} +70 -222
  206. package/dist/{richText-CEwM8jib.js → richText-C8-Ny2SD.js} +9 -9
  207. package/dist/ro-B_ITJxYh.js +3045 -0
  208. package/dist/ru-Cg4U-rYv.js +3049 -0
  209. package/dist/ru-RU-fR_tbAfz.js +3049 -0
  210. package/dist/selfie/selfie.es.js +184 -8
  211. package/dist/selfie/styles.css +225 -36
  212. package/dist/selfie/styles.css.js +1 -0
  213. package/dist/signature/signature.es.js +8 -9
  214. package/dist/signature/styles.css.js +1 -0
  215. package/dist/sk-DbraxlnX.js +3049 -0
  216. package/dist/sl-DXgvmUsz.js +3049 -0
  217. package/dist/smsTabContent-Dado9q8t.js +172 -0
  218. package/dist/so-HI13bXme.js +3041 -0
  219. package/dist/{spacer-DLEDuWEx.js → spacer-ayyj5lMa.js} +10 -10
  220. package/dist/spinner-Z-5sEEDQ.js +88 -0
  221. package/dist/sr-DAb2JkvB.js +3045 -0
  222. package/dist/sr-Latn-DzSc6KyA.js +3045 -0
  223. package/dist/sr-YU-C9HskKa8.js +3045 -0
  224. package/dist/{statusPage-BF4qGjF3.js → statusPage-Bqz3Ci4f.js} +4 -4
  225. package/dist/sv-SE-B3X2fvQj.js +3041 -0
  226. package/dist/sw-BVL9Boua.js +3041 -0
  227. package/dist/{tabs-BGL1oRLb.js → tabs-B-ERCzA4.js} +2 -2
  228. package/dist/th-Cq87oDI8.js +3035 -0
  229. package/dist/th-TH-CY5gd6Bd.js +3035 -0
  230. package/dist/themes/dark.css +125 -0
  231. package/dist/themes/light.css +124 -0
  232. package/dist/tl-DUm9tRZ_.js +3041 -0
  233. package/dist/tl-PH-CNYNkY1M.js +3041 -0
  234. package/dist/tr-Cg3WJqb6.js +3041 -0
  235. package/dist/{tutorial-LQuJ4dse.js → tutorial-CHNfV-I3.js} +40 -226
  236. package/dist/types/certificate-issuance.d.ts +4 -4
  237. package/dist/types/dynamic-forms.d.ts +177 -0
  238. package/dist/types/extensibility.d.ts +75 -23
  239. package/dist/types/flow.d.ts +37 -0
  240. package/dist/types/government-validation.d.ts +2 -1
  241. package/dist/types/index.d.ts +28 -4
  242. package/dist/types/video-selfie.d.ts +6 -161
  243. package/dist/typography-ikD4-Z8S.js +53 -0
  244. package/dist/{uiConfig-Dqnjankd.js → uiConfig-C1jdTj-i.js} +184 -8
  245. package/dist/uk-C7hhE-77.js +3049 -0
  246. package/dist/uk-UA-DRsynQ5S.js +3049 -0
  247. package/dist/ur-BEX50SCe.js +3041 -0
  248. package/dist/useCoverMedia-VLw3OYN_.js +149 -0
  249. package/dist/useModuleLoader-DpcbSKBH.js +176 -0
  250. package/dist/uz-BYlUXaIK.js +3041 -0
  251. package/dist/{vendor-preact-BPXMFRom.js → vendor-preact-C0jX1Cbq.js} +68 -181
  252. package/dist/{verificationResult-q_zD_Pxh.js → verificationResult-B26DDXFT.js} +32 -25
  253. package/dist/vi-DddAM-WF.js +3035 -0
  254. package/dist/video-selfie/styles.css +51 -17
  255. package/dist/video-selfie/styles.css.js +1 -0
  256. package/dist/video-selfie/video-selfie.es.js +35 -23
  257. package/dist/watchlist/watchlist.es.js +7 -7
  258. package/dist/watchlist-for-business/styles.css.js +1 -0
  259. package/dist/{watchlistForBusiness-C_zqdY4P.js → watchlistForBusiness-o4F6Czxp.js} +28 -16
  260. package/dist/workflow/styles.css +1073 -356
  261. package/dist/workflow/workflow.es.js +17 -15
  262. package/dist/zh-CN-B8y9prPe.js +3035 -0
  263. package/dist/zh-HANT-ChrXbHBA.js +3035 -0
  264. package/dist/zh-TW-DrkMIR_e.js +3035 -0
  265. package/dist/zh-aG_wPYUs.js +3035 -0
  266. package/package.json +32 -22
  267. package/dist/bottomSheet-BWEUBq8m.js +0 -38
  268. package/dist/dateInputComposed-BGC37jC7.js +0 -1
  269. package/dist/documentCapture-CO9kIxru.js +0 -2
  270. package/dist/dropdownComposed-Bf4EcKFw.js +0 -1
  271. package/dist/ekybModule-uN0ComAn.js +0 -2
  272. package/dist/ekycModule-B7KRJ7l3.js +0 -2
  273. package/dist/faceMatch-DjD2hgBp.js +0 -2
  274. package/dist/fieldComparison-DFH4hUM_.js +0 -2
  275. package/dist/inputComposed-kKtrvJU5.js +0 -1
  276. package/dist/pdfViewer-C1B-07Wu.js +0 -2
  277. package/dist/requiredLabelHint-Dx0WS2cR.js +0 -17
  278. package/dist/snackbar-eBOj46AK.js +0 -16
  279. package/dist/spinner-CJCOHUKx.js +0 -95
  280. package/dist/successIcon-DS8BLsgy.js +0 -30
  281. package/dist/types/dynamic-forms/styles.d.ts +0 -1
  282. /package/dist/{aligndevicelottie-CfoZ5Uus.js → aligndevicelottie-B12hbVhG.js} +0 -0
  283. /package/dist/{back-tutorial-BHyRHyET.js → back-tutorial-XdmQ0Wml.js} +0 -0
  284. /package/dist/{backdevicelottie-yKkczgFy.js → backdevicelottie-m_DOD8xE.js} +0 -0
  285. /package/dist/{blurdevicelottie-8BbophdM.js → blurdevicelottie-DQo_hTMD.js} +0 -0
  286. /package/dist/{browser-ponyfill-CBjGwwPW.js → browser-ponyfill-ZkeBm4ji.js} +0 -0
  287. /package/dist/{defineProperty-BbpBna-2.js → defineProperty-BojnCa44.js} +0 -0
  288. /package/dist/{flip-animation-CvN8FLNc.js → flip-animation-VicedlT5.js} +0 -0
  289. /package/dist/{frontdevicelottie-CFcahVLk.js → frontdevicelottie-CyIerlMv.js} +0 -0
  290. /package/dist/{glaredevicelottie-Cnvah0kz.js → glaredevicelottie-QM2C6Ivp.js} +0 -0
  291. /package/dist/{id-laser-h-BaUHzX-d.js → id-laser-h-B0-iXcvl.js} +0 -0
  292. /package/dist/{id-laser-v-Dv9yEYJE.js → id-laser-v-Bqh6vimi.js} +0 -0
  293. /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-IhmAzrIF.js} +0 -0
  294. /package/dist/{lottie_light-Bv56F2Ae.js → lottie_light-CzZ3CHBk.js} +0 -0
  295. /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-61vlloJS.js} +0 -0
  296. /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-BRQ2QNxQ.js} +0 -0
@@ -1,14 +1,14 @@
1
1
  import { ComponentChildren } from 'preact';
2
- import { CountryCode } from 'libphonenumber-js';
3
2
  import { CSSProperties } from 'preact';
4
3
  import { FC } from 'preact/compat';
5
4
  import { FunctionalComponent } from 'preact';
6
5
  import { FunctionComponent } from 'preact';
7
6
  import { HTMLAttributes } from 'preact';
8
7
  import { HTMLAttributes as HTMLAttributes_2 } from 'preact/compat';
9
- import { i18n } from 'i18next';
10
8
  import { IdCaptureManager } from '@incodetech/core/id';
9
+ import { IdCaptureMode } from '@incodetech/core/id';
11
10
  import { IdCaptureState } from '@incodetech/core/id';
11
+ import { IdDocumentType } from '@incodetech/core/id';
12
12
  import { InputHTMLAttributes } from 'preact';
13
13
  import { JSX } from 'preact';
14
14
  import { default as LightningIcon } from './lightningIcon.svg?react';
@@ -21,7 +21,6 @@ import { SelfieManager } from '@incodetech/core/selfie';
21
21
  import { SelfieState } from '@incodetech/core/selfie';
22
22
  import { SVGProps } from 'preact/compat';
23
23
  import { TargetedEvent } from 'preact';
24
- import { TFunction } from 'i18next';
25
24
  import { VNode } from 'preact';
26
25
 
27
26
  /**
@@ -67,7 +66,7 @@ export declare type AssetOverride = string | {
67
66
 
68
67
  export declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
69
68
 
70
- export declare const BaseTutorial: ({ className, animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, stopFramePosition, recolor, }: BaseTutorialProps) => JSX.Element;
69
+ export declare const BaseTutorial: ({ className, animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, secondaryAction, actionsSlot, stopFramePosition, recolor, shouldScaleAnimationContainer, }: BaseTutorialProps) => JSX.Element;
71
70
 
72
71
  declare type BaseTutorialProps = {
73
72
  className?: string;
@@ -79,6 +78,14 @@ declare type BaseTutorialProps = {
79
78
  buttonText: string;
80
79
  disclaimerText: string;
81
80
  isLoading?: boolean;
81
+ /** Optional alternative to the primary CTA, rendered as a link below it. */
82
+ secondaryAction?: {
83
+ label: string;
84
+ onClick: () => void;
85
+ testId?: string;
86
+ };
87
+ /** Rendered below the primary CTA inside the button stack (e.g. a link action). */
88
+ actionsSlot?: ComponentChildren;
82
89
  stopFramePosition?: 'first' | 'middle' | 'last';
83
90
  /**
84
91
  * Re-tint the animation's brand-colored elements to the active branding
@@ -86,6 +93,8 @@ declare type BaseTutorialProps = {
86
93
  * their artwork is rendered as-authored (no recoloring).
87
94
  */
88
95
  recolor?: boolean;
96
+ /** Lets the animation shrink to the leftover viewport space so the CTA footer never overflows. */
97
+ shouldScaleAnimationContainer?: boolean;
89
98
  };
90
99
 
91
100
  export declare const BottomSheet: FC<BottomSheetProps>;
@@ -93,9 +102,20 @@ export declare const BottomSheet: FC<BottomSheetProps>;
93
102
  declare type BottomSheetProps = {
94
103
  isOpen?: boolean;
95
104
  onClose?: () => void;
105
+ /**
106
+ * Id of the element naming the sheet (`aria-labelledby`). Naming only — it
107
+ * may point at a non-focusable label and does not affect initial focus.
108
+ */
96
109
  labelledById: string;
97
110
  children: ComponentChildren;
98
111
  returnFocusRef?: RefObject<HTMLElement | null>;
112
+ /**
113
+ * When false, the sheet won't move focus to the dialog container on open.
114
+ * Use it when the content focuses itself (e.g. `AutoFocusTitle`), so the two
115
+ * don't compete. Defaults to true.
116
+ */
117
+ manageInitialFocus?: boolean;
118
+ 'data-testid'?: string;
99
119
  };
100
120
 
101
121
  export declare const Button: FunctionalComponent<PropsWithoutRef<ButtonProps> & {
@@ -343,8 +363,12 @@ declare type ConnectionErrorProps = {
343
363
 
344
364
  export declare const countries: CountryData[];
345
365
 
366
+ declare type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
367
+
346
368
  declare type CountryData = {
347
369
  code: CountryCode;
370
+ /** ISO 3166-1 alpha-3 code, for backends that report alpha-3 (e.g. MRZ). */
371
+ alpha3: string;
348
372
  emoji: string;
349
373
  name: string;
350
374
  callingCode: string;
@@ -460,9 +484,8 @@ declare type FormFieldProps = {
460
484
  disabled?: boolean;
461
485
  autoComplete?: string;
462
486
  /**
463
- * Pre-translated text rendered next to the label (e.g. "(optional)").
464
- * Forms derive this via the majority rule (`getRequiredHintMode` +
465
- * `getFieldHint`).
487
+ * Pre-translated supplementary text rendered next to the label.
488
+ * Required fields receive an asterisk automatically.
466
489
  */
467
490
  labelHint?: string;
468
491
  onChange: (name: string, value: string) => void;
@@ -526,8 +549,8 @@ export declare const IdFlipAnimation: FC<FlipAnimationProps>;
526
549
  export declare const IdTutorial: FC<TutorialProps_2>;
527
550
 
528
551
  /**
529
- * Wraps UI modules with the standard container.
530
- * Shows a landscape blocker overlay on mobile (excluding iPad) when device is rotated to landscape.
552
+ * Wraps UI modules with the standard container. Blocks unsupported browsers
553
+ * and shows a landscape blocker on rotated mobile (excluding iPad).
531
554
  */
532
555
  export declare function IncodeComponent({ children }: IncodeComponentProps): VNode;
533
556
 
@@ -729,7 +752,7 @@ declare type ModalIconProps = {
729
752
  class?: string;
730
753
  };
731
754
 
732
- declare function ModalRoot({ open, children, onOpenChange, dismissible, portalContainer, class: className, hasBackdrop, manageInitialFocus, returnFocusRef, }: ModalRootProps): VNode<any> | null;
755
+ declare function ModalRoot({ open, children, onOpenChange, dismissible, portalContainer, class: className, hasBackdrop, manageInitialFocus, returnFocusRef, labelledById, 'data-testid': dataTestId, }: ModalRootProps): VNode<any> | null;
733
756
 
734
757
  declare type ModalRootProps = {
735
758
  open: boolean;
@@ -741,9 +764,19 @@ declare type ModalRootProps = {
741
764
  portalContainer?: HTMLElement | null;
742
765
  class?: string;
743
766
  hasBackdrop?: boolean;
744
- /** When false, Modal won't move focus to the title (or dialog) on open. Defaults to true. */
767
+ /**
768
+ * When false, Modal won't move focus to the title (or dialog) on open.
769
+ * Use it when the content focuses itself (e.g. `AutoFocusTitle`), so the two
770
+ * don't compete. Defaults to true.
771
+ */
745
772
  manageInitialFocus?: boolean;
746
773
  returnFocusRef?: RefObject<HTMLElement | null>;
774
+ /**
775
+ * Id of the element naming the dialog (`aria-labelledby`); defaults to
776
+ * `Modal.Title`'s id. Naming only — it does not affect initial focus.
777
+ */
778
+ labelledById?: string;
779
+ 'data-testid'?: string;
747
780
  };
748
781
 
749
782
  declare function ModalSubtitle({ children, class: className }: ModalSubtitleProps): JSX.Element;
@@ -986,7 +1019,7 @@ export declare type SegmentedDateInputProps = Omit<InputComposedProps, 'type' |
986
1019
 
987
1020
  export declare const SelfieCapture: FC<CaptureProps>;
988
1021
 
989
- export declare const SelfieTutorial: ({ manager, ageAssurance }: TutorialProps) => JSX.Element;
1022
+ export declare const SelfieTutorial: ({ manager, ageAssurance, showManualUploadLink, }: TutorialProps) => JSX.Element;
990
1023
 
991
1024
  /**
992
1025
  * Sets global UI configuration defaults for `@incodetech/ui`.
@@ -1066,6 +1099,11 @@ declare type SpinnerProps = {
1066
1099
  * want no icon competing with it.
1067
1100
  */
1068
1101
  hideIcon?: boolean;
1102
+ /**
1103
+ * @experimental
1104
+ * Render the spinner in dark variant that corresponds to dark mode color pallete.
1105
+ */
1106
+ alwaysDark?: boolean;
1069
1107
  };
1070
1108
 
1071
1109
  /**
@@ -1125,6 +1163,7 @@ declare type TitleProps = HTMLAttributes_2<HTMLHeadingElement> & {
1125
1163
  declare type TutorialProps = {
1126
1164
  manager: SelfieManager;
1127
1165
  ageAssurance?: boolean;
1166
+ showManualUploadLink?: boolean;
1128
1167
  };
1129
1168
 
1130
1169
  /**
@@ -1134,9 +1173,20 @@ declare type TutorialProps = {
1134
1173
  */
1135
1174
  declare type TutorialProps_2 = {
1136
1175
  manager: IdCaptureManager;
1137
- state: Extract<IdCaptureState, {
1138
- status: 'tutorial';
1139
- }>;
1176
+ documentType: IdDocumentType | undefined;
1177
+ mode: IdCaptureMode;
1178
+ /**
1179
+ * Controls the CTA's busy state. Omit to let the tutorial manage it itself
1180
+ * (the default, uncontrolled path); pass it when a caller already knows
1181
+ * whether the advance is in flight (e.g. `TutorialWithPermissions`, which
1182
+ * derives it from the machine's own tutorial phase).
1183
+ */
1184
+ isLoading?: boolean;
1185
+ actionsSlot?: ComponentChildren;
1186
+ onContinue?: () => void;
1187
+ disclaimerText?: string;
1188
+ /** Lets the animation shrink to the leftover viewport space so the CTA footer never overflows. */
1189
+ shouldScaleAnimationContainer?: boolean;
1140
1190
  };
1141
1191
 
1142
1192
  export declare const TypographyH1: FunctionalComponent<PropsWithoutRef<TitleProps> & {
@@ -1192,14 +1242,6 @@ export declare function useScreenOrientation(): {
1192
1242
  isLandscapeMobile: boolean;
1193
1243
  };
1194
1244
 
1195
- export declare function useTranslation(): UseTranslationReturn;
1196
-
1197
- declare type UseTranslationReturn = {
1198
- t: TFunction;
1199
- ready: boolean;
1200
- i18n: i18n;
1201
- };
1202
-
1203
1245
  export declare function VerificationOptionCard({ icon: Icon, title, testId, onClick, tag, }: Readonly<VerificationOptionCardProps>): JSX.Element;
1204
1246
 
1205
1247
  export declare function VerificationOptionCardList({ children, }: Readonly<VerificationOptionCardListProps>): JSX.Element;
@@ -1228,10 +1270,20 @@ declare type VerificationResultProps = {
1228
1270
  failureTitle?: string;
1229
1271
  warningTitle?: string;
1230
1272
  errorMessage?: string;
1273
+ /** Subtitle shown under a `success` title (failure/warning use `errorMessage`). */
1274
+ successSubtitle?: string;
1231
1275
  onRetry?: () => void;
1232
1276
  onSkip?: () => void;
1277
+ /**
1278
+ * Confirmation action for a `success` result. When provided, the success
1279
+ * screen renders a primary Continue button instead of relying on the caller
1280
+ * to auto-advance — the module decides which behaviour it wants. Ignored for
1281
+ * non-success statuses.
1282
+ */
1283
+ onContinue?: () => void;
1233
1284
  retryLabel?: string;
1234
1285
  skipLabel?: string;
1286
+ continueLabel?: string;
1235
1287
  hideFooterBranding?: boolean;
1236
1288
  footerBrandingSlot?: ComponentChildren;
1237
1289
  };
@@ -3,6 +3,7 @@ import { FC } from 'preact/compat';
3
3
  import { FinishStatus } from '@incodetech/core/flow';
4
4
  import { FlowEvent } from '@incodetech/core/flow-events';
5
5
  import { FunctionComponent } from 'preact';
6
+ import { RedirectReturnParams } from '@incodetech/core/id';
6
7
  import { SVGProps } from 'preact/compat';
7
8
  import { WasmConfig } from '@incodetech/core/wasm';
8
9
 
@@ -68,8 +69,31 @@ declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
68
69
 
69
70
  declare type FlowBaseConfig = {
70
71
  authHint?: string;
72
+ /** Overrides the destination URL used by the Redirect to Mobile module. */
73
+ redirectToMobileUrl?: string;
71
74
  /** Login-hint prefill forwarded to the Dynamic Forms module's `prefillValue`. Distinct from `authHint`. */
72
75
  loginHintPrefill?: string;
76
+ /**
77
+ * Digital-ID web-redirect (Trinsic iDIN/FTN) return leg. On the return from
78
+ * the identity provider the host parses `success`/`sessionId`/`resultsAccessKey`
79
+ * from the URL and passes them here; the flow threads them into the ID-Capture
80
+ * module config (`IdCaptureConfig.digitalIdReturn`), which resumes straight
81
+ * into the `digitalIdRedirect` child (the persisted verificationId is recovered
82
+ * from storage, not here). Previously wired to a standalone `DIGITAL_ID_REDIRECT`
83
+ * step — that step no longer exists; the module is an ID-Capture child.
84
+ */
85
+ digitalIdReturn?: {
86
+ returnParams: RedirectReturnParams;
87
+ };
88
+ /**
89
+ * https return route the identity provider (Trinsic iDIN) redirects back to
90
+ * after the bank login — forwarded to the ID-Capture module as the redirect
91
+ * target for `createVerification`. The host owns this route (it stashes
92
+ * `url_uuid` for session re-bootstrap and the URL is typically allowlisted by
93
+ * the provider), so set it explicitly when the current page URL is not the
94
+ * correct return target. Falls back to `window.location.origin + pathname`.
95
+ */
96
+ digitalIdReturnUrl?: string;
73
97
  wasmConfig?: WasmConfig;
74
98
  lang?: string;
75
99
  disableDashboardTheme?: boolean;
@@ -82,6 +106,13 @@ export declare type FlowConfig = FlowRuntimeConfig & FlowUiConfig;
82
106
  declare type FlowRuntimeConfig = TokenFlowRuntimeConfig | SelfLoadingFlowRuntimeConfig;
83
107
 
84
108
  declare type FlowUiConfig = {
109
+ /**
110
+ * Load flow and module stylesheets as screens become visible. Defaults to false.
111
+ * Keep the theme and base.css imports (base includes fonts); omit flow/styles.css.
112
+ */
113
+ injectCss?: boolean;
114
+ /** CSP nonce for style elements created by injectCss. */
115
+ cssNonce?: string;
85
116
  onModuleLoading?: (moduleKey: string) => void;
86
117
  onModuleLoaded?: (moduleKey: string) => void;
87
118
  /**
@@ -94,6 +125,12 @@ declare type FlowUiConfig = {
94
125
  * `@incodetech/core/events`.
95
126
  */
96
127
  onFlowEvent?: (event: FlowEvent) => void;
128
+ /**
129
+ * Called for each background warmup request with only its missing pipelines.
130
+ * Home flows wait for Start; flows without Home warm after mounting.
131
+ * May fire multiple times as the flow advances (e.g. ID, then selfie).
132
+ * Already-ready pipelines and repeated state updates do not fire it again.
133
+ */
97
134
  onWasmWarmup?: (pipelines: string[]) => void;
98
135
  onUrlUuidRefreshed?: (urlUuid: string) => void;
99
136
  spinnerConfig?: SpinnerConfig;
@@ -2,6 +2,7 @@ import { DeepPartial } from '@incodetech/core/flow';
2
2
  import { FC } from 'preact/compat';
3
3
  import { FunctionComponent } from 'preact';
4
4
  import { GovernmentValidationConfig } from '@incodetech/core/government-validation';
5
+ import { GovernmentValidationManager } from '@incodetech/core/government-validation';
5
6
  import { SVGProps } from 'preact/compat';
6
7
 
7
8
  /**
@@ -58,7 +59,7 @@ export declare const GovernmentValidation: FC<Omit<GovernmentValidationProps, "c
58
59
  config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
59
60
  }>;
60
61
 
61
- declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig>;
62
+ declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig, void, GovernmentValidationManager>;
62
63
 
63
64
  /**
64
65
  * Extra context passed to `onFinish` alongside the result. Lets a host decide
@@ -1,7 +1,6 @@
1
1
  import { DEFAULT_WASM_VERSION } from '@incodetech/core/wasm';
2
2
  import { FeatureManagementRedactedUserInfo } from '@incodetech/core/feature-management';
3
3
  import { FunctionComponent } from 'preact';
4
- import { i18n } from 'i18next';
5
4
  import { SVGProps } from 'preact/compat';
6
5
  import { WasmConfig } from '@incodetech/core/wasm';
7
6
 
@@ -48,7 +47,7 @@ export declare type AssetOverride = string | {
48
47
 
49
48
  export declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
50
49
 
51
- export declare function createI18n(options?: I18nOptions): i18n;
50
+ export declare function createI18n(options?: I18nOptions): TranslationInstance;
52
51
 
53
52
  export { DEFAULT_WASM_VERSION }
54
53
 
@@ -87,7 +86,7 @@ declare type LottieAnimationData = {
87
86
  h: number;
88
87
  };
89
88
 
90
- export declare function setI18nInstance(instance: i18n): void;
89
+ export declare function setI18nInstance(instance: TranslationInstance): void;
91
90
 
92
91
  /**
93
92
  * Sets global UI configuration defaults for `@incodetech/ui`.
@@ -97,7 +96,7 @@ export declare function setI18nInstance(instance: i18n): void;
97
96
  */
98
97
  export declare function setUiConfig(next: UiConfig): void;
99
98
 
100
- export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, fingerprint, devMode, featureManagement, environment, i18n, uiConfig, flow, theme, }: SetupOptions): Promise<void>;
99
+ export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, hostingApp, fingerprint, devMode, featureManagement, environment, i18n, uiConfig, flow, theme, }: SetupOptions): Promise<void>;
101
100
 
102
101
  declare type SetupOptions = {
103
102
  apiURL: string;
@@ -106,6 +105,14 @@ declare type SetupOptions = {
106
105
  timeout?: number;
107
106
  wasm?: WasmConfig | false;
108
107
  ipLookup?: boolean;
108
+ /**
109
+ * Identifies the hosting application in the device-fingerprint record.
110
+ * Forwarded to core `setup()`, which hands it to `initializeSession` — see
111
+ * the core `SetupOptions.hostingApp` docs. Defaults to `'Web SDK'` when
112
+ * omitted, so hosts that want to be distinguishable must pass their own
113
+ * identifier (the fingerprint payload carries no separate host-version field).
114
+ */
115
+ hostingApp?: string;
109
116
  /**
110
117
  * Disables client-side device-fingerprint submission. Forwarded to core
111
118
  * `setup()` — see the core `SetupOptions.fingerprint` docs for the full
@@ -195,6 +202,23 @@ declare type ThemeSetup = false | {
195
202
  preload?: boolean;
196
203
  };
197
204
 
205
+ declare interface TranslationFunction {
206
+ (key: string | string[], options?: TranslationOptions): string;
207
+ (key: string | string[], defaultValue: string, options?: TranslationOptions): string;
208
+ }
209
+
210
+ declare type TranslationInstance = {
211
+ readonly isInitialized: boolean;
212
+ readonly language: string;
213
+ t: TranslationFunction;
214
+ changeLanguage(language?: string): Promise<unknown>;
215
+ dir(language?: string): 'ltr' | 'rtl';
216
+ on(event: string, listener: () => void): void;
217
+ off(event: string, listener?: () => void): void;
218
+ };
219
+
220
+ declare type TranslationOptions = Record<string, unknown>;
221
+
198
222
  declare type Translations = Partial<Record<string, LanguageTranslations>>;
199
223
 
200
224
  declare type TranslationValue = string | Record<string, unknown>;
@@ -1,171 +1,16 @@
1
1
  import { DeepPartial } from '@incodetech/core/flow';
2
2
  import { FC } from 'preact/compat';
3
- import { FunctionComponent } from 'preact';
4
- import { SVGProps } from 'preact/compat';
5
3
  import { VideoSelfieConfig } from '@incodetech/core/video-selfie';
6
4
 
7
- /**
8
- * Allowlisted keys for overridable Lottie animations
9
- */
10
- declare type AnimationKey = 'id.tutorial.front' | 'id.tutorial.back' | 'id.tutorial.passport' | 'id.flip' | 'id.processing' | 'selfie.tutorial' | 'loader.spinner';
11
-
12
- /**
13
- * A customer-supplied replacement for a built-in Lottie animation.
14
- *
15
- * - `LottieAnimationData` — a parsed Lottie JSON object.
16
- * - `{ url }` — fetched and cached at runtime.
17
- * - `{ animationData }` — explicit object form.
18
- */
19
- declare type AnimationOverride = LottieAnimationData | {
20
- url: string;
21
- } | {
22
- animationData: LottieAnimationData;
23
- };
24
-
25
- declare type AnimationOverrides = Partial<Record<AnimationKey, AnimationOverride>>;
26
-
27
- /**
28
- * Allowlisted keys for overridable branded SVG illustrations
29
- */
30
- 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';
31
-
32
- /**
33
- * A customer-supplied replacement for a built-in SVG illustration.
34
- *
35
- * - `string` — a URL, or raw `<svg …>` markup (detected by a leading `<`).
36
- * - `{ url }` — fetched and rendered via `<img>`; no script execution.
37
- * - `{ raw }` — inline markup; sanitized before injection.
38
- * - `{ svg }` — a precompiled component, for build-time integrations.
39
- */
40
- declare type AssetOverride = string | {
41
- url: string;
42
- } | {
43
- raw: string;
44
- } | {
45
- svg: SvgComponent;
46
- };
47
-
48
- declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
49
-
50
- /**
51
- * A module `config` intersected with the per-instance override maps. Typed at
52
- * the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
53
- * `FlowConfig` also declares the maps directly.
54
- */
55
- declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
56
-
57
- /**
58
- * Extra context passed to `onFinish` alongside the result. Lets a host decide
59
- * how to react to the terminal state without inspecting the DOM. Only the
60
- * workflow module sets these fields today.
61
- */
62
- declare type IncodeFinishMeta = {
63
- /**
64
- * True when the SDK owns the terminal screen — it has already rendered its
65
- * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
66
- * screen), so the host should not render its own completion screen on top.
67
- * `onFinish` still fires so the host can run side effects (e.g. notify an
68
- * OAuth parent).
69
- *
70
- * Advisory only: the SDK cannot stop a host from rendering. This works solely
71
- * because the host reads this flag — a host that ignores it will still
72
- * replace the SDK screen. Not a guarantee.
73
- */
74
- sdkOwnsTerminalScreen?: boolean;
75
- };
76
-
77
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = ConfigWithOverrides<TConfig>> = {
78
- /**
79
- * Module configuration required to render the flow.
80
- * For Web Components, this is typically assigned via `element.config = ...`.
81
- *
82
- * Also carries optional per-instance `assets`/`animations` override maps;
83
- * they override the global `setup({ uiConfig })` values for this
84
- * element only and are ignored by the core manager.
85
- */
86
- config?: TConfigInput;
87
- /**
88
- * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
89
- */
90
- manager?: TManager;
91
- /**
92
- * Callback invoked when the module completes successfully.
93
- * @param result - Optional result data from the module completion
94
- * @param meta - Optional context about how the module resolved (e.g. whether
95
- * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
96
- */
97
- onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
98
- /**
99
- * Callback invoked when a fatal module error occurs.
100
- *
101
- * @param error - Human-readable error message.
102
- * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
103
- * the workflow and flow modules on QR validation failures —
104
- * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
105
- * @param moduleErrorCode - Optional machine-readable error code (e.g. a
106
- * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
107
- * branch on the specific terminal error without parsing the message string.
108
- */
5
+ export declare const VideoSelfie: FC<Omit<{
6
+ config?: VideoSelfieConfig | undefined;
7
+ manager?: unknown;
8
+ onFinish?: ((result?: void | undefined) => void) | undefined;
109
9
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
110
- };
111
-
112
- /**
113
- * Per-instance overrides for a single mounted SDK module.
114
- *
115
- * These ride on the module's `config` prop and are published once at the
116
- * module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
117
- * or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
118
- * any prop drilling.
119
- */
120
- declare type InstanceOverrides = {
121
- assets?: AssetOverrides;
122
- animations?: AnimationOverrides;
123
- spinner?: SpinnerPresentation;
124
- };
125
-
126
- declare type LottieAnimationData = {
127
- fr: number;
128
- v: string;
129
- ip: number;
130
- op: number;
131
- w: number;
132
- h: number;
133
- };
134
-
135
- /**
136
- * Host-facing loader presentation, settable globally via
137
- * `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
138
- *
139
- * Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
140
- * which keeps it localizable — a literal string here would freeze in whatever
141
- * language the host typed it in when the user switches language mid-flow — and
142
- * leaves one source of truth for user-facing strings.
143
- */
144
- declare type SpinnerPresentation = {
145
- renderMode?: SpinnerRenderMode;
146
- size?: SpinnerSize;
147
- };
148
-
149
- /**
150
- * Which parts of a loader render.
151
- *
152
- * An enum rather than a pair of booleans so the meaningless fourth state —
153
- * neither icon nor text, i.e. a blank screen — is unrepresentable.
154
- */
155
- declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
156
-
157
- declare type SpinnerSize = 'small' | 'medium' | 'large';
158
-
159
- /** An SVG imported as a Preact component (the `?react` import shape). */
160
- declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
161
-
162
- export declare const VideoSelfie: FC<Omit<VideoSelfieProps, "config"> & {
163
- config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
10
+ }, "config"> & {
11
+ config?: (Omit<VideoSelfieConfig, "validateClosedEyes" | "validateFaceMask" | "validateHeadCover" | "validateLenses" | "speechToTextCheck" | "numberOfTries" | "useAsSelfie" | "showTutorials" | "companyName" | "checkLiveness" | "checkIdScan" | "checkDocumentScan" | "compareIdEnabled" | "compareOcrEnabled" | "compareBackIdEnabled" | "compareBackOcrEnabled" | "checkVoiceConsent" | "voiceConsentQuestions" | "selfieQualityAffectsScore" | "maxWaitingVideoSelfieFile" | "lastSecondsVideoQualityCheck" | "lastSecondsVideoQualityCheckDuration"> & DeepPartial<Pick<VideoSelfieConfig, "validateClosedEyes" | "validateFaceMask" | "validateHeadCover" | "validateLenses" | "speechToTextCheck" | "numberOfTries" | "useAsSelfie" | "showTutorials" | "companyName" | "checkLiveness" | "checkIdScan" | "checkDocumentScan" | "compareIdEnabled" | "compareOcrEnabled" | "compareBackIdEnabled" | "compareBackOcrEnabled" | "checkVoiceConsent" | "voiceConsentQuestions" | "selfieQualityAffectsScore" | "maxWaitingVideoSelfieFile" | "lastSecondsVideoQualityCheck" | "lastSecondsVideoQualityCheckDuration">>) | undefined;
164
12
  }>;
165
13
 
166
- /** Props for the {@link VideoSelfie} component. */
167
- declare type VideoSelfieProps = IncodeModuleProps<VideoSelfieConfig>;
168
-
169
14
  export { }
170
15
 
171
16
  declare global {
@@ -0,0 +1,53 @@
1
+ import { i as D, v as u } from "./vendor-preact-C0jX1Cbq.js";
2
+ import { d as cn } from "./spacer-ayyj5lMa.js";
3
+ //#region src/shared/typography/typography.tsx
4
+ var Title = D(({ children, className, ...rest }, ref) => {
5
+ return /* @__PURE__ */ u("h2", {
6
+ ref,
7
+ class: `IncodeTitle ${className ?? ""}`,
8
+ ...rest,
9
+ children
10
+ });
11
+ });
12
+ var TypographyH1 = D(({ children, className, ...rest }, ref) => {
13
+ return /* @__PURE__ */ u("h1", {
14
+ ref,
15
+ class: cn("IncodeTypographyH1", className),
16
+ ...rest,
17
+ children
18
+ });
19
+ });
20
+ D(({ children, className, ...rest }, ref) => {
21
+ return /* @__PURE__ */ u("h2", {
22
+ ref,
23
+ class: cn("IncodeTypographyH2", className),
24
+ ...rest,
25
+ children
26
+ });
27
+ });
28
+ var TypographyH3 = ({ children, className }) => {
29
+ return /* @__PURE__ */ u("h3", {
30
+ class: cn("IncodeTypographyH3", className),
31
+ children
32
+ });
33
+ };
34
+ var TypographyH4 = ({ children, className }) => {
35
+ return /* @__PURE__ */ u("h4", {
36
+ class: cn("IncodeTypographyH4", className),
37
+ children
38
+ });
39
+ };
40
+ var TypographyH5 = ({ children, className }) => {
41
+ return /* @__PURE__ */ u("h5", {
42
+ class: cn("IncodeTypographyH5", className),
43
+ children
44
+ });
45
+ };
46
+ var TypographyP = ({ children, className }) => {
47
+ return /* @__PURE__ */ u("p", {
48
+ class: cn("IncodeTypographyP", className),
49
+ children
50
+ });
51
+ };
52
+ //#endregion
53
+ export { TypographyH5 as a, TypographyH4 as i, TypographyH1 as n, TypographyP as o, TypographyH3 as r, Title as t };