@incodetech/web 2.4.0 → 2.4.1-agentic

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 (306) hide show
  1. package/dist/{GeolocationPermissionDenied-NCe8TBk4.js → GeolocationPermissionDenied-CUt-uebQ.js} +5 -5
  2. package/dist/ae-signature/ae-signature.es.js +3 -3
  3. package/dist/{af-ZA-BbU0OdlG.js → af-ZA-BWKMRc6V.js} +90 -4
  4. package/dist/{ageVerification-B5ownHdO.js → ageVerification-CMIp0I--.js} +4 -4
  5. package/dist/{am-BuvQtV50.js → am-DPyjIvQV.js} +90 -4
  6. package/dist/antifraud/antifraud.es.js +3 -3
  7. package/dist/applyStudioConfig-DxtP9221.js +126 -0
  8. package/dist/{ar-Ba-wMBXP.js → ar-10SoqF1i.js} +91 -5
  9. package/dist/{ar-AE-Bdk7NfI2.js → ar-AE-CxCvbyoW.js} +90 -4
  10. package/dist/{ar-EG-C9FVwsEB.js → ar-EG-B1hHB55j.js} +90 -4
  11. package/dist/authentication/authentication.es.js +4 -4
  12. package/dist/{autoFocusTitle-BQltp_Nn.js → autoFocusTitle-BxsSeMSB.js} +1 -1
  13. package/dist/{az-DHRJfgCV.js → az-cmuBNn_5.js} +90 -4
  14. package/dist/base.css +1 -1
  15. package/dist/{baseTutorial-CL2A9XLh.js → baseTutorial-BGU2Gcly.js} +3 -3
  16. package/dist/{bn-BfE2MHPG.js → bn-CuGYlngZ.js} +90 -4
  17. package/dist/{bottomSheet-DU4SrMOH.js → bottomSheet-x20yd6eP.js} +2 -2
  18. package/dist/{bs-Ck9dCVYh.js → bs-vwpJzaHm.js} +89 -3
  19. package/dist/{ca-yJUG5zqw.js → ca-DXZs5vtr.js} +89 -3
  20. package/dist/cameraOverlay-Be1PFI8S.js +2 -0
  21. package/dist/{cameraOverlayHeader-Bp7NCrl9.js → cameraOverlayHeader-BxutAKy-.js} +4 -4
  22. package/dist/{cameraView-CLlWARBI.js → cameraView-DVzaEGW8.js} +13 -14
  23. package/dist/{ceb-oov4R9JM.js → ceb-CmhS_VOs.js} +90 -4
  24. package/dist/certificate-issuance/certificate-issuance.es.js +9 -9
  25. package/dist/{checkbox-DbYUeTao.js → checkbox-BC26Qbxh.js} +3 -3
  26. package/dist/consent/consent.es.js +11 -10
  27. package/dist/consent/styles.css +1 -1
  28. package/dist/consent/styles.css.js +1 -1
  29. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-DXSVHiby.js} +1 -1
  30. package/dist/{countrySelector-El6_zLMs.js → countrySelector-0PDDFsZF.js} +5 -4
  31. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  32. package/dist/{cs-CZ-B9jWzmE_.js → cs-CZ-Dg5O-Vom.js} +89 -3
  33. package/dist/{cs-ovOFxGB0.js → cs-CoJlE7De.js} +89 -3
  34. package/dist/curp-validation/curp-validation.es.js +13 -13
  35. package/dist/{customFields-BlYfgYje.js → customFields-COYGTuuK.js} +9 -10
  36. package/dist/{customWatchlist-BsBTzCCN.js → customWatchlist-B0wY6Rwb.js} +5 -6
  37. package/dist/{da-DK-C0l5MGWM.js → da-DK-C_JAndM-.js} +89 -3
  38. package/dist/{dashboardTheme-MVQerNVn.js → dashboardTheme-COBidrbH.js} +22 -23
  39. package/dist/dateInputComposed-CONPVayx.js +1 -0
  40. package/dist/{dateInputComposed-DXCc1HRe.js → dateInputComposed-QkmLGLHg.js} +4 -4
  41. package/dist/{de-B0IRPjwJ.js → de-11hHLedu.js} +89 -3
  42. package/dist/{denied-wXsbFjy_.js → denied-Btt81vUD.js} +7 -7
  43. package/dist/{uiConfig-BA7U_zLr.js → devWarn-Cr7MglXv.js} +127 -88
  44. package/dist/deviceWallet-BeTpokSL.js +37 -0
  45. package/dist/{digitalIdRedirect-CF7zG3wS.js → digitalIdRedirect-BnljwZV3.js} +3 -3
  46. package/dist/{digitalIdUpload-CbPm090z.js → digitalIdUpload-DNhqqMHT.js} +6 -6
  47. package/dist/document-capture/document-capture.es.js +1 -1
  48. package/dist/documentCapture-DGCraCO3.js +2 -0
  49. package/dist/{documentCapture-CgpHXm_8.js → documentCapture-uAKPK1U-.js} +39 -30
  50. package/dist/{dropdownComposed-qb9GgX5X.js → dropdownComposed-D_RQd0Z9.js} +3 -3
  51. package/dist/dropdownComposed-DyZXfcTf.js +1 -0
  52. package/dist/dynamic-forms/dynamic-forms.es.js +12 -12
  53. package/dist/ekyb/ekyb.es.js +1 -1
  54. package/dist/ekyb/styles.css +1 -1
  55. package/dist/ekyb/styles.css.js +1 -1
  56. package/dist/{ekybModule-BgZIkVVl.js → ekybModule-Bsqag_MS.js} +13 -13
  57. package/dist/ekybModule-D-czIusz.js +2 -0
  58. package/dist/ekyc/ekyc.es.js +1 -1
  59. package/dist/ekyc/styles.css +1 -1
  60. package/dist/ekyc/styles.css.js +1 -1
  61. package/dist/ekycModule-CkBRa6h2.js +2 -0
  62. package/dist/{ekycModule-DEVrRrnH.js → ekycModule-WlhVn8AO.js} +61 -40
  63. package/dist/{el-Do7wYurZ.js → el-CRGmVrep.js} +89 -3
  64. package/dist/{el-GR-BZEKLkvc.js → el-GR-CjtJiRTo.js} +89 -3
  65. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  66. package/dist/{electronic-signature-DE6FJfvu.js → electronic-signature-Cm2BEiQu.js} +10 -10
  67. package/dist/email/email.es.js +8 -8
  68. package/dist/{emailInput-Cp77LavN.js → emailInput-JmK2JIFS.js} +3 -3
  69. package/dist/{en-CJ6l68pH.js → en-CSjoG3e4.js} +90 -4
  70. package/dist/{en-DG-Cvwm0nfj.js → en-DG-Cruu6Woh.js} +90 -4
  71. package/dist/{errorContent-YeJNVb1U.js → errorContent-zY4jb6uY.js} +5 -5
  72. package/dist/{es-419-DlCbbvcc.js → es-419-CTB15v-l.js} +89 -3
  73. package/dist/{es-rayGAvsH.js → es-C_LAY-Yu.js} +89 -3
  74. package/dist/{es-ES-B8h3jMgN.js → es-ES-D7O0P5Mg.js} +89 -3
  75. package/dist/{es-MX-DA__jQOC.js → es-MX-DVzFaANh.js} +89 -3
  76. package/dist/{esm-15CISqPe.js → esm-BTUEHyry.js} +1 -1
  77. package/dist/{et-DvX7tm-R.js → et-DdSwjU5d.js} +91 -5
  78. package/dist/{expiredId-CsKNCK5M.js → expiredId-DpbWqSzB.js} +5 -5
  79. package/dist/extensibility.es.js +53 -52
  80. package/dist/{fa-IR-DfrzWcH0.js → fa-IR-CdK8XLkS.js} +90 -4
  81. package/dist/face-match/face-match.es.js +1 -1
  82. package/dist/face-match/styles.css +1 -1
  83. package/dist/face-match/styles.css.js +1 -1
  84. package/dist/{faceMatch-Bqspq0cw.js → faceMatch-B0IzR9_u.js} +8 -18
  85. package/dist/faceMatch-CRbIcwK2.js +2 -0
  86. package/dist/{fi-FI-CcFDkeiE.js → fi-FI-CYlEPu44.js} +89 -3
  87. package/dist/field-comparison/field-comparison.es.js +1 -1
  88. package/dist/fieldComparison-DKQNK0-r.js +2 -0
  89. package/dist/{fieldComparison-CmQN2MEj.js → fieldComparison-OwGIeOM5.js} +8 -8
  90. package/dist/{finalSuccessScreen-1Ea3wZWM.js → finalSuccessScreen-BM9oeJDH.js} +11 -11
  91. package/dist/fiscal-qr/fiscal-qr.es.js +13 -13
  92. package/dist/{flipAnimation-DY9K2zel.js → flipAnimation-D-5tokFC.js} +270 -43
  93. package/dist/flow/flow.es.js +36 -29
  94. package/dist/flow/styles.css +1 -1
  95. package/dist/{formField-DoXWcoL9.js → formField-C3MNhFKI.js} +18 -10
  96. package/dist/{fr-DtdqfaF8.js → fr-C4cP8ZNE.js} +89 -3
  97. package/dist/{fr-CA-CeL7RQc-.js → fr-CA-DD_s9NuV.js} +89 -3
  98. package/dist/geolocation/geolocation.es.js +7 -9
  99. package/dist/government-validation/government-validation.es.js +5 -5
  100. package/dist/{he-CPeNHo0I.js → he-D3fvMZAl.js} +90 -4
  101. package/dist/helpButtonConfig-BFragC_J.js +24 -0
  102. package/dist/{hi-DIbkmie6.js → hi-DLf6_opn.js} +90 -4
  103. package/dist/{hmn-CscGik4W.js → hmn-DzoODzbN.js} +90 -4
  104. package/dist/{homeScreen-C0j_8KKD.js → homeScreen-D1Xd93In.js} +13 -8
  105. package/dist/{hr-DWUsAZnf.js → hr-C-jP0DrB.js} +89 -3
  106. package/dist/{ht-DgaboG3c.js → ht-CVt9koJf.js} +90 -4
  107. package/dist/{hu-Lz2qVC3S.js → hu-9fSzIeAd.js} +91 -5
  108. package/dist/{icons-OQDvn5r2.js → icons-BdiCuWFP.js} +26 -26
  109. package/dist/id/id.es.js +34 -34
  110. package/dist/id/styles.css +1 -1
  111. package/dist/id/styles.css.js +1 -1
  112. package/dist/{id-C5eOEjgu.js → id-Dgi5uGHK.js} +90 -4
  113. package/dist/id-selfie-flow/id-selfie-flow.es.js +10 -10
  114. package/dist/id-selfie-flow/styles.css +1 -1
  115. package/dist/id-verification/id-verification.es.js +4 -4
  116. package/dist/{idOcr-C-kHrU_d.js → idOcr-sknZwQNF.js} +12 -12
  117. package/dist/identity-reuse/identity-reuse.es.js +10 -10
  118. package/dist/{incodeComponent-CMBg2gpq.js → incodeComponent-C1Bz5Qou.js} +266 -42
  119. package/dist/incodeModule-DJToJb00.js +41 -0
  120. package/dist/index.es.js +4 -3
  121. package/dist/inputComposed-5mLbxAZJ.js +1 -0
  122. package/dist/{inputComposed-CR1IW-mQ.js → inputComposed-BuE0iZlw.js} +3 -3
  123. package/dist/{it-CQGuLrxZ.js → it-CEFstYFG.js} +90 -4
  124. package/dist/{ja-CBD-jOkP.js → ja-BNdVd9B6.js} +90 -4
  125. package/dist/{ja-JP-Dgbzh2aL.js → ja-JP-B5TPMV1q.js} +91 -5
  126. package/dist/{jv-C-E67yDR.js → jv-CMxkkXUk.js} +89 -3
  127. package/dist/{ka-CcCqDmzw.js → ka-C70bUmEK.js} +90 -4
  128. package/dist/{kk-B_5WgCfa.js → kk-C_55EmWt.js} +89 -3
  129. package/dist/{km-CucJh4em.js → km-D4Ig0NhN.js} +96 -10
  130. package/dist/{ko-BEd2Jz4C.js → ko-DfUa3dzQ.js} +90 -4
  131. package/dist/{ko-KP-BSjl3hdX.js → ko-KP-BwBB8ahu.js} +90 -4
  132. package/dist/{ky-Bb9MfmYr.js → ky-CnJichOm.js} +89 -3
  133. package/dist/{lo-CD_Ehkf5.js → lo-ww1DXVAP.js} +90 -4
  134. package/dist/{lt-DHkwvJ8e.js → lt-IJ8qpluI.js} +89 -3
  135. package/dist/{lv-CPuPO_jU.js → lv-DMfsmqyK.js} +91 -5
  136. package/dist/{mandatoryConsent-BHMWyBUp.js → mandatoryConsent-Bp8sQoiu.js} +11 -10
  137. package/dist/{manualCaptureButton-D5XP3Oaf.js → manualCaptureButton-BXOTp2PS.js} +9 -8
  138. package/dist/{manualCaptureButton-D_tGP6tv.js → manualCaptureButton-Cd-FY05-.js} +3 -3
  139. package/dist/{mk-DO85nJp4.js → mk-ByafmFak.js} +90 -4
  140. package/dist/{mn-D5fhne6X.js → mn-DjO9p3xN.js} +89 -3
  141. package/dist/{ms-D_FFGDor.js → ms-3Vf1QpHl.js} +89 -3
  142. package/dist/{my-D1JKF20F.js → my-C5hpE5P1.js} +90 -4
  143. package/dist/{nb-NO-oEMuavpl.js → nb-NO-DGCWCOul.js} +89 -3
  144. package/dist/{ne-Ds3QEMQ4.js → ne-CpJxcVhV.js} +90 -4
  145. package/dist/{nl-DGyLucC1.js → nl-R2RykJHB.js} +90 -4
  146. package/dist/{optionAccessibleLabel-SwDCMYKc.js → optionAccessibleLabel-BQl8HooZ.js} +7 -6
  147. package/dist/{otpInput-DIUf37GR.js → otpInput-B_iLvmIn.js} +6 -6
  148. package/dist/{page-BGUJaLaG.js → page-utEpSa9Z.js} +27 -46
  149. package/dist/{incode-logo-BBYHyycP.js → pageUiConfig-rOL18JSI.js} +35 -3
  150. package/dist/{passwordInputComposed-Cd-3kyua.js → passwordInputComposed-NtiseM85.js} +4 -4
  151. package/dist/{pdf-BKHLi5Ac.js → pdf-BnPw8ZaT.js} +1 -1
  152. package/dist/pdfViewer-7FzYV8l3.js +2 -0
  153. package/dist/{pdfViewer-EDgSzrdc.js → pdfViewer-DNMZsDFD.js} +3 -3
  154. package/dist/{permissions-Vh-QG2Tj.js → permissions-CCEc9lKM.js} +11 -11
  155. package/dist/phone/phone.es.js +9 -9
  156. package/dist/{phoneInputComposed-wZaDiedP.js → phoneInputComposed-ByiK_6Hu.js} +48 -11
  157. package/dist/{pl-nEtI_VZQ.js → pl-B1LgnPj1.js} +89 -3
  158. package/dist/{processing-SzW6Mfrg.js → processing-Ci_Kl-Rh.js} +1 -1
  159. package/dist/{progressBar-KEnpi8uj.js → progressBar-Caj-Vu1e.js} +1 -1
  160. package/dist/{pt-BR-BkLAWIbx.js → pt-BR-DSJDHb-K.js} +90 -4
  161. package/dist/{pt-EmaaUJGm.js → pt-CPVeH0hD.js} +90 -4
  162. package/dist/{pt-PT-Py_4_Z05.js → pt-PT-BWJTVPZY.js} +90 -4
  163. package/dist/qe-signature/qe-signature.es.js +3 -3
  164. package/dist/{radioGroupComposed-CRr_78He.js → radioGroupComposed-CocqpoKe.js} +3 -3
  165. package/dist/radioGroupComposed-DlQ-fNrF.js +1 -0
  166. package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
  167. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +51 -48
  168. package/dist/redirect-to-mobile/styles.css +1 -1
  169. package/dist/redirect-to-mobile/styles.css.js +1 -1
  170. package/dist/{resendTimer-EhLnxeID.js → resendTimer-ODOCcKyh.js} +1 -1
  171. package/dist/{richText-aCnLd3j2.js → richText-CRWB2afV.js} +2 -2
  172. package/dist/{ro-BKmZhZl1.js → ro-8gGEWeHO.js} +90 -4
  173. package/dist/{ru-BYQKvZtn.js → ru-C4EVku5S.js} +90 -4
  174. package/dist/{ru-RU-BdhCs3uF.js → ru-RU-Dr0NOGjg.js} +89 -3
  175. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-ilJ8VQmH.js} +1 -1
  176. package/dist/selfie/selfie.es.js +14 -8
  177. package/dist/selfie/styles.css +1 -1
  178. package/dist/selfie/styles.css.js +1 -1
  179. package/dist/signature/signature.es.js +8 -8
  180. package/dist/{sk-CZipa19k.js → sk-BSTzMa__.js} +89 -3
  181. package/dist/{sl-_sx3gvEv.js → sl-_HvO-HVX.js} +90 -4
  182. package/dist/{smsTabContent-DHuEgl3E.js → smsTabContent-CWBrtP4u.js} +6 -6
  183. package/dist/{so-D3T7YyfC.js → so-pyCaqonl.js} +90 -4
  184. package/dist/{spacer-BvrtrwSF.js → spacer-CwyNauIk.js} +11 -19
  185. package/dist/{spinner-CkN8sW0d.js → spinner-DEZJxLSc.js} +2 -2
  186. package/dist/{sr-D0lglPAd.js → sr-Bpxtt0kk.js} +89 -3
  187. package/dist/{sr-Latn-Dy2rgSEv.js → sr-Latn-BjueCJSI.js} +95 -9
  188. package/dist/{sr-YU-UEhyvXZ-.js → sr-YU-xCb5qxap.js} +89 -3
  189. package/dist/{sv-SE-VsDd4VP5.js → sv-SE-sv5v6ZWe.js} +89 -3
  190. package/dist/{sw-D2VfTj6a.js → sw-BseJSmdR.js} +90 -4
  191. package/dist/{th-BzmKSnbD.js → th-C2G8Ur12.js} +90 -4
  192. package/dist/{th-TH-BU_NqN97.js → th-TH-D0WNW-3l.js} +90 -4
  193. package/dist/themes/dark.css +1 -1
  194. package/dist/themes/light.css +1 -1
  195. package/dist/{tl-GXkKKnzb.js → tl-CBOmxz5r.js} +90 -4
  196. package/dist/{tl-PH-BJJNA9rs.js → tl-PH-CwafDrED.js} +90 -4
  197. package/dist/{tr-C1MJnwIJ.js → tr-C4iH8UJx.js} +90 -4
  198. package/dist/{transitionSpinner-Bkjw-WAJ.js → transitionSpinner-DbrWrpRU.js} +3 -3
  199. package/dist/{tutorial-Bwt7rxfr.js → tutorial-BKPHj5To.js} +211 -27
  200. package/dist/types/ae-signature.d.ts +10 -1
  201. package/dist/types/antifraud.d.ts +10 -1
  202. package/dist/types/authentication.d.ts +10 -1
  203. package/dist/types/certificate-issuance.d.ts +10 -1
  204. package/dist/types/consent.d.ts +10 -1
  205. package/dist/types/cross-document-data-match.d.ts +10 -1
  206. package/dist/types/curp-validation.d.ts +10 -1
  207. package/dist/types/document-capture.d.ts +10 -1
  208. package/dist/types/dynamic-forms.d.ts +10 -1
  209. package/dist/types/ekyb.d.ts +10 -1
  210. package/dist/types/ekyc.d.ts +10 -1
  211. package/dist/types/electronic-signature.d.ts +10 -1
  212. package/dist/types/email.d.ts +10 -1
  213. package/dist/types/extensibility.d.ts +141 -20
  214. package/dist/types/face-match.d.ts +10 -1
  215. package/dist/types/field-comparison.d.ts +10 -1
  216. package/dist/types/fiscal-qr.d.ts +10 -1
  217. package/dist/types/flow.d.ts +22 -2
  218. package/dist/types/geolocation.d.ts +10 -1
  219. package/dist/types/government-validation.d.ts +10 -1
  220. package/dist/types/id-selfie-flow.d.ts +10 -1
  221. package/dist/types/id-verification.d.ts +10 -1
  222. package/dist/types/id.d.ts +10 -1
  223. package/dist/types/identity-reuse.d.ts +10 -1
  224. package/dist/types/index.d.ts +88 -10
  225. package/dist/types/phone.d.ts +10 -1
  226. package/dist/types/qe-signature.d.ts +10 -1
  227. package/dist/types/redirect-to-mobile.d.ts +1 -1
  228. package/dist/types/selfie.d.ts +10 -1
  229. package/dist/types/signature.d.ts +10 -1
  230. package/dist/types/video-selfie.d.ts +1 -1
  231. package/dist/types/watchlist.d.ts +10 -1
  232. package/dist/types/workflow.d.ts +10 -1
  233. package/dist/{typography-DKXgPZsU.js → typography-BF9d8wEc.js} +1 -1
  234. package/dist/{uk-DFL26I5l.js → uk-BGYlvKb_.js} +89 -3
  235. package/dist/{uk-UA-3o9Xbam-.js → uk-UA-CbxzkCL_.js} +90 -4
  236. package/dist/{ur-DXJAfyQA.js → ur-BQgtsAfv.js} +90 -4
  237. package/dist/useCameraPreview-BmkAmzAs.js +93 -0
  238. package/dist/{useCaptureHelpButton-CSG3fO48.js → useCaptureHelpButton-D40hYyD7.js} +9 -7
  239. package/dist/useIsDarkTheme-COJZngNK.js +27 -0
  240. package/dist/{uz-BXvj8vlH.js → uz-DqOg1Fdv.js} +90 -4
  241. package/dist/{verificationResult-BVrKFRMf.js → verificationResult-m99Ragq6.js} +6 -6
  242. package/dist/{vi-DRfsxu1a.js → vi-COxdKkHn.js} +90 -4
  243. package/dist/video-selfie/styles.css +1 -1
  244. package/dist/video-selfie/styles.css.js +1 -1
  245. package/dist/video-selfie/video-selfie.es.js +69 -50
  246. package/dist/watchlist/watchlist.es.js +5 -6
  247. package/dist/{watchlistForBusiness-CyAmoIrv.js → watchlistForBusiness-C2zxbavl.js} +37 -12
  248. package/dist/{withEndScreenTexts-MHocOODe.js → withEndScreenTexts-BwNU-8-X.js} +39 -22
  249. package/dist/workflow/styles.css +1 -1
  250. package/dist/workflow/workflow.es.js +23 -16
  251. package/dist/{zh-CN-DMfj1_Nh.js → zh-CN-DfvYQGdE.js} +90 -4
  252. package/dist/{zh-Ct8GKGhw.js → zh-CPQoDPxf.js} +89 -3
  253. package/dist/{zh-HANT-NZFdeKuE.js → zh-HANT-B4LzHH2y.js} +90 -4
  254. package/dist/{zh-TW-8wkrOHM8.js → zh-TW-DtvvhBYL.js} +90 -4
  255. package/package.json +15 -2
  256. package/dist/cameraOverlay-CBTjtbNP.js +0 -2
  257. package/dist/connectionError-DX3wd4vm.js +0 -45
  258. package/dist/dateInputComposed-BzW0cv1o.js +0 -1
  259. package/dist/deviceWallet-CImevqFB.js +0 -66
  260. package/dist/documentCapture-CmWd-wNL.js +0 -2
  261. package/dist/dropdownComposed-B76j7pz9.js +0 -1
  262. package/dist/ekybModule-Bshc_ANM.js +0 -2
  263. package/dist/ekycModule-MmJYwp1l.js +0 -2
  264. package/dist/faceMatch-BVSCpwmA.js +0 -2
  265. package/dist/fieldComparison-nFj9pSeZ.js +0 -2
  266. package/dist/incodeModule-D6oey1Mb.js +0 -68
  267. package/dist/inputComposed-45HxIMO0.js +0 -1
  268. package/dist/pdfViewer-CFkuHOV4.js +0 -2
  269. package/dist/radioGroupComposed-DJ71F9KK.js +0 -1
  270. package/dist/statusPage-3zRxvkSE.js +0 -36
  271. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  272. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BHWuptBk.js} +0 -0
  273. /package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Dl2C4J4u.js} +0 -0
  274. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-BYZr11eV.js} +0 -0
  275. /package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-CM4_HjWk.js} +0 -0
  276. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-JflQKxT_.js} +0 -0
  277. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-CWuMQEHL.js} +0 -0
  278. /package/dist/{browser-ponyfill-DT11p-Ob.js → browser-ponyfill-CHlXHPpU.js} +0 -0
  279. /package/dist/{check-icon-BpjpKqhJ.js → check-icon-BWTjhSuA.js} +0 -0
  280. /package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-6FOOLcB2.js} +0 -0
  281. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-CUC2zCmh.js} +0 -0
  282. /package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-gdoE5nLQ.js} +0 -0
  283. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-BqTKEBcW.js} +0 -0
  284. /package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-Dol0Lpc6.js} +0 -0
  285. /package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-CAhAzw92.js} +0 -0
  286. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-BWD-NCfG.js} +0 -0
  287. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-Cjy50jGc.js} +0 -0
  288. /package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-CHFxXTEq.js} +0 -0
  289. /package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-CUBdKGbw.js} +0 -0
  290. /package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-DplNJr13.js} +0 -0
  291. /package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-D1duHEsV.js} +0 -0
  292. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-By7lMim8.js} +0 -0
  293. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-BCPAN2x5.js} +0 -0
  294. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-B9cUQuf0.js} +0 -0
  295. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-DywVSPMT.js} +0 -0
  296. /package/dist/{numberedStep-CvbL3ht2.js → numberedStep-CqgNwc_a.js} +0 -0
  297. /package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-BfTXA2LB.js} +0 -0
  298. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-TSZzEGqb.js} +0 -0
  299. /package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-C7dzd2ks.js} +0 -0
  300. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D7ZNTVBZ.js} +0 -0
  301. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-Bpacx_pp.js} +0 -0
  302. /package/dist/{purify.es-0fCPkEV1.js → purify.es-DZazHwBu.js} +0 -0
  303. /package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-Dtw9dM3O.js} +0 -0
  304. /package/dist/{reload-icon-elAFo9-k.js → reload-icon-BR1POqkD.js} +0 -0
  305. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-CLJAEuXG.js} +0 -0
  306. /package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-CceEKjsh.js} +0 -0
@@ -1,36 +1,166 @@
1
- import { i as useTranslationWithFallback, o as useTranslation, r as useUiConfig } from "./uiConfig-BA7U_zLr.js";
2
- import { S as k, _ as y, b as Q, c as A, d as _, f as d, g as x, h as q, m as h, n as $, o as gn, r as C, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme, t as getDashboardTheme } from "./dashboardTheme-MVQerNVn.js";
4
- import { d as cn, t as Spacer, u as useInstanceOverrides } from "./spacer-BvrtrwSF.js";
5
- import { a as TypographyH5, i as TypographyH4 } from "./typography-DKXgPZsU.js";
6
- import { t as TransitionSpinner } from "./transitionSpinner-Bkjw-WAJ.js";
7
- import { b as ErrorIcon, r as SuccessIcon, x as Button } from "./icons-OQDvn5r2.js";
8
- import { t as Page } from "./page-BGUJaLaG.js";
9
- import { t as AutoFocusTitle } from "./autoFocusTitle-BQltp_Nn.js";
10
- import { onSessionExpired } from "@incodetech/core/session";
1
+ import { a as useUiConfig, c as useTranslation, o as useTranslationWithFallback } from "./devWarn-Cr7MglXv.js";
2
+ import { S as k, _ as y, b as Q, c as A, d as _, f as d, g as x, h as q, m as h, n as $, o as gn, p as g, r as C, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
+ import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme, t as getDashboardTheme } from "./dashboardTheme-COBidrbH.js";
4
+ import { l as useInstanceOverrides, t as Spacer, u as cn } from "./spacer-CwyNauIk.js";
5
+ import { r as SuccessIcon, u as ErrorIcon, x as Button } from "./icons-BdiCuWFP.js";
6
+ import { a as TypographyH5, i as TypographyH4 } from "./typography-BF9d8wEc.js";
7
+ import { t as AutoFocusTitle } from "./autoFocusTitle-BxsSeMSB.js";
8
+ import { i as ModuleCancelProvider, t as Page } from "./page-utEpSa9Z.js";
9
+ import { t as TransitionSpinner } from "./transitionSpinner-DbrWrpRU.js";
10
+ import { isConnectivityLost, onConnectivityChange, onSessionExpired } from "@incodetech/core/session";
11
11
  import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass, isApplePlatform, isIPad, isSupportedBrowser } from "@incodetech/core/device";
12
12
  import { preloadDashboardFlow, resolveDashboardModuleConfig } from "@incodetech/core/flow";
13
13
  import "@incodetech/core/events";
14
14
  import { getExperiment, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, subscribeFeatureManagement, updateFeatureManagementUser } from "@incodetech/core/feature-management";
15
+ //#region src/shared/statusPage/statusPage.tsx
16
+ var StatusPage = ({ variant, icon, title, subtitle, hideFooterBranding, actions, isLive }) => {
17
+ const subtitleId = `${g()}-subtitle`;
18
+ return /* @__PURE__ */ u(Page, {
19
+ className: `IncodeStatusPage IncodeStatusPage--${variant}`,
20
+ hideFooterBranding,
21
+ children: [/* @__PURE__ */ u("div", {
22
+ class: "IncodeStatusPageContainer",
23
+ role: isLive ?? variant === "loading" ? "status" : void 0,
24
+ "aria-live": isLive ?? variant === "loading" ? "polite" : void 0,
25
+ children: [
26
+ icon,
27
+ /* @__PURE__ */ u(Spacer, { size: 16 }),
28
+ /* @__PURE__ */ u(AutoFocusTitle, {
29
+ className: "IncodeStatusPageTitle",
30
+ describedById: subtitle ? subtitleId : void 0,
31
+ children: title
32
+ }, variant),
33
+ subtitle && /* @__PURE__ */ u("p", {
34
+ id: subtitleId,
35
+ class: "IncodeStatusPageSubtitle",
36
+ children: subtitle
37
+ })
38
+ ]
39
+ }), actions ? /* @__PURE__ */ u("div", {
40
+ class: "IncodeStatusPageActions",
41
+ children: actions
42
+ }) : null]
43
+ });
44
+ };
45
+ //#endregion
46
+ //#region src/shared/connectionError/NoNetworkIcon.tsx
47
+ var NoNetworkIcon = ({ size = 32 }) => /* @__PURE__ */ u("svg", {
48
+ width: size,
49
+ height: size,
50
+ viewBox: "0 0 32 32",
51
+ fill: "none",
52
+ "aria-hidden": "true",
53
+ xmlns: "http://www.w3.org/2000/svg",
54
+ children: /* @__PURE__ */ u("path", {
55
+ d: "M5.769 4.741a1.333 1.333 0 0 1 1.882.09l12.734 14.006q.168.124.332.258c.178.148.309.333.388.535l5.165 5.681a1.333 1.333 0 0 1-1.973 1.793l-5.686-6.253a4.59 4.59 0 0 0-5.69.514 1.334 1.334 0 0 1-1.842-1.929 7.26 7.26 0 0 1 4.441-1.986l-2.327-2.56a10.15 10.15 0 0 0-4.315 2.507 1.334 1.334 0 0 1-1.865-1.906 12.8 12.8 0 0 1 4.227-2.749l-2.07-2.277a15.6 15.6 0 0 0-4.232 2.982 1.333 1.333 0 0 1-1.877-1.895 18.3 18.3 0 0 1 4.25-3.133L5.678 6.624a1.333 1.333 0 0 1 .09-1.883Zm10.23 17.925a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.485-9.462c.177-.715.9-1.15 1.615-.974a12.7 12.7 0 0 1 5.838 3.264 1.333 1.333 0 0 1-1.869 1.902 10 10 0 0 0-4.61-2.578 1.334 1.334 0 0 1-.974-1.614Zm-1.51-6.947a18.28 18.28 0 0 1 12.913 5.296 1.334 1.334 0 1 1-1.877 1.893 15.6 15.6 0 0 0-11.033-4.524h-.004q-1.126-.001-2.239.16a1.334 1.334 0 0 1-.384-2.638 18 18 0 0 1 2.62-.187v-.001zh.002z",
56
+ fill: "var(--icon-status-negative)"
57
+ })
58
+ });
59
+ //#endregion
60
+ //#region src/shared/connectionError/connectionError.tsx
61
+ /**
62
+ * Full-screen "no internet connection" state, shown whenever a backend request
63
+ * fails due to lost connectivity. Flow-agnostic and cross-cutting — any module
64
+ * can render it on a connectivity failure — so it lives in `shared/` rather
65
+ * than inside a single module. Composes the shared `StatusPage` primitive
66
+ * (icon + title + subtitle + actions) so it stays visually consistent with the
67
+ * rest of the status/result screens. Copy defaults to the shared
68
+ * `connectionError.*` namespace and can be overridden per caller. It can show
69
+ * offline, before the translation bundle loads, so it reads `I18N_LOCAL`
70
+ * fallbacks through `useTranslationWithFallback`.
71
+ */
72
+ var ConnectionError = ({ onClose, onRefresh, title, subtitle, refreshLabel }) => {
73
+ const { t } = useTranslationWithFallback();
74
+ return /* @__PURE__ */ u(StatusPage, {
75
+ variant: "connectionError",
76
+ hideFooterBranding: true,
77
+ icon: /* @__PURE__ */ u(NoNetworkIcon, { size: 32 }),
78
+ title: title ?? t("connectionError.title"),
79
+ subtitle: subtitle ?? t("connectionError.subtitle"),
80
+ actions: onRefresh || onClose ? /* @__PURE__ */ u(k, { children: [onRefresh ? /* @__PURE__ */ u(Button, {
81
+ onClick: onRefresh,
82
+ "data-testid": "connection-error-refresh",
83
+ children: refreshLabel ?? t("connectionError.refresh")
84
+ }) : null, onClose ? /* @__PURE__ */ u(Button, {
85
+ variant: "secondary",
86
+ onClick: onClose,
87
+ "data-testid": "connection-error-close",
88
+ children: t("common.close")
89
+ }) : null] }) : void 0
90
+ });
91
+ };
92
+ //#endregion
93
+ //#region src/shared/webComponent/useModuleCancel.ts
94
+ var USER_CANCELLED = "USER_CANCELLED";
95
+ /** The user closed the offline screen, or the step cannot resume after it. */
96
+ var NO_INTERNET_CONNECTION = "NO_INTERNET_CONNECTION";
97
+ /**
98
+ * Quit handling for a module root: stop rendering the module (its managers
99
+ * release the camera on unmount), then tell the host once.
100
+ */
101
+ function useModuleCancel(onError) {
102
+ const [cancelled, setCancelled] = d(false);
103
+ const mounted = A(false);
104
+ const onErrorRef = A(onError);
105
+ onErrorRef.current = onError;
106
+ _(() => {
107
+ mounted.current = true;
108
+ return () => {
109
+ mounted.current = false;
110
+ };
111
+ }, []);
112
+ _(() => {
113
+ if (!cancelled) return;
114
+ queueMicrotask(() => {
115
+ if (mounted.current) onErrorRef.current?.(void 0, void 0, USER_CANCELLED);
116
+ });
117
+ }, [cancelled]);
118
+ return {
119
+ cancelled,
120
+ requestCancel: q(() => setCancelled(true), [])
121
+ };
122
+ }
123
+ //#endregion
15
124
  //#region src/shared/session/withSessionExpiry.tsx
16
125
  var ExpiryOwner = Q(null);
126
+ /** True below a root that lost connectivity. */
127
+ var Offline = Q(false);
17
128
  function useSessionExpiryOwner() {
18
129
  return x(ExpiryOwner);
19
130
  }
20
- /** The outermost mounted SDK surface owns teardown and host notification. */
21
- function withSessionExpiry(Component) {
131
+ /**
132
+ * The outermost mounted SDK surface owns teardown, the offline screen, and
133
+ * host notification. While offline, the current step unmounts (its managers
134
+ * stop) and mounts again from its first screen on recovery.
135
+ * `keepMountedOffline` keeps the root's own child mounted but hidden, so an
136
+ * orchestrator such as `<incode-flow>` keeps its position; its terminal
137
+ * callback while offline is held and delivered on recovery.
138
+ */
139
+ function withSessionExpiry(Component, { keepMountedOffline = false } = {}) {
22
140
  return function SessionExpiryBoundary(props) {
23
141
  const parent = x(ExpiryOwner);
24
- const owner = A({ expired: false }).current;
142
+ const parentOffline = x(Offline);
143
+ const owner = A({
144
+ expired: false,
145
+ offline: false
146
+ }).current;
25
147
  const scope = parent ?? owner;
26
148
  const container = A(null);
27
149
  const mounted = A(false);
28
- const onError = A(props.onError);
29
- onError.current = props.onError;
150
+ const latest = A(props);
151
+ latest.current = props;
30
152
  const [error, setError] = d();
153
+ const [connection, setConnection] = d(() => {
154
+ if (parent || !isConnectivityLost()) return "online";
155
+ owner.offline = true;
156
+ return "offline";
157
+ });
158
+ const closed = connection === "closed";
159
+ const held = A();
31
160
  _(() => {
32
161
  mounted.current = true;
33
162
  let unsubscribe;
163
+ let unsubscribeConnectivity;
34
164
  const subscribe = () => {
35
165
  unsubscribe = onSessionExpired((expired) => {
36
166
  const root = container.current;
@@ -43,46 +173,120 @@ function withSessionExpiry(Component) {
43
173
  setError(expired);
44
174
  });
45
175
  };
46
- if (!parent) subscribe();
176
+ if (!parent && !closed) {
177
+ subscribe();
178
+ unsubscribeConnectivity = onConnectivityChange((lost) => {
179
+ if (owner.expired) return;
180
+ if (lost) {
181
+ owner.offline = true;
182
+ setConnection("offline");
183
+ return;
184
+ }
185
+ if (latest.current.manager !== void 0) {
186
+ setConnection("closed");
187
+ return;
188
+ }
189
+ owner.offline = false;
190
+ setConnection("online");
191
+ const deliver = held.current;
192
+ held.current = void 0;
193
+ if (deliver) queueMicrotask(() => {
194
+ if (mounted.current) deliver();
195
+ });
196
+ });
197
+ }
47
198
  return () => {
48
199
  mounted.current = false;
49
200
  unsubscribe?.();
201
+ unsubscribeConnectivity?.();
50
202
  };
51
- }, [owner, parent]);
203
+ }, [
204
+ owner,
205
+ parent,
206
+ closed
207
+ ]);
208
+ _(() => {
209
+ if (!closed) return;
210
+ queueMicrotask(() => {
211
+ if (mounted.current) latest.current.onError?.(void 0, void 0, NO_INTERNET_CONNECTION);
212
+ });
213
+ }, [closed]);
52
214
  _(() => {
53
215
  if (!error) return;
54
216
  queueMicrotask(() => {
55
217
  if (!mounted.current || !container.current?.isConnected) return;
56
218
  try {
57
- onError.current?.(error.message, error.statusCode, error.code, error);
219
+ latest.current.onError?.(error.message, error.statusCode, error.code, error);
58
220
  } catch {}
59
221
  });
60
222
  }, [error]);
61
- const child = error ? null : /* @__PURE__ */ u(Component, {
223
+ const hasError = props.onError !== void 0 || keepMountedOffline && !parent;
224
+ const hasFinish = props.onFinish !== void 0;
225
+ const hasContinue = props.onContinue !== void 0;
226
+ const callbacks = T(() => {
227
+ const open = () => mounted.current && !scope.expired && !scope.offline;
228
+ const kept = () => mounted.current && keepMountedOffline && !parent && owner.offline && !owner.expired;
229
+ return {
230
+ onError: hasError ? (...args) => {
231
+ if (open()) latest.current.onError?.(...args);
232
+ else if (kept()) held.current ??= () => latest.current.onError?.(...args);
233
+ } : void 0,
234
+ onFinish: hasFinish ? (...args) => {
235
+ if (open()) latest.current.onFinish?.(...args);
236
+ else if (kept()) held.current ??= () => latest.current.onFinish?.(...args);
237
+ } : void 0,
238
+ onContinue: hasContinue ? () => {
239
+ if (open()) latest.current.onContinue?.();
240
+ } : void 0
241
+ };
242
+ }, [
243
+ hasError,
244
+ hasFinish,
245
+ hasContinue,
246
+ scope,
247
+ owner,
248
+ parent
249
+ ]);
250
+ const offline = connection !== "online";
251
+ const child = error || offline && !keepMountedOffline ? null : /* @__PURE__ */ u(Component, {
62
252
  ...props,
63
- onError: props.onError ? (...args) => {
64
- if (mounted.current && !scope.expired) props.onError?.(...args);
65
- } : void 0,
66
- onFinish: props.onFinish ? (...args) => {
67
- if (mounted.current && !scope.expired) props.onFinish?.(...args);
68
- } : void 0,
69
- onContinue: props.onContinue ? () => {
70
- if (mounted.current && !scope.expired) props.onContinue?.();
71
- } : void 0
253
+ onError: callbacks.onError,
254
+ onFinish: callbacks.onFinish,
255
+ onContinue: callbacks.onContinue
72
256
  });
73
- if (parent) return child;
257
+ if (parent) return parentOffline ? null : child;
258
+ if (closed) return null;
74
259
  return /* @__PURE__ */ u(ExpiryOwner.Provider, {
75
260
  value: owner,
76
- children: /* @__PURE__ */ u("div", {
77
- class: "IncodeSessionBoundary",
78
- ref: container,
79
- children: child
80
- })
261
+ children: [/* @__PURE__ */ u(Offline.Provider, {
262
+ value: offline,
263
+ children: /* @__PURE__ */ u("div", {
264
+ class: offline ? "IncodeSessionBoundary IncodeSessionBoundary--offline" : "IncodeSessionBoundary",
265
+ ref: container,
266
+ children: child
267
+ })
268
+ }), offline && !error ? /* @__PURE__ */ u(ModuleCancelProvider, {
269
+ value: void 0,
270
+ children: /* @__PURE__ */ u("div", {
271
+ class: "IncodeComponent",
272
+ children: /* @__PURE__ */ u(ConnectionError, { onClose: () => setConnection("closed") })
273
+ })
274
+ }) : null]
81
275
  });
82
276
  };
83
277
  }
84
278
  //#endregion
85
279
  //#region src/hooks/useManager.ts
280
+ /** `getState()` maps a fresh object per call, so compare one level deep. */
281
+ function isShallowEqual(a, b) {
282
+ if (Object.is(a, b)) return true;
283
+ if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) return false;
284
+ const aRecord = a;
285
+ const bRecord = b;
286
+ const aKeys = Object.keys(aRecord);
287
+ if (aKeys.length !== Object.keys(bRecord).length) return false;
288
+ return aKeys.every((key) => key in bRecord && Object.is(aRecord[key], bRecord[key]));
289
+ }
86
290
  /**
87
291
  * Hook for subscribing to manager state updates
88
292
  * @param factory - Factory function that creates the manager instance
@@ -96,10 +300,14 @@ function useManager(factory, options = {}) {
96
300
  const [state, setState] = d(() => manager.getState());
97
301
  y(() => {
98
302
  const unsubscribe = manager.subscribe(setState);
303
+ setState((previous) => {
304
+ const current = manager.getState();
305
+ return isShallowEqual(previous, current) ? previous : current;
306
+ });
99
307
  if (manageLifecycle && autoLoad && manager.load) manager.load();
100
308
  return () => {
101
309
  unsubscribe();
102
- if (manageLifecycle || expiryOwner?.expired) manager.stop?.();
310
+ if (manageLifecycle || expiryOwner?.expired || expiryOwner?.offline) manager.stop?.();
103
311
  };
104
312
  }, [
105
313
  manager,
@@ -513,6 +721,24 @@ function useFeatureManagement(kind, name, options) {
513
721
  };
514
722
  }
515
723
  //#endregion
724
+ //#region src/shared/terminalErrorPage/terminalErrorPageConstants.ts
725
+ var COMMON_UNEXPECTED_ERROR = "common.unexpectedError";
726
+ var TERMINAL_ERROR_TRANSLATION_KEYS = {
727
+ DEEPSIGHT_INITIALIZATION_FAILED: COMMON_UNEXPECTED_ERROR,
728
+ COMBINED_CONSENT_LOAD_FAILED: COMMON_UNEXPECTED_ERROR,
729
+ REGULATORY_CONSENT_LOAD_FAILED: COMMON_UNEXPECTED_ERROR,
730
+ VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED: "videoSelfie.error.maxVideoLengthReached"
731
+ };
732
+ //#endregion
733
+ //#region src/shared/terminalErrorPage/terminalErrorPageHelpers.ts
734
+ function hasTerminalErrorTranslation(code) {
735
+ return Object.prototype.hasOwnProperty.call(TERMINAL_ERROR_TRANSLATION_KEYS, code);
736
+ }
737
+ function getTerminalErrorMessage(t, message, moduleErrorCode) {
738
+ if (moduleErrorCode && hasTerminalErrorTranslation(moduleErrorCode)) return t(TERMINAL_ERROR_TRANSLATION_KEYS[moduleErrorCode]);
739
+ return message ?? t("common.unexpectedError");
740
+ }
741
+ //#endregion
516
742
  //#region src/shared/terminalErrorPage/terminalErrorPage.tsx
517
743
  /**
518
744
  * Terminal error screen shown by `<incode-flow>` / `<incode-workflow>` when
@@ -521,10 +747,8 @@ function useFeatureManagement(kind, name, options) {
521
747
  * and during the flow/workflow lifecycle (e.g. `/omni/workflow/process/node`,
522
748
  * `/omni/finish-status`, or a child module's terminal error).
523
749
  *
524
- * When the error carries a backend-provided `error`/`message` (surfaced via
525
- * `IncodeApiError.message` from core's service wrappers), it's rendered
526
- * verbatim as the subtitle. Generic transport failures fall back to a
527
- * translated default.
750
+ * Backend-provided messages are rendered verbatim. Known module errors use
751
+ * localized copy; generic transport failures fall back to a translated default.
528
752
  *
529
753
  * Layout: `Page` is used for the Incode logo + optional "Verified by Incode"
530
754
  * footer only — the title/subtitle/titleTopSlot slots are deliberately *not*
@@ -535,7 +759,7 @@ function useFeatureManagement(kind, name, options) {
535
759
  * which delegates to `onRetry`; non-retryable errors leave recovery to the
536
760
  * host.
537
761
  */
538
- var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
762
+ var TerminalErrorPage = ({ message, moduleErrorCode, onRetry, retryable = true }) => {
539
763
  const { t } = useTranslation();
540
764
  const titleRef = A(null);
541
765
  y(() => {
@@ -565,7 +789,7 @@ var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
565
789
  }),
566
790
  /* @__PURE__ */ u("p", {
567
791
  class: "IncodeTerminalErrorPageMessage",
568
- children: message ?? t("common.unexpectedError")
792
+ children: getTerminalErrorMessage(t, message, moduleErrorCode)
569
793
  })
570
794
  ]
571
795
  }), retryable ? /* @__PURE__ */ u("div", {
@@ -899,4 +1123,4 @@ function IncodeComponent({ children, deferBrowserCheck = false }) {
899
1123
  });
900
1124
  }
901
1125
  //#endregion
902
- export { withSessionExpiry as S, useFormScrollable as _, withStandaloneModuleBootstrap as a, useScreenOrientation as b, TerminalErrorPage as c, useAnimationSignal as d, useTimeoutHandle as f, useIsBrowserSupported as g, useIsMobileDeviceWidth as h, Snackbar as i, useFeatureManagement as l, useEventListener as m, LandscapeBlocker as n, ResolvedConfigProvider as o, useResizeObserver as p, BrowserNotSupported as r, useHasResolvedConfig as s, IncodeComponent as t, usePresence as u, isTerminalModuleState as v, useManager as x, useModuleTerminalCallbacks as y };
1126
+ export { useModuleCancel as C, withSessionExpiry as S, StatusPage as T, useFormScrollable as _, withStandaloneModuleBootstrap as a, useScreenOrientation as b, TerminalErrorPage as c, useAnimationSignal as d, useTimeoutHandle as f, useIsBrowserSupported as g, useIsMobileDeviceWidth as h, Snackbar as i, useFeatureManagement as l, useEventListener as m, LandscapeBlocker as n, ResolvedConfigProvider as o, useResizeObserver as p, BrowserNotSupported as r, useHasResolvedConfig as s, IncodeComponent as t, usePresence as u, isTerminalModuleState as v, ConnectionError as w, useManager as x, useModuleTerminalCallbacks as y };
@@ -0,0 +1,41 @@
1
+ import { u as T, x as _ } from "./vendor-preact-C0jX1Cbq.js";
2
+ import { c as InstanceOverridesProvider } from "./spacer-CwyNauIk.js";
3
+ import { i as ModuleCancelProvider } from "./page-utEpSa9Z.js";
4
+ import { C as useModuleCancel } from "./incodeComponent-C1Bz5Qou.js";
5
+ import { t as registerIncodeElement } from "./registerIncodeElement-Dtw9dM3O.js";
6
+ //#region src/shared/webComponent/incodeModule.ts
7
+ var incodeModulePropKeys = [
8
+ "config",
9
+ "manager",
10
+ "onFinish",
11
+ "onError"
12
+ ];
13
+ function withInstanceOverrides(component) {
14
+ return function WithInstanceOverrides(props) {
15
+ const assets = props.config?.assets;
16
+ const animations = props.config?.animations;
17
+ const spinner = props.config?.spinner;
18
+ const disableUnsupportedBrowserScreen = props.config?.disableUnsupportedBrowserScreen;
19
+ const overrides = T(() => ({
20
+ assets,
21
+ animations,
22
+ spinner,
23
+ disableUnsupportedBrowserScreen
24
+ }), [
25
+ assets,
26
+ animations,
27
+ spinner,
28
+ disableUnsupportedBrowserScreen
29
+ ]);
30
+ const allowUserToCancel = props.config?.allowUserToCancel === true;
31
+ const { cancelled, requestCancel } = useModuleCancel(props.onError);
32
+ const moduleCancel = T(() => allowUserToCancel ? { requestCancel } : void 0, [allowUserToCancel, requestCancel]);
33
+ if (cancelled) return null;
34
+ return _(InstanceOverridesProvider, { value: overrides }, _(ModuleCancelProvider, { value: moduleCancel }, _(component, props)));
35
+ };
36
+ }
37
+ function registerIncodeModuleElement(component, tagName) {
38
+ registerIncodeElement(withInstanceOverrides(component), tagName, incodeModulePropKeys);
39
+ }
40
+ //#endregion
41
+ export { registerIncodeModuleElement as t };
package/dist/index.es.js CHANGED
@@ -1,5 +1,6 @@
1
- import { c as setI18nInstance, l as createI18n, n as setUiConfig } from "./uiConfig-BA7U_zLr.js";
2
- import { n as preloadDashboardTheme, o as resolveStandaloneSetupPolicy, r as resetDashboardThemeCache, s as setStandaloneSetupPolicy } from "./dashboardTheme-MVQerNVn.js";
1
+ import { d as setI18nInstance, f as createI18n, i as setUiConfig } from "./devWarn-Cr7MglXv.js";
2
+ import { n as preloadDashboardTheme, o as resolveStandaloneSetupPolicy, r as resetDashboardThemeCache, s as setStandaloneSetupPolicy } from "./dashboardTheme-COBidrbH.js";
3
+ import { t as applyStudioConfig } from "./applyStudioConfig-DxtP9221.js";
3
4
  import { DEFAULT_WASM_VERSION } from "@incodetech/core/wasm";
4
5
  import { setup as setup$1 } from "@incodetech/core";
5
6
  //#region src/setup.ts
@@ -31,4 +32,4 @@ async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, ho
31
32
  setI18nInstance(createI18n(i18n));
32
33
  }
33
34
  //#endregion
34
- export { DEFAULT_WASM_VERSION, createI18n, setI18nInstance, setUiConfig, setup };
35
+ export { DEFAULT_WASM_VERSION, applyStudioConfig, createI18n, setI18nInstance, setUiConfig, setup };
@@ -0,0 +1 @@
1
+ import "./inputComposed-BuE0iZlw.js";
@@ -1,7 +1,7 @@
1
1
  import { i as D, v as u } from "./vendor-preact-C0jX1Cbq.js";
2
- import { d as cn } from "./spacer-BvrtrwSF.js";
3
- import { b as ErrorIcon, d as CloseIcon, r as SuccessIcon } from "./icons-OQDvn5r2.js";
4
- import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
2
+ import { u as cn } from "./spacer-CwyNauIk.js";
3
+ import { f as CloseIcon, r as SuccessIcon, u as ErrorIcon } from "./icons-BdiCuWFP.js";
4
+ import { t as FieldLabelHint } from "./fieldLabelHint-gdoE5nLQ.js";
5
5
  //#region src/shared/input/input.tsx
6
6
  var Input = D((props, ref) => {
7
7
  const { class: className, type = "text", ...restProps } = props;